var _yt_player={};(function(g){var window=this;var ba,ca,aaa,ga,fa,ha,la,ma,ra,daa,eaa,Aa,Ca,Ea,E,Ga,Ha,naa,oaa,Ia,Ja,Ka,La,paa,Qa,Ua,Va,Wa,raa,Xa,saa,cb,gb,lb,pb,sb,xb,ub,zb,taa,vb,uaa,Bb,Db,vaa,Hb,Kb,waa,Qb,Mb,Rb,Sb,Ub,Vb,Xb,bc,dc,cc,ec,fc,gc,hc,yaa,ic,rc,tc,qc,mc,yc,Ac,xc,Bc,Cc,Dc,Ec,Fc,Gc,Aaa,Baa,Kc,Jc,Mc,Nc,Pc,Sc,J,Eaa,Tc,Daa,Uc,Faa,Xc,Wc,Yc,Zc,ad,$c,cd,dd,ed,fd,gd,hd,id,jd,kd,ld,Vc,bd,nd,od,pd,rd,sd,td,ud,wd,xd,yd,Ad,Bd,Dd,Cd,Jd,Saa,Hd,Ld,Md,Od,Rd,Xaa,Yaa,Ud,ie,le,me,oe,ve,Ae,Ee,Ge,He,Ie,$aa,Yd,Pe,Ue,We,Xe,dba,$e,af,cf,df,ff,gf,bf,kf,eba,
qf,nf,vf,uf,fba,jf,yf,zf,Af,Bf,gba,Cf,Df,Ff,hba,Gf,Hf,iba,Nf,Of,Pf,Sf,Uf,Vf,Wf,jba,lba,mba,dg,Zf,bg,Qf,Xf,oba,gg,eg,fg,ig,nba,hg,kba,lg,og,pba,qba,pg,qg,wg,xg,yg,zg,Ag,Cg,Eg,Gg,Ig,Jg,Kg,Mg,tba,Ug,Vg,Wg,Xg,Zg,$g,ah,eh,jh,kh,oh,hh,uba,yh,zh,Ah,vba,wba,Ch,xba,Kh,Lh,Mh,Nh,Oh,Ph,Qh,yba,zba,Aba,Th,Uh,Vh,Wh,Yh,bi,di,ei,fi,ii,ji,ki,li,pi,si,ti,Dba,ui,wi,vi,xi,Di,zi,Ei,Gba,Fba,Fi,Gi,Hi,Ii,Ji,Ki,Li,Mi,Ni,Oi,Pi,Qi,Si,Ri,Ti,Ui,Vi,Hba,Wi,Xi,Yi,Zi,$i,bj,dj,aj,fj,ej,gj,ij,jj,kj,lj,mj,nj,oj,Jba,Kba,rj,Pba,uj,Mba,
Nba,Lba,Oba,vj,pj,Rba,xj,qj,sj,Sba,yj,Tba,Uba,Vba,$ba,zj,aca,Aj,Bj,Cj,Dj,Fj,Gj,bca,dca,Ij,cca,eca,Jj,fca,Hj,Kj,Lj,gca,jca,ica,kca,Mj,Nj,Oj,lca,Pj,mca,Qj,Rj,Sj,Tj,Uj,Vj,Wj,Xj,Zj,Yj,oca,ck,pca,qca,ek,gk,fk,hk,qk,nk,kk,sca,sk,rca,pk,ak,zk,vca,Fk,tk,rk,wca,Ik,Hk,xca,yca,uca,vk,zca,Aca,Jk,Lk,Mk,Kk,Nk,Ok,Bca,Pk,Tk,Uk,Vk,Wk,Cca,Xk,Dca,Qk,al,$k,bl,cl,el,Ica,Eca,il,jl,ll,kl,ml,nl,ol,Lca,Kca,pl,ql,Mca,sl,rl,Rca,vl,wl,xl,yl,Tca,Uca,zl,Bl,Dl,Vca,Fl,Hl,Il,Gl,Jl,Kl,Wca,Ml,Ql,Wl,Xl,Zca,Rl,Tl,$ca,$l,am,Zl,cm,Vl,
bm,Xca,em,im,jm,hm,km,lm,ada,om,pm,qm,rm,sm,cda,dda,um,eda,vm,wm,tm,fda,xm,ym,zm,Am,Bm,gda,ida,Fm,jda,kda,Cm,hda,Dm,Hm,Km,Gm,mda,Mm,Lm,oda,Om,Nm,Pm,Qm,Sm,Tm,Rm,Vm,rda,Wm,Ym,Zm,$m,an,Xm,bn,cn,dn,gn,hn,ln,on,jn,qn,sn,tn,un,vn,wn,xn,yn,zn,An,Dn,Fn,En,Gn,Hn,In,Ln,sda,Kn,Nn,Mn,On,Pn,Rn,Sn,Tn,Un,tda,uda,Vn,Yn,$n,Zn,zda,bo,Xn,co,Ada,fo,eo,Bda,go,io,ko,jo,lo,mo,no,Cda,Dda,oo,po,qo,ro,so,to,wo,xo,yo,zo,Ao,Bo,Co,Do,Eo,Fo,Q,Io,Lo,Mo,Eda,Qo,Ro,Ida,To,Zo,$o,bp,Po,Yo,Wo,Oda,Pda,Qda,Rda,cp,dp,ep,fp,hp,ip,gp,Sda,
lp,mp,np,op,pp,qp,rp,sp,up,tp,wp,xp,Tda,Uda,yp,Bp,zp,Ap,Cp,Dp,Wda,Xda,Ep,Fp,Yda,Gp,Pp,$da,Rp,Sp,Tp,Up,Vp,bea,Wp,bq,cq,Xp,dq,eq,fea,Yp,eea,Zp,$p,aq,dea,jq,kq,lq,pq,kea,lea,qq,nea,oea,sq,rea,uq,mea,vq,wq,xq,yq,sea,zq,Aq,Bq,tea,Dq,Eq,Fq,Gq,uea,Hq,vea,Cq,Iq,Jq,Kq,wea,xea,yea,zea,Lq,Aea,Oq,Sq,Vq,Wq,kp,jp,Bea,Cea,Dea,Xq,Eea,Yq,Fea,Gea,Hea,Iea,Jea,Kea,Lea,Mea,Nea,Zq,ar,$q,br,Oea,Pea,Qea,Rea,dr,Tea,fr,ir,Vea,lr,nr,kr,or,pr,qr,rr,sr,tr,ur,vr,wr,xr,zr,yr,Zea,$ea,Dr,cfa,Cr,Br,Er,Fr,Gr,Hr,Jr,gq,dfa,Tr,Ur,Vr,
Wr,Kr,hfa,Xr,Yr,iq,as,cs,iea,ds,es,fs,fq,jea,bs,gs,hs,is,js,ks,ls,ms,kfa,lfa,jfa,mfa,$r,nfa,ws,pfa,xs,Ir,ys,zs,As,Bs,qfa,Cs,Or,Zr,vs,Ds,Es,Fs,us,hq,Nr,Hs,Sr,Is,Js,Lr,Pr,ts,ifa,sfa,Rr,Ks,Ls,tfa,Ms,ufa,Ns,Os,Ps,Rs,Ss,Ts,xfa,Us,Vs,Ws,Xs,Ys,Zs,$s,at,bt,ct,dt,et,ft,gt,it,Bfa,ht,Cfa,kt,jt,lt,mt,Dfa,Ffa,Gfa,ot,pt,Hfa,zt,xt,At,Bt,Ifa,Gt,Ht,Jt,It,Kt,Lt,Mt,Nt,Ot,Jfa,Tt,Qt,St,Wt,Xt,Yt,Zt,Ut,bu,Vt,du,Kfa,eu,fu,gu,hu,iu,cu,Lfa,ju,Mfa,ku,lu,mu,Nfa,nu,ou,Ofa,pu,tu,uu,Pfa,vu,wu,Qfa,yu,zu,Rfa,Bu,Cu,Sfa,Gu,Hu,Iu,Ju,
Ku,Lu,Mu,Tfa,Nu,Ou,Pu,Ru,Qu,Ufa,Su,Tu,Uu,Vu,Vfa,Wu,Xu,Xfa,Wfa,Yu,Zu,$u,av,bv,cv,er,dv,ev,fv,gv,hv,iv,jv,kv,lv,mv,ps,Mq,os,Uq,ns,rs,tv,gr,Tq,rv,Qq,Nq,Pq,Rq,vv,hr,qv,qs,yv,zv,Bv,Yfa,Cv,Dv,Ev,Fv,Gv,Hv,Iv,Jv,Kv,Lv,Mv,Nv,Ov,Zfa,Pv,Qv,Rv,Sv,Tv,Uv,$fa,Vv,Wv,Xv,Yv,Zv,$v,bw,cw,cga,dw,dga,aga,fga,ew,gga,gw,aw,ega,kga,jga,iga,fw,hw,iw,jw,kw,mw,nw,ow,pw,qw,rw,tw,uw,vw,ww,yw,zw,Aw,xw,Bw,Cw,lga,mga,Fw,Dw,Iw,Ew,Jw,Hw,Kw,oga,pga,Lw,Mw,Nw,qga,Qw,Rw,Pw,Sw,tga,uga,Tw,Uw,Vw,Ww,vga,wga,Xw,Yw,Zw,ax,xga,$w,dx,bx,yga,zga,
Aga,ex,fx,gx,hx,ix,jx,kx,lx,mx,ox,px,qx,nx,rx,sx,tx,ux,Ega,Dga,wx,vx,zx,Fga,Ax,Bx,Gga,Cga,Cx,Ex,Iga,Hga,Fx,Gx,Kga,Ix,Hx,Kx,Lx,Mx,Mga,Nga,Nx,Ox,Oga,Px,yx,Pga,Qx,Rx,xx,Qga,Sx,Tx,Ux,Vx,Rga,Wx,Xx,Yx,$x,ay,Zx,Uga,Sga,cy,fy,gy,ey,dy,by,hy,jy,ky,my,oy,ly,py,qy,Xga,sy,ry,ty,Yga,Zga,$ga,uy,vy,wy,yy,zy,Ay,By,Cy,aha,Dy,cha,Jy,Ey,Fy,Gy,Qy,Ky,My,Ly,Ty,Oy,Ny,Ry,Py,eha,Iy,Hy,fha,Uy,bha,Vy,Wy,Xy,hha,Yy,az,bz,dz,cz,ez,fz,gz,jha,iha,kha,iz,lha,mha,jz,kz,hz,nha,lz,mz,oha,nz,pha,qha,rha,sha,oz,pz,qz,sz,tz,uz,rz,wz,tha,
uha,vz,xz,yz,zz,Az,Bz,vha,Cz,Fz,Hz,Gz,Iz,Jz,Kz,Mz,Lz,Oz,Nz,Pz,Qz,wha,Uz,Vz,Wz,Xz,Yz,Zz,$z,aA,bA,cA,dA,fA,gA,eA,hA,iA,jA,xha,kA,yha,nA,oA,lA,mA,qA,uA,rA,sA,pA,tA,zha,vA,wA,xA,yA,AA,zA,Aha,CA,BA,Cha,Dha,Bha,DA,Eha,Fha,Gha,Hha,EA,Jha,Kha,Lha,rq,HA,IA,JA,KA,LA,MA,NA,OA,QA,RA,SA,XA,WA,aB,bB,UA,cB,dB,eB,fB,TA,VA,YA,hB,Sha,iB,Tha,Uha,Vha,jB,Xha,kB,lB,mB,nB,oB,Yha,pB,Zha,$ha,qB,aia,bia,rB,sB,cia,eia,fia,tB,gia,vB,xB,kia,uB,lia,yB,Wha,zB,nia,oia,AB,pia,qia,CB,FB,ria,HB,GB,IB,sia,dha,JB,KB,NB,OB,PB,QB,RB,uia,
SB,TB,UB,VB,LB,wia,xia,YB,yia,ZB,$B,aC,XB,bC,WB,cC,zia,Sy,Bia,ny,Aia,dC,eC,fC,gC,hC,iC,Cia,jC,kC,mC,nC,lC,vC,Dia,yC,oC,zC,BC,uC,tC,sC,DC,CC,EC,FC,HC,JC,KC,Eia,LC,MC,NC,RC,TC,OC,VC,SC,YC,XC,PC,WC,ZC,aD,IC,UC,$C,cD,bD,QC,GC,AC,qC,eD,Fia,iD,jD,kD,lD,Gia,oD,pD,qD,rD,sD,uD,vD,wD,xD,yD,AD,CD,ED,DD,FD,zD,BD,ID,HD,JD,KD,VD,WD,XD,ZD,$D,aE,bE,eE,fE,gE,hE,iE,kE,lE,mE,nE,pE,rE,Iia,AE,CE,DE,EE,GE,Jia,Kia,Lia,LE,Mia,Nia,JE,OE,QE,RE,SE,TE,VE,WE,XE,YE,NE,Oia,cF,bF,dF,eF,fF,gF,Sia,jF,kF,mF,lF,nF,sF,uF,vF,xF,Tia,yF,
zF,AF,Via,HF,IF,JF,PF,QF,UF,SF,WF,VF,XF,Zia,YF,lG,mG,kG,uG,tG,xG,yG,zG,EG,GG,FG,aja,bja,RG,TG,SG,UG,dja,VG,WG,eja,fja,YG,hja,$G,gja,eH,gH,jja,hH,jH,oH,kja,lja,pH,qH,mja,vH,xH,nja,yH,zH,oja,EH,FH,DH,GH,IH,JH,KH,LH,HH,MH,pja,PH,QH,rja,RH,qja,OH,SH,TH,UH,WH,sja,VH,XH,YH,ZH,$H,bI,cI,XG,dI,eI,fI,mI,qI,sI,tja,tI,uja,uI,vI,vja,wI,zI,wja,AI,xja,BI,yja,zja,Aja,Bja,yI,xI,CI,FI,GI,II,HI,JI,KI,LI,MI,NI,OI,PI,QI,RI,SI,TI,UI,VI,WI,YI,$I,Eja,aJ,bJ,cJ,dJ,eJ,fJ,hJ,U,gJ,jJ,iJ,lJ,mJ,nJ,Gja,qJ,tJ,vJ,wJ,xJ,yJ,zJ,Ija,
BJ,DJ,FJ,GJ,HJ,IJ,JJ,KJ,LJ,MJ,PJ,NJ,RJ,SJ,TJ,UJ,VJ,XJ,YJ,ZJ,$J,aK,cK,dK,fK,hK,Jja,iK,Kja,jK,kK,mK,rJ,oK,qK,rK,sK,tK,uK,vK,Mja,wK,pK,yK,zK,Nja,BK,AK,CK,DK,FK,GK,HK,KK,LK,MK,JK,IK,NK,OK,Oja,PK,QK,SK,RK,TK,Pja,UK,WK,XK,YK,ZK,$K,aL,bL,VK,cL,dL,fL,gL,hL,iL,Qja,jL,kL,lL,mL,nL,oL,pL,qL,rL,tL,wL,sL,uL,AL,BL,yL,vL,CL,DL,xL,zL,Rja,EL,FL,GL,HL,IL,JL,KL,LL,ML,NL,OJ,QJ,OL,PL,Uja,QL,RL,Vja,Wja,Xja,TL,SL,UL,VL,WL,XL,YL,Yja,Zja,cM,dM,eM,fM,$ja,gM,hM,aka,jM,iM,kM,lM,bka,oM,qM,sM,rM,mM,wM,cka,xM,nM,vM,pM,uM,tM,yM,
zM,AM,BM,CM,DM,EM,dka,FM,GM,HM,IM,JM,KM,LM,MM,OM,PM,QM,NM,gka,SM,TM,UM,VM,hka,ika,XM,jka,YM,ZM,aN,bN,cN,dN,fN,eN,gN,hN,iN,jN,kN,lN,kka,mN,lka,mka,qka,rka,nka,oka,pka,oN,pN,qN,rN,ska,sN,tka,tN,uN,vka,uka,vN,wka,wN,zN,yka,AN,zka,BN,CN,DN,EK,Aka,EN,xN,xka,GN,IN,JN,HN,MN,NN,ON,PN,QN,Bka,TN,UN,SN,XN,Hka,cO,Pka,bO,aO,Gka,aM,jO,kO,lO,qO,pO,rO,sO,tO,uO,vO,wO,xO,zO,BO,NO,OO,xK,PO,QO,RO,SO,UO,IO,LO,JO,ZO,Wka,MO,bP,jP,kP,mP,lP,Xka,Yka,nP,oP,rP,FP,IP,zP,JP,vP,LP,EP,yP,DP,AP,$ka,ala,MP,CP,GP,wP,HP,NP,pP,sP,qP,
gla,OP,PP,RP,SP,UP,XP,ila,YP,jla,mla,lla,$P,ola,pla,qla,rla,aQ,sla,bQ,cQ,dQ,eQ,hQ,jQ,iQ,lQ,kQ,gQ,mQ,fQ,nQ,oQ,pQ,tla,ula,vQ,wQ,Bla,xQ,zQ,AQ,DQ,EQ,FQ,HQ,IQ,JQ,KQ,BQ,Cla,wla,xla,yla,vla,NQ,OQ,Ela,tQ,zla,SQ,TQ,UQ,VQ,Fla,Gla,Hla,Ila,QQ,WQ,XQ,ZQ,$Q,bR,cR,dR,eR,fR,Jla,Kla,Lla,gR,iR,jR,kR,lR,mR,nR,oR,pR,hR,qR,rR,sR,Nla,Ola,Pla,Qla,tR,Mla,vR,uR,xR,wR,Rla,Sla,Tla,yR,zR,AR,BR,CR,ER,FR,GR,DR,HR,IR,JR,LR,Vla,KR,NR,OR,PR,QR,MR,RR,TR,SR,UR,VR,WR,XR,YR,$R,ZR,aS,bS,dS,fS,cS,eS,iS,jS,Wla,mS,nS,oS,hS,pS,qS,gS,rS,sS,
tS,uS,lS,kS,vS,wS,xS,Xla,yS,zS,AS,BS,Yla,Zla,GS,HS,FS,JS,CS,$la,DS,ES,ama,IS,bma,KS,LS,cma,MS,dma,NS,OS,PS,QS,ema,fma,SS,US,WS,ZS,$S,aT,cT,dT,gT,fT,hT,iT,hma,lT,kT,mT,jT,nT,bT,gma,oT,pT,TS,RS,qT,VS,YS,rT,jma,kma,lma,mma,sT,tT,uT,vT,nma,oma,wT,xT,pma,qma,yT,AT,zT,BT,sma,CT,tma,uma,DT,FT,HT,GT,vma,wma,IT,xma,JT,KT,LT,MT,NT,OT,yma,PT,QT,ST,ZT,UT,aU,cU,fU,eU,RT,mU,kU,lU,Ama,gU,rU,qU,xU,zU,AU,BU,nU,CU,oU,sU,VT,yU,Dma,tU,EU,jU,FU,pU,hU,IU,Ema,JU,WT,Bma,KU,HU,XT,LU,iU,Cma,wU,TT,GU,MU,vU,uU,dU,NU,QU,XU,aV,
gV,sV,Fma,vV,xV,BV,CV,DV,EV,IV,MV,NV,PV,QV,SV,TV,Gma,UV,VV,WV,XV,YV,ZV,bW,Jma,Kma,Hma,Ima,Lma,dW,eW,fW,iW,jW,lW,pW,oW,nW,rW,Mma,sW,Nma,tW,Rma,uW,vW,wW,Sma,Tma,xW,Uma,yW,BW,AW,zW,CW,DW,EW,FW,GW,HW,JW,LW,PW,QW,Vma,RW,SW,TW,Wma,UW,VW,WW,XW,YW,ZW,$W,aX,Xma,bX,cX,Yma,dX,eX,fX,Zma,gX,ana,$ma,bna,iX,cna,kX,jX,nX,mX,lX,oX,dna,pX,qX,rX,sX,ena,vX,xX,yX,zX,AX,fna,BX,DX,gna,tX,CX,wX,uX,JX,KX,FX,EX,IX,HX,LX,MX,NX,OX,hna,mna,jna,lna,PX,QX,RX,SX,TX,UX,nna,VX,XX,WX,YX,ona,ZX,pna,$X,aY,dY,eY,fY,gY,hY,qna,jY,rna,kY,
iY,lY,mY,nY,oY,sna,tna,vna,una,pY,qY,wna,xna,yna,rY,tY,vY,wY,xY,uY,sY,yY,AY,CY,DY,FY,aW,$V,GX,HY,IY,JY,KY,MW,IW,PY,GY,QY,TY,bY,WY,RY,OW,NW,YY,EY,mW,ZY,bZ,cZ,aZ,dZ,Ana,Cna,Bna,fZ,jZ,hZ,mZ,KW,eZ,nZ,oZ,qZ,rZ,pZ,tZ,sZ,uZ,vZ,Dna,Ena,wZ,xZ,AZ,zZ,BZ,CZ,DZ,EZ,GZ,HZ,JZ,KZ,LZ,MZ,IZ,OZ,QZ,SZ,RZ,UZ,TZ,VZ,WZ,XZ,ZZ,YZ,$Z,a_,b_,c_,d_,e_,f_,g_,j_,h_,i_,Gna,o_,Hna,u_,v_,y_,z_,A_,B_,C_,F_,G_,E_,D_,H_,J_,I_,K_,L_,N_,P_,M_,R_,T_,S_,Ina,Q_,U_,V_,W_,X_,Y_,Z_,Jna,$_,a0,b0,c0,d0,e0,f0,h0,g0,j0,i0,k0,l0,m0,n0,r0,p0,o0,q0,
t0,s0,u0,v0,x0,z0,A0,y0,C0,D0,E0,F0,B0,H0,L0,G0,O0,P0,Q0,J0,R0,I0,T0,N0,K0,S0,U0,M0,V0,Z0,$0,a1,b1,c1,d1,e1,g1,f1,h1,i1,j1,k1,l1,m1,n1,o1,p1,q1,r1,s1,u1,t1,v1,w1,x1,y1,A1,z1,C1,E1,D1,F1,H1,k_,J1,I1,G1,K1,w0,M1,Q1,O1,P1,R1,S1,L1,T1,U1,V1,Ona,Nna,Z1,a2,b2,NY,X1,c2,OY,MY,d2,e2,gZ,f2,h2,Pna,Qna,l2,k2,Y1,q2,r2,W1,t2,SU,u2,v2,j2,i2,y2,z2,p2,VY,B2,D2,o2,A2,E2,G2,F2,H2,J2,K2,L2,x2,w2,M2,hV,XY,kJ,N2,n2,P2,Q2,jV,SY,UY,S2,C2,T2,Rna,R2,s2,Sna,U2,Tna,Una,V2,Xna,Yna,X2,Z2,Zna,$2,eoa,ioa,foa,hoa,a3,noa,ooa,qoa,
soa,roa,toa,voa,f3,woa,uoa,xoa,yoa,ea,da,baa,Gw,pa,wa,caa;ba=function(a){return function(){return g.aa[a].apply(this,arguments)}};
ca=function(){ca=function(){};
da.Symbol||(da.Symbol=aaa)};
aaa=function(a){return"jscomp_symbol_"+(a||"")+baa++};
ga=function(){ca();var a=da.Symbol.iterator;a||(a=da.Symbol.iterator=da.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&ea(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return fa(this)}});
ga=function(){}};
fa=function(a){var b=0;return ha(function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}})};
ha=function(a){ga();a={next:a};a[da.Symbol.iterator]=function(){return this};
return a};
g.ka=function(a){ga();var b=a[window.Symbol.iterator];return b?b.call(a):fa(a)};
g.p=function(a,b){function c(){}
c.prototype=b.prototype;a.aa=b.prototype;a.prototype=new c;a.prototype.constructor=a;for(var d in b)if(Object.defineProperties){var e=Object.getOwnPropertyDescriptor(b,d);e&&Object.defineProperty(a,d,e)}else a[d]=b[d]};
la=function(a,b){if(b){for(var c=da,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&&ea(c,d,{configurable:!0,writable:!0,value:f})}};
ma=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.na=function(a){return"boolean"==typeof a};
g.oa=function(a){return"number"==typeof a};
g.v=function(a,b,c){a=a.split(".");c=c||pa;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||pa,e;e=c.shift();)if(null!=d[e])d=d[e];else return null;return d};
g.z=function(){};
g.qa=function(a){a.bd=void 0;a.getInstance=function(){return a.bd?a.bd:a.bd=new a}};
ra=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.sa=function(a){return"array"==ra(a)};
g.ta=function(a){var b=ra(a);return"array"==b||"object"==b&&"number"==typeof a.length};
g.ua=function(a){return"function"==ra(a)};
g.va=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b};
g.xa=function(a){return a[wa]||(a[wa]=++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.ya=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.za=function(a,b){for(var c in b)a[c]=b[c]};
Aa=function(a,b){b&&(a=a.replace(/\{\$([^}]+)}/g,function(a,d){return null!=b&&d in b?b[d]:a}));
return a};
g.Ba=function(a,b,c){g.v(a,b,c)};
g.C=function(a,b){function c(){}
c.prototype=b.prototype;a.aa=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.S0=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)}};
Ca=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,Ca);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};
g.Da=function(a,b){return 0==a.lastIndexOf(b,0)};
Ea=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.Fa=function(a){return(0,window.encodeURIComponent)(String(a))};
Ga=function(a){return(0,window.decodeURIComponent)(a.replace(/\+/g," "))};
Ha=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=pa.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}})};
Ia=function(a,b){a.length>b&&(a=a.substring(0,b-3)+"...");return a};
Ja=function(a,b){return-1!=a.indexOf(b)};
Ka=function(a,b){return Ja(a.toLowerCase(),b.toLowerCase())};
La=function(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
g.Na=function(a,b,c){a=g.t(c)?a.toFixed(c):String(a);c=a.indexOf(".");-1==c&&(c=a.length);return Ma("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.Oa=function(){return Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^(0,g.G)()).toString(36)};
g.Sa=function(a,b){for(var c=0,d=Pa(String(a)).split("."),e=Pa(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=Qa(0==l[1].length?0:(0,window.parseInt)(l[1],10),0==m[1].length?0:(0,window.parseInt)(m[1],10))||Qa(0==l[2].length,0==m[2].length)||Qa(l[2],m[2]);l=l[3];m=m[3]}while(0==c)}return c};
Qa=function(a,b){return a<b?-1:a>b?1:0};
g.Ta=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};
Ua=function(){return"goog_"+qaa++};
Va=function(a){var b=Number(a);return 0==b&&E(a)?window.NaN:b};
Wa=function(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})};
raa=function(a){var b=g.u(void 0)?La(void 0):"\\s";return a.replace(new RegExp("(^"+(b?"|["+b+"]+":"")+")([a-z])","g"),function(a,b,e){return b+e.toUpperCase()})};
Xa=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.Ya=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.$a=function(a,b,c){b=g.Za(a,b,c);return 0>b?null:g.u(a)?a.charAt(b):a[b]};
g.Za=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};
cb=function(a,b){var c=g.ab(a,b,void 0);return 0>c?null:g.u(a)?a.charAt(c):a[c]};
g.ab=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.eb=function(a,b){return 0<=(0,g.db)(a,b)};
g.fb=function(a){return 0==a.length};
gb=function(a){if(!g.sa(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0};
g.ib=function(a,b){g.eb(a,b)||a.push(b)};
g.kb=function(a,b){var c=(0,g.db)(a,b),d;(d=0<=c)&&g.jb(a,c);return d};
g.jb=function(a,b){Array.prototype.splice.call(a,b,1)};
lb=function(a,b){var c=g.Za(a,b,void 0);0<=c&&g.jb(a,c)};
g.nb=function(a){return Array.prototype.concat.apply([],arguments)};
g.ob=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[]};
pb=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(g.ta(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.rb=function(a,b,c,d){Array.prototype.splice.apply(a,g.qb(arguments,1))};
g.qb=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};
sb=function(a,b,c){function d(a){return g.va(a)?"o"+g.xa(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.wb=function(a,b,c){return ub(a,c||vb,!1,b)};
xb=function(a,b){return ub(a,b,!0,void 0,void 0)};
ub=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.yb=function(a,b){a.sort(b||vb)};
zb=function(a,b,c){var d=c||vb;g.yb(a,function(a,c){return d(b(a),b(c))})};
taa=function(a,b){zb(a,function(a){return a[b]},void 0)};
g.Ab=function(a,b){if(!g.ta(a)||!g.ta(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};
vb=function(a,b){return a>b?1:a<b?-1:0};
uaa=function(a,b){return a===b};
Bb=function(a,b,c){c=g.wb(a,b,c);0>c&&g.rb(a,-(c+1),0,b)};
g.Cb=function(a,b,c){var d={};(0,g.H)(a,function(e,f){d[b.call(c,e,f,a)]=e});
return d};
Db=function(a){for(var b=[],c=0;c<a;c++)b[c]=0;return b};
g.Eb=function(a){for(var b=[],c=0;c<arguments.length;c++){var d=arguments[c];if(g.sa(d))for(var e=0;e<d.length;e+=8192)for(var f=g.Eb.apply(null,g.qb(d,e,e+8192)),k=0;k<f.length;k++)b.push(f[k]);else b.push(d)}return b};
g.Fb=function(a){for(var b=[],c=0,d=0;d<a.length;d++){for(var e=a.charCodeAt(d);255<e;)b[c++]=e&255,e>>=8;b[c++]=e}return b};
vaa=function(a){return(0,g.I)(a,function(a){a=a.toString(16);return 1<a.length?a:"0"+a}).join("")};
Hb=function(a){return Ja(g.Gb,a)};
g.Ib=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};
g.Jb=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};
Kb=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1};
g.Lb=function(a){var b=0,c;for(c in a)b++;return b};
waa=function(a,b){return Mb(a,b)};
g.Nb=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};
g.Ob=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
g.Pb=function(a,b){for(var c=g.ta(b),d=c?b:arguments,c=c?0:1;c<d.length&&(a=a[d[c]],g.t(a));c++);return a};
Qb=function(a,b){return null!==a&&b in a};
Mb=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};
Rb=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d};
Sb=function(a,b){var c=Rb(a,b,void 0);return c&&a[c]};
g.Tb=function(a){for(var b in a)return!1;return!0};
Ub=function(a,b){b in a&&delete a[b]};
Vb=function(a,b,c){return null!==a&&b in a?a[b]:c};
g.Wb=function(a){var b={},c;for(c in a)b[c]=a[c];return b};
Xb=function(a){var b=ra(a);if("object"==b||"array"==b){if(g.ua(a.clone))return a.clone();var b="array"==b?[]:{},c;for(c in a)b[c]=Xb(a[c]);return b}return a};
g.ac=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<Yb.length;f++)c=Yb[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};
bc=function(a){var b=arguments.length;if(1==b&&g.sa(arguments[0]))return bc.apply(null,arguments[0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=!0;return c};
dc=function(){return Hb("Safari")&&!(cc()||Hb("Coast")||Hb("Opera")||Hb("Edge")||Hb("Silk")||Hb("Android"))};
cc=function(){return(Hb("Chrome")||Hb("CriOS"))&&!Hb("Edge")};
ec=function(){return Hb("iPhone")&&!Hb("iPod")&&!Hb("iPad")};
fc=function(){return ec()||Hb("iPad")||Hb("iPod")};
gc=function(a){gc[" "](a);return a};
hc=function(a,b){try{return gc(a[b]),!0}catch(c){}return!1};
yaa=function(a,b){var c=xaa;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)};
ic=function(){var a=pa.document;return a?a.documentMode:void 0};
g.kc=function(a){return yaa(a,function(){return 0<=g.Sa(jc,a)})};
g.lc=function(a){return Number(zaa)>=a};
g.pc=function(a,b){g.ta(a);mc();for(var c=b?nc:oc,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=n&63;m||(n=64,k||(l=64));d.push(c[q],c[f],c[l],c[n])}return d.join("")};
rc=function(a){var b=[];qc(a,function(a){b.push(a)});
return b};
tc=function(a){!g.sc||g.kc("10");var b=new window.Uint8Array(Math.ceil(3*a.length/4)),c=0;qc(a,function(a){b[c++]=a});
return b.subarray(0,c)};
qc=function(a,b){function c(b){for(;d<a.length;){var c=a.charAt(d++),e=uc[c];if(null!=e)return e;if(!E(c))throw Error("Unknown base64 encoding at char: "+c);}return b}
mc();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))}};
mc=function(){if(!oc){oc={};uc={};nc={};for(var a=0;65>a;a++)oc[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(a),uc[oc[a]]=a,nc[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(a),62<=a&&(uc["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(a)]=a)}};
yc=function(a,b,c){this.o=null;this.D=this.F=this.g=this.B=this.A=0;this.C=!1;a&&xc(this,a,b,c)};
Ac=function(a,b,c){if(zc.length){var d=zc.pop();a&&xc(d,a,b,c);return d}return new yc(a,b,c)};
xc=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?tc(b):new window.Uint8Array(0);a.o=b;a.A=g.t(c)?c:0;a.B=g.t(d)?a.A+d:a.o.length;a.g=a.A};
Bc=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};
Cc=function(a,b,c){this.g=Ac(a,b,c);this.o=this.A=-1;this.B=!1};
Dc=function(a){var b=a.g;if(b.g==b.B||a.getError())return!1;var b=Bc(a.g),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};
Ec=function(a){switch(a.o){case 0:if(0!=a.o)Ec(a);else{for(a=a.g;a.o[a.g]&128;)a.g++;a.g++}break;case 1:1!=a.o?Ec(a):(a=a.g,a.g+=8);break;case 2:if(2!=a.o)Ec(a);else{var b=Bc(a.g);a=a.g;a.g+=b}break;case 5:5!=a.o?Ec(a):(a=a.g,a.g+=4);break;case 3:b=[a.A];do{if(!Dc(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)}};
Fc=function(a){var b=Bc(a.g);a=a.g;for(var c,d,e=a.o,f=a.g,b=f+b,k=[],l="";f<b;){var m=e[f++];if(128>m)k.push(m);else if(192>m)continue;else if(224>m)d=e[f++],k.push((m&31)<<6|d&63);else if(240>m)d=e[f++],c=e[f++],k.push((m&15)<<12|(d&63)<<6|c&63);else if(248>m){d=e[f++];c=e[f++];var n=e[f++];c=(m&7)<<18|(d&63)<<12|(c&63)<<6|n&63;c-=65536;k.push((c>>10&1023)+55296,(c&1023)+56320)}8192<=k.length&&(l+=String.fromCharCode.apply(null,k),k.length=0)}l+=String.fromCharCode.apply(null,k);a.g=f;return l};
Gc=function(a){var b=Bc(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};
Aaa=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.Ic=function(a){try{return pa.JSON.parse(a)}catch(d){var b=d}a=String(a);if(Aaa(a))try{var c=eval("("+a+")");b&&Hc("Invalid JSON: "+a,b);return c}catch(d){}throw Error("Invalid JSON string: "+a);};
Baa=function(a){try{return pa.JSON.parse(a)}catch(d){var b=d}var c=eval("("+a+")");b&&Hc("Invalid JSON: "+a,b);return c};
g.Lc=function(a){return Jc(new Kc(void 0),a)};
Kc=function(a){this.g=a};
Jc=function(a,b){var c=[];Mc(a,b,c);return c.join("")};
Mc=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(g.sa(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),e=d[f],Mc(a,a.g?a.g.call(d,String(f),e):e,c),e=",";c.push("]");return}if(b instanceof String||b instanceof Number||b instanceof Boolean)b=b.valueOf();else{c.push("{");f="";for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(e=b[d],"function"!=typeof e&&(c.push(f),Nc(d,c),c.push(":"),Mc(a,a.g?a.g.call(b,d,e):e,c),f=","));c.push("}");return}}switch(typeof b){case "string":Nc(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);}}};
Nc=function(a,b){b.push('"',a.replace(Caa,function(a){var b=Oc[a];b||(b="\\u"+(a.charCodeAt(0)|65536).toString(16).substr(1),Oc[a]=b);return b}),'"')};
Pc=function(){};
Sc=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.sa(e)&&!(Qc&&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]||Rc):a.A[e]=a.A[e]||Rc;d&&d.length&&(0,g.H)(d,g.ya(Daa,a))};
J=function(a,b){if(b<a.C){var c=b+a.B;var d=a.o[c];return d===Rc?a.o[c]=[]:d}d=a.A[b];return d===Rc?a.A[b]=[]:d};
Eaa=function(a){if(null==a||a instanceof window.Uint8Array)return a;if(g.u(a))return tc(a);ra(a);return null};
Tc=function(a,b,c){b<a.C?a.o[b+a.B]=c:a.A[b]=c};
Daa=function(a,b){var c,d;(0,g.H)(b,function(b){var e=J(a,b);null!=e&&(c=b,d=e,Tc(a,b,void 0))});
return c?(Tc(a,c,d),c):0};
Uc=function(a,b,c){a.g||(a.g={});if(!a.g[c]){var d=J(a,c);d&&(a.g[c]=new b(d))}return a.g[c]};
Faa=function(a){var b=Vc;a.g||(a.g={});if(!a.g[1]){for(var c=J(a,1),d=[],e=0;e<c.length;e++)d[e]=new b(c[e]);a.g[1]=d}b=a.g[1];b==Rc&&(b=a.g[1]=[]);return b};
Xc=function(a){if(a.g)for(var b in a.g){var c=a.g[b];if(g.sa(c))for(var d=0;d<c.length;d++)c[d]&&Wc(c[d]);else c&&Wc(c)}};
Wc=function(a){Xc(a);return a.o};
Yc=function(a){var b;if(g.sa(a)){for(var c=Array(a.length),d=0;d<a.length;d++)null!=(b=a[d])&&(c[d]="object"==typeof b?Yc(b):b);return c}if(Qc&&a instanceof window.Uint8Array)return new window.Uint8Array(a);c={};for(d in a)null!=(b=a[d])&&(c[d]="object"==typeof b?Yc(b):b);return c};
Zc=function(a){Sc(this,a,null,null)};
ad=function(a){return Uc(a,$c,1)};
$c=function(a){Sc(this,a,null,null)};
cd=function(a){return Uc(a,bd,5)};
dd=function(a){Sc(this,a,null,Gaa)};
ed=function(a){Sc(this,a,null,Haa)};
fd=function(a){Sc(this,a,null,null)};
gd=function(a){Sc(this,a,null,null)};
hd=function(a){Sc(this,a,null,null)};
id=function(a){Sc(this,a,null,Iaa)};
jd=function(a){Sc(this,a,null,null)};
kd=function(a){Sc(this,a,null,null)};
ld=function(a){Sc(this,a,Jaa,null)};
Vc=function(a){Sc(this,a,null,null)};
bd=function(a){Sc(this,a,null,Kaa)};
nd=function(){this.g="";this.o=md};
od=function(a){return a instanceof nd&&a.constructor===nd&&a.o===md?a.g:"type_error:Const"};
pd=function(a){var b=new nd;b.g=a;return b};
rd=function(){this.g="";this.o=qd};
sd=function(a){var b=new rd;b.g=a;return b};
td=function(a,b){return b?a.replace(Laa,""):a};
ud=function(a,b){for(var c=0,d=0,e=!1,f=td(a,b).split(Maa),k=0;k<f.length;k++){var l=f[k];Naa.test(td(l,void 0))?(c++,d++):Oaa.test(l)?e=!0:Paa.test(td(l,void 0))?d++:Qaa.test(l)&&(e=!0)}return 0==d?e?1:0:.4<c/d?-1:1};
wd=function(){this.g="";this.o=vd};
xd=function(a){if(a instanceof wd&&a.constructor===wd&&a.o===vd)return a.g;ra(a);return"type_error:TrustedResourceUrl"};
yd=function(a){var b=new wd;b.g=a;return b};
Ad=function(){this.g="";this.o=zd};
Bd=function(a){if(a instanceof Ad&&a.constructor===Ad&&a.o===zd)return a.g;ra(a);return"type_error:SafeUrl"};
Dd=function(a){if(a instanceof Ad)return a;a=a.Zg?a.pg():String(a);Raa.test(a)||(a="about:invalid#zClosurez");return Cd(a)};
Cd=function(a){var b=new Ad;b.g=a;return b};
g.Fd=function(){this.g="";this.A=Ed;this.o=null};
g.Gd=function(a){if(a instanceof g.Fd&&a.constructor===g.Fd&&a.A===Ed)return a.g;ra(a);return"type_error:SafeHtml"};
Jd=function(a){if(a instanceof g.Fd)return a;var b=null;a.Mq&&(b=a.Ni());a=Ha(a.Zg?a.pg():String(a));return Hd(a,b)};
Saa=function(a){function b(a){g.sa(a)?(0,g.H)(a,b):(a=Jd(a),d+=g.Gd(a),a=a.Ni(),0==c?c=a:0!=a&&c!=a&&(c=null))}
var c=0,d="";(0,g.H)(arguments,b);return Hd(d,c)};
Hd=function(a,b){var c=new g.Fd;c.g=a;c.o=b;return c};
Ld=function(a,b,c){var d=null,e="";if(b)for(B in b){if(!Kd.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 nd)m=od(m);else if("style"==l.toLowerCase()){f=void 0;k=m;if(!g.va(k))throw Error('The "style" attribute requires goog.html.SafeStyle or map of style properties, '+typeof k+" given: "+k);if(!(k instanceof rd)){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 nd)n=od(n);else if(Taa.test(n)){for(var q=!0,r=!0,w=0;w<n.length;w++){var y=n.charAt(w);"'"==y&&r?q=!q:'"'==y&&q&&(r=!r)}q&&r||(n="zClosurez")}else n="zClosurez";m+=f+":"+n+";"}}k=m?sd(m):Uaa}k instanceof rd&&k.constructor===rd&&k.o===qd?f=k.g:(ra(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 Vaa)if(m instanceof wd)m=xd(m);else if(m instanceof Ad)m=Bd(m);else if(g.u(m))m=
Dd(m).pg();else throw Error('Attribute "'+l+'" on tag "'+k+'" requires goog.html.SafeUrl, goog.string.Const, or string, value "'+m+'" given.');}m.Zg&&(m=m.pg());l=l+'="'+Ha(String(m))+'"';e+=" "+l}}var B="<"+a+e;null!=c?g.sa(c)||(c=[c]):c=[];!0===Waa[a.toLowerCase()]?B+=">":(d=Saa(c),B+=">"+g.Gd(d)+"</"+a+">",d=d.Ni());(a=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(a)?d=0:d=null);return Hd(B,d)};
Md=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.Nd=function(a,b){var c=b instanceof Ad?b:Dd(b);a.href=Bd(c)};
Od=function(a,b){return Hd(b,null)};
g.Pd=function(a,b,c){return Math.min(Math.max(a,b),c)};
g.Qd=function(a,b){var c=a%b;return 0>c*b?c+b:c};
Rd=function(a,b,c){return a+c*(b-a)};
Xaa=function(a){return Sd(arguments,function(a,c){return a+c},0)};
Yaa=function(a){return Xaa.apply(null,arguments)/arguments.length};
g.Td=function(a,b){this.x=g.t(a)?a:0;this.y=g.t(b)?b:0};
Ud=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1};
g.Vd=function(a,b){return new g.Td(a.x-b.x,a.y-b.y)};
g.Wd=function(a,b){this.width=a;this.height=b};
g.Xd=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};
g.ae=function(a){return a?new Yd(g.Zd(a)):$d||($d=new Yd)};
g.be=function(a){return g.u(a)?window.document.getElementById(a):a};
g.de=function(a,b){var c=b||window.document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):g.ce("*",a,b)};
g.L=function(a,b){var c=b||window.document,d=null;c.getElementsByClassName?d=c.getElementsByClassName(a)[0]:c.querySelectorAll&&c.querySelector?d=c.querySelector("."+a):d=g.ce("*",a,b)[0];return d||null};
g.ce=function(a,b,c){var d=window.document;c=c||d;var e=a&&"*"!=a?String(a).toUpperCase():"";if(c.querySelectorAll&&c.querySelector&&(e||b))return c.querySelectorAll(e+(b?"."+b:""));if(b&&c.getElementsByClassName){d=c.getElementsByClassName(b);if(e){c={};for(var f=a=0,k;k=d[f];f++)e==k.nodeName&&(c[a++]=k);c.length=a;return c}return d}d=c.getElementsByTagName(e||"*");if(b){c={};for(f=a=0;k=d[f];f++)e=k.className,"function"==typeof e.split&&g.eb(e.split(/\s+/),b)&&(c[a++]=k);c.length=a;return c}return d};
g.fe=function(a,b){g.Ib(b,function(b,d){b&&b.Zg&&(b=b.pg());"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:ee.hasOwnProperty(d)?a.setAttribute(ee[d],b):g.Da(d,"aria-")||g.Da(d,"data-")?a.setAttribute(d,b):a[d]=b})};
g.he=function(a){a=a.document;a=g.ge(a)?a.documentElement:a.body;return new g.Wd(a.clientWidth,a.clientHeight)};
g.je=function(a){var b=ie(a);a=a.parentWindow||a.defaultView;return g.sc&&g.kc("10")&&a.pageYOffset!=b.scrollTop?new g.Td(b.scrollLeft,b.scrollTop):new g.Td(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};
ie=function(a){return a.scrollingElement?a.scrollingElement:!g.ke&&g.ge(a)?a.documentElement:a.body||a.documentElement};
le=function(a){return a?a.parentWindow||a.defaultView:window};
g.ne=function(a,b,c){return me(window.document,arguments)};
me=function(a,b){var c=String(b[0]),d=b[1];if(!Zaa&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',Ha(d.name),'"');if(d.type){c.push(' type="',Ha(d.type),'"');var e={};g.ac(e,d);delete e.type;d=e}c.push(">");c=c.join("")}c=a.createElement(c);d&&(g.u(d)?c.className=d:g.sa(d)?c.className=d.join(" "):g.fe(c,d));2<b.length&&oe(a,c,b,2);return c};
oe=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.ta(f)||g.va(f)&&0<f.nodeType?e(f):(0,g.H)($aa(f)?g.ob(f):f,e)}};
g.pe=function(a){return window.document.createElement(String(a))};
g.qe=function(a){return window.document.createTextNode(String(a))};
g.ge=function(a){return"CSS1Compat"==a.compatMode};
g.re=function(a,b){a.appendChild(b)};
g.se=function(a,b){oe(g.Zd(a),a,arguments,1)};
g.te=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};
g.ue=function(a,b){b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling)};
ve=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)};
g.we=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null};
g.xe=function(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)};
g.ze=function(a){return aba&&void 0!=a.children?a.children:(0,g.ye)(a.childNodes,function(a){return 1==a.nodeType})};
g.Be=function(a){return g.t(a.firstElementChild)?a.firstElementChild:Ae(a.firstChild)};
Ae=function(a){for(;a&&1!=a.nodeType;)a=a.nextSibling;return a};
g.Ce=function(a){var b;if(bba&&!(g.sc&&g.kc("9")&&!g.kc("10")&&pa.SVGElement&&a instanceof pa.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return g.va(b)&&1==b.nodeType?b:null};
g.De=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.Zd=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document};
Ee=function(a){try{return a.contentWindow||(a.contentDocument?le(a.contentDocument):null)}catch(b){}return null};
g.Fe=function(a,b){if("textContent"in a)a.textContent=b;else if(3==a.nodeType)a.data=b;else if(a.firstChild&&3==a.firstChild.nodeType){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=b}else g.te(a),a.appendChild(g.Zd(a).createTextNode(String(b)))};
Ge=function(a){if("outerHTML"in a)return a.outerHTML;var b=g.Zd(a).createElement("DIV");b.appendChild(a.cloneNode(!0));return b.innerHTML};
g.Je=function(a){var b;if((b="A"==a.tagName||"INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"BUTTON"==a.tagName?!a.disabled&&(!He(a)||Ie(a)):He(a)&&Ie(a))&&g.sc){var c;!g.ua(a.getBoundingClientRect)||g.sc&&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};
He=function(a){return g.sc&&!g.kc("9")?(a=a.getAttributeNode("tabindex"),null!=a&&a.specified):a.hasAttribute("tabindex")};
Ie=function(a){a=a.tabIndex;return g.oa(a)&&0<=a&&32768>a};
$aa=function(a){if(a&&"number"==typeof a.length){if(g.va(a))return"function"==typeof a.item||"string"==typeof a.item;if(g.ua(a))return"function"==typeof a.item}return!1};
g.Le=function(a,b,c,d){if(!b&&!c)return null;var e=b?String(b).toUpperCase():null;return g.Ke(a,function(a){return(!e||a.nodeName==e)&&(!c||g.u(a.className)&&g.eb(a.className.split(/\s+/),c))},!0,d)};
g.Me=function(a,b){return g.Le(a,null,b,void 0)};
g.Ke=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.Ne=function(){var a=window.document;try{return a&&a.activeElement}catch(b){}return null};
Yd=function(a){this.g=a||pa.document||window.document};
g.Oe=function(a){a=a.g;return a.parentWindow||a.defaultView};
Pe=function(a){for(var b=[],c=a=le(a.ownerDocument);c!=a.top;c=c.parent)if(c.frameElement)b.push(c.frameElement);else break;return b};
g.M=function(){this.Za=this.Za;this.Sa=this.Sa};
g.N=function(a,b){g.Qe(a,g.ya(g.Re,b))};
g.Qe=function(a,b){a.Za?g.t(void 0)?b.call(void 0):b():(a.Sa||(a.Sa=[]),a.Sa.push(g.t(void 0)?(0,g.A)(b,void 0):b))};
g.Re=function(a){a&&"function"==typeof a.dispose&&a.dispose()};
g.Se=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];g.ta(d)?g.Se.apply(null,d):g.Re(d)}};
g.Te=function(a,b){this.type=a;this.currentTarget=this.target=b;this.o=!1;this.yA=!0};
Ue=function(a){a.stopPropagation()};
We=function(a){return g.ke?"webkit"+a:g.Ve?"o"+a.toLowerCase():a.toLowerCase()};
Xe=function(a,b){g.Te.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.Ze=function(a){return!(!a||!a[g.Ye])};
dba=function(a,b,c,d,e){this.listener=a;this.g=null;this.src=b;this.type=c;this.capture=!!d;this.Df=e;this.key=++cba;this.xj=this.Rl=!1};
$e=function(a){a.xj=!0;a.listener=null;a.g=null;a.src=null;a.Df=null};
af=function(a){this.src=a;this.listeners={};this.g=0};
cf=function(a,b,c,d,e,f){var k=b.toString();b=a.listeners[k];b||(b=a.listeners[k]=[],a.g++);var l=bf(b,c,e,f);-1<l?(a=b[l],d||(a.Rl=!1)):(a=new dba(c,a.src,k,!!e,f),a.Rl=d,b.push(a));return a};
df=function(a,b){var c=b.type;if(!(c in a.listeners))return!1;var d=g.kb(a.listeners[c],b);d&&($e(b),0==a.listeners[c].length&&(delete a.listeners[c],a.g--));return d};
g.ef=function(a){var b=0,c;for(c in a.listeners){for(var d=a.listeners[c],e=0;e<d.length;e++)++b,$e(d[e]);delete a.listeners[c];a.g--}};
ff=function(a,b,c,d,e){a=a.listeners[b.toString()];b=-1;a&&(b=bf(a,c,d,e));return-1<b?a[b]:null};
gf=function(a,b){var c=g.t(b),d=c?b.toString():"",e=g.t(void 0);return Kb(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})};
bf=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.xj&&f.listener==b&&f.capture==!!c&&f.Df==d)return e}return-1};
g.hf=function(a,b,c,d,e){if(g.sa(b)){for(var f=0;f<b.length;f++)g.hf(a,b[f],c,d,e);return null}c=jf(c);return g.Ze(a)?a.X(b,c,d,e):kf(a,b,c,!1,d,e)};
kf=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var k=!!e,l=g.lf(a);l||(a[mf]=l=new af(a));c=cf(l,b,c,d,e,f);if(c.g)return c;d=eba();c.g=d;d.src=a;d.listener=c;if(a.addEventListener)a.addEventListener(b.toString(),d,k);else if(a.attachEvent)a.attachEvent(nf(b.toString()),d);else throw Error("addEventListener and attachEvent are unavailable.");of++;return c};
eba=function(){var a=fba,b=pf?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};
qf=function(a,b,c,d,e){if(g.sa(b)){for(var f=0;f<b.length;f++)qf(a,b[f],c,d,e);return null}c=jf(c);return g.Ze(a)?cf(a.xe,String(b),c,!0,d,e):kf(a,b,c,!0,d,e)};
g.rf=function(a,b,c,d,e){if(g.sa(b))for(var f=0;f<b.length;f++)g.rf(a,b[f],c,d,e);else c=jf(c),g.Ze(a)?a.za(b,c,d,e):a&&(a=g.lf(a))&&(b=ff(a,b,c,!!d,e))&&g.sf(b)};
g.sf=function(a){if(g.oa(a)||!a||a.xj)return!1;var b=a.src;if(g.Ze(b))return df(b.xe,a);var c=a.type,d=a.g;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent&&b.detachEvent(nf(c),d);of--;(c=g.lf(b))?(df(c,a),0==c.g&&(c.src=null,b[mf]=null)):$e(a);return!0};
nf=function(a){return a in tf?tf[a]:tf[a]="on"+a};
vf=function(a,b,c,d){var e=!0;if(a=g.lf(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.xj&&(f=uf(f,d),e=e&&!1!==f)}return e};
uf=function(a,b){var c=a.listener,d=a.Df||a.src;a.Rl&&g.sf(a);return c.call(d,b)};
fba=function(a,b){if(a.xj)return!0;if(!pf){var c=b||g.x("window.event");var d=new Xe(c,this);var e=!0;if(!(0>c.keyCode||void 0!=c.returnValue)){a:{var f=!1;if(0==c.keyCode)try{c.keyCode=-1;break a}catch(m){f=!0}if(f||void 0==c.returnValue)c.returnValue=!0}c=[];for(f=d.currentTarget;f;f=f.parentNode)c.push(f);f=a.type;for(var k=c.length-1;!d.o&&0<=k;k--){d.currentTarget=c[k];var l=vf(c[k],f,!0,d);e=e&&l}for(k=0;!d.o&&k<c.length;k++)d.currentTarget=c[k],l=vf(c[k],f,!1,d),e=e&&l}return e}return uf(a,
new Xe(b,this))};
g.lf=function(a){a=a[mf];return a instanceof af?a:null};
jf=function(a){if(g.ua(a))return a;a[wf]||(a[wf]=function(b){return a.handleEvent(b)});
return a[wf]};
g.xf=function(){g.M.call(this);this.xe=new af(this);this.oc=this;this.Na=null};
yf=function(a,b,c,d){b=a.xe.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.xj&&k.capture==c){var l=k.listener,m=k.Df||k.src;k.Rl&&df(a.xe,k);e=!1!==l.call(m,d)&&e}}return e&&0!=d.yA};
zf=function(a,b,c){this.C=c;this.A=a;this.B=b;this.o=0;this.g=null};
Af=function(a,b){a.B(b);a.o<a.C&&(a.o++,b.next=a.g,a.g=b)};
Bf=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))}};
Cf=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}};
Df=function(a){pa.setTimeout(function(){throw a;},0)};
Ff=function(a,b){var c=a;b&&(c=(0,g.A)(a,b));!g.ua(pa.setImmediate)||pa.Window&&pa.Window.prototype&&!Hb("Edge")&&pa.Window.prototype.setImmediate==pa.setImmediate?(Ef||(Ef=hba()),Ef(c)):pa.setImmediate(c)};
hba=function(){var a=pa.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!Hb("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&&!Hb("Trident")&&!Hb("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(g.t(c.next)){c=c.next;var a=c.Uu;c.Uu=null;a()}};
return function(a){d.next={Uu: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){pa.setTimeout(a,0)}};
Gf=function(){this.o=this.g=null};
Hf=function(){this.next=this.scope=this.g=null};
g.Mf=function(a,b){If||iba();Jf||(If(),Jf=!0);var c=Kf,d=Lf.get();d.set(a,b);c.o?c.o.next=d:c.g=d;c.o=d};
iba=function(){if(-1!=String(pa.Promise).indexOf("[native code]")){var a=pa.Promise.resolve(void 0);If=function(){a.then(Nf)}}else If=function(){Ff(Nf)}};
Nf=function(){for(var a;a=Kf.remove();){try{a.g.call(a.scope)}catch(b){Df(b)}Af(Lf,a)}Jf=!1};
Of=function(a){a.prototype.then=a.prototype.then;a.prototype.$goog_Thenable=!0};
Pf=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};
g.Rf=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.z)try{var c=this;a.call(b,function(a){Qf(c,2,a)},function(a){Qf(c,3,a)})}catch(d){Qf(this,3,d)}};
Sf=function(){this.next=this.context=this.o=this.B=this.g=null;this.A=!1};
Uf=function(a,b,c){var d=Tf.get();d.B=a;d.o=b;d.context=c;return d};
Vf=function(a){if(a instanceof g.Rf)return a;var b=new g.Rf(g.z);Qf(b,2,a);return b};
Wf=function(a){return new g.Rf(function(b,c){c(a)})};
g.Yf=function(a,b,c){Xf(a,b,c,null)||g.Mf(g.ya(b,a))};
jba=function(a){return new g.Rf(function(b,c){a.length||b(void 0);for(var d=0,e;d<a.length;d++)e=a[d],g.Yf(e,b,c)})};
lba=function(){var a,b,c=new g.Rf(function(c,e){a=c;b=e});
return new kba(c,a,b)};
mba=function(a,b){var c=Uf(b,b,void 0);c.A=!0;Zf(a,c)};
g.cg=function(a,b){return bg(a,null,b,void 0)};
dg=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?dg(c,b):(f?(d=f,d.next==c.B&&(c.B=d),d.next=d.next.next):eg(c),fg(c,e,3,b)))}a.A=null}else Qf(a,3,b)};
Zf=function(a,b){a.o||2!=a.g&&3!=a.g||gg(a);a.B?a.B.next=b:a.o=b;a.B=b};
bg=function(a,b,c,d){var e=Uf(null,null,null);e.g=new g.Rf(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 hg?k(b):a(e)}catch(n){k(n)}}:k});
e.g.A=a;Zf(a,e);return e.g};
Qf=function(a,b,c){0==a.g&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.g=1,Xf(c,a.J,a.K,a)||(a.F=c,a.g=b,a.A=null,gg(a),3!=b||c instanceof hg||nba(a,c)))};
Xf=function(a,b,c,d){if(a instanceof g.Rf)return Zf(a,Uf(b||g.z,c||null,d)),!0;if(Pf(a))return a.then(b,c,d),!0;if(g.va(a))try{var e=a.then;if(g.ua(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)}};
gg=function(a){a.D||(a.D=!0,g.Mf(a.G,a))};
eg=function(a){var b=null;a.o&&(b=a.o,a.o=b.next,b.next=null);a.o||(a.B=null);return b};
fg=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,ig(b,c,d);else try{b.A?b.B.call(b.context):ig(b,c,d)}catch(e){jg.call(null,e)}Af(Tf,b)};
ig=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.Mf(function(){a.C&&jg.call(null,b)})};
hg=function(a){Ca.call(this,a)};
kba=function(a,b,c){this.g=a;this.resolve=b;this.reject=c};
g.kg=function(a,b){g.xf.call(this);this.o=a||1;this.g=b||pa;this.A=(0,g.A)(this.nG,this);this.B=(0,g.G)()};
lg=function(a,b){a.o=b;a.Be&&a.enabled?(a.stop(),a.start()):a.Be&&a.stop()};
g.mg=function(a,b,c){if(g.ua(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:pa.setTimeout(a,b||0)};
g.ng=function(a){pa.clearTimeout(a)};
og=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:og()};
qba=function(){this.o=-1};
pg=function(a){this.g=a||{cookie:""}};
qg=function(a){a=(a.g.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=Pa(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.rg=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.sg=function(a){return a.match(rba)};
g.tg=function(a){return a?(0,window.decodeURI)(a):a};
g.ug=function(a){return g.tg(g.sg(a)[3]||null)};
g.vg=function(a){return Number(g.sg(a)[4]||null)||null};
wg=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?Ga(f):"")}};
xg=function(a){if(a[1]){var b=a[0],c=b.indexOf("#");0<=c&&(a.push(b.substr(c)),a[0]=b=b.substr(0,c));c=b.indexOf("?");0>c?a[1]="?":c==b.length-1&&(a[1]=void 0)}return a.join("")};
yg=function(a,b,c){if(g.sa(b))for(var d=0;d<b.length;d++)yg(a,String(b[d]),c);else null!=b&&c.push("&",a,""===b?"":"=",g.Fa(b))};
zg=function(a,b,c){for(c=c||0;c<b.length;c+=2)yg(b[c],b[c+1],a);return a};
Ag=function(a,b){for(var c in b)yg(c,b[c],a);return a};
g.Bg=function(a){a=Ag([],a);a[0]="";return a.join("")};
Cg=function(a,b){return xg(2==arguments.length?zg([a],arguments[1],0):zg([a],arguments,1))};
g.Dg=function(a,b){return xg(Ag([a],b))};
Eg=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};
Gg=function(a,b){var c=a.search(Fg),d=Eg(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 Ga(a.substr(d,e-d))};
g.Hg=function(a,b){for(var c=a.search(Fg),d=0,e,f=[];0<=(e=Eg(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(sba,"$1")};
Ig=function(a,b,c){a=[g.Hg(a,b),"&",b];null!=c&&a.push("=",g.Fa(c));return xg(a)};
Jg=function(){this.g={};return this};
Kg=function(a,b){a.g.eb=Vb(a.g,"eb",0)|b};
g.Lg=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};
Mg=function(a,b,c){b instanceof g.Td?(a.left+=b.x,a.right+=b.x,a.top+=b.y,a.bottom+=b.y):(a.left+=b,a.right+=b,g.oa(c)&&(a.top+=c,a.bottom+=c));return a};
g.Ng=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};
g.Og=function(a){return new g.Lg(a.top,a.left+a.width,a.top+a.height,a.left)};
g.Qg=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.Rg=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.Sg=function(a){return new g.Wd(a.width,a.height)};
g.Tg=function(a){return new g.Td(a.left,a.top)};
tba=function(){this.g={};this.o=0};
Ug=function(a,b){this.C=a;this.A=!0;this.g=b};
Vg=function(a,b){Ug.call(this,String(a),b);this.B=a;this.g=!!b};
Wg=function(a,b){Ug.call(this,a,b)};
Xg=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 Wg("",new g.Ng(c,b,Number(a[3])-c,Number(a[2])-b))}return new Wg("",new g.Ng(0,0,0,0))};
Zg=function(){Yg||(Yg=new tba);return Yg};
$g=function(a,b){a.g[b.C]=b};
g.bh=function(a,b,c){if(g.u(b))(b=ah(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=ah(c,d);f&&(c.style[f]=e)}};
ah=function(a,b){var c=ch[b];if(!c){var d=Wa(b),c=d;void 0===a.style[d]&&(d=(g.ke?"Webkit":g.dh?"Moz":g.sc?"ms":g.Ve?"O":null)+raa(d),void 0!==a.style[d]&&(c=d));ch[b]=c}return c};
eh=function(a,b){var c=a.style[Wa(b)];return"undefined"!==typeof c?c:a.style[ah(a,b)]||""};
g.fh=function(a,b){var c=g.Zd(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""};
g.gh=function(a,b){return g.fh(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]};
g.ih=function(a,b,c){if(b instanceof g.Td){var d=b.x;b=b.y}else d=b,b=c;a.style.left=hh(d,!1);a.style.top=hh(b,!1)};
jh=function(a){return new g.Td(a.offsetLeft,a.offsetTop)};
kh=function(a){try{var b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}g.sc&&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.lh=function(a){if(g.sc&&!g.lc(8))return a.offsetParent;var b=g.Zd(a),c=g.gh(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.gh(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.nh=function(a){for(var b=new g.Lg(0,window.Infinity,window.Infinity,0),c=g.ae(a),d=c.g.body,e=c.g.documentElement,f=ie(c.g);a=g.lh(a);)if(!(g.sc&&0==a.clientWidth||g.ke&&0==a.clientHeight&&a==d)&&a!=d&&a!=e&&"visible"!=g.gh(a,"overflow")){var k=g.mh(a),l=new g.Td(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.he(g.Oe(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.mh=function(a){var b=g.Zd(a),c=new g.Td(0,0);var d=b?g.Zd(b):window.document;d=!g.sc||g.lc(9)||g.ge(g.ae(d).g)?d.documentElement:d.body;if(a==d)return c;a=kh(a);b=g.je(g.ae(b).g);c.x=a.left+b.x;c.y=a.top+b.y;return c};
g.ph=function(a,b){var c=new g.Td(0,0),d=le(g.Zd(a));if(!hc(d,"parent"))return c;var e=a;do{var f=d==b?g.mh(e):oh(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.rh=function(a,b){var c=g.qh(a),d=g.qh(b);return new g.Td(c.x-d.x,c.y-d.y)};
oh=function(a){a=kh(a);return new g.Td(a.left,a.top)};
g.qh=function(a){if(1==a.nodeType)return oh(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.Td(a.clientX,a.clientY)};
g.th=function(a,b,c){if(b instanceof g.Wd)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");g.sh(a,b);a.style.height=hh(c,!0)};
hh=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a};
g.sh=function(a,b){a.style.width=hh(b,!0)};
g.uh=function(a){var b=uba;if("none"!=g.gh(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};
uba=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.ke&&!b&&!c;return g.t(b)&&!d||!a.getBoundingClientRect?new g.Wd(b,c):(a=kh(a),new g.Wd(a.right-a.left,a.bottom-a.top))};
g.vh=function(a){var b=g.mh(a);a=g.uh(a);return new g.Ng(b.x,b.y,a.width,a.height)};
g.wh=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.xh=function(a){return"none"!=a.style.display};
yh=function(a){var b=new g.Ng(-Number.MAX_VALUE/2,-Number.MAX_VALUE/2,Number.MAX_VALUE,Number.MAX_VALUE),c=new g.Ng(0,0,0,0);if(!a||0==a.length)return c;for(var d=0;d<a.length;d++)if(!g.Rg(b,a[d]))return c;return b};
zh=function(a,b){var c=a.getBoundingClientRect(),d=g.ph(a,b);return new g.Ng(Math.round(d.x),Math.round(d.y),Math.round(c.right-c.left),Math.round(c.bottom-c.top))};
Ah=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.Ng(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;$g(a,new Ug("vp",d));d&&0<d?(e=g.Og(b),f=g.Og(c),e=e.top>=f.top&&e.top<f.bottom):e=!1;$g(a,new Vg(512,e));d&&0<d?(e=g.Og(b),f=g.Og(c),e=e.bottom<=f.bottom&&e.bottom>f.top):e=!1;$g(a,new Vg(1024,
e));d&&0<d?(e=g.Og(b),f=g.Og(c),e=e.left>=f.left&&e.left<f.right):e=!1;$g(a,new Vg(2048,e));d&&0<d?(b=g.Og(b),c=g.Og(c),c=b.right<=c.right&&b.right>c.left):c=!1;$g(a,new Vg(4096,c))}};
vba=function(a,b){var c=0;g.Pb(le(),"ima","video","client","tagged")&&(c=1);var d=null;a&&(d=a());if(d){var e=d;d=Zg();d.g={};var f=new Vg(32,!0);f.A=!1;$g(d,f);f=le().document;f=f.webkitVisibilityState||f.mozVisibilityState||f.visibilityState||f.msVisibilityState||"";$g(d,new Vg(64,"hidden"!=f.toLowerCase().substring(f.length-6)?!0:!1));try{var k=le().top;try{var l=!!k.location.href||""===k.location.href}catch(r){l=!1}if(l){var m=Pe(e);var n=m&&0!=m.length?"1":"0"}else n="2"}catch(r){n="2"}$g(d,
new Vg(256,"2"==n));$g(d,new Vg(128,"1"==n));m=l=le().top;"2"==n&&(m=le());k=zh(e,m);$g(d,new Wg("er",k));try{var q=m.document&&!m.document.body?null:g.he(m||window)}catch(r){q=null}q?(m=g.je(g.ae(m.document).g),$g(d,new Vg(16384,!!m)),q=m?new g.Ng(m.x,m.y,q.width,q.height):null):q=null;$g(d,new Wg("vi",q));if(q&&"1"==n){n=Pe(e);e=[];for(m=0;m<n.length;m++)(f=zh(n[m],l))&&e.push(f);e.push(q);q=yh(e)}Ah(d,k,q);d.o&&(n=og()-d.o,$g(d,new Ug("ts",n)));d.o=og()}else d=Zg(),d.g={},d.o=og(),$g(d,new Vg(32,
!1));this.A=d;this.g=new Jg;this.g.set("ve",4);c&&Kg(this.g,1);g.Pb(le(),"ima","video","client","crossdomainTag")&&Kg(this.g,4);g.Pb(le(),"ima","video","client","sdkTag")&&Kg(this.g,8);g.Pb(le(),"ima","video","client","jsTag")&&Kg(this.g,2);b&&Vb(b,"fullscreen",!1)&&Kg(this.g,16);this.o=d=null;if(c&&(c=g.Pb(le(),"ima","video","client"),c.getEData)){this.o=c.getEData();if(c=g.Pb(le(),"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=Xg(d).getValue(),n=Xg(n).getValue(),e=null,Vb(c.g,"er",null)&&(e=Vb(c.g,"er",null).getValue(),e.top+=d.top,e.left+=d.left,$g(c,new Wg("er",e))),Vb(c.g,"vi",null)&&(q=Vb(c.g,"vi",null).getValue(),q.top+=d.top,q.left+=d.left,l=[],l.push(q),l.push(d),l.push(n),d=yh(l),Ah(c,e,d),$g(c,new Wg("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",og()-pba(d))};
wba=function(a,b){try{var c=new vba(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 y=r.g[w];if(y instanceof Vg)y.getValue()&&(f|=y.B);else{var B,D=r.g[w];(B=D.A?D.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(K){return"tle;"+Ia(K.name,12)+";"+Ia(K.message,40)}};
g.Bh=function(){var a=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return a?(0,window.parseInt)(a[1],10):0};
Ch=function(a){return!!window.document.currentScript&&(-1!=window.document.currentScript.src.indexOf("?"+a)||-1!=window.document.currentScript.src.indexOf("&"+a))};
g.Dh=function(){return"function"==typeof window.__onGCastApiAvailable?window.__onGCastApiAvailable:null};
xba=function(a,b){var c=new window.XMLHttpRequest;c.onreadystatechange=function(){4==c.readyState&&200==c.status&&b(!0)};
c.onerror=function(){b(!1)};
try{c.open("GET",a,!0),c.send()}catch(d){b(!1)}};
g.Jh=function(a){if(a>=Eh.length)g.Fh();else{var b=Eh[a],c="chrome-extension://"+b+g.Gh;0<=Hh.indexOf(b)?xba(c,function(d){d?(window.chrome.cast=window.chrome.cast||{},window.chrome.cast.extensionId=b,g.Ih(c,g.Fh)):g.Jh(a+1)}):g.Ih(c,function(){g.Jh(a+1)})}};
g.Ih=function(a,b,c){var d=window.document.createElement("script");d.onerror=b;c&&(d.onload=c);d.src=a;(window.document.head||window.document.documentElement).appendChild(d)};
g.Fh=function(){var a=g.Dh();a&&a(!1,"No cast extension found")};
Kh=function(a,b,c){this.type=a;this.label=b;this.Vd=c};
Lh=function(a,b){return new Kh(a,1,b)};
Mh=function(a){return new Kh("m",3,a)};
Nh=function(a){return Lh("m",a)};
Oh=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)?Oh(a,b,void 0,d):a:c};
Ph=function(a){try{return!!a&&null!=a.location.href&&hc(a,"foo")}catch(b){return!1}};
Qh=function(a,b){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.call(void 0,a[c],c,a)};
yba=function(a){var b=0;Qh(a,function(){b++});
return b};
zba=function(){var a=pa;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};
Aba=function(){var a=Rh;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""};
Th=function(a,b,c,d){a.addEventListener?a.addEventListener(b,c,Sh?d:d?d.capture||!1:!1):a.attachEvent&&a.attachEvent("on"+b,c)};
Uh=function(a,b,c){a.removeEventListener?a.removeEventListener(b,c,Sh?void 0:!1):a.detachEvent&&a.detachEvent("on"+b,c)};
Vh=function(a){a=a||pa;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};
Wh=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);Uh(d,"load",e);Uh(d,"error",e)};
Th(d,"load",e);Th(d,"error",e)}d.src=b;a.google_image_requests.push(d)};
Yh=function(a){a.u_tz=-(new Date).getTimezoneOffset();try{var b=Xh.history.length}catch(c){b=0}a.u_his=b;if(b=!!Xh.navigator)b="unknown"!==typeof Xh.navigator.javaEnabled;a.u_java=b&&!!Xh.navigator.javaEnabled&&Xh.navigator.javaEnabled();Xh.screen&&(a.u_h=Xh.screen.height,a.u_w=Xh.screen.width,a.u_ah=Xh.screen.availHeight,a.u_aw=Xh.screen.availWidth,a.u_cd=Xh.screen.colorDepth);Xh.navigator&&Xh.navigator.plugins&&(a.u_nplug=Xh.navigator.plugins.length);Xh.navigator&&Xh.navigator.mimeTypes&&(a.u_nmime=
Xh.navigator.mimeTypes.length)};
bi=function(){if(Zh&&!Ph($h)){var a="."+ai.domain;try{for(;2<a.split(".").length&&!Ph($h);)ai.domain=a=a.substr(a.indexOf(".")+1),$h=window.parent}catch(b){}Ph($h)||($h=window)}return $h};
di=function(){var a=window.event||ci;if(!a)return null;var b;(b=a.which?1<<Bba[a.which-1]:a.button)&&a.shiftKey&&(b|=8);b&&a.altKey&&(b|=16);b&&a.ctrlKey&&(b|=32);return b};
ei=function(){this.g=!0};
fi=function(){return{visible:1,hidden:2,prerender:3,preview:4}[ai.webkitVisibilityState||ai.mozVisibilityState||ai.visibilityState||""]||0};
ii=function(){var a=Xh&&Xh.document;gi.e=-1;gi.i=6;gi.n=7;gi.t=8;if(!hi){var b=[];Qh(gi,function(a,c){b[a+1]=c});
var c=b.join("");hi=(c=a&&a[c])&&(0,g.A)(c,a)}return hi};
ji=function(a){a=a.match(/[\d]+/g);if(!a)return"";a.length=3;return a.join(".")};
ki=function(a){return(a=a.exec(g.Gb))?a[1]:""};
li=function(a){return 0<=g.Sa(Cba,a)};
pi=function(){return g.sc&&9>jc||g.dh||mi&&ni&&li("6.0.1")?!1:0<=g.Sa(oi,"11")};
si=function(a){a=a||!1;var b=qi&&0<=g.Sa(ri,9),c=ni&&g.kc(601);return!a&&(b||c)};
ti=function(){this.g=0;this.C=!1;this.o=-1;this.D=0;this.A=!1};
Dba=function(a,b){this.g=a;this.o=b};
ui=function(a,b,c){this.url=a;this.Ws=b;this.lx=!!c;this.depth=g.oa(void 0)?void 0:null};
wi=function(a){a=a?a:vi();for(var b=new ui(pa.location.href,pa,!1),c=a.length-1,d=c;0<=d;--d){var e=a[d];if(e.url&&!e.lx){b=e;break}}d=null;e=a.length&&a[c].url;0!=b.depth&&e&&(d=a[c]);return new Dba(b,d)};
vi=function(){var a=pa,b=[],c=null;do{var d=a;if(Ph(d)){var e=d.location.href;c=d.document&&d.document.referrer||null}else e=c,c=null;b.push(new ui(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=pa;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.lx=!0);return b};
xi=function(a,b){var c=a||Xh;null!==c&&c.top!=c&&(c=c.top);try{return c.document&&!c.document.body?new g.Wd(-1,-1):b?(new g.Wd(c.innerWidth,c.innerHeight)).round():g.he(c||window).round()}catch(d){return new g.Wd(-12245933,-12245933)}};
Di=function(a){var b=0<=yi?zi()-yi:-1,c=Ai?zi()-Bi:-1,d=0<=Ci?zi()-Ci:-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(var k,b=0;b<a.length;++b)if(f<a[b]){k=e[b];break}void 0===k&&(k=e[a.length]);return-1!=d&&1500<d&&4E3>d?500:k};
zi=function(){return(new Date).getTime()-Eba};
Ei=function(){var a=g.ne("DIV");a.style.cssText="position:relative;left:0px;top:0px;width:0;height:0;";return a};
Gba=function(a){return Fi(a,function(a,c){return!(!hc(c,"style")||!c.style||"none"!==eh(c,"display"))},function(a){return a},!1)?!0:Fba(a)};
Fba=function(a){var b=!g.sc||g.kc(8);return Fi(a,function(a,d){var c=hc(d,"style")&&d.style&&eh(d,"visibility");return{hidden:"hidden"===c,visible:b&&"visible"===c}},function(a){return a.hidden||a.visible},{hidden:!1,
visible:!1}).hidden};
Fi=function(a,b,c,d){if(!a)return d;d=Gi(a,b,c,d);if(!d.done)try{var e=g.Zd(a),f=e&&le(e);return Fi(f&&f.frameElement,b,c,d.value)}catch(k){}return d.value};
Gi=function(a,b,c,d){if(!a)return{value:d,done:!1};d=b(d,a);var e=c(d,a);return!e&&hc(a,"parentElement")?Gi(g.Ce(a),b,c,d):{done:e,value:d}};
Hi=function(a){return new g.Lg(a.top,a.right,a.bottom,a.left)};
Ii=function(a){return null!=a&&0<=a&&1>=a};
Ji=function(){ti.call(this);this.B=!1;this.volume=void 0;this.paused=!1};
Ki=function(a){return Ii(a.volume)&&.1<=a.volume};
Li=function(){this.Za=[0,0,0,0,0];this.W=[0,0,0,0,0];this.ha=[0,0,0,0,0];this.K=this.Sa=0;this.oa=this.B=-1;this.ua=1E3};
Mi=function(a,b,c){for(;0<=b&&4>=b;b++)a[b]+=c};
Ni=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};
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};
Pi=function(a,b,c,d,e){this.D=c||4E3;this.A=a||"&";this.F=b||",$";this.B=g.t(d)?d:"trn";this.J=e||null;this.C=!1;this.o={};this.G=0;this.g=[]};
Qi=function(a,b){var c={};c[a]=b;return[c]};
Si=function(a,b,c,d,e){var f=[];Qh(a,function(a,l){var k=Ri(a,b,c,d,e);k&&f.push(l+"="+k)});
return f.join(b)};
Ri=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(Ri(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)(Si(a,b,c,d,e+1)):"...";return(0,window.encodeURIComponent)(String(a))};
Ti=function(a,b,c,d){a.g.push(b);a.o[b]=Qi(c,d)};
Ui=function(a,b,c){var d=a.G++;b=Qi(b,c);a.g.push(d);a.o[d]=b};
Vi=function(a,b,c,d){b=b+"//"+c+d;var e=Hba(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=Si(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.J||d));return b+f+""};
Hba=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};
Wi=function(a,b,c,d){if(Math.random()<(d||a.g))try{if(c instanceof Pi)var e=c;else e=new Pi,Qh(c,function(a,b){Ui(e,b,a)});
var f=Vi(e,a.B,a.o,a.A+b+"&");f&&Wh(pa,f)}catch(k){}};
Xi=function(a,b,c,d){this.label=a;this.type=b;this.value=c;this.duration=void 0===d?0:d;this.uniqueId=this.label+"_"+this.type+"_"+Math.random()};
Yi=function(a,b){this.events=[];this.g=b||pa;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||pa).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)};
Zi=function(){var a=pa.performance;return a&&a.now?a.now():(0,g.G)()};
$i=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};
bj=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.gv(f);var l=aj(m);c=(e||a.C).call(a,b,l,void 0,d)}catch(n){a.o(217,n)}if(!c)throw m;}return k};
dj=function(a,b,c,d){var e=cj;return function(f){for(var k=[],l=0;l<arguments.length;++l)k[l-0]=arguments[l];return bj(e,a,function(){return b.apply(c,k)},d,void 0)}};
aj=function(a){return new ej(fj(a),a.fileName,a.lineNumber)};
fj=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};
ej=function(a,b,c){Oi.call(this,Error(a),{message:a,file:void 0===b?"":b,line:void 0===c?-1:c})};
gj=function(a,b){return bj(cj,a,b,void 0,Iba)};
ij=function(a,b,c,d){return dj(a,b,c,d)};
jj=function(a,b){cj.o(a,b,void 0,void 0)};
kj=function(a,b){this.A=null;this.F=a;this.J=b||1;this.o="u"};
lj=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.J){case 4:return a.F?(e=Math.floor(.3*c),f=Math.floor(.3*d),[new g.Td(e,f),new g.Td(c-e,f),new g.Td(e,d-f),new g.Td(c-e,d-f)]):[new g.Td(e,0),new g.Td(0,f),new g.Td(e,d-1),new g.Td(c-1,f)];case 3:return[new g.Td(c-1,0),new g.Td(e,f),new g.Td(0,d-1)];default:return[new g.Td(e,f)]}};
mj=function(a,b){try{var c=b||a.A.getBoundingClientRect()}catch(e){c=new g.Lg(0,0,0,0)}var d=lj(a,c);(0,g.H)(d,function(a){a.x+=c.left;a.y+=c.top});
return d};
nj=function(a,b){kj.call(this,a,b);this.g=[];this.G=!1;this.B=-1;this.C=this.D=0};
oj=function(a,b,c){this.snapshot=a;this.o=b;this.g=c};
Jba=function(a,b,c){if(!(b&&b.getBoundingClientRect&&0<=g.Sa(oi,"11")&&c)||g.sc&&9>jc||0<a.g.length)return!1;try{var d=b.getBoundingClientRect()}catch(n){return!1}var e="DIV"==b.tagName||"INS"==b.tagName,f=g.Zd(b),k=[];if(e){var l=Ei();d=lj(a,d);(0,g.H)(d,function(a,b){var d=new pj("e",f,c,String(b));this.g.push(d);k.push((0,g.A)(d.G,d,l,a))},a);
ve(b,l,0)}else d=mj(a,d),(0,g.H)(d,function(a,d){var e=new pj("e",f,c,String(d));this.g.push(e);k.push((0,g.A)(e.F,e,b,a))},a);
var m=!0;(0,g.H)(k,function(a){m=m&&a()});
m?(a.o="l",a.A=b,a.G=!e):((0,g.H)(a.g,function(a){a.remove()}),a.g=[]);
return m};
Kba=function(a){if(a.A&&a.G){var b=mj(a);(0,g.H)(b,function(a,b){this.g[b]&&qj(this.g[b],a)},a)}};
rj=function(a){(0,g.H)(a.g,function(a){a.remove()});
a.g=[];a.o="d"};
Pba=function(a){var b=(0,g.G)(),c=a.D?b-a.D:0,d=-1,e=(0,g.I)(a.g,function(a){return sj(a,b)});
4==a.g.length?d=a.F?Lba(e):Mba(e):3==a.g.length?d=Nba(e):1==a.g.length&&(d=[-1,0,1,2,3,5][sj(a.g[0],b)+1]);a.C=d==a.B?a.C+c:0;c=new oj(d,a.B,c);a.B=d;a.D=b;Oba(a,d);Kba(a);return c};
uj=function(a){var b=Db(g.Lb(tj));(0,g.H)(a,function(a){0<=a&&++b[a]});
return b};
Mba=function(a){a=uj(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};
Nba=function(a){var b=uj(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};
Lba=function(a){a=uj(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};
Oba=function(a,b){if(0==b&&vj(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"}};
vj=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.Aa="e"==a?String(c)+"~"+String(d):"";this.o=[];this.A=-1;this.C=0;this.B=Db(g.Lb(Qba));this.K=Db(g.Lb(tj));"e"==this.D&&(wj[this.Aa]=(0,g.A)(this.J,this));g.sc?(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="'+xj(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=Rba(this,b);a.width=1;a.height=1;a.style.zIndex=-999999;this.g=a};
Rba=function(a,b){function c(a,c,d){var e=b.createElement("param");e.name=c;e.value=d;a.appendChild(e)}
var d=xj(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};
xj=function(a,b){var c=Cg("//pagead2.googlesyndication.com/osd/hbe.swf","id",a.Aa);b&&(c=Cg(c,"delay","1"));return c};
qj=function(a,b){a.g&&!Ud(b,jh(a.g))&&g.ih(a.g,b)};
sj=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.K[c+1];a.A=c}else{var d=Number(b),c=null;try{c=a.g.fc()}catch(f){}var e=c;Sba(a,e,d);c=a.o[a.o.length-1];if(null===e){if(e=d=0,0<a.A||g.oa(c.ao))e=d=2}else null===c.ao||c.timeMs>=d?(d=10<=e?4:0,e=0):e>c.ao?(c=(e-c.ao)/(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};
Sba=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({ao:b,timeMs:c})};
yj=function(a,b){kj.call(this,a,b);this.g=[];this.D=!1;this.C=0;this.B=-1};
Tba=function(a,b){var c=b.getBoundingClientRect();var d="DIV"==b.tagName||"INS"==b.tagName,e=g.Zd(b),f=!0,k=a.g;if(d){var l=Ei();c=lj(a,c);ve(b,l,0);(0,g.H)(c,function(a){var b=new zj(e);k.push(b);var c;if(c=f)if(b.g){b.g.style.position="absolute";Aj(b,a);a=!0;try{l.appendChild(b.g)}catch(r){a=!1}c=a}else c=!1;f=c})}else c=mj(a,c),(0,g.H)(c,function(a){var c=new zj(e);
k.push(c);var d;if(d=f)if(c.g&&b.parentNode){c.g.style.position="fixed";Aj(c,a);a=!0;try{g.ue(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};
Uba=function(a){if(a.A&&a.D){var b=mj(a);(0,g.H)(b,function(a,b){this.g[b]&&Aj(this.g[b],a)},a)}};
Vba=function(a){(0,g.H)(a.g,function(a){a.remove()});
a.g=[]};
$ba=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?Wba[d]:Xba[d]:3==a.g.length?Yba[d]:1==a.g.length?Zba[d]:-1,c=new oj(d,a.B,c);
a.B=d;a.C=b;Uba(a);return c};
zj=function(a){this.g=null;this.A=this.o=0;aca(this,a)};
aca=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=dj(245,a.B,a,void 0);c.addEventListener("load",ij(244,function(){c.contentWindow.requestAnimationFrame(d)}))};
Aj=function(a,b){a.g&&!Ud(b,jh(a.g))&&g.ih(a.g,b)};
Bj=function(a,b,c,d){c=dj(d,c,void 0,void 0);Th(a,b,c,{capture:void 0});return c};
Cj=function(){};
Dj=function(){this.G=!1;this.J=void 0;this.A=!Ph(Xh.top);var a=vi();this.domain=0<a.length&&null!=a[a.length-1]&&null!=a[a.length-1].url?g.ug(a[a.length-1].url)||"":"";this.B=this.K=this.D=this.o=null;this.O=0;this.C=!1;this.F=new g.Lg(0,0,0,0);this.M=0;this.g="geo"};
Fj=function(a,b,c){this.position=Ej.clone();this.Qc=0;this.wc=this.Hm();this.uc=-2;this.yi=(0,g.G)();this.Hg=-1;this.O=b;this.ca=-1!=b;this.Ra=null;this.opacity=-1;this.Fg=c;this.Jg=this.Dc=g.z;this.G=this.element=a;this.fa=this.B=null;this.ka=1;this.ie=this.da=this.sa=!1;this.xb=1;this.Ed=!0;this.D=!1;this.wi=Dj.getInstance().O++;this.domain=null;this.oc=0;this.g=this.Wp();this.Gg=-1;this.Ta=new g.Lg(0,0,0,0);this.xi=new ei};
Gj=function(a,b){return null===a||null===b?Ej.clone():new g.Lg(Math.max(a.top,b.top),Math.min(a.right,b.right),Math.min(a.bottom,b.bottom),Math.max(a.left,b.left))};
bca=function(a,b,c,d,e){if(a.ca){var f=Xh.innerWidth,k=Xh.innerHeight,l=new g.Lg(Math.round(Xh.mozInnerScreenY),Math.round(Xh.mozInnerScreenX+f),Math.round(Xh.mozInnerScreenY+k),Math.round(Xh.mozInnerScreenX));c=new g.Lg(Xh.screenY+d,Xh.screenX+c.width,Xh.screenY+c.height,Xh.screenX);e||(d=new g.Lg(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.ag(l,c,b,e,!0,!0)}};
dca=function(a,b,c){var d;if(a.ca&&(d=ii())){c||Hj(a,Xh,!0);if(a.ie){d=cca(a,d);var e=!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.je(window.document);d=d(e-k.x,f-k.y)?.5:0;e=!1}a.ag(a.position,d,b,c,!0,e)}};
Ij=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}};
cca=function(a,b){var c=g.je(window.document),d=a.xb,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;var d=!!b(e,f),m=!!b(k,l);if(d&&m)return 1;var n=!!b(k,f),q=!!b(e,l);if(d)l=Ij(f,l,function(a){return!!b(e,a)}),k=Ij(e,k,function(a){return!!b(a,f)});
else if(n)l=Ij(f,l,function(a){return!!b(k,a)}),e=Ij(k,e,function(a){return!!b(a,f)});
else if(q)f=Ij(l,f,function(a){return!!b(e,a)}),k=Ij(e,k,function(a){return!!b(a,l)});
else if(m)f=Ij(l,f,function(a){return!!b(k,a)}),e=Ij(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=Ij(w,f,function(a){return!!b(r,a)});
l=Ij(w,l,function(a){return!!b(r,a)});
e=Ij(r,e,function(a){return!!b(a,w)});
k=Ij(r,k,function(a){return!!b(a,w)})}return(l-f)*(k-e)/c};
eca=function(a,b,c,d,e){a.ca&&(d||Hj(a,Xh,e),a.ag(a.position,c,b,d,!1,!0))};
Jj=function(a,b,c){if(a.ca){var d=c?a.g.g:a.oc,e;if(e=a.Ta){e=a.Ta;var f=new g.Lg(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=Mg(a.Ta.clone(),a.position.left,a.position.top));a.ag(a.position,d,b,c,!0,!0)}};
fca=function(a,b,c){if(a.ca&&a.ba){var d=bi(),e=Dj.getInstance();Hj(a,d,e.A);d=a.ba.o();e=d.o()||d.A();a.ag(a.position,d.g(),b,c,!0,e)}};
Hj=function(a,b,c,d){if(d)a.position=d;else{b=c?b:b.top;try{var e=Ej.clone(),f=new g.Td(0,0);if(a.G){var k=1==a.Fg;!c&&k&&Gba(a.G)||(e=a.G.getBoundingClientRect());f=g.ph(a.G,b)}var l=f.x,m=f.y;a.position=new g.Lg(Math.round(m),Math.round(l+(e.right-e.left)),Math.round(m+(e.bottom-e.top)),Math.round(l))}catch(n){a.position=Ej.clone()}}a.Qc=(a.position.bottom-a.position.top)*(a.position.right-a.position.left)};
Kj=function(a){a=a.wc;return a.Sa>=a.ua};
Lj=function(a,b){var c=Math.pow(10,b);return Math.floor(a*c)/c};
gca=function(a){a.ba||a.B&&rj(a.B)};
jca=function(a,b){var c=!1,d=a.G;b.document&&b.document.body&&12==a.Fg&&(d=b.document.body);if(null===d)return!1;gj(152,function(){var e=new b.IntersectionObserver(function(c){try{Mj(b,c,a)}catch(k){try{e.unobserve(d),jj("osd_adblock::nioc",k)}catch(l){}}},hca);
e.observe(d);ica(d);c=!0});
return c};
ica=function(a){if(a&&(a=a.style)){var b=a.opacity;a.opacity=.98;a.opacity=.99;a.opacity=b}};
kca=function(a,b){var c=!1;gj(151,function(){var d=Vh(b).c1(function(c){try{Mj(b,c,a)}catch(f){try{d(),jj("osd_adblock::aioc",f)}catch(k){}}});
c=!0});
return c};
Mj=function(a,b,c){if(!b||!b.length||0>=b.length)var d=null;else{d=b[0];for(var e=1;e<b.length;e++)b[e].time>d.time&&(d=b[e])}d&&(b=Hi(d.boundingClientRect),e=Hi(d.intersectionRect),c.g.g=g.Pd(d.intersectionRect.width*d.intersectionRect.height/(d.boundingClientRect.width*d.boundingClientRect.height),0,1),c.oc=c.g.g,Hj(c,a,!0,b),a=Gj(b,e),c.Ta=0>=c.Qc||a.top>=a.bottom||a.left>=a.right?new g.Lg(0,0,0,0):Mg(a,-b.left,-b.top))};
Nj=function(a,b,c,d){d&&(a.Jg=d);switch(c){case "nio":return jca(a,b);case "aio":return kca(a,b);case "swf":return a.Zo();case "raf":return a.ws();case "geo":case "xde":case "iem":return!0}return!1};
Oj=function(){this.g={};this.g.vs=[1,0];this.g.vw=[0,1];this.g.am=[2,2];this.g.a=[4,4];this.g.f=[8,8];this.g.bm=[16,16];this.g.b=[32,32];this.g.avw=[0,64];this.g.cm=[128,128];this.g.pv=[256,256];this.g.gdr=[0,512];this.g.p=[0,1024];this.g.r=[0,2048];this.g.m=[0,4096];this.g.um=[0,8192];this.g.ef=[0,16384];this.g.s=[0,32768];this.o={};for(var a in this.g)0<this.g[a][1]&&(this.o[a]=0);this.A=0};
lca=function(a){return Pj(a,g.Ob(a.g))};
Pj=function(a,b){var c=0,d;for(d in a.o)g.eb(b,d)&&1==a.o[d]&&(c+=a.g[d][1],a.o[d]=2);return c};
mca=function(a){var b=0,c;for(c in a.o){var d=a.o[c];if(1==d||2==d)b+=a.g[c][1]}return b};
Qj=function(){this.g=[]};
Rj=function(){Li.call(this);this.sa=this.P=this.da=this.ca=this.ba=this.o=0;this.C=-1;this.D=this.J=this.G=this.F=this.ga=this.ra=this.M=0;this.fa=[0,0,0,0,0];this.A=this.g=-1;this.O=this.ka=0;this.ua=2E3};
Sj=function(a,b,c){var d=a.sa;Ai||c||-1==a.C||(d+=b-a.C);return d};
Tj=function(a,b,c,d){Fj.call(this,b,c,d);this.tb=0;this.J={};this.A=new Oj;this.Oe={};this.yj=this.C="";this.Kg=!1;this.F=[];this.qf=this.zh=this.Ah=this.P=!1;this.K=void 0;this.M=-1;this.Yb=void 0;this.rb=!1;this.Fa=this.Za=0;this.Ja=1;this.Oa=-1;this.Ub=this.je=!1;this.W=this.Ig=0;this.Rd=!1;this.rf=this.sf=-1;this.Na=this.ra=this.o=0;this.yh=this.Bb=-1;this.Dg=0;this.Pe=[0,0,0,0,0];this.ha=this.Cd=this.zb=0;this.Sa=-1;this.Dd=0;this.ua=!1;this.Hb=null;this.he=this.Lg=!1;this.qb=g.z;this.oa=[this.Hm()];
this.Eg=!1;this.ie=!0;this.xb=2;b=Dj.getInstance();Hj(this,a,b.A);this.ga={};this.ga.pause="p";this.ga.resume="r";this.ga.skip="s";this.ga.mute="m";this.ga.unmute="um";this.ga.exitfullscreen="ef"};
Uj=function(a){return g.t(a)?Number(a)?Lj(a,3):0:a};
Vj=function(a,b){if(-1==a.O)return 0;var c=b-a.O||1,d=1E4;g.t(a.M)&&-1!=a.M&&(d=Math.max(d,a.M/3));return c>d?1:c};
Wj=function(a,b,c){return 15E3<=b?!0:a.je?c?!0:-1!=a.M?b>=a.M/2:-1!=a.Oa?b>=a.Oa:!1:!1};
Xj=function(a,b){for(var c=a.F,d=Bf({TR:0,an:void 0}),e=c.length;e<b+1;)c.push(d()),e++;a.F[b]={viewableArea:Lj(a.g.g,2),instantaneousState:a.A.A}};
Zj=function(a,b){var c=a.Oe[b];if(null!=c)return c;a:if(g.eb(nca,b))c=!0;else{c=a.J[b];if(g.t(c)&&(a.J[b]=!0,!c)){c=!0;break a}c=!1}c=Yj(a,c,c);"fully_viewable_audible_half_duration_impression"==b&&(c.std="csm",c.ic=Pj(a.A,["gdr"]));return c};
Yj=function(a,b,c){if(a.da)return{"if":0};var d=a.position.clone();d.round();var e=(0,g.I)(a.F,function(a){return 100*a.TR|0}),f=Dj.getInstance(),k=a.Ae(),l={};
a.Eg&&(l.avms="raf");l["if"]=f.A?1:void 0;l.sdk=a.K?a.K:void 0;l.t=a.yi;l.p=[d.top,d.left,d.bottom,d.right];l.tos=k.Za;l.mtos=k.W;l.ps=void 0;l.pt=e;l.vht=Sj(k,zi(),!!a.P);l.mut=k.ra;l.a=Uj(a.g.volume);l.mv=Uj(k.A);l.fs=a.D?1:0;l.ft=k.ka;l.at=k.ga;l.as=.1<=k.g?1:0;l.atos=k.fa;l.uac=a.Ig;l.vpt=k.o;"nio"==f.g&&(l.nio=1,l.avms="nio");l.gmm="4";l.gdr=Wj(a,k.o,!0)?1:0;a.ie&&(l.efpf=a.xb);a.B&&(l.swf=a.B.getStatus(),l.px=a.ka,l.avms="swf");0<a.Dd&&(l.nnut=a.Dd);l.tcm=a.Ja;l.nmt=a.Cd;l.bt=a.ha;l.pst=a.Sa;
l.vpaid=a.Yb;l.dur=a.M;l.vmtime=a.Za;l.is=a.A.A;1<=a.F.length&&(l.i0=a.F[0].an);2<=a.F.length&&(l.i1=a.F[1].an);3<=a.F.length&&(l.i2=a.F[2].an);4<=a.F.length&&(l.i3=a.F[3].an);l.cs=mca(a.A);b&&(l.ic=lca(a.A),l.dvpt=k.ba,l.dvs=k.da,l.dfvs=k.P,l.davs=k.J,l.dafvs=k.D,c&&(k.ba=0,k.da=0,k.P=0,k.J=0,k.D=0),Kj(a)&&(l.dtos=k.ca,l.dav=k.G,l.dtoss=a.tb+1,c&&(k.ca=0,k.G=0,a.tb++)),l.dat=k.F,l.dft=k.O,c&&(k.F=0,k.O=0));f.B&&(l.ps=[f.B.width,f.B.height]);f.o&&(l.bs=[f.o.width,f.o.height]);f.D&&(l.scs=[f.D.width,
f.D.height]);l.dom=f.domain;a.sa&&(l.fmf="1",l.px=a.ka);a.W&&(l.vds=a.W);a.o&&(l.vmer=a.o);a.ra&&(l.vmmk=a.ra);a.Na&&(l.vmiec=a.Na);a.ba&&(l.avms=a.ba.A(),g.ac(l,a.ba.g()));"exc"==f.g&&(l.femt=a.Bb,l.femvt=a.yh,l.emc=a.Dg,l.emb=a.Pe,l.emuc=a.zb,l.avms="exc");ak()?(l.c=Lj(a.g.g,2),l.ss=Lj(oca(a),2)):l.tth=zi()-bk;l.mc=Lj(k.oa,2);l.nc=Lj(k.B,2);l.mv=Uj(k.A);l.nv=Uj(k.g);l.lte=Lj(a.uc,2);b=a.oa[a.oa.length-1];l.qmtos=b.W;l.qnc=Lj(b.B,2);l.qmv=Uj(b.A);l.qnv=Uj(b.g);l.qas=.1<=b.g?1:0;l.qi=a.C;null!==a.Hb&&
(l.nvat=a.Hb?1:0);l.avms||(l.avms="geo");return l};
oca=function(a){if(a.D)return 1;var b=Xh.screen.width*Xh.screen.height;return 0>=b?-1:Math.min(a.Qc*a.g.g/b,1)};
ck=function(a){for(var b=0,c=a,d=0;a&&a!=a.parent;)a=a.parent,d++,Ph(a)&&(c=a,b=d);return{Ws:c,level:b}};
pca=function(){this.S={}};
qca=function(a){var b=[],c=[];g.Ib(a,function(a,e){if(!(e in Object.prototype)&&"undefined"!=typeof a){g.sa(a)&&(a=a.join(","));var d=[e,"=",a].join("");switch(e){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.dk=function(a,b,c){g.M.call(this);this.B=null!=c?(0,g.A)(a,c):a;this.A=b;this.o=(0,g.A)(this.FP,this);this.g=[]};
ek=function(a){a.Rh=g.mg(a.o,a.A);a.B.apply(null,a.g)};
gk=function(){return!fk()&&(Hb("iPod")||Hb("iPhone")||Hb("Android")||Hb("IEMobile"))};
fk=function(){return Hb("iPad")||Hb("Android")&&!Hb("Mobile")||Hb("Silk")};
hk=function(){var a=Dj.getInstance().g;return"nio"==a||"aio"==a};
qk=function(){if(!ik){ik=!0;var a=pa.requestAnimationFrame||pa.webkitRequestAnimationFrame||pa.mozRequestAnimationFrame||pa.oRequestAnimationFrame||pa.msRequestAnimationFrame;if(!jk&&!hk()){if(a){var b=dj(136,kk,void 0,void 0);var c=function(){a(function(){Xh.setTimeout(b,0)})}}else c=kk;
lk=new g.dk(dj(137,c,void 0,void 0),100);c=(0,g.A)(lk.Vi,lk);jk=Bj(Xh,"scroll",c,138)}if(!mk&&!hk()){if(a){var d=dj(139,nk,void 0,void 0);c=function(){a(function(){Xh.setTimeout(d,0)})}}else c=nk;
ok=new g.dk(dj(140,c,void 0,void 0),100);c=(0,g.A)(ok.Vi,ok);mk=Bj(Xh,"resize",c,141)}rca();pk()}};
nk=function(){rk(!1);kk()};
kk=function(){sk(tk(),!1)};
sca=function(){var a=Dj.getInstance();uk&&!a.C&&(a.o=xi(Xh,uk));var b=new vk;switch(a.g){case "xde":var c=wk;rk(!1);var d=Dj.getInstance(),e=d.K,a=e.height-c;0>=a&&(a=e.height,c=0);d.o=new g.Wd(e.width,a);a=new vk;a.A=d.o;a.g=e;a.B=c;return a;case "geo":a:{a=a.o;b=new vk;b.A=a;if(null!=a&&-1!=a.width&&-1!=a.height&&-12245933!=a.width&&-12245933!=a.height){var f=Dj.getInstance();if(f.C)c=f.F;else try{var f=uk,k=Xh||Xh,k=k.top,d=a||xi(k,f),e=g.je(g.ae(k.document).g),c=-1==d.width||-12245933==d.width?
new g.Lg(d.width,d.width,d.width,d.width):new g.Lg(e.y,e.x+d.width,e.y+d.height,e.x)}catch(l){c=b;break a}b.o=c}c=b}return c;default:return b}};
sk=function(a,b,c){if(!xk)if(window.clearTimeout(yk),yk=null,gj("osd::debugRemoveZombies",function(){for(var b=a.length-1;0<=b;b--);}),0==a.length)b||zk();
else{var d=sca(),e=Dj.getInstance();try{var f=zi();if(null!=Cj.getInstance().g)for(var k=0;k<a.length;k++)fca(a[k],f,b);else switch(e.g){case "exc":for(k=0;k<a.length;k++)Jj(a[k],f,b);break;case "nis":for(k=0;k<a.length;k++)g.t(c)?a[k].mo(c):a[k].Bx(f);break;case "gsv":for(k=0;k<a.length;k++)g.t(c)?a[k].rw(c):a[k].Ax(f);break;case "aio":case "nio":for(k=0;k<a.length;k++)Jj(a[k],f,b);break;case "xde":if(d.g)for(k=0;k<a.length;k++)bca(a[k],f,d.g,d.B,b);break;case "iem":for(k=0;k<a.length;k++)dca(a[k],
f,b);break;case "swf":(0,g.H)(a,function(a){if(b){if(a.B){var c=a.B;3<=c.B&&(c.B=3);a.g.g=0}}else if(a.B&&"d"!=a.B.getStatus()){var c=Pba(a.B),d=[0,0,0,0,0,.01,.5,1,.01,.3],e=d[c.snapshot+1];a.g.g=d[c.o+1];a.ag(a.position,e,a.O+c.g,!1,!0,!1);Kj(a)&&1!=a.Wg()&&!a.Ed&&a.B&&rj(a.B);(c=2==c.snapshot||vj(a.B))||(c=a.B,c="f"==c.o&&3E3<=c.C);c&&(a.Jg(a),a.Ed=!1,a.B&&rj(a.B))}});
break;case "raf":(0,g.H)(a,function(a){if(b)a.fa&&(a.fa.B=3,a.g.g=0);else if(a.fa){var c=$ba(a.fa),d=[0,0,0,0,0,.01,.5,1,.01,.3],e=d[c.snapshot+1];a.g.g=d[c.o+1];a.ag(a.position,e,a.O+c.g,!1,!0,!1);Kj(a)&&1!=a.Wg()&&!a.Ed&&a.fa&&Vba(a.fa)}});
break;case "geo":if(d.o)for(k=0;k<a.length;k++)eca(a[k],f,d.o,b,e.A)}++tca}finally{b?(0,g.H)(a,function(a){a.g.g=0}):zk()}}};
rca=function(){var a=pk,b;ai.mozVisibilityState?b="mozvisibilitychange":ai.webkitVisibilityState?b="webkitvisibilitychange":ai.visibilityState&&(b="visibilitychange");b&&(Ck=Ck||Bj(ai,b,a,142))};
pk=function(){var a=ak(),b=zi();a?(Ai||(Bi=b,(0,g.H)(Dk,function(a){var c=a.Ae();c.sa=Sj(c,b,!!a.P)})),Ai=!0,rk(!0)):(Ai=!1,bk=b,(0,g.H)(Dk,function(a){a.ca&&(a.Ae().C=b)}));
sk(tk(),!a)};
ak=function(){if(uca())return!0;var a=fi(),b=1===a,a=0===a;return Dj.getInstance(),b||a};
zk=function(){Xh&&(yk=Xh.setTimeout(ij(143,function(){sk(tk(),!1)}),Di(Dj.getInstance().J)))};
vca=function(a){return null!=a&&(0,g.Ek)(Dk,function(b){return b.element==a})};
Fk=function(a){return g.$a(Dk,function(b){return b.C==a})};
tk=function(){return 0==Dk.length?Gk:0==Gk.length?Dk:g.nb(Gk,Dk)};
rk=function(a){var b=Dj.getInstance();b.o=b.C?(new g.Wd(b.F.Eb(),b.F.getHeight())).round():xi(Xh,uk);if(!a){b.K=Xh&&Xh.outerWidth?new g.Wd(Xh.outerWidth,Xh.outerHeight):new g.Wd(-12245933,-12245933);a=Xh;null!==a&&a.top!=a&&(a=a.top);var c=0,d=0,e=Dj.getInstance().o;try{var f=a.document,k=f.body,l=f.documentElement;if("CSS1Compat"==f.compatMode&&l.scrollHeight)c=l.scrollHeight!=e.height?l.scrollHeight:l.offsetHeight,d=l.scrollWidth!=e.width?l.scrollWidth:l.offsetWidth;else{var m=l.scrollHeight,n=
l.scrollWidth,q=l.offsetHeight,r=l.offsetWidth;l.clientHeight!=q&&(m=k.scrollHeight,n=k.scrollWidth,q=k.offsetHeight,r=k.offsetWidth);m>e.height?m>q?(c=m,d=n):(c=q,d=r):m<q?(c=m,d=n):(c=q,d=r)}var w=new g.Wd(d,c)}catch(y){w=new g.Wd(-12245933,-12245933)}b.B=w}};
wca=function(a,b,c){if(a=Hk(a,"swf",b,c))Dj.getInstance().g="swf",Dj.getInstance().g="swf",(0,g.H)(b,function(a){a.B||c(a)});
return a};
Ik=function(){var a=Hk(Xh,"raf",tk());a&&(Dj.getInstance().g="raf");return a};
Hk=function(a,b,c,d){var e=!1;(0,g.H)(c,function(c){Nj(c,a,b,d)&&(e=!0)});
return e};
xca=function(a){var b=[];(0,g.H)(a,function(a){vca(a.element)||(Dk.push(a),b.push(a))})};
yca=function(a){var b=[];(0,g.H)(a,function(a){null==g.$a(Dk,function(b){return b.element==a.element&&b.yj==a.yj})&&(Dk.push(a),b.push(a))})};
uca=function(){return(0,g.Ek)(tk(),function(a){return a.D})};
vk=function(){this.g=this.A=null;this.B=0;this.o=null};
zca=function(a){var b=[];g.Ib(a,function(a,d){d in Object.prototype||"undefined"==typeof a||(g.sa(a)&&(a=a.join(",")),b.push([d,"=",a].join("")))});
return b.join("&")};
Aca=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("&")};
Jk=function(a){return function(b){return!g.t(b[a])&&g.t(0)?0:b[a]}};
Lk=function(){var a=[0,2,4];return function(b){b=b.tos;if(g.sa(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)?Kk(c,a):c}}};
Mk=function(a,b){return function(c){c=c[a];if(g.sa(c))return Kk(c,b)}};
Kk=function(a,b){return(0,g.ye)(a,function(a,d){return g.eb(b,d)})};
Nk=function(){this.A=this.D=!1;this.g={};this.g.start=this.jH;this.g.firstquartile=this.XG;this.g.midpoint=this.cH;this.g.thirdquartile=this.kH;this.g.complete=this.TG;this.g.pause=this.fH;this.g.resume=this.hH;this.g.skip=this.iH;this.g.viewable_impression=this.mH;this.g.mute=this.dH;this.g.unmute=this.lH;this.g.fullscreen=this.YG;this.g.exitfullscreen=this.WG;this.g.fully_viewable_audible_half_duration_impression=this.ZG;this.g.measurable_impression=this.bH;this.g.abandon=this.SG;this.g.engagedview=
this.VG;this.g.impression=this.aH;this.g.creativeview=this.UG;this.g.progress=this.gH;this.o={};this.o.overlay_resize=this.eH;this.o.abandon=this.pq;this.o.close=this.pq;this.o.collapse=this.pq;Dj.getInstance().M=3};
Ok=function(a,b,c){c||(b=-1);return new Tj(Xh,a,b,7)};
Bca=function(a){var b=Dj.getInstance();Qj.getInstance();(function(){b.C=!1;Pk(this)}).call(a)};
Pk=function(a){var b;if(b=null!=Xh.IntersectionObserver)if(b=Hk(Xh,"nio",tk()))Dj.getInstance().g="nio";if(b)qk();else if(si()&&Ik())qk();else{if(g.dh&&g.oa(Xh.screenX)&&g.oa(Xh.mozInnerScreenX)&&g.oa(Xh.outerWidth)){b=Xh.navigator.userAgent;var c=b.indexOf("Firefox/");if(0<=c){var c=Math.floor(b.substr(c+8))||-1,d=b.indexOf("Mac OS X 10."),e=-1;0<=d&&(e=Number(b.substr(d+12,1))||-1);var f=0<e?-1:b.indexOf("Windows NT "),d=-1;0<=f&&(d={"6.0":0,"6.1":1,"6.2":2}[b.substr(f+11,3)]||-1);b=148;5<=e?b=
4<=c?108:3<=c?127:108:0<=d&&(16==c||17==c||18==c)&&(b=[[146,146,146],[148,147,148],[131,130,136]][d][c-16])}else b=null;null!==b&&(wk=b,Dj.getInstance().g="xde");b=!0}else b=!1;b?qk():(g.sc&&g.kc(8)&&g.ua(ii())?(Dj.getInstance().g="iem",b=!0):b=!1,b?qk():pi()&&wca(Xh,Dk,(0,g.A)(a.Aw,a))?qk():a.jq("i"))}};
Tk=function(a,b){if(!a.Kg){var c=Zj(a,"start"),c=Qk(c,Rk),d=Sk||Xh,e=[];e.push("v=581v");e.push("r="+b);var f=0;"swf"==Dj.getInstance().g&&(f=1);e.push("efm="+f);e.push(c);e.push(Aca(d));Wh(Xh,("//pagead2.googlesyndication.com/pagead/gen_204?id=lidarvf&"+e.join("&")).substring(0,2E3),void 0);a.Kg=!0}};
Uk=function(a,b,c,d){sk([a],!ak(),d);Xj(a,c);b=Zj(a,b);if(4!=c){d=a.oa;a=a.Hm;for(var e=d.length;e<c+1;)d.push(a()),e++}return b};
Vk=function(a,b,c){var d=a.Ae();d.sa=Sj(d,zi(),!!a.P);d=!ak();sk([a],d,c);a.P=!0;return Zj(a,b)};
Wk=function(a,b){if(g.u(b)){if(1==a)var c=Dk;else if(2==a)c=Gk;else return;var d=g.Za(c,function(c){return c.Wg()!=a?!1:c.C==b});
0<=d&&(gca(c[d]),g.jb(c,d))}};
Cca=function(a,b,c){var d=g.$a(Dk,function(a){return a.element==c});
null!==d&&d.C!=b&&(Wk(1,d.C),d=null);d||(d=Xk(a,c),d.C=b,d.K="h");return d};
Xk=function(a,b){var c=Ok(b,zi(),!1);c.Dc=(0,g.A)(a.Qm,a);Dj.getInstance().J=79463069;yca([c]);qk();return c};
Dca=function(a,b){var c=Rb(Yk,function(b){return b==a}),c={sv:"581",
cb:"j",e:Zk[c]},d=Zj(b,a);g.ac(c,d);b.Oe[a]=d;return 2==b.Wg()?qca(c).join("&"):Qk(c,Rk)};
Qk=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.ua(l)?f[k]=l(a):f[k]=a[l])}else g.ac(f,a);g.t(c)&&g.ac(f,c);a=zca(f);0!=a.length&&g.t(d)&&g.t(e)&&(e=e(a),a+="&"+d+"="+e);return a};
al=function(a,b){var c={sv:"581",cb:"j"};c.nas=Dk.length;c.msg=a;if(g.t(b)){var d=$k(b);d&&(c.e=Zk[d])}return c};
$k=function(a){var b=a.toLowerCase();return Rb(Yk,function(a){return a==b})};
bl=function(a,b){var c=a[b];g.t(c)&&(a[b]=Math.floor(1E3*c))};
cl=function(a){return!a||"function"!==typeof a||0>String(Function.prototype.toString).indexOf("[native code]")?!1:0<=String(a).indexOf("[native code]")&&!0||!1};
el=function(a){return!!(1<<a&dl)};
Ica=function(){try{Eca()}catch(d){}var a="a=1&b="+dl+"&",b=[],c=99;(0,g.H)(Fca,function(a,c){var d=!1;try{d=a(Xh)}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)(Gca,function(b){var d="false";try{d=b(Xh)}catch(f){}a+=String.fromCharCode(c++)+"="+d+"&"});
(0,g.H)(Hca,function(b){var d="";try{var f=b(Xh),d=g.pc(g.Fb(f),!0)}catch(k){}a+=String.fromCharCode(c++)+"="+d+"&"});
return a.slice(0,-1)};
Eca=function(){if(!fl){var a=function(){gl=!0;Xh.document.removeEventListener("webdriver-evaluate",a,!0)};
Xh.document.addEventListener("webdriver-evaluate",a,!0);var b=function(){hl=!0;Xh.document.removeEventListener("webdriver-evaluate-response",b,!0)};
Xh.document.addEventListener("webdriver-evaluate-response",b,!0);fl=!0}};
il=function(){this.o=64;this.g=Array(4);this.C=Array(this.o);this.B=this.A=0;this.reset()};
jl=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];var e=a.g[2],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};
ll=function(a){var b=a||vi();a=b.length-1;var c=wi(b),b=c.g,d=c.o,c=[];d?(b&&c.push(kl(a,[d.url,2],0,[b.url,0],b.depth)),c.push(kl(a,[d.url,2],0))):b.url&&(c.push(kl(a,void 0,void 0,[b.url,0],b.depth)),(d=(d=Jca.exec(b.url))&&d[0]||"")&&c.push(kl(a,[d,1],b.depth)));c.push(kl(a));return c};
kl=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};
ml=function(){var a=ll();return(0,g.I)(a,function(a){return Ri(a)})};
nl=function(){Nk.call(this);this.B=void 0;this.C=null};
ol=function(a,b,c,d){d=Ok(null,d,!0);d.K=c;d.Dc=(0,g.A)(a.Qm,a);xca([d]);d.C=b;return d};
Lca=function(a,b,c){var d=g.$a(Dk,(0,g.A)(function(a){return a.element?pl(a.element,c)==b&&a.yj==c:!1},a));
null!==d&&d.C!=b&&(Wk(1,d.C),d=void 0);if(d)return d;d=Kca(c);if(d=g.$a(d,(0,g.A)(function(a){return pl(a,c)==b},a)))return d=Xk(a,d),d.K="as",d.C=b,d.yj=c,d};
Kca=function(a){var b=Xh.document,c=g.Eb((0,g.I)(["embed","object"],function(a){return g.ob(b.getElementsByTagName(a))})),d="metricID"+a;
return c=(0,g.ye)(c,function(a){if(!a||!g.va(a)||1!=a.nodeType||!g.ua(a.getBoundingClientRect))return!1;var b=a.getBoundingClientRect();return 0!=b.width&&0!=b.height&&a[d]&&g.ua(a[d])?!0:!1})};
pl=function(a,b){var c="metricID"+b;if(!a||!a[c]||!g.ua(a[c]))return null;try{var d=a[c]()}catch(e){return null}return d.queryID};
ql=function(a,b){var c=Dj.getInstance();switch(a.K){case "h":var d=g.x("exc"==c.g?"ima.bridge.triggerExternalActivityEvent":"ima.common.triggerExternalActivityEvent");break;case "m":d=g.x("ima.common.triggerExternalActivityEvent");break;case "n":d=g.x("ima.bridge.triggerExternalActivityEvent");break;case "as":var e="triggerExternalActivityEvent"+a.yj;a.element&&g.ua(a.element[e])&&(d=function(b,c,d){a.element[e](d)});
break;default:return a.W|=4,!1}if(g.ua(d)){c=Dca(b,a);try{return d(a.C,c,b),!0}catch(f){a.W|=2}}else a.W|=1;return!1};
Mca=function(a){return g.Jb(g.Wb(a||{}),function(a,c){return"qmtos"==c||"qnc"==c||"qmv"==c||"qnv"==c?!1:!0})};
sl=function(a,b,c){var d={};d.viewability=c?Qk(b,Rk):Qk(Mca(b),Rk);c=dl=(new Date).getTime();var e=el(5);c=(gl?!e:e)?c|2:c&-3;e=el(2);c=(hl?!e:e)?c|8:c&-9;c={s1:(c>>>0).toString(16)};a.C||(a.C=Ica());d.moatInit=a.C;d.moatViewability=Qk(b,Nca,c,"h",rl("kArwaWEsTs"));d.integralAdsViewability=Qk(b,Oca,{},"h",rl("b96YPMzfnx"));d.doubleVerifyViewability=Qk(b,Pca,{},"h",rl("yb8Wev6QDg"));d.googleViewability=Qk(b,Qca);return d};
rl=function(a){return function(b){var c=new il;c.update(b+a);return vaa(c.digest()).slice(-8)}};
Rca=function(a,b,c){a=Dj.getInstance();if(a.G!=b){a.G=b;var d=(0,g.Ek)(Dk,function(a){return a.he});
(0,g.H)(Dk,function(a){b||d||(a.O=c);a.ua=b;a.he=!1})}};
vl=function(a,b,c){var d=nl.getInstance(),e={};g.ac(e,{opt_adElement:void 0,opt_fullscreen:void 0},c||{});if(e.opt_bounds)a=sl(d,al("ol",a),!1);else{b:{if($k(a)){if(tl){e=al("ue",a);break b}b=d.Jm(b,e);if(!b){e=al("nf",a);break b}if(!d.D){d.D=!0;try{var f=zi(),k=Dj.getInstance();yi=f;Sk=ck(Xh).Ws;rk(!1);var l=Dj.getInstance();Xh.screen&&(l.D=new g.Wd(Xh.screen.width,Xh.screen.height));if("nis"!=k.g&&"gsv"!=k.g){var m=Xh.document;m.body&&m.body.getBoundingClientRect?((0,g.A)(d.jq,d),Cj.getInstance(),
!k.A&&si()&&Ik()?qk():k.A&&"exc"!=k.g?k.C?Bca(d):Pk(d):qk()):tl=!0}}catch(q){throw Dk=[],Gk=[],q;}}"i"==ul&&(b.da=!0,d.ms(b));f=e.opt_fullscreen;g.t(f)&&(b.D=!!f);f=Dj.getInstance().g;if(k=Xh&&Xh.g||"nis"===f||"gsv"===f?!1:0===fi())Tk(b,"pvu"),d.jq("pvu");f=a.toLowerCase();!k&&g.eb(Sca,f)&&(b.Lg||("i"!=ul&&(xk=!1),k=Cj.getInstance(),null!=k.g&&(k=null!=k.g?new k.g.constructor:null,b.ba=k,b.ba.B(Xh,b.G,b.xi)),Nj(b,Xh,Dj.getInstance().g,(0,g.A)(d.Aw,d)),k=g.t(e)?e.opt_nativeTime:void 0,Ci=k=g.oa(k)?
k:zi(),b.ca=!0,l=ak(),b.Lg=!0,b.J={},b.J.firstquartile=!1,b.J.midpoint=!1,b.J.thirdquartile=!1,b.J.complete=!1,b.J.pause=!1,b.J.skip=!1,b.J.viewable_impression=!1,b.tb=0,l||(b.Ae().C=k),sk([b],!l,e)),d.xw(b));(k=b.ga[f])&&b.A.Ea(k);var n;1==b.Wg()?n=d.g[f]:2==b.Wg()&&(n=d.o[f]);if(n&&(e=n.call(d,b,e),g.t(e))){n=al(void 0,f);g.ac(n,e);e=n;break b}}e=void 0}a=sl(d,e,"firstquartile"==a||"midpoint"==a||"thirdquartile"==a||"complete"==a||"skip"==a||"abandon"==a?!0:!1)}return a};
wl=function(a,b){var c=g.x("ima.common.triggerViewabilityMeasurementUpdate");if(g.ua(c)){var d={},e=Dj.getInstance();d.insideIframe=e.A;d.unmeasurable=b.da;d.position=b.position;d.coverage=b.g.g;d.documentSize=e.B;d.viewportSize=e.o;d.nativeVolume=a.B;c(b.C,d)}};
xl=function(a){nl.getInstance();var b=Qj.getInstance();g.ib(b.g,a)};
yl=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");var c="",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};
Tca=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];for(var d=e[1],f=e[2],l=e[3],m=e[4],n,q,c=0;80>c;c++)40>c?20>c?(n=l^d&(f^l),q=1518500249):(n=d^f^l,q=1859775393):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,MF: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}}};
Uca=function(a,b,c){var d=[],e=[];if(1==(g.sa(c)?2:1))return e=[b,a],(0,g.H)(d,function(a){e.push(a)}),zl(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.fb(f)?[c,b,a]:[f.join(":"),c,b,a];(0,g.H)(d,function(a){e.push(a)});
a=zl(e.join(" "));a=[c,a];g.fb(k)||a.push(k.join(""));return a.join("_")};
zl=function(a){var b=Tca();b.update(a);return b.MF().toLowerCase()};
g.Al=function(a){var b=yl(String(pa.location.href)),c=pa.__OVERRIDE_SID;null==c&&(c=(new pg(window.document)).get("SID"));if(c&&(b=(c=0==b.indexOf("https:")||0==b.indexOf("chrome-extension:"))?pa.__SAPISID:pa.__APISID,null==b&&(b=(new pg(window.document)).get(c?"SAPISID":"APISID")),b)){var c=c?"SAPISIDHASH":"APISIDHASH",d=String(pa.location.href);return d&&b&&c?[c,Uca(yl(d),b,a||null)].join(" "):null}return null};
Bl=function(){};
Dl=function(a){if(a instanceof Bl)return a;if("function"==typeof a.Sd)return a.Sd(!1);if(g.ta(a)){var b=0,c=new Bl;c.next=function(){for(;;){if(b>=a.length)throw Cl;if(b in a)return a[b++];b++}};
return c}throw Error("Not implemented");};
g.El=function(a,b,c){if(g.ta(a))try{(0,g.H)(a,b,c)}catch(d){if(d!==Cl)throw d;}else{a=Dl(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(d){if(d!==Cl)throw d;}}};
Vca=function(a){if(g.ta(a))return g.ob(a);a=Dl(a);var b=[];g.El(a,function(a){b.push(a)});
return b};
Fl=function(a,b){this.o={};this.g=[];this.xh=this.La=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 Fl?(c=a.Cb(),d=a.fb()):(c=g.Ob(a),d=g.Nb(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}};
Hl=function(a,b){return Gl(a.o,b)};
Il=function(a){var b,c;if(a.La!=a.g.length){for(b=c=0;c<a.g.length;){var d=a.g[c];Gl(a.o,d)&&(a.g[b++]=d);c++}a.g.length=b}if(a.La!=a.g.length){var e={};for(b=c=0;c<a.g.length;)d=a.g[c],Gl(e,d)||(a.g[b++]=d,e[d]=1),c++;a.g.length=b}};
Gl=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
Jl=function(a){if(a.fb&&"function"==typeof a.fb)return a.fb();if(g.u(a))return a.split("");if(g.ta(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return g.Nb(a)};
Kl=function(a){if(a.Cb&&"function"==typeof a.Cb)return a.Cb();if(!a.fb||"function"!=typeof a.fb){if(g.ta(a)||g.u(a)){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return g.Ob(a)}};
Wca=function(a,b){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,void 0);else if(g.ta(a)||g.u(a))(0,g.H)(a,b,void 0);else for(var c=Kl(a),d=Jl(a),e=d.length,f=0;f<e;f++)b.call(void 0,d[f],c&&c[f],a)};
g.Ll=function(a,b){this.o=this.G=this.B="";this.C=null;this.J=this.A="";this.D=!1;var c;a instanceof g.Ll?(this.D=g.t(b)?b:a.D,Ml(this,a.B),this.G=a.G,g.Nl(this,a.o),g.Ol(this,a.C),g.Pl(this,a.A),Ql(this,a.g.clone()),this.J=a.Oh()):a&&(c=g.sg(String(a)))?(this.D=!!b,Ml(this,c[1]||"",!0),this.G=Rl(c[2]||""),g.Nl(this,c[3]||"",!0),g.Ol(this,c[4]),g.Pl(this,c[5]||"",!0),Ql(this,c[6]||"",!0),this.J=Rl(c[7]||"")):(this.D=!!b,this.g=new g.Sl(null,0,this.D))};
Ml=function(a,b,c){a.B=c?Rl(b,!0):b;a.B&&(a.B=a.B.replace(/:$/,""))};
g.Nl=function(a,b,c){a.o=c?Rl(b,!0):b;return a};
g.Ol=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.Pl=function(a,b,c){a.A=c?Rl(b,!0):b};
Ql=function(a,b,c){b instanceof g.Sl?(a.g=b,Xca(a.g,a.D)):(c||(b=Tl(b,Yca)),a.g=new g.Sl(b,0,a.D));return a};
g.Ul=function(a,b,c){a.g.set(b,c);return a};
Wl=function(a,b,c){g.sa(c)||(c=[String(c)]);Vl(a.g,b,c)};
Xl=function(a){g.Ul(a,"zx",g.Oa());return a};
g.Yl=function(a){return a instanceof g.Ll?a.clone():new g.Ll(a,void 0)};
Zca=function(a,b,c,d){var e=new g.Ll(null,void 0);a&&Ml(e,a);b&&g.Nl(e,b);c&&g.Ol(e,c);d&&g.Pl(e,d);return e};
Rl=function(a,b){return a?b?(0,window.decodeURI)(a.replace(/%25/g,"%2525")):(0,window.decodeURIComponent)(a):""};
Tl=function(a,b,c){return g.u(a)?(a=(0,window.encodeURI)(a).replace(b,$ca),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
$ca=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};
g.Sl=function(a,b,c){this.La=this.g=null;this.o=a||null;this.A=!!c};
$l=function(a){a.g||(a.g=new Fl,a.La=0,a.o&&wg(a.o,function(b,c){Zl(a,Ga(b),c)}))};
am=function(a){var b=Kl(a);if("undefined"==typeof b)throw Error("Keys are undefined");var c=new g.Sl(null,0,void 0);a=Jl(a);for(var d=0;d<b.length;d++){var e=b[d],f=a[d];g.sa(f)?Vl(c,e,f):Zl(c,e,f)}return c};
Zl=function(a,b,c){$l(a);a.o=null;b=bm(a,b);var d=a.g.get(b);d||a.g.set(b,d=[]);d.push(c);a.La=a.La+1};
cm=function(a,b){$l(a);b=bm(a,b);return Hl(a.g,b)};
Vl=function(a,b,c){a.remove(b);0<c.length&&(a.o=null,a.g.set(bm(a,b),g.ob(c)),a.La=a.La+c.length)};
bm=function(a,b){var c=String(b);a.A&&(c=c.toLowerCase());return c};
Xca=function(a,b){b&&!a.A&&($l(a),a.o=null,a.g.forEach(function(a,b){var c=b.toLowerCase();b!=c&&(this.remove(b),Vl(this,c,a))},a));
a.A=b};
g.dm=function(a){g.M.call(this);this.B=a;this.o={}};
g.fm=function(a,b,c,d,e,f){em(a,b,c,d,e,f)};
em=function(a,b,c,d,e,f){g.sa(c)||(c&&(gm[0]=c.toString()),c=gm);for(var k=0;k<c.length;k++){var l=g.hf(b,c[k],d||a.handleEvent,e||!1,f||a.B||a);if(!l)break;a.o[l.key]=l}return a};
im=function(a,b,c,d){hm(a,b,c,d,void 0)};
jm=function(a,b,c,d,e){hm(a,b,c,d,!1,e)};
hm=function(a,b,c,d,e,f){if(g.sa(c))for(var k=0;k<c.length;k++)hm(a,b,c[k],d,e,f);else(b=qf(b,c,d||a.handleEvent,e,f||a.B||a))&&(a.o[b.key]=b)};
km=function(a){g.Ib(a.o,function(a,c){this.o.hasOwnProperty(c)&&g.sf(a)},a);
a.o={}};
lm=function(a,b,c){g.M.call(this);this.o=a;this.A=b;this.D=c;this.C=0;this.g=new g.dm(this);ada(this)};
ada=function(a){a.D.forEach(function(a,c){this.g.X(c,"mousedown",this.F);this.g.X(c,"mouseup",this.J)},a);
a.g.X(a.A,"mouseover",a.G)};
g.mm=function(a,b){return a.replace(bda,function(a,d){try{var c=Vb(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})};
om=function(a,b){var c=[],d="",e="";if(null!=b){for(var d=b,e=[],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){for(var w=r.frames,l=0;l<w.length;++l)if(e===w[l]){f.push(l);break}e=r;r=e.parent}}catch(y){}e=f.join()}else e=""}c.push(d,e);if(null!=a){for(r=0;r<nm.length-1;++r)c.push(Gg(a,nm[r])||"");r=Gg(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<nm.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()};
pm=function(a,b,c){this.g=a;this.o=b;this.A=c};
qm=function(a,b){this.g=a;this.Tf=b};
rm=function(a,b){g.Te.call(this,"adError");this.A=a;this.g=b?b:null};
sm=function(a,b,c){g.Te.call(this,a);this.A=b;this.g=null!=c?c:null};
cda=function(a){this.g=a};
dda=function(){var a=tm();return um(a,"disableExperiments")};
um=function(a,b){if(Qb(a.g,b)){var c=a.g[b];if(g.na(c))return c}return!1};
eda=function(a){if(Qb(a.g,"forceExperimentIds")){a=a.g.forceExperimentIds;var b=[],c=0;g.sa(a)&&(0,g.H)(a,function(a){g.oa(a)&&(b[c++]=a)});
return b}return null};
vm=function(a){return(a=a.match(/^\w{2,3}([-_]|$)/))?a[0].replace(/[_-]/g,""):""};
wm=function(){this.B="always";this.O=4;this.F=1;this.o=this.M=this.C=!1;this.da=this.J=!0;this.A=this.ba=!1;this.K=!0;this.P=null;this.ca=3E3;this.rb=this.D=this.W=!1;try{this.fa=ll(void 0)[0]}catch(a){}};
tm=function(){var a=P;if(null==a.P){var b={},c=(new g.Ll(le().location.href)).g;if(cm(c,"tcnfp"))try{b=g.Ic(c.get("tcnfp"))}catch(d){}a.P=new cda(b)}return a.P};
fda=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}};
xm=function(a){g.Te.call(this,a);this.F=[];this.D={};this.g=null;this.A=!0};
ym=function(a,b,c){this.B=b;this.o=c;this.C=a;this.A=!0};
zm=function(){};
Am=function(a,b,c,d){this.Aa=a;this.g=g.Pd(c||0,0,1);this.o=null!=d?d:!0};
Bm=function(a){this.Aa=a;this.o=new Fl;this.bb=this.g=null};
gda=function(a){var b=Math.random(),c=0,d=a.o.fb();(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}};
ida=function(){this.A=null!=pa.G_testRunner;this.g=new zm;this.o=new Fl;P.g()||(Cm(this,"GvnExternalLayer",31061774,.01),Cm(this,"GvnExternalLayer",31061775,.01),Cm(this,"GvnExternalLayer",41351088,.01),Cm(this,"GvnExternalLayer",41351089,.01),Cm(this,"GvnExternalLayer",420706008,.05),Cm(this,"GvnExternalLayer",420706009,.05),Cm(this,"GvnExternalLayer",420706024,.01),Cm(this,"GvnExternalLayer",420706025,.01),Cm(this,"GvnExternalLayer",420706029,.01),Cm(this,"GvnExternalLayer",41351073,.01),Cm(this,
"GvnExternalLayer",41351074,.01),Cm(this,"GvnExternalLayer",41351075,.01),Cm(this,"GvnExternalLayer",634360101,0),Cm(this,"GvnExternalLayer",634360102,0),Cm(this,"GvnExternalLayer",21592080,.1),Cm(this,"GvnExternalLayer",21592081,.1),Cm(this,"GvnExternalLayer",21592082,.01),Cm(this,"GvnExternalLayer",413051059,.05),Cm(this,"GvnExternalLayer",413051060,.05),Cm(this,"GvnExternalLayer",324123E3,.05),Cm(this,"GvnExternalLayer",324123001,.05),Cm(this,"GvnExternalLayer",420706068,.01),Cm(this,"GvnExternalLayer",
420706069,.01),Cm(this,"GvnExternalLayer",324123020,.01),Cm(this,"GvnExternalLayer",324123021,.01),Cm(this,"GvnExternalLayer",420706081,.01),Cm(this,"GvnExternalLayer",420706082,.01),si(!1)&&(Ph(Xh.top)?(Cm(this,"ActiveViewExternalLayer",509445010,.01),Cm(this,"ActiveViewExternalLayer",509445011,.01)):(Cm(this,"ActiveViewExternalLayer",509445012,.01),Cm(this,"ActiveViewExternalLayer",509445013,.01))));hda(this);var a=tm();a=eda(a);null!=a&&(this.A=!1,Dm(this,a.map(String)))};
Fm=function(){Em||(Em=new ida);return Em};
jda=function(a,b){a.g=b};
kda=function(){var a=Fm();(0,g.H)(a.o.Cb(),function(a){g.Da(a,"FORCED_PUB_EXP_LAYER_")&&this.o.remove(a)},a)};
Cm=function(a,b,c,d){E(g.F(b))||(0,window.isNaN)(c)||0>=c||(c=new Am(c,0,d),Gm(a,b).o.set(c.getId(),c))};
hda=function(a){dda()||(0,g.H)(a.o.fb(),function(a){gda(a)},a)};
Dm=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))||(Gm(this,a).g=new Am(b,0,0,!0))},a)};
Hm=function(a,b){return a.A?!1:(0,g.Ek)(a.o.fb(),function(a){return!!a.g&&a.g.getId()==b})};
Km=function(a){if(a.A)return"";var b=[];(0,g.H)(a.o.fb(),function(a){(a=a.g)&&a.o&&b.push(a.getId())});
return b.sort().join(",")};
Gm=function(a,b){var c=a.o.get(b);null==c&&(c=new Bm(b),a.o.set(b,c));return c};
mda=function(){var a=[],b=Fm();(0,g.H)(lda,function(c){(c=(c=Gm(b,c))?c.g:null)&&a.push(c.getId())});
return a};
Mm=function(a){return null!=a?Lm(nda,a):!1};
Lm=function(a,b){try{var c=(new g.Ll(b)).o,c=c.replace(/^www./i,"");return(0,g.Ek)(a,function(a){return oda(a,c)})}catch(d){return!1}};
oda=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};
Om=function(a){var b=!1;Nm(a,pda)?b=!1:Mm(a)?b=!0:"https:"==window.location.protocol&&(Nm(a,qda)||P.g())&&(b=!0);if(b){b=new g.Ll(a);if("https"==b.B)return a;Ml(b,"https");return b.toString()}return a};
Nm=function(a,b){return(new RegExp("^https?://([a-z0-9-]{1,63}\\.)*("+b.join("|").replace(/\./g,"\\.")+")(:[0-9]+)?([/?#]|$)","i")).test(a)};
Pm=function(a){if(E(g.F(a)))return!1;a=new g.Ll(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};
Qm=function(a){E(g.F(a))||window.open(a,"_blank")};
Sm=function(a,b,c){null!=a?(g.Ul(a,"label",b),null!=c&&g.Ul(a,"value",c.join(";")),a=a.toString()):a="";Rm(a)};
Tm=function(a,b,c,d){null!=a&&null!=b&&(a=g.mm(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.Ll(b);cm(f.g,"label")?(g.Ul(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.mm(c,k);if(2048>l.length){a=l;break a}}a=c}}catch(m){}return a};
Rm=function(a,b,c,d){a=Tm(a,b,c,void 0);try{a=Om(a);var e=Fm(),f=!P.g()||Hm(e,41351089);b=!1;P.g()||!Hm(Fm(),634360102)||(b=!0);null!=d&&d?Um.KA(a,f):P.K?Um.hR(a,f,b):Um.GA(a,f,b)}catch(k){}};
Vm=function(a,b){null!=a&&(0,g.H)(a,function(a){Rm(a,b)})};
rda=function(a,b){if(E(g.F(b)))return a;var c=new g.Ll(a),d=c.o;return null!=d&&Ea(d,".g.doubleclick.net")?(g.Ul(c,"ged",b),c.toString()):a};
Wm=function(a,b){this.message=a;this.errorCode=b};
Ym=function(a,b,c){return Xm("adLoadError",a,b||null,g.qb(arguments,2))};
Zm=function(a,b,c){return Xm("adPlayError",a,b||null,g.qb(arguments,2))};
$m=function(a,b,c,d,e){var f=a.apply(null,g.nb([c,d],g.qb(arguments,3)));b.dispatchEvent(new sm("log",null,f))};
an=function(a,b,c){$m(Zm,a,b,c,void 0)};
Xm=function(a,b,c,d){if(c instanceof ym)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 ym(a,b,e);a.wk=c;return a};
bn=function(a,b,c,d){var e=Zm.apply(null,g.nb([b,c],g.qb(arguments,3)));a.dispatchEvent(new rm(e))};
cn=function(a,b){g.Te.call(this,"vpaidEventType");this.g=a;this.data=b};
dn=function(){return gk()||fk()};
gn=function(){return en&&!fn||Ka(g.Gb,"iPod")};
hn=function(){return gn()||fn};
ln=function(a){return hn()&&jn(kn,a)};
on=function(a){return g.mn&&jn(nn,a)};
jn=function(a,b){if(null==pn[b]){var c=qn(a);c?(c=c.replace(/_/g,"."),pn[b]=0<=g.Sa(c,b)):pn[b]=!1}return pn[b]};
qn=function(a){E(rn)&&(a=a.exec(g.Gb))&&(rn=a[1]);return rn};
sn=function(){var a=g.Gb;return a?Ka(a,"Nintendo WiiU"):!1};
tn=function(){var a;(a=Ka(g.Gb,"CrKey")||Ka(g.Gb,"PlayStation")||Ka(g.Gb,"Roku"))||(a=(a=g.Gb)?Ka(a,"AppleTV")||Ka(a,"GoogleTV")||Ka(a,"HbbTV")||Ka(a,"NetCast.TV")||Ka(a,"Opera TV")||Ka(a,"POV_TV")||Ka(a,"SMART-TV")||Ka(a,"SmartTV")||Ka(a,"TV Store")||Ka(a,"OMI/")||Ka(a,"Presto")&&Ka(a,"Linux")&&!Ka(a,"X11")&&!Ka(a,"Android")&&!Ka(a,"Mobi"):!1);return a||Ka(g.Gb,"Xbox")};
un=function(){var a=Fm();return en&&!fn&&ln(10)&&P.g()&&a.g.g("mweb_enable_skippables_on_iphone")||!P.g()&&(en&&!fn&&ln(10),0)?!0:gn()||g.mn&&!on(4)||!P.g()&&tn()?!1:!0};
vn=function(){return P.o||hn()&&(en&&!fn&&ln(10),!0)||g.mn&&!on(4)||tn()?!0:!1};
wn=function(){this.reset()};
xn=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};
yn=function(a,b,c,d,e,f){g.u(a)?(this.C="y"==a?b:0,this.B="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.C=a||0,this.B=b||0,this.days=c||0,this.g=d||0,this.o=e||0,this.A=f||0)};
g.Bn=function(a,b,c){g.oa(a)?(this.date=zn(a,b||0,c||1),An(this,c||1)):g.va(a)?(this.date=zn(a.getFullYear(),a.getMonth(),a.getDate()),An(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),An(this,a))};
zn=function(a,b,c){b=new Date(a,b,c);0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b};
g.Cn=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.Na(c,2)+":"+g.Na(b,2)}return a};
An=function(a,b){a.getDate()!=b&&a.date.setUTCHours(a.date.getUTCHours()+(a.getDate()<b?1:-1))};
Dn=function(){this.o=this.g=null};
Fn=function(){this.g=En();this.M=-1;this.O=this.P=this.C=this.K=this.o=null;this.B=En();this.A=null;this.ba=this.F=this.J="";this.G=this.W=this.da=this.D=null;this.ca=!1;this.fa=0};
En=function(){return Math.floor(4503599627370496*Math.random())};
Gn=function(a){null==a.C&&(a.C=new wn);return a.C};
Hn=function(a){if(P.o)return"h.3.0.0";var b="h."+a.ba;null!=a.D&&(b+="/n."+a.D,null!=a.o&&(b+="/"+a.o));return b};
In=function(){this.g=.01>Math.random();this.o=Math.floor(4503599627370496*Math.random())};
Ln=function(a,b,c,d){if(a.g||d){c=c||{};c.lid=b;c.sdkv=Hn(Jn);b=Km(Fm());E(g.F(b))||(c.e=b);c=sda(a,c);var e=new g.Ll("http://pagead2.googlesyndication.com/pagead/gen_204");g.Ib(c,function(a,b){g.Ul(e,b,null!=a?"boolean"==typeof a?a?"t":"f":""+a:"")},a);
a=Kn();Ml(e,a.B);Rm(e.toString())}};
sda=function(a,b){b.id="ima_html5";var c=Kn();b.c=a.o;b.domain=c.o;return b};
Kn=function(){var a=le(),b=window.document;return new g.Ll(a.parent==a?a.location.href:b.referrer)};
Nn=function(){this.cf=Mn()};
Mn=function(){return P.g()||Hm(Fm(),420706082)?15E3:8E3};
On=function(){g.xf.call(this)};
Pn=function(){g.xf.call(this);this.g=new Fl;this.o=null;this.J=new g.dm(this);g.N(this,this.J);this.C="";this.B=this.K=this.F=this.A=null;this.G=-1};
Rn=function(){null!=Qn||(Qn=new Pn);return Qn};
Sn=function(a,b){var c={};c.queryId=a;c.viewabilityString=b;Rn().dispatchEvent(new sm("measurable_impression",null,c))};
Tn=function(a,b){var c={};c.queryId=a;c.viewabilityString=b;Rn().dispatchEvent(new sm("viewable_impression",null,c))};
Un=function(a,b,c){var d={};d.queryId=a;d.viewabilityString=b;d.eventName=c;Rn().dispatchEvent(new sm("externalActivityEvent",null,d))};
tda=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.Cb(),function(a){d.get(a)===b&&d.remove(a)})},200);
a.g.set(c,b);var e={};e.osdId=a.C;e.eventId=c;In.getInstance().isLoggingEnabled()&&(a.D=(0,g.G)(),e.loggingId=Math.random(),Ln(In.getInstance(),43,{step:"sendingMessage",logid:e.loggingId,time:a.D}));a.o.send("activityMonitor","fetchAdTagUrl",e)}else b("")};
uda=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.vh(a.A));var f=a.g;b=window.setTimeout(function(){d({viewability:"timeout"});(0,g.H)(f.Cb(),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({})};
Vn=function(){};
Yn=function(a,b){if(null==a||0>=a.width||0>=a.height)throw Zm(Wn,null,"ad slot size",a.toString());this.o=a;this.g=null!=b?b:new Vn;this.C=Xn(vda,this.g.A)?this.g.A:"All";this.B=Xn(wda,this.g.creativeType)?this.g.creativeType:"All";this.F=Xn(xda,this.g.B)?this.g.B:"SelectExactMatch";this.G=Xn(yda,this.g.o)?this.g.o:"DisallowResize";this.A=null!=this.g.C?this.g.C:[];this.D=g.oa(this.g.g)&&0<this.g.g&&100>=this.g.g?this.g.g:90};
$n=function(a,b){var c=[];(0,g.H)(b,function(a){a.Mw()&&((0,window.isNaN)(a.g.g)||(0,window.isNaN)(a.Vp())||a.Vp()==a.g.g)&&Zn(this,a)?c.push(a):(a=zda(this,a),null!=a&&a.Mw()&&c.push(a))},a);
return c};
Zn=function(a,b){var c;if(c="Flash"!=b.jd()||ao){if(c="All"==a.C||a.C==b.g.O)c=b.jd(),c=null!=c?"All"==a.B||a.B==c:!0;c&&(c=b.o,c=g.fb(a.A)?!0:null!=c?0<=(0,g.db)(a.A,c):!1)}if(c){var d=b.Vm();if("IgnoreSize"==a.F||g.Xd(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:bo(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};
zda=function(a,b){var c=b.A;return null!=c?g.$a(c,function(a){return Zn(this,a)},a):null};
bo=function(a,b){var c=Math.min(b.width/a.width,b.height/a.height);return new g.Wd(c*a.width,c*a.height)};
Xn=function(a,b){return null!=b&&Mb(a,b)};
co=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)};
Ada=function(a){var b={};(0,g.H)(a.split(","),function(a){var c=a.split("=");2==c.length&&(a=Pa(c[0]),c=Pa(c[1]),0<a.length&&(b[a]=c))});
return b};
fo=function(a,b){if(a[b])return eo(a[b]);var c=b.toLowerCase(),d;for(d in a)if(d&&d.toLowerCase()==c)return eo(a[d]);return!1};
eo=function(a){return a?-1!=a.toString().search(/(?:true|1)/i):!1};
Bda=function(){this.g=this.Yf=1;this.o=this.B=0;this.A=1};
go=function(){g.xf.call(this);this.g=null;this.D=new g.dm(this);g.N(this,this.D);this.o=new Fl;this.F=new Fl;this.B=null;this.A=!1;this.C=null};
io=function(){null!=ho||(ho=new go);return ho};
ko=function(a){if(null==a)return!1;if(gn()&&null!=a.webkitDisplayingFullscreen)return a.webkitDisplayingFullscreen;var b=window.screen.availWidth||window.screen.width,c=window.screen.availHeight||window.screen.height;a=jo(a);return 0>=b-a.width&&42>=c-a.height};
jo=function(a){return g.ua(a.getBoundingClientRect)&&g.De(g.Zd(a),a)?a.getBoundingClientRect():{left:a.offsetLeft,top:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}};
lo=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=ko(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=jo(a.B)));return gj("lidar::handlevast_html5",g.ya(vl,b,c,e))||{}}return{}};
mo=function(a,b){var c=[];a.o.forEach(g.ya(function(a,b,c,k){c==b&&a.push(k)},c,b));
(0,g.H)(c,a.o.remove,a.o)};
no=function(a){if(g.ua(window.Goog_AdSense_Lidar_getUrlSignalsArray)){var b={};b.pageSignals=window.Goog_AdSense_Lidar_getUrlSignalsArray();a.g.send("activityMonitor","pageSignals",b)}};
Cda=function(){if(!(pa.ima&&pa.ima.video&&pa.ima.video.client&&pa.ima.video.client.tagged)){g.v("ima.video.client.sdkTag",!0,void 0);var a=pa.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)}};
Dda=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=wba(function(){return d},a)}catch(e){c="sdktle;"+Ia(e.name,12)+";"+Ia(e.message,40)}return c};
oo=function(a,b){g.Te.call(this,a);this.g=b};
po=function(a,b){this.J=a;this.G=(0,g.I)(b,function(a){return a.clone()});
this.F="";this.g=null;this.o=this.B=0;this.A=!0;this.D=[];this.C=[]};
qo=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=[]};
ro=function(a){a.F="";a.g=null;a.B=0;a.o=0;a.A=!0;a.D=[];a.C=[]};
so=function(a){g.Te.call(this,a)};
to=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.Pb(b,"thumbnails","default","url"));if(b=a.statistics)this.videoCount=b.videoCount;if(a=a.brandingSettings)this.g=g.Pb(a,"image","bannerImageUrl")}};
g.uo=function(a){this.g="number"==typeof a?0<a?1:0>a?-1:null:null==a?null:a?-1:1};
g.vo=function(a,b){var c=a.o(b,void 0);return-1==(0==c?a.g:c)?"rtl":"ltr"};
wo=function(){throw Error("Do not instantiate directly");};
xo=function(a,b){this.content=String(a);this.kg=null!=b?b:null};
yo=function(){wo.call(this)};
zo=function(){wo.call(this)};
Ao=function(){wo.call(this)};
Bo=function(){wo.call(this)};
Co=function(){wo.call(this)};
Do=function(){wo.call(this)};
Eo=function(a,b){return null!=a&&a.xf===b};
Fo=function(a){if(null!=a)switch(a.kg){case 1:return 1;case -1:return-1;case 0:return 0}return null};
Q=function(a){return null!=a&&a.xf===Go?a:a instanceof g.Fd?Ho(g.Gd(a),a.Ni()):Ho(Ha(String(String(a))),Fo(a))};
Io=function(a){function b(a){this.content=a}
b.prototype=a.prototype;return function(a){return new b(String(a))}};
Lo=function(a,b,c){var d="key_"+a+":"+b,e=Jo[d];if(void 0===e||0>e)Jo[d]=0,Ko[d]=c;else if(0==e)throw Error('Encountered two active delegates with the same priority ("'+a+":"+b+'").');};
Mo=function(a,b){var c=Ko["key_"+a+":"+b];c||""==b||(c=Ko["key_"+a+":"]);return c?c:Eda;throw Error('Found no active impl for delegate call to "'+a+":"+b+'" (and not allowemptydefault="true").');};
Eda=function(){return""};
Qo=function(a){return Eo(a,Go)?String(String(a.hd()).replace(No,"").replace(Oo,"&lt;")).replace(Fda,Po):Ha(String(a))};
Ro=function(a){return Eo(a,Go)?String(String(a.hd()).replace(No,"").replace(Oo,"&lt;")).replace(Gda,Po):String(a).replace(Hda,Po)};
Ida=function(a){return"%"+a.charCodeAt(0).toString(16)};
To=function(a){a=g.Fa(String(a));So.lastIndex=0;return So.test(a)?a.replace(So,Ida):a};
Zo=function(a){Eo(a,Uo)||Eo(a,Vo)?a=Wo(a):a instanceof Ad?a=Wo(Bd(a)):a instanceof wd?a=Wo(xd(a)):(a=String(a),a=Jda.test(a)?a.replace(Xo,Yo):"about:invalid#zSoyz");return a};
$o=function(a){Eo(a,Uo)||Eo(a,Vo)?a=Wo(a):a instanceof Ad?a=Wo(Bd(a)):a instanceof wd?a=Wo(xd(a)):(a=String(a),a=Kda.test(a)?a.replace(Xo,Yo):"about:invalid#zSoyz");return a};
bp=function(a){var b=ap[1]||(ap[1]=new g.uo(1)),c=Fo(a);null==c&&(c=ud(a+"",Eo(a,Go)));return Lda(c!=b.g?-1==c?'dir="rtl"':1==c?'dir="ltr"':"":"")};
Po=function(a){return Mda[a]};
Yo=function(a){return Nda[a]};
Wo=function(a){return String(a).replace(Xo,Yo)};
Oda=function(a){return'<div class="text-container '+(a.image?"pyv":"")+'"><div class="text-inner-container">'+(a.image?(a.Mc?'<a class="text-image-link" target="_blank" href="'+Q(a.Mc)+'">':'<a class="text-image-link" target="_blank">')+'<img src="'+Q(a.image)+'" class="text-image '+(a.qB?"yt-video-image":"")+'">'+(a.duration?'<div class="text-image-duration">'+Q(a.duration)+"</div>":"")+"</a>":"")+(a.Mc?'<a class="text-title" href="'+Q(a.Mc)+'" target="_blank" dir='+Q(a.dir)+">"+Q(a.title)+"</a>":
"")+'<div class="text-description" dir='+Q(a.dir)+">"+Q(a.text)+"</div>"+(a.rB&&a.Mc?'<a target="_blank" href="'+Q(a.Mc)+'" class="text-ad-channel">'+Q(a.rB)+"</a>":"")+"</div></div>"};
Pda=function(a){return'<div class="flash-container '+(a.capture?"click-capture":"")+'">'+(a.Mc?'<a class="click-layer" target="_blank" href="'+Q(a.Mc)+'"></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='+
To(a.Mc)+'"><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='+To(a.Mc)+'"></object></div>'};
Qda=function(a){return'<div class="image-container" id="'+Q(a.id)+'" style="width:'+Q(a.width)+";height:"+Q(a.height)+';">'+(a.Mc?'<a target="_blank" href="'+Q(a.Mc)+'">':'<a target="_blank">')+'<img src="'+Q(a.url)+'" border="0"></a></div>'};
Rda=function(a){return'<div class="image-container" id="'+Q(a.id)+'">'+(a.Mc?'<a target="_blank" href="'+Q(a.Mc)+'">':'<a target="_blank">')+'<img src="'+Q(a.url)+'" border="0" style="max-width:100%;max-height:100%;"></a></div>'};
cp=function(a){return'<div class="image-container" id="'+Q(a.id)+'" style="width:'+Q(a.width)+";height:"+Q(a.height)+';"></div>'};
dp=function(){this.g=new Fl};
ep=function(a,b){this.A=a;this.g=b};
fp=function(a,b){ep.call(this,"progress",a);this.o=b};
hp=function(a,b){(0,g.H)(b,function(a){var b=a.bc().toLowerCase(),c=gp(this,b);c.push(a);this.g.set(b,c)},a)};
ip=function(a,b,c,d){b=b.toLowerCase();c=null!=d?new fp(c,d):new ep(b,c);d=gp(a,b);d.push(c);a.g.set(b,d)};
gp=function(a,b){return null!=b?a.g.get(b.toLowerCase(),[]):[]};
Sda=function(a,b){var c=gp(a,"progress");(0,g.H)(c,function(a){jp(a.o,b)});
g.yb(c,function(a,b){return kp(a.o)-kp(b.o)})};
lp=function(a,b){return(0,g.I)(gp(a,b),function(a){return a.g})};
mp=function(){this.Sa=-1;this.G={};this.sa="";this.cj=new dp};
np=function(a,b,c){a.sa=b;a.G=c};
op=function(a,b){var c=[],d=a.Em();(0,g.H)(d,function(a){a=gp(a.cj,b)||[];c=g.nb(a,c)},a);
return c};
pp=function(a,b,c){var d=c||!1;return g.$a(b.F,function(a){var b=a.g==this.g;return a instanceof this.constructor&&(d||b)},a)};
qp=function(a,b,c,d,e,f,k,l,m,n){this.B=a;this.g=b;this.F=c;(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.gh=e;this.Kf=f;this.D=k;this.C=l;this.o=Om(g.F(m));this.A=n};
rp=function(a,b,c,d,e,f){mp.call(this);this.Sa=a;this.B=b;this.A=c;this.o=g.ob(d);this.C=null;this.D=e;this.Za=g.ob(f);sb(this.Za,null,function(a){return a.M})};
sp=function(a){var b=new Fl,c=a.Em();(0,g.H)(c,function(a){if(a instanceof rp){var c=a.A;(0,g.H)(c.Cb(),function(a){b.set(a,g.nb(c.get(a),b.get(a)||[]))},this)}},a);
return b};
up=function(a){return tp(a,"x-shockwave-flash")};
tp=function(a,b){var c=g.$a(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};
wp=function(a,b,c,d,e){mp.call(this);E(g.F(a))&&(a=Ua()+"_ima");this.Aa=g.F(a);this.Ja=b;this.O=c;this.ra=d;this.A=e;this.M=[];null!=this.ra?this.da=vp[this.ra]||"Other":this.da=null};
xp=function(a,b,c){g.M.call(this);this.o=a;this.C=b;this.K=c;this.B=0;this.g={};this.A=new g.dm(this);g.N(this,this.A);Tda(this)};
Tda=function(a){(0,g.H)(a.K,function(a){this.A.X(a.element,"mousedown",this.F,!0);this.A.X(a.element,"mouseup",g.ya(this.J,a),!0)},a);
a.A.X(a.C,"mouseenter",a.G)};
Uda=function(a,b){g.Ib(a.g,function(a,d){b=Ig(b,d,a)});
return b};
yp=function(a,b,c,d,e){wp.call(this,a,b,c,d,e);this.ha=this.B=null;this.Fa=-2;this.o=null;this.ga=this.ba=g.z;this.ca=[];this.Ra=[];this.D=!1;this.bb=null};
Bp=function(a,b){a.o=b;null!=a.B&&null!=b&&(zp(a,a.ba),Ap(a,a.ga))};
zp=function(a,b){null!=a.o&&null!=a.B&&(0,g.H)(a.ca,function(a){this.o.za(a,"click",this.ba);!E(g.F(this.Ze()))&&this.o.X(a,"click",b)},a);
a.ba=b};
Ap=function(a,b){null!=a.o&&null!=a.B&&(a.o.za(a.B,"creativeview",a.ga),a.o.X(a.B,"creativeview",b));a.ga=b};
Cp=function(a,b){var c=a.Aa,d={};d.style="cursor:default;position:relative;z-index:1001;height:"+a.getHeight()+"px;";"Text"!=a.jd()&&(d.style+="width:"+a.Eb()+"px");E(g.F(c))||(d.id=c);return g.ne("DIV",d,b)};
Dp=function(a){if(!a.D)return null;var b=op(a,"start");pb(b,op(a,"creativeview"));if(null!=b&&!g.fb(b)){var c=[];(0,g.H)(b,function(a){if(!E(g.F(a))){var b=g.ae().pG("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;",src:Vda});g.bh(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",Om(a.g));b.setAttribute("id",d);this.Ra.push(d);g.ib(c,b)}},a);
return c}return null};
Wda=function(a,b){if(null!=a.B)if(Fm().g.g("cleanup_text_overlay_spam_signals")){var c=[];(0,g.H)(a.ca,function(a){c.push({element:a,CF:this.Sp(a)})},a);
new xp(b,a.B,c)}else c=new Fl,(0,g.H)(a.ca,function(a){c.set(a,this.Sp(a))},a),new lm(b,a.B,c)};
Xda=function(a){var b=[],c=a.Em();(0,g.H)(c,function(a){b=g.nb(b,a.M)},a);
return b};
Ep=function(a,b,c){var d=c||!1;return g.$a(b.F,function(a){var b=a.g==this.g;return this instanceof a.constructor&&(d||b)},a)};
Fp=function(a,b){this.g=null!=a?a:new dp;this.J=null!=b?b:[]};
Yda=function(a,b){var c=b.g;(0,g.H)(c.Cb(),function(a){hp(this.g,c.get(a))},a)};
Gp=function(a,b){var c=lp(a.g,b);return null!=c?c:[]};
g.Hp=function(a){if(a.classList)return a.classList;a=a.className;return g.u(a)&&a.match(/\S+/g)||[]};
g.Ip=function(a,b){return a.classList?a.classList.contains(b):g.eb(g.Hp(a),b)};
g.R=function(a,b){a.classList?a.classList.add(b):g.Ip(a,b)||(a.className+=0<a.className.length?" "+b:b)};
g.Jp=function(a,b){if(a.classList)(0,g.H)(b,function(b){g.R(a,b)});
else{var c={};(0,g.H)(g.Hp(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.Kp=function(a,b){a.classList?a.classList.remove(b):g.Ip(a,b)&&(a.className=(0,g.ye)(g.Hp(a),function(a){return a!=b}).join(" "))};
g.Lp=function(a,b){a.classList?(0,g.H)(b,function(b){g.Kp(a,b)}):a.className=(0,g.ye)(g.Hp(a),function(a){return!g.eb(b,a)}).join(" ")};
g.S=function(a,b,c){c?g.R(a,b):g.Kp(a,b)};
g.Mp=function(a,b,c){g.Ip(a,b)&&(g.Kp(a,b),g.R(a,c))};
g.Np=function(a,b){var c=!g.Ip(a,b);g.S(a,b,c);return c};
Pp=function(a,b){var c=a(b||Zda,void 0,void 0);var d=g.ae().createElement("DIV");c=$da(c);d.innerHTML=c;1==d.childNodes.length&&(c=d.firstChild,1==c.nodeType&&(d=c));return d};
$da=function(a){if(!g.va(a))return String(a);if(a instanceof wo){if(a.xf===Go)return a.hd();if(a.xf===Qp)return Ha(a.hd())}return"zSoyz"};
Rp=function(a,b){yp.call(this,a,b,"Static","text","")};
Sp=function(a){null!=a?Lm(aea,a)?(a=a.match(/yt_vid\/([a-zA-Z0-9_-]{11})/),a=null!=a&&1<a.length?a[1]:null):a=Mm(a)?bea(a):null:a=null;return a};
Tp=function(a,b,c){if(null==a)return null;c=new g.Ll((null!=c?c:"//www.youtube.com/")+"watch");var d=c.g;d.set("v",a);d.set("feature",b?"trueview-instream":"instream");Ql(c,d);return c.toString()};
Up=function(a){a=null!=a?a:{};var b=new g.Ll("//www.youtube.com/gen_204");Ml(b,"https");a=am(a);Ql(b,a);return b.toString()};
Vp=function(a){return null===a?!1:"pharma"==(new g.Ll(a)).Oh().toLowerCase()};
bea=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.Ll(a)).g;return cm(a,"v")?a.get("v").toString():cm(a,"video_id")?a.get("video_id").toString():null};
Wp=function(a){return E(g.F(a))?null:"//i1.ytimg.com/vi/"+a+"/mqdefault.jpg"};
bq=function(a,b,c){var d={};a=new Xp(a,g.t(b)?b:null,g.t(c)?c:null);Yp(d,a);b=a.error;d.ERRORCODE=1E3>b.o?b.o:900;Zp(d);$p(d,a);aq(d,a);b=a.error.Lb();d.ERROR_MSG=a.error.ud();d.IMA_ERROR=b;d.INTERNAL_ID="0";d.BLOCKING_ERROR=-1!=(0,g.db)(cea,b)?"1":"0";d.YT_ERROR_CODE=3;return d};
cq=function(a,b){var c={},d=new Xp(null,a,g.t(b)?b:null);Yp(c,d);Zp(c);$p(c,d);aq(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.Bh&&null!=e.Bh.video_start_delay)e=e.Bh.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.Ue();f&&(c.BREAK_TYPE=f);c.SLOT_POS=e.g-1;e=d.g.A;e=null!=e&&null!=e.Gc&&null!=e.Gc.GET_MIDROLL_POSITION_IN_SEC?e.Gc.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)}}dea(c,d);eea(c,d);d=a.qb;for(e=a;null!=e;)d=e.Na+","+d,e=e.o;c.RWT=d;return c};
Xp=function(a,b,c){this.error=a;this.g=b;this.o=c};
dq=function(a,b){null!=b&&(a.VIEWABILITY=b)};
eq=function(a,b,c,d){fea(c,b)?a[c]=d||"":a[c]=""};
fea=function(a,b){return(0,g.Ek)(gea[a],function(a){return null!=b.match(a)})};
Yp=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()}}};
eea=function(a,b){a.AD_CPN={toString:function(){return b.o.ze()}};
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.Gf()?b.o.Gf().width.toString():""}};
a.P_H={toString:function(){return null!=b.o&&null!=b.o.Gf()?b.o.Gf().height.toString():""}}};
Zp=function(a){a.SDKV=Hn(Jn);a.EL="adunit";a.CONN="0";a.WT={toString:function(){return Date.now()}};
a.VED=""};
$p=function(a,b){if(null!=b.g&&null!=b.g.A&&null!=b.g.A.Gc&&P.g()){var c=b.g.A.Gc;(0,g.H)(hea,function(b){b in c&&(a[b]=c[b])})}};
aq=function(a,b){if(null!=b.g){a.AD_ID=iea(b.g);a.AD_SYS=jea(b.g);var c=fq(b.g);a.AQI=null!=c?c:"";a.AD_V={toString:function(){if(null!=b.o){var a=Sp(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=gq(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"}};
dea=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.aj()?"0":Math.round(100*b.o.getVolume()).toString():""}})};
jq=function(a,b,c){var d=null,e=c+b;(0,g.H)(a.F,function(f){if(fo(f.G,"rm")){var k=cq(a);hq(a)&&(k.FILLED_OPPORTUNITY=0);Vm(a.ba,k);(k=a.A)&&k.afcRmFallback&&(d=f)}else{if(k=f instanceof yp)0==c&&0==b||f instanceof Rp?k=!0:(k=f.af(),k=k.width<=b&&k.height<=c);k&&(k=0==c&&0==b?0:c-f.af().height+b-f.af().width,"Flash"!=f.jd()||ao)&&(null!=d?k<e?(d=f,e=k):k==e&&("Flash"==d.jd()&&"Javascript"==f.jd()?d=f:f.g<d.g&&(d=f)):(d=f,e=k))}});
iq(a,d)};
kq=function(a){var b=null;(0,g.H)(a.F,function(a){a instanceof rp&&(null===b||a.g<b.g)&&(b=a)});
iq(a,b)};
lq=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.K=this.A=0;this.M=d;this.logger=null};
pq=function(a,b,c){var d=[],e=(0,g.A)(function(a){this.Ef()?this.Te(function(a){d.push(a);e(null)},function(a){301==a.Lb()?c(Ym(mq)):e(a)}):0<d.length?b(d):(null==a&&(a=Ym(nq)),1012==a.Lb()&&(a=Ym(oq)),c(a))},a);
e(null)};
kea=function(a,b){a.C=b;a.ads=a.Rv(a.B,a.F);a.o=-1};
lea=function(a,b,c,d){var e=a.D.clone();e.o="";e.g=b.Hb;qq(a,b,e,c,d)};
qq=function(a,b,c,d,e){var f=b.getExtension("LocalRedirect");null!=f&&(f=f.A,null!=f&&(c.o=f));a.M.fetch(c,(0,g.A)(function(a){a instanceof lq?(mea(a,b,this.C&&b.rb,b.tb),d(a)):a instanceof rq?e(new ym("adLoadError","Ad source cannot contain playlist response.",2)):e(new ym("adLoadError","Unknown ad source.",2))},a),e)};
nea=function(a){var b=0;for(a=a.o;null!=a;)a=a.o,b++;return b};
oea=function(a,b,c){a.g.Ef()?a.g.Te((0,g.A)(function(a){this.Gn(a,b,(0,g.A)(function(a){this.Ef()?this.Te(b,c):c(a)},this))},a),(0,g.A)(function(a){sq(this.ads[this.o],a);
this.g=null;P.g()||301!=a.Lb()?this.Ef()?this.Te(b,c):c(a):c(a)},a)):(0==a.g.A&&sq(a.ads[a.o],Ym(tq)),a.g=null,a.Te(b,c))};
sq=function(a,b){if(b.A){1012==b.Lb()&&(b=Ym(oq));var c=bq(b,a),d=a.oa;P.g()&&Fm().g.g("disable_reporting_html5_no_vast_ads_as_error")&&303==b.Lb()&&(d=(0,g.ye)(d,function(a){return!Ja(a,".youtube.com/api/stats/ads")}));
Vm(d,c)}};
rea=function(a,b,c){a.o++;var d=a.ads[a.o];d.ha||d.ga?d.ga?lea(a,d,(0,g.A)(function(a){this.g=a;this.Te(b,c)},a),(0,g.A)(function(a){a=uq(a);
sq(d,a);c(a)},a)):nea(d)>=P.O?(a=Ym(pea,null,String(P.O)),sq(d,a),c(a)):a.G?a.Yr(d,(0,g.A)(function(a){this.g=a;
this.Te(b,c)},a),(0,g.A)(function(a){a=uq(a);
sq(d,a);c(a)},a)):c(Ym(qea)):a.Gn(d,b,c)};
uq=function(a){switch(a.Lb()){case 300:case 301:case 302:case 303:case 200:case 1012:break;default:a=Ym(tq)}return a};
mea=function(a,b,c,d){(0,g.H)(a.ads,function(a){a.o=b});
kea(a,c);a.G=d};
vq=function(a){Fp.call(this);this.o=(0,window.isNaN)(a)?-1:a};
wq=function(a,b,c,d){lq.call(this,[],a,b,c);this.J=d};
xq=function(a){var b=a.ads.length-(0>a.o?1:a.o+1);return null!=a.g&&a.g instanceof wq?b+xq(a.g):b};
yq=function(a){g.Ll.call(this,a);this.F=new Fl;a=this.A;var b=a.indexOf(";"),c=null;0<=b?(g.Pl(this,a.substring(0,b)),c=a.substring(b+1)):g.Pl(this,a);sea(this,c)};
sea=function(a,b){E(g.F(b))||(0,g.H)(b.split(";"),function(a){var b=a.indexOf("=");if(0<b){var c=Ga(a.substring(0,b));a=Ga(a.substring(b+1));b=this.F.get(c);null!=b?g.eb(b,a)||b.push(a):b=[g.F(a)];this.F.set(c,b)}},a)};
zq=function(a,b){if(E(g.F(b)))return null;var c=a.F.get(b);return null!=c?c:null};
Aq=function(a,b,c){E(g.F(b))||(c=g.I(c,g.F),a.F.set(b,c))};
Bq=function(a,b){var c=[g.F(b)];pb(c,tea(a));return c.join(";")};
tea=function(a){var b=zq(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.Cb(),function(a){(0,g.H)(this.F.get(a),function(b){pb(c,a+"="+b)})},a);
pb(c,"ord="+b[0]);Aq(a,"ord",b);return c};
Dq=function(a){if(null==a)return!1;a=new g.Ll(a);var b=a.A;return Ea(a.o,"googleads.g.doubleclick.net")&&Cq("/pagead/(live/)?ads",b)};
Eq=function(a){a=a.g;return null!=a?"bid.g.doubleclick.net"==(new g.Ll(a)).o:!1};
Fq=function(a){if(null==a)return!1;var b=new yq(a);a=b.o;b=Bq(b,b.A);return!Ea(a,".g.doubleclick.net")&&Ea(a,"doubleclick.net")&&Cq("/(ad|pfad)[x|i|j]?/",b)};
Gq=function(a){if(null==a)return!1;a=new g.Ll(a);var b=a.A;return Ea(a.o,"doubleclick.net")&&Cq("/gampad/(live/)?ads",b)};
uea=function(a){return Dq(a.g)||Fq(a.g)||Gq(a.g)||Eq(a)};
Hq=function(a){a=a.g;if(null==a)return!1;a=new g.Ll(a);var b=a.A;return Ea(a.o,"youtube.com")&&Cq("/get_midroll_info",b)};
vea=function(a){a=a.g;if(null==a)return null;a=(new g.Ll(a)).g;return null!=a.get("ms")?g.F(a.get("ms")):null};
Cq=function(a,b){return E(g.F(b))?!1:(new RegExp(a)).test(b)};
Iq=function(a,b,c,d){this.g=a;this.A=b;this.o=c;this.B=null!=d?d:!1};
Jq=function(a,b){a.g.J=b;(0,g.H)(a.A,function(a){Jq(a,b)},a)};
Kq=function(a){return Ho('<div class="iv-endcap-background"><div class="iv-endcap-slot"><div class="iv-endcap-card"><a class="iv-endcap-image" href="'+Qo(Zo(a.target))+'" target="_blank"><img src="'+Qo($o(a.image))+'"></a><div class="iv-endcap-text" dir='+Ro(a.dir)+'><a href="'+Qo(Zo(a.target))+'" target="_blank"><div class="iv-endcap-headline">'+Q(a.headline)+'</div><div class="iv-endcap-description">'+Q(a.description)+'</div></a></div><a class="iv-endcap-action" href="'+Qo(Zo(a.target))+'" target="_blank" dir='+
Ro(a.dir)+">"+(a.action?Q(a.action):'<span class="iv-endcap-action-icon"></span>')+'</a></div></div><div class="iv-endcap-bottom"><svg class="iv-endcap-countdown" viewBox="0 0 20 20"><circle class="iv-endcap-countdown-inner" r="5" cx="10" cy="10" /><circle class="iv-endcap-countdown-outer" r="10" cx="10" cy="10" /></svg></div></div>')};
wea=function(){var a=Aa("Next");return Ho(""+a)};
xea=function(){var a=Aa("Previous");return Ho(""+a)};
yea=function(a){var b='<div class="iv-cards-companion"><div class="iv-cards-attribution"><span class="yt-badge yt-badge-ad">'+Lq()+"</span>";if(a.Fu&&a.Mc)var c=Aa("Shop products from {$advertiserName}",{advertiserName:Q(a.Fu)}),b=b+('<a class="ad-companion-clickthrough" href="'+Qo(Zo(a.Mc))+'" target="_blank">'+c+"</a>");for(var b=b+('<div class="yt-uix-hovercard ad-info-container"><span class="yt-uix-hovercard-target" data-position="topright" data-orientation="horizontal"><span class="ad-info-icon"></span></span><div class="yt-uix-hovercard-content"><p>'+
Q(a.ke)+'</p></div></div></div><div class="iv-cards-slider"><div class="iv-cards-slider-body"><ul class="iv-cards-slider-list">'),c=a.cards,d=c.length,e=0;e<d;e++){var f=c[e];f=Ho('<div class="iv-cards-slider-unit"><a href="'+Qo(Zo(f.target))+'" target="_blank"><div class="iv-cards-slider-image"><span class="iv-cards-image-helper"></span><img src="'+Qo($o(f.image))+'"></div><div class="yt-ui-ellipsis yt-ui-ellipsis-4 iv-cards-slider-text">'+Q(f.headline)+'</div><span class="iv-cards-slider-action">'+
Q(f.action)+"</span></a></div>");b+='<li class="iv-cards-slider-item">'+f+"</li>"}b+="</ul></div>"+(a.aR?'<button class="iv-cards-slider-button iv-cards-slider-prev" type="button" onclick=";return false;"><span class="iv-cards-slider-prev-icon yt-uix-tooltip yt-sprite" data-tooltip-text="'+Qo(a.jA)+'" title="'+Qo(a.jA)+'" /></button><button class="iv-cards-slider-button iv-cards-slider-next" type="button" onclick=";return false;"><span class="iv-cards-slider-next-icon yt-uix-tooltip yt-sprite" data-tooltip-text="'+
Qo(a.Xy)+'" title="'+Qo(a.Xy)+'"></span></button>':"")+"</div></div>";return Ho(b)};
zea=function(a){return Ho('<div class="iv-website-companion"><div class="yt-uix-hovercard ad-info-container iv-website-companion-ad-info"><span class="yt-uix-hovercard-target" data-position="topright" data-orientation="horizontal"><span class="ad-info-icon"></span></span><div class="yt-uix-hovercard-content"><p>'+Q(a.ke)+'</p></div></div><a href="'+Qo(Zo(a.target))+'" target="_blank">'+(a.Pu?'<img class="iv-website-companion-banner" src="'+Qo($o(a.Pu))+'">':"")+'<div class="iv-website-companion-block"><div class="iv-website-companion-icon"><img src="'+
Qo($o(a.wH))+'"></div><div class="iv-website-companion-text"><div class="iv-website-companion-header">'+Q(a.headline)+'</div><div class="iv-website-companion-desc"><span class="yt-badge yt-badge-ad">'+Lq()+'</span><span class="iv-website-companion-domain">'+Q(a.descriptionText)+'</span></div></div><div class="iv-website-companion-action yt-uix-button-size-default yt-uix-button-primary">'+(a.zu?Q(a.zu):'<span class="iv-website-companion-action-icon"></span>')+'</div></div><a href="'+Qo(Zo(a.target))+
'" target="_blank"></div>')};
Lq=function(){var a=Aa("Ad");return Ho(""+a)};
Aea=function(a){var b=Mq(a);if(!b)return{};var c=Nq(b);return c?{shoppingCompanionItemRenderer:{headline:Oq(b.kd()),merchant:Oq(Pq(c)),image:{thumbnails:[{url:Qq(b).getImageUrl()}]},priceText:Oq(Rq(c)),clickthroughEndpoint:Sq(Tq(Uq(a)))}}:{}};
Oq=function(a){return{runs:[{text:a}]}};
Sq=function(a){a=a||"";return{webNavigationEndpointData:{url:a},urlEndpoint:{url:a,target:"TARGET_NEW_WINDOW"}}};
Vq=function(a){return{baseUrl:a}};
Wq=function(a,b){this.g=a;this.o=b};
kp=function(a){return a.o?-1:a.g};
jp=function(a,b){a.o&&(a.o=!1,a.g=a.g*b/100)};
Bea=function(a,b,c){b=c||b;a=a||{};return""+Mo("a",a.rm)(a,null,b)};
Cea=function(a){return'<div class="videoAdUi"><div class="videoAdUiTopBar"><div class="videoAdUiAttributionContainer videoAdUiAttributionContainer-gvn"><div class="videoAdUiAttribution"'+Q(bp(a.attributionText))+">"+Q(a.attributionText)+'</div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiProgress"></div></div></div>'};
Dea=function(a){return'<div class="videoAdUi"><div class="videoAdUiTopBar"><div class="videoAdUiAttributionContainer videoAdUiAttributionContainer-gvn"><div class="videoAdUiAttribution"'+Q(bp(a.attributionText))+">"+Q(a.attributionText)+'</div></div><div class="videoAdUiLearnMoreText videoAdUiLearnMoreText-gvn">'+Q(a.dh)+'<div class="videoAdUiLearnMoreIcon"></div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiProgress"></div></div></div>'};
Xq=function(){return Ho('<div class="videoAdUiPreSkipContainer"><div class="videoAdUiPreSkipButton"><div class="videoAdUiPreSkipText"></div><div class="videoAdUiPreSkipThumbnail" aria-hidden="true"></div></div></div>')};
Eea=function(){return Ho('<div class="videoAdUiPreSkipContainer videoAdUiPreSkipContainerPlainThumbnailCountdown"><div class="videoAdUiPreSkipButton"><div class="videoAdUiPreSkipText">You can skip to video in</div><div class="videoAdUiPreSkipThumbnail"><div class="videoAdUiPreSkipThumbnailCountdown"><span class="videoAdUiPreSkipTextTimeLeft"></span></div></div></div></div>')};
Yq=function(a){a=a||{};return""+Aa("Your video will begin in {$xSeconds}",{xSeconds:Q(a.Cg)})};
Fea=function(a){return Ho('<div class="videoAdUiBrandPrecapContainer html5-stop-propagation"><div class="videoAdUiBrandPrecapContent"><div class="videoAdUiBrandPrecapImageContainer" aria-hidden="true"><img class="videoAdUiBrandPrecapBrandImage" src="'+Qo($o(a.vF))+'"></div><div class="videoAdUiBrandPrecapTextContainer"><div class="videoAdUiBrandPrecapBrandName">'+Q(a.xF)+'</div><div class="videoAdUiBrandPrecapBrandMessage">'+Q(a.wF)+"</div></div></div></div>")};
Gea=function(a){return Ho('<div class="videoAdUiBrandPrecapContainer html5-stop-propagation"><img class="videoAdUiBrandPrecapAutoGenImage" src="'+Qo($o(a.uF))+'"></div>')};
Hea=function(a){a=a||{};return Ho('<div class="videoAdUiBrandInteractionUnit html5-stop-propagation"><span class="videoAdUiBrandInteractionPreMessageText">'+Q(a.preMessageText)+'</span><div class="videoAdUiBrandInteractionButtonContainer"><button class="videoAdUiBrandInteractionButton videoAdUiBrandInteractionLikeButton"><div class="videoAdUiBrandInteractionIcon videoAdUiBrandInteractionLikeIcon"></div></button><span class="videoAdUiBrandInteractionMessageBox videoAdUiLikeMsg"></span></div><div class="videoAdUiBrandInteractionButtonContainer"><button class="videoAdUiBrandInteractionButton videoAdUiBrandInteractionDislikeButton"><div class="videoAdUiBrandInteractionIcon videoAdUiBrandInteractionDislikeIcon"></div></button><span class="videoAdUiBrandInteractionMessageBox videoAdUiDislikeMsg"></span></div></div>')};
Iea=function(a){return Ho('<div class="videoAdUiBrandInteractionUnit videoAdUiBrandInteractionUnitConfirmationMsg html5-stop-propagation"><div class="videoAdUiBrandInteractionPostMessageText">'+Q(a.postMessageText)+"</div></div>")};
Jea=function(a){a=a||{};return Ho('<div class="videoAdUiReasonToWatchBox html5-stop-propagation"><div class="videoAdUiReasonToWatchText">'+Q(a.NQ)+"</div></div>")};
Kea=function(a){a=a||{};return Ho('<div class="videoAdUiReasonToWatchBox videoAdUiReasonToWatchDynamicBox html5-stop-propagation"><div class="videoAdUiReasonToWatchDynamicPrefixText">'+Q(a.MQ)+'</div><div class="videoAdUiReasonToWatchDynamicTopic">'+Q(a.OQ)+"</div></div>")};
Lea=function(a){return'<div class="videoAdUiSkipContainer html5-stop-propagation"><button class="videoAdUiSkipButton videoAdUiAction">'+Q(a.zs)+'<div class="videoAdUiSkipIcon"></div></button></div>'};
Mea=function(a){return'<div class="videoAdUiSkipContainer html5-stop-propagation"><button class="videoAdUiSkipButton videoAdUiAction"><div class="videoAdUiSkipButtonExperimentalText">'+Q(a.zs)+'</div><div class="videoAdUiSkipIcon"></div></button></div>'};
Nea=function(a){return'<div class="videoAdUiSkipContainer html5-stop-propagation videoAdUiSkipContainerWithThumbnail"><div class="videoAdUiSkipText">'+Q(a.zs)+'</div><button class="videoAdUiSkipButton videoAdUiAction videoAdUiSkipButtonWithThumbnail"><div class="videoAdUiSkipIconContainer"><div class="videoAdUiSkipIcon"></div></div></button></div>'};
Zq=function(a){var b="";a=2<=a.ll&&1<=a.Pj?Aa("Ad {$adPosition} of {$totalAds} {$timeLeft}",{adPosition:Q(a.Pj),totalAds:Q(a.ll),timeLeft:Q(a.kl)}):Aa("Ad {$timeLeft}",{timeLeft:Q(a.kl)});return b+=a};
ar=function(){var a=$q(),b=Ho("</a>"),a=Aa("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)});return Ho(""+("<div class='videoAdUiAdSettingsLongTooltip'>"+a+"</div>"))};
$q=function(){return Ho('<a href="https://www.google.com/settings/ads/onweb" target="_blank">')};
br=function(a){return Ho("<div class='videoAdUiPopupBackground'><div class='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='videoAdUiPopupPositioner'><form class='videoAdUiPopupFrame'><div class='videoAdUiPopupHeading videoAdUiHideIfEmpty'>"+Q(a.heading)+"</div><div class='videoAdUiPopupText'>"+Q(a.message)+
"</div><div class='videoAdUiPopupButtons'>"+Q(a.buttons)+"</div></form></div></div>")};
Oea=function(a){for(var b="<ul class='videoAdUiWhyThisAdReasons videoAdUiHideIfEmpty'>",c=a.targetingReasons,d=c.length,e=0;e<d;e++)b+="<li>"+Q(c[e])+"</li>";b+="</ul><div class='videoAdUiWhyThisAdGenericMessage'>"+Q(a.Op)+"</div><a class='videoAdUiWhyThisAdMute videoAdUiHideIfEmpty'>"+Q(a.mute)+"</a><a class='videoAdUiWhyThisAdControl videoAdUiHideIfEmpty' href='https://www.google.com/settings/ads/onweb' target='_blank'>"+Q(a.control)+"</a>";a=""+br({heading:cr(""+Q(a.heading)),message:cr(b),buttons:cr("<button class='videoAdUiWhyThisAdCloseButton videoAdUiPopupDefaultButton'>"+
Q(a.close)+"</button>")});return Ho(a)};
Pea=function(a){for(var b=""+Q(a.question),c=a.options,d=c.length,e=0;e<d;e++)var f=c[e],b=b+("<label for='videoAdUiMuteOption"+Qo(e)+"'><input type='radio' id='videoAdUiMuteOption"+Qo(e)+"' name='videoAdUiMuteOption' class='videoAdUiMuteOption"+Qo(e)+"' />"+Q(f)+"</label>");a=""+br({heading:cr(Q(a.heading)+" <a class='videoAdUiMuteUndo'>"+Q(a.undo)+"</a>"),message:cr(b),buttons:cr("<button class='videoAdUiMuteCancel videoAdUiPopupButton'>"+Q(a.cancel)+"</button><button class='videoAdUiMuteConfirm videoAdUiPopupDefaultButton'>"+
Q(a.confirm)+"</button>")});return Ho(a)};
Qea=function(a){var b=String(""+a.heading);return Ho(br({heading:b?new xo(b,void 0):"",message:cr(""+Q(a.message)),buttons:cr("<button class='videoAdUiMuteCancel videoAdUiPopupButton'>"+Q(a.cancel)+"</button><button class='videoAdUiMuteConfirm videoAdUiPopupDefaultButton'>"+Q(a.confirm)+"</button>")}))};
Rea=function(){return Ho('<div class=\'videoAdUiMuteToggleButton\'><div class=\'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=\'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>')};
dr=function(a,b,c){yp.call(this,"1",Sea,"Html",null,"dummy");this.F=0;this.ua=a.length;Bp(this,new g.dm(this));this.P=Tea(a,b);this.Ta=g.L("iv-cards-slider-list",this.P);if(this.W=g.L("iv-cards-slider-prev",this.P))this.o.X(this.W,"click",this.Oa),g.O(this.W,!1);(this.fa=g.L("iv-cards-slider-next",this.P))&&this.o.X(this.fa,"click",this.Na);this.o.X(this.P,"click",g.ya(function(a,b,c){c.target!=a&&Vm(b)},g.L("ad-companion-clickthrough",this.P),c))};
Tea=function(a,b){var c=(0,g.I)(a,function(a){var b=Mq(a),c=Nq(b);a=Uq(a);return{headline:b.kd(),description:er(b,"description"),image:Qq(b).getImageUrl(),action:Rq(c),target:Tq(a),merchant:Pq(c)}}),d=3<a.length;
return Pp(yea,{cards:c,Fu:c[0].merchant,Xy:wea(),jA:xea(),ke:ar(),Mc:b,aR:d})};
fr=function(a){a.Ta.style.left=125*-a.F+"px";a.W&&g.O(a.W,0<a.F);a.fa&&g.O(a.fa,a.F<a.ua-3)};
ir=function(a){yp.call(this,"1",Uea,"Html",null,"website_actions_companion");Bp(this,new g.dm(this));var b=a.g(),c=b&&b.ng(),d=b&&b.Cm();a=Uq(a);b={headline:b&&b.kd()||"",wH:c&&c.getImageUrl()||"",Pu:d&&d.getImageUrl()||"",zu:a&&gr(a)||"",descriptionText:b&&hr(b)||"",target:a&&Tq(a)||"",ke:ar()};this.F=Pp(zea,b)};
Vea=function(){if(!g.sc)return!1;try{return new window.ActiveXObject("MSXML2.DOMDocument"),!0}catch(a){return!1}};
lr=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(jr){var c=kr();if(c)return a&&c.appendChild(c.createNode(1,a,b||"")),c}throw Error("Your browser does not support creating new documents");};
g.mr=function(a){if("undefined"!=typeof window.DOMParser)return(new window.DOMParser).parseFromString(a,"application/xml");if(jr){var b=kr();b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");};
nr=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");};
kr=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};
or=function(a){return Ym(Wea,null,a.parentNode.nodeName,a.nodeName)};
pr=function(a){return Ym(Xea,null,a.parentNode.nodeName,a.nodeName)};
qr=function(a){var b=lr(a.tagName,a.namespaceURI),c=g.Be(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};
rr=function(a,b){return null!=a?(0,g.ye)(g.ze(a),function(a){return a.nodeName==b}):[]};
sr=function(a,b){var c=a.getAttribute(b);return null!=c?c.toLowerCase():null};
tr=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=Pa(c);b&&(c=Ja(c,"&")?"document"in pa?naa(c):oaa(c):c);return c};
ur=function(a,b,c,d){if(null!=a){a=g.ze(a);for(var e=0,f=a.length;e<f;e++){var k=a[e];if(k.nodeName!=b)throw or(k);c.call(d,k)}}};
vr=function(a){a=g.F(a);return E(a)?window.NaN:Va(a)};
wr=function(a,b){if(null!=a){var c=a.split(":");if(3==c.length)return c=new yn(0,0,0,Va(c[0]),Va(c[1]),Va(c[2])),60*(60*(24*c.days+c.g)+c.o)+c.A}return null!=b?b:-1};
xr=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};
zr=function(a,b){if(b)return a;var c=g.F(a);E(c)?c=a:Yea.test(c)&&(Ja(c,"/pagead/adview")||Ja(c,"/pagead/conversion")||Ja(c,"/gampad/live/conversion")?Zea(c):Ja(c,"/pcs/view")&&$ea(c))?(c=yr(c,"&sdkv="+Hn(Jn)),Jn.ca&&(c=yr(c,"&ssss=gima"))):c=a;return c};
yr=function(a,b){var c=a.indexOf("&adurl=");return-1!=c?paa(a.substr(0,c),b,a.substr(c,a.length)):a+b};
Zea=function(a){a=a||"";return(0,g.Ar)(afa,function(b){return 0<=Eg(a,0,b,a.search(Fg))})};
$ea=function(a){a=a||"";return(0,g.Ar)(bfa,function(b){return 0<=Eg(a,0,b,a.search(Fg))})};
Dr=function(a,b,c){var d=new dp;ur(a,"Tracking",function(a){var e=sr(a,"event"),k=zr(tr(a),b);Br(k)&&null!=e&&(null!=c&&(k=c(e,k)),"progress"==e?(a=sr(a,"offset"),a=Cr(a),null!=a&&ip(d,e,k,a)):ip(d,e,k))});
return d};
cfa=function(a){if(E(g.F(a)))return null;a=new g.Ll(a);if("thismessage"!=a.B||"extensions"!=a.o)return null;a=a.A;if(!g.Da(a,"/"))return null;a=a.substr(1);return E(g.F(a))?null:a};
Cr=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 Wq(a,!0)}else if(a=wr(a),0<=a)return new Wq(a,!1);return null};
Br=function(a){if(E(g.F(a)))return!1;try{new g.Ll(a)}catch(b){return!1}return!0};
Er=function(a,b){Fp.call(this);this.o=a;this.A=b};
Fr=function(){};
Gr=function(a,b){Fp.call(this,b);this.o=a};
Hr=function(a){Fp.call(this);this.o=a};
Jr=function(a,b,c,d,e,f,k,l,m,n,q,r,w,y,B,D,K,X){this.ua=a;this.ra=b;this.W=c;this.zb=e;this.Oa=(0,window.isNaN)(m)||""==m||0==m?-1:m;this.oa=n?g.ob(n):[];this.ba=q?g.ob(q):[];this.F=r?g.ob(r):[];this.fa=[];this.O=[];this.M=null;this.ca=[];this.Ja=!0;this.o=this.g=this.J=null;this.G=new Fl(y);this.ga=null!=X;this.rb=(this.ha=null!=B)?D||!1:!1;this.tb=this.sI?K||!1:!1;this.Bb=g.F(B);this.Hb=g.F(X);this.xb=this.A=null;this.C=new Bda;this.da=new g.Wd(0,0);this.K=String(Math.floor(1E9*Math.random()));
this.Ta=this.ka=this.P=this.D=null;this.qb=(0,g.G)();this.Ra=this.Na=0;this.sa=this.Za=!1;this.B=[];this.Sa=null;this.Fa=!1;(0,g.H)(this.F,function(a){a.J=this},this);
Ir(this,w)};
gq=function(a){var b=a.getExtension("AdFormat");if(null!=b&&Ea(b.o+"_"+b.A+"_"+b.B,"2_4"))return b.o+"_"+b.A+"_"+b.B;b=Kr(a);b=Lr(a,Mr)?"14":fo(b,"hideMaster")||fo(b,"blockAllAds")?"3":a.Vb()?Nr(a)?"2_3":a.isSkippable()?Or(a)?"2_1":"2_2":"2":"1";return dfa(a)+"_"+b};
dfa=function(a){if(hq(a))return 4;if(Lr(a,Mr))return 14;if(Lr(a,efa))return 17;if(Lr(a,ffa))return 15;if(Pr(a,gfa)||Pr(a,Qr))return 1;var b=Fm().g;return b&&b.g("fix_petra_ad_foramt")&&(b=Rr(a),null!=b&&(Gq(b)||Fq(b)))?1:Sr(a)?2:0};
Tr=function(a){return null!=a.ra?a.ra:""};
Ur=function(a){return null!=a.o?g.nb(Ur(a.o),a.oa):a.oa};
Vr=function(a){return null!=a.o?g.nb(Vr(a.o),a.ba):a.ba};
Wr=function(a){return null!=a.o?g.nb(a.O,Wr(a.o)):a.O};
Kr=function(a){return null!=a.g?a.g.G:{}};
hfa=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};
Xr=function(a){return null!=a.g?a.g.sa:""};
Yr=function(a,b){var c=[];(0,g.H)(a.G.fb(),function(a){pb(c,Gp(a,b))});
return c};
iq=function(a,b){a.g=b;a.da=new g.Wd(0,0);if(null!=a.g){a.g instanceof yp&&(a.da=a.g.af());var c=a.o;if(null!=c){var d=pp(a.g,c)||pp(a.g,c,!0);iq(c,d)}}P.g()&&ifa(a)&&g.fb(Wr(a))?P.g()&&P.A?(c=a.B,g.fb(c)?c={}:(d=Mq(c[0])&&Nq(Mq(c[0]))&&Pq(Nq(Mq(c[0])))||"",d=Aa("Shop products from {$advertiserName}",{advertiserName:Q(d)}),d=Ho(""+d),c={shoppingCompanionRenderer:{shopText:Oq(d.toString()),itemList:{horizontalListRenderer:{items:(0,g.I)(c,Aea),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:Oq(Lq().toString()),clickToAdvSiteEndpoint:Sq(Zr(a)),clickTrackingEndpoints:[{loggingUrls:(0,g.I)(Yr(a,"companionClick"),Vq)}],impressionEndpoints:[{loggingUrls:(0,g.I)(Yr(a,"companionImpression"),Vq)}]}}),a.J=c):jfa(a,a.B):P.g()&&g.fb(Wr(a))&&!Fm().g.g("website_actions_holdback")&&$r(a,a.B)};
as=function(a){return null!=a.ua?a.ua:""};
cs=function(a){if(null==a.o||bs(a.o.W))return[];var b=[as(a.o)];pb(b,cs(a.o));return b};
iea=function(a){var b=cs(a).reverse();b.push(as(a));return b};
ds=function(a){if(null==a.o||bs(a.o.W))return[];var b=a.o.g;null!=b?(b=b.ka,b=null!=b?b:""):b="";b=[b];pb(b,ds(a.o));return b};
es=function(a){if(null==a.o||bs(a.o.W))return[];var b=[Tr(a.o)];pb(b,es(a.o));return b};
fs=function(a){if(a.o){var b=fs(a.o);if(b)return b}return(a=a.getExtension("metrics"))?a.o:null};
fq=function(a){if(a.o){var b=fq(a.o);if(b)return b}return P.g()?(a=a.getExtension("viral"))?a.o:null:(a=a.getExtension("metrics"))?a.A:null};
jea=function(a){var b=es(a).reverse();b.push(Tr(a));return b};
bs=function(a){return"YT:ADSENSE"==a||"YT:DOUBLECLICK"==a};
gs=function(a){if(null==a.o)return[a.W];var b=gs(a.o);b.push(a.W);bs(b[0])&&b.shift();return b};
hs=function(a){a=a.getExtension("waterfall");return null!=a&&-1!=a.Wd()?a.Wd():-1};
is=function(a){if(-1!=a.Oa)return a.Oa;a=a.getExtension("pod");return null!=a&&-1!=a.o?a.o:-1};
js=function(a){a.Fa||(a.Fa=!0,a.Sa.K++,null!=a.o&&js(a.o))};
ks=function(a){if(a.Sa instanceof wq){var b=a.Sa;if(0<xq(b))return b}return null!=a.o?ks(a.o):null};
ls=function(a,b,c,d){a=Wr(a);return $n(new Yn(new g.Wd(b,c),d),a)};
ms=function(a){var b=a.A.Yi,c=a.A.Xi;if(!b||!c)if(a=a.A.g?Gg(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.Wd(b,c)};
kfa=function(a,b){var c=g.$a(a.ca,function(a){return 4==a.bc()&&ns(os(a))});
if(c){var d=c.g();if(!d.ng().getImageUrl()){var e=new ps;qs(e,b.channelIconThumbnailUrl);d.ng=function(){return e}}var f=Fm().g;
if(!d.kd()||f.g("website_actions_suppress_advertiser_supplied_text"))d.kd=function(){return b.authorName};
f.g("website_actions_suppress_advertiser_supplied_text")&&Uq(c).setTitle("");c.g=function(){return d}}};
lfa=function(a){var b=(0,g.ye)(a,function(a){return ns(os(a))});
0==b.length&&0<a.length&&Fm().g.g("enable_ad_video_end_renderers")&&(b=a.slice(1,2));return b};
jfa=function(a,b){var c=(0,g.ye)(b,function(a){return rs(os(a))});
g.fb(c)&&(c=b);c=new dr(c,Zr(a),Yr(a,"companionClick"));c.J=a;c.D=!0;ts(a,new Iq(c,[],null,!0))};
mfa=function(a,b){var c=g.$a(a.B,function(a){return 4==a.bc()&&rs(os(a))});
if(!c)return null;var d=c.g();if(!d.ng().getImageUrl()){var e=new ps;qs(e,b.channelIconThumbnailUrl);d.ng=function(){return e}}var f=Fm().g;
if(!d.Cm().getImageUrl()){var k=new ps;if(f.g("website_actions_use_companion_image_as_banner")){var l=g.$a(Wr(a),function(a){return"Image"==a.jd()});
qs(k,l&&l.g.A||"")}else qs(k,b.g);d.Cm=function(){return k}}if(!d.kd()||f.g("website_actions_suppress_advertiser_supplied_text"))d.kd=function(){return b.authorName};
f.g("website_actions_suppress_advertiser_supplied_text")&&Uq(c).setTitle("");c.g=function(){return d};
return c};
$r=function(a,b){var c=g.$a(b,function(a){return 4==a.bc()&&rs(os(a))});
if(c){var d=c.g(),e=d&&d.ng().getImageUrl(),f=d&&d.Cm().getImageUrl(),k=d&&d.kd();e&&f&&k&&(P.A?(c=Uq(c),a.J={actionCompanionRenderer:{headline:k,iconImageUrl:e,bannerImageUrl:f,actionTitle:c&&gr(c)||void 0,descriptionText:d&&hr(d)||void 0,target:c&&Tq(c)||void 0}}):(d=new ir(c),d.J=a,d.D=!0,ts(a,new Iq(d,[],null,!0))))}};
nfa=function(a){if(!a.A||us(a)&&!Lr(a,["ADSENSE/ADX"]))return[];var b=ms(a);if(0>=b.width||0>=b.height)return[];var c=new Vn;c.creativeType="All";c.A="All";c.B="SelectNearMatch";c.g=40;var d=ls(a,b.width,b.height,c);if(!g.fb(d))return d;c.o="ResizeSmaller";d=(0,g.ye)(Wr(a),function(a){return a.g.vk()},a);
return $n(new Yn(new g.Wd(b.width,b.height),c),d)};
ws=function(a){if(g.fb(a.ca))return!1;var b=Fm().g;if(15>vs(a))return!1;var c=ofa,d=a.ca[0].bc();if(d==c.vu){var e=a.ca[0].g();a=e&&e.ng().getImageUrl();e=e&&e.kd();if(!a||!e)return!1}return b.g("enable_ad_video_end_renderers")&&d==c.UE||!b.g("website_actions_holdback")&&!b.g("website_actions_endcap_holdback")&&d==c.vu};
pfa=function(a){var b=null,c=0;(0,g.H)(nfa(a),function(a){var d=ms(this);d=!a.g.vk()||a.Eb()<=d.width&&a.getHeight()<=d.height?a.Vm():bo(a.Vm(),d);d=d.width*d.height;d>c&&(c=d,b=a)},a);
return b};
xs=function(a,b){return b||null==a.o?a.fa:g.nb(a.fa,xs(a.o))};
Ir=function(a,b){a.fa=b?g.ob(b):[];(0,g.H)(a.fa,function(a){pb(this.O,g.ob(a.g))},a);
(0,g.H)(a.O,function(a){Jq(a,this)},a);
if(P.g()&&(a.Vb()&&(a.O=(0,g.ye)(a.O,function(a){return 60>=a.getHeight()})),P.A)){var c=a.fa[0];
if((c=c&&c.g[0])&&"Static"===c.g.O){var d=c.g.Ze(),e=c.g.M,f=c.Eb(),k=c.getHeight();a.J={imageCompanionRenderer:{url:c.g.A,clickThroughUrl:d,clickTrackingUrls:e,width:f,height:k}}}}};
ys=function(a,b){return(0,g.Ek)(a.F,function(a){return a instanceof rp&&"linear"==b||a instanceof yp&&"nonlinear"==b?!0:!1})};
zs=function(a){var b=a.g;return us(a)&&null!=b&&b instanceof yp&&(90<a.da.height||null!=a.A&&a.A.Li)};
As=function(a,b){if(null==b)return null;var c=b.getExtension("adx");return null!=c?c:As(a,b.o)};
Bs=function(a){var b=As(a,a.o);if(null!=b){if("skippable"==b.o)return b.A;if("nonskippable"==b.o)return null}var b=null,c=new Wq(5,!1),d=qfa(a);"implicit"==d&&(b=c);var e=a.g;null==b&&null!=e&&e instanceof rp&&(b=e.D);null!=b||"explicit"!=d||(b=c);return P.g()&&a.Vb()&&null!=b?(0,window.isNaN)(a.A.C)?c:new Wq(a.A.C,!1):b};
qfa=function(a){if(null!=g.$a(a.G.fb(),function(a){return!g.fb(Gp(a,"skip"))}))return"implicit";
var b=a.G.get("DFP");if(b instanceof Gr)switch(b.o){case "InstreamSelect":return"implicit";case "Generic":return"explicit"}a=a.g;return P.g()&&null!=a&&(a=a.cj,null!=a&&!g.fb(gp(a,"skip")))?"explicit":"none"};
Cs=function(a){a=Rr(a);if(null!=a){var b;(b=Dq(a)||Gq(a)||Fq(a))||(null!=a?(a=(new g.Ll(a)).o,b=Ea(a,"viral.adsense.net")):b=!1);a=b}else a=!1;return a};
Or=function(a){if(null!=a.ra&&null!=a.A){var b;(b=P.g())||!(b=Cs(a)||!1)||(b=us(a)&&!Lr(a,["ADSENSE/ADX"]))||(Lr(a,Qr)?(b=a.G.get("DFP"),b=null!=b?"InstreamSelect"==b.o:!1):b=!1);a=b||a.o&&a.o.ga&&Cs(a.o)?!0:!1}else a=!1;return a};
Zr=function(a){return null===a.g?null:a.g.Ze()};
vs=function(a){return null!=a.g?a.g.getDuration():-1};
Ds=function(a){return null===a.M?ws(a)?7:0:10};
Es=function(a){return null===a.g?null:a.g.Jq()};
Fs=function(a){return null===a.g?null:a.g.Iq()};
us=function(a){return Lr(a,Gs)||Lr(a,["ADSENSE-VIRAL"])};
hq=function(a){return null!=a.o&&hq(a.o)||Lr(a,rfa)};
Nr=function(a){var b=Es(a);return Lr(a,["402"])||g.u(b)&&null!==b.match("//s0.2mdn.net/instream/html5/survey/survey.html")};
Hs=function(a){return us(a)&&Or(a)&&!a.isBumper()&&!E(g.F(a.D))&&null!==Bs(a)&&0<kp(Bs(a))};
Sr=function(a){return Pr(a,Gs)||Pr(a,["402"])};
Is=function(a){a=a.getExtension("InfoCards");return null!=a?a.o:null};
Js=function(a){a=a.getExtension("InfoCardsTracking");return null!=a?a.o:null};
Lr=function(a,b){return null!=a.ra?g.eb(b,a.W):!1};
Pr=function(a,b){for(var c=gs(a),d=c.length-1;0<=d;d--)if("UNKNOWN"!=c[d]){if(g.eb(b,c[d]))return!0;break}return!1};
ts=function(a,b){a.O=[b]};
ifa=function(a){return a.Vb()&&0<a.B.length&&(0,g.Ar)(a.B,function(a){return 1==a.bc()})};
sfa=function(a){return 0<a.B.length&&(0,g.Ar)(a.B,function(a){return 4==a.bc()})};
Rr=function(a){if(null==a.A)return null;var b=a.A.g;null!=b&&Ea(b,"/PrefetchedAd")&&null!=a.o&&(a=a.o.G.get("LocalRedirect"),b=null!=a?a.Rg():null);return b};
Ks=function(a,b){g.xf.call(this);this.g=a;this.re=new g.dm(this);g.N(this,this.re);this.re.X(b,["companion_impression","companion_click"],this.o)};
Ls=function(){g.xf.call(this);this.D=this.J=this.M=this.F=!1;this.g=0;this.A=[];this.G=!1;this.P=this.O=window.Infinity;this.o=0;this.C=!1;this.B=new g.dm(this);this.K={}};
tfa=function(a){Ms(a);!(a.Kh instanceof g.xf)&&"ontouchstart"in window.document.documentElement&&hn()?(a.K={touchstart:(0,g.A)(a.JP,a),touchmove:(0,g.A)(a.IP,a),touchend:(0,g.A)(a.HP,a)},g.Ib(a.K,function(a,c){this.Kh.addEventListener(c,a,!1)},a)):a.B.X(a.Kh,"click",a.Nw)};
Ms=function(a){a.B.za(a.Kh,"click",a.Nw);g.Ib(a.K,function(a,c){this.Kh.removeEventListener(c,a,!1)},a);
a.K={}};
ufa=function(a,b){a.A=[];(0,g.H)(b,function(a){g.ib(this.A,a.identifier)},a)};
Ns=function(a,b){return(0,g.Ek)(b,function(a){return g.eb(this.A,a.identifier)},a)};
Os=function(a){if(!vfa.test(a))throw Error("'"+a+"' is not a valid alpha hex color");5==a.length&&(a=a.replace(wfa,"#$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]};
Ps=function(a){var b=a.slice(0);b[3]=Math.round(1E3*a[3])/1E3;return"rgba("+b.join(",")+")"};
g.Qs=function(){g.xf.call(this);this.g=0;this.endTime=this.startTime=null};
Rs=function(a,b){g.sa(b)||(b=[b]);var c=(0,g.I)(b,function(a){return g.u(a)?a:a.property+" "+a.duration+"s "+a.timing+" "+a.delay+"s"});
g.bh(a,"transition",c.join(","))};
Ss=function(a,b,c,d,e){g.Qs.call(this);this.o=a;this.C=b;this.F=c;this.A=d;this.D=g.sa(e)?e:[e]};
Ts=function(a,b){g.xf.call(this);this.D=b;this.C=a;this.ji=null;this.A=new g.dm(this);g.N(this,this.A);this.g=new Ls;g.N(this,this.g);var c=Uc(ad(a.g),hd,6);this.B=(this.o=null!=J(c,5)&&!!J(c,5))||null==J(c,7)?"#000000FF":J(c,7);c=this.o?{uF:g.F(J(c,6))}:{xF:g.F(J(c,1)),wF:g.F(J(c,3)),vF:g.F(J(c,2))};this.Ee=xfa(this,c);null!=this.Ee&&g.O(this.Ee,!1);b.appendChild(this.Ee);this.A.X(this.g,"click",this.OH);this.g.Gb(this.Ee)};
xfa=function(a,b){if(a.o){var c=Pp(Gea,b);var d=g.L("videoAdUiBrandPrecapAutogenImage",c)}else c=Pp(Fea,b),d=g.L("videoAdUiBrandPrecapContent",c),null!=a.B&&(c.style.backgroundColor=Ps(Os(a.B))),d=g.L("videoAdUiBrandPrecapBrandImage",g.L("videoAdUiBrandPrecapImageContainer",d));null!=d&&(d.Y0=function(){return!1});
return c};
Us=function(a,b,c,d,e){(new Ss(a.Ee,.4,{paddingTop:b,opacity:d},{paddingTop:c,opacity:e},[{property:"padding-top",duration:.4,timing:"ease-in-out",delay:0},{property:"opacity",duration:.4,timing:"ease-in-out",delay:0}])).play()};
Vs=function(a,b){var c=g.Me(g.Ce(a.D),"html5-video-player");null!=c&&g.S(c,"ytp-ad-display-override",b)};
Ws=function(a,b,c,d,e,f){Fp.call(this,f);this.A=a;this.C=b;this.D=c;this.B=d;this.o=e};
Xs=function(a){return null!=a.o?a.o.length:0};
Ys=function(a,b,c,d,e,f,k,l,m){Fp.call(this,e);this.B=a;this.A=b;this.C=c||"";this.D=d||[];this.o=f||null;this.G=k||null;this.F=l||null;this.K=m||null};
Zs=function(a,b){this.C=a;this.o=b;this.A=this.B=this.D=this.g=null};
$s=function(a){return null!=a.C||null!=a.o};
at=function(a,b,c){b=g.L(b,a.g);null!=b&&a.B.X(b,"click",c)};
bt=function(a,b,c){null!=a.g&&a.g.parentElement.removeChild(a.g);a.g=Pp(b,c);at(a,"videoAdUiPopupCloseIcon",a.Xl);a.D.appendChild(a.g);b=g.L("videoAdUiPopupFrame",a.g);null!=b&&g.hf(b,"submit",function(a){a.preventDefault()});
a=g.L("videoAdUiPopupDefaultButton",a.g);null!=a&&a.focus()};
ct=function(a,b){null!=a.A&&a.A.dispatchEvent(b)};
dt=function(){this.attributionText=Zq({kl:"",Pj:0,ll:0});this.dh=""+Aa("Learn More {$suffix}",{suffix:Q("")});this.visitAdvertiserText=""+Aa("Visit Advertiser's Site");this.ke=ar();this.skipOffset=null;this.J=this.Na=this.Oa=this.Ja=this.ba=!1;this.O=null;this.da=6E3;this.F=!0;this.ga=!1;this.ka=this.o=this.ha=!0;this.B=!1;this.P=!P.D;this.ra=this.oa=this.Sa=!1;this.G=!0;this.W=this.Fa=this.ua=this.sa=this.C=!1;this.D={};this.ca=null;this.showContentThumbnail=!0;this.A=this.K=!1;this.g=null;this.Za=
!1;this.Uf=-1};
et=function(a,b,c,d,e,f){var k=new dt;k.C=a;k.Ra=b;k.skipOffset=c;k.fa=null!=e?e.contentId:null;k.ha=e.QR;k.ca=Bea;k.Ta=Tp(b,null!=c,e.Ci);k.showContentThumbnail=null!=e.contentId&&e.showContentThumbnail;k.g=e.Iw;k.Za=e.SF;null!=f&&(k.D=f);null==c&&(a=Fm().g,d&&a.g("show_countdown_on_bumper")&&(k.Oa=!0,k.ba=!0),a.g("show_thumbnail_on_standard")&&(k.ba=!0),a.g("log_video_preview_interaction")&&(k.Ja=!0),!d&&a.g("persist_text_on_preview_button")&&(k.Na=!0));P.g()&&null!=k.g&&null!=J(k.g,1)&&(d=ad(k.g),
null!=J(d,6)&&(d=Uc(d,hd,6),null!=J(d,1)&&null!=J(d,2)&&null!=J(d,3)&&(k.J=!0,null!=J(d,4)&&(k.O=J(d,4)))));return k};
ft=function(a,b,c,d,e){return new Ss(a,b,{opacity:d},{opacity:e},{property:"opacity",duration:b,timing:c,delay:0})};
gt=function(a,b){return ft(a,b,"ease-out",0,1)};
it=function(a,b){g.xf.call(this);this.P=new g.dm(this);g.N(this,this.P);this.ba=a;this.O=b;this.K=!1;this.A=this.F=null;this.W=0;this.B=[];this.C=[];this.D=[];this.J=0;this.G=!1;var c=a.g,c=this.g=null!=c&&null!=ad(c)?Uc(ad(c),fd,3):null;this.da=null!=c&&null!=J(c,7)&&1==J(c,7)?!0:!1;if(null==this.g||null==J(this.g,7))c=null;else var c=J(this.g,7),d=J(this.g,8),c=null!=d&&g.eb(yfa,c)?d:null;c=Pp(Hea,{preMessageText:c||""});g.Fe(g.L("videoAdUiLikeMsg",c),""+Aa("I like this"));g.Fe(g.L("videoAdUiDislikeMsg",
c),""+Aa("I dislike this"));if(null!=this.g){var d=J(this.g,7),e=null!=d?zfa[d]:null;null!=e&&(this.M=d,g.R(c,e))}d=g.L("videoAdUiBrandInteractionLikeButton",c);null!=d&&ht(this,d);d=g.L("videoAdUiBrandInteractionDislikeButton",c);null!=d&&ht(this,d);g.O(c,!1);this.o=c;this.O.appendChild(this.o)};
Bfa=function(a){if(null==a.g||null==J(a.g,7))return null;var b=J(a.g,7);a=J(a.g,9);return null!=a&&g.eb(Afa,b)?a:null};
ht=function(a,b){var c=new Ls;a.P.X(c,"click",a.ca);c.Gb(b)};
Cfa=function(a){if(null!=a.g){var b=Bfa(a);if(null!=b){var c=Pp(Iea,{postMessageText:b});a.O.appendChild(c);g.mg(function(){gt(c,.5).play();var a=ft(c,.5,"ease-in",1,0);g.mg(function(){a.play()},3E3,this)},500,a)}}};
kt=function(){g.xf.call(this);this.g=!1;this.A=this.B=this.o=null;this.C=new g.dm(this);this.o=Pp(Rea);this.B=g.L("videoAdUiUnmutedIcon",this.o);this.A=g.L("videoAdUiMutedIcon",this.o);jt(this);this.C.X(this.o,"click",this.D)};
jt=function(a){a.B&&a.A&&(a.g?(g.bh(a.B,"display","none"),g.bh(a.A,"display","block")):(g.bh(a.B,"display","block"),g.bh(a.A,"display","none")))};
lt=function(a,b){g.xf.call(this);this.D=a;this.F=1;this.C=this.A=this.g=this.o=null;this.B=a.Oa;this.J=new g.dm(this);g.N(this,this.J);this.G=new Ls;g.N(this,this.G);this.M=!a.Na;this.O=a.Ja;this.K=0;this.o=Pp(Xq);this.g=g.L("videoAdUiPreSkipButton",this.o);this.A=g.L("videoAdUiPreSkipText",this.g);g.R(this.A,"videoAdUiPreviewText");this.C=g.L("videoAdUiPreSkipThumbnail",this.g);this.B?g.Fe(this.A,Yq({Cg:""})):g.Fe(this.A,""+Aa("Video will play after ad"));var c=Wp(this.D.fa)||"";if(this.D.showContentThumbnail&&
!E(g.F(c))){var d=g.pe("img");d.setAttribute("src",c);g.R(d,"videoAdUiPreSkipThumbnailImage");this.C.appendChild(d)}else this.B?(g.O(this.C,!1),g.R(this.g,"videoAdUiPreSkipButtonNoThumbnail"),g.R(this.A,"videoAdUiPreSkipTextOnlyCentered")):g.O(this.g,!1);g.O(this.o,!1);b.appendChild(this.o);this.J.X(this.G,"click",this.P);this.G.Gb(this.C)};
mt=function(a,b){g.xf.call(this);this.B=new g.dm(this);g.N(this,this.B);this.K=a;this.A=null;this.F=this.J=0;this.D=this.C=!1;var c=a.g,d;null!=c&&null!=J(c,1)!=null&&null!=Uc(ad(c),id,7)&&(d=Uc(ad(c),id,7));this.o=d||new id;c=this.o;null!=J(c,7)&&null!=J(c,8)?(this.A=d=J(c,8),c={MQ:J(c,7),OQ:d},c=Pp(Kea,c),Dfa(this,c)):c=Pp(Jea,{NQ:J(this.o,1)});null!=J(this.o,6)&&(d=J(this.o,6),g.R(c,Efa[d]));g.O(c,!1);this.g=c;b.appendChild(this.g)};
Dfa=function(a,b){var c=new Ls;a.B.X(c,"click",(0,g.A)(function(){this.J++},a));
c.Gb(b);c=g.L("videoAdUiReasonToWatchDynamicTopic",b);if(null!=c){var d=new Ls;a.B.X(d,"click",(0,g.A)(function(){this.F++},a));
d.Gb(c)}};
Ffa=function(a){var b=new Ss(a.g,1.25,{right:"-265px"},{right:"0px"},[{property:"right",duration:.25,timing:"ease-in-out",delay:1}]),c=new Ss(g.L("videoAdUiReasonToWatchText",a.g),.25,{opacity:0},{opacity:1},[{property:"opacity",duration:.25,timing:"ease-in-out",delay:0}]);b.play();g.mg(function(){c.play()},1250,a);
a.C=!0;g.O(a.g,!0)};
Gfa=function(a){(new Ss(a.g,.25,{right:"0px"},{right:"-265px"},[{property:"right",duration:.25,timing:"ease-in-out",delay:0}])).play();a.D=!0;g.mg(function(){g.O(this.g,!1)},250,a)};
g.nt=function(a,b,c){g.M.call(this);this.Aa=null;this.A=!1;this.C=a;this.B=c;this.g=b||window;this.o=(0,g.A)(this.oG,this)};
ot=function(a){a=a.g;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null};
pt=function(a){a=a.g;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};
g.qt=function(a,b,c){g.M.call(this);this.g=a;this.B=b||0;this.o=c;this.A=(0,g.A)(this.lw,this)};
g.rt=function(a){a.stop();a.lw()};
g.tt=function(a){a.isActive()&&g.rt(a)};
g.vt=function(){g.ut||(g.ut=new g.qt(function(){Hfa()},20));
var a=g.ut;a.isActive()||a.start()};
Hfa=function(){var a=(0,g.G)();g.Ib(g.wt,function(b){b.mM(a)});
g.Tb(g.wt)||g.vt()};
zt=function(a,b){g.xf.call(this);this.config=a;this.da=0;this.ba=!1;this.state=0==kp(this.config.skipOffset)?3:1;this.o=this.ca=this.skipButton=this.ra=this.ga=this.J=this.D=this.A=null;this.gc=new g.dm(this);this.G=this.B=null;this.W=new Ls;this.ka="";this.oa=!1;var c=a.g,c=this.g=null!=c&&null!=ad(c)?Uc(ad(c),dd,1):null;this.sa=null!=c&&J(c,19)?!0:!1;c=this.g;this.O=null!=c&&J(c,24)?!0:!1;c=this.g;this.ua=null!=c&&J(c,23)?!0:!1;c=this.g;this.Fa=null!=c&&J(c,25)?!0:!1;this.A=Pp(this.sa?Eea:Xq);this.D=
g.L("videoAdUiPreSkipButton",this.A);this.J=g.L("videoAdUiPreSkipText",this.D);this.ga=g.L("videoAdUiPreSkipTextTimeLeft",this.D);this.ra=g.L("videoAdUiPreSkipThumbnail",this.D);this.ua&&g.O(this.J,!1);Fm().g.g("use_forced_linebreak_preskip_text")&&(this.oa=!0,g.R(this.J,"videoAdUiPreSkipTextForcedLineBreak"));xt(this,0);c=Wp(this.config.fa)||"";if(this.config.showContentThumbnail&&!E(g.F(c))){var d=g.pe("img");d.setAttribute("src",c);g.R(d,"videoAdUiPreSkipThumbnailImage");this.ra.appendChild(d)}else P.g()?
(g.R(this.D,"videoAdUiPreSkipButtonNoThumbnail"),g.R(this.J,"videoAdUiPreSkipTextOnlyCentered")):g.R(this.J,"videoAdUiPreSkipTextOnly");d=!P.g()&&P.W;var e=null!=this.g&&null!=Uc(this.g,ld,3)&&!this.O,f=P.g()&&Fm().g.g("fixed_padding_skip_button")&&!this.O;this.o=Pp(this.O?Nea:d||e||f?Mea:Lea,{zs:Pa(""+Aa("Skip Ad {$skipSymbol}",{skipSymbol:Q("")}))});this.skipButton=g.L("videoAdUiSkipButton",this.o);e&&(this.ca=g.L("videoAdUiSkipButtonExperimentalText",this.skipButton));if(e=d||P.g()&&Fm().g.g("use_new_skip_icon")){var k=
g.L("videoAdUiSkipIcon",this.skipButton);null!=k&&g.Mp(k,"videoAdUiSkipIcon","videoAdUiExperimentalSkipIcon")}f||d?(g.R(this.skipButton,f?"videoAdUiFixedPaddingSkipButton":"videoAdUiRedesignedSkipButton"),c=g.L("videoAdUiSkipButtonExperimentalText",this.skipButton),null!=c&&g.R(c,"videoAdUiFixedPaddingSkipButtonText"),g.R(g.L(e?"videoAdUiExperimentalSkipIcon":"videoAdUiSkipIcon",this.skipButton),"videoAdUiFixedPaddingSkipButtonIcon")):this.O&&this.config.showContentThumbnail&&!E(g.F(c))&&(d=g.pe("img"),
d.setAttribute("src",c),g.R(d,"videoAdUiPreSkipThumbnailImage"),this.skipButton.appendChild(d));this.Fa&&g.O(g.L("videoAdUiSkipText",this.o),!1);Ifa(this);"4.4.4"===(g.mn?qn(nn):"")&&(this.D.style.backgroundColor="black",this.skipButton.style.backgroundColor="black");g.O(this.A,!1);b.appendChild(this.A);0==kp(this.config.skipOffset)?this.dispatchEvent("skipshown"):(g.O(this.o,!1),g.wh(this.o,0));b.appendChild(this.o);Fm().g.g("move_skip_button_to_top")&&(g.R(this.A,"videoAdUiHighPreSkipContainer"),
g.R(this.o,"videoAdUiHighSkipContainer"));this.gc.X(this.W,"click",this.tR);this.W.Gb(this.skipButton)};
xt=function(a,b){var c=null!=a.config.skipOffset&&-1!=kp(a.config.skipOffset)?kp(a.config.skipOffset):-1;if(!(0>c)){var d=Math.ceil(c-b),c=d.toString();60<=d&&(c=co(d));d={rm:a.oa?"forcedlinebreak":a.ka,Cg:c,VL:"\n"};a.sa&&null!=a.ga?g.Fe(a.ga,c):(c=a.J,d=d||{},d=""+Mo("b",d.rm)(d,null,void 0),g.Fe(c,d))}};
At=function(a){return new Ss(a,.5,{opacity:1,visibility:"shown"},{opacity:.9,visibility:"hidden"},{property:"opacity",duration:.5,timing:"ease-out",delay:0})};
Bt=function(a,b){null!=a.D&&g.O(a.D,b);null!=a.skipButton&&g.O(a.skipButton,b)};
Ifa=function(a){if(null!=a.g){var b=null!=Uc(a.g,jd,1)&&null!=Uc(Uc(a.g,jd,1),kd,1)?J(Uc(Uc(a.g,jd,1),kd,1),1):null,c=null!=Uc(a.g,jd,2)&&null!=Uc(Uc(a.g,jd,2),kd,1)?J(Uc(Uc(a.g,jd,2),kd,1),1):null;b&&(a.skipButton.style.backgroundColor=Ps(Os(b)),c&&(a.gc.X(g.Ce(a.skipButton),"mouseover",function(){this.skipButton.style.backgroundColor=Ps(Os(c))}),a.gc.X(g.Ce(a.skipButton),"mouseout",function(){this.skipButton.style.backgroundColor=Ps(Os(b))})));
if(null!=Uc(a.g,ld,3)&&null!=a.ca){var d=Faa(Uc(a.g,ld,3));0<d.length&&J(d[0],1)&&g.Fe(a.ca,J(d[0],1))}}};
Gt=function(a,b){zt.call(this,a,b);var c=this.g;this.ha=null!=c&&J(c,8)?!0:!1;this.fa=!1;this.C=this.M=null;var c=this.g,d=Ct;null!=c&&(null!=J(c,10)&&J(c,10)||null!=J(c,9)&&!J(c,9))&&(d=Dt);this.K=d;c=this.g;d=Et;null!=c&&(null!=J(c,12)&&J(c,12)||null!=J(c,11)&&!J(c,11))&&(d=Ft);this.P=d;this.F=0};
Ht=function(a){null==a.C&&"4.4.4"!=(g.mn?qn(nn):"")&&1!=a.F&&(g.Re(a.B),a.B=null,a.C=g.mg(function(){ft(this.o,.5,"ease-in",1,.5).play();this.F=1;this.C=null},0,a))};
Jt=function(a,b){if(0!=a.F){if(b){if(null!=a.C||"4.4.4"==(g.mn?qn(nn):""))return;a.C=g.mg(function(){ft(this.o,.5,"ease-in",.5,1).play();this.C=null},0,a)}else It(a),g.wh(a.o,1);
a.F=0}};
It=function(a){null!=a.C&&(g.ng(a.C),a.C=null)};
Kt=function(a){null!=a.M&&(g.ng(a.M),a.M=null)};
Lt=function(a,b,c){var d=null;switch(c){case Et:null!=b&&null!=b.skipOffset&&(d=1E3*(a-kp(b.skipOffset)));break;case Ft:a=g.x("window.yt.util.activity.getTimeSinceActive"),d=(a=null!=a?a().toString():null)?Xa(a):null}return d};
Mt=function(a,b){var c=1E3*a.Ev;null!=b&&null!=J(b,13)&&(c=J(b,13));return c};
Nt=function(a,b,c,d,e,f,k,l,m){this.A=a;this.M=b;this.C=c;this.D=d;this.o=e;this.F=f;this.G=k;this.J=l;this.K=m;this.g=this.A.jg()};
Ot=function(a){var b=a.g,c=g.uh(a.B),c="left"==a.C?"0px":"right"==a.C?c.width-a.A.af().width+"px":a.C+"px",d=g.uh(a.B);a="bottom"==a.D?"0px":"top"==a.D?d.height-a.A.af().height+"px":d.height-a.A.af().height-Xa(a.D)+"px";g.bh(b,{position:"absolute",overflow:"hidden",left:c,bottom:a})};
Jfa=function(a){g.xh(a.g)||(g.O(a.g,!0),(0,g.H)(a.K,function(a){Rm(a)}))};
Tt=function(a,b,c){this.M=b||Pt.nD;this.ga=c||0;this.P=40;this.o=1;this.ca=0;this.D=3;this.W=this.A=0;this.fa=!1;this.O=this.G="";this.B="-";this.J="";this.g=1;this.F=!1;this.C=[];this.ba=this.da=!1;this.K=0;if("number"==typeof a)switch(a){case 1:Qt(this,Pt.Jt);break;case 2:Qt(this,Pt.AE);break;case 3:Qt(this,Pt.pE);break;case 4:a=Pt.jD;b=["0"];c=Rt[this.M][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(""));Qt(this,a);break;case 5:St(this,1);break;case 6:St(this,
2);break;default:throw Error("Unsupported pattern type.");}else Qt(this,a)};
Qt=function(a,b){b.replace(/ /g,"\u00a0");var c=[0];a.G=Ut(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.C.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.ba)throw Error('Multiple exponential symbols in pattern "'+b+'"');a.ba=
!0;a.W=0;c[0]+1<n&&"+"==b.charAt(c[0]+1)&&(c[0]++,a.fa=!0);for(;c[0]+1<n&&"0"==b.charAt(c[0]+1);)c[0]++,a.W++;if(1>f+k||1>a.W)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.D=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.ba&&(a.P=f+a.o,0==a.D&&0==a.o&&(a.o=1));a.C.push(Math.max(0,m));a.da=0==e||e==l;d=c[0]-d;
a.O=Ut(a,b,c);c[0]<b.length&&";"==b.charAt(c[0])?(c[0]++,1!=a.g&&(a.F=!0),a.B=Ut(a,b,c),c[0]+=d,a.J=Ut(a,b,c)):(a.B+=a.G,a.J+=a.O)};
St=function(a,b){a.K=b;Qt(a,Pt.Jt);a.A=0;a.D=2;if(0<a.A)throw Error("Can't combine significant digits and minimum fraction digits");a.ca=2};
Wt=function(a,b){var c=Math.pow(10,a.D);if(0>=a.ca)var d=Math.round(b*c);else{d=b*c;var e=a.D;if(d){var f=a.ca-Vt(d)-1;f<-e?(e=Math.pow(10,e),d=Math.round(d/e)*e):(e=Math.pow(10,f),d=Math.round(d*e)/e)}d=Math.round(d)}e=d;(0,window.isFinite)(e)?(d=Math.floor(e/c),c=Math.floor(e-d*c)):(d=b,c=0);return{intValue:d,eG:c}};
Xt=function(a,b,c,d){if(a.A>a.D)throw Error("Min value must be less than max value");d||(d=[]);b=Wt(a,b);var e=Math.pow(10,a.D),f=b.intValue,k=b.eG,l=0<a.A||0<k||!1;b=a.A;l&&(b=a.A);for(var m="",n=f;1E20<n;)m="0"+m,n=Math.round(n/10);var m=n+m,q=Pt.Kt,n=Pt.Uo.charCodeAt(0),r=m.length,w=0;if(0<f||0<c){for(f=r;f<c;f++)d.push(String.fromCharCode(n));if(2<=a.C.length)for(c=1;c<a.C.length;c++)w+=a.C[c];c=r-w;if(0<c)for(var f=a.C,w=r=0,y,B=Pt.Go,D=m.length,K=0;K<D;K++){if(d.push(String.fromCharCode(n+1*
Number(m.charAt(K)))),1<D-K)if(y=f[w],K<c){var X=c-K;(1===y||0<y&&1===X%y)&&d.push(B)}else w<f.length&&(K===c?w+=1:y===K-c-r+1&&(d.push(B),r+=y,w+=1))}else{c=m;m=a.C;f=Pt.Go;y=c.length;B=[];for(r=m.length-1;0<=r&&0<y;r--){w=m[r];for(D=0;D<w&&0<=y-D-1;D++)B.push(String.fromCharCode(n+1*Number(c.charAt(y-D-1))));y-=w;0<y&&B.push(f)}d.push.apply(d,B.reverse())}}else l||d.push(String.fromCharCode(n));(a.da||l)&&d.push(q);a=""+(k+e);for(e=a.length;"0"==a.charAt(e-1)&&e>b+1;)e--;for(f=1;f<e;f++)d.push(String.fromCharCode(n+
1*Number(a.charAt(f))))};
Yt=function(a,b,c){c.push(Pt.Ot);0>b?(b=-b,c.push(Pt.ZD)):a.fa&&c.push(Pt.qE);b=""+b;for(var d=Pt.Uo,e=b.length;e<a.W;e++)c.push(d);c.push(b)};
Zt=function(a){a=a.charCodeAt(0);if(48<=a&&58>a)return a-48;var b=Pt.Uo.charCodeAt(0);return b<=a&&a<b+10?a-b:-1};
Ut=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.M;else switch(a.ga){case 0:d+=Rt[a.M][1];break;case 2:var k=a.M,l=Rt[k],d=d+(k==l[1]?k:k+" "+l[1]);break;case 1:d+=Rt[a.M][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+=Pt.Zt;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+=Pt.au;break;default:d+=k}}return d};
bu=function(a,b){var c=1==a.K?$t.Ht:$t.TC;null==c&&(c=$t.Ht);if(3>b)return au;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 au;c=d.other;return c&&"0"!=c?(c=/([^0]*)(0+)(.*)/.exec(c))?{prefix:c[1],aB:c[3],Hp:e+1-(c[2].length-1)}:au:au};
Vt=function(a){if(!(0,window.isFinite)(a))return 0<a?a:0;for(var b=0;1<=(a/=10);)b++;return b};
du=function(a,b,c,d){g.xf.call(this);this.g=a;this.Ub=this.fa=!1;this.oa=c;this.uc=d;this.ua=this.ba=this.F=this.D=this.P=this.Fa=this.da=this.K=this.zb=this.Ra=this.Hb=this.Oa=this.M=this.o=null;this.xb=!1;this.Bb=this.Ta=this.qb=this.O=this.W=this.J=this.sa=this.ra=this.ka=this.B=this.C=this.tb=this.ha=this.ga=this.G=null;this.A=new g.dm(this);this.Ja=[];a=this.g;this.wc=null!=a&&null!=a.g&&null!=ad(a.g)?Uc(ad(a.g),ed,2):null;a=this.g;this.Yb=null!=a&&null!=a.g&&null!=ad(a.g)?Uc(ad(a.g),id,7):null;
this.ca=[];this.fa=!this.g.K&&P.g();this.rb=!P.g()&&P.rb;a="";this.fa?a="redesign2014q4":this.rb&&(a="fixedDirectionality");a={attributionText:this.g.attributionText,dh:this.g.dh,ke:this.g.ke,rm:a};this.o=Pp(this.g.ca,a);this.g.Za||this.A.X(this.o,"touchmove",this.PH);this.ha=g.L("videoAdUiProgress",this.o);this.tb=g.L("videoAdUiBuffer",this.o);this.M=g.L("videoAdUiAttributionContainer",this.o);this.Oa=g.L("videoAdUiAttributionIconContainer",this.o);this.Ra=g.L("videoAdUiAttribution",this.o);this.g.A&&
(g.R(b,"videoAdUiInstreamBadgeExperiment"),this.Hb=g.L("videoAdUiAttributionBadge",this.M),c=Zq({kl:"",Pj:0,ll:0}),g.Fe(this.Hb,Pa(c)));this.zb=g.L("videoAdUiVisitAdvertiserLink",this.o);this.K=g.L("videoAdUiVisitAdvertiserLinkText",this.o);this.da=g.L("videoAdUiVisitAdvertiserIcon",this.o);this.Fa=g.L("videoAdUiBottomBarMessage",this.o);this.P=g.L("videoAdUiAuthorIcon",this.o);this.D=g.L("videoAdUiAuthorName",this.o);this.F=g.L("videoAdUiLearnMore",this.o);this.ba=g.L("videoAdUiLearnMoreText",this.o);
this.fa?(this.O=g.L("videoAdUiTopButtonShare",this.o),this.qb=g.L("videoAdUiTopButtonShareTooltip",this.o),this.Ta=g.L("videoAdUiTopButtonInfo",this.o),this.Bb=g.L("videoAdUiTopButtonWatchLater",this.o)):this.O=g.L("videoAdUiShare",this.o);this.G=g.L("videoAdUiTitle",this.o);this.ga=g.L("videoAdUiTopBar",this.o);this.ua=g.L("videoAdUiBottomBar",this.o);null!=this.P&&this.A.X(this.P,"click",this.rF);null!=this.D&&(c=new Ls,this.ca.push(c),this.A.X(c,"click",this.sF),c.Gb(this.D));null!=this.F&&(c=
new Ls,c.C=!0,this.ca.push(c),this.A.X(c,"click",this.tx),c.Gb(this.F));null!=this.ba&&(c=new Ls,c.C=!0,this.ca.push(c),this.A.X(c,"click",this.tx),c.Gb(this.ba));null!=this.O&&this.A.X(this.O,"click",this.qR);null!=this.G&&(c=new Ls,this.ca.push(c),this.A.X(c,"click",this.AR),c.Gb(this.G));null==this.ga||!P.g()&&dn()||this.A.X(this.o,"mouseover",this.nR);null!=this.K&&this.A.X(this.K,"click",this.po);null!=this.da&&this.A.X(this.da,"click",this.po);null!=this.M&&null!=this.g.M&&$s(this.g.M)&&(g.R(this.M,
"videoAdUiWtaClickable"),this.A.X(this.M,"click",this.sQ),this.A.X(this,"why_this_ad_got_it",this.VR));null!=this.g.skipOffset?(this.B=P.g()?new Gt(this.g,this.o):new zt(this.g,this.o),this.B.sh(this),this.B.ka=a.rm):!this.g.ba||3==this.uc&&3500>this.oa||(this.J=new lt(this.g,this.o),g.N(this,this.J),this.J.sh(this));this.g.J&&(this.ka=new Ts(this.g,this.o),g.N(this,this.ka),this.ka.sh(this));a=this.g.g;P.g()&&null!=a&&null!=J(a,1)&&null!=J(ad(a),3)&&J(Uc(ad(a),fd,3),1)&&(this.ra=new it(this.g,this.o));
a=this.g.g;P.g()&&null!=a&&null!=J(a,1)&&null!=J(ad(a),7)?(c=Uc(ad(a),id,7),a=null!=J(c,1)||null!=J(c,7)&&null!=J(c,8),c=J(c,5),a=a&&c?!0:!1):a=!1;a&&(this.sa=new mt(this.g,this.o));this.g.Sa&&(this.W=new kt,this.W.sh(this),this.ua.insertBefore(this.W.o,this.M));400>=((0,window.parseInt)(g.fh(b,"width"),10)||b.width)&&g.R(this.o,"videoAdUi-mobile");this.g.K&&(g.R(this.o,"blazer"),window.settings&&window.settings.isTablet?g.R(this.o,"tablet"):g.R(this.o,"phone"));a=g.Me(b,"html5-video-player");null!=
a&&(this.fa&&g.R(a,"videoAdUiRedesign"),g.S(a,"ytp-video-ad-learn-more-ui",this.g.C));g.O(this.o,!1);b.appendChild(this.o);this.g.C||this.fa||!this.g.ha||(this.C=g.ne("DIV",{style:"width:100%;height:100%;pointer-events:auto;"}),this.o.appendChild(this.C));cu(this)};
Kfa=function(a){null!=a.C&&g.O(a.C,!1)};
eu=function(a,b,c){if(null!=a.ra){var d=a.ra,e=null!=a.g.skipOffset;if(!d.G){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.W;g.fb(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.M&&(f.icon_sty=d.M);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=Up(f);e=g.mm(e,d.ba.D);Rm(e);d.G=!0}}null!=a.sa&&(d=a.sa,a=null!=a.g.skipOffset,null!=d.A&&(e={action:"condor-robin"},e.topic=d.A,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.J,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=Up(e),b=g.mm(b,d.K.D),Rm(b),d.G=!0))};
fu=function(a){a.B&&(a.B.dispose(),a.B=null)};
gu=function(a,b){a.Ja=b;(0,g.H)(b,function(a){a.B=this.o;a.B.appendChild(a.g);Ot(a);g.O(a.g,!1);var b=a.Hc();if(null!=b){var c=new Ls;c.C=!0;this.ca.push(c);this.A.X(c,"click",(0,g.A)(this.uH,this,a));c.Gb(b)}},a)};
hu=function(a){null!=a.K&&(g.O(a.K,!0),g.Fe(a.K,a.g.visitAdvertiserText));null!=a.da&&g.O(a.da,!0)};
iu=function(a,b){if(null!=a.o){var c=g.Me(g.Ce(a.o),"html5-video-player");null!=c&&(g.S(c,"ytp-ad-end-cap",b),g.S(c,"ytp-ad-display-override",b))}};
cu=function(a){var b=a.g.G&&(a.oa>a.g.da||0==a.oa),c=b&&a.g.ua,d=b&&a.g.Fa,e=b&&a.g.B,f=b&&a.g.ra,b=b&&a.g.W,k=a.g.oa&&a.g.o,l="0px";var m=a.wc;m=P.g()&&null!=m&&J(m,1)?!1:!0;var n=a.g;var q=a.Yb;if(P.g()&&null!=q&&null!=J(q,1)&&J(q,2)){var r=J(q,1)||"";Ja(r,"[VC_RAW]")?(q=J(q,3),n=0<n.Uf&&null!=q&&0<q&&n.Uf>=q):n=!0}else n=!1;null!=a.G&&(g.O(a.G,b),null!=a.P&&g.O(a.P,c),null!=a.D&&g.O(a.D,d),null!=a.O&&(g.O(a.O,f),f&&a.dispatchEvent("videoShareShown")),null!=a.Ta&&g.O(a.Ta,!1),null!=a.Bb&&g.O(a.Bb,
!1),null!=a.ga&&g.O(a.ga,b||c||d||e));null!=a.M&&ju(a);null!=a.ha&&(g.O(a.ha,k),k&&(l=g.fh(a.ha,"height")));null!=a.ua&&!P.g()&&g.bh(a.ua,"bottom",l);ku(a);null!=a.Oa&&g.O(a.Oa,a.g.ga);null!=a.zb&&g.O(a.zb,m);if(null!=a.Fa&&n){a:if(c=a.g,d=a.Yb,P.g()&&null!=d&&null!=J(d,1)){d=J(d,1)||"";if(Ja(d,"[VC_RAW]")){c=(new Tt(1)).format(c.Uf);if(E(c)){c="";break a}e=new RegExp(La("[VC_RAW]"),"g");d=d.replace(e,c.replace(/\$/g,"$$$$"))}c=d}else c="";g.Fe(a.Fa,c);g.O(a.Fa,!0)}P.g()||!a.g.P||P.D||(null!=a.F&&
g.O(a.F,!1),null!=a.ba&&g.O(a.ba,!1))};
Lfa=function(a,b,c,d,e){var f=a.g.A?"":Zq({kl:"",Pj:0,ll:0});a.g.o&&a.g.ka&&(b=co(c-b),b=a.g.A?b:a.g.K?" \u2022 "+b:a.fa?" \u00b7 "+b:": ("+b+")",f=a.g.A?b:Zq({kl:b,Pj:d,ll:e}));g.Fe(a.Ra,f);ju(a)};
ju=function(a){g.O(a.M,a.g.F&&(!a.g.o||a.xb))};
Mfa=function(a,b){null!=a.ka&&a.ka.show(b)};
ku=function(a){var b=a.g.G&&(a.oa>a.g.da||0==a.oa)&&a.g.B?a.g.P?!P.D||a.Ub:!0:!1;null!=a.F&&g.O(a.F,b);null!=a.ba&&g.O(a.ba,P.g()&&a.g.C&&!b)};
lu=function(){g.M.call(this);this.B="";this.bb=null;this.A=new dp;this.o=new Fl;this.D=[];this.J=!1;this.g={};this.G={};this.C=-1;this.F=[]};
mu=function(a,b,c){c=c||lp(a.A,b.type);if(P.o){var d=lo(io(),b.type,a.B);a.K(b.type,c,d)}else uda(Rn(),b.type,a.B,(0,g.A)(a.K,a,b.type,c))};
Nfa=function(a,b){null!=b&&(0,g.H)(b,function(a){g.eb(this.F,a)||this.F.push(a)},a)};
nu=function(a,b,c){null!=c.viewability&&dq(a.g,c.viewability);var d;P.o||(d=Rn().K||void 0);var e=[];(0,g.H)(b,function(a){var b=this.g;eq(b,a,"MOAT_INIT",c.moatInit);eq(b,a,"MOAT_VIEWABILITY",c.moatViewability);eq(b,a,"IAS_VIEWABILITY",c.integralAdsViewability);eq(b,a,"DV_VIEWABILITY",c.doubleVerifyViewability);eq(b,a,"GOOGLE_VIEWABILITY",c.googleViewability);e.push(Tm(a,this.g,c,d))},a);
dq(a.g,"na");return e};
ou=function(a,b,c){(0,g.H)(b,function(a){Rm(a,void 0,void 0,c)},a)};
Ofa=function(a,b){switch(b){case "abandon":return!Hl(a.o,b)&&!Hl(a.o,"skip")&&!Hl(a.o,"instreamAdComplete")&&(Hl(a.o,"impression")||a.J);case "instreamAdComplete":case "complete":return!Hl(a.o,b)&&!Hl(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!Hl(a.o,b)}};
pu=function(a){g.xf.call(this);this.ads=a;this.Vc=null;this.re=new g.dm(this);g.N(this,this.re);this.Yc="normal";this.Qa=this.volume=null;this.Va=new Nn;this.Zd=!1;this.content={};this.Rb=new lu;this.Ha=null;this.fm=!1;Rn();this.qo=(0,g.A)(this.mG,this);this.Gi=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.Yf=a.length;var f=d+1;c.g=f;c.A=f})};
tu=function(a,b){if(a.Vc=b)a.Rb.B=b.K;if(P.o){var c=io();mo(c,a.qo);b&&c.o.set(b.K,a.qo)}};
uu=function(a,b){return null==b?!1:null!=b.getExtension("adx")?!0:uu(a,b.o)};
Pfa=function(a){return(0,g.Ek)(a.ads,function(a){return(0,g.Ek)(this.Sg(a),function(a){return!E(g.F(Sp(a.o)))})},a)};
vu=function(a){a=a.g;return null!=a&&a instanceof rp};
wu=function(a,b){mu(a.Rb,new g.Te(b));a.la(b)};
Qfa=function(a,b){return(0,g.Ar)(g.Ob(b),function(a){return Qb(this.Va,a)},a)};
yu=function(a){if(!a.Lc())throw Zm(xu,null,"Ads manager is not correctly configured.");};
zu=function(a,b){for(var c=b;null!=c;)(0,g.H)(c.G.fb(),a.QQ,a),c=c.o};
Rfa=function(a){if(!g.sa(a))throw Zm(xu,null,"adsRenderingSettings.mimeTypes should be an array");var b=g.nb(g.Nb(Au),g.Nb(vp));(0,g.H)(a,function(a){if(!g.eb(b,a))throw Zm(xu,null,"Invalid or unsuppoted mime type "+a);})};
Bu=function(a){var b=a.ma();if(null!=b){var c=b.g;if(c instanceof rp&&(c=c.Za,null!=c&&!g.fb(c))){var d=window.document.body,e=cq(a.ma()),e=et(!1,null,null,!1,a.Va,e);e.G=!1;e.F=!1;e.o=!1;b=b.Ue();a.Ha=new du(e,d,1E3*a.getDuration(),b);gu(a.Ha,c);a.Ha.show();a.Xa().X(a.Ha,"videoIconClicked",a.FN)}}};
Cu=function(a,b,c){null!=a.Ha&&0<=c&&0<=b&&a.Ha.update(b,0,c,0,0)};
Sfa=function(a,b){function c(a,b){for(var c in a)for(var d=c.toLowerCase(),e=0;e<Du.length;e++){var m=Du[e];if(d==m)throw Error('Cannot override "'+m+'" '+b+', got "'+c+'" with value "'+a[c]+'"');}}
c(a,"attribute");c(b,"param")};
g.Eu=function(){};
g.Fu=function(a){g.xf.call(this);this.J=a||g.ae();this.Aa=null;this.Fe=!1;this.g=null;this.D=void 0;this.F=this.M=this.B=null};
Gu=function(a,b){if(a.Fe)throw Error("Component already rendered");a.g||a.Nm();b?b.insertBefore(a.g,null):a.J.g.body.appendChild(a.g);a.B&&!a.B.Fe||a.Ji()};
Hu=function(a,b){a.M&&(0,g.H)(a.M,b,void 0)};
Iu=function(a,b){g.Fu.call(this,b);this.K=a;this.A=new g.dm(this);this.o=new Fl};
Ju=function(a){return a.pa()?a.pa().firstChild:null};
Ku=function(a){g.xf.call(this);this.bb=null;this.D=a;this.o=null;this.B=-1;this.C=!1;this.A=Ua()};
Lu=function(){};
Mu=function(a,b,c){this.g=a;this.uf=c;this.o=b};
Tfa=function(a,b){this.g=a;this.o=b};
Nu=function(a,b,c,d){yp.call(this,a,b,"Static",c,d);this.Tu=!1};
Ou=function(a,b,c,d){yp.call(this,a,b,"Html",c,d)};
Pu=function(a,b,c,d){yp.call(this,a,b,"Static",c,d)};
Ru=function(a,b,c){if(g.fb(c))return new yp(a,b,"",null,"");var d=Qu(c);c=d.o;var e=d.g,d=d.A;switch(c){case "Html":return new Ou(a,b,e,d);case "Static":switch(vp[e]){case "Image":return new Pu(a,b,e,d);case "Flash":return new Nu(a,b,e,d);case "Text":return new Rp(a,b)}}return new yp(a,b,c,e,d)};
Qu=function(a){var b=g.$a(a,function(a){return"Static"==a.o&&"Flash"==vp[a.g]}),c=g.$a(a,function(a){return"IFrame"==a.o}),d=g.$a(a,function(a){return"Html"==a.o}),e=g.$a(a,function(a){return"Static"==a.o&&"Image"==vp[a.g]}),f=g.$a(a,function(a){return"Static"==a.o&&"Text"==vp[a.g]});
return ao&&null!=b?b:null!=c?c:null!=d?d:null!=e?e:null!=f?f:a[0]};
Ufa=function(a,b,c,d,e,f){var k=Qu(f),l=Ru(a.id,a.size,[k]);l.D=!0;l.K=a.apiFramework;l.oa=b;l.M=c;l.g=d;e&&(l.cj=e);g.kb(f,k);var m=[];(0,g.H)(f,function(f){f=Ru(a.id,a.size,[f]);f.D=!0;f.K=a.apiFramework;f.oa=b;f.M=c;f.g=d;e&&(f.cj=e);m.push(new Iq(f,[],a.adSlotId))});
return new Iq(l,m,a.adSlotId)};
Su=function(a,b,c){this.o=a;this.g=b;this.A=c};
Tu=function(a,b,c){Fp.call(this);this.o=a;this.A=b;this.B=c};
Uu=function(){this.bb=null};
Vu=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};
Vfa=function(a,b){a.g=b};
Wu=function(a,b,c,d,e,f,k,l,m,n,q){Fp.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};
Xu=function(){};
Xfa=function(a,b){var c;(0,g.H)(g.ze(b),function(a){switch(a.nodeName){case "context":c="default"==a.getAttribute("data")?new Vu:null;break;case "params":null!=c&&Wfa(this,c,a)}},a);
return c};
Wfa=function(a,b,c){(0,g.H)(g.ze(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=xr(c,!1)}},a)};
Yu=function(){this.bb=null};
Zu=function(){};
$u=function(){};
av=function(){};
bv=function(a){this.data=a||{}};
cv=function(a,b,c){a=a.data[b];return null!=a?a:c};
er=function(a,b){return cv(a,b,"")};
dv=function(a,b,c){a=a.data;a[b]||(a[b]=[]);return a[b][c]};
ev=function(a,b){return a.data[b]?a.data[b].length:0};
fv=function(a){this.data=a||{}};
gv=function(a){this.data=a||{}};
hv=function(a){this.data=a||{}};
iv=function(a){this.data=a||{}};
jv=function(a){this.data=a||{}};
kv=function(a){this.data=a||{}};
lv=function(a){this.data=a||{}};
mv=function(a){this.data=a||{}};
ps=function(a){this.data=a||{}};
Mq=function(a){return new kv(a.data.product_card)};
os=function(a){return new hv(a.data.placement)};
Uq=function(a){return new iv(dv(a,"action",0))};
ns=function(a){return!!cv(a,"show_in_endcap",void 0)};
rs=function(a){return!!cv(a,"show_in_companion",void 0)};
tv=function(){if(!nv){var a={};nv={g:a};a.type=ov;a.id=pv;a.link_url=pv;a.title=pv;a.image=Nh(qv());var b=rv();a.event=Mh(b);a.target=pv}return nv};
gr=function(a){return er(a,"title")};
Tq=function(a){return er(a,"target")};
rv=function(){if(!uv){var a={};uv={g:a};a.type=ov;a.base_url=pv}return uv};
Qq=function(a){return new ps(a.data.image)};
Nq=function(a){return new lv(dv(a,"offer",0))};
Pq=function(a){return er(a,"merchant")};
Rq=function(a){return er(a,"price")};
vv=function(a){return new iv(dv(a,"action",0))};
hr=function(a){return er(a,"description")};
qv=function(){if(!wv){var a={};wv={g:a};a.image_url=pv;a.thumbnail_url=pv;a.image_height=xv;a.image_width=xv}return wv};
qs=function(a,b){a.data.image_url=b};
yv=function(a,b,c){Fp.call(this,c);this.o=a;this.A=b||null};
zv=function(a){this.g=a};
Bv=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]=Av[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){var k=
c.g[f.nodeName],l=Bv(a,f,k.Vd);3==k.label?(d[f.nodeName]||(d[f.nodeName]=[]),d[f.nodeName].push(l)):d[f.nodeName]=l}return d};
Yfa=function(a,b){var c=new dp;(0,g.H)(g.ze(b),function(a){"CustomTracking"==a.nodeName&&null!=g.ze(a)&&(c=Dr(a,!1,(0,g.A)(function(a,b){return Cv(a,b)},this)))},a);
return c};
Cv=function(a,b){return g.mm(b,{ACTTYPE:{toString:function(){switch(a){case "video_card_endcap_action":return"action_headline_click";default:return""}}}})};
Dv=function(a,b){Fp.call(this);this.A=a;this.o=g.F(b)};
Ev=function(a,b){Fp.call(this);this.o=a;this.A=b};
Fv=function(){this.bb=null};
Gv=function(a,b){this.logger=null;this.A=b;this.g={};this.o=[];this.g.CustomTracking=Dr;this.g.UI=this.C};
Hv=function(a,b){if(null==b)return null;var c={};(0,g.H)(g.ze(b),function(a){c[a.nodeName]=null!=this.g[a.nodeName]?this.g[a.nodeName].call(this,a):null},a);
return null!=c.UI?c:null};
Iv=function(){Gv.call(this,0,"mute_");this.g.SurveyOptions=this.B};
Jv=function(){Fp.call(this);this.o=""};
Kv=function(){this.bb=null};
Lv=function(a,b,c,d){Fp.call(this);this.B=a;this.A=b;this.C=c;this.o=d};
Mv=function(){this.bb=null};
Nv=function(){Fp.call(this)};
Ov=function(){this.bb=null};
Zfa=function(a,b){(0,g.H)(g.ze(b),function(a){a.nodeName==this.g.OE&&tr(a)},a)};
Pv=function(a,b,c,d,e,f){Fp.call(this);this.C=a||"";this.D=b||"";this.F=c||"";this.B=d;this.o=e;this.A=f};
Qv=function(){this.bb=null};
Rv=function(a){Fp.call(this);this.o=a};
Sv=function(){this.bb=null};
Tv=function(){Gv.call(this,0,"why_this_ad_");this.o.push("targeting_reason")};
Uv=function(a,b){return null!=a?(0,g.Ar)(b,function(b){return b in a}):!1};
$fa=function(a,b){return null!=a?(0,g.Ek)(b,function(b){return b in a}):!1};
Vv=function(){};
Wv=function(){Fp.call(this)};
Xv=function(){};
Yv=function(){};
Zv=function(a){this.B=a;this.logger=null};
$v=function(a){if(null==a)return!1;a=g.Be(a);return null!=a&&"VAST"==a.nodeName};
bw=function(a,b){var c=[],d=null;try{var e=g.mr(a),f=g.Be(e);null!=f&&"CompanionAds"==f.nodeName&&(d=aw(Zv.prototype,f,b))}catch(k){}null!=d&&c.push(d);return c};
cw=function(a){if(null==a)return 0;a=(0,window.parseInt)(a.getAttribute("version"),10);return g.oa(a)&&!(0,window.isNaN)(a)?a:0};
cga=function(a){var b=[],c=g.Be(a.B),d=cw(c);ur(c,a.g.AC,function(a){var c=dw(a);if(null==c)throw or(a);var e=a.getAttribute(this.o.zl);a=Number(a.getAttribute(this.o.du));var l=e||null;e=a||0;var m=null,n=null;a=[];for(var q=[],r=[],w=[],y=new Fl,B,D=c.nodeName==this.g.bF,K=D,X=D,Ra=null,bb=g.ze(c),ia=0,Zb=bb.length;ia<Zb;ia++){var tb=bb[ia];switch(tb.nodeName){case this.g.BC:tr(tb);case this.g.rE:break;case this.g.XE:if(D){if(null!=B)throw pr(tb);B=tr(tb);Ra=cfa(B);K=xr(c.getAttribute(this.o.HC),
K);X=xr(c.getAttribute(this.o.zD),X)}else throw or(tb);break;case this.g.EC:m=tr(tb);break;case this.g.FC:n=tr(tb);break;case this.g.pD:tr(tb);break;case this.g.ME:tr(tb);break;case this.g.Bl:tb=tr(tb);Br(tb)&&a.push(zr(tb));break;case this.g.ERROR:tb=tr(tb);q.push(zr(tb));break;case this.g.gD:w=aga(this,tb);r=w.creatives;w=w.GF;break;case this.g.wD:var $f=tb,y=Ra,tb=new Fl;try{for(var ag=rr($f,this.g.EXTENSION),$f=0,Ak=ag.length;$f<Ak;$f++){var vc=ag[$f],$b=vc.getAttribute(this.o.uu);null!=$b?$b=
$b.toLowerCase():$b="generic";switch($b){case "programmatic":var wc=(new Kv).parse(vc);break;case "geo":wc=(new Xv).parse(vc);break;case "pod":wc=(new Vv).parse(vc);break;case "waterfall":wc=(new Yv).parse(vc);break;case "dart":wc=(new Zu).parse(vc);break;case "dfp":$b="DFP";wc=(new $u).parse(vc);break;case "adsense":$b="AdSense";wc=(new Yu).parse(vc);break;case "textad":$b="TextAd";wc=(new Qv).parse(vc);break;case "templatead":$b="TemplateAd";wc=(new Ov).parse(vc);break;case "infocards":var $b="InfoCards",
qu=new zv(!0);wc=qu.parse(vc);break;case "infocardstracking":$b="InfoCardsTracking";qu=new zv(!1);wc=qu.parse(vc);break;case y:case "prefetchedad":$b="LocalRedirect";var hj=vc;if(null==hj)wc=null;else{var Bk=null,Op=rr(hj,"AdXml");if(1==Op.length){var Im=g.Be(Op[0]);if(Fm().g.g("html5_reuse_parsed_xml")&&null!=Im)try{Bk=qr(Im)}catch(Pg){Bk='<?xml version="1.0" encoding="UTF-8"?>'+nr(Im)}else Bk='<?xml version="1.0" encoding="UTF-8"?>'+nr(Im)}var Id=rr(hj,"VASTAdTagURI"),hj=null;1==Id.length&&(hj=
Id[0].textContent);wc=new Dv(Bk,hj)}break;case "viral":$b="viral";wc=(new Sv).parse(vc);break;case "metrics":$b="metrics";wc=(new Fv).parse(vc);break;case "adx":$b="adx";wc=(new Fr).parse(vc);break;case "why_this_ad":$b="why_this_ad";wc=(new Tv).parse(vc);break;case "mute":$b="mute";wc=(new Iv).parse(vc);break;case "sodar":wc=(new Mv).parse(vc);break;case "adformat":$b="AdFormat";wc=(new Uu).parse(vc);break;default:var Jm=new av,$b="generic";wc=Jm.parse(vc)}if(null!=wc){var ru=tb.get($b);null!=ru?
"generic"==$b&&(Yda(ru,wc.g),tb.set($b,ru)):tb.set($b,wc)}}}catch(Pg){if(!g.ua(Pg.Lb)||1105==Pg.Lb())throw Pg;}y=tb}}c=g.F(l);ag=m;a:if(E(g.F(m)))Ak="UNKNOWN";else switch(Ak=m.toUpperCase(),Ak){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:Ak="UNKNOWN"}y.get("programmatic");
vc=y;$b=null;y=y.get("AdSense");null!=y&&(y=Gp(y,"vast2tracking"),null!=y&&!g.fb(y)&&($b=y[0]));e=new Jr(c,ag,Ak,0,n,0,0,0,e,q,a,r,w,vc,B,K,X,$b);null!=e&&(e.Ra=d,b.push(e))},a);
return b};
dw=function(a){var b=null;a=g.ze(a);for(var c=0,d=a.length;c<d;c++)switch(b=a[c],b.nodeName){case "InLine":case "Wrapper":break;default:throw or(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"}};
aga=function(a,b){var c=[],d=[];ur(b,a.g.fD,function(a){var b=a.getAttribute(this.o.du),e=window.NaN;E(g.F(b))||(e=(0,window.parseFloat)(b));a.getAttribute(this.o.CC);var b=a.getAttribute(this.o.zl),l=!1,m=[];a=g.ze(a);for(var n=0,q=a.length;n<q;n++){var r=a[n];switch(r.nodeName){case this.g.VE:var w=r,y=tr(w),y=g.F(y);E(y)&&w.getAttribute(this.o.JD);r.getAttribute(this.o.ID);break;case this.g.LINEAR:if(l)throw pr(r);l=ega(this,r,(0,window.isNaN)(e)?0:e,b||null);pb(c,l);pb(m,l);l=!0;break;case this.g.VC:if(l)throw pr(r);
l=aw(this,r,(0,window.isNaN)(e)?0:e);pb(d,l);l=!0;break;case this.g.gE:if(l)throw pr(r);l=fga(this,r,(0,window.isNaN)(e)?0:e,b||null);pb(c,l);pb(m,l);l=!0}}n=0;for(q=m.length;n<q;n++);},a);
return{creatives:c,GF:d}};
fga=function(a,b,c,d){var e=[],f=new dp;b=g.ze(b);for(var k=0,l=b.length;k<l;k++){var m=b[k];switch(m.nodeName){case a.g.fE:m=gga(a,m,c,d);null!=m&&e.push(m);break;case a.g.So:f=Dr(m);break;default:throw or(m);}}0!=e.length||f.isEmpty()||(a=new yp(null,new g.Wd(-1,-1),"",null,""),a.g=c,a.ka=d,e.push(a));(0,g.H)(e,function(a){f&&(a.cj=f)});
return e};
ew=function(a,b){var c={};c.id=b.getAttribute(a.o.zl);c.adSlotId=b.getAttribute(a.o.DC);c.apiFramework=b.getAttribute(a.o.vl);var d=Va(b.getAttribute(a.o.El)),e=Va(b.getAttribute(a.o.xl));c.size=new g.Wd(d,e);d=b.getAttribute(a.o.vD);e=b.getAttribute(a.o.uD);E(g.F(d))||E(g.F(e))||(c.V0=new g.Wd(Va(d),Va(e)));return c};
gga=function(a,b,c,d){var e=ew(a,b);b.getAttribute(a.o.vl);b.getAttribute(a.o.zE);b.getAttribute(a.o.SD);var f=b.getAttribute(a.o.bE),f=wr(f,-1),k=[];new Fl;var l={},m="",n=null,q=[];b=g.ze(b);for(var r=0,w=b.length;r<w;r++){var y=b[r];switch(y.nodeName){case a.g.iE:q.push(tr(y));break;case a.g.hE:n=tr(y);break;case a.g.zo:l=fw(y);m=g.F(tr(y));break;case a.g.Al:case a.g.Cl:case a.g.yl:y=gw(a,y);null!=y&&k.push(y);break;default:throw or(y);}}a=Ru(e.id,e.size,k);np(a,m,l);a.K=e.apiFramework;a.oa=n;
a.M=q;a.Fa=f;a.g=c;a.ka=d;return a};
gw=function(a,b){var c=sr(b,a.o.hD);if(null!=c&&"text/javascript"==c)return null;a:{var d=b.nodeName;switch(d){case a.g.Cl:d="Static";break a;case a.g.Al:d="IFrame";break a;case a.g.yl:d="Html";break a;default:throw Ym(hga,null,d);}}var e=tr(b);null!=e||(e="");return new Su(d,c,e)};
aw=function(a,b,c){var d=[],e=dga(sr(b,a.o.wE));ur(b,a.g.UC,function(a){var b=ew(this,a);var e=[],f=new dp,n=null,q=[];a=g.ze(a);for(var r=0,w=a.length;r<w;r++){var y=a[r];switch(y.nodeName){case this.g.XC:q.push(tr(y));break;case this.g.So:f=Dr(y,!0);break;case this.g.WC:n=tr(y);break;case this.g.IC:tr(y);break;case this.g.zo:tr(y);break;case this.g.Al:case this.g.Cl:case this.g.yl:y=gw(this,y);null!=y&&e.push(y);break;default:throw or(y);}}b=g.fb(e)?null:Ufa(b,n,q,c,f,e);null!=b&&d.push(b)},a);
return new Tfa(d,e)};
ega=function(a,b,c,d){var e=new dp,f={},k="",l=[],m=null,n=new Fl,q=[],r=[],w=0,y=Cr(sr(b,a.o.EE));b=g.ze(b);for(var B=0,D=b.length;B<D;B++){var K=b[B];switch(K.nodeName){case a.g.DD:r=iga(a,K);break;case a.g.zo:f=fw(K);k=g.F(tr(K));break;case a.g.Do:w=wr(tr(K),0);break;case a.g.So:e=Dr(K);break;case a.g.WD:q=jga(a,K);break;case a.g.YE:l=kga(a,K);n=l.customClicks;m=l.clickThrough;l=l.clickTrackingUrls;break;default:throw or(K);}}(0,g.H)(l,function(a){ip(e,"click",a)});
a=new rp(w,m,n,q,y,r);np(a,k,f);a.g=c;a.ka=d;e&&(a.cj=e);return a};
kga=function(a,b){for(var c=null,d=[],e=new Fl,f=g.ze(b),k=0,l=f.length;k<l;k++){var m=f[k];switch(m.nodeName){case a.g.RC:c=tr(m);break;case a.g.SC:m=tr(m);d.push(m);break;case a.g.kD:var n=sr(m,a.o.zl);null!=n||(n="");var q=e.get(n,[]);q.push(tr(m));e.set(n,q);break;default:throw or(m);}}return{clickThrough:c,clickTrackingUrls:d,customClicks:e}};
jga=function(a,b){for(var c=[],d=rr(b,a.g.VD),e=0,f=d.length;e<f;e++){var k=d[e],l=sr(k,a.o.oD),m=sr(k,a.o.uu),n=sr(k,a.o.ZE),q=Va(k.getAttribute(a.o.El)),r=Va(k.getAttribute(a.o.xl)),w=k.getAttribute(a.o.vl),y=tr(k),B=vr(k.getAttribute(a.o.Ft)),D=vr(k.getAttribute(a.o.aE)),k=vr(k.getAttribute(a.o.UD)),l=new qp(l,m,n,B,D,k,q,r,y,w);c.push(l)}return c};
iga=function(a,b){var c=[];ur(b,a.g.CD,function(a){var b=a.getAttribute(this.o.sE);var d=sr(a,this.o.cF),k=sr(a,this.o.fF),l=Va(a.getAttribute(this.o.El)),m=Va(a.getAttribute(this.o.xl)),n=new g.Wd(l,m),l=a.getAttribute(this.o.vl),m=Cr(sr(a,this.o.jE)),q=a.getAttribute(this.o.Do),q=wr(q,-1),r=[],w=[],y={};a=g.ze(a);for(var B=0,D=a.length;B<D;B++){var K=a[B];switch(K.nodeName){case this.g.HD:w.push(tr(K));break;case this.g.ED:for(var y=[],X=null,K=g.ze(K),Ra=0,bb=K.length;Ra<bb;Ra++){var ia=K[Ra];
switch(ia.nodeName){case this.g.FD:X=tr(ia);break;case this.g.GD:y.push(tr(ia));break;default:throw or(ia);}}y={iconClickThrough:X,vH:y};break;case this.g.Al:case this.g.Cl:case this.g.yl:X=gw(this,K);null!=X&&r.push(X);break;default:throw or(K);}}g.fb(r)?b=null:(a=y,n=Ru("icon"+b,n,r),n.K=l,b=new Nt(n,b,d,k,q,m,a.iconClickThrough,a.vH,w));null!=b&&c.push(b)},a);
return c};
fw=function(a){a=tr(a);return null!=a?Ada(a):{}};
hw=function(a){pu.call(this,a);this.g=this.bb=null;this.O={};this.A=!0;this.K=this.J=this.F=!1;this.D=this.M=0;this.o=null;this.C=0;this.B=1;this.G=-1;this.W=!1;this.P=2==P.F};
iw=function(a){var b=a.ad("getAdLinear");return g.na(b)?b:a.A};
jw=function(a){if(!a.A){var b=a.ad("getAdRemainingTime");b=g.oa(b)?b:-2;if(!g.oa(b)||0>b)b=30;g.ng(a.G);a.G=g.mg(a.stop,1E3*b,a)}};
kw=function(a){a.W||(a.W=!0,wu(a,"complete"))};
mw=function(a,b){var c=Zm(lw,b,void 0),d=bq(c,a.ma()),e=Ur(a.ma());Vm(e,d);lw.message=c.ud();bn(a,lw,b)};
nw=function(a){pu.call(this,a);this.C=this.g=this.bb=null;this.A=!0;this.ba=this.M=this.F=!1;this.W=Ua();this.J=this.O=0;this.G=-1;this.o=null;this.D=0;this.B=1;this.K=-1;this.P=!1};
ow=function(a){var b=a.fd("getAdLinear");return g.na(b)?b:a.A};
pw=function(a){if(!a.A){var b=a.fd("getAdRemainingTime");b=g.oa(b)?b:-2;if(!g.oa(b)||0>b)b=30;g.ng(a.K);a.K=g.mg(a.stop,1E3*b,a)}};
qw=function(a,b,c,d){d=Zm(b,c,d);var e=bq(d,a.ma()),f=Ur(a.ma());Vm(f,e);b.message=d.ud();bn(a,b,c)};
rw=function(a){a.P||(a.P=!0,wu(a,"complete"))};
tw=function(a){sm.call(this,"adMetadata",a)};
uw=function(a){switch(a){case 1:return"endslate";default:return"fullslot"}};
vw=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"}};
ww=function(){};
yw=function(a){var b;(b=a.g)||(b={},xw(a)&&(b[0]=!0,b[1]=!0),b=a.g=b);return b};
zw=function(){};
Aw=function(a){return(a=xw(a))?new window.ActiveXObject(a):new window.XMLHttpRequest};
xw=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};
Bw=function(a){g.xf.call(this);this.headers=new Fl;this.M=a||null;this.A=!1;this.K=this.g=null;this.W="";this.o=0;this.D="";this.B=this.P=this.J=this.O=!1;this.C=0;this.F=null;this.ca="";this.ba=this.G=!1};
Cw=function(a,b){a.C=Math.max(0,b)};
lga=function(a){return g.sc&&g.kc(9)&&g.oa(a.timeout)&&g.t(a.ontimeout)};
mga=function(a){return"content-type"==a.toLowerCase()};
Fw=function(a,b){a.A=!1;a.g&&(a.B=!0,a.g.abort(),a.B=!1);a.D=b;a.o=5;Dw(a);Ew(a)};
Dw=function(a){a.O||(a.O=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
Iw=function(a){if(a.A&&"undefined"!=typeof Gw)if(a.K[1]&&4==Hw(a)&&2==a.getStatus())a.getStatus();else if(a.J&&4==Hw(a))g.mg(a.pw,0,a);else if(a.dispatchEvent("readystatechange"),4==Hw(a)){a.getStatus();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.sg(String(a.W))[1]||null;if(!f&&pa.self&&pa.self.location)var k=pa.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<Hw(a)?a.g.statusText:""}catch(m){l=""}a.D=l+" ["+a.getStatus()+"]";Dw(a)}}finally{Ew(a)}}};
Ew=function(a,b){if(a.g){Jw(a);var c=a.g,d=a.K[0]?g.z:null;a.g=null;a.K=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){}}};
Jw=function(a){a.g&&a.ba&&(a.g.ontimeout=null);g.oa(a.F)&&(g.ng(a.F),a.F=null)};
Hw=function(a){return a.g?a.g.readyState:0};
Kw=function(a){try{return a.g?a.g.responseText:""}catch(b){return""}};
oga=function(a,b,c,d){var e=new g.Ll("https://www.googleapis.com/youtube/v3/videos");g.Ul(e,"id",a);g.Ul(e,"part","snippet,status,statistics");g.Ul(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));Lw(new Bw,e,b,c)};
pga=function(a,b,c,d){var e=new g.Ll("https://www.googleapis.com/youtube/v3/channels");g.Ul(e,"id",a);g.Ul(e,"part","snippet,statistics,brandingSettings");g.Ul(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));Lw(new Bw,e,b,c)};
Lw=function(a,b,c,d){g.Ul(b,"key","AIzaSyA-dlBUjVQeuc4a6ZN4RkNUYDFddrVLxrA");Cw(a,2E3);var e=new g.dm(a);im(e,a,"success",function(a){a=a.target;var b=a.g?g.Ic(a.g.responseText):void 0;c(b||{});e.dispose();a.dispose()});
im(e,a,["error","timeout"],function(a){a=a.target;var b=null;0!=a.o&&(b=Error(vw(a.o)));d(b);e.dispose();a.dispose()});
a.send(b)};
Mw=function(a,b,c,d,e,f,k,l){f=void 0===f?window.Infinity:f;k=void 0===k?!1:k;Yi.call(this,a,l);this.C=0;this.K=f;this.ba=b;this.M=c;this.W=d;this.ca=e;this.da=!("csi.gstatic.com"!==this.M||!this.g.navigator||!this.g.navigator.sendBeacon);this.F={};this.g.performance&&this.g.performance.now||(this.F.dat=1);this.G={};this.O=!k;this.B=(0,g.A)(this.P,this);this.J=g.ya(this.g.setTimeout,this.B,1100);this.A=0;this.A=this.g.setTimeout(this.B,1E4);"complete"===this.g.document.readyState?this.g.setTimeout(this.B,
0):Th(this.g,"load",this.J);Th(this.g,"unload",this.B)};
Nw=function(a){var b=a.label+"."+Math.round(a.value).toString(36);a=Math.round(a.duration);0<a&&(b+="_"+a.toString(36));return b};
qga=function(a,b){var c=new Pi(void 0,"~");Qh(a.F,function(a,b){Ui(c,b,a)});
Qh(a.G,function(b,d){Ui(c,d,b);delete a.G[d]});
Qh(b,function(a,b){Ui(c,b,a)});
var d=Vi(c,a.ba,a.M,""+a.W+a.ca+"&");a.da&&a.g.navigator.sendBeacon(d,null)||Wh(a.g,d)};
Qw=function(){this.g=null;if((Hm(Fm(),21592081)||Hm(Fm(),21592082))&&!P.g()){this.g=new Mw(1,"https:","csi.gstatic.com","/csi?v=2&s=","ima",void 0,!0);if(Ow)var a=Ow;else{(a=Vh())?(a=a.master,a=Ph(a)?a:null):a=null;a=a||bi();var b=a.google_persistent_state_async;a=null!=b&&"object"==typeof b&&null!=b.S&&"object"==typeof b.S?Ow=b:a.google_persistent_state_async=Ow=new pca}var b=bi(),c=Vh(b);c?((b=c||Vh())?(c=b.pageViewId,g.u(b.clientId)&&(c+=b.clientId.replace(/\D/g,"").substr(0,6)),b=c):b=null,b=
+b):(b=ck(b).Ws,(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;Pw(this,"c",a);a=Km(Fm());E(g.F(a))||Pw(this,"e",a)}this.o="0"};
Rw=function(){var a=Qw.getInstance();a.g&&(a.g.oj(),a.g=null)};
Pw=function(a,b,c){a.g&&c&&(a.g.F[b]=c)};
Sw=function(a){var b=Qw.getInstance();if(b.g&&sga){var c=b.g,d=Zi();c.o&&c.Ln(new Xi(a,4,d,0));Hm(Fm(),21592082)&&(a=b.g,!a.A&&a.o&&a.O&&(a.A=a.g.setTimeout(a.B,Math.min(1E3<<a.C,6E4))))}};
tga=function(a,b){if(b){var c=/iu\=\/(\d+)\//.exec(Ga(b)),d=g.F((new g.Ll(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};
Tw=function(a){this.K=a;this.g=[];this.o=new g.kg(500);g.N(this,this.o);this.C=new g.dm(this);em(this.C,this.o,"tick",this.D,!1,this);g.N(this,this.C);this.B=1;this.J=!1;this.F=this.A=0;this.G=P.ca};
Uw=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)}};
Vw=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);Ln(In.getInstance(),47,{t:a.J,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)};
Ww=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=Xa(b.viewCount),this.Uf=(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="fullslot-attribution-button">'+Q(a.text)+"</a>"};
wga=function(a){return'<div class="fullslot-autoclose">'+Q(a.tF)+"</div></div>"};
Xw=function(a){return""+Aa("Ad will close in {$xSeconds}",{xSeconds:Q(a.Cg)})};
Yw=function(a){g.xf.call(this);this.C=new g.kg(200);g.N(this,this.C);this.A=0;this.o=!1;this.O=a;this.K=new g.dm(this);this.K.X(this.C,"tick",this.OO)};
Zw=function(a){a.C.stop();a.o=!1};
ax=function(a,b,c,d,e){Yw.call(this,b.g);this.G=b;this.F=c;this.J=this.G.g;this.g=a;this.B=this.D=null;g.R(this.g,uw(this.F));a=this.g;b=new dt;b.skipOffset=new Wq(this.G.B,!1);this.B=new zt(b,a);d&&d.text&&(d=Pp(vga,d),this.g.appendChild(d));e?(e=this.g,d=Xw({Cg:$w(this.J)}),a=Pp(wga,{tF:d}),g.Fe(a,d),e.appendChild(a),e=a):e=null;this.D=e};
xga=function(a){var b=g.L("videoAdUiSkipButton",a.g);return b?g.rh(b,a.g):new g.Td(0,0)};
$w=function(a){a=Math.ceil(a);return"0:"+(10>a?"0"+a:""+a)};
dx=function(a,b,c,d,e){Yw.call(this,d);this.J=a;this.W=b;this.P=e;this.B=new g.dm(this);g.N(this,this.B);this.D=new Ls;g.N(this,this.D);this.M=new Ls;g.N(this,this.M);this.G=new Ls;g.N(this,this.G);(a=bx(c))?(c=a(c),b.appendChild(c),b=g.L("iv-endcap-action",c),this.B.X(this.D,"click",this.F),this.D.Gb(b),b=g.L("iv-endcap-text",c),this.B.X(this.M,"click",this.F),this.M.Gb(b),b=g.L("iv-endcap-image",c),this.B.X(this.G,"click",this.F),this.G.Gb(b),b=c):b=null;this.g=b?g.L("iv-endcap-countdown-inner",
b):null;null!=this.g&&g.bh(this.g,"stroke-dasharray","0 "+cx)};
bx=function(a){switch(a.bc()){case 1:return yga;case 4:return zga}return null};
yga=function(a){var b=Mq(a);a=0<ev(a,"action")?Uq(a):null;return Pp(Kq,{headline:b.kd(),description:er(b,"description"),image:Qq(b).getImageUrl(),action:a?gr(a):"",target:a?Tq(a)||er(a,"link_url"):""})};
zga=function(a){var b=a.g();a=0<ev(a,"action")?Uq(a):null;return Pp(Kq,{headline:b.kd(),description:hr(b),image:b.ng().getImageUrl(),action:a?gr(a):"",target:a?Tq(a)||er(a,"link_url"):""})};
Aga=function(){var a=Aa("Your video will play after this ad.");return Ho(""+('<div class="videoAdInterstitial"><p>'+a+"</p></div>"))};
ex=function(){g.M.call(this);this.A=Pp(Aga);this.g=0};
fx=function(a){a.g&&(g.ng(a.g),a.o(g.z))};
gx=function(a,b,c,d,e,f,k,l,m,n,q,r,w,y,B){this.B=a;this.C=n;this.D=b;this.F=d;this.J=l;this.K=r;this.M=e;this.P=f;this.O=w;this.g=k;this.o=m;this.A=q;this.G=y;this.W=B};
hx=function(a){g.Te.call(this,a)};
ix=function(a){g.xf.call(this);this.bb=null;this.B=a;this.O=new Fl;this.K=-1;this.G=this.P=!1;this.F=""};
jx=function(a){this.paused=!1;this.mute=a.aj();this.volume=a.getVolume()};
kx=function(a,b,c,d){if(!c||null==a.O.get(b)){d&&!a.G&&(b="error");a.O.set(b,!0);a:{c=b;if(a.A&&a.A.g.B){if("click"==c)break a;"videoLearnMoreClicked"==c&&mu(a.B,new g.Te("click"))}d=Bga[c]||null;null!=d&&null!=a.g&&a.g.os(d);mu(a.B,new g.Te(c))}a.dispatchEvent(b)}};
lx=function(a){0>a.K||a.P||!a.g.Xj(a.K)&&!a.g.Yg()||!a.G||(a.P=!0,kx(a,"engagedview",!0,!0),a.dispatchEvent(new hx("viewCount")))};
mx=function(a){lx(a);if(P.g()){var b=a.B;if(!(Hl(b.o,"skip")||0>b.C)){for(var c=gp(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&&mu(b,new g.Te("progress"),d)}}kx(a,"complete",!0,!0)};
ox=function(a){this.g=new Fl;a&&nx(this,a)};
px=function(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+g.xa(a):b.substr(0,1)+a};
qx=function(a,b){a.g.set(px(b),b)};
nx=function(a,b){for(var c=Jl(b),d=c.length,e=0;e<d;e++)qx(a,c[e])};
rx=function(a){pu.call(this,a);this.g=null;this.F=!1;this.B=new ix(this.Rb);this.bb=null;this.P=this.ca=this.G=!1;this.ba=this.D=1;this.A=null;this.W=new ex;this.J=new ox;this.fa=!1;this.M=[];this.O=!1;this.o=this.C=null;this.da=!dn()&&P.g();this.K=!1;Hm(Fm(),324123001)&&(P.W=!0);Hm(Fm(),324123021)&&(P.W=!0);if(a=0<a.length?a[0]:null){var b=Qw.getInstance();Pw(b,"gqid",fs(a));Pw(b,"qqid",fq(a))}Cga(this)};
sx=function(a,b){var c=g.mg(function(){this.J.remove(c);b.call(this)},0,a);
qx(a.J,c)};
tx=function(a){a.C&&(g.Re(a.C),a.C=null);g.Re(a.Ha);a.Ha=null;g.Re(a.B);g.Re(a.Rb);a.P=!1};
ux=function(a){a.bl();null!=a.o&&Vw(a.o);a.yb()?a.start():a.stop()};
Ega=function(a){if(!a.yb())return!1;var b=a.Qa.Bf();if(null==b)return!1;var c=a.ma(),d;if(d=c.M?c.M.g.vk()?c.M.g.Kq():c.M.hd():"")Dga(a,b,d);else if(ws(c)&&(d=c.ca,d=g.fb(d)?null:d[0],null!=d&&g.ua(bx(d)))){var e=1==d.bc();a.g=new dx(a.Da,b,d,Ds(c),e);a.Xa().X(a.g,"click",(0,g.A)(a.Kv,a,null));a.Ha&&iu(a.Ha,!0);a.Qa.od()}null!=a.g&&(a.Xa().X(a.g,"timeUpdate",a.Zz),a.Xa().X(a.g,"end",a.UF),a.g.start(),wu(a,"video_card_endcap_impression"));return null!=a.g};
Dga=function(a,b,c){Ln(In.getInstance(),34,{evt:"start"},!0);var d=g.ne("DIV");g.R(d,"controls");var e=g.ne("DIV");g.R(e,"adDisplay");g.R(e,"endslate");e.innerHTML=c;(c=g.ze(e)[0])&&g.bh(c,{margin:"0 auto"});(0,g.H)(c.getElementsByTagName("a"),function(a){var b=a.getAttribute("href");b&&this.Xa().X(a,"click",(0,g.A)(this.Kv,this,b))},a);
d.appendChild(e);e=new Vu;Vfa(e,Ds(a.ma()));e.B=0;e.A=0;a.g=new ax(d,e,1,{},!0);a.Xa().X(a.g,"skip",a.Lv);b.appendChild(a.g.g);a.Qa.od();a.Ha&&(Kfa(a.Ha),fu(a.Ha))};
wx=function(a,b){vx(a);null!=a.Da&&a.Da.Bq();a.la("complete");wu(a,b);a.Ea("instreamAdComplete");ux(a)};
vx=function(a){a.g&&(a.g.dispose(),a.g=null);a.Ha&&iu(a.Ha,!1);a.F=!1};
zx=function(a,b,c){xx(a)&&c?yx(a,b).then(a.Du,null,a):(a.Du(),c&&yx(a,b))};
Fga=function(a){null!=a.Da&&a.Da.Aq();var b=Fm().g,b=b.g("use_forced_brand_precap_duration")?b.o("forced_brand_precap_duration_ms"):2E3;Mfa(a.Ha,b);var c=g.mg(function(){null!=this.Da&&this.Da.Bq();this.J.remove(c);this.W.show(this.Qa.mk(),(0,g.A)(this.Da.play,this.Da))},b,a);
qx(a.J,c)};
Ax=function(a,b,c,d){b=gp(b.g,c);g.fb(b)||(a[d]=b[0].g)};
Bx=function(a,b,c){b=c.getExtension(b);null!=b&&(Ax(a,b,"annotation_click","cta_annotation_clicked"),Ax(a,b,"annotation_close","cta_annotation_closed"),Ax(a,b,"annotation_start","cta_annotation_shown"))};
Gga=function(a,b){var c=us(b)&&!b.ha?as(b):null,d=b.isSkippable()&&!Or(b),e=null!=a.Ha&&a.Ha.g.C,f=b.A,k=Vp(a.Ri());if(!k){var l=b.getExtension("AdSense");null!=l&&(k=l.isPharma())}var m=Fm().g,l=m.g("use_variable_load_timeout")?m.o("variable_load_timeout_ms"):a.Va.cf,n=gq(b);if(a.Ha){var q={};Bx(q,"AdSense",b);Bx(q,"dart",b);Bx(q,"DFP",b)}else q=null;var f=f?f.Yn:!1,r=fq(b),w=a.Va.sj,m=m.g("legacy_autoplay_flag");var y=Yr(a.ma(),"endscreenClick");y=g.fb(y)?null:g.Lc({endscreenClick:y});return new gx(n,
c,0,q,e,d,l,f,!1,r,w,k,m,y,xx(a))};
Cga=function(a){var b=0,c=0;(0,g.H)(a.ads,function(a){!vu(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.Yf=c;vu(a)&&(b.g=d,b.A=d,d++)},a)};
Cx=function(a){var b=a.o;return b&&b.ga&&(b=b.F,!g.fb(b)&&b[0]instanceof rp)?b[0].Ze():Zr(a)};
Ex=function(a,b){if(!vu(b))throw Zm(Dx);var c=b.g,d=c.C;if(null!=d)return d;var d=a.Sg(b),e=a.Da.zA(d,a.Va.bitrate,a.Va.mimeTypes||[],null!=b&&!0&&(P.g()||a.Qa.Um()||a.Qa.uq()||dn()));Hga(d,a.Va.bitrate,e,Tr(b));if(null!=e)return c.C=e;try{Iga(a,b)}catch(f){}throw Zm(Jga);};
Iga=function(a,b){if(In.getInstance().isLoggingEnabled()){var c=new ox,d=!1;(0,g.H)(a.Sg(b),function(a){qx(c,a.g);"VPAID"==a.A&&(d=!0)},a);
var e=a.Da.Xp(),e={aid:as(b),mt:c.fb().join(","),smt:e.join(","),hvp:d,st:gs(b).join(",")};Ln(In.getInstance(),28,e)}};
Hga=function(a,b,c,d){if(!P.g())try{var e=(0,g.I)(a,function(a){return a.Kf}),f=(0,g.I)(a,function(a){return a.g});
a={};a.brs=e.join(",");a.mts=f.join(",");a.pubbr=b;a.selbr=null===c?-1:c.Kf;a.selmt=null===c?"":c.g;a.ic=!1;a.nat=!1;a.iyh=Mm(c.o)?"1":"0";a.as=d;Ln(In.getInstance(),22,a)}catch(k){}};
Fx=function(a){if(null!=a.A){var b=Qw.getInstance();Pw(b,"br",a.A.gh);Pw(b,"mt",a.A.g);Pw(b,"iyh",Mm(a.A.o)?"1":"0");Pw(b,"smb",a.Va.bitrate);if(a.Da){var c=a.Da.Gf();c&&Pw(b,"ps",c.width+"x"+c.height)}var c=a.A.Eb(),d=a.A.getHeight();null!=c&&null!=d&&Pw(b,"vs",c+"x"+d);a=a.A.F;E(g.F(a))||Pw(b,"vc",a)}};
Gx=function(a,b){b in a.M||(a.M.push(b),a.la(b))};
Kga=function(a){var b=a.ma(),c={};c.pubbr=a.Va.bitrate;c.ic=!1;c.nat=!1;if(null!=b){a=a.Sg(b);var d=b.g,d=d?d.C:null,e=(0,g.I)(a,function(a){return a.Kf});
a=(0,g.I)(a,function(a){return a.g});
c.brs=e.join(",");c.mts=a.join(",");c.as=Tr(b);null===d?(c.selbr=-1,c.selmt="",c.iyh="0",c.murl=""):(c.selbr=d.Kf,c.selmt=d.g,c.iyh=Mm(d.o)?"1":"0",c.murl=d.o)}Ln(In.getInstance(),45,c)};
Ix=function(a,b,c){Hx(a,c);a.bl();a.yb()?(an(a,b,c),a.start()):(bn(a,b,c),a.stop())};
Hx=function(a,b){var c=Zm(Jx,b),c=bq(c,a.ma(),a.Da),d=Ur(a.ma());Vm(d,c)};
Kx=function(a){if(P.o||P.g()){var b=Cx(a.ma());null!=b&&Qm(b);a.la("click")}else a.K&&a.la("click")};
Lx=function(a,b){if(Mb(Lga,b)){var c=a.Xa();em(c,a.B,b,a.Vz,!1,a)}};
Mx=function(a){if(!a.O){var b=a.ma(),c=b.D;if(Hs(b)&&!P.g()&&!a.Qa.Um()&&c){var b=a.Da.getCurrentTime(),d=a.Da.getDuration(),e=new g.Ll("//s.youtube.com/s");g.Ul(e,"ns","yt");g.Ul(e,"el","adunit");g.Ul(e,"docid",c);g.Ul(e,"eurl",window.document.URL);g.Ul(e,"len",d.toFixed(2));g.Ul(e,"tv","1");g.Ul(e,"ps","trueview-instream");g.Ul(e,"st",b.toFixed(2));g.Ul(e,"et",b.toFixed(2));g.Ul(e,"rt",b.toFixed(2));Rm(e.toString());a.O=!0}}};
Mga=function(a){var b=a.ma().P;if(null!=b){var b=b.videoId,c=a.Va.Ci;if(E(g.F(b)))b=null;else{var c=new g.Ll((null!=c?c:"//www.youtube.com/")+"watch"),d=c.g;d.set("v",b);Ql(c,d);c.J="action=share";b=c.toString()}null!=b&&(Qm(b),a.IA())}};
Nga=function(a){a=Nx(a)||Ox(a);null!=a&&Sm(a,"sharebuttondisplayed")};
Nx=function(a){a=a.ma().getExtension("AdSense");return null!=a?new g.Ll(a.B):null};
Ox=function(a){if(a=a.ma().g)if(a=op(a,"start"),!g.fb(a))return new g.Ll(a[0].g);return null};
Oga=function(a){var b=a.ma(),c=b.P;null!=c&&(b=Tp(c.videoId,null!=Bs(b),a.Va.Ci),null!==b&&(a.Da.pause(),Qm(b)))};
Px=function(a){sx(a,function(){this.la("skip");ux(this)})};
yx=function(a,b){return g.cg(Pga(a,b).then(a.pR,null,a).then(a.UQ,null,a).then(a.oR,null,a).then(a.IF,null,a),g.z)};
Pga=function(a,b){return new g.Rf(function(a,d){oga(b,function(b){b=new Ww(b);this.yb()&&this.ma().D==b.videoId?a(b):d()},function(){d()},this)},a)};
Qx=function(a){return a.yb()&&null!=a.ma().P&&a.ma().P.isListed};
Rx=function(a){var b=a.ma().ka;if(Qx(a)&&null!=b){var c=a.Va.Ci;b=g.F(b.channelId);c=E(b)?null:(null!=c?c:"//www.youtube.com/")+"channel/"+(g.Da(b,"UC")&&24==b.length?b:"UC"+b);null!==c&&(a.Da.pause(),Qm(c))}};
xx=function(a){if(Fm().g.g("website_actions_holdback"))return!1;a=a.ma();if(!a||!a.D)return!1;var b=g.$a(a.B,function(a){return 4==a.bc()&&!!cv(os(a),"show_in_cta",void 0)});
return P.g()&&Hs(a)&&null!=b};
Qga=function(a,b,c){var d=a.yb()?a.ma().D:null;a=a.ma();if(!a||!d)return b;a=g.$a(a.B,function(a){return 4==a.bc()&&!!cv(os(a),"show_in_cta",void 0)});
if(!a)return b;var d=a.g();var e=Uq(a);a=Ha(e&&Tq(e)||"");if(Fm().g.g("website_actions_suppress_advertiser_supplied_text")){e=" ";var f=Ha(c.authorName)}else e=Ha(e&&gr(e)||" "),f=Ha(d.kd()||c.authorName);var k=Ha(hr(d)||"");c=Ha(d.ng().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)};
Sx=function(a){g.xf.call(this);this.sessionId=a||Ua();this.o=[]};
Tx=function(a,b,c,d,e){g.Te.call(this,a);this.Md=b;this.Lf=c;this.Kw=d;this.A=e};
Ux=function(a,b){Sx.call(this,b);this.A=a;this.jf=null;this.B=new g.dm(this);this.logger=null;this.B.X(le(),"message",this.receive)};
Vx=function(a){if(null==a||!g.u(a)||!g.Da(a,"ima://"))return null;a=a.substr(6);try{return g.Ic(a)}catch(b){return null}};
Rga=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.Lc(e)};
Wx=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};
Xx=function(a,b){g.Te.call(this,"vpaidEvent");this.sessionId=b};
Yx=function(a){pu.call(this,a);this.da=this.O=this.Tc=!1;this.G=[];this.C=Ua();this.bb=this.g=null;this.o=!0;this.K=-1;this.J=new g.kg(500);this.W=this.F=-1;this.B=1;this.ca=this.ba="";this.P=this.M=this.D=!1};
$x=function(a){var b=Xr(a.ma());P.g()&&(b=Sga(a,b));var c=g.F(Zr(a.ma())),d=a.ma();if(vu(d)){var e=d.g,f=tp(e,"javascript");null!=f&&(e.C=f)}d=Es(d);c={desiredBitrate:a.Va.bitrate,creativeData:b,viewMode:a.Yc,clickThroughUrl:c,adUrl:d,volume:a.B};d.match("//s0.2mdn.net/instream/html5/survey/survey.html")&&0<=b.indexOf("yt_override")&&null!=a.Va.surveyCreativeData&&(c.creativeData=a.Va.surveyCreativeData);Zx(a,"initAd",c);(0,g.H)(a.G,function(a){Zx(this,a.type,a.params)},a);
a.Tc=!0;a.G=[]};
ay=function(a,b,c){c=c||null;a.Tc?Zx(a,b,c):a.G.push({type:b,params:c})};
Zx=function(a,b,c){c=c||{};c.session=a.C;c.type=b;by()?window.parent.postMessage(g.Lc(c),"*"):null!=a.A.contentWindow&&a.A.contentWindow.postMessage(g.Lc(c),"*")};
Uga=function(a,b){var c={};b=Pa(b);var d;b.length?d=b.split(/\s+/):d=[];(0,g.H)(d,function(a){c[a]=!0});
g.Ib(Tga,function(a,b){Fm().g.g(b)&&(c[a]=!0)},a);
return g.Ob(c).join(" ")};
Sga=function(a,b){var c=g.mr(b),d=a.ma().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 nr(c)};
cy=function(a,b,c,d){d=Zm(b,c,d);var e=bq(d,a.ma()),f=Ur(a.ma());Vm(f,e);b.message=d.ud();bn(a,b,c)};
fy=function(a,b){if(g.u(b.type))switch(b.type){case "friendlyReady":$x(a);break;case "videoCall":switch(b.func){case "load":case "play":a.Qa.rg();a.ca!=b.src&&(a.ca=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.K=b.remainingTime;break;case "AdClickThru":a.Ea("click");a.la("click");break;case "AdDurationChange":a.F=b.duration;a.K=b.remainingTime;a.ma().g.Sa=a.F;a.la("durationChange");break;case "AdError":cy(a,
lw,Error(b.message));a.stop();break;case "AdExpandedChange":a.la("expandedChanged");break;case "AdImpression":var c=a.ma();g.fb(Wr(c))||a.sd(c);wu(a,"impression");a.M=!0;dy(a,51);break;case "AdLinearChange":c=b.isLinear;!a.o&&c?(a.la("contentPauseRequested"),ay(a,"becameLinear")):!c&&a.o&&(a.la("contentResumeRequested"),ay(a,"becameNonlinear"),ay(a,"getAdRemainingTime"),ay(a,"getAdDuration"));a.o=c;var d=a.ma();d.Za=!0;d.sa=c;a.la("linearChanged");break;case "AdLoaded":g.ng(a.W);a.O=!0;d=b.companions;
c=a.ma();g.fb(Wr(c))&&(d=bw(d,c.g.g),g.fb(d)||Ir(c,d));ey(a);wu(a,"loaded");break;case "AdPaused":a.D=!0;wu(a,"pause");break;case "AdPlaying":a.D=!1;wu(a,"resume");break;case "AdRemainingTimeChange":a.K=b.remainingTime;c=a.ma().getDuration();d=c-a.Oc();Cu(a,d,c);break;case "AdSkipped":wu(a,"skip");a.stop();break;case "AdSkippableStateChange":wu(a,"skippableStateChanged");break;case "AdStarted":a.Ea("creativeview");dy(a,52);break;case "AdStopped":a.Ea("stop");a.stop();break;case "AdUserAcceptInvitation":a.o?
a.Ea("acceptinvitationlinear"):a.Ea("acceptinvitation");break;case "AdUserMinimize":a.Ea("collapse");break;case "AdUserClose":wu(a,"userClose");break;case "AdVideoComplete":a.M&&a.P||(c={},c.aic=a.M,c.avc=a.P,dy(a,56,c));wu(a,"complete");break;case "AdVideoFirstQuartile":wu(a,"firstquartile");break;case "AdVideoMidpoint":wu(a,"midpoint");break;case "AdVideoStart":a.Ea("start");a.la("start");a.P=!0;break;case "AdVideoThirdQuartile":wu(a,"thirdquartile");break;case "AdVolumeChange":c=b.volume;c!=a.B&&
a.la("volumeChange",{volume:c});0==c&&0!=a.B?(a.Ea("mute"),a.la("mute")):0==a.B&&0!=c&&a.Ea("unmute");a.B=c;a.g.setVolume(c);break;case "AdInteraction":c={};c.id=b.id;a.la("interaction",c);break;case "Ping":Rm(b.url)}};
gy=function(a,b){by()||Zx(a,"wrapperCall",{messageType:b})};
ey=function(a){a.O&&a.da&&(ay(a,"startAd"),a.J.start(),a.o||(ay(a,"becameNonlinear"),ay(a,"getAdRemainingTime")),ay(a,"getAdDuration"))};
dy=function(a,b,c){try{c=c||{};c.dn=a.ba;c["if"]=by();c.pid=Qw.getInstance().o;var d=ds(a.ma()).join();c.xy=d;Ln(In.getInstance(),b,c,!0)}catch(e){}};
by=function(){return 2==P.F};
hy=function(){pu.call(this,[]);this.bb=null;this.Td=this.Ud=-1;this.F=!1};
jy=function(a,b,c,d){if(a.g){var e=a.g,f=a.Xa();em(f,e,iy,a.dispatchEvent,!1,a);f=a.Xa();em(f,e,"companionBackfill",a.dispatchEvent,!1,a);f=a.Xa();em(f,e,"adError",a.hz,!1,a);f=a.Xa();em(f,e,"allAdsCompleted",g.z,!1,a);f=a.Xa();em(f,e,"contentPauseRequested",a.oz,!1,a);f=a.Xa();em(f,e,"contentResumeRequested",a.Nr,!1,a);f=a.Xa();em(f,e,"userClose",a.ii,!1,a);f=a.Xa();em(f,e,"autoClose",a.hi,!1,a);a.g.zg(a.Gd);a.g.Rc(b,c,d)}};
ky=function(a){a.g&&(a.g.destroy(),a.g=null);a.Qa&&a.Qa.hide();g.Re(a.gc);a.gc=null};
my=function(a,b,c){hy.call(this);this.A=c;this.o=null;this.C=this.D=this.B=!1;this.g&&ky(this);this.g=b;ly(this,b)};
oy=function(a,b,c){var d=(0,g.A)(function(a){an(this,Vga,c);try{var b=ny([a[0]]);if(b)var d=b;else throw Error("Ads manager creation failure, failed to determine ad type.");ly(this,d);a=d;try{this.g&&ky(this),this.g=a,jy(this,this.Qa,this.content,this.Va),this.F&&this.g.dj(),this.g.Ab(this.Ud,this.Td,this.Yc),this.g.init(this.Yc),this.start()}catch(m){d=m;var e=a.Kb();js(e);oy(this,ks(e),Error(d.ud()))}}catch(m){e=m,bn(this,e.ud(),e.wk)}},a);
a=(0,g.A)(function(){this.la("contentResumeRequested");bn(this,Wga,c);this.destroy()},a);
null!=b?pq(b,d,a):a(null)};
ly=function(a,b){a.o&&a.o.dispose();a.o=new g.dm(a);g.N(a,a.o);em(a.o,b,"start",a.gM,!1,a)};
py=function(a){pu.call(this,[]);this.bb=null;this.o=a;this.A=0;this.g=this.o[this.A];this.B=this.D=this.C=null;this.Td=this.Ud=-1;this.F=!1;Xga(this)};
qy=function(a,b,c,d){if(a.g){a.C=new g.dm(a);var e=a.g,f=a.C;em(f,e,iy,a.dispatchEvent,!1,a);em(f,e,"start",a.HH,!1,a);em(f,e,"companionBackfill",a.dispatchEvent,!1,a);em(f,e,"adError",a.fM,!1,a);em(f,e,"allAdsCompleted",g.z,!1,a);em(f,e,"contentPauseRequested",a.mh,!1,a);em(f,e,"contentResumeRequested",a.Qf,!1,a);em(f,e,"userClose",a.ii,!1,a);em(f,e,"autoClose",a.hi,!1,a);a.g.Rc(b,c,d)}};
Xga=function(a){var b=0,c=a.o.length;(0,g.H)(a.o,function(a){b+=a.Se().getDuration()},a);
var d=1;(0,g.H)(a.o,function(a){a=a.Se().C;a.Yf=c;a.g=d;a.A=d;d++},a)};
sy=function(a,b,c){a.A+1>=a.o.length?bn(a,Jx,c.wk):(an(a,Jx,c.wk),ry(a,b))};
ry=function(a,b){if(a.g===b)if(ty(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.Qa.hide(),a.Qa.tq()):(qy(a,a.Qa,a.content,a.Va),a.g.Ab(a.Ud,a.Td,a.Yc),a.g.init(a.Yc)),a.start()}catch(c){sy(a,a.g,c)}else a.la("contentResumeRequested"),a.destroy()};
ty=function(a){a.C&&(a.C.dispose(),a.C=null);a.g&&(a.g.destroy(),a.g=null);a.Qa&&a.Qa.hide()};
Yga=function(a){return'<div class="close-padding"><a class="close-button" title="'+Q(a.close)+'" role="button" tabindex="0"></a></div>'};
Zga=function(){return'<div class="recall-button"></div>'};
$ga=function(a){return'<a target="_blank" href="'+Q(a.url)+'" class="attribution-button">'+Q(a.text)+"</a>"};
uy=function(a,b){this.K=a;this.J=g.ne("DIV",{"class":"controls"});this.g=g.ne("DIV",{"class":"adDisplay"});this.ba=b||g.z;this.Df=new g.dm(this)};
vy=function(a){var b=g.ne("DIV",{"class":"ima-container"});Rs(b,"opacity 0.4s");a.Df.X(b,"mouseover",a.rH);a.Df.X(b,"mouseout",a.KR);b.appendChild(a.J);a.J.appendChild(a.g);return b};
wy=function(a){var b=window.document.createEvent("Event");b.initEvent("creativeview",!0,!0);a.dispatchEvent(b)};
yy=function(a){pu.call(this,a);this.containerElement=null;this.K=g.ne("DIV",{style:"display:none;position:absolute;top:0;left:0;bottom:0;right:0;z-index:2000"});this.B=!1;this.F=[]};
zy=function(a,b){var c=Xda(b);(0,g.H)(c,function(a){ip(this.Rb.A,"click",a)},a)};
Ay=function(a,b){var c=bq(b,a.ma()),d=Ur(a.ma());Vm(d,c)};
By=function(a,b,c,d,e,f,k){g.xf.call(this);this.o=this.J=0;this.G=a;this.Ec=b;this.ka=c;this.D=null;this.ib=d;this.ba=f;this.ca=P.B;this.M=this.C=this.F=this.g=null;this.Td=this.Ud=-1;this.fa="normal";this.W=null;this.B=e;this.A=[];this.ga=this.O=this.ha=this.P=!1;this.da=k;this.bb=null;aha(this)};
Cy=function(a,b,c,d){a.Ud=b;a.Td=c;null!=d&&(a.fa=d);null!=a.g&&a.g.Ab(b,c,d)};
aha=function(a){(0,g.H)(a.G,function(a){bha(a)})};
Dy=function(a){return a.J<a.G.length&&null!=a.G[a.J]};
cha=function(a,b){var c;if(c=P.g()&&!g.fb(b)&&0==a.Ec)c=b[0],c=null!=c&&null==Es(c)&&ys(c,"nonlinear");return c?(c=es(b[0]),"ADSENSE"==(0<c.length?c.pop():Tr(b[0])).toUpperCase()):!1};
Jy=function(a){!Dy(a)||2<=a.A.length-a.o?a.ha||(Fy(a),a.Tf()&&Gy(a,a.o)&&Hy(a,a.o)&&Iy(a,a.o),a.ha=!0,a.dispatchEvent("adBreakInitialized")):Ey(a)};
Ey=function(a){var b=a.G[a.J];em(a.K,a.ib,"adsLoaderSdkAdLoaded",a.fz,!1,a);P.B="on_master_ad";dha(a.ib,b.o,b)};
Fy=function(a){null==a.Ec||(0,g.Ek)(a.A,function(a){return!a.isBumper()})||(a.A=(0,g.ye)(a.A,function(a){return!(a.isBumper()&&!a.A)}))};
Gy=function(a,b){if(b<a.A.length){var c=a.A[b];g.fb(c.g)?c=!1:(c=c.g[0],c=null!=c?!fo(Kr(c),"rm"):!1)}else c=!1;return c};
Qy=function(a){if(Gy(a,a.o)){var b=a.A[a.o];try{a.O?Ky(a,a.g):a.Tf()&&Hy(a,a.o)?(null===a.C&&Iy(a,a.o),Ly(a),a.g=a.C,a.F=a.M,a.C=null,a.M=null,a.B.tq()):(Ly(a),a.F=new g.dm(a),a.g=My(a,b,a.F),Ky(a,a.g));null!=a.D&&(a.D.dispose(),a.D=null);if(Ny(a.g)){var c=a.Kb();if(null==c||!zs(c)){var d=a.g.ma().g;if(null!==d){var e=d.Fa;0>=e&&!a.ba.Nu||(0>=e&&(e=15),a.D=new g.kg(1E3*e),jm(a.F,a.D,"tick",a.wO,a))}}}if(Ny(a.g))a.dispatchEvent("contentResumeRequested"),a.B.od(),a.g.start(),null!=a.D&&a.D.start();
else{var f=a.g;if(null!=f&&f instanceof rx)a.B.rg(),a.g.start();else{var k=a.g;if(null!=k&&k instanceof Yx){var l=a.g;a.B.od();l.Vb()?by()||a.B.rg():a.dispatchEvent("contentResumeRequested");a.g.start()}else{var m=a.g;if(null!=m&&(m instanceof nw||m instanceof hw))a.B.od(),a.g.Vb()||a.dispatchEvent("contentResumeRequested"),a.g.start();else{var n;if(!(n=Oy(a.g))){var q=a.g;n=null!=q&&q instanceof my}if(n)a.g.start();else throw Error("Unknown ads manager type.");}}}}a.Tf()&&Gy(a,a.o+1)&&Hy(a,a.o+1)&&
1==Py(a)&&Iy(a,a.o+1)}catch(r){a.o++,Qy(a)}Dy(a)&&Ey(a)}else a.dispatchEvent("contentResumeRequested"),Ry(a)};
Ky=function(a,b){if(null===b)throw Error("Ads manager must be constructed before initialization");b.init(a.fa);null!=a.W&&b.setVolume(a.W)};
My=function(a,b,c){b=Sy(a.ib.A,b.g);var d=new qm(a.B,a.Tf());b.zg(a.da);em(c,b,iy,a.gz,!1,a);em(c,b,"companionBackfill",a.gz,!1,a);em(c,b,"adError",a.dM,!1,a);em(c,b,"allAdsCompleted",g.z,!1,a);em(c,b,"contentPauseRequested",a.mh,!1,a);em(c,b,"contentResumeRequested",a.Qf,!1,a);em(c,b,"userClose",a.ii,!1,a);em(c,b,"autoClose",a.hi,!1,a);b.Rc(d,{currentTime:0},a.ba);b.Ab(a.Ud,a.Td,a.fa);return b};
Ly=function(a){a.B.hide();null!=a.D&&(a.D.dispose(),a.D=null);null!=a.F&&(a.F.dispose(),a.F=null);null!=a.g&&(a.g.destroy(),a.g=null)};
Ty=function(a){null!=a.M&&(a.M.dispose(),a.M=null);null!=a.C&&(a.C.destroy(),a.C=null)};
Oy=function(a){return null!=a&&a instanceof py};
Ny=function(a){return null!=a&&a instanceof yy};
Ry=function(a){a.P=!1;a.dispatchEvent("allAdsCompleted")};
Py=function(a){return null===a.g||g.fb(a.g.ads)?0:a.g.ads.length};
eha=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.db)(f,c)&&a.isBumper();d+=f.length;b<this.o&&(e+=f.length)},a);
b=c.C;var f=e+b.A;b.Yf=d+(a.G.length-a.J);b.g=f;b.B=a.ka;b.o=a.Ec}};
Iy=function(a,b){var c=a.A[b];a.M=new g.dm(a);a.C=My(a,c,a.M);Ky(a,a.C)};
Hy=function(a,b){if(0<=b&&b<a.A.length){var c=a.A[b].g[0];return null!=Es(c)||null!=Fs(c)?!1:!0}return!1};
fha=function(a){this.o=a};
Uy=function(a){this.o=a;this.g=this.isBumper=!1;this.A=null};
bha=function(a){if(null!=a.o.g&&(a=g.sg(a.o.g)[6]||null)){var b=null;wg(a,function(a,d){if(null==b)switch(a){case "max_ad_duration":case "pmxd":b=d/1E3}})}};
Vy=function(){this.g=new Fl};
Wy=function(a,b,c){if((0,window.isNaN)(c)||!g.oa(c))throw Error("Incorrect time offset.");var d=[];Hl(a.g,c)&&(d=a.g.get(c,[]));(0,g.H)(b,function(a){null!=a&&g.ib(d,a)});
a.g.set(c,d)};
Xy=function(a,b){this.g=a;this.o=b};
hha=function(a){var b=new Vy;(0,g.H)(g.ze(g.Be(a.g)),function(a){switch(a.nodeName){case "Preroll":a=Yy(this,a);Wy(b,a,0);break;case "Midroll":var c=sr(a,"timeOffset"),e=wr(c);if(-1==e)throw Ym(Zy,null,"timeOffset",g.F(c));a=Yy(this,a);Wy(b,a,e);break;case "Postroll":a=Yy(this,a);Wy(b,a,-1);break;default:throw Ym($y,null,a.parentNode.nodeName,a.nodeName);}},a);
if(0==b.g.Cb().length)throw Ym(gha);return b};
Yy=function(a,b){var c=[];(0,g.H)(g.ze(b),function(a){switch(a.nodeName){case "Ad":var b=g.F(tr(a));if(!E(b)){a=sr(a,"bumper");var d=this.o.clone();d.g=b;b=new Uy(d);b.isBumper=null!=a;b.g="always"==a;g.ib(c,b)}break;default:throw Ym($y,null,a.parentNode.nodeName,a.nodeName);}},a);
return c};
az=function(a){g.Te.call(this,a);this.g=this.A=null};
bz=function(){g.xf.call(this);this.currentTime=0};
dz=function(a,b,c){g.xf.call(this);c=c||new cz;this.o=a;this.D=c.F;this.J=c.D;this.O=c.C;this.K=c.g;this.M=c.A;this.F=c.o;this.G=c.B;this.C=!1;this.B=null;this.A=!1;this.g=iha(b)};
cz=function(){this.D=0;this.A=this.g=this.F=this.C=!1;this.B=this.o=5};
ez=function(a){this.g=a.Ec;this.C=g.xa(a);this.A=this.o=!1;this.mI=5==a.Ue();this.B=this.Zd=!1};
fz=function(a,b){return vb(a.g,b.g)};
gz=function(a){a.o.start();a.A=!0};
jha=function(a){if(a.A){var b=g.$a(a.g,function(a){return-1==a.g},a);
null!=b&&hz(a,!0,b)}};
iha=function(a){var b=[];(0,g.H)(a,g.ya(function(a,b){a(new ez(b))},g.ya(function(a,b){Bb(a,b,fz)},b)));
return b};
kha=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.ib(c,e)}return c};
iz=function(a,b){return cb(a,g.ya(function(a,b){return b.mI==a},b))};
lha=function(a){var b=[],c=iz(a,!1);c&&b.push(c);(a=iz(a,!0))&&Bb(b,a,fz);return b};
mha=function(a,b){for(var c=0;c<a.g.length;c++){var d=a.g[c];if(jz(a,d,a.J,b,!0,a.O)&&!a.g[c].o)return d}return null};
jz=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};
kz=function(a,b){var c=new az("contentTrackingError");c.setDescription(b);a.dispatchEvent(c)};
hz=function(a,b,c){null!=c&&(c.o||(lz(a,"requestAds",c),c.o=!0),b&&!c.A&&(lz(a,"playAds",c),c.A=!0))};
nha=function(a,b){var c;a:{for(c=0;c<a.g.length;c++){var d=a.g[c];if(jz(a,d,-1==d.g?a.G:a.F,b,a.K,a.M)&&d.Zd&&!d.B){c=d;break a}}c=null}null==c?a.C&&(a.dispatchEvent(new az("discardAdNotify")),a.C=!1):a.C||c.A||(lz(a,"adNotify",c),a.C=!0)};
lz=function(a,b,c){b=new az(b);b.A=c.g;b.g=c.C;a.dispatchEvent(b)};
mz=function(a){bz.call(this);this.currentTime=a.currentTime;if(!("currentTime"in a)||(0,window.isNaN)(a.currentTime))throw Zm(Wn,null,"content","currentTime");this.duration="duration"in a&&!(0,window.isNaN)(a.duration)?a.duration:-1;this.o=a;this.g=new g.kg(250);this.A=new g.dm(this);em(this.A,this.g,"tick",this.B,!1,this)};
oha=function(){};
nz=function(a,b,c){if(g.fb(a))return null;a=(0,g.ye)(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.fb(c)||(c=(0,g.I)(c,function(a){return a.toLowerCase()}),a=(0,g.ye)(a,function(a){return g.eb(c,g.F(a.g).toLowerCase())}));
if(!g.oa(b)||0>=b)b=gk()?500:1E3;return pha(a,b)};
pha=function(a,b){return qha(a,b)||rha(a,b)||sha(a,b)};
qha=function(a,b){var c=null;(0,g.H)(a,function(a){var d=a.gh,f=a.Kf;d>b||f<b||!(null==c||c.gh>d)||(c=a)});
return c};
rha=function(a,b){var c=null;(0,g.H)(a,function(a){var d=a.gh,f=a.Kf;f>b||(null==c||c.Kf<f?c=a:null!=c&&c.Kf==f&&c.gh>d&&(c=a))});
return c};
sha=function(a,b){var c=null;(0,g.H)(a,function(a){var d=a.gh,f=a.Kf;if(!(d<b))if(null!=c&&c.gh==d&&c.Kf<f)c=a;else if(null==c||c.gh>d)c=a});
return c};
oz=function(a){this.o=0;this.A=a||100;this.g=[]};
pz=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};
qz=function(a){g.xf.call(this);this.g=a;this.W=new oz(4);this.A=0;this.P=this.B=this.Tc=this.F=!1;this.M=this.Gf();this.K=this.Zi();this.ba=Mn();this.O=!1};
sz=function(a){a.Tc=!1;a.B=!1;a.F=!1;a.A=0;a.P=!1;a.W.clear();rz(a);g.Re(a.C)};
tz=function(a){a.B||(a.B=!0,rz(a),a.dispatchEvent("start"),g.ua(a.g.getAttribute)&&a.g.getAttribute("playsinline"),un()||!g.mn||on(3)||gn()&&!ln(4)||a.Cq())};
uz=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};
rz=function(a){a.J&&(g.ng(a.J),a.J=null)};
wz=function(){g.xf.call(this);this.o=new vz;this.g=new g.dm(this);var a=tm();if(a){a:{if(Qb(a.g,"videoElementMockDuration")&&(a=a.g.videoElementMockDuration,g.oa(a)))break a;a=window.NaN}this.duration=a}};
tha=function(){var a=["video/mp4"],b=["video/ogg"],c=new wz;c.canPlayType=function(c){return g.eb(a,c)?"probably":g.eb(b,c)?"maybe":""};
c.width=0;c.height=0;c.offsetWidth=0;c.offsetHeight=0;return c};
uha=function(a){this.startTime=0;this.endTime=a};
vz=function(){this.length=0;this.g=[]};
xz=function(a,b,c,d){if(null==a||!g.De(g.Zd(a),a))throw Zm(Wn,null,"containerElement","element");this.C=a;this.o=this.g=null;this.B=b;this.F=!d;this.D=c||!1;this.A=null;this.g=g.ne("DIV",{style:"display:none;"});this.C.appendChild(this.g);this.F&&(a=tm(),um(a,"useVideoElementMock")?(a=tha(),b=g.ne("DIV",{style:"position:absolute;width:100%;height:100%;top:0px;left:0px;"}),g.za(b,a),a.Rj=g.ne("DIV",{style:"position:absolute;width:100%;height:100%;top:0px;left:0px;background-color:#000"}),a.Xm=g.ne("P",
{style:"position:absolute;top:25%;margin-left:10px;font-size:24px;color:#fff;"}),a.Rj.appendChild(a.Xm),b.appendChild(a.Rj),a.g.X(a,["loadeddata","playing","pause","ended"],a.XP),a=b):a=g.ne("VIDEO",{style:"background-color:#000;position:absolute;width:100%;height:100%;",title:""+Aa("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.ne("DIV",{id:this.B,style:a}),this.g.appendChild(a));this.D&&(this.A=g.ne("DIV",{style:"position:absolute;width:100%;height:100%;"}),this.g.appendChild(this.A))};
yz=function(a,b,c,d){g.M.call(this);this.B=b||null;this.F="*";this.o=c||null;this.sessionId=null;this.channel=d||null;this.K=!!a;this.C=(0,g.A)(this.G,this);window.addEventListener("message",this.C)};
zz=function(a,b){"null"!=b.origin&&(a.o=a.F=b.origin);a.B=b.source};
Az=function(a){yz.call(this,!0);this.sessionId=a;this.channel="remoteplayer";this.o="*";this.g={};this.A=[];this.D=!1};
Bz=function(a){a.D=!0;(0,g.H)(a.A,function(a){this.sendMessage(a)},a);
a.A.length=0};
vha=function(){};
Cz=function(a,b){this.g=a;this.C=new ox;this.F=(0,g.A)(this.G,this);this.K=Math.floor(2147483646*Math.random())+1;this.o=b||new Az(this.K);g.N(this,this.o);this.A=new g.dm(this);g.N(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.J,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};
Fz=function(a){g.xf.call(this);this.P="ima-chromeless-video";var b=null;null!=a&&(g.u(a)?this.P=a:b=a);this.W=new g.dm(this);this.D=null;this.B=!1;this.ra=this.Gf();this.ka=this.Zi();this.K=-1;this.fa=!1;this.F=-1;this.A=this.da=this.M=null;this.ca="";this.o=!1;this.ha=null!=b;this.sa=this.O=this.ga=this.g=null;this.C=void 0;this.J=this.oa=null;this.G=this.ua=0;this.ha?(this.o=!0,this.g=b,this.C=2):(a=(0,g.A)(this.JF,this),Dz?a():(Ez.push(a),a=g.pe("script"),a.src="https://www.youtube.com/iframe_api",
b=window.document.getElementsByTagName("script")[0],b.parentNode.insertBefore(a,b)))};
Hz=function(a,b,c){null!==b&&(a.ca=b,a.o?Gz(a,b,c):(a.M=b,a.da=c))};
Gz=function(a,b,c){var d={autoplay:"1"};P.C&&(d.dash=0);if(null!=a.A){var e=a.A.D;null!=e&&(d.agcid=e);e=a.A.B;null!=e&&(d.adformat=e);e=a.A.C;null!=e&&(d.ad_query_id=e);(e=a.A.F)&&(d.cta_conversion_urls=e);(e=a.A.G)&&(d.endscreen_ad_tracking_data=e);(e=a.A.W)&&(d.wait_for_vast_info_cards_xml=e);a.A.isPharma()&&(d.is_pharma=1);d.iv_load_policy=a.A.M?1:3;a.A.J&&(d.noiba=1);a.A.P&&(d.utpsa=1);a.A.O&&(d.autoplay="1");a.A.A&&g.ac(d,a.A.A)}e=Sp(b);null===e?d.url_encoded_third_party_media="url="+(0,window.encodeURIComponent)(b)+
"&type="+(0,window.encodeURIComponent)(null===c?"":c):d.videoId=e;!P.g()&&(d.enabled_engage_types="3,4,5,6");a.B=!1;a.A&&a.A.o?(a.oa=d,a.g.preloadVideoByPlayerVars(a.oa)):a.g.cueVideoByPlayerVars(d);a.dispatchEvent("loaded")};
Iz=function(a){a.W.za(a.D,"tick",a.rz);null!=a.D&&(a.D.stop(),a.D=null)};
Jz=function(a){null!=a.Fa&&g.ng(a.Fa)};
Kz=function(a,b){g.xf.call(this);this.B=a;this.A=b;this.g={};this.o=new g.dm(this);this.o.X(le(),"message",this.C);this.bb=null};
Mz=function(a,b,c,d){a.g.hasOwnProperty(b)||(c=new Ux(b,c),a.o.X(c,a.B,function(a){a=new Lz(a.type,a.Md,a.Lf,a.Kw,a.getOrigin(),b);this.dispatchEvent(a)}),c.jf=d,c.connect(),a.g[b]=c)};
Lz=function(a,b,c,d,e,f){Tx.call(this,a,b,c,d,e);this.g=f};
Oz=function(){var a=g.x("google.ima.gptProxyInstance",le());if(null!=a)return a;g.dm.call(this);this.A=new Kz("gpt",!0);g.N(this,this.A);this.X(this.A,"gpt",this.D);this.bb=this.g=null;Nz()||le().top===le()||(this.g=new Kz("gpt",!1),g.N(this,this.g),this.X(this.g,"gpt",this.C))};
Nz=function(){return!!g.x("googletag.cmd",le())};
Pz=function(){var a=g.x("googletag.console",le());return null!=a?a:null};
Qz=function(){this.g=(0,g.G)()};
wha=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 Rz[n].apply(null,arguments)})};
Uz=function(a,b){g.xf.call(this);this.o=new g.dm(this);this.J=!1;this.K=Ua();this.G=new Fl;var c=this.K,d=(zba()?"https:":"http:")+wha("//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.ne("IFRAME",{src:d+"#"+c,allowFullscreen:!0,style:"border:0; opacity:0; margin:0; padding:0; position:relative;"});im(this.o,
c,"load",this.fG);a.appendChild(c);this.A=c;c=this.G.get("*");null==c&&(c=new Ux(this.K,"*"),this.J&&(c.jf=Ee(this.A),c.connect()),this.G.set("*",c));this.F=c;this.D=b;this.g=this.D.o;this.bb=this.B=this.C=null;this.o.X(this.F,"mouse",this.BG);this.o.X(this.F,"touch",this.RG);null!=this.g&&(this.o.X(this.F,"displayContainer",this.wG),this.o.X(this.F,"videoDisplay",this.OG),this.o.X(this.F,"preloadVideoDisplay",this.IG),this.o.X(this.g,g.Nb(Sz),this.Sf),this.o.X(this.g,Tz,this.Sf));c=le();d=g.x("google.ima.gptProxyInstance",
c);null==d&&(d=new Oz,g.v("google.ima.gptProxyInstance",d,c))};
Vz=function(a,b){var c=g.mh(a.A),d=!!("TouchEvent"in window&&0<window.TouchEvent.length),e=(0,g.I)(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)};
Wz=function(a){a=a.playbackOptions;return new gx(a.adFormat,a.adSenseAgcid,0,a.ctaAnnotationTrackingEvents,a.showAnnotations,a.viewCountsDisabled,a.loadVideoTimeout,a.ibaDisabled,a.enablePreloading,a.adQemId,null,a.isPharma,a.useAutoplayFlag,a.endscreenAdTracking,a.waitForVastInfoCardsXml)};
Xz=function(a,b,c,d,e){if(!(e||null!=a&&g.De(g.Zd(a),a)))throw Zm(Wn,null,"containerElement","element");this.D=a;var f=null!=b||null!=d;Hm(Fm(),136961005)&&(P.M=!0);e=b?b:null;null!=e&&g.ua(e.getAttribute)&&e.getAttribute("playsinline");var k=f;e=!1;P.M?P.o||(vn()&&f||(k=!1),!k&&P.M&&!P.g()&&dn()&&(P.C=!0),!P.C&&dn()||tn()||(e=!0)):P.o||vn()&&f||(!P.C&&dn()||tn()||(e=!0),k=!1);this.F=k;this.M=e||k&&null!=d;P.o?a=null:(f=g.ne("DIV",{style:"position:absolute"}),a.insertBefore(f,a.firstChild),a=f);this.A=
a;this.g=this.F||!this.A||P.o||!dn()?null:new xz(this.A,null,!0);f=a=null;this.F?b?(a=new qz(b),f=b):d&&(a=new Fz(d)):this.g&&(a=new qz(this.g.o),f=this.g.o);k=null;f&&P.C&&e&&(k=new Cz(f));this.K=k;this.o=a;this.C=this.B=null;e=g.mn&&!on(4);a=gn()&&dn();this.g&&this.o&&this.A&&!this.F&&!tn()&&!e&&!a&&this.A&&(this.B=new xz(this.A,null,!0),this.C=new qz(this.B.o));this.G=this.o?c||null:null;this.O=null!=this.G;Ln(In.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.ua(b.getBoundingClientRect)&&(b=this.D,P.G=b);this.J=null==this.A||P.o?null:new Uz(this.A,this)};
Yz=function(a){return a.O&&a.G?a.G:null!=a.g?a.g.A:null};
Zz=function(a){this.g=a};
$z=function(a,b){g.Te.call(this,"adsManagerLoaded");this.g=a;this.A=b};
aA=function(a,b,c,d){a.g.Rc(new Zz(b),c,d);return a.g};
bA=function(){};
cA=function(){g.xf.call(this);this.Zd=!1;this.impressionUrls=[]};
dA=function(a,b,c){g.Te.call(this,a);this.A=b||null;this.g=c||null};
fA=function(a,b){g.xf.call(this);this.g=a;this.D=!!b;this.B=eA(this);if(!this.B){var c=g.sc&&!g.kc("7")?"readystatechange":"load";this.o=g.hf(this.g,c,this.C,!1,this);this.A=window.setInterval((0,g.A)(this.C,this),100)}};
gA=function(a){a.A&&(window.clearInterval(a.A),a.A=null)};
eA=function(a){var b=!1;try{if(a.D||!g.sc||g.kc("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};
hA=function(){cA.call(this);this.F=[];this.C=!1;this.A="not_loaded";this.o=null;this.B=0;this.g=this.bb=null;this.G=new Yd};
iA=function(a){var b=["googletag","googletag.cmd"];return g.$a(a,function(a){return(0,g.Ar)(b,function(b){return null!==g.x(b,a)})})||null};
jA=function(a){return a.Zd?(0,g.I)(a.F,function(a){return a.clone()}):[]};
xha=function(a){a=jA(a);if(null!=a)return(0,g.I)(a,function(a){return a.G})};
kA=function(a,b,c){var d=0,e=0;null!=b&&(b=new g.Ll(b.g),d=Number(b.g.get("pod")||0),e=Number(b.g.get("ppos")||0));if(null!=a.setVideoSession)try{a.setVideoSession(Jn.g,d,e,c)}catch(f){}};
yha=function(a,b){var c=lA(a);if(null!==c){kA(c,b,!0);try{c.refreshAllSlots()}catch(d){}}};
nA=function(a,b,c){a=mA(a);if(null!=a)try{a.setVideoContent(b,c)}catch(d){}};
oA=function(a,b){a.D=b;nA(a,"","");var c=lA(a);null===c||kA(c,null,!1)};
lA=function(a){null==a.g&&pA(a);return null!=a.g&&null!=a.g.googletag&&null!=a.g.googletag.companionAds?a.g.googletag.companionAds():null};
mA=function(a){null==a.g&&pA(a);return null!=a.g&&null!=a.g.googletag&&null!=a.g.googletag.pubads?a.g.googletag.pubads():null};
qA=function(a){a.o&&(a.o.stop(),a.o.za("tick",a.Fz,!1,a),a.o.dispose(),a.o=null)};
uA=function(a){if("retrieved"!=a.A&&"not_available"!=a.A&&null!==lA(a)){var b=lA(a);if(null!==b&&g.ua(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=rA(a))||(c=sA(a)&&"not_available"==a.A);if(c){if(!a.J&&sA(a)){try{if(null==a.g)var d=[];else{var e=a.g.googleGetCompanionAdSlots();d=(0,g.I)(e,a.iR,a)}}catch(f){d=
[]}a.F=d;a.J=!0}a.Zd=!0;qA(a);rA(a)?a.dispatchEvent(new dA("companions_success")):tA(a)}else a.o||(a.B=(0,g.G)()+15E3,a.o=new g.kg(100),a.o.X("tick",a.Fz,!1,a),a.o.start())};
rA=function(a){return sA(a)&&"retrieved"==a.A};
sA=function(a){a.C||(pA(a),a.C=null!=a.g&&null!=a.g.googleGetCompanionAdSlots);return a.C};
pA=function(a){var b=g.Oe(a.G);try{a.g=iA([b,b.top])}catch(c){a.g=null}};
tA=function(a){a.dispatchEvent(new dA("companion_initialization_failed",Error("Partial or full service initialization failure.")))};
zha=function(a,b,c){var d=new fA(b,!0);d.Pb()?vA(a,c,b):qf(d,"ifload",g.ya(function(a){vA(this,c,a)},b),!1,a)};
vA=function(a,b,c){a.dispatchEvent(new dA("companion_slot_init",null,b));var d=c;"IFRAME"==c.tagName&&(d=(c.contentDocument||c.contentWindow.document).body);null!=d&&g.hf(d,"click",(0,g.A)(a.XM,a,b),!1,a)};
wA=function(){g.xf.call(this);this.A=[]};
xA=function(){return new Jr("empty-ad","GDFP","GDFP",0,"",0,0,0,0,[],[],[],[],new Fl)};
yA=function(a){wA.call(this);this.g=a;this.G=this.bb=null;this.F=!1;this.B=null;this.C=new g.dm;em(this.C,this.g,["companions_success","companion_initialization_failed"],this.qP,!1,this);em(this.C,this.g,"companion_display_error",this.ZM,!1,this);em(this.C,this.g,["companion_slot_init","companion_click"],this.VM,!1,this);this.g.Zd?this.F=!0:this.g.initialize()};
AA=function(a){var b=a.B;a.B=null;if(null!=a.g)if(g.fb(a.A))zA(a,Error("Companion slots not available."));else if(null!=b){var c=Aha(a,b);a.g.sd(a.A);if(0<c.length&&b.Ja){a=a.g;var d;if(d=0!=c.length)d=gs(b),d="GDFP"==(bs(d[0])&&1<d.length?d[1]:d[0]);if(d){d=[];for(var e=0;e<c.length;e++)d.push(c[e].J);b=b.A;c=lA(a);if(null!==c){kA(c,b,!1);try{c.notifyUnfilledSlots(d)}catch(f){}}}}}else zA(a,Error("Invalid master ad."))};
zA=function(a,b){a.dispatchEvent(new oo("companion_display_error",b))};
Aha=function(a,b){var c=[],d=[];(0,g.H)(a.A,function(a){ro(a);(0,g.Ek)(a.G,function(d){a:{d=ls(b,d.width,d.height);if(!g.fb(d)&&(d=Bha(d,c),null!=d)){var e=d.o;if(null!=e&&0!=a.J.indexOf(e)){d=!1;break a}e=d.g.M;pb(e,Yr(b,"companionClick"));var f=Yr(b,"companionImpression"),k=P.g()&&"Html"==d.g.O&&d.B;c.push(d);if(k)qo(a,d.Hc(),d.Eb(),d.getHeight(),f);else{var k=d.hd(),q=d.Eb(),r=d.getHeight();d="IFrame"!=d.g.O;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=BA(b);a.D=CA(e,c);a.D||(0,g.H)(a.A,function(a){ro(a)},a);
return d};
CA=function(a,b){if(null==a)return!0;var c=a.g;return"all"==a.o?Cha(c,b):"any"==a.o?Dha(c,b):!0};
BA=function(a){return null==a||null==a.g||(0,window.isNaN)(a.g.g)?null:g.$a(xs(a,!0),function(a){a=a.g;return g.fb(a)?!1:(0,window.isNaN)(a[0].g.g)?!1:a[0].g.g==a[0].Vp()})};
Cha=function(a,b){return(0,g.Ar)(a,function(a){return g.eb(b,a)})};
Dha=function(a,b){return(0,g.Ek)(a,function(a){return g.eb(b,a)})};
Bha=function(a,b){return g.$a(a,function(a){return!g.eb(b,a)})};
DA=function(a,b){this.B=a;this.o=b;this.g=this.bb=null};
Eha=function(a){var b=[],c=rr(a,"vmap:Extensions")[0];if(c){var d;ur(c,"vmap:Extension",function(a){"vmap:YTBreakTime"==c.getAttribute("type")&&(d=a)});
if(d&&(b=rr(d,"yt:BreakTime"),!g.fb(b)))return(0,g.I)(b,function(a){return sr(a,"timeOffset")})}return[sr(a,"timeOffset")]};
Fha=function(a,b){return(0,g.I)(b,function(a){var b=new Uy(a.o.clone());b.isBumper=a.isBumper;b.g=a.g;return b},a)};
Gha=function(a){return(a=g.$a(g.ze(a),function(a){return"vmap:VASTData"==a.nodeName||"vmap:VASTAdData"==a.nodeName}))?g.$a(g.ze(a),function(a){return"VAST"==a.nodeName}):null};
Hha=function(a){a=g.$a(a,g.ya(EA,"type","youtube"));if(!a)return null;a=(0,g.ye)(a.getElementsByTagName("*"),function(a){return"yt:BreakProperty"==a.tagName});
if(g.fb(a))return null;a=a[0];return a.hasAttribute("break_type")?fda(a.getAttribute("break_type")):null};
EA=function(a,b,c){return sr(c,a)==b};
Jha=function(a,b){if(null!=a){if(null!=a){var c=g.Be(a);c=null!=c&&"Playlist"==c.nodeName}else c=!1;if(c)return Rw(),new Xy(a,b);null!=a?(c=g.Be(a),c=null!=c&&"vmap:VMAP"==c.nodeName):c=!1;if(c)return Rw(),new DA(a,b);if($v(a)){if(!$v(a))throw Ym($y);c=g.Be(a);var d=cw(c);if(1>d||4<d)throw Ym(Iha);c=rr(c,"Ad");if(g.fb(c))throw Ym(FA);c=dw(c[0]);if(null==c)throw Ym(GA);if(1!=rr(c,"AdSystem").length)throw Ym(GA);return new Zv(a)}}return null};
Kha=function(a){a=(0,g.ye)(a,function(a){return 0<is(a)});
g.yb(a,function(a,c){return is(a)-is(c)});
return a};
Lha=function(a){return(0,g.ye)(a,function(a){return-1==is(a)})};
rq=function(a){this.uf=a};
HA=function(a,b){this.o=a;this.A=b};
IA=function(a,b){"auto"!=a.o.ti&&"click"!=a.o.ti||b.set("vpa",a.o.ti)};
JA=function(a){E(P.getPlayerType())||(a.set("mpt",P.getPlayerType()),E("")||a.set("mpv",""))};
KA=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.M;null!=c&&b.set("mv",c+"."+(a.o.K||""))};
LA=function(a,b){var c=2;(Xh&&Xh.g?0:0===fi())&&(c|=2048);b.set("osd",c);-1!=a.A.M&&b.set("frm",a.A.M);c=a.A.da;null!=c&&b.set("ms",c);b.set("sdr",1)};
MA=function(a){return P.o?"h.3.0.0":null!=a.A?Hn(a.A):null};
NA=function(){this.g=["video"]};
OA=function(a,b){a.set("sz",Math.max(null!=b.Yi?b.Yi:0,null!=b.Ye?b.Ye:0)+"x"+Math.max(null!=b.Xi?b.Xi:0,null!=b.Xe?b.Xe:0))};
QA=function(a){var b={};Yh(b);for(var c in b)a.set(c,b[c]);a.set("dt",PA)};
RA=function(a){if(a.Gc&&a.Gc.LACT){var b=a.Gc.LACT.toString();if(b)return Xa(b)}return a.G};
SA=function(a){return P.g()&&a.Gc&&a.Gc.VIS?a.Gc.VIS.toString():null};
XA=function(a,b,c){var d=new Fl;d.set("ad_type",b.adType);ao&&d.set("flash",oi);OA(d,a);TA(b)&&(d.set("ea","0"),null!=a.Ye&&null!=a.Xe&&d.set("image_size",UA(b,a.Ye,a.Xe,a.Li)));VA(d,c);d.set("lact",RA(a));(b=SA(a))&&d.set("yt_vis",b);d.set("videoad_start_delay",a.vo);QA(d);WA(a,d,!0);return d};
WA=function(a,b,c){E(g.F(a.referrer))||(a=a.referrer,c&&(a=g.Fa(a)),YA("ref",a,b))};
aB=function(a,b,c){a=null!=b?b.split("_"):a;(0,g.H)(a,function(a){if(!Mb(Mha,a))throw Ym(Wn,null,"ad_type",String(b));});
if(c){var d=[];(0,g.H)(a,function(a){g.eb(ZA,a)||d.push(a)});
a=d}c=g.eb(a,"video");var e=g.eb(a,"skippablevideo");!hn()||P.g()||Ln(In.getInstance(),53,{playsInline:!1,iOS_version:hn()?qn(kn):"",wv:(Hb("iPad")||Hb("iPhone"))&&!dc()&&!cc()&&!Hb("Coast")&&Hb("AppleWebKit"),rq_video:c,rq_skip:e,dis_cp:!1});var f=Fm();if(!un()){d=[];(0,g.H)(a,function(a){"video"==a?(d.push("standardvideo"),!P.g()&&Hm(f,413051060)&&d.push("bumpervideo")):"skippablevideo"!=a&&d.push(a)});
if(0==d.length)throw Ym($A,null,"skippablevideo");a=d}return a};
bB=function(a,b){return null!=b?b.split(/[+, ]/):a};
UA=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)(Nha,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(",")};
cB=function(a,b){return null==b||(0,window.isNaN)(b)?a:Number(b)};
dB=function(a,b){return null!=b?String(b):null!=a?a:null};
eB=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};
fB=function(a,b,c){return null!=b&&Mb(c,b)?b:a};
TA=function(a){return(0,g.Ek)(ZA,function(b){return g.eb(a.g,b)})};
VA=function(a,b){ao?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)))}};
YA=function(a,b,c){null!=b&&c.set(a,b)};
hB=function(a,b,c){HA.call(this,a,b);var d=new NA,e=(new g.Ll(a.g)).g;d.Fq=fB(d.Fq,e.get("cust_age"),Oha);d.Hl=fB(d.Hl,e.get("adsafe"),gB);d.g=aB(d.g,e.get("ad_type"));d.adType=d.g.join("_");d.Xo=cB(d.Xo,e.get("videoad_start_delay"));d.Yo=dB(d.Yo,e.get("slotname"));d.Eq=eB(d.Eq,e.get("adtest"))||"on"==e.get("adtest");d.cp=eB(d.cp,e.get("scs"));d.ep=dB(d.ep,e.get("alternate_ad_url"));d.channels=bB(d.channels,e.get("channel"));d.Bp=cB(d.Bp,e.get("cpm"));d.Zj=dB(d.Zj,e.get("description_url"));d.experimentIds=
dB(d.experimentIds,e.get("eid"));d.gender=fB(d.gender,e.get("cust_gender"),Pha);d.o=eB(d.o,e.get("overlay"));d.host=dB(d.host,e.get("host"));d.A=bB(d.A,e.get("h_ch"));d.hostTierId=cB(d.hostTierId,e.get("ht_id"));d.isLiveStream=eB(d.isLiveStream,e.get("lsv"));if(null!=this.o.language)var f=this.o.language;else f=pa.navigator||null,f=vm(f.language||f.userLanguage||f.browserLanguage||f.systemLanguage||"");var k=null!=e.get("hl")?String(e.get("hl")):null;f=dB(k,f);var l;null!=f&&!E(g.F(f))&&(l=vm(f));
d.language=dB(d.language,l);d.Ww=cB(d.Ww,e.get("linearAdSlotWidth"));d.Vw=cB(d.Vw,e.get("linearAdSlotHeight"));d.kn=cB(d.kn,e.get("max_ad_duration"));d.fr=cB(d.fr,e.get("min_ad_duration"));d.ln=cB(d.ln,e.get("sdmax"));d.Yw=cB(d.Yw,e.get("nonLinearAdSlotWidth"));d.Xw=cB(d.Xw,e.get("nonLinearAdSlotHeight"));d.vj=dB(d.vj,e.get("client"));d.In=dB(d.In,e.get("t_pyv"));l=e.get("sdki");d.Qn=cB(d.Qn,g.u(l)?(0,window.parseInt)(l,16):l);d.tagForChildDirectedTreatment=cB(d.tagForChildDirectedTreatment,e.get("tfcd"));
d.Fn=dB(d.Fn,e.get("pucrd"));d.targeting=fB(d.targeting,e.get("targeting"),Qha);d.Wm=cB(d.Wm,e.get("video_format"));d.Ts=cB(d.Ts,e.get("video_cpm"));d.Gq=dB(d.Gq,e.get("loeid"));d.gt=dB(d.gt,e.get("yt_pt"));d.Xs=dB(d.Xs,e.get("ytdevice"));d.Ys=dB(d.Ys,e.get("ytdevicever"));d.Zs=dB(d.Zs,e.get("dbp"));d.B=dB(d.B,e.get("ms"));d.adBlock=cB(d.adBlock,e.get("adBlock"));d.url=dB(d.url,e.get("url"));d.mp=dB(d.mp,e.get("avo"));d.Ss=dB(d.Ss,e.get("v_p"));d.ZH=a.D;d.aI=a.B;d.bI=a.F;d.to=cB(d.to,e.get("ad_block"));
this.g=d;this.J=b;this.K=c;E(g.F(this.g.experimentIds))||(a=this.g.experimentIds.split(","),Dm(Fm(),a))};
Sha=function(a){return(0,g.Ek)(Rha,function(a){return g.eb(this.g.g,a)},a)};
iB=function(a){return P.g()?1:g.eb(a.g.adType.split("_"),"text")?3:1};
Tha=function(a){a=a.g.channels?a.g.channels:[];sb(a);a=g.qb(a,0,30);return a.join("+")};
Uha=function(){this.bb=null;this.g=0};
Vha=function(a,b,c,d,e,f,k){var l=(0,g.A)(function(a){d(a,Error(vw(a)))},a),m=(0,g.A)(function(a){6==a?jB(this,b,!1,c,l,e,f):l(a)},a);
jB(a,b,!0,c,m,e,f,k)};
jB=function(a,b,c,d,e,f,k,l){var m=new Bw;m.G=c;Cw(m,Wha(f));var n=new g.dm,q=(0,g.A)(function(){n.dispose();m.dispose()},a);
c=(0,g.A)(function(){e(m.o);q()},a);
jm(n,m,"success",function(){try{var a=m.g?m.g.responseXML:null}catch(B){a=null}if(null==a){var b=Kw(m);try{a=g.mr(b)}catch(B){a=lr("parsererror")}}d(a);q()},a);
jm(n,m,["error","timeout"],c,a);if("POST"==k){b=new g.Ll(b);var r=b.g.toString();Ql(b,"");b=b.toString()}P.g()&&"POST"!=k&&(l=Xha(b,k,l),b=l.url,k=l.fR,r=l.content);a.g=(0,g.G)();m.send(Om(b),k,r)};
Xha=function(a,b,c){var d=new bA;d.g=a;if(Hq(d)){var e=new g.Ll(a),d=e.g.get("post_data");if(g.t(d)){b="POST";e.g.remove("post_data");a=e.toString();var f=(0,window.decodeURIComponent)(d);g.t(c)&&(c=c.clone(),d=Gg(d,"pat"),null!=d&&(c.g=(0,window.decodeURIComponent)(d)),c=new hB(c,Jn,null),c=c.B(c.C()).toString(),f=f+"&cat="+(0,window.encodeURIComponent)(c))}}return{url:a,fR:b,content:f}};
kB=function(a,b){HA.call(this,a,b)};
lB=function(a,b){HA.call(this,a,b)};
mB=function(a){HA.call(this,a,null)};
nB=function(a){HA.call(this,a,null)};
oB=function(a,b){HA.call(this,a,b);P.g()&&(this.A.B=En())};
Yha=function(a){var b=[];(0,g.H)(a,function(a){0<a.length&&b.push((0,g.I)(a,function(a){return a.width+"x"+a.height}).join("|"))});
return b.join(",")};
pB=function(a,b,c){oB.call(this,a,b);b=Fm();this.J=E(g.F(a.A));a=new NA;a.g=aB(a.g,this.o.A);a.adType=a.g.join("_");a.experimentIds=dB(a.experimentIds,this.o.J);this.g=a;this.F=c;E(g.F(this.g.experimentIds))||Dm(b,this.g.experimentIds.split(","))};
Zha=function(a){var b=XA(a.o,a.g,a.F);b.set("sdkv",MA(a));b.set("sdki",a.D().toString(16));return b};
$ha=function(a,b){var c=Zha(a),d=(0,g.I)(c.Cb(),function(a){var b=c.get(a);return a+"="+(null!=b?b:"")});
g.Ul(b,"afvparams",d.join("&"))};
qB=function(a,b,c){HA.call(this,a,b);Fm();this.J=E(g.F(a.A));a=new NA;a.g=aB(a.g,this.o.A);a.adType=a.g.join("_");a.experimentIds=dB(a.experimentIds,this.o.J);this.g=a;this.F=c;E(g.F(this.g.experimentIds))||(a=this.g.experimentIds.split(","),c=Fm(),Dm(c,a))};
aia=function(a){var b=XA(a.o,a.g,a.F);b.set("sdkv",MA(a));return b};
bia=function(a,b){var c=aia(a),d=(0,g.I)(c.Cb(),function(a){var b=c.get(a);return a+"="+(null!=b?b:"")});
Aq(b,"afvparams",[g.Fa(d.join("&"))])};
rB=function(a,b){HA.call(this,a,b)};
sB=function(a,b){var c=new g.Ll(g.mm(a.o.g,cia(a,b)));Ml(c,"https");return c};
cia=function(a,b){if(null==a.o||null==a.o.Gc)return{};var c={},d=a.o.Gc;(0,g.H)(dia,function(a){a in d&&(c[a]=d[a])});
var e=eia(a,d.DESCRIPTION_URL);e&&(c.AD_BLOCK=e);null!=b&&(c.BISCOTTI_ID=b);return c};
eia=function(a,b){return null!=b?xn(Gn(a.A),b):null};
fia=function(a,b){if(!Fq(a.g)&&!Gq(a.g)||E(g.F(a.A))||null==a.g||-1==a.g.search("afvbase="))if(Fq(a.g))var c=new lB(a,Jn);else Dq(a.g)?c=new hB(a,Jn,b):Gq(a.g)?c=new oB(a,Jn):Eq(a)?c=new kB(a,Jn):(c=a.g,null!=c?(c=(new g.Ll(c)).o,c=Ea(c,".fwmrm.net")):c=!1,c=c?new mB(a):Hq(a)?new rB(a,Jn):new nB(a));else c=Fq(a.g)?new qB(a,Jn,b):new pB(a,Jn,b);return c};
tB=function(a,b,c,d,e){this.C=a;this.A=b;this.B=c;this.g=d;this.D=e;this.bb=null};
gia=function(a,b,c,d){if(b.o instanceof window.Document)var e=b.o;else try{e=g.mr(b.o)}catch(f){d(Ym($y,f));return}null!=e?uB(a,e,b,c,d):d(Ym($y))};
vB=function(a,b,c,d){var e;if(e=null!=b.g){a:{try{Ga(b.g)}catch(f){e=!1;break a}e=!0}e=!e}e?d(Ym(hia,null,b.g)):P.J?tda(Rn(),(0,g.A)(a.o,a,b,c,d)):a.o(b,c,d)};
xB=function(a,b,c,d,e,f){b=rda(b,f);f=c.Rm&&Lm(iia,b)?"POST":"GET";Vha(a.A,b,(0,g.A)(function(a){uB(this,a,c,d,e)},a),(0,g.A)(function(a,b){var d=8==a?Ym(mq):5==a||6==a?Ym(jia):Ym(wB,b);
e(d);d="third_party";Dq(c.g)?d="adsense":Fq(c.g)?d="dart":Gq(c.g)&&(d="xfp");d={rt:d,ec:a};Ln(In.getInstance(),18,d,!0)},a),a.D,f,c);
kia(c)};
kia=function(a){var b="third_party";Dq(a.g)?b="adsense":Fq(a.g)?b="dart":Gq(a.g)?b="xfp":Eq(a)&&(b="dbm");a={rt:b};Ln(In.getInstance(),17,a,!0)};
uB=function(a,b,c,d,e){try{var f=Jha(b,c);if(!f)throw Ym($y);var k=f.A();lia(a,k,c,d)}catch(l){l instanceof ym?e(l):e(Ym(mia,l))}};
lia=function(a,b,c,d){var e=b.uf;if(null!=e)d(new rq(e));else{e=b.o;if(null==e)throw Ym(FA);(0,g.H)(e,function(a){a.A=c;var d=tm();d&&um(d,"useCompanionsAsEndSlate")&&(a.M=pfa(a));var d=[],e=a.getExtension("InfoCards");if(null!=e)for(var e=e.A?e.A:new fv,f=0;f<ev(e,"card");f++)d.push(new gv(dv(e,"card",f)));a.B=d;a.ca=lfa(a.B);a.Na=this.A.g;P.g()&&(a.xb=b.g)},a);
var f=Kha(e),k=Lha(e),l;0<k.length&&0<=hs(k[0])?l=new wq(k,c,a,a.C):l=new lq(f,k,c,a);(0,g.H)(e,function(a){a.Sa=l});
d(l)}};
yB=function(a){this.g=a+(0,g.G)()};
Wha=function(a){var b=(0,g.G)();a=a.g-b;return 0<a?a:0};
zB=function(a,b,c){this.D=b;this.B=c;this.C=null;this.o=new g.dm(this);this.K=a;this.A=this.g=null;this.G=!1;this.bb=null};
nia=function(a){if(null===a.C)AB(a);else{var b=new g.Ll(a.C.g),c=g.F(b.g.get("vid")),b=g.F(b.g.get("cmsid")),d=a.B.J,e=a.B.F;a.B.J=c;a.B.F=b;if(E(g.F(c))||E(g.F(b)))AB(a);else if(c==d&&b==e)AB(a);else{var f=a.D.Nh();nA(f,c,b);yha(f,a.C);a.A=new g.kg(100);g.fm(a.o,a.A,"tick",function(){a:{var a=mA(f);if(null!=a)try{var b=!1!==a.isAdRequestFinished();break a}catch(m){b=!0;break a}b=!1}b&&AB(this)},!1,a);
a.A.start()}}};
oia=function(a){a.g=new g.kg;jm(a.o,a.g,"tick",function(){AB(this)},a);
lg(a.g,a.K);a.g.start()};
AB=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()};
pia=function(a,b){this.g=a;this.o=b;this.bb=null;P.o&&io().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}Jn.M=c};
qia=function(a,b,c,d){if(P.g()){var e=b.uo;e&&jda(Fm(),e)}e=null;null!=a.g&&!P.g()&&(e=new zB(1E3,a.g,a.o));var f=vea(b);null!=f&&uea(b)&&(a.o.da=f);f=8E3;!P.g()&&Hm(Fm(),41351074)?f=5E3:!P.g()&&Hm(Fm(),41351075)&&(f=2E3);(new tB(a.o,new Uha,a.g,e,new yB(f))).fetch(b,(0,g.A)(function(a){a instanceof rq?c(a):pq(a,c,d)},a),d)};
g.BB=function(){this.g=[];this.o=[]};
CB=function(a){g.fb(a.g)&&(a.g=a.o,a.g.reverse(),a.o=[])};
g.DB=function(a,b){a.o.push(b)};
g.EB=function(a){CB(a);return a.g.pop()};
FB=function(a){CB(a);return g.Ya(a.g)};
ria=function(a){this.ib=a;this.g=new g.BB;this.Jf=!1;this.bb=null};
HB=function(a,b,c,d){var e=(0,g.A)(function(a){c(a);g.EB(this.g);this.Jf=!1;GB(this)},a),f=(0,g.A)(function(a){d(a);
g.EB(this.g);this.Jf=!1;GB(this)},a);
g.DB(a.g,(0,g.A)(function(){qia(this.ib,b,e,f)},a));
GB(a)};
GB=function(a){if(!a.Jf){var b=FB(a.g);null!=b&&(a.Jf=!0,b())}};
IB=function(a,b,c){g.xf.call(this);this.ib=new ria(new pia(b,c));this.A=a;this.o=b;this.g=!0;this.B=c;this.bb=null};
sia=function(a,b,c){if(a.g){var d=null!=c?c:{};tga(Qw.getInstance(),b.g);HB(a.ib,b,(0,g.A)(function(a){JB(this,a,d)},a),(0,g.A)(function(a){KB(this,a,d)},a))}};
dha=function(a,b,c){if(!a.g){var d=null!=c?c:{};HB(a.ib,b,(0,g.A)(function(a){JB(this,a,d)},a),(0,g.A)(function(a){KB(this,a,d)},a))}};
JB=function(a,b,c){if(a.g)if(b instanceof rq)b=new LB(b.uf,a,a.A.qv),b.zg(a.o),a.dispatchEvent(new $z(b,c));else try{var d=Sy(a.A,b);d.zg(a.o);a.dispatchEvent(new $z(d,c))}catch(e){KB(a,Ym(MB,null),c)}else b instanceof rq?KB(a,Ym(tia,null,"Unsupported ad format."),c):(d=new xm("adsLoaderSdkAdLoaded"),d.F=b,d.D=c,a.dispatchEvent(d))};
KB=function(a,b,c){a.g?("always"==P.B&&null!=a.o&&a.o.sd(xA()),a.dispatchEvent(new rm(b,c))):(c=new xm("adsLoaderSdkAdError"),c.g=b,a.dispatchEvent(c))};
NB=function(a,b){this.M=a;this.W=new Fl;this.P=15E3;this.F=g.ne("SPAN");uy.call(this,a[0],b);this.g.appendChild(this.F)};
OB=function(a,b){uy.call(this,a[0],b);this.B=a;g.R(this.g,"ima-container-stack")};
PB=function(a){yy.call(this,a);this.C=!1;this.o=this.A=null;this.G=!1};
QB=function(a){var b=a.ads[0].getExtension("AdSense"),c=b.C,b=b.D;a={text:null!=c?c:a.J.C,url:null!=b?b:a.J.D};null==a.text&&(c=Aa("Ads by Google"),c=Ho(""+c),a.text=c);return a};
RB=function(a){return a.yb()&&zs(a.ma())};
uia=function(a){var b=SB(a);b.rba=a.B;Ln(In.getInstance(),37,b)};
SB=function(a){var b=[],c=[];(0,g.H)(a.A,function(a){b.push(a.Eb()+"x"+a.getHeight());c.push(a.jd())},a);
var d={};d.pid=Qw.getInstance().o;d.fsmode=null!=a.o;0<b.length&&(d.cz=b.join(","));0<c.length&&(d.ct=c.join(","));d.vm=a.Yc;return d};
TB=function(a,b){if(a.o){a.Om(new g.Te("close"));var c={};c.pid=Qw.getInstance().o;c.evt=b;Ln(In.getInstance(),35,c)}};
UB=function(a,b){g.M.call(this);this.B=a;this.g=-1;this.A=b};
VB=function(a,b){UB.call(this,a,b)};
LB=function(a,b,c){pu.call(this,[]);this.uf=a;this.Db=new Fl;this.Zb=this.sb=null;this.qv=c;this.bk=new g.BB;this.Hd=null;this.ib=b;this.bp=this.gm=!1;this.Yh=null;this.Yf=0;this.Td=this.Ud=-1;this.gd=null;this.Xr=0;this.bb=null;this.ak=!1};
wia=function(a,b){if(null!==a.Qa){var c=1;a.Yf=0;var d=new ox;(0,g.H)(b,function(a){if((0,window.isNaN)(a))throw Ym(Zy,null,"timeOffset",String(a));if(-1!=a&&-1>=a){var b=this.uf;if((0,window.isNaN)(a)||!g.oa(a))throw Error("Incorrect time offset.");Hl(b.g,a)&&b.g.remove(a)}else if(b=g.oa(a)&&!(0,window.isNaN)(a)?this.uf.g.get(a,[]):[],!g.fb(b)){this.Yf+=b.length;var e=0==a||-1==a?a:c++;b=new By(b,a,e,this.ib,this.Qa,this.Va,this.Gd);if(d.contains(a))throw Ym(via,null,"Multiple ad breaks cannot share same ad play time.");
this.Db.set(g.xa(b),b);qx(d,a)}},a)}};
xia=function(a,b){a.Yh=g.Ya(b);(0,g.Ek)(b,function(a){if(-1==a)return this.Yh=a,!0;this.Yh=this.Yh<a?a:this.Yh;return!1},a)};
YB=function(a,b){a.ak=!1;a.Hi(b);0==b.Ec?a.Qf():(-1==b.Ec?(WB(a)||!P.g()&&a.gm)&&XB(a):gz(a.Zb),a.Hd=null)};
yia=function(a){if(null!=a.Zb){ZB(a);var b=a.Xa();em(b,a.Zb,["requestAds","playAds","contentTrackingError","discardAdBreak"],a.handleEvent,!1,a);em(b,a.Zb,"adBreakReady",a.aM,!1,a);em(b,a.ib,"contentComplete",a.bN,!1,a);a.ib.g=!1}};
ZB=function(a){null!=a.gc&&(a.gc.dispose(),a.gc=null);a.gm=!1;null!=a.Zb&&a.Zb.Wc()};
$B=function(a){if(null==a.Hd){var b=g.EB(a.bk);if(null!=b){a.Hd=b;var c=a.Db.get(a.Hd.g);if(null!=c)if(b=b.type,"requestAds"!=b&&"playAds"!=b)a.Hd=null,$B(a);else if(null!=a.gd&&a.gd.o(c))a.Hd=null,$B(a);else if("requestAds"==b)a.ak?(a.bk.isEmpty()||"playAds"!=FB(a.bk).type||g.EB(a.bk),YB(a,c)):0==c.Ec&&a.Tf()||aC(a,c);else{if("playAds"==b)if(a.ak)YB(a,c);else if(null!=a.sb&&a.sb.wb()&&a.Hi(a.sb),a.sb=c,a.sb.setVolume(a.volume),Cy(a.sb,a.Ud,a.Td,a.Yc),a.sb.O&&a.Hd.A<a.Xr){c=a.sb;if(c.o<c.A.length){b=
c.A[c.o];Ly(c);try{c.F=new g.dm(c),c.g=My(c,b,c.F)}catch(e){c.o++,Qy(c)}}var c=a.Zb,b=a.Xr,d=new ez(a.sb);d.g=b;d.o=!0;Bb(c.g,d,fz);a.la("contentResumeRequested");a.Hd=null;$B(a)}else a.sb.start()}else a.Hd=null,$B(a)}}};
aC=function(a,b){var c=a.Xa();em(c,b,iy,a.dispatchEvent,!1,a);em(c,b,"adError",a.Wv,!1,a);em(c,b,"allAdsCompleted",a.Zy,!1,a);em(c,b,"contentPauseRequested",a.mh,!1,a);em(c,b,"contentResumeRequested",a.Qf,!1,a);em(c,b,"userClose",a.ii,!1,a);em(c,b,"autoClose",a.hi,!1,a);em(c,b,"adBreakInitialized",a.az,!1,a);b.init(a.Ud,a.Td,a.Yc)};
XB=function(a){if(!a.bp){a.bp=!0;a.ib.g=!0;try{Ln(In.getInstance(),44,{cmpl:!0})}catch(b){}a.la("allAdsCompleted");-1==a.Yh&&bC(a)}};
bC=function(a){Hm(Fm(),420706009)||Jn.clear();null!=a.Gd&&(a=a.Gd.Nh(),null!=a&&oA(a,Jn.g))};
WB=function(a){return 0==a.Db.fb().length};
cC=function(a){return null!=a.sb?a.sb:null!=a.Hd?a.Db.get(a.Hd.g):null};
zia=function(){this.qv=new oha;this.bb=null};
Sy=function(a,b){if(g.fb(b))throw Error("Ads manager creation failure, no ads.");if(Aia(a,b)){var c=Bia(a,b);if(!g.fb(c))return new py(c)}c=ny(b);P.g()||(c=c&&null!=ks(b[0])?new my(0,c,b[0]):c);if(c)return c;throw Error("Ads manager creation failure, failed to determine ad type.");};
Bia=function(a,b){var c=[];(0,g.H)(b,function(a){var b=ny([a]);b&&a.Vb()&&g.ib(c,b)},a);
return c};
ny=function(a){var b=a[0];switch(dC(b)){case "overlay":return us(b)?new PB(a):new yy(a);case "video":return new rx(a);case "vpaid":return new Yx(a);case "flash_vpaid":return 2==P.F?new hw(a):new nw(a)}return null};
Aia=function(a,b){if(1==b.length)return!1;var c=dC(b[0]);return(0,g.Ek)(b,function(a){a=dC(a);return c!=a||"vpaid"==a||"flash_vpaid"==a?!0:!1},a)};
dC=function(a){var b=Nr(a)&&P.g(),b=0!=P.F||b;return null!=Es(a)&&b?"vpaid":ao&&null!=Fs(a)&&0!=P.F?"flash_vpaid":us(a)&&null==Es(a)&&ys(a,"nonlinear")?"overlay":ys(a,"linear")?"video":ys(a,"nonlinear")&&null==Es(a)?"overlay":null};
eC=function(a){g.xf.call(this);this.o=a;a=new yA(new hA);this.g=new IB(new zia,a,Jn);this.g.X("adsManagerLoaded",this.dispatchEvent,!1,this);this.g.X("adError",this.dispatchEvent,!1,this);this.g.X("adLoadError",this.dispatchEvent,!1,this)};
fC=function(a,b,c){kda();var d="",e=wi(),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.Ne=om(b.g,a.o.D);b.Cs=a.o.M;sia(a.g,b,c)};
gC=function(a,b){this.o=new Kc(a);this.g=b?Baa:g.Ic};
hC=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};
iC=function(a,b){if(0==b)return a.g;if(1==b)return a.o;var c=Rd(a.g,a.A,b),d=Rd(a.A,a.B,b),e=Rd(a.B,a.o,b),c=Rd(c,d,b),d=Rd(d,e,b);return Rd(c,d,b)};
Cia=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++){var f=iC(a,c),l=(iC(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=iC(a,c);return c};
jC=function(a,b,c,d){this.B=a;this.C=b;this.g=this.A=a;this.D=c||0;this.F=d||2};
kC=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.dm(this);this.o=new g.kg;lg(this.o,250)};
mC=function(a,b,c){a.Wi=1;a.Xg=Xl(b.clone());a.ki=c;a.D=!0;lC(a,null)};
nC=function(a,b,c,d,e){a.Wi=1;a.Xg=Xl(b.clone());a.ki=null;a.D=c;e&&(a.AA=!1);lC(a,d)};
lC=function(a,b){a.al=(0,g.G)();oC(a);a.rh=a.Xg.clone();Wl(a.rh,"t",a.F);a.pl=0;a.ed=a.g.Dp(a.g.fl()?b:null);0<a.iq&&(a.Jn=new g.dk((0,g.A)(a.uB,a,a.ed),a.iq));a.B.X(a.ed,"readystatechange",a.LQ);var c=a.Sh?g.Wb(a.Sh):{};a.ki?(a.oo="POST",c["Content-Type"]="application/x-www-form-urlencoded",a.ed.send(a.rh,a.oo,a.ki,c)):(a.oo="GET",a.AA&&!g.ke&&(c.Connection="close"),a.ed.send(a.rh,a.oo,null,c));a.g.ff(1)};
vC=function(a,b,c){for(var d=!0;!a.Eh&&a.pl<c.length;){var e=Dia(a,c);if(e==pC){4==b&&(a.Th=4,qC(),d=!1);break}else if(e==rC){a.Th=4;qC();d=!1;break}else sC(a,e)}4==b&&0==c.length&&(a.Th=1,qC(),d=!1);a.kf=a.kf&&d;d||(tC(a),uC(a))};
Dia=function(a,b){var c=a.pl,d=b.indexOf("\n",c);if(-1==d)return pC;c=Number(b.substring(c,d));if((0,window.isNaN)(c))return rC;d+=1;if(d+c>b.length)return pC;var e=b.substr(d,c);a.pl=d+c;return e};
yC=function(a,b){a.al=(0,g.G)();oC(a);var c=b?window.location.hostname:"";a.rh=a.Xg.clone();g.Ul(a.rh,"DOMAIN",c);g.Ul(a.rh,"t",a.F);try{a.mf=new window.ActiveXObject("htmlfile")}catch(n){tC(a);a.Th=7;qC();uC(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 wC)k=wC[l];else if(l in xC)k=wC[l]=xC[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=wC[l]=k}e+=k}}d+='<script>document.domain="'+e+'"\x3c/script>'}d+="</body></html>";c=Od(pd("b/12014412"),d);a.mf.open();a.mf.write(g.Gd(c));a.mf.close();a.mf.parentWindow.m=(0,g.A)(a.OP,a);a.mf.parentWindow.d=(0,g.A)(a.Uz,a,!0);a.mf.parentWindow.rpcClose=(0,g.A)(a.Uz,a,!1);c=a.mf.createElement("DIV");a.mf.parentWindow.document.body.appendChild(c);d=Dd(a.rh.toString());d=Ha(Bd(d));d=Od(pd("b/12014412"),'<iframe src="'+d+'"></iframe>');c.innerHTML=
g.Gd(d);a.g.ff(1)};
oC=function(a){a.Vs=(0,g.G)()+a.C;zC(a,a.C)};
zC=function(a,b){if(null!=a.Mj)throw Error("WatchDog timer not null");a.Mj=AC((0,g.A)(a.fQ,a),b)};
BC=function(a){a.Mj&&(pa.clearTimeout(a.Mj),a.Mj=null)};
uC=function(a){a.g.mw()||a.Eh||a.g.An(a)};
tC=function(a){BC(a);g.Re(a.Jn);a.Jn=null;a.o.stop();km(a.B);if(a.ed){var b=a.ed;a.ed=null;b.abort();b.dispose()}a.mf&&(a.mf=null)};
sC=function(a,b){try{a.g.Nz(a,b),a.g.ff(4)}catch(c){}};
DC=function(a,b,c,d,e){if(0==d)c(!1);else{var f=e||0;d--;CC(a,b,function(e){e?c(!0):pa.setTimeout(function(){DC(a,b,c,d,f)},f)})}};
CC=function(a,b,c){var d=new window.Image;d.onload=function(){try{EC(d),c(!0)}catch(e){}};
d.onerror=function(){try{EC(d),c(!1)}catch(e){}};
d.onabort=function(){try{EC(d),c(!1)}catch(e){}};
d.ontimeout=function(){try{EC(d),c(!1)}catch(e){}};
pa.setTimeout(function(){if(d.ontimeout)d.ontimeout()},b);
d.src=a};
EC=function(a){a.onload=null;a.onerror=null;a.onabort=null;a.ontimeout=null};
FC=function(a){this.g=a;this.o=new gC(null,!0)};
HC=function(a){var b=GC(a.g,a.Sj,"/mail/images/cleardot.gif");Xl(b);DC(b.toString(),5E3,(0,g.A)(a.zF,a),3,2E3);a.ff(1)};
JC=function(a){var b=a.g.K;if(null!=b)qC(),b?(qC(),IC(a.g,a,!1)):(qC(),IC(a.g,a,!0));else if(a.ee=new kC(a,0,void 0,void 0,void 0),a.ee.Sh=a.fq,b=a.g,b=GC(b,b.fl()?a.qk:null,a.hq),qC(),!g.sc||g.lc(10))Wl(b,"TYPE","xmlhttp"),nC(a.ee,b,!1,a.qk,!1);else{Wl(b,"TYPE","html");var c=a.ee;a=!!a.qk;c.Wi=3;c.Xg=Xl(b.clone());yC(c,a)}};
KC=function(a,b,c,d){this.G=a||null;this.g=1;this.o=[];this.B=[];this.C=new gC(null,!0);this.J=b||null;this.K=null!=c?c:null;this.D=d||!1};
Eia=function(a,b){this.g=a;this.map=b;this.context=null};
LC=function(a){g.Te.call(this,"statevent",a)};
MC=function(a,b){g.Te.call(this,"timingevent",a);this.size=b};
NC=function(a){g.Te.call(this,"serverreachability",a)};
RC=function(a){OC(a);if(3==a.g){var b=a.Qk++,c=a.Am.clone();g.Ul(c,"SID",a.A);g.Ul(c,"RID",b);g.Ul(c,"TYPE","terminate");PC(a,c);b=new kC(a,0,a.A,b,void 0);b.Wi=2;b.Xg=Xl(c.clone());(new window.Image).src=b.Xg;b.al=(0,g.G)();oC(b)}QC(a)};
TC=function(a){a.VF(1,0);a.Am=GC(a,null,a.eq);SC(a)};
OC=function(a){a.Pg&&(a.Pg.abort(),a.Pg=null);a.zc&&(a.zc.cancel(),a.zc=null);a.hg&&(pa.clearTimeout(a.hg),a.hg=null);UC(a);a.Jd&&(a.Jd.cancel(),a.Jd=null);a.Qg&&(pa.clearTimeout(a.Qg),a.Qg=null)};
VC=function(a,b){if(0==a.g)throw Error("Invalid operation: sending map when state is closed");a.o.push(new Eia(a.WL++,b));2!=a.g&&3!=a.g||SC(a)};
SC=function(a){a.Jd||a.Qg||(a.Qg=AC((0,g.A)(a.Sz,a),0),a.gk=0)};
YC=function(a,b){if(1==a.g){if(!b){a.Qk=Math.floor(1E5*Math.random());var c=a.Qk++,d=new kC(a,0,"",c,void 0);d.Sh=null;var e=WC(a),f=a.Am.clone();g.Ul(f,"RID",c);a.G&&g.Ul(f,"CVER",a.G);PC(a,f);mC(d,f,e);a.Jd=d;a.g=2}}else 3==a.g&&(b?XC(a,b):0==a.o.length||a.Jd||XC(a))};
XC=function(a,b){if(b)if(6<a.Gh){a.o=a.B.concat(a.o);a.B.length=0;var c=a.Qk-1;var d=WC(a)}else c=b.G,d=b.ki;else c=a.Qk++,d=WC(a);var e=a.Am.clone();g.Ul(e,"SID",a.A);g.Ul(e,"RID",c);g.Ul(e,"AID",a.gj);PC(a,e);c=new kC(a,0,a.A,c,a.gk+1);c.Sh=null;c.setTimeout(Math.round(1E4)+Math.round(1E4*Math.random()));a.Jd=c;mC(c,e,d)};
PC=function(a,b){if(a.ld){var c=a.ld.Xv(a);c&&g.Ib(c,function(a,c){g.Ul(b,c,a)})}};
WC=function(a){var b=Math.min(a.o.length,1E3),c=["count="+b];if(6<a.Gh&&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.Gh?e:f-d;try{g.Ib(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("&")};
ZC=function(a){a.zc||a.hg||(a.F=1,a.hg=AC((0,g.A)(a.Rz,a),0),a.Bi=0)};
aD=function(a){if(a.zc||a.hg||3<=a.Bi)return!1;a.F++;a.hg=AC((0,g.A)(a.Rz,a),$C(a,a.Bi));a.Bi++;return!0};
IC=function(a,b,c){a.no=c;a.Ve=b.qg;a.D||TC(a)};
UC=function(a){null!=a.Ih&&(pa.clearTimeout(a.Ih),a.Ih=null)};
$C=function(a,b){var c=5E3+Math.floor(1E4*Math.random());a.isActive()||(c*=2);return c*b};
cD=function(a,b){if(2==b||9==b){var c=null;a.ld&&(c=null);var d=(0,g.A)(a.yR,a);c||(c=new g.Ll("//www.google.com/images/cleardot.gif"),Xl(c));CC(c.toString(),1E4,d)}else qC();bD(a,b)};
bD=function(a,b){a.g=0;a.ld&&a.ld.Xu(a,b);QC(a);OC(a)};
QC=function(a){a.g=0;a.Ve=-1;if(a.ld)if(0==a.B.length&&0==a.o.length)a.ld.vp(a);else{var b=g.ob(a.B),c=g.ob(a.o);a.B.length=0;a.o.length=0;a.ld.vp(a,b,c)}};
GC=function(a,b,c){var d=g.Yl(c);if(""!=d.o)b&&g.Nl(d,b+"."+d.o),g.Ol(d,d.C);else var e=window.location,d=Zca(e.protocol,b?b+"."+e.hostname:e.hostname,e.port,c);a.dk&&g.Ib(a.dk,function(a,b){g.Ul(d,b,a)});
g.Ul(d,"VER",a.Gh);PC(a,d);return d};
AC=function(a,b){if(!g.ua(a))throw Error("Fn must not be null and must be a function");return pa.setTimeout(function(){a()},b)};
qC=function(){dD.dispatchEvent(new LC(dD))};
eD=function(){};
g.fD=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.Ng(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.gD=function(a){g.M.call(this);this.Ld=1;this.A=[];this.B=0;this.g=[];this.o={};this.C=!!a};
Fia=function(a,b,c){g.Mf(function(){a.apply(b,c)})};
g.hD=function(a){this.g=a};
iD=function(a){this.g=a};
jD=function(a){this.data=a};
kD=function(a){return!g.t(a)||a instanceof jD?a:new jD(a)};
lD=function(a){this.g=a};
g.mD=function(a){var b=a.creation;a=a.expiration;return!!a&&a<(0,g.G)()||!!b&&b>(0,g.G)()};
g.nD=function(a){this.g=a};
Gia=function(){};
oD=function(){};
pD=function(a){this.g=a};
qD=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.g=a};
rD=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.g=a};
sD=function(a,b){this.o=a;this.g=b+"::"};
g.tD=function(a){var b=new qD;return b.isAvailable()?a?new sD(b,a):b:null};
uD=function(a,b){this.Ld=a;this.g=b};
vD=function(a){this.g=[];if(a)a:{if(a instanceof vD){var b=a.Cb();a=a.fb();if(0>=this.Nc()){for(var c=this.g,d=0;d<b.length;d++)c.push(new uD(b[d],a[d]));break a}}else b=g.Ob(a),a=g.Nb(a);for(d=0;d<b.length;d++)wD(this,b[d],a[d])}};
wD=function(a,b,c){var d=a.g;d.push(new uD(b,c));b=d.length-1;a=a.g;for(c=a[b];0<b;)if(d=b-1>>1,a[d].Ld>c.Ld)a[b]=a[d],b=d;else break;a[b]=c};
xD=function(){vD.call(this)};
yD=function(a,b){this.C=[];this.O=a;this.M=b||null;this.B=this.g=!1;this.A=void 0;this.J=this.P=this.F=!1;this.D=0;this.o=null;this.G=0};
AD=function(a,b,c){a.g=!0;a.A=c;a.B=!b;zD(a)};
CD=function(a){if(a.g){if(!a.J)throw new BD;a.J=!1}};
ED=function(a,b,c){DD(a,b,null,c)};
DD=function(a,b,c,d){a.C.push([b,c,d]);a.g&&zD(a)};
FD=function(a){return(0,g.Ek)(a.C,function(a){return g.ua(a[1])})};
zD=function(a){if(a.D&&a.g&&FD(a)){var b=a.D,c=GD[b];c&&(pa.clearTimeout(c.Aa),delete GD[b]);a.D=0}a.o&&(a.o.G--,delete a.o);for(var b=a.A,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.M,b);g.t(l)&&(a.B=a.B&&(l==b||a.isError(l)),a.A=b=l);if(Pf(b)||"function"===typeof pa.Promise&&b instanceof pa.Promise)d=!0,a.F=!0}catch(m){b=m,a.B=!0,FD(a)||(c=!0)}}a.A=b;d&&(l=(0,g.A)(a.K,a,!0),d=(0,g.A)(a.K,a,!1),b instanceof yD?(DD(b,l,d),b.P=!0):b.then(l,d));
c&&(b=new HD(b),GD[b.Aa]=b,a.D=b.Aa)};
BD=function(){Ca.call(this)};
ID=function(){Ca.call(this)};
HD=function(a){this.Aa=pa.setTimeout((0,g.A)(this.o,this),0);this.g=a};
JD=function(a){Sc(this,a,Hia,null)};
KD=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.MD=function(a){KD(g.LD,arguments)};
g.ND=function(a,b){return a in g.LD?g.LD[a]:b};
g.T=function(a,b,c){b=void 0===b?{}:b;a=(a=a in OD?OD[a]:c)||"";c={};for(var d in b)c.Dn=d,a=a.replace(new RegExp("\\$"+c.Dn,"gi"),function(a){return function(){return b[a.Dn]}}(c)),c={Dn:c.Dn};
return a};
g.PD=function(a){KD(OD,arguments)};
g.QD=function(){g.PD({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.SD=function(){return g.RD?{H:"div",ea:["ytp-icon","ytp-icon-cast-desktop-on"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{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.TD=function(){return g.RD?{H:"div",ea:["ytp-icon","ytp-icon-chevron-back"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},L:[{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.UD=function(){return g.RD?{H:"div",ea:["ytp-icon","ytp-icon-chevron-forward"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},L:[{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"}}]}};
VD=function(){return g.RD?{H:"div",ea:["ytp-icon","ytp-icon-clip-clear"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},L:[{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"}}]}};
WD=function(){return g.RD?{H:"div",ea:["ytp-icon","ytp-icon-clip-end"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},L:[{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"}}]}};
XD=function(){return g.RD?{H:"div",ea:["ytp-icon","ytp-icon-clip-start"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},L:[{H:"path",Pa:!0,R:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
g.YD=function(){return g.RD?{H:"div",ea:["ytp-icon","ytp-icon-close"]}:{H:"svg",R:{height:"100%",viewBox:"0 0 24 24",width:"100%"},L:[{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"}}]}};
ZD=function(){return g.RD?{H:"div",ea:["ytp-icon","ytp-icon-closed-captioning"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{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"}}]}};
$D=function(){return g.RD?{H:"div",ea:["ytp-icon","ytp-icon-forward-five-seconds"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"path",Pa:!0,N:"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"}}]}};
aE=function(){return g.RD?{H:"div",ea:["ytp-icon","ytp-icon-link"]}:{H:"svg",R:{height:"100%",viewBox:"0 0 36 36",width:"100%"},L:[{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"}}]}};
bE=function(){return g.RD?{H:"div",ea:["ytp-icon","ytp-icon-next"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"path",Pa:!0,N:"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.cE=function(){return g.RD?{H:"div",ea:["ytp-icon","ytp-icon-notifications-active"]}:{H:"svg",R:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},L:[{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"}}]}};
g.dE=function(){return g.RD?{H:"div",ea:["ytp-icon","ytp-icon-notifications-none"]}:{H:"svg",R:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},L:[{H:"path",R:{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2zm6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2zm-2 1H8v-6c0-2.48 1.51-4.5 4-4.5s4 2.02 4 4.5v6z"}}]}};
eE=function(){return g.RD?{H:"div",ea:["ytp-icon","ytp-icon-pause"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"path",Pa:!0,N:"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"}}]}};
fE=function(){return g.RD?{H:"div",ea:["ytp-icon","ytp-icon-play"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"path",Pa:!0,N:"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"}}]}};
gE=function(){return g.RD?{H:"div",ea:["ytp-icon","ytp-icon-prev"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"path",Pa:!0,N:"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"}}]}};
hE=function(){return g.RD?{H:"div",ea:["ytp-icon","ytp-icon-replay"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"path",Pa:!0,N:"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"}}]}};
iE=function(){return g.RD?{H:"div",ea:["ytp-icon","ytp-icon-rewind-five-seconds"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"path",Pa:!0,N:"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.jE=function(){return g.RD?{H:"div",ea:["ytp-icon","ytp-icon-settings"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{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"}}]}};
kE=function(){return g.RD?{H:"div",ea:["ytp-icon","ytp-icon-stop"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"path",Pa:!0,N:"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"}}]}};
lE=function(){return g.RD?{H:"div",ea:["ytp-icon","ytp-icon-volume-high"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{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"}}]}};
mE=function(){return g.RD?{H:"div",ea:["ytp-icon","ytp-icon-volume-low"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{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"}}]}};
nE=function(){return g.RD?{H:"div",ea:["ytp-icon","ytp-icon-volume-muted"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"path",Pa:!0,N:"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"}}]}};
pE=function(a){a=a.split("");oE.hc(a,2);oE.Y8(a,55);oE.io(a,45);oE.hc(a,3);oE.io(a,14);return a.join("")};
g.qE=function(a,b){var c=g.x("yt.logging.errors.log");c?c(a,b,void 0,void 0,void 0):(c=g.ND("ERRORS",[]),c.push([a,b,void 0,void 0,void 0]),g.MD("ERRORS",c))};
rE=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){g.qE(b)}}:a};
Iia=function(){if(!sE)return null;var a=sE();return"open"in a?a:null};
g.tE=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.uE=function(a){window.clearInterval(a)};
g.vE=function(a){window.clearTimeout(a)};
g.wE=function(a,b){g.ua(a)&&(a=rE(a));return window.setInterval(a,b)};
g.xE=function(a,b){g.ua(a)&&(a=rE(a));return window.setTimeout(a,b)};
g.yE=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=Ga(e[0]||""),e=Ga(e[1]||"");f in b?g.sa(b[f])?pb(b[f],e):b[f]=[b[f],e]:b[f]=e}}return b};
g.zE=function(a){"?"==a.charAt(0)&&(a=a.substr(1));return g.yE(a)};
AE=function(a,b,c){var d=a.split("#",2);a=d[0];var d=1<d.length?"#"+d[1]:"",e=a.split("?",2);a=e[0];var e=g.zE(e[1]||""),f;for(f in b)if(c||!Qb(e,f))e[f]=b[f];return g.Dg(a,e)+d};
g.BE=function(a,b){return AE(a,b||{},!1)};
CE=function(a){var b=[];g.Ib(a,function(a,d){var c=g.Fa(d),f;g.sa(a)?f=a:f=[a];(0,g.H)(f,function(a){""==a?b.push(c):b.push(c+"="+g.Fa(a))})});
return b.join("&")};
DE=function(){if(!a)var a=window.document.location.href;a=g.sg(a)[1]||null;return null!==a&&"https"==a};
EE=function(a){if(!b)var b=window.location.href;var c=g.sg(a)[1]||null,d=g.ug(a);c&&d?(a=g.sg(a),b=g.sg(b),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?g.ug(b)==d&&g.vg(b)==g.vg(a):!0;return a};
g.FE=function(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),g.zE(1<a.length?a[1]:a[0])):{}};
GE=function(a){a=a.split(",");return a=a.map(function(a){return g.zE(a)})};
g.HE=function(a,b){return AE(a,b||{},!0)};
Jia=function(a,b){b=void 0===b?{}:b;var c=EE(a),d;for(d in IE){var e=g.ND(IE[d]),f;if((f=e)&&!(f=c)){var k=a;f=d;var l=g.ND("CORS_HEADER_WHITELIST")||{};f=(k=g.ug(k))?(l=l[k])?g.eb(l,f):!1:!0}f&&(b[d]=e)}return b};
Kia=function(a,b){var c=g.ND("XSRF_FIELD_NAME",void 0),d;b.headers&&(d=b.headers["Content-Type"]);return!b.U0&&(!g.ug(a)||b.withCredentials||g.ug(a)==window.document.location.hostname)&&"POST"==b.method&&(!d||"application/x-www-form-urlencoded"==d)&&!(b.Qb&&b.Qb[c])};
g.KE=function(a,b){var c=b.format||"JSON";b.W0&&(a=window.document.location.protocol+"//"+window.document.location.hostname+(window.document.location.port?":"+window.document.location.port:"")+a);var d=g.ND("XSRF_FIELD_NAME",void 0),e=g.ND("XSRF_TOKEN",void 0),f=b.Xc;f&&(f[d]&&delete f[d],a=g.HE(a,f));var k=b.postBody||"",f=b.Qb;Kia(a,b)&&(f||(f={}),f[d]=e);f&&g.u(k)&&(d=g.zE(k),g.ac(d,f),k=b.gA&&"JSON"==b.gA?JSON.stringify(d):g.Bg(d));var l=!1,m,n=JE(a,function(a){if(!l){l=!0;m&&g.vE(m);var d=g.tE(a),
e=null;if(d||400<=a.status&&500>a.status)e=Lia(c,a,b.T0);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}var e=e||{},f=b.context||pa;d?b.Mb&&b.Mb.call(f,a,e):b.onError&&b.onError.call(f,a,e);b.zd&&b.zd.call(f,a,e)}},b.method,k,b.headers,b.responseType,b.withCredentials);
b.dd&&0<b.timeout&&(m=g.xE(function(){l||(l=!0,n.abort(),g.vE(m),b.dd.call(b.context||pa,n))},b.timeout));
return n};
Lia=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)?Mia(b):null)d={},(0,g.H)(b.getElementsByTagName("*"),function(a){d[a.tagName]=Nia(a)})}c&&LE(d);
return d};
LE=function(a){if(g.va(a))for(var b in a)"html_content"==b||Ea(b,"_html")?a[b]=Od(pd("HTML that is escaped and sanitized server-side and passed through yt.net.ajax"),a[b]):LE(a[b])};
Mia=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null};
Nia=function(a){var b="";(0,g.H)(a.childNodes,function(a){b+=a.nodeValue});
return b};
g.ME=function(a,b){b.method="POST";b.Qb||(b.Qb={});g.KE(a,b)};
JE=function(a,b,c,d,e,f,k){function l(){4==(m&&"readyState"in m?m.readyState:0)&&b&&rE(b)(m)}
c=void 0===c?"GET":c;d=void 0===d?"":d;var m=Iia();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=Jia(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};
OE=function(){return NE("android")&&NE("chrome")&&!(NE("trident/")||NE("edge/"))};
g.PE=function(){return NE("cobalt")};
QE=function(){return NE("(ps3; leanback shell)")||NE("ps3")&&g.PE()};
RE=function(){return NE("(ps4; leanback shell)")||NE("ps4")&&g.PE()};
SE=function(){return g.PE()&&(NE("ps4 vr")||NE("ps4 pro vr"))};
TE=function(){var a=/WebKit\/([0-9]+)/.exec(g.Gb);return!!(a&&600<=(0,window.parseInt)(a[1],10))};
VE=function(){return g.UE&&NE("crkey")};
WE=function(){return NE("nintendo wiiu")};
XE=function(){return NE("iemobile")||NE("windows phone")&&NE("edge")};
YE=function(){return g.mn&&NE("version/")};
NE=function(a){var b=g.Gb;return b?0<=b.toLowerCase().indexOf(a):!1};
g.ZE=function(a,b,c){a&&(c&&!g.PE()?a&&(a=g.ne("IFRAME",{src:'javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"',style:"display:none"}),g.Zd(a).body.appendChild(a)):g.ND("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)?JE(a,b):Oia(a,b))};
Oia=function(a,b){var c=new window.Image,d=""+Pia++;$E[d]=c;c.onload=c.onerror=function(){b&&$E[d]&&b();delete $E[d]};
c.src=a};
g.aF=function(a){return g.ND("EXPERIMENT_FLAGS",{})[a]};
cF=function(a,b){var c=g.Wb(b);return new g.Rf(function(b,e){c.Mb=function(a){g.tE(a)?b(a):e(new bF("Request failed, status="+a.status,"net.badstatus",a))};
c.onError=function(a){e(new bF("Unknown request error","net.unknown",a))};
c.dd=function(a){e(new bF("Request timed out","net.timeout",a))};
g.KE(a,c)})};
bF=function(a,b,c){Ca.call(this,a+", errorCode="+b);this.errorCode=b;this.g=c;this.name="PromiseAjaxError"};
dF=function(a,b,c,d){function e(d,l,m){return g.cg(d,function(d){return 0>=l||403===d.g.status?Wf(new bF("Request retried too many times","net.retryexhausted",d.g)):f(m).then(function(){return e(cF(a,b),l-1,Math.pow(2,c-l+1)*m)})})}
function f(a){return new g.Rf(function(b){(0,window.setTimeout)(b,a)})}
return e(cF(a,b),c-1,d)};
eF=function(a){Ca.call(this,a.message||a.description||a.name);this.o=a instanceof Qia&&a.errorCode==Ria.TIMEOUT;this.A=a instanceof hg};
fF=function(){Ca.call(this,"Biscotti ID is missing from server")};
gF=function(a,b){this.o=a;this.g=b};
Sia=function(){hF||(hF=g.cg(cF("//googleads.g.doubleclick.net/pagead/id",iF).then(jF),function(a){return kF(2,a)}));
return hF};
jF=function(a){a=a.responseText;if(!g.Da(a,")]}'"))throw new fF;a=JSON.parse(a.substr(4));if((g.ND("EXP_HTML5_SERVERSIDE_IGNORE_BISCOTTI_ID_ON_RETRY",!1)||g.aF("html5_serverside_ignore_biscotti_id_on_retry"))&&1<(a.type||1))throw new fF;a=a.id;lF(a);hF=new gF(a);mF(18E5,2);return a};
kF=function(a,b){var c=new eF(b);lF("");hF=new gF(void 0,c);0<a&&mF(12E4,a-1);throw c;};
mF=function(a,b){g.xE(function(){g.cg(cF("//googleads.g.doubleclick.net/pagead/id",iF).then(jF,function(a){return kF(b,a)}),g.z)},a)};
lF=function(a){g.v("yt.ads.biscotti.lastId_",a,void 0)};
nF=function(){try{var a=g.x("yt.ads.biscotti.getId_");return a?a():Sia()}catch(b){return Wf(b)}};
g.pF=function(a){return oF[a]||(oF[a]=String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()}))};
g.qF=function(a,b){return a?a.dataset?a.dataset[g.pF(b)]:a.getAttribute("data-"+b):null};
g.rF=function(a,b,c){a&&(a.dataset?a.dataset[g.pF(b)]=String(c):a.setAttribute("data-"+b,c))};
sF=function(a,b){var c;(0,g.Ek)(a,function(a){c=b[a];return!!c});
return c};
uF=function(a,b){if(a in b)return b[a];var c=tF+a.charAt(0).toUpperCase()+a.substr(1);if(c in b)return b[c]};
vF=function(){return!!sF(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],window.document)};
g.wF=function(){var a=sF(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],window.document);return a?a:null};
xF=function(a){var b;vF()?g.wF()==a&&(b=window.document):b=a;b&&(a=sF(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))&&a.call(b)};
Tia=function(){var a=window.document;return g.$a(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})};
yF=function(a){return g.$a(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})};
zF=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 Uia||(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}};
AF=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}};
Via=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 Rb(BF,function(e){return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&e[4]==!!d})};
g.DF=function(a,b,c,d){d=void 0===d?!1:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=Via(a,b,c,d);if(e)return e;var e=++CF.count+"",f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in window.document);var k=f?function(d){d=new zF(d);if(!g.Ke(d.relatedTarget,function(b){return b==a},!0))return d.currentTarget=a,d.type=b,c.call(a,d)}:function(b){b=new zF(b);
b.currentTarget=a;return c.call(a,b)};
k=rE(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);BF[e]=[a,b,c,k,d];return e};
g.EF=function(a){a&&("string"==typeof a&&(a=[a]),(0,g.H)(a,function(a){if(a in BF){var b=BF[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 BF[a]}}))};
g.FF=function(a){a=a||window.event;a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a};
g.GF=function(a){a=a||window.event;return a.keyCode?a.keyCode:a.which};
HF=function(a){a=a||window.event;var b=a.pageX,c=a.pageY;window.document.body&&window.document.documentElement&&(g.oa(b)||(b=a.clientX+window.document.body.scrollLeft+window.document.documentElement.scrollLeft),g.oa(c)||(c=a.clientY+window.document.body.scrollTop+window.document.documentElement.scrollTop));return new g.Td(b,c)};
IF=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};
JF=function(a){a=a||window.event;return a.path&&a.path.length?a.path[0]:g.FF(a)};
g.KF=function(a){a=a||window.event;return!1===a.returnValue||a.ix&&a.ix()};
g.LF=function(a,b,c){var d;return d=g.DF(a,b,function(){g.EF(d);c.apply(a,arguments)},!1)};
g.MF=function(a){a=a||window.event;a.returnValue=!1;a.preventDefault&&a.preventDefault()};
g.NF=function(a){this.o=a||window;this.g=[]};
g.OF=function(a){g.EF(a.g);a.g.length=0};
PF=function(a){g.M.call(this);this.g=[];this.o=a};
QF=function(a){for(;a.g.length;){var b=a.g.pop();b.target.removeEventListener(b.name,b.ig,!1)}};
g.RF=function(){g.M.call(this);this.ba=new g.gD;g.N(this,this.ba)};
g.TF=function(a,b,c,d){g.RF.call(this);this.A=!!b;this.D=a;this.J=c||a;this.G=!!d;this.g=new PF(this);g.N(this,this.g);this.C=this.F=null;this.B=this.o=!1;b&&(g.ke&&a.setAttribute("draggable","true"),a.style.touchAction="none");SF(this)};
UF=function(a,b,c){a.g.T(a.J,b,c,void 0,!a.A)};
SF=function(a){a.C=null;a.F=null;UF(a,VF("over"),a.Kx);UF(a,"touchstart",a.kr);a.A&&UF(a,VF("down"),a.OL)};
WF=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};
VF=function(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a};
XF=function(a){a=a||{};this.url=a.url||"";this.urlV9As2=a.url_v9as2||"";this.args=a.args||g.Wb(Wia);this.assets=a.assets||{};this.attrs=a.attrs||g.Wb(Xia);this.params=a.params||g.Wb(Yia);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||{}};
Zia=function(a){a instanceof XF||(a=new XF(a));return a};
YF=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.ZE(c.data.follow_on_url)}};
g.ZF=function(a,b,c){this.o=a;this.B=b;this.A=c;this.g=void 0};
g.dG=function(a,b,c){var d=g.$F();if(d){var e=d.subscribe(a,function(){var d=arguments;var k=function(){g.aG[e]&&b.apply(c||window,d)};
try{bG[a]?k():g.xE(k,0)}catch(l){g.qE(l)}},c);
g.aG[e]=!0;g.cG[a]||(g.cG[a]=[]);g.cG[a].push(e);return e}return 0};
g.eG=function(a){var b=g.$F();b&&(g.oa(a)?a=[a]:g.u(a)&&(a=[(0,window.parseInt)(a,10)]),(0,g.H)(a,function(a){b.unsubscribeByKey(a);delete g.aG[a]}))};
g.$F=function(){return g.x("ytPubsubPubsubInstance")};
g.fG=function(a,b){var c=g.$F();return c?c.publish.apply(c,arguments):!1};
g.gG=function(a,b){var c=g.dG(a,function(a){b.apply(void 0,arguments);g.eG(c)},void 0)};
g.hG=function(a,b){bG[a]=!0;var c=g.$F();c&&c.publish.apply(c,arguments);bG[a]=!1};
g.nG=function(a,b){iG[a.endpoint]=b;if(a.jm){var c=a.jm;var d={};c.videoId?d.videoId=c.videoId:c.playlistId&&(d.playlistId=c.playlistId);jG[a.jm.token]=d;c=kG(a.endpoint,a.jm.token)}else c=kG(a.endpoint);c.push(a.fA);d=Number(g.aF("web_logging_max_batch")||0)||20;c.length>=d?lG():mG()};
lG=function(){g.vE(oG);if(!g.Tb(pG)){for(var a in pG){var b=qG[a];if(!b){var c=iG[a];if(!c)continue;b=new c;qG[a]=b}var c=void 0,d=a,e=b,f=$ia[d],k=rG[d]||{};rG[d]=k;b=Math.round((0,g.sG)());for(c in pG[d]){var l=e.o();l[f]=kG(d,c);k.dispatchedEventCount=k.dispatchedEventCount||0;k.dispatchedEventCount+=l[f].length;l.requestTimeMs=b;var m=jG[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 jG[c];e.A(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 pG[a]}g.Tb(pG)||mG()}};
mG=function(){g.vE(oG);oG=g.xE(lG,g.ND("LOGGING_BATCH_TIMEOUT",1E4))};
kG=function(a,b){b||(b="");pG[a]=pG[a]||{};pG[a][b]=pG[a][b]||[];return pG[a][b]};
uG=function(){if(null==g.x("_lact",window)){var a=(0,window.parseInt)(g.ND("LACT"),10),a=(0,window.isFinite)(a)?(0,g.G)()-Math.max(a,0):-1;g.v("_lact",a,window);g.v("_fact",a,window);-1==a&&tG();g.DF(window.document,"keydown",tG);g.DF(window.document,"keyup",tG);g.DF(window.document,"mousedown",tG);g.DF(window.document,"mouseup",tG);g.dG("page-mouse",tG);g.dG("page-scroll",tG);g.dG("page-resize",tG)}};
tG=function(){null==g.x("_lact",window)&&(uG(),g.x("_lact",window));var a=(0,g.G)();g.v("_lact",a,window);-1==g.x("_fact",window)&&g.v("_fact",a,window);g.fG("USER_ACTIVE")};
g.vG=function(){var a=g.x("_lact",window);return null==a?-1:Math.max((0,g.G)()-a,0)};
g.wG=function(a,b,c,d){var e={};e.eventTimeMs=Math.round(d||(0,g.sG)());e[a]=b;e.context={lastActivityMs:String(g.vG())};g.nG({endpoint:"log_event",fA:e,jm:void 0},c)};
xG=function(a){a={client:{hl:a.Qq,gl:a.Pq,clientName:a.Oq,clientVersion:a.innertubeContextClientVersion}};g.ND("DELEGATED_SESSION_ID")&&(a.user={onBehalfOfUser:g.ND("DELEGATED_SESSION_ID")});return a};
yG=function(){return{apiaryHost:g.ND("APIARY_HOST",void 0),hp:g.ND("APIARY_HOST_FIRSTPARTY",void 0),gapiHintOverride:!!g.ND("GAPI_HINT_OVERRIDE",void 0),gapiHintParams:g.ND("GAPI_HINT_PARAMS",void 0),innertubeApiKey:g.ND("INNERTUBE_API_KEY",void 0),innertubeApiVersion:g.ND("INNERTUBE_API_VERSION",void 0),Oq:g.ND("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientVersion:g.ND("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0),Qq:g.ND("INNERTUBE_CONTEXT_HL",void 0),Pq:g.ND("INNERTUBE_CONTEXT_GL",
void 0),xhrApiaryHost:g.ND("XHR_APIARY_HOST",void 0)||"",Zm:g.ND("INNERTUBE_HOST_OVERRIDE",void 0)||""}};
zG=function(a,b,c){c.context&&c.context.capabilities&&(c=c.context.capabilities,c.snapshot||c.golden)&&(a="vix");return"/youtubei/"+a+"/"+b};
g.AG=function(a){this.g=a||yG()};
g.BG=function(){return!!g.x("yt.scheduler.instance")};
g.CG=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.xE(a,c||0)};
g.DG=function(a){if(!(0,window.isNaN)(a)){var b=g.x("yt.scheduler.instance.cancelJob");b?b(a):g.vE(a)}};
EG=function(a){var b=g.x("yt.scheduler.instance.setPriorityThreshold");b&&b(a)};
GG=function(a,b){var c=Object.keys(a).join("");FG("info_"+c+"_"+b)||(a.clientActionNonce=b,g.wG("latencyActionInfo",a,g.AG))};
FG=function(a){HG[a]=HG[a]||{count:0};var b=HG[a];b.count++;b.time=(0,g.sG)();IG||(IG=g.CG(aja,0,5E3));if(10<b.count){if(11==b.count){b=Error("CSI data exceeded logging limit with key: "+a);a={name:g.ND("INNERTUBE_CONTEXT_CLIENT_NAME",1),version:g.ND("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0)};var c=window&&window.yterr||void 0||!1;if(b&&c&&!(5<=JG)){var c=b.stacktrace,d=b.columnNumber;var e=g.x("window.location.href");if(g.u(b))b={message:b,name:"Unknown error",lineNumber:"Not available",fileName:e,
stack:"Not available"};else{var f=!1;try{var k=b.lineNumber||b.line||"Not available"}catch(q){k="Not available",f=!0}try{var l=b.fileName||b.filename||b.sourceURL||pa.$googDebugFname||e}catch(q){l="Not available",f=!0}b=!f&&b.lineNumber&&b.fileName&&b.stack&&b.message&&b.name?b:{message:b.message||"Not available",name:b.name||"UnknownError",lineNumber:k,fileName:l,stack:b.stack||"Not available"}}c=c||b.stack;k=b.lineNumber.toString();(0,window.isNaN)(k)||(0,window.isNaN)(d)||(k=k+":"+d);if(!(KG[b.message]||
0<=c.indexOf("/YouTubeCenter.js")||0<=c.indexOf("/mytube.js"))){l=b.fileName;k={Xc:{a:"logerror",t:"jserror",type:b.name,msg:b.message.substr(0,1E3),line:k,level:"ERROR"},Qb:{url:g.ND("PAGE_NAME",window.location.href),file:l},method:"POST"};c&&(k.Qb.stack=c);for(var m in a)k.Qb["client."+m]=a[m];if(m=g.ND("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",void 0))for(var n in m)k.Qb[n]=m[n];g.KE("/error_204",k);KG[b.message]=!0;JG++}}}return!0}return!1};
aja=function(){var a=(0,g.sG)(),b;for(b in HG)6E4<a-HG[b].time&&delete HG[b];IG=0};
g.NG=function(a,b,c){var d=c&&0<c?c:0;c=d?(0,g.G)()+1E3*d:0;if((d=d?g.LG:MG)&&window.JSON){g.u(b)||(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}};
g.OG=function(a){if(!MG&&!g.LG||!window.JSON)return null;try{var b=MG.get(a)}catch(c){}if(!g.u(b))try{b=g.LG.get(a)}catch(c){}if(!g.u(b))return null;try{b=JSON.parse(b,void 0)}catch(c){}return b};
g.PG=function(a){try{MG&&MG.remove(a),g.LG&&g.LG.remove(a)}catch(b){}};
g.QG=function(){var a=g.ND("client-screen-nonce",void 0);a||(a=g.ND("EVENT_ID",void 0));return a};
bja=function(a,b){this.action=a;this.params=b||{}};
RG=function(a){this.app=this.name=this.id="";this.type="REMOTE_CONTROL";this.avatar=this.username="";this.A=!1;this.capabilities=new ox;this.experiments=new ox;this.theme="u";new Fl;this.g=this.o="";if(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.theme=a.theme||"u";var b=a.capabilities||"";this.capabilities.clear();nx(this.capabilities,(0,g.ye)(b.split(","),g.ya(waa,cja)));b=a.experiments||
"";this.experiments.clear();nx(this.experiments,b.split(","));this.o=a.remoteControllerUrl||"";this.g=a.localChannelEncryptionKey||""}};
TG=function(a,b){g.M.call(this);this.o=new g.qt(this.C,0,this);g.N(this,this.o);this.A=this.g=0;if(g.ua(a))b&&(a=(0,g.A)(a,b));else if(a&&g.ua(a.handleEvent))a=(0,g.A)(a.handleEvent,a);else throw Error("Invalid listener argument");this.B=a;SG(this)};
SG=function(a){a.o.stop();a.g=5E3+2E4*Math.random()};
UG=function(a,b,c){this.M=a;this.D=b;this.A=new g.gD;this.o=new TG(this.eS,this);this.g=this.bb=null;this.K=!1;this.C=null;this.J="";this.G=this.B=0;this.F=[];this.O=c||!1};
dja=function(a){return{firstTestResults:[""],secondTestResults:!a.g.no,sessionId:a.g.A,arrayId:a.g.gj}};
VG=function(a,b){a.G=b||0;a.o.stop();a.g&&(3==a.g.g&&YC(a.g),RC(a.g));a.G=0};
WG=function(a){return!!a.g&&3==a.g.g};
eja=function(a,b){(a.D.loungeIdToken=b)||a.o.stop()};
fja=function(){var a=XG;YG();ZG.push(a);$G(ZG)};
g.aH=function(a,b){YG();var c=ZG,d=gja(a,String(b));g.fb(c)?hja(d):($G(c),(0,g.H)(c,function(a){a(d)}))};
YG=function(){ZG||(ZG=g.x("yt.mdx.remote.debug.handlers_")||[],g.v("yt.mdx.remote.debug.handlers_",ZG,void 0))};
hja=function(a){var b=(bH+1)%50;bH=b;cH[b]=a;dH||(dH=49==b)};
$G=function(a){var b=cH;if(b[0]){var c=bH,d=dH?c:-1;do{var d=(d+1)%50,e=b[d];(0,g.H)(a,function(a){a(e)})}while(d!=c);
cH=Array(50);bH=-1;dH=!1}};
gja=function(a,b){var c=((0,g.G)()-ija)/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("")};
eH=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.fH=function(a,b){return!!b&&(a.id==b||a.uuid==b)};
gH=function(a){return{name:a.name,screenId:a.id,loungeToken:a.token,dialId:a.uuid}};
jja=function(a){return new eH(a)};
hH=function(a){return g.sa(a)?(0,g.I)(a,jja):[]};
g.iH=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"};
jH=function(a){return g.sa(a)?"["+g.I(a,g.iH).join(",")+"]":"null"};
g.kH=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.lH=function(a,b){return g.$a(a,function(a){return a||b?!a!=!b?!1:a.id==b.id:!0})};
g.mH=function(a,b){return g.$a(a,function(a){return g.fH(a,b)})};
g.nH=function(a){g.RF.call(this);this.F=a;this.g=[]};
oH=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};
kja=function(a,b){var c=a.g.length!=b.length;a.g=(0,g.ye)(a.g,function(a){return!!g.lH(b,a)});
for(var d=0,e=b.length;d<e;d++)c=oH(a,b[d])||c;return c};
lja=function(a,b){var c=a.g.length;a.g=(0,g.ye)(a.g,function(a){return!(a||b?!a!=!b?0:a.id==b.id:1)});
return a.g.length<c};
pH=function(a,b,c,d){g.RF.call(this);this.F=a;this.D=b;this.B=c;this.C=d;this.A=0;this.g=null;this.o=window.NaN};
g.uH=function(){var a=qH(),b=g.rH();g.sH()&&Bb(a,b);a=mja(a);if(g.fb(a))try{tH.remove("remote_sid","/","youtube.com")}catch(c){}else try{tH.set("remote_sid",a.join(","),-1,"/","youtube.com")}catch(c){}};
qH=function(){var a=g.OG("yt-remote-connected-devices")||[];g.yb(a);return a};
mja=function(a){if(g.fb(a))return[];var b=a[0].indexOf("#"),c=-1==b?a[0]:a[0].substring(0,b);return(0,g.I)(a,function(a,b){return 0==b?a:a.substring(c.length)})};
vH=function(a){g.NG("yt-remote-connected-devices",a,86400)};
g.rH=function(){if(wH)return wH;var a=g.OG("yt-remote-device-id");a||(a=g.kH(),g.NG("yt-remote-device-id",a,31536E3));for(var b=qH(),c=1,d=a;g.eb(b,d);)c++,d=a+"#"+c;return wH=d};
xH=function(){return g.OG("yt-remote-session-browser-channel")};
g.sH=function(){return g.OG("yt-remote-session-screen-id")};
nja=function(a){5<a.length&&(a=a.slice(a.length-5));var b=(0,g.I)(yH(),function(a){return a.loungeToken}),c=(0,g.I)(a,function(a){return a.loungeToken});
(0,g.Ar)(c,function(a){return!g.eb(b,a)})&&zH();
g.NG("yt-remote-local-screens",a,31536E3)};
yH=function(){return g.OG("yt-remote-local-screens")||[]};
zH=function(){g.NG("yt-remote-lounge-token-expiration",!0,86400)};
oja=function(a,b){g.NG("yt-remote-session-browser-channel",a);g.NG("yt-remote-session-screen-id",b);var c=qH(),d=g.rH();g.eb(c,d)||c.push(d);vH(c);g.uH()};
g.AH=function(a){a||(g.PG("yt-remote-session-screen-id"),g.PG("yt-remote-session-video-id"));g.uH();a=qH();g.kb(a,g.rH());vH(a)};
g.CH=function(){if(!BH){var a=g.tD();a&&(BH=new g.hD(a))}return BH?!!BH.get("yt-remote-use-staging-server"):!1};
EH=function(a){g.nH.call(this,"LocalScreenService");this.A=a;this.o=window.NaN;DH(this);this.info("Initializing with "+jH(this.g))};
FH=function(a){if(a.g.length){var b=(0,g.I)(a.g,function(a){return a.id}),c=a.A.Qh("/pairing/get_lounge_token_batch");
a.A.ht(c,{screen_ids:b.join(",")},(0,g.A)(a.zG,a),(0,g.A)(a.yG,a))}};
DH=function(a){var b=hH(yH()),b=(0,g.ye)(b,function(a){return!a.uuid});
return kja(a,b)};
GH=function(a,b){nja((0,g.I)(a.g,gH));b&&zH()};
IH=function(a,b){g.RF.call(this);this.D=b;for(var c=g.OG("yt-remote-online-screen-ids")||"",c=c?c.split(","):[],d={},e=this.D(),f=0,k=e.length;f<k;++f){var l=e[f].id;d[l]=g.eb(c,l)}this.g=d;this.C=a;this.A=this.B=window.NaN;this.o=null;HH("Initialized with "+g.Lc(this.g))};
JH=function(a,b,c){var d=a.C.Qh("/pairing/get_screen_availability");a.C.ht(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))};
KH=function(a,b){a:if(g.Lb(b)!=g.Lb(a.g))var c=!1;else{c=g.Ob(b);for(var d=0,e=c.length;d<e;++d)if(!a.g[c[d]]){c=!1;break a}c=!0}c||(HH("Updated online screens: "+g.Lc(a.g)),a.g=b,a.Y("screenChange"));pja(a)};
LH=function(a){(0,window.isNaN)(a.A)||g.vE(a.A);a.A=g.xE((0,g.A)(a.hs,a),0<a.B&&a.B<(0,g.G)()?2E4:1E4)};
HH=function(a){g.aH("OnlineScreenService",a)};
MH=function(a){var b={};(0,g.H)(a.D(),function(a){a.token?b[a.token]=a.id:this.qc("Requesting availability of screen w/o lounge token.")});
return b};
pja=function(a){a=g.Ob(g.Jb(a.g,function(a){return a}));
g.yb(a);a.length?g.NG("yt-remote-online-screen-ids",a.join(","),60):g.PG("yt-remote-online-screen-ids")};
g.NH=function(a){g.nH.call(this,"ScreenService");this.D=a;this.o=this.A=null;this.B=[];this.C={};qja(this)};
PH=function(a,b,c,d,e,f){a.info("getAutomaticScreenByIds "+c+" / "+b);c||(c=a.C[b]);var k=a.Yd();if(k=(c?g.mH(k,c):null)||g.mH(k,b)){k.uuid=b;var l=OH(a,k);JH(a.o,l,function(a){e(a?l:null)})}else c?rja(a,c,(0,g.A)(function(a){var f=OH(this,new eH({name:d,
screenId:c,loungeToken:a,dialId:b||""}));JH(this.o,f,function(a){e(a?f:null)})},a),f):e(null)};
QH=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};
rja=function(a,b,c,d){a.info("requestLoungeToken_ for "+b);var e={Qb:{screen_ids:b},method:"POST",context:a,Mb: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.KE(a.D.Qh("/pairing/get_lounge_token_batch"),e)};
RH=function(a){a.g=a.A.Yd();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: "+jH(a.g))};
qja=function(a){SH(a);a.A=new EH(a.D);a.A.subscribe("screenChange",(0,g.A)(a.MG,a));RH(a);a.B=hH(g.OG("yt-remote-automatic-screen-cache")||[]);SH(a);a.info("Initializing automatic screens: "+jH(a.B));a.o=new IH(a.D,(0,g.A)(a.Yd,a,!0));a.o.subscribe("screenChange",(0,g.A)(function(){this.Y("onlineScreenChange")},a))};
OH=function(a,b){var c=a.get(b.id);c?(c.uuid=b.uuid,b=c):((c=g.mH(a.B,b.uuid))?(c.id=b.id,c.token=b.token,b=c):a.B.push(b),g.NG("yt-remote-automatic-screen-cache",(0,g.I)(a.B,gH)));SH(a);a.C[b.uuid]=b.id;g.NG("yt-remote-device-id-map",a.C,31536E3);return b};
SH=function(a){a.C=g.OG("yt-remote-device-id-map")||{}};
TH=function(a,b,c){g.RF.call(this);this.O=c;this.J=a;this.o=b;this.A=null};
UH=function(a,b){g.aH(a.O,b)};
WH=function(a,b){TH.call(this,a,b,"CastSession");this.g=null;this.B=0;this.D=(0,g.A)(this.nS,this);this.C=(0,g.A)(this.pQ,this);this.B=g.xE((0,g.A)(function(){VH(this,null)},this),12E4)};
sja=function(a){a.info("sendYoutubeMessage_: getMdxSessionStatus "+g.Lc(void 0));var b={type:"getMdxSessionStatus"};a.g?a.g.sendMessage("urn:x-cast:com.google.youtube.mdx",b,g.z,(0,g.A)(function(){UH(this,"Failed to send message: getMdxSessionStatus.")},a)):UH(a,"Sending yt message without session: "+g.Lc(b))};
VH=function(a,b){g.vE(a.B);if(b){if(a.info("onConnectedScreenId_: Received screenId: "+b),!a.A||a.A.id!=b){var c=(0,g.A)(a.Bn,a),d=(0,g.A)(a.ce,a);a.ew(b,c,d,5)}}else a.ce(Error("Waiting for session status timed out."))};
XH=function(a,b){TH.call(this,a,b,"DialSession");this.B=this.G=null;this.K="";this.C=null;this.F=g.z;this.D=window.NaN;this.M=(0,g.A)(this.qS,this);this.g=g.z};
YH=function(a){a.g=a.J.AB(a.K,a.o.label,a.o.friendlyName,(0,g.A)(function(a){this.g=g.z;this.Bn(a)},a),(0,g.A)(function(a){this.g=g.z;
this.ce(a)},a))};
ZH=function(a){var b={};b.pairingCode=a.K;if(a.C){var c=a.C.currentTime||0;b.v=a.C.videoId;b.t=c}g.CH()&&(b.env_useStageMdx=1);return g.Bg(b)};
$H=function(a,b){TH.call(this,a,b,"ManualSession");this.g=g.xE((0,g.A)(this.hj,this,null),150)};
g.aI=function(a,b){g.RF.call(this);this.o=a;this.D=b||"233637DE";this.g=null;this.C=!1;this.A=[];this.B=(0,g.A)(this.WO,this)};
bI=function(a,b){return b?g.$a(a.A,function(a){return g.fH(b,a.label)},a):null};
cI=function(a){g.aH("Controller",a)};
XG=function(a){window.chrome&&window.chrome.cast&&window.chrome.cast.logMessage&&window.chrome.cast.logMessage(a)};
dI=function(a){return a.C||!!a.A.length||!!a.g};
eI=function(a,b,c){b!=a.g&&(g.Re(a.g),(a.g=b)?(c?a.Y("yt-remote-cast2-receiver-resumed",b.o):a.Y("yt-remote-cast2-receiver-selected",b.o),b.subscribe("sessionScreen",(0,g.A)(a.Pz,a,b)),b.A?a.Y("yt-remote-cast2-session-change",b.A):c&&a.g.hj(null)):a.Y("yt-remote-cast2-session-change",null))};
fI=function(a){var b=a.o.zB(),c=a.g&&a.g.o;a=(0,g.I)(b,function(a){c&&g.fH(a,c.label)&&(c=null);var b=a.uuid?a.uuid:a.id,d=bI(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.gI=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.Ff=!1;this.K=this.J=this.B=this.D=0;this.C=window.NaN;this.F=!1;this.reset(a)};
g.hI=function(a){a.audioTrackId=null;a.o=null;a.g=-1;a.Ff=!1;a.hasNext=!1;a.G=0;a.A=(0,g.G)();a.D=0;a.B=0;a.J=0;a.K=0;a.C=window.NaN;a.F=!1};
g.iI=function(a,b){a.G=b;a.A=(0,g.G)()};
g.jI=function(a){switch(a.g){case 1:return((0,g.G)()-a.A)/1E3+a.G;case -1E3:return 0}return a.G};
g.kI=function(a,b,c){var d=a.videoId;a.videoId=b;a.index=c;b!=d&&g.hI(a)};
g.lI=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=Xb(a.o);b.hasPrevious=a.Ff;b.hasNext=a.hasNext;b.playerTime=a.G;b.playerTimeAt=a.A;b.seekableStart=a.D;b.seekableEnd=a.B;b.duration=a.J;b.loadedTime=a.K;b.liveIngestionTime=a.C;return b};
mI=function(a,b,c){this.name=a;this.id=b;this.isDefault=c};
g.nI=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.oI=function(a){a=void 0===a?{}:a;this.M=a.formats||"";this.A=a.format||1;if(1==this.A)for(var b=this.M.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.Aa=a.id;this.O=a.is_servable;this.G=a.is_translateable;this.J=a.url||null;this.F=a.vss_id||"";this.g=null;a.translationLanguage&&(this.g=new g.nI(a.translationLanguage))};
g.pI=function(a){var b=a.D||"",c=[b];"asr"==a.B&&-1==b.indexOf("(")&&c.push(" ("+g.T("YTP_ASR_SETTINGS_LABEL")+")");a.C&&c.push(" - "+a.C);a.g&&c.push(" >> "+a.g.languageName);return c.join("")};
qI=function(a,b){this.id=a;this.Sc=b;this.captionTracks=[];this.fk=this.lm=null;this.Su="UNKNOWN"};
g.rI=function(a,b,c){g.RF.call(this);this.C=window.NaN;this.P=!1;this.K=this.J=this.M=this.O=window.NaN;this.W=[];this.B=this.F=this.A=this.gb=this.g=null;this.sa=a;this.W.push(g.DF(window,"beforeunload",(0,g.A)(this.qG,this)));this.o=[];this.gb=new g.gI;this.da=b.id;this.g=tja(this,c);this.g.subscribe("handlerOpened",this.KM,this);this.g.subscribe("handlerClosed",this.HM,this);this.g.subscribe("handlerError",this.IM,this);this.g.subscribe("handlerMessage",this.JM,this);eja(this.g,b.token);this.subscribe("remoteQueueChange",
function(){var a=this.gb.videoId;g.sH()&&g.NG("yt-remote-session-video-id",a)},this)};
sI=function(a){g.aH("conn",a)};
tja=function(a,b){return new UG(a.sa.Qh("/bc",void 0,!1),b)};
tI=function(a,b){a.Y("proxyStateChange",b)};
uja=function(a){a.C=g.xE((0,g.A)(function(){sI("Connecting timeout");this.D(1)},a),2E4)};
uI=function(a){g.vE(a.C);a.C=window.NaN};
vI=function(a){g.vE(a.O);a.O=window.NaN};
vja=function(a){wI(a);a.M=g.xE((0,g.A)(function(){xI(this,"getNowPlaying")},a),2E4)};
wI=function(a){g.vE(a.M);a.M=window.NaN};
zI=function(a,b){b&&(uI(a),vI(a));b==(WG(a.g)&&(0,window.isNaN)(a.C))?b&&(tI(a,1),xI(a,"getSubtitlesTrack")):b?(a.ca()&&a.gb.reset(),tI(a,1),xI(a,"getNowPlaying"),yI(a)):a.D(1)};
wja=function(a,b){var c=b.params.videoId;delete b.params.videoId;c==a.gb.videoId&&(g.Tb(b.params)?a.gb.o=null:a.gb.o=b.params,a.Y("remotePlayerChange"))};
AI=function(a,b){var c=b.params.videoId||b.params.video_id,d=(0,window.parseInt)(b.params.currentIndex,10);a.gb.listId=b.params.listId||a.gb.listId;g.kI(a.gb,c,d);a.Y("remoteQueueChange")};
xja=function(a,b){b.params=b.params||{};AI(a,b);BI(a,b);a.Y("autoplayDismissed")};
BI=function(a,b){var c=(0,window.parseInt)(b.params.currentTime||b.params.current_time,10);g.iI(a.gb,(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.gb.g&&(c=-1E3);a.gb.g=c;c=Number(b.params.loadedTime);a.gb.K=(0,window.isNaN)(c)?0:c;c=Number(b.params.duration);a.gb.J=(0,window.isNaN)(c)?0:c;var c=a.gb,d=Number(b.params.liveIngestionTime);c.C=d;c.F=(0,window.isNaN)(d)?!1:!0;var c=a.gb,d=Number(b.params.seekableStartTime),e=Number(b.params.seekableEndTime);
c.D=(0,window.isNaN)(d)?0:d;c.B=(0,window.isNaN)(e)?0:e;1==a.gb.g?vja(a):wI(a);a.Y("remotePlayerChange")};
yja=function(a,b){if(-1E3!=a.gb.g){var c=1083;switch((0,window.parseInt)(b.params.adState,10)){case 1:c=1081;break;case 2:c=1082}a.gb.g=c;a.Y("remotePlayerChange")}};
zja=function(a,b){var c="true"==b.params.muted;a.gb.volume=(0,window.parseInt)(b.params.volume,10);a.gb.muted=c;a.Y("remotePlayerChange")};
Aja=function(a,b){a.F=b.params.videoId;a.Y("nowAutoplaying",(0,window.parseInt)(b.params.timeout,10))};
Bja=function(a,b){var c="true"==b.params.hasNext;a.gb.Ff="true"==b.params.hasPrevious;a.gb.hasNext=c;a.Y("previousNextChange")};
yI=function(a){g.vE(a.K);a.K=g.xE((0,g.A)(a.D,a,1),864E5)};
xI=function(a,b,c){c?sI("Sending: action="+b+", params="+g.Lc(c)):sI("Sending: action="+b);a.g.sendMessage(b,c)};
CI=function(a,b){this.g=a||0;this.spatialAudioType=b||0};
FI=function(a,b,c,d,e,f,k,l,m,n,q){this.width=a;this.height=b;if(!f)a:{f=Math.max(a,b);a=Math.min(a,b);b=DI[0];for(var r=0;r<DI.length;r++){var w=DI[r],y=g.EI[w];if(f>=Math.floor(16*y/9)*FI.prototype.B||a>=y*FI.prototype.B){f=b;break a}b=w}f="tiny"}this.quality=f;this.o=g.EI[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;(c=l)||(c=this.fps,d=this.projectionType,e=g.EI[this.quality],c=0==e?g.T("YTP_AUTO"):e+(2==
d||3==d||4==d?"s":"p")+(55<c?"60":49<c?"50":39<c?"48":""));this.qualityLabel=c;this.g=m||"";this.primaries=n||"";this.A=!1!==q};
GI=function(a){return"smpte2084"==a.g||"arib-std-b67"==a.g};
II=function(a,b,c,d,e,f,k,l){this.id=a;this.A=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.B=l||0;this.audio=c||null;this.video=d||null;this.Sc=e||null;this.Zc=f||null;this.o=Cja[HI(this)]||""};
HI=function(a){return a.id.split(";",1)[0]};
JI=function(a){return"9"==a.o||"("==a.o||"9h"==a.o||"(h"==a.o};
KI=function(a){return"9h"==a.o||"(h"==a.o};
LI=function(a){return 1==a.A};
MI=function(a){return!(a.audio&&a.video)};
NI=function(a){return 0<=a.indexOf("opus")||0<=a.indexOf("vorbis")||0<=a.indexOf("mp4a")};
OI=function(a){return 0<=a.indexOf("vp9")||0<=a.indexOf("vp8")||0<=a.indexOf("avc1")};
PI=function(a,b,c,d,e,f,k){var l=new CI;b in g.EI||(b="small");d&&e?(e=(0,window.parseInt)(e,10),d=(0,window.parseInt)(d,10)):(e=g.EI[b],d=Math.round(16*e/9));b=new FI(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 II(c,a,l,b)};
QI=function(a,b){this.experimentIds=a?a.split(","):[];this.flags=g.yE(b||"");var c={};(0,g.H)(this.experimentIds,function(a){c[a]=!0});
this.experiments=c;this.B=!!c["9414740"]};
RI=function(a,b){this.g=a;this.o=!!b;this.A=!1};
SI=function(a){this.ye=a};
TI=function(a,b,c){this.o=a||0;this.g=b||0;this.A=c};
UI=function(a,b){return a.o==b.o&&a.g==b.g&&a.A==b.A};
VI=function(a,b,c){return new TI(g.EI[a]||0,g.EI[b]||0,c)};
WI=function(a){var b=g.EI.auto;return a.o==b&&a.g==b};
YI=function(a,b){if(b.A&&WI(b))return XI;if(b.A||WI(a))return b;if(a.A||WI(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 TI(c,d,!1)};
g.ZI=function(a){var b=a.g||a.o;return Sb(Dja,function(a){return g.EI[a]==b})||"auto"};
$I=function(a,b){var c=g.EI[b];return a.o<=c&&(!a.g||a.g>=c)};
Eja=function(){var a=g.OG("yt-player-volume")||{},b=a.volume;return{volume:(0,window.isNaN)(b)?100:g.Pd(Math.floor(b),0,100),muted:!!a.muted}};
aJ=function(a){g.NG("yt-player-bandwidth",a,2592E3)};
bJ=function(){return g.OG("yt-player-quality")||"auto"};
cJ=function(a){g.NG("yt-player-watch-later-pending",a)};
dJ=function(){return g.OG("yt-player-performance-cap")||0};
eJ=function(a,b,c){if(g.va(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}};
fJ=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 eJ(a)};
hJ=function(a,b){g.M.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;U(this,"cueVideoById",this.Nx);U(this,"loadVideoById",this.qJ);U(this,"cueVideoByUrl",this.fJ);U(this,"loadVideoByUrl",this.rJ);U(this,"playVideo",this.cd);U(this,"pauseVideo",this.md);U(this,"stopVideo",this.Of);U(this,"clearVideo",this.dJ);U(this,"getVideoBytesLoaded",this.kJ);U(this,"getVideoBytesTotal",this.lJ);U(this,"getVideoLoadedFraction",
this.nr);U(this,"getVideoStartBytes",this.mJ);U(this,"cuePlaylist",this.eJ);U(this,"loadPlaylist",this.pJ);U(this,"nextVideo",this.lj);U(this,"previousVideo",this.Ik);U(this,"playVideoAt",this.Rx);U(this,"setShuffle",this.setShuffle);U(this,"setLoop",this.tJ);U(this,"getPlaylist",this.Mf);U(this,"getPlaylistIndex",this.Px);U(this,"getPlaylistId",this.getPlaylistId);U(this,"loadModule",this.Hk);U(this,"unloadModule",this.mn);U(this,"setOption",this.yd);U(this,"getOption",this.Bc);U(this,"getOptions",
this.ai);U(this,"mute",this.mute);U(this,"unMute",this.ug);U(this,"isMuted",this.He);U(this,"setVolume",this.setVolume);U(this,"getVolume",this.getVolume);U(this,"seekTo",this.yc);U(this,"getPlayerState",this.Gk);U(this,"getPlaybackRate",this.Uc);U(this,"setPlaybackRate",this.Nf);U(this,"getAvailablePlaybackRates",this.kj);U(this,"getPlaybackQuality",this.Fk);U(this,"setPlaybackQuality",this.Jk);U(this,"getAvailableQualityLevels",this.mr);U(this,"getCurrentTime",this.getCurrentTime);U(this,"getDuration",
this.getDuration);U(this,"addEventListener",this.addEventListener);U(this,"removeEventListener",this.removeEventListener);U(this,"getVideoUrl",this.getVideoUrl);U(this,"getDebugText",this.Ek);U(this,"getVideoEmbedCode",this.Qx);U(this,"getVideoData",this.ia);U(this,"addCueRange",this.Mx);U(this,"removeCueRange",this.Sx);U(this,"setSize",this.setSize);U(this,"getApiInterface",this.gJ);U(this,"destroy",this.destroy);U(this,"showVideoInfo",this.Vx);U(this,"hideVideoInfo",this.nJ);U(this,"getMediaReferenceTime",
this.iJ);gJ(this,"getInternalApiInterface",this.hJ);gJ(this,"getAdState",this.Ox);gJ(this,"isNotServable",this.oJ);gJ(this,"getUpdatedConfigurationData",this.jJ);gJ(this,"sendAbandonmentPing",this.sJ);gJ(this,"setAutonav",this.Tx);gJ(this,"setAutonavState",this.Ux);gJ(this,"startInteractionLogging",this.uJ);gJ(this,"channelSubscribed",this.bJ);gJ(this,"channelUnsubscribed",this.cJ)};
U=function(a,b,c){a.B[b]=(0,g.A)(function(){iJ(this,b);return c.apply(this,arguments)},a)};
gJ=function(a,b,c){a.C[b]=(0,g.A)(function(){iJ(this,b);return c.apply(this,arguments)},a)};
jJ=function(a){a.A||(a.A=g.Wb(a.B),a.A.addEventListener=(0,g.A)(a.WF,a),a.A.removeEventListener=(0,g.A)(a.XF,a));return a.A};
iJ=function(a,b){var c=a.app.Z;c.experiments.g("web_player_api_logging")&&!a.G.has(b)&&(a.G.add(b),c={callerUrl:c.P,methodName:b},a.app.Z.experiments.g("web_player_gel_logging_killswitch")||a.app.ba.Y("onLogToGel",{payload_name:"webPlayerApiCalled",payload:c}))};
lJ=function(a,b,c){b=g.Pd(Math.floor(b),0,100);(0,window.isFinite)(b)&&kJ(a.app,{volume:b,muted:a.He()},c)};
mJ=function(a,b){kJ(a.app,{muted:!0,volume:a.getVolume()},b)};
nJ=function(a,b){kJ(a.app,{muted:!1,volume:Math.max(5,a.getVolume())},b)};
g.oJ=function(a,b,c){this.start=a;this.end=b;this.A=Fja++;a=c||{};this.Aa=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};
Gja=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.pJ=function(a,b){return a.start-b.start||a.B-b.B||a.A-b.A};
qJ=function(a,b,c,d){this.videoData=a;this.g=b;this.reason=c;this.o=d};
tJ=function(a){this.o=a;this.g=0;this.C=window.NaN;this.B=0;this.kb=[];this.A=rJ(this.o);this.G=g.sJ(this.o);this.D=this.F=0};
g.uJ=function(a){a.A.startTime=a.B;a.A.endTime=a.g;a.kb.length&&g.Ya(a.kb).isEmpty()?a.kb[a.kb.length-1]=a.A:a.kb.length&&a.A.isEmpty()||a.kb.push(a.A);var b=g.sJ(a.o),c=a.o.g.experiments.o("html5_min_vss_watchtime_to_cut_secs_redux");if(c){var d=b-a.G;var e=a.A;e=(e.endTime-e.startTime)/e.playbackRate;var f=a.o.g.experiments.o("html5_max_vss_watchtime_ratio");e>c&&e>d*f&&(c=g.Wb(a.A),a.A.endTime=a.A.startTime+.001,c.startTime=c.endTime-.001,a.kb.push(c))}a.F+=a.g-a.B;a.A=rJ(a.o);a.B=a.g;a.G=b};
vJ=function(a){return a.F+a.o.o()-a.B};
wJ=function(a){a.kb.length&&a.g==a.B||g.uJ(a);var b=a.kb;a.kb=[];return b};
xJ=function(a,b,c){c-=a.C;return b==a.g&&.5<c};
yJ=function(a,b){this.g=b;this.A=!1;this.videoData=a};
zJ=function(a,b,c){yJ.call(this,b,c);this.B=a};
g.AJ=function(a){return(a=Hja[a.toString()])?a:"YTP_ERROR_LICENSE"};
Ija=function(){this.C=this.g=window.NaN;this.A=this.B=this.o=!1};
BJ=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};
g.CJ=function(a){g.M.call(this);this.P=[];this.Bb=a||this};
DJ=function(a,b,c,d){for(var e=0;e<c.length;e++)a.T(b,c[e],d)};
g.EJ=function(a){for(;a.P.length;){var b=a.P.pop();b.target.removeEventListener(b.name,b.ig)}};
FJ=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};
GJ=function(a,b){var c=FJ(a,b);return 0<=c?a.end(c):window.NaN};
HJ=function(a){return a&&a.length?a.end(a.length-1):window.NaN};
IJ=function(){var a=[],b=[];return{start:function(b){return a[b]},
end:function(a){return b[a]},
length:a.length}};
JJ=function(a,b){var c=GJ(a,b);return 0<=c?c-b:0};
KJ=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};
LJ=function(){};
MJ=function(){g.M.call(this);this.o=null;this.D=this.C=!1;this.B=new g.xf;g.N(this,this.B)};
PJ=function(a,b){var c="";b&&(NJ(a,b),c=b.g);a.wd()&&""==c||(c&&a.wd()!=c&&OJ(a,c),b&&b.o||a.load(),a.D||(a.addEventListener("volumechange",a.fv),a.D=!0))};
NJ=function(a,b){a.o&&null!=b&&b.g==a.o.g||(a.o&&a.o.dispose(),a.o=b)};
RJ=function(a){return JJ(QJ(a),a.getCurrentTime())};
SJ=function(a){var b=QJ(a);return 0<HJ(b)&&a.getDuration()?GJ(b,a.getCurrentTime()):0};
TJ=function(a){var b=a.getDuration();return window.Infinity==b?1:b?SJ(a)/b:0};
UJ=function(a){return{vct:a.getCurrentTime().toFixed(3),vd:a.getDuration().toFixed(3),vpl:KJ(a.g.played||IJ()),vbu:KJ(QJ(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.Lb(),vvol:a.getVolume()}};
VJ=function(a,b,c){g.Te.call(this,b,a);this.g=c||null};
g.WJ=function(a,b){this.o=a||64;this.g=b||null};
XJ=function(a,b){return BJ(a,b.getCurrentTime(),(0,g.sG)(),RJ(b))};
YJ=function(a,b,c){return b==a.o&&c==a.g||b&128&&!c||b&2&&b&16?a:new g.WJ(b,c)};
ZJ=function(a,b){return YJ(a,a.o|b)};
$J=function(a,b){return YJ(a,a.o&~b)};
aK=function(a){return YJ(a,(a.o|4)&-9)};
g.V=function(a,b){return!!(a.o&b)};
g.bK=function(a,b){return b.o==a.o&&b.g==a.g};
cK=function(a){return g.V(a,8)&&!g.V(a,2)};
dK=function(a){return g.V(a,64)&&!g.V(a,8)&&!g.V(a,4)};
g.eK=function(a){return g.V(a,1)&&!g.V(a,2)};
fK=function(a){return g.V(a,128)?-1:g.V(a,2)?0:g.V(a,1)&&!g.V(a,32)?3:g.V(a,64)?-1:g.V(a,8)?1:g.V(a,4)?2:-1};
g.gK=function(a,b){this.state=a;this.g=b};
hK=function(a,b){return g.V(a.state,b)&&!g.V(a.g,b)?1:!g.V(a.state,b)&&g.V(a.g,b)?-1:0};
Jja=function(){this.A=0;this.o=this.F=this.B=this.C=window.NaN;this.D=0;this.K=this.M=this.G=this.J=window.NaN;this.g=""};
iK=function(){this.endTime=this.startTime=-1;this.tp="-";this.playbackRate=1;this.visibilityState=0;this.kp="";this.connectionType=this.Dh=0};
Kja=function(a,b,c,d,e,f,k,l,m,n,q,r){this.videoData=a;this.g=b;this.og=c;this.C=d;this.o=e;this.D=f;this.M=k;this.J=l;this.K=m;this.F=n;this.B=q;this.G=r||function(){};
this.A=null};
g.sJ=function(a){return jK(a)()};
jK=function(a){if(!a.A){var b=g.ya(function(a){var b=(0,g.sG)();a&&631152E6>=b&&(g.qE(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.ya(function(a){return Math.round(b()-a)/1E3},b())}return a.A};
kK=function(a){var b=a.og();g.za(b,a.videoData.og());return b};
mK=function(){return window.navigator.connection&&window.navigator.connection.type?lK[window.navigator.connection.type]||lK.other:0};
rJ=function(a){var b=new iK;b.tp=a.og().cc||"-";b.playbackRate=a.K();var c=a.B();0!=c&&(b.visibilityState=c);a.g.Dh&&(b.Dh=1);a=a.J();a.Sc&&a.Sc.id&&"und"!=a.Sc.id&&(b.kp=a.Sc.id);b.connectionType=mK();return b};
oK=function(a){g.M.call(this);var b=this;this.g=a;this.o={};this.oa=1;this.W=window.NaN;this.A="N";this.D=this.ca=this.B=0;this.K=this.fa="";this.ba=0;this.ga=-1;this.J=this.M=0;this.P=this.G=!1;this.ha=[];this.F=null;(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.nK(this,0,"vps",["N"])};
g.nK=function(a,b,c,d){var e=a.o[c];e||(e=[],a.o[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))};
qK=function(a,b){b=0<=b?b:g.sJ(a.g);var c=a.g.D();if(!(0,window.isNaN)(a.da)&&!(0,window.isNaN)(c.B)){var d=c.B-a.da;0<d&&g.nK(a,b,"bwm",[d,(c.F-a.ra).toFixed(3)])}a.da=c.B;a.ra=c.F;(0,window.isNaN)(c.o)||g.nK(a,b,"bwe",[c.o.toFixed(0)]);a.g.videoData.ah&&c.g&&pK(a,"bwinfo",c.g);(0,window.isNaN)(c.A)||(d=c.A,c.C<d&&(d=c.C),g.nK(a,b,"bh",[d.toFixed(3)]));a.F&&g.nK(a,b,"bat",[a.F.level,a.F.charging?"1":"0"]);d=a.g.B();a.ga!=d&&(g.nK(a,b,"vis",[d]),a.ga=d);g.nK(a,b,"cmt",[a.g.o().toFixed(3)]);(d=mK())&&
d!=a.ba&&(g.nK(a,b,"conn",[d]),a.ba=d);0<c.D&&g.nK(a,b,"e2el",[c.D,c.J.toFixed(3),c.G.toFixed(3),c.M.toFixed(3),c.K.toFixed(3)]);null!==a.g.videoData.Fl&&(a.o.acc=[a.g.videoData.Fl.join(":")])};
rK=function(a){var b={event:"streamingstats"};if(a.g.videoData.Ma){b.fmt=HI(a.g.videoData.Ma);var c=a.g.videoData.rd;c&&HI(c)!=b.fmt&&(b.afmt=HI(c))}b.cpn=a.g.videoData.clientPlaybackNonce;b.ei=a.g.videoData.eventId;b.el=a.g.g.g;b.docid=a.g.videoData.videoId;b.ns=a.g.g.Ta;b.fexp=a.g.g.experiments.experimentIds.toString();b.cl=a.g.g.Oa;a.g.videoData.adFormat&&(b.adformat=a.g.videoData.adFormat);a.g.videoData.Ba&&(b.live=a.g.videoData.gg?"dvr":"live");b.seq=a.oa++;return b};
sK=function(a,b){a.g.g.experiments.g("html5_ajax_qoe_retry")?g.cg(dF(b,{},3,500),g.z):g.ZE(b)};
tK=function(a){var b=0,c;for(c in a.o)b+=c.length+Sd(a.o[c],function(a,b){return a+b.length},0);
1E3<b&&(new g.qt(a.C,0,a)).start()};
uK=function(a,b,c,d){var e=a.g.o();c=[c,e.toFixed(3)];d&&c.push(d);g.nK(a,b,"error",c)};
vK=function(a,b){g.nK(a,g.sJ(a.g),"lra",[b]);pK(a,"live-readahead-seconds",b.toString())};
Mja=function(a){if(g.V(a,128))return"ER";if(g.V(a,512))return"SU";if(g.V(a,16)||g.V(a,32))return"S";var b=Lja[fK(a)];"B"==b&&g.V(a,4)&&(b="PB");return b};
wK=function(a,b){var c=a.o.cat||[];c.push(b);a.o.cat=c};
pK=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.sJ(a.g).toFixed(3)+";"+c),e.push(b+":"+c),a.o.ctmp=e,tK(a))};
yK=function(a,b,c,d){this.Sa=b;this.segments=[];this.experimentIds=[];this.Hf=this.Na=this.K=this.ra=this.Fa=this.W=this.autoplay=this.autonav=!1;this.fa="yt";this.vh=this.o=this.D=null;this.ba=!1;this.C="watchtime"==c;this.B="playback"==c;this.J="delayplay"==c;this.G="atr"==c;this.Ja="engage"==c;this.Bj=!1;this.ka=this.G?"/api/stats/"+c:"//"+b.Lg+"/api/stats/"+c;d&&(this.K=d.fs,d.rtn&&(this.o=d.rtn),this.C?(this.Bb=d.state,0<d.rti&&(this.D=d.rti)):(this.Oa=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.ga=d.size));b.experiments.g("legacy_autoplay_flag")&&(this.autoplay=b.da);this.tb=b.ua;this.xb=g.Wb(b.B);this.W=b.F;this.ua=b.oa;this.zb=b.g;this.experimentIds=b.experiments.experimentIds;this.oa=b.Ja;this.fa=b.Ta;this.region=b.region;this.Hb=b.Oa?b.Oa.toString():"";this.userAge=b.userAge;this.userGender=b.userGender;this.rb=g.vG();this.Bj=b.Na;this.F=a.oauthToken||this.F;this.adFormat=a.adFormat;this.autoplay=xK(this.Sa,
a,this.K);this.autonav=a.bn||this.autonav;this.vh=a.vh;this.clientPlaybackNonce=a.clientPlaybackNonce;this.P=a.vssCredentialsToken;this.sa=a.ro;this.mdxEnvironment=a.mdxEnvironment;this.yf=a.yf;this.zf=a.zf;a.Ma&&(this.Za=HI(a.Ma),a.rd&&HI(a.rd)!=this.Za&&(this.O=HI(a.rd)));this.Hf=a.Hf;this.ej=a.ej;a.Ba&&(this.Ra=a.gg?"dvr":"live");this.Dk=a.Dk;this.oh=a.oh;this.playbackId=a.playbackId;this.eventId=a.eventId;this.playlistId=a.Es||a.playlistId;this.Mn=a.Mn;this.Wf=a.Wf;this.gf=a.gf;this.Xn=a.Xn;this.subscribed=
a.subscribed;this.videoId=a.videoId;this.videoMetadata=a.videoMetadata;this.visitorData=a.visitorData;this.osid=a.osid;this.Tr=a.Tr;this.referrer=a.referrer;this.qh=a.ds||a.qh;this.Lj=a.Lj;this.eo=a.eo;this.Mh=a.Mh};
zK=function(a,b){if(a.G)return null;var c=a.F&&DE(),d=a.Bj&&!!a.visitorData;if(!c&&!d)return null;var e={};c&&(e.Authorization="Bearer "+a.F);d&&(e["X-Goog-Visitor-Id"]=a.visitorData);return{headers:e,withCredentials:!0,zd:b}};
Nja=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.Dg(a,b);c?g.KE(a,c):g.ZE(a)};
BK=function(a){var b={ns:a.fa,el:a.zb,cpn:a.clientPlaybackNonce,docid:a.videoId,ver:2,referrer:a.referrer,cmt:a.g(a.yf),plid:a.playbackId,ei:a.eventId,fmt:a.Za,fs:a.K?"1":"0",rt:a.g(a.qb),of:a.Tr,adformat:a.adFormat,content_v:a.tb,euri:a.ua,lact:a.rb,live:a.Ra,cl:a.Hb,mos:a.Oa,osid:a.osid,state:a.Bb,vm:a.videoMetadata,volume:a.Ta};a.subscribed&&(b.subscribed="1");g.za(b,a.xb);a.autonav&&(b.autonav="1");if(a.Sa.experiments.g("legacy_autoplay_flag"))a.autoplay&&(b.autoplay="1");else if(a.autoplay||
a.Hf)b.autoplay="1";a.W&&(b.dni="1");a.ra&&(b["final"]="1");a.Hf&&(b.splay="1");a.zf&&(b.delay=a.zf);a.oa&&(b.hl=a.oa);a.region&&(b.cr=a.region);g.t(a.userAge)&&a.userGender&&(b.uga=a.userGender+a.userAge);g.t(a.da)&&(b.len=a.g(a.da));!a.C&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!=a.o&&(b.rtn=a.g(a.o));a.qh&&(b.feature=a.qh);a.playlistId&&(b.list=a.playlistId);a.Wf&&(b.ctrl=a.Wf);a.gf&&(b.ytr=a.gf);a.Xn&&(b.ssrt="1");a.O&&(b.afmt=a.O);a.ca&&(b.lio=a.g(a.ca));a.C?(b.idpj=
a.ej,b.ldpj=a.Dk,null!=a.D&&(b.rti=a.g(a.D))):g.t(a.adType)&&(b.at=a.adType);(a.B||a.J)&&a.vh&&(b.tst=a.vh);a.ga&&(a.B||a.J)&&(b.size=a.ga);null!=a.ha&&(a.B||a.J)&&(b.inview=a.g(a.ha));a.C&&(b.st=AK(a,(0,g.I)(a.segments,function(a){return a.startTime})),b.et=AK(a,(0,g.I)(a.segments,function(a){return a.endTime})),(0,g.Ek)(a.segments,function(a){return 1!=a.playbackRate})&&(b.rate=AK(a,(0,g.I)(a.segments,function(a){return a.playbackRate}))));
(0,g.Ek)(a.segments,function(a){return 0!=a.visibilityState})&&(b.vis=AK(a,(0,g.I)(a.segments,function(a){return a.visibilityState})));
(0,g.Ek)(a.segments,function(a){return 0!=a.connectionType})&&(b.conn=AK(a,(0,g.I)(a.segments,function(a){return a.connectionType})));
(0,g.Ek)(a.segments,function(a){return 0!=a.Dh})&&(b.blo=AK(a,(0,g.I)(a.segments,function(a){return a.Dh})));
(0,g.Ek)(a.segments,function(a){return"-"!=a.tp})&&(b.cc=(0,g.I)(a.segments,function(a){return a.tp}).join(","));
if((0,g.Ek)(a.segments,function(a){return!!a.kp})){var c="au";
a.B&&(c="au_d");b[c]=(0,g.I)(a.segments,function(a){return a.kp}).join(",")}DE()&&a.P&&(b.ctt=a.P,b.cttype=a.sa,b.mdx_environment=a.mdxEnvironment);
a.Ja&&(b.etype=g.t(a.A)?a.A:0);a.Lj&&(b.uoo=a.Lj);a.eo&&(b.upt=a.eo);a.Mh&&(b.wpid=a.Mh);return b};
AK=function(a,b){return(0,g.I)(b,a.g).join(",")};
CK=function(a){g.M.call(this);this.g=a;this.o=new oK(a);g.N(this,this.o);this.A=new tJ(a);this.D="paused";this.F=window.NaN;this.J=[10,10,10,40];this.K=this.G=0;this.P=this.W=this.O=this.M=this.B=!1;this.C=window.NaN;this.ba=new zJ(this.A,this.g.videoData,this.g.g)};
DK=function(a,b,c){var d=g.sJ(a.g);c=(0,window.isNaN)(c)?d:c;c=Math.ceil(c);var e=a.J[a.G];a.G+1<a.J.length&&a.G++;c+=e;d=1E3*(c-d);a.F=g.xE((0,g.A)(a.iN,a,c,b),d);return c};
FK=function(a,b){var c=kK(a.g);g.za(c,{state:a.D});c=new yK(a.g.videoData,a.g.g,b,c);c.yf=a.g.o();a.g.videoData.Ba||(c.da=a.g.C());if(a.g.videoData.va){var d=EK(a.g.videoData.va,c.yf);d&&(c.ca=d-c.yf)}c.qb=g.sJ(a.g);c.segments=[rJ(a.g)];return c};
GK=function(a,b){var c=FK(a,"watchtime");c.segments=b;c.yf=a.A.g;return c};
HK=function(a){a.A.update();return GK(a,wJ(a.A))};
KK=function(a){a.g.videoData.remarketingUrl&&!a.W&&(IK(a,a.g.videoData.remarketingUrl),a.W=!0);a.g.videoData.ppvRemarketingUrl&&!a.P&&(IK(a,a.g.videoData.ppvRemarketingUrl),a.P=!0);JK(a)};
LK=function(a,b){if(!a.na()){g.V(b.state,2)?(a.D="paused",0<hK(b,2)&&a.B&&HK(a).send()):g.V(b.state,8)?(a.D="playing",a.B&&(0,window.isNaN)(a.F)&&DK(a,!1)):a.D="paused";var c=a.o,d=b.state,e=g.sJ(c.g),f=Mja(b.state);if(f!=c.A){if(!(e<c.B)){if("PL"==c.A)c.J+=e-c.B;else if("B"==c.A&&c.G&&(c.G=!1,c.M+=e-c.B,!c.P&&10<=c.M&&180>=c.J)){c.g.G();if(!c.na()&&!c.O){var k=rK(c);k.qoealert="1";k=g.Dg(c.g.g.Jg,k);sK(c,k)}c.P=!0}"B"!=f||"PL"!=c.A&&"PB"!=c.A||(c.G=!0);c.B=e}"B"==f&&"PL"==c.A||c.g.videoData.ah?qK(c,
e):g.nK(c,e,"cmt",[c.g.o().toFixed(3)]);g.nK(c,e,"vps",[f]);c.A=f;c.B=e}g.V(d,128)&&uK(c,e,d.g.errorCode,d.g.errorDetail);(g.V(d,2)||g.V(d,128))&&c.C(e);g.V(d,8)&&c.g.videoData.En&&(c.o.user_intent=[g.sJ(c.g).toString()]);tK(c);a.C&&g.V(b.state,128)&&(a.Sn("error-100"),g.vE(a.C))}};
MK=function(a){a.C=g.wE((0,g.A)(a.Sn,a,"heartbeat"),3E4)};
JK=function(a){a.g.videoData.te.eventLabel=a.g.g.g;a.g.videoData.te.playerStyle=a.g.g.o;a.g.videoData.Hn&&(a.g.videoData.te.feature="pyv");a.g.videoData.te.vid=a.g.videoData.videoId;a.g.videoData.te.isAd=!("adunit"!=a.g.g.g&&!a.g.videoData.Hn)};
IK=function(a,b,c){a.g.g.Na&&a.g.videoData.visitorData&&EE(b)?g.KE(b,{zd:c,headers:{"X-Goog-Visitor-Id":a.g.videoData.visitorData}}):g.ZE(b,c)};
NK=function(a,b){hJ.call(this,a,b);this.g=!1;U(this,"getPresentingPlayerType",this.Wa);U(this,"addInfoCardXml",this.vJ);U(this,"cueVideoByPlayerVars",this.xJ);U(this,"loadVideoByPlayerVars",this.pn);U(this,"preloadVideoByPlayerVars",this.Yx);U(this,"seekBy",this.be);U(this,"updatePlaylist",this.SJ);U(this,"updateLastActiveTime",this.RJ);U(this,"updateVideoData",this.TJ);U(this,"getPlayerResponse",this.getPlayerResponse);U(this,"getStoryboardFormat",this.getStoryboardFormat);U(this,"getProgressState",
this.ih);U(this,"getHousebrandProperties",this.AJ);U(this,"setPlaybackQualityRange",this.Zx);U(this,"getCurrentPlaylistSequence",this.zJ);U(this,"canPlayType",this.wJ);U(this,"sendVideoStatsEngageEvent",this.ci);U(this,"setCardsVisible",this.Kk);U(this,"handleGlobalKeyDown",this.DJ);U(this,"getAudioTrack",this.hh);U(this,"setAudioTrack",this.rr);U(this,"getAvailableAudioTracks",this.pr);U(this,"getMaxPlaybackQuality",this.BJ);U(this,"setSizeStyle",this.MJ);U(this,"forceFrescaUpdate",this.yJ);U(this,
"setAutonav",this.Tx);U(this,"setAutonavState",this.Ux);U(this,"showControls",this.PJ);U(this,"hideControls",this.EJ);U(this,"getVisibilityState",this.nn);U(this,"shouldSendVisibilityState",this.OJ);U(this,"getVideoContentRect",this.Xx);U(this,"setSafetyMode",this.LJ);U(this,"setFauxFullscreen",this.IJ);U(this,"cancelPlayback",this.rp);U(this,"getVideoStats",this.kw);U(this,"updateSubtitlesUserSettings",this.qn);U(this,"getSubtitlesUserSettings",this.bi);U(this,"resetSubtitlesUserSettings",this.qr);
U(this,"isFastLoad",this.FJ);U(this,"isPeggedToLive",this.isPeggedToLive);U(this,"setMinimized",this.KJ);U(this,"getSphericalConfig",this.CJ);U(this,"setSphericalConfig",this.NJ);U(this,"setBlackout",this.HJ);U(this,"onAdUxClicked",this.GJ);U(this,"toggleSettingsMenu",this.QJ);U(this,"getPlayerSize",this.Wx);U(this,"setGlobalCrop",this.JJ);U(this,"wakeUpControls",this.UR);U(this,"isMutedByMutedAutoplay",this.pI)};
OK=function(a,b){NK.call(this,a,b)};
Oja=function(){this.g=8192;this.o=17;this.D=13E4;this.F=.5;this.C=.1;this.B=!1;this.M=!0;this.O=!1;this.G=60;this.A=0;this.K=this.J=!1};
PK=function(a){this.C=Math.exp(Math.log(.5)/a);this.A=this.B=0};
QK=function(a,b,c){this.J=0;this.F=a;this.C=b||.5;this.D=c||0;this.G="index";this.A=0;this.B=[]};
SK=function(a,b){RK(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};
RK=function(a,b){a.G!=b&&(a.G=b,taa(a.B,b))};
TK=function(a){this.B=a;this.A=[]};
Pja=function(a){this.policy=a;this.J=this.K=0;this.B=-1;this.F=(0,g.sG)();this.D=new QK(4,.6);this.G=a.K?new QK(5,.5,.2):new PK(4);this.A=this.policy.B?new PK(this.policy.o):new QK(this.policy.o,.5,this.policy.C);this.C=new TK(this.policy.o);this.g=this.policy.O?new PK(this.policy.G):null;this.o=new QK(30,.5);a=g.OG("yt-player-bandwidth")||{};var b=0<a.byterate?a.byterate:this.policy.D;this.A.g(this.policy.F,b);this.g&&this.g.g(this.policy.F,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.sG)()};
UK=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.sG)()};
WK=function(a,b,c){b=Math.max(b,a.policy.g);a.G.g(1,c/b);VK(a)};
XK=function(a){a=a.D.o();a=(0,window.isNaN)(a)?.5:a;return a=Math.min(a,5)};
YK=function(a,b,c){(0,window.isNaN)(c)||(a.J+=c);(0,window.isNaN)(b)||(a.K+=b)};
ZK=function(a){return a.G.o()||0};
$K=function(a){var b=a.A.o(),b=0<b?b:1;if(!a.policy.M)return b;a=a.C.o();a=0<a?a:1;return a>2*b?(b+a)/2:b};
aL=function(a){a=a.g.o();return 0<a?a:1};
bL=function(a){var b={};b.delay=XK(a);b.stall=ZK(a);b.byterate=$K(a);a.g&&(b.ltByterate=aL(a));return b};
VK=function(a){-1<a.B&&3E4<(0,g.sG)()-a.B&&(aJ(bL(a)),a.B=(0,g.sG)())};
cL=function(a){return 4E3<=(0,g.sG)()-a.F};
dL=function(a,b,c,d,e,f,k,l){this.duration=c;this.endTime=b+c;this.ingestionTime=d;this.Ga=a;this.sourceURL=e;this.startTime=b;this.o=k||0;this.range=f||null;this.g=l||!1};
g.eL=function(){this.segments=[]};
fL=function(a,b){if(b>a.Ic())a.segments=[];else{var c=g.Za(a.segments,function(a){return a.Ga>=b},a);
0<c&&a.segments.splice(0,c)}};
gL=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};
hL=function(a){var b=a.data.getInt32(a.offset+a.o);a.o+=4;return b};
iL=function(a){var b=a.data.getUint32(a.offset+a.o);a.o+=4;return b};
Qja=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};
jL=function(a){var b=[];do{var c=a.data.getUint8(a.offset+a.o);b.push(c);a.o++}while(0!=c);b.pop()};
kL=function(a){this.data=new window.DataView(new window.ArrayBuffer(a));this.g=0};
lL=function(a,b){a.data.setInt32(a.g,b);a.g+=4};
mL=function(a,b){for(var c=0;c+4<=b.size;)lL(a,b.data.getUint32(b.offset+c)),c+=4;for(;c<b.size;)a.data.setUint8(a.g++,b.data.getUint8(b.offset+c++))};
nL=function(a,b,c){this.Pd=a;this.durationSecs=b;this.context=c};
oL=function(a){this.g=a;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.D=((0,window.parseInt)(this.g["Target-Duration-Us"],10)||0)/1E6;this.C="T"==this.g["Overlayed-With-Slate"];this.B="T"==this.g["Stream-Finished"];this.A="T"==this.g.Streamable};
pL=function(a){return a.g["Cuepoint-Type"]?new nL((0,window.parseFloat)(a.g["Cuepoint-Playhead-Time-Sec"])||0,(0,window.parseFloat)(a.g["Cuepoint-Total-Duration-Sec"])||0,a.g["Cuepoint-Context"]):null};
qL=function(a,b,c){this.A=a||0;this.yaw=b||0;this.o=c;this.g=c.getUint32(4)};
rL=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};
tL=function(a,b){var c=sL(a.data,a.g,1952868452),d=sL(a.data,a.g,1953658222),e=hL(c);hL(c);e&2&&hL(c);var c=e&8?hL(c):0,f=hL(d),k=f&1,e=f&4,l=f&256,m=f&512,n=f&1024,f=f&2048,q=iL(d);k&&hL(d);e&&hL(d);for(var r=k=0;r<q;r++){var w=l?hL(d):c;m&&hL(d);e&&0==r||!n||hL(d);f&&hL(d);k+=w}return k/b};
wL=function(a){a=new window.DataView(a.buffer,a.byteOffset,a.byteLength);return(a=uL(a,1836476516))?vL(a):window.NaN};
sL=function(a,b,c){for(;xL(a,b);){var d=yL(a,b);if(d.type==c)return d;b+=d.size}return null};
uL=function(a,b){for(var c=0;xL(a,c);){var d=yL(a,c);if(d.type==b)return d;c=zL(d.type)?c+8:c+d.size}return null};
AL=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)};
BL=function(a){if(a.data.getUint8(a.g)){var b=a.data;a=a.g+4;b=4294967296*b.getUint32(a)+b.getUint32(a+4)}else b=a.data.getUint32(a.g+4);return b};
yL=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new gL(a,b,c,d)};
vL=function(a){var b=a.data.getUint8(a.g)?20:12;return a.data.getUint32(a.g+b)};
CL=function(a){return a.data.getUint32(a.g+8)};
DL=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))};
xL=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};
zL=function(a){return 1836019558==a||1836019574==a||1835297121==a||1835626086==a||1937007212==a||1953653094==a||1953653099==a};
Rja=function(a){var b=uL(a,1937011556);if(!b)return null;b=sL(a,b.g+8,1635148593);if(!b)return null;var c=sL(a,b.g+78,1936995172),d=sL(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=sL(a,d.g,1886547818)){var e=sL(a,d.g,1886546020),f=sL(a,d.g,2037673328);if(!f&&(f=sL(a,d.g,1836279920),!f))return null;e&&(hL(e),c=hL(e)/65536,hL(e));a=new window.DataView(f.data.buffer,
f.g,f.size-8);return new qL(b,c,a)}return null};
EL=function(a){return(a=sL(a,0,1836019558))?a.offset+a.size:null};
FL=function(a,b){for(var c=sL(a,0,b);c;)a.setUint32(c.offset+4,1936419184),c=sL(a,c.offset+c.size,b)};
GL=function(a,b,c,d){d=void 0===d?!1:d;var e=sL(a,0,1836019558);if(!e)return null;var f=sL(a,e.g,1835427940),k=sL(a,e.g,1953653094),l=sL(a,e.g,1886614376);if(!f||!k)return null;var m=sL(a,k.g,1952868452),n=sL(a,k.g,1953658222),q=sL(a,k.g,1952867444);if(!m||!n||!q)return null;var r=sL(a,k.g,1935763823),w=sL(a,k.g,1935763834);if(r){var y=hL(r);var B=hL(r);if(0!=y||1!=B)return null;y=hL(r)}for(var B=sL(a,k.g,1935828848),k=sL(a,k.g,1936158820),D=hL(m),K=hL(m),X=D&2,Ra=D&1?Qja(m):0,bb=X?hL(m):0,ia=D&8?
hL(m):0,Zb=D&16?hL(m):0,tb=D&32?hL(m):0,D=hL(n),$f=D&1,ag=D&4,Ak=D&256,m=D&512,vc=D&1024,$b=D&2048,D=hL(n),wc=$f?hL(n):0,qu=ag?hL(n):0,$f=[],hj=[],Bk=[],Op=[],Im=0,Id=0,Jm=0;Jm<D;Jm++){var ru=Ak?hL(n):ia;m&&$f.push(hL(n));var Pg=tb;ag&&0==Jm?Pg=qu:vc&&(Pg=hL(n));hj.push(Pg);Pg=$b?hL(n):0;0==Jm&&(Im=Pg);Bk.push(Id+Pg);Op.push(Jm);Id+=ru}1<=Math.abs(Id-b)&&c({flaw:"segDurMismatch",dts:Id.toFixed(),seg:b.toFixed()});g.yb(Op,function(a,b){return Bk[a]-Bk[b]});
c=[];for(Id=0;Id<D;Id++)c[Op[Id]]=Id;Id=X?4:0;tb=16*D;ag=68+Id+q.size+tb+(r?r.size:0)+(w?w.size:0)+(B?B.size:0)+(k?k.size:0)+(l?l.size:0);n=ag-e.size;ia=new kL(ag+(d?0:e.offset));!d&&e.offset&&ia.hm(a,0,e.offset);lL(ia,ag);lL(ia,1836019558);mL(ia,f);lL(ia,ag-24-(l?l.size:0));lL(ia,1953653094);lL(ia,16+Id);lL(ia,1952868452);lL(ia,131072|(X?2:0));lL(ia,K);X&&lL(ia,bb);mL(ia,q);lL(ia,20+tb);lL(ia,1953658222);lL(ia,16781057);lL(ia,D);lL(ia,Ra+wc+n);for(a=Id=0;a<D;a++)e=c[a],d=Math.round(b*e/D),e=Math.round(b*
(e+1)/D)-d,d=d-Id+Im,lL(ia,e),lL(ia,m?$f[a]:Zb),lL(ia,hj[a]),lL(ia,d),Id+=e;r&&(lL(ia,r.size),lL(ia,1935763823),lL(ia,0),lL(ia,1),lL(ia,y+n));w&&mL(ia,w);B&&mL(ia,B);k&&mL(ia,k);l&&mL(ia,l);return ia.data.buffer};
HL=function(){var a=g.x("yt.player.utils.videoElement_");a||(a=g.pe("VIDEO"),g.v("yt.player.utils.videoElement_",a,void 0));return a};
IL=function(a){var b=HL();try{if(b.canPlayType){a=a?Sja:Tja;for(var c=0;c<a.length;c++)if(b.canPlayType(a[c]))return null}return"fmt.noneavailable"}catch(d){return"html5.missingapi"}};
JL=function(){var a=HL();try{var b=a.muted;a.muted=!b;return a.muted!=b}catch(c){}return!1};
KL=function(a){a=g.ne("DIV",{"class":a});window.document.body.appendChild(a);var b="none"==g.fh(a,"display");g.we(a);return b};
LL=function(){this.length=1};
ML=function(){this.buffered=new LL};
NL=function(a){MJ.call(this);this.g=a;this.A={}};
OJ=function(a,b){var c=a.Uc();a.g.src=b;a.Nf(c)};
QJ=function(a){return a.g.buffered||IJ()};
OL=function(a,b,c){g.bh(a.g,b,c)};
PL=function(a,b){this.o=a;this.A=b;this.B=0;Object.defineProperty(this,"timestampOffset",{get:this.YR,set:this.cS});Object.defineProperty(this,"buffered",{get:this.WR})};
Uja=function(){this.length=0};
QL=function(a){this.activeSourceBuffers=this.sourceBuffers=[];this.g=a;this.o=window.NaN;this.A=0;Object.defineProperty(this,"duration",{get:this.XR,set:this.bS});Object.defineProperty(this,"readyState",{get:this.ZR});this.g.addEventListener("webkitsourceclose",(0,g.A)(this.aS,this),!0)};
RL=function(a,b,c,d,e,f){g.CJ.call(this);this.o=this.g=null;this.C=b;this.A=window.MediaSource?new window.MediaSource:window.WebKitMediaSource?new window.WebKitMediaSource:new QL(a.pa());this.G=this.D=this.F=null;this.K=d;this.W=c;this.J=e;this.B=f;DJ(this,this.A,["sourceopen","webkitsourceopen"],this.O);DJ(this,this.A,["sourceclose","webkitsourceclose"],this.M)};
Vja=function(a,b){a.D=b};
Wja=function(a,b){a.G=b};
Xja=function(a){if(!a.F){var b=a.A;b=b.nT?b.g.webkitMediaSourceURL:window.URL.createObjectURL(b);a.F=new RI(b,!0)}return a.F};
TL=function(a,b){SL(a)?a.A.duration=b:a.C=b};
SL=function(a){try{return"open"==a.A.readyState}catch(b){return!1}};
UL=function(a){try{return"closed"==a.A.readyState}catch(b){return!0}};
VL=function(a){return!!(a.g&&a.g.updating||a.o&&a.o.updating)};
WL=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)};
XL=function(a){return a.g?!!a.g.appendBuffer:WL()};
YL=function(a){if(/opus/.test(a)&&(g.UE&&!li("38")||VE()))return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!RE())return!1;'audio/mp4; codecs="mp4a.40.2"'==a&&(a='video/mp4; codecs="avc1.4d401f"');return!!HL().canPlayType(a)};
g.ZL=function(){this.Eg=this.Dg=!1;this.C=20971520;this.F=8388608;this.o=window.NaN;this.fa=3145728;this.M=62914560;this.ga=10485760;this.Oe=this.qb=0;this.K=window.NaN;this.Lp=65536;this.Lg=this.uc=2;this.Kg=25;this.G=2097152;this.Jg=1048576;this.ba=!1;this.P=1800;this.Ta=this.je=5;this.rb=10;this.W=30;this.Hb=1;this.g=1.15;this.B=1.05;this.Pe=8;this.yi=!1;this.sf=!0;var a;!(a=NE("xboxone"))&&(a=TE())&&(a=/WebKit\/([0-9]+)/.exec(g.Gb),a=!(a&&602<=(0,window.parseInt)(a[1],10)));this.np=a||OE();this.Na=
15;this.Bb=90;this.ra=!1;this.Sa=this.oa=!0;this.wc=g.UE&&!0;this.Np=!0;this.xi=this.ua=!1;this.yh=.8;this.Ig=this.Hg=!1;this.ka=!0;this.ca=0;this.Ub=this.J=this.Ed=!1;this.Ja=25;this.Ah=!0;this.zh=this.zb=!1;this.O=6;this.he=!1;this.wi=this.oc=this.Yb=0;this.Gg=!1;this.da=0;this.tb=this.Za=!1;this.D=.5;this.ha=0;this.Fg=!1;this.Ra=0;this.Rd=this.qf=this.Fa=!1;this.xb=0;this.rf=this.A=this.Dc=this.ie=this.Cd=this.Dd=!1;this.Oa=0;this.sa=!1};
Yja=function(a,b){1080<b.video.o&&!a.Dg&&(a.C=36700160,a.F=5242880,a.fa=10485760,a.G=4194304,a.Dg=!0);2160<b.video.o&&!a.Eg&&(a.C=104857600,a.K=13107200,a.Eg=!0);a.Jg=Math.min(a.G,5*b.g)};
Zja=function(a,b){var c=new g.ZL;c.Hb=a.experiments.o("html5_throttle_rate")||c.Hb;a.experiments.g("html5_streaming_xhr")&&(c.ua=!0);c.ca=a.experiments.o("html5_idle_preload_secs");a.experiments.g("html5_use_mediastream_timestamp")&&(c.J=!0);c.yi=a.experiments.g("html5_use_long_term_bandwidth_estimator");c.O=a.experiments.o("html5_min_buffer_to_resume");c.Yb=a.experiments.o("html5_variability_discount");c.oc=a.experiments.o("html5_variability_no_discount_thresh");c.wi=a.experiments.o("html5_variability_full_discount_thresh");
a.experiments.o("html5_max_av_sync_drift")&&(c.Ja=a.experiments.o("html5_max_av_sync_drift"));var d=a.schedule;d.A.o()==d.policy.D?c.W=10:c.W=a.experiments.o("html5_throttle_burst_secs")||c.W;a.experiments.o("html5_min_secs_between_format_selections")&&(c.Pe=a.experiments.o("html5_min_secs_between_format_selections"));c.da=a.experiments.o("html5_local_max_byterate_lookahead");c.Za=a.experiments.g("html5_stop_overlapping_requests");c.qb=a.experiments.o("html5_min_readbehind_secs");c.Oe=a.experiments.o("html5_min_readbehind_cap_secs");
a.experiments.g("html5_no_clear_on_quota_exceeded")&&(c.tb=!0,c.D=.8);c.ha=a.experiments.o("html5_min_startup_smooth_target")||c.ha;c.Fg=a.experiments.g("html5_preload_size_excludes_metadata");c.Ra=a.experiments.o("html5_max_readahead_bandwidth_cap");c.Fa=a.experiments.g("disable_html5_copy_pre_moof");c.qf=a.experiments.g("html5_disable_audio_append_cap");c.Rd=a.experiments.g("html5_disable_non_contiguous");c.xb=a.experiments.o("html5_post_interrupt_readahead");c.Dd=a.experiments.g("html5_enable_loader_dvr_window_check");
c.Cd=a.experiments.g("html5_disable_urgent_upgrade_for_quality");c.ie=a.experiments.g("html5_log_quota_exceeded");a.experiments.g("html5_always_enable_timeouts")&&(c.wc=!1);c.Dc=a.experiments.g("html5_clearance_fix");c.Ta=a.experiments.o("html5_repredict_misses")||c.Ta;a.experiments.g("html5_new_fallback")&&(c.A=!0,c.Bb=10,c.je=10);c.rf=a.experiments.g("html5_no_downgrade_with_tbd");c.Oa=a.experiments.o("html5_observed_downgrade_prop");if(TE()||a.experiments.g("dash_html5_safari8_workarounds"))c.ra=
!0;if(NE("trident/")||NE("edge/"))c.o=240;g.dh&&(c.M=41943040);g.$L(a)||!WL()?(c.C=8388608,c.F=524288,c.uc=5,c.fa=2097152,c.G=1048576,c.Lg=1.5,c.Kg=15,c.ba=!WL(),c.sf=!1,c.K=4587520,QE()&&(c.K=786432),c.g*=1.1,c.B*=1.1,c.Ig=!0,c.M=c.C,c.ga=c.F):a.isMobile&&(c.g*=1.3,c.B*=1.3);VE()&&(d="CHROMECAST/ANCHOVY"==a.B.cmodel,c.C=20971520,c.F=1572864,d&&(c.K=812500,c.P=1E3));c.Np=a.D;c.xi=!a.experiments.g("disable_fpa_sei_removal")&&NE("windows nt")&&b.Xh();b.bf()&&(a.experiments.g("disable_html5_manifestless_delay")||
(c.Ed=!0),c.oa=!1,a.experiments.g("html5_manifestless_always")&&(c.Sa=!1,c.sa=!0));a.isAd()&&(c.O=0);a.experiments.g("html5_streaming_response_mediastream_rewrite")&&b.jb&&b.jb.videoInfos.length&&LI(b.jb.videoInfos[0])&&!g.PE()&&(c.ua=!0,c.J=!0,c.Ub=!0);/^re/.test(b.clientPlaybackNonce)&&(c.Gg=!0,c.zb=!0);c.he=b.ah;/^pp/.test(b.clientPlaybackNonce)&&(c.zh=!0,c.zb=!0);a.schedule.policy.A=b.bf()?.5:0;if(d=a.experiments.o("html5_deadzone_multiplier"))c.g*=d,c.B*=d;if(d=a.experiments.o("html5_request_sizing_multiplier"))c.yh=
d;a.experiments.g("html5_strip_emsg")&&(c.Hg=!0);c.o=a.experiments.o("html5_max_buffer_duration")||c.o;c.Na=a.experiments.o("html5_max_buffer_health_for_downgrade")||c.Na;c.rb=a.experiments.o("html5_min_upgrade_health")||c.rb;a.experiments.g("disable_html5_streaming_response_timing")&&(c.Ah=!1);aM(a.O,bM)&&(c.K=window.NaN);return c};
cM=function(a,b){this.start=a;this.end=b;this.length=b-a+1};
dM=function(a){a=a.split("-");return 2==a.length&&(a=new cM((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};
eM=function(a,b){return new cM(a,a+b-1)};
fM=function(a,b,c,d,e,f,k,l,m){this.g=b;this.range=c;this.type=a;this.Ga=0<=d?d:-1;this.startTime=e||0;this.duration=f||0;this.o=k||0;this.ub=0<=l?l:this.range?this.range.length:window.NaN;this.D=!!m;this.range?(this.A=this.o+this.ub==this.range.length,this.C=this.startTime+this.duration*this.o/this.range.length,this.F=this.duration*this.ub/this.range.length):(this.A=0!=this.ub,this.C=this.startTime,this.F=this.duration);this.B=this.C+this.F};
$ja=function(a,b,c){var d=!(!b||b.g!=a.g||b.type!=a.type||b.Ga!=a.Ga);return c?d&&(a.range&&b.range?b.range.end==a.range.end:b.range==a.range)&&b.o+b.ub==a.o+a.ub:d};
gM=function(a){return 1==a.type||2==a.type};
hM=function(a,b,c){return c||a.g==b.g?a.range&&b.range?a.range.start+a.o+a.ub==b.range.start+b.o:a.Ga==b.Ga?a.o+a.ub==b.o:a.Ga+1==b.Ga&&0==b.o&&a.A:!1};
aka=function(a){1==a.length||(0,g.Ar)(a,function(a){return!!a.range});
for(var b=1;b<a.length;b++);b=a[a.length-1];return new cM(a[0].range.start+a[0].o,b.range.start+b.o+b.ub-1)};
jM=function(a){var b="";g.Ib(iM(a),function(a,d){b+=d+"="+a+","});
return b.slice(0,-1)};
iM=function(a){var b={};b.itag=HI(a.g.info);b.seg=a.Ga;a.range&&(b.range=""+(a.range.start+a.o)+"-"+(a.range.start+a.o+a.ub-1));b.time=""+a.C.toFixed(1)+"-"+(a.C+a.F).toFixed(1);b.off=a.o;return b};
kM=function(a,b){this.o=a;this.g=0;this.A=b||0};
lM=function(a){return a.g>=a.o.byteLength};
bka=function(a){var b=new kM(a);mM(b);if(nM(b,[408125543,374648427,174,224]))b=oM(b);else return null;for(var c=a=null;!lM(b);){var d=pM(b,!1);if(21432==d)switch(qM(b)){default:a=0;break;case 1:a=1;break;case 3:a=2;break;case 15:a=255}else 30320==d?c=oM(b):rM(b)}if(!c)return null;for(var b=null,e;!lM(c);)switch(d=pM(c,!1),d){case 30321:if(3!=qM(c))return null;break;case 30324:sM(c);break;case 30323:b=sM(c);break;case 30325:sM(c);break;case 30322:e=pM(c,!0);e=tM(c,e);e=new window.DataView(e.buffer,
e.byteOffset,e.byteLength);break;default:rM(c)}return e?new qL(a,b,e):null};
oM=function(a){var b=pM(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 kM(c,a.A+a.g);a.g+=b;return c};
qM=function(a){for(var b=pM(a,!0),c=uM(a),d=1;d<b;d++)c=256*c+uM(a);return c};
sM=function(a){var b=pM(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};
rM=function(a){var b=pM(a,!0);a.g+=b};
mM=function(a){var b=a.g;a.g=0;var c=!1;vM(a,440786851)&&(a.g=0,vM(a,408125543)&&(c=!0));a.g=b;return c};
wM=function(a){var b=a.g;a.g=0;var c=1E6;nM(a,[408125543,357149030,2807729])&&(c=qM(a));a.g=b;return c};
cka=function(a,b){var c=a.g;a.g=0;if(!xM(a)||!vM(a,160))return a.g=c,window.NaN;pM(a,!0);var d=a.g;if(!vM(a,161))return a.g=c,window.NaN;pM(a,!0);uM(a);var e=uM(a)<<8|uM(a);a.g=d;if(!vM(a,155))return a.g=c,window.NaN;d=qM(a);a.g=c;return(e+d)*b/1E9};
xM=function(a){if(mM(a)){if(!vM(a,408125543))return!1;pM(a,!0)}if(!vM(a,524531317))return!1;pM(a,!0);return!0};
nM=function(a,b){for(var c=0;c<b.length;c++){if(!vM(a,b[c]))return!1;c!=b.length-1&&pM(a,!0)}return!0};
vM=function(a,b){if(lM(a))return!1;for(;pM(a,!1)!=b;)if(rM(a),lM(a))return!1;return!0};
pM=function(a,b){var c=uM(a);if(1==c){for(var d=c=0;7>d;d++)c=256*c+uM(a);return c}for(var e=128,d=0;6>d&&e>c;d++)c=256*c+uM(a),e*=128;return b?c-e:c};
uM=function(a){return a.o.getUint8(a.g++)};
tM=function(a,b){var c=new window.Uint8Array(a.o.buffer,a.o.byteOffset+a.g,b);a.g+=b;return c};
yM=function(a,b,c,d,e){this.info=a;this.g=b;this.range=c;this.o=null;this.B=d;this.A=e};
zM=function(a){return a.range?new window.DataView(a.g,a.range.start,a.range.length):new window.DataView(a.g)};
AM=function(a,b){b=Math.min(b,a.info.ub);var c=eM(a.range.start,b);return[new yM(new fM(a.info.type,a.info.g,a.info.range,a.info.Ga,a.info.startTime,a.info.duration,a.info.o,b,!1),a.g,c,a.B,a.A),new yM(new fM(a.info.type,a.info.g,a.info.range,a.info.Ga,a.info.startTime,a.info.duration,a.info.o+b,a.info.ub-b,a.info.D),a.g,new cM(c.end+1,a.range.end),a.B,!1)]};
BM=function(a,b){if(LI(a.info.g.info)){for(var c=a.info.g.g,d=new window.DataView(a.g),e=window.NaN,f=window.NaN,k=0;xL(d,k);){var l=yL(d,k);(0,window.isNaN)(e)&&(1936286840==l.type?e=CL(l):1836476516==l.type&&(e=vL(l)));if(1952867444==l.type){!e&&c&&(e=wL(c));var m=BL(l);(0,window.isNaN)(f)&&(f=Math.round(b*e)-m);AL(l,m+f)}k=zL(l.type)?k+8:k+l.size}return!0}c=new kM(new window.DataView(a.g));e=a.A?c:new kM(new window.DataView(a.info.g.g.buffer));d=b;f=wM(e);e=c.g;c.g=0;if(xM(c)&&vM(c,231))if(k=pM(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};
CM=function(a){var b;if(LI(a.info.g.info)){for(var c=b=0,d=new window.DataView(a.g);xL(d,b);){var e=yL(d,b);if(1936286840==e.type)var f=CL(e),k=DL(e),c=c+k/f;b=zL(e.type)?b+8:b+e.size}b=c||window.NaN;if(!(0<=b))a:{b=a.info.g.g;for(var c=0,d=new window.DataView(a.g),l,e=0;xL(d,c);){f=yL(d,c);if(1836476516==f.type)l=vL(f);else if(1836019558==f.type){!l&&b&&(l=wL(b));if(!l){b=window.NaN;break a}k=sL(f.data,f.g,1953653094);e+=tL(k,l)}c=zL(f.type)?c+8:c+f.size}b=e||window.NaN}}else l=new kM(new window.DataView(a.g)),
b=a.A?l:new kM(new window.DataView(a.info.g.g.buffer)),b=cka(l,wM(b));return b||a.info.F};
DM=function(a){var b=new window.DataView(a.g);b=(b=uL(b,1936286840))?CL(b):window.NaN;(0,window.isNaN)(b)&&(b=a.info.g.g,a=new window.DataView(a.g),b=(a=uL(a,1836476516))?vL(a):b?wL(b):window.NaN);return b};
EM=function(a){return LI(a.info.g.info)?a.o?a.o.C&&!!sL(new window.DataView(a.g),0,1718909296):!1:mM(new kM(new window.DataView(a.g)))};
dka=function(){this.g=this.lf=this.o=this.A=0};
FM=function(a){a.A=(0,g.sG)();a.o=0;a.lf=0;a.g=0};
GM=function(a,b){a[b]||(a[b]=new dka);return a[b]};
HM=function(a){return(a=eka.exec(a))?a[0]:""};
IM=function(a){return fka.test("https://"+a+"/")};
JM=function(a){a=new g.Ll(a);Ml(a,window.document.location.protocol);g.Nl(a,window.document.location.hostname);window.document.location.port&&g.Ol(a,window.document.location.port);return a.toString()};
KM=function(a){a=new g.Ll(a);Ml(a,window.document.location.protocol);return a.toString()};
LM=function(a){this.B=a;this.C=this.o=this.D="";this.g={};this.A=""};
MM=function(a){a.A||(a.A=gka(a));return a.A};
OM=function(a){NM(a);return a.C};
PM=function(a){NM(a);return Kb(a.g,function(a){return null!==a})};
QM=function(a,b){NM(a);if("/videoplayback"!=a.o){var c=a.clone();c.set("playerfallback",""+b);return c}c=MM(a);var d=new g.Ll(c),e=d.o.match("\\.a1\\.googlevideo\\.com$");d.o.match("\\.googlevideo\\.com$")?(g.Nl(d,"redirector.googlevideo.com"),c=d.toString()):d.o.match("r[1-9].*\\.c\\.youtube\\.com$")?(g.Nl(d,"www.youtube.com"),c=d.toString()):c=JM(c);c=new LM(c);b&&c.set("cmo=pf",""+b);e&&c.set("cmo=td","a1.googlevideo.com");return c};
NM=function(a){if(a.B){if(!RM.test(a.B))throw Error("Untrusted URL: "+a.B);var b=g.Yl(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=SM(c);g.za(a.g,TM(b.dw()));g.za(a.g,d);"index.m3u8"==a.g.file&&(delete a.g.file,a.o+="/file/index.m3u8");a.B="";a.A=""}};
gka=function(a){NM(a);var b=a.D+(a.D?"://":"//")+a.C+a.o;if(PM(a)){var c=[];g.Ib(a.g,function(a,b){null!==a&&c.push(b+"="+a)});
b+="?"+c.join("&")}return b};
SM=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&UM(c,a[b],a[b+1]);return c};
TM=function(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?UM(b,d.substr(0,e),d.substr(e+1)):d&&(b[d]="")}return b};
UM=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};
VM=function(a){this.g=a;this.o={};this.A=""};
hka=function(a,b){var c=b.indexOf("?");if(0<c){var d=TM(b.substr(c+1));g.Ib(d,function(a,b){this.set(b,a)},a);
b=b.substr(0,c)}c=SM(b);g.Ib(c,function(a,b){this.set(b,a)},a)};
g.WM=function(a){a.A||(a.A=ika(a));return a.A};
ika=function(a){var b=MM(a.g),c=[];g.Ib(a.o,function(a,b){c.push(b+"="+a)});
if(!c.length)return b;var d=c.join("&");a=PM(a.g)?"&":"?";return b+a+d};
XM=function(a,b){var c=new LM(b),d=c.get("req_id");d&&a.set("req_id",d);g.Ib(a.o,function(a,b){c.set(b,null)});
return c};
jka=function(a){this.C=a.clone();this.D=a;this.o=null;this.A=0;this.B=-1;this.g=0};
YM=function(a){a.o||(a.o=QM(a.C,a.A||1));return a.o};
ZM=function(a,b){this.o=a[0].g.C;this.A=b||"";this.g=a;this.range=this.g[0].range&&0<this.g[0].ub?aka(this.g):null;this.B=window.NaN;this.requestId=null};
g.$M=function(a,b,c,d){if(/http[s]?:\/\//.test(a.A))var e=new VM(new LM(a.A));else{var f=a.o;e=f.D;if(b.A){if(b=GM(c,OM(e)),2<=b.lf||1<=b.g)f=YM(f),c=GM(c,OM(f)),c.lf+c.g<=b.lf+b.g&&(e=f)}else 0<f.A&&(e=YM(f));e=new VM(e);a.A&&hka(e,a.A)}(d=d||a.range)&&e.set("range",d.toString());a.requestId&&e.set("req_id",a.requestId);(0,window.isNaN)(a.B)||e.set("headm",a.B.toString());return e};
aN=function(a){if(a.range)return a.range.length;a=a.g[0];return Math.round(a.F*a.g.info.g)};
bN=function(a,b,c,d){this.index=null;this.info=b;this.initRange=c||null;this.Gj=!(void 0===d||!d);this.g=null;this.B=this.o=!1;this.C=new jka(a);this.F=null};
cN=function(a,b,c,d,e,f,k){k=void 0===k?0:k;bN.call(this,a,b,d,void 0===f?!1:f);this.index=e||new g.eL;this.D=k;this.J=c;this.G=!0;if(this.A=!c)this.o=!0};
dN=function(a,b,c){this.segments=[];this.o=a;this.A=void 0===b?0:b;this.g=void 0===c?!1:c};
fN=function(a,b){var c=eN(a,b);return 0<=c&&!a.segments[c].g};
eN=function(a,b){return g.wb(a.segments,{Ga:b},function(a,b){return a.Ga-b.Ga})};
gN=function(a,b,c){return new dL(b,c.startTime-(c.Ga-b)*a.o,a.o,0,"sq/"+b,void 0,void 0,!0)};
hN=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?14400:f;cN.call(this,a,b,"",void 0,void 0,c,d);this.index=new dN(d||0,f,e)};
iN=function(a){return a.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2})\:(\d{2})\:(\d{2})\.(\d{3})$/)?a+"Z":a};
jN=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""};
kN=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};
lN=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)};
kka=function(a,b,c,d,e){this.Ga=a;this.Pd=b;this.durationSecs=c;this.g=d||window.NaN;this.o=e||window.NaN};
mN=function(){this.g=[];this.o=null;this.C=0;this.B=[];this.A=!1;this.D=""};
lka=function(a){var b=a.B;a.B=[];return b};
mka=function(){this.B=[];this.g=null;this.o={};this.A={}};
qka=function(a,b,c){var d=[];b=g.ka(b.getElementsByTagName("SegmentTimeline"));for(var e=b.next();!e.done;e=b.next()){var e=e.value,f=e.parentNode.parentNode,k=null;"Period"==f.nodeName?k=nka(a):"AdaptationSet"==f.nodeName?k=oka(a,f.attributes.id?f.attributes.id.value:f.attributes.mimetype.value):"Representation"==f.nodeName&&(k=pka(a,f.attributes.id.value));if(null==k)return;k.update(e,c);pb(d,lka(k))}zb(d,function(a){return a.Pd});
pb(a.B,d)};
rka=function(a){a.g&&(a.g.g=[]);g.Ib(a.o,function(a){a.g=[]});
g.Ib(a.A,function(a){a.g=[]})};
nka=function(a){a.g||(a.g=new mN);return a.g};
oka=function(a,b){a.o[b]||(a.o[b]=new mN);return a.o[b]};
pka=function(a,b){a.A[b]||(a.A[b]=new mN);return a.A[b]};
g.nN=function(){this.La=0;this.g=new window.Float64Array(128);this.o=new window.Float64Array(128);this.B=1;this.A=!1};
oN=function(a){if(a.g.length<a.La+1){var b=2*a.g.length,b=b+2,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.La+1;b++)a.g[b]=c[b],a.o[b]=d[b]}};
pN=function(a,b,c,d,e,f,k){bN.call(this,a,b,c||void 0,void 0===k?!1:k);this.indexRange=d;this.D=null;this.index=new g.nN;this.A=e;this.lastModified=f};
qN=function(a,b,c,d){for(var e=[];b<=a.index.Ic();b++){var f=a.index,f=eM(f.sn(b),b+1<f.La||f.A?f.g[b+1]-f.g[b]:-1),k=a.index.Pf(b),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 fM(3,a,f,b,k,l,m,n,b==a.index.Ic()&&m+n==f.length));if(f.start+m+n>=c+d)break}return new ZM(e)};
rN=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?rN(a,d,c):b})};
ska=function(a,b){return rN(function(a,b){return dF(a,b,4,1E3)},a,b)};
sN=function(a,b,c){a=void 0===a?"":a;b=void 0===b?null:b;c=void 0===c?!1:c;g.RF.call(this);this.W=this.duration=0;this.isLive=this.A=!1;this.K=(0,g.sG)();this.D=window.Infinity;this.g={};this.ca=a||"";this.F=this.M=0;this.C=null;this.ka=!!b&&b.g("html5_live_nonzero_first_segment_start_time");this.o=!1;this.G=[];this.oa=!!b&&b.g("html5_live_self_init_segments");this.B=null;this.ra=c;this.ha=!b||!b.g("html5_manifest_without_credentials");this.O=0;this.P=!!b&&b.g("disable_html5_manifest_namespace_redux");
this.fa="";this.J=window.NaN;this.ga=b&&b.g("disable_html5_duration_caching")?window.Infinity:10;this.da=!!b&&b.o("html5_stale_dash_manifest_retry_factor")||1};
tka=function(a){return Kb(a.g,function(a){return!!a.info.video&&2160<=a.info.video.o})};
tN=function(a){return Kb(a.g,function(a){return!!a.info.Zc})};
uN=function(a,b,c,d,e,f){c=void 0===c?0:c;e=void 0===e?!1:e;return(void 0===d?0:d)?uka(a,b,e,f):vka(a,b,c,e)};
vka=function(a,b,c,d){c=void 0===c?0:c;d=void 0===d?!1:d;var e=new sN;e.duration=c||0;(0,g.H)(a,function(a){var c=vN(a,b,e.duration),f=dM(a.init),m=dM(a.index),n=(0,window.parseInt)(a.clen,10),q=wN(a.url,c,a.s);a=(0,window.parseInt)(a.lmt,10);q&&(c=new pN(q,c,f,m,n,a,d),e.g[c.info.id]=c)});
return e};
uka=function(a,b,c,d){c=void 0===c?!1:c;var e=new sN("",null,!0);(0,g.H)(a,function(a){var f=vN(a,b),l=wN(a.url,f,a.s);a=(0,window.parseInt)(a.target_duration_sec,10);l&&(f=new hN(l,f,c,a,d&&d.g("html5_manifestless_always")),e.g[f.info.id]=f)});
e.A=!0;e.o=!0;e.isLive=!0;return e};
vN=function(a,b,c){c=void 0===c?0:c;var d=a.type,e=a.itag,f=wka(a),k=null;OI(d)&&(k=(a.size||"640x360").split("x"),k=new FI(+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=xka(d,k));var l=null,m=null;if(NI(d)){l=0;if("258"==e||"261"==e)l=6;l=new CI(l,+a.spatial_audio_type);a.name&&(m=new mI(a.name,a.audio_track_id,"1"==a.isDefault))}var e=(0,window.parseInt)(a.bitrate,10)/8,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 II(f,d,l,k,m,q,e,c)};
wka=function(a){var b=a.itag;a.xtags&&(b=a.itag+";"+a.xtags);return b};
wN=function(a,b,c){c=void 0===c?"":c;var d=new LM(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",pE(c));return d};
zN=function(a,b){var c=jN(b,"id"),c=c.replace(":",";");"captions"==c&&(c=jN(b,"lang"));var d=jN(b,"mimeType"),e=jN(b,"codecs"),d=e?d+'; codecs="'+e+'"':d,e=(0,window.parseInt)(jN(b,"bandwidth"),10)/8,f=(0,window.parseInt)(kN(b,"BaseURL").getAttribute(xN(a,"contentLength")),10),f=a.duration&&f?f/a.duration:0,k=null;if(OI(d)){var k=(0,window.parseInt)(jN(b,"width"),10),l=(0,window.parseInt)(jN(b,"height"),10),m=(0,window.parseInt)(jN(b,"frameRate"),10),n=yka(jN(b,xN(a,"projectionType")));a:switch(jN(b,
xN(a,"stereoLayout"))){case "layout_left_right":var q=1;break a;case "layout_top_bottom":q=2;break a;default:q=0}k=new FI(k,l,m,n,q)}m=l=null;if(NI(d)){jN(b,"audioSamplingRate");var l=(0,window.parseInt)(jN(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"),10),r,m=jN(b,xN(a,"spatialAudioType"));"spatial_audio_type_ambisonics_5_1"==m?r=1:"spatial_audio_type_ambisonics_quad"==m&&(r=2);l=new CI(l,r);r=jN(b,"lang")||"und";(m=kN(b,"Role"))?(q=jN(m,"value")||"",Qb(yN,q)?(m=r+"."+yN[q],n="main"==
q,r=jN(b,xN(a,"langName"))||r+" - "+q,m=new mI(r,m,n)):m=null):m=null}n=null;if(r=kN(b,"ContentProtection"))if(g.PE())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 II(c,d,l,k,m,n,e,f)};
yka=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}};
AN=function(a,b){b=void 0===b?"":b;a.F=1;a.K=(0,g.sG)();return g.cg(ska(b||a.ca,{format:"RAW",method:"GET",withCredentials:a.ha}).then((0,g.A)(a.uG,a)),(0,g.A)(a.xG,a))};
zka=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=dM(a):d=d+"?range="+a));return new dL(b.Ga,b.Pd,b.durationSecs,b.g,d,e,b.o)};
BN=function(a){return a.isLive&&(0,g.sG)()-a.K>=a.D};
CN=function(a,b){var c=b||1<=a.da?a.D:a.D*a.da*(1+Math.random());(0,window.isFinite)(c)&&(BN(a)?a.ey():(c=Math.max(0,a.K+c-(0,g.sG)()),a.B||(a.B=new g.qt(a.ey,c,a),g.N(a,a.B)),a.B.start(c)))};
DN=function(a){if(!(0,window.isNaN)(a.J))return a.J;var b=a.g,c;for(c in b){var d=b[c].index;if(d&&d.Pb()){b=0;for(c=d.mg();c<=d.Ic();c++)b+=d.getDuration(c);b/=d.Pi();b=.5*Math.round(b/.5);d.Pi()>a.ga&&(a.J=b);return b}if(a.isLive&&(d=b[c],d.D))return d.D}return window.NaN};
EK=function(a,b){for(var c in a.g){var d=a.g[c].index;if(d&&d.Pb()){var e=d.Vg(b),f=d.sr(e);if(f)return f+b-d.Pf(e)}}return window.NaN};
Aka=function(a,b){g.Ib(a.g,function(a){g.Ib(b,function(b,c){var d=a.C;d.D.set(c,b);d.C.set(c,b);d.o&&d.o.set(c,b)})})};
EN=function(a,b){var c=!1,d;for(d in a.g){var e=a.g[d].index;fN(e,b.Ga)||(e.by(b),c=!0)}return c};
xN=function(a,b){return a.P?"yt:"+b:a.fa+":"+b};
xka=function(a,b){if('video/webm; codecs="vp9.2"'!=a)return a;null===FN&&(FN=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"'));FN&&(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};
GN=function(a,b,c){this.g=a;this.o=b;this.C=c;this.B={};this.A=null;this.fairPlayCert=""};
IN=function(a){return!a.A&&!!HN()&&"com.microsoft.playready"==a.o};
JN=function(a){return!a.A&&!!HN()&&"com.apple.fps.1_0"==a.o};
HN=function(){var a=window.MSMediaKeys;TE()&&!a&&(a=window.WebKitMediaKeys);return a&&a.isTypeSupported?a:null};
MN=function(a){return window.navigator.requestMediaKeySystemAccess?g.UE?li("45"):g.KN?a.g("edge_nonprefixed_eme"):g.LN?li("47"):!a.g("html5_no_nonprefixed_eme_for_other"):!1};
NN=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 qI(a.id,a.Sc);d[a.id]=b;this.audioTracks.push(b)}},this))}};
ON=function(a){this.A=a||null;this.o=0;this.g=null};
PN=function(a){var b=new ON;b.o=2;b.g=a;return b};
QN=function(a){var b=new ON;b.o=1;b.g=a;return b};
Bka=function(a,b,c){this.A=a;this.g=b;this.D=c;this.B={};this.C=!!g.x("cast.receiver.platform.canDisplayType");this.o=!this.C&&g.x("cast.receiver.platform.getValue")&&window.cast.receiver.platform.getValue("max-video-resolution-vpx")||null};
TN=function(a,b,c){if(2.2!=RN&&IL(a.g)||c)return PN();var d={};a=HL();b=g.ka(b);for(c=b.next();!c.done;c=b.next())if(c=c.value,HI(c.ye)in Cka||"5"==HI(c.ye)?0:SN(a,c.ye.mimeType)){var e=c.ye.video.quality;d[e]&&2!=d[e].ye.A||(d[e]=c)}var f=[];d.auto&&f.push(d.auto);(0,g.H)(DI,function(a){(a=d[a])&&f.push(a)});
return QN(f)};
UN=function(){var a=OE()&&!li(29),b=NE("google tv")&&NE("chrome")&&!li(30);return a||b?!1:!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&window.HTMLMediaElement.prototype.webkitSourceAddId)};
SN=function(a,b){var c=a.canPlayType(b);VN?c=c||Dka[b]:2.2==RN?c=c||Eka[b]:OE()&&(c=c||Fka[b]);return!!c};
g.WN=function(){return!(!SN(HL(),"application/x-mpegURL")&&!UN())};
XN=function(a,b){var c={},d;for(d in b.g){var e=b.g[d],f=HI(e.info);("304"!=f&&"266"!=f||b.A)&&Gka(a,e.info)&&(c[e.info.o]=c[e.info.o]||[],c[e.info.o].push(e.info))}return c};
Hka=function(a,b,c){var d={},e;g.Ib(b,function(a,b){var f=a.filter(function(a){return a.Zc?c&&a.Zc[c.g]&&c.B[a.mimeType]?"261"!=HI(a)||aM(this,YN)?!0:(e||(e=HL()),!1):!1:!0},this);
f.length&&(d[b]=f)},a);
return d};
cO=function(a,b,c,d,e){function f(a){return!!k[a]}
var k=XN(a,b);tN(b)&&(k=Hka(a,k,c));var l=a.A.g("html5_disable_vp9_hdr_enc")?Ika:Jka;a.g?!NE("windows nt 5.1")||g.LN&&!a.A.g("html5_prefer_h264_on_xp")?(b.bh()||b.tg())&&ZN&&6>=RN&&(l=$N):l=$N:l=Kka;c=Lka;d&&(a.g&&(l=$N),c=Mka);if(QE()||RE()||aM(a,YN))c=Nka;(b.bh()||b.tg())&&e&&(c=Oka.concat(c));b=g.$a(l,f);d=g.$a(c,f);if(!b||!d)return PN();"9"==b&&k.h&&(e=function(a,b){return Math.max(a,b.video.height)},c=Sd(k["9"],e,0),Sd(k.h,e,0)>1.5*c&&(b="h"));
e=k[b];c=k[d];e=aO(a,e);bO(e,c);return QN(new NN(e,c,Pka(a,k,b,d)))};
Pka=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=aO(a,e),bO(e,b),new NN(e,b)):null};
bO=function(a,b){g.yb(a,function(a,b){return b.video.height*b.video.width-a.video.height*a.video.width||b.g-a.g});
g.yb(b,function(a,b){return b.g-a.g})};
aO=function(a,b){var c=(0,g.Ek)(b,function(a){return 32<a.video.fps});
c&&(b=a.D||aM(a,dO)?(0,g.ye)(b,function(a){var b;(b=32<a.video.fps)||(a=a.video,b=!(854<a.width||480<a.height));return b}):(0,g.ye)(b,function(a){return!(32<a.video.fps)}));
c&&QE()&&(b=(0,g.ye)(b,function(a){return"299"!=HI(a)}));
return b};
Gka=function(a,b){if("0"==HI(b)&&!a.g)return!0;var c=b.mimeType;if(b.video&&(GI(b.video)||"bt2020"==b.video.primaries)&&48!=window.screen.pixelDepth&&!aM(a,eO)||"338"==HI(b)&&!(a.A.g("html5_chrome_ambisonics_opus")&&g.UE&&li(53)))return!1;var d={};b.video&&(b.video.width&&(d[fO.name]=b.video.width),b.video.height&&(d[gO.name]=b.video.height),b.video.fps&&(d[dO.name]=b.video.fps),b.video.g&&(d[eO.name]=b.video.g),b.g&&(d[bM.name]=8*b.g),"("==b.o&&(d[hO.name]="subsample"));b.audio&&b.audio.g&&(d[YN.name]=
b.audio.g);for(var e in iO){var f=iO[e];if(d[f.name]&&!(f==eO&&0<b.mimeType.indexOf("vp09.02")))if(aM(a,f))if(a.o){if(a.o[f.name]<d[f.name])return!1}else c=c+"; "+f.name+"="+d[f.name];else if(KI(b)&&f==eO)return!1}!a.A.g("disable_html5_cast_hdcp_filter2")&&a.C&&b.video&&1080<b.video.o&&b.Zc&&(c+="; hdcp=2.2");return jO(a,c)};
aM=function(a,b){if(!(b.name in a.B)){var c=a.B,d=b.name;if(a.o)var e=!!a.o[b.name];else b.video?(e='video/webm; codecs="vp9"',jO(a,e)||(e='video/mp4; codecs="avc1.4d401e"')):(e='audio/webm; codecs="opus"',jO(a,e)||(e='audio/mp4; codecs="mp4a.40.2"')),e=jO(a,e+"; "+b.name+"="+b.valid)&&!jO(a,e+"; "+b.name+"="+b.Wh);c[d]=e}return a.B[b.name]};
jO=function(a,b){return a.C?window.cast.receiver.platform.canDisplayType(b):YL(b)};
kO=function(){g.RF.call(this);this.Ka={}};
lO=function(a,b,c){if(!a.Ka[b]&&(c.Fh||c.Kj)){var d=a.Ka,e=c;Object.isFrozen&&!Object.isFrozen(c)&&(e=Object.create(c),Object.freeze(e));d[b]=e;a.Y("vast_info_card_add",b)}};
qO=function(a,b,c){var d;(d=a.adformat)||(d=(a=a.attrib)&&Qb(mO,a)&&Qb(nO,a)?nO[a]+"_"+mO[a]:void 0);a=d;if(!a)return null;d=a.match(oO);if(!d||5!=d.length)return null;d=pO(a);return b||c||d?a:null};
pO=function(a){a=a.match(oO);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)};
rO=function(a,b){return void 0==b?a:"1"==b?!0:!1};
sO=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a};
tO=function(a,b){return void 0==b?a:Number(b)};
uO=function(a,b){return void 0==b?a:b.toString()};
vO=function(a,b){if(b){if("fullwidth"==a)return window.Infinity;if("fullheight"==a)return 0}if(a){var c=a.match(Qka);if(c){var d=(0,window.parseFloat)(c[2]);if(0<d)return(0,window.parseFloat)(c[1])/d}}return window.NaN};
wO=function(a,b){var c=g.EI.auto,d=g.EI[b];return d>g.EI.medium?new TI(d,c,!1):d>=c?new TI(c,d,!1):a};
xO=function(a){return a.docid||a.video_id||a.videoId||a.id};
zO=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++){for(var c=(0,g.G)(),d=0;d<c%23;d++)a[b]=Math.random();a[b]=Math.floor(256*Math.random())}if(yO)for(b=1,c=0;c<yO.length;c++)a[b%16]=a[b%16]^a[(b-1)%16]/4^yO.charCodeAt(c),b++;return a};
g.AO=function(){return(0,g.I)(zO(),function(a){return(a&15).toString(16)}).join("")};
BO=function(){for(var a=zO(),b=[],c=0;c<a.length;c++)b.push("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a[c]&63));return b.join("")};
NO=function(a){g.M.call(this);a=g.Wb(a);this.g="detailpage";this.ca=null;this.Uq=this.Hb=this.ga=!1;this.K={};this.zh=uO("",a.csp_nonce);this.experiments=new QI(a.fexp,a.fflags);this.forcedExperiments=a.forced_experiments||null;try{var b=window.document.location.toString()}catch(f){b=""}this.tb=b;var c=this.P=(this.A=Rka.test(this.tb))?uO("",a.loaderUrl):this.tb,d=this.experiments.g("disable_trusted_ad_domains_player_check");b=Ska.test(c);if(d=!d)d=(new RegExp("^(https?:)?//([a-z0-9-]{1,63}\\.)*("+
Tka.join("|").replace(/\./g,".")+")(:[0-9]+)?([/?#]|$)","i")).test(c);!b&&d&&(c=Error("isTrustedLoader("+c+") behavior is not consistent"),.01>Math.random()&&g.qE(c,"WARNING"));this.Fb=b||d;this.rf=CO.test(this.P);this.ha=(this.IR=(this.Fg=rO(!1,a.ssl_stream))||rO(!1,a.ssl))?"https":"http";this.baseYtUrl=HM(a.BASE_YT_URL)||HM(this.tb)||this.ha+"://www.youtube.com/";"adunit"==a.el?this.g=this.rf?"adunit":"embedded":"embedded"==a.el||this.Fb?this.g=sO(this.g,a.el,Uka):a.el&&(this.g="embedded");uG();
b=null;c=a.ps;d=g.eb(DO,c);!c||d&&!this.Fb||(b=c);this.o=b;this.J=(this.Ac=g.eb(DO,this.o))&&"play"!=this.o&&"jamboard"!=this.o;this.qf=!this.J;b={};this.B=(b.c=a.c||"web",b.cver=a.cver||"html5",b.cplayer="UNIPLAYER",b);this.Fa=!(!HL().defaultPlaybackRate||g.Ve&&!NE("chrome")||EO||FO||NE("android")||NE("silk"));this.isMobile=rO("blazer"==this.o,a.is_html5_mobile_device);this.Lp=this.experiments.g("uniplayer_dbp")&&this.isMobile&&(!(this.A&&this.experiments.g("disallow_background_check_for_embed"))||
OE()&&li(54));this.W="3"==this.C||this.isMobile||rO(!1,a.use_media_volume);this.M=JL();this.XL=GO;this.Dd=(g.HO(this)||"TV_UNPLUGGED_CAST"==this.B.c)&&this.experiments.g("use_rawcc_captions");this.F=rO(!1,a.is_dni);this.rb=uO("#cc181e",a.dni_color);this.uc=rO("adunit"!=this.g&&"detailpage"!=this.g&&!this.Ac,this.experiments.g("embed_show_infobar")&&!this.F||a.showinfo);this.Dg=rO(!1,a.playsinline);b=this.isMobile&&ZN&&2.3>=RN;c=this.isMobile&&!(this.experiments.g("html5_prefer_standard_controls")&&
g.mn&&!YE());c=IO(this)||!b&&rO(c,a.use_native_controls)?"3":"1";this.C="0"!=a.controls?c:"0";this.useTabletControls=this.isMobile;this.color=sO("red",a.color,Vka);this.Np="3"==this.C||rO(!1,a.modestbranding)&&"red"==this.color;this.ka=0==this.P.indexOf(this.baseYtUrl);this.Hg=(c=!this.ka&&"detailpage"!=this.g&&!this.J&&!this.Ac)&&(this.F||!this.Np)&&"1"==this.C;this.Ig="embedded"==this.g&&c&&!this.uc&&!this.Hg;this.wR=this.tH=b;this.Ed=!FO||g.kc(601)?!0:!1;this.yi=this.A||!1;this.oa="detailpage"==
this.g?"":(this.P||a.post_message_origin||"").substring(0,128);this.widgetReferrer=uO("",a.widget_referrer);this.xb=(!this.Fb||rO(!0,a.enablecastapi))&&"1"==this.C&&!this.isMobile&&("detailpage"==this.g||"embedded"==this.g||"profilepage"==this.g);this.sa=rO(!1,a.enableunplugged);this.Ah=(this.da=rO(!1,a.autoplay))||"detailpage"==this.g;this.Rd=!this.isMobile&&!WE()&&!NE("nintendo 3ds")||rO(!1,a.autoplayoverride);b=!1;this.M&&!IO(this)&&this.experiments.g("mweb_muted_autoplay")?qi&&g.kc(602)?b=!0:
g.mn&&g.UE&&(b=YE()?57<=(0,window.parseFloat)(/Chrome\/(\d+)/.exec(g.Gb)[1]):53<=(0,window.parseFloat)(/Chrome\/(\d+)/.exec(g.Gb)[1])):b=!1;this.Cd=b;b=("detailpage"==this.g||"adunit"==this.g)&&("blazer"==this.o||"mweb-polymer"==this.o);this.Bb=!rO(!0,a.fs);this.ra=!this.Bb&&(b||vF());this.yh=this.experiments.g("uniplayer_block_pip")&&OE()&&li(58);this.wc=rO(!1,a.force_rel)||rO(!this.Ac,a.rel);this.JQ="adunit"!=this.g;this.Ra="profilepage"==this.g;this.oc="blazer"==this.o||"mweb-polymer"==this.o;
switch(this.o){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 "picasaweb":b="pw";break;default:b="yt"}this.Ta=b;this.Fc=uO("",a.authuser);this.ZQ=(this.experiments.g("embed_show_watchlater_login")&&this.A||!!this.Fc)&&rO(!this.J,a.showwatchlater);this.je=rO(!1,a.disablekb);this.Oe=uO("",a.ecver);this.xi=this.experiments.g("mweb_autonav")&&JO();this.loop=rO(!1,a.loop);this.pageId=
uO("",a.pageid);this.tI=wO(XI,a.vq);this.uI=uO("",a.playerapiid);this.IQ=rO(!0,a.canplaylive);this.wi=rO(this.Ac,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.Wd(b,c))):b=null;this.Kg=b;this.mute=(this.Fb||this.rf)&&rO(!1,a.mute);this.storeUserVolume=!this.mute&&rO("0"!=this.C,a.store_user_volume);this.Ng="3"==this.C?3:sO(void 0,a.iv_load_policy,KO);
this.Fi=uO("",a.cc_lang_pref);b=sO(2,a.cc_load_policy,KO);"3"==this.C&&2==b&&(b=3);this.Og=b;this.ua=void 0==a.content_v?void 0:a.content_v.toString();this.np=void 0==a.framer?void 0:a.framer.toString();this.Ja=uO("en_US",a.hl);this.region=uO("US",a.cr);this.hostLanguage=uO("en",a.host_language);this.Ub=rO(!1,a.privembed);this.fa=!this.Ub&&this.experiments.g("player_interaction_logging");this.sf="";this.zb=new window.Set;this.D=rO(!0,a.deviceHasDisplay);this.sg=tO(this.sg,a.ismb);this.Zf(a);this.K=
a;this.G=new kO;g.N(this,this.G);this.ba=this.isMobile;b=a;b.innertube_api_key&&b.innertube_api_version&&this.B.c&&b.innertube_context_client_version&&this.hostLanguage&&this.region||this.experiments.g("disable_innertube_config_reporting")||g.qE(Error("MISSING_INNERTUBE_CONFIG,api_key="+b.innertube_api_key+",api_version="+b.innertube_api_version+",interface="+this.B.c+",context_client_version="+b.innertube_context_client_version+",host_language="+this.hostLanguage+",region="+this.region));var c=uO("",
b.apiary_host),d=uO("",b.apiary_host_firstparty),e=uO("",b.xhr_apiary_host);this.experiments.g("disable_html5_apiary_url_validation")||(IM(c)||(c=""),IM(d)||(d=""),IM(e)||(e=""));this.Pe={apiaryHost:c,hp:d,gapiHintOverride:rO(!1,b.gapi_hint_override),gapiHintParams:uO("",b.gapi_hint_params),innertubeApiKey:uO("",b.innertube_api_key),innertubeApiVersion:uO("",b.innertube_api_version),Oq:this.B.c,innertubeContextClientVersion:uO("",b.innertube_context_client_version),Qq:this.hostLanguage,Pq:this.region,
Zm:"",xhrApiaryHost:e};this.Gg=void 0!=window.WebKitPlaybackTargetAvailabilityEvent;this.O=new Bka(this.experiments,this.D,LO(this)||QE()||RE()||/STEAK/.test(this.B.cmodel));b=new Oja;g.$L(this)&&(b.B=!0,b.F=.1);this.experiments.g("html5_ewma_bandwidth_estimator")&&(b.B=!0);this.experiments.g("html5_pctile_on_tv")&&(b.B=!1);this.experiments.g("html5_disable_aux_bandwidth_estimator")&&(b.M=!1);this.experiments.g("html5_use_long_term_bandwidth_estimator")&&(b.O=!0,b.G=this.experiments.o("html5_long_term_bandwidth_window_size")||
b.G);this.experiments.g("html5_elbow_tracking_tweaks")&&(b.J=!0,b.g=2048);this.sg&&(b.D=this.sg/8);b.C=this.experiments.o("html5_bandwidth_multisample_width")||b.C;b.o=this.experiments.o("html5_bandwidth_window_size")||b.o;b.K=this.experiments.g("html5_stall_pctile");this.schedule=new Pja(b);this.enableSafetyMode=rO(!1,a.enable_safety_mode);this.he=MO(this)&&"blazer"!=this.o&&"mweb-polymer"!=this.o;this.Na=rO(!1,a.send_visitor_id_header)||this.experiments.B;this.Dh=!1;this.Eg=XI};
OO=function(a,b){a.ie=b.get("d",a.ie);a.Dc=b.get("f",a.Dc)};
xK=function(a,b,c){return b.ph&&(a.experiments.g("legacy_autoplay_flag")||"detailpage"!=a.g||c||b.bn)};
PO=function(a){return a.experiments.g("king_crimson_player_redux")&&!a.Ac&&OE()&&li(55)&&!a.isAd()};
QO=function(a){var b=g.ug(a.baseYtUrl);(a=g.vg(a.baseYtUrl))&&(b+=":"+a);return"www.youtube-nocookie.com"==b?"www.youtube.com":b};
RO=function(a){return"gaming"==a.o?"gaming.youtube.com":QO(a)};
SO=function(a,b,c){return a.ha+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")};
g.TO=function(a,b){return a.baseYtUrl+"timedtext_video?ref=player&v="+b.videoId};
UO=function(a){return"detailpage"==a.g&&"gaming"!=a.o&&!g.HO(a)};
IO=function(a){return FO&&!a.Dg||WE()||NE("nintendo 3ds")?!0:!1};
g.$L=function(a){return VE()||"TV"==a.B.cplatform};
g.VO=function(){return 1<window.devicePixelRatio?window.devicePixelRatio:1};
LO=function(a){return"web"==a.B.c.toLowerCase().substr(0,3)};
g.HO=function(a){return"WEB_UNPLUGGED"==a.B.c};
JO=function(){g.x("yt.mobile.blazer.blazer_config.isMobilePersistentUniplayer");return!1};
g.WO=function(a){return a.D&&g.UE&&!VN&&"3"!==a.C?g.mn?a.experiments.g("spherical_on_android_iframe")&&a.A&&g.kc(51):!0:!1};
g.XO=function(a){return a.D&&g.LN&&!VN&&"3"!==a.C?g.mn?a.experiments.g("spherical_on_android_iframe")&&a.A&&g.kc(48):g.kc(38):!1};
ZO=function(a){return g.WO(a)||g.XO(a)||(a.D&&g.Ve&&!VN&&"3"!==a.C?g.mn?a.experiments.g("spherical_on_android_iframe")&&a.A&&g.kc(37):g.kc(27):!1)||a.D&&g.YO&&!XE()&&g.kc(11)||a.D&&ni&&a.experiments.g("safari_enable_spherical")};
Wka=function(a){return a.experiments.g("disable_html5_ambisonic_audio")||!(ZO(a)||a.experiments.g("html5_enable_spherical")||a.experiments.g("html5_enable_spherical3d"))||"embedded"==a.g&&ZN||g.LN&&(!g.kc(47)||!g.kc(52)&&g.kc(51))?!1:window.AudioContext||window.webkitAudioContext?!0:!1};
MO=function(a){return"detailpage"==a.g||"detailpage"==a.ca};
g.$O=function(a,b){this.version=a;this.args=b};
g.aP=function(a,b){this.topic=a;this.g=b};
g.cP=function(a,b){var c=bP();c&&c.publish.call(c,a.toString(),a,b)};
g.gP=function(a,b,c){var d=bP();if(!d)return 0;var e=d.subscribe(a.toString(),function(d,k){var f=g.x("ytPubsub2Pubsub2SkipSubKey");f&&f==e||(f=function(){if(dP[e])try{if(k&&a instanceof g.aP&&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.xh){var q=new f;f.xh=q.version}var r=f.xh}catch(w){}if(!r||l.version!=r)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{k=window.Reflect.construct(f,
g.ob(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.qE(w)}},eP[a.toString()]?g.BG()?g.CG(f,1,void 0):g.xE(f,0):f())});
dP[e]=!0;fP[a.toString()]||(fP[a.toString()]=[]);fP[a.toString()].push(e);return e};
g.hP=function(a){var b=bP();b&&(g.oa(a)&&(a=[a]),(0,g.H)(a,function(a){b.unsubscribeByKey(a);delete dP[a]}))};
bP=function(){return g.x("ytPubsub2Pubsub2Instance")};
jP=function(a,b){var c=g.gP(iP,function(d){a.apply(b,arguments);g.hP(c)},b);
return c};
kP=function(a,b){g.$O.call(this,1,arguments);this.g=a};
mP=function(a){this.g=a||window;this.J=this.A=0;if(this.g.performance&&this.g.performance.timing&&this.g.performance.getEntriesByType){a=g.he(this.g||window);this.G=new g.Ng(0,0,a.width,a.height);for(var b,c=[],d=this.g.document.getElementsByTagName("*"),e=0,f=d.length;e<f;e++){a=d[e];if("IMG"==a.tagName||"IFRAME"==a.tagName)if(b=lP(this,a,a.src)){if("IFRAME"==a.tagName){try{var k=(new mP(a.contentWindow)).A}catch(l){k=0}0<k&&(b.timing=k)}c.push(b)}(b=this.g.getComputedStyle(a)["background-image"])&&
(b=mP.g.exec(b))&&1<b.length&&(b=lP(this,a,b[1]))&&c.push(b)}this.o=c;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=Xka(this);this.B=Yka(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.J=f}};
lP=function(a,b,c){return c&&b.getBoundingClientRect&&(b=b.getBoundingClientRect(),b=new g.Ng(b.left,b.top,b.width,b.height),g.Rg(b,a.G))?new nP(b,c):null};
Xka=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;for(var l={},b=b.document.getElementsByTagName("head")[0].children,c=0,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};
Yka=function(a){var b={0:0},c=0,d=a.D;var e=0;for(var 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.Sg(k.region).Qc();b[l]+=k;c+=k}e=g.Sg(a.G).Qc();0<e&&(e=.1*Math.max(e-c,0),d in b||(b[d]=0),b[d]+=e,c+=e);d=[];if(c){for(var m in b)e=(0,window.parseFloat)(m),a=new oP(e,b[m]),d.push(a);d.sort(function(a,b){return a.timing-b.timing});
e=b=0;for(f=d.length;e<f;e++)a=d[e],b+=a.Qc,a.progress=b/c}return d};
nP=function(a,b){this.region=a;this.url=b};
oP=function(a,b){this.Qc=b;this.timing=a};
rP=function(a){pP(a);Zka();qP(!1,a);a||(g.ND("TIMING_ACTION")&&g.MD("PREVIOUS_ACTION",g.ND("TIMING_ACTION")),g.MD("TIMING_ACTION",""))};
FP=function(a,b){a:if(!sP(a)){if(!g.aF("send_empty_timing")){var c=g.ND("CSI_SERVICE_NAME","youtube");if(!g.ND((a||"")+"TIMING_ACTION",void 0)||!c)break a}g.tP("aa",void 0,a);g.uP("ap",1,a);g.uP("yt_fss","c",a);if(g.aF("enable_csi_abandonment_info")&&!a&&!vP("yt_lt")){var c=g.ND("TIMING_INFO",{}),d;for(d in c)g.uP(d,c[d]);g.uP("is_nav",1);(d=g.QG())&&g.uP("csn",d);(d=g.ND("PREVIOUS_ACTION",void 0))&&g.uP("pa",d);c=wP();c.p=g.ND("CLIENT_PROTOCOL")||"unknown";c.t=g.ND("CLIENT_TRANSPORT")||"unknown";
xP.now&&xP.timing?(d=xP.timing.navigationStart+xP.now(),d=Math.round((0,g.G)()-d)):d=null;null!=d&&g.uP("yt_hrd",d);window.navigator&&window.navigator.sendBeacon&&g.uP("ba",1);g.uP("yt_vis",yP());if("cold"==c.yt_lt){d=xP.timing||{};g.aF("cold_load_nav_start_web")&&d.navigationStart&&(g.tP("srt",d.responseStart),1!=c.prerender&&zP("n",d.navigationStart));b:if(d.msFirstPaint)c=Math.max(0,d.msFirstPaint);else{if(c=window.chrome)if(c=c.loadTimes,g.ua(c)){var c=c(),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.tP("fpt",c);g.tP("nreqs",d.requestStart,void 0);g.tP("nress",d.responseStart,void 0);g.tP("nrese",d.responseEnd,void 0);0<d.redirectEnd-d.redirectStart&&(g.tP("nrs",d.redirectStart,void 0),g.tP("nre",d.redirectEnd,void 0));0<d.domainLookupEnd-d.domainLookupStart&&(g.tP("ndnss",d.domainLookupStart,void 0),g.tP("ndnse",d.domainLookupEnd,void 0));0<d.connectEnd-
d.connectStart&&(g.tP("ntcps",d.connectStart,void 0),g.tP("ntcpe",d.connectEnd,void 0));d.secureConnectionStart>=d.navigationStart&&0<d.connectEnd-d.secureConnectionStart&&(g.tP("nstcps",d.secureConnectionStart,void 0),g.tP("ntcpe",d.connectEnd,void 0));xP.getEntriesByType&&$ka();d=g.ND("SPEEDINDEX_FOR_ACTIONS",void 0);c=g.ND("TIMING_ACTION",void 0);d&&-1<d.indexOf(c)&&(d=(0,g.sG)(),c=new mP,e=(0,g.sG)(),0<c.A&&(g.uP("si",c.A),g.tP("vsc",AP(c.J)),g.tP("sics",d),g.tP("sice",e)));d=[];if(window.document.querySelector&&
xP&&xP.getEntriesByName)for(var f in BP)c=BP[f],ala(f,c)&&d.push(c);d.length&&g.uP("rc",d.join(","))}g.aF("csi_on_gel")&&(f={},f.actionType=bla[g.ND("TIMING_ACTION",void 0)]||"LATENCY_ACTION_UNKNOWN",d=CP(),GG(f,d))}DP(a)}rP(a);g.MD(a+"TIMING_AFT_KEYS",b);g.MD(a+"TIMING_ACTION",a);zP("c",void 0,a);g.v("ytglobal.timing"+(a||"")+"ready_",!0,void 0);EP(a)};
g.tP=function(a,b,c){if(!b&&"_"!=a[0]){var d=a;xP.mark&&(g.Da(d,"mark_")||(d="mark_"+d),c&&(d+=" ("+c+")"),xP.mark(d))}var d=GP(c),e=b||(0,g.sG)();d[a]&&(d["_"+a]=d["_"+a]||[d[a]],d["_"+a].push(e));d[a]=e;HP(c)["tick_"+a]=b;c||b||(0,g.sG)();g.aF("csi_on_gel")?(d=CP(c),"_start"==a?FG("baseline_"+d)||g.wG("latencyActionBaselined",{clientActionNonce:d},g.AG,b):FG("tick_"+a+"_"+d)||g.wG("latencyActionTicked",{tickName:a,clientActionNonce:d},g.AG,b),a=!0):a=!1;a||EP(c)};
IP=function(a){var b="above_the_fold";xP&&xP.measure&&(g.Da(b,"measure_")||(b="measure_"+b),a?xP.measure(b,a):xP.measure(b))};
zP=function(a,b,c){g.uP("yt_sts",a,c);g.tP("_start",b,c)};
JP=function(a,b){var c=GP(b);return a in c};
g.uP=function(a,b,c){var d=wP(c)[a]=b;HP(c)["info_"+a]=d;if(g.aF("csi_on_gel"))if(a in KP){b={};a=KP[a].split(".");g.eb(dla,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=CP(c);GG(b,c)}else g.eb(ela,a)||g.qE(Error("Unknown label "+a+" logged with GEL CSI."))};
vP=function(a){var b=wP(void 0);return a in b};
LP=function(a){var b=GP(a);if(b.aft)return b.aft;a=g.ND((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};
EP=function(a){if(!sP(a)){var b=g.ND((a||"")+"TIMING_ACTION",void 0),c=GP(a);if(g.x("ytglobal.timing"+(a||"")+"ready_")&&b&&c._start&&LP(a))if(a)DP(a);else{var b=!0,d=g.ND("TIMING_WAIT",[]);if(d.length)for(var e=0,f=d.length;e<f;++e)if(!(d[e]in c)){b=!1;break}b&&DP(a)}}};
yP=function(){switch(uF("visibilityState",window.document)){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3}return-1};
DP=function(a){if(!g.aF("csi_on_gel")){var b=GP(a),c=wP(a),d=b._start,e;for(e in b)if(g.Da(e,"_")&&g.sa(b[e])){var f=e.slice(1);if(f in fla){var k=(0,g.I)(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))MP(k,f),rP(a)}else{var l=g.ND("CSI_SERVICE_NAME","youtube");k={v:2,s:l,action:g.ND((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=xP.getEntriesByName?xP.getEntriesByName(n)[0]:null)?c.h5jse=Math.round(c.h5jse-n.responseEnd):delete c.h5jse}b.aft=LP(a);gla(a)&&"youtube"==l&&(g.uP("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.sG)();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);MP(k,f,a);g.cP(iP,new kP(c.aft+(m||0),a))}}};
AP=function(a){return Math.round(xP.timing.navigationStart+a)};
$ka=function(){var a=window.location.protocol,b=xP.getEntriesByType("resource"),c=g.$a(b,function(b){return 0==b.name.indexOf(a+"//fonts.googleapis.com/css?family=")}),b=(0,g.ye)(b,function(b){return 0==b.name.indexOf(a+"//fonts.gstatic.com/s/")}),b=Sd(b,function(a,b){return b.duration>a.duration?b:a},{duration:0});
c&&0<c.startTime&&0<c.responseEnd&&(g.tP("wfcs",AP(c.startTime)),g.tP("wfce",AP(c.responseEnd)));b&&0<b.startTime&&0<b.responseEnd&&(g.tP("wffs",AP(b.startTime)),g.tP("wffe",AP(b.responseEnd)))};
ala=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=xP.getEntriesByName(d))&&c[0]&&(c=c[0],d=window.performance.timing.navigationStart,g.tP("rsf_"+b,d+Math.round(c.fetchStart)),g.tP("rse_"+b,d+Math.round(c.responseEnd)),void 0!==c.transferSize&&(vP("rc")||g.uP("rc",""),0===c.transferSize))?!0:!1:!1};
MP=function(a,b,c){if(g.aF("debug_csi_data")){var d=g.x("yt.timing.csiData");d||(d=[],g.v("yt.timing.csiData",d,void 0));d.push({page:window.location.href,time:new Date,args:a})}var d="",e;for(e in a)d+="&"+e+"="+a[e];a="/csi_204?"+d.substring(1);if(window.navigator&&window.navigator.sendBeacon&&b)try{window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,"")||g.ZE(a,void 0)}catch(f){g.ZE(a,void 0)}else g.ZE(a);qP(!0,c)};
CP=function(a){var b=NP(a).nonce;b||(b=BO(),NP(a).nonce=b);return b};
GP=function(a){return NP(a).tick};
wP=function(a){return NP(a).info};
HP=function(a){a=NP(a);"gel"in a||(a.gel={});return a.gel};
NP=function(a){return g.x("ytcsi."+(a||"")+"data_")||pP(a)};
pP=function(a){var b={tick:{},info:{}};g.v("ytcsi."+(a||"")+"data_",b,void 0);return b};
sP=function(a){return!!g.x("yt.timing."+(a||"")+"pingSent_")};
qP=function(a,b){g.v("yt.timing."+(b||"")+"pingSent_",a,void 0)};
gla=function(a){var b=GP(a),c=b.pbr,d=b.vc,b=b.pbs;return c&&d&&b&&c<d&&d<b&&1==wP(a).yt_pvis};
OP=function(a,b,c){this.Z=a;this.g=void 0===b?"":b;this.A=c||null;this.B=!1};
PP=function(a,b){var c=a.Z;if(c.oc&&("detailpage"==c.g||"leanback"==c.g||"embedded"==c.g&&(c.da&&c.Rd||c.experiments.g("html5_playlist_preload")))&&!a.B){a.B=!0;a.Z.experiments.g("html5_skip_default_csi_configs")||(g.ND("TIMING_ACTION")||g.MD("TIMING_ACTION",a.Z.csiPageType),a.Z.qb&&g.MD("CSI_SERVICE_NAME",a.Z.qb));if(a.A){var c=a.A.ca;for(d in c)g.tP(d,c[d],a.g);var d=a.A.ba;for(var e in d)g.uP(e,d[e],a.g);e=a.A;e.ca={};e.ba={}}g.uP("yt_pvis",yP(),a.g);g.uP("yt_pt","html5",a.g);b&&!JP("pbs",a.g)&&
a.o("pbs",b);e=a.Z;("detailpage"!=e.g||"blazer"==e.o)&&JP("_start",a.g)&&DP(a.g)}};
g.QP=function(a,b,c){this.errorCode=a;this.g=b;this.details=c||{}};
RP=function(a){var b;for(b in a){var c=(""+a[b]).replace(/[:,]/g,"_");var d=(d?d+";":"")+b+"."+c}return d||""};
SP=function(a,b){this.type=a||"";this.id=b||""};
g.TP=function(a){return new SP(a.substr(0,2),a.substr(2))};
UP=function(a){a=a.url;return 0==a.indexOf("//")?"https:"+a:a};
XP=function(a,b){var c={},d;for(d in VP){var e=b?b+d:d,e=a[e+"_webp"]||a[e];g.WP.test(e)&&(c[VP[d]]=e)}return c};
ila=function(a){var b={};if(!a||!a.thumbnails)return b;var c=null;a=g.ka(a.thumbnails);for(var d=a.next();!d.done;d=a.next()){var d=d.value,e=UP(d);if(g.WP.test(e)){var f=hla[d.width];f&&(b[f]=e);if(!c||c.width<d.width)c=d}}c&&1280<c.width&&(b["maxresdefault.jpg"]=UP(c));return b};
YP=function(a,b){g.M.call(this);this.o=[];this.g={};this.B={};this.A=null;this.C=b;jla(this,a)};
jla=function(a,b){for(var c in b)for(var d=g.ka(b[c]),e=d.next();!e.done;e=d.next()){e=e.value;if(!e.Zc)return;for(var f in e.Zc){if(!ZP[f])return;for(var k=g.ka(ZP[f]),l=k.next();!l.done;l=k.next())l=l.value,a.g[l]=a.g[l]||new GN(f,l,e.Zc[f]),a.B[f]=a.B[f]||{},a.B[f][e.mimeType]=!0}}a.o=kla.filter(function(b){return!!a.g[b]})};
mla=function(a){if(HN()&&ni)a.A(new GN("fairplay","com.apple.fps.1_0",""));else{var b=lla(),c=g.$a(a.o,function(c){var d=a.g[c],f=!1,k=!1,l;for(l in a.B[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.g[c]:null;
a.o=[];a.A(c)}};
lla=function(){var a=HN();if(a)return function(b,d){return a.isTypeSupported(d,b)};
var b=HL();return b&&(b.addKey||b.webkitAddKey)?(0,g.A)(b.canPlayType,b):function(){return!1}};
$P=function(a){if(a){var b=[],c;for(c in a)nla.has(c)||b.push(c);b.length&&.01>Math.random()&&g.qE(Error("Unknown house brand player vars: "+b),"WARNING")}};
ola=function(a,b){this.o=a;this.g=b;this.A=0};
pla=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)};
qla=function(a,b,c,d,e,f,k,l,m){this.itag=a;this.url=b;this.lv=c;this.width=d;this.height=e;this.bitrate=k;this.fps=f;this.audioItag=l||null;this.g=m||""};
rla=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 qla(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};
aQ=function(a,b){this.ye=a;this.B=b;this.o=null};
sla=function(a,b,c){if(!VN&&!TE())return PN();b=rla(b);if(!b)return PN();var d={},d=(d.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",d),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(bQ([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.ye.Zc&&a},!0)?d:null;
k.push(bQ(f,e,"93",0,0,0,"auto",c,q));return TN(a.O,k,PO(a))};
bQ=function(a,b,c,d,e,f,k,l,m){var n=new CI;d=new FI(d,e,f,null,void 0,k);c=new II(c,"application/x-mpegURL",n,d,void 0,m);a=new ola(a,b);a.A=l?l:1369843;return new aQ(c,a)};
cQ=function(a,b){this.ye=a;this.o=b};
dQ=function(a,b,c){var d=[];b=g.ka(b);for(var e=b.next();!e.done;e=b.next()){var f=e.value;if(f.url){e=new LM(f.url);f.sig?e.set("signature",f.sig):f.s&&e.set("signature",pE(f.s));for(var k in c)e.set(k,c[k]);f=PI(f.type,f.quality,f.itag,f.width,f.height,!!f.isAccelerated,!!f.isAcceleratedUiEnabled);d.push(new cQ(f,e))}}return TN(a.O,d,PO(a))};
eQ=function(a){g.RF.call(this);this.B=new xD;this.o=null;this.G={};this.F=a||""};
hQ=function(a,b,c){for(c=fQ(a,c);0<=c;){var d=a.g[c];if(d.Pb(Math.floor(b/(d.columns*d.rows)))&&(d=gQ(d,b)))return d;c--}return gQ(a.g[0],b)};
jQ=function(a,b,c){c=fQ(a,c);for(var d,e;0<=c;c--)if(d=a.g[c],e=Math.floor(b/(d.columns*d.rows)),!d.Pb(e)){d=a;var f=c,k=f+"-"+e;d.G[k]||(d.G[k]=!0,wD(d.B,f,{vx:f,Py:e}))}iQ(a)};
iQ=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=kQ(a.g[b.vx],b.Py);c.onload=(0,g.A)(a.K,a,b.vx,b.Py);a.o=c}};
lQ=function(a,b,c,d){this.Tc={};this.M=a;this.J=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.K=d};
kQ=function(a,b){var c=a.J,c=c.replace("$N",a.A),c=c.replace("$L",a.M.toString()),c=c.replace("$M",b.toString());a.C&&(c=g.Dg(c,{sigh:a.C}));return KM(c)};
gQ=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),k=a.At()+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:kQ(a,c),FF:f,columns:l,Pc:e,rows:d,Qy:a.F*l,Oy:a.D*d}};
mQ=function(a,b,c){eQ.call(this,c);this.g=this.A(a,b);this.C={};1<this.g.length&&this.g[0].isDefault()&&this.g.splice(0,1)};
fQ=function(a,b){var c=a.C[b];if(c)return c;for(var c=a.g.length,d=0;d<c;d++)if(a.g[d].Eb()>=b)return a.C[b]=d;a.C[b]=c-1;return c-1};
nQ=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");lQ.call(this,a,b,c,0);this.g=null;this.G=d?3:0};
oQ=function(a,b){this.M=b;mQ.call(this,a,0)};
pQ=function(a,b){this.ye=a;this.o=b};
tla=function(a){var b=[];(0,g.H)(a,function(a){if(a.url){var c=PI(a.type,"medium","0");b.push(new pQ(c,a.url))}});
return b};
ula=function(a){var b=null,c=a.text;a.bold&&(b=g.ne("B",null,b||c));a.italics&&(b=g.ne("I",null,b||c));a.strikethrough&&(b=g.ne("STRIKE",null,b||c));if(a.navigationEndpoint&&a.navigationEndpoint.urlEndpoint){a=a.navigationEndpoint.urlEndpoint;var d={href:a.url};"TARGET_NEW_WINDOW"==a.target&&(d.target="_blank");b=g.ne("A",d,b||c)}return b||g.ne("SPAN",null,c)};
g.qQ=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(ula(d))}a=1==b.length?b[0]:g.ne("SPAN",null,b)}b=g.pe("div");b.appendChild(a);return b.textContent};
g.rQ=function(a){g.RF.call(this);this.adModule=!1;this.adaptiveFormats="";this.Zc=null;this.allowEmbed=!0;this.gg=this.backgroundable=!1;this.vf="";this.Ml=this.Kl=this.Jl=!1;this.relativeLoudness=0;this.xc=1;this.watchAjaxToken=this.vh=null;this.author="";this.yf=0;this.Fp=this.Sl=!1;this.clientScreenNonce=this.clientPlaybackNonce=this.xs=this.channelPath=this.Tl="";this.contentCheckOk=!1;this.zf=0;this.enableCardioBeforePlayback=this.enableCardio=!1;this.Ii=0;this.Ew=this.fh=!1;this.sg=this.ej=
0;this.bn=!1;this.bA=0;this.isMdxPlayback=this.isLowLatencyLiveStream=this.isLiveDefaultBroadcast=this.isLiveDestination=this.Ba=this.Ak=this.isListed=this.Sq=this.ph=!1;this.mdxControlMode=null;this.isPharma=!1;this.li=0;this.gs="";this.Wq=this.mx=this.Hf=!1;this.liveChunkReadahead=window.NaN;this.liveStartWalltime=0;this.Zq=null;this.Dk=this.lengthSeconds=0;this.playerParams=null;this.paygated=!1;this.profilePicture=void 0;this.racyCheckOk=!1;this.rootVeType=0;this.autonavState=1;this.dl=XI;this.lg=
!1;this.fx=this.startSeconds=0;this.spacecastModule=!1;this.Fl=null;this.jl=XI;this.Ij=null;this.hlsFormats=this.wh=this.title="";this.Ib=null;this.ro="vvt";this.requiresPurchase=!1;this.clipStart=0;this.clipEnd=window.Infinity;this.En=this.fj=this.Yj=!1;this.bq="";this.fe=this.ks=this.iw=0;this.jx=!1;this.Jj={};this.qq=!1;this.captionTracks=[];this.Tj=[];this.sp=0;this.captionTranslationLanguages=[];this.Uj=!1;this.km=new qI("und",new mI("Default","und",!0));this.Yq=0;this.Bj=this.tA=!1;this.If=
null;this.Ch=[];this.Cw=!1;this.ni={};this.CA=new g.qt(this.DA,5E3,this);g.N(this,this.CA);this.aq=0;this.jw=!0;this.Gj=!1;this.ri=this.Nb=null;this.ah=!1;this.de=[];this.Xb={};this.keywords={};this.te={};this.setData(a)};
vQ=function(a,b,c){b=b||{};var d={};if(!c)d=a.Nb||{};else if(b.player_response)for(d=g.Ic(b.player_response)||{},a.Nb||(a.Nb={}),c=0;c<sQ.length;c++){var e=sQ[c];e in d&&(a.Nb[e]=d[e])}(c=tQ(d))?(a.vf=KM(c.invideoUrl),a.Jl=!!c.adsOnly,a.Kl=!!c.allowInPlaceSwitch):(b.iv_invideo_url&&(a.vf=KM(b.iv_invideo_url)),a.Jl=rO(a.Jl,b.iv_ads_only),a.Kl=rO(a.Kl,b.iv_allow_in_place_switch));b.cta_conversion_urls&&(a.Ju=b.cta_conversion_urls);a.isPharma=rO(a.isPharma,b.is_pharma);a.author=uO(a.author,b.author);
a.Sl=rO(a.Sl,b.cc_asr);c=b.ttsurl;uQ.test(c)?a.Tl=c:c&&(c=JM(c),uQ.test(c)&&(a.Tl=c));d.captions&&d.captions.playerCaptionsTracklistRenderer?vla(a,d.captions.playerCaptionsTracklistRenderer):(a.qq=void 0!=b.caption_tracks,b.caption_tracks&&b.caption_audio_tracks&&(wla(a,b.caption_tracks),xla(a,b.caption_audio_tracks),b.default_audio_track_index&&(a.sp=(0,window.parseInt)(b.default_audio_track_index,10)||0),b.caption_translation_languages&&yla(a,b.caption_translation_languages)),a.Uj=rO(a.Uj,b.cc_contribute));
a.channelPath=uO(a.channelPath,b.channel_path);a.xs=uO(a.xs,b.short_subscriber_count_text);a.clientPlaybackNonce=uO(a.clientPlaybackNonce,b.cpn);a.subscribed=rO(a.subscribed,b.subscribed);a.Uf=tO(a.Uf,b.view_count);a.shortViewCount=uO(a.shortViewCount,b.short_view_count_text);a.title=uO(a.title,b.title);a.ypcPreview=uO(a.ypcPreview,b.ypc_preview);a.ypcOrigin=uO(a.ypcOrigin,b.ypc_origin);a.paygated=rO(a.paygated,b.paygated);a.requiresPurchase=rO(a.requiresPurchase,b.requires_purchase);b.keywords&&
(a.keywords=zla(b.keywords));b.rvs&&(a.Xf=GE(b.rvs));a.contentCheckOk=rO(a.contentCheckOk,"1"==b.cco);a.racyCheckOk=rO(a.racyCheckOk,"1"==b.rco);a.oauthToken=uO(a.oauthToken,b.oauth_token);a.visitorData=uO(a.visitorData,b.visitor_data);b.session_data&&(a.Od=g.yE(b.session_data));b.endscreen_autoplay_session_data&&(a.Nv=g.yE(b.endscreen_autoplay_session_data));a.Mv=uO(a.Mv,b.endscreen_ad_tracking_data);a.sB=rO(a.sB,b.wait_for_vast_info_cards_xml);a.Mh=uO(a.Mh,b.wpid);a.Es=uO(a.Es,b.tracking_list||
b.tv_list);(0,g.H)(Ala,function(a){a in b&&(this.Xb[a]=b[a])},a)};
wQ=function(a){return!(!a.jb||!a.jb.videoInfos.length)};
Bla=function(a){return a.o&&YL('video/webm; codecs="vp9"')&&Kb(a.g,function(a){return JI(a.info)})};
xQ=function(a){return!UN()||a.Fp?!0:!1};
g.yQ=function(a){if(!a.ri)return null;var b=g.t(a.ri.latitudeE7)&&g.t(a.ri.longitudeE7)?a.ri.latitudeE7+","+a.ri.longitudeE7:",";return b+=","+(a.ri.clientPermissionState||0)};
zQ=function(a){a.na()||(a.fh=!1,a.Y("dataloaded",a.Xb))};
AQ=function(a,b,c){c&&a.va&&a.va.dispose();a.va=b;g.N(a,b);(a.tg()||a.bh()||a.Xh())&&a.de.push("webgl");a.va.isLive||(a.Ba=!1)};
g.CQ=function(a,b){if(a.na())return PN();a.jb=null;a.wg=null;a.Xk=null;var c=b.B,d=c.c,c=c.cmodel;a.ah=/^rq/.test(a.clientPlaybackNonce)||/^r/.test(a.clientPlaybackNonce)&&/UNPLUGGED/.test(d)||/FUGU/.test(c);xQ(a)||b.Uq||!a.spacecastAdaptiveFormats?d=PN():(AQ(a,uN(BQ(a,a.spacecastAdaptiveFormats),a.Zc,a.lengthSeconds,void 0,a.Gj),!0),d=cO(b.O,a.va,a.If,!0,!1).then(a.us,void 0,a).then(a.Sv,void 0,a));return d.then(void 0,(0,g.A)(a.LI,a,b)).then(void 0,(0,g.A)(a.II,a,b)).then(void 0,(0,g.A)(a.JI,a,
b)).then(void 0,(0,g.A)(a.MI,a,b)).then(void 0,(0,g.A)(a.KI,a,b))};
DQ=function(a,b){var c={cpn:a.clientPlaybackNonce,c:b.B.c,cver:b.B.cver};a.Vk&&(c.ptk=a.Vk,c.oid=a.dA,c.ptchn=a.cA,c.pltype=a.eA);return c};
EQ=function(a){var b=a.Nb&&a.Nb.paidContentOverlay&&a.Nb.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.text?g.qQ(b.text):a.uQ};
FQ=function(a){var b=a.Nb&&a.Nb.paidContentOverlay&&a.Nb.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.durationMs?(a=b.durationMs,g.u(a)?Va(a):a):a.bA};
g.GQ=function(a,b){return g.u(a.keywords[b])?a.keywords[b]:null};
HQ=function(a){if(!a.Ib)if(a.Nb&&a.Nb.storyboards){var b=a.Nb.storyboards;b.playerStoryboardSpecRenderer?a.Ib=new mQ(b.playerStoryboardSpecRenderer.spec,a.lengthSeconds):b.playerLiveStoryboardSpecRenderer&&a.va&&(a.Ib=new oQ(b.playerLiveStoryboardSpecRenderer.spec,a.va))}else a.Xb.storyboard_spec?a.Ib=new mQ(a.Xb.storyboard_spec,a.lengthSeconds):a.Xb.live_storyboard_spec&&a.va&&(a.Ib=new oQ(a.Xb.live_storyboard_spec,a.va));return a.Ib};
IQ=function(a,b){if(a.va&&a.Ba){var c=a.va.g[a.Ma.id];if(!c||!c.index)return null;var d=c.index.Vg(b),c=c.index.Pf(d);return{sequence:d,elapsed:Math.floor(1E3*(b-c))}}return null};
JQ=function(a){return!!(a.ue||a.adaptiveFormats||a.wh||a.Ij||a.spacecastFormatMap||a.spacecastAdaptiveFormats||a.hlsvp)};
KQ=function(a){var b=g.eb(a.de,"ypc");a.ypcPreview&&(b=!1);return a.Ge()&&!a.fh&&(JQ(a)||g.eb(a.de,"fresca")||g.eb(a.de,"heartbeat")||b)};
BQ=function(a,b,c){b=GE(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};
Cla=function(a){a=GE(a);var b={};(0,g.H)(a,function(a){var c=a.family;a=a.url;c&&a&&(b[c]=a)});
return b};
wla=function(a,b){for(var c=GE(b),d=0;d<c.length;d++){var e=c[d],f=e.u;uQ.test(f)&&a.captionTracks.push(new g.oI({is_translateable:rO(!1,e.t),languageCode:e.lc,languageName:e.n,url:f,vss_id:e.v,kind:e.k,format:3}))}};
xla=function(a,b){var c=GE(b);a.Tj=[];(0,g.H)(c,function(a){var b={};g.t(a.aid)&&(b.audioTrackId=a.aid);a.i&&(b.captionTrackIndices=(0,g.I)(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=Dla[(0,window.parseInt)(a.v,10)]||"UNKNOWN";this.Tj.push(b)},a)};
yla=function(a,b){for(var c=GE(b),d=0;d<c.length;d++){var e=c[d];a.captionTranslationLanguages.push(new g.nI({languageCode:e.lc,languageName:e.n}))}};
vla=function(a,b){a.qq=!0;a.captionTracks=[];b.captionTracks&&(0,g.H)(b.captionTracks,function(a){var b=a.baseUrl;uQ.test(b)&&(a=new g.oI({is_translateable:!!a.isTranslatable,languageCode:a.languageCode,languageName:a.name&&g.qQ(a.name),url:b,vss_id:a.vssId,kind:a.kind,format:3}),this.captionTracks.push(a))},a);
a.Tj=b.audioTracks||[];a.sp=b.defaultAudioTrackIndex||0;a.captionTranslationLanguages=b.translationLanguages?(0,g.I)(b.translationLanguages,function(a){return new g.nI({languageCode:a.languageCode,languageName:g.qQ(a.languageName)})}):[];
a.Uj=!!b.contribute&&!!b.contribute.captionsMetadataRenderer};
g.LQ=function(a,b){return!!a.Xb[b]};
g.MQ=function(a){return a.Ba&&!a.gg};
NQ=function(a){return a.Ba&&a.gg};
OQ=function(a){var b=g.Wb(a.Xb);!a.Ba&&0<a.startSeconds&&(b.start=a.startSeconds);return b};
Ela=function(a){a.jb=a.jb.o};
g.PQ=function(a){var b=a.Xb.iv_endscreen_url;b||(b=a.Nb&&a.Nb.endscreen&&a.Nb.endscreen.endscreenUrlRenderer&&a.Nb.endscreen.endscreenUrlRenderer.url);return b};
tQ=function(a){return a&&a.annotations&&(a=a.annotations[0],a.playerAnnotationsUrlsRenderer)?a.playerAnnotationsUrlsRenderer:null};
zla=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};
g.RQ=function(a){g.RF.call(this);this.startSeconds=0;this.WA=!1;this.kc=0;this.title="";this.eh=0;this.Ka=[];this.Jf=this.Tc=!1;this.Od=this.Nv=this.Yk=null;this.views=0;this.nF=0!=a.fetch;this.Nd=[];this.kc=Math.max(0,a.index||0);this.loop=!!a.loop;this.startSeconds=a.startSeconds||0;this.TL="1"==a.mob;this.title=a.playlist_title||"";this.description=a.playlist_description||"";this.author=a.author||a.playlist_author||"";this.Jj={};a.video_id&&(this.Ka[this.kc]=a);a.api&&("string"==typeof a.api&&
16==a.api.length?a.list="PL"+a.api:a.playlist=a.api);this.gn=0;if(a.list)switch(a.listType){case "user_uploads":Fla(this,a.list);break;case "user_favorites":Gla(this,a.list);break;case "search":Hla(this,a.list);break;default:a.playlist_length&&(this.eh=a.playlist_length),this.listId=g.TP(a.list),a.video?(this.Ka=a.video.slice(0),this.Tc=!0):Ila(this)}else if(a.playlist){var b=a.playlist.toString().split(",");0<this.kc&&(this.Ka=[]);(0,g.H)(b,function(a){a&&this.Ka.push({video_id:a})},this);
this.eh=this.Ka.length;b=(0,g.I)(this.Ka,function(a){return a.video_id});
QQ(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.Jj=XP(a,"playlist_");this.eB=a.thumbnail_ids?a.thumbnail_ids.split(","):[]};
SQ=function(a){return!!(a.playlist||a.list||a.api)};
TQ=function(a){var b=a.kc+1;return b>=a.eh?0:b};
UQ=function(a){var b=a.kc-1;return 0>b?a.eh-1:b};
VQ=function(a,b){a.kc=g.Pd(b,0,a.eh-1);a.startSeconds=0};
Fla=function(a,b){a.Jf||(a.listId=new SP("UU","PLAYER_"+b),QQ(a,"/list_ajax?style=json&action_get_user_uploads_by_user=1",{username:b}))};
Gla=function(a,b){a.Jf||(a.listId=new SP("FL","PLAYER_"+b),QQ(a,"/list_ajax?style=json&action_get_favorited_by_user=1",{username:b}))};
Hla=function(a,b){if(!a.Jf){a.listId=new SP("SR",b);var c={search_query:b};a.TL&&(c.mob="1");QQ(a,"/search_ajax?style=json&embeddable=1",c)}};
Ila=function(a){if(!a.Jf){var b={list:a.listId},c=a.jc();c&&c.videoId&&(b.v=c.videoId);QQ(a,"/list_ajax?style=json&action_get_list=1",b)}};
QQ=function(a,b,c){a.nF&&g.KE(g.Dg(b,c),{format:"JSON",Mb:(0,g.A)(function(a,b){WQ(this,b)},a),
onError:(0,g.A)(function(){this.Y("error")},a)})};
WQ=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.jc();a.Ka=[];(0,g.H)(b.video,function(a){a&&(a.video_id=a.encrypted_id,this.Ka.push(a))},a);
a.eh=a.Ka.length;b.index?a.kc=b.index:a.ek(c);a.setShuffle(!1);a.Jf=!1;a.Tc=!0;a.gn++;a.Yk&&a.Yk()}};
g.YQ=function(a){g.M.call(this);this.xa={};this.Ja={};this.element=XQ(this,a)};
XQ=function(a,b,c){c=c||"svg"==b.H;var d=c?window.document.createElementNS("http://www.w3.org/2000/svg",b.H):g.pe(b.H);var e=b.N;if(e){if(e=ZQ(a,d,"class",e))$Q(a,d,"class",e),a.xa[e]=d}else{var f=b.ea;if(f){for(e=0;e<f.length;e++)a.xa[f[e]]=d;$Q(a,d,"class",f.join(" "))}}if(f=b.L)for(var k=0,e=0;e<f.length;e++){var l=f[e];if(l)if(g.u(l))l=ZQ(a,d,"child",l),null!=l&&d.appendChild(g.qe(l));else if(l.element)d.appendChild(l.element);else{var m=l,l=XQ(a,m,c);d.appendChild(l);m.Pa&&(m=g.YQ.g(),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),ve(d,l,k++))}}if(b=b.R)for(var n in b)c=b[n],null!=c&&$Q(a,d,n,g.u(c)?ZQ(a,d,n,c):c);return d};
ZQ=function(a,b,c,d){return"{{"==d.substr(0,2)?(a.Ja[d]=[b,c],null):d};
$Q=function(a,b,c,d){if("child"==c){g.te(b);if(!g.sa(d)||g.va(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.va(f)&&g.u(f.H))c.push(XQ(a,f));else if(f.element)c.push(f.element);else if(g.u(f)&&-1!=f.indexOf("\n"))for(var f=f.split("\n"),k=0;k<f.length;k++)0<k&&c.push(g.pe("BR")),c.push(g.qe(f[k]));else c.push(g.qe(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.aR=function(a,b){a&&(a.style.display=b)};
bR=function(a,b){var c=uF("requestAnimationFrame",window);return g.xE(function(){c?c.call(window,a):a()},b||0)};
cR=function(a){if(window.document.createRange){var b=window.document.createRange();b.selectNodeContents(a);window.getSelection().removeAllRanges();window.getSelection().addRange(b)}};
g.W=function(a){g.YQ.call(this,a);this.g=!0;this.ca=[]};
dR=function(a,b,c){this.audio=a;this.video=b;this.reason=c};
eR=function(a){this.g=window.Float32Array?new window.Float32Array(a):Array(a);this.o=a-1};
fR=function(a,b){a.o=(a.o+1)%a.g.length;a.g[a.o]=b};
Jla=function(){this.C=new eR(50);this.o=null;this.D=this.B=0;this.g=[];this.A=null};
Kla=function(a,b){0!=a.g.length&&(b.D=a.g.length,b.J=Sd(a.g,function(a,b){return a+b},0),b.G=g.Ya(a.g),b.M=Math.min.apply(Math,a.g),b.K=Math.max.apply(Math,a.g),a.g=[])};
Lla=function(a){var b=(0,window.isNaN)(a.liveChunkReadahead)?3:a.liveChunkReadahead;a.Ak&&b--;a.isLowLatencyLiveStream||b++;a.va&&tka(a.va)&&(b+=2);this.g=Math.max(0,b);this.o=[];this.A=0;this.B=a};
gR=function(a){return(a.B.va?DN(a.B.va)||5:5)*a.g};
iR=function(a){this.g=new hR(0,0,null);this.B=8;this.C=[];this.A=this.D=window.NaN;this.J=this.o=this.G=0;this.F=window.NaN;this.K=0;this.M=void 0===a?!0:a};
jR=function(a){return{startTime:a.F/a.o,duration:a.J/a.o}};
kR=function(a){return!(0,window.isNaN)(a.A)&&a.o?a.A/a.o:a.K};
lR=function(a,b,c){var d=b.getUint32(c);b=b.getUint32(c+4);a.g=new hR(b,d,a.g);return 8};
mR=function(a){a.o&&!(0,window.isNaN)(a.D)&&(a.A=Math.floor(a.D*a.o),a.D=window.NaN)};
nR=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};
oR=function(a,b,c){for(var d=c;d<b.byteLength;d++)a.C.push(b.getUint8(d));return new window.DataView(b.buffer,b.byteOffset,c)};
pR=function(a,b,c){return new gL(b,c,a.g.size,a.g.type,!0)};
hR=function(a,b,c){this.type=a;this.size=b;this.g=c;this.offset=this.version=0};
qR=function(a,b){g.RF.call(this);this.C=0;this.B=a;this.g=[];this.A=null;this.K=b;this.F=this.D=window.NaN;this.P=null;this.ca=(0,g.A)(function(a){this.B.ka&&(this.Y("timestamprewrite",a),this.B.ka=!1)},this);
this.W=this.O=this.G=this.o=null;this.M=!1;this.J=null;this.B.Ub&&(this.o=new iR(this.B.Sa))};
rR=function(a){return a.g.length?a.g[0]:null};
sR=function(a){return a.g.length?a.g[a.g.length-1]:null};
Nla=function(a,b){var c=Mla(a,b);(0,g.H)(c,function(b){a.g.push(b)})};
Ola=function(a){return(0,g.Ek)(a.g,function(a){return a.info.A})};
Pla=function(a,b){if(b){var c=g.Za(a.g,function(a){return a.info.A});
-1!=c&&(a.g=g.qb(a.g,0,c+1))}else a.g=[]};
Qla=function(a){if(!a.g.length)return 0;for(var b=a.g[0].B.length,c=1;c<a.g.length;c++)a.g[c].g!=a.g[c-1].g&&(b+=a.g[c].B.length);a.A&&(b+=a.A.B.length);return b};
tR=function(a){return(0,g.I)(a.g,function(a){return a.info})};
Mla=function(a,b){if(!b.verify()||b.info.g.Tq()){var c=iM(b.info);c.verification="1";a.Y("error",c||{})}if(uR(a,b)){if(LI(b.info.g.info))if(c=zM(b),c=sL(c,0,1701671783)){0==c.data.getUint32(c.g)&&c.skip(4);jL(c);jL(c);iL(c);iL(c);iL(c);iL(c);var d=new window.Uint8Array(new window.ArrayBuffer(c.size-c.o)),e=new window.Uint8Array(c.data.buffer,c.offset+c.o,c.size-c.o);d.set(e);c.o=c.size;c=String.fromCharCode.apply(String,new window.Uint8Array(d.buffer));c=(c=rL(c))?new oL(c):null}else c=null;else c=
new kM(zM(b)),d=c.g,c.g=0,e=null,nM(c,[408125543,307544935,29555,26568,17543])&&(e=pM(c,!0),e=String.fromCharCode.apply(String,tM(c,e)),e=(e=rL(e))?new oL(e):null),c.g=d,c=e;b.o=c;b.o&&(a.G=b.o,a.M=!!a.o)}a.G&&(c=a.G,b.info.Ga=c.o,b.info.D=c.B);b.info.A&&(a.W=b.info);a.B.Hg&&uR(a,b)&&FL(zM(b),1701671783);if(a.B.J){if(!a.K.qe()&&(a.O&&!hM(a.O,b.info,!0)&&(a.o&&a.o.reset(),a.D=window.NaN,a.C=0),a.O=b.info,a.o?((c=!(0,window.isNaN)(a.F))||(c=a.o,c=!(!(0,window.isNaN)(c.A)||!(0,window.isNaN)(c.D))),c&&
(c=a.o,c.D=(0,window.isNaN)(a.F)?(0,window.isNaN)(a.D)?b.info.startTime:a.D:a.F,mR(c),a.F=window.NaN),c=zM(b),d=a.o.process(c),d!=c&&(b.g=d.buffer,b.B=eM(d.byteOffset,d.byteLength),b.range=b.B)):(c=(0,window.isNaN)(a.F)?(0,window.isNaN)(a.D)?b.info.startTime:a.D:a.F,a.F=window.NaN,a.B.Sa&&!BM(b,c)?(c=iM(b.info),c.smst=1,a.Y("error",c||{})):a.D=c+CM(b)),!b.range.length))return[];if(!a.K.qe()&&a.G)if(b.info.A){a.M=!1;a.J=null;c=a.G;if(a.o)e=jR(a.o),d=a.o,d.F=window.NaN,d.J=0,d=e.startTime,e=e.duration;
else{if(LI(b.info.g.info)){for(var d=b.info.g.g,f=e=window.NaN,k=0,l=new window.DataView(b.g);xL(l,k);){var m=yL(l,k);1936286840==m.type?f=CL(m):1836476516==m.type?f=vL(m):1952867444==m.type&&(0,window.isNaN)(e)&&(e=BL(m));k=zL(m.type)?k+8:k+m.size}!f&&d&&(f=wL(d));d=e/f}else d=new kM(zM(b)),e=b.A?d:new kM(new window.DataView(b.info.g.g.buffer)),f=wM(e),e=d.g,d.g=0,xM(d)?vM(d,231)?(f=qM(d)*f/1E9,d.g=e,d=f):(d.g=e,d=window.NaN):(d.g=e,d=window.NaN);d=d||b.info.C;e=CM(b)}a.Y("segmentinfo",vR(c,d,e,
!1));if(e=pL(c))e.Pd+=d,a.Y("cuepoint",e,c.o)}else a.M&&!(0,window.isNaN)(a.o.F)&&(c=vR(a.G,jR(a.o).startTime,a.G.D,!0),a.J=c,a.Y("placeholderinfo",c),a.M=!1);if(a.B.oa&&!a.K.qe()&&(0==b.info.o||a.A)&&LI(b.info.g.info)&&3==b.info.type&&!EM(b)&&b.info.duration&&!a.B.Ub&&(a.C+=1E3*(CM(b)-b.info.duration),a.P&&Math.abs(a.C-a.P.C)>=a.B.Ja))return c=(a.P.C-a.C)/1E3,d=CM(b)+c,e=d*DM(b),(e=wR(a,b,e))&&e.length&&(f=iM(b.info),f.fds=d.toFixed(3),f.com=a.C.toFixed(3),a.Y("timestamprewrite",f),a.D+=c,a.C+=1E3*
c),e?e:xR(a,b);if(a.B.ra&&a.K.qe()&&(0==b.info.o||a.A)&&LI(b.info.g.info))return c=b.info.g.index.Dm(b.info.Ga),(c=wR(a,b,c))?c:xR(a,b)}return[b]};
vR=function(a,b,c,d){return new dL(a.o,b,c,a.ingestionTime,"sq/"+a.o,void 0,void 0,d)};
uR=function(a,b){return!a.K.qe()&&3==b.info.type&&0==b.info.o&&(LI(b.info.g.info)||2==b.info.g.info.A)};
xR=function(a,b){if(a.A&&a.A!=b){var c=[a.A,b];a.A=null;return c}return[]};
wR=function(a,b,c){if(a.A){var d=a.A;var e=new window.Uint8Array(d.range.length+b.range.length);e.set(new window.Uint8Array(d.g,d.range.start,d.range.length));e.set(new window.Uint8Array(b.g,b.range.start,b.range.length),d.range.length);d=new window.DataView(e.buffer);EL(d)}else d=zM(b),d=(e=EL(d))&&e<d.byteLength?d:null;if(!d)return a.A=b,null;(c=GL(d,c,a.ca,a.B.Fa))?(d=EL(d),a.A&&(d-=a.A.range.length,a.A=null),a=AM(b,d),a[0].g=c,a[0].range=eM(0,c.byteLength),a[0].B=eM(0,c.byteLength)):a=null;return a};
Rla=function(a,b){this.g=a;this.D=this.C=!1;this.length=b?b:0;this.o=0;this.A=[];this.B=null;this.length?1!=this.g.length||this.g[0].ub||(this.g[0].ub=this.length):1==this.g.length||(0,g.Ar)(this.g,function(a){return!!a.range})};
Sla=function(a){var b=a.length-a.o;(0,g.H)(a.A,function(a){b+=a.range.length});
return b};
Tla=function(a,b,c,d,e){this.g=a;this.P=b;this.da=c;this.ca=e;this.M=this.o=window.NaN;this.ba=0;this.A=this.D=window.NaN;this.O=this.W=this.C=!1;this.B=0;this.F=bL(this.g);this.K=this.J=window.NaN;this.G=d};
yR=function(a){return{rt:(((0,g.G)()-a.o)/1E3).toFixed(2),lb:a.A,pt:a.J.toFixed(2),pb:a.P,stall:a.B.toFixed(2),elbowTime:((a.M-a.o)/1E3).toFixed(2),elbowBytes:a.ba}};
zR=function(a,b,c){var d=(b-a.D)/1E3,e=c-a.A;if(a.C)!a.G&&0<e&&(.2<d||1024>e?(a.B+=d,.2<d&&UK(a.g,.05,e)):UK(a.g,d,e),a.O=!0);else if(c>=a.g.policy.g){if(!a.G){var f=a.g;f.D.g(1,(b-a.o)/1E3);VK(f)}a.M=b;a.ba=c;a.C=!0}YK(a.g,d,e);a.D=b;a.A=c};
AR=function(a){return a.A>=a.g.policy.g};
BR=function(a){var b=a.P-a.A,b=1E3*(b*a.F.stall+b/a.F.byterate),c=(0,g.G)(),b=AR(a)?b+c:b+Math.max(c,a.o+1E3*a.F.delay);a.K=b};
CR=function(a,b,c,d,e){this.status=0;this.G=this.response=null;this.M=d;this.D=c;this.P=e;this.o=[];this.B=null;this.A=this.g=0;this.Aa=Ula++;this.O=window.NaN;this.C=null;a=new window.Request(a,{method:"GET",credentials:"include"});(0,window.fetch)(a).then(rE((0,g.A)(this.KQ,this)),rE((0,g.A)(this.tn,this)));(0,g.G)();this.K=this.J=this.F=!1;b()};
ER=function(a){a.K=!0;a.o.push(a.B.subarray(0,a.g));a.g=0;a.B=a.F?null:new window.Uint8Array(DR(a))};
FR=function(a,b){if(b.length+a.g>DR(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};
GR=function(a){a.C.read().then(rE((0,g.A)(a.LM,a)),rE((0,g.A)(a.UO,a)));var b=(0,g.G)();a.O=b};
DR=function(a){a=a.Tp()||0;return Math.max(16384,.125*a)};
HR=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.YJ,this);this.B=d;this.D=c;this.C=e;a=rE((0,g.A)(this.WJ,this));this.g.addEventListener("load",a,!1);this.g.addEventListener("error",a,!1);this.g.send();b();this.g.addEventListener("progress",rE((0,g.A)(this.XJ,this)),!1)};
IR=function(a,b,c,d){this.A=a;this.info=b;this.timing=c;this.P=d;this.state=1;this.g=null;this.O=this.fe=this.G=0;this.F=window.NaN;this.D=this.B=this.K=null;this.C=0;this.J=this.o=null;this.M=0;this.W=!1};
JR=function(a){return a.B?OM(a.B.g):""};
LR=function(a){var b=yR(a.timing);b.shost=JR(a);b.rn=a.G.toString();a.C&&(b.rc=a.C.toString());b.itag=""+HI(a.info.g[0].g.info);b.ml=""+ +a.info.g[0].g.xd();410!=a.C&&500!=a.C&&503!=a.C||(b.isPotentialFormatUnavaliable="true");(a=KR(a))&&(b.action=a);return b};
Vla=function(a){var b=yR(a.timing);return{rn:a.G.toString(),rt:b.rt,pt:b.pt,stall:b.stall,elt:b.elbowTime,elb:b.elbowBytes}};
KR=function(a){if(7==a.state&&!MR(a)){var b=NR(a);if(b=0<b.o&&0==b.A)b=a.info.o,b=!(a.G>b.B&&0<b.A);return b?"fastfallback":10<=a.fe?"fallback":"retry"}return""};
NR=function(a){JR(a);return GM(a.P,JR(a))};
OR=function(a){if(a.A.A){if(1==a.state)return!0;a=NR(a);return 20>a.lf&&6>a.g}if(10>a.fe)a=!0;else{var b=a.info.o;a=!(a.G>b.B&&0<b.A)}return a};
PR=function(a,b){a.state=b;if(5<=a.state){var c=a.timing;c.C&&(c.C=!1)}a.K&&a.K(a)};
QR=function(a){return(0,g.Ar)(a.info.g,function(a){return 3==a.type})};
MR=function(a){return a.A.A?!0:a.info.g[0].g.xd()||AR(a.timing)?7==a.state&&("net.timeout"==a.D||"net.connect"==a.D&&204==a.C):!1};
RR=function(a){if(a.g){var b=a.g;a.g=null;b.abort()}a=a.timing;a.C&&(a.C=!1)};
TR=function(a){var b=a.g.jh("content-type"),c=a.g.Tp();return(!SR(a)||!b||-1!=b.indexOf("text/plain"))&&(!c||2048>=c)};
SR=function(a){return a.g?a.g.bB():!1};
UR=function(a){return 2<=a.state&&!!a.o&&!!a.o.A.length};
VR=function(a,b){if(b||SR(a)&&!TR(a)){if(!a.o){var c;SR(a)||(c=a.g.Pp());a.o=new Rla(a.info.g,c)}for(;a.g.Vq();){c=a.o;for(var d=a.g.UA(),e=b&&!a.g.Vq(),f=0,k=0,l=0;l<c.g.length;l++){var m=c.g[l];if(m.range&&f+m.ub<=c.o)f+=m.ub;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;var n=c,w=c.o-f,q=k,y=d,B=r||m.g.fy(),D=y.length-q;m.range&&(D=Math.min(m.ub-w,D));r=m.range?m.o+w+D==m.range.length:!!e;w=new fM(m.type,m.g,m.range,m.Ga,m.startTime,m.duration,
m.o+w,D,r&&m.D);w.A=r;n.A.push(new yM(w,y.buffer,eM(y.byteOffset+q,D),eM(y.byteOffset,y.length),B));n=D;c.o+=n;k+=n;f+=m.ub;if(k==d.length)break}}}}};
WR=function(){this.g=this.o=!1};
XR=function(a,b){this.K=a;this.Ua=b;this.A=[];this.o=new qR(a,b);this.B=this.g=null;this.ba=0;this.O=b.info.g;this.P=this.M=!1;this.J=new WR;this.C=null;this.D=0;this.G=b.bf();this.F=-1;this.W=0};
YR=function(a,b){a.A.push(b);a.g=g.Ya(b.info.g)};
$R=function(a,b){for(;a.A.length&&6==a.A[0].state;){var c=a.A.shift();ZR(a,c);var d=c.timing;a.ba=(d.D-d.o)/1E3;a.M||(c=c.info,a.W=Math.max(a.W,Math.max(0,c.g[c.g.length-1].B-b)))}a.A.length&&UR(a.A[0])&&!gM(a.A[0].info.g[0])&&ZR(a,a.A[0])};
ZR=function(a,b){if(UR(b)){b.W=!0;var c=b.o,d=c.A;c.A=[];c.B=g.Ya(d).info;(0,g.H)(d,a.da,a)}};
aS=function(a){return!(!a.o.g.length||!LI(rR(a.o).info.g.info)||0!=rR(a.o).info.o)};
bS=function(a){var b=zM(rR(a.o)),c=EL(b);return(!c||c>b.byteLength)&&1==a.o.g.length};
dS=function(a,b,c){bS(a);var d=rR(a.o),e=cS(a);if(!e)return null;c=c||d.info.g.index.Dm(d.info.Ga);return(a=GL(e,c,b,a.K.Fa))?a:null};
fS=function(a){var b=rR(a.o),c=cS(a);if(c&&(c=EL(c)))if(c>zM(b).byteLength){var d=a.o.g[1];eS(a,b.range);eS(a,eM(d.range.start,c-b.range.length))}else eS(a,eM(b.range.start,c))};
cS=function(a){var b=rR(a.o),c=zM(b),d=EL(c);if(!d||d>c.byteLength){d=a.o.g[1];a=new window.Uint8Array(b.range.length+d.range.length);a.set(new window.Uint8Array(b.g,b.range.start,b.range.length));a.set(new window.Uint8Array(d.g,d.range.start,d.range.length),b.range.length);d=EL(new window.DataView(a.buffer));if(!d||d>a.byteLength)return null;c=new window.DataView(a.buffer.slice(0,d))}return c};
eS=function(a,b){for(var c=a.o,d=[],e;c.g.length;){if(c.g[0].range.end>b.end){var f=AM(c.g[0],b.end-c.g[0].range.start+1);e=f[0];c.g[0]=f[1]}else e=c.g.shift();d.push(e);if(e.range.end==b.end)break}d.length&&(0,g.H)(d,a.fa,a)};
iS=function(a,b){a.Ua.xd();a.W=0;var c=gS(a,b);if(0<=c)return c;a.g=a.Ua.Ug(b).g[0];hS(a)&&(a.B=null);a.C=null;a.D=0;return a.g.startTime};
jS=function(a,b){a.G=!0;a.F=-1;iS(a,window.Infinity);a.K.J?a.o.F=b:a.C=b};
Wla=function(a,b){var c=a.o.g.length?sR(a.o).info:a.B;if(b&&c&&!c.A){for(var d=c.Ga,c=[],e=g.ka(a.A),f=e.next();!f.done;f=e.next())f=f.value,(0,g.Ek)(f.info.g,function(a){return a.Ga==d})?c.push(f):kS(a,f);
a.A=c;a.g=a.A.length?g.Ya(g.Ya(a.A).info.g):null}else lS(a)};
mS=function(a){var b=0;(0,g.H)(a.A,function(a){var c=b;a=a.o&&a.o.length?Sla(a.o):aN(a.info);b=c+a},a);
return b+=Qla(a.o)};
nS=function(a,b){var c=!!a.Ua.info.video&&!!a.B&&!a.B.A,d=1<=b&&c;Pla(a.o,d);a.M=d;Wla(a,2<=b&&c)};
oS=function(a){a.J.o||a.J.start();nS(a,0);hS(a)&&(a.B=null)};
hS=function(a){return!!a.B&&a.B.D};
pS=function(a){var b=[];a.B&&b.push(a.B);b=g.nb(b,tR(a.o));(0,g.H)(a.A,function(a){(0,g.H)(a.info.g,function(a){3!=a.type&&4!=a.type||b.push(a)})});
a.g&&!$ja(a.g,g.Ya(b),a.g.g.qe())&&b.push(a.g);return b};
qS=function(a){if(!a.g||!a.g.ub)return!1;a=pS(a);if(!a.length)return!1;for(var b=1;b<a.length;b++)if(!(1E-6>=Math.abs(a[b].C-a[b-1].B)))return!1;return!0};
gS=function(a,b){if(qS(a)){a:{var c=pS(a);c=g.ka(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.C<=b&&d.startTime+d.duration>=b){c=d;break a}c=null}if(c)return c.startTime}return window.NaN};
rS=function(a){return(0,g.Ek)(a.A,function(a){return 4<=a.state})};
sS=function(a){return!(!a.g||!a.Ua.xd()||a.g.g==a.Ua)};
tS=function(a){return sS(a)&&a.g.g.info.g<a.Ua.info.g};
uS=function(a,b,c){return(a=sR(a.o)?sR(a.o).info:a.B)&&!a.D?a.B>b&&a.B<b+c:!1};
lS=function(a){(0,g.H)(a.A,function(a){kS(this,a)},a);
a.A=[];a.g=null};
kS=function(a,b){if(b.W){var c=a.o,d=b.info;c.M=!1;c.J&&(c.Y("placeholderrollback",c.J),c.J=null);if(c.o){var e=window.NaN;(0,window.isNaN)(c.F)&&(e=d.g[0].range?d.g[0].C:jR(c.o).startTime);c.o.reset();c.O=c.W;(0,window.isNaN)(e)||(d=c.o,d.D=e,mR(d))}c.G=null}b.dispose()};
vS=function(a){return!!a.g&&-1!=a.g.Ga&&a.g.Ga<a.Ua.index.mg()};
wS=function(a){if(a.g){var b=sR(a.o);b&&3==b.info.type&&-1==a.g.Ga&&(a.g.Ga=b.info.Ga)}};
xS=function(a){a.K.J?(a=a.o,a=a.o?kR(a.o):a.D||0):a=a.C||0;return a};
Xla=function(a,b){this.g=a;this.o=b;this.A=1};
yS=function(a,b,c,d){d/=a.A;var e=ZK(a.g)+1/$K(a.g);var f=Math.max(.9*(d-3),XK(a.g)+a.g.policy.g*e);c=f/e*a.o.yh/(b+c);c=Math.min(c,d);c=Math.max(a.o.Lg,Math.min(a.o.Kg,c));return Math.min(a.o.G,Math.max(65536,Math.ceil(c*b)))};
zS=function(a,b){var c=a.o.Jg;if(a.o.Ed)return b;var d=1E-9+XK(a.g)+c*ZK(a.g),c=b*Math.min(1,c/(b*d));a.o.Yb&&(d=((SK(a.g.o,.98)||0)-a.o.oc)/(a.o.wi-a.o.oc),d=Math.max(0,Math.min(1,d)),c*=1-a.o.Yb*d);return c};
AS=function(a){return zS(a,$K(a.g))};
BS=function(a){return AS(a)/a.A};
Yla=function(a,b,c,d){this.ca=a;this.A=b;this.F=c;this.K=d;this.o=this.O=this.D=null;this.G="i";this.P=-1;this.g=this.B=null;this.C=[];this.ba={};this.W=this.fa=0;this.ga=null;this.M=this.J=!1;this.da=0};
Zla=function(a,b,c){"m"==c&&a.D.isLocked()&&!b.isLocked()&&(c="a");a.J=a.J||!1;if("m"==c&&b.isLocked())return a.G=c,CS(a,b),DS(a),ES(a),a.M|=a.o!=a.g,a.o=a.g,new dR(a.B,a.o,c);var d=UI(a.D,b);if("m"==a.G&&a.D.isLocked()&&d)return null;"r"!=c||d||(a.P=-1);CS(a,b);ES(a);if("r"==c&&a.g==a.o){if(d)return null;a.o=a.g;return new dR(a.B,a.g,c)}a.G=c;FS(a);return null};
GS=function(a){return!!a.W&&(0,g.sG)()-a.W<=1E3*a.A.Bb};
HS=function(a){return a.D.isLocked()};
FS=function(a){a.o&&a.g&&IS(a,a.o.info)<IS(a,a.g.info)&&(a.J|="r"==a.G,a.J=a.A.Cd?a.J|("v"==a.G&&a.g.info.video.width>a.o.info.video.width):a.J|a.g.info.video.width>1.6*a.o.info.video.width)};
JS=function(a){var b=a.G;a.G="a";a.P=(0,g.sG)();a.J=!1;return new dR(a.O,a.o,b)};
CS=function(a,b){a.D=b;var c=a.K.videoInfos;if(!HS(a)&&(c=(0,g.ye)(c,function(a){return a.g>this.A.K?!1:this.A.A?4<this.F.g[a.id].C.g?!1:!0:!this.F.g[a.id].B},a),GS(a))){var c=(0,g.ye)(c,function(a){return a.id!=this.ga.id},a),d=(0,g.ye)(c,function(a){a=HI(a);
return"140"==a||"134"==a||"243"==a});
d.length&&(c=d)}c.length||(c=a.K.videoInfos);d=(0,g.ye)(c,b.B,b);d.length||(d=[c[0]]);d.sort((0,g.A)(function(a,b){return IS(this,a)-IS(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.jb(d,c),c--):IS(a,e)*a.A.g>IS(a,f)&&(g.jb(d,c-1),c--)}c=d[d.length-1];a.C=d;Yja(a.A,c)};
$la=function(a,b){if(b)a.B=a.F.g[b];else{var c=g.$a(a.K.g,function(a){return!!a.Sc&&a.Sc.isDefault}),c=c||a.K.g[0];
a.B=a.F.g[c.id]}DS(a)};
DS=function(a){if(!a.B.info.Sc&&(a.B=a.F.g[a.K.g[0].id],1<a.K.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=BS(a.ca)/a.A.g;b=IS(a,a.B.info)+IS(a,a.C[b])>c}b&&(a.B=a.F.g[a.K.g[1].id])}};
ES=function(a){if(HS(a))a.g=a.F.g[a.C[a.C.length-1].id];else{for(var b=Math.min(a.fa,a.C.length-1),c=BS(a.ca),d=IS(a,a.B.info),e=c/a.A.B-d;0<b&&!(IS(a,a.C[b])<=e);b--);c=c/a.A.g-d;a.A.yi&&(e=a.ca,d=zS(e,aL(e.g))/e.A/a.A.g-d,c=Math.min(c,d));for(;b<a.C.length-1&&!(IS(a,a.C[b+1])>=c);b++);a.g=a.F.g[a.C[b].id];a.fa=b;FS(a)}};
ama=function(a){var b=a.A.B,c=BS(a.ca)/b-IS(a,a.B.info),b=g.ab(a.C,function(a){return IS(this,a)<c},a);
0>b&&(b=0);a.fa=b;a.g=a.F.g[a.C[b].id]};
IS=function(a,b){if(!a.A.da)return b.g;if(!a.ba[b.id]){var c=a.F.g[b.id].index.bw(a.da,a.A.da),c=b.B&&a.o&&a.o.index.Pb()?c||b.B:c||b.g;a.ba[b.id]=c}return a.ba[b.id]};
bma=function(){this.g=this.o=0;this.A=[]};
KS=function(a,b){return(a[b]<<24)+(a[b+1]<<16)+(a[b+2]<<8)+a[b+3]};
LS=function(a,b,c,d){this.o=a;this.D=b;this.C=d;this.B=c;this.g=0};
cma=function(){this.g=[];this.o=g.pJ};
MS=function(a,b){for(var c=[],d=g.ka(a.g),e=d.next();!e.done&&!(e=e.value,e.contains(b)&&c.push(e),e.start>b);e=d.next());return c};
dma=function(a){return a.g.slice(NS(a,0x7ffffffffffff),a.g.length)};
NS=function(a,b){var c=xb(a.g,function(a){return b-a.start||1});
return 0>c?-(c+1):c};
OS=function(a,b){for(var c=void 0,d=g.ka(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};
PS=function(a,b,c,d){g.M.call(this);this.B=window.NaN;this.J=!1;this.G=null;this.K=this.M=this.C=!1;this.ca=a;this.ba=b;this.O=c;this.W=d;this.P=new g.qt(this.A,250,this);g.N(this,this.P);this.D=new g.qt(this.A,0,this);g.N(this,this.D);this.o=[];this.g=new cma};
QS=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.ka(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):Bb(c.g,e,c.o);a.B=window.NaN;a.A()};
ema=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};
fma=function(a,b){var c=[];if(!b.length)return c;b.sort(g.pJ);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};
SS=function(a,b,c,d,e){g.RF.call(this);this.M=a;this.o=b;this.C=c;this.Ra=e||null;this.g=this.B=null;this.K=new Xla(a,b);this.A=null;this.F=new Yla(this.K,b,this.C,d);this.D=this.ua=this.fa=this.sa=window.NaN;this.O=!1;this.J=window.NaN;this.Na=0;this.da=this.G=!1;this.Ta={};this.ca="";this.ha=this.ka=0;this.Fa=b.xi?new bma:null;this.Oa=new PK(5);this.qb=(0,g.A)(function(a){this.o.ka&&(RS(this,!1,"qoe.avsync",a),this.o.ka=!1)},this);
this.oa=!1;this.rb={};this.ra="";this.Ja=window.NaN;this.P=!1};
US=function(a,b){b=b||a.g&&a.g.g&&a.g.g.startTime||a.D;var c=a.g,d=a.F;if(d.A.da){var e=d.g&&d.g.index.Vg(b)||0;d.da!=e&&(d.ba={},d.da=e,CS(d,d.D))}!HS(d)&&-1<d.P&&(0,g.sG)()-d.P<1E3*d.A.Pe||(d.W&&!GS(d)&&(d.W=0,CS(d,d.D)),DS(d),ES(d),d.M|=d.g!=d.o);d.g.index.Pb()||(d.da=-1);d=d.g;c.Ua!=d&&(c.Ua=d,d.o||TS(a,c,!1));c=a.B;d=a.F.B;c.Ua!=d&&(c.Ua=d,d.o||TS(a,c,!1))};
WS=function(a){0==a.D&&(a.g.Ua.o||TS(a,a.g,!0),a.B.Ua.o||TS(a,a.B,!0));a.seek(a.D);VS(a,"gv")};
g.XS=function(a,b){if(b.B){var c=a.g.Ua.info.mimeType;b.g=b.A.addSourceBuffer(a.B.Ua.info.mimeType);b.J?b.o=b.A.addSourceBuffer(c):b.o=new ML}a.A=b;a.B.P=!1;a.g.P=!1;a.B.B=null;a.g.B=null;a.resume();XL(b)&&(b.g.addEventListener("updateend",(0,g.A)(a.Ie,a),!1),b.o.addEventListener("updateend",(0,g.A)(a.Ie,a),!1),b.g.addEventListener("error",(0,g.A)(a.yn,a,!0),!1),b.o.addEventListener("error",(0,g.A)(a.yn,a,!1),!1));VS(a,"msa");g.tP("msa",void 0,"video_to_ad");xP.measure&&xP.getEntriesByName("mark_vta").length&&
xP.measure("measure_vta_to_msa","mark_vta");a.ga&&a.W&&(c=g.x("yt.scheduler.instance.enablePriorityThreshold"))&&c(1);a.Ie();a.ua=g.wE((0,g.A)(a.Ie,a),1E4)};
ZS=function(a){a.A&&a.A.g&&a.A.g.removeEventListener&&(a.A.g.removeEventListener("updateend",(0,g.A)(a.Ie,a),!1),a.A.o.removeEventListener("updateend",(0,g.A)(a.Ie,a),!1),a.A.g.removeEventListener("error",(0,g.A)(a.yn,a,!0),!1),a.A.o.removeEventListener("error",(0,g.A)(a.yn,a,!1),!1));a.A=null;a.G=!0;YS(a)};
$S=function(a){a.A&&UL(a.A)&&ZS(a)};
aT=function(a,b,c){if(!b.J.o||!c.remove)return!1;if(c.updating)return!0;if(!b.J.g&&c.buffered.length)return a=c.buffered.end(c.buffered.length-1),c.remove(0,a),b.J.g=!0;b.J.reset();a.Y("seekelementrequired");return!1};
cT=function(a,b,c){if(a.G&&(!a.o.ca||!cL(a.M)))return!1;if(a.C.o){if(0<b.A.length&&!a.o.Za)return!1;if(b.G)return!0}if(!(b.g||a.C.o&&a.o.Za&&b.G)){if(!b.Ua.xd())return b.Ua.o||TS(a,b,!1),!1;iS(b,a.D)}var d=b.A.length+c.A.length;(rS(b)||rS(c)||a.C.isLive&&(!a.o.Za||!b.A.length))&&--d;if(2<=d+1)return!1;d=b.g;if(!d)return!0;4==d.type&&d.g.xd()&&(b.g=g.Ya(d.g.On(d)),d=b.g);!d.D&&!d.g.fi(d)||d.g.info.audio&&4==d.type?a=!1:tS(b)&&!a.o.ba?a=!0:(!(c=d.D||mS(b)+mS(c)>a.o.fa||!!(c.g&&!c.g.D&&c.g.B<d.B)&&(!a.C.o||
c.g.B&&d.B))&&(c=3==d.type)&&(d=d.B,b=bT(a,b,!0),!HS(a.F)&&0<a.o.W&&(c=((0,g.sG)()-a.Na)/1E3,b=Math.min(b,a.o.W+a.o.Hb*c)),b=a.D+b,a.o.xb?(c=Math.min(b,gma(a)+a.o.xb),c!=b&&a.Bk("mrl","ori."+b+";mod."+c,!0),a=c):a=b,c=d>a),a=c?!1:!0);return a};
dT=function(a,b,c){if(!(a.A&&!SL(a.A)&&!XL(a.A)||a.O||a.o.Dc&&!a.F.J)){var d=a.D,e=a.K;c=yS(e,b.Ua.info.g,c.Ua.info.g,0);var f=XK(e.g)+c*ZK(e.g)+c/$K(e.g),d=d+Math.max(f,f+e.o.rb-c/b.Ua.info.g);a:{a=a.F.J;if(b.A.length){if(b.A[0].info.g[0].startTime<=d)break a;lS(b)}e=b.o;for(c=e.g.length-1;0<=c;c--)e.g[c].info.startTime>d&&e.g.pop();b.A.length?b.g=g.Ya(g.Ya(b.A).info.g):b.o.g.length?b.g=sR(b.o).info:b.g=b.B;a&&b.g&&d<b.g.startTime&&(b.C=null,b.D=0,b.g=b.Ua.Ug(d,!0).g[0])}}};
gT=function(a,b,c){cT(a,b,c);var d=b.g;if(b.G)a.oa=!0,d=b.Ua.Ug(window.Infinity),d.B=a.Ja;else if(b.g.g.xd()){!tS(b)||a.o.ba||a.C.o||(dT(a,b,c),b.g||iS(b,a.D));var d=b.g,e=d.B-a.D,f=!d.range||0==d.ub&&0==d.o?0:d.range.length-(d.o+d.ub);if(sS(b)){var k=a.o.Oa?Math.min(bT(a,b,!0),b.W)*a.o.Oa:Math.min(a.o.Na,.5*bT(a,b,!0));var l;if(l=a.o.rf)if(l=!!b.A.length)l=b.A[0].info,l=4==l.g[l.g.length-1].type;k=tS(b)||e<=k&&!l}else k=!1;k&&0==f&&(a.C.o?d.g=b.Ua:(f=d.startTime+eT,d.ub&&(f+=d.duration),iS(b,f),
d=b.g));d.g.qe()?(c=yS(a.K,d.g.info.g,c.Ua.info.g,e),e=sS(b),c=d.g.di(d,c),c.range&&1<c.g.length&&(e||a.o.A&&c.o.g?c=d.g.di(d,c.g[0].ub):(e=c.g[c.g.length-1],f=e.ub/c.range.length,!e.A&&.4>f&&(c=d.g.di(d,c.range.length-e.ub)))),d=c):d=d.g.Lk(d)}else d.g.qe()?(c=yS(a.K,b.Ua.info.g,c.Ua.info.g,0),d=d.g.di(d,c)):d=d.g.Lk(d);YR(b,fT(a,d))};
fT=function(a,b){if(3==b.g[b.g.length-1].type){a:{var c=a.F;var d=b.g[0].g;if(d.info.video){if(c.o!=d){c.o=d;c=JS(c);break a}}else c.O=d;c=null}c&&a.Y("videoformatchange",c)}c=aN(b);var d=a.M,e=a.K,f=Math.min(2.5,XK(e.g)),e=AS(e);c=new Tla(d,c,c-f*e,a.o.Ah&&a.oa,gM(b.g[0]));c=new IR(a.o,b,c,a.rb);d=(0,g.A)(a.fP,a);c.K=d;c.start(Math.max(0,b.g[0].C-a.D));b.g[0].g.info.video&&(d=JR(c))&&(a.ra=d.substr(0,d.indexOf(".")));return c};
hT=function(a){if((0,window.isNaN)(a.sa)){var b=(0,g.A)(a.Ie,a);a.sa=g.xE(b,0)}};
iT=function(a){if((0,window.isNaN)(a.fa)){var b=(0,g.A)(function(){this.fa=window.NaN;this.Ie()},a);
a.fa=g.xE(b,1E3)}};
hma=function(a){if(a.C.A)return!1;var b;if(b=a.O){if(b=0<a.o.ha&&a.g&&a.B){b=a.K;var c=a.g,d=a.B,e=a.o.ha;if(0==c.A.length&&0==d.A.length)b=!0;else{for(var f=0,k=tR(c.o).concat(tR(d.o)),k=g.ka(k),l=k.next();!l.done;l=k.next())f+=l.value.ub;c=c.O+d.O;f/=c;b=f>e?!0:c*(e-f)/BS(b)<e}b=!b}b||(b=a.g,b=0<b.A.length&&1==b.o.g.length&&rR(b.o).info.F<b.ba)}if(b)return!0;if(!a.da||!a.o.O||10>a.D||360<a.g.Ua.info.video.o)return!1;b=uS(a.g,a.D,a.o.O)||uS(a.B,a.D,a.o.O);return(0<a.g.A.length||0<a.B.A.length||cT(a,
a.g,a.B)||cT(a,a.B,a.g))&&b};
lT=function(a,b,c,d,e){if(c.updating)return!0;var f=rR(b.o);if(!f)return!1;!b.B||b.B.A||hM(b.B,f.info)||(b.B=null,SL(a.A)&&c.abort(),c.g=null);var k=a.C.isLive&&EM(f),l=!a.C.A&&b.K.ra&&aS(b);a.o.Ig&&a.C.A&&0==f.info.o&&LI(f.info.g.info)&&(a.C.o?null!=b.B&&b.B.g==f.info.g:null!=c.g&&c.g==f.info.g.g)&&(FL(zM(f),1836019574),FL(zM(f),1718909296),f.A=!1);if(!a.C.A||0==f.info.o)if(k=k||a.C.o||f.A,l||!k){if(f.info.g.xd(),k=f.info.g.g,c.g==k?k=!1:(jT(a,c,k),c.g=k,a.Y("initsegment",c.g),k=c.updating),k)return!0}else c.g=
null;k=bT(a,b,!1);k=a.D+k;null!==d&&0<=d&&(k=Math.min(k,d));d=k;if(b.M)d=rR(b.o).range;else if(k=b.o,!k.g.length||k.g[0].info.C>=d)d=null;else{var m;for(m=1;m<k.g.length;m++){var n=k.g[m].g!=k.g[m-1].g;if(k.g[m].info.C>d||n||k.B.ra)break}m--;d=new cM(k.g[0].A?0:k.g[0].range.start,k.g[m].range.end)}if(!d)return!1;if(l){if(bS(b))return!1;if(k=dS(b,a.qb))return kT(a,c,new window.Uint8Array(k),f,b)?(fS(b),!0):!1}k=new window.Uint8Array(f.g,d.start,d.length);if(a.Fa&&f.info.g.info.video&&LI(f.info.g.info)&&
(m=a.Fa,0==f.info.o&&(m.o=0,m.g=0,m.A.length=0),!((0,window.isNaN)(m.o)||8>k.length))){for(var n=new window.DataView(k.buffer,k.byteOffset),q=!1;!q;)if(m.o==m.g)a:{var r,q=m,w=k.length;if(q.o+7>=w){for(r=q.o;r<w;r++)q.A.push(n.getUint8(r));q=!0}else{if(0<q.A.length){for(r=0;8>q.A.length;r++)q.A.push(n.getUint8(r));var y=KS(q.A,0);r=KS(q.A,4);q.A.length=0}else y=n.getUint32(q.g),r=n.getUint32(q.g+4);if(1836019558==r||1836019574==r||1718909296==r||1936286840==r)q.o+=y,q.g=q.o;else if(1835295092==r)q.o+=
y,q.g+=8;else{q.o=window.NaN;q=!0;break a}q=q.g>=w}}else a:if(q=m,w=k.length,q.g+5>=w){for(r=q.g;r<w;r++)q.A.push(n.getUint8(r));q=!0}else{if(0<q.A.length){for(r=0;6>q.A.length;r++)q.A.push(n.getUint8(r));r=KS(q.A,0);12==r&&6==q.A[4]&&45==q.A[5]&&n.setUint8(q.g+5,63);q.g+=r+4;q.A.length=0}for(;q.g<q.o&&q.g+5<w;){r=n.getUint32(q.g);if(0>=r){q.o=window.NaN;q=!0;break a}12==r&&6==n.getUint8(q.g+4)&&45==n.getUint8(q.g+5)&&n.setUint8(q.g+5,63);q.g+=r+4}q=q.g>=w}(0,window.isNaN)(m.o)||(m.o-=k.length,m.g-=
k.length)}m=!1;if(3==f.info.type&&(LI(f.info.g.info)||2==f.info.g.info.A))if(m=LI(f.info.g.info)&&a.o.np&&!l&&!b.P&&0==f.info.o&&0<f.info.startTime)BM(f,0);else if(a.C.A&&0==f.info.o&&!a.o.J){a:if(b.K.oa&&aS(b)&&!EM(rR(b.o))&&bS(b))e=!1;else{null===b.C||!a.o.Rd&&b.B&&!hM(b.B,f.info,!0)?(null!==b.C&&(l=iM(f.info),l.startTime="1",l.pSeg=b.B.Ga,l.seg=f.info.Ga,RS(a,!1,"qoe.avsync",l)),n=f.info.startTime):n=b.C;if(a.o.Sa&&0==BM(f,n))l=iM(f.info),l.smst=1,RS(a,!0,"fmt.unparseable",l);else if(l=CM(f),b.C=
n+l,a.C.o&&f.info.g.info.video&&EN(a.C,new dL(f.info.Ga,n,l,f.o.ingestionTime,"sq/"+f.info.Ga))&&(l=pL(f.o)))l.Pd+=n,n=a.C,n.G.push(l),n.Y("cuepointsadded");l=0;f.info.g.info.video&&null!==e&&f.info.duration&&!a.C.o&&(n=1E3*(CM(f)-f.info.duration),e-=b.D+n,Math.abs(e)>=a.o.Ja&&(l=e/1E3));e=l;l=CM(f);n=l+e;e&&!EM(f)&&(q=iM(f.info),q.deltaOffsetMs=1E3*(l-f.info.duration).toFixed(3),q.cumOffsetMs=b.D.toFixed(3),q.finalDurSecs=n.toFixed(3),RS(a,!1,"qoe.avsync",q));if(b.K.oa&&aS(b)&&!EM(rR(b.o))&&e&&0<
n){if(b.D+=1E3*(l-f.info.duration+e),b.C+=e,e=dS(b,g.z,n*DM(f))){if(kT(a,c,new window.Uint8Array(e),f,b)){fS(b);e=!0;break a}e=!1;break a}}else b.D+=1E3*(l-f.info.duration);e=null}if(null!=e)return e}if(!kT(a,c,k,f,b))return!1;b.P=!0;m?(BM(f,f.info.startTime),c.abort(),c.g=null):eS(b,d);f.A&&(c.g=f.info.g.g,a.Y("initsegment",c.g));return!0};
kT=function(a,b,c,d,e){c=jT(a,b,c);if(0!=c){if(2!=c){if(d.info.g.info.video){var f=a.o;f.C=Math.floor(f.C*f.D);f.M=Math.floor(f.M*f.D);f.o=Math.floor(f.o*f.D);f.tb||(f.G=Math.floor(f.G*f.D))}else f=a.o,f.F=Math.floor(f.F*f.D),f.ga=Math.floor(f.ga*f.D),f.o=Math.floor(f.o*f.D);if(1==c&&a.o.tb&&b.remove&&!b.updating){a=!1;e=b.buffered.length;for(c=0;!a&&c<e;c++)b.buffered.start(c)>d.info.B&&(b.remove(b.buffered.start(c),b.buffered.end(e-1)),a=!0);a||b.remove(0,d.info.startTime-5)}else oS(e)}return!1}return!0};
mT=function(a,b){EN(a.C,b)&&a.o.sa&&a.P&&(a.P=!1,a.Y("seekplayerrequired",b.startTime+.1,!0))};
jT=function(a,b,c){try{XL(a.A)?b.appendBuffer(c):b.append(c)}catch(d){if(11==d.code)return RS(a,!1,"html5.invalidstate",{updating:""+ +b.updating,mrs:a.A.A.readyState}),2;if(22!=d.code&&0!=d.message.indexOf("Not enough storage"))return g.qE(d),4;a.o.ie&&a.Bk("quex","br."+KJ(b.buffered).replace(/,/g,"_"));return 1}return UL(a.A)?3:0};
nT=function(a,b){b.o.subscribe("error",a.bO,a);b.o.subscribe("timestamprewrite",a.fO,a);b==a.g&&(b.o.subscribe("placeholderinfo",a.cO,a),b.o.subscribe("placeholderrollback",a.dO,a),b.o.subscribe("segmentinfo",a.eO,a),b.o.subscribe("cuepoint",a.aO,a))};
bT=function(a,b,c){if(a.o.ca&&a.G)return a.o.ca;var d=b.Ua.info.audio?a.o.F:a.o.C;!a.o.ba&&HS(a.F)&&(d=Math.max(d,b.Ua.info.audio?a.o.ga:a.o.M));c&&(d+=a.o.fa);c=HS(a.F)?b.g?b.g.g.info.g:b.Ua.info.g:b.O;d/=c;0<a.o.qb&&a.A&&SL(a.A)&&(b=b.Ua.info.video?a.A.o:a.A.g)&&!b.updating&&(c=FJ(b.buffered,a.D),0<=c&&(b=a.D-b.buffered.start(c),d+=Math.max(0,Math.min(b-a.o.qb,a.o.Oe))));0<a.o.o&&(d=Math.min(d,a.o.o));a.o.Ra&&!HS(a.F)&&(b=a.o.Ra,c=a.F,c=IS(c,c.C[0])+IS(c,c.K.g[0]),b*=c/AS(a.K),b<d&&25>b&&a.Bk("bwcapped",
"1",!0),d=Math.min(d,Math.max(b,25)));return d};
gma=function(a){if(!a.Ra)return window.Infinity;for(var b=(0,g.ye)(a.Ra.g.g,function(a){return"ad"==a.namespace}),b=g.ka(b),c=b.next();!c.done;c=b.next())if(c=c.value,c.start/1E3>a.D)return c.start/1E3;
return window.Infinity};
oT=function(a,b,c){var d=(0,g.A)(a.Y,a,"error");a=a.o.zb?(0,g.A)(a.Bk,a,"pathprobe"):null;(new LS(b,c,a,d)).send()};
pT=function(a,b,c,d){if(b.Ua.xd())if(d){var e=GJ(d.buffered,c),f=window.NaN,k=b.B;k&&(f=GJ(d.buffered,k.g.index.Pf(k.Ga)));if(e==f&&qS(b))return c;d=gS(b,c);if(0<=d)return d;nS(b,b.Ua.qe()?1:2);b.Ua.info.video&&b.B&&!b.B.A&&!Ola(b.o)&&b.Ua.qe()&&(d=b.B,b.o.g.length&&(d=sR(b.o).info),d=b.g||d,d=d.g.di(d,d.range.length-(d.ub+d.o)),YR(b,fT(a,d)));if((0,window.isNaN)(e))return iS(b,c);iS(b,e+eT)}else iS(b,c);else b.Ua.o||TS(a,b,!1),0!=c&&lS(b);return c};
TS=function(a,b,c){c=b.Ua.Gm(a.o,c);(0,g.H)(c,function(a){if("f"!=a.g[0].g.info.o){var c=fT(this,a);!gM(a.g[a.g.length-1])&&YR(b,c)}},a);
b.Ua.o=!0};
RS=function(a,b,c,d){a.na()||(a.Y("error",new g.QP(c,b,d)),b&&a.dispose())};
qT=function(a){var b={lct:a.D.toFixed(3),lsk:a.O,lmf:HS(a.F),lbw:$K(a.M).toFixed(3),lhd:XK(a.M).toFixed(3),lst:(1E9*ZK(a.M)).toFixed(3),laa:a.B.B?jM(a.B.B):"",lva:a.g.B?jM(a.g.B):"",lar:a.B.g?jM(a.B.g):"",lvr:a.g.g?jM(a.g.g):"",lvh:a.ra};a.A&&!UL(a.A)&&(b.lab=KJ(a.A.g.buffered),b.lvb=KJ(a.A.o.buffered));return b};
VS=function(a,b,c){a.Ta[b]=c?window.performance.timing.navigationStart+c:(0,g.sG)()};
YS=function(a){a.B&&nS(a.B,0);a.g&&nS(a.g,0)};
rT=function(a,b,c){if(!b||!c)return!0;c=-1!=FJ(c.buffered,a);var d=sR(b.o)?sR(b.o).info.B>=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)};
jma=function(a,b,c){this.url=a;this.interval=b;this.g=c};
kma=function(a,b){this.message=a;this.number=b;this.g=new jC(5E3,2E4,.2)};
lma=function(a,b,c,d){this.g=a;this.statusMessage=b;this.headers=c;this.message=d};
mma=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=Xa(e[1]),e=e[2],b=rL(b.slice(d+2));return null==b?null:new lma(f,e,b,a.subarray(c+4))};
sT=function(a){return g.pc(a,!0).replace(/[\.]{1,2}$/,"")};
tT=function(a,b){this.g=a;this.contentType=(void 0===b?"":b)||null;this.A=this.o=window.NaN;this.B=!1;this.C=[]};
uT=function(a,b,c,d,e){g.M.call(this);this.C=a;this.M=b;this.G=c;this.g=d;this.o=e;this.sessionId="";this.A=this.K=this.J=this.D=this.F=null;this.B=new g.CJ(this);g.N(this,this.B);this.g?(this.B.T(this.g,"message",this.IK),this.B.T(this.g,"keystatuseschange",this.JK)):this.o&&(DJ(this.B,this.o,["mskeymessage","webkitkeymessage"],this.Iz),DJ(this.B,this.o,["mskeyerror","webkitkeyerror"],this.Hz),DJ(this.B,this.o,["mskeyadded","webkitkeyadded"],this.Gz))};
vT=function(a){return!(!a.g||!a.g.keyStatuses)};
nma=function(a){var b=[];a.g.keyStatuses.forEach(function(a,d){"usable"==a&&b.push(sT(new window.Uint8Array(d)))});
return b};
oma=function(a,b){var c=[];if(!vT(a))return c;a.g.keyStatuses.forEach(function(a,e){var d=sT(new window.Uint8Array(e)),k={keyId:d};k.type=b[d];k.status=a;c.push(k)});
return c};
wT=function(a,b){g.M.call(this);this.o=a;this.g=b;this.F={};this.B=null;this.C=new g.CJ(this);g.N(this,this.C);this.A=this.D=null};
xT=function(a){if(a.g.A)return a.g.A.createMediaKeys().then(rE((0,g.A)(function(a){this.D=a;this.o.setMediaKeys(a)},a)));
IN(a.g)?a.A=new (HN())(a.g.o):JN(a.g)?(a.A=new (HN())(a.g.o),a.o.webkitSetMediaKeys(a.A)):pma(a);return null};
pma=function(a){DJ(a.C,a.o,["keymessage","webkitkeymessage"],a.K);DJ(a.C,a.o,["keyerror","webkitkeyerror"],a.J);DJ(a.C,a.o,["keyadded","webkitkeyadded"],a.G)};
qma=function(a,b){var c=b.g;if(a.g.A){var d=a.D.createSession(),c=d.generateRequest(b.contentType,c),d=new uT(null,null,null,d,null);c.then(null,rE((0,g.A)(d.jz,d,"t.g")));return d}if(IN(a.g)){for(var d=new window.Uint8Array(270),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 uT(null,null,null,null,c)}if(JN(a.g)){for(var 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="",f=0;f<d.length;f+=2)e+=String.fromCharCode((0,window.parseInt)(d.substr(f,2),16));for(var f=a.g.fairPlayCert,d=new window.Uint8Array(new window.ArrayBuffer(f.length)),k=0;k<f.length;k++)d[k]=f.charCodeAt(k);for(var f=new window.ArrayBuffer(2*e.length),k=new window.Uint16Array(f),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 uT(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 uT(a.o,a.g,c,null,null);return a.B};
yT=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};
AT=function(a,b,c,d,e,f){f=void 0===f?!1:f;g.M.call(this);this.B=a;this.g=d;this.g.subscribe("oauthtoken",this.gy,this);this.D={session_id:e};this.P=!!f;this.O=0;a=this.B.C;JN(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://"));zT(this,a);this.C=this.J=!1;g.tP("drm_gk_s");try{var k=qma(b,c)}catch(l){b="t.g",l instanceof window.DOMException&&(b+=";c."+l.code),this.g.Y("licenseerror","drm.unavailable",
!0,b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"),k=null}if(this.A=k)b=this.A,k=this.aK,a=this.ZJ,d=this.cK,b.F=this.bK,b.D=k,b.J=a,b.K=d,b.A=this,g.N(this,this.A);this.W=c.C;this.F={};this.K=window.NaN;this.o=c.o||window.NaN};
zT=function(a,b){if(rma.test(b)){for(var c in a.D)b=Ig(b,c,a.D[c]);a.G=b}else BT(a,"drm.net",!0,"t.x")};
BT=function(a,b,c,d,e){a.na()||a.g.Y("licenseerror",b,c,d,e);c&&a.dispose()};
sma=function(a,b){var c=(0,g.I)(a,function(a){return b[a]});
return CT(c)};
CT=function(a){return g.eb(a,"UHD2")?"highres":g.eb(a,"UHD1")?"hd2160":g.eb(a,"HD")?"hd1080":g.eb(a,"HD720")?"hd720":"large"};
tma=function(a){if(!a)return{};var b={};(0,g.H)(a.split(";"),function(a){a=a.split(",");2==a.length&&(b[a[1]]=a[0])});
return b};
uma=function(a){var b={requestedKeyIds:a.W,cryptoPeriodIndex:a.o};a.A&&(b.receivedKeys=oma(a.A,a.F));return b};
DT=function(){this.keys=[];this.values=[]};
FT=function(a,b,c,d,e){e=void 0===e?"":e;g.RF.call(this);a&&(a.addKey||a.webkitAddKey)||HN()||MN(c);this.M=c;this.J=a;this.g=b;this.subscribe("newlicense",this.uO,this);this.subscribe("newsession",this.vO,this);this.subscribe("sessionready",this.rP,this);this.subscribe("keystatuseschange",this.dK,this);this.ga=e||g.AO();this.P=null;this.A=new DT;this.B=this.D=null;this.o=[];this.F="fairplay"==this.g.g?XI:ET;this.O=new wT(a,b);g.N(this,this.O);this.C=null;IN(b)&&(this.C=new wT(a,b),g.N(this,this.C));
this.da=2;this.K=new g.CJ(this);g.N(this,this.K);this.W=!1;this.ca=null;this.G=!1;a=this.J;this.g.A?this.K.T(a,"encrypted",this.pN):DJ(this.K,a,IN(this.g)?["msneedkey"]:["needkey","webkitneedkey"],this.rO);(a=xT(this.O))?a.then(rE((0,g.A)(this.YN,this)),rE((0,g.A)(this.vM,this))):this.G=!0;this.C&&xT(this.C);this.fa=d};
HT=function(a,b,c){a.na()||IN(a.g)==c||a.W&&a.fa||(a.W=!0,a.o.push(b),1<a.o.length||a.G&&GT(a))};
GT=function(a){for(;a.o.length;){var b=a.o[0];if(g.Ab(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=k+(16*l+4);var m=e.getUint32(d+k-4);try{for(var n,q=new Cc(c.subarray(d+k,d+k+m)),r=new JD,k=q;Dc(k)&&4!=k.o;)switch(k.A){case 1:var w=
k.g;b:{for(var y,B,D=w,K=0,X=0;4>X;X++)if(B=D.o[D.g++],K|=(B&127)<<7*X,128>B){D.F=K>>>0;D.D=0;break b}B=D.o[D.g++];K|=(B&127)<<28;y=0|(B&127)>>4;if(128>B)D.F=K>>>0,D.D=y>>>0;else{for(X=0;5>X;X++)if(B=D.o[D.g++],y|=(B&127)<<7*X+3,128>B){D.F=K>>>0;D.D=y>>>0;break b}D.C=!0}}var Ra=w.F,bb=w.D;if(D=bb&2147483648)Ra=~Ra+1>>>0,bb=~bb>>>0,0==Ra&&(bb=bb+1>>>0);K=4294967296*bb+Ra;var ia=D?-K:K;Tc(r,1,ia);break;case 2:D=ia=Gc(k);J(r,2).push(D);break;case 3:ia=Fc(k);Tc(r,3,ia);break;case 4:ia=Gc(k);Tc(r,4,ia);
break;case 5:ia=Fc(k);Tc(r,5,ia);break;case 6:ia=Fc(k);Tc(r,6,ia);break;case 7:ia=Bc(k.g);Tc(r,7,ia);break;case 8:ia=Gc(k);Tc(r,8,ia);break;case 9:ia=Bc(k.g);Tc(r,9,ia);break;case 10:ia=Bc(k.g);Tc(r,10,ia);break;default:Ec(k)}n=r;if(null!=n){var Zb=n;break a}}catch(tb){}}d+=f}Zb=null}catch(tb){Zb=null}}if(null!=Zb)for(c=J(Zb,7),null!=c&&(b.o=c),c=J(Zb,10),null!=c&&0<c&&(b.A=c),c=J(Zb,2),c=!c.length||c[0]instanceof window.Uint8Array?c:(0,g.I)(c,Eaa),c=g.ka(c),d=c.next();!d.done;d=c.next())b.C.push(sT(d.value));
a:{if(!(a.M.g("disable_license_delay")||"widevine"!=a.g.g||b.B||(0,window.isNaN)(b.o)))for(c=g.ka(a.A.values),d=c.next();!d.done;d=c.next())if(1>=Math.abs(d.value.o-b.o)){c=!0;break a}c=!1}if(c){vma(a,b);a.o.shift();continue}}break}}a.o.length&&(b=a.o[0],a.A.get(b.g),Zb=new AT(a.g,a.O,b,a,a.ga,a.M.g("html5_use_drm_retry")),Zb.gy(a.P),"playready"==a.g.g&&a.M.g("playready_on_borg")&&(g.ac(Zb.D,{prob:"1"}),zT(Zb,Zb.G)),a.A.set(b.g,Zb))};
vma=function(a,b){a.B&&a.B.dispose();a.D=b.g;a.B=new g.qt(function(){a.D=null;a.B=null;b.B=!0;a.o.push(b);1<a.o.length||GT(a)},wma(b.A));
a.B.start()};
wma=function(a){return 1E3*Math.max(0,Math.random()*(((0,window.isNaN)(a)?120:a)-30))};
IT=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.Qj?this.o=g.zE(this.g.Qj):this.o=[]};
xma=function(a,b){this.Z=a;this.g=b};
JT=function(a,b){var c=YI(YI(a.Z.tI,b.dl),b.jl);"auto"!=bJ()||(c=a.Z.experiments.g("html5_restore_performance_cap")?YI(c,new TI(0,dJ(),!1)):YI(c,a.Z.Eg));return c};
KT=function(a,b){var c=bJ();if("auto"!=c)var d=VI("auto",c,!1);else if(g.$L(a.Z)&&aM(a.Z.O,gO))d=XI;else{var e,c=!!b.jb.g;IO(a.Z)&&(e=window.screen&&window.screen.width?new g.Wd(window.screen.width,window.screen.height):null);e||(e=a.Z.Kg?a.Z.Kg.clone():a.g.Ya());(FO||mi||c)&&e.scale(g.VO());c=b.jb.videoInfos;if(c.length){var f=.85,k=3==c[0].video.projectionType;2!=c[0].video.projectionType||ZN?k&&!ZN&&(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=VI("auto",d.quality,!1)}else d=XI;e=d.g;VE()&&(e=Math.max(e,g.EI.hd1080));(NE("armv7")||NE("android"))&&!g.$L(a.Z)&&JI(b.jb.videoInfos[0])&&(e=Math.min(e,g.EI.large));e=Math.max(e,g.EI.medium);a.Z.experiments.o("html5_default_quality_cap")&&(e=Math.min(e,a.Z.experiments.o("html5_default_quality_cap")));d.g!=e&&(d=new TI(d.o,e,d.A))}return d};
LT=function(){g.M.call(this);this.A={};this.g={};this.o=new g.qt(this.YQ,500,this);g.N(this,this.o)};
MT=function(a,b){return a.g[b]?a.g[b].g.fb():[]};
NT=function(a){this.A=a;this.g=new eR(100);this.o=window.NaN};
OT=function(){var a=uF("visibilityState",window.document);return!(!a||"visible"==a)};
yma=function(a){var b=PT();b&&window.document.addEventListener(b,a,!1)};
PT=function(){if(window.document.visibilityState)var a="visibilitychange";else{if(!window.document[tF+"VisibilityState"])return"";a=tF+"visibilitychange"}return a};
QT=function(a,b,c,d,e,f){g.RF.call(this);this.Ta=new Ija;this.G=c;this.xb=d;this.je=f;c=(0,g.A)(function(b,c){b!="crn_"+QT.g||!a.experiments.g("use_legacy_ended_cue_range_behavior")&&g.V(this.A,32)||RT(this);e(b,c)},this);
this.D=new PS((0,g.A)(this.getCurrentTime,this),(0,g.A)(this.EB,this),(0,g.A)(this.rS,this),c);g.N(this,this.D);this.oa=window.NaN;this.W=this.F=null;this.Z=a;this.ra=new xma(a,this.xb);this.Fa=!1;this.J=this.B=null;this.fa=[];this.ga=new WR;this.O=new WR;this.Dd=this.wc=this.Oe=this.sa=!1;this.qb=window.NaN;this.A=new g.WJ;this.Na=[];this.Ed=b;this.ha=null;this.P=window.NaN;this.ka=new g.CJ;g.N(this,this.ka);this.g=new g.rQ;this.o=null;this.da=window.NaN;this.C=null;this.Rd=this.Ja=!1;this.Oa=window.NaN;
this.Ub=this.Yb=this.rb=this.Ra=!1;this.tb=this.oc=window.NaN;this.qf=a.experiments.g("html5_force_play_on_suspend_event");this.rf=a.experiments.g("html5_force_play_on_suspend_event_limited");this.K=null;this.sf=this.Z.experiments.g("html5_playing_event_buffer_underrun");this.ca=new LT;g.N(this,this.ca);this.ca.Gb("bufferhealth",(0,g.A)(this.Yv,this));this.ca.Gb("bandwidth",(0,g.A)(this.gG,this));this.ca.Gb("networkactivity",(0,g.A)(this.iG,this),!0);this.ca.start();this.Cd=!1;this.zb=!0;this.uc=
this.Hb=!1;this.ua=1;this.M=null;this.he=(0,g.A)(this.dQ,this);yma(this.he);this.Pe=new g.qt(this.Zr,0,this);g.N(this,this.Pe);this.ie=this.Dc=0};
ST=function(a){g.BG()?g.DG(a.Oa):g.vE(a.Oa)};
ZT=function(a,b,c,d){a.fa.length=0;a.ga.reset();a.O.reset();a.oa=window.NaN;a.P=window.NaN;a.Ja=!1;a.Hb=!1;a.o&&a.o.Of();TT(a);UT(a);VT(a);ST(a);a.ca.clear();a.Pe.stop();a.K=null;a.M=null;g.Re(a.g);if(2==a.Ed||CO.test(a.Z.P))b.mx=!0;var e=qO(b.Xb,a.Z.A,a.Z.Fb);e&&(b.adFormat=e);a.Z.ga&&(b.autonavState=a.g.autonavState);a.zb=0!=d;a.g=b;a.g.subscribe("dataupdated",a.WP,a);a.g.subscribe("dataloaded",a.ev,a);a.g.subscribe("dataloaderror",a.Oj,a);a.g.subscribe("onStatusFail",a.VP,a);b.Ii&&b.Ii>b.startSeconds&&
(b=b.Ii,a.W&&(a.D.F(a.W),a.W=null),a.W=new g.oJ(1E3*b,0x7ffffffffffff),a.W.namespace=QT.g,QS(a.D,[a.W]));UT(a);a.g.Ij||(c=new Kja(a.g,a.Z,c,(0,g.A)(a.getDuration,a),(0,g.A)(a.getCurrentTime,a),(0,g.A)(a.jG,a),(0,g.A)(a.xb.Ya,a.xb),(0,g.A)(a.lt,a),(0,g.A)(a.EB,a),(0,g.A)(a.Zp,a),a.je,(0,g.A)(a.vG,a)),a.C=new CK(c),a.G.o("qoes"));a.Ra=!1;WT(a,"newdata");XT(a,new g.WJ)};
UT=function(a){if(a.C){var b=a.C;if(!b.na()&&b.B){b.D="paused";var c=HK(b);c.ra=!0;c.send();c=b.o;"PL"==c.A&&(c.A="N");var d=g.sJ(c.g);g.nK(c,d,"vps",[c.A]);c.C(d);g.vE(b.C);b.dispose()}g.Re(a.C);a.C=null}};
aU=function(a){if(a.g.Ge())return!0;g.$T(a,"api.invalidparam",void 0,"invalidVideodata.1");return!1};
cU=function(a,b){a.sa=!!b;if(aU(a)&&!a.ga.o){a.ga.start();if(a.C){var c=a.C.o;c.g.g.experiments.g("html5_qoe_unstarted_in_initialization")?g.sJ(c.g):g.nK(c,g.sJ(c.g),"vps",["N"]);c.g.videoData.En?wK(c,"prefetch"):c.o.user_intent=["0"];c.g.videoData.li&&(pK(c,"reload",c.g.videoData.gs),pK(c,"reloadcount",c.g.videoData.li.toString()));c.g.videoData.Ak&&wK(c,"monitor");c.g.videoData.Ba&&wK(c,"live");c.g.videoData.ah&&wK(c,"rqs");c.g.videoData.Wf&&pK(c,"ctrl",c.g.videoData.Wf,!0);c.g.videoData.gf&&pK(c,
"ytp",c.g.videoData.gf,!0);if(c.g.videoData.pA){var d=c.g.videoData.pA.replace(/,/g,".");pK(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"),f=e.Xh()||e.bh()||e.tg()||e.sk(),e=0==e.clientPlaybackNonce.indexOf("gp");(d||f||e)&&(d=bU())&&(c.o.gpu=[d])}c.W=g.wE((0,g.A)(c.C,c),1E4)}a.ev()}};
fU=function(a){a.o&&PJ(a.o);cU(a);aU(a)&&!g.V(a.A,128)&&(a.O.o||(a.O.start(),a.Z.experiments.g("html5_suspended_state")?XT(a,ZJ(ZJ(a.A,8),1)):(XT(a,ZJ(a.A,8)),a.g.Pb()||(XT(a,ZJ(a.A,1)),dU(a,"waiting_videodata")))),eU(a))};
eU=function(a){if(!a.O.g&&a.ga.g&&!g.V(a.A,128)&&!a.fa.length){if(!a.D.C){var b=a.D;b.C=!0;b.A()}if(!gU(a)){a.B&&(b=a.B,a.Oe=!!b.W&&!!b.ga);a.O.g||(a.O.g=!0);a.g.Ba&&(hU(a,window.Infinity,!0),iU(a,!0),OT()&&(a.Rd=!0));if(a.C&&(b=a.C,b.g.videoData.enableCardio&&b.g.videoData.enableCardioBeforePlayback&&(b.Sn("connected"),MK(b)),b.g.videoData.Ba)){var b=b.o,c=b.g.videoData.va;b.g.videoData.bf()&&wK(b,"manifestless");c&&DN(c)&&wK(b,"live-segment-"+DN(c).toFixed(1))}a.Y("playbackready",a);JP("pbr",a.G.g)||
(a.G.o("pbr"),g.tP("pbr",void 0,"video_to_ad"))}}};
RT=function(a,b){jU(a);XT(a,0==b?new g.WJ:new g.WJ(14))};
mU=function(a,b,c,d){a.g.Ma=c;a.g.rd=d||c;if(a.C){var e=kU(a),e=new qJ(a.g,c,b,e?HI(e):"");d&&"i"==b&&lU(a,b,d);d=a.C.o;c=g.sJ(d.g);g.nK(d,c,"vfs",[e.g.id,e.o,d.fa,"b"==e.reason?"a":e.reason]);d.fa=e.g.id;e=d.g.M();if(0<e.width&&0<e.height){var e=[Math.round(e.width),Math.round(e.height)],f=g.VO();1<f&&e.push(f);g.nK(d,c,"view",e)}g.nK(d,c,"vps",[d.A]);d.C(c);a.Z.experiments.g("html5_report_performance_cap")&&"i"==b&&(d=dJ())&&a.ne("perfCap",""+d)}a.Dc=0;a.Y("internalvideoformatchange",a.g,"m"==b)};
kU=function(a){if(!a.g.jb)return null;var b=YI(YI(KT(a.ra,a.g),nU(a)),oU(a));return g.$a(a.g.jb.videoInfos,(0,g.A)(b.B,b))};
lU=function(a,b,c){a.g.rd=c;if(a.C){var d=a.C.o;c=new qJ(a.g,c,b,"");var e=g.sJ(d.g);c.g.id!=d.K&&(g.nK(d,e,"afs",[c.g.id,d.K,c.reason]),d.K=c.g.id)}"i"!=b&&a.Y("internalaudioformatchange",a.g,"m"==b)};
g.$T=function(a,b,c,d){var e,f;Mb(zma,c)?e=c:c?f=c:e="YTP_ERROR_GENERIC_WITHOUT_LINK";b={errorCode:b,errorDetail:d,message:f||g.T(e),messageKey:e};XT(a,YJ(a.A,128,b));ST(a);VT(a);pU(a)};
Ama=function(a,b){a.fa=a.fa.filter(function(a){return b!=a});
a.O.o&&eU(a)};
gU=function(a){var b;(b=!!a.fa.length)||(a=a.D.g.g[0],b=!!a&&-0x8000000000000>=a.start);return b};
rU=function(a,b){a.o&&qU(a);a.Z.experiments.g("html5_suspended_state")&&!a.A.isError()&&XT(a,$J(a.A,512));a.o=b;a.o.g.loop=a.uc;a.o.Nf(a.ua);Bma(a)};
qU=function(a){a.g&&a.Z.experiments.g("new_ended_replay")&&(a.g.startSeconds=a.getCurrentTime());a.J&&(a.J.dispose(),a.J=null);a.B&&(hT(a.B),a.B.G=!0);a.o&&(a.Z.experiments.g("html5_suspended_state")&&a.O.o&&!a.A.isError()&&!g.V(a.A,2)?XT(a,ZJ(a.A,512)):a.C&&a.ga.o&&g.V(a.A,64)&&!a.g.lg&&sU(a),TT(a),g.EJ(a.ka),a.o.Of(),a.o=null)};
xU=function(a){if(!g.V(a.A,128))if(a.Cd)a.Cd=!1,tU(a);else if(fU(a),g.V(a.A,64)&&XT(a,ZJ(a.A,8)),a.O.g&&a.o)if(a.g.jb){a.Z.experiments.g("new_ended_replay")&&g.V(a.A,2)&&hU(a,0,!0);if(a.g.Ba){var b=uU(a),c=g.MQ(a.g)&&g.V(a.A,4);if(b||c)!c&&a.Z.experiments.g("html5_live_pin_to_tail")?hU(a,a.Jc(),!0):hU(a,window.Infinity,!0);vU(a)?iU(a,!0):a.isPeggedToLive()&&hU(a,window.Infinity,!0)}wU(a)?Cma(a):a.o.cd()}else b=a.g.Ba&&!g.WN()?"html5.unsupportedlive":"fmt.noneavailable",g.$T(a,b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",
"selectableFormats.1")};
zU=function(a){TT(a);VT(a);yU(a)};
AU=function(a){if(a.g.jb){var b=nU(a)||XI;a=(0,g.ye)(a.g.jb.videoInfos,(0,g.A)(b.B,b));for(var b=[],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};
BU=function(a){return YI(YI(YI(JT(a.ra,a.g),KT(a.ra,a.g)),nU(a)),oU(a))};
nU=function(a){return a.F?a.F.F:wQ(a.g)&&a.g.jb.g&&tN(a.g.va)?ET:XI};
CU=function(a,b,c){if(!a.na()&&!g.V(a.A,128)&&(c&&(a.g.jl=c),wQ(a.g))){"m"==b&&c&&WI(c)&&(b="a");c=BU(a);if(a.g.jb.g){if(a.B&&"i"!=b){var d=a.B;if(!d.na()&&d.g){(c=Zla(d.F,c,b))&&d.Y("videoformatchange",c);US(d);if(HS(d.F)&&"m"==b&&d.F.M||"b"==b)oS(d.g),oS(d.B);tS(d.g)&&dT(d,d.g,d.B);hT(d)}}}else{a:if(d=a.g.Xk,c.g){for(var e=0;e<d.length;e++){var f=d[e].ye,k=g.EI[f.video.quality];if((!c.A||"auto"!=f.video.quality)&&k<=c.g){c=d[e];break a}}c=d[d.length-1]}else c=d[0];a.g.wg=c;mU(a,b,a.g.wg.ye)}a.A.wb()&&
xU(a)}};
g.DU=function(a){Aka(a.g.va,{cpn:a.g.clientPlaybackNonce,c:a.Z.B.c,cver:a.Z.B.cver});var b=Zja(a.Z,a.g);a.Z.schedule.policy.A=a.g.bf()?.5:0;a.B=new SS(a.Z.schedule,b,a.g.va,a.g.jb,a.D);a.B.subscribe("initsegment",a.HN,a);a.B.subscribe("videoformatchange",a.RN,a);a.B.subscribe("audioformatchange",a.QN,a);a.B.subscribe("error",a.Oj,a);a.B.subscribe("ctmp",a.ne,a);a.B.subscribe("seekelementrequired",a.cR,a);a.B.subscribe("seekplayerrequired",(0,g.A)(function(a,b){hU(this,a,!0,void 0,b)},a));
var b=g.eb(a.fa,"spacecast")||a.sa,c=a.lt(),c=c.Sc.isDefault?void 0:c;a.B.initialize(a.g.startSeconds,BU(a),b,c);a.g.probeUrl&&(a.B.ca=a.g.probeUrl);if(a.fa.length||a.sa)a.B.G=!0;a.sa&&sU(a)};
oU=function(a){var b=a.Z.experiments.o("html5_background_quality_cap");a=a.Z.experiments.o("html5_background_cap_idle_secs");return!b||"auto"!=bJ()||g.vG()/1E3<a?XI:OT()?new TI(0,b,!1):XI};
sU=function(a){a.Z.experiments.g("html5_suspended_state")||LK(a.C,new g.gK(new g.WJ(4),a.A))};
VT=function(a){a.B&&(a.B.dispose(),a.B=null);a.J&&(a.J.dispose(),a.J=null)};
yU=function(a){a.J||(a.B?a.B.seek(a.getCurrentTime()):g.DU(a),a.J=new RL(a.o,a.g.lengthSeconds,a.g.jb.videoInfos[0].mimeType,a.g.jb.g[0].mimeType,a.Z.D,a.Z.experiments.g("html5_deferred_source_buffer_creation")),Vja(a.J,(0,g.A)(a.ZN,a)),Wja(a.J,(0,g.A)(function(a){this.Z.experiments.g("html5_msi_error_fallback")?(this.Oj(new g.QP("qoe.restart",!1,{msi:"1",ename:a.name})),this.g.Fp=!0,a=(0,g.A)(function(){CU(this,"a");xU(this)},this),g.CQ(this.g,this.Z).then(a,a)):g.$T(this,"fmt.unplayable",void 0,
"msi.1;ename."+a.name)},a)));
try{return Xja(a.J)}catch(b){return b.message="window.URL object overwritten by external code",window.setTimeout(function(){throw b;},0),g.$T(a,"html5.missingapi","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1"),null}};
Dma=function(a){return 403==a.details.rc?(a=a.errorCode,"net.badstatus"==a||"manifest.net.retryexhausted"==a):!1};
tU=function(a){!a.g.lg&&a.g.li||a.rb||(a.rb=!0,a.Y("signatureexpired"))};
EU=function(a){return"net.retryexhausted"==a.errorCode||"net.badstatus"==a.errorCode&&!!a.details.isPotentialFormatUnavaliable};
jU=function(a,b){if(g.V(a.A,64)&&!b)if(g.V(a.A,8))XT(a,aK(a.A));else if(!a.Z.experiments.g("legacy_html5_unstarted_paused"))return;a.o&&(g.V(a.A,128)||(b?XT(a,ZJ(a.A,256)):XT(a,aK(a.A))),a.o&&a.o.pause())};
FU=function(a){var b=a.Z.experiments.g("disable_html5_stopvideo_cancel_requests");jU(a,b);a.B&&(a.B.G=!0,b||YS(a.B))};
pU=function(a,b){a.o&&(a.o.pause(),TT(a),VT(a),a.g&&(a.g.startSeconds=a.getCurrentTime()),a.P=window.NaN,a.o.Of(),g.V(a.A,128)||(b?XT(a,aK(a.A)):XT(a,YJ(a.A))),a.Z.G.remove(a.g.videoId))};
hU=function(a,b,c,d,e){if(!a.o||!a.O.g||!a.o.wd()&&a.Z.experiments.g("new_ended_replay"))a.g.startSeconds=b||0;else{if(a.M&&b&&!(0,window.isFinite)(b)&&a.B){if(a.Z.experiments.g("html5_use_adaptive_live_readahead")&&a.g.isLowLatencyLiveStream){var f=a.M;if(f.o.length){var k=f.g;1<Math.min.apply(null,f.o)?f.g=Math.max(f.g-1,1):f.g=Math.min(f.g+1,8);if(k=k!=f.g)f.o=[],f.A=0;f=k}else f=!1;f&&a.C&&(f=gR(a.M),vK(a.C.o,f))}a.B.Ja=Math.max(0,a.M.g-1)}if(b&&!(0,window.isFinite)(b)&&a.g.lg&&a.g.bf()&&a.B){var l=
a.B;YS(l);f=Math.max(xS(l.g),xS(l.B));jS(l.g,f);jS(l.B,f);var k=l.C,m;for(m in k.g)fL(k.g[m].index,window.Infinity);l.o.sa&&(l.P=!0);hT(l);l=f+.1}l||(l=g.Pd(b||0,a.Jc(),GU(a,!1,e)));b=a.g.Ba&&!g.V(a.A,4)&&vU(a,l);iU(a,b);a.g.startSeconds=l;a.P=l;b=a.Ta;b.g=l;b.o=!0;c?a.DB():(g.V(a.A,32)||(XT(a,ZJ(a.A,32)),g.V(a.A,8)&&jU(a,!0),a.Y("beginseeking",a)),d&&(a.ha||(a.ha=new g.qt(a.DB,d,a)),a.ha.start()),HU(a,!0));a.W&&l>a.g.Ii&&(a.D.F(a.W),a.W=null);l<GU(a,!1)&&XT(a,$J(a.A,2));a.Y("seekto",a,l)}};
IU=function(a){return a.g.Ba&&a.g.va?EK(a.g.va,a.getCurrentTime()):window.NaN};
Ema=function(a){if(!a.o)return 0;if(g.MQ(a.g))return 1;if(NQ(a.g)){if(a.isPeggedToLive())return 1;var b=a.o,c=QJ(b),b=(0<HJ(c)&&b.getDuration()?c.end(c.length-1):0)-a.Jc();a=GU(a,!0)-a.Jc();return Math.max(0,Math.min(1,b/a))}return TJ(a.o)};
JU=function(a,b){var c={};if(b){a.C?g.za(c,BK(FK(a.C,"playback"))):a.g&&(c.cpn=a.g.clientPlaybackNonce);a.o&&g.za(c,UJ(a.o));a.B&&g.za(c,qT(a.B));if(a.F){for(var d=a.F,e=d.g,e={systemInfo:{flavor:e.g,keySystem:e.o},sessions:[]},d=g.ka(d.A.values),f=d.next();!f.done;f=d.next())e.sessions.push(uma(f.value));c.drm=e}c.state=a.A.o.toString(16);g.V(a.A,128)&&(c.debug_error=a.A.g);gU(a)&&(c.preroll="1");a.g.sg&&(c.ismb=a.g.sg);a.g.isLowLatencyLiveStream&&(c.lowlatency="1");a.g.Ba&&(a.g.va&&DN(a.g.va)&&
(c.segduration=DN(a.g.va)),a.K&&(e=a.K.C,c.lat=e.g[e.o]||0));c.relative_loudness=a.g.relativeLoudness.toFixed(3);if(e=kU(a))c.optimal_format=e.video.qualityLabel;c.user_qual=bJ()}c.debug_videoId=a.g.videoId;return c};
WT=function(a,b){a.Y("internalvideodatachange",b||"dataupdated",a,a.g)};
Bma=function(a){(0,g.H)("loadstart loadeddata loadedmetadata play playing pause ended suspend progress seeking seeked timeupdate durationchange ratechange error waiting abort".split(" "),function(a){this.ka.T(this.o,a,this.tS,this)},a);
a.Z.Gg&&(a.ka.T(a.o,"webkitplaybacktargetavailabilitychanged",a.jM,a),a.ka.T(a.o,"webkitcurrentplaybacktargetiswirelesschanged",a.kM,a))};
KU=function(a){var b=a.getCurrentTime(),c=a.g;!JP("pbs",a.G.g)&&xP.measure&&xP.getEntriesByName&&(xP.getEntriesByName("mark_nr")[0]?IP("mark_nr"):IP());c.videoId&&a.G.info("docid",c.videoId);c.eventId&&a.G.info("ei",c.eventId);c.clientPlaybackNonce&&a.G.info("cpn",c.clientPlaybackNonce);0<c.startSeconds&&a.G.info("start",c.startSeconds.toString());a.o&&a.o.g.paused&&a.G.info("paused",1);c.Ma?a.G.info("fmt",HI(c.Ma)):a.G.info("fmt","-1");c.En&&a.G.info("yt_pre",a.Oe?"2":"1");a.Z.ga&&a.G.info("yt_fs",
"1");a.G.info("cmt",b.toFixed(3));if(a.B){b=a.B;window&&window.performance&&window.performance.getEntriesByName&&(c=window.performance.getEntriesByName(b.ga),c.length&&(c=c[0],VS(b,"vri",c.fetchStart),VS(b,"vdns",c.domainLookupEnd),VS(b,"vreq",c.requestStart),VS(b,"fvb",c.responseStart),VS(b,"vrc",c.responseEnd)),c=window.performance.getEntriesByName(b.W),c.length&&(c=c[0],VS(b,"ari",c.fetchStart),VS(b,"adns",c.domainLookupEnd),VS(b,"areq",c.requestStart),VS(b,"avb",c.responseStart),VS(b,"arc",c.responseEnd)));
var b=b.Ta,d;for(d in b)a.G.o(d,b[d])}};
HU=function(a,b){if(a.o&&a.g){var c=a.getCurrentTime();if(uU(a)&&a.A.wb())a.Z.experiments.g("html5_live_pin_to_tail")?hU(a,a.Jc(),!0):hU(a,window.Infinity,!0);else{if(a.isPeggedToLive()){if(!vU(a,c)){if(a.A.wb()&&(a.g.Ak||g.MQ(a.g))){hU(a,window.Infinity,!0);return}a.g.Ba&&iU(a,!1)}if(a.Z.experiments.g("html5_use_adaptive_live_readahead")&&a.M){var d=a.M,e=a.Yv();d.A++;3>d.A||(d.o.push(e),50<d.o.length&&d.o.shift())}}else a.g.Ba&&vU(a,c)&&iU(a,!0);if(a.B&&(d=a.B,d.A)){d.D!=c&&d.resume();if(d.O&&!UL(d.A)){var e=
d.D<=c&&c<d.D+10,f=0<=FJ(d.A.o.buffered,d.D+eT);e&&f&&(d.O=!1)}d.O||(d.D=c);iT(d)}5<c&&(a.g.startSeconds=c);(d=g.BG())?g.DG(a.Oa):g.vE(a.Oa);!g.eK(a.A)&&a.o.g.paused||g.V(a.A,128)||(e=(0,g.A)(a.KG,a),a.Oa=0==(a.o.g.played||IJ()).length?d?g.CG(e,1,100):g.xE(e,100):d?g.CG(e,1,500):g.xE(e,500));a.g.yf=c;!b&&a.A.wb()&&a.C&&(c=a.C,c.A.update(),c.g.videoData.Pb()&&c.g.videoData.zf&&!c.O&&vJ(c.A)>=c.g.videoData.zf&&(c.B&&c.g.videoData.zf&&(d=FK(c,"delayplay"),d.Fa=!0,d.send(),c.O=!0),KK(c)),d=c.ba,d.A||
!d.g.qf||d.g.Ub||!d.videoData.lengthSeconds?d=!1:(e=Math.min(.8*d.videoData.lengthSeconds,180),d=vJ(d.B)>=e),d&&c.ba.send());a.Y("progresssync",a,b)}}};
XT=function(a,b){if(!g.bK(a.A,b)){var c=new g.gK(b,a.A);a.A=b;var d=!a.Na.length;a.Na.push(c);if(0<hK(c,1)&&!g.V(c.g,16)&&g.V(a.A,8)&&!g.V(a.A,64)&&a.B){a.B.da=!0;a.g.ah&&a.o&&a.ne("rbinfo","rs."+a.o.g.readyState+";lact."+g.vG());var e=a.Z.experiments.o("html5_nnr_downgrade_count");if(e&&a.o&&5<=RJ(a.o)){a.Dc++;var f=a.g.Ma.video.o;a.Dc==e&&360<f&&(e=a.ra,e.Z.Eg=new TI(0,f-1,!1),e.Z.experiments.g("html5_report_performance_cap")&&g.NG("yt-player-performance-cap",f-1,2592E3),CU(a,"b"),a.Z.experiments.g("html5_report_performance_cap")&&
a.ne("perfDowngrade",""+f))}}0>hK(c,8)&&(g.vE(a.da),a.da=window.NaN,iU(a,!1));0<hK(c,8)&&!a.g.lg&&(0,window.isNaN)(a.da)&&(a.da=g.xE((0,g.A)(a.zz,a),15E3));0<hK(c,32)&&iU(a,!1);g.V(c.state,2)&&NQ(a.g)&&(f=a.getCurrentTime(),a.g.lengthSeconds!=f&&(a.g.lengthSeconds=f,WT(a)),HU(a,!0));0<hK(c,2)&&a.ls();a.Z.experiments.g("html5_suspend_manifest_on_pause")&&a.g.va&&a.g.Ba&&(0>hK(c,8)?(f=a.g.va,f.B&&f.B.stop()):0<hK(c,8)&&a.g.va.resume());0<hK(c,1)&&(a.tb=g.xE((0,g.A)(a.VQ,a),5E3));a.C&&LK(a.C,c);if(d)try{for(d=
0;d<a.Na.length;d++){var c=a.Na[d],k=a.D,f=c;if(k.C&&!k.J&&(k.A(),g.V(f.g,16))){var f=k,l=OS(f.g,Math.max(f.B-2E3,0));null!=l&&0x7ffffffffffff>l&&f.D.start()}a.Y("statechange",c)}}finally{a.Na.length=0}}};
LU=function(a){g.V(a.A,2)||g.V(a.A,32)||(a.P=window.NaN)};
iU=function(a,b){a.g.Ba&&a.Fa!=b&&(a.Fa=b)};
Cma=function(a){a.Z.XL?g.xE((0,g.A)(function(){this.o.cd()},a),0):a.o.cd()};
wU=function(a){if(!a.o||!a.g.jb)return!1;if(a.g.jb.g){var b=yU(a);a.B.resume()}else VT(a),b=a.g.wg.g();var c=a.o.o;if(!c||null==b||b.g!=c.g){a.G.o("vta");g.tP("vta",void 0,"video_to_ad");PJ(a.o,b);a:if(b=a.g,b.Ma&&b.Ma.Zc&&a.o)if(b=a.g.If){if(a.F)if("fairplay"==b.g)TT(a);else break a;c=a.o.pa();a.F=new FT(c,b,a.Z.experiments,"widevine"==b.g&&!a.g.Ba&&!a.g.Rq,a.g.drmSessionId);a.F.subscribe("newsession",a.tO,a);a.F.subscribe("licenseerror",a.LN,a);a.F.subscribe("qualitychange",a.MN,a);a.F.subscribe("heartbeatparams",
a.sS,a);b=a.F;c=a.g.oauthToken;b.P=c;b.Y("oauthtoken",c)}else g.$T(a,"fmt.unplayable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1");a.J&&EG(4);g.vE(a.da);!a.g.lg&&cK(a.A)&&(a.da=g.xE((0,g.A)(a.zz,a),15E3));return!0}return!1};
TT=function(a){a.F&&(a.F.dispose(),a.F=null)};
GU=function(a,b,c){if(!a.o)return 0;if(!a.g.Ba)return a.g.kk();if(b&&(a.isPeggedToLive()||g.MQ(a.g)))return a.getCurrentTime();if(a.g.jb&&a.g.jb.g){b=a.Jc();var d=a.g.kk();a.M&&!c&&(d-=gR(a.M));return Math.max(d,b)||0}a=a.o.g.seekable||IJ();return(1>a.length?window.NaN:a.end(a.length-1))||0};
MU=function(a,b){a.ua=b;a.o&&a.o.Nf(b)};
vU=function(a,b){void 0==b&&(b=a.getCurrentTime());var c=b,d=GU(a,!1);if(a.g.va){var e=a.Z.experiments.o("html5_allowable_liveness_drift_chunks")||2;0<e&&!a.Fa&&e--;var f=DN(a.g.va);e=(0,window.isNaN)(f)?e:e*f}else e=window.NaN;return c>=d-e};
uU=function(a){return a.getCurrentTime()<a.Jc()-15};
dU=function(a,b){a.Z.experiments.g("html5_log_rebuffer_reason")&&a.ne("bufreason","r."+b+";lact."+g.vG())};
NU=function(a,b){NK.call(this,a,b)};
g.OU=function(a){return a.app.A};
g.PU=function(a){a=g.OU(a).J;return!!a&&a.hy()};
QU=function(a){var b=g.OU(a);a=g.Y(a);var c=b.J;return c&&c.iy()?!a.experiments.g("mweb_autonav")||c.isAvailable:g.LQ(b.U.ia(),"ypc_module")};
g.RU=function(a,b){3==a.Wa()?a.Y("mdxautoplaycancel"):a.Y("autonavcancel",b)};
g.Y=function(a){return a.app.Z};
g.VU=function(a){var b=a.app;a=a.playerType;return 3==SU(b)?g.TU(b.A).F:g.UU(b,a).A};
g.WU=function(a){return a.app.F};
XU=function(a){var b=g.TU(g.OU(a));return a.app.W&&!a.isFullscreen()||3==a.Wa()&&b.hasNext()&&b.Ff()||!!a.Mf()};
g.YU=function(a){if(vF())if(a.isFullscreen())xF(a.getRootNode());else{a=a.getRootNode();var b=sF(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],a);b&&b.call(a)}else a.ya("onFullscreenToggled",a.isFullscreen())};
g.ZU=function(a){var b={};a=AU(g.UU(a.app));a=g.ka(a);for(var c=a.next();!c.done;c=a.next())c=c.value,b[c.quality]=c;return b};
g.$U=function(a){return(a=g.UU(a.app))?g.ZI(JT(a.ra,a.g)):"unknown"};
aV=function(a){a=(a=g.UU(a.app))?(a=kU(a))?a.video.o:0:0;return a};
g.bV=function(a){return(a=g.OU(a).B)?a.IB():{}};
g.dV=function(a,b){g.Y(a).experiments.g("ui_logging")&&g.cV(a,"controlclicked",{controlClicked:b})};
g.cV=function(a,b,c,d){var e=g.UU(a.app);c.event=b;a.isFullscreen()&&(c.fs=1);c.ux=1;e.logEvent(c,d)};
g.eV=function(a){a=g.OU(a).A;return!!a&&a.ql()};
g.fV=function(a){a=g.OU(a).A;return!!a&&a.FB()};
gV=function(a){a=g.UU(a.app);return!!a&&a.Ub};
g.iV=function(a,b,c){hV(a.app,b,c||a.playerType)};
g.kV=function(a,b,c){var d=a.app;a=c||a.playerType;if(c=g.UU(d,a))c.D.F.apply(c.D,b),a&&SU(d)!=a||jV(d,"cuerangesremoved",b)};
g.lV=function(a,b,c){var d=a.app;a=c||a.playerType;if(c=g.UU(d,a)){c=c.D;for(var e=[],f=c.g.g,k=f.length-1;0<=k;k--){var l=f[k];if(l.namespace==b){var m=c.o.indexOf(l);0<=m&&c.o.splice(m,1);var n=c.g,m=n.g,n=g.wb(m,l,n.o);0<=n&&g.jb(m,n);e.push(l)}}c.A();a&&SU(d)!=a||jV(d,"cuerangesremoved",e)}};
g.mV=function(a,b){var c=g.UU(a.app,a.playerType);c&&Ama(c,b)};
g.nV=function(a){a=a.ia().Ma;return!!a&&!MI(a)&&"application/x-mpegURL"!=a.mimeType};
g.oV=function(a){a=a.ia();return!!(a.adaptiveFormats||a.hlsFormats||a.ue)};
g.pV=function(a,b,c){a=g.WU(a).element;var d=xb(a.children,function(a){a=(0,window.parseInt)(a.getAttribute("data-layer"),10);return c-a||1});
0>d&&(d=-(d+1));ve(a,b,d);b.setAttribute("data-layer",c)};
g.qV=function(a){var b=g.Y(a);if(!b.he)return!1;var c=a.ia();if(!c||3==a.Wa())return!1;b=c.Ba&&(!b.experiments.g("allow_live_autoplay")||c.isLiveDefaultBroadcast);return!c.ypcPreview&&!b&&!g.eb(c.de,"ypc")&&!a.Mf()};
sV=function(a,b,c){if(g.Y(a).fa){a=a.app.da;g.ib(a.A,b);var d=String(a.G++);b.element.setAttribute("data-visual-id",d);g.rV(a,"onLogClientVeCreated",{id:d,ve_type:c});g.Qe(b,(0,g.A)(a.F,a,b))}};
g.tV=function(a,b){g.Y(a).fa&&a.app.da.click(b)};
g.uV=function(a,b,c){g.Y(a).fa&&(a=a.app.da,b=b.element.getAttribute("data-visual-id"),c?g.ib(a.g,b):g.kb(a.g,b),c&&!g.eb(a.o,b)&&(g.rV(a,"onLogVesShown",{ids:[b]}),g.ib(a.o,b)))};
Fma=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:PA,flash:oi||"0",frm:a};Yh(a);return a};
vV=function(a,b){var c=g.ND("VALID_SESSION_TEMPDATA_DOMAINS",[]),d=g.ug(window.location.href);d&&c.push(d);d=g.ug(a);if(g.eb(c,d)||!d&&g.Da(a,"/"))if(g.aF("autoescape_tempdata_url")&&(c=window.document.createElement("a"),g.Nd(c,a),a=c.href),a&&(c=g.sg(a),c=g.rg(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.QG();c="ST-"+g.Ta(c).toString(36);d=b?g.Bg(b):"";tH.set(""+c,d,5,"/","youtube.com");b&&(c=b.itct||b.ved,d=g.x("yt.logging.screen.storeParentElement"),
c&&d&&d(new g.ZF(c)))}};
g.wV=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.Dg(a,b)+c;a=a instanceof Ad?a:Dd(a);d.href=Bd(a)};
xV=function(a){(window.ytspf||{}).enabled?window.spf.navigate(a):g.wV(a)};
g.yV=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?!1:c;var d=g.ND("EVENT_ID");d&&(b.ei||(b.ei=d));b&&vV(a,b);if(c)return!1;xV(a);return!0};
g.zV=function(a,b,c){c&&vV(a,c);window.open(a,b||g.Ta(a).toString(36))};
g.AV=function(a){g.RF.call(this);this.g=a;this.loaded=!1};
BV=function(a){g.AV.call(this,a);this.Vd="";this.M=new g.CJ(this);g.N(this,this.M);this.C=!1};
CV=function(a,b,c){for(var d=0;d<b.length;d++)b[d].namespace=a.Vd;g.iV(a.g,b,c)};
DV=function(a){g.mV(a.g,a.Vd)};
EV=function(a,b,c){var d={},e;for(e in b)d[a.Vd+"_"+e]=b[e];b={};for(var f in c)b[a.Vd+"_"+f]=c[f];a=g.OU(a.g);g.za(a.ca,d||null);g.za(a.ba,b||null)};
g.FV=function(a){g.W.call(this,a);this.ba=new g.RF;g.N(this,this.ba)};
g.GV=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),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.HV=function(a){return(!g.oa(a.button)||0==a.button)&&!a.shiftKey&&!a.altKey&&!a.metaKey&&!a.ctrlKey};
IV=function(a,b){(a=g.be(a))&&a.style&&(g.O(a,b),g.S(a,"hid",!b))};
g.JV=function(a){(0,g.H)(arguments,function(a){!g.ta(a)||a instanceof window.Element?IV(a,!0):(0,g.H)(a,function(a){g.JV(a)})})};
g.KV=function(a){(0,g.H)(arguments,function(a){!g.ta(a)||a instanceof window.Element?IV(a,!1):(0,g.H)(a,function(a){g.KV(a)})})};
g.LV=function(a,b,c,d){g.M.call(this);this.o=a;c||a.hide();this.B=null==d?b:d;this.g=null;this.A=new g.qt(this.ko,0,this);g.N(this,this.A)};
MV=function(a,b){var c=a.o.element;b?c.setAttribute("aria-hidden",!0):c.removeAttribute("aria-hidden")};
NV=function(){return{H:"div",N:"ytp-spinner-dots",L:[{H:"div",ea:["ytp-spinner-dot","ytp-spinner-dot-0"]},{H:"div",ea:["ytp-spinner-dot","ytp-spinner-dot-1"]},{H:"div",ea:["ytp-spinner-dot","ytp-spinner-dot-2"]},{H:"div",ea:["ytp-spinner-dot","ytp-spinner-dot-3"]},{H:"div",ea:["ytp-spinner-dot","ytp-spinner-dot-4"]},{H:"div",ea:["ytp-spinner-dot","ytp-spinner-dot-5"]},{H:"div",ea:["ytp-spinner-dot","ytp-spinner-dot-6"]},{H:"div",ea:["ytp-spinner-dot","ytp-spinner-dot-7"]}]}};
g.OV=function(a,b,c,d){if((void 0===c||!c)&&g.HV(a))return g.MF(a),!0;b.md();a=a.currentTarget.getAttribute("href");g.yV(a,d,!0);return!1};
PV=function(a,b,c){if(UO(g.Y(b))&&2!=b.Wa()){if(g.HV(c))return b.isFullscreen()&&g.YU(b),g.MF(c),!0}else{var d=g.HV(c);d&&b.md();g.yV(a,void 0,!0);d&&(g.zV(a),g.MF(c))}return!1};
QV=function(a){var b=!g.Y(a).Bb&&3!=a.Wa();return a.isFullscreen()||b};
SV=function(a,b){this.g=a;this.o=g.oa(b)?b:null;if(g.eb(RV,this.g)){if(!g.oa(this.o)||0>this.o)throw Error("Must have valid offset");}else if(null!==this.o)throw Error("Must not have offset");};
TV=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}};
Gma=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};
UV=function(a){this.o=a};
VV=function(a){return a?-1!=a.toString().search(/(?:true|1)/i):!1};
WV=function(a,b){if(a){var c="getErrorCode"in a?a.Lb():null;c?b.error_code=c:(c="getMessage"in a&&g.ua(a.getMessage)?a.ud():a.message,c=Ia(c||"",50),b.error_message=c)}};
XV=function(a,b){if(a){var c=cs(a).reverse();b.ad_id=g.nb(c,as(a)).join(",");c=es(a).reverse();b.ad_sys=g.nb(c,Tr(a)).join(",");c=fq(a);null!=c&&(b.aqi=c)}};
YV=function(a,b){if(a[b])return VV(a[b]);var c=b.toLowerCase(),d;for(d in a)if(d&&d.toLowerCase()==c)return VV(a[d]);return!1};
ZV=function(a,b,c){var d=new Nn;d.Ci=b.baseYtUrl;d.contentId=c.videoId;d.Qs=!0;d.oB=!0;d.pB=a.P;d.showContentThumbnail=a.showContentThumbnail;d.sj={};c.Wf&&(d.sj.ctrl=c.Wf);c.gf&&(d.sj.ytr=c.gf);c.dm&&(d.sj.ytrcc=c.dm);c.isMdxPlayback&&(d.sj.mdx="1");a.D?(d.fp=!0,d.Fv=!0,d.showContentThumbnail=!1,d.Os=!0,d.Ps=!0,d.Qs=!1):a.G&&(d.fp=!0);d.Iw=a.g;return d};
bW=function(a){var b=new bA;b.C=a.o.Ta;var c=a.app.F.Ya();b.Yi=c.width;b.Xi=c.height;b.Ye=c.width;b.Xe=100;b.Jv=!0;c=new zm;c.g=(0,g.A)($V(a).experiments.g,$V(a).experiments);c.o=(0,g.A)($V(a).experiments.o,$V(a).experiments);c.A=(0,g.A)($V(a).experiments.A,$V(a).experiments);b.uo=c;if(c=b.Jv?g.vG():-1)b.G=c;a.o.tagForChildDirected&&(b.Yn=!0);a.o.Dc&&(b.Rm=!0);c=aW(a);b.Gc={CA_TYPE:ao?"flash":"image",CONTENT_V:c.videoId,CPN:c.clientPlaybackNonce,EID:c.eventId,LACT:Hma(a),VIS:Ima(a)};g.Ib(Fma(),function(a,
c){b.Gc[c.toUpperCase()]=a});
b.language=$V(a).Ja;var d=0;b.Pl=function(){var b=new UV(a),c=Jma($V(a).experiments);if(0==d)if(a.ge("a_bid_s"),Pf(c)){var k=(0,g.A)(a.ge,a,"a_bid_f");c.then(k,k)}else a.ge("a_bid_f");Kma(c,$V(a).experiments,b,d);d++;return c};
return b};
Jma=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;nF().then(function(a){e=a},function(a){c&&a.o?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":cW;if((0,window.isNaN)(k))return a=g.cg(nF(),b),g.cg(a,g.z),a;var l;a=new g.Rf(function(a,b){l=new g.qt(function(){c?a("NO_BID"):b(cW)},k);
l.start()});
a=g.cg(jba([nF(),a]),b);mba(g.cg(a,g.z),function(){l.dispose()});
return a};
Kma=function(a,b,c,d){function e(a){a==cW||a instanceof eF&&a.o?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");Pf(a)?a.then(null,e):a instanceof Error&&e(a)}};
Hma=function(a){return{toString:function(){return null==a||a.na()?a=null:g.vG().toString()}}};
Ima=function(a){return{toString:function(){return null==a||a.na()?a=null:a.g.nn().toString()}}};
Lma=function(a){return{toString:function(){if(null==a||a.na())return a=null;var b=a.gd?a.gd.g:null;return null==b||0>b?"0":Math.ceil(.001*(0,g.G)()-b).toString()}}};
dW=function(a,b,c,d){this.o=this.B="";this.A=a;this.F=b;this.g=c;this.D=d};
eW=function(a){var b={};b.l_ns=a.F;b.l_state=a.D;b.break_type=a.A.g;b.sst=TV(a.A);b.sidx=0;a.B&&(b.at=a.B);a.o&&(b.ad_id=a.o);return b};
fW=function(){g.M.call(this);this.o=new g.qt((0,g.A)(this.D,this),1E3);g.N(this,this.o);this.B=this.A=0;this.g=lba();this.C=!1};
iW=function(){var a=g.x("yt.www.watch.ads.loadAfc");g.ua(a)?(a(),gW=!0):hW=!0};
jW=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"};
lW=function(){var a=g.x("window.google_show_companion_ad");var b=g.x("yt.www.watch.ads.getGlobals");g.ua(a)&&g.ua(b)?(b=b(),b=!(!b||!b.length)):b=!1;b?a():kW=!0};
pW=function(a){if(P.A){if(!a)return Wf();mW(a,{afvMpu:{}});return Vf()}lW();nW();return oW()};
oW=function(){qW||(qW=new fW);var a=qW;a.C||(a.o.start(),a.C=!0);return a.g.g};
nW=function(){qW&&(qW.dispose(),qW=null)};
rW=function(){var a=g.x("yt.www.watch.ads.setCompanion");a&&a()};
Mma=function(a){var b=g.x("yt.www.watch.ads.showForcedMpu");b&&b(a)};
sW=function(a,b,c,d){g.RF.call(this);this.g=a;this.o=d;this.videoData=null;this.adType=c;this.adSystem=b};
Nma=function(a,b,c){this.g=a;this.o=b;this.A=c||0};
tW=function(a){var b=[];(0,g.H)(a.split("_"),function(a,b){this[b]=Va(a)},b);
return new Nma(Mb(Oma,b[0])?b[0]:0,Mb(Pma,b[1])?b[1]:0,Mb(Qma,b[2])?b[2]:0)};
Rma=function(){this.clickThroughUrl="";this.isSkippable=this.isBumper=!1;this.skipShown=this.skip=g.z;this.skipTime=0;this.videoUrl=this.videoId="";this.adSystem=0;this.muteAdInfo=this.whyThisAdInfo=null;this.whyThisAdClosed=this.whyThisAdClicked=this.muteAd=this.sendAdsPing=g.z};
uW=function(a){var b={H:"div",N:"video-ads",L:[{H:"div",N:"video-ad-status-bar",L:[{H:"div",N:"video-ad-label",L:[g.T("YTP_ADVERTISEMENT")]}]},{H:"div",N:"ad-container"}]};g.W.call(this,b);this.B=a;this.A=this.o=null};
vW=function(a){a.o||(a.o=a.xa["ad-container"],g.Y(a.B).Ed&&(FO&&!(0<=g.Sa(ri,"10.0"))&&g.Y(a.B).experiments.g("disable_mweb_iphone_ad_click_handling_functionality")||g.R(a.o,"ad-container-single-media-element-annotations")));return a.o};
wW=function(a){if(!a.A){var b=g.pe("div");g.Jp(b,["video-click-tracking","ad-video"]);vW(a).appendChild(b);a.A=b}return a.A};
Sma=function(a){this.g=a};
Tma=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};
xW=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}};
Uma=function(a,b){this.C=null;this.A=window.NaN;this.o=null;this.g=a;this.B=b};
yW=function(a,b,c){a.g.Y("AD_LOGGING_EVENT",b,c)};
BW=function(a,b,c){zW(a);var d=AW(a);c&&g.za(d,c);d.ad_error=b;yW(a,7,d)};
AW=function(a){var b={},c=a.g.videoData,d=a.g.Bm(),e=a.g.tl();XV(a.g.Kb(),b);d&&0<d&&(b.ad_len=d);b.ad_v="0";c&&c.videoId?b.ad_v=c.videoId:e&&(c=g.ug(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.ze():null)&&(b.ad_cpn=e);b.format=a.g.pf();b.at=a.g.Ph();b.ad_mt=Math.round(1E3*Math.max(Vma(a.g),0));return b};
zW=function(a){a.C||(a.C="InstreamAdDisplay ("+a.g.pf()+")")};
CW=function(a,b){g.M.call(this);this.B=Math.max(0,a);this.A=this.o=0;this.C=b;this.g=window.NaN};
DW=function(a,b){this.o=a;this.g=b};
EW=function(a,b){return a.o+b*a.getLength()};
FW=function(a,b,c){if(!a.getLength())return null!=c?c:window.Infinity;a=(b-a.o)/a.getLength();return g.Pd(a,0,1)};
GW=function(){this.o=this.position=this.B=this.g=this.C=this.A=this.width=window.NaN};
HW=function(a,b,c,d,e){var f=b.Oy/b.rows,k=Math.min(c/(b.Qy/b.columns),d/f),l=b.Qy*k,m=b.Oy*k,l=Math.floor(l/b.columns)*b.columns,m=Math.floor(m/b.rows)*b.rows,n=l/b.columns,q=m/b.rows,r=-b.FF*n,w=-b.Pc*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.Wd(n,
q)};
JW=function(a,b,c,d,e,f,k,l){sW.call(this,b,a,2,c);this.P=!1;this.F=this.da=this.W=null;this.g.subscribe("control_toggle_play_pause",this.YB,this);this.g.subscribe("control_play",this.Vr,this);this.g.subscribe("control_pause",this.Ur,this);this.C=new Uma(this,this.g);this.A=new g.NF(this);this.B=IW(b);this.B.subscribe("statechange",this.WB,this);this.B.subscribe("internalAbandon",this.Yy,this);this.B.subscribe("internalvideodatachange",this.XB,this);this.G=!1;this.J=this.O=null;this.D=!1;this.fa=
d;this.ka=e;this.ca=!!f;this.ga=!!k;this.M=l;this.K=new CW(15E3,(0,g.A)(this.abort,this));this.ha=b.o.P&&"3"==$V(b).C};
LW=function(a,b){if(!a.na()&&a.ha){var c=a.g.app.F;c.F=!b;KW(c)}};
PW=function(a){FP("ad_to_video",["pbresume"]);a.M&&g.uP("yt_abt",a.M,"ad_to_video");a.videoData&&a.videoData.clientPlaybackNonce&&g.uP("ad_cpn",a.videoData.clientPlaybackNonce,"ad_to_video");a.videoData&&a.videoData.videoId&&g.uP("ad_docid",a.videoData.videoId,"ad_to_video");g.tP("adc",void 0,"ad_to_video");var b=a.g.o;if(b&&(b.sa||b.ua||b.Fa||b.Ja)){var c=MW(a.g);if(c&&null!==a.O&&null!==a.J){a.videoData.xc=a.J;var d=c.getVolume();1E-6>=Math.abs(d-a.O*b.K)&&c.setVolume(a.O)}}pU(IW(a.g));NW(a.g,0);
OW(a.g,0);a.Y("adEnd",a);LW(a,!0)};
QW=function(a,b){$V(a.g).experiments.g("html5_ad_error_releases")?pU(a.B):RT(a.B);NW(a.g,0);a.Y("adError",b)};
Vma=function(a){return a.B?a.B.getCurrentTime():0};
RW=function(a){a=a.Kb();return a?(a=a.G.get("why_this_ad"))?{menuTitle:a.B,closeButton:a.A,targetingReasonHeader:a.C,targetingReasons:g.ob(a.D),adSettingsLink:g.ob(a.o),controlText:a.G,continueButton:a.F,cancelButton:a.K}:null:null};
SW=function(a){a=a.Kb();if(!a)return null;a=a.G.get("mute");if(!a)return null;for(var b=Xs(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}};
TW=function(a,b){a.J=a.videoData.xc;a.O=b.getVolume()};
Wma=function(a,b){this.g=a;this.C=b;this.g.pf();this.o=this.B=0;this.A=null};
UW=function(a,b,c){a.g.Y("AD_LOGGING_EVENT",b,c)};
VW=function(a){var b={};XV(a.g.Kb(),b);a.B&&a.o&&(b.ot=a.o-a.B);var c=a.C.isFullscreen()?2:a.C.app.oa?1:0;b.ad_ps=c;b.format=a.g.pf();b.at=a.g.Ph();return b};
WW=function(a,b,c,d){sW.call(this,b,a,1,c);this.A=null;this.D=!1;this.G=null;this.C=new Wma(this,b);this.B=new g.NF(this);this.F=!!d};
XW=function(a,b){var c=a.g.getRootNode();g.S(c,"ytp-ad-overlay-open",b);g.S(c,"ytp-ad-overlay-closed",!b)};
YW=function(a,b,c,d){g.M.call(this);this.K=null;this.G=a;this.o=b.Sb;this.C=b;this.J=b.getId();this.g=c;this.D=d;this.A=new dW(this.o,this.G,c,d);this.ib=null;this.O=new g.dm(this);this.B=new g.dm(this);this.M=/^(http(s)?:\/\/)(.*.)?youtube.com\/.*$/};
ZW=function(a,b){a.K=b;var c=b.pf();a.A.B=c};
$W=function(a,b){var c=g.x("yt.www.watch.ads.setAdId");c&&c(b);a.A.o=b};
aX=function(a){pW(a.g).then(function(){this.A.C()},g.z,a)};
Xma=function(a){this.g=a};
bX=function(a){sW.call(this,a,2,3,null)};
cX=function(a,b,c){YW.call(this,2,a,b,c);this.F=new Xma(this.g.o);jW()};
Yma=function(a,b){this.g=a?a:"";this.kc=b};
dX=function(a,b,c,d){WW.call(this,1,a,b,d);this.J=c};
eX=function(a,b,c){YW.call(this,1,a,b,c);this.F=new Yma(this.g.o.adTag,this.J)};
fX=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);YW.call(this,2,a,b,d)};
Zma=function(a){a=Mq(a);var b=Nq(a);return{plaShelfItemRenderer:{headline:gX(a.kd()),merchant:gX(Pq(b)),image:{thumbnails:[{url:Qq(a).getImageUrl()}]},priceText:gX(Rq(b)),reviewText:gX(er(b,"review_text")),rating:cv(b,"rating",0),clickthroughEndpoint:{webNavigationEndpointData:{url:Tq(vv(b))},urlEndpoint:{url:Tq(vv(b)),target:"TARGET_NEW_WINDOW"}}}}};
gX=function(a){return{runs:[{text:a}]}};
ana=function(){hX||(hX=$ma()?Vf():new g.Rf(function(a){g.gG("watchAdsInit",a)}));
return hX};
$ma=function(){var a=g.x("yt.www.watch.ads.promotionShelfShow");return g.ua(a)};
bna=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)};
iX=function(){this.B=new g.W({H:"button",ea:["ad-carousel-nav-button","ad-carousel-nav-prev"],R:{type:"button",onclick:"return false;"},L:[{H:"span",ea:["ad-carousel-prev-icon","yt-uix-tooltip","yt-sprite"],R:{"data-tooltip-text":"Prev",title:"Prev"}}]});g.N(this,this.B);this.B.X("click",this.F,this);this.A=new g.W({H:"button",ea:["ad-carousel-nav-button","ad-carousel-nav-next"],R:{type:"button",onclick:"return false;"},L:[{H:"span",ea:["ad-carousel-next-icon","yt-uix-tooltip","yt-sprite"],R:{"data-tooltip-text":"Next",
title:"Next"}}]});g.N(this,this.A);this.A.X("click",this.D,this);g.W.call(this,{H:"div",N:"ad-carousel",L:[{H:"div",N:"ad-carousel-clip",L:[{H:"ul",ea:["ad-carousel-list","ad-carousel-list-animation"],L:["{{items}}"]}]},this.B,this.A]});this.C=this.xa["ad-carousel-list"];this.o=0;this.Ka=[]};
cna=function(a,b){a.clear();a.Ka=(0,g.I)(b,function(a){var b=new g.W({H:"li",N:"ad-carousel-listitem",L:[{H:"div",N:"ad-carousel-item",L:[a]}]});g.N(b,a);return b});
a.Ca("items",a.Ka)};
kX=function(a){a.C&&g.bh(a.C,"left",(2>a.Ka.length?0:-a.o*a.Ka[1].element.clientWidth)+"px");a.B.Jb(0<a.o);a.A.Jb(a.o<a.Ka.length-jX(a))};
jX=function(a){return 2>a.Ka.length?1:Math.round((a.element.clientWidth-a.Ka[0].element.clientWidth)/a.Ka[1].element.clientWidth)+1};
nX=function(a){var b=Mq(a),c=Nq(b),d=["iv-btp-small-card"];d.push("yt-uix-hovercard-target");var e={href:Tq(vv(c)),target:"_blank"},f={H:"div",ea:["iv-btp-card-image","yt-uix-hovercard-anchor"],L:[{H:"span"},{H:"div",N:"iv-btp-card-image-aligned",L:[{H:"img",R:{src:Qq(b).getImageUrl()}}]}]},k={H:"div",N:"iv-btp-card-info",L:[{H:"span",N:"iv-btp-card-action",L:[Rq(c)]},lX(a)]};var l=Mq(a);var m=Nq(l);l={H:"div",ea:["yt-uix-hovercard-content","iv-btp-hovercard"],L:[{H:"div",N:"iv-btp-hovercard-text-box",
L:[{H:"a",R:{href:Tq(vv(m)),target:"_blank"},L:[{H:"div",ea:["yt-ui-ellipsis","yt-ui-ellipsis-4","iv-btp-hovercard-headline"],L:[l.kd()]}]},{H:"div",N:"iv-btp-hovercard-info",L:[{H:"span",N:"iv-btp-hovercard-action",L:[Rq(m)]},lX(a)]},mX(a)]}]};d={H:"div",ea:d,R:{"data-position":"bottomright","data-orientation":"vertical"},L:[f,k,l]};b={H:"div",N:"iv-btp-large-card",L:[{H:"div",N:"iv-btp-card-image",L:[{H:"span"},{H:"div",N:"iv-btp-card-image-aligned",L:[{H:"img",R:{src:Qq(b).getImageUrl()}}]}]},
{H:"div",N:"iv-btp-card-info",L:[{H:"div",N:"iv-btp-card-text-box",L:[{H:"div",N:"iv-btp-card-text-valign",L:[{H:"div",ea:["yt-ui-ellipsis","yt-ui-ellipsis-4","iv-btp-card-headline"],L:[b.kd()]}]}]},{H:"span",N:"iv-btp-card-action",L:[Rq(c)]},lX(a),mX(a)]}]};c=[];a=Nq(Mq(a));f={TRIGGER_TYPE:"YOUTUBE_DRAWER_AUTO_OPEN"};for(k=0;k<ev(a,"event");k++)l=new jv(dv(a,"event",k)),7==l.bc()&&(l=g.mm(er(l,"base_url"),f),c.push({H:"img",R:{src:l}}));g.FV.call(this,{H:"div",N:"iv-btp-card",L:[{H:"a",N:"iv-btp-card-content",
R:e,L:[{H:"div",L:[d,b,{H:"div",N:"iv-btp-impressions",L:c}]}]}]})};
mX=function(a){a=Nq(Mq(a));return.01>cv(a,"rating",0)?{H:"div"}:{H:"div",N:"iv-btp-card-review",L:[{H:"div",N:"iv-btp-card-rating",L:[{H:"span",N:"iv-btp-card-rating-bg",L:[{H:"span",N:"iv-btp-card-rating-fg",R:{style:"width: "+Math.floor(100*cv(a,"rating",0)/5)+"%;"}}]}]},{H:"span",N:"iv-btp-card-reviews",L:[er(a,"review_text")]}]}};
lX=function(a){return{H:"div",N:"iv-btp-card-merchant",L:[{H:"span",N:"iv-btp-card-merchant-text",L:[Pq(Nq(Mq(a)))]}]}};
oX=function(){this.o=new iX;this.C=new g.CJ(this);g.N(this,this.C);this.D=new g.qt(this.Js,200,this);g.N(this,this.D);var a={H:"div",N:"iv-btp-companion",L:[{H:"div",N:"iv-btp-block-clicks"},{H:"div",N:"iv-btp-attribution",L:[{H:"span",N:"iv-btp-title",L:["{{title}}"]},{H:"div",ea:["yt-uix-hovercard","ad-info-container"],L:[{H:"span",N:"iv-btp-sponsored",L:[g.T("YTP_SPONSORED"),{H:"span",N:"yt-uix-hovercard-target",R:{"data-position":"topright","data-orientation":"horizontal"},L:[{H:"span",N:"ad-info-icon"}]}]},
{H:"div",N:"yt-uix-hovercard-content",L:[{H:"span",N:"ytp-ad_settings",L:[g.T("YTP_SPONSORED_PRODUCT_INFO")]}]}]}]},this.o]};g.FV.call(this,a);this.B=this.xa["iv-btp-block-clicks"];this.A=new g.qt(g.ya(function(a){g.O(a,!1)},this.B),1E3);
g.N(this,this.A);this.C.T(window,"resize",this.FG)};
dna=function(a,b){a.clear();g.O(a.B,!0);var c=(0,g.I)(b,g.ya(function(a){return new nX(a)}));
a.Ca("title",0<b.length?er(b[0],"teaser_text"):"");cna(a.o,c);a.Js()};
pX=function(a,b){sW.call(this,a,14,14,b);this.A=new oX;g.N(this,this.A)};
qX=function(a){return(0,g.ye)(a.o.Kb().B,function(a){return!!cv(os(a),"show_in_promotion_shelf",void 0)})};
rX=function(a,b,c){YW.call(this,14,a,b,c)};
sX=function(a,b,c){YW.call(this,14,a,b,c)};
ena=function(a,b,c,d,e){this.B=a;this.o=b;this.g=c;this.Z=$V(this.B);this.C=d;this.D=aW(this.B).lengthSeconds;this.F=e;this.A="html5";"embedded"==this.Z.g?this.A="html5_embed":FO||EO?this.A="html5_ios":NE("android")?this.A="html5_android":XE()?this.A="html5_wp":QE()?this.A="html5_ps3":"leanback"==this.Z.g?(a=(g.Pb(window,"environment","brand")||"").toLowerCase(),b=(g.Pb(window,"environment","model")||"").toLowerCase(),this.A="roku"==a||"bskyb"==a?"roku":"wiiu"==b?"wii":"html5_tv_leanback"):this.A=
WE()?"html5_wii":"html5_desktop"};
vX=function(a){return tX(a.o)?"preroll":uX(a.o)?"postroll":"midroll"};
xX=function(a){return(a=a.B.A)?(0,g.Ek)(a.Db,function(a){return wX(a)||uX(a)}):!1};
yX=function(a,b){WW.call(this,4,a,b)};
zX=function(a,b,c){YW.call(this,4,a,b,c);var d=this.g.o;this.F=g.F(d.tb);this.P=new ena(b,a,d,c,!(!aW(this.g)||!aW(this.g).spacecastModule))};
AX=function(a,b){this.o=a;this.g=b};
fna=function(a){return 0<(a.g&3)};
BX=function(a,b,c,d,e){g.RF.call(this);this.F=!0;this.o=!1;this.isVisible=!0;this.B="unloaded";this.G=!1;this.Aa=b;this.A=a;this.Sb=c;this.D=d;this.C=this.g=null;this.J=!!e};
DX=function(a){return tX(a)?a.Pb()&&CX(a)?-0x8000000000000:0:g.oa(a.Sb.o)?1E3*TV(a.Sb):0x8000000000000};
gna=function(a){var b=!$V(a.A).experiments.g("disable_fetching_previous_nonadjacent_midrolls");return tX(a)||b&&a.A.g&&1E3*a.A.g.getCurrentTime()>=DX(a)?!1:(0,g.Ar)(a.D,function(a){switch(a.bc()){case 1:case 2:case 5:return!0;default:return!1}})};
tX=function(a){return 1==a.Sb.g};
CX=function(a){if(!a.Pb())throw Error("Preroll status is undefined before ad load.");return tX(a)&&a.o};
wX=function(a){return 2==a.Sb.g};
uX=function(a){return 3==a.Sb.g};
JX=function(a){a.B="loading";tX(a)&&!(0,g.Ek)(a.D,fna)&&DV(a.A);if(a.J)a.B="loaded",a.o=!0,EX(a);else{var b=a.D.shift();b?(tX(a)&&a.A.ge("nl"),b=b.create(a,a.A),g.N(a,b),b.load()):a.A.o.J&&5!=a.Sb.g?FX(a,new bX(a.A),a.Sb):(GX(a.A,2,HX(a,{})),IX(a,!1),a.B="error",EX(a))}};
KX=function(a){a.g&&(a.g.unsubscribe("adEnd",a.dz,a),a.g.unsubscribe("adError",a.NB,a),a.g.unsubscribe("AD_LOGGING_EVENT",a.PB,a),a.g.unsubscribe("select",a.MB,a),a.g.unsubscribe("adCompanionInitialized",a.OB,a))};
FX=function(a,b,c){a.g=b;a.Sb=c;g.N(a,a.g);0==a.Aa&&(b=a.g.Ph(),a.A.da.at=b);a.g instanceof JW?a.o=!0:a.g instanceof bX?a.isVisible=!1:a.g instanceof yX?a.isVisible=!1:a.g instanceof dX&&(a.isVisible=!1);a.B="loaded";EX(a)};
EX=function(a){a.Y("adBreakComplete",a)};
IX=function(a,b){a.C&&(a.C.Aj({FILLED_OPPORTUNITY:b?1:0}),a.C.dispose(),a.C=null)};
HX=function(a,b){b.break_type=a.Sb.g;b.sst=TV(a.Sb);b.sidx=0;return b};
LX=function(a){var b=0;a.ba&&(b|=1);a.W&&(b|=2);var c=0;a.M&&a.O&&(c=4);a=new Fl;a.set(3,b);a.set(4,c);return a};
MX=function(a,b){var c=[];if(a.fa)return c.push("pla"==(a.forceAdType||"").toLowerCase()?new AX(8,16):new AX(4,0)),c;if(a.independentBreakOffsets&&5==b)return a.ka&&c.push(new AX(7,16)),c;if(a.ga){var d=0;if(a.A||a.C)d|=1;a.ha&&(d|=4);a.J&&(d|=8);c.push(new AX(5,d))}a.da&&(d=0,a.A&&(d|=1),a.C&&(d|=2),a.ha&&a.M&&(d|=4),a.J&&a.M&&(d|=8),d&&c.push(new AX(2,d)));var d=LX(a),e=d.get(3);e&&c.push(new AX(1,e));!a.independentBreakOffsets&&a.ka&&c.push(new AX(7,16));(d=d.get(4))&&c.push(new AX(1,d));return c};
NX=function(a){this.g=a};
OX=function(a){var b=[];(0,g.H)(hna(a),function(a,d){var c=new BX(this.g,d,a,MX(this.g.o,a.g));b.push(c)},a);
return b};
hna=function(a){var b=a.g.o;a=[];if(b.oa)for(var c=b.oa.split(","),d=0;d<c.length;d++){var e=Va(c[d]),e=0>e?new SV(3):0<e?new SV(2,e):new SV(1);a.push(e)}else a=ina;if(b.independentBreakOffsets)for(b=b.independentBreakOffsets.split(","),d=0;d<b.length;d++)a.push(new SV(5,Va(b[d])));g.yb(a,Gma);return a};
mna=function(a,b){this.Z=a;this.D=this.Z.isMobile;this.G="leanback"==this.Z.g;this.B=this.D||this.G;this.P=!this.G&&!IO(a);this.A=VV(b.instream);this.isLiveStream=1==b.livestream;this.C=VV(b.trueview);this.ca=VV(b.aftv);this.oa=b.ad_slots;this.independentBreakOffsets=b.independent_break_offsets;this.adFlags=b.ad_flags||0;this.qb=b.cafe_experiment_id;this.adTag=b.ad_tag;this.uc=!!b.adtest;this.afvAdTag=b.afv_ad_tag;jna(this.afvAdTag);this.afvInvideoAdTag=b.afv_invideo_ad_tag;this.Oa=(0,window.parseInt)(b.ad_age,
10);this.applyFadeOnMidrolls=!!b.apply_fade_on_midrolls&&(this.A||this.C)&&!this.Z.W;this.rb=b.cid;this.Ra=xO(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.Ta=(0,window.parseInt)(b.forced_skip_offset,10);this.forceAdType=b.force_ad_type;this.forceAdUrl=b.force_ad_url;this.tb=b.freewheel_ad_tag;this.gender=Sb(kna,function(a){return a==b.ad_gender});
this.ra=b.dbp;this.O=VV(b.afv)&&!this.B;this.W=this.ca&&this.C;this.ba=this.ca&&this.A&&!VV(b.no_afv_instream);this.da=VV(b.dclk);VV(b.gpt_migration);this.fa=VV(b.forced_ad);this.ga=1==(0,window.parseInt)(b.tpas_ad_type_id,10);this.wc=!!b.fqsf;this.ha=VV(b.invideo)&&!this.B;this.J=VV(b.mpu)&&!this.B;this.ka=!!b.pla;this.Ub=VV(b.shortform);this.M=VV(b.sffb);this.Za=b.ad_language_iso639_2;this.o=this.B||!this.Z.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.Yb=b.pla_ad_tag;this.tagForChildDirected=VV(b.tag_for_child_directed);this.serverPrefetchedVast=b.server_prefetched_vast;this.surveyCreativeData=b.surveyCreativeData;this.Hb=this.ca&&this.M&&!this.O;this.Bb=this.O||this.Hb;this.oc=(0,window.parseInt)(b.ad_device,10);this.Na=b.tpas_video_id;this.Sa=b.tpas_partner_id;this.vmap=b.vmap;this.Ac=this.Z.Ac;this.Dc=b.post_ad_requests;
this.showContentThumbnail=!0;g.na(b.show_content_thumbnail)&&(this.showContentThumbnail=b.show_content_thumbnail);this.g=lna(b.serialized_ad_ux_config);this.K=(this.F=!this.A&&!this.C||this.Z.W||null==this.g||null==J(this.g,1)||null==J(ad(this.g),5)?!1:!0)&&null!=J(cd(ad(this.g)),5)?(0,window.parseInt)(J(cd(ad(this.g)),5),10)/100:1;this.xb=this.F&&null!=J(cd(ad(this.g)),4)?(0,window.parseInt)(J(cd(ad(this.g)),4),10):null;this.zb=this.F&&null!=J(cd(ad(this.g)),8)?(0,window.parseInt)(J(cd(ad(this.g)),
8),10):null;this.Fa=this.F&&J(cd(ad(this.g)),3)?!0:!1;this.sa=this.F&&J(cd(ad(this.g)),6)?!0:!1;this.ua=this.F&&J(cd(ad(this.g)),2)?!0:!1;this.Ja=this.F&&J(cd(ad(this.g)),7)?!0:!1};
jna=function(a){if(a&&!E(g.F(a))&&(a=g.sg(a)[6]||null)){var b=null;wg(a,function(a,d){b||"channel"!=a||(b=d)})}};
lna=function(a){if(a)try{var b=g.Ic(a);return new Zc(b)}catch(c){}return null};
PX=function(a,b){g.M.call(this);this.C=a;this.re=new g.dm(this);g.N(this,this.re);this.o=null;this.g=!1;this.re.X(b,"companionImpression",this.B);this.re.X(b,"companionClick",this.A)};
QX=function(a){g.M.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.ZA()};
RX=function(a,b){a.C[b]&&(g.kV(a.g.g,[a.C[b]],void 0),delete a.C[b])};
SX=function(a,b,c,d){0>=c||((0,window.isNaN)(a.o)||g.vE(a.o),c=(0,g.G)()+c,a.o=0==d?bR((0,g.A)(a.bC,a,b,c,100),0):bR((0,g.A)(a.aC,a,b,c,100),0))};
TX=function(a){QX.call(this,a)};
UX=function(a,b,c){g.M.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)};
nna=function(a,b){VX(a);0<b&&(a.C=g.xE((0,g.A)(a.A,a),1E3*b))};
VX=function(a){g.vE(a.C);a.C=window.NaN};
XX=function(a,b){if(!a.B||!wX(b)&&!uX(b))return!1;var c=a.g.o.o;if(0>=c||0>=a.o)return!1;var d=(0,g.G)()/1E3,e=WX(a,b)-a.g.g.getCurrentTime();0<e&&(d+=e);return d-a.o<=c};
WX=function(a,b){return uX(b)?a.g.g.ia().lengthSeconds:TV(b.Sb)};
YX=function(a,b){g.M.call(this);this.K=this.g=null;this.O=[];this.P=window.NaN;this.Db=b;this.G=[];this.A={};this.D={};this.o=a;var c=a.o,d=!c.isLiveStream&&(0,g.Ek)(this.Db,function(a){return wX(a)||uX(a)});
this.C=new UX(this.o,this,d);this.B=c.applyFadeOnMidrolls?new QX(a):new TX(a);this.da=(0,g.Ek)(this.Db,function(a){return tX(a)})};
ona=function(a){a.G.length||(a.G=(0,g.ye)(a.Db,function(a){return"unloaded"==a.B}),0==a.G.length?DV(a.o):(a.da||DV(a.o),ZX(a)))};
ZX=function(a){if(a.G.length){var b=a.G.shift();b.subscribe("adBreakComplete",a.pj,a);b.subscribe("adCompanionInitialized",a.Mr,a);JX(b)}};
pna=function(a,b){function c(a){return a&&5!=a.Sb.g}
var d=(0,g.db)(a.Db,b),e=g.qb(a.Db,d+1);return{previous:g.$a(g.qb(a.Db,0,d),c),next:g.$a(e,c)}};
$X=function(a,b,c){var d=DX(b);if(!(0,window.isNaN)(d)){var e={};e.priority=-2!=TV(b.Sb)?2:3;e.id=String(b.getId());e.visible=b.isVisible;d=a.B.TA(b,d);c=a.B.SA(b,c);c=new g.oJ(d,c,e);a.D[b.getId()]=c;CV(a.o,[c]);a.B.Bu(b)}};
aY=function(a,b){var c=b.getId();a.D[c]&&(RX(a.B,c),g.kV(a.o.g,[a.D[c]],void 0),delete a.D[c])};
dY=function(a,b){if(g.t(b)){var c=a.Mi(b);if(c)if(a.g==c&&!c.o&&c.isVisible)c.show();else{if(a.g){if(5==c.Sb.g){a.g.o?a.O.push(b):c.show();return}a.Jh(a.g)}if(XX(a.C,c))a.g=null,c=a.D[c.getId()],c.visible||(c.visible=!0,CV(a.o,[c],1));else{5!=c.Sb.g&&(a.g=c);c.subscribe("adBreakComplete",a.Rk,a);c.subscribe("adCompanionInitialized",a.Mr,a);if(c.o){1!=c.Sb.g&&FP("video_to_ad",["apbs"]);var d=a.o;d.O=!0;d.B||bY(d);d=a.C.o;d={tfla:0<d?Math.floor((0,g.G)()/1E3-d):0};a.o.Gi.g(cY,"show_instream_ads",d)}a.B.cC(c);
c.show()}}}};
eY=function(a,b,c){YX.call(this,a,b);this.J=[];this.M=[];this.F=[];this.ca=c;this.ba=window.NaN;this.W=a.o.o;var d=!$V(a).experiments.g("disable_fetching_previous_nonadjacent_midrolls"),e=1E3*a.g.getCurrentTime(),d=d?null:cb(b,function(b){return a.g&&e>=DX(b)});
if(1<=c)for(c=0;c<b.length;c++){var f=b[c];if(gna(f)&&f!=d){var k=new BX(f.A,f.Aa,f.Sb,f.D,!0);b[c]=k;this.J.push(f)}}this.da||this.tj()};
fY=function(a){g.vE(a.ba);a.ba=window.NaN};
gY=function(a,b){YX.call(this,a,b);this.ba=a;this.ca=!0;this.J=[];this.ha=1;this.M=0};
hY=function(a){if(null==a.g&&0<a.J.length){var b=a.J[0];b.isVisible?(a.ca=a.F.isPeggedToLive(),a.ga=Math.ceil((0,g.G)()/1E3),b.subscribe("adBreakComplete",a.W,a),a.g=b,b.show()):a.W()}else null!=a.g&&a.M++};
qna=function(a,b){this.J=a;this.D=b;this.G=(0,g.G)();this.C=0;this.g=a.o;this.B={};this.F=new Sma(a);var c=[];this.g.ga&&this.g.A&&c.push("4_2");this.g.da&&(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.W&&c.push("2_2_1");this.g.ba&&c.push("2_2");this.g.O&&c.push("2_1");this.g.Bb&&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)};
jY=function(a,b,c){g.M.call(this);this.o=a;this.B=b;this.gd=c;this.C=this.D=-1;this.g=iY(this.B.Re());a=this.B.Re();a.length&&(a=a[a.length-1],-1==a&&CV(this.o,[this.g[a]]));0<this.o.o.o&&this.o.subscribe("endseeking",this.A,this)};
rna=function(a,b){kY(a);0<b&&(a.C=g.xE((0,g.A)(a.A,a),1E3*b))};
kY=function(a){-1!=a.C&&(g.vE(a.C),a.C=-1)};
iY=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.oJ(-1==d?0x8000000000000:1E3*d,0x8000000000000==e?e:e-1,{id:String(d),visible:!0})}d=a[a.length-1];b[d]=new g.oJ(-1==d?0x8000000000000:1E3*d,0x8000000000000,{id:String(d),visible:!0});return b};
lY=function(){g.M.call(this)};
mY=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};
nY=function(a){g.M.call(this);this.g=a;this.o=null;this.A={};this.C={};a=a.o;this.D=a.fadeInDurationMilliseconds;this.J=a.fadeInStartMilliseconds;this.K=a.fadeOutDurationMilliseconds;this.B=a.fadeOutStartMilliseconds;this.M=1E3*this.g.g.ia().lengthSeconds;this.F=this.B+this.K;this.G=new g.CJ(this);g.N(this,this.G);this.G.T(this.g.g,"applicationplayerstatechange",this.mC)};
oY=function(a,b){return 0!=b&&-1!=b&&-2!=b&&0<b&&b<a.M};
sna=function(a){a=a.getAttribute("breakType");return!!a&&(0,g.Ek)(a.split(","),function(a){a=Pa(a);return"linear"==a})};
tna=function(a){var b=3;var c=!0;b=b?b:0;c=c?c:!1;var d=(0,window.parseFloat)(g.Na(a/1E3,2,b));a=Math.floor(d/60);var e=Math.floor(a/60);a%=60;b=g.Na(d%60,2,b);c=b=e||c?e+":"+g.Na(a,2)+":"+b:a+":"+b;return 1==c.split(":")[0].length?"0".concat(c):c};
vna=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.Ek)(b,function(b){return a!=b&&b>=a-c&&b<=a+c}),f=una(this,a);
!d&&f&&(this.A[f]=a)},a));
return 0<g.Lb(a.A)};
una=function(a,b){var c=1E3*Math.round((b+a.F)/1E3),d=b+a.B,e=b+a.J;return oY(a,b)&&oY(a,c)&&oY(a,d)&&oY(a,e)?c:null};
pY=function(a,b,c,d){0>=c||(d=0==d?a.lC:a.kC,c=(0,g.G)()+c,a.o=bR((0,g.A)(d,a,b,c,100),0))};
qY=function(a){g.M.call(this);this.gd=this.A=this.B=this.F=this.o=null;this.M=this.J=!1;this.g=a;this.G=this.ib=null;this.O={};this.P=new g.dm(this);this.D=new g.dm(this);this.K=new g.CJ(this);g.N(this,this.K);this.C=null};
wna=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=mY(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};
xna=function(a,b,c){var d=g.mr(b);if(!d)return b;var e=g.Be(d);if(!e)return c?b:d;var f=g.$a(g.ze(e),function(a){return"#1"==a.getAttribute("timeOffset")});
if(f){var k=g.$a(g.ze(f),function(a){return"vmap:Extensions"==a.tagName}),l=k?g.ze(k):[],l=g.$a(l,function(a){return"YTBreakTime"==a.getAttribute("type")}),k=(k=k.removeChild(l))?g.ze(k):[],m=f,n=1;
(0,g.H)(k,function(a){a=a.getAttribute("timeOffset");a=wna(f,a,n);n++;e.insertBefore(a,m.nextSibling);m=a});
e.removeChild(f)}k=a.C.lA(e);k||(g.Re(a.C),a.C=new lY);return f||k||!c?c?nr(d):d:b};
yna=function(a){var b=ZV(a.g.o,$V(a.g),aW(a.g));b.NF=!0;b.Nu=!1;b.hA=10;b.Wr=a.C.cw();return b};
rY=function(a,b){var c=a.gd?a.gd.g:0,c={tfla:0<c?Math.floor((0,g.G)()/1E3-c):0};a.g.Gi.g(cY,b,c)};
tY=function(a,b){if(b){jW();var c=pW(a.g),d=cC(a.o);if(d){var e=d.Ue(),d=g.eb(RV,e)?new SV(e,d.Ec):new SV(e),e=tW(gq(b)),d=new dW(d,e.g,a.g,14==e.o?16:4);c.then(d.C,g.z,d)}}else a.g.o.J&&(a.B=new bX(a.g),sY(a,a.B),a.B.show())};
vY=function(a,b){b&&"adLoadError"==b.bc()&&($V(a.g).experiments.g("enable_no_ads_ping_for_mpu_disable")&&!a.g.o.J&&a.jC(cC(a.o),0,2,{}),uY(a))};
wY=function(a){a.B&&(a.B.dispose(),a.B=null)};
xY=function(a){var b=es(a);a=0<b.length?b.pop():Tr(a);a=zna[a.toUpperCase()];return null!=a?a:0};
uY=function(a){a.J||(DV(a.g),a.J=!0)};
sY=function(a,b){b.subscribe("AD_LOGGING_EVENT",(0,g.A)(a.jC,a,cC(a.o),b.adType))};
yY=function(a){g.W.call(this,{H:"div",N:"ytp-ad-notification-container",L:["{{content}}"]});this.U=a;this.o=null;this.C=-1;this.A=new g.LV(this,250,!1,150);g.N(this,this.A);this.T(this.U,"adnotify",this.D);this.T(this.U,"discardadnotify",this.F)};
AY=function(a){zY=a&&a.data};
CY=function(a){BY=a&&a.data};
DY=function(){zY=null};
FY=function(a,b){BV.call(this,b);this.Vd="ad";this.app=a;this.o=this.A=this.D=null;this.O=this.ca=!1;this.B=this.ib=null;P.o=!0;P.J=!1;P.da=!1;P.ba=!0;P.K=!g.PE();P.F=0;var c=a.Z.experiments.o("sdk_wrapper_levels_allowed");!(0,window.isNaN)(c)&&0<c&&(P.O=c);EY(this)&&(P.A=!0);this.J=null;this.fa={};this.da={at:"0"};c=g.Y(this.g).experiments;if(c.g("enable_midroll_notify")||c.g("enable_postroll_notify"))c=new yY(this.g),g.N(this,c),g.pV(this.g,c.element,5);this.G=new uW(this.g);g.pV(this.g,this.G.element,
5);this.P=this.F=null;this.W=-1;this.Gi=new UV(this);this.K=new g.CJ(this);g.N(this,this.K)};
aW=function(a){return a.app.o.g};
$V=function(a){return a.app.Z};
GX=function(a,b,c){if(a.D){a=a.D;c=c||{};var d=((0,g.G)()-a.G)/1E3;c.art=d;d=$V(a.J);d.qh&&(c.feature=d.Dc);c.ad_flags=a.g.adFlags;(d=a.g.rb)&&(c.cid=d);c.mt=a.D.getCurrentTime();(d=g.vG())&&(c.lact=d);(d=a.D.getDuration())&&(c.len=d);a.g.wc&&(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?xW(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);$V(b.g).experiments.g("fix_api_stats_ads_companion_backfill_break_type")&&(a=Vb(c,"trsp","0"),"2_3"==e&&10==f&&"0"!=a&&(c.break_type=1));e={};e.device=b.g.o.oc;e.ns=1;e.sdkv="h.3.0";e.ver="2.0";for(var k in c){f=e;a=k;var d=c[k],l=c;switch(a){case "trsp":f.slot_pos=d;break;case "break_type":g.eb(RV,Va(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=Tma(d);break;case "error_code":f.ima_error=d;case "error_message":f.error_msg=d;break;case "ad_event":f.event=xW(d);break;case "ck_xy":a=d.split("x"),2==a.length&&(f.i_x=a[0],f.i_y=a[1])}}f=IW(b.g);k=aW(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*TV(a.g.Sb):0):e.mt=Math.round(1E3*f.getCurrentTime());e.ei=k.eventId;e.lact=g.vG();e.vol=Math.round(b.g.app.J.getVolume());e.vis=b.g.g.nn();
a=GY(b.g);e.p_w=a.width;e.p_h=a.height;e.rt=(0,g.G)();if(f=(f=f.o?f.o.pa():null)&&g.Zd(f)===window.document?g.nh(f):null)e.pv_h=f.getHeight(),e.pv_w=f.Eb();2==(c&&c.ad_event?xW(c.ad_event):0)&&k.adSafetyReason&&(e.asr=k.adSafetyReason);c=am(e);k=new g.Ll($V(b.g).baseYtUrl+"api/stats/ads");Ql(k,c);g.ZE(k.toString())}}};
HY=function(a,b,c){c=c||{};c.ad_error=b;GX(a,7,c)};
IY=function(a,b,c){a.app.J.ya(b,c)};
JY=function(a){if(!a.ca||a.app.Z.experiments.g("enable_html5_midroll_tsla_update"))g.ZE($V(a).baseYtUrl+"mac_204?action_fcts=1"),a.ca=!a.app.Z.experiments.g("enable_html5_midroll_tsla_update")};
KY=function(a){return a.A instanceof gY?a.A:null};
MW=function(a){return g.UU(a.app).o};
IW=function(a){if(g.LY(a)){if(!a.F){var b=g.Wb($V(a).K);$V(a).experiments.g("legacy_autoplay_flag")&&(b.autoplay="1");b.eventid=aW(a).eventId;b.content_v=aW(a).videoId;b=new NO(b);b.g="adunit";a.F=new QT(b,2,new OP(b,""),a.app.F,(0,g.A)(a.app.K.Y,a.app.K),(0,g.A)(a.app.jj,a.app))}return a.F}return MY(a.g.app,2)};
g.LY=function(a){return a.app.Z.experiments.g("legacy_ads_videoplayer")};
PY=function(a){var b=g.De(vW(a.G),g.Ne());if(g.LY(a)){if(!a.F||a.F!=g.UU(a.app))return;var c=a.app;a.F!=c.o?NY(c,c.o):OY(c)}else if(c=a.g,2==SU(c.app)){var c=c.app,d=g.UU(c,2);d&&(d!=c.o?NY(c,c.o):OY(c))}c=g.Y(a.g);"3"!=c.C||IO(c)||(c=g.WU(a.g),c.F=!1,KW(c));b&&a.g.getRootNode().focus()};
GY=function(a){return a.o.G?(a=a.app.F.Ya(),new g.Ng(0,0,a.width,a.height)):g.vh(a.getRootNode())};
QY=function(a,b){a.ge("bd");var c=a.o;var d=c.midrollPrefetchSize;c=c.isLiveStream?new gY(a,b):0<d?new eY(a,b,d):new YX(a,b);a.A=c;ona(a.A)};
TY=function(a){RY(a);var b=a.app;g.xE(function(){SY(b)},0)};
bY=function(a){var b=a.app;g.xE(function(){UY(b)},0)};
WY=function(a,b){var c=a.app;g.xE(function(){VY(c,b)},0)};
RY=function(a){a.O=!1;var b=g.UU(a.app,2);b&&a.app.Z.G.remove(b.g.videoId)};
OW=function(a,b){switch(b){case 1:a.W=1;IY(a,"onAdStart");break;case 0:a.W=0,IY(a,"onAdEnd")}};
NW=function(a,b,c){c&&IY(a,"onAdInfoChange",c);a=a.app;1==b&&(a.G.o("vr"),a.ga||(a.ga=jP(a.pz,a)),KU(a.C),PP(a.G,XY(a)));c=a.Z;("leanback"==c.g&&c.Fb||g.HO(c))&&a.g.ya("onAdStateChange",b)};
YY=function(a){return!!(a.o.M&&a.A&&1<a.A.Db.length)};
EY=function(a){a=a.app.Z;return LO(a)&&!g.HO(a)&&"desktop-polymer"==a.o};
mW=function(a,b){b.contentVideoId||(b.contentVideoId=aW(a).videoId);IY(a,"updatekevlarcompanion",b)};
ZY=function(a,b,c){g.M.call(this);window._exportCheck=g.Ba;this.da=b;this.ga=c;this.F=this.O=this.G=this.A=this.P=this.W=this.M=this.B=this.J=this.g=null;this.ba={};this.ca={};this.fa=null;this.U=a;this.D=this.C=this.K=this.o=null};
g.$Y=function(a){var b=g.Y(a.U);if("leanback"==b.g||b.Ac||!b.wc&&!b.Ra)return!1;var c=a.U.Wa();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.U.ia();return b.xi&&!a.Xf?!1:!!a&&!a.Ba};
bZ=function(a,b,c,d){try{var e="ytmod.player."+b,f=g.x(e);if(d){if(f){var k=a.da,l=f._version;if(l&&l!=k)g.v(e,null,void 0);else return f._version=k,new f(a.U)}"creatorendscreen"==b?aZ(a,"annotations_module",c):aZ(a,b,c)}else g.mV(a.U,b)}catch(m){g.mV(a.U,b),g.qE(m)}return null};
cZ=function(a,b){a.g&&(b||a.g.Ad())&&(g.Re(a.g),a.g=null);a.J&&(b||a.J.Ad())&&(g.Re(a.J),a.J=null);a.B&&(b||a.B.Ad())&&(g.Re(a.B),a.B=null);a.M&&(b||a.M.Ad())&&(g.Re(a.M),a.M=null);a.W&&(b||a.W.Ad())&&(g.Re(a.W),a.W=null);a.P&&(b||a.P.Ad())&&(g.Re(a.P),a.P=null);a.A&&(b||a.A.Ad())&&(g.Re(a.A),a.A=null);a.G&&(b||a.G.Ad())&&(g.Re(a.G),a.G=null);a.O&&(b||a.O.Ad())&&(g.Re(a.O),a.O=null);a.F&&(b||a.F.Ad())&&(g.Re(a.F),a.F=null);a.K&&(b||a.K.Ad())&&(g.Re(a.K),a.K=null);a.C&&(b||a.C.Ad())&&(g.Re(a.C),a.C=
null);a.o&&(b||a.o.Ad())&&(g.Re(a.o),a.o=null)};
g.TU=function(a){return g.Y(a.U).xb?a.K:null};
aZ=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.pe("SCRIPT"),g.Y(a.U).experiments.g("enable_player_async_scripts")&&(k.async=!0),f=!0);var n=(0,g.A)(function(){this.na()||c.call(this)},a),q=(0,g.A)(function(){this.na()||g.mV(this.U,b)},a);
k.onload=g.ya(function(a){Ff(n);a&&a()},k.onload);
k.onerror=g.ya(function(a){Ff(q);a&&a()},k.onerror);
k.onreadystatechange=g.ya(function(a){switch(k.readyState){case "loaded":case "complete":Ff(n,this)}a&&a()},k.onreadystatechange);
f&&((e=g.Y(a.U).zh)&&k.setAttribute("nonce",e),k.src=d,d=window.document.getElementsByTagName("HEAD")[0]||window.document.body,d.insertBefore(k,d.firstChild),g.Qe(a,function(){k.parentNode&&k.parentNode.removeChild(k);g.v("ytmod.player."+b,null,void 0);"annotations_module"==b&&g.v("ytmod.player.creatorendscreen",null,void 0)}))}};
dZ=function(a){var b=a.Z,c=["html5-video-player"];b.F&&c.push("ytp-dni");g.W.call(this,{H:"div",ea:c,R:{tabindex:-1,id:a.ca.attrs.id},L:[{H:"div",N:"html5-video-container",R:{"data-layer":0}}]});g.rF(this.element,"version",a.ca.assets.js);this.app=a;this.containerElement=this.xa["html5-video-container"];this.W=!!this.containerElement;this.B=new g.Ng(0,0,0,0);this.o=null;this.D=new g.Ng(0,0,0,0);this.J=this.O=this.M=window.NaN;this.F=!1;this.G=window.NaN;this.K=!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(){};
UO(b)&&"blazer"!=b.o&&"mweb-polymer"!=b.o&&window.matchMedia&&(this.P="desktop-polymer"==b.o?[{query:window.matchMedia("(max-width: 656px)"),size:new g.Wd(426,240)},{query:window.matchMedia("(max-width: 856px)"),size:new g.Wd(640,360)},{query:window.matchMedia("(max-width: 999px)"),size:new g.Wd(854,480)},{query:window.matchMedia("(min-width: 1720px) and (min-height: 980px)"),size:new g.Wd(1280,720)},{query:window.matchMedia("(min-width: 1294px) and (min-height: 630px)"),size:new g.Wd(854,480)},{query:window.matchMedia("(min-width: 1000px)"),
size:new g.Wd(640,360)}]:[{query:window.matchMedia("(max-width: 656px)"),size:new g.Wd(426,240)},{query:window.matchMedia("(min-width: 1720px) and (min-height: 980px)"),size:new g.Wd(1280,720)},{query:window.matchMedia("(min-width: 1294px) and (min-height: 630px)"),size:new g.Wd(854,480)},{query:window.matchMedia("(min-width: 657px)"),size:new g.Wd(640,360)}]);this.A=null;g.PD({YTP_ADVERTISEMENT:"Advertisement",YTP_AD_BADGE:"Ad",YTP_AD_NOTIFICATION:"Ad in $X_SECONDSs",YTP_AD_POD_POSITION:"$AD_INDEX of $ADS_COUNT",
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 $REMAINING_SECONDS",YTP_CARDS_BUTTON_ARIA_LABEL:"Show cards",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_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_UPLOADED_BY_2:"by $AUTHOR",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_PROTECTED_FLASH_FALLBACK:"To watch this video, install the latest Flash Player, or try a different browser. $BEGIN_LINKGet Flash Player$END_LINK.",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_NO_AVAILABLE_FORMATS_FALLBACK_FLASH:"The Adobe Flash Player is required for video playback. $BEGIN_LINKGet the latest Flash Player$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_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."});Ana(this);this.T(a.g,"mutedautoplaychange",this.lT)};
Ana=function(a){var b=a.app.g,c=(0,g.A)(a.nH,a),d=(0,g.A)(a.kT,a),e=(0,g.A)(a.jT,a),f=(0,g.A)(a.JG,a);b.addEventListener("initializingmode",c);b.addEventListener("videoplayerreset",d);b.addEventListener("videodatachange",e);b.addEventListener("presentingplayerstatechange",f);g.Qe(a,function(){b.removeEventListener("initializingmode",c);b.removeEventListener("videoplayerreset",d);b.removeEventListener("videodatachange",e);b.removeEventListener("presentingplayerstatechange",f)})};
Cna=function(a,b){a.o=b;a.F=!1;if(!a.o.parentNode)try{ve(a.containerElement,a.o,0)}catch(c){throw Error("videoElement_: "+!!a.o+", containerElement: "+!!a.containerElement+", containerElement.childNodes: "+!(!a.containerElement||!a.containerElement.childNodes)+", containerInitiallyTruthy: "+a.W+", isDisposed: "+a.na());}a.A&&(a.A.disconnect(),a.A=null);!a.app.Z.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.Ng(0,0,0,0),eZ(this))}},a)),a.A.observe(a.o,{attributes:!0}));
a.D=new g.Ng(0,0,0,0);eZ(a);KW(a);Bna(a)};
Bna=function(a){g.R(a.o,"video-stream");g.R(a.o,"html5-main-video");var b=a.app.Z;b.Bb&&a.o.setAttribute("data-no-fullscreen",!0);b.Dg&&(a.o.setAttribute("webkit-playsinline",""),a.o.setAttribute("playsinline",""));b.tH&&a.o&&a.T(a.o,"click",a.o.play,a.o)};
fZ=function(a,b){if(a.o){var c=a.app.Z;VN&&(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.wR&&b.videoId&&(a.o.poster=b.ac(c,"default.jpg"))}c=g.GQ(b,"yt:bgcolor");a.containerElement.style.backgroundColor=c?c:"";a.M=vO(g.GQ(b,"yt:stretch"));a.O=vO(g.GQ(b,"yt:crop"),!0);a.app.Z.experiments.g("use_legacy_crop_resize")||a.fg()};
g.iZ=function(a){if(a.app.Z.experiments.g("html5_aspect_from_adaptive_format")){var b=gZ(a.app);if(b&&b.jb&&b.jb.g)return a=b.jb.videoInfos[0],hZ(a.video.width,a.video.height)}return(a=a.o)?hZ(a.videoWidth,a.videoHeight):window.NaN};
g.kZ=function(a,b){var c=a.Ya(),d=jZ(a,c,g.iZ(a),b);return new g.Ng((c.width-d.width)/2,(c.height-d.height)/2,d.width,d.height)};
jZ=function(a,b,c,d){(0,window.isNaN)(a.M)||(c=a.M);var e=c;(0,window.isNaN)(a.J)?(0,window.isNaN)(a.O)||(e=a.O):e=a.J;a=hZ(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};
hZ=function(a,b){return 1>Math.abs(lZ*b-a)||1>Math.abs(lZ/a-b)?lZ:a/b};
mZ=function(a){return 1==a.app.O?!1:(a=g.VU(a.app.g))&&!g.V(a,2)&&!dK(a)};
KW=function(a){var b="3"==a.app.Z.C&&!a.F&&mZ(a)&&!a.app.ka;a.o.controls=b;a.o.tabIndex=b?0:-1};
eZ=function(a){var b=g.iZ(a),c=a.Ya(),d=1,e=!1,f=jZ(a,c,b),k=XE();if(mZ(a)){var l=(0,window.isNaN)(b);VN&&!g.kc(601)?b=f.aspectRatio:l=l||"3"==a.app.Z.C;l?l=new g.Ng(0,0,c.width,c.height):(d=f.aspectRatio/b,l=new g.Ng((c.width-f.width/d)/2,(c.height-f.height)/2,f.width/d,f.height),1==d&&ni&&(b=l.width-c.height*b,0<b&&(l.width+=b,l.height+=b)));k&&(a.o.style.display="");a.K=!0}else b=-c.height,VN?b*=window.devicePixelRatio:g.YO&&(b-=window.screen.height),l=new g.Ng(0,b,c.width,c.height),k&&(a.o.style.display=
"none"),a.K=!1;g.Qg(a.D,l)||(a.D=l,g.HO(a.app.Z)?(a.o.style.setProperty("width",l.width+"px","important"),a.o.style.setProperty("height",l.height+"px","important")):g.th(a.o,g.Sg(l)),g.ih(a.o,g.Tg(l)),e=!0);c=new g.Ng((c.width-f.width)/2,(c.height-f.height)/2,f.width,f.height);g.Qg(a.B,c)||(a.B=c,e=!0);g.bh(a.o,"transform",1==d?"":"scaleX("+d+")");return e};
nZ=function(a,b,c,d){g.RF.call(this);this.A=a;this.W=(0,g.A)(b,null);this.o=0;this.F=!1;this.C=new g.Td(window.NaN,window.NaN);this.g=new g.CJ(this);g.N(this,this.g);b=d?4E3:3E3;this.J=new g.qt(g.ya(this.sc,1,!1),b,this);g.N(this,this.J);this.K=new g.qt(g.ya(this.sc,2,!1),b,this);g.N(this,this.K);this.O=new g.qt(g.ya(this.sc,512,!1),0,this);g.N(this,this.O);this.P=c&&0<c.Ch.length?5E3:3E3;d||(this.B=this.g.T(a,"mouseover",this.Bt),this.g.T(a,"mousemove",this.gT),this.g.T(a,"mouseleave",this.PL));
g.dh?this.g.T(a,"keypress",this.wI):this.g.T(a,"focusin",this.YF);this.D=this.g.T(a,"mousedown",this.pC);this.G=this.g.T(a,"touchstart",this.rC,void 0,!0);this.ca=null;this.sc(640,!0)};
oZ=function(a){a.sc(4,!1);a.M&&(a.g.za(a.M),a.M=null,a.B=a.g.T(a.A,"mouseover",a.Bt));a.B&&(a.g.za(a.B),a.B=a.g.T(a.A,"mouseover",a.Bt))};
qZ=function(a,b){g.W.call(this,{H:"canvas",N:"ytp-tv-static"});this.A=this.element.getContext("2d");this.height=this.width=window.NaN;this.K=null;this.G=this.J=this.C=this.B=0;this.D=-75;this.o=new g.nt(this.M,void 0,this);g.N(this,this.o);this.F=new g.qt(this.o.nk,75,this.o);g.N(this,this.F);pZ(this,a,b)};
rZ=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};
pZ=function(a,b,c){if(b&&c){a.width=a.element.width=b;a.height=a.element.height=c;var d=g.pe("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.K=d;a.J=rZ(b);a.G=rZ(c/10);a.A.scale(1.5,1.5);a.A.fillStyle="rgba(255, 255, 255, 0.02)"}};
tZ=function(a){g.W.call(this,{H:"div",ea:["ytp-error"],R:{role:"alert"},L:[{H:"div",N:"ytp-error-content",L:[{H:"div",N:"ytp-error-content-wrap",L:["{{content}}"]}]}]});this.o=a;this.B=[];try{this.A=new qZ(1,1),g.N(this,this.A),this.A.Ia(this.element,0)}catch(b){}sZ(this,g.WU(this.o).Ya())};
sZ=function(a,b){uZ(a,function(a){pZ(a,b.width,b.height)})};
uZ=function(a,b){if(a.A)try{b.call(a,a.A)}catch(c){a.A.dispose(),a.A=null}};
vZ=function(a,b,c,d,e){e||(e=g.Y(a.o).A);a=d?{CPN:a.o.ia().clientPlaybackNonce}:null;b=g.T(b,a).split(/\$(BEGIN|END)_LINK/);return{H:"span",L:[b[0],{H:"br"},{H:"a",R:{href:c,target:e?"_blank":null},L:[b[2]]},b[4]]}};
Dna=function(a,b,c){wZ("add_to_watch_later_list",a,b,c)};
Ena=function(a,b,c){wZ("delete_from_watch_later_list",a,b,c)};
wZ=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.Fc||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.Z0||null,add_to_playlists:b.R0||null,plid:g.ND("PLAYBACK_ID")||null};g.KE(a,{method:"POST",Xc:c,Qb:e,context:b.context,onError:b.onError,Mb:function(a,c){var d=c.result;d&&d.actions&&YF(d.actions);
b.Mb.call(this,a,c)},
zd:b.zd,withCredentials:!!d})};
xZ=function(){this.g=[];this.o=[];this.A=[]};
AZ=function(a,b,c){c=g.pe(c?"AUDIO":"VIDEO");g.za(c,Fna);g.DF(c,"loadeddata",(0,g.A)(c.o,c));FO&&6<=yZ&&g.DF(c,"webkitbeginfullscreen",(0,g.A)(c.play,c));a.o.push(c);b?a.A.push(c):zZ(a,c);return c};
zZ=function(a,b){g.eb(a.o,b)&&!g.eb(a.g,b)&&(b.src||b.load(),g.kb(a.A,b)||a.g.push(b))};
BZ=function(){g.W.call(this,{H:"div",N:"ytp-sparkline"})};
CZ=function(a,b){for(var c=a.element.children.length;c<b.length;c++){var d=g.pe("SPAN");d.style.width=100/b.length+"%";a.element.appendChild(d)}d=Math.max.apply(Math,b)||1;for(c=0;c<b.length;c++)a.element.children[c].style.height=b[c]/d*100+"%";for(;a.element.children.length>b.length;)g.we(a.element.lastChild)};
DZ=function(a){var b={H:"button",ea:["html5-video-info-panel-close","ytp-button"],R:{title:"close"},L:["[x]"]};g.W.call(this,{H:"div",N:"html5-video-info-panel",L:[b,{H:"div",N:"html5-video-info-panel-content",L:[{H:"div",L:[{H:"div",L:["Video ID:"]},{H:"span",L:["{{video_id}}"]}]},{H:"div",L:[{H:"div",L:["Dimensions:"]},{H:"span",L:["{{dimensions}}"]}]},{H:"div",L:[{H:"div",L:["Resolution:"]},{H:"span",L:["{{resolution}}"]}]},{H:"div",L:[{H:"div",L:["Optimal Resolution:"]},{H:"span",L:["{{optimal_resolution}}"]}]},
{H:"div",L:[{H:"div",L:["Volume:"]},{H:"span",L:["{{volume}}"]}]},{H:"div",L:[{H:"div",L:["Stream Host:"]},{H:"span",L:["{{stream_host}}"]}]},{H:"div",L:[{H:"div",L:["Stream Type:"]},{H:"span",L:["{{stream_type}}"]}]},{H:"div",R:{style:"{{cpn_style}}"},L:[{H:"div",L:["CPN:"]},{H:"span",R:{style:"font-family:monospace"},L:["{{cpn}}"]}]},{H:"div",L:[{H:"div",L:["Mime Type:"]},{H:"span",L:["{{mime}}"]}]},{H:"div",L:[{H:"div",L:["DASH:"]},{H:"span",L:["{{dash}}"]}]},{H:"div",R:{style:"{{color_style}}"},
L:[{H:"div",L:["Color:"]},{H:"span",L:["{{color}}"]}]},{H:"div",R:{style:"{{drm_style}}"},L:[{H:"div",L:["Protected:"]},{H:"span",L:["{{drm}}"]}]},{H:"div",L:[{H:"div",L:["Connection Speed:"]},{H:"span",L:[{H:"span",L:["{{bandwidth_sparkline}}"]},{H:"span",L:["{{bandwidth_kbps}}"]}]}]},{H:"div",L:[{H:"div",L:["Buffer Health:"]},{H:"span",L:[{H:"span",L:["{{buffer_health_sparkline}}"]},{H:"span",L:["{{buffer_health_seconds}}"]}]}]},{H:"div",L:[{H:"div",L:["Network Activity:"]},{H:"span",L:[{H:"span",
L:["{{network_activity_sparkline}}"]},{H:"span",L:["{{network_activity_bytes}}"]}]}]},{H:"div",R:{style:"{{live_latency_style}}"},L:[{H:"div",L:["Live Latency:"]},{H:"span",L:[{H:"span",L:["{{live_latency_sparkline}}"]},{H:"span",L:["{{live_latency_message}}"]}]}]},{H:"div",L:[{H:"div",L:["Dropped Frames:"]},{H:"span",L:["{{dropped_frames}}"]}]},{H:"div",R:{style:"{{sequence_number_style}}"},L:[{H:"div",L:["Sequence Number:"]},{H:"span",L:["{{sequence_number}}"]}]}]}]});b&&this.T(this.xa["html5-video-info-panel-close"],
"click",this.hide);this.A=new BZ;g.N(this,this.A);this.Ca("bandwidth_sparkline",this.A);this.C=new BZ;g.N(this,this.C);this.Ca("live_latency_sparkline",this.C);this.B=new BZ;g.N(this,this.B);this.Ca("buffer_health_sparkline",this.B);this.D=new BZ;g.N(this,this.D);this.Ca("network_activity_sparkline",this.D);this.F=new g.qt(this.G,500,this);g.N(this,this.F);this.o=a};
EZ=function(a,b){g.M.call(this);this.A=a||window.NaN;this.g=b||null;this.o=[]};
g.FZ=function(a){return SQ(a)?(a.fetch=0,new g.RQ(a)):new g.rQ(a)};
GZ=function(a){this.o=null;for(var b=[],c=0;100>=c;c++)b.push(c/100);b={threshold:b};(this.g=window.IntersectionObserver?new window.IntersectionObserver((0,g.A)(this.A,this),b):null)&&this.g.observe(a)};
HZ=function(a){g.W.call(this,{H:"div",N:"ytp-bezel",R:{role:"status","aria-label":"{{label}}"},L:[{H:"div",N:"ytp-bezel-icon",L:["{{icon}}"]}]});this.A=new g.qt(this.show,10,this);g.N(this,this.A);this.o=new g.qt(this.hide,500,this);g.N(this,this.o);this.U=a;this.hide()};
JZ=function(a,b){if(b)g.V(g.VU(a.U),64)||IZ(a,fE(),g.T("YTP_PLAY"));else{var c=a.U.ia();c.Ba&&!c.gg?IZ(a,kE(),g.T("YTP_STOP")):IZ(a,eE(),g.T("YTP_PAUSE"))}};
KZ=function(a,b,c){0>=b?(c=nE(),b=g.T("YTP_SCREENREADER_VOLUME_MUTED")):(c=c?mE():lE(),b=Math.floor(b)+"% "+g.T("YTP_SCREENREADER_VOLUME_SETTING"));IZ(a,c,b)};
LZ=function(a,b,c){c=c?g.RD?{H:"div",ea:["ytp-icon","ytp-icon-fast-rewind"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"path",Pa:!0,N:"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.RD?{H:"div",ea:["ytp-icon","ytp-icon-fast-forward"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"path",Pa:!0,N:"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.T("YTP_PLAYBACK_SPEED_CHANGED",
{RATE:b});IZ(a,c,b)};
MZ=function(a){IZ(a,gE(),g.T("YTP_PREVIOUS"))};
IZ=function(a,b,c){a.Ca("label",void 0===c?"":c);a.Ca("icon",b);g.tt(a.o);a.A.start()};
g.NZ=function(a,b){b=b||{H:"div",N:"ytp-thumbnail-overlay"};g.W.call(this,b);this.A=new g.LV(this,250);g.N(this,this.A);this.o=a};
OZ=function(a){g.NZ.call(this,a,{H:"div",ea:["ytp-thumbnail-overlay","ytp-cued-thumbnail-overlay"],L:[{H:"div",N:"ytp-thumbnail-overlay-image"}]});this.C=new g.CJ(this);g.N(this,this.C);this.D=this.xa["ytp-thumbnail-overlay-image"];this.B=new g.qt(this.wy,0,this);g.N(this,this.B);this.wy();this.T(a,"presentingplayerstatechange",this.SK);this.T(a,"ypcStateChanged",this.qQ);"detailpage"==g.Y(a).g&&this.T(a,"videoplayerreset",this.RK)};
QZ=function(a,b,c){var d=dK(c),e=!g.Y(b).experiments.g("disable_new_pause_state3");b=g.V(c,2)&&!QU(b)&&(!e||!g.PZ(b.app));d||b?a.show():(a.hide(),g.V(c,1)||a.stop())};
SZ=function(a){var b=["ytp-large-play-button","ytp-button"],c=g.Y(a);c.F&&c.rb?c=[{H:"div",N:"ytp-large-play-button-circle",R:{style:"background-color: "+c.rb}},g.RD?{H:"div",ea:["ytp-icon","ytp-icon-dni-large-play-button"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"4 -6 60 60",width:"100%"},L:[{H:"path",R:{d:"m 26.96,13.67 18.37,9.62 -18.37,9.55 -0.00,-19.17 z",fill:"#fff"}}]}]:c.ba&&!c.Ac?c=[g.RD?{H:"div",ea:["ytp-icon","ytp-icon-large-play-button-hover"]}:{H:"svg",R:{height:"100%",version:"1.1",
viewBox:"0 0 68 48",width:"100%"},L:[{H:"path",N:"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"}}]}]:(c.isMobile&&b.push("ytp-touch-device"),c=[c.Ac?g.RD?{H:"div",ea:["ytp-icon","ytp-icon-house-brand-large-play-button"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},L:[{H:"path",N:"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.RD?{H:"div",ea:["ytp-icon","ytp-icon-large-play-button"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},L:[{H:"path",N:"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.W.call(this,{H:"button",ea:b,R:{"aria-label":"{{label}}"},L:c});this.o=a;this.B=!1;this.A=new g.LV(this,250);g.N(this,this.A);this.T(a,"presentingplayerstatechange",this.C);RZ(this,g.VU(a))};
RZ=function(a,b){if(g.Y(a.o).JQ&&!a.B){QZ(a.A,a.o,b);var c=(c=a.o.ia())&&c.title?g.T("YTP_WATCH_VIDEO_OR_PLAYLIST",{TITLE:c.title}):g.T("YTP_PLAY");a.Ca("label",c)}else a.hide()};
UZ=function(a,b){g.CJ.call(this);this.U=a;this.A=b;this.o=new window.Set;this.g=window.navigator.mediaSession;TZ(this,"play",function(){JZ(b,!0);a.cd()});
TZ(this,"pause",function(){JZ(b,!1);a.md()});
TZ(this,"seekbackward",function(){IZ(b,iE());a.be(-5*a.Uc())});
TZ(this,"seekforward",function(){IZ(b,$D());a.be(5*a.Uc())});
this.T(a,"videodatachange",this.C);this.T(a,"presentingplayerstatechange",this.B);this.C()};
TZ=function(a,b,c){a.g.setActionHandler(b,c?(0,g.A)(c,a):null);a.o.add(b)};
VZ=function(a){g.W.call(this,{H:"div",N:"ytp-paid-content-overlay",R:{"aria-live":"assertive","aria-atomic":"true"}});this.J=new g.W({H:"div",ea:["ytp-button","ytp-paid-content-overlay-text"]});g.N(this,this.J);this.J.Ia(this.element);this.U=a;this.A=null;this.F=!1;this.C=new g.LV(this.J,250,!1,100);g.N(this,this.C);this.D=this.o=null;this.B={};this.G=0;this.T(a,"videodatachange",this.O);this.T(a,"presentingplayerstatechange",this.M)};
WZ=function(a,b){var c=EQ(b),d=FQ(b);a.o?b.videoId&&b.videoId!=a.A&&(g.tt(a.o),a.A=b.videoId,c=a.B[b.videoId]||0,a.F=!!d&&3E3>c):c&&d&&(a.o=new g.qt(a.K,d,a),g.N(a,a.o),g.Fe(g.L("ytp-paid-content-overlay-text",a.element),c))};
XZ=function(a,b){a.o&&g.V(b,8)&&a.F&&(a.F=!1,a.C.show(),a.G=(0,g.G)(),a.o.start())};
ZZ=function(a){g.W.call(this,{H:"div",N:"ytp-spinner",L:[NV(),{H:"div",N:"ytp-spinner-message",L:[g.T("YTP_PLAYBACK_STALLED_AT_START")]}]});this.B=this.xa["ytp-spinner-message"];this.A=a;this.o=new g.qt(this.show,500,this);g.N(this,this.o);this.T(a,"presentingplayerstatechange",this.C);this.T(a,"onFrescaStateChange",this.D);this.T(a,"playbackstalledatstart",this.F);YZ(this,g.VU(a))};
YZ=function(a,b){if(g.V(b,128))var c=0;else!(c=g.V(b,16))&&(c=g.V(b,1))&&(c=g.OU(a.A).F,c=!(c&&c.loaded));c?a.o.start():a.hide()};
$Z=function(a,b,c,d){d=void 0===d?!1:d;g.FV.call(this,b);this.U=a;this.da=d;this.K=null;this.J=new g.CJ(this);g.N(this,this.J);this.M=new g.LV(this,c,!0);g.N(this,this.M);this.C=null};
a_=function(a){a.C&&(window.document.activeElement&&g.De(a.element,window.document.activeElement)&&(g.Je(a.C),a.C.focus()),a.C.removeAttribute("aria-expanded"),a.C=null);g.EJ(a.J);a.K=null};
b_=function(a){return a.g&&3!=a.M.g};
c_=function(a){var b=g.Y(a).experiments.A("mweb_muted_autoplay_animation"),c=[],d=[];"none"!=b&&(c.push("ytp-unmute-animated"),d.push({H:"div",ea:["ytp-unmute-box"]}),"expand"==b?c.push("ytp-unmute-expand"):"shrink"==b&&c.push("ytp-unmute-shrink"));$Z.call(this,a,{H:"div",ea:["ytp-unmute","ytp-popup"].concat(c),L:[{H:"div",N:"ytp-unmute-inner",L:[{H:"div",ea:["ytp-unmute-icon"],L:[g.RD?{H:"div",ea:["ytp-icon","ytp-icon-volume-muted-dark"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",
width:"100%"},L:[{H:"path",Pa:!0,N:"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",ea:["ytp-unmute-text"],L:[g.T("YTP_TAP_TO_UNMUTE")]}].concat(d)}]},100);this.o=a;this.A=!1;this.T(a,"mutedautoplaychange",this.B,this);this.X("click",this.onClick,this);this.Jb(a.app.ka)};
d_=function(a){g.CJ.call(this);g.QD();var b=g.Y(a),c=g.WU(a);this.g=a;this.xb=!1;this.O=null;this.sa=!1;var d=new OZ(a);g.N(this,d);g.pV(a,d.element,5);var e=new ZZ(a);g.N(this,e);g.pV(a,e.element,5);this.F=new HZ(a);g.N(this,this.F);g.pV(a,this.F.element,5);this.ba=new SZ(a);g.N(this,this.ba);this.ba.Ia(d.element);var f=a.ia();this.B=new nZ(c,(0,g.A)(this.KK,this),f,b.useTabletControls);g.N(this,this.B);this.B.subscribe("autohideupdate",this.Kr,this);var k=new VZ(a);g.N(this,k);g.pV(a,k.element,
5);this.ca=new c_(a);g.N(this,this.ca);g.pV(this.g,this.ca.element,3);this.qb=!1;this.T(a,"mutedautoplaychange",this.LK);this.ha=new g.qt(this.ty,200,this);g.N(this,this.ha);this.ua=f.videoId;this.D=null;this.M=!1;this.Ta=null;this.ra=[];f=a.getRootNode();f.setAttribute("aria-label",g.T("YTP_PLAYER_NORMAL"));switch(b.color){case "white":g.R(f,"ytp-color-white")}g.mn&&!YE()&&b.experiments.g("html5_prefer_standard_controls")&&g.R(f,"ytp-exp-std-controls");!g.Y(a).experiments.g("disable_mediasession2")&&
"mediaSession"in window.navigator&&!window.navigator.mediaSession.metadata&&window.navigator.mediaSession.setActionHandler&&(f=new UZ(a,this.F),g.N(this,f));this.T(a,"appresize",this.Ab);this.T(a,"presentingplayerstatechange",this.PO);this.T(a,"videodatachange",this.ry);this.T(a,"videoplayerreset",this.LO);this.T(a,"autonavvisibility",this.si,this);this.T(a,"minimized",this.Bg,this);this.T(a,"onFrescaStateChange",this.Bg,this);this.T(c,"click",this.iP,this);this.T(c,"dblclick",this.jP,this);b.ra&&
(this.T(c,"gesturechange",this.kP,this),this.T(c,"gestureend",this.lP,this));this.rb=[c.containerElement,e.element,d.element,this.F.element,this.ba.element]};
e_=function(a,b){if(!b)return!1;var c=a.g.app.D.pa();if(c&&g.De(c,b))return c.controls;for(c=0;c<a.rb.length;c++)if(g.De(a.rb[c],b))return!1;return g.Ip(b,"ytp-player-content")||g.Ip(b,"html5-endscreen")||b==a.g.getRootNode()?!1:!0};
f_=function(a,b,c){a.g.isFullscreen()?c<1-b&&g.YU(a.g):c>1+b&&g.YU(a.g)};
g_=function(a){g.FV.call(this,{H:"div",N:"ytp-ad-persistent-progress-bar-container",L:[{H:"div",N:"ytp-ad-persistent-progress-bar"}]});this.A=a;this.D=this.xa["ytp-ad-persistent-progress-bar"];this.o=null;this.T(a,"presentingplayerstatechange",this.C);this.hide();this.C()};
j_=function(a,b){var c={H:"button",ea:["ytp-button","ytp-cards-button"],R:{"aria-label":g.T("YTP_CARDS_BUTTON_ARIA_LABEL"),"aria-owns":"iv-drawer","aria-haspopup":!0},L:[{H:"span",N:"ytp-cards-button-icon-default",L:[g.RD?{H:"div",ea:["ytp-icon","ytp-icon-info-card"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"path",Pa:!0,N:"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:"span",N:"ytp-cards-button-icon-shopping",L:[g.RD?{H:"div",ea:["ytp-icon","ytp-icon-shopping-card"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"path",N:"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",N:"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",N:"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"}}]}]}]};
g.W.call(this,c);this.U=a;this.B=b;this.o=null;this.A=new g.LV(this,250,!0,100);g.N(this,this.A);this.hide();this.X("click",this.C);this.X("mouseover",this.D);h_(this,!0);c=new i_(a,this);g.N(this,c);g.pV(a,c.element,6)};
h_=function(a,b){b?a.o=k_(a.B.o,a.element):(a.o(),a.o=null)};
i_=function(a,b){g.W.call(this,{H:"div",N:"ytp-cards-teaser",L:[{H:"div",N:"ytp-cards-teaser-box"},{H:"div",N:"ytp-cards-teaser-text",L:[{H:"span",N:"ytp-cards-teaser-label",L:["{{text}}"]}]}]});this.U=a;this.C=new g.LV(this,250,!1,250);g.N(this,this.C);this.F=b;this.o=null;this.J=new g.qt(this.qO,300,this);this.G=new g.qt(this.oO,2E3,this);this.K=new g.uo(null);this.D=[];this.B=this.A=null;this.T(b.element,"mouseover",this.uy);this.T(b.element,"mouseout",this.nh);this.T(a,"cardsteasershow",this.EP);
this.T(a,"cardsteaserhide",this.Ok);this.T(a,"cardstatechange",this.kB);this.T(a,"presentingplayerstatechange",this.kB);this.X("click",this.NK);this.X("mouseenter",this.MK)};
Gna=function(a,b){a.Ca("text",b.teaserText);a.element.setAttribute("dir",g.vo(a.K,b.teaserText));a.C.show();a.A=new g.qt(function(){g.R(this.U.getRootNode(),"ytp-cards-teaser-shown")},0,a);
a.A.start();h_(a.F,!1);a.o=new g.qt(a.Ok,580+b.durationMs,a);a.o.start();a.D.push(a.X("mouseover",a.uy,a));a.D.push(a.X("mouseout",a.nh,a))};
g.m_=function(a,b,c,d){g.FV.call(this,a);this.priority=b;c&&g.l_(this,c);d&&this.dc(d)};
g.n_=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",ea:b,R:a,L:[{H:"div",N:"ytp-menuitem-label",L:["{{label}}"]},{H:"div",N:"ytp-menuitem-content",L:["{{content}}"]}]}};
g.l_=function(a,b){a.Ca("label",b)};
o_=function(a,b,c,d,e){var f={H:"div",N:"ytp-panel"};if(c){var k="ytp-panel-title";var l={H:"div",N:"ytp-panel-header",L:[{H:"button",ea:["ytp-button",k],L:[c]}]};if(e){var m="ytp-panel-options";l.L.push({H:"button",ea:["ytp-button",m],L:[d]})}f.L=[l]}g.FV.call(this,f);this.P=b;b.Ia(this.element);this.fa=!1;c&&(this.T(this.xa[k],"click",this.ha),this.fa=!0,e&&this.T(this.xa[m],"click",e));b.subscribe("size-change",this.ga,this);this.T(a,"fullscreentoggled",this.ga)};
g.p_=function(a,b,c,d,e){b=new g.FV({H:"div",N:"ytp-panel-menu",R:{role:"menu",id:void 0===b?null:b}});o_.call(this,a,b,c,d,e);this.D=b;g.N(this,this.D);this.Ka=[]};
g.q_=function(a,b,c){if(void 0===c?0:c)a.Ka.push(b),a.D.element.appendChild(b.element);else{c=g.wb(a.Ka,b,Hna);if(0<=c)return;c=~c;g.rb(a.Ka,c,0,b);ve(a.D.element,b.element,c)}b.subscribe("size-change",a.W,a);a.D.Y("size-change")};
g.r_=function(a,b){b.unsubscribe("size-change",a.W,a);a.na()||(g.kb(a.Ka,b),a.D.element.removeChild(b.element),a.D.Y("size-change"))};
g.s_=function(a){for(var b=g.ka(a.Ka),c=b.next();!c.done;c=b.next())c.value.unsubscribe("size-change",a.W,a);a.Ka=[];g.te(a.D.element);a.D.Y("size-change")};
Hna=function(a,b){return b.priority-a.priority};
g.t_=function(a,b){$Z.call(this,a,{H:"div",ea:["ytp-popup",b||null]},100,!0);this.o=[];this.size=new g.Wd(0,0);this.D=this.F=null;this.O=this.P=0;this.X("keydown",this.eL)};
u_=function(a){g.th(a.element,a.P||"100%",a.O||"100%");var b=a.o[a.o.length-1];b.element.style.width="";b.element.style.height="";b.element.style.maxWidth="100%";b.element.style.maxHeight="100%";b.P.element.style.height="";var c=g.uh(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.fa&&(d=g.uh(b.xa["ytp-panel-header"]).height);b.P.element.style.height=c.height-d+"px";a.size=
c};
g.w_=function(a,b){var c=a.o[a.o.length-1];a.o.push(b);v_(a,c,b)};
g.x_=function(a){var b=a.o.pop(),c=a.o[0];a.o=[c];v_(a,b,c,!0)};
v_=function(a,b,c,d){y_(a);!g.Ip(c.element,"ytp-panel-animate-back")&&g.Ip(c.element,"ytp-panel-animate-forward");b&&(b.unsubscribe("size-change",a.jo,a),b.unsubscribe("back",a.Le,a));c.subscribe("size-change",a.jo,a);c.subscribe("back",a.Le,a);if(a.g){g.R(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.Ia(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;u_(a);g.th(a.element,e);a.F=new g.qt(g.ya(a.uR,b,c,d),20,a);a.F.start()}else c.Ia(a.element),b&&
b.detach()};
y_=function(a){a.F&&g.rt(a.F);a.D&&g.rt(a.D)};
z_=function(a){var b=g.n_({"aria-haspopup":!0});g.m_.call(this,b,a);this.X("keydown",this.o)};
A_=function(a,b){a.element.setAttribute("aria-haspopup",b)};
B_=function(a,b){var c=g.n_({role:"menuitemcheckbox","aria-checked":!1});g.m_.call(this,c,b,a,{H:"div",N:"ytp-menuitem-toggle-checkbox"});this.o=!1;this.X("click",this.J)};
C_=function(a,b){a.o=b;a.element.setAttribute("aria-checked",a.o)};
F_=function(a,b,c){g.p_.call(this,a);this.U=a;this.M=b;this.K=c;this.B=new z_(8);g.N(this,this.B);g.q_(this,this.B,!0);this.B.X("click",this.CN,this);sV(a,this.B,28659);this.A=new z_(7);g.N(this,this.A);g.q_(this,this.A,!0);this.A.X("click",this.BN,this);sV(a,this.A,28660);this.o=new z_(6);g.N(this,this.o);g.q_(this,this.o,!0);this.o.X("click",this.zN,this);sV(a,this.o,28658);this.F=new B_(g.T("YTP_LOOP"),5);g.N(this,this.F);g.q_(this,this.F,!0);this.F.X("click",this.UN,this);sV(a,this.F,28661);this.O=
new g.m_(g.n_({href:"{{href}}",target:"_blank"},void 0,!0),4,g.T("YTP_TROUBLESHOOT_ISSUE"));g.N(this,this.O);g.q_(this,this.O,!0);this.O.X("click",this.dP,this);this.J=new z_(3);g.N(this,this.J);g.q_(this,this.J,!0);this.J.X("click",this.yN,this);b=new g.m_(g.n_(),2,g.T("YTP_SHOW_VIDEO_INFO"));g.N(this,b);g.q_(this,b,!0);b.X("click",this.vP,this);this.G=new g.FV({H:"div",ea:["ytp-copytext","ytp-no-contextmenu"],R:{draggable:!1,tabindex:1},L:["{{text}}"]});g.N(this,this.G);this.G.X("click",this.eN,
this);this.da=new o_(a,this.G);g.N(this,this.da);this.C=null;b=window.document.queryCommandSupported&&window.document.queryCommandSupported("copy");g.UE&&g.kc(43)&&(b=!0);g.LN&&!g.kc(41)&&(b=!1);b&&(this.C=new g.W({H:"textarea",N:"ytp-html5-clipboard"}),g.N(this,this.C),this.C.Ia(this.element));this.T(a,"loopchange",this.TN);this.T(a,"videodatachange",this.PK);D_(this);E_(this,this.U.ia())};
G_=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.K.Tb():(a.G.dc(b,"text"),g.w_(a.K,a.da),cR(a.G.element),a.C&&(a.C=null,D_(a)));return c};
E_=function(a,b){var c=g.Y(a.U),d=2!=a.U.Wa()||b.isListed,d=!c.J&&!!b.videoId&&d;"play"!=c.o?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.Ma&&(c.fmt=HI(b.Ma)),b.clientPlaybackNonce&&(c.cpn=b.clientPlaybackNonce),b.oh&&(c.partnerid=b.oh),c=g.Dg("//support.google.com/googleplay/",c));a.o.Jb(d&&b.allowEmbed);a.B.Jb(d);a.A.Jb(d&&!b.Ba);a.O.dc(c,"href")};
D_=function(a){var b=!!a.C;g.l_(a.J,g.T(b?"YTP_COPY_DEBUG_INFO":"YTP_GET_DEBUG_INFO"));A_(a.J,!b);g.l_(a.o,g.T(b?"YTP_EMBED_COPY":"YTP_GET_EMBED"));A_(a.o,!b);g.l_(a.B,g.T(b?"YTP_COPY_VIDEO_URL":"YTP_GET_VIDEO_URL"));A_(a.B,!b);g.l_(a.A,g.T(b?"YTP_COPY_VIDEO_URL_AT_TIME":"YTP_GET_VIDEO_URL_AT_TIME"));A_(a.A,!b)};
H_=function(a,b){g.uV(a.U,a.o,b);g.uV(a.U,a.B,b);g.uV(a.U,a.A,b);g.uV(a.U,a.F,b)};
J_=function(a,b){g.t_.call(this,a);this.A=a;this.W=b;this.B=new g.CJ(this);g.N(this,this.B);this.G=null;sV(a,this,28656);g.R(this.element,"ytp-contextmenu");g.Y(a).F&&g.R(this.element,"ytp-dni");I_(this);this.hide()};
I_=function(a){g.EJ(a.B);"gvn"!=g.Y(a.A).o&&a.B.T(g.WU(a.A),"contextmenu",a.dN)};
K_=function(a){a.A.isFullscreen()?g.pV(a.A,a.element,10):a.Ia(window.document.body)};
L_=function(a,b,c,d,e,f){g.CJ.call(this);this.g=a;this.F=c;this.C=d;this.o=e;this.D=f;this.B=new g.qt(g.ya(this.zy,!1),1E3,this);g.N(this,this.B);this.A="";a=g.ya(this.ts,!1);this.T(b,"mousedown",a);this.T(c.element,"mousedown",a);this.T(b,"keydown",this.yw);this.T(c.element,"keydown",this.yw);this.T(b,"keyup",this.zw);this.T(c.element,"keyup",this.zw)};
N_=function(a,b,c){var d=!1,e=g.Y(a.g);if(!e.je){switch(b){case 80:c&&(MZ(a.o),a.g.Ik(),d=!0);break;case 78:c&&(IZ(a.o,bE(),g.T("YTP_NEXT")),a.g.lj(),d=!0);break;case 74:a.g.Kd()&&(IZ(a.o,g.RD?{H:"div",ea:["ytp-icon","ytp-icon-rewind-ten-seconds"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"path",Pa:!0,N:"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.be(-10*a.g.Uc()),d=!0);break;case 76:a.g.Kd()&&(IZ(a.o,g.RD?{H:"div",ea:["ytp-icon","ytp-icon-forward-ten-seconds"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"path",Pa:!0,N:"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.be(10*a.g.Uc()),d=!0);break;case 77:a.g.He()?(a.g.ug(),KZ(a.o,a.g.getVolume(),!1)):(a.g.mute(),KZ(a.o,0,!0));d=!0;break;case 75:d=!cK(g.VU(a.g));JZ(a.o,d);d?a.g.cd():a.g.md();d=!0;break;case 190:if(c){if(e.Fa)for(b=a.g.kj(),c=a.g.Uc(),e=0;e<b.length-1;e++)b[e]==c&&(d=b[e+1],a.g.Nf(d,!0),LZ(a.o,d,!1),d=!0)}else a.g.Kd()&&(M_(a,1),d=!0);break;case 188:if(c){if(e.Fa)for(b=a.g.kj(),c=a.g.Uc(),e=b.length-1;1<=e;e--)b[e]==c&&(d=b[e-1],a.g.Nf(d,!0),LZ(a.o,d,!0),d=!0)}else a.g.Kd()&&(M_(a,-1),d=!0);break;
case 70:QV(a.g)&&(g.YU(a.g),d=!0)}d&&a.C.sc(2,!0)}return d};
P_=function(a,b,c,d){if(g.OU(a.g).g){for(var e=a.g.bi(),f,k=0;k<g.O_.length;k++){var l=g.O_[k];if(l.option==b){f=l.options;break}}for(var m,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.qn(d);a.zy(!0);a.B.start();return!0}return!1};
M_=function(a,b){a.g.Kd();if(g.V(g.VU(a.g),4)){var c=a.g.ia().Ma;c&&(c=c.video)&&a.g.be(b/(c.fps||30))}};
R_=function(a,b){g.W.call(this,{H:"div",N:"ytp-pause-overlay",L:[{H:"div",N:"ytp-suggestions"}]});this.o=a;this.da=b;this.B=new g.CJ(this);g.N(this,this.B);this.J=new g.LV(this,250,!1,100);g.N(this,this.J);var c=g.Y(a);this.D=[];this.A=[];this.F=0;this.fa=c.A&&!c.F;this.W=!1;this.O=new g.W({H:"button",ea:["ytp-button","ytp-previous"],R:{"aria-label":g.T("YTP_PREVIOUS")},L:[g.TD()]});g.N(this,this.O);this.O.Ia(this.element);this.O.X("click",this.gL,this);c=g.UE||g.Ve?{style:"will-change: opacity"}:
null;this.ba=new Q_((0,g.A)(this.lB,this));g.N(this,this.ba);this.P=this.C=0;this.M=this.xa["ytp-suggestions"];for(var d=0;16>d;d++){var e=new g.W({H:"a",N:"ytp-suggestion-link",R:{href:"{{link}}",target:"_blank"},L:[{H:"div",N:"ytp-suggestion-image"},{H:"div",N:"ytp-suggestion-overlay",R:c,L:[{H:"div",N:"ytp-suggestion-title",L:["{{title}}"]},{H:"div",N:"ytp-suggestion-author",L:["{{author_and_views}}"]},{H:"div",N:"ytp-suggestion-duration",L:["{{duration}}"]}]}]});g.N(this,e);e.Ia(this.M);var f=
e.xa["ytp-suggestion-link"];g.bh(f,"transitionDelay",d/20+"s");this.B.T(f,"click",g.ya(this.RM,d));this.D.push(e)}this.K=new g.W({H:"button",ea:["ytp-button","ytp-next"],R:{"aria-label":g.T("YTP_NEXT")},L:[g.UD()]});g.N(this,this.K);this.K.Ia(this.element);this.K.X("click",this.fL,this);c=new g.W({H:"button",ea:["ytp-button","ytp-collapse"],R:{"aria-label":g.T("YTP_CLOSE")},L:[g.RD?{H:"div",ea:["ytp-icon","ytp-icon-small-close"]}:{H:"svg",R:{height:"100%",viewBox:"0 0 16 16",width:"100%"},L:[{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.N(this,c);c.Ia(this.element);c.X("click",this.NM,this);this.G=new g.W({H:"button",ea:["ytp-button","ytp-expand"],L:[g.T("YTP_MORE_VIDEOS"),g.RD?{H:"div",ea:["ytp-icon","ytp-icon-keyboard-arrow-up"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},L:[{H:"path",Pa:!0,R:{d:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z",fill:"#fff"}}]}]});g.N(this,this.G);this.G.Ia(this.element);this.G.X("click",
this.PM,this);this.B.T(this.o,"appresize",this.zr);this.B.T(this.o,"fullscreentoggled",this.hL);this.B.T(this.o,"presentingplayerstatechange",this.iL);this.B.T(this.o,"videodatachange",this.jL);this.zr(g.WU(this.o).Ya())};
T_=function(a,b){var c=g.Pd(b,a.F-a.A.length*(a.P+8),0);a.ba.start(a.C,c,1E3);a.C=c;S_(a)};
S_=function(a){var b=a.C,c=a.F-a.A.length*(a.P+8);g.S(a.element,"ytp-scroll-min",0<=b);g.S(a.element,"ytp-scroll-max",b<=c)};
Ina=function(a){for(var b=g.Y(a.o),c=0;c<a.A.length;c++){var d=a.A[c].jc(),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.GV(d.lengthSeconds):0,link:d.Km(b),title:d.title});e=e.xa["ytp-suggestion-image"];d=d.ac(b);e.style.backgroundImage=d?"url("+d+")":""}for(;c<a.D.length;c++)a.D[c].element.style.display="none";S_(a)};
Q_=function(a){g.M.call(this);this.C=a;this.B=new hC(0,0,.4,0,.2,1,1,1);this.o=new g.nt(this.A,window,this);g.N(this,this.o)};
U_=function(a,b,c){var d=b.jc(c),e=g.Y(a),f=d.ac(e,"default.jpg");g.W.call(this,{H:"a",ea:["ytp-video-menu-item","ytp-button"],R:{role:"menuitemradio","aria-label":d.title,href:e.getVideoUrl(d.videoId,b.listId?b.listId.toString():null)},L:[{H:"div",N:"ytp-video-menu-item-index",L:[""+(c+1)]},{H:"div",N:"ytp-video-menu-item-now-playing",L:["\u25b6"]},{H:"div",N:"ytp-video-menu-item-thumbnail",R:{style:f?"background-image: url("+f+");":null}},{H:"div",N:"ytp-video-menu-item-title",L:[d.title]},{H:"div",
N:"ytp-video-menu-item-author",L:[g.T("YTP_UPLOADED_BY_2",{AUTHOR:d.author})]}]});this.o=a;this.kc=c;this.X("click",this.A)};
V_=function(a){$Z.call(this,a,{H:"div",N:"ytp-playlist-menu",R:{role:"dialog",id:"ytp_playlist_menu"},L:[{H:"div",N:"ytp-playlist-menu-header",L:[{H:"div",N:"ytp-playlist-menu-title",L:[{H:"a",N:"ytp-playlist-menu-title-name",R:{href:"{{playlisturl}}"},L:["{{title}}"]},{H:"button",ea:["ytp-playlist-menu-close","ytp-button"],R:{"aria-label":g.T("YTP_CLOSE")},L:[g.YD()]}]},{H:"div",N:"ytp-playlist-menu-subtitle",L:["{{subtitle}}"]}]},{H:"div",N:"ytp-playlist-menu-items",R:{role:"menu"}}]},250);this.T(this.xa["ytp-playlist-menu-close"],
"click",this.Tb);this.T(this.xa["ytp-playlist-menu-title-name"],"click",this.GP);this.A=a;this.B=this.G=this.o=null;this.Ka=this.xa["ytp-playlist-menu-items"];this.F=new g.CJ(this);g.N(this,this.F);this.D=[];this.hide()};
W_=function(a,b){if(a.o!=b)if(a.o&&a.o.unsubscribe("shuffle",a.Nn,a),a.o=b,a.G=null,b){b.subscribe("shuffle",a.Nn,a);var c=b.author;a.update({title:b.title,subtitle:g.T(c?"YTP_PLAYLIST_AUTHOR_AND_POSITION":"YTP_PLAYLIST_POSITION",{AUTHOR:c,CURRENT_POSITION:b.Wd()+1,PLAYLIST_LENGTH:b.getLength()}),playlisturl:a.A.getVideoUrl(!0)});a.Nn()}else a.g&&a.hide();else a.o&&a.Nn()};
X_=function(a,b,c){var d={H:"button",ea:["ytp-playlist-menu-button","ytp-button"],R:{title:"{{title}}","aria-owns":"ytp_playlist_menu","aria-haspopup":!0,"aria-label":g.T("YTP_PLAYLIST")},L:[{H:"div",N:"ytp-playlist-menu-button-icon",L:[g.RD?{H:"div",ea:["ytp-icon","ytp-icon-playlist"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{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",N:"ytp-playlist-menu-button-text",L:["{{text}}"]}]};g.W.call(this,d);this.B=a;this.o=null;this.C=b.o;this.T(a,"videodatachange",this.D);this.T(a,"onPlaylistUpdate",this.D);this.T(a,"presentingplayerstatechange",this.A);this.T(a,"appresize",this.A);this.hide();this.D();g.Qe(this,k_(this.C,this.element));this.X("click",(0,g.A)(c.uh,c,this.element,!1))};
Y_=function(a,b){g.W.call(this,{H:"button",ea:["ytp-replay-button","ytp-button"],R:{title:g.T("YTP_REPLAY")},L:[hE()]});this.o=a;this.T(a,"presentingplayerstatechange",this.B);this.X("click",this.A,this);var c=g.VU(a);this.Jb(g.V(c,2));k_(b.o,this.element)};
Z_=function(a,b){var c={H:"div",N:"ytp-share-panel",R:{id:"ytp-share-panel",role:"dialog","aria-labelledby":"ytp-share-panel-title"},L:[{H:"button",ea:["ytp-share-panel-close","ytp-button"],R:{title:g.T("YTP_CLOSE")},L:[g.YD()]},{H:"div",N:"ytp-share-panel-inner-content",L:[{H:"div",N:"ytp-share-panel-title",R:{id:"ytp-share-panel-title"},L:[g.T("YTP_SHARE")]},{H:"a",ea:["ytp-share-panel-link","ytp-no-contextmenu"],R:{href:"{{link}}",target:"_blank",title:g.T("YTP_SHARE_LINK"),"aria-label":g.T("YTP_SHARE_LINK")},
L:["{{linkText}}"]},{H:"label",N:"ytp-share-panel-include-playlist",L:[{H:"input",N:"ytp-share-panel-include-playlist-checkbox",R:{type:"checkbox",checked:!0}},g.T("YTP_SHARE_WITH_PLAYLIST_2")]},{H:"div",N:"ytp-share-panel-loading-spinner",L:[NV()]},{H:"div",N:"ytp-share-panel-service-buttons",L:["{{buttons}}"]},{H:"div",N:"ytp-share-panel-error",L:[g.T("YTP_SHARE_PANEL_ERROR")]}]}]};$Z.call(this,a,c,250);this.o=a;this.A=b.o;this.B=[];this.O=this.xa["ytp-share-panel-inner-content"];this.F=this.xa["ytp-share-panel-close"];
this.T(this.F,"click",this.Tb);g.Qe(this,k_(this.A,this.F));this.G=this.xa["ytp-share-panel-include-playlist-checkbox"];this.T(this.G,"click",this.Hy);this.D=this.xa["ytp-share-panel-link"];g.Qe(this,k_(this.A,this.D));this.X("click",this.EO);this.T(a,"videoplayerreset",this.hide);this.T(a,"fullscreentoggled",this.yL);this.hide()};
Jna=function(a){switch(a){case "facebook":return g.RD?{H:"div",ea:["ytp-icon","ytp-icon-share-facebook"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},L:[{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.RD?{H:"div",ea:["ytp-icon","ytp-icon-share-googleplus"]}:{H:"svg",R:{height:"100%",version:"1.0",viewBox:"0 0 38 38",width:"100%"},L:[{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.RD?{H:"div",ea:["ytp-icon","ytp-icon-share-twitter"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},L:[{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}};
$_=function(a){for(var b=g.ka(a.B),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),g.Re(c);a.B=[]};
a0=function(a,b,c,d){g.W.call(this,{H:"button",ea:["ytp-button","ytp-share-button"],R:{title:g.T("YTP_SHARE"),"aria-haspopup":!0,"aria-owns":"ytp-share-panel"},L:[{H:"div",N:"ytp-share-icon",L:["{{icon}}"]},{H:"div",N:"ytp-share-title",L:["{{share}}"]}]});this.o=a;this.A=d;this.G=c;sV(a,this,28664);this.X("click",this.F);this.T(a,"videodatachange",this.C);this.T(a,"appresize",this.C);this.C();g.Qe(this,k_(b.o,this.element))};
b0=function(a,b){g.W.call(this,{H:"button",ea:["ytp-airplay-button","ytp-button"],R:{title:g.T("YTP_AIRPLAY")},L:["{{icon}}"]});this.o=a;this.X("click",this.B);this.T(a,"airplayactivechange",this.A);this.T(a,"airplayavailabilitychange",this.A);this.A();g.Qe(this,k_(b.o,this.element))};
c0=function(a,b){g.FV.call(this,{H:"div",N:"ytp-storyboard",L:[{H:"div",N:"ytp-storyboard-filmstrip",L:[{H:"div",N:"ytp-storyboard-thumbnail"}]},{H:"div",N:"ytp-storyboard-lens",L:[{H:"div",N:"ytp-storyboard-lens-thumbnail"},{H:"div",N:"ytp-storyboard-lens-timestamp-wrapper",L:[{H:"span",N:"ytp-storyboard-lens-timestamp"}]}]}]});this.o=a;this.da=b.o;this.O=new g.dk(this.UK,250,this);g.N(this,this.O);this.J=g.WU(a).Ya().width;this.A=this.xa["ytp-storyboard-filmstrip"];this.fa=this.xa["ytp-storyboard-lens"];
this.ga=this.xa["ytp-storyboard-lens-thumbnail"];this.ha=this.xa["ytp-storyboard-lens-timestamp"];this.W=this.xa["ytp-storyboard-thumbnail"];g.we(this.W);this.K=0;this.P=!1;this.M=this.C=this.B=window.NaN;this.Ib=this.D=null;this.F=new g.CJ(this);g.N(this,this.F);this.G=new g.LV(this,100);g.N(this,this.G);this.T(this.o,"appresize",this.TK);this.T(this.o,"presentingplayerstatechange",this.VK)};
d0=function(a,b){var c=!!a.Ib;c&&a.Ib.unsubscribe("l",a.lo,a);a.Ib=b&&HQ(b);a.P=!!b&&b.Ba;a.Ib?(c||(a.F.T(a.o,"videodatachange",a.WK),a.F.T(a.o,"progresssync",a.vn),a.F.T(a.o,"videoplayerreset",a.vn)),a.Ib.subscribe("l",a.lo,a),a.M=window.NaN,a.B=window.NaN,a.C=window.NaN,a.vn(),a.G.show(200)):(c&&g.EJ(a.F),a.O.stop(),g.DG(a.K),a.G.hide(),a.G.stop())};
e0=function(a,b,c,d){var e=a.W.cloneNode(!1);a=hQ(a.Ib,b,c);HW(e,a,c,d);return e};
f0=function(a){g.W.call(this,{H:"div",N:"ytp-storyboard-framepreview",L:[{H:"div",N:"ytp-storyboard-framepreview-img"}]});this.D=this.xa["ytp-storyboard-framepreview-img"];this.o=a;this.Ib=null;this.C=window.NaN;this.A=new g.CJ(this);g.N(this,this.A);this.B=new g.LV(this,100);g.N(this,this.B);this.T(this.o,"presentingplayerstatechange",this.ZK)};
h0=function(a,b){var c=!!a.Ib;a.Ib=b&&HQ(b);a.Ib?(c||(a.A.T(a.o,"videodatachange",a.bL),a.A.T(a.o,"progresssync",a.aL),a.A.T(a.o,"appresize",a.YK)),a.C=window.NaN,g0(a),a.B.show(200)):(c&&g.EJ(a.A),a.B.hide(),a.B.stop())};
g0=function(a){var b=a.o.getCurrentTime(),c=g.WU(a.o).Ya(),d=fQ(a.Ib,c.width),b=a.Ib.g[d].yo(b);b!=a.C&&(a.C=b,jQ(a.Ib,b,c.width),b=hQ(a.Ib,b,c.width),HW(a.D,b,c.width,c.height))};
j0=function(a,b){g.W.call(this,{H:"button",ea:["ytp-fullscreen-button","ytp-button"],R:{title:"{{title}}"},L:["{{icon}}"]});this.A=a;this.D=b;this.o=null;this.B=k_(b.o,this.element);this.C=new g.qt(this.AF,2E3,this);g.N(this,this.C);this.T(a,"fullscreentoggled",this.OA);this.T(a,"presentingplayerstatechange",this.yy);this.X("click",this.cL);if(vF()){var c=g.WU(this.A);this.T(c,Tia(),this.wz);this.T(c,yF(window.document),this.dL)}g.Y(a).ra||i0(this);this.yy();this.OA(a.isFullscreen())};
i0=function(a){if(!a.o){var b=g.T(null!=sF(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],window.document.body)?"YTP_FULLSCREEN_GENERIC_ERROR":"YTP_FULLSCREEN_UNSUPPORTED_ERROR").split(/\$(BEGIN|END)_LINK/);a.o=new $Z(a.A,{H:"div",ea:["ytp-popup","ytp-generic-popup"],R:{role:"alert",tabindex:0},L:[b[0],{H:"a",R:{href:"https://support.google.com/youtube/answer/6276924",target:"_blank"},L:[b[2]]},b[4]]},100,!0);a.o.hide();g.N(a,a.o);a.o.subscribe("show",
(0,g.A)(a.D.Kp,a.D,a.o));g.pV(a.A,a.o.element,5);a.element.setAttribute("aria-disabled",!0);a.element.setAttribute("aria-haspopup",!0);a.B();a.B=null}};
k0=function(a){var b={H:"div",N:"ytp-multicam-menu",R:{role:"dialog"},L:[{H:"div",N:"ytp-multicam-menu-header",L:[{H:"div",N:"ytp-multicam-menu-title",L:[g.T("YTP_SWITCH_CAMERA"),{H:"button",ea:["ytp-multicam-menu-close","ytp-button"],R:{"aria-label":g.T("YTP_CLOSE")},L:[g.YD()]}]}]},{H:"div",N:"ytp-multicam-menu-items"}]};$Z.call(this,a,b,250);this.B=new g.CJ(this);g.N(this,this.B);this.T(this.xa["ytp-multicam-menu-close"],"click",this.Tb);this.o=a;this.Ka=this.xa["ytp-multicam-menu-items"];this.A=
[];this.hide()};
l0=function(a,b,c){g.W.call(this,{H:"button",ea:["ytp-multicam-button","ytp-button"],R:{title:g.T("YTP_SWITCH_CAMERA"),"aria-haspopup":!0,"data-preview":"{{preview}}","data-tooltip-text":"{{text}}"},L:[g.RD?{H:"div",ea:["ytp-icon","ytp-icon-switch-camera"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{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.qt(this.G,400,this);g.N(this,this.D);this.X("click",(0,g.A)(c.uh,c,this.element,!1));this.T(a,"presentingplayerstatechange",g.ya(this.B,!1));this.T(a,"videodatachange",this.F);this.B(!0);g.Qe(this,k_(this.A,this.element))};
m0=function(){g.M.call(this);this.A=null;this.C=this.g=0;this.B=new g.nt(this.o,null,this);g.N(this,this.B)};
n0=function(a,b){if("path"==b.H)return b.R.d;if(b.L)for(var c=0;c<b.L.length;c++){var d=b.L[c];if(d&&!g.u(d)&&(d=n0(a,d)))return d}};
r0=function(a,b,c){c=n0(a,c);var d=b.getElementsByTagName("path")[0],e=d.getAttribute("d");if(d.getAttribute("id")){var f=g.YQ.g();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=o0(e),m=o0(c);p0(a,function(a){d.setAttribute("d",q0(l,m,a))},200)};
p0=function(a,b,c){a.A=b;a.C=(0,g.sG)();a.g=c;a.o()};
o0=function(a){var b=[];a=a.match(Kna);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};
q0=function(a,b,c){var d,e="";for(d=0;d<a.length;d++)var f=a[d],e=g.oa(f)?e+(f+(b[d]-f)*c):e+f;return e};
t0=function(a,b){var c=g.Y(a);g.W.call(this,{H:"button",ea:["ytp-mute-button","ytp-button"],R:c.M?{title:"{{title}}"}:{"aria-disabled":!0,"aria-haspopup":!0},L:["{{icon}}"]});this.Ca("icon",nE());this.o=a;this.fa=b.o;this.J=this.M=this.K=this.P=window.NaN;this.F=[];this.D=[];this.G=this.B=!1;g.Y(this.o).ba||(this.A=new g.YQ({H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"defs",L:[{H:"clipPath",R:{id:"ytp-svg-volume-animation-mask"},L:[{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",N:"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"},L:[{H:"path",N:"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,ea:["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,ea:["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.N(this,this.A),this.W=this.A.xa["ytp-svg-volume-animation-speaker"],this.ka=this.W.getAttribute("d"),this.F=g.de("ytp-svg-volume-animation-mover",this.A.element),this.D=g.de("ytp-svg-volume-animation-hider",this.A.element));this.C=null;this.ba=new m0;g.N(this,this.ba);this.O=new m0;g.N(this,
this.O);this.X("click",this.ha);this.T(a,"appresize",this.qd);this.T(a,"onVolumeChange",this.ga);var d=null;c.M?g.Qe(this,k_(b.o,this.element)):(c=g.T("YTP_VOLUME_UNSUPPORTED_ERROR").split(/\$(BEGIN|END)_LINK/),d=new $Z(a,{H:"span",ea:["ytp-popup","ytp-generic-popup"],R:{tabindex:0},L:[c[0],{H:"a",R:{href:"https://support.google.com/youtube/?p=noaudio",target:"_blank"},L:[c[2]]},c[4]]},100,!0),g.N(this,d),d.hide(),d.subscribe("show",(0,g.A)(b.Kp,b,d)),g.pV(a,d.element,5));this.da=d;sV(a,this,28662);
this.qd(g.WU(a).Ya());s0(this,a.getVolume(),a.He())};
s0=function(a,b,c){var d=c?0:b/100,e=g.Y(a.o);if(e.ba)d=0==d?nE():0<d&&.5>d?mE():lE(),d!=a.C&&(a.Ca("icon",d),a.C=d);else{b=0==d?1:50<b?1:0;if(a.K!=b){var f=a.P;(0,window.isNaN)(f)?u0(a,b):p0(a.ba,(0,g.A)(function(a){u0(this,f+(this.K-f)*a)},a),250);
a.K=b}d=0==d?1:0;if(a.J!=d){var k=a.M;(0,window.isNaN)(k)?v0(a,d):p0(a.O,(0,g.A)(function(a){v0(this,k+(this.J-k)*a)},a),250);
a.J=d}}e.M&&(a.Ca("title",c?g.T("YTP_UNMUTE"):g.T("YTP_MUTE")),w0(a.fa))};
u0=function(a,b){a.P=b;var c=a.ka;b&&(c+=q0(Lna,Mna,b));a.W.setAttribute("d",c)};
v0=function(a,b){a.M=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=nE():e=a.A;for(c=0;c<a.D.length;c++)a.D[c].style.display=0==b?"none":"";e!=a.C&&(a.Ca("icon",e),a.C=e)};
x0=function(a,b){g.W.call(this,{H:"button",ea:["ytp-pip-button","ytp-button"],R:{title:g.T("YTP_PIP")},L:[g.RD?{H:"div",ea:["ytp-icon","ytp-icon-pip"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{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.X("click",this.A);g.Qe(this,k_(b.o,this.element))};
z0=function(a,b){g.W.call(this,{H:"button",ea:["ytp-play-button","ytp-button"],R:{title:"{{title}}","aria-label":"{{label}}"},L:["{{icon}}"]});this.o=a;this.A=null;this.C=b.o;this.B=null;this.D=new m0;g.N(this,this.D);this.T(a,"fullscreentoggled",this.F);this.T(a,"presentingplayerstatechange",this.G);this.T(a,"videodatachange",this.F);y0(this,g.VU(a));this.X("click",this.J,this)};
A0=function(a){switch(a){case 1:return fE();case 2:return eE();case 3:return hE();case 4:return kE();default:return null}};
y0=function(a,b){var c=g.MQ(a.o.ia()),d=!1;if(cK(b))var e=c?4:2;else g.V(b,2)?(e=3,d=c):e=1;a.element.disabled=d;if(a.A!=e){switch(e){case 2:var f=g.T("YTP_PAUSE");break;case 3:f=g.T("YTP_REPLAY");break;case 1:f=g.T("YTP_PLAY");break;case 4:f=g.T("YTP_STOP")}3==e?(a.B||(a.B=k_(a.C,a.element)),a.update({title:f,label:null,icon:A0(e)})):(a.B&&(a.B(),a.B=null),a.update({title:null,label:f}),(c=A0(e))&&a.A&&3!=a.A&&!g.Y(a.o).ba?r0(a.D,a.element,c):a.Ca("icon",c));w0(a.C);a.A=e}};
C0=function(a,b,c){if(c){var d="ytp-next-button";var e=bE()}else d="ytp-prev-button",e=gE();g.W.call(this,{H:"a",ea:[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}}"},L:[e]});this.o=a;this.M=b.o;this.B=c;this.A=this.G=null;this.K=!1;this.F=this.J=this.C=null;this.D=!1;this.T(a,"fullscreentoggled",this.mj);this.T(a,"videodatachange",
this.mj);this.T(a,"onPlaylistUpdate",this.mj);this.B||this.T(a,"appresize",this.qd);this.T(a,"mdxpreviousnextchange",function(){B0(this);this.qd()});
this.mj()};
D0=function(a){a.A&&a.A.unsubscribe("shuffle",a.mj,a)};
E0=function(a){return!!a.A&&!a.B&&3<=a.o.getCurrentTime()&&2!=a.o.Wa()};
F0=function(a){var b=g.TU(g.OU(a.o));return b?a.B?b.hasNext():b.Ff():!1};
B0=function(a){var b={duration:null,preview:null,text:null,title:null,url:null},c=g.Y(a.o),d=XU(a.o),e=a.B&&g.qV(a.o),f=F0(a);if(a.D)b.title=g.T("YTP_REPLAY");else if(d){var k=null;a.A&&(k=a.A.jc(a.B?TQ(a.A):UQ(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.GV(k.lengthSeconds):null;b.preview=k.ac(c,"mqdefault.jpg")}b.title=g.T(a.B?"YTP_NEXT":"YTP_PREVIOUS")}else e&&(a.G.Xf&&a.G.Xf.length&&(k=g.FZ(a.G.Xf[0]),
b.url=k.Km(c),b.text=k.title,b.duration=k instanceof g.rQ?g.GV(k.lengthSeconds):null,b.preview=k.ac(c,"mqdefault.jpg")),b.title=g.T("YTP_NEXT"));b.disabled=!e&&!d&&!f;a.update(b);a.K=!!b.url;e||d||a.D||f?a.C||(a.C=k_(a.M,a.element),a.J=a.X("click",a.lL,a)):a.C&&(a.C(),a.C=null,a.za(a.J),a.J=null);w0(a.M)};
H0=function(a,b){g.FV.call(this,{H:"div",N:"ytp-progress-bar-container",R:{"aria-disabled":!0},L:[{H:"div",N:"ytp-progress-bar",R:{tabindex:0,role:"slider","aria-label":g.T("YTP_SEEK_SLIDER"),"aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},L:[{H:"div",N:"ytp-progress-bar-padding"},{H:"div",N:"ytp-progress-list",L:[{H:"div",ea:["ytp-play-progress","ytp-swatch-background-color"]},{H:"div",N:"ytp-load-progress"},{H:"div",N:"ytp-hover-progress"},
{H:"div",N:"ytp-clip-start-exclude"},{H:"div",N:"ytp-clip-end-exclude"},{H:"div",N:"ytp-ad-progress-list"},{H:"div",N:"ytp-marker-crenellation-list"},{H:"div",N:"ytp-marker-progress-list"}]},{H:"div",N:"ytp-scrubber-container",L:[{H:"div",ea:["ytp-scrubber-button","ytp-swatch-background-color"],L:[{H:"div",N:"ytp-scrubber-pull-indicator"}]}]}]},{H:"div",N:"ytp-bound-time-left",L:["{{boundTimeLeft}}"]},{H:"div",N:"ytp-bound-time-right",L:["{{boundTimeRight}}"]},{H:"div",N:"ytp-clip-start",R:{title:g.T("YTP_WATCH_ALL")},
L:["{{clipstarticon}}"]},{H:"div",N:"ytp-clip-end",R:{title:g.T("YTP_WATCH_ALL")},L:["{{clipendicon}}"]}]});this.Ca("clipstarticon",XD());this.Ca("clipendicon",WD());this.A=a;this.Fa=b.o;this.Na=!1;this.C=this.Ub=0;this.W=1;this.Bb=this.G=0;this.D=window.NaN;this.rb=!1;this.K=this.da=0;this.Yb=this.xa["ytp-ad-progress-list"];this.oc=this.xa["ytp-marker-progress-list"];this.qb=this.xa["ytp-marker-crenellation-list"];this.P={};this.ka={};this.M=window.Infinity;var c=b.o;this.fa=this.xa["ytp-clip-end"];
g.Qe(this,k_(c,this.fa));this.oa=new g.TF(this.fa,!0);g.N(this,this.oa);this.oa.subscribe("hoverstart",this.Cy,this);this.oa.subscribe("hoverend",this.By,this);this.T(this.fa,"click",this.wn);this.Ta=this.xa["ytp-clip-end-exclude"];this.uc=this.xa["ytp-clip-start-exclude"];this.O=0;this.ga=this.xa["ytp-clip-start"];g.Qe(this,k_(c,this.ga));this.ra=new g.TF(this.ga,!0);g.N(this,this.ra);this.ra.subscribe("hoverstart",this.Cy,this);this.ra.subscribe("hoverend",this.By,this);this.T(this.ga,"click",this.wn);
this.xb=this.xa["ytp-load-progress"];this.ha=0;this.wc=this.xa["ytp-play-progress"];this.Oa=this.xa["ytp-hover-progress"];this.F=0;this.zb=this.xa["ytp-progress-bar"];this.B=null;this.Hb=this.xa["ytp-scrubber-button"];this.Dc=this.xa["ytp-scrubber-container"];this.sa=new g.Td;this.tb=new GW;this.o=new DW(0,0);this.J=this.ua=!1;this.Ra=null;this.T(a,"presentingplayerstatechange",this.nL);this.T(a,"videodatachange",this.Ay);this.T(a,"videoplayerreset",this.HG);this.T(a,"cuerangesadded",this.Fy);this.T(a,
"cuerangesremoved",this.vL);this.T(a,"cuerangemarkersupdated",this.Fy);this.T(a,"onPlaybackQualityChange",this.oL);G0(this,a.ia(),!0)};
L0=function(a){if(a.C){var b=a.A.ih(),c=new DW(b.seekableStart,b.seekableEnd),d=FW(c,b.loaded,0),b=FW(c,b.current,0),e=a.o.o!=c.o||a.o.g!=c.g;a.o=c;I0(a,b,d);e&&J0(a);K0(a)}};
G0=function(a,b,c){c=void 0===c?!1:c;var d=!!b&&b.Ge();a.ua=d&&b.gg;M0(a,a.A.Kd());c&&(d?(c=b.clipEnd,a.O=b.clipStart,a.M=c,N0(a),I0(a,a.F,a.ha)):a.wn(),b=a.Fa,1==b.o&&b.We());L0(a)};
O0=function(a){return!!a&&a.Ge()&&!!a.Ma&&a.Ma.video.isAccelerated&&a.Ma.video.A};
P0=function(a,b){a.rb=b;g.S(a.xb,"ytp-fast-load",b)};
Q0=function(a,b,c,d){b=g.Pd(b,0,a.J?60:40);a.G=b;var e=a.W,f=Math.max(a.o.getLength()/a.C,1);a.W=b/(a.J?60:40)*(f-1)+1;b=a.C*a.W;a.K=g.Pd(d*b-c,0,b-a.C);e!=a.W&&J0(a)};
J0=function(a){var b=R0(a),c=-b.A/b.g,d=(-b.A+b.width)/b.g,e=g.ze(a.qb),f=0;if(a.G>.2*(a.J?60:40))for(var k=c*(a.o.getLength()/60),l=d*(a.o.getLength()/60),k=Math.ceil(k);k<l;k++){var m=e[f];m||(m=g.pe("DIV"),a.qb.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.ua?a.o.g:0;a.update({boundTimeLeft:g.GV(EW(a.o,c)-b),boundTimeRight:g.GV(EW(a.o,d)-b)});for(c=e.length-
1;c>=f;c--)g.we(e[c]);a.element.style.height=a.G+(a.J?8:5)+"px";a.Y("height-change",a.G);a.Hb.style.height=a.G+(a.J?20:13)+"px";for(var q in a.P)S0(a,a.P[q],a.ka[q]);N0(a);I0(a,a.F,a.ha)};
R0=function(a){var b=a.sa.x,c=a.C*a.W,b=g.Pd(b,0,a.C);a.tb.update(b,a.C,-a.K,-(c-a.K-a.C));return a.tb};
I0=function(a,b,c){a.F=b;a.ha=c;var d=R0(a),e=a.o.g,f=EW(a.o,a.F);a.update({ariamin:Math.floor(a.o.o),ariamax:Math.floor(e),arianow:Math.floor(f),arianowtext:g.T("YTP_PROGRESS_LABEL_2",{PLAY_PROGRESS:g.GV(f),DURATION:g.GV(e)})});var e=FW(a.o,a.O,0),k=FW(a.o,a.M,1),f=g.Pd(b,e,k);c=a.rb?1:g.Pd(c,e,k);k=b*d.g+d.A;a.Hb.style.display=0<=k&&b<=d.width?"":"none";g.bh(a.Dc,"transform","translateX("+k+"px)");T0(a,a.wc,d,e,f);T0(a,a.xb,d,e,c)};
T0=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.Y(a.A).isMobile?(b.style.width=d+"px",eh(b,"transform")):g.bh(b,"transform","scalex("+(c.width?d/c.width:0)+")")};
N0=function(a){var b=a.O>a.o.o,c=0<a.o.g&&a.M<a.o.g;g.S(a.element,"ytp-clip-start-enabled",b);g.S(a.element,"ytp-clip-end-enabled",c);b=b?FW(a.o,a.O,0):0;c=c?FW(a.o,a.M,1):1;a.ga.style.left=Math.round(1E3*b)/10+"%";a.fa.style.left=Math.round(1E3*c)/10+"%";a.uc.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+"%"};
K0=function(a){var b=R0(a);T0(a,a.Oa,b,a.F,b.o);g.S(a.Oa,"ytp-hover-progress-light",b.o>a.F)};
S0=function(a,b,c){var d=R0(a),e=FW(a.o,b.start/1E3,0),f=Gja(b)/d.width;switch(b.style){case "ytp-chapter-marker":var k=e+f/2;e-=f/2;break;default:k=FW(a.o,b.end/1E3,1),f!=Number.POSITIVE_INFINITY&&(e=g.Pd(e,0,k-f)),k=Math.min(k,e+f),b.color&&(c.style.background=b.color)}T0(a,c,d,e,k,!0);c.className=b.style};
U0=function(a,b){var c=b.getId();a.P[c]==b&&(g.we(a.ka[c]),delete a.P[c],delete a.ka[c])};
M0=function(a,b){b?a.B||(a.element.removeAttribute("aria-disabled"),a.B=new g.TF(a.zb,!0),a.B.subscribe("hovermove",a.sL,a),a.B.subscribe("hoverend",a.rL,a),a.B.subscribe("dragstart",a.qL,a),a.B.subscribe("dragmove",a.uL,a),a.B.subscribe("dragend",a.tL,a),a.Ra=a.X("keydown",a.pL)):a.B&&(a.element.setAttribute("aria-disabled",!0),a.za(a.Ra),a.B.cancel(),a.B.dispose(),a.B=null)};
V0=function(a,b){B_.call(this,g.T("YTP_ANNOTATIONS"),5);this.B=b;this.U=a;this.A=!1;this.T(a,"videodatachange",this.C);this.T(a,"onApiChange",this.C);this.subscribe("select",this.D,this);this.C()};
g.W0=function(a,b,c,d,e,f){var k=g.n_({"aria-haspopup":!0});g.m_.call(this,k,b,a);this.A=d;this.G=!1;this.D=null;this.o={};this.C=new g.p_(c,void 0,a,e,f);g.N(this,this.C);this.X("keydown",this.wL);this.X("click",this.open)};
g.X0=function(a,b){if(a.D){var c=a.o[a.D];c.element.getAttribute("aria-checked");c.element.removeAttribute("aria-checked")}a.o[b].element.setAttribute("aria-checked",!0);a.dc(a.df(b));a.D=b};
g.Y0=function(a,b){g.s_(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?(g.l_(a.o[f],a.df(f,!0)),delete a.o[f]):(k=new g.m_({H:"div",ea:["ytp-menuitem"],R:{tabindex:0,role:"menuitemradio","aria-checked":l?!0:null},L:[{H:"div",ea:["ytp-menuitem-label"],L:["{{label}}"]}]},-e,a.df(f,!0)),k.X("click",(0,g.A)(a.xL,a,f)));c[f]=k;g.q_(a.C,k,!0)}d||(a.D=null);for(var m in a.o)a.o[m].dispose();a.o=c};
Z0=function(a,b){g.W0.call(this,g.T("YTP_AUDIO_TRACK_TITLE"),2,a,b);this.U=a;this.J=new g.W({H:"div",L:[{H:"span",L:[g.T("YTP_AUDIO_TRACK_TITLE")]},{H:"span",N:"ytp-menuitem-label-count",L:["{{content}}"]}]});g.l_(this,this.J);this.K={};this.T(a,"videodatachange",this.F);this.T(a,"onPlaybackAudioChange",this.F);this.F()};
$0=function(a,b){B_.call(this,g.T("YTP_AUTOPLAY"),6);this.D=b;this.U=a;this.B=!1;this.A=[];this.T(a,"presentingplayerstatechange",this.C);this.subscribe("select",this.G,this);this.C()};
a1=function(a,b){g.W0.call(this,g.T("YTP_QUALITY_TITLE"),1,a,b);g.R(this.C.element,"ytp-quality-menu");this.U=a;this.K={};this.J="unknown";this.F=0;this.O=g.Y(a).experiments.g("html5_dim_superoptimal_formats");this.T(a,"videodatachange",this.B);this.T(a,"videoplayerreset",this.B);this.T(a,"onPlaybackQualityChange",this.M);this.B()};
b1=function(a,b,c){var d=a.K[b],e=g.EI[b];var f=d?d.qualityLabel:e?e+"p":g.T("YTP_AUTO");a.O&&a.F&&e>a.F&&(c=c||[],c.push("ytp-quality-superoptimal"));a={H:"span",ea:c,L:[]};d&&d.isAccelerated&&d.A&&a.L.push({H:"div",N:"ytp-menuitem-badge-container",L:[{H:"svg",R:{fill:"#00838f",height:"11px",viewBox:"0 0 48 48",width:"11px"},L:[{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.L.push(f);var k;"highres"==b?k="8K":"hd2880"==b?k="5K":"hd2160"==b?k="4K":0==b.indexOf("hd")&&(k="HD");k&&(a.L.push(" "),a.L.push({H:"sup",N:"ytp-swatch-color",L:[k]}));return a};
c1=function(a,b,c){g.W.call(this,{H:"button",ea:["ytp-button","ytp-settings-button"],R:{"aria-haspopup":!0,"aria-owns":"ytp-main-menu-id",title:g.T("YTP_SETTINGS")},L:[g.jE()]});this.A=c;this.U=a;this.B=!0;this.X("click",this.C);this.T(a,"onPlaybackQualityChange",this.o);this.T(a,"settingsmenutoggle",this.C);this.T(a,"videodatachange",this.o);this.T(a,"webglsettingschanged",this.o);this.T(a,"appresize",this.qd);g.Qe(this,k_(b.o,this.element));this.o();this.qd(g.WU(a).Ya())};
d1=function(a,b){a.B=!!b;a.qd(g.WU(a.U).Ya())};
e1=function(a,b){g.W0.call(this,g.T("YTP_SPEED_TITLE"),4,a,b);this.U=a;this.B=null;this.T(a,"presentingplayerstatechange",this.Iy);this.Iy()};
g1=function(a,b,c,d){var e=g.T("YTP_VIDEO_SUBTITLES_OVERRIDE"),f=new g.p_(b,void 0,e);g.W0.call(this,f1(d),a,b,c,e,function(){return g.w_(c,f)});
g.R(this.element,"ytp-subtitles-options-menu-item");this.K=d.option.toString();this.M=g.Cb(d.options,this.O,this);this.J=f;g.N(this,this.J);a=new g.m_({H:"div",N:"ytp-menuitemtitle",L:[g.T("YTP_VIDEO_SUBTITLES_OVERRIDE_DESC")]},0);g.N(this,a);g.q_(this.J,a,!0);this.F=new g.m_({H:"div",N:"ytp-menuitem",R:{role:"menuitemradio",tabindex:0},L:[{H:"div",N:"ytp-menuitem-label",L:[g.T("YTP_ON")]}]},-1);g.N(this,this.F);g.q_(this.J,this.F,!0);this.T(this.F.element,"click",g.ya(this.P,!0));this.B=new g.m_({H:"div",
N:"ytp-menuitem",R:{role:"menuitemradio",tabindex:0},L:[{H:"div",N:"ytp-menuitem-label",L:[g.T("YTP_OFF")]}]},-2);g.N(this,this.B);g.q_(this.J,this.B,!0);this.T(this.B.element,"click",g.ya(this.P,!1));g.Y0(this,(0,g.I)(d.options,this.O))};
f1=function(a){return(a.message?g.T(a.message):a.text)||""};
h1=function(a,b){g.p_.call(this,a,void 0,g.T("YTP_OPTIONS"));this.o={};for(var c=0;c<g.O_.length;c++){var d=g.O_[c],e=new g1(-c,a,b,d);g.N(this,e);e.subscribe("settingChange",this.A,this);this.o[d.option.toString()]=e;g.q_(this,e,!0)}c=new g.m_(g.n_(),-g.O_.length,g.T("YTP_RESET"));g.N(this,c);c.X("click",(0,g.A)(this.A,this,"reset",!0));g.q_(this,c,!0)};
i1=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]&&(g.X0(d,e),d.F.element.setAttribute("aria-checked",!f),d.B.element.setAttribute("aria-checked",f))}}};
j1=function(a,b){g.W0.call(this,g.T("YTP_AUTO_TRANSLATE"),0,a,b);this.B={}};
k1=function(a,b){var c=new h1(a,b);g.W0.call(this,g.T("YTP_SUBTITLES"),3,a,b,g.T("YTP_OPTIONS"),function(){return g.w_(b,c)});
this.U=a;this.B={};this.M=new g.qt(g.ya(this.Ly,!1),3E3,this);g.N(this,this.M);this.J=new g.W({H:"div",L:[{H:"span",L:[g.T("YTP_SUBTITLES")]},{H:"span",N:"ytp-menuitem-label-count",L:["{{content}}"]}]});g.N(this,this.J);g.l_(this,this.J);this.F=new j1(a,b);g.N(this,this.F);this.F.subscribe("select",this.HL,this);this.K=c;g.N(this,this.K);this.K.subscribe("settingChange",this.GL,this);this.T(a,"videodatachange",this.Pk);this.T(a,"onApiChange",this.Pk);this.T(a,"onCaptionsTrackListChanged",this.Pk);
this.T(a,"captionschanged",this.Pk);this.Pk()};
l1=function(a){g.t_.call(this,a,"ytp-settings-menu");this.A=a;this.B=new g.p_(a);g.N(this,this.B);this.G=null;this.W=!1;this.hide();g.w_(this,this.B)};
m1=function(a){if(!a.W){a.W=!0;var b=new a1(a.A,a);g.N(a,b);b=new k1(a.A,a);g.N(a,b);b=new V0(a.A,a);g.N(a,b);g.Y(a.A).Fa&&(b=new e1(a.A,a),g.N(a,b));g.Y(a.A).he&&(b=new $0(a.A,a),g.N(a,b));b=new Z0(a.A,a);g.N(a,b);d1(a.G,a.B.Ka.length)}};
n1=function(a,b){g.q_(a.B,b);d1(a.G,a.B.Ka.length)};
o1=function(a,b){a.g&&1>=a.B.Ka.length&&a.hide();g.r_(a.B,b);d1(a.G,a.B.Ka.length)};
p1=function(a,b,c){g.W.call(this,{H:"button",ea:["ytp-remote-button","ytp-button"],R:{title:g.T("YTP_MDX_TOOLTIP"),"aria-haspopup":!0},L:["{{icon}}"]});this.U=a;this.B=c;this.A=null;this.T(a,"onMdxReceiversChange",this.o);this.T(a,"presentingplayerstatechange",this.o);this.T(a,"appresize",this.o);this.o();this.X("click",this.C,this);g.Qe(this,k_(b.o,this.element))};
q1=function(a,b){g.W.call(this,{H:"button",ea:["ytp-size-button","ytp-button"],R:{title:"{{title}}"},L:["{{icon}}"]});this.o=a;this.C=b.o;this.B=null;this.D=new m0;g.N(this,this.D);this.T(a,"sizestylechange",this.A);this.T(a,"fullscreentoggled",this.A);this.T(a,"presentingplayerstatechange",this.A);this.A();this.X("click",this.F);g.Qe(this,k_(this.C,this.element))};
r1=function(a,b){g.W.call(this,{H:"button",ea:["ytp-subtitles-button","ytp-button"],R:{"aria-pressed":"{{pressed}}",title:g.T("YTP_SUBTITLES_TOOLTIP")},L:[ZD()]});this.A=a;this.T(a,"videodatachange",this.o);this.T(a,"appresize",this.o);this.T(a,"onApiChange",this.o);this.T(a,"onCaptionsTrackListChanged",this.o);this.T(a,"captionschanged",this.o);this.o();this.X("click",this.B);g.Qe(this,k_(b.o,this.element))};
s1=function(a,b){g.W.call(this,{H:"div",ea:["ytp-time-display","notranslate"],L:[{H:"span",N:"ytp-time-current",L:["{{currenttime}}"]},{H:"span",N:"ytp-time-separator",L:[" / "]},{H:"span",N:"ytp-time-duration",L:["{{duration}}"]}]});this.D=new g.W({H:"button",ea:["ytp-live-badge","ytp-button"],R:{disabled:!0},L:[g.T("YTP_LIVE")]});g.N(this,this.D);this.D.Ia(this.element);this.o=a;this.K=b.o;this.A=null;this.F=this.B=!1;this.J=this.G=null;this.X("click",this.M);this.T(a,"presentingplayerstatechange",
this.C);this.T(a,"appresize",this.C);this.T(a,"videodatachange",this.O);var c=a.ia();c&&(this.B=c.Ba,g.S(this.element,"ytp-live",this.B));this.C()};
u1=function(a,b,c){g.W.call(this,{H:"div",N:"ytp-volume-panel",R:{role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:0},L:[{H:"div",N:"ytp-volume-slider",L:[{H:"div",N:"ytp-volume-slider-handle"}]}]});this.o=a;this.F=b;this.O=c;this.K=!1;this.G=b.ae();this.W=this.C=0;this.P=this.xa["ytp-volume-slider"];this.ba=this.xa["ytp-volume-slider-handle"];this.J=new g.TF(this.P,!0);g.N(this,this.J);this.J.subscribe("dragstart",this.AP,
this);this.J.subscribe("dragmove",this.zP,this);this.J.subscribe("dragend",this.yP,this);this.M=null;this.A=this.B=this.D=!1;this.T(a,"onVolumeChange",this.KL);this.T(a,"appresize",this.qd);this.T(a,"fullscreentoggled",this.IL);this.T(a,"onShowControls",this.dv);this.T(a,"onHideControls",this.dv);this.T(this.element,"keydown",this.BP);this.T(this.element,"focus",g.ya(this.Ny,!0));this.T(this.element,"blur",g.ya(this.Ny,!1));this.qd(g.WU(a).Ya());t1(this,a.getVolume(),a.He())};
t1=function(a,b,c){var d=Math.floor(b),e=d+"% "+g.T("YTP_SCREENREADER_VOLUME_SETTING")+(c?" "+g.T("YTP_SCREENREADER_VOLUME_MUTED"):"");c=c?0:b/100;a.Ca("valuenow",d);a.Ca("valuetext",e);a.ba.style.left=(a.G?60:40)*c+"px";a.C=b};
v1=function(a,b,c,d,e){var f=a.B||a.D||a.A||a.K;a.B=b;a.D=c;a.A=d;a.K=e;b=a.B||a.D||a.A||a.K;f!=b&&(b?a.M=a.T(a.element,"wheel",a.JL):(a.za(a.M),a.M=null),g.S(a.O,"ytp-volume-slider-active",b))};
w1=function(a,b){var c=g.Y(a),d=RO(c);0==d.indexOf("www.")&&(d=d.substring(4));var e=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];(c="gaming"==c.o)&&e.push("ytp-youtube-gaming-button");g.W.call(this,{H:"a",ea:e,R:{href:"{{url}}",target:"_blank",title:g.T("YTP_URL_NAVIGATE_TO",{WEBSITE:d}),"data-sessionlink":"feature=player-button"},L:[c?g.RD?{H:"div",ea:["ytp-icon","ytp-icon-logo-gaming"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 98 36",width:"100%"},L:[{H:"path",Pa:!0,N:"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",ea:["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,ea:["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,N:"ytp-svg-fill",L:[{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.RD?{H:"div",ea:["ytp-icon","ytp-icon-logo"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 51 36",width:"100%"},L:[{H:"path",Pa:!0,N:"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",ea:["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,ea:["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;sV(a,this,28666);this.X("click",this.D);this.T(a,"videodatachange",this.C);this.C();g.Qe(this,k_(b.o,this.element))};
x1=function(a,b,c){g.CJ.call(this);var d=g.Y(a);this.U=a;this.A=b;this.ba=window.NaN;this.W=null;this.M=c;this.M.subscribe("autohideupdate",this.Ky,this);c=!dK(g.VU(a));var e=new g.W({H:"div",N:"ytp-gradient-bottom"});g.N(this,e);g.pV(a,e.element,9);this.K=new g.LV(e,250,c,100);g.N(this,this.K);this.o=new g.W({H:"div",N:"ytp-chrome-bottom",L:[{H:"div",N:"ytp-chrome-controls"}]});g.N(this,this.o);g.pV(a,this.o.element,9);this.J=new g.LV(this.o,250,c,100);g.N(this,this.J);c=this.o.element.children[0];
d.F&&(c.style.background=d.rb);this.g=new l1(a);g.N(this,this.g);g.pV(a,this.g.element,7);this.g.subscribe("show",this.PR,this);this.g.subscribe("show",(0,g.A)(b.mR,b,this.g));this.B=new H0(a,b);g.N(this,this.B);this.B.Ia(this.o.element,0);e=new c0(a,b);g.N(this,e);g.pV(a,e.element,5);this.B.subscribe("height-change",e.XK,e);e=new f0(a);g.N(this,e);g.pV(a,e.element,5);e=new g.YQ({H:"div",N:"ytp-left-controls"});g.N(this,e);e.Ia(c);var f=new C0(a,b,!1);g.N(this,f);f.Ia(e.element);f=new z0(a,b);g.N(this,
f);f.Ia(e.element);f=new C0(a,b,!0);g.N(this,f);f.Ia(e.element);var k=new g.W({H:"span"});g.N(this,k);k.Ia(e.element);if(!d.W&&(this.C=new t0(a,b),g.N(this,this.C),this.C.Ia(k.element),d.M)){f=new u1(a,b,this.o.element);g.N(this,f);f.Ia(k.element);k=new g.TF(k.element);g.N(this,k);var l=(0,g.A)(f.PA,f,!0);k.subscribe("hoverstart",l);k=new g.TF(e.element);g.N(this,k);f=(0,g.A)(f.PA,f,!1);k.subscribe("hoverend",f)}this.O=new s1(a,b);g.N(this,this.O);this.O.Ia(e.element);e=new g.YQ({H:"div",N:"ytp-right-controls"});
g.N(this,e);e.Ia(c);c=new r1(a,b);g.N(this,c);c.Ia(e.element);c=new c1(a,b,this.g);g.N(this,c);this.g.G=c;c.Ia(e.element);c=new k0(a);g.N(this,c);g.pV(a,c.element,6);c.subscribe("show",(0,g.A)(b.Jp,b,c));c=new l0(a,b,c);g.N(this,c);c.Ia(e.element);d.Hg&&(this.D=new w1(a,b),g.N(this,this.D),this.D.Ia(e.element));c=new q1(a,b);g.N(this,c);c.Ia(e.element);d.xb&&(c=new p1(a,b,this.g),g.N(this,c),c.Ia(e.element));d.Gg&&(d=new b0(a,b),g.N(this,d),d.Ia(e.element));d=HL();d.webkitSetPresentationMode&&g.ua(d.webkitSupportsPresentationMode)&&
d.webkitSupportsPresentationMode("picture-in-picture")&&(d=new x0(a,b),g.N(this,d),d.Ia(e.element));this.ca=new j0(a,b);g.N(this,this.ca);this.ca.Ia(e.element);this.F=new g.nt(this.EN,null,this);g.N(this,this.F);this.G=null;this.T(a,"appresize",this.Er);this.T(a,"fullscreentoggled",this.Er);this.T(a,"presentingplayerstatechange",this.Ms);this.Er()};
y1=function(a,b){if(dK(g.VU(a.U))||b){if(b){a.J.hide();a.K.hide();if(a.C){var c=a.C;c.G=!1;g.uV(c.o,c,c.B&&!1)}a.D&&(c=a.D,c.B=!1,g.uV(c.o,c,c.A&&!1));a.A.o.Ei(a.pa())}}else b||(a.J.show(),a.K.show(),a.C&&(c=a.C,c.G=!0,g.uV(c.o,c,c.B&&!0)),a.D&&(c=a.D,c.B=!0,g.uV(c.o,c,c.A&&!0)),a.Ky())};
A1=function(a){var b=g.WU(a.U).Ya().width;return Math.max(b-2*z1(a),100)};
z1=function(a){var b=a.A.ae();return 12*(g.Y(a.U).F?0:b?2:1)};
g.B1=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.Y(r).g;q={href:q,"aria-label":a,tabindex:"-1"};if("embedded"==c||"profilepage"==c)q.target="_blank";g.W.call(this,{H:"div",ea:["ytp-button","ytp-sb"],L:[{H:"a",N:"ytp-sb-subscribe",R:q,L:[{H:"div",N:"ytp-sb-text",L:[{H:"div",N:"ytp-sb-icon"},a]},b?{H:"div",N:"ytp-sb-count",L:[b]}:""]}]});this.X("click",function(a){a.stopPropagation()});
f&&g.R(this.element,"ytp-sb-classic")}else{g.W.call(this,{H:"div",ea:["ytp-button","ytp-sb"],L:[{H:"div",N:"ytp-sb-subscribe",R:{tabindex:"-1","aria-label":a},L:[{H:"div",N:"ytp-sb-text",L:[{H:"div",N:"ytp-sb-icon"},a]},b?{H:"div",N:"ytp-sb-count",L:[b]}:""]},{H:"div",N:"ytp-sb-unsubscribe",R:{tabindex:"-1","aria-label":c},L:[{H:"div",N:"ytp-sb-text",L:[{H:"div",N:"ytp-sb-icon"},c]},d?{H:"div",N:"ytp-sb-count",L:[d]}:""]}]});var w=this;this.o=k;this.U=r;var y=this.xa["ytp-sb-subscribe"],B=this.xa["ytp-sb-unsubscribe"];
f&&g.R(this.element,"ytp-sb-classic");if(e){l&&g.R(this.element,"ytp-sb-subscribed");a=g.Y(r);var D=null;"gaming"==a.o&&(D="gaming_channels");if(m){var K=a.baseYtUrl+"subscription_ajax";var X=function(){return{method:"POST",Xc:{action_create_subscription_to_channel:1,c:w.o},Qb:{feature:m,silo_name:D},withCredentials:!0}};
var Ra=function(){return{method:"POST",Xc:{action_remove_subscriptions:1},Qb:{c:w.o,silo_name:D},withCredentials:!0}}}else if(n)K="/subscription_service",X=function(){return{method:"POST",
Xc:{action_subscribe:1},Qb:{channel_ids:w.o,itct:n}}},Ra=function(){return{method:"POST",
Xc:{action_unsubscribe:1},Qb:{channel_ids:w.o,itct:n}}};
else return;var bb=function(a){a.stopPropagation();g.KE(K,X());r.ya("SUBSCRIBE");B.focus();B.removeAttribute("aria-hidden");y.setAttribute("aria-hidden",!0)},ia=function(a){a.stopPropagation();
g.KE(K,Ra());r.ya("UNSUBSCRIBE");y.focus();y.removeAttribute("aria-hidden");B.setAttribute("aria-hidden",!0)};
this.T(y,"click",bb);this.T(B,"click",ia);this.T(y,"keypress",function(a){13==a.keyCode&&bb(a)});
this.T(B,"keypress",function(a){13==a.keyCode&&ia(a)});
var Zb=(0,g.A)(this.A,this),tb=(0,g.A)(this.B,this);r.addEventListener("SUBSCRIBE",Zb);r.addEventListener("UNSUBSCRIBE",tb);g.Qe(this,function(){r.removeEventListener("SUBSCRIBE",Zb);r.removeEventListener("UNSUBSCRIBE",tb)})}else g.R(y,"ytp-sb-disabled"),g.R(B,"ytp-sb-disabled")}};
C1=function(a){var b=new g.W({H:"a",N:"ytp-title-channel-logo",R:{href:"{{channelLink}}",target:"_blank"}}),c=g.Y(a).experiments.g("embed_author_metadata"),d=null,e=null,f=null;c&&(d={H:"div",N:"ytp-title-beacon"},e=new g.W({H:"button",ea:["ytp-button","ytp-title-notifications"],L:[{H:"div",N:"ytp-title-notifications-on",L:[g.cE()]},{H:"div",N:"ytp-title-notifications-off",L:[g.dE()]}]}),f=a.ia(),f=new g.B1(g.T("YTP_SUBSCRIBE"),null,g.T("YTP_SUBSCRIBED"),null,!0,!1,f.nl,!1,"embed_title",null,null,
a));g.W.call(this,{H:"div",N:"ytp-title",L:[{H:"div",N:"ytp-title-channel",L:[d,b,{H:"div",N:"ytp-title-channel-popup",L:[{H:"div",N:"ytp-title-channel-heading",L:[{H:"h2",N:"ytp-title-channel-text",L:[{H:"a",R:{href:"{{popupChannelLink}}",target:"_blank"},L:["{{popupChannelName}}"]}]},{H:"h3",N:"ytp-title-channel-subtext",L:["{{subscriberCount}}"]}]},f,e]}]},{H:"div",N:"ytp-title-text",L:[{H:"a",ea:["ytp-title-link","yt-uix-sessionlink"],R:{target:"_blank",href:"{{url}}","data-sessionlink":"feature=player-title"},
L:["{{title}}"]},{H:"div",N:"ytp-title-subtext",L:[{H:"a",N:"ytp-title-channel-name",R:{href:"{{channelLink}}",target:"_blank"},L:["{{channelName}}"]},{H:"span",N:"ytp-title-view-count",L:["{{viewCount}}"]}]}]}]});var k=this;g.N(this,b);this.o=a;this.A=null;this.O=this.xa["ytp-title-link"];this.G=b;this.B=f;this.C=!1;this.K=this.M=this.J=null;sV(a,this,23851);this.T(a,"videodatachange",this.D);this.T(a,"videoplayerreset",this.D);c&&(this.T(a,"SUBSCRIBE",function(){g.R(k.element,"ytp-subscribed")}),
this.T(a,"UNSUBSCRIBE",function(){g.Kp(k.element,"ytp-subscribed")}),g.N(this,e),g.N(this,f),this.T(this.xa["ytp-title-channel"],"mouseenter",function(){k.F.stop();
var b=a.getRootNode();g.R(b,"ytp-title-channel-expanded");g.Kp(b,"ytp-title-channel-collapsed")}),this.T(this.element,"mouseleave",function(){k.F.start()}),this.T(e.element,"click",function(){g.KE("/subscription_ajax?action_update_subscription_preferences=1",{method:"POST",
Qb:{channel_id:k.K,receive_all_updates:!k.C}});k.C=!k.C;g.S(k.element,"ytp-notifications-enabled",k.C)}),this.F=new g.qt(function(){var b=a.getRootNode();
g.Kp(b,"ytp-title-channel-expanded");g.R(b,"ytp-title-channel-collapsed")},1E3),g.N(this,this.F));
this.D()};
E1=function(a){var b=a.o.ia(),c=b.videoId&&(2==a.o.Wa()||g.Y(a.o).experiments.g("embed_author_metadata")),d=a.o.getRootNode();c&&b.videoId==a.J?g.R(d,"ytp-title-extra-info"):(g.Kp(d,"ytp-title-extra-info"),c&&(b.author&&b.channelPath&&b.profilePicture?D1(a,b.videoId,b.nl,b.author,b.channelPath,b.profilePicture,b.xs):b.videoId!=a.M&&(c=g.Y(a.o),d={video_id:b.videoId,html5:1,page_subscribe:0},c.Fc&&(d.authuser=c.Fc),c.pageId&&(d.pageid=c.pageId),c=g.Dg(c.baseYtUrl+"get_video_metadata",d),g.KE(c,{method:"GET",
Mb:(0,g.A)(a.W,a,b.videoId),withCredentials:!0}),a.M=b.videoId)))};
D1=function(a,b,c,d,e,f,k){e=g.Y(a.o).ha+"://"+QO(g.Y(a.o))+e;a.G.element.style.backgroundImage="url("+f+")";a.B&&(a.B.o=c);a.G.Ca("channelLink",e);a.Ca("channelLink",e);a.Ca("channelName",d);a.Ca("popupChannelLink",e);a.Ca("popupChannelName",d);a.Ca("subscriberCount",k);a.K=c;a.J=b;E1(a)};
F1=function(a,b){var c=g.WU(a).Ya();g.W.call(this,{H:"div",L:[{H:"div",N:"ytp-tooltip-bg",L:[{H:"div",N:"ytp-tooltip-duration",L:["{{duration}}"]}]},{H:"div",N:"ytp-tooltip-text-wrapper",L:[{H:"div",N:"ytp-tooltip-image"},{H:"div",N:"ytp-tooltip-title",L:["{{title}}"]},{H:"span",N:"ytp-tooltip-text",L:["{{text}}"]}]}]});this.O=a;this.ka=b;this.fa=g.Y(a).isMobile;this.G=this.xa["ytp-tooltip-bg"];this.oa=this.xa["ytp-tooltip-image"];this.ha=(0,g.A)(this.nO,this);this.P=(0,g.A)(this.pO,this);this.W=
(0,g.A)(this.We,this);this.A=null;this.J=new g.LV(this,100);g.N(this,this.J);this.o=null;this.M=!1;this.B=null;this.C=window.NaN;this.F="";this.ga=c.width;this.K=!0;this.D=1;this.ba=new g.qt(this.CI,250,this);g.N(this,this.ba);this.da=new g.qt(this.We,5E3,this);g.N(this,this.da)};
H1=function(a,b){if(null!=a.o)if(b)switch(a.o){case 3:case 2:G1(a);a.J.show();break;default:a.J.show()}else a.J.hide();a.K=b};
k_=function(a,b){if(a.fa)return g.z;b.addEventListener("mouseover",a.P);return(0,g.A)(function(){this.A==b&&this.We();b.removeEventListener("mouseover",this.P)},a)};
J1=function(a,b,c){if(a.o)if(3==a.o)a.We();else return;I1(a,b,3,c)};
I1=function(a,b,c,d){(0,window.isNaN)(a.C)||(a.C=window.NaN,a.G.style.background="");a.A=b;a.M=!!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.oa.style.backgroundImage="url("+b+")";g.S(a.element,"ytp-tooltip-image-enabled",!!b);a.o=c;a.O.addEventListener("appresize",a.W);a.K&&(G1(a),a.J.show(0))};
G1=function(a){var b=a.A.getAttribute("data-tooltip-text");if(b&&!a.M){a.Ca("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.Jp(a.element,["ytp-text-detail","ytp-preview"]);g.S(a.element,"ytp-has-duration",
!!c)}else a.Ca("text",a.F),g.Lp(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);3==a.o?a.element.setAttribute("role","status"):a.element.removeAttribute("role");K1(a,!!b)};
K1=function(a,b,c){a.element.style.maxWidth=b?"":Math.min(a.ga,200*a.D)+"px";L1(a.ka,a.element,a.A,c,1==a.o);a.element.style.top?g.R(a.element,"ytp-bottom"):a.element.style.bottom&&g.R(a.element,"ytp-top");3==a.o&&a.da.start()};
w0=function(a){a.A&&!a.M&&a.A.hasAttribute("title")&&(a.F=a.A.getAttribute("title"),a.A.removeAttribute("title"),a.K&&G1(a))};
M1=function(a,b){g.S(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=hQ(a.B,a.C,c);HW(a.G,e,c,d,!0);a.ba.start()}};
g.N1=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=Cg(f,"mode",b));b=Cg("/signin?context=popup","next",f);c&&(b=Cg(b,"feature",c));if(c=window.open(b,"loginPopup","width="+d+",height="+e+",resizable=yes,scrollbars=yes",!0))b=g.dG("LOGGED_IN",function(b){g.eG(g.ND("LOGGED_IN_PUBSUB_KEY",void 0));g.MD("LOGGED_IN",!0);a(b)}),g.MD("LOGGED_IN_PUBSUB_KEY",b),c.moveTo((window.screen.width-d)/2,(window.screen.height-e)/2)};
Q1=function(a,b,c){g.W.call(this,{H:"button",ea:["ytp-watch-later-button","ytp-button"],R:{title:"{{title}}","data-tooltip-image":"{{image}}"},L:[{H:"div",N:"ytp-watch-later-icon",L:["{{icon}}"]},{H:"div",N:"ytp-watch-later-title",L:["{{watch_later}}"]}]});this.o=a;this.G=b.o;this.F=c;g.R(c,"ytp-watch-later-button-visible");this.D=null;this.B=this.A=!1;sV(a,this,28665);this.X("click",this.LL,this);this.T(a,"videoplayerreset",this.ML);this.T(a,"appresize",this.qd);this.qd(g.WU(a).Ya());a=g.Y(this.o);
c=g.OG("yt-player-watch-later-pending");a.experiments.g("embed_show_watchlater_login")&&a.A&&c?(cJ(),O1(this,c.videoId)):P1(this,2);g.Qe(this,k_(b.o,this.element))};
O1=function(a,b){if(!a.B){a.B=!0;P1(a,3);var c=g.Y(a.o);(a.A?Ena:Dna)({videoIds:b,Fc:c.Fc,pageId:c.pageId,onError:a.hQ,Mb:a.A?a.iQ:a.gQ,context:a},c.baseYtUrl,!0)}};
P1=function(a,b,c){if(b!=a.D){switch(b){case 3:var d=NV();break;case 1:d=g.RD?{H:"div",ea:["ytp-icon","ytp-icon-watch-later-added"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"path",Pa:!0,N:"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.RD?{H:"div",ea:["ytp-icon","ytp-icon-watch-later"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"path",Pa:!0,N:"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.RD?{H:"div",ea:["ytp-icon","ytp-icon-alert"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"path",Pa:!0,N:"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.Ca("icon",
d);a.D=b}c?a.update({title:c,image:null}):(b=g.Y(a.o),b.userDisplayName?(c={USER_NAME:b.userDisplayName},a.update({title:a.A?g.T("YTP_ADDED_TO_WATCH_LATER_AS",c):g.T("YTP_WATCH_LATER_AS_2",c),image:b.userDisplayImage})):a.update({title:g.T("YTP_WATCH_LATER"),image:null}));w0(a.G)};
R1=function(a){g.W.call(this,{H:"a",ea:["ytp-watermark","yt-uix-sessionlink"],R:{target:"_blank",href:"{{url}}","aria-label":g.T("YTP_URL_NAVIGATE_TO",{WEBSITE:RO(g.Y(a))}),"data-sessionlink":"feature=player-watermark"},L:[g.RD?{H:"div",ea:["ytp-icon","ytp-icon-watermark"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 77 34",width:"100%"},L:[{H:"path",Pa:!0,N:"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",ea:["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,ea:["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.T(a,"videodatachange",this.B);this.T(a,"presentingplayerstatechange",this.D);a=g.VU(a);this.Jb(!g.V(a,2));this.B()};
S1=function(a){d_.call(this,a);var b=g.Y(a),c=g.WU(a),d=g.Y(this.g),e=d.ba;if(KL("ytp-normal-css-loaded")){var f=KL("ytp-sprite-mode-css-loaded");e!=f&&g.qE(Error("Player sprite mode mismatch. playerInSpriteMode: "+e+", spriteModeCssServed: "+f+", isMobile: "+d.isMobile),"WARNING")}this.W=null;this.G=[];d=new g.W({H:"div",N:"ytp-gradient-top"});g.N(this,d);g.pV(a,d.element,1);this.Ra=new g.LV(d,250,!0,100);g.N(this,this.Ra);this.C=new g.W({H:"div",N:"ytp-chrome-top"});g.N(this,this.C);g.pV(a,this.C.element,
1);this.Oa=new g.LV(this.C,250,!0,100);g.N(this,this.Oa);this.ka=[];this.o=new F1(a,this);g.N(this,this.o);g.pV(a,this.o.element,5);!b.experiments.g("related_on_pause_killswitch")&&b.A&&b.wc&&(this.tb=new R_(a,this),g.N(this,this.tb),g.pV(a,this.tb.element,5));this.J=new j_(a,this);g.N(this,this.J);g.pV(a,this.J.element,2);d=new V_(a);g.N(this,d);g.pV(a,d.element,6);d.subscribe("show",(0,g.A)(this.Jp,this,d));this.ka.push(d);d=new X_(a,this,d);g.N(this,d);d.Ia(this.C.element);this.Ja=new C1(a);g.N(this,
this.Ja);this.Ja.Ia(this.C.element);d=new g.YQ({H:"div",N:"ytp-chrome-top-buttons"});g.N(this,d);d.Ia(this.C.element);b.experiments.g("embed_show_top_buttons")&&b.A&&g.R(d.element,"ytp-chrome-top-show-buttons");b.ZQ&&(this.oa=new Q1(a,this,this.C.element),g.N(this,this.oa),this.oa.Ia(d.element));e=new Z_(a,this);g.N(this,e);g.pV(a,e.element,6);e.subscribe("show",(0,g.A)(this.Jp,this,e));this.ka.push(e);this.Na=new a0(a,this,e,this.C.element);g.N(this,this.Na);this.Na.Ia(d.element);(this.A="1"==b.C?
new x1(a,this,this.B):null)&&g.N(this,this.A);"3"==b.C&&(d=new Y_(a,this),g.N(this,d),g.pV(a,d.element,9));this.K=new J_(a,this);g.N(this,this.K);this.K.subscribe("show",this.vy,this);this.Fa=!1;b.Ig&&(d=new R1(a),g.N(this,d),g.pV(a,d.element,8));d=new g_(a);g.N(this,d);g.pV(a,d.element,5);this.fa=new g.W({H:"div",R:{tabindex:0}});this.fa.X("focus",this.ZF,this);g.N(this,this.fa);this.da=new g.W({H:"div",R:{tabindex:0}});this.da.X("focus",this.aG,this);g.N(this,this.da);(this.ga=b.useTabletControls?
null:new L_(a,c,this.K,this.B,this.F,(0,g.A)(this.qm,this)))&&g.N(this,this.ga);this.T(a,"fullscreentoggled",this.OK);this.T(a,"offlineslatestatechange",this.yO,this);this.T(a,"cardstatechange",this.Bg,this)};
L1=function(a,b,c,d,e){b.style.left="";b.style.top="";b.style.bottom="";var f=g.uh(b);e=e||a.A&&g.De(a.A.pa(),c);if(null==d||!e){var k=g.uh(c);var l=g.rh(c,a.g.getRootNode())}d=(null==d?l.x+k.width/2:d)-f.width/2;e?(k=z1(a.A),l=A1(a.A),c=g.WU(a.g).Ya().height,d=g.Pd(d,k,k+l-f.width),f=c-(a.A.A.ae()?72:50)-f.height):g.De(a.C.element,c)?(k=g.WU(a.g).Ya().width,d=g.Pd(d,12,k-f.width-12),f=a.ae()?69:48,"gvn"==g.Y(a.g).o&&(f+=20)):(a=g.WU(a.g).Ya(),d=g.Pd(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"};
T1=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!=g.fh(b,"display")&&"true"!=b.getAttribute("aria-hidden")){var e=void 0;0<=b.tabIndex?e=b:e=T1(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};
U1=function(a){this.J=a;this.D=null;this.A=[];this.o=[];this.C=[];this.G=1;this.g=[];this.B=!1};
g.rV=function(a,b,c){a.B?a.C.push({type:b,data:c}):a.J.Y(b,c)};
V1=function(a,b){g.M.call(this);var c=this;this.ca=Zia(b);var d=this.ca.args||{};this.Z=new NO(d);g.N(this,this.Z);this.Z.experiments.g("legacy_autoplay_flag")||"detailpage"!=this.Z.g||(d.autoplay="1");this.Dc=rO("detailpage"==this.Z.g&&"blazer"!=this.Z.o,d.enablesizebutton);this.oa=rO(!1,d.player_wide);this.W=this.Z.Fb&&rO(!1,d.external_list);this.ua=(this.oc=this.Z.Fb&&rO(!1,d.external_play_video))&&this.Z.experiments.g("player_unified_fullscreen_transitions");this.P=new g.CJ(this);g.N(this,this.P);
Hc=function(a,b){g.qE(b,"WARNING")};
this.Oa=null;this.K=new g.gD;this.ba=new g.gD;this.da=new U1(this.ba);this.da.pause();this.g=new NU(this);g.N(this,this.g);this.J=new NU(this,1);g.N(this,this.J);this.F=new dZ(this);g.N(this,this.F);this.O=1;this.Ta={};this.M=this.Z.storeUserVolume?Eja():{volume:100,muted:this.Z.mute};this.U=this.Z.Fb?new NK(this,1):new hJ(this,1);g.N(this,this.U);this.D=null;this.Ra={};d={};this.xb=(d.internalAbandon=this.rM,d.internalvideodatachange=this.qM,d.playbackready=this.sM,d.playbackstarted=this.tM,d.statechange=
this.uM,d.signatureexpired=this.wP,d);this.A=Nna(this);g.N(this,this.A);this.G=new OP(this.Z,"",this.A);this.o=Ona(this);d={};this.wc=(d.airplayactivechange=this.hM,d.airplayavailabilitychange=this.iM,d.beginseeking=this.CM,d.endseeking=this.qN,d.internalAbandon=this.IN,d.internalaudioformatchange=this.wM,d.internalvideodatachange=this.lr,d.internalvideoformatchange=this.YP,d.liveviewshift=this.ON,d.playbackstalledatstart=this.CP,d.progresssync=this.XI,d.seekto=this.YI,d.onLoadProgress=this.PN,d.onVideoProgress=
this.aJ,d.playbackready=this.JO,d.statechange=this.Yz,d.connectionissue=this.aN,d.newelementrequired=this.sO,d.heartbeatparams=this.VI,d.videoelementevent=this.ZI,d);this.C=null;this.ra=new EZ(5,function(a){a!=g.UU(c,a.getPlayerType())&&a.dispose()});
g.N(this,this.ra);this.zb=this.Bb=-1;this.rb=new g.qt(this.F.fg,16,this.F);g.N(this,this.rb);this.tb=!1;this.fa=!0;this.sa=this.Na=this.B=null;this.Hb=!1;this.Ub=this.uc=null;this.qb=this.ga=0;this.ka=this.Ja=!1;this.Fa=this.ha=null;this.P.T(this.g,"crn_appapi",this.oM);this.P.T(this.g,"crx_appapi",this.pM);this.P.T(this.g,"crn_appad",this.iz);this.P.T(this.g,"crx_appad",this.iz);this.P.T(this.g,"presentingplayerstatechange",this.WI);this.P.T(this.g,"resize",this.gP);this.F.Ia(g.be(a));this.Yb=this.Z.experiments.g("html5_enable_embedded_player_visibility_signals")&&
this.Z.A?new GZ(this.F.element):null;g.N(this,this.Yb);g.RD=this.Z.ba;Pna(this);this.G.o("fs");Qna(this);this.Fa=new S1(this.g);this.A.D=this.Fa;this.Fa.init();g.dV(this.J,"init")};
Ona=function(a){var b=new QT(a.Z,1,a.G,a.F,(0,g.A)(a.K.Y,a.K),(0,g.A)(a.jj,a));MU(b,a.Z.A?1:W1(a,g.OG("yt-player-playback-rate")||1));X1(a,b,a.xb);return b};
Nna=function(a){var b="",c=a.ca.assets.js||"";0==c.indexOf("//")&&(c=a.Z.ha+":"+c);"/base.js"==c.substr(-8)&&(b=c.substr(0,c.length-8)+"/");b=new ZY(a.g,b,a);c={};a=(c.loaded=(0,g.A)(a.jO,a),c.unloaded=(0,g.A)(a.kO,a),c.destroyed=(0,g.A)(a.Jr,a),c);b.fa=a;return b};
Z1=function(a,b){a.Oa||(a.Oa=new DZ(a),g.N(a,a.Oa),g.pV(a.g,a.Oa.element,5));a.Oa.Jb(b);Y1(a)&&g.TU(a.A).qK()};
a2=function(a){var b=$1.getTag(!0,!a.Z.D);a.D=new NL(b);a.C&&rU(a.C,a.D);try{if(a.Z.W)a.sa&&a.P.za(a.sa),a.sa=a.P.T(a.D,"volumechange",a.gO);else{a.D.setVolume(a.M.volume/100);var c=a.D,d=a.M.muted;JL();c.g.muted=d}}catch(e){b="setvolume.1;emsg."+(e.message&&e.message.replace(/[;:,]/g,"_"));g.$T(a.o,"html5.missingapi","YTP_ERROR_UNSUPPORTED_DEVICE",b);return}Cna(a.F,b);try{PJ(a.D)}catch(e){b="activate.1;emsg."+(e.message&&e.message.replace(/[;:,]/g,"_")),g.$T(a.o,"html5.missingapi","YTP_ERROR_UNSUPPORTED_DEVICE",
b)}};
b2=function(a){if(a.D){a.sa&&(a.P.za(a.sa),a.sa=null);a.C&&qU(a.C);var b=a.F;b.o&&(g.we(b.o),b.o=null);$1.releaseTag(a.D.pa());a.D=null}};
NY=function(a,b){if(a.C!=b){var c=null;a.C&&(c=a.C.A,cZ(a.A),jV(a,"cuerangesremoved",a.C.D.g.g||[]),OY(a));c2(a,b);a.C=b;a.D&&rU(b,a.D);X1(a,b,a.wc);a.lr("newdata",b,b.g);a.Z.experiments.g("disable_new_presenting_state_change")||!c||g.bK(c,b.A)||a.Yz(new g.gK(b.A,c));b.ga.g&&a.lr("dataloaded",b,b.g);b.g.Ma&&a.g.ya("onPlaybackQualityChange",b.g.Ma.video.quality);jV(a,"cuerangesadded",a.C.D.g.g||[]);cK(b.A)&&xU(b)}};
X1=function(a,b,c){for(var d in c)b.subscribe(d,c[d],a)};
c2=function(a,b){if(b!=a.o){var c=b.getPlayerType();a.Ra[c]=b}};
OY=function(a){qU(a.C);var b=a.C,c=a.wc,d;for(d in c)b.unsubscribe(d,c[d],a);b=a.C;b!=a.o&&(c=b.getPlayerType(),a.Ra[c]==b&&delete a.Ra[c]);a.C=null};
g.UU=function(a,b){return b?1==b?a.o:a.Ra[b]||null:a.C};
MY=function(a,b){var c=g.UU(a,b);c||(c=d2(a,b),c2(a,c));return c};
d2=function(a,b){if(2==b){var c=g.Wb(a.Z.K);a.Z.experiments.g("legacy_autoplay_flag")&&(c.autoplay="1");c.eventid=gZ(a).eventId;c.content_v=gZ(a).videoId;c=new NO(c);c.g="adunit";c=new QT(c,2,new OP(c,""),a.F,(0,g.A)(a.K.Y,a.K),(0,g.A)(a.jj,a))}else c=new QT(a.Z,b,a.G,a.F,(0,g.A)(a.K.Y,a.K),(0,g.A)(a.jj,a));return c};
e2=function(a){var b=a.A;if(!b.o)try{b.U.ia(1).adModule?(b.o=new FY(b.ga,b.ga.J),b.o.create()):g.mV(b.U,"ad")}catch(c){g.mV(b.U,"ad"),g.qE(c)}b.zv();b.uv();b.Bv();b.Dv();b.Cv();b.yv();b.rv();b.tv();b.xv();b.vv();b.Cp();b.Av();a.g.Y("videoready",gZ(a))};
gZ=function(a){return a.C.g};
f2=function(a,b){var c=g.UU(a,b);return(c=c?c.o:null)?TJ(c):0};
g.g2=function(a,b,c){(a=g.UU(a,void 0===c?1:c))&&RT(a,b)};
h2=function(a){var b=a.o.g;return a.Z.experiments.g("legacy_autoplay_flag")?a.Z.Ah:b.ph};
Pna=function(a){var b=new g.rQ(a.ca.args);g.sH()&&b.de.push("remote");b.Ge()&&(ZT(a.o,b,(0,g.A)(a.og,a)),h2(a)&&(a.Z.Rd||a.Z.Cd)&&cU(a.o))};
Qna=function(a){var b=a.F,c=b.app.Z;c.Ed||b.Ct("tag-pool-enabled");c.Ac&&b.Ct("house-brand");"gvn"==c.o&&(b.Ct("ytp-gvn"),b.element.style.backgroundColor="transparent");c.ka&&(b.G=g.dG("yt-dom-content-change",b.fg,b));b.T(window,"resize",b.fg,b);b=a.U;b.o=a.F.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=yF(a.F.element))&&a.P.T(a.F,d,a.xN);a.P.T(window,"resize",a.hP);b=a.ca.args;a2(a);d=a.o.g;a.g.ya("onVolumeChange",a.M);if(b&&SQ(b))if((c=UO(a.Z))&&!a.W&&(b.fetch=0),i2(a,b),
c&&!a.W)j2(a);else if(!d.Ge())a.B.onReady((0,g.A)(a.Rr,a));if(b=a.ca.args.jsapicallback)g.ua(b)||(b=g.x(b)),b&&(0,g.A)(b,pa,a.Z.uI);NY(a,a.o);g.V(a.o.A,128)||(b=IL(a.Z.D),"fmt.noneavailable"==b?g.$T(a.o,"html5.missingapi","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):"html5.missingapi"==b?g.$T(a.o,b,"YTP_ERROR_UNSUPPORTED_DEVICE","nocanplaymedia.1"):d&&d.Ge()&&h2(a)&&(a.Z.Rd||a.Z.Cd)?k2(a):"leanback"!=a.Z.g&&l2(a))};
l2=function(a){a.g.Y("initializingmode");g.m2(a,2);a.A.Cp()};
k2=function(a){if(g.V(a.o.A,128))return!1;h2(a)&&a.Z.Cd&&($1.hasTags(void 0)&&a.ka?(kJ(a,{muted:!1,volume:a.M.volume},!1),n2(a,!1)):$1.hasTags(void 0)||a.M.muted||(kJ(a,{muted:!0,volume:a.M.volume},!1),n2(a,!0)));o2(a,1,a.o.g.videoId);a.g.Y("initializingmode");NY(a,a.o);g.m2(a,3);var b;if(!(b=!a.Z.Ed||JO()&&!a.Hb)){if(b=a.ha)b=a.D,b=!!b&&b==a.ha.g;b=b&&a.Hb}b&&(b2(a),a2(a),rU(a.o,a.D));fU(a.o);if(g.V(a.o.A,128))return!1;p2(a,3);return a.Hb=!0};
Y1=function(a){a=g.TU(a.A);return!!a&&a.loaded};
q2=function(a,b){if(a.C==a.o&&a.C.uc!=b){var c=a.C;c.uc=b;c.o&&(c.o.g.loop=b);a.g.Y("loopchange",b)}};
r2=function(a,b,c){(0,window.isNaN)(b)||(b=W1(a,b),a.o.ua!=b&&(MU(a.o,b),c&&!a.Z.A&&g.NG("yt-player-playback-rate",b),a.g.ya("onPlaybackRateChange",b)))};
W1=function(a,b){var c=1,c=a.g.kj();return c=1>b?g.$a(c,function(a){return a>=b}):cb(c,function(a){return a<=b})};
t2=function(a,b){var c=JU(a.o,b);a.C&&a.C!=a.o&&(c=s2(c,JU(a.C,b),"ad_"));if(b&&a.D){c["0sz"]=0==g.uh(a.D.g).Qc();c.op=eh(a.D.g,"opacity");var d=jh(a.D.g).y+g.uh(a.D.g).height;c.yof=0>=d;c.dis=eh(a.D.g,"display")}(d=b?bU():null)&&(c.gpu=d);c.cgr=!0;c.debug_playbackQuality=a.J.Fk();c.debug_date=(new Date).toString();delete c.uga;delete c.q;(d=a.A.F)&&(c=s2(c,d.HB(),"fresca_"));return JSON.stringify(c,null,2)};
SU=function(a){return 1==a.O?1:Y1(a)?3:g.UU(a).getPlayerType()};
u2=function(a,b){return 3==SU(a)?fK(g.TU(a.A).F):2==b?a.zb:a.Bb};
v2=function(a){var b=a.A.o;b&&b.C&&b.destroy();q2(a,!1);a.Ta={};a=a.G;b=a.A;b.ca={};b.ba={};a.B=!1};
j2=function(a){var b=w2();if(b)if(!b.list)a.Wl();else if(a.B&&a.B.listId.toString()==b.list)if(0<=b.index){var c=b.video;a.g.isFullscreen()&&((c=c[a.B.Wd()])&&c.encrypted_id!=a.B.jc().videoId||(b.index=a.B.Wd()));WQ(a.B,b);a.Na&&x2(a,a.Na)}else a.Na=null};
i2=function(a,b){a.B&&(a.B.unsubscribe("error",a.Wl,a),g.Re(a.B),a.B=null);b&&(a.W&&(b.fetch=0),a.B=new g.RQ(b),a.B.subscribe("error",a.Wl,a))};
y2=function(a,b,c,d){b in a.Ta||(c=new g.oJ(c,d,{id:b,priority:1}),c.namespace="appad",QS(a.o.D,[c]),a.Ta[b]=c)};
z2=function(a,b,c){c={label:c};a.Z.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.HE(b,c)};
g.m2=function(a,b){b!=a.O&&(2==b&&(p2(a,-1),p2(a,5)),a.O=b,a.g.Y("appstatechange",b))};
p2=function(a,b){a.C&&2==a.C.getPlayerType()?a.zb!=b&&(a.zb=b,a.g.ya("onAdStateChange",b)):a.Bb!=b&&(a.Bb=b,a.g.ya("onStateChange",b))};
VY=function(a,b,c,d,e){c=0!=c;if(e=g.UU(a,e))2==a.O&&k2(a),hU(e,b,c,d)};
B2=function(a,b,c,d,e){a.Z.Ac&&$P(b);a.Z.experiments.g("legacy_autoplay_flag")||"detailpage"!=a.Z.g||(b.autoplay="1");var f=new g.rQ(b);d||(b&&SQ(b)?(UO(a.Z)&&!a.W&&(b.fetch=0),i2(a,b)):a.B&&i2(a,null),a.W=rO(!1,b.external_list),UO(a.Z)&&!a.W&&j2(a));return A2(a,f,c,e)};
D2=function(a,b,c,d){a.ra.get(c+b.videoId)||(b.En=!0,d?(d=g.UU(a,c),C2(a,c)):d=d2(a,c),ZT(d,b,(0,g.A)(a.og,a)),cU(d,!0),a.ra.set(c+b.videoId,d))};
o2=function(a,b,c){var d=b+c;if(c=a.ra.get(d)){a.ra.remove(d);if(c==g.UU(a,b))return c;if(1==c.getPlayerType()){c.g.autonavState=a.o.g.autonavState;b=a.o;var d=a.xb;for(e in d)b.unsubscribe(e,d[e],a);var e=a.o.ua;a.o.dispose();a.o=c;MU(a.o,e);X1(a,c,a.xb);v2(a)}else(e=g.UU(a,b))&&e.dispose();a.C.getPlayerType()==c.getPlayerType()?NY(a,c):c2(a,c)}return c};
A2=function(a,b,c,d){JP("_start",a.G.g)||(zP("p",void 0,a.G.g),a.G.info("srt",0));var e=o2(a,c||a.C.getPlayerType(),b.videoId);if(!e){e=g.UU(a,c);if(!e)return!1;a.rb.stop();C2(a,c);ZT(e,b,(0,g.A)(a.og,a),d)}if(!aU(e))return!1;a.tb&&(e.rb=!1,a.tb=!1);if(e==a.o)return g.m2(a,1),k2(a);fU(e);return!0};
E2=function(a,b,c){c=g.UU(a,c);b&&c==a.o&&(c.g.Hf=!0)};
G2=function(a,b,c){a.Z.Ac&&$P(b);if(b&&SQ(b))if(a.fa=!0,i2(a,b),(b=a.B.jc())&&b.Ge())F2(a,b,c);else a.B.onReady((0,g.A)(a.Rr,a));else c||(c=SU(a)),1==c&&a.Wl(),F2(a,new g.rQ(b),c)};
F2=function(a,b,c){var d=g.UU(a,c);d&&(C2(a,c),ZT(d,b,(0,g.A)(a.og,a)),d.Z.Zf(b.Xb),d==a.o&&(g.m2(a,1),l2(a)))};
g.I2=function(a,b,c,d,e,f){if(!b&&!d)throw Error("Playback source is invalid");a.g.isFullscreen()&&!a.ua||!MO(a.Z)?(c=a.G,f=c.A,f.ca={},f.ba={},c.B=!1,a.G.reset(),b={video_id:b},e&&(b.autoplay="1"),d?(b.list=d,a.fa=!1,H2(a,b,void 0,void 0,void 0)):B2(a,b,1)):(c=c||{},c.lact=g.vG(),c.vis=a.jj(),a.oc||"gaming"==a.Z.o?a.g.ya("onPlayVideo",{videoId:b,sessionData:c,listId:d}):(d=f&&gZ(a).isLiveDestination?a.Z.P:a.Z.getVideoUrl(b,d),e=g.x("yt.player.exports.navigate"),a.Z.experiments.g("legacy_navigate_with_player")?
(e(d,c,!0),xV(d)):e(d,c)))};
H2=function(a,b,c,d,e){if(g.va(b)&&!g.sa(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;i2(a,b);a.B.onReady((0,g.A)(a.Rr,a))};
g.PZ=function(a){if(a.g.app.ka)return!1;if(3==SU(a))return!0;UO(a.Z)&&!a.W&&j2(a);return!(!a.B||!a.B.hasNext())};
J2=function(a,b){a.o.g.autonavState=b;a.g.Y("autonavchange",b)};
K2=function(a,b,c){var d=g.UU(a,1).g.Xf;g.qV(a.g)&&d?(d=g.I(d,g.FZ),b=d[0],d=c?b.Nv:b.Od,g.I2(a,b.jc().videoId,d,b.getPlaylistId(),c)):!a.W||a.g.isFullscreen()&&!a.ua?3==SU(a)?g.TU(a.A).oK():a.B&&(UO(a.Z)&&!a.g.isFullscreen()?x2(a,"yt.www.watch.lists.next"):(a.B.hasNext(b)&&VQ(a.B,TQ(a.B)),a.B.Tc?A2(a,a.B.jc(void 0,c),1):a.fa=!1)):a.g.ya("onPlaylistNext")};
L2=function(a,b){!a.W||a.g.isFullscreen()&&!a.ua?3==SU(a)?g.TU(a.A).pK():a.B&&(UO(a.Z)&&!a.g.isFullscreen()?x2(a,"yt.www.watch.lists.prev"):(a.B.Ff(b)&&VQ(a.B,UQ(a.B)),a.B.Tc?A2(a,a.B.jc(),1):a.fa=!1)):a.g.ya("onPlaylistPrevious")};
x2=function(a,b){var c=g.x(b);if(c){var d=w2();d&&d.list&&c();a.Na=null}else a.Na=b};
w2=function(){var a=g.x("yt.www.watch.lists.getState");return a?a():null};
M2=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.oJ(1E3*c,1E3*d,b);c.namespace="appapi";hV(a,[c],1);return!0};
hV=function(a,b,c){var d=g.UU(a,c);d&&(QS(d.D,b),c&&SU(a)!=c||jV(a,"cuerangesadded",b))};
XY=function(a){var b=(0,g.sG)(),c=a.getCurrentTime();return b-Math.max(1E3*(c-gZ(a).startSeconds),0)};
kJ=function(a,b,c){a.Z.M&&(a.M=b,b.muted||n2(a,!1),c&&a.Z.storeUserVolume&&!a.Z.W&&(c={volume:Math.floor(b.volume),muted:b.muted},c.unstorable||(g.NG("yt-player-volume",c),g.NG("yt-player-volume",c,2592E3))),N2(a),c=g.UE&&!a.D.wd(),!a.Z.W||c)&&(b=g.Wb(b),a.Z.storeUserVolume||(b.unstorable=!0),a.g.ya("onVolumeChange",b))};
N2=function(a){var b=gZ(a);b.Ml||(a.D.setVolume(a.M.volume*(a.Z.W?1:b.xc)/100),b=a.D,a=a.M.muted,JL(),b.g.muted=a)};
n2=function(a,b){b!=a.ka&&(a.ka=b,a.g.Y("mutedautoplaychange",b))};
P2=function(a,b){var c=window.screen&&window.screen.orientation;if(a.Z.experiments.g("lock_fullscreen2")&&c&&c.lock&&(!g.UE||!g.O2))if(b){var d=0==c.type.indexOf("portrait"),e=g.iZ(a.F),f=d;1>e?f=!0:1<e&&(f=!1);if(!a.Ja||f!=d){if(c=c.lock(f?"portrait":"landscape"))c["catch"](g.z);a.Ja=!0}}else a.Ja&&(a.Ja=!1,c.unlock())};
Q2=function(a,b){var c=!!b,d=!!a.qb!=c;a.qb=b;a.Z.experiments.g("legacy_player_fullscreen_order")?d&&(a.G.o("fsc"),a.Z.ga=c,a.F.fg()):(a.Z.ga=c,a.F.fg(),d&&a.G.o("fsc"));d&&(a.g.Y("fullscreentoggled",c),d=a.o.g,c={fullscreen:c,videoId:d.ypcOrigin||d.videoId,time:a.getCurrentTime()},a.J.getPlaylistId()&&(c.listId=a.J.getPlaylistId()),a.g.ya("onFullscreenChange",c))};
jV=function(a,b,c){a.g.Y(b,c);var d=g.$L(a.Z)||g.HO(a.Z);if(c&&d){switch(b){case "cuerangemarkersupdated":var e="onCueRangeMarkersUpdated";break;case "cuerangesadded":e="onCueRangesAdded";break;case "cuerangesremoved":e="onCueRangesRemoved"}e&&a.g.ya(e,c)}};
SY=function(a,b){var c=g.UU(a,b);c&&(2==a.O?k2(a):!a.Z.experiments.g("disable_reload_on_error")&&c.A.isError()?R2(a,"user"):!a.Z.experiments.g("new_ended_replay")&&g.V(c.A,2)?VY(a,0):xU(c))};
UY=function(a,b){var c=g.UU(a,b);c&&jU(c)};
S2=function(a){var b=a.o.g,b=new g.rQ({video_id:b.videoId,oauth_token:b.oauthToken});F2(a,b,1)};
C2=function(a,b){g.hP(a.ga);a.ga=0;var c=g.UU(a,b);if(c&&1!=a.O&&2!=a.O){cZ(a.A);if(1==b){var d=a.A.o;d&&d.C&&d.destroy()}pU(c);jV(a,"cuerangesremoved",a.C.D.g.g||[]);c.D.reset()}};
T2=function(a,b,c,d,e){c=0!=c;var f=g.UU(a,e);if(!f||2!=f.getPlayerType()&&!g.MQ(f.g))3==SU(a)?g.TU(a.A).Mk("control_seek",b,c):VY(a,b,c,d,e)};
Rna=function(a,b,c){a.Dc=b;a.oa=c;a.g.Y("sizestylechange",b,c);a.F.fg()};
R2=function(a,b,c){if(!a.tb){c&&(b2(a),a2(a));a.tb=!0;c=g.UU(a);c.rb=!0;c.ne("reloading","reason."+b);c=gZ(a);var d={};d.video_id=c.videoId;c.Ba||(d.start=g.UU(a).getCurrentTime(),d.resume="1");c.cg&&(d.vvt=c.cg);c.vssCredentialsToken&&(d.vss_credentials_token=c.vssCredentialsToken,d.vss_credentials_token_type=c.ro);c.oauthToken&&(d.oauth_token=c.oauthToken);d.autoplay=1;d.reload_count=c.li+1;d.reload_reason=b;c.Lj&&(d.unplugged_partner_opt_out=c.Lj);B2(a,d)}};
s2=function(a,b,c){for(var d in b)a[c+d]=b[d];return a};
Sna=function(){};
U2=function(a,b,c){return a[b]=a[b]||c};
Tna=function(a){for(var b=0;b<this.length;b++)if(this[b]===a)return b;return-1};
Una=function(a){a=a.sort();for(var b=[],c=void 0,d=0;d<a.length;d++){var e=a[d];e!=c&&b.push(e);c=e}return b};
V2=function(){var a;if((a=Object.create)&&Vna.test(a))a=a(null);else{a={};for(var b in a)a[b]=void 0}return a};
Xna=function(){var a=Wna.href;if(W2.dpo)var b=W2.h;else{b=W2.h;var c=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),d=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(a=a&&(c.exec(a)||d.exec(a)))try{b=(0,window.decodeURIComponent)(a[2])}catch(e){}}return b};
Yna=function(a){var b=U2(W2,"PQ",[]);W2.PQ=[];var c=b.length;if(0===c)a();else for(var d=0,e=function(){++d===c&&a()},f=0;f<c;f++)b[f](e)};
X2=function(a){return U2(U2(W2,"H",V2()),a,V2())};
Z2=function(a,b,c){b&&0<b.length&&(b=Zna(b),c&&0<c.length&&(b+="___"+Zna(c)),28<b.length&&(b=b.substr(0,28)+(b.length-28)),c=b,b=U2($na,"_p",V2()),U2(b,c,V2())[a]=(new Date).getTime(),b=Y2.r,"function"===typeof b?b(a,"_p",c):b.push([a,"_p",c]))};
Zna=function(a){return a.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/\,/g,"_")};
$2=function(a){throw Error("Bad hint"+(a?": "+a:""));};
eoa=function(a,b,c,d){var e=a.split(";"),f=e.shift(),k=aoa[f],l=null;k?l=k(e,b,c,d):$2("no hint processor for: "+f);l||$2("failed to generate load url");b=l;c=b.match(boa);(d=b.match(coa))&&1===d.length&&doa.test(b)&&c&&1===c.length||$2("failed sanity: "+a);return l};
ioa=function(a,b,c,d){function e(a){return(0,window.encodeURIComponent)(a).replace(/%2C/g,",")}
a=foa(a);goa.test(c)||$2("invalid_callback");b=hoa(b);d=d&&d.length?hoa(d):null;return[(0,window.encodeURIComponent)(a.wQ).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",e(a.version),"/m=",e(b),d?"/exm="+e(d):"","/rt=j/sv=1/d=1/ed=1",a.Au?"/am="+e(a.Au):"",a.xA?"/rs="+e(a.xA):"",a.yC?"/t="+e(a.yC):"","/cb=",e(c)].join("")};
foa=function(a){"/"!==a.charAt(0)&&$2("relative path");for(var b=a.substring(1).split("/"),c=[];b.length;){a=b.shift();if(!a.length||0==a.indexOf("."))$2("empty/relative directory");else if(0<a.indexOf("=")){b.unshift(a);break}c.push(a)}a={};for(var d=0,e=b.length;d<e;++d){var f=b[d].split("="),k=(0,window.decodeURIComponent)(f[0]),l=(0,window.decodeURIComponent)(f[1]);2==f.length&&k&&l&&(a[k]=a[k]||l)}b="/"+c.join("/");joa.test(b)||$2("invalid_prefix");c=0;for(d=koa.length;c<d;++c)koa[c].test(b)&&
$2("invalid_prefix");c=a3(a,"k",!0);d=a3(a,"am");e=a3(a,"rs");a=a3(a,"t");return{wQ:b,version:c,Au:d,xA:e,yC:a}};
hoa=function(a){for(var b=[],c=0,d=a.length;c<d;++c){var e=a[c].replace(/\./g,"_").replace(/-/g,"_");loa.test(e)&&b.push(e)}return b.join(",")};
a3=function(a,b,c){a=a[b];!a&&c&&$2("missing: "+b);if(a){if(moa.test(a))return a;$2("invalid: "+b)}return null};
noa=function(){var a=Xna();if(!a)throw Error("Bad hint");return a};
ooa=function(a,b){for(var c=[],d=0;d<a.length;++d){var e=a[d];e&&0>Tna.call(b,e)&&c.push(e)}return c};
qoa=function(){var a=W2.nonce;if(void 0!==a)return a&&a===String(a)&&a.match(poa)?a:W2.nonce=null;var b=U2(W2,"us",[]);if(!b||!b.length)return W2.nonce=null;for(var c=b3.getElementsByTagName(c3),d=0,e=c.length;d<e;++d){var f=c[d];if(f.src&&(a=String(f.nonce||f.getAttribute("nonce")||"")||null)){for(var k=0,l=b.length;k<l&&b[k]!==f.src;++k);if(k!==l&&a&&a===String(a)&&a.match(poa))return W2.nonce=a}}return null};
soa=function(a){if("loading"!=b3.readyState)roa(a);else{var b=qoa(),c="";null!==b&&(c=' nonce="'+b+'"');b3.write("<"+c3+' src="'+(0,window.encodeURI)(a)+'"'+c+"></"+c3+">")}};
roa=function(a){var b=b3.createElement(c3);b.setAttribute("src",a);a=qoa();null!==a&&b.setAttribute("nonce",a);b.async="true";(a=b3.getElementsByTagName(c3)[0])?a.parentNode.insertBefore(b,a):(b3.head||b3.body||b3.documentElement).appendChild(b)};
toa=function(a,b){var c=b&&b._c;if(c)for(var d=0;d<d3.length;d++){var e=d3[d][0],f=d3[d][1];f&&Object.prototype.hasOwnProperty.call(c,e)&&f(c[e],a,b)}};
voa=function(a,b,c){uoa(function(){var c=b===Xna()?U2(e3,"_",V2()):V2();c=U2(X2(b),"_",c);a(c)},c)};
f3=function(a,b){var c=b||{};"function"==typeof b&&(c={},c.callback=b);toa(a,c);var d=a?a.split(":"):[],e=c.h||noa(),f=U2(W2,"ah",V2());if(f["::"]&&d.length){for(var k=[],l=null;l=d.shift();){var m=l.split("."),m=f[l]||f[m[1]&&"ns:"+m[0]||""]||e,n=k.length&&k[k.length-1]||null,q=n;n&&n.hint==m||(q={hint:m,features:[]},k.push(q));q.features.push(l)}var r=k.length;if(1<r){var w=c.callback;w&&(c.callback=function(){0==--r&&w()})}for(;d=k.shift();)woa(d.features,c,d.hint)}else woa(d||[],c,e)};
woa=function(a,b,c){function d(a,b){if(r)return 0;g3.clearTimeout(q);w.push.apply(w,B);var d=((e3||{}).config||{}).update;d?d(f):f&&U2(W2,"cu",[]).push(f);if(b){Z2("me0",a,y);try{voa(b,c,n)}finally{Z2("me1",a,y)}}return 1}
a=Una(a)||[];var e=b.callback,f=b.config,k=b.timeout,l=b.ontimeout,m=b.onerror,n=void 0;"function"==typeof m&&(n=m);var q=null,r=!1;if(k&&!l||!k&&l)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";var m=U2(X2(c),"r",[]).sort(),w=U2(X2(c),"L",[]).sort(),y=[].concat(m);0<k&&(q=g3.setTimeout(function(){r=!0;l()},k));
var B=ooa(a,w);if(B.length){var B=ooa(a,m),D=U2(W2,"CP",[]),K=D.length;D[K]=function(a){function b(){var a=D[K+1];a&&a()}
function c(b){D[K]=null;d(B,a)&&Yna(function(){e&&e();b()})}
if(!a)return 0;Z2("ml1",B,y);0<K&&D[K-1]?D[K]=function(){c(b)}:c(b)};
if(B.length){var X="loaded_"+W2.I++;e3[X]=function(a){D[K](a);e3[X]=null};
a=eoa(c,B,"gapi."+X,m);m.push.apply(m,B);Z2("ml0",B,y);b.sync||g3.___gapisync?soa(a):roa(a)}else D[K](Sna)}else d(B)&&e&&e()};
uoa=function(a,b){if(W2.hee&&0<W2.hel)try{return a()}catch(c){b&&b(c),W2.hel--,f3("debug_error",function(){try{window.___jsl.hefn(c)}catch(d){throw c;}})}else try{return a()}catch(c){throw b&&b(c),c;
}};
g.i3=function(a){this.g=a||yG();h3||(h3=xoa(this.g))};
xoa=function(a){return(new g.Rf(function(b){try{var c={gapiHintOverride:a.gapiHintOverride,_c:{jsl:{h:a.gapiHintParams}},callback:b};b=c;b=void 0===b?{}:b;g.ua(b)&&(b={callback:b});b._c&&b._c.jsl&&b._c.jsl.h||g.ac(b,{_c:{jsl:{h:g.ND("GAPI_HINT_PARAMS",void 0)}}});c=b;if(c.gapiHintOverride||g.ND("GAPI_HINT_OVERRIDE")){var d=g.FE(window.document.location.href).gapi_jsh;d&&g.ac(c,{_c:{jsl:{h:d}}})}f3("client",c)}catch(e){g.qE(e)}})).then(function(){})};
yoa=function(a,b,c,d){var e={path:zG(a.g.innertubeApiVersion,b,c),headers:{"X-Goog-Visitor-Id":g.ND("VISITOR_DATA")},method:"POST",body:g.Lc(c)},f=(0,g.A)(a.B,a);h3.then(function(){f();g.x("gapi.client.request")(e).execute(d||g.z)})};
g.aa=[];ea="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)};
da="undefined"!=typeof window&&window===this?this:"undefined"!=typeof window.global&&null!=window.global?window.global:this;baa=0;
la("String.prototype.startsWith",function(a){return a?a:function(a,c){if(null==this)throw new TypeError("The 'this' value for String.prototype.startsWith must not be null or undefined");if(a instanceof RegExp)throw new TypeError("First argument to String.prototype.startsWith must not be a regular expression");var b=this+"";a+="";for(var e=b.length,f=a.length,k=Math.max(0,Math.min(c|0,b.length)),l=0;l<f&&k<e;)if(b[k++]!=a[l++])return!1;return l>=f}});
la("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}});
la("Promise",function(a){function b(a){this.g=0;this.B=void 0;this.o=[];var b=this.C();try{a(b.resolve,b.reject)}catch(l){b.reject(l)}}
function c(){this.g=null}
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 d=da.setTimeout;c.prototype.A=function(a){d(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(m){this.C(m)}}}this.g=null};
c.prototype.C=function(a){this.A(function(){throw a;})};
b.prototype.C=function(){function a(a){return function(d){c||(c=!0,a.call(b,d))}}
var b=this,c=!1;return{resolve:a(this.M),reject:a(this.D)}};
b.prototype.M=function(a){if(a===this)this.D(new TypeError("A Promise cannot resolve to itself"));else if(a instanceof b)this.O(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.K(a):this.F(a)}};
b.prototype.K=function(a){var b=void 0;try{b=a.then}catch(l){this.D(l);return}"function"==typeof b?this.P(b,a):this.F(a)};
b.prototype.D=function(a){this.G(2,a)};
b.prototype.F=function(a){this.G(1,a)};
b.prototype.G=function(a,b){if(0!=this.g)throw Error("Cannot settle("+a+", "+b|"): Promise already settled in state"+this.g);this.g=a;this.B=b;this.J()};
b.prototype.J=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 e=new c;b.prototype.O=function(a){var b=this.C();a.A(b.resolve,b.reject)};
b.prototype.P=function(a,b){var c=this.C();try{a.call(b,c.resolve,c.reject)}catch(m){c.reject(m)}};
b.prototype.then=function(a,c){function d(a,b){return"function"==typeof a?function(b){try{e(a(b))}catch(B){f(B)}}:b}
var e,f,k=new b(function(a,b){e=a;f=b});
this.A(d(a,e),d(c,f));return k};
b.prototype["catch"]=function(a){return this.then(void 0,a)};
b.prototype.A=function(a,b){function c(){switch(d.g){case 1:a(d.B);break;case 2:b(d.B);break;default:throw Error("Unexpected state: "+d.g);}}
var d=this;null==this.o?e.o(c):this.o.push(function(){e.o(c)})};
b.resolve=function(a){return a instanceof b?a:new b(function(b){b(a)})};
b.reject=function(a){return new b(function(b,c){c(a)})};
b.g=function(a){return new b(function(c,d){for(var e=g.ka(a),f=e.next();!f.done;f=e.next())b.resolve(f.value).A(c,d)})};
b.all=function(a){var c=g.ka(a),d=c.next();return d.done?b.resolve([]):new b(function(a,e){function f(b){return function(c){k[b]=c;l--;0==l&&a(k)}}
var k=[],l=0;do k.push(void 0),l++,b.resolve(d.value).A(f(k.length-1),e),d=c.next();while(!d.done)})};
b.$jscomp$new$AsyncExecutor=function(){return new c};
return b});
la("WeakMap",function(a){function b(a){this.Aa=(f+=Math.random()+1).toString();if(a){ca();ga();a=g.ka(a);for(var b;!(b=a.next()).done;)b=b.value,this.set(b[0],b[1])}}
function c(a){ma(a,e)||ea(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(!ma(a,e))throw Error("WeakMap key fail: "+a);a[e][this.Aa]=b;return this};
b.prototype.get=function(a){return ma(a,e)?a[e][this.Aa]:void 0};
b.prototype.has=function(a){return ma(a,e)&&ma(a[e],this.Aa)};
b.prototype["delete"]=function(a){return ma(a,e)&&ma(a[e],this.Aa)?delete a[e][this.Aa]:!1};
return b});
la("Map",function(a){function b(){var a={};return a.previous=a.next=a.head=a}
function c(a,b){var c=a.g;return ha(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&&ma(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,td:l}}return{id:c,list:d,index:-1,td:void 0}}
function e(a){this.o={};this.g=b();this.size=0;if(a){a=g.ka(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.ka([[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();ga();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.td?c.td.value=b:(c.td={next:this.g,previous:this.g.previous,head:this.g,key:a,value:b},c.list.push(c.td),this.g.previous.next=c.td,this.g.previous=c.td,this.size++);return this};
e.prototype["delete"]=function(a){a=d(this,a);return a.td&&a.list?(a.list.splice(a.index,1),a.list.length||delete this.o[a.id],a.td.previous.next=a.td.next,a.td.next.previous=a.td.previous,a.td.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).td};
e.prototype.get=function(a){return(a=d(this,a).td)&&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});
la("Set",function(a){function b(a){this.g=new window.Map;if(a){a=g.ka(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.ka([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();ga();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});
la("Reflect.apply",function(a){if(a)return a;var b=Function.prototype.apply;return function(a,d,e){return b.call(a,d,e)}});
la("Reflect.construct",function(a){return a?a:function(a,c,d){void 0===d&&(d=a);d=Object.create(d.prototype||Object.prototype);return window.Reflect.apply(a,d,c)||d}});
Gw=Gw||{};pa=this;wa="closure_uid_"+(1E9*Math.random()>>>0);caa=0;g.G=Date.now||function(){return+new Date};g.C(Ca,Error);Ca.prototype.name="CustomError";var $d;var Pa=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,xC={"\x00":"\\0",
"\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\x0B",'"':'\\"',"\\":"\\\\","<":"<"},wC={"'":"\\'"},Ma=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 zoa,Sd;g.db=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};
zoa=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.ye=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.I=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};
Sd=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.Ek=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.Ar=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 Aoa=pa.navigator;if(Aoa){var Boa=Aoa.userAgent;if(Boa){g.Gb=Boa;break a}}g.Gb=""};var Yb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");gc[" "]=g.z;var Coa,mi,en,fn,Doa,qi,j3;g.Ve=Hb("Opera");g.sc=Hb("Trident")||Hb("MSIE");g.KN=Hb("Edge");g.YO=g.KN||g.sc;g.dh=Hb("Gecko")&&!(Ka(g.Gb,"WebKit")&&!Hb("Edge"))&&!(Hb("Trident")||Hb("MSIE"))&&!Hb("Edge");g.ke=Ka(g.Gb,"WebKit")&&!Hb("Edge");Coa=g.ke&&Hb("Mobile");mi=Hb("Macintosh");g.O2=Hb("Windows");g.mn=Hb("Android");en=ec();fn=Hb("iPad");Doa=Hb("iPod");qi=fc();
a:{var k3="",l3=function(){var a=g.Gb;if(g.dh)return/rv\:([^\);]+)(\)|;)/.exec(a);if(g.KN)return/Edge\/([\d\.]+)/.exec(a);if(g.sc)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(g.ke)return/WebKit\/(\S+)/.exec(a);if(g.Ve)return/(?:Version)[ \/]?(\S+)/.exec(a)}();
l3&&(k3=l3?l3[1]:"");if(g.sc){var m3=ic();if(null!=m3&&m3>(0,window.parseFloat)(k3)){j3=String(m3);break a}}j3=k3}var jc=j3,xaa={},Eoa;var Foa=pa.document;Eoa=Foa&&g.sc?ic()||("CSS1Compat"==Foa.compatMode?(0,window.parseInt)(jc,10):5):void 0;var zaa=Eoa;var FO,EO,GO,ni;g.LN=Hb("Firefox");FO=ec()||Hb("iPod");EO=Hb("iPad");GO=Hb("Android")&&!(cc()||Hb("Firefox")||Hb("Opera")||Hb("Silk"));g.UE=cc();ni=dc()&&!fc();var oc=null,uc=null,nc=null;var zc=[];yc.prototype.clone=function(){return Ac(this.o,this.A,this.B-this.A)};
yc.prototype.clear=function(){this.o=null;this.g=this.B=this.A=0;this.C=!1};
yc.prototype.reset=function(){this.g=this.A};
yc.prototype.getError=function(){return this.C||0>this.g||this.g>this.B};Cc.prototype.getError=function(){return this.B||this.g.getError()};
Cc.prototype.reset=function(){this.g.reset();this.o=this.A=-1};var Hc=g.z,Oc={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},Caa=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;var Qc="function"==typeof window.Uint8Array,Rc=[];Pc.prototype.toString=function(){Xc(this);return this.o.toString()};
Pc.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.I)(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]}};
Pc.prototype.clone=function(){return new this.constructor(Yc(Wc(this)))};g.C(Zc,Pc);g.C($c,Pc);g.C(dd,Pc);var Gaa=[[9,10],[11,12],[18,19,20,21]];g.C(ed,Pc);var Haa=[[2,3]];g.C(fd,Pc);g.C(gd,Pc);g.C(hd,Pc);g.C(id,Pc);var Iaa=[[2,4,5]];g.C(jd,Pc);g.C(kd,Pc);g.C(ld,Pc);var Jaa=[1];g.C(Vc,Pc);g.C(bd,Pc);var Kaa=[[1,6,2,3,7]];window.console&&"function"===typeof window.console.log&&(0,g.A)(window.console.log,window.console);var Zaa,aba,bba;Zaa=!g.sc||g.lc(9);aba=!g.dh&&!g.sc||g.sc&&g.lc(9)||g.dh&&g.kc("1.9.1");g.Goa=g.sc&&!g.kc("9");bba=g.sc||g.Ve||g.ke;var Waa={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};nd.prototype.Zg=!0;nd.prototype.pg=function(){return this.g};
nd.prototype.toString=function(){return"Const{"+this.g+"}"};
var md={};pd("");rd.prototype.Zg=!0;var qd={};rd.prototype.pg=function(){return this.g};
var Uaa=sd(""),Taa=/^([-,."'%_!# a-zA-Z0-9]+|(?:rgb|hsl)a?\([0-9.%, ]+\))$/;var Laa=/<[^>]*>|&[^;]+;/g,Hoa=RegExp("[\u0591-\u06ef\u06fa-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc]"),Paa=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]"),Naa=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]"),Oaa=/^http:\/\/.*/,Maa=/\s+/,Qaa=/[\d\u06f0-\u06f9]/;wd.prototype.Zg=!0;wd.prototype.pg=function(){return this.g};
wd.prototype.Mq=!0;wd.prototype.Ni=function(){return 1};
var vd={};Ad.prototype.Zg=!0;Ad.prototype.pg=function(){return this.g};
Ad.prototype.Mq=!0;Ad.prototype.Ni=function(){return 1};
var Raa=/^(?:(?:https?|mailto|ftp):|[^&:/?#]*(?:[/?#]|$))/i,zd={};Cd("about:blank");g.Fd.prototype.Mq=!0;g.Fd.prototype.Ni=function(){return this.o};
g.Fd.prototype.Zg=!0;g.Fd.prototype.pg=function(){return this.g};
var Kd=/^[a-zA-Z0-9-]+$/,Vaa={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},Ioa={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},Ed={};Hd("<!DOCTYPE html>",0);Hd("",0);Hd("<br>",0);g.h=g.Td.prototype;g.h.clone=function(){return new g.Td(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.oa(b)?b:a;this.x*=a;this.y*=c;return this};g.h=g.Wd.prototype;g.h.clone=function(){return new g.Wd(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.oa(b)?b:a;this.width*=a;this.height*=c;return this};var ee={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=Yd.prototype;g.h.pa=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.pG=function(a,b,c){return me(this.g,arguments)};
g.h.createElement=function(a){return this.g.createElement(String(a))};
g.h.appendChild=g.re;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.we;g.h.contains=g.De;var pf=!g.sc||g.lc(9),Joa=g.sc&&!g.kc("9");!g.ke||g.kc("528");g.dh&&g.kc("1.9b")||g.sc&&g.kc("8")||g.Ve&&g.kc("9.5")||g.ke&&g.kc("528");g.dh&&!g.kc("8")||g.sc&&g.kc("9");g.M.prototype.Za=!1;g.M.prototype.na=function(){return this.Za};
g.M.prototype.dispose=function(){this.Za||(this.Za=!0,this.V())};
g.M.prototype.V=function(){if(this.Sa)for(;this.Sa.length;)this.Sa.shift()()};g.Te.prototype.stopPropagation=function(){this.o=!0};
g.Te.prototype.preventDefault=function(){this.yA=!1};var Koa={Bo:"click",wZ:"rightclick",uV:"dblclick",PX:"mousedown",VX:"mouseup",UX:"mouseover",TX:"mouseout",SX:"mousemove",QX:"mouseenter",RX:"mouseleave",CZ:"selectionchange",DZ:"selectstart",E0:"wheel",nX:"keypress",mX:"keydown",oX:"keyup",DU:"blur",sW:"focus",vV:"deactivate",tW:g.sc?"focusin":"DOMFocusIn",uW:g.sc?"focusout":"DOMFocusOut",VU:"change",mZ:"reset",BZ:"select",l_:"submit",WW:"input",dZ:"propertychange",ZV:"dragstart",UV:"drag",WV:"dragenter",YV:"dragover",XV:"dragleave",bW:"drop",VV:"dragend",
E_:"touchstart",D_:"touchmove",C_:"touchend",B_:"touchcancel",BU:"beforeunload",hV:"consolemessage",kV:"contextmenu",IV:"devicemotion",JV:"deviceorientation",OV:"DOMContentLoaded",ERROR:"error",IW:"help",LOAD:"load",HX:"losecapture",EY:"orientationchange",iZ:"readystatechange",nZ:"resize",yZ:"scroll",Z_:"unload",KU:"canplay",LU:"canplaythrough",cW:"durationchange",gW:"emptied",ENDED:"ended",xX:"loadeddata",yX:"loadedmetadata",PAUSE:"pause",PLAY:"play",PLAYING:"playing",hZ:"ratechange",zZ:"seeked",
AZ:"seeking",YZ:"stalled",m_:"suspend",s_:"timeupdate",x0:"volumechange",B0:"waiting",WZ:"sourceopen",VZ:"sourceended",UZ:"sourceclosed",qT:"abort",e0:"update",h0:"updatestart",f0:"updateend",BW:"hashchange",HY:"pagehide",IY:"pageshow",WY:"popstate",mV:"copy",KY:"paste",rV:"cut",wU:"beforecopy",xU:"beforecut",zU:"beforepaste",BY:"online",yY:"offline",MESSAGE:"message",gV:"connect",YW:"install",rT:"activate",qW:"fetch",vW:"foreignfetch",NX:"messageerror",b_:"statechange",g0:"updatefound",lV:"controllerchange",
mU:We("AnimationStart"),kU:We("AnimationEnd"),lU:We("AnimationIteration"),H_:We("TransitionEnd"),PY:"pointerdown",VY:"pointerup",OY:"pointercancel",SY:"pointermove",UY:"pointerover",TY:"pointerout",QY:"pointerenter",RY:"pointerleave",AW:"gotpointercapture",IX:"lostpointercapture",aY:"MSGestureChange",bY:"MSGestureEnd",cY:"MSGestureHold",dY:"MSGestureStart",eY:"MSGestureTap",fY:"MSGotPointerCapture",gY:"MSInertiaStart",hY:"MSLostPointerCapture",iY:"MSPointerCancel",jY:"MSPointerDown",kY:"MSPointerEnter",
lY:"MSPointerHover",mY:"MSPointerLeave",nY:"MSPointerMove",oY:"MSPointerOut",pY:"MSPointerOver",qY:"MSPointerUp",TEXT:"text",p_:g.sc?"textinput":"textInput",eV:"compositionstart",fV:"compositionupdate",dV:"compositionend",yU:"beforeinput",nW:"exit",vX:"loadabort",wX:"loadcommit",zX:"loadredirect",AX:"loadstart",BX:"loadstop",rZ:"responsive",OZ:"sizechanged",b0:"unresponsive",w0:"visibilitychange",g_:"storage",TV:"DOMSubtreeModified",PV:"DOMNodeInserted",RV:"DOMNodeRemoved",SV:"DOMNodeRemovedFromDocument",
QV:"DOMNodeInsertedIntoDocument",MV:"DOMAttrModified",NV:"DOMCharacterDataModified",AU:"beforeprint",aU:"afterprint"};g.C(Xe,g.Te);
Xe.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.dh&&(hc(e,"nodeName")||(e=null)):"mouseover"==c?e=a.fromElement:"mouseout"==c&&(e=a.toElement);this.relatedTarget=e;null===d?(this.B=g.ke||void 0!==a.offsetX?a.offsetX:a.layerX,this.C=g.ke||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()};
Xe.prototype.stopPropagation=function(){Xe.aa.stopPropagation.call(this);this.g.stopPropagation?this.g.stopPropagation():this.g.cancelBubble=!0};
Xe.prototype.preventDefault=function(){Xe.aa.preventDefault.call(this);var a=this.g;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,Joa)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var cba;g.Ye="closure_listenable_"+(1E6*Math.random()|0);cba=0;af.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=bf(e,b,c,d);return-1<b?($e(e[b]),g.jb(e,b),0==e.length&&(delete this.listeners[a],this.g--),!0):!1};var mf="closure_lm_"+(1E6*Math.random()|0),tf={},of=0,wf="__closure_events_fn_"+(1E9*Math.random()>>>0);g.C(g.xf,g.M);g.xf.prototype[g.Ye]=!0;g.h=g.xf.prototype;g.h.sh=function(a){this.Na=a};
g.h.addEventListener=function(a,b,c,d){g.hf(this,a,b,c,d)};
g.h.removeEventListener=function(a,b,c,d){g.rf(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.oc;d=a.type||a;if(g.u(a))a=new g.Te(a,b);else if(a instanceof g.Te)a.target=a.target||b;else{var e=a;a=new g.Te(d,b);g.ac(a,e)}var e=!0;if(c)for(var f=c.length-1;!a.o&&0<=f;f--){var k=a.currentTarget=c[f];e=yf(k,d,!0,a)&&e}a.o||(k=a.currentTarget=b,e=yf(k,d,!0,a)&&e,a.o||(e=yf(k,d,!1,a)&&e));if(c)for(f=0;!a.o&&f<c.length;f++)k=a.currentTarget=c[f],e=yf(k,d,!1,a)&&e;return e};
g.h.V=function(){g.xf.aa.V.call(this);this.xe&&g.ef(this.xe);this.Na=null};
g.h.X=function(a,b,c,d){return cf(this.xe,String(a),b,!1,c,d)};
g.h.za=function(a,b,c,d){return this.xe.remove(String(a),b,c,d)};zf.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 Ef;var Lf=new zf(function(){return new Hf},function(a){a.reset()},100);
Gf.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};
Hf.prototype.set=function(a,b){this.g=a;this.scope=b;this.next=null};
Hf.prototype.reset=function(){this.next=this.scope=this.g=null};var If,Jf=!1,Kf=new Gf;Sf.prototype.reset=function(){this.context=this.o=this.B=this.g=null;this.A=!1};
var Tf=new zf(function(){return new Sf},function(a){a.reset()},100);
g.Rf.prototype.then=function(a,b,c){return bg(this,g.ua(a)?a:null,g.ua(b)?b:null,c)};
Of(g.Rf);g.Rf.prototype.cancel=function(a){0==this.g&&g.Mf(function(){var b=new hg(a);dg(this,b)},this)};
g.Rf.prototype.J=function(a){this.g=0;Qf(this,2,a)};
g.Rf.prototype.K=function(a){this.g=0;Qf(this,3,a)};
g.Rf.prototype.G=function(){for(var a;a=eg(this);)fg(this,a,this.g,this.F);this.D=!1};
var jg=Df;g.C(hg,Ca);hg.prototype.name="cancel";g.C(g.kg,g.xf);g.h=g.kg.prototype;g.h.enabled=!1;g.h.Be=null;g.h.nG=function(){if(this.enabled){var a=(0,g.G)()-this.B;0<a&&a<.8*this.o?this.Be=this.g.setTimeout(this.A,this.o-a):(this.Be&&(this.g.clearTimeout(this.Be),this.Be=null),this.dispatchEvent("tick"),this.enabled&&(this.Be=this.g.setTimeout(this.A,this.o),this.B=(0,g.G)()))}};
g.h.start=function(){this.enabled=!0;this.Be||(this.Be=this.g.setTimeout(this.A,this.o),this.B=(0,g.G)())};
g.h.stop=function(){this.enabled=!1;this.Be&&(this.g.clearTimeout(this.Be),this.Be=null)};
g.h.V=function(){g.kg.aa.V.call(this);this.stop();delete this.g};var Loa={};g.h=pg.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=Pa(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.Cb=function(){return qg(this).keys};
g.h.fb=function(){return qg(this).values};
g.h.isEmpty=function(){return!this.g.cookie};
g.h.Nc=function(){return this.g.cookie?(this.g.cookie||"").split(";").length:0};
g.h.clear=function(){for(var a=qg(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
var tH=new pg("undefined"==typeof window.document?null:window.document);tH.o=3950;var rba=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/,Fg=/#|$/,sba=/[?&]($|#)/;Jg.prototype.remove=function(a){Ub(this.g,a)};
Jg.prototype.set=function(a,b){this.g[a]=b};
Jg.prototype.get=function(a){return Vb(this.g,a,null)};g.h=g.Lg.prototype;g.h.Eb=function(){return this.right-this.left};
g.h.getHeight=function(){return this.bottom-this.top};
g.h.clone=function(){return new g.Lg(this.top,this.right,this.bottom,this.left)};
g.h.contains=function(a){return this&&a?a instanceof g.Lg?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.va(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.oa(b)?b:a;this.left*=a;this.right*=a;this.top*=c;this.bottom*=c;return this};g.h=g.Ng.prototype;g.h.clone=function(){return new g.Ng(this.left,this.top,this.width,this.height)};
g.h.contains=function(a){return a instanceof g.Td?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.oa(b)?b:a;this.left*=a;this.width*=a;this.top*=c;this.height*=c;return this};var Yg=null;Ug.prototype.getValue=function(){return this.g};
Ug.prototype.o=function(){return String(this.g)};
g.C(Vg,Ug);Vg.prototype.o=function(){return this.g?"1":"0"};
g.C(Wg,Ug);Wg.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 ch={};new g.kg(200);var Hh,Noa,Eh;g.Gh=Ch("loadGamesSDK")?"/cast_game_sender.js":"/cast_sender.js";g.Moa=Ch("loadCastFramework")||Ch("loadCastApplicationFramework");Hh=["boadgeojelhgndaghljhdicfkmllpafd","dliochdbjfkdbacpmhlcpmleaejidimm","enhhojjnijigcajfphajepfemndkmdlo","fmfcbgogabcbclcofgocippekhfcmgfj"];Noa=["pkedcjkdefgpdelpbcmbmeomcjbeemfm","fjhoaacokmgbjemoflkofnenfaiekifl"];Eh=50<=g.Bh()?Noa.concat(Hh):Hh.concat(Noa);var n3=Lh("f"),xv=Lh("i"),o3=Lh("b"),ov=Lh("e"),pv=Lh("s");var ai=window.document,Xh=window;var Jca=/https?:\/\/[^\/]+/;var Sh=function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
pa.addEventListener("test",null,b)}catch(c){}return a}();var Zh=!!window.google_async_iframe_id,$h=Zh&&window.parent||window;var Bba=[0,2,1],ci=null;window.document.addEventListener&&window.document.addEventListener("mousedown",function(a){ci=a},!0);
window.mb=function(a){if(a){var b=di();b&&(window.css?(0,window.css)(a.id,"mb",b,void 0,void 0):a&&(a.href=Oh(a.href,"mb",b,void 0)))}};ei.prototype.enable=function(){this.g=!0};
ei.prototype.isEnabled=function(){return this.g};
ei.prototype.reset=function(){this.g=!0};var gi={},hi=null;gi.le=0;gi.nt=2;gi.Fr=3;gi.Po=5;gi.me=1;gi.om=4;var p3=!1,q3="";
(function(){if(window.navigator.plugins&&window.navigator.plugins.length){var a=window.navigator.plugins["Shockwave Flash"];if(a&&(p3=!0,a.description)){q3=ji(a.description);return}if(window.navigator.plugins["Shockwave Flash 2.0"]){p3=!0;q3="2.0.0.11";return}}if(window.navigator.mimeTypes&&window.navigator.mimeTypes.length&&(a=window.navigator.mimeTypes["application/x-shockwave-flash"],p3=!(!a||!a.enabledPlugin))){q3=ji(a.enabledPlugin.description);return}try{var b=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");p3=
!0;q3=ji(b.GetVariable("$version"));return}catch(c){}try{b=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");p3=!0;q3="6.0.21";return}catch(c){}try{b=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash"),p3=!0,q3=ji(b.GetVariable("$version"))}catch(c){}})();
var ao=p3,oi=q3;var ri=function(){if(g.O2){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.Gb))?a[1]:"0"}return mi?(a=/10[_.][0-9_.]+/,(a=a.exec(g.Gb))?a[0].replace(/_/g,"."):"10"):g.mn?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.Gb))?a[1]:""):en||fn||Doa?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.Gb))?a[1].replace(/_/g,"."):""):""}();var Cba=function(){if(g.LN)return ki(/Firefox\/([0-9.]+)/);if(g.sc||g.KN||g.Ve)return jc;if(g.UE)return fc()?ki(/CriOS\/([0-9.]+)/):ki(/Chrome\/([0-9.]+)/);if(ni&&!fc())return ki(/Version\/([0-9.]+)/);if(FO||EO){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.Gb);if(a)return a[1]+"."+a[2]}else if(GO)return(a=ki(/Android\s+([0-9.]+)/))?a:ki(/Version\/([0-9.]+)/);return""}();var Ooa={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},Yk={lu:"start",Pt:"firstquartile",Vt:"midpoint",ru:"thirdquartile",It:"complete",YD:"metric",PAUSE:"pause",xE:"resume",gu:"skip",xu:"viewable_impression",cE:"mute",WE:"unmute",Qt:"fullscreen",tD:"exitfullscreen",Rt:"fully_viewable_audible_half_duration_impression",Ut:"measurable_impression",zC:"abandon",Mt:"engagedview",Bl:"impression",iD:"creativeview",Io:"loaded",bZ:"progress",CLOSE:"close",YU:"collapse",kE:"overlay_resize",
lE:"overlay_unmeasurable_impression",mE:"overlay_unviewable_impression",oE:"overlay_viewable_immediate_impression",nE:"overlay_viewable_end_of_session_impression"},Sca="start firstquartile midpoint thirdquartile resume loaded".split(" "),nca=["abandon"],Zk={UNKNOWN:-1,lu:0,Pt:1,Vt:2,ru:3,It:4,YD:5,PAUSE:6,xE:7,gu:8,xu:9,cE:10,WE:11,Qt:12,tD:13,Rt:14,Ut:15,zC:16,Mt:17,Bl:18,iD:19,Io:20};ti.prototype.isVisible=function(){return this.A?.3<=this.g:.5<=this.g};var bk=0,Eba=(new Date).getTime(),yi=-1,Ai=!1,Bi=-1,Ci=-1;g.C(Ji,ti);Li.prototype.update=function(a,b,c,d,e,f){e=Ni(c.g);var k=Ni(b.g);k=-1==e||-1==k?-1:Math.max(e,k);e=d?k:e;this.B=-1!=this.B?Math.min(this.B,b.g):b.g;f&&(this.oa=Math.max(this.oa,b.g));-1!=e&&(this.Za[e]+=a);Mi(this.ha,e,a);f=this.W;k=this.ha;for(var l=[0,0,0,0,0],m=0;4>=m;m++)l[m]=Math.max(f[m],k[m]);this.W=l;f=this.ha;k=Ni(b.g);for(l=0;4>=l;++l)if(l<k||b.C||-1==k)f[l]=0;if(d?c.isVisible()&&b.isVisible():c.isVisible())this.K+=a,this.Sa=Math.max(this.Sa,this.K);b.isVisible()||(this.K=0);return e};var sga={Y_:0,uY:1,pZ:2,mW:3,u_:4,yW:5,GX:6,qZ:7,vU:8};g.h=Yi.prototype;g.h.oj=function(){this.D&&(0,g.H)(this.events,this.gv,this);this.events.length=0;this.o=!1};
g.h.Ln=function(a){this.o&&this.events.push(a)};
g.h.gv=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 Xi(a,b,Zi());this.D&&this.g.performance.mark("goog_"+c.uniqueId+"_start");return c};
g.h.end=function(a){this.o&&(a.duration=Zi()-a.value,this.D&&this.g.performance.mark("goog_"+a.uniqueId+"_end"),this.Ln(a))};$i.prototype.o=function(a,b,c,d,e){e=e||this.D;try{var f=new Pi;f.C=!0;Ti(f,1,"context",a);b.error&&b.meta&&b.id||(b=aj(b));b.msg&&Ti(f,2,"msg",b.msg.substring(0,512));b.file&&Ti(f,3,"file",b.file);0<b.line&&Ti(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=wi();l.o&&Ti(f,6,"top",l.o.url||"");Ti(f,7,"url",l.g.url||"");Wi(this.B,e,f,c)}catch(m){try{Wi(this.B,e,{context:"ecmserr",rctx:a,msg:fj(m),url:l.g.url},c)}catch(n){}}return this.A};
g.p(ej,Oi);var cj,r3=bi(),s3=new Yi(1,r3);cj=new $i(new function(){this.B="http:"===Xh.location.protocol?"http:":"https:";this.o="pagead2.googlesyndication.com";this.A="/pagead/gen_204?id=";this.g=.01},"jserror",!0,s3);
"complete"==r3.document.readyState?r3.google_measure_js_timing||s3.oj():s3.o&&Th(r3,"load",function(){r3.google_measure_js_timing||s3.oj()});
var Iba=cj.o;kj.prototype.getStatus=function(){return this.o};
g.C(nj,kj);var tj={X_:-1,LOADING:0,AD:1,eD:2,lX:3,VISIBLE:4},Qba={LOADING:0,AD:1,eD:2,y_:3,zY:4,J_:5,K_:6,I_:7,CY:8,x_:9},wj={};pj.prototype.G=function(a,b){if(!this.g)return!1;this.g.style.position="absolute";qj(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";qj(this,b);var c=!0;try{g.ue(this.g,a)}catch(d){c=!1}return c};
pj.prototype.remove=function(){if(this.g)try{g.we(this.g)}catch(a){}this.g=null};
pj.prototype.J=function(a){this.A=a?3:4};
g.v("gteh",ij(145,function(a,b){var c=wj[a];g.ua(c)&&c(b)}),void 0);
g.C(yj,kj);var Wba=[3,7,8,5,5],Xba=[3,4,4,5,6],Yba=[3,4,5,6],Zba=[3,5];zj.prototype.B=function(a){this.g&&this.g.contentWindow&&(this.g.contentWindow.requestAnimationFrame(dj(245,this.B,this,void 0)),this.o||(this.o=(0,g.G)()-a),this.A=a)};
zj.prototype.isVisible=function(a){return 50>a-this.o-this.A};
zj.prototype.remove=function(){try{g.we(this.g)}catch(a){}this.g=null};if(ai&&ai.URL){var Rh=ai.URL,Poa=!(Rh&&0<Aba().length);cj.A=Poa};g.qa(Cj);g.qa(Dj);var Ej=new g.Lg(0,0,0,0),hca={threshold:[0,.3,.5,.75,1]};g.h=Fj.prototype;g.h.Hm=function(){return new Li};
g.h.Ae=function(){return this.wc};
g.h.Bx=g.z;g.h.Ax=g.z;g.h.rw=g.z;g.h.mo=g.z;
g.h.ag=function(a,b,c,d,e,f,k){var l=k||{};k=this.hw(c,l);l=this.qp(a,b,d,l);g.oa(b)||(this.Ra=new g.Wd(b.right-b.left,b.bottom-b.top));this.Ls(k,l,e&&.5<=this.g.g,f);this.O=c;0<l.g&&-1===this.Gg&&(this.Gg=c);-1==this.Hg&&Kj(this)&&(this.Hg=c);if(-2==this.uc)try{a:{var m=g.oa(b)?null:b;if(a&&a!=Ej&&0!=this.Qc){if(!m){if(!this.Ra){var n=-1;break a}m=new g.Lg(0,this.Ra.width,this.Ra.height,0)}n=m.Eb&&0<m.Eb()&&m.getHeight&&0<m.getHeight()?this.Vj(a,m):-1}else n=-1}this.uc=n}catch(q){jj(207,q)}this.g=
l;d&&(this.g.g=0);this.Dc(this)};
g.h.Ls=function(a,b,c,d){this.Ae().update(a,b,this.g,c,.5,d)};
g.h.Wp=function(){return new ti};
g.h.qp=function(a,b,c){var d=this.Wp();d.C=c;c=fi();d.o=0==c?-1:1==c?0:1;if(g.oa(b))d.g=this.Vj(b);else{var e=b;d.g=this.Vj(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.D=a;d.A=!1;return d};
g.h.hw=function(a){if(-1==this.O)return 0;a=a-this.O||1;return 1E4<a?1:a};
g.h.Vj=function(a,b){if(g.oa(a))return a;if(b){var c=Gj(a,b);return 0>=this.Qc||0>=c.Eb()||0>=c.getHeight()?0:(c.bottom-c.top)*(c.right-c.left)/this.Qc}return 0};
g.h.Zo=function(a){if(this.B)return!0;if(this.sa)return!1;this.ka=a||1;if(!this.G||!pi())return this.sa=!0,!1;a=new nj(!1,this.ka);var b=Jba(a,this.G,String(this.wi));b?this.B=a:this.sa=!0;return b};
g.h.Wg=function(){return 0};
g.h.ws=function(a){if(!this.G)return!1;a=a||1;var b=new yj(!1,a),c=Tba(b,this.G);c&&(this.ka=a,this.fa=b);return c};Oj.prototype.Ea=function(a){var b=this.g[a],c=b[1];this.A+=b[0];0<c&&0==this.o[a]&&(this.o[a]=1)};g.qa(Qj);g.C(Rj,Li);Rj.prototype.update=function(a,b,c,d,e,f){if(b.paused)return-1;d=Rj.aa.update.call(this,a,b,c,d,e,f);e=Ni(e);e=-1!=d&&d<=e;f=Ki(b)&&Ki(c);Ii(b.volume)&&(this.g=-1!=this.g?Math.min(this.g,b.volume):b.volume,this.A=Math.max(this.A,b.volume));e&&(this.ca+=a,this.da+=a);this.o+=a;this.ba+=a;c.B&&(this.ka+=a,this.O+=a);0==d&&(this.P+=a);f&&(this.ga+=a,this.F+=a,Mi(this.fa,d,a),0==d&&(this.D+=a),e?(this.G+=a,this.J+=a):this.M+=a,this.ra=Math.max(this.M,this.ra));if(e||!Ki(b))this.M=0;return d};g.C(Tj,Fj);g.h=Tj.prototype;g.h.ws=function(a){Dj.getInstance();var b=Qj.getInstance(),c=g.eb(b.g,509445011);return g.eb(b.g,509445013)||c?(this.Eg=!0,Tj.aa.ws.call(this,a||3)):!1};
g.h.Zo=function(a){return Tj.aa.Zo.call(this,a||3)};
g.h.Bx=function(a){if(!this.Rd||1E3<a-this.sf){var b=g.x("ima.bridge.getNativeViewability");g.ua(b)&&(b(this.C,(0,g.A)(this.EG,this)),this.Rd=!0,this.sf=a)}};
g.h.Ax=function(a){var b=Dj.getInstance();a-this.rf>Di(b.J)&&(a=g.x("ima.admob.getViewability"),g.ua(a)&&a(this.C))};
g.h.EG=function(a){this.Rd=!1;this.ua&&(this.he=!0);g.Tb(a)&&this.Dd++;this.mo(a)};
g.h.rw=function(a){this.rf=zi();this.mo(a)};
g.h.mo=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.Hb=!!f);b=new g.Lg(b.top||0,b.left+b.width||0,b.top+b.height||0,b.left||0);c=a?Ej.clone():new g.Lg(c.top||0,c.left+c.width||0,c.top+c.height||0,c.left||0);f=void 0;"n"==this.K&&(f={},f.volume=e);this.Qc=(b.bottom-b.top)*(b.right-b.left);this.position=b;this.ag(b,c,d,!1,!0,!0,f)};
g.h.ag=function(a,b,c,d,e,f,k){var l=this.qb(this)||{};g.ac(l,k||{});this.M=l.duration||this.M;this.Yb=l.isVpaid||this.Yb;this.rb=f;Tj.aa.ag.call(this,a,b,c,d,e,f,l)};
g.h.Ls=function(a,b,c,d){Tj.aa.Ls.call(this,a,b,c,d);this.oa[this.oa.length-1].update(a,b,this.g,c,.5,d);this.Ub=Ki(this.g)&&Ki(b);-1==this.Oa&&this.je&&(this.Oa=this.Ae().o);this.A.A=0;a=this.g;b=Kj(this);.5<=a.g&&this.A.Ea("vs");b&&this.A.Ea("vw");Ii(a.volume)&&this.A.Ea("am");this.Ub&&this.A.Ea("a");this.D&&this.A.Ea("f");-1!=a.o&&(this.A.Ea("bm"),1==a.o&&this.A.Ea("b"));this.Ub&&b&&this.A.Ea("avw");this.rb&&this.A.Ea("cm");this.rb&&0<a.g&&this.A.Ea("pv");Wj(this,this.Ae().o,!0)&&this.A.Ea("gdr")};
g.h.Hm=function(){return new Rj};
g.h.Ae=function(){return this.wc};
g.h.Wp=function(){return new Ji};
g.h.qp=function(a,b,c,d){a=Tj.aa.qp.call(this,a,b,c,d);a.B=this.D;a.paused=this.P;a.volume=d.volume;Ii(a.volume)||(this.Ig++,d=this.g,Ii(d.volume)&&(a.volume=d.volume));return a};
g.h.hw=function(a,b){var c=g.t(b.currentTime)?b.currentTime:this.Za,d=Vj(this,a),e=c-this.Za,f=b.isYouTube,k=g.t(b.isPlaying)?b.isPlaying:!0,l=0;2!=this.Ja?(0<=e?(this.Fa+=d,this.ha+=Math.max(d-e,0),l=Math.min(e,this.Fa)):this.Cd+=Math.abs(e),0!=e&&(this.Fa=0),-1==this.Sa&&0<e&&(this.Sa=0<=Ci?zi()-Ci:-1)):(k||this.P||(this.ha+=d),-1==this.Sa&&k&&(this.Sa=0<=Ci?zi()-Ci:-1));this.Za=c;if(f){if(1==this.Ja)return l;if(2==this.Ja)return k?d:0}return Vj(this,a)};
g.h.Vj=function(a,b){return this.ua?0:this.D?1:Tj.aa.Vj.call(this,a,b)};
g.h.Wg=function(){return 1};var Ow=null,rga={8:"google_prev_ad_formats_by_region",9:"google_prev_ad_slotnames_by_region"};g.Qoa=!g.sc&&!dc();g.C(g.dk,g.M);g.h=g.dk.prototype;g.h.Ej=!1;g.h.Wk=0;g.h.Rh=null;g.h.Vi=function(a){this.g=arguments;this.Rh||this.Wk?this.Ej=!0:ek(this)};
g.h.stop=function(){this.Rh&&(g.ng(this.Rh),this.Rh=null,this.Ej=!1,this.g=[])};
g.h.pause=function(){this.Wk++};
g.h.resume=function(){this.Wk--;this.Wk||!this.Ej||this.Rh||(this.Ej=!1,ek(this))};
g.h.V=function(){g.dk.aa.V.call(this);this.stop()};
g.h.FP=function(){this.Rh=null;this.Ej&&!this.Wk&&(this.Ej=!1,ek(this))};var jk=null,lk=null,mk=null,ok=null,Ck=null,ik=!1,Dk=[],Gk=[],xk=!1,yk=null,wk=0,uk=fk()||gk(),tca=0;var Sk=null,ul="",tl=!1;var Rk={sv:"sv",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",tos:"tos",mtos:"mtos",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"},Nca={c:Jk("c"),at:"at",atos:Mk("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:Lk(),j:"dom",mtos:Mk("mtos",[0,2,4]),gmm:"gmm",gdr:"gdr",ss:Jk("ss"),vsv:Bf("w2"),t:"t"},Qca={atos:"atos",avt:Mk("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:Jk("ss"),t:"t"},Oca={a:"a",tos:Lk(),at:"at",c:Jk("c"),mtos:Mk("mtos",[0,2,4]),dur:"dur",fs:"fs",p:"p",vpt:"vpt",vsv:Bf("ias_w2"),dom:"dom",gmm:"gmm",gdr:"gdr",t:"t"},Pca={tos:Lk(),at:"at",c:Jk("c"),mtos:Mk("mtos",[0,2,4]),p:"p",vpt:"vpt",vsv:Bf("dv_w4"),gmm:"gmm",gdr:"gdr",dom:"dom",t:"t",mv:"mv",qmpt:Mk("qmtos",
[0,2,4]),qvs:function(a,b){return function(c){var d=c[a];if(g.oa(d))return(0,g.I)(b,function(a){return 0<d&&d>=a?1:0})}}("qnc",[1,
.5,0]),qmv:"qmv",qa:"qas",a:"a"};g.h=Nk.prototype;g.h.Jm=function(){};
g.h.xw=g.z;g.h.qA=g.z;g.h.bv=g.z;g.h.Eu=g.z;g.h.jq=function(a){window.clearTimeout(yk);yk=null;ul=a;xk=!0};
g.h.Aw=function(a){a&&(Tk(a,"fp"),a.da=!0,this.ms(a))};
g.h.jH=function(a){Xj(a,0);return Zj(a,"start")};
g.h.gH=function(a,b){sk([a],!ak(),b);return Zj(a,"progress")};
g.h.XG=function(a,b){return Uk(a,"firstquartile",1,b)};
g.h.cH=function(a,b){a.je=!0;return Uk(a,"midpoint",2,b)};
g.h.kH=function(a,b){return Uk(a,"thirdquartile",3,b)};
g.h.TG=function(a,b){var c=Uk(a,"complete",4,b);a.D=!1;Wk(1,a.C);return c};
g.h.fH=function(a,b){return Vk(a,"pause",b)};
g.h.SG=function(a,b){return Vk(a,"abandon",b)};
g.h.hH=function(a,b){var c=ak();a.P&&!c&&(a.Ae().C=zi());sk([a],!c,b);a.P=!1;return Zj(a,"resume")};
g.h.mH=function(a){return Zj(a,"viewable_impression")};
g.h.iH=function(a,b){var c=!ak();sk([a],c,b);c=Zj(a,"skip");a.D=!1;Wk(1,a.C);return c};
g.h.dH=function(a,b){sk([a],!ak(),b);return Zj(a,"mute")};
g.h.lH=function(a,b){sk([a],!ak(),b);return Zj(a,"unmute")};
g.h.YG=function(a,b){a.D=!0;sk([a],!ak(),b);return Zj(a,"fullscreen")};
g.h.WG=function(a,b){a.D=!1;sk([a],!ak(),b);return Zj(a,"exitfullscreen")};
g.h.ZG=function(a){return Zj(a,"fully_viewable_audible_half_duration_impression")};
g.h.bH=function(a){return Zj(a,"measurable_impression")};
g.h.VG=function(a){return Zj(a,"engagedview")};
g.h.aH=function(a){return Zj(a,"impression")};
g.h.UG=function(a){return Zj(a,"creativeview")};
g.h.eH=function(a,b){sk([a],!ak(),b);return a.o()};
g.h.pq=function(a,b){sk([a],!ak(),b);Wk(2,a.C);return a.o()};
g.h.Qm=function(a){Kj(a)&&!a.Ah&&this.qA(a);this.bv(a)};
g.h.ms=g.z;var dl=(new Date).getTime(),fl=!1,gl=!1,hl=!1,Fca=[function(a){return!(!a.chrome||!a.chrome.webstore)},
function(a){return!!a.document.documentMode},
function(a){return!!a.document.fonts.ready},
function(){return el(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 el(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 el(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 el(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 el(4)},
function(a){return"srcset"in a.document.createElement("img")},
function(){return gl},
function(){return hl},
function(){return el(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 el(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]||cl(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 cl(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 el(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 cl(a.CSS.supports)},
function(){return cl(window.Intl.Collator)},
function(a){return cl(a.document.createElement("dialog").show)},
function(){return el(8)},
function(a){return cl(a.document.createElement("div").animate([{transform:"scale(1)",RF:"ease-in"},{transform:"scale(1.3)",RF:"ease-in"}],{duration:1300,X0:1}).reverse)},
function(a){return cl(a.document.createElement("div").animate)},
function(a){return cl(a.document.documentElement.webkitRequestFullScreen)},
function(a){return cl(a.navigator.getBattery)},
function(a){return cl(a.navigator.permissions.query)},
function(){return!1},
function(){return el(9)},
function(){return cl(window.webkitRequestAnimationFrame)},
function(a){return cl(a.BroadcastChannel.call)},
function(a){return cl(a.FontFace)},
function(a){return cl(a.Gamepad)},
function(){return el(10)},
function(a){return cl(a.MutationEvent)},
function(a){return cl(a.MutationObserver)},
function(a){return cl(a.crypto.getRandomValues)},
function(a){return cl(a.document.body.createShadowRoot)},
function(a){return cl(a.document.body.webkitCreateShadowRoot)},
function(a){return cl(a.fetch)},
function(){return el(11)},
function(a){return cl(a.navigator.serviceWorker.register)},
function(a){return cl(a.navigator.webkitGetGamepads)},
function(a){return cl(a.speechSynthesis.speak)},
function(a){return cl(a.webkitRTCPeerConnection)},
function(a){return a.CSS.supports("--fake-var","0")},
function(){return el(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 el(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 el(14)},
function(a){return"undefined"==typeof a.navigator.d1},
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")}],Gca=[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}],Hca=[function(a){return a.navigator.userAgent},
function(a){return a.navigator.platform},
function(a){return a.navigator.vendor}];g.C(il,qba);il.prototype.reset=function(){this.g[0]=1732584193;this.g[1]=4023233417;this.g[2]=2562383102;this.g[3]=271733878;this.B=this.A=0};
il.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;)jl(this,a,f),f+=this.o;if(g.u(a))for(;f<b;){if(d[e++]=a.charCodeAt(f++),e==this.o){jl(this,d);e=0;break}}else for(;f<b;)if(d[e++]=a[f++],e==this.o){jl(this,d);e=0;break}}this.A=e;this.B+=b};
il.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;for(var c=8*this.B,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.C(nl,Nk);g.qa(nl);g.h=nl.prototype;g.h.Jm=function(a,b){switch(Dj.getInstance().g){case "nis":var c=Fk(a);c||(c=ol(this,a,"n",b.opt_nativeTime||-1),c.ua=Dj.getInstance().G);break;case "gsv":(c=Fk(a))||(c=ol(this,a,"m",b.opt_nativeTime||-1));break;case "exc":(c=Fk(a))||(c=ol(this,a,"h",-1));break;default:b.opt_adElement?c=Cca(this,a,b.opt_adElement):(c=Lca(this,a,b.opt_sdkID||""))||(c=Fk(a)||void 0)}c&&c.qb==g.z&&(c.qb=(0,g.A)(this.Eu,this));return c};
g.h.Eu=function(a){var b=Dj.getInstance();a.o=0;a.Na=0;if("as"==a.K)if(b="getVideoMetadata"+a.yj,g.ua(a.element[b]))try{var c=a.element[b]()}catch(e){a.o|=4}else a.o|=2;else if("h"==a.K||"n"==a.K)if(b=g.x("exc"==b.g||"nis"==b.g?"ima.bridge.getVideoMetadata":"ima.common.getVideoMetadata"),g.ua(b))try{c=b(a.C)}catch(e){a.o|=4}else a.o|=2;else a.o|=1;a.o||(g.t(c)?null===c?a.o|=16:g.Tb(c)?a.o|=32:null!=c.errorCode&&(a.Na=c.errorCode,a.o|=64):a.o|=8);null!=c||(c={});b=c;a.ra=0;for(var d in Ooa)null==b[d]&&
(a.ra|=Ooa[d]);bl(b,"currentTime");bl(b,"duration");Ii(c.volume)&&Ii(this.B)&&(c.volume*=this.B);return c};
g.h.qA=function(a){ql(a,"viewable_impression")&&(a.Ah=!0)};
g.h.bv=function(a){Wj(a,a.Ae().fa[0])&&!a.qf&&ql(a,"fully_viewable_audible_half_duration_impression")&&(a.qf=!0)};
g.h.xw=function(a){a.zh||a.da||this.A||!ql(a,"measurable_impression")||(a.zh=!0)};
g.h.Qm=function(a){this.A?wl(this,a):nl.aa.Qm.call(this,a)};
g.h.ms=function(a){this.A&&1==a.Wg()&&wl(this,a)};
g.v("Goog_AdSense_Lidar_sendVastEvent",ij(193,vl,void 0,function(){return{v:"581","if":Dj.getInstance().A?"1":"0",nas:String(Dk.length)}}),void 0);
g.v("Goog_AdSense_Lidar_getViewability",dj(194,function(a,b){var c=nl.getInstance();var d={};g.ac(d,{opt_adElement:void 0,opt_fullscreen:void 0},b||{});if(d.opt_bounds)c=sl(c,al("ol"),!1);else{if(tl)d=al("ue");else if(d=c.Jm(a,d)){var e=al();g.ac(e,Yj(d,!0,!1));d=e}else d=al("nf");c=sl(c,d,!0)}return c},void 0,void 0),void 0);
g.v("Goog_AdSense_Lidar_getUrlSignalsArray",ij(195,function(){return ml()}),void 0);
g.v("Goog_AdSense_Lidar_getUrlSignalsList",ij(196,function(){return g.Lc(ml())}),void 0);
g.v("Goog_AdSense_Lidar_addExperimentId",dj(249,xl,void 0,void 0),void 0);var PA=(new Date).getTime();var Cl="StopIteration"in pa?pa.StopIteration:{message:"StopIteration",stack:""};Bl.prototype.next=function(){throw Cl;};
Bl.prototype.Sd=function(){return this};g.h=Fl.prototype;g.h.Nc=function(){return this.La};
g.h.fb=function(){Il(this);for(var a=[],b=0;b<this.g.length;b++)a.push(this.o[this.g[b]]);return a};
g.h.Cb=function(){Il(this);return this.g.concat()};
g.h.isEmpty=function(){return 0==this.La};
g.h.clear=function(){this.o={};this.xh=this.La=this.g.length=0};
g.h.remove=function(a){return Gl(this.o,a)?(delete this.o[a],this.La--,this.xh++,this.g.length>2*this.La&&Il(this),!0):!1};
g.h.get=function(a,b){return Gl(this.o,a)?this.o[a]:b};
g.h.set=function(a,b){Gl(this.o,a)||(this.La++,this.g.push(a),this.xh++);this.o[a]=b};
g.h.forEach=function(a,b){for(var c=this.Cb(),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 Fl(this)};
g.h.Sd=function(a){Il(this);var b=0,c=this.xh,d=this,e=new Bl;e.next=function(){if(c!=d.xh)throw Error("The map has changed since the iterator was created");if(b>=d.g.length)throw Cl;var e=d.g[b++];return a?e:d.o[e]};
return e};g.h=g.Ll.prototype;g.h.toString=function(){var a=[],b=this.B;b&&a.push(Tl(b,Roa,!0),":");var c=this.o;if(c||"file"==b)a.push("//"),(b=this.G)&&a.push(Tl(b,Roa,!0),"@"),a.push(g.Fa(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(Tl(c,"/"==c.charAt(0)?Soa:Toa,!0));(c=this.g.toString())&&a.push("?",c);(c=this.Oh())&&a.push("#",Tl(c,Uoa));return a.join("")};
g.h.resolve=function(a){var b=this.clone(),c=!!a.B;c?Ml(b,a.B):c=!!a.G;c?b.G=a.G:c=!!a.o;c?g.Nl(b,a.o):c=null!=a.C;var d=a.A;if(c)g.Ol(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(Ja(e,"./")||Ja(e,"/.")){for(var d=g.Da(e,"/"),e=e.split("/"),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.Pl(b,d):c=""!==a.g.toString();c?Ql(b,a.g.clone()):c=!!a.J;c&&(b.J=a.Oh());return b};
g.h.clone=function(){return new g.Ll(this)};
g.h.dw=function(){return this.g.toString()};
g.h.Oh=function(){return this.J};
var Roa=/[#\/\?@]/g,Toa=/[\#\?:]/g,Soa=/[\#\?]/g,Yca=/[\#\?@]/g,Uoa=/#/g;g.h=g.Sl.prototype;g.h.Nc=function(){$l(this);return this.La};
g.h.remove=function(a){$l(this);a=bm(this,a);return Hl(this.g,a)?(this.o=null,this.La=this.La-this.g.get(a).length,this.g.remove(a)):!1};
g.h.clear=function(){this.g=this.o=null;this.La=0};
g.h.isEmpty=function(){$l(this);return 0==this.La};
g.h.forEach=function(a,b){$l(this);this.g.forEach(function(c,d){(0,g.H)(c,function(c){a.call(b,c,d,this)},this)},this)};
g.h.Cb=function(){$l(this);for(var a=this.g.fb(),b=this.g.Cb(),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.fb=function(a){$l(this);var b=[];if(g.u(a))cm(this,a)&&(b=g.nb(b,this.g.get(bm(this,a))));else{a=this.g.fb();for(var c=0;c<a.length;c++)b=g.nb(b,a[c])}return b};
g.h.set=function(a,b){$l(this);this.o=null;a=bm(this,a);cm(this,a)&&(this.La=this.La-this.g.get(a).length);this.g.set(a,[b]);this.La=this.La+1;return this};
g.h.get=function(a,b){var c=a?this.fb(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.Cb(),c=0;c<b.length;c++)for(var d=b[c],e=g.Fa(d),d=this.fb(d),f=0;f<d.length;f++){var k=e;""!==d[f]&&(k+="="+g.Fa(d[f]));a.push(k)}return this.o=a.join("&")};
g.h.clone=function(){var a=new g.Sl;a.o=this.o;this.g&&(a.g=this.g.clone(),a.La=this.La);return a};var Um={KD:5E3,LD:15E3,uE:"://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(" "),vE:/\bocr\b/,Ap:0,xg:{},hR:function(a,b,c){a&&(Um.qI(a)?Um.KA(a,b):Um.GA(a,b,c))},
qI:function(a){return E(g.F(a))?!1:0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")||(new g.Ll(a)).Oh().match(Um.vE)?!0:null!=g.$a(Um.uE,function(b){return null!=a.match(b)})},
KA:function(a,b){if(a&&(a=Um.hG(a),!E(a))){var c='javascript:"<body><img src=\\""+'+a+'+"\\"></body>"';b?Um.kx(function(b){Um.EA(b?c:'javascript:"<body><object data=\\""+'+a+'+"\\" width=1 height=1 style=\\"visibility:hidden;\\"></body>"')}):Um.EA(c)}},
EA:function(a){var b=g.ne("IFRAME",{src:a,style:"display:none"});a=g.Zd(b).body;var c=g.mg(function(){g.sf(d);g.we(b)},Um.LD);
var d=qf(b,["load","error"],function(){g.mg(function(){g.ng(c);g.we(b)},Um.KD)});
a.appendChild(b)},
kx:function(a,b){var c=Um.xg.imageLoadingEnabled;if(null!=c)a(c);else{var d=!1,c=function(b,c){delete Um.xg[c];d||(d=!0,null!=Um.xg.imageLoadingEnabled||(Um.xg.imageLoadingEnabled=b),a(b))};
b?b(c):Um.DI(c)}},
DI:function(a){var b=new window.Image,c=""+Um.Ap++;Um.xg[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=="},
gR:function(a){if(a){var b=g.pe("OBJECT");b.data=a;b.width="1";b.height="1";b.style.visibility="hidden";var c=""+Um.Ap++;Um.xg[c]=b;b.onload=b.onerror=function(){delete Um.xg[c]};
window.document.body.appendChild(b)}},
FA:function(a){if(a){var b=new window.Image,c=""+Um.Ap++;Um.xg[c]=b;b.onload=b.onerror=function(){delete Um.xg[c]};
b.src=a}},
GA:function(a,b,c){if(a){if(c)try{if(pa.navigator&&pa.navigator.sendBeacon&&pa.navigator.sendBeacon(a,""))return}catch(d){}b?Um.kx(function(b){b?Um.FA(a):Um.gR(a)}):Um.FA(a)}},
hG:function(a){a=Bd(Dd(a));if("about:invalid#zClosurez"===a)return"";a=g.Gd(Jd(a));return g.Fa(g.Lc(a))}};g.C(g.dm,g.M);var gm=[];g.dm.prototype.X=function(a,b,c,d){return em(this,a,b,c,d)};
g.dm.prototype.za=function(a,b,c,d,e){if(g.sa(b))for(var f=0;f<b.length;f++)this.za(a,b[f],c,d,e);else c=c||this.handleEvent,e=e||this.B||this,c=jf(c),d=!!d,b=g.Ze(a)?ff(a.xe,String(b),c,d,e):a?(a=g.lf(a))?ff(a,b,c,d,e):null:null,b&&(g.sf(b),delete this.o[b.key]);return this};
g.dm.prototype.V=function(){g.dm.aa.V.call(this);km(this)};
g.dm.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};g.C(lm,g.M);lm.prototype.F=function(){this.B=(0,g.G)()};
lm.prototype.J=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.mh(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("&"))};
lm.prototype.G=function(){this.C++};
lm.prototype.V=function(){lm.aa.V.call(this);this.g.dispose()};var bda=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var nm="ad_type vpos mridx pos vad_type videoad_start_delay".split(" ");pm.prototype.isBumper=function(){return this.o};g.h=qm.prototype;g.h.Rp=function(){return this.g.Rp()};
g.h.mk=function(){return this.g.mk()};
g.h.Bf=function(){return this.g.Bf()};
g.h.Sm=function(a){return this.Tf?this.g.sq():this.g.Sm(a)};
g.h.setSize=function(a,b){this.g.setSize(a,b)};
g.h.Ep=function(){return this.g.Ep()};
g.h.Tm=function(){return this.g.Tm()};
g.h.uq=function(){return this.g.uq()};
g.h.Um=function(){return this.g.Um()};
g.h.hide=g.z;g.h.rg=g.z;g.h.od=g.z;g.h.sq=function(){return this.g.sq()};
g.h.tq=g.z;g.C(rm,g.Te);rm.prototype.getError=function(){return this.A};var iy="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(" "),t3="abandon acceptinvitation acceptinvitationlinear click close collapse companionClick complete creativeview endscreenClick engagedview exitfullscreen expand externalActivityEvent 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(" "),
Voa="acceptinvitation click close collapse creativeview expand progress".split(" "),u3="viewable_impression measurable_impression overlay_unmeasurable_impression overlay_unviewable_impression overlay_viewable_immediate_impression overlay_viewable_end_of_session_impression externalActivityEvent".split(" "),v3={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.C(sm,g.Te);sm.prototype.Ob=function(){return this.A};
var Lga={tT:"adCanPlay",iV:"contentPauseRequested",jV:"contentResumeRequested",Bo:"click",r0:"videoClicked",t0:"videoIconClicked",Mt:"engagedview",oW:"expandedChanged",a_:"start",Bl:"impression",Ut:"measurable_impression",xu:"viewable_impression",Rt:"fully_viewable_audible_half_duration_impression",kE:"overlay_resize",lE:"overlay_unmeasurable_impression",mE:"overlay_unviewable_impression",oE:"overlay_viewable_immediate_impression",nE:"overlay_viewable_end_of_session_impression",pW:"externalActivityEvent",
PAUSED:"pause",sZ:"resume",Pt:"firstquartile",Vt:"midpoint",ru:"thirdquartile",It:"complete",dW:"durationChange",rU:"autoClose",k0:"userClose",l0:"userRecall",YY:"prefetched",Io:"loaded",iU:"allAdsCompleted",gu:"skip",FE:"skipshown",uX:"linearChanged",RZ:"skippableStateChanged",uT:"adMetadata",sT:"adBreakReady",FX:"log",VOLUME_CHANGED:"volumeChange",z0:"mute",fX:"interaction",ZU:"companionBackfill",O0:"youTubeVideoMetadata",M0:"youTubeChannelMetadata",j0:"urlNavigationRequested",G_:"trackingUrlPinged",
n0:"video_card_endcap_action",o0:"video_card_endcap_collapse",p0:"video_card_endcap_dismiss",q0:"video_card_endcap_impression",J0:"why_this_ad_url",I0:"why_this_ad_got_it",sY:"MUTE_AD",cV:"companionInitialized",bV:"companionImpression",aV:"companionClick",MX:"mediaUrlPinged",N0:"youtubeKevlarCompanionShow"};wm.prototype.g=function(){return this.ba};
wm.prototype.getPlayerType=function(){return""};
var P=new wm;var Woa={NORMAL:"normal",Qt:"fullscreen"};var Gs=["ADSENSE","ADSENSE/ADX"],gfa=["DART","DART_DFA","DART_DFP"],rfa=["FREEWHEEL","YT:FREEWHEEL"],Mr=["SHOPPING","YT:SHOPPING"],Qr=["GDFP"],ffa=["VIRAL","ADSENSE-VIRAL"],efa=["VIRAL-RESERVE"],vp={"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"},Au={tV:"application/dash+xml",XX:"video/mp4",
ZX:"video/mpeg",JX:"application/x-mpegURL",AY:"video/ogg",q_:"video/3gpp",C0:"video/webm",WX:"audio/mpeg",YX:"audio/mp4"};g.C(xm,g.Te);g.C(ym,Error);ym.prototype.ud=function(){return this.B};
ym.prototype.Lb=function(){return this.o};
ym.prototype.bc=function(){return this.C};
ym.prototype.toString=function(){return"AdError "+this.Lb()+": "+this.ud()+(null!=this.wk?" Caused by: "+this.wk:"")};zm.prototype.g=function(){return!1};
zm.prototype.o=function(){return window.NaN};
zm.prototype.A=function(){return""};Am.prototype.getId=function(){return this.Aa};Bm.prototype.getId=function(){return this.Aa};var lda=["ActiveViewExternalLayer"],Em=null;var aea=["*.googlesyndication.com","gcdn.2mdn.net"],nda=["*.youtu.be","*.youtube.com"],qda="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(" "),pda=["c.googlesyndication.com"],
iia=["googleads.g.doubleclick.net","pubads.g.doubleclick.net"];Wm.prototype.Lb=function(){return this.errorCode};
Wm.prototype.ud=function(){return this.message};
var tia=new Wm("Unable to request ads from server. Cause: {0}.",1005),jia=new Wm("Unable to request ads from server due to network error.",1012),Zy=new Wm("Cannot parse the {0} value for the adslist response: {1}.",900),xu=new Wm("Invalid usage of the API. Cause: {0}",900),Vga=new Wm("Asset fallback ad replacement.",1021),Wga=new Wm("Asset fallback no ad replacement.",1021),w3=new Wm("Unable to display one or more required companions.",602),wB=new Wm("There was a problem requesting ads from the server.",
1005),Xoa=new Wm("There was a problem requesting the biscotti ID.",1005),hia=new Wm("Ad tag URI {0} is invalid. It must be properly encoded before being passed.",1013),$A=new Wm("The provided ad type: {0} is not supported.",1005),Wn=new Wm("The provided {0} information: {1} is invalid.",1101),Yoa=new Wm("The provided skip offset was invalid.",1105),Zoa=new Wm("The extension contained is neither skippable nor nonskippable.",1105),nq=new Wm("The response does not contain any valid ads.",1009),$oa=new Wm("The overlay ad content could not be displayed since creative dimensions do not align with display area.",
501),gha=new Wm("The ad playlist response was malformed or empty.",1010),$y=new Wm("The ad response was not understood and cannot be parsed.",1010),mia=new Wm("An unexpected error occurred and the cause is not known. Refer to the inner error for more info.",900),via=new Wm("The ad response contains unexpected element. Cause {0}.",1010),MB=new Wm("No assets were found in the VAST ad response.",200),Xea=new Wm("Duplicate node in <{0}>: {1}",101),FA=new Wm("The VAST response document is empty.",1009),
Jga=new Wm("Linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",403),mq=new Wm("Ad request reached a timeout.",301),GA=new Wm("VAST response was malformed and could not be parsed.",100),x3=new Wm("VAST media file loading reached a timeout of {0} seconds.",402),oq=new Wm("Ad request could not be completed due to a network error.",301),apa=new Wm("Non linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",
503),bpa=new Wm("There was an error displaying the media file.",405),pea=new Wm("The maximum number of VAST wrappers ({0}) has been reached.",302),cpa=new Wm("VAST media file duration differs from the VAST response duration by {0} seconds.",202),Dx=new Wm("Video player received an ad with unexpected or incompatible linearity",201),Wea=new Wm("Unknown node in <{0}>: {1}",101),hga=new Wm("Invalid VAST resource type: {0}",101),Iha=new Wm("Invalid VAST version",102),qea=new Wm("No additional VAST wrappers allowed.",
300),tq=new Wm("No Ads VAST response after one or more Wrappers",303),Jx=new Wm("There was an error playing the video ad.",400),dpa=new Wm("VMAP unsupported node in <{0}>: {1}",1010),lw=new Wm("An unexpected error occurred within the VPAID creative. Refer to the inner error for more info.",901);g.C(cn,g.Te);var Tz="abort canplay canplaythrough durationchange emptied loadstart loadeddata loadedmetadata progress ratechange seeked seeking stalled suspend waiting".split(" ");var pn={},rn="",kn=/OS (\S+) like/,epa=/OS X (\S+)\)/,nn=/Android ([\d\.]+)/;wn.prototype.reset=function(){this.g=0;this.o=null};var fpa;
fpa={sD:["BC","AD"],rD:["Before Christ","Anno Domini"],eE:"JFMAMJJASOND".split(""),IE:"JFMAMJJASOND".split(""),Yt:"January February March April May June July August September October November December".split(" "),hu:"January February March April May June July August September October November December".split(" "),eu:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),iu:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),yu:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),ku:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
fu:"Sun Mon Tue Wed Thu Fri Sat".split(" "),ju:"Sun Mon Tue Wed Thu Fri Sat".split(" "),tY:"SMTWTFS".split(""),JE:"SMTWTFS".split(""),BE:["Q1","Q2","Q3","Q4"],tE:["1st quarter","2nd quarter","3rd quarter","4th quarter"],Et:["AM","PM"],Co:["EEEE, MMMM d, y","MMMM d, y","MMM d, y","M/d/yy"],tu:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],mD:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],Eo:6,aF:[5,6],Fo:5};g.y3=fpa;g.y3=fpa;yn.prototype.clone=function(){return new yn(this.C,this.B,this.days,this.g,this.o,this.A)};
yn.prototype.times=function(a){return new yn(this.C*a,this.B*a,this.days*a,this.g*a,this.o*a,this.A*a)};
g.h=g.Bn.prototype;g.h.wm=g.y3.Eo;g.h.ym=g.y3.Fo;g.h.clone=function(){var a=new g.Bn(this.date);a.wm=this.wm;a.ym=this.ym;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.Lm=function(a,b){return[this.getFullYear(),g.Na(this.getMonth()+1,2),g.Na(this.getDate(),2)].join(a?"-":"")+(b?g.Cn(this):"")};
g.h.toString=function(){return this.Lm()};
g.h.valueOf=function(){return this.date.valueOf()};Dn.prototype.reset=function(){this.o=this.g=null};var Jn=new Fn;Fn.prototype.clear=function(){this.g=En();this.C=this.K=this.o=null;this.B=En();this.A=null;this.ba=this.F=this.J="";this.G=this.W=this.D=null;this.ca=!1};g.qa(In);In.prototype.isLoggingEnabled=function(){return this.g};g.h=Nn.prototype;g.h.oF=!1;g.h.Hu=!1;g.h.Mu=!0;g.h.Ci=null;g.h.bitrate=-1;g.h.contentId=null;g.h.Fv=!1;g.h.mimeTypes=null;g.h.surveyCreativeData=null;g.h.QR=!0;g.h.Ps=!1;g.h.RR=!1;g.h.Qs=!1;g.h.Rs=!1;g.h.oB=!1;g.h.pB=!0;g.h.SF=!1;g.h.SR=!0;g.h.fp=!1;g.h.NF=!1;g.h.dS=0;g.h.showContentThumbnail=!0;g.h.Os=!1;g.h.sj=null;g.h.cf=8E3;g.h.Nu=!0;g.h.hA=0;g.h.Wr=-1;g.h.Iw=null;g.h.Uf=-1;g.h.shortViewCount=null;g.C(On,g.xf);var Sz={CU:"beginFullscreen",Bo:"click",hW:"end",iW:"endFullscreen",ERROR:"error",Io:"loaded",LX:"mediaLoadTimeout",PAUSE:"pause",PLAY:"play",QZ:"skip",FE:"skipShown",JZ:"shareClicked",lu:"start",t_:"timeUpdate",NU:"cardsStateChange",r_:"timedMetadata",y0:"volumeChange"};g.h=On.prototype;g.h.Qw=function(){return!1};
g.h.wb=function(){return!0};
g.h.os=g.z;g.h.Sw=g.z;g.h.yq=g.z;g.h.ze=function(){return null};
g.h.Bq=g.z;g.h.Aq=g.z;g.C(Pn,g.xf);var Qn=null;Pn.prototype.Cj=function(a){this.A=a};
Pn.prototype.destroy=function(){this.J.za(this.o,"activityMonitor",this.M);this.o=null};
Pn.prototype.M=function(a){var b=a.Lf;switch(a.Md){case "appStateChanged":Rca(nl.getInstance(),b.appState,b.nativeTime);break;case "externalActivityEvent":Un(b.queryId,b.viewabilityString,b.eventName);break;case "measurableImpression":Sn(b.queryId,b.viewabilityString);break;case "pageSignals":this.K=b.pageSignals;break;case "viewableImpression":Tn(b.queryId,b.viewabilityString);break;case "engagementData":b=b.engagementString;Rn().B=b;Rn().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=nl.getInstance(),e=b.queryId,b=b.viewabilityData;a=Dj.getInstance();if("exc"==a.g){d.B=b.nativeVolume;var c=b.coverage||0,f=b.unmeasurable,d=d.Jm(e,{});-1==d.Bb&&(d.Bb=zi(),d.yh=d.Ae().o);d.zb+=f?1:0;d.Dg++;d.Pe[Ni(c)]++;e=b.insideIframe;g.t(e)&&0==e&&(a.A=!1);d.da=f||d.da;b.position&&Hj(d,Xh,a.A,new g.Lg(b.position.top,b.position.right,b.position.bottom,b.position.left));b.documentSize&&(a.B=
new g.Wd(b.documentSize.width,b.documentSize.height));b.viewportSize&&(a.o=new g.Wd(b.viewportSize.width,b.viewportSize.height));d.g.g=g.Pd(c,0,1);d.oc=d.g.g}break;case "engagement":a=b.eventId,window.clearTimeout(a),c=this.g.get(a),In.getInstance().isLoggingEnabled()&&(f=-1,this.D&&(f=(0,g.G)()-this.D),d=!1,c||(d=!0),Qb(b,"loggingId")&&Ln(In.getInstance(),43,{step:"receivedResponse",time:(0,g.G)(),timeout:d,logid:b.loggingId,timediff:f})),c&&(this.g.remove(a),c(b.engagementString))}};
g.v("ima.bridge.getNativeViewability",function(a,b){Rn();b({})},void 0);
g.v("ima.bridge.getVideoMetadata",function(){var a=Rn().F;return g.ua(a)?a():{}},void 0);
g.v("ima.bridge.triggerViewEvent",Tn,void 0);g.v("ima.bridge.triggerMeasurableEvent",Sn,void 0);g.v("ima.bridge.triggerExternalActivityEvent",Un,void 0);var wda={MD:"Image",yD:"Flash",ALL:"All"},vda={PW:"Html",TW:"IFrame",c_:"Static",ALL:"All"},xda={UW:"IgnoreSize",EZ:"SelectExactMatch",FZ:"SelectNearMatch"},yda={LV:"DisallowResize",oZ:"ResizeSmaller"};g.C(go,g.xf);var ho=null;g.h=go.prototype;g.h.destroy=function(){this.D.za(this.g,"activityMonitor",this.Lw);this.A=!1;this.o.clear()};
g.h.V=function(){this.destroy();go.aa.V.call(this)};
g.h.init=function(a){if(!this.A){if(this.g=a||null)this.D.X(this.g,"activityMonitor",this.Lw),no(this);P.J&&Cda();P.o||P.g()||(nl.getInstance().A=!0);this.C=(g.ua(null),null);this.A=!0;a=mda();(0,g.H)(a,function(a){xl(a)})}};
g.h.Cj=function(a){this.B=a};
g.h.Lw=function(a){var b=a.Lf,c=b.queryId,d={};d.eventId=b.eventId;switch(a.Md){case "getPageSignals":no(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=lo(this,e,c,a,f);this.g.send("activityMonitor","viewability",d);break;case "fetchAdTagUrl":d={},d.eventId=b.eventId,a=b.osdId,c=null,Qb(b,"isFullscreen")&&(c=b.isFullscreen),Qb(b,"loggingId")&&(b=b.loggingId,d.loggingId=b,Ln(In.getInstance(),
43,{step:"beforeLookup",logid:b,time:(0,g.G)()},!0)),d.engagementString=Dda(this,a,c),this.g.send("activityMonitor","engagement",d)}};
g.v("ima.common.getVideoMetadata",function(a){a=io().o.get(a);return g.ua(a)?a():{}},void 0);
g.v("ima.common.triggerViewEvent",function(a,b){var c={};c.queryId=a;c.viewabilityString=b;var d=io().g;d?d.send("activityMonitor","viewableImpression",c):io().dispatchEvent(new sm("viewable_impression",null,c))},void 0);
g.v("ima.common.triggerViewabilityMeasurementUpdate",function(a,b){var c=io().g,d={};d.queryId=a;d.viewabilityData=b;c&&c.send("activityMonitor","viewabilityMeasurement",d)},void 0);
g.v("ima.common.triggerMeasurableEvent",function(a,b){var c={};c.queryId=a;c.viewabilityString=b;var d=io().g;d?d.send("activityMonitor","measurableImpression",c):io().dispatchEvent(new sm("measurable_impression",null,c))},void 0);
g.v("ima.common.triggerExternalActivityEvent",function(a,b,c){var d={};d.queryId=a;d.viewabilityString=b;d.eventName=c;(a=io().g)?a.send("activityMonitor","externalActivityEvent",d):io().dispatchEvent(new sm("externalActivityEvent",null,d))},void 0);
g.v("ima.common.updateEngagementDetectionValue",function(a){if(P.J){var b=io().g;if(b){var c={};c.engagementString=a;b.send("activityMonitor","engagementData",c)}}},void 0);
io();g.C(oo,g.Te);oo.prototype.getError=function(){return this.g};po.prototype.hd=function(){return this.F};
po.prototype.Hc=function(){return this.g};
po.prototype.clone=function(){var a=new po(this.J,this.G);if(null!=this.g)qo(a,this.Hc(),this.B,this.o,this.D);else{var b=this.hd(),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.C(so,g.Te);to.prototype.videoCount=0;g.sc&&g.kc(8);g.uo.prototype.o=ud;var Go={},Uo={},Vo={},Qp={};wo.prototype.kg=null;wo.prototype.hd=function(){return this.content};
wo.prototype.toString=function(){return this.content};
g.C(xo,wo);xo.prototype.xf=Qp;g.C(yo,wo);yo.prototype.xf=Go;g.C(zo,wo);zo.prototype.xf={};zo.prototype.kg=1;g.C(Ao,wo);Ao.prototype.xf=Uo;Ao.prototype.kg=1;g.C(Bo,wo);Bo.prototype.xf=Vo;Bo.prototype.kg=1;g.C(Co,wo);Co.prototype.xf={};Co.prototype.kg=1;g.C(Do,wo);Do.prototype.xf={};Do.prototype.kg=1;var Ho=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.kg=d);return c}}(yo);
Io(zo);Io(Ao);Io(Bo);var Lda=Io(Co);Io(Do);var Jo={},Ko={},cr=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.kg=d);return c}}(yo),So=/['()]/g,ap={},Mda={"\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;"},Nda={"\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"},Fda=/[\x00\x22\x27\x3c\x3e]/g,Hda=/[\x00\x09-\x0d \x22\x26\x27\x2d\/\x3c-\x3e`\x85\xa0\u2028\u2029]/g,Gda=/[\x00\x09-\x0d \x22\x27\x2d\/\x3c-\x3e`\x85\xa0\u2028\u2029]/g,Xo=/[\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,
Jda=/^(?![^#?]*\/(?:\.|%2E){2}(?:[\/?#]|$))(?:(?:https?|mailto):|[^&:\/?#]*(?:[\/?#]|$))/i,Kda=/^[^&:\/?#]*(?:[\/?#]|$)|^https?:|^data:image\/[a-z0-9+]+;base64,[a-z0-9+\/]+=*$|^blob:/i,No=/<(?:!|\/?([a-zA-Z][a-zA-Z0-9:\-]*))(?:[^>'"]|"[^"]*"|'[^']*')*>/g,Oo=/</g;ep.prototype.bc=function(){return this.A};
g.C(fp,ep);dp.prototype.isEmpty=function(){return this.g.isEmpty()};g.h=mp.prototype;g.h.getDuration=function(){return this.Sa};
g.h.Jq=function(){return null};
g.h.Iq=function(){return null};
g.h.Hq=function(){return null};
g.h.Ob=function(){return this.J};
g.h.Em=function(){for(var a=[this],b=this.J.o;b;){var c=pp(this,b)||pp(this,b,!0);null!=c&&a.push(c);b=b.o}return a};qp.prototype.Eb=function(){return this.D};
qp.prototype.getHeight=function(){return this.C};g.C(rp,mp);g.h=rp.prototype;g.h.Ze=function(){return this.B};
g.h.Sg=function(){return this.o};
g.h.Tg=function(){return null!=this.C?this.C.o:null};
g.h.Jq=function(){var a=tp(this,"javascript");return null!=a?a.o:null};
g.h.Iq=function(){var a=up(this);return null!=a?a.o:null};
g.h.Hq=function(){return null!=this.C?this.C.A:1==this.o.length?this.o[0].A:null};g.C(wp,mp);g.h=wp.prototype;g.h.hd=function(){return Ge(this.Hc())};
g.h.vk=function(){return!1};
g.h.Kq=function(){return this.vk()?Ge(this.Hc(!0)):""};
g.h.jd=function(){return this.da};
g.h.af=function(){return this.Ja};
g.h.Eb=function(){return this.af().width};
g.h.getHeight=function(){return this.af().height};
g.h.Tg=function(){return this.A};
g.h.Jq=function(){return"VPAID"==this.K&&"Javascript"==this.da?this.A:null};
g.h.Iq=function(){return"VPAID"==this.K&&"Flash"==this.da?this.A:null};
g.h.Hq=function(){return this.K};
g.h.Ze=function(){return this.oa};g.C(xp,g.M);xp.prototype.F=function(){this.D=(0,g.G)()};
xp.prototype.J=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.CF);if(8==(this.o&8)){var d=g.mh(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=di())&&(this.g.mb=d);"A"==c.tagName.toUpperCase()&&g.Nd(c,Uda(this,c.href))};
xp.prototype.G=function(){this.B++};var Vda=g.sc?'javascript:""':"about:blank";g.C(yp,wp);g.h=yp.prototype;g.h.zi=function(a){null==this.o||E(g.F(this.Ze()))||(this.o.X(a,"click",this.ba),this.ca.push(a))};
g.h.Hc=function(a){a?(null==this.ha&&(this.ha=this.jg(a),g.se(this.ha,Dp(this))),a=this.ha):(null==this.B&&(this.B=this.jg(),g.se(this.B,Dp(this))),a=this.B);null!=this.o&&this.o.X(a,"creativeview",this.ga);return a};
g.h.jg=function(){var a=g.F(this.A);E(g.F(this.Ze()))||(a=new g.Ll(a),g.Ul(a,"clickTAG",g.Fa(this.Ze())),a=a.toString());var b=g.ne("IFRAME",{marginwidth:0,marginheight:0,hspace:0,vspace:0,frameborder:0,scrolling:"no"},null);b.height=this.getHeight();"Text"!=this.jd()&&(b.width=this.Eb());b.setAttribute("src",Om(a));this.zi(b);return Cp(this,b)};
g.h.Sp=function(){Fm().g.g("cleanup_text_overlay_spam_signals");return 2};
g.h.Em=function(){for(var a=[this],b=this.Ob().o;b;){var c=this.D?pp(this,b)||pp(this,b,!0):Ep(this,b)||Ep(this,b,!0);null!=c&&a.push(c);b=b.o}return a};var Zda={};g.C(Rp,yp);g.h=Rp.prototype;g.h.af=function(){return new g.Wd(this.Eb(),this.getHeight())};
g.h.getHeight=function(){return 63};
g.h.Eb=function(){return null!=this.F?g.vh(this.F).width:0};
g.h.Sp=function(a){return Fm().g.g("cleanup_text_overlay_spam_signals")?g.Ip(a,"text-image-link")?9:g.Ip(a,"text-ad-channel")?1:0:g.Ip(a,"text-image")?9:g.Ip(a,"text-ad-channel")?1:0};
g.h.jg=function(){var a=this.Ob(),b=a.getExtension("AdSense"),c=a.getExtension("TextAd"),d=c.C,e="rtl";null!=d&&(e=Hoa.test(td(d,void 0))?"rtl":"ltr");d={title:d,text:c.D+" "+c.F,dir:e,Mc:this.Ze()};if(e=c.getImageUrl())d.image=Om(e),d.qB=!0,P.g()&&(d.qB=0==c.o||0==c.A),a=g.$a(a.F,function(a){return a instanceof rp}),null!=a&&(d.duration=co(a.getDuration()));
b.A&&(d.rB=b.A);this.F=Pp(Oda,d);(0,g.H)(this.F.getElementsByTagName("a"),this.zi,this);this.F.id=this.Aa;this.F.style.height=this.getHeight()+"px";return this.F};var cea=[202,1009],hea="CONTENT_V CPN DISALLOW EID LACT VIS".split(" "),gea={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=lq.prototype;g.h.Ef=function(){return null!=this.g&&this.g.Ef()?!0:0<this.ads.length&&this.o<this.ads.length-1};
g.h.Te=function(a,b){null!=this.g?oea(this,a,b):this.Ef()?rea(this,a,(0,g.A)(function(c){!this.Ef()||!P.g()&&301==c.Lb()?b(c):this.Te(a,b)},this)):b(new ym("adLoadError","The ad source contains no more ads.",1005))};
g.h.Rv=function(a,b){return this.C?0<a.length?a:b:g.qb(b,0,1)};
g.h.Gn=function(a,b,c){var d;if(!(d=null!=a.g)){var e=this.D;d=e.Ye||0;e=e.Xe||0;us(a)&&!a.ha?ys(a,"nonlinear")?jq(a,d,e):kq(a):ys(a,"linear")?kq(a):ys(a,"nonlinear")&&jq(a,d,e);d=null!=a.g}d?(this.A++,b(a)):(b=g.fb(a.F)?Ym(GA):a.Vb()?Ym(MB):Ym(apa),d=bq(b,a),fo(hfa(a),"rm")?b.A=!1:Vm(a.oa,d),c(b))};
g.h.Yr=function(a,b,c){var d=this.D.clone();d.o="";d.g=a.Bb;d.Ne=om(d.g,d.containerElement);qq(this,a,d,b,c)};g.C(vq,Fp);vq.prototype.Wd=function(){return this.o};g.C(wq,lq);wq.prototype.Ef=function(){if(null!=this.g&&this.g.Ef())return!0;var a=0==this.A||this.A==this.K;return 0<this.ads.length&&a&&this.o<this.ads.length-1};
wq.prototype.Rv=function(a,b){return b};
wq.prototype.Gn=function(a,b,c){var d=null==this.g?hs(a):hs(this.ads[this.o]);this.J.A=d;wq.aa.Gn.call(this,a,b,c)};
wq.prototype.Yr=function(a,b,c){this.J.A=-1;wq.aa.Yr.call(this,a,b,c)};g.C(yq,g.Ll);yq.prototype.toString=function(){return Bq(this,yq.aa.toString.call(this))};
yq.prototype.dw=function(){return""};
yq.prototype.Oh=function(){return""};
yq.prototype.clone=function(){return new yq(this.toString())};g.h=Iq.prototype;g.h.hd=function(){return this.g.hd()};
g.h.Hc=function(){return this.g.Hc()};
g.h.jd=function(){return this.g.jd()};
g.h.Eb=function(){return this.g.Eb()};
g.h.getHeight=function(){return this.g.getHeight()};
g.h.Mw=function(){return!E(g.F(this.g.A))};
g.h.Vp=function(){var a=this.g.Ob().g;return null!=a?a.g:window.NaN};
g.h.Vm=function(){return this.g.af()};
g.h.Ob=function(){return this.g.Ob()};Lo("a","",function(a){a=a||{};return'<div class="videoAdUi"><div class="videoAdUiTopBar videoAdUiTopBarWithGradients"><div class="videoAdUiAuthorIcon"></div><div class="videoAdUiTitle ellipsisText"></div><div class="videoAdUiAuthorName ellipsisText"></div><div class="videoAdUiLearnMore">'+Q(a.dh)+'</div><div class="videoAdUiShare"></div></div><div class="videoAdUiBottomBar"><div class="videoAdUiLearnMoreText">'+Q(a.dh)+'<div class="videoAdUiLearnMoreIcon"></div></div><div class="videoAdUiAttributionContainer"><div class="videoAdUiAttribution"'+
Q(bp(a.attributionText))+">"+Q(a.attributionText)+'</div><div class="videoAdUiAttributionIconContainer"><div class="videoAdUiAttributionIcon" id="videoAdUiAttributionIcon"></div><div class="videoAdUiAdInfoPopup"><div class="videoAdUiAdInfoPopupCallout"></div><div class="videoAdUiAdInfoPopupText" '+Q(bp(a.ke))+">"+Q(a.ke)+'</div></div></div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiBuffer"></div><div class="videoAdUiProgress"></div></div></div>'});
Lo("a","fixedDirectionality",function(a){a=a||{};return'<div class="videoAdUi"><div class="videoAdUiTopBar videoAdUiTopBarWithGradients"><div class="videoAdUiAuthorIcon"></div><div class="videoAdUiTitle ellipsisText"></div><div class="videoAdUiAuthorName ellipsisText"></div><div class="videoAdUiLearnMore">'+Q(a.dh)+'</div><div class="videoAdUiShare"></div></div><div class="videoAdUiBottomBar"><div class="videoAdUiLearnMoreText">'+Q(a.dh)+'<div class="videoAdUiLearnMoreIcon"></div></div><div class="videoAdUiAttributionContainer"><div class="videoAdUiAttribution">'+
Q(a.attributionText)+'</div><div class="videoAdUiAttributionIconContainer"><div class="videoAdUiAttributionIcon" id="videoAdUiAttributionIcon"></div><div class="videoAdUiAdInfoPopup"><div class="videoAdUiAdInfoPopupCallout"></div><div class="videoAdUiAdInfoPopupText">'+Q(a.ke)+'</div></div></div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiBuffer"></div><div class="videoAdUiProgress"></div></div></div>'});
Lo("a","redesign2014q4",function(a){a=a||{};return'<div class="videoAdUi"><div class="videoAdUiTopBar videoAdUiTopBarWithGradients"><div class="videoAdUiAuthorIcon"></div><div class="videoAdUiTopButtons"><div class="videoAdUiTopButton videoAdUiTopButtonInfo"><div class="videoAdUiTopButtonCallout"><div class="videoAdUiTopButtonTooltip">'+Q(a.infoText)+'</div></div></div><div class="videoAdUiTopButton videoAdUiTopButtonShare"><div class="videoAdUiTopButtonCallout"><div class="videoAdUiTopButtonTooltip videoAdUiTopButtonShareTooltip">'+
Q(a.a1)+'</div></div></div><div class="videoAdUiTopButton videoAdUiTopButtonWatchLater"><div class="videoAdUiTopButtonCallout"><div class="videoAdUiTopButtonTooltip">'+Q(a.b1)+'</div></div></div></div><div class="videoAdUiTitle ellipsisText"></div><div class="videoAdUiAuthorName ellipsisText"></div></div><div class="videoAdUiBottomBar"><div class="videoAdUiBottomBarText"><div class="videoAdUiAttributionContainer"><div class="videoAdUiAttributionBadge yt-badge yt-badge-ad"></div><div class="videoAdUiAttribution"'+
Q(bp(a.attributionText))+">"+Q(a.attributionText)+'</div><div class="videoAdUiAttributionIconContainer"><div class="videoAdUiAttributionIcon" id="videoAdUiAttributionIcon"></div><div class="videoAdUiAdInfoPopup"><div class="videoAdUiAdInfoPopupCallout"></div><div class="videoAdUiAdInfoPopupText" '+Q(bp(a.ke))+">"+Q(a.ke)+'</div></div></div></div><div class="videoAdUiVisitAdvertiserLink"><div class="videoAdUiVisitAdvertiserLinkText"></div><div class="videoAdUiVisitAdvertiserIcon"></div></div></div><div class="videoAdUiBottomBarMessage"></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiBuffer"></div><div class="videoAdUiProgress"></div></div></div>'});
Lo("b","",function(a){a=a||{};return""+Aa("You can skip this ad in {$xSeconds}",{xSeconds:Q(a.Cg)})});
Lo("b","redesign2014q4",function(a){a=a||{};return""+Aa("You can skip to video in {$xSeconds}",{xSeconds:Q(a.Cg)})});
Lo("b","forcedlinebreak",function(a){a=a||{};return""+Aa("You can skip to{$newline}video in {$xSeconds}",{newline:Q(a.VL),xSeconds:Q(a.Cg)})});g.C(dr,yp);var Sea=new g.Wd(300,250);dr.prototype.Oa=function(){this.F=Math.max(0,this.F-1);fr(this)};
dr.prototype.Na=function(){this.F=Math.min(this.ua-3,this.F+1);fr(this)};
dr.prototype.jg=function(){return this.P};g.C(ir,yp);var Uea=new g.Wd(300,250);ir.prototype.jg=function(){return this.F};var jr=g.sc&&Vea();var Yea=/(doubleclick.net|googleadservices.com)/,afa=["ai","sigh"],bfa=["xai","sig"];g.C(Er,Fp);Fr.prototype.parse=function(a){a=g.Be(a);var b=tr(a),c;"skippable"==b?c="skippable":"nonskippable"==b&&(c="nonskippable");if(null==c)throw Ym(Zoa);a=a.getAttribute("offset");a=Cr(a);if("skippable"==c&&null==a)throw Ym(Yoa);return new Er(c,a)};g.C(Gr,Fp);g.C(Hr,Fp);g.h=Jr.prototype;g.h.jd=function(){if(null!=Es(this))return"application/javascript";if(null!=Fs(this))return"application/x-shockwave-flash";var a=this.g,b="";if(null===a)return b;if(a instanceof rp)a=a.C,null===a||(b=g.F(a.g));else if(a instanceof yp)switch(a.O){case "IFrame":case "Html":case "Static":b=g.F(a.ra)}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.Vb=function(){return this.Za?this.sa:zs(this)?!0:us(this)?"video"==this.zb:ys(this,"linear")};
g.h.isSkippable=function(){return null!=Bs(this)};
g.h.sI=function(){return this.ha};
g.h.getDuration=function(){return vs(this)+Ds(this)};
g.h.Tg=function(){var a=null,b=this.g;null!=b&&(a=b.Tg(),E(g.F(a))&&(a=null));return a};
g.h.Eb=function(){return this.Vb()?0:this.da.width};
g.h.getHeight=function(){return this.Vb()?0:this.da.height};
g.h.Ue=function(){return this.Ta};
g.h.toString=function(){return"Ad: "+this.ua};g.C(Ks,g.xf);Ks.prototype.o=function(a){switch(a.type){case "companion_impression":this.dispatchEvent(new sm("companionImpression",this.g));break;case "companion_click":this.dispatchEvent(new sm("companionClick",this.g))}};g.C(Ls,g.xf);g.h=Ls.prototype;g.h.Gb=function(a){null==a||this.F||(this.Kh=a,tfa(this),this.F=!0)};
g.h.Wc=function(){null!=this.Kh&&this.F&&(Ms(this),this.D=this.J=this.F=!1,this.g=0,this.A=[],this.G=!1)};
g.h.JP=function(a){this.J=!0;this.g=a.touches.length;this.o&&(window.clearTimeout(this.o),this.o=0,this.M=!0);(this.G=Ns(this,a.touches)||1!=a.touches.length)?this.P=this.O=window.Infinity:(this.O=a.touches[0].clientX,this.P=a.touches[0].clientY);ufa(this,a.touches)};
g.h.IP=function(a){this.g=a.touches.length;if(!ln(8)||Math.pow(a.changedTouches[0].clientX-this.O,2)+Math.pow(a.changedTouches[0].clientY-this.P,2)>Math.pow(5,2))this.D=!0};
g.h.HP=function(a){this.C?this.Gp():(!this.J||1!=this.g||this.D||this.M||this.G||!Ns(this,a.changedTouches)||(this.o=window.setTimeout((0,g.A)(this.Gp,this),300)),this.g=a.touches.length,0==this.g&&(this.D=this.J=!1,this.A=[]),this.M=!1)};
g.h.Nw=function(){this.Gp()};
g.h.Gp=function(){this.o=0;this.dispatchEvent(new g.Te("click"))};
g.h.V=function(){this.Wc();this.B.dispose();this.B=null;Ls.aa.V.call(this)};var wfa=/#(.)(.)(.)(.)/,vfa=/^#(?:[0-9a-f]{4}){1,2}$/i;g.C(g.Qs,g.xf);g.h=g.Qs.prototype;g.h.wb=function(){return 1==this.g};
g.h.zn=function(){this.we("begin")};
g.h.Tk=function(){this.we("end")};
g.h.zd=function(){this.we("finish")};
g.h.we=function(a){this.dispatchEvent(a)};var gpa=Cf(function(){if(g.sc)return g.kc("10.0");var a=g.pe("DIV"),b=g.ke?"-webkit":g.dh?"-moz":g.sc?"-ms":g.Ve?"-o":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");b={style:c};if(!Kd.test("div"))throw Error("Invalid tag name <div>.");if("DIV"in Ioa)throw Error("Tag name <div> is not allowed for SafeHtml.");b=Ld("div",b,void 0);a.innerHTML=g.Gd(b);return""!=eh(a.firstChild,"transition")});g.C(Ss,g.Qs);g.h=Ss.prototype;g.h.play=function(){if(this.wb())return!1;this.zn();this.we("play");this.startTime=(0,g.G)();this.g=1;if(gpa())return g.bh(this.o,this.F),this.B=g.mg(this.yQ,void 0,this),!0;this.Bs(!1);return!1};
g.h.yQ=function(){g.uh(this.o);Rs(this.o,this.D);g.bh(this.o,this.A);this.B=g.mg((0,g.A)(this.Bs,this,!1),1E3*this.C)};
g.h.stop=function(){this.wb()&&this.Bs(!0)};
g.h.Bs=function(a){g.bh(this.o,"transition","");g.ng(this.B);g.bh(this.o,this.A);this.endTime=(0,g.G)();this.g=0;a?this.we("stop"):this.zd();this.Tk()};
g.h.V=function(){this.stop();Ss.aa.V.call(this)};
g.h.pause=function(){};g.C(Ts,g.xf);g.h=Ts.prototype;g.h.V=function(){null!=this.ji&&(g.ng(this.ji),this.ji=null);null!=this.Ee&&(g.we(this.Ee),this.Ee=null);Ts.aa.V.call(this)};
g.h.pF=function(){this.ji=null;Us(this,"0%","100%","1","0");this.ji=g.mg((0,g.A)(function(){this.ji=null;Vs(this,!1);null!=this.Ee&&g.O(this.Ee,!1);this.Ck("complete")},this),400)};
g.h.show=function(a){this.Ck("impression");Us(this,"100%","0%","0","1");Vs(this,!0);null!=this.Ee&&g.O(this.Ee,!0);this.ji=g.mg(this.pF,a,this)};
g.h.OH=function(a){P.g()||a.stopPropagation()};
g.h.Ck=function(a){a=Up({action:"condor-brand-precap",event:a,ei:"[EID]",cpn:"[CPN]",content_v:"[CONTENT_V]",ad_v:"[AD_V]",ad_id:"[AD_ID]",ad_len:"[AD_LEN]"});a=g.mm(a,this.C.D);Rm(a)};g.C(Ws,Fp);g.C(Ys,Fp);g.h=Zs.prototype;
g.h.aA=function(){var a={heading:"",targetingReasons:[],learnMore:"",Op:"",control:"",mute:""};if(null!=this.C){a.heading=this.C.C;var b=this.C.o;if(b&&3==b.length){var c=b[1],d=b[2],b=Ho(Q(b[0])+$q()+Q(c)+Ho("</a>")+Q(d));a.Op=b}a.targetingReasons=g.ob(this.C.D);a.close=this.C.A}else a.Op=ar(),b=Aa("Got It"),a.close=""+b;null!=this.o&&(a.mute=this.o.B);bt(this,Oea,a);at(this,"videoAdUiWhyThisAdCloseButton",this.Xl);at(this,"videoAdUiWhyThisAdControl",this.Iv);at(this,"videoAdUiWhyThisAdMute",this.rQ);
a=g.L("videoAdUiWhyThisAdGenericMessage",this.g);null!=a&&(a=a.getElementsByTagName("A")[0],null!=a&&this.B.X(a,"click",this.Iv))};
g.h.Xl=function(){null!=this.B&&(this.B.dispose(),this.B=null);$s(this)&&null!=this.g&&(null!=this.A&&(ct(this,"why_this_ad_got_it"),this.A.dispose(),this.A=null),this.g.parentElement.removeChild(this.g),this.g=null)};
g.h.Iv=function(){ct(this,"why_this_ad_settings_url")};
g.h.rQ=function(){if(null!=this.o){ct(this,"mute_interaction_url");var a=Xs(this.o);if(0==a){var b={heading:"",message:"Are you sure you want to stop seeing this ad?",confirm:"YES",cancel:"CANCEL"};bt(this,Qea,b);at(this,"videoAdUiMuteCancel",this.aA);at(this,"videoAdUiMuteConfirm",this.HF)}else{ct(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=gp(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);
bt(this,Pea,b);at(this,"videoAdUiMuteUndo",this.JR);at(this,"videoAdUiMuteConfirm",this.vR);at(this,"videoAdUiMuteCancel",this.yp)}}};
g.h.HF=function(){ct(this,"mute_url");this.yp()};
g.h.JR=function(){ct(this,"mute_undo_url");this.Xl()};
g.h.vR=function(){if(null!=this.o){for(var a=Xs(this.o),b=!1,c=0;c<a;c++){var d=g.L("videoAdUiMuteOption"+c,this.g);if(null!=d&&d.checked){b=!0;Rm(this.o.o[c].url);break}}if(!b)return}this.yp()};
g.h.yp=function(){ct(this,"MUTE_AD");this.Xl()};g.C(it,g.xf);var zfa={1:"videoAdUiBrandInteractionHorizontalRect"},yfa=[1],Afa=[1];it.prototype.update=function(a){this.K||(this.F=gt(this.o,.5),g.N(this,this.F),this.F.play(),g.O(this.o,!0),this.K=!0);this.J=a};
it.prototype.ca=function(a){P.g()||a.stopPropagation();var b=a.target.Kh;null!=b&&(this.W++,a=(0,g.G)(),g.Np(b,"selected")?(g.R(this.o,"optionSelected"),null!=this.A&&g.Kp(this.A,"selected"),this.A=b):(g.Kp(this.o,"optionSelected"),this.A=null),this.da&&(ft(this.o,.5,"ease-in",1,0).play(),g.mg(function(){g.O(this.o,!1)},500,this)),Cfa(this),b=null!=this.A?g.Ip(this.A,"videoAdUiBrandInteractionLikeButton")?"l":g.Ip(this.A,"videoAdUiBrandInteractionDislikeButton")?"d":"n":"n",this.B.push(b),this.C.push(a.toString()),
this.D.push(this.J.toString()))};
it.prototype.V=function(){null!=this.o&&(g.we(this.o),this.o=null);this.A=null;it.aa.V.call(this)};g.C(kt,g.xf);kt.prototype.D=function(){this.g?this.dispatchEvent("videoUnmuteClicked"):this.dispatchEvent("videoMuteClicked")};
kt.prototype.V=function(){this.C.dispose();this.C=null;kt.aa.V.call(this)};g.C(lt,g.xf);lt.prototype.V=function(){null!=this.o&&(g.we(this.o),this.o=null);lt.aa.V.call(this)};
lt.prototype.update=function(a,b){if(!(0>=b))if(0>a)this.F=1;else if(1==this.F)gt(this.o,.5).play(),g.O(this.o,!0),this.F=2,this.Ck("i");else if(this.B){var c=Math.round(b-a);0>c||g.Fe(this.A,Yq({Cg:c}))}else this.M&&5<a&&(this.M=!1,g.O(this.A,!1))};
lt.prototype.P=function(){g.xh(this.A)||g.O(this.A,!0);this.K++;this.Ck("c")};
lt.prototype.Ck=function(a){this.O&&(a=Up({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.K}),a=g.mm(a,this.D.D),Rm(a))};g.C(mt,g.xf);var Efa={1:"videoAdUiReasonToWatchBoxWhiteTheme"};mt.prototype.update=function(a){this.C||Ffa(this);!this.D&&10<=a&&Gfa(this)};
mt.prototype.V=function(){null!=this.g&&(g.we(this.g),this.g=null);mt.aa.V.call(this)};g.C(g.nt,g.M);g.h=g.nt.prototype;g.h.start=function(){this.stop();this.A=!1;var a=ot(this),b=pt(this);a&&!b&&this.g.mozRequestAnimationFrame?(this.Aa=g.hf(this.g,"MozBeforePaint",this.o),this.g.mozRequestAnimationFrame(null),this.A=!0):this.Aa=a&&b?a.call(this.g,this.o):this.g.setTimeout(gba(this.o),20)};
g.h.nk=function(){this.isActive()||this.start()};
g.h.stop=function(){if(this.isActive()){var a=ot(this),b=pt(this);a&&!b&&this.g.mozRequestAnimationFrame?g.sf(this.Aa):a&&b?b.call(this.g,this.Aa):this.g.clearTimeout(this.Aa)}this.Aa=null};
g.h.isActive=function(){return null!=this.Aa};
g.h.oG=function(){this.A&&this.Aa&&g.sf(this.Aa);this.Aa=null;this.C.call(this.B,(0,g.G)())};
g.h.V=function(){this.stop();g.nt.aa.V.call(this)};g.C(g.qt,g.M);g.h=g.qt.prototype;g.h.Aa=0;g.h.V=function(){g.qt.aa.V.call(this);this.stop();delete this.g;delete this.o};
g.h.start=function(a){this.stop();this.Aa=g.mg(this.A,g.t(a)?a:this.B)};
g.h.Ce=function(a){this.isActive()||this.start(a)};
g.h.stop=function(){this.isActive()&&g.ng(this.Aa);this.Aa=0};
g.h.isActive=function(){return 0!=this.Aa};
g.h.lw=function(){this.Aa=0;this.g&&this.g.call(this.o)};g.wt={};g.ut=null;g.C(zt,g.xf);g.h=zt.prototype;g.h.V=function(){g.Re(this.B);this.B=null;g.Re(this.G);this.G=null;null!=this.A&&(g.we(this.A),this.A=null);null!=this.skipButton&&(this.skipButton=null);null!=this.o&&(g.we(this.o),this.o=null);this.W.dispose();this.W=null;this.gc.dispose();this.gc=null;zt.aa.V.call(this)};
g.h.update=function(a,b){this.da=b;this.xp(a);2==this.state&&xt(this,a)};
g.h.skip=function(){return null==this.config.skipOffset||3!=this.state||this.ba?!1:(this.ba=!0,this.dispatchEvent("PUBLISHER_INVOKED_SKIP"),!0)};
g.h.xp=function(a){if(!(0>=this.da||null==this.config.skipOffset||0>kp(this.config.skipOffset))){var b=kp(this.config.skipOffset);b>=this.da||3==this.state||(0>a?this.state=1:a<=b?(2!=this.state&&(xt(this,0),gt(this.A,.5).play(),g.O(this.A,!0)),this.state=2):(3!=this.state&&this.Iu(),this.state=3,this.dispatchEvent("skipshown")))}};
g.h.Iu=function(){g.O(this.o,!0);this.G=At(this.A);this.G.play();this.B=gt(this.o,.5);this.B.play();this.skipButton.autofocus&&this.skipButton.focus()};
g.h.tR=function(a){P.g()||a.stopPropagation();3!=this.state||this.ba||(this.ba=!0,this.dispatchEvent("skip"))};g.C(Gt,zt);var Ct={Pv:0,Ov:1},Dt={Pv:1,Ov:0},Et={Ev:15},Ft={Ev:300};g.h=Gt.prototype;g.h.V=function(){Gt.aa.V.call(this);It(this);Kt(this)};
g.h.xp=function(a){Gt.aa.xp.call(this,a);if(3==this.state&&!this.ha&&!this.fa){var b=Mt(this.P,this.g);if(a=Lt(a,this.config,this.P))if(this.F==this.K.Pv&&a>=b)switch(this.K){case Ct:Ht(this);break;case Dt:Jt(this,!0)}else if(this.F==this.K.Ov&&a<b)switch(this.K){case Dt:Ht(this);break;case Ct:Jt(this,!0)}}};
g.h.Iu=function(){g.O(this.o,!0);this.G=At(this.A);this.G.play();if(this.ha)var a=!1;else{a=Mt(this.P,this.g);var b=Lt(kp(this.config.skipOffset),this.config,this.P);if(null!=b){var c=!1;switch(this.K){case Dt:c=b<a;break;case Ct:c=b>a}a=c}else a=!1}a?(this.F=1,this.B=ft(this.o,.5,"ease-in",0,.5)):this.B=gt(this.o,.5);this.B.play();this.skipButton.autofocus&&this.skipButton.focus();this.ha||(this.gc.X(g.Ce(this.o),"mouseover",this.RL),this.gc.X(g.Ce(this.o),"mouseout",this.QL))};
g.h.RL=function(){Kt(this);0!=this.F&&Jt(this,!1);this.fa=!0};
g.h.QL=function(){Kt(this);this.M=g.mg(function(){this.fa=!1;this.M=null},5E3,this)};Nt.prototype.getDuration=function(){return this.o};
Nt.prototype.Hc=function(){return this.g};
Nt.prototype.update=function(a,b){var c=null!=this.F?kp(this.F):0;this.o=0<=this.o?this.o:b;c<=a&&c+this.o>=a?Jfa(this):g.O(this.g,!1)};var hpa={Ht:{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"}},TC:{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"}}},$t=hpa,$t=hpa;var Rt={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 ipa={Kt:".",Go:",",Zt:"%",Uo:"0",qE:"+",ZD:"-",Ot:"E",au:"\u2030",Ho:"\u221e",dE:"NaN",Jt:"#,##0.###",AE:"#E0",pE:"#,##0%",jD:"\u00a4#,##0.00",nD:"USD"},Pt=ipa,Pt=ipa;Tt.prototype.parse=function(a,b){var c=b||[0];if(0!=this.K)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.B,c[0])==c[0];d&&e&&(this.G.length>this.B.length?e=!1:this.G.length<this.B.length&&(d=!1));d?c[0]+=this.G.length:e&&(c[0]+=this.B.length);if(a.indexOf(Pt.Ho,c[0])==c[0]){c[0]+=Pt.Ho.length;var f=window.Infinity}else{f=a;var k=!1,l=!1,m=!1,n=1,q=Pt.Kt,r=Pt.Go,w=Pt.Ot;if(0!=this.K)throw Error("Parsing of compact style numbers is not implemented");
for(var y="";c[0]<f.length;c[0]++){var B=f.charAt(c[0]),D=Zt(B);if(0<=D&&9>=D)y+=D,m=!0;else if(B==q.charAt(0)){if(k||l)break;y+=".";k=!0}else if(B==r.charAt(0)&&("\u00a0"!=r.charAt(0)||c[0]+1<f.length&&0<=Zt(f.charAt(c[0]+1)))){if(k||l)break}else if(B==w.charAt(0)){if(l)break;y+="E";l=!0}else if("+"==B||"-"==B)y+=B;else if(1==this.g&&B==Pt.Zt.charAt(0)){if(1!=n)break;n=100;if(m){c[0]++;break}}else if(1==this.g&&B==Pt.au.charAt(0)){if(1!=n)break;n=1E3;if(m){c[0]++;break}}else break}1!=this.g&&(n=
this.g);f=(0,window.parseFloat)(y)/n}if(d){if(a.indexOf(this.O,c[0])!=c[0])return window.NaN;c[0]+=this.O.length}else if(e){if(a.indexOf(this.J,c[0])!=c[0])return window.NaN;c[0]+=this.J.length}return e?-f:f};
Tt.prototype.format=function(a){if((0,window.isNaN)(a))return Pt.dE;var b=[];var c=a;if(0==this.K)c=au;else{c=Math.abs(c);var d=bu(this,1>=c?0:Vt(c)).Hp;c=bu(this,d+Vt(Wt(this,c/Math.pow(10,d)).intValue))}a/=Math.pow(10,c.Hp);b.push(c.prefix);d=0>a||0==a&&0>1/a;b.push(d?this.B:this.G);if((0,window.isFinite)(a))if(a=a*(d?-1:1)*this.g,this.ba){var e=a;if(0==e)Xt(this,e,this.o,b),Yt(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.P&&this.P>this.o){for(;0!=a%this.P;)e*=10,a--;f=1}else 1>this.o?(a++,e/=10):(a-=this.o-1,e*=Math.pow(10,this.o-1));Xt(this,e,f,b);Yt(this,a,b)}}else Xt(this,a,this.o,b);else b.push(Pt.Ho);b.push(d?this.J:this.O);b.push(c.aB);return b.join("")};
var au={prefix:"",aB:"",Hp:0};g.C(du,g.xf);g.h=du.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.V=function(){null!=this.o&&(g.we(this.o),this.o=null);fu(this);(0,g.H)(this.ca,function(a){a.Wc()});
this.ca=[];this.C=null;this.A.dispose();this.A=null;this.xb=!1;du.aa.V.call(this)};
g.h.update=function(a,b,c,d,e){this.xb=!0;null!=this.o&&(null!=this.Ra&&Lfa(this,a,c,d,e),null!=this.ha&&g.sh(this.ha,a/c*100+"%"),null!=this.tb&&g.sh(this.tb,b/c*100+"%"),0<c&&null!=this.g.skipOffset&&null!=this.B&&(jp(this.g.skipOffset,c),this.B.update(a,c)),0<c&&null!=this.ra&&this.ra.update(a),0<c&&null!=this.sa&&this.sa.update(a),0<c&&null!=this.J&&this.J.update(a,c),this.g.W&&0<c&&5>c-a&&g.R(this.ga,"videoAdUiTopBarNoFade"),(0,g.H)(this.Ja,function(b){b.update(a,c)},this))};
g.h.rF=function(){this.dispatchEvent("videoAuthorIconClicked")};
g.h.sF=function(){this.dispatchEvent("videoAuthorClicked")};
g.h.uH=function(a){var b=a.G;a=a.J;E(g.F(b))||this.dispatchEvent(new sm("videoIconClicked",null,{clickThroughUrl:b}));(0,g.H)(a,function(a){Rm(a)})};
g.h.tx=function(){this.dispatchEvent("videoLearnMoreClicked")};
g.h.qR=function(){this.dispatchEvent("videoShareClicked")};
g.h.AR=function(){this.dispatchEvent("videoTitleClicked")};
g.h.PH=function(a){a.preventDefault()};
g.h.po=function(){this.dispatchEvent("click")};
g.h.Ab=function(){null!=this.Ja&&(0,g.H)(this.Ja,function(a){Ot(a)},this)};
g.h.nR=function(){g.R(this.ga,"videoAdUiTopBarTransitions")};
g.h.sQ=function(){var a=g.Me(this.o,"html5-video-player");if(null!=a){var b=this.g.M;null!=a&&(b.B=new g.dm(b),b.A=new g.xf,b.A.sh(this),b.D=a,b.aA(),ct(b,"why_this_ad_url"));null!=this.B&&Bt(this.B,!1);null!=this.J&&(a=this.J,null!=a.g&&g.O(a.g,!1))}};
g.h.VR=function(){null!=this.B&&Bt(this.B,!0);if(null!=this.J){var a=this.J;null!=a.g&&g.O(a.g,!0)}};g.C(lu,g.M);lu.prototype.K=function(a,b,c){c=g.Wb(c||{});if("timeout"==(c.viewability||"")){var d=this.G[a];null!=d&&(c.viewability=d)}if("impression"==a&&!this.J&&null!=this.D&&0<this.D.length){var d=P.K&&g.eb(this.F,"impression"),e=nu(this,this.D,c);ou(this,e,d);this.J=!0}Ofa(this,a)&&0<b.length&&(d=P.K&&g.eb(this.F,a),b=nu(this,b,c),ou(this,b,d),this.o.set(a,!0))};g.C(pu,g.xf);g.h=pu.prototype;g.h.jk=function(){if(this.yb()){var a=Is(this.Vc);if(null!=a)return a}return""};
g.h.ik=function(){if(this.yb()){var a=Js(this.Vc);if(null!=a)return a}return""};
g.h.Se=function(){return g.fb(this.ads)?null:this.ads[0]};
g.h.ma=function(){if(this.yb()){if(this.Vc.isSkippable()&&!un())throw Zm($A,null,"skippablevideo");if(null!=Es(this.Vc)&&uu(this,this.Vc.o))throw Zm($A,null,"vpaidWithSkippabilityOverride");return this.Vc}throw Zm(xu,null,"An ad has not been selected.\n"+Error().stack);};
g.h.yb=function(){return null!==this.Vc};
g.h.bl=function(){var a=(0,g.db)(this.ads,this.Vc);-1!=a&&++a<this.ads.length?tu(this,this.ads[a]):tu(this,null)};
g.h.tk=function(){var a=(0,g.db)(this.ads,this.Vc);return-1==a?!1:a+1<this.ads.length};
g.h.Te=function(){return this.tk()?this.ads[(0,g.db)(this.ads,this.Vc)+1]:null};
g.h.Sg=function(a){var b=a.o;if(b&&b.ga&&(b=b.F,!g.fb(b)&&b[0]instanceof rp))return b[0].Sg();b=a.g;return vu(a)?b.Sg():[]};
g.h.Rn=function(){if(!this.yb()){if(g.fb(this.ads))throw Zm(MB);tu(this,this.ads[0]);if(null==this.Vc.g)throw Ym(MB);}};
g.h.la=function(a,b){var c=this.yb()?this.ma():null;this.dispatchEvent(new sm(a,c,b))};
g.h.zg=function(a){this.Gd=a};
g.h.Xa=function(){null==this.gc&&(this.gc=new g.dm(this));return this.gc};
g.h.WM=function(){};
g.h.Lr=function(){};
g.h.sd=function(a){if(P.g()&&P.A)Fm().g.g("show_kevlar_companion_on_video_ad_start")||this.la("youtubeKevlarCompanionShow");else if(null!=this.Gd){km(this.re);im(this.re,this.Gd,"companion_display_error",function(){});
var b=this.Gd.sd(a);null!=b&&(this.re.X(b,"companion_impression",this.WM),this.re.X(b,"companion_click",this.Lr),P.g()&&(a=new Ks(a,b),this.la("companionInitialized",a)));if(!this.Gd.Ku())throw Zm(w3);}};
g.h.destroy=function(){this.dispose()};
g.h.V=function(){this.yb()&&(iq(this.Vc,null),this.Vc=null);g.Re(this.gc);this.Gd=this.gc=null;this.fm=!1;P.o?mo(io(),this.qo):Rn().F=null;this.Ha&&(g.Re(this.Ha),this.Ha=null);pu.aa.V.call(this)};
g.h.Re=function(){return[]};
g.h.Kb=function(){return this.ads[0]};
g.h.dj=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){var d=window,c=d.document,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=
c.createElement("script");a.type="text/javascript";a.async=!0;a.src=b;c.getElementsByTagName("head")[0].appendChild(a)}}})};
g.h.init=function(a){yu(this);this.Cc(a);this.Zd=!0;this.qj();P.o||(Rn().F=this.qo)};
g.h.qj=function(){this.la("loaded")};
g.h.Aj=function(a){this.yb()&&P.g()&&Vm(Vr(this.ma()),a)};
g.h.JA=g.z;g.h.Rc=function(a,b,c){if(!this.fm){if(null==a)throw Zm(Wn,null,"displayContainer");null!=c&&this.Me(c);this.content=b;this.Qa=a;this.Rn();this.Da=this.Qa.Sm(Pfa(this));this.fm=!0}};
g.h.yg=function(a){a=fo(Kr(a),"rm")?a.ba:Vr(a);(0,g.H)(a,function(a){g.ib(this.Rb.D,a)},this)};
g.h.Vf=function(a,b){(0,g.H)(b,function(b){b=op(a,b);hp(this.Rb.A,b)},this)};
g.h.wj=function(a){if(a instanceof rp){var b=sp(a);(0,g.H)(b.Cb(),function(a){var c=b.get(a);(0,g.H)(c,function(b){ip(this.Rb.A,a,b)},this)},this)}};
g.h.Ea=function(a){mu(this.Rb,new g.Te(a))};
g.h.getCurrentTime=function(){return-1};
g.h.getDuration=function(){return-1};
g.h.Oc=function(){return-1};
g.h.wb=function(){return null!=this.Da?this.Da.wb():!1};
g.h.Ab=function(a,b,c){this.Cc(c)};
g.h.pause=g.z;g.h.resume=g.z;g.h.skip=g.z;g.h.muteAd=g.z;g.h.whyThisAdClicked=g.z;g.h.whyThisAdClosed=g.z;g.h.Me=function(a){if(null==a||!Qfa(this,a))throw Zm(Wn,null,"adsRenderingSettings should be instance of AdsRenderingSettings");var b=this.Va;if(null==a.bitrate||0>=a.bitrate)a.bitrate=-1;null==a.mimeTypes&&(a.mimeTypes=[]);Rfa(a.mimeTypes);if(!g.oa(a.cf)||0>=a.cf)a.cf=Mn();g.ac(b,a)};
g.h.start=function(){yu(this);if(!this.Zd)throw Ym(xu,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)&&bn(this,Wn,null,"volume",String(a));this.volume=a};
g.h.expand=function(){yu(this);this.Cc("fullscreen")};
g.h.collapse=function(){yu(this);this.Cc("normal")};
g.h.Cc=function(a){if(!Mb(Woa,a))throw Zm(Wn,null,"view mode",a);this.Yc=a};
g.h.Lc=function(){return this.fm};
g.h.hasListeners=function(a){return(0,g.Ar)(a,function(a){if(g.Ze(this))a=gf(this.xe,g.t(a)?String(a):void 0);else{var b=g.lf(this);a=!!b&&gf(b,a)}return a},this)};
g.h.Tg=function(){return null};
g.h.Ri=function(){return null};
g.h.NA=function(){return null};
g.h.ze=function(){return null};
g.h.hf=function(){this.Ea("abandon")};
g.h.mG=function(){return{currentTime:this.getCurrentTime(),duration:this.getDuration(),isPlaying:this.wb(),isVpaid:this.yb()&&null!=Es(this.ma()),isYouTube:P.g(),volume:this.getVolume()}};
g.h.zk=function(a){do if(us(a))return!1;while(a=a.o);return!0};
g.h.yk=function(){for(var a=0;a<this.ads.length;++a)if(!this.zk(this.ads[a]))return!1;return dn()};
g.h.QQ=function(a){var b=g.nb(t3,g.Nb(v3));sb(b);(0,g.H)(b,function(b){var c=gp(a.g,b);g.fb(c)||this.es(b,c)},this);
Nfa(this.Rb,a.J)};
g.h.es=function(a,b){(0,g.H)(b,function(a){ip(this.Rb.A,a.bc(),a.g)},this)};
g.h.FN=function(a){this.Va.Fv||(a=a.g,null!=a&&(a=a.clickThroughUrl,null!=a&&(Qm(a),this.pause())))};
g.h.rj=function(a){var b=a.type;if(g.eb(u3,b)){if("externalActivityEvent"==b&&(b=a.g.eventName,!v3[b]))return;wu(this,b)}};var Du=["classid","data","movie","type","typemustmatch"];g.qa(g.Eu);g.Eu.prototype.g=0;g.C(g.Fu,g.xf);g.h=g.Fu.prototype;g.h.yH=g.Eu.getInstance();g.h.getId=function(){return this.Aa||(this.Aa=":"+(this.yH.g++).toString(36))};
g.h.pa=function(){return this.g};
g.h.sh=function(a){if(this.B&&this.B!=a)throw Error("Method not supported");g.Fu.aa.sh.call(this,a)};
g.h.Nm=function(){this.g=this.J.createElement("DIV")};
g.h.Ji=function(){this.Fe=!0;Hu(this,function(a){!a.Fe&&a.pa()&&a.Ji()})};
g.h.ck=function(){Hu(this,function(a){a.Fe&&a.ck()});
this.D&&km(this.D);this.Fe=!1};
g.h.V=function(){this.Fe&&this.ck();this.D&&(this.D.dispose(),delete this.D);Hu(this,function(a){a.dispose()});
this.g&&g.we(this.g);this.B=this.g=this.F=this.M=null;g.Fu.aa.V.call(this)};
g.h.Hc=function(){return this.g};
g.h.removeChild=function(a,b){if(a){var c=g.u(a)?a:a.getId();a=this.F&&c?Vb(this.F,c)||null:null;if(c&&a){Ub(this.F,c);g.kb(this.M,a);b&&(a.ck(),a.g&&g.we(a.g));c=a;if(null==c)throw Error("Unable to set parent component");c.B=null;g.Fu.aa.sh.call(c,null)}}if(!a)throw Error("Child is not in parent component");return a};g.C(Iu,g.Fu);g.h=Iu.prototype;g.h.bb=null;g.h.so="window";g.h.Il="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.pa()&&g.th(Ju(this),this.G,this.C);return this};
g.h.Ji=function(){Iu.aa.Ji.call(this);for(var a=this.pa(),b=this.o.Cb(),c=this.o.fb(),d=[],e=0;e<b.length;e++)d.push(g.Fa(b[e])+"="+g.Fa(c[e]));var b=d.join("&");if(g.sc&&!g.lc(11)){d=this.K;c={allowFullScreen:"true",AllowScriptAccess:this.Il,allowNetworking:"all",bgcolor:"#000000",FlashVars:b,quality:"high",SeamlessTabbing:"false",wmode:this.so};b={"class":"goog-ui-media-flash-object",id:this.getId(),name:this.getId()};Sfa(b,c);e={allownetworking:"none",allowscriptaccess:"never",movie:d};d={};for(k in e)d[k]=
e[k];for(k in c){var f=k.toLowerCase();f in e&&delete d[f];d[k]=c[k]}c=[];for(k in d)c.push(Ld("param",{name:k,value:d[k]}));var k=Md({classid:"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"},{},b);k=Ld("object",k,c)}else k={AllowScriptAccess:this.Il,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.so},k=Md({src:this.K,type:"application/x-shockwave-flash",
pluginspage:"https://www.macromedia.com/go/getflashplayer"},{allownetworking:"none",allowscriptaccess:"never"},k),k=Ld("embed",k);a.innerHTML=g.Gd(k);this.G&&this.C&&this.setSize(this.G,this.C);this.A.X(this.pa(),g.Nb(Koa),Ue)};
g.h.Nm=function(){if(null!=this.O&&!(0<=g.Sa(oi,this.O)))throw Error("Method not supported");var a=this.J.createElement("DIV");a.className="goog-ui-media-flash";this.g=a};
g.h.V=function(){Iu.aa.V.call(this);this.o=null;this.A.dispose();this.A=null};
g.h.Pb=function(){return this.Fe&&this.pa()?g.YO&&Ju(this).readyState&&"complete"==Ju(this).readyState||Ju(this).readyState&&4==Ju(this).readyState||"PercentLoaded"in Ju(this)&&100==Ju(this).PercentLoaded()?!0:!1:!1};g.C(Ku,g.xf);var jpa=yd(od(pd("https://imasdk.googleapis.com/flash/sdkloader/flashinhtml.swf")));yd(od(pd("http://imasdk.googleapis.com/flash/sdkloader/flashinhtml.swf")));g.h=Ku.prototype;g.h.dispose=function(){this.g&&(this.g.dispose(),this.o=null);window[this.A]&&delete window[this.A];g.ng(this.B)};
g.h.load=function(a,b,c,d){window[this.A]=(0,g.A)(this.AH,this);this.g=new Iu(jpa);this.g.setSize(b,c);this.g.Il="always";this.g.so="transparent";this.g.o.set("vpaid",a);this.g.o.set("vpaidEventHandler",this.A);Gu(this.g,this.D);this.o=Ju(this.g);this.B=g.mg(this.BH,d,this)};
g.h.zH=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.AH=function(a,b){"AdLoaded"==a&&(g.ng(this.B),this.C=!0);this.dispatchEvent(new cn(a,b||null))};
g.h.BH=function(){this.dispatchEvent("loadError")};g.C(Nu,yp);Nu.prototype.jg=function(){var a=this.Hq(),a=null!=a&&"clicktag"==a.toLowerCase(),a={url:Om(g.F(this.A)),width:this.Eb(),height:this.getHeight(),Mc:this.Ze(),capture:this.Tu||!a},b=P.g()&&fo(this.G,"hideMaster")?cp:Pda,a=Pp(b,a);a.style.width=this.Eb()+"px";a.style.height=this.getHeight()+"px";a.id=this.Aa;(0,g.H)(a.getElementsByTagName("object"),this.zi,this);(0,g.H)(a.getElementsByTagName("a"),this.zi,this);return a};g.C(Ou,yp);Ou.prototype.jg=function(){var a=g.ne("DIV");a.innerHTML=this.A;this.zi(a);return Cp(this,a)};g.C(Pu,yp);Pu.prototype.hd=function(){var a=Pu.aa.hd.call(this);this.D&&(a=a.replace('src=""','src="'+Om(g.F(this.A))+'"'));return a};
Pu.prototype.Kq=function(){var a=Pu.aa.Kq.call(this);this.D&&(a=a.replace('src=""','src="'+Om(g.F(this.A))+'"'));return a};
Pu.prototype.jg=function(a){var b="";this.D||(b=Om(g.F(this.A)));b={id:this.Aa,url:b,Mc:this.Ze(),width:this.Eb()+"px",height:this.getHeight()+"px"};a=P.g()&&fo(this.G,"hideMaster")?cp:a?Rda:Qda;a=Pp(a,b);(0,g.H)(a.getElementsByTagName("a"),this.zi,this);return a};
Pu.prototype.vk=function(){return!0};Su.prototype.jd=function(){return null!=this.g?vp[this.g]||"Other":null};g.C(Tu,Fp);Uu.prototype.parse=function(a){if(null==a)return null;var b,c,d;(0,g.H)(g.ze(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 Tu(b,c,d):null};g.C(Wu,Fp);Wu.prototype.isPharma=function(){return this.F};Xu.prototype.parse=function(a){var b;ur(a,"config",function(a){null!=b||(b=Xfa(this,a))},this);
return b};Yu.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.ze(a),function(a){switch(a.nodeName){case "AttributionText":c=tr(a);break;case "AttributionUrl":d=tr(a);break;case "ConversionUrl":f=tr(a);break;case "CustomTracking":null!=g.ze(a)&&(e=Dr(a));break;case "is_pharma":a=sr(a,"bool");n=xr(g.F(a));break;case "CheckedEvents":a=g.ze(a);b=(0,g.I)(a,function(a){return sr(a,"id")});
null!=b||(b=[]);break;case "PreviousAdInformation":tr(a);break;case "VisibleUrl":k=tr(a);break;case "UI":l=(new Xu).parse(a);break;case "ShowYouTubeAnnotations":var q=tr(a);m=xr(g.F(q),!1);case "QueryId":tr(a)}},this);
null!=l||(l=new Vu);return new Wu(c,d,f,0,k,l,m,0,n,e,b)};Zu.prototype.parse=function(a){if(null==a)return null;var b;(0,g.H)(g.ze(a),function(a){switch(a.nodeName){case "CustomTracking":null!=g.ze(a)&&(b=Dr(a))}});
a=null;null!=b&&0<gp(b,"skip").length&&(a="Generic");return new Gr(a,b)};$u.prototype.parse=function(a){if(null==a)return null;var b,c;(0,g.H)(g.ze(a),function(a){switch(a.nodeName){case "SkippableAdType":b=tr(a);break;case "CustomTracking":null!=g.ze(a)&&(c=Dr(a))}});
return new Gr(b,c)};av.prototype.parse=function(a){if(null==a)return null;var b;(0,g.H)(g.ze(a),function(a){switch(a.nodeName){case "CustomTracking":null!=g.ze(a)&&(b=Dr(a))}},this);
return new Fp(b)};var z3;g.C(fv,bv);var A3;g.C(gv,bv);var B3,C3;g.C(hv,bv);var nv;g.C(iv,bv);var uv;g.C(jv,bv);var D3;g.C(kv,bv);var E3;g.C(lv,bv);var F3,G3;g.C(mv,bv);var H3,I3,J3,wv;g.C(ps,bv);var K3,L3,M3,N3,ofa={TE:0,UE:1,M_:2,V_:3,vu:4,T_:5,U_:6},O3={TE:0,R_:1,P_:2,N_:3,O_:4,Q_:5,L_:6,S_:7,SE:8,PE:9,QE:10,RE:11};gv.prototype.bc=function(){return cv(this,"type",0)};
gv.prototype.g=function(){return new mv(this.data.website_card)};
iv.prototype.bc=function(){return cv(this,"type",0)};
iv.prototype.getId=function(){return er(this,"id")};
iv.prototype.setTitle=function(a){this.data.title=a};
jv.prototype.bc=function(){return cv(this,"type",0)};
kv.prototype.kd=function(){return er(this,"headline")};
kv.prototype.setDescription=function(a){this.data.description=a};
lv.prototype.setDescription=function(a){this.data.description=a};
mv.prototype.kd=function(){return er(this,"headline")};
mv.prototype.setDescription=function(a){this.data.description=a};
mv.prototype.ng=function(){return new ps(this.data.icon)};
mv.prototype.Cm=function(){return new ps(this.data.banner_image)};
ps.prototype.getImageUrl=function(){return er(this,"image_url")};var Av;
Av={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.C(yv,Fp);zv.prototype.parse=function(a){var b=nr(a);if(E(g.F(b)))return null;if(this.g){var c=Bv;if(!z3){var d={};z3={g:d};if(!A3){var e={};A3={g:e};e.type=ov;if(!B3){var f={};B3={g:f};f.major_version=xv;f.minor_version=xv}e.version=Nh(B3);e.priority=xv;e.start_time_ms=Lh("j");e.end_time_ms=Lh("j");e.action=Mh(tv());e.event=Mh(rv());H3||(f={},H3={g:f},f.headline=pv,f.description=pv,f.attribution_icon_url=pv,f.skippable_seconds=xv,f.attribution_position=ov);e.ad_card=Nh(H3);if(!D3){f={};D3={g:f};f.headline=
pv;f.image=Nh(qv());f.description=pv;f.rating=n3;f.review_text=pv;if(!E3){var k={};E3={g:k};k.merchant=pv;k.price=pv;k.shipping=pv;k.shipping_tax=pv;k.condition=pv;k.unit_price=pv;k.energy_label=pv;k.description=pv;k.rating=n3;k.review_text=pv;k.action=Mh(tv());k.event=Mh(rv())}f.offer=Mh(E3)}e.product_card=Nh(D3);F3||(f={},F3={g:f},f.app_id=pv,f.app_name=pv,f.icon=Nh(qv()),f.price=pv,f.rating_image=pv,f.review_count=xv,f.app_store_logo=Nh(qv()),f.button_text=pv,f.screenshots=Mh(qv()),f.rating=n3,
f.back_button_text=pv,f.screenshots_text=pv,f.cover_photo=Nh(qv()));e.app_card=Nh(F3);G3||(f={},G3={g:f},f.headline=pv,f.description=pv,f.icon=Nh(qv()),f.banner_image=Nh(qv()));e.website_card=Nh(G3);e.prominence=ov;I3||(f={},I3={g:f},f.call_to_action_text=pv);e.social_card=Nh(I3);J3||(f={},J3={g:f},f.vote_line_1=pv,f.vote_line_2=pv,f.confirm_line_1=pv,f.confirm_line_2=pv);e.vote_card=Nh(J3);e.sponsored=o3;e.teaser_text=pv;C3||(f={},C3={g:f},f.hide_in_drawer=o3,f.show_in_endcap=o3,f.show_in_companion=
o3,f.show_in_cta=o3,f.override_clickthrough=o3,f.show_in_promotion_shelf=o3);e.placement=Nh(C3);K3||(f={},K3={g:f},f.latitude_e6=xv,f.longitude_e6=xv,f.address=pv,f.image=Nh(qv()),f.headline=pv);e.location_card=Nh(K3);L3||(f={},L3={g:f},f.icon=Nh(qv()),f.display_name=pv,f.latitude_e7=xv,f.longitude_e7=xv,N3||(k={},N3={g:k},k.display_address=pv,k.city_province=pv),f.address=Nh(N3),f.display_phone_number=pv,M3||(k={},M3={g:k},k.day_of_week=ov,k.display_day_of_week=pv,k.display_hours=pv),f.open_hours=
Mh(M3),f.images=Mh(qv()),f.distance_to_user_meters=xv,f.average_rating=xv,f.num_reviews=xv);e.merchant_location=Nh(L3)}d.card=Mh(A3);d.event=Mh(rv())}a=c(this,a,z3);a=c=new fv(a);d=new dp;for(e=0;e<ev(a,"card");e++)if(f=new gv(dv(a,"card",e)),ns(os(f)))for(k=0;k<ev(f,"event");k++){var l=new jv(dv(f,"event",k)),m=null;switch(l.bc()){case O3.PE:m="video_card_endcap_action";break;case O3.QE:m="video_card_endcap_collapse";break;case O3.RE:m="video_card_endcap_dismiss";break;case O3.SE:m="video_card_endcap_impression"}m&&
ip(d,m,Cv(m,er(l,"base_url")))}a=d}else a=Yfa(this,a);return new yv(b,c,a)};g.C(Dv,Fp);Dv.prototype.Rg=function(){return this.o};g.C(Ev,Fp);Fv.prototype.parse=function(a){if(!a)return null;var b,c;(0,g.H)(g.ze(a),function(a){switch(a.nodeName){case "FeEventId":b=tr(a);break;case "AdEventId":c=tr(a)}},this);
return new Ev(b,c)};Gv.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.ze(a),function(a){"config"==a.nodeName&&(0,g.H)(g.ze(a),function(a){"params"==a.nodeName&&(0,g.H)(g.ze(a),function(a){var d=this.A?a.nodeName.replace(c,""):a.nodeName,e=a.getAttribute("data");null!=e||(e=tr(a));null!=a.getAttribute("learn_more")&&(e+="|");g.eb(this.o,d)?b[d].push(e):b[d]=e},this)},this)},this);
return b};g.C(Iv,Gv);Iv.prototype.parse=function(a){if(null==a)return null;a=Hv(this,a);var b=a.UI;return new Ws(b.gone,b.question,b.undo,b.hover_text,a.SurveyOptions||[],a.CustomTracking)};
Iv.prototype.B=function(a){var b=[],c=0;(0,g.H)(g.ze(a),function(a){if("SurveyOption"==a.nodeName){var d,f;(0,g.H)(g.ze(a),function(a){switch(a.nodeName){case "DisplayName":d=tr(a);break;case "URL":f=tr(a)}},this);
null!=d&&null!=f&&(b.push({label:d,url:f}),c++)}},this);
return b};g.C(Jv,Fp);Kv.prototype.parse=function(a){if(null==a)return null;var b=new Jv;(0,g.H)(g.ze(a),function(a){if("DealId"!=a.nodeName)return null;a=tr(a);a=g.F(a);E(a)||(b.o=a)},this);
return b};g.C(Lv,Fp);Mv.prototype.g={HE:"Siub",GE:"Scs",MC:"Bgub",LC:"Bgp"};Mv.prototype.parse=function(a){if(null==a)return null;var b,c,d,e;(0,g.H)(g.ze(a),function(a){switch(a.nodeName){case this.g.HE:b=tr(a);break;case this.g.GE:c=tr(a);break;case this.g.MC:d=tr(a);break;case this.g.LC:e=tr(a)}},this);
return b&&c&&d&&e?new Lv(b,c,d,e):null};g.C(Nv,Fp);Ov.prototype.g={NE:"TEMPLATE_PARAMETERS",OE:"TEMPLATE_URL"};Ov.prototype.parse=function(a){if(null==a)return null;(0,g.H)(g.ze(a),function(a){switch(a.nodeName){case this.g.NE:Zfa(this,a)}},this);
return new Nv};g.C(Pv,Fp);Pv.prototype.getImageUrl=function(){return this.B};Qv.prototype.g={OD:"Line1",PD:"Line2",QD:"Line3",ND:"ImageUrl"};Qv.prototype.parse=function(a){if(null==a)return null;var b,c,d,e,f=0,k=0;(0,g.H)(g.ze(a),function(a){switch(a.nodeName){case this.g.OD:b=tr(a,!0);break;case this.g.PD:c=tr(a,!0);break;case this.g.QD:d=tr(a,!0);break;case this.g.ND:e=tr(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 Pv(b,c,d,e,f,k)};g.C(Rv,Fp);Sv.prototype.parse=function(a){if(null==a)return null;var b;(0,g.H)(g.ze(a),function(a){switch(a.nodeName){case "ViralExtensionData":a=a.getAttribute("query_id"),E(g.F(a))||(b=a)}},this);
return new Rv(b)};g.C(Tv,Gv);var kpa=["menu","got_it"],lpa=[["generic_message_left","generic_message_hypertext","generic_message_right"]];Tv.prototype.parse=function(a){if(null==a)return null;a=Hv(this,a);var b=a.UI;if(!Uv(b,kpa))return null;var c,d=!0,e=!1;(0,g.H)(lpa,function(a){$fa(b,a)&&(Uv(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 Ys(b.menu,b.got_it,b.targeting_reason_header,b.targeting_reason,a.CustomTracking,c,b.control)};Vv.prototype.parse=function(a){if(null==a)return null;a=a.getAttribute("sequence");a=null!=a?Va(a):window.NaN;a=(0,window.isNaN)(a)?-1:a;return new Hr(a)};g.C(Wv,Fp);Xv.prototype.parse=function(a){return null!=a?new Wv:null};Yv.prototype.parse=function(a){if(null==a)return null;a=a.getAttribute("fallback_index");a=null!=a?Va(a):window.NaN;return new vq(a)};g.C(Zv,Lu);
Zv.prototype.g={AC:"Ad",zo:"AdParameters",EC:"AdSystem",FC:"AdTitle",BC:"Advertiser",IC:"AltText",RC:"ClickThrough",SC:"ClickTracking",UC:"Companion",VC:"CompanionAds",WC:"CompanionClickThrough",XC:"CompanionClickTracking",fD:"Creative",nV:"CreativeExtensions",gD:"Creatives",kD:"CustomClick",pD:"Description",Do:"Duration",ERROR:"Error",EXTENSION:"Extension",wD:"Extensions",yl:"HTMLResource",CD:"Icon",DD:"Icons",ED:"IconClicks",FD:"IconClickThrough",GD:"IconClickTracking",HD:"IconViewTracking",Al:"IFrameResource",
Bl:"Impression",VW:"InLine",LINEAR:"Linear",VD:"MediaFile",WD:"MediaFiles",fE:"NonLinear",gE:"NonLinearAds",hE:"NonLinearClickThrough",iE:"NonLinearClickTracking",rE:"Pricing",Cl:"StaticResource",ME:"Survey",F_:"Tracking",So:"TrackingEvents",VE:"UniversalAdId",m0:"VAST",XE:"VASTAdTagURI",YE:"VideoClicks",bF:"Wrapper"};
Zv.prototype.o={CC:"adId",DC:"adSlotID",HC:"allowMultipleAds",vl:"apiFramework",Ft:"bitrate",hD:"creativeType",oD:"delivery",Do:"duration",lW:"event",zD:"followAdditionalWrappers",uD:"expandedHeight",vD:"expandedWidth",xl:"height",zl:"id",ID:"idRegistry",JD:"idValue",SD:"maintainAspectRatio",UD:"maxBitrate",aE:"minBitrate",bE:"minSuggestedDuration",jE:"offset",sE:"program",wE:"required",zE:"scalable",du:"sequence",EE:"skipoffset",uu:"type",VERSION:"version",ZE:"codec",El:"width",cF:"xPosition",fF:"yPosition"};
Zv.prototype.A=function(){return new Mu(this.B,cga(this),null)};g.C(hw,pu);g.h=hw.prototype;g.h.V=function(){this.F=!1;null===this.g?this.P&&this.dispatchEvent(new sm("destroyInsecureFlashVpaid",this.ma())):this.g.dispose();this.A&&this.la("contentResumeRequested");this.la("allAdsCompleted");hw.aa.V.call(this)};
g.h.Oc=function(){var a=this.ad("getAdRemainingTime");return g.oa(a)?a:-1};
g.h.getVolume=function(){var a=this.ad("getAdVolume");return g.oa(a)?a:-1};
g.h.Rc=function(a,b,c){hw.aa.Rc.call(this,a,b,c);this.A=this.ma().g instanceof rp};
g.h.init=function(a){hw.aa.init.call(this,a);a=this.ma();var b=Fs(a),b=g.F(b);if(E(b))mw(this,Error("Flash VPAID ad url is empty.")),this.stop();else{if(vu(a)){var c=a.g,d=up(c);null!=d&&(c.C=d)}this.Xa().X(Rn(),u3,this.rj);this.P?this.dispatchEvent(new sm("initInsecureFlashVpaid",a,{url:g.F(b)})):null===this.Qa.Bf()?(mw(this,Error("Container must be provided for flash VPAID.")),this.stop()):(this.Qa.od(),null===this.g&&(this.g=new Ku(this.Qa.Bf())),this.Xa().X(this.g,"loadError",this.wN),this.Xa().X(this.g,
"vpaidEventType",this.Rf),this.g.load(b,this.M,this.D,this.Va.cf))}};
g.h.start=function(){if(this.F){hw.aa.start.call(this);var a=this.ma();this.Rb.B=a.K;var b=cq(a);this.Rb.g=b;if(b=a.g)this.yg(a),this.Vf(b,t3),this.wj(b),zu(this,a);this.Qa.od();Bu(this);this.Ea("show_ad");this.setVolume(this.B);this.o=new g.kg(250);this.Xa().X(this.o,"tick",this.DH);this.A?this.la("contentPauseRequested"):(this.la("contentResumeRequested"),jw(this));this.o.start();this.ad("startAd")}else this.J=!0};
g.h.stop=function(){this.K||(this.ad("stopAd"),this.Qa.hide(),null!=this.o&&(this.o.stop(),this.o=null),hw.aa.stop.call(this),this.K=!0)};
g.h.Ab=function(a,b,c){hw.aa.Ab.call(this,a,b,c);if(null!==this.g){var d=this.g;d.g&&d.g.setSize(a,b)}this.M=a;this.D=b;this.ad("resizeAd",a,b,c)};
g.h.pause=function(){null!=this.o&&this.o.stop();this.ad("pauseAd")};
g.h.resume=function(){null!=this.o&&this.o.start();this.ad("resumeAd")};
g.h.setVolume=function(a){this.B=a;this.O.getAdVolume=a;this.ad("setAdVolume",a)};
g.h.expand=function(){this.ad("expandAd")};
g.h.collapse=function(){this.ad("collapseAd")};
g.h.qj=g.z;g.h.Vb=function(){return iw(this)};
g.h.skip=function(){this.ad("skipAd")};
g.h.getDuration=function(){var a=this.ad("getAdDuration");if(g.oa(a))return a;a=this.Oc();return 0<=a?this.C/1E3+a:-2};
g.h.DH=function(){this.C+=250;var a=this.getDuration(),b=a-this.Oc();Cu(this,b,a)};
g.h.ad=function(a){if(this.K)return null;for(var b=[],c=0;c<arguments.length;c++)b.push(arguments[c]);return this.P?(c=b.shift(),this.dispatchEvent(new sm("callFlashVpaidMethod",this.yb()?this.ma():null,{methodName:c,args:b})),this.O[c]):null===this.g?null:this.g.zH.apply(this.g,b)};
g.h.wN=function(){mw(this,Error("Flash VPAID loader failed to load."));this.stop()};
g.h.getCurrentTime=function(){return this.C/1E3};
g.h.Rf=function(a){var b=a.data;switch(a.g){case "flashVpaidMethodResults":b&&(this.O[b.methodName]=b.result);break;case "flashReady":this.ad("handshakeVersion","2.0");b=Xr(this.ma());this.ad("initAd",this.M,this.D,this.Yc,this.Va.bitrate,b);break;case "AdLoaded":this.F=!0;b=this.ad("getAdCompanions");a=g.u(b)?b:"";b=this.ma();g.fb(Wr(b))&&(a=bw(a,b.g.g),g.fb(a)||Ir(b,a));wu(this,"loaded");this.J&&(this.J=!1,this.start());break;case "AdStarted":this.Ea("impression");this.Ea("creativeview");this.la("start");
break;case "AdVideoStart":this.Ea("start");break;case "AdClickThru":b&&b.playerHandles&&((b=b.url)||(b=g.F(Zr(this.ma()))),b&&Qm(b));this.Ea("click");this.la("click");break;case "AdDurationChange":this.la("durationChange");break;case "AdRemainingTimeChange":this.la("durationChange");jw(this);break;case "AdError":a="AdError";b&&(a=b.message);mw(this,Error(a));this.stop();break;case "AdExpandedChange":this.la("expandedChanged");break;case "AdImpression":b=this.ma();g.fb(Wr(b))||this.sd(b);this.la("impression");
break;case "AdLinearChange":b=iw(this);!this.A&&b?(this.la("contentPauseRequested"),g.ng(this.G)):this.A&&!b&&(this.la("contentResumeRequested"),jw(this));this.A=b;a=this.Vc;a.Za=!0;a.sa=b;this.la("linearChanged");break;case "AdVolumeChange":b=this.getVolume();b!=this.B&&(this.la("volumeChange"),0==b&&0!=this.B?(this.Ea("mute"),this.la("mute")):0==this.B&&0!=b&&this.Ea("unmute"),this.B=b);break;case "AdPaused":wu(this,"pause");break;case "AdUserClose":wu(this,"userClose");break;case "AdUserMinimize":this.Ea("collapse");
break;case "AdVideoFirstQuartile":wu(this,"firstquartile");break;case "AdVideoMidpoint":wu(this,"midpoint");break;case "AdVideoThirdQuartile":wu(this,"thirdquartile");break;case "AdVideoComplete":kw(this);break;case "AdUserAcceptInvitation":this.A?this.Ea("acceptinvitationlinear"):this.Ea("acceptinvitation");break;case "AdStopped":kw(this);this.Ea("stop");this.stop();break;case "AdSkipped":wu(this,"skip");break;case "AdSkippableStateChange":wu(this,"skippableStateChanged");break;case "AdPlaying":wu(this,
"resume");break;case "AdLog":this.la("log")}};g.C(nw,pu);var mpa=yd(od(pd("https://imasdk.googleapis.com/flash/sdkloader/flashinhtml.swf")));yd(od(pd("http://imasdk.googleapis.com/flash/sdkloader/flashinhtml.swf")));g.h=nw.prototype;g.h.V=function(){this.F=!1;this.g&&(this.g.dispose(),this.C=null);g.ng(this.G);this.A&&this.la("contentResumeRequested");this.la("allAdsCompleted");nw.aa.V.call(this)};
g.h.Oc=function(){var a=this.fd("getAdRemainingTime");return g.oa(a)?a:-1};
g.h.getVolume=function(){var a=this.fd("getAdVolume");return g.oa(a)?a:-1};
g.h.Rc=function(a,b,c){nw.aa.Rc.call(this,a,b,c);this.A=this.ma().g instanceof rp};
g.h.init=function(a){nw.aa.init.call(this,a);window[this.W]=(0,g.A)(this.EH,this);this.Xa().X(Rn(),u3,this.rj);this.g=new Iu(mpa);this.g.setSize(this.O,this.J);this.g.Il="always";var b=this.ma();a=Fs(b);a=g.F(a);if(E(a))qw(this,lw,Error("Flash VPAID ad url is empty.")),this.stop();else{if(vu(b)){var b=b.g,c=up(b);null!=c&&(b.C=c)}this.g.o.set("vpaid",a);this.g.so="transparent";this.g.o.set("vpaidEventHandler",this.W);this.Qa.od();Gu(this.g,this.Qa.Bf());this.C=Ju(this.g);this.G=g.mg(this.GH,this.Va.cf,
this)}};
g.h.start=function(){if(this.F){nw.aa.start.call(this);var a=this.ma();this.Rb.B=a.K;var b=cq(a);this.Rb.g=b;if(b=a.g)this.yg(a),this.Vf(b,t3),this.wj(b),zu(this,a);this.Qa.od();Bu(this);this.Ea("show_ad");this.setVolume(this.B);this.o=new g.kg(250);this.Xa().X(this.o,"tick",this.FH);this.A?this.la("contentPauseRequested"):(this.la("contentResumeRequested"),pw(this));this.o.start();this.fd("startAd")}else this.M=!0};
g.h.stop=function(){this.ba||(this.ba=!0,this.fd("stopAd"),this.Qa.hide(),null!=this.o&&(this.o.stop(),this.o=null),nw.aa.stop.call(this))};
g.h.Ab=function(a,b,c){nw.aa.Ab.call(this,a,b,c);this.O=a;this.J=b;null!=this.g&&this.g.setSize(a,b);this.fd("resizeAd",a,b,c)};
g.h.pause=function(){null!=this.o&&this.o.stop();this.fd("pauseAd")};
g.h.resume=function(){null!=this.o&&this.o.start();this.fd("resumeAd")};
g.h.setVolume=function(a){this.B=a;this.fd("setAdVolume",a)};
g.h.expand=function(){this.fd("expandAd")};
g.h.collapse=function(){this.fd("collapseAd")};
g.h.qj=function(){};
g.h.Vb=function(){return ow(this)};
g.h.skip=function(){this.fd("skipAd")};
g.h.getDuration=function(){var a=this.fd("getAdDuration");if(g.oa(a))return a;a=this.Oc();return 0<=a?this.D/1E3+a:-2};
g.h.FH=function(){this.D+=250;var a=this.getDuration(),b=a-this.Oc();Cu(this,b,a)};
g.h.fd=function(a){if(!this.g||!this.C)return null;for(var b=[],c=0;c<arguments.length;c++)b.push(arguments[c]);var c=b.shift(),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.GH=function(){qw(this,x3,null,(this.Va.cf/1E3).toString());this.stop()};
g.h.getCurrentTime=function(){return this.D/1E3};
g.h.EH=function(a,b){switch(a){case "flashReady":this.fd("handshakeVersion","2.0");var c=Xr(this.ma());this.C.initAd(this.O,this.J,this.Yc,this.Va.bitrate,c);break;case "AdLoaded":g.ng(this.G);this.F=!0;var c=this.fd("getAdCompanions"),d=g.u(c)?c:"",c=this.ma();g.fb(Wr(c))&&(d=bw(d,c.g.g),g.fb(d)||Ir(c,d));wu(this,"loaded");this.M&&(this.M=!1,this.start());break;case "AdStarted":this.Ea("impression");this.Ea("creativeview");this.la("start");break;case "AdVideoStart":this.Ea("start");break;case "AdClickThru":b&&
b.playerHandles&&((c=b.url)||(c=g.F(Zr(this.ma()))),null!=c&&Qm(c));this.Ea("click");this.la("click");break;case "AdDurationChange":this.la("durationChange");break;case "AdRemainingTimeChange":this.la("durationChange");pw(this);break;case "AdError":c="AdError";b&&(c=b.message);qw(this,lw,Error(c));this.stop();break;case "AdExpandedChange":this.la("expandedChanged");break;case "AdImpression":c=this.ma();g.fb(Wr(c))||this.sd(c);this.la("impression");break;case "AdLinearChange":c=ow(this);!this.A&&c?
(this.la("contentPauseRequested"),g.ng(this.K)):this.A&&!c&&(this.la("contentResumeRequested"),pw(this));this.A=c;d=this.Vc;d.Za=!0;d.sa=c;this.la("linearChanged");break;case "AdVolumeChange":c=this.getVolume();c!=this.B&&(c!=this.B&&this.la("volumeChange"),0==c&&0!=this.B?(this.Ea("mute"),this.la("mute")):0==this.B&&0!=c&&this.Ea("unmute"),this.B=c);break;case "AdPaused":wu(this,"pause");break;case "AdUserClose":wu(this,"userClose");break;case "AdUserMinimize":this.Ea("collapse");break;case "AdVideoFirstQuartile":wu(this,
"firstquartile");break;case "AdVideoMidpoint":wu(this,"midpoint");break;case "AdVideoThirdQuartile":wu(this,"thirdquartile");break;case "AdVideoComplete":rw(this);break;case "AdUserAcceptInvitation":this.A?this.Ea("acceptinvitationlinear"):this.Ea("acceptinvitation");break;case "AdStopped":rw(this);this.Ea("stop");this.stop();break;case "AdSkipped":wu(this,"skip");break;case "AdSkippableStateChange":wu(this,"skippableStateChanged");break;case "AdPlaying":wu(this,"resume");break;case "AdLog":this.la("log")}};g.C(tw,sm);ww.prototype.g=null;var P3;g.C(zw,ww);P3=new zw;g.C(Bw,g.xf);Bw.prototype.bb=null;var nga=/^https?$/i,npa=["POST","PUT"];g.h=Bw.prototype;
g.h.send=function(a,b,c,d){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.W+"; newUri="+a);b=b?b.toUpperCase():"GET";this.W=a;this.D="";this.o=0;this.O=!1;this.A=!0;this.g=this.M?Aw(this.M):Aw(P3);this.K=this.M?yw(this.M):yw(P3);this.g.onreadystatechange=(0,g.A)(this.pw,this);try{this.getStatus(),this.P=!0,this.g.open(b,String(a),!0),this.P=!1}catch(f){this.getStatus();Fw(this,f);return}a=c||"";var e=this.headers.clone();d&&Wca(d,function(a,b){e.set(b,a)});
d=g.$a(e.Cb(),mga);c=pa.FormData&&a instanceof pa.FormData;!g.eb(npa,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.ca&&(this.g.responseType=this.ca);"withCredentials"in this.g&&this.g.withCredentials!==this.G&&(this.g.withCredentials=this.G);try{Jw(this),0<this.C&&(this.ba=lga(this.g),this.getStatus(),this.ba?(this.g.timeout=this.C,this.g.ontimeout=(0,g.A)(this.qw,this)):this.F=g.mg(this.qw,this.C,this)),this.getStatus(),this.J=!0,this.g.send(a),this.J=!1}catch(f){this.getStatus(),Fw(this,f)}};
g.h.qw=function(){"undefined"!=typeof Gw&&this.g&&(this.D="Timed out after "+this.C+"ms, aborting",this.o=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))};
g.h.abort=function(a){this.g&&this.A&&(this.getStatus(),this.A=!1,this.B=!0,this.g.abort(),this.B=!1,this.o=a||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Ew(this))};
g.h.V=function(){this.g&&(this.A&&(this.A=!1,this.B=!0,this.g.abort(),this.B=!1),Ew(this,!0));Bw.aa.V.call(this)};
g.h.pw=function(){this.na()||(this.P||this.J||this.B?Iw(this):this.VO())};
g.h.VO=function(){Iw(this)};
g.h.isActive=function(){return!!this.g};
g.h.getStatus=function(){try{return 2<Hw(this)?this.g.status:-1}catch(a){return-1}};g.p(Mw,Yi);Mw.prototype.P=function(){if(this.o&&this.O){if(0<this.events.length||0<yba(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(Nw(b)):a[c]=[Nw(b)]});
qga(this,a);this.C++;this.C===this.K&&this.oj()}this.events.length=0;this.g.clearTimeout(this.A);this.A=0}};
Mw.prototype.Ln=function(a){this.C<this.K&&(Yi.prototype.Ln.call(this,a),200<=this.events.length&&this.P())};
Mw.prototype.oj=function(){Yi.prototype.oj.call(this);this.g.clearTimeout(this.A);this.A=0;Uh(this.g,"unload",this.B);Uh(this.g,"load",this.J)};Qw.prototype.isLoggingEnabled=function(){return!!this.g};
g.qa(Qw);g.C(Tw,g.M);Tw.prototype.V=function(){this.o.enabled&&this.o.stop();this.g=[];Tw.aa.V.call(this)};
Tw.prototype.D=function(){var a=1E3*this.K.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.J=!0,b=this.K,null!=b.o&&Vw(b.o),Ix(b,bpa,Zm(bpa)))};Ww.prototype.isListed=!0;Ww.prototype.Uf=-1;g.C(Yw,g.xf);g.h=Yw.prototype;g.h.start=function(){this.xq();this.A=0;Zw(this);this.o=!0;this.C.start()};
g.h.play=function(){this.o||(Zw(this),this.o=!0,this.C.start())};
g.h.pause=function(){this.o&&Zw(this)};
g.h.stop=function(){this.o&&Zw(this);this.dispatchEvent("end")};
g.h.xq=function(){};
g.h.OO=function(){this.A+=.2;this.wq(this.A,this.O);this.dispatchEvent("timeUpdate");0>=this.O-this.A&&this.stop()};
g.h.wq=g.z;g.h.V=function(){this.o=!1;this.K.dispose();Yw.aa.V.call(this)};g.C(ax,Yw);g.h=ax.prototype;g.h.start=function(){this.xq();this.B.update(0,this.J);gt(this.g,this.G.A).play();this.K.X(this.B,"skip",this.lF);ax.aa.start.call(this)};
g.h.xq=function(){var a=g.uh(this.g);if(1==this.F){var b=400>=(0,window.parseInt)(g.fh(this.g,"width"),10)||400>=a.width;g.S(this.g,"videoAdUi-mobile",b)}else if(2==this.F){var c=g.Be(this.g);var d=g.uh(c);var e=65>=(a.height-d.height)/2;g.S(this.g,"fullslotAdUi-mobile",e);b=165>=(a.width-d.width)/2;g.S(this.g,"videoAdUi-mobile",b&&e);c.style.top=Math.max(5,Math.floor((a.height-d.height-65)/2))+"px"}};
g.h.lF=function(){this.pause();this.dispatchEvent("skip")};
g.h.wq=function(a,b){this.B.update(a,b);if(this.D){var c=Xw({Cg:$w(b-a)});g.Fe(this.D,c)}};
g.h.V=function(){this.B&&this.B.dispose();g.te(this.g);ax.aa.V.call(this)};g.C(dx,Yw);var cx=Math.ceil(10*3.14);dx.prototype.F=function(a){P.g()||a.stopPropagation();this.dispatchEvent("click")};
dx.prototype.start=function(){dx.aa.start.call(this);null==this.g?this.stop():this.J&&(this.P&&780<=g.uh(this.W).width&&this.J.Sw(!0),this.J.Aq())};
dx.prototype.wq=function(a,b){var c=a/b*cx+" "+cx;null!=this.g&&g.bh(this.g,"stroke-dasharray",c)};g.C(ex,g.M);ex.prototype.show=function(a,b){fx(this);FO&&a?(a.appendChild(this.A),this.g=g.mg((0,g.A)(this.o,this,b),2E3)):b()};
ex.prototype.o=function(a){this.g=0;g.we(this.A);a()};
ex.prototype.V=function(){fx(this);ex.aa.V.call(this)};gx.prototype.isPharma=function(){return this.K};g.C(hx,g.Te);g.C(ix,g.xf);jx.prototype.muted=function(a,b){return!this.mute&&a||0!=this.volume&&0==b};
var Bga={click:3,videoLearnMoreClicked:3,videoShareClicked:8,videoTitleClicked:14,videoAuthorClicked:15,videoAuthorIconClicked:15};g.h=ix.prototype;g.h.V=function(){this.Wc();ix.aa.V.call(this)};
g.h.Wc=function(){null!=this.o&&this.o.dispose();null!=this.g&&this.g.Wc();null!=this.D&&this.D.dispose();this.D=null;null!=this.J&&this.J.dispose();this.J=null;this.O.clear();this.K=-1;this.F="";this.G=this.P=!1};
g.h.Gb=function(a,b,c,d){this.Wc();this.B.B=a.K;this.g=b;this.A=d||null;this.g.Gb();this.C=new jx(this.g);this.M=c||null;this.o=new g.dm(this);this.F=a.K;a=P.o?io():Rn();this.o.X(a,"externalActivityEvent",this.uN);this.o.X(a,"measurable_impression",this.XN);this.o.X(a,"viewable_impression",this.cQ);this.o.X(this.g,"timeUpdate",this.jI);this.o.X(this.g,"volumeChange",this.kI);this.o.X(this.g,"pause",this.gI);this.o.X(this.g,"play",this.hI);this.o.X(this.g,"end",this.rN);this.o.X(this.g,"beginFullscreen",
this.eI);this.o.X(this.g,"endFullscreen",this.tN);this.o.X(this.g,"skip",this.ax);this.o.X(this.g,"skipShown",this.Qz);this.o.X(this.g,"start",this.iI);this.o.X(this.g,"error",this.dI);this.o.X(this.g,"mediaLoadTimeout",this.fI);null!=this.A&&(this.o.X(this.A,"videoIconClicked",(0,g.A)(function(a){this.dispatchEvent(a)},this)),this.o.X(this.A,"urlNavigationRequested",(0,g.A)(function(a){this.dispatchEvent(a)},this)),this.o.X(this.A,"videoShareShown",this.bQ),this.o.X(this.A,"skipshown",this.Qz),this.o.X(this.A,
"skip",this.ax),this.o.X(this.A,"PUBLISHER_INVOKED_SKIP",this.SO),this.o.X(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.dG))};
g.h.XN=function(a){var b=a.g;this.B.G.measurable_impression=null!=b?b.viewabilityString:null;a.g.queryId==this.F&&kx(this,"measurable_impression",!0,!1)};
g.h.cQ=function(a){a=a.g;a.queryId==this.F&&(this.B.G.viewable_impression=null!=a?a.viewabilityString:null,kx(this,"viewable_impression",!0,!0))};
g.h.uN=function(a){a=a.g;var b=v3[a.eventName];b&&a.queryId==this.F&&(this.B.G[b]=null!=a?a.viewabilityString:null,kx(this,b,!0,!0))};
g.h.jI=function(){if(this.G){var a=this.g.getDuration();if(-1!=a){this.g.Xj(.25*a)&&kx(this,"firstquartile",!0,!0);this.g.Xj(.5*a)&&kx(this,"midpoint",!0,!0);this.g.Xj(.75*a)&&kx(this,"thirdquartile",!0,!0);var b=this.B,c=this.g.getCurrentTime();if(!Hl(b.o,"skip")){0>b.C&&(Sda(b.A,a),b.C=0);for(var a=gp(b.A,"progress"),d=[],e=b.C;e<a.length;e++){var f=a[e];if(kp(f.o)>c)break;b.C=e+1;d.push(f.g)}0<d.length&&mu(b,new g.Te("progress"),d)}}lx(this)}};
g.h.iI=function(){this.G=!0;kx(this,"impression",!0,!0);kx(this,"creativeview",!0,!0);null!=this.M||null!=this.A||this.o.X(this.g,"click",this.Lq);null!=this.M&&(this.D=new Ls,this.o.X(this.D,"click",this.Lq,!1),this.D.Gb(this.M));null!=this.A&&(this.J=new Ls,this.o.X(this.J,"click",this.Lq,!1),this.J.Gb(this.A));kx(this,"start",!0,!0);(this.g.aj()||0==this.g.getVolume())&&kx(this,"mute",!1,!1)};
g.h.kI=function(){var a=this.g.aj(),b=this.g.getVolume(),c=this.C;c.mute&&!a||!a&&0==c.volume&&0<b?kx(this,"unmute",!1,!1):this.C.muted(a,b)&&kx(this,"mute",!1,!1);this.C.mute=a;this.C.volume=b};
g.h.gI=function(){this.g.Yg()?mx(this):this.g.Vh()&&!this.g.Rw()&&(this.C.paused=!0,kx(this,"pause",!1,!1))};
g.h.hI=function(){this.C.paused&&(this.C.paused=!1,kx(this,"resume",!1,!1))};
g.h.rN=function(){mx(this)};
g.h.Lq=function(){kx(this,"click",!1,!1)};
g.h.dI=function(){kx(this,"error",!1,!1)};
g.h.fI=function(){kx(this,"mediaLoadTimeout",!1,!1)};
g.h.Qz=function(){kx(this,"skipshown",!0,!1)};
g.h.dG=function(a){kx(this,a.type,!1,!1)};
g.h.bQ=function(){kx(this,"videoShareShown",!0,!1)};
g.h.ax=function(){kx(this,"skip",!0,!1)};
g.h.SO=function(){kx(this,"skip",!0,!1)};
g.h.eI=function(){kx(this,"fullscreen",!1,!1)};
g.h.tN=function(){kx(this,"exitfullscreen",!1,!1)};g.h=ox.prototype;g.h.Nc=function(){return this.g.Nc()};
g.h.remove=function(a){return this.g.remove(px(a))};
g.h.clear=function(){this.g.clear()};
g.h.isEmpty=function(){return this.g.isEmpty()};
g.h.contains=function(a){return Hl(this.g,px(a))};
g.h.fb=function(){return this.g.fb()};
g.h.clone=function(){return new ox(this)};
g.h.Sd=function(){return this.g.Sd(!1)};g.C(rx,pu);g.h=rx.prototype;g.h.V=function(){vx(this);this.W.dispose();tx(this);g.H(this.J.fb(),g.ng);var a=!1;null!=this.Qa&&(a=this.Qa.Tm(),this.Qa.hide(),this.Qa=null);this.G&&(this.G=!1,this.Da.Vh()||this.Da.Yg()||this.Da.pause(),hn()&&!a&&(this.Da.bj(.001),this.Da.load("","")),gn()&&this.Da.Zi()&&!a&&this.Da.zq(),this.la("contentResumeRequested"),this.la("allAdsCompleted"));null!=this.Da&&this.Da.unload();null!=this.o&&(g.Re(this.o),this.o=null);rx.aa.V.call(this)};
g.h.muteAd=function(){P.g()&&(this.Ea("mute_interaction_url"),this.Ea("mute_url"),this.la("MUTE_AD"),sx(this,function(){ux(this)}))};
g.h.whyThisAdClicked=function(){P.g()&&this.Ea("why_this_ad_url")};
g.h.whyThisAdClosed=function(){P.g()&&this.Ea("why_this_ad_got_it")};
g.h.bl=function(){tx(this);rx.aa.bl.call(this);this.yb()&&(this.Rb=new lu,this.B=new ix(this.Rb),this.O=!1,this.la("loaded"))};
g.h.Lr=function(a){rx.aa.Lr.call(this,a);null!=this.Da&&this.Da.os(1)};
g.h.Kv=function(a,b){b.preventDefault();this.F||(this.F=!0,wu(this,"video_card_endcap_action"));a&&(this.g.pause(),Qm(a))};
g.h.Lv=function(){sx(this,function(){wx(this,"video_card_endcap_dismiss")})};
g.h.UF=function(){wx(this,"video_card_endcap_collapse")};
g.h.BI=function(a,b,c){var d=Sp(b);d&&(a.D=d);var e=a.getExtension("AdSense");null!=e&&null!=e.o&&e.o.o&&this.setVolume(0);if(this.Va.pB){d=a.getExtension("AdSense");(e=this.da)||(e=null===b?!1:"modules"==(new g.Ll(b)).Oh().toLowerCase()||Vp(b));var f=e||null!=d&&d.G,d=a.isBumper()?null:Bs(a);if((P.g()||tn()?0:dn()&&(!this.yk()||null==this.Qa||!this.Qa.Ep())||Hs(a)||this.Va.Rs)||!P.g()&&f)this.Va.Ps=!0,this.Va.Rs=!0;e=cq(a,this.Da);if(P.g()||this.Va.Rs){var k=E(g.F(Zr(a)))?!1:this.Va.Ps,l=Fm().g.g("enable_instream_ad_badge"),
m=a.isBumper(),n=this.Va,q=P.g()||!1,r=P.g(),d=et(f,a.D,d,m,n,e);d.B=k;d.Sa=n.RR;d.oa=q;d.ka=!0;d.ga=r;d.A=l;d.K=n.Os;d.ra=n.Qs;d.sa=n.SR;d.da=0;n.Os&&(d.dh=""+Aa("Visit Advertiser"))}else Sr(a)?(k=a.D,l=a.isBumper(),!E(g.F(k))&&null!==d&&0<kp(d)&&(f=!0),d=et(f,k,d,l,this.Va,e),d.ca=f?Dea:Cea):(k=a.isBumper(),d=et(f,a.D,d,k,this.Va,e),d.G=!1,d.F=!1,d.o=!1);Hm(Fm(),420706069)&&(P.D=!0);!P.g()&&P.D&&(d.P=!0);e=d;f=this.Qa.mk();null===f?f=window.document.body:g.te(f);k=this.ma();l=1E3*k.getDuration();
n=k.getExtension("why_this_ad");q=k.getExtension("mute");e.M=new Zs(n,q);$s(e.M)&&(q=null!=n?n.B:void 0,n="<span class='videoAdUiAdSettingsShortTooltip'>",q?n+=Q(q):(q=Aa("Click for Ad Settings"),n+=q),n=Ho(n+"</span>"),e.ke=n);this.Ha=new du(e,f,l,k.Ue());f=k.D;null!=f&&zx(this,f,e.sa);e=this.Ha;e.W&&(e=e.W,f=0==this.D,e.g!=f&&(e.g=f,jt(e)));this.da&&(f=a.getExtension("AdSense"),null!=f?(e=this.Ha,f=g.F(f.A),null!=e.K&&(g.O(e.K,!0),f=new g.Ll(f),f=Ia((f.o+f.A).replace(/^www\./i,""),35),E(g.F(f))?
hu(e):g.Fe(e.K,f)),null!=e.da&&g.O(e.da,!0)):hu(this.Ha));e=[];d.F&&e.push("adAttribution");d.o&&e.push("countdown")}else d&&zx(this,d,this.Va.fp);if(d=this.Da)this.As(a),d.Tn(Gga(this,a)),d.load(b,c)};
g.h.Du=function(a){var b=this.yb()?this.ma().D:null;if(b){var c=this.jk();xx(this)&&a&&(c=Qga(this,c,a));a=this.ik();c||a||!xx(this)||(c=" ");(c||a)&&this.Da.yq(b,c||null,a||null)}};
g.h.xQ=function(a,b,c){null!==a.M&&Ln(In.getInstance(),34,{evt:"filled"},!0);this.ca||(this.ca=!0,this.la("contentPauseRequested"));this.BI(a,b,c);this.G=!0;this.setVolume(this.D);this.Ha&&(E(g.F(Cx(a)))?(b=this.Ha,null!=b.C&&(b.A.za(b.C,"click",b.po),g.bh(b.C,"cursor","default"))):(b=this.Ha,null!=b.C&&(b.A.X(b.C,"click",b.po),null!=b.F&&!g.xh(b.F)&&g.bh(b.C,"cursor","pointer"))),b=a.g.Za,g.fb(b)||gu(this.Ha,b),this.Ha.show());this.Ea("show_ad");this.Qa.rg();try{this.sd(a)}catch(d){Ix(this,w3,d);
return}Fx(this);Sw("pi");if(b=null!=this.Ha)b=this.Ha,b=dn()?!1:null!=b.g.O?b.g.J&&b.g.O==as(a):b.g.J;b?Fga(this):this.W.show(this.Qa.mk(),(0,g.A)(this.Da.play,this.Da))};
g.h.As=function(a){this.B.Gb(a,this.Da,this.Qa.Rp(),this.Ha);this.Xa().X(this.B,"engagedview urlNavigationRequested videoAuthorIconClicked videoAuthorClicked videoClicked videoIconClicked videoLearnMoreClicked videoMuteClicked videoShareClicked videoShareShown videoTitleClicked videoUnmuteClicked start".split(" "),this.Vz);this.Xa().X(this.Da,"loaded",this.ZP);this.Xa().X(this.Da,"cardsStateChange",this.JH);this.Xa().X(this.Da,"timeUpdate",this.Zz);this.Xa().X(this.Da,"volumeChange",this.MH);this.Xa().X(this.Da,
"shareClicked",this.IA);this.yg(a);var b=cq(a,this.Da);this.Rb.g=b;b=a.g;null!=b&&b instanceof rp&&(this.Vf(b,t3),this.wj(b),b=this.Xa(),em(b,this.B,"error",this.KH,!1,this),em(b,this.B,"mediaLoadTimeout",this.LH,!1,this));zu(this,a);a.isSkippable()&&(this.B.K=30)};
g.h.qj=function(){this.la("loaded");this.dispatchEvent(new tw(this.ma()))};
g.h.skip=function(){this.yb()&&this.ma().isSkippable()&&(null!=this.Ha?this.Ha.skip():(this.Ea("skip"),Px(this)))};
g.h.JA=function(){wu(this,"skipshown")};
g.h.start=function(){rx.aa.start.call(this);this.M=[];try{var a=this.ma();this.A=Ex(this,a);Fx(this);Sw("am");sx(this,(0,g.A)(rx.prototype.xQ,this,a,this.A.o,this.A.g))}catch(b){Hx(this,b),this.bl(),this.yb()?(an(this,Jx,b),this.start()):(this.G?an(this,Jx,b):(null!=this.Gd&&this.Gd.sd(xA()),bn(this,Jx,b)),this.stop())}};
g.h.getVolume=function(){yu(this);return this.Da.aj()?0:this.Da.getVolume()};
g.h.setVolume=function(a){yu(this);this.G?this.Da.setVolume(a):this.D=a};
g.h.pause=function(){yu(this);this.g?this.g.pause():this.Da.pause();if(null!=this.o){var a=this.o;a.o.enabled&&a.o.stop();a.g=[]}};
g.h.resume=function(){yu(this);this.g?this.g.play():this.Da.play();null!=this.o&&Uw(this.o)};
g.h.getCurrentTime=function(){yu(this);var a=this.g?this.g.A:0;return this.Da.getCurrentTime()+a};
g.h.getDuration=function(){yu(this);var a=this.yb()?Ds(this.ma()):0;return this.Da.getDuration()+a};
g.h.Oc=function(){yu(this);var a=this.getDuration(),b=this.getCurrentTime();return 0<=a&&0<=b?Math.max(0,a-b):-1};
g.h.ze=function(){return this.Da.ze()};
g.h.KH=function(){Ix(this,Jx,Zm(Jx,this.Da.getError()))};
g.h.LH=function(){Kga(this);Ix(this,x3,Zm(x3,null,(this.Va.cf/1E3).toString()))};
g.h.es=function(a,b){rx.aa.es.call(this,a,b);Lx(this,a)};
g.h.Vz=function(a){switch(a.type){case "start":Sw("ff");this.la("start");P.g()&&P.A&&this.ma()&&this.ma().J&&this.la("youtubeKevlarCompanionShow");this.dj();null!=this.o&&(g.Re(this.o),this.o=null);Hm(Fm(),420706029)&&(P.ca=5E3);!Hm(Fm(),420706025)&&!Hm(Fm(),420706029)||P.g()||(this.o=new Tw(this),Uw(this.o));this.K=!0;this.Ha&&(P.D&&!P.g()&&(this.Ha.Ub=!0),ku(this.Ha));break;case "impression":this.la("impression");break;case "viewable_impression":this.la("viewable_impression");break;case "why_this_ad_url":this.fa=
this.Da.Vh();Gx(this,"why_this_ad_url");this.pause();break;case "pause":this.la("pause");break;case "why_this_ad_got_it":Gx(this,"why_this_ad_got_it");this.fa||this.resume();break;case "resume":this.la("resume");break;case "firstquartile":this.la("firstquartile");break;case "midpoint":this.la("midpoint");break;case "thirdquartile":this.la("thirdquartile");break;case "complete":this.Ha&&eu(this.Ha,"complete",this.getCurrentTime(),vs(this.ma()));Ega(this)||(this.la("complete"),this.Ea("instreamAdComplete"),
ux(this));break;case "click":this.Ha&&this.Ha.g.B?this.Da.Vh()?this.resume():this.pause():Kx(this);break;case "engagedview":Mx(this);this.la("engagedview");break;case "urlNavigationRequested":this.dispatchEvent(a);break;case "videoAuthorIconClicked":Rx(this);break;case "videoAuthorClicked":Rx(this);break;case "videoClicked":this.la("videoClicked");break;case "videoIconClicked":this.dispatchEvent(a);break;case "videoLearnMoreClicked":this.g&&!this.F&&(this.F=!0,wu(this,"video_card_endcap_action"));
!P.g()&&Mx(this);Kx(this);this.Da.pause();break;case "videoShareClicked":Mga(this);break;case "videoShareShown":Nga(this);break;case "videoTitleClicked":Oga(this);break;case "videoMuteClicked":this.ba=this.D;this.setVolume(0);break;case "videoUnmuteClicked":this.setVolume(this.ba);break;case "skipshown":this.la("skippableStateChanged");break;case "skip":this.Ha&&eu(this.Ha,"skip",this.getCurrentTime(),vs(this.ma()));this.g?this.Lv():Px(this);break;case "MUTE_AD":this.la("MUTE_AD"),sx(this,function(){ux(this)})}};
g.h.hf=function(){rx.aa.hf.call(this);this.Ha&&eu(this.Ha,"abandon",this.getCurrentTime(),vs(this.ma()));this.C&&(g.Re(this.C),this.C=null)};
g.h.IA=function(){var a=Nx(this)||Ox(this);null!=a&&Sm(a,"sharebuttonclicked")};
g.h.yg=function(a){rx.aa.yg.call(this,a);Lx(this,"impression")};
g.h.Vf=function(a,b){rx.aa.Vf.call(this,a,b);(0,g.H)(b,function(a){Lx(this,a)},this)};
g.h.wj=function(a){rx.aa.wj.call(this,a);a instanceof rp&&(a=sp(a),(0,g.H)(a.Cb(),function(a){Lx(this,a)},this))};
g.h.Ri=function(){if(!this.yb())return null;try{var a=this.ma();if(null==a)return null;var b=Ex(this,a);return null!=b?b.o:null}catch(c){return null}};
g.h.Tg=function(){if(!this.yb())return null;var a=this.ma();if(!vu(a))throw Zm(Dx);a=a.g.Sg();return g.fb(a)?null:a[0].o};
g.h.ZP=function(){this.la("adCanPlay")};
g.h.JH=function(){var a=this.Ha;null!=a.o&&g.S(a.o,"ytp-iv-drawer-open",this.Da.Qw())};
g.h.Zz=function(){var a=this.getDuration();yu(this);var b=this.g?this.getDuration():this.Da.Zv();var c=this.getCurrentTime(),d=0,e=0;this.yb()&&(e=this.ma(),d=e.C.g,e=e.C.Yf);if(null!=this.Ha&&0<=a&&0<=c){if(!this.P&&3==this.ma().Ra){var f=this.Da.getDuration(),k=vs(this.ma()),f=Math.abs(f-k);2<f&&(f=Zm(cpa,null,Number(f).toFixed(2)),f=bq(f,this.ma(),this.Da),k=Ur(this.ma()),Vm(k,f));this.P=!0}this.Ha.update(c,b,a,d,e)}};
g.h.MH=function(){var a=this.Da.getVolume();if(a!=this.D&&(this.D=a,this.la("volumeChange",{volume:a}),0==a&&this.la("mute"),this.Ha)){var b=this.Ha;b.W&&(b=b.W,a=0==a,b.g!=a&&(b.g=a,jt(b)))}};
g.h.UQ=function(a){var b=this.yb()&&sfa(this.ma());return!a||E(g.F(a.channelId))||!a.isListed&&!b?Wf():new g.Rf(function(b,d){pga(a.channelId,function(a){a=new to(a);b(a)},function(){d()},this)},this)};
g.h.IF=function(a){var b=Fm().g,c=this.ma();if((g.fb(Wr(c))||!Wr(c)[0].B)&&!b.g("website_actions_holdback")&&P.g()&&Hs(c)){var d=mfa(c,a);if(d){$r(c,[d]);P.A&&b.g("show_kevlar_companion_on_video_ad_start")&&this.K&&c.J&&this.la("youtubeKevlarCompanionShow");try{this.sd(c)}catch(n){Ix(this,w3,n)}}}if(d=this.Ha)var d=this.ma(),e=d.P,d=P.g()&&g.fb(Wr(d))&&null!=d.ka&&null!=e&&e.isListed;P.A&&(d=d&&!c.J);if(d){this.Xa().X(window,"message",this.tG);var d=this.ma(),e=d.ka.channelId,f=gq(d),k=this.Va.contentId,
l=this.Va.Ci,l=new g.Ll((null!=l?l:"//www.youtube.com/")+"ad_companion"),m=l.g;m.set("adformat",f);m.set("p",e);m.set("render","video_wall_companion");k&&m.set("content",k);e=new yp("1",new g.Wd(300,250),"IFrame",null,l.toString());e.J=d;e.D=!0;d=new Iq(e,[],null,!0);P.A?(P.g()&&P.A&&"IFrame"===d.g.O&&(e=d.Vm(),c.J={iframeCompanionRenderer:{width:e.width,height:e.height,url:d.g.A}}),b.g("show_kevlar_companion_on_video_ad_start")&&this.K&&c.J&&this.la("youtubeKevlarCompanionShow")):ts(c,d);this.sd(c)}ws(c)||
b.g("website_actions_holdback")||b.g("website_actions_endcap_holdback")||!Hs(c)||kfa(c,a);return a};
g.h.tG=function(a){var b=a.g;if("companion-setup-complete"==b.data){a=this.ma();var c=(0,window.encodeURIComponent)(g.F(Zr(a)))+","+(0,window.encodeURIComponent)((Nx(this)||Ox(this)).toString());b.source.postMessage(c,"*");b=b.source.frameElement;b.parentNode.style.cssText="";b.width=370;b.height=null!=Zr(a)?210:185}else"pause-video"==b.data&&this.pause()};
g.h.pR=function(a){if(null!=this.Ha&&a.isListed){var b=this.Ha,c=a.title;b.g.W=!E(g.F(c));b.g.title=c;null!=b.G&&g.Fe(b.G,b.g.title);cu(b);b=this.Ha;null!=b.qb?g.Fe(b.qb,""+Aa("Share")):null!=b.O&&g.Fe(b.O,""+Aa("Share"));b=this.Ha;c=a.Uf;null!=c&&(b.g.Uf=c);cu(b)}this.yb()&&(this.ma().P=a,this.la("youTubeVideoMetadata"));return a};
g.h.oR=function(a){if(null!=this.Ha&&Qx(this)){var b=this.Ha,c=a.authorName;b.g.Fa=!E(g.F(c));b.g.authorName=c;null!=b.D&&(c=Aa("by {$userDisplayName}",{userDisplayName:""+b.g.authorName}),g.Fe(b.D,(new xo(""+c,void 0)).hd()));cu(b);b=this.Ha;c=a.channelIconThumbnailUrl;b.g.ua=!E(g.F(c));if(null!=b.P){var d=g.pe("img");d.setAttribute("src",c);g.R(d,"videoAdUiAuthorIconImage");b.P.appendChild(d);null!=b.G&&g.R(b.G,"videoAdUiTitleWithAuthorIcon");null!=b.D&&g.R(b.D,"videoAdUiAuthorNameWithAuthorIcon")}cu(b)}this.yb()&&
(this.ma().ka=a,this.la("youTubeChannelMetadata"));return a};
g.h.Ab=function(a,b,c){rx.aa.Ab.call(this,a,b,c);null!=this.Ha&&this.Ha.Ab()};g.C(Sx,g.xf);Sx.prototype.g=!1;Sx.prototype.connect=function(){for(this.g=!0;!g.fb(this.o);){var a=this.o.shift();this.sendMessage(a.name,a.type,a.data)}};
Sx.prototype.isConnected=function(){return this.g};
Sx.prototype.send=function(a,b,c){this.g?this.sendMessage(a,b,c):this.o.push({name:a,type:b,data:c})};
g.C(Tx,g.Te);Tx.prototype.getOrigin=function(){return this.A};
Tx.prototype.toString=function(){return""};g.C(Ux,Sx);Ux.prototype.sendMessage=function(a,b,c){null!=this.jf&&null!=this.jf.postMessage&&this.jf.postMessage(Rga(this,a,b,c),"*");null!=this.jf&&null==this.jf.postMessage&&Ln(In.getInstance(),11)};
Ux.prototype.V=function(){this.B.dispose();Ux.aa.V.call(this)};
Ux.prototype.receive=function(a){a=a.g;var b=Vx(a.data);if(Wx(this,b)){if(null==this.jf)this.jf=a.source,this.isConnected()||this.connect();else if(this.jf!=a.source)return;Wx(this,b)&&this.dispatchEvent(new Tx(b.name,b.type,b.data||{},b.sid,a.origin))}};g.C(Xx,g.Te);g.C(Yx,pu);g.h=Yx.prototype;
g.h.init=function(a){Yx.aa.init.call(this,a);this.W=g.mg(this.NH,this.Va.cf,this);this.Xa().X(window,"message",this.eQ);this.Xa().X(this.J,"tick",this.BQ);a=P.o?io():Rn();this.Xa().X(a,u3,this.rj);if(by())this.dispatchEvent(new Xx(0,this.C));else{a=Es(this.ma());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.Va.contentId&&(a=Ig(a,"v",this.Va.contentId));P.g()&&(b=Gg(a,"st"),b=Uga(this,
b?b+" yt":"yt"),a=Ig(a,"st",b))}a=g.F(a)}else{var b=new g.Ll(a),c=new g.Ll("http://tpc.googlesyndication.com/pagead/js/loader13.html");"https"==b.B&&Ml(c,"https");this.ba=b.o;a=Ql(c,a||"",void 0).toString()}this.A=g.ne("IFRAME",{src:Om(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.Xa().X(this.A,"load",this.KF);this.Qa.Bf().appendChild(this.A)}};
g.h.Rc=function(a,b,c){Yx.aa.Rc.call(this,a,b,c);this.o=this.ma().g instanceof rp;this.g=a.Sm(!1);by()||(this.Xa().X(this.g,"click end error loaded mediaLoadTimeout pause play timeUpdate volumeChange".split(" "),this.cP),this.Xa().X(this.g,Tz,this.UM))};
g.h.stop=function(){this.J.stop();this.Qa.hide();Yx.aa.stop.call(this)};
g.h.Vb=function(){return 1==this.o};
g.h.start=function(){Yx.aa.start.call(this);if(!P.g()){var a={};a.pid=Qw.getInstance().o;a.dn=this.ba;a["if"]=by();Ln(In.getInstance(),29,a,!0)}a=this.ma();this.Rb.B=a.K;var b=cq(a,this.g);this.Rb.g=b;if(b=a.g)this.yg(a),this.Vf(b,t3),this.wj(b),zu(this,a);this.g.Gb();this.Ea("show_ad");this.Qa.od();Bu(this);null!=this.A&&(this.A.style.display="block");this.g.setVolume(this.B);this.da=!0;this.o&&this.la("contentPauseRequested");ey(this)};
g.h.Ab=function(a,b,c){Yx.aa.Ab.call(this,a,b,c);ay(this,"resizeAd",{width:a,height:b,viewMode:c})};
g.h.pause=function(){this.D||ay(this,"pauseAd")};
g.h.resume=function(){this.D&&(ay(this,"resumeAd"),gy(this,"play"))};
g.h.setVolume=function(a){this.B=a;Yx.aa.setVolume.call(this,a);ay(this,"setAdVolume",{value:a})};
g.h.V=function(){by()&&this.dispatchEvent(new Xx(0,this.C));g.we(this.A);this.o&&(!this.O||this.g.Vh()||this.g.Yg()||this.g.pause(),this.la("contentResumeRequested"));this.la("allAdsCompleted");this.Tc=!1;this.G=[];g.ng(this.W);this.J.dispose();Yx.aa.V.call(this)};
g.h.qj=function(){};
g.h.KF=function(){if(!by()){var a=this.g.Xp();g.fb(a)&&(a=this.Va.mimeTypes);ay(this,"wrapperCall",{messageType:"supportedMimeTypes",supportedMimeTypes:a})}$x(this)};
var Tga={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_skip_in_10s:"skip-10",use_skip_in_15s:"skip-15",use_skip_in_20s:"skip-20",use_survey_length_15s:"time-15",use_survey_length_45s:"time-45",use_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"};g.h=Yx.prototype;g.h.eQ=function(a){a=a.g;if(by()){if(a=Vx(a.data),null!=a){try{var b=g.Ic(a.data)}catch(c){return}null!=b&&b.session==this.C&&fy(this,b)}}else if(a.source==this.A.contentWindow){try{b=g.Ic(a.data)}catch(c){return}b.session==this.C&&fy(this,b)}};
g.h.NH=function(){cy(this,x3,null,(this.Va.cf/1E3).toString());this.stop()};
g.h.cP=function(a){switch(a.type){case "timeUpdate":a=this.g.getDuration();var b=this.g.getCurrentTime();Zx(this,"wrapperCall",{messageType:"timeupdate",duration:a,currentTime:b});break;case "end":gy(this,"ended");break;case "loaded":gy(this,"loadstart");break;case "mediaLoadTimeout":gy(this,"stalled");break;case "play":gy(this,"playing");break;default:gy(this,a.type)}};
g.h.UM=function(a){a=a.type;"loadedmetadata"==a?(a=this.g.getDuration(),Zx(this,"wrapperCall",{messageType:"loadedmetadata",duration:a})):gy(this,a)};
g.h.getCurrentTime=function(){return-1==this.getDuration()||-1==this.Oc()?-1:this.getDuration()-this.Oc()};
g.h.getDuration=function(){return this.F};
g.h.Oc=function(){return this.K};
g.h.wb=function(){return!this.D};
g.h.BQ=function(){ay(this,"getAdRemainingTime")};g.C(hy,pu);g.h=hy.prototype;g.h.jk=function(){return this.Lc()?this.g.jk():""};
g.h.ik=function(){return this.Lc()?this.g.ik():""};
g.h.Se=function(){return this.Lc()?this.g.Se():null};
g.h.ma=function(){if(this.g)return this.g.Se();throw Zm(xu,null,"Proxied ads manager not available.\n"+Error().stack);};
g.h.yb=function(){return null!=this.g&&null!=this.g.Se()};
g.h.tk=function(){return!1};
g.h.Te=function(){return null};
g.h.Rn=function(){this.yb()&&(this.ads=[this.ma()],this.Vc=this.ma())};
g.h.destroy=function(){this.g&&(this.g.destroy(),this.g=null);hy.aa.destroy.call(this)};
g.h.Kb=function(){return this.g?this.g.Kb():null};
g.h.dj=function(){this.F=!0;this.g&&this.g.dj()};
g.h.init=function(a){this.Cc(a);this.Lc()&&this.g.init(a)};
g.h.Rc=function(a,b,c){a&&a instanceof qm&&(a=a.g);hy.aa.Rc.call(this,a,b,c);jy(this,a,b,c)};
g.h.V=function(){this.la("allAdsCompleted");ky(this);hy.aa.V.call(this)};
g.h.getCurrentTime=function(){return this.Lc()?this.g.getCurrentTime():-1};
g.h.getDuration=function(){return this.Lc()?this.g.getDuration():-1};
g.h.Oc=function(){return this.Lc()?this.g.Oc():-1};
g.h.Ab=function(a,b,c){this.Ud=a;this.Td=b;this.Cc(c);this.Lc()&&this.g.Ab(a,b,c)};
g.h.pause=function(){this.Lc()&&this.g.pause()};
g.h.resume=function(){this.Lc()&&this.g.resume()};
g.h.skip=function(){this.Lc()&&this.g.skip()};
g.h.muteAd=function(){this.Lc()&&this.g.muteAd()};
g.h.whyThisAdClicked=function(){this.Lc()&&this.g.whyThisAdClicked()};
g.h.whyThisAdClosed=function(){this.Lc()&&this.g.whyThisAdClosed()};
g.h.start=function(){if(this.Lc()){var a=this.g,b=this.Qa;a&&b&&(null!=a&&a instanceof rx?b.rg():null!=a&&a instanceof Yx?(b.od(),b.rg()):null!=a&&(a instanceof nw||a instanceof hw)&&b.od());null!=this.volume&&!(0,window.isNaN)(this.volume)&&this.g.setVolume(this.volume);this.g.start()}};
g.h.stop=function(){this.Kb()&&this.Kb().Vb()&&this.la("contentResumeRequested");this.destroy()};
g.h.getVolume=function(){return this.Lc()?this.g.getVolume():0};
g.h.setVolume=function(a){a=(0,window.isNaN)(a)||0>a?0:a;hy.aa.setVolume.call(this,a);this.Lc()&&this.g.setVolume(a)};
g.h.Cc=function(a){hy.aa.Cc.call(this,a);this.g&&this.g.Cc(a)};
g.h.ze=function(){return this.g?this.g.ze():null};
g.h.hf=function(){this.g&&this.g.hf()};
g.h.zk=function(a){return this.g?this.g.zk(a):!1};
g.h.yk=function(){return this.g?this.g.yk():!1};
g.h.Ri=function(){return this.g?this.g.Ri():null};
g.h.hz=function(a){this.dispatchEvent(a)};
g.h.oz=function(a){this.dispatchEvent(a)};
g.h.Nr=function(a){this.dispatchEvent(a)};
g.h.zg=function(a){hy.aa.zg.call(this,a);this.g&&this.g.zg(a)};
g.h.ii=function(){this.la("userClose")};
g.h.hi=function(){this.la("autoClose")};
g.h.Rf=function(a){this.g&&this.g instanceof hw&&this.g.Rf(a)};
g.h.Lc=function(){return null!=this.g&&this.g.Lc()};g.C(my,hy);g.h=my.prototype;g.h.Kb=function(){return this.A};
g.h.dispatchEvent=function(a){if(a instanceof sm){if("loaded"==a.type&&this.C)return a.stopPropagation(),!1;"loaded"==a.type&&(this.C=!0)}return my.aa.dispatchEvent.call(this,a)};
g.h.tk=function(){return null!=ks(this.A)&&ks(this.A).Ef()};
g.h.hz=function(a){if(this.B)this.dispatchEvent(a);else{var b=a.getError()||Zm(Jx);a=a.target.Kb();js(a);oy(this,ks(a),Error(b.ud()))}};
g.h.Nr=function(a){this.B&&(my.aa.Nr.call(this,a),this.destroy())};
g.h.oz=function(a){this.D||(this.D=!0,this.dispatchEvent(a))};
g.h.gM=function(){this.o&&this.o.dispose();this.B=!0};g.C(py,pu);g.h=py.prototype;g.h.jk=function(){return this.g?this.g.jk():""};
g.h.ik=function(){return this.g?this.g.ik():""};
g.h.Se=function(){return this.g?this.g.Se():null};
g.h.ma=function(){if(this.g)return this.g.Se();throw Zm(xu,null,"Current ads manager not available.\n"+Error().stack);};
g.h.yb=function(){return null!=this.g&&null!=this.g.Se()};
g.h.tk=function(){return this.A+1<this.o.length};
g.h.Te=function(){return this.tk()?this.o[this.A+1].Se():null};
g.h.Rn=function(){this.yb()&&(this.ads=[this.ma()],this.Vc=this.ma())};
g.h.Xa=function(){};
g.h.destroy=function(){this.g&&this.g.destroy();py.aa.destroy.call(this)};
g.h.Kb=function(){return this.g?this.g.Kb():null};
g.h.dj=function(){this.g&&this.g.dj()};
g.h.init=function(a){this.Cc(a);this.g&&this.g.init(a)};
g.h.Rc=function(a,b,c){a&&a instanceof qm&&(a=a.g);py.aa.Rc.call(this,a,b,c);qy(this,a,b,c)};
g.h.V=function(){(0,g.H)(this.o,function(a){a!==this.g&&a.destroy()},this);
ty(this);this.D&&(this.D.dispose(),this.D=null);this.B&&(this.B.destroy(),this.B=null);this.la("allAdsCompleted");py.aa.V.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.Oc=function(){return this.g?this.g.Oc():-1};
g.h.Ab=function(a,b,c){this.Ud=a;this.Td=b;this.Cc(c);this.g&&this.g.Ab(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.Qa;a&&b&&(null!=a&&a instanceof rx?b.rg():null!=a&&a instanceof Yx?(b.od(),b.rg()):null!=a&&(a instanceof nw||a instanceof hw)&&b.od());null!=this.volume&&!(0,window.isNaN)(this.volume)&&this.g.setVolume(this.volume);this.g.start()}};
g.h.Me=function(a){py.aa.Me.call(this,a);null!=this.g&&this.g.Me(a);null!=this.B&&this.B.Me(a);(0,g.H)(this.o,function(b){b.Me(a)})};
g.h.stop=function(){this.destroy();this.la("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;py.aa.setVolume.call(this,a);this.g&&this.g.setVolume(a)};
g.h.Cc=function(a){py.aa.Cc.call(this,a);this.g&&this.g.Cc(a)};
g.h.ze=function(){return this.g?this.g.ze():null};
g.h.hf=function(){this.g&&this.g.hf()};
g.h.zk=function(a){return this.g?this.g.zk(a):!1};
g.h.yk=function(){return this.g?this.g.yk():!1};
g.h.Ri=function(){return this.g?this.g.Ri():null};
g.h.fM=function(a){var b=a.getError()||Zm(Jx);sy(this,a.target,b)};
g.h.mh=function(){this.F||(this.la("contentPauseRequested"),this.F=!0)};
g.h.Qf=function(a){ry(this,a.target)};
g.h.HH=function(){};
g.h.zg=function(a){(0,g.H)(this.o,function(b){b.zg(a)},this)};
g.h.ii=function(){this.la("userClose")};
g.h.hi=function(){this.la("autoClose")};
g.h.Rf=function(a){this.g&&this.g instanceof hw&&this.g.Rf(a)};g.C(uy,g.M);g.h=uy.prototype;g.h.uk=!1;g.h.Pw=1E3;g.h.Cx=30;g.h.Dx=45E3;g.h.oA=15E3;g.h.tB=!1;g.h.zp=function(){var a=vy(this);this.g.appendChild(this.K);wy(this.K);this.play();return a};
g.h.pa=function(){null==this.O&&(this.O=this.zp());return this.O};
g.h.play=function(){null==this.o&&(this.o=g.mg(function(){this.uk||(this.hide(),this.tB=!0);this.o=null},this.tB?this.oA:this.Dx,this))};
g.h.stop=function(){null!=this.o&&(g.ng(this.o),this.o=null)};
g.h.show=function(){g.wh(this.pa(),1);null!=this.A&&(g.ng(this.A),this.A=null)};
g.h.hide=function(){g.wh(this.pa(),this.Cx/100);null==this.A&&(this.A=g.mg(function(){this.ba();this.A=null},400,this))};
g.h.rH=function(){this.show();this.uk=!0;this.D=g.mg(function(){this.uk&&this.stop();this.D=null},this.Pw,this)};
g.h.KR=function(){null!=this.D&&(g.ng(this.D),this.D=null);this.uk&&this.play();this.uk=!1};
g.h.V=function(){uy.aa.V.call(this);this.stop();g.Re(this.Df)};g.C(yy,pu);g.h=yy.prototype;g.h.start=function(){yy.aa.start.call(this);this.Qa.od();this.containerElement=this.Qa.Bf();if(null!=this.containerElement){this.Ea("show_ad");g.te(this.containerElement);var a=this.Ru(),b=this.yb()?this.ma().g.Hc():a,c;P.o?c=io():c=Rn();c.Cj(b);this.containerElement.appendChild(a);this.Ul();(0,g.H)(this.F,function(a){a()});
gb(this.F);this.B=!0}};
g.h.init=function(a){yy.aa.init.call(this,a);var b;P.o?b=io():b=Rn();this.Xa().X(b,u3,this.rj)};
g.h.expand=function(){null!=this.g&&this.g.show();this.Ea("expand")};
g.h.collapse=function(){null!=this.g&&this.g.hide();this.Ea("collapse")};
g.h.Ab=function(a,b,c){yy.aa.Ab.call(this,a,b,c);this.Ul();this.B&&this.Ea("overlay_resize")};
g.h.V=function(){g.Re(this.g);this.Qa=this.g=null;this.B=!1;P.o?io().Cj(null):Rn().Cj(null);null!=this.containerElement&&(g.te(this.containerElement),this.containerElement=null);yy.aa.V.call(this)};
g.h.Ru=function(){var a=this.ma().g;if(null==a)throw a=Zm(MB),Ay(this,a),a;var b=this.ma();Bp(a,this.Xa());zp(a,this.IH);a.D||Ap(a,g.ya(this.mq,b,a));try{this.sd(b)}catch(d){throw Ay(this,d),d;}this.yg(b);var c=cq(b,this.Da);this.Rb.g=c;b.g&&(this.yg(b),c=b.g)&&(this.Vf(c,Voa),zu(this,b));this.Vf(a,["start"]);zy(this,a);return this.Ll([a.Hc()])};
g.h.Ow=function(a,b){return new uy(a[0],b)};
g.h.Ll=function(a){null!=this.g&&this.g.stop();this.g=this.Ow(a,(0,g.A)(this.sm,this));a=this.g.pa();g.S(a,"autoalign",this.Va.Mu);P.g()&&g.S(a,"viewmode-fullscreen","fullscreen"==this.Yc);a.appendChild(this.K);this.Xa().X(a,"click",Ue);(this.yb()&&us(this.ma())||this.Va.oB)&&this.ip(this.g.g);return a};
g.h.ip=function(a){var b=this.Xa();this.D=Pp(Zga);b.X(this.D,"click",this.LG);var c=Aa("Close"),c=Pp(Yga,{close:""+c});b.X(c,"click",this.Om);g.R(a,"extra-padding");null!=this.M&&728<=this.M.Eb()&&g.R(a,"wide-overlay-ad");a.appendChild(c)};
g.h.Ul=function(a,b){if(null!=this.g){var c=a?a:0,d=b?b:0,e=g.uh(this.Qa.Bf());var f=P.g()?g.uh(g.Be(this.g.g)):g.uh(this.g.g);if(f.width+c>e.width||f.height+d>e.height)throw c=Zm($oa,null),Ay(this,c),d={},this.ads[0].A&&(d.pid=Qw.getInstance().o),d.cz=f.width+"x"+f.height,d.sz=e.width+"x"+e.height,d.ct=this.ma().g.jd(),d.vm=this.Yc,Ln(In.getInstance(),38,d,!0),this.stop(),c;}};
g.h.IH=function(a){wu(this,"click");Ue(a)};
g.h.Om=function(){this.Ea("close");this.sm(!0)};
g.h.mq=function(a,b){Ap(b,g.z);this.B?this.Zk(a,b):this.F.push((0,g.A)(this.Zk,this,a,b))};
g.h.Zk=function(a){a=cq(a,this.Da);this.Rb.g=a;wu(this,"impression");this.Ea("creativeview");wu(this,"start")};
g.h.sm=function(a){null!=this.g&&(this.g.stop(),null!=this.D&&g.xe(this.D,this.g.g),a?this.la("userClose"):this.la("autoClose"))};
g.h.LG=function(a){Ue(a);this.g.show();this.g.play();g.xe(this.g.g,this.D);g.mg(function(){g.O(this.K,!1)},500,this);
g.O(this.K,!0);this.la("userRecall")};
g.h.rj=function(a){this.yb()&&this.ma().K==a.g.queryId&&yy.aa.rj.call(this,a)};g.C(By,g.xf);g.h=By.prototype;g.h.init=function(a,b,c){Cy(this,a,b,c);null==this.K&&(this.K=new g.dm(this),em(this.K,this.ib,"adsLoaderSdkAdError",this.cM,!1,this));Jy(this)};
g.h.start=function(){this.P=!0;Fy(this);0<this.A.length?Qy(this):("always"==P.B&&(null!=this.da&&this.da.sd(xA()),P.g()&&5!=this.Ue()&&this.dispatchEvent(new sm("companionBackfill",null))),$m(Ym,this,nq,void 0,void 0),0==this.Ec&&this.dispatchEvent("contentResumeRequested"),Ry(this))};
g.h.destroy=function(){null!=this.K&&(this.K.dispose(),this.K=null);Ly(this);Ty(this);P.B=this.ca;this.P=!1};
g.h.Kb=function(){return this.o<this.A.length?this.A[this.o].g[0]:null};
g.h.wb=function(){return this.P};
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.hf=function(){null!=this.g&&this.g.hf()};
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.Oc=function(){return null!=this.g?this.g.Oc():-1};
g.h.setVolume=function(a){null!=a&&(this.W=a,null!=this.g&&this.g.setVolume(this.W))};
g.h.Me=function(a){this.ba=a;null!=this.g&&this.g.Me(a);null!=this.C&&this.C.Me(a)};
g.h.fz=function(a){P.B=this.ca;var b=a.F;g.fb(b)?this.J++:(a=a.D,(0,g.H)(b,g.ya(function(a,b){null!=a.A&&(b.Ta=a.A);a.isBumper&&(b.Ja=!1)},a)),this.O=cha(this,b),g.ib(this.A,new pm(b,a.isBumper,a.g)),this.J++,this.K.za(this.ib,"adsLoaderSdkAdLoaded",this.fz,!1,this));
Jy(this)};
g.h.cM=function(a){a=a.g;P.B=this.ca;a.ud();$m(Ym,this,nq,void 0,void 0);this.J++;if(!Dy(this)||2<=this.A.length-this.o)a=Ym(nq),this.dispatchEvent(new rm(a));Jy(this)};
g.h.wO=function(){Ly(this);Ty(this);Ry(this)};
g.h.dM=function(a){a=a.getError().Lb();try{var b={};b.ec=a;Ln(In.getInstance(),44,b)}catch(c){}this.o++;Qy(this)};
g.h.ii=function(){this.dispatchEvent("userClose")};
g.h.hi=function(){this.dispatchEvent("autoClose")};
g.h.Qf=function(){this.o++;Qy(this)};
g.h.mh=function(){this.ga||(this.dispatchEvent("contentPauseRequested"),this.ga=!0)};
g.h.Ue=function(){return g.fb(this.G)?null:this.G[0].A};
g.h.Rf=function(a){this.g instanceof hw?this.g.Rf(a):Oy(this.g)&&this.g.Rf(a)};
g.h.gz=function(a){switch(a.type){case "impression":try{Ln(In.getInstance(),44,{imp:!0})}catch(c){}break;case "start":var b;if(b=this.Tf()&&Gy(this,this.o+1)&&1<Py(this))b=a.Ob(),b=null===b||null===this.g||g.fb(this.g.ads)?!1:this.g.ads[this.g.ads.length-1]===b;b&&Iy(this,this.o+1)}"vpaidEvent"!=a.type&&eha(this,a.type,a.Ob());this.dispatchEvent(a)};
g.h.Tf=function(){if(null===this.B)var a=!1;else a=this.B,a=!(null===a||a.Tm()||P.g()||gn()||tn()||g.mn&&!on(4))&&!1;return a};g.C(Uy,fha);g.C(Xy,Lu);Xy.prototype.A=function(){return new Mu(this.g,null,hha(this))};g.C(az,g.Te);az.prototype.setDescription=function(){};g.C(bz,g.xf);g.C(dz,g.xf);g.h=dz.prototype;g.h.Gb=function(){this.A||(null==this.B&&(this.B=new g.dm(this)),this.B.X(this.o,"currentTimeUpdate",this.Jw,!1),this.B.X(this.o,"contentWrapperError",this.HO,!1));this.o.start();this.A=!0};
g.h.getCurrentTime=function(){return this.o.currentTime};
g.h.Wc=function(){null!=this.B&&(this.B.dispose(),this.B=null);this.o.stop();this.A=!1};
g.h.Jw=function(){if(this.A){var a=this.o.currentTime;if((0,window.isNaN)(a)||0>a)kz(this,"The currentTime is not a valid time value:"+a);else{var b=kha(this,a);this.D?(0,g.H)(b,function(a){hz(this,!0,a)},this):(0,g.H)(lha(b),function(a){hz(this,!0,a)},this);
hz(this,!1,mha(this,a));nha(this,a)}}};
g.h.HO=function(){kz(this,"There was an error while tracking the content:The content current time is invalid.")};g.C(mz,bz);mz.prototype.start=function(){this.g.start()};
mz.prototype.stop=function(){this.g.stop()};
mz.prototype.V=function(){mz.aa.V.call(this);this.A.dispose();this.g.dispose()};
mz.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.Te("currentTimeUpdate"))}else this.dispatchEvent(new g.Te("contentWrapperError")),this.stop()};g.h=oz.prototype;g.h.get=function(a){a=pz(this,a);return this.g[a]};
g.h.set=function(a,b){a=pz(this,a);this.g[a]=b};
g.h.Nc=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.fb=function(){for(var a=this.Nc(),b=this.Nc(),c=[],a=this.Nc()-a;a<b;a++)c.push(this.get(a));return c};
g.h.Cb=function(){for(var a=[],b=this.Nc(),c=0;c<b;c++)a[c]=c;return a};g.C(qz,On);g.h=qz.prototype;g.h.zA=function(a,b,c,d){if(d&&(d=g.$a(a,function(a){return null!==Sp(a.o)}),null!==d))return d;
a=(0,g.ye)(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)||on(2.3)&&Ja(b,"application/ogg")?!1:g.mn&&(Ja(b,"video/mp4")||Ja(b,"video/3gpp"))||hn()&&(Ja(b,"application/x-mpegurl")||Ja(b,"application/vnd.apple.mpegurl"))?!0:!E(this.g.canPlayType(b)));return a},this);
return nz(a,b,c)};
g.h.Xp=function(){return(0,g.ye)(g.Nb(Au),function(a){return!E(this.g.canPlayType(a))},this)};
g.h.Tn=function(a){this.ba=0<a.g?a.g:Mn()};
g.h.load=function(a){sz(this);a&&(this.g.src=a);this.g.load()};
g.h.unload=function(){sz(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.O=!1;this.g.play();this.J||(this.J=g.mg(this.BF,this.ba,this))};
g.h.pause=function(){this.O=!0;this.g.pause();rz(this)};
g.h.Vh=function(){return this.g.paused?hn()||g.UE?this.g.currentTime<this.g.duration:!0:!1};
g.h.aj=function(){return this.g.muted};
g.h.zq=function(){gn()&&this.g.webkitDisplayingFullscreen&&this.g.webkitExitFullscreen()};
g.h.Zi=function(){return ko(this.g)};
g.h.Xj=function(a){var b;a:{for(b=this.W.fb();b.length;){var c=b.pop();if(0<c){b=c;break a}}b=-1}return b>=a};
g.h.bj=function(a){this.g.currentTime=a};
g.h.getCurrentTime=function(){return this.g.currentTime};
g.h.Zv=function(){return uz(this)};
g.h.getDuration=function(){return(0,window.isNaN)(this.g.duration)?-1:this.g.duration};
g.h.Yg=function(){return this.g.ended};
g.h.Gf=function(){return new g.Wd(this.g.offsetWidth,this.g.offsetHeight)};
g.h.Rw=function(){return this.g.seeking};
g.h.V=function(){this.Wc();qz.aa.V.call(this)};
g.h.getError=function(){return null};
g.h.Gb=function(){this.Wc();this.o=new g.dm(this);this.o.X(this.g,Tz,this.FO);this.o.X(this.g,"canplay",this.DM);this.o.X(this.g,"ended",this.RH);this.o.X(this.g,"webkitbeginfullscreen",this.Cq);this.o.X(this.g,"webkitendfullscreen",this.Uw);this.o.X(this.g,"pause",this.UH);this.o.X(this.g,"playing",this.NO);this.o.X(this.g,"timeupdate",this.VH);this.o.X(this.g,"volumechange",this.WH);this.o.X(this.g,"error",this.Tw);this.o.X(this.g,GO||hn()&&!ln(8)?"loadeddata":"canplay",this.TH);this.D=new Ls;this.o.X(this.D,
"click",this.QH);this.D.Gb(this.g);this.G=new g.kg(1E3);this.o.X(this.G,"tick",this.SH);this.G.start()};
g.h.Wc=function(){null!=this.D&&(this.D.Wc(),this.D=null);null!=this.G&&this.G.dispose();null!=this.o&&(this.o.dispose(),this.o=null);sz(this)};
g.h.FO=function(a){this.dispatchEvent(a.type)};
g.h.DM=function(){var a;if(a=ni)a=g.Gb,a=!(a&&(Ka(a,"SMART-TV")||Ka(a,"SmartTV")));a&&!this.P&&(this.bj(.001),this.P=!0)};
g.h.TH=function(){this.Tc||(this.Tc=!0,this.dispatchEvent("loaded"))};
g.h.NO=function(){this.dispatchEvent("play");hn()||GO||tz(this)};
g.h.VH=function(){if(!this.B&&(hn()||GO)){if(0>=this.getCurrentTime())return;if(GO&&this.Yg()&&1==this.getDuration()){this.Tw();return}tz(this)}if(hn()||sn()){if(1.5<this.getCurrentTime()-this.A){this.F=!0;this.bj(this.A);return}this.F=!1;this.getCurrentTime()>this.A&&(this.A=this.getCurrentTime())}var a=this.W;a.g[a.o]=this.g.currentTime;a.o=(a.o+1)%a.A;this.dispatchEvent("timeUpdate")};
g.h.WH=function(){this.dispatchEvent("volumeChange")};
g.h.UH=function(){if(this.B&&hn()&&!this.O&&(2>uz(this)-this.g.currentTime||this.F)){this.C=new g.kg(250);this.o.X(this.C,"tick",this.zM);this.C.start();var a=!0}else a=!1;a||this.dispatchEvent("pause")};
g.h.RH=function(){var a=!0;if(hn()||sn())a=this.A>=this.g.duration-1.5;!this.F&&a&&this.dispatchEvent("end")};
g.h.Cq=function(){this.dispatchEvent("beginFullscreen")};
g.h.Uw=function(){this.dispatchEvent("endFullscreen")};
g.h.Tw=function(){rz(this);this.dispatchEvent("error")};
g.h.QH=function(){this.dispatchEvent("click")};
g.h.SH=function(){var a=this.Gf(),b=this.Zi();if(a.width!=this.M.width||a.height!=this.M.height)!this.K&&b?this.Cq():this.K&&!b&&this.Uw(),this.M=a,this.K=b};
g.h.BF=function(){if(!this.B){try{Ln(In.getInstance(),16)}catch(a){}sz(this);this.dispatchEvent("mediaLoadTimeout")}};
g.h.zM=function(){if(this.Yg()||!this.Vh())g.Re(this.C);else{var a=this.g.duration-this.g.currentTime,b=uz(this)-this.g.currentTime;0<b&&(2<=b||2>a)&&(g.Re(this.C),this.play())}};g.C(wz,g.xf);var opa=new Fl;vz.prototype.start=function(a){return this.g[a].startTime};
vz.prototype.end=function(a){return this.g[a].endTime};
g.h=wz.prototype;g.h.readyState=0;g.h.currentTime=0;g.h.duration=window.NaN;g.h.paused=!0;g.h.Zw=!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.cI=1;g.h.playbackRate=0;g.h.Ag=null;g.h.hn=0;g.h.AQ=4;g.h.Rj=null;g.h.Xm=null;
g.h.play=function(){this.Zw&&(this.currentTime=0,this.dispatchEvent("timeupdate"));this.paused&&(this.paused=!1,this.dispatchEvent("play"),this.readyState=this.AQ,2>=this.readyState?this.dispatchEvent("waiting"):this.dispatchEvent("playing"));if(null===this.Ag||this.Ag.na())this.Ag=new g.kg(10),this.Ag.X("tick",(0,g.A)(this.fB,this));this.hn=(0,g.G)();this.Ag.start();this.autoplay=!1};
g.h.pause=function(){this.autoplay=!1;this.paused||(this.Ag.stop(),this.paused=!0,this.dispatchEvent("timeupdate"),this.dispatchEvent("pause"))};
g.h.load=function(){this.readyState=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 uha(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.cI};
g.h.setProperty=function(a,b){switch(a){case "currentTime":var c=Number(b);this.dispatchEvent("seeking");this.currentTime=c;this.dispatchEvent("seeked");this.fB();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&&opa.set(a,b)};
g.h.getAttribute=function(a){return opa.get(a)};
g.h.fB=function(){var a=(0,g.G)()-this.hn,b=this.currentTime+a/1E3;this.hn+=a;2<this.readyState&&(this.currentTime=Math.min(b,this.duration));this.dispatchEvent("timeupdate");this.currentTime==this.duration&&(this.Zw=this.paused=!0,this.Ag.stop(),this.dispatchEvent("ended"))};
g.h.V=function(){this.Ag&&this.Ag.dispose();this.g.dispose()};
g.h.XP=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.Xm&&(this.Xm.innerText=b);c&&this.Rj&&(this.Rj.style.backgroundColor=c)};g.C(xz,g.M);xz.prototype.initialize=function(){this.o&&dn()&&this.o.load()};
xz.prototype.V=function(){g.we(this.g);xz.aa.V.call(this)};
xz.prototype.show=function(){var a=this.g;null!=a&&(a.style.display="block")};
xz.prototype.hide=function(){var a=this.g;null!=a&&(a.style.display="none")};g.C(yz,g.M);yz.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.Ic(a.data)}catch(c){return}if(!(null==b||this.K&&(this.sessionId&&this.sessionId!=b.id||this.channel&&this.channel!=b.channel))&&b)switch(b.event){case "syn":zz(this,a);Bz(this);this.sendMessage({event:"ack"});break;case "ack":zz(this,a);Bz(this);break;case "command":a=b.func,a in this.g&&this.g[a].apply(null,b.args)}}};
yz.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.Lc(a);c.postMessage(d,this.F)}catch(e){}}};
yz.prototype.V=function(){window.removeEventListener("message",this.C);yz.aa.V.call(this)};g.C(Az,yz);Az.prototype.J=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.C(Cz,g.M);Cz.prototype.G=function(a){a=a.type;var b=new vha;b.duration=this.g.duration;b.currentTime=this.g.currentTime;b.readyState=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.J("notify",a,b)};
Cz.prototype.D=function(a){qx(this.C,a);this.A.X(this.g,a,this.F)};
Cz.prototype.J=function(a){this.C.remove(a);this.A.za(this.g,a)};
Cz.prototype.B=function(a,b){this.g[a]=b};g.C(Fz,On);var ppa=["video/mp4","video/webm"],qpa={el:"adunit",controls:0,html5:1,playsinline:1,ps:"gvn",showinfo:0},Ez=[],Dz=!1;g.h=Fz.prototype;g.h.zA=function(a,b,c){var d=g.$a(a,function(a){return null!==Sp(a.o)});
if(null!==d)return d;a=(0,g.ye)(a,function(a){a=g.F(a.g);return this.o?this.g.canPlayType(a):g.eb(ppa,a)},this);
g.fb(c)||(d=nz(a,b,c));return null!=d?d:nz(a,b,[])};
g.h.Tn=function(a){this.A=a};
g.h.load=function(a,b){Hz(this,a,b)};
g.h.unload=function(){Hz(this,"","")};
g.h.getVideoUrl=function(){return this.ca};
g.h.setVolume=function(a){this.ha?this.dispatchEvent("volumeChange"):this.o?(a=g.Pd(100*a,0,100),this.g.setVolume(a),this.F=-1,this.dispatchEvent("volumeChange")):this.F=a};
g.h.getVolume=function(){return this.o?this.g.getVolume()/100:this.F};
g.h.play=function(){if(!E(g.F(this.ca))){if(!this.B){Jz(this);var a=Mn();null!=this.A&&0<this.A.g&&(a=this.A.g);this.Fa=g.mg(this.IO,a,this)}this.o?(this.fa=!1,!this.B&&this.A&&this.A.o?this.g.loadVideoByPlayerVars(this.oa):this.g.playVideo()):this.fa=!0}};
g.h.pause=function(){this.o&&this.B&&this.g.pauseVideo()};
g.h.Vh=function(){return this.o?2==this.g.getPlayerState(this.C):!1};
g.h.aj=function(){return this.o?this.g.isMuted():0==this.getVolume()};
g.h.zq=function(){};
g.h.Zi=function(){var a=P.o?P.G:window.document.getElementById(this.P);return a?ko(a):!1};
g.h.Xj=function(a){return this.o?this.g.getCurrentTime(this.C)>=a:!1};
g.h.bj=function(a){this.o?this.g.seekTo(a,!1):this.K=a};
g.h.getCurrentTime=function(a){return this.o?this.g.getCurrentTime(a||this.C):-1};
g.h.Zv=function(){return this.o&&this.B?this.g.getVideoLoadedFraction(this.C)*this.g.getDuration(this.C):0};
g.h.getDuration=function(){return this.o&&this.B?this.g.getDuration(this.C):-1};
g.h.getError=function(){return null};
g.h.Xp=function(){return g.Nb(Au)};
g.h.Yg=function(){return this.o?0==this.g.getPlayerState(this.C):!1};
g.h.Gf=function(){var a=P.o?P.G:window.document.getElementById(this.P);return a?new g.Wd(a.offsetWidth,a.offsetHeight):new g.Wd(0,0)};
g.h.Rw=function(){return!1};
g.h.Qw=function(){return 1==this.ua};
g.h.wb=function(){return this.o?1==this.g.getPlayerState(this.C):!1};
g.h.YH=function(){var a=this.Gf(),b=this.Zi();if(a.width!=this.ra.width||a.height!=this.ra.height)!this.ka&&b?this.dispatchEvent("beginFullscreen"):this.ka&&!b&&this.dispatchEvent("endFullscreen"),this.ra=a,this.ka=b};
g.h.Gb=function(){this.ga=(0,g.A)(this.Dz,this);this.O=(0,g.A)(this.Dq,this);this.sa=(0,g.A)(this.Ez,this);this.Ja=(0,g.A)(this.tP,this);this.ha&&(this.g.addEventListener("onAdStateChange",this.O),this.g.addEventListener("onReady",this.ga),this.g.addEventListener("onStateChange",this.O),this.g.addEventListener("onVolumeChange",this.sa),this.g.addEventListener("onSharePanelOpened",this.Ja));this.ba=new g.kg(1E3);this.W.X(this.ba,"tick",this.YH);this.ba.start()};
g.h.Wc=function(){this.ha&&(this.g.removeEventListener("onAdStateChange",this.O),this.g.removeEventListener("onReady",this.ga),this.g.removeEventListener("onStateChange",this.O),this.g.removeEventListener("onVolumeChange",this.sa),this.g.removeEventListener("onSharePanelOpened",this.Ja));null!=this.ba&&this.ba.dispose()};
g.h.JF=function(){var a=g.Wb(qpa);P.C&&(a.ps="gvn",a.remoteve=Jn.fa,a.remotevewin="discover");var b=this.P,a={playerVars:a,events:{cardstatechange:(0,g.A)(this.XH,this),onError:(0,g.A)(this.KO,this),onReady:(0,g.A)(this.Dz,this),onAdStateChange:(0,g.A)(this.Dq,this),onStateChange:(0,g.A)(this.Dq,this),onVolumeChange:(0,g.A)(this.Ez,this)}},c=g.x("YT");this.g=null!=c&&null!=c.Player?new c.Player(b,a):null};
g.h.KO=function(){this.dispatchEvent("error")};
g.h.Dz=function(){this.o=!0;this.J&&this.yq(this.J.videoId,this.J.Fh,this.J.Kj);-1!=this.F&&(this.setVolume(this.F),this.F=-1);null!=this.M&&(Gz(this,this.M,this.da),this.da=this.M=null);-1!=this.K&&(this.bj(this.K),this.K=-1);this.fa&&this.play()};
g.h.XH=function(a){this.ua=a.data;this.dispatchEvent("cardsStateChange")};
g.h.Dq=function(a){switch(a.data){case 0:this.B?this.dispatchEvent("end"):this.dispatchEvent("error");break;case 1:this.B||(Jz(this),this.B=!0,this.G=0,this.dispatchEvent("start"));this.dispatchEvent("play");Iz(this);this.D=new g.kg(100);this.W.X(this.D,"tick",this.rz);this.D.start();break;case 2:this.dispatchEvent("pause"),Iz(this)}};
g.h.Ez=function(){this.dispatchEvent("volumeChange")};
g.h.tP=function(){this.dispatchEvent("shareClicked")};
g.h.rz=function(){var a=Fm().g;if(a.g("seek_back_for_all")||a.g("seek_back_for_all_no_leanback")&&!tn()||a.g("seek_back_for_safari")&&mi&&jn(epa,10)&&Ka(g.Gb,"Safari")||FO||sn()){if(1.5<this.getCurrentTime()-this.G){this.o&&this.g.seekTo(this.G,!0);return}this.getCurrentTime()>this.G&&(this.G=this.getCurrentTime())}this.dispatchEvent("timeUpdate")};
g.h.IO=function(){this.dispatchEvent("mediaLoadTimeout")};
g.h.yq=function(a,b,c){if(b||c)this.o?this.g.addInfoCardXml(a,b,c):this.J={videoId:a,Fh:b,Kj:c}};
g.h.ze=function(){if(!this.o)return null;var a=this.g.getVideoData();return a?a.cpn:null};
g.h.os=function(a){this.o&&Sp(this.getVideoUrl())&&this.g.sendVideoStatsEngageEvent(a)};
g.h.Sw=function(a){this.o&&this.g.setCardsVisible(a,!1,"YOUTUBE_DRAWER_AUTO_OPEN")};
g.h.Bq=function(){this.o&&this.g.showControls()};
g.h.Aq=function(){this.o&&this.g.hideControls()};
g.h.V=function(){Iz(this);Jz(this);this.Wc();this.o=!1;this.W.dispose();this.K=-1;this.da=null;this.fa=!1;this.M=null;this.F=-1;this.ga=this.g=this.A=null;this.B=!1;this.ca="";Fz.aa.V.call(this)};
g.v("onYouTubeIframeAPIReady",function(){Dz=!0;(0,g.H)(Ez,function(a){a()});
gb(Ez)},window);g.C(Kz,g.xf);Kz.prototype.send=function(a){var b=a.g;this.g.hasOwnProperty(b)&&this.g[b].send(a.type,a.Md,a.Lf)};
Kz.prototype.V=function(){this.o.dispose();for(var a in this.g)g.Re(this.g[a]);Kz.aa.V.call(this)};
Kz.prototype.C=function(a){a=a.g;var b=Vx(a.data);if(null!=b){var c=b.channel;if(this.A&&!this.g.hasOwnProperty(c)){var d=b.sid;Mz(this,c,d,a.source);this.dispatchEvent(new Lz(b.name,b.type,b.data||{},d,a.origin,c))}}};
g.C(Lz,Tx);g.C(Oz,g.dm);
Oz.prototype.D=function(a){var b=a.getOrigin(),c=g.sg("//imasdk.googleapis.com"),b=g.sg(b);if(c[3]==b[3]&&c[4]==b[4])if(null!=this.g)Mz(this.g,a.g,a.Kw,le().parent),null!=this.g&&this.g.send(a);else if(c=a.Lf,null!=c&&g.t(c.scope)){var b=c.scope,c=c.args,d;if("proxy"==b)c=a.Md,"isGptPresent"==c?d=Nz():"isConsolePresent"==c&&(d=null!=Pz());else if(Nz())if("pubads"==b||"companionAds"==b){d=a.Md;var e=le().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.Md,f=Pz(),null!=f&&(e=f[e],null!=e))try{e.apply(f,c)}catch(k){}}else if(null===b){f=a.Md;d=le();if(g.eb(["googleGetCompanionAdSlots","googleSetCompanionAdContents"],f)&&(f=d[f],null!=f))try{e=f.apply(d,c)}catch(k){}d=e}g.t(d)&&(a.Lf.returnValue=d,this.A.send(a))}};
Oz.prototype.C=function(a){this.A.send(a)};new Qz;Qz.prototype.set=function(a){this.g=a};
Qz.prototype.reset=function(){this.set((0,g.G)())};
Qz.prototype.get=function(){return this.g};var Rz={s:function(a,b,c){return(0,window.isNaN)(c)||""==c||a.length>=Number(c)?a:a=-1<b.indexOf("-",0)?a+Ma(" ",Number(c)-a.length):Ma(" ",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+Ma(" ",a):f+Ma(0<=b.indexOf("0",0)?"0":" ",a)+d},
d:function(a,b,c,d,e,f,k,l){return Rz.f((0,window.parseInt)(a,10),b,c,d,0,f,k,l)}};
Rz.i=Rz.d;Rz.u=Rz.d;g.C(Uz,g.xf);g.h=Uz.prototype;g.h.V=function(){this.o.dispose();null!==this.B&&(this.B.dispose(),this.B=null);g.El(this.G.Sd(!1),function(a){a.dispose()});
this.G.clear();g.we(this.A);Uz.aa.V.call(this)};
g.h.BG=function(a){var b=a.Lf,c=g.mh(this.A),d=window.document.createEvent("MouseEvent");d.initMouseEvent(a.Md,!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(!ni||hn()||0==window.document.webkitIsFullScreen)this.A.blur(),window.focus();this.A.dispatchEvent(d)};
g.h.RG=function(a){var b=a.Lf,c=g.mh(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:Vz(this,b.touches),targetTouches:Vz(this,b.targetTouches),changedTouches:Vz(this,b.changedTouches)};d=new window.TouchEvent(a.Md,d);this.A.dispatchEvent(d)}else d=window.document.createEvent("TouchEvent"),d.initTouchEvent(a.Md,!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,Vz(this,b.touches),Vz(this,b.targetTouches),Vz(this,b.changedTouches),b.scale,b.rotation),this.A.dispatchEvent(d)};
g.h.OG=function(a){if(null!=this.g){var b=a.Lf;switch(a.Md){case "startTracking":this.g.Gb();break;case "stopTracking":this.g.Wc();break;case "exitFullscreen":this.g.zq();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.bj(b.currentTime);break;case "setPlaybackOptions":this.g.Tn(Wz(b));break;case "setVolume":this.g.setVolume(b.volume)}}};
g.h.IG=function(a){if(null!=this.C){var b=a.Lf;switch(a.Md){case "startTracking":this.C.Gb();break;case "stopTracking":this.C.Wc();break;case "setPlaybackOptions":this.C.Tn(Wz(b));break;case "load":this.C.load(b.videoUrl,b.mimeType)}}};
g.h.Sf=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.Yg();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.wG=function(a){switch(a.Md){case "showVideo":null!=this.B?this.B.Wc():(this.B=new Ls,this.o.X(this.B,"click",this.UP));this.B.Gb(Yz(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.za(this.g,g.Nb(Sz),this.Sf);this.o.za(this.g,Tz,this.Sf);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.K&&a.o instanceof qz){var b=a.K,c=a.o.g;km(b.A);b.g=c;(0,g.H)(b.C.fb(),b.D,b)}null!=a.J&&(b=a.J,a=a.o,null!=b.g&&(b.o.za(b.g,g.Nb(Sz),b.Sf),b.o.za(b.g,Tz,b.Sf)),b.g=a,b.o.X(b.g,g.Nb(Sz),b.Sf),b.o.X(b.g,Tz,b.Sf))}this.g=this.D.o;this.C=this.D.C;this.o.X(this.g,g.Nb(Sz),this.Sf);this.o.X(this.g,Tz,this.Sf)}}};
g.h.UP=function(){this.F.send("displayContainer","videoClick")};
g.h.fG=function(){g.El(this.G.Sd(!1),function(a){a.jf=Ee(this.A);a.connect()},this);
this.J=!0};Xz.prototype.initialize=function(){null!=this.g&&this.g.initialize();null!=this.B&&this.B.initialize()};
Xz.prototype.destroy=function(){g.Re(this.g);g.Re(this.B);g.Re(this.J);g.Re(this.o);g.Re(this.C);g.Re(this.K);g.we(this.A)};
Xz.prototype.hide=function(){null!=this.g&&this.g.hide()};
Xz.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.J&&(c=this.J,c.A.width=-1==a?"100%":a,c.A.height=-1==b?"100%":b)};g.h=Zz.prototype;g.h.Rp=function(){return Yz(this.g)};
g.h.mk=function(){return this.g.D};
g.h.Bf=function(){return this.g.D};
g.h.Sm=function(){var a=this.g.o;return null!=a?a:new Fz};
g.h.rg=function(){var a=this.g;null!=a.g&&a.g.show()};
g.h.od=function(){};
g.h.Ep=function(){return null!=this.g.G};
g.h.Tm=function(){return this.g.F};
g.h.uq=function(){return!1};
g.h.Um=function(){return this.g.M};
g.h.setSize=function(a,b){this.g.setSize(a,b)};
g.h.hide=function(){};
g.h.sq=function(){return null};
g.h.tq=function(){};g.C($z,g.Te);g.h=bA.prototype;
g.h.clone=function(){var a=new bA;"auto"==this.ti?a.ti="auto":"click"==this.ti&&(a.ti="click");a.g=this.g;a.Bh=g.Wb(this.Bh);a.o=this.o;a.Pl=this.Pl;a.D=this.D;a.B=this.B?g.ob(this.B):null;a.F=this.F;a.Gc=g.Wb(this.Gc);a.C=this.C;a.location=this.location;a.referrer=this.referrer;a.G=this.G;a.language=this.language;a.Yi=this.Yi;a.Xi=this.Xi;a.Ye=this.Ye;a.Xe=this.Xe;a.Ne=this.Ne;a.Yn=this.Yn;a.Rm=this.Rm;a.Cs=this.Cs;a.A=this.A;a.vo=this.vo;a.containerElement=this.containerElement;a.afcRmFallback=
this.afcRmFallback;a.M=this.M;a.K=this.K;a.Li=this.Li;a.uo=this.uo;a.wx=this.wx;a.hx=this.hx;a.Vo=this.Vo?this.Vo.clone():null;return a};
g.h.Bh=null;g.h.Pl=null;g.h.Gc=null;g.h.ti="unknown";g.h.wx=0;g.h.Yi=0;g.h.Xi=0;g.h.Ye=0;g.h.Xe=0;g.h.Li=!1;g.h.Ne=null;g.h.Yn=!1;g.h.Rm=!1;g.h.Cs=!0;g.h.uo=new zm;g.h.vo=0;g.h.Jv=!0;g.h.containerElement=null;g.h.afcRmFallback=!1;g.h.hx=!0;g.h.Vo=null;g.C(cA,g.xf);g.C(dA,g.Te);dA.prototype.getError=function(){return this.A};g.C(fA,g.xf);fA.prototype.o=null;fA.prototype.Pb=function(){return this.B};
fA.prototype.V=function(){delete this.g;gA(this);g.sf(this.o);fA.aa.V.call(this)};
fA.prototype.C=function(){eA(this)&&(gA(this),g.sf(this.o),this.o=null,this.B=!0,this.dispatchEvent("ifload"))};g.C(hA,cA);g.qa(hA);g.h=hA.prototype;g.h.V=function(){this.o&&this.o.dispose();hA.aa.V.call(this)};
g.h.initialize=function(){if(!this.Zd){var a=g.Oe(new Yd);try{g.x("googletag");iA([a,a.top]);var b=!0}catch(c){b=!1}b?uA(this):(this.Zd=!0,this.A="not_available")}};
g.h.sd=function(a){try{this.g.googleSetCompanionAdContents((0,g.I)(a,this.mF,this)),this.Aj()}catch(b){this.dispatchEvent(new dA("companion_display_error",b))}};
g.h.Fz=function(){0<this.B&&(0,g.G)()>=this.B?(this.Zd=!0,qA(this),tA(this)):uA(this)};
g.h.iR=function(a){var b=(0,g.I)(a.adSizes,function(a){return new g.Wd(a.adWidth,a.adHeight)});
return new po(a.slotId,b)};
g.h.mF=function(a){var b={};b.slotId=a.J;b.adContent=a.hd();b.adWidth=a.B;b.adHeight=a.o;b.friendlyIframeRendering=a.A;null==a.g&&g.fb(a.C)||(b.onAdContentSet=(0,g.A)(this.YM,this,a));return b};
g.h.YM=function(a,b){if(null!=a.g){var c=g.Be(b);c||(c=g.pe("div"),b.appendChild(c));var d=a.Hc();c.appendChild(d);vA(this,a,c)}else c=a.A?b.querySelector("iframe"):(c=g.Be(b))?g.Be(c):null,(c=c&&"IFRAME"==c.tagName?c:null)&&zha(this,c,a)};
g.h.XM=function(a){this.dispatchEvent(new dA("companion_click",null,a))};
g.h.Aj=function(a){Vm(this.impressionUrls,a)};g.C(wA,g.xf);wA.prototype.Ku=function(){return!0};
wA.prototype.Nh=function(){return null};g.C(yA,wA);g.h=yA.prototype;g.h.V=function(){this.destroy();yA.aa.V.call(this)};
g.h.destroy=function(){null!=this.C&&this.C.dispose();this.B=null;(0,g.H)(this.A,function(a){ro(a)},this);
this.o=null};
g.h.sd=function(a){g.Re(this.o);this.o=new g.xf;this.B=a;this.D=!0;this.F?AA(this):(this.D=CA(BA(a),[]),this.D||(this.o=this.B=null));return this.o};
g.h.Ku=function(){return this.D};
g.h.qP=function(){null!=this.G&&(this.G.stop(),this.G.dispose(),this.G=null);if(null!=this.g){var a=jA(this.g);null!=a&&(this.A=a)}this.F=!0;null!=this.B&&AA(this);this.dispatchEvent(new g.Te("initialized"))};
g.h.ZM=function(a){zA(this,a.getError())};
g.h.VM=function(a){if(null!=a.g){var b=a.g;"companion_slot_init"==a.type?(Vm(b.D),Ff(function(){null!=this.o&&this.o.dispatchEvent(new so("companion_impression"))},this)):"companion_click"==a.type&&(Vm(b.C),null!=this.o&&this.o.dispatchEvent(new so("companion_click")))}};
g.h.Nh=function(){return this.g};g.C(DA,Lu);
DA.prototype.A=function(){if(null===this.g){for(var a=this.B,b=new Vy,c=g.ze(g.Be(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,y=g.ze(k),B=0,D=y.length;B<D;B++){var K=y[B];switch(K.nodeName){case "vmap:AdSource":if(!n&&(n=Gha(K),!n)){var m=K,K=rr(m,"vmap:AdTagURI"),X="";K.length&&(X=g.F(tr(K[0])));if(E(X))throw Ym(dpa,null,m.parentNode.nodeName,m.nodeName);m=X}break;case "vmap:Extensions":w=rr(K,"vmap:Extension"),K=
g.$a(w,g.ya(EA,"type","bumper")),null!=K&&(q=!0,r=sr(K,"suppress_bumper"),r=null!=r?"true"==r:!0),w=Hha(w)}}y=null;if(n){y=n;n=null;if(Fm().g.g("html5_reuse_parsed_xml"))try{n=qr(y)}catch(Ra){n=nr(y)}else n=nr(y);y=this.o.clone();y.o=n;y.g=""}else E(m)||(n=m,y=this.o.clone(),y.o="",y.g=n);y&&(P.g()&&(n=y,k=sr(k,"timeOffset"),B=wr(k),n.vo="start"==k||0==B?0:"end"==k||-1==B?-1:1E3*B),k=new Uy(y),k.isBumper=q,k.g=q&&!r,k.A=w,g.ib(l,k));f=Eha(f);q=0;for(r=f.length;q<r;q++)if(k=f[q],w=wr(k),0<q&&(l=Fha(this,
l)),"start"==k||0==w)Wy(b,l,0);else if("end"==k)Wy(b,l,-1);else{if(-1==w)throw Ym(Zy,null,"timeOffset",g.F(k));Wy(b,l,w)}}}if(0==b.g.Cb().length)throw Ym(nq);this.g=new Mu(a,null,b)}return this.g};HA.prototype.G=function(){var a=this.B(this.C());return Pf(a)?a.then(function(a){return a.toString()}):a instanceof Error?a:a.toString()};
HA.prototype.D=function(){var a=1;un()&&(a+=4);if(!P.g()){var b=15360;P.da&&(b+=8);a+=b}return a};var gB={W_:"ultrahigh",KW:"high",XD:"medium"},Oha={bU:1E3,cU:1001,dU:1002,eU:1003,fU:1004,gU:1005,hU:1006},Pha={TD:1,xD:2},Qha={aD:"content",MZ:"site",NZ:"site_content"};g.h=NA.prototype;g.h.Hl="high";g.h.Eq=!1;g.h.Xo=1;g.h.Yo=null;g.h.adType="video";g.h.adBlock=1;g.h.Fq=null;g.h.cp=!0;g.h.ep=null;g.h.Bp=null;g.h.Zj=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.Ww=null;g.h.Vw=null;g.h.kn=1E5;g.h.ln=null;g.h.Yw=null;g.h.Xw=null;
g.h.fr=0;g.h.vj=null;g.h.In=null;g.h.Qn=null;g.h.targeting=null;g.h.tagForChildDirectedTreatment=-1;g.h.Fn=null;g.h.url=null;g.h.Wm=null;g.h.Ts=null;g.h.Gq=null;g.h.gt=null;g.h.Xs=null;g.h.Ys=null;g.h.Zs=null;g.h.mp=null;g.h.Ss=null;g.h.to=null;g.h.ZH=null;g.h.aI=null;g.h.bI=null;var Mha={IU:"bumpervideo",yD:"flash",MD:"image",SZ:"skippablevideo",ZZ:"standardvideo",d_:"staticimage",TEXT:"text",VIDEO:"video"},ZA=["flash","image","staticimage"],Nha=[new g.Wd(200,200),new g.Wd(250,250),new g.Wd(300,250),new g.Wd(336,280),new g.Wd(450,50),new g.Wd(468,60),new g.Wd(480,70),new g.Wd(728,90)];g.C(hB,HA);var Rha=["bumpervideo","skippablevideo","standardvideo","video"];hB.prototype.F={GC:"allow",Nt:"exclude",lZ:"require"};hB.prototype.D=function(){var a=hB.aa.D.call(this);P.g()&&this.g.Qn&&(a|=this.g.Qn);return a};
hB.prototype.B=function(a){var b=new g.Ll(this.o.g),c=new g.Ll("//"+b.o+b.A),b=a.Cb();(0,g.H)(b,function(b){g.Ul(c,b,a.get(b))});
Ml(c,"https");return c};
hB.prototype.C=function(){var a=new Fl;a.set("sdkv",MA(this));a.set("sdki",this.D().toString(16));a.set("video_product_type",null!=this.g.vj?P.g()?5:g.Da(this.g.vj,"ca-games-")?4:g.Da(this.g.vj,"ca-video-")?0:-1:-1);a.set("correlator",this.J.g);a.set("client",this.g.vj);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.Ne&&a.set("adk",this.o.Ne);a.set("num_ads",iB(this));a.set("channel",Tha(this));a.set("output","xml_vast3");
this.g.Eq&&a.set("adtest","on");ao&&a.set("flash",oi);YA("alternate_ad_url",this.g.ep,a);YA("cpm",this.g.Bp,a);OA(a,this.o);P.g()||Mb(gB,this.g.Hl)&&a.set("adsafe",this.g.Hl);this.g.host&&(a.set("host",this.g.host),YA("ht_id",this.g.hostTierId,a),null!=this.g.A&&YA("h_ch",this.g.A.join("+"),a));YA("hl",this.g.language,a);YA("cust_age",this.g.Fq,a);YA("cust_gender",this.g.gender,a);-1!=this.g.tagForChildDirectedTreatment&&YA("tfcd",this.g.tagForChildDirectedTreatment,a);null!=this.g.Fn&&YA("pucrd",
this.g.Fn,a);YA("slotname",this.g.Yo,a);if(TA(this.g)&&(a.set("ea","0"),null!=this.o.Ye&&null!=this.o.Xe)){var b=UA(this.g,this.o.Ye,this.o.Xe,this.o.Li);a.set("image_size",b);E(b)&&(this.g.g=aB(this.g.g,this.g.adType,!0),this.g.adType=this.g.g.join("_"))}a.set("ad_type",this.g.adType);b=Km(Fm());E(g.F(b))||a.set("eid",b);QA(a);var b=this.J,c=this.g,d=this.g.Zj;if(null!=d){var e=Gn(b),c=null!=c.to?c.to:xn(e,d);1!=c&&a.set("ad_block",c);null==b.O&&(b.O=new Dn);var c=b.O,f=d!=b.P;(e=0==e.g%100||f)||
(e=36E5<(null===c.g?0:(new g.Bn).getTime()-c.g));e&&c.reset();b.P=d;b=c.o;null!==b&&a.set("tok",b)}a.set("unviewed_position_start","1");b=this.g.Xo;a.set("videoad_start_delay",null!=b?b:1);KA(this,a);LA(this,a);IA(this,a);Sha(this)&&a.set("video_format",null!=this.g.Wm&&P.g()?this.g.Wm:g.UE&&li(6)||g.LN&&li(4)||on(2.3)?43:18);b=null!=this.g.In?this.g.In:g.eb(this.g.adType.split("_"),"text")?P.g()&&Fm().g.g("exclude_pyv_overlays_on_desktop_watch")?this.F.Nt:this.F.GC:this.F.Nt;a.set("t_pyv",b);YA("min_ad_duration",
this.g.fr,a);0<this.g.kn&&a.set("max_ad_duration",Math.round(1.1*(this.g.kn||0)+0*iB(this)));0<this.g.ln&&a.set("sdmax",Math.round(1.1*(this.g.ln||0)+0*iB(this)));VA(a,this.K);P.g()&&(b=Sp(this.g.Zj),null!=b&&a.set("video_doc_id","yt_"+b));YA("description_url",this.g.Zj,a);P.g()&&(YA("lact",RA(this.o),a),YA("loeid",this.g.Gq,a),YA("lsv",this.g.isLiveStream,a),this.g.cp||YA("scs","false",a),YA("targeting",this.g.targeting,a),YA("video_cpm",this.g.Ts,a),YA("yt_pt",this.g.gt,a),YA("ytdevice",this.g.Xs,
a),YA("ytdevicever",this.g.Ys,a),YA("yt_vis",SA(this.o),a),YA("dbp",this.g.Zs,a),YA("avo",this.g.mp,a),YA("v_p",this.g.Ss,a));null!=a.get("ms")||YA("ms",this.g.B,a);YA("vid_kw",this.o.B?this.o.B.join(","):null,a);YA("vid_d",this.o.D,a);YA("vid_t",this.o.F,a);JA(a);WA(this.o,a,!1);null!=this.o.Bh&&YA("loc",this.o.Bh.page_location,a);return a};g.C(kB,HA);kB.prototype.B=function(a){var b=new g.Ll(this.o.g);(0,g.H)(a.Cb(),function(c){E(a.get(c))?b.g.remove(c):g.Ul(b,c,a.get(c))});
Ml(b,"https");return b};
kB.prototype.C=function(){var a=new Fl;a.set("sdkv",MA(this));LA(this,a);IA(this,a);JA(a);null!=this.o.Ne&&a.set("adk",this.o.Ne);return a};g.C(lB,HA);lB.prototype.C=function(){return new Fl};
lB.prototype.B=function(){var a=new yq(this.o.g),b=MA(this);b&&Aq(a,"dc_sdkv",[b]);(b=this.D().toString(16))&&Aq(a,"dc_sdki",[b]);(b=this.A.K)&&Aq(a,"dc_submodel",[b]);null!=this.o.Ne&&Aq(a,"dc_adk",[this.o.Ne]);b=Km(Fm());E(g.F(b))||Aq(a,"dc_eid",[b]);b=P.fa;null!=b&&Aq(a,"dc_rfl",[Ri(b)]);b=new Fl;KA(this,b);LA(this,b);IA(this,b);JA(b);Hl(b,"js")&&Aq(a,"dc_js",[b.get("js")]);Hl(b,"msid")&&Aq(a,"dc_msid",[b.get("msid")]);Hl(b,"frm")&&Aq(a,"dc_frm",[b.get("frm")]);Hl(b,"osd")&&Aq(a,"dc_osd",[b.get("osd")]);
Hl(b,"sdr")&&Aq(a,"dc_sdr",[b.get("sdr")]);Aq(a,"dcmt",["text/xml"]);Hl(b,"vpa")&&Aq(a,"vpa",[b.get("vpa")]);Hl(b,"mpt")&&Aq(a,"mpt",[b.get("mpt")]);Hl(b,"mpv")&&Aq(a,"mpv",[b.get("mpv")]);b=zq(a,"dc_output");null!=b&&(g.eb(b,"vast")||g.eb(b,"xml_vast2"))&&Aq(a,"dc_output",["xml_vast3"]);Ml(a,"https");return a};g.C(mB,HA);mB.prototype.B=function(a){a=new g.Ll(a.get("adTagUrl"));Ml(a,"https");return a};
mB.prototype.G=function(){var a=g.F(this.C().get("adTagUrl"));return a=a.replace(/^http:/i,"https:")};
mB.prototype.C=function(){var a=new Fl;a.set("adTagUrl",this.o.g);a.set("adsResponse",this.o.o);return a};g.C(nB,HA);nB.prototype.B=function(a){return new g.Ll(a.get("adTagUrl"))};
nB.prototype.C=function(){var a=new Fl;a.set("adTagUrl",this.o.g);a.set("adsResponse",this.o.o);return a};g.C(oB,HA);oB.prototype.B=function(a){var b=new g.Ll(this.o.g);(0,g.H)(a.Cb(),function(c){E(a.get(c))?b.g.remove(c):g.Ul(b,c,a.get(c))});
Ml(b,"https");return b};
oB.prototype.C=function(){var a=new Fl,b=Km(Fm());E(g.F(b))||a.set("eid",b);a.set("sdkv",MA(this));a.set("sdki",this.D().toString(16));a.set("correlator",this.A.B);a.set("scor",this.A.g);null!=this.o.Ne&&a.set("adk",this.o.Ne);KA(this,a);LA(this,a);IA(this,a);JA(a);var b=(new g.Ll(this.o.g)).g,c=new NA;c.o=eB(c.o,b.get("overlay"));a.set("afvsz",UA(c,this.o.Ye,this.o.Xe,this.o.Li));b=this.A.A;null!=b&&(this.A.A=null,a.set("fbidx",b));b=this.A.W;null!=b&&a.set("ppid",b);b="null";c=this.A.o;null!=c?
b=c:Pm(this.o.location)?b=this.o.location:Pm(this.o.referrer)&&(b=this.o.referrer);a.set("url",b);b=this.A.K;null!=b&&a.set("submodel",b);b=this.A.G;null==b||P.g()||(b=Yha(b),a.set("ciu_szs",b));b=(new g.Ll(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.C(pB,oB);pB.prototype.B=function(a){a=pB.aa.B.call(this,a);this.J||$ha(this,a);return a};g.C(qB,lB);qB.prototype.B=function(a){a=qB.aa.B.call(this,a);this.J||bia(this,a);return a};g.C(rB,HA);var dia="CA_TYPE CPN DT FLASH FRM LACT MT TSLA U_AH U_AW U_CD U_H U_HIS U_JAVA U_NMIME U_NPLUG U_TZ U_W VIS".split(" ");rB.prototype.B=function(){if(!/\[BISCOTTI_ID\]/.test(this.o.g))return sB(this);var a=this.o.Pl();return Pf(a)?a.then(function(a){return sB(this,a)},function(a){throw Ym(Xoa,a);
},this):a instanceof Error?Ym(Xoa,a):sB(this,a)};
rB.prototype.C=function(){return new Fl};tB.prototype.fetch=function(a,b,c){null!=a.o&&(g.u(a.o)&&!E(a.o)||a.o instanceof window.Document)?gia(this,a,b,c):Gq(a.g)&&null!=this.g&&!this.g.G?this.g.start(a,(0,g.A)(function(){vB(this,a,b,c)},this)):vB(this,a,b,c)};
tB.prototype.o=function(a,b,c,d){var e=fia(a,this.B).G();Pf(e)?e.then(function(e){xB(this,e,a,b,c,d)},function(a){a instanceof ym?c(a):c(Ym(wB,a))},this):e instanceof ym?c(e):e instanceof Error?c(Ym(wB,e)):xB(this,e,a,b,c,d)};yB.prototype.reset=function(a){this.g=a+(0,g.G)()};zB.prototype.start=function(a,b){this.C=a;this.F=b;oia(this);this.D.F?this.J():jm(this.o,this.D,"initialized",this.J,this)};
zB.prototype.J=function(){var a=this.D.Nh();var b=a.Zd&&"retrieved"==a.A?a.D:void 0;a=xha(a);null!=b&&(this.B.B=b);null!=a&&(this.B.G=a);nia(this)};g.h=g.BB.prototype;g.h.Nc=function(){return this.g.length+this.o.length};
g.h.isEmpty=function(){return g.fb(this.g)&&g.fb(this.o)};
g.h.clear=function(){this.g=[];this.o=[]};
g.h.contains=function(a){return g.eb(this.g,a)||g.eb(this.o,a)};
g.h.remove=function(a){var b=this.g;var c=zoa(b,a);0<=c?(g.jb(b,c),b=!0):b=!1;return b||g.kb(this.o,a)};
g.h.fb=function(){for(var a=[],b=this.g.length-1;0<=b;--b)a.push(this.g[b]);for(var c=this.o.length,b=0;b<c;++b)a.push(this.o[b]);return a};g.C(IB,g.xf);g.C(NB,uy);g.h=NB.prototype;g.h.zp=function(){var a=vy(this);g.R(a,"ima-container-rotator");this.G=g.ne("DIV");this.g.appendChild(this.G);(0,g.H)(this.M,function(a,c){g.R(a,"ima-container-highlight");var b=63/this.M.length*(c+.5)-5,e=g.ne("DIV",{id:Ua(),"class":"ima-container-selector"});e.style.top=b+"px";this.Df.X(e,"click",function(a){this.zj(a.target)});
this.W.set(e.id,a);this.F.appendChild(e)},this);
this.zj(g.Be(this.F));this.play();return a};
g.h.play=function(){null==this.B&&(this.B=new g.kg(this.P),this.Df.X(this.B,"tick",this.XQ));NB.aa.play.call(this);this.B.start()};
g.h.stop=function(){null!=this.B&&this.B.stop();NB.aa.stop.call(this)};
g.h.XQ=function(){var a=this.C;this.zj((g.t(a.nextElementSibling)?a.nextElementSibling:Ae(a.nextSibling))||g.Be(this.C.parentNode))};
g.h.zj=function(a){this.C&&g.Kp(this.C,"ima-container-active");g.R(a,"ima-container-active");var b=this.W.get(a.id);g.xe(b,this.G);this.C=a;this.G=b;wy(b)};g.C(OB,uy);OB.prototype.hide=g.z;OB.prototype.zp=function(){var a=vy(this);(0,g.H)(this.B,function(a){g.R(a,"ima-container-highlight");this.g.appendChild(a);wy(a)},this);
this.play();return a};g.C(PB,yy);g.h=PB.prototype;g.h.Ow=function(a,b){if(this.C||null==b)b=g.z;if(P.g()&&this.C)var c=new uy(a[0],b);else 1<a.length?RB(this)||"fullscreen"==this.Yc&&P.g()?c=new OB(a):(c=new NB(a),c.P=15E3):c=new uy(a[0],b);c.Pw=100;this.C&&(c.Cx=30);c.Dx=45E3;c.oA=6E3;g.S(c.g,"scalable",this.C);g.S(c.pa(),"yt-text-overlay",P.g()&&this.C);return c};
g.h.dR=function(a){var b=a.g;null!=b?(null==this.J&&(this.J=a.getExtension("AdSense").o),Ap(b,g.ya(this.mq,a,b)),zp(b,g.ya(this.rG,a,b)),"Text"==b.jd()&&(this.C=!0),this.A.push(b)):(b=Ym(MB),b=bq(b,a),Vm(Ur(a),b))};
g.h.Rc=function(a,b,c){PB.aa.Rc.call(this,a,b,c);this.Va.Mu=!0;a=this.ma();g.fb(Wr(a))?P.g()&&this.la("companionBackfill"):this.sd(a)};
g.h.Ru=function(){null==this.A&&(this.A=[],(0,g.H)(this.ads,this.dR,this));if(0==this.A.length)throw Zm(MB);var a=[];(0,g.H)(this.A,function(b){Bp(b,this.Xa());"Flash"!=b.jd()||b.Ob().getExtension("TemplateAd")||(b.Tu=!0);a.push(b.Hc());Wda(b,this.J.F)},this);
if(0==a.length)throw Zm(MB);uia(this);return this.Ll(a)};
g.h.start=function(){PB.aa.start.call(this);!this.G&&RB(this)&&(this.G=!0,this.la("contentPauseRequested"));null!=this.o&&this.o.start();if(this.B){var a=SB(this);Ln(In.getInstance(),33,a)}};
g.h.Om=function(a){PB.aa.Om.call(this,a);(0,g.H)(this.A,function(a){var b=cq(a.Ob(),this.Da);this.Rb.g=b;this.Vf(a,["close"]);this.Ea("close");this.Rb=new lu},this)};
g.h.sm=function(a){PB.aa.sm.call(this,a);RB(this)&&(null!=this.containerElement&&g.te(this.containerElement),P.o?io().Cj(null):Rn().Cj(null),this.G&&(this.G=!1,this.la("contentResumeRequested")))};
g.h.Ll=function(a){a=PB.aa.Ll.call(this,a);if(RB(this)){var b=uw(2);g.R(this.g.g,b);g.R(a,b)}return a};
g.h.ip=function(a){if(RB(this)){var b=g.Ce(a);b&&((a=g.ze(a)[0])&&g.bh(a,{margin:"0 auto"}),a=this.ads[0].getExtension("AdSense").o||new Vu,this.o=new ax(b,a,2,QB(this),!0),this.Xa().X(this.o,"skip",this.PG),this.Xa().X(this.o,"end",this.CH))}else PB.aa.ip.call(this,a),b=Pp($ga,QB(this)),a.appendChild(b)};
g.h.mq=function(a,b){this.B?this.Zk(a,b):this.F.push((0,g.A)(this.Zk,this,a,b));Ap(b,g.z);this.la("impression")};
g.h.Zk=function(a,b){var c=cq(a,this.Da);this.Rb.g=c;this.yg(a);this.Vf(b,["creativeview"]);this.Ea("impression");this.Ea("creativeview");wu(this,"start");this.Rb=new lu};
g.h.rG=function(a,b,c){a=a.getExtension("AdSense");a=new g.Ll(a.B);var d=b.Eb();(0,window.isNaN)(d)&&(d=g.uh(b.Hc()).width);var e=b.getHeight();(0,window.isNaN)(e)&&(e=g.uh(b.Hc()).height);var f=g.qh(c),k=c instanceof Xe;b=k&&g.t(c.B)?c.B:f.x;c=k&&g.t(c.C)?c.C:f.y;f=Fm();c=["0","aw="+d,"ah="+e,"nx="+b,"ny="+c,"viewMode="+this.Yc,"sdkv=h.0.0.0","eids="+Km(f)];P.g()||(d=g.uh(this.Qa.Bf()),e=this.o?xga(this.o):new g.Td(-1,-1),c=c.concat(["bw="+d.width,"bh="+d.height,"sx="+e.x,"sy="+e.y]));Sm(a,"elementclick",
c);(0,g.H)(this.A,function(a){var b=cq(a.Ob(),this.Da);this.Rb.g=b;zy(this,a);this.Ea("click");this.Rb=new lu},this);
this.la("click")};
g.h.Cc=function(a){this.Yc!=a&&(PB.aa.Cc.call(this,a),this.la("expandedChanged"))};
g.h.Ul=function(){PB.aa.Ul.call(this,this.o?15:0,this.o?65:0)};
g.h.PG=function(){TB(this,"skip")};
g.h.CH=function(){TB(this,"close")};g.C(UB,g.M);UB.prototype.o=function(a){if(0==a.Ec||0>=this.A||0>=this.g)return!1;var b=(0,g.G)()/1E3;a=a.Ec-this.B.currentTime;0<a&&(b+=a);return b-this.g<=this.A};g.C(VB,UB);VB.prototype.o=function(a){return 5==a.Ue()?!1:VB.aa.o.call(this,a)};g.C(LB,pu);g.h=LB.prototype;
g.h.Rc=function(a,b,c){null!=this.Zb&&(this.Zb.Wc(),this.Zb.dispose(),this.Zb=null);LB.aa.Rc.call(this,a,b,c);a=this.uf.g.Cb();b=new mz(b);var d=4;c&&0<=c.Wr&&(d=c.Wr);var e=new cz;e.D=d;d=Fm().g;e.C=d.g("enable_prefetch_for_postrolls");e.g=d.g("enable_midroll_notify");e.A=d.g("enable_postroll_notify");e.o=d.o("midroll_notify_time");e.B=d.o("postroll_notify_time");this.Xr=null!=c?c.hA:0;wia(this,a);this.Zb=new dz(b,this.Db.fb(),e);a=this.uf.g.Cb();xia(this,a);yia(this);c=g.$a(this.Db.fb(),function(a){return 0==
a.Ec});
null!=c&&this.Tf()&&aC(this,c);try{c={cfg:!0},c.ads=this.Yf,Ln(In.getInstance(),44,c)}catch(f){}};
g.h.init=function(a){LB.aa.init.call(this,a);this.As()};
g.h.qj=function(){this.Re();this.dispatchEvent(new tw(null))};
g.h.destroy=function(){this.dispose()};
g.h.V=function(){this.ib.g=!0;if(0<this.Db.Nc()){var a=this.Db.fb();(0,g.H)(a,this.Hi,this);this.Db.clear()}ZB(this);bC(this);null!=this.Qa&&(this.Qa.hide(),this.Qa=null);LB.aa.V.call(this)};
g.h.start=function(){LB.aa.start.call(this)};
g.h.stop=function(){null!=this.sb&&(this.Hi(this.sb),this.Qf())};
g.h.Ab=function(a,b,c){LB.aa.Ab.call(this,a,b,c);this.Ud=a;this.Td=b;this.Yc=c;null!=this.sb&&Cy(this.sb,this.Ud,this.Td,this.Yc)};
g.h.pause=function(){null!=this.sb&&this.sb.pause()};
g.h.resume=function(){null!=this.sb&&this.sb.resume()};
g.h.skip=function(){null!=this.sb&&this.sb.skip()};
g.h.hf=function(){null!=this.sb&&this.sb.hf()};
g.h.setVolume=function(a){LB.aa.setVolume.call(this,a);null!=this.sb&&this.sb.setVolume(a)};
g.h.getCurrentTime=function(){return null!=this.sb?this.sb.getCurrentTime():-1};
g.h.getDuration=function(){return null!=this.sb?this.sb.getDuration():-1};
g.h.Oc=function(){return null!=this.sb?this.sb.Oc():-1};
g.h.Re=function(){var a=g.ob(this.uf.g.Cb());(0,g.H)(this.Db.fb(),g.ya(function(a,c){5==c.Ue()&&g.kb(a,c.Ec)},a));
return a};
g.h.Kb=function(){return null!=this.sb?this.sb.Kb():null};
g.h.Rn=function(){};
g.h.Me=function(a){LB.aa.Me.call(this,a);null!=this.Db&&(0,g.H)(this.Db.fb(),function(b){b.Me(a)})};
g.h.As=function(){this.Zb.Gb();this.Zb.Jw();var a=g.oa(0)&&!(0,window.isNaN)(0)?this.uf.g.get(0,[]):[];g.fb(a)&&this.la("contentResumeRequested")};
g.h.handleEvent=function(a){switch(a.type){case "contentTrackingError":break;case "discardAdBreak":YB(this,this.Db.get(a.g));break;default:g.DB(this.bk,a),$B(this)}};
g.h.ii=function(){this.la("userClose")};
g.h.hi=function(){this.la("autoClose")};
g.h.Hi=function(a){a.destroy();this.Db.remove(g.xa(a));this.sb=null;null!=this.gc&&(this.gc.za(a,iy,this.dispatchEvent,!1,this),this.gc.za(a,"adError",this.Wv,!1,this),this.gc.za(a,"allAdsCompleted",this.Zy,!1,this),this.gc.za(a,"contentPauseRequested",this.mh,!1,this),this.gc.za(a,"contentResumeRequested",this.Qf,!1,this),this.gc.za(a,"adBreakInitialized",this.az,!1,this))};
g.h.bN=function(a){this.gm=!0;-1==this.Yh?a.A=!1:P.g()&&!WB(this)||XB(this);jha(this.Zb)};
g.h.aM=function(a){var b=a.A,c=0==b,d=-1==b;this.ak?(c?this.la("contentResumeRequested"):!d||P.g()&&!WB(this)||XB(this),this.ak=!1):(d?g.mg(function(){var b=this.Db.get(a.g);b&&this.Hi(b);P.g()&&!WB(this)||XB(this)},500,this):c&&g.mg(function(){this.la("contentResumeRequested")},100,this),c={},c.adBreakTime=b,this.dispatchEvent(new sm("adBreakReady",null,c)))};
g.h.Wv=function(a){var b=a.getError(),c=b.Lb();try{var d={};d.ec=c;Ln(In.getInstance(),44,d)}catch(e){}if(P.g()&&b&&"adLoadError"==b.bc()&&(this.dispatchEvent(a),null!=this.Zb))for(b=this.Zb,a=a.target.Ec,c=0;c<b.g.length;c++)b.g[c].g==a&&(b.g[c].B=!0)};
g.h.Zy=function(a){this.Hi(a.target);(WB(this)||!P.g()&&this.gm)&&XB(this);this.Hd=null;$B(this)};
g.h.mh=function(){var a=this.Zb;a.o.stop();a.A=!1;this.la("contentPauseRequested")};
g.h.Qf=function(){this.la("contentResumeRequested");this.bp||gz(this.Zb);this.Hd=null};
g.h.az=function(a){this.Hd=null;var b=a.target;a={};a.adBreakTime=b.Ec;this.dispatchEvent(new sm("prefetched",b.Kb(),a));if(null!=this.Zb){a=this.Zb;for(var b=b.Ec,c=0;c<a.g.length;c++)a.g[c].g==b&&(a.g[c].Zd=!0)}$B(this)};
g.h.la=function(a){var b=null;null!=this.sb&&(b=this.sb.Kb());this.dispatchEvent(new sm(a,b))};
g.h.Mi=function(a){return g.$a(this.Db.fb(),g.ya(function(a,c){return c.Ec==a},a))};
g.h.NA=function(a,b){P.g()?this.gd=new VB(a,b):this.gd=new UB(a,b);return this.gd};
g.h.ze=function(){return P.g()&&null!=cC(this)&&null!=cC(this).g?cC(this).g.ze():null};
g.h.Rf=function(a){null!=cC(this)&&cC(this).Rf(a)};
g.h.Tf=function(){return!1};g.C(eC,g.xf);eC.prototype.V=function(){null!=this.g&&(this.g.za("adsManagerLoaded",this.dispatchEvent),this.g.za("adError",this.dispatchEvent),this.g.za("adLoadError",this.dispatchEvent),this.g=null);eC.aa.V.call(this)};bc("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));gC.prototype.stringify=function(a){return Jc(this.o,a)};
gC.prototype.parse=function(a){return this.g(a)};hC.prototype.clone=function(){return new hC(this.g,this.F,this.A,this.C,this.B,this.D,this.o,this.G)};jC.prototype.o=0;jC.prototype.reset=function(){this.g=this.A=this.B;this.o=0};
jC.prototype.getValue=function(){return this.A};g.h=kC.prototype;g.h.Sh=null;g.h.kf=!1;g.h.Mj=null;g.h.Vs=null;g.h.al=null;g.h.Wi=null;g.h.Xg=null;g.h.rh=null;g.h.ki=null;g.h.ed=null;g.h.pl=0;g.h.mf=null;g.h.oo=null;g.h.Th=null;g.h.rk=-1;g.h.AA=!0;g.h.Eh=!1;g.h.iq=0;g.h.Jn=null;var rC={},pC={};g.h=kC.prototype;g.h.setTimeout=function(a){this.C=a};
g.h.LQ=function(a){a=a.target;var b=this.Jn;b&&3==Hw(a)?b.Vi():this.uB(a)};
g.h.uB=function(a){try{if(a==this.ed)a:{var b=Hw(this.ed),c=this.ed.o,d=this.ed.getStatus();if(g.sc&&!g.lc(10)||g.ke&&!g.kc("420+")){if(4>b)break a}else if(3>b||3==b&&!g.Ve&&!Kw(this.ed))break a;this.Eh||4!=b||7==c||(8==c||0>=d?this.g.ff(3):this.g.ff(2));BC(this);var e=this.ed.getStatus();this.rk=e;var f=Kw(this.ed);(this.kf=200==e)?(4==b&&tC(this),this.D?(vC(this,b,f),g.Ve&&this.kf&&3==b&&(this.B.X(this.o,"tick",this.CQ),this.o.start())):sC(this,f),this.kf&&!this.Eh&&(4==b?this.g.An(this):(this.kf=
!1,oC(this)))):(this.Th=400==e&&0<f.indexOf("Unknown SID")?3:0,qC(),tC(this),uC(this))}}catch(k){}finally{}};
g.h.CQ=function(){var a=Hw(this.ed),b=Kw(this.ed);this.pl<b.length&&(BC(this),vC(this,a,b),this.kf&&4!=a&&oC(this))};
g.h.OP=function(a){AC((0,g.A)(this.NP,this,a),0)};
g.h.NP=function(a){this.Eh||(BC(this),sC(this,a),oC(this))};
g.h.Uz=function(a){AC((0,g.A)(this.MP,this,a),0)};
g.h.MP=function(a){this.Eh||(tC(this),this.kf=a,this.g.An(this),this.g.ff(4))};
g.h.cancel=function(){this.Eh=!0;tC(this)};
g.h.fQ=function(){this.Mj=null;var a=(0,g.G)();0<=a-this.Vs?(2!=this.Wi&&this.g.ff(3),tC(this),this.Th=2,qC(),uC(this)):zC(this,this.Vs-a)};g.h=FC.prototype;g.h.fq=null;g.h.ee=null;g.h.Kn=!1;g.h.ow=null;g.h.xm=null;g.h.gq=null;g.h.hq=null;g.h.De=null;g.h.qg=-1;g.h.qk=null;g.h.Sj=null;g.h.connect=function(a){this.hq=a;a=GC(this.g,null,this.hq);qC();this.ow=(0,g.G)();var b=this.g.J;null!=b?(this.qk=b[0],(this.Sj=b[1])?(this.De=1,HC(this)):(this.De=2,JC(this))):(Wl(a,"MODE","init"),this.ee=new kC(this,0,void 0,void 0,void 0),this.ee.Sh=this.fq,nC(this.ee,a,!1,null,!0),this.De=0)};
g.h.zF=function(a){if(a)this.De=2,JC(this);else{qC();var b=this.g;b.Ve=b.Pg.qg;cD(b,9)}a&&this.ff(2)};
g.h.Dp=function(a){return this.g.Dp(a)};
g.h.abort=function(){this.ee&&(this.ee.cancel(),this.ee=null);this.qg=-1};
g.h.mw=function(){return!1};
g.h.Nz=function(a,b){this.qg=a.rk;if(0==this.De)if(b){try{var c=this.o.parse(b)}catch(d){c=this.g;c.Ve=this.qg;cD(c,2);return}this.qk=c[0];this.Sj=c[1]}else c=this.g,c.Ve=this.qg,cD(c,2);else if(2==this.De)if(this.Kn)qC(),this.gq=(0,g.G)();else if("11111"==b){if(qC(),this.Kn=!0,this.xm=(0,g.G)(),c=this.xm-this.ow,!g.sc||g.lc(10)||500>c)this.qg=200,this.ee.cancel(),qC(),IC(this.g,this,!0)}else qC(),this.xm=this.gq=(0,g.G)(),this.Kn=!1};
g.h.An=function(){this.qg=this.ee.rk;if(this.ee.kf)0==this.De?this.Sj?(this.De=1,HC(this)):(this.De=2,JC(this)):2==this.De&&((!g.sc||g.lc(10)?!this.Kn:200>this.gq-this.xm)?(qC(),IC(this.g,this,!1)):(qC(),IC(this.g,this,!0)));else{0==this.De?qC():2==this.De&&qC();var a=this.g;a.Ve=this.qg;cD(a,2)}};
g.h.fl=function(){return this.g.fl()};
g.h.isActive=function(){return this.g.isActive()};
g.h.ff=function(a){this.g.ff(a)};g.h=KC.prototype;g.h.dk=null;g.h.Jd=null;g.h.zc=null;g.h.eq=null;g.h.Am=null;g.h.Ou=null;g.h.Mm=null;g.h.Qk=0;g.h.WL=0;g.h.ld=null;g.h.Qg=null;g.h.hg=null;g.h.Ih=null;g.h.Pg=null;g.h.no=null;g.h.gj=-1;g.h.rx=-1;g.h.Ve=-1;g.h.gk=0;g.h.Bi=0;g.h.Gh=8;var dD=new g.xf;g.C(LC,g.Te);g.C(MC,g.Te);g.C(NC,g.Te);g.h=KC.prototype;g.h.connect=function(a,b,c,d,e){qC();this.eq=b;this.dk=c||{};d&&g.t(e)&&(this.dk.OSID=d,this.dk.OAID=e);this.D?(AC((0,g.A)(this.ov,this,a),100),TC(this)):this.ov(a)};
g.h.ov=function(a){this.Pg=new FC(this);this.Pg.fq=null;this.Pg.o=this.C;this.Pg.connect(a)};
g.h.mw=function(){return 0==this.g};
g.h.Sz=function(a){this.Qg=null;YC(this,a)};
g.h.Rz=function(){this.hg=null;this.zc=new kC(this,0,this.A,"rpc",this.F);this.zc.Sh=null;this.zc.iq=0;var a=this.Ou.clone();g.Ul(a,"RID","rpc");g.Ul(a,"SID",this.A);g.Ul(a,"CI",this.no?"0":"1");g.Ul(a,"AID",this.gj);PC(this,a);if(!g.sc||g.lc(10))g.Ul(a,"TYPE","xmlhttp"),nC(this.zc,a,!0,this.Mm,!1);else{g.Ul(a,"TYPE","html");var b=this.zc,c=!!this.Mm;b.Wi=3;b.Xg=Xl(a.clone());yC(b,c)}};
g.h.Nz=function(a,b){if(0!=this.g&&(this.zc==a||this.Jd==a))if(this.Ve=a.rk,this.Jd==a&&3==this.g)if(7<this.Gh){try{var c=this.C.parse(b)}catch(f){c=null}if(g.sa(c)&&3==c.length)if(0==c[0])a:{if(!this.hg){if(this.zc)if(this.zc.al+3E3<this.Jd.al)UC(this),this.zc.cancel(),this.zc=null;else break a;aD(this);qC()}}else this.rx=c[1],0<this.rx-this.gj&&37500>c[2]&&this.no&&0==this.Bi&&!this.Ih&&(this.Ih=AC((0,g.A)(this.AM,this),6E3));else cD(this,11)}else b!=Loa.sV.g&&cD(this,11);else if(this.zc==a&&UC(this),
!E(b)){c=this.C.parse(b);g.sa(c);for(var d=0;d<c.length;d++){var e=c[d];this.gj=e[0];e=e[1];2==this.g?"c"==e[0]?(this.A=e[1],this.Mm=e[2],e=e[3],null!=e?this.Gh=e:this.Gh=6,this.g=3,this.ld&&this.ld.Zu(this),this.Ou=GC(this,this.fl()?this.Mm:null,this.eq),ZC(this)):"stop"==e[0]&&cD(this,7):3==this.g&&("stop"==e[0]?cD(this,7):"noop"!=e[0]&&this.ld&&this.ld.Yu(this,e),this.Bi=0)}}};
g.h.AM=function(){null!=this.Ih&&(this.Ih=null,this.zc.cancel(),this.zc=null,aD(this),qC())};
g.h.An=function(a){if(this.zc==a){UC(this);this.zc=null;var b=2}else if(this.Jd==a)this.Jd=null,b=1;else return;this.Ve=a.rk;if(0!=this.g)if(a.kf)1==b?((0,g.G)(),dD.dispatchEvent(new MC(dD,a.ki?a.ki.length:0)),SC(this),this.B.length=0):ZC(this);else{var c=a.Th,d;if(!(d=3==c||7==c||0==c&&0<this.Ve)){if(d=1==b)this.Jd||this.Qg||1==this.g||2<=this.gk?d=!1:(this.Qg=AC((0,g.A)(this.Sz,this,a),$C(this,this.gk)),this.gk++,d=!0);d=!(d||2==b&&aD(this))}if(d)switch(c){case 1:cD(this,5);break;case 4:cD(this,
10);break;case 3:cD(this,6);break;case 7:cD(this,12);break;default:cD(this,2)}}};
g.h.VF=function(a){if(!g.eb(arguments,this.g))throw Error("Unexpected channel state: "+this.g);};
g.h.yR=function(a){a?qC():(qC(),bD(this,8))};
g.h.Dp=function(a){if(a)throw Error("Can't create secondary domain capable XhrIo object.");a=new Bw;a.G=!1;return a};
g.h.isActive=function(){return!!this.ld&&this.ld.isActive(this)};
g.h.ff=function(){dD.dispatchEvent(new NC(dD))};
g.h.fl=function(){return!(!g.sc||g.lc(10))};
g.h=eD.prototype;g.h.Zu=function(){};
g.h.Yu=function(){};
g.h.Xu=function(){};
g.h.vp=function(){};
g.h.Xv=function(){return{}};
g.h.isActive=function(){return!0};g.C(g.gD,g.M);g.h=g.gD.prototype;g.h.subscribe=function(a,b,c){var d=this.o[a];d||(d=this.o[a]=[]);var e=this.Ld;this.g[e]=a;this.g[e+1]=b;this.g[e+2]=c;this.Ld=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.$a(a,function(a){return d[a+1]==b&&d[a+2]==c}))return this.Qd(a)}return!1};
g.h.Qd=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.z):(c&&g.kb(c,a),delete this.g[a],delete this.g[a+1],delete this.g[a+2])}return!!b};
g.h.Y=function(a,b){var c=this.o[a];if(c){for(var d=Array(arguments.length-1),e=1,f=arguments.length;e<f;e++)d[e-1]=arguments[e];if(this.C)for(e=0;e<c.length;e++){var k=c[e];Fia(this.g[k+1],this.g[k+2],d)}else{this.B++;try{for(e=0,f=c.length;e<f;e++)k=c[e],this.g[k+1].apply(this.g[k+2],d)}finally{if(this.B--,0<this.A.length&&0==this.B)for(;k=this.A.pop();)this.Qd(k)}}return 0!=e}return!1};
g.h.clear=function(a){if(a){var b=this.o[a];b&&((0,g.H)(b,this.Qd,this),delete this.o[a])}else this.g.length=0,this.o={}};
g.h.Nc=function(a){if(a){var b=this.o[a];return b?b.length:0}a=0;for(b in this.o)a+=this.Nc(b);return a};
g.h.V=function(){g.gD.aa.V.call(this);this.clear();this.A.length=0};g.hD.prototype.set=function(a,b){g.t(b)?this.g.set(a,g.Lc(b)):this.g.remove(a)};
g.hD.prototype.get=function(a){try{var b=this.g.get(a)}catch(c){return}if(null!==b)try{return g.Ic(b)}catch(c){throw"Storage: Invalid value was encountered";}};
g.hD.prototype.remove=function(a){this.g.remove(a)};g.C(iD,g.hD);iD.prototype.set=function(a,b){iD.aa.set.call(this,a,kD(b))};
iD.prototype.o=function(a){a=iD.aa.get.call(this,a);if(!g.t(a)||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
iD.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.C(lD,iD);lD.prototype.set=function(a,b,c){if(b=kD(b)){if(c){if(c<(0,g.G)()){lD.prototype.remove.call(this,a);return}b.expiration=c}b.creation=(0,g.G)()}lD.aa.set.call(this,a,b)};
lD.prototype.o=function(a,b){var c=lD.aa.o.call(this,a);if(c)if(!b&&g.mD(c))lD.prototype.remove.call(this,a);else return c};g.C(g.nD,lD);g.C(oD,Gia);oD.prototype.Nc=function(){var a=0;g.El(this.Sd(!0),function(){a++});
return a};
oD.prototype.clear=function(){var a=Vca(this.Sd(!0)),b=this;(0,g.H)(a,function(a){b.remove(a)})};g.C(pD,oD);g.h=pD.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.Nc=function(){return this.g.length};
g.h.Sd=function(a){var b=0,c=this.g,d=new Bl;d.next=function(){if(b>=c.length)throw Cl;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.C(qD,pD);g.C(rD,pD);g.C(sD,oD);sD.prototype.set=function(a,b){this.o.set(this.g+a,b)};
sD.prototype.get=function(a){return this.o.get(this.g+a)};
sD.prototype.remove=function(a){this.o.remove(this.g+a)};
sD.prototype.Sd=function(a){var b=this.o.Sd(!0),c=this,d=new Bl;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};uD.prototype.getValue=function(){return this.g};
uD.prototype.clone=function(){return new uD(this.Ld,this.g)};g.h=vD.prototype;g.h.remove=function(){var a=this.g,b=a.length,c=a[0];if(!(0>=b)){if(1==b)gb(a);else{a[0]=a.pop();for(var a=0,b=this.g,d=b.length,e=b[a];a<d>>1;){var f=2*a+1,k=2*a+2,f=k<d&&b[k].Ld<b[f].Ld?k:f;if(b[f].Ld>e.Ld)break;b[a]=b[f];a=f}b[a]=e}return c.getValue()}};
g.h.fb=function(){for(var a=this.g,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};
g.h.Cb=function(){for(var a=this.g,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].Ld);return b};
g.h.clone=function(){return new vD(this)};
g.h.Nc=function(){return this.g.length};
g.h.isEmpty=function(){return g.fb(this.g)};
g.h.clear=function(){gb(this.g)};g.C(xD,vD);/*
 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.
*/
yD.prototype.cancel=function(a){if(this.g)this.A instanceof yD&&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.O?this.O.call(this.M,this):this.J=!0;this.g||(a=new ID,CD(this),AD(this,!1,a))}};
yD.prototype.K=function(a,b){this.F=!1;AD(this,a,b)};
yD.prototype.ig=function(a){CD(this);AD(this,!0,a)};
yD.prototype.then=function(a,b,c){var d,e,f=new g.Rf(function(a,b){d=a;e=b});
DD(this,d,function(a){a instanceof ID?f.cancel():e(a)});
return f.then(a,b,c)};
Of(yD);yD.prototype.isError=function(a){return a instanceof Error};
g.C(BD,Ca);BD.prototype.message="Deferred has already fired";BD.prototype.name="AlreadyCalledError";g.C(ID,Ca);ID.prototype.message="Deferred was canceled";ID.prototype.name="CanceledError";HD.prototype.o=function(){delete GD[this.Aa];throw this.g;};
var GD={};g.C(JD,Pc);var Hia=[2];var Oma={zT:0,xT:1,vT:2,zV:3,yT:4,FV:5,EV:6,BV:7,AV:8,xV:9,yV:10,CV:11,wV:12,AT:13,BT:14,wT:15,CT:16,DT:17},Pma={ST:0,QT:1,PT:2,RT:3,OT:4,IT:5,LT:6,NT:7,KT:8,HT:9,XT:10,GT:11,JT:12,FT:13,UT:14,ET:15,VT:16,TT:17},Qma={bX:0,cX:1,eX:2,dX:3,ZW:4,aX:5,GV:6};g.sG=window.performance&&window.performance.timing&&window.performance.now?function(){return window.performance.timing.navigationStart+window.performance.now()}:function(){return(new Date).getTime()};g.LD=window.yt&&window.yt.config_||window.ytcfg&&window.ytcfg.data_||{};g.v("yt.config_",g.LD,void 0);var OD=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};g.v("yt.msgs_",OD,void 0);Aa=function(a,b){b=void 0===b?{}:b;var c=a in OD?OD[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.RD=void 0;var oE={hc:function(a,b){a.splice(0,b)},
io:function(a){a.reverse()},
Y8:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b]=c}};var rpa,fka,eka,spa,uQ,rma,Rka,tpa,RM,CO,Ska;rpa=/^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\/)/;fka=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|borg\.google\.com|googleapis\.com|prod\.google\.com|sandbox\.google\.com|staging\-www\.sandbox\.googleapis\.com)(:[0-9]+)?\//;eka=/^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\/)/;
spa=/^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)/;uQ=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|docs\.google\.com|drive\.google\.com|prod\.google\.com|sandbox\.google\.com|plus\.google\.com|mail\.google\.com|youtube\.com|youtubeeducation\.com)(:[0-9]+)?\//;rma=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|borg\.google\.com|prod\.google\.com|sandbox\.google\.com|youtube\.com)(:[0-9]+)?\//;
Rka=/^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.WP=/^((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\-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|sandbox\.google\.com|plus\.google\.com|video\.google\.com|youtube\.com|ytimg\.com)(:[0-9]+)?\/|s2\.googleusercontent\.com\/s2\/favicons\?|yt[3-4]\.ggpht\.com\/)/;
tpa=/^https?.*#ocr$|^https?:\/\/(aksecure\.imrworldwide\.com\/|cdn\.imrworldwide\.com\/|secure\-..\.imrworldwide\.com\/)/;g.Q3=/^https?:\/\/(googleads\.g\.doubleclick\.net\/(aclk|pagead\/conversion)|www\.google\.com\/(aclk|pagead\/conversion)|www\.googleadservices\.com\/(aclk|pagead\/(aclk|conversion)))/;RM=/^((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\-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|sandbox\.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)(:[0-9]+)?\//;
CO=/^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)/;
Ska=/^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|sandbox\.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)(:[0-9]+)?\/|(www\.|encrypted\.)?google\.(cat|com(\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))\/(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 sE=g.t(window.XMLHttpRequest)?function(){return new window.XMLHttpRequest}:g.t(window.ActiveXObject)?function(){return new window.ActiveXObject("Microsoft.XMLHTTP")}:null;var IE={"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"};var VN=FO||EO;var $E={},Pia=0;var Ria={uU:"net.badstatus",uZ:"net.retryexhausted",TIMEOUT:"net.timeout",UNKNOWN:"net.unknown"};g.p(bF,Ca);var Qia=bF;g.p(eF,Ca);eF.prototype.name="BiscottiError";g.p(fF,Ca);fF.prototype.name="BiscottiMissingError";gF.prototype.then=function(a,b,c){try{if(g.t(this.o))return a?Vf(a.call(c,this.o)):Vf(this.o);if(g.t(this.g)){if(!b)return Wf(this.g);var d=b.call(c,this.g);return!g.t(d)&&this.g.A?Wf(this.g):Vf(d)}throw Error("Invalid Result state");}catch(e){return Wf(e)}};
Of(gF);var iF={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},hF=null;var oF={};var upa,tF;upa=0;tF=g.ke?"webkit":g.dh?"moz":g.sc?"ms":g.Ve?"o":"";g.vpa=g.x("ytDomDomGetNextId")||function(){return++upa};
g.v("ytDomDomGetNextId",g.vpa,void 0);var Uia={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};zF.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
zF.prototype.ix=function(){return this.event?!1===this.event.returnValue:!1};
zF.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
zF.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var BF=g.x("ytEventsEventsListeners")||{};g.v("ytEventsEventsListeners",BF,void 0);var CF=g.x("ytEventsEventsCounter")||{count:0};g.v("ytEventsEventsCounter",CF,void 0);var wpa=Cf(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a});g.NF.prototype.X=function(a,b,c,d){c=(0,g.A)(c,d||this.o);a=g.DF(a,b,c);this.g.push(a);return a};
g.NF.prototype.za=function(a){g.EF(a);g.kb(this.g,a)};g.p(PF,g.M);PF.prototype.T=function(a,b,c,d,e){c=rE((0,g.A)(c,d||this.o));c={target:a,name:b,ig:c};var f;e&&wpa()&&(f={passive:!0});a.addEventListener(b,c.ig,f);this.g.push(c);return c};
PF.prototype.za=function(a){for(var b=0;b<this.g.length;b++)if(this.g[b]==a){this.g.splice(b,1);a.target.removeEventListener(a.name,a.ig,!1);break}};
PF.prototype.V=function(){QF(this);g.M.prototype.V.call(this)};g.C(g.RF,g.M);g.RF.prototype.subscribe=function(a,b,c){return this.na()?0:this.ba.subscribe(a,b,c)};
g.RF.prototype.unsubscribe=function(a,b,c){return this.na()?!1:this.ba.unsubscribe(a,b,c)};
g.RF.prototype.Qd=function(a){return this.na()?!1:this.ba.Qd(a)};
g.RF.prototype.Y=function(a,b){return this.na()?!1:this.ba.Y.apply(this.ba,arguments)};g.p(g.TF,g.RF);g.h=g.TF.prototype;g.h.cancel=function(){this.B&&(this.B=!1,this.Y("dragend",0,0,null));this.o&&(this.o=!1,this.Y("hoverend",0,0,null),QF(this.g),SF(this))};
g.h.Kx=function(a){QF(this.g);UF(this,VF("move"),this.Ix);UF(this,VF("out"),this.Jx);UF(this,"touchstart",this.kr);this.A&&UF(this,VF("down"),this.jr);var b=g.FF(a);a=HF(a);this.o=!0;this.Y("hoverstart",a.x,a.y,b);this.Y("hovermove",a.x,a.y,b)};
g.h.Ix=function(a){var b=g.FF(a);a=HF(a);if(this.C){var c=this.C;this.C=null;if(IF(c)==b&&Ud(HF(c),a))return}this.Y("hovermove",a.x,a.y,b)};
g.h.Jx=function(a){var b=HF(a),c=IF(a);c&&g.De(this.D,c)?(this.C=a,this.Y("hovermove",b.x,b.y,c)):(QF(this.g),SF(this),this.o=!1,this.Y("hoverend",b.x,b.y,c))};
g.h.OL=function(a){this.Kx(a);this.jr(a)};
g.h.jr=function(a){if(!g.oa(a.button)||0==a.button){QF(this.g);this.g.T(window.document,VF("move"),this.NL);this.g.T(window.document,VF("up"),this.SI);var b=g.FF(a);if(g.ke)UF(this,"dragstart",this.PF);else if(g.MF(a),(g.YO||g.dh)&&b)a:{for(var c=b;c;){if(g.Je(c)||"-1"===c.getAttribute("tabindex")){c.focus();break a}c=c.parentElement}window.document.activeElement.blur()}this.B=!0;a=HF(a);this.Y("dragstart",a.x,a.y,b);this.Y("dragmove",a.x,a.y,b)}};
g.h.PF=function(a){g.MF(a)};
g.h.NL=function(a){var b=g.FF(a);b==window.document&&(b=null);a=HF(a);this.Y("hovermove",a.x,a.y,b);this.Y("dragmove",a.x,a.y,b)};
g.h.SI=function(a){QF(this.g);this.B=!1;var b=JF(a),c=g.FF(a);a=HF(a);b&&g.De(this.D,b)?(UF(this,VF("move"),this.Ix),UF(this,VF("out"),this.Jx),UF(this,VF("down"),this.jr),UF(this,"touchstart",this.kr),this.Y("dragend",a.x,a.y,c)):(SF(this),this.o=!1,this.Y("dragend",a.x,a.y,c),this.Y("hoverend",a.x,a.y,c))};
g.h.kr=function(a){var b=a.changedTouches[0];b&&(QF(this.g),UF(this,"touchmove",this.TI),UF(this,"touchend",this.Lx),UF(this,"touchcancel",this.Lx),this.F=b.identifier,a=g.FF(a),this.o||(this.o=!0,this.Y("hoverstart",b.pageX,b.pageY,a)),this.Y("hovermove",b.pageX,b.pageY,a),this.A&&(this.B=!0,this.Y("dragstart",b.pageX,b.pageY,a),this.Y("dragmove",b.pageX,b.pageY,a)))};
g.h.TI=function(a){var b=WF(this,a);b&&(this.A&&g.MF(a),a=g.FF(a),this.Y("hovermove",b.pageX,b.pageY,a),this.A&&this.Y("dragmove",b.pageX,b.pageY,a))};
g.h.Lx=function(a){var b=WF(this,a);if(b){QF(this.g);SF(this);this.o=!1;var c=g.FF(a);this.A&&(this.G||g.MF(a),this.B=!1,this.Y("dragend",b.pageX,b.pageY,c));this.Y("hoverend",b.pageX,b.pageY,c)}};
g.h.V=function(){this.A&&(g.ke&&this.D.removeAttribute("draggable"),this.D.style.touchAction="");QF(this.g);g.RF.prototype.V.call(this)};var Wia={enablejsapi:1},Xia={},Yia={allowscriptaccess:"always",allowfullscreen:"true",bgcolor:"#000000"};XF.prototype.clone=function(){var a=new XF,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];"object"==ra(c)?a[b]=g.Wb(c):a[b]=c}return a};var KG={},JG=0;var cja={qU:"atp",PZ:"ska",gZ:"que",rY:"mus",LZ:"sus"};var xpa=g.x("ytPubsubPubsubInstance")||new g.gD;g.gD.prototype.subscribe=g.gD.prototype.subscribe;g.gD.prototype.unsubscribeByKey=g.gD.prototype.Qd;g.gD.prototype.publish=g.gD.prototype.Y;g.gD.prototype.clear=g.gD.prototype.clear;g.v("ytPubsubPubsubInstance",xpa,void 0);g.aG=g.x("ytPubsubPubsubSubscribedKeys")||{};g.v("ytPubsubPubsubSubscribedKeys",g.aG,void 0);g.cG=g.x("ytPubsubPubsubTopicToKeys")||{};g.v("ytPubsubPubsubTopicToKeys",g.cG,void 0);var bG=g.x("ytPubsubPubsubIsSynchronous")||{};
g.v("ytPubsubPubsubIsSynchronous",bG,void 0);var $ia={log_event:"events",log_interaction:"interactions"},ypa=Object.create(null);ypa.log_event="GENERIC_EVENT_LOGGING";ypa.log_interaction="INTERACTION_LOGGING";var qG={},iG={},oG=0,pG=g.x("ytLoggingTransportLogPayloadsQueue_")||{};g.v("ytLoggingTransportLogPayloadsQueue_",pG,void 0);var jG=g.x("ytLoggingTransportTokensToCttTargetIds_")||{};g.v("ytLoggingTransportTokensToCttTargetIds_",jG,void 0);var rG=g.x("ytLoggingTransportDispatchedStats_")||{};g.v("ytLoggingTransportDispatchedStats_",rG,void 0);
var zpa=g.x("ytLoggingTransportCapturedTime_")||{};g.v("ytytLoggingTransportCapturedTime_",zpa,void 0);var Apa=tG;g.AG.prototype.o=function(){return{context:xG(this.g)}};
g.AG.prototype.A=function(a,b,c){g.ND("VISITOR_DATA")||g.qE(Error("Missing VISITOR_DATA when sending innertube request."));var d={headers:{"Content-Type":"application/json","X-Goog-Visitor-Id":g.ND("VISITOR_DATA","")},Qb:b,gA:"JSON",dd:c.dd,Mb:function(a,b){c.Mb&&c.Mb(b)},
onError:function(a,b){if(c.onError)c.onError(b)},
timeout:c.timeout,withCredentials:!0},e=g.Al([]);e&&(d.headers.Authorization=e,d.headers["X-Goog-AuthUser"]=g.ND("SESSION_INDEX",0));var f=this.g.xhrApiaryHost;f&&!f.startsWith("http")&&(f="//"+f);g.aF("youtubei_for_web")&&(f="");var k=this.g.Zm;k&&(f=k);e&&!f&&(d.headers["x-origin"]=window.location.origin);g.ME(""+f+zG(this.g.innertubeApiVersion,a,b)+"?alt=json&key="+this.g.innertubeApiKey,d)};var HG=g.x("ytLoggingLatencyUsageStats_")||{};g.v("ytLoggingLatencyUsageStats_",HG,void 0);var IG=0;var Bpa;Bpa=new qD;g.LG=Bpa.isAvailable()?new g.nD(Bpa):null;var MG,Cpa=new rD;MG=Cpa.isAvailable()?new g.nD(Cpa):null;RG.prototype.hm=function(){var a=new RG({id:this.id,name:this.name,app:this.app,type:this.type,user:this.username,userAvatarUri:this.avatar,theme:this.theme,capabilities:this.capabilities.fb().join(","),experiments:this.experiments.fb().join(",")});a.A=this.A;a.o=this.o;a.g=this.g;return a};g.C(TG,g.M);TG.prototype.C=function(){500<this.g&&24E4>2*this.g&&(this.g*=2);this.B();this.A&&this.start()};
TG.prototype.start=function(){this.o.Ce(this.g);this.A=(0,g.G)()+this.g};
TG.prototype.stop=function(){this.o.stop();this.A=0};
TG.prototype.isActive=function(){return this.o.isActive()};g.C(UG,eD);g.h=UG.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.Qd=function(a){return this.A.Qd(a)};
g.h.Y=function(a,b){return this.A.Y.apply(this.A,arguments)};
g.h.dispose=function(){this.K||(this.K=!0,g.Re(this.A),VG(this),g.Re(this.o),this.o=null)};
g.h.na=function(){return this.K};
g.h.connect=function(a,b,c){if(!this.g||2!=this.g.g){this.J="";this.o.stop();this.C=a||null;this.B=b||0;a=this.M+"/test";b=this.M+"/bind";var d=new KC("1",c?c.firstTestResults:null,c?c.secondTestResults:null,this.O),e=this.g;e&&(e.ld=null);d.ld=this;this.g=d;e?this.g.connect(a,b,this.D,e.A,e.gj):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.ac(c,b);this.o.isActive()||2==(this.g?this.g.g:0)?this.F.push(c):WG(this)&&VC(this.g,c)};
g.h.Zu=function(){SG(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)VC(this.g,a[b])}this.Y("handlerOpened")};
g.h.Xu=function(a,b){var c=2==b&&401==this.g.Ve;if(4!=b&&!c){if(6==b||410==this.g.Ve)c=this.o,c.o.stop(),c.g=500;this.o.start()}this.Y("handlerError",b)};
g.h.vp=function(a,b,c){if(!this.o.isActive())this.Y("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.Xv=function(){var a={v:2};this.J&&(a.gsessionid=this.J);0!=this.B&&(a.ui=""+this.B);0!=this.G&&(a.ui=""+this.G);this.C&&g.ac(a,this.C);return a};
g.h.Yu=function(a,b){"S"==b[0]?this.J=b[1]:"gracefulReconnect"==b[0]?(SG(this.o),this.o.start(),RC(this.g)):this.Y("handlerMessage",new bja(b[0],b[1]))};
g.h.eS=function(){this.o.isActive();var a=this.g,b=0;a.zc&&b++;a.Jd&&b++;0!=b?this.o.start():this.connect(this.C,this.B)};var ija=(0,g.G)(),ZG=null,cH=Array(50),bH=-1,dH=!1;g.C(g.nH,g.RF);g.nH.prototype.Yd=function(){return this.g};
g.nH.prototype.contains=function(a){return!!g.lH(this.g,a)};
g.nH.prototype.get=function(a){return a?g.mH(this.g,a):null};
g.nH.prototype.info=function(a){g.aH(this.F,a)};g.C(pH,g.RF);var Dpa=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];g.h=pH.prototype;g.h.start=function(){!this.g&&(0,window.isNaN)(this.o)&&this.yB()};
g.h.stop=function(){this.g&&(this.g.abort(),this.g=null);(0,window.isNaN)(this.o)||(g.vE(this.o),this.o=window.NaN)};
g.h.V=function(){this.stop();pH.aa.V.call(this)};
g.h.yB=function(){this.o=window.NaN;this.g=g.KE(this.F.Qh("/pairing/get_screen"),{method:"POST",Qb:{pairing_code:this.D},timeout:5E3,Mb:(0,g.A)(this.jS,this),onError:(0,g.A)(this.iS,this),dd:(0,g.A)(this.kS,this)})};
g.h.jS=function(a,b){this.g=null;var c=b.screen||{};c.dialId=this.B;c.name=this.C;this.Y("pairingComplete",new eH(c))};
g.h.iS=function(a){this.g=null;a.status&&404==a.status?this.A>=Dpa.length?this.Y("pairingFailed",Error("DIAL polling timed out")):(a=Dpa[this.A],this.o=g.xE((0,g.A)(this.yB,this),a),this.A++):this.Y("pairingFailed",Error("Server error "+a.status))};
g.h.kS=function(){this.g=null;this.Y("pairingFailed",Error("Server not responding"))};var BH,wH="";g.C(EH,g.nH);g.h=EH.prototype;g.h.start=function(){DH(this)&&this.Y("screenChange");!g.OG("yt-remote-lounge-token-expiration")&&FH(this);g.vE(this.o);this.o=g.xE((0,g.A)(this.start,this),1E4)};
g.h.wo=function(a,b){DH(this);oH(this,a);GH(this,!1);this.Y("screenChange");b(a);a.token||FH(this)};
g.h.remove=function(a,b){var c=DH(this);lja(this,a)&&(GH(this,!1),c=!0);b(a);c&&this.Y("screenChange")};
g.h.ho=function(a,b,c,d){var e=DH(this),f=this.get(a.id);f?(f.name!=b&&(f.name=b,GH(this,!1),e=!0),c(a)):d(Error("no such local screen."));e&&this.Y("screenChange")};
g.h.V=function(){g.vE(this.o);EH.aa.V.call(this)};
g.h.zG=function(a){DH(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)}GH(this,!b);b&&g.aH(this.F,"Missed "+b+" lounge tokens.")};
g.h.yG=function(a){g.aH(this.F,"Requesting lounge tokens failed: "+a)};g.C(IH,g.RF);g.h=IH.prototype;g.h.start=function(){var a=(0,window.parseInt)(g.OG("yt-remote-fast-check-period")||"0",10);(this.B=(0,g.G)()-144E5<a?0:a)?LH(this):(this.B=(0,g.G)()+3E5,g.NG("yt-remote-fast-check-period",this.B),this.hs())};
g.h.isEmpty=function(){return g.Tb(this.g)};
g.h.update=function(){HH("Updating availability on schedule.");var a=this.D(),b=g.Jb(this.g,function(b,d){return b&&!!g.mH(a,d)},this);
KH(this,b)};
g.h.V=function(){g.vE(this.A);this.A=window.NaN;this.o&&(this.o.abort(),this.o=null);IH.aa.V.call(this)};
g.h.hs=function(){g.vE(this.A);this.A=window.NaN;this.o&&this.o.abort();var a=MH(this);if(g.Lb(a)){var b=this.C.Qh("/pairing/get_screen_availability");this.o=this.C.ht(b,{lounge_token:g.Ob(a).join(",")},(0,g.A)(this.oP,this,a),(0,g.A)(this.nP,this))}else KH(this,{}),LH(this)};
g.h.oP=function(a,b){this.o=null;var c=g.Ob(MH(this));if(g.Ab(c,g.Ob(a))){for(var c=b.screens||[],d={},e=0,f=c.length;e<f;++e)d[a[c[e].loungeToken]]="online"==c[e].status;KH(this,d);LH(this)}else this.qc("Changing Screen set during request."),this.hs()};
g.h.nP=function(a){this.qc("Screen availability failed: "+a);this.o=null;LH(this)};
g.h.qc=function(a){g.aH("OnlineScreenService",a)};g.C(g.NH,g.nH);g.h=g.NH.prototype;g.h.start=function(){this.A.start();this.o.start();this.g.length&&(this.Y("screenChange"),this.o.isEmpty()||this.Y("onlineScreenChange"))};
g.h.wo=function(a,b,c){this.A.wo(a,b,c)};
g.h.remove=function(a,b,c){this.A.remove(a,b,c);this.o.update()};
g.h.ho=function(a,b,c,d){this.A.contains(a)?this.A.ho(a,b,c,d):(a="Updating name of unknown screen: "+a.name,g.aH(this.F,a),d(Error(a)))};
g.h.Yd=function(a){return a?this.g:g.nb(this.g,(0,g.ye)(this.B,function(a){return!this.contains(a)},this))};
g.h.zB=function(){return(0,g.ye)(this.Yd(!0),function(a){return!!this.o.g[a.id]},this)};
g.h.AB=function(a,b,c,d,e){this.info("getDialScreenByPairingCode "+a+" / "+b);var f=new pH(this.D,a,b,c);f.subscribe("pairingComplete",(0,g.A)(function(a){g.Re(f);d(OH(this,a))},this));
f.subscribe("pairingFailed",function(a){g.Re(f);e(a)});
f.start();return(0,g.A)(f.stop,f)};
g.h.mS=function(a,b,c,d){g.KE(this.D.Qh("/pairing/get_screen"),{method:"POST",Qb:{pairing_code:a},timeout:5E3,Mb:(0,g.A)(function(a,d){var e=new eH(d.screen||{});if(!e.name||QH(this,e.name)){a:{var f=e.name;for(var m=2,n=b(f,m);QH(this,n);){m++;if(20<m)break a;n=b(f,m)}f=n}e.name=f}c(OH(this,e))},this),
onError:(0,g.A)(function(a){d(Error("pairing request failed: "+a.status))},this),
dd:(0,g.A)(function(){d(Error("pairing request timed out."))},this)})};
g.h.V=function(){g.Re(this.A);g.Re(this.o);g.NH.aa.V.call(this)};
g.h.MG=function(){RH(this);this.Y("screenChange");this.o.update()};
g.NH.prototype.dispose=g.NH.prototype.dispose;g.C(TH,g.RF);g.h=TH.prototype;g.h.Bn=function(a){this.A=a;this.Y("sessionScreen",this.A)};
g.h.ce=function(a){this.na()||(a&&UH(this,""+a),this.A=null,this.Y("sessionScreen",null))};
g.h.info=function(a){g.aH(this.O,a)};
g.h.CB=function(){return null};
g.h.rs=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(){UH(this,"Failed to update receiver status for: "+b.friendlyName)},this))};
g.h.V=function(){this.rs("");TH.aa.V.call(this)};g.C(WH,TH);g.h=WH.prototype;g.h.qs=function(a){if(this.g){if(this.g==a)return;UH(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);sja(this)};
g.h.hj=function(a){this.info("launchWithParams no-op for Cast: "+g.Lc(a))};
g.h.stop=function(){this.g?this.g.stop((0,g.A)(function(){this.ce()},this),(0,g.A)(function(){this.ce(Error("Failed to stop receiver app."))},this)):this.ce(Error("Stopping cast device witout session."))};
g.h.rs=g.z;g.h.V=function(){this.info("disposeInternal");g.vE(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;WH.aa.V.call(this)};
g.h.pQ=function(a,b){if(!this.na())if(b){a:{var c;if(pa.JSON)try{var d=c=pa.JSON.parse(b);break a}catch(e){}d=c=g.Ic(b)}if(d)switch(c=""+d.type,d=d.data||{},this.info("onYoutubeMessage_: "+c+" "+g.Lc(d)),c){case "mdxSessionStatus":VH(this,d.screenId);break;default:UH(this,"Unknown youtube message: "+c)}else UH(this,"Unable to parse message.")}else UH(this,"No data in message.")};
g.h.ew=function(a,b,c,d){PH(this.J,this.o.label,a,this.o.friendlyName,(0,g.A)(function(e){e?b(e):0<=d?(UH(this,"Screen "+a+" appears to be offline. "+d+" retries left."),g.xE((0,g.A)(this.ew,this,a,b,c,d-1),300)):c(Error("Unable to fetch screen."))},this),c)};
g.h.CB=function(){return this.g};
g.h.nS=function(a){this.na()||a||(UH(this,"Cast session died."),this.ce())};g.C(XH,TH);g.h=XH.prototype;g.h.qs=function(a){this.B=a;this.B.addUpdateListener(this.M)};
g.h.hj=function(a){this.C=a;this.F()};
g.h.stop=function(){this.g();this.g=g.z;g.vE(this.D);this.B?this.B.stop((0,g.A)(this.ce,this,null),(0,g.A)(this.ce,this,"Failed to stop DIAL device.")):this.ce()};
g.h.V=function(){this.g();this.g=g.z;g.vE(this.D);this.B&&this.B.removeUpdateListener(this.M);this.B=null;XH.aa.V.call(this)};
g.h.qS=function(a){this.na()||a||(UH(this,"DIAL session died."),this.g(),this.g=g.z,this.ce())};
g.h.Nq=function(a){this.K=g.kH();if(this.C){var b=new window.chrome.cast.DialLaunchResponse(!0,ZH(this));a(b);YH(this)}else this.F=(0,g.A)(function(){g.vE(this.D);this.F=g.z;this.D=window.NaN;var b=new window.chrome.cast.DialLaunchResponse(!0,ZH(this));a(b);YH(this)},this),this.D=g.xE((0,g.A)(function(){this.F()},this),100)};
g.h.nI=function(a,b){PH(this.J,this.G.receiver.label,a,this.o.friendlyName,(0,g.A)(function(a){a&&a.token?(this.Bn(a),b(new window.chrome.cast.DialLaunchResponse(!1))):this.Nq(b)},this),(0,g.A)(function(a){UH(this,"Failed to get DIAL screen: "+a);
this.Nq(b)},this))};g.C($H,TH);$H.prototype.stop=function(){this.ce()};
$H.prototype.qs=g.z;$H.prototype.hj=function(){g.vE(this.g);this.g=window.NaN;var a=g.mH(this.J.Yd(),this.o.label);a?this.Bn(a):this.ce(Error("No such screen"))};
$H.prototype.V=function(){g.vE(this.g);this.g=window.NaN;$H.aa.V.call(this)};g.C(g.aI,g.RF);g.h=g.aI.prototype;
g.h.init=function(a,b){window.chrome.cast.timeout.requestSession=3E4;var c=new window.chrome.cast.SessionRequest(this.D);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.Oz,this),(0,g.A)(this.aP,this),d,e);c.customDialLaunchCallback=(0,g.A)(this.kN,this);window.chrome.cast.initialize(c,
(0,g.A)(function(){this.na()||(window.chrome.cast.addReceiverActionListener(this.B),fja(),this.o.subscribe("onlineScreenChange",(0,g.A)(this.BB,this)),this.A=fI(this),window.chrome.cast.setCustomReceivers(this.A,g.z,(0,g.A)(function(a){this.qc("Failed to set initial custom receivers: "+g.Lc(a))},this)),this.Y("yt-remote-cast2-availability-change",dI(this)),b(!0))},this),(0,g.A)(function(a){this.qc("Failed to initialize API: "+g.Lc(a));
b(!1)},this))};
g.h.kR=function(a,b){cI("Setting connected screen ID: "+a+" -> "+b);if(this.g){var c=this.g.A;if(!a||c&&c.id!=a)cI("Unsetting old screen status: "+this.g.o.friendlyName),eI(this,null)}if(a&&b){if(!this.g){c=g.mH(this.o.Yd(),a);if(!c){cI("setConnectedScreenStatus: Unknown screen.");return}var d=bI(this,c);d||(cI("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.z,(0,g.A)(function(a){this.qc("Failed to set initial custom receivers: "+g.Lc(a))},this)));
cI("setConnectedScreenStatus: new active receiver: "+d.friendlyName);eI(this,new $H(this.o,d),!0)}this.g.rs(b)}else cI("setConnectedScreenStatus: no screen.")};
g.h.lR=function(a){this.na()?this.qc("Setting connection data on disposed cast v2"):this.g?this.g.hj(a):this.qc("Setting connection data without a session")};
g.h.pS=function(){this.na()?this.qc("Stopping session on disposed cast v2"):this.g?(this.g.stop(),eI(this,null)):cI("Stopping non-existing session")};
g.h.requestSession=function(){window.chrome.cast.requestSession((0,g.A)(this.Oz,this),(0,g.A)(this.sP,this))};
g.h.V=function(){this.o.unsubscribe("onlineScreenChange",(0,g.A)(this.BB,this));window.chrome&&window.chrome.cast&&window.chrome.cast.removeReceiverActionListener(this.B);var a=XG,b=g.x("yt.mdx.remote.debug.handlers_");g.kb(b||[],a);g.Re(this.g);g.aI.aa.V.call(this)};
g.h.qc=function(a){g.aH("Controller",a)};
g.h.Pz=function(a,b){this.g==a&&(b||eI(this,null),this.Y("yt-remote-cast2-session-change",b))};
g.h.WO=function(a,b){if(!this.na())if(a)switch(a.friendlyName=window.chrome.cast.unescape(a.friendlyName),cI("onReceiverAction_ "+a.label+" / "+a.friendlyName+"-- "+b),b){case window.chrome.cast.ReceiverAction.CAST:if(this.g)if(this.g.o.label!=a.label)cI("onReceiverAction_: Stopping active receiver: "+this.g.o.friendlyName),this.g.stop();else{cI("onReceiverAction_: Casting to active receiver.");this.g.A&&this.Y("yt-remote-cast2-session-change",this.g.A);break}switch(a.receiverType){case window.chrome.cast.ReceiverType.CUSTOM:eI(this,
new $H(this.o,a));break;case window.chrome.cast.ReceiverType.DIAL:eI(this,new XH(this.o,a));break;case window.chrome.cast.ReceiverType.CAST:eI(this,new WH(this.o,a));break;default:this.qc("Unknown receiver type: "+a.receiverType)}break;case window.chrome.cast.ReceiverAction.STOP:this.g&&this.g.o.label==a.label?this.g.stop():this.qc("Stopping receiver w/o session: "+a.friendlyName)}else this.qc("onReceiverAction_ called without receiver.")};
g.h.kN=function(a){if(this.na())return window.Promise.reject(Error("disposed"));var b=a.receiver;b.receiverType!=window.chrome.cast.ReceiverType.DIAL&&(this.qc("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.qc("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 cI("Reselecting dial screen."),
this.Y("yt-remote-cast2-session-change",this.g.A),window.Promise.resolve(new window.chrome.cast.DialLaunchResponse(!1));this.qc('Changing CAST intent from "'+c.receiverType+'" to "dial" for '+b.friendlyName);eI(this,new XH(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.nI,b,(b.G.extraData||{}).screenId||null)):new window.Promise((0,g.A)(b.Nq,b))};
g.h.Oz=function(a){if(!this.na()){cI("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)cI("Got resumed cast session before resumed mdx connection."),b.friendlyName=window.chrome.cast.unescape(b.friendlyName),eI(this,new WH(this.o,b),!0);else{this.qc("Got non-cast session without previous mdx receiver event, or mdx resume.");return}var c=this.g.o,d=g.mH(this.o.Yd(),c.label);
d&&g.fH(d,b.label)&&c.receiverType!=window.chrome.cast.ReceiverType.CAST&&b.receiverType==window.chrome.cast.ReceiverType.CAST&&(cI("onSessionEstablished_: manual to cast session change "+b.friendlyName),g.Re(this.g),this.g=new WH(this.o,b),this.g.subscribe("sessionScreen",(0,g.A)(this.Pz,this,this.g)),this.g.hj(null));this.g.qs(a)}}};
g.h.oS=function(){return this.g?this.g.CB():null};
g.h.sP=function(a){this.na()||(this.qc("Failed to estabilish a session: "+g.Lc(a)),a.code!=window.chrome.cast.ErrorCode.CANCEL&&eI(this,null))};
g.h.aP=function(a){cI("Receiver availability updated: "+a);if(!this.na()){var b=dI(this);this.C=a==window.chrome.cast.ReceiverAvailability.AVAILABLE;dI(this)!=b&&this.Y("yt-remote-cast2-availability-change",dI(this))}};
g.h.BB=function(){this.na()||(this.A=fI(this),cI("Updating custom receivers: "+g.Lc(this.A)),window.chrome.cast.setCustomReceivers(this.A,g.z,(0,g.A)(function(){this.qc("Failed to set custom receivers.")},this)),this.Y("yt-remote-cast2-availability-change",dI(this)))};
g.aI.prototype.setLaunchParams=g.aI.prototype.lR;g.aI.prototype.setConnectedScreenStatus=g.aI.prototype.kR;g.aI.prototype.stopSession=g.aI.prototype.pS;g.aI.prototype.getCastSession=g.aI.prototype.oS;g.aI.prototype.requestSession=g.aI.prototype.requestSession;g.aI.prototype.init=g.aI.prototype.init;g.aI.prototype.dispose=g.aI.prototype.dispose;g.gI.prototype.reset=function(a){this.listId="";this.index=-1;this.videoId="";g.hI(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.Ff=a.hasPrevious,this.hasNext=a.hasNext,this.G=a.playerTime,this.A=a.playerTimeAt,this.D=a.seekableStart,this.B=a.seekableEnd,this.J=a.duration,this.K=a.loadedTime,this.C=a.liveIngestionTime,this.F=
!(0,window.isNaN)(this.C))};
g.gI.prototype.wb=function(){return 1==this.g};
g.gI.prototype.getDuration=function(){return this.F?this.J+((0,g.G)()-this.A)/1E3:this.J};
g.gI.prototype.clone=function(){return new g.gI(g.lI(this))};mI.prototype.o=function(){return this.name};
mI.prototype.getId=function(){return this.id};
mI.prototype.g=function(){return this.isDefault};
mI.prototype.toString=function(){return this.name};
mI.prototype.getName=mI.prototype.o;mI.prototype.getId=mI.prototype.getId;mI.prototype.getIsDefault=mI.prototype.g;g.nI.prototype.toString=function(){return this.languageCode+"_"+this.languageName+"_"+this.g+"_"+this.id+"_"+this.isDefault};g.oI.prototype.toString=function(){return this.o+": "+g.pI(this)+" - "+this.F};
g.oI.prototype.K=ba(0);g.oI.prototype.Ge=function(){return!(!this.o||this.g&&!this.g.languageCode)};qI.prototype.g=function(){return this.Sc};
qI.prototype.toString=function(){return this.Sc.name};
qI.prototype.getLanguageInfo=qI.prototype.g;g.C(g.rI,g.RF);g.h=g.rI.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.gb.listId=c);this.gb.videoId=d;this.gb.index=e||0;this.gb.state=3;g.iI(this.gb,f);this.B="UNSUPPORTED";sI("Connecting with setPlaylist and params: "+g.Lc(k));this.g.connect({method:"setPlaylist",params:g.Lc(k)},a,xH())}else sI("Connecting without params"),this.g.connect({},a,xH());uja(this)};
g.h.dispose=function(){this.na()||(this.Y("beforeDispose"),tI(this,3));g.rI.aa.dispose.call(this)};
g.h.V=function(){uI(this);wI(this);vI(this);g.vE(this.J);this.J=window.NaN;g.vE(this.K);this.K=window.NaN;this.A=null;g.EF(this.W);this.W.length=0;this.g.dispose();g.rI.aa.V.call(this);this.B=this.F=this.o=this.gb=this.g=null};
g.h.qG=function(){this.D(2)};
g.h.KM=function(){sI("Channel opened");this.P&&(this.P=!1,vI(this),this.O=g.xE((0,g.A)(function(){sI("Timing out waiting for a screen.");this.D(1)},this),15E3));
oja(dja(this.g),this.da)};
g.h.HM=function(){sI("Channel closed");(0,window.isNaN)(this.C)?g.AH(!0):g.AH();this.dispose()};
g.h.IM=function(a){g.AH();(0,window.isNaN)(this.G())?(sI("Channel error: "+a+" without reconnection"),this.dispose()):(this.P=!0,sI("Channel error: "+a+" with reconnection in "+this.G()+" ms"),tI(this,2))};
g.h.JM=function(a){a.params?sI("Received: action="+a.action+", params="+g.Lc(a.params)):sI("Received: action="+a.action+" {}");switch(a.action){case "loungeStatus":a=g.Ic(a.params.devices);this.o=(0,g.I)(a,function(a){return new RG(a)});
a=!!g.$a(this.o,function(a){return"LOUNGE_SCREEN"==a.type});
zI(this,a);break;case "loungeScreenDisconnected":lb(this.o,function(a){return"LOUNGE_SCREEN"==a.type});
zI(this,!1);break;case "remoteConnected":var b=new RG(g.Ic(a.params.device));g.$a(this.o,function(a){return b?a.id==b.id:!1})||g.ib(this.o,b);
break;case "remoteDisconnected":b=new RG(g.Ic(a.params.device));lb(this.o,function(a){return b?a.id==b.id:!1});
break;case "gracefulDisconnect":break;case "playlistModified":AI(this,a);break;case "nowPlaying":xja(this,a);break;case "onStateChange":BI(this,a);break;case "onAdStateChange":yja(this,a);break;case "onVolumeChanged":zja(this,a);break;case "onSubtitlesTrackChanged":wja(this,a);break;case "nowAutoplaying":Aja(this,a);break;case "autoplayDismissed":this.Y("autoplayDismissed");break;case "autoplayUpNext":this.F=a.params.videoId||null;this.Y("autoplayUpNext",this.F);break;case "onAutoplayModeChanged":this.B=
a.params.autoplayMode;this.Y("autoplayModeChange",this.B);"DISABLED"==this.B&&this.Y("autoplayDismissed");break;case "onHasPreviousNextChanged":Bja(this,a);break;default:sI("Unrecognized action: "+a.action)}};
g.h.WQ=function(){if(this.A){var a=this.A;this.A=null;this.gb.videoId!=a&&xI(this,"getNowPlaying")}};
g.rI.prototype.subscribe=g.rI.prototype.subscribe;g.rI.prototype.unsubscribeByKey=g.rI.prototype.Qd;g.rI.prototype.ka=function(){var a=3;this.na()||(a=0,(0,window.isNaN)(this.G())?WG(this.g)&&(0,window.isNaN)(this.C)&&(a=1):a=2);return a};
g.rI.prototype.getProxyState=g.rI.prototype.ka;g.rI.prototype.D=function(a){sI("Disconnecting with "+a);uI(this);this.Y("beforeDisconnect",a);1==a&&g.AH();VG(this.g,a);this.dispose()};
g.rI.prototype.disconnect=g.rI.prototype.D;g.rI.prototype.ha=function(){var a=this.gb;this.A&&(a=this.gb.clone(),g.kI(a,this.A,a.index));return g.lI(a)};
g.rI.prototype.getPlayerContextData=g.rI.prototype.ha;
g.rI.prototype.ra=function(a){var b=new g.gI(a);b.videoId&&b.videoId!=this.gb.videoId&&(this.A=b.videoId,g.vE(this.J),this.J=g.xE((0,g.A)(this.WQ,this),5E3));var c=[];this.gb.listId==b.listId&&this.gb.videoId==b.videoId&&this.gb.index==b.index||c.push("remoteQueueChange");this.gb.g==b.g&&this.gb.volume==b.volume&&this.gb.muted==b.muted&&g.jI(this.gb)==g.jI(b)&&g.Lc(this.gb.o)==g.Lc(b.o)||c.push("remotePlayerChange");this.gb.reset(a);(0,g.H)(c,function(a){this.Y(a)},this)};
g.rI.prototype.setPlayerContextData=g.rI.prototype.ra;g.rI.prototype.ca=function(){var a=this.g.D.id,b=g.$a(this.o,function(b){return"REMOTE_CONTROL"==b.type&&b.id!=a});
return b?b.id:""};
g.rI.prototype.getOtherConnectedRemoteId=g.rI.prototype.ca;g.rI.prototype.G=function(){var a=this.g;return a.o.isActive()?a.o.A-(0,g.G)():window.NaN};
g.rI.prototype.getReconnectTimeout=g.rI.prototype.G;g.rI.prototype.fa=function(){return this.B||"UNSUPPORTED"};
g.rI.prototype.getAutoplayMode=g.rI.prototype.fa;g.rI.prototype.ga=function(){return this.F||""};
g.rI.prototype.getAutoplayVideoId=g.rI.prototype.ga;g.rI.prototype.ua=function(){if(!(0,window.isNaN)(this.G())){var a=this.g.o;g.rt(a.o);a.start()}};
g.rI.prototype.reconnect=g.rI.prototype.ua;g.rI.prototype.oa=function(a,b){xI(this,a,b);yI(this)};
g.rI.prototype.sendMessage=g.rI.prototype.oa;g.NH.prototype.$_st=g.NH.prototype.start;g.NH.prototype.$_gspc=g.NH.prototype.mS;g.NH.prototype.$_gsppc=g.NH.prototype.AB;g.NH.prototype.$_c=g.NH.prototype.contains;g.NH.prototype.$_g=g.NH.prototype.get;g.NH.prototype.$_a=g.NH.prototype.wo;g.NH.prototype.$_un=g.NH.prototype.ho;g.NH.prototype.$_r=g.NH.prototype.remove;g.NH.prototype.$_gs=g.NH.prototype.Yd;g.NH.prototype.$_gos=g.NH.prototype.zB;g.NH.prototype.$_s=g.NH.prototype.subscribe;g.NH.prototype.$_ubk=g.NH.prototype.Qd;var lZ=16/9,Epa=[.25,.5,.75,1,1.25,1.5,2];var Cja={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",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 fO={name:"width",video:!0,valid:640,Wh:99999},gO={name:"height",video:!0,valid:360,Wh:99999},dO={name:"framerate",video:!0,valid:30,Wh:9999},bM={name:"bitrate",video:!0,valid:3E5,Wh:2E9},eO={name:"eotf",video:!0,valid:"bt709",Wh:"catavision"},YN={name:"channels",video:!1,valid:2,Wh:99},hO={name:"cryptoblockformat",video:!0,valid:"subsample",Wh:"invalidformat"},iO={El:fO,xl:gO,xW:dO,Ft:bM,jW:eO,WU:YN,oV:hO};var Dja={pU:"auto",v_:"tiny",tX:"light",TZ:"small",XD:"medium",qX:"large",HW:"hd720",DW:"hd1080",EW:"hd1440",FW:"hd2160",GW:"hd2880",NW:"highres",UNKNOWN:"unknown"};var R3;R3={};g.EI=(R3.auto=0,R3.tiny=144,R3.light=144,R3.small=240,R3.medium=360,R3.large=480,R3.hd720=720,R3.hd1080=1080,R3.hd1440=1440,R3.hd2160=2160,R3.hd2880=2880,R3.highres=4320,R3);var DI="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");FI.prototype.B=1.3;QI.prototype.g=function(a){return"true"==this.flags[a]};
QI.prototype.o=function(a){return(0,window.parseFloat)(this.flags[a])||0};
QI.prototype.A=function(a){return this.flags[a]?this.flags[a].toString():""};RI.prototype.dispose=function(){if(!this.A){if(this.o)try{window.URL.revokeObjectURL(this.g)}catch(a){}this.A=!0}};
RI.prototype.na=function(){return this.A};var Cka={52:!0,53:!0,54:!0,55:!0,60:!0,79:!0,87:!0};SI.prototype.g=function(){return null};
SI.prototype.A=function(){return!1};var ET=VI("auto","large",!1),XI=VI("auto","auto",!1);TI.prototype.isLocked=function(){return this.A&&!!this.o&&this.o==this.g};
TI.prototype.B=function(a){return a.video?$I(this,a.video.quality):!1};var S3={},Fpa=(S3["api.invalidparam"]=2,S3.auth=150,S3["drm.auth"]=150,S3["heartbeat.net"]=150,S3["heartbeat.servererror"]=150,S3["heartbeat.stop"]=150,S3["html5.unsupportedads"]=5,S3["fmt.noneavailable"]=5,S3["fmt.decode"]=5,S3["fmt.unplayable"]=5,S3["html5.missingapi"]=5,S3["html5.unsupportedlive"]=5,S3["drm.unavailable"]=5,S3);g.p(hJ,g.M);g.h=hJ.prototype;g.h.gJ=function(){return g.Ob(this.B)};
g.h.hJ=function(){return g.Ob(this.C)};
g.h.pa=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.ba.subscribe(a,c)};
g.h.WF=function(a,b){var c=this,d=g.u(b)?a+b:a+g.xa(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.ba.subscribe(a,f)}};
g.h.removeEventListener=function(a,b){if(g.u(b)){var c=this.F[b];Ub(this.F,b);b=c}this.app.ba.unsubscribe(a,b)};
g.h.XF=function(a,b){var c=g.u(b)?a+b:a+g.xa(b),d=this.D[c];d&&(this.app.ba.unsubscribe(a,d),Ub(this.D,c))};
g.h.Gk=function(){return u2(this.app)};
g.h.yc=function(a,b){this.g&&E2(this.app,!0,this.playerType);T2(this.app,a,b,void 0,this.playerType)};
g.h.getCurrentTime=function(){return this.app.getCurrentTime(this.playerType)};
g.h.iJ=function(){var a=g.UU(this.app,this.playerType);if(!a)return 0;a=IU(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.M.volume};
g.h.setVolume=function(a){lJ(this,a)};
g.h.He=function(){return this.app.M.muted};
g.h.mute=function(){mJ(this)};
g.h.ug=function(){nJ(this)};
g.h.cd=function(){this.g&&E2(this.app,!0,this.playerType);var a=SU(this.app);2==a?(a=this.app.A.o)&&a.Y("control_play"):3==a?g.TU(this.app.A).Mk("control_play"):SY(this.app,this.playerType)};
g.h.md=function(){var a=SU(this.app);2==a?(a=this.app.A.o)&&a.Y("control_pause"):3==a?g.TU(this.app.A).Mk("control_pause"):UY(this.app,this.playerType)};
g.h.Of=function(){var a=this.app;a.Z.ka&&(a.g.isFullscreen()&&!a.Z.experiments.g("player_external_control_on_classic_desktop")&&g.YU(a.g),a.g.Y("pageTransition"));S2(a)};
g.h.dJ=function(){};
g.h.Uc=function(){return g.UU(this.app,1).ua};
g.h.Nf=function(a){r2(this.app,a)};
g.h.kj=function(){return this.app.Z.Fa?Epa:[1]};
g.h.Fk=function(){var a=g.UU(this.app,this.playerType);return a&&(a=a.g.Ma)?a.video.quality:"unknown"};
g.h.Jk=function(a){if(!this.app.Z.isMobile){var b=g.UU(this.app,this.playerType);b&&CU(b,"p",VI(a,a,!0))}};
g.h.mr=function(){var a=g.UU(this.app,this.playerType);return a?(a=(0,g.I)(AU(a),function(a){return a.quality}),a.length&&("auto"==a[0]&&a.shift(),a=a.concat(["auto"])),a):[]};
g.h.kJ=function(){return this.nr()};
g.h.lJ=function(){return 1};
g.h.nr=function(){return f2(this.app)};
g.h.mJ=function(){return 0};
g.h.setSize=function(){this.app.F.fg()};
g.h.Tx=function(a){J2(this.app,a?2:1)};
g.h.Ux=function(a){J2(this.app,a)};
g.h.bJ=function(){this.app.g.ya("SUBSCRIBE")};
g.h.cJ=function(){this.app.g.ya("UNSUBSCRIBE")};
g.h.Hk=function(a){"captions"==a&&(a=this.app.A.g)&&!a.loaded&&a.load()};
g.h.mn=function(a){"captions"==a&&(a=this.app.A.g)&&a.loaded&&a.LR()};
g.h.qJ=function(a,b,c){a=eJ(a,b,c);a=B2(this.app,a,this.playerType);this.g&&E2(this.app,a,this.playerType)};
g.h.Nx=function(a,b,c){a=eJ(a,b,c);G2(this.app,a,this.playerType)};
g.h.rJ=function(a,b,c){a=fJ(a,b,c);b=B2(this.app,a,this.playerType);this.g&&E2(this.app,b,this.playerType);b=this.app;(a=(new g.Ll(a.mediaContentUrl)).g)&&OO(b.Z,a)};
g.h.fJ=function(a,b,c){b=fJ(a,b,c);G2(this.app,b,this.playerType);a=this.app;(b=(new g.Ll(b.mediaContentUrl)).g)&&OO(a.Z,b)};
g.h.getVideoUrl=function(){var a=this.app.Z;if(a.J)return"";var b=this.app.o.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.Ek=function(){return t2(this.app)};
g.h.Qx=function(){var a=this.app.Z;if(a.J)var b="";else{var c=this.app.o.g.videoId;b=this.app.F.Ya();var d=this.getPlaylistId()||void 0,c="https://"+RO(a)+"/embed/"+c;d&&(c=g.Dg(c,{list:d}));d=!a.experiments.g("enable_responsive_embed_snippet");a.experiments.g("embed_snippet_includes_version")&&(c=g.Dg(c,{ecver:d?"1":"2"}));a=b.width;b=b.height;d?(d=Ha(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="'+Ha(c)+'" style="position:absolute;width:100%;height:100%;left:0" width="'+d+'" height="360" frameborder="0" allowfullscreen></iframe></div>')}return b};
g.h.Mx=function(a,b,c){return M2(this.app,a,b,c)};
g.h.Sx=function(a){a:{for(var b=this.app,c=b.o.D.g.g||[],d=0;d<c.length;d++){var e=c[d];if(e.getId()==a){b.o.D.F(e);jV(b,"cuerangesremoved",[e]);a=!0;break a}}a=!1}return a};
g.h.pJ=function(a,b,c,d){var e=this.app;e.fa=!1;H2(e,a,b,c,d);this.g&&E2(this.app,!0,this.playerType)};
g.h.eJ=function(a,b,c,d){var e=this.app;e.fa=!0;H2(e,a,b,c,d)};
g.h.lj=function(){K2(this.app);this.g&&E2(this.app,!0,this.playerType)};
g.h.Ik=function(){L2(this.app);this.g&&E2(this.app,!0,this.playerType)};
g.h.Rx=function(a){var b=this.app;!b.W||b.g.isFullscreen()&&!b.ua?b.B&&(b.B.Tc?A2(b,b.B.jc(a),1):b.fa=!1,VQ(b.B,a)):b.g.ya("onPlaylistIndex",a);this.g&&E2(this.app,!0,this.playerType)};
g.h.setShuffle=function(a){var b=this.app.B;b&&b.setShuffle(a)};
g.h.tJ=function(a){var b=this.app.B;b&&(b.loop=a)};
g.h.Mf=function(){var a=this.app.B;if(!a)return null;for(var b=[],c=0;c<a.getLength();c++){var d=a.jc(c);d&&b.push(d.videoId)}return b};
g.h.Px=function(){var a=this.app.B;return a?a.Wd():-1};
g.h.getPlaylistId=function(){var a=this.app.B;return a&&a.listId?a.listId.toString():null};
g.h.yd=function(a,b,c){if(!b)return null;var d=this.app.A;return"captions"==a?(a=d.g)&&a.ur(b,c):null};
g.h.Bc=function(a,b,c){return this.yd(a,b,c)};
g.h.ai=function(a){var b=this.app.A;return"captions"==a?(b=b.g)&&b.rK():a?null:(a=[],b.g&&a.push("captions"),a)};
g.h.ia=function(){var a={},b=g.UU(this.app,this.playerType);if(b&&(b=b.g,a.video_id=b.videoId,a.author=b.author,a.title=b.title,b.Ma)){a.video_quality=b.Ma.video.quality;var b=b.Ma.video,c=[];32<b.fps&&c.push("hfr");GI(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.Vx=function(){Z1(this.app,!0)};
g.h.nJ=function(){Z1(this.app,!1)};
g.h.Ox=function(){var a=this.app.A.o;return a?a.vt():-1};
g.h.oJ=function(a){if(a!=this.app.ca.args.video_id)return!1;a=(a=g.UU(this.app,1))?a.A:null;return!(!a||!g.V(a,128)||5!=Fpa[a.g.errorCode])};
g.h.jJ=function(){var a=this.app.ca.clone();g.za(a.args,OQ(this.app.o.g));return a};
g.h.uJ=function(){this.app.Z.fa&&this.app.da.resume()};
g.h.destroy=function(){this.app.dispose()};
g.h.sJ=function(){var a=g.UU(this.app);a&&!g.V(a.A,128)&&(a.Y("internalAbandon"),UT(a),ST(a))};
g.h.V=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.M.prototype.V.call(this)};var Fja=1;g.oJ.prototype.getId=function(){return this.Aa};
g.oJ.prototype.getId=g.oJ.prototype.getId;g.oJ.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)};g.T3={NONE:0,RAISED:1,DEPRESSED:2,wu:3,DROP_SHADOW:4};g.U3={To:"#fff",dF:"#ff0",BD:"#0f0",lD:"#0ff",KC:"#00f",RD:"#f0f",cu:"#f00",Ao:"#080808"};g.V3={Lt:0,Xt:1,bu:2,Wt:3,Mo:4,CASUAL:5,CURSIVE:6,Qo:7};tJ.prototype.update=function(){var a=this.o.o()||0,b=g.sJ(this.o);if(a!=this.g||xJ(this,a,b)){if(a<this.g||a-this.g>b-this.C+2||xJ(this,a,b))g.uJ(this),this.B=a;this.C=b;this.g=a}};yJ.prototype.o=function(){return{ps:this.g.o,el:this.g.g}};
yJ.prototype.send=function(){if(!this.A){var a=this.o();a=g.Dg(this.g.baseYtUrl+"set_awesome",a);this.g.Na&&this.videoData.visitorData&&EE(a)?g.KE(a,{headers:{"X-Goog-Visitor-Id":this.videoData.visitorData}}):g.ZE(a);this.A=!0}};g.C(zJ,yJ);
zJ.prototype.o=function(){var a=zJ.aa.o.call(this);g.za(a,this.g.B);g.za(a,{html5:"1",video_id:this.videoData.videoId,eurl:this.g.oa,framer:this.g.np,list:this.videoData.Es||this.videoData.playlistId,w:g.Pd(this.videoData.yf/this.videoData.lengthSeconds,0,1),l:this.videoData.lengthSeconds,plid:this.videoData.playbackId,ei:this.videoData.eventId,access_token:this.videoData.oauthToken,tpmt:vJ(this.B),cpn:this.videoData.clientPlaybackNonce,feature:this.videoData.qh});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.da:this.videoData.ph)a.autoplay="1";this.g.Fc&&(a.authuser=this.g.Fc);this.g.pageId&&(a.pageid=this.g.pageId);this.videoData.Hf&&(a.splay="1");this.videoData.subscribed&&(a.subscribed=this.videoData.subscribed);g.za(a,zJ.aa.o.call(this));g.za(a,this.g.B);return a};var zma={jU:"YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"ERROR_AUTHENTICATION_EXPIRED",nU:"ERROR_AUTHENTICATION_MALFORMED",oU:"ERROR_AUTHENTICATION_MISSING",tU:"ERROR_BAD_REQUEST",JU:"YTP_ERROR_CANNOT_ACTIVATE_RENTAL",TU:"ERROR_CGI_PARAMS_MALFORMED",UU:"ERROR_CGI_PARAMS_MISSING",KV:"YTP_DEVICE_FALLBACK",kW:"YTP_ERROR_LICENSE",rW:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH",wW:"YTP_ERROR_FORMAT_UNAVALIABLE",zW:"YTP_ERROR_GEO_FAILURE",QW:"YTP_ERROR_GENERIC_WITHOUT_LINK",SW:"YTP_HTML5_PROTECTED_FLASH_FALLBACK",
RW:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",kX:"YTP_ERROR_INVALID_DRM_MESSAGE",sX:"LEARN_MORE",xY:"YTP_ERROR_NOT_SIGNED_IN",eZ:"YTP_ERROR_PURCHASE_NOT_FOUND",fZ:"YTP_ERROR_PURCHASE_REFUNDED",kZ:"YTP_ERROR_RENTAL_EXPIRED",OU:"YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED",PU:"YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED",RU:"YTP_ERROR_CAST_TOKEN_FAILED",QU:"YTP_ERROR_CAST_TOKEN_EXPIRED",SU:"YTP_ERROR_CAST_TOKEN_MALFORMED",GZ:"YTP_ERROR_SERVER_ERROR",f_:"YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK",k_:"YTP_ERROR_STREAM_LICENSE_NOT_FOUND",
h_:"YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",i_:"YTP_ERROR_STREAMING_NOT_ALLOWED",j_:"YTP_ERROR_STREAMING_UNAVAILABLE",tZ:"YTP_ERROR_RETRYABLE_ERROR",A_:"YTP_ERROR_TOO_MANY_STREAMS_PER_USER",z_:"YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT",c0:"YTP_ERROR_UNSUPPORTED_DEVICE",d0:"YTP_ERROR_UNUSUAL_ACTIVITY",s0:"YTP_ERROR_VIDEO_FORBIDDEN",u0:"YTP_ERROR_VIDEO_NOT_FOUND"},Hja={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"};g.C(g.CJ,g.M);g.CJ.prototype.T=function(a,b,c,d,e){c=rE((0,g.A)(c,d||this.Bb));c={target:a,name:b,ig:c};var f;e&&wpa()&&(f={passive:!0});a.addEventListener(b,c.ig,f);this.P.push(c);return c};
g.CJ.prototype.za=function(a){for(var b=0;b<this.P.length;b++)if(this.P[b]==a){this.P.splice(b,1);a.target.removeEventListener(a.name,a.ig);break}};
g.CJ.prototype.V=function(){g.EJ(this);g.CJ.aa.V.call(this)};var yZ,W3;var Gpa=g.Gb,Hpa=Gpa.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!Hpa||2>Hpa.length)yZ=void 0;else{var X3=Gpa.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);yZ=X3&&6==X3.length?Number(X3[5].replace("_",".")):0}(W3=0<=yZ)&&0<=g.Gb.search("Safari")&&g.Gb.search("Version");var Ipa=W3&&4>yZ?.1:0,Fna=new LJ;LJ.prototype.g=null;LJ.prototype.getDuration=function(){return this.duration||0};
LJ.prototype.getCurrentTime=function(){return this.currentTime||0};
LJ.prototype.o=function(){this.hasAttribute("controls")&&this.setAttribute("controls","true")};g.C(MJ,g.M);g.h=MJ.prototype;g.h.cd=function(){this.g.ended&&this.yc(0);!this.wd()&&this.o&&(OJ(this,this.o.g),this.o.o||this.load());this.play();W3&&7<=yZ&&g.LF(this,"playing",(0,g.A)(function(){g.xE((0,g.A)(this.Vv,this,this.getCurrentTime(),0),500)},this))};
g.h.Vv=function(a,b){this.g.paused||this.getCurrentTime()>a||10<b||(this.play(),g.xE((0,g.A)(this.Vv,this,this.getCurrentTime(),b+1),500))};
g.h.yc=function(a){0<this.g.readyState&&(W3&&4>yZ&&(a=Math.max(.1,a)),this.g.currentTime=a)};
g.h.Of=function(){this.wd()&&(VN&&0<this.getCurrentTime()&&this.yc(0),this.g.removeAttribute("src"),this.load(),NJ(this,null))};
g.h.addEventListener=function(a,b){this.B.X(a,b,!1,this);if(!this.A[a]){var c=(0,g.A)(this.mT,this);this.g.addEventListener(a,c);this.A[a]=c}};
g.h.removeEventListener=function(a,b){this.B.za(a,b,!1,this)};
g.h.dispatchEvent=function(a){return this.B.dispatchEvent(a)};
g.h.fv=function(){this.C&&!this.g.muted&&(JL(),this.g.muted=!0)};
g.h.V=function(){this.D&&this.removeEventListener("volumechange",this.fv);MJ.aa.V.call(this)};g.p(VJ,g.Te);VJ.prototype.preventDefault=function(){g.Te.prototype.preventDefault.call(this);this.g&&this.g.preventDefault()};
VJ.prototype.stopPropagation=function(){g.Te.prototype.stopPropagation.call(this);this.g&&this.g.stopPropagation()};var bU=Cf(function(){var a="";try{var b=g.pe("CANVAS").getContext("webgl");b&&(b.getExtension("WEBGL_debug_renderer_info"),a=b.getParameter(37446),a=a.replace(/[ :]/g,"_"))}catch(c){}return a});g.WJ.prototype.wb=function(){return g.V(this,8)&&!g.V(this,64)&&!g.V(this,2)};
g.WJ.prototype.isError=function(){return g.V(this,128)};iK.prototype.isEmpty=function(){return this.endTime==this.startTime};var lK={other:1,none:2,wifi:3,cellular:7};g.p(oK,g.M);
oK.prototype.C=function(a){if(!this.na()){a=0<=a?a:g.sJ(this.g);var b=this.g.g.experiments.g("html5_qoe_always_report_playing")&&!g.Tb(this.o),c=a>=this.B+30;"PL"==this.A&&(b||c)&&(g.nK(this,a,"vps",[this.A]),this.B=a);if(!g.Tb(this.o)&&!this.O){qK(this,a);var b=a,c=this.g.F(),d=c.droppedVideoFrames,e=d-this.ca;if(d>c.totalVideoFrames||5E3<e)this.onError("html5.badframedropcount","df."+d+";tf."+c.totalVideoFrames);else 0<e&&g.nK(this,b,"df",[e]);this.ca=d;!this.g.g.experiments.g("disable_webgl_reporting")&&0<
this.D&&(g.nK(this,a,"glf",[this.D]),this.D=0);a=rK(this);g.ac(a,this.g.g.B);a=g.Dg(this.g.g.Jg,a);for(var f in this.o)null==this.o[f]?g.qE(Error("Stats report key has invalid value: "+f),"WARNING"):a+="&"+f+"="+this.o[f].join(",");sK(this,a);this.o={}}}};
oK.prototype.ka=function(){this.g.videoData.If&&wK(this,"drm-"+this.g.videoData.If.g)};
oK.prototype.onError=function(a,b){var c=g.sJ(this.g);uK(this,c,a,b);qK(this,c);tK(this)};
oK.prototype.V=function(){g.M.prototype.V.call(this);g.uE(this.W)};
var Y3={},Lja=(Y3[5]="N",Y3[-1]="N",Y3[3]="B",Y3[0]="EN",Y3[2]="PA",Y3[1]="PL",Y3);yK.prototype.send=function(a){if(!this.ba){var b=BK(this),b=g.Dg(this.ka,b);if(this.G)this.M&&(a={method:"POST",Qb:{atr:this.M}},this.Bj&&this.visitorData&&(a.headers={"X-Goog-Visitor-Id":this.visitorData}),g.KE(b,a));else{var c=zK(this,a);c?g.KE(b,c):g.ZE(b,a)}this.ba=!0}};
yK.prototype.g=function(a){void 0==a&&(a=window.NaN);return(1*a.toFixed(3)).toString()};g.C(CK,g.M);g.h=CK.prototype;g.h.iN=function(a,b){if(!this.na()){this.F=window.NaN;this.A.update();var c=wJ(this.A),d=GK(this,c);b&&(d.D=a);var e=400<this.K;!(1<c.length)&&c[0].isEmpty()||e||(d.o=DK(this,!0,a));d.send();this.K++}};
g.h.onError=function(a,b){if(!this.na())this.o.onError(a,b)};
g.h.Sn=function(a){var b=this.g.g,c=this.g.videoData,d={ns:b.Ta,el:b.g,eurl:b.oa,fmt:c.Ma?HI(c.Ma):0,html5:1,list:c.playlistId,plid:c.playbackId,cpn:c.clientPlaybackNonce,ei:c.eventId,ps:b.o,noflv:1,st:this.g.o(),video_id:c.videoId,metric:a};if(b.experiments.g("legacy_autoplay_flag")?b.da:c.ph)d.autoplay="1";"heartbeat"==a&&(d.tpmt=vJ(this.A));g.za(d,b.B);IK(this,g.Dg("//www.youtube.com/live_204",d))};
g.h.bb=function(){};
g.h.V=function(){CK.aa.V.call(this);g.vE(this.F);this.F=window.NaN;var a=this.A;g.uE(a.D);a.D=window.NaN};g.p(NK,hJ);g.h=NK.prototype;g.h.Wa=function(){return SU(this.app)};
g.h.Mx=function(a,b,c,d,e){return M2(this.app,a,b,c,d,e)};
g.h.vJ=function(a,b,c){lO(this.app.Z.G,a,{Fh:b,Kj:c})};
g.h.xJ=function(a,b){G2(this.app,a,b||this.playerType)};
g.h.Gk=function(a){return u2(this.app,a)};
g.h.pn=function(a,b,c,d){B2(this.app,a,c||this.playerType,b,d)};
g.h.Yx=function(a,b,c){var d=this.app;b=b||this.playerType||1;c=c||!1;d.ra.get(b+xO(a))||(a=new g.rQ(a),D2(d,a,b,c))};
g.h.lj=function(a,b){K2(this.app,a,b)};
g.h.Ik=function(a){L2(this.app,a)};
g.h.be=function(a,b,c){T2(this.app,this.app.getCurrentTime()+a,b,c,this.playerType)};
g.h.SJ=function(a){if(a){var b=this.getPlaylistId();if(!b||b==a.list){var c=a.video;(b=this.app.B)?this.app.J.isFullscreen()&&((c=c[b.Wd()])&&c.encrypted_id!=b.jc().videoId||(a.index=b.Wd())):i2(this.app,{list:a.list,index:a.index,playlist_length:c.length});WQ(this.app.B,a);this.ya("onPlaylistUpdate")}}else a=this.app,j2(a),a.g.ya("onPlaylistUpdate")};
g.h.RJ=function(){Apa()};
g.h.TJ=function(a,b){var c=g.UU(this.app,this.playerType||1);c&&c.g.Zf(a,b)};
g.h.getPlayerResponse=function(){var a=g.UU(this.app,this.playerType);return a?a.g.getPlayerResponse():null};
g.h.getStoryboardFormat=function(){return gZ(this.app).getStoryboardFormat()};
g.h.AJ=function(){var a=this.app.Z;return{Ac:a.Ac,Fb:a.Fb}};
g.h.ia=function(){var a=hJ.prototype.ia.call(this),b=g.UU(this.app,this.playerType);b&&(b=b.g,a.backgroundable=b.backgroundable,a.cpn=b.clientPlaybackNonce,a.isLive=b.Ba,a.itct=b.Ym,a.paidContentOverlayText=EQ(b),a.paidContentOverlayDurationMs=FQ(b));return a};
g.h.getCurrentTime=function(a){return a?this.app.getCurrentTime(a):hJ.prototype.getCurrentTime.call(this)};
g.h.getDuration=function(a){return a?this.app.getDuration(a):hJ.prototype.getDuration.call(this)};
g.h.ih=function(){if(3==this.Wa())return g.TU(this.app.A).nK();var a=gZ(this.app),b=g.UU(this.app),c=this.app.Kd(),d=a.clipEnd,a=a.clipStart,e=this.getCurrentTime(),f=this.getDuration(),k=IU(b),l=b.isPeggedToLive(),m=g.UU(this.app,void 0),n;m?(m.o&&(n=SJ(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:GU(b,!0),seekableStart:b.Jc()}};
g.h.nr=function(a){return f2(this.app,a)};
g.h.wJ=function(a){return!!HL().canPlayType(a)};
g.h.Zx=function(a,b){var c=g.UU(this.app,this.playerType);if(c){b=b||a;var d=VI(a,b,!0);g.NG("yt-player-quality",b,2592E3);CU(c,"m",d)}};
g.h.zJ=function(){return IQ(gZ(this.app),this.app.getCurrentTime())};
g.h.ci=function(a){var b=this.app,c=g.UU(b,this.playerType);c&&b.Z.zb.has(a.toString())&&c.C&&(b=FK(c.C,"engage"),b.A=a,b.send(void 0))};
g.h.Kk=function(a,b,c){var d=this.app.A.A;d&&d.ql()&&d.tt(a,b,c)};
g.h.DJ=function(a,b){var c=this.app.A.D;c&&c.ga&&N_(c.ga,a,b)};
g.h.hh=function(){var a=g.UU(this.app,this.playerType);return a?a.lt():gZ(this.app).km};
g.h.rr=function(a){3==this.Wa()&&g.TU(this.app.A).Mk("control_set_audio_track",a);var b=g.UU(this.app,this.playerType),c;if(c=b)if(c=!b.na()&&!g.V(b.A,128)&&!!b.g.jb.g){c=b.B;if(c.na())a=!0;else{var d=c.F;a=a.id;d.G="m";d.B=d.F.g[a];d.O=d.B;c.Y("audioformatchange",new dR(d.O,d.o,d.G));c.A&&!c.A.g.remove?a=!1:(US(c),oS(c.g),oS(c.B),hT(c),a=!0)}c=!a}c&&(zU(b),xU(b))};
g.h.pr=function(){var a=g.UU(this.app,this.playerType);return a.g.jb?a.g.jb.audioTracks:[]};
g.h.BJ=function(){var a=g.UU(this.app,this.playerType);return a&&a.g.Ma?g.ZI(KT(a.ra,a.g)):"unknown"};
g.h.MJ=function(a,b){Rna(this.app,a,b)};
g.h.yJ=function(){var a=this.app.A.F;a&&a.cG()};
g.h.PJ=function(){var a=this.app.A.D;a&&(a.sa=!1,a.Bg())};
g.h.EJ=function(){var a=this.app.A.D;a&&(a.sa=!0,a.Bg())};
g.h.nn=function(){return this.app.jj()};
g.h.OJ=function(){return!0};
g.h.Xx=function(a){a=g.kZ(this.app.F,a);return{left:a.left,top:a.top,width:a.width,height:a.height}};
g.h.LJ=function(a){this.app.Z.enableSafetyMode=a};
g.h.IJ=function(a){vF();Q2(this.app,a?2:0)};
g.h.rp=function(){var a=this.app.A.o;a&&a.C&&a.destroy();(a=g.UU(this.app))&&FU(a);(a=this.app.A.J)&&a.oI()&&g.RU(this.app.J,!0)};
g.h.Of=function(){var a=this.app.Z;!a.experiments.g("disable_new_pause_state3")&&UO(a)&&"blazer"!=a.o?this.rp():hJ.prototype.Of.call(this)};
g.h.kw=function(){return JU(g.UU(this.app,this.playerType),!0)};
g.h.qn=function(a){this.app.A.g.Ns(a,!0)};
g.h.bi=function(){var a=this.app.A.g;return a?a.Yp():null};
g.h.qr=function(){this.app.A.g.vA()};
g.h.FJ=function(){var a=g.UU(this.app,this.playerType);if(!a)return!1;a=a.g;return!!a&&a.Ge()&&!!a.Ma&&a.Ma.video.isAccelerated&&a.Ma.video.A};
g.h.isPeggedToLive=function(){return this.app.isPeggedToLive()};
g.h.KJ=function(a){var b=this.app;b.Z.Hb=a;b.g.Y("minimized")};
g.h.Ek=function(a){return t2(this.app,a)};
g.h.CJ=function(){var a=this.app.A.B;if(!a)return{};a=a.IB();return"Spherical"!=a.shader&&"Spherical3D"!=a.shader?{}:{yaw:g.Qd(180*(a.yaw||0)/Math.PI,360),pitch:180*(a.pitch||0)/Math.PI}};
g.h.NJ=function(a){var b=this.app.A.B;if(b){var c={shader:"Spherical"};g.oa(a.yaw)&&!(0,window.isNaN)(a.yaw)&&(c.yaw=g.Qd(a.yaw,360)*Math.PI/180);g.oa(a.pitch)&&!(0,window.isNaN)(a.pitch)&&(c.pitch=g.Pd(a.pitch,-90,90)*Math.PI/180);b.JB(c)}};
g.h.HJ=function(a){var b=this.app;b.Z.Dh=a;b.C&&(a=b.C,a.C&&g.uJ(a.C.A))};
g.h.Y=function(a,b){for(var c=1;c<arguments.length;++c);this.app.Z.Fb&&("videodatachange"==a||"audiotrackchanged"==a||"resize"==a||"cardstatechange"==a)&&this.app.ba.Y.apply(this.app.ba,arguments);this.app.K.Y.apply(this.app.K,arguments)};
g.h.ya=function(a,b){this.app.ba.Y.apply(this.app.ba,arguments);this.app.K.Y.apply(this.app.K,arguments)};
g.h.GJ=function(){};
g.h.QJ=function(){this.ya("settingsmenutoggle")};
g.h.setVolume=function(a,b){lJ(this,a,b)};
g.h.mute=function(a){mJ(this,a)};
g.h.ug=function(a){nJ(this,a)};
g.h.pI=function(){return this.app.ka};
g.h.Hk=function(a){if("annotations_module"==a){var b=this.app.A.A;b&&!b.loaded&&b.load()}hJ.prototype.Hk.call(this,a)};
g.h.mn=function(a){if("annotations_module"==a){var b=this.app.A.A;b&&b.loaded&&b.unload()}hJ.prototype.mn.call(this,a)};
g.h.yd=function(a,b,c){if(!b)return null;var d=this.app.A;switch(a){case "ad":return(c=d.o)&&c.TB&&c.TB(b);case "remote":return(a=g.TU(d))&&a.mK(b,c);case "unplugged":return(a=g.Y(d.U).sa?d.C:null)&&a.A(b,c);case "spacecast":return(c=d.P)&&c.C(b);case "annotations_module":return(a=d.A)&&a.uS(b,c);case "creatorendscreen":return(a=d.G)&&a.ca(b,c)}return hJ.prototype.yd.call(this,a,b,c)};
g.h.ai=function(a){var b=this.app.A;switch(a){case "ad":return(b=b.o)&&b.OS&&"addata adstate breakscount displaystate getContentVideoData loadedadbreaks midrollfreqcap".split(" ");case "remote":return g.TU(b)&&["casting","receivers","currentReceiver","quickCast"];case "annotations_module":return(b=b.A)&&b.vS();case "unplugged":return(g.Y(b.U).sa?b.C:null)&&["toggleSettingsMenu"]}return a?hJ.prototype.ai.call(this,a):(a=hJ.prototype.ai.call(this),b.o&&a.push("ad"),g.TU(b)&&a.push("remote"),b.A&&a.push("annotations_module"),
b.G&&a.push("creatorendscreen"),g.Y(b.U).sa&&b.C&&a.push("unplugged"),a)};
g.h.Wx=function(){var a=this.app.F.Ya();return{width:a.width,height:a.height}};
g.h.JJ=function(a){var b=this.app.F;b.J=vO(a,!0);b.fg()};
g.h.UR=function(){var a=this.app.A.D;a&&a.B.sc(2,!0)};g.p(OK,NK);g.h=OK.prototype;g.h.cd=function(){E2(this.app,!0,this.playerType);SY(this.app,this.playerType)};
g.h.md=function(){UY(this.app,this.playerType)};
g.h.be=function(a,b,c){E2(this.app,!0,this.playerType);var d=this.app,e=this.playerType;VY(d,d.getCurrentTime()+a,b,c,e)};
g.h.yc=function(a,b){E2(this.app,!0,this.playerType);VY(this.app,a,b,void 0,this.playerType)};
g.h.Of=function(){S2(this.app)};var Vka={cu:"red",To:"white"};PK.prototype.g=function(a,b){var c=Math.pow(this.C,a);this.A=b*(1-c)+c*this.A;this.B+=a};
PK.prototype.o=function(){return this.A/(1-Math.pow(this.C,this.B))};QK.prototype.g=function(a,b){RK(this,"index");this.B.push({index:this.J++,weight:a,value:b});this.A+=a;for(RK(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)}};
QK.prototype.o=function(){return this.D?(SK(this,this.C-this.D)+SK(this,this.C)+SK(this,this.C+this.D))/3:SK(this,this.C)};TK.prototype.g=function(a,b){this.A.push(b);this.A.length>this.B&&this.A.shift()};
TK.prototype.o=function(){return Yaa.apply(null,this.A)};var Uka={ZT:"adunit",HV:"detailpage",eW:"editpage",fW:"embedded",rX:"leanback",ZY:"previewpage",aZ:"profilepage",a0:"unplugged"};g.h=g.eL.prototype;g.h.by=function(a){this.segments.push(a)};
g.h.getDuration=function(a){return(a=this.Lh(a))?a.duration:0};
g.h.Dm=function(a){return this.getDuration(a)};
g.h.mg=function(){return this.segments.length?this.segments[0].Ga:-1};
g.h.sr=function(a){return(a=this.Lh(a))?a.ingestionTime:window.NaN};
g.h.Ic=function(){return this.segments.length?this.segments[this.segments.length-1].Ga:-1};
g.h.Fm=function(){var a=this.segments[this.segments.length-1];return a?a.endTime:window.NaN};
g.h.Jc=function(){return this.segments[0].startTime};
g.h.Pi=function(){return this.segments.length};
g.h.sn=function(){return 0};
g.h.Vg=function(a){return(a=this.tm(a))?a.Ga:-1};
g.h.gw=function(a){return(a=this.Lh(a))?a.sourceURL:""};
g.h.Pf=function(a){return(a=this.Lh(a))?a.startTime:0};
g.h.Im=ba(2);g.h.Pb=function(){return 0<this.segments.length};
g.h.Lh=function(a){a=g.wb(this.segments,new dL(a,0,0,0,""),function(a,c){return a.Ga-c.Ga});
return 0<=a?this.segments[a]:null};
g.h.tm=function(a){a=g.wb(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.bw=function(){return 0};gL.prototype.skip=function(a){this.o+=a};kL.prototype.hm=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 Jpa=vL;var RN,ZN;var Z3=g.Gb,Z3=Z3.toLowerCase();if(Ja(Z3,"android")){var Kpa=Z3.match(/android\D*(\d\.\d)[^\;|\)]*[\;\)]/);if(Kpa)RN=Number(Kpa[1]);else{var Lpa={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},Mpa=Z3.match("("+g.Ob(Lpa).join("|")+")");RN=Mpa?Lpa[Mpa[0]]:0}}else RN=void 0;ZN=0<=RN;var Sja=['video/mp4; codecs="avc1.42001E, mp4a.40.2"','video/webm; codecs="vp8.0, vorbis"'],Tja=['audio/mp4; codecs="mp4a.40.2"'];LL.prototype.start=function(){return 0};
LL.prototype.end=function(){return window.Infinity};g.h=ML.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.C(NL,MJ);g.h=NL.prototype;g.h.pa=function(){return this.g};
g.h.wd=function(){return this.g.src};
g.h.Uc=function(){try{return this.g.playbackRate}catch(a){return 1}};
g.h.Nf=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.qE(a)})};
g.h.Lb=function(){return this.g.error?this.g.error.code:null};
g.h.setSize=function(a){return g.th(this.g,a)};
g.h.getVolume=function(){return this.g.volume};
g.h.setVolume=function(a){JL();this.g.volume=a};
g.h.mT=function(a){this.dispatchEvent(new VJ(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.V=function(){for(var a in this.A)this.g.removeEventListener(a,this.A[a]);NL.aa.V.call(this)};g.h=PL.prototype;g.h.append=function(a){this.o.webkitSourceAppend(this.A,a)};
g.h.abort=function(){this.o.webkitSourceAbort(this.A)};
g.h.WR=function(){return this.o.webkitSourceState==this.o.SOURCE_CLOSED?new Uja:this.o.webkitSourceBuffered(this.A)};
g.h.YR=function(){return this.B};
g.h.cS=function(a){this.B=a;this.o.webkitSourceTimestampOffset(this.A,a)};g.h=QL.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.nT=function(){return this.g.webkitMediaSourceURL};
g.h.addSourceBuffer=function(a){var b=(this.A++).toString();this.g.webkitSourceAddId(b,a);a=new PL(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.ZR=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.aS=function(){gb(this.sourceBuffers)};
g.h.XR=function(){return this.o};
g.h.bS=function(a){this.o=a;this.g.webkitSourceSetDuration&&this.g.webkitSourceSetDuration(a)};g.C(RL,g.CJ);RL.prototype.O=function(){if(!this.na()&&SL(this)&&!(0,window.isNaN)(this.C)){this.B||(this.A.duration=this.C,this.C=window.NaN);try{this.B||(this.g=this.A.addSourceBuffer(this.K),this.J?this.o=this.A.addSourceBuffer(this.W):this.o=new ML),this.D&&(this.D(this),this.D=null)}catch(a){this.G&&this.G(a)}}};
RL.prototype.M=function(){this.dispose()};cM.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};yM.prototype.verify=function(){if(this.info.ub!=this.range.length)return!1;if(1==this.info.g.info.A){if(8>this.info.ub||4==this.info.type)return!0;var a=zM(this),b=a.getUint32(0,!1),a=a.getUint32(4,!1);if(2==this.info.type)return b==this.info.ub&&1936286840==a;if(3==this.info.type&&0==this.info.o)return 1836019558==a||1936286840==a||1937013104==a||1718909296==a||1701671783==a||1936419184==a}else if(2==this.info.g.info.A){if(4>this.info.ub||4==this.info.type)return!0;b=zM(this).getUint32(0,!1);if(3==
this.info.type&&0==this.info.o)return 524531317==b||440786851==b}return!0};var Tka=["2mdn.net"];LM.prototype.set=function(a,b){this.g[a]!==b&&(this.g[a]=b,this.A="")};
LM.prototype.get=function(a){NM(this);return this.g[a]||null};
LM.prototype.clone=function(){var a=new LM(this.B);a.D=this.D;a.o=this.o;a.C=this.C;a.g=g.Wb(this.g);a.A=this.A;return a};VM.prototype.set=function(a,b){this.g.get(a);this.o[a]=b;this.A=""};
VM.prototype.get=function(a){return this.o[a]||this.g.get(a)};var $3=0;g.h=bN.prototype;g.h.qe=function(){};
g.h.bf=function(){};
g.h.Tq=function(){return!1};
g.h.xd=function(){return!!this.g&&!!this.index&&this.index.Pb()};
g.h.fi=function(){};
g.h.fy=function(){return!1};
g.h.Gm=function(){};
g.h.di=function(){};
g.h.Lk=function(){};
g.h.Ug=function(){};
g.h.nq=function(){};
g.h.wA=function(a){return[a]};
g.h.On=function(a){return[a]};g.p(cN,bN);g.h=cN.prototype;g.h.qe=function(){return!1};
g.h.bf=function(){return!1};
g.h.fy=function(){return this.A};
g.h.Gm=function(){return this.A?[]:[new ZM([new fM(1,this,this.initRange)],this.J)]};
g.h.di=function(){};
g.h.Lk=function(a){this.fi(a);return this.im(a.A?a.Ga+1:a.Ga,!1)};
g.h.Ug=function(a,b){b=void 0===b?!1:b;var c=this.index.Vg(a);b&&(c=Math.min(this.index.Ic(),c+1));return this.im(c,!0)};
g.h.nq=function(a){this.g=new window.Uint8Array(zM(a).buffer)};
g.h.Tq=function(){return!1};
g.h.fi=function(a){return 0==a.ub?!0:this.index.Ic()>a.Ga&&this.index.mg()<=a.Ga+1};
g.h.update=function(a,b,c){var d=this.index;if(0!=a.length)if(a=g.ob(a),0==d.segments.length)d.segments=a;else{var e=d.segments.length?g.Ya(d.segments).endTime:0,f=a[0].Ga-d.Ic();1<f&&gb(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])}}fL(this.index,c);this.G=b};
g.h.xd=function(){return this.A?!0:bN.prototype.xd.call(this)};
g.h.im=function(a,b){var c=this.index.gw(a),d=this.index.Pf(a),e=this.index.getDuration(a),f;b?e=f=0:f=0<this.info.g?this.info.g*e:1E3;return new ZM([new fM(3,this,null,a,d,e,0,f,a==this.index.Ic()&&!this.G&&0<f)],c)};g.p(dN,g.eL);g.h=dN.prototype;g.h.mg=function(){return this.g?this.segments.length?this.tm(this.Jc()).Ga:-1:g.eL.prototype.mg.call(this)};
g.h.Jc=function(){return this.g?this.segments.length?Math.max(g.Ya(this.segments).endTime-this.A,0):0:g.eL.prototype.Jc.call(this)};
g.h.Pi=function(){return this.g?this.segments.length?this.Ic()-this.mg()+1:0:g.eL.prototype.Pi.call(this)};
g.h.by=function(a){var b=eN(this,a.Ga);0<=b?this.segments[b]=a:this.segments.splice(-(b+1),0,a)};
g.h.tm=function(a){if(!this.g)return g.eL.prototype.tm.call(this,a);if(!this.segments.length)return null;var b=g.wb(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?gN(this,c.Ga-Math.ceil((c.startTime-a)/this.o),c):gN(this,c.Ga+Math.ceil((a-c.endTime)/this.o),c)};
g.h.Lh=function(a){if(!this.g)return g.eL.prototype.Lh.call(this,a);if(!this.segments.length)return null;var b=eN(this,a);return 0<=b?this.segments[b]:gN(this,a,this.segments[Math.max(-(b+2),0)])};g.p(hN,cN);g.h=hN.prototype;g.h.bf=function(){return!0};
g.h.xd=function(){return!0};
g.h.fi=function(){return!0};
g.h.Gm=function(){return[]};
g.h.Ug=function(a,b){return g.oa(a)&&!(0,window.isFinite)(a)?new ZM([new fM(3,this,null,-1)],""):cN.prototype.Ug.call(this,a,b)};
g.h.im=function(a,b){if(fN(this.index,a))return cN.prototype.im.call(this,a,b);var c=this.index.Pf(a);return new ZM([new fM(3,this,null,a,c,void 0,void 0,this.D*this.info.g)],0<=a?"sq/"+a:"")};mN.prototype.update=function(a,b){var c=void 0;this.o&&(c=this.o);var d=new mN,e=a.getElementsByTagName("S");if(e.length){var f=+jN(a,"timescale")||1,k=(+e[0].getAttribute("t")||0)/f,l=+jN(a,"startNumber")||0;var m=k;var n=+jN(a,"presentationTimeOffset")||0;m=c?c.Pd+c.durationSecs:b?m-n/f:0;n=Date.parse(iN(jN(a,"yt:segmentIngestTime")))/1E3;d.A="SegmentTemplate"==a.parentNode.tagName;d.A&&(d.D=jN(a,"media"));var q=c?l-c.Ga:1;d.C=0<q?0:-q+1;for(q=0;q<e.length;q++)for(var r=e[q],w=+r.getAttribute("d")/
f,y=(+r.getAttribute("yt:sid")||0)/f,B=+r.getAttribute("r")||0,D=0;D<=B;D++)if(c&&l<=c.Ga)l++;else{var K=new kka(l,m,w,n+y,k);d.g.push(K);var X=r;var Ra=f,bb=K.Pd,ia=X.getAttribute("yt:cuepointTimeOffset"),K=X.getAttribute("yt:cuepointDuration");ia&&K?(bb=+ia/Ra+bb,Ra=+K/Ra,X=X.getAttribute("yt:cuepointContext")||null,X=new nL(bb,Ra,X)):X=null;X&&d.B.push(X);l++;m+=w;k+=w;n+=w+y}d.g.length&&(d.o=g.Ya(d.g))}this.C=d.C;this.o=d.o||this.o;pb(this.g,d.g);pb(this.B,d.B);this.A=d.A;this.D=d.D};
mN.prototype.Tg=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.nN.prototype;g.h.sn=function(a){return this.g[a]};
g.h.Pf=function(a){return this.o[a]/this.B};
g.h.Im=ba(1);g.h.sr=function(){return window.NaN};
g.h.getDuration=function(a){a=this.Dm(a);return 0<=a?a/this.B:-1};
g.h.Dm=function(a){return a+1<this.La||this.A?this.o[a+1]-this.o[a]:-1};
g.h.mg=function(){return 0};
g.h.Ic=function(){return this.La-1};
g.h.Fm=function(){return this.A?this.o[this.La]/this.B:window.NaN};
g.h.Jc=function(){return 0};
g.h.Pi=function(){return this.La};
g.h.gw=function(){return""};
g.h.Vg=function(a){a=g.wb(this.o.subarray(0,this.La),a*this.B);return 0<=a?a:Math.max(0,-a-2)};
g.h.Pb=function(){return 0<=this.Ic()};
g.h.bw=function(a,b){if(a>=this.Ic())return 0;for(var c=0,d=this.Pf(a)+b,e=a;e<this.Ic()&&d>this.Pf(e);e++)c=Math.max(c,(e+1<this.La||this.A?this.g[e+1]-this.g[e]:-1)/this.getDuration(e));return c};
g.h.cap=function(a,b){oN(this);this.A=!0;this.o[this.La]=b;this.g[this.La]=a};g.p(pN,bN);g.h=pN.prototype;g.h.Gm=function(a,b){var c=new fM(1,this,this.initRange),d=new fM(2,this,this.indexRange),e=[],f=[c];hM(c,d)?f.push(d):(e.push(new ZM([d])),b=!1);(0,window.isNaN)(this.A)&&(b=!1);var c=f[f.length-1],d=c.range.end-f[0].range.start+1,k=0;if(b){var k=a.Lp,l=this.info.video?2:a.uc;0<l&&(k=Math.floor(Math.max(k,l*this.info.g)));k=Math.min(a.G,k,this.A);k=a.Fg?Math.min(k,this.A-d):k-d}0<k&&f.push(new fM(4,this,eM(c.range.end+1,k)));e.push(new ZM(f));return e};
g.h.nq=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.D||0<=this.index.Ic())return;if(LI(this.info)){b=this.index;var c=zM(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.La++;oN(l);l.g[l.La]=l.g[l.La-1]+f;l.o[l.La]=l.o[l.La-1]+k}}else this.D=zM(a)}if(2==this.info.A&&this.g&&this.D){a=new window.DataView(this.g.buffer);b=this.index;k=this.D;c=this.indexRange.end;a=new kM(a);if(vM(a,440786851)&&(rM(a),vM(a,408125543)&&(e=a,
f=e.g,d=pM(e,!0),e.g=f,a=oM(a),e=a.A+a.g,vM(a,357149030)))){a=oM(a);for(var l=1E6,m=1E9,f=0;!lM(a);){var n=pM(a,!1);2807729==n?l=qM(a):2807730==n?m=qM(a):17545==n?f=sM(a):rM(a)}b.B=m/l;a=new kM(k);if(vM(a,475249515)){a=oM(a);k=!0;for(l=!1;vM(a,187);){m=oM(a);if(vM(m,179))if(n=qM(m),vM(m,183)){for(var m=oM(m),q=e;vM(m,241);)q=qM(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];oN(m);m.g[m.La]=n;m.o[m.La]=q;m.La++}b.cap(d+e,f)}}this.D=null}};
g.h.wA=function(a){for(var b=this.On(a.info),c=[],d=a.A,e=0;e<b.length;e++)c.push(new yM(b[e],a.g,eM(b[e].range.start+b[e].o-a.info.range.start+a.range.start,b[e].ub),a.B,d)),d=!1;return c};
g.h.On=function(a){for(var b=0;b<this.index.Ic()&&a.range.start>=this.index.sn(b+1);)b++;return qN(this,b,a.range.start,a.range.length).g};
g.h.fi=function(a){return this.xd()?!0:(0,window.isNaN)(this.A)?!1:a.range.end+1<this.A};
g.h.di=function(a,b){this.fi(a);if(!this.xd()){var c=eM(a.range.end+1,b);c.end+1>this.A&&(c=new cM(c.start,this.A-1));return new ZM([new fM(4,a.g,c)])}4==a.type&&(c=this.On(a),a=c[c.length-1]);var c=0,d=a.range.start+a.o+a.ub;3==a.type&&(c=a.Ga,d==a.range.end+1&&(c+=1));return qN(this,c,d,b)};
g.h.Lk=function(){return null};
g.h.Ug=function(a,b){var c=this.index.Vg(a);b&&(c=Math.min(this.index.Ic(),c+1));return qN(this,c,this.index.sn(c),0)};
g.h.Tq=function(){var a;if(a=this.xd()&&!(0,window.isNaN)(this.A))a=this.index,a=(a.A?a.g[a.La]:-1)!=this.A;return a};
g.h.qe=function(){return!0};
g.h.bf=function(){return!1};g.p(sN,g.RF);g.h=sN.prototype;g.h.bh=function(){return Kb(this.g,function(a){return a.info.video?2==a.info.video.projectionType:!1})};
g.h.tg=function(){return Kb(this.g,function(a){return a.info.video?3==a.info.video.projectionType:!1})};
g.h.sk=function(){return Kb(this.g,function(a){return a.info.video?4==a.info.video.projectionType:!1})};
g.h.Xh=function(){return Kb(this.g,function(a){return a.info.video?1==a.info.video.stereoLayout:!1})};
g.h.vQ=function(a){var b=a.getElementsByTagName("Representation");if(0<a.getElementsByTagName("SegmentList").length||0<a.getElementsByTagName("SegmentTemplate").length){this.A=!0;this.C||(this.C=new mka);qka(this.C,a,this.ka);this.Y("refresh");for(a=0;a<b.length;a++){var c=zN(this,b[a]),d=this.isLive&&LI(c)&&this.oa;if(!this.g[c.id]){var e=wN(kN(b[a],"BaseURL").textContent,c),f=kN(b[a],"Initialization"),k=jN(f,"sourceURL"),f=dM(jN(f,"range"));d&&(k="",f=void 0);this.g[c.id]=new cN(e,c,k,null===f?
void 0:f)}c=this.g[c.id];e=jN(b[a],"id","AdaptationSet");e=""!=e?e:jN(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.ka(k),f=k.next();!f.done;f=k.next()){var f=f.value,l=e.Tg(c.info.id,8*c.info.g,f.Ga,f.Pd);d.push(new dL(f.Ga,f.Pd,f.durationSecs,f.g,l,null,f.o))}else{e=g.qb(kN(b[a],"SegmentList").getElementsByTagName("SegmentURL"),e.C);f=[];for(l=0;l<e.length;l++)f.push(zka(e[l],k[l],d));d=f}c.update(d,this.isLive,this.W)}rka(this.C);return!0}this.duration=
lN(jN(a,"mediaPresentationDuration"));a:{for(a=0;a<b.length;a++){k=b[a];c=zN(this,k);e=kN(k,"BaseURL");d=wN(e.textContent,c);f=kN(k,"SegmentBase");k=dM(f.attributes.indexRange.value);f=dM(f.getElementsByTagName("Initialization")[0].attributes.range.value);e=(0,window.parseInt)(e.getAttribute(xN(this,"contentLength")),10);c=new pN(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.Re=function(a){return this.C?g.qb(this.C.B,a):this.G.length?g.qb(this.G,a):[]};
g.h.uG=function(a){if(this.na())return this;this.M=a.status;a=a.responseText;a=(new window.DOMParser).parseFromString(a,"text/xml").getElementsByTagName("MPD")[0];this.D=1E3*lN(jN(a,"minimumUpdatePeriod"))||window.Infinity;if(!this.P){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.fa=b}this.isLive=window.Infinity>this.D&&this.ra;this.W=(0,window.parseInt)(jN(a,xN(this,"earliestMediaSequence")),
10)||0;if(b=Date.parse(iN(jN(a,xN(this,"mpdResponseTime")))))this.O=((0,g.G)()-b)/1E3;a=this.isLive&&0>=a.getElementsByTagName("SegmentTimeline").length?!1:(0,g.Ar)(a.getElementsByTagName("Period"),this.vQ,this);this.F=2;this.Y("loaded");CN(this,a);return this};
g.h.xG=function(a){this.M=a.g.status;this.F=3;this.Y("loaderror");return Wf(a.g)};
g.h.ey=function(){if(1!=this.F&&!this.na()){var a=this.ca;a:{var b=this.g;for(var c in b){var d=b[c].index;if(d&&d.Pb()){b=d.Ic()+1;break a}}b=0}a=g.Dg(a,{start_seq:b.toString()});AN(this,a)}};
g.h.resume=function(){CN(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.Pb()&&((0,window.isNaN)(b)||d.Fm()<b)&&(b=d.Fm())}return Math.floor(b)};
g.h.Jc=function(){var a=this.g,b;for(b in a){var c=a[b].index;if(c&&c.Pb())return c.Jc()}return 0};
g.h.VJ=function(){return this.O};
var FN=null,yN={commentary:1,alternate:2,dub:3,main:4};var a4={},ZP=(a4.playready=["com.youtube.playready","com.microsoft.playready"],a4.widevine=["com.widevine.alpha"],a4),kla=g.nb(ZP.widevine,ZP.playready);ON.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),Pf(a)?a:QN(a)):2==this.o&&b?(a=b.call(c,this.g),Pf(a)?a:PN(a)):this};
Of(ON);ON.prototype.getValue=function(){return this.g};var Jka="9h 9 h 8 (h ( H *".split(" "),Ika="9h 9 h 8 ( H *".split(" "),$N="h98H(*".split(""),Lka="oMavAV".split(""),Oka=["so","sa"],Nka="moMavAV".split(""),Mka="aoMvAV".split(""),Kka=["f"],Eka={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},Fka={"application/x-mpegURL":"maybe"},Dka={"application/x-mpegURL":"maybe"};var KO={CX:1,DX:2,EX:3};g.C(kO,g.RF);kO.prototype.remove=function(a){var b=this.get(a);delete this.Ka[a];return b};
kO.prototype.get=function(a){return this.Ka[a]||null};
kO.prototype.isEmpty=function(){return g.Tb(this.Ka)};var mO={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},nO={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},oO=/^(\d*)_((\d*)_?(\d*))$/;var Qka=/^([0-9\.]+)\:([0-9\.]+)$/;var yO=(0,g.G)().toString();var DO="blogger books docs google-live play picasaweb gmail jamboard".split(" ");g.p(NO,g.M);
NO.prototype.Zf=function(a){var b=qO(a,this.A,this.Fb),c=!0;b&&(this.K.adformat=a.adformat,pO(b)||(this.ca="adunit"==this.g?this.ca:this.g,this.g="adunit",c=!1));c&&this.ca&&(this.g=this.ca,this.ca=null);if(b=a.video_id&&a.video_id!=this.sf)this.sf=a.video_id;if(a.adpings||b)this.Wo=a.adpings?g.zE(a.adpings):null;this.qf?(c=a.videostats_playback_base_url&&a.videostats_playback_base_url.split("/")[2]||"s.youtube.com",this.experiments.g("www_for_videostats")&&"s.youtube.com"==c&&(c="www.youtube.com")):
c="video.google.com";this.Lg=c;this.Jg="//"+this.Lg+"/api/stats/qoe";if(a.feature||b)this.qh=c=a.feature,this.K.feature=c;if(a.referrer||b)this.referrer=b=a.referrer,this.K.referrer=b;for(var d in Npa)b=Npa[d],c=a[b],void 0!=c&&(this.B[b]=c);!this.Oa&&a.cl&&(this.Oa=+a.cl);this.userAge=tO(this.userAge,a.user_age);this.userDisplayImage=uO(this.userDisplayImage,a.user_display_image);g.WP.test(this.userDisplayImage)||(this.userDisplayImage="");this.userDisplayName=uO(this.userDisplayName,a.user_display_name);
this.userGender=uO(this.userGender,a.user_gender);this.Yb=uO(this.Yb,a.eventid);this.csiPageType=uO(this.csiPageType,a.csi_page_type);this.qb=uO(this.qb,a.csi_service_name);this.oc=rO(this.oc,a.enablecsi);a.enabled_engage_types&&(this.zb=new window.Set(a.enabled_engage_types.split(",")))};
NO.prototype.getVideoUrl=function(a,b,c,d,e){b={list:b};c&&(e?b.time_continue=c:b.t=c);c=RO(this);d&&"www.youtube.com"==c?d="https://youtu.be/"+a:g.HO(this)?(d="https://"+c+"/fire",b.v=a):(d=this.ha+"://"+c+"/watch",b.v=a,VN&&(a=g.x("yt.ads.biscotti.lastId_")||"")&&(b.ebc=a));return g.Dg(d,b)};
NO.prototype.isAd=function(){return"adunit"==this.g};
var Npa={EU:"cbrand",FU:"cbr",GU:"cbrver",gX:"c",jX:"cver",iX:"ctheme",hX:"cplayer",OX:"cmodel",vY:"cnetwork",FY:"cos",GY:"cosver",LY:"cplatform"};g.aP.prototype.toString=function(){return this.topic};var Opa=g.x("ytPubsub2Pubsub2Instance")||new g.gD;g.gD.prototype.subscribe=g.gD.prototype.subscribe;g.gD.prototype.unsubscribeByKey=g.gD.prototype.Qd;g.gD.prototype.publish=g.gD.prototype.Y;g.gD.prototype.clear=g.gD.prototype.clear;g.v("ytPubsub2Pubsub2Instance",Opa,void 0);var dP=g.x("ytPubsub2Pubsub2SubscribedKeys")||{};g.v("ytPubsub2Pubsub2SubscribedKeys",dP,void 0);var fP=g.x("ytPubsub2Pubsub2TopicToKeys")||{};g.v("ytPubsub2Pubsub2TopicToKeys",fP,void 0);
var eP=g.x("ytPubsub2Pubsub2IsAsync")||{};g.v("ytPubsub2Pubsub2IsAsync",eP,void 0);g.v("ytPubsub2Pubsub2SkipSubKey",null,void 0);var xP=window.performance||window.mozPerformance||window.msPerformance||window.webkitPerformance||{};g.C(kP,g.$O);var iP=new g.aP("timing-sent",kP);nP.prototype.toString=function(){return this.region.toString()+": "+this.timing+" => "+this.url};
oP.prototype.toString=function(){return["progress",this.progress,"timing",this.timing,"area",this.Qc].join(": ")};
mP.o=.1;mP.g=/url\(["']?(http[^'"\)]+)['"]?\)/i;mP.A="mark_iframe_loaded: ";mP.B=20;var fla={vc:!0},BP={'script[name="scheduler/scheduler"]':"sj",'script[name="player/base"]':"pj",'link[rel="stylesheet"][name="www-player"]':"pc",'link[rel="stylesheet"][name="player/www-player"]':"pc",'script[name="desktop_polymer/desktop_polymer"]':"dpj",'link[rel="import"][name="desktop_polymer"]':"dph",'script[name="mobile_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","#player_css":"mbpc","#player_js":"mbpj"},KP={ad_at:"adType",cpn:"clientPlaybackNonce",csn:"clientScreenNonce",is_nav:"isNavigation",yt_lt:"loadType",yt_ad:"isMonetized",yt_ad_pr:"prerollAllowed",yt_red:"isRedSubscriber",yt_vis:"isVisible",docid:"videoId",plid:"videoId",fmt:"playerInfo.itag"},ela="ap c cver ei yt_fss yt_li".split(" "),bla={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"},dla=["isNavigation","isMonetized","prerollAllowed","isRedSubscriber","isVisible"],Zka=(0,g.A)(xP.clearResourceTimings||xP.webkitClearResourceTimings||xP.mozClearResourceTimings||xP.msClearResourceTimings||xP.oClearResourceTimings||g.z,xP);OP.prototype.reset=function(){rP(this.g)};
OP.prototype.o=function(a,b){g.tP(a,b,this.g)};
OP.prototype.info=function(a,b){g.uP(a,b,this.g)};SP.prototype.toString=function(){return this.type+this.id};var VP={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},hla={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};g.p(YP,g.M);
YP.prototype.D=function(){if(!this.na())if(0==this.o.length)this.A(null);else{var a=this.o.shift(),b=this.g[a],c=b.g,d={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]},e;for(e in this.B[c]){var f=0==e.indexOf("audio/"),k=f?d.audioCapabilities:d.videoCapabilities;this.C.g("html5_widevine_robustness_strings")&&"widevine"==c?f?k.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}):(k.push({contentType:e,robustness:"HW_DECODE_ALL"}),k.push({contentType:e,robustness:"SW_SECURE_DECODE"})):k.push({contentType:e})}window.navigator.requestMediaKeySystemAccess(a,
[d]).then(rE((0,g.A)(this.F,this,b)),rE((0,g.A)(this.D,this)))}};
YP.prototype.F=function(a,b){function c(b){a.B[b.contentType]=!0}
if(!this.na()){a.A=b;var d=b.getConfiguration();d.audioCapabilities&&d.audioCapabilities.forEach(c);d.videoCapabilities&&d.videoCapabilities.forEach(c);this.A(a)}};var nla=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(aQ,SI);
aQ.prototype.g=function(){if(!this.o||this.o.na()){var a=this.B;pla(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.lv+","+f.lv)+'",RESOLUTION='+(k.width+"x"+k.height)+',AUDIO="'+f.itag.toString()+
'",CLOSED-CAPTIONS=NONE');b.push(k.url)}this.o=new RI("data:application/x-mpegurl;charset=utf-8,"+(0,window.encodeURIComponent)(b.join("\n")))}return this.o};g.p(cQ,SI);cQ.prototype.g=function(){return new RI(MM(this.o))};
cQ.prototype.A=function(){this.o=QM(this.o,1);return!0};g.C(eQ,g.RF);eQ.prototype.K=function(a,b){this.o=this.o.onload=null;var c=this.g[a];c.Tc[b]=!0;iQ(this);var d=c.columns*c.rows;var e=b*d;c=Math.min(e+d-1,c.Up()-1);e=[e,c];this.Y("l",e[0],e[1])};
eQ.prototype.V=function(){this.o&&(this.o=this.o.onload=null);eQ.aa.V.call(this)};g.h=lQ.prototype;g.h.Eb=function(){return this.F};
g.h.getHeight=function(){return this.D};
g.h.Up=function(){return this.o};
g.h.isDefault=function(){return-1!=this.A.indexOf("default")};
g.h.Pb=function(a){return!!this.Tc[a]};
g.h.yo=function(a){var b=this.Up()-1;return g.Pd(0==this.B?Math.round(a*this.o/this.K):Math.round(1E3*a/this.B),0,b)};
g.h.At=function(){return this.o-1};
g.h.nC=function(){return this.o?0:-1};
g.h.oC=function(){};g.C(mQ,eQ);mQ.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};
mQ.prototype.D=function(a,b,c,d){return new lQ(a,b,c,d)};
mQ.prototype.J=function(){};g.C(nQ,lQ);g.h=nQ.prototype;g.h.Up=function(){return this.g?this.g.Pi():-1};
g.h.yo=function(a){var b=this.rows*this.columns*this.G,c=-1,d=-1,e=this.g;e&&(c=e.Ic(),d=e.Vg(a));return d>c-b?-1:d};
g.h.At=function(){return this.g?this.g.Ic():-1};
g.h.nC=function(){return this.g?this.g.mg():-1};
g.h.oC=function(a){this.g=a?a.index:null};g.C(oQ,mQ);oQ.prototype.A=function(a,b){return oQ.aa.A.call(this,"$N|"+a,b)};
oQ.prototype.D=function(a,b,c){return new nQ(a,b,c,this.M.isLive)};
oQ.prototype.J=function(a){for(var b=0;b<this.g.length;b++)this.g[b].oC(a)};g.p(pQ,SI);pQ.prototype.g=function(){return new RI(this.o)};var Dla={0:"UNKNOWN",1:"OFF",2:"ON",3:"FORCED_ON"},b4={},Ppa=(b4.ALWAYS=1,b4.BY_REQUEST=3,b4),Ala,sQ;g.p(g.rQ,g.RF);g.h=g.rQ.prototype;g.h.Zf=function(a,b){b?(this.setData(a),KQ(this)&&zQ(this)):(vQ(this,a,!0),this.Y("dataupdated"))};
g.h.setData=function(a){a=a||{};a.player_response&&(this.Nb=g.Ic(a.player_response));this.gg="1"!=a.hlsdvr?!1:UN()?!0:EO&&5>yZ?!1:!0;this.jF=a.ad_query_id;this.adSafetyReason=a.encoded_ad_safety_reason;this.kF=a.agcid;this.Ml="1"==a.infringe||"1"==a.muted;this.Lu=a.authkey;this.Fc=a.authuser;this.clientPlaybackNonce||(this.clientPlaybackNonce=a.cpn||BO());this.enableCardio=rO(this.enableCardio,a.enable_cardio);this.enableCardioBeforePlayback=rO(this.enableCardioBeforePlayback,a.enable_cardio_before_playback);
this.Ii=tO(this.Ii,a.end||a.endSeconds);this.Ym=uO(this.Ym,a.itct);this.Sq=rO(this.Sq,a.noiba);this.Ak="1"==a.livemonitor;this.Ba="1"==a.live_playback||!!a.fresca_preroll||!!a.heartbeat_preroll;this.isLiveDestination=rO(this.isLiveDestination,a.is_live_destination);this.isLiveDefaultBroadcast="1"==a.live_default_broadcast;this.isLowLatencyLiveStream="1"==a.is_low_latency_live_stream;this.isMdxPlayback=rO(this.isMdxPlayback,a.mdx);a.mdx_control_mode&&(this.mdxControlMode=Va(a.mdx_control_mode));this.li=
tO(this.li,a.reload_count);this.gs=uO(this.gs,a.reload_reason);this.Wq=rO(this.Wq,a.utpsa);this.cycToken=a.cyc;this.gB=a.tkn;this.Jj="1"==a.innertube_thumbnail&&this.Nb.videoDetails.thumbnail?ila(this.Nb.videoDetails.thumbnail):XP(a);this.cg=uO(this.cg,a.vvt);this.mdxEnvironment=uO(this.mdxEnvironment,a.mdx_environment);this.YL=a.osig;this.cA=a.ptchn;this.dA=a.oid;this.Vk=a.ptk;this.eA=a.pltype;this.playbackId=a.plid;this.eventId=a.eventid;this.osid=a.osid;this.videoMetadata=a.vm;this.Tr=a.of;this.eo=
a.upt;this.playlistId=uO(this.playlistId,a.list);this.mA=a.pyv_view_beacon_url;this.FQ=a.pyv_quartile25_beacon_url;this.GQ=a.pyv_quartile50_beacon_url;this.HQ=a.pyv_quartile75_beacon_url;this.EQ=a.pyv_quartile100_beacon_url;a.remarketing_url&&(this.remarketingUrl=a.remarketing_url);a.ppv_remarketing_url&&(this.ppvRemarketingUrl=a.ppv_remarketing_url);this.Mn=a.sdetail;!this.ds&&a.session_data&&(this.ds=g.yE(a.session_data).feature);this.isFling=1==tO(this.isFling?1:0,a.is_fling);this.vnd=tO(this.vnd,
a.vnd);this.Mp=uO(this.Mp,a.force_ads_url);this.Wf=uO(this.Wf,a.ctrl);this.gf=uO(this.gf,a.ytr);this.dm=a.ytrcc;this.pA=a.ytrexp;this.dl=wO(this.dl,a.vq);this.jl=wO(this.jl,a.suggestedQuality);this.Xn=rO(this.Xn,a.ssrt);this.videoId=xO(a)||this.videoId;this.vssCredentialsToken=uO(this.vssCredentialsToken,a.vss_credentials_token);this.ro=uO(this.ro,a.vss_credentials_token_type);this.ypcGid=uO(this.ypcGid,a.ypc_gid);this.heartbeatToken=uO(this.heartbeatToken,a.heartbeat_token);this.heartbeatInterval=
tO(this.heartbeatInterval,a.heartbeat_interval);this.heartbeatRetries=tO(this.heartbeatRetries,a.heartbeat_retries);this.heartbeatSoftFail=rO(this.heartbeatSoftFail,a.heartbeat_soft_fail);this.Rq=rO(this.Rq,a.ithb);this.gx=rO(this.gx,a.strpro);if(a.ad3_module||a.ad_module)"1"==a.allow_html5_ads?(this.adModule=!0,"1"==a.ad_preroll&&this.de.push("ad")):"1"!=a.supported_without_ads&&(this.Ew=!0);a.adaptive_fmts&&(this.adaptiveFormats=a.adaptive_fmts);this.Nb&&this.Nb.attestation&&this.Nb.attestation.playerAttestationRenderer?
this.Qj=this.Nb.attestation.playerAttestationRenderer.challenge:void 0!=a.atc&&(this.Qj=a.atc);a.license_info&&(this.Zc=Cla(a.license_info));a.allow_embed&&(this.allowEmbed="1"==a.allow_embed);a.backgroundable&&(this.backgroundable="1"==a.backgroundable);a.autonav&&(this.bn="1"==a.autonav);a.autoplay&&(this.ph="1"==a.autoplay);if(a.iv_load_policy)this.Ng=sO(this.Ng,a.iv_load_policy,KO);else{var b=tQ(this.Nb);b&&b.loadPolicy&&(this.Ng=Ppa[b.loadPolicy])}a.cc_lang_pref&&(this.Fi=uO(a.cc_lang_pref,this.Fi));
a.cc_load_policy&&(this.Og=sO(this.Og,a.cc_load_policy,KO));"0"==a.dash&&(this.Fp=!0);if(a.dashmpd){this.ue=g.Dg(a.dashmpd,{cpn:this.clientPlaybackNonce});var b=/\/s\/([0-9A-F.]+)/,c=b.exec(this.ue);c&&(c=pE(c[1]),this.ue=this.ue.replace(b,"/signature/"+c))}a.delay&&(this.zf=Va(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.de.push("fresca");a.heartbeat_preroll&&this.de.push("heartbeat");a.idpj&&(this.ej=Va(a.idpj));a.ismb&&(this.sg=Va(a.ismb));a.is_listed&&(this.isListed=rO(this.isListed,a.is_listed));a.paid_content_overlay_duration_ms&&(this.bA=Va(a.paid_content_overlay_duration_ms));a.paid_content_overlay_text&&(this.uQ=a.paid_content_overlay_text);a.url_encoded_fmt_stream_map&&(this.wh=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=Va(a.length_seconds));a.live_chunk_readahead&&(this.liveChunkReadahead=tO(this.liveChunkReadahead,a.live_chunk_readahead));a.live_start_walltime&&(this.liveStartWalltime=Va(a.live_start_walltime));a.live_manifest_duration&&(this.Zq=Va(a.live_manifest_duration));a.ldpj&&(this.Dk=Va(a.ldpj));a.player_params&&(this.playerParams=a.player_params);a.relative_loudness&&(this.relativeLoudness=Va(a.relative_loudness),this.xc=Math.min(1,Math.pow(10,-this.relativeLoudness/
20)));a.partnerid&&(this.oh=Va(a.partnerid));a.probe_url&&(this.probeUrl=KM(g.Dg(a.probe_url,{cpn:this.clientPlaybackNonce})));a.profile_picture&&(this.profilePicture=uO(a.profile_picture,this.profilePicture));a.pyv_billable_url&&g.Q3.test(a.pyv_billable_url)&&(this.Hn=a.pyv_billable_url);a.pyv_conv_url&&g.Q3.test(a.pyv_conv_url)&&(this.uj=a.pyv_conv_url);a.video_masthead_ad_quartile_urls&&(b=a.video_masthead_ad_quartile_urls,this.gr=b.quartile_0_url,this.Fx=b.quartile_25_url,this.Gx=b.quartile_50_url,
this.Hx=b.quartile_75_url,this.Ex=b.quartile_100_url);"1"==a.spacecast_playback&&(this.de.push("spacecast"),this.spacecastModule=!0,this.ni.zQ=!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.ni.init=b);0<this.startSeconds||(this.fx=this.startSeconds=tO(this.startSeconds,a.start||a.startSeconds));void 0==a.start||"1"==a.resume||this.Ba||(this.clipStart=a.start);
a.two_stage_token&&(this.vh=a.two_stage_token);a.url_encoded_third_party_media&&(this.Ij=GE(a.url_encoded_third_party_media));a.watch_ajax_token&&(this.watchAjaxToken=a.watch_ajax_token);a.ypc_module&&this.de.push("ypc");a.ypc_clickwrap_module&&this.de.push("ypc_clickwrap");this.nl=uO(this.nl,a.ucid);(0,g.H)("baseUrl uid oeid ieid ppe engaged subscribed".split(" "),function(b){a[b]&&(this.te[b]=a[b])},this);
this.te.focEnabled=rO(this.te.focEnabled,a.focEnabled);this.te.rmktEnabled=rO(this.te.rmktEnabled,a.rmktEnabled);this.Xb=a;vQ(this,a,!1);xQ(this)||(this.adaptiveFormats&&!this.Ba?(AQ(this,uN(BQ(this,this.adaptiveFormats),this.Zc,this.lengthSeconds,void 0,this.Gj)),tN(this.va)&&(this.fj=!0)):this.ue&&(this.Yj=!0));a.adpings&&(this.Wo=a.adpings?g.zE(a.adpings):null);a.feature&&(this.qh=a.feature);a.referrer&&(this.referrer=a.referrer);a.multifeed_metadata_list&&(this.Ch=GE(a.multifeed_metadata_list));
this.clientScreenNonce=uO(this.clientScreenNonce,a.csn);this.rootVeType=tO(this.rootVeType,a.root_ve_type);a.unplugged_location_info&&(this.ri=a.unplugged_location_info);a.unplugged_partner_opt_out&&(this.Lj=uO("",a.unplugged_partner_opt_out));this.xk=uO(this.xk,a.internal_ip_override);this.innertubez=uO(this.innertubez,a.innertubez)};
g.h.Kd=function(){return!this.Ba||this.gg};
g.h.xI=function(a){(this.If=a)&&"fairplay"==this.If.g&&(this.If.fairPlayCert=this.fairPlayCert);zQ(this)};
g.h.bf=function(){return!(!this.va||!this.va.o)};
g.h.gN=function(a){this.na()||(AQ(this,a),this.Ba&&this.va.subscribe("refresh",this.uz,this),g.tP("mrc"),tN(this.va)&&(this.fj=!0),zQ(this))};
g.h.fN=function(a){this.na()||(this.fh=!1,this.Y("dataloaderror",new g.QP("manifest.net.retryexhausted",!0,{backend:"manifest",rc:a.status})))};
g.h.uz=function(){this.na()||(this.va.isLive||this.va.unsubscribe("refresh",this.uz,this),this.cv())};
g.h.cv=function(){var a=this.va.Re(this.Yq);0<a.length&&(this.Y("cuepointupdated",a),this.Yq+=a.length)};
g.h.LI=function(a){if(this.spacecastFormatMap){var b=BQ(this,this.spacecastFormatMap);return dQ(a,b,DQ(this,a)).then(this.Vn,void 0,this).then(this.Sv,void 0,this)}return PN()};
g.h.II=function(a){var b=xQ(this)||a.Uq;if(this.va&&!b){if(!a.D){var b=this.va,c=this.Ba;if(!b.g["0"]){var d=new FI(0,0,0,void 0,void 0,"auto"),d=new II("0","",void 0,d);b.g["0"]=c?new cN(new LM("http://www.youtube.com/videoplayback"),d,"fake"):new pN(new LM("http://www.youtube.com/videoplayback"),d,new cM(0,0),new cM(0,0),0,window.NaN)}}return cO(a.O,this.va,this.If,!1,Wka(a)).then(this.us,void 0,this)}return PN()};
g.h.JI=function(a){if(this.hlsFormats){var b=BQ(this,this.hlsFormats);return sla(a,b,this.sg).then(this.Vn,void 0,this)}return PN()};
g.h.MI=function(a){if(this.Ij&&this.mx){var b=tla(this.Ij);a=TN(a.O,b,PO(a)).then(this.Vn,void 0,this)}else a=PN();return a};
g.h.KI=function(a){var b=BQ(this,this.wh,this.fmtList);if(this.hlsvp){var c=this.hlsvp,d=this.sg,e={cpn:this.clientPlaybackNonce};-1==c.indexOf("/ibw/")&&(e.ibw=d?String(d):"1369843");c={url:g.Dg(c,e),type:"application/x-mpegURL",quality:"auto",itag:"93"};b.push(c)}return dQ(a,b,DQ(this,a)).then(this.Vn,void 0,this)};
g.h.us=function(a){this.jb=a;this.ah=this.ah||/^r/.test(this.clientPlaybackNonce)&&!!this.jb.videoInfos.length&&1080<this.jb.videoInfos[0].video.o;a=this.jb?this.jb.audioTracks:[];a=a.concat(this.km);for(var b=0;b<this.Tj.length;b++)for(var c=this.Tj[b],d=0;d<a.length;d++){var e=a[d],f=e.Sc.id==c.audioTrackId;if(e.Sc.isDefault&&b==this.sp||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.lm=this.captionTracks[c.defaultCaptionTrackIndex]);g.t(c.forcedCaptionTrackIndex)&&(e.fk=this.captionTracks[c.forcedCaptionTrackIndex]);e.Su=c.visibility||"UNKNOWN"}}};
g.h.Vn=function(a){this.Xk=a;this.us(new NN((0,g.I)(this.Xk,function(a){return a.ye})))};
g.h.Sv=function(){var a=Sd(this.jb.videoInfos,function(a,c){return c.video.isAccelerated&&(!a||a.height<c.video.height)?c.video:a},null);
a&&(this.jl=this.dl=a=VI(a.quality,a.quality,!0))};
g.h.og=function(){var a={};this.Ma&&(a.fmt=HI(this.Ma),this.rd&&HI(this.rd)!=HI(this.Ma)&&(a.afmt=HI(this.rd)));a.plid=this.playbackId;a.ei=this.eventId;a.list=this.playlistId;a.cpn=this.clientPlaybackNonce;this.videoId&&(a.v=this.videoId);this.Ml&&(a.infringe=1);this.Hf&&(a.splay=1);this.Ba&&(a.live=this.gg?"dvr":"live");this.ph&&(a.autoplay=1);this.Mn&&(a.sdetail=this.Mn);this.oh&&(a.partnerid=this.oh);this.osid&&(a.osid=this.osid);return a};
g.h.getStoryboardFormat=function(){if(this.Nb&&this.Nb.storyboards){var a=this.Nb.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.va&&!(0,window.isNaN)(this.va.kk())?this.va.kk():this.lengthSeconds};
g.h.Jc=function(){return this.va&&!(0,window.isNaN)(this.va.Jc())?this.va.Jc():0};
g.h.Ge=function(){return!this.na()&&!(!this.videoId&&!this.Ij)};
g.h.Pb=function(){return KQ(this)&&!this.Yj&&!this.fj};
g.h.DA=function(){var a={format:"RAW",method:"GET",withCredentials:this.tA};this.Bj&&this.visitorData&&(a.headers={"X-Goog-Visitor-Id":this.visitorData});0<this.aq&&(a.timeout=this.aq);var b=this.bq;0<this.fe&&(b=g.BE(b,{playerretry:this.fe}));this.jw?rN(cF,b,a).then(rE(this.xz),rE(this.AN),this):(a.context=this,a.Mb=this.xz,a.onError=this.lq,g.KE(b,a));g.tP("vir");g.tP("vir",void 0,"video_to_ad");this.iw=(0,g.sG)()};
g.h.ac=function(a,b){if(30==this.oh){var c=this.Jj["default.jpg"];return c?c:this.videoId?g.Dg("//docs.google.com/vt",{id:this.videoId,authuser:this.Fc,authkey:this.Lu}):"//docs.google.com/images/doclist/cleardot.gif"}b||(b="hqdefault.jpg");return(c=this.Jj[b])||a.J||"pop1.jpg"==b||"pop2.jpg"==b||"sddefault.jpg"==b||"hq720.jpg"==b||"maxresdefault.jpg"==b?c:SO(a,this.videoId,b)};
g.h.xz=function(a){if(!this.na()){var b=a.responseText;if(b){this.fh=!1;var c=g.zE(b);this.jx&&$P(c);"fail"==c.status?this.Y("onStatusFail",c):(g.tP("virc"),g.tP("virc",void 0,"video_to_ad"),(0,g.H)(g.Qpa,function(a){a in this.Xb&&(c[a]=this.Xb[a])},this),this.setData(c),KQ(this)?zQ(this):this.Y("dataloaderror",new g.QP("manifest.net.retryexhausted",!0,{successButUnplayable:"1"})))}else this.lq(a)}};
g.h.AN=function(a){this.lq(a.g)};
g.h.lq=function(a){if(!this.na()){var b=a?a.status:-1;a=this.fe>=this.ks||400==b;var c=200<b?"manifest.net.badstatus":"manifest.net.connect",d=(((0,g.sG)()-this.iw)/1E3).toFixed(3),b={backend:"gvi",rc:b,rt:d};a&&this.ks?(c="manifest.net.retryexhausted",b.urllen=this.bq.length):a||(this.fe++,this.CA.start());this.Y("dataloaderror",new g.QP(c,a,b))}};
g.h.getPlayerResponse=function(){return this.Nb};
g.h.getPlaylistId=function(){return null};
g.h.jc=function(){return this};
g.h.Km=function(a){return a.getVideoUrl(this.videoId)};
g.h.bh=function(){return!!this.va&&this.va.bh()};
g.h.tg=function(){return!!this.va&&this.va.tg()};
g.h.sk=function(){return!!this.va&&this.va.sk()};
g.h.Xh=function(){return!!this.va&&this.va.Xh()};
g.Qpa="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(" ");Ala="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(" ");
sQ=["annotations","captions","storyboard"];g.C(g.RQ,g.RF);g.h=g.RQ.prototype;g.h.hasNext=function(a){return this.loop||!!a||this.kc+1<this.eh};
g.h.Ff=function(a){return this.loop||!!a||0<=this.kc-1};
g.h.jc=function(a,b){var c=void 0!=a?a:this.kc,c=this.Ka&&c in this.Ka?this.Ka[this.Nd[c]]:null,d=null;c&&(b&&(c.autoplay="1"),d=new g.rQ(c),d.startSeconds=this.startSeconds||d.clipStart||0,this.listId&&(d.playlistId=this.listId.toString()));return d};
g.h.setShuffle=function(a){this.WA=a;a=this.Nd&&null!=this.Nd[this.kc]?this.Nd[this.kc]:this.kc;this.Nd=[];for(var b=0;b<this.Ka.length;b++)this.Nd.push(b);this.kc=a;this.gn++;if(this.WA){a=this.Nd[this.kc];for(b=1;b<this.Nd.length;b++){var c=Math.floor(Math.random()*(b+1)),d=this.Nd[b];this.Nd[b]=this.Nd[c];this.Nd[c]=d}for(b=0;b<this.Nd.length;b++)this.Nd[b]==a&&(this.kc=b);this.gn++}this.Y("shuffle")};
g.h.ac=function(a,b){b=b||"hqdefault.jpg";var c=this.Jj[b];if(c||a.J||"sddefault.jpg"==b||"hq720.jpg"==b||"maxresdefault.jpg"==b)return c;if(this.eB.length)return SO(a,this.eB[0],b)};
g.h.Wd=function(){return this.kc};
g.h.getLength=function(){return this.eh};
g.h.ek=function(a){if(a&&(a=a.videoId,!this.Ka[this.kc]||this.Ka[this.kc].video_id!=a))for(var b=0;b<this.Ka.length;b++)if(this.Ka[b].video_id==a){this.kc=b;break}};
g.h.onReady=function(a){this.Yk=a;this.Tc&&g.xE(this.Yk,0)};
g.h.getPlaylistId=function(){return this.listId?this.listId.toString():null};
g.h.Km=function(a){return a.getVideoUrl(this.jc().videoId,this.getPlaylistId())};
g.h.V=function(){this.Yk=null;g.Se(this.Ka);g.RQ.aa.V.call(this)};g.C(g.YQ,g.M);g.h=g.YQ.prototype;g.h.Ia=function(a,b){g.t(b)?ve(a,this.element,b):a.appendChild(this.element)};
g.h.detach=function(){g.we(this.element)};
g.h.update=function(a){for(var b in a)this.Ca(b,a[b])};
g.h.Ca=function(a,b){var c=this.Ja["{{"+a+"}}"];c&&$Q(this,c[0],c[1],b)};
g.h.V=function(){this.xa={};this.Ja={};this.detach();g.YQ.aa.V.call(this)};
g.YQ.o=1;g.YQ.g=function(){return"ytp-svg-"+g.YQ.o++};g.C(g.W,g.YQ);g.h=g.W.prototype;g.h.dc=function(a,b){this.Ca(b||"content",a)};
g.h.show=function(){this.g||(g.aR(this.element,""),this.g=!0)};
g.h.hide=function(){this.g&&(g.aR(this.element,"none"),this.g=!1)};
g.h.Jb=function(a){a?this.show():this.hide()};
g.h.X=function(a,b,c){return this.T(this.element,a,b,c)};
g.h.T=function(a,b,c,d){c=(0,g.A)(c,d||this);d={target:a,type:b,listener:c};this.ca.push(d);a.addEventListener(b,c);return d};
g.h.za=function(a){for(var b=0;b<this.ca.length;b++)if(this.ca[b]==a){a=this.ca.splice(b,1)[0];a.target.removeEventListener(a.type,a.listener);break}};
g.h.focus=function(){g.Je(this.element);this.element.focus()};
g.h.V=function(){for(;this.ca.length;){var a=this.ca.pop();a.target.removeEventListener(a.type,a.listener)}g.W.aa.V.call(this)};eR.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)};
eR.prototype.fb=function(){var a=[];this.forEach((0,g.A)(a.push,a));return a};
eR.prototype.clear=function(){for(var a=this.g.length,b=0;b<a;b++)this.g[b]=0;this.o=this.g.length-1};iR.prototype.reset=function(){this.K=kR(this);this.F=window.NaN;this.J=0;this.g=new hR(0,0,null);this.B=8;this.C=[];this.A=this.D=window.NaN;this.o=this.G=0};
iR.prototype.process=function(a){if(this.C.length){if(nR(this)&&this.C.length+a.byteLength<this.B)return oR(this,a,0);var b=this.C.length,c=new window.Uint8Array(b+a.byteLength);c.set(this.C,0);c.set(new window.Uint8Array(a.buffer,a.byteOffset,a.byteLength),b);this.C=[];a=new window.DataView(c.buffer)}for(b=0;b<a.byteLength;){var c=a.byteLength-b,d=window.NaN;if(nR(this)){if(c<this.B)return oR(this,a,b);switch(this.g.type){case 0:case 1836019574:case 1836019558:d=lR(this,a,b);break;case 1953653094:c=
a;d=b;this.G||(this.G=tL(pR(this,c,d),this.o));d=lR(this,c,d);break;case 1836476516:this.o=Jpa(pR(this,a,b));mR(this);d=this.g.size-8;break;case 1952867444:c=a;d=b;(0,window.isNaN)(this.A)||((0,window.isNaN)(this.F)&&(this.F=this.A),this.M&&AL(pR(this,c,d),this.A),this.A+=this.G,this.J+=this.G);d=this.g.size-8;break;case 1936286840:c=pR(this,a,b),d=DL(c),this.o=CL(c),mR(this),this.G=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}}}return a};g.p(qR,g.RF);var Ula=0;g.h=CR.prototype;g.h.KQ=function(a){this.status=a.status;a.ok?(this.C=a.body.getReader(),this.D?(this.G=a.headers,this.P(),this.B=new window.Uint8Array(DR(this)),GR(this)):this.C.cancel("Cancelling")):this.tn()};
g.h.LM=function(a){if(this.D)if((0,g.G)(),a.done)this.C=null,this.tn();else{a=a.value;this.D({timeStamp:(0,g.G)(),loaded:this.A});this.A+=a.length;var b=a.length>=Math.max(DR(this)/2,16384),c=a.length+this.g>DR(this);this.K?((b||c)&&0!==this.g&&ER(this),b?this.o.push(a):FR(this,a)):(FR(this,a),16384<=this.A&&ER(this));GR(this)}};
g.h.tn=function(){this.D&&(this.F=!0,this.M())};
g.h.UO=function(){this.J=!0;this.tn()};
g.h.jh=function(a){return this.G.get(a)};
g.h.Dw=function(){return!!this.G};
g.h.Pp=function(){return this.A};
g.h.Tp=function(){return+this.jh("content-length")};
g.h.Bw=function(){return 200<=this.status&&300>this.status&&!!this.A};
g.h.Vq=function(){return!!this.o.length||this.F&&0<this.g};
g.h.UA=function(){this.o.length||ER(this);return this.o.shift()};
g.h.ay=function(){this.o.length||ER(this);return this.o[0]};
g.h.abort=function(){this.C&&this.C.cancel("Cancelling");this.M=this.D=null};
g.h.bB=function(){return!0};
g.h.nA=function(){return this.J};g.h=HR.prototype;g.h.WJ=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.YJ=function(){2==this.g.readyState&&this.C()};
g.h.XJ=function(a){this.o||(this.status=this.g.status,this.D(a))};
g.h.Dw=function(){return 2<=this.g.readyState};
g.h.jh=function(a){try{return this.g.getResponseHeader(a)}catch(b){return g.qE(b),""}};
g.h.Tp=function(){return+this.jh("content-length")};
g.h.Pp=function(){return this.response.byteLength};
g.h.Bw=function(){return 200<=this.status&&300>this.status&&!!this.response&&!!this.response.byteLength};
g.h.Vq=function(){return this.A&&!!this.response&&!!this.response.byteLength};
g.h.UA=function(){var a=this.response;this.response=null;return new window.Uint8Array(a)};
g.h.ay=function(){return new window.Uint8Array(this.response)};
g.h.abort=function(){this.o=!0;this.g.abort()};
g.h.bB=function(){return!1};
g.h.nA=function(){return!1};g.h=IR.prototype;g.h.Lb=function(){return this.D};
g.h.start=function(a){var b=1==this.state,c=KR(this);1==this.state||5==this.state||c&&OR(this);PR(this,2);if("fallback"==c||"fastfallback"==c)c=this.info.o,this.G<=c.B||(c.A++,c.B=$3-1),this.fe=0;else if("retry"==c){this.fe++;b=1E4*(.5+Math.random());1==this.fe&&(b=2E3);g.xE((0,g.A)(this.tr,this,a),b);return}c=0;this.A.A&&1<this.info.o.g&&(c=1E3*Math.pow(1.6,this.info.o.g-1));b&&!c?this.tr(a):g.xE((0,g.A)(this.tr,this,a),c)};
g.h.tr=function(a){if(!this.na()){this.G=$3++;if(this.o){var b=this.info,c=this.o.o;this.J=b.range?new cM(b.range.start+c,b.range.end):eM(c,this.o.length);this.B=g.$M(this.info,this.A,this.P,this.J)}else this.J=this.info.range,this.B=g.$M(this.info,this.A,this.P);this.B.set("rn",this.G.toString());this.fe&&this.B.set("playerretry",this.fe.toString());0<=a&&this.B.set("rbuf",(1E3*a).toFixed().toString());a=g.WM(this.B);try{var d=(0,g.A)(this.lQ,this),e=(0,g.A)(this.oQ,this),f=(0,g.A)(this.nQ,this),
k=(0,g.A)(this.mQ,this);this.g=this.A.ua&&"function"==typeof window.fetch&&window.ReadableStream&&QR(this)?new CR(a,e,f,d,k):new HR(a,e,f,d,k)}catch(l){this.D="net.ssl",PR(this,7)}0<this.A.P&&(this.F=g.xE((0,g.A)(this.rA,this),this.A.P))}};
g.h.oQ=function(){this.O=0;var a=NR(this);(0,g.sG)();a.o+=1;a=this.timing;a.o=(0,g.G)();a.D=a.o;a.A=0;a.W=!1;a.O=!1;a.B=0;a.F=bL(a.g);BR(a);a.J=(a.K-a.o)/1E3};
g.h.nQ=function(a){if(!this.na()){this.C=this.g.status;VR(this,!1);var b=this.timing,c=a.timeStamp;a=a.loaded;c=c>b.o&&4E12>c?c:(0,g.G)();50>c-b.D&&(AR(b)||!b.g.policy.J)||zR(b,c,a);b=this.timing;b.A>b.da&&b.A>b.g.policy.g&&4>this.state?PR(this,4):SR(this)&&UR(this)&&PR(this,Math.max(3,this.state))}};
g.h.mQ=function(){if(!this.na()&&!this.M&&this.g.Dw()&&this.g.jh("X-Walltime-Ms")){var a=(0,window.parseInt)(this.g.jh("X-Walltime-Ms"),10);this.M=((0,g.G)()-a)/1E3}};
g.h.lQ=function(){var a=this.g;if(!this.na()){this.F&&(g.vE(this.F),this.F=window.NaN);this.C=a.status;var b=!1;if(400<=a.status)b=!0,this.D="net.badstatus";else if(a.Bw()){var c="";TR(this)&&(c=a.ay(),2048<c.length?c="":(c=String.fromCharCode.apply(String,c),c=RM.test(c)?c:""));if(c){FM(NR(this));var a=this.info,d=this.B,e=a.o;d.g===e.D&&(e.D=XM(d,c));d.g===e.o&&(e.o=XM(d,c));a.requestId=d.get("req_id");PR(this,5)}else if(c=a.Pp(),(d=!!this.J&&this.J.length)&&d!=c||a.nA())b=!0,this.D="net.closed";
else{VR(this,!0);e=QR(this)?this.g.jh("X-Bandwidth-Est"):0;a=this.timing;d=(0,g.G)();e=e?(0,window.parseInt)(e,10):0;if(!a.W){a.W=!0;d=d>a.o&&4E12>d?d:(0,g.G)();zR(a,d,c);a.G&&e?UK(a.g,a.A/e,a.A):(e=(d-a.o)/1E3,(e<=a.g.policy.A||!a.g.policy.A)&&!a.O&&AR(a)&&UK(a.g,e,c),AR(a)&&WK(a.g,c,a.B));var c=a.g,d=(d-a.o)/1E3,e=a.J,f=a.ca;c.C.g(d,a.A/d);c.F=(0,g.sG)();f||c.o.g(1,d-e);a.C&&(a.C=!1)}FM(NR(this));this.info.o.g=0;PR(this,6)}}else b=!0,this.D="net.connect";b&&(OR(this),(0,g.G)(),"net.connect"==this.D?
(b=NR(this),b.lf+=1):(b=NR(this),b.g+=1),this.info.o.g+=1,PR(this,7))}};
g.h.rA=function(){this.F=window.NaN;if(!(this.na()||this.A.wc&&this.g&&AR(this.timing)&&"quic"==this.g.jh("client-protocol"))){var a=(0,g.G)(),b=!1;if(AR(this.timing)){var c=this.timing.K;BR(this.timing);this.timing.K-c>=.8*this.A.P?(this.O++,b=this.O>=this.A.Ta):this.O=0}else b=this.timing,b=a-(b.o+1E3*b.F.delay),c=1E3*this.A.je,this.A.A&&2>NR(this).lf&&(c=2E3),b=b>c;if(b){b=this.timing;a=a>b.o&&4E12>a?a:(0,g.G)();c=(a-b.o)/1E3;if(!b.G)if(AR(b))b.B+=(a-b.D)/1E3,WK(b.g,b.P,b.B);else{var d=b.g;d.D.g(1,
c);VK(d);b.M=a}var d=b.g,e=b.J,f=b.ca;d.C.g(c,b.A/c);d.F=(0,g.sG)();f||d.o.g(1,c-e);YK(b.g,(a-b.D)/1E3,0);b=NR(this);b.lf+=1;this.info.o.g+=1;RR(this);this.D="net.timeout";PR(this,7)}else this.F=g.xE((0,g.A)(this.rA,this),this.A.P)}};
g.h.na=function(){return-1==this.state};
g.h.dispose=function(){gM(this.info.g[0])&&6!=this.state&&(this.info.g[0].g.o=!1);PR(this,-1);this.K=null;RR(this);g.vE(this.F);this.F=window.NaN};
IR.DEBUG=!1;WR.prototype.start=function(){this.o=!0};
WR.prototype.reset=function(){this.g=this.o=!1};XR.prototype.da=function(a){switch(a.info.type){case 1:case 2:this.ca(a);break;case 4:var b=a.info.g.wA(a);a=a.info;var c=this.g;c&&c.g==a.g&&c.type==a.type&&(a.range&&c.range?c.range.start==a.range.start&&c.range.end==a.range.end:c.range==a.range)&&c.Ga==a.Ga&&c.o==a.o&&c.ub==a.ub&&(this.g=g.Ya(b).info);(0,g.H)(b,this.da,this);break;case 3:Nla(this.o,a)}};
XR.prototype.ca=function(a){if(1==a.info.type){var b=zM(a);if(JI(a.info.g.info)&&!KI(a.info.g.info)){var c=new kM(b);mM(c);vM(c,408125543);c=oM(c);vM(c,374648427);c=oM(c);vM(c,174);c=oM(c);vM(c,224);c=oM(c);if(vM(c,21936)){var d=c.A+c.g,c=pM(c,!0);b.setUint8(d-2,236);b.setUint8(d-1,128|c+1)}}a.info.g.info.video&&(d=a.info.g,d.Gj&&d.info&&d.info.video&&4==d.info.video.projectionType&&(LI(d.info)?d.F=Rja(b):2==d.info.A&&(d.F=bka(b))));if(2==a.info.g.info.A&&a.info.g.info.video){var e=new kM(b);mM(e);
if(nM(e,[408125543,374648427,174,224])&&(e=oM(e),vM(e,30320))){var d=e.A+e.g,c=pM(e,!0),f=e.A+e.g-d+1;f||(f=Math.ceil(Math.log(c+2)/Math.log(2)/7));for(var k=1<<8-f,e=[];e.length<f-1;)e.unshift(c%256),c=Math.floor(c/256);e.unshift(c|k);b.setUint8(d-2,236);for(c=0;c<e.length;c++)b.setUint8(d-1+c,e[c])}}}a.info.g.nq(a)};
XR.prototype.fa=function(a){this.B=a=a.info;this.M&&this.B.A&&(this.M=!1);a.g.info.g>=this.O&&(this.O=a.g.info.g)};
XR.prototype.getDuration=function(){return this.Ua.index.Fm()};LS.prototype.send=function(){g.KE(this.o,{format:"RAW",responseType:"arraybuffer",timeout:1E4,zd:this.A,dd:this.A,context:this});this.g=(0,g.sG)()};
LS.prototype.A=function(a){var b={rc:a.status,lb:a.response?a.response.byteLength:0,rt:(((0,g.sG)()-this.g)/1E3).toFixed(3),shost:g.ug(this.o),trigger:this.D};204==a.status||a.response?this.B&&this.B(RP(b)):this.C(new g.QP("pathprobe.net",!1,b))};g.C(PS,g.M);PS.prototype.F=function(a){for(var b=arguments.length-1;0<=b;b--){var c=arguments[b];if(c){var d=this.o.indexOf(c);0<=d&&this.o.splice(d,1);var e=this.g,d=e.g,c=g.wb(d,c,e.o);0<=c&&g.jb(d,c)}}this.A()};
PS.prototype.reset=function(){this.C=this.J=!1;this.D.stop();this.g.g=[];this.o=[];this.A();this.G=null};
PS.prototype.A=function(){this.K=!0;if(!this.M){for(var a=3;this.K&&a;){this.K=!1;this.M=!0;if(this.C&&!this.J){this.D.stop();var b=this.O();g.V(b,32)&&this.P.start();for(var c=g.V(this.O(),2)?0x8000000000000:1E3*this.ca(),d=g.V(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(fma(this,f));if(d)b=MS(this.g,0x7ffffffffffff),b=b.concat(dma(this.g));else if(this.B<=c&&b.wb()&&!g.V(b,16)&&!g.V(b,32)){b=this.g;d=c;f=[];for(k=
NS(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=MS(this.g,c);e=e.concat(ema(this,b));this.B=c;!this.J&&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.Y("onEnter",d),this.W("crn_"+d.namespace,d)):(d.g&&d.g.Y("onExit",d),this.W("crx_"+d.namespace,d))}this.M=!1;a--}this.O().wb()&&(a=OS(this.g,this.B),null!=a&&0x7ffffffffffff>a&&(a=(a-this.B)/this.ba(),this.D.start(a)))}};
PS.prototype.V=function(){this.G=this.g=this.o=null;PS.aa.V.call(this)};g.p(SS,g.RF);g.h=SS.prototype;g.h.initialize=function(a,b,c,d){a=a||0;var e=this.F;d=d&&d.id;e.G="i";"auto"!=bJ()&&(e.G="s");CS(e,b);$la(e,d);e.O=e.B;ama(e);e.o=e.g;b=JS(e);this.B=new XR(this.o,b.audio);this.g=new XR(this.o,b.video);nT(this,this.B);nT(this,this.g);this.g.o.P=this.B.o;this.Y("videoformatchange",b);this.P=this.g.G;this.D=a;c?(this.G=!0,iT(this)):WS(this)};
g.h.resume=function(){if(this.G||this.da)this.da=this.G=!1};
g.h.fP=function(a){if(!this.na()&&3<=a.state){var b=a.info.g[0].g,c=!this.ga&&b.info.video,d=!this.W&&b.info.audio,e=Math.max(0,a.info.g[0].C-this.D);this.o.he&&5<=a.state&&this.Bk("rqs",RP(Vla(a)));if(5==a.state)c?VS(this,"vrr"):d&&VS(this,"arr"),a.start(e);else if(6==a.state||this.o.ua&&3<=a.state&&!(5<=a.state)){c?(this.ga=a.B?g.WM(a.B):"",EG(4)):d&&(this.W=a.B?g.WM(a.B):"");b=b.info.video?this.g:this.B;this.C.o&&(b.G=!1,a.M&&this.Oa.g(1,a.M));if(e=gM(a.info.g[0]))e=a.info,e=!!gM(e.g[e.g.length-
1]);e&&(0,g.H)(a.o.A,b.ca,b);this.Ie()}else if(4==a.state)this.Ie(),c&&EG(4);else if(7==a.state&&OR(a)){if(c=b.info.video&&(0<a.fe||this.o.A&&1<b.C.g||410==a.C||500==a.C||503==a.C)&&this.o.Bb&&!GS(this.F),d=LR(a),c&&(d.stun="1"),RS(this,!1,a.Lb(),d),!this.na()){if(c){var d=this.F,f=b.info;GS(d);d.ga=f;d.W=(0,g.sG)();d.P=-1;CS(d,d.D)}if(MR(a)||c){b=b.info.video?this.g:this.B;for(e=0;e<b.A.length&&a!==b.A[e];e++);if(e==b.A.length)kS(b,a);else{for(;e<b.A.length;)kS(b,b.A.pop());3==a.info.g[0].type?(a.o&&
a.o.B?(a=a.o.B,a=new fM(a.type,a.g,a.range,a.Ga,a.startTime+a.duration,0,a.o+a.ub,0,!1)):(a=a.info.g[0],a=new fM(a.type,a.g,a.range,a.Ga,a.startTime,0,a.o,0,!1)),b.g=a):b.g=null}this.Ie()}else a.start(e),this.o.zh&&!OR(a)&&(a="https://www.youtube.com/generate_204?cpn="+(b.C.C.get("cpn")||"")+"&rn="+$3++,oT(this,a,"error"))}}else gM(a.info.g[0])?(b.B=!0,this.Ie()):RS(this,!0,"net.retryexhausted",LR(a))}};
g.h.Ie=function(){this.sa=window.NaN;$S(this);if(this.A&&SL(this.A)&&!VL(this.A))if(this.C.isLive)(0,window.isNaN)(this.J)?(this.J=this.D+3600,TL(this.A,this.J)):this.J<=this.D+1800&&(this.J=Math.max(this.J+1800,this.D+3600),TL(this.A,this.J));else{var a=Math.max(this.B.getDuration(),this.g.getDuration());(!(0,window.isFinite)(this.J)||this.J!=a)&&0<a&&(TL(this.A,a),this.J=a)}if(!this.na())if(BN(this.C)&&3==this.C.F)RS(this,!0,"manifest.net.retryexhausted",{rc:this.C.M.toString()});else if(this.o.Dd&&
this.C.isLive&&(vS(this.g)||vS(this.B)))this.Y("seekplayerrequired",window.Infinity);else if("prerender"==window.document.webkitVisibilityState)iT(this);else if($S(this),$R(this.g,this.D),!this.na()&&($R(this.B,this.D),!this.na())){if(this.C.o){wS(this.g);wS(this.B);var b=-1!=this.g.F,a=-1!=this.B.F;if(!b||!a)if(b=!b&&rR(this.g.o),a=!a&&rR(this.B.o),b||a){var a=b?this.g:this.B,b=b?this.B:this.g,c=rR(a.o).info.Ga;if(-1!=b.F&&b.F!=c){var d=b.F;nS(a,0);iS(a,window.Infinity);a.g.Ga=d-1;RS(this,!1,"qoe.avsync",
{start:"1",target:b.F,actual:c})}else a.F=c}(a=rR(this.g.o))&&a.o&&(this.oa=rR(this.g.o).o.A)}this.B.Ua.o&&this.g.Ua.o||(!this.G||cL(this.M)?WS(this):iT(this));if(this.A&&!aT(this,this.B,this.A.g)&&!aT(this,this.g,this.A.o)&&!hma(this)&&((a=lT(this,this.g,this.A.o,null,this.B.D))&&!this.ka&&(this.ka=(0,g.G)(),VS(this,"vda"),g.tP("vda",void 0,"video_to_ad"),this.ha&&EG(4)),!UL(this.A))){b=GJ(this.A.o.buffered,this.D+eT);if(!(0,window.isNaN)(b)||hS(this.g)||!this.A.g.buffered.length){if(hS(this.g)||
this.o.qf)b=window.NaN;b=lT(this,this.B,this.A.g,b,null);a=a||b;b&&!this.ha&&(this.ha=(0,g.G)(),VS(this,"ada"),g.tP("ada",void 0,"video_to_ad"),this.ka&&EG(4))}hS(this.g)&&hS(this.B)&&SL(this.A)&&!VL(this.A)&&(b=this.A,SL(b)&&b.A.endOfStream(),b=this.M,aJ(bL(b)),b.B=(0,g.sG)());a&&!XL(this.A)&&hT(this)}US(this);this.g.Ua.B||this.B.Ua.B?RS(this,!0,"net.retryexhausted",{metadata:"1",video:this.g.Ua.B?"1":"0",audio:this.B.Ua.B?"1":"0"}):(cT(this,this.g,this.B)&&gT(this,this.g,this.B),cT(this,this.B,
this.g)&&gT(this,this.B,this.g),this.o.sf&&this.ca&&!this.G&&cL(this.M)&&(oT(this,this.ca,"cms"),this.ca="",this.o.Gg&&(a=MM(QM(this.B.Ua.C.C,0)),oT(this,a,"redir"),oT(this,a.replace("redirector.googlevideo.com","www.youtube.com"),"www-redir"))),this.C.A&&iT(this))}};
g.h.yn=function(a){a=(a=a?this.B:this.g)&&a.B;RS(this,!0,"fmt.unplayable",a?iM(a):void 0)};
g.h.bO=function(a){RS(this,!0,"fmt.unparseable",a)};
g.h.fO=function(a){RS(this,!1,"qoe.avsync",a)};
g.h.cO=function(a){this.C.o&&mT(this,a)};
g.h.dO=function(a){if(this.C.o){var b=this.C,c;for(c in b.g){var d=b.g[c].index,e=eN(d,a.Ga);0<=e&&d.segments.splice(e,1)}}};
g.h.eO=function(a){this.C.o&&mT(this,a)};
g.h.aO=function(a,b){if(this.g.Ua.index.Ic()<=b){var c=this.C;c.G.push(a);c.Y("cuepointsadded")}};
g.h.seek=function(a){if(!this.na()&&!this.g.G&&!this.B.G){$S(this);this.Na=(0,g.sG)();US(this,a);var b=pT(this,this.g,a,this.A&&this.A.o),c=pT(this,this.B,b,this.A&&this.A.g);this.D=Math.max(a,b,c);this.O=!0;this.C.o&&this.o.sa&&!fN(this.g.Ua.index,this.g.g.Ga)&&(this.P=!0);hT(this)}};
g.h.V=function(){ZS(this);this.B&&(lS(this.B),lS(this.g));g.uE(this.ua);g.vE(this.fa);g.RF.prototype.V.call(this)};
g.h.UJ=function(){return this.Oa.o()||0};
g.h.Bk=function(a,b,c){this.Y("ctmp",a,b,void 0===c?!1:c)};
var eT=2/24;g.p(uT,g.M);g.h=uT.prototype;g.h.IK=function(a){this.F.call(this.A,new window.Uint8Array(a.message))};
g.h.JK=function(){this.K.call(this.A,nma(this))};
g.h.jz=function(a,b){g.qE(b);var c=a;b instanceof window.DOMException&&(c+=";n."+b.name+";m."+b.message);this.D.call(this.A,c)};
g.h.Iz=function(a){this.F.call(this.A,a.message)};
g.h.Hz=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.Gz=function(){this.J.call(this.A)};
g.h.update=function(a){if(this.g)return this.g.update(a).then(null,rE((0,g.A)(this.jz,this,"t.u")));this.o?this.o.update(a):this.C.addKey?this.C.addKey(this.M.o,a,this.G,this.sessionId):this.C.webkitAddKey(this.M.o,a,this.G,this.sessionId);return QN()};
g.h.V=function(){this.g&&this.g.close();this.C=null;g.M.prototype.V.call(this)};g.p(wT,g.M);wT.prototype.K=function(a){var b=yT(this,a);b&&b.Iz(a)};
wT.prototype.J=function(a){var b=yT(this,a);b&&b.Hz(a)};
wT.prototype.G=function(a){(a=yT(this,a))&&a.Gz()};
wT.prototype.V=function(){this.o=null;g.M.prototype.V.call(this)};g.p(AT,g.M);g.h=AT.prototype;g.h.gy=function(a){this.M=a};
g.h.bK=function(a){if(!this.na()){this.J||(g.tP("drm_gk_f"),this.J=!0,this.g.Y("newsession",this));if(IN(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(rc(a.childNodes[0].data))}if(JN(this.B))for(b=g.pc(a),a=new window.Uint8Array(new window.ArrayBuffer(b.length)),c=0;c<b.length;c++)a[c]=b.charCodeAt(c);a=new kma(a,++this.O);this.HA(a)}};
g.h.ZJ=function(){this.na()||this.C||(this.g.Y("sessionready"),this.C=!0)};
g.h.cK=function(a){this.na()||this.g.Y("keystatuseschange",sma(a,this.F))};
g.h.HA=function(a){g.tP("drm_net_s");a={format:"RAW",method:"POST",postBody:a.message,responseType:"arraybuffer",withCredentials:!0,timeout:3E4,Mb:(0,g.A)(this.NN,this,a),onError:(0,g.A)(this.yz,this,a)};var b=this.G;this.M&&(b=Ig(b,"access_token",this.M));g.KE(b,a)};
g.h.NN=function(a,b){if(!this.na())if(0!=b.status&&b.response){g.tP("drm_net_r");var c=new window.Uint8Array(b.response);if(c=mma(c))if(0!=c.g)BT(this,"drm.auth",!0,"t.f;c."+c.g,g.AJ(c.g));else{g.tP("drm_kr_s");var d=null,e=c.headers["Heartbeat-Url"];e&&(d=new jma(e,(0,window.parseInt)(c.headers["Heartbeat-Interval-Secs"],10)||60,(0,window.parseInt)(c.headers["Heartbeat-Num-Retries"],10)||4));d&&this.g.Y("newlicense",d);(d=c.headers["Authorized-Format-Types"])&&!vT(this.A)&&this.g.Y("keystatuseschange",
CT(d?d.split(","):[]));c.headers["Key-Ids"]&&(this.F=tma(c.headers["Key-Ids"]));JN(this.B)&&(c.message=new window.Uint8Array(rc(String.fromCharCode.apply(null,c.message))));this.A.update(c.message).then(function(){g.tP("drm_kr_f")});
this.C&&(this.K=(0,g.sG)())}else BT(this,"drm.net",!0,"t.p","YTP_ERROR_SERVER_ERROR")}else this.yz(a,b)};
g.h.aK=function(a){this.na()||BT(this,"drm.keyerror",!0,"t.s"+a)};
g.h.yz=function(a,b){var c=!1;if(3<=a.g.o||this.P&&36E4<(0,g.sG)()-this.K){var d="drm.net.retryexhausted";c=!0}else d=b.status?"drm.net.badstatus":"drm.net.connect";BT(this,d,c,"t.r;c."+b.status);if(this.P&&this.C?0:!c&&this.O==a.number)d=a.g.getValue(),d=new g.qt((0,g.A)(this.HA,this,a),d),g.N(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.V=function(){this.g=null;g.M.prototype.V.call(this)};DT.prototype.get=function(a){a=this.ek(a);return-1!=a?this.values[a]:null};
DT.prototype.remove=function(a){a=this.ek(a);-1!=a&&(this.keys.splice(a,1),this.values.splice(a,1))};
DT.prototype.set=function(a,b){var c=this.ek(a);-1!=c?this.values[c]=b:(this.keys.push(a),this.values.push(b))};
DT.prototype.ek=function(a){return g.ab(this.keys,function(b){return g.Ab(a,b)})};g.p(FT,g.RF);g.h=FT.prototype;g.h.pN=function(a){a=new tT(new window.Uint8Array(a.initData),a.initDataType);HT(this,a,!0)};
g.h.rO=function(a){HT(this,new tT(a.initData,a.contentType),!0)};
g.h.YN=function(){this.na()||(this.G=!0,GT(this))};
g.h.vM=function(a){if(!this.na()){g.qE(a);var b="t.a";a instanceof window.DOMException&&(b+=";n."+a.name+";m."+a.message);this.Y("licenseerror","drm.unavailable",!0,b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}};
g.h.uO=function(a){this.na()||!a||this.ca||(this.ca=a,this.Y("heartbeatparams",a))};
g.h.vO=function(){this.na()||(this.o.shift(),GT(this))};
g.h.rP=function(){if(IN(this.g)&&(this.da--,0==this.da)){var a=this.C;a.o.msSetMediaKeys(a.A)}};
g.h.dK=function(a){this.na()||$I(this.F,a)||(this.F=VI("auto",a,!1),this.Y("qualitychange"))};
g.h.V=function(){this.g.A&&this.J.setMediaKeys(null);this.J=null;this.o=[];for(var a=g.ka(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.RF.prototype.V.call(this)};IT.prototype.C=function(){var a=g.x("yt.abuse.botguardInitialized");return a&&a()?(a=g.x("yt.abuse.invokeBotguard")())?"r1a="+a:null:null};
IT.prototype.D=function(a){return"r3a="+Math.floor(this.g.lengthSeconds%Va(a.c3a))};
IT.prototype.B=function(a){a=Va(a.c);var b=g.x("yt.abuse.dclkstatus.checkDclkStatus")();return"r6a="+(a^b)};g.C(LT,g.M);g.h=LT.prototype;g.h.start=function(){this.o.start()};
g.h.stop=function(){this.o.stop()};
g.h.Gb=function(a,b,c){this.A[a]=b;this.g[a]=new NT(!!c)};
g.h.clear=function(){for(var a in this.g)this.g[a].clear()};
g.h.YQ=function(){for(var a in this.A)this.g[a].update(this.A[a]());this.o.start()};
NT.prototype.update=function(a){this.A?(fR(this.g,a-this.o||0),this.o=a):fR(this.g,a)};
NT.prototype.clear=function(){this.g.clear();this.o=0};g.C(QT,g.RF);QT.o=2;QT.B=5;QT.C=5;QT.g="endcr";QT.A=96;g.h=QT.prototype;g.h.V=function(){g.vE(this.da);g.uE(this.qb);g.vE(this.tb);var a=PT();a&&window.document.removeEventListener(a,this.he,!1);UT(this);VT(this);ST(this);qU(this);g.Se(this.ha,this.g);this.W=null;this.Ra=!1};
g.h.ev=function(){if(this.g.Pb())g.V(this.A,128)||(this.g.Pb(),this.zb=this.ga.g=!0,4!=this.Ed&&(this.fa=g.ob(this.g.de)),g.CQ(this.g,this.Z).then(this.Tv,this.Tv,this));else{var a=this.g;if(a.Ba&&a.adaptiveFormats&&!a.Cw&&(g.MQ(a)||this.Z.experiments.g("html5_manifestless_always"))){var a=this.g,b=this.Z.experiments;if(!xQ(a)){a.Cw=!0;var c=uN(BQ(a,a.adaptiveFormats),a.Zc,a.lengthSeconds,!0,a.Gj,b);!b.g("html5_manifestless_vp9")&&Bla(c)||a.qq?c.dispose():(a.Yj=!1,AQ(a,c),c.subscribe("cuepointsadded",
a.cv,a),tN(a.va)&&(a.fj=!0));zQ(a)}}else if(this.g.Yj)a=this.g,b=this.Z.experiments,a.fh=!0,a.Yj=!1,RM.test(a.ue)||g.qE(Error("DASH MPD Origin invalid: "+a.ue),"WARNING"),c=a.ue,c=g.Dg(c,{mpd_version:b.o("dash_manifest_version")||4}),!a.isLowLatencyLiveStream&&b.g("html5_live_disable_dg_pacing")&&(c=g.Dg(c,{pacing:0})),AN(new sN(c,b,a.Ba),c).then(a.gN,a.fN,a),g.tP("mrs");else if(this.g.fj)this.C&&(a=this.C.o,wK(a,"protected"),a.g.videoData.If?a.ka():a.g.videoData.subscribe("dataloaded",a.ka,a)),a=
this.g,b=this.Z.O,c=this.Z.experiments,tN(a.va),b=new YP(XN(b,a.va),c),g.N(a,b),a.fj=!1,a.fh=!0,a=(0,g.A)(a.xI,a),b.A=a,MN(b.C)?b.D():mla(b);else if(!this.g.fh&&this.zb){a:{var b=this.Z,a=this.g,d=this.xb.Ya(),e=this.je(),f=this.Z.ga;switch(a.oh){case 38:b=a.videoId.indexOf(":");a=g.Dg("//play.google.com/books/volumes/"+a.videoId.slice(0,b)+"/content/media",{aid:a.videoId.slice(b+1),sig:a.YL});break a;case 30:c="https://docs.google.com/get_video_info";b.experiments.g("restore_nonsense_docs_behavior")&&
b.baseYtUrl!=NO.prototype.baseYtUrl&&(c=b.baseYtUrl+"get_video_info");a=g.Dg(c,{docid:a.videoId,authuser:a.Fc,authkey:a.Lu,eurl:b.oa});break a;case 33:a=g.Dg("//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.oa,ps:b.o,el:b.g,hl:b.Ja,list:a.playlistId,agcid:a.kF,aqi:a.jF,sts:17297,lact:g.vG()},g.za(c,b.B),b.Oe&&(c.ecver=b.Oe),b.forcedExperiments&&(c.forced_experiments=b.forcedExperiments),a.cg?(c.vvt=a.cg,
a.mdxEnvironment&&(c.mdx_environment=a.mdxEnvironment)):a.oauthToken&&(c.access_token=a.oauthToken),a.adFormat&&(c.adformat=a.adFormat),b.Fi&&(c.cc_lang_pref=b.Fi),b.Og&&2!=b.Og&&(c.cc_load_policy=b.Og),b.mute&&(c.mute=b.mute),a.Ng&&2!=b.Ng&&(c.iv_load_policy=a.Ng),a.Ym&&(c.itct=a.Ym),xK(b,a,f)&&(c.autoplay="1"),a.bn&&(c.autonav="1"),a.Sq&&(c.noiba="1"),a.isMdxPlayback&&(c.mdx="1",c.ytr=a.gf),a.mdxControlMode&&(c.mdx_control_mode=a.mdxControlMode),a.dm&&(c.ytrcc=a.dm),a.Wq&&(c.utpsa="1"),a.isFling&&
(c.is_fling="1"),a.vnd&&(c.vnd=a.vnd),a.Mp&&(c.force_ad_param_ad_type="video_ad",c.force_ad_param_url=a.Mp,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.Hf&&(c.splay="1"),a.ypcPreview&&(c.ypc_preview="1"),b.ua&&(c.content_v=b.ua),a.Ak&&(c.livemonitor=1),b.Fc&&(c.authuser=b.Fc),b.pageId&&(c.pageid=b.pageId),b.Yb&&(c.ei=b.Yb),b.Fg&&(c.ssl_stream="1"),b.A&&(c.iframe="1"),a.vh&&(c.tst=a.vh),a.contentCheckOk&&(c.cco="1"),a.racyCheckOk&&
(c.rco="1"),b.Fb&&a.liveStartWalltime&&(c.live_start_walltime=a.liveStartWalltime),b.Fb&&a.Zq&&(c.live_manifest_duration=a.Zq),b.Fb&&a.playerParams&&(c.player_params=a.playerParams),b.Fb&&a.cycToken&&(c.cyc=a.cycToken),b.Fb&&a.gB&&(c.tkn=a.gB),0!=e&&(c.vis=e),b.enableSafetyMode&&(c.enable_safety_mode="1"),b.widgetReferrer&&(c.widget_referrer=b.widgetReferrer.substring(0,128)),(d=b.K.embedding_app)&&(c.embedding_app=d),(d=b.K.developer_api_key)&&(c.developer_api_key=d),(d=g.yQ(a))&&(c.uloc=d),a.xk&&
(c.internalipoverride=a.xk),a.innertubez&&(c.innertubez=a.innertubez),a.gx&&(c.strpro="1"),b.Fb&&a.Mh&&(c.wpid=a.Mh),a=g.Dg(b.baseYtUrl+"get_video_info",c)}}b=2;this.Z.isAd()&&(b=0);c=this.g;d=this.Z.Na;e=this.Z.experiments;f=this.Z.Ac;c.na()||(c.bq=a,c.ks=b,c.Bj=!!d,c.jx=!!f,e&&(c.tA=!e.g("disable_gvi_cors"),c.aq=e.o("html5_get_video_info_timeout_ms")||0,c.jw=e.g("html5_get_video_info_promiseajax"),c.Gj=SE()&&!!e.g("enable_mesh_ps4")||!!e.g("enable_mesh_cobalt")||!!e.g("html5_enable_mesh_projection")),
c.fh=!0,c.DA())}}};
g.h.Tv=function(){if(wQ(this.g)){if(this.g.Ba){this.K=new Jla;this.M=new Lla(this.g);if(this.C){var a=gR(this.M);vK(this.C.o,a)}hU(this,GU(this,!1),!0)}this.g.jb.g&&g.DU(this);CU(this,"i");this.K&&(this.g.bf()?(a=(0,g.A)(this.B.UJ,this.B),this.K.A=a):this.g.va&&(a=(0,g.A)(this.g.va.VJ,this.g.va),this.K.A=a))}this.sa&&wU(this);WT(this,"dataloaded");this.O.o?eU(this):this.Z.experiments.g("html5_suspended_state")&&this.sa&&XT(this,ZJ(ZJ(this.A,512),1))};
g.h.logEvent=function(a,b){if(this.C){var c=this.C,d={};d.rt=g.sJ(c.g).toFixed(3);g.za(d,kK(c.g));var e=c.g.g,f=c.g.videoData,k={ns:e.Ta,html5:"1",el:e.g,ps:e.o,fexp:e.experiments.experimentIds.join(",")||void 0,feature:f.ds||e.qh||void 0,ctrl:f.Wf||void 0,ytr:f.gf||void 0,list:f.playlistId,d:e.ie,f:e.Dc};if(e.experiments.g("legacy_autoplay_flag")?e.da:f.ph)k.autoplay="1";f.subscribed&&(k.subscribed=f.subscribed);g.za(d,k);delete d.fexp;g.za(d,a);d=g.HE(c.g.g.baseYtUrl+"player_204",d);IK(c,d,b)}};
g.h.isPeggedToLive=function(){return this.Fa};
g.h.rS=function(){return this.A};
g.h.getPlayerType=function(){return this.Ed};
g.h.lt=function(){var a=this.g,b=a.rd;if(!b)return a.km;var c=g.$a(this.g.jb?this.g.jb.audioTracks:[],function(a){return a.id==b.id});
return c?c:a.km};
g.h.dQ=function(){this.Z.experiments.o("html5_background_quality_cap")&&this.B&&CU(this,"v");this.Z.Lp&&!this.g.backgroundable&&this.o&&(OT()&&this.o.o?(this.ne("bgmobile","suspend"),pU(this,!0)):wU(this)&&this.ne("bgmobile","resume"))};
g.h.ZN=function(a){this.Dd?this.wc=!0:(a.B&&TL(a,this.g.lengthSeconds),g.XS(this.B,a))};
g.h.HN=function(a){if(this.F){var b=this.F;if(IN(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){var k=a.subarray(e,e+f),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&&HT(b,new tT(a),!1)}}};
g.h.RN=function(a){mU(this,a.reason,a.video.info,a.audio.info);var b=HQ(this.g);b&&b.J(a.video);this.K&&(this.K.o=a.audio.index)};
g.h.QN=function(a){lU(this,a.reason,a.audio.info)};
g.h.Oj=function(a){if("html5.invalidstate"==a.errorCode&&this.o){var b=this.o.Lb();a.details.merr=b?b.toString():"0"}b=/^pp/.test(this.g.clientPlaybackNonce);Dma(a)?g.V(this.A,4)?(this.Cd=!0,VT(this)):tU(this):EU(a)&&this.g.jb.o?(this.ne("highrepfallback","1",!0),Ela(this.g),zU(this),xU(this)):a.g?(b=this.B?this.B.F.D:null,b=EU(a)&&b&&b.isLocked()?"YTP_ERROR_FORMAT_UNAVALIABLE":void 0,g.$T(this,a.errorCode,b,RP(a.details))):this.C&&(this.C.onError(a.errorCode,RP(a.details)),b&&"manifest.net.connect"==
a.errorCode&&(a="https://www.youtube.com/generate_204?cpn="+this.g.clientPlaybackNonce+"&t="+(0,g.sG)(),(new LS(a,"manifest",(0,g.A)(function(a){this.ne("pathprobe",a)},this),(0,g.A)(function(a){this.onError(a.errorCode,RP(a.details))},this.C))).send()))};
g.h.DB=function(){if(!(0,window.isNaN)(this.P)&&this.o){var a=this.getDuration(),b=this.Z.experiments.g("legacy_html5_seek_end")?Math.floor(a):GU(this,!1);!this.g.Ba&&this.P>=b?(this.P=a,this.Y("endseeking",this),jU(this,!0),RT(this)):(this.B&&this.B.seek(this.P),(!this.g.Ba||1<=this.o.g.readyState)&&this.o.yc(this.P),this.B&&!g.V(this.A,2)&&XT(this,ZJ(this.A,16)))}this.ha&&(this.ha.dispose(),this.ha=null);g.V(this.A,32)&&(XT(this,ZJ($J(this.A,32),16)),this.Y("endseeking",this))};
g.h.getCurrentTime=function(){if(!(0,window.isNaN)(this.P))return this.P;var a=0;this.o&&1<=this.o.g.readyState?a=this.o.getCurrentTime():this.g&&(a=this.Z.experiments.g("new_ended_replay")?this.g.startSeconds||0:this.g.yf||this.g.startSeconds||0);this.Z.experiments.g("new_ended_replay")&&(a=g.Pd(a,this.Jc(),GU(this,!1)));return a};
g.h.getDuration=function(){return this.g.lengthSeconds?this.g.lengthSeconds:GU(this,!1)?GU(this,!1):0};
g.h.jG=function(){var a=new Jja;if(this.B){var b=this.Z.schedule;a.B=b.J;a.F=b.K;a.o=$K(b);a.g="d."+XK(b).toFixed(2)+";st."+(1E9*ZK(b)).toFixed(2)+";bw."+b.A.o().toFixed(0)+";abw."+b.C.o().toFixed(0)+";v50."+SK(b.o,.5).toFixed(2)+";v92."+SK(b.o,.92).toFixed(2)+";v96."+SK(b.o,.96).toFixed(2)+";v98."+SK(b.o,.98).toFixed(2);b.g&&(a.g+=";ltbw."+b.g.o().toFixed(0));b=this.B;b.A&&!UL(b.A)&&(a.A=hS(b.g)?b.g.B.B:JJ(b.A.o.buffered,b.D),a.C=hS(b.B)?b.B.B.B:JJ(b.A.g.buffered,b.D));a.o=AS(b.K)}else this.o&&(a.A=
RJ(this.o));this.K&&Kla(this.K,a);return a};
g.h.WP=function(){if(this.F){var a=this.F,b=this.g.oauthToken;a.P=b;a.Y("oauthtoken",b)}WT(this)};
g.h.VP=function(a){g.$T(this,"auth",(0,window.unescape)(a.reason),a.errordetail||"sec."+a.errorcode)};
g.h.tS=function(a){var b=a.target.wd();if(this.o&&this.o.wd()&&this.o.wd()==b){var c=!1;switch(a.type){case "error":if(!this.Hb&&(4==this.o.Lb()||3==this.o.Lb()||2==this.o.Lb())){this.Hb=!0;if(a=this.Z.experiments.g("html5_progressive_signature_reload"))a=this.g,a=(a.wg&&+g.FE(a.wg.g().g).expire)<Date.now()/1E3+1800;this.C&&(c={e:3==this.o.Lb()?"decode":2==this.o.Lb()?"network":"unplayable"},this.J&&(c.msopened=""+ +!!this.J.g),a&&(c.stale="1"),this.C.onError("qoe.restart",RP(c)));if(a){tU(this);
return}if(NE("philips"))try{window.close()}catch(n){}this.Zr();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,WT(this));break;case "ratechange":this.B&&(this.B.K.A=Math.max(1,this.o.Uc()));d=this.D;d.C=!0;d.A();break;case "loadedmetadata":this.g.startSeconds&&(0<(this.o.g.seekable||IJ()).length?this.Z.experiments.g("new_ended_replay")?hU(this,this.g.startSeconds,!0):this.o.g.currentTime=this.g.startSeconds:
(this.oa=this.g.startSeconds,jU(this,!0)));case "loadstart":g.uE(this.qb);this.wp()||(this.qb=g.wE((0,g.A)(this.wp,this),100));break;case "progress":this.oa&&this.o&&(d=this.o.g.seekable||IJ(),d.length&&d.end(0)>this.oa&&(this.o.g.currentTime=this.oa,this.oa=window.NaN,this.Bb=this.ka.T(this.o,"canplay",this.hN,this)));case "suspend":HU(this);this.Y("onLoadProgress",this,Ema(this));g.V(this.A,8)&&(this.qf?c=!0:this.rf&&((0,window.isNaN)(this.oc)||this.oc+1<this.o.getCurrentTime())&&(c=!0,this.oc=
this.o.getCurrentTime()));break;case "seeked":LU(this);break;case "seeking":d=this.Z.experiments.g("disable_html5_videoplayer_seeking_time")?this.o.getCurrentTime():this.getCurrentTime();this.B&&this.B.seek(d);var e=this.Ta;e.g=d;e.o=!0;break;case "playing":this.G.o("plev");g.tP("plev",void 0,"video_to_ad");this.Rd&&(this.Rd=!1,vU(this)||hU(this,window.Infinity,!0));g.vE(this.tb);this.tb=window.NaN;break;case "timeupdate":d=this.o&&!this.o.getCurrentTime();e=!this.Z.experiments.g("disable_have_nothing_timeupdate")&&
this.o&&0==this.o.g.readyState;if(d&&(!this.Ja||e))return;this.Ja|=!!this.o.getCurrentTime();this.wp();LU(this);HU(this);if(!this.o||this.o.wd()!=b)return;this.Y("onVideoProgress",this,this.o.getCurrentTime());this.K&&this.Fa&&(d=this.K,e=this.o.getCurrentTime(),!d.o||e>=d.B&&e<d.D||(e=d.o.Vg(e),-1!=e&&(d.B=d.o.Pf(e),d.D=d.B+d.o.getDuration(e),e=(0,g.G)()/1E3-d.o.sr(e),d.A&&(e-=d.A()),fR(d.C,e),d.g.push(e))));break;case "waiting":if(0<(this.o.g.played||IJ()).length&&0==QJ(this.o).length&&0<this.o.getCurrentTime()&&
5>this.o.getCurrentTime()&&this.B)return}if(this.o&&this.o.wd()==b){this.Y("videoelementevent",a);a:{var b=this.A,f=this.Ta,k=this.sf,l=this.Z.experiments.g("html5_timeupdate_readystate_check");if(!g.V(b,128)){var d=b.o,e=b.g,m=a.target;if(!g.V(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.wd()&&(d=14,e=null);else if("pause"==a.type)g.V(b,256)?(d^=256)||(d=64):g.V(b,32)||g.V(b,
2)||g.V(b,4)||(d=4,g.V(b,1)&&g.V(b,8)&&(d|=1),e=null);else if("playing"==a.type)d=8,e=null,g.V(b,32)&&(d|=32),k&&g.V(b,1)&&XJ(f,m)&&(d|=1);else if("error"==a.type){b:{if(2==m.Lb())f="progressive.net.retryexhausted";else if(3==m.Lb())f="fmt.decode";else if(4==m.Lb())f="fmt.unplayable";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."+bU());m={errorCode:f,errorDetail:l,message:g.T("YTP_ERROR_GENERIC_WITHOUT_LINK"),
messageKey:"YTP_ERROR_GENERIC_WITHOUT_LINK"}}m&&(e=m,d|=128)}else if("progress"==a.type)cK(b)&&XJ(f,m)&&(d|=1);else if("seeked"==a.type)d&=-17;else if("seeking"==a.type)d|=16,0>=RJ(m)&&(d|=1),d&=-3;else if("waiting"==a.type)g.V(b,2)||(d|=1);else if("timeupdate"==a.type)k=2<m.g.readyState,f.A|=k,g.V(b,16)||g.V(b,4)||(XJ(f,m)?d|=1:l&&!k&&f.A||(d&=-2)),1<m.g.readyState&&0<m.getCurrentTime()&&(d&=-65);else break a;b=YJ(b,d,e)}}!g.V(this.A,1)&&g.V(b,1)&&dU(this,"evt_"+a.type);XT(this,b);c&&this.o.play()}}};
g.h.jM=function(a){a="available"==a.g.availability;a!=this.Yb&&(this.Yb=a,this.Y("airplayavailabilitychange"))};
g.h.kM=function(){var a=!!this.o.g.webkitCurrentPlaybackTargetIsWireless;a!=this.Ub&&(function(){this.Z.Uq=a}.apply(this),this.Ub=a)&&(g.CQ(this.g,this.Z),CU(this,"m"));
this.Y("airplayactivechange")};
g.h.wp=function(){var a=this.o;a&&this.Ja&&!this.g.lg&&!JP("vfp",this.G.g)&&2<=a.g.readyState&&!a.g.ended&&0<HJ(QJ(a))&&this.G.o("vfp");if((a=this.o)&&!this.g.lg&&0<a.getDuration()&&(!JP("pbp",this.G.g)&&a.g.paused&&2<=a.g.readyState&&0<HJ(QJ(a))&&this.G.o("pbp"),0<a.getCurrentTime())){g.uE(this.qb);g.vE(this.da);this.da=window.NaN;this.g.lg=!0;KU(this);if(this.C){a=this.C;if(!a.B){var b=FK(a,"playback");a.J=[10+a.g.videoData.ej,10,10,40+a.g.videoData.Dk-a.g.videoData.ej,40];var c=a.A;g.uE(c.D);c.D=
window.NaN;c.D=g.wE((0,g.A)(c.update,c),100);c.C=g.sJ(c.o);c.A=rJ(c.o);b.o=DK(a,!0);b.Na=!0;b.send();a.g.videoData.Vk&&(b=a.g.g,c=a.g.videoData,b=g.Dg(b.baseYtUrl+"ptracking",{html5:"1",video_id:c.videoId,cpn:c.clientPlaybackNonce,plid:c.playbackId,ei:c.eventId,ptk:c.Vk,oid:c.dA,ptchn:c.cA,pltype:c.eA,content_v:b.ua}),IK(a,b));a.g.videoData.enableCardio&&(a.Sn("playback"),a.C||MK(a));a.g.videoData.zf||KK(a);a.B=!0;a=a.A;a.g=a.o.o();a.C=g.sJ(a.o);!(0==a.B&&5>a.g)&&2<a.g-a.B&&(a.B=a.g)}g.xE((0,g.A)(this.ls,
this),4500)}this.Y("playbackstarted");g.BG()&&((a=g.x("yt.scheduler.instance.clearPriorityThreshold"))?a():EG(0));return!0}return!1};
g.h.hN=function(){this.Bb&&(this.ka.za(this.Bb),delete this.Bb,this.o.cd())};
g.h.KG=function(){if(this.o){var a=this.getCurrentTime();if(g.V(this.A,8)&&BJ(this.Ta,a,(0,g.sG)(),RJ(this.o))){var b=this.getDuration();!this.g.Ba&&b&&1.1>Math.abs(b-a)?this.o.g.loop?hU(this,0,!0):RT(this):(g.eK(this.A)||dU(this,"progress_fix"),XT(this,ZJ(this.A,1)))}else g.V(this.A,4)&&g.eK(this.A)&&5<RJ(this.o)&&XT(this,$J(this.A,1));HU(this)}};
g.h.gG=function(){return this.B?AS(this.B.K):$K(this.Z.schedule)};
g.h.Yv=function(){return this.o?RJ(this.o):0};
g.h.iG=function(){return this.Z.schedule.J};
g.h.VQ=function(){var a;if(a=g.V(this.A,1)&&this.B){a=this.B;var b=this.getCurrentTime();a=!(!a.A||UL(a.A)||VL(a.A)||rT(b,a.g,a.A.o)&&rT(b,a.B,a.A.g))}a&&(a=qT(this.B),this.ne("reseek",RP({cur:a.lct,vb:a.lvb,ab:a.lab})),hU(this,this.getCurrentTime(),!0))};
g.h.vG=function(){this.g.Ba||this.Y("connectionissue")};
g.h.cR=function(){this.o.yc(this.o.getCurrentTime()+.1)};
g.h.tO=function(a){var b={};g.za(b,this.Z.B);b.cpn=this.g.clientPlaybackNonce;this.g.cg&&(b.vvt=this.g.cg,this.g.mdxEnvironment&&(b.mdx_environment=this.g.mdxEnvironment));this.Z.Fc&&(b.authuser=this.Z.Fc);this.Z.pageId&&(b.pageid=this.Z.pageId);g.ac(a.D,b);zT(a,a.G)};
g.h.LN=function(a,b,c,d){d=g.t(d)?d:"YTP_ERROR_LICENSE";c=c.substr(0,256);"drm.keyerror"==a&&1<this.F.A.keys.length&&96>this.ie&&!this.Z.experiments.g("html5_disable_drm_reload")&&(a="drm.sessionlimitexhausted",b=!1);if(b)g.$T(this,a,d,c);else if(this.C)this.C.onError(a,c);"drm.sessionlimitexhausted"==a&&(this.ie++,this.Zr())};
g.h.MN=function(){CU(this,"r");WT(this)};
g.h.sS=function(a){this.Y("heartbeatparams",a)};
g.h.zz=function(){if(!this.g.lg&&this.o){var a="0";0<this.o.g.readyState&&5<=RJ(this.o)&&this.g.jb.g&&(XT(this,ZJ(this.A,1)),dU(this,"load_soft_timeout"),this.Y("playbackstalledatstart"),a="1");this.C&&(a={preroll:""+ +gU(this),restartmsg:a},this.B&&g.za(a,qT(this.B)),this.o&&g.za(a,UJ(this.o)),this.C.onError("qoe.start15s",RP(a)));this.Y("loadsofttimeout")}};
g.h.ls=function(){if(!this.Ra){var a=new IT(this.g);if("c1a"in a.o){var b=g.x("yt.abuse.botguardInitialized");b=!(b&&b())}else b=!1;if(b)g.xE((0,g.A)(this.ls,this),4500);else{if(a.g&&a.g.Qj){b=[a.g.Qj];for(d in a.A)if(a.o[d]&&a.A[d]){var c=a.A[d](a.o);c&&b.push(c)}var d=b.join("&")}else d=null;d&&this.C&&(a=this.C,a.M||(b=FK(a,"atr"),b.M=d,b.send(),a.M=!0),this.Ra=!0)}}};
g.h.Jc=function(){return this.g.Jc()};
g.h.EB=function(){return this.ua};
g.h.Zp=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.Zr=function(){this.o&&(this.J?zU(this):(this.g.wg&&this.g.wg.A(this.Z.experiments),this.o.Of()),xU(this))};
g.h.ne=function(a,b,c){if(this.C){var d=this.C;d.na()||pK(d.o,a,b,c)}};g.p(NU,NK);g.h=NU.prototype;g.h.getPlayerType=function(){return this.playerType};
g.h.getRootNode=function(){return g.WU(this).element};
g.h.Mf=function(){return this.app.B};
g.h.ia=function(a){return(a=g.UU(this.app,a||this.playerType))&&a.g};
g.h.isFullscreen=function(){return this.app.Z.ga};
g.h.cd=function(a){3==this.Wa()?g.TU(this.app.A).Mk("control_play"):SY(this.app,a)};
g.h.Of=function(a){FU(g.UU(this.app,a))};
g.h.addEventListener=function(a,b){this.app.K.subscribe(a,b)};
g.h.removeEventListener=function(a,b){this.app.K.unsubscribe(a,b)};
g.h.Jk=function(a){this.Zx(a,a)};
g.h.Ek=function(a){return t2(this.app,a)};
g.h.getVideoUrl=function(a,b,c,d){var e=this.Wa(),f=2==e;if(d&&f||3==e)f=!1,e=1;d=this.ia(e);if(!d)return"";var k;a||d.Ba||(k=Math.floor(this.getCurrentTime(e)));return this.app.Z.getVideoUrl(d.videoId,f?void 0:this.getPlaylistId()||void 0,k,b,c)};
g.h.Kk=function(a,b,c){var d=g.OU(this).A;d&&d.tt(a,b,c)};
g.h.Kd=function(){var a=g.UU(this.app,1);if(!a)return!1;var b=a.g;return b.Ge()&&!g.MQ(b)&&2!=this.Wa()&&(!gU(a)||3==this.Wa())};
g.h.ci=function(a,b){var c=this.app,d=g.UU(c,this.playerType);d&&c.Z.zb.has(a.toString())?d.C?(c=FK(d.C,"engage"),c.A=a,c.send(b)):b&&b():b&&b()};
g.h.Nf=function(a,b){r2(this.app,a,b)};
g.h.setVolume=function(a){a=g.Pd(a,0,100);kJ(this.app,{volume:a,muted:this.He()},!0)};
g.h.mute=function(){kJ(this.app,{muted:!0,volume:this.getVolume()},!0)};
g.h.ug=function(){kJ(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},!0)};g.C(g.AV,g.RF);g.h=g.AV.prototype;g.h.load=function(){this.loaded=!0};
g.h.unload=function(){this.loaded=!1};
g.h.Ad=function(){return!0};
g.h.V=function(){this.loaded&&this.unload();g.AV.aa.V.call(this)};
g.h.HB=function(){return{}};g.C(BV,g.AV);g.h=BV.prototype;g.h.vt=function(){return-1};
g.h.create=function(){this.C||(g.R(this.g.getRootNode(),this.Vd+"-created"),this.M.T(this.g,"crn_"+this.Vd,this.Or),this.M.T(this.g,"crx_"+this.Vd,this.Pr),this.C=!0)};
g.h.destroy=function(){g.Kp(this.g.getRootNode(),this.Vd+"-created");g.EJ(this.M);this.C=!1;this.Y("destroyed",this.Vd)};
g.h.Or=function(){};
g.h.Pr=function(){};
g.h.wt=function(){return null};
g.h.V=function(){this.C&&this.destroy();BV.aa.V.call(this)};g.C(g.FV,g.W);g.FV.prototype.subscribe=function(a,b,c){return this.ba.subscribe(a,b,c)};
g.FV.prototype.unsubscribe=function(a,b,c){return this.ba.unsubscribe(a,b,c)};
g.FV.prototype.Qd=function(a){return this.ba.Qd(a)};
g.FV.prototype.Y=function(a,b){return this.ba.Y.apply(this.ba,arguments)};g.C(g.LV,g.M);g.h=g.LV.prototype;g.h.show=function(a){1!=this.g&&2!=this.g&&(3==this.g&&this.ko(),4==this.g?(this.o.show(),this.g=null,this.A.stop()):this.o.g||(MV(this,!0),this.g=1,a?this.A.start(a):this.ko()))};
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&&(MV(this,!0),this.g=3,this.A.start(this.B)))};
g.h.ko=function(){switch(this.g){case 1:this.o.show();this.g=2;this.A.start(10);break;case 2:MV(this,!1);this.g=null;break;case 3:this.o.hide();MV(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.ko()};
g.h.V=function(){this.o.na()||this.o.element.removeAttribute("aria-hidden");g.LV.aa.V.call(this)};var RV=[2,5];var cY=[];UV.prototype.g=function(a,b,c){a=a||cY;(0,g.Ek)(a,function(a){return $V(this.o).experiments.g(a)},this)&&(a=c||{},a.cdp=1,a["var"]=b,a.sdkv="h.3.0",g.cV(this.o.g,"ad",a))};var cW=Error("Timed out while waiting for Biscotti ID");dW.prototype.C=function(){var a=eW(this);a.format="2_3";a.at="2_3";a.trsp="1";GX(this.g,3,a)};g.C(fW,g.M);fW.prototype.V=function(){this.g.reject();fW.aa.V.call(this)};
fW.prototype.D=function(){this.A++;var a=g.x("yt.www.watch.ads.isAfcAdVisible");a&&g.ua(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 qW,hW=!1,kW=!1,gW=!1;g.dG("showCompanionAdLoaded",function(){kW&&(lW(),kW=!1)});
g.dG("watchAdsInit",function(){hW&&(hW=!1,iW())});g.C(sW,g.RF);sW.prototype.pf=function(){return this.adSystem+"_"+this.adType};
sW.prototype.Ph=function(){return this.pf()};
sW.prototype.Kb=function(){return this.o?this.o.Kb():null};
sW.prototype.abort=g.z;g.C(uW,g.W);uW.prototype.V=function(){uW.aa.V.call(this);g.te(vW(this));g.te(wW(this));this.A=this.o=null;delete this.B};g.C(CW,g.M);CW.prototype.start=function(){!this.na()&&(0,window.isNaN)(this.g)&&(this.A=(0,g.G)(),this.g=g.mg(this.C,this.B-this.o,this))};
CW.prototype.stop=function(){(0,window.isNaN)(this.g)||(this.A=this.o=0,g.ng(this.g),this.g=window.NaN)};
CW.prototype.pause=function(){(0,window.isNaN)(this.g)||(this.o=(0,g.G)()-this.A,g.ng(this.g),this.g=window.NaN)};
CW.prototype.V=function(){(0,window.isNaN)(this.g)||g.ng(this.g);CW.aa.V.call(this)};DW.prototype.getLength=function(){return this.g-this.o};GW.prototype.update=function(a,b,c,d){this.width=b;this.A=c;this.C=d;this.g=b-c-d;this.B=g.Pd(a-c,0,this.g);this.position=this.B+c;this.o=this.B/this.g};g.C(JW,sW);JW.g=15;JW.o=-21;g.h=JW.prototype;g.h.abort=function(){BW(this.C,13);this.ca||this.o.destroy();this.D=this.G=!1;PW(this)};
g.h.pf=function(){var a=this.Kb();var b=gq(a);if(4==tW(b).A)return b;if(Nr(a))a=3;else if(a.isSkippable())a=Or(a)?1:2;else return this.adSystem+"_"+this.adType;return this.adSystem+"_"+this.adType+"_"+a};
g.h.Ph=function(){return this.adSystem+"_"+this.adType};
g.h.show=function(){rW();EY(this.g)&&mW(this.g,{});var a=this.g;if(g.LY(a)){var b=IW(a);NY(a.app,b)}else a=a.g.app,NY(a,MY(a,2));this.C.A=(0,g.sG)();this.F=this.g.getRootNode();this.B.subscribe("progresssync",this.ez,this);this.g.o.P&&g.we(g.L("video-ad-status-bar",this.F));g.Jp(this.F,["ad-showing","ad-interrupting"]);this.g.subscribe("resize",this.xt,this);try{this.A.X(this.o,"adError",this.QS),this.A.X(this.o,"click",this.PS),this.A.X(this.o,"complete",this.SS),this.A.X(this.o,"engagedview",this.sN),
this.A.X(this.o,"pause",this.UB),this.A.X(this.o,"start",this.VB),this.A.X(this.o,"skip",this.US),this.A.X(this.o,"MUTE_AD",this.abort),this.A.X(this.o,"skippableStateChanged",this.xP),this.A.X(this.o,"youTubeChannelMetadata",this.hO),this.A.X(this.o,"companionInitialized",this.RS),EY(this.g)&&this.A.X(this.o,"youtubeKevlarCompanionShow",this.JN),this.A.X(vW(this.g.G),"mouseup",this.TS),this.xt(),this.ca||this.o.start()}catch(c){QW(this,c)}this.g.o.D&&$V(this.g).experiments.g("ad_info_icon_in_card")&&
IY(this.g,"onAdMetadataAvailable",{showAdInfoIcon:!0})};
g.h.XB=function(a,b,c){if("newdata"==a&&this.videoData!=c){a=new Rma;a.isSkippable=this.fa;a.isBumper=this.ka;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.ZE;a.skipShown=(0,g.A)(this.o.JA,this.o);if(b=this.Kb()){a.clickThroughUrl=Zr(b)||"";var d;(d=this.g.o.Ta)||(d=c.lengthSeconds,(b=Bs(b))?(jp(b,d),d=kp(b)):d=null);a.skipTime=d||0;a.adSystem=
this.adSystem;if(b=RW(this))a.whyThisAdInfo=b;if(d=SW(this))a.muteAdInfo=d;var e=$V(this.g);this.g.o.D&&e.experiments.g("ad_info_icon_in_card")&&(e={showAdInfoIcon:!0},e.whyThisAdInfo=b,e.muteAdInfo=d,IY(this.g,"onAdMetadataAvailable",e))}a.videoId=c.videoId;a.videoId||(a.videoUrl=this.tl()||"");c.spacecastModule=this.ga;NW(this.g,-1,a)}this.videoData=c};
g.h.WB=function(a){a=a.state;g.V(a,1)||this.K.pause();g.V(a,128)?QW(this,Error(a.g.message||"Video player error.")):g.V(a,1)&&this.K.start()};
g.h.VB=function(){this.P=!0;this.D=!1;if(!this.G){this.G=!0;var a=this.C;zW(a);var b=AW(a);if((0,window.isNaN)(a.A))zW(a);else{var c=(0,g.sG)()-a.A;b.ad_stl=c}yW(a,4,b);OW(this.g,1);LW(this,!1);b=this.g.o;b.sa&&(a=MW(this.g))&&(TW(this,a),this.videoData.xc=Math.min(1,this.videoData.xc*b.K),c=Math.min(1,a.getVolume()*b.K),a.setVolume(c));if(b.ua){var a=MW(this.g),d=Math.max(-21,aW(this.g).relativeLoudness),c=this.videoData.relativeLoudness;a&&0>d&&c>d&&(TW(this,a),this.videoData.xc=Math.min(this.videoData.xc,
Math.pow(10,-(c-d)/20)),c=Math.min(1,a.getVolume()/this.J*this.videoData.xc),a.setVolume(c))}b.Fa&&(a=MW(this.g),c=b.xb,d=g.vG(),a&&null!==c&&d>c&&(TW(this,a),this.videoData.xc=Math.min(1,this.videoData.xc*b.K),c=Math.min(1,a.getVolume()*b.K),a.setVolume(c)));b.Ja&&(a=MW(this.g),c=this.videoData.relativeLoudness,b=b.zb,a&&c>b&&(TW(this,a),this.videoData.xc=Math.min(this.videoData.xc,Math.pow(10,b/20)),c=Math.min(1,a.getVolume()/this.J*this.videoData.xc),a.setVolume(c)));this.M&&1!=this.M&&g.uP("yt_abt",
this.M,"video_to_ad");this.videoData&&this.videoData.clientPlaybackNonce&&g.uP("ad_cpn",this.videoData.clientPlaybackNonce,"video_to_ad");this.videoData&&this.videoData.videoId&&g.uP("ad_docid",this.videoData.videoId,"video_to_ad");g.uP("cpn",aW(this.g).clientPlaybackNonce,"video_to_ad");g.tP("apbs",void 0,"video_to_ad");(a=g.T("ADS_INSTREAM_FIRST_PLAY"))&&IY(this.g,"onAdAnnounce",a)}NW(this.g,1);this.Y("adPlay",this)};
g.h.UB=function(){this.P&&(this.P=!1,NW(this.g,2))};
g.h.SS=function(){if(!this.D){var a=this.C;zW(a);var b=AW(a),c=a.g.hk();c?b.ad_fmt=c:zW(a);yW(a,5,b);$V(this.g).Fb&&IY(this.g,"onAdComplete");PW(this);this.D=this.G=!1}};
g.h.sN=function(){var a=this.C;a.g.Y("AD_LOGGING_EVENT",777,AW(a))};
g.h.US=function(){this.D=!0;var a=this.C,b=AW(a),c=a.g.hk();c?b.ad_fmt=c:zW(a);yW(a,14,b);$V(this.g).Fb&&IY(this.g,"onAdSkip");PW(this)};
g.h.xP=function(){$V(this.g).experiments.g("html5_ad_no_buffer_abort_after_skippable")&&this.K.dispose();var a=g.T("ADS_INSTREAM_SKIPPABLE");a&&IY(this.g,"onAdAnnounce",a)};
g.h.hO=function(){var a;if(!this.na()&&(a=this.g.o)){var b=this.Kb();if(b){var c=b.P,b=b.ka,d=$V(this.g),e=RW(this),f=SW(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,IY(this.g,"onAdMetadataAvailable",a)):a.D&&d.experiments.g("ad_info_icon_in_card")&&(a={showAdInfoIcon:!0},a.whyThisAdInfo=
e,a.muteAdInfo=f,IY(this.g,"onAdMetadataAvailable",a))}}};
g.h.RS=function(a){a=a.event;var b=a.g;b&&b instanceof g.xf&&this.Y("adCompanionInitialized",a.Ob(),b)};
g.h.JN=function(a){EY(this.g)&&(a=(a=a.event.Ob())&&a.J)&&mW(this.g,a)};
g.h.QS=function(a){var b={};try{b.error_code=a.event.getError().Lb()}catch(c){b.error_code=900,b.error_message=c.toString()}BW(this.C,32,b);QW(this,a.event.getError())};
g.h.PS=function(){var a=this.C;zW(a);var b=AW(a);if(a.o){var c=GY(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}yW(a,15,b);this.o.pause();this.Y("select")};
g.h.ez=function(){};
g.h.Yy=function(){this.o.hf();if(this.G&&!this.D){var a=this.C;a.g.Y("AD_LOGGING_EVENT",19,AW(a))}LW(this,!0)};
g.h.V=function(){this.g.unsubscribe("control_toggle_play_pause",this.YB,this);this.g.unsubscribe("control_play",this.Vr,this);this.g.unsubscribe("control_pause",this.Ur,this);this.g.unsubscribe("resize",this.xt,this);g.OF(this.A);this.B.unsubscribe("statechange",this.WB,this);this.B.unsubscribe("internalAbandon",this.Yy,this);this.B.unsubscribe("internalvideodatachange",this.XB,this);this.B.unsubscribe("progresssync",this.ez,this);this.ca||this.o.destroy();this.W&&(g.te(this.W),this.W=null);this.da&&
(g.we(this.da),this.da=null);this.F&&(g.Lp(this.F,["ad-showing","ad-interrupting"]),this.F=null);this.D=!1;PY(this.g);this.K.dispose();this.K=null;JW.aa.V.call(this)};
g.h.Bm=function(){return this.B.getDuration()};
g.h.hk=function(){return this.videoData&&this.videoData.Ma?this.videoData.Ma.mimeType:null};
g.h.tl=function(){return this.videoData&&this.videoData.wg?this.videoData.wg.g().g:null};
g.h.YB=function(){this.P?this.Ur():this.Vr()};
g.h.Vr=function(){this.o.resume();this.VB()};
g.h.Ur=function(){this.o.pause();this.UB()};
g.h.xt=function(){g.th(vW(this.g.G),this.g.app.F.Ya())};
g.h.TS=function(a){g.t(a.g)||AF(a);var b=a.g;g.t(a.o)||AF(a);this.C.o=new g.Td(b,a.o)};g.C(WW,sW);g.h=WW.prototype;g.h.Bm=function(){};
g.h.hk=function(){};
g.h.tl=function(){};
g.h.show=function(){if(!this.D||!YY(this.g)){var a=this.g.getRootNode();g.R(a,"ad-showing");this.A=vW(this.g.G);a=this.o.Kb().getHeight();this.A.style.height=hh(a,!0);g.R(this.A,"ad-overlay");this.B.X(this.A,"mouseup",this.XS);try{this.B.X(this.o,"autoClose",this.yM),this.B.X(this.o,"userClose",this.SP),this.B.X(this.o,"userRecall",this.TP),this.B.X(this.o,"click",this.WS),this.B.X(this.o,"impression",this.GN),this.B.X(this.o,"adError",this.VS),this.Cc("normal"),this.F||this.o.start(),this.zt(),this.g.subscribe("resize",
this.xo,this),this.g.subscribe("presentingplayerstatechange",this.ZB,this),this.Y("adEnd",this)}catch(b){this.Y("adError",b)}}};
g.h.V=function(){var a=this.g.getRootNode();g.Lp(a,["ytp-ad-overlay-open","ytp-ad-overlay-closed"]);g.OF(this.B);this.g.unsubscribe("resize",this.xo,this);this.g.unsubscribe("presentingplayerstatechange",this.ZB,this);g.Kp(a,"ad-showing");this.o&&(this.F||this.o.destroy(),this.o=null);this.A&&g.Kp(this.A,"ad-overlay");this.A=null;this.D=!1;WW.aa.V.call(this)};
g.h.SP=function(){this.A&&this.o&&this.o.Kb()&&(this.A.style.height=hh(0,!0));this.D=!0;var a=this.C;a.o=(0,g.G)();var b=VW(a);UW(a,6,b);XW(this,!1)};
g.h.yM=function(){XW(this,!1)};
g.h.TP=function(){XW(this,!0)};
g.h.WS=function(){bY(this.g);var a=this.C;a.o=(0,g.G)();var b=VW(a);if(a.A){var c=GY(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}UW(a,100,b)};
g.h.GN=function(){var a=g.T("ADS_OVERLAY_IMPRESSION");a&&IY(this.g,"onAdAnnounce",a);XW(this,!0)};
g.h.XS=function(a){this.C.A=a.target==a.currentTarget?null:new g.Td(a.pageX,a.pageY)};
g.h.VS=function(a){this.Y("adError",a.event.getError())};
g.h.ZB=function(a){g.V(a.state,16)&&this.Cc("normal")};
g.h.Cc=function(a){this.G!=a&&(this.G=a)};
g.h.xo=function(){};
g.h.zt=function(){var a=this.C;a.B=(0,g.G)();var b=VW(a);UW(a,3,b)};g.C(YW,g.M);YW.o="rm";YW.g=10;YW.C=200;YW.A=200;YW.B=190;g.h=YW.prototype;
g.h.load=function(){var a=this.g.app.F.Ya();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=eW(b);c.ck_wh=a.width+"x"+a.height;HY(b.g,14,c);rW();JX(this.C)}else if(this.ib=this.g.ib)a=this.A,GX(a.g,9,eW(a)),a=bW(this.g),(b=this.g.o.serverPrefetchedVast)&&0<(this.D&3)?(a.o=b,this.g.o.serverPrefetchedVast=void 0):a.g=this.Rg(),this.ib.X("adsManagerLoaded",this.RB,!1,this),this.ib.X("adError",this.QB,!1,this),this.sA(this.ib,a)};
g.h.Qp=function(){var a=ZV(this.g.o,$V(this.g),aW(this.g));a.surveyCreativeData=this.g.o.surveyCreativeData;a.dS=this.G;return a};
g.h.RB=function(a){if(a.A===this){g.tP("aml");g.tP("aml",void 0,"video_to_ad");try{var b=this.Qp();var c=a.g}catch(d){this.lh(d);return}this.B.X(c,"companionBackfill",(0,g.A)(this.NS,this,c));this.B.X(c,"loaded",(0,g.A)(this.MS,this,c));this.B.X(c,"adError",(0,g.A)(this.LS,this,c));this.B.X(c,"allAdsCompleted",g.z);this.B.X(c,"contentPauseRequested",g.z);this.B.X(c,"contentResumeRequested",g.z);c=aA(a,this.g.J,{},b);try{c.init("normal")}catch(d){c.destroy(),this.lh(d)}}};
g.h.MS=function(a,b){km(this.B);var c=b.Ob(),d=c.Vb(),e=this.A,f=eW(e);f.ad_man=d?"instream":"overlay";GX(e.g,12,f);e=a.Tg();switch(d?this.Pm(a,c,e):this.Uh(a,c)){case 0:FX(this.C,this.K,this.o);break;case 1:a.destroy();JX(this.C);break;case 2:c=this.A;HY(c.g,21,eW(c));a.destroy();JX(this.C);break;case 3:JX(this.C);break;default:a.destroy()}};
g.h.LS=function(a,b){km(this.B);a.destroy();this.lh(b.getError())};
g.h.QB=function(a){var b=a.getError();"adLoadError"==b.bc()&&a.g===this&&this.lh(b)};
g.h.NS=function(){aX(this)};
g.h.Pm=function(a,b,c){var d=aW(this.g)&&aW(this.g).spacecastModule;if(d&&c&&!this.M.test(c))return 3;$W(this,as(b));ZW(this,new JW(this.G,this.g,a,b.isSkippable(),b.isBumper(),void 0,d,this.o.g));return 0};
g.h.Uh=function(a,b){$W(this,as(b));ZW(this,new WW(this.G,this.g,a));return 0};
g.h.lh=function(a){if(a){var b=this.A,c=eW(b);a&&WV(a,c);HY(b.g,32,c);JX(this.C)}};
g.h.V=function(){this.ib&&(this.ib.za("adsManagerLoaded",this.RB,!1,this),this.ib.za("adError",this.QB,!1,this));km(this.O);km(this.B);YW.aa.V.call(this)};
g.h.sA=function(a,b){try{fC(a,b,this),g.tP("ar"),g.tP("ar",void 0,"video_to_ad")}catch(c){this.lh(c)}};g.C(bX,sW);g.h=bX.prototype;g.h.Bm=function(){};
g.h.hk=function(){};
g.h.tl=function(){};
g.h.show=function(){EY(this.g)?mW(this.g,{afcMpu:{logImpression:this.SB.bind(this),logNoAd:this.oq.bind(this)}}):gW?this.oq():(iW(),nW(),oW().then((0,g.A)(this.SB,this),(0,g.A)(this.oq,this)))};
g.h.SB=function(){var a={};a.at=this.Ph();a.format=this.pf();this.Y("AD_LOGGING_EVENT",3,a);this.Y("adEnd",this)};
g.h.oq=function(){var a={};a.at=this.Ph();this.Y("AD_LOGGING_EVENT",2,a);this.Y("adEnd",this)};g.C(cX,YW);cX.prototype.Qp=function(){var a=cX.aa.Qp.call(this);a.Hu=0==this.J;a.oF=YY(this.g)?a.Hu:!0;return a};
cX.prototype.Rg=function(){var a=TV(this.o);var b=this.F;(b=4==this.D&&b.g.afvInvideoAdTag?b.g.afvInvideoAdTag:b.g.afvAdTag)?(g.Da(b,"http:")&&(b=b.substr(5)),a=g.HE(b,{videoad_start_delay:0==a||-1==a?a:1E3*a})):a="";return a};
cX.prototype.Uh=function(a,b){if(this.g.o.B)return 1;if(1==this.o.g){var c=new SV(2,10);this.o=c;this.A.A=c;GX(this.g,1)}return cX.aa.Uh.call(this,a,b)};g.C(dX,WW);dX.prototype.xo=function(){};
dX.prototype.pf=function(){return"1_3"};
dX.prototype.zt=function(){1==this.J?this.Y("AD_LOGGING_EVENT",2,{}):dX.aa.zt.call(this)};g.C(eX,YW);eX.prototype.Rg=function(){var a=this.F,b=TV(this.o);if(0<(this.D&3)){var c="mid,"+a.kc;var d="midroll";0==b?(c="pre",d="preroll"):-1==b&&(c="post",d="postroll");var a=new g.Ll(a.g),b=a.g,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};
eX.prototype.Uh=function(a,b){$W(this,as(b));var c=Kr(b);if(YV(c,"rm"))return 1==this.D||YY(this.g)||rW(),a.Aj(),2;if(YV(c,"blockAllAds"))return a.Aj(),ZW(this,new dX(this.g,a,1)),0;if(YV(c,"hideMaster"))return ZW(this,new dX(this.g,a,0)),0;if(this.g.o.B)return 1;ZW(this,new WW(this.G,this.g,a));return 0};g.C(fX,YW);fX.o="https://www.googleapis.com/urlshortener/v1/url?key=AIzaSyBbSB-E7SYd1iggX6r2b5C7ljvO6fVqaj0&shortUrl=";fX.A="43";fX.g=function(a){var b=new yD;g.KE(a,{format:"RAW",method:"GET",timeout:5E3,withCredentials:!0,dd:function(){var c=Error(a+" timed out");CD(b);AD(b,!1,c)},
onError:function(c){c=Error("Problem loading "+a+" with status code "+c.status);CD(b);AD(b,!1,c)},
Mb:function(a){b.ig(a)}});
return b};
fX.prototype.Rg=function(){return""};
fX.prototype.sA=function(a,b){var c=this.D;c&1||c&4||c&8?this.F?c&8?Mma(this.F):("goo.gl"==g.ug(this.F)?(c=fX.g("https://www.googleapis.com/urlshortener/v1/url?key=AIzaSyBbSB-E7SYd1iggX6r2b5C7ljvO6fVqaj0&shortUrl="+this.F),ED(c,function(a){a=g.Ic(a.responseText);if(!a)throw Error("Invalid expanded forced ad URL.");if(!a.longUrl)throw Error("Missing forced ad URL information.");a=new g.Ll(a.longUrl);g.Ul(a,"video_format","43");return fX.g(a.toString())},this)):c=fX.g(this.F),ED(c,function(c){b.o=c.responseText;
fC(a,b,this)},this),DD(c,null,this.lh,this)):this.lh(Error("Invalid empty URL")):this.lh(Error("Invalid request type: "+c))};var hX=null;g.C(iX,g.W);iX.prototype.clear=function(){for(var a=0;a<this.Ka.length;a++)this.Ka[a].detach(),g.Re(this.Ka[a]);this.Ka=[]};
iX.prototype.F=function(a){g.MF(a);this.o=Math.max(0,this.o-jX(this));kX(this)};
iX.prototype.D=function(a){g.MF(a);this.o=Math.min(this.Ka.length-1,this.o+jX(this));kX(this)};g.C(nX,g.FV);g.C(oX,g.FV);g.h=oX.prototype;g.h.V=function(){oX.aa.V.call(this);this.clear()};
g.h.clear=function(){this.o.clear();this.A.stop()};
g.h.start=function(){this.A.start();this.Js()};
g.h.Js=function(){kX(this.o)};
g.h.FG=function(){this.D.start()};g.C(pX,sW);pX.prototype.Bm=function(){};
pX.prototype.hk=function(){};
pX.prototype.tl=function(){};
pX.prototype.show=function(){var a=aW(this.g).videoId;if(a){var b=this.o.Kb();lO($V(this.g).G,a,{Fh:Is(b)||null,Kj:Js(b)||null});EY(this.g)?(a=qX(this),g.fb(a)||(a={shopText:gX(er(a[0],"teaser_text")),sponsoredText:gX(g.T("YTP_SPONSORED")),adInfoText:gX(g.T("YTP_SPONSORED_PRODUCT_INFO")),itemList:{horizontalListRenderer:{items:(0,g.I)(a,Zma),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"}}}}}}},IY(this.g,"onPlaShelfInfoCardsReady",a))):(a=qX(this),g.fb(a)||(dna(this.A,a),a=this.A.element,ana().then(g.ya(bna,a)).then(this.A.start,null,this.A)));a={};a.format=this.pf();a.at=this.Ph();XV(b,a);this.Y("AD_LOGGING_EVENT",3,a)}};g.C(rX,YW);rX.prototype.Rg=function(){return this.g.o.Yb||""};
rX.prototype.Uh=function(a,b){$W(this,as(b));ZW(this,new pX(this.g,a));5!=this.o.g&&aX(this);return 0};
rX.prototype.Pm=function(){return 1};g.C(sX,rX);sX.prototype.Rg=function(){return this.g.o.forceAdUrl||""};g.C(yX,WW);yX.prototype.xo=function(){};
yX.prototype.pf=function(){return"4_3"};g.C(zX,YW);
zX.prototype.Rg=function(){if(E(this.F)||0!=TV(this.o)){var a=this.P;if(a.g.Sa&&a.g.Na){var b={};var c="youtube_watch_"+a.A;b.nw="10613";b.asnw=a.g.Sa;b.ssnw=a.g.Sa;b.caid=a.g.Na;b.vdur=a.D;b.csid=c;b.resp="vast2";b.metr="121";c={};(0,window.isNaN)(a.g.Oa)||(c._fw_d_001=a.g.Oa);a.g.gender&&(c._fw_d_002=a.g.gender);a.g.Za&&(c["_fwu:10613:lang"]=a.g.Za);a.g.ra&&(c._fw_dbp=a.g.ra);a.g.Ra&&(c._fw_distributorvideoassetid=a.g.Ra);c._fw_yt_type=xX(a)?"long":"short";b.prof=xX(a)?"10613:youtube_html5_w_midroll":"10613:10613_youtube_html5_2014";
b.crtp="youtube";b.flag=tX(a.o)?"+slcb+qtcb+amcb+exvt+emcr":"+slcb+qtcb+amcb+emcr";var d="";if(a.C&1&&!a.F){var e={};d=vX(a);if(wX(a.o)){if(wX(a.o)){var f=0;var k=a.B.A;if(k)for(var k=k.Db,l=0;l<k.length&&(wX(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=vX(a)+d;e.tpos=uX(a.o)?a.D.toString():TV(a.o.Sb).toString();d=CE(e)+";";e={slid:"page_display1",w:"300",h:"60",ptgt:"s",slau:"display",flag:"+cmpn"};
d+=CE(e)+";"}a.C&4&&(e={slid:"overlay",ptgt:"a",slau:"overlay"},e.tpos=tX(a.o)?"10":uX(a.o)?a.D.toString():TV(a.o.Sb).toString(),d+=CE(e)+";",e={slid:"page_display2",w:"300",h:"250",ptgt:"s",slau:"display",flag:"+cmpn"},d+=CE(e)+";");a.C&8&&(e={slid:"dis",w:"300",h:"250",ptgt:"s",slau:"display",flag:"+cmpn"},d+=CE(e)+";");a=d.substr(0,d.length-1);b="//2975c.v.fwmrm.net/ad/g/1?"+CE(b)+";"+CE(c)+";"+a}else b=""}else b=this.F;return b};
zX.prototype.Pm=function(a,b){return zX.aa.Pm.call(this,a,b,null)};
zX.prototype.Uh=function(a,b){var c=Kr(b);if(YV(c,"rm"))return this.C.C=g.Wb(a),2;if(this.g.o.B)return 1;if(YV(c,"hideMaster")){if(a.Gd&&a.Gd.Nh()){var c=a.Gd.Nh();var d=a.Kb();if(P.g()){var e=d.ba;d.ba=[];d=e}else d=[];c.impressionUrls=d}ZW(this,new yX(this.g,a));return 0}return zX.aa.Uh.call(this,a,b)};AX.prototype.bc=function(){return this.o};
AX.prototype.create=function(a,b){switch(this.o){case 1:return new cX(a,b,this.g);case 2:return new eX(a,b,this.g);case 5:return new zX(a,b,this.g);case 4:return new fX(a,b);case 7:return new rX(a,b,this.g);case 8:return new sX(a,b,this.g);default:return null}};g.C(BX,g.RF);g.h=BX.prototype;g.h.Pb=function(){return"loaded"==this.B||"error"==this.B};
g.h.getId=function(){return this.Aa};
g.h.show=function(){this.G?this.g instanceof WW&&this.g.Cc("normal"):(this.G=!0,this.g instanceof JW&&this.A.ge("bs"),this.g.subscribe("adEnd",this.dz,this),this.g.subscribe("adError",this.NB,this),this.g.subscribe("AD_LOGGING_EVENT",this.PB,this),this.g.subscribe("select",this.MB,this),this.g.subscribe("adCompanionInitialized",this.OB,this),this.g.show(),IX(this,!0))};
g.h.dz=function(){this.o&&(KX(this),JY(this.A));EX(this)};
g.h.NB=function(a){if(a){var b={};WV(a,b);HX(this,b);HY(this.A,32,b)}KX(this);EX(this)};
g.h.PB=function(a,b){HX(this,b);GX(this.A,a,b)};
g.h.MB=function(){this.F=!1};
g.h.OB=function(a,b){this.Y("adCompanionInitialized",a,b)};
g.h.V=function(){KX(this);this.g=null;null!=this.C&&(this.C.dispose(),this.C=null);BX.aa.V.call(this)};var ina=[new SV(1)];var kna={TD:"m",xD:"f"};g.C(PX,g.M);PX.prototype.B=function(a){a=null!=a.Ob()?a.Ob().D:null;if(null!=a){var b=IW(this.C);b&&b.g.videoId==a?b.C?(b=b.C,a=FK(b,"engage"),a.A=1,b=jK(b.g),a=g.ya(Nja,a.ka,BK(a),zK(a),b)):a=null:a=null;this.o=a}};
PX.prototype.A=function(){this.g&&this.o&&this.o()};g.C(QX,g.M);g.h=QX.prototype;g.h.ZA=function(){this.g.subscribe("beginseeking",this.Vl,this)};
g.h.TA=function(a,b){return a.o&&wX(a)?b+this.B+this.A:b};
g.h.SA=function(a,b){return!a.o||uX(a)||0x7ffffffffffff==b||0x8000000000000==b?b:b+this.B+this.A};
g.h.Bu=function(a){if(a.o&&wX(a)&&!(0>=this.A)){var b={priority:2,id:String(a.getId()),style:"ytp-ad-fadeout"},c=DX(a)+this.B,b=new g.oJ(c,c+this.A-1,b);this.C[a.getId()]=b;CV(this.g,[b])}};
g.h.cC=function(a){a.o&&wX(a)&&(RX(this,a.getId()),this.Vl())};
g.h.Vl=function(){(0,window.isNaN)(this.o)||(g.vE(this.o),this.o=window.NaN);var a=MW(this.g),b=this.g.app.J.getVolume()/100;a.setVolume(b*aW(this.g).xc);OL(a,"transition","");OL(a,"opacity","1")};
g.h.dC=function(a){var b=DX(a)+this.B+this.A,b=50>=1E3*this.g.getCurrentTime(1)-b;a.o&&wX(a)&&b&&(a=.001*(DX(a)+this.F),WY(this.g,a),0>=this.D||(a=MW(this.g),OL(a,"opacity","0"),a.setVolume(0*aW(this.g).xc),g.xE((0,g.A)(this.YS,this),0)))};
g.h.YS=function(){var a=MW(this.g);OL(a,"transition","opacity "+String(this.D)+"ms linear");OL(a,"opacity","1");SX(this,a,this.D,1)};
g.h.bC=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);a.setVolume(d*aW(this.g).xc);this.o=0<d?bR((0,g.A)(this.bC,this,a,b,c),c):window.NaN}};
g.h.aC=function(a,b,c){if(!(0,window.isNaN)(this.o)){var d=Math.max(1,b-(0,g.G)()),e=this.g.app.J.getVolume()/100,d=(e-a.getVolume())*c/d,d=Math.min(e,a.getVolume()+d);a.setVolume(d*aW(this.g).xc);this.o=d<e?bR((0,g.A)(this.aC,this,a,b,c),c):window.NaN}};
g.h.V=function(){this.Vl();this.g.unsubscribe("beginseeking",this.Vl,this);QX.aa.V.call(this)};g.C(TX,QX);g.h=TX.prototype;g.h.ZA=g.z;g.h.TA=function(a,b){return b};
g.h.SA=function(a,b){return b};
g.h.Bu=g.z;g.h.cC=g.z;g.h.dC=g.z;g.h.V=g.z;g.C(UX,g.M);UX.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.Ib(this.D.A,function(a){a.Pb();if(a.isVisible&&!(0>=WX(this,a))){var f=a.getId();f=this.D.D[f];if(WX(this,a)>b){var k=!XX(this,a);k!=f.visible&&(f.visible=k,c.push(f));k||(f=WX(this,a)-b,f<e&&(e=f,d=a))}else f.visible||(f.visible=!0,c.push(f))}},this);
0<c.length&&CV(this.g,c,1);if(d){var f=0;0<this.o&&(f=(0,g.G)()/1E3-this.o);nna(this,a-f-e+2)}else VX(this)}}};
UX.prototype.V=function(){VX(this);this.g.unsubscribe("endseeking",this.A,this);UX.aa.V.call(this)};g.C(YX,g.M);g.h=YX.prototype;g.h.pj=function(a){a.unsubscribe("adBreakComplete",this.pj,this);a.unsubscribe("adCompanionInitialized",this.Mr,this);this.P=g.xE((0,g.A)(this.ZL,this,a),0)};
g.h.Mr=function(a,b){g.Re(this.K);this.K=new PX(this.o,b)};
g.h.ZL=function(a){var b=pna(this,a),c=b.previous,b=b.next;this.P=window.NaN;var d=!1;switch(a.Sb.g){case 5:var e=0x7ffffffffffff;d=!0;break;case 3:e=0x8000000000000;break;default:e=b&&g.oa(b.Sb.o)?DX(b)-1:0x7ffffffffffff}0==a.Aa&&(this.o.ge("bl"),CX(a)||this.o.ge("fb"));"loaded"!=a.B||0==a.Aa&&CX(a)&&b&&1E3*this.o.g.getCurrentTime()>=DX(b)?(c&&c.Pb()&&!d&&(b=e,e=DX(c),e>b&&(b=e),aY(this,c),$X(this,c,b)),this.Jh(a)):(this.A[a.getId()]=a,$X(this,a,e),DV(this.o));g.Lb(this.A)==this.Db.length&&this.C.A();
ZX(this)};
g.h.Jh=function(a){a.unsubscribe("adBreakComplete",this.pj,this);a.unsubscribe("adBreakComplete",this.Rk,this);this.g&&a==this.g&&(this.g=null,null!=this.K&&a.o&&(this.K.g=!0));aY(this,a);g.kb(this.Db,a);delete this.A[a.getId()];g.Re(a)};
g.h.Mi=function(a){return this.A[a]};
g.h.Rk=function(a){a.unsubscribe("adBreakComplete",this.Rk,this);if(a.o){!uX(a)&&a.F?(TY(this.o),this.B.dC(a)):CX(a)&&!a.F?TY(this.o):RY(this.o);this.Jh(a);a=this.C.o;a={tfla:0<a?Math.floor((0,g.G)()/1E3-a):0};this.o.Gi.g(cY,"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.fb(this.O);)dY(this,this.O.shift())}else a.isVisible||this.Jh(a)};
g.h.V=function(){g.vE(this.P);g.Re(this.B);g.Re(this.C);(0,g.H)(this.Db,this.Jh,this);g.Re(this.K);YX.aa.V.call(this)};g.C(eY,YX);g.h=eY.prototype;g.h.Mi=function(a){a=eY.aa.Mi.call(this,a);if(!a)return null;if(!a.J)return a;var b=null;if(this.F.length){var c=b=this.F.shift();c.Sb=a.Sb;c.Aa=a.getId()}b&&"loaded"==b.B?(a.unsubscribe("adBreakComplete",this.pj,this),this.A[a.getId()]=b,this.Db[this.Db.indexOf(a)]=b,g.Re(a)):(this.tj(),b&&(g.Re(b),b=null,this.Jh(a)));b&&!b.o&&this.tj();return b};
g.h.pj=function(a){!tX(a)&&(2!=a.Sb.g||10!=TV(a.Sb))||"loaded"==a.B&&a.o||this.tj();eY.aa.pj.call(this,a)};
g.h.Rk=function(a){a.o&&10<this.W?(fY(this),this.ba=g.xE((0,g.A)(this.tj,this),1E3*(this.W-10))):this.tj();eY.aa.Rk.call(this,a)};
g.h.tj=function(){if(!this.na())for(fY(this);this.J.length&&this.M.length+this.F.length<this.ca;){var a=this.J.shift();a.subscribe("adBreakComplete",this.bz,this);this.M.push(a);JX(a)}};
g.h.bz=function(a){a.unsubscribe("adBreakComplete",this.bz,this);g.kb(this.M,a);this.F.push(a)};
g.h.V=function(){fY(this);g.H(this.M,g.Re);g.H(this.F,g.Re);g.H(this.J,g.Re);eY.aa.V.call(this)};g.C(gY,YX);gY.prototype.fa=function(a){"loaded"==a.B&&this.J.push(a);a.unsubscribe("adBreakComplete",this.fa,this)};
gY.prototype.W=function(){if(null!=this.g&&0<this.J.length){var a=this.J.shift();delete this.A[TV(a.Sb)];var b=Math.floor((0,g.G)()/1E3)-this.ga;this.ga=null;a.unsubscribe("adBreakComplete",this.W,this);this.Jh(a);this.g=null}0<this.M?(this.M--,hY(this)):(TY(this.ba),(0,window.isFinite)(b)&&(this.ca?hU(this.F,window.Infinity,!0):hU(this.F,this.F.getCurrentTime()+b,!0)))};g.C(jY,g.M);jY.prototype.F=function(){this.g||(this.g=iY(this.B.Re()));CV(this.o,g.Nb(this.g),1)};
jY.prototype.A=function(){if(this.g){var a=this.o.g.getCurrentTime(),b=[],c=null,d=Number.MAX_VALUE;(0,g.H)(this.B.Re(),function(e){var f=this.g[e];if(f){var k=this.B.Mi(e);k&&k.Ec>a?(e=!this.gd.o(k),e!=f.visible&&(f.visible=e,b.push(f)),e||(f=k.Ec-a,f<d&&(d=f,c=k))):!k||k.wb()?(g.kV(this.o.g,[f],void 0),delete this.g[e]):!f.visible&&k&&(f.visible=!0,b.push(f))}},this);
0<b.length&&CV(this.o,b,1);var e=this.o.o.o;if(0>=e)if(c){var f=0;0<this.D&&(f=(0,g.G)()/1E3-this.D);rna(this,e-f-d+2)}else kY(this)}};
jY.prototype.V=function(){this.o.unsubscribe("endseeking",this.A,this);kY(this);jY.aa.V.call(this)};g.C(lY,g.M);g.h=lY.prototype;g.h.cw=function(){return 4};
g.h.bo=function(a){return a};
g.h.lA=function(){return!1};
g.h.Cu=g.z;g.h.ul=g.z;g.h.eC=g.z;g.h.fC=g.z;g.h.gC=g.z;g.C(nY,g.M);g.h=nY.prototype;g.h.cw=function(){return 4-this.B/1E3};
g.h.bo=function(a){return Qb(this.A,1E3*a)?this.A[1E3*a]/1E3:a};
g.h.lA=function(a){var b=!1,c={};(0,g.H)(g.ze(a),(0,g.A)(function(a){var d;if(d=(d=a.getAttribute("timeOffset"))?mY(d):null)b=b||sna(a),c[d]=a},this));
if(!b||0==g.Lb(c))return!1;a=(0,g.I)(g.Ob(c),function(a){return(0,window.parseInt)(a,10)});
if(!vna(this,a))return!1;g.Ib(c,(0,g.A)(function(a,b){var c=(0,window.parseInt)(Rb(this.A,function(a){return a==b}),10);
c&&a.setAttribute("timeOffset",tna(c))},this));
return!0};
g.h.Cu=function(a){if(!(0>=this.K)){var b=[];(0,g.H)(a,(0,g.A)(function(a){if(Qb(this.A,1E3*a)){var c=new g.oJ(1E3*this.bo(a)+this.B,1E3*a+500,{priority:2,id:String(a),style:"ytp-ad-fadeout"});this.C[a]=c;b.push(c)}},this));
CV(this.g,b)}};
g.h.eC=function(a){if(Qb(this.A,1E3*a)){var b=MW(this.g);null!==b&&(a=Math.max(0,1E3*a-1E3*this.g.getCurrentTime(1)),OL(b,"transition","opacity "+String(a)+"ms linear"),OL(b,"opacity","0"),pY(this,b,a,0))}};
g.h.fC=function(a){oY(this,1E3*a)&&(this.C[a]&&(g.kV(this.g.g,[this.C[a]],void 0),delete this.C[a]),this.ul())};
g.h.mC=function(){g.V(g.VU(this.g.g),4)&&this.ul()};
g.h.ul=function(){var a=MW(this.g);if(null!==a){null!=this.o&&(g.vE(this.o),this.o=null);var b=this.g.app.J.getVolume()/100;a.setVolume(b*aW(this.g).xc);OL(a,"transition","");OL(a,"opacity","1")}};
g.h.gC=function(a){if(Qb(this.A,1E3*a)){var b=1E3*a;200>=1E3*this.g.getCurrentTime(1)-b&&(WY(this.g,this.bo(a)+this.J/1E3),0>=this.D||(a=MW(this.g),null!==a&&(OL(a,"opacity","0"),a.setVolume(0*aW(this.g).xc),null!=this.o&&g.vE(this.o),this.o=bR((0,g.A)(this.fT,this),0))))}};
g.h.fT=function(){var a=MW(this.g);null!==a&&(OL(a,"transition","opacity "+String(this.D)+"ms linear"),OL(a,"opacity","1"),pY(this,a,this.D,1))};
g.h.lC=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);a.setVolume(d*aW(this.g).xc);0<d?this.o=bR((0,g.A)(this.lC,this,a,b,c),c):this.o=null}};
g.h.kC=function(a,b,c){if(null!==this.o){var d=Math.max(1,b-(0,g.G)()),e=this.g.app.J.getVolume()/100,d=(e-a.getVolume())*c/d,d=Math.min(e,a.getVolume()+d);a.setVolume(d*aW(this.g).xc);d<e?this.o=bR((0,g.A)(this.kC,this,a,b,c),c):this.o=null}};
g.h.V=function(){this.ul();this.g.unsubscribe("applicationplayerstatechange",this.mC,this);nY.aa.V.call(this)};g.C(qY,g.M);var zna={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=qY.prototype;
g.h.load=function(a){if(this.ib=this.g.ib){var b=this.g.o,c=!$V(this.g).experiments.g("html5_reuse_parsed_xml");this.C=b.applyFadeOnMidrolls?new nY(this.g):new lY;var d=bW(this.g);d.o=xna(this,a,c);d.containerElement=this.g.J.D;d.Gc.TSLA=Lma(this);d.Gc.GET_MIDROLL_POSITION_IN_SEC=(0,g.A)(this.C.bo,this.C);d.Gc.DESCRIPTION_URL="http://www.youtube.com/video/"+aW(this.g).videoId;if(a=LX(b).get(3))if(c="",a&2&&a&1?c="video":a&2?c="skippablevideo":a&1&&(c="standardvideo"),a&4&&(c&&(c+="_"),c+="text_image_flash"),
d.A=c,b=b.qb)d.J=b;this.ib.X("adsManagerLoaded",this.iC,!1,this);this.ib.X("adError",this.hC,!1,this);fC(this.ib,d,this);this.g.ge("bd")}};
g.h.iC=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.ia().lengthSeconds},this),
enumerable:!0});try{var c=yna(this);this.o=aA(a,this.g.J,b,c)}catch(d){vY(this,d);return}if(this.gd=this.o.NA(b,this.g.o.o)){this.C.Cu(this.o.Re());this.F=new jY(this.g,this.o,this.gd);g.N(this,this.F);g.xE((0,g.A)(this.F.F,this.F),0);g.eb(this.o.Re(),0)||uY(this);this.D.X(this.o,"companionBackfill",(0,g.A)(this.cT,this));this.D.X(this.o,"prefetched",(0,g.A)(this.eM,this));this.D.X(this.o,"loaded",(0,g.A)(this.aT,this));this.D.X(this.o,"adError",(0,g.A)(this.ZS,this),!1);this.D.X(this.o,"start",(0,g.A)(this.bT,
this));this.D.X(this.o,"complete",(0,g.A)(this.bM,this));this.D.X(this.o,"companionInitialized",(0,g.A)(this.dT,this));this.D.X(this.o,"contentPauseRequested",(0,g.A)(this.mh,this));this.D.X(this.o,"contentResumeRequested",(0,g.A)(this.Qf,this));this.D.X(this.o,"allAdsCompleted",g.z);this.K.T(this.g.g,"applicationplayerstatechange",this.eT);try{this.o.init("normal"),this.o.start()}catch(d){this.g.Gi.g(cY,"vmap_ads_manager_init_exception",void 0),this.o.destroy(),this.o=null,vY(this,d)}}}};
g.h.eT=function(){if(g.V(g.VU(this.g.g),16)||g.V(g.VU(this.g.g),32)){var a=this.o;null!=a.Zb&&(a=a.Zb,a.o.stop(),a.A=!1)}else a=this.o,null!=a.Zb&&gz(a.Zb)};
g.h.dT=function(a){if(a=a.g)g.Re(this.G),this.G=new PX(this.g,a)};
g.h.mh=function(a){wY(this);if((this.A=a.Ob())&&this.A.Vb()){a=xY(this.A);var b=this.A.C.o;b=0==b?1:0<b?2:-1==b?3:0;this.B=new JW(a,this.g,this.o,this.A.isSkippable(),this.A.isBumper(),!0,void 0,b);sY(this,this.B);1!=b&&FP("video_to_ad",["apbs"]);a=this.g;a.O=!0;a.B||bY(a);this.C.fC(this.A.C.o);this.B.show();rY(this,"show_instream_ads")}};
g.h.Qf=function(a){uY(this);this.g.getCurrentTime(1)<this.g.g.ia().lengthSeconds&&(TY(this.g),this.A&&this.A.Vb()&&(this.C.gC(this.A.C.o),null!=this.G&&(this.G.g=!0)));a=a.Ob();var b=cC(this.o);b&&b.O&&b.wb()?this.A=null:!a&&this.B instanceof bX||wY(this);var c=!0;if(a&&a!==this.A&&!a.Vb()){if(b&&b.O&&!b.wb()){b=this.F;null!=b.g[0]&&(c=b.g[0],delete b.g[0],b.g[0]=new g.oJ(1E4,c.end,{id:"10",visible:!0}),c.visible=!1,CV(b.o,[c,b.g[0]],1),CV(b.o,[b.g[0]]));this.A=a;return}c=Kr(a);b=xY(a);YV(c,"blockAllAds")?
(this.o.Aj(),this.B=new dX(this.g,this.o,1,!0),c=!1):YV(c,"hideMaster")&&14!=b?(this.B=new dX(this.g,this.o,0,!0),c=!1):(c=this.o,14==b?(this.B=new pX(this.g,c),5!=cC(this.o).Ue()&&tY(this,a)):this.B=new WW(b,this.g,c,!0),this.B.show(),c=!0)}this.A&&this.A.Vb()&&JY(this.g);this.A&&this.A.Vb()?(rY(this,"set_previous_ad_end_time"),b=this.gd,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.Vb()&&c&&(b=this.F,b.D=(0,g.G)()/1E3,b.A());this.F.F();this.A=a};
g.h.bT=function(a){(a=a.Ob())&&this.B&&(a=xY(a),this.B.adSystem=a)};
g.h.bM=function(a){a.Ob().Vb()||this.A!==a.Ob()||(wY(this),this.A=null)};
g.h.eM=function(a){var b=a.Ob();if(null!=b){var c=a.g.adBreakTime;this.O[c]=b;this.M||(this.g.ge("bl"),0==c&&a.Ob().Vb()||this.g.ge("fb"),this.M=!0)}};
g.h.aT=function(a){null!=a.Ob()&&(a.Ob().Vb()&&this.g.ge("bs"),a.Ob().C.B||a.Ob().Vb()||uY(this))};
g.h.ZS=function(a){vY(this,a.getError())};
g.h.hC=function(a){var b=a.getError();"adLoadError"==b.bc()&&a.g===this&&vY(this,b)};
g.h.cT=function(a){tY(this,a&&a.Ob())};
g.h.V=function(){wY(this);this.ib&&(this.ib.za("adsManagerLoaded",this.iC,!1,this),this.ib.za("adError",this.hC,!1,this));km(this.P);km(this.D);g.EJ(this.K);this.J=!1;this.o&&(this.o.destroy(),this.o=null);g.Re(this.C);g.Re(this.G);qY.aa.V.call(this)};
g.h.jC=function(a,b,c,d){if(3==b||19==c||2==c)a&&(d.break_type=a.Ue(),d.sst=a.Ec,d.sidx=0),GX(this.g,c,d)};g.p(yY,g.W);yY.prototype.D=function(a){this.C=-1==a?this.U.ia().lengthSeconds:a;this.o||(this.o=this.T(this.U,"progresssync",this.B));this.B();this.A.show()};
yY.prototype.F=function(){this.o&&(this.za(this.o),this.o=null);this.A.hide()};
yY.prototype.B=function(){var a=this.U.getCurrentTime(),a=Math.ceil(this.C-a);0<a?this.dc(g.T("YTP_AD_NOTIFICATION",{X_SECONDS:a})):this.A.hide()};var zY=null,BY=null;g.v("yt.www.ads.eventcache.getLastCompanionData",function(){return zY},void 0);
g.v("yt.www.ads.eventcache.getLastPlaShelfData",function(){return BY},void 0);g.C(FY,BV);FY.A=10;FY.o=1E3;FY.g="livead";g.h=FY.prototype;
g.h.create=function(){FY.aa.create.call(this);this.K.T(this.g,"beginseeking",(0,g.A)(this.Y,this,"beginseeking"));this.K.T(this.g,"endseeking",(0,g.A)(this.Y,this,"endseeking"));this.K.T(this.g,"resize",(0,g.A)(this.Y,this,"resize"));this.K.T(this.g,"presentingplayerstatechange",(0,g.A)(this.Y,this,"presentingplayerstatechange"));this.K.T(this.g,"webglsettingschanged",(0,g.A)(this.Y,this,"webglsettingschanged"));if(EY(this)){var a=jJ(this.app.U);a.addEventListener("updatekevlarcompanion",AY);a.addEventListener("onPlaShelfInfoCardsReady",
CY);window.addEventListener("yt-navigate-start",DY)}this.ge("i");a=this.g.ia().Xb||{};this.o=new mna($V(this),a);this.D=new qna(this,this.g);this.ca=!1;if(this.ib)this.ib.g.B.B=En();else{var a=this.o.P?void 0:wW(this.G),b=new OK(this.app,2);this.J=new Xz(vW(this.G),void 0,a,jJ(b),!0);this.J.setSize(-1,-1);this.ib=new eC(this.J)}if(this.o.vmap&&!this.o.fa){this.B=new qY(this);try{this.B.load(this.o.vmap)}catch(c){g.qE(c),this.Gi.g(cY,"vmap_load_exception",void 0),this.B.dispose(),this.B=null,QY(this,
OX(new NX(this)))}}else QY(this,OX(new NX(this)));this.D&&(this.P=this.app.o.g,this.P.subscribe("cuepointupdated",this.qz,this),a=KY(this),null!=a&&(a.F=g.UU(this.app)),a={},a.allowed=this.D.o,EV(this,{},a))};
g.h.destroy=function(){this.O&&RY(this);this.app.Z.experiments.g("disable_new_pause_state3")||g.lV(this.g,this.Vd,void 0);PY(this);g.Se(this.A,this.F,this.B);this.F=this.A=null;this.P.unsubscribe("cuepointupdated",this.qz,this);this.D=this.o=this.B=this.P=null;kW=hW=gW=!1;nW();this.C&&FY.aa.destroy.call(this);if(EY(this)){var a=jJ(this.app.U);a.removeEventListener("updatekevlarcompanion",AY);a.removeEventListener("onPlaShelfInfoCardsReady",CY);window.removeEventListener("yt-navigate-start",DY);zY=
null}};
g.h.isFullscreen=function(){return this.g.isFullscreen()||this.o.G};
g.h.wt=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=FY.aa.wt.call(this);return a};
g.h.getRootNode=function(){return this.g.getRootNode()};
g.h.getCurrentTime=function(a){return this.app.getCurrentTime(a)};
g.h.vt=function(){return this.W};
g.h.Or=function(a){FY.aa.Or.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.Mi(b);if(d&&!XX(c.C,d)&&(c=c.B,d.o)){var e=MW(c.g),d=Math.max(0,DX(d)+c.B+c.A-1E3*c.g.getCurrentTime(1));OL(e,"transition","opacity "+String(d)+"ms linear");OL(e,"opacity","0");SX(c,e,d,0)}}else dY(this.A,b);this.B&&!(0,window.isNaN)(b)&&("ytp-ad-fadeout"==a.style?(d=this.B,(c=d.O[b])&&c.Vb()&&d.C.eC(b)):0>b&&(b=this.ib.g,d=new xm("contentComplete"),
b.dispatchEvent(d),d.A&&(Hm(Fm(),420706009)||b.B.clear(),null!=b.o&&(d=b.o.Nh(),null!=d&&oA(d,b.B.g)))));if("livead"===a.getId()&&null!=KY(this)){b=KY(this);for(a=Math.floor(a.start/1E3);g.t(b.A[a]);)a++;d=b.ha++;c=0==a?new SV(1):new SV(2,a);d=new BX(b.ba,d,c,MX(b.ba.o,c.g),!1);b.A[a]=d;d.subscribe("adBreakComplete",b.fa,b);JX(d)}};
g.h.Pr=function(a){FY.aa.Pr.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 WW&&b.g.Cc("fullscreen"));this.B&&"ytp-ad-fadeout"==a.style&&this.B.C.ul();"livead"===a.getId()&&null!=KY(this)&&1E3*this.getCurrentTime(1)>=a.start&&(g.kV(this.g,[a],1),hY(KY(this)))};
g.h.ge=function(a){var b=a;"nl"==a&&(a=this.D,a.C++,b=a.C.toString());this.fa[b]=(0,g.G)();"bs"!=b&&"fb"!=b||EV(this,this.fa,this.da)};
g.h.qz=function(a){var b=KY(this);if(null!=b&&null!=b.F){var c=KY(this).F.getCurrentTime();(0,g.H)(a,function(a){0!=c&&a.Pd>c&&(a=new g.oJ(1E3*Math.floor(c+Math.random()*Math.max(a.Pd-10-c,0)),1E3*a.Pd,{id:"livead",priority:2}),CV(this,[a],1))},this)}};
g.h.TB=function(a){switch(a){case "addata":var b=this.o;return{adTag:b.adTag,adTest:b.uc,forceAdType:b.forceAdType,isAfvSkippableInstreamEnabled:b.W,isAfvStandardInstreamEnabled:b.ba,isBlazer:b.D,isDoubleClickEnabled:b.da,isForcedAd:b.fa,isFreeWheelEnabled:b.ga,isHouseBrandPlayer:b.Ac,isLeanback:b.G,isShortform:b.Ub,tagForChildDirected:b.tagForChildDirected};case "adstate":return this.vt();case "midrollfreqcap":if(this.B)return b=this.o.o,null!=b?b:0;b=this.A instanceof eY?this.A:null;return null!=
b?b.W:0;case "breakscount":return this.B?(b=this.B,b=null!=b.o?b.o.Re().length:0):b=this.A?this.A.Db.length:0,b;case "displaystate":return b=null,this.A&&this.A.g&&(b=this.A.g.g),{adFormat:b instanceof sW?b.adType:!1,adSkipped:b instanceof JW?b.D:!1,hasVideoStarted:b instanceof JW?b.G:!1,skippable:b instanceof JW?b.fa:!1};case "getContentVideoData":return b=aW(this),{adModule:b.adModule,partnerTrackingToken:b.Vk,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.OS=function(){return"addata adstate breakscount displaystate getContentVideoData loadedadbreaks midrollfreqcap".split(" ")};
g.h.Ad=function(){return!1};g.C(ZY,g.M);g.h=ZY.prototype;g.h.zv=function(){if(!this.g){var a=this.zv;if("lb3"==g.Y(this.U).o)var b=!1;else b=this.U.ia(),b=b.Tl||b.captionTracks.length||b.Ba&&b.va&&null!=b.va.g.en?!0:!1;(a=bZ(this,"captions",a,b))&&!this.g&&(this.g=a,this.U.ya("onApiChange"))}};
g.h.uv=function(){this.J=this.J||bZ(this,"endscreen",this.uv,g.$Y(this))};
g.h.Bv=function(){var a;if(!(a=this.B)){a=this.Bv;var b=g.Y(this.U).experiments;var c=SE(),d=c&&b.g("enable_spherical_ps4"),c=c&&b.g("enable_mesh_ps4"),e=b.g("enable_mesh_cobalt"),f=b.g("enable_spherical_kabuki"),k=this.U.ia(),l=ZO(g.Y(this.U));b=k.sk()?c||e:k.bh()?l||d||!1||f||b.g("html5_enable_spherical"):k.tg()?l||d||!1||b.g("html5_enable_spherical3d"):k.Xh()?l||b.g("html5_enable_anaglyph3d"):l&&(b.g("enable_webgl_noop")||b.g("enable_white_noise"));a=bZ(this,"webgl",a,b)}this.B=a};
g.h.Dv=function(){this.M=this.M||bZ(this,"ypc",this.Dv,g.LQ(this.U.ia(),"ypc_module"))};
g.h.Cv=function(){this.W=this.W||bZ(this,"ypc_clickwrap",this.Cv,g.LQ(this.U.ia(),"ypc_clickwrap_module"))};
g.h.yv=function(){this.P=this.P||bZ(this,"spacecast",this.yv,this.U.ia().spacecastModule)};
g.h.xv=function(){this.O=this.O||bZ(this,"heartbeat",this.xv,g.LQ(this.U.ia(),"ypc_license_checker_module"))};
g.h.rv=function(){if(!this.A){var a=this.rv;var b=g.Y(this.U);if("3"==b.C)b=!1;else if(b.G.isEmpty()&&"annotation-editor"!=b.o&&"live-dashboard"!=b.o){var c=this.U.ia();b=b.experiments.g("disable_new_iv_module_create_logic")?g.LQ(c,"iv3_module"):!!c.vf}else b=!0;if(this.A=bZ(this,"annotations_module",a,b)){var a=this.A,d;for(d in this.fa)a.subscribe(d,this.fa[d]);this.U.ya("onApiChange")}}};
g.h.vv=function(){this.F=this.F||bZ(this,"fresca",this.vv,g.LQ(this.U.ia(),"fresca_module"))};
g.h.Cp=function(){this.K||(this.K=bZ(this,"remote",this.Cp,g.Y(this.U).xb))&&this.K.create()};
g.h.Av=function(){this.C||(this.C=bZ(this,"unplugged",this.Av,g.Y(this.U).sa))&&this.C.init()};
g.h.tv=function(){if(!this.G){var a=this.tv;var b=g.Y(this.U);"3"==b.C?b=!1:"creator-endscreen-editor"==b.o?b=!0:(b=this.U.ia(),b=!!b&&!!g.PQ(b));(this.G=bZ(this,"creatorendscreen",a,b))&&this.U.ya("onApiChange")}};
g.h.V=function(){ZY.aa.V.call(this);cZ(this,!0)};g.C(dZ,g.W);dZ.B="(max-width: 656px)";dZ.A="(min-width: 657px)";dZ.o="(min-width: 1294px) and (min-height: 630px)";dZ.g="(min-width: 1720px) and (min-height: 980px)";g.h=dZ.prototype;g.h.nH=function(){this.D=new g.Ng(0,0,0,0);this.B=new g.Ng(0,0,0,0)};
g.h.Ct=function(a){g.Jp(this.element,arguments)};
g.h.fg=function(){if(this.o){var a=this.Ya();if(!a.isEmpty()){var b=!g.Xd(a,g.Sg(this.B)),c=eZ(this);b&&(this.B.width=a.width,this.B.height=a.height);a=this.app.Z;(c||b||a.ka)&&this.app.g.Y("resize",this.Ya())}}};
g.h.jT=function(a,b){fZ(this,b)};
g.h.kT=function(a){a.g&&fZ(this,a.g)};
g.h.Ya=function(){var a=this.app.Z,b=g.wF()==this.element;if(b&&OE())return new g.Wd(window.outerWidth,window.outerHeight);if(b||a.yi){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.Wd(window.innerWidth,window.innerHeight)}else if(this.P&&!this.app.oa)for(a=0;a<this.P.length;a++)if(b=this.P[a],b.query.matches)return new g.Wd(b.size.width,b.size.height);
return new g.Wd(this.element.clientWidth,this.element.clientHeight)};
g.h.JG=function(){this.o&&KW(this);(this.app.Z.experiments.g("player_state_change_resize_killswitch")||mZ(this)!=this.K)&&this.fg()};
g.h.lT=function(){KW(this)};
g.h.V=function(){this.A&&(this.A.disconnect(),this.A=null);this.G&&g.eG(this.G);this.o=null;dZ.aa.V.call(this)};g.C(nZ,g.RF);g.h=nZ.prototype;g.h.gT=function(a){a=HF(a);if(!Ud(a,this.C)){var b=2;this.F&&(b|=8);this.C=a;this.sc(b,!0)}};
g.h.PL=function(){this.F&&this.sc(8,!0);this.sc(2,!1)};
g.h.Bt=function(a){var b=HF(a);Ud(b,this.C)||(this.C=b,(a=g.FF(a))&&this.W(a)&&(this.sc(4,!0),this.g.za(this.B),this.B=this.g.T(this.A,"mouseover",this.qC),this.M=this.g.T(this.A,"mouseout",this.qC)))};
g.h.qC=function(a){a=IF(a);a&&this.W(a)||(this.C=new g.Td(window.NaN,window.NaN),oZ(this))};
g.h.wI=function(){this.sc(1,!0)};
g.h.YF=function(a){a=g.FF(a);a instanceof window.Element&&!(0<a.tabIndex)||this.sc(1,!0)};
g.h.pC=function(){this.F=!0;this.g.za(this.D);this.D=this.g.T(window.document,"mouseup",this.hT)};
g.h.hT=function(){this.F=!1;this.sc(8,!1);this.g.za(this.D);this.D=this.g.T(this.A,"mousedown",this.pC)};
g.h.rC=function(a){if(a=a.changedTouches[0])this.ca=a.identifier,this.g.za(this.G),this.G=this.g.T(this.A,"touchend",this.iT,void 0,!0),this.sc(1024,!0)};
g.h.iT=function(a){for(var b,c=0;c<a.changedTouches.length;c++){var d=a.changedTouches[c];if(d.identifier==this.ca){b=d;break}}b&&(this.g.za(this.G),this.G=this.g.T(this.A,"touchstart",this.rC,void 0,!0),this.sc(1024,!1))};
g.h.sc=function(a,b){var c=!this.o;b?(this.o|=a,a&1&&this.J.start(),a&2&&this.K.start()):(this.o&=~a,a&1&&this.J.stop(),a&2&&this.K.stop(),a&512&&this.O.stop());this.o&512&&!(this.o&128)&&this.O.Ce(this.P);var d=!this.o;c!=d&&this.Y("autohideupdate",d)};g.C(qZ,g.W);qZ.prototype.show=function(){qZ.aa.show.call(this);this.M()};
qZ.prototype.M=function(){var a=1-1/1.5;this.B=(this.B+this.J)%(this.width*a);this.C=(this.C+this.G)%(this.height*a);this.A.drawImage(this.K,-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.Ce()};
qZ.prototype.hide=function(){this.o.stop();this.F.stop();qZ.aa.hide.call(this)};g.C(tZ,g.W);var Rpa=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;tZ.prototype.show=function(){tZ.aa.show.call(this);uZ(this,function(a){a.show()})};
tZ.prototype.hide=function(){tZ.aa.hide.call(this);uZ(this,function(a){a.hide()})};
tZ.prototype.C=function(a){if(g.OV(a,this.o,!UO(g.Y(this.o)))){a={as3:!1,html5:!0,player:!0,cpn:this.o.ia().clientPlaybackNonce};var b=this.o;b.ya("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:a});b.isFullscreen()&&g.YU(b)}};g.qa(xZ);var $1=g.x("yt.player.utils.VideoTagPool.instance")||xZ.getInstance();g.v("yt.player.utils.VideoTagPool.instance",$1,void 0);g.h=xZ.prototype;g.h.Qv=function(a){if(!(this.g.length>=a)){a-=this.g.length;for(var b=0;b<a;b++)AZ(this)}};
g.h.lG=function(a,b){if(this.g.length)return this.g.pop();var c=AZ(this,a,b);a||g.kb(this.g,c);return c};
g.h.RQ=function(a){if(a&&g.eb(this.o,a)){a.src&&(VN&&0<a.readyState&&(a.currentTime=Math.max(Ipa,0)),a.removeAttribute("src"),a.load(),a.g&&a.g.o&&(a.g&&a.g.dispose(),a.g=null));for(var b in BF)BF[b][0]==a&&g.EF(b);g.kb(this.o,a);g.kb(this.A,a)}};
g.h.oH=function(a){return this.g.length>=(a||1)};
g.h.iF=function(){for(var a=this.A.length-1;0<=a;a--)zZ(this,this.A[a]);this.g.length==this.o.length&&4<=this.g.length||(4>this.o.length?this.Qv(4):(this.g=[],(0,g.H)(this.o,function(a){zZ(this,a)},this)))};
xZ.prototype.fillPool=xZ.prototype.Qv;xZ.prototype.getTag=xZ.prototype.lG;xZ.prototype.releaseTag=xZ.prototype.RQ;xZ.prototype.hasTags=xZ.prototype.oH;xZ.prototype.activateTags=xZ.prototype.iF;g.C(BZ,g.W);g.C(DZ,g.W);DZ.prototype.show=function(){DZ.aa.show.call(this);this.G()};
DZ.prototype.hide=function(){DZ.aa.hide.call(this);this.F.stop()};
DZ.prototype.G=function(){var a=g.UU(this.o),b=gZ(this.o),c=this.o.g.app.D.pa(),d=this.o.Z,e=a.Zp(),f=MT(a.ca,"bandwidth"),k=8*g.Ya(f)/1024,l=MT(a.ca,"networkactivity"),m=g.Ya(l)/1024,n=b.Ba;var q=this.o;q=(q=q.o&&q.o.K)?q.C.fb():[0];var r=g.Ya(q),w=MT(a.ca,"bufferhealth"),y=g.Ya(w),r=120<r||0>r?"Uncertain":r.toFixed(1)+" s, "+(b.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming");if(a.F){var B=a.F.g;B=B.g+" / "+B.o;UI(ET,nU(a))&&(B+=", SD only")}else B="";var D=g.VO(),
K=IQ(b,a.getCurrentTime()),K=K?K.sequence:window.NaN,X=b.videoId,Ra=b.clientPlaybackNonce,bb=b.clientPlaybackNonce?"":"display:none",e=e.totalVideoFrames?""+(e.droppedVideoFrames||0)+"/"+e.totalVideoFrames:"-",ia=a.B?a.B.ra:"",Zb;a:{if(b.wh&&(Zb=b.wh.match(/url=(https?)/))&&2==Zb.length){Zb=Zb[1];break a}Zb=""}c={video_id:X,cpn:Ra,cpn_style:bb,mime:"",dash:"no",dropped_frames:e,stream_host:ia,stream_type:Zb||d.ha,dimensions:c.clientWidth+" x "+c.clientHeight+(1<D?" * "+D:""),resolution:c.videoWidth+
" x "+c.videoHeight,volume:Math.round(this.o.J.getVolume())+"%",bandwidth_kbps:k.toFixed(0)+" Kbps",buffer_health_seconds:y.toFixed(1)+" s",live_latency_style:n?"":"display:none",live_latency_message:r,drm_style:B?"":"display:none",drm:B,sequence_number:K,sequence_number_style:"display:none",network_activity_bytes:m.toFixed(0)+" KB"};b.Ma&&(d=MI(b.Ma)?"yes":"no",d+=" ("+HI(b.Ma),b.rd&&MI(b.Ma)&&(d+="/"+HI(b.rd)),c.dash=d+")",c.mime=b.Ma.mimeType,d=b.Ma.video.fps,1<d&&(c.resolution+="@"+d),b.Ma.video.g||
b.Ma.video.primaries?(d=b.Ma.video.g||"unknown","smpte2084"==d?d+=" (PQ)":"arib-std-b67"==d&&(d+=" (HLG)"),c.color=d+" / "+(b.Ma.video.primaries||"unknown"),c.color_style=""):c.color_style="display:none");(a=kU(a))&&a.video&&(c.optimal_resolution=a.video.width+" x "+a.video.height,1<a.video.fps&&(c.optimal_resolution+="@"+a.video.fps));CZ(this.A,f);CZ(this.D,l);CZ(this.C,q);CZ(this.B,w);this.update(c);this.F.start()};g.C(EZ,g.M);EZ.prototype.get=function(a){var b=g.$a(this.o,function(b){return b[0]==a});
return b?b[1]:null};
EZ.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])}};
EZ.prototype.remove=function(a,b){if(b&&this.g){var c=this.get(a);if(c)this.g(c);else return}lb(this.o,function(b){return b[0]==a})};
EZ.prototype.V=function(){this.g&&(0,g.H)(this.o,function(a){this.g(a[1])},this)};g.C(GZ,g.M);GZ.prototype.A=function(a){this.o=a[a.length-1].intersectionRatio};
GZ.prototype.V=function(){GZ.aa.V.call(this);this.o=null;this.g&&this.g.disconnect()};g.c4=Cf(function(){var a=pa.AudioContext||pa.webkitAudioContext;try{return new a}catch(b){return b.name}});g.p(HZ,g.W);HZ.prototype.show=function(){g.W.prototype.show.call(this);this.o.Ce()};
HZ.prototype.hide=function(){this.A.stop();g.W.prototype.hide.call(this)};g.p(g.NZ,g.W);g.p(OZ,g.NZ);g.h=OZ.prototype;g.h.show=function(){this.g||(this.C.T(this.o,"videodatachange",this.B.Ce,this.B),this.C.T(this.o,"videoplayerreset",this.B.Ce,this.B));g.NZ.prototype.show.call(this)};
g.h.hide=function(){this.C&&g.EJ(this.C);g.NZ.prototype.hide.call(this)};
g.h.SK=function(a){var b=g.Y(this.o);b.experiments.g("disable_new_pause_state3")&&UO(b)&&(a=dK(a.state)&&!dK(a.g)||XU(this.o)&&g.V(a.state,2),g.bh(this.element,"transition-delay",a?"2s":""));this.B.Ce()};
g.h.qQ=function(){this.B.Ce()};
g.h.RK=function(){this.element.style.backgroundImage=""};
g.h.wy=function(){var a=g.VU(this.o);3==this.o.Wa()&&(a.wb()||g.V(a,4))?this.A.show():g.OU(this.o).M&&g.OU(this.o).M.sR()?this.A.show():QZ(this.A,this.o,a);this.g&&3!=this.A.g&&this.OR(this.o.Mf(),this.o.ia())};
g.h.OR=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];for(var c=g.Y(this.o),d,b=g.ka(b),e=b.next();!e.done;e=b.next())if(e=e.value,!(!e||e instanceof g.rQ&&!e.videoId)){d=g.WU(this.o).Ya();var f=g.VO(),k=d.width*f,f=d.height*f;if(1280<k||720<f)if(d=e.ac(c,"maxresdefault.jpg"))break;if(c.experiments.g("enable_popular_thumbnail_size_serving_for_embeds")){if(854<k||480<f)if(d=e.ac(c,"hq720.jpg")||e.ac(c,"maxresdefault.jpg"))break;if(640<k||360<f)if(d=e.ac(c,"pop2.jpg"))break;
if(560<k||315<f)if(d=e.ac(c,"sddefault.jpg"))break;if(480<k||270<f)if(d=e.ac(c,"pop1.jpg"))break}if(640<k||480<f)if(d=e.ac(c,"maxresdefault.jpg"))break;if(c.experiments.g("enable_embed_quality_improvement")){if(480<k||360<f)if(d=e.ac(c,"sddefault.jpg"))break;if(320<k||180<f)if(d=e.ac(c,"hqdefault.jpg"))break;if(120<k||90<f)if(d=e.ac(c,"mqdefault.jpg"))break}if(320<k||180<f)if(d=e.ac(c,"sddefault.jpg")||e.ac(c,"hqdefault.jpg")||e.ac(c,"mqdefault.jpg"))break;if(d=e.ac(c,"default.jpg"))break}this.D.style.backgroundImage=
d?"url("+d+")":""};g.p(SZ,g.W);SZ.prototype.C=function(a){var b=g.Y(this.o);b.experiments.g("disable_new_pause_state3")&&UO(b)&&g.bh(this.element,"transition-delay",dK(a.state)&&!dK(a.g)?"2s":"");RZ(this,a.state)};g.p(UZ,g.CJ);UZ.prototype.C=function(){this.B();var a=g.Y(this.U),b=this.U.ia(),c=[];a.J||(c.push({src:b.ac(a,"mqdefault.jpg"),sizes:"320x180"}),(a=b.ac(a,"sddefault.jpg"))&&c.push({src:a,sizes:"640x480"}));this.g.metadata=new window.MediaMetadata({title:b.title,artist:b.author,artwork:c});b=XU(this.U);this.o.has("nexttrack")!=b&&(a=c=null,b&&(c=(0,g.A)(function(){IZ(this.A,bE(),g.T("YTP_NEXT"));this.U.lj()},this),a=(0,g.A)(function(){MZ(this.A);
this.U.Ik()},this)),TZ(this,"nexttrack",c),TZ(this,"previoustrack",a))};
UZ.prototype.B=function(){var a=g.VU(this.U);a=a.isError()?"none":cK(a)?"playing":"paused";this.g.playbackState=a};
UZ.prototype.V=function(){this.g.playbackState="none";this.g.metadata=null;for(var a=g.ka(this.o),b=a.next();!b.done;b=a.next())TZ(this,b.value,null);g.CJ.prototype.V.call(this)};g.p(VZ,g.W);VZ.prototype.O=function(a,b){WZ(this,b);this.D&&XZ(this,this.D)};
VZ.prototype.M=function(a){var b=this.U.ia();this.A!=b.videoId&&WZ(this,b);this.o&&XZ(this,a.state);this.D=a.state};
VZ.prototype.K=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(ZZ,g.W);ZZ.prototype.hide=function(){this.o.stop();this.B.style.display="none";g.W.prototype.hide.call(this)};
ZZ.prototype.C=function(a){YZ(this,a.state)};
ZZ.prototype.D=function(){YZ(this,g.VU(this.A))};
ZZ.prototype.F=function(){this.B.style.display="block"};g.p($Z,g.FV);g.h=$Z.prototype;g.h.show=function(){var a=b_(this);g.FV.prototype.show.call(this);this.da&&(this.J.T(window,"blur",this.Tb),this.J.T(window.document,"click",this.mL));a||this.Y("show",!0)};
g.h.hide=function(){var a=b_(this);g.FV.prototype.hide.call(this);a_(this);a&&this.Y("show",!1)};
g.h.Je=function(a,b){this.C=a;this.M.show();b?(this.K||(this.K=this.J.T(this.U,"appresize",this.Gu)),this.Gu()):this.K&&(this.J.za(this.K),this.K=null);a&&(a.getAttribute("aria-haspopup"),a.setAttribute("aria-expanded",!0),window.document.activeElement&&g.De(a,window.document.activeElement)&&this.focus())};
g.h.Gu=function(){L1(g.OU(this.U).D,this.element,this.C)};
g.h.Tb=function(){var a=b_(this);a_(this);this.M.hide();a&&this.Y("show",!1)};
g.h.uh=function(a,b){b_(this)?this.Tb():this.Je(a,b)};
g.h.mL=function(a){var b=JF(a);b&&(g.De(this.element,b)||this.C&&g.De(this.C,b)||!g.HV(a))||this.Tb()};g.p(c_,$Z);c_.prototype.B=function(a){a?(this.A||(this.A=!0,g.cV(this.o,"mutedAutoplayImpression",{})),this.Je()):this.Tb()};
c_.prototype.onClick=function(){g.cV(this.o,"mutedAutoplayClick",{videoPlayedSeconds:this.o.getCurrentTime()-this.o.ia().fx});this.o.ug()};g.p(d_,g.CJ);g.h=d_.prototype;g.h.init=function(){var a=g.VU(this.g);this.Un(a);this.si();this.Ab()};
g.h.ry=function(a,b){if(this.ua!=b.videoId){this.ua=b.videoId;var c=this.B;c.P=b&&0<b.Ch.length?5E3:3E3;c.sc(512,!0);this.si()}};
g.h.LO=function(){this.ry(0,this.g.ia())};
g.h.Fj=function(){var a=g.eV(this.g)&&g.fV(this.g);(a=this.sa||a)||(a=g.OU(this.g).F,a=!!a&&a.gK());return a||this.qb||this.g.app.Z.Hb};
g.h.Bg=function(){var a=!this.Fj();g.S(this.g.getRootNode(),"ytp-menu-shown",!a);var b=this.ba,a=!a;(b.B=a)?b.hide():QZ(b.A,b.o,g.VU(b.o))};
g.h.KK=function(a){if(!g.De(this.g.getRootNode(),a))return!1;for(;a&&!g.Je(a);)a=a==this.g.getRootNode()?null:g.Ce(a);return!!a};
g.h.Kr=function(a){var b=this.g.getRootNode();g.S(b,"ytp-autohide",a);a&&(this.M=!1,g.Kp(b,"ytp-touch-mode"));b=this.g;a=!a;b.ya("onVideoAreaChange");b.ya(a?"onShowControls":"onHideControls")};
g.h.mP=function(a){if(dK(g.VU(this.g))&&!g.Y(this.g).Ub){var b=this.g.ia();b.videoId&&this.g.Yx(OQ(b))}this.B.o||e_(this,JF(a))||b_(this.ca)||(g.VU(this.g),g.MF(a));this.M=!0;g.R(this.g.getRootNode(),"ytp-touch-mode");this.B.sc(2,!0)};
g.h.iP=function(a){g.HV(a)&&b_(this.ca)?(this.ca.onClick(),2==this.g.Wa()&&this.g.cd()):e_(this,JF(a))||(this.B.sc(2,!0),g.HV(a)&&(this.qm()?g.MF(a):(a=g.VU(this.g),g.V(a,2)&&QU(this.g)||JZ(this.F,!cK(a)),g.Y(this.g).ra&&!dK(a)?this.ha.isActive()?(this.F.hide(),this.ha.stop()):this.ha.start():this.ty())))};
g.h.ty=function(){var a=g.VU(this.g);g.V(a,2)&&QU(this.g)||(cK(a)?this.g.md():(this.g.cd(),window.document.activeElement==this.ba.element&&this.g.getRootNode().focus()))};
g.h.jP=function(a){e_(this,JF(a))||3!=this.g.Wa()&&g.YU(this.g)};
g.h.kP=function(a){f_(this,.3,a.scale);g.MF(a)};
g.h.lP=function(a){f_(this,.1,a.scale)};
g.h.Ab=function(){var a=this.ae(),b=g.WU(this.g).Ya(),c=this.g.isFullscreen(),d=this.g.getRootNode();g.Y(this.g).experiments.g("autohide_resize_killswitch")||g.UE&&oZ(this.B);g.S(d,"ytp-fullscreen",c);g.S(d,"ytp-small-mode",!a&&(480>b.width||270>b.height));g.S(d,"ytp-big-mode",a);this.D&&sZ(this.D,b)};
g.h.PO=function(a){this.Un(a.state);this.si()};
g.h.si=function(){var a=2==this.g.Wa(),b=!0;if(a){var b=g.OU(this.g).o,c;if(c=gZ(b.app).isListed)b=b.o,c=null!=b.g&&null!=J(b.g,1)&&null!=J(ad(b.g),4)&&J(Uc(ad(b.g),gd,4),1)?!1:!0;b=c}c=g.Y(this.g);var d=c.experiments.g("embed_show_infobar_on_playback")&&c.A&&!c.F&&5==this.g.app.O,a=!!this.ua&&!g.PU(this.g)&&(a?b:c.uc||this.g.isFullscreen()||d);this.O!=a&&(this.O=a,g.S(this.g.getRootNode(),"ytp-hide-info-bar",!a))};
g.h.Un=function(a){var b=dK(a);b!=this.zb&&(this.zb=b,this.Ta&&this.za(this.Ta),this.Ta=this.T(g.WU(this.g),"touchstart",this.mP,void 0,b));var c;(c=a.wb()&&!g.V(a,32))||(c=g.OU(this.g).O,c=!!c&&c.iK());this.B.sc(128,!c);c=3==this.g.Wa();this.B.sc(256,c);c=this.g.getRootNode();if(g.V(a,2))var d=["ended-mode"];else d=[],g.V(a,8)?d.push("playing-mode"):g.V(a,4)&&d.push("paused-mode"),g.V(a,1)&&!g.V(a,32)&&d.push("buffering-mode"),g.V(a,32)&&d.push("seeking-mode"),g.V(a,64)&&d.push("unstarted-mode");
g.Ab(this.ra,d)||(g.Lp(c,this.ra),this.ra=d,g.Jp(c,d));d=g.Y(this.g);var e=g.V(a,2);g.S(c,"ytp-hide-controls",("3"==d.C?!e:"1"!=d.C)||b);g.S(c,"ytp-native-controls","3"==d.C&&!b&&!e);if(g.V(a,128)){this.D||(this.D=new tZ(this.g),g.N(this,this.D),this.D.Ia(c),g.pV(this.g,this.D.element,5));b=this.D;a=a.g;for(c=0;c<b.B.length;c++)b.za(b.B[c]);b.B=[];c=a.messageKey;d=g.Y(b.o);if("YTP_ERROR_GENERIC_WITHOUT_LINK"!=c||d.Ac)if("YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH"==c||"YTP_HTML5_PROTECTED_FLASH_FALLBACK"==
c)b.dc(vZ(b,c,"https://get.adobe.com/flashplayer/",!1,!0));else if("YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!=c||d.Ac){a=a.message.split(Rpa);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]},L:[a[d+2]]})}b.dc({H:"span",L:c})}else b.dc(vZ(b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK","//"+QO(d)+"/html5"));else if(b.dc(vZ(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.T(d[e],"click",a),b.B.push(c);this.D.show()}else this.D&&(this.D.dispose(),this.D=null)};
g.h.qm=function(){return g.eV(this.g)&&g.fV(this.g)?(this.g.Kk(!1,!1),!0):g.PU(this.g)?(g.RU(this.g,!0),!0):!1};
g.h.LK=function(a){this.qb=a;this.Bg()};
g.h.ae=function(){return!1};g.C(g_,g.FV);g_.prototype.B=function(){var a=this.A.ih(),a=FW(new DW(a.seekableStart,a.seekableEnd),a.current,0);this.D.style.width=100*a+"%"};
g_.prototype.C=function(){g.HO(g.Y(this.A))||(2==this.A.Wa()?this.o||(this.show(),this.o=this.T(this.A,"progresssync",this.B),this.B()):this.o&&(this.hide(),this.za(this.o),this.o=null))};g.p(j_,g.W);j_.prototype.V=function(){this.o&&this.o();g.W.prototype.V.call(this)};
j_.prototype.D=function(){g.fG("iv-button-mouseover")};
j_.prototype.C=function(a){g.eV(this.U);var b=g.Ip(this.U.getRootNode(),"ytp-cards-teaser-shown");g.fG("iv-teaser-clicked",b);a=0==a.screenX&&0==a.screenY;this.U.Kk(!g.fV(this.U),a,"YOUTUBE_DRAWER_MANUAL_OPEN")};
g.p(i_,g.W);g.h=i_.prototype;g.h.kB=function(){g.eV(this.U)&&g.fV(this.U)&&this.g&&3!=this.C.g&&this.Ok()};
g.h.NK=function(){this.Ok();g.fG("iv-teaser-clicked",!!this.o);this.U.Kk(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")};
g.h.MK=function(){g.fG("iv-teaser-mouseover");this.o&&this.o.stop()};
g.h.EP=function(a){this.o||!a||g.fV(this.U)||this.A&&this.A.isActive()||(Gna(this,a),g.fG("iv-teaser-shown"))};
g.h.uy=function(){this.G.stop();this.o&&this.o.isActive()&&this.J.start()};
g.h.nh=function(){this.J.stop();this.o&&!this.o.isActive()&&this.G.start()};
g.h.qO=function(){this.o&&this.o.stop()};
g.h.oO=function(){this.Ok()};
g.h.Ok=function(){!this.o||this.B&&this.B.isActive()||(this.C.hide(),g.Kp(this.U.getRootNode(),"ytp-cards-teaser-shown"),this.B=new g.qt(function(){for(var a=g.ka(this.D),b=a.next();!b.done;b=a.next())this.za(b.value);this.D=[];this.o&&(this.o.dispose(),this.o=null);h_(this.F,!0)},330,this),this.B.start())};
g.h.V=function(){var a=this.U.getRootNode();a&&g.Kp(a,"ytp-cards-teaser-shown");g.Se(this.A,this.B,this.o);g.W.prototype.V.call(this)};g.p(g.m_,g.FV);g.m_.prototype.Ca=function(a,b){g.FV.prototype.Ca.call(this,a,b);this.Y("size-change")};g.p(o_,g.FV);o_.prototype.ga=function(){this.Y("size-change")};
o_.prototype.focus=function(){this.P.focus()};
o_.prototype.ha=function(){this.Y("back")};g.p(g.p_,o_);g.p_.prototype.W=function(){this.D.Y("size-change")};
g.p_.prototype.focus=function(){for(var a=0,b=0;b<this.Ka.length;b++)if("true"==this.Ka[b].element.getAttribute("aria-checked")){a=b;break}this.Ka[a].focus()};g.p(g.t_,$Z);g.h=g.t_.prototype;g.h.show=function(){$Z.prototype.show.call(this);this.jo()};
g.h.hide=function(){$Z.prototype.hide.call(this);1<this.o.length&&g.x_(this)};
g.h.jo=function(){y_(this);this.g&&(u_(this),g.th(this.element,this.size))};
g.h.Le=function(){var a=this.o.pop();v_(this,a,this.o[this.o.length-1],!0)};
g.h.uR=function(a,b,c){this.F.dispose();this.F=null;g.R(this.element,"ytp-popup-animating");c?(g.R(a.element,"ytp-panel-animate-forward"),g.Kp(b.element,"ytp-panel-animate-back")):(g.R(a.element,"ytp-panel-animate-back"),g.Kp(b.element,"ytp-panel-animate-forward"));g.th(this.element,this.size);this.D=new g.qt(g.ya(this.lM,a,b),250,this);this.D.start()};
g.h.lM=function(a){g.Kp(this.element,"ytp-popup-animating");a.detach();g.Lp(a.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);this.D.dispose();this.D=null};
g.h.eL=function(a){if(!g.KF(a))switch(g.GF(a)){case 27:this.Tb();g.MF(a);break;case 37:1<this.o.length&&this.Le();g.MF(a);break;case 39:g.MF(a)}};
g.h.focus=function(){this.o[this.o.length-1].focus()};
g.h.V=function(){$Z.prototype.V.call(this);this.F&&this.F.dispose();this.D&&this.D.dispose()};g.p(z_,g.m_);z_.prototype.o=function(a){g.KF(a)||39!=g.GF(a)||(this.element.click(),g.MF(a))};g.p(B_,g.m_);B_.prototype.J=function(){C_(this,!this.o);this.Y("select",this.o)};
B_.prototype.getValue=function(){return this.o};g.p(F_,g.p_);g.h=F_.prototype;g.h.eN=function(){cR(this.G.element)};
g.h.yN=function(){G_(this,this.U.Ek(!0))&&IZ(this.M.F,{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{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.zN=function(){G_(this,this.U.Qx())&&IZ(this.M.F,g.RD?{H:"div",ea:["ytp-icon","ytp-icon-code"]}:{H:"svg",R:{height:"100%",viewBox:"0 0 36 36",width:"100%"},L:[{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.tV(this.U,this.o)};
g.h.CN=function(){G_(this,this.U.getVideoUrl(!0,!0))&&IZ(this.M.F,aE());g.tV(this.U,this.B)};
g.h.BN=function(){G_(this,this.U.getVideoUrl(!1,!0))&&IZ(this.M.F,aE());g.tV(this.U,this.A)};
g.h.TN=function(a){C_(this.F,a)};
g.h.UN=function(){var a=this.F.getValue();q2(this.U.app,a);this.K.Tb();g.tV(this.U,this.F)};
g.h.dP=function(a){var b=g.UU(this.U.app);b&&b.Oj(new g.QP("feedback",!1,{gpu:bU()}));if(g.OV(a,this.U,!UO(g.Y(this.U)))){a=this.U;var b=b={as3:!1,html5:!0,player:!0},c=a.kw();c.debug_error&&(b.player_error=c.debug_error.errorCode,b.player_error_details=c.debug_error.errorDetail);b.debug_text=a.Ek(!0);a.ya("onFeedbackStartRequest",b);a.isFullscreen()&&g.YU(a)}this.K.Tb()};
g.h.vP=function(){this.U.Vx();this.K.Tb()};
g.h.PK=function(a,b){E_(this,b)};g.p(J_,g.t_);g.h=J_.prototype;g.h.show=function(){this.G||(this.G=new F_(this.A,this.W,this),g.N(this,this.G),g.w_(this,this.G));g.t_.prototype.show.call(this);g.uV(this.A,this,!0);H_(this.G,!0)};
g.h.hide=function(){I_(this);g.t_.prototype.hide.call(this);g.uV(this.A,this,!1);this.G&&H_(this.G,!1)};
g.h.dN=function(a){var b=JF(a);this.g||b&&(g.Le(b,"a")||g.Me(b,"ytp-no-contextmenu"))||(g.MF(a),K_(this),this.element.style.left="",this.element.style.top="",a=HF(a),a.x++,a.y++,this.Je(),b=g.nh(window.document.body),a=g.fD(a,this.size,0,void 0,b,5),g.ih(this.element,g.Tg(a.rect)),g.EJ(this.B),this.B.T(window.document,"contextmenu",this.mN),this.B.T(this.A,"fullscreentoggled",this.QK),this.B.T(this.A,"pageTransition",this.BO))};
g.h.mN=function(a){g.KF(a)||g.De(this.element,JF(a))||this.Tb()};
g.h.QK=function(){this.Tb();K_(this)};
g.h.BO=function(){this.Tb()};var d4,Spa;d4=[{option:g.U3.To,message:"YTP_COLOR_WHITE"},{option:g.U3.dF,message:"YTP_COLOR_YELLOW"},{option:g.U3.BD,message:"YTP_COLOR_GREEN"},{option:g.U3.lD,message:"YTP_COLOR_CYAN"},{option:g.U3.KC,message:"YTP_COLOR_BLUE"},{option:g.U3.RD,message:"YTP_COLOR_MAGENTA"},{option:g.U3.cu,message:"YTP_COLOR_RED"},{option:g.U3.Ao,message:"YTP_COLOR_BLACK"}];Spa=[{option:0,text:"0%"},{option:.25,text:"25%"},{option:.5,text:"50%"},{option:.75,text:"75%"},{option:1,text:"100%"}];
g.O_=[{option:"fontFamily",message:"YTP_FONT_FAMILY",options:[{option:g.V3.Xt,message:"YTP_FONT_FAMILY_MONO_SERIF"},{option:g.V3.bu,message:"YTP_FONT_FAMILY_PROP_SERIF"},{option:g.V3.Wt,message:"YTP_FONT_FAMILY_MONO_SANS"},{option:g.V3.Mo,message:"YTP_FONT_FAMILY_PROP_SANS"},{option:g.V3.CASUAL,message:"YTP_FONT_FAMILY_CASUAL"},{option:g.V3.CURSIVE,message:"YTP_FONT_FAMILY_CURSIVE"},{option:g.V3.Qo,message:"YTP_FONT_FAMILY_SMALL_CAPS"}]},{option:"color",message:"YTP_FONT_COLOR",options:d4},{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:d4},{option:"backgroundOpacity",message:"YTP_BACKGROUND_OPACITY",options:Spa},{option:"windowColor",message:"YTP_WINDOW_COLOR",options:d4},{option:"windowOpacity",message:"YTP_WINDOW_OPACITY",options:Spa},{option:"charEdgeStyle",message:"YTP_CHAR_EDGE_STYLE",
options:[{option:g.T3.NONE,message:"YTP_EDGE_STYLE_NONE"},{option:g.T3.DROP_SHADOW,message:"YTP_EDGE_STYLE_DROP_SHADOW"},{option:g.T3.RAISED,message:"YTP_EDGE_STYLE_RAISED"},{option:g.T3.DEPRESSED,message:"YTP_EDGE_STYLE_DEPRESSED"},{option:g.T3.wu,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(L_,g.CJ);g.h=L_.prototype;
g.h.yw=function(a){var b=!1,c=g.GF(a),d=JF(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey,f=!1,k=!1,l=g.Y(this.g);g.KF(a)?(e=!1,k=!0):l.je&&(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.OU(this.g).B)&&e&&!f&&d.A&&d.A.g)switch(c){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:f=d.A.tw(c)}l.Ac||!e||f||(f=String.fromCharCode(c).toLowerCase(),this.A+=f,0=="awesome".indexOf(this.A)?(f=!0,7==this.A.length&&g.Np(this.g.getRootNode(),
"ytp-color-party")):(this.A=f,f=0=="awesome".indexOf(this.A)));if(e&&!f){switch(c){case 32:k=!cK(g.VU(this.g));JZ(this.o,k);k?this.g.cd():this.g.md();k=f=!0;break;case 37:this.g.Kd()&&(IZ(this.o,iE()),this.g.be(-5*this.g.Uc()),k=f=!0);break;case 39:this.g.Kd()&&(IZ(this.o,$D()),this.g.be(5*this.g.Uc()),k=f=!0);break;case 38:k=Math.min(this.g.getVolume()+5,100);KZ(this.o,k,!1);this.g.setVolume(k);k=f=!0;break;case 40:k=Math.max(this.g.getVolume()-5,0);KZ(this.o,k,!0);this.g.setVolume(k);k=f=!0;break;
case 27:this.D()&&(k=f=!0);break;case 36:this.g.yc(0);k=f=!0;break;case 35:this.g.yc(window.Infinity),k=f=!0}if("3"!=l.C)switch(c){case 67:g.OU(this.g).g&&(k=this.g.Bc("captions","track"),(f=g.OU(this.g).g)&&f.hB(),f=this.o,k=k&&k.displayName?g.T("YTP_SUBTITLES_OFF"):g.T("YTP_SUBTITLES_ON"),IZ(f,ZD(),k),k=f=!0);break;case 79:P_(this,"textOpacity")&&(f=!0);break;case 87:P_(this,"windowOpacity")&&(f=!0);break;case 187:P_(this,"fontSizeIncrement",!1,!0)&&(f=!0);break;case 189:P_(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.ih(),this.g.yc(n/10*(k.seekableEnd-k.seekableStart)+k.seekableStart),k=f=!0)}}b&&this.ts(!0);(b||k)&&this.C.sc(2,!0);(f||e&&N_(this,c,a.shiftKey))&&g.MF(a);l.Fb&&(a={keyCode:g.GF(a),altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:g.KF(a),fullscreen:this.g.isFullscreen()},this.g.ya("onKeyPress",a))};
g.h.zw=function(a){a=g.GF(a);var b=g.OU(this.g).B;b&&b.A&&b.A.g&&b.A.ww(a);9==a&&this.ts(!0)};
g.h.ts=function(a){g.S(this.g.getRootNode(),"ytp-probably-keyboard-focus",a);g.S(this.F.element,"ytp-probably-keyboard-focus",a)};
g.h.zy=function(a){g.OU(this.g).g&&this.g.yd("captions","sampleSubtitles",a)};
g.h.V=function(){g.tt(this.B);g.CJ.prototype.V.call(this)};g.p(R_,g.W);g.h=R_.prototype;g.h.hide=function(){g.Kp(this.o.getRootNode(),"ytp-expand-pause-overlay");g.W.prototype.hide.call(this)};
g.h.NM=function(){this.W=!0;g.Kp(this.o.getRootNode(),"ytp-expand-pause-overlay");this.G.focus()};
g.h.PM=function(){this.W=!1;g.R(this.o.getRootNode(),"ytp-expand-pause-overlay")};
g.h.fL=function(){T_(this,this.C-this.F)};
g.h.gL=function(){T_(this,this.C+this.F)};
g.h.RM=function(a,b){if(g.OV(b,this.o,this.fa)){var c=this.A[a],d=c.jc().videoId,e=c.getPlaylistId();g.I2(this.o.app,d,c.Od,e,void 0,void 0)}};
g.h.hL=function(){this.zr(g.WU(this.o).Ya())};
g.h.iL=function(a){g.V(a.state,1)||g.V(a.state,16)||g.V(a.state,32)||(g.V(a.state,4)&&!g.V(a.state,2)?this.A.length&&(this.W||(g.R(this.o.getRootNode(),"ytp-expand-pause-overlay"),S_(this)),this.J.show()):this.J.hide())};
g.h.zr=function(a){var b=16/9,c=this.da.ae();a=a.width-(c?136:68);for(var c=Math.ceil(a/(c?320:192)),c=(a-8*c)/c,b=Math.floor(c/b),d=0;d<this.D.length;d++){var e=this.D[d].xa["ytp-suggestion-image"];e.style.width=c+"px";e.style.height=b+"px"}this.M.style.height=b+"px";this.P=c;this.F=a;this.C=0;this.lB(0);S_(this)};
g.h.jL=function(){var a=this.o.ia();a.Xf?(a=(0,g.ye)(a.Xf,function(a){return a&&!a.list}),this.A=(0,g.I)(a,function(a){return g.FZ(a)})):this.A.length=0;
Ina(this)};
g.h.lB=function(a){this.M.scrollLeft=-a};
g.p(Q_,g.M);Q_.prototype.start=function(a,b,c){this.g=a;this.G=b;this.D=c;this.F=(0,g.sG)();this.A()};
Q_.prototype.A=function(){var a=(0,g.sG)()-this.F,b=this.B;a=Cia(b,a/this.D);if(0==a)b=b.F;else if(1==a)b=b.G;else var c=Rd(b.F,b.C,a),d=Rd(b.C,b.D,a),b=Rd(b.D,b.G,a),c=Rd(c,d,a),d=Rd(d,b,a),b=Rd(c,d,a);b=g.Pd(b,0,1);this.C((this.G-this.g)*b+this.g);1>b&&this.o.start()};g.p(U_,g.W);U_.prototype.A=function(a){g.OV(a,this.o)&&this.o.Rx(this.kc)};g.p(V_,$Z);g.h=V_.prototype;g.h.show=function(){$Z.prototype.show.call(this);this.F.T(this.A,"videodatachange",this.Ar);this.F.T(this.A,"onPlaylistUpdate",this.Ar);this.Ar()};
g.h.hide=function(){$Z.prototype.hide.call(this);g.EJ(this.F);W_(this,null)};
g.h.Ar=function(){W_(this,this.A.Mf())};
g.h.Nn=function(){var a=this.o.gn;if(a==this.G)this.B.element.setAttribute("aria-checked",!1),this.B=this.D[this.o.Wd()];else{for(var b=g.ka(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 U_(this.A,this.o,c);this.D.push(d);d.Ia(this.Ka)}this.B=this.D[this.o.Wd()];this.G=a}this.B.element.setAttribute("aria-checked",!0)};
g.h.GP=function(a){var b=this.A.getVideoUrl(!0);PV(b,this.A,a)};
g.h.focus=function(){this.B.focus()};
g.h.V=function(){this.hide();$Z.prototype.V.call(this)};g.p(X_,g.W);X_.prototype.A=function(){g.S(this.element,"ytp-playlist-menu-button-tiny",400>g.WU(this.B).Ya().width);this.o&&2!=this.B.Wa()?(this.update({text:g.T("YTP_PLAYLIST_POSITION",{CURRENT_POSITION:this.o.Wd()+1,PLAYLIST_LENGTH:this.o.getLength()}),title:g.T("YTP_PLAYLIST_NAME",{PLAYLIST_NAME:this.o.title})}),this.g||(this.show(),w0(this.C))):this.g&&(this.hide(),w0(this.C))};
X_.prototype.D=function(){this.o&&this.o.unsubscribe("shuffle",this.A,this);(this.o=this.B.Mf())&&this.o.subscribe("shuffle",this.A,this);this.A()};g.p(Y_,g.W);Y_.prototype.B=function(a){this.Jb(g.V(a.state,2))};
Y_.prototype.A=function(){g.VU(this.o);this.o.cd()};g.p(Z_,$Z);g.h=Z_.prototype;g.h.EO=function(a){a=JF(a);g.De(this.O,a)||g.De(this.F,a)||this.uh()};
g.h.Tb=function(){$Z.prototype.Tb.call(this);this.A.Ei(this.element)};
g.h.show=function(){var a=this.g;$Z.prototype.show.call(this);this.Hy();a||this.o.ya("onSharePanelOpened")};
g.h.Hy=function(){g.R(this.element,"ytp-share-panel-loading");g.Kp(this.element,"ytp-share-panel-fail");var a=this.o.ia(),b=this.o.getPlaylistId(),c=b&&this.G.checked;g.S(this.element,"ytp-share-panel-has-playlist",!!b);var d={action_get_share_info:1,feature:"player_embedded",video_id:a.videoId},e=g.Y(this.o);e.Fc&&(d.authuser=e.Fc);e.pageId&&(d.pageid=e.pageId);c&&(d.list=b);g.KE(g.Y(this.o).baseYtUrl+"share_ajax",{method:"GET",onError:(0,g.A)(this.Gy,this),Mb:(0,g.A)(function(a,b){if(b){if(b.actions&&
YF(b.actions),!this.na()){g.Kp(this.element,"ytp-share-panel-loading");$_(this);for(var c=b.links,d=0,e=0;e<c.length&&3>d;e++){var f=c[e],k=Jna(f.img);k&&(k=new g.W({H:"a",ea:["ytp-share-panel-service-button","ytp-button"],R:{href:f.url,target:"_blank",title:f.sname},L:[k]}),k.X("click",g.ya(this.pP,f.url)),g.Qe(k,k_(this.A,k.element)),this.B.push(k),d++)}c=new g.W({H:"a",ea:["ytp-share-panel-service-button","ytp-button"],L:[{H:"span",N:"ytp-share-panel-service-button-more",L:[g.RD?{H:"div",ea:["ytp-icon",
"ytp-icon-share-more"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},L:[{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.T("YTP_MORE")}});c.X("click",(0,g.A)(this.lO,this,b.more));g.Qe(c,k_(this.A,c.element));this.B.push(c);this.Ca("buttons",this.B)}}else this.Gy()},this),
Xc:d,withCredentials:!0});a=e.getVideoUrl(a.videoId,c?b:void 0,void 0,!0);this.Ca("link",a);this.Ca("linkText",a);cR(this.D)};
g.h.Gy=function(){g.Kp(this.element,"ytp-share-panel-loading");g.R(this.element,"ytp-share-panel-fail")};
g.h.pP=function(a,b){if(g.HV(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={});var c=window;var e=a instanceof Ad?a:Dd("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(",");fc()&&c.navigator&&c.navigator.standalone&&
f&&"_self"!=f?(l=c.document.createElement("A"),g.Nd(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=Bd(e),c&&(g.YO&&Ja(e,";")&&(e="'"+e.replace(/'/g,"%27")+"'"),c.opener=null,e=Od(pd("b/12014412, meta tag with sanitized URL"),'<META HTTP-EQUIV="refresh" content="0; url='+Ha(e)+'">'),c.document.write(g.Gd(e)),c.document.close())):
c=c.open(Bd(e),f,l);c&&(c.opener||(c.opener=window),c.focus());g.MF(b)}};
g.h.lO=function(a,b){PV(a,this.o,b)&&this.o.ya("SHARE_CLICKED")};
g.h.yL=function(a){!a&&b_(this)&&this.uh()};
g.h.focus=function(){this.D.focus()};
g.h.V=function(){$Z.prototype.V.call(this);$_(this)};g.p(a0,g.W);a0.prototype.F=function(){this.G.uh(this.element,!1);g.tV(this.o,this)};
a0.prototype.C=function(){var a=g.Y(this.o);this.Ca("icon",a.experiments.g("embed_new_share_icon")&&a.A?g.RD?{H:"div",ea:["ytp-icon","ytp-icon-ios-share"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"-6 -6 36 36",width:"100%"},L:[{H:"path",Pa:!0,N:"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.RD?{H:"div",ea:["ytp-icon","ytp-icon-sharrow"]}:{H:"svg",
R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"path",Pa:!0,N:"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"}}]});var a=a.wi&&2!=this.o.Wa(),b=g.WU(this.o).Ya().width;this.B=!!this.o.ia().videoId&&300<=b&&!a;g.S(this.A,"ytp-share-button-visible",this.B);a=480<b;b=g.Y(this.o);b.experiments.g("enable_share_button_title")&&
b.A&&(g.S(this.A,"ytp-show-share-title",a),this.Ca("share",a?g.T("YTP_SHARE"):""));g.uV(this.o,this,this.B&&this.D)};
a0.prototype.V=function(){g.W.prototype.V.call(this);g.Kp(this.A,"ytp-share-button-visible")};g.p(b0,g.W);b0.prototype.B=function(){var a=g.UU(this.o.app);a&&a.o.g.webkitShowPlaybackTargetPicker()};
b0.prototype.A=function(){var a=g.UU(this.o.app);this.Jb(!!a&&a.Yb);this.Ca("icon",gV(this.o)?g.RD?{H:"div",ea:["ytp-icon","ytp-icon-airplay-on"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{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.RD?{H:"div",ea:["ytp-icon","ytp-icon-airplay-off"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"path",Pa:!0,N:"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(c0,g.FV);g.h=c0.prototype;g.h.VK=function(a){g.V(a.state,32)?d0(this,this.o.ia()):this.G.hide()};
g.h.vn=function(){var a=this.o.ih(),b=a.current,c=fQ(this.Ib,141),b=this.Ib.g[c].yo(b);b!=this.M&&(c=hQ(this.Ib,b,141),this.D=HW(this.ga,c,141,141,!0),g.ih(this.fa,(this.J-this.D.width)/2),this.M=b);g.Fe(this.ha,g.GV(this.P?a.current-a.seekableEnd:a.current));g.DG(this.K);a=(0,g.A)(this.lo,this);this.K=g.CG(a,1,void 0);this.O.Vi()};
g.h.WK=function(a,b){d0(this,b)};
g.h.lo=function(){g.O(this.A,!1);g.DG(this.K);var a=Math.round(.5*this.D.width),b=Math.round(.5*this.D.height),c=this.o.ih(),d=c.current/(c.seekableEnd-c.seekableStart),c=this.Ib.g[0].nC(),e=this.Ib.g[0].At(),d=a*(e-c+1)*d-this.J/2,f=Math.floor(d/a)+c,e=Math.min(f+Math.min(20,Math.ceil(this.J/a)),e),f=Math.max(f,c),k;if(this.C>=f&&this.B<=e){for(k=this.C;k>e;k--)g.we(this.A.children[k-this.B]);for(k=f-1;k>=this.B;k--)g.we(this.A.children[k-this.B]);for(k=this.B-1;k>=f;k--)this.A.insertBefore(e0(this,
k,a,b),this.A.firstChild);k=this.C+1}else g.te(this.A),k=f;for(;k<=e;k++){var l=e0(this,k,a,b);this.A.appendChild(l)}for(k=f;k<=e;k++)g.bh(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.UK=function(){for(var a=this.B;a<=this.C;a++)jQ(this.Ib,a,this.D.width)};
g.h.TK=function(){var a=g.WU(this.o).Ya();this.J!=a.width&&(this.J=a.width,this.Ib&&(this.vn(),this.lo()))};
g.h.XK=function(a){this.element.style.g=a+"px"};
g.h.show=function(){g.FV.prototype.show.call(this);H1(this.da,!1)};
g.h.hide=function(){this.Ib&&d0(this,null);g.FV.prototype.hide.call(this);H1(this.da,!0)};
g.h.V=function(){d0(this,null);g.FV.prototype.V.call(this)};
c0.g=200;g.p(f0,g.W);g.h=f0.prototype;g.h.ZK=function(a){g.V(a.state,32)?h0(this,this.o.ia()):this.g&&(g.V(a.state,16)||g.V(a.state,1))||this.B.hide()};
g.h.bL=function(a,b){h0(this,b)};
g.h.aL=function(){var a=g.VU(this.o);(g.V(a,32)||g.V(a,16))&&g0(this)};
g.h.YK=function(){this.C=window.NaN;g0(this)};
g.h.hide=function(){this.Ib&&h0(this,null);g.W.prototype.hide.call(this)};g.p(j0,g.W);g.h=j0.prototype;g.h.cL=function(){g.Y(this.A).ra?(g.dV(this.A,this.A.isFullscreen()?"fullscreen_exit":"fullscreen_enter"),g.YU(this.A)):this.o.uh(this.element,!0)};
g.h.wz=function(){i0(this);this.o.Je(this.element,!0)};
g.h.dL=function(){g.wF()==this.A.getRootNode()?this.C.start():(this.C.stop(),this.o&&this.o.hide())};
g.h.AF=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.wz()}};
g.h.yy=function(){this.Jb(QV(this.A))};
g.h.OA=function(a){if(a){var b=g.RD?{H:"div",ea:["ytp-icon","ytp-icon-full-screen-close"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"g",N:"ytp-fullscreen-button-corner-2",L:[{H:"path",Pa:!0,N:"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",N:"ytp-fullscreen-button-corner-3",L:[{H:"path",Pa:!0,N:"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",N:"ytp-fullscreen-button-corner-0",L:[{H:"path",Pa:!0,N:"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",N:"ytp-fullscreen-button-corner-1",L:[{H:"path",Pa:!0,N:"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.T("YTP_EXIT_FULLSCREEN");window.document.activeElement==this.element&&this.A.getRootNode().focus()}else b=g.RD?{H:"div",ea:["ytp-icon","ytp-icon-full-screen"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"g",N:"ytp-fullscreen-button-corner-0",L:[{H:"path",Pa:!0,N:"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",N:"ytp-fullscreen-button-corner-1",L:[{H:"path",Pa:!0,N:"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",N:"ytp-fullscreen-button-corner-2",L:[{H:"path",Pa:!0,N:"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",N:"ytp-fullscreen-button-corner-3",L:[{H:"path",Pa:!0,N:"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.T("YTP_FULLSCREEN");this.Ca("icon",
b);this.Ca("title",this.o?null:a);w0(this.D.o)};
g.h.V=function(){this.o||(this.B(),this.B=null);g.W.prototype.V.call(this)};g.p(k0,$Z);g.h=k0.prototype;g.h.show=function(){var a=this.g;$Z.prototype.show.call(this);a||(this.B.T(this.o,"presentingplayerstatechange",this.yr),this.B.T(this.o,"videodatachange",this.yr),this.yr())};
g.h.hide=function(){this.B&&(g.EJ(this.B),$Z.prototype.hide.call(this))};
g.h.yr=function(){var a=this.o.ia(),b=a.Ch,c;for(c=0;c<b.length;c++){var d=this.A[c];d||(d=new g.W({H:"button",ea:["ytp-multicam-menu-item","ytp-button"],R:{"aria-checked":"{{selected}}","data-id":"{{videoId}}"},L:[{H:"div",N:"ytp-multicam-menu-item-title",L:["{{cameraName}}"]}]}),d.X("click",g.ya(this.QM,c),this),d.Ia(this.Ka),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=SO(g.Y(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.VU(this.o);a=b.length||!a.Pb();cK(c)||g.V(c,4)||a||!b_(this)||this.uh()};
g.h.QM=function(a){this.o.ia();var b=this.o,c=this.o.ia().Ch[a];a=g.UU(b.app,1).g;var d=b.getCurrentTime();if(c.id==a.videoId)g.UU(b.app)!=g.UU(b.app,1)&&(c=b.app,NY(c,MY(c,1)),a.Ba||b.yc(d));else{var e=b.app;NY(e,MY(e,4));B2(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.ia(),b=a.Ch,c=0;c<b.length;c++)if(b[c].id==a.videoId){this.A[c].focus();break}};
g.h.V=function(){g.Se(this.A);$Z.prototype.V.call(this)};g.p(l0,g.W);l0.prototype.F=function(a){this.B("newdata"==a)};
l0.prototype.B=function(a){var b=this.o.ia(),c=b.Ch,d=g.VU(this.o),d=(cK(d)||g.V(d,4))&&0<c.length;this.Jb(d);a&&(this.C=!0);if(d){this.C&&this.D.Ce();a=null;for(var d="",e=0;e<c.length;e++)if(c[e].id==b.videoId){a=c[e].title;d=g.T("YTP_MULTICAM_INDEX",{CAMERA_INDEX:e+1,CAMERA_COUNT:c.length})+"\n";break}this.update({text:d+a,preview:b.ac(g.Y(this.o),"default.jpg")});w0(this.A)}else this.D.stop()};
l0.prototype.G=function(){J1(this.A,this.element,g.T("YTP_MORE_CAMERAS_AVAILABLE"));this.C=!1};g.C(m0,g.M);var Tpa=new hC(0,0,.4,0,.2,1,1,1);m0.prototype.o=function(){var a=(0,g.sG)()-this.C,a=a<this.g?a/this.g:1;this.A(iC(Tpa,a));1>a&&this.B.start()};
var Kna=/[0-9.-]+|[^0-9.-]+/g;g.p(t0,g.W);t0.prototype.qd=function(a){this.B=300<=a.width;this.Jb(this.B);g.uV(this.o,this,this.B&&this.G)};
t0.prototype.ha=function(){g.Y(this.o).M?this.o.He()?(g.dV(this.o,"unmute"),this.o.ug()):(g.dV(this.o,"mute"),this.o.mute()):this.da.uh(this.element,!0);g.tV(this.o,this)};
t0.prototype.ga=function(a){s0(this,a.volume,a.muted)};
var Lna=["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"],Mna=["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.W);x0.prototype.A=function(){var a=g.UU(this.o.app);a&&(a=a.o,a.g.webkitSetPresentationMode("picture-in-picture"==a.g.webkitPresentationMode?"inline":"picture-in-picture"))};g.p(z0,g.W);z0.prototype.G=function(a){y0(this,a.state)};
z0.prototype.F=function(){g.S(this.element,"ytp-play-button-playlist",XU(this.o))};
z0.prototype.J=function(){2==this.A?g.dV(this.o,"pause"):3==this.A?g.dV(this.o,"replay"):1==this.A?g.dV(this.o,"play"):4==this.A&&g.dV(this.o,"stop");cK(g.VU(this.o))?this.o.md():this.o.cd()};
z0.prototype.V=function(){this.B&&this.B();g.W.prototype.V.call(this)};g.p(C0,g.W);g.h=C0.prototype;g.h.mj=function(){D0(this);this.F&&(this.za(this.F),this.F=null);this.G=this.o.ia(1);if(this.A=this.o.Mf())this.A.subscribe("shuffle",this.mj,this),this.F=this.T(this.o,"progresssync",this.kL);this.D=E0(this);B0(this);this.qd(g.WU(this.o).Ya())};
g.h.qd=function(a){a=void 0===a?g.WU(this.o).Ya():a;var b=XU(this.o)||this.B&&g.qV(this.o)||F0(this);this.Jb(b&&(this.B||400<=a.width))};
g.h.lL=function(a){g.dV(this.o,this.B?"next":"previous");var b=!0;this.K?b=g.OV(a,this.o):g.MF(a);b&&(this.B?this.o.lj(!0):this.D?this.o.yc(0):this.o.Ik(!0))};
g.h.kL=function(){var a=E0(this);a!=this.D&&(this.D=a,B0(this))};
g.h.V=function(){this.C&&(this.C(),this.C=null);D0(this);g.W.prototype.V.call(this)};g.p(H0,g.FV);g.h=H0.prototype;g.h.pL=function(a){if(!g.KF(a)){var b=!1;switch(g.GF(a)){case 36:this.A.yc(0);b=!0;break;case 35:this.A.yc(window.Infinity);b=!0;break;case 34:this.A.be(-60);b=!0;break;case 33:this.A.be(60);b=!0;break;case 38:this.A.be(5);b=!0;break;case 40:this.A.be(-5),b=!0}b&&g.MF(a)}};
g.h.Ay=function(a,b){G0(this,b,"newdata"==a)};
g.h.HG=function(){this.Ay("newdata",this.A.ia())};
g.h.oL=function(){O0(this.A.ia())?g.VU(this.A).wb()&&P0(this,!0):P0(this,!1)};
g.h.nL=function(a){0<hK(a,64)||!O0(this.A.ia())?P0(this,!1):cK(a.state)&&0>hK(a,64)&&P0(this,!0);this.B&&!g.V(a.state,32)&&3!=this.A.Wa()&&this.B.cancel()};
g.h.sL=function(a,b,c){var d=g.mh(this.element),e=R0(this).g,f=c?c.getAttribute("data-tooltip"):void 0;f&&(a=FW(this.o,Number(c.getAttribute("data-position")),0)*e+g.mh(this.zb).x);this.sa.x=a-d.x;this.sa.y=b-d.y;c=R0(this);a=EW(this.o,c.o);b=this.Fa;c=c.position+this.Ub;d=f||g.GV(this.ua?a-this.o.g:a);f=!!f;b.fa||(3==b.o&&b.We(),1!=b.o&&(b.element.className="ytp-tooltip ytp-bottom",b.o=1,b.K&&b.J.show(),b.B=HQ(b.O.ia()),b.B&&b.B.subscribe("l",b.My,b)),b.update({text:d,title:""}),g.S(b.element,"ytp-text-detail",
!!f),d=-1,b.B&&(d=fQ(b.B,160*b.D),d=b.B.g[d].yo(a)),M1(b,d),K1(b,!!f,c));g.S(this.A.getRootNode(),"ytp-progress-bar-hover",!g.V(g.VU(this.A),64));K0(this)};
g.h.rL=function(){var a=this.Fa;1==a.o&&a.We();g.Kp(this.A.getRootNode(),"ytp-progress-bar-hover")};
g.h.qL=function(a,b){g.uE(this.D);this.D=window.NaN;this.Bb=b;this.A.yc(EW(this.o,R0(this).o),!1);g.R(this.element,"ytp-drag");(this.Na=cK(g.VU(this.A)))&&this.A.md()};
g.h.tL=function(){this.da=0;g.Kp(this.element,"ytp-pull-ui");g.Kp(this.element,"ytp-pulling");if(0<this.G){var a=(0,g.sG)(),b=this.G,c=R0(this).position;g.uE(this.D);this.D=bR((0,g.A)(this.Ey,this,a,b,c),0)}if(g.V(g.VU(this.A),32)||3==this.A.Wa())this.A.yc(EW(this.o,R0(this).o)),g.Kp(this.element,"ytp-drag"),this.Na&&!g.V(g.VU(this.A),2)&&this.A.cd()};
g.h.Ey=function(a,b,c){var d=1-Math.pow(1-((0,g.sG)()-a)/200,3),e=c+d*(this.F*this.C-c);if(0>d||1<d)d=1;Q0(this,(1-d)*b,e,this.F);this.D=1>d?bR((0,g.A)(this.Ey,this,a,b,c),0):window.NaN};
g.h.uL=function(a,b){var c=!1,d=!1,e=R0(this);3600<=this.o.getLength()&&(Q0(this,this.Bb-b-10,e.position,e.o),d=!0,c=this.G>.1*(this.J?60:40),e=R0(this));g.S(this.element,"ytp-pull-ui",d);c&&g.R(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.da||g.vE(this.D);c&&(this.D=bR((0,g.A)(this.Dy,this,(0,g.sG)(),this.K),0));this.da=c;this.A.yc(EW(this.o,e.o),!1)};
g.h.Dy=function(a,b){if(this.da){var c=this.C*(this.W-1);this.K=g.Pd(b+this.da*((0,g.sG)()-a)*.3,0,c);J0(this);this.A.yc(EW(this.o,R0(this).o),!1);0<this.K&&this.K<c&&(this.D=bR((0,g.A)(this.Dy,this,a,b),0))}};
g.h.Cy=function(){this.Ca("clipstarticon",VD());this.Ca("clipendicon",VD());g.R(this.element,"ytp-clip-hover")};
g.h.By=function(){this.Ca("clipstarticon",XD());this.Ca("clipendicon",WD());g.Kp(this.element,"ytp-clip-hover")};
g.h.wn=function(){this.O=0;this.M=window.Infinity;N0(this);I0(this,this.F,this.ha)};
g.h.Fy=function(a){a=g.ka(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.visible){var c=b.getId();if(!this.P[c]){var d=g.pe("DIV");b.tooltip&&(d.setAttribute("data-tooltip",b.tooltip),d.setAttribute("data-position",b.start/1E3));this.P[c]=b;this.ka[c]=d;S0(this,b,d);"ytp-chapter-marker"==b.style?this.oc.appendChild(d):this.Yb.appendChild(d)}}else U0(this,b)};
g.h.vL=function(a){a=g.ka(a);for(var b=a.next();!b.done;b=a.next())U0(this,b.value)};
g.h.V=function(){g.vE(this.D);this.D=window.NaN;M0(this,!1);g.FV.prototype.V.call(this)};g.p(V0,B_);V0.prototype.C=function(){g.OU(this.U).A&&3!=this.U.Wa()?this.A||(n1(this.B,this),this.A=!0):this.A&&(o1(this.B,this),this.A=!1);var a=g.OU(this.U).A;C_(this,!!a&&a.loaded)};
V0.prototype.D=function(a){a?this.U.Hk("annotations_module"):this.U.mn("annotations_module")};
V0.prototype.V=function(){this.A&&o1(this.B,this);B_.prototype.V.call(this)};g.p(g.W0,g.m_);g.h=g.W0.prototype;g.h.open=function(){g.w_(this.A,this.C)};
g.h.enable=function(a){this.G?a||(this.G=!1,this.nj(!1)):a&&(this.G=!0,this.nj(!0))};
g.h.nj=function(a){a?n1(this.A,this):o1(this.A,this)};
g.h.nd=function(a){this.Y("select",a)};
g.h.xL=function(a){"true"!=this.o[a].element.getAttribute("aria-disabled")&&this.nd(a)};
g.h.df=function(a){return a.toString()};
g.h.wL=function(a){g.KF(a)||39!=g.GF(a)||(this.open(),g.MF(a))};
g.h.V=function(){this.G&&o1(this.A,this);g.m_.prototype.V.call(this);for(var a in this.o)this.o[a].dispose()};g.p(Z0,g.W0);Z0.prototype.F=function(){var a=this.U.pr();1<a.length?(g.Y0(this,(0,g.I)(a,this.B)),this.K=g.Cb(a,this.B,this),this.J.dc(a.length?" ("+a.length+")":""),this.Y("size-change"),g.X0(this,this.B(this.U.hh())),this.enable(!0)):this.enable(!1)};
Z0.prototype.nd=function(a){g.W0.prototype.nd.call(this,a);this.U.rr(this.K[a]);this.A.Le()};
Z0.prototype.B=function(a){return a.toString()};g.p($0,B_);$0.prototype.C=function(){var a=this.U.Wa();if(2!=a&&3!=a&&g.qV(this.U))this.B||(n1(this.D,this),this.B=!0,this.A.push(this.T(this.U,"videodatachange",this.C)),this.A.push(this.T(this.U,"videoplayerreset",this.C)),this.A.push(this.T(this.U,"onPlaylistUpdate",this.C)),this.A.push(this.T(this.U,"autonavchange",this.F)),this.F(this.U.ia().autonavState));else if(this.B){o1(this.D,this);this.B=!1;for(var a=g.ka(this.A),b=a.next();!b.done;b=a.next())this.za(b.value)}};
$0.prototype.F=function(a){C_(this,1!=a)};
$0.prototype.G=function(a){this.U.app.g.ya("onAutonavChangeRequest",1!=(a?2:1))};
$0.prototype.V=function(){this.B&&o1(this.D,this);B_.prototype.V.call(this)};g.p(a1,g.W0);a1.prototype.B=function(){var a=this.U.Wa();if(2!=a&&3!=a&&(this.F=aV(this.U),this.K=g.ZU(this.U),a=this.U.mr(),g.nV(this.U)&&g.oV(this.U)&&a.unshift("missing-qualities"),g.Y0(this,a),a.length)){this.M();this.enable(!0);return}this.enable(!1)};
a1.prototype.M=function(){var a=g.$U(this.U);this.o[a]&&(this.J=this.U.Fk(),g.X0(this,a),"auto"==a&&this.dc(this.df(a)),aV(this.U)!=this.F&&this.B())};
a1.prototype.nd=function(a){"missing-qualities"!=a&&(g.W0.prototype.nd.call(this,a),this.U.Jk(a),this.A.Tb())};
a1.prototype.df=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"},L:[g.T("YTP_MISSING_FORMATS")]};var c={H:"div",L:[b1(this,a)]},d=g.$U(this.U);b||"auto"!=d||"auto"!=a||(c.L.push(" "),c.L.push(b1(this,this.J,["ytp-menu-label-secondary"])));return c};g.p(c1,g.W);c1.prototype.qd=function(a){this.Jb(this.B&&400<=a.width)};
c1.prototype.C=function(){g.dV(this.U,"settings");if(this.A.g)this.A.Tb();else{var a=g.OU(this.U).g;a&&!a.loaded&&(a.ur("tracklist",{includeAsr:!0}).length||a.load());this.A.Je(this.element)}};
c1.prototype.o=function(){var a=this.U.Wa(),b=2!=a&&3!=a,c=g.bV(this.U),c=(a=b&&("Anaglyph3D"==c.shader||"Spherical3D"==c.shader))&&1==(0,window.parseInt)(c.displayMode,10),b=a||!b?null:this.U.Fk();g.S(this.element,"ytp-hd-quality-badge","hd720"==b||"hd1080"==b||"hd1440"==b);g.S(this.element,"ytp-4k-quality-badge","hd2160"==b);g.S(this.element,"ytp-5k-quality-badge","hd2880"==b);g.S(this.element,"ytp-8k-quality-badge","highres"==b);g.S(this.element,"ytp-3d-badge-grey",a&&c);g.S(this.element,"ytp-3d-badge",
a&&!c)};g.p(e1,g.W0);g.h=e1.prototype;g.h.Br=function(a){return a.toString()};
g.h.df=function(a){return"1"==a?g.T("YTP_NORMAL_SPEED"):a.toString()};
g.h.Iy=function(){var a=this.U.Wa();this.enable(2!=a&&3!=a)};
g.h.nj=function(a){g.W0.prototype.nj.call(this,a);a?(this.B=this.T(this.U,"onPlaybackRateChange",this.zL),g.Y0(this,(0,g.I)(this.U.kj(),this.Br)),g.X0(this,this.Br(this.U.Uc()))):(this.za(this.B),this.B=null)};
g.h.zL=function(a){g.X0(this,this.Br(a))};
g.h.nd=function(a){g.W0.prototype.nd.call(this,a);this.U.Nf((0,window.parseFloat)(a),!0);this.A.Le()};g.p(g1,g.W0);g1.prototype.O=function(a){return a.option.toString()};
g1.prototype.df=function(a){return f1(this.M[a])};
g1.prototype.nd=function(a){g.W0.prototype.nd.call(this,a);this.Y("settingChange",this.K,this.M[a].option)};
g1.prototype.P=function(a){this.Y("settingChange",this.K+"Override",!a);this.A.Le()};g.p(h1,g.p_);h1.prototype.A=function(a,b){this.Y("settingChange",a,b)};g.p(j1,g.W0);j1.prototype.F=function(a){return a.languageCode};
j1.prototype.df=function(a){return this.B[a].languageName||""};
j1.prototype.nd=function(a){this.Y("select",a);g.x_(this.A)};g.p(k1,g.W0);g.h=k1.prototype;g.h.Gr=function(a){return g.Tb(a)?"__off__":a.displayName};
g.h.df=function(a){return"__off__"==a?g.T("YTP_LANGUAGE_OFF"):"__translate__"==a?g.T("YTP_AUTO_TRANSLATE"):"__contribute__"==a?g.T("YTP_CONTRIBUTE_MENU_ITEM"):("__off__"==a?{}:this.B[a]).displayName};
g.h.nd=function(a){"__translate__"==a?this.F.open():"__contribute__"==a?(this.U.md(),this.U.isFullscreen()&&g.YU(this.U),a=g.TO(g.Y(this.U),this.U.ia()),g.zV(a)):(this.U.yd("captions","track","__off__"==a?{}:this.B[a]),g.W0.prototype.nd.call(this,a),this.A.Le())};
g.h.Pk=function(){var a=-1!=this.U.ai().indexOf("captions"),b=this.U.ia().Uj;if(a||b){if(a){var c=this.U.Bc("captions","track");var d=this.U.Bc("captions","tracklist",{includeAsr:!0});var e=this.U.Bc("captions","translationLanguages");this.B=g.Cb(d,this.Gr,this);var f=(0,g.I)(d,this.Gr);if(e.length){var k=this.F;var l=e;k.B=g.Cb(l,k.F,k);g.Y0(k,(0,g.I)(l,k.F));f.push("__translate__")}k=this.Gr(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.Y0(this,f);g.X0(this,k);a?(i1(this.K,this.U.bi()),this.J.dc(d.length?" ("+d.length+")":""),this.Y("size-change"),a&&e.length&&this.o.__translate__.element.setAttribute("aria-disabled",!!g.Tb(c))):(this.J.dc(""),this.Y("size-change"));this.enable(!0)}else this.enable(!1)};
g.h.Ly=function(a){this.U.yd("captions","sampleSubtitles",a)};
g.h.HL=function(a){var b=this.U.Bc("captions","track"),b=g.Wb(b);b.translationLanguage=this.F.B[a];this.U.yd("captions","track",b)};
g.h.GL=function(a,b){if("reset"==a)this.U.qr();else{var c={};c[a]=b;this.U.qn(c)}this.Ly(!0);this.M.start();i1(this.K,this.U.bi())};
g.h.V=function(){g.tt(this.M);g.W0.prototype.V.call(this)};g.p(l1,g.t_);l1.prototype.Je=function(a){m1(this);0<this.B.Ka.length&&g.t_.prototype.Je.call(this,a)};
l1.prototype.show=function(){g.t_.prototype.show.call(this);g.R(this.A.getRootNode(),"ytp-settings-shown")};
l1.prototype.hide=function(){g.t_.prototype.hide.call(this);g.Kp(this.A.getRootNode(),"ytp-settings-shown")};g.p(p1,g.W);
p1.prototype.o=function(){var a=!1;-1!=this.U.ai().indexOf("remote")&&(a=1<this.U.Bc("remote","receivers").length);this.Jb(a&&400<=g.WU(this.U).Ya().width);var b=1;a&&this.U.Bc("remote","casting")&&(b=2);if(this.A!=b){this.A=b;switch(b){case 1:this.Ca("icon",g.RD?{H:"div",ea:["ytp-icon","ytp-icon-cast-desktop-off"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{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.Ca("icon",g.SD())}g.S(this.element,"ytp-remote-button-active",!!this.U.Bc("remote","casting"))}};
p1.prototype.C=function(){g.dV(this.U,"remote");if(this.U.Bc("remote","quickCast"))this.U.yd("remote","quickCast",!0);else{var a=this.B,b=this.element;if(b_(a))a.Tb();else{m1(a);a:{var c=g.ka(a.B.Ka);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.Je(b));a.Je(b)}}};g.p(q1,g.W);q1.prototype.F=function(){g.dV(this.o,this.o.app.oa?"size_small":"size_large");var a=this.o.app,b=!a.oa;a.Z.experiments.g("player_legacy_set_size_style")&&Rna(a,!0,b);a.g.ya("SIZE_CLICKED",b)};
q1.prototype.A=function(){this.Jb(this.o.app.Dc&&!this.o.isFullscreen()&&3!=this.o.Wa());if(this.g){var a=this.o.app.oa;if(this.B!=a){var b=a?g.RD?{H:"div",ea:["ytp-icon","ytp-icon-default-view"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{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.RD?{H:"div",ea:["ytp-icon","ytp-icon-theater-mode"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",
width:"100%"},L:[{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.Y(this.o).ba||null==this.B?this.Ca("icon",b):r0(this.D,this.element,b);a=(this.B=a)?g.T("YTP_DEFAULT_VIEW"):g.T("YTP_THEATER_MODE");this.Ca("title",a);w0(this.C)}}};g.p(r1,g.W);r1.prototype.B=function(){g.dV(this.A,"subtitles");var a=g.OU(this.A).g;a&&a.hB()};
r1.prototype.o=function(){var a=!!g.OU(this.A).g;this.Jb(a&&300<=g.WU(this.A).Ya().width);a&&this.Ca("pressed",!!this.A.Bc("captions","track").displayName)};g.p(s1,g.W);
s1.prototype.C=function(){var a=g.WU(this.o).Ya().width,b=350<=a&&(!this.B||!g.V(g.VU(this.o),64));this.Jb(b);g.S(this.element,"ytp-time-display-allow-autohide",b&&400>a);a=this.o.ih();b&&(b=g.GV(a.current),this.G!=b&&(this.Ca("currenttime",b),this.G=b),b=g.GV(a.duration),this.J!=b&&(this.Ca("duration",b),this.J=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.T("YTP_GOTO_LIVE_TOOLTIP"),this.A=
k_(this.K,this.D.element))))};
s1.prototype.O=function(a,b){this.B=b.Ba;g.S(this.element,"ytp-live",this.B);this.C()};
s1.prototype.M=function(a){a.target==this.D.element?(g.dV(this.o,"live"),this.o.yc(window.Infinity),this.o.cd()):g.dV(this.o,"time")};
s1.prototype.V=function(){this.A&&this.A();g.W.prototype.V.call(this)};g.p(u1,g.W);g.h=u1.prototype;g.h.IL=function(){var a=this.F.ae();this.G!=a&&(this.G=a,t1(this,this.o.getVolume(),this.o.He()))};
g.h.qd=function(a){this.Jb(350<=a.width)};
g.h.BP=function(a){if(!g.KF(a)){var b=g.GF(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.Pd(c,0,100),0==c?this.o.mute():(this.o.He()&&this.o.ug(),this.o.setVolume(c)),g.MF(a))}};
g.h.JL=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.Pd(b/10,-10,10));g.MF(a)};
g.h.AP=function(){g.dV(this.o,"volume");v1(this,this.B,!0,this.A,this.F.M);this.W=this.C;this.o.He()&&this.o.ug()};
g.h.zP=function(a){a-=g.mh(this.P).x;this.o.setVolume(100*g.Pd(a/(this.G?78:52),0,1))};
g.h.yP=function(){v1(this,this.B,!1,this.A,this.F.M);0==this.C&&(this.o.mute(),this.o.setVolume(this.W))};
g.h.KL=function(a){t1(this,a.volume,a.muted)};
g.h.dv=function(){v1(this,this.B,this.D,this.A,this.F.M)};
g.h.Ny=function(a){v1(this,this.B,this.D,a,this.F.M)};
g.h.PA=function(a){g.S(this.element,"ytp-volume-control-hover",a);v1(this,a,this.D,this.A,this.F.M)};
g.h.V=function(){g.W.prototype.V.call(this);g.Kp(this.O,"ytp-volume-slider-active")};g.p(w1,g.W);w1.prototype.C=function(){this.A=!!this.o.ia().videoId;this.Jb(this.A);g.uV(this.o,this,this.A&&this.B);if(this.A){var a=this.o.getVideoUrl(!0,!1,!1,!0);this.Ca("url",a)}};
w1.prototype.D=function(a){g.dV(this.o,"youtube");var b=this.o.getVideoUrl(!g.HV(a),!1,!0,!0);PV(b,this.o,a);g.tV(this.o,this)};g.p(x1,g.CJ);g.h=x1.prototype;g.h.Dr=function(){var a=this.B;L0(a);var b=a.A.getCurrentTime();(b<a.O||b>a.M)&&a.wn();this.O.C()};
g.h.Ky=function(){this.Ms();!this.M.o||this.Dr()};
g.h.EN=function(){this.Dr();this.F.start()};
g.h.Ms=function(){var a;if(a=!g.Y(this.U).isMobile){a=this.B;var b=2*a.C*g.VO();a=300>1E3*a.o.getLength()/a.A.Uc()/b}a=a&&g.VU(this.U).wb()&&!!window.requestAnimationFrame;b=!a;this.M.o||(a=b=!1);b?this.G||(this.G=this.T(this.U,"progresssync",this.Dr)):this.G&&(this.za(this.G),this.G=null);a?this.F.isActive()||this.F.start():this.F.stop()};
g.h.PR=function(a){H1(this.A.o,!a)};
g.h.Er=function(){var a=this.A.ae(),b=g.WU(this.U).Ya(),c=z1(this),d=Math.max(b.width-2*c,100);if(this.ba!=b.width||this.W!=a){this.ba=b.width;this.W=a;var e=A1(this);this.o.element.style.width=e+"px";this.o.element.style.left=c+"px";var f=this.B;f.Ub=c;f.C=e;f.J=a;J0(f);this.A.o.ga=e}c=this.g;b=Math.min(413*(a?1.5:1),Math.round(.82*(b.height-(this.A.ae()?72:50))));c.P=Math.min(570*(a?1.5:1),d);c.O=b;c.jo();this.Ms()};
g.h.pa=function(){return this.o.element};g.p(g.B1,g.W);g.B1.prototype.A=function(){g.R(this.element,"ytp-sb-subscribed")};
g.B1.prototype.B=function(){g.Kp(this.element,"ytp-sb-subscribed")};g.p(C1,g.W);C1.prototype.P=function(a){g.dV(this.o,"title");g.tV(this.o,this);var b=this.o.getVideoUrl(!g.HV(a),!1,!0);PV(b,this.o,a)};
C1.prototype.W=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.WP.test(b)&&D1(this,a,f,c,e,b,d)}};
C1.prototype.D=function(){E1(this);var a=this.o.ia();this.Ca("title",a.title);this.B&&(this.B.o=a.nl);var b=g.Y(this.o);if(b.experiments.g("embed_view_count")){var c=a.shortViewCount;g.S(this.o.getRootNode(),"ytp-show-title-view-count",!!c);this.Ca("viewCount",c)}!b.J&&a.videoId?(this.Ca("url",this.o.getVideoUrl(!0)),this.A||(this.A=this.T(this.O,"click",this.P))):this.A&&(this.Ca("url",null),this.za(this.A),this.A=null)};g.p(F1,g.W);g.h=F1.prototype;g.h.pO=function(a){3==this.o&&this.We();a=a.currentTarget;this.o||(a.removeEventListener("mouseover",this.P),a.addEventListener("mouseout",this.ha),I1(this,a,2))};
g.h.nO=function(a){(a=IF(a))&&g.De(this.A,a)||this.We()};
g.h.My=function(a,b){if(a<=this.C&&this.C<=b){var c=this.C;this.C=window.NaN;M1(this,c)}};
g.h.CI=function(){jQ(this.B,this.C,160*this.D)};
g.h.We=function(){switch(this.o){case 2:this.A.removeEventListener("mouseout",this.ha),this.A.addEventListener("mouseover",this.P);case 3:3==this.o&&this.da.stop();this.O.removeEventListener("appresize",this.W);this.M||this.A.setAttribute("title",this.F);this.F="";this.A=null;break;case 1:this.B&&(this.B.unsubscribe("l",this.My,this),this.B=null),this.O.removeEventListener("videoready",this.W),this.ba.stop()}this.o=null;this.K&&this.J.hide()};
g.h.Ei=function(a){if(this.A)for(var b=0;b<arguments.length;b++)g.De(arguments[b],this.A)&&this.We()};
g.h.V=function(){null!=this.o&&this.We();g.W.prototype.V.call(this)};g.v("yt.pubsub.publish",g.fG,void 0);g.p(Q1,g.W);g.h=Q1.prototype;g.h.qd=function(a){this.C=300<=a.width;this.Jb(this.C);a=480<a.width;var b=g.Y(this.o);b.experiments.g("enable_watch_later_button_title")&&b.A&&(g.S(this.F,"ytp-show-watch-later-title",a),this.Ca("watch_later",a?g.T("YTP_WATCH_LATER"):""));g.uV(this.o,this,this.C&&this.J)};
g.h.gQ=function(){this.A=!0;this.B=!1;P1(this,1);g.Y(this.o).isMobile&&J1(this.G,this.element);g.Y(this.o).Fb&&this.o.ya("WATCH_LATER_VIDEO_ADDED")};
g.h.LL=function(){g.dV(this.o,"watchlater");g.tV(this.o,this);var a=this.o.ia().videoId;g.Y(this.o).Fc?O1(this,a):g.N1(function(){cJ({videoId:a});window.location.reload()},null,"wl_button",800,600)};
g.h.hQ=function(a,b){this.B=!1;var c=g.T("YTP_ERROR_GENERIC_WITHOUT_LINK");b&&(c=b.errors&&b.errors.length?b.errors[0]:b.error_message);P1(this,4,c);g.Y(this.o).Fb&&this.o.ya("WATCH_LATER_ERROR",c)};
g.h.iQ=function(){this.B=this.A=!1;P1(this,2);g.Y(this.o).Fb&&this.o.ya("WATCH_LATER_VIDEO_REMOVED")};
g.h.ML=function(){this.B=this.A=!1;P1(this,2)};
g.h.V=function(){g.W.prototype.V.call(this);g.Kp(this.F,"ytp-watch-later-button-visible")};g.p(R1,g.W);R1.prototype.D=function(a){this.Jb(!g.V(a.state,2))};
R1.prototype.B=function(){if(this.A.ia().videoId){var a=this.A.getVideoUrl(!0,!1,!1,!0);this.Ca("url",a);this.o||(this.o=this.X("click",this.C))}else this.o&&(this.Ca("url",null),this.za(this.o),this.o=null)};
R1.prototype.C=function(a){var b=this.A.getVideoUrl(!g.HV(a),!1,!0,!0);PV(b,this.A,a)};g.p(S1,d_);g.h=S1.prototype;g.h.Jp=function(a,b){b?this.W=a:this.W=null;this.Bg()};
g.h.Kp=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.sc(64,0<this.G.length)};
g.h.Fj=function(){g.eV(this.g)&&g.fV(this.g);return!!this.W||d_.prototype.Fj.call(this)};
g.h.Bg=function(){var a=!this.Fj(),b=a&&g.eV(this.g)&&!g.V(g.VU(this.g),2);a?(this.Oa.show(),this.Ra.show()):(this.Oa.hide(),this.Ra.hide(),this.o.Ei(this.C.element,this.J.element));b?this.J.A.show():this.J.A.hide();g.S(this.C.element,"ytp-cards-available",b);this.A&&y1(this.A,!a);d_.prototype.Bg.call(this)};
g.h.Kr=function(a){a&&(this.o.Ei(this.C.element,this.J.element),this.A&&this.o.Ei(this.A.pa()));d_.prototype.Kr.call(this,a)};
g.h.OK=function(a){var b=this.g.getRootNode();a?b.parentElement?(b.setAttribute("aria-label",g.T("YTP_PLAYER_FULLSCREEN")),b.parentElement.insertBefore(this.fa.element,b),b.parentElement.insertBefore(this.da.element,b.nextSibling)):g.qE(Error("Player not in DOM.")):(b.setAttribute("aria-label",g.T("YTP_PLAYER_NORMAL")),this.fa.detach(),this.da.detach());this.Ab();this.si()};
g.h.ae=function(){return this.g.isFullscreen()||g.mn&&g.Y(this.g).experiments.g("html5_prefer_standard_controls_big")};
g.h.Ab=function(){var a=this.ae();this.o.D=a?1.5:1;g.S(this.K.element,"ytp-big-mode",a);d_.prototype.Ab.call(this)};
g.h.si=function(){d_.prototype.si.call(this);g.uV(this.g,this.Ja,!!this.O);var a=this.Na,b=!!this.O;a.D=b;g.uV(a.o,a,a.B&&b);this.oa&&(a=this.oa,b=!!this.O,a.J=b,g.uV(a.o,a,a.C&&b));if(!this.O)for(this.o.Ei(this.C.element,this.J.element),a=0;a<this.ka.length;a++)b=this.ka[a],b_(b)&&b.Tb()};
g.h.Un=function(a){this.A&&y1(this.A,this.Fj());d_.prototype.Un.call(this,a)};
g.h.yO=function(){this.B.sc(128,!1)};
g.h.qm=function(){return this.K.g?(this.K.Tb(),!0):this.G.length?(this.G[this.G.length-1].Tb(),!0):this.W?(this.W.Tb(),!0):d_.prototype.qm.call(this)};
g.h.mR=function(a,b){this.xb=b;this.Kp(a,b);this.vy()};
g.h.vy=function(){var a=this.xb||b_(this.K);this.Fa!=a&&(this.Fa=a,this.g.ya("onAutonavPauseRequest",this.Fa))};
g.h.ZF=function(){T1(this,this.g.getRootNode(),!0).focus()};
g.h.aG=function(){T1(this,this.g.getRootNode(),!1).focus()};U1.prototype.click=function(a){a=a.element.getAttribute("data-visual-id");g.rV(this,"onLogVeClicked",{id:a})};
U1.prototype.F=function(a){var b=a.element.getAttribute("data-visual-id");g.kb(this.A,a);g.kb(this.o,b);g.kb(this.g,b);a.element.removeAttribute("data-visual-id")};
U1.prototype.pause=function(){this.B=!0};
U1.prototype.resume=function(){this.B=!1;for(var a=g.ka(this.C),b=a.next();!b.done;b=a.next())b=b.value,g.rV(this,b.type,b.data);this.C.length=0};g.p(V1,g.M);g.h=V1.prototype;g.h.sM=function(){Y1(this)||g.m2(this,5)};
g.h.JO=function(a){Y1(this)||(N2(this),cK(a.A)&&SY(this))};
g.h.og=function(){var a=this.C?this.C.Zp():{},b=this.A,c={};b.g&&g.za(c,b.g.sK());g.za(a,c);(b=this.A.o)&&g.za(a,b.wt());a.fs=this.g.isFullscreen();a.volume=Math.round(this.J.getVolume());a.mos=this.J.He()?1:0;this.Z.experiments.g("html5_enable_embedded_player_visibility_signals")&&this.Z.A&&(this.Yb&&(b=this.Yb,b=null==b.o?null:Math.round(100*b.o)/100,null!=b&&(a.inview=b)),b=this.F.Ya(),0<b.height&&0<b.width&&(b=[Math.round(b.height),Math.round(b.width)],c=g.VO(),1<c&&b.push(c),a.size=b.join(":")));
return a};
g.h.getCurrentTime=function(a){return 3==SU(this)?g.TU(this.A).getCurrentTime():(a=g.UU(this,a))?a.getCurrentTime():0};
g.h.getDuration=function(a){return(a=g.UU(this,a))?a.getDuration():0};
g.h.ZI=function(a){switch(a.type){case "loadedmetadata":JP("fvb",this.G.g)||this.G.o("fvb");g.tP("fvb",void 0,"video_to_ad");this.rb.start();break;case "loadstart":JP("gv",this.G.g)||this.G.o("gv");g.tP("gv",void 0,"video_to_ad");break;case "progress":case "timeupdate":!JP("l2s",this.G.g)&&2<=HJ(QJ(a.target))&&this.G.o("l2s");break;case "playing":g.YO&&this.rb.start();var b=this.A.B;a="none"==eh(this.D.g,"display")||0==g.uh(this.D.g).Qc();b=!mZ(this.F)||b||!this.Z.D||this.Z.Dh;a&&!b&&(this.C.ne("hidden",
"1",!0),gZ(this).li||R2(this,"hidden",!0))}};
g.h.PN=function(a,b){this.g.ya("onLoadProgress",b)};
g.h.CP=function(){this.g.Y("playbackstalledatstart")};
g.h.aJ=function(a,b){this.g.ya("onVideoProgress",b)};
g.h.XI=function(){this.J.Y("progresssync")};
g.h.uM=function(a){!this.Z.experiments.g("disable_live_head_slowdown")&&0<hK(a,1)&&!g.V(a.state,64)&&this.o.g.Ba&&vU(this.o)&&1<this.g.Uc()&&r2(this,1,!0);var b;if(b=0<hK(a,2))this.B&&("embedded"==this.Z.g||this.g.isFullscreen()&&!this.ua)&&g.PZ(this)?(K2(this,!1,!this.Z.experiments.g("legacy_autoplay_flag")),b=!0):b=!1,b=!b;b&&(b=this.o.o)&&xF(b.g);g.V(a.state,128)&&(b=a.state,C2(this),b=b.g,this.g.ya("onError",Fpa[b.errorCode]||5),this.g.ya("onDetailedError",b));a.state.wb()&&!g.eK(a.state)&&(b=
gZ(this),g.uP("cpn",b.clientPlaybackNonce,"ad_to_video"),b.videoId&&g.uP("docid",b.videoId,"ad_to_video"),b.playbackId&&g.uP("plid",b.playbackId,"ad_to_video"),g.tP("pbresume",void 0,"ad_to_video"));this.g.Y("applicationplayerstatechange",a)};
g.h.Yz=function(a){3!=SU(this)&&(!g.V(a.state,32)&&0>hK(a,16)&&(!g.V(a.state,8)||g.V(a.state,64)||this.D.g.ended||g.V(a.state,2)||SY(this)),this.g.Y("presentingplayerstatechange",a))};
g.h.WI=function(a){p2(this,fK(a.state))};
g.h.qM=function(a){"newdata"==a&&v2(this)};
g.h.wM=function(){this.g.ya("onPlaybackAudioChange",this.g.hh().Sc.name)};
g.h.YP=function(a){a==this.C.g&&this.g.ya("onPlaybackQualityChange",a.Ma.video.quality)};
g.h.lr=function(a,b,c){if("newdata"==a)cZ(this.A),this.g.Y("videoplayerreset",b);else{if(!this.D)return;if("dataloaded"==a)if(b.Z.Zf(c.Xb),this.C==this.o){if(this.Z.experiments.g("disable_sap_error_check")||!this.o.A.isError()){var d=Y1(this);if(d||!this.o.g.Ew||this.Z.isMobile){var e=this.o.g;if(!JQ(e)||d||wQ(this.o.g))e.Pb(),d&&g.m2(this,6),e2(this),d||(e=this.A.o)&&!e.C&&this.A.U.ia(1).adModule&&this.A.o.create();else{var d=e.Ba&&!g.WN()?"html5.unsupportedlive":"fmt.noneavailable",f="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK";
(!LO(this.Z)||Coa||XE()?0:g.sc||e.Zc&&ni)&&(f=e.Zc?"YTP_HTML5_PROTECTED_FLASH_FALLBACK":"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH");g.$T(this.o,d,f,"nosupported.1;f18."+ +(0<=e.wh.indexOf("itag=18"))+";f43."+ +(0<=e.wh.indexOf("itag=43")))}}else e="YTP_DEVICE_FALLBACK",(!LO(this.Z)||Coa||XE()?0:g.sc)&&(e="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH"),g.$T(this.o,"html5.unsupportedads",e,void 0)}}else e2(this);1==b.getPlayerType()&&(this.Z.M&&(gZ(this).Ml?(e=this.D,e.C=!0,JL(),e.g.muted=!0):
(this.D.C=!1,kJ(this,this.M))),gZ(this).Ba&&!this.Z.IQ&&g.$T(this.o,"html5.unsupportedlive","YTP_DEVICE_FALLBACK",void 0),c.Pb()&&(c.Hn||c.gr||c.te.focEnabled||c.te.rmktEnabled||gZ(this).Wo)&&(e=gZ(this),y2(this,"part2viewed",1,0x8000000000000),y2(this,"engagedview",Math.max(1,1E3*e.zf),0x8000000000000),e.Ba||(e=1E3*e.lengthSeconds,y2(this,"videoplaytime25",.25*e,e),y2(this,"videoplaytime50",.5*e,e),y2(this,"videoplaytime75",.75*e,e),y2(this,"videoplaytime100",e,0x8000000000000),y2(this,"conversionview",
e,0x8000000000000))));this.g.Y("videodatachange",a,c,b.getPlayerType())}this.Z.Fb&&this.g.ya("onVideoDataChange",{type:a,playertype:b.getPlayerType()});a=c.clientScreenNonce;c=c.rootVeType;!this.Z.experiments.g("player_change_screen_killswitch")&&a&&c&&(b=this.da,a!=b.D&&(b.D=a,g.rV(b,"onScreenChanged",{csn:a,root_ve_type:c}),b.g.length&&g.rV(b,"onLogVesShown",{ids:b.g}),b.o=g.ob(b.g)))};
g.h.Wl=function(){i2(this,null);this.g.ya("onPlaylistUpdate")};
g.h.iz=function(a){var b=a.getId(),c=this.o.g;if("part2viewed"==b)c.mA&&g.ZE(c.mA),c.gr&&g.ZE(c.gr);else if("conversionview"==b){var d=this.o;d.C&&JK(d.C)}else"engagedview"==b&&g.ZE(c.Hn);c.uj&&(d=z2(this,c.uj,a.getId()),g.ZE(d));switch(b){case "videoplaytime25":c.Fx&&g.ZE(c.Fx);g.ZE(c.FQ);break;case "videoplaytime50":c.Gx&&g.ZE(c.Gx);g.ZE(c.GQ);break;case "videoplaytime75":c.Hx&&g.ZE(c.Hx);g.ZE(c.HQ);break;case "videoplaytime100":c.Ex&&g.ZE(c.Ex),g.ZE(c.EQ)}(b=gZ(this).Wo)&&b[a.getId()]&&(c=b[a.getId()],
g.ZE(c,void 0,rpa.test(c)||spa.test(c)||tpa.test(c)),b=b[a.getId()+"gaia"],g.ZE(b,void 0,rpa.test(b)||spa.test(b)||tpa.test(b)));this.o.D.F(a)};
g.h.isPeggedToLive=function(){return this.o.isPeggedToLive()};
g.h.YI=function(a,b){var c=a.g;if(1==this.O||2==this.O)c.startSeconds=b;2==this.O?k2(this):this.g.Y("seekto",b)};
g.h.hM=function(){this.g.Y("airplayactivechange")};
g.h.iM=function(){this.g.Y("airplayavailabilitychange")};
g.h.CM=function(){this.g.Y("beginseeking")};
g.h.qN=function(){this.g.Y("endseeking")};
g.h.Rr=function(){var a=this.B.jc(),b=gZ(this);b.ph||!this.fa?(b=b.Hf,a=A2(this,a),b&&E2(this,a)):a&&F2(this,a);this.g.ya("onPlaylistUpdate")};
g.h.oM=function(a){this.g.ya("onCueRangeEnter",a.getId())};
g.h.pM=function(a){this.g.ya("onCueRangeExit",a.getId())};
g.h.tM=function(){this.ga||(this.ga=jP(this.pz,this));PP(this.G,XY(this));if(this.Z.experiments.g("html5_playlist_preload")&&g.PZ(this)){var a=this.B.jc(TQ(this.B));a&&D2(this,a,1,!1)}};
g.h.rM=function(){var a=this.o.g,b=this.o.D.g.g||[],c=this.Ta.videoplaytime100;this.Z.experiments.g("send_pyv_ad_mt_and_abandon_pings")&&a.uj&&0<=b.indexOf(c)&&(a=z2(this,a.uj,"video_abandon"),g.ZE(a))};
g.h.IN=function(){this.J.Y("internalAbandon")};
g.h.pz=function(a){a=a.g;if(!(0,window.isNaN)(a)&&0<a&&this.o){var b=this.o;b.C&&0<a&&(b.C.o.o.aft=[a])}};
g.h.jO=function(){this.Jr()};
g.h.kO=function(){this.Jr()};
g.h.Jr=function(){this.Z.Fb&&this.C?this.g.ya("onApiChange",this.C.getPlayerType()):this.g.ya("onApiChange")};
g.h.gO=function(){var a={volume:g.Pd(Math.floor(100*this.D.getVolume()),0,100),muted:this.D.g.muted};a.muted||n2(this,!1);this.M=g.Wb(a);this.g.ya("onVolumeChange",a)};
g.h.xN=function(){var a=g.wF();Q2(this,a==this.F.element?1:0);P2(this,!!a&&g.De(this.F.element,a))};
g.h.hP=function(){2!=this.qb&&Q2(this,g.wF()==this.F.element?1:0);this.Z.yh&&gZ(this)&&!gZ(this).backgroundable&&this.D&&.33>window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)&&xF(this.D.g)};
g.h.ON=function(a){3!=SU(this)&&this.g.Y("liveviewshift",a)};
g.h.gP=function(a){var b=g.kZ(this.F);g.Qg(this.uc,b)||(this.uc=b,this.C&&CU(this.C,"r"),!this.Z.experiments.g("disable_app_resize")&&this.o&&this.o!=this.C&&CU(this.o,"r"),1==this.qb&&this.Ja&&P2(this,!0));this.Ub&&g.Xd(this.Ub,a)||(this.g.Y("appresize",a),this.Ub=a)};
g.h.Kd=function(){return this.J.Kd()};
g.h.wP=function(){R2(this,"signature")};
g.h.sO=function(){b2(this);a2(this)};
g.h.aN=function(){this.g.ya("CONNECTION_ISSUE")};
g.h.VI=function(a){this.g.Y("heartbeatparams",a)};
g.h.jj=function(){var a=this.g.isFullscreen()||IO(this.Z),b=this.g.app.Z.Hb;return gV(this.g)?4:OT()?3:a?2:b?1:0};
g.h.V=function(){this.o.dispose();b2(this);g.Se(g.Nb(this.Ra),this.B);g.hP(this.ga);this.ga=0;this.Fa&&this.Fa.dispose();g.M.prototype.V.call(this)};
var e4={};g.v("yt.player.Application.create",function(a,b){try{var c=g.u(a)?a:"player"+g.xa(a);if(e4[c]){try{e4[c].dispose()}catch(e){g.qE(e)}e4[c]=null}var d=new V1(a,b);g.Qe(d,function(){e4[c]=null});
return e4[c]=d}catch(e){throw g.qE(e),e.stack;}},void 0);
var Upa=g.x("ytcsi.tick");Upa&&Upa("pe");/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var g3=window,b3=window.document,Wna=g3.location,Vna=/\[native code\]/,e3=U2(g3,"gapi",{});var W2;W2=U2(g3,"___jsl",V2());U2(W2,"I",0);U2(W2,"hel",10);var Y2=U2(W2,"perf",V2());U2(Y2,"g",V2());var $na=U2(Y2,"i",V2());U2(Y2,"r",[]);V2();V2();var aoa=V2(),d3=[];d3.push(["jsl",function(a){for(var b in a)if(Object.prototype.hasOwnProperty.call(a,b)){var c=a[b];"object"==typeof c?W2[b]=U2(W2,b,[]).concat(c):U2(W2,b,c)}if(b=a.u)a=U2(W2,"us",[]),a.push(b),(b=/^https:(.*)$/.exec(b))&&a.push("http:"+b[1])}]);
var joa=/^(\/[a-zA-Z0-9_\-]+)+$/,koa=[/\/amp\//,/\/amp$/,/^\/amp$/],moa=/^[a-zA-Z0-9\-_\.,!]+$/,goa=/^gapi\.loaded_[0-9]+$/,loa=/^[a-zA-Z0-9,._-]+$/,doa=/^https?:\/\/[a-z0-9_.-]+\.google\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,coa=/\/cb=/g,boa=/\/\//g;aoa.m=function(a,b,c,d){(a=a[0])||$2("missing_hint");return"https://apis.google.com"+ioa(a,b,c,d)};
var c3=(0,window.decodeURI)("%73cript"),poa=/^[-+_0-9\/A-Za-z]+={0,2}$/;e3.load=function(a,b){return uoa(function(){return f3(a,b)})};g.i3.prototype.B=function(){var a=g.x("gapi.config.update");a("googleapis.config/auth/useFirstPartyAuth",!0);a("googleapis.config/auth/useFirstPartyAuthV2",!0);var b=this.g.apiaryHost;E(g.F(b))||a("googleapis.config/root",(-1==b.indexOf("://")?"//":"")+b);b=this.g.hp;E(g.F(b))||a("googleapis.config/root-1p",(-1==b.indexOf("://")?"//":"")+b);b=g.ND("SESSION_INDEX");a("googleapis.config/sessionIndex",b);g.x("gapi.client.setApiKey")(this.g.innertubeApiKey)};
g.i3.prototype.o=function(){return{context:xG(this.g)}};
g.i3.prototype.A=function(a,b,c){var d,e=!1;0<c.timeout&&(d=g.xE(function(){e||(e=!0,c.dd&&c.dd())},c.timeout));
yoa(this,a,b,function(a){if(!e)if(e=!0,d&&g.vE(d),a)c.Mb&&c.Mb(a);else if(c.onError)c.onError()})};
var h3=null;})(_yt_player);
