f43e1c6d953ff12a52d3e3d0887c7242adf42477d2193553033e859de0a7e96a

Source Code:

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

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var ba,da,aaa,ha,ia,ka,oa,qa,ra,sa,ta,ua,va,wa,baa,xa,ya,za,Aa,Ba,Ca,Da,Ea,Fa,Ga,Ia,Ma,Ka,Pa,Qa,eaa,faa,Za,$a,ab,gaa,haa,iaa,bb,jaa,db,fb,kaa,laa,ib,pb,maa,vb,wb,naa,Bb,yb,oaa,zb,paa,qaa,raa,Kb,Nb,Ob,Sb,Ub,Vb,cc,ec,hc,ic,lc,nc,uaa,oc,pc,qc,zc,Ac,Cc,Hc,Nc,Oc,Sc,Qc,yaa,Baa,Caa,Daa,Wc,Xc,Zc,Yc,bd,ed,Eaa,Faa,dd,Gaa,kd,ld,md,pd,rd,sd,Iaa,td,ud,yd,zd,Ad,Bd,Cd,Dd,Ed,Fd,Hd,Jd,Kd,Md,Nd,Qd,Kaa,Rd,Sd,Td,Ud,Vd,Wd,ce,fe,ie,me,ne,se,te,ye,ue,Ae,Ce,Be,Paa,ke,Pe,Ne,Oe,Re,Qe,je,Se,Te,Raa,Xe,Ze,We,af,bf,cf,df,ef,ff,
gf,hf,Saa,rf,lf,Df,Taa,Hf,Jf,Lf,Uaa,Mf,Of,Pf,Qf,Rf,Sf,Tf,Uf,Wf,Vf,Xf,Yf,Xaa,Zaa,$aa,bba,cg,dg,fg,cba,hg,kg,qg,rg,ug,dba,xg,wg,yg,eba,Gg,Hg,Ig,fba,Jg,Kg,Lg,Mg,Ng,Og,Pg,gba,Qg,Rg,Sg,hba,iba,Tg,Vg,Ug,Xg,Yg,ah,Zg,kba,$g,bh,ch,eh,dh,lba,fh,nba,mba,oba,ih,pba,kh,lh,mh,jh,nh,qba,oh,rba,sba,rh,uba,sh,th,uh,vba,wh,yh,Bh,Eh,Gh,Dh,Ch,Kh,wba,Lh,Mh,Nh,Oh,yba,Th,Uh,Vh,Wh,Aba,Xh,Yh,Zh,$h,ai,Bba,ci,di,ei,fi,gi,hi,ji,ki,li,mi,ni,ii,oi,pi,qi,Cba,Dba,ri,si,Eba,ti,ui,Fba,wi,Gba,xi,yi,zi,Hba,Ai,Bi,Di,Fi,Gi,Hi,Ni,Oi,Ci,
Ei,Jba,Pi,Qi,Si,Ri,Kba,Lba,Mba,Ti,Ui,Vi,Wi,Qba,Rba,Sba,Xi,Zi,Tba,Uba,Vba,aj,bj,Wba,cj,Xba,Yba,dj,ej,fj,Zba,hj,ij,jj,kj,lj,mj,nj,oj,pj,qj,rj,$ba,aca,sj,bca,uj,tj,xj,yj,wj,cca,gca,fca,Aj,hca,ica,jca,lca,kca,mca,Bj,Dj,Fj,Gj,Hj,oca,Jj,Kj,pca,qca,Lj,Mj,Nj,Oj,rca,Pj,Qj,tca,Rj,uca,Sj,Tj,Vj,Wj,Yj,Zj,ak,ck,dk,ek,gk,jk,kk,Uj,lk,nk,mk,ok,pk,rk,wca,sk,vca,tk,xca,uk,yca,zca,wk,yk,zk,Ak,Bk,xk,Ek,Fk,Ck,Aca,Cca,Dca,Hk,Ik,Jk,Kk,Eca,Lk,Mk,Nk,Ok,Pk,Qk,Rk,Sk,Vk,Uk,Gca,Hca,Wk,Yk,Tk,Xk,Fca,Zk,$k,Jca,Kca,Lca,Mca,dl,el,
fl,Nca,al,gl,hl,Ica,Oca,Pca,Qca,kl,il,ll,nl,Vca,Rca,rl,sl,tl,ul,vl,wl,gj,Wca,xl,yl,Xca,Yca,Zca,$ca,ada,Al,Bl,Cl,Dl,El,Fl,dda,eda,Gl,Hl,Jl,Ll,gda,Ml,Nl,Ol,Pl,Rl,Tl,hda,Ql,$l,am,Xl,dm,cm,jda,Vl,Sl,gm,hm,im,jm,lm,lda,mm,nm,mda,sm,um,wm,xm,zm,Am,Bm,Dm,nda,oda,Fm,Hm,Im,Em,Gm,vm,Cm,qda,Lm,Jm,Km,Nm,pda,Mm,Rm,Um,Tm,Zm,$m,bn,tda,an,dn,fn,en,rda,jn,ln,wda,nn,on,qn,rn,sn,tn,zn,xda,Bn,Cn,zda,Dn,En,Eda,Ada,Ln,Jda,Mn,Nn,Lda,Qn,Rn,Sn,Tn,Mda,Wn,Xn,Yn,Zn,ao,bo,co,eo,go,ho,ko,lo,mo,Pda,Qda,oo,po,to,qo,uo,wo,xo,vo,
Rda,Ao,M,Do,No,Mo,Uda,Vda,Po,To,Uo,Vo,Wo,Xda,Yda,cp,dp,ep,Zda,jp,kp,$da,mp,op,lp,rp,up,tp,sp,wp,Cp,Bp,aea,dea,cea,Np,Op,Pp,Qp,Rp,Sp,Tp,Xp,Vp,Yp,Zp,$p,cq,bq,fea,hea,eq,iea,iq,hq,kea,jq,kq,lea,oq,mea,nea,mq,oea,pq,pea,uq,vq,wq,qea,rea,Dq,sea,tea,Eq,Gq,Hq,Fq,Iq,Jq,Kq,Lq,Mq,Nq,Oq,Qq,Rq,Sq,Tq,Xq,Uq,vea,Zq,$q,wea,yea,xea,Vq,ar,zea,Yq,uea,Wq,cr,Aea,dr,br,Bea,er,fr,gr,ir,jr,Cea,mr,nr,or,pr,rr,qr,Dea,Eea,Fea,Gea,sr,tr,vr,ur,Iea,Hea,wr,xr,yr,Jea,Kea,Br,Dr,Cr,Lea,Jr,Kr,Lr,Oea,Nr,Pr,Rr,Qr,Tr,Ur,Vr,Xr,Wr,Qea,
$r,as,bs,cs,hs,is,fs,Tea,Rea,js,ms,ns,Vea,ks,ls,os,ps,rs,ts,ws,us,ys,xs,zs,Wea,Bs,Cs,Es,Gs,Hs,Is,Js,Ls,Yea,Ns,Ps,Qs,Rs,Ts,$s,bt,at,Ss,ct,gt,ht,Zea,dt,$ea,pt,At,xt,afa,Et,Dt,Gt,Ct,Ft,Ht,Jt,Kt,It,Lt,Mt,Nt,Ot,Rt,Pt,cfa,St,Tt,Ut,Vt,Wt,dfa,Qt,Xt,Zt,$t,au,bu,cu,du,eu,fu,gu,hu,iu,efa,ju,ffa,ku,lu,nu,pu,gfa,qu,vu,tu,ou,wu,ru,uu,xu,yu,zu,hfa,Bu,Cu,Iu,ifa,Eu,Ku,Mu,Pu,Ou,Gu,Lu,Ju,jfa,Qu,Su,Tu,kfa,Uu,Vu,Du,Fu,Hu,Nu,Wu,Xu,Yu,Zu,$u,av,bv,cv,dv,ev,fv,gv,hv,iv,jv,lv,nv,mv,ov,pv,qv,tv,uv,vv,xv,yv,Av,pfa,Bv,Cv,Dv,
Ev,Gv,Hv,Iv,Jv,Fv,rfa,Kv,Lv,Mv,Nv,Ov,sfa,Pv,Qv,Rv,tfa,ufa,vfa,Tv,Uv,wfa,Wv,xfa,Vv,Xv,Zv,$v,aw,cw,dw,ew,hw,iw,jw,fw,nw,Yt,ow,pw,qw,rw,tw,uw,lw,vw,ww,yw,zw,Aw,Cw,Ew,Fw,Gw,Hw,Iw,Jw,yfa,Kw,zfa,Pw,Qw,Afa,Rw,Cfa,Dfa,Efa,Ffa,Uw,Gfa,Hfa,Ifa,Jfa,Kfa,Lfa,Vw,Mfa,Nw,Sw,Tw,Bfa,Ww,Nfa,Ofa,Zw,ax,$w,Pfa,Xw,Yw,Qfa,Rfa,bx,Sfa,Tfa,dx,ex,Ufa,hx,nx,lx,qx,ix,rx,fx,sx,jx,gx,px,tx,ux,vx,xx,wx,yx,Ax,Bx,Yfa,Ex,Fx,Dx,Hx,Kx,Lx,aga,Ix,ega,Jx,Vx,Ux,Xx,Qx,Wx,Ox,cga,fga,Yx,Zx,Px,Zfa,gga,hga,iga,jga,$x,ay,by,cy,dy,ey,fy,gy,ny,jy,
kga,py,ky,ly,iy,my,hy,oy,ty,sy,ry,vy,wy,yy,zy,Ay,mga,By,Cy,Dy,Ey,Fy,Gy,Hy,Jy,Iy,Ky,Ly,Py,Ry,Sy,cz,dz,fz,gz,jz,Qy,Ny,My,Oy,kz,lz,mz,nz,iz,ez,hz,oz,pz,qz,rz,tz,sz,uz,pga,kx,Sx,Rx,wz,mx,xz,yz,cx,vz,zz,Az,Cz,Bz,rga,Dz,Ez,Gz,Hz,Iz,Jz,Kz,Mz,Lz,Nz,sga,Oz,Pz,Qz,Rz,Sz,tga,uga,yga,zga,vga,wga,xga,Tz,Uz,Aga,Bga,Cga,Wz,Xz,Yz,Dga,Zz,aA,Fga,bA,Gga,Hga,cA,dA,Iga,Jga,Kga,eA,Lga,iA,fA,lA,Mga,Nga,mA,Oga,Pga,nA,oA,Qga,pA,qA,Rga,Sga,Tga,jA,Uga,rA,sA,tA,Xga,Wga,vA,wA,uA,xA,yA,Yga,AA,BA,CA,EA,FA,zA,GA,DA,IA,JA,LA,KA,MA,
NA,PA,QA,RA,SA,YA,UA,aB,VA,dB,bB,eB,XA,cha,fB,TA,hB,iB,jB,kB,lB,nB,oB,pB,dha,eha,fha,uB,vB,xB,yB,zB,AB,BB,CB,wB,GB,gha,IB,JB,hha,KB,LB,MB,NB,OB,iha,PB,QB,RB,SB,jha,UB,VB,TB,WB,XB,YB,ZB,kha,$B,qB,lha,bC,cC,dC,eC,fC,gC,hC,iC,jC,pha,qha,mC,lC,oha,nha,kC,nC,nga,oC,rha,pC,sha,tha,rC,tC,sC,qC,R,vC,wC,xC,yC,zC,YC,ZC,bD,cD,KC,PC,AC,TC,SC,WC,fD,hD,jD,nD,HC,oD,GC,pD,RC,Bha,Eha,Fha,Gha,xD,yD,Hha,zD,Iha,tD,AD,BD,sD,Cha,DD,uD,vD,Dha,ED,wD,Jha,Kha,Lha,FD,GD,Mha,HD,Nha,ID,Oha,MD,JD,LD,KD,PD,Qha,Rha,Sha,UD,Tha,TD,
VD,WD,XD,YD,ZD,$D,aE,bE,Uha,Vha,cE,Wha,Vfa,Wfa,dE,eE,hE,Yha,iE,jE,kE,mE,oE,qE,sE,$ha,bia,cia,dia,rE,uE,wE,Mla,xE,BE,Nla,AE,DE,EE,zE,CE,fE,Xha,yE,pE,Zha,Ola,gE,vE,nE,lE,FE,Pla,GE,Qla,JE,KE,NE,ME,Rla,PE,Tla,QE,Ula,Sla,Vla,RE,SE,Wla,TE,UE,Xla,Yla,Zla,VE,WE,$la,dma,XE,ama,cma,bma,YE,ema,ZE,fma,gma,hma,bF,cF,dF,eF,jma,kma,lma,gF,hF,kF,jF,mma,mF,nF,iF,oF,pF,nma,tF,xF,yF,AF,qma,FF,HF,CF,IF,pma,rma,JF,LF,MF,KF,NF,sma,tma,BF,GF,RF,uma,vma,wma,yma,SF,TF,xma,VF,WF,XF,ZF,$F,EF,uF,bG,wF,vF,dG,QF,zma,iG,jG,kG,
lG,mG,zF,oG,nG,PF,OF,pG,aG,qG,DF,Ama,sF,tG,rF,fF,vG,wG,xG,yG,Bma,Cma,zG,Dma,BG,AG,DG,EG,CG,HG,Ema,Fma,IG,JG,dH,Ima,Jma,NG,Gma,jH,kH,lH,Sma,Tma,qH,rH,sH,tH,uH,vH,wH,xH,yH,zH,AH,BH,CH,DH,EH,FH,GH,HH,IH,JH,KH,LH,MH,NH,OH,PH,QH,RH,SH,TH,UH,VH,WH,XH,YH,ZH,$H,aI,bI,cI,Uma,fI,gI,hI,iI,jI,kI,lI,mI,T,dI,nI,pI,Vma,qI,rI,sI,tI,Wma,uI,vI,Xma,wI,xI,Yma,yI,Zma,zI,BI,$ma,ana,cna,bna,CI,DI,dna,EI,FI,GI,HI,II,JI,KI,LI,MI,NI,ena,OI,PI,QI,RI,TI,hna,SI,ina,fna,UI,gna,VI,jna,WI,XI,YI,ZI,$I,aJ,bJ,dJ,cJ,eJ,gJ,hJ,lna,iJ,
oJ,qJ,kJ,nJ,tJ,mJ,vJ,pJ,wJ,sJ,rJ,yJ,lJ,jJ,zJ,BJ,AJ,CJ,DJ,FJ,HJ,JJ,LJ,MJ,KJ,IJ,NJ,OJ,PJ,QJ,RJ,SJ,mna,TJ,UJ,VJ,WJ,XJ,YJ,ZJ,$J,aK,bK,cK,dK,eK,fK,gK,hK,iK,kK,lK,mK,nK,oK,pK,qK,rK,tK,uK,nna,vK,qna,ona,pna,rna,wK,xK,zK,AK,yK,BK,CK,sna,tna,DK,EK,una,wna,xna,vna,GK,FK,HK,IK,JK,KK,LK,MK,NK,RK,SK,TK,UK,VK,WK,XK,yna,$K,aL,YK,dL,bL,cL,zna,eL,Ana,fL,gL,Bna,hL,iL,jL,kL,mL,Cna,Ena,Fna,pL,Gna,oL,nL,Dna,qL,sL,rL,tL,vL,uL,wL,Hna,xL,AL,BL,CL,DL,GL,Jna,IL,KL,LL,ML,NL,OL,QL,Kna,SL,RL,Lna,Mna,TL,UL,VL,Ona,XL,WL,YL,Pna,
ZL,$L,Sna,Rna,bM,cM,aM,dM,eM,fM,Una,gM,hM,Vna,iM,jM,kM,lM,Wna,mM,Xna,nM,oM,pM,Yna,qM,sM,uM,wM,yM,zM,DM,Zna,$na,AM,BM,CM,EM,HM,FM,JM,QM,aoa,MM,NM,RM,KM,coa,boa,TM,eoa,SM,UM,OM,XM,VM,YM,WM,$M,ZM,cN,dN,PL,doa,lL,bN,iN,jN,kN,lN,mN,nN,foa,oN,pN,rN,tN,goa,uN,W,xN,yN,zN,hoa,CN,FN,GN,HN,JN,MN,NN,ON,QN,ioa,joa,SN,koa,TN,loa,moa,noa,ooa,poa,qoa,XN,YN,ZN,roa,$N,aO,bO,cO,dO,eO,gO,hO,iO,jO,kO,soa,lO,mO,toa,nO,uoa,voa,woa,yoa,xoa,zoa,Aoa,Boa,oO,Coa,pO,Doa,rO,Foa,Eoa,sO,tO,Joa,Goa,Ioa,Hoa,uO,vO,Koa,wO,xO,Loa,Moa,
Noa,Ooa,yO,Poa,Qoa,zO,AO,CO,DO,EO,Roa,GO,IO,Uoa,JO,KO,LO,Voa,Woa,Xoa,OO,Yoa,Zoa,$oa,apa,PO,NO,bpa,RO,cpa,SO,TO,UO,XO,YO,ZO,$O,aP,dpa,bP,epa,cP,dP,eP,fP,gP,hP,iP,fpa,jP,kP,lP,mP,nP,gpa,ipa,hpa,jpa,oP,kpa,lpa,pP,mpa,qP,rP,sP,npa,opa,ppa,tP,vP,rpa,wP,xP,yP,zP,AP,tpa,spa,BP,CP,DP,EP,FP,vpa,upa,GP,HP,oI,IP,xpa,KP,zpa,Bpa,MP,Cpa,NP,LP,OP,PP,RP,Epa,Fpa,Gpa,Hpa,ZK,XP,ZP,$P,Kpa,Lpa,Mpa,Npa,Dpa,Opa,QP,Qpa,hQ,bQ,VP,iQ,cQ,TP,Rpa,Ppa,SP,aQ,eQ,jQ,WP,YP,gQ,fQ,Tpa,kQ,Vpa,Upa,lQ,X,Zpa,mQ,$pa,Wpa,aqa,nQ,dqa,bqa,iqa,
fqa,eqa,lqa,kqa,mqa,pqa,oqa,sqa,uqa,vqa,zqa,xQ,wqa,Bqa,Aqa,yQ,pH,Cqa,AQ,mH,EQ,Rma,FQ,FO,GQ,HQ,oQ,IQ,Eqa,wQ,pQ,Fqa,JQ,KQ,sQ,Gqa,hqa,qQ,rQ,vQ,Hqa,Iqa,LQ,MQ,zQ,uQ,tQ,xqa,nqa,qqa,NQ,OQ,Jqa,PQ,QQ,RQ,SQ,TQ,UQ,VQ,WQ,XQ,eI,Lqa,Kqa,Mqa,tqa,gqa,cqa,Ypa,Xpa,jqa,yqa,rqa,YQ,Nqa,ZQ,jK,UP,Ipa,BQ,$Q,aR,Pqa,Qqa,bR,Rqa,cR,dR,eR,IM,PM,Sqa,fR,Tqa,Uqa,Soa,hR,iR,Vqa,jR,kR,lR,mR,Toa,BO,Xqa,Yqa,oR,oH,pR,dQ,gR,$qa,ara,bra,qR,rR,cra,dra,era,fra,sR,tR,DQ,CQ,gra,uR,vR,hra,wR,xR,ira,jra,yR,zR,AR,CR,BR,DR,kra,ER,lra,FR,GR,HR,
IR,LR,mra,JR,nra,ora,MR,NR,pra,OR,qra,rra,PR,sra,tra,ura,QR,RR,SR,TR,UR,VR,vra,wra,WR,YR,xra,ZR,KR,$R,aS,bS,yra,cS,zra,dS,eS,fS,gS,hS,Ara,Bra,Dra,Fra,Cra,iS,Gra,Hra,Ira,jS,kS,lS,Dqa,Jra,mS,Kra,nS,Era,Lra,Mra,Nra,Pra,oS,pS,Qra,qS,Rra,Sra,rS,Tra,sS,tS,uS,vS,wS,Ura,xS,Vra,Wra,Xra,Yra,zS,Zra,$ra,asa,bsa,dsa,csa,BS,esa,fsa,nH,gsa,HS,hsa,isa,JS,jsa,KS,ksa,lsa,msa,LS,MS,NS,QS,osa,RS,psa,qsa,rsa,ssa,tsa,vsa,TS,usa,wsa,US,VS,xsa,ysa,zsa,Bsa,Asa,Csa,Dsa,Fsa,Esa,Hsa,XS,Msa,Isa,Nsa,Osa,Ksa,Psa,Lsa,YS,Tsa,Rsa,
Ssa,Zsa,Wsa,$sa,ata,bta,WS,Vsa,Usa,Ysa,Qsa,cta,$S,dta,Jsa,eta,aT,bT,fta,gta,ita,jta,cT,hta,dT,eT,fT,hT,lta,nta,ota,qta,pta,iT,mta,kT,jT,rta,sta,gT,tta,lT,oT,uta,wta,vta,nT,xta,yta,zta,Bta,Ata,Cta,pT,mT,Dta,Eta,qT,rT,Gta,Hta,Ita,Fta,Jta,Kta,Lta,Mta,Ota,Qta,Nta,Sta,Tta,Uta,Vta,Pta,uT,Wta,Xta,Yta,Zta,wT,xT,zT,BT,CT,aua,DT,bua,cua,dua,ET,AT,fua,gua,HT,hua,iua,kua,jua,lua,IT,JT,mua,LT,KT,MT,NT,sua,uua,vua,QT,yua,ST,RT,zua,VT,xua,Bua,wua,UT,Cua,Aua,Eua,TT,WT,Fua,Gua,Hua,Wqa,ZT,Iua,Jua,Kua,Lua,Dua,$ta,GT,
Nua,$T,aU,Oua,Pua,Rua,Sua,eU,dU,Tua,Uua,cU,bU,Qua,hU,gU,iU,fU,Vua,kU,Zua,mU,oU,pU,qU,rU,Xua,nU,sU,Yua,ava,bva,cva,jU,dva,lU,$ua,eva,Wua,fva,hva,iva,gva,tU,uU,wU,xU,yU,vU,zU,jva,kva,AU,CU,OG,lva,ova,nva,mva,pva,rva,BU,DU,EU,FU,GU,HU,IU,sva,tva,KU,LU,MU,vva,xva,wva,yva,Ava,zva,NU,OU,Bva,PU,QU,RU,SU,TU,UU,Cva,Dva,Fva,Gva,Hva,Iva,Jva,Kva,Lva,VU,Mva,Nva,WU,XU,YU,ZU,$U,aV,Ova,bV,Pva,Qva,Rva,Sva,Tva,Vva,cV,Wva,dV,Xva,Zva,Yva,$va,fwa,dwa,awa,bwa,ewa,gwa,cwa,iwa,eV,kwa,iV,lwa,mwa,nV,xJ,oV,pV,pwa,qwa,twa,qV,
mV,vV,tV,gV,rwa,zV,uwa,BV,wV,pW,oW,AV,sW,uW,tW,hV,zwa,nwa,kV,qW,zW,Awa,AW,Bwa,jV,Cwa,wW,yW,sV,vwa,Ewa,Dwa,Gwa,Fwa,BW,xwa,uV,CW,rV,lV,DW,xW,owa,EW,FW,Iwa,Hwa,xV,Jwa,vW,Kwa,rW,ywa,swa,GW,Lwa,Nwa,Owa,Mwa,Pwa,HW,IW,Swa,Rwa,yq,Bq,Uwa,Twa,Vwa,JW,Wwa,Ywa,Zwa,$wa,MW,NW,bxa,exa,OW,fxa,KW,dxa,gxa,LW,hxa,cxa,ixa,axa,QW,PW,RW,Y,LM,jxa,kxa,lxa,mxa,VW,UW,WW,aX,lX,mX,Ora,KG,xxa,zxa,yX,Exa,BX,Gxa,Dxa,Hxa,Ixa,AX,Fxa,DX,EX,FX,GX,nxa,HX,kX,Jxa,JX,Kxa,IX,LX,Lxa,OX,PX,UX,Nxa,Oxa,WX,VX,XX,Pxa,Qxa,ZX,YX,Rxa,aY,bY,Txa,Sxa,
eY,Vxa,gY,cY,Wxa,Xxa,Uxa,hY,kY,Yxa,jY,lY,nY,mY,qY,Zxa,$xa,tY,aya,dya,bya,xY,yY,eya,BY,CY,EY,GY,fya,gya,JY,iya,IY,hya,jya,kya,MY,lya,nya,mya,PY,QY,pya,oya,RY,SY,qya,rya,VY,tya,sya,WY,XY,YY,uya,ZY,$Y,aZ,bZ,vya,cZ,wya,dZ,yya,xya,Aya,zya,iZ,gZ,jZ,hZ,Bya,Cya,Dya,kZ,lZ,mZ,nZ,Eya,qZ,Fya,sZ,tZ,uZ,wZ,xZ,yZ,zZ,Gya,Jya,AZ,Hya,Iya,BZ,Nya,Oya,CZ,Qya,Pya,Rya,Sya,Tya,FZ,HZ,IZ,JZ,Uya,Vya,Wya,Xya,Zya,$ya,aza,NZ,RZ,cza,dza,PZ,LZ,OZ,TZ,gza,UZ,QZ,Yya,fza,SZ,bza,eza,hza,iza,VZ,WZ,XZ,YZ,kza,a_,b_,c_,d_,e_,f_,lza,g_,i_,
h_,j_,k_,mza,l_,nza,pza,oza,m_,n_,qza,o_,p_,rza,q_,sza,r_,tza,s_,t_,x_,w_,uza,v_,A_,vza,wza,B_,C_,E_,xza,rY,Bza,NY,yza,z_,Aza,OY,zza,Cza,Gza,Fza,I_,Hza,J_,Iza,K_,Jza,Kza,Lza,N_,Oza,Rza,Pza,Nza,O_,M_,Mza,Qza,P_,Tza,Sza,Q_,Vza,S_,$za,V_,Zza,Yza,W_,R_,X_,uX,aAa,U_,aia,dAa,bAa,T_,cAa,Wza,Y_,iAa,$_,kAa,lAa,gAa,b0,mAa,c0,eAa,e0,hAa,nAa,d0,a0,oAa,vX,pAa,Z_,rAa,i0,g0,j0,h0,sAa,k0,l0,uAa,q0,wAa,xAa,fJ,yAa,zAa,t0,s0,r0,AAa,BAa,uxa,vxa,CAa,DAa,v0,w0,x0,z0,PAa,KAa,MG,JAa,SAa,TAa,C0,D0,tX,VAa,UAa,E0,wxa,y0,wX,
I0,XAa,J0,L0,NAa,OAa,R0,aBa,Q0,A0,hN,cBa,V0,QAa,W0,YAa,qxa,dBa,eBa,N0,O0,M0,Z0,jBa,F0,kBa,lBa,mBa,jAa,oBa,$0,U0,Uza,G0,f0,a1,b1,pBa,P0,WAa,Y0,fBa,rBa,rxa,bBa,SW,tBa,T0,d1,vBa,H0,nX,e1,wBa,xBa,f1,zBa,MAa,X0,ABa,LAa,g1,h1,vAa,BBa,CBa,FBa,HBa,l1,m1,aa,fa,ea,caa,La,Ta,daa;ba=function(a){return function(){return aa[a].apply(this,arguments)}};
g.ca=function(a,b){return aa[a]=b};
da=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};
aaa=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");};
ha=function(a,b){if(b)a:{for(var c=ea,d=a.split("."),e=0;e<d.length-1;e++){var f=d[e];if(!(f in c))break a;c=c[f]}d=d[d.length-1];e=c[d];f=b(e);f!=e&&null!=f&&fa(c,d,{configurable:!0,writable:!0,value:f})}};
ia=function(a){a={next:a};a[Symbol.iterator]=function(){return this};
return a};
g.q=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:da(a)}};
ka=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c};
g.la=function(a){return a instanceof Array?a:ka(g.q(a))};
g.u=function(a,b){a.prototype=ma(b.prototype);a.prototype.constructor=a;if(na)na(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.od=b.prototype};
oa=function(){this.K=!1;this.D=null;this.B=void 0;this.u=1;this.F=this.G=0;this.N=this.C=null};
qa=function(a){if(a.K)throw new TypeError("Generator is already running");a.K=!0};
ra=function(a,b){a.C={eB:b,mC:!0};a.u=a.G||a.F};
sa=function(a,b,c){a.u=c;return{value:b}};
ta=function(a,b,c){a.G=b;void 0!=c&&(a.F=c)};
ua=function(a,b){a.u=b;a.G=0};
va=function(a){a.G=0;var b=a.C.eB;a.C=null;return b};
wa=function(a){this.u=new oa;this.B=a};
baa=function(a,b){qa(a.u);var c=a.u.D;if(c)return xa(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.u["return"]);
a.u["return"](b);return ya(a)};
xa=function(a,b,c,d){try{var e=b.call(a.u.D,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.u.K=!1,e;var f=e.value}catch(h){return a.u.D=null,ra(a.u,h),ya(a)}a.u.D=null;d.call(a.u,f);return ya(a)};
ya=function(a){for(;a.u.u;)try{var b=a.B(a.u);if(b)return a.u.K=!1,{value:b.value,done:!1}}catch(c){a.u.B=void 0,ra(a.u,c)}a.u.K=!1;if(a.u.C){b=a.u.C;a.u.C=null;if(b.mC)throw b.eB;return{value:b["return"],done:!0}}return{value:void 0,done:!0}};
za=function(a){this.next=function(b){qa(a.u);a.u.D?b=xa(a,a.u.D.next,b,a.u.P):(a.u.P(b),b=ya(a));return b};
this["throw"]=function(b){qa(a.u);a.u.D?b=xa(a,a.u.D["throw"],b,a.u.P):(ra(a.u,b),b=ya(a));return b};
this["return"]=function(b){return baa(a,b)};
this[Symbol.iterator]=function(){return this}};
Aa=function(a,b){var c=new za(new wa(b));na&&a.prototype&&na(c,a.prototype);return c};
Ba=function(a){function b(d){return a.next(d)}
function c(d){return a["throw"](d)}
return new Promise(function(d,e){function f(h){h.done?d(h.value):Promise.resolve(h.value).then(b,c).then(f,e)}
f(a.next())})};
Ca=function(a,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""};
Da=function(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var f=a[e];if(b.call(c,f,e,a))return{ZB:e,CG:f}}return{ZB:-1,CG:void 0}};
Ea=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
Fa=function(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var f=c++;return{value:b(f,a[f]),done:!1}}d=!0;return{done:!0,value:void 0}}};
e[Symbol.iterator]=function(){return e};
return e};
Ga=function(a){return a?a:Array.prototype.fill};
Ia=function(a){return a?a:Array.prototype.copyWithin};
g.Ja=function(a,b,c){a=a.split(".");c=c||g.v;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b};
Ma=function(a){if(a&&a!=g.v)return Ka(a.document);null===La&&(La=Ka(g.v.document));return La};
Ka=function(a){return(a=a.querySelector&&a.querySelector("script[nonce]"))&&(a=a.nonce||a.getAttribute("nonce"))&&caa.test(a)?a:""};
g.Na=function(a,b){for(var c=a.split("."),d=b||g.v,e=0;e<c.length;e++)if(d=d[c[e]],null==d)return null;return d};
g.Oa=function(){};
Pa=function(a){a.cf=void 0;a.getInstance=function(){return a.cf?a.cf:a.cf=new a}};
Qa=function(a){var b=typeof a;return"object"!=b?b:a?Array.isArray(a)?"array":b:"null"};
g.Ra=function(a){var b=Qa(a);return"array"==b||"object"==b&&"number"==typeof a.length};
g.Sa=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b};
g.Ua=function(a){return Object.prototype.hasOwnProperty.call(a,Ta)&&a[Ta]||(a[Ta]=++daa)};
eaa=function(a,b,c){return a.call.apply(a.bind,arguments)};
faa=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}};
g.z=function(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?g.z=eaa:g.z=faa;return g.z.apply(null,arguments)};
g.Va=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var d=c.slice();d.push.apply(d,arguments);return a.apply(this,d)}};
g.Wa=function(a,b){for(var c in b)a[c]=b[c]};
g.A=function(){return Date.now()};
g.Ya=function(a,b){function c(){}
c.prototype=b.prototype;a.od=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.Uf=function(d,e,f){for(var h=Array(arguments.length-2),l=2;l<arguments.length;l++)h[l-2]=arguments[l];return b.prototype[e].apply(d,h)}};
Za=function(a){return a};
$a=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,$a);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};
ab=function(a,b){$a.call(this,gaa(a,b))};
gaa=function(a,b){for(var c=a.split("%s"),d="",e=c.length-1,f=0;f<e;f++)d+=c[f]+(f<b.length?b[f]:"%s");return d+c[e]};
haa=function(){};
iaa=function(a){a=a.url;var b=/[?&]dsh=1(&|$)/.test(a);this.C=!b&&/[?&]ae=1(&|$)/.test(a);this.D=!b&&/[?&]ae=2(&|$)/.test(a);if((this.u=/[?&]adurl=([^&]*)/.exec(a))&&this.u[1]){try{var c=decodeURIComponent(this.u[1])}catch(d){c=null}this.B=c}};
bb=function(a){return function(){return a}};
g.cb=function(a){return a};
jaa=function(a){var b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};
db=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}};
fb=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}};
kaa=function(a,b){var c=0;return function(d){g.v.clearTimeout(c);var e=arguments;c=g.v.setTimeout(function(){a.apply(b,e)},50)}};
g.gb=function(a){return a[a.length-1]};
laa=function(a,b){var c=a.length,d="string"===typeof a?a.split(""):a;for(--c;0<=c;--c)c in d&&b.call(void 0,d[c],c,a)};
g.jb=function(a,b,c){b=ib(a,b,c);return 0>b?null:"string"===typeof a?a.charAt(b):a[b]};
ib=function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;return-1};
g.kb=function(a,b,c){var d=a.length,e="string"===typeof a?a.split(""):a;for(--d;0<=d;d--)if(d in e&&b.call(c,e[d],d,a))return d;return-1};
g.nb=function(a,b){return 0<=lb(a,b)};
g.ob=function(a){return 0==a.length};
pb=function(a){if(!Array.isArray(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0};
g.rb=function(a,b){var c=lb(a,b),d;(d=0<=c)&&g.qb(a,c);return d};
g.qb=function(a,b){return 1==Array.prototype.splice.call(a,b,1).length};
g.sb=function(a,b){var c=ib(a,b,void 0);0<=c&&g.qb(a,c)};
maa=function(a,b){var c=0;laa(a,function(d,e){b.call(void 0,d,e,a)&&g.qb(a,e)&&c++})};
g.tb=function(a){return Array.prototype.concat.apply([],arguments)};
g.ub=function(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]};
vb=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(g.Ra(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var h=0;h<f;h++)a[e+h]=d[h]}else a.push(d)}};
g.xb=function(a,b,c,d){Array.prototype.splice.apply(a,wb(arguments,1))};
wb=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};
naa=function(a){for(var b={},c=0,d=0;d<a.length;){var e=a[d++];var f=e;f=g.Sa(f)?"o"+g.Ua(f):(typeof f).charAt(0)+f;Object.prototype.hasOwnProperty.call(b,f)||(b[f]=!0,a[c++]=e)}a.length=c};
g.Ab=function(a,b,c){return yb(a,c||zb,!1,b)};
Bb=function(a,b){return yb(a,b,!0,void 0,void 0)};
yb=function(a,b,c,d,e){for(var f=0,h=a.length,l;f<h;){var m=f+(h-f>>>1),n;c?n=b.call(e,a[m],m,a):n=b(d,a[m]);0<n?f=m+1:(h=m,l=!n)}return l?f:-f-1};
g.Cb=function(a,b){a.sort(b||zb)};
oaa=function(a,b){var c=zb;g.Cb(a,function(d,e){return c(b(d),b(e))})};
g.Db=function(a,b){if(!g.Ra(a)||!g.Ra(b)||a.length!=b.length)return!1;for(var c=a.length,d=paa,e=0;e<c;e++)if(!d(a[e],b[e]))return!1;return!0};
zb=function(a,b){return a>b?1:a<b?-1:0};
paa=function(a,b){return a===b};
g.Eb=function(a,b,c){c=g.Ab(a,b,c);0>c&&g.xb(a,-(c+1),0,b)};
g.Hb=function(a,b,c){var d={};(0,g.Fb)(a,function(e,f){d[b.call(c,e,f,a)]=e});
return d};
qaa=function(a){for(var b=[],c=0;c<a;c++)b[c]="";return b};
raa=function(a,b){var c=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,0,0,c[0])};
g.Ib=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};
g.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){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c};
g.Mb=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1};
Nb=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0};
Ob=function(a){for(var b in a)return a[b]};
g.Pb=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};
g.Qb=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
g.Rb=function(a,b){var c=g.Ra(b),d=c?b:arguments;for(c=c?0:1;c<d.length;c++){if(null==a)return;a=a[d[c]]}return a};
Sb=function(a,b){return null!==a&&b in a};
g.Tb=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};
Ub=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d};
Vb=function(a,b){var c=Ub(a,b,void 0);return c&&a[c]};
g.Wb=function(a){for(var b in a)return!1;return!0};
g.Xb=function(a){for(var b in a)delete a[b]};
g.Yb=function(a,b){for(var c in a)if(!(c in b)||a[c]!==b[c])return!1;for(var d in b)if(!(d in a))return!1;return!0};
g.Zb=function(a){var b={},c;for(c in a)b[c]=a[c];return b};
g.$b=function(a){if(!a||"object"!==typeof a)return a;if("function"===typeof a.clone)return a.clone();var b=Array.isArray(a)?[]:"function"!==typeof ArrayBuffer||"function"!==typeof ArrayBuffer.isView||!ArrayBuffer.isView(a)||a instanceof DataView?{}:new a.constructor(a.length),c;for(c in a)b[c]=g.$b(a[c]);return b};
g.bc=function(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<ac.length;f++)c=ac[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};
cc=function(a){var b=a;Object.isFrozen&&!Object.isFrozen(a)&&(b=Object.create(a),Object.freeze(b));return b};
ec=function(){if(void 0===dc){var a=null,b=g.v.trustedTypes;if(b&&b.createPolicy){try{a=b.createPolicy("goog#html",{createHTML:Za,createScript:Za,createScriptURL:Za})}catch(c){g.v.console&&g.v.console.error(c.message)}dc=a}else dc=a}return dc};
hc=function(a,b){this.u=a===fc&&b||"";this.B=gc};
ic=function(a){return a instanceof hc&&a.constructor===hc&&a.B===gc?a.u:"type_error:Const"};
g.jc=function(a){return new hc(fc,a)};
lc=function(a,b){this.B=b===kc?a:""};
nc=function(a){return a instanceof lc&&a.constructor===lc?a.B:"type_error:TrustedResourceUrl"};
uaa=function(a,b){var c=ic(a);if(!saa.test(c))throw Error("Invalid TrustedResourceUrl format: "+c);var d=c.replace(taa,function(e,f){if(!Object.prototype.hasOwnProperty.call(b,f))throw Error('Found marker, "'+f+'", in format string, "'+c+'", but no valid label mapping found in args: '+JSON.stringify(b));var h=b[f];return h instanceof hc?ic(h):encodeURIComponent(String(h))});
return oc(d)};
oc=function(a){var b=ec();a=b?b.createScriptURL(a):a;return new lc(a,kc)};
pc=function(a,b){return 0==a.lastIndexOf(b,0)};
qc=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};
g.rc=function(a){return/^[\s\xa0]*$/.test(a)};
zc=function(a,b){if(b)a=a.replace(sc,"&").replace(tc,"<").replace(uc,">").replace(wc,""").replace(xc,"'").replace(yc,"�");else{if(!vaa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(sc,"&"));-1!=a.indexOf("<")&&(a=a.replace(tc,"<"));-1!=a.indexOf(">")&&(a=a.replace(uc,">"));-1!=a.indexOf('"')&&(a=a.replace(wc,"""));-1!=a.indexOf("'")&&(a=a.replace(xc,"'"));-1!=a.indexOf("\x00")&&(a=a.replace(yc,"�"))}return a};
Ac=function(a,b){return-1!=a.toLowerCase().indexOf(b.toLowerCase())};
g.Dc=function(a,b){for(var c=0,d=Bc(String(a)).split("."),e=Bc(String(b)).split("."),f=Math.max(d.length,e.length),h=0;0==c&&h<f;h++){var l=d[h]||"",m=e[h]||"";do{l=/(\d*)(\D*)(.*)/.exec(l)||["","","",""];m=/(\d*)(\D*)(.*)/.exec(m)||["","","",""];if(0==l[0].length&&0==m[0].length)break;c=Cc(0==l[1].length?0:parseInt(l[1],10),0==m[1].length?0:parseInt(m[1],10))||Cc(0==l[2].length,0==m[2].length)||Cc(l[2],m[2]);l=l[3];m=m[3]}while(0==c)}return c};
Cc=function(a,b){return a<b?-1:a>b?1:0};
g.Fc=function(a,b){this.B=b===Ec?a:""};
g.Gc=function(a){return a instanceof g.Fc&&a.constructor===g.Fc?a.B:"type_error:SafeUrl"};
Hc=function(a){a=String(a);a=a.replace(/(%0A|%0D)/g,"");var b=a.match(waa);return b&&xaa.test(b[1])?new g.Fc(a,Ec):null};
g.Kc=function(a){a instanceof g.Fc||(a="object"==typeof a&&a.nj?a.zg():String(a),a=Ic.test(a)?new g.Fc(a,Ec):Hc(a));return a||Jc};
g.Lc=function(a,b){if(a instanceof g.Fc)return a;a="object"==typeof a&&a.nj?a.zg():String(a);if(b&&/^data:/i.test(a)){var c=Hc(a)||Jc;if(c.zg()==a)return c}Ic.test(a)||(a="about:invalid#zClosurez");return new g.Fc(a,Ec)};
Nc=function(a,b){this.u=b===Mc?a:""};
Oc=function(a){return a instanceof Nc&&a.constructor===Nc?a.u:"type_error:SafeStyle"};
Sc=function(a){var b="",c;for(c in a)if(Object.prototype.hasOwnProperty.call(a,c)){if(!/^[-_a-zA-Z0-9]+$/.test(c))throw Error("Name allows only [-_a-zA-Z0-9], got: "+c);var d=a[c];null!=d&&(d=Array.isArray(d)?g.Pc(d,Qc).join(" "):Qc(d),b+=c+":"+d+";")}return b?new Nc(b,Mc):Rc};
Qc=function(a){if(a instanceof g.Fc)return'url("'+g.Gc(a).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';a=a instanceof hc?ic(a):yaa(String(a));if(/[{;}]/.test(a))throw new ab("Value does not allow [{;}], got: %s.",[a]);return a};
yaa=function(a){var b=a.replace(Tc,"$1").replace(Tc,"$1").replace(Uc,"url");if(zaa.test(b)){if(Aaa.test(a))return"zClosurez";for(var c=b=!0,d=0;d<a.length;d++){var e=a.charAt(d);"'"==e&&c?b=!b:'"'==e&&b&&(c=!c)}if(!b||!c||!Baa(a))return"zClosurez"}else return"zClosurez";return Caa(a)};
Baa=function(a){for(var b=!0,c=/^[-_a-zA-Z0-9]$/,d=0;d<a.length;d++){var e=a.charAt(d);if("]"==e){if(b)return!1;b=!0}else if("["==e){if(!b)return!1;b=!1}else if(!b&&!c.test(e))return!1}return b};
Caa=function(a){return a.replace(Uc,function(b,c,d,e){var f="";d=d.replace(/^(['"])(.*)\1$/,function(h,l,m){f=l;return m});
b=g.Kc(d).zg();return c+f+b+f+e})};
Daa=function(a){function b(d){Array.isArray(d)?g.Fb(d,b):c+=Oc(d)}
var c="";g.Fb(arguments,b);return c?new Nc(c,Mc):Rc};
Wc=function(a){return-1!=g.Vc.indexOf(a)};
Xc=function(){return Wc("Firefox")||Wc("FxiOS")};
Zc=function(){return Wc("Safari")&&!(Yc()||Wc("Coast")||Wc("Opera")||Wc("Edge")||Wc("Edg/")||Wc("OPR")||Xc()||Wc("Silk")||Wc("Android"))};
Yc=function(){return(Wc("Chrome")||Wc("CriOS"))&&!Wc("Edge")};
bd=function(a,b,c){this.B=c===ad?a:"";this.C=b};
g.cd=function(a){return a instanceof bd&&a.constructor===bd?a.B:"type_error:SafeHtml"};
ed=function(a){if(a instanceof bd)return a;var b="object"==typeof a,c=null;b&&a.Jw&&(c=a.u());return dd(zc(b&&a.nj?a.zg():String(a)),c)};
Eaa=function(a){function b(f){Array.isArray(f)?g.Fb(f,b):(f=ed(f),e.push(g.cd(f).toString()),f=f.u(),0==d?d=f:0!=f&&d!=f&&(d=null))}
var c=ed(fd),d=c.u(),e=[];g.Fb(a,b);return dd(e.join(g.cd(c).toString()),d)};
Faa=function(a){return Eaa(Array.prototype.slice.call(arguments))};
dd=function(a,b){var c=ec();c=c?c.createHTML(a):a;return new bd(c,b,ad)};
g.gd=function(a,b){ic(a);ic(a);return dd(b,null)};
Gaa=function(a){var b=g.jc("Output of CSS sanitizer");ic(b);ic(b);return new Nc(a,Mc)};
g.hd=function(a,b){if(Haa())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=g.cd(b)};
g.id=function(a,b){var c=b instanceof g.Fc?b:g.Lc(b);a.href=g.Gc(c)};
g.jd=function(a,b){a.src=nc(b);var c=Ma(a.ownerDocument&&a.ownerDocument.defaultView);c&&a.setAttribute("nonce",c)};
kd=function(a,b,c,d){a=a instanceof g.Fc?a:g.Lc(a);b=b||g.v;c=c instanceof hc?ic(c):c||"";return void 0!==d?b.open(g.Gc(a),c,d,void 0):b.open(g.Gc(a),c)};
ld=function(a){return encodeURIComponent(String(a))};
md=function(a){return decodeURIComponent(a.replace(/\+/g," "))};
g.nd=function(a){return a=zc(a,void 0)};
g.od=function(a){return null==a?"":String(a)};
pd=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};
g.qd=function(a){var b=Number(a);return 0==b&&g.rc(a)?NaN:b};
rd=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})};
sd=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()};
Iaa=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})};
td=function(a,b,c,d,e,f,h){var l="";a&&(l+=a+":");c&&(l+="//",b&&(l+=b+"@"),l+=c,d&&(l+=":"+d));e&&(l+=e);f&&(l+="?"+f);h&&(l+="#"+h);return l};
ud=function(a){return a?decodeURI(a):a};
g.wd=function(a,b){return b.match(vd)[a]||null};
g.xd=function(a){return ud(g.wd(3,a))};
yd=function(a){a=a.match(vd);return td(a[1],null,a[3],a[4])};
zd=function(a){a=a.match(vd);return td(null,null,null,null,a[5],a[6],a[7])};
Ad=function(a,b){if(a)for(var c=a.split("&"),d=0;d<c.length;d++){var e=c[d].indexOf("="),f=null;if(0<=e){var h=c[d].substring(0,e);f=c[d].substring(e+1)}else h=c[d];b(h,f?md(f):"")}};
Bd=function(a){var b=a.indexOf("#");0>b&&(b=a.length);var c=a.indexOf("?");if(0>c||c>b){c=b;var d=""}else d=a.substring(c+1,b);return[a.substr(0,c),d,a.substr(b)]};
Cd=function(a,b){return b?a?a+"&"+b:b:a};
Dd=function(a,b){if(!b)return a;var c=Bd(a);c[1]=Cd(c[1],b);return c[0]+(c[1]?"?"+c[1]:"")+c[2]};
Ed=function(a,b,c){if(Array.isArray(b))for(var d=0;d<b.length;d++)Ed(a,String(b[d]),c);else null!=b&&c.push(a+(""===b?"":"="+ld(b)))};
Fd=function(a,b){for(var c=[],d=b||0;d<a.length;d+=2)Ed(a[d],a[d+1],c);return c.join("&")};
g.Gd=function(a){var b=[],c;for(c in a)Ed(c,a[c],b);return b.join("&")};
Hd=function(a,b){var c=2==arguments.length?Fd(arguments[1],0):Fd(arguments,1);return Dd(a,c)};
g.Id=function(a,b){var c=g.Gd(b);return Dd(a,c)};
Jd=function(a,b,c){c=null!=c?"="+ld(c):"";return Dd(a,b+c)};
Kd=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};
Md=function(a,b){var c=a.search(Ld),d=Kd(a,0,b,c);if(0>d)return null;var e=a.indexOf("&",d);if(0>e||e>c)e=c;d+=b.length+1;return md(a.substr(d,e-d))};
Nd=function(a,b){for(var c=a.search(Ld),d=0,e,f=[];0<=(e=Kd(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(Jaa,"$1")};
Qd=function(a,b,c){return Jd(Nd(a,b),b,c)};
Kaa=function(a,b){var c=Bd(a),d=c[1],e=[];d&&d.split("&").forEach(function(f){var h=f.indexOf("=");b.hasOwnProperty(0<=h?f.substr(0,h):f)||e.push(f)});
c[1]=Cd(e.join("&"),g.Gd(b));return c[0]+(c[1]?"?"+c[1]:"")+c[2]};
Rd=function(){return Wc("iPhone")&&!Wc("iPod")&&!Wc("iPad")};
Sd=function(){return Rd()||Wc("iPad")||Wc("iPod")};
Td=function(a){Td[" "](a);return a};
Ud=function(a,b){try{return Td(a[b]),!0}catch(c){}return!1};
Vd=function(a,b,c,d){d=d?d(b):b;return Object.prototype.hasOwnProperty.call(a,d)?a[d]:a[d]=c(b)};
Wd=function(){var a=g.v.document;return a?a.documentMode:void 0};
g.Yd=function(a){return Vd(Laa,a,function(){return 0<=g.Dc(Xd,a)})};
g.Zd=function(a){return Number(Maa)>=a};
g.$d=function(a,b,c){return Math.min(Math.max(a,b),c)};
g.ae=function(a,b){var c=a%b;return 0>c*b?c+b:c};
g.be=function(a,b,c){return a+c*(b-a)};
ce=function(a,b){return 1E-6>=Math.abs(a-b)};
g.ee=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0};
fe=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1};
g.ge=function(a,b){this.width=a;this.height=b};
g.he=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};
ie=function(a){return a.width*a.height};
me=function(a){return a?new je(ke(a)):le||(le=new je)};
ne=function(a,b){return"string"===typeof b?a.getElementById(b):b};
g.pe=function(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):g.oe(document,"*",a,b)};
g.qe=function(a,b){var c=b||document;if(c.getElementsByClassName)c=c.getElementsByClassName(a)[0];else{c=document;var d=b||c;c=d.querySelectorAll&&d.querySelector&&a?d.querySelector(a?"."+a:""):g.oe(c,"*",a,b)[0]||null}return c||null};
g.oe=function(a,b,c,d){a=d||a;b=b&&"*"!=b?String(b).toUpperCase():"";if(a.querySelectorAll&&a.querySelector&&(b||c))return a.querySelectorAll(b+(c?"."+c:""));if(c&&a.getElementsByClassName){a=a.getElementsByClassName(c);if(b){d={};for(var e=0,f=0,h;h=a[f];f++)b==h.nodeName&&(d[e++]=h);d.length=e;return d}return a}a=a.getElementsByTagName(b||"*");if(c){d={};for(f=e=0;h=a[f];f++)b=h.className,"function"==typeof b.split&&g.nb(b.split(/\s+/),c)&&(d[e++]=h);d.length=e;return d}return a};
se=function(a,b){g.Ib(b,function(c,d){c&&"object"==typeof c&&c.nj&&(c=c.zg());"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:re.hasOwnProperty(d)?a.setAttribute(re[d],c):pc(d,"aria-")||pc(d,"data-")?a.setAttribute(d,c):a[d]=c})};
te=function(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new g.ge(a.clientWidth,a.clientHeight)};
ye=function(a){var b=ue(a);a=a.parentWindow||a.defaultView;return g.ve&&g.Yd("10")&&a.pageYOffset!=b.scrollTop?new g.ee(b.scrollLeft,b.scrollTop):new g.ee(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};
ue=function(a){return a.scrollingElement?a.scrollingElement:g.ze||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement};
Ae=function(a){return a?a.parentWindow||a.defaultView:window};
g.De=function(a,b,c){var d=arguments,e=document,f=String(d[0]),h=d[1];if(!Naa&&h&&(h.name||h.type)){f=["<",f];h.name&&f.push(' name="',g.nd(h.name),'"');if(h.type){f.push(' type="',g.nd(h.type),'"');var l={};g.bc(l,h);delete l.type;h=l}f.push(">");f=f.join("")}f=Be(e,f);h&&("string"===typeof h?f.className=h:Array.isArray(h)?f.className=h.join(" "):se(f,h));2<d.length&&Ce(e,f,d,2);return f};
Ce=function(a,b,c,d){function e(l){l&&b.appendChild("string"===typeof l?a.createTextNode(l):l)}
for(;d<c.length;d++){var f=c[d];if(!g.Ra(f)||g.Sa(f)&&0<f.nodeType)e(f);else{a:{if(f&&"number"==typeof f.length){if(g.Sa(f)){var h="function"==typeof f.item||"string"==typeof f.item;break a}if("function"===typeof f){h="function"==typeof f.item;break a}}h=!1}g.Fb(h?g.ub(f):f,e)}}};
g.Ee=function(a){return Be(document,a)};
Be=function(a,b){b=String(b);"application/xhtml+xml"===a.contentType&&(b=b.toLowerCase());return a.createElement(b)};
g.Fe=function(a){return document.createTextNode(String(a))};
g.Ge=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};
g.He=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)};
g.Ie=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null};
Paa=function(a){return Oaa&&void 0!=a.children?a.children:g.Je(a.childNodes,function(b){return 1==b.nodeType})};
g.Ke=function(a){var b;if(Qaa&&!(g.ve&&g.Yd("9")&&!g.Yd("10")&&g.v.SVGElement&&a instanceof g.v.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return g.Sa(b)&&1==b.nodeType?b:null};
g.Le=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};
ke=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document};
g.Me=function(a,b){if("textContent"in a)a.textContent=b;else if(3==a.nodeType)a.data=String(b);else if(a.firstChild&&3==a.firstChild.nodeType){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=String(b)}else{g.Ge(a);var c=ke(a);a.appendChild(c.createTextNode(String(b)))}};
Pe=function(a){var b;"A"==a.tagName&&a.hasAttribute("href")||"INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"BUTTON"==a.tagName?b=!a.disabled&&(!Ne(a)||Oe(a)):b=Ne(a)&&Oe(a);if(b&&g.ve){var c;"function"!==typeof a.getBoundingClientRect||g.ve&&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};
Ne=function(a){return g.ve&&!g.Yd("9")?(a=a.getAttributeNode("tabindex"),null!=a&&a.specified):a.hasAttribute("tabindex")};
Oe=function(a){a=a.tabIndex;return"number"===typeof a&&0<=a&&32768>a};
Re=function(a,b,c,d){if(!b&&!c)return null;var e=b?String(b).toUpperCase():null;return Qe(a,function(f){return(!e||f.nodeName==e)&&(!c||"string"===typeof f.className&&g.nb(f.className.split(/\s+/),c))},!0,d)};
Qe=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};
je=function(a){this.u=a||g.v.document||document};
Se=function(a,b,c,d){var e=window,f="//pagead2.googlesyndication.com/bg/"+g.nd(c)+".js";c=e.document;var h={};b&&(h._scs_=b);h._bgu_=f;h._bgp_=d;h._li_="v_h.3.0.0.0";(b=e.GoogleTyFxhY)&&"function"==typeof b.push||(b=e.GoogleTyFxhY=[]);b.push(h);e=me(c).createElement("SCRIPT");e.type="text/javascript";e.async=!0;a=uaa(g.jc("//tpc.googlesyndication.com/sodar/%{path}"),{path:g.nd(a)+".js"});g.jd(e,a);c.getElementsByTagName("head")[0].appendChild(e)};
Te=function(a,b){var c=void 0;return new (c||(c=Promise))(function(d,e){function f(m){try{l(b.next(m))}catch(n){e(n)}}
function h(m){try{l(b["throw"](m))}catch(n){e(n)}}
function l(m){m.done?d(m.value):(new c(function(n){n(m.value)})).then(f,h)}
l((b=b.apply(a,void 0)).next())})};
Raa=function(a){return g.Pc(a,function(b){b=b.toString(16);return 1<b.length?b:"0"+b}).join("")};
g.Ue=function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);128>e?b[c++]=e:(2048>e?b[c++]=e>>6|192:(55296==(e&64512)&&d+1<a.length&&56320==(a.charCodeAt(d+1)&64512)?(e=65536+((e&1023)<<10)+(a.charCodeAt(++d)&1023),b[c++]=e>>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}return b};
g.Ve=function(a){for(var b=[],c=0,d=0;c<a.length;){var e=a[c++];if(128>e)b[d++]=String.fromCharCode(e);else if(191<e&&224>e){var f=a[c++];b[d++]=String.fromCharCode((e&31)<<6|f&63)}else if(239<e&&365>e){f=a[c++];var h=a[c++],l=a[c++];e=((e&7)<<18|(f&63)<<12|(h&63)<<6|l&63)-65536;b[d++]=String.fromCharCode(55296+(e>>10));b[d++]=String.fromCharCode(56320+(e&1023))}else f=a[c++],h=a[c++],b[d++]=String.fromCharCode((e&15)<<12|(f&63)<<6|h&63)}return b.join("")};
Xe=function(a,b,c){this.B=null;this.u=this.C=this.D=0;this.F=!1;a&&We(this,a,b,c)};
Ze=function(a,b,c){if(Ye.length){var d=Ye.pop();a&&We(d,a,b,c);return d}return new Xe(a,b,c)};
We=function(a,b,c,d){b=b.constructor===Uint8Array?b:b.constructor===ArrayBuffer?new Uint8Array(b):b.constructor===Array?new Uint8Array(b):b.constructor===String?g.$e(b):new Uint8Array(0);a.B=b;a.D=void 0!==c?c:0;a.C=void 0!==d?a.D+d:a.B.length;a.u=a.D};
af=function(a){for(var b=128,c=0,d=0,e=0;4>e&&128<=b;e++)b=a.B[a.u++],c|=(b&127)<<7*e;128<=b&&(b=a.B[a.u++],c|=(b&127)<<28,d|=(b&127)>>4);if(128<=b)for(e=0;5>e&&128<=b;e++)b=a.B[a.u++],d|=(b&127)<<7*e+3;if(128>b){a=c>>>0;b=d>>>0;if(d=b&2147483648)a=~a+1>>>0,b=~b>>>0,0==a&&(b=b+1>>>0);a=4294967296*b+(a>>>0);return d?-a:a}a.F=!0};
bf=function(a){var b=a.B;var c=b[a.u+0];var d=c&127;if(128>c)return a.u+=1,d;c=b[a.u+1];d|=(c&127)<<7;if(128>c)return a.u+=2,d;c=b[a.u+2];d|=(c&127)<<14;if(128>c)return a.u+=3,d;c=b[a.u+3];d|=(c&127)<<21;if(128>c)return a.u+=4,d;c=b[a.u+4];d|=(c&15)<<28;if(128>c)return a.u+=5,d>>>0;a.u+=5;128<=b[a.u++]&&128<=b[a.u++]&&128<=b[a.u++]&&128<=b[a.u++]&&a.u++;return d};
cf=function(a){this.u=Ze(a,void 0,void 0);this.F=this.u.u;this.B=this.C=-1;this.D=!1};
df=function(a){var b=a.u;(b=b.u==b.C)||(b=a.D)||(b=a.u,b=b.F||0>b.u||b.u>b.C);if(b)return!1;a.F=a.u.u;b=bf(a.u);var c=b&7;if(0!=c&&5!=c&&1!=c&&2!=c&&3!=c&&4!=c)return a.D=!0,!1;a.C=b>>>3;a.B=c;return!0};
ef=function(a){switch(a.B){case 0:if(0!=a.B)ef(a);else{for(a=a.u;a.B[a.u]&128;)a.u++;a.u++}break;case 1:1!=a.B?ef(a):a.u.advance(8);break;case 2:if(2!=a.B)ef(a);else{var b=bf(a.u);a.u.advance(b)}break;case 5:5!=a.B?ef(a):a.u.advance(4);break;case 3:b=a.C;do{if(!df(a)){a.D=!0;break}if(4==a.B){a.C!=b&&(a.D=!0);break}ef(a)}while(1);break;default:a.D=!0}};
ff=function(a){var b=bf(a.u);a=a.u;var c=a.B,d=a.u,e=d+b;b=[];for(var f="";d<e;){var h=c[d++];if(128>h)b.push(h);else if(192>h)continue;else if(224>h){var l=c[d++];b.push((h&31)<<6|l&63)}else if(240>h){l=c[d++];var m=c[d++];b.push((h&15)<<12|(l&63)<<6|m&63)}else if(248>h){l=c[d++];m=c[d++];var n=c[d++];h=(h&7)<<18|(l&63)<<12|(m&63)<<6|n&63;h-=65536;b.push((h>>10&1023)+55296,(h&1023)+56320)}8192<=b.length&&(f+=String.fromCharCode.apply(null,b),b.length=0)}c=f;if(8192>=b.length)b=String.fromCharCode.apply(null,
b);else{e="";for(f=0;f<b.length;f+=8192)h=wb(b,f,f+8192),e+=String.fromCharCode.apply(null,h);b=e}a.u=d;return c+b};
gf=function(a){var b=bf(a.u);a=a.u;if(0>b||a.u+b>a.B.length)a.F=!0,b=new Uint8Array(0);else{var c=a.B.subarray(a.u,a.u+b);a.u+=b;b=c}return b};
hf=function(){this.u=[]};
g.jf=function(a,b){for(;127<b;)a.u.push(b&127|128),b>>>=7;a.u.push(b)};
g.kf=function(a,b){a.u.push(b>>>0&255);a.u.push(b>>>8&255);a.u.push(b>>>16&255);a.u.push(b>>>24&255)};
g.nf=function(a,b){void 0===b&&(b=0);lf();for(var c=mf[b],d=[],e=0;e<a.length;e+=3){var f=a[e],h=e+1<a.length,l=h?a[e+1]:0,m=e+2<a.length,n=m?a[e+2]:0,p=f>>2;f=(f&3)<<4|l>>4;l=(l&15)<<2|n>>6;n&=63;m||(n=64,h||(l=64));d.push(c[p],c[f],c[l]||"",c[n]||"")}return d.join("")};
g.qf=function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);255<e&&(b[c++]=e&255,e>>=8);b[c++]=e}return g.nf(b,3)};
Saa=function(a){var b=[];rf(a,function(c){b.push(c)});
return b};
g.$e=function(a){!g.ve||g.Yd("10");var b=a.length,c=3*b/4;c%3?c=Math.floor(c):-1!="=.".indexOf(a[b-1])&&(c=-1!="=.".indexOf(a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;rf(a,function(f){d[e++]=f});
return d.subarray(0,e)};
rf=function(a,b){function c(m){for(;d<a.length;){var n=a.charAt(d++),p=sf[n];if(null!=p)return p;if(!g.rc(n))throw Error("Unknown base64 encoding at char: "+n);}return m}
lf();for(var d=0;;){var e=c(-1),f=c(0),h=c(64),l=c(64);if(64===l&&-1===e)break;b(e<<2|f>>4);64!=h&&(b(f<<4&240|h>>2),64!=l&&b(h<<6&192|l))}};
lf=function(){if(!sf){sf={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));mf[c]=d;for(var e=0;e<d.length;e++){var f=d[e];void 0===sf[f]&&(sf[f]=e)}}}};
g.tf=function(){this.C=[];this.B=0;this.u=new hf};
g.uf=function(a){for(var b=new Uint8Array(a.B+a.u.length()),c=a.C,d=c.length,e=0,f=0;f<d;f++){var h=c[f];b.set(h,e);e+=h.length}c=a.u.end();b.set(c,e);a.C=[b];return b};
g.vf=function(a,b,c){if(null!=c&&null!=c)if(g.jf(a.u,8*b),a=a.u,0<=c)g.jf(a,c);else{for(b=0;9>b;b++)a.u.push(c&127|128),c>>=7;a.u.push(1)}};
g.yf=function(a,b,c){if(null!=c&&null!=c){g.jf(a.u,8*b);a=a.u;var d=c;c=0>d;d=Math.abs(d);b=d>>>0;d=Math.floor((d-b)/4294967296);d>>>=0;c&&(d=~d>>>0,b=(~b>>>0)+1,4294967295<b&&(b=0,d++,4294967295<d&&(d=0)));g.wf=b;g.xf=d;c=g.wf;for(b=g.xf;0<b||127<c;)a.u.push(c&127|128),c=(c>>>7|b<<25)>>>0,b>>>=7;a.u.push(c)}};
g.zf=function(a,b,c){if(null!=c){g.jf(a.u,8*b+1);a=a.u;var d=c;d=(c=0>d?1:0)?-d:d;if(0===d)g.xf=0<1/d?0:2147483648,g.wf=0;else if(isNaN(d))g.xf=2147483647,g.wf=4294967295;else if(1.7976931348623157E308<d)g.xf=(c<<31|2146435072)>>>0,g.wf=0;else if(2.2250738585072014E-308>d)d/=Math.pow(2,-1074),g.xf=(c<<31|d/4294967296)>>>0,g.wf=d>>>0;else{var e=d;b=0;if(2<=e)for(;2<=e&&1023>b;)b++,e/=2;else for(;1>e&&-1022<b;)e*=2,b--;d*=Math.pow(2,-b);g.xf=(c<<31|b+1023<<20|1048576*d&1048575)>>>0;g.wf=4503599627370496*
d>>>0}g.kf(a,g.wf);g.kf(a,g.xf)}};
g.Af=function(){};
g.Ff=function(a,b,c,d){a.u=null;b||(b=[]);a.G=void 0;a.C=-1;a.wf=b;a:{if(b=a.wf.length){--b;var e=a.wf[b];if(!(null===e||"object"!=typeof e||Array.isArray(e)||Bf&&e instanceof Uint8Array)){a.D=b-a.C;a.B=e;break a}}a.D=Number.MAX_VALUE}a.F={};if(c)for(b=0;b<c.length;b++)e=c[b],e<a.D?(e+=a.C,a.wf[e]=a.wf[e]||Cf):(Df(a),a.B[e]=a.B[e]||Cf);if(d&&d.length)for(b=0;b<d.length;b++)g.Ef(a,d[b])};
Df=function(a){var b=a.D+a.C;a.wf[b]||(a.B=a.wf[b]={})};
g.Gf=function(a,b){if(b<a.D){var c=b+a.C,d=a.wf[c];return d!==Cf?d:a.wf[c]=[]}if(a.B)return d=a.B[b],d===Cf?a.B[b]=[]:d};
Taa=function(a){return null==a||a instanceof Uint8Array?a:"string"===typeof a?g.$e(a):null};
Hf=function(a,b){var c=g.Gf(a,b);return null==c?0:c};
g.If=function(a,b,c){b<a.D?a.wf[b+a.C]=c:(Df(a),a.B[b]=c);return a};
Jf=function(a,b,c){0!==c?g.If(a,b,c):b<a.D?a.wf[b+a.C]=null:(Df(a),delete a.B[b]);return a};
g.Ef=function(a,b){for(var c,d,e=0;e<b.length;e++){var f=b[e],h=g.Gf(a,f);null!=h&&(c=f,d=h,g.If(a,f,void 0))}return c?(g.If(a,c,d),c):0};
g.Kf=function(a,b,c){a.u||(a.u={});if(!a.u[c]){for(var d=g.Gf(a,c),e=[],f=0;f<d.length;f++)e[f]=new b(d[f]);a.u[c]=e}b=a.u[c];b==Cf&&(b=a.u[c]=[]);return b};
Lf=function(a){if(Array.isArray(a)){for(var b=Array(a.length),c=0;c<a.length;c++){var d=a[c];null!=d&&(b[c]="object"==typeof d?Lf(d):d)}return b}if(Bf&&a instanceof Uint8Array)return new Uint8Array(a);b={};for(c in a)d=a[c],null!=d&&(b[c]="object"==typeof d?Lf(d):d);return b};
Uaa=function(a){var b=g.Na("window.location.href");null==a&&(a='Unknown Error of type "null/undefined"');if("string"===typeof a)return{message:a,name:"Unknown error",lineNumber:"Not available",fileName:b,stack:"Not available"};var c=!1;try{var d=a.lineNumber||a.line||"Not available"}catch(h){d="Not available",c=!0}try{var e=a.fileName||a.filename||a.sourceURL||g.v.$googDebugFname||b}catch(h){e="Not available",c=!0}b=Mf(a);if(!(!c&&a.lineNumber&&a.fileName&&a.stack&&a.message&&a.name)){c=a.message;
if(null==c){if(a.constructor&&a.constructor instanceof Function){if(a.constructor.name)c=a.constructor.name;else if(c=a.constructor,Nf[c])c=Nf[c];else{c=String(c);if(!Nf[c]){var f=/function\s+([^\(]+)/m.exec(c);Nf[c]=f?f[1]:"[Anonymous]"}c=Nf[c]}c='Unknown Error of type "'+c+'"'}else c="Unknown Error of unknown type";"function"===typeof a.toString&&Object.prototype.toString!==a.toString&&(c+=": "+a.toString())}return{message:c,name:a.name||"UnknownError",lineNumber:d,fileName:e,stack:b||"Not available"}}a.stack=
b;return a};
Mf=function(a,b){b||(b={});b[Of(a)]=!0;var c=a.stack||"",d=a.G3;d&&!b[Of(d)]&&(c+="\nCaused by: ",d.stack&&0==d.stack.indexOf(d.toString())||(c+="string"===typeof d?d:d.message+"\n"),c+=Mf(d,b));return c};
Of=function(a){var b="";"function"===typeof a.toString&&(b=""+a);return b+a.stack};
Pf=function(a){this.u=a||{cookie:""}};
Qf=function(a){a=(a.u.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=Bc(a[f]),d=e.indexOf("="),-1==d?(b.push(""),c.push(e)):(b.push(e.substring(0,d)),c.push(e.substring(d+1)));return{keys:b,values:c}};
Rf=function(a,b,c){c=void 0===c?{}:c;this.error=a;this.context=b.context;this.msg=b.message||"";this.id=b.id||"jserror";this.meta=c};
Sf=function(a){return a?a.passive&&Vaa()?a:a.capture||!1:!1};
Tf=function(a,b,c,d){return a.addEventListener?(a.addEventListener(b,c,Sf(d)),!0):!1};
Uf=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,Sf(void 0))};
Wf=function(){return!Vf()&&(Wc("iPod")||Wc("iPhone")||Wc("Android")||Wc("IEMobile"))};
Vf=function(){return Wc("iPad")||Wc("Android")&&!Wc("Mobile")||Wc("Silk")};
Xf=function(a){try{return!!a&&null!=a.location.href&&Ud(a,"foo")}catch(b){return!1}};
Yf=function(a,b){if(a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.call(void 0,a[c],c,a)};
Xaa=function(){var a=[];Yf(Waa,function(b){a.push(b)});
return a};
Zaa=function(a){return(a=Yaa.exec(a))&&a[0]||""};
$aa=function(){var a=Zf;if(!a)return"";var b=/.*[&#?]google_debug(=[^&]*)?(&.*)?$/;try{var c=b.exec(decodeURIComponent(a));if(c)return c[1]&&1<c[1].length?c[1].substring(1):"true"}catch(d){}return""};
bba=function(){var a=g.Ee("IFRAME"),b={};g.Fb(aba(),function(c){a.sandbox&&a.sandbox.supports&&a.sandbox.supports(c)&&(b[c]=!0)});
return b};
g.B=function(){this.Rd=this.Rd;this.dm=this.dm};
g.C=function(a,b){g.$f(a,g.Va(g.ag,b))};
g.$f=function(a,b){a.Rd?b():(a.dm||(a.dm=[]),a.dm.push(b))};
g.ag=function(a){a&&"function"==typeof a.dispose&&a.dispose()};
g.bg=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];g.Ra(d)?g.bg.apply(null,d):g.ag(d)}};
cg=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};
dg=function(a,b,c){b instanceof g.ee?(a.left+=b.x,a.right+=b.x,a.top+=b.y,a.bottom+=b.y):(a.left+=b,a.right+=b,"number"===typeof c&&(a.top+=c,a.bottom+=c));return a};
g.eg=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};
fg=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};
cba=function(){};
hg=function(a,b){if(b!==gg)throw Error("Bad secret");this.u=a};
g.jg=function(a){ig();return oc(a)};
g.lg=function(a,b,c){if("string"===typeof b)(b=kg(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=kg(c,d);f&&(c.style[f]=e)}};
kg=function(a,b){var c=mg[b];if(!c){var d=rd(b);c=d;void 0===a.style[d]&&(d=(g.ze?"Webkit":ng?"Moz":g.ve?"ms":g.og?"O":null)+Iaa(d),void 0!==a.style[d]&&(c=d));mg[b]=c}return c};
g.pg=function(a,b){var c=a.style[rd(b)];return"undefined"!==typeof c?c:a.style[kg(a,b)]||""};
qg=function(a,b){var c=ke(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""};
rg=function(a,b){return qg(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]};
g.tg=function(a,b,c){if(b instanceof g.ee){var d=b.x;b=b.y}else d=b,b=c;a.style.left=g.sg(d,!1);a.style.top=g.sg(b,!1)};
ug=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}};
dba=function(a){if(g.ve&&!g.Zd(8))return a.offsetParent;var b=ke(a),c=rg(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=rg(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.vg=function(a){var b=ke(a),c=new g.ee(0,0);var d=b?ke(b):document;d=!g.ve||g.Zd(9)||"CSS1Compat"==me(d).u.compatMode?d.documentElement:d.body;if(a==d)return c;a=ug(a);b=ye(me(b).u);c.x=a.left+b.x;c.y=a.top+b.y;return c};
xg=function(a,b){var c=new g.ee(0,0),d=Ae(ke(a));if(!Ud(d,"parent"))return c;var e=a;do{var f=d==b?g.vg(e):wg(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.zg=function(a,b){var c=yg(a),d=yg(b);return new g.ee(c.x-d.x,c.y-d.y)};
wg=function(a){a=ug(a);return new g.ee(a.left,a.top)};
yg=function(a){if(1==a.nodeType)return wg(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.ee(a.clientX,a.clientY)};
g.Ag=function(a,b,c){if(b instanceof g.ge)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");a.style.width=g.sg(b,!0);a.style.height=g.sg(c,!0)};
g.sg=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a};
g.Bg=function(a){var b=eba;if("none"!=rg(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};
eba=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.ze&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=ug(a),new g.ge(a.right-a.left,a.bottom-a.top)):new g.ge(b,c)};
g.Cg=function(a,b){a.style.display=b?"":"none"};
Gg=function(){if(Dg&&!Xf(Eg)){var a="."+Fg.domain;try{for(;2<a.split(".").length&&!Xf(Eg);)Fg.domain=a=a.substr(a.indexOf(".")+1),Eg=window.parent}catch(b){}Xf(Eg)||(Eg=window)}return Eg};
Hg=function(a,b,c){a&&null!==b&&b!=b.top&&(b=b.top);try{return(void 0===c?0:c)?(new g.ge(b.innerWidth,b.innerHeight)).round():te(b||window).round()}catch(d){return new g.ge(-12245933,-12245933)}};
Ig=function(a,b,c){try{a&&(b=b.top);var d=Hg(a,b,void 0===c?!1:c),e=ye(me(b.document).u);if(-12245933==d.width){var f=d.width;var h=new cg(f,f,f,f)}else h=new cg(e.y,e.x+d.width,e.y+d.height,e.x);return h}catch(l){return new cg(-12245933,-12245933,-12245933,-12245933)}};
fba=function(a){var b={};g.Fb(a,function(c){var d=c.event,e=b[d];b.hasOwnProperty(d)?null!==e&&(c.B(e)||(b[d]=null)):b[d]=c});
maa(a,function(c){return null===b[c.event]})};
Jg=function(){this.jc=0;this.u=!1;this.B=-1;this.Ll=!1;this.Rf=0};
Kg=function(){this.B=null;this.u=!1};
Lg=function(a){Kg.call(this);this.C=a};
Mg=function(){Kg.call(this)};
Ng=function(){Kg.call(this)};
Og=function(){this.u={};this.C=!0;this.B={}};
Pg=function(a,b,c){a.u[b]||(a.u[b]=new Lg(c));return a.u[b]};
gba=function(a){a.u.queryid||(a.u.queryid=new Ng)};
Qg=function(a,b,c){(a=a.u[b])&&a.setValue(c)};
Rg=function(a,b){if(Sb(a.B,b))return a.B[b];var c=a.u[b];if(c)return c.getValue()};
Sg=function(a){var b={},c=g.Jb(a.u,function(d){return d.u});
g.Ib(c,function(d,e){var f=void 0!==a.B[e]?String(a.B[e]):d.u&&null!==d.B?String(d.B):"";0<f.length&&(b[e]=f)},a);
return b};
hba=function(a){a=Sg(a);var b=[];g.Ib(a,function(c,d){d in Object.prototype||"undefined"!=typeof c&&b.push([d,":",c].join(""))});
return b};
iba=function(){this.u=this.yk=null};
Tg=function(){};
Vg=function(){if(!Ug())throw Error();};
Ug=function(){return!(!Wg||!Wg.performance)};
Xg=function(a){return{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[a.visibilityState||a.webkitVisibilityState||a.mozVisibilityState||""]||0};
Yg=function(){};
ah=function(a){a=a||Zg();for(var b=new $g(g.v.location.href,g.v,!1),c=null,d=a.length-1,e=d;0<=e;--e){var f=a[e];!c&&jba.test(f.url)&&(c=f);if(f.url&&!f.bx){b=f;break}}e=null;f=a.length&&a[d].url;0!=b.depth&&f&&(e=a[d]);return new kba(b,e,c)};
Zg=function(){var a=g.v,b=[],c=null;do{var d=a;if(Xf(d)){var e=d.location.href;c=d.document&&d.document.referrer||null}else e=c,c=null;b.push(new $g(e||"",d));try{a=d.parent}catch(f){a=null}}while(a&&d!=a);d=0;for(a=b.length-1;d<=a;++d)b[d].depth=a-d;d=g.v;if(d.location&&d.location.ancestorOrigins&&d.location.ancestorOrigins.length==b.length-1)for(a=1;a<b.length;++a)e=b[a],e.url||(e.url=d.location.ancestorOrigins[a-1]||"",e.bx=!0);return b};
kba=function(a,b,c){this.u=a;this.B=b;this.C=c};
$g=function(a,b,c){this.url=a;this.lf=b;this.bx=!!c;this.depth=null};
bh=function(){this.C="&";this.B={};this.D=0;this.u=[]};
ch=function(a,b){var c={};c[a]=b;return[c]};
eh=function(a,b,c,d,e){var f=[];Yf(a,function(h,l){var m=dh(h,b,c,d,e);m&&f.push(l+"="+m)});
return f.join(b)};
dh=function(a,b,c,d,e){if(null==a)return"";b=b||"&";c=c||",$";"string"==typeof c&&(c=c.split(""));if(a instanceof Array){if(d=d||0,d<c.length){for(var f=[],h=0;h<a.length;h++)f.push(dh(a[h],b,c,d+1,e));return f.join(c[d])}}else if("object"==typeof a)return e=e||0,2>e?encodeURIComponent(eh(a,b,c,d,e+1)):"...";return encodeURIComponent(String(a))};
lba=function(a){var b=1,c;for(c in a.B)b=c.length>b?c.length:b;return 3997-b-a.C.length-1};
fh=function(a,b){this.u=a;this.depth=b};
nba=function(){function a(l,m){return null==l?m:l}
var b=Zg(),c=Math.max(b.length-1,0),d=ah(b);b=d.u;var e=d.B,f=d.C,h=[];f&&h.push(new fh([f.url,f.bx?2:0],a(f.depth,1)));e&&e!=f&&h.push(new fh([e.url,2],0));b.url&&b!=f&&h.push(new fh([b.url,0],a(b.depth,c)));d=g.Pc(h,function(l,m){return h.slice(0,h.length-m)});
!b.url||(f||e)&&b!=f||(e=Zaa(b.url))&&d.push([new fh([e,1],a(b.depth,c))]);d.push([]);return g.Pc(d,function(l){return mba(c,l)})};
mba=function(a,b){g.gh(b,function(e){return 0<=e.depth});
var c=g.hh(b,function(e,f){return Math.max(e,f.depth)},-1),d=qaa(c+2);
d[0]=a;g.Fb(b,function(e){return d[e.depth+1]=e.u});
return d};
oba=function(){var a=nba();return g.Pc(a,function(b){return dh(b)})};
ih=function(){this.B=new Yg;this.u=Ug()?new Vg:new Tg};
pba=function(){jh();var a=Wg.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&"function"===typeof Wg.setInterval&&"function"===typeof Wg.clearInterval&&"function"===typeof Wg.setTimeout&&"function"===typeof Wg.clearTimeout)};
kh=function(a){jh();var b=Gg()||Wg;b.google_image_requests||(b.google_image_requests=[]);var c=b.document.createElement("img");c.src=a;b.google_image_requests.push(c)};
lh=function(){jh();return oba()};
mh=function(){};
jh=function(){return mh.getInstance().getContext()};
nh=function(a){g.Ff(this,a,null,null)};
qba=function(a){this.D=a;this.u=-1;this.B=this.C=0};
oh=function(a,b){return function(c){for(var d=[],e=0;e<arguments.length;++e)d[e-0]=arguments[e];if(-1<a.u)return b.apply(null,g.la(d));try{return a.u=a.D.u.now(),b.apply(null,g.la(d))}finally{a.C+=a.D.u.now()-a.u,a.u=-1,a.B+=1}}};
rba=function(a,b){this.B=a;this.C=b;this.u=new qba(a)};
sba=function(){};
rh=function(){this.C=void 0;this.B=this.G=0;this.F=-1;this.tb=new Og;Pg(this.tb,"mv",ph).u=!0;Pg(this.tb,"omid",qh);Pg(this.tb,"epoh",qh).u=!0;Pg(this.tb,"epph",qh).u=!0;Pg(this.tb,"umt",qh).u=!0;Pg(this.tb,"phel",qh).u=!0;Pg(this.tb,"phell",qh).u=!0;Pg(this.tb,"oseid",tba).u=!0;var a=this.tb;a.u.sloi||(a.u.sloi=new Mg);a.u.sloi.u=!0;Pg(this.tb,"xdi",qh).u=!0;Pg(this.tb,"amp",qh).u=!0;Pg(this.tb,"prf",qh).u=!0;Pg(this.tb,"gtx",qh).u=!0;Pg(this.tb,"mvp_lv",qh).u=!0;Pg(this.tb,"vcm",qh).u=!0;Pg(this.tb,
"dov",ph).u=!0;Pg(this.tb,"postrxl",qh).u=!0;this.tb.B.postrxl=1;Pg(this.tb,"mpv",qh).u=!0;Pg(this.tb,"ssmol",qh).u=!0;this.u=new rba(jh(),this.tb);this.D=!1;this.flags=new sba};
uba=function(){var a="https:";Wg&&Wg.location&&"http:"===Wg.location.protocol&&(a="http:");this.B=a;this.u=.01;this.C=Math.random()};
sh=function(a,b,c,d,e){if((d?a.C:Math.random())<(e||a.u))try{if(c instanceof bh)var f=c;else f=new bh,Yf(c,function(l,m){var n=f,p=n.D++,r=ch(m,l);n.u.push(p);n.B[p]=r});
var h=f.rd(a.B,"pagead2.googlesyndication.com","/pagead/gen_204?id="+b+"&","");h&&kh(h)}catch(l){}};
th=function(){var a=g.v.performance;return a&&a.now&&a.timing?Math.floor(a.now()+a.timing.navigationStart):g.A()};
uh=function(){var a=void 0===a?g.v:a;return(a=a.performance)&&a.now?a.now():null};
vba=function(a,b){var c=uh()||th();this.label=a;this.type=b;this.value=c;this.duration=0;this.uniqueId=Math.random();this.slotId=void 0};
wh=function(){var a=Gg();this.events=[];this.B=a||g.v;var b=null;a&&(a.google_js_reporting_queue=a.google_js_reporting_queue||[],this.events=a.google_js_reporting_queue,b=a.google_measure_js_timing);this.u=vh()||(null!=b?b:1>Math.random())};
yh=function(a){a&&xh&&vh()&&(xh.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),xh.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))};
Bh=function(){var a=zh;this.F=Ah;this.D="jserror";this.C=!0;this.u=null;this.G=this.B;this.Va=void 0===a?null:a};
Eh=function(a,b,c,d){return oh(rh.getInstance().u.u,function(){try{if(a.Va&&a.Va.u){var e=a.Va.start(b.toString(),3);var f=c();a.Va.end(e)}else f=c()}catch(m){var h=a.C;try{yh(e);var l=new Ch(Dh(m));h=a.G(b,l,void 0,d)}catch(n){a.B(217,n)}if(!h)throw m;}return f})()};
Gh=function(a,b,c){var d=Fh;return oh(rh.getInstance().u.u,function(e){for(var f=[],h=0;h<arguments.length;++h)f[h-0]=arguments[h];return Eh(d,a,function(){return b.apply(void 0,f)},c)})};
Dh=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};
Ch=function(a){Rf.call(this,Error(a),{message:a})};
Kh=function(){var a=Gg();a&&"undefined"!=typeof a.google_measure_js_timing&&(a.google_measure_js_timing||zh.disable())};
wba=function(a){Fh.u=function(b){g.Fb(a,function(c){c(b)})}};
Lh=function(a,b){return Eh(Fh,a,b,void 0)};
Mh=function(a,b){return Gh(a,b,void 0)};
Nh=function(a,b,c,d){Fh.B(a,b,c,d)};
Oh=function(){return Date.now()-xba};
yba=function(){var a=rh.getInstance().C,b=0<=Ph?Oh()-Ph:-1,c=Qh?Oh()-Rh:-1,d=0<=Sh?Oh()-Sh:-1;if(947190542==a)return 100;if(79463069==a)return 200;a=[2E3,4E3];var e=[250,500,1E3];Nh(637,Error(),.001);var f=b;-1!=c&&c<b&&(f=c);for(b=0;b<a.length;++b)if(f<a[b]){var h=e[b];break}void 0===h&&(h=e[a.length]);return-1!=d&&1500<d&&4E3>d?500:h};
Th=function(a,b,c){var d=new cg(0,0,0,0);this.time=a;this.volume=null;this.C=b;this.u=d;this.B=c};
Uh=function(a,b,c,d,e,f,h,l){this.D=a;this.K=b;this.C=c;this.G=d;this.u=e;this.F=f;this.B=h;this.P=l};
Vh=function(a){for(var b=0,c=a,d=0;a&&a!=a.parent;)a=a.parent,d++,Xf(a)&&(c=a,b=d);return{lf:c,level:b}};
Wh=function(a){var b=a!==a.top,c=a.top===Vh(a).lf,d=-1,e=0;if(b&&c&&a.top.mraid){d=3;var f=a.top.mraid}else d=(f=a.mraid)?b?c?2:1:0:-1;f&&(f.IS_GMA_SDK||(e=2),Nb(zba,function(h){return"function"===typeof f[h]})||(e=1));
return{sh:f,compatibility:e,OQ:d}};
Aba=function(a){return(a=a.document)&&"function"===typeof a.elementFromPoint};
Xh=function(a,b,c,d){var e=void 0===e?!1:e;c=Gh(d,c,void 0);Tf(a,b,c,{capture:e})};
Yh=function(a,b){var c=Math.pow(10,b);return Math.floor(a*c)/c};
Zh=function(a){return new cg(a.top,a.right,a.bottom,a.left)};
$h=function(a){var b=a.top||0,c=a.left||0;return new cg(b,c+(a.width||0),b+(a.height||0),c)};
ai=function(a){return null!=a&&0<=a&&1>=a};
Bba=function(){var a=g.Vc;return a?bi("Android TV;AppleTV;Apple TV;GoogleTV;HbbTV;NetCast.TV;Opera TV;POV_TV;SMART-TV;SmartTV;TV Store;AmazonWebAppPlatform;MiBOX".split(";"),function(b){return Ac(a,b)})||Ac(a,"OMI/")&&!Ac(a,"XiaoMi/")?!0:Ac(a,"Presto")&&Ac(a,"Linux")&&!Ac(a,"X11")&&!Ac(a,"Android")&&!Ac(a,"Mobi"):!1};
ci=function(){this.C=!Xf(Wg.top);this.isMobileDevice=Vf()||Wf();var a=Zg();this.domain=0<a.length&&null!=a[a.length-1]&&null!=a[a.length-1].url?g.xd(a[a.length-1].url)||"":"";this.u=new cg(0,0,0,0);this.D=new g.ge(0,0);this.F=new g.ge(0,0);this.K=new cg(0,0,0,0);this.G=0;this.P=!1;this.B=!(!Wg||!Wh(Wg).sh);this.update(Wg)};
di=function(a,b){b&&b.screen&&(a.D=new g.ge(b.screen.width,b.screen.height))};
ei=function(a,b){var c=a.u?new g.ge(a.u.ke(),a.u.getHeight()):new g.ge(0,0);var d=b;d=void 0===d?Wg:d;null!==d&&d!=d.top&&(d=d.top);var e=0,f=0;try{var h=d.document,l=h.body,m=h.documentElement;if("CSS1Compat"==h.compatMode&&m.scrollHeight)e=m.scrollHeight!=c.height?m.scrollHeight:m.offsetHeight,f=m.scrollWidth!=c.width?m.scrollWidth:m.offsetWidth;else{var n=m.scrollHeight,p=m.scrollWidth,r=m.offsetHeight,t=m.offsetWidth;m.clientHeight!=r&&(n=l.scrollHeight,p=l.scrollWidth,r=l.offsetHeight,t=l.offsetWidth);
n>c.height?n>r?(e=n,f=p):(e=r,f=t):n<r?(e=n,f=p):(e=r,f=t)}var w=new g.ge(f,e)}catch(x){w=new g.ge(-12245933,-12245933)}a.F=w};
fi=function(){var a=ci.getInstance();if(0<a.G||a.P)return!0;a=jh().B.isVisible();var b=0===Xg(Fg);return a||b};
gi=function(a){this.C=a;this.B=0;this.u=null};
hi=function(a,b,c){this.lf=a;this.ia=void 0===c?"na":c;this.D=[];this.Fd=!1;this.C=new Th(-1,!0,this);this.u=this;this.K=b;this.N=this.da=this.P=!1;this.Y="uk";this.Rd=!1;this.F=!0};
ji=function(a,b,c){if(!a.N||(void 0===c?0:c))a.N=!0,a.Y=b,a.K=0,a.u!=a||ii(a)};
ki=function(a,b){g.nb(a.D,b)||(a.D.push(b),b.Zm(a.u),b.pk(a.C),b.Ii()&&(a.P=!0))};
li=function(a){a=a.u;a.aD();a.ZC();var b=ci.getInstance();b.K=Ig(!1,a.lf,b.isMobileDevice);a.mK();a.C.u=a.HB()};
mi=function(a){a.P=a.D.length?bi(a.D,function(b){return b.Ii()}):!1};
ni=function(a){var b=g.ub(a.D);g.Fb(b,function(c){c.pk(a.C)})};
ii=function(a){var b=g.ub(a.D);g.Fb(b,function(c){c.Zm(a.u)});
a.u!=a||ni(a)};
oi=function(a,b,c,d){this.element=a;this.u=new cg(0,0,0,0);this.W=null;this.D=new cg(0,0,0,0);this.B=b;this.tb=c;this.X=d;this.Rd=!1;this.timestamp=-1;this.K=new Uh(b.C,this.element,this.u,new cg(0,0,0,0),0,0,Oh(),0)};
pi=function(a){this.Rd=!1;this.u=a;this.D=g.Oa};
qi=function(a,b,c){this.C=void 0===c?0:c;this.B=a;this.u=null==b?"":b};
Cba=function(a){switch(Math.trunc(a.C)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}};
Dba=function(a,b){return new qi(a.B,a.u,a.C+b)};
ri=function(a,b){return a.C<b.C?!0:a.C>b.C?!1:a.B<b.B?!0:a.B>b.B?!1:typeof a.u<typeof b.u?!0:typeof a.u>typeof b.u?!1:a.u<b.u};
si=function(){this.C=0;this.u=[];this.B=!1};
Eba=function(a,b){(0,g.Fb)(b.u,function(c){a.add(c.B,c.u,Cba(c))})};
ti=function(a,b){var c=void 0===c?0:c;var d=void 0===d?!0:d;Yf(b,function(e,f){d&&void 0===e||a.add(f,e,c)});
return a};
ui=function(a){var b=Fba;a.B&&(g.Cb(a.u,function(c,d){return ri(d,c)?1:ri(c,d)?-1:0}),a.B=!1);
return(0,g.hh)(a.u,function(c,d){var e=b(d);return""+c+(""!=c&&""!=e?"&":"")+e},"")};
Fba=function(a){var b=a.B;a=a.u;return""===a?b:"boolean"===typeof a?a?b:"":Array.isArray(a)?0===a.length?b:b+"="+a.join():b+"="+(g.nb(["mtos","tos","p"],b)?a:encodeURIComponent(a))};
wi=function(a){var b=void 0===b?!0:b;this.u=new si;void 0!==a&&Eba(this.u,a);b&&this.u.add("v",vi,-16)};
Gba=function(a){var b=[],c=[];g.Ib(a,function(d,e){if(!(e in Object.prototype)&&"undefined"!=typeof d){Array.isArray(d)&&(d=d.join(","));var f=[e,"=",d].join("");switch(e){case "adk":case "r":case "tt":case "error":case "mtos":case "tos":case "p":case "bs":b.unshift(f);break;case "req":case "url":case "referrer":case "iframe_loc":c.push(f);break;default:b.push(f)}}});
return b.concat(c)};
xi=function(){if(vi&&"unreleased"!==vi)return vi};
yi=function(a){var b=void 0===b?4E3:b;a=a.toString();if(!/&v=[^&]+/.test(a)){var c=xi();a=c?a+"&v="+encodeURIComponent(c):a}a=a.substring(0,b);kh(a)};
zi=function(){this.u=0};
Hba=function(a,b,c){(0,g.Fb)(a.C,function(d){var e=a.u;if(!d.u&&(d.C(b,c),d.D())){d.u=!0;var f=d.B(),h=new si;h.add("id","av-js");h.add("type","verif");h.add("vtype",d.F);d=zi.getInstance();h.add("i",d.u++);h.add("adk",e);ti(h,f);e=new wi(h);yi(e)}})};
Ai=function(){this.B=this.C=this.D=this.u=0};
Bi=function(a){this.B=a=void 0===a?Iba:a;this.u=g.Pc(this.B,function(){return new Ai})};
Di=function(a,b){return Ci(a,function(c){return c.u},void 0===b?!0:b)};
Fi=function(a,b){return Ei(a,b,function(c){return c.u})};
Gi=function(a,b){return Ci(a,function(c){return c.C},void 0===b?!0:b)};
Hi=function(a,b){return Ei(a,b,function(c){return c.C})};
Ni=function(a,b){return Ei(a,b,function(c){return c.B})};
Oi=function(a){g.Fb(a.u,function(b){b.B=0})};
Ci=function(a,b,c){a=g.Pc(a.u,function(d){return b(d)});
return c?a:Jba(a)};
Ei=function(a,b,c){var d=g.kb(a.B,function(e){return b<=e});
return-1==d?0:c(a.u[d])};
Jba=function(a){return g.Pc(a,function(b,c,d){return 0<c?d[c]-d[c-1]:d[c]})};
Pi=function(){this.B=new Bi;this.ka=new Ai;this.X=this.K=-1;this.za=1E3;this.Ea=new Bi([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.ea=this.Y=-1};
Qi=function(a,b){return Gi(a.B,void 0===b?!0:b)};
Si=function(a,b){var c=Ri(b);return 0===c?0:Ri(a)/c};
Ri=function(a){return Math.max(a.bottom-a.top,0)*Math.max(a.right-a.left,0)};
Kba=function(a,b){if(!a||!b)return!1;for(var c=0;null!==a&&100>c++;){if(a===b)return!0;try{if(a=g.Ke(a)||a){var d=ke(a),e=d&&Ae(d),f=e&&e.frameElement;f&&(a=f)}}catch(h){break}}return!1};
Lba=function(a,b,c){if(!a||!b)return!1;b=dg(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;var d=Gg();Xf(d.top)&&d.top&&d.top.document&&(d=d.top);if(!Aba(d))return!1;a=d.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=ke(c))&&b.defaultView&&b.defaultView.frameElement)&&Kba(b,a);d=a===c;a=!d&&a&&Qe(a,function(e){return e===c});
return!(b||d||a)};
Mba=function(a,b,c,d){return ci.getInstance().C?!1:0>=a.ke()||0>=a.getHeight()?!0:c&&d?Lh(208,function(){return Lba(a,b,c)}):!1};
Ti=function(a,b,c){g.B.call(this);this.position=Nba.clone();this.Ys=this.Yr();this.nx=-2;this.cR=Date.now();this.dG=-1;this.lastUpdateTime=b;this.Ls=null;this.Br=!1;this.Jt=null;this.opacity=-1;this.requestSource=c;this.pG=this.ox=g.Oa;this.Gf=new iba;this.Gf.yk=a;this.Gf.u=a;this.gn=!1;this.ql={Lx:null,Jx:null};this.QF=!0;this.tq=null;this.an=this.XJ=!1;rh.getInstance().G++;this.pe=this.ow();this.cG=-1;this.pc=null;this.UJ=!1;a=this.tb=new Og;Pg(a,"od",Oba);Pg(a,"opac",qh).u=!0;Pg(a,"sbeos",qh).u=
!0;Pg(a,"prf",qh).u=!0;Pg(a,"mwt",qh).u=!0;Pg(a,"iogeo",qh);Pg(a,"postrxl",qh).u=!0;(a=this.Gf.yk)&&a.getAttribute&&!/-[a-z]/.test("googleAvInapp")&&(Pba&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+sd()):a.getAttribute("data-"+sd()))&&(ci.getInstance().B=!0);1==this.requestSource?Qg(this.tb,"od",1):Qg(this.tb,"od",0)};
Ui=function(a,b){if(b!=a.an){a.an=b;var c=ci.getInstance();b?c.G++:0<c.G&&c.G--}};
Vi=function(a,b){if(a.pc){if(b.getName()===a.pc.getName())return;a.pc.dispose();a.pc=null}var c=b.create(a.Gf.u,a.tb,a.Ii());if(c=null!=c&&c.vx()?c:null)a.pc=c};
Wi=function(a,b,c){if(!a.Ls||-1==a.lastUpdateTime||-1===b.B||-1===a.Ls.B)return 0;a=b.B-a.Ls.B;return a>c?0:a};
Qba=function(a,b,c){if(a.pc){a.pc.Wj();var d=a.pc.K,e=d.D,f=e.u;if(null!=d.G){var h=d.C;a.Jt=new g.ee(h.left-f.left,h.top-f.top)}f=a.ju()?Math.max(d.u,d.F):d.u;h={};null!==e.volume&&(h.volume=e.volume);e=a.BB(d);a.Ls=d;a.na(f,b,c,!1,h,e,d.P)}};
Rba=function(a){if(a.Br&&a.tq){var b=1==Rg(a.tb,"od"),c=ci.getInstance().u,d=a.tq,e=a.pc?a.pc.getName():"ns",f=new g.ge(c.ke(),c.getHeight());c=a.ju();a={SQ:e,Jt:a.Jt,vR:f,ju:c,jc:a.pe.jc,tR:b};if(b=d.B){b.Wj();e=b.K;f=e.D.u;var h=null,l=null;null!=e.G&&f&&(h=e.C,h=new g.ee(h.left-f.left,h.top-f.top),l=new g.ge(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.u,e.F):e.u;c={SQ:b.getName(),Jt:h,vR:l,ju:c,tR:!1,jc:e}}else c=null;c&&Hba(d,a,c)}};
Sba=function(a,b,c){b&&(a.ox=b);c&&(a.pG=c)};
Xi=function(){};
Zi=function(a){if(a instanceof Xi)return a;if("function"==typeof a.Ui)return a.Ui(!1);if(g.Ra(a)){var b=0,c=new Xi;c.next=function(){for(;;){if(b>=a.length)throw Yi;if(b in a)return a[b++];b++}};
return c}throw Error("Not implemented");};
g.$i=function(a,b,c){if(g.Ra(a))try{g.Fb(a,b,c)}catch(d){if(d!==Yi)throw d;}else{a=Zi(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(d){if(d!==Yi)throw d;}}};
Tba=function(a){if(g.Ra(a))return g.ub(a);a=Zi(a);var b=[];g.$i(a,function(c){b.push(c)});
return b};
Uba=function(){this.D=this.u=this.C=this.B=this.F=0};
Vba=function(a){var b={};b=(b.ptlt=g.A()-a.F,b);var c=a.B;c&&(b.pnk=c);(c=a.C)&&(b.pnc=c);(c=a.D)&&(b.pnmm=c);(a=a.u)&&(b.pns=a);return b};
aj=function(){Jg.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1};
bj=function(a){return ai(a.volume)&&.1<=a.volume};
Wba=function(){var a={};this.B=(a.vs=[1,0],a.vw=[0,1],a.am=[2,2],a.a=[4,4],a.f=[8,8],a.bm=[16,16],a.b=[32,32],a.avw=[0,64],a.avs=[64,0],a.pv=[256,256],a.gdr=[0,512],a.p=[0,1024],a.r=[0,2048],a.m=[0,4096],a.um=[0,8192],a.ef=[0,16384],a.s=[0,32768],a.pmx=[0,16777216],a);this.u={};for(var b in this.B)0<this.B[b][1]&&(this.u[b]=0);this.C=0};
cj=function(a,b){var c=a.B[b],d=c[1];a.C+=c[0];0<d&&0==a.u[b]&&(a.u[b]=1)};
Xba=function(a){var b=g.Qb(a.B),c=0,d;for(d in a.u)g.nb(b,d)&&1==a.u[d]&&(c+=a.B[d][1],a.u[d]=2);return c};
Yba=function(a){var b=0,c;for(c in a.u){var d=a.u[c];if(1==d||2==d)b+=a.B[c][1]}return b};
dj=function(){this.u=this.B=0};
ej=function(){Pi.call(this);this.C=new Ai;this.ia=this.N=this.ba=0;this.P=-1;this.Ja=new Ai;this.F=new Ai;this.u=new Bi;this.G=this.D=-1;this.W=new Ai;this.za=2E3;this.da=new dj;this.Aa=new dj;this.ra=new dj};
fj=function(a,b,c){var d=a.ia;Qh||c||-1==a.P||(d+=b-a.P);return d};
Zba=function(){this.u=!1};
hj=function(a,b){if(!a.u){if(a.C(b)){var c=gj(a.P,a.D,b);a.B|=c;c=0==c}else c=!1;a.u=c}};
ij=function(a,b){this.u=!1;this.D=a;this.P=b;this.B=0};
jj=function(a,b,c,d){oi.call(this,a,b,c,d)};
kj=function(a,b,c){oi.call(this,null,a,b,c);this.G=a.isActive();this.F=0};
lj=function(a){return[a.top,a.left,a.bottom,a.right]};
mj=function(a,b,c,d,e,f){e=void 0===e?null:e;f=void 0===f?[]:f;Ti.call(this,b,c,d);this.Kv=0;this.se={};this.ie=new Wba;this.EG={};this.Qe="";this.En=null;this.Pa=!1;this.u=[];this.C=e;this.K=f;this.F=null;this.D=-1;this.ka=this.N=void 0;this.X=this.W=0;this.da=-1;this.Ea=this.za=!1;this.ea=this.P=this.B=this.co=this.Ja=0;new Bi;this.ia=this.ra=0;this.Aa=-1;this.Ud=0;this.Y=g.Oa;this.ba=[this.Yr()];this.Qa=2;this.tm={};this.tm.pause="p";this.tm.resume="r";this.tm.skip="s";this.tm.mute="m";this.tm.unmute=
"um";this.tm.exitfullscreen="ef";this.G=null;this.xF=!1};
nj=function(a){0!=a.Ud&&(a.Ud=3)};
oj=function(a){!a.gn&&a.C&&0!=a.Ud&&(Rg(rh.getInstance().tb,"mpv")?a.xF&&a.pc&&2===a.pc.gi()&&hj(a.C,a):hj(a.C,a))};
pj=function(a){return void 0===a?a:Number(a)?Yh(a,3):0};
qj=function(a,b){return a.ba[null!=b&&b<a.ba.length?b:a.ba.length-1]};
rj=function(a){var b=!!Rg(rh.getInstance().tb,"umt");return a.N||!b&&!a.ka?0:1};
$ba=function(a,b){if(2==a.Ud)var c=0;else-1==a.lastUpdateTime?c=0:(c=b-a.lastUpdateTime,c=c>Math.max(1E4,a.D/3)?0:c);var d=a.Y(a)||{};d=void 0!==d.currentTime?d.currentTime:a.W;var e=d-a.W,f=0;0<=e?(a.X+=c,a.ia+=Math.max(c-e,0),f=Math.min(e,a.X)):a.ra+=Math.abs(e);0!=e&&(a.X=0);-1==a.Aa&&0<e&&(a.Aa=0<=Sh?Oh()-Sh:-1);a.W=d;return f};
aca=function(a,b){bi(a.K,function(c){return c.D==b.D})||a.K.push(b)};
sj=function(a,b,c){return 15E3<=b?!0:a.za?(void 0===c?0:c)?!0:0<a.D?b>=a.D/2:0<a.da?b>=a.da:!1:!1};
bca=function(a){var b=Yh(a.pe.jc,2),c=a.ie.C,d=a.pe,e=qj(a),f=pj(e.D),h=pj(e.G),l=pj(d.volume),m=Yh(e.K,2),n=Yh(e.X,2),p=Yh(d.jc,2),r=Yh(e.Y,2),t=Yh(e.ea,2);d=Yh(d.Rf,2);a=a.ik().clone();a.round();e=Qi(e,!1);return{uR:b,jp:c,Zs:f,Vs:h,uo:l,ct:m,Ws:n,jc:p,gt:r,Xs:t,Rf:d,position:a,It:e}};
uj=function(a,b){tj(a.u,b,function(){return{uR:0,jp:void 0,Zs:-1,Vs:-1,uo:-1,ct:-1,Ws:-1,jc:-1,gt:-1,Xs:-1,Rf:-1,position:void 0,It:[]}});
a.u[b]=bca(a)};
tj=function(a,b,c){for(var d=a.length;d<b+1;)a.push(c()),d++};
xj=function(a,b,c){var d=a.EG[b];if(null!=d)return d;d=cca(a,b);var e=Ub(vj,function(f){return f==b});
a=wj(a,d,d,c,dca[vj[e]]);"fully_viewable_audible_half_duration_impression"==b&&(a.std="csm");return a};
yj=function(a,b,c){var d=[b];if(a!=b||c!=b)d.unshift(a),d.push(c);return d};
wj=function(a,b,c,d,e){if(a.gn)return{"if":0};var f=a.ik().clone();f.round();var h=ci.getInstance(),l=rh.getInstance(),m=a.If(),n=a.pc?a.pc.getName():"ns",p={};p["if"]=h.C?1:void 0;p.sdk=a.F?a.F:void 0;p.t=a.cR;p.p=[f.top,f.left,f.bottom,f.right];if(f=a.pc?a.pc.W:null)f=f.clone(),f.round(),p.cp=lj(f);p.tos=Di(m.B,!1);p.mtos=Qi(m);p.mcvt=m.ka.C;p.ps=void 0;p.vht=fj(m,Oh(),2==a.Ud);p.mut=m.Ja.C;p.a=pj(a.pe.volume);p.mv=pj(m.G);p.fs=a.an?1:0;p.ft=m.W.u;p.at=m.F.u;p.as=.1<=m.D?1:0;p.atos=Di(m.u);p.ssb=
Di(m.Ea,!1);p.amtos=Gi(m.u);p.uac=a.Ja;p.vpt=m.C.u;"nio"==n&&(p.nio=1,p.avms="nio");p.gmm="4";p.gdr=sj(a,m.C.u,!0)?1:0;p.efpf=a.Qa;if("gsv"==n||"nis"==n)n=a.pc,0<n.F&&(p.nnut=n.F);p.tcm=rj(a);p.nmt=a.ra;p.bt=a.ia;p.pst=a.Aa;p.vpaid=a.N;p.dur=a.D;p.vmtime=a.W;p.is=a.ie.C;1<=a.u.length&&(p.i0=a.u[0].jp,p.a0=[a.u[0].uo],p.c0=[a.u[0].jc],p.ss0=[a.u[0].Rf],n=a.u[0].position,p.p0=n?lj(n):void 0);2<=a.u.length&&(p.i1=a.u[1].jp,p.a1=yj(a.u[1].Zs,a.u[1].uo,a.u[1].Vs),p.c1=yj(a.u[1].ct,a.u[1].jc,a.u[1].Ws),
p.ss1=yj(a.u[1].gt,a.u[1].Rf,a.u[1].Xs),n=a.u[1].position,p.p1=n?lj(n):void 0,p.mtos1=a.u[1].It);3<=a.u.length&&(p.i2=a.u[2].jp,p.a2=yj(a.u[2].Zs,a.u[2].uo,a.u[2].Vs),p.c2=yj(a.u[2].ct,a.u[2].jc,a.u[2].Ws),p.ss2=yj(a.u[2].gt,a.u[2].Rf,a.u[2].Xs),n=a.u[2].position,p.p2=n?lj(n):void 0,p.mtos2=a.u[2].It);4<=a.u.length&&(p.i3=a.u[3].jp,p.a3=yj(a.u[3].Zs,a.u[3].uo,a.u[3].Vs),p.c3=yj(a.u[3].ct,a.u[3].jc,a.u[3].Ws),p.ss3=yj(a.u[3].gt,a.u[3].Rf,a.u[3].Xs),n=a.u[3].position,p.p3=n?lj(n):void 0,p.mtos3=a.u[3].It);
p.cs=Yba(a.ie);b&&(p.ic=Xba(a.ie),p.dvpt=m.C.B,p.dvs=Ni(m.B,.5),p.dfvs=Ni(m.B,1),p.davs=Ni(m.u,.5),p.dafvs=Ni(m.u,1),c&&(m.C.B=0,Oi(m.B),Oi(m.u)),a.Nl()&&(p.dtos=m.ba,p.dav=m.N,p.dtoss=a.Kv+1,c&&(m.ba=0,m.N=0,a.Kv++)),p.dat=m.F.B,p.dft=m.W.B,c&&(m.F.B=0,m.W.B=0));p.ps=[h.F.width,h.F.height];p.bs=[h.u.ke(),h.u.getHeight()];p.scs=[h.D.width,h.D.height];p.dom=h.domain;a.co&&(p.vds=a.co);if(0<a.K.length||a.C)b=g.ub(a.K),a.C&&b.push(a.C),p.pings=g.Pc(b,function(r){return r.toString()});
b=g.Pc(g.Je(a.K,function(r){return r.F()}),function(r){return r.getId()});
naa(b);p.ces=b;a.B&&(p.vmer=a.B);a.P&&(p.vmmk=a.P);a.ea&&(p.vmiec=a.ea);p.avms=a.pc?a.pc.getName():"ns";a.pc&&g.bc(p,a.pc.fk());d?(p.c=Yh(a.pe.jc,2),p.ss=Yh(a.pe.Rf,2)):p.tth=Oh()-zj;p.mc=Yh(m.X,2);p.nc=Yh(m.K,2);p.mv=pj(m.G);p.nv=pj(m.D);p.lte=Yh(a.nx,2);d=qj(a,e);Qi(m);p.qmtos=Qi(d);p.qnc=Yh(d.K,2);p.qmv=pj(d.G);p.qnv=pj(d.D);p.qas=.1<=d.D?1:0;p.qi=a.Qe;p.avms||(p.avms="geo");p.psm=m.da.u;p.psv=m.da.getValue();p.psfv=m.Aa.getValue();p.psa=m.ra.getValue();l=hba(l.tb);l.length&&(p.veid=l);a.G&&g.bc(p,
Vba(a.G));return p};
cca=function(a,b){if(g.nb(eca,b))return!0;var c=a.se[b];return void 0!==c?(a.se[b]=!0,!c):!1};
gca=function(){this.u={};var a=Ae();Aj(this,a,document);var b=fca();try{if("1"==b){for(var c=a.parent;c!=a.top;c=c.parent)Aj(this,c,c.document);Aj(this,a.top,a.top.document)}}catch(d){}};
fca=function(){var a=document.documentElement;try{if(!Xf(Ae().top))return"2";var b=[],c=Ae(a.ownerDocument);for(a=c;a!=c.top;a=a.parent)if(a.frameElement)b.push(a.frameElement);else break;return b&&0!=b.length?"1":"0"}catch(d){return"2"}};
Aj=function(a,b,c){Xh(c,"mousedown",function(){return hca(a)},301);
Xh(b,"scroll",function(){return ica(a)},302);
Xh(c,"touchmove",function(){return jca(a)},303);
Xh(c,"mousemove",function(){return kca(a)},304);
Xh(c,"keydown",function(){return lca(a)},305)};
hca=function(a){g.Ib(a.u,function(b){1E5<b.C||++b.C})};
ica=function(a){g.Ib(a.u,function(b){1E5<b.u||++b.u})};
jca=function(a){g.Ib(a.u,function(b){1E5<b.u||++b.u})};
lca=function(a){g.Ib(a.u,function(b){1E5<b.B||++b.B})};
kca=function(a){g.Ib(a.u,function(b){1E5<b.D||++b.D})};
g.Cj=function(a){var b=[];Bj(new mca,a,b);return b.join("")};
mca=function(){};
Bj=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(Array.isArray(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),Bj(a,d[f],c),e=",";c.push("]");return}if(b instanceof String||b instanceof Number||b instanceof Boolean)b=b.valueOf();else{c.push("{");e="";for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(f=b[d],"function"!=typeof f&&(c.push(e),Dj(d,c),c.push(":"),Bj(a,f,c),e=","));c.push("}");return}}switch(typeof b){case "string":Dj(b,c);break;case "number":c.push(isFinite(b)&&
!isNaN(b)?String(b):"null");break;case "boolean":c.push(String(b));break;case "function":c.push("null");break;default:throw Error("Unknown type: "+typeof b);}}};
Dj=function(a,b){b.push('"',a.replace(nca,function(c){var d=Ej[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).substr(1),Ej[c]=d);return d}),'"')};
Fj=function(){this.u=[];this.B=[]};
Gj=function(a,b){return g.jb(a.u,function(c){return c.Qe==b})};
Hj=function(a,b){return b?g.jb(a.u,function(c){return c.Gf.yk==b}):null};
oca=function(a,b){return g.jb(a.B,function(c){return 2==c.di()&&c.Qe==b})};
Jj=function(){var a=Ij;return 0==a.u.length?a.B:0==a.B.length?a.u:g.tb(a.B,a.u)};
Kj=function(a,b){var c=1==b.di()?a.u:a.B,d=ib(c,function(e){return e==b});
return-1!=d?(c.splice(d,1),b.pc&&b.pc.Ap(),b.dispose(),!0):!1};
pca=function(a){var b=Ij;if(Kj(b,a)){switch(a.di()){case 0:var c=function(){return null};
case 2:c=function(){return oca(b,a.Qe)};
break;case 1:c=function(){return Gj(b,a.Qe)}}for(var d=c();d;d=c())Kj(b,d)}};
qca=function(a,b){var c=Ij,d=g.Je(a,(void 0===b?0:b)?function(e){return!Gj(c,e.Qe)}:function(e){return!Hj(c,e.Gf.yk)});
c.u.push.apply(c.u,g.la(d))};
Lj=function(a){var b=Ij,c=[];g.Fb(a,function(d){bi(b.u,function(e){return e.Gf.yk===d.Gf.yk&&e.Qe===d.Qe})||(b.u.push(d),c.push(d))})};
Mj=function(){this.u=this.B=null};
Nj=function(a,b){function c(d,e){b(d,e)}
if(null==a.B)return!1;a.u=g.jb(a.B,function(d){return null!=d&&d.NC()});
a.u&&(a.u.init(c)?li(a.u.u):b(a.u.u.Um(),a.u));return null!=a.u};
Oj=function(a){a=rca(a);pi.call(this,a.length?a[a.length-1]:new hi(Wg,0));this.C=a;this.B=null};
rca=function(a){if(!a.length)return[];a=(0,g.Je)(a,function(c){return null!=c&&c.bD()});
for(var b=1;b<a.length;b++)ki(a[b-1],a[b]);return a};
Pj=function(a,b,c,d){oi.call(this,a,b,c,d);this.N=this.P=this.F=this.G=this.C=null};
Qj=function(a){return a.C&&a.C.takeRecords?a.C.takeRecords():[]};
tca=function(a){if(!a.element)return!1;var b=a.element,c=a.B.u.lf,d=rh.getInstance().u.u;a.C=new c.IntersectionObserver(oh(d,function(e){return Rj(a,e)}),sca);
d=oh(d,function(){a.C.unobserve(b);a.C.observe(b);Rj(a,Qj(a))});
c.ResizeObserver?(a.G=new c.ResizeObserver(d),a.G.observe(b)):c.MutationObserver&&(a.F=new g.v.MutationObserver(d),a.F.observe(b,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));a.C.observe(b);Rj(a,Qj(a));return!0};
Rj=function(a,b){try{if(b.length){a.P||(a.P=Oh());var c=uca(b),d=xg(a.element,a.B.u.lf),e=d.x,f=d.y;a.u=new cg(Math.round(f),Math.round(e)+c.boundingClientRect.width,Math.round(f)+c.boundingClientRect.height,Math.round(e));var h=Zh(c.intersectionRect);a.D=dg(h,a.u.left-h.left,a.u.top-h.top)}}catch(l){a.Ap(),Nh(299,l)}};
uca=function(a){return(0,g.hh)(a,function(b,c){return b.time>c.time?b:c},a[0])};
Sj=function(){var a=/Chrome\/(\d+)/.exec(g.Vc);return a?parseFloat(a[1]):NaN};
Tj=function(){var a=/\sCobalt\/(\S+)\s/.exec(g.Vc);if(!a)return NaN;var b=[];a=g.q(a[1].split("."));for(var c=a.next();!c.done;c=a.next())c=parseInt(c.value,10),0<=c&&b.push(c);return parseFloat(b.join("."))};
Vj=function(){return Uj("android")&&Uj("chrome")&&!(Uj("trident/")||Uj("edge/"))&&!Uj("cobalt")};
Wj=function(){return Uj("armv7")||Uj("aarch64")||Uj("android")};
g.Xj=function(){return Uj("cobalt")};
Yj=function(){return Uj("cobalt")&&Uj("appletv")};
Zj=function(){return Uj("(ps3; leanback shell)")||Uj("ps3")&&g.Xj()};
ak=function(){return Uj("(ps4; leanback shell)")||Uj("ps4")&&g.Xj()};
g.bk=function(){return g.Xj()&&(Uj("ps4 vr")||Uj("ps4 pro vr"))};
ck=function(){var a=/WebKit\/([0-9]+)/.exec(g.Vc);return!!(a&&600<=parseInt(a[1],10))};
dk=function(){var a=/WebKit\/([0-9]+)/.exec(g.Vc);return!!(a&&602<=parseInt(a[1],10))};
ek=function(){return Uj("iemobile")||Uj("windows phone")&&Uj("edge")};
gk=function(){return fk&&Uj("applewebkit")&&!Uj("version")&&(!Uj("safari")||Uj("gsa/"))};
jk=function(){return g.ik&&Uj("version/")};
kk=function(){return Uj("smart-tv")&&Uj("samsung")};
Uj=function(a){var b=g.Vc;return b?0<=b.toLowerCase().indexOf(a):!1};
lk=function(a){a=void 0===a?Wg:a;pi.call(this,new hi(a,2))};
nk=function(){var a=mk();hi.call(this,Wg.top,a,"geo")};
mk=function(){rh.getInstance();var a=ci.getInstance();return a.C||a.B?0:2};
ok=function(){};
pk=function(){this.done=!1;this.u={WH:0,dA:0,g4:0,ZA:0,Nw:-1,tI:0,sI:0,uI:0};this.F=null;this.G=!1;this.B=null;this.K=0;this.C=new gi(this)};
rk=function(){var a=qk;a.G||(a.G=!0,vca(a,function(b){for(var c=[],d=0;d<arguments.length;++d)c[d-0]=arguments[d];return a.D.apply(a,g.la(c))}),a.D())};
wca=function(){ok.getInstance();var a=Mj.getInstance();null!=a.u&&a.u.u?li(a.u.u):ci.getInstance().update(Wg)};
sk=function(a,b,c){if(!a.done&&(a.C.cancel(),0!=b.length)){a.B=null;try{wca();var d=Oh(),e=rh.getInstance();e.F=d;if(null!=Mj.getInstance().u)for(e=0;e<b.length;e++)Qba(b[e],d,c);else sh(Ah,"",{strategy_not_selected:1,bin:e.B},!0,void 0);for(d=0;d<b.length;d++)Rba(b[d]);++a.u.ZA;xca()}finally{c?g.Fb(b,function(f){f.pe.jc=0}):a.C.schedule()}}};
vca=function(a,b){if(!a.F){var c=Gh(142,b,void 0);jh();var d;Fg.visibilityState?d="visibilitychange":Fg.mozVisibilityState?d="mozvisibilitychange":Fg.webkitVisibilityState&&(d="webkitvisibilitychange");d&&Tf(Fg,d,c,{capture:!1})&&(a.F=c)}};
tk=function(){var a=Mj.getInstance();if(null!=a.u){var b=a.u;g.Fb(Jj(),function(c){return Vi(c,b)})}};
xca=function(){var a=rh.getInstance();Rg(a.tb,"llp")};
uk=function(a,b){var c=a.K;Qh&&(c+=b-Rh);return c};
yca=function(a){var b=qk;a=void 0===a?function(){return{}}:a;
Fh.D="av-js";Ah.u=.01;wba([function(c){var d=rh.getInstance(),e={};e=(e.bin=d.B,e.type="error",e);d=Sg(d.tb);if(!b.B){var f=Wg.document,h=0<=Ph?Oh()-Ph:-1,l=Oh();-1==b.u.Nw&&(h=l);var m=ci.getInstance(),n=rh.getInstance(),p=Sg(n.tb),r=Jj();try{if(0<r.length){var t=m.u;t&&(p.bs=[t.ke(),t.getHeight()]);var w=m.F;w&&(p.ps=[w.width,w.height]);Wg.screen&&(p.scs=[Wg.screen.width,Wg.screen.height])}else p.url=encodeURIComponent(Wg.location.href.substring(0,512)),f.referrer&&(p.referrer=encodeURIComponent(f.referrer.substring(0,
512)));p.tt=h;p.pt=Ph;p.bin=n.B;void 0!==Wg.google_osd_load_pub_page_exp&&(p.olpp=Wg.google_osd_load_pub_page_exp);p.deb=[1,b.u.WH,b.u.dA,b.u.ZA,b.u.Nw,0,b.C.B,b.u.tI,b.u.sI,b.u.uI].join("-");p.tvt=uk(b,l);m.B&&(p.inapp=1);if(null!==Wg&&Wg!=Wg.top){0<r.length&&(p.iframe_loc=encodeURIComponent(Wg.location.href.substring(0,512)));var x=m.K;p.is=[x.ke(),x.getHeight()]}}catch(y){p.error=1}b.B=p}t=g.Zb(b.B);w=rh.getInstance().u;1==Rg(w.C,"prf")?(x=new nh,f=w.u,h=0,-1<f.u&&(h=f.D.u.now()-f.u),x=Jf(x,1,
f.C+h),f=w.u,x=Jf(x,5,-1<f.u?f.B+1:f.B),x=Jf(x,2,w.B.u.C()),x=Jf(x,3,w.B.u.B()),x=Jf(x,4,w.B.u.u()),w={},f=new g.tf,h=g.Gf(x,1),h=null==h?h:+h,h=null==h?0:h,0!==h&&g.zf(f,1,h),h=Hf(x,2),0!==h&&g.yf(f,2,h),h=Hf(x,3),0!==h&&g.yf(f,3,h),h=Hf(x,4),0!==h&&g.yf(f,4,h),h=Hf(x,5),0!==h&&g.vf(f,5,h),x=g.uf(f),w=(w.pf=g.nf(x),w)):w={};g.bc(t,w);g.bc(c,e,d,t,a());if(e=xi())d={},g.bc(c,(d.v=encodeURIComponent(e),d))}])};
zca=function(){var a=vk||Wg;if(!a)return"";var b=[];if(!a.location||!a.location.href)return"";b.push("url="+encodeURIComponent(a.location.href.substring(0,512)));a.document&&a.document.referrer&&b.push("referrer="+encodeURIComponent(a.document.referrer.substring(0,512)));return b.join("&")};
wk=function(a){return function(b){return void 0===b[a]?0:b[a]}};
yk=function(){var a=[0,2,4];return function(b){b=b.tos;if(Array.isArray(b)){for(var c=Array(b.length),d=0;d<b.length;d++)c[d]=0<d?c[d-1]+b[d]:b[d];return void 0!==a?xk(c,a):c}}};
zk=function(a,b,c,d){c=void 0===c?!0:c;d=void 0===d?function(){return!0}:d;
return function(e){var f=e[a];if(Array.isArray(f)&&d(e))return xk(f,b,c)}};
Ak=function(a,b){return function(c){return b(c)?c[a]:void 0}};
Bk=function(a){return function(b){for(var c=0;c<a.length;c++)if(a[c]===b.e||void 0===a[c]&&!b.hasOwnProperty("e"))return!0;return!1}};
xk=function(a,b,c){return void 0===c||c?g.Je(a,function(d,e){return g.nb(b,e)}):g.Pc(b,function(d,e,f){return a.slice(0<e?f[e-1]+1:0,d+1).reduce(function(h,l){return h+l},0)})};
Ek=function(a,b){var c={sv:"882",cb:"j"};c.nas=Ij.u.length;c.msg=a;if(void 0!==b){var d=Ck(b);d&&(c.e=Dk[d])}return c};
Fk=function(a){return pc(a,"custom_metric_viewable")};
Ck=function(a){var b=Fk(a)?"custom_metric_viewable":a.toLowerCase();return Ub(vj,function(c){return c==b})};
Aca=function(){this.u=void 0;this.B=!1;this.C=0;this.D=-1;this.F="tos"};
Cca=function(a){try{var b=a.split(",");return b.length>g.Qb(Bca).length?null:(0,g.hh)(b,function(c,d){var e=d.toLowerCase().split("=");if(2!=e.length||void 0===Gk[e[0]]||!Gk[e[0]](e[1]))throw Error("Entry ("+e[0]+", "+e[1]+") is invalid.");c[e[0]]=e[1];return c},{})}catch(c){return null}};
Dca=function(a,b){if(void 0==a.u)return 0;switch(a.F){case "mtos":return a.B?Hi(b.u,a.u):Hi(b.B,a.u);case "tos":return a.B?Fi(b.u,a.u):Fi(b.B,a.u)}return 0};
Hk=function(a,b,c,d){ij.call(this,b,d);this.K=a;this.G=c};
Ik=function(a){ij.call(this,"fully_viewable_audible_half_duration_impression",a)};
Jk=function(a,b){ij.call(this,a,b)};
Kk=function(){this.B=this.D=this.G=this.F=this.C=this.u=""};
Eca=function(){};
Lk=function(a,b,c,d,e){var f={};if(void 0!==a)if(null!=b)for(var h in b){var l=b[h];h in Object.prototype||null!=l&&(f[h]="function"===typeof l?l(a):a[l])}else g.bc(f,a);void 0!==c&&g.bc(f,c);a=ui(ti(new si,f));0<a.length&&void 0!==d&&void 0!==e&&(e=e(a),a+="&"+d+"="+e);return a};
Mk=function(){};
Nk=function(a,b,c){kj.call(this,a,b,c)};
Ok=function(a){a=void 0===a?Wg:a;pi.call(this,new hi(a,2))};
Pk=function(a,b,c){kj.call(this,a,b,c)};
Qk=function(a){a=void 0===a?Wg:a;pi.call(this,new hi(a,2))};
Rk=function(){hi.call(this,Wg,2,"mraid");this.ba=0;this.W=this.X=!1;this.G=null;this.B=Wh(this.lf);this.C.u=new cg(0,0,0,0);this.ea=!1};
Sk=function(a,b,c){a.Mk("addEventListener",b,c)};
Vk=function(a){rh.getInstance().D=!!a.Mk("isViewable");Sk(a,"viewableChange",Fca);"loading"===a.Mk("getState")?Sk(a,"ready",Tk):Uk(a)};
Uk=function(a){"string"===typeof a.B.sh.AFMA_LIDAR?(a.X=!0,Gca(a)):(a.B.compatibility=3,a.G="nc",ji(a,"w"))};
Gca=function(a){a.W=!1;var b=1==Rg(rh.getInstance().tb,"rmmt"),c=!!a.Mk("isViewable");(b?!c:1)&&jh().setTimeout(Mh(524,function(){a.W||(Wk(a),Nh(540,Error()),a.G="mt",ji(a,"w"))}),500);
Hca(a);Sk(a,a.B.sh.AFMA_LIDAR,Xk)};
Hca=function(a){var b=1==Rg(rh.getInstance().tb,"sneio"),c=void 0!==a.B.sh.AFMA_LIDAR_EXP_1,d=void 0!==a.B.sh.AFMA_LIDAR_EXP_2;(b=b&&d)&&(a.B.sh.AFMA_LIDAR_EXP_2=!0);c&&(a.B.sh.AFMA_LIDAR_EXP_1=!b)};
Wk=function(a){a.Mk("removeEventListener",a.B.sh.AFMA_LIDAR,Xk);a.X=!1};
Yk=function(a,b){if("loading"===a.Mk("getState"))return new g.ge(-1,-1);var c=a.Mk(b);if(!c)return new g.ge(-1,-1);var d=parseInt(c.width,10);c=parseInt(c.height,10);return isNaN(d)||isNaN(c)?new g.ge(-1,-1):new g.ge(d,c)};
Tk=function(){try{var a=Rk.getInstance();a.Mk("removeEventListener","ready",Tk);Uk(a)}catch(b){Nh(541,b)}};
Xk=function(a,b){try{var c=Rk.getInstance();c.W=!0;var d=a?new cg(a.y,a.x+a.width,a.y+a.height,a.x):new cg(0,0,0,0);var e=Oh(),f=fi();var h=new Th(e,f,c);h.u=d;h.volume=b;c.pk(h)}catch(l){Nh(542,l)}};
Fca=function(a){var b=rh.getInstance(),c=Rk.getInstance();a&&!b.D&&(b.D=!0,c.ea=!0,c.G&&ji(c,"w",!0))};
Zk=function(){this.Fd=!1;this.u=null;this.C=new Mk;this.B=null;var a={};this.K=(a.start=this.JJ,a.firstquartile=this.EJ,a.midpoint=this.GJ,a.thirdquartile=this.KJ,a.complete=this.CJ,a.pause=this.Wx,a.resume=this.IF,a.skip=this.IJ,a.viewable_impression=this.jk,a.mute=this.Zn,a.unmute=this.Zn,a.fullscreen=this.FJ,a.exitfullscreen=this.DJ,a.fully_viewable_audible_half_duration_impression=this.jk,a.measurable_impression=this.jk,a.abandon=this.Wx,a.engagedview=this.jk,a.impression=this.jk,a.creativeview=
this.jk,a.progress=this.Zn,a.custom_metric_viewable=this.jk,a.bufferstart=this.Wx,a.bufferfinish=this.IF,a);a={};this.W=(a.overlay_resize=this.HJ,a.abandon=this.Gw,a.close=this.Gw,a.collapse=this.Gw,a.overlay_unmeasurable_impression=function(b){return xj(b,"overlay_unmeasurable_impression",fi())},a.overlay_viewable_immediate_impression=function(b){return xj(b,"overlay_viewable_immediate_impression",fi())},a.overlay_unviewable_impression=function(b){return xj(b,"overlay_unviewable_impression",fi())},
a.overlay_viewable_end_of_session_impression=function(b){return xj(b,"overlay_viewable_end_of_session_impression",fi())},a);
rh.getInstance().B=3;Ica(this);this.N=this.D=!1};
$k=function(a,b,c,d){b=a.aq(null,d,!0,b);b.F=c;qca([b],a.D);return b};
Jca=function(a,b,c){fba(b);var d=a.B;g.Fb(b,function(e){var f=g.Pc(e.u,function(h){var l=Cca(h);if(null==l)h=null;else if(h=new Aca,null!=l.visible&&(h.u=l.visible/100),null!=l.audible&&(h.B=1==l.audible),null!=l.time){var m="mtos"==l.timetype?"mtos":"tos",n=qc(l.time,"%")?"%":"ms";l=parseInt(l.time,10);"%"==n&&(l/=100);"ms"==n?(h.C=l,h.D=-1):(h.C=-1,h.D=l);h.F=void 0===m?"tos":m}return h});
bi(f,function(h){return null==h})||aca(c,new Hk(e.id,e.event,f,d))})};
Kca=function(a){a=a.B;return[new Jk("viewable_impression",a),new Ik(a)]};
Lca=function(){var a=[];ci.getInstance();var b=rh.getInstance();Rg(b.tb,"dov");a.push(nk.getInstance());Rg(b.tb,"mvp_lv")&&a.push(Rk.getInstance());b=[new Ok,new Qk];b.push(new Oj(a));b.push(new lk(Wg));return b};
Mca=function(a){if(!a.Fd){a.Fd=!0;try{var b=Oh(),c=rh.getInstance(),d=ci.getInstance();Ph=b;c.C=79463069;"o"!==a.u&&(vk=Vh(Wg).lf);if(pba()){qk.u.dA=0;qk.u.Nw=Oh()-b;var e=Lca(),f=Mj.getInstance();f.B=e;Nj(f,function(){al(a)})?qk.done||(tk(),ki(f.u.u,a),rk()):d.C?al(a):rk()}else bl=!0}catch(h){throw Ij.reset(),h;
}}};
dl=function(a){qk.C.cancel();cl=a;qk.done=!0};
el=function(a){if(a.u)return a.u;var b=Mj.getInstance().u;if(b)switch(b.getName()){case "nis":a.u="n";break;case "gsv":a.u="m"}a.u||(a.u="h");return a.u};
fl=function(a,b,c){if(null==a.B)return b.co|=4,!1;a=gj(a.B,c,b);b.co|=a;return 0==a};
Nca=function(){g.Fb(Ij.u,function(a){return oj(a)})};
al=function(a){if(!a.N){a.N=!0;var b=[new lk(Wg)],c=Mj.getInstance();c.B=b;Nj(c,function(){dl("i")})?qk.done||(tk(),ki(c.u.u,a),rk()):dl("i")}};
gl=function(a,b,c){if(!b.Pa){var d=xj(b,"start",fi());a=a.C.u(d).u;var e={id:"lidarv"};e.r=c;e.v="882v";Ad(a,function(f,h){return e[f]="mtos"==f||"tos"==f?h:encodeURIComponent(h)});
c=zca();Ad(c,function(f,h){return e[f]=encodeURIComponent(h)});
c="//pagead2.googlesyndication.com/pagead/gen_204?"+ui(ti(new si,e));yi(c);b.Pa=!0}};
hl=function(a,b,c){sk(qk,[a],!fi());uj(a,c);4!=c&&tj(a.ba,c,a.Yr);return xj(a,b,fi())};
Ica=function(a){yca(function(){var b=il();null!=a.u&&(b.sdk=a.u);var c=Mj.getInstance();null!=c.u&&(b.avms=c.u.getName());return b})};
Oca=function(a,b,c,d){if(a.D)var e=Gj(Ij,b);else e=Hj(Ij,c),null!==e&&e.Qe!==b&&(a.Go(e),e=null);e||(b=a.aq(c,Oh(),!1,b),0==Ij.B.length&&(rh.getInstance().C=79463069),Lj([b]),e=b,e.F=el(a),d&&(e.En=d));return e};
Pca=function(a,b){b.P=0;for(var c in jl)null==a[c]&&(b.P|=jl[c]);kl(a,"currentTime");kl(a,"duration")};
Qca=function(a){g.Fb(Ij.u,function(b){3==b.Ud&&a.Go(b)})};
kl=function(a,b){var c=a[b];void 0!==c&&0<c&&(a[b]=Math.floor(1E3*c))};
il=function(){var a=ci.getInstance(),b={};return b.sv="882",b["if"]=a.C?"1":"0",b.nas=String(Ij.u.length),b};
ll=function(a){return!a||"function"!==typeof a||0>String(Function.prototype.toString).indexOf("[native code]")?!1:0<=String(a).indexOf("[native code]")&&!0||!1};
nl=function(a){return!!(1<<a&ml)};
Vca=function(){try{Rca()}catch(d){}var a="a=1&b="+ml+"&",b=[],c=99;g.Fb(Sca,function(d,e){var f=!1;try{f=d(Wg)}catch(h){}b[e/32>>>0]|=f<<e%32});
g.Fb(b,function(d,e){a+=String.fromCharCode(c+e)+"="+(d>>>0).toString(16)+"&"});
c=105;g.Fb(Tca,function(d){var e="false";try{e=d(Wg)}catch(f){}a+=String.fromCharCode(c++)+"="+e+"&"});
g.Fb(Uca,function(d){var e="";try{e=g.qf(d(Wg))}catch(f){}a+=String.fromCharCode(c++)+"="+e+"&"});
return a.slice(0,-1)};
Rca=function(){if(!ol){var a=function(){pl=!0;Wg.document.removeEventListener("webdriver-evaluate",a,!0)};
Wg.document.addEventListener("webdriver-evaluate",a,!0);var b=function(){ql=!0;Wg.document.removeEventListener("webdriver-evaluate-response",b,!0)};
Wg.document.addEventListener("webdriver-evaluate-response",b,!0);ol=!0}};
rl=function(){this.B=-1};
sl=function(){this.B=64;this.u=Array(4);this.F=Array(this.B);this.D=this.C=0;this.reset()};
tl=function(a,b,c){c||(c=0);var d=Array(16);if("string"===typeof b)for(var e=0;16>e;++e)d[e]=b.charCodeAt(c++)|b.charCodeAt(c++)<<8|b.charCodeAt(c++)<<16|b.charCodeAt(c++)<<24;else for(e=0;16>e;++e)d[e]=b[c++]|b[c++]<<8|b[c++]<<16|b[c++]<<24;b=a.u[0];c=a.u[1];e=a.u[2];var f=a.u[3];var h=b+(f^c&(e^f))+d[0]+3614090360&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[1]+3905402710&4294967295;f=b+(h<<12&4294967295|h>>>20);h=e+(c^f&(b^c))+d[2]+606105819&4294967295;e=f+(h<<17&4294967295|h>>>15);
h=c+(b^e&(f^b))+d[3]+3250441966&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(f^c&(e^f))+d[4]+4118548399&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[5]+1200080426&4294967295;f=b+(h<<12&4294967295|h>>>20);h=e+(c^f&(b^c))+d[6]+2821735955&4294967295;e=f+(h<<17&4294967295|h>>>15);h=c+(b^e&(f^b))+d[7]+4249261313&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(f^c&(e^f))+d[8]+1770035416&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[9]+2336552879&4294967295;f=b+(h<<12&4294967295|
h>>>20);h=e+(c^f&(b^c))+d[10]+4294925233&4294967295;e=f+(h<<17&4294967295|h>>>15);h=c+(b^e&(f^b))+d[11]+2304563134&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(f^c&(e^f))+d[12]+1804603682&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[13]+4254626195&4294967295;f=b+(h<<12&4294967295|h>>>20);h=e+(c^f&(b^c))+d[14]+2792965006&4294967295;e=f+(h<<17&4294967295|h>>>15);h=c+(b^e&(f^b))+d[15]+1236535329&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(e^f&(c^e))+d[1]+4129170786&4294967295;b=c+(h<<
5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[6]+3225465664&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[11]+643717713&4294967295;e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[0]+3921069994&4294967295;c=e+(h<<20&4294967295|h>>>12);h=b+(e^f&(c^e))+d[5]+3593408605&4294967295;b=c+(h<<5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[10]+38016083&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[15]+3634488961&4294967295;e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[4]+3889429448&4294967295;c=
e+(h<<20&4294967295|h>>>12);h=b+(e^f&(c^e))+d[9]+568446438&4294967295;b=c+(h<<5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[14]+3275163606&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[3]+4107603335&4294967295;e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[8]+1163531501&4294967295;c=e+(h<<20&4294967295|h>>>12);h=b+(e^f&(c^e))+d[13]+2850285829&4294967295;b=c+(h<<5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[2]+4243563512&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[7]+1735328473&4294967295;
e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[12]+2368359562&4294967295;c=e+(h<<20&4294967295|h>>>12);h=b+(c^e^f)+d[5]+4294588738&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[8]+2272392833&4294967295;f=b+(h<<11&4294967295|h>>>21);h=e+(f^b^c)+d[11]+1839030562&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[14]+4259657740&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(c^e^f)+d[1]+2763975236&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[4]+1272893353&4294967295;f=b+(h<<11&4294967295|
h>>>21);h=e+(f^b^c)+d[7]+4139469664&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[10]+3200236656&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(c^e^f)+d[13]+681279174&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[0]+3936430074&4294967295;f=b+(h<<11&4294967295|h>>>21);h=e+(f^b^c)+d[3]+3572445317&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[6]+76029189&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(c^e^f)+d[9]+3654602809&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[12]+
3873151461&4294967295;f=b+(h<<11&4294967295|h>>>21);h=e+(f^b^c)+d[15]+530742520&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[2]+3299628645&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(e^(c|~f))+d[0]+4096336452&4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[7]+1126891415&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[14]+2878612391&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[5]+4237533241&4294967295;c=e+(h<<21&4294967295|h>>>11);h=b+(e^(c|~f))+d[12]+1700485571&
4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[3]+2399980690&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[10]+4293915773&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[1]+2240044497&4294967295;c=e+(h<<21&4294967295|h>>>11);h=b+(e^(c|~f))+d[8]+1873313359&4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[15]+4264355552&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[6]+2734768916&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[13]+1309151649&
4294967295;c=e+(h<<21&4294967295|h>>>11);h=b+(e^(c|~f))+d[4]+4149444226&4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[11]+3174756917&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[2]+718787259&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[9]+3951481745&4294967295;a.u[0]=a.u[0]+b&4294967295;a.u[1]=a.u[1]+(e+(h<<21&4294967295|h>>>11))&4294967295;a.u[2]=a.u[2]+e&4294967295;a.u[3]=a.u[3]+f&4294967295};
ul=function(){this.B=null};
vl=function(a){return function(b){var c=new sl;c.update(b+a);return Raa(c.digest()).slice(-8)}};
wl=function(a,b){this.B=a;this.C=b};
gj=function(a,b,c){var d=a.u(c);if("function"===typeof d){var e={};e=(e.sv="882",e.cb="j",e.e=Wca(b),e);var f=xj(c,b,fi());g.bc(e,f);c.EG[b]=f;a=2==c.di()?Gba(e).join("&"):a.C.u(e).u;try{return d(c.Qe,a,b),0}catch(h){return 2}}else return 1};
Wca=function(a){var b=Fk(a)?"custom_metric_viewable":a;a=Ub(vj,function(c){return c==b});
return Dk[a]};
xl=function(a,b,c){wl.call(this,a,b);this.D=c};
yl=function(){Zk.call(this);this.G=null;this.F=!1;this.P={};this.C=new ul};
Xca=function(a,b,c){c=c.opt_configurable_tracking_events;null!=a.B&&Array.isArray(c)&&Jca(a,c,b)};
Yca=function(a,b,c){var d=Gj(Ij,b);d||(d=c.opt_nativeTime||-1,d=$k(a,b,el(a),d),c.opt_osdId&&(d.En=c.opt_osdId));return d};
Zca=function(a,b,c){var d=Gj(Ij,b);d||(d=$k(a,b,"n",c.opt_nativeTime||-1));return d};
$ca=function(a,b){var c=Gj(Ij,b);c||(c=$k(a,b,"h",-1));return c};
ada=function(a){rh.getInstance();switch(el(a)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null};
Al=function(a,b,c,d){c=void 0===c?{}:c;var e={};g.bc(e,{opt_adElement:void 0,opt_fullscreen:void 0},c);if(e.opt_bounds)return a.C.u(Ek("ol",d));if(void 0!==d)if(void 0!==Ck(d))if(bl)b=Ek("ue",d);else if(Mca(a),"i"==cl)b=Ek("i",d),b["if"]=0;else if(b=a.gs(b,e))if(a.D&&3==b.Ud)b="stopped";else{b:{"i"==cl&&(b.gn=!0,a.yy());c=e.opt_fullscreen;void 0!==c&&Ui(b,!!c);var f;if(c=!ci.getInstance().B)(c=Ac(g.Vc,"CrKey")||Ac(g.Vc,"PlayStation")||Ac(g.Vc,"Roku")||Bba()||Ac(g.Vc,"Xbox"))||(c=g.Vc,c=Ac(c,"AppleTV")||
Ac(c,"Apple TV")||Ac(c,"CFNetwork")||Ac(c,"tvOS")),c||(c=g.Vc,c=Ac(c,"sdk_google_atv_x86")||Ac(c,"Android TV")),c=!c;c&&(jh(),c=0===Xg(Fg));if(f=c){switch(b.di()){case 1:gl(a,b,"pv");break;case 2:a.py(b)}dl("pv")}c=d.toLowerCase();if(f=!f)f=Rg(rh.getInstance().tb,"ssmol")&&"loaded"===c?!1:g.nb(bda,c);if(f&&0==b.Ud){"i"!=cl&&(qk.done=!1);f=void 0!==e?e.opt_nativeTime:void 0;Sh=f="number"===typeof f?f:Oh();b.Br=!0;var h=fi();b.Ud=1;b.se={};b.se.start=!1;b.se.firstquartile=!1;b.se.midpoint=!1;b.se.thirdquartile=
!1;b.se.complete=!1;b.se.resume=!1;b.se.pause=!1;b.se.skip=!1;b.se.mute=!1;b.se.unmute=!1;b.se.viewable_impression=!1;b.se.measurable_impression=!1;b.se.fully_viewable_audible_half_duration_impression=!1;b.se.fullscreen=!1;b.se.exitfullscreen=!1;b.Kv=0;h||(b.If().P=f);sk(qk,[b],!h)}(f=b.tm[c])&&cj(b.ie,f);g.nb(cda,c)&&(b.xF=!0,oj(b));switch(b.di()){case 1:var l=Fk(c)?a.K.custom_metric_viewable:a.K[c];break;case 2:l=a.W[c]}if(l&&(d=l.call(a,b,e,d),void 0!==d)){e=Ek(void 0,c);g.bc(e,d);d=e;break b}d=
void 0}3==b.Ud&&(a.D?b.pc&&b.pc.Ap():a.Go(b));b=d}else b=Ek("nf",d);else b=void 0;else bl?b=Ek("ue"):(b=a.gs(b,e))?(d=Ek(),g.bc(d,wj(b,!0,!1,!1)),b=d):b=Ek("nf");return"string"===typeof b?a.D&&"stopped"===b?zl:a.C.u(void 0):a.C.u(b)};
Bl=function(a){return rh.getInstance(),"h"!=el(a)&&el(a),!1};
Cl=function(a){var b={};return b.viewability=a.u,b.googleViewability=a.C,b.moatInit=a.F,b.moatViewability=a.G,b.integralAdsViewability=a.D,b.doubleVerifyViewability=a.B,b};
Dl=function(a,b,c){c=void 0===c?{}:c;a=Al(yl.getInstance(),b,c,a);return Cl(a)};
El=function(a,b){b=void 0===b?!1:b;var c=yl.getInstance().gs(a,{});c?nj(c):b&&(c=yl.getInstance().aq(null,Oh(),!1,a),c.Ud=3,Lj([c]))};
Fl=function(a){if(!a)return"";a=a.split("#")[0].split("?")[0];a=a.toLowerCase();0==a.indexOf("//")&&(a=window.location.protocol+a);/^[\w\-]*:\/\//.test(a)||(a=window.location.href);var b=a.substring(a.indexOf("://")+3),c=b.indexOf("/");-1!=c&&(b=b.substring(0,c));a=a.substring(0,a.indexOf("://"));if("http"!==a&&"https"!==a&&"chrome-extension"!==a&&"moz-extension"!==a&&"file"!==a&&"android-app"!==a&&"chrome-search"!==a&&"chrome-untrusted"!==a&&"chrome"!==a&&"app"!==a&&"devtools"!==a)throw Error("Invalid URI scheme in origin: "+
a);c="";var d=b.indexOf(":");if(-1!=d){var e=b.substring(d+1);b=b.substring(0,d);if("http"===a&&"80"!==e||"https"===a&&"443"!==e)c=":"+e}return a+"://"+b+c};
dda=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;p=n=0}
function b(r){for(var t=h,w=0;64>w;w+=4)t[w/4]=r[w]<<24|r[w+1]<<16|r[w+2]<<8|r[w+3];for(w=16;80>w;w++)r=t[w-3]^t[w-8]^t[w-14]^t[w-16],t[w]=(r<<1|r>>>31)&4294967295;r=e[0];var x=e[1],y=e[2],D=e[3],E=e[4];for(w=0;80>w;w++){if(40>w)if(20>w){var G=D^x&(y^D);var L=1518500249}else G=x^y^D,L=1859775393;else 60>w?(G=x&y|D&(x|y),L=2400959708):(G=x^y^D,L=3395469782);G=((r<<5|r>>>27)&4294967295)+G+E+L+t[w]&4294967295;E=D;D=y;y=(x<<30|x>>>2)&4294967295;x=r;r=G}e[0]=e[0]+r&4294967295;e[1]=e[1]+x&4294967295;e[2]=
e[2]+y&4294967295;e[3]=e[3]+D&4294967295;e[4]=e[4]+E&4294967295}
function c(r,t){if("string"===typeof r){r=unescape(encodeURIComponent(r));for(var w=[],x=0,y=r.length;x<y;++x)w.push(r.charCodeAt(x));r=w}t||(t=r.length);w=0;if(0==n)for(;w+64<t;)b(r.slice(w,w+64)),w+=64,p+=64;for(;w<t;)if(f[n++]=r[w++],p++,64==n)for(n=0,b(f);w+64<t;)b(r.slice(w,w+64)),w+=64,p+=64}
function d(){var r=[],t=8*p;56>n?c(l,56-n):c(l,64-(n-56));for(var w=63;56<=w;w--)f[w]=t&255,t>>>=8;b(f);for(w=t=0;5>w;w++)for(var x=24;0<=x;x-=8)r[t++]=e[w]>>x&255;return r}
for(var e=[],f=[],h=[],l=[128],m=1;64>m;++m)l[m]=0;var n,p;a();return{reset:a,update:c,digest:d,AI:function(){for(var r=d(),t="",w=0;w<r.length;w++)t+="0123456789ABCDEF".charAt(Math.floor(r[w]/16))+"0123456789ABCDEF".charAt(r[w]%16);return t}}};
eda=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],g.Fb(d,function(l){e.push(l)}),Gl(e.join(" "));
var f=[],h=[];g.Fb(c,function(l){h.push(l.key);f.push(l.value)});
c=Math.floor((new Date).getTime()/1E3);e=g.ob(f)?[c,b,a]:[f.join(":"),c,b,a];g.Fb(d,function(l){e.push(l)});
a=Gl(e.join(" "));a=[c,a];g.ob(h)||a.push(h.join(""));return a.join("_")};
Gl=function(a){var b=dda();b.update(a);return b.AI().toLowerCase()};
Hl=function(a){var b=Fl(String(g.v.location.href)),c;(c=g.v.__SAPISID||g.v.__APISID||g.v.__OVERRIDE_SID)?c=!0:(c=new Pf(document),c=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID")||c.get("SID"),c=!!c);if(c&&(c=(b=0==b.indexOf("https:")||0==b.indexOf("chrome-extension:")||0==b.indexOf("moz-extension:"))?g.v.__SAPISID:g.v.__APISID,c||(c=new Pf(document),c=c.get(b?"SAPISID":"APISID")||c.get("__Secure-3PAPISID")),c)){b=b?"SAPISIDHASH":"APISIDHASH";var d=String(g.v.location.href);return d&&
c&&b?[b,eda(Fl(d),c,a||null)].join(" "):null}return null};
g.Il=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.u=!1};
Jl=function(a,b){g.Il.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.B=null;a&&this.init(a,b)};
Ll=function(a){return!(!a||!a[Kl])};
gda=function(a,b,c,d,e){this.listener=a;this.u=null;this.src=b;this.type=c;this.capture=!!d;this.us=e;this.key=++fda;this.Mn=this.ir=!1};
Ml=function(a){a.Mn=!0;a.listener=null;a.u=null;a.src=null;a.us=null};
Nl=function(a){this.src=a;this.listeners={};this.u=0};
Ol=function(a,b){var c=b.type;c in a.listeners&&g.rb(a.listeners[c],b)&&(Ml(b),0==a.listeners[c].length&&(delete a.listeners[c],a.u--))};
Pl=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.Mn&&f.listener==b&&f.capture==!!c&&f.us==d)return e}return-1};
Rl=function(a,b,c,d,e){if(d&&d.once)return Ql(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)Rl(a,b[f],c,d,e);return null}c=Sl(c);return Ll(a)?a.wa(b,c,g.Sa(d)?!!d.capture:!!d,e):Tl(a,b,c,!1,d,e)};
Tl=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var h=g.Sa(e)?!!e.capture:!!e,l=Vl(a);l||(a[Wl]=l=new Nl(a));c=l.add(b,c,d,h,f);if(c.u)return c;d=hda();c.u=d;d.src=a;d.listener=c;if(a.addEventListener)ida||(e=h),void 0===e&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(Xl(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");Yl++;return c};
hda=function(){var a=jda,b=Zl?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};
Ql=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)Ql(a,b[f],c,d,e);return null}c=Sl(c);return Ll(a)?a.Ns(b,c,g.Sa(d)?!!d.capture:!!d,e):Tl(a,b,c,!0,d,e)};
$l=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)$l(a,b[f],c,d,e);else d=g.Sa(d)?!!d.capture:!!d,c=Sl(c),Ll(a)?a.Db(b,c,d,e):a&&(a=Vl(a))&&(b=a.Vo(b,c,d,e))&&am(b)};
am=function(a){if("number"!==typeof a&&a&&!a.Mn){var b=a.src;if(Ll(b))Ol(b.B,a);else{var c=a.type,d=a.u;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(Xl(c),d):b.addListener&&b.removeListener&&b.removeListener(d);Yl--;(c=Vl(b))?(Ol(c,a),0==c.u&&(c.src=null,b[Wl]=null)):Ml(a)}}};
Xl=function(a){return a in bm?bm[a]:bm[a]="on"+a};
dm=function(a,b,c,d){var e=!0;if(a=Vl(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.Mn&&(f=cm(f,d),e=e&&!1!==f)}return e};
cm=function(a,b){var c=a.listener,d=a.us||a.src;a.ir&&am(a);return c.call(d,b)};
jda=function(a,b){if(a.Mn)return!0;if(!Zl){var c=b||g.Na("window.event"),d=new Jl(c,this),e=!0;if(!(0>c.keyCode||void 0!=c.returnValue)){a:{var f=!1;if(0==c.keyCode)try{c.keyCode=-1;break a}catch(m){f=!0}if(f||void 0==c.returnValue)c.returnValue=!0}c=[];for(f=d.currentTarget;f;f=f.parentNode)c.push(f);f=a.type;for(var h=c.length-1;!d.u&&0<=h;h--){d.currentTarget=c[h];var l=dm(c[h],f,!0,d);e=e&&l}for(h=0;!d.u&&h<c.length;h++)d.currentTarget=c[h],l=dm(c[h],f,!1,d),e=e&&l}return e}return cm(a,new Jl(b,
this))};
Vl=function(a){a=a[Wl];return a instanceof Nl?a:null};
Sl=function(a){if("function"===typeof a)return a;a[em]||(a[em]=function(b){return a.handleEvent(b)});
return a[em]};
g.fm=function(){g.B.call(this);this.B=new Nl(this);this.za=this;this.ka=null};
gm=function(a,b,c,d){b=a.B.listeners[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var h=b[f];if(h&&!h.Mn&&h.capture==c){var l=h.listener,m=h.us||h.src;h.ir&&Ol(a.B,h);e=!1!==l.call(m,d)&&e}}return e&&!d.defaultPrevented};
hm=function(a,b){this.C=a;this.D=b;this.B=0;this.u=null};
im=function(a,b){a.D(b);100>a.B&&(a.B++,b.next=a.u,a.u=b)};
jm=function(a){g.v.setTimeout(function(){throw a;},0)};
lm=function(a){a=kda(a);"function"!==typeof g.v.setImmediate||g.v.Window&&g.v.Window.prototype&&!Wc("Edge")&&g.v.Window.prototype.setImmediate==g.v.setImmediate?(km||(km=lda()),km(a)):g.v.setImmediate(a)};
lda=function(){var a=g.v.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!Wc("Presto")&&(a=function(){var e=g.Ee("IFRAME");e.style.display="none";document.documentElement.appendChild(e);var f=e.contentWindow;e=f.document;e.open();e.close();var h="callImmediate"+Math.random(),l="file:"==f.location.protocol?"*":f.location.protocol+"//"+f.location.host;e=(0,g.z)(function(m){if(("*"==l||m.origin==l)&&m.data==h)this.port1.onmessage()},this);
f.addEventListener("message",e,!1);this.port1={};this.port2={postMessage:function(){f.postMessage(h,l)}}});
if("undefined"!==typeof a&&!Wc("Trident")&&!Wc("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.wA;c.wA=null;e()}};
return function(e){d.next={wA:e};d=d.next;b.port2.postMessage(0)}}return function(e){g.v.setTimeout(e,0)}};
mm=function(){this.B=this.u=null};
nm=function(){this.next=this.scope=this.u=null};
g.rm=function(a,b){om||mda();pm||(om(),pm=!0);qm.add(a,b)};
mda=function(){if(g.v.Promise&&g.v.Promise.resolve){var a=g.v.Promise.resolve(void 0);om=function(){a.then(sm)}}else om=function(){lm(sm)}};
sm=function(){for(var a;a=qm.remove();){try{a.u.call(a.scope)}catch(b){jm(b)}im(tm,a)}pm=!1};
um=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};
wm=function(a){this.Ha=0;this.Lk=void 0;this.Gm=this.Xj=this.fm=null;this.qs=this.Xv=!1;if(a!=g.Oa)try{var b=this;a.call(void 0,function(c){vm(b,2,c)},function(c){vm(b,3,c)})}catch(c){vm(this,3,c)}};
xm=function(){this.next=this.context=this.onRejected=this.C=this.u=null;this.B=!1};
zm=function(a,b,c){var d=ym.get();d.C=a;d.onRejected=b;d.context=c;return d};
Am=function(a){if(a instanceof wm)return a;var b=new wm(g.Oa);vm(b,2,a);return b};
Bm=function(a){return new wm(function(b,c){c(a)})};
Dm=function(a,b,c){Cm(a,b,c,null)||g.rm(g.Va(b,a))};
nda=function(a){return new wm(function(b,c){a.length||b(void 0);for(var d=0,e;d<a.length;d++)e=a[d],Dm(e,b,c)})};
oda=function(a){return new wm(function(b,c){var d=a.length,e=[];if(d)for(var f=function(n,p){d--;e[n]=p;0==d&&b(e)},h=function(n){c(n)},l=0,m;l<a.length;l++)m=a[l],Dm(m,g.Va(f,l),h);
else b(e)})};
Fm=function(a,b){var c=zm(b,b,void 0);c.B=!0;Em(a,c);return a};
Hm=function(a,b){return Gm(a,null,b,void 0)};
Im=function(a,b){if(0==a.Ha)if(a.fm){var c=a.fm;if(c.Xj){for(var d=0,e=null,f=null,h=c.Xj;h&&(h.B||(d++,h.u==a&&(e=h),!(e&&1<d)));h=h.next)e||(f=h);e&&(0==c.Ha&&1==d?Im(c,b):(f?(d=f,d.next==c.Gm&&(c.Gm=d),d.next=d.next.next):Jm(c),Km(c,e,3,b)))}a.fm=null}else vm(a,3,b)};
Em=function(a,b){a.Xj||2!=a.Ha&&3!=a.Ha||Lm(a);a.Gm?a.Gm.next=b:a.Xj=b;a.Gm=b};
Gm=function(a,b,c,d){var e=zm(null,null,null);e.u=new wm(function(f,h){e.C=b?function(l){try{var m=b.call(d,l);f(m)}catch(n){h(n)}}:f;
e.onRejected=c?function(l){try{var m=c.call(d,l);void 0===m&&l instanceof Mm?h(l):f(m)}catch(n){h(n)}}:h});
e.u.fm=a;Em(a,e);return e.u};
vm=function(a,b,c){0==a.Ha&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.Ha=1,Cm(c,a.kR,a.lR,a)||(a.Lk=c,a.Ha=b,a.fm=null,Lm(a),3!=b||c instanceof Mm||pda(a,c)))};
Cm=function(a,b,c,d){if(a instanceof wm)return Em(a,zm(b||g.Oa,c||null,d)),!0;if(um(a))return a.then(b,c,d),!0;if(g.Sa(a))try{var e=a.then;if("function"===typeof e)return qda(a,e,b,c,d),!0}catch(f){return c.call(d,f),!0}return!1};
qda=function(a,b,c,d,e){function f(m){l||(l=!0,d.call(e,m))}
function h(m){l||(l=!0,c.call(e,m))}
var l=!1;try{b.call(a,h,f)}catch(m){f(m)}};
Lm=function(a){a.Xv||(a.Xv=!0,g.rm(a.II,a))};
Jm=function(a){var b=null;a.Xj&&(b=a.Xj,a.Xj=b.next,b.next=null);a.Xj||(a.Gm=null);return b};
Km=function(a,b,c,d){if(3==c&&b.onRejected&&!b.B)for(;a&&a.qs;a=a.fm)a.qs=!1;if(b.u)b.u.fm=null,Nm(b,c,d);else try{b.B?b.C.call(b.context):Nm(b,c,d)}catch(e){Om.call(null,e)}im(ym,b)};
Nm=function(a,b,c){2==b?a.C.call(a.context,c):a.onRejected&&a.onRejected.call(a.context,c)};
pda=function(a,b){a.qs=!0;g.rm(function(){a.qs&&Om.call(null,b)})};
Mm=function(a){$a.call(this,a)};
g.Pm=function(a,b){g.fm.call(this);this.df=a||1;this.Aq=b||g.v;this.qA=(0,g.z)(this.Te,this);this.zC=g.A()};
g.Qm=function(a,b,c){if("function"===typeof a)c&&(a=(0,g.z)(a,c));else if(a&&"function"==typeof a.handleEvent)a=(0,g.z)(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:g.v.setTimeout(a,b||0)};
Rm=function(a,b){var c=null;return Hm(new wm(function(d,e){c=g.Qm(function(){d(b)},a);
-1==c&&e(Error("Failed to schedule timer."))}),function(d){g.v.clearTimeout(c);
throw d;})};
g.Sm=function(a,b){this.B={};this.u=[];this.Uk=this.C=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else if(a)if(a instanceof g.Sm)for(c=a.xg(),d=0;d<c.length;d++)this.set(c[d],a.get(c[d]));else for(d in a)this.set(d,a[d])};
Um=function(a){if(a.C!=a.u.length){for(var b=0,c=0;b<a.u.length;){var d=a.u[b];Tm(a.B,d)&&(a.u[c++]=d);b++}a.u.length=c}if(a.C!=a.u.length){var e={};for(c=b=0;b<a.u.length;)d=a.u[b],Tm(e,d)||(a.u[c++]=d,e[d]=1),b++;a.u.length=c}};
Tm=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
g.Vm=function(a,b){this.u=this.P=this.F="";this.D=null;this.G=this.B="";this.K=!1;var c;a instanceof g.Vm?(this.K=void 0!==b?b:a.K,g.Wm(this,a.F),this.P=a.P,g.Xm(this,a.u),g.Ym(this,a.D),this.B=a.B,Zm(this,a.C.clone()),this.G=a.G):a&&(c=String(a).match(vd))?(this.K=!!b,g.Wm(this,c[1]||"",!0),this.P=$m(c[2]||""),g.Xm(this,c[3]||"",!0),g.Ym(this,c[4]),this.B=$m(c[5]||"",!0),Zm(this,c[6]||"",!0),this.G=$m(c[7]||"")):(this.K=!!b,this.C=new an(null,this.K))};
g.Wm=function(a,b,c){a.F=c?$m(b,!0):b;a.F&&(a.F=a.F.replace(/:$/,""))};
g.Xm=function(a,b,c){a.u=c?$m(b,!0):b};
g.Ym=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.D=b}else a.D=null};
Zm=function(a,b,c){b instanceof an?(a.C=b,rda(a.C,a.K)):(c||(b=bn(b,sda)),a.C=new an(b,a.K))};
g.cn=function(a){return a instanceof g.Vm?a.clone():new g.Vm(a,void 0)};
$m=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""};
bn=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,tda),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
tda=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};
an=function(a,b){this.B=this.u=null;this.C=a||null;this.D=!!b};
dn=function(a){a.u||(a.u=new g.Sm,a.B=0,a.C&&Ad(a.C,function(b,c){a.add(md(b),c)}))};
fn=function(a,b){dn(a);b=en(a,b);return Tm(a.u.B,b)};
g.gn=function(a,b,c){a.remove(b);0<c.length&&(a.C=null,a.u.set(en(a,b),g.ub(c)),a.B=a.B+c.length)};
en=function(a,b){var c=String(b);a.D&&(c=c.toLowerCase());return c};
rda=function(a,b){b&&!a.D&&(dn(a),a.C=null,a.u.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(this.remove(d),g.gn(this,e,c))},a));
a.D=b};
jn=function(a){if(g.rc(g.od(a)))return!1;if(0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&"))return!0;try{var b=new g.Vm(a)}catch(c){return null!=g.jb(hn,function(d){return 0<a.search(d)})}return b.G.match(uda)?!0:null!=g.jb(hn,function(c){return null!=a.match(c)})};
g.kn=function(a,b){return a.replace(vda,function(c,d){try{var e=null!==b&&d in b?b[d]:void 0;if(null==e)return c;e=e.toString();if(""==e||!g.rc(g.od(e)))return encodeURIComponent(e).replace(/%2C/g,",")}catch(f){}return c})};
ln=function(){this.B=[];this.u=-1};
wda=function(a){-1==a.u&&(a.u=g.hh(a.B,function(b,c,d){return c?b+Math.pow(2,d):b},0));
return a.u};
g.mn=function(a,b,c){g.B.call(this);this.u=null;this.D=!1;this.G=a;this.F=c;this.B=b||window;this.C=(0,g.z)(this.JB,this)};
nn=function(a){a=a.B;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null};
on=function(a){a=a.B;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};
g.F=function(a,b,c){g.B.call(this);this.u=a;this.df=b||0;this.B=c;this.C=(0,g.z)(this.KB,this)};
g.pn=function(a){a.stop();a.KB()};
qn=function(){this.B=64;this.u=[];this.G=[];this.K=[];this.F=[];this.F[0]=128;for(var a=1;a<this.B;++a)this.F[a]=0;this.D=this.C=0;this.reset()};
rn=function(a,b,c){c||(c=0);var d=a.K;if("string"===typeof b)for(var e=0;16>e;e++)d[e]=b.charCodeAt(c)<<24|b.charCodeAt(c+1)<<16|b.charCodeAt(c+2)<<8|b.charCodeAt(c+3),c+=4;else for(e=0;16>e;e++)d[e]=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4;for(e=16;80>e;e++){var f=d[e-3]^d[e-8]^d[e-14]^d[e-16];d[e]=(f<<1|f>>>31)&4294967295}b=a.u[0];c=a.u[1];var h=a.u[2],l=a.u[3],m=a.u[4];for(e=0;80>e;e++){if(40>e)if(20>e){f=l^c&(h^l);var n=1518500249}else f=c^h^l,n=1859775393;else 60>e?(f=c&h|l&(c|h),n=2400959708):
(f=c^h^l,n=3395469782);f=(b<<5|b>>>27)+f+m+n+d[e]&4294967295;m=l;l=h;h=(c<<30|c>>>2)&4294967295;c=b;b=f}a.u[0]=a.u[0]+b&4294967295;a.u[1]=a.u[1]+c&4294967295;a.u[2]=a.u[2]+h&4294967295;a.u[3]=a.u[3]+l&4294967295;a.u[4]=a.u[4]+m&4294967295};
sn=function(a){return"string"==typeof a.className?a.className:a.getAttribute&&a.getAttribute("class")||""};
tn=function(a){return a.classList?a.classList:sn(a).match(/\S+/g)||[]};
g.un=function(a,b){"string"==typeof a.className?a.className=b:a.setAttribute&&a.setAttribute("class",b)};
g.vn=function(a,b){return a.classList?a.classList.contains(b):g.nb(tn(a),b)};
g.H=function(a,b){if(a.classList)a.classList.add(b);else if(!g.vn(a,b)){var c=sn(a);g.un(a,c+(0<c.length?" "+b:b))}};
g.wn=function(a,b){if(a.classList)g.Fb(b,function(f){g.H(a,f)});
else{var c={};g.Fb(tn(a),function(f){c[f]=!0});
g.Fb(b,function(f){c[f]=!0});
var d="",e;for(e in c)d+=0<d.length?" "+e:e;g.un(a,d)}};
g.xn=function(a,b){a.classList?a.classList.remove(b):g.vn(a,b)&&g.un(a,g.Je(tn(a),function(c){return c!=b}).join(" "))};
g.yn=function(a,b){a.classList?g.Fb(b,function(c){g.xn(a,c)}):g.un(a,g.Je(tn(a),function(c){return!g.nb(b,c)}).join(" "))};
g.I=function(a,b,c){c?g.H(a,b):g.xn(a,b)};
zn=function(a,b){var c=!g.vn(a,b);g.I(a,b,c)};
g.An=function(){g.fm.call(this);this.Ha=0;this.endTime=this.startTime=null};
xda=function(a,b){Array.isArray(b)||(b=[b]);var c=g.Pc(b,function(d){return"string"===typeof d?d:d.property+" "+d.duration+"s "+d.timing+" "+d.delay+"s"});
g.lg(a,"transition",c.join(","))};
Bn=function(a,b,c,d,e){g.An.call(this);this.u=a;this.F=b;this.G=c;this.C=d;this.K=Array.isArray(e)?e:[e]};
Cn=function(a,b,c,d){return new Bn(a,b,{opacity:c},{opacity:d},{property:"opacity",duration:b,timing:"ease-in",delay:0})};
zda=function(a){a=Bc(a);if(""==a)return null;var b=String(a.substr(0,4)).toLowerCase();if(0==("url("<b?-1:"url("==b?0:1))return!a.endsWith(")")||1<(a?a.split("(").length-1:0)||a&&a.split(")"),null;if(0<a.indexOf("(")){if(/"|'/.test(a))return null;b=/([\-\w]+)\(/g;for(var c;c=b.exec(a);)if(!(c[1].toLowerCase()in yda))return null}return a};
Dn=function(a){var b=g.v.CSSStyleDeclaration;return b&&b.prototype&&b.prototype[a]||null};
En=function(a,b,c,d){if(a)return a.apply(b,d);if(g.ve&&10>document.documentMode){if(!b[c].call)throw Error("IE Clobbering detected");}else if("function"!=typeof b[c])throw Error("Clobbering detected");return b[c].apply(b,d)};
Eda=function(a){if(!a)return Rc;var b=document.createElement("div").style,c=Ada(a);g.Fb(c,function(d){var e=g.ze&&d in Bda?d:d.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");pc(e,"--")||pc(e,"var")||(d=En(Cda,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[d])||"",d=zda(d),null!=d&&En(Dda,b,b.setProperty?"setProperty":"setAttribute",[e,d]))});
return Gaa(b.cssText||"")};
Ada=function(a){g.Ra(a)?a=g.ub(a):(a=g.Qb(a),g.rb(a,"cssText"));return a};
g.Gn=function(a){var b,c=b=0,d=!1;a=a.split(Fda);for(var e=0;e<a.length;e++){var f=a[e];g.Fn.test(f)?(b++,c++):Gda.test(f)?d=!0:Hda.test(f)?c++:Ida.test(f)&&(d=!0)}b=0==c?d?1:0:.4<b/c?-1:1;return-1==(0==b?null:b)?"rtl":"ltr"};
g.Hn=function(a,b,c,d,e,f,h,l){this.u=a;this.F=b;this.C=c;this.G=d;this.D=e;this.K=f;this.B=h;this.P=l};
g.In=function(a,b){if(0==b)return a.u;if(1==b)return a.B;var c=g.be(a.u,a.C,b),d=g.be(a.C,a.D,b),e=g.be(a.D,a.B,b);c=g.be(c,d,b);d=g.be(d,e,b);return g.be(c,d,b)};
g.Jn=function(a,b,c){this.D=a;this.F=b;this.u=this.C=a;this.G=c||0};
g.Kn=function(a){a.u=Math.min(a.F,2*a.u);a.C=Math.min(a.F,a.u+(a.G?Math.round(a.G*(Math.random()-.5)*2*a.u):0));a.B++};
Ln=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};
Jda=function(a,b){for(var c=[a],d=b.length-1;0<=d;--d)c.push(typeof b[d],b[d]);return c.join("\x0B")};
Mn=function(a){return(a=a.exec(g.Vc))?a[1]:""};
Nn=function(a){return 0<=g.Dc(Kda,a)};
g.On=function(a){g.B.call(this);this.F=1;this.C=[];this.D=0;this.u=[];this.B={};this.G=!!a};
Lda=function(a,b,c){g.rm(function(){a.apply(b,c)})};
g.Pn=function(a){this.u=a};
Qn=function(a){this.u=a};
Rn=function(a){this.data=a};
Sn=function(a){return void 0===a||a instanceof Rn?a:new Rn(a)};
Tn=function(a){this.u=a};
g.Un=function(a){var b=a.creation;a=a.expiration;return!!a&&a<g.A()||!!b&&b>g.A()};
g.Vn=function(a){this.u=a};
Mda=function(){};
Wn=function(){};
Xn=function(a){this.u=a};
Yn=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.u=a};
Zn=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.u=a};
ao=function(a,b){this.B=a;this.u=null;if(g.ve&&!g.Zd(9)){$n||($n=new g.Sm);this.u=$n.get(a);this.u||(b?this.u=document.getElementById(b):(this.u=document.createElement("userdata"),this.u.addBehavior("#default#userData"),document.body.appendChild(this.u)),$n.set(a,this.u));try{this.u.load(this.B)}catch(c){this.u=null}}};
bo=function(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return Nda[b]})};
co=function(a){try{a.u.save(a.B)}catch(b){throw"Storage mechanism: Quota exceeded";}};
eo=function(a,b){this.B=a;this.u=b+"::"};
g.fo=function(a){var b=new Yn;return b.isAvailable()?a?new eo(b,a):b:null};
go=function(a,b){this.u=a;this.B=b};
ho=function(a){this.u=[];if(a)a:{if(a instanceof ho){var b=a.xg();a=a.rf();if(0>=this.u.length){for(var c=this.u,d=0;d<b.length;d++)c.push(new go(b[d],a[d]));break a}}else b=g.Qb(a),a=g.Pb(a);for(d=0;d<b.length;d++)g.io(this,b[d],a[d])}};
g.io=function(a,b,c){var d=a.u;d.push(new go(b,c));b=d.length-1;a=a.u;for(c=a[b];0<b;)if(d=b-1>>1,a[d].getKey()>c.getKey())a[b]=a[d],b=d;else break;a[b]=c};
g.jo=function(){ho.call(this)};
ko=function(){};
lo=function(a){g.Ff(this,a,Oda,null)};
mo=function(a){g.Ff(this,a,null,null)};
Pda=function(a,b){for(;df(b)&&4!=b.B;)switch(b.C){case 1:var c=gf(b);g.If(a,1,c);break;case 2:c=gf(b);g.If(a,2,c);break;case 3:c=gf(b);g.If(a,3,c);break;case 4:c=gf(b);g.If(a,4,c);break;case 5:c=bf(b.u);g.If(a,5,c);break;default:ef(b)}return a};
Qda=function(a){a=a.split("");var b=[function(c){c.reverse()},
1778066311,-474717403,377206055,511904727,213260071,"var",1863556759,-552833855,874109995,105953804,function(c,d){d=(d%c.length+c.length)%c.length;c.splice(-d).reverse().forEach(function(e){c.unshift(e)})},
function(c,d){c.push(d)},
1166845059,-1410353438,592416201,361926895,252212288,175524214,36097928,a,-191829420,-1731888810,function(c){for(var d=c.length;d;)c.push(c.splice(--d,1)[0])},
1379097298,a,-454850488,"zG4LH4",-1938184121,function(c,d){d=(d%c.length+c.length)%c.length;c.splice(0,1,c.splice(d,1,c[0])[0])},
function(c,d){for(d=(d%c.length+c.length)%c.length;d--;)c.unshift(c.pop())},
36097928,function(c,d){for(var e=64,f=[];++e-f.length-32;)switch(e){case 58:e=96;continue;case 91:e=44;break;case 65:e=47;continue;case 46:e=153;case 123:e-=58;default:f.push(String.fromCharCode(e))}c.forEach(function(h,l,m){this.push(m[l]=f[(f.indexOf(h)-f.indexOf(this[l])+l-32+e--)%f.length])},d.split(""))},
function(c,d){d=(d%c.length+c.length)%c.length;c.splice(d,1)},
-1905805966,function(c,d){d=(d%c.length+c.length)%c.length;var e=c[0];c[0]=c[d];c[d]=e},
null,1690324765,1409839066,function(c,d){d=(d%c.length+c.length)%c.length;c.splice(d,1)},
null,-1185857764,1523872726,a,-982111003,740005076,null,1309757731,-1524202271];b[36]=b;b[40]=b;b[46]=b;b[11](b[20],b[4]);b[12](b[46],b[2]);b[29](b[43],b[41]);b[29](b[20],b[28]);b[35](b[20],b[22]);b[35](b[40],b[15]);b[29](b[36],b[17]);b[32](b[25],b[27]);b[30](b[46],b[7]);b[20](b[2],b[33]);b[42](b[34],b[28]);b[44](b[2],b[1]);b[20](b[2],b[12]);b[20](b[49],b[18]);b[39](b[47],b[2]);b[27](b[24]);b[5](b[29]);b[36](b[47],b[10]);b[43](b[47],b[42]);b[34](b[29],b[4]);b[43](b[24],b[18]);b[39](b[40],b[1]);b[34](b[31],
b[25]);b[7](b[4]);b[35](b[20]);b[30](b[25],b[31]);b[30](b[25],b[2]);b[30](b[25],b[21]);b[14](b[45]);b[35](b[25],b[0]);b[44](b[39],b[34]);b[26](b[43],b[21]);b[26](b[9],b[42]);b[26](b[39],b[3]);b[18](b[43],b[19]);b[22](b[6],b[34]);b[0](b[44],b[25]);b[16](b[15],b[35]);b[28](b[24]);return a.join("")};
oo=function(a){var b=arguments;1<b.length?no[b[0]]=b[1]:1===b.length&&Object.assign(no,b[0])};
g.K=function(a,b){return a in no?no[a]:b};
po=function(a){return g.K(a,void 0)};
g.ro=function(a){a=qo(a);return"string"===typeof a&&"false"===a?!1:!!a};
g.so=function(a,b){var c=qo(a);return void 0===c&&void 0!==b?b:Number(c||0)};
to=function(a){a=qo(a);return Array.isArray(a)?g.Pc(a,function(b){return String(b||"")}):[String(a||"")]};
qo=function(a){var b=g.K("EXPERIMENTS_FORCED_FLAGS",{});return void 0!==b[a]?b[a]:g.K("EXPERIMENT_FLAGS",{})[a]};
uo=function(){var a=[],b=g.K("EXPERIMENTS_FORCED_FLAGS",{});for(c in b)a.push({key:c,value:String(b[c])});var c=g.K("EXPERIMENT_FLAGS",{});for(var d in c)d.startsWith("force_")&&void 0===b[d]&&a.push({key:d,value:String(c[d])});return a};
wo=function(a,b,c){a&&(a.dataset?a.dataset[vo(b)]=String(c):a.setAttribute("data-"+b,c))};
xo=function(a){return a?a.dataset?a.dataset[vo("loaded")]:a.getAttribute("data-loaded"):null};
vo=function(a){return yo[a]||(yo[a]=String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()}))};
Rda=function(a){zo.forEach(function(b){return b(a)})};
Ao=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){M(b),Rda(b)}}:a};
M=function(a,b,c,d){var e=g.Na("yt.logging.errors.log");e?e(a,"ERROR",b,c,d):(e=g.K("ERRORS",[]),e.push([a,"ERROR",b,c,d]),oo("ERRORS",e))};
g.Bo=function(a,b,c,d){var e=g.Na("yt.logging.errors.log");e?e(a,"WARNING",b,c,d):(e=g.K("ERRORS",[]),e.push([a,"WARNING",b,c,d]),oo("ERRORS",e))};
g.Co=function(a,b){"function"===typeof a&&(a=Ao(a));return window.setTimeout(a,b)};
Do=function(a,b){"function"===typeof a&&(a=Ao(a));return window.setInterval(a,b)};
g.Eo=function(a){window.clearTimeout(a)};
g.Jo=function(a,b,c){var d=g.Fo();if(d&&b){var e=d.subscribe(a,function(){var f=arguments;var h=function(){Go[e]&&b.apply&&"function"==typeof b.apply&&b.apply(c||window,f)};
try{g.Ho[a]?h():g.Co(h,0)}catch(l){M(l)}},c);
Go[e]=!0;Io[a]||(Io[a]=[]);Io[a].push(e);return e}return 0};
g.Ko=function(a){var b=g.Fo();b&&("number"===typeof a?a=[a]:"string"===typeof a&&(a=[parseInt(a,10)]),g.Fb(a,function(c){b.unsubscribeByKey(c);delete Go[c]}))};
g.Lo=function(a,b){var c=g.Fo();return c?c.publish.apply(c,arguments):!1};
No=function(a){var b=g.Fo();if(b)if(b.clear(a),a)Mo(a);else for(var c in Io)Mo(c)};
g.Fo=function(){return g.v.ytPubsubPubsubInstance};
Mo=function(a){Io[a]&&(a=Io[a],g.Fb(a,function(b){Go[b]&&delete Go[b]}),a.length=0)};
g.Oo=function(a,b,c){c=void 0===c?null:c;if(window.spf&&spf.script){c="";if(a){var d=a.indexOf("jsbin/"),e=a.lastIndexOf(".js"),f=d+6;-1<d&&-1<e&&e>f&&(c=a.substring(f,e),c=c.replace(Sda,""),c=c.replace(Tda,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else Uda(a,b,c)};
Uda=function(a,b,c){c=void 0===c?null:c;var d=Po(a),e=document.getElementById(d),f=e&&xo(e),h=e&&!f;f?b&&b():(b&&(f=g.Jo(d,b),b=""+g.Ua(b),Ro[b]=f),h||(e=Vda(a,d,function(){xo(e)||(wo(e,"loaded","true"),g.Lo(d),g.Co(g.Va(No,d),0))},c)))};
Vda=function(a,b,c,d){d=void 0===d?null:d;var e=g.Ee("SCRIPT");e.id=b;e.onload=function(){c&&setTimeout(c,0)};
e.onreadystatechange=function(){switch(e.readyState){case "loaded":case "complete":e.onload()}};
d&&e.setAttribute("nonce",d);g.jd(e,g.jg(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e};
Po=function(a){var b=document.createElement("a");g.id(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+pd(a)};
To=function(){var a=document;if("visibilityState"in a)return a.visibilityState;var b=So+"VisibilityState";if(b in a)return a[b]};
Uo=function(a,b){var c;bi(a,function(d){c=b[d];return!!c});
return c};
Vo=function(a){this.type="";this.state=this.source=this.data=this.currentTarget=this.relatedTarget=this.target=null;this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.ctrlKey=this.altKey=!1;this.rotation=this.clientY=this.clientX=0;this.scale=1;this.changedTouches=this.touches=null;try{if(a=a||window.event){this.event=a;for(var b in a)b in Wda||(this[b]=a[b]);this.scale=a.scale;this.rotation=a.rotation;var c=a.target||a.srcElement;c&&3==c.nodeType&&(c=c.parentNode);this.target=c;var d=a.relatedTarget;
if(d)try{d=d.nodeName?d:null}catch(e){d=null}else"mouseover"==this.type?d=a.fromElement:"mouseout"==this.type&&(d=a.toElement);this.relatedTarget=d;this.clientX=void 0!=a.clientX?a.clientX:a.pageX;this.clientY=void 0!=a.clientY?a.clientY:a.pageY;this.keyCode=a.keyCode?a.keyCode:a.which;this.charCode=a.charCode||("keypress"==this.type?this.keyCode:0);this.altKey=a.altKey;this.ctrlKey=a.ctrlKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.u=a.pageX;this.B=a.pageY}}catch(e){}};
Wo=function(a){if(document.body&&document.documentElement){var b=document.body.scrollTop+document.documentElement.scrollTop;a.u=a.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);a.B=a.clientY+b}};
Xda=function(a,b,c,d){d=void 0===d?{}:d;a.addEventListener&&("mouseenter"!=b||"onmouseenter"in document?"mouseleave"!=b||"onmouseenter"in document?"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"):b="mouseout":b="mouseover");return Ub(Xo,function(e){var f="boolean"===typeof e[4]&&e[4]==!!d,h=g.Sa(e[4])&&g.Sa(d)&&g.Yb(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||h)})};
g.$o=function(a,b,c,d){d=void 0===d?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=Xda(a,b,c,d);if(e)return e;e=++Yo.count+"";var f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document);var h=f?function(l){l=new Vo(l);if(!Qe(l.relatedTarget,function(m){return m==a},!0))return l.currentTarget=a,l.type=b,c.call(a,l)}:function(l){l=new Vo(l);
l.currentTarget=a;return c.call(a,l)};
h=Ao(h);a.addEventListener?("mouseenter"==b&&f?b="mouseover":"mouseleave"==b&&f?b="mouseout":"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),Zo()||"boolean"===typeof d?a.addEventListener(b,h,d):a.addEventListener(b,h,!!d.capture)):a.attachEvent("on"+b,h);Xo[e]=[a,b,c,h,d];return e};
Yda=function(a,b){var c=document.body||document;return g.$o(c,"click",function(d){var e=Qe(d.target,function(f){return f===c||b(f)},!0);
e&&e!==c&&!e.disabled&&(d.currentTarget=e,a.call(e,d))})};
g.ap=function(a){a&&("string"==typeof a&&(a=[a]),g.Fb(a,function(b){if(b in Xo){var c=Xo[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?Zo()||"boolean"===typeof c?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete Xo[b]}}))};
g.bp=function(a){a=a||window.event;a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a};
cp=function(a){a=a||window.event;var b;a.composedPath&&"function"===typeof a.composedPath?b=a.composedPath():b=a.path;return b&&b.length?b[0]:g.bp(a)};
dp=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};
ep=function(a){a=a||window.event;var b=a.pageX,c=a.pageY;document.body&&document.documentElement&&("number"!==typeof b&&(b=a.clientX+document.body.scrollLeft+document.documentElement.scrollLeft),"number"!==typeof c&&(c=a.clientY+document.body.scrollTop+document.documentElement.scrollTop));return new g.ee(b,c)};
g.fp=function(a){a=a||window.event;a.returnValue=!1;a.preventDefault&&a.preventDefault()};
g.gp=function(a){a=a||window.event;return!1===a.returnValue||a.kC&&a.kC()};
g.hp=function(a){a=a||window.event;return a.keyCode?a.keyCode:a.which};
Zda=function(a){return Yda(a,function(b){return g.vn(b,"ytp-ad-has-logging-urls")})};
g.ip=function(a,b,c){var d=void 0===d?{}:d;var e;return e=g.$o(a,b,function(){g.ap(e);c.apply(a,arguments)},d)};
jp=function(a){for(var b in Xo)Xo[b][0]==a&&g.ap(b)};
kp=function(a){this.N=a;this.u=null;this.D=0;this.G=null;this.F=0;this.B=[];for(a=0;4>a;a++)this.B.push(0);this.C=0;this.P=g.$o(window,"mousemove",(0,g.z)(this.X,this));this.W=Do((0,g.z)(this.K,this),25)};
$da=function(){};
mp=function(a,b){return lp(a,0,b)};
g.np=function(a,b){return lp(a,1,b)};
op=function(){};
g.pp=function(){return!!g.Na("yt.scheduler.instance")};
lp=function(a,b,c){isNaN(c)&&(c=void 0);var d=g.Na("yt.scheduler.instance.addJob");return d?d(a,b,c):void 0===c?(a(),NaN):g.Co(a,c||0)};
g.qp=function(a){if(!isNaN(a)){var b=g.Na("yt.scheduler.instance.cancelJob");b?b(a):g.Eo(a)}};
rp=function(a){var b=g.Na("yt.scheduler.instance.setPriorityThreshold");b&&b(a)};
up=function(){var a={},b=void 0===a.PJ?!0:a.PJ;a=void 0===a.oQ?!1:a.oQ;if(null==g.Na("_lact",window)){var c=parseInt(g.K("LACT"),10);c=isFinite(c)?g.A()-Math.max(c,0):-1;g.Ja("_lact",c,window);g.Ja("_fact",c,window);-1==c&&sp();g.$o(document,"keydown",sp);g.$o(document,"keyup",sp);g.$o(document,"mousedown",sp);g.$o(document,"mouseup",sp);b&&(a?g.$o(window,"touchmove",function(){tp("touchmove",200)},{passive:!0}):(g.$o(window,"resize",function(){tp("resize",200)}),g.$o(window,"scroll",function(){tp("scroll",
200)})));
new kp(function(){tp("mouse",100)});
g.$o(document,"touchstart",sp,{passive:!0});g.$o(document,"touchend",sp,{passive:!0})}};
tp=function(a,b){vp[a]||(vp[a]=!0,g.np(function(){sp();vp[a]=!1},b))};
sp=function(){null==g.Na("_lact",window)&&(up(),g.Na("_lact",window));var a=g.A();g.Ja("_lact",a,window);-1==g.Na("_fact",window)&&g.Ja("_fact",a,window);(a=g.Na("ytglobal.ytUtilActivityCallback_"))&&a()};
wp=function(){var a=g.Na("_lact",window),b;null==a?b=-1:b=Math.max(g.A()-a,0);return b};
Cp=function(a){a=void 0===a?!1:a;return new wm(function(b){g.Eo(xp);g.Eo(yp);yp=0;zp&&zp.isReady()?(aea(b,a),Ap.clear()):(Bp(),b())})};
Bp=function(){g.ro("web_gel_timeout_cap")&&!yp&&(yp=g.Co(Cp,6E4));g.Eo(xp);var a=g.K("LOGGING_BATCH_TIMEOUT",g.so("web_gel_debounce_ms",1E4));g.ro("shorten_initial_gel_batch_timeout")&&Dp&&(a=bea);xp=g.Co(Cp,a)};
aea=function(a,b){var c=zp;b=void 0===b?!1:b;for(var d=Math.round((0,g.N)()),e=Ap.size,f=g.q(Ap),h=f.next();!h.done;h=f.next()){var l=g.q(h.value);h=l.next().value;var m=l.next().value;l=g.$b(g.Ep(c.Ff||g.Fp()));l.events=m;(m=Gp[h])&&cea(l,h,m);delete Gp[h];dea(l,d);g.Hp(c,"log_event",l,{retry:!0,onSuccess:function(){e--;e||a();Ip=Math.round((0,g.N)()-d)},
onError:function(){e--;e||a()},
ER:b});Dp=!1}};
dea=function(a,b){a.requestTimeMs=String(b);g.ro("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);var c=g.K("EVENT_ID",void 0);if(c){var d=g.K("BATCH_CLIENT_COUNTER",void 0)||0;!d&&g.ro("web_client_counter_random_seed")&&(d=Math.floor(Math.random()*Jp/2));d++;d>Jp&&(d=1);oo("BATCH_CLIENT_COUNTER",d);c={serializedEventId:c,clientCounter:String(d)};a.serializedClientEventId=c;Kp&&Ip&&g.ro("log_gel_rtt_web")&&(a.previousBatchInfo={serializedClientEventId:Kp,roundtripMs:String(Ip)});Kp=
c;Ip=0}};
cea=function(a,b,c){if(c.videoId)var d="VIDEO";else if(c.playlistId)d="PLAYLIST";else return;a.credentialTransferTokenTargetId=c;a.context=a.context||{};a.context.user=a.context.user||{};a.context.user.credentialTransferTokens=[{token:b,scope:d}]};
Np=function(a,b,c,d){d=void 0===d?{}:d;var e={};e.eventTimeMs=Math.round(d.timestamp||(0,g.N)());e[a]=b;a=wp();e.context={lastActivityMs:String(d.timestamp||!isFinite(a)?-1:a)};g.ro("log_sequence_info_on_gel_web")&&d.Hj&&(a=e.context,b=d.Hj,Lp[b]=b in Lp?Lp[b]+1:0,a.sequence={index:Lp[b],groupKey:b},d.FI&&delete Lp[d.Hj]);d=d.Yh;a="";d&&(a={},d.videoId?a.videoId=d.videoId:d.playlistId&&(a.playlistId=d.playlistId),Gp[d.token]=a,a=d.token);d=Ap.get(a)||[];Ap.set(a,d);d.push(e);c&&(zp=new c);c=g.so("web_logging_max_batch")||
100;e=(0,g.N)();d.length>=c?Cp(!0):10<=e-Mp&&(Bp(),Mp=e)};
Op=function(){return g.Na("yt.ads.biscotti.lastId_")||""};
Pp=function(a){g.Ja("yt.ads.biscotti.lastId_",a,void 0)};
Qp=function(a){for(var b=a.split("&"),c={},d=0,e=b.length;d<e;d++){var f=b[d].split("=");if(1==f.length&&f[0]||2==f.length)try{var h=md(f[0]||""),l=md(f[1]||"");h in c?Array.isArray(c[h])?vb(c[h],l):c[h]=[c[h],l]:c[h]=l}catch(m){eea.hasOwnProperty(f[0])||(m.args=[{key:f[0],value:f[1],query:a}],M(m))}}return c};
Rp=function(a){var b=[];g.Ib(a,function(c,d){var e=ld(d),f;Array.isArray(c)?f=c:f=[c];g.Fb(f,function(h){""==h?b.push(e):b.push(e+"="+ld(h))})});
return b.join("&")};
Sp=function(a){"?"==a.charAt(0)&&(a=a.substr(1));return Qp(a)};
Tp=function(a){a=a.split(",");return a=a.map(function(b){return Sp(b)})};
g.Up=function(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),Sp(1<a.length?a[1]:a[0])):{}};
g.Wp=function(a,b){return Vp(a,b||{},!0)};
Xp=function(a,b){return Vp(a,b||{},!1)};
Vp=function(a,b,c){var d=a.split("#",2);a=d[0];d=1<d.length?"#"+d[1]:"";var e=a.split("?",2);a=e[0];e=Sp(e[1]||"");for(var f in b)if(c||!Sb(e,f))e[f]=b[f];return g.Id(a,e)+d};
Yp=function(a){if(!b)var b=window.location.href;var c=g.wd(1,a),d=g.xd(a);c&&d?(a=a.match(vd),b=b.match(vd),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?g.xd(b)==d&&(Number(g.wd(4,b))||null)==(Number(g.wd(4,a))||null):!0;return a};
Zp=function(a){a||(a=document.location.href);a=g.wd(1,a);return null!==a&&"https"==a};
$p=function(a){a=g.xd(a);a=null!==a?a.split(".").reverse():null;return null===a?!1:"com"==a[0]&&a[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
cq=function(a){var b=aq;a=void 0===a?Op():a;b=Object.assign(bq(b),fea(b));b.ca_type="image";a&&(b.bid=a);return b};
bq=function(a){var b={};b.dt=gea;b.flash="0";a:{try{var c=a.u.top.location.href}catch(f){a=2;break a}a=c?c===a.B.location.href?0:1:2}b=(b.frm=a,b);b.u_tz=-(new Date).getTimezoneOffset();var d=void 0===d?Wg:d;try{var e=d.history.length}catch(f){e=0}b.u_his=e;b.u_java=!!Wg.navigator&&"unknown"!==typeof Wg.navigator.javaEnabled&&!!Wg.navigator.javaEnabled&&Wg.navigator.javaEnabled();Wg.screen&&(b.u_h=Wg.screen.height,b.u_w=Wg.screen.width,b.u_ah=Wg.screen.availHeight,b.u_aw=Wg.screen.availWidth,b.u_cd=
Wg.screen.colorDepth);Wg.navigator&&Wg.navigator.plugins&&(b.u_nplug=Wg.navigator.plugins.length);Wg.navigator&&Wg.navigator.mimeTypes&&(b.u_nmime=Wg.navigator.mimeTypes.length);return b};
fea=function(a){var b=a.u;try{var c=b.screenX;var d=b.screenY}catch(m){}try{var e=b.outerWidth;var f=b.outerHeight}catch(m){}try{var h=b.innerWidth;var l=b.innerHeight}catch(m){}b=[b.screenLeft,b.screenTop,c,d,b.screen?b.screen.availWidth:void 0,b.screen?b.screen.availTop:void 0,e,f,h,l];c=Hg(!1,a.u.top);d={};e=new ln;g.v.SVGElement&&g.v.document.createElementNS&&e.set(0);f=bba();f["allow-top-navigation-by-user-activation"]&&e.set(1);f["allow-popups-to-escape-sandbox"]&&e.set(2);g.v.crypto&&g.v.crypto.subtle&&
e.set(3);g.v.TextDecoder&&g.v.TextEncoder&&e.set(4);e=wda(e);return d.bc=e,d.bih=c.height,d.biw=c.width,d.brdim=b.join(),d.vis=Xg(a.B),d.wgl=!!Wg.WebGLRenderingContext,d};
hea=function(){if(!dq)return null;var a=dq();return"open"in a?a:null};
g.fq=function(a){switch(eq(a)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
eq=function(a){return a&&"status"in a?a.status:-1};
iea=function(a,b){b=void 0===b?{}:b;var c=Yp(a),d=g.ro("web_ajax_ignore_global_headers_if_set"),e;for(e in gq){var f=g.K(gq[e]);!f||!c&&!hq(a,e)||d&&void 0!==b[e]||(b[e]=f)}if(c||hq(a,"X-YouTube-Utc-Offset"))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());(c||hq(a,"X-YouTube-Time-Zone"))&&(d="undefined"!=typeof Intl?(new Intl.DateTimeFormat).resolvedOptions().timeZone:null)&&(b["X-YouTube-Time-Zone"]=d);if(c||hq(a,"X-YouTube-Ad-Signals"))b["X-YouTube-Ad-Signals"]=Rp(cq(void 0));
return b};
iq=function(a,b){var c=g.xd(a),d=ud(g.wd(5,a));d=(c=c&&(c.endsWith("youtube.com")||c.endsWith("youtube-nocookie.com")))&&d&&d.startsWith("/api/");if(!c||d)return a;var e=Sp(b),f={};g.Fb(jea,function(h){e[h]&&(f[h]=e[h])});
return Xp(a,f)};
hq=function(a){return g.xd(a)?!1:!0};
kea=function(a,b){if(window.fetch&&"XML"!=b.format){var c={method:b.method||"GET",credentials:"same-origin"};b.headers&&(c.headers=b.headers);a=jq(a,b);var d=kq(a,b);d&&(c.body=d);b.withCredentials&&(c.credentials="include");var e=!1,f;fetch(a,c).then(function(h){if(!e){e=!0;f&&g.Eo(f);var l=h.ok,m=function(n){n=n||{};var p=b.context||g.v;l?b.onSuccess&&b.onSuccess.call(p,n,h):b.onError&&b.onError.call(p,n,h);b.Jf&&b.Jf.call(p,n,h)};
"JSON"==(b.format||"JSON")&&(l||400<=h.status&&500>h.status)?h.json().then(m,function(){m(null)}):m(null)}});
b.gE&&0<b.timeout&&(f=g.Co(function(){e||(e=!0,g.Eo(f),b.gE.call(b.context||g.v))},b.timeout))}else g.lq(a,b)};
g.lq=function(a,b){var c=b.format||"JSON";a=jq(a,b);var d=kq(a,b),e=!1,f=mq(a,function(m){if(!e){e=!0;l&&g.Eo(l);var n=g.fq(m),p=null,r=400<=m.status&&500>m.status,t=500<=m.status&&600>m.status;if(n||r||t)p=lea(a,c,m,b.H3);if(n)a:if(m&&204==m.status)n=!0;else{switch(c){case "XML":n=0==parseInt(p&&p.return_code,10);break a;case "RAW":n=!0;break a}n=!!p}p=p||{};r=b.context||g.v;n?b.onSuccess&&b.onSuccess.call(r,m,p):b.onError&&b.onError.call(r,m,p);b.Jf&&b.Jf.call(r,m,p)}},b.method,d,b.headers,b.responseType,
b.withCredentials);
if(b.kg&&0<b.timeout){var h=b.kg;var l=g.Co(function(){e||(e=!0,f.abort(),g.Eo(l),h.call(b.context||g.v,f))},b.timeout)}return f};
jq=function(a,b){b.M3&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var c=g.K("XSRF_FIELD_NAME",void 0),d=b.Mh;d&&(d[c]&&delete d[c],a=g.Wp(a,d));return a};
kq=function(a,b){var c=g.K("XSRF_FIELD_NAME",void 0),d=g.K("XSRF_TOKEN",void 0),e=b.postBody||"",f=b.dc,h=po("XSRF_FIELD_NAME"),l;b.headers&&(l=b.headers["Content-Type"]);b.Vv||g.xd(a)&&!b.withCredentials&&g.xd(a)!=document.location.hostname||"POST"!=b.method||l&&"application/x-www-form-urlencoded"!=l||b.dc&&b.dc[h]||(f||(f={}),f[c]=d);f&&"string"===typeof e&&(e=Sp(e),g.bc(e,f),e=b.YE&&"JSON"==b.YE?JSON.stringify(e):g.Gd(e));f=e||f&&!g.Wb(f);!nq&&f&&"POST"!=b.method&&(nq=!0,M(Error("AJAX request with postData should use POST")));
return e};
lea=function(a,b,c,d){var e=null;switch(b){case "JSON":try{var f=c.responseText}catch(h){throw d=Error("Error reading responseText"),d.params=a,g.Bo(d),h;}a=c.getResponseHeader("Content-Type")||"";f&&0<=a.indexOf("json")&&(")]}'\n"===f.substring(0,5)&&(f=f.substring(5)),e=JSON.parse(f));break;case "XML":if(a=(a=c.responseXML)?mea(a):null)e={},g.Fb(a.getElementsByTagName("*"),function(h){e[h.tagName]=nea(h)})}d&&oq(e);
return e};
oq=function(a){if(g.Sa(a))for(var b in a)"html_content"==b||qc(b,"_html")?a[b]=g.gd(g.jc("HTML that is escaped and sanitized server-side and passed through yt.net.ajax"),a[b]):oq(a[b])};
mea=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null};
nea=function(a){var b="";g.Fb(a.childNodes,function(c){b+=c.nodeValue});
return b};
mq=function(a,b,c,d,e,f,h){function l(){4==(m&&"readyState"in m?m.readyState:0)&&b&&Ao(b)(m)}
c=void 0===c?"GET":c;d=void 0===d?"":d;var m=hea();if(!m)return null;"onloadend"in m?m.addEventListener("loadend",l,!1):m.onreadystatechange=l;g.ro("debug_forward_web_query_parameters")&&(a=iq(a,window.location.search));m.open(c,a,!0);f&&(m.responseType=f);h&&(m.withCredentials=!0);c="POST"==c&&(void 0===window.FormData||!(d instanceof FormData));if(e=iea(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};
oea=function(){for(var a={},b=g.q(Object.entries(Sp(g.K("DEVICE","")))),c=b.next();!c.done;c=b.next()){var d=g.q(c.value);c=d.next().value;d=d.next().value;"cbrand"===c?a.deviceMake=d:"cmodel"===c?a.deviceModel=d:"cbr"===c?a.browserName=d:"cbrver"===c?a.browserVersion=d:"cos"===c?a.osName=d:"cosver"===c?a.osVersion=d:"cplatform"===c&&(a.platform=d)}return a};
pq=function(){return"INNERTUBE_API_KEY"in no&&"INNERTUBE_API_VERSION"in no};
g.Fp=function(){return{innertubeApiKey:g.K("INNERTUBE_API_KEY",void 0),innertubeApiVersion:g.K("INNERTUBE_API_VERSION",void 0),dC:g.K("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),Bs:g.K("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientVersion:g.K("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0),Qw:g.K("INNERTUBE_CONTEXT_HL",void 0),Pw:g.K("INNERTUBE_CONTEXT_GL",void 0),fC:g.K("INNERTUBE_HOST_OVERRIDE",void 0)||"",hC:!!g.K("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),gC:!!g.K("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",
!1),appInstallData:g.K("SERIALIZED_CLIENT_CONFIG_DATA",void 0)}};
pea=function(a,b,c){c=void 0===c?{}:c;var d={"X-Goog-Visitor-Id":c.visitorData||g.K("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return d;(b=c.lA||g.K("AUTHORIZATION"))||(a?b="Bearer "+g.Na("gapi.auth.getToken")().E3:b=Hl([]));b&&(d.Authorization=b,d["X-Goog-AuthUser"]=g.K("SESSION_INDEX",0),g.ro("pageid_as_header_web")&&(d["X-Goog-PageId"]=g.K("DELEGATED_SESSION_ID")));return d};
g.Ep=function(a){var b={client:{hl:a.Qw,gl:a.Pw,clientName:a.Bs,clientVersion:a.innertubeContextClientVersion,configInfo:a.dC}},c=window.devicePixelRatio;c&&1!=c&&(b.client.screenDensityFloat=String(c));c=g.K("EXPERIMENTS_TOKEN","");""!==c&&(b.client.experimentsToken=c);c=uo();0<c.length&&(b.request={internalExperimentFlags:c});a.appInstallData&&g.ro("web_log_app_install_experiments")&&(b.client.configInfo=b.client.configInfo||{},b.client.configInfo.appInstallData=a.appInstallData);g.K("DELEGATED_SESSION_ID")&&
!g.ro("pageid_as_header_web")&&(b.user={onBehalfOfUser:g.K("DELEGATED_SESSION_ID")});b.client=Object.assign(b.client,oea());return{context:b}};
g.rq=function(a,b,c,d,e){qq.set(""+a,b,{HC:c,path:"/",domain:void 0===d?"youtube.com":d,FQ:void 0===e?!1:e})};
g.sq=function(a,b){return qq.get(""+a,b)};
g.tq=function(a,b,c){qq.remove(""+a,void 0===b?"/":b,void 0===c?"youtube.com":c)};
uq=function(a){var b;(b=g.fo(a))||(a=new ao(a||"UserDataSharedStore"),b=a.isAvailable()?a:null);this.u=(a=b)?new Tn(a):null;this.B=document.domain||window.location.hostname};
vq=function(){this.C=!0};
wq=function(){vq.u||(vq.u=new vq);return vq.u};
qea=function(a,b,c){return Am(a.u(b,c))};
rea=function(){var a={};for(xq=new yq(void 0===a.Hw?g.Bo:a.Hw,void 0===a.handleError?M:a.handleError,void 0===a.logEvent?g.zq:a.logEvent);0<Aq.length;)switch(a=Aq.shift(),a.type){case "ERROR":Bq(a.payload);break;case "EVENT":xq.logEvent(a.eventType,a.payload)}};
Dq=function(a,b){Cq||(xq?xq.logEvent(a,b):(Aq.push({type:"EVENT",eventType:a,payload:b}),10<Aq.length&&Aq.shift()))};
sea=function(a){if(!a)throw Error();throw a;};
tea=function(a){return a};
Eq=function(a){var b=this;this.B=a;this.state={status:"PENDING"};this.u=[];this.onRejected=[];this.B(function(c){if("PENDING"===b.state.status){b.state={status:"FULFILLED",value:c};c=g.q(b.u);for(var d=c.next();!d.done;d=c.next())d=d.value,d()}},function(c){if("PENDING"===b.state.status){b.state={status:"REJECTED",
reason:c};c=g.q(b.onRejected);for(var d=c.next();!d.done;d=c.next())d=d.value,d()}})};
Gq=function(a,b,c,d,e){try{if("FULFILLED"!==a.state.status)throw Error("calling handleResolve before the promise is fulfilled.");var f=c(a.state.value);f instanceof Eq?Fq(a,b,f,d,e):d(f)}catch(h){e(h)}};
Hq=function(a,b,c,d,e){try{if("REJECTED"!==a.state.status)throw Error("calling handleReject before the promise is rejected.");var f=c(a.state.reason);f instanceof Eq?Fq(a,b,f,d,e):d(f)}catch(h){e(h)}};
Fq=function(a,b,c,d,e){b===c?e(new TypeError("Circular promise chain detected.")):c.then(function(f){f instanceof Eq?Fq(a,b,f,d,e):d(f)},function(f){e(f)})};
Iq=function(a,b,c){function d(){c(a.error);f()}
function e(){b(a.result);f()}
function f(){try{a.removeEventListener("success",e),a.removeEventListener("error",d)}catch(h){}}
a.addEventListener("success",e);a.addEventListener("error",d)};
Jq=function(a){return new Promise(function(b,c){Iq(a,b,c)})};
Kq=function(a){return new Eq(function(b,c){Iq(a,b,c)})};
Lq=function(a,b){return new Eq(function(c,d){function e(){var f=a?b(a):null;f?f.then(function(h){a=h;e()},d):c()}
e()})};
Mq=function(a,b){this.request=a;this.cursor=b};
Nq=function(a){return Kq(a).then(function(b){return null===b?null:new Mq(a,b)})};
Oq=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];d=Error.call(this,a);this.message=d.message;"stack"in d&&(this.stack=d.stack);this.args=[].concat(g.la(c))};
Qq=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?Pq[a]:c;Oq.call(this,c,Object.assign({name:"YtIdbKnownError",isSw:void 0===self.document,isIframe:self!==self.top,type:a},b));this.type=a;this.message=c;Object.setPrototypeOf(this,Qq.prototype);Cq||(xq?Bq(this):(Aq.push({type:"ERROR",payload:this}),10<Aq.length&&Aq.shift()))};
Rq=function(a,b,c){Qq.call(this,"UNKNOWN_ABORT",{objectStoreNames:a,dbName:b,mode:c});Object.setPrototypeOf(this,Rq.prototype)};
Sq=function(a){Qq.call(this,"MISSING_OBJECT_STORE",{U3:a},Pq.MISSING_OBJECT_STORE);Object.setPrototypeOf(this,Sq.prototype)};
Tq=function(a,b){this.u=a;this.options=b;this.transactionCount=0;this.C=Math.round((0,g.N)());this.B=!1};
Xq=function(a,b,c,d){return Uq(a,[b],"readwrite",function(e){return Vq(Wq(e,b),c,d)})};
Uq=function(a,b,c,d){c=void 0===c?"readonly":c;a.transactionCount++;var e=a.u.transaction(b,c);e=new Yq(e);d=uea(e,d);vea(a,d,b.join(),c);return d};
vea=function(a,b,c,d){Te(a,function f(){var h,l,m=this,n,p,r;return Aa(f,function(t){if(1==t.u)return h=Math.round((0,g.N)()),ta(t,2),sa(t,b,4);if(2!=t.u)return l=Math.round((0,g.N)()),Zq(m,!0,c,l-h),ua(t,0);n=va(t);p=Math.round((0,g.N)());var w=n,x=m.u.name,y=m.transactionCount,D;"QuotaExceededError"===w.name?D=new Qq("QUOTA_EXCEEDED",{objectStoreNames:c,dbName:x,mode:d}):"UnknownError"===w.name&&(D=new Qq("QUOTA_MAYBE_EXCEEDED",{objectStoreNames:c,dbName:x,mode:d}));D&&Dq("QUOTA_EXCEEDED",{dbName:x,
objectStoreNames:c,transactionCount:y,transactionMode:d});r=p-h;n instanceof Rq&&(Dq("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:c,transactionDuration:r,transactionCount:m.transactionCount,dbDuration:p-m.C}),m.B=!0);Zq(m,!1,c,r);t.u=0})})};
Zq=function(a,b,c,d){Dq("TRANSACTION_ENDED",{objectStoreNames:c,connectionHasUnknownAbortedTransaction:a.B,duration:d,isSuccessful:b})};
$q=function(a){this.u=a};
wea=function(a,b){return ar(a,{query:b},function(c){return c["delete"]().then(function(){return c["continue"]()})}).then(function(){})};
yea=function(a,b){return"getAll"in IDBObjectStore.prototype?Kq(a.u.getAll(b,void 0)):xea(a,b)};
xea=function(a,b){var c=[];return ar(a,{query:b},function(d){c.push(d.getValue());return d["continue"]()}).then(function(){return c})};
Vq=function(a,b,c){return Kq(a.u.put(b,c))};
ar=function(a,b,c){a=a.u.openCursor(b.query,b.direction);return br(a).then(function(d){return Lq(d,c)})};
zea=function(a,b){var c={},d=c.query;c=c.direction;d="openKeyCursor"in IDBObjectStore.prototype?a.u.openKeyCursor(d,c):a.u.openCursor(d,c);return Nq(d).then(function(e){return Lq(e,b)})};
Yq=function(a){var b=this;this.u=a;this.B=new Map;this.aborted=!1;this.done=new Promise(function(c,d){b.u.addEventListener("complete",function(){c()});
b.u.addEventListener("error",function(e){e.currentTarget===e.target&&d(b.u.error)});
b.u.addEventListener("abort",function(){var e=b.u.error;if(e)d(e);else if(!b.aborted){e=Rq;for(var f=b.u.objectStoreNames,h=[],l=0;l<f.length;l++){var m=f.item(l);if(null===m)throw Error("Invariant: item in DOMStringList is null");h.push(m)}e=new e(h.join(),b.u.db.name,b.u.mode);d(e)}})})};
uea=function(a,b){var c=new Promise(function(d,e){b(a).then(function(f){a.commit();d(f)})["catch"](e)});
return Promise.all([c,a.done]).then(function(d){return g.q(d).next().value})};
Wq=function(a,b){var c=a.u.objectStore(b),d=a.B.get(c);d||(d=new $q(c),a.B.set(c,d));return d};
cr=function(a){this.u=a};
Aea=function(a,b,c){a=a.u.openCursor(void 0===b.query?null:b.query,void 0===b.direction?"next":b.direction);return br(a).then(function(d){return Lq(d,c)})};
dr=function(a,b){this.request=a;this.cursor=b};
br=function(a){return Kq(a).then(function(b){return null===b?null:new dr(a,b)})};
Bea=function(a,b,c){return Te(this,function e(){var f,h,l,m,n,p,r,t,w,x;return Aa(e,function(y){if(1==y.u)return f=self.indexedDB.open(a,b),h=c,l=h.blocked,m=h.blocking,n=h.aR,p=h.upgrade,r=h.closed,w=function(){t||(t=new Tq(f.result,{closed:r}));return t},f.addEventListener("upgradeneeded",function(D){if(null===D.newVersion)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");
if(null===f.transaction)throw Error("Invariant: transaction on IDbOpenDbRequest is null");D.dataLoss&&"none"!==D.dataLoss&&Dq("IDB_DATA_CORRUPTED",{reason:D.dataLossMessage||"unknown reason",dbName:a});var E=w(),G=new Yq(f.transaction);p&&p(E,D.oldVersion,D.newVersion,G)}),l&&f.addEventListener("blocked",function(){l()}),sa(y,Jq(f),2);
x=y.B;m&&x.addEventListener("versionchange",function(){m(w())});
x.addEventListener("close",function(){Dq("IDB_UNEXPECTEDLY_CLOSED",{dbName:a,dbVersion:x.version});n&&n()});
return y["return"](w())})})};
er=function(a,b,c){c=void 0===c?{}:c;return Bea(a,b,c)};
fr=function(a,b){b=void 0===b?{}:b;return Te(this,function d(){var e,f,h;return Aa(d,function(l){e=self.indexedDB.deleteDatabase(a);f=b;(h=f.blocked)&&e.addEventListener("blocked",function(){h()});
return sa(l,Jq(e),0)})})};
gr=function(a,b){this.name=a;this.options=b;this.B=!1};
ir=function(a){return Te(this,function c(){var d;return Aa(c,function(e){if(1==e.u)return sa(e,hr.open(),2);d=e.B;return e["return"](Uq(d,["databases"],"readwrite",function(f){var h=Wq(f,"databases");return h.get(a.actualName).then(function(l){if(l?a.actualName!==l.actualName||a.publicName!==l.publicName||a.userIdentifier!==l.userIdentifier||a.signedIn!==l.signedIn||a.clearDataOnAuthChange!==l.clearDataOnAuthChange:1)return Vq(h,a).then(function(){})})}))})})};
jr=function(a){return Te(this,function c(){var d;return Aa(c,function(e){if(1==e.u)return sa(e,hr.open(),2);d=e.B;return e["return"](d["delete"]("databases",a))})})};
Cea=function(){return Te(this,function b(){var c,d,e;return Aa(b,function(f){switch(f.u){case 1:if(fk&&ck()&&!dk()&&!g.ro("ytidb_allow_on_ios_safari_v8_and_v9")||g.kr)return f["return"](!1);try{if(c=self,!(c.indexedDB&&c.IDBIndex&&c.IDBKeyRange&&c.IDBObjectStore))return f["return"](!1)}catch(l){return f["return"](!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return f["return"](!1);if(!g.ro("ytidb_new_supported_check_with_delete")){f.Ac(2);break}ta(f,3);return sa(f,
jr("yt-idb-test-do-not-use"),5);case 5:return f["return"](!0);case 3:return va(f),f["return"](!1);case 2:if(!g.ro("ytidb_new_supported_check_with_add_and_delete")){f.Ac(6);break}ta(f,7);d={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0,signedIn:!1};return sa(f,ir(d),9);case 9:return sa(f,jr("yt-idb-test-do-not-use"),10);case 10:return f["return"](!0);case 7:return va(f),f["return"](!1);case 6:return ta(f,11,12),sa(f,er("yt-idb-test-do-not-use"),14);case 14:if(e=
f.B,!e)return f["return"](!1);case 12:f.N=[f.C];f.G=0;f.F=0;if(e)try{e.close()}catch(l){}var h=f.N.splice(0)[0];(h=f.C=f.C||h)?h.mC?f.u=f.G||f.F:void 0!=h.Ac&&f.F<h.Ac?(f.u=h.Ac,f.C=null):f.u=f.F:f.u=13;break;case 11:return va(f),f["return"](!1);case 13:return f["return"](!0)}})})};
mr=function(){if(void 0!==lr)return lr;var a=(0,g.N)();Cq=!0;return lr=Cea().then(function(b){Cq=!1;Dq("IS_SUPPORTED_COMPLETED",{duration:Math.round((0,g.N)()-a),isSupported:b});return b})};
nr=function(a){if(0<=a.indexOf(":"))throw Error("Database name cannot contain ':'");};
or=function(a){return{actualName:a,publicName:a,userIdentifier:void 0,signedIn:!1}};
pr=function(a){return or(a);throw new Qq("AUTH_INVALID");};
rr=function(a,b,c,d){var e;return Te(this,function h(){var l,m;return Aa(h,function(n){switch(n.u){case 1:return sa(n,qr(),2);case 2:return nr(a),c?l=or(a):l=pr(a),l.clearDataOnAuthChange=null!==(e=d.clearDataOnAuthChange)&&void 0!==e?e:!1,ta(n,3),sa(n,ir(l),5);case 5:return sa(n,er(l.actualName,b,d),6);case 6:return n["return"](n.B);case 3:return m=va(n),ta(n,7),sa(n,jr(l.actualName),9);case 9:ua(n,8);break;case 7:va(n);case 8:throw m;}})})};
qr=function(){return Te(this,function b(){var c;return Aa(b,function(d){if(1==d.u)return sa(d,mr(),2);c=d.B;if(!c)throw new Qq("IDB_NOT_SUPPORTED");d.u=0})})};
Dea=function(a,b,c){c=void 0===c?{}:c;return rr(a,b,!1,c)};
Eea=function(a,b,c){c=void 0===c?{}:c;return rr(a,b,!0,c)};
Fea=function(a,b){b=void 0===b?{}:b;return Te(this,function d(){var e;return Aa(d,function(f){return 1==f.u?(nr(a),sa(f,qr(),2)):3!=f.u?(e=pr(a),sa(f,fr(e.actualName,b),3)):sa(f,jr(e.actualName),0)})})};
Gea=function(a,b){b=void 0===b?{}:b;return Te(this,function d(){return Aa(d,function(e){return 1==e.u?(nr(a),sa(e,qr(),2)):3!=e.u?sa(e,fr(a,b),3):sa(e,jr(a),0)})})};
sr=function(a,b){gr.call(this,a,b);this.options=b;nr(a)};
tr=function(){Eq.call(this,function(){});
throw Error("Not allowed to instantiate the thennable outside of the core library.");};
vr=function(){g.fm.call(this);this.C=!1;this.u=ur();Hea(this);Iea(this)};
ur=function(){var a=window.navigator.onLine;return void 0===a?!0:a};
Iea=function(a){window.addEventListener("online",function(){a.u=!0;a.F&&a.F();wr(a)})};
Hea=function(a){window.addEventListener("offline",function(){a.u=!1;a.D&&a.D();wr(a)})};
wr=function(a){a.C&&(g.Bo(new Oq("NetworkStatusManager state did not match poll",(0,g.N)()-0)),a.C=!1)};
xr=function(a,b){b=void 0===b?{}:b;mr().then(function(){vr.u||(vr.u=new vr);vr.u.u!==ur()&&g.Bo(new Oq("NetworkStatusManager isOnline does not match window status"));g.lq(a,b)})};
yr=function(a,b){b=void 0===b?{}:b;mr().then(function(){g.lq(a,b)})};
Jea=function(a,b){b=void 0===b?{}:b;mr().then(function(){g.lq(a,b)})};
g.zr=function(a){this.Ff=null;a?this.Ff=a:pq()&&(this.Ff=g.Fp())};
g.Hp=function(a,b,c,d){!g.K("VISITOR_DATA")&&"visitor_id"!==b&&.01>Math.random()&&g.Bo(new Oq("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady())throw a=new Oq("innertube xhrclient not ready",b,c,d),M(a),a.sampleWeight=0,a;var e={headers:{"Content-Type":"application/json"},method:"POST",dc:c,YE:"JSON",kg:function(){d.kg()},
gE:d.kg,onSuccess:function(l,m){if(d.onSuccess)d.onSuccess(m)},
Y3:function(l){if(d.onSuccess)d.onSuccess(l)},
onError:function(l,m){if(d.onError)d.onError(m)},
X3:function(l){if(d.onError)d.onError(l)},
timeout:d.timeout,withCredentials:!0};c="";var f=a.Ff.fC;f&&(c=f);f=pea(a.Ff.hC||!1,c,d);Object.assign(e.headers,f);e.headers.Authorization&&!c&&(e.headers["x-origin"]=window.location.origin);b="/youtubei/"+a.Ff.innertubeApiVersion+"/"+b;f={alt:"json"};a.Ff.gC&&e.headers.Authorization||(f.key=a.Ff.innertubeApiKey);var h=g.Wp(""+c+b,f);mr().then(function(){try{g.ro("use_fetch_for_op_xhr")?kea(h,e):g.ro("networkless_gel")&&d.retry?(e.method="POST",!d.ER&&g.ro("nwl_send_fast_on_unload")?Jea(h,e):xr(h,
e)):(e.method="POST",e.dc||(e.dc={}),g.lq(h,e))}catch(l){if("InvalidAccessError"==l.name)g.Bo(Error("An extension is blocking network request."));else throw l;}})};
g.zq=function(a,b,c){c=void 0===c?{}:c;var d=g.zr;g.K("ytLoggingEventsDefaultDisabled",!1)&&g.zr==g.zr&&(d=null);Np(a,b,d,c)};
Kea=function(){this.Hm=[];this.Rl=[]};
Br=function(){Ar||(Ar=new Kea);return Ar};
Dr=function(a,b,c,d){c+="."+a;a=Cr(b);d[c]=a;return c.length+a.length};
Cr=function(a){return("string"===typeof a?a:String(JSON.stringify(a))).substr(0,500)};
Lea=function(a){g.Er(a)};
g.Fr=function(a){g.Er(a,"WARNING")};
g.Er=function(a,b){var c=void 0===c?{}:c;c.name=g.K("INNERTUBE_CONTEXT_CLIENT_NAME",1);c.version=g.K("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0);var d=c||{};c=void 0===b?"ERROR":b;c=void 0===c?"ERROR":c;var e=void 0===e?!1:e;if(a){if(g.ro("console_log_js_exceptions")){var f=[];f.push("Name: "+a.name);f.push("Message: "+a.message);a.hasOwnProperty("params")&&f.push("Error Params: "+JSON.stringify(a.params));f.push("File name: "+a.fileName);f.push("Stacktrace: "+a.stack);window.console.log(f.join("\n"),
a)}if((window&&window.yterr||e)&&!(5<=Gr)&&0!==a.sampleWeight){var h=Uaa(a);e=h.message||"Unknown Error";f=h.name||"UnknownError";var l=h.stack||a.u||"Not available";if(g.ro("kevlar_js_fixes")&&l.startsWith(f+": "+e)){var m=l.split("\n");m.shift();l=m.join("\n")}m=h.lineNumber||"Not available";h=h.fileName||"Not available";if(a.hasOwnProperty("args")&&a.args&&a.args.length)for(var n=0,p=0;p<a.args.length;p++){var r=a.args[p],t="params."+p;n+=t.length;if(r)if(Array.isArray(r))for(var w=d,x=0;x<r.length&&
!(r[x]&&(n+=Dr(x,r[x],t,w),500<n));x++);else if("object"===typeof r)for(w in w=void 0,x=d,r){if(r[w]&&(n+=Dr(w,r[w],t,x),500<n))break}else d[t]=Cr(r),n+=d[t].length;else d[t]=Cr(r),n+=d[t].length;if(500<=n)break}else if(a.hasOwnProperty("params")&&a.params)if(r=a.params,"object"===typeof a.params)for(p in t=0,r){if(r[p]&&(n="params."+p,w=Cr(r[p]),d[n]=w,t+=n.length+w.length,500<t))break}else d.params=Cr(r);navigator.vendor&&!d.hasOwnProperty("vendor")&&(d.vendor=navigator.vendor);d={message:e,name:f,
lineNumber:m,fileName:h,stack:l,params:d};e=Number(a.columnNumber);isNaN(e)||(d.lineNumber=d.lineNumber+":"+e);e=g.q(Mea);for(f=e.next();!f.done;f=e.next())if(f=f.value,f.Vx[d.name])for(h=g.q(f.Vx[d.name]),m=h.next();!m.done;m=h.next())if(l=m.value,m=d.message.match(l.Ig)){d.params["error.original"]=m[0];h=l.groups;l={};for(p=0;p<h.length;p++)l[h[p]]=m[p+1],d.params["error."+h[p]]=m[p+1];d.message=f.LC(l);break}window.yterr&&"function"===typeof window.yterr&&window.yterr(d);if(!(Hr.has(d.message)||
0<=d.stack.indexOf("/YouTubeCenter.js")||0<=d.stack.indexOf("/mytube.js"))){"ERROR"===c?Ir.V("handleError",d):"WARNING"===c&&Ir.V("handleWarning",d);if(g.ro("kevlar_gel_error_routing")){e=c;a:{f=g.q(Nea);for(m=f.next();!m.done;m=f.next())if(Uj(m.value.toLowerCase())){f=!0;break a}f=!1}if(!f){m={stackTrace:d.stack};d.fileName&&(m.filename=d.fileName);f=d.lineNumber&&d.lineNumber.split?d.lineNumber.split(":"):[];0!==f.length&&(1!==f.length||isNaN(Number(f[0]))?2!==f.length||isNaN(Number(f[0]))||isNaN(Number(f[1]))||
(m.lineNumber=Number(f[0]),m.columnNumber=Number(f[1])):m.lineNumber=Number(f[0]));f=Br();h=d.message;l=d.name;a:{p=g.q(f.Rl);for(r=p.next();!r.done;r=p.next())if(r=r.value,d.message&&d.message.match(r.gK)){p=r.weight;break a}p=g.q(f.Hm);for(r=p.next();!r.done;r=p.next())if(r=r.value,r.callback(d)){p=r.weight;break a}p=1}h={level:"ERROR_LEVEL_UNKNOWN",message:h,errorClassName:l,sampleWeight:p};"ERROR"===e?h.level="ERROR_LEVEL_ERROR":"WARNING"===e&&(h.level="ERROR_LEVEL_WARNNING");e={isObfuscated:!0,
browserStackInfo:m};m={pageUrl:window.location.href};g.K("FEXP_EXPERIMENTS")&&(m.experimentIds=g.K("FEXP_EXPERIMENTS"));m.kvPairs=[{key:"client.params.errorServiceSignature",value:"msg="+f.Rl.length+"&cb="+f.Hm.length},{key:"client.params.serviceWorker",value:"false"}];if(f=d.params)for(l=g.q(Object.keys(f)),p=l.next();!p.done;p=l.next())p=p.value,m.kvPairs.push({key:"client."+p,value:String(f[p])});f=g.K("SERVER_NAME",void 0);l=g.K("SERVER_VERSION",void 0);f&&l&&(m.kvPairs.push({key:"server.name",
value:f}),m.kvPairs.push({key:"server.version",value:l}));g.zq("clientError",{errorMetadata:m,stackTrace:e,logMessage:h});Cp()}}if(!g.ro("suppress_error_204_logging")){e=d.params||{};c={Mh:{a:"logerror",t:"jserror",type:d.name,msg:d.message.substr(0,250),line:d.lineNumber,level:c,"client.name":e.name},dc:{url:g.K("PAGE_NAME",window.location.href),file:d.fileName},method:"POST"};e.version&&(c["client.version"]=e.version);if(c.dc){d.stack&&(c.dc.stack=d.stack);f=g.q(Object.keys(e));for(m=f.next();!m.done;m=
f.next())m=m.value,c.dc["client."+m]=e[m];if(e=g.K("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",void 0))for(f=g.q(Object.keys(e)),m=f.next();!m.done;m=f.next())m=m.value,c.dc[m]=e[m];e=g.K("SERVER_NAME",void 0);f=g.K("SERVER_VERSION",void 0);e&&f&&(c.dc["server.name"]=e,c.dc["server.version"]=f)}g.lq(g.K("ECATCHER_REPORT_HOST","")+"/error_204",c)}Hr.add(d.message);Gr++}}}};
Jr=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];a.args||(a.args=[]);a.args.push.apply(a.args,g.la(c))};
Kr=function(){this.wd=!1;this.u=null};
Lr=function(a,b,c,d){if(d)try{a.u=new window.botguard.bg(b,c?function(){return c(b)}:g.Oa)}catch(e){g.Fr(e)}else{try{a.u=new window.botguard.bg(b)}catch(e){g.Fr(e)}c&&c(b)}};
Oea=function(a){var b=Mr;a=void 0===a?{}:a;return b.u?Promise.race([new Promise(function(c,d){setTimeout(function(){return d(Error("Timed out waiting for snapshot"))},g.so("botguard_async_snapshot_timeout_ms",3E3),null)}),
new Promise(function(c){b.u.invoke(function(d){return c(d)},!0,a)})]):Promise.resolve(null)};
Nr=function(){return g.sq("CONSENT","").startsWith("YES+")};
Pr=function(){if(!g.ro("disable_ad_status_on_html5_clients")&&(!g.ro("condition_ad_status_fetch_on_consent_cookie_html5_clients")||Nr())&&"1"!=g.Rb(g.K("PLAYER_CONFIG",{}),"args","privembed")){var a=function(){Or=!0;"google_ad_status"in window?oo("DCLKSTAT",1):oo("DCLKSTAT",2)};
try{g.Oo("//static.doubleclick.net/instream/ad_status.js",a)}catch(b){}Pea.push(g.np(function(){if(!(Or||"google_ad_status"in window)){if(a){var b=""+g.Ua(a);(b=Ro[b])&&g.Ko(b)}Or=!0;oo("DCLKSTAT",3)}},5E3))}};
Rr=function(a,b){var c=g.Zb(b),d;return Hm(new wm(function(e,f){c.onSuccess=function(h){g.fq(h)?e(h):f(new Qr("Request failed, status="+eq(h),"net.badstatus",h))};
c.onError=function(h){f(new Qr("Unknown request error","net.unknown",h))};
c.kg=function(h){f(new Qr("Request timed out","net.timeout",h))};
d=g.lq(a,c)}),function(e){e instanceof Mm&&d.abort();
return Bm(e)})};
g.Sr=function(a,b,c,d){function e(h,l,m){return Hm(h,function(n){return 0>=l||403===eq(n.xhr)?Bm(new Qr("Request retried too many times","net.retryexhausted",n.xhr)):f(m).then(function(){return e(Rr(a,b),l-1,Math.pow(2,c-l+1)*m)})})}
function f(h){return new wm(function(l){setTimeout(l,h)})}
return e(Rr(a,b),c-1,d)};
Qr=function(a,b,c){$a.call(this,a+", errorCode="+b);this.errorCode=b;this.xhr=c;this.name="PromiseAjaxError"};
Tr=function(){this.Ha=0;this.u=null};
Ur=function(a){var b=new Tr;a=void 0===a?null:a;b.Ha=2;b.u=void 0===a?null:a;return b};
Vr=function(a){var b=new Tr;a=void 0===a?null:a;b.Ha=1;b.u=void 0===a?null:a;return b};
Xr=function(a){$a.call(this,a.message||a.description||a.name);this.isMissing=a instanceof Wr;this.isTimeout=a instanceof Qr&&"net.timeout"==a.errorCode;this.isCanceled=a instanceof Mm};
Wr=function(){$a.call(this,"Biscotti ID is missing from server")};
Qea=function(){if(g.ro("disable_biscotti_fetch_on_html5_clients"))return Bm(Error("Fetching biscotti ID is disabled."));if(g.ro("condition_biscotti_fetch_on_consent_cookie_html5_clients")&&!Nr())return Bm(Error("User has not consented - not fetching biscotti id."));if("1"===g.Rb(g.K("PLAYER_CONFIG",{}),"args","privembed"))return Bm(Error("Biscotti ID is not available in private embed mode"));Yr||(Yr=Hm(Rr("//googleads.g.doubleclick.net/pagead/id",Zr).then($r),function(a){return as(2,a)}));
return Yr};
$r=function(a){a=a.responseText;if(!pc(a,")]}'"))throw new Wr;a=JSON.parse(a.substr(4));if(1<(a.type||1))throw new Wr;a=a.id;Pp(a);Yr=Vr(a);bs(18E5,2);return a};
as=function(a,b){var c=new Xr(b);Pp("");Yr=Ur(c);0<a&&bs(12E4,a-1);throw c;};
bs=function(a,b){g.Co(function(){Hm(Rr("//googleads.g.doubleclick.net/pagead/id",Zr).then($r,function(c){return as(b,c)}),g.Oa)},a)};
cs=function(){try{var a=g.Na("yt.ads.biscotti.getId_");return a?a():Qea()}catch(b){return Bm(b)}};
g.es=function(){this.u=g.K("ALT_PREF_COOKIE_NAME","PREF");var a=g.sq(this.u);if(a){a=decodeURIComponent(a).split("&");for(var b=0;b<a.length;b++){var c=a[b].split("="),d=c[0];(c=c[1])&&(ds[d]=c.toString())}}};
g.gs=function(a,b){return!!((fs("f"+(Math.floor(b/31)+1))||0)&1<<b%31)};
hs=function(a){if(/^f([1-9][0-9]*)$/.test(a))throw Error("ExpectedRegexMatch: "+a);};
is=function(a){if(!/^\w+$/.test(a))throw Error("ExpectedRegexMismatch: "+a);};
fs=function(a){a=void 0!==ds[a]?ds[a].toString():null;return null!=a&&/^[A-Fa-f0-9]+$/.test(a)?parseInt(a,16):null};
Tea=function(){var a=void 0===a?window.location.href:a;if(g.ro("kevlar_disable_theme_param"))return null;var b=ud(g.wd(5,a));if(Rea(b))return"USER_INTERFACE_THEME_DARK";try{var c=g.Up(a).theme;return Sea.get(c)||null}catch(d){}return null};
Rea=function(a){var b=Uea.map(function(c){return c.toLowerCase()});
return!g.ro("disable_dark_fashion_destination_launch")&&b.some(function(c){return a.toLowerCase().startsWith(c)})?!0:!1};
js=function(a){if(a.requestFullscreen)a=a.requestFullscreen(void 0);else if(a.webkitRequestFullscreen)a=a.webkitRequestFullscreen();else if(a.mozRequestFullScreen)a=a.mozRequestFullScreen();else if(a.msRequestFullscreen)a=a.msRequestFullscreen();else if(a.webkitEnterFullscreen)a=a.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return a instanceof Promise?a:Promise.resolve()};
ms=function(a){var b;ks()?ls()==a&&(b=document):b=a;return b&&(a=Uo(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))?(b=a.call(b),b instanceof Promise?b:Promise.resolve()):Promise.resolve()};
ns=function(a){return g.jb(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})};
Vea=function(){var a=document;return g.jb(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})};
ks=function(){return!!Uo(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)};
ls=function(a){a=void 0===a?!1:a;var b=Uo(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(a)for(;b&&b.shadowRoot;)b=b.shadowRoot.fullscreenElement;return b?b:null};
os=function(a){g.B.call(this);this.G=[];this.ra=a||this};
ps=function(a,b,c,d){for(var e=0;e<c.length;e++)a.R(b,c[e],d)};
g.qs=function(a){for(;a.G.length;){var b=a.G.pop();b.target.removeEventListener(b.name,b.callback)}};
g.O=function(a){a=void 0===a?!1:a;g.B.call(this);this.qb=new g.On(a);g.C(this,this.qb)};
rs=function(a,b,c){for(var d in b)a.subscribe(d,b[d],c)};
ts=function(a,b,c){for(var d in b)a.unsubscribe(d,b[d],c)};
g.vs=function(a,b,c,d){g.O.call(this);this.C=!!b;this.G=a;this.N=c||a;this.P=!!d;this.u=new os(this);g.C(this,this.u);this.F=this.K=null;this.D=this.B=!1;b&&(g.ze&&a.setAttribute("draggable","true"),a.style.touchAction="none");us(this)};
ws=function(a,b,c){a.u.R(a.N,b,c,void 0,!a.C)};
us=function(a){a.F=null;a.K=null;ws(a,xs("over"),a.HD);ws(a,"touchstart",a.bz);a.C&&ws(a,xs("down"),a.jM)};
ys=function(a,b){for(var c=0;c<b.changedTouches.length;c++){var d=b.changedTouches[c];if(d.identifier==a.K)return d}return null};
xs=function(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a};
zs=function(a){a=a||{};var b={},c={};this.url=a.url||"";this.args=a.args||g.Zb(b);this.assets=a.assets||{};this.attrs=a.attrs||g.Zb(c);this.fallback=a.fallback||null;this.fallbackMessage=a.fallbackMessage||null;this.html5=!!a.html5;this.disable=a.disable||{};this.loaded=!!a.loaded;this.messages=a.messages||{}};
Wea=function(a){a instanceof zs||(a=new zs(a));return a};
Bs=function(){if(window.crypto&&window.crypto.getRandomValues)try{var a=Array(16),b=new Uint8Array(16);window.crypto.getRandomValues(b);for(var c=0;c<a.length;c++)a[c]=b[c];return a}catch(e){}a=Array(16);for(b=0;16>b;b++){c=g.A();for(var d=0;d<c%23;d++)a[b]=Math.random();a[b]=Math.floor(256*Math.random())}if(As)for(b=1,c=0;c<As.length;c++)a[b%16]=a[b%16]^a[(b-1)%16]/4^As.charCodeAt(c),b++;return a};
Cs=function(){for(var a=Bs(),b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
g.Ds=function(){return g.Pc(Bs(),function(a){return(a&15).toString(16)}).join("")};
Es=function(a){this.u=a};
g.Fs=function(a){return new Es({trackingParams:a})};
Gs=function(a){var b=Xea++;return new Es({veType:a,veCounter:b,elementIndex:void 0,dataElement:void 0,youtubeData:void 0})};
Hs=function(a){a=void 0===a?0:a;return 0==a?"client-screen-nonce":"client-screen-nonce."+a};
Is=function(a){a=void 0===a?0:a;return 0==a?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+a};
Js=function(a){return g.K(Is(void 0===a?0:a),void 0)};
g.Ks=function(a){return(a=Js(void 0===a?0:a))?new Es({veType:a,youtubeData:void 0}):null};
Ls=function(){var a=g.K("csn-to-ctt-auth-info");a||(a={},oo("csn-to-ctt-auth-info",a));return a};
g.Ms=function(a){a=void 0===a?0:a;var b=g.K(Hs(a));if(!b&&!g.K("USE_CSN_FALLBACK",!0))return null;b||0!=a||(g.ro("kevlar_client_side_screens")||g.ro("c3_client_side_screens")?b="UNDEFINED_CSN":b=g.K("EVENT_ID"));return b?b:null};
Yea=function(a,b,c){var d=Ls();(c=g.Ms(c))&&delete d[c];b&&(d[a]=b)};
Ns=function(a){return Ls()[a]};
Ps=function(a,b,c,d){c=void 0===c?0:c;if(a!==g.K(Hs(c))||b!==g.K(Is(c)))if(Yea(a,d,c),oo(Hs(c),a),oo(Is(c),b),0==c||g.ro("web_screen_associated_all_layers"))b=function(){setTimeout(function(){a&&Np("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:Os,clientScreenNonce:a},g.zr)},0)},"requestAnimationFrame"in window?window.requestAnimationFrame(b):b()};
Qs=function(a,b){this.version=a;this.args=b};
Rs=function(a,b){this.topic=a;this.u=b};
Ts=function(a,b){var c=Ss();c&&c.publish.call(c,a.toString(),a,b)};
$s=function(a,b,c){var d=Ss();if(!d)return 0;var e=d.subscribe(a.toString(),function(f,h){var l=g.Na("ytPubsub2Pubsub2SkipSubKey");l&&l==e||(l=function(){if(Us[e])try{if(h&&a instanceof Rs&&a!=f)try{var m=a.u,n=h;if(!n.args||!n.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!m.Uk){var p=new m;m.Uk=p.version}var r=m.Uk}catch(t){}if(!r||n.version!=r)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{h=Reflect.construct(m,
g.ub(n.args))}catch(t){throw t.message="yt.pubsub2.Data.deserialize(): "+t.message,t;}}catch(t){throw t.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+a.toString()+": "+t.message,t;}b.call(c||window,h)}catch(t){M(t)}},Ys[a.toString()]?g.pp()?g.np(l):g.Co(l,0):l())});
Us[e]=!0;Zs[a.toString()]||(Zs[a.toString()]=[]);Zs[a.toString()].push(e);return e};
bt=function(a,b,c){var d=$s(a,function(e){b.apply(c,arguments);at(d)},c);
return d};
at=function(a){var b=Ss();b&&("number"===typeof a&&(a=[a]),g.Fb(a,function(c){b.unsubscribeByKey(c);delete Us[c]}))};
Ss=function(){return g.Na("ytPubsub2Pubsub2Instance")};
ct=function(a){Qs.call(this,1,arguments);this.csn=a};
g.et=function(a,b,c,d){c={csn:b,parentVe:c.getAsJson(),childVes:g.Pc(d,function(f){return f.getAsJson()})};
d=g.q(d);for(var e=d.next();!e.done;e=d.next())e=e.value.getAsJson(),(g.Wb(e)||!e.trackingParams&&!e.veType)&&g.Fr(Error("Child VE logged with no data"));d={Yh:Ns(b),Hj:b};"UNDEFINED_CSN"==b?dt("visualElementAttached",c,d):a?Np("visualElementAttached",c,a,d):g.zq("visualElementAttached",c,d)};
g.ft=function(a,b,c){var d=g.ro("use_default_events_client")?void 0:g.zr;b={csn:a,ve:b.getAsJson(),eventType:1};c&&(b.clientData=c);c={Yh:Ns(a),Hj:a};"UNDEFINED_CSN"==a?dt("visualElementShown",b,c):d?Np("visualElementShown",b,d,c):g.zq("visualElementShown",b,c)};
gt=function(a,b,c,d,e){var f=(d=void 0===d?!1:d)?16:8;c={csn:b,ve:c.getAsJson(),eventType:f};e&&(c.clientData=e);d={Yh:Ns(b),Hj:b,FI:d};"UNDEFINED_CSN"==b?dt("visualElementHidden",c,d):a?Np("visualElementHidden",c,a,d):g.zq("visualElementHidden",c,d)};
ht=function(a,b,c,d){var e="INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";c={csn:b,ve:c.getAsJson(),gestureType:e};d&&(c.clientData=d);d={Yh:Ns(b),Hj:b};"UNDEFINED_CSN"==b?dt("visualElementGestured",c,d):a?Np("visualElementGestured",c,a,d):g.zq("visualElementGestured",c,d)};
Zea=function(){return g.qf(Math.random()+"")};
dt=function(a,b,c){it.push({payloadName:a,payload:b,options:c});jt||(jt=bt(kt,$ea))};
$ea=function(a){if(it){for(var b=g.q(it),c=b.next();!c.done;c=b.next())c=c.value,c.payload&&(c.payload.csn=a.csn,Np(c.payloadName,c.payload,null,c.options));it.length=0}jt=0};
g.lt=function(a,b,c){g.et(g.ro("use_default_events_client")?void 0:g.zr,a,b,[c])};
g.mt=function(a,b){var c=g.ro("use_default_events_client")?void 0:g.zr;g.Fb(b,function(d){d={csn:a,ve:d.getAsJson(),eventType:4};var e={Yh:Ns(a),Hj:a};"UNDEFINED_CSN"==a?dt("visualElementShown",d,e):c?Np("visualElementShown",d,c,e):g.zq("visualElementShown",d,e)})};
g.nt=function(a,b){var c=g.ro("use_default_events_client")?void 0:g.zr;g.Fb(b,function(d){gt(c,a,d,void 0,void 0)})};
g.ot=function(a,b,c){ht(g.ro("use_default_events_client")?void 0:g.zr,a,b,c)};
pt=function(){this.B=new Set;this.u=new Set;this.C=new Map};
g.tt=function(a,b,c){var d=c&&0<c?c:0;c=d?g.A()+1E3*d:0;if((d=d?(0,g.qt)():rt())&&window.JSON){"string"!==typeof b&&(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}};
g.ut=function(a){var b=rt(),c=(0,g.qt)();if(!b&&!c||!window.JSON)return null;try{var d=b.get(a)}catch(e){}if("string"!==typeof d)try{d=c.get(a)}catch(e){}if("string"!==typeof d)return null;try{d=JSON.parse(d,void 0)}catch(e){}return d};
g.vt=function(a){try{var b=rt(),c=(0,g.qt)();b&&b.remove(a);c&&c.remove(a)}catch(d){}};
g.wt=function(){return g.ut("yt-remote-session-screen-id")};
g.zt=function(a,b,c,d,e){e=void 0===e?"":e;if(a)if(c&&!g.Xj())a&&(a=g.Gc(g.Kc(a)),"about:invalid#zClosurez"===a||a.startsWith("data")?a="":(a=g.cd(ed(a)).toString(),a=ld(g.Cj(a))),g.rc(a)||(a=g.De("IFRAME",{src:'javascript:"<body><img src=\\""+'+a+'+"\\"></body>"',style:"display:none"}),ke(a).body.appendChild(a)));else if(e)mq(a,b,"POST",e,d);else if(g.K("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d)mq(a,b,"GET","",d);else{b:{try{var f=new iaa({url:a});if(f.C&&f.B||f.D){var h=ud(g.wd(5,a));var l=!(!h||
!h.endsWith("/aclk")||"1"!==Md(a,"ri"));break b}}catch(m){}l=!1}l?xt(a)?(b&&b(),c=!0):c=!1:c=!1;c||afa(a,b)}};
At=function(a,b,c){c=void 0===c?"":c;xt(a,c)?b&&b():g.zt(a,b,void 0,void 0,c)};
xt=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1};
afa=function(a,b){var c=new Image,d=""+bfa++;Bt[d]=c;c.onload=c.onerror=function(){b&&Bt[d]&&b();delete Bt[d]};
c.src=a};
Et=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];if(!Ct(a)||c.some(function(e){return!Ct(e)}))throw Error("Only objects may be merged.");
c=g.q(c);for(d=c.next();!d.done;d=c.next())Dt(a,d.value);return a};
Dt=function(a,b){for(var c in b)if(Ct(b[c])){if(c in a&&!Ct(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});Dt(a[c],b[c])}else if(Ft(b[c])){if(c in a&&!Ft(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);Gt(a[c],b[c])}else a[c]=b[c];return a};
Gt=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next())d=d.value,Ct(d)?a.push(Dt({},d)):Ft(d)?a.push(Gt([],d)):a.push(d);return a};
Ct=function(a){return"object"===typeof a&&!Array.isArray(a)};
Ft=function(a){return"object"===typeof a&&Array.isArray(a)};
Ht=function(a,b,c,d,e,f){this.startSecs=a;this.durationSecs=b;this.context=c;this.identifier=d;this.event=e;this.u=f};
Jt=function(a,b){this.data=a;this.uri=b||"http://youtube.com/streaming/metadata/segment/102015";this.u=It(this,"Sequence-Number");this.G=It(this,"Segment-Count");this.K=this.data["Segment-Durations-Ms"]||"";this.ingestionTime=It(this,"Ingestion-Walltime-Us")/1E6;this.B=(It(this,"First-Frame-Time-Us")+It(this,"First-Frame-Uncertainty-Us"))/1E6;this.Kg=It(this,"Target-Duration-Us")/1E6;this.F="T"===this.data["Stream-Finished"];this.C="T"===this.data.Streamable;this.cryptoPeriodIndex=It(this,"Crypto-Period-Index");
this.D=It(this,"Crypto-Period-Seconds")};
Kt=function(a){return Number(a.data["Start-Media-Time-Us"])/1E6||0};
It=function(a,b){return Number(a.data[b])||0};
Lt=function(a,b,c,d,e,f,h,l,m){this.jb=a;this.startTime=b;this.duration=c;this.ingestionTime=d;this.sourceURL=e;this.B=void 0===m?null:m;this.endTime=b+c;this.u=h||0;this.range=f||null;this.pending=l||!1};
Mt=function(a,b){this.start=a;this.end=b;this.length=b-a+1};
Nt=function(a){a=a.split("-");var b=Number(a[0]),c=Number(a[1]);return isNaN(b)||isNaN(c)?null:2===a.length&&(a=new Mt(b,c),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0<a.length)?a:null};
Ot=function(a,b){return new Mt(a,a+b-1)};
Rt=function(a,b,c,d,e,f,h,l,m,n,p){this.u=b;this.range=c;this.type=a;this.P="";this.B=-1;this.P=d;this.B=0<=e?e:-1;this.startTime=f||0;this.duration=h||0;this.C=l||0;this.kb=0<=m?m:this.range?this.range.length:NaN;this.F=!!n;a=this.range?this.C+this.kb==this.range.length:void 0===p?!!this.kb:p;this.D=a;this.range?(this.K=this.startTime+this.duration*this.C/this.range.length,this.N=this.duration*this.kb/this.range.length,this.G=this.K+this.N):Pt(this);this.W=[];3!=this.type||0<=this.B||!this.u.We()||
g.Fr(new Oq("b168859904",Qt(this)))};
Pt=function(a){a.K=a.startTime;a.N=a.duration;a.G=a.K+a.N};
cfa=function(a,b,c){var d=!(!b||b.u!=a.u||b.type!=a.type||b.B!=a.B);return c?d&&!!b&&(a.range&&b.range?b.range.end==a.range.end:b.range==a.range)&&b.C+b.kb==a.C+a.kb:d};
St=function(a){return 1==a.type||2==a.type};
Tt=function(a){return 3==a.type||6==a.type};
Ut=function(a,b){return a.u==b.u?a.range&&b.range?a.range.start+a.C+a.kb==b.range.start+b.C:a.B==b.B?a.C+a.kb==b.C:a.B+1==b.B&&0==b.C&&a.D:!1};
Vt=function(a,b){return Ut(a,b)||ce(a.G,b.K)||a.B+1==b.B&&0==b.C&&a.D?!0:!1};
Wt=function(a){return a.B+(a.D?1:0)};
dfa=function(a){1==a.length||g.gh(a,function(c){return!!c.range});
for(var b=1;b<a.length;b++);b=a[a.length-1];return new Mt(a[0].range.start+a[0].C,b.range.start+b.C+b.kb-1)};
Qt=function(a){a=Xt(a);var b="";g.Ib(a,function(c,d){b+=d+"_"+c+"_"});
return b.slice(0,-1)};
Xt=function(a){var b={};b.itag=Yt(a.u.info);b.type=a.type;b.seg=String(a.B);a.range&&(b.range=""+(a.range.start+a.C)+"-"+(a.range.start+a.C+a.kb-1));b.time=""+a.K.toFixed(1)+"-"+(a.K+a.N).toFixed(1);b.off=String(a.C);b.len=String(a.kb);a.D&&(b.end="1");a.F&&(b.eos="1");return b};
Zt=function(a,b){var c=b.u;a.P="updateWithEmsg";a.B=c;b.F&&(a.F=b.F)};
$t=function(a,b){var c=b.jb;a.P="updateWithSegmentInfo";a.B=c;if(a.startTime!=b.startTime||a.duration!=b.duration)a.startTime=b.startTime,a.duration=b.duration,Pt(a)};
au=function(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b};
bu=function(a){return String.fromCharCode.apply(null,a)};
cu=function(a,b,c,d,e){e=void 0===e?!1:e;this.data=a;this.offset=b;this.size=c;this.type=d;this.u=(this.B=e)?0:8;this.dataOffset=this.offset+this.u};
du=function(a){var b=a.data.getUint8(a.offset+a.u);a.u+=1;return b};
eu=function(a){var b=a.data.getUint16(a.offset+a.u);a.u+=2;return b};
fu=function(a){var b=a.data.getInt32(a.offset+a.u);a.u+=4;return b};
gu=function(a){var b=a.data.getUint32(a.offset+a.u);a.u+=4;return b};
hu=function(a){var b=a.data;var c=a.offset+a.u;b=4294967296*b.getUint32(c)+b.getUint32(c+4);a.u+=8;return b};
iu=function(a,b){b=void 0===b?NaN:b;if(isNaN(b))var c=a.size;else for(c=a.u;c<a.size&&a.data.getUint8(a.offset+c)!==b;)++c;var d=new Uint8Array(a.data.buffer,a.offset+a.u+a.data.byteOffset,c-a.u);a.u=Math.min(c+1,a.size);return bu(d)};
efa=function(a){this.offset=0;this.data=new DataView(new ArrayBuffer(a))};
ju=function(a,b,c,d){(new Uint8Array(a.data.buffer,a.offset,d)).set(new Uint8Array(b.buffer,c+b.byteOffset,d));a.offset+=d};
ffa=function(a,b){this.u=a;this.duration=b};
ku=function(a,b,c,d,e){this.B=e;this.u=a||0;this.pitch=b||0;this.yaw=c||0;this.roll=d||0;e.getUint32(4)};
lu=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};
nu=function(a,b){var c=g.mu(a,0,1952868452),d=g.mu(a,0,1953658222);if(c&&d){c.skip(1);var e=du(c)<<16|eu(c);c.skip(4);e&1&&c.skip(8);e&2&&c.skip(4);if(e&8){e=c.u;var f=gu(c);c.data.setUint32(c.offset+e,1<b?Math.ceil(f*b):Math.floor(f*b))}d.skip(1);c=du(d)<<16|eu(d);if(c&256){e=c&1;f=c&4;var h=c&512,l=c&1024,m=c&2048;c=gu(d);e&&d.skip(4);f&&d.skip(4);e=(h?4:0)+(l?4:0)+(m?4:0);for(f=0;f<c;f++)h=d.u,l=gu(d),d.data.setUint32(d.offset+h,1<b?Math.ceil(l*b):Math.floor(l*b)),d.skip(e)}}};
pu=function(a){a=new DataView(a.buffer,a.byteOffset,a.byteLength);return(a=g.mu(a,0,1836476516))?ou(a):NaN};
gfa=function(a){var b=g.mu(a,0,1937011556);if(!b)return null;b=qu(a,b.dataOffset+8,1635148593);if(!b)return null;var c=qu(a,b.dataOffset+78,1936995172),d=qu(a,b.dataOffset+78,1937126244);if(!d)return null;b=null;if(c)switch(c.skip(4),du(c)){default:b=0;break;case 1:b=2;break;case 2:b=1;break;case 3:b=255}var e=c=null,f=null;if(d=qu(a,d.dataOffset,1886547818)){var h=qu(a,d.dataOffset,1886546020),l=qu(a,d.dataOffset,2037673328);if(!l&&(l=qu(a,d.dataOffset,1836279920),!l))return null;h&&(h.skip(4),c=
fu(h)/65536,f=fu(h)/65536,e=fu(h)/65536);a=new DataView(l.data.buffer,l.dataOffset,l.size-8);return new ku(b,c,f,e,a)}return null};
qu=function(a,b,c){for(;ru(a,b);){var d=tu(a,b);if(d.type===c)return d;b+=d.size}return null};
g.mu=function(a,b,c){for(;ru(a,b);){var d=tu(a,b);if(d.type===c)return d;b=uu(d.type)?b+8:b+d.size}return null};
vu=function(a){if(a.data.getUint8(a.dataOffset)){var b=a.data;a=a.dataOffset+4;return 4294967296*b.getUint32(a)+b.getUint32(a+4)}return a.data.getUint32(a.dataOffset+4)};
tu=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new cu(a,b,c,d)};
ou=function(a){var b=a.data.getUint8(a.dataOffset)?20:12;return a.data.getUint32(a.dataOffset+b)};
wu=function(a){a=new cu(a.data,a.offset,a.size,a.type,a.B);var b=du(a);a.skip(7);var c=gu(a);if(0===b){b=gu(a);var d=gu(a)}else b=hu(a),d=hu(a);a.skip(2);for(var e=eu(a),f=[],h=[],l=0;l<e;l++){var m=gu(a);f.push(m);h.push(gu(a));a.skip(4)}return{ru:c,DI:b,iB:d,my:f,pu:h}};
ru=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};
uu=function(a){return 1701082227===a||1836019558===a||1836019574===a||1835297121===a||1835626086===a||1937007212===a||1953653094===a||1953653099===a||1836475768===a};
xu=function(a){a.skip(4);return{B:iu(a,0),value:iu(a,0),ru:gu(a),D:gu(a),C:gu(a),id:gu(a),u:iu(a),offset:a.offset}};
yu=function(a,b){for(var c=qu(a,0,b);c;)c.markAsSkip(),c=qu(a,c.offset+c.size,b)};
zu=function(a,b){for(var c=0,d=[];ru(a,c);){var e=tu(a,c);e.type===b&&d.push(e);c=uu(e.type)?c+8:c+e.size}return d};
hfa=function(a,b){var c=g.mu(a,0,1937011556),d=g.mu(a,0,1953654136);if(!c||!d||2<=a.getUint32(c.offset+12))return null;var e=new DataView(b.buffer,b.byteOffset,b.length),f=g.mu(e,0,1937011556);if(!f)return null;d=e.getUint32(f.dataOffset+8);var h=e.getUint32(f.dataOffset+12);if(1701733217!==h&&1701733238!==h)return null;h=new efa(a.byteLength+d);ju(h,a,0,c.offset+12);h.data.setInt32(h.offset,2);h.offset+=4;ju(h,a,c.offset+16,c.size-16);ju(h,e,e.byteOffset+f.dataOffset+8,d);ju(h,a,c.offset+c.size,
a.byteLength-(c.offset+c.size));c=g.q([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(e=c.next();!e.done;e=c.next())e=g.mu(a,0,e.value),h.data.setUint32(e.offset,e.size+d);if(Au)return h.data;d=g.mu(h.data,0,1953654136);h.data.setUint32(d.offset+16,2);return h.data};
Bu=function(a,b){this.B=a;this.u=0;this.start=b||0};
Cu=function(a){return a.u>=a.B.byteLength};
Iu=function(a,b,c){var d=new Bu(c);if(!Du(d,a))return!1;d=Eu(d);if(!Fu(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.start+d.u;var e=Gu(d,!0);d=a+(d.start+d.u-b)+e;d=9<d?Hu(d-9,8):Hu(d-2,1);a=b-a;c.setUint8(a++,236);for(b=0;b<d.length;b++)c.setUint8(a++,d[b]);return!0};
ifa=function(a){var b=new Bu(a);Ju(b);if(Du(b,[408125543,374648427,174,224]))b=Eu(b);else return null;for(var c=a=null;!Cu(b);){var d=Gu(b,!1);if(21432===d)switch(Ku(b)){default:a=0;break;case 1:a=1;break;case 3:a=2;break;case 15:a=255}else 30320===d?c=Eu(b):Lu(b)}if(!c)return null;for(var e,f=d=b=null;!Cu(c);)switch(Gu(c,!1)){case 30321:if(3!==Ku(c))return null;break;case 30324:b=Mu(c);break;case 30323:f=Mu(c);break;case 30325:d=Mu(c);break;case 30322:e=Gu(c,!0);e=Nu(c,e);e=new DataView(e.buffer,
e.byteOffset,e.byteLength);break;default:Lu(c)}return e?new ku(a,b,f,d,e):null};
Eu=function(a){var b=Gu(a,!0),c=a.B.byteOffset+a.u;c=new DataView(a.B.buffer,c,Math.min(b,a.B.buffer.byteLength-c));c=new Bu(c,a.start+a.u);a.u+=b;return c};
Ku=function(a){for(var b=Gu(a,!0),c=Ou(a),d=1;d<b;d++)c=256*c+Ou(a);return c};
Mu=function(a){var b=Gu(a,!0),c=0;4===b?c=a.B.getFloat32(a.u):8===b&&(c=a.B.getFloat64(a.u));a.u+=b;return c};
Pu=function(a){var b=Gu(a,!0);return bu(Nu(a,b))};
Ou=function(a){return a.B.getUint8(a.u++)};
Gu=function(a,b){var c=Ou(a);if(1===c){for(var d=c=0;7>d;d++)c=256*c+Ou(a);return c}d=128;for(var e=0;6>e&&d>c;e++)c=256*c+Ou(a),d*=128;return b?c-d:c};
Lu=function(a){var b=Gu(a,!0);a.u+=b};
Ju=function(a){var b=a.u;a.u=0;var c=!1;try{Fu(a,440786851)&&(a.u=0,Fu(a,408125543)&&(c=!0))}catch(d){if(d instanceof RangeError)a.u=0,c=!1,g.Bo(d);else throw d;}a.u=b;return c};
jfa=function(a){if(!Fu(a,440786851,!0))return null;var b=a.u;Gu(a,!1);var c=Gu(a,!0)+a.u-b;a.u=b+c;if(!Fu(a,408125543,!1))return null;Gu(a,!0);if(!Fu(a,357149030,!0))return null;var d=a.u;Gu(a,!1);var e=Gu(a,!0)+a.u-d;a.u=d+e;if(!Fu(a,374648427,!0))return null;var f=a.u;Gu(a,!1);var h=Gu(a,!0)+a.u-f,l=new Uint8Array(c+12+e+h),m=new DataView(l.buffer);l.set(new Uint8Array(a.B.buffer,a.B.byteOffset+b,c));m.setUint32(c,408125543);m.setUint32(c+4,33554431);m.setUint32(c+8,4294967295);l.set(new Uint8Array(a.B.buffer,
a.B.byteOffset+d,e),c+12);l.set(new Uint8Array(a.B.buffer,a.B.byteOffset+f,h),c+12+e);return l};
Qu=function(a){var b=a.u,c={Py:1E6,Qy:1E9,duration:0,uy:0,iq:0};if(!Fu(a,408125543))return a.u=b,null;c.uy=Gu(a,!0);c.iq=a.start+a.u;if(Fu(a,357149030))for(var d=Eu(a);!Cu(d);){var e=Gu(d,!1);2807729===e?c.Py=Ku(d):2807730===e?c.Qy=Ku(d):17545===e?c.duration=Mu(d):Lu(d)}else return a.u=b,null;a.u=b;return c};
Su=function(a,b,c){var d=a.u,e=[];if(!Fu(a,475249515))return a.u=d,null;for(var f=Eu(a);Fu(f,187);){var h=Eu(f);if(Fu(h,179)){var l=Ku(h);if(Fu(h,183)){h=Eu(h);for(var m=b;Fu(h,241);)m=Ku(h)+b;e.push({pl:m,wr:l})}}}if(0<e.length&&c===e[0].pl)for(Ru&&g.Bo(Error("opus_oboe")),b=0;b<e.length;b++)e[b].pl+=1;a.u=d;return e};
Tu=function(a){var b=a.u;a.u=0;var c=1E6;Du(a,[408125543,357149030,2807729])&&(c=Ku(a));a.u=b;return c};
kfa=function(a,b){var c=a.u;a.u=0;if(160!==a.B.getUint8(a.u)&&!Uu(a)||!Fu(a,160))return a.u=c,NaN;Gu(a,!0);var d=a.u;if(!Fu(a,161))return a.u=c,NaN;Gu(a,!0);Ou(a);var e=Ou(a)<<8|Ou(a);a.u=d;if(!Fu(a,155))return a.u=c,NaN;d=Ku(a);a.u=c;return(e+d)*b/1E9};
Uu=function(a){if(!Vu(a)||!Fu(a,524531317))return!1;Gu(a,!0);return!0};
Vu=function(a){if(Ju(a)){if(!Fu(a,408125543))return!1;Gu(a,!0)}return!0};
Du=function(a,b){for(var c=0;c<b.length;c++){if(!Fu(a,b[c]))return!1;c!==b.length-1&&Gu(a,!0)}return!0};
Fu=function(a,b,c){c=void 0===c?!1:c;if(Cu(a))return!1;for(var d=a.u;Gu(a,!1)!==b;)if(Lu(a),d=a.u,Cu(a))return!1;c&&(a.u=d);return!0};
Hu=function(a,b){b||(b=Math.ceil(Math.log(a+2)/Math.log(2)/7));for(var c=1<<8-b,d=[];d.length<b-1;)d.unshift(a%256),a=Math.floor(a/256);d.unshift(a|c);return d};
Nu=function(a,b){var c=new Uint8Array(a.B.buffer,a.B.byteOffset+a.u,b);a.u+=b;return c};
Wu=function(a){var b=this;a=void 0===a?[]:a;this.u=[];this.C=this.B=0;this.D=void 0;this.totalLength=0;a.forEach(function(c){b.append(c)})};
Xu=function(a,b){if(0===a.u.length)return!1;var c=a.u[a.u.length-1];return c&&c.buffer===b.buffer&&c.byteOffset+c.length===b.byteOffset};
Yu=function(a,b){for(var c=g.q(b.u),d=c.next();!d.done;d=c.next())a.append(d.value)};
Zu=function(a){a.D=void 0;a.B=0;a.C=0};
$u=function(a,b,c){a.isFocused(b);return b-a.C+c<=a.u[a.B].length};
av=function(a){if(!a.D){var b=a.u[a.B];a.D=new DataView(b.buffer,b.byteOffset,b.length)}return a.D};
bv=function(a,b,c){b=void 0===b?0:b;c=void 0===c?-1:c;if(!a.totalLength)return new DataView(new ArrayBuffer(0));0>c&&(c=a.totalLength-b);a.focus(b);if(!$u(a,b,c)){var d=a.B,e=a.C;a.focus(b+c-1);e=new Uint8Array(a.C+a.u[a.B].length-e);for(var f=0,h=d;h<=a.B;h++)e.set(a.u[h],f),f+=a.u[h].length;a.u.splice(d,a.B-d+1,e);Zu(a);a.focus(b)}d=a.u[a.B];return new DataView(d.buffer,d.byteOffset+b-a.C,c)};
cv=function(a,b,c){a=bv(a,void 0===b?0:b,void 0===c?-1:c);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)};
dv=function(a){a=cv(a,0,-1);var b=new Uint8Array(a.length);try{b.set(a)}catch(d){for(var c=0;c<a.length;c++)b[c]=a[c]}return b};
ev=function(a,b){a.focus(b);return a.u[a.B][b-a.C]};
fv=function(a,b){a.focus(b);return $u(a,b,4)?av(a).getUint32(b-a.C):256*(256*(256*ev(a,b)+ev(a,b+1))+ev(a,b+2))+ev(a,b+3)};
gv=function(a,b,c){this.info=a;this.u=b instanceof Wu?b:new Wu([b]);this.u.getLength();this.C=c;this.B=null;this.D=-1;this.F=0};
hv=function(a){return bv(a.u)};
iv=function(a,b){if(1!=a.info.u.info.containerType||0!=a.info.C||!a.info.D)return!0;for(var c=hv(a),d=0,e=0;d+4<c.byteLength;){e=c.getUint32(d);if(!e)return!1;d+=e}return d!==c.byteLength?(b&&(b.lastboxlen=e.toString(),4<=c.byteLength&&(b.lastbytes=c.getUint32(c.byteLength-4).toString()),b.boxlen=d.toString(),b.bytelen=c.byteLength.toString()),!1):!0};
jv=function(a,b,c){var d;if(!(d=!Ut(a.info,b.info)||a.info.D)){if(c=void 0===c?!1:c)c=b.u,c=!(c.u.length?Xu(a.u,c.u[0]):1);d=c}if(d)return null;c=new Rt(a.info.type,a.info.u,a.info.range,a.info.P,a.info.B,a.info.startTime,a.info.duration,a.info.C,a.info.kb,a.info.F,a.info.D);d=b.info;c.kb+=d.kb;c.range&&(c.N+=d.N);c.G=d.G;c.D=d.D;c.F=c.F||d.F;d=new Wu;Yu(d,a.u);Yu(d,b.u);c=new gv(c,d,a.C);c.B=b.B||a.B;if(a=c.info.range)a=c.u,a=!(1===a.u.length&&0<a.u[0].byteOffset);a&&(c.C=!1);return c};
lv=function(a){g.kv(a.info.u.info)||a.info.u.info.Jd();if(-1!=a.D)return a.D;if(a.B&&Kt(a.B))return a.D=Kt(a.B),a.D;if(g.kv(a.info.u.info)){var b=hv(a);for(var c=a.info.u.u,d=NaN,e=NaN,f=0;ru(b,f);){var h=tu(b,f);1936286840===h.type?e=h.data.getUint32(h.dataOffset+8):1836476516===h.type?e=ou(h):1952867444===h.type&&isNaN(d)&&(d=vu(h));f=uu(h.type)?f+8:f+h.size}!e&&c&&(e=pu(c));b=d/e}else b=new Bu(hv(a)),c=a.C?b:new Bu(new DataView(a.info.u.u.buffer)),d=Tu(c),c=b.u,b.u=0,Uu(b)?Fu(b,231)?(d=Ku(b)*d/
1E9,b.u=c,b=d):(b.u=c,b=NaN):(b.u=c,b=NaN);a.D=b||a.info.K;return a.D};
nv=function(a,b){0<a.F&&(b-=a.F);var c=lv(a)+b;mv(a,c);a.F=b};
mv=function(a,b){g.kv(a.info.u.info)||a.info.u.info.Jd();a.D=b;if(g.kv(a.info.u.info)){for(var c=hv(a),d=a.info.u.u,e=NaN,f=NaN,h=0;ru(c,h);){var l=tu(c,h);isNaN(e)&&(1936286840===l.type?e=l.data.getUint32(l.dataOffset+8):1836476516===l.type&&(e=ou(l)));if(1952867444===l.type){!e&&d&&(e=pu(d));var m=vu(l);isNaN(f)&&(f=Math.round(b*e)-m);m+=f;if(l.data.getUint8(l.dataOffset)){var n=l.data,p=l.dataOffset+4;n.setUint32(p,Math.floor(m/4294967296));n.setUint32(p+4,m&4294967295)}else l.data.setUint32(l.dataOffset+
4,m)}h=uu(l.type)?h+8:h+l.size}return!0}c=new Bu(hv(a));e=a.C?c:new Bu(new DataView(a.info.u.u.buffer));d=b;f=Tu(e);e=c.u;c.u=0;if(Uu(c)&&Fu(c,231))if(h=Gu(c,!0),d=Math.floor(1E9*d/f),Math.ceil(Math.log(d)/Math.log(2)/8)>h)c=!1;else{for(f=h-1;0<=f;f--)c.B.setUint8(c.u+f,d&255),d>>>=8;c.u=e;c=!0}else c=!1;return c};
ov=function(a){g.kv(a.info.u.info)||a.info.u.info.Jd();if(a.B&&6==a.info.type)return a.B.Kg;if(g.kv(a.info.u.info)){var b=hv(a);var c=0;b=zu(b,1936286840);b=g.q(b);for(var d=b.next();!d.done;d=b.next())d=wu(d.value),c+=d.pu[0]/d.ru;c=c||NaN;if(!(0<=c))a:{c=hv(a);b=a.info.u.u;for(var e=d=0,f=0;ru(c,d);){var h=tu(c,d);if(1836476516===h.type)e=ou(h);else if(1836019558===h.type){!e&&b&&(e=pu(b));if(!e){c=NaN;break a}var l=qu(h.data,h.dataOffset,1953653094),m=e,n=qu(l.data,l.dataOffset,1952868452);l=qu(l.data,
l.dataOffset,1953658222);var p=fu(n);fu(n);p&2&&fu(n);n=p&8?fu(n):0;var r=fu(l),t=r&1;p=r&4;var w=r&256,x=r&512,y=r&1024;r&=2048;var D=gu(l);t&&fu(l);p&&fu(l);for(var E=t=0;E<D;E++){var G=w?fu(l):n;x&&fu(l);p&&0===E||!y||fu(l);r&&fu(l);t+=G}f+=t/m}d=uu(h.type)?d+8:d+h.size}c=f||NaN}}else c=new Bu(hv(a)),b=a.C?c:new Bu(new DataView(a.info.u.u.buffer)),c=kfa(c,Tu(b));return c||a.info.N};
pv=function(a){var b=hv(a);var c=(c=g.mu(b,0,1936286840))?c.data.getUint32(c.dataOffset+8):NaN;isNaN(c)&&(a=a.info.u.u,c=(b=g.mu(b,0,1836476516))?ou(b):a?pu(a):NaN);return c};
qv=function(a){if(!a.B){g.kv(a.info.u.info)||a.info.u.info.Jd();if(g.kv(a.info.u.info)){var b=hv(a),c=qu(b,0,1701671783);if(c){var d=xu(c);var e=d.B;d=lu(d.u);if(b=qu(b,c.offset+c.size,1701671783))if(b=xu(b),b=lu(b.u),d&&b){c=g.q(Object.keys(b));for(var f=c.next();!f.done;f=c.next())f=f.value,d[f]=b[f]}e=d?new Jt(d,e):null}else e=null}else{e=new Bu(hv(a));d=e.u;e.u=0;c=b=null;if(Du(e,[408125543,307544935,29555,26568]))for(f=Eu(e);!Cu(f);){var h=Gu(f,!1);17543===h?c=lu(Pu(f)):17827===h?b=Pu(f):Lu(f)}e.u=
d;e=c?new Jt(c,b):null}a.B=e}};
tv=function(a){a=a.split("");rv.U0(a,62);rv.m0(a,30);rv.fe(a,1);rv.U0(a,67);return a.join("")};
uv=function(a,b,c,d){!a&&(void 0===c?0:c)&&g.Fr(Error("Player URL validator detects invalid url. "+(void 0===d?"":d)+": "+b));return a};
vv=function(a,b){return b&&b.test(a)?!0:!1};
xv=function(a){return(a=wv&&wv.exec(a))?a[0]:""};
yv=function(a){var b=void 0===b?!1:b;return uv(vv(a,lfa),a,b,"Trusted Stream URL")};
g.zv=function(a){var b=void 0===b?!1:b;return uv(vv(a,mfa),a,b,"Trusted Image URL")};
Av=function(a){var b=void 0===b?!1:b;return uv(vv(a,nfa),a,b,"Trusted Promoted Video Domain URL")};
pfa=function(a){var b=void 0===b?!1:b;return uv(vv(a,ofa),a,b,"Drm Licensor URL")};
Bv=function(a,b){b=void 0===b?!1:b;return uv(vv(a,qfa),a,b,"Captions URL")};
Cv=function(a){a=new g.Vm(a);g.Wm(a,document.location.protocol);g.Xm(a,document.location.hostname);document.location.port&&g.Ym(a,document.location.port);return a.toString()};
Dv=function(a){a=new g.Vm(a);g.Wm(a,document.location.protocol);return a.toString()};
Ev=function(a,b){this.B=a;this.D=void 0===b?!1:b;this.C=this.path=this.scheme="";this.u={};this.url=""};
Gv=function(a){Fv(a);return a.C};
Hv=function(a){return a.B?pc(a.B,"local"):"local"===a.scheme};
Iv=function(a){Fv(a);return g.Mb(a.u,function(b){return null!==b})};
Jv=function(a){Fv(a);if("/videoplayback"!==a.path){var b=a.clone();b.set("playerfallback","1");return b}var c=a.rd();b=new g.Vm(c);var d=a.get("fvip");a=decodeURIComponent(a.get("mn")||"").split(",");if(d&&a&&1<a.length&&a[1])return c=b.u.replace(/^[^.]*/,""),g.Xm(b,"r"+d+"---"+a[1]+c),b=new Ev(b.toString()),b.set("fallback_count","1"),b;d=b.u.match("\\.a1\\.googlevideo\\.com$");b.u.match("\\.googlevideo\\.com$")?(g.Xm(b,"redirector.googlevideo.com"),c=b.toString()):b.u.match("r[1-9].*\\.c\\.youtube\\.com$")?
(g.Xm(b,"www.youtube.com"),c=b.toString()):c=Cv(c);b=new Ev(c);b.set("cmo=pf","1");d&&b.set("cmo=td","a1.googlevideo.com");return b};
Fv=function(a){if(a.B){if(!yv(a.B)&&!a.B.startsWith("local"))throw Error("Untrusted URL: "+a.B);var b=g.cn(a.B);a.scheme=b.F;a.C=b.u+(null!=b.D?":"+b.D:"");var c=b.B;if(c.startsWith("/videoplayback"))a.path="/videoplayback",c=c.substr(14);else if(c.startsWith("/initplayback"))a.path="/initplayback",c=c.substr(13);else if(c.startsWith("/api/manifest")){var d=c.indexOf("/",12),e=c.indexOf("/",d+1);0<d&&0<e?(a.path=c.substr(0,e),c=c.substr(e+1)):(a.path=c,c="")}else a.path=c,c="";d=a.u;a.u=Kv(c);g.Wa(a.u,
Lv(b.C.toString()));g.Wa(a.u,d);"index.m3u8"===a.u.file&&(delete a.u.file,a.path+="/file/index.m3u8");a.B="";a.url="";a.D&&(b=a.get("n"))&&(b=Qda(b),a.set("n",b))}};
rfa=function(a){Fv(a);var b=a.scheme+(a.scheme?"://":"//")+a.C+a.path;if(Iv(a)){var c=[];g.Ib(a.u,function(d,e){null!==d&&c.push(e+"="+d)});
b+="?"+c.join("&")}return b};
Kv=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&Mv(c,a[b],a[b+1]);return c};
Lv=function(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?Mv(b,d.substr(0,e),d.substr(e+1)):d&&(b[d]="")}return b};
Mv=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};
Nv=function(a){this.Uf=a;this.u={};this.url=""};
Ov=function(a,b){var c=b.indexOf("?");if(0<c){var d=Lv(b.substr(c+1));g.Ib(d,function(e,f){this.set(f,e)},a);
b=b.substr(0,c)}c=Kv(b);g.Ib(c,function(e,f){this.set(f,e)},a)};
sfa=function(a){var b=a.Uf.rd(),c=[];g.Ib(a.u,function(e,f){c.push(f+"="+e)});
if(!c.length)return b;var d=c.join("&");a=Iv(a.Uf)?"&":"?";return b+a+d};
Pv=function(a,b){var c=new Ev(b),d=c.get("req_id");d&&a.set("req_id",d);g.Ib(a.u,function(e,f){c.set(f,null)});
return c};
Qv=function(){this.u=.125;this.B=!1;this.C=0;this.Ue=!1};
Rv=function(a,b){var c=void 0===b?{}:b,d=void 0===c.hasSubfragmentedFmp4?!1:c.hasSubfragmentedFmp4;c=void 0===c.ki?!1:c.ki;var e=new Qv;e.B=a.ca("html5_streaming_xhr_no_mp4_holdback_chunk");e.C=g.P(a.experiments,"html5_time_based_consolidation_ms");a.ca("html5_resume_streaming_requests")&&(e.u=0);e.Ue=d||c;return e};
g.Sv=function(){this.D=new Qv;this.Gz=this.Fz=!1;this.uz=2;this.G=20971520;this.K=8388608;this.F=120;this.za=3145728;this.X=62914560;this.Ea=10485760;this.vz=this.wz=this.Af=0;this.UB=!1;this.P=NaN;this.Sj=0;this.Sq=this.BC=2;this.Pi=3;this.Mz=2;this.Y=2097152;this.Lz=1048576;this.ka=!1;this.Oi=1800;this.LG=5;this.Bf=10;this.W=15;this.nd=1;this.u=1.15;this.B=1.05;this.Cz=!0;this.ea=!1;this.Nz=.8;this.JF=this.sb=!1;this.Ja=6;this.ce=this.Aa=!1;this.Rj=.5;this.Lb=0;this.Qq=this.Pb=!1;this.Ph=this.zf=
0;this.fB=2;this.qb=5E3;this.rF=6;this.ra=!1;this.N=.5;this.Zb=2;this.Rb=this.Yz=0;this.cA=1.5;this.VA=this.Ti=.5;this.be=15;this.JG=1;this.Qz=this.Dz=this.Df=!1;this.VG=0;this.LD=this.ej=this.Wz=this.Jz=this.mG=this.Qh=this.Iz=this.Ez=!1;this.Rh=0;this.Sz=this.DG=this.Uz=this.Yc=!1;this.Ve=0;this.ac=this.Qa=this.GG=this.SD=this.Th=this.ia=this.Xz=this.Cf=this.Tz=!1;this.da=!0;this.Ef=this.ba=this.Hz=this.Hk=!1;this.Is=!0;this.Qi=!1;this.C="";this.Si=!1;this.iQ=1048576;this.ZF=this.yz=this.Fc=this.Vg=
!1;this.ue=46800;this.bb=this.As=this.Rq=this.yd=this.de=!1;this.vC=!0;this.Hs=this.Gr=this.Kz=this.Oz=this.Qj=this.Ar=this.Tq=this.Vz=!1;this.Pa=0;this.QD="";this.Rr=this.dr=!1;this.xb=!0;this.Wk=this.xz=this.wF=this.Vq=this.uC=this.Sh=!1;this.ge=0;this.Ri=!1};
tfa=function(a,b){1080<b.Ka().xc&&!a.Fz&&(a.G=36700160,a.K=5242880,a.za=10485760,a.Y=4194304,a.Fz=!0);2160<b.Ka().xc&&!a.Gz&&(a.G=104857600,a.P=13107200,a.Gz=!0);a.Lz=Math.max(65536,Math.min(a.Y,5*b.u))};
ufa=function(){this.C=this.u=this.B=this.started=this.D=0};
vfa=function(a){a.D=(0,g.N)();a.started+=1};
Tv=function(a){return Math.pow(1.6,a.started+a.C+4*a.u)};
Uv=function(a,b){a[b]||(a[b]=new ufa);return a[b]};
wfa=function(a){this.C=null;this.F=this.B=0;this.u=a;this.D=a.clone()};
Wv=function(a,b,c){var d=Uv(c,Gv(a.u));if(d.B>=b.fB||1<=d.u)if(a=Vv(a),c=Uv(c,Gv(a)),c.B+c.u<=d.B+d.u)return!0;return!1};
xfa=function(a,b){var c=b?Vv(a):a.u;return new Nv(c)};
Vv=function(a){a.C||(a.C=Jv(a.D));return a.C};
Xv=function(a){return 1<a.B?a.F+1E3*Math.pow(1.6,a.B-1)<(0,g.N)():!0};
g.Yv=function(a,b,c){b.Uf===a.u&&(a.u=Pv(b,c));b.Uf===a.C&&(a.C=Pv(b,c))};
Zv=function(a,b){this.B=a[0].u.B;this.C=b||"";this.F="";this.u=a;this.range=this.u[0].range&&0<this.u[0].kb?dfa(this.u):null;this.D=this.bf=NaN;this.G=this.requestId=null};
$v=function(a){return!St(a.u[a.u.length-1])};
aw=function(a){return 4==a.u[a.u.length-1].type};
g.bw=function(a,b,c){if(a.F){var d=new Nv(new Ev(a.F));a.C&&Ov(d,a.C)}else/http[s]?:\/\//.test(a.C)?d=new Nv(new Ev(a.C)):(b=null===a.G?Wv(a.B,b,c):a.G,d=xfa(a.B,b),a.C&&Ov(d,a.C));(b=a.range)&&d.set("range",b.toString());a.requestId&&d.set("req_id",a.requestId);isNaN(a.bf)||d.set("headm",a.bf.toString());isNaN(a.D)||d.set("mffa",a.D+"ms");a.K&&g.Ib(a.K,function(e,f){d.set(f,e)});
return d};
cw=function(a){if(a.range)return a.range.length;a=a.u[0];return Math.round(a.N*a.u.info.u)};
dw=function(a,b,c){var d=null,e=a.u[0];if(a.range)d=Ot(a.range.start,Math.min(4096,a.range.length));else if(c){if(a.C&&0<=a.C.indexOf("/range/")||"1"==a.B.D.get("defrag")||"1"==a.B.D.get("otf"))return null;d=Ot(0,4096)}else if(e.u.info.video)return null;c=new Rt(5,e.u,d,"createProbeRequestInfo_"+e.P,e.B);a=new Zv([c],a.C);a.G=b;return a};
ew=function(a,b,c,d){this.sampleRate=a||0;this.u=b||0;this.spatialAudioType=c||0;this.itag=d||""};
hw=function(a,b,c,d,e,f,h,l,m,n){this.width=a;this.height=b;this.isAccelerated=!1;this.quality=f||fw(a,b);this.xc=g.gw[this.quality];this.fps=c||0;this.stereoLayout=!e||null!=d&&0!==d&&1!==d?0:e;this.projectionType=d?2===d&&2===e?3:d:0;(a=h)||(a=g.gw[this.quality],0===a?a="\u81ea\u52d5":(b=this.fps,c=this.projectionType,a=a.toString()+(2===c||3===c||4===c?"s":"p")+(55<b?"60":49<b?"50":39<b?"48":"")));this.qualityLabel=a;this.u=l||"";this.primaries=m||"";this.streamType=n||0};
iw=function(a){return 1280<=a.width||720<=a.height};
jw=function(a){return"smpte2084"===a.u||"arib-std-b67"===a.u};
fw=function(a,b){for(var c=Math.max(a,b),d=Math.min(a,b),e=kw[0],f=0;f<kw.length;f++){var h=kw[f],l=g.gw[h];if(c>=1.3*Math.floor(16*l/9)||d>=1.3*l)return e;e=h}return"tiny"};
nw=function(a,b,c,d,e,f,h,l,m){this.id=a;this.mimeType=b;this.audio=void 0===c?null:c;this.video=void 0===d?null:d;this.B=void 0===e?null:e;this.Bd=void 0===f?null:f;this.captionTrack=void 0===m?null:m;this.F=!0;this.C=null;this.containerType=lw(b);this.u=h||0;this.D=l||0;this.Eb=mw[Yt(this)]||""};
Yt=function(a){return a.id.split(";",1)[0]};
ow=function(a){return 0<a.id.indexOf(";")?a.id.split(";")[1]:null};
pw=function(a){return"9"===a.Eb||"("===a.Eb||"9h"===a.Eb||"(h"===a.Eb};
qw=function(a){return"9h"===a.Eb||"(h"===a.Eb};
rw=function(a){return"1"===a.Eb};
g.kv=function(a){return 1===a.containerType};
tw=function(a){return"application/x-mpegURL"===a.mimeType};
uw=function(a){return a.includes("vtt")||a.includes("text/mp4")};
lw=function(a){return 0<=a.indexOf("/mp4")?1:0<=a.indexOf("/webm")?2:0<=a.indexOf("/x-flv")?3:0<=a.indexOf("/vtt")?4:0};
vw=function(a,b,c,d,e){var f=new ew;b in g.gw||(b="small");d&&e?(e=Number(e),d=Number(d)):(e=g.gw[b],d=Math.round(16*e/9));d=new hw(d,e,0,null,void 0,b,void 0,void 0,void 0);a=unescape(a.replace(/"/g,'"'));return new nw(c,a,f,d)};
ww=function(a,b,c,d){this.info=b;this.initRange=c||null;this.indexRange=d||null;this.u=null;this.F=!1;this.G=null;this.N=0;this.B=new wfa(a);this.D=null;this.W=NaN;this.C=null};
g.xw=function(){this.u=0;this.B=new Float64Array(128);this.C=new Float64Array(128);this.F=1;this.D=!1};
yw=function(a){a.B.length<a.u+1&&a.resize(2*a.B.length)};
zw=function(a,b,c,d,e,f){ww.call(this,a,b,c||void 0,d||void 0);this.P=null;this.index=new g.xw;this.K=e;this.lastModified=f};
Aw=function(a,b,c,d){for(var e=[];b<=a.index.Ob();b++){var f=a.index,h=b;f=Ot(f.ot(h),h+1<f.u||f.D?f.B[h+1]-f.B[h]:-1);h=a.index.Fe(b);var l=a.index.getDuration(b),m=Math.max(0,c-f.start),n=Math.min(f.end+1,c+d)-(f.start+m),p=b==a.index.Ob()&&m+n==f.length;e.push(new Rt(3,a,f,"getRequestInfoForRange_",b,h,l,m,n,p));if(f.start+m+n>=c+d)break}return new Zv(e)};
Cw=function(){void 0===Bw&&(Bw=g.fo());return Bw};
Ew=function(a){a=void 0===a?!1:a;var b=Cw();if(!b)return Dw={};if(!Dw||a)try{var c=b.get("yt-player-lv");Dw=JSON.parse(c||"{}")}catch(d){Dw={}}return Dw};
Fw=function(a){var b=Cw();if(b){var c=JSON.stringify(a);b.set("yt-player-lv",c);Dw=a}};
Gw=function(a){return Ew()[a]||0};
Hw=function(){var a=Ew();return Object.keys(a)};
Iw=function(a){var b=Ew();return Object.keys(b).filter(function(c){return b[c]===a})};
Jw=function(a,b,c){c=void 0===c?!1:c;var d=Ew(!0);if(c&&Object.keys(d).pop()!==a)delete d[a];else if(b===d[a])return;0!==b?d[a]=b:delete d[a];Fw(d)};
yfa=function(a){var b=Ew(!0);b=Object.assign({},b);a=Object.assign({},a);for(var c in b)a[c]?(4!==b[c]&&(b[c]=a[c]),delete a[c]):3!==b[c]&&2!==b[c]&&(b[c]=4);Object.assign(b,a);Fw(b);JSON.stringify(b);return b};
Kw=function(a){return!!a&&1===Gw(a)};
zfa=function(){var a=Cw();if(!a)return!1;try{return null!==a.get("yt-player-lv-id")}catch(b){return!1}};
Pw=function(){return Te(this,function b(){var c,d,e,f;return Aa(b,function(h){if(1==h.u){c=Cw();if(!c)return h["return"](Promise.reject("No LocalStorage"));if(Lw)return h.Ac(2);d=wq().u(Mw);var l=Object.assign({},d);delete l.Authorization;var m=Hl();if(m){var n=new qn;n.update(g.K("INNERTUBE_API_KEY",void 0));n.update(m);l.hash=g.nf(n.digest(),3)}m=new qn;m.update(JSON.stringify(l,Object.keys(l).sort()));l=m.digest();m="";for(n=0;n<l.length;n++)m+="0123456789ABCDEF".charAt(Math.floor(l[n]/16))+"0123456789ABCDEF".charAt(l[n]%
16);e=m;f=c.get("yt-player-lv-id");return f?f===e?h.Ac(2):sa(h,Nw(),5):(c.set("yt-player-lv-id",e),h.Ac(2))}2!=h.u&&(c.set("yt-player-lv-id",e),Lw=!0);return h["return"](Ow().open())})})};
Qw=function(a,b){var c=IDBKeyRange.bound(b+"|",b+"~");return yea(Wq(a,"index"),c).then(function(d){return d.join(",")})};
Afa=function(){return Te(this,function b(){var c;return Aa(b,function(d){c=Ow();return d["return"](c["delete"]())})})};
Rw=function(a,b){return Te(this,function d(){var e;return Aa(d,function(f){if(1==f.u)return sa(f,Pw(),2);e=f.B;return f["return"](Uq(e,["index","media","metadata","playerdata"],"readwrite",function(h){var l=IDBKeyRange.bound(a+"|",a+"~");l=[Wq(h,"index")["delete"](l),Wq(h,"media")["delete"](l),Wq(h,"playerdata")["delete"](l)];b&&l.push(Wq(h,"metadata")["delete"](a));return tr.all(l).then(function(){})}))})})};
Cfa=function(){return Te(this,function b(){var c;return Aa(b,function(d){if(1==d.u)return sa(d,Pw(),2);c=d.B;return d["return"](Uq(c,["index","media"],"readwrite",function(e){var f={};return ar(Wq(e,"index"),{},function(h){var l=h.getKey().match(/^([\w\-_]+)\|(a|v)$/),m=tr.resolve(void 0);if(l){var n=l[1];l=l[2];f[n]=f[n]||{};f[n][l]=Sw(h.getValue())}else m=h["delete"]().then(function(){}),Bfa("Deleting unexpected index key "+h.getKey());
return tr.all([h["continue"](),m]).then(function(p){return g.q(p).next().value})}).then(function(){for(var h={},l=g.q(Object.keys(f)),m=l.next();!m.done;m=l.next()){m=m.value;
var n=f[m].v;h[m]=f[m].a&&n?1:2}var p=yfa(h);return zea(Wq(e,"media"),function(r){var t=r.getKey().match(/^([\w\-_]+)\|(\d+)\|(\d+)$/);t&&h[t[1]]||(Wq(e,"media")["delete"](r.getKey()),r.getKey());return r["continue"]()}).then(function(){return p})})}))})})};
Dfa=function(a,b,c){Te(this,function e(){var f;return Aa(e,function(h){if(1==h.u)return sa(h,Pw(),2);f=h.B;return h["return"](Uq(f,["index","media"],"readwrite",function(l){var m={},n=b;return ar(Wq(l,"index"),{},function(p){var r=p.getKey().match(/^([\w\-_]+)\|(a|v)$/);if(r){r=r[1];var t=p.getValue();t=Tp(t);!m[r]&&0<t.length&&(t=+t[0].mket,isNaN(t)||(m[r]=t,n+=t))}return p["continue"]()}).then(function(){for(var p=Hw(),r=[];0<p.length&&n>c;){var t=p.shift();
if(t!==a){n-=m[t]||0;delete m[t];var w=IDBKeyRange.bound(t+"|",t+"~");r.push(Wq(l,"index")["delete"](w));r.push(Wq(l,"media")["delete"](w));Jw(t,0)}}return tr.all(r).then(function(){})})}))})})};
Efa=function(a,b){return Te(this,function d(){var e,f;return Aa(d,function(h){if(1==h.u)return sa(h,Pw(),2);e=h.B;f={offlineVideoData:b};return sa(h,Xq(e,"metadata",f,a),0)})})};
Ffa=function(a,b){var c=Math.floor(Date.now()/1E3);Te(this,function e(){var f,h;return Aa(e,function(l){if(1==l.u)return JSON.stringify(b.offlineState),f={timestampSecs:c,player:b},sa(l,Pw(),2);h=l.B;return sa(l,Xq(h,"playerdata",f,a),0)})})};
Uw=function(a,b,c,d,e){return Te(this,function h(){var l,m,n,p;return Aa(h,function(r){switch(r.u){case 1:return l=Gw(a),4===l?r["return"](Promise.resolve(4)):sa(r,Pw(),2);case 2:return m=r.B,ta(r,3),sa(r,Uq(m,["index","media"],"readwrite",function(t){if(void 0!==d&&void 0!==e){var w=""+a+"|"+b.id+"|"+d;w=Vq(Wq(t,"media"),e,w)}else w=tr.resolve(void 0);var x=Tw(a,b.isVideo()),y=Tw(a,!b.isVideo());x=Vq(Wq(t,"index"),c,x);var D=Sw(c);t=D?Wq(t,"index").get(y):tr.resolve(void 0);return tr.all([t,w,x]).then(function(E){E=
g.q(E).next().value;var G=Gw(a);4!==G&&D&&void 0!==E&&Sw(E)&&(G=1,Jw(a,G));return G})}),5);
case 5:return r["return"](r.B);case 3:n=va(r);p=Gw(a);if(4===p)return r["return"](p);Jw(a,4);throw n;}})})};
Gfa=function(a){return Te(this,function c(){var d;return Aa(c,function(e){if(1==e.u)return sa(e,Pw(),2);d=e.B;return e["return"](Uq(d,["index"],"readonly",function(f){return Qw(f,a)}))})})};
Hfa=function(a,b,c){return Te(this,function e(){var f;return Aa(e,function(h){if(1==h.u)return sa(h,Pw(),2);f=h.B;return h["return"](Uq(f,["media"],"readonly",function(l){var m=""+a+"|"+b+"|"+c;return Wq(l,"media").get(m)}))})})};
Ifa=function(a){return Te(this,function c(){var d;return Aa(c,function(e){if(1==e.u)return sa(e,Pw(),2);d=e.B;return e["return"](d.get("playerdata",a))})})};
Jfa=function(a){return Te(this,function c(){var d,e;return Aa(c,function(f){if(1==f.u)return sa(f,Pw(),2);if(3!=f.u)return d=f.B,sa(f,d.get("metadata",a),3);e=f.B;return f["return"](null===e||void 0===e?void 0:e.offlineVideoData)})})};
Kfa=function(a){return Te(this,function c(){var d;return Aa(c,function(e){if(1==e.u)return sa(e,Pw(),2);d=e.B;return e["return"](Uq(d,["index","metadata"],"readonly",function(f){return Vw(f,a)}))})})};
Lfa=function(){return Te(this,function b(){var c;return Aa(b,function(d){if(1==d.u)return sa(d,Pw(),2);c=d.B;return d["return"](Uq(c,["index","metadata"],"readonly",function(e){return tr.all(Hw().map(function(f){return Vw(e,f)}))}))})})};
Vw=function(a,b){var c=Wq(a,"metadata").get(b);return Qw(a,b).then(function(d){var e={videoId:b,totalSize:0,downloadedSize:0,status:Gw(b),details:null,videoData:null};if(!d.length)return e;d=Tp(d);d=g.q(d);for(var f=d.next();!f.done;f=d.next())f=f.value,e.totalSize+=+f.mket*+f.avbr,e.downloadedSize+=f.hasOwnProperty("dlt")?(+f.dlt||0)*+f.avbr:+f.mket*+f.avbr;return c.then(function(h){var l,m,n=null===h||void 0===h?void 0:h.offlineVideoData;e.videoData=(null===h||void 0===h?void 0:h.offlineVideoData)||
null;n&&(e.videoData=n,e.details={videoId:n.videoId,title:n.title,lengthSeconds:n.lengthSeconds,thumbnail:n.thumbnail,viewCount:n.viewCount,author:null===(m=null===(l=n.channel)||void 0===l?void 0:l.offlineChannelData)||void 0===m?void 0:m.title});return e})})};
Mfa=function(a){return Te(this,function c(){return Aa(c,function(d){Jw(a,0);return d["return"](Rw(a,!0))})})};
Nw=function(){return Te(this,function b(){var c;return Aa(b,function(d){c=Cw();if(!c)return d["return"](Promise.reject("No LocalStorage"));c.remove("yt-player-lv-id");var e=Cw();e&&(e.remove("yt-player-lv"),Dw=null);return sa(d,Afa(),0)})})};
Sw=function(a){return!!a&&-1===a.indexOf("dlt")};
Tw=function(a,b){return""+a+"|"+(b?"v":"a")};
Bfa=function(){};
Ww=function(){var a=this;this.u=this.B=haa;this.promise=new wm(function(b,c){a.B=b;a.u=c})};
Nfa=function(a,b){this.K=a;this.u=b;this.F=a.iQ;this.G=new Uint8Array(this.F);this.D=this.C=0;this.B=null;this.P=[];this.W=this.X=null;this.N=new Ww};
Ofa=function(a){var b=Xw(a);b=Uw(a.K.C,a.u.info,b);Yw(a,b)};
Zw=function(a){return!!a.B&&a.B.F};
ax=function(a,b){if(!Zw(a)){if(1==b.info.type)a.X=Ot(0,b.u.getLength());else if(2==b.info.type){if(!a.B||1!=a.B.type)return;a.W=Ot(a.D*a.F+a.C,b.u.getLength())}else if(3==b.info.type){if(3==a.B.type&&!Ut(a.B,b.info)&&(a.P=[],b.info.B!=Wt(a.B)||0!=b.info.C))return;if(b.info.D)a.P.map(function(c){return $w(a,c)}),a.P=[];
else{a.P.push(b);a.B=b.info;return}}a.B=b.info;$w(a,b);Pfa(a)}};
$w=function(a,b){for(var c=0,d=cv(b.u);c<d.length;){var e=Math.min(d.length-c,a.G.byteLength-a.C),f=new Uint8Array(d.buffer,d.byteOffset+c,e);a.G.set(f,a.C);a.C+=e;c+=e;if(a.C==a.G.length){if(b.info===a.B&&Zw(a)&&c===d.length)break;e=Xw(a);e=Uw(a.K.C,a.u.info,e,a.D,a.G);Yw(a,e);a.G=new Uint8Array(a.F);a.C=0;a.D+=1}}};
Pfa=function(a){if(Zw(a)){var b=new Uint8Array(a.G.buffer,0,a.C);var c={lmt:a.u.lastModified,docid:a.K.C,fmtid:a.u.info.id,type:a.u.info.mimeType.split(";")[0],csz:a.F,clen:a.D*a.F+a.C};c="local://localhost/videoplayback?"+Rp(c);c={itag:Yt(a.u.info),type:a.u.info.mimeType,bitrate:8*a.u.info.u,lmt:""+a.u.lastModified,init:a.X.toString(),index:a.W.toString(),mket:Math.round(a.u.index.gk()).toString(),avbr:Math.round(a.u.info.D).toString(),url:c};var d=ow(a.u.info);d&&(c.xtags=d);c=Rp(c);b=Uw(a.K.C,
a.B.u.info,c,a.D,b);Yw(a,b,!0)}};
Xw=function(a){var b={itag:Yt(a.u.info),dlt:Math.round(a.B?a.B.G:0),mket:Math.round(a.u.index.gk()),avbr:Math.round(a.u.info.D),csz:a.F,lmt:a.u.lastModified};(a=ow(a.u.info))&&(b.xtags=a);return Rp(b)};
Yw=function(a,b,c){c=void 0===c?!1:c;b.then(function(d){(c||4===d)&&a.N.resolve(d)},function(d){a.N.reject(d)})};
Qfa=function(a,b){this.B=a;this.K=this.G=!1;this.length=b?b:0;this.C=0;this.D=null;this.u=[];this.F=null;this.length?1!=this.B.length||this.B[0].kb||(this.B[0].kb=this.length):1==this.B.length||g.gh(this.B,function(c){return!!c.range})};
Rfa=function(a){return a.length-a.C+a.u.reduce(function(b,c){return b+c.u.getLength()},0)};
bx=function(a,b,c){var d=this;this.wk=a;this.Nd=b;this.loaded=this.status=0;this.error="";a=Nt(this.wk.get("range")||"");if(!a)throw Error("bad range");this.range=a;this.u=new Wu;Sfa(this).then(c,function(e){d.error=""+e||"unknown_err";c()})};
Sfa=function(a){return Te(a,function c(){var d=this,e,f,h,l,m,n,p,r,t,w,x,y,D;return Aa(c,function(E){if(1==E.u){d.status=200;e=d.wk.get("docid");f=md(d.wk.get("fmtid")||"");h=+(d.wk.get("csz")||0);if(!e||!f||!h)throw Error("Invalid local URL");l=d.range;m=Math.floor(l.start/h);n=Math.floor(l.end/h);p=m}if(5!=E.u)return p<=n?sa(E,Hfa(e,f,p),5):E.Ac(0);r=E.B;if(void 0===r)throw Error("invariant: data is undefined");t=p*h;w=(p+1)*h;x=Math.max(0,l.start-t);y=Math.min(l.end+1,w)-(x+t);D=new Uint8Array(r.buffer,
x,y);d.u.append(D);d.loaded+=y;d.loaded<l.length&&d.Nd(g.A(),d.loaded);p++;return E.Ac(2)})})};
Tfa=function(a){this.schedule=a;this.u=NaN;this.B=[];this.totalBytes=0};
dx=function(a,b,c,d){var e=void 0===d?{}:d;d=void 0===e.sg?!1:e.sg;var f=void 0===e.ti?!1:e.ti,h=void 0===e.Kl?!1:e.Kl,l=e.xi,m=e.jb;e=e.bf;this.ea=null;this.ba=this.u=NaN;this.za=0;this.X=this.da=this.B=this.D=NaN;this.ra=this.ia=this.isActive=!1;this.C=0;this.Y=NaN;this.P=this.G=Infinity;this.W=NaN;this.Aa=!1;this.K=this.N=NaN;this.F=this.ka=void 0;this.sg=d;this.ti=f;this.Kl=h;this.xi=l;this.jb=m;this.bf=e;this.schedule=a;this.Ea=b;this.Ja=c;this.snapshot=cx(this.schedule)};
ex=function(a){return{rt:(g.A()-a.u).toFixed(),lb:a.B.toFixed(),pt:(1E3*a.Y).toFixed(),pb:a.Ea.toFixed(),stall:(1E3*a.C).toFixed(),elbowTime:(a.ba-a.u).toFixed(),elbowBytes:a.za.toFixed()}};
Ufa=function(a){a.u=g.A();a.D=a.u;a.B=0;a.da=a.u;a.X=0;a.F&&(a.F=[]);a.ia=!1;a.ra=!1;a.C=0;a.snapshot=cx(a.schedule);a.G=Infinity;a.P=Infinity;fx(a);gx(a,a.u);a.Y=(a.N-a.u)/1E3;a.K=NaN;a.ka=void 0};
hx=function(a){!a.K&&a.ea&&(a.K=a.ea(),3===a.K&&(a.ka=new Tfa(a.schedule)));return a.K};
nx=function(a,b,c,d){var e=(b-a.D)/1E3,f=c-a.B,h=hx(a);if(3===h&&f){var l=a.ka;l.B.push({S3:f,k4:isNaN(l.u)?NaN:d-l.u,b4:d});l.u=d}a.isActive?1===h&&0<f&&(.2<e||1024>f?(a.C+=e,.2<e&&lx(a,.05,f)):lx(a,e,f),a.ra=!0):ix(a,c)&&(1===h&&(d=(b-a.u)/1E3,jx(a)||a.ti||kx(a.schedule,d)),a.ba=b,a.za=c,a.isActive=!0);a.ti||mx(a.schedule,e,f);a.D=b;a.B=c};
lx=function(a,b,c){if(!a.ti){b=Math.max(b,.05);var d=a.schedule,e=b;a=a.Kl;a=void 0===a?!1:a;d.u.C(void 0===b?e:b,c/e);a||(d.G=ox())}};
qx=function(a,b,c){c=Math.round(c/1024);a.F&&a.F.push(px(b-a.da,c-a.X));a.da=b;a.X=c};
ix=function(a,b){return b?a.xi&&1!==hx(a)?!0:2048<=b:!1};
rx=function(a){return ix(a,a.B)};
fx=function(a){a.W=a.u+1E3*a.snapshot.delay;a.Aa=!1};
sx=function(a,b){a.xi&&void 0!==a.jb&&void 0!==a.bf&&(a.G=Math.min(a.G,Vfa(a.xi,a.jb,a.u,b)),a.P=Math.min(a.P,Wfa(a.xi,a.jb,a.u,b,a.bf)),a.G<=a.u?fx(a):(a.W=a.G,a.Aa=!0))};
jx=function(a){a.xi&&sx(a,g.A());return a.Aa};
gx=function(a,b){b=void 0===b?g.A():b;if(a.xi){sx(a,b);var c=a.K?a.xi?1!==hx(a):!1:a.G!==a.P;if(c){if(c=a.P,b<c){a.N=a.P;return}}else c=a.G;c=Math.max(c,a.W)}else c=a.W;var d=a.Ea-a.B;0>d&&(d=0);d=1E3*(d*a.snapshot.stall+d/a.snapshot.byterate);d=rx(a)?d+b:d+Math.max(b,c);a.N=d};
px=function(a,b){for(var c="";4095<a;)c+=px(4095,0),a-=4095;for(;4095<b;)c+=px(a,4095),b-=4095,a=0;return c+("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a>>6&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(b>>6&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(b&63))};
tx=function(){return!("function"!==typeof window.fetch||!window.ReadableStream)};
ux=function(a){if(a.Ro())return!1;a=a.Wd("content-type");return"audio/mp4"===a||"video/mp4"===a||"video/webm"===a};
vx=function(a,b,c,d,e,f){var h=void 0===f?{}:f;f=void 0===h.method?"GET":h.method;var l=h.headers,m=h.body;h=void 0===h.credentials?"include":h.credentials;this.Y=b;this.X=c;this.ba=d;this.policy=e;this.status=0;this.response=void 0;this.W=!1;this.B=0;this.P=NaN;this.aborted=this.G=this.N=!1;this.errorMessage="";this.method=f;this.headers=l;this.body=m;this.credentials=h;this.u=new Wu;this.id=Xfa++;this.D=window.AbortController?new AbortController:void 0;this.start(a);this.startTime=Date.now()};
xx=function(a){a.C.read().then(function(b){if(!a.la()){var c;window.performance&&window.performance.now&&(c=window.performance.now());var d=Date.now(),e=b.value?b.value:void 0;a.F&&(a.u.append(a.F),a.F=void 0);b.done?(a.C=void 0,a.onDone()):(a.B+=e.length,wx(a)?a.u.append(e):a.F=e,a.Y(d,a.B,c),xx(a))}},function(b){a.onError(b)}).then(void 0,M)};
wx=function(a){var b=a.Wd("content-type");b="audio/mp4"===b||"video/mp4"===b;return a.policy.B&&a.policy.Ue&&ux(a)&&b};
yx=function(a,b,c,d){var e=this;this.status=0;this.la=this.B=!1;this.u=NaN;this.xhr=new XMLHttpRequest;this.xhr.open("GET",a);this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){2===e.xhr.readyState&&e.F()};
this.C=c;this.D=b;this.F=d;a=Ao(function(f){e.onDone(f)});
this.xhr.addEventListener("load",a,!1);this.xhr.addEventListener("error",a,!1);this.xhr.send();this.xhr.addEventListener("progress",Ao(function(f){e.Nd(f)}),!1)};
Ax=function(){this.C=this.u=0;this.B=Array.from({length:zx.length}).fill(0)};
Bx=function(){};
Yfa=function(){this.name="gtfta";this.startTimeMs=(0,g.N)();this.rI=!1};
Ex=function(a,b){var c=this;return Cx?function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];f=(0,g.N)();e=b.apply(c,e);Dx(a,(0,g.N)()-f);return e}:b};
Fx=function(a,b){if(Cx){var c=(0,g.N)();b();Dx(a,(0,g.N)()-c)}else b()};
Dx=function(a,b){a in Gx||(Gx[a]=new Ax);Gx[a].yF(b)};
Hx=function(a,b){var c="";49<b?c="p60":32<b&&(c="p48");return a+c};
Kx=function(a,b,c,d,e,f){var h=this,l=void 0===f?{}:f;f=void 0===l.TE?[]:l.TE;var m=void 0===l.uq?!1:l.uq;l=void 0===l.jl?0:l.jl;this.C=a;this.info=b;this.timing=c;this.timing.ea=function(){var n;if(Zfa(h)){if(n=h.C.LD&&!(!window.performance||!window.performance.now)&&h.u&&h.u.Il()&&h.u.Li())n=h.u,n=n.policy.Ue&&ux(n);n=n?h.info.u[0].u.info.video?3:4:2}else n=1;return n};
this.ia=d;this.W=e;this.state=1;this.uq=m;this.N=++$fa;this.D=g.bw(this.info,this.C,this.ia);this.D.set("rn",this.N.toString());this.D.set("rbuf",(1E3*l).toFixed().toString());this.uq&&this.D.set("smb","1");this.ka=f||null;this.P=aga(this);this.K=0;this.F=null;this.G=0;this.B=null;this.X=0;this.Aa=this.da=!1;this.ba=this.Y=null;this.ra=this.C.Oi*(this.C.xb?Tv(Ix(this)):1);this.ea=new g.F(this.zQ,this.ra,this);this.info.B.F=(0,g.N)();vfa(Ix(this));Ufa(this.timing);try{this.u=cga(this),this.ea.start()}catch(n){g.Bo(n),
this.F="net.ssl",g.rm(function(){return Jx(h)})}};
Lx=function(a){var b=ex(a.timing);b.shost=Gv(a.D.Uf);b.rn=a.N.toString();a.G&&(b.rc=a.G.toString());b.itag=""+Yt(a.info.u[0].u.info);b.ml=""+ +a.info.u[0].u.le();b.sq=""+a.info.u[0].B;if(a.D){var c=a.D.Uf;Fv(c);var d=decodeURIComponent(c.get("mn")||"").split(",");b.ifi=""+ +("/videoplayback"===c.path&&1<d.length&&!!d[1])}410!=a.G&&500!=a.G&&503!=a.G||(b.fmt_unav="true");a.u&&a.u.Ul()&&(b.msg=a.u.Ul());a.uq&&(b.smb="1");a.B&&(a=a.B.u,a.length&&iv(a[0],b));return b};
aga=function(a){if(!(aw(a.info)&&a.info.sg()&&a.C.Df&&a.ka)||2<=a.info.B.B||Mx()||!Nx())return!1;var b=a.D.get("aitags");if(!b)return!1;var c=md(b).split(","),d=[];g.Fb(a.ka,function(e){g.nb(c,e)&&d.push(e)});
if(!d.length)return!1;a.D.set("altitags",ld(d.join(",")));return!0};
Ix=function(a){return Uv(a.ia,Gv(a.D.Uf))};
ega=function(a,b){if(400<=b.status)return a.F="net.badstatus",6;if(!b.ws())return a.F=204==b.status?"net.nocontent":"net.connect",6;var c="";if(Ox(a)){var d=b.rx();2048>=d.getLength()&&(c=cv(d),c=bu(c),c=yv(c)?c:"")}if(c){d=Ix(a);(0,g.N)();d.started=0;d.B=0;d.u=0;d=a.info;var e=a.D;g.Yv(d.B,e,c);d.requestId=e.get("req_id");return 4}c=b.mt();if((d=!!a.info.range&&a.info.range.length)&&d!=c||b.ly())return a.F="net.closed",6;Px(a,!0);if(a.C.vC&&!d&&a.B&&(d=a.B.u,d.length&&!iv(d[0])))return a.F="net.closed",
6;e=Qx(a)?b.Wd("X-Bandwidth-Est"):0;if(d=Qx(a)?b.Wd("X-Bandwidth-Est3"):0)a.Aa=!0,a.C.Iz&&(e=d);d=a.timing;var f=e?parseInt(e,10):0;e=g.A();if(!d.ia){d.ia=!0;if(!d.ti){e=e>d.u&&4E12>e?e:g.A();qx(d,e,c);nx(d,e,c);var h=hx(d);if(2===h&&f)lx(d,d.B/f,d.B);else if(2===h||1===h)f=(e-d.u)/1E3,(f<=d.schedule.N.u||!d.schedule.N.u)&&!d.ra&&rx(d)&&lx(d,f,c),rx(d)&&Rx(d.schedule,c,d.C);Sx(d.schedule,(e-d.u)/1E3||.05,d.B,d.Y,d.sg,d.Kl)}d.deactivate()}c=Ix(a);(0,g.N)();c.started=0;c.B=0;c.u=0;a.info.B.B=0;(0,g.N)()<
Tx+3E5||!a.D||Hv(a.D.Uf)||!(c=Gv(a.D.Uf))||0>c.indexOf("googlevideo.com")||(dga({primary:c}),Tx=(0,g.N)());return 5};
Jx=function(a){if("net.timeout"==a.F){var b=a.timing,c=g.A();if(!b.ti){c=c>b.u&&4E12>c?c:g.A();qx(b,c,1024*b.X);var d=(c-b.u)/1E3;2!==hx(b)&&(rx(b)?(b.C+=(c-b.D)/1E3,Rx(b.schedule,b.B,b.C)):(jx(b)||b.ti||kx(b.schedule,d),b.ba=c));Sx(b.schedule,d,b.B,b.Y,b.sg,b.Kl);mx(b.schedule,(c-b.D)/1E3,0)}}"net.nocontent"!=a.F&&("net.timeout"==a.F||"net.connect"==a.F?(b=Ix(a),b.B+=1):(b=Ix(a),b.u+=1),a.info.B.B++);Ux(a,6)};
Vx=function(a){a.la();var b=Ix(a);return 100>b.B&&b.u<a.C.rF};
Ux=function(a,b){a.state=b;4<=a.state&&(a.C.yd?Wx(a):a.timing.deactivate());a.W&&a.W(a)};
Xx=function(a,b){if(b){var c=Ix(a);c.C+=1}Wx(a);a.F="net.timeout";Jx(a)};
Qx=function(a){return g.gh(a.info.u,function(b){return 3==b.type})};
Wx=function(a){a.u&&a.u.abort();a.timing.deactivate()};
Ox=function(a){var b=a.u.Wd("content-type"),c=a.u.Ro();return(!a.u.Li()||!b||-1!=b.indexOf("text/plain"))&&(!c||2048>=c)};
cga=function(a){var b=(0,g.z)(a.WP,a),c=(0,g.z)(a.YP,a),d=(0,g.z)(a.XP,a);if(Hv(a.D.Uf))return new bx(a.D,c,b);var e=a.D.rd();return a.C.ea&&(a.C.Qz&&!isNaN(a.info.bf)&&a.info.bf>a.C.VG?0:tx())?new vx(e,c,b,d,a.C.D):new yx(e,c,b,d)};
fga=function(a){a.B&&a.B.F?(a=a.B.F,a=new Rt(a.type,a.u,a.range,"getEmptyStubAfter_"+a.P,a.B,a.startTime+a.duration,0,a.C+a.kb,0,!1)):(a=a.info.u[0],a=new Rt(a.type,a.u,a.range,"getEmptyStubBefore_"+a.P,a.B,a.startTime,0,a.C,0,!1));return a};
Yx=function(a){return 1>a.state?!1:a.B&&a.B.u.length||a.u.hh()?!0:!1};
Zx=function(a){Px(a,!1);return a.B?a.B.u:[]};
Px=function(a,b){if(b||a.u.Il()&&a.u.hh()&&!Ox(a)&&!a.P){if(!a.B){if(a.u.Li())a.info.range&&(c=a.info.range.length);else var c=a.u.mt();a.B=new Qfa(a.info.u,c)}for(;a.u.hh();)a:{c=a.B;var d=a.u.nt(),e=b&&!a.u.hh();c.D&&(Yu(c.D,d),d=c.D,c.D=null);for(var f=0,h=0,l=g.q(c.B),m=l.next();!m.done;m=l.next())if(m=m.value,m.range&&f+m.kb<=c.C)f+=m.kb;else{d.getLength();if(St(m)&&!e&&c.C+d.getLength()-h<f+m.kb){c.D=d.split(h).pm;break a}var n=c.C-f;var p=c,r=m;if(1==r.type){p.G=!0;var t=!1}else 3==r.type||
4==r.type?(r=p.G&&!p.K,p.K=!0,t=r):t=!1;p=c;var w=m,x=n;r=h;var y=d;n=t||m.u.WC()&&!n;var D=!!e;t=y.getLength()-r;w.range&&(t=Math.min(w.kb-x,t));D=w.range?w.C+x+t==w.range.length:D;w=new Rt(w.type,w.u,w.range,"reslice_"+w.P,w.B,w.startTime,w.duration,w.C+x,t,D&&w.F,D);x=t;r=y.split(r).pm.split(x).xs;p.u.push(new gv(w,r,n));p=t;c.C+=p;h+=p;f+=m.kb;if(h==d.getLength())break}d.getLength()}}};
Zfa=function(a){if(!a.C.D.Ue||!isNaN(a.info.bf)&&0<a.info.bf)return!1;if(!a.u.Il())return!0;if(!ux(a.u))return!1;if(isNaN(a.info.bf)){var b=a.u.Wd("x-head-seqnum");if(b&&parseInt(b,10)>a.info.u[0].B)return!1}return!0};
gga=function(a){for(var b=new Uint8Array(0),c=new DataView(a.buffer,a.byteOffset,a.length),d=0;d<a.length-8;){var e=c.getUint32(d);if(1>=e)break;var f=c.getUint32(d+4);if(1836019574===f)d+=8;else{if(1886614376===f){f=a.subarray(d,d+e);var h=new Uint8Array(b.length+f.length);h.set(b);h.set(f,b.length);b=h}d+=e}}return b};
hga=function(a){a=zu(a,1886614376);g.Fb(a,function(b){return!b.B});
return g.Pc(a,function(b){return new Uint8Array(b.data.buffer,b.offset+b.data.byteOffset,b.size)})};
iga=function(a){var b=g.hh(a,function(e,f){return e+f.length},0),c=new Uint8Array(b),d=0;
g.Fb(a,function(e){c.set(e,d);d+=e.length});
return c};
jga=function(a,b){this.ids=a;this.u=b};
$x=function(a,b,c){this.initData=a;this.contentType=b;this.isPrefetch=c;this.u=this.cryptoPeriodIndex=NaN;this.B=[];this.Jd=!1};
ay=function(a){a:{var b=a.initData;try{for(var c=0,d=new DataView(b.buffer);c<d.byteLength-8;){var e=d.getUint32(c);if(1>=e)break;if(1886614376===d.getUint32(c+4)){var f=32;if(0<d.getUint8(c+8)){var h=d.getUint32(c+28);f+=16*h+4}var l=d.getUint32(c+f-4);try{var m=new cf(b.subarray(c+f,c+f+l)),n=new lo;for(f=m;df(f)&&4!=f.B;)switch(f.C){case 2:var p=gf(f),r=p;g.Gf(n,2).push(r);break;case 4:p=gf(f);g.If(n,4,p);break;case 7:p=bf(f.u);g.If(n,7,p);break;case 9:p=bf(f.u);g.If(n,9,p);break;case 10:p=bf(f.u);
g.If(n,10,p);break;case 11:p=af(f.u);g.If(n,11,p);break;case 12:p=bf(f.u);g.If(n,12,p);break;case 13:r=p=gf(f);g.Gf(n,13).push(r);break;case 14:p=new mo;r=f;var t=p,w=Pda,x=r.u.C,y=bf(r.u),D=r.u.u+y;r.u.C=D;w(t,r);r.u.u=D;r.u.C=x;r=n;t=p;w=mo;var E=g.Kf(r,w,14),G=t?t:new w;var L=g.Gf(r,14);E.push(G);L.push(G.wf);break;case 15:p=ff(f);g.If(n,15,p);break;case 16:p=ff(f);g.If(n,16,p);break;case 1:p=af(f.u);g.If(n,1,p);break;case 3:p=ff(f);g.If(n,3,p);break;case 5:p=ff(f);g.If(n,5,p);break;case 6:p=ff(f);
g.If(n,6,p);break;case 8:p=gf(f);g.If(n,8,p);break;default:ef(f)}f=n;if(null!==f){var J=f;break a}}catch(Ha){}}c+=e}J=null}catch(Ha){J=null}}if(null!=J)for(b=g.Gf(J,7),a.cryptoPeriodIndex||null==b||(a.cryptoPeriodIndex=b),b=g.Gf(J,10),null!=b&&0<b&&!a.Jd&&a.u!==b&&(a.u=b),J=g.Gf(J,2),J=!J.length||J[0]instanceof Uint8Array?J:g.Pc(J,Taa),J=g.q(J),b=J.next();!b.done;b=J.next())a.B.push(g.nf(b.value,4))};
by=function(a){this.u=a;this.offset=0};
cy=function(a){if(a.offset>=a.u.getLength())throw Error();return ev(a.u,a.offset++)};
dy=function(a,b){b=void 0===b?!1:b;var c=cy(a);if(1===c){c=-1;for(var d=0;7>d;d++){var e=cy(a);-1===c&&255!==e&&(c=0);-1<c&&(c=256*c+e)}return c}d=128;for(e=0;6>e&&d>c;e++)c=256*c+cy(a),d*=128;return b?c:c-d};
ey=function(a,b,c){g.O.call(this);var d=this;this.C=a;this.B=[];this.u=null;this.X=-1;this.P=0;this.ea=NaN;this.N=0;this.D=b;this.Ea=c;this.G=NaN;this.ka=0;this.ra=-1;this.F=this.W=this.Aa=this.Y=this.da=this.K=this.ba=null;this.C.C&&(this.F=new Nfa(this.C,this.D),this.F.N.promise.then(function(e){d.F=null;1==e&&d.V("localmediachange",e)},function(){d.F=null;
d.V("localmediachange",4)}),Ofa(this.F));
this.za=!1;this.ia=0};
fy=function(a){return a.B.length?a.B[0]:null};
gy=function(a){return a.B.length?a.B[a.B.length-1]:null};
ny=function(a,b,c){if(a.da){if(a.C.dr){var d=a.da;var e=c.info;d=d.B!=e.B&&e.B!=d.B+1||d.type!=e.type||ce(d.K,e.K)&&d.B===e.B?!1:Vt(d,e)}else d=Vt(a.da,c.info);d||(a.G=NaN,a.ka=0,a.ra=-1)}a.da=c.info;a.D=c.info.u;0==c.info.C?hy(a):!a.D.We()&&a.K&&Zt(c.info,a.K);a.u?(c=jv(a.u,c),a.u=c):a.u=c;a:{c=g.kv(a.u.info.u.info);if(3!=a.u.info.type){if(!a.u.info.D)break a;6==a.u.info.type?iy(a,b,a.u):jy(a,a.u);a.u=null}for(;a.u;){d=a.u.u.getLength();if(0>=a.X&&0==a.P){var f=a.u.u,h=-1;e=-1;if(c){for(var l=0;l+
8<f.getLength();){var m=fv(f,l),n=fv(f,l+4);l+=m||1;if(1836019558===n)h=l;else if(1835295092===n){e=l;break}}0>e&&(h=-1)}else{f=new by(f);for(m=l=!1;;){n=f.offset;var p=f;try{var r=dy(p,!0),t=dy(p,!1);var w=r;var x=t}catch(D){x=w=-1}p=w;var y=x;if(0>p)break;if(408125543!==p)if(524531317===p)l=!0,0<=y&&(e=f.offset+y,m=!0);else{if(l&&(160===p||163===p)&&(0>h&&(h=n),m))break;163===p&&(h=Math.max(0,h),e=f.offset+y);if(160===p){0>h&&(e=h=f.offset+y);break}f.skip(y)}}0>h&&(e=-1)}if(0>h)break;a.X=h;a.P=
e-h}if(a.X>d)break;a.X?(d=ky(a,a.X),d.C&&!a.D.We()&&ly(a,d),iy(a,b,d),my(a,d),a.X=0):a.P&&(d=ky(a,0>a.P?Infinity:a.P),a.P-=d.u.getLength(),my(a,d))}}a.u&&a.u.info.D&&(my(a,a.u),a.u=null)};
jy=function(a,b){!a.D.We()&&0==b.info.C&&(g.kv(b.info.u.info)||b.info.u.info.Jd())&&qv(b);if(1==b.info.type)try{ly(a,b),oy(a,b)}catch(d){M(d);var c=Xt(b.info);c.hms="1";a.V("error",c||{})}b.info.u.ts(b);a.F&&ax(a.F,b)};
kga=function(a){var b=a.B.reduce(function(c,d){return c+d.u.getLength()},0);
a.u&&(b+=a.u.u.getLength());return b};
py=function(a){return g.Pc(a.B,function(b){return b.info})};
ky=function(a,b){var c=a.u,d=Math.min(b,c.u.getLength());if(d==c.u.getLength())return a.u=null,c;c.u.getLength();d=Math.min(d,c.info.kb);var e=c.u.split(d),f=e.xs;e=e.pm;var h=new Rt(c.info.type,c.info.u,c.info.range,c.info.P,c.info.B,c.info.startTime,c.info.duration,c.info.C,d,!1,!1);f=new gv(h,f,c.C);c=new Rt(c.info.type,c.info.u,c.info.range,c.info.P,c.info.B,c.info.startTime,c.info.duration,c.info.C+d,c.info.kb-d,c.info.F,c.info.D);c=new gv(c,e,!1);c=[f,c];a.u=c[1];return c[0]};
ly=function(a,b){b.u.getLength();var c=hv(b);if(!a.C.Jz&&qw(b.info.u.info)&&"bt2020"===b.info.u.info.Ka().primaries){var d=new Bu(c);Du(d,[408125543,374648427,174,224,21936,21937])&&(d=d.start+d.u,129===c.getUint8(d)&&1===c.getUint8(d+1)&&c.setUint8(d+1,9))}d=b.info.u.info;pw(d)&&!qw(d)&&(d=hv(b),Ju(new Bu(d)),Iu([408125543,374648427,174,224],21936,d));b.info.u.info.isVideo()&&(d=b.info.u,d.info&&d.info.video&&4==d.info.video.projectionType&&!d.D&&(g.kv(d.info)?d.D=gfa(c):d.info.Jd()&&(d.D=ifa(c))));
b.info.u.info.Jd()&&b.info.isVideo()&&(c=hv(b),Ju(new Bu(c)),Iu([408125543,374648427,174,224],30320,c)&&Iu([408125543,374648427,174,224],21432,c));if(a.C.Ri&&b.info.u.info.Jd()){c=hv(b);var e=new Bu(c);if(Du(e,[408125543,374648427,174,29637])){d=Gu(e,!0);e=e.start+e.u;for(var f=0;f<d-1;f++)c.setUint8(e+f,0);c.setUint8(e+d-1,1)}}if(a.D.info.audio&&g.kv(b.info.u.info)){d=hv(b);c=g.mu(d,0,1701606260);f=g.mu(d,0,1836476516);if(c&&f){c.skip(2);var h=eu(c),l=gu(c);d=[];e=[];var m=[],n=[];if(h)for(h=0;h<
l;++h)d.push(hu(c)),e.push(hu(c)),m.push(eu(c)),n.push(eu(c));else for(h=0;h<l;++h)d.push(fu(c)),e.push(fu(c)),m.push(eu(c)),n.push(eu(c));c=ou(f);c=new ffa(e[0]/c,d[0]/c)}else c=null;if(c){if(g.kv(b.info.u.info))for(d=hv(b),e=g.mu(d,0,1701082227);e;)e.markAsSkip(),e=g.mu(d,e.offset+e.size,1701082227);a.za=!0;a.C.Is&&a.V("gaplessinfo",c)}}a.D.We()||b.info.u.u||b.info.u.indexRange||(g.kv(b.info.u.info)?(c=hv(b),(d=qu(c,0,1836019574))?(d=d.offset+d.size,e=new Uint8Array(d),e.set(new Uint8Array(c.buffer,
c.byteOffset,d)),c=e):c=null):c=jfa(new Bu(hv(b))),c&&(b.info.u.u=c))};
iy=function(a,b,c){if(a.D.We()){if(a.za&&a.D.We()&&c.info.B==c.info.u.index.Ob()&&(b=hv(c),b=g.mu(b,0,1953658222))){b.skip(1);var d=du(b)<<16|eu(b),e=d&1,f=d&4;if(d&256){var h=d&512,l=d&1024;d&=2048;var m=gu(b);2>m||(e&&b.skip(4),f&&b.skip(4),e=gu(b),b.skip((m-1)*(4+(h?4:0)+(l?4:0)+(d?4:0))-4),b.data.setUint32(b.offset+b.u,e))}}if(b=a.ba&&!!a.ba.D.C)if(b=c.info.isVideo())b=pv(c),h=a.ba,qy?(l=1/b,b=ry(a,b)>=ry(h)+l):b=a.getDuration()>=h.getDuration(),b=!b;b&&a.D.We()&&c.info.B==c.info.u.index.Ob()&&
(b=a.ba,qy?(l=pv(c),h=1/l,l=ry(a,l),b=ry(b)+h-l):b=b.getDuration()-a.getDuration(),b=1+b/c.info.duration,nu(hv(c),b))}else{h=!1;a.K||(qv(c),c.B&&(a.K=c.B,h=!0,Zt(c.info,c.B),e=c.info.u.info,d=hv(c),g.kv(e)?yu(d,1701671783):e.Jd()&&Iu([408125543],307544935,d)));if(d=e=ov(c))d=c.info.u.info.Jd()&&160==ev(c.u,0);if(d)a.N+=e,a.G=l+e;else{if(a.C.Uz){if(l=f=a.Ea(lv(c),1),0<=a.G&&6!=c.info.type){f-=a.G;var n=f-a.ka;d=c.info.B;var p=c.info.K,r=a.Y?a.Y.B:-1,t=a.Y?a.Y.K:-1,w=a.Y?a.Y.duration:-1;m=a.C.Ve&&f>
a.C.Ve;var x=a.C.ge&&n>a.C.ge;1E-4<Math.abs(n)&&(a.C.DG&&a.V("avsyncissue",{audio:""+ +!!a.D.info.audio,sq:d.toFixed(),sliceStart:p,lastSq:r.toFixed(),lastSliceStart:t,lastSliceDuration:w,totalDrift:(1E3*f).toFixed(),segDrift:(1E3*n).toFixed(),skipRewrite:""+(+m||x)}),a.ra=d);n=0;a.C.Sz&&(m||x||(l=a.G),a.C.Tz&&a.ba&&!a.D.info.audio&&g.kv(c.info.u.info)&&(x=a.ba,m=x.ra,x=x.ka,p=.02<Math.abs(x-f),(d==m||d>m&&d>a.ra)&&p&&(d=Math.max(.95,Math.min(1.05,(e-(x-f))/e)),nu(hv(c),d),d=ov(c),n=e-d,e=d)));a.ka=
f+n}}else isNaN(a.G)?f=c.info.startTime:f=a.G,l=f;mv(c,l)?(isNaN(a.ea)&&(a.ea=l),a.N+=e,a.G=l+e):(l=Xt(c.info),l.smst="1",a.V("error",l||{}))}if(h&&a.K){h=sy(a,!0);$t(c.info,h);a.u&&$t(a.u.info,h);b=g.q(b.info.u);for(l=b.next();!l.done;l=b.next())$t(l.value,h);(c.info.D||a.u&&a.u.info.D)&&6!=c.info.type||(a.W=h,a.V("placeholderinfo",h),ty(a))}}oy(a,c);a.ia&&nv(c,a.ia);a.Y=c.info};
my=function(a,b){if(b.info.D){a.Aa=b.info;if(a.K){var c=sy(a,!1);a.V("segmentinfo",c);a.W||ty(a);a.W=null}hy(a)}a.F&&ax(a.F,b);if(c=gy(a))if(c=jv(c,b,a.C.Tq)){a.B.pop();a.B.push(c);return}a.B.push(b)};
hy=function(a){a.u=null;a.X=-1;a.P=0;a.K=null;a.ea=NaN;a.N=0;a.W=null};
oy=function(a,b){if(a.D.info.Bd){if(b.info.u.info.Jd()){var c=new Bu(hv(b));if(Du(c,[408125543,374648427,174,28032,25152,20533,18402])){var d=Gu(c,!0);c=16!==d?null:Nu(c,d)}else c=null;d="webm"}else b.info.W=hga(hv(b)),c=iga(b.info.W),d="cenc";c&&c.length&&(c=new $x(c,d),c.Jd=b.info.u.info.Jd(),b.B&&b.B.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.B.cryptoPeriodIndex),a.C.Gr&&b.B&&b.B.D&&(c.u=b.B.D),a.V("needkeyinfo",c))}};
ty=function(a){var b=a.K,c;b.data["Cuepoint-Type"]?c=new Ht(uy?Number(b.data["Cuepoint-Playhead-Time-Sec"])||0:-(Number(b.data["Cuepoint-Playhead-Time-Sec"])||0),Number(b.data["Cuepoint-Total-Duration-Sec"])||0,b.data["Cuepoint-Context"],b.data["Cuepoint-Identifier"]||"",lga[b.data["Cuepoint-Event"]||""]||"unknown",1E3*(Number(b.data["Cuepoint-Playhead-Time-Sec"])||0)):c=null;c&&(c.startSecs+=a.ea,a.V("cuepoint",c,b.u))};
sy=function(a,b){var c=a.K;if(c.data["Stitched-Video-Id"]||c.data["Stitched-Video-Duration-Us"]||c.data["Stitched-Video-Start-Frame-Index"]||c.data["Serialized-State"]){var d=c.data["Stitched-Video-Id"]?c.data["Stitched-Video-Id"].split(",").slice(0,-1):[];var e=[];if(c.data["Stitched-Video-Duration-Us"])for(var f=g.q(c.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),h=f.next();!h.done;h=f.next())e.push((Number(h.value)||0)/1E6);e=[];if(c.data["Stitched-Video-Start-Frame-Index"])for(f=
g.q(c.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1)),h=f.next();!h.done;h=f.next())e.push(Number(h.value)||0);d=new jga(d,c.data["Serialized-State"]?c.data["Serialized-State"]:"")}return new Lt(c.u,a.ea,b?c.Kg:a.N,c.ingestionTime,"sq/"+c.u,void 0,void 0,b,d)};
ry=function(a,b){b=void 0===b?0:b;var c=b?Math.round(a.ia*b)/b:a.ia;a.D.C&&c&&(c+=a.D.C.u);return c+a.getDuration()};
vy=function(a,b){0>b||(a.B.forEach(function(c){return nv(c,b)}),a.ia=b)};
wy=function(a,b){return{start:function(c){return a[c]},
end:function(c){return b[c]},
length:a.length}};
yy=function(a,b,c){b=void 0===b?",":b;c=void 0===c?a?a.length:0:c;var d=[];if(a)for(c=Math.max(a.length-c,0);c<a.length;c++)d.push(a.start(c).toFixed(3)+"-"+a.end(c).toFixed(3));return d.join(b)};
zy=function(a,b){if(!a)return-1;try{for(var c=0;c<a.length;c++)if(a.start(c)<=b&&a.end(c)>=b)return c}catch(d){}return-1};
Ay=function(a,b){return 0<=zy(a,b)};
mga=function(a,b){if(!a)return NaN;var c=zy(a,b);return 0<=c?a.start(c):NaN};
By=function(a,b){if(!a)return NaN;var c=zy(a,b);return 0<=c?a.end(c):NaN};
Cy=function(a){return a&&a.length?a.end(a.length-1):NaN};
Dy=function(a,b){var c=By(a,b);return 0<=c?c-b:0};
Ey=function(a,b,c){for(var d=[],e=[],f=0;f<a.length;f++)a.end(f)<b||a.start(f)>c||(d.push(Math.max(b,a.start(f))-b),e.push(Math.min(c,a.end(f))-b));return wy(d,e)};
Fy=function(a,b,c){this.X=a;this.u=b;this.D=[];this.C=new ey(a,b,c);this.B=this.K=null;this.ea=0;this.Y=b.info.u;this.ba=0;this.P=b.fn();this.G=-1;this.da=b.fn();this.F=this.P;this.N=!1;this.W=-1};
Gy=function(a,b){b&&qy&&vy(a.C,b.rw());a.K=b};
Hy=function(a){return a.K&&a.K.Ur()};
Jy=function(a){for(;a.D.length&&5==a.D[0].state;){var b=a.D.shift();Iy(a,b);b=b.timing;a.ea=(b.D-b.u)/1E3}a.D.length&&Yx(a.D[0])&&!a.D[0].info.sg()&&Iy(a,a.D[0])};
Iy=function(a,b){if(Yx(b)){if(Zx(b).length){b.da=!0;var c=b.B;var d=c.u;c.u=[];c.F=g.gb(d).info;c=d}else c=[];c=g.q(c);for(d=c.next();!d.done;d=c.next())Ky(a,b,d.value)}};
Ky=function(a,b,c){switch(c.info.type){case 1:case 2:jy(a.C,c);break;case 4:var d=c.info.u.XC(c);c=c.info;var e=a.B;e&&e.u==c.u&&e.type==c.type&&(c.range&&e.range?e.range.start==c.range.start&&e.range.end==c.range.end:e.range==c.range)&&e.B==c.B&&e.C==c.C&&e.kb==c.kb&&(a.B=g.gb(d).info);d=g.q(d);for(c=d.next();!c.done;c=d.next())Ky(a,b,c.value);break;case 3:ny(a.C,b,c);break;case 6:ny(a.C,b,c),a.B=c.info}};
Ly=function(a,b){var c=b.info;c.u.info.u>=a.Y&&(a.Y=c.u.info.u)};
Py=function(a,b,c){c=void 0===c?!1:c;if(a.K){var d=a.K.Ye(),e=By(d,b),f=NaN,h=Hy(a);h&&(f=By(d,h.u.index.Fe(h.B)));if(e==f&&a.B&&a.B.kb&&My(Ny(a),0))return b}a=Oy(a,b,c);return 0<=a?a:NaN};
Ry=function(a,b){a.u.le();var c=Oy(a,b);if(0<=c)return c;c=a.C;c.F?(c=c.F,c=c.B&&3==c.B.type?c.B.startTime:0):c=Infinity;b=Math.min(b,c);a.B=a.u.ij(b).u[0];Qy(a)&&a.K&&a.K.abort();a.ba=0;return a.B.startTime};
Sy=function(a){a.P=!0;a.F=!0;a.G=-1;Ry(a,Infinity)};
cz=function(a){var b=0;g.Fb(a.D,function(c){var d=b;c=c.B&&c.B.length?Rfa(c.B):cw(c.info);b=d+c},a);
return b+=kga(a.C)};
dz=function(a,b){if(!a.K)return 0;var c=Hy(a);if(c&&c.F)return c.G;c=a.K.Ye(!0);return Dy(c,b)};
fz=function(a){ez(a);a=a.C;a.B=[];hy(a)};
gz=function(a,b){if(a.D.length){if(a.D[0].info.u[0].startTime<=b)return;ez(a)}for(var c=a.C,d=c.B.length-1;0<=d;d--)c.B[d].info.startTime>b&&c.B.pop();a.D.length?a.B=g.gb(g.gb(a.D).info.u):a.C.B.length?a.B=gy(a.C).info:a.B=Hy(a);a.B&&b<a.B.startTime&&(a.ba=0,a.u.le()?a.B=a.u.ij(b,!0).u[0]:a.B=null)};
jz=function(a,b){var c;for(c=0;c<a.D.length&&b!==a.D[c];c++);if(c==a.D.length)hz(a,b);else{for(;c<a.D.length;)hz(a,a.D.pop());var d=iz(a);a.X.xb&&d&&d.u.We()&&bi(b.info.u,function(e){return e.u==d.u&&e.B==d.B&&!!d.kb&&d.C+d.kb>e.C&&d.C+d.kb<=e.C+e.kb})?a.B=d:Tt(b.info.u[0])?a.B=fga(b):a.B=null}};
Qy=function(a){var b;!(b=!a.X.Rq&&"f"===a.u.info.Eb)&&(b=a.X.Vg)&&(b=a.C,b=!!b.F&&Zw(b.F));if(b)return!0;b=Hy(a);if(!b)return!1;var c=b.F&&b.D;return a.da&&0<a.W?c||b.B>=a.W:c};
Ny=function(a){var b=[],c=Hy(a);c&&b.push(c);b=g.tb(b,py(a.C));g.Fb(a.D,function(d){g.Fb(d.info.u,function(e){d.da&&(b=g.Je(b,function(f){return!(f.u!=e.u?0:f.range&&e.range?f.range.start+f.C>=e.range.start+e.C&&f.range.start+f.C+f.kb<=e.range.start+e.C+e.kb:f.B==e.B&&f.C>=e.C&&(f.C+f.kb<=e.C+e.kb||e.D))}));
(Tt(e)||4==e.type)&&b.push(e)})});
a.B&&!cfa(a.B,g.gb(b),a.B.u.We())&&b.push(a.B);return b};
My=function(a,b){if(!a.length)return!1;for(var c=b+1;c<a.length;c++)if(!Vt(a[c-1],a[c]))return!1;return!0};
Oy=function(a,b,c){c=void 0===c?!1:c;if(!a.B||!a.B.kb)return NaN;a=Ny(a);a:{var d=c;d=void 0===d?!1:d;for(var e=-1,f=0;f<a.length;++f){var h=a[f];if(h.K<=b)if(d)e=f;else if(h.startTime+h.duration>=b){b=f;break a}}b=e}return 0>b?NaN:My(a,c?b:0)?a[b].startTime:NaN};
kz=function(a){return bi(a.D,function(b){return 3<=b.state})};
lz=function(a){return!(!a.B||a.B.u==a.u)};
mz=function(a){return lz(a)&&a.u.le()&&a.B.u.info.u<a.u.info.u};
nz=function(a,b,c){return(a=iz(a))&&!a.F?a.G>b&&a.G<b+c:!1};
iz=function(a){var b=gy(a.C);return b?b.info:Hy(a)};
ez=function(a){g.Fb(a.D,function(b){hz(this,b)},a);
a.D=[];a.B=null};
hz=function(a,b){var c=a.X.xb&&b.info.u[0].u.We();b.da&&!c&&(c=a.C,c.W&&!c.C.Cf&&c.V("placeholderrollback",c.W),c.W=null,c.K=null,c.da=c.Aa,c.G-=c.N,hy(c));b.dispose()};
oz=function(a){return!!a.B&&-1!=a.B.B&&a.B.B<a.u.index.bh()};
pz=function(a){var b=a.B;b&&-1==b.B&&(a=gy(a.C))&&Tt(a.info)&&(a=a.info.B,b.P="updateLastSliceRequested",b.B=a)};
qz=function(a){return bi(a.D,function(b){return b.P})};
rz=function(a){this.B=this.D=0;this.alpha=Math.exp(Math.log(.5)/a)};
tz=function(a,b,c,d){c=void 0===c?.5:c;d=void 0===d?0:d;this.resolution=b;this.valueIndex=0;this.D=!1;this.G=!0;this.B=Math.round(a*this.resolution);this.values=Array(this.B);for(a=0;a<this.B;a++)this.values[a]=Infinity;this.P=sz(this);this.F=c;this.K=d};
sz=function(a){for(var b=Array(a.B),c=0;c<a.B;c++)b[c]=c;return b};
uz=function(a,b){if(!a.D&&0===a.valueIndex)return 0;a.G&&(g.Cb(a.P,function(c,d){return a.values[c]-a.values[d]}),a.G=!1);
return a.values[a.P[Math.round(b*((a.D?a.B:a.valueIndex)-1))]]||0};
pga=function(a){var b=new nga;this.policy=a;this.N=b;this.K=this.X=0;this.B=-1;this.F=this.G=ox();this.W=new tz(4,1,.6,.4);this.C=new tz(10,1,.5,.4);this.u=a.B?new rz(a.u):new tz(a.u,20,.5,.4);this.P=new tz(5,1,.25);this.D=new tz(30,1,.5);a=oga();this.u.C(this.policy.D,0<a.byterate?a.byterate:this.policy.C);0<a.delay&&this.W.C(1,Math.min(+a.delay,2));0<a.stall&&this.C.C(1,+a.stall);0<a.init&&(this.F=Math.min(a.init,this.F));this.B=ox()};
kx=function(a,b){a.W.C(1,b);-1<a.B&&3E4<ox()-a.B&&vz(a)};
Sx=function(a,b,c,d,e,f){f=void 0===f?!1:f;a.P.C(b,c/b);f||(a.G=ox());e||a.D.C(1,b-d)};
Rx=function(a,b,c){b=Math.max(b,2048);a.C.C(1,c/b);-1<a.B&&3E4<ox()-a.B&&vz(a)};
wz=function(a){a=a.W.u();a=isNaN(a)?.5:a;return a=Math.min(a,5)};
mx=function(a,b,c){isNaN(c)||(a.K+=c);isNaN(b)||(a.X+=b)};
xz=function(a){a=a.u.u();return 0<a?a:1};
yz=function(a){var b=xz(a);b=1/((a.C.u()||0)+1/b);a=a.P.u();return Math.max(b,0<a?a:1)};
cx=function(a){return{delay:wz(a),stall:a.C.u()||0,byterate:xz(a),init:a.F}};
vz=function(a){qga(cx(a));a.B=ox()};
zz=function(a){return 4E3<=ox()-a.G};
Az=function(a,b){this.B=a;this.u=b;this.C=1};
Cz=function(a,b,c,d,e){e=void 0===e?!1:e;a.u.Fc&&(d=Math.abs(d));d/=a.C;var f=1/yz(a.B);var h=.9*(d-a.u.Pi);h=Math.max(h,wz(a.B)+2048*f);c=h/f*a.u.Nz/(b+c);c=Math.min(c,d);a.u.be&&e&&(c=Math.max(c,a.u.be));return Bz(a,c,b)};
Bz=function(a,b,c){return Math.ceil(Math.max(Math.max(65536,a.u.Mz*c),Math.min(Math.min(a.u.Y,31*c),Math.ceil(b*c))))||65536};
rga=function(a,b){var c=Bz(a,b.video?a.u.BC:a.u.Sq,b.u);return a.u.Sj&&b.video?Math.max(c,a.u.Sj):c};
Dz=function(a){var b=yz(a.B);if(a.u.JF)return b;var c=a.u.Lz,d=1E-9+wz(a.B);b*=Math.min(1,c/(b*d));a.u.Rj&&(c=((uz(a.B.D,.98)||0)-1)/2,c=Math.max(0,Math.min(1,c)),b*=1-a.u.Rj*c);return b};
Ez=function(a){return Dz(a)/a.C};
g.Fz=function(){this.segments=[]};
Gz=function(a,b){if(b>a.Ob())a.segments=[];else{var c=ib(a.segments,function(d){return d.jb>=b},a);
0<c&&a.segments.splice(0,c)}};
Hz=function(a,b,c,d,e,f){f=void 0===f?0:f;ww.call(this,a,b,d);this.index=e||new g.Fz;this.Kg=f;this.X=c;this.P=!0;if(this.K=!c)this.F=!0};
Iz=function(a){a=void 0===a?{}:a;var b=void 0===a.ki?!1:a.ki,c=void 0===a.defraggedFromSubfragments?!1:a.defraggedFromSubfragments,d=void 0===a.isManifestless?!1:a.isManifestless,e=void 0===a.Ly?!1:a.Ly;return((void 0===a.hasSubfragmentedFmp4?0:a.hasSubfragmentedFmp4)||b)&&d?e&&tx()?3:2:c&&d?-1:1};
Jz=function(a){return Iz({hasSubfragmentedFmp4:a.D.Ue,ki:a.D.Ue,defraggedFromSubfragments:a.ej,isManifestless:!0,Ly:a.ea})};
Kz=function(a){var b=void 0===a?{}:a;a=void 0===b.Kg?0:b.Kg;var c=void 0===b.jA?!1:b.jA,d=void 0===b.aB?0:b.aB,e=void 0===b.Vd?0:b.Vd,f=void 0===b.fg?Infinity:b.fg,h=void 0===b.IC?0:b.IC;b=void 0===b.uf?!1:b.uf;this.segments=[];this.u=a;this.C=d;this.B=c;this.D=this.G=-1;this.P=e;this.W=f;this.K=null;this.N=h;this.F=b};
Mz=function(a,b,c){b=Lz(a,b);return 0<=b&&(c||!a.segments[b].pending)};
Lz=function(a,b){return Bb(a.segments,function(c){return b-c.jb})};
Nz=function(a,b,c){c=void 0===c?{}:c;Hz.call(this,a,b,"",void 0,void 0,c.Kg||0);this.index=new Kz(c)};
sga=function(a,b,c,d,e){this.jb=a;this.startSecs=b;this.durationSecs=c;this.u=d||NaN;this.B=e||NaN};
Oz=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""};
Pz=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};
Qz=function(a){if(!a)return 0;var b=a.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return b?3600*(Number(b[2])|0)+60*(Number(b[4])|0)+(Number(b[6])|0):Number(a)|0};
Rz=function(a){return a.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?a+"Z":a};
Sz=function(){this.u=[];this.B=null;this.G=0;this.D=[];this.C=!1;this.K="";this.F=-1};
tga=function(a){var b=a.D;a.D=[];return b};
uga=function(){this.D=[];this.u=null;this.B={};this.C={}};
yga=function(a,b,c){var d=[];b=Array.from(b.getElementsByTagName("SegmentTimeline"));b=g.q(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=e.parentNode.parentNode,h=null;"Period"==f.nodeName?h=vga(a):"AdaptationSet"==f.nodeName?h=wga(a,f.attributes.id?f.attributes.id.value:f.attributes.mimetype.value):"Representation"==f.nodeName&&(h=xga(a,f.attributes.id.value));if(null==h)return;h.update(e,c);vb(d,tga(h))}vb(a.D,d);oaa(a.D,function(l){return 1E3*l.startSecs+l.u})};
zga=function(a){a.u&&(a.u.u=[]);g.Ib(a.B,function(b){b.u=[]});
g.Ib(a.C,function(b){b.u=[]})};
vga=function(a){a.u||(a.u=new Sz);return a.u};
wga=function(a,b){a.B[b]||(a.B[b]=new Sz);return a.B[b]};
xga=function(a,b){a.C[b]||(a.C[b]=new Sz);return a.C[b]};
Tz=function(a,b,c,d,e){ww.call(this,a,b,d||void 0,e||void 0);this.index=new g.Fz;this.K=c};
Uz=function(a,b,c){var d=a.index.qw(b),e=a.index.Fe(b),f=a.index.getDuration(b),h;c?f=h=0:0<a.info.u&&(h=a.info.u*f);c=b==a.index.Ob()&&0<h;a=new Rt(3,a,null,"otfCreateRequestInfoForSegment",b,e,f,0,h,c);return new Zv([a],d)};
Aga=function(a,b){if(!a.index.Ec()){for(var c=[],d=b.G,e=b.K.split(",").filter(function(r){return 0<r.length}),f=0,h=0,l=0,m=/^(\d+)/,n=/r=(\d+)/,p=0;p<d;p++){if(0>=l)if(l=e.shift(),h=(h=m.exec(l))?+h[1]/1E3:0)l=(l=n.exec(l))?+l[1]:0,l+=1;
else return;c.push(new Lt(p,f,h,NaN,"sq/"+(p+1)));f+=h;l--}a.index.append(c)}};
Bga=function(a,b){this.experimentIds=a?a.split(","):[];this.flags=Qp(b||"");var c={};g.Fb(this.experimentIds,function(d){c[d]=!0});
this.experiments=c};
g.Q=function(a,b){return"true"===a.flags[b]};
g.P=function(a,b){return Number(a.flags[b])||0};
g.Vz=function(a,b){var c=a.flags[b];return c?c.toString():""};
Cga=function(a,b,c,d){this.displayName=a;this.vssId=b;this.languageCode=c;this.kind=void 0===d?"":d};
Wz=function(a,b,c){this.name=a;this.id=b;this.isDefault=c};
Xz=function(){this.endTime=this.startTime=0;this.length=1};
Yz=function(){this.buffered=new Xz;this.appendWindowStart=this.appendWindowEnd=-1;this.mode="sequence";this.onerror=this.onabort=null;this.timestampOffset=-1;this.updating=!1};
Dga=function(a,b){return Zz(function(c,d){return g.Sr(c,d,4,1E3)},a,b)};
g.$z=function(a){var b;a.responseType&&"text"!==a.responseType?"arraybuffer"===a.responseType&&(b=bu(new Uint8Array(a.response))):b=a.responseText;return!b||2048<b.length?"":0===b.indexOf("https://")?b:""};
Zz=function(a,b,c){b.match(Ega);return a(b,c).then(function(d){var e=g.$z(d);return e?Zz(a,e,c):d})};
aA=function(a,b,c){a=void 0===a?"":a;b=void 0===b?null:b;c=void 0===c?!1:c;g.O.call(this);this.ea=this.duration=0;this.uf=this.G=this.isLive=this.C=!1;this.fg=this.Vd=0;this.isOtf=this.Bg=!1;this.W=(0,g.N)();this.K=Infinity;this.u={};this.sourceUrl=a||"";this.Ha=this.Y=0;this.F=null;this.ra=!!b&&g.Q(b,"html5_live_nonzero_first_segment_start_time");this.isManifestless=!1;this.X=[];this.Aa=!!b&&g.Q(b,"html5_live_self_init_segments");this.D=null;this.za=c;this.ka=!b||!g.Q(b,"html5_manifest_without_credentials");
this.P=0;this.ba=!!b&&g.Q(b,"disable_html5_manifest_namespace_redux");this.da="";this.N=NaN;this.ia=b&&g.Q(b,"disable_html5_duration_caching")?Infinity:10;this.xj=this.Ql=this.B=0};
Fga=function(a){return g.Mb(a.u,function(b){return!!b.info.video&&jw(b.info.video)})};
bA=function(a){return g.Mb(a.u,function(b){return!!b.info.Bd})};
Gga=function(a){return g.Mb(a.u,function(b){return uw(b.info.mimeType)})};
Hga=function(a){return Nb(a.u,function(b){return b.info.video?b.St():!0})};
cA=function(a){return g.Mb(a.u,function(b){return Hv(b.B.u)})};
dA=function(a,b){a.u[b.info.id]=b};
Iga=function(a,b,c,d){c=void 0===c?0:c;var e=new aA("",d,!1);e.duration=c||0;g.Fb(a,function(f){var h=eA(f,b,e.duration),l=Nt(f.init),m=Nt(f.index),n=parseInt(f.clen,10),p=fA(f.url,f.sp,f.s);f=parseInt(f.lmt,10);p&&dA(e,new zw(p,h,l,m,n,f))});
return e};
Jga=function(a,b,c,d){c=void 0===c?0:c;var e=new aA("",d,!1);e.duration=c||0;g.Fb(a,function(f){var h=eA(f,b,e.duration),l=fA(f.url,f.sp,f.s);if(!g.kv(h)){var m=d&&g.Q(d,"html5_manifestless_vp9_otf"),n=d&&g.Q(d,"html5_otf_webm_audio_killswitch");if(!m||!h.isVideo()&&n)return}l&&(h.video&&3==h.video.streamType?dA(e,new Tz(l,h,"sq/0",null,null)):(m=Nt(f.init),f=Nt(f.index),dA(e,new Tz(l,h,"",m,f))))});
e.isOtf=!0;return e};
Kga=function(a,b,c,d){var e=new aA("",d,!0);g.Fb(a,function(f){var h=eA(f,c),l=fA(f.url,f.sp,f.s),m=parseInt(f.target_duration_sec,10)||5;f=parseInt(f.max_dvr_duration_sec,10)||14400;var n=parseInt(l.get("mindsq"),10)||parseInt(l.get("min_sq"),10)||0,p=parseInt(l.get("maxdsq"),10)||parseInt(l.get("max_sq"),10)||Infinity;e.Vd=e.Vd||n;e.fg=e.fg||p;var r=!uw(h.mimeType),t=d&&g.P(d,"html5_manifestless_max_segment_history");l&&dA(e,new Nz(l,h,{Kg:m,jA:r,aB:f,Vd:n,fg:p,IC:t,uf:b}))});
e.C=!b;e.Bg=!0;e.isManifestless=!0;e.isLive=!b;e.uf=b;e.G=!!e.Vd&&!!e.fg&&isFinite(e.fg);return e};
eA=function(a,b,c){c=void 0===c?0:c;var d=a.type;var e=a.itag;var f=a.xtags;f&&(e=a.itag+";"+f);var h=null;f=null;if(/(vp9|vp09|vp8|avc1|av01)/.test(d)){h=(a.size||"640x360").split("x");h=new hw(+h[0],+h[1],+a.fps,+a.projection_type,+a.stereo_layout,void 0,a.quality_label,a.eotf,a.primaries,+a.stream_type);var l=h;null===gA&&(gA=window.MediaSource&&MediaSource.isTypeSupported&&MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.16.09.00"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.99.99.00"'));
if((gA||hA)&&('video/webm; codecs="vp9"'==d||'video/webm; codecs="vp9.2"'==d)){var m="00",n="08",p="01",r="01",t="01";'video/webm; codecs="vp9.2"'==d&&(m="02",n="10","bt2020"===l.primaries&&(t=p="09"),"smpte2084"==l.u&&(r="16"),"arib-std-b67"==l.u&&(r="18"));d='video/webm; codecs="'+["vp09",m,"51",n,"01",p,r,t,"00"].join(".")+'"'}}m=l=null;/(opus|mp4a|dtse|ac-3|ec-3)/.test(d)&&(l=new ew(+a.audio_sample_rate||void 0,+a.audio_channels||0,+a.spatial_audio_type),a.name&&(m=new Wz(a.name,a.audio_track_id,
"1"==a.isDefault)));a.caption_display_name&&a.caption_vss_id&&a.caption_language_code&&(f=new Cga(a.caption_display_name,a.caption_vss_id,a.caption_language_code,a.caption_kind));n=parseInt(a.bitrate,10)/8;p=parseInt(a.clen,10);c=c&&p?p/c:0;p=null;if(b&&a.drm_families)for(p={},a=g.q(a.drm_families.split(",")),r=a.next();!r.done;r=a.next())r=r.value,p[r]=b[r];return new nw(e,d,l,h,m,p,n,c,f)};
Lga=function(a){return bi(a,function(b){return 3==+b.stream_type})?3:0};
iA=function(a,b){return a.F?wb(a.F.D,b):a.X.length?wb(a.X,b):[]};
fA=function(a,b,c){b=void 0===b?"":b;c=void 0===c?"":c;a=new Ev(a,!0);a.set("alr","yes");c&&(c=tv(decodeURIComponent(c)),a.set(b,encodeURIComponent(c)));return a};
lA=function(a,b){var c=Oz(b,"id");c=c.replace(":",";");var d=Oz(b,"mimeType"),e=Oz(b,"codecs");d=e?d+'; codecs="'+e+'"':d;e=parseInt(Oz(b,"bandwidth"),10)/8;var f=parseInt(Pz(b,"BaseURL").getAttribute(jA(a,"contentLength")),10);f=a.duration&&f?f/a.duration:0;var h=null;if(/(vp9|vp09|vp8|avc1|av01)/.test(d)){h=parseInt(Oz(b,"width"),10);var l=parseInt(Oz(b,"height"),10),m=parseInt(Oz(b,"frameRate"),10),n=Mga(Oz(b,jA(a,"projectionType")));a:switch(Oz(b,jA(a,"stereoLayout"))){case "layout_left_right":var p=
1;break a;case "layout_top_bottom":p=2;break a;default:p=0}Oz(b,"video_level");h=new hw(h,l,m,n,p,void 0,void 0,void 0,void 0)}m=l=null;if(/(opus|mp4a|dtse|ac-3|ec-3)/.test(d))if(l=parseInt(Oz(b,"audioSamplingRate"),10),m=parseInt(Oz(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"),10),n=Nga(Oz(b,jA(a,"spatialAudioType"))),l=new ew(l,m,n),m=Oz(b,"lang")||"und",n=Pz(b,"Role")){var r=Oz(n,"value")||"";Sb(kA,r)?(n=m+"."+kA[r],p="main"==r,m=Oz(b,jA(a,"langName"))||m+" - "+r,m=new Wz(m,
n,p)):m=null}else m=null;p=null;if(n=Pz(b,"ContentProtection"))if(g.Xj())if((p=n.attributes.schemeIdUri)&&"http://youtube.com/drm/2012/10/10"==p.value)for(p={},n=n.firstChild;null!=n;n=n.nextSibling)"yt:SystemURL"==n.nodeName&&(p[n.attributes.type.value]=n.textContent.trim());else p=null;else if((p=n.attributes.schemeIdUri)&&"http://youtube.com/drm/2012/10/10"==p.textContent)for(p={},n=n.firstChild;null!=n;n=n.nextSibling)"SystemURL"==n.localName&&"http://youtube.com/yt/2012/10/10"==n.namespaceURI&&
(p[n.attributes.type.textContent]=n.textContent.trim());else p=null;return new nw(c,d,l,h,m,p,e,f)};
Mga=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}};
Nga=function(a){switch(a){case "spatial_audio_type_ambisonics_5_1":return 1;case "spatial_audio_type_ambisonics_quad":return 2;case "spatial_audio_type_foa_with_non_diegetic":return 3;default:return 0}};
mA=function(a,b){b=void 0===b?"":b;a.Ha=1;a.W=(0,g.N)();return Hm(Dga(b||a.sourceUrl,{format:"RAW",method:"GET",withCredentials:a.ka}).then((0,g.z)(a.pJ,a)),(0,g.z)(a.rJ,a))};
Oga=function(a,b,c){return mA(new aA(a,b,c),a)};
Pga=function(a,b,c){var d=a.getAttribute("media"),e=null;c||(a=a.getAttribute("mediaRange"),null!=a&&(c=a.split("-"),0<=parseInt(c[1],10)?e=Nt(a):d=d+"?range="+a));return new Lt(b.jb,b.startSecs,b.durationSecs,b.u,d,e,b.B)};
nA=function(a){return a.isLive&&(0,g.N)()-a.W>=a.K};
oA=function(a){var b=a.K;isFinite(b)&&(nA(a)?a.refresh():(b=Math.max(0,a.W+b-(0,g.N)()),a.D||(a.D=new g.F(a.refresh,b,a),g.C(a,a.D)),a.D.start(b)))};
Qga=function(a){a=a.u;for(var b in a){var c=a[b].index;if(c.Ec())return c.Ob()+1}return 0};
pA=function(a){return a.Ql&&a.B?a.Ql-a.B:0};
qA=function(a){if(!isNaN(a.N))return a.N;var b=a.u,c;for(c in b){var d=b[c].index;if(d.Ec()){b=0;for(c=d.bh();c<=d.Ob();c++)b+=d.getDuration(c);b/=d.Wm();b=.5*Math.round(b/.5);d.Wm()>a.ia&&(a.N=b);return b}if(a.isLive&&(d=b[c],d.Kg))return d.Kg}return NaN};
Rga=function(a,b){var c=Vb(a.u,function(e){return e.index.Ec()});
if(!c)return NaN;c=c.index;var d=c.dh(b);return c.Fe(d)==b?b:d<c.Ob()?c.Fe(d+1):NaN};
Sga=function(a,b){g.Ib(a.u,function(c){g.Ib(b,function(d,e){var f=c.B;f.u.set(e,d);f.D.set(e,d);f.C&&f.C.set(e,d)})})};
Tga=function(a,b){if(!a.u["0"]){var c=new nw("0","fakesb",void 0,new hw(0,0,0,void 0,void 0,"auto"),null,null,1);a.u["0"]=b?new Hz(new Ev("http://www.youtube.com/videoplayback"),c,"fake"):new zw(new Ev("http://www.youtube.com/videoplayback"),c,new Mt(0,0),new Mt(0,0),0,NaN)}};
jA=function(a,b){return a.ba?"yt:"+b:a.da+":"+b};
Uga=function(a){return g.jb(Object.values(a.u),function(b){return b.info.Bd&&b.info.video?480<b.info.video.xc&&"H"==b.info.Eb:!1})};
rA=function(a,b,c,d){g.O.call(this);this.D=0;this.B=b;this.u=c;this.F=a;this.N=d;this.G=0;this.K=this.F.isManifestless&&!this.F.uf;this.C=!1;this.P=null};
sA=function(a,b){var c=a.u.index,d=a.B.B;Mz(c,d)||b&&b.B==d?(a.F=!Mz(c,d),a.N=!Mz(c,d)):(a.F=!0,a.N=!0)};
tA=function(a,b,c){if(!a.u.le())return 0!=b&&ez(a),b;var d=Py(a,b);if(!isNaN(d))return d;fz(a);return c&&(c=By(c.Ye(),b),!isNaN(c))?(Ry(a,c+Vga),b):Ry(a,b)};
Xga=function(a,b,c,d){if(a.C&&a.D){var e=Wga(a,b,c);if(-1!=e){a.B.F=!1;a.u.F=!1;a.K=!0;g.rm(function(){uA(a,"seekreason","behindMinSq");vA(a,e)});
return}}c?a.B.N=!1:a.u.N=!1;0<=Py(a.B,a.D)&&0<=Py(a.u,a.D)?((a.B.F||a.u.F)&&uA(a,"iterativeSeeking","done;count."+a.G,!1),a.B.F=!1,a.u.F=!1):d&&g.rm(function(){if(a.K||!a.N.da)a.N.Qj?wA(a):c&&vA(a,b.startTime);else{var f=b.startTime,h=b.duration,l=c?a.B.F:a.u.F;l=!a.la()&&l;var m=-1!=a.B.G&&-1!=a.u.G,n=!a.B.N&&!a.u.N;l&&m&&n&&(a.D>=f&&a.D<f+h+.1?((c?a.B:a.u).F=!1,a.B.F||a.u.F||(uA(a,"iterativeSeeking","done;count."+a.G,!1),a.G=0)):8>a.G?(a.G++,uA(a,"iterativeSeeking","inprogress;count."+a.G+";target."+
a.D+";actual."+f+";duration."+h+";isVideo."+c,!1),a.seek(a.D)):(uA(a,"iterativeSeeking","incomplete;count."+a.G+";target."+a.D+";actual."+f,!1),a.G=0,a.B.F=!1,a.u.F=!1,a.V("seekplayerrequired",f+.1,!0)))}})};
Wga=function(a,b,c){if(!a.C)return-1;c=(c?a.B:a.u).u.index;var d=c.dh(a.D);return(Mz(c,a.F.Vd)||b.jb==a.F.Vd)&&d<a.F.Vd?a.F.uc():-1};
vA=function(a,b){!a.la()&&a.K&&-1!=a.B.G&&-1!=a.u.G&&(a.K=!1,a.V("seekplayerrequired",b+.1,a.N.Qj))};
wA=function(a){var b=-1!=a.B.G,c=-1!=a.u.G;if(!b||!c)if(b=!b&&fy(a.B.C),c=!c&&fy(a.u.C),b||c)if(c=b?a.B:a.u,b=b?a.u:a.B,c.G=fy(c.C).info.B,-1!=b.G){var d=Math.max(b.u.index.Fe(b.G),c.u.index.Fe(c.G));uA(a,"seekreason","initManifestlessSync");g.rm(function(){return vA(a,d)});
a.P&&(a.P.resolve(d+.1),a.P=null)}};
uA=function(a,b,c,d){a.V("ctmp",b,c,void 0===d?!1:d)};
xA=function(a,b){Qs.call(this,1,arguments)};
yA=function(a,b){Qs.call(this,1,arguments);this.u=a};
Yga=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
AA=function(a){var b=zA(a);if(b.aft)return b.aft;a=g.K((a||"")+"TIMING_AFT_KEYS",["ol"]);for(var c=a.length,d=0;d<c;d++){var e=b[a[d]];if(e)return e}return NaN};
BA=function(a){return!!g.Na("yt.timing."+(a||"")+"pingSent_")};
CA=function(a,b){g.Ja("yt.timing."+(b||"")+"pingSent_",a,void 0)};
EA=function(a){return g.Na("ytcsi."+(a||"")+"data_")||DA(a)};
FA=function(a){a=EA(a);a.info||(a.info={});return a.info};
zA=function(a){a=EA(a);a.tick||(a.tick={});return a.tick};
GA=function(a){var b=EA(a).nonce;b||(b=Cs(),EA(a).nonce=b);return b};
DA=function(a){var b={tick:{},info:{}};g.Ja("ytcsi."+(a||"")+"data_",b,void 0);return b};
IA=function(a){var b=zA(a||""),c=AA(a);c&&!HA&&(Ts(Zga,new xA(Math.round(c-b._start),a)),HA=!0)};
JA=function(){var a=g.Na("ytcsi.debug");a||(a=[],g.Ja("ytcsi.debug",a,void 0),g.Ja("ytcsi.reference",{},void 0));return a};
LA=function(a){a=a||"";var b=KA();if(b[a])return b[a];var c=JA(),d={timerName:a,info:{},tick:{},span:{}};c.push(d);return b[a]=d};
KA=function(){var a=g.Na("ytcsi.reference");if(a)return a;JA();return g.Na("ytcsi.reference")};
MA=function(){this.u=0};
NA=function(){MA.u||(MA.u=new MA);return MA.u};
PA=function(a,b){OA[b]=OA[b]||{count:0};var c=OA[b];c.count++;c.time=(0,g.N)();a.u||(a.u=mp(function(){var d=(0,g.N)(),e;for(e in OA)OA[e]&&6E4<d-OA[e].time&&delete OA[e];a&&(a.u=0)},5E3));
return 5<c.count?(6===c.count&&1>1E5*Math.random()&&(c=new Oq("CSI data exceeded logging limit with key",b.split("_")),0<=b.indexOf("plev")||g.Fr(c)),!0):!1};
QA=function(a){return!!g.K("FORCE_CSI_ON_GEL",!1)||g.ro("csi_on_gel")||!!EA(a).useGel};
RA=function(a){a=EA(a);if(!("gel"in a))a.gel={gelTicks:{},gelInfos:{}};else if(a.gel){var b=a.gel;b.gelInfos||(b.gelInfos={});b.gelTicks||(b.gelTicks={})}return a.gel};
SA=function(a){DA(a);$ga();CA(!1,a);a||(g.K("TIMING_ACTION")&&oo("PREVIOUS_ACTION",g.K("TIMING_ACTION")),oo("TIMING_ACTION",""))};
YA=function(a,b,c,d){d=d?d:a;TA(d);var e=d||"",f=KA();f[e]&&delete f[e];var h=JA(),l={timerName:e,info:{},tick:{},span:{}};h.push(l);f[e]=l;LA(d||"").info.actionType=a;SA(d);EA(d).useGel=!0;oo(d+"TIMING_AFT_KEYS",b);oo(d+"TIMING_ACTION",a);UA("yt_sts","c",d);VA("_start",c,d);if(QA(d)){a={actionType:WA[po((d||"")+"TIMING_ACTION")]||"LATENCY_ACTION_UNKNOWN",previousAction:WA[po("PREVIOUS_ACTION")]||"LATENCY_ACTION_UNKNOWN"};if(b=g.Ms())a.clientScreenNonce=b;b=GA(d);NA().info(a,b)}g.Ja("ytglobal.timing"+
(d||"")+"ready_",!0,void 0);XA(d)};
UA=function(a,b,c){if(null!==b)if(FA(c)[a]=b,QA(c)){var d=b;b=RA(c);if(b.gelInfos)b.gelInfos["info_"+a]=!0;else{var e={};b.gelInfos=(e["info_"+a]=!0,e)}if(a.match("_rid")){var f=a.split("_rid")[0];a="REQUEST_ID"}if(a in ZA){b=ZA[a];g.nb(aha,b)&&(d=!!d);a in $A&&"string"===typeof d&&(d=$A[a]+d.toUpperCase());a=d;d=b.split(".");for(var h=e={},l=0;l<d.length-1;l++){var m=d[l];h[m]={};h=h[m]}h[d[d.length-1]]="requestIds"===b?[{id:a,endpoint:f}]:a;b=Et({},e)}else g.nb(bha,a)||g.Fr(new Oq("Unknown label logged with GEL CSI",
a)),b=void 0;b&&aB(b,c)}else LA(c||"").info[a]=b};
aB=function(a,b){if(QA(b)){var c=LA(b||"");Et(c.info,a);c=RA(b);"gelInfos"in c||(c.gelInfos={});Et(c.gelInfos,a);c=GA(b);NA().info(a,c)}};
VA=function(a,b,c){var d=zA(c);if(g.ro("use_first_tick")&&bB(a,c))return d[a];if(!b&&"_"!==a[0]){var e=a;cB.mark&&(pc(e,"mark_")||(e="mark_"+e),c&&(e+=" ("+c+")"),cB.mark(e))}e=b||(0,g.N)();d[a]=e;e=RA(c);e.gelTicks&&(e.gelTicks["tick_"+a]=!0);c||b||(0,g.N)();if(QA(c)){LA(c||"").tick[a]=b||(0,g.N)();e=GA(c);if("_start"===a){var f=NA();PA(f,"baseline_"+e)||g.zq("latencyActionBaselined",{clientActionNonce:e},{timestamp:b})}else NA().tick(a,e,b);IA(c);e=!0}else e=!1;e||(XA(c),LA(c||"").tick[a]=b||(0,g.N)());
return d[a]};
dB=function(a){var b="above_the_fold";cB&&cB.measure&&(pc(b,"measure_")||(b="measure_"+b),a?cB.measure(b,a):cB.measure(b))};
bB=function(a,b){var c=zA(b);return a in c};
eB=function(a,b){bB("_start",b)&&!bB(a,b)&&VA(a,void 0,b)};
XA=function(a){if(!BA(a)){var b=g.K((a||"")+"TIMING_ACTION",void 0),c=zA(a);if(g.Na("ytglobal.timing"+(a||"")+"ready_")&&b&&bB("_start")&&AA(a))if(IA(a),a)fB(a);else{b=!0;var d=g.K("TIMING_WAIT",[]);if(d.length)for(var e=0,f=d.length;e<f;++e)if(!(d[e]in c)){b=!1;break}b&&fB(a)}}};
cha=function(){switch(To()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
fB=function(a){if(!QA(a)){var b=zA(a),c=FA(a),d=b._start,e=g.K("CSI_SERVICE_NAME","youtube"),f={v:2,s:e,action:g.K((a||"")+"TIMING_ACTION",void 0)},h=c.srt;void 0!==b.srt&&delete c.srt;b.aft=AA(a);var l=zA(a),m=l.pbr,n=l.vc;l=l.pbs;m&&n&&l&&m<n&&n<l&&FA(a).yt_pvis&&"youtube"===e&&(UA("yt_lt","hot_bg",a),e=b.vc,m=b.pbs,delete b.aft,c.aft=Math.round(m-e));for(var p in c)"_"!==p.charAt(0)&&(f[p]=c[p]);b.ps=(0,g.N)();p={};e=[];for(var r in b)"_"!==r.charAt(0)&&(m=Math.round(b[r]-d),p[r]=m,e.push(r+"."+
m));f.rt=e.join(",");b=!!c.ap;g.ro("debug_csi_data")&&(c=g.Na("yt.timing.csiData"),c||(c=[],g.Ja("yt.timing.csiData",c,void 0)),c.push({page:location.href,time:new Date,args:f}));c="";for(var t in f)f.hasOwnProperty(t)&&(c+="&"+t+"="+f[t]);f="/csi_204?"+c.substring(1);window.navigator&&window.navigator.sendBeacon&&b?At(f):g.zt(f);CA(!0,a);Ts(gB,new yA(p.aft+(Number(h)||0),a))}};
TA=function(a){if(QA(a))bB("_start",a)&&VA("aa",void 0,a);else if(!BA(a)){var b=g.K("CSI_SERVICE_NAME","youtube");g.K((a||"")+"TIMING_ACTION",void 0)&&b&&(VA("aa",void 0,a),UA("ap",1,a),UA("yt_fss","c",a),fB(a))}};
hB=function(){this.B=this.C=0;this.F={}};
iB=function(a,b,c,d,e,f){g.O.call(this);this.C=this.u=null;this.P=!1;this.B=f?1:0;this.F=this.D=NaN;this.G=0;this.K=b;this.W=a;this.N=c;this.N.C.subscribe("cuepoint",this.X,this);this.Y=d;this.ba=e};
jB=function(a,b){if(a.u){a.C=null;a.P=!1;var c=b.startTime+a.G-a.u.ze.startSecs;0>=c||(c=new Ht(a.u.ze.startSecs-(a.K.ac&&!isNaN(a.G)?a.G:0),c,a.u.ze.context,a.u.ze.identifier,"stop",a.u.ze.u+1E3*b.duration),a.V("ctmp","cuepointdiscontinuity","segNum."+b.jb,!1),a.X(c,b.jb))}};
kB=function(a,b){a.C=null;a.P=!1;0<b&&4===a.B&&(a.B=5)};
lB=function(a,b,c){this.errorCode=a;this.u=b;this.details=c||{}};
g.mB=function(a){var b;for(b in a)if(a.hasOwnProperty(b)){var c=(""+a[b]).replace(/[:,=]/g,"_");var d=(d?d+";":"")+b+"."+c}return d||""};
nB=function(a){var b=void 0===b?!1:b;if(a instanceof lB)return a;a=a&&a instanceof Error?a:Error(""+a);b?g.Er(a):g.Fr(a);return new lB(b?"player.fatalexception":"player.exception",b,{name:""+a.name,message:""+a.message})};
oB=function(a,b,c){g.O.call(this);var d=this;this.u=a;this.F=b;this.N=c;this.W=this.C=this.G=null;this.K=0;this.D=function(e){return d.V(e.type,d)};
this.supports(3)&&(this.u.addEventListener("updateend",this.D),this.u.addEventListener("error",this.D));this.X=0;this.P=wy([],[]);this.B=!1};
pB=function(){return!(!window.SourceBuffer||!SourceBuffer.prototype.changeType)};
dha=function(){this.ea=this.ra=this.B=this.D=this.C=this.G=this.K=this.X=this.W=!1;this.Y=!0;this.ba=!1;this.F=0;this.ka=!1;this.da=Infinity;this.ev=!1;this.Aa=!0;this.N=this.P=!1;this.u={};this.ia=!1};
eha=function(a){if(a.X)return["f"];var b="9h 9 h 8 (h ( H *".split(" ");a.ka&&b.unshift("1");a.B&&b.unshift("h");return b};
fha=function(a){var b=["o","a","A"];a.G&&(b=["m","M"].concat(b));a.C&&(b=["mac3","MAC3"].concat(b));a.D&&(b=["meac3","MEAC3"].concat(b));a.W&&(b=["so","sa"].concat(b));a.ra&&b.unshift("a");a.K&&b.unshift("ah");return b};
uB=function(a,b,c){b=void 0===b?{}:b;if(qB(a.D,rB.AV1_CODECS)&&qB(a.D,rB.HEIGHT)&&qB(a.D,rB.BITRATE))return b.isCapabilityUsable=1,8192;try{var d=sB();if(d)return b.localPref=d}catch(f){}d=g.P(a.experiments,"html5_av1_thresh");var e=g.P(a.experiments,"html5_av1_thresh_lcc");e&&2>=navigator.hardwareConcurrency&&(d=e);(e=g.P(a.experiments,"html5_av1_thresh_hcc"))&&4<navigator.hardwareConcurrency&&(d=e);b.coreCount=navigator.hardwareConcurrency;(a=g.P(a.experiments,"html5_av1_thresh_arm"))&&Wj()&&(b.isArm=
1,d=a);if(c){if((a=c.videoInfos.find(function(f){return rw(f)}))&&a.C)return d=8192,b.av1Threshold=d;
c=c.videoInfos[0].video;a=Math.min(tB("1",c.fps),tB("1",30));b.perfCap=a;d=Math.min(d,a);jw(c)&&(b.hdr=1,d*=.75)}else c=tB("1",30),b.perfCap30=c,d=Math.min(d,c),c=tB("1",60),b.perfCap60=c,d=Math.min(d,c);return b.av1Threshold=d};
vB=function(a,b,c,d){this.flavor=a;this.u=b;this.C=c;this.experiments=d;this.B={};this.Xg=this.keySystemAccess=null;this.Er=this.Fr=-1;this.ho=null;this.D="";this.F=!!d&&g.Q(d,"edge_nonprefixed_eme");this.D=d?g.Vz(d,"html5_hdcp_probing_stream_url"):""};
xB=function(a){return a.F?!1:!a.keySystemAccess&&!!wB()&&"com.microsoft.playready"===a.u};
yB=function(a){return"com.microsoft.playready"===a.u};
zB=function(a){return g.kr&&"com.microsoft.playready"===a.u&&!!navigator.requestMediaKeySystemAccess};
AB=function(a){return!a.keySystemAccess&&!!wB()&&"com.apple.fps.1_0"===a.u};
BB=function(a){return"com.youtube.fairplay"===a.u};
CB=function(a){return"fairplay"===a.flavor};
wB=function(){var a=window,b=a.MSMediaKeys;ck()&&!b&&(b=a.WebKitMediaKeys);return b&&b.isTypeSupported?b:null};
GB=function(a){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.DB&&!g.Xj())return Nn("45");if(g.kr||g.ve)return g.Q(a,"edge_nonprefixed_eme");if(g.EB)return Nn("47");if(g.FB){var b=g.P(a,"html5_safari_desktop_eme_min_version");if(b)return Nn(b)}return!g.Q(a,"html5_disable_nonprefixed_eme_for_other")};
gha=function(a,b,c){var d=Yj(),e=d?["com.youtube.fairplay"]:["com.widevine.alpha"];b&&(e.unshift("com.youtube.widevine.l3"),d&&c&&e.unshift("com.youtube.widevine.forcehdcp"));return d?e:a?[].concat(g.la(e),g.la(HB.playready)):[].concat(g.la(HB.playready),g.la(e))};
IB=function(){var a=g.Na("yt.player.utils.videoElement_");a||(a=g.Ee("VIDEO"),g.Ja("yt.player.utils.videoElement_",a,void 0));return a};
JB=function(a){var b=IB();return!!(b&&b.canPlayType&&b.canPlayType(a))};
hha=function(a){try{var b=KB('video/mp4; codecs="avc1.42001E"')||KB('video/webm; codecs="vp9"');return(KB('audio/mp4; codecs="mp4a.40.2"')||KB('audio/webm; codecs="opus"'))&&(b||!a)||JB('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(c){return"html5.missingapi"}};
KB=function(a){if(/opus/.test(a)&&(g.DB&&!Nn("38")||g.DB&&Uj("crkey")))return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!ak())return!1;'audio/mp4; codecs="mp4a.40.2"'===a&&(a='video/mp4; codecs="avc1.4d401f"');return!!JB(a)};
LB=function(){return"pictureInPictureEnabled"in window.document&&!!window.document.pictureInPictureEnabled};
MB=function(){var a=IB();return!!a.webkitSupportsPresentationMode&&"function"===typeof a.webkitSetPresentationMode};
NB=function(){var a=IB();try{var b=a.muted;a.muted=!b;return a.muted!==b}catch(c){}return!1};
OB=function(a,b){this.u=a;this.B=b;this.C=0;Object.defineProperty(this,"timestampOffset",{get:this.zR,set:this.DR});Object.defineProperty(this,"buffered",{get:this.xR})};
iha=function(){this.length=0};
PB=function(a){this.activeSourceBuffers=this.sourceBuffers=[];this.u=a;this.B=NaN;this.C=0;Object.defineProperty(this,"duration",{get:this.yR,set:this.CR});Object.defineProperty(this,"readyState",{get:this.AR});this.u.addEventListener("webkitsourceclose",(0,g.z)(this.BR,this),!0)};
QB=function(a,b,c,d){g.O.call(this);var e=this;this.u=a;this.P={error:function(){!e.la()&&e.isActive()&&e.V("error",e)},
updateend:function(){!e.la()&&e.isActive()&&e.V("updateend",e)}};
rs(this.u,this.P);this.B=b;this.N=c;this.G=0;this.F=Infinity;this.D=0;this.K=this.C=d};
RB=function(a,b){this.u=a;this.B=void 0===b?!1:b;this.C=!1};
SB=function(a,b){b=void 0===b?!1:b;g.B.call(this);this.F=new os(this);g.C(this,this.F);this.B=this.u=null;this.C=a;var c=this.C;c=c.VL?c.u.webkitMediaSourceURL:window.URL.createObjectURL(c);this.vp=new RB(c,!0);this.G=b;this.D=null;ps(this.F,this.C,["sourceopen","webkitsourceopen"],this.uP);ps(this.F,this.C,["sourceclose","webkitsourceclose"],this.tP)};
jha=function(a,b){TB(a)?g.rm(function(){return b(a)}):a.D=b};
UB=function(a,b){try{a.C.duration=b}catch(c){}};
VB=function(a){return!!a.u||!!a.B};
TB=function(a){try{return"open"==a.C.readyState}catch(b){return!1}};
WB=function(a){try{return"closed"==a.C.readyState}catch(b){return!0}};
XB=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)};
YB=function(a,b,c,d){if(!a.u||!a.B)return null;var e=a.u.isView()?a.u.u:a.u,f=a.B.isView()?a.B.u:a.B,h=new SB(a.C,!0);h.vp=a.vp;e=new QB(e,b,c,d);b=new QB(f,b,c,d);h.u=e;h.B=b;g.C(h,e);g.C(h,b);TB(a)||a.u.Rn(a.u.oc());return h};
ZB=function(a,b,c){this.experiments=a;this.W=b;this.X=void 0===c?!1:c;this.F=!!g.Na("cast.receiver.platform.canDisplayType");this.D={};this.K=!1;this.P=new Set;this.G=!0;this.B=!g.Q(this.experiments,"html5_disable_protected_hdr");this.C=!1;this.N=g.Q(this.experiments,"html5_disable_vp9_encrypted");a=g.Na("cast.receiver.platform.getValue");this.u=!this.F&&a&&a("max-video-resolution-vpx")||null};
kha=function(a,b){var c=Yt(b);if("0"===c)return!0;var d=b.mimeType;if(g.Q(a.experiments,"html5_disable_codec_on_platform_errors")){if(a.P.has(b.Eb))return!1}else if(rw(b)&&a.K)return!1;if(b.video&&(jw(b.video)||"bt2020"===b.video.primaries)&&!(qB(a,rB.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high)").matches||24<window.screen.pixelDepth&&window.matchMedia("(color-gamut: p3)").matches))||"338"===c&&!(g.DB?Nn(53):g.EB&&Nn(64)))return!1;var e={};b.video&&(b.video.width&&(e[rB.WIDTH.name]=
b.video.width),b.video.height&&(e[rB.HEIGHT.name]=b.video.height),b.video.fps&&(e[rB.FRAMERATE.name]=b.video.fps),b.video.u&&(e[rB.EOTF.name]=b.video.u),b.u&&(e[rB.BITRATE.name]=8*b.u),"("===b.Eb&&(e[rB.CRYPTOBLOCKFORMAT.name]="subsample"),2===b.video.projectionType||3===b.video.projectionType||4===b.video.projectionType)&&(e[rB.DECODETOTEXTURE.name]="true");b.audio&&b.audio.u&&(e[rB.CHANNELS.name]=b.audio.u);a.C&&pw(b)&&(e[rB.EXPERIMENTAL.name]="allowed");for(var f=g.q(Object.keys(rB)),h=f.next();!h.done;h=
f.next()){h=rB[h.value];var l;if(l=e[h.name])(l=h===rB.EOTF&&0<b.mimeType.indexOf("vp09.02"))||(l=b,l=g.Q(a.experiments,"html5_ignore_h264_framerate_cap")&&h===rB.FRAMERATE&&("H"===l.Eb||"h"===l.Eb)),l=!(l||h===rB.DECODETOTEXTURE&&!g.Q(a.experiments,"html5_decode_to_texture_cap"));if(l)if(qB(a,h))if(a.u){if(a.u[h.name]<e[h.name])return!1}else d=d+"; "+h.name+"="+e[h.name];else if(qw(b)&&h===rB.EOTF)return!1}!g.Q(a.experiments,"disable_html5_cast_hdcp_filter2")&&a.F&&b.video&&1080<b.video.xc&&b.Bd&&
(d+="; hdcp=2.2");return"227"===c&&!g.Q(a.experiments,"html5_enable_1080p_hq_cenc")||("585"===c||"588"===c||"583"===c||"586"===c||"584"===c||"587"===c||"591"===c||"592"===c)&&!g.Q(a.experiments,"html5_enable_new_hvc_enc")?!1:a.isTypeSupported(d)};
$B=function(){var a=Vj()&&!Nn(29),b=Uj("google tv")&&Uj("chrome")&&!Nn(30),c=Yj();return a||b||c?!1:!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)};
g.aC=function(a,b){b=void 0===b?!1:b;return $B()&&a.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!b&&a.canPlayType(IB(),"application/x-mpegURL")?!0:!1};
qB=function(a,b){b.name in a.D||(a.D[b.name]=lha(a,b));return a.D[b.name]};
lha=function(a,b){if(a.u)return!!a.u[b.name];if(b===rB.BITRATE&&g.Q(a.experiments,"html5_ignore_bad_bitrates")&&a.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!a.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(b===rB.AV1_CODECS)return a.isTypeSupported("video/mp4; codecs="+b.valid)&&!a.isTypeSupported("video/mp4; codecs="+b.invalid);if(b.video){var c='video/webm; codecs="vp9"';a.isTypeSupported(c)||(c='video/mp4; codecs="avc1.4d401e"')}else c=
'audio/webm; codecs="opus"',a.isTypeSupported(c)||(c='audio/mp4; codecs="mp4a.40.2"');return a.isTypeSupported(c+"; "+b.name+"="+b.valid)&&!a.isTypeSupported(c+"; "+b.name+"="+b.invalid)};
bC=function(a,b){this.id=a;this.u=b;this.captionTracks=[];this.B=this.D=this.F=null;this.C="UNKNOWN"};
cC=function(a,b,c,d){this.C=c;this.reason=d;this.B=a||0;this.u=b||0};
dC=function(a,b){return a.B===b.B&&a.u===b.u&&a.C===b.C&&a.reason===b.reason};
eC=function(a,b,c,d){return new cC(g.gw[a]||0,g.gw[b]||0,c,d)};
fC=function(a){var b=g.gw.auto;return a.B===b&&a.u===b};
gC=function(a){var b=a.u||a.B;return Vb(mha,function(c){return g.gw[c]===b})||"auto"};
hC=function(a,b){var c=g.gw[b];return a.B<=c&&(!a.u||a.u>=c)};
iC=function(a,b,c){this.videoInfos=a;this.audioTracks=[];this.u=b||null;this.B=c||null;if(this.u)for(a=new Set,b=g.q(this.u),c=b.next();!c.done;c=b.next())if(c=c.value,c.B&&!a.has(c.B.id)){var d=new bC(c.id,c.B);a.add(c.B.id);this.audioTracks.push(d)}};
jC=function(a,b,c){var d={};if(cA(c)){for(var e in c.u)a=c.u[e],d[a.info.Eb]=[a.info];return d}for(var f in c.u){e=c.u[f];var h=Yt(e.info);""==e.info.Eb||("304"==h||"266"==h)&&a.Y||a.ea&&"h"==e.info.Eb&&e.info.video&&1080<e.info.video.xc||a.ba&&e.info.video&&4320<=e.info.video.xc&&32<e.info.video.fps||!kha(b,e.info)||"(h"==e.info.Eb&&!b.B||(h="MAC3"==e.info.Eb||"MEAC3"==e.info.Eb||"M"==e.info.Eb,c.isLive&&h&&!a.P||(d[e.info.Eb]=d[e.info.Eb]||[],d[e.info.Eb].push(e.info)))}c=g.q(Object.keys(d));for(f=
c.next();!f.done;f=c.next())f=f.value,d[f]&&d[f][0].isVideo()&&(d[f]=nha(a,d[f]),d[f]=oha(b,d[f]));return g.Jb(d,function(l){return!!l.length})};
pha=function(a,b,c){var d={};g.Ib(b,function(e,f){var h=e.filter(function(l){var m;if(m=l.Bd&&c&&l.Bd[c.flavor]&&c.B[l.mimeType])(l="("!=l.Eb&&"(h"!=l.Eb)||(l=(qB(a,rB.CRYPTOBLOCKFORMAT)||a.X)&&!a.N),m=l;return m?!0:!1});
h.length&&(d[f]=h)});
return d};
qha=function(a,b,c,d,e){function f(t){return!!h[t]}
e=void 0===e?!1:e;var h=jC(a,b,c);bA(c)&&(h=pha(b,h,d));if(cA(c))return a=g.jb(Object.values(h),function(t){return!!t.length&&!!t[0].audio}),b=g.jb(Object.values(h),function(t){return!!t.length&&!!t[0].video}),a&&b||Ur(),Vr(new iC(b,a));
b=fha(a);b=g.jb(b,f);d=h[b];if(!b)return Ur();h["9"]&&h.h&&c.Bg&&!a.N&&delete h["9"];var l=h["9h"]?"9h":"9",m=[];if(a.ia&&!a.B)m=Fga(c)?h["1"]||h["9h"]?[].concat(h["1"],h["9h"]).filter(function(t){return t}):[].concat(h["9"],h.h).filter(function(t){return t}):[].concat(h["1"],h["9"],h.h).filter(function(t){return t});
else if(0<a.F&&h[l]&&h["1"]){if(e)c=h["1"],e=h[l];else{var n=Math.min(a.F,kC(h["1"])),p=kC(h[l]),r=function(t){return t<=n||t>p};
c=h["1"].filter(function(t){return r(t.Ka().xc)});
c.length&&(a.u.highestAv1Resolution=c[c.length-1].Ka().xc);e=h[l].filter(function(t){return!r(t.Ka().xc)});
e.length&&(a.u.higestVp9Resolution=e[e.length-1].Ka().xc)}m=[].concat(c,e).filter(function(t){return t})}if(m.length&&!a.B)return lC(m,d),Vr(new iC(m,d,mC(h,"",b)));
c=eha(a);c=g.jb(c,f);if(!c)return Ur();a.Aa&&"1"==c&&h[l]&&(a=kC(h["1"]),kC(h[l])>a&&(c=l));"9"==c&&h.h&&(a=kC(h["9"]),kC(h.h)>1.5*a&&(c="h"));a=h[c];if(!a.length)return Ur();lC(a,d);return Vr(new iC(a,d,mC(h,c,b)))};
mC=function(a,b,c){var d=a.h;"f"==b&&(d=a[b]);var e=a.a;b=a[b]!=d;a=a[c]!=e;return d&&e&&(b||a)?(lC(d,e),new iC(d,e)):null};
lC=function(a,b){g.Cb(a,function(c,d){return d.Ka().height*d.Ka().width-c.Ka().height*c.Ka().width||d.u-c.u});
g.Cb(b,function(c,d){return d.u-c.u})};
oha=function(a,b){var c=g.hh(b,function(d,e){return 32<e.Ka().fps?Math.min(d,e.Ka().width):d},Infinity);
Infinity>c&&(b=a.G&&(a.W||qB(a,rB.FRAMERATE))?g.Je(b,function(d){return 32<d.Ka().fps||d.Ka().width<c}):g.Je(b,function(d){return!(32<d.Ka().fps)}));
Zj()&&(b=g.Je(b,function(d){return"299"!=Yt(d)}));
return b};
nha=function(a,b){return b=g.Je(b,function(c){return c.Ka().xc<=a.da})};
kC=function(a){return g.hh(a,function(b,c){return Math.max(b,c.Ka().xc)},0)};
nC=function(a,b,c){this.audio=a;this.video=b;this.reason=c};
nga=function(){this.u=0};
oC=function(){g.O.call(this);this.items={}};
rha=function(a,b){this.encryptedClientKey=b;this.u=new Uint8Array(a.buffer,0,16);this.B=new Uint8Array(a.buffer,16)};
pC=function(a){try{return g.$e(a)}catch(b){return null}};
sha=function(a){try{var b=JSON.parse(a)}catch(e){}if(b){a=b.clientKey?pC(b.clientKey):null;var c=b.encryptedClientKey?pC(b.encryptedClientKey):null,d=b.keyExpiresInSeconds?1E3*Number(b.keyExpiresInSeconds)+(0,g.N)():null;a&&c&&d&&(this.u=new rha(a,c));b.onesieUstreamerConfig&&(this.onesieUstreamerConfig=pC(b.onesieUstreamerConfig));this.baseUrl=b.baseUrl}};
tha=function(){this.u=17;this.C=13E4;this.D=.5;this.B=!1};
rC=function(a,b){a=void 0===a?{}:a;b=void 0===b?{}:b;g.B.call(this);var c=this;this.values=a;this.kj=b;this.B={};this.C=this.u=0;this.D=new g.F(function(){qC(c)},1E4);
g.C(this,this.D)};
tC=function(a,b){sC(a,b);return a.values[b]&&a.kj[b]?a.values[b]/Math.pow(2,a.u/a.kj[b]):0};
sC=function(a,b){if(!a.values[b]){var c=uC();a.values=c.values||{};a.kj=c.halfLives||{};a.B=c.values?Object.assign({},c.values):{}}};
qC=function(a){var b=uC();if(b.values){b=b.values;for(var c={},d=g.q(Object.keys(a.values)),e=d.next();!e.done;e=d.next())e=e.value,b[e]&&a.B[e]&&(a.values[e]+=b[e]-a.B[e]),c[e]=tC(a,e);a.B=c}uha(a.B,a.kj)};
R=function(a,b){return void 0===b||null===b?a:"1"===b||!0===b||1===b||"True"===b?!0:!1};
vC=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a};
wC=function(a,b){return void 0===b||null===b?a:Number(b)};
xC=function(a,b){return void 0===b||null===b?a:b.toString()};
yC=function(a,b){if(b){if("fullwidth"===a)return Infinity;if("fullheight"===a)return 0}if(a){var c=a.match(vha);if(c){var d=Number(c[2]);c=Number(c[1]);if(!isNaN(d)&&!isNaN(c)&&0<d)return c/d}}return NaN};
zC=function(a){var b=a.docid||a.video_id||a.videoId||a.id;if(b)return b;b=a.raw_player_response;b||g.ro("parse_video_id_from_serialized_player_response_killswitch")||(a=a.player_response)&&(b=JSON.parse(a));return b&&b.videoDetails&&b.videoDetails.videoId||null};
YC=function(a,b,c){g.B.call(this);this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.yd=this.Lb=this.xb=this.zf=this.userDisplayName=this.userDisplayImage="";this.deviceParams={};this.controlsType="0";this.oj=NaN;this.Fc=!1;this.ra=0;this.ac=this.Qh=this.wg=!1;a=a?g.Zb(a):{};b&&b.csiPageType&&(this.csiPageType=b.csiPageType);b&&b.csiServiceName&&(this.csiServiceName=b.csiServiceName);this.cspNonce=xC("",a.csp_nonce);this.experiments=new Bga(b?b.serializedExperimentIds:a.fexp,b?b.serializedExperimentFlags:
a.fflags);this.Aa=b?b.serializedForcedExperimentIds:xC("",a.forced_experiments)||void 0;this.ca("web_player_deprecated_uvr_killswitch");try{var d=document.location.toString()}catch(w){d=""}this.Pb=d;this.Ve=(d=window.location.ancestorOrigins)?Array.from(d):[];d=!this.ca("web_player_context_config_embeds_fields_killswitch");this.B=R(!1,b&&d?b.isEmbed:a.is_embed);if(b&&b.device){var e=b.device;e.brand&&(this.deviceParams.cbrand=e.brand);e.browser&&(this.deviceParams.cbr=e.browser);e.browserVersion&&
(this.deviceParams.cbrver=e.browserVersion);this.deviceParams.c=e.interfaceName||"WEB";this.deviceParams.cver=e.interfaceVersion||"html5";e.interfaceTheme&&(this.deviceParams.ctheme=e.interfaceTheme);this.deviceParams.cplayer=e.interfacePlayerType||"UNIPLAYER";e.model&&(this.deviceParams.cmodel=e.model);e.network&&(this.deviceParams.cnetwork=e.network);e.os&&(this.deviceParams.cos=e.os);e.osVersion&&(this.deviceParams.cosver=e.osVersion);e.platform&&(this.deviceParams.cplatform=e.platform)}else this.deviceParams.c=
a.c||"web",this.deviceParams.cver=a.cver||"html5",this.deviceParams.cplayer="UNIPLAYER";b&&!this.ca("wpcc_loader_url_killswitch")?this.loaderUrl=this.B||AC(this)&&b.loaderUrl?b.loaderUrl||"":this.Pb:this.loaderUrl=this.B||AC(this)&&a.loaderUrl?xC("",a.loaderUrl):this.Pb;this.C=vv(this.loaderUrl,wha);e=this.loaderUrl;var f=void 0===f?!1:f;this.Tq=uv(vv(e,xha),e,f,"Trusted Ad Domain URL");this.ia=R(!1,a.privembed);this.protocol=0===this.Pb.indexOf("http:")?"http":"https";this.N=xv((b?b.customBaseYoutubeUrl:
a.BASE_YT_URL)||"")||xv(this.Pb)||this.protocol+"://www.youtube.com/";f=b?b.eventLabel:a.el;e="detailpage";"adunit"===f?e=this.B?"embedded":"detailpage":"embedded"===f||this.C?e=vC(e,f,yha):f&&(e="embedded");this.ba=e;up();f=null;e=b?b.playerStyle:a.ps;var h=g.nb(BC,e);!e||h&&!this.C||(f=e);this.playerStyle=f;this.P=(this.G=g.nb(BC,this.playerStyle))&&"area120-boutique"!==this.playerStyle&&"play"!==this.playerStyle&&"jamboard"!==this.playerStyle;this.Sq=!this.P;this.Y=R(!1,a.disableplaybackui);this.Rb=
IB().defaultPlaybackRate?CC||g.ik||DC?g.EB&&Nn("20")||g.DB&&Nn("4")||g.og&&Nn("11")||dk():!(g.og&&!Uj("chrome")||CC||Uj("android")||Uj("silk")):!1;this.Sj=R(!1,a.enable_faster_speeds);this.u=R("blazer"===this.playerStyle,a.is_html5_mobile_device||b&&b.isMobileDevice);this.u?f=!0:(f=Number(g.A()/1E3),e=g.es.getInstance(),f=this.ca("block_desktop_background_playback_with_mobile_cookie")&&e&&f>Number(e.get("dhmu",f.toString())));this.Rq=f;this.Pa="3"===this.controlsType||this.u||R(!1,a.use_media_volume);
this.W=NB();this.Rr=g.EC;this.Rh=R(!1,b&&d?b.embedOptOutDeprecation:a.opt_out_deprecation);this.pfpChazalUi=R(!1,(b&&d?b.pfpChazalUi:a.pfp_chazal_ui)&&!this.ca("embeds_pfp_chazal_ui_killswitch"));var l;b?void 0!==b.hideInfo&&(l=!b.hideInfo):l=a.showinfo;this.Pi=g.FC(this)&&!this.Rh||R(!GC(this)&&!HC(this)&&!this.G,l);this.Sh=b?!!b.mobileIphoneSupportsInlinePlayback:R(!1,a.playsinline);l=this.u&&IC&&null!=JC&&0<JC&&2.3>=JC;f=b?b.useNativeControls:a.use_native_controls;e=this.u&&!this.ca("embeds_enable_mobile_custom_controls");
f=KC(this)||!l&&R(e,f)?"3":"1";e=b?b.controlsType:a.controls;this.controlsType="0"!==e&&0!==e?f:"0";this.nd=this.u;this.color=vC("red",b&&d?b.progressBarColor:a.color,zha);this.dr="3"===this.controlsType||R(!1,b&&d?b.embedsShowModestBranding:a.modestbranding)&&"red"===this.color;this.za=!this.B;this.Qi=(f=!this.za&&!HC(this)&&!this.P&&!this.G&&!GC(this))&&!this.dr&&"1"===this.controlsType;this.bb=g.LC(this)&&f&&"0"===this.controlsType&&!this.Qi;this.Is=this.Ar=l;this.Ri=MC&&!g.Yd(601)?!1:!0;this.Qq=
this.B||!1;this.Ea=HC(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128);this.widgetReferrer=xC("",b&&d?b.widgetReferrer:a.widget_referrer);var m;b&&d?b.disableCastApi&&(m=!1):m=a.enablecastapi;m=!this.C||R(!0,m);l=!0;b&&b.disableMdxCast&&(l=!1);this.ce=m&&l&&"1"===this.controlsType&&!this.u&&(HC(this)||g.LC(this)||g.NC(this))&&!g.OC(this)&&!PC(this);this.Hs=LB()||MB();m=b?!!b.supportsAutoplayOverride:R(!1,a.autoplayoverride);this.Df=!this.u&&!Uj("nintendo wiiu")&&!Uj("nintendo 3ds")||
m;m=b?!!b.enableMutedAutoplay:R(!1,a.mutedautoplay);l=this.ca("embeds_enable_muted_autoplay")&&g.FC(this);this.Ef=m&&l&&this.W&&!KC(this);m=(HC(this)||GC(this))&&"blazer"===this.playerStyle;this.de=b?!!b.disableFullscreen:!R(!0,a.fs);this.ka=!this.de&&(m||ks());this.Ph=this.ca("uniplayer_block_pip")&&(Vj()&&Nn(58)&&!jk()||fk);m=g.FC(this)&&!this.Rh;var n;b?void 0!==b.disableRelatedVideos&&(n=!b.disableRelatedVideos):n=a.rel;this.qb=m||R(!this.G,n);this.Oi=R(!1,b&&d?b.enableContentOwnerRelatedVideos:
a.co_rel);this.F=jk()&&0<JC&&4.4>=JC?"_top":"_blank";this.Yc=g.NC(this);this.Bf=R("blazer"===this.playerStyle,b?b.enableCsiLogging:a.enablecsi);switch(this.playerStyle){case "blogger":n="bl";break;case "gmail":n="gm";break;case "books":n="gb";break;case "docs":n="gd";break;case "duo":n="gu";break;case "google-live":n="gl";break;case "google-one":n="go";break;case "play":n="gp";break;case "chat":n="hc";break;case "hangouts-meet":n="hm";break;case "photos-edu":case "picasaweb":n="pw";break;default:n=
"yt"}this.X=n;this.he=xC("",b&&d?b.authorizedUserIndex:a.authuser);var p;b?void 0!==b.disableWatchLater&&(p=!b.disableWatchLater):p=a.showwatchlater;this.Rk=(this.B&&!this.ia||!!this.he)&&R(!this.P,this.C?p:void 0);this.be=b?!!b.disableKeyboardControls:R(!1,a.disablekb);this.loop=R(!1,a.loop);this.pageId=xC("",a.pageid);this.As=R(!0,a.canplaylive);this.si=R(!1,a.livemonitor);this.disableSharing=R(this.G,b?b.disableSharing:a.ss);(p=a.video_container_override)?(n=p.split("x"),2!==n.length?p=null:(p=
Number(n[0]),n=Number(n[1]),p=isNaN(p)||isNaN(n)||0>=p*n?null:new g.ge(p,n))):p=null;this.Si=p;this.mute=b?!!b.startMuted:R(!1,a.mute);this.Cf=!this.mute&&R("0"!==this.controlsType,a.store_user_volume);p=b?b.annotationsLoadPolicy:a.iv_load_policy;this.annotationsLoadPolicy="3"===this.controlsType?3:vC(void 0,p,QC);this.captionsLanguagePreference=b?b.captionsLanguagePreference||"":xC("",a.cc_lang_pref);p=vC(2,b&&d?b.captionsLanguageLoadPolicy:a.cc_load_policy,QC);"3"===this.controlsType&&2===p&&(p=
3);this.Xi=p;this.ue=b?b.hl||"en_US":xC("en_US",a.hl);this.region=b?b.contentRegion||"US":xC("US",a.cr);this.hostLanguage=b?b.hostLanguage||"en":xC("en",a.host_language);this.Qj=!this.ia&&Math.random()<g.P(this.experiments,"web_player_api_logging_fraction");this.da=!this.ia;this.enabledEngageTypes=new Set;this.deviceHasDisplay=R(!0,a.deviceHasDisplay);this.oj=wC(this.oj,a.ismb);p=a;g.Vz(this.experiments,"html5_qoe_intercept")?p=g.Vz(this.experiments,"html5_qoe_intercept"):this.Sq?(p=p.vss_host||"s.youtube.com",
this.ca("www_for_videostats")&&"s.youtube.com"===p&&(p=RC(this.N)||"www.youtube.com")):p="video.google.com";this.Ti=p;this.Ng(a,!0);this.K=new oC;g.C(this,this.K);p=b?b.innertubeApiKey:xC("",a.innertube_api_key);n=b?b.innertubeApiVersion:xC("",a.innertube_api_version);m=b?b.innertubeContextClientVersion:xC("",a.innertube_context_client_version);this.ea={innertubeApiKey:po("INNERTUBE_API_KEY")||p,innertubeApiVersion:po("INNERTUBE_API_VERSION")||n,dC:g.K("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),Bs:this.deviceParams.c,
innertubeContextClientVersion:po("INNERTUBE_CONTEXT_CLIENT_VERSION")||m,Qw:this.hostLanguage,Pw:this.region,fC:po("INNERTUBE_HOST_OVERRIDE")||"",hC:!!g.K("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),gC:!!g.K("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1)};this.Th=null!=window.WebKitPlaybackTargetAvailabilityEvent;this.D=new ZB(this.experiments,this.ca("html5_force_hfr_support")?!0:SC(this)||Zj()||ak()||TC(this),g.DB&&g.Yd(56)||g.EB&&g.Yd(54)||TC(this));p=this.oj;n=this.experiments;m=new tha;g.UC(this)&&
(m.B=!0,m.D=.1);g.Q(n,"html5_ewma_bandwidth_estimator")&&(m.B=!0);g.Q(n,"html5_pctile_bandwidth_estimator")&&(m.B=!1);p&&(m.C=p/8);m.u=g.P(n,"html5_bandwidth_window_size")||m.u;this.schedule=new pga(m);this.enableSafetyMode=R(!1,a.enable_safety_mode);p=this.Y?!1:HC(this)&&"blazer"!==this.playerStyle;var r;b&&d?null!=b.disableAutonav&&(r=!b.disableAutonav):r=a.allow_autonav;this.sb=R(p,r);this.sendVisitorIdHeader=b?!!b.sendVisitorIdHeader:R(!1,a.send_visitor_id_header);this.Ja=(0,g.N)();var t;"docs"===
this.playerStyle&&(b&&d?t=b.disableNativeContextMenu:t=a.disable_native_context_menu);this.disableNativeContextMenu=R(!1,t);this.Wk=SC(this)&&this.ca("enable_skip_intro_button");this.embedConfig=xC("",b&&d?b.serializedEmbedConfig:a.embed_config);this.ge=R(!1,a.full_window);this.Qa=!g.VC(this)&&!WC(this)&&!g.OC(this)&&!PC(this)&&!0;this.livingRoomAppMode=vC("LIVING_ROOM_APP_MODE_UNSPECIFIED",a.living_room_app_mode,XC);this.transparentBackground=b?!!b.transparentBackground:R(!1,a.transparent_background);
this.useFastSizingOnWatchDefault=R(!0,b?b.useFastSizingOnWatchDefault:a.use_fast_sizing_on_watch_default);this.showMiniplayerButton=b?!!b.showMiniplayerButton:R(!1,a.show_miniplayer_button);this.externalFullscreen=b?!!b.externalFullscreen:R(!1,a.external_fullscreen);this.showMiniplayerUiWhenMinimized=b?!!b.showMiniplayerUiWhenMinimized:R(!1,a.use_miniplayer_ui);this.showBackButton=R(!1,a.showbackbutton);this.Vq=1E-4>Math.random();this.Af=a.onesie_hot_config?new sha(a.onesie_hot_config):void 0;this.isTectonic=
!!a.isTectonic;this.Gr=c;this.Zb=new rC;g.C(this,this.Zb)};
ZC=function(a,b){return!a.G&&Vj()&&Nn(55)&&"3"===a.controlsType&&!b};
g.$C=function(a){a=RC(a.N);return"www.youtube-nocookie.com"===a?"www.youtube.com":a};
g.aD=function(a){return g.OC(a)?"music.youtube.com":g.$C(a)};
bD=function(a,b,c){return a.protocol+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")};
cD=function(a){return HC(a)&&!g.VC(a)};
KC=function(a){return MC&&!a.Sh||Uj("nintendo wiiu")||Uj("nintendo 3ds")?!0:!1};
PC=function(a){return"area120-boutique"===a.playerStyle};
g.OC=function(a){return"music-embed"===a.playerStyle};
g.UC=function(a){return/^TVHTML5/.test(a.deviceParams.c)?!0:"TV"===a.deviceParams.cplatform};
AC=function(a){return"TVHTML5_SIMPLY_EMBEDDED_PLAYER"===a.deviceParams.c};
TC=function(a){return"CHROMECAST ULTRA/STEAK"===a.deviceParams.cmodel||"CHROMECAST/STEAK"===a.deviceParams.cmodel};
g.dD=function(){return 1<window.devicePixelRatio?window.devicePixelRatio:1};
SC=function(a){return"web"===a.deviceParams.c.toLowerCase().substr(0,3)};
g.eD=function(a){return"WEB"===a.deviceParams.c.toUpperCase()};
WC=function(a){return"WEB_KIDS"===a.deviceParams.c};
g.VC=function(a){return"WEB_UNPLUGGED"===a.deviceParams.c};
fD=function(a){return"TVHTML5_UNPLUGGED"===a.deviceParams.c};
g.gD=function(a){return g.VC(a)||"TV_UNPLUGGED_CAST"===a.deviceParams.c||fD(a)};
hD=function(a){return"WEB_REMIX"===a.deviceParams.c};
g.iD=function(a){return"WEB_EMBEDDED_PLAYER"===a.deviceParams.c};
jD=function(a){return"WEB_MUSIC_EMBEDDED_PLAYER"===a.deviceParams.c};
g.kD=function(a){return g.eD(a)&&a.ca("web_player_i_see_captions")};
g.mD=function(a){return(a.deviceHasDisplay&&g.DB&&!fk&&"3"!==a.controlsType?g.ik?a.B&&g.Yd(51):!0:!1)||(a.deviceHasDisplay&&g.EB&&!fk&&"3"!==a.controlsType?g.ik?a.B&&g.Yd(48):g.Yd(38):!1)||(a.deviceHasDisplay&&g.og&&!fk&&"3"!==a.controlsType?g.ik?a.B&&g.Yd(37):g.Yd(27):!1)||a.deviceHasDisplay&&g.lD&&!ek()&&g.Yd(11)||a.deviceHasDisplay&&g.FB&&g.Yd("604.4")};
nD=function(a){if(g.LC(a)&&IC)return!1;if(g.EB){if(!g.Yd(47)||!g.Yd(52)&&g.Yd(51))return!1}else if(g.FB)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1};
HC=function(a){return"detailpage"===a.ba};
g.LC=function(a){return"embedded"===a.ba};
oD=function(a){return"leanback"===a.ba};
GC=function(a){return"adunit"===a.ba||"gvn"===a.playerStyle};
g.NC=function(a){return"profilepage"===a.ba};
g.FC=function(a){return a.B&&g.LC(a)&&!GC(a)&&!a.G};
pD=function(a){if(!a.userDisplayImage)return"";var b=a.userDisplayImage.split("/");if(5===b.length)return a=b[b.length-1].split("="),a[1]="s20-c",b[b.length-1]=a.join("="),b.join("/");if(8===b.length)return b.splice(7,0,"s20-c"),b.join("/");if(9===b.length)return b[7]+="-s20-c",b.join("/");g.Fr(new Oq("Profile image not a FIFE URL.",a.userDisplayImage));return a.userDisplayImage};
g.qD=function(a){var b=g.aD(a);!a.ca("yt_embeds_disable_new_error_lozenge_url")&&Aha.includes(b)&&(b="www.youtube.com");return a.protocol+"://"+b};
RC=function(a){var b=g.xd(a);return(a=Number(g.wd(4,a))||null)?b+":"+a:b};
Bha=function(a,b,c,d){this.ia=a;this.u=b;this.K=c;this.P=d;this.F=rD;this.B=this.X=null;this.Y=-1;this.D=this.G=null;this.C=[];this.da={};this.N=0;this.ba=this.W=!1;this.ea=0;this.ra=new Set;this.Aa=!1;this.ka=null};
Eha=function(a,b,c){sD(a,b);Cha(a,c);a.X=a.G;Dha(a);a.B=a.D;return tD(a)};
Fha=function(a,b){if(dC(a.F,b))return null;if("m"==b.reason&&b.isLocked())return sD(a,b),a.N=a.C.length-1,uD(a),vD(a),a.ba=a.ba||a.B!=a.D,a.B=a.D,new nC(a.G,a.B,b.reason);"r"==b.reason&&(a.Y=-1);sD(a,b);vD(a);if("r"==b.reason&&a.D==a.B)return new nC(a.G,a.D,b.reason);if(a.B&&a.D&&wD(a,a.B.info)<wD(a,a.D.info)){var c=a.F.reason;a.W=a.W||"r"==c||"u"==c||"v"==c}return null};
Gha=function(a,b){if(b.info.video){if(a.B!=b)return a.B=b,tD(a)}else a.X=b;return null};
xD=function(a,b){b.W=(0,g.N)();a.Y=-1;sD(a,a.F);a.W=a.u.uC};
yD=function(a){for(var b=(0,g.N)()-6E4,c=g.q(a.P.videoInfos),d=c.next();!d.done;d=c.next())if(a.K.u[d.value.id].W>b)return!0;return!1};
Hha=function(a){return new nC(a.X,a.B,a.F.reason)};
zD=function(a){return a.F.isLocked()};
Iha=function(a){return 0<a.C.length&&0==a.N};
tD=function(a){a.Y=(0,g.N)();a.W=!1;return new nC(a.X,a.B,a.F.reason)};
AD=function(a){var b=!zD(a)&&-1<a.Y&&8E3>(0,g.N)()-a.Y,c=a.D&&3*wD(a,a.D.info)<Ez(a.ia);if(!b||c)uD(a),vD(a),a.ba=a.ba||a.D!=a.B};
BD=function(a,b){for(var c={},d=g.q(b),e=d.next();!e.done;e=d.next())if((e=e.value)&&e.video){var f=e.video.xc,h=c[f],l=h&&rw(h)&&h.video.xc>a.u.Pa,m=f<=a.u.Pa?rw(e):pw(e);if(!h||l||m)c[f]=e}return c};
sD=function(a,b){a.F=b;var c=a.P.videoInfos;if(!zD(a)){var d=(0,g.N)()-6E4;c=g.Je(c,function(p){if(p.u>this.u.P)return!1;p=this.K.u[p.id];var r=p.info.Eb;return this.u.Rr&&this.ra.has(r)||p.W>d?!1:4<p.B.B||4<p.N||p.G?!1:!0},a);
if(yD(a)){var e=g.Je(c,function(p){p=Yt(p);return"140"===p||"134"===p||"243"===p});
e.length&&(c=e)}}c.length||(c=a.P.videoInfos);e=g.Je(c,b.D,b);if(a.u.Hs||a.u.xz){var f="m"===b.reason||"s"===b.reason;a.u.wF&&CD&&g.FB&&(!f||1080>b.u)&&(e=e.filter(function(p){return!!p&&!!p.video&&!!p.C}));
if(!pB()&&0<e.length){var h=(f=e[0])&&f.video&&f.video.xc;if(h){f=e.filter(function(p){return!!p&&!!p.video&&p.video.xc==h});
var l=BD(a,f)[h].Eb;e=e.filter(function(p){return!!p&&!!p.video&&p.Eb==l})}}var m=BD(a,e);
e=e.filter(function(p){return!!p&&!!p.video&&p.Eb==m[p.video.xc].Eb})}e.length||(e=[c[0]]);
e.sort((0,g.z)(function(p,r){return wD(this,p)-wD(this,r)},a));
for(c=1;c<e.length;c++){f=e[c-1];var n=e[c];f.video.width>n.video.width?(g.qb(e,c),c--):wD(a,f)*a.u.u>wD(a,n)&&(g.qb(e,c-1),c--)}c=e[e.length-1];a.Aa=!!a.B&&!!a.B.info&&a.B.info.Eb!=c.Eb;a.C=e;tfa(a.u,c)};
Cha=function(a,b){if(b)a.G=a.K.u[b];else{var c=g.jb(a.P.u,function(d){return!!d.B&&d.B.isDefault});
c=c||a.P.u[0];a.G=a.K.u[c.id]}uD(a)};
DD=function(a,b){for(var c=0;c+1<a.C.length&&"tiny"==a.C[c].Ka().quality;)c++;var d=Ez(a.ia)/a.u.u;return wD(a,b.info)+wD(a,a.C[c])>d};
uD=function(a){if(!a.G||!a.u.C&&!a.u.Si)if(!a.G||!a.G.info.B)if(a.G=a.K.u[a.P.u[0].id],1<a.P.u.length){var b=!1;if(a.u.Hk){if(b=!0,a.u.Hz){var c=ib(a.P.u,function(d){return"250"===Yt(d)});
0<=c&&(a.G=a.K.u[a.P.u[c].id],b=DD(a,a.G))}}else b=a.F.isLocked()?240>a.F.u:DD(a,a.G);b&&(a.G=a.K.u[g.gb(a.P.u).id])}};
vD=function(a){a.u.Sh&&(a.ka=a.ka||new g.F(function(){a.u.Sh&&a.B&&!yD(a)&&1===Math.floor(10*Math.random())?xD(a,a.B):a.ka.start()},6E4),a.ka.Gb());
if(!a.D||!a.u.C&&!a.u.Si)if(zD(a))a.D=360>=a.F.u?a.K.u[a.C[0].id]:a.K.u[g.gb(a.C).id];else{for(var b=Math.min(a.N,a.C.length-1),c=Ez(a.ia),d=wD(a,a.G.info),e=c/a.u.B-d;0<b&&!(wD(a,a.C[b])<=e);b--);for(c=c/a.u.u-d;b<a.C.length-1&&!(wD(a,a.C[b+1])>=c);b++);a.D=a.K.u[a.C[b].id];a.N=b}};
Dha=function(a){var b=a.u.B,c=Ez(a.ia)/b-wD(a,a.G.info);b=g.kb(a.C,function(d){return wD(this,d)<c},a);
0>b&&(b=0);a.N=b;a.D=a.K.u[a.C[b].id]};
ED=function(a,b){a.u.Pa=uB(b,{},a.P);sD(a,a.F);AD(a);a.W=a.D!=a.B};
wD=function(a,b){if(!a.da[b.id]){var c=a.K.u[b.id].index.AB(a.ea,15);c=b.D&&a.B&&a.B.index.Ec()?c||b.D:c||b.u;a.da[b.id]=c}c=a.da[b.id];a.u.Lb&&b.video&&b.video.xc>a.u.Lb&&(c*=1.5);return c};
Jha=function(a,b){var c=Vb(a.K.u,function(d){return Yt(d.info)==b});
if(!c)throw Error("Itag "+b+" from server not known.");return c};
Kha=function(a){var b=[];if("m"==a.F.reason||"s"==a.F.reason)return b;var c=!1;if(Hga(a.K)){for(var d=Math.max(0,a.N-2);d<a.N&&d<a.C.length;d++){var e=Yt(a.C[d]);iw(a.C[d].Ka())||(c=!0);b.push(e)}b.reverse();if(!c&&a.u.Dz)for(d=Math.max(0,a.N-3);0<=d&&!c;d--)iw(a.C[d].Ka())||(c=!0,b.push(Yt(a.C[d])))}return b};
Lha=function(){this.jl=0;this.F=this.D=this.B=this.C=NaN;this.u="";this.bandwidthEstimate=NaN};
FD=function(a){this.data=window.Float32Array?new Float32Array(a):Array(a);this.B=this.u=a-1};
GD=function(a){return a.data[a.u]||0};
Mha=function(a){this.D=new FD(50);this.u=null;this.C=this.B=0;this.F=a};
HD=function(a,b,c,d){g.O.call(this);this.u=a;this.ea=b;this.ba=c;this.X=d;this.Y=NaN;this.C=this.N=this.F=null;this.B=this.K=this.P=this.G=NaN;this.D=!1;this.W=NaN};
Nha=function(a,b,c,d){return a.ra&&a.ia&&3===Jz(a)?new HD(a,b,c,d):null};
ID=function(a,b){if(a.u.Xz){var c=b.info.u;if(0>=c)a.W=NaN;else{var d=yz(a.ea),e=b.index.u;c=Math.max(1,d/c);a.W=Math.round(1E3*Math.max(((c-1)*e+a.u.N)/c,e-a.u.Zb))}}};
Oha=function(a,b){var c=g.A()/1E3,d=c-a.G,e=c-a.P,f=e>=a.u.Ti,h=!1;if(f){var l=0;!isNaN(b)&&b>a.K&&(l=b-a.K,a.K=b);l/e<a.u.cA&&(h=!0);a.P=c}c=d>=a.u.Zb&&!a.D;if(!f&&!c&&JD(a,b))return NaN;c&&(a.D=!0);a:{d=h;c=g.A()/1E3-(a.ba.u()||0)-a.N.B-a.u.N;f=a.C.startTime;c=f+c;if(d){if(isNaN(b)){KD(a,NaN,"n",b);f=NaN;break a}d=b-a.u.Rb;d<c&&(c=d)}else a.D&&(d=c+a.u.N-a.Y+a.u.VA,isNaN(b)||(d=Math.max(d,Math.min(c,b-a.u.Rb))),c=d);f=c=Math.max(c,f)}a.B=f;if(isNaN(a.B))return LD(a),NaN;if(!h&&JD(a,b))return MD(a,
b),NaN;if(a.B<=a.C.startTime)return KD(a,NaN,"y",b),LD(a),NaN;if(!a.X(a.B,!1))return!MD(a,b)&&h&&(KD(a,NaN,"t",b),LD(a)),NaN;h=a.B;KD(a,h,"s",b);LD(a);return h};
MD=function(a,b){return a.X(a.B,!0)?!1:(KD(a,NaN,"ns",b),LD(a),!0)};
JD=function(a,b){return isNaN(b)?!0:isNaN(a.B)?!1:b<a.B+(a.D?a.u.Rb:a.u.Yz)};
LD=function(a){a.F=null;a.N=null;a.C=null;a.G=NaN;a.P=NaN;a.K=NaN;a.B=NaN;a.D=!1};
KD=function(a,b,c,d){var e=Lx(a.F);e.ssr_sk=(1E3*b).toFixed(0);e.ssr_t=(1E3*a.B).toFixed(0);e.ssr_r=c;e.ssr_st=(1E3*a.G).toFixed(0);e.ssr_n=g.A().toFixed(0);e.ssr_f=(1E3*a.N.B).toFixed(0);e.ssr_fa=a.D?"1":"0";e.ssr_o=(1E3*a.ba.u()||0).toFixed(0);e.ssr_v=(1E3*d).toFixed(0);b=a.C.u.index;Mz(b,a.C.B,!0)&&(e.ssr_ist=(1E3*b.Fe(a.C.B)).toFixed(0),e.ssr_id=(1E3*b.getDuration(a.C.B)).toFixed(0));e=g.mB(e);a.V("ctmp","ssr",e,!1)};
g.OD=function(a,b,c){this.start=a;this.end=b;this.active=!0;this.color="";this.D=Pha++;a=c||{};this.id=a.id||"";this.priority=a.priority||7;this.visible=a.visible||!1;this.style=a.style||ND.AD_MARKER;this.namespace=a.namespace||"";if(b=a.color)b=b.toString(16),this.color="#"+Array(7-b.length).join("0")+b;this.tooltip=a.tooltip;this.icons=a.icons?a.icons.filter(function(d){return g.gh(d.thumbnails,function(e){return g.zv(e.url)})}):null;
this.visible=this.visible;this.style=this.style;this.start=this.start};
PD=function(a){return-0x8000000000000===a?"BEFORE_MEDIA_START":0===a?"MEDIA_START":0x7ffffffffffff===a?"MEDIA_END":0x8000000000000===a?"AFTER_MEDIA_END":a.toString()};
Qha=function(a,b){switch(a.style){case ND.CHAPTER_MARKER:return b?8:5;case ND.AD_MARKER:return 6;case ND.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}};
g.QD=function(a,b){return a.start-b.start||a.priority-b.priority||a.D-b.D};
g.RD=function(a){return"crn_"+a};
g.SD=function(a){return"crx_"+a};
Rha=function(){this.B=g.QD;this.u=[]};
Sha=function(a,b,c){var d=[];for(b=TD(a,b);b<a.u.length;++b){var e=a.u[b];(e.end<=c||e.contains(c))&&d.push(e);if(e.start>c)break}return d};
UD=function(a,b){for(var c=[],d=g.q(a.u),e=d.next();!e.done&&!(e=e.value,e.contains(b)&&c.push(e),e.start>b);e=d.next());return c};
Tha=function(a){return a.u.slice(TD(a,0x7ffffffffffff),a.u.length)};
TD=function(a,b){var c=Bb(a.u,function(d){return b-d.start||1});
return 0>c?-(c+1):c};
VD=function(a,b){for(var c=NaN,d=g.q(a.u),e=d.next();!e.done;e=d.next())if(e=e.value,e.contains(b)&&(isNaN(c)||e.end<c)&&(c=e.end),e.start>b&&(isNaN(c)||e.start<c)){c=e.start;break}return c};
WD=function(a,b){if(1<b.length&&b.length>a.u.length)a.u=a.u.concat(b),a.u.sort(a.B);else for(var c=g.q(b),d=c.next();!d.done;d=c.next())d=d.value,!a.u.length||0<a.B(d,a.u[a.u.length-1])?a.u.push(d):g.Eb(a.u,d,a.B)};
XD=function(a,b,c,d){g.B.call(this);this.W=a;this.X=b;this.K=c;this.P=d;this.C=NaN;this.F=this.G=this.started=!1;this.B=[];this.N=new g.F(this.ph,250,this);g.C(this,this.N);this.D=new g.F(this.ph,0,this);g.C(this,this.D);this.u=new Rha};
YD=function(a,b){if(!a.la()){for(var c=g.q(b),d=c.next();!d.done;d=c.next())if(d=d.value){var e=a.B.indexOf(d);0<=e&&a.B.splice(e,1);var f=a.u;e=f.u;d=g.Ab(e,d,f.B);0<=d&&g.qb(e,d)}a.ph()}};
ZD=function(a){return a.la()?[]:a.u.u};
$D=function(a,b){var c=ZD(a).filter(function(d){return d.namespace===b});
YD(a,c);return c};
aE=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.B.indexOf(e)&&(a.B.push(e),c.push([1,e]))}return c};
bE=function(a,b){var c=[];if(!b.length)return c;b.sort(g.QD);for(var d=g.q(b),e=d.next();!e.done;e=d.next())e=e.value,a.B.splice(a.B.indexOf(e),1),c.push([2,e]);return c};
Uha=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=d[1];1===d[0]?a.P(g.RD(e.namespace),e):a.P(g.SD(e.namespace),e)}};
Vha=function(a){a=void 0===a?{}:a;var b=a.Ue,c=a.yq,d=a.Ob,e=a.Vm;this.ej=a.ej;this.Ue=b;this.yq=c;this.Ob=d;this.Vm=e};
cE=function(a,b){if(0>b)return!0;var c=a.Ob();return b<c||b===c&&!a.ej||b===c&&(c=a.Vm())&&b===c.jb?!0:!1};
Wha=function(a,b,c){if(!cE(a,b))return 0;if(!a.Ue||!isNaN(c)&&0<c)return 2;if(0>b)return 1;c=a.Ob();return b<c||b===c&&(a=a.Vm())&&b===a.jb&&!a.pending?2:1};
Vfa=function(a,b,c,d){if(cE(a,b))return d;b=0;a.Ue&&(b=.2);return c+1E3*(a.yq+b)};
Wfa=function(a,b,c,d,e){b=Wha(a,b,e);if(2===b)return d;c=b?d:c+1E3*a.yq;a.Ue&&(c+=1E3*a.yq);return c};
dE=function(a,b,c,d){this.target=a;this.trigger=b;this.C=c;this.D=d;this.u=0};
eE=function(a,b,c){var d=void 0===c?{}:c;c=void 0===d.isBackground?!1:d.isBackground;var e=void 0===d.Fn?!1:d.Fn,f=void 0===d.Ds?!1:d.Ds;d=void 0===d.videoDuration?0:d.videoDuration;this.videoId=a;this.status=b;this.isBackground=c;this.Fn=e;this.Ds=f;this.videoDuration=d};
hE=function(a,b,c,d,e,f,h,l){l=void 0===l?!1:l;g.O.call(this);var m=this;this.ba=a;this.u=b;this.F=c;this.ra=new hB;this.ac=h||null;this.Y=new Az(a,b);this.K=new Bha(this.Y,b,this.F,d);a=Eha(this.K,e,f&&f.id);this.D=new Fy(this.u,a.audio,(0,g.z)(this.kA,this));this.B=new Fy(this.u,a.video,(0,g.z)(this.kA,this));fE(this,this.D);fE(this,this.B);this.B.C.ba=this.D.C;this.C=null;this.Pa={updateend:this.IP,error:this.OM};this.nd=new g.F(this.rh,0,this);g.C(this,this.nd);this.Pb=new g.F(this.rh,1E3,this);
g.C(this,this.Pb);this.yd=new g.F(this.rh,void 0,this);g.C(this,this.yd);this.Zb=new g.F(this.rh,1E4,this);g.C(this,this.Zb);this.X=this.G=NaN;this.Aa=this.Lb=0;this.ka=this.bb=this.ia=!1;this.Ea="";this.Ja=new rz(5);this.za={};this.sb=NaN;(this.N=Nha(this.u,this.ba,this.Ja,function(n,p){return gE(m,n,p)}))&&this.N.subscribe("ctmp",this.Xc,this);
this.P=new rA(this.F,this.B,this.D,this.u);g.C(this,this.P);this.W=new iB(this.F,this.u,this.B,this.P,this.D,l);g.C(this,this.W);this.W.subscribe("ctmp",this.Xc,this);Xha(this,this.P);this.Fc=NaN;this.Rb=null;this.da=NaN;this.Yc=!1;this.xb=0;this.ea=!1};
Yha=function(a){var b=a.B.u.index;a.Rb=new Vha({ej:a.u.ej,Ue:a.u.D.Ue,yq:b.u,Ob:function(){return b.Ob()},
Vm:function(){return b.Vm()}})};
iE=function(a,b){b=b||a.B&&a.B.B&&a.B.B.startTime||a.G;var c=a.B;var d=a.K;var e=d.D&&d.D.index.dh(b)||0;d.ea!=e&&(d.da={},d.ea=e,sD(d,d.F));AD(d);d.D&&!d.D.index.Ec()&&(d.ea=-1);d=d.D;c.u!=d&&(c.u=d);c=a.D;d=a.K.G;c.u!=d&&(c.u=d)};
jE=function(a,b){a.bb=b;a.ea||(a.ia=!0)};
kE=function(a){a.C&&a.C.u&&a.C.B&&(ts(a.C.u,a.Pa,a),ts(a.C.B,a.Pa,a));Gy(a.D,null);Gy(a.B,null);a.C=null};
mE=function(a,b){b=void 0===b?!1:b;kE(a);b?a.ea=!0:a.u.Ef?jE(a,a.Yc):jE(a,!1);lE(a)};
oE=function(a){a.C&&WB(a.C)&&(mE(a),a.u.Oz&&nE(a,!0,"fmt.unplayable",{unexpected:1}))};
qE=function(a,b,c){var d=a.W;if(2===d.B||3===d.B||a.ia&&(!zz(a.ba)||a.bb)||a.u.Vg&&!zz(a.ba))return!1;if(a.F.isManifestless){if(0<b.D.length&&b.B&&-1==b.B.B||b.D.length>=a.u.JG&&!a.u.Pb||!a.u.Ez&&0<b.D.length&&!a.u.D.Ue)return!1;if(b.P)return!a.F.isLive||!isNaN(a.sb)}if(qz(b))return!1;if(!(b.B||a.F.isManifestless&&a.u.Pb&&b.P)){if(!b.u.le())return!1;Ry(b,a.G)}d=b.D.length+c.D.length;(kz(b)||kz(c)||a.F.isLive&&(!a.u.Pb||!b.D.length))&&--d;if(d+1>=a.u.uz)return!1;d=b.B;if(!d)return!0;if(!Xv(d.u.B))return!1;
4==d.type&&d.u.le()&&(b.B=g.gb(d.u.gu(d)),d=b.B);if(!d.F&&!d.u.zj(d))return!1;var e=a.F.uf||a.F.G;if(a.F.isManifestless&&e){e=b.u.index.Ob();var f=c.u.index.Ob();e=Math.min(e,f);if(0<b.u.index.G&&0<e&&d.B>=e)return b.W=e,c.W=e,!1}if(d.u.info.audio&&4==d.type)return!1;if(mz(b)&&!a.u.ka)return!0;if(d.F||cz(b)&&cz(b)+cz(c)>a.u.za)return!1;e=!b.F&&!c.F;f=b==a.B&&a.ea;if(!(c=!!(c.B&&!c.B.F&&c.B.G<d.G)&&(!a.F.isManifestless||c.B&&c.B.G&&d.G)&&e&&!f||a.u.da&&!b.F&&c.F)&&(c=Tt(d))){c=d.G;a:if(d=a.W,d=d.u?
d.u.ze:null,a.ea&&d)a=d.startSecs+d.durationSecs;else{d=pE(a,b,!0);!zD(a.K)&&0<a.u.W&&(e=((0,g.N)()-a.Lb)/1E3,d=Math.min(d,a.u.W+a.u.nd*e));d=a.G+d;if(a.u.Ph&&(e=Zha(a)+a.u.Ph,e<d)){a.Xc("mrl","ori."+d+";mod."+e,!0);a.u.ZF&&(a.Lb=(0,g.N)());a=e;break a}a=d}c=c>a}return c?!1:(b=b.K)&&b.isLocked()?!1:!0};
sE=function(a,b,c){if(qE(a,b,c))if(c=$ha(a,b,c),a.u.Vz&&a.F.isManifestless&&!b.P&&0>c.u[0].B)a.Xc("invalidsq",Qt(c.u[0]));else{if(a.Qa){var d=a.W;var e=c.u[0].B;d=0>e&&!isNaN(d.F)?d.F:e;e=a.W;var f=0>d&&!isNaN(e.D)?e.D:c.u[0].K;e=aia(a.Qa.u,f,d,c.u[0].u.info.id);a.u.ce&&(d="decurl_itag_"+Yt(c.u[0].u.info)+"_sg_"+d+"_st_"+f.toFixed(3)+"_url_"+!!e+".",a.Xc("sdai",d));e&&(c.F=e)}a.u.Ar&&-1!=c.u[0].B&&c.u[0].B<a.F.Vd&&(c=b.u.Xl(a.F.Vd,!1));a=rE(a,c);b.D.push(a);b.B=g.gb(a.info.u)}};
$ha=function(a,b,c){if(b.P){if(a.F.isLive){var d=a.F.Vd&&a.F.G?b.u.Xl(a.F.Vd,!1):b.u.ij(Infinity);d.bf=a.sb}else d=b.u.Xl(0,!1);a.N?0==d.bf&&(d.D=a.N.W):d.D=a.Fc;return d}d=b.B;if(!d.u.le())return d.u.We()?(a=Cz(a.Y,b.u.info.u,c.u.info.u,0),a=d.u.Wl(d,a)):a=d.hk(),a;var e=d.G-a.G,f=!d.range||0==d.kb&&0==d.C?0:d.range.length-(d.C+d.kb),h=d.u;bia(a,b,e)&&0==f&&(a.F.isManifestless?h=b.u:(h=d.startTime+tE,d.kb&&(h+=d.duration),Ry(b,h),d=b.B,h=d.u));h.We()?(c=Cz(a.Y,h.info.u,c.u.info.u,e,Iha(a.K)&&a.ka),
d=cia(d,c,lz(b))):(0>d.B&&(c=Xt(d),c.pr=""+b.D.length,a.P.C&&(c.sk="1"),a.Xc("nosq",d.P+";"+g.mB(c))),d=h.hk(d));a.ea&&d.u.forEach(function(l){l.type=6});
return d};
bia=function(a,b,c){if(!lz(b)||!b.u.le())return!1;var d=Math.min(15,.5*pE(a,b,!0));return mz(b)||c<=d||a.K.W};
cia=function(a,b,c){b=a.u.Wl(a,b);if(b.range&&1<b.u.length)if(c||b.B.B||b.u[0].u!=a.u)b=a.u.Wl(a,b.u[0].kb);else{c=b.u[b.u.length-1];var d=c.kb/b.range.length;!c.D&&.4>d&&(b=a.u.Wl(a,b.range.length-c.kb))}return b};
dia=function(a,b){var c=cw(b),d=a.Y,e=Math.min(2.5,wz(d.B));d=Dz(d);var f=St(b.u[0]),h=Hv(b.B.u),l=a.u.Vg,m;a.Rb?m={sg:f,ti:h,Kl:l,xi:a.Rb,jb:b.u[0].B,bf:b.bf}:m={sg:f,ti:h,Kl:l};return new dx(a.ba,c,c-e*d,m)};
rE=function(a,b){Tt(b.u[b.u.length-1])&&uE(a,Gha(a.K,b.u[0].u));var c=dia(a,b);a.u.ce&&(c.F=[]);var d={jl:Math.max(0,b.u[0].K-a.G)};a.u.Df&&aw(b)&&b.u[0].u.info.video&&(d.TE=Kha(a.K));a.ea&&(d.uq=!0);return new Kx(a.u,b,c,a.za,function(e){a:{var f=e.info.u[0].u,h=f.info.video?a.B:a.D;if(!(2<=e.state)||4<=e.state||!e.u.Li()||e.K||!(!a.C||a.ia||3<dz(h,a.G))){var l=a.u.Rh;if(!(!l||4<=e.state||e.K<l||Wv(e.info.B,a.u,a.za))){l=a.za;var m=Gv(Vv(e.info.B));l=Uv(l,m);l.u||l.B||l.started||(l=dw(e.info,!0,
a.u.Qh))&&rE(a,l)}if(!a.la()&&2<=e.state){l=a.ra;var n=e.info.u[0].u;m=!l.D&&n.info.video;n=!l.u&&n.info.audio;4==e.state?m?l.Te("vrr"):n&&l.Te("arr"):5==e.state?m?(l.D=e.rd(),rp(4)):n&&(l.u=e.rd()):3==e.state&&m&&rp(4);4<=e.state&&(a.u.Aa&&(l=ex(e.timing),m=e.timing,a.Xc("rqs",g.mB({rn:e.N.toString(),rt:l.rt,pt:l.pt,stall:l.stall,elt:l.elbowTime,elb:l.elbowBytes,strm:""+e.u.Li(),d:m.F?m.F.join(""):""}))),e.Aa&&a.Xc("sbwe3","1",!0));if(4==e.state)jz(h,e),aw(e.info)&&vE(a,h,f,!0),a.rh();else if(4<=
e.state&&5==e.info.u[0].type)5==e.state&&(f=(e.info.u[0].u.info.video?a.B:a.D).D[0]||null)&&f.K&&Xx(f,!0),e.dispose();else{if(!e.isFailed()&&e.P&&2<=e.state&&4!=e.state)if(f=e.u?e.u.Wd("X-Response-Itag"):null){f=Jha(a.K,f);h=e.info.range.length-f.Vr();f.F=!0;e.info.u[0].u.F=!1;l=f.Al(h)[0];e.info=l;if(e.B){h=e.B;l=l.u;h.B=l;m=l[0].range;n=cv(h.u[0].u);cv(g.gb(h.u).u);for(var p=0;p<h.u.length;p++){h.u[p].info=l[p];var r=l[p].range;h.u[p].u=new Wu([new Uint8Array(n.buffer,r.start-m.start,r.length)])}}e.P=
!1;h=a.B;h.u!=f&&(h.u=f);h=a.B;h.B&&(h.B.u=f);a.V("constraint",f.info.Ka().quality);(h=e.u?e.u.Wd("X-Segment-Lmt"):null)&&f instanceof zw&&(isNaN(f.lastModified)||f.lastModified==h||jz(a.B,e))}else e.P=!1;if(5==e.state){if(wE(a,e),a.W&&(f=a.W,h=e.info,l=a.Qa,0!==f.B&&l&&h.u[0].isVideo()))if(h.u[0].B>f.F&&(f.F=NaN,f.D=NaN),f.u&&f.u.jb===h.u[0].B)if(m=f.u.ze.event,"start"===m||"continue"===m){if(1===f.B||5===f.B)f.F=h.u[0].B,f.D=h.u[0].K,f.B=2,f.V("ctmp","sdai","joinad_sg_"+f.F+"_st_"+f.D.toFixed(3),
!1),f=l.u,f.F.isActive()||(g.Q(f.D.experiments,"html5_high_res_logging")&&f.u.gb("sdai","adf.1"),f.K=!1,f.F.start(),f.W.clear(),f.N=[])}else"stop"==m&&(f.B=5);else 1===f.B&&(f.B=5)}else if(a.u.ea&&Yx(e)&&!(4<=e.state)&&!wE(a,e)&&!e.isFailed()){e=void 0;break a}e.isFailed()&&(f=e.info.u[0].u,h=e.F,Hv(f.B.u)&&(l=g.qf(e.u.Ul()||""),a.Xc("dldbrerr",l||"none")),Vx(e)?(l=(f.info.video&&1<f.B.B||410==e.G||500==e.G||503==e.G)&&!yD(a.K),m=Lx(e),n=f.info.video?a.B:a.D,l&&(m.stun="1"),nE(a,!1,h,m),a.la()||(l&&
xD(a.K,f),a.u.Th&&1==e.info.u.length&&0<e.info.u[0].C&&f!=n.u&&a.ka?a.V("reattachrequired"):(jz(n,e),a.rh()))):Hv(f.B.u)?(a.V("localplaybackfailed"),nE(a,!1,"net.closed",{err:e.F,rn:e.N.toString()})):(nE(a,!1,h,Lx(e)),e.info.sg()?(f.G=h,a.rh()):nE(a,!0,"net.retryexhausted",{err:h,rn:e.N.toString()})));a.rh();a.u.qb&&4<=e.state&&Vx(e)&&Wv(e.info.B,a.u,a.za)&&(f=a.za,h=Gv(e.info.B.u),f=Uv(f,h),f.D+a.u.qb*Tv(f)>(0,g.N)()||(e=dw(e.info,!1,a.u.Qh))&&rE(a,e))}}}e=void 0}return e},d)};
uE=function(a,b){b&&a.V("videoformatchange",b)};
wE=function(a,b){var c=b.info.u[0].u,d=c.info.video?a.B:a.D;Mla(a,d,b);b.info.sg()&&!$v(b.info)&&(g.Fb(Zx(b),function(e){jy(d.C,e)}),a.V("metadata",c));
Jy(d);return!!fy(d.C)};
Mla=function(a,b,c){if(a.F.isManifestless&&b){b.P&&(c.la(),4<=c.state||c.u.Li()||Yx(c),b.P=!1);c.X&&a.Ja.C(1,c.X);c.u&&(c.Y=parseInt(c.u.Wd("X-Head-Seqnum"),10));b=c.Y;c.u&&(c.ba=parseInt(c.u.Wd("X-Head-Time-Millis"),10));c=c.ba;a=a.F;for(var d in a.u){var e=a.u[d].index,f=c;e.B&&(b&&(e.G=Math.max(e.G,b)),f&&(e.D=Math.max(e.D,f)))}}};
xE=function(a){a.nd.Gb()};
BE=function(a){var b=a.C.u,c=a.C.B;a.D.u.C&&yE(a,b,a.D.u.C);if(Nla(a)){if(a.u.Qq){if(!b.yl()){var d=fy(a.D.C);d&&zE(a,b,d)}c.yl()||(b=fy(a.B.C))&&zE(a,c,b)}a.Aa||(a.Aa=(0,g.N)())}else{if(a.Aa){d=(0,g.N)()-a.Aa;var e=dz(a.D,a.G),f=dz(a.B,a.G);a.Xc("appendpause","dur."+d.toFixed()+";abuf."+((1E3*e).toFixed()+";vbuf.")+(1E3*f).toFixed());a.Aa=0}if(a.N){d=a.N;e=a.D;f=Cy(a.C.B.Ye());if(d.F)d=Oha(d,f);else{if(f=fy(e.C)){var h=f.B;h&&h.C&&h.B&&(e=e.D.length?e.D[0]:null)&&2<=e.state&&!e.isFailed()&&0==e.info.bf&&
e.u.Li()&&(d.F=e,d.N=h,d.C=f.info,d.G=g.A()/1E3,d.P=d.G,d.K=d.C.startTime)}d=NaN}d&&a.V("seekplayerrequired",d,!0)}d=!1;AE(a,a.B,c)&&(d=!0,e=a.ra,e.C||(e.C=g.A(),e.Te("vda"),eB("vda","video_to_ad"),e.B&&rp(4)));if(a.C&&!WB(a.C)&&(AE(a,a.D,b)&&(d=a.ra,d.B||(d.B=g.A(),d.Te("ada"),eB("ada","video_to_ad"),d.C&&rp(4)),d=!0),!a.la()&&a.C)){!a.u.ba&&Qy(a.B)&&Qy(a.D)&&TB(a.C)&&!a.C.vf()&&(e=Hy(a.D).u,e==a.F.u[e.info.id]&&(e=a.C,TB(e)&&e.C.endOfStream(),vz(a.ba)));e=a.u.vz;f=a.u.UB;d||!(0<e||f)||!TB(a.C)||
Qy(a.B)||Qy(a.D)||(b.Eq(a.G,f,e),c.Eq(a.G,f,e));if(c=d)c=a.C,c=!(c.u?c.u.supports(0):XB());c&&xE(a)}}};
Nla=function(a){var b;(b=qz(a.B))||(b=a.W,b=1===b.B||2===b.B||3===b.B);if(b)return!0;if(a.u.Qa)return!1;if(b=a.P.C){b=a.Y;var c=a.B,d=a.D;if(0==c.D.length&&0==d.D.length)b=!0;else{var e=0,f=py(c.C).concat(py(d.C));f=g.q(f);for(var h=f.next();!h.done;h=f.next())e+=h.value.kb;c=c.u.info.u+d.u.info.u;e/=c;b=10<e?!0:10>c*(10-e)/Ez(b)}(b=!b)||(b=a.B,b=0<b.D.length&&1==b.C.B.length&&fy(b.C).info.N<b.ea)}if(b)return!0;if(!a.ka||!a.u.Ja||10>a.G||360<a.B.u.info.Ka().xc)return!1;b=nz(a.B,a.G,a.u.Ja)||nz(a.D,
a.G,a.u.Ja);return(0<a.B.D.length||0<a.D.D.length||qE(a,a.B,a.D)||qE(a,a.D,a.B))&&b};
AE=function(a,b,c){if(c.vf())return!0;if(!c.qv())return!1;var d=fy(b.C);if(!d||6==d.info.type)return!1;var e=d.info,f=Hy(b);!f||f.D||Ut(f,e)||c.abort();!c.To()||pB()?c.hz(e.u.info.containerType,e.u.info.mimeType):e.u.info.containerType!=c.To()&&a.Xc("ctu","ct."+pB()+";prev_c."+c.To()+";curr_c."+e.u.info.containerType);if(a.F.C&&0==d.info.C&&(g.kv(d.info.u.info)||a.u.SD)){if(null==c.yl()){e=Hy(b);if(!(f=!e||e.u!=d.info.u)){b:if(e=e.W,f=d.info.W,e.length!==f.length)e=!1;else{for(var h=0;h<e.length;h++)if(!g.Db(e[h],
f[h])){e=!1;break b}e=!0}f=!e}e=f}else e=c.yl(),f=d.info.u.u,e=e!==f&&!g.Db(e,f);e&&a.Xc("initchg","it."+d.info.u.info.id+".ty."+d.info.type+".seg."+d.info.B);a.u.sb&&!e&&(g.kv(d.info.u.info)?(yu(hv(d),1836019574),yu(hv(d),1718909296)):(e=new Bu(hv(d)),Vu(e),Fu(e,524531317,!0),d.u=d.u.split(e.start+e.u).pm),d.C=!1)}a.u.Qi&&d.C&&(d.C=!1);e=a.N&&!!a.N.F&&b.u.info.audio;f=a.F.isManifestless||d.C;if(!(a.F.C&&0!=d.info.C||f&&!e)&&zE(a,c,d))return!0;if(e)return!1;e=a.G+pE(a,b,!1);if(!(e=d.info.K>e)){a:if(a.u.de&&
(!d.info.C||d.info.D)&&a.Xc("sba",c.ob({as:Qt(d.info)})),e=d.C?d.info.u.u:null,f=cv(d.u),d.C&&(f=new Uint8Array(f.buffer,0,f.byteOffset+f.length)),e=CE(a,c,f,d.info,e),"s"==e)a.xb=0,a=!0;else{a.u.As||(c.abort(),fz(b));if("i"==e||"x"==e)DE(a,"checked",e,d.info);else{if("q"==e&&(d.info.isVideo()?(e=a.u,e.G=Math.floor(.8*e.G),e.X=Math.floor(.8*e.X),e.F=Math.floor(.8*e.F)):(e=a.u,e.K=Math.floor(.8*e.K),e.Ea=Math.floor(.8*e.Ea),e.F=Math.floor(.8*e.F)),!c.vf()&&!a.C.isView()&&c.Eq(Math.min(a.G,d.info.startTime),
!0,5))){a=!1;break a}a.V("reattachrequired")}a=!1}e=!a}if(e)return!1;b.C.B.shift();Ly(b,d);return!0};
DE=function(a,b,c,d){var e="fmt.unplayable",f=!0;"x"==c||"m"==c?(e="fmt.unparseable",d.u.G=e,d.u.info.video&&!yD(a.K)&&xD(a.K,d.u)):"i"==c&&(15>a.xb?(a.xb++,e="html5.invalidstate",f=!1):e="fmt.unplayable");d=Xt(d);d.mrs=a.C.C.readyState;d.origin=b;d.reason=c;nE(a,f,e,d)};
EE=function(a,b,c){var d=a.F,e=!1,f;for(f in d.u){var h=uw(d.u[f].info.mimeType)||d.u[f].info.isVideo();c==h&&(h=d.u[f].index,Mz(h,b.jb)||(h.uD(b),e=!0))}Xga(a.P,b,c,e);c&&(a=a.W,a.K.bb&&(a.Y.C&&!a.K.Vq?kB(a,NaN):(c=a.u&&a.C&&a.u.jb==a.C.jb-1,c=a.u&&c&&"stop"!=a.u.ze.event&&"predictStart"!=a.u.ze.event,a.C&&a.C.jb<b.jb&&(c?jB(a,a.C):a.P=!0),a.C=b)))};
zE=function(a,b,c){c.info.u.le();var d=c.info.u.u;if(null==d||b.yl()==d)return!1;var e=d,f=b.Tr();if(a.u.Qi&&f&&b.isView()&&g.kv(c.info.u.info)){var h=new DataView(d.buffer,d.byteOffset,d.byteLength);(f=hfa(h,f))?e=new Uint8Array(f.buffer,f.byteOffset,f.byteLength):a.Xc("fenc","1")}f=null;h=c.info.u.Al(0);h.length&&(f=h[0].u[0]);a.u.Wk&&b.abort();d=CE(a,b,e,f,d);return"s"!=d?(DE(a,"sepInit",d,c.info),!0):b.vf()};
CE=function(a,b,c,d,e){try{b.appendBuffer(c,d,e)}catch(f){if(11==f.code)return"i";if(12==f.code)return"x";if(22!=f.code&&0!=f.message.indexOf("Not enough storage"))return M(f),"u";c=yy(b.Ye()).replace(/,/g,"_");d=g.qf(f.message);a.Xc("quex","br."+c+";t."+(a.C?b==a.C.B?"v":"a":"u")+";e."+d);return"q"}return WB(a.C)?"m":"s"};
fE=function(a,b){b.C.subscribe("needkeyinfo",a.rM,a);b.C.subscribe("error",a.aO,a);b.C.subscribe("avsyncissue",a.ZN,a);var c=(0,g.z)(a.dO,a,b);b.C.subscribe("placeholderinfo",c,void 0);c=(0,g.z)(a.eO,a,b);b.C.subscribe("placeholderrollback",c,void 0);c=(0,g.z)(a.fO,a,b);b.C.subscribe("segmentinfo",c,void 0);c=a.bO.bind(a);b.C.subscribe("gaplessinfo",c,void 0);c=a.cO.bind(a);b.C.subscribe("localmediachange",c,void 0)};
Xha=function(a,b){b.subscribe("seekplayerrequired",function(c,d){a.ea||a.V("seekplayerrequired",c,d)});
b.subscribe("ctmp",function(c,d){a.Xc(c,d,!1)});
b.subscribe("error",function(c,d,e){nE(a,c,d,e)});
b.subscribe("setcurrenttime",function(c){a.G=c})};
yE=function(a,b,c){var d=0+c.duration;c=-c.u;0==b.Sr()&&d==b.jw()||b.zy(0,d);c!=b.oc()&&(b.Rn(c),qy&&vy(a.D.C,b.rw()))};
pE=function(a,b,c){if(a.ia)return 1;var d=b.u.info.audio?a.u.K:a.u.G;!a.u.ka&&zD(a.K)&&(d=Math.max(d,b.u.info.audio?a.u.Ea:a.u.X));c&&(d+=a.u.za);var e=zD(a.K)?b.B?b.B.u.info.u:b.u.info.u:b.Y;d/=e;0<a.u.Af&&a.C&&TB(a.C)&&(b=b.u.info.video?a.C.B:a.C.u)&&!b.vf()&&(b=b.Ye(),e=zy(b,a.G),0<=e&&(b=a.G-b.start(e),d+=Math.max(0,Math.min(b-a.u.Af,a.u.wz))));0<a.u.F&&(d=Math.min(d,a.u.F));a.u.zf&&c&&!zD(a.K)&&(c=a.K,c=wD(c,g.gb(c.C))+wD(c,c.P.u[0]),c=a.u.zf*(c/Dz(a.Y)),c<d&&15>c&&a.Xc("bwcapped","1",!0),c=
Math.max(c,15),d=Math.min(d,c));return d};
Zha=function(a){if(!a.ac)return Infinity;var b=g.Je(ZD(a.ac),function(d){return"ad"==d.namespace});
b=g.q(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.start/1E3>a.G)return c.start/1E3;return Infinity};
Ola=function(a,b){var c=Ny(a.B).find(function(d){return d.startTime>=b&&gE(a,d.startTime,!1)});
return c&&c.startTime<b+1.5*c.duration?c.startTime+.1:0};
gE=function(a,b,c){if(!(a.B.u.le()&&a.D.u.le()&&a.C&&a.C.B&&a.C.u))return!1;if(c&&a.F.isManifestless&&(-1==a.B.G||-1==a.D.G))return!0;var d=Py(a.B,b,c);if(isNaN(d))return!1;a=Py(a.D,a.u.ia?b:d,c);return isNaN(a)?!1:!0};
vE=function(a,b,c,d){c.le()||c.F||!Xv(c.B)||(d=c.Al(d?rga(a.Y,c.info):0),g.Fb(d,function(e){if("f"!=e.u[0].u.info.Eb){var f=rE(this,e);$v(e)&&(b.D.push(f),b.B=g.gb(f.info.u))}},a),c.F=!0)};
nE=function(a,b,c,d){a.la()||(d=new lB(c,b,d),g.Ua(a),g.mB(d.details),a.V("error",d),"html5.invalidstate"!=c&&"fmt.unplayable"!=d.errorCode&&"fmt.unparseable"!=c&&b&&a.dispose())};
lE=function(a){fz(a.D);fz(a.B)};
FE=function(a){a.D.C.F=null;a.B.C.F=null;a.u.C="";a.u.Vg=!1};
Pla=function(a,b){var c=b.info.video?a.B:a.D;null!=c&&vE(a,c,b,!1)};
GE=function(a){this.u=a};
Qla=function(a,b){wo(a,"version",b)};
g.HE=function(a,b){this.type=a||"";this.id=b||""};
JE=function(a){for(var b={},c=g.q(Object.keys(IE)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[IE[d]];e&&(b[d]=e)}return b};
KE=function(a,b){for(var c={},d=g.q(Object.keys(IE)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.zv(f)&&(c[IE[e]]=f)}return c};
NE=function(a){var b={};if(!a||!a.thumbnails)return b;a=a.thumbnails.filter(function(l){return!!l.url});
a.sort(function(l,m){return l.width-m.width||l.height-m.height});
for(var c=g.q(Object.keys(LE)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=LE[e];for(var f=g.q(a),h=f.next();!h.done;h=f.next())if(h=h.value,h.width>=e){e=ME(h.url);g.zv(e)&&(b[d]=e);break}}(a=a.pop())&&1280<=a.width&&(a=ME(a.url),g.zv(a)&&(b["maxresdefault.jpg"]=a));return b};
ME=function(a){return a.startsWith("//")?"https:"+a:a};
g.S=function(a){if(a.simpleText)return a.simpleText;if(a.runs){var b=[];a=g.q(a.runs);for(var c=a.next();!c.done;c=a.next())c=c.value,c.text&&b.push(c.text);return b.join("")}return""};
g.OE=function(a){if(a.simpleText)return a=document.createTextNode(a.simpleText),a;var b=[];if(a.runs)for(var c=0;c<a.runs.length;c++){var d=a.runs[c];d.text&&b.push(Rla(d))}return 1==b.length?b[0]:g.De("SPAN",null,b)};
Rla=function(a){var b=null,c=a.text;a.bold&&(b=g.De("B",null,b||c));a.italics&&(b=g.De("I",null,b||c));a.strikethrough&&(b=g.De("STRIKE",null,b||c));a.navigationEndpoint&&a.navigationEndpoint.urlEndpoint&&(a=a.navigationEndpoint.urlEndpoint,b=g.De("A",null,b||c),g.id(b,a.url),"TARGET_NEW_WINDOW"==a.target&&(b.target="_blank"));return b||g.De("SPAN",null,c)};
PE=function(a,b,c,d){d=void 0===d?!1:d;g.B.call(this);this.experiments=b;this.useCobaltWidevine=d;this.u=[];this.B={};this.D={};this.callback=null;this.F=!1;this.C=[];this.initialize(a,!c)};
Tla=function(a,b){a.callback=b;a.C=[];GB(a.experiments)?QE(a):Sla(a)};
QE=function(a){if(!a.la())if(0===a.u.length)a.callback(a.C);else{var b=a.u[0],c=a.B[b],d=Ula(a,c);navigator.requestMediaKeySystemAccess(b,d).then(Ao(function(e){if(!a.la()){c.keySystemAccess=e;if(yB(c)){e=IB();for(var f=g.q(Object.keys(a.D[c.flavor])),h=f.next();!h.done;h=f.next())h=h.value,c.B[h]=!!e.canPlayType(h)}else{e=c.keySystemAccess.getConfiguration();if(e.audioCapabilities)for(f=g.q(e.audioCapabilities),h=f.next();!h.done;h=f.next())c.B[h.value.contentType]=!0;if(e.videoCapabilities)for(e=
g.q(e.videoCapabilities),f=e.next();!f.done;f=e.next())c.B[f.value.contentType]=!0}a.C.push(c);a.ca("html5_drm_fallback_to_playready_on_retry")||a.useCobaltWidevine?(a.u.shift(),QE(a)):a.callback(a.C)}}),Ao(function(){a.F=!a.F&&"widevine"===a.B[a.u[0]].flavor;
a.F||a.u.shift();QE(a)}))}};
Ula=function(a,b){var c={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};yB(b)&&(c.initDataTypes=["keyids","cenc"]);for(var d=g.q(Object.keys(a.D[b.flavor])),e=d.next();!e.done;e=d.next()){e=e.value;var f=0===e.indexOf("audio/"),h=f?c.audioCapabilities:c.videoCapabilities;"widevine"!==b.flavor||a.F?h.push({contentType:e}):f?h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}):(h.push({contentType:e,robustness:"HW_SECURE_ALL"}),h.push({contentType:e,robustness:"SW_SECURE_DECODE"}),
a.ca("html5_query_sw_secure_crypto_for_android")&&(jk()||Vj())&&h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}))}return[c]};
Sla=function(a){if(wB()&&g.FB)a.C.push(new vB("fairplay","com.apple.fps.1_0","",a.experiments));else{var b=Vla(),c=g.jb(a.u,function(d){var e=a.B[d],f=!1,h=!1,l;for(l in a.D[e.flavor])b(l,d)&&(e.B[l]=!0,f=f||0===l.indexOf("audio/"),h=h||0===l.indexOf("video/"));return f&&h});
c&&a.C.push(a.B[c]);a.u=[]}a.callback(a.C)};
Vla=function(){var a=wB();if(a){var b=a.isTypeSupported;return function(d,e){return b(e,d)}}var c=IB();
return c&&(c.addKey||c.webkitAddKey)?function(d,e){return!!c.canPlayType(d,e)}:function(){return!1}};
RE=function(a){this.La=a};
SE=function(a,b,c){if(c)return Ur();var d={};c=IB();b=g.q(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,a.canPlayType(c,e.Be().mimeType)){var f=e.La.Ka().quality;if(!d[f]||d[f].Be().Jd())d[f]=e}var h=[];d.auto&&h.push(d.auto);g.Fb(kw,function(l){(l=d[l])&&h.push(l)});
return h.length?Vr(h):Ur()};
Wla=function(a,b,c){this.C=a;this.B=b;this.cpn=c;this.D=0;this.u=""};
TE=function(a,b,c){a.cpn&&(b=g.Id(b,{cpn:a.cpn}));c&&(b=g.Id(b,{Z3:c}));return b};
UE=function(a,b){var c=a.itag.toString();null!==b&&(c+=b.itag.toString());return c};
Xla=function(a,b,c){var d="#EXT-X-MEDIA:TYPE=AUDIO,",e="YES",f="audio";if(b.u){f=b.u;var h=f.getId().split(".")[0];h&&(d+='LANGUAGE="'+h+'",');a.u||f.getIsDefault()||(e="NO");f=f.getName()}h="";null!==c&&(h=c.itag.toString());a=TE(a,b.url,h);return d=d+('NAME="'+f+'",DEFAULT='+(e+',AUTOSELECT=YES,GROUP-ID="'))+(UE(b,c)+'",URI="'+(a+'"'))};
Yla=function(a){for(var b=[],c=[],d=g.q(a.B),e=d.next();!e.done;e=d.next())e=e.value,e.bitrate<=a.D?b.push(e):c.push(e);b.sort(function(f,h){return h.bitrate-f.bitrate});
c.sort(function(f,h){return f.bitrate-h.bitrate});
a.B=b.concat(c)};
Zla=function(a,b,c,d,e,f,h,l,m,n,p,r){this.itag=a;this.url=b;this.codecs=c;this.width=d;this.height=e;this.fps=f;this.bitrate=h;this.u=void 0===p?null:p;this.audioChannels=r;this.D=(null===l||void 0===l?void 0:l.split(","))||[];this.C=m||null;this.Bd=n||"";this.B=""};
VE=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!0:c;var d={};a=g.q(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;if(b&&MediaSource&&MediaSource.isTypeSupported){var f=e.type;e.audio_channels&&(f=f+"; channels="+e.audio_channels);if(!MediaSource.isTypeSupported(f))continue}if(c||!e.drm_families||"smpte2084"!==e.eotf&&"arib-std-b67"!==e.eotf){f={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"};var h=e.type.match(/codecs="([^"]*)"/);h=h?h[1]:"";var l=null;e.audio_track_id&&(l=new Wz(e.name,
e.audio_track_id,!!e.is_default));var m=e.eotf;e=new Zla(e.itag,e.url,h,+e.width,+e.height,+e.fps,+e.bitrate,e.audio_itag,m?f[m]:void 0,e.drm_families,l,+e.audio_channels);d[e.itag]=d[e.itag]||[];d[e.itag].push(e)}}return d};
WE=function(a,b,c){this.La=a;this.B=b;this.expiration=c;this.u=null};
$la=function(a,b){if(!(fk||ck()||Yj()))return null;var c=VE(b,g.Q(a.experiments,"html5_filter_fmp4_in_hls"));if(!c)return null;for(var d=[],e={},f=g.q(Object.keys(c)),h=f.next();!h.done;h=f.next()){h=g.q(c[h.value]);for(var l=h.next();!l.done;l=h.next()){var m=l.value;m.u&&(l=m.u.getId(),e[l]||(m=new bC(l,m.u),e[l]=m,d.push(m)))}}return 0<d.length?d:null};
dma=function(a,b,c,d,e){if(!(fk||ck()||Yj()))return Ur();var f=ama(c),h=VE(c,g.Q(a.experiments,"html5_filter_fmp4_in_hls"),a.D.B);if(!h)return Ur();g.Q(a.experiments,"html5_filter_video_m2ts_in_hls_killswitch")||bma(h);c={};var l=(c.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",c);c=[];for(var m=[],n=[],p=g.P(a.experiments,"html5_hls_min_video_height"),r=null,t="",w=g.q(Object.keys(h)),x=w.next();!x.done;x=w.next())if(x=x.value,!g.Q(a.experiments,"html5_disable_drm_hfr_1080")||"383"!==
x&&"373"!==x){x=g.q(h[x]);for(var y=x.next();!y.done;y=x.next())if(y=y.value,y.width){if(!(y.height<p)){var D=g.q(y.D);for(var E=D.next();!E.done;E=D.next())if(E=E.value,h[E]){y.B=E;break}y.B||(y.B=cma(h,y));if(E=h[y.B]){c.push(y);D="fairplay"===y.Bd?l:null;var G="";"PQ"===y.C?G="smpte2084":"HLG"===y.C&&(G="arib-std-b67");G&&(t=G);n.push(XE(E,[y],e,y.itag,y.width,y.height,y.fps,f,void 0,void 0,D,G));if(!r||y.width*y.height*y.fps>r.width*r.height*r.fps)r=y}}}else m.push(y)}D=n.reduce(function(L,J){return J.Be().isEncrypted()&&
L},!0)?l:null;
d=Math.max(d,g.P(a.experiments,"html5_hls_initial_bitrate"));h=r||{};n.push(XE(m,c,e,"93",void 0===h.width?0:h.width,void 0===h.height?0:h.height,void 0===h.fps?0:h.fps,f,"auto",d,D,t));return SE(a.D,n,ZC(a,b))};
XE=function(a,b,c,d,e,f,h,l,m,n,p,r){for(var t=0,w="",x=g.q(a),y=x.next();!y.done;y=x.next())y=y.value,w||(w=y.itag),y.audioChannels&&y.audioChannels>t&&(t=y.audioChannels,w=y.itag);d=new nw(d,"application/x-mpegURL",new ew(0,t,null,w),new hw(e,f,h,null,void 0,m,void 0,r),void 0,p);a=new Wla(a,b,c);a.D=n?n:1369843;return new WE(d,a,l)};
ama=function(a){a=g.q(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.url&&(b=b.url.split("expire/"),!(1>=b.length)))return+b[1].split("/")[0];return NaN};
cma=function(a,b){for(var c=g.q(Object.keys(a)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d][0];if(!e.width&&e.Bd===b.Bd&&!e.audioChannels)return d}return""};
bma=function(a){for(var b=new Set,c=g.q(Object.values(a)),d=c.next();!d.done;d=c.next())d=d.value,d.length&&(d=d[0],d.height&&d.codecs.startsWith("vp09")&&b.add(d.height));c=[];if(b.size){d=g.q(Object.keys(a));for(var e=d.next();!e.done;e=d.next())if(e=e.value,a[e].length){var f=a[e][0];f.height&&b.has(f.height)&&!f.codecs.startsWith("vp09")&&c.push(e)}}b=g.q(c);for(e=b.next();!e.done;e=b.next())delete a[e.value]};
YE=function(a,b){this.La=a;this.u=b};
ema=function(a,b,c,d){var e=[];c=g.q(c);for(var f=c.next();!f.done;f=c.next()){var h=f.value;if(h.url){f=new Ev(h.url,!0);if(h.s){var l=h.sp,m=tv(decodeURIComponent(h.s));f.set(l,encodeURIComponent(m))}l=g.q(Object.keys(d));for(m=l.next();!m.done;m=l.next())m=m.value,f.set(m,d[m]);h=vw(h.type,h.quality,h.itag,h.width,h.height);e.push(new YE(h,f))}}return SE(a.D,e,ZC(a,b))};
ZE=function(a,b){this.La=a;this.u=b};
fma=function(a){var b=[];g.Fb(a,function(c){if(c&&c.url){var d=vw(c.type,"medium","0");b.push(new ZE(d,c.url))}});
return b};
gma=function(a,b,c){c=fma(c);return SE(a.D,c,ZC(a,b))};
hma=function(a){if(a=a.commonConfig)this.url=a.url,this.urlQueryOverride=a.urlQueryOverride,a.ustreamerConfig&&(this.ustreamerConfig=pC(a.ustreamerConfig))};
g.$E=function(a){a=void 0===a?{}:a;this.languageCode=a.languageCode||"";this.languageName=a.languageName||null;this.kind=a.kind||"";this.name=a.name||null;this.id=a.id||null;this.u=a.is_servable||!1;this.isTranslateable=a.is_translateable||!1;this.url=a.url||null;this.vssId=a.vss_id||"";this.isDefault=a.is_default||!1;this.translationLanguage=a.translationLanguage||null};
g.aF=function(a){var b=a.languageName||"",c=[b];"asr"===a.kind&&-1===b.indexOf("(")&&c.push(" (\u81ea\u52d5\u5b57\u5e55\u8d77\u3053\u3057)");a.name&&c.push(" - "+a.name);a.translationLanguage&&c.push(" >> "+a.translationLanguage.languageName);return c.join("")};
bF=function(a){if(a=a.colorInfo)if(a=a.transferCharacteristics)return ima[a];return null};
cF=function(a){return a&&a.baseUrl||""};
dF=function(a){a=g.Up(a);for(var b=g.q(Object.keys(a)),c=b.next();!c.done;c=b.next()){c=c.value;var d=a[c];a[c]=Array.isArray(d)?d[0]:d}return a};
eF=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;var c=b.playerAttestationRenderer.challenge;null!=c&&(a.Rg=c)};
jma=function(a,b){a.captionTracks=[];if(b.captionTracks)for(var c=g.q(b.captionTracks),d=c.next();!d.done;d=c.next()){d=d.value;var e=fF(d.baseUrl);if(!e)return;d=new g.$E({is_translateable:!!d.isTranslatable,languageCode:d.languageCode,languageName:d.name&&g.S(d.name),url:e,vss_id:d.vssId,kind:d.kind});a.captionTracks.push(d)}a.tv=b.audioTracks||[];a.uA=b.defaultAudioTrackIndex||0;a.vA=b.translationLanguages?g.Pc(b.translationLanguages,function(f){return{languageCode:f.languageCode,languageName:g.S(f.languageName)}}):
[];
a.lr=!!b.contribute&&!!b.contribute.captionsMetadataRenderer};
kma=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.interstitials.map(function(l){var m=l.unserializedPlayerResponse;if(m)return{is_yto_interstitial:!0,raw_player_response:m};if(l=l.playerVars)return Object.assign({is_yto_interstitial:!0},Sp(l))});
e=g.q(e);for(var f=e.next();!f.done;f=e.next())switch(f=f.value,d.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":a.interstitials=a.interstitials.concat({time:0,playerVars:f,eo:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:f,eo:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var h=Number(d.podConfig.timeToInsertAtMillis);a.interstitials=a.interstitials.concat({time:h,playerVars:f,
eo:0===h?5:7})}}};
lma=function(a,b){var c=b.find(function(d){return!(!d||!d.tooltipRenderer)});
c&&(a.tooltipRenderer=c.tooltipRenderer)};
gF=function(a,b){b.subscribeCommand&&(a.subscribeCommand=b.subscribeCommand);b.unsubscribeCommand&&(a.unsubscribeCommand=b.unsubscribeCommand);b.addToWatchLaterCommand&&(a.addToWatchLaterCommand=b.addToWatchLaterCommand);b.removeFromWatchLaterCommand&&(a.removeFromWatchLaterCommand=b.removeFromWatchLaterCommand);b.getSharePanelCommand&&(a.getSharePanelCommand=b.getSharePanelCommand)};
hF=function(a){g.O.call(this);this.u=null;this.C=new g.jo;this.u=null;this.G=new Set;this.crossOrigin=a||""};
kF=function(a,b,c){c=iF(a,c);for(var d,e;0<=c;c--)if(d=a.levels[c],e=Math.floor(b/(d.columns*d.rows)),!d.Ec(e)){d=a;var f=c,h=f+"-"+e;d.G.has(h)||(d.G.add(h),g.io(d.C,f,{CC:f,DD:e}))}jF(a)};
jF=function(a){if(!a.u&&!a.C.isEmpty()){var b=a.C.remove();a.u=mma(a,b)}};
mma=function(a,b){var c=document.createElement("img");a.crossOrigin&&(c.crossOrigin=a.crossOrigin);c.src=a.levels[b.CC].rd(b.DD);c.onload=function(){var d=b.CC,e=b.DD;null!==a.u&&(a.u.onload=null,a.u=null);d=a.levels[d];d.loaded.add(e);jF(a);var f=d.columns*d.rows;e*=f;d=Math.min(e+f-1,d.lw()-1);e=[e,d];a.V("l",e[0],e[1])};
return c};
g.lF=function(a,b,c,d){this.level=a;this.F=b;this.loaded=new Set;this.level=a;this.F=b;a=c.split("#");this.width=Math.floor(Number(a[0]));this.height=Math.floor(Number(a[1]));this.C=Math.floor(Number(a[2]));this.columns=Math.floor(Number(a[3]));this.rows=Math.floor(Number(a[4]));this.u=Math.floor(Number(a[5]));this.D=a[6];this.signature=a[7];this.videoLength=d};
mF=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;hF.call(this,c);this.isLive=d;this.K=!!e;this.levels=this.B(a,b);this.D=new Map;1<this.levels.length&&this.levels[0].isDefault()&&this.levels.splice(0,1)};
nF=function(a,b,c){return(a=a.levels[b])?a.At(c):-1};
iF=function(a,b){var c=a.D.get(b);if(c)return c;c=a.levels.length;for(var d=0;d<c;d++)if(a.levels[d].ke()>=b)return a.D.set(b,d),d;a.D.set(b,c-1);return c-1};
oF=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.lF.call(this,a,b,c,0);this.B=null;this.G=d?3:0};
pF=function(a,b,c,d){mF.call(this,a,0,void 0,b,!(void 0===d||!d));for(a=0;a<this.levels.length;a++)this.levels[a].iD(c)};
nma=function(a,b,c){b={cpn:b};-1===a.indexOf("/ibw/")&&(b.ibw=c?String(c):"1369843");return{url:g.Id(a,b),type:"application/x-mpegURL",quality:"auto",itag:"93"}};
g.qF=function(a,b){g.O.call(this);this.Oa=a;this.adModule=!1;this.adaptiveFormats="";this.gA=this.adSafetyReason=this.adQueryId=this.av=null;this.ro="";this.Bd=null;this.drmParams="";this.allowEmbed=!0;this.allowLiveDvr=this.offlineable=this.backgroundable=!1;this.rg="";this.fv=this.Yq=this.FC=!1;this.tC=null;this.jo=this.xm=this.Lq=this.gw=this.Gs=!1;this.Rc=null;this.dl=!1;this.bq=NaN;this.Xx={};this.Ry=this.cycToken=null;this.author="";this.bk=0;this.vv=!1;this.Xi=null;this.lv=this.WA=!1;this.clientScreenNonce=
this.clientPlaybackNonce=this.videoCountText=this.channelBanner=this.Yj=this.yo="";this.contentCheckOk=!1;this.Ug=0;this.Cr=this.Ko=!1;this.endSeconds=0;this.ho=this.Xg=this.La=this.Qv=null;this.ew="";this.wd=!1;this.oj=this.bn=0;this.dv=this.pipable=this.ni=!1;this.paidContentOverlayDurationMs=0;this.isLivePlayback=this.si=this.isPrivate=this.isListed=this.Xw=this.mutedAutoplay=this.Bh=!1;this.mx="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=this.isLiveDefaultBroadcast=this.ax=this.mp=
this.uf=!1;this.latencyClass="UNKNOWN";this.enableServerStitchedDai=this.Kc=this.isMdxPlayback=this.isUpcoming=this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=!1;this.Hi=0;this.reloadReason="";this.gx=this.qC=this.pj=!1;this.keywords={};this.kh="";this.Js=0;this.Fq=!1;this.liveChunkReadahead=NaN;this.Os=0;this.kn=null;this.tp=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.paygated=!1;this.wj=[];this.Pe=[];this.racyCheckOk=!1;this.XE={};this.hq=0;this.Ia=null;this.autonavState=
1;this.oA=null;this.shortDescription="";this.wg=this.Iy=!1;this.ou=this.rk=this.startSeconds=0;this.Du=this.rA=this.BG=rD;this.Vn=this.suggestions=null;this.Oy=!1;this.expandedSubtitle=this.Zv=this.subtitle=this.title="";this.multiMarkersPlayerBarRenderer=this.yv=void 0;this.Ca=[];this.hlsFormats=this.Gq="";this.Ps=this.nu=this.Og=this.Fj=this.Gg=this.jq=this.zs=null;this.qg="vvt";this.me=!1;this.qz=null;this.MG="";this.Nq=NaN;this.Ou=this.Ku=this.Ju=this.Iu=this.Hu=this.Nu=this.Kq=this.Mu=this.Mq=
this.Lu="";this.ko=null;this.FF=!1;this.Sc={};this.clipStart=0;this.clipEnd=Infinity;this.heartbeatToken="";this.WB=this.VB=NaN;this.In=this.np=this.bl=this.eC=this.XB=!1;this.oq=!0;this.Hh={};this.captionTracks=[];this.tv=[];this.uA=0;this.vA=[];this.lr=!1;this.Fo=new bC("und",new Wz("Default","und",!0));this.hx=0;this.Wc=null;this.Kn=[];this.Zk=[];this.mz=this.Xp="";this.slotPosition=-1;this.breakType=0;this.watchNextResponse=this.playerResponse=this.cB=this.Jo=this.vg=this.Ov=this.cv=this.Xu=null;
this.xr=!1;this.ae=null;this.Vw=this.Io=this.useCobaltWidevine=this.RF=this.Ml=this.Gj=!1;this.tk=this.Jl=NaN;this.defraggedFromSubfragments=this.ki=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN;this.Hk=this.oz=this.wm=!1;this.interstitials=[];this.Lc=this.Yw=!1;this.Wp=this.KD=this.fj="";this.isVisualizerEligible=!1;this.Pt=null;this.Wb="";this.vi=this.cC=!1;this.ID=this.Jq="";this.Zx=this.Tx=this.Rw=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=this.maxReadAheadMediaTimeMs=
NaN;this.showShareButton=!0;this.rq=!1;this.Tn=this.Rk=!0;this.errorDetail=this.userGenderAge="";this.Sy=this.Ty=this.getSharePanelCommand=this.removeFromWatchLaterCommand=this.addToWatchLaterCommand=this.unsubscribeCommand=this.subscribeCommand=this.contextParams=this.bi=this.errorReason=this.errorCode=null;this.rr=this.qr="";this.Vg=this.Pm=!1;this.xj=this.Ql=this.fg=this.Vd=0;this.rp=this.fetchType=null;this.ZE=!0;this.iG=void 0;this.Zq=-1;this.Sn=this.Qk=!1;this.Qo=null;this.ca("web_player_ux_module_wait")&&
this.Oa.Qa&&this.Pe.push("ux");this.Qk=this.ca("web_new_autonav_countdown");this.Sn=this.ca("web_new_big_thumbnail_endscreen");this.setData(b)};
tF=function(a,b){a.fflags=xC(a.fflags,b.fflags);var c=b.iv_invideo_url;c&&(a.rg=Dv(c));a.Yq=R(a.Yq,b.iv_ads_only);a.fv=R(a.fv,b.iv_allow_in_place_switch);a.isPharma=R(a.isPharma,b.is_pharma);a.author=xC(a.author,b.author);a.yo=fF(b.ttsurl)||a.yo;a.vv=R(a.vv,b.cc_asr);a.Yj=xC(a.Yj,b.channel_path);a.channelBanner=xC(a.channelBanner,b.channel_banner);a.videoCountText=xC(a.videoCountText,b.video_count_text);a.autonavState=vC(a.autonavState,b.autonav_state,oma);a.clientPlaybackNonce=xC(a.clientPlaybackNonce,
b.cpn);a.subscribed=R(a.subscribed,b.subscribed);a.rawViewCount=wC(a.rawViewCount,b.view_count);a.shortViewCount=xC(a.shortViewCount,b.short_view_count_text);a.publishedTimeText=xC(a.publishedTimeText||"",b.publishedTimeText);a.lengthText=xC(a.lengthText||"",b.lengthText);a.Ms=xC(a.Ms||"",b.Ms);a.wo=xC(a.wo||"",b.wo);a.title=xC(a.title,b.title);a.subtitle=xC(a.subtitle,b.subtitle);a.Zv=xC(a.Zv,b.expanded_title);a.expandedSubtitle=xC(a.expandedSubtitle,b.expanded_subtitle);a.ro=xC(a.ro,b.aria_label);
a.ypcPreview=xC(a.ypcPreview,b.ypc_preview);a.rz=xC(a.rz,b.ypc_origin);a.me=R(a.me,b.ypc_is_premiere_trailer);a.Jq=xC(a.Jq,b.ypc_clickwrap_message);a.paygated=R(a.paygated,b.paygated);a.FF=R(a.FF,b.requires_purchase);a.showShareButton=!R(!a.showShareButton,b.ss);a.Rk=R(a.Rk,b.showwatchlater);a.Tn=R(a.Tn,b.shownotifybutton);a.rq=R(a.rq,b.copy_share);if(c=b.keywords)a.keywords=rF(c.split(","));if(c=b.rvs)a.suggestions=Tp(c);a.contentCheckOk=R(a.contentCheckOk,b.cco);a.racyCheckOk=R(a.racyCheckOk,b.rco);
a.isLivingRoomDeeplink=R(a.isLivingRoomDeeplink,b.is_living_room_deeplink);a.oauthToken=xC(a.oauthToken,b.oauth_token);a.kh=xC(a.kh,b.kpt);a.visitorData=xC(a.visitorData,b.visitor_data);if(c=b.session_data)a.bd=Qp(c);if(c=b.endscreen_autoplay_session_data)a.Qv=Qp(c);a.Dr=xC(a.Dr,b.endscreen_ad_tracking_data);a.FG=R(a.FG,b.wait_for_vast_info_cards_xml);a.My=R(a.My,b.suppress_creator_endscreen);a.pC=R(a.pC,b.is_trueview_action);a.hG=xC(a.hG,b.tracking_list);a.qr=xC(a.qr,b.clip);a.rr=xC(a.rr,b.clipt);
sF(a,b)};
xF=function(a,b){var c,d,e,f,h,l=b.raw_watch_next_response;if(!l){var m=b.watch_next_response;m&&(l=JSON.parse(m))}if(l){a.watchNextResponse=l;l=a.watchNextResponse.contents;var n;if(l){if(n=l.singleColumnWatchNextResults){var p=wC(0,b.autoplay_count);if(n.autoplay&&n.autoplay.autoplay&&!n.playlist){var r=n.autoplay.autoplay.sets;n={};m={};var t=null;if(r){for(var w=g.q(r),x=w.next();!x.done;x=w.next())if((x=x.value.autoplayVideoRenderer)&&x.compactVideoRenderer){t=x.compactVideoRenderer;break}if(r=
r[0].autoplayVideo)(r=r.clickTrackingParams)&&(n.itct=r),n.autonav="1",n.playnext=String(p)}else n.feature="related-auto";if(t){m.autonav="1";m.video_id=t.videoId;if(p=t.shortBylineText)m.author=g.S(p);if(p=t.title)m.title=g.S(p)}m.endscreen_autoplay_session_data=g.Gd(n);a.suggestions=[m]}}n=l.twoColumnWatchNextResults}l=a.watchNextResponse.playerOverlays;if(l&&(l=l.playerOverlayRenderer)){if(m=l.endScreen)if(m=m.watchNextEndScreenRenderer)var y=m.results;if(m=l.videoDetails){var D=m.embeddedPlayerOverlayVideoDetailsRenderer;
if(m=m.musicEmbeddedPlayerOverlayVideoDetailsRenderer)a.dw=m.title,a.cw=m.byline}if(m=l.actions)for(m=g.q(m),p=m.next();!p.done;p=m.next())p=p.value,p.likeButtonRenderer&&(a.likeButtonRenderer=p.likeButtonRenderer);if(m=null===(c=l.decoratedPlayerBarRenderer)||void 0===c?void 0:c.decoratedPlayerBarRenderer)a.multiMarkersPlayerBarRenderer=null===(d=m.playerBar)||void 0===d?void 0:d.multiMarkersPlayerBarRenderer,a.yv=null===(f=null===(e=m.playerBar)||void 0===e?void 0:e.chapteredPlayerBarRenderer)||
void 0===f?void 0:f.chapters,a.lQ=null===(h=m.playerBarActionButton)||void 0===h?void 0:h.buttonRenderer;g.LC(a.Oa)&&(a.Rk=!!l.addToMenu);uF(a,l.shareButton);if(m=l.productsInVideoOverlayRenderer)a.shoppingOverlayRenderer=m.shoppingOverlayRenderer;if(l=l.autoplay)var E=l.playerOverlayAutoplayRenderer}!y&&n&&(l=n.endScreen&&n.endScreen.endScreen)&&(y=l.results);n&&(l=n.desktopOverlay&&n.desktopOverlay.desktopOverlayConfigRenderer)&&(l.suppressShareButton&&(a.showShareButton=!1),l.suppressWatchLaterButton&&
(a.Rk=!1));D&&vF(a,b,D);D=wC(0,b.autoplay_count);if(y){l=n||null;m=E||null;p=[];t=!0;y=g.q(y);for(r=y.next();!r.done;r=y.next()){x=r.value;w=void 0;r=null;if(x.endScreenVideoRenderer){x=x.endScreenVideoRenderer;var G=x.title;r={id:x.videoId,length_seconds:x.lengthInSeconds};var L=x.publishedTimeText;L&&(r.publishedTimeText=g.S(L));if(L=x.shortBylineText)r.author=g.S(L);if(L=x.shortViewCountText)r.short_view_count_text=g.S(L);G&&(r.title=g.S(G),(G=G.accessibility)&&(G=G.accessibilityData)&&G.label&&
(r.aria_label=G.label));if(G=x.navigationEndpoint)if(w=G.clickTrackingParams,G=G.watchEndpoint)r.Rv=G;if(G=x.thumbnailOverlays)for(G=g.q(G),L=G.next();!L.done;L=G.next())if(L=L.value.thumbnailOverlayTimeStatusRenderer)if("LIVE"===L.style){r.live_playback="1";break}else if("UPCOMING"===L.style){r.isUpcoming=!0;break}x=NE(x.thumbnail);x=JE(x);x.iurlmq&&(x={iurlmq:x.iurlmq,iurlhq:x.iurlmq});Object.assign(r,x)}else if(x.endScreenPlaylistRenderer){x=x.endScreenPlaylistRenderer;w=x.navigationEndpoint;if(!w)continue;
r=w.watchEndpoint;if(!r)continue;r=r.videoId;r={list:x.playlistId,video_id:r,playlist_length:x.videoCount,thumbnail_ids:r};if(G=x.title)r.playlist_title=g.S(G);if(G=x.shortBylineText)r.playlist_author=g.S(G);w=w.clickTrackingParams;x=NE(x.thumbnail);Object.assign(r,JE(x))}r&&(r.session_data=g.Gd({itct:w}),t?(wF(r,l,m,D),p.splice(0,0,r),t=!1):p.push(r))}a.suggestions=p}if(E){a.ZE=!!E.preferImmediateRedirect;a.Qk=a.Qk||!!E.webShowNewAutonavCountdown;a.Sn=a.Sn||!!E.webShowBigThumbnailEndscreen;if(a.Qk||
a.Sn){y=E;n=n||null;l={id:y.videoId};if(m=y.videoTitle)l.title=g.S(m),(m=m.accessibility)&&(m=m.accessibilityData)&&m.label&&(l.aria_label=m.label);if(m=y.byline)l.author=g.S(m);if(m=y.publishedTimeText)l.publishedTimeText=g.S(m);if(m=y.shortViewCountText)l.short_view_count_text=g.S(m);if(m=y.thumbnailOverlays)for(m=g.q(m),p=m.next();!p.done;p=m.next())if(p=p.value.thumbnailOverlayTimeStatusRenderer)if("LIVE"===p.style){l.live_playback="1";break}else if("UPCOMING"===p.style){l.isUpcoming=!0;break}else if("DEFAULT"===
p.style&&p.text){l.lengthText=g.S(p.text);(m=p.text.accessibility)&&(m=m.accessibilityData)&&m.label&&(l.Ms=m.label);break}m=NE(y.background);m=JE(m);m.iurlmq&&(m={iurlmq:m.iurlmq,iurlhq:m.iurlmq});Object.assign(l,m);if(m=y.nextButton)if(m=m.buttonRenderer)if(p=m.navigationEndpoint)if(m=p.clickTrackingParams,l.session_data=g.Gd({itct:m}),m=p.watchEndpoint)l.Rv=m;y.topBadges&&(m=y.topBadges[0])&&(m=m.metadataBadgeRenderer)&&"BADGE_STYLE_TYPE_PREMIUM"==m.style&&(l.ku=!0);if(m=y.alternativeTitle)l.wo=
g.S(m);wF(l,n,y,D);a.suggestions||(a.suggestions=[]);a.suggestions[0]=l}null!=E.countDownSecs&&(a.Zq=1E3*E.countDownSecs)}a.watchNextResponse.currentVideoThumbnail&&(a.Hh=NE(a.watchNextResponse.currentVideoThumbnail))}};
yF=function(a){return!!(a.Ia&&a.Ia.videoInfos&&a.Ia.videoInfos.length)};
AF=function(a){if(a.ca("html5_single_format_policy")&&a.Qo)return a.Qo;var b=a.vi,c=!!a.ma&&(a.ma.qj()||a.ma.rj()||a.ma.mj()),d=a.Oa,e=!!a.ma&&a.ma.Bg,f=zF(a),h=a.oz;a.isAd();var l=a.isOtf(),m=a.ev(),n=new dha;n.X=f;n.K=h&&d.C;Uj("windows nt 5.1")&&!g.EB&&(n.B=!0);if(f=c)f=d.ca("disable_html5_ambisonic_audio")||!(g.mD(d)||d.ca("html5_enable_spherical")||d.ca("html5_enable_spherical3d"))?!1:nD(d);f&&(n.W=!0);b&&(n.B=!0,n.ra=!0);l&&!g.Q(d.experiments,"html5_otf_prefer_vp9")&&(n.B=!0);qB(d.D,rB.CHANNELS)&&
(g.Q(d.experiments,"html5_enable_aac51")&&(n.G=!0),g.Q(d.experiments,"html5_enable_ac3")&&(n.C=!0),g.Q(d.experiments,"html5_enable_eac3")&&(n.D=!0));g.Q(d.experiments,"html5_block_8k_hfr")&&(n.ba=!0);!g.Q(d.experiments,"html5_kaios_hd_killswitch")&&DC&&(n.da=480);if(e||c)n.Y=!1;n.ea=!1;b=uB(d,n.u);0<b&&2160>b&&(pB()||g.Q(d.experiments,"html5_format_hybridization"))&&(n.u.supportsChangeType=+pB(),n.F=b);2160<=b&&(n.ka=!0);sB()&&(n.u.serveVp9OverAv1IfHigherRes=0,n.Aa=!1);n.ev=m;m=g.kr||kk()&&!m?!1:
!0;n.N=m;n.ia=g.Q(d.experiments,"html5_format_hybridization");Yj()&&a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(n.C=!0,n.D=!0);a.isLivePlayback&&(d=a.Kc&&a.Oa.ca("html5_enable_audio_51_for_live_dai"),m=!a.Kc&&a.Oa.ca("html5_enable_audio_51_for_live_non_dai"),n.P=d||m);return a.Qo=n};
qma=function(a){a.Xg||a.ma&&bA(a.ma);var b={};a.ma&&(b=jC(AF(a),a.Oa.D,a.ma));b=new PE(b,a.Oa.experiments,a.RF,pma(a));g.C(a,b);a.np=!1;a.wd=!0;Tla(b,function(c){for(var d=g.q(c),e=d.next();!e.done;e=d.next())switch(e=e.value,e.flavor){case "fairplay":e.Xg=a.Xg;e.Fr=a.Fr;e.Er=a.Er;break;case "widevine":e.ho=a.ho}a.Kn=c;0<a.Kn.length&&(a.Wc=a.Kn[0]);BF(a)})};
FF=function(a,b){var c;(c=!b)||(c=!(!CF(a)&&a.adaptiveFormats));if(c)return null;DF(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(hA=!0);c=EF(b);var d=a.Bd;var e=a.lengthSeconds,f=a.isLivePlayback,h=a.uf,l=a.Oa.experiments,m=Lga(c);d=f||h?Kga(c,h,d,l):3==m?Jga(c,d,e,l):Iga(c,d,e,l);0<c.length&&(c=c[0],c.url&&c.sp&&c.s&&(c=fA(c.url,c.sp,c.s),c=Number(c.get("max_sq"))||Infinity,isFinite(c)&&(a.mp=!0)));if(c=d.isManifestless)c=!(a.ca("html5_manifestless_vp9")||a.ca("html5_manifestless_vp9_normal_latency")&&
(!a.isLowLatencyLiveStream||"NORMAL"==a.latencyClass)||!rma(d));return c?(d.dispose(),null):d};
HF=function(a,b){var c=FF(a,b);if(!c)return!1;GF(a,c);return!0};
CF=function(a){return Yj()&&!IF(a)};
IF=function(a){return DF(a,"html5_enable_tvos_dash_dogfood")||a.ca("html5_enable_tvos_dash")&&(a.ca("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"'))};
pma=function(a){return a.useCobaltWidevine?a.ca("html5_enable_tvos_widevine")&&Yj()?IF(a):DF(a,"html5_enable_androidtv_cobalt_widevine")&&Uj("cobalt")&&Uj("android")?!0:!1:!1};
rma=function(a){return a.isManifestless&&KB('video/webm; codecs="vp9"')&&g.Mb(a.u,function(b){return pw(b.info)})};
JF=function(a){return!(!a.ma||!a.ma.isManifestless)};
LF=function(a){if(!tx())return!1;if(a.ca("html5_streaming_debug"))return!0;if(g.kr)return!1;if(g.Xj()){var b=Tj();if(16<=b&&17>b)return!1}return!JF(a)||"ULTRALOW"!=a.latencyClass&&21530001!=KF(a)?window.AbortController?a.ca("html5_streaming_xhr")||a.ca("html5_streaming_xhr_manifestless")&&JF(a)?!0:!1:!1:!0};
MF=function(a){return Iz({hasSubfragmentedFmp4:a.hasSubfragmentedFmp4,ki:a.ki,defraggedFromSubfragments:a.defraggedFromSubfragments,isManifestless:JF(a),Ly:LF(a)})};
KF=function(a){return a.isLowLatencyLiveStream&&void 0!=a.ma&&5<=qA(a.ma)?21530001:a.liveExperimentalContentId};
NF=function(a){return Yj()&&IF(a)?!1:!$B()||a.WA?!0:!1};
sma=function(a){a.wd=!0;a.bl=!1;if(!a.tg&&OF(a))Gfa(a.videoId).then(function(d){a:{var e=FF(a,a.adaptiveFormats);if(e)if(d=FF(a,d)){if(0<g.P(a.Oa.experiments,"hoffle_cache_size_secs")){var f=a.videoId,h=Gw(f);0!==h&&Jw(f,h,!0)}f=g.q(Object.keys(d.u));for(h=f.next();!h.done;h=f.next()){var l=h.value;h=d.u[l];l=e.u[l];if(!l||h.lastModified<l.lastModified){PF(a,!0);a.rp=new eE(a.videoId,2,{Fn:!0});d.dispose();GF(a,e);a.V("ctmp","dlacfb",h.lastModified+"-"+(null===l||void 0===l?void 0:l.lastModified));
break a}}e.dispose();GF(a,d)}else GF(a,e)}a.V("ctmp","dlac","r")},function(){return HF(a,a.adaptiveFormats)}).then(function(){BF(a)});
else{yv(a.tg)||g.Fr(new Oq("DASH MPD Origin invalid: ",a.tg));var b=a.tg,c=g.P(a.Oa.experiments,"dash_manifest_version")||4;b=g.Id(b,{mpd_version:c});a.isLowLatencyLiveStream&&"NORMAL"!=a.latencyClass||(b=g.Id(b,{pacing:0}));Oga(b,a.Oa.experiments,a.isLivePlayback).then(function(d){a.la()||(GF(a,d,!0),VA("mrc"),BF(a))},function(d){a.la()||(a.wd=!1,a.V("dataloaderror",new lB("manifest.net.retryexhausted",!0,{backend:"manifest",
rc:d.status})))});
VA("mrs")}};
tma=function(a,b){a.rp=b};
BF=function(a){a.la()||(a.wd=!1,a.V("dataloaded"))};
GF=function(a,b,c){c=void 0===c?!1:c;a.ma=b;g.C(a,b);b.Vd=a.Vd;b.fg=a.fg;b.xj=a.xj;b.Ql=a.Ql;QF(a)&&a.Pe.push("webgl");a.ma.isLive||(a.isLivePlayback=!1);var d=b.sourceUrl.split("/");-1!=d.indexOf("manifest_duration")&&(a.kn=Number(d[d.indexOf("manifest_duration")+1]));b.C&&(c?b.subscribe("refresh",a.eE,a):b.subscribe("cuepointsadded",a.DA,a));bA(b)&&(a.np=!0)};
RF=function(a){return a.Bd?!0:!!a.ma&&bA(a.ma)};
uma=function(a,b){var c=b||NF(a);return a.ma&&!c?(zF(a)&&Tga(a.ma,a.isLivePlayback),DF(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(a.Oa.D.C=!0),qha(AF(a),a.Oa.D,a.ma,a.Wc,a.ca("html5_dynamic_av1_hybrid_threshold")).then(function(d){SF(a,d);/^av/.test(a.clientPlaybackNonce)&&a.Qo&&a.V("ctmp","av1",g.mB(a.Qo.u))})):Ur()};
vma=function(a,b){if(b&&a.hlsvp)return Ur();if(a.hlsFormats){var c=EF(a.hlsFormats);a.zs=$la(a.Oa,c);var d=a.clientPlaybackNonce;return dma(a.Oa,a.isAd(),c,a.oj,d).then(function(e){for(var f,h,l=0,m=g.q(e),n=m.next();!n.done;n=m.next())n=n.value,(null===(h=null===(f=n.Be())||void 0===f?void 0:f.audio)||void 0===h?void 0:h.u)>l&&(l=n.Be().audio.u);2<l&&a.V("ctmp","hlschl",l);TF(a,e)})}return Ur()};
wma=function(a){return a.Vn&&a.qC?gma(a.Oa,a.isAd(),a.Vn).then(function(b){TF(a,b)}):Ur()};
yma=function(a){var b=EF(a.Gq,a.ew);if(a.hlsvp){var c=nma(a.hlsvp,a.clientPlaybackNonce,a.oj);b.push(c)}return ema(a.Oa,a.isAd(),b,xma(a)).then(function(d){TF(a,d)})};
SF=function(a,b){a.Ia=b;var c=a.getAvailableAudioTracks();c=c.concat(a.Fo);for(var d=0;d<a.tv.length;d++)for(var e=a.tv[d],f=0;f<c.length;f++){var h=c[f],l=h.u.id==e.audioTrackId;if(h.u.isDefault&&d==a.uA||l){if(e.captionTrackIndices)for(l=0;l<e.captionTrackIndices.length;l++)h.captionTracks[l]=a.captionTracks[e.captionTrackIndices[l]];void 0!==e.defaultCaptionTrackIndex&&(h.D=a.captionTracks[e.defaultCaptionTrackIndex]);void 0!==e.forcedCaptionTrackIndex&&(h.B=a.captionTracks[e.forcedCaptionTrackIndex]);
h.C=e.visibility||"UNKNOWN"}}if(a.Wc&&a.Ia&&a.Ia.videoInfos&&!(0>=a.Ia.videoInfos.length)&&(c=tw(a.Ia.videoInfos[0]),c!=("fairplay"==a.Wc.flavor)))for(d=g.q(a.Kn),e=d.next();!e.done;e=d.next())if(e=e.value,c==("fairplay"==e.flavor)){a.Wc=e;break}};
TF=function(a,b){a.Fj=b;SF(a,new iC(g.Pc(a.Fj,function(c){return c.Be()})))};
xma=function(a){var b={cpn:a.clientPlaybackNonce,c:a.Oa.deviceParams.c,cver:a.Oa.deviceParams.cver};a.Rt&&(b.ptk=a.Rt,b.oid=a.RE,b.ptchn=a.QE,b.pltype=a.SE);return b};
g.UF=function(a){return CF(a)&&a.Xg?(a={},a.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",a):a.La&&a.La.Bd||null};
VF=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.text?g.S(b.text):a.paidContentOverlayText};
WF=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.durationMs?g.qd(b.durationMs):a.paidContentOverlayDurationMs};
XF=function(a){var b="";if(a.mx)return a.mx;a.isLivePlayback&&(b=a.allowLiveDvr?"dvr":"live");return b};
g.YF=function(a,b){return"string"!==typeof a.keywords[b]?null:a.keywords[b]};
ZF=function(a){return!!(a.tg||a.adaptiveFormats||a.Gq||a.Vn||a.hlsvp)};
$F=function(a){var b=g.nb(a.Pe,"ypc");a.ypcPreview&&(b=!1);return a.isValid()&&!a.wd&&(ZF(a)||g.nb(a.Pe,"fresca")||g.nb(a.Pe,"heartbeat")||b)};
EF=function(a,b){var c=Tp(a),d={};if(b)for(var e=g.q(b.split(",")),f=e.next();!f.done;f=e.next())(f=f.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(d[f[1]]={width:f[2],height:f[3]});e=g.q(c);for(f=e.next();!f.done;f=e.next()){f=f.value;var h=d[f.itag];h&&(f.width=h.width,f.height=h.height)}return c};
uF=function(a,b){a.showShareButton=!!b;if(b){var c=b.buttonRenderer&&b.buttonRenderer.navigationEndpoint;c&&(a.rq=!!c.copyTextEndpoint)}};
bG=function(a,b){var c=b.raw_embedded_player_response;if(!c){var d=b.embedded_player_response;d&&(c=JSON.parse(d))}c&&(a.vg=c);if(a.vg){if(c=a.vg.videoFlags)c.playableInEmbed&&(a.allowEmbed=!0),c.isPrivate&&(a.isPrivate=!0),c.userDisplayName&&(b.user_display_name=c.userDisplayName),c.userDisplayImage&&(b.user_display_image=c.userDisplayImage);if(c=a.vg.embedPreview){c=c.thumbnailPreviewRenderer;d=c.controlBgHtml;null!=d?(a.fj=d,a.Lc=!0):(a.fj="",a.Lc=!1);if(d=c.defaultThumbnail)a.Hh=NE(d);(d=c.videoDetails&&
c.videoDetails.embeddedPlayerOverlayVideoDetailsRenderer)&&vF(a,b,d);if(d=c.videoDetails&&c.videoDetails.musicEmbeddedPlayerOverlayVideoDetailsRenderer)a.dw=d.title,a.cw=d.byline,d.musicVideoType&&(a.musicVideoType=d.musicVideoType);a.Rk=!!c.addToWatchLaterButton;uF(a,c.shareButton);c.playButton&&c.playButton.buttonRenderer&&c.playButton.buttonRenderer.navigationEndpoint&&(d=c.playButton.buttonRenderer.navigationEndpoint,d.watchEndpoint&&(d=d.watchEndpoint,d.watchEndpointSupportedOnesieConfig&&d.watchEndpointSupportedOnesieConfig.html5PlaybackOnesieConfig&&
(a.Pt=new hma(d.watchEndpointSupportedOnesieConfig.html5PlaybackOnesieConfig))));c.videoDurationSeconds&&(a.lengthSeconds=g.qd(c.videoDurationSeconds));a.ca("web_player_include_innertube_commands")&&c.webPlayerActionsPorting&&gF(a,c.webPlayerActionsPorting);if(a.ca("embeds_wexit_list_ajax_migration")&&c.playlist&&c.playlist.playlistPanelRenderer){c=c.playlist.playlistPanelRenderer;d=[];var e=Number(c.currentIndex);if(c.contents)for(var f=0,h=c.contents.length;f<h;f++){var l=c.contents[f].playlistPanelVideoRenderer;
if(l){var m=l.shortBylineText?g.S(l.shortBylineText):"",n=l.title?g.S(l.title):"";d.push({author:m,encrypted_id:l.videoId,title:n,channel_path:f===e?b.channel_path:"",profile_picture:f===e?b.profile_picture:""})}}d={index:c.currentIndex,list:c.playlistId,playlist_length:c.totalVideos,video:d};c.titleText&&(d.title=g.S(c.titleText));c.shortBylineText&&(d.author=g.S(c.shortBylineText));a.cB=d}}a.vg.playabilityStatus&&(a.Jo=a.vg.playabilityStatus,aG(a)&&(a.errorDetail="0",a.Jo&&(c=a.Jo.embeddedPlayerErrorMessageRenderer)))&&
(a.bB=c.embeddedPlayerErrorMessageRenderer);(c=a.vg.attestation)&&eF(a,c)}};
wF=function(a,b,c,d){d={autonav:1,playnext:d};a.list&&(d.autoplay="1");if(b){if(b=b.autoplay)if(b=b.autoplay)if(b=b.sets)if(b=b[0])if(b=b.autoplayVideo)if((c=b.clickTrackingParams)&&(d.itct=c),b=b.watchEndpoint)a.autonav_watch_endpoint=b}else c&&(b=c.nextButton)&&(b=b.buttonRenderer)&&(b=b.navigationEndpoint)&&b.clickTrackingParams&&(d.itct=b.clickTrackingParams);d.itct||(d.feature="related-auto");a.endscreen_autoplay_session_data=g.Gd(d)};
vF=function(a,b,c){var d=c.channelThumbnail;d&&(d=d.thumbnails)&&(d=d[0])&&(b.profile_picture=d.url);if(d=c.channelThumbnailEndpoint&&c.channelThumbnailEndpoint.channelThumbnailEndpoint)if(d=d.urlEndpoint&&d.urlEndpoint.urlEndpoint)b.channel_path=d.url;if(d=c.collapsedRenderer)if(d=d.embeddedPlayerOverlayVideoDetailsCollapsedRenderer){var e=d.title;e&&(b.title=g.S(e));if(d=d.subtitle)b.subtitle=g.S(d)}if(c=c.expandedRenderer)if(c=c.embeddedPlayerOverlayVideoDetailsExpandedRenderer){if(d=c.title)b.expanded_title=
g.S(d);if(d=c.subtitle)b.expanded_subtitle=g.S(d);if(c=c.subscribeButton)if(c=c.subscribeButtonRenderer)b.ucid=c.channelId,b.subscribed=c.subscribed,a.Tn=!!c.notificationPreferenceToggleButton,c.notificationPreferenceToggleButton&&c.notificationPreferenceToggleButton.toggleButtonRenderer&&(b=c.notificationPreferenceToggleButton.toggleButtonRenderer,b.isToggled?(a.Ty=b.toggledServiceEndpoint||null,a.Sy=b.defaultServiceEndpoint||null):(a.Ty=b.defaultServiceEndpoint||null,a.Sy=b.toggledServiceEndpoint||
null))}};
g.cG=function(a){return a.isLivePlayback&&!a.allowLiveDvr};
dG=function(a){return a.isLivePlayback&&a.allowLiveDvr};
QF=function(a){return a.rj()||a.qj()||a.cn()||a.mj()};
zma=function(a){a.Ia=a.Ia.B};
g.eG=function(a){if(a.My)return null;var b=a.tC;b||(b=a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenUrlRenderer&&a.playerResponse.endscreen.endscreenUrlRenderer.url);return b||null};
g.fG=function(a){return a.My?null:a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenRenderer||null};
g.gG=function(a){return a.playerResponse&&a.playerResponse.cards&&a.playerResponse.cards.cardCollectionRenderer||null};
g.hG=function(a){if(!a.playerResponse||!a.playerResponse.annotations)return null;a=g.q(a.playerResponse.annotations);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.playerAnnotationsExpandedRenderer&&b.playerAnnotationsExpandedRenderer.featuredChannel)return b.playerAnnotationsExpandedRenderer;return null};
iG=function(a){return a.adFormat&&"1_5"!=a.adFormat?"adunit":a.Oa.ba};
jG=function(a){if(a.isAd()&&a.videoId!=a.Oa.Lb)return a.Oa.Lb};
kG=function(a){return a.Bh||"detailpage"==iG(a)||a.mutedAutoplay};
lG=function(a){if(kG(a)){if("detailpage"==iG(a))return a.ni||0<a.Hi;if("adunit"!=iG(a)||!a.Ln)return!0}return!1};
mG=function(a){var b=1,c=g.P(a.Oa.experiments,"html5_default_ad_gain");c&&a.isAd()&&(b=c);c=a.bq;g.Q(a.Oa.experiments,"html5_enable_per_format_loudness")&&a.Ia&&a.Ia.u&&a.Ia.u[0]&&a.Xx[a.Ia.u[0].id]&&(c=a.Xx[a.Ia.u[0].id]);return Math.min(1,Math.pow(10,-c/20))||b};
zF=function(a){var b=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],c="TVHTML5_SIMPLY"===a.Oa.deviceParams.c&&"MUSIC"===a.Oa.deviceParams.ctheme;!a.wm&&(hD(a.Oa)||c)&&b.includes(a.musicVideoType)&&(a.wm=!0);if(b=g.Xj())b=/Starboard\/([0-9]+)/.exec(g.Vc),b=10>(b?parseInt(b[1],10):NaN);c=a.Oa;c=("TVHTML5_CAST"===c.deviceParams.c||"TVHTML5"===c.deviceParams.c&&(c.deviceParams.cver.startsWith("6.20130725")||c.deviceParams.cver.startsWith("6.20130726")))&&"MUSIC"===a.Oa.deviceParams.ctheme;
var d;if(d=!a.wm)c||(c=a.Oa,c="TVHTML5"===c.deviceParams.c&&c.deviceParams.cver.startsWith("7")),d=c;d&&!b&&(b="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"===a.musicVideoType,c=(a.ca("cast_prefer_audio_only_for_atv_and_uploads")||a.ca("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&"MUSIC_VIDEO_TYPE_ATV"===a.musicVideoType,b||c)&&(a.wm=!0);return!a.Oa.deviceHasDisplay||a.wm&&a.Oa.C};
oG=function(a){return nG(a)&&!!a.adaptiveFormats};
nG=function(a){return!!(a.ca("hoffle_save")&&a.Pm&&a.Oa.C)};
PF=function(a,b){if(a.Pm!=b&&(a.Pm=b)&&a.ma){var c=a.ma,d;for(d in c.u){var e=c.u[d];e.F=!1;e.u=null}}};
OF=function(a){return!(!(a.ca("hoffle_load")&&a.adaptiveFormats&&Kw(a.videoId))||a.Pm)};
pG=function(a){if(!a.ma||!a.La||!a.Rc)return!1;var b=a.ma.u;return!!b[a.La.id]&&Hv(b[a.La.id].B.u)&&!!b[a.Rc.id]&&Hv(b[a.Rc.id].B.u)};
aG=function(a){return(a=a.Jo)&&a.showError?a.showError:!1};
qG=function(a){return a.ca("disable_rqs")?!1:DF(a,"html5_high_res_logging")};
DF=function(a,b){return a.ca(b)?!0:(a.fflags||"").includes(b+"=true")};
Ama=function(a){return(a=/html5_log_experiment_id_from_player_response_to_ctmp=([0-9]+)/.exec(a.fflags))?a[1]:null};
sF=function(a,b){var c=b.video_masthead_ad_quartile_urls;c&&(a.Ut=c.quartile_0_url,a.fy=c.quartile_25_url,a.hy=c.quartile_50_url,a.jy=c.quartile_75_url,a.dy=c.quartile_100_url,a.Vt=c.quartile_0_urls,a.gy=c.quartile_25_urls,a.iy=c.quartile_50_urls,a.ky=c.quartile_75_urls,a.ey=c.quartile_100_urls)};
tG=function(a){return a?$B()?!0:rG&&5>sG?!1:!0:!1};
rF=function(a){var b={};a=g.q(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.split("=");2==d.length?b[d[0]]=d[1]:b[c]=!0}return b};
fF=function(a){if(a){if(Bv(a))return a;a=Cv(a);if(Bv(a,!0))return a}return""};
g.uG=function(a,b){g.O.call(this);this.Oa=a;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.wd=this.loaded=!1;this.bd=this.Qv=this.Yp=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.Hh={};this.Ks=0;var c=b.session_data;c&&(this.bd=Qp(c));this.gI=0!==b.fetch;this.index=Math.max(0,Number(b.index)||0);this.loop=!!b.loop;this.startSeconds=Number(b.startSeconds)||0;this.oM="1"===b.mob;this.title=b.playlist_title||"";this.description=
b.playlist_description||"";this.author=b.author||b.playlist_author||"";b.video_id&&(this.items[this.index]=b);if(c=b.api)"string"===typeof c&&16===c.length?b.list="PL"+c:b.playlist=c;if(c=b.list)switch(b.listType){case "user_uploads":this.wd||(this.listId=new g.HE("UU","PLAYER_"+c),this.loadPlaylist("/list_ajax?style=json&action_get_user_uploads_by_user=1",{username:c}));break;case "search":Bma(this,c);break;default:var d=b.playlist_length;d&&(this.length=Number(d)||0);this.listId=new g.HE(c.substr(0,
2),c.substr(2));(c=b.video)?(this.items=c.slice(0),this.loaded=!0):Cma(this)}else if(b.playlist){c=b.playlist.toString().split(",");0<this.index&&(this.items=[]);c=g.q(c);for(d=c.next();!d.done;d=c.next())(d=d.value)&&this.items.push({video_id:d});this.length=this.items.length;c=this.items.map(function(e){return e.video_id});
this.loadPlaylist("/list_ajax?style=json&action_get_templist=1",{video_ids:c.join(",")});this.loaded=!0}this.setShuffle(!!b.shuffle);if(c=b.suggestedQuality)this.quality=c;this.Hh=KE(b,"playlist_");this.bG=(c=b.thumbnail_ids)?c.split(","):[]};
vG=function(a){return!!(a.playlist||a.list||a.api)};
wG=function(a){var b=a.index+1;return b>=a.length?0:b};
xG=function(a){var b=a.index-1;return 0>b?a.length-1:b};
yG=function(a,b){a.index=g.$d(b,0,a.length-1);a.startSeconds=0};
Bma=function(a,b){if(!a.wd){a.listId=new g.HE("SR",b);var c={search_query:b};a.oM&&(c.mob="1");a.loadPlaylist("/search_ajax?style=json&embeddable=1",c)}};
Cma=function(a){if(!a.wd){var b=b||a.listId;b={list:b};var c=a.Ka();c&&c.videoId&&(b.v=c.videoId);a.loadPlaylist("/list_ajax?style=json&action_get_list=1",b)}};
zG=function(a,b){if(b.video&&b.video.length){a.title=b.title||"";a.description=b.description;a.views=b.views;a.likes=b.likes;a.dislikes=b.dislikes;a.author=b.author||"";var c=b.loop;c&&(a.loop=c);c=a.Ka();a.items=[];for(var d=g.q(b.video),e=d.next();!e.done;e=d.next())if(e=e.value)e.video_id=e.encrypted_id,a.items.push(e);a.length=a.items.length;(d=b.index)?a.index=d:a.findIndex(c);a.setShuffle(!1);a.wd=!1;a.loaded=!0;a.Ks++;a.Yp&&a.Yp()}};
Dma=function(){};
BG=function(){this.u={};var a=g.sq("CONSISTENCY");a&&AG(this,{encryptedTokenJarContents:a})};
AG=function(a,b){if(b.encryptedTokenJarContents&&(a.u[b.encryptedTokenJarContents]=b,"string"===typeof b.expirationSeconds)){var c=Number(b.expirationSeconds);setTimeout(function(){delete a.u[b.encryptedTokenJarContents]},1E3*c);
g.rq("CONSISTENCY",b.encryptedTokenJarContents,c,void 0,!0)}};
DG=function(){var a=g.K("LOCATION_PLAYABILITY_TOKEN");"TVHTML5"===g.K("INNERTUBE_CLIENT_NAME")&&(this.localStorage=CG(this))&&(a=this.localStorage.get("yt-location-playability-token"));a&&(this.locationPlayabilityToken=a,this.u=void 0)};
EG=function(){DG.u||(DG.u=new DG);return DG.u};
CG=function(a){return void 0===a.localStorage?new uq("yt-client-location"):a.localStorage};
g.GG=function(a,b){b=void 0===b?!0:b;var c=g.K("INNERTUBE_CONTEXT");if(!c)return g.Er(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};c=g.$b(c);var d=b,e,f;c.client||(c.client={});var h=c.client;"MWEB"===h.clientName&&(h.clientFormFactor=g.K("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");h.screenWidthPoints=window.innerWidth;h.screenHeightPoints=window.innerHeight;h.screenPixelDensity=Math.round(window.devicePixelRatio||1);h.screenDensityFloat=window.devicePixelRatio||1;
h.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var l=void 0===l?!1:l;g.es.getInstance();var m="USER_INTERFACE_THEME_LIGHT";g.gs(0,165)?m="USER_INTERFACE_THEME_DARK":g.gs(0,174)?m="USER_INTERFACE_THEME_LIGHT":!g.ro("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&&(m="USER_INTERFACE_THEME_DARK");l=l?m:Tea()||m;h.userInterfaceTheme=l;if(g.ro("web_log_connection")){a:{if(m=(l=window.navigator)?
l.connection:void 0){l=FG[m.type||"unknown"]||"CONN_UNKNOWN";m=FG[m.u||"unknown"]||"CONN_UNKNOWN";"CONN_CELLULAR_UNKNOWN"===l&&"CONN_UNKNOWN"!==m&&(l=m);if("CONN_UNKNOWN"!==l)break a;if("CONN_UNKNOWN"!==m){l=m;break a}}l=void 0}l&&(h.connectionType=l)}g.ro("web_populate_graft_url_killswitch")||"MWEB"!==h.clientName&&"WEB"!==h.clientName||(h.mainAppWebInfo={graftUrl:g.v.location.href});g.ro("web_populate_time_zone_itc_killswitch")||(l="undefined"!==typeof Intl?(new Intl.DateTimeFormat).resolvedOptions().timeZone:
void 0,l&&(h.timeZone=l));(l="MWEB"===h.clientName||g.ro("it_context_exp_goog_cookie_killswitch")?g.sq("EXPERIMENTS_DEBUG"):qq.get("EXPERIMENTS_DEBUG"))?h.experimentsToken="ZERO"===l?"GgIQAQ%3D%3D":l:delete h.experimentsToken;h=uo();BG.u||(BG.u=new BG);l=g.Pb(BG.u.u);c.request=Object.assign(Object.assign({},c.request),{internalExperimentFlags:h,consistencyTokenJars:l});l=g.es.getInstance();h=g.gs(0,58);l=l.get("gsml","");c.user=Object.assign({},c.user);h&&(c.user.enableSafetyMode=h);l&&(c.user.lockedSafetyMode=
!0);(h=g.K("DELEGATED_SESSION_ID"))&&!g.ro("pageid_as_header_web")&&(c.user.onBehalfOfUser=h);d&&(d=g.Ms())&&(c.clientScreenNonce=d);a&&(c.clickTracking={clickTrackingParams:a});g.ro("web_enable_client_location_service")&&(d=EG(),c.client||(c.client={}),d.u?(c.client.locationInfo||(c.client.locationInfo={}),c.client.locationInfo.latitudeE7=1E7*d.u.coords.latitude,c.client.locationInfo.longitudeE7=1E7*d.u.coords.longitude,c.client.locationInfo.horizontalAccuracyMeters=d.u.coords.accuracy):d.locationPlayabilityToken&&
(c.client.locationPlayabilityToken=d.locationPlayabilityToken));if(g.ro("web_enable_ad_signals_in_it_context")){d=null===(e=c.adSignalsInfo)||void 0===e?void 0:e.consentBumpParams;e=cq(void 0);h=e.bid;delete e.bid;c.adSignalsInfo={params:[],bid:h};e=g.q(Object.entries(e));for(h=e.next();!h.done;h=e.next())l=g.q(h.value),h=l.next().value,l=l.next().value,null===(f=c.adSignalsInfo.params)||void 0===f?void 0:f.push({key:h,value:""+l});!Nr()&&d&&(c.adSignalsInfo.consentBumpParams=d)}return c};
HG=function(a){return a.isTimeout?"NO_BID":"ERR_BID"};
Ema=function(){var a=null;cs().then(function(b){return a=b},function(b){return a=HG(b)});
return a};
Fma=function(){var a=Rm(1E3,"NO_BID");return Fm(Hm(nda([cs(),a]),HG),function(){return a.cancel()})};
IG=function(a){return a.sb?g.gs(g.es.getInstance(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"};
JG=function(a){this.u=a;this.C=g.P(a.T().experiments,"bulleit_get_midroll_info_timeout_ms")||8E3;this.D=this.B=1};
dH=function(a,b,c,d){c=void 0===c?{}:c;var e=c.Do,f=c.pd;d=void 0===d?"":d;c=a.u.getVideoData(1);var h=a.u.T().Rj,l={AD_BLOCK:a.B++,AD_BREAK_LENGTH:e?e.durationSecs:0,AUTONAV_STATE:IG(a.u.T()),CA_TYPE:"image",CPN:c.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:1E3*KG(a.u),LACT:wp(),LIVE_INDEX:e?a.D++:1,LIVE_TARGETING_CONTEXT:e&&e.context?e.context:"",MIDROLL_POS:f?Math.round(f.start/1E3):0,MIDROLL_POS_MS:f?Math.round(f.start):0,VIS:a.u.getVisibilityState(),P_H:g.LG(a.u).getPlayerSize().height,P_W:g.LG(a.u).getPlayerSize().width,
YT_REMOTE:h?h.join(","):""},m=bq(aq);Object.keys(m).forEach(function(n){null!=m[n]&&(l[n.toUpperCase()]=m[n].toString())});
""!==d&&(l.BISCOTTI_ID=d);d={};(e=a.u.T().Aa)&&$p(b)&&(d.forced_experiments=e);b=Xp(g.kn(b,l),d);a.u.getVideoData().enableServerStitchedDai&&(b=b.concat("&expflag=enable_midroll_notify_for_bulleit%3Afalse"));d=b.split("?");if(2!=d.length)return Bm(Error("Invalid AdBreakInfo URL"));e=g.q(d);d=e.next().value;e=e.next().value;g.Q(a.u.T().experiments,"get_midroll_info_wexit")&&(f=Gma(a,b,l),f={rpc_data:JSON.stringify(f)},b=Xp(b,f));f={};c.oauthToken&&Zp()&&(f.Authorization="Bearer "+c.oauthToken);c=Sp(e);
e=a.u.T();return g.Q(e.experiments,"get_midroll_info_wexit")?Rr(b,{Vv:!0,format:"RAW",headers:f,method:"POST",dc:c,timeout:a.C,withCredentials:!0}):g.Q(e.experiments,"get_midroll_info_use_client_rpc")?(c=MG(a.u.app),a=NG(a,b,l),OG(c,a,"/youtubei/v1/player/ad_break")):g.gD(e)?Rr(d,{Vv:!0,format:"RAW",headers:f,method:"POST",dc:c,timeout:a.C,withCredentials:!0}):Rr(b,{Vv:!0,format:"RAW",headers:f,method:"GET",timeout:a.C,withCredentials:!0})};
Ima=function(a,b,c,d){a.client||(a.client={});a.client.originalUrl=b;var e=Yp(b),f=eH(b,"X-YouTube-Time-Zone");(e||f)&&"undefined"!==typeof Intl&&(a.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);f=eH(b,"X-YouTube-Ad-Signals");if(e||f||""!==c){var h={};b=Rp(cq(c)).split("&");var l=new Map;b.forEach(function(m){m=m.split("=");1<m.length&&l.set(m[0].toString(),decodeURIComponent(m[1].toString()))});
l.has("bid")&&(h.bid=l.get("bid"));h.params=[];Hma.forEach(function(m){l.has(m)&&(m={key:m,value:l.get(m)},h.params.push(m))});
a.adSignalsInfo=h}a.client.unpluggedAppInfo||(a.client.unpluggedAppInfo={});a.client.unpluggedAppInfo.enableFilterMode=!1;b=d.deviceParams.cosver;null!=b&&"cosver"!==b&&(a.client.osVersion=b);b=d.deviceParams.cplatform;null!=b&&"cplatform"!==b&&""!==b&&(a.client.platform=b);b=d.deviceParams.cmodel;null!=b&&"cmodel"!==b&&(a.client.deviceModel=b);b=d.deviceParams.cplayer;null!=b&&"cplayer"!==b&&(a.client.playerType=b);d=d.deviceParams.cbrand;null!=d&&"cbrand"!==d&&(a.client.deviceMake=d);a.user||(a.user=
{});a.user.lockedSafetyMode=!1};
Jma=function(a,b,c){var d=!1;if(""==b)return d;b.split(",").forEach(function(e){var f={},h={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},l="ACTIVE";"!"==e[0]&&(e=e.substring(1),l="INACTIVE");e=e.split("-");3>e.length||(e[0]in fH&&(h.clientName=fH[e[0]]),e[1]in gH&&(h.platform=gH[e[1]]),h.applicationState=l,h.clientVersion=2<e.length?e[2]:"",c?(f.remoteClient=h,a.remoteContexts?a.remoteContexts.push(f):a.remoteContexts=[f]):a.remoteClients?a.remoteClients.push(h):a.remoteClients=
[h],d=!0)});
return d};
NG=function(a,b,c){var d=c.DRIFT_FROM_HEAD_MS&&!Number.isNaN(c.DRIFT_FROM_HEAD_MS)?c.DRIFT_FROM_HEAD_MS:0,e=Kma.exec(b);e=null!=e&&2<=e.length?e[1]:"";var f=Lma.test(b),h=Mma.exec(b);h=null!=h&&2<=h.length?h[1]:"";var l=Nma.exec(b);l=null!=l&&2<=l.length&&!Number.isNaN(parseInt(l[1],10))?parseInt(l[1],10):1;var m=Oma.exec(b);m=null!=m&&2<=m.length?m[1]:"0";var n=g.$C(a.u.T()),p=g.GG(a.u.getVideoData(1).Ag,!0),r="BISCOTTI_ID"in c?c.BISCOTTI_ID:"";Ima(p,b,r.toString(),a.u.T());var t={splay:!1,lactMilliseconds:c.LACT.toString(),
playerHeightPixels:c.P_H,playerWidthPixels:c.P_W,vis:c.VIS,signatureTimestamp:18585,autonavState:IG(a.u.T())},w={};Jma(w,c.YT_REMOTE,g.Q(a.u.T().experiments,"use_remote_context_in_populate_remote_client_info"))&&(t.mdxContext=w);if(a=hH.includes(n)?void 0:g.sq("PREF")){w=a.split(/[:&]/);for(var x=0,y=w.length;x<y;x++){var D=w[x].split("=");if(("SML"==D[0].toUpperCase()||"GSML"==D[0].toUpperCase())&&1<D.length&&"TRUE"==D[1].toUpperCase()){p.user.lockedSafetyMode=!0;break}}a:{if("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in
iH)for(a=a.split(/[:&]/),x=iH.FLAG_AUTO_CAPTIONS_DEFAULT_ON,w="f"+(1+Math.floor(x/31)).toString(),x=1<<Math.floor(x%31),y=0,D=a.length;y<D;y++){var E=a[y].split("=");if(E[0]==w&&parseInt("0x"+E[1],16)&x){a=!0;break a}}a=!1}t.autoCaptionsDefaultOn=a}b=Pma.exec(b);(b=null!=b&&2<=b.length?b[1]:"")&&h&&(p.user.credentialTransferTokens=[{token:b,scope:"VIDEO"}]);b={contentPlaybackContext:t};e={adBlock:c.AD_BLOCK,params:e,breakIndex:l,breakPositionMs:m,clientPlaybackNonce:c.CPN,topLevelDomain:n,isProxyAdTagRequest:f,
context:p,adSignalsInfoString:Rp(cq(r.toString())),overridePlaybackContext:b};h&&(e.videoId=h);c.LIVE_TARGETING_CONTEXT&&(e.liveTargetingParams=c.LIVE_TARGETING_CONTEXT);c.AD_BREAK_LENGTH&&(e.breakLengthMs=(1E3*c.AD_BREAK_LENGTH).toString());d&&(e.driftFromHeadMs=d.toString());return e};
Gma=function(a,b,c){var d=g.sq("dkv"),e=Qma.exec(b);e=null!=e&&2<=e.length?Number(e[1]):0;e=isNaN(e)?0:e;var f=g.$C(a.u.T()),h=new Dma;h.clientName=a.u.T().ea.Bs.toString();h.host=f;h.u=void 0;f=hH.includes(f)?void 0:g.sq("PREF");return{adBreakRequest:NG(a,b,c),adsCookie:d,clientInfo:h,lact:c.LACT.toString(),mediaTimeMs:e,vis:c.VIS,playerHeightPixels:c.P_H,playerWidthPixels:c.P_W,ytRemote:c.YT_REMOTE,prefCookie:f,signatureTimestamp:18585}};
jH=function(a,b,c){if(c&&c!==a.Wa)return!1;b=g.q(b);for(c=b.next();!c.done;c=b.next())if(!a.ua.u.has(c.value))return!1;return!0};
kH=function(a,b,c){this.u=a;this.B=b;this.C=c};
lH=function(a,b,c,d,e,f){g.B.call(this);this.nb=a;this.ab=b;this.fc=c;this.Ba=d;this.B=e;this.u=f};
Sma=function(a,b,c){c.qm?(mH(a.nb.get(),"opportunity_type_ad_break_service_response_received",function(){return[]},b.slotId),Rma(a.B,b)):nH(a.u,c.Pg,b.slotId)};
Tma=function(a,b,c,d){var e=oH(a.Ba.get(),1);mH(a.nb.get(),"opportunity_type_ad_break_service_response_received",function(){return pH(a.fc.get(),c,d,e.clientPlaybackNonce,e.JA,e.daiEnabled,e)},b)};
qH=function(a){this.value=a};
rH=function(a){this.value=a};
sH=function(a){this.value=a};
tH=function(a){this.value=a};
uH=function(){qH.apply(this,arguments)};
vH=function(a){this.value=a};
wH=function(a){this.value=a};
xH=function(a){this.value=a};
yH=function(a){this.value=a};
zH=function(a){this.value=a};
AH=function(a){this.value=a};
BH=function(){qH.apply(this,arguments)};
CH=function(a){this.value=a};
DH=function(a){this.value=a};
EH=function(a){this.value=a};
FH=function(a){this.value=a};
GH=function(a){this.value=a};
HH=function(a){this.value=a};
IH=function(a){this.value=a};
JH=function(a){this.value=a};
KH=function(a){this.value=a};
LH=function(a){this.value=a};
MH=function(a){this.value=a};
NH=function(a){this.value=a};
OH=function(a){this.value=a};
PH=function(a){this.value=a};
QH=function(a){this.value=a};
RH=function(a){this.value=a};
SH=function(a){this.value=a};
TH=function(a){this.value=a};
UH=function(a){this.value=a};
VH=function(a){this.value=a};
WH=function(a){this.value=a};
XH=function(a){this.value=a};
YH=function(a){this.value=a};
ZH=function(a){this.value=a};
$H=function(){qH.apply(this,arguments)};
aI=function(){qH.apply(this,arguments)};
bI=function(a){var b,c=null===(b=a.config)||void 0===b?void 0:b.adPlacementConfig;a=a.renderer;return!(!c||null==c.kind||!a)};
cI=function(a,b,c){c=void 0===c?!1:c;$a.call(this,a);this.Yk=c;this.args=[];b&&this.args.push(b)};
Uma=function(a,b,c,d,e,f,h){b=dI(b,f,Number(d.prefetchMilliseconds)||0,h);a=b instanceof cI?b:eI(a,d,e,b,c);return a instanceof cI?a:[a]};
fI=function(a){var b,c;return void 0!==(null===(c=null===(b=a.renderer)||void 0===b?void 0:b.adBreakServiceRenderer)||void 0===c?void 0:c.getAdBreakUrl)};
gI=function(a,b){this.B=b;this.triggerType="trigger_type_before_content_video_id_started";this.triggerId=a(this.triggerType)};
hI=function(a){return"SLOT_TYPE_PLAYER_BYTES"===a.Wa&&a.Tb instanceof gI};
iI=function(a){if(hI(a))return a.Tb.B};
jI=function(a,b){this.C=b;this.triggerType="trigger_type_layout_id_entered";this.triggerId=a(this.triggerType)};
kI=function(a,b,c,d,e,f){this.B=b;this.C=c;this.visible=d;this.D=void 0===e?!1:e;this.F=void 0===f?!1:f;this.triggerType="trigger_type_media_time_range";this.triggerId=a(this.triggerType)};
lI=function(a){return a?"layout:  "+a.layoutType:""};
mI=function(a,b){var c=a?"trigger type: "+a.triggerType:"empty";if(b){var d=String(b.end);if(a instanceof kI&&a.D||a instanceof jI&&0x7ffffffffffff===b.end)d="MediaEnd";c+=" |start: "+b.start+(" |end: "+d)}return c};
T=function(a,b,c,d,e){d=void 0===d?{}:d;if(!e||5E-4>Math.random())b=b||null,c=c||null,a=a instanceof Error?a:new Oq(a),d.category="H5 Ads Control Flow",b&&(d.slot=b?"slot:  "+b.Wa:""),c&&(d.layout=lI(c)),e&&(d.known_error_aggressively_sampled=!0),Jr(a,d),g.Fr(a)};
dI=function(a,b,c,d){var e=a.kind;d=d?!1:!a.hideCueRangeMarker;switch(e){case "AD_PLACEMENT_KIND_START":return d={Hg:new Ln(-0x8000000000000,-0x8000000000000),Wt:d},null!=c&&(d.Qm=new Ln(-0x8000000000000,-0x8000000000000)),d;case "AD_PLACEMENT_KIND_END":return d={Hg:new Ln(0x7ffffffffffff,0x8000000000000),Wt:d},null!=c&&(d.Qm=new Ln(Math.max(0,b-c),0x8000000000000)),d;case "AD_PLACEMENT_KIND_MILLISECONDS":e=a.adTimeOffset;e.offsetStartMilliseconds||T("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds.");
e.offsetEndMilliseconds||T("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");a=Number(e.offsetStartMilliseconds);e=Number(e.offsetEndMilliseconds);-1===e&&(e=b);if(Number.isNaN(a)||Number.isNaN(e)||a>e)return new cI("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:a,offsetEndMs:e},e===b&&a-500<=e);d={Hg:new Ln(a,e),Wt:d};if(null!=c){a=Math.max(0,a-c);if(a===e)return d;d.Qm=new Ln(a,e)}return d;default:return new cI("AdPlacementKind not supported in convertToRange.",
{kind:e,adPlacementConfig:a})}};
nI=function(a,b,c,d,e,f){g.B.call(this);this.nb=a;this.fc=b;this.Yu=c;this.ya=d;this.u=e;this.Ba=f};
pI=function(a){return(a=oI(a.ua,"metadata_type_fulfilled_layout"))?a.layoutType:a};
Vma=function(a,b,c){var d=[];a=g.q(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=e.renderer.invideoOverlayAdRenderer||e.renderer.adBreakServiceRenderer&&fI(e);"AD_PLACEMENT_KIND_MILLISECONDS"===e.config.adPlacementConfig.kind&&f&&(f=dI(e.config.adPlacementConfig,0x7ffffffffffff),f instanceof cI||d.push({range:f.Hg,renderer:e.renderer.invideoOverlayAdRenderer?"overlay":"ABSR"}))}d.sort(function(h,l){return h.range.start-l.range.start});
a=!1;for(e=0;e<d.length-1;e++)if(d[e].range.end>d[e+1].range.start){a=!0;break}a&&(d=d.map(function(h){return h.renderer+"|s:"+h.range.start+("|e:"+h.range.end)}).join(","),T("Conflicting renderers.",void 0,void 0,{detail:d,
cpn:b,videoId:c}))};
qI=function(a,b,c,d){this.C=a;this.ze=null;this.B=b;this.u=0;this.daiEnabled=void 0===c?!1:c;this.visible=!0;this.D=void 0===d?!1:d};
rI=function(a,b,c,d,e){g.OD.call(this,b.start,b.end,{id:d,namespace:"ad",priority:e,visible:c});this.u=a.kind||"AD_PLACEMENT_KIND_UNKNOWN";this.B=!1;this.C=null};
sI=function(a){return"AD_PLACEMENT_KIND_START"==a.u};
tI=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.u};
Wma=function(a){return a.end-a.start};
uI=function(a,b,c){c=void 0===c?!1:c;switch(a.kind){case "AD_PLACEMENT_KIND_START":return new Ln(-0x8000000000000,-0x8000000000000);case "AD_PLACEMENT_KIND_END":return c?new Ln(Math.max(0,b.C-b.u),0x7ffffffffffff):new Ln(0x7ffffffffffff,0x8000000000000);case "AD_PLACEMENT_KIND_MILLISECONDS":var d=a.adTimeOffset;a=parseInt(d.offsetStartMilliseconds,10);d=parseInt(d.offsetEndMilliseconds,10);-1===d&&(d=b.C);if(c&&(d=a,a=Math.max(0,a-b.u),a==d))break;return new Ln(a,d);case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":d=
b.ze;a=1E3*d.startSecs;if(c){if(a<b.B)return new Ln(a-4E3,a);c=Math.max(0,a-b.B-1E4);return new Ln(b.D?b.B:Math.floor(b.B+Math.random()*c),a)}return new Ln(a,a+(0<d.durationSecs?1E3*d.durationSecs:5E3))}return null};
vI=function(a,b,c){this.actionType=b;this.id=c;this.content=a};
Xma=function(){this.url=null;this.height=this.width=0;this.adInfoRenderer=this.impressionTrackingUrls=this.clickTrackingUrls=null};
wI=function(){this.contentVideoId=null;this.macros={};this.imageCompanionAdRenderer=this.iframeCompanionRenderer=null};
xI=function(a){this.u=a};
Yma=function(a){var b=new xI(a.J);return{UI:function(){return b}}};
yI=function(a,b){this.u=a;this.Aa=b||{};this.K=String(Math.floor(1E9*Math.random()));this.P={};this.N=0};
Zma=function(a){switch(a){case "fully_viewable_audible_half_duration_impression":return"adfullyviewableaudiblehalfdurationimpression";case "measurable_impression":return"adactiveviewmeasurable";case "overlay_unmeasurable_impression":return"adoverlaymeasurableimpression";case "overlay_unviewable_impression":return"adoverlayunviewableimpression";case "overlay_viewable_end_of_session_impression":return"adoverlayviewableendofsessionimpression";case "overlay_viewable_immediate_impression":return"adoverlayviewableimmediateimpression";
case "viewable_impression":return"adviewableimpression";default:return null}};
zI=function(){g.O.call(this);var a=this;this.u={};g.$f(this,function(){return Object.keys(a.u).forEach(function(b){return delete a.u[b]})})};
BI=function(){if(null===AI){AI=new zI;yl.getInstance().u="b";var a=yl.getInstance(),b="h"==el(a)||"b"==el(a),c=!(rh.getInstance(),!1);b&&c&&(a.F=!0,a.G=new gca)}return AI};
$ma=function(a,b,c){a.u[b]=c};
ana=function(a){this.C=a;this.B={};this.u=Wf()?500:g.UC(a.T())?1E3:2500};
cna=function(a,b){if(!b.length)return null;var c=b.filter(function(d){if(!d.mimeType)return!1;d.mimeType in a.B||(a.B[d.mimeType]=a.C.canPlayType(d.mimeType));return a.B[d.mimeType]?!!d.mimeType&&"application/x-mpegurl"==d.mimeType.toLowerCase()||!!d.mimeType&&"application/dash+xml"==d.mimeType.toLowerCase()||"PROGRESSIVE"==d.delivery:!1});
return bna(a,c)};
bna=function(a,b){for(var c=null,d=g.q(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.minBitrate,h=e.maxBitrate;f>a.u||h<a.u||c&&!(f<c.minBitrate)||(c=e)}if(!c)for(c=null,d=g.q(b),e=d.next();!e.done;e=d.next())e=e.value,f=e.maxBitrate,h=e.minBitrate,f>a.u||(!c||f>c.maxBitrate?c=e:c&&f==c.maxBitrate&&h<c.minBitrate&&(c=e));if(!c)for(c=null,d=g.q(b),e=d.next();!e.done;e=d.next())e=e.value,f=e.minBitrate,h=e.maxBitrate,f<a.u||(!c||f<c.minBitrate?c=e:c&&f==c.minBitrate&&h>c.maxBitrate&&(c=e));return c};
CI=function(a,b){this.u=a;this.F=b;this.B=b.length;this.adBreakLengthSeconds=b.reduce(function(e,f){return e+f},0);
for(var c=0,d=a+1;d<b.length;d++)c+=b[d];this.adBreakRemainingLengthSeconds=c};
DI=function(a){return new Map([["impression",a.impressionPings||[]],["error",a.errorPings||[]],["mute",a.mutePings||[]],["unmute",a.unmutePings||[]],["pause",a.pausePings||[]],["rewind",a.rewindPings||[]],["resume",a.resumePings||[]],["skip",a.skipPings||[]],["close",a.closePings||[]],["progress",a.progressPings||[]],["clickthrough",a.clickthroughPings||[]],["fullscreen",a.fullscreenPings||[]],["active_view_viewable",a.activeViewViewablePings||[]],["active_view_measurable",a.activeViewMeasurablePings||
[]],["active_view_fully_viewable_audible_half_duration",a.activeViewFullyViewableAudibleHalfDurationPings||[]],["end_fullscreen",a.endFullscreenPings||[]],["channel_clickthrough",a.channelClickthroughPings||[]],["abandon",a.abandonPings||[]],["start",a.startPings||[]],["first_quartile",a.firstQuartilePings||[]],["midpoint",a.secondQuartilePings||[]],["third_quartile",a.thirdQuartilePings||[]],["complete",a.completePings||[]]])};
dna=function(a){return(a=a.pings)?Object.fromEntries(DI(a)):{}};
EI=function(a,b,c,d,e){yI.call(this,a,dna(a));(a=c&&c.kind)||(a="AD_PLACEMENT_KIND_UNKNOWN");this.za=c;this.isPostroll="AD_PLACEMENT_KIND_END"===a;this.D=new CI(0,[]);this.G=this.ba=null;this.Ea=b;this.da=[];this.F={};this.ra=null;this.B=0;this.W=this.Y=this.C=null;this.ia=d;this.ka=e;this.X=null;b=this.u.skipOffsetMilliseconds||0;0<b&&(this.ra=b);this.F=Sp(this.u.playerVars||"");if(b=this.u.external)this.da=b.mediaFiles||[],b=b.durationMilliseconds,"number"===typeof b&&(this.B=b/1E3,this.F.length_seconds=
this.B.toString()),(b=cna(this.Ea,this.da))?(this.Y=b.uri,b=b.mimeType,this.F.url_encoded_third_party_media="url="+encodeURIComponent(this.Y)+"&type="+encodeURIComponent(b)):this.W=Error("Nonplayable third party ad media file.");else if(this.ia&&g.Q(this.ia,"use_ivar_to_extract_ad_video_id")?this.C=this.u.externalVideoId||null:this.C=this.F.video_id,this.ba=this.F.ucid||null,this.B=wC(this.B,this.F.length_seconds),this.ka&&this.C&&(this.X=this.ka(this.C)),this.F.cta_conversion_urls)try{this.F.cta_conversion_urls=
JSON.parse(this.F.cta_conversion_urls)}catch(f){M(f)}this.G=this.u.clickthroughEndpoint||null;this.D=new CI(0,[this.B])};
FI=function(a){var b=a.F||{};1<a.D.B&&(b.slot_pos=a.D.u);b.autoplay="1";return b};
GI=function(a){return 0<a.B&&7.05>=a.B};
HI=function(){yI.apply(this,arguments)};
II=function(){this.B=[];this.D=null;this.C=0};
JI=function(a,b){b&&a.B.push(b)};
KI=function(a){if(!a)return[];var b=[];a=g.q(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.loggingUrls){c=g.q(c.loggingUrls);for(var d=c.next();!d.done;d=c.next())b.push({baseUrl:d.value.baseUrl})}return b};
LI=function(a){if(!a)return[];var b=[];a.forEach(function(c){c.command.loggingUrls.forEach(function(d){b.push({baseUrl:d.baseUrl,offsetMilliseconds:c.adVideoOffset.milliseconds})})});
return b};
MI=function(a){return a&&a.adVideoOffset&&a.adVideoOffset.percent||0};
NI=function(a){return"AD_VIDEO_PROGRESS_KIND_PERCENT"==a.adVideoOffset.kind};
ena=function(a){a=a.playbackCommands;if(!a)return{};var b={};b.impression=KI(a.impressionCommands)||[];b.error=KI(a.errorCommands)||[];b.mute=KI(a.muteCommands)||[];b.unmute=KI(a.unmuteCommands)||[];b.pause=KI(a.pauseCommands)||[];b.rewind=KI(a.rewindCommands)||[];b.resume=KI(a.resumeCommands)||[];b.skip=KI(a.skipCommands)||[];b.close=KI(a.closeCommands)||[];b.clickthrough=KI(a.clickthroughCommands)||[];b.fullscreen=KI(a.fullscreenCommands)||[];b.active_view_viewable=KI(a.activeViewViewableCommands)||
[];b.active_view_measurable=KI(a.activeViewMeasurableCommands)||[];b.active_view_fully_viewable_audible_half_duration=KI(a.activeViewFullyViewableAudibleHalfDurationCommands)||[];b.end_fullscreen=KI(a.endFullscreenCommands)||[];b.channel_clickthrough=KI(a.channelClickthroughCommands)||[];b.abandon=KI(a.abandonCommands)||[];b.progress=LI(a.progressCommands.filter(function(c){return"AD_VIDEO_PROGRESS_KIND_MILLISECONDS"==c.adVideoOffset.kind}));
b.start=LI(a.progressCommands.filter(function(c){return NI(c)&&ce(MI(c),0)}));
b.first_quartile=LI(a.progressCommands.filter(function(c){return NI(c)&&ce(MI(c),.25)}));
b.midpoint=LI(a.progressCommands.filter(function(c){return NI(c)&&ce(MI(c),.5)}));
b.third_quartile=LI(a.progressCommands.filter(function(c){return NI(c)&&ce(MI(c),.75)}));
b.complete=LI(a.progressCommands.filter(function(c){return NI(c)&&ce(MI(c),1)}));
return b};
OI=function(a){yI.call(this,a,ena(a));this.B=a.questions?a.questions.reduce(function(b,c){var d=c.instreamSurveyAdSingleSelectQuestionRenderer||c.instreamSurveyAdMultiSelectQuestionRenderer;return d?b+(d.surveyAdQuestionCommon.durationMilliseconds||0)/1E3:b},0):0};
PI=function(a,b,c,d){this.id=b;this.X=a.placementStartPings||[];this.W=a.placementEndPings||[];this.C=d.ze;b=a.config&&a.config.adPlacementConfig;if(!b)throw Error("Malformed AdPlacementRenderer: missing AdPlacementConfig");var e=a.renderer&&a.renderer.adBreakServiceRenderer&&a.renderer.adBreakServiceRenderer||{};this.D=(this.K=e.getAdBreakUrl||"")?0:2;d.u=parseInt(e.prefetchMilliseconds,10)||0;d.visible=!b.hideCueRangeMarker;var f=uI(b,d);if(null==f)d=new rI(b,new Ln(-1,-1),!1,"adcuerange:invalid",
2),d.deactivate(),d=[null,d];else{e=":"+(ko.getInstance().u++).toString(36);var h=d.daiEnabled||d.ze;f=new rI(b,f,d.visible&&!h,"adcuerange:"+e,2);h=null;if(d.ze||0<d.u)if(d=uI(b,d,!0))h=new rI(b,d,!1,"prefetch:"+e,3),f.C=h,h.C=f;d=[h,f]}this.Y=d[0];this.u=d[1];this.B=c;this.P=!1;this.G={};this.N={};this.F=void 0===a.driftRecoveryMs?null:parseInt(a.driftRecoveryMs,10)};
QI=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.u.u||"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"==a.u.u};
RI=function(a){return"AD_PLACEMENT_KIND_START"==a.u.u};
TI=function(a){var b={};fna(a,b);gna(b);b.LACT=SI(function(){return wp().toString()});
b.VIS=SI(function(){return a.getVisibilityState().toString()});
b.SDKV="h.3.0";b.VOL=SI(function(){return a.isMuted()?"0":Math.round(a.getVolume()).toString()});
b.VED="";return b};
hna=function(a){var b={};if(!a.kind)return g.Er(Error("AdPlacementConfig without kind")),b;if("AD_PLACEMENT_KIND_MILLISECONDS"===a.kind||"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===a.kind){if(!a.adTimeOffset||!a.adTimeOffset.offsetStartMilliseconds)return g.Er(Error("malformed AdPlacementConfig")),b;b.MIDROLL_POS=SI(bb(Math.round(g.qd(a.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else b.MIDROLL_POS=SI(bb("0"));return b};
SI=function(a){return{toString:function(){return a()}}};
ina=function(a,b,c){function d(l,m){var n=b[m];n&&(f[l]=n)}
function e(l,m){var n=b[m];n&&(f[l]=h(n))}
if(!b||g.Wb(b))return a;var f=Object.assign({},a),h=c?encodeURIComponent:function(l){return l};
e("DV_VIEWABILITY","doubleVerifyViewability");e("IAS_VIEWABILITY","integralAdsViewability");e("MOAT_INIT","moatInit");e("MOAT_VIEWABILITY","moatViewability");d("GOOGLE_VIEWABILITY","googleViewability");d("VIEWABILITY","viewability");return f};
fna=function(a,b){b.CPN=SI(function(){var c;(c=a.getVideoData(1))?c=c.clientPlaybackNonce:(g.Fr(Error("Video data is null.")),c=null);return c});
b.AD_MT=SI(function(){return UI(a,2)});
b.MT=SI(function(){return UI(a,1)});
b.P_H=SI(function(){return g.LG(a).getPlayerSize().height.toString()});
b.P_W=SI(function(){return g.LG(a).getPlayerSize().width.toString()});
b.PV_H=SI(function(){return g.LG(a).getVideoContentRect().height.toString()});
b.PV_W=SI(function(){return g.LG(a).getVideoContentRect().width.toString()})};
UI=function(a,b){var c=1E3*a.getCurrentTime(b,!1);return Math.round(Math.max(0,c)).toString()};
gna=function(a){a.CONN=SI(bb("0"));a.WT=SI(function(){return Date.now().toString()})};
VI=function(a){var b=Object.assign({},{});b.MIDROLL_POS=QI(a)?SI(bb(Math.round(a.u.start/1E3).toString())):SI(bb("0"));return b};
jna=function(a){var b={};b.SLOT_POS=SI(bb(a.D.u.toString()));return b};
WI=function(a,b){var c=b&&-1!=b.indexOf("load_timeout")?"402":"400",d={};return d.YT_ERROR_CODE=a.toString(),d.ERRORCODE=c,d.ERROR_MSG=b,d};
XI=function(a){for(var b={},c=g.q(kna),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d];e&&(b[d]=e.toString())}return b};
YI=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];c={};Object.assign.apply(Object,[c].concat(g.la(b)));return c};
ZI=function(){};
$I=function(a){this.u=a};
aJ=function(a){this.u=a;Zp()};
bJ=function(a){g.B.call(this);var b=this;this.B=a;this.u=null;g.$f(this,function(){return b.u=null})};
dJ=function(a){return cJ(a)&&1==a.getPlayerState(2)};
cJ=function(a){a=a.Ub();return void 0!==a&&2==a.getPlayerType()};
eJ=function(a){a=a.T();return SC(a)&&!g.gD(a)&&"desktop-polymer"==a.playerStyle};
gJ=function(a,b){var c=a.T();KC(c)||"3"!=c.controlsType||fJ(g.LG(a),b)};
hJ=function(a){switch(a){case "abandon":return"abandon";case "active_view_fully_viewable_audible_half_duration":return"fully_viewable_audible_half_duration_impression";case "active_view_measurable":return"measurable_impression";case "active_view_viewable":return"viewable_impression";case "complete":return"complete";case "end_fullscreen":return"exitfullscreen";case "first_quartile":return"firstquartile";case "fullscreen":return"fullscreen";case "impression":return"impression";case "midpoint":return"midpoint";
case "mute":return"mute";case "pause":return"pause";case "progress":return"progress";case "resume":return"resume";case "skip":return"skip";case "start":return"start";case "third_quartile":return"thirdquartile";case "unmute":return"unmute"}return null};
lna=function(a){this.u=a;var b=yl.getInstance();a=a.Kc();b.D!==a&&((b.D=a)||Qca(b))};
iJ=function(a,b,c,d,e,f,h){f=void 0===f?new aJ(new $I(d.getVideoData(1))):f;h=void 0===h?!1:h;g.B.call(this);this.B=a;this.N=b;this.C=c;this.u=d;this.P=e;this.G=f;this.K=Array.from(this.B.Aa.progress||[]);this.K.sort(function(l,m){return l.offsetMilliseconds-m.offsetMilliseconds});
this.D={zz:.25,Pz:.5,Rz:.75};this.F=null;this.W=h};
oJ=function(a,b,c){!jJ(a)&&0<c&&(kJ(a,b),lJ(a)?mJ(a,b,c):nJ(a,b,c))};
qJ=function(a,b){jJ(a)||(lJ(a)?(kJ(a,0,!0),mJ(a,b,b)):(kJ(a,0,!0),nJ(a,0,0,!0)),pJ(a,"complete"))};
kJ=function(a,b,c){for(c=void 0===c?!1:c;a.B.N<a.K.length;){var d=rJ(a,"progress"),e=a.K[a.B.N];if(e.offsetMilliseconds<=1E3*b||c){var f=e.baseUrl;f&&(e=e.headers||[],a.G.send(f,sJ(a),d,e));a.B.N++}else break}};
nJ=function(a,b,c,d){d=void 0===d?!1:d;(b>=c*a.D.zz||d)&&pJ(a,"first_quartile");(b>=c*a.D.Pz||d)&&pJ(a,"midpoint");(b>=c*a.D.Rz||d)&&pJ(a,"third_quartile")};
tJ=function(a,b,c,d){if(null==a.F){if(c<d||1<c-d)return}else if(a.F>d||d>c)return;pJ(a,b)};
mJ=function(a,b,c){if(0<c&&0<b){var d=g.uJ(a.u,a.u.getPresentingPlayerType());g.U(d,16)||g.U(d,32)||(tJ(a,"first_quartile",b,c*a.D.zz),tJ(a,"midpoint",b,c*a.D.Pz),tJ(a,"third_quartile",b,c*a.D.Rz))}a.F=b};
vJ=function(a,b){for(var c=rJ(a,b),d=g.q(a.B.Aa[b]||[]),e=d.next();!e.done;e=d.next()){var f=e.value;if(e=f.baseUrl)f=f.headers||[],a.G.send(e,sJ(a),c,f)}a.B.P[b]=!0};
pJ=function(a,b){a.B.P.hasOwnProperty(b)||vJ(a,b)};
wJ=function(a,b){return a.B.P.hasOwnProperty(b)};
sJ=function(a){for(var b={},c=TI(a.u),d=g.q(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,b[e]=c[e].toString();return Object.assign(b,a.C)};
rJ=function(a,b){var c=a.N;var d=a.B;if(d.lp()){var e=hJ(b);if(null==e)d={};else{var f;(f=d.ea()())||(f=(f=c.u)&&f.Ub?(f=f.Ub())&&2==f.getPlayerType()?xJ(f):null:null);f?(c={opt_adElement:f,opt_fullscreen:c.u.isFullscreen()},d=Dl(e,d.K,c)):d={}}}else d={};return d?Object.assign({},d):{}};
yJ=function(a,b){switch(b){case "action-companion":case "shopping-companion":case "image-companion":case "videowall-companion":case "ads-engagement-panel":if(2==a.u.getPresentingPlayerType())a.u.sendVideoStatsEngageEvent(1,void 0,2);else if(a.P){var c=a.P.u;c&&c()}else M(Error("trackCompanionEngagement is called butcompanionEngagementHandler is null"),"ERROR")}};
lJ=function(a){return!g.Q(a.u.T().experiments,"html5_bulleit_dai_logging_policy_upg_livestream_killswitch")&&a.W};
jJ=function(a){return lJ(a)&&!wJ(a,"impression")};
zJ=function(a){return lJ(a)&&wJ(a,"seek")};
BJ=function(a,b,c,d,e,f){c=void 0===c?{}:c;this.componentType=a;this.renderer=void 0===b?null:b;this.macros=c;this.layoutId=d;this.u=e;this.B=f;this.id=AJ(a)};
AJ=function(a){return a+(":"+(ko.getInstance().u++).toString(36))};
CJ=function(a){this.u=a};
DJ=function(a,b){if(0===b||1===b&&(a.u.u||g.gD(a.u)||g.UC(a.u)||WC(a.u)||!g.FB))return!0;var c=g.qe("video-ads");return null!=c&&"none"!==qg(c,"display")};
g.EJ=function(a,b){this.state=a;this.Bj=b};
FJ=function(a,b){return g.U(a.state,b)&&!g.U(a.Bj,b)?1:!g.U(a.state,b)&&g.U(a.Bj,b)?-1:0};
g.GJ=function(a,b){return 0<FJ(a,b)};
HJ=function(a,b,c,d,e,f,h){f=void 0===f?0:f;h=void 0===h?!1:h;g.O.call(this);this.J=a;this.Ga=d;this.B=e;this.B.u[b.K]=this;this.B.subscribe("adactiveviewmeasurable",this.kF,this);this.B.subscribe("adfullyviewableaudiblehalfdurationimpression",this.lF,this);this.B.subscribe("adoverlaymeasurableimpression",this.mF,this);this.B.subscribe("adoverlayunviewableimpression",this.nF,this);this.B.subscribe("adoverlayviewableendofsessionimpression",this.oF,this);this.B.subscribe("adoverlayviewableimmediateimpression",
this.pF,this);this.B.subscribe("adviewableimpression",this.qF,this);this.ad=b;this.Y=[];this.macros=c;this.F=!1;this.W=!DJ(new CJ(this.J.T()),f);this.daiEnabled=h};
JJ=function(a){a.daiEnabled&&!g.Q(a.J.T().experiments,"html5_dai_debug_logging_killswitch")&&T("AdCoordinator registered for play",void 0,void 0,{adCpn:IJ(a),contentCpn:(a.J.getVideoData(1)||{}).clientPlaybackNonce,adEverStarted:a.F,adBlocked:a.W});a.W?a.Dd("ui_unstable"):a.Od()};
LJ=function(a,b){vb(a.Y,b);KJ(a,b,1)};
MJ=function(a){a=a.Ga;a.C=YI(a.C,WI(0,"No playable media files can be selected"));pJ(a,"error")};
KJ=function(a,b,c){0!=b.length&&(b=g.Pc(b,function(d){return new vI(d,c,d.id)}),a.V("onAdUxUpdate",b))};
IJ=function(a){return(a=a.J.getVideoData(2))&&a.clientPlaybackNonce||""};
NJ=function(a,b,c,d,e,f,h,l){HJ.call(this,a,b,e,f,h);this.u=this.D=null;this.N=!1;this.ia=c;this.ba=d;this.ka=l};
OJ=function(a){if(!a.ka)return!1;if("AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===a.ia)return a.Pk(),!0;var b=a.J.getVideoData(2);a.N=b?a.ba===b.videoId:!1;a.D=function(c,d){a.N=d?a.ba===d.videoId:!1};
a.J.addEventListener("videodatachange",a.D);a.u=function(){a.N&&(a.D&&(a.J.removeEventListener("videodatachange",a.D),a.D=null),a.u&&(a.J.removeEventListener("onAdStart",a.u),a.u=null),a.Pk())};
a.J.addEventListener("onAdStart",a.u);return!0};
PJ=function(){yI.apply(this,arguments)};
QJ=function(a,b,c,d,e){BJ.call(this,"action-companion",a,b,c,d,e)};
RJ=function(a,b,c,d,e,f){NJ.call(this,a,b,void 0===f?"AD_PLACEMENT_KIND_UNKNOWN":f,b.u.adVideoId,c,d,e,g.Q(a.T().experiments,"only_show_companion_with_video_ad_or_command_for_action"));this.C=null;this.G=new QJ(this.ad.u,this.macros)};
SJ=function(a,b){if(!b)return!1;var c=a.G.renderer;return c&&c.adVideoId==b.videoId};
mna=function(a){var b={};b.abandon=a.abandonCommands&&KI(a.abandonCommands.commands)||[];return b};
TJ=function(a){yI.call(this,a,mna(a))};
UJ=function(a,b){BJ.call(this,"ad-action-interstitial",a,b)};
VJ=function(a,b,c,d,e,f){HJ.call(this,a,b,c,d,e,1);this.C=b;this.u=b.u.durationMilliseconds||0;this.Va=null;this.D=f};
WJ=function(a,b){BJ.call(this,"ad-choice-interstitial",a,b)};
XJ=function(a,b,c,d,e,f){HJ.call(this,a,b,c,d,e,1);this.u=b;this.C=f};
YJ=function(a){yI.call(this,a);this.B=Sp(this.u.playerVars||"")};
ZJ=function(){yI.apply(this,arguments)};
$J=function(){yI.apply(this,arguments)};
aK=function(){yI.apply(this,arguments)};
bK=function(){yI.apply(this,arguments)};
cK=function(){yI.apply(this,arguments)};
dK=function(){yI.apply(this,arguments)};
eK=function(){yI.apply(this,arguments)};
fK=function(a,b,c,d,e,f,h,l,m,n,p,r,t){this.ba=a;this.K=b;this.N=c;this.W=d;this.B=e;this.P=f;this.u=h;this.Y=l;this.X=m;this.C=n;this.F=p;this.D=r;this.G=t};
gK=function(a,b,c,d,e){HJ.call(this,a,b,c,d,e);var f=this;this.D=b;this.u=new g.F(function(){f.Dd("load_timeout")},1E4);
g.C(this,this.u);this.C=new os(this);g.C(this,this.C)};
hK=function(a){BJ.call(this,"ad-message",a)};
iK=function(a,b,c,d,e,f,h){HJ.call(this,a,b,c,d,e);var l=this;this.C=b;this.K=b.u.durationMs||0;this.G=h;this.P=!1;this.D=this.u=0;this.N=function(){var m=l.J.getProgressState().current;m<l.u?l.Td():m>l.D&&l.Ge()}};
kK=function(a){if(a.G&&a.P){a.P=!1;a=g.q(a.G.listeners);for(var b=a.next();!b.done;b=a.next()){var c=b.value;if(c.u){b=c.u;c.u=void 0;c.B=void 0;c=c.C();jK(c.Ab,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",b);c=g.q(c.B);for(var d=c.next();!d.done;d=c.next())d.value.Ke(b)}else T("Received AdNotify terminated event when no slot is active")}}};
lK=function(a,b){BJ.call(this,"ads-engagement-panel",a,b)};
mK=function(a,b,c,d,e){HJ.call(this,a,b,c,d,e)};
nK=function(a,b,c,d){BJ.call(this,"invideo-overlay",a,b,c,d);this.u=d};
oK=function(a,b,c,d,e){HJ.call(this,a,b,c,d,e);this.u=b};
pK=function(a,b){BJ.call(this,"persisting-overlay",a,b)};
qK=function(a,b,c,d,e){HJ.call(this,a,b,c,d,e);this.u=b};
rK=function(){BJ.call(this,"ad-attribution-bar");this.adPodPositionInfoString=null;this.adPodPosition=0;this.adPodLength=1;this.adBreakLengthSeconds=0;this.adBadgeText=null;this.adBreakRemainingLengthSeconds=0;this.adBreakEndSeconds=null;this.adVideoId=""};
g.sK=function(a,b){for(var c={},d=g.q(Object.keys(b)),e=d.next();!e.done;c={Tu:c.Tu},e=d.next())e=e.value,c.Tu=b[e],a=a.replace(new RegExp("\\$"+e,"gi"),function(f){return function(){return f.Tu}}(c));
return a};
tK=function(a){return a?g.S(a):null};
uK=function(a){if(!a)return[];var b=a.loggingUrls;if(!b)return[];a=[];b=g.q(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c.baseUrl&&a.push(c.baseUrl);return 0===a.length?[]:a};
nna=function(a){return a.cancelRenderer&&a.cancelRenderer.buttonRenderer?(a=a.cancelRenderer.buttonRenderer.serviceEndpoint)&&a.muteAdEndpoint?a:null:null};
vK=function(a){var b={};b.baseUrl=a;return{loggingUrls:[b],pingingEndpoint:{hack:!0}}};
qna=function(a,b,c,d){if(b.button&&b.button.buttonRenderer&&(!b.button.buttonRenderer.command||!b.button.buttonRenderer.command.adInfoDialogChoiceEndpoint)&&b.button.buttonRenderer.serviceEndpoint&&b.button.buttonRenderer.serviceEndpoint.adInfoDialogEndpoint){var e=b.button.buttonRenderer.serviceEndpoint.adInfoDialogEndpoint.dialog;e&&e.adInfoDialogRenderer&&(ona(a,e.adInfoDialogRenderer,c),a.whyThisAdInfo.menuTitle=tK(b.hoverText)||"",e.adInfoDialogRenderer.muteAdRenderer&&(b=e.adInfoDialogRenderer.muteAdRenderer.buttonRenderer)&&
pna(a,b,c,d))}};
ona=function(a,b,c){var d=tK(b.confirmLabel)||"",e=tK(b.title)||"",f=[];if(b.adReasons)for(var h=g.q(b.adReasons),l=h.next();!l.done;l=h.next())f.push(tK(l.value)||"");a.whyThisAdInfo={closeButton:d,menuTitle:"",targetingReasonHeader:e,targetingReasons:f,adSettingsLink:null,cancelButton:null,continueButton:null,controlText:null};a.whyThisAdClicked=function(){if(b.impressionEndpoints)for(var m=g.q(b.impressionEndpoints),n=m.next();!n.done;n=m.next())c(n.value)};
a.whyThisAdClosed=function(){b.confirmServiceEndpoint&&c(b.confirmServiceEndpoint)}};
pna=function(a,b,c,d){if(b.navigationEndpoint&&b.navigationEndpoint.adFeedbackEndpoint&&b.navigationEndpoint.adFeedbackEndpoint.content){var e=b.navigationEndpoint.adFeedbackEndpoint.content.adFeedbackRenderer;if(e){var f={goneText:"",questionText:"",undoText:"",hoverText:tK(b.text)||"",surveyOptions:[],confirmMuteWithoutFeedbackLabel:""};a.muteAdInfo=f;b=uK(b.navigationEndpoint);var h=vK(b[1]),l=[vK(b[0])];(b=nna(e))&&l.push(b);var m=!1;a.muteAdClicked=function(){m=!0;c(h)};
a.muteAd=function(){m||c(h);m=!1;for(var n=g.q(l),p=n.next();!p.done;p=n.next())c(p.value)};
rna(a,e,d)}}};
rna=function(a,b,c){a.muteAdInfo.goneText=tK(b.title)||"";a.muteAdInfo.questionText=tK(b.reasonsTitle)||"";b.undoRenderer&&(a.muteAdInfo.undoText=tK(b.undoRenderer.buttonRenderer.text)||"");a.sendAdsPing=function(f){c(f)};
a=a.muteAdInfo.surveyOptions;b=g.q(b.reasons||[]);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=tK(e.reason)||"";e=uK(e.endpoint)[0];a.push({label:d,url:e})}};
wK=function(a,b){var c=new rK;c.adBadgeText="\u5e83\u544a";1<a.B&&(c.adPodPositionInfoString=g.sK("$AD_INDEX/$ADS_COUNT",{AD_INDEX:String(a.u+1),ADS_COUNT:String(a.B)}));c.adBreakLengthSeconds=a.adBreakLengthSeconds;c.adBreakRemainingLengthSeconds=a.adBreakRemainingLengthSeconds;c.adPodPosition=a.u+1;c.adPodLength=a.B;null!=a.C&&(c.adBreakEndSeconds=a.C/1E3);b&&(c.adVideoId=b);return c};
xK=function(a,b,c,d,e,f){this.B=a;this.C=b;this.u=TI(d);if(f)for(a=g.q(Object.keys(f)),b=a.next();!b.done;b=a.next())b=b.value,this.u[b]=f[b];this.D=c;this.G=d;this.F=e};
zK=function(a,b,c){b.isSkippable=!0;b.skipTime=c.skipOffsetMilliseconds?Math.floor(c.skipOffsetMilliseconds/1E3):0;if(c.skippableRenderer)switch(Object.keys(c.skippableRenderer)[0]){case "skipButtonRenderer":var d=c.skippableRenderer.skipButtonRenderer;b.skip=function(){var e=d.adRendererCommands&&d.adRendererCommands.clickCommand;e?yK(a,e):a.D.nk()};
b.skipShown=function(){yK(a,d.adRendererCommands&&d.adRendererCommands.impressionCommand)}}};
AK=function(a,b,c){qna(b,c,function(d){yK(a,d)},function(d){a.sendAdsPing(d)})};
yK=function(a,b){if(b){var c=BK(a);Array.isArray(b)?b.forEach(function(d){return a.B.executeCommand(d,c)}):a.B.executeCommand(b,c)}};
BK=function(a){if(g.Q(a.G.T().experiments,"dynamic_command_macro_resolution_on_tvhtml5_killswitch"))return a.C;for(var b={},c=g.q(Object.keys(a.u)),d=c.next();!d.done;d=c.next())d=d.value,b[d]=a.u[d].toString();return Object.assign(b,a.C)};
CK=function(){return{adNextParams:"",adSystem:0,attributionInfo:null,clickThroughUrl:"",executeCommand:function(){},
instreamAdPlayerOverlayRenderer:null,instreamSurveyAdRenderer:null,slidingTextPlayerOverlayRenderer:null,isBumper:!1,isPostroll:!1,isSkippable:!1,muteAdInfo:null,skipTime:0,videoId:"",videoUrl:"",whyThisAdInfo:null,muteAd:function(){},
muteAdClicked:function(){},
sendAdsPing:function(){},
skip:function(){},
endSurveyOnSubmitted:function(){},
skipShown:function(){},
whyThisAdClicked:function(){},
whyThisAdClosed:function(){},
daiEnabled:!1,remoteSlotsData:null}};
sna=function(a,b,c,d,e,f,h){this.u=c;this.B=new xK(a,b,d,e,f);this.C=h};
tna=function(a,b,c){var d=CK();d.instreamAdPlayerOverlayRenderer=b;c&&(d.adNextParams=c);d.executeCommand=function(e){yK(a.B,e)};
if(b.skipOrPreviewRenderer)switch(Object.keys(b.skipOrPreviewRenderer)[0]){case "skipAdRenderer":zK(a.B,d,b.skipOrPreviewRenderer.skipAdRenderer)}if(b.adInfoRenderer)switch(Object.keys(b.adInfoRenderer)[0]){case "adHoverTextButtonRenderer":AK(a.B,d,b.adInfoRenderer.adHoverTextButtonRenderer)}d.isBumper=GI(a.u)&&!d.isSkippable;d.isPostroll=a.u.isPostroll;a.u.isSkippable();b=a.u.C;c=a.u.getVideoUrl();b?d.videoId=b:c&&(d.videoUrl=c);if(b=(b=a.u.G)&&b.urlEndpoint)d.clickThroughUrl=b.url||"";d.sendAdsPing=
function(e){a.B.sendAdsPing(e)};
d.daiEnabled=a.C;d.remoteSlotsData=a.u.X;return d};
DK=function(a,b,c,d,e){BJ.call(this,"shopping-companion",a,b,c,d,e)};
EK=function(a,b,c,d,e,f){NJ.call(this,a,b,void 0===f?"AD_PLACEMENT_KIND_UNKNOWN":f,b.u.adVideoId,c,d,e,g.Q(a.T().experiments,"only_show_companion_with_video_ad_or_command_for_shopping"));this.C=new DK(this.ad.u,this.macros)};
una=function(a){var b={};if(!a.questions||0===a.questions.length)return b;a=(a.questions[0].instreamSurveyAdSingleSelectQuestionRenderer||a.questions[0].instreamSurveyAdMultiSelectQuestionRenderer).surveyAdQuestionCommon;return(a=a.instreamAdPlayerOverlay&&a.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer)?a:b};
wna=function(a,b,c,d,e,f){this.u=new xK(a,b,c,d,e,vna(f))};
xna=function(a,b){var c=CK();c.instreamSurveyAdRenderer=b;c.executeCommand=function(e){yK(a.u,e)};
var d=una(b);if(d.skipOrPreviewRenderer)switch(Object.keys(d.skipOrPreviewRenderer)[0]){case "skipAdRenderer":zK(a.u,c,d.skipOrPreviewRenderer.skipAdRenderer)}if(d.adInfoRenderer)switch(Object.keys(d.adInfoRenderer)[0]){case "adHoverTextButtonRenderer":AK(a.u,c,d.adInfoRenderer.adHoverTextButtonRenderer)}c.sendAdsPing=function(e){a.u.sendAdsPing(e)};
return c};
vna=function(a){var b={};b.SURVEY_LOCAL_TIME_EPOCH_S=SI(function(){var c=new Date;return""+(Math.round(c.valueOf()/1E3)+-60*c.getTimezoneOffset())});
b.SURVEY_ELAPSED_MS=SI(a);return b};
GK=function(a,b,c){g.O.call(this,!0);var d=this;this.G=b;this.F=c;this.B=a;this.Va=new g.Pm(200);this.Va.wa("tick",function(){var e=Date.now(),f=e-d.D;d.D=e;d.u+=f;d.u>=d.B&&(d.u=d.B,d.Va.stop());e=d.u/1E3;d.F&&d.F.Hc(e);FK(d,{current:e,duration:d.B/1E3})});
g.C(this,this.Va);this.u=0;this.C=null;g.$f(this,function(){d.C=null});
this.D=0};
FK=function(a,b){a.G.va("onAdPlaybackProgress",b);a.C=b};
HK=function(a){BJ.call(this,"survey",a)};
IK=function(a,b,c,d,e,f,h){HJ.call(this,a,b,c,d,e,1);var l=this;this.D=b;this.C=new os;g.C(this,this.C);this.C.R(this.J,"resize",function(){450>g.LG(l.J).getPlayerSize().width&&(g.qs(l.C),l.Td())});
this.K=0;this.G=h(this,function(){return""+(Date.now()-l.K)});
if(this.u=g.UC(a.T())?new GK(1E3*b.B,a,f):null)g.C(this,this.u),this.C.R(a,"onAdPlaybackProgress",function(m){m.current===m.duration&&(m=l.D.u,(m=m.questions&&m.questions[0])?(m=(m=m.instreamSurveyAdMultiSelectQuestionRenderer||m.instreamSurveyAdSingleSelectQuestionRenderer)&&m.surveyAdQuestionCommon,yK(l.G.u,m&&m.timeoutCommands)):g.Er(Error("Expected a survey question in InstreamSurveyAdRenderer.")))})};
JK=function(a,b){BJ.call(this,"survey-interstitial",a,b)};
KK=function(a,b,c,d,e){HJ.call(this,a,b,c,d,e,1);this.u=b};
LK=function(a){BJ.call(this,"ad-text-interstitial",a)};
MK=function(a,b,c,d,e,f){HJ.call(this,a,b,c,d,e);this.C=b;this.u=b.u.durationMilliseconds||0;this.Va=null;this.D=f};
NK=function(a,b){var c=void 0===c?!0:c;var d=g.K("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=g.xd(window.location.href);e&&d.push(e);e=g.xd(a);if(g.nb(d,e)||!e&&pc(a,"/"))if(g.ro("autoescape_tempdata_url")&&(d=document.createElement("a"),g.id(d,a),a=d.href),a&&(d=zd(a),e=d.indexOf("#"),d=0>e?d:d.substr(0,e)))if(c&&!b.csn&&(b.itct||b.ved)&&(b=Object.assign({csn:g.Ms()},b)),f){var f=parseInt(f,10);isFinite(f)&&0<f&&(c=b,d="ST-"+pd(d).toString(36),c=c?g.Gd(c):"",g.rq(d,c,f||5))}else f=b,c="ST-"+pd(d).toString(36),
f=f?g.Gd(f):"",g.rq(c,f,5)};
g.OK=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.Id(a,b)+c;a=a instanceof g.Fc?a:g.Lc(a);d.href=g.Gc(a)};
g.PK=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?!1:c;var d=g.K("EVENT_ID");d&&(b.ei||(b.ei=d));b&&NK(a,b);c||((window.ytspf||{}).enabled?spf.navigate(a):g.OK(a))};
g.QK=function(a,b,c){c&&NK(a,c);c=g.Kc(a);c=g.Gc(c);a!=c&&g.Bo(Error("Unsafe window.open URL: "+a));a=c;window.open(a,b||pd(a).toString(36))};
RK=function(a){a=void 0===a?null:a;BJ.call(this,"ad-channel-thumbnail");this.channelIconThumbnailUrl=a};
SK=function(a){a=void 0===a?null:a;BJ.call(this,"ad-title");this.videoTitle=a};
TK=function(a){a=void 0===a?null:a;BJ.call(this,"advertiser-name");this.channelName=a};
UK=function(a,b,c,d){BJ.call(this,"player-overlay",a,{},b,d);this.C=c;this.u=d};
VK=function(a){BJ.call(this,"skip-button",a)};
WK=function(a){BJ.call(this,"visit-advertiser",a);var b={};var c=a.text;a=a.navigationEndpoint;null!=c&&null!=c.runs&&null!=a?(b.runs=[g.Zb(c.runs[0])],b.runs[0].navigationEndpoint=a):(b={text:"\u5e83\u544a\u4e3b\u306e\u30b5\u30a4\u30c8\u306b\u30a2\u30af\u30bb\u30b9"},a&&(b.navigationEndpoint=a),b={runs:[b]});this.visitAdvertiserLabel=b};
XK=function(a,b,c,d,e,f,h,l,m,n,p){HJ.call(this,a,b,c,d,e,1,l);var r=this;this.X=!0;this.G=n;this.u=b;this.C=h;this.ba=new os(this);g.C(this,this.ba);this.D=new g.F(function(){r.Dd("load_timeout")},1E4);
g.C(this,this.D);this.ia=!g.Q(a.T().experiments,"bulleit_unstarted_event_killswitch");this.P=!1;this.da=m(this);this.ea=f;this.K=p;this.N=!1};
yna=function(a){if(a.daiEnabled&&g.Q(a.J.T().experiments,"enable_topsoil_wta_for_halftime")){var b=a.u.D,c=b.D,d=b.C,e=b.u;b=b.F;if(void 0===c)g.Er(Error("Expected ad break start time when a DAI ad starts"));else if(void 0===d)g.Er(Error("Expected ad break end time when a DAI ad starts"));else return e=b.slice(0,e).reduce(function(f,h){return f+h},0),Math.min(Math.max((d-c)/1E3-e,0),a.u.B)}};
$K=function(a,b){if(null!==a.G&&a.N){a.N=!1;for(var c=YK(a),d=g.q(a.G.listeners),e=d.next();!e.done;e=d.next())if(e=e.value,e.u&&e.u.layoutId===c){var f="adabandoned"===b?"abandoned":"normal";ZK(e.C(),e.B,e.u,f);e.B=null;e.u=null}else T("Received AD_ENDED for unknown layout")}};
aL=function(a){return(a=a.J.getVideoData(2))?a.clientPlaybackNonce:""};
YK=function(a){if(a=a.u.u.elementId)return a;g.Er(Error("No elementId on VideoAd InstreamVideoAdRenderer"));return""};
dL=function(a){var b=a.u.u,c=b.playerOverlay&&b.playerOverlay.instreamAdPlayerOverlayRenderer;c||(c={});var d=a.J.T();if(g.gD(d)&&!c.skipOrPreviewRenderer){var e=a.J.getDuration(2);isFinite(e)&&33<e&&!a.u.isSkippable()&&!g.gD(d)&&g.Er(new Oq("Instream ad is skippable by length, but was was marked nonskippable.",{adLengthSecs:e,IVAR:b}));d={};a.u.isSkippable()&&!GI(a.u)?d.skipAdRenderer=bL(a):d.adPreviewRenderer=cL(a,!1,GI(a.u));c.skipOrPreviewRenderer=d}c.skipOrPreviewRenderer&&g.Wb(c.skipOrPreviewRenderer)&&
g.Er(new Oq("IAPOR.skipOrPreview was filled, but empty.",b));return c};
bL=function(a){var b={preskipRenderer:{}};b.preskipRenderer.adPreviewRenderer=cL(a,!0,!1);b.skippableRenderer={};a=b.skippableRenderer;var c={message:{}};c.message.text="\u5e83\u544a\u3092\u30b9\u30ad\u30c3\u30d7";a.skipButtonRenderer=c;return b};
cL=function(a,b,c){var d=a.J.getVideoData(1),e={};if(b||c){var f={},h={};c=c?g.sK("\u52d5\u753b\u958b\u59cb\u307e\u3067\u3042\u3068 $TIME_REMAINING \u79d2",{NEW_LINE:"\n",TIME_REMAINING:"{TIME_REMAINING}"}):g.sK("$TIME_REMAINING \u79d2\u5f8c\u306b\u30b9\u30ad\u30c3\u30d7\u3057\u3066\u52d5\u753b\u3092\u518d\u751f\u3067\u304d\u307e\u3059",{NEW_LINE:"\n",TIME_REMAINING:"{TIME_REMAINING}"});h.text=c;h.isTemplated=!0;f.templatedAdText=h;e.templatedCountdown=f}else f={},h=g.sK("\u52d5\u753b\u306f\u5e83\u544a\u306e\u5f8c\u306b\u518d\u751f\u3055\u308c\u307e\u3059",
{NEW_LINE:"\n"}),f.text=h,f.isTemplated=!1,e.staticPreview=f;b&&(e.durationMilliseconds=5E3);e.thumbnail={};b=e.thumbnail;f={};f.url=bD(a.J.T(),d.videoId,"mqdefault.jpg");f.width=320;f.height=180;b.thumbnail={thumbnails:[f]};return e};
zna=function(a){function b(x,y){var D=a.mQ,E=Object.assign({},{});E.FINAL=SI(bb("1"));E.SLOT_POS=SI(bb("0"));return YI(D,XI(E),y)}
function c(x){return null==x?{create:function(){return null}}:{create:function(y,D,E){var G=b(y,D);
D=a.Cq(y,G);y=x(y,G,D,E);g.C(y,D);return y}}}
var d=c(function(x,y,D){return new oK(a.J,x,y,D,a.nf)}),e=c(function(x,y,D,E){return new EK(a.J,x,y,D,a.nf,E)}),f=c(function(x,y,D){return new VJ(a.J,x,y,D,a.nf,a.Fa)}),h=c(function(x,y,D){return new qK(a.J,x,y,D,a.nf)}),l=c(function(x,y,D,E){return new RJ(a.J,x,y,D,a.nf,E)}),m=c(function(x,y,D){return new MK(a.J,x,y,D,a.nf,a.Fa)}),n=c(function(x,y,D){return new KK(a.J,x,y,D,a.nf)}),p=c(function(x,y,D){return new XJ(a.J,x,y,D,a.nf,a.Fa)}),r=c(function(x,y,D){return new iK(a.J,x,y,D,a.nf,a.Fa,a.uj)}),
t=c(function(x,y,D){return new gK(a.J,x,y,D,a.nf,a.Fa)}),w=c(function(x,y,D){return new mK(a.J,x,y,D,a.nf)});
this.u=new fK({create:function(x,y){var D=YI(b(x,y),XI(jna(x))),E=a.Cq(x,D),G=new XK(a.J,x,D,E,a.nf,a.nI,a.Fa,a.daiEnabled,function(L){return new sna(a.Fa,D,x,L,a.J,a.Ah,a.daiEnabled)},a.vj,a.Wf);
g.C(G,E);return G}},d,e,{create:function(x,y){var D=a.Cq(x,y),E=new IK(a.J,x,y,D,a.nf,a.Fa,function(G,L){return new wna(a.Fa,y,G,a.J,a.Ah,L)});
g.C(E,D);return E}},f,h,l,m,n,p,r,t,w)};
eL=function(a,b,c){this.B=a;this.u={};this.D=void 0===b?!1:b;this.C=void 0===c?!1:c};
Ana=function(a,b){var c=a.startSecs+a.durationSecs;c=0>=c?null:c;if(null===c)return null;switch(a.event){case "start":case "continue":case "stop":break;case "predictStart":if(b)break;return null;default:return null}var d=Math.max(a.startSecs,0);return{vI:new Ln(d,c),SJ:new Ht(d,c-d,a.context,a.identifier,a.event,a.u)}};
fL=function(){this.u=[]};
gL=function(a,b,c){var d=g.Ab(a.u,b);if(0<=d)return b;b=-d-1;return b>=a.u.length||a.u[b]>c?null:a.u[b]};
Bna=function(a){this.B=new fL;this.u=new eL(a.wI,a.tQ,a.jQ)};
hL=function(){yI.apply(this,arguments)};
iL=function(a){hL.call(this,a);g.Pc((a.image&&a.image.thumbnail?a.image.thumbnail.thumbnails:null)||[],function(b){return new g.ge(b.width,b.height)})};
jL=function(a){this.u=a};
kL=function(a){a=[a,a.C].filter(function(d){return!!d});
for(var b=g.q(a),c=b.next();!c.done;c=b.next())c.value.deactivate();return a};
mL=function(a,b){var c=a.u;g.rm(function(){return lL(c,b,1)})};
Cna=function(a,b,c){this.C=a;this.u=b;this.B=c;this.D=a.getCurrentTime()};
Ena=function(a,b){var c=void 0===c?Date.now():c;if(a.B)for(var d=g.q(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=c,h=a.u;nL({cuepointTrigger:{type:"CUEPOINT_TYPE_AD",event:Dna(e.event),cuepointId:e.identifier,totalCueDurationMs:1E3*e.durationSecs,playheadTimeMs:e.u,cueStartTimeMs:1E3*e.startSecs,cuepointReceivedTimeMs:f,contentCpn:h}});"unknown"===e.event&&oL("DAI_ERROR_TYPE_CUEPOINT_WITH_INVALID_EVENT",a.u);e=e.startSecs+e.u/1E3;e>a.D&&a.C.getCurrentTime()>e&&oL("DAI_ERROR_TYPE_LATE_CUEPOINT",
a.u)}};
Fna=function(a,b,c){a.B&&nL({daiStateTrigger:{totalCueDurationMs:b,filledAdsDurationMs:c,contentCpn:a.u}})};
pL=function(a,b){a.B&&nL({driftRecoveryInfo:{contentCpn:a.u,cueIdentifier:b.cueIdentifier||void 0,driftRecoveryMs:b.driftRecoveryMs.toString(),breakDurationMs:Math.round(b.DC-b.UE).toString(),driftFromHeadMs:Math.round(1E3*KG(a.C)).toString()}})};
Gna=function(a,b){a.B&&nL({adTrimmingInfo:{contentCpn:a.u,cueIdentifier:b.cueIdentifier||void 0,adMediaInfo:b.fI}})};
oL=function(a,b){nL({daiStateTrigger:{errorType:a,contentCpn:b}})};
nL=function(a){g.zq("adsClientStateChange",a)};
Dna=function(a){switch(a){case "unknown":return"CUEPOINT_EVENT_UNKNOWN";case "start":return"CUEPOINT_EVENT_START";case "continue":return"CUEPOINT_EVENT_CONTINUE";case "stop":return"CUEPOINT_EVENT_STOP";case "predictStart":return"CUEPOINT_EVENT_PREDICT_START"}};
qL=function(a){this.J=a;this.preloadType="2";this.adVideoId=this.videoId=this.adCpn=this.contentCpn=null;this.C=!0;this.D=this.u=this.gh=!1;this.adFormat=null;this.clientName=(a=!g.Q(this.J.T().experiments,"html5_ad_csi_tracker_initialization_killswitch"))?this.J.T().deviceParams.c:g.K("INNERTUBE_CLIENT_NAME",void 0);this.clientVersion=a?this.J.T().deviceParams.cver:g.K("INNERTUBE_CLIENT_VERSION",void 0);this.F=a?this.J.T().deviceParams.cbrand:"";this.G=a?this.J.T().deviceParams.cmodel:"";this.playerType=
"html5";this.B="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="vod"};
sL=function(a,b,c,d,e,f){rL(a);var h=a.J.getVideoData(1),l=a.J.getVideoData(2);h&&(a.contentCpn=h.clientPlaybackNonce,a.videoId=h.videoId);l&&(a.adCpn=l.clientPlaybackNonce,a.adVideoId=l.videoId,a.adFormat=l.adFormat);a.B=b;0>=e?rL(a):(a.actionType=a.C?c?"unknown_type":"video_to_ad":c?"ad_to_video":"ad_to_ad",a.videoStreamType=f?"live":"vod",a.D=d+1===e,a.gh=!0,a.gh&&(UA("c",a.clientName,a.actionType),UA("cver",a.clientVersion,a.actionType),g.Q(a.J.T().experiments,"html5_ad_csi_tracker_initialization_killswitch")||
(UA("cbrand",a.F,a.actionType),UA("cmodel",a.G,a.actionType)),UA("yt_pt",a.playerType,a.actionType),UA("yt_pre",a.preloadType,a.actionType),UA("yt_abt",Hna(a.B),a.actionType),a.contentCpn&&UA("cpn",a.contentCpn,a.actionType),a.videoId&&UA("docid",a.videoId,a.actionType),a.adCpn&&UA("ad_cpn",a.adCpn,a.actionType),a.adVideoId&&UA("ad_docid",a.adVideoId,a.actionType),UA("yt_vst",a.videoStreamType,a.actionType),a.adFormat&&UA("ad_at",a.adFormat,a.actionType)))};
rL=function(a){a.contentCpn=null;a.adCpn=null;a.videoId=null;a.adVideoId=null;a.adFormat=null;a.B="AD_PLACEMENT_KIND_UNKNOWN";a.actionType="unknown_type";a.gh=!1;a.u=!1};
tL=function(a){a.u=!1;YA("video_to_ad",["apbs"],void 0,void 0)};
vL=function(a){a.D?uL(a):(a.u=!1,YA("ad_to_ad",["apbs"],void 0,void 0))};
uL=function(a){a.u=!1;YA("ad_to_video",["pbresume"],void 0,void 0)};
wL=function(a){a.gh&&!a.u&&(a.C=!1,a.u=!0,"ad_to_video"!==a.actionType&&VA("apbs",void 0,a.actionType))};
Hna=function(a){switch(a){case "AD_PLACEMENT_KIND_START":return"1";case "AD_PLACEMENT_KIND_MILLISECONDS":case "AD_PLACEMENT_KIND_COMMAND_TRIGGERED":case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":return"2";case "AD_PLACEMENT_KIND_END":return"3";default:return"unknown"}};
xL=function(){};
g.yL=function(a){return(a=Ina[a.toString()])?a:"LICENSE"};
g.zL=function(a,b){this.stateData=void 0===b?null:b;this.state=a||64};
AL=function(a,b,c){return b===a.state&&c===a.stateData||void 0!==b&&(b&128&&!c||b&2&&b&16)?a:new g.zL(b,c)};
BL=function(a,b){return AL(a,a.state|b)};
CL=function(a,b){return AL(a,a.state&~b)};
DL=function(a,b,c){return AL(a,(a.state|b)&~c)};
g.U=function(a,b){return!!(a.state&b)};
g.EL=function(a,b){return b.state===a.state&&b.stateData===a.stateData};
g.FL=function(a){return g.U(a,8)&&!g.U(a,2)&&!g.U(a,1024)};
GL=function(a){return a.Jb()&&!g.U(a,16)&&!g.U(a,32)};
Jna=function(a){return g.U(a,8)&&g.U(a,16)};
g.HL=function(a){return g.U(a,1)&&!g.U(a,2)};
IL=function(a){return g.U(a,128)?-1:g.U(a,2)?0:g.U(a,64)?-1:g.U(a,1)&&!g.U(a,32)?3:g.U(a,8)?1:g.U(a,4)?2:-1};
KL=function(a){var b=g.Je(g.Qb(JL),function(c){return!!(a&JL[c])});
g.Cb(b);return"yt.player.playback.state.PlayerState<"+b.join(",")+">"};
LL=function(a,b,c,d,e,f,h,l){g.O.call(this);this.Gd=a;this.J=b;this.u=d;this.F=this.u.B instanceof yI?this.u.B:null;this.B=null;this.Y=!1;this.K=c;this.W=(a=b.getVideoData(1))&&a.isLivePlayback||!1;this.ba=0;this.ea=!1;this.Tg=e;this.Nm=f;this.Tj=h;this.X=!1;this.daiEnabled=l};
ML=function(a){if(cJ(a.J)){var b=a.J.getVideoData(2),c=a.u.N[b.Wb]||null;if(!c)return g.Q(a.J.T().experiments,"html5_dai_debug_logging_killswitch")||T("AdPlacementCoordinator ended because no mapped ad is found",void 0,void 0,{adCpn:b.clientPlaybackNonce,contentCpn:(a.J.getVideoData(1)||{}).clientPlaybackNonce}),a.Et(),!0;if(!a.B||a.B&&a.B.ad!==c)g.Q(a.J.T().experiments,"html5_dai_debug_logging_killswitch")||T("AdPlacementCoordinator played an ad due to ad to ad transition",void 0,void 0,{adCpn:b.clientPlaybackNonce,
contentCpn:(a.J.getVideoData(1)||{}).clientPlaybackNonce}),a.Od(c)}else if(1===a.J.getPresentingPlayerType()&&(g.Q(a.J.T().experiments,"html5_dai_debug_logging_killswitch")||T("AdPlacementCoordinator ended due to ad to content transition",void 0,void 0,{contentCpn:(a.J.getVideoData(1)||{}).clientPlaybackNonce}),a.B))return a.Et(),!0;return!1};
NL=function(a){(a=a.baseUrl)&&g.zt(a,void 0,jn(a))};
OL=function(a,b){sL(a.K,a.u.u.u,b,a.mB(),a.oB(),a.isLiveStream())};
QL=function(a){PL(a.Gd,a.u.u,a);a.daiEnabled&&!a.u.P&&(Kna(a,a.pB()),a.u.P=!0)};
Kna=function(a,b){for(var c=RL(a),d=a.u.u.start,e=[],f=g.q(b),h=f.next();!h.done;h=f.next()){h=h.value;if(c<=d)break;var l=SL(h);e.push({externalVideoId:h.C,originalMediaDurationMs:(1E3*h.B).toString(),trimmedMediaDurationMs:(parseInt(h.u.trimmedMaxNonSkippableAdDurationMs,10)||0).toString()});l=d+l;var m=Math.min(l,c);h.D.D=a.u.u.start;h.D.C=c;if(!Lna(a,h,d,m)||l!==m)break;d=l}c=b.reduce(function(n,p){return n+SL(p)},0);
Fna(a.Tg,Wma(a.u.u),c);Gna(a.Tg,{cueIdentifier:a.u.C&&a.u.C.identifier,fI:e})};
SL=function(a){var b=1E3*a.B;return 0<parseInt(a.u.trimmedMaxNonSkippableAdDurationMs,10)&&parseInt(a.u.trimmedMaxNonSkippableAdDurationMs,10)<b?parseInt(a.u.trimmedMaxNonSkippableAdDurationMs,10):b};
RL=function(a){var b=a.u.u.end;a=gL(a.Nm,a.u.u.start,b);return Math.min(b,null===a?Infinity:a)};
Lna=function(a,b,c,d){var e=a.Tj.create(b,XI(VI(a.u)),a.u.u.u);c=e.dB(c,d);g.ag(e);if(!c)return!1;a.u.N[c]=b;return!0};
Mna=function(a){if(a.ea)return function(c){c.seekTo(Infinity,!0,void 0,1)};
var b=Math.floor(g.A()/1E3)-a.ba;return function(c){c.seekTo(c.getCurrentTime()+b,!0,void 0,1)}};
TL=function(a,b,c,d){this.u=a;this.B=b;this.C=c;this.D=d};
UL=function(){var a=this;this.D=[];this.F=[];this.u=[];this.P=!1;this.G=[];this.B=this.K=!1;this.N=new Map;g.ro("screen_manager_wait_for_csn")&&(g.ro("web_lifecycles")&&Nna[0].push(this.W),$s("loggingScreenCreated",function(){a.W()}),$s("clearWaitForNavigationJobs",function(){a.G=[]}))};
VL=function(){UL.u||(UL.u=new UL);return UL.u};
Ona=function(a,b,c){c=void 0===c?0:c;b.then(function(d){var e,f;a.B&&a.C&&a.C();var h=g.Ms(c),l=g.Ks(c);h&&l&&(d.csn=h,(null===(e=d.response)||void 0===e?0:e.trackingParams)&&g.et(a.client,h,l,[g.Fs(d.response.trackingParams)]),(null===(f=d.playerResponse)||void 0===f?0:f.trackingParams)&&g.et(a.client,h,l,[g.Fs(d.playerResponse.trackingParams)]))})};
XL=function(a,b){WL(a,g.Fs(b),void 0,void 0)};
WL=function(a,b,c,d){if(a.B&&!d)a.D.push([b,c]);else{var e=g.Ms(d);c=c||g.Ks(d);e&&c&&g.et(a.client,e,c,[b])}};
YL=function(a,b){var c=void 0===c?0:c;a.N.set(b,c);"UNDEFINED_CSN"===g.Ms(c)||a.B||WL(a,b,void 0,c)};
Pna=function(a,b,c){c=void 0===c?{}:c;a.B=!0;a.C=function(){ZL(a,b,c);var f=g.Ks(c.layer);if(f){for(var h=g.q(a.D),l=h.next();!l.done;l=h.next())l=l.value,WL(a,l[0],l[1]||f,c.layer);f=g.q(a.F);for(h=f.next();!h.done;h=f.next()){l=h.value;h=l[0];var m=l[1];if(a.B)a.F.push([h,m]);else{var n=g.Fs(h);if(l=g.Ms())h=a.client,m={csn:l,ve:n.getAsJson(),clientData:m},n={Yh:Ns(l),Hj:l},"UNDEFINED_CSN"==l?dt("visualElementStateChanged",m,n):h?Np("visualElementStateChanged",m,h,n):g.zq("visualElementStateChanged",
m,n)}}}};
g.Ms(c.layer)||a.C();if(c.UA)for(var d=g.q(c.UA),e=d.next();!e.done;e=d.next())Ona(a,e.value,c.layer);else g.Er(Error("Delayed screen needs a data promise."))};
ZL=function(a,b,c){c=void 0===c?{}:c;c.layer||(c.layer=0);var d=void 0!==c.gQ?c.gQ:c.layer;var e=g.Ms(d);d=g.Ks(d);var f;d&&(void 0!==c.parentCsn?f={clientScreenNonce:c.parentCsn,visualElement:d}:e&&"UNDEFINED_CSN"!==e&&(f={clientScreenNonce:e,visualElement:d}));e&&"UNDEFINED_CSN"!==e&&d&&gt(a.client,e,d,!0);try{var h=a.client,l=f,m=c.RA,n=c.Yh,p=Qna(),r={csn:p,pageVe:(new Es({veType:b,youtubeData:void 0})).getAsJson()};l&&l.visualElement?r.implicitGesture={parentCsn:l.clientScreenNonce,gesturedVe:l.visualElement.getAsJson()}:
l&&g.Fr(new Oq("newScreen() parent element does not have a VE - rootVe",b));m&&(r.cloneCsn=m);m={Yh:n,Hj:p};h?Np("screenCreated",r,h,m):g.zq("screenCreated",r,m);Ts(kt,new ct(p));var t=p}catch(w){Jr(w,{hq:b,rootVe:d,parentVisualElement:void 0,J3:e,a4:f,RA:c.RA});g.Er(w);return}Ps(t,b,c.layer,c.Yh);a.u[a.u.length-1]&&!a.u[a.u.length-1].csn&&(a.u[a.u.length-1].csn=t||"");g.ro("screen_manager_wait_for_csn")&&(g.Ja("midTransition",!1,void 0),Ts("loggingScreenCreated"),a.K=!1);UA("csn",t);pt.getInstance().clear();
a.B=!1;a.C=void 0;b=g.Ks(c.layer);e=g.q(a.N);for(f=e.next();!f.done;f=e.next())f=g.q(f.value),t=f.next().value,f.next().value===c.layer&&b&&WL(a,t,b,c.layer);g.ro("c3_client_side_screens")&&!a.P&&(c=Gs(49980),b=Gs(49981),g.Ja("historyVes",{backButtonVe:c,forwardButtonVe:b},void 0),YL(a,c),YL(a,b),a.P=!0)};
$L=function(a,b,c,d,e,f){g.O.call(this);this.F=a;this.B=b;this.C=c;this.G=d;this.u=e;this.D=f;Rna(this)};
Sna=function(a,b){var c={isEmpty:!0,oC:!1,Pg:[]};if(!b)return c;b&&b.trackingParams&&XL(VL(),b.trackingParams);if(b&&b.adThrottled)return c.oC=!0,c;var d=b.playerAds;if(!d||!d.length)return c;d=d.map(function(f){return f.adPlacementRenderer}).filter(function(f){return f&&null!=f.renderer});
if(g.ob(d))return c;if(0<a.u.u.end){var e=a.u.u.end.toString();d.forEach(function(f){(f=f.config&&f.config.adPlacementConfig)&&"AD_PLACEMENT_KIND_MILLISECONDS"==f.kind&&"-1"==f.adTimeOffset.offsetEndMilliseconds&&f.adTimeOffset.offsetEndMilliseconds!=e&&(f.adTimeOffset.offsetEndMilliseconds=e)})}c.Pg=d;
c.isEmpty=!1;return c};
Rna=function(a){[a.u.Y,a.u.u].filter(function(b){return null!=b}).forEach(function(b){PL(a.B,b,a)})};
bM=function(a,b,c,d,e,f,h,l){LL.call(this,a,b,c,d,e,f,h,l);this.D=d.B;this.G=-1;this.P=this.C=null;this.N=aM(this.Zr())};
cM=function(a){a.G++;var b=a.Zr();b?a.Od(b):a.dk()};
aM=function(a){return a?Tna.some(function(b){return a instanceof b}):!1};
dM=function(){hL.apply(this,arguments)};
eM=function(a){return a.length?g.Pc(a[0].loggingUrls||[],function(b){return b.baseUrl}):[]};
fM=function(a,b,c,d,e,f,h){NJ.call(this,b,d.B,d.u.u,d.B.u.adVideoId,e,f,h,g.Q(b.T().experiments,"only_show_companion_with_video_ad_or_command_for_image"));this.da=c;this.C=d;this.K=d.B;this.X=a;this.P=this.ea=this.G=null;a=this.C.u;a.visible=!1;PL(this.X,a,this)};
Una=function(a){this.u=new TL(function(b){b=new LL(a.Gd,a.J,a.QA(),b,a.Tg,a.Nm,a.Tj,a.daiEnabled);QL(b);return b},function(b){return new $L(a.Yu,a.Gd,a.J,a.Wu,b,a.Tg)},function(b){var c=a.Cq(b.B);
b=new fM(a.Gd,a.J,a.oI,b,a.RQ,c,a.nf);g.C(b,c);return b},function(b){b=new bM(a.Gd,a.J,a.QA(),b,a.Tg,a.Nm,a.Tj,a.daiEnabled);
QL(b);return b})};
gM=function(a,b){II.call(this);a.adStart&&a.adStart.adMessageRenderer&&(g.zq("adNotifyFilled",{notifyCompositeType:"COMPOSITE_AD_TYPE_LINEAR_AD_SEQUENCE"}),JI(this,new ZJ(a.adStart.adMessageRenderer)));if(a.linearAds)for(var c=[],d=g.q(a.linearAds),e=d.next();!e.done;e=d.next())e=e.value,e.instreamVideoAdRenderer?(e=b(e.instreamVideoAdRenderer),JI(this,e),c.push(e.B)):e.adActionInterstitialRenderer?(e=new TJ(e.adActionInterstitialRenderer),JI(this,e)):e.adIntroRenderer&&(e=new YJ(e.adIntroRenderer),
JI(this,e),this.C=1),this.B.filter(function(f){return f instanceof EI}).forEach(function(f,h){if(f instanceof EI){var l=new CI(h,c);
f.D=l}})};
hM=function(a,b){II.call(this);var c=a.persistingOverlay;this.D=c&&c.persistingAdOverlayRenderer?new bK(c.persistingAdOverlayRenderer):null;JI(this,Vna(this,a.adVideoStart));a:{if(c=a.linearAd){if(c.instreamVideoAdRenderer){c=b(c.instreamVideoAdRenderer);break a}if(c.instreamSurveyAdRenderer){c=new OI(c.instreamSurveyAdRenderer);break a}}c=null}JI(this,c);(c=a.adVideoEnd)?c.adActionInterstitialRenderer?(this.C=1,c=new TJ(c.adActionInterstitialRenderer)):c=null:c=null;JI(this,c)};
Vna=function(a,b){return null==b?null:b.adActionInterstitialRenderer?(a.C=1,new TJ(b.adActionInterstitialRenderer)):b.adTextInterstitialRenderer?new eK(b.adTextInterstitialRenderer):b.adMessageRenderer?(g.zq("adNotifyFilled",{notifyCompositeType:"COMPOSITE_AD_TYPE_SANDWICHED_LINEAR_AD"}),new ZJ(b.adMessageRenderer)):b.surveyTextInterstitialRenderer?new dK(b.surveyTextInterstitialRenderer):null};
iM=function(a,b,c){this.C=a;this.u=b;this.B=c};
jM=function(a){var b=new $I(a.KA),c=new aJ(b);return{OI:function(){return b},
pw:function(){return c}}};
kM=function(a){this.u=a};
lM=function(a,b,c,d){try{var e=b.renderer,f=b.config&&b.config.adPlacementConfig,h=e?a.u.create(e,f):null;return new PI(b,c,h,d)}catch(l){M(l)}};
Wna=function(a){var b=new kM(a.XH);return{lB:function(){return b}}};
mM=function(a){g.B.call(this);this.u=a;this.C=new lna(a.J);this.B=new bJ(a.J);g.C(this,this.B)};
Xna=function(a){return function(){return new qL(a.u.J)}};
nM=function(a){return function(b,c){return new iJ(b,a.C,c,a.u.J,a.B,a.u.Ah,a.u.daiEnabled)}};
oM=function(a){g.B.call(this);var b=this;this.B=a;this.u=null;g.$f(this,function(){return b.u=null});
var c=ns(a);if(c){var d=function(){b.u&&b.u(!!ls())};
this.B.addEventListener(c,d);g.$f(this,function(){b.B.removeEventListener(c,d)})}};
pM=function(a){g.B.call(this);this.u=a};
Yna=function(a){var b=window.document;return g.gD(a.T())?new oM(b):new pM(a)};
qM=function(a){g.B.call(this);this.u=new Cna(a.J,a.contentCpn,a.daiEnabled)};
sM=function(a){rM=a&&a.data};
uM=function(a){tM=a&&a.data};
wM=function(a){vM=a&&a.data};
yM=function(a){xM=a&&a.data};
zM=function(){xM=vM=rM=null};
DM=function(){g.B.call(this);var a=this;this.Mc=new Map;this.u=new Map;AM(this,"commandExecutorCommand",function(b,c,d){b=b.commands;b=void 0===b?[]:b;c=void 0===c?{}:c;d=void 0===d?{}:d;a.la();b=g.q(b);for(var e=b.next();!e.done;e=b.next())a.executeCommand(e.value,c,d)});
BM(this,"commandExecutorCommand",function(b,c){CM(a,b.commands,c)});
AM(this,"clickTrackingParams",function(){});
BM(this,"clickTrackingParams",function(){})};
Zna=function(a,b){AM(a,b.Zg(),function(c,d,e){d=void 0===d?{}:d;e=void 0===e?{}:e;b.handle(c,d,e)})};
$na=function(a,b){BM(a,b.Zg(),function(c,d){b.ii(c,d)})};
AM=function(a,b,c){a.la();a.Mc.get(b)&&M(Error("Extension name "+b+" already registered"));a.Mc.set(b,c)};
BM=function(a,b,c){a.la();a.u.get(b)&&M(Error("Extension name "+b+" already registered"));a.u.set(b,c)};
CM=function(a,b,c){b=void 0===b?[]:b;a.la();var d=[],e=[],f=g.q(b);for(b=f.next();!b.done;b=f.next())b=b.value,b.hasOwnProperty("pingingEndpoint")||b.hasOwnProperty("adPingingEndpoint")?d.push(b):e.push(b);d=g.q(d);for(b=d.next();!b.done;b=d.next())EM(a,b.value,c);e=g.q(e);for(b=e.next();!b.done;b=e.next())EM(a,b.value,c)};
EM=function(a,b,c){a.la();b.loggingUrls&&FM(a,"loggingUrls",b.loggingUrls,c);b=g.q(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=g.q(d.value);d=e.next().value;e=e.next().value;GM.hasOwnProperty(d)||FM(a,d,e,c)}};
HM=function(a,b,c,d,e){e=void 0===e?{}:e;(a=a.Mc.get(b))&&"function"===typeof a||new Oq("Unhandled field",b);try{a(c,d,e)}catch(f){M(f)}};
FM=function(a,b,c,d){(a=a.u.get(b))||new Oq("Unhandled field",b);try{a(c,d)}catch(e){M(e)}};
JM=function(a,b,c,d,e){g.O.call(this);var f=this;this.u=b;this.ra=null;this.Pb=c;this.ea=e.Wf;this.da=e.Gk;c=this.u.getVideoData(1).getPlayerResponse()||{};this.C=!IM(this.ea)&&c.playerConfig&&c.playerConfig.daiConfig&&(c.playerConfig.daiConfig.enableDai||c.playerConfig.daiConfig.enableServerStitchedDai)||!1;this.xb=Yma({J:b}).UI();this.B=this.D=null;this.F=new Map;this.Aa=[];c=this.u.T().experiments;var h=jM({KA:b.getVideoData(1)}),l=new mM({Ah:h.pw(),J:b,daiEnabled:this.C});g.C(this,l);this.G=new Set;
this.ka=-1;this.ia=[];this.X=null;this.W=new Map;this.Y=new Map;this.K=new Set;this.P=new os(this);g.C(this,this.P);this.N=new os(this);g.C(this,this.N);this.za=this.sb=this.Ea=!1;this.ba=g.gD(b.T());this.Zb=d;d=new qM({contentCpn:this.u.getVideoData(1).clientPlaybackNonce,I3:this,daiEnabled:this.C,J:this.u});g.C(this,d);this.Lb=d.u;d=new Bna({wI:this,tQ:g.Q(c,"html5_recognize_predict_start_cue_point"),jQ:g.Q(c,"html5_persist_cue_range_killswitch")});this.Pa=d.u;this.Qa=d.B;var m=cc(XI(TI(this.u)));
e=new zna({Fa:this,nI:l.B,nf:BI(),Ah:h.pw(),J:this.u,mQ:m,Cq:nM(l),daiEnabled:this.C,vj:e.vj,Wf:this.ea,uj:e.uj});this.Rb=(new Una({Wu:this.Pb,Tj:e.u,Yu:a,Gd:this,oI:this.xb,nf:BI(),QA:Xna(l),Tg:this.Lb,Nm:this.Qa,J:this.u,RQ:m,Cq:function(n){return nM(l)(n,m)},
daiEnabled:this.C})).u;this.Ja=Wna({XH:new iM(new ana(b),c,function(n){return f.Y.has(n)?f.Y.get(n):null})}).lB();
this.bb=Yna(this.u);g.C(this,this.bb);this.ac=oD(this.u.T())?g.Q(this.u.T().experiments,"align_ad_to_video_player_lifecycle_for_bulleit_living_room"):g.Q(this.u.T().experiments,"align_ad_to_video_player_lifecycle_for_bulleit")};
QM=function(a,b){var c=a.u.getVideoData(1);if(c.lv||g.K("SERVED_VIA_SPF_HISTORY"))g.Q(a.u.T().experiments,"directly_unlock_preroll_on_cached_playbacks_for_bulleit")?a.da.u():KM(a);else{if(eJ(a.u)){var d=LM(a.u);d.addEventListener("updateKevlarOrC3Companion",sM);d.addEventListener("onPlaShelfInfoCardsReady",uM);d.addEventListener("updateEngagementPanelAction",wM);d.addEventListener("changeEngagementPanelVisibility",yM);window.addEventListener("yt-navigate-start",zM)}a.P.R(a.u,"applicationplayerstatechange",
a.SM);a.P.R(a.u,g.RD("ad"),a.Lt,a);a.P.R(a.u,g.SD("ad"),a.sN,a);a.P.R(a.u,"aduxclicked",a.DM);a.P.R(a.u,"videodatachange",a.KP);d=aoa(a,b);d=MM(a,d);d=NM(a,d);0<d.length&&OM(a,d);a.X&&(c.subscribe("cuepointupdated",a.Ox,a),a.C&&c.ma&&a.Ox(iA(c.ma,0)));PM(a.ea)||KM(a);g.rm(a.pR,a)}};
aoa=function(a,b){return b.filter(function(c){return"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"==(c.config&&c.config.adPlacementConfig&&c.config.adPlacementConfig.kind||null)?(!a.C&&g.gD(a.u.T())&&a.u.getVideoData(1).Bg()||(a.X=c),!1):!0})};
MM=function(a,b){a.W=new Map;return b.filter(function(c){return"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"==(c.config&&c.config.adPlacementConfig&&c.config.adPlacementConfig.kind||null)&&c.elementId?(a.W.set(c.elementId,c),!1):!0})};
NM=function(a,b){a.Y=new Map;return b.filter(function(c){return(c=c.renderer.remoteSlotsRenderer)&&c.hostElementId?(a.Y.set(c.hostElementId,c),!1):!0})};
RM=function(a,b){return b.every(function(c){c=a.F.get(c);return null==c?(M(Error("AdCueRange without a corresponding AdPlacement.")),!0):c instanceof $L?!1:c instanceof LL?!c.oi():!0})};
KM=function(a){var b=boa(a);if(0<b.length){PM(a.ea)||RM(a,b)&&a.da.u();var c=g.P(a.u.T().experiments,"delay_ads_gvi_call_on_bulleit_living_room_ms");0<c&&!a.ba&&g.UC(a.u.T())?(c=new g.F(function(){SM(a,b)},c),g.C(a,c),c.start()):g.rm(function(){SM(a,b)})}else PM(a.ea)||a.da.u()};
coa=function(a,b){if(!b)return{};var c=!!a.B&&a.B||null;c?(c=c.B,c=c.ad.lp()?rJ(c.Ga,b):{}):c={};return c};
boa=function(a){for(var b=TM(a),c=g.q(b),d=c.next();!d.done;d=c.next())a.G["delete"](d.value);return b};
TM=function(a){var b=[];a=g.q(a.G);for(var c=a.next();!c.done;c=a.next())c=c.value,sI(c)&&b.push(c);return b};
eoa=function(a,b,c){c=void 0===c?null:c;b=a.Ja.create(b,doa(a),a.ia.length,c);a.ia=a.ia.concat(b);return b};
SM=function(a,b){if(!a.la())for(var c=g.q(b),d=c.next();!d.done;d=c.next())a.Lt(d.value)};
UM=function(a,b){var c=a.F.get(b);c&&(((a.C?0:g.Q(a.u.T().experiments,"enable_eviction_protection_for_bulleit"))?c.dn()&&a.D?a.D.Ip():!c.dn()&&a.B?a.B.Ip():1:1)?c.Ew(b):b.deactivate())};
OM=function(a,b,c){b=eoa(a,b,void 0===c?null:c);return 0==b.length?null:b.map(function(d){return a.Rb.create(d)})};
XM=function(a,b){b.dn()?(g.ag(a.D),a.D=b):(VM(a,b),b.nC()&&WM(a,b))};
VM=function(a,b){a.D&&a.D.Hp().start<b.Hp().start&&((g.Q(a.u.T().experiments,"html5_enable_clear_companion_for_composite_in_player_ads_for_action")||g.Q(a.u.T().experiments,"html5_enable_clear_companion_for_composite_in_player_ads_for_image")||g.Q(a.u.T().experiments,"html5_enable_clear_companion_for_composite_in_player_ads_for_shopping"))&&b.oi()?YM(a):b.Ww()&&YM(a))};
YM=function(a){var b=a.xb,c=b.u.getVideoData(1);b.u.va("updateKevlarOrC3Companion",{contentVideoId:c&&c.videoId});g.ag(a.D);a.D=null};
WM=function(a,b){a.B&&ZM(a,a.C);a.B=b;b.oi()&&$M(a)};
$M=function(a){a.Ea||(a.N.R(a.u,"presentingplayerstatechange",a.WL),a.N.R(a.u,"internalAbandon",a.tM),a.N.R(a.u,"progresssync",a.PP),a.N.R(a.u,"onVolumeChange",a.RP),a.N.R(a.bb,"fullscreentoggled",a.EN),a.Ea=!0);g.H(a.u.getRootNode(),"ad-showing");a.C||(g.H(a.u.getRootNode(),"ad-interrupting"),g.Q(a.u.T().experiments,"enable_html5_teal_ad_badge")&&eJ(a.u)&&g.H(a.u.getRootNode(),"ad-teal-design"),g.Q(a.u.T().experiments,"html5_activate_deferred_cue_ranges_on_video_ad")&&(a.K.forEach(function(b){UM(a,
b)}),a.K.clear()),g.aN(a.u.app,2))};
ZM=function(a,b,c){var d=!!a.B&&a.B||null,e=d&&d.oi()&&(cJ(a.u)||a.C);d=b&&d&&d.reset()||null;a.B&&bN(a,a.B);a.B=null;a.ka=-1;e&&cN(a,c);a.za||a.da.u();b&&d&&(d.Hp().B=!1,QL(d))};
cN=function(a,b){g.qs(a.N);a.Ea=!1;g.xn(a.u.getRootNode(),"ad-showing");a.C||(a.ac?(a.za||a.da.u(),dN(a),a.u.cueVideoByPlayerVars({},2)):(a.u.cueVideoByPlayerVars({},2),dN(a)),g.xn(a.u.getRootNode(),"ad-interrupting"),g.Q(a.u.T().experiments,"enable_html5_teal_ad_badge")&&g.xn(a.u.getRootNode(),"ad-teal-design"));b&&b(a.u)};
dN=function(a){if(a.sb)!a.ba&&g.UC(a.u.T())&&(g.Q(a.u.T().experiments,"release_player_on_abandon_for_bulleit_living_room")||g.Q(a.u.T().experiments,"release_player_on_abandon_for_bulleit_lr_ads_frontend"))&&g.eN(a.u,2);else if(g.eN(a.u,2),!a.ba){var b=g.uJ(a.u,1);g.U(b,4)&&!g.U(b,2)&&a.u.playVideo()}};
PL=function(a,b,c){if(b instanceof rI){if(a.ba&&tI(b)&&g.U(g.uJ(a.u,1),64)&&!a.C){var d=1E3*a.u.getCurrentTime(1)||0;d!=b.start&&b.contains(d)&&b.deactivate()}a.F.has(b)?M(Error(b.toString()+" has already been seen")):(a.G.add(b),a.F.set(b,c),sI(b)||g.fN(a.u,[b],1))}else M(Error("Should use AdCueRange instead of CueRange"))};
doa=function(a){var b=1E3*a.u.getDuration(1);return new qI(b,1E3*a.u.getCurrentTime(1)||0,g.Q(a.u.T().experiments,"enable_upg_processed_dvr_dai")?a.C:a.u.getVideoData(1).Bg(),g.Q(a.u.T().experiments,"html5_recognize_predict_start_cue_point"))};
lL=function(a,b,c){g.gN(a.u.app,b,c);b=g.q(b);for(c=b.next();!c.done;c=b.next())c=c.value,a.G["delete"](c),a.F["delete"](c)};
bN=function(a,b){for(var c=a.F,d=g.q(c),e=d.next();!e.done;e=d.next()){e=g.q(e.value);var f=e.next().value;if(e.next().value==b){c["delete"](f);break}}g.ag(b)};
iN=function(a,b){hN(a.u.app,b);switch(b){case 1:a.ka=1;break;case 0:a.ka=0}};
jN=function(a){os.call(this);this.u=a;this.R(this.u,"onAdUxUpdate",this.P)};
kN=function(a,b,c,d,e){BJ.call(this,"image-companion",a,b,c,d,e)};
lN=function(a){jN.call(this,a)};
mN=function(a){g.B.call(this);this.u=a};
nN=function(a){mN.call(this,!0);this.B=a};
foa=function(a,b){function c(f){return{toString:f}}
var d={},e=a.getVideoData(1);d.CPN=c(function(){return e&&e.clientPlaybackNonce||null});
d.ASR=c(function(){return e&&e.adSafetyReason||null});
d.EI=c(function(){return e&&e.eventId||null});
d.AD_CPN=c(function(){return b.ra});
d.AD_MT=c(function(){return Math.round(Math.max(0,1E3*a.getCurrentTime(2))).toString()});
d.MT=c(function(){return Math.round(Math.max(0,1E3*a.getCurrentTime(1))).toString()});
d.P_H=c(function(){return a.getPlayerSize().height.toString()});
d.PV_H=d.P_H;d.P_W=c(function(){return a.getPlayerSize().width.toString()});
d.PV_W=d.P_W;d.CONN="0";d.WT=c(function(){return Date.now().toString()});
d.LACT=c(function(){return wp().toString()});
d.VIS=c(function(){return a.getVisibilityState().toString()});
d.VOL=c(function(){return a.getVolume().toString()});
return d};
oN=function(a,b){g.B.call(this);var c=this;this.C=[];this.K=!1;this.B=0;this.F=this.G=this.D=!1;this.W=null;var d=(0,g.z)(a,b);this.u=new g.F(function(){return d(c.W)},300);
g.C(this,this.u);this.N=this.P=Infinity};
pN=function(a,b){if(!b)return!1;for(var c=0;c<b.length;c++){var d=b.item(c);if(d&&a.C.includes(d.identifier))return!0}return!1};
rN=function(){var a="ytp-id-"+qN.toString();qN++;return a};
g.sN=function(a){g.B.call(this);this.Aa={};this.Rb={};this.element=this.createElement(a)};
tN=function(a,b,c,d){if("{{"===d.substr(0,2))a.Rb[d]=[b,c];else return d};
goa=function(a,b){var c=[];if(!b)return c;for(var d=g.q(b),e=d.next();!e.done;e=d.next())if(e=e.value,null!=e){var f=e.nodeType;1===f||3===f?c.push(e):e&&"string"===typeof e.I?c.push(a.createElement(e)):e.element?c.push(e.element):"string"===typeof e&&-1!==e.indexOf("\n")?e.split("\n").forEach(function(h,l){0<l&&c.push(g.Ee("BR"));c.push(g.Fe(h))}):c.push(g.Fe(e))}return c};
uN=function(a,b,c,d){if("child"===c){g.Ge(b);var e;void 0===d?e=void 0:e=!Array.isArray(d)||d&&"string"===typeof d.I?[d]:d;c=goa(a,e);c=g.q(c);for(a=c.next();!a.done;a=c.next())b.appendChild(a.value)}else"style"===c?g.lg(b,"cssText",d?d:""):null===d||void 0===d?b.removeAttribute(c):(a=d.toString(),"href"===c&&(a=g.Gc(g.Kc(a))),b.setAttribute(c,a))};
g.V=function(a){g.sN.call(this,a);this.Xa=!0;this.P=!1;this.listeners=[]};
g.vN=function(a,b){b?a.show():a.hide()};
g.wN=function(a){g.V.call(this,a);this.ba=new g.O;g.C(this,this.ba)};
W=function(a,b,c,d,e,f,h){h=void 0===h?null:h;g.wN.call(this,c);this.api=a;this.Fa=b;this.macros={};this.componentType=d;this.K=null;this.qb=h;this.layoutId=e;this.u=f;this.Ea=null;this.bb=new nN(this.element);g.C(this,this.bb);this.Qa=this.R(this.element,"click",this.onClick);this.ea=[];this.Y=new oN(this.onClick,this);g.C(this,this.Y);this.sb=!1;this.W=null};
xN=function(a,b,c){a.Fa?a.Fa.executeCommand(b,a.macros,c):M(Error("null or undefined adService"))};
yN=function(a,b){a=void 0===a?null:a;b=void 0===b?null:b;if(null==a)return g.Bo(Error("Got null or undefined adText object")),"";var c=g.od(a.text);if(!a.isTemplated)return c;if(null==b)return g.Bo(Error("Missing required parameters for a templated message")),c;for(var d=g.q(Object.entries(b)),e=d.next();!e.done;e=d.next()){var f=g.q(e.value);e=f.next().value;f=f.next().value;c=c.replace("{"+e+"}",f)}return c};
zN=function(a){a=void 0===a?null:a;return null==a||(a=a.thumbnail,null==a||null==a.thumbnails||g.ob(a.thumbnails)||null==a.thumbnails[0].url)?"":g.od(a.thumbnails[0].url)};
hoa=function(a){a=void 0===a?null:a;return null==a||(a=a.thumbnail,null==a||null==a.thumbnails||g.ob(a.thumbnails)||null==a.thumbnails[0].width||null==a.thumbnails[0].height)?new g.ge(0,0):new g.ge(a.thumbnails[0].width||0,a.thumbnails[0].height||0)};
CN=function(a,b,c){g.AN(a.api,b,a);g.BN(a.api,b,c)};
FN=function(a,b,c){g.DN(a.api,b)&&g.EN(a.api,b,c,a.u)};
GN=function(a){return a&&a.thumbnails&&!g.ob(a.thumbnails||null)&&a.thumbnails[0].url?g.od(a.thumbnails[0].url):""};
HN=function(a,b,c,d,e,f){f=void 0===f?!1:f;W.call(this,a,b,{I:"img",L:"ytp-ad-image"},"ad-image",c,d,void 0===e?null:e);this.B=f;this.hide()};
g.IN=function(){return{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",rb:!0,U:{d:"M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M25,13 L11,13 L11,14.63 C14.96,15.91 18.09,19.04 19.37,23 L25,23 L25,13 L25,13 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",
fill:"#fff"}}]}};
JN=function(){return{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",U:{d:"m 14.8,21.9 -4.2,-4.2 -1.4,1.4 5.6,5.6 12,-12 -1.4,-1.4 -10.6,10.6 z",fill:"#fff"}}]}};
g.KN=function(){return{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},S:[{I:"path",U:{d:"M 19.41,20.09 14.83,15.5 19.41,10.91 18,9.5 l -6,6 6,6 z",fill:"#fff"}}]}};
g.LN=function(){return{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},S:[{I:"path",U:{d:"m 12.59,20.34 4.58,-4.59 -4.58,-4.59 1.41,-1.41 6,6 -6,6 z",fill:"#fff"}}]}};
MN=function(){return{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},S:[{I:"path",U:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{I:"path",U:{d:"M7.15,8.35 L9.25,10.45 L10.65,9.05 L8.55,6.95 L10.7,4.8 L9.3,3.4 L7.15,5.55 L5,3.4 L3.6,4.8 L5.75,6.95 L3.65,9.05 L5.05,10.45 L7.15,8.35 Z",fill:"#fff"}}]}};
NN=function(){return{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},S:[{I:"path",rb:!0,U:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}};
ON=function(){return{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},S:[{I:"path",rb:!0,U:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
g.PN=function(){return{I:"svg",U:{height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{I:"path",U:{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",fill:"#fff"}}]}};
QN=function(){return{I:"svg",U:{height:"100%",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",U:{d:"M14.1 24.9L7.2 18.0l6.9-6.9L12.0 9.0l-9.0 9.0 9.0 9.0 2.1-2.1zm7.8 .0l6.9-6.9-6.9-6.9L24.0 9.0l9.0 9.0-9.0 9.0-2.1-2.1z",fill:"#fff"}}]}};
ioa=function(){return{I:"svg",U:{viewBox:"0 0 24 24"},S:[{I:"path",U:{d:"M0 0h24v24H0z",fill:"none"}},{I:"path",U:{d:"M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v1.91l.01.01L1 14c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2zm4 0v12h4V3h-4z",fill:"#fff"}}]}};
joa=function(){return{I:"svg",U:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},S:[{I:"path",U:{d:"M0 0h48v48H0z",fill:"none"}},{I:"path",U:{d:"M22 34h4V22h-4v12zm2-30C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16zm-2-22h4v-4h-4v4z"}}]}};
g.RN=function(){return{I:"svg",U:{viewBox:"0 0 24 24"},S:[{I:"path",U:{d:"M0 0h24v24H0z",fill:"none"}},{I:"path",U:{d:"M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-1.91l-.01-.01L23 10z",fill:"#fff"}}]}};
SN=function(){return{I:"svg",U:{height:"100%",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",U:{d:"M5.85 18.0c0.0-2.56 2.08-4.65 4.65-4.65h6.0V10.5H10.5c-4.14 .0-7.5 3.36-7.5 7.5s3.36 7.5 7.5 7.5h6.0v-2.85H10.5c-2.56 .0-4.65-2.08-4.65-4.65zM12.0 19.5h12.0v-3.0H12.0v3.0zm13.5-9.0h-6.0v2.85h6.0c2.56 .0 4.65 2.08 4.65 4.65s-2.08 4.65-4.65 4.65h-6.0V25.5h6.0c4.14 .0 7.5-3.36 7.5-7.5s-3.36-7.5-7.5-7.5z",fill:"#fff"}}]}};
koa=function(){return{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},S:[{I:"path",rb:!0,U:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}};
TN=function(){return{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",rb:!0,L:"ytp-svg-fill",U:{d:"M 12,24 20.5,18 12,12 V 24 z M 22,12 v 12 h 2 V 12 h -2 z"}}]}};
g.UN=function(){return{I:"svg",U:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},S:[{I:"path",U:{d:"M7.58 4.08L6.15 2.65C3.75 4.48 2.17 7.3 2.03 10.5h2c.15-2.65 1.51-4.97 3.55-6.42zm12.39 6.42h2c-.15-3.2-1.73-6.02-4.12-7.85l-1.42 1.43c2.02 1.45 3.39 3.77 3.54 6.42zM18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}};
loa=function(){return{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",rb:!0,L:"ytp-svg-fill",U:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}};
moa=function(){return{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",rb:!0,U:{d:"M25,17 L17,17 L17,23 L25,23 L25,17 L25,17 Z M29,25 L29,10.98 C29,9.88 28.1,9 27,9 L9,9 C7.9,9 7,9.88 7,10.98 L7,25 C7,26.1 7.9,27 9,27 L27,27 C28.1,27 29,26.1 29,25 L29,25 Z M27,25.02 L9,25.02 L9,10.97 L27,10.97 L27,25.02 L27,25.02 Z",fill:"#fff"}}]}};
noa=function(){return{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",rb:!0,L:"ytp-svg-fill",U:{d:"M 12,26 18.5,22 18.5,14 12,10 z M 18.5,22 25,18 25,18 18.5,14 z"}}]}};
ooa=function(){return{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",rb:!0,L:"ytp-svg-fill",U:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}};
g.VN=function(){return{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",rb:!0,L:"ytp-svg-fill",U:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z"}}]}};
g.WN=function(){return{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",rb:!0,U:{d:"m 23.94,18.78 c .03,-0.25 .05,-0.51 .05,-0.78 0,-0.27 -0.02,-0.52 -0.05,-0.78 l 1.68,-1.32 c .15,-0.12 .19,-0.33 .09,-0.51 l -1.6,-2.76 c -0.09,-0.17 -0.31,-0.24 -0.48,-0.17 l -1.99,.8 c -0.41,-0.32 -0.86,-0.58 -1.35,-0.78 l -0.30,-2.12 c -0.02,-0.19 -0.19,-0.33 -0.39,-0.33 l -3.2,0 c -0.2,0 -0.36,.14 -0.39,.33 l -0.30,2.12 c -0.48,.2 -0.93,.47 -1.35,.78 l -1.99,-0.8 c -0.18,-0.07 -0.39,0 -0.48,.17 l -1.6,2.76 c -0.10,.17 -0.05,.39 .09,.51 l 1.68,1.32 c -0.03,.25 -0.05,.52 -0.05,.78 0,.26 .02,.52 .05,.78 l -1.68,1.32 c -0.15,.12 -0.19,.33 -0.09,.51 l 1.6,2.76 c .09,.17 .31,.24 .48,.17 l 1.99,-0.8 c .41,.32 .86,.58 1.35,.78 l .30,2.12 c .02,.19 .19,.33 .39,.33 l 3.2,0 c .2,0 .36,-0.14 .39,-0.33 l .30,-2.12 c .48,-0.2 .93,-0.47 1.35,-0.78 l 1.99,.8 c .18,.07 .39,0 .48,-0.17 l 1.6,-2.76 c .09,-0.17 .05,-0.39 -0.09,-0.51 l -1.68,-1.32 0,0 z m -5.94,2.01 c -1.54,0 -2.8,-1.25 -2.8,-2.8 0,-1.54 1.25,-2.8 2.8,-2.8 1.54,0 2.8,1.25 2.8,2.8 0,1.54 -1.25,2.8 -2.8,2.8 l 0,0 z",
fill:"#fff"}}]}};
poa=function(){return{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",rb:!0,L:"ytp-svg-fill",U:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}};
qoa=function(){return{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",rb:!0,U:{d:"M11,11 C9.9,11 9,11.9 9,13 L9,23 C9,24.1 9.9,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 M11,17 L14,17 L14,19 L11,19 L11,17 L11,17 Z M20,23 L11,23 L11,21 L20,21 L20,23 L20,23 Z M25,23 L22,23 L22,21 L25,21 L25,23 L25,23 Z M25,19 L16,19 L16,17 L25,17 L25,19 L25,19 Z",fill:"#fff"}}]}};
XN=function(){return{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",rb:!0,L:"ytp-svg-fill",U:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}};
YN=function(a){if(!a)return null;switch(a.iconType){case "OPEN_IN_NEW":return{I:"svg",U:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},S:[{I:"path",U:{d:"M0 0h48v48H0z",fill:"none"}},{I:"path",U:{d:"M38 38H10V10h14V6H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V24h-4v14zM28 6v4h7.17L15.51 29.66l2.83 2.83L38 12.83V20h4V6H28z"}}]};case "CHECK_BOX":return{I:"svg",U:{height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{I:"path",U:{d:"M0 0h24v24H0z",fill:"none"}},
{I:"path",U:{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z",fill:"#d4d4d4"}}]};case "CHECK_BOX_OUTLINE_BLANK":return{I:"svg",U:{height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{I:"path",U:{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z",fill:"#d4d4d4"}},{I:"path",U:{d:"M0 0h24v24H0z",fill:"none"}}]};case "CLOSE":return g.PN();case "INFO_OUTLINE":return joa();case "REMOVE_CIRCLE":return{I:"svg",
U:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},S:[{I:"path",U:{d:"M0 0h24v24H0z",fill:"none"}},{I:"path",U:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z",fill:"#757575"}}]};case "SKIP_NEXT":return TN();case "LIKE":return g.RN();case "DISLIKE":return ioa();default:return g.Fr(new Oq("Unexpected icon:",a)),null}};
ZN=function(a,b,c,d,e,f,h,l){e=void 0===e?[]:e;h=void 0===h?!1:h;e={I:"button",ha:["ytp-ad-button"].concat(e)};null!=l&&(e.U={tabindex:l});W.call(this,a,b,e,void 0===f?"button":f,c,d);this.B=this.C=this.D=null;this.F=h;this.hide()};
roa=function(a){var b=null;null!=a.B&&(b=[a.B.serviceEndpoint,a.B.navigationEndpoint].filter(function(c){return null!=c}),a.B.command&&(b=b.concat(a.B.command)));
return b||[]};
$N=function(a,b,c,d,e,f,h){W.call(this,a,b,c,d,e,f);this.B=h;g.C(this,this.B);this.ia=this.F=-1};
aO=function(a){a.B&&-1===a.F&&(a.F=a.B.subscribe("b",a.Ik,a),a.ia=a.B.subscribe("a",a.jm,a),a.Ik())};
bO=function(a){null!=a.B&&-1!==a.F&&(a.B.Dk(a.F),a.B.Dk(a.ia),a.ia=-1,a.F=-1)};
cO=function(a,b,c,d,e,f){f=void 0===f?!1:f;$N.call(this,a,b,{I:"div",L:"ytp-ad-timed-pie-countdown-container",S:[{I:"svg",L:"ytp-ad-timed-pie-countdown",U:{viewBox:"0 0 20 20"},S:[{I:"circle",L:"ytp-ad-timed-pie-countdown-background",U:{r:10,cx:"10",cy:"10"}},{I:"circle",L:"ytp-ad-timed-pie-countdown-inner",U:{r:5,cx:"10",cy:"10"}},{I:"circle",L:"ytp-ad-timed-pie-countdown-outer",U:{r:10,cx:"10",cy:"10"}}]}]},"timed-pie-countdown",c,d,e);this.D=this.ga("ytp-ad-timed-pie-countdown-inner");this.C=Math.ceil(10*
Math.PI);this.G=f;this.hide()};
dO=function(a,b,c,d,e,f){W.call(this,a,b,{I:"div",L:"ytp-ad-text"},void 0===f?"ad-text":f,c,d,void 0===e?null:e);this.B=null;this.hide()};
eO=function(a,b){b&&g.Me(a.element,yN(a.B,b))};
g.fO=function(a,b,c,d,e,f){g.B.call(this);this.element=a;this.state=null;c||a.hide();this.C=b;this.D=void 0===d?b:d;this.u=f;this.B=e;this.delay=new g.F(this.Bu,0,this);g.C(this,this.delay)};
gO=function(a,b){var c=a.element.element;b?c.setAttribute("aria-hidden","true"):c.removeAttribute("aria-hidden")};
hO=function(a,b,c,d,e,f){$N.call(this,a,b,{I:"div",L:"ytp-ad-preview-slot"},"ad-preview",c,d,e);var h=this;this.ra=-1;this.C=new g.wN({I:"span",L:"ytp-ad-preview-container"});g.C(this,this.C);this.D=new dO(this.api,this.Fa,this.layoutId,this.u,"ytp-ad-preview-text");g.C(this,this.D);this.D.fa(this.C.element);this.N=new g.wN({I:"span",L:"ytp-ad-preview-image"});g.C(this,this.N);this.G=new HN(this.api,this.Fa,this.layoutId,this.u);g.C(this,this.G);this.G.fa(this.N.element);this.N.fa(this.C.element);
this.C.fa(this.element);this.X=new g.fO(this.C,400,!1,100,function(){return h.hide()});
g.C(this,this.X);this.da=0;this.ka=!1;this.za=f;this.hide()};
iO=function(a){a.X.show(100);a.show()};
jO=function(a,b,c,d,e){e=void 0===e?0:e;g.B.call(this);this.C=a;this.B=!1;this.N=d;this.G=!1;this.u=null;0<b&&(this.u=new g.F(this.mA,b,this),g.C(this,this.u));this.D=new g.F(this.mA,c,this);g.C(this,this.D);this.P=Cn(this.C,e,1,d);g.C(this,this.P);this.K=Cn(this.C,0,d,1);g.C(this,this.K);this.F=new os;g.C(this,this.F)};
kO=function(a,b,c,d,e){$N.call(this,a,b,{I:"div",L:"ytp-ad-skip-button-slot"},"skip-button",c,d,e);var f=this;this.N=null;this.da=!1;this.D=new g.wN({I:"span",ha:["ytp-ad-skip-button-container"]});g.C(this,this.D);this.D.fa(this.element);this.C=this.G=null;this.ka=new g.fO(this.D,500,!1,100,function(){return f.hide()});
g.C(this,this.ka);this.X=new jO(this.D.element,15E3,5E3,.5,.5);g.C(this,this.X);this.hide()};
soa=function(a){a=a.N&&a.N.adRendererCommands;return(a&&a.clickCommand&&a.clickCommand.commandExecutorCommand&&a.clickCommand.commandExecutorCommand.commands||[]).some(function(b){return b.adLifecycleCommand||b.adPlayerControlsCommand})};
lO=function(a,b){g.O.call(this);this.F=b;this.G=new os(this);g.C(this,this.G);this.B=a;this.Va=new g.Pm(100);g.C(this,this.Va);this.G.R(this.Va,"tick",this.ZL);this.D={seekableStart:0,seekableEnd:a/1E3,current:0};this.C=!1;this.u=0;this.start()};
mO=function(a,b,c,d){W.call(this,a,b,{I:"div",L:"ytp-ad-action-interstitial",U:{tabindex:"0"},S:[{I:"div",L:"ytp-ad-action-interstitial-background-container"},{I:"div",L:"ytp-ad-action-interstitial-slot",S:[{I:"div",L:"ytp-ad-action-interstitial-card",S:[{I:"div",L:"ytp-ad-action-interstitial-image-container"},{I:"div",L:"ytp-ad-action-interstitial-headline-container"},{I:"div",L:"ytp-ad-action-interstitial-description-container"},{I:"div",L:"ytp-ad-action-interstitial-action-button-container"}]}]}]},
"ad-action-interstitial",c,d);this.Ja=this.ga("ytp-ad-action-interstitial-image-container");this.N=new HN(this.api,this.Fa,this.layoutId,this.u,"ytp-ad-action-interstitial-image");g.C(this,this.N);this.N.fa(this.Ja);this.za=this.ga("ytp-ad-action-interstitial-headline-container");this.ia=new dO(this.api,this.Fa,this.layoutId,this.u,"ytp-ad-action-interstitial-headline");g.C(this,this.ia);this.ia.fa(this.za);this.ra=this.ga("ytp-ad-action-interstitial-description-container");this.da=new dO(this.api,
this.Fa,this.layoutId,this.u,"ytp-ad-action-interstitial-description");g.C(this,this.da);this.da.fa(this.ra);this.xb=this.ga("ytp-ad-action-interstitial-background-container");this.X=new HN(this.api,this.Fa,this.layoutId,this.u,"ytp-ad-action-interstitial-background",!0);g.C(this,this.X);this.X.fa(this.xb);this.Pa=this.ga("ytp-ad-action-interstitial-action-button-container");this.C=this.F=this.D=this.B=null;this.G=new os;g.C(this,this.G);this.ka=null;this.hide()};
toa=function(a){var b=g.qe("html5-video-player");b&&g.I(b,"ytp-ad-display-override",a)};
nO=function(a,b,c,d){W.call(this,a,b,{I:"div",L:"ytp-ad-choice-interstitial",S:[{I:"div",L:"ytp-ad-choice-interstitial-main-content",S:[{I:"div",L:"ytp-ad-choice-interstitial-head-title"},{I:"div",L:"ytp-ad-choice-interstitial-button-container"}]}]},"ad-choice-interstitial",c,d);this.F=this.D=this.B=this.C=null;this.G=new g.fO(this,0,!1,0);g.C(this,this.G);this.hide()};
uoa=function(a,b){var c=GN(b)||"";g.rc(c)?g.Bo(Error("Found ThumbnailDetails without valid image URL")):g.lg(a,"backgroundImage","url("+c+")")};
voa=function(a,b){var c=a.ga("ytp-ad-choice-interstitial-head-title");g.Me(c,g.S(b))};
woa=function(a){switch(a){case 0:case 1:return a;default:return M(Error("AdChoiceInterstitialRenderer received an invalid value for default button choice index (i.e., not 0 or 1): "+a)),1}};
yoa=function(a,b,c,d){if(2!==b.length)return!1;a.B=xoa(a,b[0],c,0===d);a.B.show();a.D=xoa(a,b[1],c,1===d);a.D.show();return!0};
xoa=function(a,b,c,d){var e=a.ga("ytp-ad-choice-interstitial-button-container"),f=d?1:2,h=["ytp-ad-choice-interstitial-button"],l=g.Q(a.api.T().experiments,"self_podding_highlighted_button_blue")?"ytp-ad-choice-interstitial-button-highlight-blue":"ytp-ad-choice-interstitial-button-highlight",m=g.Q(a.api.T().experiments,"self_podding_highlight_non_default_button");d&&h.push("ytp-ad-choice-interstitial-button-default");d===!m&&h.push(l);d=new ZN(a.api,a.Fa,a.layoutId,a.u,h,"button",!1,f);g.C(a,d);d.init(AJ("button"),
b,a.macros);d.fa(e);d.element.style.width=8*c+32+"px";return d};
zoa=function(a,b){var c=8*b+32,d=a.ga("ytp-ad-choice-interstitial-button-container");190<c?(d.classList.add("ytp-ad-choice-interstitial-button-container-stacked"),d.style.width=c+"px"):(d.classList.remove("ytp-ad-choice-interstitial-button-container-stacked"),d.style.width="")};
Aoa=function(a,b,c,d){a.C=new lO(d);a.C.subscribe("a",function(){a.G.hide();for(var e=g.q(b),f=e.next();!f.done;f=e.next())a.Fa.executeCommand(f.value,c)});
g.C(a,a.C)};
Boa=function(a,b,c){var d=a.ga("ytp-ad-choice-interstitial");a.F=new cO(a.api,a.Fa,a.layoutId,a.u,a.C,!0);g.C(a,a.F);a.F.init(AJ("timed-pie-countdown"),b,c);a.F.fa(d)};
oO=function(a,b,c,d){W.call(this,a,b,{I:"div",L:"ytp-ad-text-interstitial"},"ad-text-interstitial",c,d);this.C=this.ga("ytp-ad-text-interstitial");this.B=new dO(this.api,this.Fa,this.layoutId,this.u,"ytp-ad-text-interstitial-message");g.C(this,this.B);this.B.fa(this.C);this.hide()};
Coa=function(a){var b=g.qe("html5-video-player");b&&g.I(b,"ytp-ad-display-override",a)};
pO=function(){g.B.call(this);var a=this;this.u=new Map;this.B=Zda(function(b){if(b.target&&(b=a.u.get(b.target))&&b)for(var c=0;c<b.length;c++)g.zt(b[c],void 0,void 0)})};
Doa=function(){null==qO&&(qO=new pO);return qO};
rO=function(a,b){if(a.simpleText){a:{var c=a.simpleText;if(b){var d=Eoa(c);if(d){c=g.De("SPAN",null,d);break a}}c=g.Fe(c)}return c}c=[];if(a.runs)for(d=0;d<a.runs.length;d++){var e=a.runs[d];e.text&&c.push(Foa(e,b))}return 1==c.length?c[0]:g.De("SPAN",null,c)};
Foa=function(a,b){var c=null,d=a.text;b&&(d=Eoa(d)||d);a.bold&&(c=g.De("B",null,c||d));a.italics&&(c=g.De("I",null,c||d));a.strikethrough&&(c=g.De("STRIKE",null,c||d));if(a.navigationEndpoint&&a.navigationEndpoint.urlEndpoint){var e=a.navigationEndpoint.urlEndpoint;c=g.De("A",null,c||d);g.id(c,e.url);"TARGET_NEW_WINDOW"==e.target&&(c.target="_blank");if(e=a.navigationEndpoint.loggingUrls)e=e.map(function(f){return f.baseUrl}),Doa().register(c,e),g.H(c,"ytp-ad-has-logging-urls")}return c||g.De("SPAN",
null,d)};
Eoa=function(a){a=a.split(/(?:\r\n|\r|\n)/g);if(1<a.length){for(var b=[a[0]],c=1;c<a.length;c++)b.push(g.De("BR")),b.push(a[c]);return b}return null};
sO=function(a,b,c,d,e,f,h,l){f=void 0===f?!1:f;h=void 0===h?[]:h;W.call(this,a,b,{I:"span",ha:["ytp-ad-hover-text-button"].concat(h)},void 0===l?"ad-hover-text-button":l,c,d);this.button=this.C=null;this.G=f;this.F=e;this.hide()};
tO=function(a,b,c,d){W.call(this,a,b,{I:"div",L:"ytp-ad-feedback-dialog-background",S:[{I:"div",L:"ytp-ad-feedback-dialog-container",S:[{I:"div",L:"ytp-ad-feedback-dialog-form",U:{role:"dialog",tabindex:"-1"},S:[{I:"div",L:"ytp-ad-feedback-dialog-title",S:[{I:"span",Z:"{{title}}"}]},{I:"span",L:"ytp-ad-info-dialog-feedback-options-title",Z:"{{reasonsTitle}}"},{I:"div",L:"ytp-ad-info-dialog-feedback-options"},{I:"div",L:"ytp-ad-feedback-dialog-confirm-container",S:[{I:"button",L:"ytp-ad-feedback-dialog-cancel-button",
Z:"{{cancelLabel}}"},{I:"button",L:"ytp-ad-feedback-dialog-confirm-button",Z:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",c,d);this.D=[];this.B=null;this.F=this.ga("ytp-ad-feedback-dialog-cancel-button");this.N=this.ga("ytp-ad-feedback-dialog-confirm-button");this.X=this.ga("ytp-ad-info-dialog-feedback-options");this.da=this.ga("ytp-ad-feedback-dialog-title");this.G=this.C=null;this.hide()};
Joa=function(a,b){var c=b.cancelRenderer&&b.cancelRenderer.buttonRenderer||null;c&&(a.B=new ZN(a.api,a.Fa,a.layoutId,a.u,["ytp-ad-feedback-dialog-close-button"],"button"),g.C(a,a.B),a.B.init(AJ("button"),c,a.macros),a.B.wa("click",a.BD,a),a.B.fa(a.element));b.title&&(c=g.S(b.title),a.xa("title",c));b.reasonsTitle&&(c=g.S(b.reasonsTitle),a.xa("reasonsTitle",c));b.reasons&&Goa(a,b.reasons);b.cancelLabel&&(c=g.S(b.cancelLabel),a.xa("cancelLabel",c),g.$o(a.F,"click",function(){return a.BD()}));
b.confirmLabel&&(c=g.S(b.confirmLabel),a.xa("confirmLabel",c),g.$o(a.N,"click",function(){return Hoa(a)}));
b.undoRenderer&&Ioa(a,b.undoRenderer)};
Goa=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){var e=d.value;d=e.reason;null==d?g.Bo(Error("AdFeedbackReason.reason was not set.")):(e=e.endpoint,null==e?g.Bo(Error("AdFeedbackReason.endpoint was not set.")):(d=new uO(d,e),g.C(a,d),a.X.appendChild(d.Ma()),a.D.push(d)))}};
Ioa=function(a,b){var c=b&&b.buttonRenderer||null;c&&(c.serviceEndpoint?(a.C=new ZN(a.api,a.Fa,a.layoutId,a.u,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.C(a,a.C),a.C.init(AJ("ad-feedback-undo-mute-button"),c,a.macros),a.C.wa("click",a.HP,a),a.C.fa(a.da)):g.Bo(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint.")))};
Hoa=function(a){var b=a.D.filter(function(c){return c.isChecked()});
0!==b.length&&(a.Fa.executeCommand(b[0].B,a.macros),a.api.onAdUxClicked("ad-feedback-dialog-confirm-button",a.layoutId),a.V("f"),a.hide())};
uO=function(a,b){this.B=b;this.u=new g.wN({I:"label",L:"ytp-ad-feedback-dialog-reason-label",S:[{I:"input",L:"ytp-ad-feedback-dialog-reason-input",U:{type:"radio",name:"feedback-reason-group"}},{I:"span",L:"ytp-ad-feedback-dialog-reason-text",Z:g.S(a)}]});this.C=this.u.ga("ytp-ad-feedback-dialog-reason-input")};
vO=function(a,b,c,d,e,f){e=void 0===e?[]:e;W.call(this,a,b,{I:"div",ha:["ytp-ad-confirm-dialog-background"],S:[{I:"div",L:"ytp-ad-confirm-dialog-container",S:[{I:"div",ha:["ytp-ad-confirm-dialog"].concat(e),U:{role:"dialog",tabindex:"-1"},S:[{I:"div",L:"ytp-ad-confirm-dialog-title",Z:"{{title}}"},{I:"div",L:"ytp-ad-confirm-dialog-messages"},{I:"div",L:"ytp-ad-confirm-dialog-confirm-container",S:[{I:"button",L:"ytp-ad-confirm-dialog-cancel-button",Z:"{{cancelLabel}}"},{I:"button",L:"ytp-ad-confirm-dialog-confirm-button",
Z:"{{confirmLabel}}"}]}]}]},{I:"button",ha:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],S:[{I:"span",L:"ytp-ad-button-icon",S:[g.PN()]}]}]},void 0===f?"confirm-dialog":f,c,d);this.G=this.ga("ytp-ad-confirm-dialog-close-overlay-button");this.F=this.ga("ytp-ad-confirm-dialog-cancel-button");this.X=this.ga("ytp-ad-confirm-dialog-confirm-button");this.N=this.ga("ytp-ad-confirm-dialog-messages");this.D=null;this.B=new os;g.C(this,this.B);this.C=null;this.hide()};
Koa=function(a,b){if(b.title){var c=g.S(b.title);a.xa("title",c)}if(b.dialogMessages){c=g.q(b.dialogMessages);for(var d=c.next();!d.done;d=c.next())d=rO(d.value),a.N.appendChild(d)}b.cancelLabel&&(c=g.S(b.cancelLabel),a.xa("cancelLabel",c),a.B.R(a.F,"click",function(e){return a.Gx(e)}));
b.confirmLabel&&(c=g.S(b.confirmLabel),a.xa("confirmLabel",c),a.B.R(a.X,"click",function(e){return a.Nx(e)}));
a.B.R(a.G,"click",function(e){return a.Mx(e)})};
wO=function(a,b,c,d){vO.call(this,a,b,c,d,[],"ad-mute-confirm-dialog")};
xO=function(a,b,c,d,e){W.call(this,a,b,{I:"div",L:"ytp-ad-info-dialog-background",S:[{I:"div",L:"ytp-ad-info-dialog-container",S:[{I:"div",L:"ytp-ad-info-dialog-form",U:{role:"dialog",tabindex:"-1"},S:[{I:"div",L:"ytp-ad-info-dialog-title",Z:"{{title}}"},{I:"ul",L:"ytp-ad-info-dialog-ad-reasons"},{I:"div",L:"ytp-ad-info-dialog-message"},{I:"div",L:"ytp-ad-info-dialog-mute-container"},{I:"div",L:"ytp-ad-info-dialog-confirm-container",S:[{I:"button",L:"ytp-ad-info-dialog-confirm-button",Z:"{{confirmLabel}}"}]}]}]}]},
"ad-info-dialog",c,d);this.B=this.C=null;this.N=this.ga("ytp-ad-info-dialog-confirm-button");this.za=this.ga("ytp-ad-info-dialog-mute-container");this.ra=this.ga("ytp-ad-info-dialog-message");this.da=this.ga("ytp-ad-info-dialog-ad-reasons");this.F=this.D=null;this.ka=e;this.G=null;this.ia=!1;this.X=null;this.hide()};
Loa=function(a){(a.G&&a.G.impressionEndpoints||[]).forEach(function(b){return a.Fa.executeCommand(b,a.macros)})};
Moa=function(a,b){var c=b.content&&b.content.adFeedbackRenderer||null;c&&(a.C=new tO(a.api,a.Fa,a.layoutId,a.u),g.C(a,a.C),a.C.init(AJ("ad-feedback-dialog"),c,a.macros),a.C.fa(a.ka),a.C.subscribe("f",function(){return a.V("h")}))};
Noa=function(a,b){var c=b.content&&b.content.confirmDialogRenderer||null;c&&(a.F=new wO(a.api,a.Fa,a.layoutId,a.u),g.C(a,a.F),a.F.init(AJ("ad-mute-confirm-dialog"),c,a.macros),a.F.fa(a.ka),a.F.subscribe("g",function(){return a.V("h")}))};
Ooa=function(a){a.B&&a.B.wa("click",a.CD,a);g.$o(a.N,"click",function(){return a.CD()})};
yO=function(a,b,c,d,e,f){sO.call(this,a,b,c,d,void 0===f?!0:f,!0,["ytp-ad-info-hover-text-button"],"ad-info-hover-text-button");this.B=null;this.D=e;this.hide()};
Poa=function(a,b,c){b=b.dialog&&b.dialog.adInfoDialogRenderer||null;null==b?M(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(a.B=new xO(a.api,a.Fa,a.layoutId,a.u,a.D),g.C(a,a.B),a.B.init(AJ("ad-info-dialog"),b,c),a.B.fa(a.D),a.B.subscribe("i",function(){return a.V("k")}),a.B.subscribe("h",function(){return a.V("j")}))};
Qoa=function(a,b,c){null==a.button?M(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(b=b&&b.serviceEndpoint&&b.serviceEndpoint.adInfoDialogEndpoint||null,null==b?a.C&&g.H(a.C.element,"ytp-ad-info-hover-text-long"):(Poa(a,b,c),a.C&&g.H(a.C.element,"ytp-ad-info-hover-text-short"),a.button.wa("click",function(){a.B&&!a.B.Xa&&(a.B.show(),a.api.onAdUxClicked("ad-info-icon-button"))})))};
zO=function(a,b,c,d,e){e=void 0===e?null:e;this.D=a;this.Da=b;this.layoutId=d;this.B=0;this.u=new Set;this.C=Array.from(this.D.get("progress")||[]);this.C.sort(function(f,h){return(f.offsetMilliseconds||0)-(h.offsetMilliseconds||0)});
this.F={adPlacementConfig:c,KC:e}};
AO=function(){return["metadata_type_ad_placement_config"]};
CO=function(a){var b=a.Da.get();return BO(b,a.F)};
DO=function(a,b){var c=a.D.get(b)||[];Roa(a,b,c);a.u.add(b)};
EO=function(a,b){a.u.has(b)||DO(a,b)};
Roa=function(a,b,c){var d=a.Da.get();a=a.layoutId;c=void 0===c?[]:c;var e=FO(d.td.get(),a);if(e)for(b=Soa(d.eb.get(),a,b),a=BO(d,Toa(e),e),c=g.q(c),e=c.next();!e.done;e=c.next())e=e.value,e.baseUrl&&d.Ah.send(e.baseUrl,a,b,e.headers);else T("Trying to track from an unknown layout")};
GO=function(a){return Math.round(a.width)+"x"+Math.round(a.height)};
IO=function(a,b,c){c=void 0===c?HO:c;c.width<HO.width&&(c=HO);if(a.width<c.width||a.height<c.height)return{Pu:3,Hq:501,errorMessage:"ad("+GO(c)+") larger than container("+GO(a)+")."};if(c.width*c.height>a.width*a.height*.2)return{Pu:3,Hq:501,errorMessage:"ad("+GO(c)+") to container("+GO(a)+") ratio exceeds limit."};if(c.height>a.height/3-b)return{Pu:3,Hq:501,errorMessage:"ad("+GO(c)+") covers container("+GO(a)+") center."}};
Uoa=function(a,b){var c=oI(a.ua,"metadata_type_ad_placement_config");return new zO(a.Pc,b,c,a.layoutId)};
JO=function(a){return oI(a.ua,"metadata_type_invideo_overlay_ad_renderer")};
KO=function(a){return g.Q(a.T().experiments,"html5_enable_in_video_overlay_ad_in_pacf")};
LO=function(a,b,c,d){W.call(this,a,b,{I:"div",L:"ytp-ad-overlay-slot",S:[{I:"div",L:"ytp-ad-overlay-container"}]},"invideo-overlay",c,d);this.N=[];this.F=this.Ja=this.ra=null;a=this.ga("ytp-ad-overlay-container");this.ka=new jO(a,45E3,6E3,.3,.4);g.C(this,this.ka);KO(this.api)||(this.ia=new g.F(this.clear,45E3,this),g.C(this,this.ia));this.D=Voa(this);g.C(this,this.D);this.D.fa(a);this.C=Woa(this);g.C(this,this.C);this.C.fa(a);this.B=Xoa(this);g.C(this,this.B);this.B.fa(a);this.Pa=this.da=null;this.za=
!1;this.G=null;this.X=0;this.hide()};
Voa=function(a){var b=new g.wN({I:"div",L:"ytp-ad-text-overlay",S:[{I:"div",L:"ytp-ad-overlay-ad-info-button-container"},{I:"div",L:"ytp-ad-overlay-close-container",S:[{I:"button",L:"ytp-ad-overlay-close-button",S:[YN(MO)]}]},{I:"div",L:"ytp-ad-overlay-title",Z:"{{title}}"},{I:"div",L:"ytp-ad-overlay-desc",Z:"{{description}}"},{I:"div",ha:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],Z:"{{displayUrl}}"}]});a.R(b.ga("ytp-ad-overlay-title"),"click",function(c){return NO(a,b.element,c)});
a.R(b.ga("ytp-ad-overlay-link"),"click",function(c){return NO(a,b.element,c)});
a.R(b.ga("ytp-ad-overlay-close-container"),"click",a.Hx);b.hide();return b};
Woa=function(a){var b=new g.wN({I:"div",ha:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],S:[{I:"div",L:"ytp-ad-overlay-ad-info-button-container"},{I:"div",L:"ytp-ad-overlay-close-container",S:[{I:"button",L:"ytp-ad-overlay-close-button",S:[YN(MO)]}]},{I:"div",L:"ytp-ad-overlay-text-image",S:[{I:"img",U:{src:"{{imageUrl}}"}}]},{I:"div",L:"ytp-ad-overlay-title",Z:"{{title}}"},{I:"div",L:"ytp-ad-overlay-desc",Z:"{{description}}"},{I:"div",ha:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],
Z:"{{displayUrl}}"}]});a.R(b.ga("ytp-ad-overlay-title"),"click",function(c){return NO(a,b.element,c)});
a.R(b.ga("ytp-ad-overlay-link"),"click",function(c){return NO(a,b.element,c)});
a.R(b.ga("ytp-ad-overlay-close-container"),"click",a.Hx);a.R(b.ga("ytp-ad-overlay-text-image"),"click",a.yP);b.hide();return b};
Xoa=function(a){var b=new g.wN({I:"div",L:"ytp-ad-image-overlay",S:[{I:"div",L:"ytp-ad-overlay-ad-info-button-container"},{I:"div",L:"ytp-ad-overlay-close-container",S:[{I:"button",L:"ytp-ad-overlay-close-button",S:[YN(MO)]}]},{I:"div",L:"ytp-ad-overlay-image",S:[{I:"img",U:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.R(b.ga("ytp-ad-overlay-image"),"click",function(c){return NO(a,b.element,c)});
a.R(b.ga("ytp-ad-overlay-close-container"),"click",a.Hx);b.hide();return b};
OO=function(a,b){if(b){var c=b.adHoverTextButtonRenderer||null;if(null==c)M(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else{var d=g.qe("video-ads ytp-ad-module")||null;null==d?M(Error("Could not locate the root ads container element to attach the ad info dialog.")):(a.da=new g.wN({I:"div",L:"ytp-ad-overlay-ad-info-dialog-container"}),g.C(a,a.da),a.da.fa(d),d=new yO(a.api,a.Fa,a.layoutId,a.u,a.da.element,!1),g.C(a,d),d.init(AJ("ad-info-hover-text-button"),c,a.macros),a.G?
(d.fa(a.G,0),d.subscribe("k",a.xM,a),d.subscribe("j",a.kO,a),a.R(a.G,"click",a.yM),c=g.qe("ytp-ad-button",d.element),a.R(c,"click",a.eM),a.Pa=d):M(Error("Ad info button container within overlay ad was not present.")))}}else g.Bo(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))};
Yoa=function(a){return a.F&&a.F.closeButton&&a.F.closeButton.buttonRenderer&&(a=a.F.closeButton.buttonRenderer,a.serviceEndpoint)?[a.serviceEndpoint]:[]};
Zoa=function(a,b){if(PO(a,QO)||a.api.app.visibility.u)return!1;var c=yN(b.title),d=yN(b.description);if(g.rc(c)||g.rc(d))return!1;CN(a,a.D.element,b.trackingParams||null);a.D.xa("title",yN(b.title));a.D.xa("description",yN(b.description));a.D.xa("displayUrl",yN(b.displayUrl));b.navigationEndpoint&&vb(a.N,b.navigationEndpoint);a.D.show();a.ka.start();FN(a,a.D.element,!0);KO(a.api)||(a.R(a.api,"resize",function(){PO(a,QO)&&a.clear()}),a.R(a.api,"minimized",a.hO));
a.R(a.D.element,"mouseover",function(){a.X++});
return!0};
$oa=function(a,b){if(PO(a,QO)||a.api.app.visibility.u)return!1;var c=yN(b.title),d=yN(b.description);if(g.rc(c)||g.rc(d))return!1;CN(a,a.C.element,b.trackingParams||null);a.C.xa("title",yN(b.title));a.C.xa("description",yN(b.description));a.C.xa("displayUrl",yN(b.displayUrl));a.C.xa("imageUrl",zN(b.image));b.navigationEndpoint&&vb(a.N,b.navigationEndpoint);a.Ja=b.imageNavigationEndpoint||null;a.C.show();a.ka.start();FN(a,a.C.element,!0);KO(a.api)||a.R(a.api,"resize",function(){PO(a,QO)&&a.clear()});
a.R(a.C.element,"mouseover",function(){a.X++});
return!0};
apa=function(a,b){if(a.api.app.visibility.u)return!1;var c=hoa(b.image),d=c;c.width<QO.width&&(d=QO);if(0==c.width||0==c.height||PO(a,d))return!1;CN(a,a.B.element,b.trackingParams||null);a.B.xa("imageUrl",zN(b.image));a.B.xa("width",c.width);a.B.xa("height",c.height);b.navigationEndpoint&&vb(a.N,b.navigationEndpoint);d=a.B.ga("ytp-ad-image-overlay");g.lg(d,"max-width",c.width+"px");a.B.show();FN(a,a.B.element,!0);KO(a.api)||(a.ia.start(),a.R(a.api,"resize",function(){PO(a,c)&&a.clear()}));
a.R(a.B.element,"mouseover",function(){a.X++;KO(a.api)?a.api.V("aduxmouseover","invideo-overlay",a.layoutId):a.ia.stop()});
a.R(a.B.element,"mouseout",function(){KO(a.api)?a.api.V("aduxmouseout","invideo-overlay",a.layoutId):a.ia.start()});
return!0};
PO=function(a,b){var c=g.LG(a.api).getPlayerSize(),d=a.api.fi(!0,!1);return(c=IO(c,c.height-(d.height+d.top),b))?(a.ra&&c&&(d=g.Zb(a.macros),d.ERRORCODE=c.Hq.toString(),d.ERROR_MSG=c.errorMessage,a.Fa.executeCommand(a.ra,d)),!0):!1};
NO=function(a,b,c){var d=g.Zb(a.macros),e=g.Bg(b);d.AW={toString:function(){return e.width.toString()}};
d.AH={toString:function(){return e.height.toString()}};
var f=g.zg(c,b).floor();d.I_X={toString:function(){return f.x.toString()}};
d.NX={toString:function(){return f.x.toString()}};
d.I_Y={toString:function(){return f.y.toString()}};
d.NY={toString:function(){return f.y.toString()}};
d.NM={toString:function(){return a.X.toString()}};
a.N.forEach(function(h){return a.Fa.executeCommand(h,d)});
a.api.pauseVideo()};
bpa=function(a,b){var c=a.api.getRootNode();g.I(c,"ytp-ad-overlay-open",b);g.I(c,"ytp-ad-overlay-closed",!b)};
RO=function(a,b,c,d,e){$N.call(this,a,b,{I:"div",L:"ytp-ad-message-overlay",S:[{I:"div",L:"ytp-ad-message-slot"}]},"ad-message",c,d,e);var f=this;this.da=-1;this.ka=this.ga("ytp-ad-message-slot");this.D=new g.wN({I:"span",L:"ytp-ad-message-container"});this.D.fa(this.ka);g.C(this,this.D);this.C=new dO(this.api,this.Fa,this.layoutId,this.u,"ytp-ad-message-text");g.C(this,this.C);this.C.fa(this.D.element);this.N=new g.fO(this.D,400,!1,100,function(){return f.hide()});
g.C(this,this.N);this.G=0;this.X=!1;this.hide()};
cpa=function(a,b){var c=a.api.getRootNode();g.I(c,"ytp-ad-overlay-open",b);g.I(c,"ytp-ad-overlay-closed",!b)};
SO=function(a,b,c,d,e){$N.call(this,a,b,{I:"div",L:"ytp-ad-skip-ad-slot"},"skip-ad",c,d,e);this.N=!1;this.G=0;this.D=this.C=null;this.hide()};
TO=function(a,b){if(!a.N)if(a.N=!0,a.C&&(b?a.C.X.hide():a.C.hide()),b){var c=a.D;c.ka.show();c.show()}else a.D.show()};
UO=function(a,b,c,d,e){W.call(this,a,b,{I:"div",L:"ytp-ad-persisting-overlay",S:[{I:"div",L:"ytp-ad-persisting-overlay-skip"}]},"persisting-overlay",c,d);this.C=this.ga("ytp-ad-persisting-overlay-skip");this.B=e;g.C(this,this.B);this.hide()};
g.VO=function(a,b){var c=Math.abs(Math.floor(a)),d=Math.floor(c/86400),e=Math.floor(c%86400/3600),f=Math.floor(c%3600/60);c=Math.floor(c%60);if(b){var h="";0<d&&(h+=" "+d+" \u65e5");if(0<d||0<e)h+=" "+e+" \u6642\u9593";d=(h+(" "+f+" \u5206 ")+(c+" \u79d2")).trim()}else{h="";0<d&&(h+=d+":",10>e&&(h+="0"));if(0<d||0<e)h+=e+":",10>f&&(h+="0");h+=f+":";10>c&&(h+="0");d=h+c}return 0<=a?d:"-"+d};
g.WO=function(a){return(!("button"in a)||"number"!==typeof a.button||0===a.button)&&!("shiftKey"in a&&a.shiftKey)&&!("altKey"in a&&a.altKey)&&!("metaKey"in a&&a.metaKey)&&!("ctrlKey"in a&&a.ctrlKey)};
XO=function(a,b,c,d,e,f){$N.call(this,a,b,{I:"span",L:"ytp-ad-duration-remaining"},"ad-duration-remaining",c,d,e);this.C=null;this.D=f;this.hide()};
YO=function(a,b,c,d){dO.call(this,a,b,c,d,"ytp-video-ad-top-bar-title","ad-title")};
ZO=function(a,b,c,d,e){$N.call(this,a,b,{I:"div",ha:["ytp-flyout-cta","ytp-flyout-cta-inactive"],S:[{I:"div",L:"ytp-flyout-cta-icon-container"},{I:"div",L:"ytp-flyout-cta-body",S:[{I:"div",L:"ytp-flyout-cta-text-container",S:[{I:"div",L:"ytp-flyout-cta-headline-container"},{I:"div",L:"ytp-flyout-cta-description-container"}]},{I:"div",L:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",c,d,e);this.D=new HN(this.api,this.Fa,this.layoutId,this.u,"ytp-flyout-cta-icon");g.C(this,this.D);this.D.fa(this.ga("ytp-flyout-cta-icon-container"));
this.N=new dO(this.api,this.Fa,this.layoutId,this.u,"ytp-flyout-cta-headline");g.C(this,this.N);this.N.fa(this.ga("ytp-flyout-cta-headline-container"));this.G=new dO(this.api,this.Fa,this.layoutId,this.u,"ytp-flyout-cta-description");g.C(this,this.G);this.G.fa(this.ga("ytp-flyout-cta-description-container"));this.C=new ZN(this.api,this.Fa,this.layoutId,this.u,["ytp-flyout-cta-action-button"]);g.C(this,this.C);this.C.fa(this.ga("ytp-flyout-cta-action-button-container"));this.X=null;this.da=0;this.hide()};
$O=function(a,b,c,d,e,f){e=void 0===e?[]:e;f=void 0===f?"toggle-button":f;var h=AJ("ytp-ad-toggle-button-input");W.call(this,a,b,{I:"div",ha:["ytp-ad-toggle-button"].concat(e),S:[{I:"label",L:"ytp-ad-toggle-button-label",U:{"for":h},S:[{I:"span",L:"ytp-ad-toggle-button-icon",U:{role:"button","aria-label":"{{tooltipText}}"},S:[{I:"span",L:"ytp-ad-toggle-button-untoggled-icon",Z:"{{untoggledIconTemplateSpec}}"},{I:"span",L:"ytp-ad-toggle-button-toggled-icon",Z:"{{toggledIconTemplateSpec}}"}]},{I:"input",
L:"ytp-ad-toggle-button-input",U:{id:h,type:"checkbox"}},{I:"span",L:"ytp-ad-toggle-button-text",Z:"{{buttonText}}"},{I:"span",L:"ytp-ad-toggle-button-tooltip",Z:"{{tooltipText}}"}]}]},f,c,d);this.D=this.ga("ytp-ad-toggle-button");this.B=this.ga("ytp-ad-toggle-button-input");this.ga("ytp-ad-toggle-button-label");this.X=this.ga("ytp-ad-toggle-button-icon");this.G=this.ga("ytp-ad-toggle-button-untoggled-icon");this.F=this.ga("ytp-ad-toggle-button-toggled-icon");this.da=this.ga("ytp-ad-toggle-button-text");
this.C=null;this.N=!1;this.hide()};
aP=function(a){a.N&&(a.isToggled()?(g.Cg(a.G,!1),g.Cg(a.F,!0)):(g.Cg(a.G,!0),g.Cg(a.F,!1)))};
dpa=function(a,b){var c=null;a.C&&(c=(b?[a.C.defaultServiceEndpoint,a.C.defaultNavigationEndpoint]:[a.C.toggledServiceEndpoint]).filter(function(d){return null!=d}));
return c||[]};
bP=function(a,b,c,d,e){W.call(this,a,b,{I:"div",L:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",c,d,void 0===e?null:e);var f=this;this.B=null;this.D=new $O(this.api,this.Fa,this.layoutId,this.u,["ytp-ad-instream-user-sentiment-like-button"]);g.C(this,this.D);this.D.fa(this.element);this.C=new $O(this.api,this.Fa,this.layoutId,this.u,["ytp-ad-instream-user-sentiment-dislike-button"]);g.C(this,this.C);this.C.fa(this.element);this.F=new g.fO(this,400,!1,500,function(){return f.hide()});
g.C(this,this.F);this.hide()};
epa=function(a,b){a.D.init(AJ("toggle-button"),a.B.likeButton.toggleButtonRenderer,b);a.C.init(AJ("toggle-button"),a.B.dislikeButton.toggleButtonRenderer,b);a.R(a.element,"change",a.AD)};
cP=function(a,b,c,d){ZN.call(this,a,b,c,d,["ytp-ad-visit-advertiser-button"],"visit-advertiser")};
dP=function(a,b,c,d,e){e=void 0===e?!1:e;W.call(this,a,b,{I:"span",L:"ytp-ad-simple-ad-badge"},"simple-ad-badge",c,d);this.B=e;this.hide()};
eP=function(a,b){this.B=a;this.u=b};
fP=function(a,b){return a.B+b*a.getLength()};
gP=function(a,b,c){if(!a.getLength())return null!=c?c:Infinity;a=(b-a.B)/a.getLength();return g.$d(a,0,1)};
hP=function(a,b){g.wN.call(this,{I:"div",L:"ytp-ad-persistent-progress-bar-container",S:[{I:"div",L:"ytp-ad-persistent-progress-bar"}]});this.C=a;this.B=b;g.C(this,this.B);this.G=this.ga("ytp-ad-persistent-progress-bar");this.u=-1;this.R(a,"presentingplayerstatechange",this.F);this.hide();this.F()};
iP=function(a,b,c,d,e){W.call(this,a,b,{I:"div",L:"ytp-ad-player-overlay",S:[{I:"div",L:"ytp-ad-player-overlay-flyout-cta"},{I:"div",L:"ytp-ad-player-overlay-instream-info"},{I:"div",L:"ytp-ad-player-overlay-skip-or-preview"},{I:"div",L:"ytp-ad-player-overlay-progress-bar"},{I:"div",L:"ytp-ad-player-overlay-instream-user-sentiment"}]},"player-overlay",c,d);this.G=this.ga("ytp-ad-player-overlay-flyout-cta");this.C=this.ga("ytp-ad-player-overlay-instream-info");this.D=null;fpa(this)&&(a=g.De("div"),
g.H(a,"ytp-ad-player-overlay-top-bar-gradients"),b=this.C,b.parentNode&&b.parentNode.insertBefore(a,b),(b=this.api.getVideoData(2))&&b.isListed&&b.title&&(c=new YO(this.api,this.Fa,this.layoutId,this.u),c.fa(a),c.init(AJ("ad-title"),{text:b.title},this.macros),g.C(this,c)),this.D=a);this.F=this.ga("ytp-ad-player-overlay-skip-or-preview");this.X=this.ga("ytp-ad-player-overlay-progress-bar");this.N=this.ga("ytp-ad-player-overlay-instream-user-sentiment");this.B=e;g.C(this,this.B);this.hide()};
fpa=function(a){a=a.api.T();return hD(a)&&a.u};
jP=function(a,b,c,d){W.call(this,a,b,{I:"div",L:"ytp-ad-survey-answer"},"survey-answer",c,d);this.C=this.ga("ytp-ad-survey-answer");this.B=null;this.D="";this.hide()};
kP=function(a,b,c,d){W.call(this,a,b,{I:"div",L:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above",c,d);this.C=this.ga("ytp-ad-survey-none-of-the-above");this.B=null;this.hide()};
lP=function(a,b,c,d){ZN.call(this,a,b,c,d,["ytp-ad-survey-submit-button"],"survey-submit")};
mP=function(a,b,c,d,e){W.call(this,a,b,{I:"div",L:"ytp-ad-survey-player-overlay",S:[{I:"div",L:"ytp-ad-survey-player-overlay-instream-info"},{I:"div",L:"ytp-ad-survey-player-overlay-skip-preview-submit",S:[{I:"div",L:"ytp-ad-survey-player-overlay-skip-or-preview"},{I:"div",L:"ytp-ad-survey-player-overlay-submit"}]},{I:"div",L:"ytp-ad-survey-player-overlay-instream-user-sentiment"}]},"survey-player-overlay",c,d);this.G=this.ga("ytp-ad-survey-player-overlay-instream-info");this.C={};this.N=this.ga("ytp-ad-survey-player-overlay-skip-or-preview");
this.B=null;this.X=this.ga("ytp-ad-survey-player-overlay-submit");this.D=null;this.F=e;g.C(this,this.F);this.hide()};
nP=function(a,b,c,d,e){W.call(this,a,b,{I:"div",L:"ytp-ad-survey-question",S:[{I:"div",ha:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{I:"div",ha:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{I:"div",ha:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{I:"div",L:"ytp-ad-survey-question-background"}]},e,c,d);this.question=this.ga("ytp-ad-survey-question");this.ka=this.ga("ytp-ad-survey-question-background");this.da=this.ga("ytp-ad-survey-question-text");
this.answers=this.ga("ytp-ad-survey-answers");this.X=this.ga("ytp-ad-survey-question-player-overlay");this.G=null;this.D=[];this.B=null;this.F=g.A()};
gpa=function(a,b,c){var d=new jP(a.api,a.Fa,a.layoutId,a.u);d.fa(a.answers);d.init(AJ("survey-answer"),b,c);a.D.push(d)};
ipa=function(a,b){if(b){var c=b.background;c&&c.instreamSurveyAdBackgroundImageRenderer&&(c=(c=c.instreamSurveyAdBackgroundImageRenderer.image)&&GN(c)||"",g.rc(c)?g.Bo(Error("Found ThumbnailDetails without valid image URL")):g.lg(a.ka,"backgroundImage","url("+c+")"));hpa(a,b)}else M(Error("addCommonComponents() needs to be called before starting countdown."))};
hpa=function(a,b){if(null==b.durationMilliseconds||void 0==b.durationMilliseconds||0==b.durationMilliseconds)M(Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(b)));else{a.F=g.A();a.B=new lO(b.durationMilliseconds,a.Fa);g.C(a,a.B);if(b.timeoutCommands){var c=b.timeoutCommands;a.B.subscribe("a",function(){c.forEach(function(e){return a.Fa.executeCommand(e,a.macros)})})}if(a.B&&b.instreamAdPlayerOverlay&&b.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer)try{var d=
new mP(a.api,a.Fa,a.layoutId,a.u,a.B);
d.fa(a.X);d.init(AJ("survey-player-overlay"),b.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer,a.macros);a.G=d;g.C(a,d);a.AF()}catch(e){M(Error("ISAPOR had an error when initializing. Error: "+(e+" SurveyAdQuestionCommon: "+JSON.stringify(b))))}else M(Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+JSON.stringify(b)));a.B&&b.durationMilliseconds&&0<b.durationMilliseconds?(d=new hP(a.api,a.B),d.fa(a.X),g.C(a,d)):M(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+
JSON.stringify(b)))}};
jpa=function(a){function b(c){return{toString:function(){return c()}}}
a.macros.SURVEY_LOCAL_TIME_EPOCH_S=b(function(){var c=new Date;return Math.round(c.valueOf()/1E3)+-60*c.getTimezoneOffset()});
a.macros.SURVEY_ELAPSED_MS=b(function(){return g.A()-a.F})};
oP=function(a,b,c,d){nP.call(this,a,b,c,d,"survey-question-multi-select");this.C=null;this.ia=[];this.N=null;this.hide()};
kpa=function(a,b,c){a.C=new kP(a.api,a.Fa,a.layoutId,a.u);a.C.fa(a.answers);a.C.init(AJ("survey-none-of-the-above"),b,c)};
lpa=function(a){a.D.forEach(function(b){b.B.toggleButton(!1)});
pP(a,!0)};
pP=function(a,b){var c=a.G,d=mpa(a),e=b;e=void 0===e?!1:e;c.B&&(d?c.B.hide():c.B.show(),e&&c.B instanceof SO&&!c.B.N&&TO(c.B,!1));c.D&&(d?c.D.show():c.D.hide())};
mpa=function(a){return a.D.some(function(b){return b.B.isToggled()})||a.C.B.isToggled()};
qP=function(a,b,c,d){nP.call(this,a,b,c,d,"survey-question-single-select");this.hide()};
rP=function(a,b,c,d){W.call(this,a,b,{I:"div",L:"ytp-ad-survey",S:[{I:"div",L:"ytp-ad-survey-questions"}]},"survey",c,d);this.B=this.ga("ytp-ad-survey-questions");this.C=[];this.hide()};
sP=function(a,b,c,d){W.call(this,a,b,{I:"div",L:"ytp-ad-survey-interstitial",S:[{I:"div",L:"ytp-ad-survey-interstitial-contents",S:[{I:"div",L:"ytp-ad-survey-interstitial-logo",S:[{I:"div",L:"ytp-ad-survey-interstitial-logo-image"}]},{I:"div",L:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",c,d);this.F=this.ga("ytp-ad-survey-interstitial");this.G=this.ga("ytp-ad-survey-interstitial-contents");this.B=null;this.X=this.ga("ytp-ad-survey-interstitial-text");this.N=this.ga("ytp-ad-survey-interstitial-logo-image");
this.D=null;this.C=new g.fO(this,500,!1,300);g.C(this,this.C)};
npa=function(a,b,c){c=c.dismissCommands;var d=b.target==a.F;b=a.B.element.contains(b.target);if(d||b)a.C.hide(),d&&c.forEach(function(e){return a.Fa.executeCommand(e,a.macros)})};
opa=function(a,b){var c=b&&GN(b)||"";if(g.rc(c))g.Bo(Error("Found ThumbnailDetails without valid image URL"));else{var d=a.style.cssText;if(g.ve&&10>document.documentMode)d=Rc;else{var e=document;"function"===typeof HTMLTemplateElement&&(e=g.Ee("TEMPLATE").content.ownerDocument);e=e.implementation.createHTMLDocument("").createElement("DIV");e.style.cssText=d;d=Eda(e.style)}c=Daa(d,Sc({"background-image":'url("'+c+'")'}));a.style.cssText=Oc(c)}};
ppa=function(a){var b=g.qe("html5-video-player");b&&g.I(b,"ytp-ad-display-override",a)};
tP=function(a,b){b=void 0===b?2:b;g.O.call(this);this.u=a;this.B=new os(this);g.C(this,this.B);this.F=qpa;this.D=null;this.B.R(this.u,"presentingplayerstatechange",this.aM);this.D=this.B.R(this.u,"progresssync",this.yD);this.C=b;1===this.C&&this.yD()};
vP=function(a,b){jN.call(this,a);this.D=a;this.K=b;this.B={};var c=new g.V({I:"div",ha:["video-ads","ytp-ad-module"]});g.C(this,c);DC&&g.H(c.element,"ytp-ads-tiny-mode");this.F=new nN(c.element);g.C(this,this.F);g.uP(this.D,c.element,4);g.C(this,Doa())};
rpa=function(a,b){var c=a.B;var d=b.id;c=null!==c&&d in c?c[d]:null;null==c&&g.Bo(Error("Component not found for element id: "+b.id));return c||null};
wP=function(){};
xP=function(a){this.controller=a};
yP=function(a){this.Co=a};
zP=function(a){this.Co=a};
AP=function(a,b,c){this.Co=a;this.dg=b;this.uh=c};
tpa=function(a,b,c){var d=a.Co();switch(b.type){case "SKIP":b=!1;for(var e=g.q(a.dg.u.entries()),f=e.next();!f.done;f=e.next()){f=g.q(f.value);var h=f.next().value;f.next();"SLOT_TYPE_PLAYER_BYTES"===h.Wa&&"core"===h.Za&&(b=!0)}b?(c=spa(a,c))?a.uh.gp(c):T("No triggering layout ID available when attempting to mute."):g.rm(function(){d.xp()})}};
spa=function(a,b){if(b)return b;for(var c=g.q(a.dg.u.entries()),d=c.next();!d.done;d=c.next()){var e=g.q(d.value);d=e.next().value;e=e.next().value;if("SLOT_TYPE_IN_PLAYER"===d.Wa&&"core"===d.Za)return e.layoutId}};
BP=function(){};
CP=function(){};
DP=function(a,b){this.oo=a;this.Da=b};
EP=function(a){this.J=a};
FP=function(a,b){this.Ah=a;this.Da=b};
vpa=function(a){g.B.call(this);this.u=a;this.B=upa(this)};
upa=function(a){var b=new DM;g.C(a,b);a=g.q([new xP(a.u.ZH),new DP(a.u.oo,a.u.Da),new yP(a.u.aI),new EP(a.u.J),new FP(a.u.Ah,a.u.Da),new AP(a.u.pM,a.u.dg,a.u.uh),new zP(a.u.kI),new BP,new CP,new wP]);for(var c=a.next();!c.done;c=a.next())c=c.value,Zna(b,c),$na(b,c);a=g.q(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(c=a.next();!c.done;c=a.next())AM(b,c.value,function(){});
return b};
GP=function(a,b,c){if(c&&!c.includes(a.layoutType))return!1;b=g.q(b);for(c=b.next();!c.done;c=b.next())if(!a.ua.u.has(c.value))return!1;return!0};
HP=function(a){var b=new Map;a.forEach(function(c){b.set(c.u(),c)});
this.u=b};
oI=function(a,b){var c=a.u.get(b);if(void 0!==c)return c.get()};
IP=function(a){return Array.from(a.u.keys())};
xpa=function(a){var b;return(null===(b=wpa.get(a))||void 0===b?void 0:b.wq)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
KP=function(a,b){var c={type:b.Wa,entryTriggerType:b.Tb?JP.get(b.Tb.triggerType)||"TRIGGER_TYPE_UNSPECIFIED":"TRIGGER_TYPE_UNSPECIFIED",controlFlowManagerLayer:ypa.get(b.Za)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};1!==b.feedPosition&&(c.feedPosition=b.feedPosition);if(a){c.debugData={slotId:b.slotId};var d=b.Tb;if(d){var e={type:JP.get(d.triggerType)||"TRIGGER_TYPE_UNSPECIFIED"};"trigger_type_layout_id_entered"===d.triggerType&&(e.layoutIdEnteredTriggerData={enteredLayoutId:d.C});c.debugData.slotEntryTriggerData=
e}}return c};
zpa=function(a,b){var c={type:b.layoutType,controlFlowManagerLayer:ypa.get(b.Za)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};a&&(c.debugData={layoutId:b.layoutId});return c};
Bpa=function(a,b,c,d){b={opportunityType:Apa.get(b)||"OPPORTUNITY_TYPE_UNSPECIFIED"};a&&(d||c)&&(b.debugData={slots:g.Pc(d||[],function(e){return KP(a,e)}),
associatedSlotId:c});return b};
MP=function(a,b){return function(c){return Cpa(LP(a),b.slotId,b.Wa,b.feedPosition,b.Za,b.Tb,c.layoutId,c.layoutType,c.Za)}};
Cpa=function(a,b,c,d,e,f,h,l,m){return{adClientDataEntry:{slotData:KP(a,{slotId:b,Wa:c,feedPosition:d,Za:e,Tb:f,te:[],hf:[],ua:new HP([])}),layoutData:zpa(a,{layoutId:h,layoutType:l,Za:m,Kd:[],ld:[],kd:[],Ld:[],Pc:new Map,ua:new HP([]),jd:{}})}}};
NP=function(a){this.ya=a;this.u=.1>Math.random()};
LP=function(a){return a.u||g.Q(a.ya.get().J.T().experiments,"html5_force_debug_data_for_client_tmp_logs")};
OP=function(a,b,c,d){g.B.call(this);this.B=b;this.Ab=c;this.ya=d;this.u=a(this,this,this,this,this);g.C(this,this.u);a=g.q(b);for(b=a.next();!b.done;b=a.next())g.C(this,b.value)};
PP=function(a,b){a.B.add(b);g.C(a,b)};
RP=function(a,b,c){T(c,b,void 0,void 0,c.Yk);QP(a,b,!0)};
Epa=function(a,b,c){if(SP(a.u,b))if(TP(a.u,b).D=c?"filled":"not_filled",null===c){UP(a.Ab,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",b);c=g.q(a.B);for(var d=c.next();!d.done;d=c.next())d.value.Ei(b);QP(a,b,!1)}else{UP(a.Ab,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",b,c);var e=g.q(a.B);for(d=e.next();!d.done;d=e.next())d.value.Fi(b);if(TP(a.u,b).F)QP(a,b,!1);else{UP(a.Ab,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",b,c);try{var f=a.u;if(!TP(f,b))throw new VP("Unknown slotState for onLayout");
if(!f.Mc.tj.get(b.Wa))throw new VP("No LayoutRenderingAdapterFactory registered for slot of type: "+b.Wa);if(g.ob(c.Kd)&&g.ob(c.ld)&&g.ob(c.kd)&&g.ob(c.Ld))throw new VP("Layout has no exit triggers.");WP(f,0,c.Kd);WP(f,1,c.ld);WP(f,2,c.kd);WP(f,6,c.Ld)}catch(n){XP(a,b,c,n);QP(a,b,!0);return}a.u.Fm(b);try{var h=a.u,l=TP(h,b),m=h.Mc.tj.get(b.Wa).get().u(h.D,h.B,b,c);m.init();l.layout=c;if(l.C)throw new VP("Already had LayoutRenderingAdapter registered for slot");l.C=m;YP(h,l,0,c.Kd);YP(h,l,1,c.ld);
YP(h,l,2,c.kd);YP(h,l,6,c.Ld)}catch(n){ZP(a,b);QP(a,b,!0);XP(a,b,c,n);return}UP(a.Ab,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);e=g.q(a.B);for(d=e.next();!d.done;d=e.next())d.value.yh(b,c);ZP(a,b);Dpa(a,b)}}};
Fpa=function(a,b,c){UP(a.Ab,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);a=g.q(a.B);for(var d=a.next();!d.done;d=a.next())d.value.yh(b,c)};
Gpa=function(a,b){jK(a.Ab,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",b);SP(a.u,b)&&(TP(a.u,b).D="fill_canceled",QP(a,b,!1))};
Hpa=function(a,b,c){UP(a.Ab,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",b,c);a=g.q(a.B);for(var d=a.next();!d.done;d=a.next())d.value.Md(b,c)};
ZK=function(a,b,c,d){UP(a.Ab,xpa(d),b,c);a=g.q(a.B);for(var e=a.next();!e.done;e=a.next())e.value.Xd(b,c,d)};
XP=function(a,b,c,d){T(d,b,c,void 0,d.Yk);QP(a,b,!0)};
ZP=function(a,b){if(SP(a.u,b)){TP(a.u,b).Fm=!1;var c=$P,d=TP(a.u,b),e=[].concat(g.la(d.K));pb(d.K);c(a,e)}};
$P=function(a,b){b.sort(function(h,l){return h.category===l.category?h.trigger.triggerId.localeCompare(l.trigger.triggerId):h.category-l.category});
for(var c=new Map,d=g.q(b),e=d.next();!e.done;e=d.next())if(e=e.value,SP(a.u,e.slot))if(TP(a.u,e.slot).Fm)TP(a.u,e.slot).K.push(e);else{Ipa(a.Ab,e.slot,e,e.layout);var f=c.get(e.category);f||(f=[]);f.push(e);c.set(e.category,f)}d=g.q(Jpa.entries());for(e=d.next();!e.done;e=d.next())f=g.q(e.value),e=f.next().value,f=f.next().value,(e=c.get(e))&&Kpa(a,e,f);(d=c.get(3))&&Lpa(a,d);(d=c.get(4))&&Mpa(a,d);(c=c.get(5))&&Npa(a,c)};
Kpa=function(a,b,c){b=g.q(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.layout&&aQ(a.u,d.slot)&&Opa(a,d.slot,d.layout,c)};
Lpa=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next())QP(a,d.value.slot,!1)};
Mpa=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){d=d.value;a:switch(TP(a.u,d.slot).D){case "not_filled":var e=!0;break a;default:e=!1}e&&(jK(a.Ab,"ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",d.slot),a.u.Po(d.slot))}};
Npa=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){d=d.value;jK(a.Ab,"ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",d.slot);for(var e=g.q(a.B),f=e.next();!f.done;f=e.next())f.value.zh(d.slot);try{var h=a.u,l=d.slot,m=TP(h,l);if(!m)throw new cI("Got enter request for unknown slot");if(!m.B)throw new cI("Tried to enter slot with no assigned slotAdapter");if("scheduled"!==m.u)throw new cI("Tried to enter a slot from stage: "+m.u);if(bQ(m))throw new cI("Got enter request for already active slot");
for(var n=g.q(cQ(h,l.Wa+"_"+l.feedPosition).values()),p=n.next();!p.done;p=n.next()){var r=p.value;if(m!==r&&bQ(r)){e=void 0;var t=h;f=r;var w=l,x=dQ(t.oa.get(),1,!1),y=oH(t.Ba.get(),1),D=lI(f.layout),E=f.slot.Tb,G=Ppa(t,E),L=mI(E,G),J=w.ua.u.has("metadata_type_fulfilled_layout")?lI(oI(w.ua,"metadata_type_fulfilled_layout")):"unknown",Ha=w.Tb,pa=Ppa(t,Ha),Xa=mI(Ha,pa);t=G;w=pa;if(t&&w){if(t.start>w.start){var Lb=g.q([w,t]);t=Lb.next().value;w=Lb.next().value}e=t.end>w.start}else e=!1;throw new cI("Trying to enter a slot when a slot of same type is already active.",
{details:x+" |"+(L+" |"+Xa),activeSlotStatus:f.u,activeLayout:D?D:"empty",enteringLayout:J,hasOverlap:String(e),contentCpn:y.clientPlaybackNonce,contentVideoId:y.videoId,isAutonav:String(y.ni),isAutoplay:String(y.Bh)});}}}catch(eb){T(eb,d.slot,eQ(a.u,d.slot),void 0,eb.Yk);QP(a,d.slot,!0);continue}d=TP(a.u,d.slot);"scheduled"!==d.u&&fQ(d.slot,d.u,"enterSlot");d.u="enter_requested";d.B.Tv()}};
Dpa=function(a,b){var c;if(SP(a.u,b)&&bQ(TP(a.u,b))&&eQ(a.u,b)&&!aQ(a.u,b)){UP(a.Ab,"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",b,null!==(c=eQ(a.u,b))&&void 0!==c?c:void 0);var d=TP(a.u,b);"entered"!==d.u&&fQ(d.slot,d.u,"enterLayoutForSlot");d.u="rendering";d.C.startRendering(d.layout)}};
Opa=function(a,b,c,d){if(SP(a.u,b)){var e=a.Ab,f;var h=(null===(f=wpa.get(d))||void 0===f?void 0:f.fq)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";UP(e,h,b,c);a=TP(a.u,b);"rendering"!==a.u&&fQ(a.slot,a.u,"exitLayout");a.u="rendering_stop_requested";a.C.Tk(c,d)}};
QP=function(a,b,c){if(SP(a.u,b)){if(a.u.ex(b)||a.u.Zw(b))if(TP(a.u,b).F=!0,!c)return;if(bQ(TP(a.u,b)))TP(a.u,b).F=!0,Qpa(a,b,c);else if(a.u.fx(b))TP(a.u,b).F=!0,SP(a.u,b)&&(jK(a.Ab,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",b),b=TP(a.u,b),b.D="fill_cancel_requested",b.G.u());else{c=eQ(a.u,b);jK(a.Ab,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",b);var d=TP(a.u,b),e=b.Tb,f=d.X.get(e.triggerId);f&&(f.Mg(e),d.X["delete"](e.triggerId));e=g.q(b.te);for(f=e.next();!f.done;f=e.next()){f=
f.value;var h=d.N.get(f.triggerId);h&&(h.Mg(f),d.N["delete"](f.triggerId))}e=g.q(b.hf);for(f=e.next();!f.done;f=e.next())if(f=f.value,h=d.P.get(f.triggerId))h.Mg(f),d.P["delete"](f.triggerId);null!=d.layout&&(e=d.layout,gQ(d,e.Kd),gQ(d,e.ld),gQ(d,e.kd),gQ(d,e.Ld));d.G=void 0;null!=d.B&&(d.B.release(),d.B=void 0);null!=d.C&&(d.C.release(),d.C=void 0);d=a.u;TP(d,b)&&(d=cQ(d,b.Wa+"_"+b.feedPosition))&&d["delete"](b.slotId);jK(a.Ab,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",b);a=g.q(a.B);for(d=a.next();!d.done;d=
a.next())d=d.value,d.Gi(b),c&&d.Ci(b,c)}}};
Qpa=function(a,b,c){if(SP(a.u,b)&&bQ(TP(a.u,b))){var d=eQ(a.u,b);if(d&&aQ(a.u,b))Opa(a,b,d,c?"error":"abandoned");else{jK(a.Ab,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",b);try{var e=TP(a.u,b);if(!e)throw new cI("Cannot exit slot it is unregistered");"enter_requested"!==e.u&&"entered"!==e.u&&"rendering"!==e.u&&fQ(e.slot,e.u,"exitSlot");e.u="exit_requested";if(void 0===e.B)throw e.u="scheduled",new cI("Cannot exit slot because adapter is not defined");e.B.Yv()}catch(f){T(f,b,void 0,void 0,f.Yk)}}}};
hQ=function(a){this.slot=a;this.X=new Map;this.N=new Map;this.P=new Map;this.W=new Map;this.C=this.layout=this.B=this.G=void 0;this.Fm=this.F=!1;this.K=[];this.u="not_scheduled";this.D="not_filled"};
bQ=function(a){return"enter_requested"===a.u||a.isActive()};
VP=function(a,b,c){c=void 0===c?!1:c;$a.call(this,a);this.Yk=c;this.args=[];b&&this.args.push(b)};
iQ=function(a,b,c,d,e,f,h,l){g.B.call(this);this.Mc=a;this.C=b;this.F=c;this.D=d;this.B=e;this.Bb=f;this.oa=h;this.Ba=l;this.u=new Map};
cQ=function(a,b){var c=a.u.get(b);return c?c:new Map};
TP=function(a,b){return cQ(a,b.Wa+"_"+b.feedPosition).get(b.slotId)};
Rpa=function(a){var b=[];a.u.forEach(function(c){c=g.q(c.values());for(var d=c.next();!d.done;d=c.next())b.push(d.value.slot)});
return b};
Ppa=function(a,b){if(b instanceof kI)return b.C;if(b instanceof jI){var c=FO(a.Bb.get(),b.C);if(c=null===c||void 0===c?void 0:oI(c.ua,"metadata_type_ad_placement_config"))return c=dI(c,0x7ffffffffffff),c instanceof cI?void 0:c.Hg}};
SP=function(a,b){return null!=TP(a,b)};
aQ=function(a,b){var c=TP(a,b),d;if(d=null!=c.layout)a:switch(c.u){case "rendering":case "rendering_stop_requested":d=!0;break a;default:d=!1}return d};
eQ=function(a,b){var c=TP(a,b);return null!=c.layout?c.layout:null};
jQ=function(a,b,c){if(g.ob(c))throw new cI("No "+Spa.get(b)+" triggers found for slot.");c=g.q(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.Mc.mg.get(d.triggerType))throw new cI("No trigger adapter registered for "+b+" trigger of type: "+d.triggerType);};
WP=function(a,b,c){c=g.q(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.Mc.mg.get(d.triggerType))throw new VP("No trigger adapter registered for "+Spa.get(b)+" trigger of type: "+d.triggerType);};
YP=function(a,b,c,d){d=g.q(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=a.Mc.mg.get(e.triggerType);f.Jg(c,e,b.slot,b.layout?b.layout:null);b.W.set(e.triggerId,f)}};
gQ=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=a.W.get(d.triggerId);e&&(e.Mg(d),a.W["delete"](d.triggerId))}};
fQ=function(a,b,c){T("Slot stage was "+b+" when calling method "+c,a)};
Tpa=function(a){return kQ(a.em).concat(kQ(a.mg)).concat(kQ(a.hj)).concat(kQ(a.Ij)).concat(kQ(a.tj))};
kQ=function(a){var b=[];a=g.q(a.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.mi&&b.push(c);return b};
Vpa=function(a){g.B.call(this);this.u=a;this.B=Upa(this)};
Upa=function(a){var b=new OP(function(c,d,e,f){return new iQ(a.u.Mc,c,d,e,f,a.u.Bb,a.u.oa,a.u.Ba)},new Set(Tpa(a.u.Mc).concat(a.u.listeners)),a.u.Ab,a.u.ya);
g.C(a,b);return b};
lQ=function(a){g.B.call(this);var b=this;this.B=a;this.u=null;g.$f(this,function(){g.ag(b.u);b.u=null})};
X=function(a){return new lQ(a)};
Zpa=function(a,b,c,d,e){b=g.q(b);for(var f=b.next();!f.done;f=b.next())f=f.value,mQ(a,f.renderer,f.config.adPlacementConfig.kind);f=Array.from(a.values()).filter(function(n){return Wpa(n)});
a=[];b={};f=g.q(f);for(var h=f.next();!h.done;b={ym:b.ym},h=f.next()){b.ym=h.value;h={};for(var l=g.q(b.ym.bv),m=l.next();!m.done;h={Oj:h.Oj},m=l.next())h.Oj=m.value,m=function(n,p){return function(r){return n.Oj.OA(r,p.ym.adVideoId,p.ym.instreamVideoAdRenderer.elementId,n.Oj.eA)}}(h,b),"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===h.Oj.Dm?a.push(Xpa(c,d,h.Oj.fA,e,h.Oj.adSlotLoggingData,m)):a.push(Ypa(c,d,e,b.ym.instreamVideoAdRenderer.elementId,h.Oj.adSlotLoggingData,m))}return a};
mQ=function(a,b,c){if(b=$pa(b)){b=g.q(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.externalVideoId){var e=aqa(a,d.externalVideoId);e.instreamVideoAdRenderer||(e.instreamVideoAdRenderer=d,e.Cs=c)}else T("InstreamVideoAdRenderer without externalVideoId")}};
$pa=function(a){var b=[],c=a.sandwichedLinearAdRenderer&&a.sandwichedLinearAdRenderer.linearAd&&a.sandwichedLinearAdRenderer.linearAd.instreamVideoAdRenderer;if(c)return b.push(c),b;if(a.instreamVideoAdRenderer)return b.push(a.instreamVideoAdRenderer),b;if(a.linearAdSequenceRenderer&&a.linearAdSequenceRenderer.linearAds){a=g.q(a.linearAdSequenceRenderer.linearAds);for(c=a.next();!c.done;c=a.next())c=c.value,c.instreamVideoAdRenderer&&b.push(c.instreamVideoAdRenderer);return b}return null};
Wpa=function(a){if(void 0===a.instreamVideoAdRenderer)return T("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var b=g.q(a.bv),c=b.next();!c.done;c=b.next()){c=c.value;if(void 0===c.OA)return!1;if(void 0===c.eA)return T("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(void 0===a.Cs||void 0===c.Dm||a.Cs!==c.Dm&&"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"!==c.Dm)return!1;if(void 0===a.instreamVideoAdRenderer.elementId)return T("InstreamVideoAdRenderer has no elementId",
void 0,void 0,{kind:a.Cs,"matching APSR kind":c.Dm}),!1;if("AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===c.Dm&&void 0===c.fA)return T("Command Triggered AdPlacementSupportedRenderer's AdPlacementRenderer does not have an element ID"),!1}return!0};
aqa=function(a,b){a.has(b)||a.set(b,{instreamVideoAdRenderer:void 0,Cs:void 0,adVideoId:b,bv:[]});return a.get(b)};
nQ=function(a,b,c,d,e,f,h){d?aqa(a,d).bv.push({fA:b,Dm:c,eA:e,adSlotLoggingData:f,OA:h}):T("Companion AdPlacementSupportedRenderer without adVideoId")};
dqa=function(a,b,c,d,e,f,h){if(!bqa(a))return new cI("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:a});var l=a.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[cqa(f,b,c,d,function(m){var n=h(m);m=m.slotId;m=oQ(e.Ra.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",m);var p={layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Za:"core"},r=new pQ(e.u,d);return{layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Pc:new Map,Kd:[r],ld:[],
kd:[],Ld:[],Za:"core",ua:new HP([new FH(l)]),jd:n(p)}})]};
bqa=function(a){a=((null===a||void 0===a?void 0:a.additionalPlayerOverlay)||{}).slidingTextPlayerOverlayRenderer;if(!a)return!1;var b=a.slidingMessages;return a.title&&b&&0!==b.length?!0:!1};
iqa=function(a,b,c,d,e){var f;if(null===(f=a.playerOverlay)||void 0===f||!f.instreamSurveyAdRenderer)return function(){return[]};
if(!eqa(a))return function(){return new cI("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:a})};
var h=a.playerOverlay.instreamSurveyAdRenderer,l=fqa(h);return 0>=l?function(){return new cI("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:h})}:function(m,n){var p=gqa(m,c,d,function(t){var w=n(t);
t=t.slotId;t=oQ(e.Ra.get(),"LAYOUT_TYPE_SURVEY",t);var x={layoutId:t,layoutType:"LAYOUT_TYPE_SURVEY",Za:"core"},y=new pQ(e.u,d),D=new qQ(e.u,t),E=new rQ(e.u,t),G=new hqa(e.u);return{layoutId:t,layoutType:"LAYOUT_TYPE_SURVEY",Pc:new Map,Kd:[y,G],ld:[D],kd:[],Ld:[E],Za:"core",ua:new HP([new EH(h),new zH(b),new ZH(l/1E3)]),jd:w(x)}}),r=dqa(a,c,p.slotId,d,e,m,n);
return r instanceof cI?r:[p].concat(g.la(r))}};
fqa=function(a){var b=0;a=g.q(a.questions);for(var c=a.next();!c.done;c=a.next())b+=c.value.instreamSurveyAdMultiSelectQuestionRenderer.surveyAdQuestionCommon.durationMilliseconds;return b};
eqa=function(a){a=((null===a||void 0===a?void 0:a.playerOverlay)||{}).instreamSurveyAdRenderer;if(!a||!a.questions||1!==a.questions.length)return!1;a=a.questions[0].instreamSurveyAdMultiSelectQuestionRenderer;if(null===a||void 0===a||!a.surveyAdQuestionCommon)return!1;a=(a.surveyAdQuestionCommon.instreamAdPlayerOverlay||{}).instreamSurveyAdPlayerOverlayRenderer;var b=((null===a||void 0===a?void 0:a.adInfoRenderer)||{}).adHoverTextButtonRenderer;return((null===a||void 0===a?void 0:a.skipOrPreviewRenderer)||
{}).skipAdRenderer&&b?!0:!1};
lqa=function(a,b,c,d,e){var f=[];try{var h=[],l=jqa(a,d,function(t){t=kqa(t.slotId,c,b,e(t),d);h=t.XQ;return t.yI});
f.push(l);for(var m=g.q(h),n=m.next();!n.done;n=m.next()){var p=n.value,r=p(a,e);if(r instanceof cI)return r;f.push.apply(f,g.la(r))}}catch(t){return new cI(t,{errorMessage:t.message,AdPlacementRenderer:c})}return f};
kqa=function(a,b,c,d,e){var f=b.config.adPlacementConfig,h=f.adTimeOffset||{},l=h.offsetEndMilliseconds;h=Number(h.offsetStartMilliseconds);if(isNaN(h))throw new TypeError("Expected valid start offset");var m=Number(l);if(isNaN(m))throw new TypeError("Expected valid end offset");l=(b.renderer.linearAdSequenceRenderer||{}).linearAds;if(null===l||void 0===l||!l.length)throw new TypeError("Expected linear ads");var n=[],p={WF:h,XF:0,UQ:n};l=l.map(function(t){return mqa(a,t,p,c,d,f,e,m)}).map(function(t,
w){var x=new CI(w,n);
return t(x)});
var r=l.map(function(t){return t.zI});
return{yI:nqa(c,a,h,r,f,new Map([["ad_placement_start",b.placementStartPings||[]],["ad_placement_end",b.placementEndPings||[]]]),oqa(b),d,m),XQ:l.map(function(t){return t.WQ})}};
mqa=function(a,b,c,d,e,f,h,l){var m=b.instreamVideoAdRenderer;if(!m)throw new TypeError("Expected instream video ad renderer");if(!m.playerVars)throw new TypeError("Expected player vars in url encoded string");var n=Sp(m.playerVars);b=Number(n.length_seconds);if(isNaN(b))throw new TypeError("Expected valid length seconds in player vars");var p=pqa(n,m);if(!p)throw new TypeError("Expected valid video id in IVAR");var r=c.WF,t=c.XF,w=Number(m.trimmedMaxNonSkippableAdDurationMs),x=isNaN(w)?b:Math.min(b,
w/1E3),y=Math.min(r+1E3*x,l);c.WF=y;c.XF++;c.UQ.push(x);var D=m.pings?DI(m.pings):new Map;c=m.playerOverlay||{};var E=void 0===c.instreamAdPlayerOverlayRenderer?null:c.instreamAdPlayerOverlayRenderer;return function(G){2<=G.B&&(n.slot_pos=G.u);n.autoplay="1";var L=m.adLayoutLoggingData,J=m.sodarExtensionData,Ha=oQ(d.Ra.get(),"LAYOUT_TYPE_MEDIA",a),pa={layoutId:Ha,layoutType:"LAYOUT_TYPE_MEDIA",Za:"adapter"};G={layoutId:Ha,layoutType:"LAYOUT_TYPE_MEDIA",Pc:D,Kd:[],ld:[],kd:[],Ld:[],Za:"adapter",ua:new HP([new CH(h),
new MH(x),new NH(n),new PH(r),new QH(y),new RH(t),new JH({current:null}),E&&new DH(E),new zH(f),new BH(p),new AH(G),J&&new OH(J)].filter(qqa)),jd:e(pa),adLayoutLoggingData:L};L=iqa(m,f,h,G.layoutId,d);return{zI:G,WQ:L}}};
pqa=function(a,b){var c=a.video_id;if(c||(c=b.externalVideoId))return c};
oqa=function(a){a=Number(a.driftRecoveryMs);return isNaN(a)||0>=a?null:a};
sqa=function(a,b,c,d,e,f,h,l){a=rqa(a,c,f,h,d,function(m){var n=m.slotId;m=l(m);n=oQ(b.Ra.get(),"LAYOUT_TYPE_FORECASTING",n);var p={layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",Za:"core"},r=new Map,t=e.impressionUrls;t&&r.set("impression",t);return{layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",Pc:r,Kd:[new sQ(b.u,n)],ld:[],kd:[],Ld:[],Za:"core",ua:new HP([new TH(e),new zH(c)]),jd:m(p)}});
return a instanceof cI?a:[a]};
uqa=function(a,b,c,d,e,f,h,l){a=tqa(a,c,f,h,d,function(m,n){var p=m.slotId,r=l(m),t=e.contentSupportedRenderer;t?t.textOverlayAdContentRenderer?(t=oQ(b.Ra.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",p),r=tQ(b,t,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",e,c,r,uQ(b,n,p))):t.enhancedTextOverlayAdContentRenderer?(t=oQ(b.Ra.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",p),r=tQ(b,t,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",e,c,r,uQ(b,n,p))):t.imageOverlayAdContentRenderer?(t=oQ(b.Ra.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",
p),p=uQ(b,n,p),p.push(new vQ(b.u,t)),r=tQ(b,t,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",e,c,r,p)):r=new VP("InvideoOverlayAdRenderer without appropriate sub renderer"):r=new VP("InvideoOverlayAdRenderer without contentSupportedRenderer");return r});
return a instanceof cI?a:[a]};
vqa=function(a,b,c){if(!b.playerVars)return new cI("No playerVars available in AdIntroRenderer.");var d=Sp(b.playerVars);d.autoplay="1";return function(e){var f=e.slotId;e=c(e);f=oQ(a.Ra.get(),"LAYOUT_TYPE_MEDIA",f);var h={layoutId:f,layoutType:"LAYOUT_TYPE_MEDIA",Za:"adapter"};return{TQ:{layoutId:f,layoutType:"LAYOUT_TYPE_MEDIA",Pc:new Map,Kd:[],ld:[],kd:[],Ld:[],Za:"adapter",ua:new HP([new NH(d)]),jd:e(h)},qI:[new wQ(a.u,f)],pI:[]}}};
zqa=function(a,b,c,d,e,f,h,l,m,n,p){function r(w){var x=new CI(0,[t.Xq]),y=wqa(t.playerVars,t.vF,l,p,x);w=m(w);var D=n.get(t.Eu.externalVideoId);x=xqa(b,"core",t.Eu,c,y,t.Xq,f,x,w,D);return{layoutId:x.layoutId,layoutType:x.layoutType,Pc:x.Pc,Kd:x.Kd,ld:x.ld,kd:x.kd,Ld:x.Ld,Za:x.Za,ua:x.ua,jd:x.jd,adLayoutLoggingData:x.adLayoutLoggingData}}
var t=xQ(e);if(t instanceof VP)return new cI(t);if(r instanceof cI)return r;a=yqa(a,c,f,h,d,r);return a instanceof cI?a:[a]};
xQ=function(a){if(!a.playerVars)return new VP("No playerVars available in InstreamVideoAdRenderer.");var b;if(null==a.elementId||null==a.playerVars||null==a.playerOverlay||null==(null===(b=a.playerOverlay)||void 0===b?void 0:b.instreamAdPlayerOverlayRenderer)||null==a.pings||null==a.externalVideoId)return new VP("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:a});b=Sp(a.playerVars);var c=Number(b.length_seconds);return isNaN(c)?new VP("Expected valid length seconds in player vars"):
{Eu:a,playerVars:b,vF:a.playerVars,Xq:c}};
wqa=function(a,b,c,d,e){a.iv_load_policy=d;b=Sp(b);if(b.cta_conversion_urls)try{a.cta_conversion_urls=JSON.parse(b.cta_conversion_urls)}catch(f){T(f)}c.Pf&&(a.ctrl=c.Pf);c.Re&&(a.ytr=c.Re);c.bj&&(a.ytrcc=c.bj);c.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,c.qg&&(a.vss_credentials_token_type=c.qg),c.mdxEnvironment&&(a.mdx_environment=c.mdxEnvironment));2<=e.B&&(a.slot_pos=e.u);a.autoplay="1";return a};
Bqa=function(a,b,c,d,e,f,h,l,m,n,p){if(null==e.linearAds)return new cI("Received invalid LinearAdSequenceRenderer.");b=Aqa(b,c,e,f,l,m,n,p);if(b instanceof cI)return new cI(b);a=yqa(a,c,f,h,d,b);return a instanceof cI?a:[a]};
Aqa=function(a,b,c,d,e,f,h,l){return function(m){a:{b:{var n=[];for(var p=g.q(c.linearAds),r=p.next();!r.done;r=p.next())if(r=r.value,r.instreamVideoAdRenderer){r=xQ(r.instreamVideoAdRenderer);if(r instanceof VP){n=new cI(r);break b}n.push(r.Xq)}}if(!(n instanceof cI)){p=0;r=[];for(var t=[],w=[],x=g.q(c.linearAds),y=x.next();!y.done;y=x.next())if(y=y.value,y.adIntroRenderer){y=vqa(a,y.adIntroRenderer,f);if(y instanceof cI){n=y;break a}y=y(m);r.push(y.TQ);t=[].concat(g.la(y.qI),g.la(t));w=[].concat(g.la(y.pI),
g.la(w))}else if(y.instreamVideoAdRenderer){y=xQ(y.instreamVideoAdRenderer);if(y instanceof VP){n=new cI(y);break a}var D=new CI(p,n),E=wqa(y.playerVars,y.vF,e,l,D),G=f(m),L=h.get(y.Eu.externalVideoId);E=xqa(a,"adapter",y.Eu,b,E,y.Xq,d,D,G,L);y={layoutId:E.layoutId,layoutType:E.layoutType,Pc:E.Pc,Kd:[],ld:[],kd:[],Ld:[],Za:E.Za,ua:E.ua,jd:E.jd,adLayoutLoggingData:E.adLayoutLoggingData};D=E.ld;E=E.kd;p++;r.push(y);t=[].concat(g.la(D),g.la(t));w=[].concat(g.la(E),g.la(w))}else{n=new cI("Unsupported linearAd found in LinearAdSequenceRenderer.");
break a}n={VQ:r,ld:t,kd:w}}}r=n;r instanceof cI?m=r:(t=m.slotId,n=r.VQ,p=r.ld,r=r.kd,m=f(m),t=oQ(a.Ra.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",t),w={layoutId:t,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Za:"core"},m={layoutId:t,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Pc:new Map,Kd:[new sQ(a.u,t)],ld:p,kd:r,Ld:[],Za:"core",ua:new HP([new KH(n)]),jd:m(w)});return m}};
yQ=function(a,b,c,d,e,f){this.ab=a;this.wb=b;this.Ya=c;this.u=d;this.Zh=e;this.loadPolicy=void 0===f?1:f};
pH=function(a,b,c,d,e,f,h){var l,m,n,p,r,t,w,x,y,D,E,G=[];if(0===b.length)return G;b=b.filter(bI);for(var L=new Map,J=new Map,Ha=g.q(b),pa=Ha.next();!pa.done;pa=Ha.next())(pa=pa.value.renderer.remoteSlotsRenderer)&&pa.hostElementId&&J.set(pa.hostElementId,pa);Ha=g.q(b);for(pa=Ha.next();!pa.done;pa=Ha.next()){pa=pa.value;var Xa=Cqa(a,L,pa,d,e,f,h,J);Xa instanceof cI?T(Xa,void 0,void 0,{renderer:pa.renderer,config:pa.config.adPlacementConfig,kind:pa.config.adPlacementConfig.kind,contentCpn:d,daiEnabled:f}):
G.push.apply(G,g.la(Xa))}if(null===a.u||f)return a=f&&1===b.length&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===(null===(m=null===(l=b[0].config)||void 0===l?void 0:l.adPlacementConfig)||void 0===m?void 0:m.kind)&&(null===(n=b[0].renderer)||void 0===n?void 0:n.adBreakServiceRenderer),G.length||a||T("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:d,daiEnabled:f,"first APR kind":null===(t=null===(r=null===(p=b[0])||void 0===p?void 0:p.config)||
void 0===r?void 0:r.adPlacementConfig)||void 0===t?void 0:t.kind,renderer:null===(w=b[0])||void 0===w?void 0:w.renderer}),G;c=c.filter(bI);G.push.apply(G,g.la(Zpa(L,c,a.ab.get(),a.u,d)));G.length||T("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:d,daiEnabled:f,"first APR kind":null===(D=null===(y=null===(x=b[0])||void 0===x?void 0:x.config)||void 0===y?void 0:y.adPlacementConfig)||void 0===D?void 0:D.kind,renderer:null===(E=b[0])||
void 0===E?void 0:E.renderer});return G};
Cqa=function(a,b,c,d,e,f,h,l){function m(w){return MP(a.Ya.get(),w)}
var n=c.renderer,p=c.config.adPlacementConfig,r=p.kind,t=c.adSlotLoggingData;if(null!=n.actionCompanionAdRenderer)nQ(b,c.elementId,r,n.actionCompanionAdRenderer.adVideoId,p,t,function(w,x,y,D){var E=a.wb.get(),G=n.actionCompanionAdRenderer,L=MP(a.Ya.get(),w);return zQ(E,w.slotId,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new rH(G),x,y,D,G.impressionPings,G.impressionCommands,L,n.actionCompanionAdRenderer.adLayoutLoggingData)});
else if(n.imageCompanionAdRenderer)nQ(b,c.elementId,r,n.imageCompanionAdRenderer.adVideoId,p,t,function(w,x,y,D){var E=a.wb.get(),G=n.imageCompanionAdRenderer,L=MP(a.Ya.get(),w);return zQ(E,w.slotId,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new vH(G),x,y,D,G.impressionPings,G.impressionCommands,L,n.imageCompanionAdRenderer.adLayoutLoggingData)});
else if(n.shoppingCompanionCarouselRenderer)nQ(b,c.elementId,r,n.shoppingCompanionCarouselRenderer.adVideoId,p,t,function(w,x,y,D){var E=a.wb.get(),G=n.shoppingCompanionCarouselRenderer,L=MP(a.Ya.get(),w);return zQ(E,w.slotId,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new wH(G),x,y,D,G.impressionPings,G.impressionEndpoints,L,n.shoppingCompanionCarouselRenderer.adLayoutLoggingData)});
else{if(n.adBreakServiceRenderer){if(!fI(c))return[];if(f&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===p.kind){if(!a.Zh)return new cI("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");Dqa(a.Zh,{adPlacementRenderer:c,contentCpn:d,JA:e});return[]}return Uma(a.ab.get(),p,t,c.renderer.adBreakServiceRenderer,d,e,f)}if(n.clientForecastingAdRenderer)return sqa(a.ab.get(),a.wb.get(),p,t,n.clientForecastingAdRenderer,d,e,m);if(n.invideoOverlayAdRenderer)return uqa(a.ab.get(),
a.wb.get(),p,t,n.invideoOverlayAdRenderer,d,e,m);if(n.linearAdSequenceRenderer){if(f)return lqa(a.ab.get(),a.wb.get(),c,d,m);mQ(b,n,r);return Bqa(a.ab.get(),a.wb.get(),p,t,n.linearAdSequenceRenderer,d,e,h,m,l,a.loadPolicy)}if((!n.remoteSlotsRenderer||f)&&n.instreamVideoAdRenderer&&!f)return mQ(b,n,r),zqa(a.ab.get(),a.wb.get(),p,t,n.instreamVideoAdRenderer,d,e,h,m,l,a.loadPolicy)}return[]};
AQ=function(a){g.B.call(this);this.u=a};
mH=function(a,b,c,d){a.u().Dg(b,d);c=c();a=a.u();BQ(a.Ab,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",b,d,c);b=g.q(c);for(c=b.next();!c.done;c=b.next())a:{d=a;c=c.value;jK(d.Ab,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",c);try{var e=d.u;if(g.rc(c.slotId))throw new cI("Slot ID was empty");if(TP(e,c))throw new cI("Duplicate registration for slot.");if(!e.Mc.hj.has(c.Wa))throw new cI("No fulfillment adapter factory registered for slot of type: "+c.Wa);if(!e.Mc.Ij.has(c.Wa))throw new cI("No SlotAdapterFactory registered for slot of type: "+
c.Wa);jQ(e,5,c.Tb?[c.Tb]:[]);jQ(e,4,c.te);jQ(e,3,c.hf);var f=d.u,h=c.Wa+"_"+c.feedPosition,l=cQ(f,h);if(TP(f,c))throw new cI("Duplicate slots not supported");l.set(c.slotId,new hQ(c));f.u.set(h,l)}catch(de){T(de,c,void 0,void 0,de.Yk);break a}d.u.Fm(c);try{var m=d.u,n=TP(m,c),p=c.Tb,r=m.Mc.mg.get(p.triggerType);r&&(r.Jg(5,p,c,null),n.X.set(p.triggerId,r));for(var t=g.q(c.te),w=t.next();!w.done;w=t.next()){var x=w.value,y=m.Mc.mg.get(x.triggerType);y&&(y.Jg(4,x,c,null),n.N.set(x.triggerId,y))}for(var D=
g.q(c.hf),E=D.next();!E.done;E=D.next()){var G=E.value,L=m.Mc.mg.get(G.triggerType);L&&(L.Jg(3,G,c,null),n.P.set(G.triggerId,L))}var J=m.Mc.hj.get(c.Wa).get(),Ha=m.C,pa=c;var Xa=CQ(pa,{Xe:["metadata_type_fulfilled_layout"]})?new DQ(Ha,pa):J.u(Ha,pa);n.G=Xa;var Lb=m.Mc.Ij.get(c.Wa).get().u(m.F,c);Lb.init();n.B=Lb}catch(de){T(de,c,void 0,void 0,de.Yk);QP(d,c,!0);break a}jK(d.Ab,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);d.u.jg(c);pa=g.q(d.B);for(var eb=pa.next();!eb.done;eb=pa.next())eb.value.jg(c);
ZP(d,c)}};
EQ=function(a,b,c,d){g.B.call(this);var e=this;this.nb=a;this.ab=b;this.vb=c;this.u=new Map;d.get().addListener(this);g.$f(this,function(){d.get().removeListener(e)})};
Rma=function(a,b){var c=0x8000000000000;for(var d=0,e=g.q(b.te),f=e.next();!f.done;f=e.next())f=f.value,f instanceof kI?(c=Math.min(c,f.C.start),d=Math.max(d,f.C.end)):T("Found unexpected fulfillment trigger for throttled slot.",b,null,{fulfillmentTrigger:f});c=new Ln(c,d);d="throttledadcuerange:"+b.slotId;a.u.set(d,b);a.vb.get().addCueRange(d,c.start,c.end,!1,a)};
FQ=function(){g.B.apply(this,arguments);this.mi=!0;this.u=new Map;this.B=new Map};
FO=function(a,b){for(var c=g.q(a.B.values()),d=c.next();!d.done;d=c.next()){d=g.q(d.value);for(var e=d.next();!e.done;e=d.next())if(e=e.value,e.layoutId===b)return e}T("Trying to retrieve an unknown layout")};
GQ=function(){this.B=new Map;this.u=new Map;this.C=new Map};
HQ=function(a,b){if(g.K("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.B.get(b)||0;a.B.set(b,c+1);return b+"_"+c}return Cs()};
oQ=function(a,b,c){if(g.K("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var d=a.u.get(b)||0;a.u.set(b,d+1);return c+"_"+b+"_"+d}return Cs()};
IQ=function(a,b){if(g.K("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.C.get(b)||0;a.C.set(b,c+1);return b+"_"+c}return Cs()};
Eqa=function(a,b){this.layoutId=b;this.triggerType="trigger_type_close_requested";this.triggerId=a(this.triggerType)};
wQ=function(a,b){this.D=b;this.triggerType="trigger_type_layout_exited_for_reason";this.triggerId=a(this.triggerType)};
pQ=function(a,b){this.D=b;this.triggerType="trigger_type_layout_id_exited";this.triggerId=a(this.triggerType)};
Fqa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=a(this.triggerType)};
JQ=function(a,b){this.D=b;this.Wa="SLOT_TYPE_PLAYER_BYTES";this.layoutType="LAYOUT_TYPE_MEDIA";this.triggerType="trigger_type_on_different_layout_id_entered";this.triggerId=a(this.triggerType)};
KQ=function(a,b){this.D=b;this.Wa="SLOT_TYPE_IN_PLAYER";this.triggerType="trigger_type_on_different_slot_id_enter_requested";this.triggerId=a(this.triggerType)};
sQ=function(a,b){this.layoutId=b;this.triggerType="trigger_type_on_layout_self_exit_requested";this.triggerId=a(this.triggerType)};
Gqa=function(a,b){this.opportunityType="opportunity_type_ad_break_service_response_received";this.associatedSlotId=b;this.triggerType="trigger_type_on_opportunity_received";this.triggerId=a(this.triggerType)};
hqa=function(a){this.triggerType="trigger_type_playback_minimized";this.triggerId=a(this.triggerType)};
qQ=function(a,b){this.C=b;this.triggerType="trigger_type_skip_requested";this.triggerId=a(this.triggerType)};
rQ=function(a,b){this.C=b;this.triggerType="trigger_type_survey_submitted";this.triggerId=a(this.triggerType)};
vQ=function(a,b){this.durationMs=45E3;this.layoutId=b;this.triggerType="trigger_type_time_relative_to_layout_enter";this.triggerId=a(this.triggerType)};
Hqa=function(a){return[new GH(a.vu),new DH(a.instreamAdPlayerOverlayRenderer),new IH(a.WE),new zH(a.adPlacementConfig),new MH(a.videoLengthSeconds),new ZH(a.JC)]};
Iqa=function(a,b,c,d,e,f){a=c.Kw?c.Kw:oQ(f,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",a);var h={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Za:b};return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Pc:new Map,Kd:[new pQ(function(l){return IQ(f,l)},c.vu)],
ld:[],kd:[],Ld:[],Za:b,ua:d,jd:e(h),adLayoutLoggingData:c.adLayoutLoggingData}};
LQ=function(a,b){var c=this;this.ya=a;this.Ra=b;this.u=function(d){return IQ(c.Ra.get(),d)}};
MQ=function(a,b,c,d,e){return Iqa(b,c,d,new HP(Hqa(d)),e,a.Ra.get())};
zQ=function(a,b,c,d,e,f,h,l,m,n,p){b=oQ(a.Ra.get(),c,b);var r={layoutId:b,layoutType:c,Za:"core"},t=new Map;l?t.set("impression",l):m&&T("Companion Ad Renderer without impression Pings but does have impressionCommands",void 0,void 0,{"impressionCommands length":m.length,adPlacementKind:h.kind,companionType:d.u()});return{layoutId:b,layoutType:c,Pc:t,Kd:[new sQ(a.u,b),new JQ(a.u,f)],ld:[],kd:[],Ld:[],Za:"core",ua:new HP([d,new BH(e),new zH(h)]),jd:n(r),adLayoutLoggingData:p}};
uQ=function(a,b,c){var d=[];d.push(new KQ(a.u,c));g.Q(a.ya.get().J.T().experiments,"html5_make_pacf_in_video_overlay_evictable")||b&&d.push(b);return d};
tQ=function(a,b,c,d,e,f,h){var l={layoutId:b,layoutType:c,Za:"core"};return{layoutId:b,layoutType:c,Pc:new Map,Kd:h,ld:[new Eqa(a.u,b)],kd:[],Ld:[],Za:"core",ua:new HP([new uH(d),new zH(e)]),jd:f(l),adLayoutLoggingData:d.adLayoutLoggingData}};
xqa=function(a,b,c,d,e,f,h,l,m,n){var p=c.elementId,r={layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA",Za:b};d=[new zH(d),new AH(l),new BH(c.externalVideoId),new CH(h),new DH(c.playerOverlay.instreamAdPlayerOverlayRenderer),new aI({impressionCommands:c.impressionCommands,onAbandonCommands:c.onAbandonCommands,completeCommands:c.completeCommands,adVideoProgressCommands:c.adVideoProgressCommands}),new NH(e),new JH({current:null}),new MH(f)];e=oQ(a.Ra.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",HQ(a.Ra.get(),
"SLOT_TYPE_IN_PLAYER"));d.push(new HH(e));c.adNextParams&&d.push(new sH(c.adNextParams));c.clickthroughEndpoint&&d.push(new tH(c.clickthroughEndpoint));c.legacyInfoCardVastExtension&&d.push(new $H(c.legacyInfoCardVastExtension));c.sodarExtensionData&&d.push(new OH(c.sodarExtensionData));n&&d.push(new YH(n));return{layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA",Pc:DI(c.pings),Kd:[new sQ(a.u,p)],ld:c.skipOffsetMilliseconds?[new qQ(a.u,e)]:[],kd:[new qQ(a.u,e)],Ld:[],Za:b,ua:new HP(d),jd:m(r),adLayoutLoggingData:c.adLayoutLoggingData}};
nqa=function(a,b,c,d,e,f,h,l,m){d.every(function(p){return GP(p,[],["LAYOUT_TYPE_MEDIA"])})||T("Unexpect subLayout type for DAI composite layout");
b=oQ(a.Ra.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",b);var n={layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Za:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Pc:f,Kd:[new Fqa(a.u)],ld:[],kd:[],Ld:[],Za:"core",ua:new HP([new PH(c),new QH(m),new KH(d),new zH(e),new UH(h)]),jd:l(n)}};
qqa=function(a){return null!=a};
NQ=function(a,b,c){this.B=b;this.visible=c;this.triggerType="trigger_type_after_content_video_id_ended";this.triggerId=a(this.triggerType)};
OQ=function(a,b,c){this.layoutId=b;this.slotId=c;this.triggerType="trigger_type_layout_id_active_and_slot_id_has_exited";this.triggerId=a(this.triggerType)};
Jqa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=a(this.triggerType)};
PQ=function(a,b,c){this.B=b;this.C=c;this.triggerType="trigger_type_not_in_media_time_range";this.triggerId=a(this.triggerType)};
QQ=function(a,b){this.C=b;this.triggerType="trigger_type_on_new_playback_after_content_video_id";this.triggerId=a(this.triggerType)};
RQ=function(a,b){this.slotId=b;this.triggerType="trigger_type_on_element_self_enter_requested";this.triggerId=a(this.triggerType)};
SQ=function(a,b){this.u=b;this.triggerType="trigger_type_slot_id_entered";this.triggerId=a(this.triggerType)};
TQ=function(a,b){this.u=b;this.triggerType="trigger_type_slot_id_exited";this.triggerId=a(this.triggerType)};
UQ=function(a,b){this.u=b;this.triggerType="trigger_type_slot_id_fulfilled_empty";this.triggerId=a(this.triggerType)};
VQ=function(a,b){this.u=b;this.triggerType="trigger_type_slot_id_fulfilled_non_empty";this.triggerId=a(this.triggerType)};
WQ=function(a,b){this.u=b;this.triggerType="trigger_type_slot_id_scheduled";this.triggerId=a(this.triggerType)};
XQ=function(a){var b=this;this.Ra=a;this.u=function(c){return IQ(b.Ra.get(),c)}};
eI=function(a,b,c,d,e,f){f=void 0===f?[]:f;var h=HQ(a.Ra.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),l=[];d.Qm&&d.Qm.start!==d.Hg.start&&l.push(new kI(a.u,c,new Ln(d.Qm.start,d.Hg.start),!1));l.push(new kI(a.u,c,new Ln(d.Hg.start,d.Hg.end),d.Wt));d={getAdBreakUrl:b.getAdBreakUrl,uF:d.Hg.start,tF:d.Hg.end};b=new VQ(a.u,h);f=[new WH(d)].concat(g.la(f));return{slotId:h,Wa:"SLOT_TYPE_AD_BREAK_REQUEST",feedPosition:1,Tb:b,te:l,hf:[new QQ(a.u,c),new TQ(a.u,h),new UQ(a.u,h)],Za:"core",ua:new HP(f),adSlotLoggingData:e}};
Lqa=function(a,b,c){var d=[];c=g.q(c);for(var e=c.next();!e.done;e=c.next())d.push(Kqa(a,b,e.value));return d};
Kqa=function(a,b,c){return null!=c.u&&c.u===a?c.clone(b):c};
Mqa=function(a,b,c,d){var e=HQ(a.Ra.get(),"SLOT_TYPE_IN_PLAYER");c=new jI(a.u,c);var f={slotId:e,Wa:"SLOT_TYPE_IN_PLAYER",feedPosition:1,Za:"core",Tb:c};return{slotId:e,Wa:"SLOT_TYPE_IN_PLAYER",feedPosition:1,Tb:c,te:[new SQ(a.u,e)],hf:[new QQ(a.u,b),new TQ(a.u,e)],Za:"core",ua:new HP([new VH(d(f))])}};
tqa=function(a,b,c,d,e,f){var h=YQ(a,b,c,d);if(h instanceof cI)return h;h instanceof kI&&(h=new kI(a.u,h.B,h.C,h.visible,h.D,!0));d=h instanceof kI?new PQ(a.u,c,h.C):null;b=HQ(a.Ra.get(),"SLOT_TYPE_IN_PLAYER");f=f({slotId:b,Wa:"SLOT_TYPE_IN_PLAYER",feedPosition:1,Za:"core",Tb:h},d);return f instanceof VP?new cI(f):{slotId:b,Wa:"SLOT_TYPE_IN_PLAYER",feedPosition:1,Tb:h,te:[new SQ(a.u,b)],hf:[new QQ(a.u,c),new TQ(a.u,b)],Za:"core",ua:new HP([new VH(f)]),adSlotLoggingData:e}};
gqa=function(a,b,c,d){var e=HQ(a.Ra.get(),"SLOT_TYPE_IN_PLAYER");c=new jI(a.u,c);var f={slotId:e,Wa:"SLOT_TYPE_IN_PLAYER",feedPosition:1,Za:"core",Tb:c};return{slotId:e,Wa:"SLOT_TYPE_IN_PLAYER",feedPosition:1,Tb:c,te:[new SQ(a.u,e)],hf:[new QQ(a.u,b),new TQ(a.u,e)],Za:"core",ua:new HP([new VH(d(f))])}};
cqa=function(a,b,c,d,e){var f=HQ(a.Ra.get(),"SLOT_TYPE_IN_PLAYER");c=new OQ(a.u,d,c);d={slotId:f,Wa:"SLOT_TYPE_IN_PLAYER",feedPosition:1,Za:"core",Tb:c};return{slotId:f,Wa:"SLOT_TYPE_IN_PLAYER",feedPosition:1,Tb:c,te:[new SQ(a.u,f)],hf:[new QQ(a.u,b)],Za:"core",ua:new HP([new VH(e(d))])}};
Ypa=function(a,b,c,d,e,f){var h=HQ(a.Ra.get(),b);return Nqa(a,h,b,new jI(a.u,d),c,e,f)};
Xpa=function(a,b,c,d,e,f){return Nqa(a,c,b,new RQ(a.u,c),d,e,f)};
jqa=function(a,b,c){var d=HQ(a.Ra.get(),"SLOT_TYPE_PLAYER_BYTES"),e=new Jqa(a.u),f={slotId:d,Wa:"SLOT_TYPE_PLAYER_BYTES",feedPosition:1,Za:"core",Tb:e};return{slotId:d,Wa:"SLOT_TYPE_PLAYER_BYTES",feedPosition:1,Tb:e,te:[new WQ(a.u,d)],hf:[new QQ(a.u,b)],Za:"core",ua:new HP([new VH(c(f)),new SH({})])}};
yqa=function(a,b,c,d,e,f){var h=HQ(a.Ra.get(),"SLOT_TYPE_PLAYER_BYTES");b=YQ(a,b,c,d);if(b instanceof cI)return b;f=f({slotId:h,Wa:"SLOT_TYPE_PLAYER_BYTES",feedPosition:1,Za:"core",Tb:b});return f instanceof cI?f:{slotId:h,Wa:"SLOT_TYPE_PLAYER_BYTES",feedPosition:1,Tb:b,te:[new SQ(a.u,h)],hf:[new TQ(a.u,h),new QQ(a.u,c)],Za:"core",ua:new HP([new VH(f)]),adSlotLoggingData:e}};
rqa=function(a,b,c,d,e,f){var h=HQ(a.Ra.get(),"SLOT_TYPE_FORECASTING");b=YQ(a,b,c,d);if(b instanceof cI)return b;d={slotId:h,Wa:"SLOT_TYPE_FORECASTING",feedPosition:1,Za:"core",Tb:b};return{slotId:h,Wa:"SLOT_TYPE_FORECASTING",feedPosition:1,Tb:b,te:[new SQ(a.u,h)],hf:[new TQ(a.u,h),new QQ(a.u,c)],Za:"core",ua:new HP([new VH(f(d))]),adSlotLoggingData:e}};
YQ=function(a,b,c,d){var e=!b.hideCueRangeMarker;switch(b.kind){case "AD_PLACEMENT_KIND_START":return new gI(a.u,c);case "AD_PLACEMENT_KIND_MILLISECONDS":b=dI(b,d);if(b instanceof cI)return b;b=b.Hg;return new kI(a.u,c,b,e,b.end===d);case "AD_PLACEMENT_KIND_END":return new NQ(a.u,c,e);default:return new cI("Cannot construct entry trigger",{kind:b.kind})}};
Nqa=function(a,b,c,d,e,f,h){var l={slotId:b,Wa:c,feedPosition:1,Za:"core",Tb:d};return{slotId:b,Wa:c,feedPosition:1,Tb:d,te:[new WQ(a.u,b)],hf:[new QQ(a.u,e),new TQ(a.u,b)],Za:"core",ua:new HP([new VH(h(l))]),adSlotLoggingData:f}};
ZQ=function(a,b,c){g.B.call(this);this.ya=a;this.u=b;this.Ba=c;this.eventCount=0};
jK=function(a,b,c){BQ(a,b,void 0,void 0,void 0,c,void 0,void 0,c.adSlotLoggingData,void 0)};
UP=function(a,b,c,d){BQ(a,b,void 0,void 0,void 0,c,d?d:void 0,void 0,void 0,d?d.adLayoutLoggingData:void 0)};
Ipa=function(a,b,c,d){g.Q(a.ya.get().J.T().experiments,"html5_control_flow_include_trigger_logging_in_tmp_logs")&&BQ(a,"ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",void 0,void 0,void 0,b,d?d:void 0,c)};
BQ=function(a,b,c,d,e,f,h,l,m,n){if(g.Q(a.ya.get().J.T().experiments,"html5_enable_ads_client_monitoring_log")&&!g.Q(a.ya.get().J.T().experiments,"html5_disable_client_tmp_logs")&&"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"!==b){var p=LP(a.u.get());b={eventType:b,eventOrder:++a.eventCount};var r=g.P(a.ya.get().J.T().experiments,"html5_experiment_id_label"),t={organicPlaybackContext:{contentCpn:oH(a.Ba.get(),1).clientPlaybackNonce}};t.organicPlaybackContext.isLivePlayback=oH(a.Ba.get(),1).Bg;0<r&&(t.html5ExperimentContext=
{ytExperimentId:r});a={};f&&(a.slotData=KP(p,f));h&&(a.layoutData=zpa(p,h));l&&(f={type:JP.get(l.trigger.triggerType)||"TRIGGER_TYPE_UNSPECIFIED",category:Oqa.get(l.category)||"TRIGGER_CATEGORY_UNSPECIFIED"},a.triggerData=f);c&&(a.opportunityData=Bpa(p,c,d,e));t&&(a.externalContext=t);b.adClientData=a;m&&(b.serializedSlotAdServingData=m.serializedSlotAdServingDataEntry);n&&(b.serializedAdServingData=n.serializedAdServingDataEntry);g.zq("adsClientStateChange",{adsClientEvent:b})}};
$Q=function(){this.u=new Map};
aR=function(a,b,c,d,e){g.B.call(this);this.C=b;this.oa=c;this.ya=d;this.Hd=e;this.listeners=[];var f=new os(this);g.C(this,f);f.R(a,"internalAbandon",this.B);g.$f(this,function(){g.qs(f)})};
Pqa=function(a,b,c,d,e,f,h){var l;if(""===b)T("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else{a.u=b;a.oa.get().yi(b,c,d,e,f,h);null===(l=a.Hd)||void 0===l?void 0:l.get().yi(b,c,d,e,f,h);a.C.yi(b,c,d,e,f,h);a=g.q(a.listeners);for(var m=a.next();!m.done;m=a.next())m.value.yi(b,c,d,e,f,h)}};
Qqa=function(a,b){a.u=void 0;for(var c=g.q(a.listeners),d=c.next();!d.done;d=c.next())d.value.Sl(b)};
bR=function(a){g.B.call(this);this.J=a;this.u=new Map;this.B=new os(this);g.C(this,this.B);this.B.R(this.J,g.RD("ad"),this.C,this);this.B.R(this.J,g.SD("ad"),this.D,this)};
Rqa=function(a,b,c,d,e){g.OD.call(this,b,c,{id:a,namespace:"ad",priority:e,visible:d})};
cR=function(a){this.J=a};
dR=function(a){return g.Q(a.J.T().experiments,"html5_enable_in_video_overlay_ad_in_pacf")};
eR=function(a){if(g.gD(a.J.T()))return!1;if(hD(a.J.T()))return g.Q(a.J.T().experiments,"html5_enable_video_overlay_on_inplayer_slot_for_remix");var b=g.eD(a.J.T())||a.J.T().u||g.iD(a.J.T())||jD(a.J.T())||WC(a.J.T());a=g.UC(a.J.T())&&g.Q(a.J.T().experiments,"html5_enable_video_overlay_on_inplayer_slot_for_tv");return b||a};
IM=function(a){return g.Q(a.J.T().experiments,"html5_pacf_enable_dai")};
PM=function(a){return g.Q(a.J.T().experiments,"html5_handle_preroll_lock_in_pacf")};
Sqa=function(a){return g.Q(a.J.T().experiments,"html5_recognize_predict_start_cue_point")};
fR=function(a,b){this.oa=a;this.J=b;this.u=new Map;BI().subscribe("adactiveviewmeasurable",this.C,this);BI().subscribe("adfullyviewableaudiblehalfdurationimpression",this.B,this);BI().subscribe("adviewableimpression",this.D,this)};
Tqa=function(a,b,c,d){d=void 0===d?null:d;a.u.has(b)?T("Unexpected registration of layout in LidarApi"):(a.u.set(b,d),$ma(BI(),b,{So:function(){return{currentTime:dQ(a.oa.get(),2,!1),duration:c,Jb:2===a.oa.get().getPresentingPlayerType()&&1===gR(a.oa.get(),2),Q3:!1,R3:!0,volume:a.oa.get().isMuted()?0:a.oa.get().getVolume()/100}}}))};
Uqa=function(a,b){a.u.has(b)?(a.u["delete"](b),delete BI().u[b]):T("Unexpected unregistration of layout in LidarApi")};
Soa=function(a,b,c){if(!a.u.has(b))return{};if("seek"===c)return a=g.Q(a.J.T().experiments,"html5_dai_enable_active_view_creating_completed_adblock"),El(b,a),{};c=hJ(c);if(null===c)return{};var d=a.J.Ub();d=d&&2===d.getPlayerType()&&xJ(d);if(!d)return{};a={opt_adElement:d,opt_fullscreen:a.oa.get().isFullscreen()};return Dl(c,b,a)};
hR=function(a,b){this.u=a;this.C=b};
iR=function(a,b,c,d){var e=void 0===e?new hR(function(){var f=a.getVideoData(1);return f?f.Ze():""},function(){return a.T().pageId}):e;
this.J=a;this.td=b;this.eb=c;this.Ba=d;this.oo=e;this.B=null;this.u=new Map;this.Ah=new aJ(e)};
Vqa=function(a,b,c,d){d=void 0===d?[]:d;(c=FO(a.td.get(),c))?(c=BO(a,Toa(c),c),b.hasOwnProperty("baseUrl")?a.oo.send(b,c):a.Ah.send(b,c,{},d)):T("Trying to ping from an unknown layout")};
jR=function(a){if(a=a.J.Ub())if(a=Wqa(a.G))return a;return null};
kR=function(a,b){g.zq("adsClientStateChange",b)};
lR=function(a,b){a.u.has(b.Uo())?T("Trying to register an existing AdErrorInfoSupplier."):a.u.set(b.Uo(),b)};
mR=function(a,b){a.u["delete"](b.Uo())||T("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")};
Toa=function(a){var b=oI(a.ua,"metadata_type_ad_placement_config");a=oI(a.ua,"metadata_type_sub_layout_index");return{adPlacementConfig:b,KC:a}};
BO=function(a,b,c){var d=c?Xqa(a):{};c=c?Yqa(a,c.layoutId):{};var e={},f={};d=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},TI(a.J)),hna(b.adPlacementConfig)),(e.SLOT_POS=SI(function(){return(b.KC||0).toString()}),e)),c),d),(f.FINAL=SI(function(){return"1"}),f.AD_CPN=SI(function(){var l;
return(null===(l=oH(a.Ba.get(),2))||void 0===l?void 0:l.clientPlaybackNonce)||""}),f));
c={};e=g.q(Object.values(Zqa));for(f=e.next();!f.done;f=e.next()){f=f.value;var h=d[f];null!=h&&(c[f]=h.toString())}return c};
Xqa=function(a){var b,c={},d=null===(b=a.B)||void 0===b?void 0:b.u();null!=d&&(c.SURVEY_ELAPSED_MS=SI(function(){return(1E3*d).toString()}));
c.SURVEY_LOCAL_TIME_EPOCH_S=SI(function(){return Math.round(Date.now()/1E3).toString()});
return c};
Yqa=function(a,b){var c=a.u.get(b);if(!c)return{};c=c.iw();if(!c)return{};var d={};return d.YT_ERROR_CODE=c.Pu.toString(),d.ERRORCODE=c.Hq.toString(),d.ERROR_MSG=c.errorMessage,d};
g.nR=function(){os.apply(this,arguments)};
oR=function(a,b){g.B.call(this);this.J=a;this.Dc=b;this.listeners=[];var c=new g.nR(this);g.C(this,c);c.R(a,"videodatachange",this.LP);this.u=oH(this);this.contentCpn=oH(this,1).clientPlaybackNonce};
oH=function(a,b){var c=a.J.getVideoData(b);return c?a.er(c):null};
pR=function(a){g.B.call(this);this.J=a;this.listeners=[];this.u=function(){T("Called 'doUnlockPreroll' before it's initialized.")};
var b=new os(this);g.C(this,b);b.R(a,"progresssync",this.MO);b.R(a,"presentingplayerstatechange",this.DO);b.R(a,"fullscreentoggled",this.DK);b.R(a,"onVolumeChange",this.EK);b.R(a,"minimized",this.Di);b.R(a,"resize",this.Sa)};
dQ=function(a,b,c){return a.J.getCurrentTime(b,c)};
gR=function(a,b){return g.uJ(a.J,b)};
$qa=function(a){var b=g.LG(a.J).getPlayerSize();a=a.J.fi(!0,!0);return b.height-(a.height+a.top)};
ara=function(a,b){var c=a.J.T();KC(c)||"3"!==c.controlsType||fJ(g.LG(a.J),b)};
bra=function(a,b,c){g.B.call(this);var d=this;this.Ra=X(function(){return new GQ});
g.C(this,this.Ra);this.wb=X(function(){return new LQ(d.ya,d.Ra)});
g.C(this,this.wb);this.Bb=X(function(){return new FQ});
g.C(this,this.Bb);this.nb=X(function(){return new AQ(a)});
g.C(this,this.nb);this.ab=X(function(){return new XQ(d.Ra)});
g.C(this,this.ab);this.Dc=X(function(){return new $Q});
g.C(this,this.Dc);this.vb=X(function(){return new bR(b)});
g.C(this,this.vb);this.ya=X(function(){return new cR(b)});
g.C(this,this.ya);this.Ya=X(function(){return new NP(d.ya)});
g.C(this,this.Ya);this.fc=X(function(){return new yQ(d.ab,d.wb,d.Ya,null,null)});
g.C(this,this.fc);this.Ba=X(function(){return new oR(b,d.Dc)});
g.C(this,this.Ba);this.Ab=new ZQ(this.ya,this.Ya,this.Ba);g.C(this,this.Ab);this.oa=X(function(){return new pR(b)});
g.C(this,this.oa);this.eb=X(function(){return new fR(d.oa,b)});
g.C(this,this.eb);this.Da=X(function(){return new iR(b,d.Bb,d.eb,d.Ba)});
g.C(this,this.Da);this.Fb=new nI(this.nb,this.fc,c,this.ya,a,this.Ba);g.C(this,this.Fb);var e=new aR(b,this.Fb,this.oa,this.ya);this.Ad=X(function(){return e});
this.Cj=e;this.Nc=new EQ(this.nb,this.ab,this.vb,this.Ad);g.C(this,this.Nc);this.Hb=new lH(this.nb,this.ab,this.fc,this.Ba,this.Nc,c);g.C(this,this.Hb);this.Mc={em:new Map,hj:new Map,mg:new Map,Ij:new Map,tj:new Map};this.listeners=[];this.qe={Hb:this.Hb,Xk:null,vj:null,Wf:this.ya.get(),Gk:this.oa.get(),Fb:this.Fb,uj:null,uh:{gp:function(){}},
dg:this.Bb.get()}};
qR=function(a){this.u=a};
rR=function(){};
cra=function(a,b){b.siub&&b.bgub&&b.scs&&b.bgp&&Se(b.siub,b.scs,b.bgub,b.bgp)};
dra=function(a,b,c,d,e){this.callback=a;this.slot=b;this.wb=c;this.Ya=d;this.ya=e;this.u=null};
era=function(a,b,c){a.u&&T("Currently active request ongoing for slot. This should never happen",a.slot);a.u=b();a.u.then(function(d){a.u=null;c&&c(d);var e;if(e=dR(a.ya.get()))if(e=!d.qm)a:{e=g.q(a.slot.te);for(var f=e.next();!f.done;f=e.next())if(f.value instanceof gI){e=!0;break a}e=!1}if(e)for(e=g.q(d.Pg),f=e.next();!f.done;f=e.next())f=f.value,f.renderer&&f.renderer.invideoOverlayAdRenderer&&T("Detected deferred preroll overlay.",a.slot,void 0,{kind:f.config&&f.config.adPlacementConfig&&f.config.adPlacementConfig.kind||
"unknown"});e=d.qm?"LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE":"LAYOUT_TYPE_AD_BREAK_RESPONSE";f=a.wb.get();var h=a.slot.slotId,l=MP(a.Ya.get(),{slotId:a.slot.slotId,Wa:a.slot.Wa,feedPosition:a.slot.feedPosition,Za:a.slot.Za,Tb:a.slot.Tb}),m=oQ(f.Ra.get(),e,h),n={layoutId:m,layoutType:e,Za:"core"};d={layoutId:m,layoutType:e,Pc:new Map,Kd:[new Gqa(f.u,h)],ld:[],kd:[],Ld:[],Za:"core",ua:new HP([new XH(d)]),jd:l(n)};Epa(a.callback,a.slot,d)},function(d){a.u=null;
d instanceof Mm||RP(a.callback,a.slot,new cI(d,void 0,!0))})};
fra=function(a){if(null==a.u)Gpa(a.callback,a.slot);else try{a.u.cancel(),a.u=null,Gpa(a.callback,a.slot)}catch(b){a.u=null,RP(a.callback,a.slot,new cI(b))}};
sR=function(a,b,c,d,e,f){this.callback=a;this.slot=b;this.Qc=c;this.B=new dra(a,b,d,e,f)};
tR=function(a,b,c,d,e,f){this.callback=a;this.slot=b;this.Qc=c;this.B=new dra(a,b,d,e,f)};
DQ=function(a,b){this.callback=a;this.slot=b};
CQ=function(a,b){return jH(a,b.Xe,b.Wa)?!0:!1};
gra=function(){};
uR=function(a,b,c,d){this.Qc=a;this.wb=b;this.Ya=c;this.ya=d};
vR=function(){};
hra=function(a,b,c,d){this.callback=a;this.slot=b;this.layout=c;this.u=d};
wR=function(a,b){return GP(a,b.Xe,b.lh)?!0:!1};
xR=function(a){this.B=a};
ira=function(a,b,c,d,e){this.callback=a;this.slot=b;this.layout=c;this.Da=d;this.u=e;a=oI(this.layout.ua,"metadata_type_ad_placement_config");this.Ga=new zO(c.Pc,this.Da,a,c.layoutId)};
jra=function(){var a=["metadata_type_client_forecasting_ad_renderer"];AO().forEach(function(b){a.push(b)});
return{Xe:a,lh:["LAYOUT_TYPE_FORECASTING"]}};
yR=function(a,b,c){this.Da=a;this.B=b;this.eb=c};
zR=function(a,b,c,d){g.O.call(this);this.callback=a;this.slot=b;this.layout=c;this.u=d;this.Nj=[]};
AR=function(a,b,c,d,e,f,h){e=oI(c.ua,e);a=CO(a);var l=fb(function(){d.Md(b,c)});
h.push(f(e,a,c.layoutId,{adsClientData:c.jd},function(){l()}))};
CR=function(a,b,c,d,e,f,h,l,m){if(b===a)if(m){if(m===l.layoutId){a:{a=g.q(c.keys());for(b=a.next();!b.done;b=a.next())if(b=b.value,"SLOT_TYPE_PLAYER_BYTES"===b.Wa&&BR(f,c.get(b))){c=!0;break a}c=!1}c?d.J.sendVideoStatsEngageEvent(1,void 0,2):e?e():T("Tried to call engagePingCallback but it is null",h,l)}}else T("Companion AdUxClick received without a layoutId",h,l)};
BR=function(a,b){return GP(b,["metadata_type_ad_video_id"],["LAYOUT_TYPE_MEDIA"])&&a===oI(b.ua,"metadata_type_ad_video_id")?!0:!1};
DR=function(a,b,c,d,e,f,h,l){zR.call(this,a,b,c,d);this.Da=e;this.Qd=f;this.td=l;this.mi=!0;this.Wg=null;this.po="action-companion";this.Vk=oI(c.ua,"metadata_type_ad_video_id");PP(this.Qd(),this);a=oI(c.ua,"metadata_type_ad_placement_config");this.Ga=new zO(c.Pc,this.Da,a,c.layoutId)};
kra=function(){var a=["metadata_type_action_companion_ad_renderer","metadata_type_ad_video_id"];AO().forEach(function(b){a.push(b)});
return{Xe:a,lh:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
ER=function(a,b,c,d,e,f,h){zR.call(this,a,b,c,d);this.oa=e;this.Da=f;this.td=h;this.B=!1;this.C=oI(this.layout.ua,"metadata_type_linked_player_bytes_layout_id")};
lra=function(){return{Xe:["metadata_type_instream_ad_player_overlay_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id","METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"],lh:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]}};
FR=function(a,b,c,d,e,f,h){return wR(c,lra())?new ER(a,b,c,d,e,f,h):null};
GR=function(a,b,c,d){this.Mb=a;this.oa=b;this.Da=c;this.td=d};
HR=function(a){return!a.Bj.Jb()&&a.state.Jb()};
IR=function(a,b,c){return a<b?!1:null!=c?c<=b:a<=b+1};
LR=function(a,b,c,d,e,f,h,l,m,n,p,r,t,w,x,y,D){g.B.call(this);var E=this;this.callback=a;this.slot=b;this.layout=c;this.Qd=d;this.Da=f;this.eb=h;this.cd=l;this.Uc=m;this.Ba=n;this.oa=p;this.vb=r;this.Ic=t;this.lc=w;this.fd=x;this.Xb=y;this.md=D;this.mi=!0;this.adCpn="";this.D=!1;this.u="not_rendering";a=oI(this.layout.ua,"metadata_type_ad_placement_config");this.Ga=new zO(c.Pc,this.Da,a,c.layoutId);this.B=new g.F(function(){JR(E,"load_timeout",new VP("Media layout load timeout."))},1E4);
this.F=fb(function(){"rendering_stop_requested"!==E.u&&KR(e,c.layoutId);E.C?E.callback.Xd(E.slot,E.layout,E.C):T("Received layout exit signal when not in layout exit flow.",E.slot,E.layout)})};
mra=function(){for(var a=["metadata_type_ad_video_id","metadata_type_player_vars","metadata_type_player_bytes_callback_ref","metadata_type_instream_video_ad_commands","metadata_type_video_length_seconds"],b=g.q(AO()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Xe:a,lh:["LAYOUT_TYPE_MEDIA"]}};
JR=function(a,b,c){a.G={Pu:3,Hq:"load_timeout"===b?402:400,errorMessage:c.message};EO(a.Ga,"error");XP(a.callback,a.slot,a.layout,c)};
nra=function(a,b,c){c=void 0===c?!1:c;var d=a.Ga,e=1E3*b,f=c;for(f=void 0===f?!1:f;d.B<d.C.length;){var h=d.C[d.B];if(h.offsetMilliseconds<=e||f)Roa(d,"progress",[h]),d.B++;else break}d=oI(a.layout.ua,"metadata_type_video_length_seconds");(b>=.25*d||c)&&EO(a.Ga,"first_quartile");(b>=.5*d||c)&&EO(a.Ga,"midpoint");(b>=.75*d||c)&&EO(a.Ga,"third_quartile")};
ora=function(a,b){sL(a.Ic.get(),oI(a.layout.ua,"metadata_type_ad_placement_config").kind,b,1,1,!1)};
MR=function(a,b,c,d,e,f,h,l,m,n,p,r,t,w){this.Qd=a;this.B=b;this.Da=c;this.eb=d;this.cd=e;this.Uc=f;this.Ba=h;this.oa=l;this.vb=m;this.Ic=n;this.lc=p;this.fd=r;this.Xb=t;this.md=w};
NR=function(a,b,c,d,e,f,h,l){g.B.call(this);this.u=a;this.C=b;this.B=c;this.nb=d;this.ab=e;this.Ya=f;this.ya=h;this.Ba=l;this.mi=!0};
pra=function(a){var b;return eR(a.ya.get())||(null===(b=oH(a.Ba.get()))||void 0===b?0:b.daiEnabled)&&IM(a.ya.get())?!0:!1};
OR=function(a){var b,c=null===(b=oI(a.ua,"metadata_type_player_bytes_callback_ref"))||void 0===b?void 0:b.current;if(c){var d=a.layoutId,e=oI(a.ua,"metadata_type_content_cpn"),f=oI(a.ua,"metadata_type_instream_ad_player_overlay_renderer"),h=oI(a.ua,"metadata_type_ad_placement_config"),l=oI(a.ua,"metadata_type_video_length_seconds");var m=a.ua.u.has("METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?oI(a.ua,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):a.ua.u.has("metadata_type_layout_enter_ms")&&a.ua.u.has("metadata_type_layout_exit_ms")?
(oI(a.ua,"metadata_type_layout_exit_ms")-oI(a.ua,"metadata_type_layout_enter_ms"))/1E3:void 0;a={vu:d,contentCpn:e,WE:c,instreamAdPlayerOverlayRenderer:f,adPlacementConfig:h,videoLengthSeconds:l,JC:m,adLayoutLoggingData:a.adLayoutLoggingData,Kw:oI(a.ua,"metadata_type_linked_in_player_layout_id")}}else a=null;return a};
qra=function(a,b){var c,d=null===(c=oI(a.ua,"metadata_type_player_bytes_callback_ref"))||void 0===c?void 0:c.current;if(!d)return null;if(a.ua.u.has("metadata_ad_video_is_listed"))var e=oI(a.ua,"metadata_ad_video_is_listed");else b?e=b.isListed:(T("No layout metadata nor AdPlayback specified for ad video isListed"),e=!1);if(a.ua.u.has("metadata_type_ad_info_ad_metadata"))var f=oI(a.ua,"metadata_type_ad_info_ad_metadata");else b?f={channelId:b.pg,channelThumbnailUrl:b.gf,channelTitle:b.author,videoTitle:b.title}:
(T("No layout metadata nor AdPlayback specified for AdMetaData"),f={channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""});return{YH:f,adLayoutLoggingData:a.adLayoutLoggingData,adPlacementConfig:oI(a.ua,"metadata_type_ad_placement_config"),bI:e,contentCpn:oI(a.ua,"metadata_type_content_cpn"),Kw:oI(a.ua,"metadata_type_linked_in_player_layout_id"),instreamAdPlayerOverlayRenderer:oI(a.ua,"metadata_type_instream_ad_player_overlay_renderer"),JC:void 0,WE:d,vu:a.layoutId,videoLengthSeconds:oI(a.ua,
"metadata_type_video_length_seconds")}};
rra=function(a,b){this.callback=a;this.slot=b};
PR=function(){};
sra=function(a,b,c){this.callback=a;this.slot=b;this.oa=c};
tra=function(a,b,c){this.callback=a;this.slot=b;this.oa=c;this.u=!1};
ura=function(a){a.u&&(a.oa.get().u(),a.u=!1)};
QR=function(a){this.oa=a};
RR=function(a,b,c,d){this.category=a;this.trigger=b;this.slot=c;this.layout=d};
SR=function(a){g.B.call(this);this.wx=a;this.ib=new Map};
TR=function(a,b){SR.call(this,a);var c=this;b.get().addListener(this);g.$f(this,function(){b.get().removeListener(c)})};
UR=function(a){g.B.call(this);this.u=a;this.mi=!0;this.ib=new Map;this.F=new Set;this.C=new Set;this.D=new Set;this.G=new Set;this.B=new Set};
VR=function(a,b){g.B.call(this);var c=this;this.u=a;this.ib=new Map;b.get().addListener(this);g.$f(this,function(){b.get().removeListener(c)})};
vra=function(a,b,c){var d=[];a=g.q(a.values());for(var e=a.next();!e.done;e=a.next())e=e.value,e.trigger instanceof QQ&&e.trigger.C===b===c&&d.push(e);return d};
wra=function(a,b){for(var c=[],d=g.q(a.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger instanceof gI&&e.trigger.B===b&&c.push(e);return c};
WR=function(a,b,c,d){g.B.call(this);var e=this;this.C=a;this.vb=b;this.oa=c;this.Ba=d;this.ib=new Map;this.u=new Set;this.B=new Set;c.get().addListener(this);g.$f(this,function(){c.get().removeListener(e)})};
YR=function(a,b,c,d,e,f,h,l,m,n){if(oH(a.Ba.get(),1).clientPlaybackNonce!==m)throw new cI("Cannot register CueRange-based trigger for different content CPN",{trigger:c});a.ib.set(c.triggerId,{bundle:new RR(b,c,d,e),Km:f});a.vb.get().addCueRange(f,h,l,n,a)};
xra=function(a,b){for(var c=g.q(a.ib.entries()),d=c.next();!d.done;d=c.next()){var e=g.q(d.value);d=e.next().value;e=e.next().value;if(b===e.Km)return d}return""};
ZR=function(a){g.B.call(this);this.C=a;this.mi=!0;this.ib=new Map;this.B=this.u=null};
KR=function(a,b){for(var c=[],d=g.q(a.ib.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof sQ){var f;if(f=e.trigger.layoutId===b)f=(f=Jpa.get(e.category))?"normal"===f:!1;f&&c.push(e)}c.length&&$P(a.C(),c)};
$R=function(a){g.B.call(this);this.u=a;this.mi=!0;this.ib=new Map};
aS=function(a,b,c,d,e,f){g.B.call(this);this.C=a;this.ud=b;this.Ya=c;this.Ba=d;this.ya=e;this.Ra=f;this.u=this.B=null;this.ud.get().addListener(this)};
bS=function(a,b){this.Wu=a;this.ya=b};
yra=function(a,b){if(!a)return{Pg:[],qm:!0};a.trackingParams&&XL(VL(),a.trackingParams);if(a.adThrottled)return{Pg:[],qm:!0};var c=a.playerAds;if(!c||!c.length)return{Pg:[],qm:!1};c=c.map(function(e){return e.adPlacementRenderer}).filter(function(e){return!(!e||!e.renderer)});
if(!c.length)return{Pg:[],qm:!1};if(0<b.end){var d=b.end.toString();c.forEach(function(e){(e=e.config&&e.config.adPlacementConfig)&&"AD_PLACEMENT_KIND_MILLISECONDS"===e.kind&&e.adTimeOffset&&"-1"===e.adTimeOffset.offsetEndMilliseconds&&e.adTimeOffset.offsetEndMilliseconds!==d&&(e.adTimeOffset.offsetEndMilliseconds=d)})}return{Pg:c,
qm:!1}};
cS=function(a){g.B.call(this);this.J=a;this.listeners=[];this.u=new os(this);g.C(this,this.u);this.u.R(this.J,"aduxclicked",this.onAdUxClicked);this.u.R(this.J,"aduxmouseover",this.CK);this.u.R(this.J,"aduxmouseout",this.BK);this.u.R(this.J,"muteadaccepted",this.EM)};
zra=function(a,b,c){b=g.Pc(b,function(d){return new vI(d,c,d.id)});
a.J.va("onAdUxUpdate",b)};
dS=function(a,b){for(var c=g.q(a.listeners),d=c.next();!d.done;d=c.next())b(d.value)};
eS=function(a){this.J=a};
fS=function(a){this.J=a};
gS=function(a){this.J=a};
hS=function(){this.listeners=[]};
Ara=function(a){this.J=a};
Bra=function(a,b,c,d,e,f,h,l,m,n){this.callback=a;this.slot=b;this.layout=c;this.Ba=d;this.Nf=e;this.Hd=f;this.oa=h;this.Ga=l;this.Da=m;this.B=n;this.u=null;this.driftRecoveryMs=oI(c.ua,"metadata_type_drift_recovery_ms")||null};
Dra=function(a,b){var c=Cra(a,b);a.u={Uh:c};c&&c.startRendering()};
Fra=function(a){var b=oI(a.layout.ua,"metadata_type_layout_enter_ms"),c=oI(a.layout.ua,"metadata_type_layout_exit_ms");a=Era(a.Hd.get(),b,c);return Math.min(c,null!==a?a:Infinity)};
Cra=function(a,b){return null==b?null:a.B.find(function(c){return c.layout.layoutId===b})||null};
iS=function(a,b){var c;kR(a.Da.get(),{driftRecoveryInfo:Object.assign({contentCpn:null===(c=a.Ba.get().u)||void 0===c?void 0:c.clientPlaybackNonce,adClientData:a.layout.jd.adClientDataEntry},b)})};
Gra=function(a,b,c,d,e,f,h,l,m){this.callback=a;this.slot=b;this.layout=c;this.Nf=d;this.Ga=e;this.oa=f;this.Dc=h;this.eb=l;this.cd=m;this.X=!0;this.u=null};
Hra=function(a,b,c,d){var e=oI(a.layout.ua,"metadata_type_video_length_seconds");0>=e||0>=c||g.U(b,16)||g.U(b,32)||(IR(c,.25*e,d)&&EO(a.Ga,"first_quartile"),IR(c,.5*e,d)&&EO(a.Ga,"midpoint"),IR(c,.75*e,d)&&EO(a.Ga,"third_quartile"))};
Ira=function(a){return Object.assign(Object.assign({},jS(a)),{adPlacementConfig:oI(a.ua,"metadata_type_ad_placement_config"),subLayouts:oI(a.ua,"metadata_type_sub_layouts").map(jS)})};
jS=function(a){return{enterMs:oI(a.ua,"metadata_type_layout_enter_ms"),exitMs:oI(a.ua,"metadata_type_layout_exit_ms")}};
kS=function(a,b,c,d,e,f,h,l,m,n,p,r,t,w,x,y,D){this.Qd=a;this.B=b;this.Ba=c;this.Nf=d;this.oa=e;this.Da=f;this.Dc=h;this.Hd=l;this.eb=m;this.cd=n;this.Uc=p;this.vb=r;this.Ic=t;this.lc=w;this.fd=x;this.Xb=y;this.md=D};
lS=function(a,b,c,d,e,f){g.B.call(this);var h=this;this.nb=a;this.ab=b;this.Ba=c;this.Hd=e;this.oa=f;this.u=null;d.get().addListener(this);g.$f(this,function(){d.get().removeListener(h)});
e.get().addListener(this);g.$f(this,function(){e.get().removeListener(h)})};
Dqa=function(a,b){if(oH(a.Ba.get(),1).daiEnabled&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===b.adPlacementRenderer.config.adPlacementConfig.kind)if(a.u)T("Unexpected multiple fetch instructions for the current content");else{a.u=b;for(var c=g.q(a.Hd.get().u),d=c.next();!d.done;d=c.next())Jra(a,a.u,d.value)}};
Jra=function(a,b,c){var d=dQ(a.oa.get(),1,!1);mH(a.nb.get(),"opportunity_type_live_stream_break_signal",function(){var e=a.ab.get();var f=1E3*c.startSecs;f={Hg:new Ln(f,f+1E3*c.durationSecs),Wt:!1};var h=c.startSecs+c.durationSecs;f.Qm=c.startSecs<=d?new Ln(1E3*(c.startSecs-4),1E3*h):new Ln(1E3*Math.floor(d+Math.random()*Math.max(0,c.startSecs-d-10)),1E3*h);return[eI(e,b.adPlacementRenderer.renderer.adBreakServiceRenderer,b.contentCpn,f,b.adPlacementRenderer.adSlotLoggingData,[new LH(c)])]})};
mS=function(a,b){var c;g.B.call(this);var d=this;this.D=a;this.B=new Map;this.C=new Map;this.u=null;b.get().addListener(this);g.$f(this,function(){b.get().removeListener(d)});
this.u=(null===(c=b.get().u)||void 0===c?void 0:c.slotId)||null};
Kra=function(a,b){for(var c=[],d=g.q(a.values()),e=d.next();!e.done;e=d.next())e=e.value,e.slot.slotId===b&&c.push(e);return c};
nS=function(a,b,c,d){g.B.call(this);this.J=a;this.Ba=b;this.ya=c;this.Da=d;this.listeners=[];this.B=new Set;this.u=[];this.D=new eL(this,Sqa(c.get()));this.C=new fL;Lra(this)};
Era=function(a,b,c){return gL(a.C,b,c)};
Lra=function(a){var b,c=a.J.getVideoData(1);c.subscribe("cuepointupdated",a.Px,a);a.B.clear();a.u.length=0;c=(null===(b=c.ma)||void 0===b?void 0:iA(b,0))||[];a.Px(c)};
Mra=function(a){switch(a){case "unknown":return"CUEPOINT_EVENT_UNKNOWN";case "start":return"CUEPOINT_EVENT_START";case "continue":return"CUEPOINT_EVENT_CONTINUE";case "stop":return"CUEPOINT_EVENT_STOP";case "predictStart":return"CUEPOINT_EVENT_PREDICT_START";default:throw Error("Unexpected cuepoint event");}};
Nra=function(a){this.J=a};
Pra=function(a,b,c){Ora(a.J,b,c)};
oS=function(){this.listeners=new Set};
pS=function(a,b,c,d,e,f,h,l){zR.call(this,a,b,c,d);this.Da=e;this.Qd=f;this.td=l;this.mi=!0;this.Wg=null;this.po="image-companion";this.Vk=oI(c.ua,"metadata_type_ad_video_id");PP(this.Qd(),this);a=oI(c.ua,"metadata_type_ad_placement_config");this.Ga=new zO(c.Pc,this.Da,a,c.layoutId)};
Qra=function(){var a=["metadata_type_image_companion_ad_renderer","metadata_type_ad_video_id"];AO().forEach(function(b){a.push(b)});
return{Xe:a,lh:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
qS=function(a,b,c,d,e,f,h,l){zR.call(this,a,b,c,d);this.Da=e;this.Qd=f;this.td=l;this.mi=!0;this.Wg=null;this.po="shopping-companion";this.Vk=oI(c.ua,"metadata_type_ad_video_id");PP(this.Qd(),this);a=oI(c.ua,"metadata_type_ad_placement_config");this.Ga=new zO(c.Pc,this.Da,a,c.layoutId)};
Rra=function(){var a=["metadata_type_shopping_companion_carousel_renderer","metadata_type_ad_video_id"];AO().forEach(function(b){a.push(b)});
return{Xe:a,lh:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}};
Sra=function(a,b,c,d,e){this.Mb=a;this.Da=b;this.Qd=c;this.td=d;this.eb=e};
rS=function(a,b,c,d,e,f,h,l,m,n){zR.call(this,f,a,b,e);this.Da=c;this.B=h;this.oa=l;this.Xb=m;this.ya=n;this.Ga=Uoa(b,c)};
Tra=function(){var a=["metadata_type_invideo_overlay_ad_renderer"];AO().forEach(function(b){a.push(b)});
return{Xe:a,lh:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}};
sS=function(a,b,c,d,e,f,h,l,m,n,p){zR.call(this,f,a,b,e);this.Da=c;this.B=h;this.D=l;this.oa=m;this.Xb=n;this.ya=p;this.Ga=Uoa(b,c)};
tS=function(a,b,c,d,e,f,h,l,m){this.Mb=a;this.oa=b;this.Da=c;this.td=d;this.eb=e;this.B=f;this.C=h;this.Xb=l;this.ya=m};
uS=function(a){g.B.call(this);this.u=a;this.ib=new Map};
vS=function(a,b){for(var c=[],d=g.q(a.ib.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger.layoutId===b.layoutId&&c.push(e);c.length&&$P(a.u(),c)};
wS=function(a){g.B.call(this);this.C=a;this.mi=!0;this.ib=new Map;this.u=new Map;this.B=new Map};
Ura=function(a,b){var c=[],d=a.u.get(b.layoutId);if(d){d=g.q(d);for(var e=d.next();!e.done;e=d.next())(e=a.B.get(e.value.triggerId))&&c.push(e)}return c};
xS=function(a,b,c){g.B.call(this);this.C=a;this.wi=b;this.Ra=c;this.u=this.B=void 0;this.wi.get().addListener(this)};
Vra=function(a,b,c,d,e){g.B.call(this);var f=this;this.Ra=X(function(){return new GQ});
g.C(this,this.Ra);this.wb=X(function(){return new LQ(f.ya,f.Ra)});
g.C(this,this.wb);this.Bb=X(function(){return new FQ});
g.C(this,this.Bb);this.nb=X(function(){return new AQ(a)});
g.C(this,this.nb);this.ab=X(function(){return new XQ(f.Ra)});
g.C(this,this.ab);this.Dc=X(function(){return new $Q});
g.C(this,this.Dc);this.fd=X(function(){return new CJ(b.T())});
g.C(this,this.fd);this.Mb=X(function(){return new cS(b)});
g.C(this,this.Mb);this.Xb=X(function(){return new qR(e)});
g.C(this,this.Xb);this.Ic=X(function(){return new qL(b)});
g.C(this,this.Ic);this.vb=X(function(){return new bR(b)});
g.C(this,this.vb);this.Uc=X(function(){return new eS(b)});
g.C(this,this.Uc);this.lc=X(function(){return new fS(b)});
g.C(this,this.lc);this.ya=X(function(){return new cR(b)});
g.C(this,this.ya);this.Qc=X(function(){return new bS(d,f.ya)});
g.C(this,this.Qc);this.Ya=X(function(){return new NP(f.ya)});
g.C(this,this.Ya);this.fc=X(function(){return new yQ(f.ab,f.wb,f.Ya,"SLOT_TYPE_ABOVE_FEED",f.Zh)});
g.C(this,this.fc);this.md=X(function(){return new gS(b)});
g.C(this,this.md);this.ud=X(function(){return new hS});
g.C(this,this.ud);this.wi=X(function(){return new oS});
g.C(this,this.wi);this.Ba=X(function(){return new oR(b,f.Dc)});
g.C(this,this.Ba);this.Ab=new ZQ(this.ya,this.Ya,this.Ba);g.C(this,this.Ab);this.Hd=X(function(){return new nS(b,f.Ba,f.ya,f.Da)});
g.C(this,this.Hd);this.Nf=X(function(){return new Nra(b)});
g.C(this,this.Nf);this.oa=X(function(){return new pR(b)});
g.C(this,this.oa);this.cd=X(function(){return new rR});
this.eb=X(function(){return new fR(f.oa,b)});
g.C(this,this.eb);this.Da=X(function(){return new iR(b,f.Bb,f.eb,f.Ba)});
g.C(this,this.Da);this.Ne=new NR(OR,yS,function(l,m,n,p){return MQ(f.wb.get(),l,m,n,p)},this.nb,this.ab,this.Ya,this.ya,this.Ba);
g.C(this,this.Ne);this.Fb=new nI(this.nb,this.fc,c,this.ya,a,this.Ba);g.C(this,this.Fb);var h=new aR(b,this.Fb,this.oa,this.ya,this.Hd);this.Ad=X(function(){return h});
this.Cj=h;this.Zh=new lS(this.nb,this.ab,this.Ba,this.Ad,this.Hd,this.oa);g.C(this,this.Zh);this.Nc=new EQ(this.nb,this.ab,this.vb,this.Ad);g.C(this,this.Nc);this.Hb=new lH(this.nb,this.ab,this.fc,this.Ba,this.Nc,c);g.C(this,this.Hb);this.ye=X(function(){return new uR(f.Qc,f.wb,f.Ya,f.ya)});
g.C(this,this.ye);this.kc=X(function(){return new vR});
g.C(this,this.kc);this.gd=new TR(a,this.Mb);g.C(this,this.gd);this.Ta=new UR(a);g.C(this,this.Ta);this.ol=new uS(a);g.C(this,this.ol);this.hd=new VR(a,this.Ad);g.C(this,this.hd);this.Tc=new WR(a,this.vb,this.oa,this.Ba);g.C(this,this.Tc);this.Pl=new mS(a,this.Ba);g.C(this,this.Pl);this.Sb=new ZR(a);g.C(this,this.Sb);this.Le=new $R(a);g.C(this,this.Le);this.rm=new wS(a);g.C(this,this.rm);this.hc=X(function(){return new PR});
g.C(this,this.hc);this.Oe=X(function(){return new QR(f.oa)});
g.C(this,this.Oe);this.bA=X(function(){return new Sra(f.Mb,f.Da,a,f.Bb,f.eb)});
g.C(this,this.bA);this.xe=X(function(){return new xR(f.Hb)});
g.C(this,this.xe);this.Ae=X(function(){return new yR(f.Da,f.Sb,f.eb)});
g.C(this,this.Ae);this.Me=X(function(){return new kS(a,f.Sb,f.Ba,f.Nf,f.oa,f.Da,f.Dc,f.Hd,f.eb,f.cd,f.Uc,f.vb,f.Ic,f.lc,f.fd,f.Xb,f.md)});
g.C(this,this.Me);this.fh=X(function(){return new tS(f.Mb,f.oa,f.Da,f.Bb,f.eb,f.ol,f.rm,f.Xb,f.ya)});
g.C(this,this.fh);this.Zu=new xS(a,this.wi,this.Ra);g.C(this,this.Zu);this.Ej=new aS(a,this.ud,this.Ya,this.Ba,this.ya,this.Ra);g.C(this,this.Ej);this.Mc={em:new Map([["opportunity_type_ad_break_service_response_received",this.Hb],["opportunity_type_live_stream_break_signal",this.Zh],["opportunity_type_player_bytes_media_layout_entered",this.Ne],["opportunity_type_player_response_received",this.Fb],["opportunity_type_throttled_ad_break_request_slot_reentry",this.Nc]]),hj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.ye],["SLOT_TYPE_ABOVE_FEED",this.kc],["SLOT_TYPE_FORECASTING",this.kc],["SLOT_TYPE_IN_PLAYER",this.kc],["SLOT_TYPE_PLAYER_BYTES",this.kc]]),mg:new Map([["trigger_type_skip_requested",this.gd],["trigger_type_layout_id_entered",this.Ta],["trigger_type_layout_id_exited",this.Ta],["trigger_type_layout_exited_for_reason",this.Ta],["trigger_type_on_different_layout_id_entered",this.Ta],["trigger_type_slot_id_entered",this.Ta],["trigger_type_slot_id_exited",this.Ta],["trigger_type_slot_id_fulfilled_empty",
this.Ta],["trigger_type_slot_id_fulfilled_non_empty",this.Ta],["trigger_type_slot_id_scheduled",this.Ta],["trigger_type_on_different_slot_id_enter_requested",this.Ta],["trigger_type_close_requested",this.ol],["trigger_type_before_content_video_id_started",this.hd],["trigger_type_after_content_video_id_ended",this.Tc],["trigger_type_media_time_range",this.Tc],["trigger_type_not_in_media_time_range",this.Tc],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Pl],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",
this.Pl],["trigger_type_on_layout_self_exit_requested",this.Sb],["trigger_type_on_element_self_enter_requested",this.Sb],["trigger_type_on_new_playback_after_content_video_id",this.hd],["trigger_type_on_opportunity_received",this.Le],["trigger_type_time_relative_to_layout_enter",this.rm]]),Ij:new Map([["SLOT_TYPE_ABOVE_FEED",this.hc],["SLOT_TYPE_AD_BREAK_REQUEST",this.hc],["SLOT_TYPE_FORECASTING",this.hc],["SLOT_TYPE_IN_PLAYER",this.hc],["SLOT_TYPE_PLAYER_BYTES",this.Oe]]),tj:new Map([["SLOT_TYPE_ABOVE_FEED",
this.bA],["SLOT_TYPE_AD_BREAK_REQUEST",this.xe],["SLOT_TYPE_FORECASTING",this.Ae],["SLOT_TYPE_PLAYER_BYTES",this.Me],["SLOT_TYPE_IN_PLAYER",this.fh]])};this.listeners=[this.Bb.get()];this.qe={Hb:this.Hb,Xk:this.Sb,vj:this.ud.get(),Wf:this.ya.get(),Gk:this.oa.get(),Fb:this.Fb,uj:this.wi.get(),uh:this.gd,dg:this.Bb.get()}};
Wra=function(a,b,c,d,e){g.B.call(this);var f=this;this.Ra=X(function(){return new GQ});
g.C(this,this.Ra);this.wb=X(function(){return new LQ(f.ya,f.Ra)});
g.C(this,this.wb);this.Bb=X(function(){return new FQ});
g.C(this,this.Bb);this.nb=X(function(){return new AQ(a)});
g.C(this,this.nb);this.ab=X(function(){return new XQ(f.Ra)});
g.C(this,this.ab);this.Dc=X(function(){return new $Q});
g.C(this,this.Dc);this.fd=X(function(){return new CJ(b.T())});
g.C(this,this.fd);this.Mb=X(function(){return new cS(b)});
g.C(this,this.Mb);this.Xb=X(function(){return new qR(e)});
g.C(this,this.Xb);this.Ic=X(function(){return new qL(b)});
g.C(this,this.Ic);this.vb=X(function(){return new bR(b)});
g.C(this,this.vb);this.Uc=X(function(){return new eS(b)});
g.C(this,this.Uc);this.lc=X(function(){return new fS(b)});
g.C(this,this.lc);this.ya=X(function(){return new cR(b)});
g.C(this,this.ya);this.Qc=X(function(){return new bS(d,f.ya)});
g.C(this,this.Qc);this.Ya=X(function(){return new NP(f.ya)});
g.C(this,this.Ya);this.fc=X(function(){return new yQ(f.ab,f.wb,f.Ya,null,null)});
g.C(this,this.fc);this.md=X(function(){return new gS(b)});
g.C(this,this.md);this.ud=X(function(){return new hS});
g.C(this,this.ud);this.wi=X(function(){return new oS});
g.C(this,this.wi);this.Ba=X(function(){return new oR(b,f.Dc)});
g.C(this,this.Ba);this.Ab=new ZQ(this.ya,this.Ya,this.Ba);g.C(this,this.Ab);this.oa=X(function(){return new pR(b)});
g.C(this,this.oa);this.eb=X(function(){return new fR(f.oa,b)});
g.C(this,this.eb);this.Da=X(function(){return new iR(b,f.Bb,f.eb,f.Ba)});
g.C(this,this.Da);this.cd=X(function(){return new rR});
g.C(this,this.cd);this.Ne=new NR(OR,yS,function(l,m,n,p){return MQ(f.wb.get(),l,m,n,p)},this.nb,this.ab,this.Ya,this.ya,this.Ba);
g.C(this,this.Ne);this.Fb=new nI(this.nb,this.fc,c,this.ya,a,this.Ba);g.C(this,this.Fb);var h=new aR(b,this.Fb,this.oa,this.ya);this.Ad=X(function(){return h});
this.Cj=h;this.Nc=new EQ(this.nb,this.ab,this.vb,this.Ad);g.C(this,this.Nc);this.Hb=new lH(this.nb,this.ab,this.fc,this.Ba,this.Nc,c);g.C(this,this.Hb);this.ye=X(function(){return new uR(f.Qc,f.wb,f.Ya,f.ya)});
g.C(this,this.ye);this.kc=X(function(){return new vR});
g.C(this,this.kc);this.gd=new TR(a,this.Mb);g.C(this,this.gd);this.Ta=new UR(a);g.C(this,this.Ta);this.ol=new uS(a);g.C(this,this.ol);this.hd=new VR(a,this.Ad);g.C(this,this.hd);this.Tc=new WR(a,this.vb,this.oa,this.Ba);g.C(this,this.Tc);this.Sb=new ZR(a);g.C(this,this.Sb);this.Le=new $R(a);g.C(this,this.Le);this.rm=new wS(a);g.C(this,this.rm);this.hc=X(function(){return new PR});
g.C(this,this.hc);this.Oe=X(function(){return new QR(f.oa)});
g.C(this,this.Oe);this.xe=X(function(){return new xR(f.Hb)});
g.C(this,this.xe);this.Ae=X(function(){return new yR(f.Da,f.Sb,f.eb)});
g.C(this,this.Ae);this.fh=X(function(){return new tS(f.Mb,f.oa,f.Da,f.Bb,f.eb,f.ol,f.rm,f.Xb,f.ya)});
g.C(this,this.fh);this.Me=X(function(){return new MR(a,f.Sb,f.Da,f.eb,f.cd,f.Uc,f.Ba,f.oa,f.vb,f.Ic,f.lc,f.fd,f.Xb,f.md)});
g.C(this,this.Me);this.Zu=new xS(a,this.wi,this.Ra);g.C(this,this.Zu);this.Ej=new aS(a,this.ud,this.Ya,this.Ba,this.ya,this.Ra);g.C(this,this.Ej);this.Mc={em:new Map([["opportunity_type_ad_break_service_response_received",this.Hb],["opportunity_type_player_bytes_media_layout_entered",this.Ne],["opportunity_type_player_response_received",this.Fb],["opportunity_type_throttled_ad_break_request_slot_reentry",this.Nc]]),hj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ye],["SLOT_TYPE_FORECASTING",this.kc],
["SLOT_TYPE_IN_PLAYER",this.kc],["SLOT_TYPE_PLAYER_BYTES",this.kc]]),mg:new Map([["trigger_type_skip_requested",this.gd],["trigger_type_layout_id_entered",this.Ta],["trigger_type_layout_id_exited",this.Ta],["trigger_type_layout_exited_for_reason",this.Ta],["trigger_type_on_different_layout_id_entered",this.Ta],["trigger_type_slot_id_entered",this.Ta],["trigger_type_slot_id_exited",this.Ta],["trigger_type_slot_id_fulfilled_empty",this.Ta],["trigger_type_slot_id_fulfilled_non_empty",this.Ta],["trigger_type_slot_id_scheduled",
this.Ta],["trigger_type_on_different_slot_id_enter_requested",this.Ta],["trigger_type_close_requested",this.ol],["trigger_type_before_content_video_id_started",this.hd],["trigger_type_after_content_video_id_ended",this.Tc],["trigger_type_media_time_range",this.Tc],["trigger_type_not_in_media_time_range",this.Tc],["trigger_type_on_layout_self_exit_requested",this.Sb],["trigger_type_on_element_self_enter_requested",this.Sb],["trigger_type_on_new_playback_after_content_video_id",this.hd],["trigger_type_on_opportunity_received",
this.Le],["trigger_type_time_relative_to_layout_enter",this.rm]]),Ij:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.hc],["SLOT_TYPE_FORECASTING",this.hc],["SLOT_TYPE_IN_PLAYER",this.hc],["SLOT_TYPE_PLAYER_BYTES",this.Oe]]),tj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.xe],["SLOT_TYPE_FORECASTING",this.Ae],["SLOT_TYPE_IN_PLAYER",this.fh],["SLOT_TYPE_PLAYER_BYTES",this.Me]])};this.listeners=[this.Bb.get()];this.qe={Hb:this.Hb,Xk:null,vj:this.ud.get(),Wf:this.ya.get(),Gk:this.oa.get(),Fb:this.Fb,uj:this.wi.get(),
uh:this.gd,dg:this.Bb.get()}};
Xra=function(a,b,c,d,e){g.B.call(this);var f=this;this.Ra=X(function(){return new GQ});
g.C(this,this.Ra);this.wb=X(function(){return new LQ(f.ya,f.Ra)});
g.C(this,this.wb);this.Bb=X(function(){return new FQ});
g.C(this,this.Bb);this.nb=X(function(){return new AQ(a)});
g.C(this,this.nb);this.ab=X(function(){return new XQ(f.Ra)});
g.C(this,this.ab);this.Dc=X(function(){return new $Q});
g.C(this,this.Dc);this.fd=X(function(){return new CJ(b.T())});
g.C(this,this.fd);this.Mb=X(function(){return new cS(b)});
g.C(this,this.Mb);this.Xb=X(function(){return new qR(e)});
g.C(this,this.Xb);this.Ic=X(function(){return new qL(b)});
g.C(this,this.Ic);this.vb=X(function(){return new bR(b)});
g.C(this,this.vb);this.Uc=X(function(){return new eS(b)});
g.C(this,this.Uc);this.lc=X(function(){return new fS(b)});
g.C(this,this.lc);this.ya=X(function(){return new cR(b)});
g.C(this,this.ya);this.Qc=X(function(){return new bS(d,f.ya)});
g.C(this,this.Qc);this.Ya=X(function(){return new NP(f.ya)});
g.C(this,this.Ya);this.fc=X(function(){return new yQ(f.ab,f.wb,f.Ya,null,null)});
g.C(this,this.fc);this.md=X(function(){return new gS(b)});
g.C(this,this.md);this.ud=X(function(){return new hS});
g.C(this,this.ud);this.Ba=X(function(){return new oR(b,f.Dc)});
g.C(this,this.Ba);this.Ab=new ZQ(this.ya,this.Ya,this.Ba);g.C(this,this.Ab);this.oa=X(function(){return new pR(b)});
g.C(this,this.oa);this.eb=X(function(){return new fR(f.oa,b)});
g.C(this,this.eb);this.Da=X(function(){return new iR(b,f.Bb,f.eb,f.Ba)});
g.C(this,this.Da);this.cd=X(function(){return new rR});
g.C(this,this.cd);this.Ne=new NR(OR,yS,function(l,m,n,p){return MQ(f.wb.get(),l,m,n,p)},this.nb,this.ab,this.Ya,this.ya,this.Ba);
g.C(this,this.Ne);this.Fb=new nI(this.nb,this.fc,c,this.ya,a,this.Ba);g.C(this,this.Fb);var h=new aR(b,this.Fb,this.oa,this.ya);this.Ad=X(function(){return h});
this.Cj=h;this.Nc=new EQ(this.nb,this.ab,this.vb,this.Ad);g.C(this,this.Nc);this.Hb=new lH(this.nb,this.ab,this.fc,this.Ba,this.Nc,c);g.C(this,this.Hb);this.ye=X(function(){return new uR(f.Qc,f.wb,f.Ya,f.ya)});
g.C(this,this.ye);this.kc=X(function(){return new vR});
g.C(this,this.kc);this.gd=new TR(a,this.Mb);g.C(this,this.gd);this.Ta=new UR(a);g.C(this,this.Ta);this.hd=new VR(a,this.Ad);g.C(this,this.hd);this.Tc=new WR(a,this.vb,this.oa,this.Ba);g.C(this,this.Tc);this.Sb=new ZR(a);g.C(this,this.Sb);this.Le=new $R(a);g.C(this,this.Le);this.hc=X(function(){return new PR});
g.C(this,this.hc);this.Oe=X(function(){return new QR(f.oa)});
g.C(this,this.Oe);this.xe=X(function(){return new xR(f.Hb)});
g.C(this,this.xe);this.Ae=X(function(){return new yR(f.Da,f.Sb,f.eb)});
g.C(this,this.Ae);this.PE=X(function(){return new GR(f.Mb,f.oa,f.Da,f.Bb)});
g.C(this,this.PE);this.Me=X(function(){return new MR(a,f.Sb,f.Da,f.eb,f.cd,f.Uc,f.Ba,f.oa,f.vb,f.Ic,f.lc,f.fd,f.Xb,f.md)});
g.C(this,this.Me);this.Ej=new aS(a,this.ud,this.Ya,this.Ba,this.ya,this.Ra);g.C(this,this.Ej);this.Mc={em:new Map([["opportunity_type_ad_break_service_response_received",this.Hb],["opportunity_type_player_bytes_media_layout_entered",this.Ne],["opportunity_type_player_response_received",this.Fb],["opportunity_type_throttled_ad_break_request_slot_reentry",this.Nc]]),hj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ye],["SLOT_TYPE_FORECASTING",this.kc],["SLOT_TYPE_IN_PLAYER",this.kc],["SLOT_TYPE_PLAYER_BYTES",
this.kc]]),mg:new Map([["trigger_type_skip_requested",this.gd],["trigger_type_layout_id_entered",this.Ta],["trigger_type_layout_id_exited",this.Ta],["trigger_type_layout_exited_for_reason",this.Ta],["trigger_type_on_different_layout_id_entered",this.Ta],["trigger_type_slot_id_entered",this.Ta],["trigger_type_slot_id_exited",this.Ta],["trigger_type_slot_id_fulfilled_empty",this.Ta],["trigger_type_slot_id_fulfilled_non_empty",this.Ta],["trigger_type_slot_id_scheduled",this.Ta],["trigger_type_before_content_video_id_started",
this.hd],["trigger_type_after_content_video_id_ended",this.Tc],["trigger_type_media_time_range",this.Tc],["trigger_type_on_layout_self_exit_requested",this.Sb],["trigger_type_on_element_self_enter_requested",this.Sb],["trigger_type_on_new_playback_after_content_video_id",this.hd],["trigger_type_on_opportunity_received",this.Le]]),Ij:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.hc],["SLOT_TYPE_ABOVE_FEED",this.hc],["SLOT_TYPE_FORECASTING",this.hc],["SLOT_TYPE_IN_PLAYER",this.hc],["SLOT_TYPE_PLAYER_BYTES",
this.Oe]]),tj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.xe],["SLOT_TYPE_FORECASTING",this.Ae],["SLOT_TYPE_IN_PLAYER",this.PE],["SLOT_TYPE_PLAYER_BYTES",this.Me]])};this.listeners=[this.Bb.get()];this.qe={Hb:this.Hb,Xk:null,vj:this.ud.get(),Wf:this.ya.get(),Gk:this.oa.get(),Fb:this.Fb,uj:null,uh:this.gd,dg:this.Bb.get()}};
Yra=function(a,b,c,d,e){g.B.call(this);var f=this;this.Ra=X(function(){return new GQ});
g.C(this,this.Ra);this.wb=X(function(){return new LQ(f.ya,f.Ra)});
g.C(this,this.wb);this.Bb=X(function(){return new FQ});
g.C(this,this.Bb);this.nb=X(function(){return new AQ(a)});
g.C(this,this.nb);this.ab=X(function(){return new XQ(f.Ra)});
g.C(this,this.ab);this.Dc=X(function(){return new $Q});
g.C(this,this.Dc);this.fd=X(function(){return new CJ(b.T())});
g.C(this,this.fd);this.Mb=X(function(){return new cS(b)});
g.C(this,this.Mb);this.Xb=X(function(){return new qR(e)});
g.C(this,this.Xb);this.Ic=X(function(){return new qL(b)});
g.C(this,this.Ic);this.vb=X(function(){return new bR(b)});
g.C(this,this.vb);this.Uc=X(function(){return new eS(b)});
g.C(this,this.Uc);this.lc=X(function(){return new fS(b)});
g.C(this,this.lc);this.ya=X(function(){return new cR(b)});
g.C(this,this.ya);this.Qc=X(function(){return new bS(d,f.ya)});
g.C(this,this.Qc);this.Ya=X(function(){return new NP(f.ya)});
g.C(this,this.Ya);this.fc=X(function(){return new yQ(f.ab,f.wb,f.Ya,null,null)});
g.C(this,this.fc);this.md=X(function(){return new gS(b)});
g.C(this,this.md);this.ud=X(function(){return new hS});
g.C(this,this.ud);this.Ba=X(function(){return new oR(b,f.Dc)});
g.C(this,this.Ba);this.Ab=new ZQ(this.ya,this.Ya,this.Ba);g.C(this,this.Ab);this.oa=X(function(){return new pR(b)});
g.C(this,this.oa);this.eb=X(function(){return new fR(f.oa,b)});
g.C(this,this.eb);this.Da=X(function(){return new iR(b,f.Bb,f.eb,f.Ba)});
g.C(this,this.Da);this.cd=X(function(){return new rR});
g.C(this,this.cd);this.Ne=new NR(OR,yS,function(l,m,n,p){return MQ(f.wb.get(),l,m,n,p)},this.nb,this.ab,this.Ya,this.ya,this.Ba);
g.C(this,this.Ne);this.Fb=new nI(this.nb,this.fc,c,this.ya,a,this.Ba);g.C(this,this.Fb);var h=new aR(b,this.Fb,this.oa,this.ya);this.Ad=X(function(){return h});
this.Cj=h;this.Nc=new EQ(this.nb,this.ab,this.vb,this.Ad);g.C(this,this.Nc);this.Hb=new lH(this.nb,this.ab,this.fc,this.Ba,this.Nc,c);g.C(this,this.Hb);this.ye=X(function(){return new uR(f.Qc,f.wb,f.Ya,f.ya)});
g.C(this,this.ye);this.kc=X(function(){return new vR});
g.C(this,this.kc);this.gd=new TR(a,this.Mb);g.C(this,this.gd);this.Ta=new UR(a);g.C(this,this.Ta);this.hd=new VR(a,this.Ad);g.C(this,this.hd);this.Tc=new WR(a,this.vb,this.oa,this.Ba);g.C(this,this.Tc);this.Sb=new ZR(a);g.C(this,this.Sb);this.Le=new $R(a);g.C(this,this.Le);this.hc=X(function(){return new PR});
g.C(this,this.hc);this.Oe=X(function(){return new QR(f.oa)});
g.C(this,this.Oe);this.xe=X(function(){return new xR(f.Hb)});
g.C(this,this.xe);this.Ae=X(function(){return new yR(f.Da,f.Sb,f.eb)});
g.C(this,this.Ae);this.fh=X(function(){return new GR(f.Mb,f.oa,f.Da,f.Bb)});
g.C(this,this.fh);this.Me=X(function(){return new MR(a,f.Sb,f.Da,f.eb,f.cd,f.Uc,f.Ba,f.oa,f.vb,f.Ic,f.lc,f.fd,f.Xb,f.md)});
g.C(this,this.Me);this.Ej=new aS(a,this.ud,this.Ya,this.Ba,this.ya,this.Ra);g.C(this,this.Ej);this.Mc={em:new Map([["opportunity_type_ad_break_service_response_received",this.Hb],["opportunity_type_player_bytes_media_layout_entered",this.Ne],["opportunity_type_player_response_received",this.Fb],["opportunity_type_throttled_ad_break_request_slot_reentry",this.Nc]]),hj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ye],["SLOT_TYPE_FORECASTING",this.kc],["SLOT_TYPE_IN_PLAYER",this.kc],["SLOT_TYPE_PLAYER_BYTES",
this.kc]]),mg:new Map([["trigger_type_skip_requested",this.gd],["trigger_type_layout_id_entered",this.Ta],["trigger_type_layout_id_exited",this.Ta],["trigger_type_layout_exited_for_reason",this.Ta],["trigger_type_on_different_layout_id_entered",this.Ta],["trigger_type_slot_id_entered",this.Ta],["trigger_type_slot_id_exited",this.Ta],["trigger_type_slot_id_fulfilled_empty",this.Ta],["trigger_type_slot_id_fulfilled_non_empty",this.Ta],["trigger_type_slot_id_scheduled",this.Ta],["trigger_type_before_content_video_id_started",
this.hd],["trigger_type_media_time_range",this.Tc],["trigger_type_on_layout_self_exit_requested",this.Sb],["trigger_type_on_element_self_enter_requested",this.Sb],["trigger_type_on_new_playback_after_content_video_id",this.hd],["trigger_type_on_opportunity_received",this.Le]]),Ij:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.hc],["SLOT_TYPE_FORECASTING",this.hc],["SLOT_TYPE_IN_PLAYER",this.hc],["SLOT_TYPE_PLAYER_BYTES",this.Oe]]),tj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.xe],["SLOT_TYPE_FORECASTING",
this.Ae],["SLOT_TYPE_IN_PLAYER",this.fh],["SLOT_TYPE_PLAYER_BYTES",this.Me]])};this.listeners=[this.Bb.get()];this.qe={Hb:this.Hb,Xk:null,vj:this.ud.get(),Wf:this.ya.get(),Gk:this.oa.get(),Fb:this.Fb,uj:null,uh:this.gd,dg:this.Bb.get()}};
zS=function(a,b,c,d,e,f,h,l){ER.call(this,a,b,c,d,e,f,h);this.Cm=l};
Zra=function(a,b,c,d,e){this.Mb=a;this.oa=b;this.Da=c;this.td=d;this.Cm=e};
$ra=function(a,b,c,d,e){g.B.call(this);var f=this;this.Ra=X(function(){return new GQ});
g.C(this,this.Ra);this.wb=X(function(){return new LQ(f.ya,f.Ra)});
g.C(this,this.wb);this.Bb=X(function(){return new FQ});
g.C(this,this.Bb);this.nb=X(function(){return new AQ(a)});
g.C(this,this.nb);this.ab=X(function(){return new XQ(f.Ra)});
g.C(this,this.ab);this.Dc=X(function(){return new $Q});
g.C(this,this.Dc);this.Cm=X(function(){return new Ara(b)});
g.C(this,this.Cm);this.fd=X(function(){return new CJ(b.T())});
g.C(this,this.fd);this.Mb=X(function(){return new cS(b)});
g.C(this,this.Mb);this.Xb=X(function(){return new qR(e)});
g.C(this,this.Xb);this.Ic=X(function(){return new qL(b)});
g.C(this,this.Ic);this.vb=X(function(){return new bR(b)});
g.C(this,this.vb);this.Uc=X(function(){return new eS(b)});
g.C(this,this.Uc);this.lc=X(function(){return new fS(b)});
g.C(this,this.lc);this.ya=X(function(){return new cR(b)});
g.C(this,this.ya);this.Qc=X(function(){return new bS(d,f.ya)});
g.C(this,this.Qc);this.Ya=X(function(){return new NP(f.ya)});
g.C(this,this.Ya);this.fc=X(function(){return new yQ(f.ab,f.wb,f.Ya,null,null)});
g.C(this,this.fc);this.md=X(function(){return new gS(b)});
g.C(this,this.md);this.ud=X(function(){return new hS});
g.C(this,this.ud);this.Ba=X(function(){return new oR(b,f.Dc)});
g.C(this,this.Ba);this.Ab=new ZQ(this.ya,this.Ya,this.Ba);g.C(this,this.Ab);this.oa=X(function(){return new pR(b)});
g.C(this,this.oa);this.eb=X(function(){return new fR(f.oa,b)});
g.C(this,this.eb);this.Da=X(function(){return new iR(b,f.Bb,f.eb,f.Ba)});
g.C(this,this.Da);this.cd=X(function(){return new rR});
g.C(this,this.cd);this.Ne=new NR(qra,yS,function(l,m,n,p){var r=f.wb.get(),t=Hqa(n);t.push(new xH(n.YH));t.push(new yH(n.bI));return Iqa(l,m,n,new HP(t),p,r.Ra.get())},this.nb,this.ab,this.Ya,this.ya,this.Ba);
g.C(this,this.Ne);this.Fb=new nI(this.nb,this.fc,c,this.ya,a,this.Ba);g.C(this,this.Fb);var h=new aR(b,this.Fb,this.oa,this.ya);this.Ad=X(function(){return h});
this.Cj=h;this.Nc=new EQ(this.nb,this.ab,this.vb,this.Ad);g.C(this,this.Nc);this.Hb=new lH(this.nb,this.ab,this.fc,this.Ba,this.Nc,c);g.C(this,this.Hb);this.ye=X(function(){return new uR(f.Qc,f.wb,f.Ya,f.ya)});
g.C(this,this.ye);this.kc=X(function(){return new vR});
g.C(this,this.kc);this.gd=new TR(a,this.Mb);g.C(this,this.gd);this.Ta=new UR(a);g.C(this,this.Ta);this.hd=new VR(a,this.Ad);g.C(this,this.hd);this.Tc=new WR(a,this.vb,this.oa,this.Ba);g.C(this,this.Tc);this.Sb=new ZR(a);g.C(this,this.Sb);this.Le=new $R(a);g.C(this,this.Le);this.hc=X(function(){return new PR});
g.C(this,this.hc);this.Oe=X(function(){return new QR(f.oa)});
g.C(this,this.Oe);this.xe=X(function(){return new xR(f.Hb)});
g.C(this,this.xe);this.Ae=X(function(){return new yR(f.Da,f.Sb,f.eb)});
g.C(this,this.Ae);this.Me=X(function(){return new MR(a,f.Sb,f.Da,f.eb,f.cd,f.Uc,f.Ba,f.oa,f.vb,f.Ic,f.lc,f.fd,f.Xb,f.md)});
g.C(this,this.Me);this.HG=X(function(){return new Zra(f.Mb,f.oa,f.Da,f.Bb,f.Cm)});
g.C(this,this.HG);this.Ej=new aS(a,this.ud,this.Ya,this.Ba,this.ya,this.Ra);g.C(this,this.Ej);this.Mc={em:new Map([["opportunity_type_ad_break_service_response_received",this.Hb],["opportunity_type_player_bytes_media_layout_entered",this.Ne],["opportunity_type_player_response_received",this.Fb],["opportunity_type_throttled_ad_break_request_slot_reentry",this.Nc]]),hj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ye],["SLOT_TYPE_FORECASTING",this.kc],["SLOT_TYPE_IN_PLAYER",this.kc],["SLOT_TYPE_PLAYER_BYTES",
this.kc]]),mg:new Map([["trigger_type_skip_requested",this.gd],["trigger_type_layout_id_entered",this.Ta],["trigger_type_layout_id_exited",this.Ta],["trigger_type_layout_exited_for_reason",this.Ta],["trigger_type_on_different_layout_id_entered",this.Ta],["trigger_type_slot_id_entered",this.Ta],["trigger_type_slot_id_exited",this.Ta],["trigger_type_slot_id_fulfilled_empty",this.Ta],["trigger_type_slot_id_fulfilled_non_empty",this.Ta],["trigger_type_slot_id_scheduled",this.Ta],["trigger_type_before_content_video_id_started",
this.hd],["trigger_type_after_content_video_id_ended",this.Tc],["trigger_type_media_time_range",this.Tc],["trigger_type_on_layout_self_exit_requested",this.Sb],["trigger_type_on_element_self_enter_requested",this.Sb],["trigger_type_on_new_playback_after_content_video_id",this.hd],["trigger_type_on_opportunity_received",this.Le]]),Ij:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.hc],["SLOT_TYPE_FORECASTING",this.hc],["SLOT_TYPE_IN_PLAYER",this.hc],["SLOT_TYPE_PLAYER_BYTES",this.Oe]]),tj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.xe],["SLOT_TYPE_FORECASTING",this.Ae],["SLOT_TYPE_IN_PLAYER",this.HG],["SLOT_TYPE_PLAYER_BYTES",this.Me]])};this.listeners=[this.Bb.get()];this.qe={Hb:this.Hb,Xk:null,vj:this.ud.get(),Wf:this.ya.get(),Gk:this.oa.get(),Fb:this.Fb,uj:null,uh:this.gd,dg:this.Bb.get()}};
asa=function(a,b,c,d){this.Mb=a;this.oa=b;this.Da=c;this.td=d};
bsa=function(a,b,c,d,e){g.B.call(this);var f=this;this.Ra=X(function(){return new GQ});
g.C(this,this.Ra);this.wb=X(function(){return new LQ(f.ya,f.Ra)});
g.C(this,this.wb);this.Bb=X(function(){return new FQ});
g.C(this,this.Bb);this.nb=X(function(){return new AQ(a)});
g.C(this,this.nb);this.ab=X(function(){return new XQ(f.Ra)});
g.C(this,this.ab);this.Dc=X(function(){return new $Q});
g.C(this,this.Dc);this.fd=X(function(){return new CJ(b.T())});
g.C(this,this.fd);this.Mb=X(function(){return new cS(b)});
g.C(this,this.Mb);this.Xb=X(function(){return new qR(e)});
g.C(this,this.Xb);this.Ic=X(function(){return new qL(b)});
g.C(this,this.Ic);this.vb=X(function(){return new bR(b)});
g.C(this,this.vb);this.Uc=X(function(){return new eS(b)});
g.C(this,this.Uc);this.lc=X(function(){return new fS(b)});
g.C(this,this.lc);this.ya=X(function(){return new cR(b)});
g.C(this,this.ya);this.Qc=X(function(){return new bS(d,f.ya)});
g.C(this,this.Qc);this.Ya=X(function(){return new NP(f.ya)});
g.C(this,this.Ya);this.fc=X(function(){return new yQ(f.ab,f.wb,f.Ya,null,f.Zh,3)});
g.C(this,this.fc);this.md=X(function(){return new gS(b)});
g.C(this,this.md);this.Ba=X(function(){return new oR(b,f.Dc)});
g.C(this,this.Ba);this.Ab=new ZQ(this.ya,this.Ya,this.Ba);g.C(this,this.Ab);this.Hd=X(function(){return new nS(b,f.Ba,f.ya,f.Da)});
g.C(this,this.Hd);this.Nf=X(function(){return new Nra(b)});
g.C(this,this.Nf);this.oa=X(function(){return new pR(b)});
g.C(this,this.oa);this.cd=X(function(){return new rR});
this.eb=X(function(){return new fR(f.oa,b)});
g.C(this,this.eb);this.Da=X(function(){return new iR(b,f.Bb,f.eb,f.Ba)});
g.C(this,this.Da);this.Fb=new nI(this.nb,this.fc,c,this.ya,a,this.Ba);g.C(this,this.Fb);var h=new aR(b,this.Fb,this.oa,this.ya,this.Hd);this.Ad=X(function(){return h});
this.Cj=h;this.Ne=new NR(OR,yS,function(l,m,n,p){return MQ(f.wb.get(),l,m,n,p)},this.nb,this.ab,this.Ya,this.ya,this.Ba);
g.C(this,this.Ne);this.Zh=new lS(this.nb,this.ab,this.Ba,this.Ad,this.Hd,this.oa);g.C(this,this.Zh);this.Nc=new EQ(this.nb,this.ab,this.vb,this.Ad);g.C(this,this.Nc);this.Hb=new lH(this.nb,this.ab,this.fc,this.Ba,this.Nc,c);g.C(this,this.Hb);this.ye=X(function(){return new uR(f.Qc,f.wb,f.Ya,f.ya)});
g.C(this,this.ye);this.kc=X(function(){return new vR});
g.C(this,this.kc);this.gd=new TR(a,this.Mb);g.C(this,this.gd);this.Ta=new UR(a);g.C(this,this.Ta);this.hd=new VR(a,this.Ad);g.C(this,this.hd);this.Tc=new WR(a,this.vb,this.oa,this.Ba);g.C(this,this.Tc);this.Pl=new mS(a,this.Ba);g.C(this,this.Pl);this.Sb=new ZR(a);g.C(this,this.Sb);this.Le=new $R(a);g.C(this,this.Le);this.hc=X(function(){return new PR});
g.C(this,this.hc);this.Oe=X(function(){return new QR(f.oa)});
g.C(this,this.Oe);this.xe=X(function(){return new xR(f.Hb)});
g.C(this,this.xe);this.Ae=X(function(){return new yR(f.Da,f.Sb,f.eb)});
g.C(this,this.Ae);this.Me=X(function(){return new kS(a,f.Sb,f.Ba,f.Nf,f.oa,f.Da,f.Dc,f.Hd,f.eb,f.cd,f.Uc,f.vb,f.Ic,f.lc,f.fd,f.Xb,f.md)});
g.C(this,this.Me);this.fh=X(function(){return new asa(f.Mb,f.oa,f.Da,f.Bb)});
g.C(this,this.fh);this.Mc={em:new Map([["opportunity_type_ad_break_service_response_received",this.Hb],["opportunity_type_live_stream_break_signal",this.Zh],["opportunity_type_player_bytes_media_layout_entered",this.Ne],["opportunity_type_player_response_received",this.Fb],["opportunity_type_throttled_ad_break_request_slot_reentry",this.Nc]]),hj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ye],["SLOT_TYPE_FORECASTING",this.kc],["SLOT_TYPE_IN_PLAYER",this.kc],["SLOT_TYPE_PLAYER_BYTES",this.kc]]),mg:new Map([["trigger_type_skip_requested",
this.gd],["trigger_type_layout_id_entered",this.Ta],["trigger_type_layout_id_exited",this.Ta],["trigger_type_layout_exited_for_reason",this.Ta],["trigger_type_on_different_layout_id_entered",this.Ta],["trigger_type_slot_id_entered",this.Ta],["trigger_type_slot_id_exited",this.Ta],["trigger_type_slot_id_fulfilled_empty",this.Ta],["trigger_type_slot_id_fulfilled_non_empty",this.Ta],["trigger_type_slot_id_scheduled",this.Ta],["trigger_type_before_content_video_id_started",this.hd],["trigger_type_after_content_video_id_ended",
this.Tc],["trigger_type_media_time_range",this.Tc],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Pl],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Pl],["trigger_type_on_layout_self_exit_requested",this.Sb],["trigger_type_on_element_self_enter_requested",this.Sb],["trigger_type_on_new_playback_after_content_video_id",this.hd],["trigger_type_on_opportunity_received",this.Le]]),Ij:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.hc],["SLOT_TYPE_FORECASTING",this.hc],["SLOT_TYPE_IN_PLAYER",this.hc],["SLOT_TYPE_PLAYER_BYTES",
this.Oe]]),tj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.xe],["SLOT_TYPE_FORECASTING",this.Ae],["SLOT_TYPE_PLAYER_BYTES",this.Me],["SLOT_TYPE_IN_PLAYER",this.fh]])};this.listeners=[this.Bb.get()];this.qe={Hb:this.Hb,Xk:null,vj:null,Wf:this.ya.get(),Gk:this.oa.get(),Fb:this.Fb,uj:null,uh:this.gd,dg:this.Bb.get()}};
dsa=function(a,b,c,d){g.B.call(this);var e=this;this.u=csa(function(){return e.B},a,b,c,d);
g.C(this,this.u);this.B=(new Vpa(this.u)).B;g.C(this,this.B)};
csa=function(a,b,c,d,e){try{var f=b.T();if(g.eD(f))var h=new Vra(a,b,c,d,e);else if(g.iD(f))h=new Wra(a,b,c,d,e);else if(jD(f))h=new Yra(a,b,c,d,e);else if(WC(f))h=new Xra(a,b,c,d,e);else if(hD(f))h=new $ra(a,b,c,d,e);else if(g.VC(f))h=new bsa(a,b,c,d,e);else throw new TypeError("Unknown web interface");return h}catch(l){return e=b.T(),T("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:e.deviceParams.cplatform,"interface":e.deviceParams.c,P3:e.deviceParams.cver,O3:e.deviceParams.ctheme,
N3:e.deviceParams.cplayer,d4:e.playerStyle}),new bra(a,b,c,d)}};
g.AS=function(a){g.O.call(this);this.loaded=!1;this.player=a};
BS=function(a){g.AS.call(this,a);var b=this;this.u=null;this.D=new JG(this.player);this.C=null;this.F=function(){function d(){return b.u}
if(null!=b.C)return b.C;var e=jM({KA:a.getVideoData(1)});e=new vpa({ZH:new kH(d,b.B.u.qe.Xk,b.B.B),oo:e.OI(),aI:d,kI:d,pM:d,uh:b.B.u.qe.uh,Ah:e.pw(),J:b.player,Wf:b.B.u.qe.Wf,Da:b.B.u.Da,dg:b.B.u.qe.dg});b.C=e.B;return b.C};
this.B=new dsa(this.player,this,this.D,this.F);g.C(this,this.B);this.created=!1;var c=a.T();!SC(c)||g.VC(c)||WC(c)||(c=function(){return b.u},g.C(this,new vP(a,c)),g.C(this,new lN(a,c)))};
esa=function(a){var b=a.B.u.qe.Fb,c=b.u().u;c=cQ(c,"SLOT_TYPE_PLAYER_BYTES_1");var d=[];c=g.q(c.values());for(var e=c.next();!e.done;e=c.next())d.push(e.value.slot);b=oH(b.Ba.get(),1).clientPlaybackNonce;var f=!1;c="";e=void 0;d=g.q(d);for(var h=d.next();!h.done;h=d.next()){h=h.value;var l=iI(h);if(l&&l===b){if(f){f=iI(h);var m=pI(h);T("More than 1 preroll playerBytes slot detected",void 0,void 0,{slots_match_cpn:c===f,prev_matches_cpn:c===b,collision_matches_cpn:f===b,prev_layout_type:e,collision_layout_type:m})}f=
!0;c=l;e=pI(h)}}(b=f)||(b=a.u,b=!RM(b,TM(b)));b||a.B.u.qe.Gk.u()};
fsa=function(a){a=g.q(a.B.u.qe.dg.u.keys());for(var b=a.next();!b.done;b=a.next())if(b=b.value,"SLOT_TYPE_PLAYER_BYTES"===b.Wa&&"core"===b.Za)return!0;return!1};
nH=function(a,b,c){c=void 0===c?"":c;var d=a.B.u.qe.Wf,e=a.player.getVideoData(1);e=e&&e.getPlayerResponse()||{};d=gsa(b,d,e&&e.playerConfig&&e.playerConfig.daiConfig&&e.playerConfig.daiConfig.enableDai||!1);Tma(a.B.u.qe.Hb,c,d.Dn,b);a.u&&0<d.kl.length&&(a=a.u,b=d.kl,b=MM(a,b),b=NM(a,b),b=OM(a,b)||[],a.C&&g.Q(a.u.T().experiments,"html5_dai_debug_bulleit_cue_range")&&a.Aa.push.apply(a.Aa,g.la(b)))};
gsa=function(a,b,c){var d={kl:[],Dn:[]};a=g.q(a);for(var e=a.next();!e.done;e=a.next())if((e=e.value)&&null!=e.renderer){var f=e.renderer,h=e.config&&e.config.adPlacementConfig&&e.config.adPlacementConfig.kind,l=b;if(c)f=IM(l);else if(null!=f.clientForecastingAdRenderer||null!=f.adBreakServiceRenderer&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"!==h)f=!0;else if(null!=f.actionCompanionAdRenderer)f=!!f.actionCompanionAdRenderer.controlFlowExperimentEnabled;else if(null!=f.imageCompanionAdRenderer)f=!!f.imageCompanionAdRenderer.controlFlowExperimentEnabled;
else if(null!=f.shoppingCompanionCarouselRenderer)f=!!f.shoppingCompanionCarouselRenderer.controlFlowExperimentEnabled;else if(null!=f.invideoOverlayAdRenderer)f=dR(l);else if(null!=f.instreamVideoAdRenderer||null!=f.remoteSlotsRenderer)f=g.Q(l.J.T().experiments,"html5_enable_single_video_vod_ivar_on_pacf");else if(f.linearAdSequenceRenderer&&f.linearAdSequenceRenderer.linearAds)if(f.linearAdSequenceRenderer.adStart)f=!1;else{if(h=g.Q(l.J.T().experiments,"html5_enable_composite_vod_lsar_ad_intro_on_pacf"))a:if(f=
f.linearAdSequenceRenderer.linearAds,1>=f.length||!f[0].adIntroRenderer)h=!1;else{for(h=1;h<f.length;h++)if(!f[h].instreamVideoAdRenderer){h=!1;break a}h=!0}f=h}else f=!1;f?d.Dn.push(e):d.kl.push(e)}return d};
HS=function(a){if(!CS){var b,c=new Uint8Array(256),d=new Uint8Array(256);var e=1;for(b=0;256>b;b++)c[e]=b,d[b]=e,e^=e<<1^(e>>7&&283);CS=new Uint8Array(256);DS=[];ES=[];FS=[];GS=[];for(var f=0;256>f;f++){e=f?d[255^c[f]]:0;e^=e<<1^e<<2^e<<3^e<<4;e=e&255^e>>>8^99;CS[f]=e;b=e<<1^(e>>7&&283);var h=b^e;DS.push(b<<24|e<<16|e<<8|h);ES.push(h<<24|DS[f]>>>8);FS.push(e<<24|ES[f]>>>8);GS.push(e<<24|FS[f]>>>8)}}this.u=[0,0,0,0];this.C=new Uint8Array(16);e=[];for(c=0;4>c;c++)e.push(a[4*c]<<24|a[4*c+1]<<16|a[4*
c+2]<<8|a[4*c+3]);for(d=1;44>c;c++)a=e[c-1],c%4||(a=(CS[a>>16&255]^d)<<24|CS[a>>8&255]<<16|CS[a&255]<<8|CS[a>>>24],d=d<<1^(d>>7&&283)),e.push(e[c-4]^a);this.D=e;this.B=16};
hsa=function(a,b){for(var c=0;4>c;c++)a.u[c]=b[4*c]<<24|b[4*c+1]<<16|b[4*c+2]<<8|b[4*c+3];a.B=16};
isa=function(a){for(var b=a.D,c=a.u[0]^b[0],d=a.u[1]^b[1],e=a.u[2]^b[2],f=a.u[3]^b[3],h=3;0<=h&&!(a.u[h]=-~a.u[h]);h--);for(h=4;40>h;){var l=DS[c>>>24]^ES[d>>16&255]^FS[e>>8&255]^GS[f&255]^b[h++];var m=DS[d>>>24]^ES[e>>16&255]^FS[f>>8&255]^GS[c&255]^b[h++];var n=DS[e>>>24]^ES[f>>16&255]^FS[c>>8&255]^GS[d&255]^b[h++];f=DS[f>>>24]^ES[c>>16&255]^FS[d>>8&255]^GS[e&255]^b[h++];c=l;d=m;e=n}a=a.C;c=[c,d,e,f];for(d=0;16>d;)a[d++]=CS[c[0]>>>24]^b[h]>>>24,a[d++]=CS[c[1]>>16&255]^b[h]>>16&255,a[d++]=CS[c[2]>>
8&255]^b[h]>>8&255,a[d++]=CS[c[3]&255]^b[h++]&255,c.push(c.shift())};
g.IS=function(){g.B.call(this);this.C=null;this.K=this.G=!1;this.F=new g.fm;g.C(this,this.F)};
JS=function(a){a=a.Xo();return 1>a.length?NaN:a.end(a.length-1)};
jsa=function(a,b){a.C&&null!==b&&b.u===a.C.u||(a.C&&a.C.dispose(),a.C=b)};
KS=function(a){return Dy(a.qf(),a.getCurrentTime())};
ksa=function(a,b){if(0==a.gg()||0<a.oh())return!1;var c=0<a.getCurrentTime();if(0<=b){var d=a.Xo();if(d.length||!c)return Ay(d,b)}return c};
lsa=function(a){var b=a.qf();return 0<Cy(b)&&a.getDuration()?By(b,a.getCurrentTime()):0};
msa=function(a){var b=a.qf();return 0<Cy(b)&&a.getDuration()?b.end(b.length-1):0};
LS=function(a){var b=a.getDuration();return Infinity==b?1:b?lsa(a)/b:0};
MS=function(a){switch(a.oh()){case 2:return"progressive.net.retryexhausted";case 3:return"fmt.decode";case 4:return"fmt.unplayable";case 5:return"drm.unavailable";case 1E3:return"capability.changed";default:return null}};
NS=function(a,b,c){g.Il.call(this,b,a);this.B=c||null};
g.OS=function(a){g.IS.call(this);this.u=a;this.B={}};
g.PS=function(a,b,c,d){d=void 0===d?!1:d;g.IS.call(this);this.u=a;this.B=b;this.D=c;this.P=d};
QS=function(){this.u=[];this.B=[];this.C=[]};
osa=function(a,b,c){c=g.Ee(c?"AUDIO":"VIDEO");g.Wa(c,nsa);g.$o(c,"loadeddata",(0,g.z)(c.iI,c));MC&&6<=sG&&g.$o(c,"webkitbeginfullscreen",(0,g.z)(c.play,c));a.B.push(c);b?a.C.push(c):RS(a,c);return c};
RS=function(a,b){g.nb(a.B,b)&&!g.nb(a.u,b)&&(b.src||b.load(),g.rb(a.C,b)||a.u.push(b))};
psa=function(){eB("bg_l","player_att");SS=(0,g.N)()};
qsa=function(a){a=void 0===a?{}:a;var b=Mr;a=void 0===a?{}:a;return b.u?b.u.invoke(void 0,void 0,a):null};
rsa=function(a){a=void 0===a?{}:a;return Oea(a)};
ssa=function(a,b){var c=this;this.videoData=a;this.C=b;var d={};this.B=(d.c1a=function(){if(TS(c)){var e="";c.videoData&&c.videoData.Rg&&(e=c.videoData.Rg+("&r1b="+c.videoData.clientPlaybackNonce));var f={};e=(f.atr_challenge=e,f);eB("bg_v","player_att");e=c.C?qsa(e):g.Na("yt.abuse.player.invokeBotguard")(e);eB("bg_s","player_att");e=e?"r1a="+e:"r1c=2"}else eB("bg_e","player_att"),e="r1c=1";return e},d.c3a=function(e){return"r3a="+Math.floor(c.videoData.lengthSeconds%Number(e.c3a)).toString()},d.c6a=
function(e){e=Number(e.c);
var f=c.C?parseInt(g.K("DCLKSTAT",0),10):(f=g.Na("yt.abuse.dclkstatus.checkDclkStatus"))?f():NaN;return"r6a="+(e^f)},d);
this.videoData&&this.videoData.Rg?this.u=Sp(this.videoData.Rg):this.u={}};
tsa=function(a){if(a.videoData&&a.videoData.Rg){for(var b=[a.videoData.Rg],c=g.q(Object.keys(a.B)),d=c.next();!d.done;d=c.next())d=d.value,a.u[d]&&a.B[d]&&(d=a.B[d](a.u))&&b.push(d);return b.join("&")}return null};
vsa=function(a){var b={};Object.assign(b,a.B);"c1b"in a.u&&(b.c1a=function(){return usa(a)});
if(a.videoData&&a.videoData.Rg){for(var c=[a.videoData.Rg],d=g.q(Object.keys(b)),e=d.next();!e.done;e=d.next())e=e.value,a.u[e]&&b[e]&&(e=b[e](a.u))&&c.push(e);return new Promise(function(f,h){Promise.all(c).then(function(l){f(l.filter(function(m){return!!m}).join("&"))},h)})}return Promise.resolve(null)};
TS=function(a){return a.C?Mr.Fd():(a=g.Na("yt.abuse.player.botguardInitialized"))&&a()};
usa=function(a){if(!TS(a))return eB("bg_e","player_att"),Promise.resolve("r1c=1");var b="";a.videoData&&a.videoData.Rg&&(b=a.videoData.Rg+("&r1b="+a.videoData.clientPlaybackNonce));var c={},d=(c.atr_challenge=b,c),e=a.C?rsa:g.Na("yt.abuse.player.invokeBotguardAsync");return new Promise(function(f){eB("bg_v","player_att");e(d).then(function(h){h?(eB("bg_s","player_att"),f("r1a="+h)):(eB("bg_e","player_att"),f("r1c=2"))},function(){eB("bg_e","player_att");
f("r1c=3")})})};
wsa=function(a){var b=a.interval,c=a.gq,d=a.IG,e=a.drmSessionId;this.url=a.url;this.interval=b;this.gq=c;this.IG=d;this.drmSessionId=e};
US=function(){g.O.apply(this,arguments)};
VS=function(a,b,c,d){US.call(this);var e=this;this.C=-1;this.u={};this.D=new g.F(this.F,0,this);g.C(this,this.D);this.B=new g.F(function(){e.la()||(e.D.start(Math.random()*c),e.B.start(b))},a,this);
g.C(this,this.B);d.subscribe("fairplay_next_need_key_info",this.G,this)};
xsa=function(a){a=a.subarray(4);a=new Uint16Array(a.buffer,a.byteOffset,a.byteLength/2);return String.fromCharCode.apply(null,a)};
ysa=function(a,b,c){a=a.match(vd);for(var d=[],e=g.q(a[6].split("&")),f=e.next();!f.done;f=e.next())f=f.value,0===f.indexOf("cpi=")?d.push("cpi="+b.toString()):0===f.indexOf("ek=")?d.push("ek="+ld(c)):d.push(f);a[6]="?"+d.join("&");b="skd://"+a.slice(2).join("");a=2*b.length;c=new Uint8Array(a+4);c[0]=a%256;c[1]=(a-c[0])/256;for(a=0;a<b.length;++a)c[2*a+4]=b.charCodeAt(a);return c};
zsa=function(a,b){this.statusCode=a;this.message=b;this.u=this.heartbeatParams=this.errorMessage=null;this.B={};this.nextFairplayKeyId=null};
Bsa=function(a){var b=bu(a.subarray(0,16384)),c=b.indexOf("\r\n\r\n");if(-1===c)return null;var d=b.indexOf("\r\n"),e=b.slice(0,d).match(/^GLS\/1.\d ([0-9]{1,3}) (\w+)$/);if(null==e)return null;e=e[1];isFinite(e)&&(e=String(e));e="string"===typeof e?/^\s*-?0x/i.test(e)?parseInt(e,16):parseInt(e,10):NaN;b=lu(b.slice(d+2));if(null==b)return null;a=new zsa(e,a.subarray(c+4));0!==a.statusCode&&(a.errorMessage=g.yL(a.statusCode));if(c=b["Heartbeat-Url"])a.heartbeatParams=new wsa({url:c,interval:Number(b["Heartbeat-Interval-Secs"])||
60,gq:Number(b["Heartbeat-Num-Retries"])||4});if(c=b["Authorized-Format-Types"])a.u=c.split(",");if(c=b["Key-Ids"])a.B=Asa(c);a.nextFairplayKeyId=b["Next-Key-Id"];return a};
Asa=function(a){if(!a)return{};a=a.split(";");var b={};g.Fb(a,function(c){c=c.split(",");2===c.length&&(b[c[1]]=c[0])});
return b};
Csa=function(a,b){g.B.call(this);this.message=a;this.requestNumber=b;this.onError=this.onSuccess=null;this.u=new g.Jn(5E3,2E4,.2)};
Dsa=function(a,b,c){a.onSuccess=b;a.onError=c};
Fsa=function(a,b,c){var d={format:"RAW",method:"POST",postBody:a.message,responseType:"arraybuffer",withCredentials:!0,timeout:3E4,onSuccess:function(e){if(!a.la())if(0!==e.status&&e.response)if(VA("drm_net_r"),e=new Uint8Array(e.response),e=Bsa(e))a.onSuccess(e,a.requestNumber);else a.onError(a,"drm.net","t.p");else Esa(a,e)},
onError:function(e){Esa(a,e)}};
c&&(b=Qd(b,"access_token",c));g.lq(b,d)};
Esa=function(a,b){if(!a.la())a.onError(a,b.status?"drm.net.badstatus":"drm.net.connect","t.r;c."+String(b.status),b.status)};
Hsa=function(a,b,c,d){var e={timeout:3E4,onSuccess:function(f){if(!a.la()){VA("drm_net_r");var h="LICENSE_STATUS_OK"===f.status?0:9999,l=null;if(f.license)try{l=g.$e(f.license)}catch(x){}if(0!==h||l){l=new zsa(h,l);0!==h&&f.reason&&(l.errorMessage=f.reason);if(f.authorizedFormats){h={};for(var m=[],n={},p=g.q(f.authorizedFormats),r=p.next();!r.done;r=p.next())if(r=r.value,r.trackType&&r.keyId){var t=Gsa[r.trackType];if(t){"HD"===t&&f.isHd720&&(t="HD720");h[t]||(m.push(t),h[t]=!0);var w=null;try{w=
g.$e(r.keyId)}catch(x){}w&&(n[g.nf(w,4)]=t)}}l.u=m;l.B=n}f.nextFairplayKeyId&&(l.nextFairplayKeyId=f.nextFairplayKeyId);f=l}else f=null;if(f)a.onSuccess(f,a.requestNumber);else a.onError(a,"drm.net","t.p;p.i")}},
onError:function(f){if(!a.la())if(f&&f.error)f=f.error,a.onError(a,"drm.net.badstatus","t.r;p.i;c."+f.code+";s."+f.status,f.code);else a.onError(a,"drm.net.badstatus","t.r;p.i;c.n")},
kg:function(){a.onError(a,"drm.net","rt.req."+a.requestNumber)}};
d&&(e.lA="Bearer "+d);g.Hp(c,"player/get_drm_license",b,e)};
XS=function(a,b,c,d){g.O.call(this);this.videoData=a;this.C=b;this.da=c;this.sessionId=d;this.F={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.K=this.W=!1;this.D=null;this.ba=[];this.G=[];this.X=!1;this.u={};this.Y=NaN;this.status="";this.P=!1;this.B=a.Wc;this.cryptoPeriodIndex=c.cryptoPeriodIndex;a={};Object.assign(a,this.C.deviceParams);a.cpn=this.videoData.clientPlaybackNonce;this.videoData.Sf&&(a.vvt=this.videoData.Sf,this.videoData.mdxEnvironment&&(a.mdx_environment=this.videoData.mdxEnvironment));
this.C.he&&(a.authuser=this.C.he);this.C.pageId&&(a.pageid=this.C.pageId);isNaN(this.cryptoPeriodIndex)||(a.cpi=this.cryptoPeriodIndex.toString());if(this.videoData.ca("html5_send_device_type_in_drm_license_request")){var e;(e=(e=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.Vc))?e[1]:"")&&(a.cdt=e)}this.F=a;this.F.session_id=d;this.N=!0;"widevine"===this.B.flavor&&(this.F.hdr="1");"playready"===this.B.flavor&&(b=Number(g.Vz(b.experiments,"playready_first_play_expiration")),!isNaN(b)&&0<=b&&(this.F.mfpe=""+
b),this.N=!1,this.videoData.ca("html5_playready_enable_non_persist_license")&&(this.F.pst="0"));b=CB(this.B)?xsa(c.initData).replace("skd://","https://"):this.B.C;this.videoData.ca("enable_shadow_yttv_channels")&&(b=new g.Vm(b),document.location.origin&&document.location.origin.includes("green")?g.Xm(b,"web-green-qa.youtube.com"):g.Xm(b,"www.youtube.com"),b=b.toString());this.baseUrl=b;this.fairplayKeyId=Md(this.baseUrl,"ek")||"";if(b=Md(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(b);this.ea=
this.videoData.ca("html5_use_drm_retry");this.ba=c.B;WS(this,"sessioninit."+c.cryptoPeriodIndex);this.status="in"};
Msa=function(a,b){WS(a,"createkeysession");a.status="gr";VA("drm_gk_s");a.url=Isa(a);try{a.D=b.createSession(a.da,function(d){WS(a,d)})}catch(d){var c="t.g";
d instanceof DOMException&&(c+=";c."+d.code);a.V("licenseerror","drm.unavailable",!0,c,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}a.D&&(Jsa(a.D,function(d,e){Ksa(a,d,e)},function(d){a.la()||a.error("drm.keyerror",!0,d)},function(){a.la()||(WS(a,"onkyadd"),a.K||(a.V("sessionready"),a.K=!0))},function(d){Lsa(a,d)}),g.C(a,a.D))};
Isa=function(a){var b=a.baseUrl;pfa(b)||a.error("drm.net",!0,"t.x");if(!Md(b,"fexp")){var c=["23898307","23914062","23916106","23883098"].filter(function(e){return a.C.experiments.experiments[e]});
0<c.length&&(a.F.fexp=c.join())}c=g.q(Object.keys(a.F));for(var d=c.next();!d.done;d=c.next())d=d.value,b=Qd(b,d,a.F[d]);return b};
Nsa=function(a){var b={};Object.assign(b,a.F);return b};
Osa=function(a,b){var c=new wsa({IG:g.nf(b),drmSessionId:a.sessionId});a.V("heartbeatparams",c)};
Ksa=function(a,b,c){if(!a.la())if(b){WS(a,"onkmtyp."+c);a.status="km";switch(c){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":Psa(a,b);return;default:a.V("ctmp","message_type","t."+c+";l."+b.byteLength)}a.W||(VA("drm_gk_f"),a.W=!0,a.V("newsession",a));if(a.videoData.ca("use_innertube_heartbeats_for_widevine")&&a.videoData.useInnertubeDrmService()&&a.P&&"widevine"===a.B.flavor)a.P&&"license-request"!==c&&WS(a,"wvrenew.mt."+c,!0),Osa(a,b);
else{if(yB(a.B)&&(b=Qsa(b),!b))return;CB(a.B)&&!a.videoData.useInnertubeDrmService()&&(b=au(g.nf(b)));b=new Csa(b,++a.requestNumber);Dsa(b,function(d,e){Rsa(a,d,e)},function(d,e,f,h){if(!a.la()){var l=!1,m=3;
void 0!==h&&400<=h&&500>h&&(m=g.P(a.C.experiments,"html5_license_server_error_retry_limit")||3);(h=d.u.B>=m)||(h=a.ea&&36E4<(0,g.N)()-a.Y);h&&(l=!0,e="drm.net.retryexhausted");WS(a,"onlcsrqerr."+e+";"+f);a.error(e,l,f);a.shouldRetry(l,d)&&Ssa(a,d)}});
g.C(a,b);Tsa(a,b)}}else a.error("drm.unavailable",!1,"km.empty")};
Psa=function(a,b){WS(a,"sdpvrq");if("widevine"!==a.B.flavor)a.error("drm.provision",!0,"e.flavor;f."+a.B.flavor+";l."+b.byteLength);else{var c={cpn:a.videoData.clientPlaybackNonce};Object.assign(c,a.C.deviceParams);c=g.Id("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",c);var d={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:bu(b)}),responseType:"arraybuffer"};
g.Sr(c,d,3,500).then(Ao(function(e){if(!a.la()){e=new Uint8Array(e.response);var f=bu(e);try{var h=JSON.parse(f)}catch(l){}h&&h.signedResponse?(a.V("ctmp","drminfo","provisioning"),a.D&&a.D.update(e)):(h=h&&h.error&&h.error.message,e="e.parse",h&&(e+=";m."+h),a.error("drm.provision",!0,e))}}),Ao(function(e){a.la()||a.error("drm.provision",!0,"e."+e.errorCode+";c."+(e.xhr&&e.xhr.status))}))}};
Lsa=function(a,b){a.la()||0>=b.size||(b.forEach(function(c,d){var e=yB(a.B)?d:c,f=new Uint8Array(yB(a.B)?c:d);yB(a.B)&&Usa(f);var h=g.nf(f,4);Usa(f);f=g.nf(f,4);a.u[h]?a.u[h].status=e:a.u[f]?a.u[f].status=e:a.u[h]={type:"",status:e}}),Vsa("Key statuses changed: "+Wsa(a,",")),WS(a,"onkeystatuschange"),a.status="kc",a.V("keystatuseschange",a))};
YS=function(a){var b;if(b=a.N&&null!=a.D)a=a.D,b=!(!a.u||!a.u.keyStatuses);return b};
Tsa=function(a,b){a.status="km";VA("drm_net_s");if(a.videoData.useInnertubeDrmService()){var c=new g.zr(a.C.ea),d=g.Ep(c.Ff||g.Fp());d.drmSystem=Xsa[a.B.flavor];d.videoId=a.videoData.videoId;d.cpn=a.videoData.clientPlaybackNonce;d.sessionId=a.sessionId;d.licenseRequest=g.nf(b.message);d.drmParams=a.videoData.drmParams;isNaN(a.cryptoPeriodIndex)||(d.isKeyRotated=!0,d.cryptoPeriodIndex=a.cryptoPeriodIndex);if(!d.context||!d.context.client){a.error("drm.net",!0,"t.r;ic.0");return}var e=a.C.deviceParams;
e&&(d.context.client.deviceMake=e.cbrand,d.context.client.deviceModel=e.cmodel,d.context.client.browserName=e.cbr,d.context.client.browserVersion=e.cbrver,d.context.client.osName=e.cos,d.context.client.osVersion=e.cosver);d.context.user=d.context.user||{};d.context.request=d.context.request||{};a.videoData.Sf&&(d.context.user.credentialTransferTokens=[{token:a.videoData.Sf,scope:"VIDEO"}]);d.context.request.mdxEnvironment=a.videoData.mdxEnvironment||d.context.request.mdxEnvironment;a.videoData.kh&&
(d.context.user.kidsParent={oauthToken:a.videoData.kh});if(CB(a.B)){e=a.fairplayKeyId;for(var f=[],h=0;h<e.length;h+=2)f.push(parseInt(e.substring(h,h+2),16));d.fairplayKeyId=g.nf(f)}Hsa(b,d,c,a.videoData.Ze())}else Fsa(b,a.url,a.videoData.oauthToken);a.status="rs"};
Rsa=function(a,b,c){if(!a.la()){if(a.requestNumber!==c&&"widevine"===a.B.flavor&&((a.C.ca("html5_drm_ignore_out_of_order_responses")||a.C.ca("html5_drm_ignore_out_of_order_responses_cfl"))&&WS(a,"drmOOO."+a.requestNumber+"."+c,!0),a.C.ca("html5_drm_ignore_out_of_order_responses")))return;WS(a,"onlcsrsp");a.status="rr";0!==b.statusCode?a.error("drm.auth",!0,"t.f;c."+b.statusCode,b.errorMessage||void 0):(VA("drm_kr_s"),a.videoData.ca("outertube_streaming_data_always_use_staging_license_service")&&b.heartbeatParams&&
b.heartbeatParams.url&&(c=a.B.C.match(/(.*)youtube.com/g))&&(b.heartbeatParams.url=c[0]+b.heartbeatParams.url),b.heartbeatParams&&a.V("newlicense",b.heartbeatParams),b.u&&(a.G=b.u,a.P=!0,a.X=bi(a.G,function(d){return d.includes("HDR")})),b.B&&(a.u=Kb(b.B,function(d){return{type:d,
status:"unknown"}})),AB(a.B)&&!a.videoData.useInnertubeDrmService()?b.message=g.$e(bu(b.message)):BB(a.B)&&a.videoData.useInnertubeDrmService()&&(b.message=au(g.nf(b.message))),a.D&&(WS(a,"updtks"),a.status="ku",a.D.update(b.message).then(function(){VA("drm_kr_f");
if(!YS(a))if(WS(a,"ksApiUnsup"),zB(a.B)){var d=Ysa(a.G);480<g.gw[d]&&a.V("hdentitled",a)}else a.V("keystatuseschange",a)},function(d){d="msuf.req."+a.requestNumber+";msg."+g.qf(d.message);
a.error("drm.keyerror",!0,d)})),a.K&&(a.Y=(0,g.N)()),CB(a.B)&&a.V("fairplay_next_need_key_info",a.baseUrl,b.nextFairplayKeyId))}};
Ssa=function(a,b){var c=b.u.getValue();c=new g.F(function(){Tsa(a,b)},c);
g.C(a,c);c.start();g.Kn(b.u);WS(a,"rtyrq")};
Zsa=function(a,b){if(!YS(a)&&zB(a.B)&&!b)return"large";var c=[],d=!0;if(YS(a))for(var e=g.q(Object.keys(a.u)),f=e.next();!f.done;f=e.next())f=f.value,"usable"===a.u[f].status&&c.push(a.u[f].type),"unknown"!==a.u[f].status&&(d=!1);if(!YS(a)||d)c=a.G;return Ysa(c)};
Wsa=function(a,b){for(var c=[],d=g.q(Object.keys(a.u)),e=d.next();!e.done;e=d.next())e=e.value,c.push(e+"_"+a.u[e].type+"_"+a.u[e].status);return c.join(b)};
$sa=function(a){var b=a.status+".";return YS(a)?b+Wsa(a,"."):b+a.G.join(".")};
ata=function(a,b,c){a:{switch(b){case "highres":case "hd2880":b="UHD2";break;case "hd2160":case "hd1440":b="UHD1";break;case "hd1080":case "hd720":b="HD";break;case "large":case "medium":case "small":case "light":case "tiny":b="SD";break;default:c="";break a}c&&(b+="HDR");c=b}for(var d in a.u)if("output-restricted"===a.u[d].status&&(b=a.u[d].type,""===c||"AUDIO"===b||c===b))return!0;return!1};
bta=function(a,b){for(var c in a.u)if("usable"===a.u[c].status&&a.u[c].type===b)return!0;return!1};
WS=function(a,b,c){((void 0===c?0:c)||qG(a.videoData)||"playready"===a.B.flavor&&a.videoData.useInnertubeDrmService())&&a.V("ctmp","drmlog",b)};
Vsa=function(){};
Usa=function(a){var b=a[0];a[0]=a[3];a[3]=b;b=a[1];a[1]=a[2];a[2]=b;b=a[4];a[4]=a[5];a[5]=b;b=a[6];a[6]=a[7];a[7]=b};
Ysa=function(a){return g.nb(a,"UHD2")?"highres":g.nb(a,"UHD1")?"hd2160":g.nb(a,"HD")?"hd1080":g.nb(a,"HD720")?"hd720":"large"};
Qsa=function(a){for(var b="",c=0;c<a.length;c+=2)b+=String.fromCharCode(a[c]);a=(new DOMParser).parseFromString(b,"text/xml");return a?(a=a.querySelector("Challenge"))&&a.childNodes&&0!==a.childNodes.length?new Uint8Array(ZS(Saa(a.childNodes[0].nodeValue)).buffer):null:null};
cta=function(a,b,c,d,e){var f;"playready"===e?f=Qsa(a):"fairplay"===e&&(f=au(g.nf(a)));f&&(a={format:"RAW",method:"POST",postBody:f,responseType:"arraybuffer",withCredentials:!0,timeout:3E4},c=Kaa(c,d),g.Sr(c,a,3,500).then(function(h){h=new Uint8Array(h.response);(h=Bsa(h))&&h.message&&b.update(h.message)}))};
$S=function(a,b,c,d,e){g.B.call(this);this.element=a;this.P=b;this.initData=c;this.u=d;this.B=e;this.sessionId="";this.K=this.G=this.C=this.F=null;this.D=new os(this);g.C(this,this.D);dta(this)};
dta=function(a){a.u?(a.D.R(a.u,"message",a.vK),a.D.R(a.u,"keystatuseschange",a.wK),a.u.closed&&a.u.closed.then(Ao(function(){a.la()||Uj("xboxone")&&a.C&&a.C("closed")}),null)):a.B&&(ps(a.D,a.B,["mskeymessage",
"webkitkeymessage"],a.xE),ps(a.D,a.B,["mskeyerror","webkitkeyerror"],a.wE),ps(a.D,a.B,["mskeyadded","webkitkeyadded"],a.vE))};
Jsa=function(a,b,c,d,e){a.F=b;a.C=c;a.G=d;a.K=e};
eta=function(a,b,c){M(c);a.C&&(c instanceof DOMException&&(b+=";n.$(exc.name);m.$(exc.message)"),a.C(b))};
aT=function(a,b){g.B.call(this);this.element=a;this.u=b;this.G={};this.D=null;this.F=new os(this);this.C=this.B=null;g.C(this,this.F)};
bT=function(a){if(a.u.keySystemAccess)return a.u.keySystemAccess.createMediaKeys().then(function(b){a.la()||(a.B=b,a.element.setMediaKeys(b))});
xB(a.u)?a.C=new (wB())(a.u.u):AB(a.u)?(a.C=new (wB())(a.u.u),a.element.webkitSetMediaKeys(a.C)):fta(a);return null};
fta=function(a){ps(a.F,a.element,["keymessage","webkitkeymessage"],a.zK);ps(a.F,a.element,["keyerror","webkitkeyerror"],a.yK);ps(a.F,a.element,["keyadded","webkitkeyadded"],a.xK)};
gta=function(a){return"widevine"===a.u.flavor&&a.u.ho&&a.B.setServerCertificate?a.B.setServerCertificate(a.u.ho):null};
ita=function(a,b){var c=hta(b,a.u.Xg);c=a.C.createSession("video/mp4",c);return new $S(null,null,null,null,c)};
jta=function(a,b){for(var c=new Uint8Array(270),d=0;135>d;d++)c[2*d]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(d);c=a.C.createSession("video/mp4",b,c);return new $S(null,null,null,null,c)};
cT=function(a,b){var c=a.G[b.sessionId];!c&&a.D&&(c=a.D,a.D=null,c.sessionId=b.sessionId,a.G[b.sessionId]=c);return c};
hta=function(a,b){var c=a.subarray(4);c=new Uint16Array(c.buffer,c.byteOffset,c.byteLength/2);c=String.fromCharCode.apply(null,c).match(/ek=([0-9a-f]+)/)[1];for(var d="",e=0;e<c.length;e+=2)d+=String.fromCharCode(parseInt(c.substr(e,2),16));c=d;d=new ArrayBuffer(2*c.length);e=new Uint16Array(d);for(var f=0;f<c.length;f++)e[f]=c.charCodeAt(f);c=new Uint8Array(d);d=0;f=new ArrayBuffer(a.byteLength+4+c.byteLength+4+b.byteLength);e=new Uint8Array(f);f=new DataView(f);e.set(a);d+=a.byteLength;f.setUint32(d,
c.length,!0);d+=4;e.set(c,d);d+=c.length;f.setUint32(d,b.byteLength,!0);e.set(b,d+4);return e};
dT=function(a,b){g.B.call(this);this.u=g.Ee("video");this.B=null;this.D=[];this.F=new os(this);this.C=new vB("fairplay","com.youtube.fairplay","",b);this.C.Xg=a;g.C(this,this.F);this.init()};
eT=function(a,b,c){US.call(this);var d=this;this.D=a;this.C=b;this.u=[];this.B=new g.F(function(){var e=d.u.shift().info;a:{var f=e.cryptoPeriodIndex;if(isNaN(f)&&0<d.C.values.length)f=!0;else{for(var h=g.q(d.C.values),l=h.next();!l.done;l=h.next())if(l.value.cryptoPeriodIndex===f){f=!0;break a}f=!1}}f||d.V("rotated_need_key_info_ready",e);0<d.u.length&&(e=d.u[0].time-(0,g.N)(),d.B.start(Math.max(0,e)))},0);
g.C(this,this.B);c.subscribe("widevine_set_need_key_info",this.F,this)};
fT=function(){this.keys=[];this.values=[]};
hT=function(a,b,c){g.O.call(this);this.element=a;this.videoData=b;this.B=c;this.u=this.videoData.Wc;this.drmSessionId=this.videoData.drmSessionId||g.Ds();this.C=new fT;this.K=new fT;this.N=new fT;this.D=[];this.Aa=2;this.ba=new os(this);this.za=this.ia=!1;this.heartbeatParams=null;this.Y=this.da=this.ea=this.W=!1;this.G=null;this.ka=!1;(a=this.element)&&(a.addKey||a.webkitAddKey)||wB()||GB(c.experiments);c=g.Q(this.B.experiments,"html5_drm_initial_constraint_from_config")?this.videoData.Io:g.Q(this.B.experiments,
"html5_drm_start_from_null_constraint");this.P="fairplay"===this.u.flavor||c?rD:kta;this.F=new aT(this.element,this.u);g.C(this,this.F);xB(this.u)&&(this.X=new aT(this.element,this.u),g.C(this,this.X));g.C(this,this.ba);c=this.element;this.u.keySystemAccess?this.ba.R(c,"encrypted",this.AK):ps(this.ba,c,xB(this.u)?["msneedkey"]:["needkey","webkitneedkey"],this.oO);lta(this);a:switch(c=this.u,a=this.B.experiments,b=this.C,c.flavor){case "fairplay":19.2999<Tj()?(a=c.Fr,c=c.Er,c>=a&&(c=.75*a),b=.5*(a-
c),c=new VS(b,a,a-b-c,this)):c=null;break a;case "widevine":c=new eT(g.Q(a,"disable_license_delay"),b,this);break a;default:c=null}if(this.G=c)g.C(this,this.G),this.G.subscribe("rotated_need_key_info_ready",this.hA,this);GB(this.B.experiments);gT(this,"cks"+this.u.Be());c=this.u;"com.youtube.widevine.forcehdcp"===c.u&&c.D&&(this.Ea=new dT(this.videoData.Xg,this.B.experiments),g.C(this,this.Ea))};
lta=function(a){var b=bT(a.F);b?b.then(Ao(function(){mta(a)}),Ao(function(c){if(!a.la()){M(c);
var d="t.a";c instanceof DOMException&&(d+=";n."+c.name+";m."+c.message);a.V("licenseerror","drm.unavailable",!0,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(gT(a,"mdkrdy"),a.W=!0);
a.X&&(b=bT(a.X))};
nta=function(a,b,c){a.za=!0;c=new $x(b,c);a.B.ca("html5_eme_loader_sync")&&(a.K.get(b)||a.K.set(b,c));a.B.ca("html5_process_all_encrypted_events")?iT(a,c):a.B.ca("html5_eme_loader_sync")?iT(a,c):0!==a.D.length&&a.videoData.Ia&&a.videoData.Ia.wc()?jT(a):iT(a,c)};
ota=function(a,b){gT(a,"onneedkeyinfo");g.Q(a.B.experiments,"html5_eme_loader_sync")&&(a.N.get(b.initData)||a.N.set(b.initData,b));iT(a,b)};
qta=function(a,b){if(xB(a.u)&&!a.ea){var c=gga(b);if(0!==c.length){var d=new $x(c);a.ea=!0;navigator.requestMediaKeySystemAccess("com.microsoft.playready",[{initDataTypes:["keyids","cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="mp4a"'}],videoCapabilities:[{contentType:'video/mp4; codecs="avc1"'}]}]).then(function(e){e.createMediaKeys().then(function(f){pta(a,f,d)})},null)}}};
pta=function(a,b,c){var d=b.createSession(),e=a.C.values[0],f=Nsa(e);d.addEventListener("message",function(h){h=new Uint8Array(h.message);cta(h,d,a.u.C,f,"playready")});
d.addEventListener("keystatuseschange",function(){"usable"in d.keyStatuses&&(a.da=!0,rta(a,Zsa(e,a.da)))});
d.generateRequest("cenc",c.initData)};
iT=function(a,b){if(!a.la()){gT(a,"onInitData");if(g.Q(a.B.experiments,"html5_eme_loader_sync")&&a.videoData.Ia&&a.videoData.Ia.wc()){var c=a.N.get(b.initData),d=a.K.get(b.initData);if(!c||!d)return;b=c;c=b.initData;a.K.remove(c);a.N.remove(c)}gT(a,"initd."+b.initData.length+";ct."+b.contentType);"widevine"===a.u.flavor?a.ia&&!a.videoData.isLivePlayback?a.B.ca("html5_process_all_encrypted_events")&&jT(a):g.Q(a.B.experiments,"vp9_drm_live")&&a.videoData.isLivePlayback&&b.Jd||(a.ia=!0,c=b.u,ay(b),c&&
!b.Jd&&b.u!==c&&a.V("ctmp","cpsmm","emsg."+c+";pssh."+b.u),a.V("widevine_set_need_key_info",b)):a.hA(b)}};
mta=function(a){if(!a.la())if(g.Q(a.B.experiments,"html5_drm_set_server_cert")&&!g.UC(a.B)){var b=gta(a.F);b?b.then(Ao(function(c){qG(a.videoData)&&a.V("ctmp","ssc",c)}),Ao(function(c){a.V("ctmp","ssce","n."+c.name+";m."+c.message)})).then(Ao(function(){kT(a)})):kT(a)}else kT(a)};
kT=function(a){a.la()||(a.W=!0,gT(a,"onmdkrdy"),jT(a))};
jT=function(a){if(a.za&&a.W&&!a.Y){for(;a.D.length;){var b=a.D[0];if(a.C.get(b.initData))if("fairplay"===a.u.flavor)a.C.remove(b.initData);else{a.D.shift();continue}ay(b);break}a.D.length&&a.createSession(a.D[0])}};
rta=function(a,b){var c=eC("auto",b,!1,"l");if(g.Q(a.B.experiments,"html5_drm_initial_constraint_from_config")?a.videoData.Io:g.Q(a.B.experiments,"html5_drm_start_from_null_constraint")){if(dC(a.P,c))return}else if(hC(a.P,b))return;a.P=c;a.V("qualitychange");gT(a,"updtlq"+b)};
sta=function(a){if(0>=a.C.values.length){var b="ns;";a.W||(b+="nr;");return b+="ql."+a.D.length}return $sa(a.C.values[0])};
gT=function(a,b,c){c=void 0===c?!1:c;a.la()||(qG(a.videoData)||c)&&a.V("ctmp","drmlog",b)};
tta=function(a){var b;if(b=g.Xj()){var c;b=!(null===(c=a.F.B)||void 0===c||!c.u)}b&&(b=a.F,b=b.B&&b.B.u?b.B.u():null,gT(a,"mtr."+g.nf(b,3),!0))};
lT=function(a,b,c){g.O.call(this);this.videoData=a;this.Oa=b;this.playerVisibility=c;this.N=0;this.B=this.u=null;this.W=this.G=this.D=!1;this.P=this.K=0;this.C=NaN;this.F=0};
oT=function(a,b,c){var d=!1,e=a.N+3E4<(0,g.N)()||!1,f;if(f=a.videoData.ca("html5_pause_on_nonforeground_platform_errors")&&!e)f=a.playerVisibility,f=!!(f.u||f.isInline()||f.isBackground()||f.pictureInPicture||f.C);f&&(c.nonfg="paused",e=!0,a.V("pausevideo"));f=a.videoData.La;if(!e&&((null===f||void 0===f?0:rw(f))||(null===f||void 0===f?0:pw(f))))if(a.videoData.ca("html5_disable_codec_on_platform_errors"))a.Oa.D.P.add(f.Eb),d=e=!0,c.cfalls=f.Eb;else{var h;if(h=a.videoData.ca("html5_disable_codec_for_playback_on_error")&&
a.u){h=a.u.K;var l=f.Eb;h.ra.has(l)?h=!1:(h.ra.add(l),h.Y=-1,sD(h,h.F),h=!0)}h&&(d=e=!0,c.cfallp=f.Eb)}if(!e)return uta(a,c);a.N=(0,g.N)();e=a.videoData;e=e.Gg?e.Gg.tB()<Date.now()/1E3+1800:!1;c.e=b;e&&(c.staleprog="1");mT(a,"qoe.restart",c);if(e&&vta(a))return nT(a),!0;Uj("philips")&&wta(a);!a.videoData.ca("html5_disable_codec_on_platform_errors")&&f&&rw(f)?(a.Oa.D.disableAv1(),d=!0):a.u?(b=a.u,c=(c=Hy(b.B)||b.B.B)?c.u:b.B.u,c.N+=1,xD(b.K,c)):a.videoData.Gg&&a.videoData.Gg.vy();a.V("newelementrequired",
d);return!0};
uta=function(a,b){if(a.videoData.wg)return!1;a.Oa.ra+=1;if(10>=a.Oa.ra)return!1;b.exiled=""+a.Oa.ra;mT(a,"qoe.start15s",b);a.V("playbackstalledatstart");return!0};
wta=function(a){if("GAME_CONSOLE"!==a.Oa.deviceParams.cplatform)try{window.close()}catch(b){}};
vta=function(a){return a.D||"yt"!==a.Oa.X?!1:a.videoData.wg?25>a.videoData.Hi:!a.videoData.Hi};
nT=function(a){a.D||(a.D=!0,a.V("signatureexpiredreloadrequired"))};
xta=function(a,b){if(a.B&&("fmt.unplayable"===b.errorCode||"html5.invalidstate"===b.errorCode)){var c=a.B.oh();b.details.merr=c?c.toString():"0";b.details.msg=a.B.qn()}};
yta=function(a,b){return"html5.invalidstate"===b.errorCode&&a.Oa.ca("html5_new_element_on_invalid_state")||"fmt.unplayable"===b.errorCode||"fmt.unparseable"===b.errorCode?oT(a,b.errorCode,b.details):!1};
zta=function(a){return"net.retryexhausted"===a.errorCode||"net.badstatus"===a.errorCode&&!!a.details.fmt_unav};
Bta=function(a,b,c){if("403"===b.details.rc){var d=b.errorCode;d="net.badstatus"===d||"manifest.net.retryexhausted"===d}else d=!1;if(!d)return!1;b.details.sts="18585";if(vta(a))return c?(a.G=!0,a.V("releaseloader")):(b.u&&(b.details.e=b.errorCode,b.errorCode="qoe.restart",b.u=!1),mT(a,b.errorCode,b.details),nT(a)),!0;6048E5<(0,g.N)()-a.Oa.Ja&&Ata(a,"signature");return!1};
Ata=function(a,b){try{window.location.reload();mT(a,"qoe.restart",{detail:"pr."+b});return}catch(c){}a.Oa.ca("tvhtml5_retire_old_players")&&g.UC(a.Oa)&&wta(a)};
Cta=function(a,b){a.Oa.D.B=!1;mT(a,"qoe.restart",{e:void 0===b?"fmt.noneavailable":b,detail:"hdr"});a.V("formatupdaterequested")};
pT=function(a,b,c,d){a.V("clienttemp",b,c,(void 0===d?{Ky:!1}:d).Ky)};
mT=function(a,b,c){a.V("qoeerror",b,c)};
Dta=function(a,b,c,d){this.videoData=a;this.u=b;this.reason=c;this.B=d};
Eta=function(a){navigator.mediaCapabilities?qT(a.videoInfos).then(function(){return a},function(){return a}):Vr(a)};
qT=function(a){var b=navigator.mediaCapabilities;if(!b)return Vr(a);var c=a.map(function(d){return b&&b.decodingInfo({type:"media-source",video:d.video?{contentType:d.mimeType,width:d.video.width||640,height:d.video.height||360,bitrate:8*d.u||1E6,framerate:d.video.fps||30}:null})});
return oda(c).then(function(d){for(var e=0;e<d.length;e++)a[e].F=d[e].smooth,a[e].C=d[e].powerEfficient;return a},function(){return a})};
rT=function(a,b){g.O.call(this);this.u=a;this.W=b;this.N=this.G=this.K=this.C=this.B=this.F=this.P=this.D=0;this.playbackRate=1};
Gta=function(a,b,c){!g.Q(a.u.experiments,"html5_tv_ignore_capable_constraint")&&g.UC(a.u)&&(c=c.compose(Fta(a,b)));return c};
Hta=function(a){return a.ca("html5_exponential_memory_for_sticky")?.5>tC(a.u.Zb,"sticky-lifetime")?"auto":sT():sT()};
Ita=function(a){var b=new cC(0,0,!1,"o");1<a.playbackRate&&(b=new cC(0,480,!0,"o"));return b};
Fta=function(a,b){if(g.UC(a.u)&&qB(a.u.D,rB.HEIGHT))var c=b.Ia.videoInfos[0].Ka().xc;else{c=b.Ia.wc();var d;KC(a.u)&&(d=window.screen&&window.screen.width?new g.ge(window.screen.width,window.screen.height):null);d||(d=a.u.Si?a.u.Si.clone():a.W.getPlayerSize());(MC||CD||c)&&d.scale(g.dD());c=d;zF(b.videoData)||oG(b.videoData);var e=b.Ia.videoInfos;if(e.length){d=.85;var f=e[0].Ka();4!==f.projectionType&&2!==f.projectionType&&3!==f.projectionType||IC||(d=.45);f=e[0];var h=f.Ka();e=g.q(e);for(var l=
e.next();!l.done&&!(f=h=l.value,h=h.Ka(),null===c||h.width*d<c.width&&h.height*d<c.height);l=e.next());c="93"===Yt(f)?fw(h.width,h.height):h.quality;c=eC("auto",c,!1,"r")}else c=rD;c=c.u}c&&(c=Math.max(c,360));return new cC(0,c,!1,"r")};
Jta=function(a,b){var c;a:if((c=b.Ia)&&c.videoInfos.length){for(var d=g.q(c.videoInfos),e=d.next();!e.done;e=d.next())if(e=e.value,e.F){c=e.Ka().xc;break a}c=c.videoInfos[0].Ka().xc}else c=0;Wj()&&!g.UC(a.u)&&pw(b.Ia.videoInfos[0])&&(c=Math.min(c,g.gw.large));return new cC(0,c,!1,"o")};
Kta=function(a,b){var c=0;!a.u.u||g.LC(a.u)||ek()||g.Q(a.u.experiments,"mweb_uniplayer_auto_quality")||g.Q(a.u.experiments,"hls_for_vod")||(c=g.gw.medium);var d=g.P(a.u.experiments,"html5_default_quality_cap");if(d){var e=b.Ia.wc()&&!b.videoData.Pf&&!b.videoData.Bd,f=g.P(a.u.experiments,"html5_quality_cap_min_age_secs");e&&f&&(e=a.u.schedule.F,e=(0,g.N)()-e>1E3*f);e&&(c=c?Math.min(c,d):d)}d=g.P(a.u.experiments,"html5_random_playback_cap");f=/[a-h]$/;d&&f.test(b.videoData.clientPlaybackNonce)&&(c=
c?Math.min(c,d):d);(d=g.P(a.u.experiments,"html5_not_vp9_supported_quality_cap"))&&!KB('video/webm; codecs="vp9"')&&(c=c?Math.min(c,d):d);if(f=d=g.P(a.u.experiments,"html5_hfr_quality_cap"))a:{f=b.Ia;if(f.wc())for(f=g.q(f.videoInfos),e=f.next();!e.done;e=f.next())if(32<e.value.Ka().fps){f=!0;break a}f=!1}f&&(c=c?Math.min(c,d):d);(d=g.P(a.u.experiments,"html5_live_quality_cap"))&&b.videoData.isLivePlayback&&(c=c?Math.min(c,d):d);return new cC(0,c,!1,"d")};
Lta=function(a,b){return Te(a,function d(){var e;return Aa(d,function(f){if(!b.Ia.wc())return f["return"](void 0);e=b.Ia.videoInfos;return f["return"](qT(e))})})};
Mta=function(a,b){return Te(a,function d(){var e,f,h=this;return Aa(d,function(l){if(1==l.u)return(e=b.Ia.videoInfos.find(function(m){return rw(m)}))?null!==e.C?l.Ac(2):sa(l,qT([e]),2):l["return"](!1);
f=e.C||!1;h.V("ctmp","mcrsp","itag."+e.id+";smooth."+ +e.F+";efficient."+ +f);return l["return"](f)})})};
Ota=function(a,b){if(!b.videoData.La||a.ca("html5_disable_performance_downgrade"))return!1;6E4<g.A()-a.P&&(a.D=0);a.D++;a.P=g.A();if(4!==a.D)return!1;Nta(a,b.videoData.La);return!0};
Qta=function(a,b,c,d){if(!b||!c||!b.videoData.La)return!1;var e=g.P(a.u.experiments,"html5_df_downgrade_thresh"),f=a.ca("html5_log_media_perf_info"),h=g.P(a.u.experiments,"hfr_dropped_framerate_fallback_threshold");if(!(5E3>(0,g.N)()-a.F?0:f||0<e||0<h))return!1;a.F=(0,g.N)();c=c.getVideoPlaybackQuality();if(!c)return!1;var l=c.droppedVideoFrames-a.G,m=c.totalVideoFrames-a.N;a.G=c.droppedVideoFrames;a.N=c.totalVideoFrames;f&&b.videoData.Gj&&a.V("ctmp","ddf","dr."+c.droppedVideoFrames+";de."+c.totalVideoFrames);
if(d)return a.B=0,a.C=0,!1;d=60<m?l/m:0;0<d&&(a.K=d);a.C=0<h&&60*d>h?a.C+1:0;if(!e||g.UC(a.u))return!1;a.B=d>e?a.B+1:0;if(3!==a.B)return!1;Nta(a,b.videoData.La);a.V("ctmp","dfd",Pta());return!0};
Nta=function(a,b){var c=b.Ka().xc-1;Rta(b.Eb,b.Ka().fps,c);a.V("av1hybridthresholdchange")};
Sta=function(a,b){if(!b.Ia.wc())return rD;var c=a.u.ca("html5_dynamic_av1_hybrid_threshold"),d=0,e=g.P(a.u.experiments,"html5_performance_cap_floor");e=a.u.u?240:e;for(var f=g.q(b.Ia.videoInfos),h=f.next();!h.done;h=f.next()){var l=h.value;if(!c||!rw(l))if(h=tB(l.Eb,l.Ka().fps),l=l.Ka().xc,Math.max(h,e)>=l){d=l;break}}return new cC(0,d,!1,"b")};
Tta=function(a,b){var c=g.P(a.u.experiments,"html5_background_quality_cap"),d=g.P(a.u.experiments,"html5_background_cap_idle_secs");return!c||"auto"!==Hta(a)||wp()/1E3<d?rD:b?new cC(0,c,!1,"v"):rD};
Uta=function(a,b){var c=g.P(a.u.experiments,"html5_autonav_quality_cap"),d=g.P(a.u.experiments,"html5_autonav_cap_idle_secs");return c&&b.videoData.ni&&wp()/1E3>d?new cC(0,c,!1,"e"):rD};
Vta=function(a,b){a.ca("html5_log_media_perf_info")&&(a.V("ctmp","perfdb",Pta()),a.V("ctmp","hwc",""+navigator.hardwareConcurrency,!0),b&&a.V("ctmp","mcdb",b.Ia.videoInfos.filter(function(c){return!1===c.F}).map(function(c){return Yt(c)}).join("-")))};
Pta=function(){var a=Kb(tT(),function(b){return""+b});
return g.mB(a)};
uT=function(a,b){g.B.call(this);this.provider=a;this.G=b;this.u=-1;this.F=!1;this.B=-1;this.playerState=new g.zL;this.seekCount=this.nonNetworkErrorCount=this.networkErrorCount=this.rebufferTimeSecs=this.playTimeSecs=this.D=0;this.delay=new g.F(this.send,6E4,this);this.C=!1;g.C(this,this.delay)};
Wta=function(a){0<=a.u||(3===a.provider.getVisibilityState()?a.F=!0:(a.u=g.vT(a.provider),a.delay.start()))};
Xta=function(a){if(!(0>a.B)){var b=g.vT(a.provider),c=b-a.D;a.D=b;8===a.playerState.state?a.playTimeSecs+=c:g.HL(a.playerState)&&!g.U(a.playerState,16)&&(a.rebufferTimeSecs+=c)}};
Yta=function(a){switch(a.u.Gr){case "canary":return"HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";case "holdback":return"HTML5_PLAYER_CANARY_TYPE_CONTROL";default:return"HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}};
Zta=function(a){return(!a.ca("html5_health_to_gel")||a.u.Ja+36E5<(0,g.N)())&&(a.ca("html5_health_to_gel_canary_killswitch")||a.u.Ja+36E5<(0,g.N)()||"HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"===Yta(a))?a.ca("html5_health_to_qoe"):!0};
wT=function(a,b,c,d,e){var f={format:"RAW"},h={};Yp(a)&&Zp()&&(c&&(h["X-Goog-Visitor-Id"]=c),b&&(h["X-Goog-PageId"]=b),d&&(h.Authorization="Bearer "+d),c||d||b)&&(f.withCredentials=!0);0<Object.keys(h).length&&(f.headers=h);e&&(f.Jf=e);return 1<Object.keys(f).length?f:null};
xT=function(a,b,c,d,e,f){Zp()&&c.token&&(a=g.Id(a,{ctt:c.token,cttype:c.Vy,mdx_environment:c.mdxEnvironment}));e?(null==b?b={}:(c=g.Up(a),Object.keys(c).includes("cpn")),f?yr(a,b):xr(a,b)):b?(f=g.Up(a),Object.keys(f).includes("cpn"),g.lq(a,b)):g.zt(a,d)};
zT=function(a){g.B.call(this);var b=this;this.provider=a;this.u={};this.sequenceNumber=1;this.ra=NaN;this.Bc="N";this.G=this.Pa=this.za=this.ia=this.C=0;this.X=this.Qa="";this.Ea=this.Y=NaN;this.Aa=0;this.qb=-1;this.Ja=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.ea=this.W=!1;this.sb=[];this.P=null;this.N=this.ba=this.D=!1;this.B=-1;this.ka=!1;this.bb=new g.F(this.zJ,750,this);this.K=this.adCpn="";this.adFormat=void 0;this.xb=0;g.C(this,this.bb);(a=navigator.getBattery?navigator.getBattery():
null)&&a.then&&a.then(function(c){b.P=c});
g.yT(this,0,"vps",["N"])};
g.yT=function(a,b,c,d){var e=a.u[c];e||(e=[],a.u[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))};
BT=function(a,b){var c=a.provider.B();g.yT(a,b,"cmt",[c.toFixed(3)]);c=a.provider.P();if(a.F&&1E3*c>a.F.PD+100&&a.F){var d=a.F,e=d.isAd;a.da=1E3*b-d.DQ-(1E3*c-d.PD)-d.vQ;AT(a,"gllat","l."+a.da.toFixed()+";prev_ad."+ +e);delete a.F}};
CT=function(a,b){b=void 0===b?NaN:b;b=0<=b?b:g.vT(a.provider);var c=a.provider.D();if(!isNaN(a.Y)&&!isNaN(c.B)){var d=c.B-a.Y;0<d&&g.yT(a,b,"bwm",[d,(c.D-a.Ea).toFixed(3)])}a.Y=c.B;a.Ea=c.D;isNaN(c.bandwidthEstimate)||g.yT(a,b,"bwe",[c.bandwidthEstimate.toFixed(0)]);a.provider.videoData.Gj&&c.u&&AT(a,"bwinfo",c.u);a.P&&g.yT(a,b,"bat",[a.P.level,a.P.charging?"1":"0"]);d=a.provider.getVisibilityState();a.qb!==d&&(g.yT(a,b,"vis",[d]),a.qb=d);BT(a,b);(d=$ta(a.provider))&&d!==a.Aa&&(g.yT(a,b,"conn",[d]),
a.Aa=d);aua(a,b,c)};
aua=function(a,b,c){if(!isNaN(c.jl)){var d=c.jl;c.C<d&&(d=c.C);g.yT(a,b,"bh",[d.toFixed(3)])}};
DT=function(a){for(var b=0,c=g.q(Object.keys(a.u)),d=c.next();!d.done;d=c.next())d=d.value,b+=d.length+Number(g.hh(a.u[d],function(e,f){return e+f.length},0));
96E3<b&&(new g.F(a.reportStats,0,a)).start()};
bua=function(a){a.provider.videoData.In&&ET(a,"prefetch");a.provider.videoData.Hi&&AT(a,"reload","r."+a.provider.videoData.reloadReason+";ct."+a.provider.videoData.Hi);a.provider.videoData.si&&ET(a,"monitor");a.provider.videoData.isLivePlayback&&ET(a,"live");a.provider.videoData.Pf&&AT(a,"ctrl",a.provider.videoData.Pf,!0);if(a.provider.videoData.Re){var b=a.provider.videoData.Re.replace(/,/g,"_");AT(a,"ytp",b,!0)}a.provider.videoData.BF&&(b=a.provider.videoData.BF.replace(/,/g,"."),AT(a,"ytrexp",
b,!0));if(!g.Q(a.provider.u.experiments,"html5_disable_gpu_reporting")){var c=a.provider.u.experiments;b=a.provider.videoData;c=g.Q(c,"enable_white_noise")||g.Q(c,"enable_webgl_noop")||g.Q(c,"enable_gpu_logging");var d=b.cn()||b.qj()||b.rj()||b.mj(),e=b.Ia&&rw(g.gb(b.Ia.videoInfos))&&/^g/.test(b.clientPlaybackNonce);b=/^gp/.test(b.clientPlaybackNonce);(c||d||b||e)&&(b=(0,g.FT)())&&(a.u.gpu=[b])}a.ra=Do(function(){a.reportStats()},1E4)};
cua=function(a,b,c,d){var e=a.provider.B();c=[c,e.toFixed(3)];d&&c.push(d);g.yT(a,b,"error",c);a.N=!0};
dua=function(a){0<=a.B||(a.provider.u.ac||3!==a.provider.getVisibilityState()?a.B=g.vT(a.provider):a.ka=!0)};
ET=function(a,b){var c=a.u.cat||[];c.push(b);a.u.cat=c};
AT=function(a,b,c,d){var e=a.u.ctmp||[],f=-1!==a.sb.indexOf(b);f||a.sb.push(b);if(!d||!f){/[^a-zA-Z0-9;.!_-]/.test(c)&&(c=c.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));if(!d&&!/^t[.]/.test(c)){var h=1E3*g.vT(a.provider);c="t."+h.toFixed()+";"+c}eua(b,c);e.push(b+":"+c);a.u.ctmp=e;DT(a);return h}};
fua=function(a,b,c,d,e,f,h){1===f&&a.reportStats();a.adCpn=b;a.K=c;a.adFormat=h;b=g.vT(a.provider);c=a.provider.B();1===f&&g.yT(a,b,"vps",[a.Bc]);h=a.u.xvt||[];h.push("t."+b.toFixed(3)+";m."+c.toFixed(3)+";g.2;tt."+f+";np.0;c."+d+";d."+e);a.u.xvt=h;0===f&&(a.reportStats(),a.adCpn="",a.K="",a.adFormat=void 0)};
gua=function(a){this.provider=a;this.K=!1;this.u=0;this.D=-1;this.lastUpdateTime=NaN;this.B=0;this.segments=[];this.G=this.F=0;this.N=this.provider.De().volume;this.P=this.provider.De().muted;this.C=GT(this.provider)};
HT=function(a){a.C.startTime=a.B;a.C.endTime=a.u;a.segments.length&&g.gb(a.segments).isEmpty()?a.segments[a.segments.length-1]=a.C:a.segments.length&&a.C.isEmpty()||a.segments.push(a.C);a.F+=a.u-a.B;a.C=GT(a.provider);a.B=a.u};
hua=function(a){return a.F+a.provider.B()-a.B};
iua=function(a){a.segments.length&&a.u===a.B||HT(a);var b=a.segments;a.segments=[];return b};
kua=function(a){jua(a);a.G=Do(function(){a.update()},100);
a.lastUpdateTime=g.vT(a.provider);a.C=GT(a.provider)};
jua=function(a){window.clearInterval(a.G);a.G=NaN};
lua=function(a,b,c){c-=a.lastUpdateTime;return b===a.u&&.5<c};
IT=function(a,b,c,d){this.segments=[];this.experimentIds=[];this.pj=this.ia=this.isFinal=this.bb=this.ba=this.autoplay=this.autonav=!1;this.Ja="yt";this.B=this.F=null;this.sendVisitorIdHeader=this.za=!1;this.pageId="";this.D="watchtime"===c;this.C="playback"===c;this.da="delayplay"===c;this.ea="atr"===c;this.sb="engage"===c;this.sendVisitorIdHeader=!1;this.uri=this.ea?"/api/stats/"+c:"//"+b.Ti+"/api/stats/"+c;this.Zb=!b.ca("embeds_disable_event_label_embedded_unbranded_killswitch")&&this.C&&b.pfpChazalUi&&
a.Lc;d&&(this.ia=d.fs,d.rtn&&(this.B=d.rtn),this.D?(this.playerState=d.state,0<d.rti&&(this.F=d.rti)):(this.xb=d.mos,this.Pb=d.volume,d.at&&(this.adType=d.at)),d.autonav&&(this.autonav=d.autonav),null!=d.inview&&(this.Qa=d.inview),d.size&&(this.Pa=d.size));this.deviceParams=g.Zb(b.deviceParams);this.qb=b.Ea;this.experimentIds=b.experiments.experimentIds;this.Aa=b.ue;this.Ja=b.X;this.region=b.region;this.userAge=b.userAge;this.Ea=b.zf;this.ac=wp();this.sendVisitorIdHeader=b.sendVisitorIdHeader;this.P=
g.Q(b.experiments,"vss_pings_using_networkless");this.N=g.Q(b.experiments,"vss_send_then_write");this.pageId=b.pageId;b.livingRoomAppMode&&(this.livingRoomAppMode=b.livingRoomAppMode);this.accessToken=a.Ze();this.adFormat=a.adFormat;this.adQueryId=a.adQueryId;this.autoplay=lG(a);this.autonav=a.ni||this.autonav;this.contentVideoId=jG(a);this.clientPlaybackNonce=a.clientPlaybackNonce;this.ba=a.Lc;a.Oh&&(this.G=a.Oh,this.Y=a.qg);a.mdxEnvironment&&(this.mdxEnvironment=a.mdxEnvironment);this.bk=a.bk;this.Ug=
a.Ug;a.La&&(this.videoFormat=Yt(a.La),a.Rc&&Yt(a.Rc)!==this.videoFormat&&(this.X=Yt(a.Rc)));a.ma&&cA(a.ma)&&(this.offlineDownloadUserChoice="1");this.eventLabel=this.Zb?"embedded_unbranded":iG(a);this.pj=a.pj;this.bn=a.bn;if(b=XF(a))this.Lb=b;this.tp=a.tp;this.Fg=a.Fg;this.eventId=a.eventId;this.playlistId=a.hG||a.playlistId;this.Zt=a.Zt;this.Pf=a.Pf;this.Re=a.Re;this.nq=a.nq;this.subscribed=a.subscribed;this.videoId=a.videoId;this.videoMetadata=a.videoMetadata;this.visitorData=a.visitorData;this.osid=
a.osid;this.Ux=a.Ux;this.referrer=a.referrer;this.Zp=a.zF||a.Zp;this.Yn=a.Yn;this.zu=a.zu;this.userGenderAge=a.userGenderAge;this.Wq=a.Wq};
JT=function(a,b){return wT(a.uri,a.pageId,a.sendVisitorIdHeader?a.visitorData:void 0,a.accessToken,b)};
mua=function(a,b,c,d,e,f){b.cmt=b.len;b.lact="0";d=d().toFixed(3);b.rt=Number(d).toString();a=g.Id(a,b);e?(null==c&&(c={}),f?yr(a,c):xr(a,c)):c?g.lq(a,c):g.zt(a)};
LT=function(a){var b={ns:a.Ja,el:a.eventLabel,cpn:a.clientPlaybackNonce,docid:a.videoId,ver:2,referrer:a.referrer,cmt:a.u(a.bk),ei:a.eventId,fmt:a.videoFormat,fs:a.ia?"1":"0",rt:a.u(a.Rb),of:a.Ux,adformat:a.adFormat,content_v:a.contentVideoId,euri:a.qb,lact:a.ac,live:a.Lb,cl:(343163479).toString(),mos:a.xb,osid:a.osid,state:a.playerState,vm:a.videoMetadata,volume:a.Pb};a.adQueryId&&(b.aqi=a.adQueryId);a.subscribed&&(b.subscribed="1");g.Wa(b,a.deviceParams);a.autonav&&(b.autonav="1");a.autoplay&&(b.autoplay=
"1");a.ba&&(b.dni="1");a.isFinal&&(b["final"]="1");a.pj&&(b.splay="1");a.Ug&&(b.delay=a.Ug);a.Aa&&(b.hl=a.Aa);a.region&&(b.cr=a.region);a.userGenderAge&&(b.uga=a.userGenderAge);void 0!==a.userAge&&a.Ea&&(b.uga=a.Ea+a.userAge);void 0!==a.ra&&(b.len=a.u(a.ra));!a.D&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!==a.B&&(b.rtn=a.u(a.B));a.Zp&&(b.feature=a.Zp);a.playlistId&&(b.list=a.playlistId);a.Pf&&(b.ctrl=a.Pf);a.Re&&(b.ytr=a.Re);a.nq&&(b.ssrt="1");a.X&&(b.afmt=a.X);a.offlineDownloadUserChoice&&
(b.ODUC=a.offlineDownloadUserChoice);a.ka&&(b.lio=a.u(a.ka));a.D?(b.idpj=a.bn,b.ldpj=a.tp,null!=a.F&&(b.rti=a.u(a.F)),a.Wq&&(b.ald=a.Wq)):void 0!==a.adType&&(b.at=a.adType);a.Pa&&(a.C||a.da)&&(b.size=a.Pa);null!=a.Qa&&(a.C||a.da)&&(b.inview=a.u(a.Qa));a.D&&(b.volume=KT(a,g.Pc(a.segments,function(d){return d.volume})),b.muted=KT(a,g.Pc(a.segments,function(d){return d.muted?1:0})),b.st=KT(a,g.Pc(a.segments,function(d){return d.startTime})),b.et=KT(a,g.Pc(a.segments,function(d){return d.endTime})),bi(a.segments,
function(d){return 1!==d.playbackRate})&&(b.rate=KT(a,g.Pc(a.segments,function(d){return d.playbackRate}))),bi(a.segments,function(d){return"-"!==d.Bm})&&(b.als=g.Pc(a.segments,function(d){return d.Bm}).join(",")));
bi(a.segments,function(d){return 0!==d.visibilityState})&&(b.vis=KT(a,g.Pc(a.segments,function(d){return d.visibilityState})));
bi(a.segments,function(d){return 0!==d.connectionType})&&(b.conn=KT(a,g.Pc(a.segments,function(d){return d.connectionType})));
bi(a.segments,function(d){return 0!==d.C})&&(b.blo=KT(a,g.Pc(a.segments,function(d){return d.C})));
bi(a.segments,function(d){return"-"!==d.B})&&(b.cc=g.Pc(a.segments,function(d){return d.B}).join(","));
bi(a.segments,function(d){return"-"!==d.clipId})&&(b.clipid=g.Pc(a.segments,function(d){return d.clipId}).join(","));
if(bi(a.segments,function(d){return!!d.u})){var c="au";
a.C&&(c="au_d");b[c]=g.Pc(a.segments,function(d){return d.u}).join(",")}Zp()&&a.G&&(b.ctt=a.G,b.cttype=a.Y,b.mdx_environment=a.mdxEnvironment);
a.sb&&(b.etype=void 0!==a.K?a.K:0);a.Yn&&(b.uoo=a.Yn);a.zu&&(b.upt=a.zu);a.livingRoomAppMode&&"LIVING_ROOM_APP_MODE_UNSPECIFIED"!==a.livingRoomAppMode&&(b.clram=nua[a.livingRoomAppMode]||a.livingRoomAppMode);return b};
KT=function(a,b){return g.Pc(b,a.u).join(",")};
MT=function(a){var b=g.GG(),c=a.Ag;c&&(b.clickTracking={clickTrackingParams:c});var d=b.client||{},e="EMBED",f=iG(a);c=a.T();"leanback"===f?e="WATCH":c.ca("gvi_channel_client_screen")&&"profilepage"===f?e="CHANNEL":a.si?e="LIVE_MONITOR":"detailpage"===f?e="WATCH_FULL_SCREEN":"adunit"===f?e="ADUNIT":"sponsorshipsoffer"===f&&(e="UNKNOWN");d.clientScreen=e;if(c.Aa){f=c.Aa.split(",");e=[];f=g.q(f);for(var h=f.next();!h.done;h=f.next())e.push(Number(h.value));d.experimentIds=e}if(e=c.getPlayerType())d.playerType=
e;if(e=c.deviceParams.ctheme)d.theme=e;a.Fq&&(d.unpluggedAppInfo={enableFilterMode:!0});if(e=a.ae)d.unpluggedLocationInfo=e;b.client=d;d=b.request||{};if(e=a.mdxEnvironment)d.mdxEnvironment=e;if(e=a.mdxControlMode)d.mdxControlMode=oua[e];b.request=d;d=b.user||{};if(e=a.Sf)d.credentialTransferTokens=[{token:e,scope:"VIDEO"}];if(e=a.kh)d.delegatePurchases={oauthToken:e},d.kidsParent={oauthToken:e};b.user=d;if(d=a.contextParams)b.activePlayers=[{playerContextParams:d}];if(a=a.clientScreenNonce)b.clientScreenNonce=
a;if(a=c.Ea)b.thirdParty={embedUrl:a};return b};
NT=function(a,b,c){var d=a.videoId,e=MT(a),f=a.T(),h={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(wp()),referer:document.location.toString(),signatureTimestamp:18585};g.es.getInstance();a.ni&&(h.autonav=!0);g.gs(0,141)&&(h.autonavState=g.gs(0,140)?"STATE_OFF":"STATE_ON");h.autoCaptionsDefaultOn=g.gs(0,66);lG(a)&&(h.autoplay=!0);f.C&&a.cycToken&&(h.cycToken=a.cycToken);a.Uw&&(h.fling=!0);var l=a.Sm;if(l){var m={},n=l.split("|");3===n.length?(m.breakType=pua[n[0]],m.offset={kind:"OFFSET_MILLISECONDS",
value:String(Number(n[1])||0)},m.url=n[2]):m.url=l;h.forceAdParameters={videoAds:[m]}}a.isLivingRoomDeeplink&&(h.isLivingRoomDeeplink=!0);l=a.Os;if(null!=l){l={startWalltime:String(l)};if(m=a.kn)l.manifestDuration=String(m||14400);h.liveContext=l}a.mutedAutoplay&&(h.mutedAutoplay=!0);a.pj&&(h.splay=!0);l=a.vnd;5===l&&(h.vnd=l);if((l=a.isMdxPlayback)||g.Q(f.experiments,"send_mdx_remote_data_if_present")){l={triggeredByMdx:l};if(n=a.Re)m=n.startsWith("!"),n=n.split("-"),3===n.length?(m&&(n[0]=n[0].substr(1)),
m={clientName:qua[n[0]]||"UNKNOWN_INTERFACE",platform:rua[n[1]]||"UNKNOWN_PLATFORM",applicationState:m?"INACTIVE":"ACTIVE",clientVersion:n[2]||""},f.ca("use_remote_context_in_populate_remote_client_info")?l.remoteContexts=[{remoteClient:m}]:l.remoteClients=[m]):(m={clientName:"UNKNOWN_INTERFACE"},f.ca("use_remote_context_in_populate_remote_client_info")?l.remoteContexts=[{remoteClient:m}]:l.remoteClients=[m]);if(m=a.bj)l.skippableAdsSupported=m.split(",").includes("ska");h.mdxContext=l}l=b.width;
0<l&&(h.playerWidthPixels=l);if(b=b.height)h.playerHeightPixels=b;0!==c&&(h.vis=c);if(c=f.widgetReferrer)h.widgetReferrer=c.substring(0,128);d={videoId:d,context:e,playbackContext:{contentPlaybackContext:h}};a.contentCheckOk&&(d.contentCheckOk=!0);if(e=a.clientPlaybackNonce)d.cpn=e;if(e=a.playerParams)d.params=e;if(e=a.playlistId)d.playlistId=e;a.racyCheckOk&&(d.racyCheckOk=!0);a.ca("hoffle_save")&&nG(a)&&(d.forOffline=!0);a=a.T();if(e=a.embedConfig)d.serializedThirdPartyEmbedConfig=e;e=g.gs(g.es.getInstance(),
65);g.kD(a)&&(d.captionParams={deviceCaptionsOn:null!=e?!e:!1});return d};
sua=function(a){var b=a.T();g.es.getInstance();var c={context:MT(a),videoId:a.videoId,racyCheckOk:a.racyCheckOk,contentCheckOk:a.contentCheckOk,autonavState:"STATE_NONE"};"adunit"===iG(a)&&(c.isAdPlayback=!0);b.embedConfig&&(c.serializedThirdPartyEmbedConfig=b.embedConfig);b.Oi&&(c.showContentOwnerOnly=!0);g.gs(0,141)&&(c.autonavState=g.gs(0,140)?"STATE_OFF":"STATE_ON");return c};
uua=function(a,b,c,d){var e=window.location.search;if(38===b.Fg&&"books"===a.playerStyle)return e=b.videoId.indexOf(":"),g.Id("//play.google.com/books/volumes/"+b.videoId.slice(0,e)+"/content/media",{aid:b.videoId.slice(e+1),sig:b.sM});if(30===b.Fg&&"docs"===a.playerStyle)return g.Id("https://docs.google.com/get_video_info",{docid:b.videoId,authuser:b.he,authkey:b.authKey,eurl:a.Ea});if(33===b.Fg&&"google-live"===a.playerStyle)return g.Id("//google-liveplayer.appspot.com/get_video_info",{key:b.videoId});
"yt"!==a.X&&g.Er(Error("getVideoInfoUrl for invalid namespace: "+a.X));var f={html5:"1",video_id:b.videoId,cpn:b.clientPlaybackNonce,eurl:a.Ea,ps:a.playerStyle,el:iG(b),hl:a.ue,list:b.playlistId,agcid:b.gA,aqi:b.adQueryId,sts:18585,lact:wp()};g.Wa(f,a.deviceParams);a.Aa&&(f.forced_experiments=a.Aa);b.Sf?(f.vvt=b.Sf,b.mdxEnvironment&&(f.mdx_environment=b.mdxEnvironment)):b.Ze()&&(f.access_token=b.Ze());b.adFormat&&(f.adformat=b.adFormat);0<=b.slotPosition&&(f.slot_pos=b.slotPosition);b.breakType&&
(f.break_type=b.breakType);null!==b.Xu&&(f.ad_id=b.Xu);null!==b.cv&&(f.ad_sys=b.cv);null!==b.Ov&&(f.encoded_ad_playback_context=b.Ov);b.Oy&&(f.tpra="1");a.captionsLanguagePreference&&(f.cc_lang_pref=a.captionsLanguagePreference);a.Xi&&2!==a.Xi&&(f.cc_load_policy=a.Xi);var h=g.gs(g.es.getInstance(),65);g.kD(a)&&null!=h&&!h&&(f.device_captions_on="1");a.mute&&(f.mute=a.mute);b.annotationsLoadPolicy&&2!==a.annotationsLoadPolicy&&(f.iv_load_policy=b.annotationsLoadPolicy);b.Dr&&(f.endscreen_ad_tracking=
b.Dr);(h=a.K.get(b.videoId))&&h.Dq&&(f.ic_track=h.Dq);b.Ag&&(f.itct=b.Ag);lG(b)&&(f.autoplay="1");b.mutedAutoplay&&(f.mutedautoplay=b.mutedAutoplay);b.ni&&(f.autonav="1");b.Xw&&(f.noiba="1");g.Q(a.experiments,"send_mdx_remote_data_if_present")?(b.isMdxPlayback&&(f.mdx="1"),b.Re&&(f.ytr=b.Re)):b.isMdxPlayback&&(f.mdx="1",f.ytr=b.Re);b.mdxControlMode&&(f.mdx_control_mode=b.mdxControlMode);b.bj&&(f.ytrcc=b.bj);b.gx&&(f.utpsa="1");b.Uw&&(f.is_fling="1");b.Vw&&(f.mute="1");b.vnd&&(f.vnd=b.vnd);b.Sm&&(h=
3===b.Sm.split("|").length,f.force_ad_params=h?b.Sm:"||"+b.Sm);b.In&&(f.preload=b.In);c.width&&(f.width=c.width);c.height&&(f.height=c.height);b.pj&&(f.splay="1");b.ypcPreview&&(f.ypc_preview="1");jG(b)&&(f.content_v=jG(b));b.si&&(f.livemonitor=1);a.he&&(f.authuser=a.he);a.pageId&&(f.pageid=a.pageId);a.xb&&(f.ei=a.xb);a.B&&(f.iframe="1");b.contentCheckOk&&(f.cco="1");b.racyCheckOk&&(f.rco="1");a.C&&b.Os&&(f.live_start_walltime=b.Os);a.C&&b.kn&&(f.live_manifest_duration=b.kn);a.C&&b.playerParams&&
(f.player_params=b.playerParams);a.C&&b.cycToken&&(f.cyc=b.cycToken);a.C&&b.Ry&&(f.tkn=b.Ry);0!==d&&(f.vis=d);a.enableSafetyMode&&(f.enable_safety_mode="1");b.kh&&(f.kpt=b.kh);b.Js&&(f.kids_age_up_mode=b.Js);b.kidsAppInfo&&(f.kids_app_info=b.kidsAppInfo);b.Fq&&(f.upg_content_filter_mode="1");a.widgetReferrer&&(f.widget_referrer=a.widgetReferrer.substring(0,128));b.ae?(h=null!=b.ae.latitudeE7&&null!=b.ae.longitudeE7?b.ae.latitudeE7+","+b.ae.longitudeE7:",",h+=","+(b.ae.clientPermissionState||0)+","+
(b.ae.locationRadiusMeters||"")+","+(b.ae.locationOverrideToken||"")):h=null;h&&(f.uloc=h);b.kp&&(f.internalipoverride=b.kp);a.embedConfig&&(f.embed_config=a.embedConfig);a.Oi&&(f.co_rel="1");0<a.Ve.length&&(f.ancestor_origins=Array.from(a.Ve).join(","));void 0!==a.homeGroupInfo&&(f.home_group_info=a.homeGroupInfo);void 0!==a.livingRoomAppMode&&(f.living_room_app_mode=a.livingRoomAppMode);a.enablePrivacyFilter&&(f.enable_privacy_filter="1");b.isLivingRoomDeeplink&&(f.is_living_room_deeplink="1");
b.qr&&b.rr&&(f.clip=b.qr,f.clipt=b.rr);b.xr&&(f.disable_watch_next="1");a.ca("web_player_gvi_wexit_diff")&&(f.player_request=JSON.stringify(NT(b,c,d)));a.ca("html5_onesie_watch_next_diff")&&(f.watch_next_request=JSON.stringify(sua(b)));for(var l in f)!tua.has(l)&&f[l]&&512<String(f[l]).length&&(g.Fr(Error("GVI param too long: "+l)),f[l]="");b=a.N;g.VC(a)&&(b=xv(b.replace(/\b(?:www|web)([.-])/,"tv$1"))||a.N);a=g.Id(b+"get_video_info",f);e&&(a=iq(a,e));return a};
g.OT=function(a,b){return a.N+"timedtext_video?ref=player&v="+b.videoId};
g.PT=function(a,b){a.feature=b;return a};
vua=function(a){var b={};a.CF&&(b.ytrext=a.CF);return g.Wb(b)?void 0:b};
QT=function(a){g.B.call(this);this.provider=a;this.currentPlayerState="paused";this.B=NaN;this.K=[10,10,10,40];this.N=this.P=0;this.ba=this.Y=this.da=this.ea=this.X=this.W=this.C=!1;this.D=NaN;this.F=this.G=void 0;this.u=new gua(a)};
yua=function(a){if(!a.C){g.Q(a.provider.u.experiments,"disable_embedpage_playback_logging")||16623!==a.provider.videoData.hq||g.Bo(Error("Playback for EmbedPage"));var b=RT(a,"playback");a.K=[10+a.provider.videoData.bn,10,10,40+a.provider.videoData.tp-a.provider.videoData.bn,40];kua(a.u);b.B=ST(a,!0);b.send();if(a.provider.videoData.Rt){b=a.provider.u;var c=a.provider.videoData;c={html5:"1",video_id:c.videoId,cpn:c.clientPlaybackNonce,ei:c.eventId,ptk:c.Rt,oid:c.RE,ptchn:c.QE,pltype:c.SE,content_v:jG(c)};
b=g.Id(b.N+"ptracking",c);TT(a,b)}a.provider.videoData.Ko&&(UT(a,"playback"),a.D||wua(a));a.provider.videoData.Ug||xua(a);a.C=!0;a=a.u;a.u=a.provider.B();a.lastUpdateTime=g.vT(a.provider);!(0===a.B&&5>a.u)&&2<a.u-a.B&&(a.B=a.u);a.K=!0}};
ST=function(a,b,c){c=void 0===c?NaN:c;var d=g.vT(a.provider);c=isNaN(c)?d:c;c=Math.ceil(c);var e=a.K[a.P];a.P+1<a.K.length&&a.P++;var f=c+e;a.B=g.Co(function(){if(!a.la()){a.B=NaN;a.u.update();var h=iua(a.u),l=zua(a,h);b&&(l.F=f);var m=a.provider.ca("html5_expanded_max_vss_pings")?1E3:400;m=a.N>m;!(1<h.length)&&h[0].isEmpty()||m||(l.B=ST(a,!0,f));l.send();a.N++}},1E3*(f-d));
return f};
RT=function(a,b){var c=a.provider,d=c.De();g.Wa(d,c.videoData.De());g.Wa(d,{state:a.currentPlayerState});c=new IT(a.provider.videoData,a.provider.u,b,d);c.bk=a.provider.B();a.provider.videoData.isLivePlayback||(c.ra=a.provider.F());a.provider.videoData.ma&&(d=a.provider.videoData.ma.Ce(c.bk))&&(c.ka=d-c.bk);c.Rb=g.vT(a.provider);c.segments=[GT(a.provider)];a.provider.videoData.enableServerStitchedDai&&a.F&&a.G&&(c.clientPlaybackNonce=a.F,c.videoId=a.G);return c};
zua=function(a,b){var c=RT(a,"watchtime");c.segments=b;c.bk=a.u.u;return c};
VT=function(a){a.u.update();return zua(a,iua(a.u))};
xua=function(a){a.provider.videoData.remarketingUrl&&!a.ea&&(TT(a,a.provider.videoData.remarketingUrl),a.ea=!0);a.provider.videoData.youtubeRemarketingUrl&&!a.da&&(TT(a,a.provider.videoData.youtubeRemarketingUrl),a.da=!0);a.provider.videoData.googleRemarketingUrl&&!a.Y&&(TT(a,a.provider.videoData.googleRemarketingUrl),a.Y=!0);a.provider.videoData.ppvRemarketingUrl&&!a.ba&&(TT(a,a.provider.videoData.ppvRemarketingUrl),a.ba=!0);Aua(a)};
Bua=function(a){if(!a.la()&&a.C){a.currentPlayerState="paused";var b=VT(a);b.isFinal=!0;b.send();g.Eo(a.D);a.dispose()}};
wua=function(a){a.D=Do(function(){UT(a,"heartbeat")},3E4)};
UT=function(a,b){var c=a.provider.u,d=a.provider.videoData,e={ns:c.X,el:iG(d),eurl:c.Ea,fmt:d.La?Yt(d.La):0,html5:1,list:d.playlistId,cpn:d.clientPlaybackNonce,ei:d.eventId,ps:c.playerStyle,noflv:1,st:a.provider.B(),video_id:d.videoId,metric:b};lG(d)&&(e.autoplay="1");"heartbeat"===b&&(e.tpmt=hua(a.u));g.Wa(e,c.deviceParams);TT(a,g.Id(c.N+"live_204",e))};
Cua=function(a,b,c){a.W||(c||(c=RT(a,"atr")),c.W=b,c.send(),a.W=!0)};
Aua=function(a){a.provider.videoData.Sc.eventLabel=iG(a.provider.videoData);a.provider.videoData.Sc.playerStyle=a.provider.u.playerStyle;a.provider.videoData.Ln&&(a.provider.videoData.Sc.feature="pyv");a.provider.videoData.Sc.vid=a.provider.videoData.videoId;var b=a.provider.videoData.Sc;a=a.provider.videoData;a=a.isAd()||!!a.Ln;b.isAd=a};
Eua=function(a){var b=RT(a,"engage");b.K=1;a=Dua(a.provider);return g.Va(mua,b.uri,LT(b),JT(b),a,b.P,b.N)};
TT=function(a,b){var c=a.provider.videoData.Ze(),d=a.provider.ca("web_player_vss_pageid_header")?a.provider.u.pageId:void 0,e=a.provider.u.sendVisitorIdHeader?a.provider.videoData.visitorData:void 0,f=g.Q(a.provider.u.experiments,"vss_pings_using_networkless"),h=g.Q(a.provider.u.experiments,"vss_send_then_write");c=wT(b,d,e,c,void 0);xT(b,c,{token:a.provider.videoData.Oh,Vy:a.provider.videoData.qg,mdxEnvironment:a.provider.videoData.mdxEnvironment},void 0,f,h)};
WT=function(a){g.B.call(this);var b=this;this.provider=a;this.B=this.qoe=this.u=null;this.C=void 0;this.D=new Map;this.provider.videoData.isValid()&&!this.provider.videoData.Vn&&(this.u=new QT(this.provider),g.C(this,this.u),this.qoe=new zT(this.provider),g.C(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.C=this.provider.videoData.clientPlaybackNonce)&&this.D.set(this.C,this.u));Zta(this.provider)&&(this.B=new uT(this.provider,function(c){b.qoe&&AT(b.qoe,"h5h",c,void 0)}),g.C(this,
this.B))};
g.XT=function(a){var b;a.provider.videoData.enableServerStitchedDai&&a.C?null===(b=a.D.get(a.C))||void 0===b?void 0:HT(b.u):a.u&&HT(a.u.u)};
Fua=function(a,b,c,d){a.qoe&&(a=a.qoe,g.yT(a,g.vT(a.provider),"ad_playback",[b,c,d]))};
Gua=function(a,b){a.u&&Cua(a.u,b)};
Hua=function(a){if(!a.u)return null;var b=RT(a.u,"atr");return function(c){a.u&&Cua(a.u,c,b)}};
Wqa=function(a){return a.u?Eua(a.u):function(){}};
ZT=function(a,b){this.C=a;this.timerName="";this.B=!1;this.u=b||null;this.B=!1};
Iua=function(a){a=a.timerName;UA("yt_sts","p",a);VA("_start",void 0,a)};
Jua=function(a,b,c){var d=g.LC(b.Oa)&&b.Oa.Df&&kG(b);if(b.Oa.Bf&&(HC(b.Oa)||oD(b.Oa)||d)&&!a.B){a.B=!0;g.K("TIMING_ACTION")||oo("TIMING_ACTION",a.C.csiPageType);a.C.csiServiceName&&oo("CSI_SERVICE_NAME",a.C.csiServiceName);if(a.u){b=a.u.B;d=g.q(Object.keys(b));for(var e=d.next();!e.done;e=d.next())e=e.value,VA(e,b[e],a.timerName);b=a.u.u;d=g.q(Object.keys(b));for(e=d.next();!e.done;e=d.next())e=e.value,UA(e,b[e],a.timerName);b=a.u;b.B={};b.u={}}UA("yt_pvis",cha(),a.timerName);UA("yt_pt","html5",a.timerName);
c&&!bB("pbs",a.timerName)&&a.tick("pbs",c);c=a.C;!oD(c)&&!HC(c)&&bB("_start",a.timerName)&&fB(a.timerName)}};
Kua=function(){this.endTime=this.startTime=-1;this.B="-";this.playbackRate=1;this.visibilityState=0;this.u="";this.volume=this.connectionType=this.C=0;this.muted=!1;this.Bm=this.clipId="-"};
Lua=function(a,b,c,d,e,f,h,l,m,n,p,r,t,w){this.videoData=a;this.u=b;this.C=void 0;this.De=c;this.F=d;this.B=e;this.D=f;this.N=h;this.getAudioTrack=l;this.getPlaybackRate=m;this.G=n;this.getVisibilityState=p;this.K=r||function(){};
this.W=t||function(){};
this.P=w||function(){return-1}};
g.vT=function(a){return Dua(a)()};
Dua=function(a){if(!a.C){var b=g.Va(function(d){var e=(0,g.N)();d&&631152E6>=e&&(M(Error("invalid coreTime.now value: "+e)),e=(new Date).getTime()+2);return e},g.Q(a.u.experiments,"html5_validate_yt_now")),c=b();
a.C=function(){return Math.round(b()-c)/1E3};
a.W()}return a.C};
$ta=function(a){if(navigator.connection&&navigator.connection.type)return Mua[navigator.connection.type]||Mua.other;if(g.UC(a.u)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 1}return 0};
GT=function(a){var b=new Kua;b.B=a.De().cc||"-";b.playbackRate=a.getPlaybackRate();var c=a.getVisibilityState();0!==c&&(b.visibilityState=c);a.u.Fc&&(b.C=1);c=a.getAudioTrack();c.u&&c.u.id&&"und"!==c.u.id&&(b.u=c.u.id);b.connectionType=$ta(a);b.volume=a.De().volume;b.muted=a.De().muted;b.clipId=a.De().clipid||"-";b.Bm=a.videoData.Bm||"-";return b};
Nua=function(a){this.C=this.mediaTime=NaN;this.u=this.seeking=!1;this.B=.001;a&&(this.B=a)};
$T=function(a,b){return b>a.mediaTime+a.B&&b<a.mediaTime+5};
aU=function(a,b,c,d){if(d=1<d)a.u=!0;if(a.seeking)b!==a.mediaTime&&(a.seeking=!1);else if(0<b&&a.mediaTime===b)return c-a.C>(d||!a.u?1500:400);a.mediaTime=b;a.C=c;return!1};
Oua=function(a,b){this.videoData=a;this.Ia=b};
Pua=function(a,b,c){return b.er(c).then(function(){return Vr(new Oua(b,b.Ia))},function(d){d instanceof Error&&g.Bo(d);
d=b.isLivePlayback&&!g.aC(a.D,!0)?"html5.unsupportedlive":"fmt.noneavailable";var e={buildRej:"1",a:""+ +!!b.adaptiveFormats,d:""+ +!!b.tg,drm:""+ +RF(b),f18:""+ +(0<=b.Gq.indexOf("itag=18")),c18:""+ +JB('video/mp4; codecs="avc1.42001E, mp4a.40.2"')};b.ma&&(RF(b)?(e.f142=""+ +!!b.ma.u["142"],e.f149=""+ +!!b.ma.u["149"],e.f279=""+ +!!b.ma.u["279"]):(e.f133=""+ +!!b.ma.u["133"],e.f140=""+ +!!b.ma.u["140"],e.f242=""+ +!!b.ma.u["242"]),e.cAVC=""+ +KB('video/mp4; codecs="avc1.42001E"'),e.cAAC=""+ +KB('audio/mp4; codecs="mp4a.40.2"'),
e.cVP9=""+ +KB('video/webm; codecs="vp9"'));if(b.Wc){e.drmsys=b.Wc.u;var f=0;b.Wc.B&&(f=Object.keys(b.Wc.B).length);e.drmst=""+f}return new lB(d,!0,e)})};
Rua=function(a,b,c){g.O.call(this);this.videoData=a;this.experiments=b;this.P=c;this.B=[];this.D=0;this.C=!0;this.G=!1;this.K=0;c=new Qua;"ULTRALOW"===a.latencyClass&&(c.D=!1);a.si?c.B=3:g.cG(a)&&(c.B=2);g.Q(b,"html5_adaptive_seek_to_head_killswitch")||"NORMAL"!==a.latencyClass||(c.G=!0);var d=MF(a);c.F=2===d||-1===d;c.F&&(c.W++,21530001===KF(a)&&(c.K=g.P(b,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN));if(Uj("trident/")||Uj("edge/"))d=g.P(b,"html5_platform_minimum_readahead_seconds")||3,c.C=Math.max(c.C,
d);g.P(b,"html5_minimum_readahead_seconds")&&(c.C=g.P(b,"html5_minimum_readahead_seconds"));g.P(b,"html5_maximum_readahead_seconds")&&(c.P=g.P(b,"html5_maximum_readahead_seconds"));g.Q(b,"html5_force_adaptive_readahead")&&(c.D=!0);g.P(b,"html5_allowable_liveness_drift_chunks")&&(c.u=g.P(b,"html5_allowable_liveness_drift_chunks"));g.P(b,"html5_readahead_ratelimit")&&(c.N=g.P(b,"html5_readahead_ratelimit"));switch(KF(a)){case 21530001:c.u=(c.u+1)/5,"LOW"===a.latencyClass&&(c.u*=2),c.X=g.Q(b,"html5_live_smoothly_extend_max_seekable_time")}this.policy=
c;this.F=1!==this.policy.B;b=isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead;a.si&&b--;a.isLowLatencyLiveStream&&"NORMAL"!==a.latencyClass||b++;switch(KF(a)){case 21530001:b=1;break;case 2153E4:b=2}this.policy.F&&b++;this.u=bU(this,b)};
Sua=function(a,b){var c=a.u;(void 0===b?0:b)&&a.policy.X&&3===MF(a.videoData)&&--c;return cU(a)*c};
eU=function(a,b){var c=dU(a);var d=a.policy.u;a.G||(d=Math.max(d-1,0));d*=cU(a);return b>=c-d};
dU=function(a){return Math.max(a.P()-Sua(a,!0),a.videoData.uc())};
Tua=function(a,b,c){b=eU(a,b);c||b?b&&(a.C=!0):a.C=!1;a.F=2===a.policy.B||3===a.policy.B&&a.C};
Uua=function(a,b){var c=eU(a,b);a.G!==c&&a.V("livestatusshift",c);a.G=c};
cU=function(a){return a.videoData.ma?qA(a.videoData.ma)||5:5};
bU=function(a,b){b=Math.max(Math.max(a.policy.W,Math.ceil(a.policy.C/cU(a))),b);return Math.min(Math.min(8,Math.floor(a.policy.P/cU(a))),b)};
Qua=function(){this.W=1;this.C=0;this.P=Infinity;this.N=0;this.D=!0;this.u=2;this.B=1;this.F=!1;this.K=NaN;this.X=this.G=!1};
hU=function(a,b,c,d){g.B.call(this);this.D=a;this.V=b;this.visibility=c;this.X=d;this.B=this.C=null;this.u=0;this.G={};this.playerState=new g.zL;this.F=new g.F(this.Y,1E3,this);g.C(this,this.F);this.da=new fU({delayMs:g.P(this.D.experiments,"html5_seek_timeout_delay_ms")});this.W=new fU({delayMs:g.P(this.D.experiments,"html5_long_rebuffer_threshold_ms")});this.ia=gU(this,"html5_seek_set_cmt");this.ba=gU(this,"html5_seek_jiggle_cmt");this.ea=gU(this,"html5_seek_new_elem");gU(this,"html5_decoder_freeze_timeout");
this.ka=gU(this,"html5_unreported_seek_reseek");this.P=gU(this,"html5_long_rebuffer_jiggle_cmt");this.N=gU(this,"html5_reload_element_long_rebuffer");this.K=gU(this,"html5_ads_preroll_lock_timeout")};
gU=function(a,b){var c=g.P(a.D.experiments,b+"_delay_ms"),d=g.Q(a.D.experiments,b+"_cfl");return new fU({delayMs:c,vr:d})};
iU=function(a,b,c,d,e,f,h){Vua(b,c)?(d=a.ob(b),d.wn=h,d.wdup=a.G[e]?"1":"0",a.V("qoeerror",e,d),a.G[e]=!0,b.vr||f()):(b.du&&b.B&&!b.D?(f=(0,g.N)(),d?b.u||(b.u=f):b.u=0,c=!d&&f-b.B>b.du,f=b.u&&f-b.u>b.oy||c?b.D=!0:!1):f=!1,f&&(f=a.ob(b),f.wn=h,f.we=e,f.wsuc=""+ +d,h=g.mB(f),a.V("ctmp","workaroundReport",h),d&&(b.reset(),a.G[e]=!1)))};
fU=function(a){a=void 0===a?{}:a;var b=void 0===a.oy?1E3:a.oy,c=void 0===a.du?3E4:a.du,d=void 0===a.vr?!1:a.vr;this.F=Math.ceil((void 0===a.delayMs?0:a.delayMs)/1E3);this.oy=b;this.du=c;this.vr=d;this.u=this.B=this.C=this.startTimestamp=0;this.D=!1};
Vua=function(a,b){if(!a.F||a.B)return!1;if(!b)return a.reset(),!1;var c=(0,g.N)();if(!a.startTimestamp)a.startTimestamp=c,a.C=0;else if(a.C>=a.F)return a.B=c,!0;a.C+=1;return!1};
kU=function(a,b,c,d){g.O.call(this);var e=this;this.videoData=a;this.X=b;this.visibility=c;this.bb=d;this.policy=new Wua(this.X);this.N=new hU(this.X,(0,g.z)(this.V,this),this.visibility,this.bb);a={};this.ia=(a.seekplayerrequired=this.GQ,a.videoformatchange=this.TN,a);this.playbackData=null;this.Ea=new os;this.W=this.B=this.F=this.u=null;this.C=NaN;this.K=0;this.G=null;this.ka=NaN;this.P=this.Y=null;this.za=this.ba=!1;this.da=new g.F(function(){Xua(e,!1)},this.policy.u);
this.sb=new g.F(function(){jU(e)});
this.Aa=new g.F(function(){e.ba=!0;Yua(e)});
this.Pa=this.D=0;this.ra=!0;this.Ja=0;this.Qa=NaN;this.ea=new g.F(function(){var f=e.X.Zb;f.u+=1E4/36E5;f.u-f.C>1/6&&(qC(f),f.C=f.u);e.ea.start()},1E4);
this.ca("html5_unrewrite_timestamps")?this.ia.timestamp=this.Rn:this.ia.timestamp=this.kL;g.C(this,this.Ea);g.C(this,this.da);g.C(this,this.Aa);g.C(this,this.sb);g.C(this,this.ea)};
Zua=function(a,b){a.playbackData=b;a.videoData.isLivePlayback&&(a.W=new Mha(function(){a:{if(a.playbackData&&a.playbackData.Ia.wc()){if(JF(a.videoData)&&a.F){var c=a.F.Ja.u()||0;break a}if(a.videoData.ma){c=a.videoData.ma.P;break a}}c=0}return c}),a.B=new Rua(a.videoData,a.X.experiments,function(){return a.Cd(!0)}));
a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&1E9<a.videoData.startSeconds||(a.K=a.K||a.videoData.startSeconds||0)};
mU=function(a,b){g.qs(a.Ea);(a.u=b)?($ua(a),jU(a)):lU(a);var c=a.N;(c.C=b)&&c.F.Gb()};
oU=function(a,b){a.F&&ts(a.F,a.ia,a);(a.F=b)?(rs(b,a.ia,a),nU(a,!0)):lU(a);a.N.B=b};
pU=function(a){return a.getCurrentTime()-a.oc()};
qU=function(a){return a.B?dU(a.B):Infinity};
rU=function(a){return!!a.B&&a.B.F};
Xua=function(a,b){if(a.B){var c=a.B;var d=a.getCurrentTime();!eU(c,d)&&c.F?(c.policy.G&&(c.policy.u=Math.max(c.policy.u+1,10)),c=Infinity):c=d<c.videoData.uc()?Math.min(c.videoData.uc()+10,dU(c)):NaN;if(!isNaN(c)){if(a.ca("html5_in_buffer_ptl")&&a.F&&b){d=a.da.isActive();var e=dU(a.B);if((e=Ola(a.F,e-a.oc()))&&!d){a.policy.u&&a.da.start();a.V("ctmp","inBufferPtl","cmt."+a.getCurrentTime()+";seekTo"+(e+a.oc()));a.seekTo(e+a.oc());return}}a.ca("html5_peg_to_live_logging")&&a.V("ctmp","ptl","cmt."+a.getCurrentTime()+
";seekTo"+(c+a.oc()));a.seekTo(c)}}};
nU=function(a,b){if(a.B&&a.F){var c=!1;if(b)c=!0;else if(a.videoData.isLowLatencyLiveStream||"LOW"===a.videoData.latencyClass||"ULTRALOW"===a.videoData.latencyClass)if(c=a.B,c.B.length){var d=c.u;b:{if(c.B.length){if(1<Math.min.apply(null,c.B)){var e=bU(c,c.u-1);break b}if(c.policy.D){e=bU(c,c.u+1);break b}}e=c.u}c.u=e;if(d=d!==c.u)c.B=[],c.D=0;c=d}else c=!1;c&&a.V("livereadaheadchanged",Sua(a.B));c=a.F;d=a.B.u;e=a.B;e=(e.u-1+e.policy.u)*cU(e);var f=a.B.policy.K;c.sb=Math.max(d-1,0);c.N&&(c.N.Y=e);
c.Fc=f}};
sU=function(a){return a.videoData.isLivePlayback&&!!a.videoData.Ia&&!a.videoData.Ia.wc()};
Yua=function(a){ava(a).then(void 0,function(){lU(a)});
bva(a).then(function(b){a.P&&(a.P.resolve(b),a.V("seekend"));lU(a)},function(){lU(a)});
a.V("seekstart")};
ava=function(a){if(!a.Y)if(a.F)if(isFinite(a.C))a.Y=a.F.seek(a.C-a.D);else{var b=a.F;lE(b);b.N&&ID(b.N,b.B.u);xE(b);b=b.P;var c=Math.max(b.B.C.G||0,b.u.C.G||0);Sy(b.B);Sy(b.u);var d=b.F,e;for(e in d.u)Gz(d.u[e].index,Infinity);b.F.isManifestless&&(b.K=!0);b.V("setcurrenttime",c);b.C=!0;b.P=new Ww;a.Y=b.P;a.C=a.F.getCurrentTime()+a.D}else a.Y=Am(a.C-a.D);return a.Y};
bva=function(a){var b=a.G;b||(a.G=new Ww,b=a.G,jU(a));return b};
cva=function(a,b,c){return isNaN(b)?NaN:g.$d(b,a.uc(),a.Cd(c))};
jU=function(a){if(a.G)if(!a.ca("html5_nondash_live_seek_killswitch")&&sU(a)&&a.u&&0<a.u.gg()&&0<JS(a.u)&&(a.C=cva(a,a.C,!1)),!a.u||!dva(a))a.sb.start(750);else if(!isNaN(a.C)&&isFinite(a.C)&&a.ka!==a.C-a.D){var b=a.u.getCurrentTime()-a.C;if(Math.abs(b)<=a.Ja)a.G&&a.G.resolve(a.u.getCurrentTime());else if(!a.videoData.isLivePlayback&&a.C>=a.Cd()-.1)a.C=a.Cd(),a.G.resolve(a.Cd()),a.V("ended");else try{var c=a.C-a.D;a.u.seekTo(c);a.N.u=c;a.ka=c;a.K=a.C}catch(d){}}};
dva=function(a){if(!a.u||0===a.u.gg()||0<a.u.oh())return!1;var b=0<a.u.getCurrentTime();if(!a.ca("html5_nondash_mediaelementready_killswitch")&&!a.wc()&&!a.videoData.isLivePlayback&&RF(a.videoData))return b;if(0<=a.C){var c=a.u.Xo();if(c.length||!b)return Ay(c,a.C-a.D)}return b};
lU=function(a){a.C=NaN;a.ka=NaN;a.G=null;a.Y=null;a.P=null;a.ba=!1;a.za=!1;a.Ja=0;a.da.stop();a.Aa.stop()};
$ua=function(a){if(a.u){for(var b=g.q(["loadedmetadata","progress","seeked","seeking"]),c=b.next();!c.done;c=b.next())a.Ea.R(a.u,c.value,function(d){var e=a.u;switch(d.type){case "seeking":d=e.getCurrentTime()+a.D;if(!a.G||a.za&&d!==a.C)a.G=new Ww,a.ka=d,e=e.getCurrentTime(),a.N.u=e,a.seekTo(d),a.za=!0;break;case "seeked":a.G&&a.G.resolve(a.u.getCurrentTime());break;case "loadedmetadata":a.ra?(e="ss.",d=0,(dG(a.videoData)||a.videoData.liveUtcStartSeconds)&&(a.videoData.liveUtcStartSeconds||a.videoData.startSeconds&&
isFinite(a.videoData.startSeconds)&&1E9<a.videoData.startSeconds)&&a.videoData.ma?(d=a.videoData.liveUtcStartSeconds||a.videoData.rk,e="utc.",d=a.Cd()-a.Ce(a.Cd())+d):a.videoData.ma&&a.videoData.ma.isManifestless&&a.videoData.rk?(e="mss.",d=a.videoData.rk+a.oc()):a.ca("html5_unrewrite_timestamps")&&a.videoData.ou&&(e="stss.",d=a.videoData.ou),d?(a.seekTo(d),a.V("ctmp","startSeconds",e+String(d)),a.ra=!1):a.videoData.rk&&a.V("ctmp","startSeconds",""+e+(a.videoData.rk+a.oc())),e=!!d):e=!1;a.ca("html5_nondash_live_seek_killswitch")&&
!e&&sU(a)&&(a.C=isFinite(a.C)?g.$d(a.C,a.uc(),a.Cd()):a.Cd());jU(a);break;case "progress":jU(a)}});
a.P||a.K||a.policy.C||!a.u.eu()||a.seekTo(.01)}};
eva=function(a){if(!a.u)return 0;if(dG(a.videoData)){var b=msa(a.u)+a.D-a.uc();a=a.Cd()-a.uc();return Math.max(0,Math.min(1,b/a))}return LS(a.u)};
Wua=function(a){this.u=g.P(a.experiments,"html5_in_buffer_ptl_timeout_ms");this.B=g.Q(a.experiments,"html5_live_smoothly_extend_max_seekable_time");this.D=a.ca("html5_seek_over_discontinuities");this.C=a.ca("html5_requires_seek_for_playback_at_zero_killswitch")};
fva=function(){var a=To();return!(!a||"visible"===a)};
hva=function(a){var b=gva();b&&document.addEventListener(b,a,!1)};
iva=function(a){var b=gva();b&&document.removeEventListener(b,a,!1)};
gva=function(){if(document.visibilityState)var a="visibilitychange";else{if(!document[So+"VisibilityState"])return"";a=So+"visibilitychange"}return a};
tU=function(){g.O.call(this);var a=this;this.fullscreen=0;this.C=this.pictureInPicture=this.B=this.u=this.inline=!1;this.D=function(){a.Eg()};
hva(this.D);this.F=this.getVisibilityState(this.B,this.isFullscreen(),this.u,this.isInline(),this.pictureInPicture,this.C)};
uU=function(){g.B.call(this);this.C={};this.u={};this.B=new g.F(this.D,250,this);g.C(this,this.B)};
wU=function(a,b,c,d){a.C[b]=c;a.u[b]=new vU(void 0===d?!1:d)};
xU=function(a,b){if(a.u[b]){var c=a.u[b].buffer;for(var d=[];c.B!==c.u;)c.B=(c.B+1)%c.data.length,d.push(c.data[c.B]);c=d}else c=[];return c};
yU=function(a,b){return a.u[b]?GD(a.u[b].buffer):0};
vU=function(a){this.B=a;this.u=NaN;this.buffer=new FD(100)};
zU=function(){this.u=this.started=!1};
jva=function(a){a=Xp(a,{key:g.K("INNERTUBE_API_KEY")});var b=g.K("INNERTUBE_HOST_OVERRIDE");b&&(a=String(b)+String(zd(a)));return a};
kva=function(a){return{method:"POST",mode:Yp(a)?"same-origin":"cors",credentials:Yp(a)?"same-origin":"include"}};
AU=function(a,b,c,d,e){this.u=a;this.D=b;this.B=c;this.handleError=d;this.C=e};
CU=function(a,b,c){var d=void 0===d?Mw:d;a:{var e,f;if((null===(e=b.signalServiceEndpoint)||void 0===e?0:e.signal)&&a.u.Jy&&(e=a.u.Jy[b.signalServiceEndpoint.signal])){var h=new e;break a}if((null===(f=b.continuationCommand)||void 0===f?0:f.request)&&a.u.Gv&&(f=a.u.Gv[b.continuationCommand.request])){h=new f;break a}for(h in b)if(a.u.tr[h]&&(f=a.u.tr[h])){h=new f;break a}h=void 0}if(!h)return a.handleError(new Oq("Error: No request builder found for command.",b)),Am({});var l;f=c;f=void 0===f?{}:
f;d=void 0===d?Mw:d;c={context:g.GG(b.clickTrackingParams)};if(e=h.C(b)){h.u(c,e,f);var m;h=BU(h.B());(f=null===(m=null===(l=b.commandMetadata)||void 0===l?void 0:l.webCommandMetadata)||void 0===m?void 0:m.apiUrl)&&(h=f);l=jva(h);l={input:l,Nn:kva(l),Ow:c,config:Object.assign({},void 0)};l.config.fl?l.config.fl.identity=d:l.config.fl={identity:d}}else g.Er(new Oq("Error: Failed to create Request from Command.",b)),l=void 0;if(l)return Am(lva(a,l));a.handleError(new Oq("Error: Failed to build request for command.",
b));return Am({})};
OG=function(a,b,c){var d=void 0===d?Mw:d;var e=void 0===e?!0:e;b.context||(b.context=g.GG(void 0,e));c=jva(c);b={input:c,Nn:kva(c),Ow:b,config:{fl:{identity:d}}};return Am(lva(a,b))};
lva=function(a,b){return Te(a,function d(){var e=this,f,h,l,m,n;return Aa(d,function(p){if(1==p.u)return f=e,h=JSON.stringify(b.Ow),e.B.C?(l=mva(e,b),p.Ac(2)):sa(p,nva(e,b),3);2!=p.u&&(l=p.B);b.Nn=Object.assign(Object.assign({},b.Nn),{headers:l});g.ro("enable_get_account_switcher_endpoint_on_webfe")?(m=Object.assign({},b.Nn),"POST"===b.Nn.method&&(m=Object.assign(Object.assign({},m),{body:h}))):m=Object.assign(Object.assign({},b.Nn),{body:h});n=e.D.fetch(b.input,m);return p["return"](n.then(function(r){if(r&&
f.C)for(var t=g.q(f.C),w=t.next();!w.done;w=t.next())w.value.B(r,b);return Promise.resolve(r)}))})})};
ova=function(a,b){var c,d;if((null===(c=b.signalServiceEndpoint)||void 0===c?0:c.signal)&&a.u.Jy)return-1<to("web_op_signal_type_banlist").indexOf(b.signalServiceEndpoint.signal)?!1:!!a.u.Jy[b.signalServiceEndpoint.signal];if((null===(d=b.continuationCommand)||void 0===d?0:d.request)&&a.u.Gv)return-1<to("web_op_continuation_type_banlist").indexOf(b.continuationCommand.request)?!1:!!a.u.Gv[b.continuationCommand.request];for(var e in b)if(a.u.tr[e]){if(-1<to("web_op_endpoint_banlist").indexOf(e))break;
return!0}return!1};
nva=function(a,b){var c,d,e,f,h=(null===(d=null===(c=b.config)||void 0===c?void 0:c.fl)||void 0===d?void 0:d.identity)||Mw,l=null===(f=null===(e=b.config)||void 0===e?void 0:e.fl)||void 0===f?void 0:f.sessionIndex;return qea(a.B,h,{sessionIndex:l}).then(function(m){return Promise.resolve(Object.assign(Object.assign({},pva()),m))})};
mva=function(a,b){var c,d,e,f,h=(null===(d=null===(c=b.config)||void 0===c?void 0:c.fl)||void 0===d?void 0:d.identity)||Mw,l=null===(f=null===(e=b.config)||void 0===e?void 0:e.fl)||void 0===f?void 0:f.sessionIndex;h=a.B.u(h,{sessionIndex:l});return Object.assign(Object.assign({},pva()),h)};
pva=function(){var a={"Content-Type":"application/json"},b=g.K("VISITOR_DATA");b&&(a["X-Goog-Visitor-Id"]=b);g.ro("enable_get_account_switcher_endpoint_on_webfe")&&((b=g.K("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(a["X-Youtube-Client-Name"]=b),(b=g.K("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(a["X-Youtube-Client-Version"]=b));return a};
rva=function(a){var b=void 0===b?"UNKNOWN_INTERFACE":b;if(1===a.length)return a[0];var c=qva[b];if(c){var d=new RegExp(c),e=g.q(a);for(c=e.next();!c.done;c=e.next())if(c=c.value,d.exec(c))return c}var f=[];Object.entries(qva).forEach(function(h){var l=g.q(h);h=l.next().value;l=l.next().value;b!==h&&f.push(l)});
d=new RegExp(f.join("|"));a.sort(function(h,l){return h.length-l.length});
e=g.q(a);for(c=e.next();!c.done;c=e.next())if(c=c.value,!d.exec(c))return c;return a[0]};
BU=function(a){return"/youtubei/v1/"+rva(a)};
DU=function(){};
EU=function(){};
FU=function(){};
GU=function(){};
HU=function(){};
IU=function(){this.u=void 0};
sva=function(){IU.u||(IU.u=new IU);return IU.u};
tva=function(a){var b=g.ro("enable_get_account_switcher_endpoint_on_webfe")?a.text().then(function(c){return JSON.parse(c.replace(")]}'",""))}):a.json();
a.redirected||a.ok||(b=b.then(function(c){g.Fr(new Oq("Error: API fetch failed",a.status,a.url,c));return Object.assign(Object.assign({},c),{errorMetadata:{status:a.status}})}));
return b};
KU=function(a){if(!JU){var b={tr:{playlistEditEndpoint:HU,subscribeEndpoint:EU,unsubscribeEndpoint:FU,modifyChannelNotificationPreferenceEndpoint:GU}},c=g.ro("web_enable_client_location_service")?EG():void 0,d=[];c&&d.push(c);void 0===a&&(a=wq());c=sva();AU.u=new AU(b,c,a,Lea,d);JU=AU.u}return JU};
LU=function(){vq.apply(this,arguments);this.B=new Headers};
MU=function(a){this.F=new Uint8Array(64);this.C=new Uint8Array(64);this.D=0;this.G=new Uint8Array(64);this.B=0;this.F.set(a);this.C.set(a);for(a=0;64>a;a++)this.F[a]^=92,this.C[a]^=54;this.reset()};
vva=function(a,b,c){for(var d=[],e=0;16>e;e++)d.push(b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3]),c+=4;for(b=16;64>b;b++)c=d[b-7]+d[b-16],e=d[b-2],c+=(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10,e=d[b-15],c+=(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3,d.push(c);b=a.u[0];c=a.u[1];e=a.u[2];for(var f=a.u[3],h=a.u[4],l=a.u[5],m=a.u[6],n=a.u[7],p,r,t=0;64>t;t++)p=n+uva[t]+d[t]+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&l^~h&m),r=((b>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10))+(b&c^b&e^c&e),n=m,m=l,l=h,h=f+p,f=e,e=c,c=b,b=
p+r;a.u[0]=b+a.u[0]|0;a.u[1]=c+a.u[1]|0;a.u[2]=e+a.u[2]|0;a.u[3]=f+a.u[3]|0;a.u[4]=h+a.u[4]|0;a.u[5]=l+a.u[5]|0;a.u[6]=m+a.u[6]|0;a.u[7]=n+a.u[7]|0};
xva=function(a){var b=new Uint8Array(32),c=64-a.B;55<a.B&&(c+=64);var d=new Uint8Array(c);d[0]=128;for(var e=8*a.D,f=1;9>f;f++){var h=e%256;d[c-f]=h;e=(e-h)/256}a.update(d);for(c=0;8>c;c++)b[4*c]=a.u[c]>>>24,b[4*c+1]=a.u[c]>>>16&255,b[4*c+2]=a.u[c]>>>8&255,b[4*c+3]=a.u[c]&255;wva(a);return b};
wva=function(a){a.u=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];a.D=0;a.B=0};
yva=function(a,b,c){return Te(this,function e(){var f,h,l,m,n,p,r,t;return Aa(e,function(w){switch(w.u){case 1:if(!(window.crypto&&window.crypto.subtle&&window.crypto.subtle.importKey)){w.Ac(2);break}h=window.crypto.subtle;l={name:"HMAC",hash:{name:"SHA-256"}};m=["sign"];n=new Uint8Array(b.length+c.length);n.set(b);n.set(c,b.length);ta(w,3);return sa(w,h.importKey("raw",a,l,!1,m),5);case 5:return p=w.B,sa(w,h.sign(l,p,n),6);case 6:r=w.B;f=new Uint8Array(r);ua(w,2);break;case 3:va(w);case 2:if(!f){t=
new MU(a);t.update(b);t.update(c);var x=xva(t);t.update(t.F);t.update(x);x=xva(t);t.reset();f=x}return w["return"](f)}})})};
Ava=function(a,b,c){return Te(this,function e(){var f,h,l,m,n,p;return Aa(e,function(r){switch(r.u){case 1:if(!(window.crypto&&window.crypto.subtle&&window.crypto.subtle.importKey)){r.Ac(2);break}h=window.crypto.subtle;l={name:"AES-CTR",counter:c,length:128};ta(r,3);return sa(r,zva(a),5);case 5:return m=r.B,sa(r,h.encrypt(l,m,b),6);case 6:n=r.B;f=new Uint8Array(n);ua(r,2);break;case 3:va(r);case 2:return f||(p=new HS(a),hsa(p,c),f=p.encrypt(b)),r["return"](f)}})})};
zva=function(a){return window.crypto.subtle.importKey("raw",a,{name:"AES-CTR"},!1,["encrypt"])};
NU=function(a){var b=this,c=new HS(a);return function(d,e){return Te(b,function h(){return Aa(h,function(l){hsa(c,e);return l["return"](new Uint8Array(c.encrypt(d)))})})}};
OU=function(a){this.u=a;this.iv=ZS(Bs())};
Bva=function(a,b){return Te(a,function d(){var e=this;return Aa(d,function(f){return f["return"](yva(e.u.B,b,e.iv))})})};
PU=function(a){this.B=a;this.D=this.u=0;this.C=-1};
QU=function(a){var b=ev(a.B,a.u);++a.u;if(128>b)return b;for(var c=b&127,d=1;128<=b;)b=ev(a.B,a.u),++a.u,d*=128,c+=(b&127)*d;return c};
RU=function(a,b){for(a.D=b;a.u+1<=a.B.totalLength;){var c=a.C;0>c&&(c=QU(a));var d=c>>3,e=c&7;if(d===b)return!0;if(d>b){a.C=c;break}switch(e){case 0:QU(a);break;case 1:a.u+=8;break;case 2:c=QU(a);a.u+=c;break;case 5:a.u+=4}}return!1};
SU=function(a,b,c){c=void 0===c?0:c;return RU(a,b)?QU(a):c};
TU=function(a,b){var c=void 0===c?"":c;if(!RU(a,b))return c;c=QU(a);if(!c)return"";var d=cv(a.B,a.u,c);a.u+=c;return g.v.TextDecoder?(new TextDecoder).decode(d):g.Ve(d)};
UU=function(a,b){var c=void 0===c?null:c;if(!RU(a,b))return c;c=QU(a);var d=cv(a.B,a.u,c);a.u+=c;return d};
Cva=function(a){this.iv=UU(new PU(a),5)};
Dva=function(a){a=UU(new PU(a),4);this.u=new Cva(new Wu([a]))};
Fva=function(a){a=new PU(a);this.u=SU(a,1);this.itag=SU(a,3);this.lastModifiedTime=SU(a,4);this.xtags=TU(a,5);SU(a,6);SU(a,8);SU(a,9,-1);SU(a,10);this.B=this.itag+";"+this.lastModifiedTime+";"+this.xtags;this.isAudio="audio"===Eva[mw[""+this.itag]]};
Gva=function(a){this.body=null;a=new PU(a);this.onesieProxyStatus=SU(a,1,-1);this.body=UU(a,4)};
Hva=function(a){a=new PU(a);this.startTimeMs=SU(a,1);this.endTimeMs=SU(a,2)};
Iva=function(a){var b=new PU(a);a=TU(b,3);var c=SU(b,5);this.u=SU(b,7);var d=UU(b,14);this.B=new Hva(new Wu([d]));b=TU(b,15);this.C=a+";"+c+";"+b};
Jva=function(a){this.C=a;this.B=!1;this.u=[]};
Kva=function(a){for(;a.u.length&&!a.u[0].isEncrypted;){var b=a.u.shift();a.C(b.streamId,b.buffer)}};
Lva=function(a){var b,c;return Te(this,function e(){var f=this,h,l,m,n;return Aa(e,function(p){switch(p.u){case 1:h=f;if(null===(c=null===(b=window.crypto)||void 0===b?void 0:b.subtle)||void 0===c||!c.importKey)return p["return"](NU(a));l=window.crypto.subtle;ta(p,2);return sa(p,zva(a),4);case 4:m=p.B;ua(p,3);break;case 2:return va(p),p["return"](NU(a));case 3:return p["return"](function(r,t){return Te(h,function x(){var y,D;return Aa(x,function(E){if(1==E.u){if(n)return E["return"](n(r,t));y={name:"AES-CTR",
counter:t,length:128};ta(E,2);D=Uint8Array;return sa(E,l.encrypt(y,m,r),4)}if(2!=E.u)return E["return"](new D(E.B));va(E);n=NU(a);return E["return"](n(r,t))})})})}})})};
VU=function(a){g.O.call(this);var b=this;this.D=a;this.u={};this.C={};this.B=this.iv=null;this.queue=new Jva(function(c,d){g.Ua(b);b.V("STREAM_DATA",{id:c,data:d})})};
Mva=function(a,b,c){var d=ev(b,0);b=cv(b,1);d=a.u[d]||null;g.Ua(a);d&&(a=a.queue,a.u.push({streamId:d,buffer:b,isEncrypted:c}),a.B||Kva(a))};
Nva=function(a,b){Te(a,function d(){var e=this,f,h,l,m,n,p,r,t;return Aa(d,function(w){switch(w.u){case 1:return g.Ua(e),e.V("PLAYER_RESPONSE_RECEIVED"),f=cv(b),ta(w,2),sa(w,e.D(f,e.iv),4);case 4:h=w.B;ua(w,3);break;case 2:return l=va(w),g.Ua(e),e.V("PLAYER_RESPONSE_FAILED",{errorInfo:l}),w["return"]();case 3:m=new Gva(new Wu([h]));if(1!==m.onesieProxyStatus)return n={st:m.onesieProxyStatus},p=new lB("onesie.response.badproxystatus",!1,n),e.V("PLAYER_RESPONSE_FAILED",{errorInfo:p}),w["return"]();
r=m.body;t=g.v.TextDecoder?(new TextDecoder).decode(r):g.Ve(r);g.Ua(e);e.V("PLAYER_RESPONSE_READY",t);w.u=0}})})};
WU=function(){this.u=0;this.C=void 0;this.B=new Uint8Array(4096);this.view=new DataView(this.B.buffer);g.v.TextEncoder&&(this.C=new TextEncoder)};
XU=function(a,b){var c=a.u+b;if(!(a.B.length>=c)){for(var d=2*a.B.length;d<c;)d*=2;c=new Uint8Array(d);c.set(a.B);a.B=c;a.view=new DataView(a.B.buffer)}};
YU=function(a,b){if(268435455<b){XU(a,4);for(var c=b&1073741823,d=0;4>d;d++)a.view.setUint8(a.u,c&127|128),c>>=7,a.u+=1;b=Math.floor(b/268435456)}for(XU(a,4);127<b;)a.view.setUint8(a.u,b&127|128),b>>=7,a.u+=1;a.view.setUint8(a.u,b);a.u+=1};
ZU=function(a,b,c){YU(a,b<<3|2);b=c.length;YU(a,b);XU(a,b);a.B.set(c,a.u);a.u+=b};
$U=function(a,b,c){c=a.C?a.C.encode(c):new Uint8Array(ZS(g.Ue(c)).buffer);ZU(a,b,c)};
aV=function(a){return new Uint8Array(a.B.buffer,0,a.u)};
Ova=function(a){var b=a.encryptedOnesiePlayerRequest,c=a.encryptedClientKey,d=a.iv;a=a.hmac;this.serializeResponseAsJson=!0;this.encryptedOnesiePlayerRequest=b;this.encryptedClientKey=c;this.iv=d;this.hmac=a};
bV=function(a){var b=a.value;this.name=a.name;this.value=b};
Pva=function(a){var b=a.httpHeaders,c=a.postBody;this.url=a.url;this.httpHeaders=b;this.postBody=c};
Qva=function(a){this.Pv=a.Pv};
Rva=function(a,b){if(b+1<=a.totalLength){var c=ev(a,b);c=128>c?1:192>c?2:224>c?3:240>c?4:5}else c=0;if(1>c||!(b+c<=a.totalLength))return[-1,b];if(1===c)c=ev(a,b++);else if(2===c){c=ev(a,b++);var d=ev(a,b++);c=(c&63)+64*d}else if(3===c){c=ev(a,b++);d=ev(a,b++);var e=ev(a,b++);c=(c&31)+32*(d+256*e)}else if(4===c){c=ev(a,b++);d=ev(a,b++);e=ev(a,b++);var f=ev(a,b++);c=(c&15)+16*(d+256*(e+256*f))}else c=b+1,a.focus(c),$u(a,c,4)?c=av(a).getUint32(c-a.C,!0):(d=ev(a,c+2)+256*ev(a,c+3),c=ev(a,c)+256*(ev(a,
c+1)+256*d)),b+=5;return[c,b]};
Sva=function(a){this.B=a;this.u=new Wu};
Tva=function(a){var b=g.q(Rva(a.u,0));var c=b.next().value;var d=b.next().value;d=g.q(Rva(a.u,d));b=d.next().value;d=d.next().value;!(0>c||0>b)&&d+b<=a.u.totalLength&&(d=a.u.split(d).pm.split(b),b=d.xs,d=d.pm,a.B(c,b),a.u=d,Tva(a))};
Vva=function(a){var b,c;a:{var d,e=a.T().Af;if(e){var f=null===(c=Uva())||void 0===c?void 0:c.primary;if(f&&e.baseUrl){c=new Ev("https://"+f+e.baseUrl);if(e=null===(d=a.Pt)||void 0===d?void 0:d.urlQueryOverride)for(d=Lv(e),d=g.q(Object.entries(d)),e=d.next();!e.done;e=d.next())f=g.q(e.value),e=f.next().value,f=f.next().value,c.set(e,f);if(!c.get("id")){e=pC(a.videoId);d=[];if(e)for(e=g.q(e),f=e.next();!f.done;f=e.next())d.push(f.value.toString(16).padStart(2,"0"));d=d.join("");if(!d){c=void 0;break a}c.set("id",
d)}break a}}c=void 0}!c&&(null===(b=a.Pt)||void 0===b?0:b.url)&&(c=new Ev(a.Pt.url));if(!c)return"";c.set("ack","1");c.set("cpn",a.clientPlaybackNonce);c.set("opr","1");c.set("pvi","135");c.set("pai","140");c.set("oad","0");c.set("ovd","0");c.set("oaad","0");c.set("oavd","0");return c.rd()};
cV=function(a,b,c){var d=this;this.videoData=a;this.u=b;this.playerRequest=c;this.xhr=null;this.B=new Ww;this.G=!1;this.F=new g.F(this.K,1E4,this);this.D=a.T();this.C=new OU(this.D.Af.u);this.N=new Sva(function(e,f){d.P.feed(e,f)});
this.P=Wva(this)};
Wva=function(a){var b=new VU(function(c,d){return a.C.decrypt(c,d)});
b.subscribe("FIRST_BYTE_RECEIVED",function(){a.u.tick("orfb");a.G=!0});
b.subscribe("PLAYER_RESPONSE_READY",function(c){a.u.tick("oprr");a.B.resolve(c);a.F.stop()});
b.subscribe("PLAYER_RESPONSE_RECEIVED",function(){a.u.tick("orpr")});
b.subscribe("PLAYER_RESPONSE_FAILED",function(c){dV(a,c.errorInfo)});
return b};
dV=function(a,b){a.B.reject(b);a.F.stop();a.u.tick("ore");a.xhr&&a.xhr.abort()};
Xva=function(a){for(var b=a.xhr;b.hh();){var c=b.nt();c.getLength();a.N.feed(c)}};
Zva=function(a){return Te(a,function c(){var d=this,e,f;return Aa(c,function(h){if(1==h.u)return sa(h,Yva(d),2);e=h.B;f={Pv:e};return h["return"](new Qva(f))})})};
Yva=function(a){return Te(a,function c(){var d=this,e,f,h,l,m;return Aa(c,function(n){if(1==n.u)return sa(n,$va(d),2);if(3!=n.u)return e=n.B,f=d.C.u.encryptedClientKey,h=d.C.iv,sa(n,Bva(d.C,e),3);l=n.B;m={encryptedOnesiePlayerRequest:e,encryptedClientKey:f,iv:h,hmac:l};return n["return"](new Ova(m))})})};
$va=function(a){return Te(a,function c(){var d=this,e,f,h;return Aa(c,function(l){switch(l.u){case 1:var m=d.D.ea;m="https://youtubei.googleapis.com/youtubei/"+m.innertubeApiVersion+"/player?key="+m.innertubeApiKey;var n=[new bV({name:"Content-Type",value:"application/json"})],p=d.videoData.Ze();p&&n.push(new bV({name:"Authorization",value:"Bearer "+p}));n.push(new bV({name:"User-Agent",value:g.Vc}));(p=d.videoData.visitorData||po("VISITOR_DATA"))&&n.push(new bV({name:"X-Goog-Visitor-Id",value:p}));
(p=g.Vz(d.D.experiments,"debug_sherlog_username"))&&n.push(new bV({name:"X-Youtube-Sherlog-Username",value:p}));p=JSON.stringify(d.playerRequest);e=new Pva({url:m,httpHeaders:n,postBody:p});ta(l,2);return sa(l,d.C.encrypt(e.sm()),4);case 4:f=l.B;ua(l,3);break;case 2:return va(l),h=new lB("onesie.request.encrypt",!1),l["return"](Promise.reject(h));case 3:return l["return"](f)}})})};
fwa=function(a,b,c,d,e,f){a.la();a.wd=!0;var h=a.T();return g.Q(h.experiments,"html5_onesie")&&g.Q(h.experiments,"html5_onesie_player_config")&&"yt"===h.X?awa(a).then(function(){return bwa(a,d,e,f)}).then(function(){eV(a)},function(l){l=nB(l);
if(l.u)return eV(a,!0),Promise.reject(l);c(l);return cwa(a,b,c,"onesie",!0)}):dwa(h,a)?ewa(a,e,f,c).then(function(){eV(a)},function(l){eV(a,!0);
throw l;}):cwa(a,b,c,"gvi")};
dwa=function(a,b){return(g.Q(a.experiments,"web_player_gvi_wexit")||g.Q(a.experiments,"hoffle_api")&&nG(b))&&"yt"===a.X&&"adunit"!==iG(b)?!0:!1};
awa=function(a){a=a.T().Af;if(!a||!a.u)return Promise.reject(new lB("onesie.unavailable.hotconfig",!1,{key:"0"}));a={};tx()||(a.fetch="0");window.Uint8Array||(a.uint8="0");return 0<Object.keys(a).length?(a.onesie="0",Promise.reject(new lB("html5.missingapi",!1,a))):Promise.resolve()};
bwa=function(a,b,c,d){return Te(this,function f(){var h,l,m,n,p,r;return Aa(f,function(t){if(1==t.u)return a.fetchType="onesie",h=NT(a,c,d),l=new cV(a,b,h),sa(t,l.fetch(),2);m=t.B;n={player_response:m};a.wd=!1;a.Ng(n,!0);if(a.wd||$F(a))return t["return"](Promise.resolve());p={};a.errorCode?(p.ec=a.errorCode,p.ed=a.errorDetail,p.es=a.bi||""):p.successButUnplayable="1";r=new lB("onesie.response",!1,p);return t["return"](Promise.reject(r))})})};
ewa=function(a,b,c,d){return Te(this,function f(){var h,l,m,n,p,r;return Aa(f,function(t){switch(t.u){case 1:l=(h=a.isAd())?1:3,m=0;case 2:if(!(m<l)){t.Ac(4);break}if(!(0<m)){t.Ac(5);break}return sa(t,Rm(5E3),6);case 6:n=new Oq("Retrying OnePlatform request",{attempt:m}),g.Fr(n);case 5:return sa(t,gwa(a,b,c).then(function(){return!0},function(w){w=nB(w);
if(w.u)return Promise.reject(w);d(w);return!1}),7);
case 7:if(p=t.B)return t["return"]();m++;t.Ac(2);break;case 4:return r=h?"auth":"manifest.net.retryexhausted",t["return"](Promise.reject(new lB(r,!0,{backend:"op"})))}})})};
gwa=function(a,b,c){return Te(this,function e(){var f,h,l,m,n,p,r,t,w,x,y,D,E,G,L;return Aa(e,function(J){if(1==J.u)return f=a.Ze(),h=void 0,f&&(fV||(fV=new LU),h=fV,Object.assign(h.B,{Authorization:"Bearer "+f})),l=KU(h),m=NT(a,b,c),n=BU(hwa),p=(0,g.N)(),r=!1,t=200,sa(J,OG(l,m,n),2);w=J.B;if(a.la())return J["return"]();w?w.error?(r=!0,t=w.error.code):w.errorMetadata&&(r=!0,t=w.errorMetadata.status):r=!0;if(r)return x=400===t||429===t,y=((0,g.N)()-p).toFixed(),D={backend:"op",rc:""+t,rt:y},E="manifest.net.connect",
429===t?E="auth":200<t&&(E="manifest.net.badstatus"),J["return"](Promise.reject(new lB(E,x,D)));a.wd=!1;a.Ng({raw_player_response:w},!0);if(a.errorCode)return G={ec:a.errorCode,ed:a.errorDetail,es:a.bi||""},J["return"](Promise.reject(new lB("auth",!0,G)));if(!a.wd&&!$F(a))return L=a.isAd()?"auth":"manifest.net.retryexhausted",J["return"](Promise.reject(new lB(L,!0,{successButUnplayable:"1"})));J.u=0})})};
cwa=function(a,b,c,d,e){return Te(this,function h(){var l,m,n,p,r,t,w,x,y;return Aa(h,function(D){switch(D.u){case 1:l=function(){return!0},m=function(E){E=nB(E);
if(E.u)return Promise.reject(E);c(E);return!1},p=(n=a.isAd())?1:3,r=0;
case 2:if(!(r<p)){D.Ac(4);break}t=b;if(!(0<r)){D.Ac(5);break}return sa(D,Rm(5E3),6);case 6:w={playerretry:r,playerretrysrc:d},n||(w.recover="embedded"),t=Xp(b,w);case 5:return sa(D,iwa(a,t,e).then(l,m),7);case 7:if(x=D.B)return D["return"]();r++;D.Ac(2);break;case 4:y=n?"auth":"manifest.net.retryexhausted";if(!n&&1E-4>Math.random())try{g.Fr(new Oq("b/152131571",btoa(b)))}catch(E){}return D["return"](Promise.reject(new lB(y,!0,{backend:"gvi"})))}})})};
iwa=function(a,b,c){return Te(this,function e(){var f,h,l,m,n,p,r,t,w,x,y,D,E,G;return Aa(e,function(L){if(1==L.u)return a.fetchType="gvi",f=a.T(),(m=vua(a))?(h={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,dc:m},l=Xp(b,{action_display_post:1})):(h={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},l=b),n={},f.sendVisitorIdHeader&&a.visitorData&&(n["X-Goog-Visitor-Id"]=a.visitorData),(p=g.Vz(f.experiments,"debug_dapper_trace_id"))&&(n["X-Google-DapperTraceInfo"]=p),(r=g.Vz(f.experiments,
"debug_sherlog_username"))&&(n["X-Youtube-Sherlog-Username"]=r),0<Object.keys(n).length&&(h.headers=n),t=(0,g.N)(),w=function(J){if(!a.la()){J=J?J.status:-1;var Ha=400===J||429===J,pa=((0,g.N)()-t).toFixed();pa={backend:"gvi",rc:""+J,rt:pa};var Xa="manifest.net.connect";429===J?Xa="auth":200<J&&(Xa="manifest.net.badstatus");return Promise.reject(new lB(Xa,Ha,pa))}},x=function(J){return w(J.xhr)},sa(L,Zz(Rr,l,h).then(void 0,x),2);
y=L.B;if(!y||!y.responseText)return L["return"](w(y));a.wd=!1;D=Sp(y.responseText);a.Ng(D,!0,c);if(a.errorCode)return E={ec:a.errorCode,ed:a.errorDetail,es:a.bi||""},L["return"](Promise.reject(new lB("auth",!0,E)));if(!a.wd&&!$F(a))return G=a.isAd()?"auth":"manifest.net.retryexhausted",L["return"](Promise.reject(new lB(G,!0,{successButUnplayable:"1"})));L.u=0})})};
eV=function(a,b){b=void 0===b?!1:b;Te(this,function d(){var e,f,h,l,m,n;return Aa(d,function(p){if(1==p.u){e=a.T();if(b&&(!g.iD(e)||"embedded"!==iG(a))||a.xr||"adunit"!==iG(a)&&(g.UC(e)||WC(e)||hD(e)||"WEB_CREATOR"===e.deviceParams.c))return p["return"]();ta(p,2);f=KU();h=sua(a);l=BU(jwa);return sa(p,OG(f,h,l),4)}if(2!=p.u)return m=p.B,(null===m||void 0===m?0:m.error)?g.Fr(new Oq("WatchNext Response Error (b/150306508)",m.error)):a.Ng({raw_watch_next_response:m},!1),ua(p,0);n=va(p);g.Fr(new Oq("WatchNext Request Error (b/150306508)",
n));p.u=0})})};
kwa=function(a,b,c,d,e,f){function h(){VA("virc");eB("virc","video_to_ad")}
VA("vir");eB("vir","video_to_ad");a=fwa(a,b,c,d,e,f);a.then(h,h);return a};
iV=function(a,b,c,d,e,f,h){g.O.call(this);var l=this;this.F=a;var m=g.P(this.F.experiments,"html5_min_has_advanced_secs");this.Zb=new Nua(m);this.Y=c;this.ue=d;this.Pi=f;this.ba=h;this.ea=new XD((0,g.z)(this.getCurrentTime,this),(0,g.z)(this.getPlaybackRate,this),(0,g.z)(this.getPlayerState,this),function(n,p){n!=g.RD("endcr")||g.U(l.C,32)||gV(l);e(n,p,l.Lb)});
g.C(this,this.ea);this.N=null;this.xb=new fT;this.ra=null;this.da=new rT(a,this.ue);g.C(this,this.da);this.da.subscribe("ctmp",this.gb,this);this.Cf=!0;this.W=this.D=null;this.ia=[];this.ka=new zU;this.X=this.sb=null;this.Aa=new zU;this.Yc=null;this.Qi=this.Pa=!1;this.ce=NaN;this.Th=new g.F(this.AP,500,this);g.C(this,this.Th);this.C=new g.zL;this.ge=[];this.Lb=b;this.Pb=new os;g.C(this,this.Pb);this.u=new g.qF(a);lwa(this,function(){return{}});
mwa(this);this.B=null;this.Qa=new g.F((0,g.z)(this.QN,this),15E3);g.C(this,this.Qa);a=g.P(this.F.experiments,"html5_source_buffer_attach_delay_time")||15E3;this.Sh=new g.F((0,g.z)(this.sP,this),a);g.C(this,this.Sh);this.Sj=0;this.Rh=this.Fc=!1;this.Ja=NaN;this.bb=!1;this.Rb=0;this.Af=new g.F(this.wy,4500,this);g.C(this,this.Af);this.Df=!1;this.yd=NaN;this.za=new uU;g.C(this,this.za);wU(this.za,"bufferhealth",function(){var n=l.K;return n.u?KS(n.u):0});
wU(this.za,"bandwidth",(0,g.z)(this.SI,this));wU(this.za,"networkactivity",(0,g.z)(this.aJ,this),!0);wU(this.za,"livelatency",(0,g.z)(this.zB,this));wU(this.za,"rawlivelatency",(0,g.z)(this.DB,this));this.za.start();this.Bf=!0;this.Ti=0;this.Ph=!1;this.be=1;this.nd=(0,g.z)(this.QP,this);hva(this.nd);this.ba.subscribe("visibilitystatechange",this.nd);this.Si=0;nwa(this);g.C(this,this.K);this.Ea=null;this.Oi=!1;this.de=[];this.Ef=this.Rj=0;this.Qh=this.Wk=!1;this.zf=new g.F(function(){l.re("ad.rebuftimeout",
"RETRYABLE_ERROR","vps."+l.C.state.toString(16))});
g.C(this,this.zf);this.ac=null;this.Ri=0;this.Qj=new g.F(function(){g.HL(l.C)&&Ota(l.da,l.X)&&hV(l)});
g.C(this,this.Qj);this.Ve=new g.F(this.EF,3E4,this);g.C(this,this.Ve)};
lwa=function(a,b){!a.G||a.G.la();var c=new Lua(a.u,a.F,b,(0,g.z)(a.getDuration,a),(0,g.z)(a.getCurrentTime,a),(0,g.z)(a.eJ,a),(0,g.z)(a.ue.getPlayerSize,a.ue),(0,g.z)(a.getAudioTrack,a),(0,g.z)(a.getPlaybackRate,a),(0,g.z)(a.uw,a),a.Pi,(0,g.z)(a.qJ,a),function(){return a.Y.tick("qoes")},function(){return pU(a.K)});
a.G=new WT(c)};
mwa=function(a){!a.P||a.P.la();a.P=new lT(a.u,a.F,a.ba);a.P.subscribe("newelementrequired",function(b){return jV(a,b)});
a.P.subscribe("qoeerror",a.VC,a);a.P.subscribe("playbackstalledatstart",function(){return a.V("playbackstalledatstart")});
a.P.subscribe("signatureexpiredreloadrequired",function(){return a.V("signatureexpired")});
a.P.subscribe("releaseloader",function(){return kV(a)});
a.P.subscribe("pausevideo",function(){return a.pauseVideo()});
a.P.subscribe("clienttemp",a.gb,a);a.P.subscribe("highrepfallback",a.CN,a);a.P.subscribe("playererror",a.re,a);a.P.subscribe("removedrmplaybackmanager",function(){return lV(a)});
a.P.subscribe("formatupdaterequested",function(){return mV(a)});
a.P.subscribe("reattachvideosourcerequired",function(){return owa(a)})};
nV=function(a){var b=a.G;b.B&&b.B.send();if(b.qoe){var c=b.qoe;if(c.N){"PL"===c.Bc&&(c.Bc="N");var d=g.vT(c.provider);g.yT(c,d,"vps",[c.Bc]);c.D||(0<=c.B&&(c.u.user_intent=[c.B.toString()]),c.D=!0);c.reportStats(d)}}if(b.provider.videoData.enableServerStitchedDai)for(c=g.q(b.D.values()),d=c.next();!d.done;d=c.next())Bua(d.value);else b.u&&Bua(b.u);b.dispose();g.ag(a.G)};
xJ=function(a){return a.B&&a.B.Bk()?a.B.Ma():null};
oV=function(a){if(a.u.isValid())return!0;a.re("api.invalidparam",void 0,"invalidVideodata.1");return!1};
pV=function(a,b){a.Pa=void 0===b?!1:b;if(!oV(a)||a.ka.started)g.UC(a.F)&&a.u.isLivePlayback&&a.ka.started&&!a.ka.isFinished()&&!a.Pa&&a.Bv();else{a.ka.start();var c=a.G;g.vT(c.provider);c.qoe&&bua(c.qoe);a.Bv()}};
pwa=function(a){var b=a.u,c=a.ue.getPlayerSize(),d=a.Pi(),e=uua(a.F,a.u,c,d,a.ba.isFullscreen());kwa(a.u,e,function(f){return a.handleError(f)},a.Y,c,d).then(void 0,function(f){a.u!=b||b.la()||(f=nB(f),"auth"==f.errorCode&&a.u.errorDetail?a.re("auth",unescape(a.u.errorReason),g.mB(f.details),a.u.errorDetail,a.u.bi||void 0):a.handleError(f))})};
qwa=function(a,b){a.ac=b;a.D&&(a.D.Qa=new GE(b))};
twa=function(a){if(!g.U(a.C,128))if(a.u.Ec(),a.Bf=!0,4!=a.Lb&&(a.ia=g.ub(a.u.Pe)),ZF(a.u)){qV(a).then(function(){a.la()||(a.Pa&&rV(a),rwa(a,a.u),a.ka.u=!0,sV(a,"dataloaded"),a.Aa.started?tV(a):a.Pa&&uV(a,BL(BL(a.C,512),1)),Vta(a.da,a.X))});
a.gb("loudness",""+a.u.bq.toFixed(3),!0);var b=Ama(a.u);b&&a.gb("playerResponseExperiment",b,!0);swa(a)}else sV(a,"dataloaded")};
qV=function(a){kV(a);a.X=null;var b=Pua(a.F,a.u,a.ba.B);a.sb=b;a.sb.then((0,g.z)(a.yO,a),(0,g.z)(a.zO,a));return b};
mV=function(a){qV(a).then(function(){return rV(a)});
g.FL(a.C)&&a.playVideo()};
vV=function(a){a.B&&a.B.pn();pV(a);oV(a)&&!g.U(a.C,128)&&(a.Aa.started||(a.Aa.start(),uV(a,BL(BL(a.C,8),1))),tV(a))};
tV=function(a){a.la();if(!a.Aa.isFinished()&&a.ka.isFinished()&&!g.U(a.C,128)&&!a.ia.length){if(!a.ea.started){var b=a.ea;b.started=!0;b.ph()}if(!wV(a)){a.D&&(b=a.D.ra,a.Qi=!!b.u&&!!b.D);a.Aa.isFinished()||(a.Aa.u=!0);!a.u.isLivePlayback||0<a.u.rk&&!JF(a.u)||(a.seekTo(Infinity),xV(a,"readying"),a.ba.isBackground()&&(a.Rh=!0));b=a.G;if(b.u){var c=b.u;c.provider.videoData.Ko&&c.provider.videoData.Cr&&(UT(c,"connected"),wua(c))}b.qoe&&(b=b.qoe,b.provider.videoData.Wp&&ET(b,b.provider.videoData.Wp),b.provider.videoData.isLivePlayback&&
(c=b.provider.videoData.ma,JF(b.provider.videoData)&&ET(b,"manifestless"),c&&qA(c)&&ET(b,"live-segment-"+qA(c).toFixed(1))),"yt"!==b.provider.u.X&&(b.u.len=[b.provider.videoData.lengthSeconds.toFixed(2)]));a.V("playbackready",a);bB("pbr",a.Y.timerName)||(a.Y.tick("pbr"),eB("pbr","video_to_ad"))}}};
gV=function(a,b,c){b=void 0===b?!0:b;(void 0===c||c)&&a.B&&a.B.pause();b=b?new g.zL(14):new g.zL;uV(a,b)};
rwa=function(a,b){if(b.endSeconds&&b.endSeconds>b.startSeconds){var c=b.endSeconds;a.ra&&(a.removeCueRange(a.ra),a.ra=null);a.ra=new g.OD(1E3*c,0x7ffffffffffff);a.ra.namespace="endcr";a.addCueRange(a.ra)}};
zV=function(a,b,c,d){a.u.La=c;d&&uwa(a,b,d);var e=(d=g.yV(a))?Yt(d):"";d=a.G;c=new Dta(a.u,c,b,e);if(d.qoe){d=d.qoe;e=g.vT(d.provider);g.yT(d,e,"vfs",[c.u.id,c.B,d.Qa,c.reason]);d.Qa=c.u.id;var f=d.provider.N();if(0<f.width&&0<f.height){f=[Math.round(f.width),Math.round(f.height)];var h=g.dD();1<h&&f.push(h);g.yT(d,e,"view",f)}d.ba||(d.provider.videoData.Gj&&ET(d,"rqs"),d.provider.videoData.ma&&cA(d.provider.videoData.ma)&&(d.u.preload=["1"]));d.ba=!0;d.N=!0;"m"===c.reason&&100===++d.xb&&(c=d.u.fcnz,
c||(c=[],d.u.fcnz=c),c.push("2"));g.yT(d,e,"vps",[d.Bc]);d.reportStats(e)}c=a.da;c.D=0;c.B=0;a.V("internalvideoformatchange",a.u,"m"==b)};
g.yV=function(a){var b=AV(a);return fC(b)||!a.X?null:g.jb(a.X.Ia.videoInfos,(0,g.z)(b.D,b))};
uwa=function(a,b,c){if(c!=a.u.Rc){var d=!a.u.Rc;a.u.Rc=c;"m"!=b&&(b=d?"i":"a");var e=a.G;c=new Dta(a.u,c,b,"");if(e.qoe){e=e.qoe;var f=g.vT(e.provider);c.u.id!==e.X&&(g.yT(e,f,"afs",[c.u.id,e.X,c.reason]),e.X=c.u.id)}d||a.V("internalaudioformatchange",a.u,"m"==b)}};
BV=function(a,b){a.ia=a.ia.filter(function(c){return b!=c});
a.Aa.started&&tV(a)};
wV=function(a){var b;(b=!!a.ia.length)||(a=a.ea.u.u[0],b=!!a&&-0x8000000000000>=a.start);return b};
pW=function(a,b){if(a.B&&b.Ma()==a.B.Ma()&&(b.isView()||a.B.isView())){if(b.isView()||!a.B.isView())g.qs(a.Pb),a.B=b,vwa(a),mU(a.K,a.B),a.P.B=a.B}else{a.B&&oW(a);if(!a.C.isError()){var c=CL(a.C,512);g.U(c,8)&&!g.U(c,2)&&(c=BL(c,1));b.isView()&&(c=CL(c,64));uV(a,c)}a.B=b;a.B.setLoop(a.Ph);a.B.setPlaybackRate(a.be);vwa(a);mU(a.K,a.B);a.P.B=a.B}};
oW=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;if(a.B){var d=a.getCurrentTime();0<d&&(a.K.K=d);mU(a.K,null);a.P.B=null;qW(a);a.D&&(xE(a.D),rW(a,c));a.Qa.stop();if(a.B){!a.Aa.started||a.C.isError()||g.U(a.C,2)||uV(a,BL(a.C,512));g.qs(a.Pb);if(b||!a.B.isView())a.B.stopVideo(),lV(a);a.B=null}}};
AV=function(a){if(a.X){var b=a.da;var c=a.X,d=sW(a);a=a.ba.isBackground();var e=Hta(b);e=eC("auto",e,!1,"s");fC(e)?e=Fta(b,c).compose(Jta(b,c)).compose(Kta(b,c)).compose(Tta(b,a)).compose(Uta(b,c)).compose(Sta(b,c)).compose(c.videoData.BG).compose(Ita(b)):b.ca("html5_perf_cap_override_sticky")&&(e=e.compose(Sta(b,c)));b=c.videoData.Du.compose(e).compose(c.videoData.rA).compose(d)}else b=rD;return b};
sW=function(a,b){if(a.N){var c=a.N;var d=void 0===b?!1:b;c=(void 0===d?0:d)&&c.ra?c.ra:c.P}else c=yF(a.u)&&a.u.ma&&bA(a.u.ma)?(g.Q(a.F.experiments,"html5_drm_initial_constraint_from_config")?a.u.Io:g.Q(a.F.experiments,"html5_drm_start_from_null_constraint"))?rD:kta:rD;a.Qh&&(c=c.compose(wwa));return c};
uW=function(a){if(!a.la()&&!g.U(a.C,128)&&a.u.Ia){if(a.u.Ia.wc())tW(a);else{var b=AV(a),c=a.u;a:{var d=a.u.Fj;if(b.u){for(var e=g.q(d),f=e.next();!f.done;f=e.next()){f=f.value;var h=f.Be(),l=g.gw[h.Ka().quality];if((!b.C||"auto"!==h.Ka().quality)&&l<=b.u){d=f;break a}}d=d[d.length-1]}else d=d[0]}c.Gg=d;zV(a,b.reason,xwa(a,a.u.Gg))}a.C.Jb()&&(a.K.ra=!1,a.playVideo())}};
tW=function(a){if(a.u.Ia&&a.u.Ia.wc()){var b=AV(a),c=a.u.La;if(!vW(a,"html5_dynamic_av1_hybrid_threshold")&&c&&rw(c)){var d=uB(a.F);if(d&&d<c.Ka().xc&&d!=a.Ri){a.Ri=d;qV(a);return}}if(a.D&&(a=a.D,!a.la()&&!dC(a.K.F,b)&&a.B)){var e=a.K.F;uE(a,Fha(a.K,b));iE(a);c=zD(a.K)&&"m"==b.reason&&a.K.ba;d=a.u.Yc&&"l"==b.reason&&lz(a.B);b=("b"==b.reason||"o"==b.reason)&&e.u>b.u;e=a.K.Aa&&!pB();c||d||b||e?(a.Xc("reattachOnConstraint",c?"u":d?"drm":e?"codec":"perf"),a.V("reattachrequired")):xE(a)}}};
hV=function(a){vW(a,"html5_nonblocking_media_capabilities")?tW(a):uW(a)};
zwa=function(a){vW(a,"html5_probe_media_capabilities")&&Eta(a.u.Ia);Sga(a.u.ma,{cpn:a.u.clientPlaybackNonce,c:a.F.deviceParams.c,cver:a.F.deviceParams.cver});var b=a.F,c=a.u,d=new g.Sv,e=Rv(b,{hasSubfragmentedFmp4:c.hasSubfragmentedFmp4,ki:c.ki});d.D=e;d.Rr=b.ca("html5_disable_codec_for_playback_on_error");d.dr=b.ca("html5_max_drift_per_track_secs")||b.ca("html5_rewrite_manifestless_for_sync")||b.ca("html5_check_segnum_discontinuity");d.Qj=b.ca("html5_unify_sqless_flow");d.ac=b.ca("html5_unrewrite_timestamps");
d.Pb=b.ca("html5_stop_overlapping_requests");d.Af=g.P(b.experiments,"html5_min_readbehind_secs");d.wz=g.P(b.experiments,"html5_min_readbehind_cap_secs");d.vz=g.P(b.experiments,"html5_max_readbehind_secs");d.UB=g.Q(b.experiments,"html5_trim_future_discontiguous_ranges");d.Qq=b.ca("html5_append_init_while_paused");d.zf=g.P(b.experiments,"html5_max_readahead_bandwidth_cap");d.Ph=g.P(b.experiments,"html5_post_interrupt_readahead");d.N=g.P(b.experiments,"html5_subsegment_readahead_target_buffer_health_secs");
d.Zb=g.P(b.experiments,"html5_subsegment_readahead_timeout_secs");d.Yz=g.P(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs");d.Rb=g.P(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");d.cA=g.P(b.experiments,"html5_subsegment_readahead_min_load_speed");d.Ti=g.P(b.experiments,"html5_subsegment_readahead_load_speed_check_interval");d.VA=g.P(b.experiments,"html5_subsegment_readahead_seek_latency_fudge");d.Df=b.ca("html5_peak_shave");d.Dz=b.ca("html5_peak_shave_always_include_sd");
d.Qz=b.ca("html5_restrict_streaming_xhr_on_sqless_requests");d.VG=g.P(b.experiments,"html5_max_headm_for_streaming_xhr");d.Ez=b.ca("html5_pipeline_manifestless_allow_nonstreaming");d.Iz=b.ca("html5_prefer_server_bwe3");d.Sj=1024*g.P(b.experiments,"html5_video_tbd_min_kb");d.Qh=b.ca("html5_probe_live_using_range");d.mG=b.ca("html5_last_slice_transition");d.Wz=b.ca("html5_store_xhr_headers_readable");d.LD=b.ca("html5_enable_packet_train_response_rate");if(e=g.P(b.experiments,"html5_probe_secondary_during_timeout_miss_count"))d.Rh=
e,d.fB=1;d.qb=g.P(b.experiments,"html5_probe_primary_delay_base_ms")||d.qb;d.Cf=b.ca("html5_no_placeholder_rollbacks");d.Xz=b.ca("html5_subsegment_readahead_enable_mffa");b.ca("html5_allow_video_keyframe_without_audio")&&(d.ia=!0);d.Th=b.ca("html5_reattach_on_stuck");d.SD=b.ca("html5_webm_init_skipping");d.Pi=g.P(b.experiments,"html5_request_size_padding_secs")||d.Pi;d.GG=b.ca("html5_log_timestamp_offset");d.Fc=b.ca("html5_abs_buffer_health");d.ZF=b.ca("html5_interruption_resets_seeked_time");d.ue=
g.P(b.experiments,"html5_max_live_dvr_window_plus_margin_secs")||d.ue;d.yd=b.ca("html5_explicitly_dispose_xhr");d.Vz=b.ca("html5_skip_invalid_sq");d.Oz=b.ca("html5_restart_on_unexpected_detach");d.DG=b.ca("html5_log_live_discontinuity");d.Sz=b.ca("html5_rewrite_manifestless_for_continuity");d.ge=g.P(b.experiments,"html5_manifestless_seg_drift_limit_secs");d.Ve=g.P(b.experiments,"html5_max_drift_per_track_secs");d.Tz=b.ca("html5_rewrite_manifestless_for_sync");d.Lb=g.P(b.experiments,"html5_static_abr_resolution_shelf");
d.Tq=!b.ca("html5_encourage_array_coalescing");d.Gr=b.ca("html5_crypto_period_secs_from_emsg");d.As=b.ca("html5_disable_reset_on_append_error");d.wF=b.ca("html5_filter_non_efficient_formats_for_safari");d.xz=b.ca("html5_format_hybridization");d.Wk=b.ca("html5_abort_before_separate_init");b.ca("html5_media_common_config_killswitch")||(d.F=c.maxReadAheadMediaTimeMs/1E3||d.F,e=b.schedule,e.u.u()===e.policy.C?d.W=10:d.W=c.minReadAheadMediaTimeMs/1E3||d.W,d.nd=c.readAheadGrowthRateMs/1E3||d.nd);ng&&(d.X=
41943040);d.ka=!XB();g.UC(b)||!XB()?(e=b.experiments,d.G=8388608,d.K=524288,d.Sq=5,d.za=2097152,d.Y=1048576,d.Mz=1.5,d.Cz=!1,d.P=4587520,Zj()&&(d.P=786432),d.u*=1.1,d.B*=1.1,d.sb=!0,d.X=d.G,d.Ea=d.K,d.Ef=g.Q(e,"persist_disable_player_preload_on_tv")||g.Q(e,"persist_disable_player_preload_on_tv_for_living_room")||!1):b.u&&(d.u*=1.3,d.B*=1.3);g.DB&&Uj("crkey")&&(e="CHROMECAST/ANCHOVY"===b.deviceParams.cmodel,d.G=20971520,d.K=1572864,e&&(d.P=812500,d.Oi=1E3,d.BC=5,d.Y=2097152));!b.ca("html5_disable_firefox_init_skipping")&&
g.EB&&(d.sb=!0);b.supportsGaplessAudio()||(d.Is=!1);DC&&(d.Hk=!0);dk()&&(d.Ri=!0);var f,h,l;if(JF(c)){d.JF=!0;d.Uz=!0;if("ULTRALOW"===c.latencyClass||"LOW"===c.latencyClass&&!b.ca("html5_disable_low_pipeline"))d.JG=2,d.uz=4;d.ej=c.defraggedFromSubfragments;c.Kc&&(d.bb=!0);g.cG(c)&&(d.da=!1);d.Ar=g.gD(b)}c.isAd()&&(d.Ja=0,d.be=0);LF(c)&&(d.ea=!0,b.ca("html5_resume_streaming_requests")&&(d.xb=!0,d.Oi=400,d.LG=2));d.ra=b.ca("html5_enable_subsegment_readahead_v3")||b.ca("html5_ultra_low_latency_subsegment_readahead")&&
"ULTRALOW"===c.latencyClass;d.Aa=c.Gj;d.ce=d.Aa&&(/^rq[a-f]/.test(c.clientPlaybackNonce)||qG(c));kk()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(b.deviceParams.cmodel)&&!b.ca("html5_disable_move_pssh_to_moov")&&(null===(f=c.ma)||void 0===f?0:bA(f))&&(d.sb=!1);if(null===(h=c.ma)||void 0===h?0:bA(h))d.Th=!1;h=0;b.ca("html5_live_use_alternate_bandwidth_window_sizes")&&(h=b.schedule.policy.u,c.isLivePlayback&&(h=g.P(b.experiments,"ULTRALOW"===c.latencyClass?"html5_live_ultra_low_latency_bandwidth_window":c.isLowLatencyLiveStream?
"html5_live_low_latency_bandwidth_window":"html5_live_normal_latency_bandwidth_window")||h));f=b.schedule;f.N.u=JF(c)?.5:0;if(!f.policy.B&&h&&(f=f.u,h=Math.round(h*f.resolution),h!==f.B)){e=Array(h);var m=Math.min(h,f.D?f.B:f.valueIndex),n=f.valueIndex-m;0>n&&(n+=f.B);for(var p=0;p<m;++p)e[p]=f.values[(n+p)%f.B];for(;p<h;++p)e[p]=Infinity;f.B=h;f.values=e;f.valueIndex=m%h;f.D=m===h;f.G=!0;f.P=sz(f)}d.Qa=c.isLivePlayback;switch(KF(c)){case 21530001:d.yz=b.ca("html5_live_smoothly_extend_max_seekable_time");
d.ra=!0;"LOW"===c.latencyClass?d.N=g.P(b.experiments,"html5_jumbo_mobile_subsegment_readahead_target"):"ULTRALOW"===c.latencyClass&&(d.N=g.P(b.experiments,"html5_jumbo_ull_subsegment_readahead_target"));d.Cf=!0;break;case 2153E4:d.ra=!1}d.Hk=d.Hk||c.Hk;d.ba=c.vi;qG(c)&&(d.de=!0);c.vi&&(null===(l=c.ma)||void 0===l?0:bA(l))&&b.ca("html5_hack_gapless_init")&&(d.Qi=!0);(l=g.P(b.experiments,"html5_gapless_ad_byterate_multiplier"))&&c.vi&&c.isAd()&&(d.u*=l,d.B*=l);oG(c)?(d.C=c.videoId,d.Fc=!0,oG(c)&&c.Vg&&
(d.Vg=!0)):c.FC&&(d.Si=!0);b.ca("html5_drm_initial_constraint_from_config")?d.Yc=c.Io:d.Yc=b.ca("html5_drm_start_from_null_constraint");b.ca("html5_dynamic_av1_hybrid_threshold")&&(d.Hs=!0,d.Pa=uB(b,{},c.Ia||void 0));c=Mx();l=g.P(b.experiments,"html5_deadzone_multiplier")||1;(f=g.P(b.experiments,"html5_sticky_reduces_discount_by"))&&c&&(l-=f);d.u*=l;d.B*=l;if(l=g.P(b.experiments,"html5_request_sizing_multiplier"))d.Nz=l;d.Bf=g.P(b.experiments,"html5_min_upgrade_health")||d.Bf;qB(b.D,rB.BITRATE)&&
(d.P=NaN);b.D.C&&(d.QD="; "+rB.EXPERIMENTAL.name+"=allowed");c&&(d.Rj=0,d.Lb=0);d.Jz=b.ca("html5_rec_2020_matrix_correction_killswitch");c=d.Qa&&!b.ca("html5_pause_appends_killswitch");d.Qa=c||b.ca("html5_never_pause_appends");g.Q(b.experiments,"html5_prefer_low_quality_audio_means_64k")&&DC&&(d.Hz=!0);g.Q(b.experiments,"debug_html5_random_stun_format")&&(d.Sh=!0);g.Q(b.experiments,"html5_urgent_adaptation_when_stun")&&(d.uC=!0);b=b.experiments;g.Q(b,"html5_validate_lengthless_slices_killswitch")&&
(d.vC=!1);g.Q(b,"html5_audio_only_eos_fix_killswitch")&&(d.Rq=!0);g.Q(b,"html5_reject_promise_if_seeking_to_head_killswitch")&&(d.Kz=!0);g.Q(b,"html5_check_seeking_for_cuepoints_killswitch")&&(d.Vq=!0);g.Q(b,"html5_rewrite_webm_track_uid_killswitch")&&(d.Ri=!1);b=a.getAudioTrack();b=b.u.isDefault?void 0:b;c=a.xb;c.keys=[];c.values=[];a.D=new hE(a.F.schedule,d,a.u.ma,a.u.Ia,AV(a),b,a.ea,a.u.enableServerStitchedDai);a.D.subscribe("needkeyinfo",a.rE,a);a.D.subscribe("newDrmInfo",a.pO,a);a.D.subscribe("videoformatchange",
a.UN,a);a.D.subscribe("audioformatchange",a.SN,a);a.D.subscribe("error",a.handleError,a);a.D.subscribe("ctmp",a.gb,a);a.D.subscribe("reattachrequired",a.BQ,a);a.D.subscribe("metadata",a.lE,a);a.D.subscribe("constraint",a.JP,a);a.D.subscribe("timestamp",a.eK,a);a.D.subscribe("localmediachange",a.VN,a);a.D.subscribe("localplaybackfailed",a.UH,a);a.da.subscribe("av1hybridthresholdchange",a.VM,a);d=ywa(a)?!0:a.Pa&&g.UC(a.F)&&a.u.isLivePlayback;a.D.initialize(a.getCurrentTime(),AV(a),d);a.u.probeUrl&&
(a.D.Ea=a.u.probeUrl);(a.ia.length||a.Pa)&&rW(a,!1);oU(a.K,a.D);a.P.u=a.D;a.ac&&(a.D.Qa=new GE(a.ac));pG(a.u)&&(a.D.u.rF=2)};
nwa=function(a){a.K=new kU(a.u,a.F,a.ba,function(){return g.nb(a.ia,"ad")});
a.K.subscribe("seekto",function(b,c){a.K.K=b;var d=a.Zb;d.mediaTime=b;d.seeking=!0;c||wW(a);a.ra&&b>a.u.endSeconds&&isFinite(b)&&(a.removeCueRange(a.ra),a.ra=null);b<xW(a)-.01&&(d=CL(a.C,2),g.U(d,8)&&(d=CL(d,4)),uV(a,d));a.V("SEEK_TO",a,b)});
a.K.subscribe("seekstart",function(){return yW(a)});
a.K.subscribe("seekend",function(){return a.V("SEEK_COMPLETE")});
a.K.subscribe("newmediaelementrequired",function(){return jV(a)});
a.K.subscribe("ended",function(){return gV(a)});
a.K.subscribe("ctmp",a.gb,a);a.K.subscribe("qoeerror",a.VC,a);a.K.subscribe("livereadaheadchanged",function(b){var c=a.G;c.qoe&&(c=c.qoe,g.yT(c,g.vT(c.provider),"lra",[b]),AT(c,"live-readahead-seconds",b.toString()))});
a.K.subscribe("releaseadsprerolllock",function(){return BV(a,"ad")})};
kV=function(a){a.D&&(a.D.dispose(),a.D=null,oU(a.K,null),a.P.u=null);qW(a)};
qW=function(a){if(a.W){if(a.D){var b=JF(a.u)&&a.u.Kc&&!a.u.isAd();mE(a.D,b)}a.W.dispose();a.W=null}};
zW=function(a){if(a.W)return a.W.vp;Awa(a);return a.W?a.W.vp:null};
Awa=function(a){if(vW(a,"html5_application_media_source"))a.V("requestmediasource",a);else{var b=g.P(a.F.experiments,"html5_source_buffer_attach_retry_limit")||0;a.Sj<b&&a.Sh.start();try{var c=a.B.ut()}catch(d){if(oT(a.P,"html5.missingapi",{updateMs:"1"}))return;g.Fr(d);d.message="window.URL object overwritten by external code";window.setTimeout(function(){throw d;},0);
a.re("html5.missingapi","HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1")}AW(a,c)}};
AW=function(a,b){Bwa(a);a.W=b;jha(a.W,function(c){try{if(a.W&&(!c||a.W==c)){var d=a.getDuration();!d&&JF(a.u)&&(d=g.P(a.F.experiments,"html5_manifestless_media_source_duration")||3600);a.W.isView()?(c=d,c>a.W.getDuration()&&UB(a.W,c)):UB(a.W,d);var e=a.D,f=a.W;e.ea&&(lE(e),e.ea=!1);kE(e);if(!VB(f)){var h=e.B.u.info.mimeType+e.u.QD,l=e.D.u.info.mimeType,m=new oB("fakesb"==l?new Yz:f.C.addSourceBuffer(l),lw(l),!1),n=new oB("fakesb"==h?new Yz:f.C.addSourceBuffer(h),lw(h),!0);f.u=m;f.B=n;g.C(f,m);g.C(f,
n)}Gy(e.B,f.B);Gy(e.D,f.u);e.C=f;e.resume();rs(f.u,e.Pa,e);rs(f.B,e.Pa,e);e.u.GG&&1E-4>=Math.random()&&e.Xc("toff",""+f.u.supports(1),!0);e.rh();a.V("mediasourceattached");a.Sh.stop()}}catch(p){g.Fr(p),a.handleError(new lB("fmt.unplayable",!0,{msi:"1",ename:p.name}))}})};
Bwa=function(a){a.D?Hm(a.D.seek(a.getCurrentTime()-a.oc()),function(){}):zwa(a)};
jV=function(a,b){b=void 0===b?!1:b;return Ba(new za(new wa(function(c){if(1==c.u)return a.D&&a.D.la()&&kV(a),a.V("newelementrequired"),b?sa(c,qV(a),2):c.Ac(2);g.U(a.C,8)&&a.playVideo();c.u=0})))};
Cwa=function(a,b){a.gb("newelem",b);jV(a)};
wW=function(a){g.U(a.C,32)||(uV(a,BL(a.C,32)),g.U(a.C,8)&&a.pauseVideo(!0),a.V("beginseeking",a));BW(a)};
yW=function(a){g.U(a.C,32)?(uV(a,DL(a.C,16,32)),a.V("endseeking",a)):g.U(a.C,2)||uV(a,BL(a.C,16))};
sV=function(a,b){a.V("internalvideodatachange",void 0===b?"dataupdated":b,a,a.u)};
vwa=function(a){g.Fb("loadstart loadeddata loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" "),function(b){this.Pb.R(this.B,b,this.OP,this)},a);
a.F.Th&&a.B.Bk()&&(a.Pb.R(a.B,"webkitplaybacktargetavailabilitychanged",a.IM,a),a.Pb.R(a.B,"webkitcurrentplaybacktargetiswirelesschanged",a.JM,a))};
Ewa=function(a){vW(a,"html5_enable_timeupdate_timeout")&&!a.u.isLivePlayback&&Dwa(a)&&a.Th.start()};
Dwa=function(a){if(!a.B)return!1;var b=a.B.getCurrentTime();a=a.B.getDuration();return!!(1<b&&b>a-.3)};
Gwa=function(a){window.clearInterval(a.ce);a.Qa.stop();a.u.wg=!0;a.F.wg=!0;a.F.ra=0;Fwa(a);g.U(a.C,8)&&uV(a,CL(a.C,65));var b=a.G;b.u&&yua(b.u);if(b.B){b=b.B;var c=g.vT(b.provider);0>b.u&&(b.u=c,b.delay.start());b.B=c;b.D=c}a.Af.Gb();a.V("playbackstarted");g.pp()&&((a=g.Na("yt.scheduler.instance.clearPriorityThreshold"))?a():rp(0))};
Fwa=function(a){var b=a.getCurrentTime(),c=a.u;!bB("pbs",a.Y.timerName)&&cB.measure&&cB.getEntriesByName&&(cB.getEntriesByName("mark_nr")[0]?dB("mark_nr"):dB());c.videoId&&a.Y.info("docid",c.videoId);c.eventId&&a.Y.info("ei",c.eventId);c.clientPlaybackNonce&&a.Y.info("cpn",c.clientPlaybackNonce);0<c.startSeconds&&a.Y.info("start",c.startSeconds.toString());a.B&&a.B.Ck()&&a.Y.info("paused",1);c.La?a.Y.info("fmt",Yt(c.La)):a.Y.info("fmt","-1");c.In&&a.Y.info("yt_pre",a.Qi?"2":"1");a.ba.isFullscreen()&&
a.Y.info("yt_fs","1");a.Y.info("cmt",b.toFixed(3));if(a.D){b=a.D.ra;window&&window.performance&&window.performance.getEntriesByName&&(c=window.performance.getEntriesByName(b.D),c.length&&(c=c[0],b.Te("vri",c.fetchStart),b.Te("vdns",c.domainLookupEnd),b.Te("vreq",c.requestStart),b.Te("fvb",c.responseStart),b.Te("vrc",c.responseEnd)),c=window.performance.getEntriesByName(b.u),c.length&&(c=c[0],b.Te("ari",c.fetchStart),b.Te("adns",c.domainLookupEnd),b.Te("areq",c.requestStart),b.Te("avb",c.responseStart),
b.Te("arc",c.responseEnd)));b=b.F;for(var d in b)a.Y.tick(d,b[d])}};
BW=function(a,b){b=void 0===b?!1:b;if(a.B&&a.u){var c=a.K,d=a.C.Jb(),e=c.getCurrentTime(),f=c.isAtLiveHead(e);if(c.W&&f){var h=c.W;if(h.u&&!(e>=h.B&&e<h.C)){var l=h.u.dh(e);-1!=l&&(h.B=h.u.Fe(l),h.C=h.B+h.u.getDuration(l),l=g.A()/1E3-h.u.Ce(l),l-=h.F(),h.D.add(l))}}c.B&&(f&&(f=c.B,h=c.u?KS(c.u):0,f.D++,3>f.D||g.A()-f.K<f.policy.N||(f.K=g.A(),f.B.push(h),50<f.B.length&&f.B.shift())),f=c.B,Tua(f,e,void 0===d?!0:d),Uua(f,e),d&&Xua(c,!0));c=a.getCurrentTime();!a.D||g.U(a.C,4)&&g.cG(a.u)||(d=a.D,e=c,d.C&&
d.C.B&&(e-=!isNaN(d.da)&&d.u.ac?d.da:0,d.G!=e&&d.resume(),d.P.C&&!WB(d.C)&&(f=d.G<=e&&e<d.G+10,h=Ay(d.C.B.Ye(),d.G+tE),f&&h&&(d.P.C=!1)),d.P.C||(d.G=e),d.Pb.Gb()));5<c&&(a.K.K=c);(d=g.pp())?g.qp(a.Ja):g.Eo(a.Ja);!g.HL(a.C)&&a.B.Ck()||g.U(a.C,128)||(e=(0,g.z)(a.yJ,a),0==a.B.Bl().length?a.Ja=d?g.np(e,100):g.Co(e,100):a.Ja=d?g.np(e,500):g.Co(e,500));a.u.bk=c;!b&&a.C.Jb()&&(a.G.Nd(),a.u.isLivePlayback&&g.A()>a.Si+6283&&(!a.isAtLiveHead()||a.u.ma&&nA(a.u.ma)||(c=a.G,c.qoe&&(c=c.qoe,e=c.provider.D(),d=
g.vT(c.provider),aua(c,d,e),e=e.F,isNaN(e)||g.yT(c,d,"e2el",[e.toFixed(3)]))),g.gD(a.F)&&a.gb("rawlat","l."+yU(a.za,"rawlivelatency").toFixed(3)),a.Si=g.A()),a.u.La&&tw(a.u.La)&&(c=xJ(a))&&c.videoHeight!=a.Ef&&(a.Ef=c.videoHeight,zV(a,"a",xwa(a,a.u.Gg))));Qta(a.da,a.X,a.B,a.ba.isBackground())&&hV(a);c=a.da;d=a.u.La;0>=g.P(c.u.experiments,"hfr_dropped_framerate_fallback_threshold")||!(d&&d.Ka()&&32<d.Ka().fps)?c=!1:3<=c.C?(c.C=0,c=!0):c=!1;c&&(a.G.onError("qoe.restart","droprate."+a.da.K),a.F.D.G=
!1,mV(a));!vW(a,"html5_check_ads_abnormality_killswitch")&&a.u.isAd()&&a.P&&a.G&&a.B&&((c=a.P,f=g.vT(a.G.provider),h=a.B.getCurrentTime(),e=a.getDuration(),(d=g.U(a.C,8))&&!c.C)?(c.C=f,c.F=h||0):(c.C&&(f-=c.C,5<=f&&(h-=c.F,e-=c.F,f>=5*h||f>=e+5))&&(e="wt."+f.toFixed(3)+".mpt."+h.toFixed(3)+(".dl."+e.toFixed(3)),pT(c,"slowads",e),c.videoData.ca("html5_report_slow_ads_as_error")&&c.V("playererror","fmt.unplayable","GENERIC_WITHOUT_LINK","slowads."+e)),d||(c.C=NaN,c.F=0)));a.V("progresssync",a,b)}};
xwa=function(a,b){if("auto"==b.La.Ka().quality&&tw(b.Be())&&a.u.Fj)for(var c=g.q(a.u.Fj),d=c.next();!d.done;d=c.next())if(d=d.value,d.getHeight()==a.Ef&&"auto"!=d.La.Ka().quality)return d.Be();return b.Be()};
uV=function(a,b){if(!g.EL(a.C,b)){var c=new g.EJ(b,a.C);a.C=b;Hwa(a);var d=!a.ge.length;a.ge.push(c);var e=a.B&&a.B.zp();g.GJ(c,1)&&!g.U(c.Bj,16)&&!e&&g.U(a.C,8)&&!g.U(a.C,64)&&a.D&&(a.D.ka=!0,a.B&&5<=KS(a.B)&&((e=g.P(a.F.experiments,"html5_non_network_rebuffer_duration_ms"))?a.Qj.start(e):Ota(a.da,a.X)&&hV(a)));(e=g.P(a.F.experiments,"html5_ad_timeout_ms"))&&a.u.isAd()&&g.U(b,1)&&(g.U(b,8)||g.U(b,16))?a.zf.start(e):a.zf.stop();(0>FJ(c,8)||g.GJ(c,1024))&&a.Qa.stop();!g.GJ(c,8)||a.u.wg||g.U(c.state,
1024)||a.Qa.start();g.U(c.state,8)&&0>FJ(c,16)&&!g.U(c.state,32)&&!g.U(c.state,2)&&a.playVideo();g.U(c.state,2)&&dG(a.u)&&(e=a.getCurrentTime(),a.u.lengthSeconds!=e&&(a.u.lengthSeconds=e,sV(a)),BW(a,!0));g.GJ(c,2)&&a.wy(!0);g.GJ(c,128)&&a.Ch();a.u.ma&&a.u.isLivePlayback&&!a.Wk&&(0>FJ(c,8)?(e=a.u.ma,e.D&&e.D.stop()):g.GJ(c,8)&&a.u.ma.resume());a.K.Vb(c);a.G.Vb(c);if(d&&!a.la())try{for(var f=g.q(a.ge),h=f.next();!h.done;h=f.next()){var l=h.value;a.ea.Vb(l);a.V("statechange",l)}}finally{a.ge.length=
0}}};
CW=function(a,b){g.U(a.C,128)||(uV(a,DL(a.C,1028,9)),a.gb("dompaused",b),a.V("onDompaused"))};
rV=function(a){if(!a.B||!a.u.Ia)return!1;var b=null;a.u.Ia.wc()?(b=zW(a),a.D.resume()):(kV(a),a.u.Gg&&(b=a.u.Gg.Bp()));var c=b;var d=a.B.vt();b=!1;d&&null!==c&&c.u===d.u||(a.Y.tick("vta"),eB("vta","video_to_ad"),0<a.getCurrentTime()&&(b=a.getCurrentTime(),a.K.K=b),a.B.pn(c),a.W&&rp(4),!a.u.wg&&g.FL(a.C)&&a.Qa.start(),b=!0);g.U(a.C,2)||(c=a.K,c.P||!(0<c.K)||c.u&&0<c.u.getCurrentTime()||c.seekTo(c.K));a:if(c=b,g.UF(a.u)&&a.B)if((d=a.u.Wc)&&a.B.Bk()){var e=a.B.Ma();if(a.N)if(e!=a.N.element)lV(a);else if(c&&
"fairplay"==d.flavor&&!Yj())lV(a);else break a;a.N=new hT(e,a.u,a.F);a.N.subscribe("licenseerror",a.KN,a);a.N.subscribe("qualitychange",a.MN,a);a.N.subscribe("heartbeatparams",a.GN,a);a.N.subscribe("keystatuseschange",a.IN,a);a.N.subscribe("hdproberequired",a.LN,a);a.N.subscribe("ctmp",a.gb,a);c=g.q(a.xb.keys);for(d=c.next();!d.done;d=c.next())d=a.xb.get(d.value),ota(a.N,d);vW(a,"html5_eme_loader_sync")||(a=a.xb,a.keys=[],a.values=[])}else a.re("fmt.unplayable","HTML5_NO_AVAILABLE_FORMATS_FALLBACK",
"drm.1");return b};
lV=function(a){a.N&&(a.N.dispose(),a.N=null)};
DW=function(a,b){b=void 0===b?!1:b;return a.u.isLivePlayback&&(a.isAtLiveHead()&&(vW(a,"html5_videoplayer_getmaxseekabletimeforux_check_pause_killswitch")||!g.U(a.C,4))||rU(a.K)||g.cG(a.u))?a.getCurrentTime():xW(a,b)};
xW=function(a,b){return a.K.Cd(void 0===b?!1:b)};
owa=function(a){a.B&&(a.W?(lV(a),qW(a),zW(a)):(a.u.Gg&&a.u.Gg.vy(),a.B.stopVideo()),a.playVideo())};
EW=function(a,b){g.Q(a.F.experiments,"html5_log_rebuffer_reason")&&a.gb("bufreason","r."+b+";lact."+wp())};
FW=function(a,b,c,d,e,f,h){f?(a=a.G,a.qoe&&fua(a.qoe,b,c,d,e,1,h),""===b&&(b=a.provider.videoData.clientPlaybackNonce),a.D.has(b)?(c=a.D.get(b),c.C&&isNaN(c.B)&&ST(c,!1)):(d=new QT(a.provider),d.G=c,d.F=b,g.C(a,d),a.D.set(b,d),yua(d)),a.C=b):(a=a.G,a.qoe&&fua(a.qoe,b,c,d,e,0,h),""===b&&(b=a.provider.videoData.clientPlaybackNonce),a.D.has(b)?(c=a.D.get(b),VT(c).send(),g.Eo(c.B),c.B=NaN):(a.C=a.provider.videoData.clientPlaybackNonce,a.C&&a.u&&a.D.set(a.C,a.u)))};
Iwa=function(a,b){if(a.u.Gj){var c=g.P(a.F.experiments,"html5_log_rebuffer_events");if(c&&a.B){var d=a.B.ob();d.rt=(1E3*g.vT(a.G.provider)).toFixed();d.e=b.substr(0,3);a.de[a.Rj++%c]=d}}};
Hwa=function(a){if(a.u.Gj){a.de.sort(function(d,e){return+d.rt-+e.rt});
for(var b=g.q(a.de),c=b.next();!c.done;c=b.next())c=c.value,a.gb("vpe","t."+c.rt+";"+g.mB(c));a.de=[];a.Rj=0}};
xV=function(a,b){a.gb("seekreason",b)};
Jwa=function(a){if(Uj("cobalt")&&Uj("nintendo switch")){var b=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;a.gb("nxdock",""+ +b)}};
vW=function(a,b){return g.Q(a.F.experiments,b)};
Kwa=function(a,b,c,d,e){a.gb("xvt","m."+b+";g.1;tt."+(c?1:0)+";np."+(d?1:0)+";c."+e)};
rW=function(a,b){jE(a.D,b||ywa(a))};
ywa=function(a){var b=vW(a,"disable_prefetch_when_ad_pending_for_living_room")&&g.UC(a.F),c=vW(a,"disable_prefetch_when_ad_pending_for_web");return(b||c)&&g.nb(a.ia,"ad")};
swa=function(a){if(DF(a.u,"html5_set_debugging_opt_in")&&(a=g.es.getInstance(),!g.gs(0,183))){var b="f"+(Math.floor(183/31)+1),c=fs(b)||0;c|=268435456;0==c?delete ds[b]:(c=c.toString(16),ds[b]=c.toString());a.save()}};
GW=function(a,b,c){var d={};b&&(d.v=b);c&&(d.list=c);a={name:a,locale:void 0,feature:void 0};for(var e in d)a[e]=d[e];d=g.Id("/sharing_services",a);g.zt(d)};
Lwa=function(a,b){var c={commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",url:"/service_ajax",sendPost:!0}},playlistEditEndpoint:{playlistId:"WL",actions:b}},d={list_id:"WL"};c=CU(KU(),c);Fm(c.then(function(e){if(e&&"STATUS_SUCCEEDED"===e.status){if(a.onSuccess)a.onSuccess({},d)}else if(a.onError)a.onError({},d)}),function(){a.Jf&&a.Jf({},d)})};
Nwa=function(a,b,c){g.ro("web_classic_playlist_one_platform_update")?Lwa(a,[{addedVideoId:a.videoIds,action:"ACTION_ADD_VIDEO"}]):Mwa("add_to_watch_later_list",a,b,c)};
Owa=function(a,b,c){g.ro("web_classic_playlist_one_platform_update")?Lwa(a,[{removedVideoId:a.videoIds,action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID"}]):Mwa("delete_from_watch_later_list",a,b,c)};
Mwa=function(a,b,c,d){g.lq(c?c+"playlist_video_ajax?action_"+a+"=1":"/playlist_video_ajax?action_"+a+"=1",{method:"POST",Mh:{feature:b.feature||null,authuser:b.he||null,pageid:b.pageId||null},dc:{video_ids:b.videoIds||null,source_playlist_id:b.sourcePlaylistId||null,full_list_id:b.fullListId||null,delete_from_playlists:b.e4||null,add_to_playlists:b.F3||null,plid:g.K("PLAYBACK_ID")||null},context:b.context,onError:b.onError,onSuccess:function(e,f){b.onSuccess.call(this,e,f)},
Jf:b.Jf,withCredentials:!!d})};
g.Qwa=function(a,b,c){b=Pwa(null,b,c);if(b=window.open(b,"loginPopup","width=800,height=600,resizable=yes,scrollbars=yes",!0))c=g.Jo("LOGGED_IN",function(d){g.Ko(g.K("LOGGED_IN_PUBSUB_KEY",void 0));oo("LOGGED_IN",!0);a(d)}),oo("LOGGED_IN_PUBSUB_KEY",c),b.moveTo((screen.width-800)/2,(screen.height-600)/2)};
Pwa=function(a,b,c){var d="/signin?context=popup";c&&(d=document.location.protocol+"//"+c+d);c=document.location.protocol+"//"+document.domain+"/post_login";a&&(c=Hd(c,"mode",a));a=Hd(d,"next",c);b&&(a=Hd(a,"feature",b));return a};
HW=function(){};
IW=function(){};
Swa=function(){var a,b;return Te(this,function d(){var e;return Aa(d,function(f){e=navigator;return(null===(a=e.storage)||void 0===a?0:a.estimate)?f["return"](e.storage.estimate()):(null===(b=e.webkitTemporaryStorage)||void 0===b?0:b.u)?f["return"](Rwa()):f["return"]()})})};
Rwa=function(){var a=navigator;return new Promise(function(b,c){var d;null!==(d=a.webkitTemporaryStorage)&&void 0!==d&&d.u?a.webkitTemporaryStorage.u(function(e,f){b({usage:e,quota:f})},function(e){c(e)}):c(Error("webkitTemporaryStorage is not supported."))})};
yq=function(a,b,c){var d=this;this.Hw=a;this.handleError=b;this.u=c;this.B=!1;void 0===self.document||self.addEventListener("beforeunload",function(){d.B=!0})};
Bq=function(a){var b=xq;if(a instanceof Qq)switch(a.type){case "UNKNOWN_ABORT":case "QUOTA_EXCEEDED":case "QUOTA_MAYBE_EXCEEDED":b.Hw(a);break;case "EXPLICIT_ABORT":a.sampleWeight=0;break;default:b.handleError(a)}else b.handleError(a)};
Uwa=function(a,b){Swa().then(function(c){c=Object.assign(Object.assign({},b),{isSw:void 0===self.document,isIframe:self!==self.top,deviceStorageUsageMbytes:Twa(null===c||void 0===c?void 0:c.usage),deviceStorageQuotaMbytes:Twa(null===c||void 0===c?void 0:c.quota)});a.u("idbQuotaExceeded",c)})};
Twa=function(a){return"undefined"===typeof a?"-1":String(Math.ceil(a/1048576))};
Vwa=function(a,b,c){"string"===typeof a&&(a={mediaContentUrl:a,startSeconds:b,suggestedQuality:c});a:{if((b=a.mediaContentUrl)&&(b=/\/([ve]|embed)\/([^#?]+)/.exec(b))&&b[2]){b=b[2];break a}b=null}a.videoId=b;return JW(a)};
JW=function(a,b,c){if("string"===typeof a)return{videoId:a,startSeconds:b,suggestedQuality:c};b=["endSeconds","startSeconds","mediaContentUrl","suggestedQuality","videoId"];c={};for(var d=0;d<b.length;d++){var e=b[d];a[e]&&(c[e]=a[e])}return c};
Wwa=function(a,b,c,d){if(g.Sa(a)&&!Array.isArray(a)){b="playlist list listType index startSeconds suggestedQuality".split(" ");c={};for(d=0;d<b.length;d++){var e=b[d];a[e]&&(c[e]=a[e])}return c}b={index:b,startSeconds:c,suggestedQuality:d};"string"===typeof a&&16===a.length?b.list="PL"+a:b.playlist=a;return b};
Ywa=function(a){var b,c;return Te(this,function e(){var f,h,l,m,n;return Aa(e,function(p){if(1==p.u)return f=KU(),h={context:g.GG(),videoIds:[a]},l=BU(Xwa),sa(p,OG(f,h,l),2);m=p.B;if(!m)throw Error("Network request failed");if(!m.videos||1!==m.videos.length)throw Error("Failed request: "+(null!==(c=null===(b=m.error)||void 0===b?void 0:b.code)&&void 0!==c?c:"?"));n=m.videos[0].offlineVideoData;if(!n)throw Error("No data");return p["return"](n)})})};
Zwa=function(a){return"caches"in window&&a.length?window.caches.open("yt-player-local-img").then(function(b){return Promise.all(a.map(function(c){return b["delete"](c)}))}).then(function(){return Promise.resolve()}):Promise.resolve()};
$wa=function(a){return"caches"in window&&fetch&&a.length?window.caches.open("yt-player-local-img").then(function(b){return b.addAll(a)}):Promise.resolve()};
MW=function(a,b,c){var d=this;this.api=a;this.player=b;this.player.subscribe("localmediachange",this.u,this);this.B=c;Cfa().then(function(){var e=Iw(2);e=g.q(e);for(var f=e.next();!f.done;f=e.next())f=f.value,KW(d,f)||Jw(f,3);LW(d)})};
NW=function(a){Jfa(a).then(function(b){return void Zwa(axa(null===b||void 0===b?void 0:b.thumbnail))});
return Mfa(a)};
bxa=function(){return Te(this,function b(){return Aa(b,function(c){return 1==c.u?sa(c,Promise.all(["caches"in window?window.caches["delete"]("yt-player-local-img"):Promise.resolve(!0),Nw()]),2):c["return"]()})})};
exa=function(a,b){return Te(a,function d(){var e,f=this;return Aa(d,function(h){if(1==h.u)return Gw(b)?h["return"]():sa(h,Ywa(b),2);if(3!=h.u)return e=h.B,sa(h,cxa(f,b,e),3);0===Iw(2).length?dxa(f,b):Jw(b,3);h.u=0})})};
OW=function(a,b){var c=Gw(b);if(1===c||0===c)return Promise.resolve();c=KW(a,b);c===a.player?(a.player.stopVideo(),c=a.player,c.D&&FE(c.D)):c&&(c.D&&FE(c.D),PF(c.getVideoData(),!1));return NW(b)};
fxa=function(a,b){var c,d;return Te(a,function f(){var h,l,m;return Aa(f,function(n){if(1==n.u)return sa(n,Ifa(b),2);h=n.B;if(!h)return n["return"](null);l=h.timestampSecs;m=null===(d=null===(c=h.player)||void 0===c?void 0:c.offlineState)||void 0===d?void 0:d.expiresInSeconds;return!m||l+m<=Math.floor(Date.now()/1E3)?n["return"](null):n["return"](h.player)})})};
KW=function(a,b){var c=a.api.Ub(),d=c?c.getVideoData():null;return c&&(null===d||void 0===d?0:oG(d))&&d.videoId===b?c:a.player.getVideoData().videoId===b?a.player:null};
dxa=function(a,b){Jw(b,2);var c=gxa(a,{videoId:b,download_media:!0,download_media_in_bg:!0,start:Infinity,disable_watch_next:!0});c.subscribe("dataloaded",function(){return void hxa(a,c)});
a.player.Dh(c,a.B);pV(a.player,!1)};
gxa=function(a,b){return new g.qF(a.player.T(),b)};
LW=function(a){if(g.Q(a.api.T().experiments,"hoffle_api"))0<Iw(2).length||(b=Iw(3),0<b.length&&dxa(a,b[0]));else{a=g.q(Iw(3));for(var b=a.next();!b.done;b=a.next())NW(b.value)}};
hxa=function(a,b){var c;if(g.Q(a.api.T().experiments,"hoffle_api")){var d=b.getPlayerResponse(),e=null===(c=null===d||void 0===d?void 0:d.videoDetails)||void 0===c?void 0:c.videoId;d&&e&&Ffa(e,d)}};
cxa=function(a,b,c){return Te(a,function e(){var f=this;return Aa(e,function(h){return 1==h.u?g.Q(f.api.T().experiments,"hoffle_api")?sa(h,Efa(b,c),2):h["return"]():h["return"](ixa(c.thumbnail))})})};
ixa=function(a){a=axa(a);return a.length?$wa(a):Promise.resolve(void 0)};
axa=function(a){if(!a||!a.thumbnails)return[];var b=[];a=g.q(a.thumbnails);for(var c=a.next();!c.done;c=a.next())c=c.value,c.url&&b.push(c.url);return b};
QW=function(a,b){g.B.call(this);var c=this;this.app=a;this.playerType=b;this.u=!0;this.element=null;this.F={};this.K={};this.B={};this.P=[];this.G={};this.D={};this.C=null;this.W=new Set;PW(this,"cueVideoById",this.cueVideoById);PW(this,"loadVideoById",this.loadVideoById);PW(this,"cueVideoByUrl",this.cueVideoByUrl);PW(this,"loadVideoByUrl",this.loadVideoByUrl);PW(this,"playVideo",this.playVideo);PW(this,"pauseVideo",this.pauseVideo);PW(this,"stopVideo",this.stopVideo);PW(this,"clearVideo",this.clearVideo);
PW(this,"getVideoBytesLoaded",this.getVideoBytesLoaded);PW(this,"getVideoBytesTotal",this.getVideoBytesTotal);PW(this,"getVideoLoadedFraction",this.getVideoLoadedFraction);PW(this,"getVideoStartBytes",this.getVideoStartBytes);PW(this,"cuePlaylist",this.cuePlaylist);PW(this,"loadPlaylist",this.loadPlaylist);PW(this,"nextVideo",this.nextVideo);PW(this,"previousVideo",this.previousVideo);PW(this,"playVideoAt",this.playVideoAt);PW(this,"setShuffle",this.setShuffle);PW(this,"setLoop",this.setLoop);PW(this,
"getPlaylist",this.cJ);PW(this,"getPlaylistIndex",this.getPlaylistIndex);PW(this,"getPlaylistId",this.getPlaylistId);PW(this,"loadModule",this.loadModule);PW(this,"unloadModule",this.unloadModule);PW(this,"setOption",this.setOption);PW(this,"getOption",this.getOption);PW(this,"getOptions",this.getOptions);PW(this,"mute",this.mute);PW(this,"unMute",this.unMute);PW(this,"isMuted",this.isMuted);PW(this,"setVolume",this.setVolume);PW(this,"getVolume",this.getVolume);PW(this,"seekTo",this.seekTo);PW(this,
"getPlayerState",this.getPlayerState);PW(this,"getPlaybackRate",this.getPlaybackRate);PW(this,"setPlaybackRate",this.setPlaybackRate);PW(this,"getAvailablePlaybackRates",this.getAvailablePlaybackRates);PW(this,"getPlaybackQuality",function(){return c.getPlaybackQuality(1)});
PW(this,"setPlaybackQuality",this.setPlaybackQuality);PW(this,"getAvailableQualityLevels",this.getAvailableQualityLevels);PW(this,"getCurrentTime",this.getCurrentTime);PW(this,"getDuration",this.getDuration);PW(this,"addEventListener",this.cI);PW(this,"removeEventListener",this.wQ);PW(this,"getDebugText",this.getDebugText);PW(this,"getVideoData",function(){return c.hs()});
PW(this,"addCueRange",this.addCueRange);PW(this,"removeCueRange",this.removeCueRange);PW(this,"setSize",this.setSize);PW(this,"getApiInterface",this.getApiInterface);PW(this,"destroy",this.destroy);PW(this,"showVideoInfo",this.showVideoInfo);PW(this,"hideVideoInfo",this.hideVideoInfo);PW(this,"isVideoInfoVisible",this.isVideoInfoVisible);PW(this,"getSphericalProperties",this.getSphericalProperties);PW(this,"setSphericalProperties",this.setSphericalProperties);this.app.T().G||(PW(this,"getVideoEmbedCode",
this.getVideoEmbedCode),PW(this,"getVideoUrl",this.getVideoUrl));PW(this,"getMediaReferenceTime",this.getMediaReferenceTime);Y(this,"getInternalApiInterface",this.getInternalApiInterface);Y(this,"cueVideoByPlayerVars",this.cueVideoByPlayerVars);Y(this,"loadVideoByPlayerVars",this.loadVideoByPlayerVars);Y(this,"preloadVideoByPlayerVars",this.preloadVideoByPlayerVars);Y(this,"getAdState",this.getAdState);Y(this,"sendAbandonmentPing",this.sendAbandonmentPing);Y(this,"setLoopRange",this.setLoopRange);
Y(this,"getLoopRange",this.getLoopRange);Y(this,"setAutonavState",this.setAutonavState);Y(this,"seekToLiveHead",this.seekToLiveHead);Y(this,"seekToStreamTime",this.seekToStreamTime);Y(this,"getStreamTimeOffset",this.getStreamTimeOffset);Y(this,"getVideoData",this.hs);Y(this,"setIsExternalPlaylist",this.setIsExternalPlaylist);Y(this,"deleteLocalMediaById",this.deleteLocalMediaById);Y(this,"deleteAllLocalMedia",this.deleteAllLocalMedia);Y(this,"cancelPendingLocalMediaById",this.cancelPendingLocalMediaById);
Y(this,"fetchLocalMedia",this.fetchLocalMedia);Y(this,"fetchLocalMediaById",this.fetchLocalMediaById);Y(this,"getLocalPlayerResponse",this.getLocalPlayerResponse);Y(this,"getLocalMediaInfoById",this.getLocalMediaInfoById);Y(this,"getAllLocalMediaInfo",this.getAllLocalMediaInfo);Y(this,"getAppState",this.getAppState);Y(this,"addInfoCardXml",this.addInfoCardXml);Y(this,"updateLastActiveTime",this.updateLastActiveTime);Y(this,"setBlackout",this.setBlackout);Y(this,"setAccountLinkState",this.setAccountLinkState);
Y(this,"updateAccountLinkingConfig",this.updateAccountLinkingConfig);Y(this,"setUserEngagement",this.setUserEngagement);Y(this,"updateSubtitlesUserSettings",this.updateSubtitlesUserSettings);Y(this,"setFauxFullscreen",this.setFauxFullscreen);Y(this,"setUseFastSizingOnWatch",this.setUseFastSizingOnWatch);Y(this,"getPresentingPlayerType",this.getPresentingPlayerType);Y(this,"canPlayType",this.canPlayType);Y(this,"updatePlaylist",this.updatePlaylist);Y(this,"updateVideoData",this.updateVideoData);Y(this,
"updateEnvironmentData",this.updateEnvironmentData);Y(this,"sendVideoStatsEngageEvent",this.sendVideoStatsEngageEvent);Y(this,"setCardsVisible",this.setCardsVisible);Y(this,"productsInVideoVisibilityUpdated",this.productsInVideoVisibilityUpdated);Y(this,"setSafetyMode",this.setSafetyMode);Y(this,"isAtLiveHead",function(d){c.isAtLiveHead(void 0,d)});
Y(this,"getVideoAspectRatio",this.getVideoAspectRatio);Y(this,"getPreferredQuality",this.getPreferredQuality);Y(this,"setPlaybackQualityRange",this.setPlaybackQualityRange);Y(this,"onAdUxClicked",this.onAdUxClicked);Y(this,"getFeedbackProductData",this.getFeedbackProductData);Y(this,"getStoryboardFrame",this.getStoryboardFrame);Y(this,"getStoryboardFrameIndex",this.getStoryboardFrameIndex);Y(this,"getStoryboardLevel",this.getStoryboardLevel);Y(this,"getNumberOfStoryboardLevels",this.getNumberOfStoryboardLevels);
Y(this,"setAutonav",this.setAutonav);Y(this,"isNotServable",this.isNotServable);Y(this,"channelSubscribed",this.channelSubscribed);Y(this,"channelUnsubscribed",this.channelUnsubscribed);Y(this,"isPictureInPictureAllowed",this.isPictureInPictureAllowed);Y(this,"togglePictureInPicture",this.togglePictureInPicture);Y(this,"supportsGaplessAudio",this.supportsGaplessAudio);Y(this,"enqueueVideoByPlayerVars",function(d){return void c.enqueueVideoByPlayerVars(d)});
Y(this,"clearQueue",this.clearQueue);Y(this,"isFastLoad",function(){return!1});
Y(this,"getPlayerResponse",this.getPlayerResponse);Y(this,"getAudioTrack",this.JI);Y(this,"setAudioTrack",this.setAudioTrack);Y(this,"getAvailableAudioTracks",this.KI);Y(this,"getMaxPlaybackQuality",this.getMaxPlaybackQuality);Y(this,"getUserPlaybackQualityPreference",this.getUserPlaybackQualityPreference);Y(this,"getSubtitlesUserSettings",this.getSubtitlesUserSettings);Y(this,"resetSubtitlesUserSettings",this.resetSubtitlesUserSettings);Y(this,"setMinimized",this.setMinimized);Y(this,"confirmYpcRental",
this.confirmYpcRental);Y(this,"handleExternalCall",this.handleExternalCall);Y(this,"isExternalMethodAvailable",this.isExternalMethodAvailable);Y(this,"getStatsForNerds",this.getStatsForNerds);Y(this,"setScreenLayer",this.setScreenLayer);Y(this,"getCurrentPlaylistSequence",this.getCurrentPlaylistSequence);Y(this,"getPlaylistSequenceForTime",this.getPlaylistSequenceForTime);Y(this,"forceFrescaUpdate",this.forceFrescaUpdate);Y(this,"shouldSendVisibilityState",this.shouldSendVisibilityState);Y(this,"updateFullerscreenEduButtonVisibility",
this.updateFullerscreenEduButtonVisibility);Y(this,"updateFullerscreenEduButtonSubtleModeState",this.updateFullerscreenEduButtonSubtleModeState);Y(this,"setGlobalCrop",this.setGlobalCrop);Y(this,"getVisibilityState",this.getVisibilityState);Y(this,"isMutedByMutedAutoplay",this.isMutedByMutedAutoplay);Y(this,"setInternalSize",this.setInternalSize)};
PW=function(a,b,c){a.F[b]=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];return c.apply(a,e)};
a.B.hasOwnProperty(b)||Y(a,b,c);a.P.push(b)};
RW=function(a,b,c){a.K[b]=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];return c.apply(a,e)};
a.B.hasOwnProperty(b)||Y(a,b,c);a.P.push(b)};
Y=function(a,b,c){a.B[b]=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];return c.apply(a,e)}};
LM=function(a){a.C||(a.C={},g.Wa(a.C,a.F),g.Wa(a.C,a.K),a.C.addEventListener=function(b,c){jxa(a,b,c)},a.C.removeEventListener=function(b,c){var d="string"===typeof c?b+c:b+String(g.Ua(c)),e=a.D[d];
e&&(a.app.ra.unsubscribe(b,e),e=a.D,d in e&&delete e[d])});
return a.C};
jxa=function(a,b,c){var d="string"===typeof c?b+c:b+String(g.Ua(c));if(!a.D[d]){var e;"string"===typeof c?e=function(h){for(var l=[],m=0;m<arguments.length;++m)l[m-0]=arguments[m];g.Na(c).apply(window,l)}:e=c;
var f=function(h){e({target:a.C,data:h})};
a.D[d]=f;a.app.ra.subscribe(b,f)}};
kxa=function(a,b,c){b=g.$d(Math.floor(b),0,100);isFinite(b)&&SW(a.app,{volume:b,muted:a.isMuted()},c)};
lxa=function(a,b){SW(a.app,{muted:!0,volume:a.getVolume()},b)};
mxa=function(a,b){SW(a.app,{muted:!1,volume:Math.max(5,a.getVolume())},b)};
g.TW=function(a){var b=nxa(a.app.D);if(b)return b.chrome;a=a.app.D;a=g.OC(a.J.T())?a.Cc.get("music"):void 0;return a?a.chrome:null};
VW=function(a,b){QW.call(this,a,b);var c=this;this.u=!1;RW(this,"cueVideoByPlayerVars",function(d,e){c.cueVideoByPlayerVars(UW(c,d),e)});
RW(this,"loadVideoByPlayerVars",function(d,e,f,h){c.loadVideoByPlayerVars(UW(c,d),e,f,h)});
RW(this,"preloadVideoByPlayerVars",function(d,e,f,h){return void c.preloadVideoByPlayerVars(UW(c,d),e,f,h)});
RW(this,"seekBy",this.seekBy);RW(this,"mutedAutoplay",this.mutedAutoplay);RW(this,"showControls",this.showControls);RW(this,"hideControls",this.hideControls);RW(this,"cancelPlayback",this.cancelPlayback);RW(this,"getProgressState",this.getProgressState);RW(this,"isInline",this.isInline);RW(this,"setInline",this.setInline);RW(this,"getStoryboardFormat",this.getStoryboardFormat);RW(this,"getVideoContentRect",this.getVideoContentRect);RW(this,"toggleFullscreen",this.toggleFullscreen);RW(this,"isFullscreen",
this.isFullscreen);RW(this,"getVideoStats",this.getVideoStats);RW(this,"getPlayerSize",this.getPlayerSize);RW(this,"toggleSubtitles",this.toggleSubtitles);RW(this,"setCenterCrop",this.setCenterCrop);RW(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);RW(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);RW(this,"setSizeStyle",this.setSizeStyle);RW(this,"wakeUpControls",this.wakeUpControls)};
UW=function(a,b){var c={};if(a.app.T().P)for(var d=g.q(oxa),e=d.next();!e.done;e=d.next())e=e.value,b.hasOwnProperty(e)&&(c[e]=b[e]);else for(d=g.q(pxa),e=d.next();!e.done;e=d.next())e=e.value,b.hasOwnProperty(e)&&(c[e]=b[e]);return c};
WW=function(a){VW.call(this,a);this.N=null};
g.YW=function(a,b,c,d,e,f){return g.XW(a.app,b,c,d,e,f)};
g.ZW=function(a){return a.app.D};
g.$W=function(a){a=g.ZW(a).Cc.get("endscreen");return!!a&&a.TC()};
aX=function(a){a=g.ZW(a);var b=a.Cc.get("endscreen");return b&&b.UC()?!0:a.mq()||g.OC(a.J.T())};
g.bX=function(a,b){3===a.getPresentingPlayerType()?a.V("mdxautoplaycancel"):a.V("autonavcancel",b)};
g.uJ=function(a,b){return qxa(a.app,b)};
g.LG=function(a){return a.app.template};
g.dX=function(a){var b=g.cX(g.ZW(a));return a.app.X&&!a.isFullscreen()||3===a.getPresentingPlayerType()&&b&&b.hasNext()&&b.ji()||!!a.getPlaylist()};
g.eX=function(a,b,c){a.app.C.handleError(new lB(b,!1,c))};
g.gX=function(a){return(a=g.fX(g.ZW(a)))?a.jK():{}};
g.iX=function(a){a=g.hX(g.ZW(a));return!!a&&a.yp()};
g.jX=function(a){a=g.hX(g.ZW(a));return!!a&&a.SC()};
lX=function(a){a=kX(g.ZW(a));return!!a&&a.C()};
mX=function(a){a=g.ZW(a).Cc.get("heartbeat");return!!a&&a.hK()};
g.fN=function(a,b,c){rxa(a.app,b,c)};
g.oX=function(a,b,c){a=a.app;var d=g.Z(a,c);d&&(b=$D(d.ea,b),c&&a.getPresentingPlayerType()!==c||nX(a,"cuerangesremoved",b))};
g.pX=function(a,b,c){(a=g.Z(a.app,c))&&BV(a,b)};
g.sxa=function(a){a=(a=a.getVideoData())&&a.La;return!!a&&!(!a.audio||!a.video)&&"application/x-mpegURL"!==a.mimeType};
g.txa=function(a){a=a.getVideoData();return!!a&&!!(a.adaptiveFormats||a.hlsFormats||a.tg)};
g.uP=function(a,b,c){a=g.LG(a).element;var d=Bb(a.children,function(e){e=Number(e.getAttribute("data-layer"));return c-e||1});
0>d&&(d=-(d+1));g.He(a,b,d);b.setAttribute("data-layer",String(c))};
g.qX=function(a){var b=a.T();if(!b.sb)return!1;var c=a.getVideoData();if(!c||3===a.getPresentingPlayerType())return!1;var d=!c.isLiveDefaultBroadcast||g.Q(b.experiments,"allow_poltergust_autoplay");d=c.isLivePlayback&&(!g.Q(b.experiments,"allow_live_autoplay")||!d);var e=c.isLivePlayback&&g.Q(b.experiments,"allow_live_autoplay_on_mweb");a=a.getPlaylist();a=!!a&&a.hasNext();var f=c.watchNextResponse&&c.watchNextResponse.playerOverlays||null;f=!!(f&&f.playerOverlayRenderer&&f.playerOverlayRenderer.autoplay);
f=c.Lc&&f;return!c.ypcPreview&&(!d||e)&&!g.nb(c.Pe,"ypc")&&!a&&(!g.FC(b)||f)};
g.rX=function(a,b,c,d,e){a.T().da&&uxa(a.app.Aa,b,c,d,void 0===e?!1:e)};
g.AN=function(a,b,c,d){a.T().da&&vxa(a.app.Aa,b,c,void 0===d?!1:d)};
g.BN=function(a,b,c){a.T().da&&(a.app.Aa.elements.has(b),c&&(b.visualElement=g.Fs(c)))};
g.sX=function(a,b,c){a.T().da&&a.app.Aa.click(b,c)};
g.EN=function(a,b,c,d){if(a.T().da){a=a.app.Aa;a.elements.has(b);c?a.u.add(b):a.u["delete"](b);var e=g.Ms(),f=b.visualElement;a.B.has(b)?e&&f&&(c?g.mt(e,[f]):g.nt(e,[f])):c&&!a.C.has(b)&&(e&&f&&g.ft(e,f,d),a.C.add(b))}};
g.DN=function(a,b){return a.T().da?a.app.Aa.elements.has(b):!1};
g.eN=function(a,b){if(a.app.getPresentingPlayerType()===b){var c=a.app,d=g.Z(c,b);d&&(d.getPlayerType(),d.getVideoData(),d!==c.C?tX(c,c.C):wxa(c))}};
Ora=function(a,b,c){c=void 0===c?Infinity:c;a=a.app;b=void 0===b?-1:b;b=void 0===b?-1:b;c=void 0===c?Infinity:c;a.W?uX(a.W,b,c):vX(a.ka,b,c)};
KG=function(a){a=a.app;var b=g.Z(a,void 0);if(b){a=wX(a,b);b=xW(a);var c=a.getCurrentTime(),d;(d=!a.u.isLivePlayback)||(d=a.K,d=!(d.B&&d.B.C));a=d||rU(a.K)||isNaN(b)||isNaN(c)?0:Math.max(0,b-c)}else a=0;return a};
xxa=function(a){if(!a.ca("html5_inline_video_quality_survey"))return!1;var b=g.Z(a.app);if(!b)return!1;var c=b.getVideoData();if(!c.La||!c.La.video||1080>c.La.video.xc||c.cC)return!1;var d=/^qsa/.test(c.clientPlaybackNonce),e="r";0<=c.La.id.indexOf(";")&&(d=/^[a-p]/.test(c.clientPlaybackNonce),e="x");a.ca("html5_inline_video_quality_survey_always")&&(d=!0,e="a");return d?(b.gb("iqss",e,!0),!0):!1};
zxa=function(a,b){return Te(this,function d(){var e,f,h,l;return Aa(d,function(m){if(1==m.u){e=KU();var n=a.T(),p={context:MT(a)};n=n.embedConfig;var r=a.videoId,t=a.playlistId?a.playlistId:b.list;if(t){t={playlistId:t};var w=a.playlistIndex;t.playlistIndex=String(w?w:1);t.videoId=r?r:"";n&&(t.serializedThirdPartyEmbedConfig=n);p.playlistRequest=t}else b.playlist?(r={templistVideoIds:b.playlist.toString().split(",")},n&&(r.serializedThirdPartyEmbedConfig=n),p.playlistRequest=r):r&&(r={videoId:r},
n&&(r.serializedThirdPartyEmbedConfig=n),p.singleVideoRequest=r);f=p;h=BU(yxa);return sa(m,OG(e,f,h),2)}l=m.B;a.Ng({raw_embedded_player_response:l},!1);m.u=0})})};
g.xX=function(a,b){return uw(a.info.mimeType)?b?Yt(a.info)===b:!0:!1};
g.Axa=function(a,b){if(null!=a.ma&&g.gD(b.T())&&!a.ma.isManifestless&&null!=a.ma.u.rawcc)return!0;if(!a.Bg())return!1;var c=!!a.ma&&a.ma.isManifestless&&Object.values(a.ma.u).some(function(e){return g.xX(e,"386")}),d=!!a.ma&&!a.ma.isManifestless&&Gga(a.ma);
return c||d};
yX=function(a,b){g.B.call(this);this.J=a;this.F=b;this.u={};this.B={};this.C=null;this.Cc=new Map;this.D=g.Q(a.T().experiments,"web_player_defer_modules")};
g.zX=function(a){return a.Cc.get("captions")};
Exa=function(a,b){switch(b){case "ad":return AX(a);case "annotations_module":return a.PF();case "attribution":var c=a.J.T();return g.Q(c.experiments,"web_player_show_music_in_this_video")&&"desktop-polymer"===c.playerStyle;case "creatorendscreen":return c=a.J.T(),"3"===c.controlsType?c=!1:"creator-endscreen-editor"===c.playerStyle?c=!0:(c=a.J.getVideoData(),c=!!c&&(!!g.eG(c)||!!g.fG(c))),c;case "embed":return g.FC(a.J.T());case "endscreen":return g.Bxa(a);case "fresca":return a.Fy();case "heartbeat":return a.Gy();
case "kids":return WC(a.J.T());case "remote":return a.J.T().ce;case "miniplayer":return a.J.T().showMiniplayerUiWhenMinimized;case "music":return g.OC(a.J.T());case "captions":return c=a.J.getVideoData(),!!c.yo||!!c.captionTracks.length||g.Axa(c,a.J);case "unplugged":return g.VC(a.J.T());case "ux":return a.J.T().Qa;case "visualizer":return g.Cxa(a);case "webgl":return Dxa(a);case "ypc":return a.mq();case "ypc_clickwrap":return c=a.J.getVideoData(),c.jo&&!c.Yw;case "yto":return!!a.J.getVideoData().Pe.includes("yto");
default:return g.Er(Error("Module descriptor "+b+" does not match")),!1}};
BX=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;var f=a.Cc.get(b);if(!f||e)if(c||(c=function(){BX(a,b,void 0,d,e)}),f=f||Fxa(a,b,c,Exa(a,b)))a.Cc.set(b,f),f.create(),d&&a.J.va("onApiChange")};
Gxa=function(a){a.D&&(BX(a,"endscreen"),a.Iv(),BX(a,"creatorendscreen",void 0,!0))};
g.Bxa=function(a){var b=a.J.T();if(oD(b)||b.G||!b.qb&&!b.Yc)return!1;var c=a.J.getPresentingPlayerType();if(2===c)return!1;if(3===c)return g.Q(b.experiments,"desktop_enable_autoplay");a=a.J.getVideoData();if(!a)return!1;c=!a.isLiveDefaultBroadcast||g.Q(b.experiments,"allow_poltergust_autoplay");c=a.isLivePlayback&&(!g.Q(b.experiments,"allow_live_autoplay")||!c);b=a.isLivePlayback&&g.Q(b.experiments,"allow_live_autoplay_on_mweb");return!c||b};
g.fX=function(a){return a.Cc.get("webgl")};
Dxa=function(a){var b=a.J.getVideoData(),c=a.J.T().experiments,d=g.bk(),e=g.Q(c,"enable_spherical_kabuki");a=g.mD(a.J.T());if(b.mj())return d||e||a||g.Q(c,"html5_enable_spherical");if(b.qj())return a||d||e||g.Q(c,"html5_enable_spherical");if(b.rj())return a||d||g.Q(c,"html5_enable_spherical3d");if(b.cn())return a||g.Q(c,"html5_enable_anaglyph3d")||!1;d=b.La&&b.La.video&&jw(b.La.video);return a&&!g.UF(b)&&!b.isVisualizerEligible&&!d&&(g.Q(c,"enable_webgl_noop")||g.Q(c,"html5_enable_bicubicsharp")||
g.Q(c,"html5_enable_smartsharp"))};
Hxa=function(a){g.Q(a.J.T().experiments,"web_player_ux_module_wait")&&a.Cc.get("ux")&&g.pX(a.J,"ux")};
Ixa=function(a){Hxa(a);BX(a,"ux",void 0,!0)};
AX=function(a){if(a=a.J.getVideoData(1).getPlayerResponse())if(a=a.adPlacements)for(var b=0;b<a.length;b++)if(a[b].adPlacementRenderer)return!0;return!1};
g.Cxa=function(a){var b=a.J.T();return a.J.getVideoData().isVisualizerEligible&&nD(b)&&g.Q(b.experiments,"web_player_music_visualizer")&&"desktop-polymer"===b.playerStyle&&g.mD(b)&&!(g.kr&&!g.Yd(42))};
Fxa=function(a,b,c,d){try{if(d){var e=g.CX[b];if(e)return new e(a.J);"creatorendscreen"===b?Jxa(a,"annotations_module",c):Jxa(a,b,c)}else g.pX(a.J,b)}catch(f){g.pX(a.J,b),g.Er(f)}return null};
DX=function(a,b,c){for(var d=g.q(a.Cc),e=d.next();!e.done;e=d.next()){var f=g.q(e.value);e=f.next().value;(f=f.next().value)&&(c||f.Eh(b))&&(g.ag(f),a.Cc["delete"](e))}};
EX=function(a){return a.Cc.get("ad")};
FX=function(a){if(WC(a.J.T()))return a.Cc.get("kids")};
g.cX=function(a){if(a.J.T().ce)return a.Cc.get("remote")};
GX=function(a){if(g.VC(a.J.T()))return a.Cc.get("unplugged")};
nxa=function(a){if(a.J.T().Qa)return a.Cc.get("ux")};
g.hX=function(a){return a.Cc.get("annotations_module")};
HX=function(a){return a.Cc.get("creatorendscreen")};
kX=function(a){return a.Cc.get("fresca")};
Jxa=function(a,b,c){if(a.F){for(var d=a.F+b+".js",e=document.getElementsByTagName("SCRIPT"),f=!1,h,l=0;l<e.length;l++){var m=e[l];if(m.src===d||m.getAttribute("data-original-src")===d)h=m}h||(h=g.Ee("SCRIPT"),h.setAttribute("data-original-src",d),f=!0);var n=function(){a.la()||c.call(a)},p=function(){a.la()||g.pX(a.J,b)},r=h.onload;
h.onload=function(y){lm(n);r&&r.apply(window,[y])};
var t=h.onerror;h.onerror=function(y){if(.01>Math.random()){var D=new Oq("Unable to load player module",b+".js from "+d+" on "+(document.location&&document.location.origin)+".");g.Er(D)}lm(p);t&&t(y)};
var w=h,x=w.onreadystatechange;w.onreadystatechange=function(y){switch(w.readyState){case "loaded":case "complete":lm(n)}x&&x(y)};
f&&((e=a.J.T().cspNonce)&&h.setAttribute("nonce",e),g.jd(h,g.jg(d)),e=document.getElementsByTagName("HEAD")[0]||document.body,e.insertBefore(h,e.firstChild),g.$f(a,function(){h.parentNode&&h.parentNode.removeChild(h);g.CX[b]=null;"annotations_module"===b&&(g.CX.creatorendscreen=null)}))}};
JX=function(a,b,c,d){g.O.call(this);var e=this;this.target=a;this.kr=b;this.B=0;this.G=!1;this.D=new g.ee(NaN,NaN);this.u=new g.nR(this);this.ba=this.C=this.K=null;g.C(this,this.u);b=d?4E3:3E3;this.N=new g.F(function(){IX(e,1,!1)},b,this);
g.C(this,this.N);this.W=new g.F(function(){IX(e,2,!1)},b,this);
g.C(this,this.W);this.X=new g.F(function(){IX(e,512,!1)},b,this);
g.C(this,this.X);this.Y=c&&0<c.Zk.length?5E3:3E3;d||(this.C=this.u.R(a,"mouseover",this.Ht),this.u.R(a,"mousemove",this.kM),this.u.R(a,"mouseleave",this.lM));ng?this.u.R(a,"keypress",this.ZJ):this.u.R(a,"focusin",this.LI);this.F=this.u.R(a,"mousedown",this.ED);this.P=this.u.R(a,"touchstart",this.fG,void 0,!0);IX(this,640,!0)};
Kxa=function(a){IX(a,4,!1);a.K&&(a.u.Db(a.K),a.K=null,a.C=a.u.R(a.target,"mouseover",a.Ht));a.C&&(a.u.Db(a.C),a.C=a.u.R(a.target,"mouseover",a.Ht))};
IX=function(a,b,c){a.la();var d=!a.B;c?(a.B|=b,b&1&&a.N.start(),b&2&&a.W.start()):(a.B&=~b,b&1&&a.N.stop(),b&2&&a.W.stop(),b&512&&a.X.stop());a.B&512&&!(a.B&128)&&a.X.Gb(a.Y);b=!a.B;d!==b&&a.V("autohideupdate",b)};
g.KX=function(a){g.V.call(this,{I:"button",ha:["ytp-large-play-button","ytp-button"],U:{"aria-label":"\u518d\u751f"},S:["{{largePlayButtonChildren}}"]});this.api=a;this.R(a,"videodatachange",this.na);this.na()};
LX=function(a){var b=a.T(),c=["ytp-cued-thumbnail-overlay"];(g.Q(b.experiments,"web_player_contain_thumbnail")||b.G)&&c.push("ytp-exp-contain-thumbnail");g.V.call(this,{I:"div",ha:c,S:[{I:"div",L:"ytp-cued-thumbnail-overlay-image"}]});b=this.ga("ytp-cued-thumbnail-overlay");c=new g.KX(a);g.C(this,c);c.fa(b);this.C=new g.nR(this);g.C(this,this.C);this.api=a;this.F=this.ga("ytp-cued-thumbnail-overlay-image");this.D=c;this.B=new g.fO(this,250);g.C(this,this.B);this.u=new g.F(this.na,0,this);g.C(this,
this.u);this.na();this.R(a,"appresize",this.Sa);this.R(a,"presentingplayerstatechange",this.sL);this.R(a,"ypcStateChanged",this.aQ);HC(a.T())&&this.R(a,"videoplayerreset",this.rL)};
Lxa=function(a){var b=!a.T().de&&3!==a.getPresentingPlayerType();return a.isFullscreen()||b};
g.MX=function(a,b,c,d){var e=a.currentTarget;if((void 0===c||!c)&&g.WO(a))return g.fp(a),!0;b.pauseVideo();a=e.getAttribute("href");g.PK(a,d,!0);return!1};
g.NX=function(a,b,c){if(cD(b.T())&&2!==b.getPresentingPlayerType()){if(g.WO(c))return b.isFullscreen()&&!b.T().externalFullscreen&&b.toggleFullscreen(),g.fp(c),!0}else{var d=g.WO(c);d&&b.pauseVideo();g.PK(a,void 0,!0);d&&(g.QK(a),g.fp(c))}return!1};
OX=function(){return{I:"div",L:"ytp-spinner-container",S:[{I:"div",L:"ytp-spinner-rotator",S:[{I:"div",L:"ytp-spinner-left",S:[{I:"div",L:"ytp-spinner-circle"}]},{I:"div",L:"ytp-spinner-right",S:[{I:"div",L:"ytp-spinner-circle"}]}]}]}};
PX=function(a){if(document.createRange){var b=document.createRange();b&&(b.selectNodeContents(a),a=window.getSelection())&&(a.removeAllRanges(),a.addRange(b))}};
g.QX=function(a,b,c){a=a.T();return g.Q(a.experiments,"desktop_player_button_tooltip_with_shortcut")&&!a.be?g.sK("$DESCRIPTION\uff08$SHORTCUT\uff09",{DESCRIPTION:b,SHORTCUT:c}):b};
g.RX=function(a){g.V.call(this,{I:"div",ha:["ytp-error"],U:{role:"alert"},S:[{I:"div",L:"ytp-error-content",S:[{I:"div",L:"ytp-error-icon-container",S:[{I:"svg",U:{fill:"#fff",viewBox:"0 0 48 48"},S:[{I:"path",U:{d:"M0 0h48v48H0V0z",fill:"none"}},{I:"path",U:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z","fill-opacity":"0.7"}}]}]},{I:"div",L:"ytp-error-content-wrap",
S:[{I:"div",L:"ytp-error-content-wrap-reason",Z:"{{content}}"},{I:"div",L:"ytp-error-content-wrap-subreason",Z:"{{subreason}}"}]}]}]});this.api=a;this.keys=[]};
g.SX=function(a){a=a.split(Mxa);for(var b=[],c=0;c<a.length;c+=3){var d=a[c++].split("\n");b.push(d[0]);for(var e=1;e<d.length;e++)b.push({I:"br"}),b.push(d[e]);c<a.length&&b.push({I:"a",U:{href:a[c],target:a[c+1]},Z:a[c+2]})}return{I:"span",S:b}};
UX=function(a,b,c,d,e,f,h){d=void 0===d?!1:d;e=void 0===e?!1:e;h=void 0===h?!0:h;e||(e=a.api.T().B);a=a.api.getVideoData();b=g.sK(g.TX[b]||"",d?{CPN:a.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);d=[];f&&d.push({I:"h2",Z:f});d.push(b[0]);h&&d.push({I:"br"});d.push({I:"a",U:{href:c,target:e?"_blank":null},Z:b[2]});d.push(b[4]);return{I:"span",S:d}};
Nxa=function(a,b){for(var c=a.element.getElementsByTagName("a"),d=0;d<c.length;d++){var e=a.R(c[d],"click",b);a.keys.push(e)}};
Oxa=function(a){for(var b=0;b<a.keys.length;b++)a.Db(a.keys[b]);a.keys=[]};
WX=function(a){g.nR.call(this);this.J=a;this.u=new Set;this.mediaSession=navigator.mediaSession;VX(this,"play",function(){a.playVideo()});
VX(this,"pause",function(){a.pauseVideo()});
VX(this,"seekbackward",function(){a.seekBy(-5*a.getPlaybackRate())});
VX(this,"seekforward",function(){a.seekBy(5*a.getPlaybackRate())});
this.R(a,"videodatachange",this.Na);this.R(a,"presentingplayerstatechange",this.Kf);this.Na()};
VX=function(a,b,c){a.mediaSession.setActionHandler(b,c?function(){c()}:null);
a.u.add(b)};
XX=function(a){g.V.call(this,{I:"div",L:"ytp-paid-content-overlay",U:{"aria-live":"assertive","aria-atomic":"true"}});this.J=a;this.D=new g.V({I:"div",ha:["ytp-button","ytp-paid-content-overlay-text"]});this.videoId=null;this.C=!1;this.B=new g.fO(this.D,250,!1,100);this.Bc=this.u=null;g.C(this,this.D);this.D.fa(this.element);g.C(this,this.B);this.R(a,"videodatachange",this.Na);this.R(a,"presentingplayerstatechange",this.Vb)};
Pxa=function(a,b){var c=VF(b),d=WF(b);a.u?b.videoId&&b.videoId!==a.videoId&&(a.u.Xf(),a.videoId=b.videoId,a.C=!!d):c&&d&&(a.u=new g.F(a.fb,d,a),g.C(a,a.u),g.Me(g.qe("ytp-paid-content-overlay-text",a.element),c))};
Qxa=function(a,b){a.u&&(g.U(b,8)&&a.C?(a.C=!1,a.tc(),a.u.start()):g.U(b,2)&&a.videoId&&(a.videoId=null))};
ZX=function(a){g.V.call(this,{I:"div",L:"ytp-spinner",S:[OX(),{I:"div",L:"ytp-spinner-message",Z:"\u3059\u3050\u306b\u518d\u751f\u304c\u958b\u59cb\u3057\u306a\u3044\u5834\u5408\u306f\u3001\u30c7\u30d0\u30a4\u30b9\u3092\u518d\u8d77\u52d5\u3057\u3066\u304f\u3060\u3055\u3044\u3002"}]});this.api=a;this.message=this.ga("ytp-spinner-message");this.u=new g.F(this.show,500,this);g.C(this,this.u);this.R(a,"presentingplayerstatechange",this.B);this.R(a,"onFrescaStateChange",this.C);this.R(a,"playbackstalledatstart",
this.D);YX(this,g.uJ(a))};
YX=function(a,b){if(g.U(b,128))var c=0;else!(c=g.U(b,16))&&(c=g.U(b,1))&&(c=kX(g.ZW(a.api)),c=!(c&&c.loaded));c?a.u.start():a.hide()};
g.$X=function(a,b,c,d){d=void 0===d?!1:d;g.wN.call(this,b);var e=this;this.J=a;this.X=d;this.K=new g.nR(this);this.W=new g.fO(this,c,!0,void 0,void 0,function(){e.u&&(e.u.getAttribute("aria-haspopup"),e.u.setAttribute("aria-expanded","true"),g.Q(e.J.T().experiments,"embeds_enable_new_playlist_killswitch")?document.activeElement&&g.Le(e.u,document.activeElement)&&e.focus():e.focus())});
g.C(this,this.K);g.C(this,this.W)};
Rxa=function(a){a.u&&(document.activeElement&&g.Le(a.element,document.activeElement)&&(Pe(a.u),a.u.focus()),a.u.removeAttribute("aria-expanded"),a.u=void 0);g.qs(a.K);a.N=void 0};
aY=function(a,b,c){a.ff()?a.fb():a.tc(b,c)};
bY=function(a){var b=g.Vz(a.T().experiments,"mweb_muted_autoplay_animation"),c=[],d=[{I:"div",ha:["ytp-unmute-icon"],S:[{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",rb:!0,L:"ytp-svg-fill",U:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}]},
{I:"div",ha:["ytp-unmute-text"],Z:"\u30df\u30e5\u30fc\u30c8\u3092\u89e3\u9664"}];"none"!==b&&(c.push("ytp-unmute-animated"),d.push({I:"div",ha:["ytp-unmute-box"],S:[]}),"expand"===b?c.push("ytp-unmute-expand"):"shrink"===b&&c.push("ytp-unmute-shrink"));g.$X.call(this,a,{I:"button",ha:["ytp-unmute","ytp-popup","ytp-button"].concat(c),S:[{I:"div",L:"ytp-unmute-inner",S:d}]},100);this.seen=this.B=!1;this.api=a;g.rX(this.api,this.element,this,51663);this.R(a,"onMutedAutoplayChange",this.Rp,this);this.R(a,
"presentingplayerstatechange",this.Kf);this.wa("click",this.onClick,this);a=a.isMutedByMutedAutoplay()&&!g.FC(this.api.T());g.vN(this,a);a&&Sxa(this);this.C=a};
Txa=function(a){a.B||(a.B=!0,g.sX(a.api,a.element))};
Sxa=function(a){a.seen||(a.seen=!0,g.EN(a.api,a.element,!0))};
g.dY=function(a){g.nR.call(this);var b=this;this.api=a;this.Ey=!1;this.li=null;this.ur=!1;this.qd=null;this.Hv=this.uu=!1;this.az=this.cz=null;this.yC=NaN;this.Zy=this.Ho=!1;this.Mp=0;this.Vu=[];var c=a.T(),d=g.LG(a);this.nA=new g.F(this.UM,0,this);g.C(this,this.nA);g.OC(c)||(this.Lm=new LX(a),g.C(this,this.Lm),g.uP(a,this.Lm.element,4));if(Uxa()){var e=new ZX(a);g.C(this,e);e=e.element;g.uP(a,e,4)}var f=a.getVideoData();this.zc=new JX(d,function(l){return b.kr(l)},f,c.nd);
g.C(this,this.zc);this.zc.subscribe("autohideupdate",this.xh,this);var h=new XX(a);g.C(this,h);g.uP(a,h.element,4);this.yu=new bY(a);g.C(this,this.yu);g.uP(this.api,this.yu.element,2);this.Iw=this.api.isMutedByMutedAutoplay();this.R(a,"onMutedAutoplayChange",this.Rp);this.tu=new g.F(this.Wn,200,this);g.C(this,this.tu);this.ix=f.videoId;this.GF=new g.F(function(){b.Mp=0},350);
g.C(this,this.GF);this.yr=new g.F(function(){b.Zy||cY(b)},350,this);
g.C(this,this.yr);f=a.getRootNode();f.setAttribute("aria-label","YouTube \u52d5\u753b\u30d7\u30ec\u30fc\u30e4\u30fc");switch(c.color){case "white":g.H(f,"ytp-color-white")}g.OC(c)&&g.H(f,"ytp-music-player");!g.Q(a.T().experiments,"disable_mediasession2")&&navigator.mediaSession&&!navigator.mediaSession.metadata&&navigator.mediaSession.setActionHandler&&(f=new WX(a),g.C(this,f));this.R(a,"appresize",this.Sa);this.R(a,"presentingplayerstatechange",this.Kf);this.R(a,"videodatachange",this.Na);this.R(a,
"videoplayerreset",this.BO);this.R(a,"autonavvisibility",function(){b.Mj()});
this.R(a,"sizestylechange",function(){b.Mj()});
this.R(a,"onFrescaStateChange",function(){b.og()});
this.R(d,"click",this.cP,this);this.R(d,"dblclick",this.dP,this);c.ka&&(this.R(d,"gesturechange",this.eP,this),this.R(d,"gestureend",this.fP,this));this.Ek=[d.C];this.Lm&&this.Ek.push(this.Lm.element);e&&this.Ek.push(e)};
eY=function(a,b){if(!b)return!1;var c=a.api.app.F;if(c.Bk()&&(c=c.Ma())&&g.Le(c,b))return c.controls;for(c=0;c<a.Ek.length;c++)if(g.Le(a.Ek[c],b))return!1;return g.vn(b,"ytp-player-content")||g.vn(b,"html5-endscreen")||b===a.api.getRootNode()?!1:!0};
Vxa=function(a){return!!(2===a.api.getPresentingPlayerType()&&g.LG(a.api).G&&a.api.T().u&&fY&&11<=sG)};
gY=function(a,b){return!eY(a,cp(b))&&g.WO(b)};
cY=function(a){a.zc.Kj();if(g.Q(a.api.T().experiments,"web_player_touch_mode_improvements")&&a.uu&&a.Hv)a.Hv=!1;else if(!a.api.T().Y&&!a.gj()){var b=g.uJ(a.api);g.U(b,2)&&aX(a.api)||a.mm(b);if(!a.api.T().ka||b.isCued()||g.U(b,1024)){var c=a.api.app.Pa;g.zq("embedsShouldRequestStorageAccessResult",{result:!!c,returnsUndefined:void 0===c});var d=g.U(b,2048);c&&(b.isCued()||d)?(g.zq("embedsRequestStorageAccessState",{isCued:b.isCued(),isAutoplayBlocked:d}),a.requestStorageAccess()):(!c||b.isCued()&&
d||g.zq("embedsRequestStorageAccessFailedState",{state:b.state}),a.Wn())}else a.tu.isActive()?(a.ys(),a.tu.stop()):a.tu.start()}};
Wxa=function(a,b){if(g.WO(b)&&a.api.isMutedByMutedAutoplay()){a.api.unMute();2===a.api.getPresentingPlayerType()&&a.api.playVideo();var c=g.uJ(a.api);!g.U(c,4)||g.U(c,8)||g.U(c,2)||a.Wn();return!0}return!1};
Xxa=function(a,b,c){a.api.isFullscreen()?c<1-b&&a.api.toggleFullscreen():c>1+b&&a.api.toggleFullscreen()};
Uxa=function(){var a=Vj()&&67<=Sj();return!Uj("tizen")&&!DC&&!a&&!0};
hY=function(a){g.V.call(this,{I:"button",ha:["ytp-button","ytp-back-button"],S:[{I:"div",L:"ytp-arrow-back-icon",S:[{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 -12 36 36",width:"100%"},S:[{I:"path",U:{d:"M0 0h24v24H0z",fill:"none"}},{I:"path",rb:!0,U:{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",fill:"#fff"}}]}]}]});this.J=a;g.vN(this,a.T().showBackButton);this.wa("click",this.onClick)};
g.iY=function(a){g.V.call(this,{I:"div",S:[{I:"div",L:"ytp-bezel-text-wrapper",S:[{I:"div",L:"ytp-bezel-text",Z:"{{title}}"}]},{I:"div",L:"ytp-bezel",U:{role:"status","aria-label":"{{label}}"},S:[{I:"div",L:"ytp-bezel-icon",Z:"{{icon}}"}]}]});this.J=a;this.B=new g.F(this.show,10,this);this.u=new g.F(this.hide,500,this);g.C(this,this.B);g.C(this,this.u);this.hide()};
kY=function(a,b,c){if(0>=b){c=XN();b="\u30df\u30e5\u30fc\u30c8\u6e08\u307f";var d=0}else c=c?{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",rb:!0,U:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",rb:!0,U:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z",
fill:"#fff"}}]},d=Math.floor(b),b=d+"\u97f3\u91cf";jY(a,c,b,d+"%")};
Yxa=function(a,b){var c=b?{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",rb:!0,L:"ytp-svg-fill",U:{d:"M 17,24 V 12 l -8.5,6 8.5,6 z m .5,-6 8.5,6 V 12 l -8.5,6 z"}}]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",rb:!0,L:"ytp-svg-fill",U:{d:"M 10,24 18.5,18 10,12 V 24 z M 19,12 V 24 L 27.5,18 19,12 z"}}]},d=a.J.getPlaybackRate(),e=g.sK("\u901f\u5ea6: $RATE",{RATE:String(d)});jY(a,c,e,d+"x")};
jY=function(a,b,c,d){d=void 0===d?"":d;a.xa("label",void 0===c?"":c);a.xa("icon",b);a.u.Xf();a.B.start();a.xa("title",d);g.I(a.element,"ytp-bezel-text-hide",!d)};
lY=function(a,b,c){g.V.call(this,{I:"div",L:"ytp-cards-teaser",S:[{I:"div",L:"ytp-cards-teaser-box"},{I:"div",L:"ytp-cards-teaser-text",S:[{I:"span",L:"ytp-cards-teaser-label",Z:"{{text}}"}]}]});var d=this;this.J=a;this.W=b;this.Wh=c;this.D=new g.fO(this,250,!1,250);this.u=null;this.K=new g.F(this.jO,300,this);this.G=new g.F(this.iO,2E3,this);this.F=[];this.B=null;this.N=new g.F(function(){d.element.style.margin="0"},250);
this.C=null;g.C(this,this.D);g.C(this,this.K);g.C(this,this.G);g.C(this,this.N);this.R(c.element,"mouseover",this.lD);this.R(c.element,"mouseout",this.kD);this.R(a,"cardsteasershow",this.xP);this.R(a,"cardsteaserhide",this.fb);this.R(a,"cardstatechange",this.rG);this.R(a,"presentingplayerstatechange",this.rG);this.R(a,"appresize",this.kz);this.R(a,"onShowControls",this.kz);this.R(a,"onHideControls",this.lI);this.wa("click",this.ZQ);this.wa("mouseenter",this.oL)};
nY=function(a,b,c){g.V.call(this,{I:"button",ha:["ytp-button","ytp-cards-button"],U:{"aria-label":"\u30ab\u30fc\u30c9\u3092\u8868\u793a","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.FC(a.T()))},S:[{I:"span",L:"ytp-cards-button-icon-default",S:[{I:"div",L:"ytp-cards-button-icon",S:[{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",rb:!0,L:"ytp-svg-fill",U:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]},
{I:"div",L:"ytp-cards-button-title",Z:"\u60c5\u5831"}]},{I:"span",L:"ytp-cards-button-icon-shopping",S:[{I:"div",L:"ytp-cards-button-icon",S:[{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",L:"ytp-svg-shadow",U:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{I:"path",L:"ytp-svg-fill",U:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z",
"fill-opacity":"1"}},{I:"path",L:"ytp-svg-shadow-fill",U:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{I:"div",
L:"ytp-cards-button-title",Z:"\u30b7\u30e7\u30c3\u30d4\u30f3\u30b0"}]}]});this.J=a;this.D=b;this.C=c;this.u=null;this.B=new g.fO(this,250,!0,100);g.C(this,this.B);g.I(this.C,"ytp-show-cards-title",g.FC(a.T()));this.hide();this.wa("click",this.onClicked);this.wa("mouseover",this.HN);mY(this,!0)};
mY=function(a,b){b?a.u=g.oY(a.D.Ib(),a.element):(a.u=a.u,a.u(),a.u=null)};
qY=function(a,b){g.V.call(this,{I:"button",ha:[pY.BUTTON,pY.TITLE_NOTIFICATIONS],U:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},S:[{I:"div",L:pY.TITLE_NOTIFICATIONS_ON,U:{title:"\u65b0\u7740\u52d5\u753b\u306b\u95a2\u3059\u308b\u901a\u77e5\u304c\u5c4a\u304b\u306a\u3044\u3088\u3046\u306b\u3057\u307e\u3059","aria-label":"\u767b\u9332\u30c1\u30e3\u30f3\u30cd\u30eb\u3092\u901a\u77e5"},S:[g.UN()]},{I:"div",L:pY.TITLE_NOTIFICATIONS_OFF,U:{title:"\u65b0\u7740\u52d5\u753b\u306b\u95a2\u3059\u308b\u901a\u77e5\u304c\u5c4a\u304d\u307e\u3059",
"aria-label":"\u767b\u9332\u30c1\u30e3\u30f3\u30cd\u30eb\u3092\u901a\u77e5"},S:[{I:"svg",U:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},S:[{I:"path",U:{d:"M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}]}]});this.api=a;this.channelId=b;this.u=!1;g.rX(a,this.element,this,36927);this.wa("click",this.onClick,this);
this.xa("pressed",!1);this.xa("label","\u65b0\u7740\u52d5\u753b\u306b\u95a2\u3059\u308b\u901a\u77e5\u304c\u5c4a\u304d\u307e\u3059")};
Zxa=function(a,b){a.u=b;a.element.classList.toggle(pY.NOTIFICATIONS_ENABLED,a.u);if(g.Q(a.api.T().experiments,"web_player_innertube_subscription_update")){var c=a.api.getVideoData();if(c)if(c=b?c.Ty:c.Sy){var d=MG(a.api.app);d?CU(d,c):M(Error("No innertube service available when updating notification preferences."))}else M(Error("No update preferences command available."));else M(Error("No video data when updating notification preferences."))}else g.lq("/subscription_ajax?action_update_subscription_preferences=1",
{method:"POST",dc:{channel_id:a.channelId,receive_all_updates:!a.u}})};
$xa=function(a,b,c){return b?a.N+"subscription_ajax":c?"/subscription_service":""};
g.sY=function(a,b,c,d,e,f,h,l,m,n,p,r,t){t=void 0===t?null:t;f&&(a=a.charAt(0)+a.substring(1).toLowerCase(),c=c.charAt(0)+c.substring(1).toLowerCase());if("0"===b||"-1"===b)b=null;if("0"===d||"-1"===d)d=null;var w=r.T();if(p){c={href:p,"aria-label":"\u30c1\u30e3\u30f3\u30cd\u30eb\u767b\u9332"};if(g.LC(w)||g.NC(w))c.target=w.F;g.V.call(this,{I:"div",ha:["ytp-button","ytp-sb"],S:[{I:"a",L:"ytp-sb-subscribe",U:c,S:[{I:"div",L:"ytp-sb-text",S:[{I:"div",L:"ytp-sb-icon"},a]},b?{I:"div",L:"ytp-sb-count",
Z:b}:""]}]});f&&g.H(this.element,"ytp-sb-classic");this.channelId=h;this.u=t}else{p=w.userDisplayName&&g.LC(w)&&!g.Q(w.experiments,"subscribe_tooltipkillswitch");g.V.call(this,{I:"div",ha:["ytp-button","ytp-sb"],S:[{I:"div",L:"ytp-sb-subscribe",U:p?{title:g.sK("$USER_NAME \u3068\u3057\u3066\u30c1\u30e3\u30f3\u30cd\u30eb\u767b\u9332\u3059\u308b",{USER_NAME:w.userDisplayName}),"aria-label":"\u30c1\u30e3\u30f3\u30cd\u30eb\u767b\u9332","data-tooltip-image":pD(w),"data-tooltip-opaque":String(g.FC(w)),
tabindex:"0",role:"button"}:{"aria-label":"\u30c1\u30e3\u30f3\u30cd\u30eb\u767b\u9332"},S:[{I:"div",L:"ytp-sb-text",S:[{I:"div",L:"ytp-sb-icon"},a]},b?{I:"div",L:"ytp-sb-count",Z:b}:""]},{I:"div",L:"ytp-sb-unsubscribe",U:p?{title:g.sK("$USER_NAME \u3067\u30c1\u30e3\u30f3\u30cd\u30eb\u767b\u9332\u6e08\u307f",{USER_NAME:w.userDisplayName}),"aria-label":"\u30c1\u30e3\u30f3\u30cd\u30eb\u767b\u9332\u3092\u89e3\u9664","data-tooltip-image":pD(w),"data-tooltip-opaque":String(g.FC(w)),tabindex:"0",role:"button"}:
{"aria-label":"\u30c1\u30e3\u30f3\u30cd\u30eb\u767b\u9332\u3092\u89e3\u9664"},S:[{I:"div",L:"ytp-sb-text",S:[{I:"div",L:"ytp-sb-icon"},c]},d?{I:"div",L:"ytp-sb-count",Z:d}:""]}]});var x=this;this.channelId=h;this.u=t;var y=this.ga("ytp-sb-subscribe"),D=this.ga("ytp-sb-unsubscribe");f&&g.H(this.element,"ytp-sb-classic");if(e){l&&g.H(this.element,"ytp-sb-subscribed");var E=function(){a:{var L=x.channelId;if(m||n){var J=r.T();var Ha={c:L};if(g.Q(J.experiments,"embeds_botguard_with_subscribe_killswitch"))Ha=
"";else{var pa;Mr.Fd()&&(pa=qsa(Ha));Ha=pa||""}if(g.Q(J.experiments,"web_player_innertube_subscription_update")){J=r.getVideoData();if(!J){M(Error("No video data available when updating subscription."));break a}J=J.subscribeCommand;if(!J){M(Error("No subscribe command in videoData."));break a}pa=MG(r.app);if(!pa){M(Error("No innertube service available when updating subscriptions."));break a}CU(pa,J,{botguardResponse:Ha,feature:m})}else g.lq($xa(J,!!m,!!n),m?{method:"POST",Mh:{action_create_subscription_to_channel:1,
c:L},dc:{feature:m,silo_name:null,r2b:Ha},withCredentials:!0}:n?{method:"POST",Mh:{action_subscribe:1},dc:{channel_ids:L,itct:n}}:{});r.va("SUBSCRIBE",L)}}D.focus();D.removeAttribute("aria-hidden");y.setAttribute("aria-hidden","true")},G=function(){var L=x.channelId;
if(m||n){var J=r.T();g.Q(J.experiments,"web_player_innertube_subscription_update")?(J=r.getVideoData(),CU(MG(r.app),J.unsubscribeCommand,{feature:m})):g.lq($xa(J,null!=m,null!=n),m?{method:"POST",Mh:{action_remove_subscriptions:1},dc:{c:L,silo_name:null,feature:m},withCredentials:!0}:n?{method:"POST",Mh:{action_unsubscribe:1},dc:{channel_ids:L,itct:n}}:{});r.va("UNSUBSCRIBE",L)}y.focus();y.removeAttribute("aria-hidden");D.setAttribute("aria-hidden","true")};
this.R(y,"click",E);this.R(D,"click",G);this.R(y,"keypress",function(L){13===L.keyCode&&E(L)});
this.R(D,"keypress",function(L){13===L.keyCode&&G(L)});
this.R(r,"SUBSCRIBE",this.B);this.R(r,"UNSUBSCRIBE",this.C);this.u&&p&&(this.tooltip=this.u.Ib(),rY(this.tooltip),g.$f(this,g.oY(this.tooltip,y)),g.$f(this,g.oY(this.tooltip,D)))}else g.H(y,"ytp-sb-disabled"),g.H(D,"ytp-sb-disabled")}};
tY=function(a,b){g.V.call(this,{I:"div",L:"ytp-title-channel",S:[{I:"div",L:"ytp-title-beacon"},{I:"a",L:"ytp-title-channel-logo",U:{href:"{{channelLink}}",target:a.T().F,"aria-label":"{{channelLogoLabel}}"}},{I:"div",L:"ytp-title-expanded-overlay",U:{"aria-hidden":"{{flyoutUnfocusable}}"},S:[{I:"div",L:"ytp-title-expanded-heading",S:[{I:"h2",L:"ytp-title-expanded-title",S:[{I:"a",Z:"{{expandedTitle}}",U:{href:"{{channelTitleLink}}",target:a.T().F,tabIndex:"{{channelTitleFocusable}}"}}]},{I:"h3",
L:"ytp-title-expanded-subtitle",Z:"{{expandedSubtitle}}"}]}]}]});this.api=a;this.G=b;this.channel=this.ga("ytp-title-channel");this.u=this.ga("ytp-title-channel-logo");this.D=this.ga("ytp-title-expanded-overlay");this.C=this.B=this.subscribeButton=null;this.F=g.FC(this.api.T());g.rX(a,this.u,this,36925);this.F&&aya(this);this.R(a,"videodatachange",this.na);this.R(a,"videoplayerreset",this.na);this.na()};
aya=function(a){var b=a.api.T(),c=a.api.getVideoData();if(!b.ia){var d=b.he?null:Pwa(),e=new g.sY("\u767b\u9332",null,"\u767b\u9332\u6e08\u307f",null,!0,!1,c.pg,c.subscribed,"channel_avatar",null,d,a.api,a.G);a.subscribeButton=e;g.C(a,e);e.fa(a.D);g.rX(a.api,e.element,a,36926);e.hide();a.R(e.element,"click",function(){g.sX(a.api,e.element)});
var f=new qY(a.api,c.pg);a.B=f;g.C(a,f);f.fa(a.D);f.hide();a.R(a.api,"SUBSCRIBE",function(){c.Tn&&f.show()});
a.R(a.api,"UNSUBSCRIBE",function(){c.Tn&&(f.hide(),Zxa(f,!1))})}a.xa("flyoutUnfocusable","true");
a.xa("channelTitleFocusable","-1");b.u?a.R(a.u,"click",function(h){bya(a)&&(h.preventDefault(),a.isExpanded()?a.Ev():a.bw());g.sX(a.api,a.u)}):(a.R(a.channel,"mouseenter",a.bw),a.R(a.channel,"mouseleave",a.Ev),a.R(a.channel,"focusin",a.bw),a.R(a.channel,"focusout",function(h){a.channel.contains(h.relatedTarget)||a.Ev()}),a.R(a.u,"click",function(){g.sX(a.api,a.u)}));
a.C=new g.F(function(){a.isExpanded()&&(a.subscribeButton&&(a.subscribeButton.hide(),g.EN(a.api,a.subscribeButton.element,!1)),a.B&&(a.B.hide(),g.EN(a.api,a.B.element,!1)),a.channel.classList.remove("ytp-title-expanded"),a.channel.classList.add("ytp-title-show-collapsed"))},500);
g.C(a,a.C);a.R(a.channel,cya,function(){dya(a)});
a.R(a.api,"onHideControls",a.ry);a.R(a.api,"appresize",a.ry);a.R(a.api,"fullscreentoggled",a.ry)};
dya=function(a){a.channel.classList.remove("ytp-title-show-collapsed");a.channel.classList.remove("ytp-title-show-expanded")};
bya=function(a){var b=a.api.getPlayerSize();return a.F&&524<=b.width};
g.vY=function(a,b,c,d){g.wN.call(this,a);this.priority=b;c&&g.uY(this,c);d&&this.qc(d)};
g.wY=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{I:c?"a":"div",ha:b,U:a,S:[{I:"div",L:"ytp-menuitem-icon",Z:"{{icon}}"},{I:"div",L:"ytp-menuitem-label",Z:"{{label}}"},{I:"div",L:"ytp-menuitem-content",Z:"{{content}}"}]}};
xY=function(a,b){a.xa("icon",b)};
g.uY=function(a,b){a.xa("label",b)};
yY=function(a,b,c,d,e,f){var h={I:"div",L:"ytp-panel"};if(c){var l="ytp-panel-title";var m={I:"div",L:"ytp-panel-header",S:[{I:"button",ha:["ytp-button",l],S:[c]}]};if(e){var n="ytp-panel-options";m.S.unshift({I:"button",ha:["ytp-button",n],S:[d]})}h.S=[m]}d=!1;f&&(f={I:"div",L:"ytp-panel-footer",S:[f]},d=!0,h.S?h.S.push(f):h.S=[f]);g.wN.call(this,h);this.content=b;d&&h.S?b.fa(this.element,h.S.length-1):b.fa(this.element);this.TB=!1;this.LJ=d;c&&(c=this.ga(l),this.R(c,"click",this.XM),this.TB=!0,
e&&(n=this.ga(n),this.R(n,"click",e)));b.subscribe("size-change",this.aE,this);this.R(a,"fullscreentoggled",this.aE)};
g.zY=function(a,b,c,d,e,f){b=void 0===b?null:b;var h={role:"menu"};b&&(h.id=b);b=new g.wN({I:"div",L:"ytp-panel-menu",U:h});yY.call(this,a,b,c,d,e,f);this.menuItems=b;this.items=[];g.C(this,this.menuItems)};
g.AY=function(a){for(var b=g.q(a.items),c=b.next();!c.done;c=b.next())c.value.unsubscribe("size-change",a.Rx,a);a.items=[];g.Ge(a.menuItems.element);a.menuItems.V("size-change")};
eya=function(a,b){return b.priority-a.priority};
BY=function(a){var b=g.wY({"aria-haspopup":"true"});g.vY.call(this,b,a);this.wa("keydown",this.u)};
CY=function(a,b){a.element.setAttribute("aria-haspopup",String(b))};
g.DY=function(a,b){g.vY.call(this,g.wY({role:"menuitemcheckbox","aria-checked":"false"}),b,a,{I:"div",L:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.wa("click",this.onClick)};
EY=function(a,b,c,d){g.zY.call(this,a);this.J=a;this.Ua=c;this.Kb=d;this.nh=new g.DY("\u30eb\u30fc\u30d7\u518d\u751f",7);this.getVideoUrl=new BY(6);this.eh=new BY(5);this.Yg=new BY(4);this.ob=new BY(3);this.eq=new g.vY(g.wY({href:"{{href}}",target:this.J.T().F},void 0,!0),2,"\u518d\u751f\u306b\u95a2\u3059\u308b\u554f\u984c\u3092\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u3059\u308b");this.Jm=new g.wN({I:"div",ha:["ytp-copytext","ytp-no-contextmenu"],U:{draggable:"false",tabindex:"1"},
Z:"{{text}}"});this.LA=new yY(this.J,this.Jm);this.qk=null;g.C(this,this.nh);this.Nb(this.nh,!0);this.nh.wa("click",this.fQ,this);g.rX(a,this.nh.element,this.nh,28661);g.C(this,this.getVideoUrl);this.Nb(this.getVideoUrl,!0);this.getVideoUrl.wa("click",this.dQ,this);g.rX(a,this.getVideoUrl.element,this.getVideoUrl,28659);g.C(this,this.eh);this.Nb(this.eh,!0);this.eh.wa("click",this.eQ,this);g.rX(a,this.eh.element,this.eh,28660);g.C(this,this.Yg);this.Nb(this.Yg,!0);this.Yg.wa("click",this.cQ,this);
g.rX(a,this.Yg.element,this.Yg,28658);g.C(this,this.ob);this.Nb(this.ob,!0);this.ob.wa("click",this.bQ,this);g.C(this,this.eq);this.Nb(this.eq,!0);this.eq.wa("click",this.XO,this);b=new g.vY(g.wY(),1,"\u8a73\u7d30\u7d71\u8a08\u60c5\u5831");g.C(this,b);this.Nb(b,!0);b.wa("click",this.oP,this);g.C(this,this.Jm);this.Jm.wa("click",this.rN,this);g.C(this,this.LA);c=document.queryCommandSupported&&document.queryCommandSupported("copy");g.DB&&g.Yd(43)&&(c=!0);g.EB&&!g.Yd(41)&&(c=!1);c&&(this.qk=new g.V({I:"textarea",
L:"ytp-html5-clipboard",U:{readonly:""}}),g.C(this,this.qk),this.qk.fa(this.element));xY(this.nh,{I:"svg",U:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{I:"path",U:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});xY(this.ob,{I:"svg",U:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{I:"path",U:{"clip-rule":"evenodd",d:"M20 10V8H17.19C16.74 7.22 16.12 6.54 15.37 6.04L17 4.41L15.59 3L13.42 5.17C13.39 5.16 13.37 5.16 13.34 5.16C13.18 5.12 13.02 5.1 12.85 5.07C12.79 5.06 12.74 5.05 12.68 5.04C12.46 5.02 12.23 5 12 5C11.51 5 11.03 5.07 10.58 5.18L10.6 5.17L8.41 3L7 4.41L8.62 6.04H8.63C7.88 6.54 7.26 7.22 6.81 8H4V10H6.09C6.03 10.33 6 10.66 6 11V12H4V14H6V15C6 15.34 6.04 15.67 6.09 16H4V18H6.81C7.85 19.79 9.78 21 12 21C14.22 21 16.15 19.79 17.19 18H20V16H17.91C17.96 15.67 18 15.34 18 15V14H20V12H18V11C18 10.66 17.96 10.33 17.91 10H20ZM16 15C16 17.21 14.21 19 12 19C9.79 19 8 17.21 8 15V11C8 8.79 9.79 7 12 7C14.21 7 16 8.79 16 11V15ZM10 14H14V16H10V14ZM10 10H14V12H10V10Z",
fill:"white","fill-rule":"evenodd"}}]});xY(this.eq,{I:"svg",U:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{I:"path",U:{"clip-rule":"evenodd",d:"M2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22C6.48 22 2 17.52 2 12ZM13 16V18H11V16H13ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM8 10C8 7.79 9.79 6 12 6C14.21 6 16 7.79 16 10C16 11.28 15.21 11.97 14.44 12.64C13.71 13.28 13 13.90 13 15H11C11 13.17 11.94 12.45 12.77 11.82C13.42 11.32 14 10.87 14 10C14 8.9 13.1 8 12 8C10.9 8 10 8.9 10 10H8Z",
fill:"white","fill-rule":"evenodd"}}]});xY(b,joa());this.R(a,"loopchange",this.kE);this.R(a,"videodatachange",this.Na);fya(this);this.Dh(this.J.getVideoData())};
GY=function(a,b){var c=!1;if(a.qk){var d=a.qk.element;d.value=b;d.select();try{c=document.execCommand("copy")}catch(e){}}c?a.Ua.fb():(a.Jm.qc(b,"text"),g.FY(a.Ua,a.LA),PX(a.Jm.element),a.qk&&(a.qk=null,fya(a)));return c};
fya=function(a){var b=!!a.qk;g.uY(a.ob,b?"\u30c7\u30d0\u30c3\u30b0\u60c5\u5831\u3092\u30b3\u30d4\u30fc":"\u30c7\u30d0\u30c3\u30b0\u60c5\u5831\u3092\u53d6\u5f97");CY(a.ob,!b);g.uY(a.Yg,b?"\u57cb\u3081\u8fbc\u307f\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc":"\u57cb\u3081\u8fbc\u307f\u30b3\u30fc\u30c9\u3092\u53d6\u5f97");CY(a.Yg,!b);g.uY(a.getVideoUrl,b?"\u52d5\u753b\u306e URL \u3092\u30b3\u30d4\u30fc":"\u52d5\u753b\u306e URL \u3092\u53d6\u5f97");CY(a.getVideoUrl,!b);g.uY(a.eh,b?"\u73fe\u6642\u70b9\u306e\u52d5\u753b\u306e URL \u3092\u30b3\u30d4\u30fc":
"\u3053\u306e\u5834\u6240\u306e\u52d5\u753b URL \u3092\u53d6\u5f97");CY(a.eh,!b);xY(a.Yg,b?QN():null);xY(a.getVideoUrl,b?SN():null);xY(a.eh,b?SN():null)};
g.HY=function(a,b){g.$X.call(this,a,{I:"div",ha:["ytp-popup",b||""]},100,!0);this.B=[];this.C=this.F=null;this.Bt=this.maxWidth=0;this.size=new g.ge(0,0);this.wa("keydown",this.wL)};
gya=function(a){var b=IY(a);if(b){g.Ag(a.element,a.maxWidth||"100%",a.Bt||"100%");g.lg(b.element,"minWidth","250px");g.lg(b.element,"width","");g.lg(b.element,"height","");g.lg(b.element,"maxWidth","100%");g.lg(b.element,"maxHeight","100%");g.lg(b.content.element,"height","");var c=g.Bg(b.element);c.width+=1;c.height+=1;g.lg(b.element,"width",c.width+"px");g.lg(b.element,"height",c.height+"px");g.lg(b.element,"maxWidth","");g.lg(b.element,"maxHeight","");var d=0;b.TB&&(d=b.ga("ytp-panel-header"),
d=g.Bg(d).height);var e=0;b.LJ&&(e=b.ga("ytp-panel-footer"),g.lg(e,"width",c.width+"px"),e=g.Bg(e).height);g.lg(b.content.element,"height",c.height-d-e+"px");b.element instanceof HTMLElement&&(d=b.element,e=d.scrollWidth-d.clientWidth,0<d.offsetWidth-d.clientWidth&&0<e&&(c.width+=e,g.lg(b.element,"width",c.width+"px")));a.size=c}};
g.FY=function(a,b){var c=a.B[a.B.length-1];a.B.push(b);JY(a,c,b)};
g.KY=function(a){var b=a.B.pop(),c=a.B[0];a.B=[c];JY(a,b,c,!0)};
JY=function(a,b,c,d){hya(a);IY(a);g.vn(c.element,"ytp-panel-animate-back")||g.vn(c.element,"ytp-panel-animate-forward");b&&(b.unsubscribe("size-change",a.ao,a),b.unsubscribe("back",a.Of,a));c.subscribe("size-change",a.ao,a);c.subscribe("back",a.Of,a);if(a.Xa){g.H(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.fa(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;gya(a);g.Ag(a.element,e);a.F=new g.F(function(){iya(a,b,c,d)},20,a);
a.F.start()}else c.fa(a.element),b&&b.detach()};
iya=function(a,b,c,d){a.F.dispose();a.F=null;g.H(a.element,"ytp-popup-animating");d?(g.H(b.element,"ytp-panel-animate-forward"),g.xn(c.element,"ytp-panel-animate-back")):(g.H(b.element,"ytp-panel-animate-back"),g.xn(c.element,"ytp-panel-animate-forward"));g.Ag(a.element,a.size);a.C=new g.F(function(){g.xn(a.element,"ytp-popup-animating");b.detach();g.yn(b.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);a.C.dispose();a.C=null},250,a);
a.C.start()};
IY=function(a){return a.B[a.B.length-1]};
hya=function(a){a.F&&g.pn(a.F);a.C&&g.pn(a.C)};
g.LY=function(a,b,c){g.HY.call(this,a);this.Y=b;this.Kb=c;this.G=new g.nR(this);this.D=null;g.C(this,this.G);g.rX(a,this.element,this,28656);g.H(this.element,"ytp-contextmenu");jya(this);this.hide()};
jya=function(a){g.qs(a.G);"gvn"!==a.J.T().playerStyle&&a.G.R(g.LG(a.J),"contextmenu",a.oN)};
kya=function(a){a.J.isFullscreen()?g.uP(a.J,a.element,9):a.fa(document.body)};
MY=function(a,b){g.V.call(this,{I:"button",ha:["ytp-button","ytp-copylink-button"],U:{title:"{{title-attr}}","data-tooltip-opaque":String(g.FC(a.T()))},S:[{I:"div",L:"ytp-copylink-icon",Z:"{{icon}}"},{I:"div",L:"ytp-copylink-title",Z:"\u30ea\u30f3\u30af\u3092\u30b3\u30d4\u30fc",U:{"aria-hidden":"true"}}]});this.api=a;this.u=b;this.visible=!1;this.tooltip=this.u.Ib();var c=a.T();rY(this.tooltip);g.I(this.element,"ytp-show-copylink-title",g.FC(c)&&!g.OC(c));g.rX(a,this.element,this,86570);this.wa("click",
this.onClick);this.R(a,"videodatachange",this.na);this.R(a,"videoplayerreset",this.na);this.R(a,"appresize",this.na);this.na();g.$f(this,g.oY(this.tooltip,this.element))};
lya=function(a){a.xa("icon",JN());if(a.api.T().u)NY(a.tooltip,a.element,"\u30ea\u30f3\u30af\u3092\u30af\u30ea\u30c3\u30d7\u30dc\u30fc\u30c9\u306b\u30b3\u30d4\u30fc\u3057\u307e\u3057\u305f");else{a.xa("title-attr","\u30ea\u30f3\u30af\u3092\u30af\u30ea\u30c3\u30d7\u30dc\u30fc\u30c9\u306b\u30b3\u30d4\u30fc\u3057\u307e\u3057\u305f");OY(a.tooltip);NY(a.tooltip,a.element);var b=a.wa("mouseleave",function(){a.Db(b);a.na();a.tooltip.Vh()})}};
nya=function(a,b){return Te(a,function d(){var e=this;return Aa(d,function(f){if(1==f.u)return ta(f,2),sa(f,navigator.clipboard.writeText(b),4);if(2!=f.u)return f["return"](!0);va(f);return f["return"](mya(e,b))})})};
mya=function(a,b){var c=!1,d=g.Ee("TEXTAREA");d.value=b;d.setAttribute("readonly","");var e=a.api.getRootNode();e.appendChild(d);if(fk){var f=window.getSelection();f.removeAllRanges();var h=document.createRange();h.selectNodeContents(d);f.addRange(h);d.setSelectionRange(0,b.length)}else d.select();try{c=document.execCommand("copy")}catch(l){}e.removeChild(d);return c};
PY=function(a){g.V.call(this,{I:"div",L:"ytp-doubletap-ui",S:[{I:"div",L:"ytp-doubletap-fast-forward-ve"},{I:"div",L:"ytp-doubletap-rewind-ve"},{I:"div",L:"ytp-doubletap-static-circle",S:[{I:"div",L:"ytp-doubletap-ripple"}]},{I:"div",L:"ytp-doubletap-overlay-a11y"},{I:"div",L:"ytp-doubletap-seek-info-container",S:[{I:"div",L:"ytp-doubletap-arrows-container",S:[{I:"span",L:"ytp-doubletap-base-arrow"},{I:"span",L:"ytp-doubletap-base-arrow"},{I:"span",L:"ytp-doubletap-base-arrow"}]},{I:"div",L:"ytp-doubletap-tooltip",
S:[{I:"div",L:"ytp-chapter-seek-text",Z:"{{seekText}}"},{I:"div",L:"ytp-doubletap-tooltip-label",Z:"{{seekTime}}"}]}]}]});this.J=a;this.B=new g.F(this.show,10,this);this.u=new g.F(this.hide,700,this);g.C(this,this.B);g.C(this,this.u);this.hide();this.C=this.ga("ytp-doubletap-fast-forward-ve");this.D=this.ga("ytp-doubletap-rewind-ve");g.rX(this.J,this.C,this,28240);g.rX(this.J,this.D,this,28239);g.EN(this.J,this.C,!0);g.EN(this.J,this.D,!0)};
QY=function(a,b,c){var d=g.LG(a.J).getPlayerSize();a.u.Xf();a.B.start();a.element.setAttribute("data-side",-1===b?"back":"forward");var e=a.ga("ytp-doubletap-static-circle");e.style.width="110px";e.style.height="110px";1===b?(e.style.right="",e.style.left=.8*d.width-30+"px"):-1===b&&(e.style.right="",e.style.left=.1*d.width-15+"px");e.style.top=.5*d.height+15+"px";oya(a,c)};
pya=function(a,b,c){a.u.Xf();a.B.start();a.element.setAttribute("data-side",-1===b?"back":"forward");b=a.ga("ytp-doubletap-static-circle");b.style.width="0";b.style.height="0";g.H(a.element,"ytp-chapter-seek");a.xa("seekText",c);a.xa("seekTime","")};
oya=function(a,b){var c=g.sK("$TOTAL_SEEK_TIME \u79d2",{TOTAL_SEEK_TIME:b.toString()});a.xa("seekTime",c)};
RY=function(a){var b=null;try{b=a.toLocaleString("ja",{style:"percent"})}catch(c){b=a.toLocaleString(void 0,{style:"percent"})}return b};
SY=function(a,b){for(var c=0,d=g.q(a),e=d.next();!(e.done||e.value.startTime>b);e=d.next())c++;return 0===c?c:c-1};
qya=function(a,b){var c=SY(a,b)+1;return c<a.length?c:-1};
rya=function(a,b){return SY(a,b)-1};
g.TY=function(a,b,c,d,e,f,h){g.nR.call(this);var l=this;this.api=a;this.contextMenu=c;this.zc=d;this.Kb=e;this.u=f;this.D=h;this.C=new g.F(function(){sya(l,!1)},1E3);
this.B="";g.C(this,this.C);a=g.Va(this.Cy,!1);this.R(b,"mousedown",a);this.R(c.element,"mousedown",a);this.R(b,"keydown",this.RB);this.R(c.element,"keydown",this.RB);this.R(b,"keyup",this.SB);this.R(c.element,"keyup",this.SB)};
VY=function(a,b,c,d){var e=g.zX(g.ZW(a.api));if(e&&e.loaded){var f=a.api.getSubtitlesUserSettings();e=void 0;for(var h=0;h<g.UY.length;h++){var l=g.UY[h];if(l.option===b){e=l.options;break}}h=void 0;for(l=0;l<e.length;l++)e[l].option===f[b]&&(h=l);if(d)if(c){if(0===h)return}else if(h===e.length-1)return;d={};d[b]=e[(h+(c?e.length-1:1))%e.length].option;a.api.updateSubtitlesUserSettings(d);sya(a,!0);a.C.start()}};
tya=function(a,b){a.api.ne();if(g.U(g.uJ(a.api),4)){var c=a.api.getVideoData().La;c&&(c=c.video)&&a.api.seekBy(b/(c.fps||30))}};
sya=function(a,b){g.zX(g.ZW(a.api))&&a.api.setOption("captions","sampleSubtitles",b)};
WY=function(a,b,c){g.V.call(this,{I:"button",ha:["ytp-button","ytp-overflow-button"],U:{title:"\u3055\u3089\u306b\u8868\u793a","aria-haspopup":"true","aria-owns":c.element.id},S:[{I:"div",L:"ytp-overflow-icon",S:[{I:"svg",U:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},S:[{I:"path",U:{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z",fill:"#fff"}}]}]}]});var d=this;this.J=a;this.u=b;this.visible=
!1;this.tooltip=this.u.Ib();g.rX(a,this.element,this,16499);this.R(a,"appresize",this.na);this.R(a,"fullscreentoggled",this.na);this.R(a,"presentingplayerstatechange",this.na);this.na();g.$f(this,g.oY(this.tooltip,this.element));this.wa("click",function(){g.sX(a,d.element);aY(c,d.element,!1)})};
XY=function(a,b){g.$X.call(this,a,{I:"div",L:"ytp-overflow-panel",U:{id:rN(),role:"dialog"},S:[{I:"div",L:"ytp-overflow-panel-content",S:[{I:"div",L:"ytp-overflow-panel-action-buttons",Z:"{{buttons}}"}]},{I:"button",ha:["ytp-overflow-panel-close","ytp-button"],U:{title:"\u9589\u3058\u308b"},S:[g.PN()]}]},250);this.actionButtons=[];this.tooltip=b.Ib();this.B=this.ga("ytp-overflow-panel-content");this.closeButton=this.ga("ytp-overflow-panel-close");this.R(this.closeButton,"click",this.fb);g.$f(this,
g.oY(this.tooltip,this.closeButton));this.wa("click",this.vL);this.R(a,"videoplayerreset",this.hide);this.R(a,"fullscreentoggled",this.uL);this.hide()};
YY=function(a,b){a.actionButtons.includes(b)||(a.actionButtons.push(b),a.xa("buttons",a.actionButtons))};
uya=function(a,b){for(var c=g.q(a.actionButtons),d=c.next();!d.done;d=c.next())d.value.yb(b)};
ZY=function(a,b,c){var d=b.Ka(c),e=a.T(),f=d.Sd("default.jpg");g.V.call(this,{I:"a",ha:["ytp-video-menu-item","ytp-button"],U:{role:"menuitemradio","aria-label":d.title,href:e.getVideoUrl(d.videoId,b.listId?b.listId.toString():null)},S:[{I:"div",L:"ytp-video-menu-item-index",Z:String(c+1)},{I:"div",L:"ytp-video-menu-item-now-playing",Z:"\u25b6"},{I:"div",L:"ytp-video-menu-item-thumbnail",U:{style:f?"background-image: url("+f+");":void 0}},{I:"div",L:"ytp-video-menu-item-title",Z:d.title},{I:"div",
L:"ytp-video-menu-item-author",Z:d.author}]});this.api=a;this.index=c;this.wa("click",this.onClick)};
$Y=function(a){g.$X.call(this,a,{I:"div",L:"ytp-playlist-menu",U:{role:"dialog",id:rN()},S:[{I:"div",L:"ytp-playlist-menu-header",S:[{I:"div",L:"ytp-playlist-menu-title",S:[{I:"a",L:"ytp-playlist-menu-title-name",U:{href:"{{playlisturl}}"},Z:"{{title}}"},{I:"button",ha:["ytp-playlist-menu-close","ytp-button"],U:{"aria-label":"\u9589\u3058\u308b"},S:[g.PN()]}]},{I:"div",L:"ytp-playlist-menu-subtitle",Z:"{{subtitle}}"}]},{I:"div",L:"ytp-playlist-menu-items",U:{role:"menu"}}]},250);this.api=a;this.selected=
this.D=this.playlist=null;this.items=this.ga("ytp-playlist-menu-items");this.C=new g.nR(this);this.B=[];a=this.ga("ytp-playlist-menu-close");this.R(a,"click",this.fb);a=this.ga("ytp-playlist-menu-title-name");this.R(a,"click",this.BP);g.C(this,this.C);this.hide()};
aZ=function(a,b,c){g.V.call(this,{I:"button",ha:["ytp-playlist-menu-button","ytp-button"],U:{title:"{{title}}","aria-owns":String(c.element.id),"aria-haspopup":"true","aria-label":"\u518d\u751f\u30ea\u30b9\u30c8"},S:[{I:"div",L:"ytp-playlist-menu-button-icon",S:[{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",rb:!0,U:{d:"m 22.53,21.42 0,6.85 5.66,-3.42 -5.66,-3.42 0,0 z m -11.33,0 9.06,0 0,2.28 -9.06,0 0,-2.28 0,0 z m 0,-9.14 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z m 0,4.57 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z",
fill:"#fff"}}]}]},{I:"div",L:"ytp-playlist-menu-button-text",Z:"{{text}}"}]});var d=this;this.api=a;this.playlist=null;this.visible=!1;this.tooltip=b.Ib();g.rX(a,this.element,this,70344);this.R(a,"videodatachange",this.u);this.R(a,"onPlaylistUpdate",this.u);this.R(a,"presentingplayerstatechange",this.na);this.R(a,"appresize",this.na);this.hide();this.u();g.$f(this,g.oY(this.tooltip,this.element));this.wa("click",function(){g.sX(a,d.element);aY(c,d.element,!1)})};
bZ=function(a,b,c){g.V.call(this,{I:"div",L:"ytp-promotooltip-wrapper",S:[{I:"div",L:"ytp-promotooltip-container",S:[{I:"div",L:"ytp-promotooltip-content",S:[{I:"div",L:"ytp-promotooltip-title",Z:"{{title}}"},{I:"div",L:"ytp-promotooltip-details",Z:"{{details}}"}]},{I:"div",L:"ytp-promotooltip-buttons",S:[{I:"div",L:"ytp-promotooltip-dismiss-button",Z:"{{dismissButtonText}}",U:{tabindex:"0"}},{I:"div",L:"ytp-promotooltip-accept-button",Z:"{{acceptButtonText}}",U:{tabindex:"0"}}]}]},{I:"div",L:"ytp-promotooltip-pointer"}]});
this.tooltipRenderer=a;this.F=b;this.J=c;this.u=null;this.title=this.ga("ytp-promotooltip-title");this.details=this.ga("ytp-promotooltip-details");this.acceptButton=this.ga("ytp-promotooltip-accept-button");this.dismissButton=this.ga("ytp-promotooltip-dismiss-button");this.D=this.C=this.B=!1;g.vN(this,!1);this.R(c,"onShowControls",this.Mv);this.R(c,"onHideControls",this.qN);this.R(c,"resize",this.Sa);this.R(this.acceptButton,"click",this.uM);this.R(this.dismissButton,"click",this.vN);this.R(document,
"click",this.BL)};
vya=function(a){a=document.querySelectorAll('[data-tooltip-target-id="'+a.tooltipRenderer.targetId+'"]');return 0<a.length?a[0]:null};
cZ=function(a,b){var c,d,e=a.tooltipRenderer.promoConfig;if(e){switch(b){case 0:if(null===(c=e.impressionEndpoints)||void 0===c?0:c.length)var f=e.impressionEndpoints[0];break;case 1:f=e.acceptCommand;break;case 2:f=e.dismissCommand}if(null===(d=null===f||void 0===f?void 0:f.feedbackEndpoint)||void 0===d?0:d.feedbackToken){e={feedbackTokens:[f.feedbackEndpoint.feedbackToken]};var h=MG(a.J.app);(null===h||void 0===h?0:ova(h,f))&&CU(h,f,e)}}};
wya=function(a){var b,c,d,e,f,h,l,m,n,p,r=(null===(e=null===(d=null===(c=null===(b=a.acceptButton)||void 0===b?void 0:b.buttonRenderer)||void 0===c?void 0:c.text)||void 0===d?void 0:d.runs)||void 0===e?void 0:e.length)&&!(null===(f=a.acceptButton)||void 0===f||!f.buttonRenderer.text.runs[0].text);a=(null===(n=null===(m=null===(l=null===(h=a.dismissButton)||void 0===h?void 0:h.buttonRenderer)||void 0===l?void 0:l.text)||void 0===m?void 0:m.runs)||void 0===n?void 0:n.length)&&!(null===(p=a.dismissButton)||
void 0===p||!p.buttonRenderer.text.runs[0].text);return r||a};
dZ=function(a,b){g.V.call(this,{I:"button",ha:["ytp-replay-button","ytp-button"],U:{title:"\u3082\u3046\u4e00\u56de\u898b\u308b"},S:[g.VN()]});this.J=a;this.R(a,"presentingplayerstatechange",this.u);this.wa("click",this.onClick,this);var c=g.uJ(a);g.vN(this,g.U(c,2));g.oY(b.Ib(),this.element)};
g.eZ=function(a,b,c,d){d=void 0===d?240:d;g.V.call(this,{I:"button",ha:["ytp-button","ytp-share-button"],U:{title:"\u5171\u6709","aria-haspopup":"true","aria-owns":c.element.id,"data-tooltip-opaque":String(g.FC(a.T()))},S:[{I:"div",L:"ytp-share-icon",Z:"{{icon}}"},{I:"div",L:"ytp-share-title",Z:"\u5171\u6709"}]});this.api=a;this.u=b;this.C=c;this.B=d;this.visible=!1;this.tooltip=this.u.Ib();b=a.T();g.rX(a,this.element,this,28664);this.wa("click",this.onClick);this.R(a,"videodatachange",this.na);this.R(a,
"videoplayerreset",this.na);this.R(a,"appresize",this.na);this.R(a,"presentingplayerstatechange",this.na);this.na();g.I(this.element,"ytp-show-share-title",g.FC(b)&&!g.OC(b));g.$f(this,g.oY(this.tooltip,this.element))};
g.fZ=function(a,b){var c=rN(),d=a.T();c={I:"div",L:"ytp-share-panel",U:{id:rN(),role:"dialog","aria-labelledby":c},S:[{I:"div",L:"ytp-share-panel-inner-content",S:[{I:"div",L:"ytp-share-panel-title",U:{id:c},Z:"\u5171\u6709"},{I:"a",ha:["ytp-share-panel-link","ytp-no-contextmenu"],U:{href:"{{link}}",target:d.F,title:"\u30ea\u30f3\u30af\u3092\u5171\u6709","aria-label":"{{shareLinkWithUrl}}"},Z:"{{linkText}}"},{I:"label",L:"ytp-share-panel-include-playlist",S:[{I:"input",L:"ytp-share-panel-include-playlist-checkbox",
U:{type:"checkbox",checked:!0}},"\u518d\u751f\u30ea\u30b9\u30c8\u3092\u542b\u3081\u308b"]},{I:"div",L:"ytp-share-panel-loading-spinner",S:[OX()]},{I:"div",L:"ytp-share-panel-service-buttons",Z:"{{buttons}}"},{I:"div",L:"ytp-share-panel-error",Z:"\u5171\u6709\u60c5\u5831\u306e\u53d6\u5f97\u4e2d\u306b\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002\u3057\u3070\u3089\u304f\u3057\u3066\u304b\u3089\u3082\u3046\u4e00\u5ea6\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002"}]},{I:"button",
ha:["ytp-share-panel-close","ytp-button"],U:{title:"\u9589\u3058\u308b"},S:[g.PN()]}]};g.$X.call(this,a,c,250);this.api=a;this.tooltip=b.Ib();this.B=[];this.F=this.ga("ytp-share-panel-inner-content");this.closeButton=this.ga("ytp-share-panel-close");this.R(this.closeButton,"click",this.fb);g.$f(this,g.oY(this.tooltip,this.closeButton));this.D=this.ga("ytp-share-panel-include-playlist-checkbox");this.R(this.D,"click",this.na);this.C=this.ga("ytp-share-panel-link");g.$f(this,g.oY(this.tooltip,this.C));
this.wa("click",this.EL);this.R(a,"videoplayerreset",this.hide);this.R(a,"fullscreentoggled",this.DL);this.R(a,"onLoopRangeChange",this.na);this.hide()};
yya=function(a,b){a.la()||(g.xn(a.element,"ytp-share-panel-loading"),xya(a,b))};
xya=function(a,b){zya(a);for(var c=b.links||b.shareTargets,d=0,e={},f=0;f<c.length&&2>d;e={Pj:e.Pj},f++){e.Pj=c[f];a:switch(e.Pj.img||e.Pj.iconId){case "facebook":var h={I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},S:[{I:"rect",U:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",U:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z m -1.9,3.8 0,5.7 -3.8,0 c -1.04,0 -1.9,.84 -1.9,1.9 l 0,3.8 5.7,0 0,5.7 -5.7,0 0,13.3 -5.7,0 0,-13.3 -3.8,0 0,-5.7 3.8,0 0,-4.75 c 0,-3.67 2.97,-6.65 6.65,-6.65 l 4.75,0 z",
fill:"#39579b"}}]};break a;case "twitter":h={I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},S:[{I:"rect",U:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",U:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z M 29.84,13.92 C 29.72,22.70 24.12,28.71 15.74,29.08 12.28,29.24 9.78,28.12 7.6,26.75 c 2.55,.40 5.71,-0.60 7.41,-2.06 -2.50,-0.24 -3.98,-1.52 -4.68,-3.56 .72,.12 1.48,.09 2.17,-0.05 -2.26,-0.76 -3.86,-2.15 -3.95,-5.07 .63,.28 1.29,.56 2.17,.60 C 9.03,15.64 7.79,12.13 9.21,9.80 c 2.50,2.75 5.52,4.99 10.47,5.30 -1.24,-5.31 5.81,-8.19 8.74,-4.62 1.24,-0.23 2.26,-0.71 3.23,-1.22 -0.39,1.23 -1.17,2.09 -2.11,2.79 1.03,-0.14 1.95,-0.38 2.73,-0.77 -0.47,.99 -1.53,1.9 -2.45,2.66 l 0,0 z",
fill:"#01abf0"}}]};break a;default:h=null}h&&(h=new g.V({I:"a",ha:["ytp-share-panel-service-button","ytp-button"],U:{href:e.Pj.url,target:"_blank",title:e.Pj.sname||e.Pj.serviceName},S:[h]}),h.wa("click",function(m){return function(n){if(g.WO(n)){var p=m.Pj.url;var r=void 0===r?{}:r;r.target=r.target||"YouTube";r.width=r.width||"600";r.height=r.height||"600";r||(r={});var t=window;var w=p instanceof g.Fc?p:g.Kc("undefined"!=typeof p.href?p.href:String(p));p=r.target||p.target;var x=[];for(y in r)switch(y){case "width":case "height":case "top":case "left":x.push(y+
"="+r[y]);break;case "target":case "noopener":case "noreferrer":break;default:x.push(y+"="+(r[y]?1:0))}var y=x.join(",");Sd()&&t.navigator&&t.navigator.standalone&&p&&"_self"!=p?(y=g.Ee("A"),g.id(y,w),y.setAttribute("target",p),r.noreferrer&&y.setAttribute("rel","noreferrer"),r=document.createEvent("MouseEvent"),r.initMouseEvent("click",!0,!0,t,1),y.dispatchEvent(r),t={}):r.noreferrer?(t=kd("",t,p,y),r=g.Gc(w),t&&(g.lD&&-1!=r.indexOf(";")&&(r="'"+r.replace(/'/g,"%27")+"'"),t.opener=null,r=g.gd(g.jc("b/12014412, meta tag with sanitized URL"),
'<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+g.nd(r)+'">'),(w=t.document)&&w.write&&(w.write(g.cd(r)),w.close()))):(t=kd(w,t,p,y))&&r.noopener&&(t.opener=null);if(r=t)r.opener||(r.opener=window),r.focus();g.fp(n)}}}(e)),g.$f(h,g.oY(a.tooltip,h.element)),a.B.push(h),d++)}var l=b.more||b.moreLink;
c=new g.V({I:"a",ha:["ytp-share-panel-service-button","ytp-button"],S:[{I:"span",L:"ytp-share-panel-service-button-more",S:[{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},S:[{I:"rect",U:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",U:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 Z m -5.7,21.85 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z",
fill:"#4e4e4f","fill-rule":"evenodd"}}]}]}],U:{href:l,target:"_blank",title:"\u3082\u3063\u3068\u898b\u308b"}});c.wa("click",function(m){g.NX(l,a.api,m)&&a.api.va("SHARE_CLICKED")});
g.$f(c,g.oY(a.tooltip,c.element));a.B.push(c);a.xa("buttons",a.B)};
Aya=function(a){g.xn(a.element,"ytp-share-panel-loading");g.H(a.element,"ytp-share-panel-fail")};
zya=function(a){for(var b=g.q(a.B),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),g.ag(c);a.B=[]};
iZ=function(a,b){g.V.call(this,{I:"div",L:"ytp-shopping-overlay"});var c=this;this.J=a;this.Ja=b;this.F=this.G=this.ka=this.u=this.expanded=this.dismissed=this.ba=this.enabled=!1;this.Ea=!0;this.C=this.B=this.K=this.Y=!1;this.ea=new g.F(function(){c.badge.element.style.width=""},200,this);
this.ia=new g.F(function(){gZ(c);hZ(c)},200,this);
this.dismissButton=new g.V({I:"button",ha:["ytp-shopping-overlay-badge-dismiss-button-icon","ytp-button"]});g.C(this,this.dismissButton);this.D=new g.V({I:"div",L:"ytp-shopping-overlay-badge-expanded-content-container",S:[{I:"label",L:"ytp-shopping-overlay-badge-title"},this.dismissButton]});g.C(this,this.D);this.badge=new g.V({I:"button",ha:["ytp-button","ytp-shopping-overlay-badge","ytp-shopping-overlay-badge-with-controls"],S:[{I:"div",L:"ytp-shopping-overlay-badge-icon"},this.D]});g.C(this,this.badge);
this.badge.fa(this.element);this.R(this.badge.element,"click",this.YM);this.N=new g.fO(this.badge,250,!1,100);g.C(this,this.N);this.X=new g.fO(this.D,250,!1,100);g.C(this,this.X);this.da=new g.mn(this.PQ,null,this);g.C(this,this.da);this.W=new g.mn(this.GI,null,this);g.C(this,this.W);g.C(this,this.ea);g.C(this,this.ia);g.AN(this.J,this.badge.element,this.badge,!0);g.AN(this.J,this.dismissButton.element,this.dismissButton,!0);this.R(this.J,"onHideControls",function(){c.u=!1;hZ(c);gZ(c);c.Lh()});
this.R(this.J,"onShowControls",function(){c.u=!0;hZ(c);gZ(c);c.Lh()});
this.R(this.J,g.RD("shopping_overlay_visible"),function(){c.Eg(!0)});
this.R(this.J,g.SD("shopping_overlay_visible"),function(){c.Eg(!1)});
this.R(this.J,g.RD("shopping_overlay_expanded"),function(){c.G=!0;hZ(c)});
this.R(this.J,g.SD("shopping_overlay_expanded"),function(){c.G=!1;hZ(c)});
this.R(this.J,"changeProductsInVideoVisibility",this.FO);this.R(this.J,"videodatachange",this.Na);this.R(this.J,"pageTransition",this.FL);this.R(this.dismissButton.element,"click",this.ZM);this.R(this.J,"appresize",this.Lh);this.R(this.J,"fullscreentoggled",this.Lh);this.R(this.J,"cardstatechange",this.dN);this.R(this.J,"annotationvisibility",this.nR,this);this.R(this.J,"paidcontentoverlayvisibilitychange",this.uO)};
gZ=function(a){g.I(a.badge.element,"ytp-shopping-overlay-badge-with-controls",a.u||!a.F)};
jZ=function(a){return a.Ea&&!a.ba&&a.enabled&&!a.dismissed&&!a.Ja.oe()&&!a.J.isFullscreen()&&!a.ka&&!a.K&&(a.F||a.u)};
hZ=function(a,b){var c=a.G||a.u||!a.F;a.expanded!==c&&(a.expanded=c,void 0===b||b?(a.da.stop(),a.W.stop(),a.ea.stop(),a.da.start()):(g.vN(a.D,a.expanded),g.I(a.badge.element,"ytp-shopping-overlay-badge-expanded",a.expanded)),Bya(a))};
Bya=function(a){a.B&&g.EN(a.J,a.badge.element,jZ(a));a.C&&g.EN(a.J,a.dismissButton.element,jZ(a)&&(a.G||a.u||!a.F))};
Cya=function(a,b){b?a.C&&g.sX(a.J,a.dismissButton.element):a.B&&g.sX(a.J,a.badge.element)};
Dya=function(a,b){b=void 0===b?0:b;var c=[],d=a.timing.visible,e=a.timing.expanded;d&&c.push(new g.OD(1E3*(d.startSec+b),1E3*(d.endSec+b),{priority:7,namespace:"shopping_overlay_visible"}));e&&c.push(new g.OD(1E3*(e.startSec+b),1E3*(e.endSec+b),{priority:7,namespace:"shopping_overlay_expanded"}));g.fN(a.J,c)};
kZ=function(a){g.oX(a.J,"shopping_overlay_visible");g.oX(a.J,"shopping_overlay_expanded")};
lZ=function(a){g.$X.call(this,a,{I:"button",ha:["ytp-skip-intro-button","ytp-popup","ytp-button"],S:[{I:"div",L:"ytp-skip-intro-button-text",Z:"\u30a4\u30f3\u30c8\u30ed\u3092\u30b9\u30ad\u30c3\u30d7"}]},100);var b=this;this.C=!1;this.B=new g.F(function(){b.hide()},5E3);
this.tk=this.Jl=NaN;g.C(this,this.B);this.G=function(){b.show()};
this.F=function(){b.hide()};
this.D=function(){var c=b.J.getCurrentTime();c>b.Jl/1E3&&c<b.tk/1E3&&b.show()};
this.R(this.J,"videodatachange",function(c,d){if("dataloaded"===c)if(b.Jl=d.Jl,b.tk=d.tk,isNaN(b.Jl)||isNaN(b.tk))b.C&&(g.oX(b.J,"intro"),b.J.removeEventListener(g.RD("intro"),b.G),b.J.removeEventListener(g.SD("intro"),b.F),b.J.removeEventListener("onShowControls",b.D),b.hide(),b.C=!1);else{b.J.addEventListener(g.RD("intro"),b.G);b.J.addEventListener(g.SD("intro"),b.F);b.J.addEventListener("onShowControls",b.D);var e=new g.OD(b.Jl,b.tk,{priority:7,namespace:"intro"});g.fN(b.J,[e]);b.C=!0}});
this.R(this.element,"click",function(){b.J.seekTo(b.tk/1E3)});
this.hide()};
mZ=function(a,b){g.V.call(this,{I:"button",ha:["ytp-airplay-button","ytp-button"],U:{title:"AirPlay"},Z:"{{icon}}"});this.J=a;this.wa("click",this.onClick);this.R(a,"airplayactivechange",this.na);this.R(a,"airplayavailabilitychange",this.na);this.na();g.$f(this,g.oY(b.Ib(),this.element))};
nZ=function(a,b){g.V.call(this,{I:"button",ha:["ytp-button"],U:{title:"{{title}}","aria-label":"{{label}}","data-tooltip-target-id":"ytp-autonav-toggle-button"},S:[{I:"div",L:"ytp-autonav-toggle-button-container",S:[{I:"div",L:"ytp-autonav-toggle-button",U:{"aria-checked":"true"}}]}]});this.J=a;this.B=[];this.u=!1;this.isChecked=!0;g.rX(a,this.element,this,113681);this.R(a,"presentingplayerstatechange",this.Ep);this.wa("click",this.onClick);this.tooltip=b.Ib();g.$f(this,g.oY(b.Ib(),this.element));
this.Ep()};
Eya=function(a){a.setValue(a.isChecked);var b=a.isChecked?"\u81ea\u52d5\u518d\u751f\u304c\u30aa\u30f3\u306b\u306a\u3063\u3066\u3044\u307e\u3059":"\u81ea\u52d5\u518d\u751f\u304c\u30aa\u30d5\u306b\u306a\u3063\u3066\u3044\u307e\u3059";a.xa("title",b);a.xa("label",b);OY(a.tooltip)};
g.pZ=function(a){g.V.call(this,{I:"div",L:"ytp-gradient-bottom"});this.B=g.Ee("CANVAS");this.u=this.B.getContext("2d");this.C=NaN;this.B.width=1;this.D=g.OC(a.T());g.oZ(this,g.LG(a).getPlayerSize().height)};
g.oZ=function(a,b){if(a.u){var c=Math.floor(b*(a.D?1:.4));c=Math.max(c,47);var d=c+2;if(a.C!==d){a.C=d;a.B.height=d;a.u.clearRect(0,0,1,d);var e=a.u.createLinearGradient(0,2,0,2+c);if(a.D)e.addColorStop(.133,"rgba(0, 0, 0, 0.2)"),e.addColorStop(.44,"rgba(0, 0, 0, 0.243867)"),e.addColorStop(1,"rgba(0, 0, 0, 0.8)");else{var f=c-42;e.addColorStop(0,"rgba(0, 0, 0, 0)");e.addColorStop(f/c,"rgba(0, 0, 0, 0.3)");e.addColorStop(1,"rgba(0, 0, 0, 0.68)")}a.u.fillStyle=e;a.u.fillRect(0,2,1,c);a.element.style.height=
d+"px";try{a.element.style.backgroundImage="url("+a.B.toDataURL()+")"}catch(h){}}}};
qZ=function(a,b,c,d,e){g.V.call(this,{I:"div",L:"ytp-chapter-container",S:[{I:"button",ha:["ytp-chapter-title","ytp-button"],U:{title:"\u30c1\u30e3\u30d7\u30bf\u30fc\u3092\u8868\u793a","aria-label":"\u30c1\u30e3\u30d7\u30bf\u30fc\u3092\u8868\u793a"},S:[{I:"span",U:{"aria-hidden":"true"},L:"ytp-chapter-title-prefix",Z:"\u2022"},{I:"div",L:"ytp-chapter-title-content",Z:"{{title}}"},{I:"div",L:"ytp-chapter-title-chevron",S:[{I:"svg",U:{height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{I:"path",U:{d:"M9.71 18.71l-1.42-1.42 5.3-5.29-5.3-5.29 1.42-1.42 6.7 6.71z",
fill:"#fff"}}]}]}]}]});this.J=a;this.K=b;this.N=c;this.G=d;this.W=e;this.F="";this.currentIndex=0;this.C=void 0;this.B=!0;this.D=this.ga("ytp-chapter-container");this.u=this.ga("ytp-chapter-title");this.updateVideoData("newdata",this.J.getVideoData());this.R(a,"videodatachange",this.updateVideoData);this.R(this.D,"click",this.onClick);a.T().ca("html5_ux_control_flexbox_killswitch")&&this.R(a,"resize",this.X);this.R(a,"onVideoProgress",this.Hc);this.R(a,"SEEK_TO",this.Hc)};
Fya=function(a,b,c,d,e){var f=b.Ft/b.rows,h=Math.min(c/(b.Gt/b.columns),d/f),l=b.Gt*h,m=b.Ft*h;l=Math.floor(l/b.columns)*b.columns;m=Math.floor(m/b.rows)*b.rows;var n=l/b.columns,p=m/b.rows,r=-b.column*n,t=-b.row*p;e&&45>=f&&(p-=1/h);n-=2/h;a=a.style;a.width=n+"px";a.height=p+"px";e||(d=(d-p)/2,c=(c-n)/2,a.marginTop=Math.floor(d)+"px",a.marginBottom=Math.ceil(d)+"px",a.marginLeft=Math.floor(c)+"px",a.marginRight=Math.ceil(c)+"px");a.background="url("+b.url+") "+r+"px "+t+"px/"+l+"px "+m+"px"};
g.rZ=function(a){g.V.call(this,{I:"div",L:"ytp-storyboard-framepreview",S:[{I:"div",L:"ytp-storyboard-framepreview-img"}]});this.api=a;this.D=this.ga("ytp-storyboard-framepreview-img");this.Og=null;this.B=NaN;this.events=new g.nR(this);this.u=new g.fO(this,100);g.C(this,this.events);g.C(this,this.u);this.R(this.api,"presentingplayerstatechange",this.Vb)};
sZ=function(a,b){var c=!!a.Og;a.Og=b;a.Og?(c||(a.events.R(a.api,"videodatachange",function(){sZ(a,a.api.ag())}),a.events.R(a.api,"progresssync",a.Nd),a.events.R(a.api,"appresize",a.C)),a.B=NaN,tZ(a),a.u.show(200)):(c&&g.qs(a.events),a.u.hide(),a.u.stop())};
tZ=function(a){var b=a.Og,c=a.api.getCurrentTime(),d=g.LG(a.api).getPlayerSize(),e=iF(b,d.width);c=nF(b,e,c);c!==a.B&&(a.B=c,kF(b,c,d.width),b=b.xl(c,d.width),Fya(a.D,b,d.width,d.height))};
uZ=function(a,b){g.V.call(this,{I:"button",ha:["ytp-fullerscreen-edu-button","ytp-button"],S:[{I:"div",ha:["ytp-fullerscreen-edu-text"],Z:"\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u3066\u8a73\u7d30\u3092\u8868\u793a"},{I:"div",ha:["ytp-fullerscreen-edu-chevron"],S:[{I:"svg",U:{height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{I:"path",U:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}]});this.u=a;this.F=b;this.C=new g.fO(this,250,void 0,100);this.D=this.B=!1;g.rX(a,this.element,
this,61214);this.F=b;g.C(this,this.C);this.R(a,"fullscreentoggled",this.na);this.R(a,"presentingplayerstatechange",this.na);this.wa("click",this.onClick);this.na()};
g.vZ=function(a,b){g.V.call(this,{I:"button",ha:["ytp-fullscreen-button","ytp-button"],U:{title:"{{title}}"},Z:"{{icon}}"});this.J=a;this.C=b;this.message=null;this.u=g.oY(this.C.Ib(),this.element);this.B=new g.F(this.jI,2E3,this);g.C(this,this.B);this.R(a,"fullscreentoggled",this.mD);this.R(a,"presentingplayerstatechange",this.na);this.wa("click",this.onClick);if(ks()){var c=g.LG(this.J);this.R(c,Vea(),this.Qx);this.R(c,ns(document),this.Dj)}a.T().ka||a.T().ca("embeds_enable_mobile_custom_controls")||
this.disable();this.na();this.mD(a.isFullscreen())};
wZ=function(a,b){g.V.call(this,{I:"button",ha:["ytp-miniplayer-button","ytp-button"],U:{title:"{{title}}","data-tooltip-target-id":"ytp-miniplayer-button"},S:[moa()]});this.J=a;this.visible=!1;this.wa("click",this.onClick);this.R(a,"fullscreentoggled",this.na);this.xa("title",g.QX(a,"\u30df\u30cb\u30d7\u30ec\u30fc\u30e4\u30fc","i"));g.$f(this,g.oY(b.Ib(),this.element));g.rX(a,this.element,this,62946);this.na()};
xZ=function(a,b,c){g.V.call(this,{I:"button",ha:["ytp-multicam-button","ytp-button"],U:{title:"\u30ab\u30e1\u30e9\u3092\u5207\u308a\u66ff\u3048\u308b","aria-haspopup":"true","data-preview":"{{preview}}","data-tooltip-text":"{{text}}"},S:[{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",rb:!0,U:{d:"M 26,10 22.83,10 21,8 15,8 13.17,10 10,10 c -1.1,0 -2,.9 -2,2 l 0,12 c 0,1.1 .9,2 2,2 l 16,0 c 1.1,0 2,-0.9 2,-2 l 0,-12 c 0,-1.1 -0.9,-2 -2,-2 l 0,0 z m -5,11.5 0,-2.5 -6,0 0,2.5 -3.5,-3.5 3.5,-3.5 0,2.5 6,0 0,-2.5 3.5,3.5 -3.5,3.5 0,0 z",
fill:"#fff"}}]}]});var d=this;this.J=a;this.u=!1;this.B=new g.F(this.C,400,this);this.tooltip=b.Ib();rY(this.tooltip);g.C(this,this.B);this.wa("click",function(){aY(c,d.element,!1)});
this.R(a,"presentingplayerstatechange",function(){d.na(!1)});
this.R(a,"videodatachange",this.Na);this.na(!0);g.$f(this,g.oY(this.tooltip,this.element))};
yZ=function(a){g.$X.call(this,a,{I:"div",L:"ytp-multicam-menu",U:{role:"dialog"},S:[{I:"div",L:"ytp-multicam-menu-header",S:[{I:"div",L:"ytp-multicam-menu-title",S:["\u30ab\u30e1\u30e9\u3092\u5207\u308a\u66ff\u3048\u308b",{I:"button",ha:["ytp-multicam-menu-close","ytp-button"],U:{"aria-label":"\u9589\u3058\u308b"},S:[g.PN()]}]}]},{I:"div",L:"ytp-multicam-menu-items"}]},250);this.api=a;this.C=new g.nR(this);this.items=this.ga("ytp-multicam-menu-items");this.B=[];g.C(this,this.C);a=this.ga("ytp-multicam-menu-close");
this.R(a,"click",this.fb);this.hide()};
zZ=function(){g.B.call(this);this.B=null;this.startTime=this.duration=0;this.delay=new g.mn(this.u,null,this);g.C(this,this.delay)};
Gya=function(a,b){if("path"===b.I)return b.U.d;if(b.S)for(var c=0;c<b.S.length;c++){var d=b.S[c];if(d&&"string"!==typeof d&&(d=Gya(a,d)))return d}};
Jya=function(a,b,c){c=Gya(a,c);var d=b.getElementsByTagName("path")[0],e=d.getAttribute("d");if(d.getAttribute("id")){var f=rN();b=b.getElementsByTagName("use");for(var h=0;h<b.length;h++)b[h].setAttributeNS("http://www.w3.org/1999/xlink","href","#"+f);d.setAttribute("id",f)}var l=Hya(e),m=Hya(c);AZ(a,function(n){d.setAttribute("d",Iya(l,m,n))},200)};
AZ=function(a,b,c){a.B=b;a.startTime=(0,g.N)();a.duration=c;a.u()};
Hya=function(a){var b=[];a=a.match(Kya);for(var c=0;c<a.length;c++){var d=" "===a[c]?NaN:Number(a[c]);b.push(isNaN(d)?a[c]:d)}return b};
Iya=function(a,b,c){for(var d="",e=0;e<a.length;e++){var f=a[e];d="number"===typeof f?d+(f+(b[e]-f)*c):d+f}return d};
BZ=function(a,b){g.V.call(this,{I:"button",ha:["ytp-mute-button","ytp-button"],U:a.T().W?{title:"{{title}}","aria-label":"{{label}}"}:{"aria-disabled":"true","aria-haspopup":"true"},Z:"{{icon}}"});this.J=a;this.u=null;this.D=this.N=this.F=this.X=NaN;this.Y=this.G=null;this.C=[];this.B=[];this.visible=!1;this.K=null;var c=this.J.T();this.xa("icon",XN());this.tooltip=b.Ib();this.u=new g.sN({I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"defs",S:[{I:"clipPath",U:{id:"ytp-svg-volume-animation-mask"},
S:[{I:"path",U:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{I:"path",U:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{I:"path",L:"ytp-svg-volume-animation-mover",U:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{I:"clipPath",U:{id:"ytp-svg-volume-animation-slash-mask"},S:[{I:"path",L:"ytp-svg-volume-animation-mover",U:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{I:"path",rb:!0,ha:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],U:{"clip-path":"url(#ytp-svg-volume-animation-mask)",
d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{I:"path",rb:!0,ha:["ytp-svg-fill","ytp-svg-volume-animation-hider"],U:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)",d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z",fill:"#fff"}}]});g.C(this,this.u);this.G=this.u.ga("ytp-svg-volume-animation-speaker");this.Y=this.G.getAttribute("d");this.C=g.pe("ytp-svg-volume-animation-mover",this.u.element);this.B=
g.pe("ytp-svg-volume-animation-hider",this.u.element);this.ba=new zZ;g.C(this,this.ba);this.W=new zZ;g.C(this,this.W);this.wa("click",this.lO);this.R(a,"appresize",this.nD);this.R(a,"onVolumeChange",this.tL);var d=null;if(c.W)g.$f(this,g.oY(b.Ib(),this.element));else{var e="\u304a\u4f7f\u3044\u306e\u30d6\u30e9\u30a6\u30b6\u3067\u306f\u97f3\u91cf\u3092\u5909\u66f4\u3067\u304d\u307e\u305b\u3093\u3002$BEGIN_LINK\u8a73\u7d30$END_LINK".split(/\$(BEGIN|END)_LINK/);d=new g.$X(a,{I:"span",ha:["ytp-popup",
"ytp-generic-popup"],U:{tabindex:"0"},S:[e[0],{I:"a",U:{href:"https://support.google.com/youtube/?p=noaudio",target:c.F},Z:e[2]},e[4]]},100,!0);g.C(this,d);d.hide();d.subscribe("show",function(f){b.Lo(d,f)});
g.uP(a,d.element,4)}this.message=d;g.rX(a,this.element,this,28662);this.nD(g.LG(a).getPlayerSize());this.setVolume(a.getVolume(),a.isMuted())};
Nya=function(a,b){a.X=b;var c=a.Y;b&&(c+=Iya(Lya,Mya,b));a.G.setAttribute("d",c)};
Oya=function(a,b){a.N=b;for(var c=20*b,d=0;d<a.C.length;d++)a.C[d].setAttribute("transform","translate("+c+", "+c+")");var e;1===b?e=XN():e=a.u;for(c=0;c<a.B.length;c++)a.B[c].style.display=0===b?"none":"";e!==a.K&&(a.xa("icon",e),a.K=e)};
CZ=function(a,b){g.V.call(this,{I:"button",ha:["ytp-pip-button","ytp-button"],U:{title:"{{title}}","data-tooltip-target-id":"ytp-pip-button"},S:[moa()]});this.J=a;this.xa("title","PIP");this.wa("click",this.onClick);g.$f(this,g.oY(b.Ib(),this.element))};
g.DZ=function(a,b){g.V.call(this,{I:"button",ha:["ytp-play-button","ytp-button"],U:{title:"{{title}}","aria-label":"{{label}}"},Z:"{{icon}}"});this.J=a;this.u=null;this.transition=new zZ;this.tooltip=b.Ib();g.C(this,this.transition);this.R(a,"fullscreentoggled",this.Na);this.R(a,"presentingplayerstatechange",this.B);this.R(a,"videodatachange",this.Na);Pya(this,g.uJ(a));this.wa("click",this.Wn,this);g.$f(this,g.oY(b.Ib(),this.element))};
Qya=function(a){switch(a){case 1:return noa();case 2:return loa();case 3:return g.VN();case 4:return poa();default:return null}};
Pya=function(a,b){var c=g.cG(a.J.getVideoData()),d=!1;if(g.FL(b))var e=c?4:2;else g.U(b,2)?(e=3,d=c):e=1;a.element.disabled=d;if(a.u!==e){c=null;switch(e){case 2:c=g.QX(a.J,"\u4e00\u6642\u505c\u6b62","k");break;case 3:c="\u3082\u3046\u4e00\u56de\u898b\u308b";break;case 1:c=g.QX(a.J,"\u518d\u751f","k");break;case 4:c="\u30e9\u30a4\u30d6\u518d\u751f\u3092\u505c\u6b62"}3===e?a.update({title:c,label:null,icon:Qya(e)}):(a.update({title:c,label:c}),(c=Qya(e))&&a.u&&3!==a.u?Jya(a.transition,a.element,c):
a.xa("icon",c));OY(a.tooltip);a.u=e}};
g.EZ=function(a,b){return vG(b)?(b.fetch=0,new g.uG(a,b)):new g.qF(a,b)};
g.GZ=function(a,b,c){g.V.call(this,{I:"a",ha:[c?"ytp-next-button":"ytp-prev-button","ytp-button"],U:{role:"button",title:"{{title}}",href:"{{url}}","data-preview":"{{preview}}","data-tooltip-text":"{{text}}","data-duration":"{{duration}}","aria-disabled":"{{disabled}}","data-next":"{{next}}","data-prev":"{{prev}}"},S:[c?TN():ooa()]});var d=this;this.J=a;this.u=c;this.playlist=this.videoData=null;this.G=!1;this.D=this.F=this.B=null;this.C=!1;this.tooltip=b.Ib();this.R(a,"fullscreentoggled",this.Na);
this.R(a,"videodatachange",this.Na);this.R(a,"onPlaylistUpdate",this.Na);this.u||this.R(a,"appresize",this.Bx);this.R(a,"mdxpreviousnextchange",function(){FZ(d);d.Bx()});
this.Na()};
Rya=function(a){a.playlist&&a.playlist.unsubscribe("shuffle",a.Na,a)};
Sya=function(a){return!!a.playlist&&!a.u&&!!a.videoData&&!a.videoData.isLivePlayback&&3<=a.J.getCurrentTime()&&2!==a.J.getPresentingPlayerType()};
Tya=function(a){var b=g.cX(g.ZW(a.J));return b?a.u?b.hasNext():b.ji():!1};
FZ=function(a){var b={duration:null,preview:null,text:null,title:null,url:null},c=null!=a.playlist&&a.playlist.hasNext();c=g.dX(a.J)&&(!a.u||c);var d=a.u&&g.qX(a.J),e=Tya(a),f=a.u&&5===a.J.getPresentingPlayerType(),h=g.QX(a.J,"\u6b21\u3078","SHIFT+n"),l=g.QX(a.J,"\u524d\u3078","SHIFT+p");if(f)b.title="\u52d5\u753b\u3092\u958b\u59cb";else if(a.C)b.title="\u3082\u3046\u4e00\u56de\u898b\u308b";else if(c){var m=null;a.playlist&&(m=a.playlist.Ka(a.u?wG(a.playlist):xG(a.playlist)));if(m){if(m.videoId){var n=
a.playlist.listId;b.url=a.J.T().getVideoUrl(m.videoId,n?n.toString():void 0)}b.text=m.title;b.duration=m.lengthSeconds?g.VO(m.lengthSeconds):null;b.preview=m.Sd("mqdefault.jpg")}b.title=a.u?h:l}else d&&(a.videoData&&a.videoData.suggestions&&a.videoData.suggestions.length&&(l=g.EZ(a.J.T(),a.videoData.suggestions[0]),b.url=l.kk(),b.text=l.title,b.duration=l instanceof g.qF?g.VO(l.lengthSeconds):null,b.preview=l.Sd("mqdefault.jpg")),b.title=h);b.disabled=!d&&!c&&!e&&!f;a.update(b);a.G=!!b.url;d||c||
a.C||e||f?a.B||(a.B=g.oY(a.tooltip,a.element),a.F=a.wa("click",a.onClick,a)):a.B&&(a.B(),a.B=null,a.Db(a.F),a.F=null);OY(a.tooltip)};
HZ=function(){g.V.call(this,{I:"div",L:"ytp-chapter-hover-container",S:[{I:"div",L:"ytp-progress-bar-padding"},{I:"div",L:"ytp-progress-list",S:[{I:"div",ha:["ytp-play-progress","ytp-swatch-background-color"]},{I:"div",L:"ytp-load-progress"},{I:"div",L:"ytp-hover-progress"},{I:"div",L:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.width=0;this.C=this.ga("ytp-ad-progress-list");this.D=this.ga("ytp-load-progress");this.F=this.ga("ytp-play-progress");this.B=this.ga("ytp-hover-progress");
this.u=this.ga("ytp-chapter-hover-container")};
IZ=function(a,b){g.lg(a.u,"width",b)};
JZ=function(a,b){g.lg(a.u,"margin-right",b+"px")};
Uya=function(){this.C=this.position=this.D=this.u=this.F=this.B=this.width=NaN};
Vya=function(){g.V.call(this,{I:"div",L:"ytp-timed-marker"});this.timeRangeStartMillis=NaN;this.thumbnailUrl=this.title="";this.onActiveCommand=void 0};
g.KZ=function(a,b){g.wN.call(this,{I:"div",L:"ytp-progress-bar-container",U:{"aria-disabled":"true"},S:[{I:"div",ha:["ytp-progress-bar",a.T().u?"ytp-mobile":""],U:{tabindex:"0",role:"slider","aria-label":"\u79fb\u52d5\u30b9\u30e9\u30a4\u30c0\u30fc","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},S:[{I:"div",L:"ytp-chapters-container"},{I:"div",L:"ytp-marker-crenellation-list"},{I:"div",L:"ytp-timed-markers-container"},{I:"div",
L:"ytp-clip-start-exclude"},{I:"div",L:"ytp-clip-end-exclude"},{I:"div",L:"ytp-scrubber-container",S:[{I:"div",ha:["ytp-scrubber-button","ytp-swatch-background-color"],S:[{I:"div",L:"ytp-scrubber-pull-indicator"}]}]}]},{I:"div",L:"ytp-bound-time-left",Z:"{{boundTimeLeft}}"},{I:"div",L:"ytp-bound-time-right",Z:"{{boundTimeRight}}"},{I:"div",L:"ytp-clip-start",U:{title:"{{clipstarttitle}}"},Z:"{{clipstarticon}}"},{I:"div",L:"ytp-clip-end",U:{title:"{{clipendtitle}}"},Z:"{{clipendicon}}"}]});this.api=
a;this.ac=!1;this.C=this.be=0;this.ea=1;this.ce=this.N=0;this.D=null;this.W=this.qb=0;this.Yc=this.ga("ytp-marker-crenellation-list");this.Y={};this.Qa={};this.clipEnd=Infinity;this.za=this.ga("ytp-clip-end");this.sb=new g.vs(this.za,!0);this.Fc=this.ga("ytp-clip-end-exclude");this.Ve=this.ga("ytp-clip-start-exclude");this.clipStart=0;this.Ea=this.ga("ytp-clip-start");this.xb=new g.vs(this.Ea,!0);this.K=this.ia=0;this.Oc=this.ga("ytp-progress-bar");this.Ja=void 0;this.Lb={};this.bb=this.ga("ytp-chapters-container");
this.ge=this.ga("ytp-timed-markers-container");this.Ca=[];this.ra=[];this.da=-1;this.Pb=g.P(this.api.T().experiments,"web_macro_markers_snapping_threshold");this.ka=this.X=0;this.G=null;this.de=this.ga("ytp-scrubber-button");this.ue=this.ga("ytp-scrubber-container");this.Pa=new g.ee;this.nd=new Uya;this.u=new eP(0,0);this.F=null;this.B=this.Zb=!1;this.yd=null;this.tooltip=b.Ib();g.$f(this,g.oY(this.tooltip,this.za));g.C(this,this.sb);this.sb.subscribe("hoverstart",this.YD,this);this.sb.subscribe("hoverend",
this.XD,this);this.R(this.za,"click",this.au);g.$f(this,g.oY(this.tooltip,this.Ea));g.C(this,this.xb);this.xb.subscribe("hoverstart",this.YD,this);this.xb.subscribe("hoverend",this.XD,this);this.R(this.Ea,"click",this.au);Wya(this);this.R(a,"resize",this.Sa);this.R(a,"presentingplayerstatechange",this.zL);this.R(a,"videodatachange",this.oD);this.R(a,"videoplayerreset",this.wJ);this.R(a,"cuerangesadded",this.uG);this.R(a,"cuerangesremoved",this.xQ);this.R(a,"cuerangemarkersupdated",this.uG);this.R(a,
"onLoopRangeChange",this.tG);this.updateVideoData(a.getVideoData(),!0);this.tG(a.getLoopRange())};
Wya=function(a){if(0===a.Ca.length){var b=new HZ;a.Ca.push(b);g.C(a,b);b.fa(a.bb,0)}for(;1<a.Ca.length;)a.Ca.pop().dispose();IZ(a.Ca[0],"100%");a.Ca[0].startTime=0;a.Ca[0].title=""};
Xya=function(a){for(;a.ra.length;)a.ra.pop().dispose()};
Zya=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=Yya(a,d.timeRangeStartMillis/(1E3*a.u.u),LZ(a));g.lg(d.element,"transform","translateX("+e+"px)")}};
$ya=function(a,b){for(var c=0,d=g.q(b),e=d.next();!e.done;e=d.next()){e=e.value;if(e.chapterRenderer){e=e.chapterRenderer;var f={startTime:NaN,title:null,onActiveCommand:void 0},h=e.title;h&&h.simpleText&&(f.title=h.simpleText);h=e.timeRangeStartMillis;null!=h&&(f.startTime=h);f.onActiveCommand=e.onActiveCommand;e=f;0===c&&0!==e.startTime&&(a.Ca[c].startTime=0,a.Ca[c].title="",a.Ca[c].onActiveCommand=e.onActiveCommand,c++);a.Ca.length<=c&&(f=new HZ,a.Ca.push(f),g.C(a,f),f.fa(a.bb,a.bb.children.length));
a.Ca[c].startTime=e.startTime;a.Ca[c].title=e.title?e.title:"";a.Ca[c].onActiveCommand=e.onActiveCommand}c++}for(;c<a.Ca.length;)a.Ca.pop().dispose();g.MZ(a);NZ(a)};
g.MZ=function(a){a.X=a.Ca.length-1;a.ka=0;aza(a,!0)&&aza(a,!1);for(var b=0,c=0;c<a.Ca.length;c++)if(0===a.Ca[c].width){if(c===a.Ca.length-1)for(var d=a.Ca.length-1;0<=d;d--)if(0<a.Ca[d].width){JZ(a.Ca[d],0);IZ(a.Ca[d],Math.floor(a.Ca[d].width)+"px");break}IZ(a.Ca[c],"0")}else c===a.Ca.length-1?IZ(a.Ca[c],Math.floor(a.Ca[c].width+b)+"px"):(b=a.Ca[c].width+b,d=Math.round(b),b-=d,IZ(a.Ca[c],d+"px"))};
aza=function(a,b){var c=0,d=!1,e=a.Ca.length,f=1E3*a.u.u;0===f&&(f=1E3*a.api.getProgressState().seekableEnd);if(0<f&&0<a.C){for(var h=a.C-(a.B?3:2)*a.X,l=0===a.ka?3:h*a.ka,m=g.q(a.Ca),n=m.next();!n.done;n=m.next())n.value.width=0;for(;c<e;){m=f-a.Ca[c].startTime;c<e-1&&(m=a.Ca[c+1].startTime-a.Ca[c].startTime,JZ(a.Ca[c],a.B?3:2));g.I(a.Ca[c].u,"ytp-exp-chapter-hover-container",1<a.Ca.length);n=(0===f?0:m/f*h)+a.Ca[c].width;if(n>l)a.Ca[c].width=n;else{a.Ca[c].width=0;var p=a,r=c,t=p.Ca[r-1];void 0!==
t&&0<t.width?t.width+=n:r<p.Ca.length-1&&(p.Ca[r+1].width+=n);JZ(p.Ca[r],0);b&&(a.X--,m/f>a.ka&&(a.ka=m/f),d=!0)}c++}}return d};
NZ=function(a){if(a.C){var b=a.api.getProgressState(),c=new eP(b.seekableStart,b.seekableEnd),d=gP(c,b.loaded,0);b=gP(c,b.current,0);var e=a.u.B!==c.B||a.u.u!==c.u;a.u=c;OZ(a,b,d);e&&PZ(a);bza(a)}};
RZ=function(a,b){var c=fP(a.u,b.C);if(1<a.Ca.length){c=QZ(a,b.D,!0);for(var d=0,e=0;e<c;e++)0<a.Ca[e].width&&(d+=a.Ca[e].width,d+=a.B?3:2);c=(a.Ca[c].startTime+(b.D-d)/a.Ca[c].width*((c===a.Ca.length-1?1E3*a.u.u:a.Ca[c+1].startTime)-a.Ca[c].startTime))/1E3}return c};
cza=function(a,b,c){return c>=a.Ca.length?!1:Math.abs(b-a.Ca[c].startTime/1E3)/a.u.u*(a.C-(a.B?3:2)*a.X)<a.Pb};
dza=function(a,b,c,d){b=g.$d(b,0,a.B?60:40);a.N=b;var e=a.ea,f=Math.max(a.u.getLength()/a.C,1);a.ea=b/(a.B?60:40)*(f-1)+1;b=a.C*a.ea;a.W=g.$d(d*b-c,0,b-a.C);e!==a.ea&&PZ(a)};
PZ=function(a){var b=LZ(a),c=-b.B/b.u,d=(-b.B+b.width)/b.u,e=Paa(a.Yc),f=0;if(a.N>.2*(a.B?60:40)&&1===a.Ca.length){var h=c*(a.u.getLength()/60),l=d*(a.u.getLength()/60);for(h=Math.ceil(h);h<l;h++){var m=e[f];m||(m=g.Ee("DIV"),a.Yc.appendChild(m));f++;0===h%60?g.un(m,"ytp-60m-progress"):0===h%30?g.un(m,"ytp-30m-progress"):0===h%15?g.un(m,"ytp-15m-progress"):g.un(m,"ytp-1m-progress");var n=(60*h/a.u.getLength()-c)*b.u;m.style.left=n+"px"}}b=a.Zb?a.u.u:0;a.update({boundTimeLeft:g.VO(fP(a.u,c)-b),boundTimeRight:g.VO(fP(a.u,
d)-b)});for(c=e.length-1;c>=f;c--)g.Ie(e[c]);a.element.style.height=a.N+(a.B?8:5)+"px";a.V("height-change",a.N);a.de.style.height=a.N+(a.B?20:13)+"px";e=g.q(Object.keys(a.Y));for(f=e.next();!f.done;f=e.next())eza(a,f.value);SZ(a);OZ(a,a.K,a.ia)};
LZ=function(a){var b=a.Pa.x,c=a.C*a.ea;b=g.$d(b,0,a.C);a.nd.update(b,a.C,-a.W,-(c-a.W-a.C));return a.nd};
OZ=function(a,b,c){a.K=b;a.ia=c;var d=LZ(a),e=a.u.u,f=fP(a.u,a.K),h=g.sK("$PLAY_PROGRESS / $DURATION",{PLAY_PROGRESS:g.VO(f,!0),DURATION:g.VO(e,!0)}),l=SY(a.Ca,1E3*f);l=a.Ca[l].title;a.update({ariamin:Math.floor(a.u.B),ariamax:Math.floor(e),arianow:Math.floor(f),arianowtext:l?l+" "+h:h});e=a.clipStart;f=a.clipEnd;a.F&&2!==a.api.getPresentingPlayerType()&&(e=a.F.startTimeMs/1E3,f=a.F.endTimeMs/1E3);e=gP(a.u,e,0);h=gP(a.u,f,1);f=g.$d(b,e,h);c=g.$d(c,e,h);b=Yya(a,b,d);g.lg(a.ue,"transform","translateX("+
b+"px)");TZ(a,d,e,f,"PLAY_PROGRESS");TZ(a,d,e,c,"LOAD_PROGRESS")};
TZ=function(a,b,c,d,e){var f=a.Ca.length,h=b.u-a.X*(a.B?3:2),l=c*h;c=QZ(a,l);var m=d*h;h=QZ(a,m);"HOVER_PROGRESS"===e&&(h=QZ(a,b.u*d,!0),m=b.u*d-fza(a,b.u*d)*(a.B?3:2));b=Math.max(l-gza(a,c),0);for(d=c;d<f;d++)a.Ca[d].Ma(e).style.left=c===d?b+"px":"0";for(f=c;f<h;f++)d=a.Ca[f].width,UZ(a,a.Ca[f].Ma(e),f===c?d-b:d,d);f=a.Ca[h].width;m=g.$d(m-gza(a,h),0,f);c===h&&(m-=b);UZ(a,a.Ca[h].Ma(e),m,f);m=a.Ca.length;for(h+=1;h<m;h++)UZ(a,a.Ca[h].Ma(e),0,a.Ca[h].width);for(h=0;h<c;h++)UZ(a,a.Ca[h].Ma(e),0,a.Ca[h].width)};
gza=function(a,b){if(b>=a.Ca.length)return a.C;for(var c=0,d=0;d<b;)c+=a.Ca[d].width,d++;return c};
UZ=function(a,b,c,d,e){e||a.api.T().u?b.style.width=c+"px":g.lg(b,"transform","scalex("+(d?c/d:0)+")")};
QZ=function(a,b,c){var d=0;(void 0===c?0:c)&&(b-=fza(a,b)*(a.B?3:2));c=g.q(a.Ca);for(var e=c.next();!e.done;e=c.next()){e=e.value;if(b>e.width)b-=e.width;else break;d++}return d===a.Ca.length?d-1:d};
Yya=function(a,b,c){for(var d=b*a.u.u*1E3,e=-1,f=g.q(a.Ca),h=f.next();!h.done;h=f.next())h=h.value,d>h.startTime&&0<h.width&&e++;return b*(c.u-(a.B?3:2)*a.X)+(a.B?3:2)*(0>e?0:e)+c.B};
fza=function(a,b){for(var c=a.Ca.length,d=0,e=g.q(a.Ca),f=e.next();!f.done;f=e.next())if(f=f.value,0!==f.width)if(b>f.width)b-=f.width,b-=a.B?3:2,d++;else break;return d===c?c-1:d};
SZ=function(a){var b=!!a.F&&2!==a.api.getPresentingPlayerType(),c=a.clipStart,d=a.clipEnd,e=!0,f=!0;b&&a.F?(c=a.F.startTimeMs/1E3,d=a.F.endTimeMs/1E3):(e=c>a.u.B,f=0<a.u.u&&d<a.u.u);g.I(a.element,"ytp-loop-range-enabled",b);g.I(a.element,"ytp-clip-start-enabled",e);g.I(a.element,"ytp-clip-end-enabled",f);b=e?gP(a.u,c,0):0;d=f?gP(a.u,d,1):1;a.Ea.style.left=Math.round(1E3*b)/10+"%";a.za.style.left=Math.round(1E3*d)/10+"%";a.Ve.style.width=Math.round(1E3*b)/10+"%";a.Fc.style.left=Math.round(1E3*d)/10+
"%";a.Fc.style.width=Math.round(1E3*(1-d))/10+"%"};
bza=function(a){var b=LZ(a);TZ(a,b,a.K,Math.max(b.C,a.K),"HOVER_PROGRESS");for(var c=QZ(a,b.u*a.K,!0),d=QZ(a,b.D,!0),e=c;e<=d;e++)g.I(a.Ca[e].B,"ytp-hover-progress-light",b.C>a.K);g.I(a.de,"ytp-scrubber-button-hover",c===d&&1<a.Ca.length)};
eza=function(a,b){var c=a.Y[b],d=a.Qa[b],e=LZ(a),f=gP(a.u,c.start/1E3,0),h=Qha(c,a.B)/e.width;var l=gP(a.u,c.end/1E3,1);h!==Number.POSITIVE_INFINITY&&(f=g.$d(f,0,l-h));l=Math.min(l,f+h);c.color&&(d.style.background=c.color);c=f;f=!0;d.style.left=Math.max(c*e.u+e.B,0)+"px";UZ(a,d,g.$d((l-c)*e.u+e.B,0,e.width),e.width,void 0===f?!1:f)};
hza=function(a,b){var c=b.getId();a.Y[c]===b&&(g.Ie(a.Qa[c]),delete a.Y[c],delete a.Qa[c])};
iza=function(a,b){b?a.G||(a.element.removeAttribute("aria-disabled"),a.G=new g.vs(a.Oc,!0),a.G.subscribe("hovermove",a.IO,a),a.G.subscribe("hoverend",a.HO,a),a.G.subscribe("dragstart",a.GO,a),a.G.subscribe("dragmove",a.KO,a),a.G.subscribe("dragend",a.JO,a),a.yd=a.wa("keydown",a.AL)):a.G&&(a.element.setAttribute("aria-disabled","true"),a.Db(a.yd),a.G.cancel(),a.G.dispose(),a.G=null)};
g.jza=function(a){var b=2*a.C*g.dD();return 1E3*a.u.getLength()/a.api.getPlaybackRate()/b};
VZ=function(a,b,c){g.V.call(this,{I:"button",L:"ytp-button",U:{title:"\u30c6\u30ec\u30d3\u3067\u518d\u751f","aria-haspopup":"true"},Z:"{{icon}}"});this.J=a;this.Ua=c;this.u=null;this.R(a,"onMdxReceiversChange",this.na);this.R(a,"presentingplayerstatechange",this.na);this.R(a,"appresize",this.na);this.na();this.wa("click",this.B,this);g.$f(this,g.oY(b.Ib(),this.element))};
WZ=function(a,b,c){g.V.call(this,{I:"button",ha:["ytp-button","ytp-settings-button"],U:{"aria-haspopup":"true","aria-owns":rN(),title:"\u8a2d\u5b9a","data-tooltip-target-id":"ytp-settings-button"},S:[g.WN()]});this.J=a;this.Ua=c;this.B=!0;this.wa("click",this.C);this.R(a,"onPlaybackQualityChange",this.updateBadge);this.R(a,"videodatachange",this.updateBadge);this.R(a,"webglsettingschanged",this.updateBadge);this.R(a,"appresize",this.u);g.$f(this,g.oY(b.Ib(),this.element));g.rX(this.J,this.element,
this,28663);this.updateBadge();this.u(g.LG(a).getPlayerSize())};
XZ=function(a,b){a.B=!!b;a.u(g.LG(a.J).getPlayerSize())};
YZ=function(a,b){g.DY.call(this,"\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3",6);this.J=a;this.Ua=b;this.u=!1;this.R(a,"videodatachange",this.na);this.R(a,"onApiChange",this.na);this.subscribe("select",this.B,this);this.na()};
g.ZZ=function(a,b,c,d,e,f,h){g.vY.call(this,g.wY({"aria-haspopup":"true"}),b,a);this.Ua=d;this.F=!1;this.B=null;this.options={};this.C=new g.zY(c,void 0,a,e,f,h);g.C(this,this.C);this.wa("keydown",this.CL);this.wa("click",this.open)};
kza=function(a){if(a.B){var b=a.options[a.B];b.element.getAttribute("aria-checked");b.element.removeAttribute("aria-checked");a.B=null}};
g.$Z=function(a,b){g.AY(a.C);for(var c={},d=!1,e=0;e<b.length;e++){var f=b[e],h=a.options[f],l=f===a.B;l&&(d=!0);h&&h.priority===-e?(l=a,g.uY(l.options[f],l.qh(f,!0)),delete a.options[f]):h=a.kv(f,-e,l);c[f]=h;a.C.Nb(h,!0)}d||(a.B=null);d=g.q(Object.keys(a.options));for(e=d.next();!e.done;e=d.next())a.options[e.value].dispose();a.options=c};
a_=function(a,b){g.ZZ.call(this,"\u97f3\u58f0\u30c8\u30e9\u30c3\u30af",3,a,b);this.J=a;this.tracks={};this.u=new g.V({I:"div",S:[{I:"span",Z:"\u97f3\u58f0\u30c8\u30e9\u30c3\u30af"},{I:"span",L:"ytp-menuitem-label-count",Z:"{{content}}"}]});g.C(this,this.u);g.uY(this,this.u);this.R(a,"videodatachange",this.na);this.R(a,"onPlaybackAudioChange",this.na);this.na()};
b_=function(a,b){g.DY.call(this,"\u81ea\u52d5\u518d\u751f",7);this.J=a;this.Ua=b;this.u=!1;this.B=[];this.R(a,"presentingplayerstatechange",this.C);this.subscribe("select",this.F,this);g.rX(a,this.element,this,113682);this.C()};
c_=function(a,b,c,d){d=new g.V({I:"div",ha:["ytp-linked-account-popup-button"],Z:d,U:{role:"button",tabindex:"0"}});b=new g.V({I:"div",L:"ytp-linked-account-popup",U:{role:"dialog","aria-modal":"true",tabindex:"-1"},S:[{I:"div",L:"ytp-linked-account-popup-title",Z:b},{I:"div",L:"ytp-linked-account-popup-description",Z:c},{I:"div",L:"ytp-linked-account-popup-buttons",S:[d]}]});g.$X.call(this,a,{I:"div",L:"ytp-linked-account-popup-container",S:[b]},100);var e=this;this.dialog=b;g.C(this,this.dialog);
d.wa("click",function(){e.fb()});
g.C(this,d);g.uP(this.J,this.element,4);this.hide()};
d_=function(a,b){g.vY.call(this,g.wY({"aria-haspopup":"true"}),1);this.J=a;this.Ua=b;this.B=this.u=!1;this.R(this.J,"videodatachange",this.D);this.wa("click",this.onClick);this.D()};
e_=function(a){return a?g.S(a):""};
f_=function(a,b){g.ZZ.call(this,"\u753b\u8cea",2,a,b);this.J=a;this.D={};this.u="unknown";g.H(this.C.element,"ytp-quality-menu");this.R(a,"videodatachange",this.Gp);this.R(a,"videoplayerreset",this.Gp);this.R(a,"onPlaybackQualityChange",this.pD);this.Gp()};
lza=function(a,b,c){a=a.D[b];var d=g.gw[b];c={I:"span",ha:c,S:[a?a.qualityLabel:d?d+"p":"\u81ea\u52d5"]};var e;"highres"===b?e="8K":"hd2880"===b?e="5K":"hd2160"===b?e="4K":0===b.indexOf("hd")&&"hd720"!==b&&(e="HD");e&&(c.S.push(" "),c.S.push({I:"sup",L:"ytp-swatch-color",Z:e}));return c};
g_=function(a,b,c,d,e,f,h){g.V.call(this,{I:"div",L:"ytp-slider-section",U:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},S:[{I:"div",L:"ytp-slider",S:[{I:"div",L:"ytp-slider-handle"}]}]});this.G=a;this.F=b;this.minimumValue=c;this.maximumValue=d;this.K=e;this.N=f;this.range=this.maximumValue-this.minimumValue;this.Y=this.ga("ytp-slider-section");this.B=this.ga("ytp-slider");this.W=this.ga("ytp-slider-handle");
this.D=new g.vs(this.B,!0);this.u=h?h:c;g.C(this,this.D);this.D.subscribe("dragmove",this.HL,this);this.R(this.element,"keydown",this.IL);this.R(this.element,"wheel",this.GL);this.init()};
i_=function(a){g_.call(this,.05,.05,a.getAvailablePlaybackRates()[0],a.getAvailablePlaybackRates()[a.getAvailablePlaybackRates().length-1],150,20,a.getPlaybackRate());this.J=a;this.C=g.Ee("P");this.ba=kaa(this.X,this);g.H(this.B,"ytp-speedslider");g.H(this.C,"ytp-speedslider-text");a=this.C;var b=this.B;b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling);h_(this);this.R(this.J,"onPlaybackRateChange",this.ea)};
h_=function(a){a.C.textContent=j_(a,a.u)+"x"};
j_=function(a,b){var c=Number(g.$d(b,a.minimumValue,a.maximumValue).toFixed(2)),d=Math.floor(100*(c+.001)%5+2E-15),e=c;0!==d&&(e=c-.01*d);return Number(e.toFixed(2))};
k_=function(a){g.wN.call(this,{I:"div",L:"ytp-speedslider-component"});this.u=new i_(a);g.C(this,this.u);this.element.appendChild(this.u.element)};
mza=function(a){var b=new k_(a);yY.call(this,a,b,"\u30ab\u30b9\u30bf\u30e0");g.C(this,b)};
l_=function(a,b){var c=new mza(a);g.ZZ.call(this,"\u518d\u751f\u901f\u5ea6",5,a,b,"\u30ab\u30b9\u30bf\u30e0",function(){g.FY(b,c)});
g.C(this,c);this.J=a;this.D=this.u=this.K=null;this.G=this.J.getAvailablePlaybackRates();this.R(a,"presentingplayerstatechange",this.na);this.na()};
nza=function(a,b){var c=m_(b);a.options[c]?a.yc(c):b===a.D&&a.u&&(a.yc(a.u),a.qc(b.toString()))};
pza=function(a){g.$Z(a,a.G.map(m_));a.u=null;a.D=null;var b=a.J.getPlaybackRate();a.G.includes(b)||(oza(a,b),g.ZZ.prototype.He.call(a,a.u))};
oza=function(a,b){a.D=b;a.u=g.sK("\u30ab\u30b9\u30bf\u30e0\uff08$CURRENT_CUSTOM_SPEED\uff09",{CURRENT_CUSTOM_SPEED:b.toString()});var c=a.G.map(m_);c.unshift(a.u);g.$Z(a,c)};
m_=function(a){return a.toString()};
n_=function(a,b,c,d){var e=new g.zY(b,void 0,"\u52d5\u753b\u306e\u30aa\u30fc\u30d0\u30fc\u30e9\u30a4\u30c9");g.ZZ.call(this,d.text||"",a,b,c,"\u52d5\u753b\u306e\u30aa\u30fc\u30d0\u30fc\u30e9\u30a4\u30c9",function(){g.FY(c,e)});
var f=this;g.H(this.element,"ytp-subtitles-options-menu-item");this.setting=d.option.toString();a=d.options;this.settings=g.Hb(a,this.getKey,this);this.G=e;g.C(this,this.G);b=new g.vY({I:"div",L:"ytp-menuitemtitle",Z:"\u52d5\u753b\u3067\u6307\u5b9a\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u5225\u306e\u5b57\u5e55\u30b9\u30bf\u30a4\u30eb\u3092\u8a31\u53ef\u3057\u307e\u3059\u3002"},0);g.C(this,b);this.G.Nb(b,!0);this.D=new g.vY({I:"div",L:"ytp-menuitem",U:{role:"menuitemradio",tabindex:"0"},
S:[{I:"div",L:"ytp-menuitem-label",Z:"\u30aa\u30f3"}]},-1);g.C(this,this.D);this.G.Nb(this.D,!0);this.R(this.D.element,"click",function(){qza(f,!0)});
this.u=new g.vY({I:"div",L:"ytp-menuitem",U:{role:"menuitemradio",tabindex:"0"},S:[{I:"div",L:"ytp-menuitem-label",Z:"\u30aa\u30d5"}]},-2);g.C(this,this.u);this.G.Nb(this.u,!0);this.R(this.u.element,"click",function(){qza(f,!1)});
g.$Z(this,g.Pc(a,this.getKey))};
qza=function(a,b){a.V("settingChange",a.setting+"Override",!b);a.Ua.Of()};
o_=function(a,b){g.zY.call(this,a,void 0,"\u30aa\u30d7\u30b7\u30e7\u30f3");var c=this;this.zk={};for(var d=0;d<g.UY.length;d++){var e=g.UY[d],f=new n_(-d,a,b,e);g.C(this,f);f.subscribe("settingChange",this.Lf,this);this.zk[e.option.toString()]=f;this.Nb(f,!0)}d=new g.vY(g.wY(),-g.UY.length,"\u30ea\u30bb\u30c3\u30c8");g.C(this,d);d.wa("click",function(){c.Lf("reset",!0)});
this.Nb(d,!0)};
p_=function(a,b){g.ZZ.call(this,"\u81ea\u52d5\u7ffb\u8a33",0,a,b);this.languages={}};
rza=function(a,b){a.languages=g.Hb(b,a.getKey,a);g.$Z(a,g.Pc(b,a.getKey))};
q_=function(a,b){var c=new o_(a,b),d=["\u3053\u306e\u8a2d\u5b9a\u306f\u73fe\u5728\u306e\u52d5\u753b\u306b\u306e\u307f\u9069\u7528\u3055\u308c\u307e\u3059\u3002\u3059\u3079\u3066\u306e\u52d5\u753b\u306e\u5b57\u5e55\u306e\u8868\u793a\u8a2d\u5b9a\u306f "," \u3067\u8abf\u6574\u3067\u304d\u307e\u3059\u3002"],e;g.kD(a.T())&&(e={I:"div",L:"ytp-panel-footer-content",S:[{I:"span",Z:d[0]},{I:"a",L:"ytp-panel-footer-content-link",Z:"\u8a2d\u5b9a",U:{href:"/account_playback"}},{I:"span",Z:d[1]}]});g.ZZ.call(this,
"\u5b57\u5e55",4,a,b,"\u30aa\u30d7\u30b7\u30e7\u30f3",function(){g.FY(b,c)},e);
var f=this;this.J=a;this.Ua=b;this.tracks={};this.G=new g.F(function(){sza(f,!1)},3E3);
g.C(this,this.G);this.K=new g.V({I:"div",S:[{I:"span",Z:"\u5b57\u5e55"},{I:"span",L:"ytp-menuitem-label-count",Z:"{{content}}"}]});g.C(this,this.K);g.uY(this,this.K);this.u=new p_(a,b);g.C(this,this.u);this.u.subscribe("select",this.NL,this);this.D=c;g.C(this,this.D);this.D.subscribe("settingChange",this.Lf,this);b.subscribe("show",this.nP,this);this.R(a,"videodatachange",this.na);this.R(a,"onApiChange",this.na);this.R(a,"onCaptionsTrackListChanged",this.na);this.R(a,"captionschanged",this.na);this.na()};
sza=function(a,b){a.J.setOption("captions","sampleSubtitles",b)};
r_=function(a){g.HY.call(this,a,"ytp-settings-menu");var b=this;this.Vc=new g.zY(this.J);this.lx=this.settingsButton=null;this.Fd=!1;g.C(this,this.Vc);this.hide();g.FY(this,this.Vc);g.rX(a,this.element,this,108341,!0);this.subscribe("show",function(c){b.Eg(c)})};
tza=function(a,b){a.settingsButton=b;a.element.id=b.element.getAttribute("aria-owns")};
s_=function(a,b){g.V.call(this,{I:"button",ha:["ytp-size-button","ytp-button"],U:{title:"{{title}}"},Z:"{{icon}}"});this.J=a;this.isWidescreen=null;this.transition=new zZ;this.tooltip=b.Ib();g.C(this,this.transition);this.R(a,"sizestylechange",this.na);this.R(a,"fullscreentoggled",this.na);this.R(a,"presentingplayerstatechange",this.na);this.na();this.wa("click",this.onClick);g.$f(this,g.oY(this.tooltip,this.element))};
t_=function(a,b){g.V.call(this,{I:"button",ha:["ytp-subtitles-button","ytp-button"],U:{"aria-pressed":"{{pressed}}",title:g.QX(a,"\u5b57\u5e55","c")},S:[qoa()]});this.J=a;this.R(a,"videodatachange",this.na);this.R(a,"appresize",this.na);this.R(a,"onApiChange",this.na);this.R(a,"onCaptionsTrackListChanged",this.na);this.R(a,"captionschanged",this.na);this.na();this.wa("click",this.onClick);g.$f(this,g.oY(b.Ib(),this.element))};
g.u_=function(a,b,c){c=void 0===c?350:c;g.V.call(this,{I:"div",ha:["ytp-time-display","notranslate"],S:[{I:"span",L:"ytp-time-current",Z:"{{currenttime}}"},{I:"span",L:"ytp-time-separator",Z:" / "},{I:"span",L:"ytp-time-duration",Z:"{{duration}}"}]});this.api=a;this.K=c;this.liveBadge=new g.V({I:"button",ha:["ytp-live-badge","ytp-button"],U:{disabled:"true"},Z:"{{content}}"});this.u=null;this.B=!1;this.G=this.F=null;this.isPremiere=!1;this.D=this.C=null;this.liveBadge.qc("\u30e9\u30a4\u30d6");g.C(this,
this.liveBadge);this.liveBadge.fa(this.element);this.tooltip=b.Ib();this.wa("click",this.onClick);this.R(a,"presentingplayerstatechange",this.Hc);this.R(a,"appresize",this.Hc);this.R(a,"videodatachange",this.Na);(a=a.getVideoData())&&this.updateVideoData(a);this.Hc()};
x_=function(a,b,c){g.V.call(this,{I:"div",L:"ytp-volume-panel",U:{role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},S:[{I:"div",L:"ytp-volume-slider",S:[{I:"div",L:"ytp-volume-slider-handle"}]}]});var d=this;this.api=a;this.B=b;this.K=c;this.ih=!1;this.X=this.volume=0;this.N=null;this.D=this.u=this.C=!1;this.B=b;this.K=c;this.F=b.Id();this.W=this.ga("ytp-volume-slider");this.Y=this.ga("ytp-volume-slider-handle");this.G=
new g.vs(this.W,!0);g.C(this,this.G);this.G.subscribe("dragstart",this.rP,this);this.G.subscribe("dragmove",this.RL,this);this.G.subscribe("dragend",this.qP,this);this.R(a,"onVolumeChange",this.TL);this.R(a,"appresize",this.sD);this.R(a,"fullscreentoggled",this.Dj);this.R(a,"onShowControls",this.EA);this.R(a,"onHideControls",this.EA);this.R(this.element,"keydown",this.SL);this.R(this.element,"focus",function(){v_(d,d.u,d.C,!0,d.B.ih())});
this.R(this.element,"blur",function(){v_(d,d.u,d.C,!1,d.B.ih())});
this.sD(g.LG(a).getPlayerSize());w_(this,a.getVolume(),a.isMuted())};
w_=function(a,b,c){var d=Math.floor(b),e=d+"% \u97f3\u91cf"+(c?" \u30df\u30e5\u30fc\u30c8\u6e08\u307f":"");c=c?0:b/100;a.xa("valuenow",d);a.xa("valuetext",e);a.Y.style.left=(a.F?60:40)*c+"px";a.volume=b};
uza=function(a,b){g.I(a.element,"ytp-volume-control-hover",b);v_(a,b,a.C,a.D,a.B.ih())};
v_=function(a,b,c,d,e){var f=a.u||a.C||a.D||a.ih;a.u=b;a.C=c;a.D=d;a.ih=e;b=a.u||a.C||a.D||a.ih;f!==b&&(b?a.N=a.R(a.element,"wheel",a.QL):(a.Db(a.N),a.N=null),g.I(a.K,"ytp-volume-slider-active",b))};
g.y_=function(a,b){var c=a.T(),d=g.aD(c);0===d.indexOf("www.")&&(d=d.substring(4));var e=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"],f=g.OC(c);f&&e.push("ytp-youtube-music-button");g.V.call(this,{I:"a",ha:e,U:{href:"{{url}}",target:c.F,title:g.sK("$WEBSITE \u3067\u8996\u8074\u3059\u308b",{WEBSITE:d}),"data-sessionlink":"feature=player-button"},S:[f?{I:"svg",U:{viewBox:"0 0 77 20"},S:[{I:"g",U:{fill:"none"},S:[{I:"path",U:{d:"M27.71 3.30a3.53 3.53 0 0 0-2.49-2.49c-2.19-.59-11.00-.59-11.00-.59s-8.81 0-11.00.59A3.53 3.53 0 0 0 .71 3.30c-.59 2.20-.59 6.8-.59 6.8s0 4.59.59 6.8a3.53 3.53 0 0 0 2.49 2.49c2.19.59 11.00.59 11.00.59s8.81 0 11.00-.59a3.53 3.53 0 0 0 2.49-2.49c.59-2.20.59-6.8.59-6.8s-.00-4.59-.59-6.8z",
fill:"red"}},{I:"path",U:{d:"M11.39 14.34l7.32-4.23-7.32-4.24zM40.69 7.88c-.50 2.56-.88 5.69-1.08 6.98h-.14c-.16-1.33-.54-4.44-1.06-6.97l-1.29-6.28h-3.92v16.95h2.43V4.60l.24 1.30 2.47 12.66h2.43L43.21 5.91l.26-1.31v13.97h2.43V1.62h-3.96L40.7 7.88zm11.80 8.14c-.22.46-.70.78-1.19.78-.56 0-.78-.44-.78-1.53V6.19h-2.78v9.25c0 2.28.74 3.33 2.39 3.33 1.12 0 2.03-.50 2.66-1.71h.06l.24 1.51h2.17V6.19h-2.78v9.84h.00zm8.15-4.94c-.90-.66-1.47-1.11-1.47-2.08 0-.68.32-1.07 1.08-1.07.78 0 1.04.54 1.06 2.40l2.33-.1c.18-3.01-.80-4.26-3.36-4.26-2.37 0-3.54 1.07-3.54 3.27 0 2 .96 2.91 2.53 4.1 1.35 1.05 2.13 1.63 2.13 2.48 0 .64-.40 1.09-1.10 1.09-.82 0-1.31-.78-1.18-2.16l-2.35.04c-.36 2.56.66 4.06 3.40 4.06 2.39 0 3.64-1.11 3.64-3.33.00-2.02-1.00-2.82-3.18-4.44zm4.71-4.88h2.66v12.38h-2.66zm1.35-4.88c-1.02 0-1.51.38-1.51 1.71 0 1.37.48 1.71 1.51 1.71 1.04 0 1.51-.34 1.51-1.71 0-1.27-.46-1.71-1.51-1.71zm10.25 12.80l-2.43-.12c0 2.18-.24 2.88-1.06 2.88s-.96-.78-.96-3.35V11.12c0-2.48.16-3.27.98-3.27.76 0 .96.74.96 3.05l2.41-.16c.16-1.92-.08-3.23-.82-3.98-.54-.54-1.37-.80-2.51-.80-2.7 0-3.80 1.45-3.80 5.53v1.73c0 4.20.94 5.55 3.70 5.55 1.17 0 1.97-.24 2.51-.76.78-.73 1.08-1.98 1.02-3.90z",
fill:"#fff"}}]}]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},S:[{I:"path",rb:!0,L:"ytp-svg-fill",U:{d:"M 45.09 10 L 45.09 25.82 L 47.16 25.82 L 47.41 24.76 L 47.47 24.76 C 47.66 25.14 47.94 25.44 48.33 25.66 C 48.72 25.88 49.16 25.99 49.63 25.99 C 50.48 25.99 51.1 25.60 51.5 24.82 C 51.9 24.04 52.09 22.82 52.09 21.16 L 52.09 19.40 C 52.12 18.13 52.05 17.15 51.90 16.44 C 51.75 15.74 51.50 15.23 51.16 14.91 C 50.82 14.59 50.34 14.44 49.75 14.44 C 49.29 14.44 48.87 14.57 48.47 14.83 C 48.27 14.96 48.09 15.11 47.93 15.29 C 47.78 15.46 47.64 15.65 47.53 15.86 L 47.51 15.86 L 47.51 10 L 45.09 10 z M 8.10 10.56 L 10.96 20.86 L 10.96 25.82 L 13.42 25.82 L 13.42 20.86 L 16.32 10.56 L 13.83 10.56 L 12.78 15.25 C 12.49 16.62 12.31 17.59 12.23 18.17 L 12.16 18.17 C 12.04 17.35 11.84 16.38 11.59 15.23 L 10.59 10.56 L 8.10 10.56 z M 30.10 10.56 L 30.10 12.58 L 32.59 12.58 L 32.59 25.82 L 35.06 25.82 L 35.06 12.58 L 37.55 12.58 L 37.55 10.56 L 30.10 10.56 z M 19.21 14.46 C 18.37 14.46 17.69 14.63 17.17 14.96 C 16.65 15.29 16.27 15.82 16.03 16.55 C 15.79 17.28 15.67 18.23 15.67 19.43 L 15.67 21.06 C 15.67 22.24 15.79 23.19 16 23.91 C 16.21 24.62 16.57 25.15 17.07 25.49 C 17.58 25.83 18.27 26 19.15 26 C 20.02 26 20.69 25.83 21.19 25.5 C 21.69 25.17 22.06 24.63 22.28 23.91 C 22.51 23.19 22.63 22.25 22.63 21.06 L 22.63 19.43 C 22.63 18.23 22.50 17.28 22.27 16.56 C 22.04 15.84 21.68 15.31 21.18 14.97 C 20.68 14.63 20.03 14.46 19.21 14.46 z M 56.64 14.47 C 55.39 14.47 54.51 14.84 53.99 15.61 C 53.48 16.38 53.22 17.60 53.22 19.27 L 53.22 21.23 C 53.22 22.85 53.47 24.05 53.97 24.83 C 54.34 25.40 54.92 25.77 55.71 25.91 C 55.97 25.96 56.26 25.99 56.57 25.99 C 57.60 25.99 58.40 25.74 58.96 25.23 C 59.53 24.72 59.81 23.94 59.81 22.91 C 59.81 22.74 59.79 22.61 59.78 22.51 L 57.63 22.39 C 57.62 23.06 57.54 23.54 57.40 23.83 C 57.26 24.12 57.01 24.27 56.63 24.27 C 56.35 24.27 56.13 24.18 56.00 24.02 C 55.87 23.86 55.79 23.61 55.75 23.25 C 55.71 22.89 55.68 22.36 55.68 21.64 L 55.68 21.08 L 59.86 21.08 L 59.86 19.16 C 59.86 17.99 59.77 17.08 59.58 16.41 C 59.39 15.75 59.07 15.25 58.61 14.93 C 58.15 14.62 57.50 14.47 56.64 14.47 z M 23.92 14.67 L 23.92 23.00 C 23.92 24.03 24.11 24.79 24.46 25.27 C 24.82 25.76 25.35 26.00 26.09 26.00 C 27.16 26.00 27.97 25.49 28.5 24.46 L 28.55 24.46 L 28.76 25.82 L 30.73 25.82 L 30.73 14.67 L 28.23 14.67 L 28.23 23.52 C 28.13 23.73 27.97 23.90 27.77 24.03 C 27.57 24.16 27.37 24.24 27.15 24.24 C 26.89 24.24 26.70 24.12 26.59 23.91 C 26.48 23.70 26.43 23.35 26.43 22.85 L 26.43 14.67 L 23.92 14.67 z M 36.80 14.67 L 36.80 23.00 C 36.80 24.03 36.98 24.79 37.33 25.27 C 37.60 25.64 37.97 25.87 38.45 25.96 C 38.61 25.99 38.78 26.00 38.97 26.00 C 40.04 26.00 40.83 25.49 41.36 24.46 L 41.41 24.46 L 41.64 25.82 L 43.59 25.82 L 43.59 14.67 L 41.09 14.67 L 41.09 23.52 C 40.99 23.73 40.85 23.90 40.65 24.03 C 40.45 24.16 40.23 24.24 40.01 24.24 C 39.75 24.24 39.58 24.12 39.47 23.91 C 39.36 23.70 39.31 23.35 39.31 22.85 L 39.31 14.67 L 36.80 14.67 z M 56.61 16.15 C 56.88 16.15 57.08 16.23 57.21 16.38 C 57.33 16.53 57.42 16.79 57.47 17.16 C 57.52 17.53 57.53 18.06 57.53 18.78 L 57.53 19.58 L 55.69 19.58 L 55.69 18.78 C 55.69 18.05 55.71 17.52 55.75 17.16 C 55.79 16.81 55.87 16.55 56.00 16.39 C 56.13 16.23 56.32 16.15 56.61 16.15 z M 19.15 16.19 C 19.50 16.19 19.75 16.38 19.89 16.75 C 20.03 17.12 20.09 17.7 20.09 18.5 L 20.09 21.97 C 20.09 22.79 20.03 23.39 19.89 23.75 C 19.75 24.11 19.51 24.29 19.15 24.30 C 18.80 24.30 18.54 24.11 18.41 23.75 C 18.28 23.39 18.22 22.79 18.22 21.97 L 18.22 18.5 C 18.22 17.7 18.28 17.12 18.42 16.75 C 18.56 16.38 18.81 16.19 19.15 16.19 z M 48.63 16.22 C 48.88 16.22 49.08 16.31 49.22 16.51 C 49.36 16.71 49.45 17.05 49.50 17.52 C 49.55 17.99 49.58 18.68 49.58 19.55 L 49.58 21 L 49.59 21 C 49.59 21.81 49.57 22.45 49.5 22.91 C 49.43 23.37 49.32 23.70 49.16 23.89 C 49.00 24.08 48.78 24.17 48.51 24.17 C 48.30 24.17 48.11 24.12 47.94 24.02 C 47.76 23.92 47.62 23.78 47.51 23.58 L 47.51 17.25 C 47.59 16.95 47.75 16.70 47.96 16.50 C 48.17 16.31 48.39 16.22 48.63 16.22 z "}}]}]});
this.api=a;this.visible=!1;g.rX(a,this.element,this,28666);this.wa("click",this.onClick);this.R(a,"videodatachange",this.Na);this.R(a,"onLoopRangeChange",this.Na);this.Na();g.$f(this,g.oY(b.Ib(),this.element))};
A_=function(a,b,c){g.nR.call(this);var d=this;this.J=a;this.B=b;this.zc=c;this.ka=NaN;this.ea=this.ia=null;this.u=new r_(this.J);this.Oc=new g.KZ(this.J,this.B);this.muteButton=null;this.Ih=new g.u_(this.J,this.B);this.D=this.F=this.N=this.P=null;this.X=new CZ(this.J,this.B);this.da=new g.vZ(this.J,this.B);this.Ed=new g.mn(this.Pp,null,this);this.K=null;c=a.T();this.zc.subscribe("autohideupdate",this.xh,this);var e=!g.uJ(a).isCued(),f=this.J.T().ca("html5_player_bottom_linear_gradient");f||!g.OC(c)&&
!g.Q(a.T().experiments,"html5_player_dynamic_bottom_gradient")?f=f?new g.V({I:"div",L:"ytp-gradient-bottom-container",S:[{I:"div",L:"ytp-gradient-bottom-extension"},{I:"div",L:"ytp-gradient-bottom"}]}):new g.V({I:"div",L:"ytp-gradient-bottom"}):this.ea=f=new g.pZ(a);g.C(this,f);g.uP(a,f.element,8);this.ba=new g.fO(f,250,e,100);g.C(this,this.ba);this.C=new g.V({I:"div",L:"ytp-chrome-bottom",S:[{I:"div",L:"ytp-chrome-controls"}]});g.C(this,this.C);g.uP(a,this.C.element,8);this.Y=new g.fO(this.C,250,
e,100);g.C(this,this.Y);this.W=this.C.element.children[0];g.$f(this.u,function(){a.Dl()===d.u&&(a.N=null)});
g.C(this,this.u);a.N=this.u;g.uP(a,this.u.element,6);this.u.subscribe("show",function(m){var n=d.B.Ib(),p=!m;if(null!=n.type)if(p)switch(n.type){case 3:case 2:z_(n);n.G.show();break;default:n.G.show()}else n.G.hide();n.K=p;b.Dy(d.u,m)});
g.C(this,this.Oc);this.Oc.fa(this.C.element,0);e=new g.rZ(a);g.C(this,e);g.uP(a,e.element,4);f=new g.sN({I:"div",L:"ytp-left-controls"});g.C(this,f);f.fa(this.W);e=new g.GZ(a,b,!1);g.C(this,e);e.fa(f.element);c.Y||(e=new g.DZ(a,b),g.C(this,e),e.fa(f.element));e=new g.GZ(a,b,!0);g.C(this,e);e.fa(f.element);e=new g.V({I:"span",L:"ytp-volume-area"});g.C(this,e);e.fa(f.element);if(!c.Pa&&(this.muteButton=new BZ(a,b),g.C(this,this.muteButton),this.muteButton.fa(e.element),c.W)){var h=new x_(a,b,this.C.element);
g.C(this,h);h.fa(e.element);e=new g.vs(e.element);g.C(this,e);e.subscribe("hoverstart",function(){uza(h,!0)});
e=new g.vs(f.element);g.C(this,e);e.subscribe("hoverend",function(){uza(h,!1)})}g.C(this,this.Ih);
this.Ih.fa(f.element);e=new g.sN({I:"div",L:"ytp-right-controls"});g.C(this,e);this.P=new qZ(a,b,this.Oc,f.element,e.element);g.C(this,this.P);a.T().ca("html5_ux_control_flexbox_killswitch")?this.P.fa(this.W):this.P.fa(f.element);e.fa(this.W);a.T().sb&&g.Q(c.experiments,"web_player_move_autonav_toggle")&&(f=new nZ(a,b),g.C(this,f),f.fa(e.element));g.Q(c.experiments,"external_fullscreen_with_edu")&&c.externalFullscreen&&cD(c)&&(this.N=new uZ(a,b),g.C(this,this.N),this.N.fa(e.element));f=new t_(a,b);
g.C(this,f);f.fa(e.element);f=new WZ(a,b,this.u);g.C(this,f);tza(this.u,f);f.fa(e.element);var l=new yZ(a);g.C(this,l);g.uP(a,l.element,5);l.subscribe("show",function(m){b.ul(l,m)});
f=new xZ(a,b,l);g.C(this,f);f.fa(e.element);f=a.getVideoData();if(c.Qi||f.Lc&&"1"===c.controlsType)this.F=new g.y_(a,b),g.C(this,this.F),this.F.fa(e.element);c.showMiniplayerButton&&!g.Q(a.T().experiments,"web_player_pip")&&(this.D=new wZ(a,b),g.C(this,this.D),this.D.fa(e.element));g.C(this,this.X);this.X.fa(e.element);f.Iy||this.X.hide();c.ge||(f=new s_(a,b),g.C(this,f),f.fa(e.element));c.ce&&(f=new VZ(a,b,this.u),g.C(this,f),f.fa(e.element));c.Th&&(c=new mZ(a,b),g.C(this,c),c.fa(e.element));g.C(this,
this.da);this.da.fa(e.element);g.C(this,this.Ed);this.R(a,"appresize",this.Sa);this.R(a,"fullscreentoggled",this.Sa);this.R(a,"presentingplayerstatechange",this.Dx);this.R(a,"videodatachange",this.Na);this.Sa()};
vza=function(a,b){g.uJ(a.J).isCued()||b?b&&(a.Y.hide(),a.ba.hide(),a.muteButton&&a.muteButton.yb(!1),a.F&&a.F.yb(!1),a.D&&a.D.yb(!1),a.B.Ib().Vh(a.Ma())):b||(a.Y.show(),a.ba.show(),a.muteButton&&a.muteButton.yb(!0),a.F&&a.F.yb(!0),a.D&&a.D.yb(!0),a.xh())};
wza=function(a){var b=g.LG(a.J).getPlayerSize().width;return Math.max(b-2*B_(a),100)};
B_=function(a){var b=a.B.Id();return 12*(a.J.getVideoData().Lc?0:b?2:1)};
C_=function(a){var b=a.B.Id()?72:50;a=a.J.T();g.eD(a)&&(g.Q(a.experiments,"web_player_bigger_buttons")?b=54:g.Q(a.experiments,"web_player_bigger_buttons_like_mobile")&&(b=62));return b};
E_=function(a){g.V.call(this,{I:"div",L:D_.TITLE,S:[{I:"div",L:D_.TEXT,S:[{I:"a",ha:[D_.LINK,D_.SESSIONLINK],U:{target:a.T().F,href:"{{url}}","data-sessionlink":"feature=player-title"},Z:"{{title}}"},{I:"div",L:D_.SUBTEXT,S:[{I:"a",L:D_.CHANNEL_NAME,U:{href:"{{channelLink}}",target:"_blank"},Z:"{{channelName}}"}]}]}]});this.api=a;this.u=null;this.link=this.ga(D_.LINK);g.rX(a,this.element,this,23851);this.R(a,"videodatachange",this.na);this.R(a,"videoplayerreset",this.na);this.na()};
xza=function(a){a.xa("channelLink","");a.xa("channelName","")};
g.F_=function(a,b){g.V.call(this,{I:"div",S:[{I:"div",L:"ytp-tooltip-text-wrapper",S:[{I:"div",L:"ytp-tooltip-image"},{I:"div",L:"ytp-tooltip-title",Z:"{{title}}"},{I:"span",L:"ytp-tooltip-text",Z:"{{text}}"}]},{I:"div",L:"ytp-tooltip-bg",S:[{I:"div",L:"ytp-tooltip-duration",Z:"{{duration}}"}]}]});var c=this;this.api=a;this.ka=b;this.ia=this.api.T();this.da=this.ia.u;this.bg=this.ga("ytp-tooltip-bg");this.image=this.ga("ytp-tooltip-image");this.text=this.ga("ytp-tooltip-text");this.title=this.ga("ytp-tooltip-title");
this.W=function(e){(e=dp(e))&&g.Le(c.B,e)||c.Ai()};
this.D=function(e){3===c.type&&c.Ai();(e=e.currentTarget)&&1===e.nodeType&&!c.type&&(e.removeEventListener("mouseover",c.D),e.addEventListener("mouseout",c.W),e.removeEventListener("focus",c.D),e.addEventListener("blur",c.W),yza(c,e,2))};
this.X=function(){c.Ai()};
this.B=null;this.G=new g.fO(this,100);this.type=null;this.N=!1;this.u=null;this.C=NaN;this.F="";this.ba=g.LG(this.api).getPlayerSize().width;this.K=!0;this.scale=1;this.Y=new g.F(this.aK,250,this);this.ea=new g.F(this.Ai,5E3,this);g.C(this,this.G);g.C(this,this.Y);g.C(this,this.ea);if(CC){var d=this.ga("ytp-tooltip-text");d.setAttribute("role","text");d.setAttribute("aria-live","polite")}};
rY=function(a){a.element.setAttribute("aria-live","polite")};
Bza=function(a,b,c,d,e,f,h,l){if(!a.da){3===a.type&&a.Ai();1!==a.type&&(g.un(a.element,"ytp-tooltip ytp-bottom"),a.type=1,a.K&&a.G.show(),a.u&&a.u.dispose(),a.u=a.api.ag(),a.u&&a.u.subscribe("l",a.hE,a));a.update({text:d,title:h?h:""});g.I(a.text,"ytp-tooltip-text-no-title",1===a.type&&!h);g.I(a.element,"ytp-text-detail",!!e);d=-1;a.u&&(d=iF(a.u,160*a.scale),g.Q(a.ia.experiments,"web_l3_storyboard")&&4===a.u.levels.length&&(d=a.u.levels.length-1),d=nF(a.u,d,c));zza(a,d);if(l)switch(c=g.Bg(a.element).width,
l){case 1:a.title.style.right="0";a.title.style.textAlign="left";break;case 2:a.title.style.right=c+"px";a.title.style.textAlign="right";break;case 3:a.title.style.right=c/2+"px",a.title.style.textAlign="center"}Aza(a,!!e,b,f)}};
g.G_=function(a){1===a.type&&a.Ai()};
g.oY=function(a,b){if(a.da)return g.Oa;b.addEventListener("mouseover",a.D);b.addEventListener("focus",a.D);var c=b.getAttribute("title");c&&!b.hasAttribute("aria-label")&&b.setAttribute("aria-label",c);return function(){a.B===b&&a.Ai();b.removeEventListener("mouseover",a.D);b.removeEventListener("focus",a.D)}};
NY=function(a,b,c){if(a.type)if(3===a.type)a.Ai();else return;yza(a,b,3,c)};
yza=function(a,b,c,d){if(b&&!b.hasAttribute)a=new Oq("showElementTooltip called with non-element.",b.toString()),g.Er(a);else{isNaN(a.C)||(a.C=NaN,a.bg.style.background="");a.B=b;a.N=!!d;d?a.F=d:(a.F=b.getAttribute("title"),b.removeAttribute("title"));g.un(a.element,"ytp-tooltip");if(d=b.getAttribute("data-tooltip-image"))a.image.style.backgroundImage="url("+d+")";g.I(a.element,"ytp-tooltip-image-enabled",!!d);b=b.getAttribute("data-tooltip-opaque");g.I(a.element,"ytp-tooltip-opaque",!!b);a.type=
c;a.api.addEventListener("appresize",a.X);a.K&&(z_(a),a.G.show(0))}};
z_=function(a){var b;a.B&&(b=a.B.getAttribute("data-tooltip-text"));if(b&&!a.N){var c=a.B;a.xa("text",b);var d=c.getAttribute("data-duration");a.update({title:a.F,duration:d});c=c.getAttribute("data-preview");var e=160*a.scale,f=90*a.scale,h=160*a.scale,l=90*a.scale;a.bg.style.width=e+"px";a.bg.style.height=f+"px";a.bg.style.backgroundImage=c?"url("+c+")":"";a.bg.style.backgroundPosition=(e-h)/2+"px "+(f-l)/2+"px";a.bg.style.backgroundSize=h+"px "+l+"px";g.wn(a.element,["ytp-text-detail","ytp-preview"]);
g.I(a.element,"ytp-has-duration",!!d)}else a.xa("text",a.F),g.yn(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);Aza(a,!!b)};
Aza=function(a,b,c,d){var e=Math.min(a.ba,300*a.scale);a.element.style.maxWidth=b?"":e+"px";a.ka.Hn(a.element,a.B,c,1===a.type,d);a.element.style.top?g.H(a.element,"ytp-bottom"):a.element.style.bottom&&g.H(a.element,"ytp-top");3===a.type&&a.ea.start()};
OY=function(a){a.B&&!a.N&&a.B.hasAttribute("title")&&(a.F=a.B.getAttribute("title")||"",a.B.removeAttribute("title"),a.K&&z_(a))};
zza=function(a,b){g.I(a.element,"ytp-preview",0<=b);if(!(0>b||b===a.C)){a.C=b;var c=160*a.scale,d=160*a.scale,e=a.u.xl(a.C,c);Fya(a.bg,e,c,d,!0);a.Y.start()}};
Cza=function(a){var b=a.B;3===a.type&&a.ea.stop();a.api.removeEventListener("appresize",a.X);a.N||b.setAttribute("title",a.F);a.F="";a.B=null};
g.H_=function(a,b){g.V.call(this,{I:"button",ha:["ytp-watch-later-button","ytp-button"],U:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.FC(a.T()))},S:[{I:"div",L:"ytp-watch-later-icon",Z:"{{icon}}"},{I:"div",L:"ytp-watch-later-title",Z:"\u5f8c\u3067\u898b\u308b"}]});this.J=a;this.icon=null;this.visible=this.B=this.u=!1;this.tooltip=b.Ib();rY(this.tooltip);g.rX(a,this.element,this,28665);this.wa("click",this.onClick,this);this.R(a,"videoplayerreset",this.UL);this.R(a,
"appresize",this.Ct);this.R(a,"videodatachange",this.Ct);this.R(a,"presentingplayerstatechange",this.Ct);this.Ct();var c=this.J.T(),d=Dza();c.B&&d?(Eza(),Fza(this,d.videoId)):this.na(2);g.I(this.element,"ytp-show-watch-later-title",g.FC(c));g.$f(this,g.oY(b.Ib(),this.element))};
Gza=function(a,b){g.Qwa(function(){Eza({videoId:b});window.location.reload()},"wl_button",g.$C(a.J.T()))};
Fza=function(a,b){if(!a.B)if(a.B=!0,a.na(3),g.Q(a.J.T().experiments,"web_player_innertube_playlist_update")){var c=a.J.getVideoData();c=a.u?c.removeFromWatchLaterCommand:c.addToWatchLaterCommand;var d=MG(a.J.app),e=a.u?function(){a.OE()}:function(){a.NE()};
CU(d,c).then(e,function(){a.B=!1;I_(a,"\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002\u3057\u3070\u3089\u304f\u3057\u3066\u304b\u3089\u3082\u3046\u4e00\u5ea6\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002")})}else c=a.J.T(),(a.u?Owa:Nwa)({videoIds:b,
he:c.he,pageId:c.pageId,onError:a.TP,onSuccess:a.u?a.OE:a.NE,context:a},c.N,!0)};
I_=function(a,b){a.na(4,b);a.J.T().C&&a.J.va("WATCH_LATER_ERROR",b)};
Hza=function(a,b){var c=a.J.T();if(b!==a.icon){switch(b){case 3:var d=OX();break;case 1:d=JN();break;case 2:d={I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",rb:!0,L:"ytp-svg-fill",U:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z"}}]};break;case 4:d=g.Q(c.experiments,"watch_later_iconchange_killswitch")?{I:"svg",U:{height:"100%",
version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",rb:!0,L:"ytp-svg-fill",U:{d:"M21,7.91 L19.60,20.91 L16.39,20.91 L15,7.91 L21,7.91 Z M18,27.91 C16.61,27.91 15.5,26.79 15.5,25.41 C15.5,24.03 16.61,22.91 18,22.91 C19.38,22.91 20.5,24.03 20.5,25.41 C20.5,26.79 19.38,27.91 18,27.91 Z"}}]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",rb:!0,U:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}a.xa("icon",d);
a.icon=b}};
J_=function(a){g.dY.call(this,a);var b=this;this.en=g.FC(this.api.T());this.Cv=48;this.Dv=69;this.ai=null;this.Fk=[];this.Kb=new g.iY(this.api);this.zr=new PY(this.api);this.lg=new g.V({I:"div",L:"ytp-chrome-top"});this.Bq=[];this.tooltip=new g.F_(this.api,this);this.backButton=this.Gn=null;this.channelAvatar=new tY(this.api,this);this.title=new E_(this.api,this);this.xf=new g.sN({I:"div",L:"ytp-chrome-top-buttons"});this.Tf=null;this.Wh=new nY(this.api,this,this.lg.element);this.overflowButton=this.Mf=
null;this.jf="1"===this.api.T().controlsType?new A_(this.api,this,this.zc):null;this.contextMenu=new g.LY(this.api,this,this.Kb);this.hv=!1;this.Mr=new g.V({I:"div",U:{tabindex:"0"}});this.Lr=new g.V({I:"div",U:{tabindex:"0"}});this.Vp=null;this.Ey=this.ur=!1;var c=g.LG(a),d=a.T(),e=a.getVideoData();this.en&&(g.H(a.getRootNode(),"ytp-embed"),g.H(a.getRootNode(),"ytp-embed-playlist"),this.Cv=60,this.Dv=89);this.vg=e&&e.vg;g.C(this,this.Kb);g.uP(a,this.Kb.element,4);g.C(this,this.zr);g.uP(a,this.zr.element,
4);e=new g.V({I:"div",L:"ytp-gradient-top"});g.C(this,e);g.uP(a,e.element,1);this.Yy=new g.fO(e,250,!0,100);g.C(this,this.Yy);g.C(this,this.lg);g.uP(a,this.lg.element,1);this.Xy=new g.fO(this.lg,250,!0,100);g.C(this,this.Xy);g.C(this,this.tooltip);g.uP(a,this.tooltip.element,4);var f=new $Y(a);g.C(this,f);g.uP(a,f.element,5);f.subscribe("show",function(l){b.ul(f,l)});
this.Bq.push(f);this.Gn=new aZ(a,this,f);g.C(this,this.Gn);d.showBackButton&&(this.backButton=new hY(a),g.C(this,this.backButton),this.backButton.fa(this.lg.element));this.en||this.Gn.fa(this.lg.element);this.channelAvatar.fa(this.lg.element);g.C(this,this.channelAvatar);g.C(this,this.title);this.title.fa(this.lg.element);g.C(this,this.xf);this.xf.fa(this.lg.element);this.Tf=new g.H_(a,this);g.C(this,this.Tf);this.Tf.fa(this.xf.element);var h=new g.fZ(a,this);g.C(this,h);g.uP(a,h.element,5);h.subscribe("show",
function(l){b.ul(h,l)});
this.Bq.push(h);this.shareButton=new g.eZ(a,this,h);g.C(this,this.shareButton);this.shareButton.fa(this.xf.element);this.cj=new MY(a,this);g.C(this,this.cj);this.cj.fa(this.xf.element);d.Wk&&(e=new lZ(a),g.C(this,e),g.uP(a,e.element,4));this.en&&this.Gn.fa(this.xf.element);g.C(this,this.Wh);this.Wh.fa(this.xf.element);e=new lY(a,this,this.Wh);g.C(this,e);e.fa(this.xf.element);this.Mf=new XY(a,this);g.C(this,this.Mf);g.uP(a,this.Mf.element,5);this.Mf.subscribe("show",function(){b.ul(b.Mf,b.Mf.ff())});
this.Bq.push(this.Mf);this.overflowButton=new WY(a,this,this.Mf);g.C(this,this.overflowButton);this.overflowButton.fa(this.xf.element);this.jf&&g.C(this,this.jf);"3"===d.controlsType&&(e=new dZ(a,this),g.C(this,e),g.uP(a,e.element,8));g.C(this,this.contextMenu);this.contextMenu.subscribe("show",this.zG,this);e=new hP(a,new tP(a));g.C(this,e);g.uP(a,e.element,4);this.Mr.wa("focus",this.MI,this);g.C(this,this.Mr);this.Lr.wa("focus",this.NI,this);g.C(this,this.Lr);(this.sj=d.nd?null:new g.TY(a,c,this.contextMenu,
this.zc,this.Kb,this.zr,function(){return b.gj()}))&&g.C(this,this.sj);
this.en||(this.OF=new iZ(this.api,this),g.C(this,this.OF),g.uP(a,this.OF.element,4));this.Ek.push(this.Kb.element);this.R(a,"fullscreentoggled",this.Dj);this.R(a,"offlineslatestatechange",function(){mX(b.api)&&IX(b.zc,128,!1)});
this.R(a,"cardstatechange",function(){b.og()});
this.R(a,"resize",this.pN)};
Iza=function(a){var b=a.api.T(),c=g.U(g.uJ(a.api),128);return b.B&&c&&!a.api.isFullscreen()};
K_=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!==qg(b,"display")&&"true"!==b.getAttribute("aria-hidden")){var e=void 0;0<=b.tabIndex?e=b:e=K_(a,b,c);e&&(d?c?e.tabIndex>d.tabIndex&&(d=e):e.tabIndex<d.tabIndex&&(d=e):d=e)}b=c?b.previousElementSibling:b.nextElementSibling}return d};
g.L_=function(a){g.AS.call(this,a);this.chrome=null;this.load()};
Jza=function(){this.B=200;this.u=12};
Kza=function(a){var b=new Jza;b.B=g.P(a.experiments,"html5_gapless_ended_transition_buffer_ms");b.u=g.P(a.experiments,"html5_gapless_max_played_ranges");return b};
Lza=function(a,b,c,d){var e=c.getVideoData(),f=b.getVideoData();if(c.getPlayerState().isError())return"player-error";c=f.Ia;if(pU(b.K)>d/1E3+1)return"in-the-past";if(f.isLivePlayback&&!isFinite(d))return"live-infinite";if(a.u&&((b=b.B)&&b.isView()&&(b=b.u),b&&b.Bl().length>a.u&&g.UF(e)))return"played-ranges";if(!e.Ia)return null;if(!e.Ia.wc()||!c.wc())return"non-dash";if(e.Ia.videoInfos[0].containerType!==c.videoInfos[0].containerType)return"container";if(g.UF(f)&&g.UF(e))return"content-protection";
a=c.u[0].audio;e=e.Ia.u[0].audio;return a.sampleRate===e.sampleRate||g.DB?(a.u||2)!==(e.u||2)?"channel-count":null:"sample-rate"};
N_=function(a,b,c,d){g.B.call(this);var e=this;this.policy=a;this.u=b;this.B=c;this.D=this.C=null;this.G=-1;this.K=!1;this.F=new Ww;this.kf=d-1E3*b.oc();this.F.then(void 0,function(){});
this.timeout=new g.F(function(){M_(e,"timeout")},1E4);
g.C(this,this.timeout);this.P=isFinite(d);this.status={status:0,error:null}};
Oza=function(a){return Te(a,function c(){var d=this,e,f,h,l,m,n,p,r,t,w;return Aa(c,function(x){if(1==x.u){e=d;if(d.la())return x["return"](Promise.reject(Error(d.status.error||"disposed")));d.timeout.start();f=Cx?new Yfa:null;return sa(x,d.F,2)}f&&(Dx("gtfta",(0,g.N)()-f.startTimeMs),f.rI=!0);h=d.u.B;if(h.ri())return M_(d,"ended_in_finishTransition"),x["return"](Promise.reject(Error(d.status.error||"")));if(!d.D||!TB(d.D))return M_(d,"next_mse_closed"),x["return"](Promise.reject(Error(d.status.error||
"")));if(d.B.W!==d.D)return M_(d,"next_mse_mismatch"),x["return"](Promise.reject(Error(d.status.error||"")));l=Mza(d);m=l.OD;n=l.TA;p=l.ND;oW(d.u,!1,!0);r=Nza(h,m,p,!d.B.getVideoData().isAd());pW(d.B,r);d.P&&(d.B.seekTo(d.B.getCurrentTime()+.001,{ip:!0,Wy:3}),r.play()||Vr());t=h.ob();t.cpn=d.u.getVideoData().clientPlaybackNonce;t.st=""+m;t.et=""+p;d.B.gb("gapless",g.mB(t));d.u.gb("gaplessTo",d.B.getVideoData().clientPlaybackNonce);w=d.u.getPlayerType()===d.B.getPlayerType();Kwa(d.u,n,!1,w,d.B.getVideoData().clientPlaybackNonce);
Kwa(d.B,d.B.getCurrentTime(),!0,w,d.u.getVideoData().clientPlaybackNonce);g.rm(function(){!e.B.getVideoData().wg&&g.FL(e.B.getPlayerState())&&Gwa(e.B)});
O_(d,6);d.dispose();return x["return"](Promise.resolve())})})};
Rza=function(a){if(a.B.getVideoData().Ia){AW(a.B,a.D);O_(a,3);Pza(a);var b=Qza(a),c=b.NF;b=b.NQ;c.subscribe("updateend",a.Cn,a);b.subscribe("updateend",a.Cn,a);a.Cn(c);a.Cn(b)}};
Pza=function(a){a.u.unsubscribe("internalvideodatachange",a.al,a);a.B.unsubscribe("internalvideodatachange",a.al,a);a.u.unsubscribe("mediasourceattached",a.al,a);a.B.unsubscribe("statechange",a.Vb,a)};
Nza=function(a,b,c,d){return new g.PS(a.isView()?a.u:a,b,c,d)};
O_=function(a,b){b<=a.status.status||(a.status={status:b,error:null},5===b&&a.F.resolve(void 0))};
M_=function(a,b){if(!a.la()&&!a.isFinished()){var c=4<=a.status.status&&"player-reload-after-handoff"!==b;a.status={status:Infinity,error:b};if(a.u&&a.B){var d=a.B.getVideoData().clientPlaybackNonce;a.u.gb("gaplessError","cpn."+d+";msg."+b);d=a.u;d.u.vi=!1;c&&jV(d);d.D&&(c=d.D,c.u.ba=!1,c.C&&BE(c))}a.F.reject(void 0);a.dispose()}};
Mza=function(a){var b=a.u.B;b=b.isView()?b.B:0;var c=a.u.getVideoData().isLivePlayback?Infinity:DW(a.u,!0);c=Math.min(a.kf/1E3,c)+b;var d=a.P?100:0;a=c-pU(a.B.K)+d;return{xI:b,OD:a,TA:c,ND:Infinity}};
Qza=function(a){return{NF:a.C.u.u,NQ:a.C.B.u}};
P_=function(a){g.B.call(this);var b=this;this.api=a;this.F=this.u=this.B=null;this.K=!1;this.D=null;this.P=Kza(this.api.T());this.C=null;this.G=function(){g.rm(function(){Sza(b)})}};
Tza=function(a,b,c,d){d=void 0===d?0:d;!a.B||Q_(a);a.D=new Ww;a.B=b;var e=c,f=a.api.Ub(),h=f.getVideoData().isLivePlayback?Infinity:1E3*DW(f,!0);e>h&&(e=h-a.P.B,a.K=!0);f.getCurrentTime()>=e/1E3?a.G():(a.u=f,f=e,e=a.u,a.api.addEventListener(g.RD("vqueued"),a.G),f=isFinite(f)||f/1E3>e.getDuration()?f:0x8000000000000,a.F=new g.OD(f,0x8000000000000,{namespace:"vqueued"}),e.addCueRange(a.F));f=d/=1E3;e=b.getVideoData().ma;if(d&&e&&a.u){h=d;var l=0;b.getVideoData().isLivePlayback&&(f=Math.min(c/1E3,DW(a.u,
!0)),l=Math.max(0,f-a.u.getCurrentTime()),h=Math.min(d,DW(b)+l));f=Rga(e,h)||d;f!==d&&a.B.gb("qvaln","st."+d+";at."+f+";rm."+(l+";ct."+h))}b=f;d=a.B;d.getVideoData().In=!0;d.getVideoData().vi=!0;pV(d,!0);e="";a.u&&(e=g.vT(a.u.G.provider),f=a.u.getVideoData().clientPlaybackNonce,e="crt."+(1E3*e).toFixed()+";cpn."+f);d.gb("queued",e);0!==b&&d.seekTo(b+.01,{ip:!0,Wy:3});a.C=new N_(a.P,a.api.Ub(),a.B,c);c=a.C;Infinity!==c.status.status&&(O_(c,1),c.u.subscribe("internalvideodatachange",c.al,c),c.B.subscribe("internalvideodatachange",
c.al,c),c.u.subscribe("mediasourceattached",c.al,c),c.B.subscribe("statechange",c.Vb,c),c.u.subscribe("newelementrequired",c.oE,c),c.al());return a.D};
Sza=function(a){Te(a,function c(){var d=this,e,f,h,l;return Aa(c,function(m){switch(m.u){case 1:e=d;if(d.la()||!d.D||!d.B)return m["return"]();d.K&&gV(d.api.Ub(),!0,!1);f=null;if(!d.C){m.Ac(2);break}ta(m,3);return sa(m,Oza(d.C),5);case 5:ua(m,2);break;case 3:f=h=va(m);case 2:return Uza(d.api.app,d.B),Fx("vqsp",function(){var n=e.B.getPlayerType();g.aN(e.api.app,n)}),Fx("vqpv",function(){e.api.playVideo()}),f&&Cwa(d.B,f.message),l=d.D,Q_(d),m["return"](l.resolve(void 0))}})})};
Q_=function(a){if(a.u){var b=a.u;a.api.removeEventListener(g.RD("vqueued"),a.G);b.removeCueRange(a.F);a.u=null;a.F=null}a.C&&(a.C.isFinished()||(b=a.C,Infinity!==b.status.status&&M_(b,"Canceled")),a.C=null);a.D=null;a.B=null;a.K=!1};
Vza=function(a){this.end=this.start=a};
S_=function(a,b,c){g.B.call(this);var d=this;this.api=a;this.D=b;this.u=c;this.Y=new Map;this.C=new Map;this.B=[];this.ba=NaN;this.P=this.G=null;this.X=new g.F(function(){R_(d,d.ba)});
this.events=new g.nR(this);this.isLiveNow=!0;this.ea=g.P(this.D.experiments,"web_player_ss_dai_ad_fetching_timeout_ms")||5E3;this.F=new g.F(function(){d.K=!0;d.u.gb("sdaiaftimeout",d.ea.toString());Wza(d,!0)},this.ea);
this.K=!1;this.W=new Map;this.N=[];this.u.getPlayerType();qwa(this.u,this);g.C(this,this.X);g.C(this,this.events);g.C(this,this.F);this.events.R(this.api,g.RD("serverstitchedcuerange"),this.lL);this.events.R(this.api,g.SD("serverstitchedcuerange"),this.mL)};
$za=function(a,b,c,d,e){a.K&&a.u.gb("sdai","adaftto");var f=a.u;e=void 0===e?d+c:e;if(d>e)return T_(a,"Invalid playback enterTimeMs="+d+" is greater than parentReturnTimeMs="+e),"";var h=1E3*f.uc();if(d<h)return T_(a,"Invalid playback enterTimeMs="+d+" is less than parentMinSeekableTimeMs="+h),"";h=1E3*f.getDuration();if(e>h)return T_(a,"Invalid playback parentReturnTimeMs="+e+" is greater than parentDurationMs="+h),"";h=null;for(var l=g.q(a.B),m=l.next();!m.done;m=l.next()){m=m.value;if(d>=m.Yb&&
d<m.Gc||e<=m.Gc&&e>m.Yb)return T_(a,"Overlapping child playbacks not allowed. New playback {video_id="+(b.video_id+" enterTimeMs="+d+" parentReturnTimeMs="+e+"} overlaps existing ChildPlayback "+U_(m))),"";if(e===m.Yb)return T_(a,"Neighboring child playbacks must be added sequentially. New playback {video_id="+(b.video_id+" enterTimeMs="+d+" parentReturnTimeMs="+e+"} added after existing ChildPlayback "+U_(m))),"";d===m.Gc&&(h=m)}l="childplayback_"+Xza++;m={pd:V_(c,!0),kf:Infinity,target:null};var n=
b.raw_player_response;if(!n&&!g.Q(a.D.experiments,"web_player_parse_ad_response_killswitch")){var p=b.player_response;p&&(n=JSON.parse(p))}b.cpn||(b.cpn=a.hw());b={Wb:l,playerVars:b,playerType:2,durationMs:c,Yb:d,Gc:e,Vf:m,playerResponse:n,cpn:b.cpn};a.B=a.B.concat(b).sort(function(r,t){return r.Yb-t.Yb});
h?(b.Vi=h.Vi,Yza(h,{pd:V_(h.durationMs,!0),kf:Infinity,target:b})):(b.Vi=b.cpn,d={pd:V_(d,!1),kf:d,target:b},a.Y.set(d.pd,d),f.addCueRange(d.pd));d=Zza(b.Yb,b.Yb+b.durationMs);a.C.set(d,b);f.addCueRange(d);a.F.isActive()&&(a.K=!1,a.F.stop(),Wza(a,!1));return l};
V_=function(a,b){return new g.OD(Math.max(0,a-5E3),b?0x8000000000000:a-1,{namespace:"serverstitchedtransitioncuerange",priority:7})};
Zza=function(a,b){return new g.OD(a,b,{namespace:"serverstitchedcuerange",priority:7})};
Yza=function(a,b){a.Vf=b};
W_=function(a,b){for(var c=0,d=g.q(a.B),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.Yb/1E3+c,h=f+e.durationMs/1E3;if(f>b+1)break;if(h>b)return{Zi:e,Zl:b-c};c=h-e.Gc/1E3}return{Zi:null,Zl:b-c}};
R_=function(a,b){var c=a.P||a.api.Ub().getPlayerState();X_(a,!0);var d=W_(a,b).Zl;a.u.seekTo(d);d=a.api.Ub();var e=d.getPlayerState();g.FL(c)&&!g.FL(e)?d.playVideo():g.U(c,4)&&!g.U(e,4)&&d.pauseVideo()};
X_=function(a,b){a.ba=NaN;a.X.stop();a.G&&b&&yW(a.G);a.P=null;a.G=null};
uX=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;for(var d=b,e=c,f=g.q(a.Y),h=f.next();!h.done;h=f.next()){var l=g.q(h.value);h=l.next().value;l=l.next().value;l.kf>=d&&l.target&&l.target.Gc<=e&&(a.u.removeCueRange(h),a.Y["delete"](h))}d=b;e=c;f=[];h=g.q(a.B);for(l=h.next();!l.done;l=h.next())l=l.value,(l.Yb<d||l.Gc>e)&&f.push(l);a.B=f;d=b;e=c;f=g.q(a.C.keys());for(h=f.next();!h.done;h=f.next())h=h.value,h.start>=d&&h.end<=e&&(a.u.removeCueRange(h),a.C["delete"](h));d=W_(a,b/1E3);b=d.Zi;
d=d.Zl;b&&(d=1E3*d-b.Yb,aAa(a,b,d,b.Yb+d));(b=W_(a,c/1E3).Zi)&&T_(a,"Invalid clearEndTimeMs="+c+" that falls during "+U_(b)+".Child playbacks can only have duration updated not their start.")};
aAa=function(a,b,c,d){b.durationMs=c;b.Gc=d;c={pd:V_(c,!0),kf:c,target:null};b.Vf=c;c=null;d=g.q(a.C);for(var e=d.next();!e.done;e=d.next()){e=g.q(e.value);var f=e.next().value;e.next().value.Wb===b.Wb&&(c=f)}c&&(a.u.removeCueRange(c),c=Zza(b.Yb,b.Yb+b.durationMs),a.C.set(c,b),a.u.addCueRange(c))};
U_=function(a){return"playback={timelinePlaybackId="+a.Wb+" video_id="+a.playerVars.video_id+" durationMs="+a.durationMs+" enterTimeMs="+a.Yb+" parentReturnTimeMs="+a.Gc+"}"};
aia=function(a,b,c,d){if(bAa(a,c))return null;var e=a.W.get(c);e||(e=0,a.D.ca("web_player_ss_media_time_offset")&&(e=0===a.u.getStreamTimeOffset()?a.u.oc():a.u.getStreamTimeOffset()),e=W_(a,b+e).Zi);var f=Number(d.split(";")[0]);if(e&&e.playerResponse&&e.playerResponse.streamingData&&(b=e.playerResponse.streamingData.adaptiveFormats)){var h=b.find(function(m){return m.itag===f});
if(h&&h.url){b=a.u.getVideoData();var l=b.ma.u[d].index.GB(c-1);d=h.url;l&&l.u&&(d=d.concat("&daistate="+l.u));(b=b.clientPlaybackNonce)&&(d=d.concat("&cpn="+b));e.Vi&&(b=cAa(a,e.Vi),0<b.length&&(d=d.concat("&acpns="+b.join(","))));g.Q(a.D.experiments,"html5_high_res_logging")&&a.u.gb("sdai","ast."+e.Yb.toFixed(3)+".alen."+e.durationMs.toFixed(3)+".acpn."+e.cpn);a.W.set(c,e);return d}}dAa(a,c);return null};
dAa=function(a,b){for(var c=g.q(a.N),d=c.next();!d.done;d=c.next()){d=d.value;if(b>=d.start&&b<=d.end)return;if(b===d.end+1){d.end+=1;return}}a.N.push(new Vza(b))};
bAa=function(a,b){for(var c=g.q(a.N),d=c.next();!d.done;d=c.next())if(d=d.value,b>=d.start&&b<=d.end)return!0;return!1};
T_=function(a,b){a.u.gb("timelineerror",b)};
cAa=function(a,b){for(var c=[],d=g.q(a.B),e=d.next();!e.done;e=d.next())e=e.value,e.Vi===b&&e.cpn&&c.push(e.cpn);return c};
Wza=function(a,b){g.Q(a.D.experiments,"html5_high_res_logging")&&a.u.gb("sdai","adf.0");var c=a.u;if(c.D){c=c.D;var d=c.W;if(!b&&!isNaN(d.D)){var e=d.D-1;gz(d.N,e);gz(d.ba,e);d.V("ctmp","sdai","joinad_rollbk2_seg_"+d.F+"_mt_"+e.toFixed(3),!1)}d.B=4;xE(c)}};
Y_=function(a,b,c){g.B.call(this);var d=this;this.api=a;this.F=b;this.B=c;this.G=new Map;this.u=[];this.C=this.P=null;this.X=NaN;this.K=this.D=null;this.W=new g.F(function(){eAa(d,d.X)});
this.N=[];this.Y=new g.F(function(){var e=d.N.pop();if(e){var f=e.Wb,h=e.playerVars;e=e.playerType;h.prefer_gapless=!0;d.api.preloadVideoByPlayerVars(h,e,NaN,"",f);d.N.length&&d.Y.Gb(4500)}});
this.events=new g.nR(this);c.getPlayerType();g.C(this,this.W);g.C(this,this.Y);g.C(this,this.events);this.events.R(this.api,g.RD("childplayback"),this.nL);this.events.R(this.api,"onQueuedVideoLoaded",this.PO);this.events.R(this.api,"presentingplayerstatechange",this.Kf)};
iAa=function(a,b,c,d,e){var f=a.B;e=void 0===e?d+c:e;if(d>e)return Z_(a,"e.enterAfterReturn enterTimeMs="+d+" is greater than parentReturnTimeMs="+e),"";var h=1E3*f.uc();if(d<h)return Z_(a,"e.enterBeforeMinSeekable enterTimeMs="+d+"is less than parentMinSeekableTimeMs="+h),"";h=1E3*f.getDuration();if(e>h)return Z_(a,"e.returnAfterDuration parentReturnTimeMs="+e+" is greater than parentDurationMs="+h),"";h=null;for(var l=g.q(a.u),m=l.next();!m.done;m=l.next()){m=m.value;if(d>=m.Yb&&d<m.Gc)return Z_(a,
"e.overlappingEnter"),"";if(e<=m.Gc&&e>m.Yb)return Z_(a,"e.overlappingReturn"),"";if(e===m.Yb)return Z_(a,"e.outOfOrder"),"";d===m.Gc&&(h=m)}l="childplayback_"+fAa++;m={pd:$_(c,!0),kf:Infinity,target:null};var n={Wb:l,playerVars:b,playerType:2,durationMs:c,Yb:d,Gc:e,Vf:m};a.u=a.u.concat(n).sort(function(t,w){return t.Yb-w.Yb});
h?gAa(a,h,{pd:$_(h.durationMs,!0),kf:a.F.ca("timeline_manager_transition_killswitch")?Infinity:h.Vf.kf,target:n}):(b={pd:$_(d,!1),kf:d,target:n},a.G.set(b.pd,b),f.addCueRange(b.pd));b=g.Q(a.F.experiments,"html5_gapless_preloading");if(a.B===a.api.Ub()&&(f=1E3*f.getCurrentTime(),f>=n.Yb&&f<n.Gc)){var p=a.api.Ub().getPlayerState(),r=f-n.Yb;lm(function(){hAa(a,n,r/1E3,p)});
b=!1}b&&(a.N.unshift(n),a.Y.Gb(0));return l};
$_=function(a,b){return new g.OD(Math.max(0,a-5E3),b?0x8000000000000:a-1,{namespace:"childplayback",priority:7})};
kAa=function(a,b,c,d){a.C=d;jAa(a.api.app,a.B,c,void 0===b?0:b)};
lAa=function(a,b,c,d){a.C=d;d=b.Wb;var e=b.playerVars,f=b.playerType;a.P=b;a.api.enqueueVideoByPlayerVars(e,f,c,d)};
gAa=function(a,b,c){var d=b.Vf;b.Vf=c;a0(a,b)&&(c=a.api.Ub(),d.pd===a.C&&b0(a),c.removeCueRange(d.pd),c.addCueRange(b.Vf.pd))};
b0=function(a){a.P=null;a.C=null;!a.api.app.Qa.B||a.api.clearQueue()};
mAa=function(a,b){a0(a,b)||Z_(a,"e.childPlaybackIsNotPresenting");return b.Gc===b.Yb+b.durationMs?b.Yb+1E3*a.api.Ub().getCurrentTime():b.Gc};
c0=function(a,b){for(var c=0,d=g.q(a.u),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.Yb/1E3+c,h=f+e.durationMs/1E3;if(f>b)break;if(h>b)return{Zi:e,Zl:b-f};c=h-e.Gc/1E3}return{Zi:null,Zl:b-c}};
eAa=function(a,b){var c=a.K||a.api.Ub().getPlayerState();d0(a,!0);var d=g.Q(a.F.experiments,"html5_playbacktimeline_seektoinf_killswitch")||isFinite(b)?b:qU(a.B.K),e=c0(a,d);d=e.Zi;e=e.Zl;var f=d&&!a0(a,d)||!d&&a.B!==a.api.Ub(),h=1E3*e;h=a.C&&a.C.start<=h&&h<=a.C.end;!f&&h||b0(a);d?hAa(a,d,e,c):e0(a,e,c)};
e0=function(a,b,c){var d=a.B;if(d!==a.api.Ub()){var e=d.getPlayerType();g.aN(a.api.app,e)}d.seekTo(b);nAa(a,c)};
hAa=function(a,b,c,d){var e=a0(a,b);if(!e){g.aN(a.api.app,b.playerType);b.playerVars.prefer_gapless=!0;var f=new g.qF(a.F,b.playerVars);f.Wb=b.Wb;f0(a.api.app,f,b.playerType,void 0)}f=a.api.Ub();e||f.addCueRange(b.Vf.pd);f.seekTo(c);nAa(a,d)};
nAa=function(a,b){var c=a.api.Ub(),d=c.getPlayerState();g.FL(b)&&!g.FL(d)?c.playVideo():g.U(b,4)&&!g.U(d,4)&&c.pauseVideo()};
d0=function(a,b){a.X=NaN;a.W.stop();a.D&&b&&yW(a.D);a.K=null;a.D=null};
a0=function(a,b){var c=a.api.Ub();return!!c&&c.getVideoData().Wb===b.Wb};
oAa=function(a){var b=a.u.find(function(d){return a0(a,d)});
if(b){b0(a);var c=new g.zL(8);b=mAa(a,b)/1E3;e0(a,b,c)}};
vX=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;for(var d=b,e=c,f=g.q(a.G),h=f.next();!h.done;h=f.next()){var l=g.q(h.value);h=l.next().value;l=l.next().value;l.kf>=d&&l.target&&l.target.Gc<=e&&(a.B.removeCueRange(h),a.G["delete"](h))}d=b;e=c;f=[];h=g.q(a.u);for(l=h.next();!l.done;l=h.next())if(l=l.value,l.Yb>=d&&l.Gc<=e){var m=a;m.P===l&&b0(m);a0(m,l)&&g.eN(m.api,l.playerType)}else f.push(l);a.u=f;d=c0(a,b/1E3);b=d.Zi;d=d.Zl;b&&(d*=1E3,pAa(a,b,d,b.Gc===b.Yb+b.durationMs?b.Yb+d:b.Gc));
(b=c0(a,c/1E3).Zi)&&Z_(a,"Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(b.Wb+" video_id="+b.playerVars.video_id+" durationMs="+b.durationMs+" enterTimeMs="+b.Yb+" parentReturnTimeMs="+b.Gc+"}.Child playbacks can only have duration updated not their start."))};
pAa=function(a,b,c,d){b.durationMs=c;b.Gc=d;d={pd:$_(c,!0),kf:c,target:null};gAa(a,b,d);a0(a,b)&&1E3*a.api.Ub().getCurrentTime()>c&&(b=mAa(a,b)/1E3,c=a.api.Ub().getPlayerState(),e0(a,b,c))};
Z_=function(a,b){a.B.gb("timelineerror",b)};
rAa=function(a){a&&"web"!==a&&qAa.includes(a)};
i0=function(a,b){g.B.call(this);var c=this;this.data=[];this.C=a||NaN;this.B=b||null;this.u=new g.F(function(){g0(c);h0(c)});
g.C(this,this.u)};
g0=function(a){var b=(0,g.N)();a.data.forEach(function(c){c.expire<b&&j0(a,c,!0)});
a.data=g.Je(a.data,function(c){return!(c.expire<b)})};
j0=function(a,b,c){c&&a.B&&a.B(b.value)};
h0=function(a){a.u.stop();var b=Infinity;for(var c=g.q(a.data),d=c.next();!d.done;d=c.next())d=d.value,d.expire<b&&(b=d.expire);b&&isFinite(b)&&a.u.start(Math.max(b-g.A(),0))};
sAa=function(a){var b=/codecs="([^"]*)"/.exec(a.mimeType);return b&&b[1]?b[1]+" ("+Yt(a)+")":Yt(a)};
k0=function(a,b){g.B.call(this);var c=this;this.u=null;for(var d=[],e=0;100>=e;e++)d.push(e/100);e={threshold:d};b&&(e={threshold:d,trackVisibility:!0,delay:1E3});(this.B=window.IntersectionObserver?new IntersectionObserver(function(f){f=f[f.length-1];b?"undefined"===typeof f.isVisible?c.u=null:c.u=f.isVisible?f.intersectionRatio:0:c.u=f.intersectionRatio},e):null)&&this.B.observe(a)};
l0=function(a,b){this.u=a;this.C=b;this.B=null;this.D=[];this.F=!1};
g.m0=function(a){a.B||(a.B=a.u.createMediaElementSource(a.C.Ma()));return a.B};
g.n0=function(a){for(var b;0<a.D.length;)(b=a.D.pop())&&b.disconnect();a.B&&a.B.disconnect()};
uAa=function(a,b){if(g.Xj())return null;var c=tAa();if(!c)return g.eX(a,"html5.webaudio",{name:"null context"}),null;if("string"===typeof c)return g.eX(a,"html5.webaudio",{name:c}),null;if(!c.createMediaElementSource)return g.eX(a,"html5.webaudio",{name:"missing createMediaElementSource"}),null;if("suspended"===c.state){var d=function(e){"suspended"===c.state&&g.FL(e.state)&&c.resume().then(function(){a.removeEventListener("presentingplayerstatechange",d);o0=!1},null)};
o0||(a.addEventListener("presentingplayerstatechange",d),o0=!0)}return new l0(c,b)};
q0=function(a){g.V.call(this,{I:"div",ha:["html5-video-player"],U:{tabindex:"-1",id:a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId:a.config.attrs.id},S:[{I:"div",L:g.p0.VIDEO_CONTAINER,U:{"data-layer":"0"}}]});var b=this;this.app=a;this.C=this.ga(g.p0.VIDEO_CONTAINER);this.B=new g.eg(0,0,0,0);this.u=null;this.K=new g.eg(0,0,0,0);this.X=this.ea=this.ba=NaN;this.G=this.ka=!1;this.W=NaN;this.Y=!1;this.F=null;this.dispatchEvent=function(){};
this.da=function(){b.element.focus()};
this.N=null;var c=this.element.addEventListener,d=this.element.removeEventListener;this.addEventListener=function(f,h,l){c.apply(b.element,[f,h,l])};
this.removeEventListener=function(f,h,l){d.apply(b.element,[f,h,l])};
var e=a.T();e.transparentBackground&&this.Fp("ytp-transparent");"0"===e.controlsType&&this.Fp("ytp-hide-controls");e.ca("html5_ux_control_flexbox_killswitch")||g.H(this.element,"ytp-exp-bottom-control-flexbox");e.ca("html5_player_bottom_linear_gradient")&&g.H(this.element,"ytp-linear-gradient-bottom-experiment");e.ca("web_player_bigger_buttons")&&g.H(this.element,"ytp-exp-bigger-button");Qla(this.element,vAa(a));cD(e)&&"blazer"!==e.playerStyle&&window.matchMedia&&(this.N="desktop-polymer"===e.playerStyle?
[{query:window.matchMedia("(max-width: 656px)"),size:new g.ge(426,240)},{query:window.matchMedia("(max-width: 856px)"),size:new g.ge(640,360)},{query:window.matchMedia("(max-width: 999px)"),size:new g.ge(854,480)},{query:window.matchMedia("(min-width: 1720px) and (min-height: 980px)"),size:new g.ge(1280,720)},{query:window.matchMedia("(min-width: 1294px) and (min-height: 630px)"),size:new g.ge(854,480)},{query:window.matchMedia("(min-width: 1000px)"),size:new g.ge(640,360)}]:[{query:window.matchMedia("(max-width: 656px)"),
size:new g.ge(426,240)},{query:window.matchMedia("(min-width: 1720px) and (min-height: 980px)"),size:new g.ge(1280,720)},{query:window.matchMedia("(min-width: 1294px) and (min-height: 630px)"),size:new g.ge(854,480)},{query:window.matchMedia("(min-width: 657px)"),size:new g.ge(640,360)}]);this.ia=e.useFastSizingOnWatchDefault;this.D=new g.ge(NaN,NaN);wAa(this);this.R(a.B,"onMutedAutoplayChange",this.Rp)};
wAa=function(a){function b(){a.u&&r0(a);s0(a)!==a.Y&&a.resize()}
function c(h,l){a.updateVideoData(l)}
function d(h){h.getVideoData()&&a.updateVideoData(h.getVideoData())}
function e(){a.K=new g.eg(0,0,0,0);a.B=new g.eg(0,0,0,0)}
var f=a.app.B;f.addEventListener("initializingmode",e);f.addEventListener("videoplayerreset",d);f.addEventListener("videodatachange",c);f.addEventListener("presentingplayerstatechange",b);g.$f(a,function(){f.removeEventListener("initializingmode",e);f.removeEventListener("videoplayerreset",d);f.removeEventListener("videodatachange",c);f.removeEventListener("presentingplayerstatechange",b)})};
xAa=function(a){a.u&&(a.u.removeEventListener("focus",a.da),g.Ie(a.u),a.u=null)};
fJ=function(a,b){KC(a.app.T());a.G=!b;r0(a)};
yAa=function(a){var b=g.Q(a.app.T().experiments,"html5_aspect_from_adaptive_format"),c=g.Z(a.app);if(c=c?c.getVideoData():null){if(c.qj()||c.rj()||c.mj())return 16/9;if(b&&yF(c)&&c.Ia.wc())return b=c.Ia.videoInfos[0].video,t0(b.width,b.height)}return(a=a.u)?t0(a.videoWidth,a.videoHeight):b?16/9:NaN};
zAa=function(a,b,c,d){var e=c,f=t0(b.width,b.height);a.ka?e=c<f?Infinity:0:isNaN(a.X)?isNaN(a.ea)||(e=a.ea):e=a.X;isFinite(e)||(e=Math.max(c,f));var h;e>f?h={width:b.width,height:b.width/e,aspectRatio:e}:e<f?h={width:b.height*e,height:b.height,aspectRatio:e}:h={width:b.width,height:b.height,aspectRatio:f};d||isNaN(c)||(c>e?h.width=h.height*c:c<e&&(h.height=h.width/c),h.aspectRatio=c);return h};
t0=function(a,b){return 1>Math.abs(u0*b-a)||1>Math.abs(u0/a-b)?u0:a/b};
s0=function(a){if(1===a.app.getAppState())return!1;if(6===a.app.getAppState())return!0;var b=g.Z(a.app);if(!b||wV(b))return!1;var c=g.uJ(a.app.B);a=!g.U(c,2)||!g.Q(a.app.T().experiments,"html5_leanback_gapless_elem_display_killswitch")&&b&&b.getVideoData().vi;b=g.U(c,1024);return c&&a&&!b&&!c.isCued()};
r0=function(a){var b="3"===a.app.T().controlsType&&!a.G&&s0(a)&&!a.app.bb||!1;a.u.controls=b;a.u.tabIndex=b?0:-1;b?a.u.removeEventListener("focus",a.da):g.Q(a.app.T().experiments,"disable_focus_redirect")||a.u.addEventListener("focus",a.da)};
AAa=function(a){var b=a.getPlayerSize(),c=1,d=!1,e=zAa(a,b,a.getVideoAspectRatio()),f=ek();if(s0(a)){var h=yAa(a);var l=isNaN(h)||g.kr||CD&&g.FB;fk&&!g.Yd(601)?h=e.aspectRatio:l=l||"3"===a.app.T().controlsType;l?l=new g.eg(0,0,b.width,b.height):(c=e.aspectRatio/h,l=new g.eg((b.width-e.width/c)/2,(b.height-e.height)/2,e.width/c,e.height),1===c&&g.FB&&(h=l.width-b.height*h,0<h&&(l.width+=h,l.height+=h)));f&&(a.u.style.display="");a.Y=!0}else l=-b.height,fk?l*=window.devicePixelRatio:g.lD&&(l-=window.screen.height),
l=new g.eg(0,l,b.width,b.height),f&&(a.u.style.display="none"),a.Y=!1;fg(a.K,l)||(a.K=l,g.VC(a.app.T())?(a.u.style.setProperty("width",l.width+"px","important"),a.u.style.setProperty("height",l.height+"px","important")):g.Ag(a.u,new g.ge(l.width,l.height)),d=new g.ee(l.left,l.top),g.tg(a.u,Math.round(d.x),Math.round(d.y)),d=!0);b=new g.eg((b.width-e.width)/2,(b.height-e.height)/2,e.width,e.height);fg(a.B,b)||(a.B=b,d=!0);g.lg(a.u,"transform",1===c?"":"scaleX("+c+")");return d};
BAa=function(){this.csn=g.Ms();this.clientPlaybackNonce=null;this.elements=new Set;this.C=new Set;this.u=new Set;this.B=new Set};
uxa=function(a,b,c,d,e){e=void 0===e?!1:e;a.elements.has(b);a.elements.add(b);d=Gs(d);b.visualElement=d;var f=g.Ms(),h=g.Ks();f&&h&&g.lt(f,h,d);g.$f(c,function(){CAa(a,b)});
e&&a.B.add(b)};
vxa=function(a,b,c,d){d=void 0===d?!1:d;a.elements.has(b);a.elements.add(b);g.$f(c,function(){CAa(a,b)});
d&&a.B.add(b)};
CAa=function(a,b){a.elements.has(b);a.elements["delete"](b);a.C["delete"](b);a.u["delete"](b);a.B["delete"](b)};
DAa=function(a){if(a.csn!==g.Ms())if("UNDEFINED_CSN"===a.csn)a.csn=g.Ms();else{var b=g.Ms(),c=g.Ks();if(b&&c){a.csn=b;for(var d=g.q(a.elements),e=d.next();!e.done;e=d.next())(e=e.value.visualElement)&&e.isClientVe()&&g.lt(b,c,e)}if(b)for(a=g.q(a.u),e=a.next();!e.done;e=a.next())(c=e.value.visualElement)&&c.isClientVe()&&g.ft(b,c,void 0)}};
v0=function(a,b,c,d,e){g.V.call(this,{I:"div",L:"ytp-horizonchart"});this.G=b;this.sampleCount=c;this.D=d;this.F=e;this.index=0;this.heightPx=-1;this.C=this.B=null;this.u=Math.round(a/c);this.element.style.width=this.u*this.sampleCount+"px";this.element.style.height=this.G+"em"};
w0=function(a,b){if(-1===a.heightPx){var c=null;try{c=g.Ee("CANVAS"),a.B=c.getContext("2d")}catch(e){}if(a.B){var d=a.u*a.sampleCount;a.C=c;a.C.width=d;a.C.style.width=d+"px";a.element.appendChild(a.C)}else for(a.sampleCount=Math.floor(a.sampleCount/4),a.u*=4,c=0;c<a.sampleCount;c++)d=g.Ee("SPAN"),d.style.width=a.u+"px",d.style.left=a.u*c+"px",a.element.appendChild(d)}c=a.element.clientHeight||24;c!==a.heightPx&&(a.heightPx=c,a.B&&(c=1<(window.devicePixelRatio||1)?2:1,a.C.height=a.heightPx*c,a.C.style.height=
a.heightPx+"px",a.B.scale(1,c)));c=g.q(b);for(d=c.next();!d.done;d=c.next())a.setValue(a.index,d.value),a.index=(a.index+1)%a.sampleCount;c=a.index;a.B?a.B.clearRect(c*a.u,0,a.u,a.heightPx):(c=a.element.children[c],c.style.height="0px",c.style.borderTop="")};
x0=function(a){var b=null;b={I:"button",ha:["html5-video-info-panel-close","ytp-button"],U:{title:"close"},Z:"[x]"};g.V.call(this,{I:"div",L:"html5-video-info-panel",S:[b,{I:"div",L:"html5-video-info-panel-content",S:[{I:"div",S:[{I:"div",Z:"Video ID / sCPN"},{I:"span",Z:"{{video_id_and_cpn}}"}]},{I:"div",S:[{I:"div",Z:"Viewport / Frames"},{I:"span",Z:"{{dims_and_frames}}"}]},{I:"div",S:[{I:"div",Z:"Current / Optimal Res"},{I:"span",Z:"{{resolution}}"}]},{I:"div",S:[{I:"div",Z:"Volume / Normalized"},
{I:"span",Z:"{{volume}}"}]},{I:"div",S:[{I:"div",Z:"Codecs"},{I:"span",Z:"{{codecs}}"}]},{I:"div",U:{style:"{{shader_info_style}}"},S:[{I:"div",Z:"Shader Info"},{I:"span",Z:"{{shader_info}}"}]},{I:"div",U:{style:"{{color_style}}"},S:[{I:"div",Z:"Color"},{I:"span",Z:"{{color}}"}]},{I:"div",U:{style:"{{drm_style}}"},S:[{I:"div",Z:"Protected"},{I:"span",Z:"{{drm}}"}]},{I:"div",U:{style:"{{bandwidth_style}}"},S:[{I:"div",Z:"Connection Speed"},{I:"span",S:[{I:"span",Z:"{{bandwidth_chart}}"},{I:"span",
Z:"{{bandwidth_kbps}}"}]}]},{I:"div",U:{style:"{{network_activity_style}}"},S:[{I:"div",Z:"Network Activity"},{I:"span",S:[{I:"span",Z:"{{network_activity_chart}}"},{I:"span",Z:"{{network_activity_bytes}}"}]}]},{I:"div",S:[{I:"div",Z:"Buffer Health"},{I:"span",S:[{I:"span",Z:"{{buffer_health_chart}}"},{I:"span",Z:"{{buffer_health_seconds}}"}]}]},{I:"div",U:{style:"{{live_latency_style}}"},S:[{I:"div",Z:"Live Latency"},{I:"span",S:[{I:"span",Z:"{{live_latency_chart}}"},{I:"span",Z:"{{live_latency_secs}}"}]}]},
{I:"div",U:{style:"{{live_mode_style}}"},S:[{I:"div",Z:"Live Mode"},{I:"span",Z:"{{live_mode}}"}]},{I:"div",U:{style:"{{playback_categories_style}}"},S:[{I:"div",Z:"Playback Categories"},{I:"span",Z:"{{playback_categories}}"}]},{I:"div",S:[{I:"div",Z:"Mystery Text"},{I:"span",Z:"{{debug_info}}"}]},{I:"div",U:{style:"{{release_style}}"},S:[{I:"div",Z:"Player Release"},{I:"span",Z:"{{release_name}}"}]}]}]});b&&(b=this.ga("html5-video-info-panel-close"),this.R(b,"click",this.hide));b=[0,18750,37500,
81250,128E3,256E3,512E3,2048E3,8192E3,32768E3,131072E3];var c="#000 #d53e4f #f46d43 #fdae61 #fee08b #e6f598 #abdda4 #66c2a5 #3288bd #124588 #fff".split(" "),d=b.map(function(e){return e/4});
this.u=new v0(300,1,150,b,c);g.C(this,this.u);this.xa("bandwidth_chart",this.u);this.C=new v0(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.C(this,this.C);this.xa("live_latency_chart",this.C);this.B=new v0(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.C(this,this.B);this.xa("buffer_health_chart",this.B);this.D=new v0(300,1,150,d,c);g.C(this,this.D);this.xa("network_activity_chart",this.D);this.delay=new g.F(this.na,
500,this);g.C(this,this.delay);this.F=a};
z0=function(a,b,c){g.B.call(this);var d=this;this.bb=this.X=!1;this.K=null;this.de={};this.Zb={};this.Ve=!1;this.nd=null;this.ue=!1;this.Ja=!0;this.zf=this.be=null;this.Af=!0;this.F=this.N=null;this.Pb=this.sb=!1;this.Cf=this.Lb=this.G=this.playlist=null;this.Pa=void 0;this.Ea=0;this.ia=this.qb=this.ba=null;this.config=Wea(b||{});this.webPlayerContextConfig=c;rea();b=this.config.args||{};this.u=new YC(b,c,c?c.canaryState:this.config.assets.player_canary_state);g.C(this,this.u);void 0!==navigator.mediaCapabilities&&
(hA=!0);g.Q(this.u.experiments,"html5_disable_subtract_cuepoint_offset")&&(uy=!0);g.Q(this.u.experiments,"html5_log_opus_oboe_killswitch")&&(Ru=!1);g.Q(this.u.experiments,"html5_skip_empty_load")&&(EAa=!0);FAa=g.Q(this.u.experiments,"html5_ios_force_seek_to_zero_on_stop");GAa=g.Q(this.u.experiments,"html5_ios7_force_play_on_stall");HAa=g.Q(this.u.experiments,"html5_ios4_seek_above_zero");g.Q(this.u.experiments,"html5_mediastream_applies_timestamp_offset")&&(qy=!0);g.Q(this.u.experiments,"html5_dont_override_default_sample_desc_index")&&
(Au=!0);this.Df=R(HC(this.u)&&!0,b.enablesizebutton);this.yd=R(!1,b.player_wide);this.visibility=new tU;g.C(this,this.visibility);this.setIsExternalPlaylist(b.external_list);this.events=new g.nR(this);g.C(this,this.events);this.da=new g.On;g.C(this,this.da);this.ra=new g.On;g.C(this,this.ra);this.Aa=new BAa;this.B=new WW(this);g.C(this,this.B);this.template=new q0(this);g.C(this,this.template);this.ea=1;this.Y=this.u.Cf?IAa():{volume:100,muted:this.u.mute};this.J=this.u.C?new VW(this,1):new QW(this,
1);g.C(this,this.J);c={};this.ac=(c.internalvideodatachange=this.MM,c.playbackready=this.PM,c.playbackstarted=this.QM,c.statechange=this.RM,c);this.D=JAa(this);this.ce=new g.nR(this);g.C(this,this.ce);this.P=new ZT(this.u,this.D);this.C=KAa(this);c={};this.Bf=(c.airplayactivechange=this.GM,c.airplayavailabilitychange=this.HM,c.beginseeking=this.bN,c.endseeking=this.AN,c.internalAbandon=this.rK,c.internalaudioformatchange=this.pK,c.internalvideodatachange=this.Na,c.internalvideoformatchange=this.uK,
c.liveviewshift=this.ON,c.playbackstalledatstart=this.vP,c.progresssync=this.LO,c.onLoadProgress=this.PN,c.SEEK_COMPLETE=this.tK,c.SEEK_TO=this.lP,c.onVideoProgress=this.Tp,c.onLoadedMetadata=this.RN,c.onDompaused=this.xN,c.playbackready=this.AO,c.statechange=this.ME,c.connectionissue=this.nN,c.newelementrequired=this.pE,c.heartbeatparams=this.qK,c.videoelementevent=this.NP,c.drmoutputrestricted=this.zN,c.requestmediasource=this.YO,c.signatureexpired=this.pP,c.localmediachange=this.sK,c);this.za=
new g.nR(this);g.C(this,this.za);c=10;g.UC(this.u)&&(c=3);fD(this.u)&&(c=g.P(this.u.experiments,"tvhtml5_unplugged_preload_cache_size"));this.xb=new i0(c,function(e){e!==g.Z(d,e.getPlayerType())&&(TA("prefetch"+e.getVideoData().videoId),e.dispose())});
g.C(this,this.xb);this.Fc=this.Yc=-1;this.Rb=new g.F(this.template.resize,16,this.template);g.C(this,this.Rb);LAa(this);this.ka=new Y_(this.B,this.u,this.C);this.Qa=new P_(this.B);g.C(this,this.Qa);rAa(this.u.deviceParams.c);this.events.R(this.B,g.RD("appapi"),this.KM);this.events.R(this.B,g.SD("appapi"),this.LM);this.events.R(this.B,g.RD("appad"),this.UD);this.events.R(this.B,g.SD("appad"),this.UD);this.events.R(this.B,g.SD("applooprange"),this.ty);this.events.R(this.B,"presentingplayerstatechange",
this.Kf);this.events.R(this.B,"resize",this.ZO);this.template.fa(ne(document,a));this.events.R(this.B,"offlineslatestatechange",this.rO);this.ge=MAa(this,this.template.element);g.C(this,this.ge);this.ca("hoffle_save")?this.K=new MW(this.B,y0(this,1),function(){return d.De()}):zfa()&&bxa();
this.u.Qa&&(g.CX.ux=g.L_);NAa(this);this.P.tick("fs");OAa(this);this.W=null;this.u.Qa&&Ixa(this.D);g.OC(this.D.J.T())&&BX(this.D,"music");g.FC(this.D.J.T())&&BX(this.D,"embed");this.ca("web_player_sentinel_is_uniplayer")||g.Bo(Error("Player flag missing: web_player_sentinel_is_uniplayer"));this.Ef=PAa(this)};
PAa=function(a){function b(c){if(c.stack&&-1!==c.stack.indexOf("player"))(a.G||a.C).G.onError("player.exception",g.mB({n:c.name,m:c.message}))}
zo.push(b);return function(){var c=zo.indexOf(b);-1!==c&&zo.splice(c,1)}};
KAa=function(a){var b=new iV(a.u,1,a.P,a.template,function(c,d){for(var e=[],f=1;f<arguments.length;++f)e[f-1]=arguments[f];return a.da.V.apply(a.da,[c].concat(g.la(e)))},function(){return a.B.getVisibilityState()},a.visibility);
b.setPlaybackRate(a.u.B?1:QAa(a,RAa()));rs(b,a.ac,a);return b};
MG=function(a){if(!a.nd){var b={tr:{subscribeEndpoint:EU,unsubscribeEndpoint:FU,playlistEditEndpoint:HU,webPlayerShareEntityServiceEndpoint:IW,modifyChannelNotificationPreferenceEndpoint:GU,feedbackEndpoint:HW}},c=sva(),d=wq();AU.u=new AU(b,c,d,M,void 0);a.nd=AU.u}return a.nd};
JAa=function(a){var b="",c=vAa(a);0===c.indexOf("//")&&(c=a.u.protocol+":"+c);var d=c.lastIndexOf("/base.js");-1!==d&&(b=c.substring(0,d+1));if(c=Error().stack)if(c=c.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))c=c[1],c.includes(b)||g.Bo(Error("Player module URL mismatch: "+(c+" vs "+b+".")));b=new yX(a.B,b);SAa(a,b);return b};
SAa=function(a,b){var c={};c=(c.destroyed=function(){a.u.C&&a.G?a.B.va("onApiChange",a.G.getPlayerType()):a.B.va("onApiChange")},c);
b.C=c};
TAa=function(a,b){var c=a.isVideoInfoVisible();a.ba||(a.ba=new x0(a.B),g.C(a,a.ba),g.uP(a.B,a.ba.element,4));g.vN(a.ba,b);A0(a)&&c!==b&&g.cX(a.D).Uy();c=a.G;b&&c&&c.gb("sfn","1",!0)};
C0=function(a){var b=B0.getTag(!0,!a.u.deviceHasDisplay);a.F=new g.OS(b);g.C(a,a.F);a.G&&pW(a.G,a.F);try{a.u.Pa?(a.qb&&a.events.Db(a.qb),a.qb=a.events.R(a.F,"volumechange",a.gO)):(a.F.Pn(a.Y.muted),a.F.setVolume(a.Y.volume/100))}catch(d){var c="setvolume.1;emsg."+(d.message&&d.message.replace(/[;:,]/g,"_"));a.C.re("html5.missingapi","UNSUPPORTED_DEVICE",c,void 0);return}g.qs(a.za);UAa(a);c=a.template;c.u=b;c.G=!1;c.u.parentNode||g.He(c.C,c.u,0);c.K=new g.eg(0,0,0,0);AAa(c);r0(c);g.H(c.u,"video-stream");
g.H(c.u,g.p0.MAIN_VIDEO);b=c.app.T();b.de&&c.u.setAttribute("data-no-fullscreen","true");b.Sh&&(c.u.setAttribute("webkit-playsinline",""),c.u.setAttribute("playsinline",""));b.Ar&&c.u&&c.R(c.u,"click",c.u.play,c.u);try{a.F.pn()}catch(d){c="activate.1;emsg."+(d.message&&d.message.replace(/[;:,]/g,"_")),a.C.re("html5.missingapi","UNSUPPORTED_DEVICE",c,void 0)}};
D0=function(a){if(a.F){a.qb&&(a.events.Db(a.qb),a.qb=null);g.qs(a.za);a.G&&oW(a.G,!0);xAa(a.template);a.F.Bk()&&B0.releaseTag(a.F.Ma());if(!a.ca("html5_unset_src_on_remove_killswitch"))try{a.F.cu()}catch(b){}a.F=null}};
g.aN=function(a,b){var c=g.Z(a,b);c||(c=y0(a,b),E0(a,c));tX(a,c)};
tX=function(a,b){if(a.G!==b){b.getPlayerType();b.getVideoData();var c=null;a.G&&(c=a.G.getPlayerState(),DX(a.D,3),nX(a,"cuerangesremoved",ZD(a.G.ea)||[]),a.Qa&&!b.isGapless()&&a.G.isGapless()&&a.F&&a.F.stopVideo(),wxa(a));E0(a,b);a.G=b;a.F&&pW(b,a.F);rs(b,a.Bf,a);a.Na("newdata",b,b.getVideoData());c&&!g.EL(c,b.getPlayerState())&&a.ME(new g.EJ(b.getPlayerState(),c));b.ka.isFinished()&&a.Na("dataloaded",b,b.getVideoData());(c=(c=b.getVideoData().La)&&c.video)&&a.B.va("onPlaybackQualityChange",c.quality);
nX(a,"cuerangesadded",ZD(a.G.ea)||[]);c=b.getPlayerState();g.U(c,2)?VAa(a):g.U(c,8)&&b.playVideo()}};
VAa=function(a){if(!WAa(a)){var b=a.C.B;b&&(b=b.Mo(),b instanceof Promise&&b["catch"](function(){}));
F0(a,IL(qxa(a)))}};
UAa=function(a){var b=a.F;MB()?a.za.R(b,"webkitpresentationmodechanged",a.iP):LB()&&(a.za.R(b,"enterpictureinpicture",function(){G0(a,!0)}),a.za.R(b,"leavepictureinpicture",function(){G0(a,!1)}));
MC&&(a.za.R(b,"webkitbeginfullscreen",function(){H0(a,3)}),a.za.R(b,"webkitendfullscreen",function(){H0(a,0)}))};
E0=function(a,b){if(b!==a.C){var c=b.getPlayerType();a.de[c]=b}};
wxa=function(a){var b;if(b=a.ia)b=a.F,b=!!b&&b===a.ia.C;b&&(D0(a),C0(a));a.G&&(oW(a.G),ts(a.G,a.Bf,a));a.G=null};
g.Z=function(a,b){return b?1===b?a.C:a.de[b]||null:a.G};
y0=function(a,b){var c=a.P;2===b&&(c=new ZT(a.u));return new iV(a.u,b,c,a.template,function(d,e){for(var f=[],h=1;h<arguments.length;++h)f[h-1]=arguments[h];return a.da.V.apply(a.da,[d].concat(g.la(f)))},function(){return a.B.getVisibilityState()},a.visibility)};
wX=function(a,b){return a.Kc(b)?a.C:b};
I0=function(a,b){var c=a.G;return c&&b===a.C&&a.Kc(b)&&a.Kc(c)?c:b};
XAa=function(a){var b=a.getVideoData(),c=10<b.lengthSeconds,d=a.D;d.MA();BX(d,"attribution",void 0,!1,!0);BX(d,"embed");BX(d,"fresca",void 0,!1,!0);BX(d,"kids");BX(d,"remote");BX(d,"miniplayer");BX(d,"music");BX(d,"captions",void 0,!0);BX(d,"unplugged");BX(d,"visualizer",void 0,!1,!0);BX(d,"ypc",void 0,!1,!0);BX(d,"ypc_clickwrap",void 0,!1,!0);BX(d,"yto",void 0,!1,!0);BX(d,"webgl",void 0,!1,!0);d.D&&c?g.pX(d.J,"endscreen"):BX(d,"endscreen");d.D&&c?(g.pX(d.J,"annotations_module"),g.pX(d.J,"creatorendscreen")):
(d.Iv(),BX(d,"creatorendscreen",void 0,!0));d.NA();Hxa(d);c&&kG(b)?a.ce.R(a.B,"presentingplayerstatechange",a.CO):Gxa(a.D);a.B.V("videoready",b)};
J0=function(a){return a.C.getVideoData()};
g.K0=function(a,b){var c=g.Z(a,1);c&&gV(c,b)};
L0=function(a){a=J0(a);a.isValid();return kG(a)};
NAa=function(a){var b=new g.qF(a.u,a.config.args);g.wt()&&b.Pe.push("remote");b.isValid()&&(a.C.Dh(b,function(){return a.De()}),b=window,a.ca("html5_androidtv_quic")&&"h5vcc"in b&&"settings"in b.lJ&&b.lJ.settings.set("QUIC",1),!g.Q(a.u.experiments,"html5_delay_initial_loading")&&L0(a)&&(a.u.Df||a.u.Ef)&&pV(a.C))};
OAa=function(a){YAa(a);var b=a.config.args;C0(a);var c=J0(a);a.B.va("onVolumeChange",a.Y);if(b&&vG(b)){var d=cD(a.u);d&&!a.X&&(b.fetch=0);var e=g.LC(a.u)&&g.Q(a.u.experiments,"embeds_wexit_list_ajax_migration");e&&!a.X&&(b.fetch=0);M0(a,b);if(d&&!a.X)N0(a);else if(e&&!a.X)O0(a);else if(!c.isValid())a.playlist.onReady(function(){P0(a)})}tX(a,a.C);
g.U(a.C.getPlayerState(),128)||(b=hha(a.u.deviceHasDisplay),"fmt.noneavailable"===b?a.C.re("html5.missingapi","HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1",void 0):"html5.missingapi"===b?a.C.re(b,"UNSUPPORTED_DEVICE","nocanplaymedia.1",void 0):c&&c.isValid()&&L0(a)&&(a.u.Df||a.u.Ef)?Q0(a):ZAa()?(g.zq("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!a.u.he}),$Aa(!1),Q0(a)):oD(a.u)||aBa(a),a.ca("web_player_inline_botguard")&&(g.eD(a.u)?(mp(function(){R0(a)}),mp(function(){Pr()})):(R0(a),
Pr())))};
R0=function(a){if(a.ca("web_player_botguard_inline_skip_config_killswitch")){var b=g.K("BG_I",null);var c=g.K("BG_IU",null);var d=g.K("BG_P",null)}else{var e=a.getVideoData().botguardData;if(!e)return;b=e.interpreterScript;c=e.interpreterUrl;d=e.program}e=a.getVideoData().Rg||"";a=a.u.cspNonce;e=e?"c1b"in Sp(e):!1;d&&(Mr.wd?0:!SS||72E5<(0,g.N)()-SS)&&(b||c)&&(eB("bg_i","player_att"),Mr.initialize(b,c,d,psa,a,e))};
aBa=function(a){a.B.V("initializingmode");g.S0(a,2);BX(a.D,"remote");g.Q(a.u.experiments,"player_cued_miniplayer_module_killswitch")||BX(a.D,"miniplayer")};
Q0=function(a){if(g.U(a.C.getPlayerState(),128))return!1;L0(a)&&a.u.Ef&&(B0.hasTags(void 0)&&a.bb?(SW(a,{muted:!1,volume:a.Y.volume},!1),T0(a,!1)):B0.hasTags(void 0)||a.Y.muted||(SW(a,{muted:!0,volume:a.Y.volume},!1),T0(a,!0)));U0(a,1,a.C.getVideoData(),!1);a.B.V("initializingmode");tX(a,a.C);g.S0(a,3);var b;if(!(b=!a.u.Ri)){if(b=a.ia)b=a.F,b=!!b&&b===a.ia.C;b=b&&a.Ve}b&&(D0(a),C0(a),pW(a.C,a.F));vV(a.C);if(g.U(a.C.getPlayerState(),128))return!1;F0(a,3);return a.Ve=!0};
A0=function(a){a=g.cX(a.D);return!!a&&a.loaded};
hN=function(a,b){1===b&&(a.P.tick("vr"),a.Ea||(a.Ea=bt(gB,a.bE,a)),Fwa(a.G),Jua(a.P,a.G.getVideoData(),bBa(a)));var c=a.u;(oD(c)&&c.C||g.VC(c))&&(a.Kc()||a.B.va("onAdStateChange",b))};
cBa=function(a,b){a.G===a.C&&a.G.zl()!==b&&(a.G.setLoop(b),a.B.V("loopchange",b))};
V0=function(a,b){if(!a.N)return!1;var c=.001*a.N.startTimeMs,d=.001*a.N.endTimeMs;return ce(b,c)||ce(b,d)||b>=c&&b<=d};
QAa=function(a,b){var c=a.B.getAvailablePlaybackRates();b=Number(b.toFixed(2));var d=c[0];c=c[c.length-1];b<=d||(b>=c?d=c:(d=Math.floor(100*b+.001)%5,d=0===d?b:Math.floor(100*(b-.01*d)+.001)/100));return d};
W0=function(a,b,c){if(a.Kc(c)){c=c.getVideoData();if(a.W){a=a.W;for(var d=g.q(a.B),e=d.next();!e.done;e=d.next())if(e=e.value,c.Wb===e.Wb){b+=e.Yb/1E3;break}d=b;a=g.q(a.B);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.Wb===e.Wb)break;var f=e.Yb/1E3;if(f<b)d+=e.durationMs/1E3+f-e.Gc/1E3;else break}c=d}else{a=a.ka;d=g.q(a.u);for(e=d.next();!e.done;e=d.next())if(e=e.value,c.Wb===e.Wb){b+=e.Yb/1E3;break}d=b;a=g.q(a.u);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.Wb===e.Wb)break;f=e.Yb/1E3;if(f<
b)d+=e.durationMs/1E3+f-e.Gc/1E3;else break}c=d}return c}return b};
YAa=function(a){var b=a.template;b.la();var c=b.app.T();c.Ri||b.Fp("tag-pool-enabled");c.G&&b.Fp(g.p0.HOUSE_BRAND);"gvn"===c.playerStyle&&(b.Fp("ytp-gvn"),b.element.style.backgroundColor="transparent");c.za&&(b.W=g.Jo("yt-dom-content-change",b.resize,b));g.Q(c.experiments,"web_player_ios_mweb_resizing")&&b.R(window,"orientationchange",b.resize,b);b.R(window,"resize",b.resize,b);b=a.J;b.element=a.template.element;c=b.element;for(var d in b.B)b.B.hasOwnProperty(d)&&(c[d]=b.B[d]);(d=ns(a.template.element))&&
a.events.R(a.template,d,a.DN);a.events.R(window,"resize",a.aP)};
qxa=function(a,b){return 3===a.getPresentingPlayerType()?g.cX(a.D).Bc:g.Z(a,b).getPlayerState()};
dBa=function(a,b){return 3===a.getPresentingPlayerType()?IL(g.cX(a.D).Bc):2!==b||a.Kc()?a.Yc:a.Fc};
eBa=function(a){X0(a);cBa(a,!1);a.setLoopRange(null);a.Zb={};var b=a.P;if(b.u){var c=b.u;c.B={};c.u={}}b.B=!1;a.W?(b=a.W,a=a.C,a.getPlayerType(),X_(b,!1),uX(b),b.u=a):(b=a.ka,a=a.C,1!=