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

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
'use strict';var aa,baa,caa,ea,daa,eaa,fa,ha,ka,la,ma,iaa,jaa,wa,xa,kaa,laa,maa,Aa,Ca,Da,Ea,Ha,naa,paa,qaa,Wa,Xa,Ya,raa,Za,saa,waa,bb,xaa,db,gb,jb,rb,tb,wb,xb,yb,zb,Faa,Bb,Db,Cb,Gaa,Haa,Iaa,Eb,Fb,Jaa,Gb,Hb,Ib,Kaa,Laa,Maa,Lb,Oaa,Paa,fc,Qaa,kc,Raa,Saa,hc,Taa,Uaa,Vaa,sc,tc,Waa,Xaa,cba,Bc,bba,$aa,Ic,Jc,Lc,Mc,Pc,Uc,Qc,Wc,fba,Xc,gba,Yc,ad,bd,hba,cd,iba,dd,ed,jba,id,kba,lba,jd,kd,mba,nba,ld,oba,qba,pba,md,rd,td,tba,sba,ud,vd,uba,wd,xd,Cd,Ed,wba,Fd,F,Gd,Id,Jd,Kd,Ld,Md,Qd,Ud,Wd,Xd,xba,Zd,yba,$d,zba,ae,Bba,
Aba,ee,Eba,Gba,me,Iba,Jba,re,Lba,Mba,Oba,we,Pba,xe,Qba,Rba,ze,Sba,Tba,Uba,Vba,Ce,Yba,Zba,aca,bca,cca,dca,eca,Wba,Xba,gca,hca,ica,jca,Ie,kca,lca,mca,nca,Ee,$ba,fca,qca,rca,sca,Te,Ue,tca,Ve,We,Xe,vca,uca,wca,xca,hf,jf,Aca,kf,nf,Bca,Cca,qf,uf,Dca,Gca,Jf,Lf,Hca,Ica,Mf,Nca,Rf,Kca,Mca,Pf,Of,Vf,Wf,Oca,Xf,Pca,Zf,$f,Qca,fg,gg,hg,jg,Uca,kg,Wca,Zca,ng,cda,rg,sg,eda,fda,dda,kda,lda,xg,mda,oda,pda,zg,qda,Cg,Dg,uda,Hg,Jg,Mg,Sg,Vg,Wg,vda,wda,xda,yda,Zg,Ada,dh,Cda,Eda,Dda,eh,gh,Fda,fh,Gda,Yg,sh,Ida,uh,th,Xg,wh,Jda,
Kda,xh,yh,Lda,Nda,Pda,Eh,Fh,Gh,Tda,Ih,Uda,Hh,Yda,Ch,Rda,$da,Xda,Vda,Wda,aea,Zda,Jh,Nh,cea,dea,eea,fea,gea,hea,lea,nea,oea,qea,pea,rea,Wh,Xh,Yh,tea,uea,Zh,$h,wea,ci,xea,Aea,ei,fi,Bea,gi,hi,Dea,Eea,ri,Fea,Gea,si,ti,Hea,vi,xi,Iea,yi,zi,Lea,Mea,Oea,Pea,Rea,Qea,Sea,Bi,Tea,Ei,Ii,Ji,Ki,Li,Zea,afa,bfa,Ni,dfa,efa,ffa,hfa,gfa,ifa,cfa,Mi,kfa,Oi,lfa,mfa,Pi,nfa,Qi,Ri,Si,Ti,Ui,ofa,pfa,qfa,rfa,Vi,sfa,tfa,Wi,Yi,ufa,vfa,Zi,yfa,zfa,Bfa,$i,aj,Dfa,Efa,gj,Ffa,Hfa,Gfa,Ifa,Jfa,Kfa,hj,ij,jj,Lfa,Mfa,Ofa,Pfa,lj,mj,nj,oj,Qfa,
pj,qj,rj,sj,tj,Vfa,Sfa,wj,Ufa,xj,Tfa,vj,uj,zj,Wfa,Bj,Aj,Xfa,Yfa,Hj,Ij,Kj,aga,Jj,Nj,cga,Oj,Zfa,fga,gga,hga,Sj,Tj,Uj,iga,Vj,Wj,Xj,Yj,jga,Zj,ak,bk,kga,lga,ck,mga,kj,pga,qga,rga,sga,nga,dk,fk,tga,ek,vga,wga,hk,ik,xga,kk,lk,mk,jk,nk,gk,zga,Aga,yga,Bga,Cga,Dga,ok,pk,qk,rk,sk,tk,uk,Ega,Fga,vk,wk,xk,Gga,Iga,Jga,zk,Bk,Ak,Dk,Ek,Fk,Lga,Mga,Gk,Hk,Ik,Oga,Pga,Sga,Qga,Tga,Xga,Jk,Wga,Uga,Kk,Lk,Yga,Mk,Zga,Nk,aha,$ga,bha,cha,Qk,Rk,dha,eha,fha,Sk,Tk,gha,Uk,hha,iha,mha,Zk,nha,oha,pha,qha,rha,al,sha,tha,uha,hl,gl,fl,
vha,wha,xha,il,jl,kl,zha,pl,ql,rl,sl,tl,ul,Bha,Cha,Dha,vl,xl,yl,Cl,Dl,Gl,Fha,Hha,Gha,Iha,Jha,Ml,Kha,Lha,Nl,Mha,Nha,Oha,Pha,Rl,Pl,Sl,Tl,Ul,Qha,Rha,Sha,Vl,Wl,Xl,Tha,Uha,Vha,Yl,Wha,Zl,$l,Xha,Yha,Zha,$ha,aia,bia,cia,bm,cm,dm,fm,fia,gm,hm,gia,eia,em,hia,im,jm,km,mm,lm,iia,jia,kia,nm,mia,om,oia,pia,qia,ria,sia,tia,uia,via,rm,sm,tm,xia,wia,vm,yia,zm,zia,Am,Aia,Bia,Bm,Cm,Dm,Cia,Em,Fm,Gm,Hm,Im,Jm,Km,Lm,Mm,Dia,Eia,Fia,Gia,Nm,Hia,Jia,Iia,Pm,Qm,Lia,Kia,Qia,Pia,Rm,Ria,Sia,Tia,Via,Uia,Wia,Sm,Xia,Yia,Um,Zia,$ia,
aja,bja,Vm,cja,Wm,dja,Xm,Ym,fja,Zm,gja,$m,an,hja,ija,bn,dn,kja,en,jja,lja,mja,oja,qja,fn,rja,jn,kn,tja,uja,xja,yja,ln,zja,mn,nn,on,pn,qn,rn,sn,tn,un,vn,wn,xn,yn,Dja,Cja,Eja,Gja,Fja,Ija,Bja,Hja,Aja,zn,An,Kja,Lja,Mja,En,Fn,Gn,Bn,Oja,Hn,Jja,Qja,Rja,Sja,Pja,In,Jn,Kn,Ln,Tja,Nja,Uja,Mn,Vja,Wja,Xja,Yja,Zja,bka,On,cka,Pn,dka,gka,Sn,jka,ika,Rn,Un,kka,lka,mka,ao,nka,oka,bo,pka,no,ko,lo,mo,qka,qo,po,rka,so,ska,uka,to,vka,wka,Bka,xka,yo,Gka,zo,Ao,Ika,Do,Jka,Kka,Eo,Mka,Go,Ho,Io,Nka,Ko,Lo,Mo,No,Po,Qo,Pka,Ro,So,
Qka,Rka,To,Ska,Tka,Vo,Wo,Xka,Yo,Zo,$o,ap,bp,cp,dp,ep,fp,gp,hp,ip,jp,kp,lp,mp,np,op,pp,qp,rp,up,vp,wp,xp,yp,zp,Ap,Bp,Cp,Dp,Ep,Fp,Gp,Hp,Ip,Jp,Kp,Lp,Mp,Np,Op,Pp,Qp,Rp,Sp,Tp,Up,Vp,Wp,Xp,Yp,Zp,$p,aq,bq,cq,dq,gla,fq,gq,hq,iq,jq,kq,lq,mq,nq,oq,pq,qq,rq,sq,tq,uq,vq,wq,xq,yq,zq,Aq,Bq,Cq,Dq,Eq,Fq,Gq,Hq,Iq,Jq,Kq,Lq,Mq,Nq,Oq,Pq,Qq,Rq,Sq,Tq,Uq,Vq,Wq,Xq,Yq,Zq,$q,ar,br,cr,dr,er,fr,gr,hr,ir,jr,kr,lr,mr,nr,or,pr,qr,rr,sr,tr,ur,vr,wr,xr,yr,zr,Ar,Br,Cr,Dr,Er,Fr,Gr,Hr,Ir,Jr,Kr,Lr,Mr,Nr,Or,Pr,Qr,Rr,Sr,Tr,Ur,Vr,Wr,Xr,
Yr,Zr,$r,as,bs,cs,ds,es,fs,gs,hs,is,js,ks,ls,ms,ns,os,ps,qs,rs,ts,us,vs,ws,xs,ys,zs,As,Bs,Cs,Ds,Es,Fs,Gs,Hs,Is,Js,Ks,Ls,Ms,Ns,Os,Ps,Qs,Rs,Ss,Ts,Us,Vs,Ws,Xs,Ys,Zs,$s,at,bt,dt,et,ft,gt,ht,jt,kt,lt,Ila,mt,Jla,nt,Lla,ot,pt,qt,rt,tt,ut,vt,wt,zt,xt,At,Bt,Ct,Dt,Et,Ft,Gt,Ht,It,Jt,Kt,Lt,Mt,Nt,Ot,Pt,Qt,Rt,St,Tt,Ut,Vt,Wt,Xt,Vla,Wla,Zt,$t,bu,Xla,cu,Yla,fu,gu,hu,iu,ju,ku,mu,nu,bma,ou,pu,qu,Zla,ru,ema,hma,tu,jma,lma,yu,mma,nma,oma,sma,qma,rma,zu,Cu,Bu,tma,Eu,Fu,Gu,uma,vma,wma,Nu,xma,Pu,Qu,yma,Ru,Su,Tu,Vu,Xu,Yu,
Mu,$u,Ama,av,bv,cv,dv,ev,fv,gv,hv,Cma,Dma,iv,kv,jv,Fma,Ima,Gma,Hma,Jma,Kma,Lma,nv,rv,tv,uv,Mma,Nma,Pma,Rma,Sma,Xma,Tma,Uma,Vma,Wma,ana,xv,yv,bna,Bv,zv,Ev,Gv,cna,Nv,Ov,Sv,Tv,Vv,Wv,Yv,hna,ina,$v,jna,kna,bw,lna,mna,cw,dw,nna,ew,ona,hw,rna,sna,fw,tna,una,wna,vna,kw,qna,yna,zna,Ana,nw,Bna,Cna,pw,Dna,qw,Ena,Fna,uw,Gna,Hna,Ina,Jna,yw,Kna,Lna,Mna,Nna,Ona,Pna,Qna,Rna,Cw,Sna,Dw,Vna,Una,Tna,Ew,Bw,Wna,Fw,Gw,Iw,Yna,Mw,Lw,Hw,Nw,Zna,$na,Qw,Rw,boa,coa,Sw,Tw,doa,eoa,aoa,goa,hoa,ioa,joa,koa,Ww,Xw,Zw,moa,$w,noa,ooa,
bx,cx,roa,qoa,poa,soa,toa,mx,nx,uoa,kx,voa,hx,lx,jx,ix,woa,xoa,vx,wx,zoa,Aoa,Doa,Bx,Cx,Dx,Eoa,Hx,Ix,Lx,Kx,Jx,Nx,Hoa,Goa,Vx,Joa,Koa,Ioa,Loa,Wx,Moa,Noa,$x,Poa,Qoa,Yx,fy,Ooa,gy,hy,Uoa,Voa,Toa,Yoa,Zoa,Soa,Xoa,Woa,Xx,ny,oy,apa,ry,sy,uy,epa,fpa,gpa,hpa,ipa,jpa,kpa,Ppa,rpa,vy,Rpa,xpa,ypa,Apa,By,aqa,eqa,fqa,gqa,tqa,My,Gqa,Ky,Ny,Pqa,Tqa,wra,Sy,zra,Bra,Cra,Ara,Ty,Wy,Xy,Era,Vy,Yy,Zy,cz,fz,gz,dz,Gra,hz,iz,Hra,Ira,Jra,kz,Kra,Mra,lz,Nra,mz,nz,Jv,Ura,Wra,rz,Yra,uz,wz,xz,$ra,asa,kua,Az,mua,Bz,yua,zua,Aua,Bua,Cz,
Cua,Kz,Dua,Gua,Jua,Hua,Uz,Tz,Kua,Sz,Vz,Wz,Nua,Pua,Zz,$z,bA,aA,Rua,cA,dA,eA,fA,gA,hA,iA,Sua,jA,kA,lA,mA,Xua,Zua,ava,bva,oA,dva,eva,uA,vA,fva,gva,wA,zA,hva,AA,iva,jva,kva,lva,EA,DA,FA,GA,HA,IA,BA,JA,KA,nva,LA,mva,qva,rva,sva,tva,MA,NA,OA,uva,PA,Ava,QA,RA,TA,UA,YA,XA,jB,WA,Dva,kB,lB,mB,VA,Fva,Gva,Hva,Eva,pB,qB,sB,vB,xB,Iva,yB,Lva,CB,Pva,GB,BB,Qva,Uva,AB,Kva,Jva,IB,Vva,Wva,Xva,MB,NB,Yva,OB,PB,LB,bwa,Zva,$va,cwa,QB,RB,dwa,SB,ewa,TB,UB,VB,WB,fwa,gwa,XB,hwa,YB,iwa,ZB,$B,bC,hC,jwa,iC,jC,kC,lC,mC,nC,oC,kwa,
pC,rC,mwa,nwa,qC,sC,qwa,rwa,tC,swa,wC,twa,xC,zC,uwa,yC,AC,vwa,CC,ywa,EC,FC,KC,Awa,HC,LC,NC,Bwa,PC,JC,MC,Cwa,QC,Dwa,RC,Ewa,GC,IC,zwa,OC,SC,Fwa,Gwa,TC,Hwa,Iwa,UC,Jwa,VC,Kwa,XC,Lwa,WC,Mwa,YC,ZC,$C,aD,bD,Nwa,cD,Owa,dD,Pwa,eD,fD,gD,Qwa,hD,Rwa,mD,iD,Swa,Twa,Uwa,Vwa,nD,oD,pD,qD,rD,Xwa,Ywa,Zwa,$wa,tD,axa,uD,vD,bxa,cxa,wD,dxa,exa,ixa,jxa,fxa,gxa,hxa,xD,zD,yD,AD,BD,kxa,lxa,CD,DD,ED,FD,mxa,nxa,oxa,pxa,rxa,qxa,HD,sxa,txa,uxa,vxa,ID,JD,KD,wxa,MD,LD,QD,DB,RD,SD,Nva,Mva,TD,xxa,UD,OD,VD,yxa,YD,ZD,aE,zxa,bE,cE,dE,
eE,fE,gE,Axa,hE,iE,Bxa,jE,kE,lE,mE,nE,oE,Dxa,Exa,pE,qE,rE,Fxa,Gxa,sE,tE,Sva,HB,Kxa,Lxa,Mxa,Nxa,Oxa,Pxa,zB,Qxa,uE,vE,Sxa,Txa,wE,Xxa,Uxa,Vxa,Zxa,$xa,yE,Yxa,aya,zE,AE,BE,bya,cya,dya,CE,eya,xE,fya,DE,Rxa,hya,FE,iya,jya,kya,HE,GE,lya,mya,nya,oya,qya,Tva,Rva,IE,KE,ME,NE,OE,PE,LE,SE,sya,UE,uya,VE,wya,vya,tya,xya,yya,zya,Bya,WE,Ova,XE,Cya,Eya,EB,Fya,Gya,Hya,Iya,ZE,Kya,Jya,$E,aF,gF,Mya,Nya,jF,mF,Oya,Qya,Pya,Rya,Sya,Tya,Uya,Vya,Wya,pF,Xya,Yya,Zya,qF,rF,sF,tF,$ya,aza,uF,bza,vF,wF,cza,xF,dza,zF,eza,AF,BF,CF,
DF,fza,gza,iza,EF,jza,hza,cG,tza,YF,dG,gG,hG,PF,ZF,vza,FF,qza,$F,bG,kG,oG,wza,MF,rG,LF,sG,vG,XF,wG,xG,yG,zG,AG,BG,yza,zza,CG,Aza,Bza,Cza,Dza,DG,Eza,Jza,Iza,Fza,Hza,Gza,EG,Kza,FG,Lza,Mza,Qza,KG,LG,Tza,Vza,MG,NG,Wza,Yza,aAa,bAa,cAa,gAa,PG,hAa,iAa,UG,WG,XG,YG,ZG,kAa,$G,aH,lAa,bH,mAa,cH,dH,eH,fH,gH,hH,nAa,oAa,iH,jH,mH,rAa,sAa,uAa,nH,vAa,vH,EAa,zAa,AAa,GAa,HAa,wH,IAa,KAa,JAa,LAa,yH,BH,MAa,xH,CH,DH,NAa,RAa,OAa,QAa,NH,SH,VH,vBa,cBa,KH,WH,MH,wBa,xBa,ZH,aBa,zBa,yBa,HH,LH,UH,FBa,BBa,CBa,DBa,EBa,GBa,$H,HBa,
IBa,bI,cI,eI,GH,YH,lBa,PAa,dBa,rBa,pBa,hI,fI,ABa,oI,pI,qI,rI,VBa,TH,WBa,tI,XBa,bBa,NBa,XH,YBa,UAa,JH,TAa,Xza,xI,zI,$Ba,AI,BI,CI,EI,DI,FI,aCa,bCa,GI,II,cCa,dCa,JI,KI,LI,MI,NI,eCa,OI,fCa,PI,QI,RI,SI,TI,UI,gCa,VI,hCa,WI,YI,kCa,XI,lCa,iCa,jCa,mCa,nCa,oCa,ZI,$I,aJ,qCa,bJ,cJ,sCa,hJ,fJ,vCa,uCa,wCa,kJ,tCa,lJ,gJ,mJ,jJ,iJ,eJ,dJ,oJ,pJ,rJ,tJ,zCa,ACa,yCa,uJ,vJ,wJ,xJ,yJ,BCa,zJ,AJ,CCa,BJ,CJ,DJ,FCa,DCa,GJ,GCa,HCa,HJ,ICa,KJ,LJ,JCa,OCa,MJ,PCa,NJ,OJ,QCa,PJ,RCa,SCa,TCa,UCa,VCa,QJ,RJ,XCa,WCa,ZCa,YCa,SJ,TJ,UJ,bDa,cDa,
dDa,VJ,eDa,WJ,gDa,XJ,ZJ,$J,aK,bK,eK,gK,hK,hDa,iDa,iK,jDa,kDa,jK,lDa,lK,mDa,nDa,oDa,mK,nK,sDa,tDa,uDa,oK,qDa,rDa,pK,wDa,rK,qK,tK,uK,wK,xDa,yDa,zDa,ADa,BDa,xK,zK,FDa,IDa,CDa,AK,RDa,BK,CK,TDa,SDa,VDa,WDa,YDa,XDa,ZDa,$Da,aEa,bEa,DK,EK,cEa,dEa,eEa,fEa,gEa,hEa,LK,jEa,kEa,JK,KK,iEa,nEa,oEa,MK,rEa,pEa,tEa,sEa,uEa,NK,xCa,vEa,rCa,wEa,xEa,yEa,OK,EEa,AEa,BEa,CEa,FEa,PK,IEa,GEa,JEa,KEa,HEa,DEa,LEa,kK,NEa,OEa,MEa,QK,RK,PEa,QEa,REa,SK,UK,TEa,VK,YK,ZK,UEa,VEa,WEa,$K,YEa,ZEa,$Ea,aFa,bFa,cFa,dFa,eL,eFa,fL,hL,fFa,gFa,
hFa,iL,iFa,kFa,lFa,lL,mL,nL,mFa,oL,nFa,qL,pFa,oFa,rL,sL,tL,uL,qFa,vL,wL,rFa,xL,yL,vFa,sFa,uFa,tFa,wFa,AL,BL,xFa,yFa,zFa,CL,AFa,CFa,BFa,DL,EL,FL,GL,HL,JL,KL,LL,ML,NL,OL,PL,EFa,DFa,QL,FFa,RL,SL,TL,UL,VL,YL,ZL,$L,aM,bM,cM,dM,eM,HFa,JFa,IFa,fM,LFa,OFa,PFa,kM,lM,RFa,nM,SFa,oM,UFa,qM,rM,sM,WFa,uM,aGa,ZFa,YFa,XFa,cGa,vM,wM,xM,yM,zM,AM,BM,FM,fGa,hGa,iGa,HM,jGa,Iv,lGa,kGa,IM,nGa,mGa,oGa,KM,MM,pGa,qGa,rGa,tGa,uGa,yGa,xGa,FGa,HGa,IGa,JGa,fN,gN,hN,LGa,iN,NGa,jN,OGa,PGa,lN,mN,kN,zEa,RGa,oN,SGa,TGa,QGa,sN,UGa,
tN,XGa,$Ga,aHa,EN,FN,IN,JN,KN,LN,MN,NN,ON,bHa,PN,dHa,eHa,cHa,QN,RN,fHa,iHa,jHa,SN,kHa,TN,lHa,mHa,nHa,oHa,UN,VN,WN,pHa,XN,qHa,rHa,YN,ZN,sHa,tHa,aO,bO,wHa,uHa,xHa,yHa,zHa,AHa,BHa,mO,GHa,pO,IHa,qO,FHa,JHa,KHa,oO,DHa,HHa,rO,sO,tO,xN,qN,vO,xO,NHa,LHa,MHa,yO,BO,PHa,AO,QHa,RHa,GO,HO,IO,MO,THa,UHa,NO,OO,VHa,WHa,XHa,YHa,PO,$Ha,ZHa,aIa,QO,RO,bIa,UO,dIa,WO,SO,eIa,fIa,cIa,XO,YO,aP,gIa,hIa,$O,cP,bP,eP,gP,iIa,jP,jIa,mIa,kIa,nIa,kP,oIa,pIa,nP,oP,pP,qP,sP,qIa,rIa,uP,tIa,sIa,uIa,vIa,wIa,xIa,AP,BP,yIa,CP,zIa,DP,CIa,
FP,EP,DIa,EIa,FIa,GP,HP,GIa,HIa,IIa,JIa,IP,LP,LIa,KIa,MP,NP,OP,MIa,PP,QP,RP,SP,NIa,VP,WP,UP,QIa,TP,XP,SIa,RIa,bQ,$P,aQ,TIa,UIa,VIa,cQ,dQ,eQ,fQ,gQ,WIa,XIa,YIa,jQ,kQ,ZIa,mQ,nQ,pQ,$Ia,qQ,rQ,sQ,tQ,aJa,dJa,uQ,bJa,cJa,hJa,iJa,wQ,jJa,kJa,lJa,mJa,yQ,AQ,BQ,oJa,CQ,qJa,pJa,nJa,DQ,rJa,tJa,sJa,EQ,FQ,GQ,HQ,uJa,IQ,vJa,LQ,wJa,OQ,yJa,MQ,xJa,zJa,RQ,AJa,CJa,WQ,DJa,EJa,TQ,QQ,YQ,SQ,ZQ,HJa,$Q,VQ,PQ,GJa,XQ,BJa,FJa,IJa,JQ,bR,JJa,KJa,UQ,cR,dR,eR,fR,gR,hR,iR,jR,kR,lR,mR,MJa,pR,qR,rR,sR,tR,OJa,PJa,NJa,uR,vR,wR,xR,zR,yR,AR,
BR,QJa,CR,RJa,TJa,SJa,DR,ER,UJa,FR,GR,VJa,HR,WJa,IR,XJa,JR,LR,OR,NR,RR,QR,YJa,PR,TR,$Ja,aKa,UR,VR,WR,YR,$R,bKa,hP,ZJa,fKa,yP,cKa,bS,eKa,zP,dKa,gKa,iKa,hKa,jKa,kKa,eS,lKa,fS,mKa,hS,nKa,oKa,iS,pKa,jS,rKa,kS,qKa,mS,tKa,sKa,lS,nS,oS,uKa,vKa,wKa,xKa,yKa,rS,DKa,GKa,EKa,AKa,tS,zKa,FKa,wS,IKa,HKa,xS,KKa,MKa,NKa,LKa,CS,OKa,PKa,QKa,UKa,LS,VKa,MS,OS,PS,QS,WKa,DS,RS,TS,YKa,XKa,$Ka,US,aLa,VS,WS,bLa,XS,JS,IS,cLa,dLa,eLa,fLa,gLa,ES,SKa,KS,GS,YS,lLa,$S,mLa,nLa,jLa,bT,oLa,cT,hLa,eT,kLa,pLa,dT,aT,qLa,fT,rLa,ZS,tLa,
iT,kT,gT,jT,hT,vLa,uLa,mT,xLa,nT,oT,yLa,pT,qT,rT,sT,zLa,tT,vT,CLa,DLa,ELa,yT,xT,wT,FLa,GLa,HLa,ILa,BT,CT,DT,ET,JLa,GT,KLa,FT,HT,IT,LLa,NLa,RLa,OLa,PLa,QLa,SLa,TLa,NT,OT,ULa,VLa,XLa,YLa,PT,QT,RT,ZLa,dMa,fMa,WT,XT,gMa,ZT,cMa,hMa,ST,$La,iMa,TT,UT,aMa,bMa,VT,jMa,kMa,eMa,lMa,yAa,DAa,aU,bU,oMa,mMa,nMa,cU,pMa,dU,eU,fU,gU,qMa,rMa,sMa,hU,uMa,vMa,jU,wMa,kU,lU,xMa,oU,yMa,pU,CMa,sU,nU,EMa,uU,AMa,BMa,zMa,tU,rU,qU,DMa,IMa,GMa,FMa,wU,JMa,xU,KMa,yU,zU,LMa,JT,BU,CU,DU,EU,FU,OMa,PMa,LT,MT,SMa,IU,JU,WLa,MU,HU,TMa,GU,
QMa,RMa,NU,UMa,VMa,LU,KT,KU,WMa,XMa,YMa,ZMa,$Ma,aNa,OU,cNa,bNa,PU,gNa,QU,iNa,hNa,SU,RU,kNa,UU,TU,lNa,eNa,WU,jNa,fNa,VU,YU,XU,mNa,ZU,$U,oNa,pNa,nNa,rNa,qNa,uNa,sNa,tNa,wNa,vNa,xNa,yNa,zNa,dV,ANa,aV,DNa,cV,ENa,eV,CNa,BNa,fV,FNa,gV,kV,GNa,HNa,lV,jV,nV,KNa,mV,LNa,MNa,NNa,QNa,PNa,ONa,oV,RNa,VNa,qV,rV,XNa,YNa,sV,tV,ZNa,INa,JNa,wV,WNa,$Na,aOa,cOa,HMa,xV,yV,bOa,mU,hV,dOa,eOa,fOa,gOa,SNa,hOa,zV,BV,CV,iOa,jOa,kOa,lOa,mOa,nOa,pOa,oOa,rOa,EV,vOa,sOa,uOa,wOa,FV,AOa,yOa,zOa,COa,GV,DOa,HV,DV,EOa,xOa,FOa,IV,GOa,
tOa,HOa,JV,JOa,KOa,KV,IOa,LV,MV,LOa,NV,OV,PV,NOa,QOa,POa,OOa,RV,ROa,QV,SOa,TV,VV,TOa,WOa,UOa,VOa,XOa,ZOa,YOa,$Oa,aPa,WV,XV,cPa,YV,dPa,bPa,ePa,gPa,iPa,jPa,fPa,kPa,lPa,nPa,mPa,oPa,hPa,ZV,$V,pPa,aW,bW,cW,fW,hW,gW,uPa,iW,vPa,xPa,wPa,lW,jW,sPa,zPa,yPa,APa,nW,CPa,BPa,DPa,oW,pW,EPa,qW,HPa,rW,IPa,sW,KPa,uW,xW,yW,wW,tW,LPa,zW,JPa,AW,MPa,vW,NPa,BW,OPa,tPa,mW,QPa,RPa,SPa,TPa,UPa,VPa,WPa,YPa,ZPa,$Pa,XPa,aQa,bQa,DW,cQa,dQa,EW,FW,eQa,fQa,gQa,HW,iQa,JW,jQa,kQa,IW,GW,hQa,MW,LW,lQa,NW,KW,mQa,PW,qQa,TW,rQa,oQa,RW,
sQa,UW,pQa,tQa,VW,vQa,OW,wQa,uQa,SW,xQa,QW,nQa,WW,XW,yQa,zQa,AQa,YW,AU,TNa,NMa,$W,BQa,UNa,MMa,CQa,ZW,DQa,aX,cX,FQa,JQa,IQa,jX,lX,kX,MQa,OQa,RQa,WQa,TQa,VQa,$Qa,nX,aRa,bRa,eRa,gRa,hRa,fRa,iRa,jRa,pX,bX,kRa,lRa,EQa,oX,nRa,oRa,uRa,rRa,vRa,sRa,pRa,wRa,qRa,yRa,qX,zRa,BRa,CRa,FRa,DRa,nJ,xX,GRa,RKa,HRa,yX,UV,IRa,FX,AX,AS,vX,GX,IX,uV,vV,JX,mRa,ERa,EX,sX,LRa,MRa,ORa,NRa,DX,BX,KX,QRa,uS,RRa,SV,JKa,MX,SS,zX,SRa,TRa,NX,CKa,URa,WRa,KRa,rX,XRa,OX,CX,tX,YRa,PX,vS,ZRa,QX,NS,$Ra,aSa,bSa,BKa,LX,PRa,oSa,jSa,iSa,qSa,
rSa,hSa,VX,BS,uSa,sSa,YX,ZX,$X,wSa,SX,nSa,fY,xSa,eY,UX,ySa,zSa,kSa,jY,ASa,RX,bY,cY,aY,FSa,XX,hY,mY,nY,GSa,dY,vSa,lY,BSa,oY,HSa,ISa,JSa,nN,KSa,gY,pY,MSa,WX,qY,rY,tSa,NSa,OSa,mSa,kY,iY,PSa,lSa,QSa,sY,tY,BLa,RSa,uY,Yz,vY,wY,TSa,yY,VSa,xY,WSa,BY,zY,XSa,CY,AY,YSa,DY,EY,FY,ZSa,GY,HY,IY,JY,KY,LY,aTa,$Sa,MY,NY,OY,PY,QY,RY,SY,TY,UY,VY,WY,XY,YY,ZY,$Y,aZ,bZ,cZ,dZ,eZ,fZ,gZ,hZ,iZ,jZ,kZ,lZ,mZ,nZ,oZ,pZ,qZ,rZ,sZ,tZ,uZ,vZ,wZ,xZ,yZ,zZ,AZ,BZ,CZ,DZ,EZ,FZ,GZ,HZ,IZ,JZ,KZ,LZ,MZ,NZ,OZ,PZ,bTa,QZ,LCa,MCa,NCa,ECa,SZ,eTa,$Z,
a_,JJ,b_,EJ,ZZ,c_,hTa,iTa,jTa,kTa,cTa,lTa,RZ,mTa,nTa,e_,WZ,j_,f_,UZ,oTa,TZ,d_,g_,k_,XZ,YZ,i_,h_,qTa,l_,m_,rTa,n_,Y,o_,zL,p_,q_,r_,sTa,tTa,vTa,wTa,ATa,s_,BTa,xTa,CTa,t_,ETa,FTa,DTa,u_,v_,HTa,KTa,ITa,NTa,VTa,UTa,OTa,WTa,QTa,RTa,PTa,ZTa,aUa,cUa,fUa,gUa,iUa,jUa,mUa,lUa,qUa,nUa,I_,rUa,uUa,tUa,zUa,wUa,vUa,BUa,CUa,DUa,EUa,L_,Oua,GUa,FUa,O_,Xz,Q_,R_,Lua,S_,IUa,T_,K_,G_,x_,A_,U_,V_,C_,B_,JUa,MTa,W_,X_,Y_,y_,z_,F_,KUa,LUa,Z_,MUa,$_,NUa,N_,E_,D_,w_,dUa,hUa,H_,sUa,XTa,STa,a0,b0,c0,OUa,d0,e0,f0,g0,h0,i0,j0,k0,
l0,uTa,QUa,PUa,GTa,eUa,RUa,AUa,SUa,TUa,kUa,bUa,LTa,JTa,zTa,yTa,YTa,TTa,xUa,oUa,pUa,J_,yUa,$Ta,WUa,UUa,m0,VUa,n0,IJ,VZ,fTa,P_,XUa,YUa,p0,q0,r0,s0,$Ua,ZUa,aVa,t0,u0,o0,v0,bVa,M_,dTa,cVa,w0,dVa,x0,z0,A0,B0,C0,F0,G0,H0,I0,E0,D0,eVa,fVa,gVa,J0,jVa,iVa,K0,kVa,L0,y0,lVa,mVa,nVa,M0,N0,oVa,O0,P0,pVa,qVa,rVa,sVa,Q0,tVa,R0,S0,T0,U0,V0,W0,uVa,X0,Y0,Z0,$0,a1,b1,d1,e1,vVa,c1,wVa,xVa,f1,yVa,g1,h1,i1,j1,zVa,k1,AVa,l1,BVa,m1,CVa,n1,o1,p1,q1,EVa,r1,t1,DVa,FVa,s1,v1,w1,GVa,HVa,IVa,y1,x1,A1,z1,B1,C1,JVa,KVa,D1,E1,LVa,
F1,NVa,MVa,G1,H1,HUa,OVa,I1,PVa,J1,RVa,SVa,QVa,TVa,K1,UVa,VVa,WVa,L1,M1,N1,XVa,O1,P1,Q1,YVa,R1,S1,T1,ZVa,U1,u1,V1,W1,X1,KCa,Y1,$Va,Z1,aWa,$1,a2,cWa,bWa,b2,c2,d2,dWa,eWa,fWa,e2,gWa,f2,g2,iWa,hWa,jWa,kWa,lWa,h2,i2,j2,mWa,nWa,oWa,pWa,qWa,rWa,sWa,tWa,uWa,vWa,k2,l2,wWa,xWa,m2,n2,o2,p2,yWa,zWa,AWa,BWa,CWa,DWa,EWa,FWa,GWa,HWa,IWa,JWa,KWa,q2,LWa,MWa,r2,s2,OWa,PWa,t2,QWa,u2,RWa,v2,SWa,w2,TWa,UWa,VWa,WWa,x2,XWa,YWa,ZWa,$Wa,aXa,bXa,z2,cXa,dXa,eXa,fXa,gXa,iXa,A2,hXa,B2,jXa,kXa,lXa,mXa,qXa,nXa,oXa,pXa,tXa,vXa,
wXa,xXa,uXa,C2,yXa,zXa,AXa,BXa,CXa,E2,DXa,F2,G2,H2,EXa,FXa,GXa,HXa,IXa,KXa,JXa,LXa,I2,J2,K2,MXa,NXa,L2,OXa,PXa,QXa,RXa,SXa,TXa,UXa,Mua,VXa,WXa,aaa,da,Ci,Na,oaa;aa=function(a){return function(){return aaa[a].apply(this,arguments)}};
g.ba=function(a,b){return aaa[a]=b};
baa=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};
caa=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");};
ea=function(a,b){if(b)a:{var c=g.ca;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&da(c,a,{configurable:!0,writable:!0,value:b})}};
daa=function(a){a={next:a};a[Symbol.iterator]=function(){return this};
return a};
eaa=function(a){return a.raw=a};
g.r=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:baa(a)}};
fa=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c};
g.t=function(a){return a instanceof Array?a:fa(g.r(a))};
ha=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
g.v=function(a,b){a.prototype=faa(b.prototype);a.prototype.constructor=a;if(ia)ia(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.Re=b.prototype};
ka=function(){this.J=!1;this.C=null;this.u=void 0;this.j=1;this.D=this.I=0;this.Z=this.B=null};
la=function(a){if(a.J)throw new TypeError("Generator is already running");a.J=!0};
ma=function(a,b){a.B={LO:b,VP:!0};a.j=a.I||a.D};
g.x=function(a,b,c){a.j=c;return{value:b}};
g.na=function(a){a.j=0};
g.pa=function(a,b,c){a.I=b;void 0!=c&&(a.D=c)};
g.ra=function(a,b){a.j=b;a.I=0};
g.ua=function(a){a.I=0;var b=a.B.LO;a.B=null;return b};
g.gaa=function(a){a.Z=[a.B];a.I=0;a.D=0};
g.haa=function(a,b){var c=a.Z.splice(0)[0];(c=a.B=a.B||c)?c.VP?a.j=a.I||a.D:void 0!=c.Ma&&a.D<c.Ma?(a.j=c.Ma,a.B=null):a.j=a.D:a.j=b};
iaa=function(a){this.j=new ka;this.u=a};
jaa=function(a,b){la(a.j);var c=a.j.C;if(c)return wa(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.j.return);
a.j.return(b);return xa(a)};
wa=function(a,b,c,d){try{var e=b.call(a.j.C,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.j.J=!1,e;var f=e.value}catch(h){return a.j.C=null,ma(a.j,h),xa(a)}a.j.C=null;d.call(a.j,f);return xa(a)};
xa=function(a){for(;a.j.j;)try{var b=a.u(a.j);if(b)return a.j.J=!1,{value:b.value,done:!1}}catch(c){a.j.u=void 0,ma(a.j,c)}a.j.J=!1;if(a.j.B){b=a.j.B;a.j.B=null;if(b.VP)throw b.LO;return{value:b.return,done:!0}}return{value:void 0,done:!0}};
kaa=function(a){this.next=function(b){la(a.j);a.j.C?b=wa(a,a.j.C.next,b,a.j.S):(a.j.S(b),b=xa(a));return b};
this.throw=function(b){la(a.j);a.j.C?b=wa(a,a.j.C["throw"],b,a.j.S):(ma(a.j,b),b=xa(a));return b};
this.return=function(b){return jaa(a,b)};
this[Symbol.iterator]=function(){return this}};
laa=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())})};
g.z=function(a){return laa(new kaa(new iaa(a)))};
g.za=function(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b};
maa=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{i:e,BT:f}}return{i:-1,BT:void 0}};
Aa=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};
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){return a?a:Array.prototype.fill};
Ea=function(a){return a?a:Array.prototype.copyWithin};
g.Fa=function(a,b,c){a=a.split(".");c=c||g.C;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};
g.Ga=function(a,b){a=a.split(".");b=b||g.C;for(var c=0;c<a.length;c++)if(b=b[a[c]],null==b)return null;return b};
Ha=function(a){a.Vf=void 0;a.getInstance=function(){return a.Vf?a.Vf:a.Vf=new a}};
naa=function(a){var b=typeof a;return"object"!=b?b:a?Array.isArray(a)?"array":b:"null"};
g.La=function(a){var b=naa(a);return"array"==b||"object"==b&&"number"==typeof a.length};
g.Ma=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b};
g.Oa=function(a){return Object.prototype.hasOwnProperty.call(a,Na)&&a[Na]||(a[Na]=++oaa)};
paa=function(a,b,c){return a.call.apply(a.bind,arguments)};
qaa=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.Pa=function(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?g.Pa=paa:g.Pa=qaa;return g.Pa.apply(null,arguments)};
g.Qa=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.Ra=function(){return Date.now()};
g.Va=function(a,b){function c(){}
c.prototype=b.prototype;a.Re=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.lj=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)}};
Wa=function(a){return a};
Xa=function(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,Xa);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));void 0!==b&&(this.cause=b)};
Ya=function(a,b){var c=Xa.call;a=a.split("%s");for(var d="",e=a.length-1,f=0;f<e;f++)d+=a[f]+(f<b.length?b[f]:"%s");c.call(Xa,this,d+a[e])};
raa=function(){};
Za=function(){throw Error("Invalid UTF8");};
saa=function(a,b){b=String.fromCharCode.apply(null,b);return null==a?b:a+b};
g.vaa=function(a){var b=!1;b=void 0===b?!1:b;if(taa){if(b&&/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(a))throw Error("Found an unpaired surrogate");a=(uaa||(uaa=new TextEncoder)).encode(a)}else{for(var c=0,d=new Uint8Array(3*a.length),e=0;e<a.length;e++){var f=a.charCodeAt(e);if(128>f)d[c++]=f;else{if(2048>f)d[c++]=f>>6|192;else{if(55296<=f&&57343>=f){if(56319>=f&&e<a.length){var h=a.charCodeAt(++e);if(56320<=h&&57343>=h){f=1024*(f-55296)+h-56320+65536;d[c++]=
f>>18|240;d[c++]=f>>12&63|128;d[c++]=f>>6&63|128;d[c++]=f&63|128;continue}else e--}if(b)throw Error("Found an unpaired surrogate");f=65533}d[c++]=f>>12|224;d[c++]=f>>6&63|128}d[c++]=f&63|128}}a=c===d.length?d:d.subarray(0,c)}return a};
waa=function(a){for(var b=[],c=0;c<a.length;c+=2)b.push(parseInt(a.substring(c,c+2),16));return b};
g.ab=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};
bb=function(a,b){return 0==a.lastIndexOf(b,0)};
xaa=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};
g.cb=function(a){return/^[\s\xa0]*$/.test(a)};
db=function(a){if(!yaa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(zaa,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(Aaa,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(Baa,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(Caa,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(Daa,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(Eaa,"&#0;"));return a};
g.eb=function(a,b){return-1!=a.indexOf(b)};
gb=function(a,b){return g.eb(a.toLowerCase(),b.toLowerCase())};
g.lb=function(a,b){var c=0;a=ib(String(a)).split(".");b=ib(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;0==c&&e<d;e++){var f=a[e]||"",h=b[e]||"";do{f=/(\d*)(\D*)(.*)/.exec(f)||["","","",""];h=/(\d*)(\D*)(.*)/.exec(h)||["","","",""];if(0==f[0].length&&0==h[0].length)break;c=jb(0==f[1].length?0:parseInt(f[1],10),0==h[1].length?0:parseInt(h[1],10))||jb(0==f[2].length,0==h[2].length)||jb(f[2],h[2]);f=f[3];h=h[3]}while(0==c)}return c};
jb=function(a,b){return a<b?-1:a>b?1:0};
g.nb=function(){var a=g.C.navigator;return a&&(a=a.userAgent)?a:""};
rb=function(a){var b=ob;return b?b.brands.some(function(c){return(c=c.brand)&&g.eb(c,a)}):!1};
tb=function(a){return g.eb(g.nb(),a)};
wb=function(){var a=ob;return!!a&&0<a.brands.length};
xb=function(){return wb()?!1:tb("Opera")};
yb=function(){return wb()?!1:tb("Trident")||tb("MSIE")};
zb=function(){return wb()?!1:tb("Edge")};
Faa=function(){return wb()?rb("Microsoft Edge"):tb("Edg/")};
Bb=function(){return tb("Firefox")||tb("FxiOS")};
Db=function(){return tb("Safari")&&!(Cb()||(wb()?0:tb("Coast"))||xb()||zb()||Faa()||(wb()?rb("Opera"):tb("OPR"))||Bb()||tb("Silk")||tb("Android"))};
Cb=function(){return wb()?rb("Chromium"):(tb("Chrome")||tb("CriOS"))&&!zb()||tb("Silk")};
Gaa=function(){return tb("Android")&&!(Cb()||Bb()||xb()||tb("Silk"))};
Haa=function(a){var b={};a.forEach(function(c){b[c[0]]=c[1]});
return function(c){return b[c.find(function(d){return d in b})]||""}};
Iaa=function(a){var b=g.nb();if("Internet Explorer"===a){if(yb())if((a=/rv: *([\d\.]*)/.exec(b))&&a[1])b=a[1];else{a="";var c=/MSIE +([\d\.]+)/.exec(b);if(c&&c[1])if(b=/Trident\/(\d.\d)/.exec(b),"7.0"==c[1])if(b&&b[1])switch(b[1]){case "4.0":a="8.0";break;case "5.0":a="9.0";break;case "6.0":a="10.0";break;case "7.0":a="11.0"}else a="7.0";else a=c[1];b=a}else b="";return b}var d=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");c=[];for(var e;e=d.exec(b);)c.push([e[1],e[2],e[3]||void 0]);
b=Haa(c);switch(a){case "Opera":if(xb())return b(["Version","Opera"]);if(wb()?rb("Opera"):tb("OPR"))return b(["OPR"]);break;case "Microsoft Edge":if(zb())return b(["Edge"]);if(Faa())return b(["Edg"]);break;case "Chromium":if(Cb())return b(["Chrome","CriOS","HeadlessChrome"])}return"Firefox"===a&&Bb()||"Safari"===a&&Db()||"Android Browser"===a&&Gaa()||"Silk"===a&&tb("Silk")?(b=c[2])&&b[1]||"":""};
Eb=function(a){if(wb()&&"Silk"!==a){var b=ob.brands.find(function(c){return c.brand===a});
if(!b||!b.version)return NaN;b=b.version.split(".")}else{b=Iaa(a);if(""===b)return NaN;b=b.split(".")}return 0===b.length?NaN:Number(b[0])};
Fb=function(){var a=ob;return!!a&&!!a.platform};
Jaa=function(){return Fb()?"Android"===ob.platform:tb("Android")};
Gb=function(){return tb("iPhone")&&!tb("iPod")&&!tb("iPad")};
Hb=function(){return Gb()||tb("iPad")||tb("iPod")};
Ib=function(){return Fb()?"macOS"===ob.platform:tb("Macintosh")};
Kaa=function(){return Fb()?"Windows"===ob.platform:tb("Windows")};
Laa=function(){var a=g.nb(),b="";if(Kaa())b=/Windows (?:NT|Phone) ([0-9.]+)/,b=(a=b.exec(a))?a[1]:"0.0";else if(Hb())b=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,b=(a=b.exec(a))&&a[1].replace(/_/g,".");else if(Ib())b=/Mac OS X ([0-9_.]+)/,b=(a=b.exec(a))?a[1].replace(/_/g,"."):"10";else if(gb(g.nb(),"KaiOS"))b=/(?:KaiOS)\/(\S+)/i,b=(a=b.exec(a))&&a[1];else if(Jaa())b=/Android\s+([^\);]+)(\)|;)/,b=(a=b.exec(a))&&a[1];else if(Fb()?"Chrome OS"===ob.platform:tb("CrOS"))b=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,
b=(a=b.exec(a))&&a[1];return b||""};
g.Jb=function(a){return a[a.length-1]};
Maa=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.Pb=function(a,b,c){b=Lb(a,b,c);return 0>b?null:"string"===typeof a?a.charAt(b):a[b]};
Lb=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.Rb=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.Sb=function(a,b){return 0<=Naa(a,b)};
g.Vb=function(a){return 0==a.length};
Oaa=function(a){if(!Array.isArray(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0};
g.Xb=function(a,b){b=Naa(a,b);var c;(c=0<=b)&&g.Wb(a,b);return c};
g.Wb=function(a,b){return 1==Array.prototype.splice.call(a,b,1).length};
g.$b=function(a,b){b=Lb(a,b);0<=b&&g.Wb(a,b)};
Paa=function(a,b){var c=0;Maa(a,function(d,e){b.call(void 0,d,e,a)&&g.Wb(a,e)&&c++})};
g.ac=function(a){return Array.prototype.concat.apply([],arguments)};
g.bc=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[]};
g.cc=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(g.La(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.gc=function(a,b,c,d){Array.prototype.splice.apply(a,fc(arguments,1))};
fc=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};
Qaa=function(a){for(var b=0,c=0,d={};c<a.length;){var e=a[c++],f=g.Ma(e)?"o"+g.Oa(e):(typeof e).charAt(0)+e;Object.prototype.hasOwnProperty.call(d,f)||(d[f]=!0,a[b++]=e)}a.length=b};
g.jc=function(a,b,c){return Raa(a,c||hc,!1,b)};
kc=function(a,b){return Raa(a,b,!0)};
Raa=function(a,b,c,d){for(var e=0,f=a.length,h;e<f;){var l=e+(f-e>>>1),m=void 0;c?m=b.call(void 0,a[l],l,a):m=b(d,a[l]);0<m?e=l+1:(f=l,h=!m)}return h?e:-e-1};
g.lc=function(a,b){a.sort(b||hc)};
Saa=function(a,b){var c=hc;g.lc(a,function(d,e){return c(b(d),b(e))})};
g.mc=function(a,b){if(!g.La(a)||!g.La(b)||a.length!=b.length)return!1;for(var c=a.length,d=Taa,e=0;e<c;e++)if(!d(a[e],b[e]))return!1;return!0};
hc=function(a,b){return a>b?1:a<b?-1:0};
Taa=function(a,b){return a===b};
g.nc=function(a,b,c){c=g.jc(a,b,c);0>c&&g.gc(a,-(c+1),0,b)};
g.rc=function(a,b,c){var d={};(0,g.qc)(a,function(e,f){d[b.call(c,e,f,a)]=e});
return d};
Uaa=function(a){for(var b=[],c=0;c<a;c++)b[c]="";return b};
Vaa=function(a,b){b=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,0,0,b[0])};
sc=function(a){sc[" "](a);return a};
tc=function(a,b){try{return sc(a[b]),!0}catch(c){}return!1};
Waa=function(a,b,c,d){d=d?d(b):b;return Object.prototype.hasOwnProperty.call(a,d)?a[d]:a[d]=c(b)};
Xaa=function(){var a=g.C.document;return a?a.documentMode:void 0};
g.vc=function(a){return Waa(Yaa,a,function(){return 0<=g.lb(uc,a)})};
g.wc=function(a){return Number(Zaa)>=a};
g.xc=function(a,b){void 0===b&&(b=0);$aa();b=aba[b];for(var c=Array(Math.floor(a.length/3)),d=b[64]||"",e=0,f=0;e<a.length-2;e+=3){var h=a[e],l=a[e+1],m=a[e+2],n=b[h>>2];h=b[(h&3)<<4|l>>4];l=b[(l&15)<<2|m>>6];m=b[m&63];c[f++]=""+n+h+l+m}n=0;m=d;switch(a.length-e){case 2:n=a[e+1],m=b[(n&15)<<2]||d;case 1:a=a[e],c[f]=""+b[a>>2]+b[(a&3)<<4|n>>4]+m+d}return c.join("")};
g.zc=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.xc(b,3)};
cba=function(a){var b=[];bba(a,function(c){b.push(c)});
return b};
Bc=function(a){!g.Ac||g.vc("10");var b=a.length,c=3*b/4;c%3?c=Math.floor(c):g.eb("=.",a[b-1])&&(c=g.eb("=.",a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;bba(a,function(f){d[e++]=f});
return e!==c?d.subarray(0,e):d};
bba=function(a,b){function c(m){for(;d<a.length;){var n=a.charAt(d++),p=Cc[n];if(null!=p)return p;if(!g.cb(n))throw Error("Unknown base64 encoding at char: "+n);}return m}
$aa();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))}};
$aa=function(){if(!Cc){Cc={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));aba[c]=d;for(var e=0;e<d.length;e++){var f=d[e];void 0===Cc[f]&&(Cc[f]=e)}}}};
Ic=function(a){return Dc&&null!=a&&a instanceof Uint8Array};
Jc=function(){return dba||(dba=new Uint8Array(0))};
Lc=function(a){if(a!==Kc)throw Error("illegal external caller");};
Mc=function(a,b){Lc(b);this.wd=a;if(null!=a&&0===a.length)throw Error("ByteString should be constructed with non-empty values");};
Pc=function(){return eba||(eba=new Mc(null,Kc))};
Uc=function(a){return(a=Qc(a))?new Uint8Array(a):Jc()};
Qc=function(a){Lc(Kc);var b=a.wd;b=null==b||Ic(b)?b:"string"===typeof b?Bc(b):null;return null==b?b:a.wd=b};
Wc=function(a,b){Object.isFrozen(a)||(Vc?a[Vc]|=b:void 0!==a.Ym?a.Ym|=b:Object.defineProperties(a,{Ym:{value:b,configurable:!0,writable:!0,enumerable:!1}}))};
fba=function(a,b){Object.isExtensible(a)&&(Vc?a[Vc]&&(a[Vc]&=~b):void 0!==a.Ym&&(a.Ym&=~b))};
Xc=function(a){var b;Vc?b=a[Vc]:b=a.Ym;return null==b?0:b};
gba=function(a,b){Vc?a[Vc]=b:void 0!==a.Ym?a.Ym=b:Object.defineProperties(a,{Ym:{value:b,configurable:!0,writable:!0,enumerable:!1}})};
Yc=function(a){Wc(a,1);return a};
ad=function(a){return a?!!(Xc(a)&2):!1};
bd=function(a){Wc(a,16);return a};
hba=function(a){if(!Array.isArray(a))throw Error("cannot mark non-array as shared mutably");fba(a,16)};
cd=function(a,b){b?Wc(a,8):fba(a,8)};
iba=function(a,b){gba(b,(Xc(a)|0)&-51)};
dd=function(a){return ad(a.ud)};
ed=function(a){return null!==a&&"object"===typeof a&&!Array.isArray(a)&&a.constructor===Object};
jba=function(a){return null==a?a:a.constructor===Mc?a:"string"===typeof a?a?new Mc(a,Kc):Pc():Ic(a)?a.length?new Mc(new Uint8Array(a),Kc):Pc():null};
id=function(a){if(dd(a))throw Error("Cannot mutate an immutable Message");};
kba=function(a){return{value:a,configurable:!1,writable:!1,enumerable:!1}};
lba=function(a){return a.displayName||a.name||"unknown type name"};
jd=function(a,b){if(!(a instanceof b))throw Error("Expected instanceof "+lba(b)+" but got "+(a&&lba(a.constructor)));return a};
kd=function(a,b,c,d){c=void 0===c?!1:c;d=void 0===d?!1:d;if(Array.isArray(a))return new b(d?bd(a):a);if(c)return new b};
mba=function(a){switch(typeof a){case "number":return isFinite(a)?a:String(a);case "object":if(a&&!Array.isArray(a)){if(Ic(a))return g.xc(a);if(a instanceof Mc){var b=a.wd;b=null==b||"string"===typeof b?b:Dc&&b instanceof Uint8Array?g.xc(b):null;return null==b?"":a.wd=b}}}return a};
nba=function(a,b,c){if(null!=a){if(Array.isArray(a))a=ld(a,b,c);else if(ed(a)){var d={},e;for(e in a)d[e]=nba(a[e],b,c);a=d}else a=b(a);return a}};
ld=function(a,b,c){var d=Array.prototype.slice.call(a);c(a,d);for(a=0;a<d.length;a++)d[a]=nba(d[a],b,c);return d};
oba=function(a){if(a&&"object"==typeof a&&a.toJSON)return a.toJSON();a=mba(a);return Array.isArray(a)?ld(a,oba,pba):a};
qba=function(a){if("object"===typeof a){if(Ic(a))return new Uint8Array(a);if(Array.isArray(a.ud)&&a.constructor!==Object)return a.clone()}return a};
pba=function(){};
md=function(a){return a.u||(a.u=a.ud[a.I+a.C]={})};
g.nd=function(a,b,c){return-1===b?null:b>=a.I?a.u?a.u[b]:void 0:(void 0===c?0:c)&&a.u&&(c=a.u[b],null!=c)?c:a.ud[b+a.C]};
g.E=function(a,b,c,d,e){d=void 0===d?!1:d;(void 0===e?0:e)||id(a);a.S&&(a.S=void 0);if(b>=a.I||d)return md(a)[b]=c,a;void 0!==a.u&&a.I>=a.ud.length?(d=a.ud.length-1,e=b+a.C,e>=d?(a.ud[d]=void 0,a.ud[e]=c,a.ud.push(a.u)):a.ud[e]=c):a.ud[b+a.C]=c;void 0!==a.u&&b in a.u&&delete a.u[b];return a};
rd=function(a,b,c,d){var e=g.nd(a,b,d);Array.isArray(e)?e&&Xc(e)&1||Yc(e):e=qd;if(dd(a))c&1||(Wc(e,2),Object.freeze(e));else if(e===qd||ad(e))e=Yc(Array.prototype.slice.call(e)),g.E(a,b,e,d);return e};
g.sd=function(a,b,c){return rd(a,b,0,void 0===c?!1:c)};
g.rba=function(a,b){a=g.nd(a,b);return null==a?a:!!a};
td=function(a,b){var c=g.nd(a,b);if(null==c)return null;if(c instanceof Mc)return c;(c=jba(c))&&g.E(a,b,c,void 0,!0);return c};
tba=function(a,b){var c=sba,d=rd(a,b,1);if(d.length&&!(Xc(d)&4)){Object.isFrozen(d)&&(d=Yc(d.slice()),g.E(a,b,d,void 0,!0));for(b=0;b<d.length;b++)d[b]=c(d[b]);Wc(d,5)}dd(a)&&!Object.isFrozen(d)&&(Wc(d,2),Object.freeze(d));return d};
sba=function(a){return jba(a)||Pc()};
ud=function(a,b,c){a=g.nd(a,b);return null==a?c:a};
vd=function(a,b){var c=void 0===c?"":c;a=td(a,b);return null==a?c?new Mc(c,Kc):Pc():a};
uba=function(a,b,c){null==c?c=qd:Yc(c);return g.E(a,b,c)};
wd=function(a,b,c){return g.E(a,b,void 0,!1,c)};
xd=function(a,b,c,d){id(a);c!==d?g.E(a,b,c):wd(a,b);return a};
g.Bd=function(a,b,c,d,e){id(a);a=rd(a,b,2,!1);e&&Xc(a)&4&&(c=sba(c));void 0!=d?a.splice(d,0,c):a.push(c)};
g.Dd=function(a,b,c,d){id(a);(c=Cd(a,c))&&c!==b&&null!=d&&(a.j&&c in a.j&&(a.j[c]=void 0),g.E(a,c));return g.E(a,b,d)};
Cd=function(a,b){for(var c=0,d=0;d<b.length;d++){var e=b[d];null!=g.nd(a,e)&&(0!==c&&wd(a,c,!0),c=e)}return c};
g.vba=function(a,b,c){id(a);a.j||(a.j={});var d=a.j[c];if(d)return b=d.OA(),b!==d&&(g.E(a,c,b.ud),a.j[c]=b),b;d=g.nd(a,c);b=kd(d,b,!0).OA();d!==b.ud&&g.E(a,c,b.ud);return a.j[c]=b};
Ed=function(a,b,c,d){d=void 0===d?!1:d;var e=d;a.j||(a.j={});var f=a.j[c];if(f)b=f;else if(b=kd(g.nd(a,c,e),b))a.j[c]=b,Wc(b.ud,Xc(a.ud)&-33);if(null==b)return b;dd(b)&&!dd(a)&&(b=b.OA(),g.E(a,c,b.ud,d),a.j[c]=b);return b};
wba=function(a,b,c,d,e){e=void 0===e?!0:e;a.j||(a.j={});var f=a.j[c];d=rd(a,c,2,d);var h=!!(Xc(a.ud)&16),l=ad(d);l=dd(a)||l;if(!f){f=[];for(var m=l,n=0;n<d.length;n++){var p=d[n];m=m||ad(p);p=kd(p,b,!1,h);void 0!==p&&(f.push(p),l&&Wc(p.ud,2))}a.j[c]=f;cd(d,!m)}b=l||e;e=ad(f);b&&!e&&(Object.isFrozen(f)&&(a.j[c]=f=f.slice()),Wc(f,2),Object.freeze(f));!b&&e&&(a.j[c]=f=f.slice());return f};
Fd=function(a,b,c,d){d=void 0===d?!1:d;var e=dd(a);b=wba(a,b,c,d,e);a=g.sd(a,c,d);if(!(c=e)&&(c=a)){if(!a)throw Error("cannot check mutability state of non-array");c=!(Xc(a)&8)}if(c){for(c=0;c<b.length;c++)(d=b[c])&&dd(d)&&!e&&(b[c]=b[c].OA(),a[c]=b[c].ud);cd(a,!0)}return b};
F=function(a,b,c,d){id(a);a.j||(a.j={});null==d?b=d=void 0:b=jd(d,b).ud;a.j[c]=d;return g.E(a,c,b)};
Gd=function(a,b,c,d,e){id(a);a.j||(a.j={});null!=e?b=jd(e,b).ud:b=e=void 0;a.j[c]=e;return g.Dd(a,c,d,b)};
Id=function(a,b,c,d){id(a);if(null!=d){var e=Yc([]);for(var f=!1,h=0;h<d.length;h++)e[h]=jd(d[h],b).ud,f=f||ad(e[h]);a.j||(a.j={});a.j[c]=d;cd(e,!f)}else a.j&&(a.j[c]=void 0),e=qd;return g.E(a,c,e)};
Jd=function(a,b,c){null!=c&&c instanceof Mc&&Lc(Kc);g.E(a,b,c)};
Kd=function(a,b,c,d,e){id(a);var f=wba(a,c,b,void 0,!1);c=null!=d?jd(d,c):new c;a=rd(a,b,2);void 0!=e?(f.splice(e,0,c),a.splice(e,0,c.ud)):(f.push(c),a.push(c.ud));c.jq()&&cd(a,!1);return c};
Ld=function(a,b,c){return ud(a,b,void 0===c?0:c)};
Md=function(a,b){return g.nd(a,b)};
Qd=function(a,b){return ud(a,b,"")};
Ud=function(a,b,c){a||(a=Sd);Sd=null;var d=this.constructor.u||0,e=0<d,f=this.constructor.j;a?Xc(a)&16&&Wc(a,32):(a=f?[f]:[],Wc(a,48));e&&0<a.length&&ed(a[a.length-1])&&"g"in a[a.length-1]&&(d=0);this.C=(f?0:-1)-d;this.j=void 0;this.ud=a;a:{f=this.ud.length;d=f-1;if(f&&(f=this.ud[d],ed(f))){this.u=f;b=Object.keys(f);0<b.length&&g.Td(b,isNaN)?this.I=Number.MAX_VALUE:this.I=d-this.C;break a}void 0!==b&&-1<b?(this.I=Math.max(b,d+1-this.C),this.u=void 0):this.I=Number.MAX_VALUE}if(!e&&this.u&&"g"in this.u)throw Error('Unexpected "g" flag in sparse object of message that is not a group type.');
if(c)for(e=0;e<c.length;e++)b=c[e],b<this.I?(b+=this.C,(d=this.ud[b])?Array.isArray(d)&&Yc(d):this.ud[b]=qd):(d=md(this),(f=d[b])?Array.isArray(f)&&Yc(f):d[b]=qd)};
Wd=function(a){Vd=!0;try{return JSON.stringify(a.toJSON(),xba)}finally{Vd=!1}};
Xd=function(a,b){if(null==b||""==b)return new a;b=JSON.parse(b);if(!Array.isArray(b))throw Error(void 0);Sd=b=bd(b);a=new a(b);Sd=null;return a};
xba=function(a,b){return mba(b)};
Zd=function(a,b){b.D&&(a.D=b.D.slice());var c=b.j;if(c){b=b.u;for(var d in c){var e=c[d];if(e){var f=!(!b||!b[d]),h=+d;if(Array.isArray(e)){if(e.length)for(f=Fd(a,e[0].constructor,h,f),h=0;h<Math.min(f.length,e.length);h++)Zd(f[h],e[h])}else(f=Ed(a,e.constructor,h,f))&&Zd(f,e)}}}};
yba=function(a,b){return Error("Invalid wire type: "+a+" (at position "+b+")")};
$d=function(){return Error("Failed to read varint, encoding is invalid.")};
zba=function(a,b){return Error("Tried to read past the end of the data "+b+" > "+a)};
ae=function(a){if("string"===typeof a)return{buffer:Bc(a),jq:!1};if(Array.isArray(a))return{buffer:new Uint8Array(a),jq:!1};if(a.constructor===Uint8Array)return{buffer:a,jq:!1};if(a.constructor===ArrayBuffer)return{buffer:new Uint8Array(a),jq:!1};if(a.constructor===Mc)return{buffer:Qc(a)||Jc(),jq:!0};if(a instanceof Uint8Array)return{buffer:new Uint8Array(a.buffer,a.byteOffset,a.byteLength),jq:!1};throw Error("Type not convertible to a Uint8Array, expected a Uint8Array, an ArrayBuffer, a base64 encoded string, a ByteString or an Array of numbers");
};
Bba=function(a){var b=0>a;a=Math.abs(a);var c=a>>>0;a=Math.floor((a-c)/4294967296);b&&(c=g.r(Aba(c,a)),b=c.next().value,a=c.next().value,c=b);g.be=c>>>0;g.ce=a>>>0};
g.Dba=function(a){if(16>a.length)Bba(Number(a));else if(Cba)a=BigInt(a),g.be=Number(a&BigInt(4294967295))>>>0,g.ce=Number(a>>BigInt(32)&BigInt(4294967295));else{var b=+("-"===a[0]);g.ce=g.be=0;for(var c=a.length,d=0+b,e=(c-b)%6+b;e<=c;d=e,e+=6)d=Number(a.slice(d,e)),g.ce*=1E6,g.be=1E6*g.be+d,4294967296<=g.be&&(g.ce+=g.be/4294967296|0,g.be%=4294967296);b&&(b=g.r(Aba(g.be,g.ce)),a=b.next().value,b=b.next().value,g.be=a,g.ce=b)}};
Aba=function(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]};
g.de=function(a){this.u=null;this.D=!1;this.j=this.B=this.C=0;this.init(a,void 0,void 0,void 0)};
g.fe=function(a){var b=0,c=0,d=0,e=a.u,f=a.j;do{var h=e[f++];b|=(h&127)<<d;d+=7}while(32>d&&h&128);32<d&&(c|=(h&127)>>4);for(d=3;32>d&&h&128;d+=7)h=e[f++],c|=(h&127)<<d;ee(a,f);if(128>h){a=b>>>0;h=c>>>0;if(c=h&2147483648)a=~a+1>>>0,h=~h>>>0,0==a&&(h=h+1>>>0);a=4294967296*h+(a>>>0);return c?-a:a}throw $d();};
ee=function(a,b){a.j=b;if(b>a.B)throw zba(a.B,b);};
g.ge=function(a){var b=a.u,c=a.j,d=b[c++],e=d&127;if(d&128&&(d=b[c++],e|=(d&127)<<7,d&128&&(d=b[c++],e|=(d&127)<<14,d&128&&(d=b[c++],e|=(d&127)<<21,d&128&&(d=b[c++],e|=d<<28,d&128&&b[c++]&128&&b[c++]&128&&b[c++]&128&&b[c++]&128&&b[c++]&128)))))throw $d();ee(a,c);return e};
g.he=function(a){var b=a.u,c=a.j,d=b[c+0],e=b[c+1],f=b[c+2];b=b[c+3];a.advance(4);return(d<<0|e<<8|f<<16|b<<24)>>>0};
g.ke=function(a){var b=g.he(a),c=g.he(a);a=2*(c>>31)+1;var d=c>>>20&2047;b=4294967296*(c&1048575)+b;return 2047==d?b?NaN:Infinity*a:0==d?a*Math.pow(2,-1074)*b:a*Math.pow(2,d-1075)*(b+4503599627370496)};
g.le=function(a){for(var b=0,c=a.j,d=c+10,e=a.u;c<d;){var f=e[c++];b|=f;if(0===(f&128))return ee(a,c),!!(b&127)}throw $d();};
Eba=function(a,b){if(0>b)throw Error("Tried to read a negative byte length: "+b);var c=a.j,d=c+b;if(d>a.B)throw zba(b,a.B-c);a.j=d;return c};
Gba=function(a,b){if(0==b)return Pc();var c=Eba(a,b);a.IB&&a.D?c=a.u.subarray(c,c+b):(a=a.u,b=c+b,c=c===b?Jc():Fba?a.slice(c,b):new Uint8Array(a.subarray(c,b)));return 0==c.length?Pc():new Mc(c,Kc)};
me=function(a){if(Hba.length){var b=Hba.pop();b.init(a,void 0,void 0,void 0);a=b}else a=new g.de(a);this.j=a;this.B=this.j.j;this.u=this.C=-1;Iba(this)};
Iba=function(a){var b={};a.rH=void 0===b.rH?!1:b.rH};
Jba=function(a){var b=a.j;if(b.j==b.B)return!1;a.B=a.j.j;var c=g.ge(a.j)>>>0;b=c>>>3;c&=7;if(!(0<=c&&5>=c))throw yba(c,a.B);if(1>b)throw Error("Invalid field number: "+b+" (at position "+a.B+")");a.C=b;a.u=c;return!0};
re=function(a){switch(a.u){case 0:0!=a.u?re(a):g.le(a.j);break;case 1:a.j.advance(8);break;case 2:if(2!=a.u)re(a);else{var b=g.ge(a.j)>>>0;a.j.advance(b)}break;case 5:a.j.advance(4);break;case 3:b=a.C;do{if(!Jba(a))throw Error("Unmatched start-group tag: stream EOF");if(4==a.u){if(a.C!=b)throw Error("Unmatched end-group tag");break}re(a)}while(1);break;default:throw yba(a.u,a.B);}};
g.se=function(a,b,c){var d=a.j.B,e=g.ge(a.j)>>>0,f=a.j.j+e,h=f-d;0>=h&&(a.j.B=f,c(b,a,void 0,void 0,void 0),h=f-a.j.j);if(h)throw Error("Message parsing ended unexpectedly. Expected to read "+(e+" bytes, instead read "+(e-h)+" bytes, either the data ended unexpectedly or the message misreported its own length"));a.j.j=f;a.j.B=d};
g.ve=function(a){var b=g.ge(a.j)>>>0;a=a.j;var c=Eba(a,b);a=a.u;if(Kba){var d=a,e;(e=te)||(e=te=new TextDecoder("utf-8",{fatal:!0}));a=c+b;d=0===c&&a===d.length?d:d.subarray(c,a);try{var f=e.decode(d)}catch(n){if(void 0===ue){try{e.decode(new Uint8Array([128]))}catch(p){}try{e.decode(new Uint8Array([97])),ue=!0}catch(p){ue=!1}}!ue&&(te=void 0);throw n;}}else{f=c;b=f+b;c=[];for(var h=null,l,m;f<b;)l=a[f++],128>l?c.push(l):224>l?f>=b?Za():(m=a[f++],194>l||128!==(m&192)?(f--,Za()):c.push((l&31)<<6|m&
63)):240>l?f>=b-1?Za():(m=a[f++],128!==(m&192)||224===l&&160>m||237===l&&160<=m||128!==((d=a[f++])&192)?(f--,Za()):c.push((l&15)<<12|(m&63)<<6|d&63)):244>=l?f>=b-2?Za():(m=a[f++],128!==(m&192)||0!==(l<<28)+(m-144)>>30||128!==((d=a[f++])&192)||128!==((e=a[f++])&192)?(f--,Za()):(l=(l&7)<<18|(m&63)<<12|(d&63)<<6|e&63,l-=65536,c.push((l>>10&1023)+55296,(l&1023)+56320))):Za(),8192<=c.length&&(h=saa(h,c),c.length=0);f=saa(h,c)}return f};
Lba=function(a){var b=g.ge(a.j)>>>0;return Gba(a.j,b)};
Mba=function(a,b){this.u=a>>>0;this.j=b>>>0};
Oba=function(a){if(!a)return Nba||(Nba=new Mba(0,0));if(!/^-?\d+$/.test(a))return null;g.Dba(a);return new Mba(g.be,g.ce)};
we=function(){this.j=[]};
Pba=function(a,b,c){for(;0<c||127<b;)a.j.push(b&127|128),b=(b>>>7|c<<25)>>>0,c>>>=7;a.j.push(b)};
xe=function(a,b){for(;127<b;)a.j.push(b&127|128),b>>>=7;a.j.push(b)};
Qba=function(a,b){if(0<=b)xe(a,b);else{for(var c=0;9>c;c++)a.j.push(b&127|128),b>>=7;a.j.push(1)}};
g.ye=function(a,b){a.j.push(b>>>0&255);a.j.push(b>>>8&255);a.j.push(b>>>16&255);a.j.push(b>>>24&255)};
Rba=function(){this.B=[];this.u=0;this.j=new we};
ze=function(a,b){0!==b.length&&(a.B.push(b),a.u+=b.length)};
Sba=function(a,b){g.Ae(a,b,2);b=a.j.end();ze(a,b);b.push(a.u);return b};
Tba=function(a,b){var c=b.pop();for(c=a.u+a.j.length()-c;127<c;)b.push(c&127|128),c>>>=7,a.u++;b.push(c);a.u++};
Uba=function(a,b){if(b=b.D){ze(a,a.j.end());for(var c=0;c<b.length;c++)ze(a,Qc(b[c])||Jc())}};
g.Ae=function(a,b,c){xe(a.j,8*b+c)};
g.Be=function(a,b,c){g.Ae(a,b,2);xe(a.j,c.length);ze(a,a.j.end());ze(a,c)};
Vba=function(a,b,c,d,e,f){(a=a.j&&a.j[c])?Array.isArray(a)?(e=f.dH?Yc(a.slice()):a,Id(b,0<e.length?e[0].constructor:void 0,c,e)):F(b,a.constructor,c,a):(Dc&&d instanceof Uint8Array?e=d.length?new Mc(new Uint8Array(d),Kc):Pc():(Array.isArray(d)&&(e?Wc(d,2):d&&Xc(d)&1&&f.dH?(e=Array.prototype.slice.call(d),gba(e,(Xc(d)|0)&-51),d=e):hba(d)),e=d),g.E(b,c,e))};
Ce=function(){Ud.apply(this,arguments)};
Yba=function(a,b,c){if(c){var d={},e;for(e in c){var f=c[e],h=f.r6;h||(d.wx=f.J5a||f.S3.VE,f.VN?(d.hF=Wba(f.VN),h=function(l){return function(m,n,p){return l.wx(m,n,p,l.hF)}}(d)):f.uQ?(d.gF=Xba(f.EH.Yr,f.uQ),h=function(l){return function(m,n,p){return l.wx(m,n,p,l.gF)}}(d)):h=d.wx,f.r6=h);
h(b,a,f.EH);d={wx:d.wx,hF:d.hF,gF:d.gF}}}Uba(b,a)};
Zba=function(a,b,c){return a[De]||(a[De]=function(d,e){return b(d,e,c)})};
aca=function(a){var b=a[De];if(!b){var c=Ee(a);b=function(d,e){return $ba(d,e,c)};
a[De]=b}return b};
bca=function(a){var b=a.VN;if(b)return aca(b);if(b=a.I5a)return Zba(a.EH.Yr,b,a.uQ)};
cca=function(a){var b=bca(a),c=a.EH,d=a.S3.yn;return b?function(e,f){return d(e,f,c,b)}:function(e,f){return d(e,f,c)}};
dca=function(a,b){var c=a[b];"function"==typeof c&&0===c.length&&(c=c(),a[b]=c);return Array.isArray(c)&&(Fe in c||Ge in c||0<c.length&&"function"==typeof c[0])?c:void 0};
eca=function(a,b,c,d,e,f){b.Yr=a[0];var h=1;if(a.length>h&&"number"!==typeof a[h]){var l=a[h++];c(b,l)}for(;h<a.length;){c=a[h++];for(var m=h+1;m<a.length&&"number"!==typeof a[m];)m++;l=a[h++];m-=h;switch(m){case 0:d(b,c,l);break;case 1:(m=dca(a,h))?(h++,e(b,c,l,m)):d(b,c,l,a[h++]);break;case 2:m=h++;m=dca(a,m);e(b,c,l,m,a[h++]);break;case 3:f(b,c,l,a[h++],a[h++],a[h++]);break;case 4:f(b,c,l,a[h++],a[h++],a[h++],a[h++]);break;default:throw Error("unexpected number of binary field arguments: "+m);
}}return b};
Wba=function(a){var b=a[He];if(!b){var c=Ie(a);b=function(d,e){return fca(d,e,c)};
a[He]=b}return b};
Xba=function(a,b){var c=a[He];c||(c=function(d,e){return Yba(d,e,b)},a[He]=c);
return c};
gca=function(a,b){a.push(b)};
hca=function(a,b,c){a.push(b,c.VE)};
ica=function(a,b,c,d){var e=Wba(d),f=Ie(d).Yr,h=c.VE;a.push(b,function(l,m,n){return h(l,m,n,f,e)})};
jca=function(a,b,c,d,e,f){var h=Xba(d,f),l=c.VE;a.push(b,function(m,n,p){return l(m,n,p,d,h)})};
Ie=function(a){var b=a[Ge];if(b)return b;b=eca(a,a[Ge]=[],gca,hca,ica,jca);Fe in a&&Ge in a&&(a.length=0);return b};
kca=function(a,b){a[0]=b};
lca=function(a,b,c,d){var e=c.yn;a[b]=d?function(f,h,l){return e(f,h,l,d)}:e};
mca=function(a,b,c,d,e){var f=c.yn,h=aca(d),l=Ee(d).Yr;a[b]=function(m,n,p){return f(m,n,p,l,h,e)}};
nca=function(a,b,c,d,e,f,h){var l=c.yn,m=Zba(d,e,f);a[b]=function(n,p,q){return l(n,p,q,d,m,h)}};
Ee=function(a){var b=a[Fe];if(b)return b;b=eca(a,a[Fe]={},kca,lca,mca,nca);Fe in a&&Ge in a&&(a.length=0);return b};
$ba=function(a,b,c){for(;Jba(b)&&4!=b.u;){var d=b.C,e=c[d];if(!e){var f=c[0];f&&(f=f[d])&&(e=c[d]=cca(f))}if(!e||!e(b,a,d))if(f=b,e=a,d=f.B,re(f),!f.rH){var h=f.j.j-d;f.j.j=d;d=Gba(f.j,h);(f=e.D)?f.push(d):e.D=[d]}}return a};
fca=function(a,b,c){for(var d=c.length,e=1==d%2,f=e?1:0;f<d;f+=2)(0,c[f+1])(b,a,c[f]);Yba(a,b,e?c[0]:void 0)};
g.Je=function(a,b){var c=new Rba;fca(a,c,Ie(b));ze(c,c.j.end());a=new Uint8Array(c.u);b=c.B;for(var d=b.length,e=0,f=0;f<d;f++){var h=b[f];a.set(h,e);e+=h.length}c.B=[a];return a};
g.Pe=function(a,b){return{yn:a,VE:b}};
g.Qe=function(a,b,c){b=g.nd(b,c);b=null==b?b:+b;if(null!=b){g.Ae(a,c,1);a=a.j;var d=+b;if(0===d)g.ce=0<1/d?0:2147483648,g.be=0;else if(isNaN(d))g.ce=2147483647,g.be=4294967295;else if(d=(c=0>d?-2147483648:0)?-d:d,1.7976931348623157E308<d)g.ce=(c|2146435072)>>>0,g.be=0;else if(2.2250738585072014E-308>d)b=d/Math.pow(2,-1074),g.ce=(c|b/4294967296)>>>0,g.be=b>>>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.ce=(c|b+1023<<20|1048576*d&1048575)>>>
0;g.be=4503599627370496*d>>>0}g.ye(a,g.be);g.ye(a,g.ce)}};
g.Re=function(a,b,c){b=g.nd(b,c);null!=b&&("string"===typeof b&&Oba(b),null!=b&&(g.Ae(a,c,0),"number"===typeof b?(a=a.j,Bba(b),Pba(a,g.be,g.ce)):(c=Oba(b),Pba(a.j,c.u,c.j))))};
g.Se=function(a,b,c){b=g.nd(b,c);null!=b&&null!=b&&(g.Ae(a,c,0),Qba(a.j,b))};
g.oca=function(a,b,c){b=g.nd(b,c);null!=b&&g.Be(a,c,g.vaa(b))};
g.pca=function(a,b,c,d,e){b=Ed(b,d,c);null!=b&&(c=Sba(a,c),e(b,a),Tba(a,c))};
qca=function(a){var b=this.Yr,c=this.j;return this.isRepeated?Fd(a,b,c,!0):Ed(a,b,c,!0)};
g.I=function(){Ce.apply(this,arguments)};
rca=function(a){g.I.call(this,a)};
sca=function(a){g.I.call(this,a)};
Te=function(a){g.I.call(this,a)};
Ue=function(a){g.I.call(this,a)};
tca=function(a){this.hO=a};
Ve=function(a,b,c){this.u=a;this.C=b;this.j=c||[];this.xv=new Map};
We=function(a,b){Ve.call(this,a,3,b)};
Xe=function(a,b){Ve.call(this,a,2,b)};
g.Ye=function(a){a&&"function"==typeof a.dispose&&a.dispose()};
g.Ze=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];g.La(d)?g.Ze.apply(null,d):g.Ye(d)}};
g.J=function(){this.Fm=this.Fm;this.Xk=this.Xk};
g.M=function(a,b){g.$e(a,g.Qa(g.Ye,b))};
g.$e=function(a,b){a.Fm?b():(a.Xk||(a.Xk=[]),a.Xk.push(b))};
g.af=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.u=!1};
vca=function(a){var b=g.Ga("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.C.$googDebugFname||b}catch(h){e="Not available",c=!0}b=uca(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,bf[c])c=bf[c];else{c=String(c);if(!bf[c]){var f=/function\s+([^\(]+)/m.exec(c);bf[c]=f?f[1]:"[Anonymous]"}c=bf[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{message:a.message,name:a.name,lineNumber:a.lineNumber,fileName:a.fileName,stack:a.stack}};
uca=function(a,b){b||(b={});b[wca(a)]=!0;var c=a.stack||"";(a=a.cause)&&!b[wca(a)]&&(c+="\nCaused by: ",a.stack&&0==a.stack.indexOf(a.toString())||(c+="string"===typeof a?a:a.message+"\n"),c+=uca(a,b));return c};
wca=function(a){var b="";"function"===typeof a.toString&&(b=""+a);return b+a.stack};
xca=function(a){return g.gf?"webkit"+a:a.toLowerCase()};
hf=function(a,b){g.af.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.j=null;a&&this.init(a,b)};
jf=function(a){return!(!a||!a[yca])};
Aca=function(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.Xc=e;this.key=++zca;this.pA=this.PB=!1};
kf=function(a){a.pA=!0;a.listener=null;a.proxy=null;a.src=null;a.Xc=null};
g.lf=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};
g.mf=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};
nf=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c};
g.of=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1};
Bca=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0};
g.pf=function(a){for(var b in a)return b};
Cca=function(a){for(var b in a)return a[b]};
qf=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};
g.rf=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
g.sf=function(a,b){return null!==a&&b in a};
g.tf=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};
uf=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c};
Dca=function(a,b){return(b=uf(a,b))&&a[b]};
g.vf=function(a){for(var b in a)return!1;return!0};
g.Eca=function(a){for(var b in a)delete a[b]};
g.Df=function(a,b){b in a&&delete a[b]};
g.Ef=function(a,b,c){return null!==a&&b in a?a[b]:c};
g.Ff=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.Gf=function(a){var b={},c;for(c in a)b[c]=a[c];return b};
g.Hf=function(a){if(!a||"object"!==typeof a)return a;if("function"===typeof a.clone)return a.clone();if("undefined"!==typeof Map&&a instanceof Map)return new Map(a);if("undefined"!==typeof Set&&a instanceof Set)return new Set(a);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.Hf(a[c]);return b};
g.If=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<Fca.length;f++)c=Fca[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};
Gca=function(a){var b=a;Object.isFrozen&&!Object.isFrozen(a)&&(b=Object.create(a),Object.freeze(b));return b};
Jf=function(a){this.src=a;this.listeners={};this.j=0};
g.Kf=function(a,b){var c=b.type;c in a.listeners&&g.Xb(a.listeners[c],b)&&(kf(b),0==a.listeners[c].length&&(delete a.listeners[c],a.j--))};
Lf=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.pA&&f.listener==b&&f.capture==!!c&&f.Xc==d)return e}return-1};
g.Nf=function(a,b,c,d,e){if(d&&d.once)return Mf(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)g.Nf(a,b[f],c,d,e);return null}c=Of(c);return jf(a)?a.Ra(b,c,g.Ma(d)?!!d.capture:!!d,e):Hca(a,b,c,!1,d,e)};
Hca=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var h=g.Ma(e)?!!e.capture:!!e,l=Pf(a);l||(a[Qf]=l=new Jf(a));c=l.add(b,c,d,h,f);if(c.proxy)return c;d=Ica();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)Jca||(e=h),void 0===e&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(Kca(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");Lca++;return c};
Ica=function(){function a(c){return b.call(a.src,a.listener,c)}
var b=Mca;return a};
Mf=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)Mf(a,b[f],c,d,e);return null}c=Of(c);return jf(a)?a.mD(b,c,g.Ma(d)?!!d.capture:!!d,e):Hca(a,b,c,!0,d,e)};
Nca=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)Nca(a,b[f],c,d,e);else d=g.Ma(d)?!!d.capture:!!d,c=Of(c),jf(a)?a.yc(b,c,d,e):a&&(a=Pf(a))&&(b=a.Uy(b,c,d,e))&&Rf(b)};
Rf=function(a){if("number"!==typeof a&&a&&!a.pA){var b=a.src;if(jf(b))g.Kf(b.B,a);else{var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(Kca(c),d):b.addListener&&b.removeListener&&b.removeListener(d);Lca--;(c=Pf(b))?(g.Kf(c,a),0==c.j&&(c.src=null,b[Qf]=null)):kf(a)}}};
Kca=function(a){return a in Sf?Sf[a]:Sf[a]="on"+a};
Mca=function(a,b){if(a.pA)a=!0;else{b=new hf(b,this);var c=a.listener,d=a.Xc||a.src;a.PB&&Rf(a);a=c.call(d,b)}return a};
Pf=function(a){a=a[Qf];return a instanceof Jf?a:null};
Of=function(a){if("function"===typeof a)return a;a[Tf]||(a[Tf]=function(b){return a.handleEvent(b)});
return a[Tf]};
g.Uf=function(){g.J.call(this);this.B=new Jf(this);this.Gb=this;this.La=null};
Vf=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.pA&&h.capture==c){var l=h.listener,m=h.Xc||h.src;h.PB&&g.Kf(a.B,h);e=!1!==l.call(m,d)&&e}}return e&&!d.defaultPrevented};
Wf=function(a,b){this.B=a;this.C=b;this.u=0;this.j=null};
Oca=function(a,b){a.C(b);100>a.u&&(a.u++,b.next=a.j,a.j=b)};
Xf=function(a){return function(){return a}};
g.Yf=function(){};
Pca=function(a){var b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};
Zf=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}};
$f=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}};
Qca=function(a,b){var c=0;return function(d){g.C.clearTimeout(c);var e=arguments;c=g.C.setTimeout(function(){a.apply(b,e)},50)}};
fg=function(){if(void 0===eg){var a=null,b=g.C.trustedTypes;if(b&&b.createPolicy){try{a=b.createPolicy("goog#html",{createHTML:Wa,createScript:Wa,createScriptURL:Wa})}catch(c){g.C.console&&g.C.console.error(c.message)}eg=a}else eg=a}return eg};
gg=function(a,b){this.j=a===Rca&&b||"";this.u=Sca};
hg=function(a){return a instanceof gg&&a.constructor===gg&&a.u===Sca?a.j:"type_error:Const"};
g.ig=function(a){return new gg(Rca,a)};
jg=function(a,b){this.j=b===Tca?a:"";this.Wm=!0};
Uca=function(a){var b=fg();a=b?b.createScript(a):a;return new jg(a,Tca)};
kg=function(a,b){this.j=b===Vca?a:""};
Wca=function(a){return a instanceof kg&&a.constructor===kg?a.j:"type_error:TrustedResourceUrl"};
Zca=function(a,b){var c=hg(a);if(!Xca.test(c))throw Error("Invalid TrustedResourceUrl format: "+c);a=c.replace(Yca,function(d,e){if(!Object.prototype.hasOwnProperty.call(b,e))throw Error('Found marker, "'+e+'", in format string, "'+c+'", but no valid label mapping found in args: '+JSON.stringify(b));d=b[e];return d instanceof gg?hg(d):encodeURIComponent(String(d))});
return g.lg(a)};
g.lg=function(a){var b=fg();a=b?b.createScriptURL(a):a;return new kg(a,Vca)};
ng=function(a,b){this.j=b===mg?a:""};
g.og=function(a){return a instanceof ng&&a.constructor===ng?a.j:"type_error:SafeUrl"};
g.pg=function(a){a instanceof ng||(a="object"==typeof a&&a.Wm?a.dk():String(a),$ca.test(a)?a=new ng(a,mg):(a=String(a).replace(/(%0A|%0D)/g,""),a=a.match(ada)?new ng(a,mg):null));return a||bda};
cda=function(a){if(a instanceof ng)return a;a="object"==typeof a&&a.Wm?a.dk():String(a);$ca.test(a)||(a="about:invalid#zClosurez");return new ng(a,mg)};
rg=function(a,b){this.j=b===qg?a:"";this.Wm=!0};
sg=function(a){return a instanceof rg&&a.constructor===rg?a.j:"type_error:SafeStyle"};
eda=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)?d.map(dda).join(" "):dda(d),b+=c+":"+d+";")}return b?new rg(b,qg):tg};
fda=function(a){function b(d){Array.isArray(d)?d.forEach(b):c+=sg(d)}
var c="";Array.prototype.forEach.call(arguments,b);return c?new rg(c,qg):tg};
dda=function(a){if(a instanceof ng)return'url("'+g.og(a).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';if(a instanceof gg)a=hg(a);else{a=String(a);var b=a.replace(gda,"$1").replace(gda,"$1").replace(hda,"url");if(ida.test(b)){if(b=!jda.test(a)){for(var c=b=!0,d=0;d<a.length;d++){var e=a.charAt(d);"'"==e&&c?b=!b:'"'==e&&b&&(c=!c)}b=b&&c&&kda(a)}a=b?lda(a):"zClosurez"}else a="zClosurez"}if(/[{;}]/.test(a))throw new Ya("Value does not allow [{;}], got: %s.",[a]);return a};
kda=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};
lda=function(a){return a.replace(hda,function(b,c,d,e){var f="";d=d.replace(/^(['"])(.*)\1$/,function(h,l,m){f=l;return m});
b=g.pg(d).dk();return c+f+b+f+e})};
xg=function(a,b){this.j=b===wg?a:"";this.Wm=!0};
g.yg=function(a){return a instanceof xg&&a.constructor===xg?a.j:"type_error:SafeHtml"};
mda=function(a){return a instanceof xg?a:zg(db("object"==typeof a&&a.Wm?a.dk():String(a)))};
oda=function(a){function b(e){Array.isArray(e)?e.forEach(b):(e=mda(e),d.push(g.yg(e).toString()))}
var c=mda(nda),d=[];a.forEach(b);return zg(d.join(g.yg(c).toString()))};
pda=function(a){return oda(Array.prototype.slice.call(arguments))};
zg=function(a){var b=fg();a=b?b.createHTML(a):a;return new xg(a,wg)};
g.Ag=function(a,b){return zg(b)};
qda=function(a,b){return new rg(b,qg)};
g.sda=function(a,b){if(rda())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=g.yg(b)};
g.Bg=function(a,b){b=b instanceof ng?b:cda(b);a.href=g.og(b)};
Cg=function(a,b,c,d){a=a instanceof ng?a:cda(a);b=b||g.C;c=c instanceof gg?hg(c):c||"";return void 0!==d?b.open(g.og(a),c,d):b.open(g.og(a),c)};
Dg=function(){a:{var a=g.C.document;if(a.querySelector&&(a=a.querySelector("script[nonce]"))&&(a=a.nonce||a.getAttribute("nonce"))&&tda.test(a))break a;a=""}return a};
uda=function(a,b){return a+Math.random()*(b-a)};
g.Eg=function(a,b,c){return Math.min(Math.max(a,b),c)};
g.Fg=function(a,b){a%=b;return 0>a*b?a+b:a};
g.Gg=function(a,b,c){return a+c*(b-a)};
Hg=function(a,b){return 1E-6>=Math.abs(a-b)};
g.Ig=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0};
Jg=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1};
g.Kg=function(a,b){this.width=a;this.height=b};
g.Lg=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};
Mg=function(a){return a.width*a.height};
g.Rg=function(a){return encodeURIComponent(String(a))};
Sg=function(a){return decodeURIComponent(a.replace(/\+/g," "))};
g.Tg=function(a){return a=db(a)};
g.Ug=function(a){return null==a?"":String(a)};
Vg=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};
Wg=function(a){var b=Number(a);return 0==b&&g.cb(a)?NaN:b};
vda=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})};
wda=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()};
xda=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})};
yda=function(a){var b=1;a=a.split(":");for(var c=[];0<b&&a.length;)c.push(a.shift()),b--;a.length&&c.push(a.join(":"));return c};
Zg=function(a){return a?new Xg(Yg(a)):zda||(zda=new Xg)};
Ada=function(a){var b=document;return"string"===typeof a?b.getElementById(a):a};
g.$g=function(a,b){return(b||document).getElementsByTagName(String(a))};
g.bh=function(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):g.ah(document,"*",a,b)};
g.ch=function(a,b){var c=b||document;if(c.getElementsByClassName)a=c.getElementsByClassName(a)[0];else{c=document;var d=b||c;a=d.querySelectorAll&&d.querySelector&&a?d.querySelector(a?"."+a:""):g.ah(c,"*",a,b)[0]||null}return a||null};
g.ah=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.Sb(b.split(/\s+/),c)&&(d[e++]=h);d.length=e;return d}return a};
dh=function(a,b){g.lf(b,function(c,d){c&&"object"==typeof c&&c.Wm&&(c=c.dk());"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:Bda.hasOwnProperty(d)?a.setAttribute(Bda[d],c):bb(d,"aria-")||bb(d,"data-")?a.setAttribute(d,c):a[d]=c})};
Cda=function(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new g.Kg(a.clientWidth,a.clientHeight)};
Eda=function(a){var b=Dda(a);a=a.parentWindow||a.defaultView;return g.Ac&&g.vc("10")&&a.pageYOffset!=b.scrollTop?new g.Ig(b.scrollLeft,b.scrollTop):new g.Ig(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};
Dda=function(a){return a.scrollingElement?a.scrollingElement:g.gf||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement};
eh=function(a){return a?a.parentWindow||a.defaultView:window};
gh=function(a,b,c){var d=arguments,e=document,f=d[1],h=fh(e,String(d[0]));f&&("string"===typeof f?h.className=f:Array.isArray(f)?h.className=f.join(" "):dh(h,f));2<d.length&&Fda(e,h,d,2);return h};
Fda=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.La(f)||g.Ma(f)&&0<f.nodeType)e(f);else{a:{if(f&&"number"==typeof f.length){if(g.Ma(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.qc(h?g.bc(f):f,e)}}};
g.hh=function(a){return fh(document,a)};
fh=function(a,b){b=String(b);"application/xhtml+xml"===a.contentType&&(b=b.toLowerCase());return a.createElement(b)};
g.ih=function(a){return document.createTextNode(String(a))};
g.jh=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};
g.kh=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)};
g.oh=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null};
Gda=function(a){return void 0!=a.children?a.children:Array.prototype.filter.call(a.childNodes,function(b){return 1==b.nodeType})};
g.ph=function(a){var b;if(Hda&&!(g.Ac&&g.vc("9")&&!g.vc("10")&&g.C.SVGElement&&a instanceof g.C.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return g.Ma(b)&&1==b.nodeType?b:null};
g.qh=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};
Yg=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document};
g.rh=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.jh(a),a.appendChild(Yg(a).createTextNode(String(b)))};
sh=function(a){var b;if((b="A"==a.tagName&&a.hasAttribute("href")||"INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"BUTTON"==a.tagName?!a.disabled&&(!a.hasAttribute("tabindex")||Ida(a)):a.hasAttribute("tabindex")&&Ida(a))&&g.Ac){var c;"function"!==typeof a.getBoundingClientRect||g.Ac&&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};
Ida=function(a){a=a.tabIndex;return"number"===typeof a&&0<=a&&32768>a};
uh=function(a,b,c){if(!b&&!c)return null;var d=b?String(b).toUpperCase():null;return th(a,function(e){return(!d||e.nodeName==d)&&(!c||"string"===typeof e.className&&g.Sb(e.className.split(/\s+/),c))},!0)};
th=function(a,b,c){a&&!c&&(a=a.parentNode);for(c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null};
Xg=function(a){this.j=a||g.C.document||document};
wh=function(a){"function"!==typeof g.C.setImmediate||g.C.Window&&g.C.Window.prototype&&!zb()&&g.C.Window.prototype.setImmediate==g.C.setImmediate?(vh||(vh=Jda()),vh(a)):g.C.setImmediate(a)};
Jda=function(){var a=g.C.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!tb("Presto")&&(a=function(){var e=g.hh("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.Pa)(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&&!yb()){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.eO;c.eO=null;e()}};
return function(e){d.next={eO:e};d=d.next;b.port2.postMessage(0)}}return function(e){g.C.setTimeout(e,0)}};
Kda=function(a){g.C.setTimeout(function(){throw a;},0)};
xh=function(){this.u=this.j=null};
yh=function(){this.next=this.scope=this.fn=null};
g.Bh=function(a,b){zh||Lda();Ah||(zh(),Ah=!0);Mda.add(a,b)};
Lda=function(){if(g.C.Promise&&g.C.Promise.resolve){var a=g.C.Promise.resolve(void 0);zh=function(){a.then(Nda)}}else zh=function(){wh(Nda)}};
Nda=function(){for(var a;a=Mda.remove();){try{a.fn.call(a.scope)}catch(b){Kda(b)}Oca(Oda,a)}Ah=!1};
g.Dh=function(a){this.j=0;this.J=void 0;this.C=this.u=this.B=null;this.D=this.I=!1;if(a!=g.Yf)try{var b=this;a.call(void 0,function(c){Ch(b,2,c)},function(c){Ch(b,3,c)})}catch(c){Ch(this,3,c)}};
Pda=function(){this.next=this.context=this.onRejected=this.u=this.j=null;this.B=!1};
Eh=function(a,b,c){var d=Qda.get();d.u=a;d.onRejected=b;d.context=c;return d};
Fh=function(a){if(a instanceof g.Dh)return a;var b=new g.Dh(g.Yf);Ch(b,2,a);return b};
Gh=function(a){return new g.Dh(function(b,c){c(a)})};
g.Sda=function(a,b,c){Rda(a,b,c,null)||g.Bh(g.Qa(b,a))};
Tda=function(a){return new g.Dh(function(b,c){a.length||b(void 0);for(var d=0,e;d<a.length;d++)e=a[d],g.Sda(e,b,c)})};
Ih=function(a,b){b=Eh(b,b);b.B=!0;Hh(a,b);return a};
Uda=function(a,b){if(0==a.j)if(a.B){var c=a.B;if(c.u){for(var d=0,e=null,f=null,h=c.u;h&&(h.B||(d++,h.j==a&&(e=h),!(e&&1<d)));h=h.next)e||(f=h);e&&(0==c.j&&1==d?Uda(c,b):(f?(d=f,d.next==c.C&&(c.C=d),d.next=d.next.next):Vda(c),Wda(c,e,3,b)))}a.B=null}else Ch(a,3,b)};
Hh=function(a,b){a.u||2!=a.j&&3!=a.j||Xda(a);a.C?a.C.next=b:a.u=b;a.C=b};
Yda=function(a,b,c,d){var e=Eh(null,null,null);e.j=new g.Dh(function(f,h){e.u=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 Jh?h(l):f(m)}catch(n){h(n)}}:h});
e.j.B=a;Hh(a,e);return e.j};
Ch=function(a,b,c){0==a.j&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.j=1,Rda(c,a.Q5,a.R5,a)||(a.J=c,a.j=b,a.B=null,Xda(a),3!=b||c instanceof Jh||Zda(a,c)))};
Rda=function(a,b,c,d){if(a instanceof g.Dh)return Hh(a,Eh(b||g.Yf,c||null,d)),!0;if(a)try{var e=!!a.$goog_Thenable}catch(h){e=!1}else e=!1;if(e)return a.then(b,c,d),!0;if(g.Ma(a))try{var f=a.then;if("function"===typeof f)return $da(a,f,b,c,d),!0}catch(h){return c.call(d,h),!0}return!1};
$da=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)}};
Xda=function(a){a.I||(a.I=!0,g.Bh(a.HY,a))};
Vda=function(a){var b=null;a.u&&(b=a.u,a.u=b.next,b.next=null);a.u||(a.C=null);return b};
Wda=function(a,b,c,d){if(3==c&&b.onRejected&&!b.B)for(;a&&a.D;a=a.B)a.D=!1;if(b.j)b.j.B=null,aea(b,c,d);else try{b.B?b.u.call(b.context):aea(b,c,d)}catch(e){bea.call(null,e)}Oca(Qda,b)};
aea=function(a,b,c){2==b?a.u.call(a.context,c):a.onRejected&&a.onRejected.call(a.context,c)};
Zda=function(a,b){a.D=!0;g.Bh(function(){a.D&&bea.call(null,b)})};
Jh=function(a){Xa.call(this,a)};
g.Lh=function(a,b){g.Uf.call(this);this.yh=a||1;this.NA=b||g.C;this.WN=(0,g.Pa)(this.u5,this);this.gQ=g.Ra()};
g.Mh=function(a,b,c){if("function"===typeof a)c&&(a=(0,g.Pa)(a,c));else if(a&&"function"==typeof a.handleEvent)a=(0,g.Pa)(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:g.C.setTimeout(a,b||0)};
Nh=function(a,b){var c=null;return(new g.Dh(function(d,e){c=g.Mh(function(){d(b)},a);
-1==c&&e(Error("Failed to schedule timer."))})).bj(function(d){g.C.clearTimeout(c);
throw d;})};
g.Oh=function(a){this.J=a;this.j=new Map;this.I=new Set;this.B=0;this.C=100;this.flushInterval=3E4;this.u=new g.Lh(this.flushInterval);this.u.Ra("tick",this.IF,!1,this);this.D=!1};
cea=function(a){a.u.enabled||a.u.start();a.B++;a.B>=a.C&&a.IF()};
dea=function(a,b){return a.I.has(b)?void 0:a.j.get(b)};
eea=function(a){for(var b=0;b<a.length;b++)a[b].clear()};
fea=function(a){this.j=a;this.j.GB("/client_streamz/po/w/rl",{Qh:3,Ph:"mn"},{Qh:2,Ph:"ac"},{Qh:2,Ph:"sc"},{Qh:3,Ph:"rk"})};
gea=function(a){this.j=a;this.j.GB("/client_streamz/po/w/el",{Qh:3,Ph:"en"},{Qh:3,Ph:"rk"})};
hea=function(a){this.j=a;this.j.wp("/client_streamz/po/w/cec",{Qh:2,Ph:"ec"},{Qh:3,Ph:"rk"})};
g.Ph=function(a){g.I.call(this,a,-1,iea)};
g.Rh=function(a){g.I.call(this,a,-1,jea)};
g.Sh=function(a){g.I.call(this,a)};
g.Th=function(a){g.I.call(this,a)};
lea=function(a){g.I.call(this,a,-1,kea)};
g.mea=function(a){var b=new g.Ph;b=g.E(b,1,a.u);for(var c=[],d=0;d<a.j.length;d++)c.push(a.j[d].Ph);b=uba(b,3,c);c=[];d=[];for(var e=g.r(a.xv.keys()),f=e.next();!f.done;f=e.next())d.push(f.value.split(","));for(e=0;e<d.length;e++){f=d[e];var h=a.C;for(var l=a.NH(f)||[],m=[],n=0;n<l.length;n++){var p=l[n];p=p&&p.hO;var q=new g.Th;switch(h){case 3:g.Dd(q,1,g.Uh,Number(p));break;case 2:g.Dd(q,2,g.Uh,Number(p))}m.push(q)}h=m;for(l=0;l<h.length;l++){m=h[l];n=new g.Rh;m=F(n,g.Th,2,m);n=f;p=[];q=a;for(var u=
[],w=0;w<q.j.length;w++)u.push(q.j[w].Qh);q=u;for(u=0;u<q.length;u++){w=q[u];var y=n[u],A=new g.Sh;switch(w){case 3:g.Dd(A,1,g.Vh,String(y));break;case 2:g.Dd(A,2,g.Vh,Number(y));break;case 1:g.Dd(A,3,g.Vh,"true"==y)}p.push(A)}Id(m,g.Sh,1,p);c.push(m)}}Id(b,g.Rh,4,c);return b};
nea=function(a){if(!a)return"";if(/^about:(?:blank|srcdoc)$/.test(a))return window.origin||"";a=a.split("#")[0].split("?")[0];a=a.toLowerCase();0==a.indexOf("//")&&(a=window.location.protocol+a);/^[\w\-]*:\/\//.test(a)||(a=window.location.href);var b=a.substring(a.indexOf("://")+3),c=b.indexOf("/");-1!=c&&(b=b.substring(0,c));c=a.substring(0,a.indexOf("://"));if(!c)throw Error("URI is missing protocol: "+a);if("http"!==c&&"https"!==c&&"chrome-extension"!==c&&"moz-extension"!==c&&"file"!==c&&"android-app"!==
c&&"chrome-search"!==c&&"chrome-untrusted"!==c&&"chrome"!==c&&"app"!==c&&"devtools"!==c)throw Error("Invalid URI scheme in origin: "+c);a="";var d=b.indexOf(":");if(-1!=d){var e=b.substring(d+1);b=b.substring(0,d);if("http"===c&&"80"!==e||"https"===c&&"443"!==e)a=":"+e}return c+"://"+b+a};
oea=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;p=n=0}
function b(q){for(var u=h,w=0;64>w;w+=4)u[w/4]=q[w]<<24|q[w+1]<<16|q[w+2]<<8|q[w+3];for(w=16;80>w;w++)q=u[w-3]^u[w-8]^u[w-14]^u[w-16],u[w]=(q<<1|q>>>31)&4294967295;q=e[0];var y=e[1],A=e[2],B=e[3],D=e[4];for(w=0;80>w;w++){if(40>w)if(20>w){var G=B^y&(A^B);var H=1518500249}else G=y^A^B,H=1859775393;else 60>w?(G=y&A|B&(y|A),H=2400959708):(G=y^A^B,H=3395469782);G=((q<<5|q>>>27)&4294967295)+G+D+H+u[w]&4294967295;D=B;B=A;A=(y<<30|y>>>2)&4294967295;y=q;q=G}e[0]=e[0]+q&4294967295;e[1]=e[1]+y&4294967295;e[2]=
e[2]+A&4294967295;e[3]=e[3]+B&4294967295;e[4]=e[4]+D&4294967295}
function c(q,u){if("string"===typeof q){q=unescape(encodeURIComponent(q));for(var w=[],y=0,A=q.length;y<A;++y)w.push(q.charCodeAt(y));q=w}u||(u=q.length);w=0;if(0==n)for(;w+64<u;)b(q.slice(w,w+64)),w+=64,p+=64;for(;w<u;)if(f[n++]=q[w++],p++,64==n)for(n=0,b(f);w+64<u;)b(q.slice(w,w+64)),w+=64,p+=64}
function d(){var q=[],u=8*p;56>n?c(l,56-n):c(l,64-(n-56));for(var w=63;56<=w;w--)f[w]=u&255,u>>>=8;b(f);for(w=u=0;5>w;w++)for(var y=24;0<=y;y-=8)q[u++]=e[w]>>y&255;return q}
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,mY:function(){for(var q=d(),u="",w=0;w<q.length;w++)u+="0123456789ABCDEF".charAt(Math.floor(q[w]/16))+"0123456789ABCDEF".charAt(q[w]%16);return u}}};
qea=function(a,b,c){var d=String(g.C.location.href);return d&&a&&b?[b,pea(nea(d),a,c||null)].join(" "):null};
pea=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],g.qc(d,function(l){e.push(l)}),rea(e.join(" "));
var f=[],h=[];g.qc(c,function(l){h.push(l.key);f.push(l.value)});
c=Math.floor((new Date).getTime()/1E3);e=g.Vb(f)?[c,b,a]:[f.join(":"),c,b,a];g.qc(d,function(l){e.push(l)});
a=rea(e.join(" "));a=[c,a];g.Vb(h)||a.push(h.join(""));return a.join("_")};
rea=function(a){var b=oea();b.update(a);return b.mY().toLowerCase()};
Wh=function(a){this.j=a||{cookie:""}};
Xh=function(a){a=(a.j.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=ib(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}};
Yh=function(a){return!!sea.FPA_SAMESITE_PHASE2_MOD||!(void 0===a||!a)};
tea=function(a){a=void 0===a?!1:a;var b=g.C.__SAPISID||g.C.__APISID||g.C.__3PSAPISID||g.C.__OVERRIDE_SID;Yh(a)&&(b=b||g.C.__1PSAPISID);if(b)return!0;var c=new Wh(document);b=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID")||c.get("SID");Yh(a)&&(b=b||c.get("__Secure-1PAPISID"));return!!b};
uea=function(a,b,c,d){(a=g.C[a])||(a=(new Wh(document)).get(b));return a?qea(a,c,d):null};
Zh=function(a,b){b=void 0===b?!1:b;var c=nea(String(g.C.location.href)),d=[];if(tea(b)){c=0==c.indexOf("https:")||0==c.indexOf("chrome-extension:")||0==c.indexOf("moz-extension:");var e=c?g.C.__SAPISID:g.C.__APISID;e||(e=new Wh(document),e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID"));(e=e?qea(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e);c&&Yh(b)&&((b=uea("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&d.push(b),(a=uea("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",a))&&
d.push(a))}return 0==d.length?null:d.join(" ")};
$h=function(a){g.I.call(this,a,-1,vea)};
g.ai=function(a,b,c,d){this.C=a;this.D=b;this.j=this.B=a;this.I=c||0;this.J=d||2};
g.bi=function(a){a.j=Math.min(a.D,a.j*a.J);a.B=Math.min(a.D,a.j+(a.I?Math.round(a.I*(Math.random()-.5)*2*a.j):0));a.u++};
g.di=function(a){var b=[];ci(new wea,a,b);return b.join("")};
wea=function(){};
ci=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),ci(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),xea(d,c),c.push(":"),ci(a,f,c),e=","));c.push("}");return}}switch(typeof b){case "string":xea(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);}}};
xea=function(a,b){b.push('"',a.replace(yea,function(c){var d=zea[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).slice(1),zea[c]=d);return d}),'"')};
Aea=function(a){switch(a){case 0:return"No Error";case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}};
ei=function(){};
fi=function(){};
Bea=function(a){if(!a.u&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{return new ActiveXObject(d),a.u=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.u};
gi=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};
hi=function(a){return a?decodeURI(a):a};
g.oi=function(a,b){return b.match(ii)[a]||null};
g.pi=function(a){return hi(g.oi(3,a))};
g.Cea=function(a){a=a.match(ii);return gi(a[1],a[2],a[3],a[4])};
Dea=function(a){a=a.match(ii);return gi(a[1],null,a[3],a[4])};
Eea=function(a){a=a.match(ii);return gi(null,null,null,null,a[5],a[6],a[7])};
ri=function(a,b){if(a){a=a.split("&");for(var c=0;c<a.length;c++){var d=a[c].indexOf("="),e=null;if(0<=d){var f=a[c].substring(0,d);e=a[c].substring(d+1)}else f=a[c];b(f,e?Sg(e):"")}}};
Fea=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.slice(0,c),d,a.slice(b)]};
Gea=function(a,b){return b?a?a+"&"+b:b:a};
si=function(a,b){if(!b)return a;a=Fea(a);a[1]=Gea(a[1],b);return a[0]+(a[1]?"?"+a[1]:"")+a[2]};
ti=function(a,b,c){if(Array.isArray(b))for(var d=0;d<b.length;d++)ti(a,String(b[d]),c);else null!=b&&c.push(a+(""===b?"":"="+g.Rg(b)))};
Hea=function(a,b){var c=[];for(b=b||0;b<a.length;b+=2)ti(a[b],a[b+1],c);return c.join("&")};
g.ui=function(a){var b=[],c;for(c in a)ti(c,a[c],b);return b.join("&")};
vi=function(a,b){var c=2==arguments.length?Hea(arguments[1],0):Hea(arguments,1);return si(a,c)};
g.wi=function(a,b){b=g.ui(b);return si(a,b)};
xi=function(a,b,c){c=null!=c?"="+g.Rg(c):"";return si(a,b+c)};
Iea=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};
yi=function(a,b){var c=a.search(Jea),d=Iea(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 Sg(a.slice(d,-1!==e?e:0))};
zi=function(a,b){for(var c=a.search(Jea),d=0,e,f=[];0<=(e=Iea(a,d,b,c));)f.push(a.substring(d,e)),d=Math.min(a.indexOf("&",e)+1||c,c);f.push(a.slice(d));return f.join("").replace(Kea,"$1")};
Lea=function(a,b,c){return xi(zi(a,b),b,c)};
Mea=function(a,b){a=Fea(a);var c=a[1],d=[];c&&c.split("&").forEach(function(e){var f=e.indexOf("=");b.hasOwnProperty(0<=f?e.slice(0,f):e)||d.push(e)});
a[1]=Gea(d.join("&"),g.ui(b));return a[0]+(a[1]?"?"+a[1]:"")+a[2]};
g.Ai=function(a){g.Uf.call(this);this.headers=new Map;this.Z=a||null;this.C=!1;this.ya=this.j=null;this.qa="";this.u=0;this.D="";this.I=this.Ia=this.ea=this.Ba=!1;this.S=0;this.Aa=null;this.Qa="";this.Wa=this.J=!1};
Oea=function(a,b,c,d,e,f,h){var l=new g.Ai;Nea.push(l);b&&l.Ra("complete",b);l.mD("ready",l.RX);f&&(l.S=Math.max(0,f));h&&(l.J=h);l.send(a,c,d,e)};
Pea=function(a){return g.Ac&&g.vc(9)&&"number"===typeof a.timeout&&void 0!==a.ontimeout};
Rea=function(a,b){a.C=!1;a.j&&(a.I=!0,a.j.abort(),a.I=!1);a.D=b;a.u=5;Qea(a);Bi(a)};
Qea=function(a){a.Ba||(a.Ba=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
Sea=function(a){if(a.C&&"undefined"!=typeof Ci)if(a.ya[1]&&4==g.Di(a)&&2==a.getStatus())a.getStatus();else if(a.ea&&4==g.Di(a))g.Mh(a.rR,0,a);else if(a.dispatchEvent("readystatechange"),a.isComplete()){a.getStatus();a.C=!1;try{if(Ei(a))a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.u=6;try{var b=2<g.Di(a)?a.j.statusText:""}catch(c){b=""}a.D=b+" ["+a.getStatus()+"]";Qea(a)}}finally{Bi(a)}}};
Bi=function(a,b){if(a.j){Tea(a);var c=a.j,d=a.ya[0]?function(){}:null;
a.j=null;a.ya=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){}}};
Tea=function(a){a.j&&a.Wa&&(a.j.ontimeout=null);a.Aa&&(g.C.clearTimeout(a.Aa),a.Aa=null)};
Ei=function(a){var b=a.getStatus();a:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var c=!0;break a;default:c=!1}if(!c){if(b=0===b)a=g.oi(1,String(a.qa)),!a&&g.C.self&&g.C.self.location&&(a=g.C.self.location.protocol.slice(0,-1)),b=!Uea.test(a?a.toLowerCase():"");c=b}return c};
g.Di=function(a){return a.j?a.j.readyState:0};
g.Fi=function(a){try{return a.j?a.j.responseText:""}catch(b){return""}};
g.Gi=function(a){try{if(!a.j)return null;if("response"in a.j)return a.j.response;switch(a.Qa){case "":case "text":return a.j.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in a.j)return a.j.mozResponseArrayBuffer}return null}catch(b){return null}};
g.Vea=function(a){var b={};a=(a.j&&2<=g.Di(a)?a.j.getAllResponseHeaders()||"":"").split("\r\n");for(var c=0;c<a.length;c++)if(!g.cb(a[c])){var d=yda(a[c]),e=d[0];d=d[1];if("string"===typeof d){d=d.trim();var f=b[e]||[];b[e]=f;f.push(d)}}return nf(b,function(h){return h.join(", ")})};
g.Hi=function(a,b){return a.j?a.j.getResponseHeader(b):null};
Ii=function(a){g.I.call(this,a)};
Ji=function(a){g.I.call(this,a,-1,Wea)};
Ki=function(a){g.I.call(this,a)};
Li=function(a){g.I.call(this,a,31,Xea)};
Zea=function(a){g.I.call(this,a,17,Yea)};
afa=function(a){g.I.call(this,a,6,$ea)};
bfa=function(a){g.I.call(this,a)};
Ni=function(a,b,c,d,e,f,h,l,m,n,p){g.Uf.call(this);var q=this;this.ea="";this.u=[];this.kb="";this.ob=this.Ia=-1;this.Ya=!1;this.S=this.C=null;this.J=0;this.Lb=1;this.timeoutMillis=0;this.Ba=!1;g.Uf.call(this);this.eb=b||function(){};
this.I=new cfa(a,f);this.yb=d;this.Wa=p;this.Rb=g.Qa(uda,0,1);this.Aa=e||null;this.Z=c||null;this.ya=h||!1;this.pageId=m||null;this.logger=null;this.withCredentials=!l;this.Qa=f||!1;!this.Qa&&(65<=Eb("Chromium")||45<=Eb("Firefox")||12<=Eb("Safari")||Hb()&&g.lb(Laa(),12));a=g.E(new Ki,1,1);Mi(this.I,a);this.D=new g.ai(1E4,3E5,.1);this.j=new g.Lh(this.D.getValue());g.M(this,this.j);n=dfa(this,n);g.Nf(this.j,"tick",n,!1,this);this.qa=new g.Lh(6E5);g.M(this,this.qa);g.Nf(this.qa,"tick",n,!1,this);this.ya||
this.qa.start();this.Qa||(g.Nf(document,"visibilitychange",function(){"hidden"===document.visibilityState&&q.FH()}),g.Nf(document,"pagehide",this.FH,!1,this))};
dfa=function(a,b){return b?function(){b().then(function(){a.flush()})}:function(){a.flush()}};
efa=function(a){a.Aa||(a.Aa=.01>a.Rb()?"https://www.google.com/log?format=json&hasfast=true":"https://play.google.com/log?format=json&hasfast=true");return a.Aa};
ffa=function(a,b){a.D=new g.ai(1>b?1:b,3E5,.1);a.j.setInterval(a.D.getValue())};
hfa=function(a){gfa(a,function(b,c){b=xi(b,"format","json");b=eh().navigator.sendBeacon(b,Wd(c));a.Ba&&!b&&(a.Ba=!1);return b})};
gfa=function(a,b){if(0!==a.u.length){var c=zi(efa(a),"format");c=vi(c,"auth",a.eb(),"authuser",a.Z||"0");for(var d=0;10>d&&a.u.length;++d){var e=a.u.slice(0,32),f=a.I.Xe(e,a.J);if(!b(c,f))break;a.J=0;a.u=a.u.slice(e.length)}a.j.enabled&&a.j.stop()}};
ifa=function(){g.af.call(this,"event-logged",void 0)};
cfa=function(a,b){this.B=b=void 0===b?!1:b;this.u=this.locale=null;this.j=new Zea;g.E(this.j,2,a);b||(this.locale=document.documentElement.getAttribute("lang"));Mi(this,new Ki)};
Mi=function(a,b){F(a.j,Ki,1,b);g.nd(b,1)||g.E(b,1,1);a.B||(b=Oi(a),g.nd(b,5)||g.E(b,5,a.locale));a.u&&(b=Oi(a),Ed(b,Ji,9)||F(b,Ji,9,a.u))};
kfa=function(a,b){var c=void 0===c?jfa:c;b(eh(),c).then(function(d){a.u=d;d=Oi(a);F(d,Ji,9,a.u);return!0}).catch(function(){return!1})};
Oi=function(a){a=Ed(a.j,Ki,1);var b=Ed(a,Ii,11);b||(b=new Ii,F(a,Ii,11,b));return b};
lfa=function(a,b,c){Oea(a.url,function(d){d=d.target;Ei(d)?b(g.Fi(d)):c(d.getStatus())},a.requestType,a.body,a.Jt,a.timeoutMillis,a.withCredentials)};
mfa=function(a){this.I=a;this.B="https://play.google.com/log?format=json&hasfast=true";this.C=!1;this.J=lfa;this.j=""};
Pi=function(a,b,c,d,e){c=void 0===c?"":c;d=void 0===d?!1:d;e=void 0===e?"":e;a=new mfa(void 0===a?-1:a);a.j=void 0===b?"":b;""!=c&&(a.B=c);d&&(a.C=!0);e&&(a.u=e);this.j=a.Xe()};
nfa=function(a){switch(a){case 200:return 0;case 400:return 3;case 401:return 16;case 403:return 7;case 404:return 5;case 409:return 10;case 412:return 9;case 429:return 8;case 499:return 1;case 500:return 2;case 501:return 12;case 503:return 14;case 504:return 4;default:return 2}};
Qi=function(a,b,c){c=void 0===c?{}:c;b=Error.call(this,b);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.code=a;this.metadata=c};
Ri=function(){var a,b,c;return null!=(c=null==(a=globalThis.performance)?void 0:null==(b=a.now)?void 0:b.call(a))?c:Date.now()};
Si=function(a,b){this.logger=a;this.j=b;this.startMillis=Ri()};
Ti=function(){};
Ui=function(a){this.kh=a;this.u=new Pi(1654,"","",!1,"5");this.j=new g.Oh(this.u);this.clientError=new hea(this.j);this.B=new gea(this.j);this.C=new fea(this.j)};
ofa=function(a){this.j=a;this.j.GB("/client_streamz/bg/fil",{Qh:3,Ph:"rk"})};
pfa=function(a){this.j=a;this.j.wp("/client_streamz/bg/fsc",{Qh:3,Ph:"rk"})};
qfa=function(a){this.j=a;this.j.GB("/client_streamz/bg/fsl",{Qh:3,Ph:"rk"})};
rfa=function(){this.I=Vi();this.C=new Pi(1828);this.j=new g.Oh(this.C);this.D=new ofa(this.j);this.u=new pfa(this.j);this.B=new qfa(this.j);this.kh=window.document.location.hostname};
Vi=function(){var a,b,c;return null!=(c=null==(a=globalThis.performance)?void 0:null==(b=a.now)?void 0:b.call(a))?c:Date.now()};
sfa=function(a){g.I.call(this,a)};
tfa=function(a){g.I.call(this,a)};
Wi=function(a){g.I.call(this,a)};
g.Xi=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})};
Yi=function(a){var b=this;this.hC=!1;if(a.b6a){var c;this.Sr=null!=(c=a.Sr)?c:new rfa}a.challenge instanceof Wi?(c=Qd(a.challenge,4),a=Qd(a.challenge,5)):(c=a.program,a=a.globalName);var d=new g.Xi;this.j=d.promise;this.p5=g.r((0,g.C[a].a)(c,function(e,f){Promise.resolve().then(function(){var h;null!=(h=b.Sr)&&h.D.ih(Vi()-h.I,h.kh);d.resolve({yX:e,L4:f})})},!0)).next().value;
this.G4=d.promise.then(function(){})};
ufa=function(a){g.ig("From proto message. b/12014412");return g.lg(g.nd(a,4)||"")};
vfa=function(){};
Zi=function(a){this.j=a};
yfa=function(a,b){var c=[new Zi(wfa[0].toLowerCase(),xfa)];if(0===c.length)throw Error("No prefixes are provided");if(c.map(function(d){if(d instanceof Zi)d=d.j;else throw Error("");return d}).every(function(d){return 0!=="attributionsrc".indexOf(d)}))throw Error('Attribute "attributionsrc" does not match any of the allowed prefixes.');
a.setAttribute("attributionsrc",b)};
zfa=function(a,b){return a.parseFromString(g.yg(b),"text/xml")};
Bfa=function(a){a:if(Afa){try{var b=new URL(a)}catch(c){b="https:";break a}b=b.protocol}else b:{b=document.createElement("a");try{b.href=a}catch(c){b=void 0;break b}b=b.protocol;b=":"===b||""===b?"https:":b}if("javascript:"!==b)return a};
$i=function(a){this.isValid=a};
aj=function(a){return new $i(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})};
Dfa=function(a,b){b=void 0===b?Cfa:b;for(var c=0;c<b.length;++c){var d=b[c];if(d instanceof $i&&d.isValid(a))return new ng(a,mg)}};
Efa=function(a){var b,c,d=null==(c=(b=(a.ownerDocument&&a.ownerDocument.defaultView||window).document).querySelector)?void 0:c.call(b,"script[nonce]");(b=d?d.nonce||d.getAttribute("nonce")||"":"")&&a.setAttribute("nonce",b)};
g.bj=function(a,b){a.src=Wca(b);Efa(a)};
gj=function(){this.j={};this.u=null};
Ffa=function(){gj.j||(gj.j=new gj);return gj.j};
Hfa=function(a){var b=Ffa();return Gfa(b,Ed(a,sfa,1),Ed(a,tfa,2),Qd(a,3))};
Gfa=function(a,b,c,d){var e;if(!b&&!c)return Promise.resolve();if(!d)return Ifa(b,c);(e=a.j)[d]||(e[d]=new Promise(function(f,h){Ifa(b,c).then(function(){a.u=d;f()},function(l){delete a.j[d];
h(l)})}));
return a.j[d]};
Ifa=function(a,b){return b?Jfa(b):a?Kfa(a):Promise.resolve()};
Jfa=function(a){return new Promise(function(b,c){var d=g.hh("SCRIPT"),e=ufa(a);g.bj(d,e);d.onload=function(){g.oh(d);b()};
d.onerror=function(){g.oh(d);c(Error("EWLS"))};
(g.$g("HEAD")[0]||document.documentElement).appendChild(d)})};
Kfa=function(a){return new Promise(function(b){var c=g.hh("SCRIPT");if(a){var d=g.nd(a,6);d=null===d||void 0===d?null:Uca(d)}else d=null;c.textContent=d instanceof jg&&d.constructor===jg?d.j:"type_error:SafeScript";Efa(c);(g.$g("HEAD")[0]||document.documentElement).appendChild(c);g.oh(c);b()})};
hj=function(a){g.I.call(this,a)};
ij=function(a){g.I.call(this,a)};
jj=function(a){g.I.call(this,a)};
Lfa=function(a,b,c){this.client=a;this.kh=b;this.j=c};
Mfa=function(a){var b=Ffa().u,c,d,e,f,h;return g.z(function(l){if(1==l.j)return c=new hj,xd(c,1,a.kh,""),b&&xd(c,2,b,""),d=a.j(),g.x(l,a.client.create(c,d),2);e=l.u;f=Uc(vd(e,2));if(f.length){var m=l.return;var n=new Uint8Array(f.length);for(var p=0;p<f.length;p++)n[p]=f[p]+97;if(g.C.TextDecoder)n=(new TextDecoder).decode(n);else if(8192>=n.length)n=String.fromCharCode.apply(null,n);else{p="";for(var q=0;q<n.length;q+=8192)p+=String.fromCharCode.apply(null,Array.prototype.slice.call(n,q,q+8192));
n=p}n=Xd(Wi,n);return m.call(l,n)}h=Ed(e,Wi,1);if(!h)throw Error("Missing field");return l.return(h)})};
Ofa=function(a,b){var c,d;return g.z(function(e){c=a.j();var f=new ij;f=xd(f,1,a.kh,"");d=xd(f,2,b,"");f=e.return;var h=a.client;h=kj(h.j,h.u+"/$rpc/google.internal.waa.v1.Waa/GenerateIT",d,c||{},Nfa);return f.call(e,h)})};
Pfa=function(a){this.j=a};
lj=function(a){g.I.call(this,a)};
mj=function(a,b,c){this.j=a;this.B=b;this.u=c};
nj=function(a,b,c){c=void 0===c?{}:c;this.h4=a;this.j=c;this.u=b};
oj=function(a,b,c,d,e){this.name=a;this.methodType="unary";this.requestType=b;this.responseType=c;this.j=d;this.u=e};
Qfa=function(a,b,c){c=void 0===c?{}:c;return new mj(b,a,c)};
pj=function(a){g.I.call(this,a)};
qj=function(a){g.I.call(this,a)};
rj=function(a){g.I.call(this,a)};
sj=function(a){g.I.call(this,a,-1,Rfa)};
tj=function(a,b){this.J=a.P_;this.S=b;this.j=a.xhr;this.B=[];this.D=[];this.I=[];this.C=[];this.u=[];this.J&&Sfa(this)};
Vfa=function(a,b){g.Nf(a.j,"complete",function(){if(Ei(a.j)){var c=g.Fi(a.j);if(b&&"text/plain"===a.j.getResponseHeader("Content-Type")){if(!atob)throw Error("Cannot decode Base64 response");c=atob(c)}try{var d=a.S(c)}catch(f){uj(a,new Qi(13,"Error when deserializing response data; error: "+f+(", response: "+c)));return}c=nfa(a.j.getStatus());vj(a,wj(a));0==c?Tfa(a,d):uj(a,new Qi(c,"Xhr succeeded but the status code is not 200"))}else{d=g.Fi(a.j);var e={};d?(e=Ufa(a,d),d=e.code,c=e.details,e=e.metadata):
(d=2,c="Rpc failed due to xhr error. error code: "+a.j.u+", error: "+a.j.getLastError());vj(a,wj(a));uj(a,new Qi(d,c,e))}})};
Sfa=function(a){a.J.Mo("data",function(b){if("1"in b){var c=b["1"];try{var d=a.S(c)}catch(e){uj(a,new Qi(13,"Error when deserializing response data; error: "+e+(", response: "+c)))}d&&Tfa(a,d)}if("2"in b)for(b=Ufa(a,b["2"]),c=0;c<a.I.length;c++)a.I[c](b)});
a.J.Mo("end",function(){vj(a,wj(a));for(var b=0;b<a.C.length;b++)a.C[b]()});
a.J.Mo("error",function(){if(0!=a.u.length){var b=a.j.u;0!==b||Ei(a.j)||(b=6);var c=-1;switch(b){case 0:var d=2;break;case 7:d=10;break;case 8:d=4;break;case 6:c=a.j.getStatus();d=nfa(c);break;default:d=14}vj(a,wj(a));b=Aea(b)+", error: "+a.j.getLastError();-1!=c&&(b+=", http status code: "+c);uj(a,new Qi(d,b))}})};
wj=function(a){var b={},c=g.Vea(a.j);Object.keys(c).forEach(function(d){b[d]=c[d]});
return b};
Ufa=function(a,b){var c=2,d={};try{var e=Xd(sj,b);c=Ld(e,1);var f=e.getMessage();Fd(e,rj,3).length&&(d["grpc-web-status-details-bin"]=b)}catch(h){a.j&&404===a.j.getStatus()?(c=5,f="Not Found: "+String(a.j.qa)):(c=14,f="Unable to parse RpcStatus: "+h)}return{code:c,details:f,metadata:d}};
xj=function(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)};
Tfa=function(a,b){for(var c=0;c<a.B.length;c++)a.B[c](b)};
vj=function(a,b){for(var c=0;c<a.D.length;c++)a.D[c](b)};
uj=function(a,b){for(var c=0;c<a.u.length;c++)a.u[c](b)};
g.yj=function(a){this.I=a.q6||null;this.D=a.KS||!1;this.u=void 0};
zj=function(a,b){g.Uf.call(this);this.Aa=a;this.J=b;this.I=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=this.responseXML=null;this.Z=new Headers;this.u=null;this.qa="GET";this.ea="";this.j=!1;this.S=this.C=this.D=null};
Wfa=function(a){a.C.read().then(a.iZ.bind(a)).catch(a.RC.bind(a))};
Bj=function(a){a.readyState=4;a.D=null;a.C=null;a.S=null;Aj(a)};
Aj=function(a){a.onreadystatechange&&a.onreadystatechange.call(a)};
Xfa=function(a){if(a.ek&&"function"==typeof a.ek)return a.ek();if("undefined"!==typeof Map&&a instanceof Map||"undefined"!==typeof Set&&a instanceof Set)return Array.from(a.values());if("string"===typeof a)return a.split("");if(g.La(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return qf(a)};
Yfa=function(a){if(a.jo&&"function"==typeof a.jo)return a.jo();if(!a.ek||"function"!=typeof a.ek){if("undefined"!==typeof Map&&a instanceof Map)return Array.from(a.keys());if(!("undefined"!==typeof Set&&a instanceof Set)){if(g.La(a)||"string"===typeof a){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return g.rf(a)}}};
g.Cj=function(a,b,c){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,c);else if(g.La(a)||"string"===typeof a)Array.prototype.forEach.call(a,b,c);else for(var d=Yfa(a),e=Xfa(a),f=e.length,h=0;h<f;h++)b.call(c,e[h],d&&d[h],a)};
g.Dj=function(a){this.j=this.S=this.C="";this.B=null;this.D=this.J="";this.I=!1;var b;a instanceof g.Dj?(this.I=a.I,g.Ej(this,a.C),this.S=a.S,g.Fj(this,a.j),g.Gj(this,a.B),this.J=a.getPath(),Hj(this,a.u.clone()),this.D=a.D):a&&(b=String(a).match(ii))?(this.I=!1,g.Ej(this,b[1]||"",!0),this.S=Ij(b[2]||""),g.Fj(this,b[3]||"",!0),g.Gj(this,b[4]),this.J=Ij(b[5]||"",!0),Hj(this,b[6]||"",!0),this.D=Ij(b[7]||"")):(this.I=!1,this.u=new Jj(null,this.I))};
g.Ej=function(a,b,c){a.C=c?Ij(b,!0):b;a.C&&(a.C=a.C.replace(/:$/,""))};
g.Fj=function(a,b,c){a.j=c?Ij(b,!0):b};
g.Gj=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.B=b}else a.B=null};
Hj=function(a,b,c){b instanceof Jj?(a.u=b,Zfa(a.u,a.I)):(c||(b=Kj(b,$fa)),a.u=new Jj(b,a.I))};
g.Lj=function(a,b,c){a.u.set(b,c)};
g.Mj=function(a){return a instanceof g.Dj?a.clone():new g.Dj(a)};
Ij=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""};
Kj=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,aga),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
aga=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};
Jj=function(a,b){this.u=this.j=null;this.B=a||null;this.C=!!b};
Nj=function(a){a.j||(a.j=new Map,a.u=0,a.B&&ri(a.B,function(b,c){a.add(Sg(b),c)}))};
cga=function(a,b){Nj(a);b=Oj(a,b);return a.j.has(b)};
g.dga=function(a,b,c){a.remove(b);0<c.length&&(a.B=null,a.j.set(Oj(a,b),g.bc(c)),a.u=a.u+c.length)};
Oj=function(a,b){b=String(b);a.C&&(b=b.toLowerCase());return b};
Zfa=function(a,b){b&&!a.C&&(Nj(a),a.B=null,a.j.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(this.remove(d),g.dga(this,e,c))},a));
a.C=b};
g.ega=function(a){var b="";g.lf(a,function(c,d){b+=d;b+=":";b+=c;b+="\r\n"});
return b};
g.Pj=function(a,b,c){if(g.vf(c))return a;c=g.ega(c);if("string"===typeof a)return xi(a,g.Rg(b),c);g.Lj(a,b,c);return a};
g.Qj=function(a){g.J.call(this);this.u=a;this.j={}};
fga=function(a,b,c,d,e,f){if(Array.isArray(c))for(var h=0;h<c.length;h++)fga(a,b,c[h],d,e,f);else{b=Mf(b,c,d||a.handleEvent,e,f||a.u||a);if(!b)return a;a.j[b.key]=b}return a};
g.Rj=function(a){g.lf(a.j,function(b,c){this.j.hasOwnProperty(c)&&Rf(b)},a);
a.j={}};
gga=function(){this.B=!0;this.u=0;this.j=""};
hga=function(a,b,c){a.B=!1;throw Error("The stream is broken @"+a.u+". Error: "+c+". With input:\n"+b);};
Sj=function(){this.I=null;this.J=[];this.C=this.u=this.B=this.j=this.Z=0;this.D=null;this.S=0};
Tj=function(a,b,c,d){a.j=3;a.I="The stream is broken @"+a.Z+"/"+c+". Error: "+d+". With input:\n"+b;throw Error(a.I);};
Uj=function(){this.j=null;this.u=0;this.B=new gga;this.C=new Sj};
iga=function(a,b,c){a.j="The stream is broken @"+a.u+". Error: "+c+". With input:\n"+b;throw Error(a.j);};
Vj=function(a){return"\r"==a||"\n"==a||" "==a||"\t"==a};
Wj=function(a){this.Z=null;this.I=[];this.C="";this.qa=[];this.B=this.u=0;this.J=!1;this.S=0;this.Aa=/[\\"]/g;this.j=this.D=0;this.ea=!(!a||!a.jY)};
Xj=function(a,b,c){a.D=3;a.Z="The stream is broken @"+a.B+"/"+c+". With input:\n"+b;throw Error(a.Z);};
Yj=function(){this.D=this.B=null;this.u=this.j=0;this.C=[];this.I=!1};
jga=function(a){var b=g.Hi(a,"Content-Type");if(!b)return null;b=b.toLowerCase();return b.startsWith("application/json")?b.startsWith("application/json+protobuf")?new Yj:new Wj:b.startsWith("application/x-protobuf")?(a=g.Hi(a,"Content-Transfer-Encoding"))?"base64"==a.toLowerCase()?new Uj:null:new Sj:null};
Zj=function(a){this.j=a;this.u=null;this.C=this.B=0;this.Z=!1;this.D=this.J=this.I=null;this.S=new g.Qj(this);this.S.Ra(this.j,"readystatechange",this.ea)};
ak=function(a,b){a.C!=b&&(a.C=b,a.J&&a.J())};
bk=function(a){g.Rj(a.S);if(a.j){var b=a.j;a.j=null;b.abort();b.dispose()}};
kga=function(a){this.B=a;a=(0,g.Pa)(this.S0,this);this.B.D=a;a=(0,g.Pa)(this.Q2,this);this.B.J=a;this.u={};this.j={}};
lga=function(a,b){for(var c={},d=0;d<a.length;c={bF:c.bF},d++)c.bF=a[d],b.forEach(function(e){return function(f){try{f(e.bF)}catch(h){}}}(c))};
ck=function(a,b){var c=a.u[b];c&&c.forEach(function(d){try{d()}catch(e){}});
(c=a.j[b])&&c.forEach(function(d){d()});
a.j[b]=[]};
mga=function(){var a={format:"jspb"};a=void 0===a?{}:a;this.D=a.q6a||g.Ga("suppressCorsPreflight",a)||!1;this.u=a.withCredentials||g.Ga("withCredentials",a)||!1;this.C=a.p6a||[];this.I=a.s6a||[];this.j=a.v6a;this.B=a.t6a||!1};
kj=function(a,b,c,d,e){var f=b.substr(0,b.length-e.name.length);return nga(function(h){return new oga(function(l,m){var n={},p=pga(a,h,f);p.Mo("error",function(q){return m(q)});
p.Mo("metadata",function(q){n=q});
p.Mo("data",function(q){var u=n;u=void 0===u?{}:u;l(new nj(q,h.GC(),u))})})},a.I).call(a,Qfa(e,c,d)).then(function(h){return h.h4})};
pga=function(a,b,c){var d=b.GC(),e=b.getMetadata(),f=qga(a,!0);a=rga(a,e,f,c+d.getName());c=sga(f,d.u,!1);Vfa(c,"base64"==e["X-Goog-Encode-Response-If-Executable"]);b=d.j(b.j);f.send(a,"POST",b);return c};
qga=function(a,b){b=a.B&&!b;return a.j||b?new g.Ai(new g.yj({q6:a.j,KS:b})):new g.Ai};
rga=function(a,b,c,d){b["Content-Type"]="application/json+protobuf";b["X-User-Agent"]="grpc-web-javascript/0.1";var e="Authorization"in b?(e=b.Authorization)?!!{SAPISIDHASH:!0,APISIDHASH:!0}[e.split(" ")[0]]:!1:!1;if(e||a.u)c.J=!0;if(a.D)d=g.Pj(d,"$httpHeaders",b);else for(var f in b)c.headers.set(f,b[f]);return d};
sga=function(a,b,c){if(c)if(a.isActive(),!g.Ac||g.wc(10)){c=new Zj(a);var d=new kga(c)}else d=null;return new tj({xhr:a,P_:d},b)};
nga=function(a,b){var c=a;b.forEach(function(d){var e=c;c=function(f){return d.intercept(f,e)}});
return c};
dk=function(){this.j=new mga;this.u="https://jnn-pa.googleapis.com".replace(/\/+$/,"")};
fk=function(a){function b(){c-=d;c-=e;c^=e>>>13;d-=e;d-=c;d^=c<<8;e-=c;e-=d;e^=d>>>13;c-=d;c-=e;c^=e>>>12;d-=e;d-=c;d^=c<<16;e-=c;e-=d;e^=d>>>5;c-=d;c-=e;c^=e>>>3;d-=e;d-=c;d^=c<<10;e-=c;e-=d;e^=d>>>15}
a=tga(a);for(var c=2654435769,d=2654435769,e=314159265,f=a.length,h=f,l=0;12<=h;h-=12,l+=12)c+=ek(a,l),d+=ek(a,l+4),e+=ek(a,l+8),b();e+=f;switch(h){case 11:e+=a[l+10]<<24;case 10:e+=a[l+9]<<16;case 9:e+=a[l+8]<<8;case 8:d+=a[l+7]<<24;case 7:d+=a[l+6]<<16;case 6:d+=a[l+5]<<8;case 5:d+=a[l+4];case 4:c+=a[l+3]<<24;case 3:c+=a[l+2]<<16;case 2:c+=a[l+1]<<8;case 1:c+=a[l+0]}b();return uga.toString(e)};
tga=function(a){for(var b=[],c=0;c<a.length;c++)b.push(a.charCodeAt(c));return b};
ek=function(a,b){return a[b+0]+(a[b+1]<<8)+(a[b+2]<<16)+(a[b+3]<<24)};
vga=function(a){var b=new dk,c={"X-Goog-Api-Key":"AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw"};return new Lfa(b,a,function(){return c})};
wga=function(a){var b=vga(a.kh);return new gk(Object.assign({},{pC:b},a))};
hk=function(a,b){var c=Error.call(this);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.code=a;if(b instanceof Error){this.message=b.message;var d;this.stack=null!=(d=b.stack)?d:""}else this.message=String(b),this.stack="";Object.setPrototypeOf(this,hk.prototype)};
ik=function(){g.J.apply(this,arguments);this.B=new g.Xi};
xga=function(a,b){jk(b).then(function(){a.B.resolve()})};
kk=function(a,b,c,d,e){ik.call(this);this.logger=a;this.C=c;this.I=d;this.u="m";this.D=0;g.M(this,b);xga(this,e);this.j=new Ue};
lk=function(a,b){ik.call(this);this.j=a;this.u="f";xga(this,b)};
mk=function(a){ik.call(this);this.u="e";if(a instanceof hk){var b=a.code+":"+a.message+":"+a.stack;a=a.code+":_"+fk(a.message)+":_"+fk(a.stack)}else b=a.message+":"+a.stack,a="_"+fk(a.message)+":_"+fk(a.stack||"");this.j=new Uint8Array(g.ab(("WE:"+b).substring(0,2048)));this.C=new Uint8Array(g.ab(("WE:"+a).substring(0,2048)))};
jk=function(a){return new Promise(function(b){return void setTimeout(b,a)})};
nk=function(a,b){return Promise.race([a,jk(12E4).then(b)])};
gk=function(a){this.j=void 0;this.u=new g.Xi;this.pC=a.pC;this.cR=a.cR;this.onError=a.onError;this.logger=a.d6a?new Ti:new Ui(a.kh);var b=new Si(this.logger,"r");this.ready().finally(function(){return void b.done()});
yga(this)};
zga=function(a,b,c){var d=window.webpocb;if(!d)throw new hk(4,Error("PMD:Undefined"));d=d(Uc(vd(b,1)));return new kk(a.logger,c,d,ud(b,3,0),1E3*ud(b,2,0))};
Aga=function(a){var b,c,d,e,f,h,l,m,n,p,q,u,w,y,A,B;return g.z(function(D){switch(D.j){case 1:b=void 0,c=a.j?6E4:1E3,d=new g.ai(c,6E5,.25,2),e=1;case 2:if(!(2>=e)){D.Ma(4);break}g.pa(D,5);return g.x(D,nk(a.logger.XI("c",e,Mfa(a.pC)),function(){return Promise.reject(new hk(10,"JVZ:Timeout"))}),7);
case 7:return f=D.u,h=new Si(a.logger,"b"),g.x(D,Hfa(f),8);case 8:return l=new Yi({challenge:f}),g.x(D,nk(l.snapshot({}),function(){return Promise.reject(new hk(15,"MDA:Timeout"))}),9);
case 9:return m=D.u,h.done(),g.x(D,nk(a.logger.XI("g",e,Ofa(a.pC,m)),function(){return Promise.reject(new hk(10,"BWB:Timeout"))}),10);
case 10:n=D.u;p=new Si(a.logger,"i");if(ud(n,3,0))var G=zga(a,n,l);else l.dispose(),G=new lk(Uc(vd(n,1)),1E3*ud(n,2,0));q=G;p.done();w=u=void 0;null==(w=(u=a).cR)||w.call(u,Uc(vd(n,1)));return D.return(q);case 5:y=g.ua(D);b=y instanceof hk?y:y instanceof Qi?new hk(11,y):new hk(12,y);a.logger.Dz(b.code);B=A=void 0;null==(B=(A=a).onError)||B.call(A,b);a:{if(y instanceof Qi)switch(y.code){case 2:case 13:case 14:case 4:break;default:G=!1;break a}G=!0}if(!G)throw b;return g.x(D,jk(d.getValue()),11);case 11:g.bi(d);
case 3:e++;D.Ma(2);break;case 4:throw b;}})};
yga=function(a){var b,c,d,e;g.z(function(f){switch(f.j){case 1:return b=void 0,g.pa(f,4),g.x(f,Aga(a),6);case 6:b=f.u;g.ra(f,5);break;case 4:if(c=g.ua(f),d=c instanceof Error?c:Error(String(c)),a.j){a.logger.Dz(13);f.Ma(0);break}else a.logger.Dz(14),b=new mk(d);case 5:return e=void 0,null==(e=a.j)||e.dispose(),a.j=b,a.u.resolve(),g.x(f,a.j.B.promise,1)}})};
Bga=function(a){a=a.url;var b=/[?&]dsh=1(&|$)/.test(a);this.B=!b&&/[?&]ae=1(&|$)/.test(a);this.C=!b&&/[?&]ae=2(&|$)/.test(a);if((this.j=/[?&]adurl=([^&]*)/.exec(a))&&this.j[1]){try{var c=decodeURIComponent(this.j[1])}catch(d){c=null}this.u=c}};
Cga=function(a,b,c,d){var e=window,f=c?"//pagead2.googlesyndication.com/bg/"+g.Tg(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=Zg(c).createElement("SCRIPT");e.type="text/javascript";e.async=!0;a=Zca(g.ig("//tpc.googlesyndication.com/sodar/%{path}"),{path:g.Tg(a)+".js"});g.bj(e,a);c.getElementsByTagName("head")[0].appendChild(e)};
Dga=function(a){var b={};g.qc(a,function(c){var d=c.event,e=b[d];b.hasOwnProperty(d)?null!==e&&(c.equals(e)||(b[d]=null)):b[d]=c});
Paa(a,function(c){return null===b[c.event]})};
ok=function(){this.Nd=0;this.j=!1;this.u=-1;this.Js=!1;this.Zi=0};
pk=function(){this.wd=null;this.j=!1};
qk=function(a){pk.call(this);this.u=a};
rk=function(){pk.call(this)};
sk=function(){pk.call(this)};
tk=function(){this.j={};this.u=!0;this.B={}};
uk=function(a,b,c){a.j[b]||(a.j[b]=new qk(c));return a.j[b]};
Ega=function(a){a.j.queryid||(a.j.queryid=new sk)};
Fga=function(a,b){a.j[b]||(a.j[b]=new rk);return a.j[b]};
vk=function(a,b,c){(a=a.j[b])&&a.setValue(c)};
wk=function(a,b){if(g.sf(a.B,b))return a.B[b];if(a=a.j[b])return a.getValue()};
xk=function(a){var b={},c=g.mf(a.j,function(d){return d.j});
g.lf(c,function(d,e){d=void 0!==a.B[e]?String(a.B[e]):d.j&&null!==d.wd?String(d.wd):"";0<d.length&&(b[e]=d)},a);
return b};
Gga=function(a){a=xk(a);var b=[];g.lf(a,function(c,d){d in Object.prototype||"undefined"!=typeof c&&b.push([d,":",c].join(""))});
return b};
Iga=function(a){uk(a,"od",Hga);uk(a,"opac",yk).j=!0;uk(a,"sbeos",yk).j=!0;uk(a,"prf",yk).j=!0;uk(a,"mwt",yk).j=!0;uk(a,"iogeo",yk)};
Jga=function(){this.j=this.oq=null};
zk=function(){};
Bk=function(){if(!Ak())throw Error();};
Ak=function(){return!(!Ck||!Ck.performance)};
Dk=function(a){return a?a.passive&&Kga()?a:a.capture||!1:!1};
Ek=function(a,b,c,d){return a.addEventListener?(a.addEventListener(b,c,Dk(d)),!0):!1};
Fk=function(a){return a.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[a.visibilityState||a.webkitVisibilityState||a.mozVisibilityState||""]||0};
Lga=function(){};
Mga=function(){return ob?ob.mobile:!Gk()&&(tb("iPod")||tb("iPhone")||tb("Android")||tb("IEMobile"))};
Gk=function(){return ob?!ob.mobile&&(tb("iPad")||tb("Android")||tb("Silk")):tb("iPad")||tb("Android")&&!tb("Mobile")||tb("Silk")};
Hk=function(a){try{return!!a&&null!=a.location.href&&tc(a,"foo")}catch(b){return!1}};
Ik=function(a,b){if(a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b(a[c],c,a)};
Oga=function(){var a=[];Ik(Nga,function(b){a.push(b)});
return a};
Pga=function(a){var b,c;return null!=(c=null==(b=/https?:\/\/[^\/]+/.exec(a))?void 0:b[0])?c:""};
Sga=function(){var a=Qga("IFRAME"),b={};g.qc(Rga(),function(c){a.sandbox&&a.sandbox.supports&&a.sandbox.supports(c)&&(b[c]=!0)});
return b};
Qga=function(a,b){b=void 0===b?document:b;return b.createElement(String(a).toLowerCase())};
Tga=function(a){for(var b=a;a&&a!=a.parent;)a=a.parent,Hk(a)&&(b=a);return b};
Xga=function(a){a=a||Jk();for(var b=new Uga(g.C.location.href,!1),c=null,d=a.length-1,e=d;0<=e;--e){var f=a[e];!c&&Vga.test(f.url)&&(c=f);if(f.url&&!f.GI){b=f;break}}e=null;f=a.length&&a[d].url;0!=b.depth&&f&&(e=a[d]);return new Wga(b,e,c)};
Jk=function(){var a=g.C,b=[],c=null;do{var d=a;if(Hk(d)){var e=d.location.href;c=d.document&&d.document.referrer||null}else e=c,c=null;b.push(new Uga(e||""));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.C;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.GI=!0);return b};
Wga=function(a,b,c){this.j=a;this.u=b;this.B=c};
Uga=function(a,b){this.url=a;this.GI=!!b;this.depth=null};
Kk=function(){this.B="&";this.u={};this.C=0;this.j=[]};
Lk=function(a,b){var c={};c[a]=b;return[c]};
Yga=function(a,b,c,d,e){var f=[];Ik(a,function(h,l){(h=Mk(h,b,c,d,e))&&f.push(l+"="+h)});
return f.join(b)};
Mk=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(Mk(a[h],b,c,d+1,e));return f.join(c[d])}}else if("object"==typeof a)return e=e||0,2>e?encodeURIComponent(Yga(a,b,c,d,e+1)):"...";return encodeURIComponent(String(a))};
Zga=function(a){var b=1,c;for(c in a.u)b=c.length>b?c.length:b;return 3997-b-a.B.length-1};
Nk=function(a,b){this.j=a;this.depth=b};
aha=function(){function a(l,m){return null==l?m:l}
var b=Jk(),c=Math.max(b.length-1,0),d=Xga(b);b=d.j;var e=d.u,f=d.B,h=[];f&&h.push(new Nk([f.url,f.GI?2:0],a(f.depth,1)));e&&e!=f&&h.push(new Nk([e.url,2],0));b.url&&b!=f&&h.push(new Nk([b.url,0],a(b.depth,c)));d=g.Ok(h,function(l,m){return h.slice(0,h.length-m)});
!b.url||(f||e)&&b!=f||(e=Pga(b.url))&&d.push([new Nk([e,1],a(b.depth,c))]);d.push([]);return g.Ok(d,function(l){return $ga(c,l)})};
$ga=function(a,b){g.Td(b,function(e){return 0<=e.depth});
var c=Pk(b,function(e,f){return Math.max(e,f.depth)},-1),d=Uaa(c+2);
d[0]=a;g.qc(b,function(e){return d[e.depth+1]=e.j});
return d};
bha=function(){var a=void 0===a?aha():a;return a.map(function(b){return Mk(b)})};
cha=function(a){Ck.google_image_requests||(Ck.google_image_requests=[]);var b=Qga("IMG",Ck.document);b.src=a;Ck.google_image_requests.push(b)};
Qk=function(a){var b="Vf";if(a.Vf&&a.hasOwnProperty(b))return a.Vf;var c=new a;a.Vf=c;a.hasOwnProperty(b);return c};
Rk=function(){this.u=new Lga;this.j=Ak()?new Bk:new zk};
dha=function(){Sk();var a=Ck.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&"function"===typeof Ck.setInterval&&"function"===typeof Ck.clearInterval&&"function"===typeof Ck.setTimeout&&"function"===typeof Ck.clearTimeout)};
eha=function(){Sk();return bha()};
fha=function(){};
Sk=function(){return Qk(fha).getContext()};
Tk=function(a){g.I.call(this,a)};
gha=function(a){this.B=a;this.j=-1;this.u=this.C=0};
Uk=function(a,b){return function(){var c=g.za.apply(0,arguments);if(-1<a.j)return b.apply(null,g.t(c));try{return a.j=a.B.j.now(),b.apply(null,g.t(c))}finally{a.C+=a.B.j.now()-a.j,a.j=-1,a.u+=1}}};
hha=function(a,b){this.u=a;this.B=b;this.j=new gha(a)};
iha=function(){};
mha=function(){this.B=void 0;this.u=this.I=0;this.D=-1;this.featureSet=new tk;uk(this.featureSet,"mv",jha).j=!0;uk(this.featureSet,"omid",yk);uk(this.featureSet,"epoh",yk).j=!0;uk(this.featureSet,"epph",yk).j=!0;uk(this.featureSet,"umt",yk).j=!0;uk(this.featureSet,"phel",yk).j=!0;uk(this.featureSet,"phell",yk).j=!0;uk(this.featureSet,"oseid",kha).j=!0;Fga(this.featureSet,"sloi").j=!0;Fga(this.featureSet,"ima_tt").j=!0;uk(this.featureSet,"mm",Vk);uk(this.featureSet,"ovms",lha).j=!0;uk(this.featureSet,
"xdi",yk).j=!0;uk(this.featureSet,"amp",yk).j=!0;uk(this.featureSet,"prf",yk).j=!0;uk(this.featureSet,"gtx",yk).j=!0;uk(this.featureSet,"mvp_lv",yk).j=!0;uk(this.featureSet,"ssmol",yk).j=!0;this.j=new hha(Sk(),this.featureSet);this.C=!1;this.flags=new iha};
Zk=function(){return Qk(mha)};
nha=function(a,b,c,d){if(Math.random()<(d||a.j))try{if(c instanceof Kk)var e=c;else e=new Kk,Ik(c,function(h,l){var m=e,n=m.C++;h=Lk(l,h);m.j.push(n);m.u[n]=h});
var f=e.ye(a.u,"pagead2.googlesyndication.com","/pagead/gen_204?id="+b+"&");f&&(Sk(),cha(f))}catch(h){}};
oha=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};
pha=function(){var a=void 0===a?g.C:a;return(a=a.performance)&&a.now&&a.timing?Math.floor(a.now()+a.timing.navigationStart):g.Ra()};
qha=function(){var a=void 0===a?g.C:a;return(a=a.performance)&&a.now?a.now():null};
rha=function(a,b,c){this.label=a;this.type=b;this.value=c;this.duration=0;this.uniqueId=Math.random();this.taskId=this.slotId=void 0};
al=function(){var a=window;this.events=[];this.u=a||g.C;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.j=$k()||(null!=b?b:1>Math.random())};
sha=function(a){a&&bl&&$k()&&(bl.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),bl.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))};
tha=function(){var a=cl;this.j=dl;this.KO="jserror";this.WK=!0;this.zG=null;this.u=this.ZI;this.xc=void 0===a?null:a};
uha=function(a,b,c){var d=el;return Uk(Zk().j.j,function(){try{if(d.xc&&d.xc.j){var e=d.xc.start(a.toString(),3);var f=b();d.xc.end(e)}else f=b()}catch(l){var h=d.WK;try{sha(e),h=d.u(a,new fl(gl(l)),void 0,c)}catch(m){d.ZI(217,m)}if(!h)throw l;}return f})()};
hl=function(a,b,c,d){return Uk(Zk().j.j,function(){var e=g.za.apply(0,arguments);return uha(a,function(){return b.apply(c,e)},d)})};
gl=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};
fl=function(a){oha.call(this,Error(a),{message:a})};
vha=function(){Ck&&"undefined"!=typeof Ck.google_measure_js_timing&&(Ck.google_measure_js_timing||cl.disable())};
wha=function(a){el.zG=function(b){g.qc(a,function(c){c(b)})}};
xha=function(a,b){return uha(a,b)};
il=function(a,b){return hl(a,b)};
jl=function(a,b,c,d){el.ZI(a,b,c,d)};
kl=function(){return Date.now()-yha};
zha=function(){var a=Zk().B,b=0<=ll?kl()-ll:-1,c=ml?kl()-nl:-1,d=0<=ol?kl()-ol:-1;if(947190542==a)return 100;if(79463069==a)return 200;a=[2E3,4E3];var e=[250,500,1E3];jl(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};
pl=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};
ql=function(a){return a.right-a.left};
rl=function(a,b){return a==b?!0:a&&b?a.top==b.top&&a.right==b.right&&a.bottom==b.bottom&&a.left==b.left:!1};
sl=function(a,b,c){b instanceof g.Ig?(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};
tl=function(a,b,c){var d=new pl(0,0,0,0);this.time=a;this.volume=null;this.B=b;this.j=d;this.u=c};
ul=function(a,b,c,d,e,f,h,l){this.C=a;this.S=b;this.B=c;this.I=d;this.j=e;this.D=f;this.u=h;this.J=l};
Bha=function(a){var b=a!==a.top,c=a.top===Tga(a),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),Bca(Aha,function(h){return"function"===typeof f[h]})||(e=1));
return{zl:f,compatibility:e,P4:d}};
Cha=function(){var a=window.document;return a&&"function"===typeof a.elementFromPoint};
Dha=function(a,b,c){a&&null!==b&&b!=b.top&&(b=b.top);try{return(void 0===c?0:c)?(new g.Kg(b.innerWidth,b.innerHeight)).round():Cda(b||window).round()}catch(d){return new g.Kg(-12245933,-12245933)}};
vl=function(a,b,c){try{a&&(b=b.top);var d=Dha(a,b,c),e=d.height,f=d.width;if(-12245933===f)return new pl(f,f,f,f);var h=Eda(Zg(b.document).j),l=h.x,m=h.y;return new pl(m,l+f,m+e,l)}catch(n){return new pl(-12245933,-12245933,-12245933,-12245933)}};
g.wl=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};
xl=function(a,b){return a==b?!0:a&&b?a.left==b.left&&a.width==b.width&&a.top==b.top&&a.height==b.height:!1};
g.zl=function(a,b,c){if("string"===typeof b)(b=yl(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=yl(c,d);f&&(c.style[f]=e)}};
yl=function(a,b){var c=Eha[b];if(!c){var d=vda(b);c=d;void 0===a.style[d]&&(d=(g.gf?"Webkit":Al?"Moz":g.Ac?"ms":null)+xda(d),void 0!==a.style[d]&&(c=d));Eha[b]=c}return c};
g.Bl=function(a,b){var c=a.style[vda(b)];return"undefined"!==typeof c?c:a.style[yl(a,b)]||""};
Cl=function(a,b){var c=Yg(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""};
Dl=function(a,b){return Cl(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]};
g.Fl=function(a,b,c){if(b instanceof g.Ig){var d=b.x;b=b.y}else d=b,b=c;a.style.left=g.El(d,!1);a.style.top=g.El(b,!1)};
Gl=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}};
Fha=function(a){if(g.Ac&&!g.wc(8))return a.offsetParent;var b=Yg(a),c=Dl(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=Dl(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.Hl=function(a){var b=Yg(a),c=new g.Ig(0,0);var d=b?Yg(b):document;d=!g.Ac||g.wc(9)||"CSS1Compat"==Zg(d).j.compatMode?d.documentElement:d.body;if(a==d)return c;a=Gl(a);b=Eda(Zg(b).j);c.x=a.left+b.x;c.y=a.top+b.y;return c};
Hha=function(a,b){var c=new g.Ig(0,0),d=eh(Yg(a));if(!tc(d,"parent"))return c;do{var e=d==b?g.Hl(a):Gha(a);c.x+=e.x;c.y+=e.y}while(d&&d!=b&&d!=d.parent&&(a=d.frameElement)&&(d=d.parent));return c};
g.Il=function(a,b){a=Iha(a);b=Iha(b);return new g.Ig(a.x-b.x,a.y-b.y)};
Gha=function(a){a=Gl(a);return new g.Ig(a.left,a.top)};
Iha=function(a){if(1==a.nodeType)return Gha(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.Ig(a.clientX,a.clientY)};
g.Jl=function(a,b,c){if(b instanceof g.Kg)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");a.style.width=g.El(b,!0);a.style.height=g.El(c,!0)};
g.El=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a};
g.Kl=function(a){var b=Jha;if("none"!=Dl(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};
Jha=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.gf&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=Gl(a),new g.Kg(a.right-a.left,a.bottom-a.top)):new g.Kg(b,c)};
g.Ll=function(a,b){a.style.display=b?"":"none"};
Ml=function(a,b){b=Math.pow(10,b);return Math.floor(a*b)/b};
Kha=function(a){return new pl(a.top,a.right,a.bottom,a.left)};
Lha=function(a){var b=a.top||0,c=a.left||0;return new pl(b,c+(a.width||0),b+(a.height||0),c)};
Nl=function(a){return null!=a&&0<=a&&1>=a};
Mha=function(){var a=g.nb();return a?Ol("Android TV;AppleTV;Apple TV;GoogleTV;HbbTV;NetCast.TV;Opera TV;POV_TV;SMART-TV;SmartTV;TV Store;AmazonWebAppPlatform;MiBOX".split(";"),function(b){return gb(a,b)})||gb(a,"OMI/")&&!gb(a,"XiaoMi/")?!0:gb(a,"Presto")&&gb(a,"Linux")&&!gb(a,"X11")&&!gb(a,"Android")&&!gb(a,"Mobi"):!1};
Nha=function(){this.B=!Hk(Ck.top);this.isMobileDevice=Gk()||Mga();var a=Jk();this.domain=0<a.length&&null!=a[a.length-1]&&null!=a[a.length-1].url?g.pi(a[a.length-1].url)||"":"";this.j=new pl(0,0,0,0);this.C=new g.Kg(0,0);this.D=new g.Kg(0,0);this.J=new pl(0,0,0,0);this.I=0;this.S=!1;this.u=!(!Ck||!Bha(Ck).zl);this.update(Ck)};
Oha=function(a,b){b&&b.screen&&(a.C=new g.Kg(b.screen.width,b.screen.height))};
Pha=function(a,b){var c=a.j?new g.Kg(ql(a.j),a.j.getHeight()):new g.Kg(0,0);b=void 0===b?Ck:b;null!==b&&b!=b.top&&(b=b.top);var d=0,e=0;try{var f=b.document,h=f.body,l=f.documentElement;if("CSS1Compat"==f.compatMode&&l.scrollHeight)d=l.scrollHeight!=c.height?l.scrollHeight:l.offsetHeight,e=l.scrollWidth!=c.width?l.scrollWidth:l.offsetWidth;else{var m=l.scrollHeight,n=l.scrollWidth,p=l.offsetHeight,q=l.offsetWidth;l.clientHeight!=p&&(m=h.scrollHeight,n=h.scrollWidth,p=h.offsetHeight,q=h.offsetWidth);
m>c.height?m>p?(d=m,e=n):(d=p,e=q):m<p?(d=m,e=n):(d=p,e=q)}var u=new g.Kg(e,d)}catch(w){u=new g.Kg(-12245933,-12245933)}a.D=u};
Rl=function(){var a=Pl();if(0<a.I||a.S)return!0;a=Sk().u.isVisible();var b=0===Fk(Ql);return a||b};
Pl=function(){return Qk(Nha)};
Sl=function(a){this.B=a;this.u=0;this.j=null};
Tl=function(a,b,c){this.B=a;this.Qa=void 0===c?"na":c;this.D=[];this.isInitialized=!1;this.C=new tl(-1,!0,this);this.j=this;this.S=b;this.ea=this.Z=!1;this.Ba="uk";this.ya=!1;this.I=!0};
Ul=function(a,b){g.Sb(a.D,b)||(a.D.push(b),b.Yv(a.j),b.aq(a.C),b.An()&&(a.Z=!0))};
Qha=function(a){a=a.j;a.PM();a.OM();var b=Pl();b.J=vl(!1,a.B,b.isMobileDevice);Pha(Pl(),a.B);a.C.j=a.jP()};
Rha=function(a){a.Z=a.D.length?Ol(a.D,function(b){return b.An()}):!1};
Sha=function(a){var b=g.bc(a.D);g.qc(b,function(c){c.aq(a.C)})};
Vl=function(a){var b=g.bc(a.D);g.qc(b,function(c){c.Yv(a.j)});
a.j!=a||Sha(a)};
Wl=function(a,b,c,d){this.element=a;this.j=new pl(0,0,0,0);this.C=new pl(0,0,0,0);this.u=b;this.featureSet=c;this.qa=d;this.ea=!1;this.timestamp=-1;this.J=new ul(b.C,this.element,this.j,new pl(0,0,0,0),0,0,kl(),0)};
Xl=function(a){this.D=!1;this.j=a;this.C=function(){}};
Tha=function(a,b,c){this.u=void 0===c?0:c;this.j=a;this.wd=null==b?"":b};
Uha=function(a){switch(Math.trunc(a.u)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}};
Vha=function(a,b){return a.u<b.u?!0:a.u>b.u?!1:a.j<b.j?!0:a.j>b.j?!1:typeof a.wd<typeof b.wd?!0:typeof a.wd>typeof b.wd?!1:a.wd<b.wd};
Yl=function(){this.B=0;this.j=[];this.u=!1};
Wha=function(a,b){(0,g.qc)(b.j,function(c){a.add(c.j,c.wd,Uha(c))})};
Zl=function(a,b){var c=void 0===c?0:c;var d=void 0===d?!0:d;Ik(b,function(e,f){d&&void 0===e||a.add(f,e,c)});
return a};
$l=function(a){var b=Xha;a.u&&(g.lc(a.j,function(c,d){return Vha(d,c)?1:Vha(c,d)?-1:0}),a.u=!1);
return Pk(a.j,function(c,d){d=b(d);return""+c+(""!=c&&""!=d?"&":"")+d},"")};
Xha=function(a){var b=a.j;a=a.wd;return""===a?b:"boolean"===typeof a?a?b:"":Array.isArray(a)?0===a.length?b:b+"="+a.join():b+"="+(g.Sb(["mtos","tos","p"],b)?a:encodeURIComponent(a))};
Yha=function(a){var b=void 0===b?!0:b;this.j=new Yl;void 0!==a&&Wha(this.j,a);b&&this.j.add("v",am,-16)};
Zha=function(a){var b=[],c=[];g.lf(a,function(d,e){if(!(e in Object.prototype)&&"undefined"!=typeof d)switch(Array.isArray(d)&&(d=d.join(",")),d=[e,"=",d].join(""),e){case "adk":case "r":case "tt":case "error":case "mtos":case "tos":case "p":case "bs":b.unshift(d);break;case "req":case "url":case "referrer":case "iframe_loc":c.push(d);break;default:b.push(d)}});
return b.concat(c)};
$ha=function(){if(am&&"unreleased"!==am)return am};
aia=function(a){var b=void 0===b?4E3:b;a=a.toString();if(!/&v=[^&]+/.test(a)){var c=$ha();a=c?a+"&v="+encodeURIComponent(c):a}b=a=a.substring(0,b);Sk();cha(b)};
bia=function(){this.j=0};
cia=function(a,b,c){(0,g.qc)(a.B,function(d){var e=a.j;if(!d.j&&(d.B(b,c),d.C())){d.j=!0;var f=d.u(),h=new Yl;h.add("id","av-js");h.add("type","verif");h.add("vtype",d.D);d=Qk(bia);h.add("i",d.j++);h.add("adk",e);Zl(h,f);e=new Yha(h);aia(e)}})};
bm=function(){this.u=this.B=this.C=this.j=0};
cm=function(a){this.u=a=void 0===a?dia:a;this.j=g.Ok(this.u,function(){return new bm})};
dm=function(a,b){return eia(a,function(c){return c.j},void 0===b?!0:b)};
fm=function(a,b){return em(a,b,function(c){return c.j})};
fia=function(a,b){return eia(a,function(c){return c.B},void 0===b?!0:b)};
gm=function(a,b){return em(a,b,function(c){return c.B})};
hm=function(a,b){return em(a,b,function(c){return c.u})};
gia=function(a){g.qc(a.j,function(b){b.u=0})};
eia=function(a,b,c){a=g.Ok(a.j,function(d){return b(d)});
return c?a:hia(a)};
em=function(a,b,c){var d=g.Rb(a.u,function(e){return b<=e});
return-1==d?0:c(a.j[d])};
hia=function(a){return g.Ok(a,function(b,c,d){return 0<c?d[c]-d[c-1]:d[c]})};
im=function(){this.u=new cm;this.Qa=new bm;this.qa=this.J=-1;this.eb=1E3;this.kb=new cm([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.Ba=this.Aa=-1};
jm=function(a,b){return fia(a.u,void 0===b?!0:b)};
km=function(a,b,c,d){var e=void 0===e?!1:e;c=hl(d,c);Ek(a,b,c,{capture:e})};
mm=function(a,b){b=lm(b);return 0===b?0:lm(a)/b};
lm=function(a){return Math.max(a.bottom-a.top,0)*Math.max(a.right-a.left,0)};
iia=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.ph(a)||a){var d=Yg(a),e=d&&eh(d),f=e&&e.frameElement;f&&(a=f)}}catch(h){break}}return!1};
jia=function(a,b,c){if(!a||!b)return!1;b=sl(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;Hk(window.top)&&window.top&&window.top.document&&(window=window.top);if(!Cha())return!1;a=window.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=Yg(c))&&b.defaultView&&b.defaultView.frameElement)&&iia(b,a);var d=a===c;a=!d&&a&&th(a,function(e){return e===c});
return!(b||d||a)};
kia=function(a,b,c,d){return Pl().B?!1:0>=ql(a)||0>=a.getHeight()?!0:c&&d?xha(208,function(){return jia(a,b,c)}):!1};
nm=function(a,b,c){g.J.call(this);this.position=lia.clone();this.tD=this.JC();this.WI=-2;this.v5=Date.now();this.XS=-1;this.lastUpdateTime=b;this.lD=null;this.By=!1;this.BD=null;this.opacity=-1;this.requestSource=c;this.K5=!1;this.cJ=function(){};
this.mT=function(){};
this.Ci=new Jga;this.Ci.oq=a;this.Ci.j=a;this.iq=!1;this.Wr={mJ:null,kJ:null};this.DS=!0;this.FA=null;this.cw=this.ZZ=!1;Zk().I++;this.Ig=this.VH();this.US=-1;this.Ie=null;this.hasCompleted=this.WZ=!1;this.featureSet=new tk;Iga(this.featureSet);mia(this);1==this.requestSource?vk(this.featureSet,"od",1):vk(this.featureSet,"od",0)};
mia=function(a){a=a.Ci.oq;var b;if(b=a&&a.getAttribute)b=/-[a-z]/.test("googleAvInapp")?!1:nia&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+wda()):!!a.getAttribute("data-"+wda());b&&(Pl().u=!0)};
om=function(a,b){b!=a.cw&&(a.cw=b,a=Pl(),b?a.I++:0<a.I&&a.I--)};
oia=function(a,b){if(a.Ie){if(b.getName()===a.Ie.getName())return;a.Ie.dispose();a.Ie=null}b=b.create(a.Ci.j,a.featureSet,a.An());if(b=null!=b&&b.JF()?b:null)a.Ie=b};
pia=function(a,b,c){if(!a.lD||-1==a.lastUpdateTime||-1===b.u||-1===a.lD.u)return 0;a=b.u-a.lD.u;return a>c?0:a};
qia=function(a,b,c){if(a.Ie){a.Ie.Ap();var d=a.Ie.J,e=d.C,f=e.j;if(null!=d.I){var h=d.B;a.BD=new g.Ig(h.left-f.left,h.top-f.top)}f=a.BE()?Math.max(d.j,d.D):d.j;h={};null!==e.volume&&(h.volume=e.volume);e=a.fP(d);a.lD=d;a.Ja(f,b,c,!1,h,e,d.J)}};
ria=function(a){if(a.By&&a.FA){var b=1==wk(a.featureSet,"od"),c=Pl().j,d=a.FA,e=a.Ie?a.Ie.getName():"ns",f=new g.Kg(ql(c),c.getHeight());c=a.BE();a={b5:e,BD:a.BD,n6:f,BE:c,Nd:a.Ig.Nd,c6:b};if(b=d.u){b.Ap();e=b.J;f=e.C.j;var h=null,l=null;null!=e.I&&f&&(h=e.B,h=new g.Ig(h.left-f.left,h.top-f.top),l=new g.Kg(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.j,e.D):e.j;c={b5:b.getName(),BD:h,n6:l,BE:c,c6:!1,Nd:e}}else c=null;c&&cia(d,a,c)}};
sia=function(a,b,c){b&&(a.cJ=b);c&&(a.mT=c)};
g.pm=function(){};
g.qm=function(a){return{value:a,done:!1}};
tia=function(){this.C=this.j=this.B=this.u=this.D=0};
uia=function(a){var b={};var c=g.Ra()-a.D;b=(b.ptlt=c,b);(c=a.u)&&(b.pnk=c);(c=a.B)&&(b.pnc=c);(c=a.C)&&(b.pnmm=c);(a=a.j)&&(b.pns=a);return b};
via=function(){ok.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1};
rm=function(a){return Nl(a.volume)&&0<a.volume};
sm=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 wia(f,b,c)}};
tm=function(a,b){return function(c){return b(c)?c[a]:void 0}};
xia=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}};
wia=function(a,b,c){return void 0===c||c?g.um(a,function(d,e){return g.Sb(b,e)}):g.Ok(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)})};
vm=function(){this.u=this.j=""};
yia=function(){};
zm=function(a,b){var c={};if(void 0!==a)if(null!=b)for(var d in b){var e=b[d];d in Object.prototype||null!=e&&(c[d]="function"===typeof e?e(a):a[e])}else g.If(c,a);return $l(Zl(new Yl,c))};
zia=function(){var a={};this.u=(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.j={};for(var b in this.u)0<this.u[b][1]&&(this.j[b]=0);this.B=0};
Am=function(a,b){var c=a.u[b],d=c[1];a.B+=c[0];0<d&&0==a.j[b]&&(a.j[b]=1)};
Aia=function(a){var b=g.rf(a.u),c=0,d;for(d in a.j)g.Sb(b,d)&&1==a.j[d]&&(c+=a.u[d][1],a.j[d]=2);return c};
Bia=function(a){var b=0,c;for(c in a.j){var d=a.j[c];if(1==d||2==d)b+=a.u[c][1]}return b};
Bm=function(){this.j=this.u=0};
Cm=function(){im.call(this);this.B=new bm;this.La=this.Z=this.ya=0;this.S=-1;this.ob=new bm;this.D=new bm;this.j=new cm;this.I=this.C=-1;this.ea=new bm;this.eb=2E3;this.Ia=new Bm;this.Ya=new Bm;this.Wa=new Bm};
Dm=function(a,b,c){var d=a.La;ml||c||-1==a.S||(d+=b-a.S);return d};
Cia=function(){this.u=!1};
Em=function(a,b){this.u=!1;this.B=a;this.Z=b;this.C=0};
Fm=function(a,b){Em.call(this,a,b);this.J=[]};
Gm=function(a,b,c,d){Wl.call(this,a,b,c,d)};
Hm=function(a,b,c){Wl.call(this,null,a,b,c);this.I=a.isActive();this.D=0};
Im=function(a){return[a.top,a.left,a.bottom,a.right]};
Jm=function(a,b,c,d,e,f,h){f=void 0===f?null:f;h=void 0===h?[]:h;nm.call(this,b,c,d);this.bK=e;this.nH=0;this.Lg={};this.Ag=new zia;this.DT={};this.hh="";this.Ya=null;this.Gb=!1;this.j=[];this.Xs=f;this.I=h;this.C=null;this.B=-1;this.La=this.Z=void 0;this.qa=this.ea=0;this.Ba=-1;this.kb=this.eb=!1;this.ya=this.S=this.u=this.ox=this.yb=0;new cm;this.Ia=this.Qa=0;this.Wa=-1;this.Ch=0;this.J=g.Yf;this.Aa=[this.JC()];this.Lb=2;this.Wt={};this.Wt.pause="p";this.Wt.resume="r";this.Wt.skip="s";this.Wt.mute=
"m";this.Wt.unmute="um";this.Wt.exitfullscreen="ef";this.D=null;this.ob=!1};
Km=function(a){a.hasCompleted=!0;0!=a.Ch&&(a.Ch=3)};
Lm=function(a){return void 0===a?a:Number(a)?Ml(a,3):0};
Mm=function(a,b){return a.Aa[null!=b&&b<a.Aa.length?b:a.Aa.length-1]};
Dia=function(a){var b=!!wk(Zk().featureSet,"umt");return a.Z||!b&&!a.La?0:1};
Eia=function(a,b){a.Eo()?b=0:-1==a.lastUpdateTime?b=0:(b-=a.lastUpdateTime,b=b>Math.max(1E4,a.B/3)?0:b);var c=a.J(a)||{};c=void 0!==c.currentTime?c.currentTime:a.ea;var d=c-a.ea,e=0;0<=d?(a.qa+=b,a.Ia+=Math.max(b-d,0),e=Math.min(d,a.qa)):a.Qa+=Math.abs(d);0!=d&&(a.qa=0);-1==a.Wa&&0<d&&(a.Wa=0<=ol?kl()-ol:-1);a.ea=c;return e};
Fia=function(a,b){Ol(a.I,function(c){return c.B==b.B})||a.I.push(b)};
Gia=function(a){var b=fm(a.Sh().j,1);return Nm(a,b)};
Nm=function(a,b,c){return 15E3<=b?!0:a.eb?(void 0===c?0:c)?!0:0<a.B?b>=a.B/2:0<a.Ba?b>=a.Ba:!1:!1};
Hia=function(a){var b=Ml(a.Ig.Nd,2),c=a.Ag.B,d=a.Ig,e=Mm(a),f=Lm(e.C),h=Lm(e.I),l=Lm(d.volume),m=Ml(e.J,2),n=Ml(e.qa,2),p=Ml(d.Nd,2),q=Ml(e.Aa,2),u=Ml(e.Ba,2);d=Ml(d.Zi,2);a=a.Wp().clone();a.round();e=jm(e,!1);return{m6:b,pz:c,uD:f,qD:h,Yx:l,vD:m,rD:n,Nd:p,wD:q,sD:u,Zi:d,position:a,zD:e}};
Jia=function(a,b){Iia(a.j,b,function(){return{m6:0,pz:void 0,uD:-1,qD:-1,Yx:-1,vD:-1,rD:-1,Nd:-1,wD:-1,sD:-1,Zi:-1,position:void 0,zD:[]}});
a.j[b]=Hia(a)};
Iia=function(a,b,c){for(var d=a.length;d<b+1;)a.push(c()),d++};
Pm=function(a,b,c){var d=a.DT[b];if(null!=d)return d;d=Kia(a,b);var e=uf(Om,function(f){return f==b});
a=Lia(a,d,d,c,Mia[Om[e]]);"fully_viewable_audible_half_duration_impression"==b&&(a.std="csm");return a};
Qm=function(a,b,c){var d=[b];if(a!=b||c!=b)d.unshift(a),d.push(c);return d};
Lia=function(a,b,c,d,e){if(a.iq)return{"if":0,vs:0};var f=a.Wp().clone();f.round();var h=Pl(),l=Zk(),m=a.Sh(),n=a.Ie?a.Ie.getName():"ns",p={};p["if"]=h.B?1:void 0;p.sdk=a.C?a.C:void 0;p.t=a.v5;p.p=[f.top,f.left,f.bottom,f.right];p.tos=dm(m.u,!1);p.mtos=jm(m);p.mcvt=m.Qa.B;p.ps=void 0;f=Dm(m,kl(),a.Eo());p.vht=f;p.mut=m.ob.B;p.a=Lm(a.Ig.volume);p.mv=Lm(m.I);p.fs=a.cw?1:0;p.ft=m.ea.j;p.at=m.D.j;p.as=0<m.C?1:0;p.atos=dm(m.j);p.ssb=dm(m.kb,!1);p.amtos=fia(m.j,!1);p.uac=a.yb;p.vpt=m.B.j;"nio"==n&&(p.nio=
1,p.avms="nio");p.gmm="4";p.gdr=Nm(a,m.B.j,!0)?1:0;p.efpf=a.Lb;if("gsv"==n||"nis"==n)n=a.Ie,0<n.D&&(p.nnut=n.D);p.tcm=Dia(a);p.nmt=a.Qa;p.bt=a.Ia;p.pst=a.Wa;p.vpaid=a.Z;p.dur=a.B;p.vmtime=a.ea;p.is=a.Ag.B;1<=a.j.length&&(p.i0=a.j[0].pz,p.a0=[a.j[0].Yx],p.c0=[a.j[0].Nd],p.ss0=[a.j[0].Zi],n=a.j[0].position,p.p0=n?Im(n):void 0);2<=a.j.length&&(p.i1=a.j[1].pz,p.a1=Qm(a.j[1].uD,a.j[1].Yx,a.j[1].qD),p.c1=Qm(a.j[1].vD,a.j[1].Nd,a.j[1].rD),p.ss1=Qm(a.j[1].wD,a.j[1].Zi,a.j[1].sD),n=a.j[1].position,p.p1=n?
Im(n):void 0,p.mtos1=a.j[1].zD);3<=a.j.length&&(p.i2=a.j[2].pz,p.a2=Qm(a.j[2].uD,a.j[2].Yx,a.j[2].qD),p.c2=Qm(a.j[2].vD,a.j[2].Nd,a.j[2].rD),p.ss2=Qm(a.j[2].wD,a.j[2].Zi,a.j[2].sD),n=a.j[2].position,p.p2=n?Im(n):void 0,p.mtos2=a.j[2].zD);4<=a.j.length&&(p.i3=a.j[3].pz,p.a3=Qm(a.j[3].uD,a.j[3].Yx,a.j[3].qD),p.c3=Qm(a.j[3].vD,a.j[3].Nd,a.j[3].rD),p.ss3=Qm(a.j[3].wD,a.j[3].Zi,a.j[3].sD),n=a.j[3].position,p.p3=n?Im(n):void 0,p.mtos3=a.j[3].zD);p.cs=Bia(a.Ag);b&&(p.ic=Aia(a.Ag),p.dvpt=m.B.u,p.dvs=hm(m.u,
.5),p.dfvs=hm(m.u,1),p.davs=hm(m.j,.5),p.dafvs=hm(m.j,1),c&&(m.B.u=0,gia(m.u),gia(m.j)),a.Fo()&&(p.dtos=m.ya,p.dav=m.Z,p.dtoss=a.nH+1,c&&(m.ya=0,m.Z=0,a.nH++)),p.dat=m.D.u,p.dft=m.ea.u,c&&(m.D.u=0,m.ea.u=0));p.ps=[h.D.width,h.D.height];p.bs=[ql(h.j),h.j.getHeight()];p.scs=[h.C.width,h.C.height];p.dom=h.domain;a.ox&&(p.vds=a.ox);if(0<a.I.length||a.Xs)b=g.bc(a.I),a.Xs&&b.push(a.Xs),p.pings=g.Ok(b,function(q){return q.toString()});
b=g.Ok(g.um(a.I,function(q){return q.I()}),function(q){return q.getId()});
Qaa(b);p.ces=b;a.u&&(p.vmer=a.u);a.S&&(p.vmmk=a.S);a.ya&&(p.vmiec=a.ya);p.avms=a.Ie?a.Ie.getName():"ns";a.Ie&&g.If(p,a.Ie.Tp());d?(p.c=Ml(a.Ig.Nd,2),p.ss=Ml(a.Ig.Zi,2)):p.tth=kl()-Nia;p.mc=Ml(m.qa,2);p.nc=Ml(m.J,2);p.mv=Lm(m.I);p.nv=Lm(m.C);p.lte=Ml(a.WI,2);d=Mm(a,e);jm(m);p.qmtos=jm(d);p.qnc=Ml(d.J,2);p.qmv=Lm(d.I);p.qnv=Lm(d.C);p.qas=0<d.C?1:0;p.qi=a.hh;p.avms||(p.avms="geo");p.psm=m.Ia.j;p.psv=m.Ia.getValue();p.psfv=m.Ya.getValue();p.psa=m.Wa.getValue();l=Gga(l.featureSet);l.length&&(p.veid=l);
a.D&&g.If(p,uia(a.D));p.avas=a.AC();p.vs=a.lP();return p};
Kia=function(a,b){if(g.Sb(Oia,b))return!0;var c=a.Lg[b];return void 0!==c?(a.Lg[b]=!0,!c):!1};
Qia=function(){this.j={};var a=eh();Rm(this,a,document);var b=Pia();try{if("1"==b){for(var c=a.parent;c!=a.top;c=c.parent)Rm(this,c,c.document);Rm(this,a.top,a.top.document)}}catch(d){}};
Pia=function(){var a=document.documentElement;try{if(!Hk(eh().top))return"2";var b=[],c=eh(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"}};
Rm=function(a,b,c){km(c,"mousedown",function(){return Ria(a)},301);
km(b,"scroll",function(){return Sia(a)},302);
km(c,"touchmove",function(){return Tia(a)},303);
km(c,"mousemove",function(){return Uia(a)},304);
km(c,"keydown",function(){return Via(a)},305)};
Ria=function(a){g.lf(a.j,function(b){1E5<b.B||++b.B})};
Sia=function(a){g.lf(a.j,function(b){1E5<b.j||++b.j})};
Tia=function(a){g.lf(a.j,function(b){1E5<b.j||++b.j})};
Via=function(a){g.lf(a.j,function(b){1E5<b.u||++b.u})};
Uia=function(a){g.lf(a.j,function(b){1E5<b.C||++b.C})};
Wia=function(){this.j=[];this.u=[]};
Sm=function(a,b){return g.Pb(a.j,function(c){return c.hh==b})};
Xia=function(a,b){return b?g.Pb(a.j,function(c){return c.Ci.oq==b}):null};
Yia=function(a,b){return g.Pb(a.u,function(c){return 2==c.Mm()&&c.hh==b})};
Um=function(){var a=Tm;return 0==a.j.length?a.u:0==a.u.length?a.j:g.ac(a.u,a.j)};
Zia=function(a,b){a=1==b.Mm()?a.j:a.u;var c=Lb(a,function(d){return d==b});
return-1!=c?(a.splice(c,1),b.Ie&&b.Ie.Lx(),b.dispose(),!0):!1};
$ia=function(a){var b=Tm;if(Zia(b,a)){switch(a.Mm()){case 0:var c=function(){return null};
case 2:c=function(){return Yia(b,a.hh)};
break;case 1:c=function(){return Sm(b,a.hh)}}for(var d=c();d;d=c())Zia(b,d)}};
aja=function(a,b){var c=Tm;a=g.um(a,(void 0===b?0:b)?function(d){return!Sm(c,d.hh)}:function(d){return!Xia(c,d.Ci.oq)});
c.j.push.apply(c.j,g.t(a))};
bja=function(a){var b=[];g.qc(a,function(c){Ol(Tm.j,function(d){return d.Ci.oq===c.Ci.oq&&d.hh===c.hh})||(Tm.j.push(c),b.push(c))})};
Vm=function(){this.j=this.u=null};
cja=function(a,b){function c(d,e){b(d,e)}
if(null==a.u)return!1;a.j=g.Pb(a.u,function(d){return null!=d&&d.QM()});
a.j&&(a.j.init(c)?Qha(a.j.j):b(a.j.j.Nv(),a.j));return null!=a.j};
Wm=function(a){a=dja(a);Xl.call(this,a.length?a[a.length-1]:new Tl(Ck,0));this.B=a;this.u=null};
dja=function(a){if(!a.length)return[];a=(0,g.um)(a,function(c){return null!=c&&c.Kx()});
for(var b=1;b<a.length;b++)Ul(a[b-1],a[b]);return a};
Xm=function(a,b,c,d){Wl.call(this,a,b,c,d);this.Z=this.S=this.D=this.I=this.B=null};
Ym=function(a){return a.B&&a.B.takeRecords?a.B.takeRecords():[]};
fja=function(a){if(!a.element)return!1;var b=a.element,c=a.u.j.B,d=Zk().j.j;a.B=new c.IntersectionObserver(Uk(d,function(e){return Zm(a,e)}),eja);
d=Uk(d,function(){a.B.unobserve(b);a.B.observe(b);Zm(a,Ym(a))});
c.ResizeObserver?(a.I=new c.ResizeObserver(d),a.I.observe(b)):c.MutationObserver&&(a.D=new g.C.MutationObserver(d),a.D.observe(b,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));a.B.observe(b);Zm(a,Ym(a));return!0};
Zm=function(a,b){try{if(b.length){a.S||(a.S=kl());var c=gja(b),d=Hha(a.element,a.u.j.B),e=d.x,f=d.y;a.j=new pl(Math.round(f),Math.round(e)+c.boundingClientRect.width,Math.round(f)+c.boundingClientRect.height,Math.round(e));var h=Kha(c.intersectionRect);a.C=sl(h,a.j.left-h.left,a.j.top-h.top)}}catch(l){a.Lx(),jl(299,l)}};
gja=function(a){return Pk(a,function(b,c){return b.time>c.time?b:c},a[0])};
$m=function(a){a=void 0===a?Ck:a;Xl.call(this,new Tl(a,2))};
an=function(){var a=hja();Tl.call(this,Ck.top,a,"geo")};
hja=function(){Zk();var a=Pl();return a.B||a.u?0:2};
ija=function(){};
bn=function(){this.done=!1;this.j={gX:0,KN:0,f6a:0,FO:0,vI:-1,cY:0,bY:0,dY:0,Y4:0};this.D=null;this.I=!1;this.B=null;this.J=0;this.u=new Sl(this)};
dn=function(){var a=cn;a.I||(a.I=!0,jja(a,function(){return a.C.apply(a,g.t(g.za.apply(0,arguments)))}),a.C())};
kja=function(){Qk(ija);var a=Qk(Vm);null!=a.j&&a.j.j?Qha(a.j.j):Pl().update(Ck)};
en=function(a,b,c){if(!a.done&&(a.u.cancel(),0!=b.length)){a.B=null;try{kja();var d=kl();Zk().D=d;if(null!=Qk(Vm).j)for(var e=0;e<b.length;e++)qia(b[e],d,c);for(d=0;d<b.length;d++)ria(b[d]);++a.j.FO}finally{c?g.qc(b,function(f){f.Ig.Nd=0}):a.u.schedule()}}};
jja=function(a,b){if(!a.D){b=hl(142,b);Sk();var c;Ql.visibilityState?c="visibilitychange":Ql.mozVisibilityState?c="mozvisibilitychange":Ql.webkitVisibilityState&&(c="webkitvisibilitychange");c&&Ek(Ql,c,b,{capture:!1})&&(a.D=b)}};
lja=function(){var a=Qk(Vm);if(null!=a.j){var b=Um(),c=a.j;g.qc(b,function(d){return oia(d,c)})}};
mja=function(a,b){a=a.J;ml&&(a+=b-nl);return a};
oja=function(a){a=void 0===a?function(){return{}}:a;
el.KO="av-js";dl.j=.01;wha([function(b){var c=Zk(),d={};d=(d.bin=c.u,d.type="error",d);c=xk(c.featureSet);if(!cn.B){var e=cn,f=Ck.document,h=0<=ll?kl()-ll:-1,l=kl();-1==e.j.vI&&(h=l);var m=Pl(),n=Zk(),p=xk(n.featureSet),q=Um();try{if(0<q.length){var u=m.j;u&&(p.bs=[ql(u),u.getHeight()]);var w=m.D;w&&(p.ps=[w.width,w.height]);Ck.screen&&(p.scs=[Ck.screen.width,Ck.screen.height])}else p.url=encodeURIComponent(Ck.location.href.substring(0,512)),f.referrer&&(p.referrer=encodeURIComponent(f.referrer.substring(0,
512)));p.tt=h;p.pt=ll;p.bin=n.u;void 0!==Ck.google_osd_load_pub_page_exp&&(p.olpp=Ck.google_osd_load_pub_page_exp);p.deb=[1,e.j.gX,e.j.KN,e.j.FO,e.j.vI,0,e.u.u,e.j.cY,e.j.bY,e.j.dY,e.j.Y4,-1].join(";");p.tvt=mja(e,l);m.u&&(p.inapp=1);if(null!==Ck&&Ck!=Ck.top){0<q.length&&(p.iframe_loc=encodeURIComponent(Ck.location.href.substring(0,512)));var y=m.J;p.is=[ql(y),y.getHeight()]}}catch(A){p.error=1}cn.B=p}u=g.Gf(cn.B);w=Zk().j;1==wk(w.B,"prf")?(y=new Tk,e=w.j,f=0,-1<e.j&&(f=e.B.j.now()-e.j),y=xd(y,1,
e.C+f,0),e=w.j,y=xd(y,5,-1<e.j?e.u+1:e.u,0),y=xd(y,2,w.u.j.B(),0),y=xd(y,3,w.u.j.u(),0),w=xd(y,4,w.u.j.j(),0),y={},w=(y.pf=g.xc(g.Je(w,nja)),y)):w={};g.If(u,w);g.If(b,d,c,u,a());if(d=$ha())c={},g.If(b,(c.v=encodeURIComponent(d),c))}])};
qja=function(){var a=pja||Ck;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("&")};
fn=function(){var a="youtube.player.web_20220828_00_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20220828_00_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20220828_00_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20220828_00_RC00".match(/_(\d{8})_\d+_RC\d+$/),b;if(2==(null==(b=a)?void 0:b.length))return a[1];a="youtube.player.web_20220828_00_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var c;return 3==(null==(c=a)?void 0:c.length)?"20"+a[1]+a[2]:null};
rja=function(){return"av.default_js".includes("ima_html5_sdk")?{Am:"ima",Cm:null}:"av.default_js".includes("ima_native_sdk")?{Am:"nima",Cm:null}:"av.default_js".includes("admob-native-video-javascript")?{Am:"an",Cm:null}:"youtube.player.web_20220828_00_RC00".includes("cast_js_sdk")?{Am:"cast",Cm:fn()}:"youtube.player.web_20220828_00_RC00".includes("youtube.player.web")?{Am:"yw",Cm:fn()}:"youtube.player.web_20220828_00_RC00".includes("outstream_web_client")?{Am:"out",Cm:fn()}:"youtube.player.web_20220828_00_RC00".includes("drx_rewarded_web")?
{Am:"r",Cm:fn()}:"youtube.player.web_20220828_00_RC00".includes("gam_native_web_video")?{Am:"n",Cm:fn()}:"youtube.player.web_20220828_00_RC00".includes("admob_interstitial_video")?{Am:"int",Cm:fn()}:{Am:"j",Cm:null}};
jn=function(a,b){var c={sv:"934"};null!==gn&&(c.v=gn);c.cb=sja;c.nas=Tm.j.length;c.msg=a;void 0!==b&&(a=tja(b))&&(c.e=hn[a]);return c};
kn=function(a){return bb(a,"custom_metric_viewable")};
tja=function(a){var b=kn(a)?"custom_metric_viewable":a.toLowerCase();return uf(Om,function(c){return c==b})};
uja=function(){this.j=void 0;this.u=!1;this.B=0;this.C=-1;this.D="tos"};
xja=function(a){try{var b=a.split(",");return b.length>g.rf(vja).length?null:Pk(b,function(c,d){d=d.toLowerCase().split("=");if(2!=d.length||void 0===wja[d[0]]||!wja[d[0]](d[1]))throw Error("Entry ("+d[0]+", "+d[1]+") is invalid.");c[d[0]]=d[1];return c},{})}catch(c){return null}};
yja=function(a,b){if(void 0==a.j)return 0;switch(a.D){case "mtos":return a.u?gm(b.j,a.j):gm(b.u,a.j);case "tos":return a.u?fm(b.j,a.j):fm(b.u,a.j)}return 0};
ln=function(a,b,c,d){Em.call(this,b,d);this.J=a;this.S=c};
zja=function(){};
mn=function(){};
nn=function(){};
on=function(a){Em.call(this,"fully_viewable_audible_half_duration_impression",a)};
pn=function(a){this.j=a};
qn=function(a,b){Em.call(this,a,b)};
rn=function(a){Fm.call(this,"measurable_impression",a)};
sn=function(){pn.apply(this,arguments)};
tn=function(a,b,c){Hm.call(this,a,b,c)};
un=function(a){a=void 0===a?Ck:a;Xl.call(this,new Tl(a,2))};
vn=function(a,b,c){Hm.call(this,a,b,c)};
wn=function(a){a=void 0===a?Ck:a;Xl.call(this,new Tl(a,2))};
xn=function(){Tl.call(this,Ck,2,"mraid");this.Ia=0;this.qa=this.Aa=!1;this.J=null;this.u=Bha(this.B);this.C.j=new pl(0,0,0,0);this.La=!1};
yn=function(a,b,c){a.Nq("addEventListener",b,c)};
Dja=function(a){Zk().C=!!a.Nq("isViewable");yn(a,"viewableChange",Aja);"loading"===a.Nq("getState")?yn(a,"ready",Bja):Cja(a)};
Cja=function(a){"string"===typeof a.u.zl.AFMA_LIDAR?(a.Aa=!0,Eja(a)):(a.u.compatibility=3,a.J="nc",a.fail("w"))};
Eja=function(a){a.qa=!1;var b=1==wk(Zk().featureSet,"rmmt"),c=!!a.Nq("isViewable");(b?!c:1)&&Sk().setTimeout(il(524,function(){a.qa||(Fja(a),jl(540,Error()),a.J="mt",a.fail("w"))}),500);
Gja(a);yn(a,a.u.zl.AFMA_LIDAR,Hja)};
Gja=function(a){var b=1==wk(Zk().featureSet,"sneio"),c=void 0!==a.u.zl.AFMA_LIDAR_EXP_1,d=void 0!==a.u.zl.AFMA_LIDAR_EXP_2;(b=b&&d)&&(a.u.zl.AFMA_LIDAR_EXP_2=!0);c&&(a.u.zl.AFMA_LIDAR_EXP_1=!b)};
Fja=function(a){a.Nq("removeEventListener",a.u.zl.AFMA_LIDAR,Hja);a.Aa=!1};
Ija=function(a,b){if("loading"===a.Nq("getState"))return new g.Kg(-1,-1);b=a.Nq(b);if(!b)return new g.Kg(-1,-1);a=parseInt(b.width,10);b=parseInt(b.height,10);return isNaN(a)||isNaN(b)?new g.Kg(-1,-1):new g.Kg(a,b)};
Bja=function(){try{var a=Qk(xn);a.Nq("removeEventListener","ready",Bja);Cja(a)}catch(b){jl(541,b)}};
Hja=function(a,b){try{var c=Qk(xn);c.qa=!0;var d=a?new pl(a.y,a.x+a.width,a.y+a.height,a.x):new pl(0,0,0,0);var e=kl(),f=Rl();var h=new tl(e,f,c);h.j=d;h.volume=b;c.aq(h)}catch(l){jl(542,l)}};
Aja=function(a){var b=Zk(),c=Qk(xn);a&&!b.C&&(b.C=!0,c.La=!0,c.J&&c.fail("w",!0))};
zn=function(){this.isInitialized=!1;this.j=this.u=null;var a={};this.J=(a.start=this.DZ,a.firstquartile=this.yZ,a.midpoint=this.AZ,a.thirdquartile=this.EZ,a.complete=this.vZ,a.error=this.wZ,a.pause=this.aK,a.resume=this.lS,a.skip=this.CZ,a.viewable_impression=this.Nm,a.mute=this.jx,a.unmute=this.jx,a.fullscreen=this.zZ,a.exitfullscreen=this.xZ,a.fully_viewable_audible_half_duration_impression=this.Nm,a.measurable_impression=this.Nm,a.abandon=this.aK,a.engagedview=this.Nm,a.impression=this.Nm,a.creativeview=
this.Nm,a.progress=this.jx,a.custom_metric_viewable=this.Nm,a.bufferstart=this.aK,a.bufferfinish=this.lS,a.audio_measurable=this.Nm,a.audio_audible=this.Nm,a);a={};this.S=(a.overlay_resize=this.BZ,a.abandon=this.oI,a.close=this.oI,a.collapse=this.oI,a.overlay_unmeasurable_impression=function(b){return Pm(b,"overlay_unmeasurable_impression",Rl())},a.overlay_viewable_immediate_impression=function(b){return Pm(b,"overlay_viewable_immediate_impression",Rl())},a.overlay_unviewable_impression=function(b){return Pm(b,
"overlay_unviewable_impression",Rl())},a.overlay_viewable_end_of_session_impression=function(b){return Pm(b,"overlay_viewable_end_of_session_impression",Rl())},a);
Zk().u=3;Jja(this);this.B=!1};
An=function(a,b,c,d){b=a.oA(null,d,!0,b);b.C=c;aja([b],a.B);return b};
Kja=function(a,b,c){Dga(b);var d=a.j;g.qc(b,function(e){var f=g.Ok(e.criteria,function(h){var l=xja(h);if(null==l)h=null;else if(h=new uja,null!=l.visible&&(h.j=l.visible/100),null!=l.audible&&(h.u=1==l.audible),null!=l.time){var m="mtos"==l.timetype?"mtos":"tos",n=xaa(l.time,"%")?"%":"ms";l=parseInt(l.time,10);"%"==n&&(l/=100);h.setTime(l,n,m)}return h});
Ol(f,function(h){return null==h})||Fia(c,new ln(e.id,e.event,f,d))})};
Lja=function(){var a=[],b=Zk();a.push(Qk(an));wk(b.featureSet,"mvp_lv")&&a.push(Qk(xn));b=[new un,new wn];b.push(new Wm(a));b.push(new $m(Ck));return b};
Mja=function(a){if(!a.isInitialized){a.isInitialized=!0;try{var b=kl(),c=Zk(),d=Pl();ll=b;c.B=79463069;"o"!==a.u&&(pja=Tga(Ck));if(dha()){cn.j.KN=0;cn.j.vI=kl()-b;var e=Lja(),f=Qk(Vm);f.u=e;cja(f,function(){Bn()})?cn.done||(lja(),Ul(f.j.j,a),dn()):d.B?Bn():dn()}else Cn=!0}catch(h){throw Tm.reset(),h;
}}};
En=function(a){cn.u.cancel();Dn=a;cn.done=!0};
Fn=function(a){if(a.u)return a.u;var b=Qk(Vm).j;if(b)switch(b.getName()){case "nis":a.u="n";break;case "gsv":a.u="m"}a.u||(a.u="h");return a.u};
Gn=function(a,b,c){if(null==a.j)return b.ox|=4,!1;a=Nja(a.j,c,b);b.ox|=a;return 0==a};
Bn=function(){var a=[new $m(Ck)],b=Qk(Vm);b.u=a;cja(b,function(){En("i")})?cn.done||(lja(),dn()):En("i")};
Oja=function(a,b){if(!a.Gb){var c=Pm(a,"start",Rl());c=a.bK.j(c).j;var d={id:"lidarv"};d.r=b;d.sv="934";null!==gn&&(d.v=gn);ri(c,function(e,f){return d[e]="mtos"==e||"tos"==e?f:encodeURIComponent(f)});
b=qja();ri(b,function(e,f){return d[e]=encodeURIComponent(f)});
b="//pagead2.googlesyndication.com/pagead/gen_204?"+$l(Zl(new Yl,d));aia(b);a.Gb=!0}};
Hn=function(a,b,c){en(cn,[a],!Rl());Jia(a,c);4!=c&&Iia(a.Aa,c,a.JC);return Pm(a,b,Rl())};
Jja=function(a){oja(function(){var b=Pja();null!=a.u&&(b.sdk=a.u);var c=Qk(Vm);null!=c.j&&(b.avms=c.j.getName());return b})};
Qja=function(a,b,c,d){if(a.B)var e=Sm(Tm,b);else e=Xia(Tm,c),null!==e&&e.hh!==b&&(a.wy(e),e=null);e||(b=a.oA(c,kl(),!1,b),0==Tm.u.length&&(Zk().B=79463069),bja([b]),e=b,e.C=Fn(a),d&&(e.Ya=d));return e};
Rja=function(a){g.qc(Tm.j,function(b){3==b.Ch&&a.wy(b)})};
Sja=function(a,b){var c=a[b];void 0!==c&&0<c&&(a[b]=Math.floor(1E3*c))};
Pja=function(){var a=Pl(),b={},c={},d={};return Object.assign({},(b.sv="934",b),null!==gn&&(c.v=gn,c),(d["if"]=a.B?"1":"0",d.nas=String(Tm.j.length),d))};
In=function(a){Em.call(this,"audio_audible",a)};
Jn=function(a){Fm.call(this,"audio_measurable",a)};
Kn=function(){pn.apply(this,arguments)};
Ln=function(){};
Tja=function(a){this.j=a};
Nja=function(a,b,c){a=a.u();if("function"===typeof a){var d={};var e={};d=Object.assign({},null!==gn&&(d.v=gn,d),(e.sv="934",e.cb=sja,e.e=Uja(b),e));e=Pm(c,b,Rl());g.If(d,e);c.DT[b]=e;d=2==c.Mm()?Zha(d).join("&"):c.bK.j(d).j;try{return a(c.hh,d,b),0}catch(f){return 2}}else return 1};
Uja=function(a){var b=kn(a)?"custom_metric_viewable":a;a=uf(Om,function(c){return c==b});
return hn[a]};
Mn=function(){zn.call(this);this.I=null;this.D=!1;this.C="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"};
Vja=function(a,b,c){c=c.opt_configurable_tracking_events;null!=a.j&&Array.isArray(c)&&Kja(a,c,b)};
Wja=function(a,b,c){var d=Sm(Tm,b);d||(d=c.opt_nativeTime||-1,d=An(a,b,Fn(a),d),c.opt_osdId&&(d.Ya=c.opt_osdId));return d};
Xja=function(a,b,c){var d=Sm(Tm,b);d||(d=An(a,b,"n",c.opt_nativeTime||-1));return d};
Yja=function(a,b){var c=Sm(Tm,b);c||(c=An(a,b,"h",-1));return c};
Zja=function(a){Zk();switch(Fn(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};
bka=function(a,b,c,d){c=void 0===c?{}:c;var e={};g.If(e,{opt_adElement:void 0,opt_fullscreen:void 0},c);var f=a.OC(b,c);c=f?f.bK:a.gH();if(e.opt_bounds)return c.j(jn("ol",d));if(void 0!==d)if(void 0!==tja(d))if(Cn)b=jn("ue",d);else if(Mja(a),"i"==Dn)b=jn("i",d),b["if"]=0;else if(b=a.OC(b,e))if(a.B&&3==b.Ch)b="stopped";else{b:{"i"==Dn&&(b.iq=!0,a.KK());f=e.opt_fullscreen;void 0!==f&&om(b,!!f);var h;if(f=!Pl().u)(f=gb(g.nb(),"CrKey")||gb(g.nb(),"PlayStation")||gb(g.nb(),"Roku")||Mha()||gb(g.nb(),"Xbox"))||
(f=g.nb(),f=gb(f,"AppleTV")||gb(f,"Apple TV")||gb(f,"CFNetwork")||gb(f,"tvOS")),f||(f=g.nb(),f=gb(f,"sdk_google_atv_x86")||gb(f,"Android TV")),f=!f;f&&(Sk(),f=0===Fk(Ql));if(h=f){switch(b.Mm()){case 1:Oja(b,"pv");break;case 2:a.uK(b)}En("pv")}f=d.toLowerCase();if(h=!h)h=wk(Zk().featureSet,"ssmol")&&"loaded"===f?!1:g.Sb($ja,f);if(h&&0==b.Ch){"i"!=Dn&&(cn.done=!1);h=void 0!==e?e.opt_nativeTime:void 0;ol=h="number"===typeof h?h:kl();b.By=!0;var l=Rl();b.Ch=1;b.Lg={};b.Lg.start=!1;b.Lg.firstquartile=
!1;b.Lg.midpoint=!1;b.Lg.thirdquartile=!1;b.Lg.complete=!1;b.Lg.resume=!1;b.Lg.pause=!1;b.Lg.skip=!1;b.Lg.mute=!1;b.Lg.unmute=!1;b.Lg.viewable_impression=!1;b.Lg.measurable_impression=!1;b.Lg.fully_viewable_audible_half_duration_impression=!1;b.Lg.fullscreen=!1;b.Lg.exitfullscreen=!1;b.nH=0;l||(b.Sh().S=h);en(cn,[b],!l)}(h=b.Wt[f])&&Am(b.Ag,h);g.Sb(aka,f)&&b.Xs&&b.Xs.D(b,null);switch(b.Mm()){case 1:var m=kn(f)?a.J.custom_metric_viewable:a.J[f];break;case 2:m=a.S[f]}if(m&&(d=m.call(a,b,e,d),void 0!==
d)){e=jn(void 0,f);g.If(e,d);d=e;break b}d=void 0}3==b.Ch&&(a.B?b.Ie&&b.Ie.Lx():a.wy(b));b=d}else b=jn("nf",d);else b=void 0;else Cn?b=jn("ue"):f?(b=jn(),g.If(b,Lia(f,!0,!1,!1))):b=jn("nf");return"string"===typeof b?a.B&&"stopped"===b?Nn:c.j():c.j(b)};
On=function(a,b){b&&(a.C=b)};
cka=function(a){var b={};return b.viewability=a.j,b.googleViewability=a.u,b};
Pn=function(a,b,c){c=void 0===c?{}:c;a=bka(Qk(Mn),b,c,a);return cka(a)};
dka=function(a,b){b=void 0===b?!1:b;var c=Qk(Mn).OC(a,{});c?Km(c):b&&(a=Qk(Mn).oA(null,kl(),!1,a),a.Ch=3,bja([a]))};
gka=function(a){if(g.cb(g.Ug(a)))return!1;if(0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&"))return!0;try{var b=new g.Dj(a)}catch(c){return null!=g.Pb(eka,function(d){return 0<a.search(d)})}return b.D.match(fka)?!0:null!=g.Pb(eka,function(c){return null!=a.match(c)})};
g.Qn=function(a,b){return a.replace(hka,function(c,d){try{var e=g.Ef(b,d);if(null==e||null==e.toString())return c;e=e.toString();if(""==e||!g.cb(g.Ug(e)))return encodeURIComponent(e).replace(/%2C/g,",")}catch(f){}return c})};
Sn=function(a){g.Uf.call(this);var b=this;this.I=this.u=0;this.xl=null!=a?a:{Jh:function(e,f){return setTimeout(e,f)},
Zk:function(e){clearTimeout(e)}};
var c,d;this.j=null!=(d=null==(c=window.navigator)?void 0:c.onLine)?d:!0;this.C=function(){return g.z(function(e){return g.x(e,Rn(b),0)})};
window.addEventListener("offline",this.C);window.addEventListener("online",this.C);this.I||ika(this)};
jka=function(){var a=g.Tn;Sn.j||(Sn.j=new Sn(a));return Sn.j};
ika=function(a){a.I=a.xl.Jh(function(){var b;return g.z(function(c){if(1==c.j)return a.j?(null==(b=window.navigator)?0:b.onLine)?c.Ma(3):g.x(c,Rn(a),3):g.x(c,Rn(a),3);ika(a);g.na(c)})},3E4)};
Rn=function(a,b){return a.D?a.D:a.D=new Promise(function(c){var d,e,f,h;return g.z(function(l){switch(l.j){case 1:return d=window.AbortController?new window.AbortController:void 0,f=null==(e=d)?void 0:e.signal,h=!1,g.pa(l,2,3),d&&(a.u=a.xl.Jh(function(){d.abort()},b||2E4)),g.x(l,fetch("/generate_204",{method:"HEAD",
signal:f}),5);case 5:h=!0;case 3:g.gaa(l);a.D=void 0;a.u&&(a.xl.Zk(a.u),a.u=0);h!==a.j&&(a.j=h,a.j?a.dispatchEvent("networkstatus-online"):a.dispatchEvent("networkstatus-offline"));c(h);g.haa(l,0);break;case 2:g.ua(l),h=!1,l.Ma(3)}})})};
Un=function(){this.data_=[];this.j=-1};
kka=function(a){-1===a.j&&(a.j=Pk(a.data_,function(b,c,d){return c?b+Math.pow(2,d):b},0));
return a.j};
g.Vn=function(a,b,c){g.J.call(this);this.j=null;this.C=!1;this.I=a;this.D=c;this.u=b||window;this.B=(0,g.Pa)(this.AV,this)};
g.Wn=function(a){a.isActive()||a.start()};
lka=function(a){a=a.u;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null};
mka=function(a){a=a.u;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};
g.Xn=function(a,b,c){g.J.call(this);this.j=a;this.yh=b||0;this.u=c;this.B=(0,g.Pa)(this.SM,this)};
g.Yn=function(a,b){a.isActive()||a.start(b)};
g.Zn=function(a){a.stop();a.SM()};
g.$n=function(a){a.isActive()&&g.Zn(a)};
ao=function(a,b){this.j=a[g.C.Symbol.iterator]();this.u=b};
nka=function(a,b){return new ao(a,b)};
oka=function(a){return"string"==typeof a.className?a.className:a.getAttribute&&a.getAttribute("class")||""};
bo=function(a){return a.classList?a.classList:oka(a).match(/\S+/g)||[]};
g.co=function(a,b){"string"==typeof a.className?a.className=b:a.setAttribute&&a.setAttribute("class",b)};
g.eo=function(a,b){return a.classList?a.classList.contains(b):g.Sb(bo(a),b)};
g.fo=function(a,b){if(a.classList)a.classList.add(b);else if(!g.eo(a,b)){var c=oka(a);g.co(a,c+(0<c.length?" "+b:b))}};
g.go=function(a,b){if(a.classList)Array.prototype.forEach.call(b,function(e){g.fo(a,e)});
else{var c={};Array.prototype.forEach.call(bo(a),function(e){c[e]=!0});
Array.prototype.forEach.call(b,function(e){c[e]=!0});
b="";for(var d in c)b+=0<b.length?" "+d:d;g.co(a,b)}};
g.ho=function(a,b){a.classList?a.classList.remove(b):g.eo(a,b)&&g.co(a,Array.prototype.filter.call(bo(a),function(c){return c!=b}).join(" "))};
g.io=function(a,b){a.classList?Array.prototype.forEach.call(b,function(c){g.ho(a,c)}):g.co(a,Array.prototype.filter.call(bo(a),function(c){return!g.Sb(b,c)}).join(" "))};
g.jo=function(a,b,c){c?g.fo(a,b):g.ho(a,b)};
pka=function(a,b){var c=!g.eo(a,b);g.jo(a,b,c)};
no=function(a){if(a instanceof ko||a instanceof lo||a instanceof mo)return a;if("function"==typeof a.next)return new ko(function(){return a});
if("function"==typeof a[Symbol.iterator])return new ko(function(){return a[Symbol.iterator]()});
if("function"==typeof a.ij)return new ko(function(){return a.ij()});
throw Error("Not an iterator or iterable.");};
ko=function(a){this.u=a};
lo=function(a){this.u=a};
mo=function(a){ko.call(this,function(){return a});
this.B=a};
g.oo=function(a,b){this.u={};this.j=[];this.Wq=this.size=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.oo)for(c=a.jo(),d=0;d<c.length;d++)this.set(c[d],a.get(c[d]));else for(d in a)this.set(d,a[d])};
qka=function(a,b){return a===b};
qo=function(a){if(a.size!=a.j.length){for(var b=0,c=0;b<a.j.length;){var d=a.j[b];po(a.u,d)&&(a.j[c++]=d);b++}a.j.length=c}if(a.size!=a.j.length){var e={};for(c=b=0;b<a.j.length;)d=a.j[b],po(e,d)||(a.j[c++]=d,e[d]=1),b++;a.j.length=c}};
po=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
g.ro=function(){g.Uf.call(this);this.j=0;this.endTime=this.startTime=null};
rka=function(a,b){Array.isArray(b)||(b=[b]);b=b.map(function(c){return"string"===typeof c?c:c.property+" "+c.duration+"s "+c.timing+" "+c.delay+"s"});
g.zl(a,"transition",b.join(","))};
so=function(a,b,c,d,e){g.ro.call(this);this.u=a;this.I=b;this.J=c;this.D=d;this.S=Array.isArray(e)?e:[e]};
ska=function(a,b,c,d){return new so(a,b,{opacity:c},{opacity:d},{property:"opacity",duration:b,timing:"ease-in",delay:0})};
uka=function(a){a=ib(a);if(""==a)return null;var b=String(a.slice(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 tka))return null}return a};
to=function(a,b){a=g.C[a];return a&&a.prototype?(b=Object.getOwnPropertyDescriptor(a.prototype,b))&&b.get||null:null};
vka=function(a){var b=g.C.CSSStyleDeclaration;return b&&b.prototype&&b.prototype[a]||null};
wka=function(a,b,c,d){if(a)return a.apply(b,d);if(g.Ac&&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)};
Bka=function(a){if(!a)return tg;var b=document.createElement("div").style;xka(a).forEach(function(c){var d=g.gf&&c in yka?c:c.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");bb(d,"--")||bb(d,"var")||(c=wka(zka,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[c])||"",c=uka(c),null!=c&&wka(Aka,b,b.setProperty?"setProperty":"setAttribute",[d,c]))});
return qda(g.ig("Output of CSS sanitizer"),b.cssText||"")};
xka=function(a){g.La(a)?a=g.bc(a):(a=g.rf(a),g.Xb(a,"cssText"));return a};
g.vo=function(a){var b,c=b=0,d=!1;a=a.split(Cka);for(var e=0;e<a.length;e++){var f=a[e];g.uo.test(f)?(b++,c++):Dka.test(f)?d=!0:Eka.test(f)?c++:Fka.test(f)&&(d=!0)}b=0==c?d?1:0:.4<b/c?-1:1;return-1==(0==b?null:b)?"rtl":"ltr"};
g.wo=function(a,b,c,d,e,f,h,l){this.j=a;this.J=b;this.B=c;this.D=d;this.C=e;this.I=f;this.u=h;this.S=l};
g.xo=function(a,b){if(0==b)return a.j;if(1==b)return a.u;var c=g.Gg(a.j,a.B,b),d=g.Gg(a.B,a.C,b);a=g.Gg(a.C,a.u,b);c=g.Gg(c,d,b);d=g.Gg(d,a,b);return g.Gg(c,d,b)};
yo=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};
Gka=function(a,b){a=[a];for(var c=b.length-1;0<=c;--c)a.push(typeof b[c],b[c]);return a.join("\v")};
zo=function(a){return(a=a.exec(g.nb()))?a[1]:""};
Ao=function(a){return 0<=g.lb(Hka,a)};
g.Bo=function(a){g.J.call(this);this.I=1;this.B=[];this.C=0;this.j=[];this.u={};this.J=!!a};
Ika=function(a,b,c){g.Bh(function(){a.apply(b,c)})};
g.Co=function(a){this.j=a};
Do=function(a){this.j=a};
Jka=function(a){this.data=a};
Kka=function(a){return void 0===a||a instanceof Jka?a:new Jka(a)};
Eo=function(a){this.j=a};
g.Lka=function(a){var b=a.creation;a=a.expiration;return!!a&&a<g.Ra()||!!b&&b>g.Ra()};
g.Fo=function(a){this.j=a};
Mka=function(){};
Go=function(){};
Ho=function(a){this.j=a};
Io=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.j=a};
Nka=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.j=a};
Ko=function(a,b){this.u=a;this.j=null;if(g.Ac&&!g.wc(9)){Jo||(Jo=new g.oo);this.j=Jo.get(a);this.j||(b?this.j=document.getElementById(b):(this.j=document.createElement("userdata"),this.j.addBehavior("#default#userData"),document.body.appendChild(this.j)),Jo.set(a,this.j));try{this.j.load(this.u)}catch(c){this.j=null}}};
Lo=function(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return Oka[b]})};
Mo=function(a){try{a.j.save(a.u)}catch(b){throw"Storage mechanism: Quota exceeded";}};
No=function(a,b){this.u=a;this.j=b+"::"};
g.Oo=function(a){var b=new Io;return b.isAvailable()?a?new No(b,a):b:null};
Po=function(a,b){this.j=a;this.wd=b};
Qo=function(a){this.j=[];if(a)a:{if(a instanceof Qo){var b=a.jo();a=a.ek();if(0>=this.j.length){for(var c=this.j,d=0;d<b.length;d++)c.push(new Po(b[d],a[d]));break a}}else b=g.rf(a),a=qf(a);for(c=0;c<b.length;c++)Pka(this,b[c],a[c])}};
Pka=function(a,b,c){var d=a.j;d.push(new Po(b,c));b=d.length-1;a=a.j;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};
Ro=function(){Qo.apply(this,arguments)};
So=function(){};
Qka=function(){var a=g.za.apply(0,arguments);return 0===a.length?function(b){return b}:1===a.length?a[0]:a.reduce(function(b,c){return function(){return b(c.apply(null,g.t(g.za.apply(0,arguments))))}})};
Rka=function(){var a=g.za.apply(0,arguments);return function(b){return function(c,d){function e(){throw Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");}
c=b(c,d);var f={getState:c.getState,dispatch:function(h){return e.apply(null,[h].concat(g.t(g.za.apply(1,arguments))))}};
d=a.map(function(h){return h(f)});
e=Qka.apply(null,g.t(d))(c.dispatch);return Object.assign({},c,{dispatch:e})}}};
To=function(){return Math.random().toString(36).substring(7).split("").join(".")};
Ska=function(a){Object.keys(a).forEach(function(b){var c=a[b];if("undefined"===typeof c(void 0,{type:Uo}))throw Error('Reducer "'+b+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if("undefined"===typeof c(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+To()}))throw Error('Reducer "'+
b+"\" returned undefined when probed with a random type. Don't try to handle "+(Uo+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.'));})};
Tka=function(a,b,c,d){function e(){if(q)throw Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return m}
function f(w){if("function"!==typeof w)throw Error("Expected the listener to be a function.");if(q)throw Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var y=!0;p===n&&(p=n.slice());p.push(w);return function(){if(y){if(q)throw Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");
y=!1;p===n&&(p=n.slice());p.splice(p.indexOf(w),1);n=null}}}
function h(w){if("object"!==typeof w||null===w)var y=!1;else{for(y=w;null!==Object.getPrototypeOf(y);)y=Object.getPrototypeOf(y);y=Object.getPrototypeOf(w)===y}if(!y)throw Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"===typeof w.type)throw Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(q)throw Error("Reducers may not dispatch actions.");try{q=!0,m=l(m,w)}finally{q=!1}y=n=p;for(var A=0;A<y.length;A++)(0,y[A])();
return w}
if("function"===typeof b&&"function"===typeof c||"function"===typeof c&&"function"===typeof d)throw Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");"function"===typeof b&&"undefined"===typeof c&&(c=b,b=void 0);if("undefined"!==typeof c){if("function"!==typeof c)throw Error("Expected the enhancer to be a function.");return c(Tka)(a,b)}if("function"!==typeof a)throw Error("Expected the reducer to be a function.");
var l=a,m=b,n=[],p=n,q=!1;h({type:Uo});a={};var u=(a.dispatch=h,a.subscribe=f,a.getState=e,a.replaceReducer=function(w){if("function"!==typeof w)throw Error("Expected the nextReducer to be a function.");l=w;h({type:Uka});return u},a[Vka]=function(){var w={};
return w.subscribe=function(y){function A(){y.next&&y.next(e())}
if("object"!==typeof y||null===y)throw new TypeError("Expected the observer to be an object.");A();return{unsubscribe:f(A)}},w[Vka]=function(){return this},w},a);
return u};
Vo=function(a){g.I.call(this,a,-1,Wka)};
Wo=function(a){g.I.call(this,a)};
Xka=function(a){var b=a.split(""),c=[function(){for(var d=64,e=[];++d-e.length-32;)switch(d){case 58:d=96;continue;case 91:d=44;break;case 65:d=47;continue;case 46:d=153;case 123:d-=58;default:e.push(String.fromCharCode(d))}return e},
/"\(\),,[,]{\)\)/,8,6,-423596167,7,"vRn03zC","qDuI",function(d,e){e.splice(e.length,0,d)},
-408992365,"We6A",-622694117,1731762200,-1677878284,-535951125,-1396653247,"EX5YQ",1465283324,function(d,e,f,h,l,m){return e(h,l,m)},
430182214,-712210514,105289431,-1729326532,function(d,e,f){var h=e.length;f.forEach(function(l,m,n){this.push(n[m]=e[(e.indexOf(l)-e.indexOf(this[m])+m+h--)%e.length])},d.split(""))},
1468403479,1490025587,function(d,e,f,h,l,m,n){return d(l,m,n)},
1388998344,1427646216,-2116290504,function(d,e,f,h,l,m,n,p){return e(f,h,l,m,n,p)},
1811618360,b,1520694602,function(){for(var d=64,e=[];++d-e.length-32;)switch(d){case 46:d=95;default:e.push(String.fromCharCode(d));case 94:case 95:case 96:break;case 123:d-=76;case 92:case 93:continue;case 58:d=44;case 91:}return e},
function(d,e,f,h,l,m,n,p){return d(m,n,p)},
103282315,2,1934098517,null,b,1,1810185875,-147866827,b,-1185110005,function(d,e){for(d=(d%e.length+e.length)%e.length;d--;)e.unshift(e.pop())},
null,function(d,e){d=(d%e.length+e.length)%e.length;e.splice(-d).reverse().forEach(function(f){e.unshift(f)})},
1070655002,function(d,e,f,h,l){return e(f,h,l)},
"EX5YQ",105289431,null,-1604420069,-2126564831,"huVszFM",0,973609061,751058719,-2137240691,"cmeN7",function(d,e){d=(d%e.length+e.length)%e.length;var f=e[0];e[0]=e[d];e[d]=f},
"',}/;(",-1622133461,-1719458251,1087537375,-371574457,1966792510,"A3aE3",-1294735876,-855155148,function(){for(var d=64,e=[];++d-e.length-32;){switch(d){case 91:d=44;continue;case 123:d=65;break;case 65:d-=18;continue;case 58:d=96;continue;case 46:d=95}e.push(String.fromCharCode(d))}return e},
-1570547453,"unshift",1963030382,function(d,e){e=(e%d.length+d.length)%d.length;d.splice(0,1,d.splice(e,1,d[0])[0])},
-1889857474,-370522010,1202578994,922377504,-1455122645,-1761418324,"dBszAov",1810185875,function(){for(var d=64,e=[];++d-e.length-32;){switch(d){case 91:d=44;continue;case 123:d=65;break;case 65:d-=18;continue;case 58:d=96;continue;case 46:d=95}e.push(String.fromCharCode(d))}return e},
function(){for(var d=64,e=[];++d-e.length-32;){switch(d){case 58:d-=14;case 91:case 92:case 93:continue;case 123:d=47;case 94:case 95:case 96:continue;case 46:d=95}e.push(String.fromCharCode(d))}return e},
function(d,e){d=(d%e.length+e.length)%e.length;e.splice(d,1)},
"reverse",function(d){d.reverse()},
function(d){for(var e=d.length;e;)d.push(d.splice(--e,1)[0])},
3,575656929,function(d,e){e.splice(e.length,0,d)},
-827054821];c[39]=c;c[47]=c;c[53]=c;try{try{2>=c[3]?(0,c[76])(c[40],c[73]):(0,c[76])(c[47],c[77]),9>=c[2]&&(0,c[76])(c[32],c[45]),(0,c[89])(c[71]),(0,c[87])(c[283-215%Math.pow(8,5)],c[44])}catch(d){5>=c[0]&&(((0,c[90])(c[39]),(0,c[46])(c[16],c[54]),c[5])(c[55]),((0,c[76])(c[32],c[31]),c[90])(c[32]),(0,c[23])(c[74],(0,c[72])(),c[156*Math.pow(3,5)+-37868]),c[46])(c[75],c[53]),9>=c[9]&&((0,c[22])((0,c[48])(c[16],c[1]),c[20],c[27],c[25]),8)||(0,c[26])((0,c[65])(c[23]),c[52],c[16],c[19]),(7<c[13]||((0,c[2])(c[66],
(0,c[94])(c[69+Math.pow(8,1)%494],(0,c[62])(),c[8]),(0,c[24])(c[9],c[29]),(0,c[0])(c[61],c[65]),c[80])|((0,c[new Date("01/01/1970 05:46:20 +0545")/1E3])(c[8],c[41]),c[94])(c[75],c[14]),NaN))&&(0,c[31])((0,c[43])((0,c[11])((0,c[15])(c[0],c[8]),c[67],c[22]),c[66],(0,c[15])(c[91],c[17]),c[29]),c[11],(0,c[66])(c[17]),c[38],c[10],(0,c[71])(),c[50]),0<c[4]?(0,c[11])((0,c[69])(c[12],c[17]),c[69],c[48],c[8]):(0,c[11])((0,c[66])(c[22]),c[14],c[77],c[47]),4<c[38]&&(c[38]>Math.pow(2,5)+-3577- -3551||((0,c[68])(c[79],
(0,c[83])((0,c[25])(c[5],c[65]),c[56],c[7],(0,c[74])(),c[65]),((((0,c[25])(c[357-303%Math.pow(7,5)],c[Math.pow(5,1)-832- -904]),c[-5530-Math.pow(6,3)+5771])(c[52],c[65]),c[14])(c[86],c[92]),c[new Date("1970-01-01T00:00:56.000+00:00")/1E3])(c[21],(0,c[24])(),c[65]),(((0,c[83])((0,c[56])(c[89],(0,c[74])(),c[77]),c[56],c[43],(0,c[23])(),c[77]),c[79])(c[18],c[80]),c[56])(c[73],(0,c[67])(),c[77]),(0,c[51])((0,c[Math.pow(1,3)%155- -55])(c[40],(0,c[23])(),c[77]),c[25],(0,c[25])(c[57],c[72]),c[2],c[65]),
c[48],c[72]),0))&&(0,c[68])(c[79],(0,c[0])(c[60],c[77]),(0,c[51])((0,c[81])(c[55],c[44]),c[27],(0,c[79])(c[17],c[72]),c[89]),(0,c[12])((0,c[75])((0,c[12])((0,c[75])((0,c[38])(c[89],c[33]),c[55],(0,c[12])((0,c[8])(c[32],c[1]),c[39],c[85],c[23]),c[61],c[38]),c[37],c[57],c[38]),c[2],(0,c[70])(c[60],c[54]),c[75],c[18]),c[45],c[14],(0,c[11])(),c[54]),(0,c[68])(c[80],c[54]),c[58],c[75])}finally{5>=c[26]&&(0,c[95])((0,c[45])(c[16],c[Math.pow(4,3)%175+-41]),c[19],(0,c[19])((0,c[19])((0,c[31])(c[82],c[43]),
c[45],c[1],c[51]),c[17],c[161%Math.pow(8,4)-132],c[13]),c[17],c[Math.pow(1,1)-5106+5182],c[8]),2>=c[62]&&((0,c[73])(c[34],c[69]),[])||(0,c[new Date("December 31 1969 18:00:18 MDT")/1E3])(c[78])}try{(c[20]<=Math.pow(5,5)+10414+-13533||((0,c[71])(c[28],c[64]),0))&&(0,c[5])(c[64],c[67])}catch(d){(0,c[87])(c[50],c[57])}}catch(d){return"enhanced_except_oZYB3un-_w8_"+a}return b.join("")};
g.Xo=function(a){this.name=a};
Yo=function(a){g.I.call(this,a)};
Zo=function(a){g.I.call(this,a)};
$o=function(a){g.I.call(this,a)};
ap=function(a){g.I.call(this,a)};
bp=function(a){g.I.call(this,a,-1,Yka)};
cp=function(a){g.I.call(this,a,-1,Zka)};
dp=function(a){g.I.call(this,a)};
ep=function(a){g.I.call(this,a)};
fp=function(a){g.I.call(this,a)};
gp=function(a){g.I.call(this,a)};
hp=function(a){g.I.call(this,a)};
ip=function(a){g.I.call(this,a)};
jp=function(a){g.I.call(this,a)};
kp=function(a){g.I.call(this,a)};
lp=function(a){g.I.call(this,a,-1,$ka)};
mp=function(a){g.I.call(this,a,-1,ala)};
np=function(a){g.I.call(this,a)};
op=function(a){g.I.call(this,a)};
pp=function(a){g.I.call(this,a)};
qp=function(a){g.I.call(this,a)};
rp=function(a){g.I.call(this,a)};
up=function(a){g.I.call(this,a)};
vp=function(a){g.I.call(this,a,-1,bla)};
wp=function(a){g.I.call(this,a)};
xp=function(a){g.I.call(this,a)};
yp=function(a){g.I.call(this,a)};
zp=function(a){g.I.call(this,a)};
Ap=function(a){g.I.call(this,a)};
Bp=function(a){g.I.call(this,a)};
Cp=function(a){g.I.call(this,a)};
Dp=function(a){g.I.call(this,a)};
Ep=function(a){g.I.call(this,a)};
Fp=function(a){g.I.call(this,a)};
Gp=function(a){g.I.call(this,a)};
Hp=function(a){g.I.call(this,a)};
Ip=function(a){g.I.call(this,a)};
Jp=function(a){g.I.call(this,a,-1,dla)};
Kp=function(a){g.I.call(this,a)};
Lp=function(a){g.I.call(this,a)};
Mp=function(a){g.I.call(this,a)};
Np=function(a){g.I.call(this,a)};
Op=function(a){g.I.call(this,a,-1,ela)};
Pp=function(a){g.I.call(this,a)};
Qp=function(a){g.I.call(this,a)};
Rp=function(a){g.I.call(this,a)};
Sp=function(a){g.I.call(this,a)};
Tp=function(a){g.I.call(this,a)};
Up=function(a){g.I.call(this,a)};
Vp=function(a){g.I.call(this,a)};
Wp=function(a){g.I.call(this,a)};
Xp=function(a){g.I.call(this,a)};
Yp=function(a){g.I.call(this,a)};
Zp=function(a){g.I.call(this,a)};
$p=function(a){g.I.call(this,a)};
aq=function(a){g.I.call(this,a)};
bq=function(a){g.I.call(this,a)};
cq=function(a){g.I.call(this,a)};
dq=function(a){g.I.call(this,a)};
gla=function(a){g.I.call(this,a,-1,fla)};
g.eq=function(a){g.I.call(this,a,-1,hla)};
fq=function(a){g.I.call(this,a,-1,ila)};
gq=function(a){g.I.call(this,a)};
hq=function(a){g.I.call(this,a,-1,jla)};
iq=function(a){g.I.call(this,a,-1,kla)};
jq=function(a){g.I.call(this,a)};
kq=function(a){g.I.call(this,a)};
lq=function(a){g.I.call(this,a)};
mq=function(a){g.I.call(this,a)};
nq=function(a){g.I.call(this,a)};
oq=function(a){g.I.call(this,a)};
pq=function(a){g.I.call(this,a)};
qq=function(a){g.I.call(this,a)};
rq=function(a){g.I.call(this,a)};
sq=function(a){g.I.call(this,a)};
tq=function(a){g.I.call(this,a,-1,lla)};
uq=function(a){g.I.call(this,a,-1,mla)};
vq=function(a){g.I.call(this,a)};
wq=function(a){g.I.call(this,a,-1,nla)};
xq=function(a){g.I.call(this,a)};
yq=function(a){g.I.call(this,a,-1,ola)};
zq=function(a){g.I.call(this,a,-1,pla)};
Aq=function(a){g.I.call(this,a,-1,qla)};
Bq=function(a){g.I.call(this,a)};
Cq=function(a){g.I.call(this,a,-1,rla)};
Dq=function(a){g.I.call(this,a)};
Eq=function(a){g.I.call(this,a)};
Fq=function(a){g.I.call(this,a)};
Gq=function(a){g.I.call(this,a)};
Hq=function(a){g.I.call(this,a)};
Iq=function(a){g.I.call(this,a)};
Jq=function(a){g.I.call(this,a)};
Kq=function(a){g.I.call(this,a)};
Lq=function(a){g.I.call(this,a)};
Mq=function(a){g.I.call(this,a)};
Nq=function(a){g.I.call(this,a)};
Oq=function(a){g.I.call(this,a)};
Pq=function(a){g.I.call(this,a)};
Qq=function(a){g.I.call(this,a)};
Rq=function(a){g.I.call(this,a)};
Sq=function(a){g.I.call(this,a)};
Tq=function(a){g.I.call(this,a)};
Uq=function(a){g.I.call(this,a)};
Vq=function(a){g.I.call(this,a)};
Wq=function(a){g.I.call(this,a)};
Xq=function(a){g.I.call(this,a)};
Yq=function(a){g.I.call(this,a)};
Zq=function(a){g.I.call(this,a)};
$q=function(a){g.I.call(this,a,-1,sla)};
ar=function(a){g.I.call(this,a,-1,tla)};
br=function(a){g.I.call(this,a,-1,ula)};
cr=function(a){g.I.call(this,a)};
dr=function(a){g.I.call(this,a)};
er=function(a){g.I.call(this,a)};
fr=function(a){g.I.call(this,a)};
gr=function(a){g.I.call(this,a)};
hr=function(a){g.I.call(this,a)};
ir=function(a){g.I.call(this,a)};
jr=function(a){g.I.call(this,a,-1,vla)};
kr=function(a){g.I.call(this,a,-1,wla)};
lr=function(a){g.I.call(this,a)};
mr=function(a){g.I.call(this,a)};
nr=function(a){g.I.call(this,a)};
or=function(a){g.I.call(this,a)};
pr=function(a){g.I.call(this,a)};
qr=function(a){g.I.call(this,a)};
rr=function(a){g.I.call(this,a)};
sr=function(a){g.I.call(this,a)};
tr=function(a){g.I.call(this,a)};
ur=function(a){g.I.call(this,a,-1,xla)};
vr=function(a){g.I.call(this,a,-1,yla)};
wr=function(a){g.I.call(this,a)};
xr=function(a){g.I.call(this,a)};
yr=function(a){g.I.call(this,a,-1,zla)};
zr=function(a){g.I.call(this,a)};
Ar=function(a){g.I.call(this,a,-1,Ala)};
Br=function(a){g.I.call(this,a)};
Cr=function(a){g.I.call(this,a)};
Dr=function(a){g.I.call(this,a)};
Er=function(a){g.I.call(this,a)};
Fr=function(a){g.I.call(this,a,-1,Bla)};
Gr=function(a){g.I.call(this,a,-1,Cla)};
Hr=function(a){g.I.call(this,a)};
Ir=function(a){g.I.call(this,a)};
Jr=function(a){g.I.call(this,a)};
Kr=function(a){g.I.call(this,a)};
Lr=function(a){g.I.call(this,a)};
Mr=function(a){g.I.call(this,a)};
Nr=function(a){g.I.call(this,a)};
Or=function(a){g.I.call(this,a)};
Pr=function(a){g.I.call(this,a)};
Qr=function(a){g.I.call(this,a)};
Rr=function(a){g.I.call(this,a,-1,Dla)};
Sr=function(a){g.I.call(this,a)};
Tr=function(a){g.I.call(this,a)};
Ur=function(a){g.I.call(this,a)};
Vr=function(a){g.I.call(this,a,-1,Ela)};
Wr=function(a){g.I.call(this,a)};
Xr=function(a){g.I.call(this,a)};
Yr=function(a){g.I.call(this,a)};
Zr=function(a){g.I.call(this,a)};
$r=function(a){g.I.call(this,a)};
as=function(a){g.I.call(this,a)};
bs=function(a){g.I.call(this,a)};
cs=function(a){g.I.call(this,a)};
ds=function(a){g.I.call(this,a)};
es=function(a){g.I.call(this,a)};
fs=function(a){g.I.call(this,a)};
gs=function(a){g.I.call(this,a)};
hs=function(a){g.I.call(this,a)};
is=function(a){g.I.call(this,a)};
js=function(a){g.I.call(this,a)};
ks=function(a){g.I.call(this,a)};
ls=function(a){g.I.call(this,a)};
ms=function(a){g.I.call(this,a)};
ns=function(a){g.I.call(this,a)};
os=function(a){g.I.call(this,a)};
ps=function(a){g.I.call(this,a)};
qs=function(a){g.I.call(this,a)};
rs=function(a){g.I.call(this,a)};
ts=function(a){g.I.call(this,a)};
us=function(a){g.I.call(this,a)};
vs=function(a){g.I.call(this,a)};
ws=function(a){g.I.call(this,a,-1,Fla)};
xs=function(a){g.I.call(this,a,-1,Gla)};
ys=function(a){g.I.call(this,a)};
zs=function(a){g.I.call(this,a)};
As=function(a){g.I.call(this,a)};
Bs=function(a){g.I.call(this,a)};
Cs=function(a){g.I.call(this,a)};
Ds=function(a){g.I.call(this,a)};
Es=function(a){g.I.call(this,a)};
Fs=function(a){g.I.call(this,a)};
Gs=function(a){g.I.call(this,a)};
Hs=function(a){g.I.call(this,a)};
Is=function(a){g.I.call(this,a)};
Js=function(a){g.I.call(this,a)};
Ks=function(a){g.I.call(this,a,-1,Hla)};
Ls=function(a){g.I.call(this,a)};
Ms=function(a){g.I.call(this,a)};
Ns=function(a){g.I.call(this,a)};
Os=function(a){g.I.call(this,a)};
Ps=function(a){g.I.call(this,a)};
Qs=function(a){g.I.call(this,a)};
Rs=function(a){g.I.call(this,a)};
Ss=function(a){g.I.call(this,a)};
Ts=function(a){g.I.call(this,a)};
Us=function(a){g.I.call(this,a)};
Vs=function(a){g.I.call(this,a)};
Ws=function(a){g.I.call(this,a)};
Xs=function(a){g.I.call(this,a)};
Ys=function(a){g.I.call(this,a)};
Zs=function(a){g.I.call(this,a)};
$s=function(a){g.I.call(this,a)};
at=function(a){g.I.call(this,a)};
bt=function(a){g.I.call(this,a)};
dt=function(a){g.I.call(this,a)};
et=function(a){g.I.call(this,a)};
ft=function(a){g.I.call(this,a)};
gt=function(a){g.I.call(this,a)};
ht=function(a){g.I.call(this,a)};
jt=function(a){g.I.call(this,a)};
kt=function(a){g.I.call(this,a)};
lt=function(a){g.I.call(this,a)};
Ila=function(a,b){F(a,bs,1,b)};
mt=function(a){g.I.call(this,a)};
Jla=function(a,b){F(a,bs,1,b)};
nt=function(a){g.I.call(this,a,-1,Kla)};
Lla=function(a,b){F(a,bs,2,b)};
ot=function(a){g.I.call(this,a)};
pt=function(a){g.I.call(this,a)};
qt=function(a){g.I.call(this,a)};
rt=function(a){g.I.call(this,a)};
tt=function(a){g.I.call(this,a)};
ut=function(a){g.I.call(this,a,-1,Mla)};
vt=function(a){g.I.call(this,a)};
wt=function(a){g.I.call(this,a,-1,Nla)};
zt=function(a,b){Kd(a,68,xt,b)};
xt=function(a){g.I.call(this,a)};
At=function(a){g.I.call(this,a)};
Bt=function(a){g.I.call(this,a,-1,Ola)};
Ct=function(a){g.I.call(this,a,-1,Pla)};
Dt=function(a){g.I.call(this,a)};
Et=function(a){g.I.call(this,a)};
Ft=function(a){g.I.call(this,a)};
Gt=function(a){g.I.call(this,a,-1,Qla)};
Ht=function(a){g.I.call(this,a)};
It=function(a){g.I.call(this,a,-1,Rla)};
Jt=function(a){g.I.call(this,a)};
Kt=function(a){g.I.call(this,a)};
Lt=function(a){g.I.call(this,a)};
Mt=function(a){g.I.call(this,a,-1,Sla)};
Nt=function(a){g.I.call(this,a)};
Ot=function(a){g.I.call(this,a)};
Pt=function(a){g.I.call(this,a,-1,Tla)};
Qt=function(a){g.I.call(this,a)};
Rt=function(a){g.I.call(this,a)};
St=function(a){g.I.call(this,a)};
Tt=function(a){g.I.call(this,a)};
Ut=function(a){g.I.call(this,a,442)};
Vt=function(a){g.I.call(this,a)};
Wt=function(a){g.I.call(this,a)};
Xt=function(a){g.I.call(this,a,-1,Ula)};
Vla=function(){return g.Ga("yt.ads.biscotti.lastId_")||""};
Wla=function(a){g.Fa("yt.ads.biscotti.lastId_",a)};
Zt=function(){var a=arguments;1<a.length?Yt[a[0]]=a[1]:1===a.length&&Object.assign(Yt,a[0])};
g.O=function(a,b){return a in Yt?Yt[a]:b};
$t=function(a){var b=Yt.EXPERIMENT_FLAGS;return b?b[a]:void 0};
g.S=function(a){a=Xla(a);return"string"===typeof a&&"false"===a?!1:!!a};
g.au=function(a,b){a=Xla(a);return void 0===a&&void 0!==b?b:Number(a||0)};
bu=function(){return g.O("EXPERIMENTS_TOKEN","")};
Xla=function(a){var b=g.O("EXPERIMENTS_FORCED_FLAGS",{});return void 0!==b[a]?b[a]:g.O("EXPERIMENT_FLAGS",{})[a]};
cu=function(){var a=[],b=g.O("EXPERIMENTS_FORCED_FLAGS",{});for(c in b)a.push({key:c,value:String(b[c])});var c=g.O("EXPERIMENT_FLAGS",{});for(var d in c)d.startsWith("force_")&&void 0===b[d]&&a.push({key:d,value:String(c[d])});return a};
Yla=function(a){du.forEach(function(b){return b(a)})};
fu=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){g.eu(b)}}:a};
g.eu=function(a,b,c,d){var e=g.Ga("yt.logging.errors.log");e?e(a,"ERROR",b,c,d):(e=g.O("ERRORS",[]),e.push([a,"ERROR",b,c,d]),Zt("ERRORS",e));Yla(a)};
gu=function(a,b,c,d){var e=g.Ga("yt.logging.errors.log");e?e(a,"WARNING",b,c,d):(e=g.O("ERRORS",[]),e.push([a,"WARNING",b,c,d]),Zt("ERRORS",e))};
hu=function(a,b){b=a.split(b);for(var 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=Zla(f[0]||""),l=Zla(f[1]||"");h in c?Array.isArray(c[h])?g.cc(c[h],l):c[h]=[c[h],l]:c[h]=l}catch(q){var m=q,n=f[0],p=String(hu);m.args=[{key:n,value:f[1],query:a,method:$la==p?"unchanged":p}];ama.hasOwnProperty(n)||gu(m)}}return c};
iu=function(a){var b=[];g.lf(a,function(c,d){var e=g.Rg(d),f;Array.isArray(c)?f=c:f=[c];g.qc(f,function(h){""==h?b.push(e):b.push(e+"="+g.Rg(h))})});
return b.join("&")};
ju=function(a){"?"==a.charAt(0)&&(a=a.substr(1));return hu(a,"&")};
ku=function(a){a=a.split(",");return a=a.map(function(b){return ju(b)})};
g.lu=function(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),ju(1<a.length?a[1]:a[0])):{}};
mu=function(a,b){return bma(a,b||{},!0)};
nu=function(a,b){return bma(a,b||{},!1)};
bma=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=ju(e[1]||"");for(var f in b)if(c||!g.sf(e,f))e[f]=b[f];return g.wi(a,e)+d};
ou=function(a){if(!b)var b=window.location.href;var c=g.oi(1,a),d=g.pi(a);c&&d?(a=a.match(ii),b=b.match(ii),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?g.pi(b)==d&&(Number(g.oi(4,b))||null)==(Number(g.oi(4,a))||null):!0;return a};
pu=function(a){a||(a=document.location.href);a=g.oi(1,a);return null!==a&&"https"==a};
qu=function(a){a=g.pi(a);a=null!==a?a.split(".").reverse():null;return null===a?!1:"com"==a[0]&&a[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
Zla=function(a){return a&&a.match(cma)?a:Sg(a)};
ru=function(a){var b=dma;a=void 0===a?Vla():a;var c=Object,d=c.assign,e=ema(b);var f=b.j;try{var h=f.screenX;var l=f.screenY}catch(D){}try{var m=f.outerWidth;var n=f.outerHeight}catch(D){}try{var p=f.innerWidth;var q=f.innerHeight}catch(D){}try{var u=f.screenLeft;var w=f.screenTop}catch(D){}try{p=f.innerWidth,q=f.innerHeight}catch(D){}try{var y=f.screen.availWidth;var A=f.screen.availTop}catch(D){}f=[u,w,h,l,y,A,m,n,p,q];h=Dha(!1,b.j.top);l={};var B=void 0===B?g.C:B;m=new Un;B.SVGElement&&B.document.createElementNS&&
m.set(0);n=Sga();n["allow-top-navigation-by-user-activation"]&&m.set(1);n["allow-popups-to-escape-sandbox"]&&m.set(2);B.crypto&&B.crypto.subtle&&m.set(3);B.TextDecoder&&B.TextEncoder&&m.set(4);B=kka(m);b=(l.bc=B,l.bih=h.height,l.biw=h.width,l.brdim=f.join(),l.vis=Fk(b.u),l.wgl=!!Ck.WebGLRenderingContext,l);c=d.call(c,e,b);c.ca_type="image";a&&(c.bid=a);return c};
ema=function(a){var b={};b.dt=fma;b.flash="0";a:{try{var c=a.j.top.location.href}catch(p){a=2;break a}a=c?c===a.u.location.href?0:1:2}b=(b.frm=a,b);try{b.u_tz=-(new Date).getTimezoneOffset();var d=void 0===d?Ck:d;try{var e=d.history.length}catch(p){e=0}b.u_his=e;var f;b.u_h=null==(f=Ck.screen)?void 0:f.height;var h;b.u_w=null==(h=Ck.screen)?void 0:h.width;var l;b.u_ah=null==(l=Ck.screen)?void 0:l.availHeight;var m;b.u_aw=null==(m=Ck.screen)?void 0:m.availWidth;var n;b.u_cd=null==(n=Ck.screen)?void 0:
n.colorDepth}catch(p){}return b};
hma=function(){if(!gma)return null;var a=gma();return"open"in a?a:null};
g.uu=function(a){switch(tu(a)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
tu=function(a){return a&&"status"in a?a.status:-1};
g.vu=function(a,b){"function"===typeof a&&(a=fu(a));return window.setTimeout(a,b)};
g.wu=function(a,b){"function"===typeof a&&(a=fu(a));return window.setInterval(a,b)};
g.xu=function(a){window.clearTimeout(a)};
jma=function(a,b){b=void 0===b?{}:b;var c=ou(a),d=g.S("web_ajax_ignore_global_headers_if_set"),e;for(e in ima){var f=g.O(ima[e]);"X-Goog-Visitor-Id"!==e||f||(f=g.O("VISITOR_DATA"));!f||!c&&!yu(a,e)||d&&void 0!==b[e]||(b[e]=f)}"X-Goog-EOM-Visitor-Id"in b&&"X-Goog-Visitor-Id"in b&&delete b["X-Goog-Visitor-Id"];if(c||yu(a,"X-YouTube-Utc-Offset"))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(c||yu(a,"X-YouTube-Time-Zone")){try{var h=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(l){}h&&
(b["X-YouTube-Time-Zone"]=h)}if(c||yu(a,"X-YouTube-Ad-Signals"))b["X-YouTube-Ad-Signals"]=iu(ru());return b};
lma=function(a,b){var c=g.pi(a);g.S("debug_handle_relative_url_for_query_forward_killswitch")||c||!ou(a)||(c=document.location.hostname);var d=hi(g.oi(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=ju(b),f={};g.qc(kma,function(h){e[h]&&(f[h]=e[h])});
return nu(a,f)};
yu=function(a){return g.pi(a)?!1:!0};
g.Au=function(a,b){var c=b.format||"JSON";a=mma(a,b);var d=nma(a,b),e=!1,f=zu(a,function(m){if(!e){e=!0;l&&g.xu(l);var n=g.uu(m),p=null,q=400<=m.status&&500>m.status,u=500<=m.status&&600>m.status;if(n||q||u)p=oma(a,c,m,b.convertToSafeHtml);if(n)a:if(m&&204==m.status)n=!0;else{switch(c){case "XML":n=0==parseInt(p&&p.return_code,10);break a;case "RAW":n=!0;break a}n=!!p}p=p||{};q=b.context||g.C;n?b.onSuccess&&b.onSuccess.call(q,m,p):b.onError&&b.onError.call(q,m,p);b.onFinish&&b.onFinish.call(q,m,p)}},
b.method,d,b.headers,b.responseType,b.withCredentials);
d=b.timeout||0;if(b.onTimeout&&0<d){var h=b.onTimeout;var l=g.vu(function(){e||(e=!0,f.abort(),g.xu(l),h.call(b.context||g.C,f))},d)}return f};
mma=function(a,b){b.includeDomain&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var c=g.O("XSRF_FIELD_NAME");if(b=b.urlParams)b[c]&&delete b[c],a=mu(a,b);return a};
nma=function(a,b){var c=g.O("XSRF_FIELD_NAME"),d=g.O("XSRF_TOKEN"),e=b.postBody||"",f=b.postParams,h=g.O("XSRF_FIELD_NAME"),l;b.headers&&(l=b.headers["Content-Type"]);b.excludeXsrf||g.pi(a)&&!b.withCredentials&&g.pi(a)!=document.location.hostname||"POST"!=b.method||l&&"application/x-www-form-urlencoded"!=l||b.postParams&&b.postParams[h]||(f||(f={}),f[c]=d);(g.S("ajax_parse_query_data_only_when_filled")&&f&&0<Object.keys(f).length||f)&&"string"===typeof e&&(e=ju(e),g.If(e,f),e=b.postBodyFormat&&"JSON"==
b.postBodyFormat?JSON.stringify(e):g.ui(e));f=e||f&&!g.vf(f);!pma&&f&&"POST"!=b.method&&(pma=!0,g.eu(Error("AJAX request with postData should use POST")));return e};
oma=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,gu(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)?qma(a):null)e={},g.qc(a.getElementsByTagName("*"),function(h){e[h.tagName]=rma(h)})}d&&sma(e);
return e};
sma=function(a){if(g.Ma(a))for(var b in a)"html_content"==b||xaa(b,"_html")?a[b]=g.Ag(g.ig("HTML that is escaped and sanitized server-side and passed through yt.net.ajax"),a[b]):sma(a[b])};
qma=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null};
rma=function(a){var b="";g.qc(a.childNodes,function(c){b+=c.nodeValue});
return b};
zu=function(a,b,c,d,e,f,h){function l(){4==(m&&"readyState"in m?m.readyState:0)&&b&&fu(b)(m)}
c=void 0===c?"GET":c;d=void 0===d?"":d;var m=hma();if(!m)return null;"onloadend"in m?m.addEventListener("loadend",l,!1):m.onreadystatechange=l;g.S("debug_forward_web_query_parameters")&&(a=lma(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=jma(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};
Cu=function(a,b){var c=g.Gf(b),d;return(new g.Dh(function(e,f){c.onSuccess=function(h){g.uu(h)?e(new tma(h)):f(new Bu("Request failed, status="+tu(h),"net.badstatus",h))};
c.onError=function(h){f(new Bu("Unknown request error","net.unknown",h))};
c.onTimeout=function(h){f(new Bu("Request timed out","net.timeout",h))};
d=g.Au(a,c)})).bj(function(e){e instanceof Jh&&d.abort();
return Gh(e)})};
g.Du=function(a,b,c,d){function e(l,m,n){return l.bj(function(p){if(0>=m||403===tu(p.xhr))return Gh(new Bu("Request retried too many times","net.retryexhausted",p.xhr,p));p=Math.pow(2,c-m+1)*n;var q=0<h?Math.min(h,p):p;return f(n).then(function(){return e(Cu(a,b),m-1,q)})})}
function f(l){return new g.Dh(function(m){setTimeout(m,l)})}
var h=void 0===h?-1:h;return e(Cu(a,b),c-1,d)};
Bu=function(a,b,c){Xa.call(this,a+", errorCode="+b);this.errorCode=b;this.xhr=c;this.name="PromiseAjaxError"};
tma=function(a){this.xhr=a};
Eu=function(){this.j=0;this.wd=null};
Fu=function(a){var b=new Eu;a=void 0===a?null:a;b.j=2;b.wd=void 0===a?null:a;return b};
Gu=function(a){var b=new Eu;a=void 0===a?null:a;b.j=1;b.wd=void 0===a?null:a;return b};
g.Ju=function(a,b,c,d,e){Hu||Iu.set(""+a,b,{pD:c,path:"/",domain:void 0===d?"youtube.com":d,w4:void 0===e?!1:e})};
g.Ku=function(a,b){if(!Hu)return Iu.get(""+a,b)};
g.Lu=function(a,b,c){Hu||Iu.remove(""+a,void 0===b?"/":b,void 0===c?"youtube.com":c)};
uma=function(){if(!Iu.isEnabled())return!1;if(!Iu.isEmpty())return!0;Iu.set("TESTCOOKIESENABLED","1",{pD:60});if("1"!==Iu.get("TESTCOOKIESENABLED"))return!1;Iu.remove("TESTCOOKIESENABLED");return!0};
vma=function(){var a=/Chrome\/(\d+)/.exec(g.nb());return a?parseFloat(a[1]):NaN};
wma=function(){var a=/\sCobalt\/(\S+)\s/.exec(g.nb());if(!a)return NaN;var b=[];a=g.r(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("."))};
Nu=function(){return Mu("android")&&Mu("chrome")&&!(Mu("trident/")||Mu("edge/"))&&!Mu("cobalt")};
xma=function(){return Mu("armv7")||Mu("aarch64")||Mu("android")};
g.Ou=function(){return Mu("cobalt")};
Pu=function(){return Mu("cobalt")&&Mu("appletv")};
Qu=function(){return Mu("(ps3; leanback shell)")||Mu("ps3")&&g.Ou()};
yma=function(){return Mu("(ps4; leanback shell)")||Mu("ps4")&&g.Ou()};
g.zma=function(){return g.Ou()&&(Mu("ps4 vr")||Mu("ps4 pro vr"))};
Ru=function(){var a=/WebKit\/([0-9]+)/.exec(g.nb());return!!(a&&600<=parseInt(a[1],10))};
Su=function(){var a=/WebKit\/([0-9]+)/.exec(g.nb());return!!(a&&602<=parseInt(a[1],10))};
Tu=function(){return Mu("iemobile")||Mu("windows phone")&&Mu("edge")};
Vu=function(){return Uu&&Mu("applewebkit")&&!Mu("version")&&(!Mu("safari")||Mu("gsa/"))};
Xu=function(){return g.Wu&&Mu("version/")};
Yu=function(){return Mu("smart-tv")&&Mu("samsung")};
Mu=function(a){var b=g.nb();return b?0<=b.toLowerCase().indexOf(a):!1};
g.Zu=function(a,b){if(a)return a[b.name]};
$u=function(a){var b=g.O("INNERTUBE_HOST_OVERRIDE");b&&(a=String(b)+String(Eea(a)));return a};
Ama=function(a,b){var c={};g.O("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")&&(null==b?0:b.Authorization)||(c.key=g.O("INNERTUBE_API_KEY"));g.S("json_condensed_response")&&(c.prettyPrint="false");return a=nu(a,c)};
av=function(a,b){var c=void 0===c?{}:c;a={method:void 0===b?"POST":b,mode:ou(a)?"same-origin":"cors",credentials:ou(a)?"same-origin":"include"};b={};for(var d=g.r(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,c[e]&&(b[e]=c[e]);0<Object.keys(b).length&&(a.headers=b);return a};
bv=function(){return tea()||Vu()||Xu()?!0:g.O("EOM_VISITOR_DATA")?!1:!0};
cv=function(a,b){return void 0===b||null===b?a:"1"===b||!0===b||1===b||"True"===b?!0:!1};
dv=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a};
ev=function(a,b){return void 0===b||null===b?a:Number(b)};
fv=function(a,b){return void 0===b||null===b?a:b.toString()};
gv=function(a,b){if(b){if("fullwidth"===a)return Infinity;if("fullheight"===a)return 0}return a&&(b=a.match(Bma))&&(a=Number(b[2]),b=Number(b[1]),!isNaN(a)&&!isNaN(b)&&0<a)?b/a:NaN};
hv=function(a){var b=a.docid||a.video_id||a.videoId||a.id;if(b)return b;b=a.raw_player_response;b||g.S("parse_video_id_from_serialized_player_response_killswitch")||(a=a.player_response)&&(b=JSON.parse(a));return b&&b.videoDetails&&b.videoDetails.videoId||null};
Cma=function(a){return"EMBEDDED_PLAYER_MODE_PFL"===iv(a,!1)};
Dma=function(a){return"EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"===a||"EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"===a?!0:!1};
iv=function(a,b){b=(void 0===b?0:b)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";var c=a.raw_embedded_player_response;if(!c&&(a=a.embedded_player_response))try{c=JSON.parse(a)}catch(d){return b}return c?dv(b,c.embeddedPlayerMode,Ema):b};
kv=function(a){Xa.call(this,a.message||a.description||a.name);this.isMissing=a instanceof jv;this.isTimeout=a instanceof Bu&&"net.timeout"==a.errorCode;this.isCanceled=a instanceof Jh};
jv=function(){Xa.call(this,"Biscotti ID is missing from server")};
Fma=function(){if(g.S("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!bv())return Error("User has not consented - not fetching biscotti id.");var a=g.O("PLAYER_VARS",{});if("1"==g.Ef(a,"privembed",!1))return Error("Biscotti ID is not available in private embed mode");if(Cma(a))return Error("Biscotti id fetching has been disabled for pfl.")};
Ima=function(){var a=Fma();if(void 0!==a)return Gh(a);lv||(lv=Cu("//googleads.g.doubleclick.net/pagead/id",mv).then(Gma).bj(function(b){return Hma(2,b)}));
return lv};
Gma=function(a){a=a.xhr.responseText;if(!bb(a,")]}'"))throw new jv;a=JSON.parse(a.substr(4));if(1<(a.type||1))throw new jv;a=a.id;Wla(a);lv=Gu(a);Jma(18E5,2);return a};
Hma=function(a,b){b=new kv(b);Wla("");lv=Fu(b);0<a&&Jma(12E4,a-1);throw b;};
Jma=function(a,b){g.vu(function(){Cu("//googleads.g.doubleclick.net/pagead/id",mv).then(Gma,function(c){return Hma(b,c)}).bj(g.Yf)},a)};
Kma=function(){try{var a=g.Ga("yt.ads.biscotti.getId_");return a?a():Ima()}catch(b){return Gh(b)}};
Lma=function(a){var b=this;this.u=void 0;this.j=!1;a.addEventListener("beforeinstallprompt",function(c){c.preventDefault();b.u=c});
a.addEventListener("appinstalled",function(){b.j=!0},{once:!0})};
nv=function(){if(!g.C.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.C.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.C.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.C.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.C.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(a){return"WEB_DISPLAY_MODE_UNKNOWN"}};
g.pv=function(){this.j=g.O("ALT_PREF_COOKIE_NAME","PREF");this.u=g.O("ALT_PREF_COOKIE_DOMAIN","youtube.com");var a=g.Ku(this.j);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])&&(ov[d]=c.toString())}}};
g.qv=function(a,b){return!!((Mma("f"+(Math.floor(b/31)+1))||0)&1<<b%31)};
rv=function(a,b){var c="f"+(Math.floor(a/31)+1);a=1<<a%31;var d=Mma(c)||0;d=b?d|a:d&~a;0==d?delete ov[c]:(b=d.toString(16),ov[c]=b.toString())};
tv=function(a){if(/^f([1-9][0-9]*)$/.test(a))throw Error("ExpectedRegexMatch: "+a);};
uv=function(a){if(!/^\w+$/.test(a))throw Error("ExpectedRegexMismatch: "+a);};
Mma=function(a){a=void 0!==ov[a]?ov[a].toString():null;return null!=a&&/^[A-Fa-f0-9]+$/.test(a)?parseInt(a,16):null};
Nma=function(){var a=g.C.navigator;return a?a.connection:void 0};
Pma=function(){var a=Nma();if(a){var b=Oma[a.type||"unknown"]||"CONN_UNKNOWN";a=Oma[a.effectiveType||"unknown"]||"CONN_UNKNOWN";"CONN_CELLULAR_UNKNOWN"===b&&"CONN_UNKNOWN"!==a&&(b=a);if("CONN_UNKNOWN"!==b)return b;if("CONN_UNKNOWN"!==a)return a}};
Rma=function(){var a=Nma();if(null!=a&&a.effectiveType)return Qma.hasOwnProperty(a.effectiveType)?Qma[a.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
Sma=function(){return"INNERTUBE_API_KEY"in Yt&&"INNERTUBE_API_VERSION"in Yt};
g.vv=function(){return{innertubeApiKey:g.O("INNERTUBE_API_KEY"),innertubeApiVersion:g.O("INNERTUBE_API_VERSION"),YC:g.O("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),xI:g.O("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),MP:g.O("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:g.O("INNERTUBE_CONTEXT_CLIENT_VERSION"),zI:g.O("INNERTUBE_CONTEXT_HL"),yI:g.O("INNERTUBE_CONTEXT_GL"),NP:g.O("INNERTUBE_HOST_OVERRIDE")||"",OP:!!g.O("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),AI:!!g.O("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",
!1),appInstallData:g.O("SERIALIZED_CLIENT_CONFIG_DATA")}};
g.wv=function(a){var b={client:{hl:a.zI,gl:a.yI,clientName:a.xI,clientVersion:a.innertubeContextClientVersion,configInfo:a.YC}};navigator.userAgent&&(b.client.userAgent=String(navigator.userAgent));var c=g.C.devicePixelRatio;c&&1!=c&&(b.client.screenDensityFloat=String(c));c=bu();""!==c&&(b.client.experimentsToken=c);c=cu();0<c.length&&(b.request={internalExperimentFlags:c});Tma(a,void 0,b);Uma(void 0,b);Vma(a,void 0,b);Wma(void 0,b);g.O("DELEGATED_SESSION_ID")&&!g.S("pageid_as_header_web")&&(b.user=
{onBehalfOfUser:g.O("DELEGATED_SESSION_ID")});a=Object;c=a.assign;for(var d=b.client,e={},f=g.r(Object.entries(ju(g.O("DEVICE","")))),h=f.next();!h.done;h=f.next()){var l=g.r(h.value);h=l.next().value;l=l.next().value;"cbrand"===h?e.deviceMake=l:"cmodel"===h?e.deviceModel=l:"cbr"===h?e.browserName=l:"cbrver"===h?e.browserVersion=l:"cos"===h?e.osName=l:"cosver"===h?e.osVersion=l:"cplatform"===h&&(e.platform=l)}b.client=c.call(a,d,e);return b};
Xma=function(a){var b=new iq,c=new g.eq;g.E(c,1,a.zI);g.E(c,2,a.yI);g.E(c,16,a.MP);g.E(c,17,a.innertubeContextClientVersion);if(a.YC){var d=a.YC,e=new $p;d.coldConfigData&&g.E(e,1,d.coldConfigData);d.appInstallData&&g.E(e,6,d.appInstallData);d.coldHashData&&g.E(e,3,d.coldHashData);d.hotHashData&&g.E(e,5,d.hotHashData);F(c,$p,62,e)}(d=g.C.devicePixelRatio)&&1!=d&&g.E(c,65,d);d=bu();""!==d&&g.E(c,54,d);d=cu();if(0<d.length){e=new fq;for(var f=0;f<d.length;f++){var h=new Zp;g.E(h,1,d[f].key);h.setValue(d[f].value);
Kd(e,15,Zp,h)}F(b,fq,5,e)}Tma(a,c);Uma(c);Vma(a,c);Wma(c);g.O("DELEGATED_SESSION_ID")&&!g.S("pageid_as_header_web")&&(a=new hq,g.E(a,3,g.O("DELEGATED_SESSION_ID")));a=g.r(Object.entries(ju(g.O("DEVICE",""))));for(d=a.next();!d.done;d=a.next())e=g.r(d.value),d=e.next().value,e=e.next().value,"cbrand"===d?g.E(c,12,e):"cmodel"===d?g.E(c,13,e):"cbr"===d?g.E(c,87,e):"cbrver"===d?g.E(c,88,e):"cos"===d?g.E(c,18,e):"cosver"===d?g.E(c,19,e):"cplatform"===d&&g.E(c,42,e);b.J(c);return b};
Tma=function(a,b,c){a=a.xI;if("WEB"===a||"MWEB"===a||1===a||2===a)if(b){c=Ed(b,dq,96)||new dq;var d=nv();d=Object.keys(Yma).indexOf(d);d=-1===d?null:d;null!==d&&g.E(c,3,d);F(b,dq,96,c)}else c&&(c.client.mainAppWebInfo=null!=(d=c.client.mainAppWebInfo)?d:{},c.client.mainAppWebInfo.webDisplayMode=nv())};
Uma=function(a,b){var c;if(g.S("web_log_memory_total_kbytes")&&(null==(c=g.C.navigator)?0:c.deviceMemory)){var d;c=null==(d=g.C.navigator)?void 0:d.deviceMemory;a?g.E(a,95,1E6*c):b&&(b.client.memoryTotalKbytes=""+1E6*c)}};
Vma=function(a,b,c){if(a.appInstallData)if(b){var d;c=null!=(d=Ed(b,$p,62))?d:new $p;g.E(c,6,a.appInstallData);F(b,$p,62,c)}else c&&(c.client.configInfo=c.client.configInfo||{},c.client.configInfo.appInstallData=a.appInstallData)};
Wma=function(a,b){var c=Pma();c&&(a?g.E(a,61,Zma[c]):b&&(b.client.connectionType=c));g.S("web_log_effective_connection_type")&&(c=Rma())&&(a?g.E(a,94,$ma[c]):b&&(b.client.effectiveConnectionType=c))};
ana=function(a,b,c){c=void 0===c?{}:c;var d={};g.O("EOM_VISITOR_DATA")?d={"X-Goog-EOM-Visitor-Id":g.O("EOM_VISITOR_DATA")}:d={"X-Goog-Visitor-Id":c.visitorData||g.O("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return d;(b=c.PN||g.O("AUTHORIZATION"))||(a?b="Bearer "+g.Ga("gapi.auth.getToken")().access_token:b=Zh([]));b&&(d.Authorization=b,d["X-Goog-AuthUser"]=g.O("SESSION_INDEX",0),g.S("pageid_as_header_web")&&(d["X-Goog-PageId"]=g.O("DELEGATED_SESSION_ID")));return d};
xv=function(a){var b;(b=g.Oo(a))||(a=new Ko(a||"UserDataSharedStore"),b=a.isAvailable()?a:null);this.j=(a=b)?new Eo(a):null;this.u=document.domain||window.location.hostname};
yv=function(){};
g.Av=function(a,b,c){return zv(b,0,c)};
bna=function(a,b){zv(a,2,b)};
Bv=function(){yv.apply(this,arguments)};
g.Cv=function(){Bv.j||(Bv.j=new Bv);return Bv.j};
g.Dv=function(){return!!g.Ga("yt.scheduler.instance")};
zv=function(a,b,c){void 0!==c&&Number.isNaN(Number(c))&&(c=void 0);var d=g.Ga("yt.scheduler.instance.addJob");return d?d(a,b,c):void 0===c?(a(),NaN):g.vu(a,c||0)};
Ev=function(a){var b=g.Ga("yt.scheduler.instance.setPriorityThreshold");b&&b(a)};
Gv=function(){var a;return null==(a=Fv())?void 0:a.get("LAST_RESULT_ENTRY_KEY",!0)};
cna=function(){var a={};for(Hv=new Iv(void 0===a.handleError?Jv:a.handleError,void 0===a.logEvent?g.Kv:a.logEvent);0<Lv.length;)switch(a=Lv.shift(),a.type){case "ERROR":Hv.Ez(a.payload);break;case "EVENT":Hv.logEvent(a.eventType,a.payload)}};
Nv=function(a){Mv||(Hv?Hv.Ez(a):(Lv.push({type:"ERROR",payload:a}),10<Lv.length&&Lv.shift()))};
Ov=function(a,b){Mv||(Hv?Hv.logEvent(a,b):(Lv.push({type:"EVENT",eventType:a,payload:b}),10<Lv.length&&Lv.shift()))};
g.Pv=function(a){var b=g.za.apply(1,arguments);var c=Error.call(this,a);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.args=[].concat(g.t(b))};
g.Rv=function(){try{return g.Qv(),!0}catch(a){return!1}};
g.Qv=function(a){if(void 0!==g.O("DATASYNC_ID"))return g.O("DATASYNC_ID");throw new g.Pv("Datasync ID not set",void 0===a?"unknown":a);};
Sv=function(a){if(0<=a.indexOf(":"))throw Error("Database name cannot contain ':'");};
Tv=function(a){return a.substr(0,a.indexOf(":"))||a};
g.Uv=function(a,b,c,d,e){b=void 0===b?{}:b;c=void 0===c?dna[a]:c;d=void 0===d?ena[a]:d;e=void 0===e?fna[a]:e;g.Pv.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;this.level=d;this.j=e;Object.setPrototypeOf(this,g.Uv.prototype)};
Vv=function(a,b){g.Uv.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:b,foundObjectStores:a},dna.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,Vv.prototype)};
Wv=function(a,b){var c=Error.call(this);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.index=a;this.objectStore=b;Object.setPrototypeOf(this,Wv.prototype)};
Yv=function(a,b,c,d){b=Tv(b);var e=a instanceof Error?a:Error("Unexpected error: "+a);if(e instanceof g.Uv)return e;a={objectStoreNames:c,dbName:b,dbVersion:d};if("QuotaExceededError"===e.name)return new g.Uv("QUOTA_EXCEEDED",a);if(g.Xv&&"UnknownError"===e.name)return new g.Uv("QUOTA_MAYBE_EXCEEDED",a);if(e instanceof Wv)return new g.Uv("MISSING_INDEX",Object.assign({},a,{objectStore:e.objectStore,index:e.index}));if("InvalidStateError"===e.name&&gna.some(function(f){return e.message.includes(f)}))return new g.Uv("EXECUTE_TRANSACTION_ON_CLOSED_DB",
a);
if("AbortError"===e.name)return new g.Uv("UNKNOWN_ABORT",a,e.message);e.args=[Object.assign({},a,{name:"IdbError",MD:e.name})];e.level="WARNING";return e};
g.Zv=function(a,b,c){var d=Gv();return new g.Uv("IDB_NOT_SUPPORTED",{context:{caller:a,publicName:b,version:c,hasSucceededOnce:null==d?void 0:d.hasSucceededOnce}})};
hna=function(a){if(!a)throw Error();throw a;};
ina=function(a){return a};
$v=function(a){this.j=a};
g.aw=function(a){function b(e){if("PENDING"===d.state.status){d.state={status:"REJECTED",reason:e};e=g.r(d.onRejected);for(var f=e.next();!f.done;f=e.next())f=f.value,f()}}
function c(e){if("PENDING"===d.state.status){d.state={status:"FULFILLED",value:e};e=g.r(d.j);for(var f=e.next();!f.done;f=e.next())f=f.value,f()}}
var d=this;this.state={status:"PENDING"};this.j=[];this.onRejected=[];a=a.j;try{a(c,b)}catch(e){b(e)}};
jna=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 g.aw?bw(a,b,f,d,e):d(f)}catch(h){e(h)}};
kna=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 g.aw?bw(a,b,f,d,e):d(f)}catch(h){e(h)}};
bw=function(a,b,c,d,e){b===c?e(new TypeError("Circular promise chain detected.")):c.then(function(f){f instanceof g.aw?bw(a,b,f,d,e):d(f)},function(f){e(f)})};
lna=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)};
mna=function(a){return new Promise(function(b,c){lna(a,b,c)})};
cw=function(a){return new g.aw(new $v(function(b,c){lna(a,b,c)}))};
dw=function(a,b){return new g.aw(new $v(function(c,d){function e(){var f=a?b(a):null;f?f.then(function(h){a=h;e()},d):c()}
e()}))};
nna=function(a,b){this.request=a;this.cursor=b};
ew=function(a){return cw(a).then(function(b){return b?new nna(a,b):null})};
ona=function(a,b){this.j=a;this.options=b;this.transactionCount=0;this.B=Math.round((0,g.T)());this.u=!1};
g.gw=function(a,b,c){a=a.j.createObjectStore(b,c);return new fw(a)};
hw=function(a,b){a.j.objectStoreNames.contains(b)&&a.j.deleteObjectStore(b)};
g.pna=function(a,b,c){return g.iw(a,[b],{mode:"readwrite",Zb:!0},function(d){return g.jw(d.objectStore(b),c)})};
g.iw=function(a,b,c,d){var e,f,h,l,m,n,p,q,u,w,y,A;return g.z(function(B){switch(B.j){case 1:var D={mode:"readonly",Zb:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};"string"===typeof c?D.mode=c:Object.assign(D,c);e=D;a.transactionCount++;f=e.Zb?3:1;h=0;case 2:if(l){B.Ma(3);break}h++;m=Math.round((0,g.T)());g.pa(B,4);n=a.j.transaction(b,e.mode);D=new kw(n);D=qna(D,d);return g.x(B,D,6);case 6:return p=B.u,q=Math.round((0,g.T)()),rna(a,m,q,h,void 0,b.join(),e),B.return(p);case 4:u=g.ua(B);w=Math.round((0,g.T)());
y=Yv(u,a.j.name,b.join(),a.j.version);if((A=y instanceof g.Uv&&!y.j)||h>=f)rna(a,m,w,h,y,b.join(),e),l=y;B.Ma(2);break;case 3:return B.return(Promise.reject(l))}})};
rna=function(a,b,c,d,e,f,h){b=c-b;e?(e instanceof g.Uv&&("QUOTA_EXCEEDED"===e.type||"QUOTA_MAYBE_EXCEEDED"===e.type)&&Ov("QUOTA_EXCEEDED",{dbName:Tv(a.j.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:h.mode}),e instanceof g.Uv&&"UNKNOWN_ABORT"===e.type&&(c-=a.B,0>c&&c>=Math.pow(2,31)&&(c=0),Ov("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.u=!0),sna(a,!1,d,f,b,h.tag),Nv(e)):sna(a,!0,d,
f,b,h.tag)};
sna=function(a,b,c,d,e,f){Ov("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.u,duration:e,isSuccessful:b,tryCount:c,tag:void 0===f?"IDB_TRANSACTION_TAG_UNKNOWN":f})};
fw=function(a){this.j=a};
g.lw=function(a,b,c){a.j.createIndex(b,c,{unique:!1})};
tna=function(a,b){return g.mw(a,{query:b},function(c){return c.delete().then(function(){return c.continue()})}).then(function(){})};
una=function(a,b,c){var d=[];return g.mw(a,{query:b},function(e){if(!(void 0!==c&&d.length>=c))return d.push(e.getValue()),e.continue()}).then(function(){return d})};
wna=function(a){return"getAllKeys"in IDBObjectStore.prototype?cw(a.j.getAllKeys(void 0,void 0)):vna(a)};
vna=function(a){var b=[];return g.xna(a,{query:void 0},function(c){b.push(c.MC());return c.continue()}).then(function(){return b})};
g.jw=function(a,b,c){return cw(a.j.put(b,c))};
g.mw=function(a,b,c){a=a.j.openCursor(b.query,b.direction);return nw(a).then(function(d){return dw(d,c)})};
g.xna=function(a,b,c){var d=b.query;b=b.direction;a="openKeyCursor"in IDBObjectStore.prototype?a.j.openKeyCursor(d,b):a.j.openCursor(d,b);return ew(a).then(function(e){return dw(e,c)})};
kw=function(a){var b=this;this.j=a;this.B=new Map;this.u=!1;this.done=new Promise(function(c,d){b.j.addEventListener("complete",function(){c()});
b.j.addEventListener("error",function(e){e.currentTarget===e.target&&d(b.j.error)});
b.j.addEventListener("abort",function(){var e=b.j.error;if(e)d(e);else if(!b.u){e=g.Uv;for(var f=b.j.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("UNKNOWN_ABORT",{objectStoreNames:h.join(),dbName:b.j.db.name,mode:b.j.mode});d(e)}})})};
qna=function(a,b){var c=new Promise(function(d,e){try{b(a).then(function(f){d(f)}).catch(e)}catch(f){e(f),a.abort()}});
return Promise.all([c,a.done]).then(function(d){return g.r(d).next().value})};
yna=function(a){this.j=a};
zna=function(a,b,c){var d=[];return g.ow(a,{query:b},function(e){if(!(void 0!==c&&d.length>=c))return d.push(e.getValue()),e.continue()}).then(function(){return d})};
g.ow=function(a,b,c){a=a.j.openCursor(void 0===b.query?null:b.query,void 0===b.direction?"next":b.direction);return nw(a).then(function(d){return dw(d,c)})};
Ana=function(a,b){this.request=a;this.cursor=b};
nw=function(a){return cw(a).then(function(b){return b?new Ana(a,b):null})};
Bna=function(a,b,c){return new Promise(function(d,e){function f(){u||(u=new ona(h.result,{closed:q}));return u}
var h=void 0!==b?self.indexedDB.open(a,b):self.indexedDB.open(a);var l=c.blocked,m=c.blocking,n=c.r5,p=c.upgrade,q=c.closed,u;h.addEventListener("upgradeneeded",function(w){try{if(null===w.newVersion)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(null===h.transaction)throw Error("Invariant: transaction on IDbOpenDbRequest is null");w.dataLoss&&"none"!==w.dataLoss&&Ov("IDB_DATA_CORRUPTED",{reason:w.dataLossMessage||"unknown reason",dbName:Tv(a)});var y=f(),A=new kw(h.transaction);
p&&p(y,function(B){return w.oldVersion<B&&w.newVersion>=B},A);
A.done.catch(function(B){e(B)})}catch(B){e(B)}});
h.addEventListener("success",function(){var w=h.result;m&&w.addEventListener("versionchange",function(){m(f())});
w.addEventListener("close",function(){Ov("IDB_UNEXPECTEDLY_CLOSED",{dbName:Tv(a),dbVersion:w.version});n&&n()});
d(f())});
h.addEventListener("error",function(){e(h.error)});
l&&h.addEventListener("blocked",function(){l()})})};
Cna=function(a,b,c){c=void 0===c?{}:c;return Bna(a,b,c)};
pw=function(a,b){b=void 0===b?{}:b;var c,d,e,f;return g.z(function(h){if(1==h.j)return g.pa(h,2),c=self.indexedDB.deleteDatabase(a),d=b,(e=d.blocked)&&c.addEventListener("blocked",function(){e()}),g.x(h,mna(c),4);
if(2!=h.j)return g.ra(h,0);f=g.ua(h);throw Yv(f,a,"",-1);})};
Dna=function(a){return new Promise(function(b){bna(function(){b()},a)})};
qw=function(a,b){this.name=a;this.options=b;this.C=!0;this.I=this.D=0;this.u=500};
Ena=function(a,b){return new g.Uv("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:b})};
g.rw=function(a,b){if(!b)throw g.Zv("openWithToken",Tv(a.name));return a.open()};
Fna=function(a,b){var c;return g.z(function(d){if(1==d.j)return g.x(d,g.rw(tw,b),2);c=d.u;return d.return(g.iw(c,["databases"],{Zb:!0,mode:"readwrite"},function(e){var f=e.objectStore("databases");return f.get(a.actualName).then(function(h){if(h?a.actualName!==h.actualName||a.publicName!==h.publicName||a.userIdentifier!==h.userIdentifier:1)return g.jw(f,a).then(function(){})})}))})};
uw=function(a,b){var c;return g.z(function(d){if(1==d.j)return a?g.x(d,g.rw(tw,b),2):d.return();c=d.u;return d.return(c.delete("databases",a))})};
Gna=function(a,b){var c,d;return g.z(function(e){return 1==e.j?(c=[],g.x(e,g.rw(tw,b),2)):3!=e.j?(d=e.u,g.x(e,g.iw(d,["databases"],{Zb:!0,mode:"readonly"},function(f){c.length=0;return g.mw(f.objectStore("databases"),{},function(h){a(h.getValue())&&c.push(h.getValue());return h.continue()})}),3)):e.return(c)})};
Hna=function(a){return Gna(function(b){return"LogsDatabaseV2"===b.publicName&&void 0!==b.userIdentifier},a)};
Ina=function(){var a,b,c,d;return g.z(function(e){switch(e.j){case 1:a=Gv();if(null==(b=a)?0:b.hasSucceededOnce)return e.return(!0);if(Uu&&Ru()&&!Su()||g.vw)return e.return(!1);try{if(c=self,!(c.indexedDB&&c.IDBIndex&&c.IDBKeyRange&&c.IDBObjectStore))return e.return(!1)}catch(f){return e.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return e.return(!1);g.pa(e,2);d={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};
return g.x(e,Fna(d,ww),4);case 4:return g.x(e,uw("yt-idb-test-do-not-use",ww),5);case 5:return e.return(!0);case 2:return g.ua(e),e.return(!1)}})};
Jna=function(){if(void 0!==xw)return xw;Mv=!0;return xw=Ina().then(function(a){Mv=!1;var b;if(null!=(b=Fv())&&b.j){var c;b={hasSucceededOnce:(null==(c=Gv())?void 0:c.hasSucceededOnce)||a};var d;null==(d=Fv())||d.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0)}return a})};
yw=function(){return g.Ga("ytglobal.idbToken_")||void 0};
g.Aw=function(){var a=yw();return a?Promise.resolve(a):Jna().then(function(b){(b=b?ww:void 0)&&g.Fa("ytglobal.idbToken_",b);return b})};
Kna=function(a){if(!g.Rv())throw a=new g.Uv("AUTH_INVALID",{dbName:a}),Nv(a),a;var b=g.Qv();return{actualName:a+":"+b,publicName:a,userIdentifier:b}};
Lna=function(a,b,c,d){var e,f,h,l,m,n;return g.z(function(p){switch(p.j){case 1:return f=null!=(e=Error().stack)?e:"",g.x(p,g.Aw(),2);case 2:h=p.u;if(!h)throw l=g.Zv("openDbImpl",a,b),g.S("ytidb_async_stack_killswitch")||(l.stack=l.stack+"\n"+f.substring(f.indexOf("\n")+1)),Nv(l),l;Sv(a);m=c?{actualName:a,publicName:a,userIdentifier:void 0}:Kna(a);g.pa(p,3);return g.x(p,Fna(m,h),5);case 5:return g.x(p,Cna(m.actualName,b,d),6);case 6:return p.return(p.u);case 3:return n=g.ua(p),g.pa(p,7),g.x(p,uw(m.actualName,
h),9);case 9:g.ra(p,8);break;case 7:g.ua(p);case 8:throw n;}})};
Mna=function(a,b,c){c=void 0===c?{}:c;return Lna(a,b,!1,c)};
Nna=function(a,b,c){c=void 0===c?{}:c;return Lna(a,b,!0,c)};
Ona=function(a,b){b=void 0===b?{}:b;var c,d;return g.z(function(e){if(1==e.j)return g.x(e,g.Aw(),2);if(3!=e.j){c=e.u;if(!c)return e.return();Sv(a);d=Kna(a);return g.x(e,pw(d.actualName,b),3)}return g.x(e,uw(d.actualName,c),0)})};
Pna=function(a,b,c){a=a.map(function(d){return g.z(function(e){return 1==e.j?g.x(e,pw(d.actualName,b),2):g.x(e,uw(d.actualName,c),0)})});
return Promise.all(a).then(function(){})};
Qna=function(){var a=void 0===a?{}:a;var b,c;return g.z(function(d){if(1==d.j)return g.x(d,g.Aw(),2);if(3!=d.j){b=d.u;if(!b)return d.return();Sv("LogsDatabaseV2");return g.x(d,Hna(b),3)}c=d.u;return g.x(d,Pna(c,a,b),0)})};
Rna=function(a,b){b=void 0===b?{}:b;var c;return g.z(function(d){if(1==d.j)return g.x(d,g.Aw(),2);if(3!=d.j){c=d.u;if(!c)return d.return();Sv(a);return g.x(d,pw(a,b),3)}return g.x(d,uw(a,c),0)})};
Cw=function(a){this.LB=this.Ze=!1;this.potentialEsfErrorCounter=this.j=0;this.handleError=function(){};
this.Zv=function(){};
this.now=Date.now;this.yy=!1;var b;this.SS=null!=(b=a.SS)?b:100;var c;this.oS=null!=(c=a.oS)?c:1;var d;this.hS=null!=(d=a.hS)?d:2592E6;var e;this.aS=null!=(e=a.aS)?e:12E4;var f;this.nS=null!=(f=a.nS)?f:5E3;var h;this.Ye=null!=(h=a.Ye)?h:void 0;this.jC=!!a.jC;var l;this.VB=null!=(l=a.VB)?l:.1;var m;this.YD=null!=(m=a.YD)?m:10;a.handleError&&(this.handleError=a.handleError);a.Zv&&(this.Zv=a.Zv);a.yy&&(this.yy=a.yy);a.LB&&(this.LB=a.LB);this.jb=a.jb;this.xl=a.xl;this.jg=a.jg;this.ag=a.ag;this.Vo=a.Vo;
this.WJ=a.WJ;this.rJ=a.rJ;Bw(this)&&(!this.jb||this.jb("networkless_logging"))&&Sna(this)};
Sna=function(a){Bw(a)&&!a.yy&&(a.Ze=!0,a.jC&&Math.random()<=a.VB&&a.jg.QX(a.Ye),Tna(a),a.ag.tf()&&a.KA(),a.ag.Ra(a.WJ,a.KA.bind(a)),a.ag.Ra(a.rJ,a.cO.bind(a)))};
Dw=function(a,b){var c,d;return g.z(function(e){switch(e.j){case 1:if(!Bw(a))throw c=g.Zv("immediateSend"),c;if(void 0===b.id){e.Ma(2);break}return g.x(e,a.jg.p_(b.id,a.Ye),3);case 3:(d=e.u)?b=d:a.Zv(Error("The request cannot be found in the database."));case 2:if(Una(a,b,a.hS)){e.Ma(4);break}a.Zv(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===b.id){e.Ma(5);break}return g.x(e,a.jg.Gv(b.id,a.Ye),5);case 5:return e.return();case 4:b.skipRetry||(b=Vna(a,b));if(!b){e.Ma(0);
break}if(!b.skipRetry||void 0===b.id){e.Ma(8);break}return g.x(e,a.jg.Gv(b.id,a.Ye),8);case 8:a.Vo(b.url,b.options,!!b.skipRetry),g.na(e)}})};
Vna=function(a,b){if(!Bw(a))throw g.Zv("updateRequestHandlers");var c=b.options.onError?b.options.onError:function(){};
b.options.onError=function(e,f){var h,l,m;return g.z(function(n){switch(n.j){case 1:h=Wna(f);if(!(a.jb&&a.jb("nwl_consider_error_code")&&h||a.jb&&!a.jb("nwl_consider_error_code")&&a.potentialEsfErrorCounter<=a.YD)){n.Ma(2);break}if(!a.ag.vA){n.Ma(3);break}return g.x(n,a.ag.vA(),3);case 3:if(a.ag.tf()){n.Ma(2);break}c(e,f);if(!a.jb||!a.jb("nwl_consider_error_code")||void 0===(null==(l=b)?void 0:l.id)){n.Ma(6);break}return g.x(n,a.jg.yK(b.id,a.Ye,!1),6);case 6:return n.return();case 2:if(a.jb&&a.jb("nwl_consider_error_code")&&
!h&&a.potentialEsfErrorCounter>a.YD)return n.return();a.potentialEsfErrorCounter++;if(void 0===(null==(m=b)?void 0:m.id)){n.Ma(8);break}return b.sendCount<a.oS?g.x(n,a.jg.yK(b.id,a.Ye),12):g.x(n,a.jg.Gv(b.id,a.Ye),8);case 12:a.xl.Jh(function(){a.ag.tf()&&a.KA()},a.nS);
case 8:c(e,f),g.na(n)}})};
var d=b.options.onSuccess?b.options.onSuccess:function(){};
b.options.onSuccess=function(e,f){var h;return g.z(function(l){if(1==l.j)return void 0===(null==(h=b)?void 0:h.id)?l.Ma(2):g.x(l,a.jg.Gv(b.id,a.Ye),2);a.ag.Lo&&a.jb&&a.jb("vss_network_hint")&&a.ag.Lo(!0);d(e,f);g.na(l)})};
return b};
Una=function(a,b,c){b=b.timestamp;return a.now()-b>=c?!1:!0};
Tna=function(a){if(!Bw(a))throw g.Zv("retryQueuedRequests");a.jg.gP("QUEUED",a.Ye).then(function(b){b&&!Una(a,b,a.aS)?a.xl.Jh(function(){return g.z(function(c){if(1==c.j)return void 0===b.id?c.Ma(2):g.x(c,a.jg.yK(b.id,a.Ye),2);Tna(a);g.na(c)})}):a.ag.tf()&&a.KA()})};
Ew=function(a,b){a.GT&&!a.ag.tf()?a.GT(b):a.handleError(b)};
Bw=function(a){return!!a.Ye||a.LB};
Wna=function(a){var b;return(a=null==a?void 0:null==(b=a.error)?void 0:b.code)&&400<=a&&599>=a?!1:!0};
Fw=function(a,b){this.version=a;this.args=b};
Gw=function(a,b){this.topic=a;this.j=b};
Iw=function(a,b){var c=Hw();c&&c.publish.call(c,a.toString(),a,b)};
Yna=function(a,b,c){var d=Hw();if(!d)return 0;var e=d.subscribe(a.toString(),function(f,h){var l=g.Ga("ytPubsub2Pubsub2SkipSubKey");l&&l==e||(l=function(){if(Jw[e])try{if(h&&a instanceof Gw&&a!=f)try{var m=a.j,n=h;if(!n.args||!n.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!m.Wq){var p=new m;m.Wq=p.version}var q=m.Wq}catch(u){}if(!q||n.version!=q)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{h=Reflect.construct(m,
g.bc(n.args))}catch(u){throw u.message="yt.pubsub2.Data.deserialize(): "+u.message,u;}}catch(u){throw u.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+a.toString()+": "+u.message,u;}b.call(c||window,h)}catch(u){g.eu(u)}},Xna[a.toString()]?g.Dv()?g.Tn.Jh(l):g.vu(l,0):l())});
Jw[e]=!0;Kw[a.toString()]||(Kw[a.toString()]=[]);Kw[a.toString()].push(e);return e};
Mw=function(a,b,c){var d=Yna(a,function(e){b.apply(c,arguments);Lw(d)},c);
return d};
Lw=function(a){var b=Hw();b&&("number"===typeof a&&(a=[a]),g.qc(a,function(c){b.unsubscribeByKey(c);delete Jw[c]}))};
Hw=function(){return g.Ga("ytPubsub2Pubsub2Instance")};
Nw=function(a,b){qw.call(this,a,b);this.options=b;Sv(a)};
Zna=function(a,b){var c;return function(){c||(c=new Nw(a,b));return c}};
g.Ow=function(a,b){return Zna(a,b)};
$na=function(){if(Pw)return Pw();var a={};Pw=g.Ow("LogsDatabaseV2",{xq:(a.LogsRequestsStore={Rn:2},a),Xw:!1,upgrade:function(b,c,d){c(2)&&g.gw(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});c(3);c(5)&&(d=d.objectStore("LogsRequestsStore"),d.j.indexNames.contains("newRequest")&&d.j.deleteIndex("newRequest"),g.lw(d,"newRequestV2",["status","interface","timestamp"]));c(7)&&hw(b,"sapisid");c(9)&&hw(b,"SWHealthLog")},
version:9});return Pw()};
Qw=function(a){return g.rw($na(),a)};
Rw=function(a,b){var c,d,e,f;return g.z(function(h){if(1==h.j)return c={startTime:(0,g.T)(),transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},g.x(h,Qw(b),2);if(3!=h.j)return d=h.u,e=Object.assign({},a,{options:JSON.parse(JSON.stringify(a.options)),interface:g.O("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.x(h,g.pna(d,"LogsRequestsStore",e),3);f=h.u;c.C5=(0,g.T)();aoa(c);return h.return(f)})};
boa=function(a,b){var c,d,e,f,h,l,m;return g.z(function(n){if(1==n.j)return c={startTime:(0,g.T)(),transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},g.x(n,Qw(b),2);if(3!=n.j)return d=n.u,e=g.O("INNERTUBE_CONTEXT_CLIENT_NAME",0),f=[a,e,0],h=[a,e,(0,g.T)()],l=IDBKeyRange.bound(f,h),m=void 0,g.x(n,g.iw(d,["LogsRequestsStore"],{mode:"readwrite",Zb:!0},function(p){return g.ow(p.objectStore("LogsRequestsStore").index("newRequestV2"),{query:l,direction:"prev"},function(q){q.getValue()&&(m=q.getValue(),"NEW"===
a&&(m.status="QUEUED",q.update(m)))})}),3);
c.C5=(0,g.T)();aoa(c);return n.return(m)})};
coa=function(a,b){var c;return g.z(function(d){if(1==d.j)return g.x(d,Qw(b),2);c=d.u;return d.return(g.iw(c,["LogsRequestsStore"],{mode:"readwrite",Zb:!0},function(e){var f=e.objectStore("LogsRequestsStore");return f.get(a).then(function(h){if(h)return h.status="QUEUED",g.jw(f,h).then(function(){return h})})}))})};
Sw=function(a,b,c){c=void 0===c?!0:c;var d;return g.z(function(e){if(1==e.j)return g.x(e,Qw(b),2);d=e.u;return e.return(g.iw(d,["LogsRequestsStore"],{mode:"readwrite",Zb:!0},function(f){var h=f.objectStore("LogsRequestsStore");return h.get(a).then(function(l){return l?(l.status="NEW",c&&(l.sendCount+=1),g.jw(h,l).then(function(){return l})):g.aw.resolve(void 0)})}))})};
Tw=function(a,b){var c;return g.z(function(d){if(1==d.j)return g.x(d,Qw(b),2);c=d.u;return d.return(c.delete("LogsRequestsStore",a))})};
doa=function(a){var b,c;return g.z(function(d){if(1==d.j)return g.x(d,Qw(a),2);b=d.u;c=(0,g.T)()-2592E6;return g.x(d,g.iw(b,["LogsRequestsStore"],{mode:"readwrite",Zb:!0},function(e){return g.mw(e.objectStore("LogsRequestsStore"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return f.continue()})})}),0)})};
eoa=function(){g.z(function(a){return g.x(a,Qna(),0)})};
aoa=function(a){g.S("nwl_csi_killswitch")||.01>=Math.random()&&Iw("nwl_transaction_latency_payload",a)};
goa=function(a){return g.rw(foa(),a)};
hoa=function(a){var b,c;g.z(function(d){if(1==d.j)return g.x(d,goa(a),2);b=d.u;c=(0,g.T)()-2592E6;return g.x(d,g.iw(b,["SWHealthLog"],{mode:"readwrite",Zb:!0},function(e){return g.mw(e.objectStore("SWHealthLog"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return f.continue()})})}),0)})};
ioa=function(a){var b;return g.z(function(c){if(1==c.j)return g.x(c,goa(a),2);b=c.u;return g.x(c,b.clear("SWHealthLog"),0)})};
g.Uw=function(a,b,c,d,e,f){e=void 0===e?"":e;f=void 0===f?!1:f;if(a)if(c&&!g.Ou()){if(a){a=g.og(g.pg(a));if("about:invalid#zClosurez"===a||a.startsWith("data"))a="";else{var h=void 0===h?{}:h;a=a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;");h.Y5a&&(a=a.replace(/(^|[\r\n\t ]) /g,"$1&#160;"));h.X5a&&(a=a.replace(/(\r\n|\n|\r)/g,"<br>"));h.Z5a&&(a=a.replace(/(\t+)/g,'<span style="white-space:pre">$1</span>'));h=zg(a);a=g.Rg(g.di(g.yg(h).toString()))}g.cb(a)||
(h=gh("IFRAME",{src:'javascript:"<body><img src=\\""+'+a+'+"\\"></body>"',style:"display:none"}),Yg(h).body.appendChild(h))}}else if(e)zu(a,b,"POST",e,d);else if(g.O("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d)zu(a,b,"GET","",d,void 0,f);else{b:{try{var l=new Bga({url:a});if(l.B&&l.u||l.C){var m=hi(g.oi(5,a));var n=!(!m||!m.endsWith("/aclk")||"1"!==yi(a,"ri"));break b}}catch(p){}n=!1}n?joa(a)?(b&&b(),h=!0):h=!1:h=!1;h||koa(a,b)}};
joa=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1};
koa=function(a,b){var c=new Image,d=""+loa++;Vw[d]=c;c.onload=c.onerror=function(){b&&Vw[d]&&b();delete Vw[d]};
c.src=a};
Ww=function(){this.j=new Map;this.u=!1};
Xw=function(){if(!Ww.j){var a=g.Ga("yt.networkRequestMonitor.instance")||new Ww;g.Fa("yt.networkRequestMonitor.instance",a);Ww.j=a}return Ww.j};
Zw=function(){Yw||(Yw=new xv("yt.offline"));return Yw};
moa=function(a){if(g.S("offline_error_handling")){var b=Zw().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);Zw().set("errors",b,2592E3,!0)}};
$w=function(){g.Uf.call(this);var a=this;this.u=!1;this.j=jka();this.j.Ra("networkstatus-online",function(){if(a.u&&g.S("offline_error_handling")){var b=Zw().get("errors",!0);if(b){for(var c in b)if(b[c]){var d=new g.Pv(c,"sent via offline_errors");d.name=b[c].name;d.stack=b[c].stack;d.level=b[c].level;g.eu(d)}Zw().set("errors",{},2592E3,!0)}}})};
noa=function(){if(!$w.j){var a=g.Ga("yt.networkStatusManager.instance")||new $w;g.Fa("yt.networkStatusManager.instance",a);$w.j=a}return $w.j};
g.ax=function(a){a=void 0===a?{}:a;g.Uf.call(this);var b=this;this.j=this.D=0;this.u=noa();var c=g.Ga("yt.networkStatusManager.instance.listen").bind(this.u);c&&(a.eE?(this.eE=a.eE,c("networkstatus-online",function(){ooa(b,"publicytnetworkstatus-online")}),c("networkstatus-offline",function(){ooa(b,"publicytnetworkstatus-offline")})):(c("networkstatus-online",function(){b.dispatchEvent("publicytnetworkstatus-online")}),c("networkstatus-offline",function(){b.dispatchEvent("publicytnetworkstatus-offline")})))};
ooa=function(a,b){a.eE?a.j?(g.Tn.Zk(a.D),a.D=g.Tn.Jh(function(){a.C!==b&&(a.dispatchEvent(b),a.C=b,a.j=(0,g.T)())},a.eE-((0,g.T)()-a.j))):(a.dispatchEvent(b),a.C=b,a.j=(0,g.T)()):a.dispatchEvent(b)};
bx=function(){Cw.call(this,{jg:{QX:doa,Gv:Tw,gP:boa,p_:coa,yK:Sw,set:Rw},ag:poa(),handleError:g.eu,Zv:gu,Vo:qoa,now:g.T,GT:moa,xl:g.Cv(),WJ:"publicytnetworkstatus-online",rJ:"publicytnetworkstatus-offline",jC:!0,VB:.1,YD:g.au("potential_esf_error_limit",10),jb:g.S,yy:!(g.Rv()&&"www.youtube-nocookie.com"!==g.pi(document.location.toString()))});this.u=new g.Xi;g.S("networkless_immediately_drop_all_requests")&&eoa();Rna("LogsDatabaseV2")};
cx=function(){var a=g.Ga("yt.networklessRequestController.instance");a||(a=new bx,g.Fa("yt.networklessRequestController.instance",a),g.S("networkless_logging")&&g.Aw().then(function(b){a.Ye=b;Sna(a);a.u.resolve();a.jC&&Math.random()<=a.VB&&a.Ye&&hoa(a.Ye);g.S("networkless_immediately_drop_sw_health_store")&&roa(a)}));
return a};
roa=function(a){var b;g.z(function(c){if(!a.Ye)throw b=g.Zv("clearSWHealthLogsDb"),b;return c.return(ioa(a.Ye).catch(function(d){a.handleError(d)}))})};
qoa=function(a,b,c){g.S("use_cfr_monitor")&&soa(a,b);if(g.S("use_request_time_ms_header"))b.headers&&(b.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.T)())));else{var d;if(null==(d=b.postParams)?0:d.requestTimeMs)b.postParams.requestTimeMs=Math.round((0,g.T)())}c&&0===Object.keys(b).length?g.Uw(a):g.Au(a,b)};
poa=function(){gx||(gx=new g.ax({k_:!0,vY:!0}));return gx};
soa=function(a,b){var c=b.onError?b.onError:function(){};
b.onError=function(e,f){Xw().requestComplete(a,!1);c(e,f)};
var d=b.onSuccess?b.onSuccess:function(){};
b.onSuccess=function(e,f){Xw().requestComplete(a,!0);d(e,f)}};
toa=function(a,b){function c(d){var e=hx().tf();if(!ix()||!d||e&&g.S("vss_networkless_bypass_write"))jx(a,b);else{var f={url:a,options:b,timestamp:(0,g.T)(),status:"NEW",sendCount:0};Rw(f,d).then(function(h){f.id=h;hx().tf()&&kx(f)}).catch(function(h){kx(f);
lx(h)})}}
b=void 0===b?{}:b;g.S("skip_is_supported_killswitch")?g.Aw().then(function(d){c(d)}):c(yw())};
mx=function(a,b,c){function d(e){if(ix()&&e){var f={url:a,options:b,timestamp:(0,g.T)(),status:"NEW",sendCount:0};g.S("nwl_skip_retry")&&(f.skipRetry=c);if(hx().tf()||g.S("nwl_aggressive_send_then_write")&&!f.skipRetry){if(!f.skipRetry){var h=b.onError?b.onError:function(){};
b.onError=function(l,m){return g.z(function(n){if(1==n.j)return g.x(n,Rw(f,e).catch(function(p){lx(p)}),2);
h(l,m);g.na(n)})}}jx(a,b,f.skipRetry)}else Rw(f,e).catch(function(l){jx(a,b,g.S("nwl_skip_retry")&&c);
lx(l)})}else jx(a,b,g.S("nwl_skip_retry")&&c)}
b=void 0===b?{}:b;g.S("skip_is_supported_killswitch")?g.Aw().then(function(e){d(e)}):d(yw())};
nx=function(a,b){function c(d){if(ix()&&d){var e={url:a,options:b,timestamp:(0,g.T)(),status:"NEW",sendCount:0},f=!1,h=b.onSuccess?b.onSuccess:function(){};
e.options.onSuccess=function(m,n){g.S("use_cfr_monitor")&&Xw().requestComplete(e.url,!0);void 0!==e.id?Tw(e.id,d):f=!0;g.S("vss_network_hint")&&hx().Lo(!0);h(m,n)};
if(g.S("use_cfr_monitor")){var l=b.onError?b.onError:function(){};
e.options.onError=function(m,n){Xw().requestComplete(e.url,!1);l(m,n)}}jx(e.url,e.options);
Rw(e,d).then(function(m){e.id=m;f&&Tw(e.id,d)}).catch(function(m){lx(m)})}else jx(a,b)}
b=void 0===b?{}:b;g.S("skip_is_supported_killswitch")?g.Aw().then(function(d){c(d)}):c(yw())};
uoa=function(){var a=yw();if(!a)throw g.Zv("throttleSend");ox||(ox=g.Tn.Jh(function(){var b;return g.z(function(c){if(1==c.j)return g.x(c,boa("NEW",a),2);if(3!=c.j)return b=c.u,b?g.x(c,kx(b),3):(g.Tn.Zk(ox),ox=0,c.return());ox&&(ox=0,uoa());g.na(c)})},100))};
kx=function(a){var b,c,d;return g.z(function(e){switch(e.j){case 1:b=yw();if(!b)throw c=g.Zv("immediateSend"),c;if(void 0===a.id){e.Ma(2);break}return g.x(e,coa(a.id,b),3);case 3:(d=e.u)?a=d:gu(Error("The request cannot be found in the database."));case 2:var f=a.timestamp;if(!(2592E6<=(0,g.T)()-f)){e.Ma(4);break}gu(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===a.id){e.Ma(5);break}return g.x(e,Tw(a.id,b),5);case 5:return e.return();case 4:a.skipRetry||(a=voa(a));
f=a;if(g.S("use_request_time_ms_header")){var h;if(null==f?0:null==(h=f.options)?0:h.headers)f.options.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.T)()))}else{var l,m;if(null==f?0:null==(l=f.options)?0:null==(m=l.postParams)?0:m.requestTimeMs)f.options.postParams.requestTimeMs=Math.round((0,g.T)())}a=f;if(!a){e.Ma(0);break}if(!a.skipRetry||void 0===a.id){e.Ma(8);break}return g.x(e,Tw(a.id,b),8);case 8:jx(a.url,a.options,!!a.skipRetry),g.na(e)}})};
voa=function(a){var b=yw();if(!b)throw g.Zv("updateRequestHandlers");var c=a.options.onError?a.options.onError:function(){};
a.options.onError=function(e,f){var h,l,m;return g.z(function(n){switch(n.j){case 1:g.S("use_cfr_monitor")&&Xw().requestComplete(a.url,!1);h=Wna(f);if(!(g.S("nwl_consider_error_code")&&h||!g.S("nwl_consider_error_code")&&woa()<=g.au("potential_esf_error_limit",10))){n.Ma(2);break}if(g.S("skip_checking_network_on_cfr_failure")&&(!g.S("skip_checking_network_on_cfr_failure")||Xw().isEndpointCFR(a.url))){n.Ma(3);break}return g.x(n,hx().vA(),3);case 3:if(hx().tf()){n.Ma(2);break}c(e,f);if(!g.S("nwl_consider_error_code")||
void 0===(null==(l=a)?void 0:l.id)){n.Ma(6);break}return g.x(n,Sw(a.id,b,!1),6);case 6:return n.return();case 2:if(g.S("nwl_consider_error_code")&&!h&&woa()>g.au("potential_esf_error_limit",10))return n.return();g.Ga("ytNetworklessLoggingInitializationOptions")&&px.potentialEsfErrorCounter++;qx++;if(void 0===(null==(m=a)?void 0:m.id)){n.Ma(8);break}return 1>a.sendCount?g.x(n,Sw(a.id,b),12):g.x(n,Tw(a.id,b),8);case 12:g.Tn.Jh(function(){hx().tf()&&uoa()},5E3);
case 8:c(e,f),g.na(n)}})};
var d=a.options.onSuccess?a.options.onSuccess:function(){};
a.options.onSuccess=function(e,f){var h;return g.z(function(l){if(1==l.j)return g.S("use_cfr_monitor")&&Xw().requestComplete(a.url,!0),void 0===(null==(h=a)?void 0:h.id)?l.Ma(2):g.x(l,Tw(a.id,b),2);g.S("vss_network_hint")&&hx().Lo(!0);d(e,f);g.na(l)})};
return a};
hx=function(){if(g.S("use_new_nwl"))return poa();rx||(rx=new g.ax({k_:!0,vY:!0}));return rx};
lx=function(a){hx().tf()?g.eu(a):moa(a)};
jx=function(a,b,c){c&&0===Object.keys(b).length?g.Uw(a):g.Au(a,b)};
ix=function(){return g.Ga("ytNetworklessLoggingInitializationOptions")?px.isNwlInitialized:!1};
woa=function(){return g.Ga("ytNetworklessLoggingInitializationOptions")?px.potentialEsfErrorCounter:qx};
g.sx=function(a){this.config_=null;a?this.config_=a:Sma()&&(this.config_=g.vv())};
g.tx=function(a,b,c,d){function e(p){try{(void 0===p?0:p)&&d.retry&&!d.EQ.bypassNetworkless?(f.method="POST",d.EQ.writeThenSend?g.S("use_new_nwl_wts")?cx().writeThenSend(n,f):toa(n,f):g.S("use_new_nwl_saw")?cx().sendAndWrite(n,f):nx(n,f)):g.S("web_all_payloads_via_jspb")?g.Au(n,f):(f.method="POST",f.postParams||(f.postParams={}),g.Au(n,f))}catch(q){if("InvalidAccessError"==q.name)gu(Error("An extension is blocking network request."));else throw q;}}
!g.O("VISITOR_DATA")&&"visitor_id"!==b&&.01>Math.random()&&gu(new g.Pv("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady())throw a=new g.Pv("innertube xhrclient not ready",b,c,d),g.eu(a),a;var f={headers:d.headers||{},method:"POST",postParams:c,postBody:d.postBody,postBodyFormat:d.postBodyFormat||"JSON",onTimeout:function(){d.onTimeout()},
onFetchTimeout:d.onTimeout,onSuccess:function(p,q){if(d.onSuccess)d.onSuccess(q)},
onFetchSuccess:function(p){if(d.onSuccess)d.onSuccess(p)},
onError:function(p,q){if(d.onError)d.onError(q)},
onFetchError:function(p){if(d.onError)d.onError(p)},
timeout:d.timeout,withCredentials:!0};f.headers["Content-Type"]||(f.headers["Content-Type"]="application/json");c="";var h=a.config_.NP;h&&(c=h);h=ana(a.config_.OP||!1,c,d);Object.assign(f.headers,h);(h=f.headers.Authorization)&&!c&&(f.headers["x-origin"]=window.location.origin);b="/youtubei/"+a.config_.innertubeApiVersion+"/"+b;var l={alt:"json"},m=a.config_.AI&&h;m=m&&h.startsWith("Bearer");m||(l.key=a.config_.innertubeApiKey);var n=mu(""+c+b,l);g.S("use_new_nwl")&&cx().Ze||!g.S("use_new_nwl")&&
ix()?Jna().then(function(p){e(p)}):e(!1)};
xoa=function(){var a=document;if("visibilityState"in a)return a.visibilityState;var b=ux+"VisibilityState";if(b in a)return a[b]};
vx=function(a,b){var c;Ol(a,function(d){c=b[d];return!!c});
return c};
wx=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 yoa||(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.j=a.pageX;this.u=a.pageY}}catch(e){}};
zoa=function(a){if(document.body&&document.documentElement){var b=document.body.scrollTop+document.documentElement.scrollTop;a.j=a.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);a.u=a.clientY+b}};
Aoa=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 uf(xx,function(e){var f="boolean"===typeof e[4]&&e[4]==!!d,h=g.Ma(e[4])&&g.Ma(d)&&g.Ff(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||h)})};
g.yx=function(a,b,c,d){d=void 0===d?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=Aoa(a,b,c,d);if(e)return e;e=++Boa.count+"";var f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document);var h=f?function(l){l=new wx(l);if(!th(l.relatedTarget,function(m){return m==a},!0))return l.currentTarget=a,l.type=b,c.call(a,l)}:function(l){l=new wx(l);
l.currentTarget=a;return c.call(a,l)};
h=fu(h);a.addEventListener?("mouseenter"==b&&f?b="mouseover":"mouseleave"==b&&f?b="mouseout":"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),Coa()||"boolean"===typeof d?a.addEventListener(b,h,d):a.addEventListener(b,h,!!d.capture)):a.attachEvent("on"+b,h);xx[e]=[a,b,c,h,d];return e};
Doa=function(a,b){var c=document.body||document;return g.yx(c,"click",function(d){var e=th(d.target,function(f){return f===c||b(f)},!0);
e&&e!==c&&!e.disabled&&(d.currentTarget=e,a.call(e,d))})};
g.zx=function(a){a&&("string"==typeof a&&(a=[a]),g.qc(a,function(b){if(b in xx){var c=xx[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?Coa()||"boolean"===typeof c?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete xx[b]}}))};
g.Ax=function(a){a=a||window.event;a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a};
Bx=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.Ax(a)};
Cx=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};
Dx=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.Ig(b,c)};
g.Ex=function(a){a=a||window.event;a.returnValue=!1;a.preventDefault&&a.preventDefault()};
g.Fx=function(a){a=a||window.event;return!1===a.returnValue||a.TP&&a.TP()};
g.Gx=function(a){a=a||window.event;return a.keyCode?a.keyCode:a.which};
Eoa=function(a){return Doa(a,function(b){return g.eo(b,"ytp-ad-has-logging-urls")})};
g.Foa=function(a,b,c){var d=void 0===d?{}:d;var e;return e=g.yx(a,b,function(){g.zx(e);c.apply(a,arguments)},d)};
Hx=function(a){for(var b in xx)xx[b][0]==a&&g.zx(b)};
Ix=function(a){this.J=a;this.j=null;this.C=0;this.I=null;this.D=0;this.u=[];for(a=0;4>a;a++)this.u.push(0);this.B=0;this.qa=g.yx(window,"mousemove",(0,g.Pa)(this.Z,this));this.S=g.wu((0,g.Pa)(this.ea,this),25)};
Lx=function(){var a={},b=void 0===a.L3?!1:a.L3;a=void 0===a.wY?!0:a.wY;if(null==g.Ga("_lact",window)){var c=parseInt(g.O("LACT"),10);c=isFinite(c)?Date.now()-Math.max(c,0):-1;g.Fa("_lact",c,window);g.Fa("_fact",c,window);-1==c&&Jx();g.yx(document,"keydown",Jx);g.yx(document,"keyup",Jx);g.yx(document,"mousedown",Jx);g.yx(document,"mouseup",Jx);b?g.yx(window,"touchmove",function(){Kx("touchmove",200)},{passive:!0}):(g.yx(window,"resize",function(){Kx("resize",200)}),a&&g.yx(window,"scroll",function(){Kx("scroll",
200)}));
new Ix(function(){Kx("mouse",100)});
g.yx(document,"touchstart",Jx,{passive:!0});g.yx(document,"touchend",Jx,{passive:!0})}};
Kx=function(a,b){Mx[a]||(Mx[a]=!0,g.Tn.Jh(function(){Jx();Mx[a]=!1},b))};
Jx=function(){null==g.Ga("_lact",window)&&(Lx(),g.Ga("_lact",window));var a=Date.now();g.Fa("_lact",a,window);-1==g.Ga("_fact",window)&&g.Fa("_fact",a,window);(a=g.Ga("ytglobal.ytUtilActivityCallback_"))&&a()};
Nx=function(){var a=g.Ga("_lact",window);return null==a?-1:Math.max(Date.now()-a,0)};
g.Sx=function(a,b,c){var d=g.Ox();if(d&&b){var e=d.subscribe(a,function(){var f=arguments;var h=function(){Px[e]&&b.apply&&"function"==typeof b.apply&&b.apply(c||window,f)};
try{g.Qx[a]?h():g.vu(h,0)}catch(l){g.eu(l)}},c);
Px[e]=!0;Rx[a]||(Rx[a]=[]);Rx[a].push(e);return e}return 0};
g.Tx=function(a){var b=g.Ox();b&&("number"===typeof a?a=[a]:"string"===typeof a&&(a=[parseInt(a,10)]),g.qc(a,function(c){b.unsubscribeByKey(c);delete Px[c]}))};
g.Ux=function(a,b){var c=g.Ox();return c?c.publish.apply(c,arguments):!1};
Hoa=function(a){var b=g.Ox();if(b)if(b.clear(a),a)Goa(a);else for(var c in Rx)Goa(c)};
g.Ox=function(){return g.C.ytPubsubPubsubInstance};
Goa=function(a){Rx[a]&&(a=Rx[a],g.qc(a,function(b){Px[b]&&delete Px[b]}),a.length=0)};
Vx=function(){this.store=[];this.j={}};
Joa=function(a,b){var c=Object.keys(b),d="THIS_KEY_FIELD_NOT_FILLED",e="THIS_KEY_FIELD_NOT_FILLED",f="THIS_KEY_FIELD_NOT_FILLED";c=g.r(c);for(var h=c.next();!h.done;h=c.next())h=h.value,"auth"===h?d=Ioa(b.auth):"isJspb"===h?e=JSON.stringify(b.isJspb):"cttAuthInfo"===h&&(f=Ioa(b.cttAuthInfo));b=[];d=[d,e,f];a=g.r(Object.keys(a.j));for(e=a.next();!e.done;e=a.next()){e=e.value;f=e.split("/");c=!0;for(h=0;h<d.length;h++)if("THIS_KEY_FIELD_NOT_FILLED"!==d[h]&&d[h]!==f[h]){c=!1;break}c&&b.push(e)}return b};
Koa=function(a){return[void 0===a.auth?"undefined":a.auth,void 0===a.isJspb?"undefined":a.isJspb,void 0===a.cttAuthInfo?"undefined":a.cttAuthInfo].join("/")};
Ioa=function(a){return void 0===a?"undefined":a};
Loa=function(){this.B=this.j=this.u=0};
Wx=function(){var a=g.Ga("yt.logging.ims");a||(a=new Vx,g.Fa("yt.logging.ims",a));return a};
Moa=function(a,b){g.S("web_all_payloads_via_jspb")&&gu(new g.Pv("transport.log called for JSON in JSPB only experiment"));if("log_event"===a.endpoint){Xx(a);var c=Yx(a);if(g.S("use_new_in_memory_storage")){Zx[c]=!0;var d={cttAuthInfo:c,isJspb:!1};Wx().storePayload(d,a.payload);$x(b,[],c,!1,d)}else d=ay.get(c)||[],ay.set(c,d),d.push(a.payload),$x(b,d,c)}};
Noa=function(a,b){if("log_event"===a.endpoint){Xx(void 0,a);var c=Yx(a,!0);if(g.S("use_new_in_memory_storage")){Zx[c]=!0;var d={cttAuthInfo:c,isJspb:!0};Wx().storePayload(d,a.payload.toJSON());$x(b,[],c,!0,d)}else d=by.get(c)||[],by.set(c,d),a=a.payload.toJSON(),d.push(a),$x(b,d,c,!0)}};
$x=function(a,b,c,d,e){d=void 0===d?!1:d;a&&(cy=new a);a=g.au("tvhtml5_logging_max_batch")||g.au("web_logging_max_batch")||100;var f=(0,g.T)(),h=d?dy.B:ey.B;b=b.length;e&&(b=Wx().getSequenceCount(e));b>=a?g.S("background_thread_flush_logs_due_to_batch_limit")?g.vu(function(){fy({writeThenSend:!0},g.S("flush_only_full_queue")?c:void 0,d)},0):fy({writeThenSend:!0},g.S("flush_only_full_queue")?c:void 0,d):10<=f-h&&(Ooa(d),d?dy.B=f:ey.B=f)};
Poa=function(a,b){g.S("web_all_payloads_via_jspb")&&gu(new g.Pv("transport.logIsolatedGelPayload called in JSPB only experiment"));if("log_event"===a.endpoint){Xx(a);var c=Yx(a),d=new Map;d.set(c,[a.payload]);b&&(cy=new b);return new g.Dh(function(e,f){cy&&cy.isReady()?gy(d,cy,e,f,{bypassNetworkless:!0},!0):e()})}};
Qoa=function(a,b){if("log_event"===a.endpoint){Xx(void 0,a);var c=Yx(a,!0),d=new Map;d.set(c,[a.payload.toJSON()]);b&&(cy=new b);return new g.Dh(function(e){cy&&cy.isReady()?hy(d,cy,e,{bypassNetworkless:!0},!0):e()})}};
Yx=function(a,b){var c="";if(a.vy)c="visitorOnlyApprovedKey";else if(a.cttAuthInfo){if(void 0===b?0:b){b=a.cttAuthInfo.token;c=a.cttAuthInfo;var d=new Wt;c.videoId?d.setVideoId(c.videoId):c.playlistId&&g.Dd(d,2,iy,c.playlistId);jy[b]=d}else b=a.cttAuthInfo,c={},b.videoId?c.videoId=b.videoId:b.playlistId&&(c.playlistId=b.playlistId),ky[a.cttAuthInfo.token]=c;c=a.cttAuthInfo.token}return c};
fy=function(a,b,c){a=void 0===a?{}:a;c=void 0===c?!1:c;!c&&g.S("web_all_payloads_via_jspb")&&gu(new g.Pv("transport.flushLogs called for JSON in JSPB only experiment"));new g.Dh(function(d,e){c?(g.xu(dy.u),g.xu(dy.j),dy.j=0):(g.xu(ey.u),g.xu(ey.j),ey.j=0);if(cy&&cy.isReady())if(g.S("use_new_in_memory_storage")){var f=a,h=c,l=cy;f=void 0===f?{}:f;h=void 0===h?!1:h;var m=new Map,n=new Map;if(void 0!==b)h?(e=Wx().extractMatchingEntries({isJspb:h,cttAuthInfo:b}),m.set(b,e),hy(m,l,d,f)):(m=Wx().extractMatchingEntries({isJspb:h,
cttAuthInfo:b}),n.set(b,m),gy(n,l,d,e,f));else if(h){e=g.r(Object.keys(Zx));for(h=e.next();!h.done;h=e.next())n=h.value,h=Wx().extractMatchingEntries({isJspb:!0,cttAuthInfo:n}),0<h.length&&m.set(n,h),delete Zx[n];hy(m,l,d,f)}else{m=g.r(Object.keys(Zx));for(h=m.next();!h.done;h=m.next()){h=h.value;var p=Wx().extractMatchingEntries({isJspb:!1,cttAuthInfo:h});0<p.length&&n.set(h,p);delete Zx[h]}gy(n,l,d,e,f)}}else f=a,m=c,l=cy,f=void 0===f?{}:f,m=void 0===m?!1:m,void 0!==b?m?(e=new Map,m=by.get(b)||
[],e.set(b,m),hy(e,l,d,f),by.delete(b)):(m=new Map,n=ay.get(b)||[],m.set(b,n),gy(m,l,d,e,f),ay.delete(b)):m?(hy(by,l,d,f),by.clear()):(gy(ay,l,d,e,f),ay.clear());else Ooa(c),d()})};
Ooa=function(a){a=void 0===a?!1:a;if(g.S("web_gel_timeout_cap")&&(!a&&!ey.j||a&&!dy.j)){var b=g.vu(function(){fy({writeThenSend:!0},void 0,a)},6E4);
a?dy.j=b:ey.j=b}g.xu(a?dy.u:ey.u);b=g.O("LOGGING_BATCH_TIMEOUT",g.au("web_gel_debounce_ms",1E4));g.S("shorten_initial_gel_batch_timeout")&&ly&&(b=Roa);b=g.vu(function(){fy({writeThenSend:!0},void 0,a)},b);
a?dy.u=b:ey.u=b};
gy=function(a,b,c,d,e,f){e=void 0===e?{}:e;var h=Math.round((0,g.T)()),l=a.size;a=g.r(a);for(var m=a.next();!m.done;m=a.next()){var n=g.r(m.value);m=n.next().value;var p=n.next().value;n=m;m=g.Hf({context:g.wv(b.config_||g.vv())});if(!g.La(p)&&!g.S("throw_err_when_logevent_malformed_killswitch")){d();break}m.events=p;(p=ky[n])&&Soa(m,n,p);delete ky[n];n="visitorOnlyApprovedKey"===n;Toa(m,h,n);Uoa(e);p=function(){l--;l||c()};
var q=function(){l--;l||c()};
try{g.tx(b,"log_event",m,Voa(e,n,p,q,f)),ly=!1}catch(u){g.eu(u),d()}}};
hy=function(a,b,c,d,e){d=void 0===d?{}:d;var f=Math.round((0,g.T)()),h=a.size,l=new Map([].concat(g.t(a)));l=g.r(l);for(var m=l.next();!m.done;m=l.next()){var n=g.r(m.value).next().value,p=a.get(n);m=new Xt;var q=Xma(b.config_||g.vv());F(m,iq,1,q);p=p?Woa(p):[];p=g.r(p);for(q=p.next();!q.done;q=p.next())Kd(m,3,Ut,q.value);(p=jy[n])&&Xoa(m,n,p);delete jy[n];n="visitorOnlyApprovedKey"===n;Yoa(m,f,n);Uoa(d);m=Wd(m);n=Voa(d,n,function(){h--;h||c()},function(){h--;
h||c()},e);
n.headers["Content-Type"]="application/json+protobuf";n.postBodyFormat="JSPB";n.postBody=m;g.tx(b,"log_event","",n);ly=!1}};
Uoa=function(a){g.S("always_send_and_write")&&(a.writeThenSend=!1)};
Voa=function(a,b,c,d,e){a={retry:!0,onSuccess:c,onError:d,EQ:a,vy:b,X4a:!!e,headers:{},postBodyFormat:"",postBody:""};g.S("use_request_time_ms_header")&&(a.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.T)())));return a};
Toa=function(a,b,c){g.S("use_request_time_ms_header")||(a.requestTimeMs=String(b));g.S("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);!c&&(b=g.O("EVENT_ID"))&&(c=Zoa(),a.serializedClientEventId={serializedEventId:b,clientCounter:String(c)})};
Yoa=function(a,b,c){g.S("use_request_time_ms_header")||g.E(a,2,b);if(!c&&(b=g.O("EVENT_ID"))){c=Zoa();var d=new Vt;g.E(d,1,b);g.E(d,2,c);F(a,Vt,5,d)}};
Zoa=function(){var a=g.O("BATCH_CLIENT_COUNTER")||0;a||(a=Math.floor(Math.random()*$oa/2));a++;a>$oa&&(a=1);Zt("BATCH_CLIENT_COUNTER",a);return a};
Soa=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}]};
Xoa=function(a,b,c){if(c.Tf())var d=1;else if(c.getPlaylistId())d=2;else return;F(a,Wt,4,c);a=a.getContext()||new iq;c=Ed(a,hq,3)||new hq;var e=new gq;e.setToken(b);g.E(e,1,d);Kd(c,12,gq,e);F(a,hq,3,c)};
Woa=function(a){for(var b=[],c=0;c<a.length;c++)try{b.push(new Ut(a[c]))}catch(d){g.eu(new g.Pv("Transport failed to deserialize "+String(a[c])))}return b};
Xx=function(a,b){if(g.Ga("yt.logging.transport.enableScrapingForTest")){var c=g.Ga("yt.logging.transport.scrapedPayloadsForTesting"),d=g.Ga("yt.logging.transport.payloadToScrape","");b&&(b=b.payload,(b=g.Ga("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(b)())&&c.push(b));a&&a.payload[d]&&c.push((null==a?void 0:a.payload)[d]);g.Fa("yt.logging.transport.scrapedPayloadsForTesting",c)}};
ny=function(a,b,c,d){d=void 0===d?{}:d;var e={},f=Math.round(d.timestamp||(0,g.T)());e.eventTimeMs=f<Number.MAX_SAFE_INTEGER?f:0;e[a]=b;g.S("enable_unknown_lact_fix_on_html5")&&Lx();a=Nx();e.context={lastActivityMs:String(d.timestamp||!isFinite(a)?-1:a)};g.S("log_sequence_info_on_gel_web")&&d.Ck&&(a=e.context,b=d.Ck,b={index:apa(b),groupKey:b},a.sequence=b,d.HO&&delete my[d.Ck]);(d.JK?Poa:Moa)({endpoint:"log_event",payload:e,cttAuthInfo:d.cttAuthInfo,vy:d.vy},c)};
oy=function(a){fy(void 0,void 0,void 0===a?!1:a)};
apa=function(a){my[a]=a in my?my[a]+1:0;return my[a]};
g.cpa=function(a,b,c){c=void 0===c?{}:c;var d=bpa;g.O("ytLoggingEventsDefaultDisabled",!1)&&bpa===g.sx&&(d=null);if(g.S("web_all_payloads_via_jspb")&&py&&qy)if(c=py[a])if((b=c(b))&&qy[a])qy[a](b);else gu(new g.Pv("Unable to call logFn for payload",a));else gu(new g.Pv("Unable to translate payload to JSPB",a));else g.S("web_all_payloads_via_jspb")&&gu(new g.Pv("Logs should be translated to JSPB but are sent as JSON instead",a)),ny(a,b,d,c)};
ry=function(a,b,c){c=void 0===c?{}:c;var d=Math.round(c.timestamp||(0,g.T)());g.E(a,1,d<Number.MAX_SAFE_INTEGER?d:0);var e=Nx();d=new Tt;g.E(d,1,c.timestamp||!isFinite(e)?-1:e);if(g.S("log_sequence_info_on_gel_web")&&c.Ck){e=c.Ck;var f=apa(e),h=new St;g.E(h,2,f);g.E(h,1,e);F(d,St,3,h);c.HO&&delete dpa[c.Ck]}F(a,Tt,33,d);(c.JK?Qoa:Noa)({endpoint:"log_event",payload:a,cttAuthInfo:c.cttAuthInfo,vy:c.vy},b)};
sy=function(a,b){b=void 0===b?{}:b;var c=!1;g.O("ytLoggingEventsDefaultDisabled",!1)&&(c=!0);ry(a,c?null:g.sx,b)};
uy=function(a,b){var c=new Ut;Gd(c,qt,72,ty,a);sy(c,b)};
epa=function(a,b,c){var d=new Ut;Gd(d,pt,73,ty,a);c?ry(d,c,b):sy(d,b)};
fpa=function(a,b,c){var d=new Ut;Gd(d,ot,78,ty,a);c?ry(d,c,b):sy(d,b)};
gpa=function(a,b,c){var d=new Ut;Gd(d,rt,208,ty,a);c?ry(d,c,b):sy(d,b)};
hpa=function(a,b,c){var d=new Ut;Gd(d,lt,156,ty,a);c?ry(d,c,b):sy(d,b)};
ipa=function(a,b,c){var d=new Ut;Gd(d,jt,202,ty,a);c?ry(d,c,b):sy(d,b)};
jpa=function(a,b,c){var d=new Ut;Gd(d,nt,215,ty,a);c?ry(d,c,b):sy(d,b)};
kpa=function(a,b,c){var d=new Ut;Gd(d,$s,111,ty,a);c?ry(d,c,b):sy(d,b)};
Ppa=function(a){var b=new xs;try{a.encryptedVideoId&&g.E(b,1,a.encryptedVideoId);a.cotn&&g.E(b,20,a.cotn);a.cpn&&g.E(b,30,a.cpn);a.H5&&g.E(b,38,lpa[a.H5]);a.W4&&g.E(b,2,mpa[a.W4]);a.us&&g.E(b,3,npa[a.us]);a.G5&&g.E(b,41,opa[a.G5]);a.failureExceptionType&&g.E(b,37,a.failureExceptionType);a.totalFetchedKbytes&&g.E(b,4,a.totalFetchedKbytes);a.diskAvailableKbytes&&g.E(b,5,a.diskAvailableKbytes);a.totalContentKbytes&&g.E(b,21,a.totalContentKbytes);a.alreadyDownloadedKbytes&&g.E(b,22,a.alreadyDownloadedKbytes);
a.fetchedFromCacheKbytes&&g.E(b,23,a.fetchedFromCacheKbytes);if(a.systemHealth){a:{var c=a.systemHealth,d=new Gr;try{c.tag&&g.E(d,1,ppa[c.tag]);if(c.staticContext){b:{var e=c.staticContext,f=new Br;try{e.displayDensityDpi&&g.E(f,1,e.displayDensityDpi);e.heightPixels&&g.E(f,2,e.heightPixels);e.widthPixels&&g.E(f,3,e.widthPixels);e.memoryTotalKbytes&&g.E(f,4,e.memoryTotalKbytes);e.osSdkVersion&&g.E(f,5,e.osSdkVersion);e.osIncrementalVersion&&g.E(f,6,e.osIncrementalVersion);e.hardwareArchitecture&&g.E(f,
7,e.hardwareArchitecture);e.appVersionCode&&g.E(f,8,e.appVersionCode);e.devicePixelRatio&&g.E(f,9,e.devicePixelRatio);e.buildFingerprint&&g.E(f,10,e.buildFingerprint);e.socManufacturer&&g.E(f,11,e.socManufacturer);e.socModel&&g.E(f,12,e.socModel);e.availableProcessors&&g.E(f,13,e.availableProcessors);e.cpuCores&&g.E(f,14,e.cpuCores);e.heightPoints&&g.E(f,15,e.heightPoints);e.widthPoints&&g.E(f,16,e.widthPoints);e.androidMediaPerformanceClass&&g.E(f,17,e.androidMediaPerformanceClass);var h=f;break b}catch(Kb){}h=
void 0}F(d,Br,2,h)}if(c.dynamicContext){b:{var l=c.dynamicContext,m=new vr;try{l.screenOn&&g.E(m,1,l.screenOn);l.deviceRotation&&g.E(m,2,l.deviceRotation);l.networkType&&g.E(m,3,l.networkType);l.networkCoarseState&&g.E(m,4,l.networkCoarseState);l.LX&&g.E(m,5,qpa[l.LX]);l.isInForeground&&g.E(m,6,l.isInForeground);l.viewportHeightPixels&&g.E(m,7,l.viewportHeightPixels);l.viewportWidthPixels&&g.E(m,8,l.viewportWidthPixels);l.hasCoarsePointer&&g.E(m,9,l.hasCoarsePointer);l.hasFinePointer&&g.E(m,10,l.hasFinePointer);
l.hasHoverSupport&&g.E(m,11,l.hasHoverSupport);l.deviceFreeStorageMbytes&&g.E(m,12,l.deviceFreeStorageMbytes);l.deviceStorageQuotaMbytes&&g.E(m,13,l.deviceStorageQuotaMbytes);l.deviceStorageUsageMbytes&&g.E(m,14,l.deviceStorageUsageMbytes);l.processUptimeMs&&g.E(m,15,l.processUptimeMs);l.hasAppShell&&g.E(m,16,l.hasAppShell);l.glVersion&&g.E(m,17,l.glVersion);l.glRenderer&&g.E(m,18,l.glRenderer);if(l.srsDatapushBuildIds){c:{var n=l.srsDatapushBuildIds,p=new cq;try{if(n.datapushBuild){var q=rpa(n.datapushBuild);
F(p,aq,1,q)}var u=p;break c}catch(Kb){}u=void 0}Kd(m,19,cq,u)}if(l.playerDatapushBuildIds){c:{var w=l.playerDatapushBuildIds,y=new bq;try{if(w.datapushBuild){var A=rpa(w.datapushBuild);F(y,aq,1,A)}var B=y;break c}catch(Kb){}B=void 0}Kd(m,20,bq,B)}var D=m;break b}catch(Kb){}D=void 0}F(d,vr,3,D)}c.serializedPrimesMetric&&Jd(d,4,c.serializedPrimesMetric);c.serializedIosPrimesMetric&&Jd(d,6,c.serializedIosPrimesMetric);if(c.webMetric){b:{var G=c.webMetric,H=new Dr;try{G.currentHeapKbytes&&g.E(H,1,G.currentHeapKbytes);
G.navigationCount&&g.E(H,2,G.navigationCount);var L=H;break b}catch(Kb){}L=void 0}F(d,Dr,7,L)}if(c.crashData){b:{var N=c.crashData,K=new sr;try{N.stackTrace&&g.E(K,1,N.stackTrace);N.screenVeType&&g.E(K,2,N.screenVeType);if(N.compactStackTrace){var P=vy(N.compactStackTrace);F(K,br,3,P)}N.crashTimeMs&&g.E(K,4,N.crashTimeMs);if(N.clientError){c:{var R=N.clientError,X=new rr;try{if(R.errorMetadata){d:{var Q=R.errorMetadata,oa=new kr;try{Q.FY&&g.E(oa,1,spa[Q.FY]);if(Q.serviceTrackingData){e:{var sa=Q.serviceTrackingData,
Ba=new ir;try{sa.innertubeBuildChangelist&&g.E(Ba,1,sa.innertubeBuildChangelist);sa.innertubeBuildExperimentsSourceVersion&&g.E(Ba,2,sa.innertubeBuildExperimentsSourceVersion);sa.innertubeBuildLabel&&g.E(Ba,3,sa.innertubeBuildLabel);sa.innertubeBuildTimestampSec&&g.E(Ba,4,sa.innertubeBuildTimestampSec);sa.innertubeBuildVariantsChecksum&&g.E(Ba,5,sa.innertubeBuildVariantsChecksum);sa.innertubeJobName&&g.E(Ba,6,sa.innertubeJobName);var ya=Ba;break e}catch(Kb){}ya=void 0}F(oa,ir,2,ya)}Q.pageUrl&&g.E(oa,
3,Q.pageUrl);if(Q.kvPairs){e:{var va=Q.kvPairs,Ja=new lr;try{va.key&&g.E(Ja,1,va.key);va.value&&Ja.setValue(va.value);var Ka=Ja;break e}catch(Kb){}Ka=void 0}Kd(oa,4,lr,Ka)}Q.experimentIds&&g.Bd(oa,5,Q.experimentIds);if(Q.playerMetadata){e:{var qa=Q.playerMetadata,kb=new jr;try{qa.error&&g.Bd(kb,1,tpa[qa.error]);qa.stackTrace&&g.E(kb,2,qa.stackTrace);var Mb=kb;break e}catch(Kb){}Mb=void 0}F(oa,jr,6,Mb)}Q.GY&&g.E(oa,7,upa[Q.GY]);var Ta=oa;break d}catch(Kb){}Ta=void 0}F(X,kr,1,Ta)}if(R.stackTrace){d:{var fb=
R.stackTrace,Yb=new pr;try{fb.isObfuscated&&g.E(Yb,1,fb.isObfuscated);if(fb.androidStackInfo){e:{var Ua=fb.androidStackInfo,$a=new mr;try{Ua.serializedThrowable&&Jd($a,1,Ua.serializedThrowable);var ub=$a;break e}catch(Kb){}ub=void 0}Gd(Yb,mr,2,wy,ub)}if(fb.browserStackInfo){e:{var dc=fb.browserStackInfo,Qb=new nr;try{dc.stackTrace&&g.E(Qb,1,dc.stackTrace);dc.lineNumber&&g.E(Qb,2,dc.lineNumber);dc.columnNumber&&g.E(Qb,3,dc.columnNumber);dc.filename&&g.E(Qb,4,dc.filename);var Nc=Qb;break e}catch(Kb){}Nc=
void 0}Gd(Yb,nr,3,wy,Nc)}if(fb.iosStackInfo){e:{var Zb=fb.iosStackInfo,Zc=new or;try{Zb.stackTrace&&g.E(Zc,1,Zb.stackTrace);if(Zb.compactStackTrace){var yd=vy(Zb.compactStackTrace);F(Zc,br,2,yd)}var pb=Zc;break e}catch(Kb){}pb=void 0}Gd(Yb,or,4,wy,pb)}var ec=Yb;break d}catch(Kb){}ec=void 0}F(X,pr,2,ec)}if(R.logMessage){d:{var qb=R.logMessage,Tb=new qr;try{qb.message&&g.E(Tb,1,qb.message);qb.level&&g.E(Tb,2,vpa[qb.level]);qb.errorClassName&&g.E(Tb,3,qb.errorClassName);qb.sourceMethodName&&g.E(Tb,4,
qb.sourceMethodName);qb.sampleWeight&&g.E(Tb,6,qb.sampleWeight);var Nb=Tb;break d}catch(Kb){}Nb=void 0}F(X,qr,3,Nb)}var Ub=X;break c}catch(Kb){}Ub=void 0}F(K,rr,5,Ub)}var Nd=K;break b}catch(Kb){}Nd=void 0}F(d,sr,9,Nd)}if(c.delayedEventMetrics){b:{var ta=c.delayedEventMetrics,vb=new cr;try{ta.rs&&g.E(vb,1,wpa[ta.rs]);ta.storedEventsCount&&g.E(vb,2,ta.storedEventsCount);ta.expiredEventsCount&&g.E(vb,3,ta.expiredEventsCount);ta.averageTimeBetweenDispatchesMs&&g.E(vb,4,ta.averageTimeBetweenDispatchesMs);
ta.oldestStoredEventAgeMs&&g.E(vb,5,ta.oldestStoredEventAgeMs);ta.metricIntervalMs&&g.E(vb,6,ta.metricIntervalMs);ta.dispatchedEventCount&&g.E(vb,7,ta.dispatchedEventCount);ta.dispatchAttemptCount&&g.E(vb,8,ta.dispatchAttemptCount);ta.withDiskSpaceMs&&g.E(vb,9,ta.withDiskSpaceMs);ta.withNetworkMs&&g.E(vb,10,ta.withNetworkMs);ta.foregroundMs&&g.E(vb,11,ta.foregroundMs);ta.activeMs&&g.E(vb,12,ta.activeMs);ta.condensedPageBcSlackCount&&g.E(vb,13,ta.condensedPageBcSlackCount);ta.persistedDeleteUsedCount&&
g.E(vb,14,ta.persistedDeleteUsedCount);ta.persistedDeleteCount&&g.E(vb,15,ta.persistedDeleteCount);ta.eventDisabledCount&&g.E(vb,16,ta.eventDisabledCount);ta.identityResolutionErrorCount&&g.E(vb,17,ta.identityResolutionErrorCount);ta.exceededMaxRetryCount&&g.E(vb,18,ta.exceededMaxRetryCount);ta.condensedPageBcPersistFailCount&&g.E(vb,19,ta.condensedPageBcPersistFailCount);ta.couldNotUnloadPageCount&&g.E(vb,20,ta.couldNotUnloadPageCount);ta.pageWasCorruptedCount&&g.E(vb,24,ta.pageWasCorruptedCount);
ta.badEventIndexCount&&g.E(vb,27,ta.badEventIndexCount);ta.serializeErrorCount&&g.E(vb,25,ta.serializeErrorCount);ta.payloadInfoNotSetCount&&g.E(vb,21,ta.payloadInfoNotSetCount);ta.requestEmptyErrorCount&&g.E(vb,22,ta.requestEmptyErrorCount);ta.clientEventNotSetCount&&g.E(vb,23,ta.clientEventNotSetCount);ta.differentIdCount&&g.E(vb,26,ta.differentIdCount);var fd=vb;break b}catch(Kb){}fd=void 0}Kd(d,10,cr,fd)}if(c.iosBatteryMetric){b:{var Ec=c.iosBatteryMetric,sb=new er;try{Ec.sampleDurationMs&&g.E(sb,
1,Ec.sampleDurationMs);if(Ec.startSample){var Fc=xpa(Ec.startSample);F(sb,dr,2,Fc)}if(Ec.endSample){var zd=xpa(Ec.endSample);F(sb,dr,3,zd)}var ne=sb;break b}catch(Kb){}ne=void 0}F(d,er,11,ne)}if(c.androidBatteryMetric){b:{var gd=c.androidBatteryMetric,Hd=new Vq;try{gd.sampleDurationMs&&g.E(Hd,1,gd.sampleDurationMs);if(gd.startSample){var ie=ypa(gd.startSample);F(Hd,Uq,2,ie)}if(gd.endSample){var Rc=ypa(gd.endSample);F(Hd,Uq,3,Rc)}var od=Hd;break b}catch(Kb){}od=void 0}F(d,Vq,12,od)}if(c.webApiSupport){b:{var Sa=
c.webApiSupport,Ia=new Cr;try{Sa.intersectionObserverPresent&&g.E(Ia,1,Sa.intersectionObserverPresent);Sa.indexedDbPresent&&g.E(Ia,2,Sa.indexedDbPresent);Sa.serviceWorkerPresent&&g.E(Ia,3,Sa.serviceWorkerPresent);Sa.webSharePresent&&g.E(Ia,4,Sa.webSharePresent);Sa.fullScreenApiPresent&&g.E(Ia,5,Sa.fullScreenApiPresent);Sa.cacheStoragePresent&&g.E(Ia,6,Sa.cacheStoragePresent);Sa.storageEstimatePresent&&g.E(Ia,7,Sa.storageEstimatePresent);Sa.storagePersistPresent&&g.E(Ia,8,Sa.storagePersistPresent);
Sa.webkitTemporaryStoragePresent&&g.E(Ia,9,Sa.webkitTemporaryStoragePresent);Sa.idb2Present&&g.E(Ia,10,Sa.idb2Present);Sa.promiseRejectionEventPresent&&g.E(Ia,11,Sa.promiseRejectionEventPresent);Sa.subtleCryptoPresent&&g.E(Ia,12,Sa.subtleCryptoPresent);Sa.broadcastChannelPresent&&g.E(Ia,13,Sa.broadcastChannelPresent);Sa.webLocksApiPresent&&g.E(Ia,14,Sa.webLocksApiPresent);var Od=Ia;break b}catch(Kb){}Od=void 0}F(d,Cr,13,Od)}if(c.cpuProfiling){b:{var oe=c.cpuProfiling,Ke=new hr;try{if(oe.profilingSamples){var Gc=
vy(oe.profilingSamples);F(Ke,br,1,Gc)}if(oe.config){var cf=Ke.setConfig;c:{var Sc=oe.config,pd=new gr;try{Sc.profilingIntervalSec&&g.E(pd,1,Sc.profilingIntervalSec);Sc.profilingDurationSec&&g.E(pd,2,Sc.profilingDurationSec);Sc.x5&&g.E(pd,3,zpa[Sc.x5]);Sc.profilingStartTimeSec&&g.E(pd,4,Sc.profilingStartTimeSec);Sc.fractionOfRunsToSample&&g.E(pd,5,Sc.fractionOfRunsToSample);var ug=pd;break c}catch(Kb){}ug=void 0}cf.call(Ke,ug)}var Ng=Ke;break b}catch(Kb){}Ng=void 0}F(d,hr,14,Ng)}if(c.stallStackTrace){var wf=
vy(c.stallStackTrace);F(d,br,15,wf)}if(c.memoryUsage){b:{var ic=c.memoryUsage,pe=new yr;try{ic.totalMemoryUsageBytes&&g.E(pe,1,ic.totalMemoryUsageBytes);if(ic.classMemoryUsage){var Le=Apa(ic.classMemoryUsage);Kd(pe,2,wr,Le)}if(ic.config){var Oc=pe.setConfig;c:{var je=ic.config,xf=new xr;try{je.maxStartTimeSec&&g.E(xf,1,je.maxStartTimeSec);je.durationTimeSec&&g.E(xf,2,je.durationTimeSec);je.intervalSec&&g.E(xf,3,je.intervalSec);je.maxLogCount&&g.E(xf,4,je.maxLogCount);je.fractionOfRunsToSample&&g.E(xf,
5,je.fractionOfRunsToSample);var Og=xf;break c}catch(Kb){}Og=void 0}Oc.call(pe,Og)}ic.processUptimeMs&&g.E(pe,4,ic.processUptimeMs);if(ic.viewAllocation){var yf=Apa(ic.viewAllocation);Kd(pe,5,wr,yf)}ic.entityStoreCount&&g.E(pe,6,ic.entityStoreCount);ic.entityStoreBytes&&g.E(pe,7,ic.entityStoreBytes);var zf=pe;break b}catch(Kb){}zf=void 0}F(d,yr,16,zf)}if(c.networkEvents){b:{var Hc=c.networkEvents,hd=new Ar;try{Hc.index&&g.E(hd,1,Hc.index);Hc.N_&&g.E(hd,2,Bpa[Hc.N_]);Hc.path&&g.E(hd,3,Hc.path);Hc.us&&
g.E(hd,4,Cpa[Hc.us]);Hc.startTimeMs&&g.E(hd,5,Hc.startTimeMs);Hc.totalDurationMs&&g.E(hd,6,Hc.totalDurationMs);Hc.requestSize&&g.E(hd,7,Hc.requestSize);Hc.responseSize&&g.E(hd,8,Hc.responseSize);if(Hc.networkRequestAttempt){c:{var Ad=Hc.networkRequestAttempt,Af=new zr;try{Ad.us&&g.E(Af,1,Cpa[Ad.us]);Ad.startTimeMs&&g.E(Af,5,Ad.startTimeMs);Ad.durationMs&&g.E(Af,2,Ad.durationMs);Ad.K_&&g.E(Af,3,Dpa[Ad.K_]);var oc=Af;break c}catch(Kb){}oc=void 0}Kd(hd,9,zr,oc)}Hc.KZ&&g.E(hd,10,Epa[Hc.KZ]);var Pd=hd;
break b}catch(Kb){}Pd=void 0}Kd(d,17,Ar,Pd)}if(c.threadUtilization){b:{var $c=c.threadUtilization,yc=new Fr;try{$c.userJourney&&g.E(yc,1,$c.userJourney);$c.type&&g.E(yc,2,Fpa[$c.type]);if($c.threadPoolStats){c:{var pc=$c.threadPoolStats,qe=new Er;try{pc.threadPoolName&&g.E(qe,1,pc.threadPoolName);pc.threadCount&&g.E(qe,2,pc.threadCount);pc.startedTaskCount&&g.E(qe,3,pc.startedTaskCount);pc.finishedTaskCount&&g.E(qe,4,pc.finishedTaskCount);pc.runningTimeMs&&g.E(qe,5,pc.runningTimeMs);pc.waitingTimeMs&&
g.E(qe,6,pc.waitingTimeMs);pc.runCount&&g.E(qe,7,pc.runCount);pc.runningPercent&&g.E(qe,8,pc.runningPercent);var Me=qe;break c}catch(Kb){}Me=void 0}Kd(yc,3,Er,Me)}$c.totalThreadCount&&g.E(yc,4,$c.totalThreadCount);$c.statsGenerateDurationMs&&g.E(yc,5,$c.statsGenerateDurationMs);var Bf=yc;break b}catch(Kb){}Bf=void 0}F(d,Fr,18,Bf)}if(c.androidBackgroundTask){b:{var ag=c.androidBackgroundTask,lh=new fr;try{ag.tag&&g.E(lh,1,ag.tag);ag.isKnownTask&&g.E(lh,2,ag.isKnownTask);ag.result&&g.E(lh,3,Gpa[ag.result]);
var ji=lh;break b}catch(Kb){}ji=void 0}F(d,fr,19,ji)}if(c.distributiveProfilingSpan){b:{var Ne=c.distributiveProfilingSpan,df=new ur;try{Ne.T4&&g.E(df,1,Hpa[Ne.T4]);Ne.sampleRate&&g.E(df,2,Ne.sampleRate);Ne.spanDurationMs&&g.E(df,3,Ne.spanDurationMs);Ne.sampleFailureCount&&g.E(df,4,Ne.sampleFailureCount);if(Ne.sample){var ki=df.rh;c:{var ef=Ne.sample,Oe=new tr;try{ef.curveTimestampMs&&g.E(Oe,1,ef.curveTimestampMs);ef.curveWeight&&g.E(Oe,2,ef.curveWeight);ef.realTimestampMs&&g.E(Oe,3,ef.realTimestampMs);
ef.sampleCostUsec&&g.E(Oe,4,ef.sampleCostUsec);if(ef.compactStackTraceSample){var Pg=vy(ef.compactStackTraceSample);F(Oe,br,5,Pg)}var cj=Oe;break c}catch(Kb){}cj=void 0}ki.call(df,cj)}var mh=df;break b}catch(Kb){}mh=void 0}F(d,ur,20,mh)}var bg=d;break a}catch(Kb){}bg=void 0}F(b,Gr,6,bg)}a.oH&&g.E(b,7,yy[a.oH]);a.isAd&&g.E(b,8,a.isAd);a.U_&&g.E(b,9,Ipa[a.U_]);a.Z4&&g.E(b,24,Jpa[a.Z4]);a.offlineSourceVeType&&g.E(b,32,a.offlineSourceVeType);a.listId&&g.E(b,10,a.listId);a.Y_&&g.E(b,11,zy[a.Y_]);a.T_&&
g.E(b,29,Kpa[a.T_]);a.softErrorCount&&g.E(b,12,a.softErrorCount);a.pendingStateFlags&&g.E(b,13,a.pendingStateFlags);a.DL&&g.E(b,14,Lpa[a.DL]);a.isRefresh&&g.E(b,15,a.isRefresh);a.isNewPlayerResponse&&g.E(b,16,a.isNewPlayerResponse);a.isOfflineShareable&&g.E(b,17,a.isOfflineShareable);a.hasContentVerificationSignature&&g.E(b,18,a.hasContentVerificationSignature);a.isOfflineInterleaving&&g.E(b,19,a.isOfflineInterleaving);a.blockSizeBytes&&g.E(b,25,a.blockSizeBytes);a.eL&&g.E(b,26,Ay[a.eL]);if(a.streamVerificationFailedBlocks){a:{var Tc=
a.streamVerificationFailedBlocks,Cf=new ys;try{Tc.itag&&g.E(Cf,1,Tc.itag);Tc.startingByte&&g.E(Cf,2,Tc.startingByte);var vg=Cf;break a}catch(Kb){}vg=void 0}Kd(b,27,ys,vg)}if(a.spacecastInfo){a:{var cg=a.spacecastInfo,dg=new zs;try{cg.applianceId&&g.E(dg,1,cg.applianceId);cg.J5&&g.E(dg,2,Mpa[cg.J5]);var nh=dg;break a}catch(Kb){}nh=void 0}F(b,zs,28,nh)}a.I5&&g.E(b,33,Npa[a.I5]);a.onlyDownloadOnWifi&&g.E(b,34,a.onlyDownloadOnWifi);a.wX&&g.E(b,35,Opa[a.wX]);a.isDefaultDownloadToSdCard&&g.E(b,36,a.isDefaultDownloadToSdCard);
a.serializedLoggingParams&&Jd(b,39,a.serializedLoggingParams);a.transferServiceStartedFromBackground&&g.E(b,40,a.transferServiceStartedFromBackground);a.transferFirstStarted&&g.E(b,42,a.transferFirstStarted);return b}catch(Kb){}};
rpa=function(a){var b=new aq;try{return a.buildId&&g.E(b,1,a.buildId),a.clientExperimentId&&g.E(b,2,a.clientExperimentId),a.aX&&g.E(b,3,Qpa[a.aX]),b}catch(c){}};
vy=function(a){var b=new br;try{if(a.stackTraces){a:{var c=a.stackTraces,d=new ar;try{if(c.mainThread){var e=Rpa(c.mainThread);F(d,$q,1,e)}if(c.backgroundThreads){var f=Rpa(c.backgroundThreads);Kd(d,2,$q,f)}if(c.metaData){b:{var h=c.metaData,l=new Xq;try{h.clientTimestampMs&&g.E(l,1,h.clientTimestampMs);h.sampleTimeCostMs&&g.E(l,2,h.sampleTimeCostMs);h.numberOfBustedFrames&&g.E(l,3,h.numberOfBustedFrames);h.droppedFrameDurationMs&&g.E(l,4,h.droppedFrameDurationMs);h.kY&&g.E(l,5,Spa[h.kY]);h.processUptimeMs&&
g.E(l,6,h.processUptimeMs);h.memoryUsageKbytes&&g.E(l,7,h.memoryUsageKbytes);h.batteryPercentage&&g.E(l,8,h.batteryPercentage);h.exceptionName&&g.E(l,9,h.exceptionName);h.exceptionReason&&g.E(l,10,h.exceptionReason);h.signalNumber&&g.E(l,11,h.signalNumber);h.signalCode&&g.E(l,12,h.signalCode);var m=l;break b}catch(w){}m=void 0}Kd(d,3,Xq,m)}var n=d;break a}catch(w){}n=void 0}Kd(b,1,ar,n)}if(a.allModules){a:{var p=a.allModules,q=new Wq;try{p.moduleUuid&&Jd(q,1,p.moduleUuid);p.moduleName&&g.E(q,2,p.moduleName);
p.loadAddress&&g.E(q,3,p.loadAddress);var u=q;break a}catch(w){}u=void 0}Kd(b,2,Wq,u)}a.appVersionCode&&g.E(b,3,a.appVersionCode);return b}catch(w){}};
Rpa=function(a){var b=new $q;try{if(a.stackFrames){a:{var c=a.stackFrames,d=new Zq;try{c.instructionOffset&&g.E(d,1,c.instructionOffset);c.moduleIndex&&g.E(d,2,c.moduleIndex);var e=d;break a}catch(m){}e=void 0}Kd(b,1,Zq,e)}a.androidStack&&g.E(b,6,a.androidStack);a.threadName&&g.E(b,2,a.threadName);a.cpuUsage&&g.E(b,3,a.cpuUsage);a.cpuTimeSec&&g.E(b,4,a.cpuTimeSec);if(a.iosThreadInfo){a:{var f=a.iosThreadInfo,h=new Yq;try{f.state&&h.Vc(Tpa[f.state]);f.flag&&g.E(h,2,Upa[f.flag]);f.currentPriority&&
g.E(h,3,f.currentPriority);f.priority&&g.E(h,4,f.priority);f.maxPriority&&g.E(h,5,f.maxPriority);f.isCrashedThread&&g.E(h,6,f.isCrashedThread);var l=h;break a}catch(m){}l=void 0}F(b,Yq,5,l)}return b}catch(m){}};
xpa=function(a){var b=new dr;try{return a.batteryLevelMicros&&g.E(b,1,a.batteryLevelMicros),a.oJ&&g.E(b,2,yy[a.oJ]),a.screenBrightness&&g.E(b,3,a.screenBrightness),a.isLowPowerMode&&g.E(b,4,a.isLowPowerMode),a.isBackground&&g.E(b,5,a.isBackground),a.isStateTransition&&g.E(b,6,a.isStateTransition),a.observedBackgroundFetchMethodCallback&&g.E(b,7,a.observedBackgroundFetchMethodCallback),a.observedBackgroundTaskDidExpire&&g.E(b,8,a.observedBackgroundTaskDidExpire),b}catch(c){}};
ypa=function(a){var b=new Uq;try{return a.batteryLevelMicros&&g.E(b,1,a.batteryLevelMicros),a.oJ&&g.E(b,2,yy[a.oJ]),a.screenBrightness&&g.E(b,3,a.screenBrightness),a.t4&&g.E(b,4,Vpa[a.t4]),a.o_&&g.E(b,5,Wpa[a.o_]),a.DX&&g.E(b,6,Xpa[a.DX]),b}catch(c){}};
Apa=function(a){var b=new wr;try{return a.className&&g.E(b,1,a.className),a.instanceNum&&g.E(b,2,a.instanceNum),a.instanceSizeBytes&&g.E(b,3,a.instanceSizeBytes),a.allocationNum&&g.E(b,4,a.allocationNum),a.deallocationNum&&g.E(b,5,a.deallocationNum),b}catch(c){}};
By=function(a){var b=new bs;try{a.trackingParams&&b.ji(a.trackingParams);a.veType&&g.E(b,2,a.veType);a.elementIndex&&g.E(b,3,a.elementIndex);a.veCounter&&g.E(b,6,a.veCounter);if(a.dataElement){var c=By(a.dataElement);F(b,bs,7,c)}a.isCounterfactual&&g.E(b,5,a.isCounterfactual);if(a.youtubeData){a:{var d=a.youtubeData,e=new Yp;try{if(d.channelData){b:{var f=d.channelData,h=new xp;try{f.externalId&&Jd(h,1,f.externalId);var l=h;break b}catch(Ob){}l=void 0}F(e,xp,2,l)}if(d.channelItem){b:{var m=d.channelItem,
n=new yp;try{m.externalId&&Jd(n,1,m.externalId);var p=n;break b}catch(Ob){}p=void 0}F(e,yp,5,p)}if(d.playlistItem){b:{var q=d.playlistItem,u=new zp;try{q.externalPlaylistId&&Jd(u,5,q.externalPlaylistId);var w=u;break b}catch(Ob){}w=void 0}F(e,zp,6,w)}if(d.analyticsData){b:{var y=d.analyticsData,A=new Ap;try{if(y.analysisVariant){c:{var B=y.analysisVariant,D=new jp;try{if(B.analysisSummary){d:{var G=B.analysisSummary,H=new Yo;try{G.type&&g.E(H,1,Ypa[G.type]);G.eligibility&&g.E(H,2,Zpa[G.eligibility]);
G.sentiment&&g.E(H,3,$pa[G.sentiment]);var L=H;break d}catch(Ob){}L=void 0}F(D,Yo,1,L)}if(B.videoPerformanceVariant){var N=aqa(B.videoPerformanceVariant);Gd(D,hp,2,Cy,N)}if(B.videoOverviewVariant){d:{var K=B.videoOverviewVariant,P=new ip;try{K.MA&&g.E(P,1,Dy[K.MA]);if(K.videoPerformanceVariant){var R=aqa(K.videoPerformanceVariant);F(P,hp,2,R)}K.sY&&g.E(P,3,bqa[K.sY]);var X=P;break d}catch(Ob){}X=void 0}Gd(D,ip,3,Cy,X)}if(B.channelFluctuationVariant){d:{var Q=B.channelFluctuationVariant,oa=new $o;
try{Q.views&&g.E(oa,1,Ey[Q.views]);Q.driver&&g.E(oa,2,cqa[Q.driver]);Q.ctr&&g.E(oa,3,Ey[Q.ctr]);Q.impressions&&g.E(oa,4,Ey[Q.impressions]);Q.o6&&g.E(oa,5,Ey[Q.o6]);var sa=oa;break d}catch(Ob){}sa=void 0}Gd(D,$o,4,Cy,sa)}if(B.artistOverviewVariant){d:{var Ba=B.artistOverviewVariant,ya=new Zo;try{Ba.MA&&g.E(ya,1,Dy[Ba.MA]);Ba.g6&&g.E(ya,2,dqa[Ba.g6]);var va=ya;break d}catch(Ob){}va=void 0}Gd(D,Zo,5,Cy,va)}if(B.monthlySubsVariant){var Ja=eqa(B.monthlySubsVariant);Gd(D,dp,6,Cy,Ja)}if(B.monthlyRevenueVariant){var Ka=
fqa(B.monthlyRevenueVariant);Gd(D,cp,7,Cy,Ka)}if(B.holisticMonthlyOverviewVariant){d:{var qa=B.holisticMonthlyOverviewVariant,kb=new ep;try{if(qa.viewsPerformance){var Mb=gqa(qa.viewsPerformance);F(kb,bp,1,Mb)}if(qa.subsPerformance){var Ta=eqa(qa.subsPerformance);F(kb,dp,2,Ta)}if(qa.revenuePerformance){var fb=fqa(qa.revenuePerformance);F(kb,cp,3,fb)}var Yb=kb;break d}catch(Ob){}Yb=void 0}Gd(D,ep,8,Cy,Yb)}if(B.personalizedChannelOverviewVariant){d:{var Ua=B.personalizedChannelOverviewVariant,$a=new gp;
try{Ua.MA&&g.E($a,1,Dy[Ua.MA]);if(Ua.viewsPerformance){var ub=gqa(Ua.viewsPerformance);F($a,bp,2,ub)}var dc=$a;break d}catch(Ob){}dc=void 0}Gd(D,gp,9,Cy,dc)}if(B.channelNewReturningVariant){d:{var Qb=B.channelNewReturningVariant,Nc=new ap;try{Qb.S5&&g.E(Nc,1,Ey[Qb.S5]);Qb.O_&&g.E(Nc,2,Ey[Qb.O_]);Qb.j4&&g.E(Nc,3,Ey[Qb.j4]);var Zb=Nc;break d}catch(Ob){}Zb=void 0}Gd(D,ap,10,Cy,Zb)}if(B.lowReturningViewersDataStoryVariant){d:{var Zc=B.lowReturningViewersDataStoryVariant,yd=new fp;try{Zc.j6&&g.E(yd,1,
hqa[Zc.j6]);var pb=yd;break d}catch(Ob){}pb=void 0}Gd(D,fp,11,Cy,pb)}var ec=D;break c}catch(Ob){}ec=void 0}F(A,jp,12,ec)}if(y.cardConfig){c:{var qb=y.cardConfig,Tb=new np;try{qb.JX&&g.E(Tb,3,iqa[qb.JX]);qb.g_&&g.E(Tb,5,jqa[qb.g_]);qb.xH&&g.E(Tb,4,kqa[qb.xH]);if(qb.tableCardConfig){d:{var Nb=qb.tableCardConfig,Ub=new mp;try{Nb.dimension&&g.E(Ub,1,Fy[Nb.dimension]);Nb.metrics&&g.Bd(Ub,2,Fy[Nb.metrics]);var Nd=Ub;break d}catch(Ob){}Nd=void 0}Gd(Tb,mp,1,lqa,Nd)}if(qb.keyMetricCardConfig){d:{var ta=qb.keyMetricCardConfig,
vb=new lp;try{if(ta.metricTabConfigs){e:{var fd=ta.metricTabConfigs,Ec=new kp;try{fd.metric&&g.E(Ec,1,Fy[fd.metric]);fd.YX&&g.E(Ec,2,Fy[fd.YX]);fd.includeCumulative&&g.E(Ec,3,fd.includeCumulative);var sb=Ec;break e}catch(Ob){}sb=void 0}Kd(vb,1,kp,sb)}var Fc=vb;break d}catch(Ob){}Fc=void 0}Gd(Tb,lp,2,lqa,Fc)}var zd=Tb;break c}catch(Ob){}zd=void 0}F(A,np,13,zd)}y.externalVideoId&&g.E(A,15,y.externalVideoId);y.videoSid&&g.E(A,16,y.videoSid);var ne=A;break b}catch(Ob){}ne=void 0}F(e,Ap,20,ne)}if(d.promotionData){b:{var gd=
d.promotionData,Hd=new Fp;try{gd.promotionId&&g.E(Hd,1,gd.promotionId);gd.F3&&g.E(Hd,9,mqa[gd.F3]);var ie=Hd;break b}catch(Ob){}ie=void 0}F(e,Fp,21,ie)}if(d.backstageItem){b:{var Rc=d.backstageItem,od=new Cp;try{Rc.stanzaId&&g.E(od,1,Rc.stanzaId);Rc.likeCount&&g.E(od,7,Rc.likeCount);Rc.backstageId&&g.E(od,9,Rc.backstageId);Rc.wasPostScheduled&&g.E(od,14,Rc.wasPostScheduled);var Sa=od;break b}catch(Ob){}Sa=void 0}F(e,Cp,32,Sa)}if(d.adminSelfieData){b:{var Ia=d.adminSelfieData,Od=new Bp;try{Ia.componentId&&
g.E(Od,1,Ia.componentId);Ia.componentType&&g.E(Od,2,Ia.componentType);if(Ia.payload){c:{var oe=Ia.payload,Ke=new up;try{if(oe.include){d:{var Gc=oe.include,cf=new pp;try{Gc.fragmentName&&g.E(cf,1,Gc.fragmentName);var Sc=cf;break d}catch(Ob){}Sc=void 0}Gd(Ke,pp,1,Gy,Sc)}if(oe.toolboxPage){d:{var pd=oe.toolboxPage,ug=new rp;try{pd.fragmentName&&g.E(ug,1,pd.fragmentName);var Ng=ug;break d}catch(Ob){}Ng=void 0}Gd(Ke,rp,2,Gy,Ng)}if(oe.reviewQueuePage){d:{var wf=oe.reviewQueuePage,ic=new qp;try{wf.queueId&&
g.E(ic,1,wf.queueId);var pe=ic;break d}catch(Ob){}pe=void 0}Gd(Ke,qp,3,Gy,pe)}var Le=Ke;break c}catch(Ob){}Le=void 0}F(Od,up,3,Le)}var Oc=Od;break b}catch(Ob){}Oc=void 0}F(e,Bp,41,Oc)}if(d.notificationState){b:{var je=d.notificationState,xf=new Np;try{if(je.inboxInteractionData){c:{var Og=je.inboxInteractionData,yf=new vp;try{if(Og.notifications){d:{var zf=Og.notifications,Hc=new wp;try{zf.attributionTag&&g.E(Hc,2,zf.attributionTag);var hd=Hc;break d}catch(Ob){}hd=void 0}Kd(yf,1,wp,hd)}var Ad=yf;
break c}catch(Ob){}Ad=void 0}F(xf,vp,9,Ad)}var Af=xf;break b}catch(Ob){}Af=void 0}F(e,Np,59,Af)}if(d.delegationContext){b:{var oc=d.delegationContext,Pd=new Dp;try{oc.externalChannelId&&g.E(Pd,1,oc.externalChannelId);oc.externalOwnerId&&g.E(Pd,3,oc.externalOwnerId);oc.artistId&&g.E(Pd,4,oc.artistId);if(oc.roleType){c:{var $c=oc.roleType,yc=new op;try{$c.KX&&g.Dd(yc,1,Hy,nqa[$c.KX]);$c.xX&&g.Dd(yc,2,Hy,oqa[$c.xX]);$c.aY&&g.Dd(yc,3,Hy,pqa[$c.aY]);var pc=yc;break c}catch(Ob){}pc=void 0}F(Pd,op,5,pc)}oc.oacChannelId&&
g.E(Pd,6,oc.oacChannelId);oc.isInternalUser&&g.E(Pd,8,oc.isInternalUser);oc.delegationContextSerialized&&Jd(Pd,9,oc.delegationContextSerialized);var qe=Pd;break b}catch(Ob){}qe=void 0}F(e,Dp,63,qe)}if(d.campaignData){b:{var Me=d.campaignData,Bf=new Ep;try{Me.campaignName&&g.E(Bf,1,Me.campaignName);Me.campaignVersion&&g.E(Bf,2,Me.campaignVersion);var ag=Bf;break b}catch(Ob){}ag=void 0}F(e,Ep,64,ag)}if(d.scoringEventInfo){b:{var lh=d.scoringEventInfo,ji=new Gp;try{lh.scoringTrackingParams&&Jd(ji,1,
lh.scoringTrackingParams);var Ne=ji;break b}catch(Ob){}Ne=void 0}F(e,Gp,77,Ne)}if(d.servletData){b:{var df=d.servletData,ki=new Hp;try{df.serializedServletEventId&&g.E(ki,1,df.serializedServletEventId);var ef=ki;break b}catch(Ob){}ef=void 0}F(e,Hp,83,ef)}if(d.yoodleData){b:{var Oe=d.yoodleData,Pg=new Ip;try{Oe.promoId&&g.E(Pg,1,Oe.promoId);var cj=Pg;break b}catch(Ob){}cj=void 0}F(e,Ip,85,cj)}if(d.videoRestrictionData){b:{var mh=d.videoRestrictionData,bg=new Jp;try{if(mh.restrictions){c:{var Tc=mh.restrictions,
Cf=new Kp;try{if(Tc.limitedAds){d:{var vg=Tc.limitedAds,cg=new Lp;try{vg.imposer&&g.E(cg,1,qqa[vg.imposer]);var dg=cg;break d}catch(Ob){}dg=void 0}Gd(Cf,Lp,1,rqa,dg)}if(Tc.copyright){d:{var nh=Tc.copyright,Kb=new Mp;try{nh.K3&&g.E(Kb,1,sqa[nh.K3]);var Kh=Kb;break d}catch(Ob){}Kh=void 0}Gd(Cf,Mp,2,rqa,Kh)}var dj=Cf;break c}catch(Ob){}dj=void 0}Kd(bg,1,Kp,dj)}mh.prechecksPending&&g.E(bg,2,mh.prechecksPending);var Wk=bg;break b}catch(Ob){}Wk=void 0}F(e,Jp,92,Wk)}if(d.creatorMusicData){b:{var ej=d.creatorMusicData,
ff=new Op;try{if(ej.entity){var li=tqa(ej.entity);F(ff,Pp,1,li)}if(ej.entities){var Xk=tqa(ej.entities);Kd(ff,2,Pp,Xk)}var Yk=ff;break b}catch(Ob){}Yk=void 0}F(e,Op,96,Yk)}if(d.creatorData){b:{var Yd=d.creatorData,Qg=new Up;try{Yd.M5&&g.Dd(Qg,1,uqa,vqa[Yd.M5]);Yd.N5&&g.Dd(Qg,2,uqa,wqa[Yd.N5]);if(Yd.simpleWizardDetails){var fj=new Vp;Gd(Qg,Vp,3,Iy,fj)}if(Yd.advancedWizardDetails){c:{var mi=Yd.advancedWizardDetails,ni=new Wp;try{mi.isDoubleHop&&g.E(ni,1,mi.isDoubleHop);var sp=ni;break c}catch(Ob){}sp=
void 0}Gd(Qg,Wp,4,Iy,sp)}if(Yd.blockedWizardDetails){c:{var tp=Yd.blockedWizardDetails,Ab=new Xp;try{tp.m_&&g.E(Ab,1,xqa[tp.m_]);var cC=Ab;break c}catch(Ob){}cC=void 0}Gd(Qg,Xp,5,Iy,cC)}var dC=Qg;break b}catch(Ob){}dC=void 0}F(e,Up,98,dC)}var zw=e;break a}catch(Ob){}zw=void 0}F(b,Yp,8,zw)}return b}catch(Ob){}};
aqa=function(a){var b=new hp;try{return a.views&&g.E(b,1,Ey[a.views]),a.driver&&g.E(b,2,yqa[a.driver]),a.ctr&&g.E(b,3,Ey[a.ctr]),a.avd&&g.E(b,4,Ey[a.avd]),a.impressions&&g.E(b,5,Ey[a.impressions]),a.i6&&g.E(b,6,Ey[a.i6]),b}catch(c){}};
eqa=function(a){var b=new dp;try{return a.f5&&g.E(b,1,Ey[a.f5]),a.Q_&&g.E(b,2,Ey[a.Q_]),a.e5&&g.E(b,3,Ey[a.e5]),a.fX&&g.E(b,4,Ey[a.fX]),a.g5&&g.E(b,5,Ey[a.g5]),a.l6&&g.E(b,6,Ey[a.l6]),b}catch(c){}};
fqa=function(a){var b=new cp;try{return a.revenue&&g.E(b,1,Ey[a.revenue]),a.o4&&g.E(b,2,zqa[a.o4]),a.n4&&g.Bd(b,3,Aqa[a.n4]),a.m4&&g.E(b,4,Bqa[a.m4]),a.l4&&g.E(b,5,Cqa[a.l4]),a.driverCountryCode&&g.E(b,6,a.driverCountryCode),b}catch(c){}};
gqa=function(a){var b=new bp;try{return a.views&&g.E(b,1,Ey[a.views]),a.drivers&&g.Bd(b,2,Dqa[a.drivers]),b}catch(c){}};
tqa=function(a){var b=new Pp;try{if(a.featuredCollection){a:{var c=a.featuredCollection,d=new Qp;try{c.id&&g.E(d,1,c.id);var e=d;break a}catch(y){}e=void 0}Gd(b,Qp,1,Jy,e)}if(a.mood){a:{var f=a.mood,h=new Rp;try{f.type&&g.E(h,1,Eqa[f.type]);var l=h;break a}catch(y){}l=void 0}Gd(b,Rp,2,Jy,l)}if(a.genre){a:{var m=a.genre,n=new Sp;try{m.type&&g.E(n,1,Fqa[m.type]);var p=n;break a}catch(y){}p=void 0}Gd(b,Sp,3,Jy,p)}if(a.track){a:{var q=a.track,u=new Tp;try{q.artTrackId&&g.E(u,1,q.artTrackId);q.assetId&&
g.E(u,2,q.assetId);var w=u;break a}catch(y){}w=void 0}Gd(b,Tp,4,Jy,w)}return b}catch(y){}};
My=function(a){var b=new Bq;try{if(a.opportunityData){a:{var c=a.opportunityData,d=new xq;try{if(c.debugData){b:{var e=c.debugData,f=new yq;try{if(e.slots){var h=Gqa(e.slots);Kd(f,1,vq,h)}e.associatedSlotId&&g.E(f,2,e.associatedSlotId);var l=f;break b}catch(Ua){}l=void 0}F(d,yq,2,l)}c.w3&&g.E(d,3,Hqa[c.w3]);var m=d;break a}catch(Ua){}m=void 0}F(b,xq,1,m)}if(a.slotData){var n=Gqa(a.slotData);F(b,vq,2,n)}if(a.layoutData){a:{var p=a.layoutData,q=new tq;try{p.type&&g.E(q,2,Iqa[p.type]);if(p.debugData){b:{var u=
p.debugData,w=new uq;try{u.layoutId&&g.E(w,1,u.layoutId);if(u.exitNormalTriggerData){var y=Ky(u.exitNormalTriggerData);Kd(w,2,sq,y)}if(u.exitSkipTriggerData){var A=Ky(u.exitSkipTriggerData);Kd(w,3,sq,A)}if(u.exitMuteTriggerData){var B=Ky(u.exitMuteTriggerData);Kd(w,4,sq,B)}if(u.exitUserInputSubmittedTriggerData){var D=Ky(u.exitUserInputSubmittedTriggerData);Kd(w,5,sq,D)}if(u.exitUserCancelledTriggerData){var G=Ky(u.exitUserCancelledTriggerData);Kd(w,6,sq,G)}var H=w;break b}catch(Ua){}H=void 0}F(q,
uq,3,H)}p.aH&&g.E(q,4,Jqa[p.aH]);p.E3&&g.Bd(q,5,Ly[p.E3]);var L=q;break a}catch(Ua){}L=void 0}F(b,tq,3,L)}if(a.triggerData){var N=Ky(a.triggerData);F(b,sq,4,N)}if(a.pingData){a:{var K=a.pingData,P=new zq;try{K.S4&&g.E(P,1,Ly[K.S4]);if(K.debugData){b:{var R=K.debugData,X=new Aq;try{R.macros&&g.Bd(X,1,Kqa[R.macros]);R.success&&g.E(X,2,R.success);var Q=X;break b}catch(Ua){}Q=void 0}Kd(P,2,Aq,Q)}K.pingCount&&g.E(P,3,K.pingCount);var oa=P;break a}catch(Ua){}oa=void 0}F(b,zq,6,oa)}if(a.externalContext){a:{var sa=
a.externalContext,Ba=new pq;try{if(sa.organicPlaybackContext){b:{var ya=sa.organicPlaybackContext,va=new oq;try{ya.contentCpn&&g.E(va,1,ya.contentCpn);ya.isLivePlayback&&g.E(va,2,ya.isLivePlayback);ya.isOfflinePlayback&&g.E(va,3,ya.isOfflinePlayback);ya.isMdxPlayback&&g.E(va,4,ya.isMdxPlayback);ya.isDaiContent&&g.E(va,5,ya.isDaiContent);var Ja=va;break b}catch(Ua){}Ja=void 0}F(Ba,oq,1,Ja)}if(sa.html5ExperimentContext){b:{var Ka=sa.html5ExperimentContext,qa=new nq;try{Ka.ytExperimentId&&g.E(qa,1,Ka.ytExperimentId);
var kb=qa;break b}catch(Ua){}kb=void 0}F(Ba,nq,2,kb)}if(sa.adVideoPlaybackContext){b:{var Mb=sa.adVideoPlaybackContext,Ta=new mq;try{Mb.adVideoCpn&&g.E(Ta,1,Mb.adVideoCpn);var fb=Ta;break b}catch(Ua){}fb=void 0}F(Ba,mq,3,fb)}var Yb=Ba;break a}catch(Ua){}Yb=void 0}F(b,pq,5,Yb)}return b}catch(Ua){}};
Gqa=function(a){var b=new vq;try{a.type&&g.E(b,2,Lqa[a.type]);a.BY&&g.E(b,6,Ly[a.BY]);a.slotPhysicalPosition&&g.E(b,8,a.slotPhysicalPosition);if(a.debugData){a:{var c=a.debugData,d=new wq;try{c.slotId&&g.E(d,1,c.slotId);c.CY&&g.Bd(d,2,Ly[c.CY]);c.unscheduledDueToError&&g.E(d,3,c.unscheduledDueToError);if(c.entryTriggerData){var e=Ky(c.entryTriggerData);Kd(d,4,sq,e)}if(c.slotEntryTriggerData){var f=Ky(c.slotEntryTriggerData);F(d,sq,7,f)}if(c.fulfillmentTriggerData){var h=Ky(c.fulfillmentTriggerData);
Kd(d,5,sq,h)}if(c.expirationTriggerData){var l=Ky(c.expirationTriggerData);Kd(d,6,sq,l)}var m=d;break a}catch(n){}m=void 0}F(b,wq,3,m)}a.externallyManaged&&g.E(b,4,a.externallyManaged);a.aH&&g.E(b,5,Jqa[a.aH]);return b}catch(n){}};
Ky=function(a){var b=new sq;try{a.type&&g.E(b,1,Ly[a.type]);a.category&&g.E(b,2,Mqa[a.category]);if(a.layoutIdEnteredTriggerData){a:{var c=a.layoutIdEnteredTriggerData,d=new qq;try{c.enteredLayoutId&&g.E(d,1,c.enteredLayoutId);var e=d;break a}catch(m){}e=void 0}Gd(b,qq,3,Nqa,e)}if(a.triggerSourceData){a:{var f=a.triggerSourceData,h=new rq;try{f.associatedSlotId&&g.Dd(h,1,Oqa,f.associatedSlotId);f.associatedLayoutId&&g.Dd(h,2,Oqa,f.associatedLayoutId);var l=h;break a}catch(m){}l=void 0}Gd(b,rq,4,Nqa,
l)}a.shouldOnlyTriggerOnce&&g.E(b,5,a.shouldOnlyTriggerOnce);return b}catch(m){}};
Ny=function(a){var b=new Pq;try{return a.startMs&&g.E(b,1,a.startMs),a.endMs&&g.E(b,2,a.endMs),b}catch(c){}};
Pqa=function(a){var b=new vs;try{return a.orchestrationActionId&&g.E(b,1,a.orchestrationActionId),b}catch(c){}};
Tqa=function(a){var b=new Ts;try{if(a.itemId){a:{var c=a.itemId,d=new jq;try{c.type&&g.E(d,1,Oy[c.type]);c.externalId&&g.E(d,2,c.externalId);var e=d;break a}catch(m){}e=void 0}F(b,jq,1,e)}a.Bt&&g.E(b,2,Py[a.Bt]);if(a.alcLoggingParams){a:{var f=a.alcLoggingParams,h=new Ss;try{f.Q3&&g.E(h,1,Qqa[f.Q3]);f.R3&&g.E(h,2,Rqa[f.R3]);var l=h;break a}catch(m){}l=void 0}Gd(b,Ss,3,Sqa,l)}return b}catch(m){}};
wra=function(a){var b=new Rr;try{if(a.dimensions){a:{var c=a.dimensions,d=new Sr;try{c.csn&&g.E(d,1,c.csn);c.userExperienceId&&g.E(d,2,c.userExperienceId);if(c.studio){b:{var e=c.studio,f=new Or;try{e.route&&g.E(f,1,e.route);e.feature&&g.E(f,2,Uqa[e.feature]);e.z5&&g.E(f,3,Vqa[e.z5]);e.availability&&g.E(f,4,Wqa[e.availability]);e.isChannelDelegation&&g.E(f,5,e.isChannelDelegation);e.isArtistDelegation&&g.E(f,6,e.isArtistDelegation);e.environment&&g.E(f,7,Xqa[e.environment]);e.L_&&g.E(f,8,Yqa[e.L_]);
var h=f;break b}catch(Ja){}h=void 0}F(d,Or,3,h)}if(c.mweb){b:{var l=c.mweb,m=new Nr;try{l.YJ&&g.E(m,1,Zqa[l.YJ]);l.nJ&&g.E(m,2,$qa[l.nJ]);var n=m;break b}catch(Ja){}n=void 0}F(d,Nr,4,n)}if(c.mainAppWeb){b:{var p=c.mainAppWeb,q=new Mr;try{p.YJ&&g.E(q,1,ara[p.YJ]);p.f4&&g.E(q,2,bra[p.f4]);p.isShellLoad&&g.E(q,3,p.isShellLoad);var u=q;break b}catch(Ja){}u=void 0}F(d,Mr,5,u)}if(c.survivalSli){b:{var w=c.survivalSli,y=new Kr;try{w.partitionMinute&&g.E(y,1,w.partitionMinute);w.o5&&g.E(y,2,cra[w.o5]);w.n5&&
g.E(y,3,dra[w.n5]);var A=y;break b}catch(Ja){}A=void 0}F(d,Kr,6,A)}if(c.tvhtml5){b:{var B=c.tvhtml5,D=new Pr;try{B.BX&&g.E(D,1,era[B.BX]);B.M_&&g.E(D,2,fra[B.M_]);B.networkErrorResponseCode&&g.E(D,3,B.networkErrorResponseCode);B.sessionSurvivalLengthMin&&g.E(D,4,B.sessionSurvivalLengthMin);B.cX&&g.E(D,5,gra[B.cX]);B.bX&&g.E(D,6,hra[B.bX]);B.cpn&&g.E(D,7,B.cpn);B.sessionSurvivalDidUserAgentChange&&g.E(D,8,B.sessionSurvivalDidUserAgentChange);B.nX&&g.E(D,9,ira[B.nX]);B.MZ&&g.E(D,10,jra[B.MZ]);B.LZ&&
g.E(D,11,kra[B.LZ]);B.FX&&g.E(D,12,lra[B.FX]);B.eX&&g.E(D,13,mra[B.eX]);B.M4&&g.E(D,14,nra[B.M4]);B.dX&&g.E(D,15,ora[B.dX]);B.hadRemoteDeviceConnected&&g.E(D,16,B.hadRemoteDeviceConnected);B.hadVoiceInitiatedPlayback&&g.E(D,17,B.hadVoiceInitiatedPlayback);B.restartLengthMin&&g.E(D,18,B.restartLengthMin);var G=D;break b}catch(Ja){}G=void 0}F(d,Pr,7,G)}if(c.unpluggedWeb){b:{var H=c.unpluggedWeb,L=new Qr;try{H.U5&&g.E(L,1,pra[H.U5]);H.V5&&g.E(L,2,qra[H.V5]);var N=L;break b}catch(Ja){}N=void 0}F(d,Qr,
8,N)}c.logEventStatus&&g.E(d,9,c.logEventStatus);if(c.kids){b:{var K=c.kids,P=new Lr;try{K.d6&&g.E(P,1,rra[K.d6]);var R=P;break b}catch(Ja){}R=void 0}F(d,Lr,10,R)}c.screen&&g.E(d,11,c.screen);if(c.navigation){b:{var X=c.navigation,Q=new Jr;try{X.destinationScreen&&g.E(Q,1,X.destinationScreen);X.nJ&&g.E(Q,2,sra[X.nJ]);var oa=Q;break b}catch(Ja){}oa=void 0}F(d,Jr,12,oa)}var sa=d;break a}catch(Ja){}sa=void 0}F(b,Sr,1,sa)}if(a.records){a:{var Ba=a.records,ya=new Tr;try{Ba.name&&g.E(ya,1,tra[Ba.name]);
Ba.status&&g.E(ya,2,ura[Ba.status]);Ba.state&&ya.Vc(vra[Ba.state]);Ba.sliId&&g.E(ya,4,Ba.sliId);var va=ya;break a}catch(Ja){}va=void 0}Kd(b,2,Tr,va)}return b}catch(Ja){}};
g.Kv=function(a,b,c){c=void 0===c?{}:c;if(g.S("migrate_events_to_ts"))g.cpa(a,b,c);else{var d=xra;g.O("ytLoggingEventsDefaultDisabled",!1)&&xra==g.sx&&(d=null);if(g.S("web_all_payloads_via_jspb")&&Qy&&Ry)if(c=Qy[a])if((b=c(b))&&Ry[a])Ry[a](b);else gu(new g.Pv("Unable to call logFn for payload",a));else gu(new g.Pv("Unable to translate payload to JSPB",a));else ny(a,b,d,c)}};
Sy=function(){if(g.S("migrate_events_to_ts"))a:{if(g.S("web_fp_via_jspb")&&(oy(!0),!g.S("web_fp_via_jspb_and_json")))break a;oy()}else{if(g.S("web_fp_via_jspb")&&(oy(!0),!g.S("web_fp_via_jspb_and_json")))return;oy()}};
zra=function(){var a=void 0===a?window.location.href:a;if(g.S("kevlar_disable_theme_param"))return null;hi(g.oi(5,a));try{var b=g.lu(a).theme;return yra.get(b)||null}catch(c){}return null};
Bra=function(a,b,c){a&&(a.dataset?a.dataset[Ara(b)]=String(c):a.setAttribute("data-"+b,c))};
Cra=function(a){return a?a.dataset?a.dataset[Ara("loaded")]:a.getAttribute("data-loaded"):null};
Ara=function(a){return Dra[a]||(Dra[a]=String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()}))};
Ty=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()};
Wy=function(a){var b;g.Uy()?Vy()==a&&(b=document):b=a;return b&&(a=vx(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))?(b=a.call(b),b instanceof Promise?b:Promise.resolve()):Promise.resolve()};
Xy=function(a){return g.Pb(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})};
Era=function(){var a=document;return g.Pb(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})};
g.Uy=function(){return!!vx(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)};
Vy=function(a){a=void 0===a?!1:a;var b=vx(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(a)for(;b&&b.shadowRoot;)b=b.shadowRoot.fullscreenElement;return b?b:null};
Yy=function(a){g.J.call(this);this.J=[];this.eb=a||this};
Zy=function(a,b,c,d){for(var e=0;e<c.length;e++)a.T(b,c[e],d)};
g.$y=function(a,b){for(;a.J.length;){var c=a.J.pop(),d=void 0;b&&Fra()&&(d={passive:!0});c.target.removeEventListener(c.name,c.callback,d)}};
g.az=function(a){a=void 0===a?!1:a;g.J.call(this);this.yg=new g.Bo(a);g.M(this,this.yg)};
g.bz=function(a,b,c){for(var d in b)a.subscribe(d,b[d],c)};
cz=function(a,b,c){for(var d in b)a.unsubscribe(d,b[d],c)};
g.ez=function(a,b,c,d){g.az.call(this);this.j=!!b;this.I=a;this.Z=c||a;this.S=!!d;this.C=new Yy(this);g.M(this,this.C);this.D=this.J=null;this.B=this.u=!1;b&&(g.gf&&a.setAttribute("draggable","true"),a.style.touchAction="none");dz(this)};
fz=function(a,b,c){a.C.T(a.Z,b,c,void 0,!a.j)};
gz=function(a){g.$y(a.C,!a.j)};
dz=function(a){a.D=null;a.J=null;fz(a,hz("over"),a.BQ);fz(a,"touchstart",a.tL);a.j&&fz(a,hz("down"),a.D_)};
Gra=function(a,b){for(var c=0;c<b.changedTouches.length;c++){var d=b.changedTouches[c];if(d.identifier==a.J)return d}return null};
hz=function(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a};
iz=function(a){a=a||{};var b={},c={};this.url=a.url||"";this.args=a.args||g.Gf(b);this.assets=a.assets||{};this.attrs=a.attrs||g.Gf(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||{}};
Hra=function(a){a instanceof iz||(a=new iz(a));return a};
Ira=function(a){if("JavaException"===a.name)return!0;a=a.stack;return a.includes("chrome://")||a.includes("chrome-extension://")||a.includes("moz-extension://")};
Jra=function(){this.Bp=[];this.Ko=[]};
kz=function(){if(!jz){var a=jz=new Jra;a.Ko.length=0;a.Bp.length=0;Kra(a,Lra)}return jz};
Kra=function(a,b){b.Ko&&a.Ko.push.apply(a.Ko,b.Ko);b.Bp&&a.Bp.push.apply(a.Bp,b.Bp)};
Mra=function(a){function b(){return a.charCodeAt(d++)}
var c=a.length,d=0;do{var e=lz(b);if(Infinity===e)break;var f=e>>3;switch(e&7){case 0:e=lz(b);if(2===f)return e;break;case 1:if(2===f)return;d+=8;break;case 2:e=lz(b);if(2===f)return a.substr(d,e);d+=e;break;case 5:if(2===f)return;d+=4;break;default:return}}while(d<c)};
lz=function(a){var b=a(),c=b&127;if(128>b)return c;b=a();c|=(b&127)<<7;if(128>b)return c;b=a();c|=(b&127)<<14;if(128>b)return c;b=a();return 128>b?c|(b&127)<<21:Infinity};
Nra=function(a,b,c,d){if(a)if(Array.isArray(a)){var e=d;for(d=0;d<a.length&&!(a[d]&&(e+=mz(d,a[d],b,c),500<e));d++);d=e}else if("object"===typeof a)for(e in a){if(a[e]){var f=a[e];var h=b;var l=c;h="string"!==typeof f||"clickTrackingParams"!==e&&"trackingParams"!==e?0:(f=Mra(atob(f.replace(/-/g,"+").replace(/_/g,"/"))))?mz(e+".ve",f,h,l):0;d+=h;d+=mz(e,a[e],b,c);if(500<d)break}}else c[b]=nz(a),d+=c[b].length;else c[b]=nz(a),d+=c[b].length;return d};
mz=function(a,b,c,d){c+="."+a;a=nz(b);d[c]=a;return c.length+a.length};
nz=function(a){try{return("string"===typeof a?a:String(JSON.stringify(a))).substr(0,500)}catch(b){return"unable to serialize "+typeof a+" ("+b.message+")"}};
Jv=function(a){g.oz(a)};
g.pz=function(a){g.oz(a,"WARNING")};
g.oz=function(a,b){var c=void 0===c?{}:c;c.name=g.O("INNERTUBE_CONTEXT_CLIENT_NAME",1);c.version=g.O("INNERTUBE_CONTEXT_CLIENT_VERSION");var d=c||{},e=void 0===b?"ERROR":b;e=void 0===e?"ERROR":e;if(a){a.hasOwnProperty("level")&&a.level&&(e=a.level);if(g.S("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));a.hasOwnProperty("args")&&f.push("Error args: "+JSON.stringify(a.args));f.push("File name: "+
a.fileName);f.push("Stacktrace: "+a.stack);window.console.log(f.join("\n"),a)}if(!(5<=Ora)){var h=Pra,l=vca(a),m=l.message||"Unknown Error",n=l.name||"UnknownError",p=l.stack||a.u||"Not available";if(p.startsWith(n+": "+m)){var q=p.split("\n");q.shift();p=q.join("\n")}var u=l.lineNumber||"Not available",w=l.fileName||"Not available",y=p,A=0;if(a.hasOwnProperty("args")&&a.args&&a.args.length)for(var B=0;B<a.args.length&&!(A=Nra(a.args[B],"params."+B,d,A),500<=A);B++);else if(a.hasOwnProperty("params")&&
a.params){var D=a.params;if("object"===typeof a.params)for(var G in D){if(D[G]){var H="params."+G,L=nz(D[G]);d[H]=L;A+=H.length+L.length;if(500<A)break}}else d.params=nz(D)}if(h.length)for(var N=0;N<h.length&&!(A=Nra(h[N],"params.context."+N,d,A),500<=A);N++);navigator.vendor&&!d.hasOwnProperty("vendor")&&(d["device.vendor"]=navigator.vendor);var K={message:m,name:n,lineNumber:u,fileName:w,stack:y,params:d,sampleWeight:1},P=Number(a.columnNumber);isNaN(P)||(K.lineNumber=K.lineNumber+":"+P);if("IGNORED"===
a.level)var R=0;else a:{for(var X=kz(),Q=g.r(X.Ko),oa=Q.next();!oa.done;oa=Q.next()){var sa=oa.value;if(K.message&&K.message.match(sa.Hz)){R=sa.weight;break a}}for(var Ba=g.r(X.Bp),ya=Ba.next();!ya.done;ya=Ba.next()){var va=ya.value;if(va.callback(K)){R=va.weight;break a}}R=1}K.sampleWeight=R;for(var Ja=g.r(Qra),Ka=Ja.next();!Ka.done;Ka=Ja.next()){var qa=Ka.value;if(qa.RD[K.name])for(var kb=g.r(qa.RD[K.name]),Mb=kb.next();!Mb.done;Mb=kb.next()){var Ta=Mb.value,fb=K.message.match(Ta.Zh);if(fb){K.params["params.error.original"]=
fb[0];for(var Yb=Ta.groups,Ua={},$a=0;$a<Yb.length;$a++)Ua[Yb[$a]]=fb[$a+1],K.params["params.error."+Yb[$a]]=fb[$a+1];K.message=qa.gJ(Ua);break}}}K.params||(K.params={});var ub=kz();K.params["params.errorServiceSignature"]="msg="+ub.Ko.length+"&cb="+ub.Bp.length;K.params["params.serviceWorker"]="false";g.C.document&&g.C.document.querySelectorAll&&(K.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));g.ig("sample").constructor!==gg&&(K.params["params.fconst"]=
"true");window.yterr&&"function"===typeof window.yterr&&window.yterr(K);if(0!==K.sampleWeight&&!Rra.has(K.message)){if("ERROR"===e){qz.ma("handleError",K);if(g.S("record_app_crashed_web")&&0===Sra&&1===K.sampleWeight)if(Sra++,g.S("errors_via_jspb")){var dc=new Hr;g.E(dc,1,1);if(!g.S("report_client_error_with_app_crash_ks")){var Qb=new qr;g.E(Qb,1,K.message);var Nc=new rr;F(Nc,qr,3,Qb);var Zb=new sr;F(Zb,rr,5,Nc);var Zc=new Gr;F(Zc,sr,9,Zb);F(dc,Gr,4,Zc)}var yd=new Ut;Gd(yd,Hr,20,ty,dc);sy(yd)}else{var pb=
{appCrashType:"APP_CRASH_TYPE_BREAKPAD"};g.S("report_client_error_with_app_crash_ks")||(pb.systemHealth={crashData:{clientError:{logMessage:{message:K.message}}}});g.Kv("appCrashed",pb)}Tra++}else"WARNING"===e&&qz.ma("handleWarning",K);if(g.S("kevlar_gel_error_routing"))a:{var ec=e;if(g.S("errors_via_jspb")){if(Ura())var qb=void 0;else{var Tb=new nr;g.E(Tb,1,K.stack);K.fileName&&g.E(Tb,4,K.fileName);var Nb=K.lineNumber&&K.lineNumber.split?K.lineNumber.split(":"):[];0!==Nb.length&&(1!==Nb.length||
isNaN(Number(Nb[0]))?2!==Nb.length||isNaN(Number(Nb[0]))||isNaN(Number(Nb[1]))||(g.E(Tb,2,Number(Nb[0])),g.E(Tb,3,Number(Nb[1]))):g.E(Tb,2,Number(Nb[0])));var Ub=new qr;g.E(Ub,1,K.message);g.E(Ub,3,K.name);g.E(Ub,6,K.sampleWeight);"ERROR"===ec?g.E(Ub,2,2):"WARNING"===ec?g.E(Ub,2,1):g.E(Ub,2,0);var Nd=new pr;g.E(Nd,1,!0);Gd(Nd,nr,3,wy,Tb);var ta=new kr;g.E(ta,3,window.location.href);for(var vb=g.O("FEXP_EXPERIMENTS",[]),fd=0;fd<vb.length;fd++)g.Bd(ta,5,vb[fd]);var Ec=g.O("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");
if(!$t("web_disable_gel_stp_ecatcher_killswitch")&&Ec)for(var sb=g.r(Object.keys(Ec)),Fc=sb.next();!Fc.done;Fc=sb.next()){var zd=Fc.value,ne=new lr;g.E(ne,1,zd);ne.setValue(String(Ec[zd]));Kd(ta,4,lr,ne)}var gd=K.params;if(gd){var Hd=g.r(Object.keys(gd));for(Fc=Hd.next();!Fc.done;Fc=Hd.next()){var ie=Fc.value,Rc=new lr;g.E(Rc,1,"client."+ie);Rc.setValue(String(gd[ie]));Kd(ta,4,lr,Rc)}}var od=g.O("SERVER_NAME"),Sa=g.O("SERVER_VERSION");if(od&&Sa){var Ia=new lr;g.E(Ia,1,"server.name");Ia.setValue(od);
Kd(ta,4,lr,Ia);var Od=new lr;g.E(Od,1,"server.version");Od.setValue(Sa);Kd(ta,4,lr,Od)}var oe=new rr;F(oe,kr,1,ta);F(oe,pr,2,Nd);F(oe,qr,3,Ub);qb=oe}var Ke=qb;if(!Ke)break a;var Gc=new Ut;Gd(Gc,rr,163,ty,Ke);sy(Gc)}else{if(Ura())var cf=void 0;else{var Sc={stackTrace:K.stack};K.fileName&&(Sc.filename=K.fileName);var pd=K.lineNumber&&K.lineNumber.split?K.lineNumber.split(":"):[];0!==pd.length&&(1!==pd.length||isNaN(Number(pd[0]))?2!==pd.length||isNaN(Number(pd[0]))||isNaN(Number(pd[1]))||(Sc.lineNumber=
Number(pd[0]),Sc.columnNumber=Number(pd[1])):Sc.lineNumber=Number(pd[0]));var ug={level:"ERROR_LEVEL_UNKNOWN",message:K.message,errorClassName:K.name,sampleWeight:K.sampleWeight};"ERROR"===ec?ug.level="ERROR_LEVEL_ERROR":"WARNING"===ec&&(ug.level="ERROR_LEVEL_WARNNING");var Ng={isObfuscated:!0,browserStackInfo:Sc},wf={pageUrl:window.location.href,kvPairs:[]};g.O("FEXP_EXPERIMENTS")&&(wf.experimentIds=g.O("FEXP_EXPERIMENTS"));var ic=g.O("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!$t("web_disable_gel_stp_ecatcher_killswitch")&&
ic)for(var pe=g.r(Object.keys(ic)),Le=pe.next();!Le.done;Le=pe.next()){var Oc=Le.value;wf.kvPairs.push({key:Oc,value:String(ic[Oc])})}var je=K.params;if(je){var xf=g.r(Object.keys(je));for(Le=xf.next();!Le.done;Le=xf.next()){var Og=Le.value;wf.kvPairs.push({key:"client."+Og,value:String(je[Og])})}}var yf=g.O("SERVER_NAME"),zf=g.O("SERVER_VERSION");yf&&zf&&(wf.kvPairs.push({key:"server.name",value:yf}),wf.kvPairs.push({key:"server.version",value:zf}));cf={errorMetadata:wf,stackTrace:Ng,logMessage:ug}}var Hc=
cf;if(!Hc)break a;g.Kv("clientError",Hc)}("ERROR"===ec||g.S("errors_flush_gel_always_killswitch"))&&Sy()}if(!g.S("suppress_error_204_logging")){var hd=K.params||{},Ad={urlParams:{a:"logerror",t:"jserror",type:K.name,msg:K.message.substr(0,250),line:K.lineNumber,level:e,"client.name":hd.name},postParams:{url:g.O("PAGE_NAME",window.location.href),file:K.fileName},method:"POST"};hd.version&&(Ad["client.version"]=hd.version);if(Ad.postParams){K.stack&&(Ad.postParams.stack=K.stack);for(var Af=g.r(Object.keys(hd)),
oc=Af.next();!oc.done;oc=Af.next()){var Pd=oc.value;Ad.postParams["client."+Pd]=hd[Pd]}var $c=g.O("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if($c)for(var yc=g.r(Object.keys($c)),pc=yc.next();!pc.done;pc=yc.next()){var qe=pc.value;Ad.postParams[qe]=$c[qe]}var Me=g.O("SERVER_NAME"),Bf=g.O("SERVER_VERSION");Me&&Bf&&(Ad.postParams["server.name"]=Me,Ad.postParams["server.version"]=Bf)}g.Au(g.O("ECATCHER_REPORT_HOST","")+"/error_204",Ad)}try{Rra.add(K.message)}catch(ag){}Ora++}}}};
Ura=function(){for(var a=g.r(Vra),b=a.next();!b.done;b=a.next())if(Mu(b.value.toLowerCase()))return!0;return!1};
Wra=function(a){var b=g.za.apply(1,arguments);a.args||(a.args=[]);a.args.push.apply(a.args,g.t(b))};
rz=function(a){this.j=a};
g.sz=function(a){return new rz({trackingParams:a})};
Yra=function(a){var b=Xra++;return new rz({veType:a,veCounter:b,elementIndex:void 0,dataElement:void 0,youtubeData:void 0,jspbYoutubeData:void 0})};
uz=function(a){if(window.crypto&&window.crypto.getRandomValues)try{var b=Array(a),c=new Uint8Array(a);window.crypto.getRandomValues(c);for(var d=0;d<b.length;d++)b[d]=c[d];return b}catch(f){}b=Array(a);for(c=0;c<a;c++){d=Date.now();for(var e=0;e<d%23;e++)b[c]=Math.random();b[c]=Math.floor(256*Math.random())}if(tz)for(c=1,d=0;d<tz.length;d++)b[c%a]=b[c%a]^b[(c-1)%a]/4^tz.charCodeAt(d),c++;return b};
g.vz=function(a){a=uz(a);for(var b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
g.Zra=function(){return g.Ok(uz(16),function(a){return(a&15).toString(16)}).join("")};
wz=function(a){a=void 0===a?0:a;return 0===a?"client-screen-nonce":"client-screen-nonce."+a};
xz=function(a){a=void 0===a?0:a;return 0===a?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+a};
$ra=function(a){return g.O(xz(void 0===a?0:a))};
g.yz=function(a){return(a=$ra(void 0===a?0:a))?new rz({veType:a,youtubeData:void 0,jspbYoutubeData:void 0}):null};
asa=function(){var a=g.O("csn-to-ctt-auth-info");a||(a={},Zt("csn-to-ctt-auth-info",a));return a};
g.zz=function(a){a=g.O(wz(void 0===a?0:a));if(!a&&!g.O("USE_CSN_FALLBACK",!0))return null;a||(a="UNDEFINED_CSN");return a?a:null};
kua=function(a,b,c){var d=asa();(c=g.zz(c))&&delete d[c];b&&(d[a]=b)};
Az=function(a){return asa()[a]};
mua=function(a,b,c,d){c=void 0===c?0:c;if(a!==g.O(wz(c))||b!==g.O(xz(c)))if(kua(a,d,c),Zt(wz(c),a),Zt(xz(c),b),b=function(){setTimeout(function(){if(a)if(g.S("web_time_via_jspb")){var e=new $s;g.E(e,1,lua);g.E(e,2,a);g.S("use_default_heartbeat_client")?kpa(e):kpa(e,void 0,g.sx)}else e={clientDocumentNonce:lua,clientScreenNonce:a},g.S("use_default_heartbeat_client")?g.Kv("foregroundHeartbeatScreenAssociated",e):ny("foregroundHeartbeatScreenAssociated",e,g.sx)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(b)}catch(e){b()}else b()};
Bz=function(a){Fw.call(this,1,arguments);this.csn=a};
yua=function(a,b,c,d,e,f,h){function l(){g.pz(new g.Pv("newScreen() parent element does not have a VE - rootVe",b))}
var m=vua();f=new rz({veType:b,youtubeData:f,jspbYoutubeData:void 0});e={cttAuthInfo:e,Ck:m};if(g.S("il_via_jspb")){var n=new lt;n.B(m);Ila(n,f.getAsJspb());c&&c.visualElement?(f=new mt,c.clientScreenNonce&&g.E(f,2,c.clientScreenNonce),Jla(f,c.visualElement.getAsJspb()),h&&g.E(f,4,wua[h]),F(n,mt,5,f)):c&&l();d&&g.E(n,3,d);hpa(n,e,a)}else f={csn:m,pageVe:f.getAsJson()},c&&c.visualElement?(f.implicitGesture={parentCsn:c.clientScreenNonce,gesturedVe:c.visualElement.getAsJson()},h&&(f.implicitGesture.gestureType=
h)):c&&l(),d&&(f.cloneCsn=d),a?ny("screenCreated",f,a,e):g.Kv("screenCreated",f,e);Iw(xua,new Bz(m));return m};
g.Dz=function(a,b,c,d){var e=d.filter(function(m){m.csn!==b?(m.csn=b,m=!0):m=!1;return m}),f={cttAuthInfo:Az(b),
Ck:b};d=g.r(d);for(var h=d.next();!h.done;h=d.next())h=h.value.getAsJson(),(g.vf(h)||!h.trackingParams&&!h.veType)&&g.pz(Error("Child VE logged with no data"));if(g.S("il_via_jspb")){var l=new nt;l.B(b);Lla(l,c.getAsJspb());g.Ok(e,function(m){m=m.getAsJspb();Kd(l,3,bs,m)});
"UNDEFINED_CSN"==b?Cz("visualElementAttached",f,void 0,l):jpa(l,f,a)}else c={csn:b,parentVe:c.getAsJson(),childVes:g.Ok(e,function(m){return m.getAsJson()})},"UNDEFINED_CSN"==b?Cz("visualElementAttached",f,c):a?ny("visualElementAttached",c,a,f):g.Kv("visualElementAttached",c,f)};
g.Ez=function(a,b,c){var d={cttAuthInfo:Az(a),Ck:a};g.S("il_via_jspb")?(c=new qt,c.B(a),b=b.getAsJspb(),F(c,bs,2,b),g.E(c,4,1),"UNDEFINED_CSN"==a?Cz("visualElementShown",d,void 0,c):uy(c,d)):(b={csn:a,ve:b.getAsJson(),eventType:1},c&&(b.clientData=c),"UNDEFINED_CSN"==a?Cz("visualElementShown",d,b):g.Kv("visualElementShown",b,d))};
zua=function(a,b,c,d){var e=(d=void 0===d?!1:d)?16:8,f={cttAuthInfo:Az(b),Ck:b,HO:d};g.S("il_via_jspb")?(e=new pt,e.B(b),c=c.getAsJspb(),F(e,bs,2,c),g.E(e,4,d?16:8),"UNDEFINED_CSN"==b?Cz("visualElementHidden",f,void 0,e):epa(e,f,a)):(d={csn:b,ve:c.getAsJson(),eventType:e},"UNDEFINED_CSN"==b?Cz("visualElementHidden",f,d):a?ny("visualElementHidden",d,a,f):g.Kv("visualElementHidden",d,f))};
Aua=function(a,b,c,d){var e={cttAuthInfo:Az(b),Ck:b};g.S("il_via_jspb")?(d=new ot,d.B(b),c=c.getAsJspb(),F(d,bs,2,c),g.E(d,4,wua.INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK),"UNDEFINED_CSN"==b?Cz("visualElementGestured",e,void 0,d):fpa(d,e,a)):(c={csn:b,ve:c.getAsJson(),gestureType:"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"},d&&(c.clientData=d),"UNDEFINED_CSN"==b?Cz("visualElementGestured",e,c):a?ny("visualElementGestured",c,a,e):g.Kv("visualElementGestured",c,e))};
Bua=function(){return g.zc(Math.random()+"")};
Cz=function(a,b,c,d){Fz.push({payloadName:a,payload:c,Os:d,options:b});Gz||(Gz=Mw(xua,Cua))};
Cua=function(a){if(Fz){for(var b=g.r(Fz),c=b.next();!c.done;c=b.next())if(c=c.value,c.payload)if(g.S("il_via_jspb"))switch(c.Os.B(a.csn),c.payloadName){case "screenCreated":hpa(c.Os,c.options);break;case "visualElementAttached":jpa(c.Os,c.options);break;case "visualElementShown":uy(c.Os,c.options);break;case "visualElementHidden":epa(c.Os,c.options);break;case "visualElementGestured":fpa(c.Os,c.options);break;case "visualElementStateChanged":gpa(c.Os,c.options);break;default:g.pz(new g.Pv("flushQueue unable to map payloadName to JSPB setter"))}else c.payload.csn=
a.csn,ny(c.payloadName,c.payload,null,c.options);Fz.length=0}Gz=0};
g.Hz=function(a,b){g.qc(b,function(c){var d={cttAuthInfo:Az(a),Ck:a};if(g.S("il_via_jspb")){var e=new qt;e.B(a);c=c.getAsJspb();F(e,bs,2,c);g.E(e,4,4);"UNDEFINED_CSN"==a?Cz("visualElementShown",d,void 0,e):uy(e,d)}else e={csn:a,ve:c.getAsJson(),eventType:4},"UNDEFINED_CSN"==a?Cz("visualElementShown",d,e):g.Kv("visualElementShown",e,d)})};
g.Iz=function(a,b){g.qc(b,function(c){zua(void 0,a,c)})};
g.Jz=function(a,b,c){Aua(void 0,a,b,c)};
Kz=function(){this.u=new Set;this.j=new Set;this.B=new Map};
g.Nz=function(a,b,c){var d=c&&0<c?c:0;c=d?Date.now()+1E3*d:0;if((d=d?(0,g.Lz)():Mz())&&window.JSON){"string"!==typeof b&&(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}};
g.Oz=function(a){var b=Mz(),c=(0,g.Lz)();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};
Dua=function(){var a=(0,g.Lz)();if(a&&(a=a.u("yt-player-quality")))return a.creation};
g.Pz=function(a){try{var b=Mz(),c=(0,g.Lz)();b&&b.remove(a);c&&c.remove(a)}catch(d){}};
g.Qz=function(){return g.Oz("yt-remote-session-screen-id")};
g.Rz=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(Eua,""),c=c.replace(Fua,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else Gua(a,b,c)};
Gua=function(a,b,c){c=void 0===c?null:c;var d=Hua(a),e=document.getElementById(d),f=e&&Cra(e),h=e&&!f;f?b&&b():(b&&(f=g.Sx(d,b),b=""+g.Oa(b),Iua[b]=f),h||(e=Jua(a,d,function(){Cra(e)||(Bra(e,"loaded","true"),g.Ux(d),g.vu(g.Qa(Hoa,d),0))},c)))};
Jua=function(a,b,c,d){d=void 0===d?null:d;var e=g.hh("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.bj(e,g.lg(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e};
Hua=function(a){var b=document.createElement("a");g.Bg(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Vg(a)};
Uz=function(a){var b=g.za.apply(1,arguments);if(!Sz(a)||b.some(function(d){return!Sz(d)}))throw Error("Only objects may be merged.");
b=g.r(b);for(var c=b.next();!c.done;c=b.next())Tz(a,c.value);return a};
Tz=function(a,b){for(var c in b)if(Sz(b[c])){if(c in a&&!Sz(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});Tz(a[c],b[c])}else if(Vz(b[c])){if(c in a&&!Vz(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);Kua(a[c],b[c])}else a[c]=b[c];return a};
Kua=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,Sz(c)?a.push(Tz({},c)):Vz(c)?a.push(Kua([],c)):a.push(c);return a};
Sz=function(a){return"object"===typeof a&&!Array.isArray(a)};
Vz=function(a){return"object"===typeof a&&Array.isArray(a)};
Wz=function(a,b,c,d,e,f){g.J.call(this);this.Ub=a;this.Fb=b;this.Md=c;this.Ua=d;this.u=e;this.j=f};
Nua=function(a,b,c){c.ex?(Xz(a.Ub.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId),Lua(a.u,b)):Mua(a.j,c.Qn,b.slotId,c.ssdaiAdsConfig)};
Pua=function(a,b,c,d,e){var f=a.Ua.get().Sf(1);Xz(a.Ub.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return Oua(a.Md.get(),c,d,f.clientPlaybackNonce,f.rO,f.daiEnabled,f,e)},b)};
Zz=function(a,b,c){if(c&&c!==a.slotType)return!1;b=g.r(b);for(c=b.next();!c.done;c=b.next())if(!Yz(a.Ea,c.value))return!1;return!0};
$z=function(a,b){this.bp=b;this.triggerType="TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED";this.triggerId=a(this.triggerType)};
bA=function(a){(void 0!==Fma()?Gh(Error("Biscotti id is disabled")):Cu("//googleads.g.doubleclick.net/pagead/id",mv)).then(function(){aA(!1,a)},function(b){"Biscotti id is disabled"===b.message?aA(!1,a.concat(" known failure")):(g.pz("Failed fetching bid when "+a),aA(!0,a))})};
aA=function(a,b){g.Kv("biscottiBasedDetection",{detected:a,source:b})};
Rua=function(a){Qua=void 0===a?!1:a};
cA=function(a,b,c,d,e){d=void 0===d?{}:d;Qua&&(e=!0);if(!e||5E-4>Math.random()){b=b||null;c=c||null;a=a instanceof Error?a:new g.Pv(a);if(a.args)for(var f=g.r(a.args),h=f.next();!h.done;h=f.next())h=h.value,h instanceof Object&&(d=Object.assign({},h,d));d.category="H5 Ads Control Flow";b&&(d.slot=b?"slot:  "+b.slotType:"");c&&(d.layout=c?"layout:  "+c.layoutType:"");e&&(d.known_error_aggressively_sampled=!0);a.args=[d];g.pz(a)}};
dA=function(a,b,c,d,e,f,h){g.J.call(this);this.Ub=a;this.Md=b;this.uG=c;this.Ha=d;this.j=e;this.Ua=f;this.Ga=h};
eA=function(){this.u=new Map;this.j=new Map;this.B=new Map};
fA=function(a,b){if(g.O("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.u.get(b)||0;c++;a.u.set(b,c);return b+"_"+c}return g.vz(16)};
gA=function(a,b,c){if(g.O("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var d=a.j.get(b)||0;d++;a.j.set(b,d);return c+"_"+b+"_"+d}return g.vz(16)};
hA=function(a,b){if(g.O("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.B.get(b)||0;c++;a.B.set(b,c);return b+"_"+c}return g.vz(16)};
iA=function(a,b,c,d,e,f){this.startSecs=a;this.durationSecs=b;this.context=c;this.identifier=d;this.event=e;this.j=f};
Sua=function(a,b,c,d){this.B=a;this.qf=null;this.u=b;this.j=0;this.daiEnabled=void 0===c?!1:c;this.visible=!0;this.C=void 0===d?!1:d};
jA=function(a,b,c,d){!a&&(void 0===c?0:c)&&g.pz(Error("Player URL validator detects invalid url. "+(void 0===d?"":d)+": "+b));return a};
kA=function(a,b){return b&&b.test(a)?!0:!1};
lA=function(a){return(a=Tua&&Tua.exec(a))?a[0]:""};
mA=function(a){var b=void 0===b?!1:b;return jA(kA(a,Uua),a,b,"Trusted Stream URL")};
g.nA=function(a){var b=void 0===b?!1:b;return jA(kA(a,Vua),a,b,"Trusted Image URL")};
Xua=function(a){var b=void 0===b?!1:b;return jA(kA(a,Wua),a,b,"Trusted Promoted Video Domain URL")};
Zua=function(a){var b=void 0===b?!1:b;return jA(kA(a,Yua),a,b,"Drm Licensor URL")};
ava=function(a,b){b=void 0===b?!1:b;return jA(kA(a,$ua),a,b,"Captions URL")};
bva=function(a){a=new g.Dj(a);g.Ej(a,document.location.protocol);g.Fj(a,document.location.hostname);document.location.port&&g.Gj(a,document.location.port);return a.toString()};
oA=function(a){a=new g.Dj(a);g.Ej(a,document.location.protocol);return a.toString()};
g.qA=function(a,b,c){c=void 0===c?{}:c;this.start=a;this.end=b;this.active=!0;this.color="";this.u=cva++;this.id=c.id||"";this.priority=c.priority||9;this.visible=c.visible||!1;this.style=c.style||pA.AD_MARKER;this.namespace=c.namespace||"";if(a=c.color)a=a.toString(16),this.color="#"+Array(7-a.length).join("0")+a;this.tooltip=c.tooltip;this.icons=c.icons?c.icons.filter(function(d){return g.Td(d.thumbnails,function(e){return g.nA(e.url)})}):null;
this.visible=this.visible;this.style=this.style;this.start=this.start};
dva=function(a){return-0x8000000000000===a?"BEFORE_MEDIA_START":0===a?"MEDIA_START":0x7ffffffffffff===a?"MEDIA_END":0x8000000000000===a?"AFTER_MEDIA_END":a.toString()};
eva=function(a,b){switch(a.style){case pA.CHAPTER_MARKER:return b?8:5;case pA.AD_MARKER:return 6;case pA.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}};
g.rA=function(a,b){return a.start-b.start||a.priority-b.priority||a.u-b.u};
g.sA=function(a){return"crn_"+a};
g.tA=function(a){return"crx_"+a};
uA=function(a,b,c,d,e){g.qA.call(this,b.start,b.end,{id:d,namespace:"ad",priority:e,visible:c});this.j=a.kind||"AD_PLACEMENT_KIND_UNKNOWN";this.B=!1;this.C=null};
vA=function(a){return"AD_PLACEMENT_KIND_START"==a.j};
fva=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.j};
gva=function(a,b,c){c=void 0===c?!1:c;switch(a.kind){case "AD_PLACEMENT_KIND_START":return new yo(-0x8000000000000,-0x8000000000000);case "AD_PLACEMENT_KIND_END":return c?new yo(Math.max(0,b.B-b.j),0x7ffffffffffff):new yo(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.B);if(c&&(d=a,a=Math.max(0,a-b.j),a==d))break;return new yo(a,d);case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":d=
b.qf;a=1E3*d.startSecs;if(c){if(a<b.u)return new yo(a-4E3,a);c=Math.max(0,a-b.u-1E4);return new yo(b.C?b.u:Math.floor(b.u+Math.random()*c),a)}return new yo(a,a+(0<d.durationSecs?1E3*d.durationSecs:5E3))}return null};
wA=function(a,b,c){this.actionType=b;this.id=c;this.content=a};
g.xA=function(a){if(a.simpleText)return a.simpleText;if(a.runs){var b=[];a=g.r(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.yA=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];if(d.text){var e=b,f=e.push,h=null;var l=d.text;d.bold&&(h=gh("B",null,h||l));d.italics&&(h=gh("I",null,h||l));d.strikethrough&&(h=gh("STRIKE",null,h||l));d.navigationEndpoint&&d.navigationEndpoint.urlEndpoint&&(d=d.navigationEndpoint.urlEndpoint,h=gh("A",null,h||l),g.Bg(h,d.url),"TARGET_NEW_WINDOW"==d.target&&(h.target="_blank"));l=h||gh("SPAN",null,
l);f.call(e,l)}}return 1==b.length?b[0]:gh("SPAN",null,b)};
zA=function(a,b,c){c=void 0===c?!1:c;Xa.call(this,a);this.Jr=c;this.args=[];b&&this.args.push(b)};
hva=function(a,b,c,d){var e=a.kind;d=d?!1:!a.hideCueRangeMarker;switch(e){case "AD_PLACEMENT_KIND_START":return d={xn:new yo(-0x8000000000000,-0x8000000000000),dE:d},null!=c&&(d.Jv=new yo(-0x8000000000000,-0x8000000000000)),d;case "AD_PLACEMENT_KIND_END":return d={xn:new yo(0x7ffffffffffff,0x8000000000000),dE:d},null!=c&&(d.Jv=new yo(Math.max(0,b-c),0x8000000000000)),d;case "AD_PLACEMENT_KIND_MILLISECONDS":e=a.adTimeOffset;e.offsetStartMilliseconds||cA("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds.");
e.offsetEndMilliseconds||cA("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 zA("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:a,offsetEndMs:e},e===b&&a-500<=e);d={xn:new yo(a,e),dE:d};if(null!=c){a=Math.max(0,a-c);if(a===e)return d;d.Jv=new yo(a,e)}return d;default:return new zA("AdPlacementKind not supported in convertToRange.",
{kind:e,adPlacementConfig:a})}};
AA=function(a,b){Fw.call(this,1,arguments);this.timer=b};
iva=function(a,b){Fw.call(this,1,arguments);this.j=a;this.timer=b};
jva=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
kva=function(a){var b=BA(a);if(b.aft)return b.aft;a=g.O((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};
lva=function(){var a;if(g.S("csi_use_performance_navigation_timing")||g.S("csi_use_performance_navigation_timing_tvhtml5")){var b,c,d,e=null==CA?void 0:null==(a=CA.getEntriesByType)?void 0:null==(b=a.call(CA,"navigation"))?void 0:null==(c=b[0])?void 0:null==(d=c.toJSON)?void 0:d.call(c);e?(e.requestStart=DA(e.requestStart),e.responseEnd=DA(e.responseEnd),e.redirectStart=DA(e.redirectStart),e.redirectEnd=DA(e.redirectEnd),e.domainLookupEnd=DA(e.domainLookupEnd),e.connectStart=DA(e.connectStart),e.connectEnd=
DA(e.connectEnd),e.responseStart=DA(e.responseStart),e.secureConnectionStart=DA(e.secureConnectionStart),e.domainLookupStart=DA(e.domainLookupStart),e.isPerformanceNavigationTiming=!0,a=e):a=CA.timing}else a=CA.timing;return a};
EA=function(){return(g.S("csi_use_time_origin")||g.S("csi_use_time_origin_tvhtml5"))&&CA.timeOrigin?Math.floor(CA.timeOrigin):CA.timing.navigationStart};
DA=function(a){return Math.round(EA()+a)};
FA=function(a,b){g.Fa("ytglobal.timing"+(b||"")+"ready_",a)};
GA=function(a){return g.Ga("ytcsi."+(a||"")+"data_")||mva(a)};
HA=function(a){a=GA(a);a.info||(a.info={});return a.info};
IA=function(a){a=GA(a);a.metadata||(a.metadata={});return a.metadata};
BA=function(a){a=GA(a);a.tick||(a.tick={});return a.tick};
JA=function(a){a=GA(a);if(a.gel){var b=a.gel;b.gelInfos||(b.gelInfos={});b.gelTicks||(b.gelTicks={})}else a.gel={gelTicks:{},gelInfos:{}};return a.gel};
KA=function(a){a=JA(a);a.gelInfos||(a.gelInfos={});return a.gelInfos};
nva=function(a){a=JA(a);a.jspbInfos||(a.jspbInfos=[]);return a.jspbInfos};
LA=function(a){var b=GA(a).nonce;b||(b=g.vz(16),GA(a).nonce=b);return b};
mva=function(a){var b={tick:{},info:{}};g.Fa("ytcsi."+(a||"")+"data_",b);return b};
qva=function(a){var b=BA(a||""),c=kva(a);c&&!ova&&(Iw(pva,new AA(Math.round(c-b._start),a)),ova=!0)};
rva=function(a,b){for(var c=g.r(Object.keys(b)),d=c.next();!d.done;d=c.next())if(d=d.value,!Object.keys(a).includes(d)||"object"===typeof b[d]&&!rva(a[d],b[d]))return!1;return!0};
sva=function(){if(g.S("skip_setting_info_in_csi_data_object"))return"cold"===IA().loadType;for(var a=nva(),b=[],c=0;c<a.length;c++)b.push(Xd(wt,a[c]));for(a=0;a<b.length;a++)if("cold"===Qd(b[a],3))return!0;return!1};
tva=function(){if(CA.getEntriesByType){var a=CA.getEntriesByType("paint");if(a=g.Pb(a,function(b){return"first-paint"===b.name}))return DA(a.startTime)}a=CA.timing;
return a.I_?Math.max(0,a.I_):0};
MA=function(){var a=g.Ga("ytcsi.debug");a||(a=[],g.Fa("ytcsi.debug",a),g.Fa("ytcsi.reference",{}));return a};
NA=function(a){a=a||"";var b=uva();if(b[a])return b[a];var c=MA(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);return b[a]=d};
OA=function(a){a=a||"";var b=uva();b[a]&&delete b[a];var c=MA(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);b[a]=d};
uva=function(){var a=g.Ga("ytcsi.reference");if(a)return a;MA();return g.Ga("ytcsi.reference")};
PA=function(a){return vva[a]||"LATENCY_ACTION_UNKNOWN"};
Ava=function(a,b,c){c=JA(c);if(c.gelInfos)c.gelInfos[a]=!0;else{var d={};c.gelInfos=(d[a]=!0,d)}if(a.match("_rid")){var e=a.split("_rid")[0];a="REQUEST_ID"}if(a in wva){c=wva[a];g.Sb(xva,c)&&(b=!!b);a in yva&&"string"===typeof b&&(b=yva[a]+b.toUpperCase());a=b;b=c.split(".");for(var f=d={},h=0;h<b.length-1;h++){var l=b[h];f[l]={};f=f[l]}f[b[b.length-1]]="requestIds"===c?[{id:a,endpoint:e}]:a;return Uz({},d)}g.Sb(zva,a)||g.pz(new g.Pv("Unknown label logged with GEL CSI",a))};
QA=function(){this.j=0};
RA=function(){QA.j||(QA.j=new QA);return QA.j};
TA=function(a,b){SA[b]=SA[b]||{count:0};var c=SA[b];c.count++;c.time=(0,g.T)();a.j||(a.j=g.Av(0,function(){var d=(0,g.T)(),e;for(e in SA)SA[e]&&6E4<d-SA[e].time&&delete SA[e];a&&(a.j=0)},5E3));
return 5<c.count?(6===c.count&&1>1E5*Math.random()&&(c=new g.Pv("CSI data exceeded logging limit with key",b.split("_")),0<=b.indexOf("plev")||g.pz(c)),!0):!1};
UA=function(a){mva(a);Bva();a||(g.O("TIMING_ACTION")&&Zt("PREVIOUS_ACTION",g.O("TIMING_ACTION")),Zt("TIMING_ACTION",""))};
YA=function(a,b){b=void 0===b?{}:b;VA(a);OA(a);UA(a);GA(a).useGel=!0;NA(a||"").info.actionType=a;b.cttAuthInfo&&(GA(a).cttAuthInfo=b.cttAuthInfo);Zt(a+"TIMING_ACTION",a);WA("_start",b.startTime,a);b={actionType:PA(a)};var c=g.zz();c&&"UNDEFINED_CSN"!==c&&(b.clientScreenNonce=c);XA(b,a);FA(!0,a)};
g.ZA=function(a,b,c,d){null!==b&&(g.S("skip_setting_info_in_csi_data_object")||(HA(c)[a]=b),(a=Ava(a,b,c))&&XA(a,c,d))};
XA=function(a,b,c){if(!g.S("web_csi_via_jspb")||(void 0===c?0:c))c=NA(b||""),Uz(c.info,a),g.S("skip_setting_info_in_csi_data_object")?a.loadType&&(c=a.loadType,IA(b).loadType=c):Uz(KA(b),a),c=LA(b),b=GA(b).cttAuthInfo,RA().info(a,c,b);else{c=new wt;var d=Object.keys(a);a=Object.values(a);for(var e=0;e<d.length;e++){var f=d[e];try{switch(f){case "actionType":g.E(c,1,U[a[e]]);break;case "clientActionNonce":g.E(c,2,a[e]);break;case "clientScreenNonce":g.E(c,4,a[e]);break;case "loadType":g.E(c,3,a[e]);
break;case "isPrewarmedLaunch":g.E(c,92,a[e]);break;case "isFirstInstall":g.E(c,55,a[e]);break;case "networkType":g.E(c,5,$A[a[e]]);break;case "connectionType":g.E(c,26,aB[a[e]]);break;case "detailedConnectionType":g.E(c,27,bB[a[e]]);break;case "isVisible":g.E(c,6,a[e]);break;case "playerType":g.E(c,7,cB[a[e]]);break;case "clientPlaybackNonce":g.E(c,8,a[e]);break;case "adClientPlaybackNonce":g.E(c,28,a[e]);break;case "previousCpn":g.E(c,77,a[e]);break;case "targetCpn":g.E(c,76,a[e]);break;case "isMonetized":g.E(c,
9,a[e]);break;case "isPrerollAllowed":g.E(c,16,a[e]);break;case "isPrerollShown":g.E(c,17,a[e]);break;case "adType":g.E(c,12,a[e]);break;case "adTypesAllowed":g.E(c,36,a[e]);break;case "adNetworks":g.E(c,37,a[e]);break;case "previousAction":g.E(c,13,U[a[e]]);break;case "isRedSubscriber":g.E(c,14,a[e]);break;case "serverTimeMs":g.E(c,15,a[e]);break;case "videoId":c.setVideoId(a[e]);break;case "adVideoId":g.E(c,20,a[e]);break;case "targetVideoId":g.E(c,78,a[e]);break;case "adBreakType":g.E(c,21,dB[a[e]]);
break;case "isNavigation":g.E(c,25,a[e]);break;case "viewportHeight":g.E(c,29,a[e]);break;case "viewportWidth":g.E(c,30,a[e]);break;case "screenHeight":g.E(c,84,a[e]);break;case "screenWidth":g.E(c,85,a[e]);break;case "browseId":g.E(c,31,a[e]);break;case "isCacheHit":g.E(c,32,a[e]);break;case "httpProtocol":g.E(c,33,a[e]);break;case "transportProtocol":g.E(c,34,a[e]);break;case "searchQuery":g.E(c,41,a[e]);break;case "isContinuation":g.E(c,42,a[e]);break;case "availableProcessors":g.E(c,43,a[e]);
break;case "sdk":g.E(c,44,a[e]);break;case "isLocalStream":g.E(c,45,a[e]);break;case "navigationRequestedSameUrl":g.E(c,64,a[e]);break;case "shellStartupDurationMs":g.E(c,70,a[e]);break;case "appInstallDataAgeMs":g.E(c,73,a[e]);break;case "latencyActionError":g.E(c,71,eB[a[e]]);break;case "actionStep":g.E(c,79,a[e]);break;case "jsHeapSizeLimit":g.E(c,80,a[e]);break;case "totalJsHeapSize":g.E(c,81,a[e]);break;case "usedJsHeapSize":g.E(c,82,a[e]);break;case "sourceVideoDurationMs":g.E(c,90,a[e]);break;
case "videoOutputFrames":g.E(c,93,a[e]);break;case "isResume":g.E(c,104,a[e]);break;case "adPrebufferedTimeSecs":g.E(c,39,a[e]);break;case "isLivestream":g.E(c,47,a[e]);break;case "liveStreamMode":g.E(c,91,fB[a[e]]);break;case "adCpn2":g.E(c,48,a[e]);break;case "adDaiDriftMillis":g.E(c,49,a[e]);break;case "videoStreamType":g.E(c,53,gB[a[e]]);break;case "playbackRequiresTap":g.E(c,56,a[e]);break;case "performanceNavigationTiming":g.E(c,67,a[e]);break;case "transactionType":g.E(c,74,hB[a[e]]);break;
case "playerRotationType":g.E(c,101,iB[a[e]]);break;case "allowedPreroll":g.E(c,10,a[e]);break;case "shownPreroll":g.E(c,11,a[e]);break;case "getHomeRequestId":g.E(c,57,a[e]);break;case "getSearchRequestId":g.E(c,60,a[e]);break;case "getPlayerRequestId":g.E(c,61,a[e]);break;case "getWatchNextRequestId":g.E(c,62,a[e]);break;case "getBrowseRequestId":g.E(c,63,a[e]);break;case "getLibraryRequestId":g.E(c,66,a[e]);break;default:Cva.includes(f)&&g.eu(new g.Pv("Codegen laipb translator asked to translate message field",
""+f))}}catch(h){g.eu(Error("Codegen laipb translator failed to set "+f))}}jB(c,b)}};
jB=function(a,b){if(g.S("skip_setting_info_in_csi_data_object")){var c=Qd(a,3);c&&(IA(b).loadType=c)}else nva(b).push(Wd(a));NA(b||"").jspbInfo.push(a);c=LA(b);b=GA(b).cttAuthInfo;RA().jspbInfo(a,c,b)};
WA=function(a,b,c){if(!b&&"_"!==a[0]){var d=a;CA.mark&&(bb(d,"mark_")||(d="mark_"+d),c&&(d+=" ("+c+")"),CA.mark(d))}d=NA(c||"");d.tick[a]=b||(0,g.T)();if(d.callback&&d.callback[a]){d=g.r(d.callback[a]);for(var e=d.next();!e.done;e=d.next())e=e.value,e()}d=JA(c);d.gelTicks&&(d.gelTicks[a]=!0);d=BA(c);e=b||(0,g.T)();d[a]=e;e=LA(c);var f=GA(c).cttAuthInfo;if("_start"===a){var h=RA();TA(h,"baseline_"+e)||(b={timestamp:b,cttAuthInfo:f},g.S("web_csi_via_jspb")?(f=new tt,g.E(f,1,e),e=new Ut,Gd(e,tt,6,ty,
f),sy(e,b)):g.Kv("latencyActionBaselined",{clientActionNonce:e},b))}else RA().tick(a,e,b,f);qva(c);return d[a]};
Dva=function(a){var b="above_the_fold";CA&&CA.measure&&(bb(b,"measure_")||(b="measure_"+b),a?CA.measure(b,a):CA.measure(b))};
kB=function(a,b){b=BA(b);return a in b};
lB=function(a,b,c){kB("_start",c)&&!kB(a,c)&&WA(a,b,c)};
mB=function(){switch(xoa()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
VA=function(a){kB("_start",a)&&WA("aa",void 0,a)};
Fva=function(a){var b=lva(),c=EA(),d=g.O("CSI_START_TIMESTAMP_MILLIS",0);0<d&&!g.S("embeds_web_enable_csi_start_override_killswitch")&&(c=d);c&&(WA("srt",b.responseStart),1!==a.prerender&&WA("_start",c,void 0));a=tva();0<a&&WA("fpt",a);a=lva();a.isPerformanceNavigationTiming&&XA({performanceNavigationTiming:!0});WA("nreqs",a.requestStart,void 0);WA("nress",a.responseStart,void 0);WA("nrese",a.responseEnd,void 0);0<a.redirectEnd-a.redirectStart&&(WA("nrs",a.redirectStart,void 0),WA("nre",a.redirectEnd,
void 0));0<a.domainLookupEnd-a.domainLookupStart&&(WA("ndnss",a.domainLookupStart,void 0),WA("ndnse",a.domainLookupEnd,void 0));0<a.connectEnd-a.connectStart&&(WA("ntcps",a.connectStart,void 0),WA("ntcpe",a.connectEnd,void 0));a.secureConnectionStart>=EA()&&0<a.connectEnd-a.secureConnectionStart&&(WA("nstcps",a.secureConnectionStart,void 0),WA("ntcpe",a.connectEnd,void 0));CA&&"getEntriesByType"in CA&&Eva()};
Gva=function(a,b){a=document.querySelector(a);if(!a)return!1;var c="",d=a.nodeName;"SCRIPT"===d?(c=a.src,c||(c=a.getAttribute("data-timing-href"))&&(c=window.location.protocol+c)):"LINK"===d&&(c=a.href);Dg()&&a.setAttribute("nonce",Dg());return c?(a=CA.getEntriesByName(c))&&a[0]&&(a=a[0],c=EA(),WA("rsf_"+b,c+Math.round(a.fetchStart)),WA("rse_"+b,c+Math.round(a.responseEnd)),void 0!==a.transferSize&&0===a.transferSize)?!0:!1:!1};
Hva=function(){var a=[];if(document.querySelector&&CA&&CA.getEntriesByName)for(var b in nB)if(nB.hasOwnProperty(b)){var c=nB[b];Gva(b,c)&&a.push(c)}return a};
Eva=function(){var a=window.location.protocol,b=CA.getEntriesByType("resource");b=g.um(b,function(c){return 0===c.name.indexOf(a+"//fonts.gstatic.com/s/")});
(b=Pk(b,function(c,d){return d.duration>c.duration?d:c},{duration:0}))&&0<b.startTime&&0<b.responseEnd&&(WA("wffs",DA(b.startTime)),WA("wffe",DA(b.responseEnd)))};
pB=function(){return g.vw||g.oB||g.Ou()&&19>wma()?!1:!("function"!==typeof window.fetch||!window.ReadableStream)};
qB=function(){var a=XMLHttpRequest.prototype.fetch;return!!a&&3===a.length};
g.rB=function(a,b){this.id=a;this.Nc=b;this.captionTracks=[];this.j=this.B=this.C=null;this.u="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN"};
sB=function(a,b,c,d){this.B=c;this.reason=d;this.u=a||0;this.j=b||0};
g.uB=function(a,b,c,d){return new sB(g.tB[a]||0,g.tB[b]||0,c,d)};
vB=function(a){var b=g.tB.auto;return a.u===b&&a.j===b};
xB=function(a){return wB[a.j||a.u]||"auto"};
Iva=function(a,b){b=g.tB[b];return a.u<=b&&(!a.j||a.j>=b)};
yB=function(a,b){this.videoInfos=a;this.j=b;this.audioTracks=[];if(this.j){a=new Set;b=g.r(this.j);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.Nc&&!a.has(c.Nc.id)){var d=new g.rB(c.id,c.Nc);a.add(c.Nc.id);this.audioTracks.push(d)}}};
Lva=function(a,b,c,d,e){var f={},h=new Set,l={};if(zB(c)){for(var m in c.j)c.j.hasOwnProperty(m)&&(d=c.j[m],l[d.info.j]=[d.info]);return l}if(a.Z){var n={};for(q in c.j)if(c.j.hasOwnProperty(q)){var p=c.j[q].info;m=p.j;n[m]=n[m]||[];n[m].push(p)}var q=g.r(Object.keys(n));for(m=q.next();!m.done;m=q.next())AB(a,n[m.value],[]);e&&d({aftsrt:BB(n)});q={};p=g.r(Object.keys(n));for(m=p.next();!m.done;m=p.next()){m=m.value;for(var u=g.r(n[m]),w=u.next();!w.done;w=u.next()){w=w.value;var y=w.itag,A=void 0,
B=m+"_"+((null==(A=w.video)?void 0:A.fps)||0);q.hasOwnProperty(B)?!0===q[B]?l[m].push(w):f[y]=q[B]:(A=CB(a,w,b,c.isLive,!1,h),!0!==A?(f[y]=A,"disablevp9hfr"===A&&(q[B]="disablevp9hfr")):(l[m]=l[m]||[],l[m].push(w),q[B]=!0))}}}else{q=!1;if(a.lc)for(p in c.j)if(c.j.hasOwnProperty(p)&&(m=c.j[p].info,DB(m)&&m.yd&&m.video&&1440<=m.video.j&&32<m.video.fps)){q=!0;d({fmtflt:"disablevp9Hfr"});break}for(n in c.j)c.j.hasOwnProperty(n)&&(p=c.j[n],m=p.info.itag,u=CB(a,p.info,b,c.isLive,q,h),!0!==u?f[m]=u:(l[p.info.j]=
l[p.info.j]||[],l[p.info.j].push(p.info)))}e&&d({bfflt:BB(l)});for(var D in l)l.hasOwnProperty(D)&&(c=D,l[c]&&l[c][0].isVideo()&&(l[c]=l[c],l[c]=Jva(a,l[c],f),l[c]=Kva(l[c],f)));e&&d(f);a=g.r(h.values());for(c=a.next();!c.done;c=a.next())(c=b.u.get(c.value))&&--c.mS;b=g.mf(l,function(G){return!!G.length});
e&&d({aftflt:BB(l)});return b};
CB=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?new Set:f;if(""===b.j)return"unkn";if(("304"===b.itag||"266"===b.itag)&&a.ob)return"blk2khfr";if(a.J&&b.video&&b.video.j>a.J)return"max"+a.J;if(a.S&&b.video&&b.video.j<a.S)return"min"+a.S;if(a.Gb&&"h"===b.j&&b.video&&1080<b.video.j)return"blkhigh264";if("(h"===b.j&&!c.D)return"enchdr";if((void 0===d?0:d)&&Mva(b)&&!a.Wa)return"blk51live";if(Nva(b)&&!a.Qa)return"blk51ugc";if(!a.Lc&&b.yd&&b.yd.fairplay&&("("===b.j||"(h"===b.j||"A"===b.j||"MEAC3"===
b.j))return"cbc";if((d=c.u.get(b.j))&&0<d.mS)return f.add(b.j),"byerr";var h;if(null==(h=b.video)?0:32<h.fps){if(!c.S||!c.qa&&!EB(c,FB.FRAMERATE))return"capHfr";if(a.yb&&4320<=b.video.j)return"blk8khfr";if(DB(b)&&(e||a.Z&&a.lc&&b.yd&&1440<=b.video.j))return"disablevp9hfr"}a=Ova(c,b);return!0!==a?a:!0};
Pva=function(a,b){var c=b.D&&!(!a.mac3&&!a.MAC3),d=b.I&&!(!a.meac3&&!a.MEAC3);return b.Aa&&!(!a.m&&!a.M)||c||d};
GB=function(a){switch(a){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return a}};
BB=function(a){var b=[],c;for(c in a)if(a.hasOwnProperty(c)){var d=c;b.push(GB(d));d=g.r(a[d]);for(var e=d.next();!e.done;e=d.next())b.push(e.value.itag)}return b.join(".")};
Qva=function(a,b,c,d,e){var f={},h={};g.lf(b,function(l,m){l=l.filter(function(n){var p=n.itag;if(!n.yd)return h[p]="noenc",!1;if("("===n.j||"(h"===n.j){if(a.B&&c&&"widevine"===c.flavor){var q=n.mimeType+"; experimental=allowed";(q=!!n.yd[c.flavor]&&!!c.j[q])||(h[p]=n.yd[c.flavor]?"unspt":"noflv");return q}if(!EB(a,FB.CRYPTOBLOCKFORMAT)&&!a.Aa||a.ea)return h[p]=a.ea?"disvp":"vpsub",!1}return c&&n.yd[c.flavor]&&c.j[n.mimeType]?!0:(h[p]=c?n.yd[c.flavor]?"unspt":"noflv":"nosys",!1)});
l.length&&(f[m]=l)});
d&&Object.entries(h).length&&e(h);return f};
Uva=function(a,b,c,d,e){function f(w){return!!l[w]}
var h=a.B||!!d,l=Lva(a,b,c,e,h);HB(c)&&(l=Qva(b,l,d,h,e),h&&e({enflt:BB(l)}));a.Lb=Pva(l,a);if(zB(c))return e=g.Pb(Object.values(l),function(w){return!!w.length&&!!w[0].audio}),a=g.Pb(Object.values(l),function(w){return!!w.length&&!!w[0].video}),e&&a||Fu(),Gu(new yB(a,e));
b=Rva(a);h&&e({audioPrefOrder:b.join("_")});b=g.Pb(b,f);if(!b)return h&&e({noaudio:1}),Fu();b=l[b];l["9"]&&l.h&&c.vf&&!a.Ya&&(h&&e({dltvp9:1}),delete l["9"]);var m=l["1h"]?"1h":"1";d=l["9h"]?"9h":"9";var n=l[m],p=l[d];n&&n.length&&(a.u.highestAv1Resolution=n[n.length-1].video.j);p&&p.length&&(a.u.highestVp9Resolution=p[p.length-1].video.j);var q=[],u=[];if(a.Ba&&!a.j)for(u=Sva(c)?l["1h"]||l["9h"]?["1h","9h"]:["9","h"]:["1","9","h"],h&&e({newhybpref:u.join(".")}),n=g.r(u),p=n.next();!p.done;p=n.next())q=
q.concat(l[p.value]).filter(function(w){return w});
else 0<a.ea&&p&&n&&(u=[m,d],q=n.concat(p).filter(function(w){return w}));
if(q.length&&!a.j){AB(a,q,b,u);if(h){a=[];h=g.r(q);for(c=h.next();!c.done;c=h.next())a.push(c.value.itag);e({hbdfmt:a.join(".")})}return Gu(new yB(q,b))}q=Tva(a);q=g.Pb(q,f);if(!q){if(l[m])return e=l[m],AB(a,e,b),Gu(new yB(e,b));h&&e({novideo:1});return Fu()}a.Ac&&("1"===q||"1h"===q)&&l[d]&&(m=IB(l[q]),IB(l[d])>m&&(q=d));"9"===q&&l.h&&(d=IB(l["9"]),IB(l.h)>1.5*d&&(q="h"));a.Rb&&c.isLive&&"("===q&&l.H&&1440>IB(l["("])&&(q="H");h&&e({vfmly:GB(q)});c=l[q];if(!c.length)return h&&e({novfmly:GB(q)}),Fu();
AB(a,c,b);return Gu(new yB(c,b))};
AB=function(a,b,c,d){d=void 0===d?[]:d;g.lc(b,function(e,f){var h=f.Tb-e.Tb;if(a.Z&&(!e.isVideo()||!f.isVideo()))return h;var l=f.video.height*f.video.width-e.video.height*e.video.width;!l&&d&&0<d.length&&(e=d.indexOf(e.j)+1,f=d.indexOf(f.j)+1,l=0===e||0===f?f||-1:e-f);l||(l=h);return l});
a.Z||g.lc(c,function(e,f){return f.Tb-e.Tb})};
Kva=function(a,b){var c=Pk(a,function(d,e){return 32<e.video.fps?Math.min(d,e.video.width):d},Infinity);
Infinity>c&&(a=a.filter(function(d){if(32<d.video.fps||d.video.width<c)return!0;b[d.itag]="hfrfirst";return!1}));
Qu()&&(a=a.filter(function(d){if("299"!==d.itag)return!0;b[d.itag]="ps3hfr1080";return!1}));
return a};
Jva=function(a,b,c){return b=b.filter(function(d){if(d.video.j<=a.Pc)return!0;c[d.itag]="maxquality";return!1})};
IB=function(a){return Pk(a,function(b,c){return Math.max(b,c.video.j)},0)};
Vva=function(a){a=void 0===a?{}:a;var b=void 0===a.Sm?!1:a.Sm,c=void 0===a.defraggedFromSubfragments?!1:a.defraggedFromSubfragments,d=void 0===a.isManifestless?!1:a.isManifestless,e=void 0===a.fL?!1:a.fL;return((void 0===a.hasSubfragmentedFmp4?0:a.hasSubfragmentedFmp4)||b)&&d?e&&pB()?3:2:c&&d?-1:1};
Wva=function(a){return Vva({hasSubfragmentedFmp4:a.C.cj,Sm:a.C.cj,defraggedFromSubfragments:a.Wn,isManifestless:!0,fL:a.ya})};
Xva=function(a){a=a.split("");JB.ZH(a,3);JB.xh(a,15);JB.zP(a,23);JB.xh(a,51);JB.ZH(a,3);JB.xh(a,40);JB.zP(a,14);JB.xh(a,16);return a.join("")};
g.KB=function(a,b){this.u=a;this.D=void 0===b?!1:b;this.C=this.path=this.B="";this.j={};this.url=""};
MB=function(a){LB(a);return a.C};
NB=function(a){return a.u?bb(a.u,"local"):"local"===a.B};
Yva=function(a){LB(a);return g.of(a.j,function(b){return null!==b})};
OB=function(a){LB(a);var b=decodeURIComponent(a.get("mn")||"").split(",");return"/videoplayback"===a.path&&1<b.length&&!!b[1]};
PB=function(a,b){b=void 0===b?!1:b;LB(a);if("/videoplayback"!==a.path){var c=a.clone();c.set("playerfallback","1");return c}var d=a.ye();c=new g.Dj(d);var e=a.get("fvip"),f=decodeURIComponent(a.get("mn")||"").split(",");if(e&&f&&1<f.length&&f[1])return d=c.j,a=d.replace(/^[^.]*/,""),g.Fj(c,(0===d.indexOf("rr")?"rr":"r")+e+"---"+f[1]+a),c=new g.KB(c.toString()),c.set("fallback_count","1"),c;if(b)return c=a.clone(),c.set("fallback_count","1"),c;e=c.j.match("\\.a1\\.googlevideo\\.com$");c.j.match("\\.googlevideo\\.com$")?
(g.Fj(c,"redirector.googlevideo.com"),d=c.toString()):c.j.match("rr?[1-9].*\\.c\\.youtube\\.com$")?(g.Fj(c,"www.youtube.com"),d=c.toString()):d=bva(d);c=new g.KB(d);c.set("cmo=pf","1");e&&c.set("cmo=td","a1.googlevideo.com");return c};
LB=function(a){if(a.u){if(!mA(a.u)&&!a.u.startsWith("local"))throw new g.Pv("Untrusted URL",a.u);var b=g.Mj(a.u);a.B=b.C;a.C=b.j+(null!=b.B?":"+b.B:"");var c=b.getPath();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.j;a.j=Zva(c);
Object.assign(a.j,$va(b.u.toString()));Object.assign(a.j,d);"index.m3u8"===a.j.file&&(delete a.j.file,a.path+="/file/index.m3u8");a.u="";a.url="";a.D&&(b=a.get("n"))&&(b=awa[0](b),a.set("n",b),awa.length||Xka(""))}};
bwa=function(a){LB(a);var b=a.B+(a.B?"://":"//")+a.C+a.path;if(Yva(a)){var c=[];g.lf(a.j,function(d,e){null!==d&&c.push(e+"="+d)});
b+="?"+c.join("&")}return b};
Zva=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&cwa(c,a[b],a[b+1]);return c};
$va=function(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?cwa(b,d.substr(0,e),d.substr(e+1)):d&&(b[d]="")}return b};
cwa=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};
QB=function(a,b,c,d,e,f,h,l,m){this.Na=a;this.startTime=b;this.duration=c;this.ingestionTime=d;this.sourceURL=e;this.qf=m;this.endTime=b+c;this.j=h||0;this.range=f||null;this.pending=l||!1;this.qf=m||null};
RB=function(){this.segments=[];this.j=null;this.u=!0};
dwa=function(a,b){if(b>a.getLastSegmentNumber())a.segments=[];else{var c=Lb(a.segments,function(d){return d.Na>=b},a);
0<c&&a.segments.splice(0,c)}};
SB=function(a){var b=this;a=void 0===a?[]:a;this.j=[];this.B=this.u=0;this.C=void 0;this.totalLength=0;a.forEach(function(c){b.append(c)})};
ewa=function(a,b){return 0===a.j.length?!1:(a=a.j[a.j.length-1])&&a.buffer===b.buffer&&a.byteOffset+a.length===b.byteOffset};
TB=function(a,b){b=g.r(b.j);for(var c=b.next();!c.done;c=b.next())a.append(c.value)};
UB=function(a,b,c){return a.split(b).ap.split(c).TC};
VB=function(a){a.C=void 0;a.u=0;a.B=0};
WB=function(a,b,c){a.isFocused(b);return b-a.B+c<=a.j[a.u].length};
fwa=function(a){if(!a.C){var b=a.j[a.u];a.C=new DataView(b.buffer,b.byteOffset,b.length)}return a.C};
gwa=function(a,b,c){b=void 0===b?0:b;c=void 0===c?-1:c;if(!a.totalLength||!c)return new DataView(new ArrayBuffer(0));0>c&&(c=a.totalLength-b);a.focus(b);if(!WB(a,b,c)){var d=a.u,e=a.B;a.focus(b+c-1);e=new Uint8Array(a.B+a.j[a.u].length-e);for(var f=0,h=d;h<=a.u;h++)e.set(a.j[h],f),f+=a.j[h].length;a.j.splice(d,a.u-d+1,e);VB(a);a.focus(b)}d=a.j[a.u];return new DataView(d.buffer,d.byteOffset+b-a.B,c)};
XB=function(a,b,c){a=gwa(a,void 0===b?0:b,void 0===c?-1:c);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)};
hwa=function(a){a=XB(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};
YB=function(a,b){a.focus(b);return a.j[a.u][b-a.B]};
iwa=function(a,b){a.focus(b);return WB(a,b,4)?fwa(a).getUint32(b-a.B):256*(256*(256*YB(a,b)+YB(a,b+1))+YB(a,b+2))+YB(a,b+3)};
ZB=function(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b};
$B=function(a){return String.fromCharCode.apply(null,a)};
bC=function(a){return aC?aC.decode(a):$B(a)};
g.fC=function(a){if(!a.length)return"";try{if(aC)return aC.decode(a);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(a)}catch(h){}for(var b=0,c=[],d=a.length;b<d;){for(var e=0;1024>e&&b<d;){var f=a[b++];if(128>f)eC[e++]=f;else{if(224>f)f=(f&31)<<6|a[b++]&63;else if(240>f)f=(f&15)<<12|(a[b++]&63)<<6|a[b++]&63;else{if(1024===e+1){--b;break}f=(f&7)<<18|(a[b++]&63)<<12|(a[b++]&63)<<6|a[b++]&63;f-=65536;eC[e++]=55296|f>>10;f=56320|f&1023}eC[e++]=f}}f=String.fromCharCode.apply(String,eC);
1024>e&&(f=f.substr(0,e));c.push(f)}return c.join("")};
hC=function(a,b){var c;if(null==(c=gC)?0:c.encodeInto)return b=gC.encodeInto(a,b),b.read<a.length?4*a.length:b.written;for(var d=c=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 c};
jwa=function(a){if(gC)return gC.encode(a);var b=new Uint8Array(Math.ceil(1.2*a.length)),c=hC(a,b);b.length<c&&(b=new Uint8Array(c),c=hC(a,b));b.length>c&&(b=b.subarray(0,c));return b};
iC=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.j=(this.u=e)?0:8;this.dataOffset=this.offset+this.j};
jC=function(a){var b=a.data.getUint8(a.offset+a.j);a.j+=1;return b};
kC=function(a){var b=a.data.getUint16(a.offset+a.j);a.j+=2;return b};
lC=function(a){var b=a.data.getInt32(a.offset+a.j);a.j+=4;return b};
mC=function(a){var b=a.data.getUint32(a.offset+a.j);a.j+=4;return b};
nC=function(a){var b=a.data;var c=a.offset+a.j;b=4294967296*b.getUint32(c)+b.getUint32(c+4);a.j+=8;return b};
oC=function(a,b){b=void 0===b?NaN:b;if(isNaN(b))var c=a.size;else for(c=a.j;c<a.size&&a.data.getUint8(a.offset+c)!==b;)++c;b=new Uint8Array(a.data.buffer,a.offset+a.j+a.data.byteOffset,c-a.j);a.j=Math.min(c+1,a.size);return bC(b)};
kwa=function(a){this.offset=0;this.data=new DataView(new ArrayBuffer(a))};
pC=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};
rC=function(a,b){this.data=a;this.uri=b||"http://youtube.com/streaming/metadata/segment/102015";this.j=qC(this,"Sequence-Number");this.I=qC(this,"Segment-Count");this.J=this.data["Segment-Durations-Ms"]||"";this.ingestionTime=qC(this,"Ingestion-Walltime-Us")/1E6;this.u=(qC(this,"First-Frame-Time-Us")+qC(this,"First-Frame-Uncertainty-Us"))/1E6;this.Fk=qC(this,"Target-Duration-Us")/1E6;this.C="T"===this.data["Stream-Finished"];this.D="T"===this.data.Streamable;this.cryptoPeriodIndex=qC(this,"Crypto-Period-Index");
this.B=qC(this,"Crypto-Period-Seconds")};
mwa=function(a){return a.data["Cuepoint-Type"]?new iA(-(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0),Number(a.data["Cuepoint-Total-Duration-Sec"])||0,a.data["Cuepoint-Context"],a.data["Cuepoint-Identifier"]||"",lwa[a.data["Cuepoint-Event"]||""]||"unknown",1E3*(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0)):null};
nwa=function(a){return Number(a.data["Start-Media-Time-Us"])/1E6||0};
qC=function(a,b){return Number(a.data[b])||0};
sC=function(a){return a.data["Stitched-Video-Cpn"]?a.data["Stitched-Video-Cpn"].split(",").slice(0,-1):[]};
g.owa=function(a){return a.data["Serialized-State"]?a.data["Serialized-State"]:""};
g.pwa=function(a){switch(a.data["Is-Ad-Break-Finished"]){case "true":return 1;case "false":return 2;default:return 0}};
qwa=function(a,b){this.j=a;this.duration=b};
rwa=function(a,b,c,d,e){this.u=e;this.j=a||0;this.pitch=b||0;this.yaw=c||0;this.roll=d||0;e.getUint32(4)};
tC=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};
swa=function(a,b){var c=g.uC(a,0,1952868452);a=g.uC(a,0,1953658222);if(c&&a){c.skip(1);var d=jC(c)<<16|kC(c);c.skip(4);d&1&&c.skip(8);d&2&&c.skip(4);if(d&8){d=c.j;var e=mC(c);c.data.setUint32(c.offset+d,1<b?Math.ceil(e*b):Math.floor(e*b))}a.skip(1);c=jC(a)<<16|kC(a);if(c&256){d=c&1;e=c&4;var f=c&512,h=c&1024,l=c&2048;c=mC(a);d&&a.skip(4);e&&a.skip(4);d=(f?4:0)+(h?4:0)+(l?4:0);for(e=0;e<c;e++)f=a.j,h=mC(a),a.data.setUint32(a.offset+f,1<b?Math.ceil(h*b):Math.floor(h*b)),a.skip(d)}}};
wC=function(a){a=new DataView(a.buffer,a.byteOffset,a.byteLength);return(a=g.uC(a,0,1836476516))?g.vC(a):NaN};
twa=function(a){var b=g.uC(a,0,1937011556);if(!b)return null;b=xC(a,b.dataOffset+8,1635148593)||xC(a,b.dataOffset+8,1635135537);if(!b)return null;var c=xC(a,b.dataOffset+78,1936995172),d=xC(a,b.dataOffset+78,1937126244);if(!d)return null;b=null;if(c)switch(c.skip(4),jC(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=xC(a,d.dataOffset,1886547818)){var h=xC(a,d.dataOffset,1886546020),l=xC(a,d.dataOffset,2037673328);if(!l&&(l=xC(a,d.dataOffset,1836279920),
!l))return null;h&&(h.skip(4),c=lC(h)/65536,f=lC(h)/65536,e=lC(h)/65536);a=new DataView(l.data.buffer,l.dataOffset,l.size-8);return new rwa(b,c,f,e,a)}return null};
xC=function(a,b,c){for(;yC(a,b);){var d=zC(a,b);if(d.type===c)return d;b+=d.size}return null};
g.uC=function(a,b,c){for(;yC(a,b);){var d=zC(a,b);if(d.type===c)return d;b=AC(d.type)?b+8:b+d.size}return null};
g.BC=function(a){if(a.data.getUint8(a.dataOffset)){var b=a.data;a=a.dataOffset+4;b=4294967296*b.getUint32(a)+b.getUint32(a+4)}else b=a.data.getUint32(a.dataOffset+4);return b};
zC=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new iC(a,b,c,d)};
g.vC=function(a){var b=a.data.getUint8(a.dataOffset)?20:12;return a.data.getUint32(a.dataOffset+b)};
uwa=function(a){a=new iC(a.data,a.offset,a.size,a.type,a.u);var b=jC(a);a.skip(7);var c=mC(a);if(0===b){b=mC(a);var d=mC(a)}else b=nC(a),d=nC(a);a.skip(2);for(var e=kC(a),f=[],h=[],l=0;l<e;l++){var m=mC(a);f.push(m);h.push(mC(a));a.skip(4)}return{lL:c,tY:b,PY:d,T3:f,gL:h}};
yC=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||1635135537===c||1635135811===c)return!0;for(c=4;8>c;c++){var d=a.getInt8(b+c);if(97>d||122<d)return!1}return!0};
AC=function(a){return 1701082227===a||1836019558===a||1836019574===a||1835297121===a||1835626086===a||1937007212===a||1953653094===a||1953653099===a||1836475768===a};
vwa=function(a){a.skip(4);return{s4:oC(a,0),value:oC(a,0),lL:mC(a),W5a:mC(a),j5a:mC(a),id:mC(a),vQ:oC(a),offset:a.offset}};
g.wwa=function(a){var b=xC(a,0,1701671783);if(!b)return null;var c=vwa(b),d=c.s4;c=tC(c.vQ);if(a=xC(a,b.offset+b.size,1701671783))if(a=vwa(a),a=tC(a.vQ),c&&a){b=g.r(Object.keys(a));for(var e=b.next();!e.done;e=b.next())e=e.value,c[e]=a[e]}return c?new rC(c,d):null};
CC=function(a,b){for(var c=xC(a,0,b);c;)c.markAsSkip(),c=xC(a,c.offset+c.size,b)};
g.DC=function(a,b){for(var c=0,d=[];yC(a,c);){var e=zC(a,c);e.type===b&&d.push(e);c=AC(e.type)?c+8:c+e.size}return d};
ywa=function(a,b){var c=g.uC(a,0,1937011556),d=g.uC(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.uC(e,0,1937011556);if(!f)return null;b=e.getUint32(f.dataOffset+8);d=e.getUint32(f.dataOffset+12);if(1701733217!==d&&1701733238!==d)return null;d=new kwa(a.byteLength+b);pC(d,a,0,c.offset+12);d.data.setInt32(d.offset,2);d.offset+=4;pC(d,a,c.offset+16,c.size-16);pC(d,e,e.byteOffset+f.dataOffset+8,b);pC(d,a,c.offset+c.size,a.byteLength-
(c.offset+c.size));c=g.r([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(e=c.next();!e.done;e=c.next())e=g.uC(a,0,e.value),d.data.setUint32(e.offset,e.size+b);if(xwa)return d.data;a=g.uC(d.data,0,1953654136);d.data.setUint32(a.offset+16,2);return d.data};
EC=function(a,b){this.j=a;this.pos=0;this.start=b||0};
FC=function(a){return a.pos>=a.j.byteLength};
KC=function(a,b,c){var d=new EC(c);if(!GC(d,a))return!1;d=HC(d);if(!IC(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.start+d.pos;var e=JC(d,!0);d=a+(d.start+d.pos-b)+e;d=9<d?zwa(d-9,8):zwa(d-2,1);a=b-a;c.setUint8(a++,236);for(b=0;b<d.length;b++)c.setUint8(a++,d[b]);return!0};
Awa=function(a){var b=new EC(a);b.hw();if(GC(b,[408125543,374648427,174,224]))b=HC(b);else return null;for(var c=a=null;!FC(b);){var d=JC(b,!1);if(21432===d)switch(LC(b)){default:a=0;break;case 1:a=1;break;case 3:a=2;break;case 15:a=255}else 30320===d?c=HC(b):MC(b)}if(!c)return null;for(var e,f=d=b=null;!FC(c);)switch(JC(c,!1)){case 30321:if(3!==LC(c))return null;break;case 30324:b=NC(c);break;case 30323:f=NC(c);break;case 30325:d=NC(c);break;case 30322:e=JC(c,!0);e=OC(c,e);e=new DataView(e.buffer,
e.byteOffset,e.byteLength);break;default:MC(c)}return e?new rwa(a,b,f,d,e):null};
HC=function(a){var b=JC(a,!0),c=a.j.byteOffset+a.pos;c=new DataView(a.j.buffer,c,Math.min(b,a.j.buffer.byteLength-c));c=new EC(c,a.start+a.pos);a.pos+=b;return c};
LC=function(a){for(var b=JC(a,!0),c=PC(a),d=1;d<b;d++)c=256*c+PC(a);return c};
NC=function(a){var b=JC(a,!0),c=0;4===b?c=a.j.getFloat32(a.pos):8===b&&(c=a.j.getFloat64(a.pos));a.pos+=b;return c};
Bwa=function(a){var b=JC(a,!0);return bC(OC(a,b))};
PC=function(a){return a.j.getUint8(a.pos++)};
JC=function(a,b){var c=PC(a);if(1===c){for(b=c=0;7>b;b++)c=256*c+PC(a);return c}for(var d=128,e=0;6>e&&d>c;e++)c=256*c+PC(a),d*=128;return b?c-d:c};
MC=function(a){var b=JC(a,!0);a.pos+=b};
Cwa=function(a){if(!IC(a,440786851,!0))return null;var b=a.pos;JC(a,!1);var c=JC(a,!0)+a.pos-b;a.pos=b+c;if(!IC(a,408125543,!1))return null;JC(a,!0);if(!IC(a,357149030,!0))return null;var d=a.pos;JC(a,!1);var e=JC(a,!0)+a.pos-d;a.pos=d+e;if(!IC(a,374648427,!0))return null;var f=a.pos;JC(a,!1);var h=JC(a,!0)+a.pos-f,l=new Uint8Array(c+12+e+h),m=new DataView(l.buffer);l.set(new Uint8Array(a.j.buffer,a.j.byteOffset+b,c));m.setUint32(c,408125543);m.setUint32(c+4,33554431);m.setUint32(c+8,4294967295);
l.set(new Uint8Array(a.j.buffer,a.j.byteOffset+d,e),c+12);l.set(new Uint8Array(a.j.buffer,a.j.byteOffset+f,h),c+12+e);return l};
QC=function(a){var b=a.pos;a.pos=0;var c=1E6;GC(a,[408125543,357149030,2807729])&&(c=LC(a));a.pos=b;return c};
Dwa=function(a,b){var c=a.pos;a.pos=0;if(160!==a.j.getUint8(a.pos)&&!RC(a)||!IC(a,160))return a.pos=c,NaN;JC(a,!0);var d=a.pos;if(!IC(a,161))return a.pos=c,NaN;JC(a,!0);PC(a);var e=PC(a)<<8|PC(a);a.pos=d;if(!IC(a,155))return a.pos=c,NaN;d=LC(a);a.pos=c;return(e+d)*b/1E9};
RC=function(a){if(!Ewa(a)||!IC(a,524531317))return!1;JC(a,!0);return!0};
Ewa=function(a){if(a.hw()){if(!IC(a,408125543))return!1;JC(a,!0)}return!0};
GC=function(a,b){for(var c=0;c<b.length;c++){if(!IC(a,b[c]))return!1;c!==b.length-1&&JC(a,!0)}return!0};
IC=function(a,b,c){c=void 0===c?!1:c;if(FC(a))return!1;for(var d=a.pos;JC(a,!1)!==b;)if(MC(a),d=a.pos,FC(a))return!1;c&&(a.pos=d);return!0};
zwa=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};
OC=function(a,b){var c=new Uint8Array(a.j.buffer,a.j.byteOffset+a.pos,b);a.pos+=b;return c};
SC=function(a){this.lj=a;this.j={};this.url=""};
Fwa=function(a,b){var c=b.indexOf("?");if(0<c){var d=$va(b.substr(c+1));g.lf(d,function(e,f){this.set(f,e)},a);
b=b.substr(0,c)}b=Zva(b);g.lf(b,function(e,f){this.set(f,e)},a)};
Gwa=function(a){var b=a.lj.ye(),c=[];g.lf(a.j,function(e,f){c.push(f+"="+e)});
if(!c.length)return b;var d=c.join("&");a=Yva(a.lj)?"&":"?";return b+a+d};
TC=function(a,b){var c=new g.KB(b);(b=c.get("req_id"))&&a.set("req_id",b);g.lf(a.j,function(d,e){c.set(e,null)});
return c};
Hwa=function(){this.u=this.j=this.timedOut=this.started=this.C=this.B=0};
Iwa=function(a){a.B=(0,g.T)();a.started+=1};
UC=function(a){a.C=(0,g.T)();a.started=0;a.timedOut=0;a.j=0};
Jwa=function(a,b,c){var d=a.started+4*a.j;c&&(d+=a.u);return Math.pow(b.Qi,d)};
VC=function(a,b){a[b]||(a[b]=new Hwa);return a[b]};
Kwa=function(a){this.J=this.I=this.D=this.u=0;this.j=a;this.C=a.clone()};
XC=function(a,b,c){if(NB(a.j))return!1;var d=VC(c,MB(a.j));if(1>d.timedOut&&1>d.j)return!1;d=d.timedOut+d.j;a=WC(a,b);c=VC(c,MB(a));return c.timedOut+c.j+ +(b.fm&&!c.C)<d};
Lwa=function(a,b,c){a=b?WC(a,c):a.j;return new SC(a)};
WC=function(a,b){b=b?b.Lj:!1;a.B||(a.B=PB(a.C,b));return a.B};
Mwa=function(a,b){var c=a.D+b.Rs*(a.u-a.D)+.25*a.I;b=c>b.Vg?1E3*Math.pow(b.Qi,c-b.Vg):0;return 0===b?!0:a.J+b<(0,g.T)()};
YC=function(a,b,c,d){this.initRange=c;this.indexRange=d;this.j=null;this.D=!1;this.J=0;this.C=this.B=null;this.info=b;this.u=new Kwa(a)};
ZC=function(a,b,c,d){var e=g.r(a.info.id.split(";")),f=e.next().value;e=e.next().value;return(d?(c||"")+";":"")+f+";"+(b?0:a.info.lastModified)+";"+(void 0===e?"":e)};
$C=function(a,b){this.start=a;this.end=b;this.length=b-a+1};
aD=function(a){a=a.split("-");var b=Number(a[0]),c=Number(a[1]);if(!isNaN(b)&&!isNaN(c)&&2===a.length&&(a=new $C(b,c),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0<a.length))return a};
bD=function(a,b){return new $C(a,a+b-1)};
Nwa=function(a){return null==a.end?{start:String(a.start)}:{start:String(a.start),end:String(a.end)}};
cD=function(a,b,c,d,e,f,h,l,m,n){this.type=a;this.j=b;this.range=c;this.J=[];this.D="";this.Na=-1;this.D=void 0===d?"":d;this.Na=0<=e?e:-1;this.startTime=f||0;this.duration=h||0;this.Kb=l||0;this.u=0<=m?m:this.range?this.range.length:NaN;this.Ge=this.range?this.Kb+this.u===this.range.length:void 0===n?!!this.u:n;this.range?(this.C=this.startTime+this.duration*this.Kb/this.range.length,this.I=this.duration*this.u/this.range.length,this.B=this.C+this.I):Owa(this)};
Owa=function(a){a.C=a.startTime;a.I=a.duration;a.B=a.C+a.I};
dD=function(a){return a.Ge&&a.j.index.HI(a.Na)};
Pwa=function(a,b,c){var d=!(!b||b.j!==a.j||b.type!==a.type||b.Na!==a.Na);return c?d&&!!b&&(a.range&&b.range?b.range.end===a.range.end:b.range===a.range)&&b.Kb+b.u===a.Kb+a.u:d};
eD=function(a){return 1===a.type||2===a.type};
fD=function(a){return 3===a.type||6===a.type};
gD=function(a,b){return a.j===b.j?a.range&&b.range?a.range.start+a.Kb+a.u===b.range.start+b.Kb:a.Na===b.Na?a.Kb+a.u===b.Kb:a.Na+1===b.Na&&0===b.Kb&&a.Ge:!1};
Qwa=function(a,b){return gD(a,b)||Hg(a.B,b.C)||a.Na+1===b.Na&&0===b.Kb&&a.Ge?!0:!1};
hD=function(a){return a.Na+(a.Ge?1:0)};
Rwa=function(a){1===a.length||g.Td(a,function(c){return!!c.range});
for(var b=1;b<a.length;b++);b=a[a.length-1];return new $C(a[0].range.start+a[0].Kb,b.range.start+b.Kb+b.u-1)};
mD=function(a){a=iD(a);var b="";g.lf(a,function(c,d){b+=d+"_"+c+"_"});
return b.slice(0,-1)};
iD=function(a){var b={};b.itag=a.j.info.itag;b.type=""+a.type;b.seg=String(a.Na);a.range&&(b.range=""+(a.range.start+a.Kb)+"-"+(a.range.start+a.Kb+a.u-1));b.time=""+a.C.toFixed(1)+"-"+(a.C+a.I).toFixed(1);b.off=String(a.Kb);b.len=String(a.u);a.Ge&&(b.end="1");dD(a)&&(b.eos="1");return b};
Swa=function(a){return new cD(a.type,a.j,a.range,"getEmptyStubBefore"+a.D,a.Na,a.startTime,0,a.Kb,0)};
Twa=function(a){return new cD(a.type,a.j,a.range,"getEmptyStubAfter"+a.D,a.Na,a.startTime+a.duration,0,a.Kb+a.u,0)};
Uwa=function(a,b){return a.j!==b.j?!1:a.range&&b.range?a.range.start+a.Kb>=b.range.start+b.Kb&&a.range.start+a.Kb+a.u<=b.range.start+b.Kb+b.u:a.Na===b.Na&&a.Kb>=b.Kb&&(a.Kb+a.u<=b.Kb+b.u||b.Ge)};
Vwa=function(a,b){return a.j!==b.j?!1:4===a.type&&3===b.type&&a.j.Yf()?(a=a.j.Ow(a),Ol(a,function(c){return Vwa(c,b)})):a.Na===b.Na&&!!b.u&&b.Kb+b.u>a.Kb&&b.Kb+b.u<=a.Kb+a.u};
nD=function(a,b){var c=b.Na;a.D="updateWithSegmentInfo";a.Na=c;if(a.startTime!==b.startTime||a.duration!==b.duration)a.startTime=b.startTime,a.duration=b.duration,Owa(a)};
oD=function(a,b){this.j=a;this.J=this.B=null;this.D=this.Uf=NaN;this.I=this.requestId=null;this.u=a[0].j.u;this.C=b||"";if(this.j[0].range&&0<this.j[0].u){a:{for(b=1;b<a.length;b++)if(!gD(a[b-1],a[b])){b=!1;break a}b=!0}if(b)this.range=Rwa(a),this.S=this.range.length;else{this.range=this.j[this.j.length-1].range;b=0;a=g.r(a);for(var c=a.next();!c.done;c=a.next())b+=c.value.range.length;this.S=b}}};
pD=function(a){var b;return Wwa?a.S:null==(b=a.range)?void 0:b.length};
qD=function(a){return!eD(a.j[a.j.length-1])};
rD=function(a){return 4===a.j[a.j.length-1].type};
g.sD=function(a,b,c){c=null===a.I?XC(a.u,b,c):a.I;if(a.B){b=c?PB(a.B,b.Lj):a.B;var d=new SC(b);d.get("alr")||d.set("alr","yes");a.C&&Fwa(d,a.C)}else/http[s]?:\/\//.test(a.C)?d=new SC(new g.KB(a.C)):(d=Lwa(a.u,c,b),a.C&&Fwa(d,a.C));(b=a.range)?d.set("range",b.toString()):a.j[0].j.Ks()&&1===a.j.length&&a.j[0].Kb&&d.set("range",a.j[0].Kb+"-");a.requestId&&d.set("req_id",a.requestId);isNaN(a.Uf)||d.set("headm",a.Uf.toString());isNaN(a.D)||d.set("mffa",a.D+"ms");a.urlParams&&g.lf(a.urlParams,function(e,
f){d.set(f,e)});
return d};
Xwa=function(a){if(a.range)return pD(a);a=a.j[0];return Math.round(a.I*a.j.info.Tb)};
Ywa=function(a,b){return Math.max(0,a.j[0].C-b)};
Zwa=function(a,b,c){if(0!==b.length){var d=[];b=g.r(b);for(var e=b.next();!e.done;e=b.next())e=e.value,d.push(new cD(3,a.j[0].j,bD(e.XN,c),"extendWithMediaSegments",e.wE-1,e.startTimeMs/1E3,e.durationMs/1E3));return new oD(a.j.concat(d))}};
$wa=function(a,b){a=g.r(a.j);for(var c=a.next();!c.done;c=a.next())if(c=c.value,3===c.type&&b>=c.C&&b<=c.B)return!0;return!1};
tD=function(a,b,c,d,e,f){f=void 0===f?0:f;YC.call(this,a,b,d,void 0);this.I=c;this.Fk=f;this.index=e||new RB};
axa=function(a,b,c,d,e){this.Na=a;this.startSecs=b;this.durationSecs=c;this.j=d||NaN;this.u=e||NaN};
uD=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""};
vD=function(a,b){for(;a;a=a.parentNode){var c=a.getElementsByTagName(b);if(0<c.length)return c[0]}return null};
bxa=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};
cxa=function(a){return a.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?a+"Z":a};
wD=function(){this.j=[];this.u=null;this.I=0;this.B=[];this.D=!1;this.J="";this.C=-1};
dxa=function(a){var b=a.B;a.B=[];return b};
exa=function(){this.C=[];this.j=null;this.u={};this.B={}};
ixa=function(a,b,c){var d=[];b=Array.from(b.getElementsByTagName("SegmentTimeline"));b=g.r(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=fxa(a):"AdaptationSet"===f.nodeName?(f=f.getAttribute("id")||f.getAttribute("mimetype")||"",h=gxa(a,f)):"Representation"===f.nodeName&&(f=f.getAttribute("id")||"",h=hxa(a,f));if(null==h)return;h.update(e,c);g.cc(d,dxa(h))}g.cc(a.C,d);Saa(a.C,function(l){return 1E3*l.startSecs+l.j})};
jxa=function(a){a.j&&(a.j.j=[]);g.lf(a.u,function(b){b.j=[]});
g.lf(a.B,function(b){b.j=[]})};
fxa=function(a){a.j||(a.j=new wD);return a.j};
gxa=function(a,b){a.u[b]||(a.u[b]=new wD);return a.u[b]};
hxa=function(a,b){a.B[b]||(a.B[b]=new wD);return a.B[b]};
xD=function(a){var b=void 0===a?{}:a;a=void 0===b.Fk?0:b.Fk;var c=void 0===b.wm?!1:b.wm,d=void 0===b.Xn?0:b.Xn,e=void 0===b.df?0:b.df,f=void 0===b.Vh?Infinity:b.Vh,h=void 0===b.Gz?0:b.Gz;b=void 0===b.uf?!1:b.uf;RB.call(this);this.zo=this.Um=-1;this.B=null;this.oi=a;this.Xn=d;this.wm=c;this.df=e;this.Vh=f;this.Gz=h;this.uf=b};
zD=function(a,b,c){b=yD(a,b);return 0<=b&&(c||!a.segments[b].pending)};
yD=function(a,b){return kc(a.segments,function(c){return b-c.Na})};
AD=function(a,b,c){c=void 0===c?{}:c;tD.call(this,a,b,"",void 0,void 0,c.Fk||0);this.index=new xD(c)};
BD=function(a,b,c){YC.call(this,a,b);this.I=c;this.index=new RB;this.index.u=!1};
kxa=function(a,b,c){var d=a.index.getSegmentURL(b),e=a.index.getStartTime(b),f=a.index.getDuration(b);c?f=c=0:c=a.info.Tb*f;return new oD([new cD(3,a,void 0,"otfCreateRequestInfoForSegment",b,e,f,0,c)],d)};
lxa=function(a,b){if(!a.index.isLoaded()){var c=[],d=b.I;b=b.J.split(",").filter(function(p){return 0<p.length});
for(var e=0,f=0,h=0,l=/^(\d+)/,m=/r=(\d+)/,n=0;n<d;n++){if(0>=h)if(h=b.shift(),f=(f=l.exec(h))?+f[1]/1E3:0)h=(h=m.exec(h))?+h[1]:0,h+=1;else return;c.push(new QB(n,e,f,NaN,"sq/"+(n+1)));e+=f;h--}a.index.append(c)}};
CD=function(){this.count=0;this.B=1;this.u=!1;this.offsets=new Float64Array(128);this.j=new Float64Array(128)};
DD=function(a){a.offsets.length<a.count+1&&a.resize(2*a.offsets.length)};
ED=function(a,b,c){this.info=a;this.j=b;this.B=c;this.u=null;this.C=-1;this.timestampOffset=0;this.I=!1;this.D=this.info.j.nw()&&!this.info.Kb};
FD=function(a){return gwa(a.j)};
mxa=function(a,b){if(1!==a.info.j.info.containerType||a.info.Kb||!a.info.Ge)return!0;a=FD(a);for(var c=0,d=0;c+4<a.byteLength;){d=a.getUint32(c);if(!d)return!1;c+=d}return c!==a.byteLength?(b&&(b.lastboxlen=d.toString(),4<=a.byteLength&&(b.lastbytes=a.getUint32(a.byteLength-4).toString()),b.boxlen=c.toString(),b.bytelen=a.byteLength.toString()),!1):!0};
nxa=function(a,b){b=Math.min(b,a.info.u);var c=a.j.split(b);return[new ED(new cD(a.info.type,a.info.j,a.info.range,a.info.D,a.info.Na,a.info.startTime,a.info.duration,a.info.Kb,b,!1),c.TC,a.B),new ED(new cD(a.info.type,a.info.j,a.info.range,a.info.D,a.info.Na,a.info.startTime,a.info.duration,a.info.Kb+b,a.info.u-b,a.info.Ge),c.ap)]};
oxa=function(a,b,c){var d;if(!(d=!gD(a.info,b.info)||a.info.Ge)){if(c=void 0===c?!1:c)c=b.j,c=!(c.j.length?ewa(a.j,c.j[0]):1);d=c}if(d)return null;c=new cD(a.info.type,a.info.j,a.info.range,a.info.D,a.info.Na,a.info.startTime,a.info.duration,a.info.Kb,a.info.u,a.info.Ge);d=b.info;c.u+=d.u;c.range&&(c.I+=d.I);c.B=d.B;c.Ge=d.Ge;d=new SB;TB(d,a.j);TB(d,b.j);c=new ED(c,d,a.B);c.u=b.u||a.u;return c};
pxa=function(a){g.GD(a.info.j.info)||a.info.j.info.cf();if(-1!==a.C)return a.C;if(a.u&&nwa(a.u))return a.C=nwa(a.u),a.C;if(g.GD(a.info.j.info)){var b=FD(a);for(var c=a.info.j.j,d=NaN,e=NaN,f=0;yC(b,f);){var h=zC(b,f);1936286840===h.type?e=h.data.getUint32(h.dataOffset+8):1836476516===h.type?e=g.vC(h):1952867444===h.type&&isNaN(d)&&(d=g.BC(h));f=AC(h.type)?f+8:f+h.size}!e&&c&&(e=wC(c));b=d/e}else b=new EC(FD(a)),c=a.D?b:new EC(new DataView(a.info.j.j.buffer)),d=QC(c),c=b.pos,b.pos=0,RC(b)?IC(b,231)?
(d=LC(b)*d/1E9,b.pos=c,b=d):(b.pos=c,b=NaN):(b.pos=c,b=NaN);a.C=b||a.info.C;return a.C};
rxa=function(a,b){0<a.timestampOffset&&(b-=a.timestampOffset);var c=pxa(a)+b;qxa(a,c);a.timestampOffset=b};
qxa=function(a,b){g.GD(a.info.j.info)||a.info.j.info.cf();a.C=b;if(g.GD(a.info.j.info)){var c=FD(a);a=a.info.j.j;for(var d=NaN,e=NaN,f=0;yC(c,f);){var h=zC(c,f);isNaN(d)&&(1936286840===h.type?d=h.data.getUint32(h.dataOffset+8):1836476516===h.type&&(d=g.vC(h)));if(1952867444===h.type){!d&&a&&(d=wC(a));var l=g.BC(h);isNaN(e)&&(e=Math.round(b*d)-l);l+=e;if(h.data.getUint8(h.dataOffset)){var m=h.data,n=h.dataOffset+4;m.setUint32(n,Math.floor(l/4294967296));m.setUint32(n+4,l&4294967295)}else h.data.setUint32(h.dataOffset+
4,l)}f=AC(h.type)?f+8:f+h.size}return!0}c=new EC(FD(a));a=a.D?c:new EC(new DataView(a.info.j.j.buffer));d=QC(a);a=c.pos;c.pos=0;if(RC(c)&&IC(c,231))if(e=JC(c,!0),b=Math.floor(1E9*b/d),Math.ceil(Math.log(b)/Math.log(2)/8)>e)b=!1;else{for(d=e-1;0<=d;d--)c.j.setUint8(c.pos+d,b&255),b>>>=8;c.pos=a;b=!0}else b=!1;return b};
HD=function(a,b){b=void 0===b?!1:b;var c=sxa(a);a=b?0:a.info.I;return c||a};
sxa=function(a){g.GD(a.info.j.info)||a.info.j.info.cf();if(a.u&&6===a.info.type)return a.u.Fk;if(g.GD(a.info.j.info)){var b=FD(a);var c=0;b=g.DC(b,1936286840);b=g.r(b);for(var d=b.next();!d.done;d=b.next())d=uwa(d.value),c+=d.gL[0]/d.lL;c=c||NaN;if(!(0<=c))a:{c=FD(a);b=a.info.j.j;for(var e=d=0,f=0;yC(c,d);){var h=zC(c,d);if(1836476516===h.type)e=g.vC(h);else if(1836019558===h.type){!e&&b&&(e=wC(b));if(!e){c=NaN;break a}var l=xC(h.data,h.dataOffset,1953653094),m=e,n=xC(l.data,l.dataOffset,1952868452);
l=xC(l.data,l.dataOffset,1953658222);var p=lC(n);lC(n);p&2&&lC(n);n=p&8?lC(n):0;var q=lC(l),u=q&1;p=q&4;var w=q&256,y=q&512,A=q&1024;q&=2048;var B=mC(l);u&&lC(l);p&&lC(l);for(var D=u=0;D<B;D++){var G=w?lC(l):n;y&&lC(l);p&&0===D||!A||lC(l);q&&lC(l);u+=G}f+=u/m}d=AC(h.type)?d+8:d+h.size}c=f||NaN}c||g.pz(new g.Pv("Missing duration while parsing bmff",mD(a.info)))}else c=new EC(FD(a)),a=a.D?c:new EC(new DataView(a.info.j.j.buffer)),c=Dwa(c,QC(a));return c};
txa=function(a){var b=FD(a);var c=(c=g.uC(b,0,1936286840))?c.data.getUint32(c.dataOffset+8):NaN;isNaN(c)&&(a=a.info.j.j,c=(b=g.uC(b,0,1836476516))?g.vC(b):a?wC(a):NaN);return c};
uxa=function(a){if(!a.u){g.GD(a.info.j.info)||a.info.j.info.cf();if(g.GD(a.info.j.info))var b=g.wwa(FD(a));else{b=new EC(FD(a));var c=b.pos;b.pos=0;var d=null,e=null;if(GC(b,[408125543,307544935]))for(var f=b.pos+JC(b,!0);b.pos<f;)if(29555!==JC(b,!1))MC(b);else for(var h=b.pos+JC(b,!0);b.pos<h;)if(26568!==JC(b,!1))MC(b);else for(var l=b.pos+JC(b,!0);b.pos<l;){var m=JC(b,!1);if(17543===m){if(m=Bwa(b),m=tC(m))if(e)for(var n=g.r(Object.keys(m)),p=n.next();!p.done;p=n.next())p=p.value,e[p]=m[p];else e=
m}else 17827===m?(m=Bwa(b),d||(d=m)):MC(b)}b.pos=c;b=e?new rC(e,d):null}a.u=b}};
vxa=function(a){if(!a.I){if(g.GD(a.info.j.info)){var b=FD(a);var c=xC(b,0,1836019574);if(c){c=c.offset+c.size;var d=new Uint8Array(c);d.set(new Uint8Array(b.buffer,b.byteOffset,c));b=d}else b=null}else b=Cwa(new EC(FD(a)));b&&(a.info.j.j=b,a.I=!0)}};
ID=function(a,b,c,d,e){YC.call(this,a,b,c,d);this.I=null;this.index=e?new e.NativeSegmentIndex:new CD};
JD=function(a,b,c,d){for(var e=[],f=b;f<=a.index.getLastSegmentNumber();f++){var h=bD(a.index.getOffset(f),a.index.getByteLength(f)),l=a.index.getStartTime(f),m=a.index.getDuration(f),n=Math.max(0,c-h.start),p=Math.min(h.end+1,c+d)-(h.start+n);e.push(new cD(3,a,h,"getRequestInfoForRange",f,l,m,n,p));if(h.start+n+p>=c+d)break}e.length||g.oz(new g.Pv("b189619593",""+b,""+c,""+d));return new oD(e)};
KD=function(a,b,c,d){this.sampleRate=void 0===a?0:a;this.numChannels=void 0===b?0:b;this.spatialAudioType=void 0===c?"SPATIAL_AUDIO_TYPE_NONE":c;this.j=void 0===d?!1:d};
wxa=function(a,b,c,d){this.displayName=a;this.vssId=b;this.languageCode=c;this.kind=void 0===d?"":d};
MD=function(a,b,c,d,e,f,h,l,m){this.width=a;this.height=b;this.quality=f||LD(a,b);this.j=g.tB[this.quality];this.fps=c||0;this.stereoLayout=!e||null!=d&&"UNKNOWN"!==d&&"RECTANGULAR"!==d?0:e;this.projectionType=d?"EQUIRECTANGULAR"===d&&2===e?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":d:"UNKNOWN";(a=h)||(a=g.tB[this.quality],0===a?a="Auto":(b=this.fps,c=this.projectionType,a=a.toString()+("EQUIRECTANGULAR"===c||"EQUIRECTANGULAR_THREED_TOP_BOTTOM"===c||"MESH"===c?"s":"p")+(55<b?"60":49<b?"50":39<b?"48":"")));
this.qualityLabel=a;this.u=l||"";this.primaries=m||""};
LD=function(a,b){var c=Math.max(a,b);a=Math.min(a,b);b=ND[0];for(var d=0;d<ND.length;d++){var e=ND[d],f=g.tB[e];if(c>=1.3*Math.floor(16*f/9)||a>=1.3*f)return b;b=e}return"tiny"};
QD=function(a,b,c){c=void 0===c?{}:c;this.id=a;this.mimeType=b;0<c.Tb||(c.Tb=16E3);Object.assign(this,c);a=g.r(this.id.split(";"));this.itag=a.next().value;this.B=a.next().value;this.containerType=OD(b);this.j=PD[this.itag]||""};
DB=function(a){return"9"===a.j||"("===a.j||"9h"===a.j||"(h"===a.j};
RD=function(a){return"9h"===a.j||"(h"===a.j};
SD=function(a){return"1"===a.j||"1h"===a.j};
Nva=function(a){return"mac3"===a.j||"meac3"===a.j||"m"===a.j};
Mva=function(a){return"MAC3"===a.j||"MEAC3"===a.j||"M"===a.j};
g.GD=function(a){return 1===a.containerType};
TD=function(a){return"application/x-mpegURL"===a.mimeType};
xxa=function(a){var b=navigator.mediaCapabilities;if(null==b||!b.decodingInfo||"f"===a.j)return Promise.resolve();var c={type:a.audio&&a.video?"file":"media-source"};a.video&&(c.video={contentType:a.mimeType,width:a.video.width||640,height:a.video.height||360,bitrate:8*a.Tb||1E6,framerate:a.video.fps||30});a.audio&&(c.audio={contentType:a.mimeType,channels:""+(a.audio.numChannels||2),bitrate:8*a.Tb||128E3,samplerate:a.audio.sampleRate||44100});return b.decodingInfo(c).then(function(d){a.u=d})};
UD=function(a){return a.includes("vtt")||a.includes("text/mp4")};
OD=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};
VD=function(a,b,c,d,e,f){var h=new KD;b in g.tB||(b="small");"light"===b&&(b="tiny");d&&e?(e=Number(e),d=Number(d)):(e=g.tB[b],d=Math.round(16*e/9));f=new MD(d,e,0,null,void 0,b,f);a=unescape(a.replace(/&quot;/g,'"'));return new QD(c,a,{audio:h,video:f})};
yxa=function(a){var b="id="+a.id;a.video&&(b+=", res="+a.video.qualityLabel);var c,d;return b+", byterate=("+(null==(c=a.tv)?void 0:c.toFixed(0))+", "+(null==(d=a.Tb)?void 0:d.toFixed(0))+")"};
g.WD=function(a,b,c){this.name=a;this.id=b;this.isDefault=c};
g.XD=function(){Yy.apply(this,arguments)};
YD=function(){var a=g.Ga("yt.player.utils.videoElement_");a||(a=g.hh("VIDEO"),g.Fa("yt.player.utils.videoElement_",a));return a};
ZD=function(a){var b=YD();return!!(b&&b.canPlayType&&b.canPlayType(a))};
aE=function(a){if(/opus/.test(a)&&g.$D&&!Ao("38")&&!g.Ou())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!yma())return!1;'audio/mp4; codecs="mp4a.40.2"'===a&&(a='video/mp4; codecs="avc1.4d401f"');return!!ZD(a)};
zxa=function(a){try{var b=aE('video/mp4; codecs="avc1.42001E"')||aE('video/webm; codecs="vp9"');return(aE('audio/mp4; codecs="mp4a.40.2"')||aE('audio/webm; codecs="opus"'))&&(b||!a)||ZD('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(c){return"html5.missingapi"}};
bE=function(){var a=YD();return!(!a.webkitSupportsPresentationMode||"function"!==typeof a.webkitSetPresentationMode)};
cE=function(){var a=YD();try{var b=a.muted;a.muted=!b;return a.muted!==b}catch(c){}return!1};
dE=function(a,b){return{start:function(c){return a[c]},
end:function(c){return b[c]},
length:a.length}};
eE=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)};
fE=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};
gE=function(a,b){return 0<=fE(a,b)};
Axa=function(a,b){if(!a)return NaN;b=fE(a,b);return 0<=b?a.start(b):NaN};
hE=function(a,b){if(!a)return NaN;b=fE(a,b);return 0<=b?a.end(b):NaN};
iE=function(a){return a&&a.length?a.end(a.length-1):NaN};
Bxa=function(a,b){a=hE(a,b);return 0<=a?a-b:0};
jE=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 dE(d,e)};
kE=function(a,b,c,d){g.az.call(this);var e=this;this.Zd=a;this.start=b;this.end=c;this.isActive=d;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.yP={error:function(){!e.isDisposed()&&e.isActive&&e.ma("error",e)},
updateend:function(){!e.isDisposed()&&e.isActive&&e.ma("updateend",e)}};
g.bz(this.Zd,this.yP);this.XA=this.isActive};
lE=function(a,b,c,d,e){g.az.call(this);var f=this;this.vc=a;this.Nf=b;this.id=c;this.containerType=d;this.isVideo=e;this.bQ=this.kD=this.Pe=null;this.appendWindowStart=this.timestampOffset=0;this.YN=dE([],[]);this.NB=!1;this.sA=Cxa?[]:void 0;this.Xc=function(l){return f.ma(l.type,f)};
var h;if(null==(h=this.vc)?0:h.addEventListener)this.vc.addEventListener("updateend",this.Xc),this.vc.addEventListener("error",this.Xc)};
mE=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1};
nE=function(a,b){this.j=a;this.u=void 0===b?!1:b;this.B=!1};
oE=function(a,b,c){c=void 0===c?!1:c;g.J.call(this);this.mediaSource=a;this.Nf=b;this.isView=c;this.C=0;this.callback=null;this.events=new g.XD(this);g.M(this,this.events);this.B=new nE(this.mediaSource?window.URL.createObjectURL(this.mediaSource):this.Nf.webkitMediaSourceURL,!0);a=this.mediaSource||this.Nf;Zy(this.events,a,["sourceopen","webkitsourceopen"],this.O2);Zy(this.events,a,["sourceclose","webkitsourceclose"],this.N2)};
Dxa=function(){return!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)};
Exa=function(a,b){pE(a)?g.Bh(function(){b(a)}):a.callback=b};
pE=function(a){try{return"open"===qE(a)}catch(b){return!1}};
qE=function(a){if(a.mediaSource)return a.mediaSource.readyState;switch(a.Nf.webkitSourceState){case a.Nf.SOURCE_OPEN:return"open";case a.Nf.SOURCE_ENDED:return"ended";default:return"closed"}};
rE=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)};
Fxa=function(a,b,c,d){if(!a.j||!a.u)return null;var e=a.j.isView()?a.j.Zd:a.j,f=a.u.isView()?a.u.Zd:a.u,h=new oE(a.mediaSource,a.Nf,!0);h.B=a.B;e=new kE(e,b,c,d);b=new kE(f,b,c,d);h.j=e;h.u=b;g.M(h,e);g.M(h,b);pE(a)||a.j.yE(a.j.Cd());return h};
Gxa=function(a,b){return sE(function(c,d){return g.Du(c,d,4,1E3)},a,b)};
g.Hxa=function(a){var b;a.responseType&&"text"!==a.responseType?"arraybuffer"===a.responseType&&(b=bC(new Uint8Array(a.response))):b=a.responseText;return!b||2048<b.length?"":0===b.indexOf("https://")?b:""};
sE=function(a,b,c){b.match(Ixa);return a(b,c).then(function(d){var e=g.Hxa(d.xhr);return e?sE(a,e,c):d.xhr})};
tE=function(a,b,c){a=void 0===a?"":a;b=void 0===b?null:b;c=void 0===c?!1:c;g.az.call(this);this.sourceUrl=a;this.isLivePlayback=c;this.ya=this.duration=0;this.isPremiere=this.uf=this.C=this.isLiveHeadPlayable=this.isLive=this.u=!1;this.Vh=this.df=0;this.isOtf=this.vf=!1;this.ea=(0,g.T)();this.I=Infinity;this.j={};this.state=this.Jg=0;this.timeline=null;this.isManifestless=!1;this.J=[];this.B=null;this.S=0;this.Ba="";this.Z=NaN;this.Sc=this.Rb=this.zc=this.timestampOffset=this.D=0;this.Aa=!1;this.La=
!!b&&b.jb("html5_live_nonzero_first_segment_start_time");this.Qa=!!b&&b.jb("html5_live_self_init_segments");this.withCredentials=!b||!b.jb("html5_manifest_without_credentials");this.qa=!!b&&b.jb("disable_html5_manifest_namespace_redux");this.Ia=b&&b.jb("disable_html5_duration_caching")?Infinity:10;this.Wa=!!b&&b.jb("html5_live_head_playable");Jxa=!!b&&b.jb("html5_modern_vp9_mime_type")};
Sva=function(a){return g.of(a.j,function(b){return!!b.info.video&&b.info.video.isHdr()})};
HB=function(a){return g.of(a.j,function(b){return!!b.info.yd})};
Kxa=function(a){return g.of(a.j,function(b){return UD(b.info.mimeType)})};
Lxa=function(a){return g.of(a.j,function(b){return b.info.video?"EQUIRECTANGULAR"===b.info.video.projectionType:!1})};
Mxa=function(a){return g.of(a.j,function(b){return b.info.video?"EQUIRECTANGULAR_THREED_TOP_BOTTOM"===b.info.video.projectionType:!1})};
Nxa=function(a){return g.of(a.j,function(b){return b.info.video?"MESH"===b.info.video.projectionType:!1})};
Oxa=function(a){return g.of(a.j,function(b){return b.info.video?1===b.info.video.stereoLayout:!1})};
Pxa=function(a){return Bca(a.j,function(b){return b.info.video?b.eK():!0})};
zB=function(a){return g.of(a.j,function(b){return NB(b.u.j)})};
Qxa=function(a){return g.of(a.j,function(b){return!(b.index instanceof CD)})};
uE=function(a,b){a.j[b.info.id]=b};
vE=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);if(/(vp9|vp09|vp8|avc1|av01)/.test(d)){var h=(a.size||"640x360").split("x");h=new MD(+h[0],+h[1],+a.fps,a.projection_type,+a.stereo_layout,void 0,a.quality_label,a.eotf,a.primaries);d=Rxa(d,h)}var l;if(/(opus|mp4a|dtse|ac-3|ec-3)/.test(d)){var m=new KD(+a.audio_sample_rate||void 0,+a.audio_channels||0,a.spatial_audio_type,!!a.drc);a.name&&(l=new g.WD(a.name,a.audio_track_id,"1"===a.isDefault))}var n;a.caption_display_name&&
a.caption_vss_id&&a.caption_language_code&&(n=new wxa(a.caption_display_name,a.caption_vss_id,a.caption_language_code,a.caption_kind));f=Number(a.bitrate)/8;var p=Number(a.clen),q=Number(a.lmt);c=c&&p?p/c:0;if(b&&a.drm_families){var u={};for(var w=g.r(a.drm_families.split(",")),y=w.next();!y.done;y=w.next())y=y.value,u[y]=b[y]}return new QD(e,d,{audio:m,video:h,Nc:l,yd:u,Tb:f,tv:c,contentLength:p,lastModified:q,captionTrack:n,streamType:a.stream_type})};
Sxa=function(a){return Ol(a,function(b){return"FORMAT_STREAM_TYPE_OTF"===b.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"};
Txa=function(a,b){return a.timeline?fc(a.timeline.C,b):a.J.length?fc(a.J,b):[]};
wE=function(a,b,c){b=void 0===b?"":b;c=void 0===c?"":c;a=new g.KB(a,!0);a.set("alr","yes");c&&(c=Xva(decodeURIComponent(c)),a.set(b,encodeURIComponent(c)));return a};
Xxa=function(a,b){var c=uD(b,"id");c=c.replace(":",";");var d=uD(b,"mimeType"),e=uD(b,"codecs");d=e?d+'; codecs="'+e+'"':d;e=Number(uD(b,"bandwidth"))/8;var f=Number(vD(b,"BaseURL").getAttribute(xE(a,"contentLength"))),h=a.duration&&f?f/a.duration:0;if(/(vp9|vp09|vp8|avc1|av01)/.test(d)){var l=Number(uD(b,"width"));var m=Number(uD(b,"height")),n=Number(uD(b,"frameRate")),p=Uxa(uD(b,xE(a,"projectionType")));a:switch(uD(b,xE(a,"stereoLayout"))){case "layout_left_right":var q=1;break a;case "layout_top_bottom":q=
2;break a;default:q=0}l=new MD(l,m,n,p,q)}if(/(opus|mp4a|dtse|ac-3|ec-3)/.test(d)){var u=Number(uD(b,"audioSamplingRate"));var w=Number(uD(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"));m=Vxa(uD(b,xE(a,"spatialAudioType")));u=new KD(u,w,m);a:{w=uD(b,"lang")||"und";if(m=vD(b,"Role"))if(p=uD(m,"value")||"",g.sf(Wxa,p)){m=w+"."+Wxa[p];n="main"===p;a=uD(b,xE(a,"langName"))||w+" - "+p;w=new g.WD(a,m,n);break a}w=void 0}}if(b=vD(b,"ContentProtection"))if("http://youtube.com/drm/2012/10/10"===
b.getAttribute("schemeIdUri")){var y={};for(b=b.firstChild;null!=b;b=b.nextSibling)b instanceof Element&&/SystemURL/.test(b.nodeName)&&(a=b.getAttribute("type"),m=b.textContent,a&&m&&(y[a]=m.trim()))}else y=void 0;return new QD(c,d,{audio:u,video:l,Nc:w,yd:y,Tb:e,tv:h,contentLength:f})};
Uxa=function(a){switch(a){case "equirectangular":return"EQUIRECTANGULAR";case "equirectangular_threed_top_bottom":return"EQUIRECTANGULAR_THREED_TOP_BOTTOM";case "mesh":return"MESH";case "rectangular":return"RECTANGULAR";default:return"UNKNOWN"}};
Vxa=function(a){switch(a){case "spatial_audio_type_ambisonics_5_1":return"SPATIAL_AUDIO_TYPE_AMBISONICS_5_1";case "spatial_audio_type_ambisonics_quad":return"SPATIAL_AUDIO_TYPE_AMBISONICS_QUAD";case "spatial_audio_type_foa_with_non_diegetic":return"SPATIAL_AUDIO_TYPE_FOA_WITH_NON_DIEGETIC";default:return"SPATIAL_AUDIO_TYPE_NONE"}};
Zxa=function(a,b){b=void 0===b?"":b;a.state=1;a.ea=(0,g.T)();return Gxa(b||a.sourceUrl,{format:"RAW",method:"GET",withCredentials:a.withCredentials}).then(function(c){if(!a.isDisposed()){a.Jg=c.status;c=c.responseText;var d=new DOMParser;c=zfa(d,zg(c)).getElementsByTagName("MPD")[0];a.I=1E3*bxa(uD(c,"minimumUpdatePeriod"))||Infinity;if(!a.qa){b:{if(c.attributes){d=g.r(c.attributes);for(var e=d.next();!e.done;e=d.next())if(e=e.value,"http://youtube.com/yt/2012/10/10"===e.value){d=e.name.split(":")[1];
break b}}d=""}a.Ba=d}a.isLive=Infinity>a.I&&a.isLivePlayback;a.ya=Number(uD(c,xE(a,"earliestMediaSequence")))||0;if(d=Date.parse(cxa(uD(c,xE(a,"mpdResponseTime")))))a.S=(Date.now()-d)/1E3;a.isLive&&0>=c.getElementsByTagName("SegmentTimeline").length||g.Td(c.getElementsByTagName("Period"),a.z3,a);a.state=2;a.ma("loaded");Yxa(a)}return a}).bj(function(c){if(c instanceof Bu){var d=c.xhr;
a.Jg=d.status}a.state=3;a.ma("loaderror");return Gh(d)})};
$xa=function(a,b,c){return Zxa(new tE(a,b,c),a)};
yE=function(a){return a.isLive&&(0,g.T)()-a.ea>=a.I};
Yxa=function(a){var b=a.I;isFinite(b)&&(yE(a)?a.refresh():(b=Math.max(0,a.ea+b-(0,g.T)()),a.B||(a.B=new g.Xn(a.refresh,b,a),g.M(a,a.B)),a.B.start(b)))};
aya=function(a){a=a.j;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.getLastSegmentNumber()+1}return 0};
zE=function(a){return a.zc?a.zc-(a.D||a.timestampOffset):0};
AE=function(a){return a.Rb?a.Rb-(a.D||a.timestampOffset):0};
BE=function(a){if(!isNaN(a.Z))return a.Z;var b=a.j,c;for(c in b){var d=b[c].index;if(d.isLoaded()){b=0;for(c=d.getFirstSegmentNumber();c<=d.getLastSegmentNumber();c++)b+=d.getDuration(c);b/=d.getNumberOfSegments();b=.5*Math.round(b/.5);d.getNumberOfSegments()>a.Ia&&(a.Z=b);return b}if(a.isLive&&(d=b[c],d.Fk))return d.Fk}return NaN};
bya=function(a,b){a=Dca(a.j,function(d){return d.index.isLoaded()});
if(!a)return NaN;a=a.index;var c=a.getSegmentNumberForTime(b);return a.getStartTime(c)===b?b:c<a.getLastSegmentNumber()?a.getStartTime(c+1):NaN};
cya=function(a,b){g.lf(a.j,function(c){g.lf(b,function(d,e){var f=c.u;f.j.set(e,d);f.C.set(e,d);f.B&&f.B.set(e,d)})})};
dya=function(a,b){if(!a.j["0"]){var c=new QD("0","fakesb",{video:new MD(0,0,0,void 0,void 0,"auto")});a.j["0"]=b?new tD(new g.KB("http://www.youtube.com/videoplayback"),c,"fake"):new ID(new g.KB("http://www.youtube.com/videoplayback"),c,new $C(0,0),new $C(0,0))}};
CE=function(a,b,c){for(var d in a.j){var e=UD(a.j[d].info.mimeType)||a.j[d].info.isVideo();if(c===e){e=a.j[d].index;var f=yD(e,b);0<=f&&e.segments.splice(f,1)}}};
eya=function(a){for(var b in a.j)dwa(a.j[b].index,Infinity)};
xE=function(a,b){return a.qa?"yt:"+b:a.Ba+":"+b};
fya=function(a){a.Rb=0;a.zc=0;a.Sc=0};
DE=function(a){return a.Wa?a.isLiveHeadPlayable:a.isLive};
Rxa=function(a,b){null===EE&&(EE=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(Jxa&&window.MediaSource&&void 0!==MediaSource.isTypeSupported)return!EE&&0<a.indexOf("vp09.00")?a='video/webm; codecs="vp9"':!EE&&0<a.indexOf("vp09.02")&&(a='video/webm; codecs="vp9.2"'),a;if(!EE&&!gya||'video/webm; codecs="vp9"'!==a&&'video/webm; codecs="vp9.2"'!==
a)return a;var c="00",d="08",e="01",f="01",h="01";'video/webm; codecs="vp9.2"'===a&&(c="02",d="10","bt2020"===b.primaries&&(h=e="09"),"smpte2084"===b.u&&(f="16"),"arib-std-b67"===b.u&&(f="18"));return'video/webm; codecs="'+["vp09",c,"51",d,"01",e,f,h,"00"].join(".")+'"'};
hya=function(a){g.Nz("yt-player-bandwidth",a,2592E3)};
FE=function(a){a=void 0===a?2592E3:a;if(0<a&&!(Dua()>(0,g.T)()-1E3*a))return 0;a=g.Oz("yt-player-quality");if("string"===typeof a){if(a=g.tB[a],0<a)return a}else if(a instanceof Object)return a.quality;return 0};
iya=function(){var a=g.Oz("yt-player-quality");if(a instanceof Object&&a.quality&&a.previousQuality){if(a.quality>a.previousQuality)return 1;if(a.quality<a.previousQuality)return-1}return 0};
jya=function(){var a={values:{},qo:{}};try{var b=JSON.parse(JSON.parse(window.localStorage["yt-player-memory"]).data);a.values=b.values;a.halfLives=b.halfLives}catch(c){}return a};
kya=function(a,b){var c="";49<b?c="p60":32<b&&(c="p48");return a+c};
HE=function(a,b){return+GE()[kya(a,b)]||8192};
GE=function(){return g.Oz("yt-player-performance-cap")||{}};
lya=function(a){g.Nz("yt-player-watch-later-pending",a)};
mya=function(){return!!g.Oz("yt-player-headers-readable")};
nya=function(a){g.Nz("yt-player-playback-on-reload",a)};
oya=function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(a){return 0}};
g.pya=function(){var a=g.Oz("yt-player-caption-language-preferences");return a?a:[]};
qya=function(a){this.Sa=a;this.zc=this.j=this.La=this.I=this.D=this.Aa=this.Ia=this.kb=this.eb=!1;this.S=this.J=0;this.Gb=!1;this.ob=!0;this.yb=!1;this.ea=0;this.ya=!1;this.Pc=Infinity;this.AG=!1;this.Ac=!0;this.Ya=this.Qa=this.Wa=!1;this.u={};this.Rb=this.B=this.Ba=!1;this.Lc=this.Sa.experiments.jb("html5_enable_vp9_fairplay");this.lc=this.Sa.K("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.Z=this.Sa.K("html5_reduce_istypesupported_calls");this.zg=0;this.Lb=!1};
Tva=function(a){if(a.kb)return["f"];var b="9h 9 h 8 (h ( H *".split(" ");a.ya&&(b.unshift("1"),b.unshift("1h"));a.j&&b.unshift("h");a.qa&&(b=(rya[a.qa]||[a.qa]).concat(b));return b};
Rva=function(a){var b=["o","a","A"];1===a.zg&&(a.Aa&&(b=["m","M"].concat(b)),a.D&&(b=["mac3","MAC3"].concat(b)),a.I&&(b=["meac3","MEAC3"].concat(b)));a.eb&&(b=["so","sa"].concat(b));!a.zc||a.La||a.C||b.unshift("a");a.Ia&&b.unshift("ah");a.C&&(b=(rya[a.C]||[a.C]).concat(b));return b};
IE=function(a,b,c){b=void 0===b?{}:b;if(a.K("html5_disable_av1"))return b.disabled=1,0;if(EB(a.j,FB.AV1_CODECS)&&EB(a.j,FB.HEIGHT)&&EB(a.j,FB.BITRATE))return b.isCapabilityUsable=1,8192;try{var d=oya();if(d)return b.localPref=d}catch(h){}a=1080;2>=navigator.hardwareConcurrency&&(a=480);b.coreCount=navigator.hardwareConcurrency;xma()&&(b.isArm=1,a=240);if(c){var e,f;if(d=null==(e=c.videoInfos.find(function(h){return SD(h)}))?void 0:null==(f=e.u)?void 0:f.powerEfficient)a=8192,b.isEfficient=1;
c=c.videoInfos[0].video;e=Math.min(HE("1",c.fps),HE("1",30));b.perfCap=e;a=Math.min(a,e);c.isHdr()&&!d&&(b.hdr=1,a*=.75)}else c=HE("1",30),b.perfCap30=c,a=Math.min(a,c),c=HE("1",60),b.perfCap60=c,a=Math.min(a,c);return b.av1Threshold=a};
KE=function(a,b,c,d){this.flavor=a;this.keySystem=b;this.u=c;this.experiments=d;this.j={};this.ya=this.keySystemAccess=null;this.jr=this.lr=-1;this.Mj=null;this.B="";this.D=!!d&&d.jb("edge_nonprefixed_eme");this.B=d?g.JE(d,"html5_hdcp_probing_stream_url"):"";this.C=!!d&&d.jb("html5_enable_vp9_fairplay")};
ME=function(a){return a.D?!1:!a.keySystemAccess&&!!LE()&&"com.microsoft.playready"===a.keySystem};
NE=function(a){return"com.microsoft.playready"===a.keySystem};
OE=function(a){return!a.keySystemAccess&&!!LE()&&"com.apple.fps.1_0"===a.keySystem};
PE=function(a){return"com.youtube.fairplay"===a.keySystem};
g.QE=function(a){return"fairplay"===a.flavor};
LE=function(){var a=window,b=a.MSMediaKeys;Ru()&&!b&&(b=a.WebKitMediaKeys);return b&&b.isTypeSupported?b:null};
SE=function(a){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.$D&&!g.Ou())return Ao("45");if(g.vw||g.Ac)return a.jb("edge_nonprefixed_eme");if(g.oB)return Ao("47");if(g.Xv){if(a.jb("html5_enable_safari_fairplay"))return!1;if(a=g.RE(a,"html5_safari_desktop_eme_min_version"))return Ao(a)}return!0};
sya=function(a,b,c,d){var e=Pu(),f=(c=e||c&&Ru())?["com.youtube.fairplay"]:["com.widevine.alpha"];b&&(f.unshift("com.youtube.widevine.l3"),e&&d&&f.unshift("com.youtube.widevine.forcehdcp"));return c?f:a?[].concat(g.t(f),g.t(TE.playready)):[].concat(g.t(TE.playready),g.t(f))};
UE=function(a,b,c,d,e){d=void 0===d?!1:d;g.J.call(this);this.experiments=b;this.useCobaltWidevine=d;this.va=e;this.j=[];this.B={};this.u={};this.callback=null;this.D=!1;this.C=[];this.initialize(a,!c)};
uya=function(a,b){a.callback=b;a.C=[];SE(a.experiments)?VE(a):tya(a)};
VE=function(a){if(!a.isDisposed())if(0===a.j.length)a.callback(a.C);else{var b=a.j[0],c=a.B[b],d=vya(a,c);navigator.requestMediaKeySystemAccess(b,d).then(fu(function(e){if(!a.isDisposed()){c.keySystemAccess=e;if(NE(c)){e=YD();for(var f=g.r(Object.keys(a.u[c.flavor])),h=f.next();!h.done;h=f.next())h=h.value,c.j[h]=!!e.canPlayType(h)}else{e=c.keySystemAccess.getConfiguration();if(e.audioCapabilities)for(f=g.r(e.audioCapabilities),h=f.next();!h.done;h=f.next())wya(a,c,h.value);if(e.videoCapabilities)for(e=
g.r(e.videoCapabilities),f=e.next();!f.done;f=e.next())wya(a,c,f.value)}a.C.push(c);a.useCobaltWidevine?(a.j.shift(),VE(a)):a.callback(a.C)}}),fu(function(){a.D=!a.D&&"widevine"===a.B[a.j[0]].flavor;
a.D||a.j.shift();VE(a)}))}};
wya=function(a,b,c){a.K("log_robustness_for_drm")?b.j[c.contentType]=c.robustness||!0:b.j[c.contentType]=!0};
vya=function(a,b){var c={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};NE(b)&&(c.initDataTypes=["keyids","cenc"]);for(var d=g.r(Object.keys(a.u[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.D?h.push({contentType:e}):f?h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}):(g.$D&&Mu("windows nt")&&!a.K("html5_drm_enable_moho")||h.push({contentType:e,robustness:"HW_SECURE_ALL"}),
f=e,a.K("html5_enable_cobalt_experimental_vp9_decoder")&&e.includes("vp09")&&(f=e+"; experimental=allowed"),h.push({contentType:f,robustness:"SW_SECURE_DECODE"}),a.K("html5_query_sw_secure_crypto_for_android")&&(Xu()||Nu())&&(a.va("swcrypto",{}),h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"})))}return[c]};
tya=function(a){if(LE()&&g.Xv)a.C.push(new KE("fairplay","com.apple.fps.1_0","",a.experiments));else{var b=xya(),c=g.Pb(a.j,function(d){var e=a.B[d],f=!1,h=!1,l;for(l in a.u[e.flavor])b(l,d)&&(e.j[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.j=[]}a.callback(a.C)};
xya=function(){var a=LE();if(a){var b=a.isTypeSupported;return function(d,e){return b(e,d)}}var c=YD();
return c&&(c.addKey||c.webkitAddKey)?function(d,e){return!!c.canPlayType(d,e)}:function(){return!1}};
yya=function(){this.j=0};
zya=function(a,b){this.experimentIds=a?a.split(","):[];this.flags=hu(b||"","&");a={};b=g.r(this.experimentIds);for(var c=b.next();!c.done;c=b.next())a[c.value]=!0;this.experiments=a};
g.RE=function(a,b){return Number(a.flags[b])||0};
g.JE=function(a,b){return(a=a.flags[b])?a.toString():""};
Bya=function(a){return Aya.then(a)};
WE=function(a,b,c){this.experiments=a;this.qa=b;this.Aa=void 0===c?!1:c;this.J=!!g.Ga("cast.receiver.platform.canDisplayType");this.I={};this.Z=!1;this.u=new Map;this.S=!0;this.D=!this.experiments.jb("html5_disable_protected_hdr");this.j=this.B=!1;this.ea=this.experiments.jb("html5_disable_vp9_encrypted");a=g.Ga("cast.receiver.platform.getValue");this.C=!this.J&&a&&a("max-video-resolution-vpx")||null};
Ova=function(a,b,c){c=void 0===c?1:c;var d=b.itag;if("0"===d)return!0;var e=b.mimeType;if(b.cf()&&Pu()&&a.experiments.jb("html5_appletv_disable_vp9"))return"dwebm";if(SD(b)&&a.Z)return"dav1";if(b.video&&(b.video.isHdr()||"bt2020"===b.video.primaries)&&!(EB(a,FB.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high), (video-dynamic-range: high)").matches||24<window.screen.pixelDepth&&window.matchMedia("(color-gamut: p3)").matches)))return"dhdr";if("338"===d&&!(g.$D?Ao(53):g.oB&&Ao(64)))return"dopus";
var f=c;f=void 0===f?1:f;c={};b.video&&(b.video.width&&(c[FB.WIDTH.name]=b.video.width),b.video.height&&(c[FB.HEIGHT.name]=b.video.height),b.video.fps&&(c[FB.FRAMERATE.name]=b.video.fps*f),b.video.u&&(c[FB.EOTF.name]=b.video.u),b.Tb&&(c[FB.BITRATE.name]=8*b.Tb*f),"("===b.j&&(c[FB.CRYPTOBLOCKFORMAT.name]="subsample"),"EQUIRECTANGULAR"===b.video.projectionType||"EQUIRECTANGULAR_THREED_TOP_BOTTOM"===b.video.projectionType||"MESH"===b.video.projectionType)&&(c[FB.DECODETOTEXTURE.name]="true");b.audio&&
b.audio.numChannels&&(c[FB.CHANNELS.name]=b.audio.numChannels);a.B&&DB(b)&&(c[FB.EXPERIMENTAL.name]="allowed");f=g.r(Object.keys(FB));for(var h=f.next();!h.done;h=f.next())if(h=FB[h.value],c[h.name]&&!(h===FB.EOTF&&0<b.mimeType.indexOf("vp09.02")||a.experiments.jb("html5_ignore_h264_framerate_cap")&&h===FB.FRAMERATE&&("H"===b.j||"h"===b.j)||h===FB.DECODETOTEXTURE&&!a.experiments.jb("html5_decode_to_texture_cap")))if(EB(a,h))if(a.C){if(a.C[h.name]<c[h.name])return h.name}else e=e+"; "+h.name+"="+c[h.name];
else if(RD(b)&&h===FB.EOTF)return"dvp92";!a.experiments.jb("disable_html5_cast_hdcp_filter2")&&a.J&&b.video&&1080<b.video.j&&b.yd&&(e+="; hdcp=2.2");return"227"!==d||a.experiments.jb("html5_enable_1080p_hq_cenc")?"585"!==d&&"588"!==d&&"583"!==d&&"586"!==d&&"584"!==d&&"587"!==d&&"591"!==d&&"592"!==d||a.experiments.jb("html5_enable_new_hvc_enc")?a.isTypeSupported(e)?!0:"tpus":"newhvc":"hqcenc"};
XE=function(a){var b=Nu()&&!Ao(29),c=Mu("google tv")&&Mu("chrome")&&!Ao(30);a=Pu()&&a.experiments.jb("apple_tv_cobalt_default_mse_killswitch");return b||c||a?!1:Dxa()};
Cya=function(a,b,c){var d=480;b=g.r(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=e.video.j;1080>=f&&f>d&&!0===Ova(a,e,c)&&(d=f)}return d};
g.YE=function(a,b){b=void 0===b?!1:b;return XE(a)&&a.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!b&&a.canPlayType(YD(),"application/x-mpegURL")?!0:!1};
Eya=function(a){Dya(function(){for(var b=g.r(Object.keys(FB)),c=b.next();!c.done;c=b.next())EB(a,FB[c.value])})};
EB=function(a,b){b.name in a.I||(a.I[b.name]=Fya(a,b));return a.I[b.name]};
Fya=function(a,b){if(a.C)return!!a.C[b.name];if(b===FB.BITRATE&&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===FB.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)};
Gya=function(a){a.S=!1;a.j=!0};
Hya=function(a){a.B||(a.B=!0,a.j=!0)};
Iya=function(a,b){var c=0;a.u.has(b)&&(c=a.u.get(b).MY);a.u.set(b,{MY:c+1,mS:Math.pow(2,c+1)});a.j=!0};
ZE=function(){var a=this;this.queue=[];this.C=0;this.j=this.u=!1;this.B=function(){a.u=!1;Jya(a)}};
Kya=function(a){a.j||(Dya(function(){Jya(a)}),a.j=!0)};
Jya=function(a){a.j=!1;if(a.queue.length&&!(a.u&&5>=a.queue.length&&15E3>(0,g.T)()-a.C)){var b=a.queue.shift(),c=b.url;b=b.options;b.timeout=1E4;g.Du(c,b,3,1E3).then(a.B,a.B);a.u=!0;a.C=(0,g.T)();5<a.queue.length&&Kya(a)}};
$E=function(){g.az.call(this);this.items={}};
aF=function(a){return window.Int32Array?new Int32Array(a):Array(a)};
gF=function(a){this.counter=[0,0,0,0];this.u=new Uint8Array(16);this.j=16;if(!Lya){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);bF=new Uint8Array(256);cF=aF(256);dF=aF(256);eF=aF(256);fF=aF(256);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;bF[f]=e;b=e<<1^(e>>7&&283);var h=b^e;cF[f]=b<<24|e<<16|e<<8|h;dF[f]=h<<24|cF[f]>>>8;eF[f]=e<<24|dF[f]>>>8;fF[f]=e<<24|eF[f]>>>8}Lya=!0}e=aF(44);for(c=0;4>c;c++)e[c]=
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=(bF[a>>16&255]^d)<<24|bF[a>>8&255]<<16|bF[a&255]<<8|bF[a>>>24],d=d<<1^(d>>7&&283)),e[c]=e[c-4]^a;this.key=e};
Mya=function(a,b){for(var c=0;4>c;c++)a.counter[c]=b[4*c]<<24|b[4*c+1]<<16|b[4*c+2]<<8|b[4*c+3];a.j=16};
Nya=function(a){for(var b=a.key,c=a.counter[0]^b[0],d=a.counter[1]^b[1],e=a.counter[2]^b[2],f=a.counter[3]^b[3],h=3;0<=h&&!(a.counter[h]=-~a.counter[h]);h--);for(var l,m,n=4;40>n;)h=cF[c>>>24]^dF[d>>16&255]^eF[e>>8&255]^fF[f&255]^b[n++],l=cF[d>>>24]^dF[e>>16&255]^eF[f>>8&255]^fF[c&255]^b[n++],m=cF[e>>>24]^dF[f>>16&255]^eF[c>>8&255]^fF[d&255]^b[n++],f=cF[f>>>24]^dF[c>>16&255]^eF[d>>8&255]^fF[e&255]^b[n++],c=h,d=l,e=m;a=a.u;h=b[40];a[0]=bF[c>>>24]^h>>>24;a[1]=bF[d>>16&255]^h>>16&255;a[2]=bF[e>>8&255]^
h>>8&255;a[3]=bF[f&255]^h&255;h=b[41];a[4]=bF[d>>>24]^h>>>24;a[5]=bF[e>>16&255]^h>>16&255;a[6]=bF[f>>8&255]^h>>8&255;a[7]=bF[c&255]^h&255;h=b[42];a[8]=bF[e>>>24]^h>>>24;a[9]=bF[f>>16&255]^h>>16&255;a[10]=bF[c>>8&255]^h>>8&255;a[11]=bF[d&255]^h&255;h=b[43];a[12]=bF[f>>>24]^h>>>24;a[13]=bF[c>>16&255]^h>>16&255;a[14]=bF[d>>8&255]^h>>8&255;a[15]=bF[e&255]^h&255};
jF=function(){if(!hF&&!g.vw){if(iF)return iF;var a;iF=null==(a=window.crypto)?void 0:a.subtle;var b,c,d;if((null==(b=iF)?0:b.importKey)&&(null==(c=iF)?0:c.sign)&&(null==(d=iF)?0:d.encrypt))return iF;iF=void 0}};
g.kF=function(a){this.C=a};
g.lF=function(a){this.u=a};
mF=function(a){this.D=new Uint8Array(64);this.B=new Uint8Array(64);this.C=0;this.I=new Uint8Array(64);this.u=0;this.D.set(a);this.B.set(a);for(a=0;64>a;a++)this.D[a]^=92,this.B[a]^=54;this.reset()};
Oya=function(a,b,c){for(var d=a.J,e=a.j[0],f=a.j[1],h=a.j[2],l=a.j[3],m=a.j[4],n=a.j[5],p=a.j[6],q=a.j[7],u,w,y,A=0;64>A;)16>A?(d[A]=y=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(u=d[A-2],w=d[A-15],y=d[A-7]+d[A-16]+((u>>>17|u<<15)^(u>>>19|u<<13)^u>>>10)+((w>>>7|w<<25)^(w>>>18|w<<14)^w>>>3),d[A]=y),u=q+nF[A]+y+((m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&n^~m&p),w=((e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10))+(e&f^e&h^f&h),q=u+w,l+=u,A++,16>A?(d[A]=y=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(u=
d[A-2],w=d[A-15],y=d[A-7]+d[A-16]+((u>>>17|u<<15)^(u>>>19|u<<13)^u>>>10)+((w>>>7|w<<25)^(w>>>18|w<<14)^w>>>3),d[A]=y),u=p+nF[A]+y+((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&m^~l&n),w=((q>>>2|q<<30)^(q>>>13|q<<19)^(q>>>22|q<<10))+(q&e^q&f^e&f),p=u+w,h+=u,A++,16>A?(d[A]=y=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(u=d[A-2],w=d[A-15],y=d[A-7]+d[A-16]+((u>>>17|u<<15)^(u>>>19|u<<13)^u>>>10)+((w>>>7|w<<25)^(w>>>18|w<<14)^w>>>3),d[A]=y),u=n+nF[A]+y+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&l^
~h&m),w=((p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10))+(p&q^p&e^q&e),n=u+w,f+=u,A++,16>A?(d[A]=y=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(u=d[A-2],w=d[A-15],y=d[A-7]+d[A-16]+((u>>>17|u<<15)^(u>>>19|u<<13)^u>>>10)+((w>>>7|w<<25)^(w>>>18|w<<14)^w>>>3),d[A]=y),u=m+nF[A]+y+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&h^~f&l),w=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+(n&p^n&q^p&q),y=q,q=l,l=y,y=p,p=h,h=y,y=n,n=f,f=y,m=e+u,e=u+w,A++;a.j[0]=e+a.j[0]|0;a.j[1]=f+a.j[1]|0;a.j[2]=h+a.j[2]|0;a.j[3]=
l+a.j[3]|0;a.j[4]=m+a.j[4]|0;a.j[5]=n+a.j[5]|0;a.j[6]=p+a.j[6]|0;a.j[7]=q+a.j[7]|0};
Qya=function(a){var b=new Uint8Array(32),c=64-a.u;55<a.u&&(c+=64);var d=new Uint8Array(c);d[0]=128;for(var e=8*a.C,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.j[c]>>>24,b[4*c+1]=a.j[c]>>>16&255,b[4*c+2]=a.j[c]>>>8&255,b[4*c+3]=a.j[c]&255;Pya(a);return b};
Pya=function(a){a.j=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];a.J=[];a.J.length=64;a.C=0;a.u=0};
Rya=function(a){this.j=a};
Sya=function(a,b,c){a=new mF(a.j);a.update(b);a.update(c);b=Qya(a);a.update(a.D);a.update(b);b=Qya(a);a.reset();return b};
Tya=function(a){this.u=a};
Uya=function(a,b,c,d){var e,f,h,l;return g.z(function(m){switch(m.j){case 1:if(a.j){m.Ma(2);break}e=a;return g.x(m,d.importKey("raw",a.u,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:e.j=m.u;case 2:return f=new Uint8Array(b.length+c.length),f.set(b),f.set(c,b.length),h={name:"HMAC",hash:"SHA-256"},g.x(m,d.sign(h,a.j,f),4);case 4:return l=m.u,m.return(new Uint8Array(l))}})};
Vya=function(a,b,c){a.B||(a.B=new Rya(a.u));return Sya(a.B,b,c)};
Wya=function(a,b,c){var d,e;return g.z(function(f){if(1==f.j){d=jF();if(!d)return f.return(Vya(a,b,c));g.pa(f,3);return g.x(f,Uya(a,b,c,d),5)}if(3!=f.j)return f.return(f.u);e=g.ua(f);g.pz(e);hF=!0;return f.return(Vya(a,b,c))})};
pF=function(){this.B=this.j=0;this.u=Array.from({length:oF.length}).fill(0)};
Xya=function(){};
Yya=function(a){this.name=a;this.startTimeMs=(0,g.T)();this.j=!1};
Zya=function(){this.profiles=new Xya};
qF=function(a,b,c,d){d=void 0===d?1:d;0<=c&&(b in a.profiles||(a.profiles[b]=new pF),a.profiles[b].ih(c,d))};
rF=function(){};
sF=function(){g.kF.apply(this,arguments)};
tF=function(){g.lF.apply(this,arguments)};
$ya=function(a,b,c){this.encryptedClientKey=b;this.D=c;this.j=new Uint8Array(a.buffer,0,16);this.B=new Uint8Array(a.buffer,16)};
aza=function(a){a.u||(a.u=new sF(a.j));return a.u};
uF=function(a){try{return Bc(a)}catch(b){return null}};
bza=function(a,b){if(!b&&a)try{b=JSON.parse(a)}catch(e){}if(b){a=b.clientKey?uF(b.clientKey):null;var c=b.encryptedClientKey?uF(b.encryptedClientKey):null,d=b.keyExpiresInSeconds?1E3*Number(b.keyExpiresInSeconds)+(0,g.T)():null;a&&c&&d&&(this.j=new $ya(a,c,d));b.onesieUstreamerConfig&&(this.onesieUstreamerConfig=uF(b.onesieUstreamerConfig)||void 0);this.baseUrl=b.baseUrl}};
vF=function(a){this.j=this.u=0;this.alpha=Math.exp(Math.log(.5)/a)};
wF=function(a,b,c,d){c=void 0===c?.5:c;d=void 0===d?0:d;this.resolution=b;this.valueIndex=0;this.u=!1;this.C=!0;this.j=Math.round(a*this.resolution);this.values=Array(this.j);for(a=0;a<this.j;a++)this.values[a]=Infinity;this.D=cza(this);this.B=c;this.I=d};
cza=function(a){for(var b=Array(a.j),c=0;c<a.j;c++)b[c]=c;return b};
xF=function(a,b){if(!a.u&&0===a.valueIndex)return 0;a.C&&(g.lc(a.D,function(c,d){return a.values[c]-a.values[d]}),a.C=!1);
return a.values[a.D[Math.round(b*((a.u?a.j:a.valueIndex)-1))]]||0};
dza=function(a){var b=new yya;this.policy=a;this.Aa=b;this.Z=this.qa=0;this.D=-1;this.S=!1;this.ea=this.C=yF();this.J=new wF(4,1,.6,.4);this.j=new wF(10,1,.5,.4);this.B=a.j?new vF(a.u):new wF(a.u,20,.5,.4);this.I=new wF(5,1,.25);this.u=new wF(30,1,.5);a=g.Oz("yt-player-bandwidth")||{};b=this.policy.B;0<a.byterate&&(b=a.byterate,this.S=!0);this.B.rh(this.policy.D,b);0<a.delay&&this.J.rh(1,Math.min(a.delay,2));0<a.stall&&this.j.rh(1,a.stall);0<a.init&&(this.ea=Math.min(a.init,this.ea));this.D=yF()};
zF=function(a){a=a.J.Rh();a=isNaN(a)?.5:a;return a=Math.min(a,5)};
eza=function(a,b,c){isNaN(c)||(a.Z+=c);isNaN(b)||(a.qa+=b)};
AF=function(a){a=a.B.Rh();return 0<a?a:1};
BF=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?1048576:c;var d=AF(a);d=1/((a.j.Rh()||0)+1/d);var e=a.I.Rh();d=Math.max(d,0<e?e:1);if(!b)return d;b=1E-9+zF(a);c=d*Math.min(1,c/(d*b));a.policy.C||(a=((xF(a.u,.98)||0)-1)/2,a=Math.max(0,Math.min(1,a)),c*=1-.5*a);return c};
CF=function(a){return{delay:zF(a),stall:a.j.Rh()||0,byterate:AF(a),init:a.ea}};
DF=function(a){-1<a.D&&3E4<yF()-a.D&&(hya(CF(a)),a.D=yF(),a.S=!0)};
fza=function(a){return 4E3<=yF()-a.C};
gza=function(){this.u=17;this.B=13E4;this.D=.5;this.C=this.j=!1};
iza=function(a,b){a=void 0===a?{}:a;b=void 0===b?{}:b;g.J.call(this);var c=this;this.values=a;this.qo=b;this.u={};this.B=this.j=0;this.C=new g.Xn(function(){hza(c)},1E4);
g.M(this,this.C)};
EF=function(a,b){jza(a,b);return a.values[b]&&a.qo[b]?a.values[b]/Math.pow(2,a.j/a.qo[b]):0};
jza=function(a,b){a.values[b]||(b=jya(),a.values=b.values||{},a.qo=b.halfLives||{},a.u=b.values?Object.assign({},b.values):{})};
hza=function(a){var b=jya();if(b.values){b=b.values;for(var c={},d=g.r(Object.keys(a.values)),e=d.next();!e.done;e=d.next())e=e.value,b[e]&&a.u[e]&&(a.values[e]+=b[e]-a.u[e]),c[e]=EF(a,e);a.u=c}b=a.qo;c={};c.values=a.u;c.halfLives=b;g.Nz("yt-player-memory",c,2592E3)};
cG=function(a,b,c){g.J.call(this);this.webPlayerContextConfig=b;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.zg=this.Id=this.Wa=this.xg=this.userDisplayName=this.userDisplayImage=this.Yi="";this.deviceParams={};this.controlsType="0";this.Pc=NaN;this.Hd=!1;this.Ne=(0,g.T)();this.yb=0;this.Nk=this.Tl=!1;this.Pj=!0;this.Lk=this.oe=!1;this.Vk=null;this.B=!1;this.Af=this.Bk=this.Z=0;a=a?g.Gf(a):{};b&&b.csiPageType&&(this.csiPageType=b.csiPageType);b&&b.csiServiceName&&(this.csiServiceName=
b.csiServiceName);this.experiments=new zya(b?b.serializedExperimentIds:a.fexp,b?b.serializedExperimentFlags:a.fflags);this.forcedExperiments=b?b.serializedForcedExperimentIds:fv("",a.forced_experiments)||void 0;this.cspNonce=(null==b?0:b.cspNonce)&&!this.K("fill_csp_nonce_from_wpcc_killswitch")?b.cspNonce:fv("",a.csp_nonce);this.K("web_player_deprecated_uvr_killswitch");try{var d=document.location.toString()}catch(B){d=""}this.Kd=d;this.ancestorOrigins=(d=window.location.ancestorOrigins)?Array.from(d):
[];this.u=cv(!1,b?b.isEmbed:a.is_embed);b&&b.device?(d=b.device,d.brand&&(this.deviceParams.cbrand=d.brand),d.browser&&(this.deviceParams.cbr=d.browser),d.browserVersion&&(this.deviceParams.cbrver=d.browserVersion),this.deviceParams.c=d.interfaceName||"WEB",this.deviceParams.cver=d.interfaceVersion||"html5",d.interfaceTheme&&(this.deviceParams.ctheme=d.interfaceTheme),this.deviceParams.cplayer=d.interfacePlayerType||"UNIPLAYER",d.model&&(this.deviceParams.cmodel=d.model),d.network&&(this.deviceParams.cnetwork=
d.network),d.os&&(this.deviceParams.cos=d.os),d.osVersion&&(this.deviceParams.cosver=d.osVersion),d.platform&&(this.deviceParams.cplatform=d.platform)):(this.deviceParams.c=a.c||"web",this.deviceParams.cver=a.cver||"html5",this.deviceParams.cplayer="UNIPLAYER");b&&!this.K("wpcc_loader_url_killswitch")?this.loaderUrl=this.u||FF(this)&&b.loaderUrl?b.loaderUrl||"":this.Kd:this.loaderUrl=this.u||FF(this)&&a.loaderUrl?fv("",a.loaderUrl):this.Kd;this.K("embeds_js_api_set_1p_cookie")&&(this.embedsTokenValue=
fv("",a.embedsTokenValue));this.C=kA(this.loaderUrl,kza);d=this.loaderUrl;var e=void 0===e?!1:e;this.gm=jA(kA(d,lza),d,e,"Trusted Ad Domain URL");this.eb=cv(!1,a.privembed);this.protocol=0===this.Kd.indexOf("http:")?"http":"https";this.ya=lA((b?b.customBaseYoutubeUrl:a.BASE_YT_URL)||"")||lA(this.Kd)||this.protocol+"://www.youtube.com/";e=b?b.eventLabel:a.el;d="detailpage";"adunit"===e?d=this.u?"embedded":"detailpage":"embedded"===e||this.C?d=dv(d,e,mza):e&&(d="embedded");this.Qa=d;Lx();e=null;d=b?
b.playerStyle:a.ps;var f=g.Sb(nza,d);!d||f&&!this.C||(e=d);this.playerStyle=e;this.S=(this.D=g.Sb(nza,this.playerStyle))&&"play"!==this.playerStyle&&"jamboard"!==this.playerStyle;this.fm=!this.S;this.Ia=cv(!1,a.disableplaybackui);this.disablePaidContentOverlay=cv(!1,null==b?void 0:b.disablePaidContentOverlay);this.disableSeek=cv(!1,null==b?void 0:b.disableSeek);this.Ld=this.K("variable_playback_rate")?!0:YD().defaultPlaybackRate?GF||g.Wu||HF?g.oB&&Ao("20")||g.$D&&Ao("4")||g.IF&&Ao("11")||Su():!(g.IF&&
!Mu("chrome")||GF||Mu("android")||Mu("silk")):!1;this.Xl=cv(!1,a.enable_faster_speeds);this.isMobile=cv("blazer"===this.playerStyle,a.is_html5_mobile_device||b&&b.isMobileDevice);this.Ok=Vu()||Xu();this.isMobile?e=!this.D:(e=Number(Date.now()/1E3),d=g.pv.getInstance(),e=this.K("block_desktop_background_playback_with_mobile_cookie")&&d&&e>Number(d.get("dhmu",e.toString())));this.cm=e;this.Ba=cE();this.nm=g.JF;this.Pk=cv(!1,b?b.embedOptOutDeprecation:a.opt_out_deprecation);this.Vg=!(!b||!b.embedsEnablePfpImaIntegration||
this.K("embeds_pfp_ima_integration_killswitch"));this.Aa=!!((null==b?0:b.embedsEnableAppendUtmParams)&&this.K("embeds_web_enable_utm_params"));this.pfpChazalUi=this.Vg||cv(!1,(b?b.pfpChazalUi:a.pfp_chazal_ui)&&!this.K("embeds_pfp_chazal_ui_killswitch"));var h;b?void 0!==b.hideInfo&&(h=!b.hideInfo):h=a.showinfo;this.Nj=g.KF(this)&&!this.Pk||cv(!LF(this)&&!MF(this)&&!this.D,h);this.Qk=b?!!b.mobileIphoneSupportsInlinePlayback:cv(!1,a.playsinline);h=this.isMobile&&NF&&null!=OF&&0<OF&&2.3>=OF;e=b?b.useNativeControls:
a.use_native_controls;this.I=g.KF(this)&&this.isMobile;d=this.isMobile&&!this.I;e=PF(this)||!h&&cv(d,e)?"3":"1";d=b?b.controlsType:a.controls;this.controlsType="0"!==d&&0!==d?e:"0";this.kf=this.isMobile;this.color=dv("red",b?b.progressBarColor:a.color,oza);this.lm="3"===this.controlsType||cv(!1,b?b.embedsShowModestBranding:a.modestbranding)&&"red"===this.color;this.lc=!this.u;this.Oj=(e=!this.lc&&!MF(this)&&!this.S&&!this.D&&!LF(this))&&!this.lm&&"1"===this.controlsType;this.Sc=g.QF(this)&&e&&"0"===
this.controlsType&&!this.Oj;this.Dm=this.mm=h;this.zc=("3"===this.controlsType||this.isMobile||cv(!1,a.use_media_volume))&&!this.I;this.Sk=RF&&!g.vc(601)?!1:!0;this.Zl=this.u||!1;this.Ce=MF(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128);this.widgetReferrer=fv("",b?b.widgetReferrer:a.widget_referrer);var l;b?b.disableCastApi&&(l=!1):l=a.enablecastapi;l=!this.C||cv(!0,l);h=!0;b&&b.disableMdxCast&&(h=!1);this.Lb=this.K("enable_cast_for_web_unplugged")&&g.SF(this)&&h||this.K("enable_cast_on_music_web")&&
g.TF(this)&&h||l&&h&&"1"===this.controlsType&&!this.isMobile&&(MF(this)||g.QF(this)||g.UF(this))&&!g.VF(this);this.qm=!!window.document.pictureInPictureEnabled||bE();l=b?!!b.supportsAutoplayOverride:cv(!1,a.autoplayoverride);this.Xi=!this.isMobile&&!Mu("nintendo wiiu")||l;l=b?!!b.enableMutedAutoplay:cv(!1,a.mutedautoplay);h=this.K("embeds_enable_muted_autoplay")&&g.KF(this);this.jf=l&&h&&this.Ba&&!PF(this);l=(MF(this)||LF(this))&&"blazer"===this.playerStyle;this.Fi=b?!!b.disableFullscreen:!cv(!0,
a.fs);this.ob=!this.Fi&&(l||g.Uy());this.Hk=this.K("uniplayer_block_pip")&&(Nu()&&Ao(58)&&!Xu()||Uu);l=g.KF(this)&&!this.Pk;var m;b?void 0!==b.disableRelatedVideos&&(m=!b.disableRelatedVideos):m=a.rel;this.Lc=l||cv(!this.D,m);this.Mj=cv(!1,b?b.enableContentOwnerRelatedVideos:a.co_rel);this.J=Xu()&&0<OF&&4.4>=OF?"_top":"_blank";this.Ue=g.UF(this);this.Qi=cv("blazer"===this.playerStyle,b?b.enableCsiLogging:a.enablecsi);switch(this.playerStyle){case "blogger":m="bl";break;case "gmail":m="gm";break;case "gac":m=
"ga";break;case "books":m="gb";break;case "docs":m="gd";break;case "duo":m="gu";break;case "google-live":m="gl";break;case "google-one":m="go";break;case "play":m="gp";break;case "chat":m="hc";break;case "hangouts-meet":m="hm";break;case "photos-edu":case "picasaweb":m="pw";break;default:m="yt"}this.La=m;this.authUser=fv("",b?b.authorizedUserIndex:a.authuser);this.pe=g.KF(this)&&(this.eb||!uma()||this.Ok);var n;b?void 0!==b.disableWatchLater&&(n=!b.disableWatchLater):n=a.showwatchlater;this.Ul=((m=
!this.pe)||!!this.authUser&&m)&&cv(!this.S,this.C?n:void 0);this.Tg=b?b.isMobileDevice||!!b.disableKeyboardControls:cv(!1,a.disablekb);this.loop=cv(!1,a.loop);this.pageId=fv("",!this.K("wpcc_pageid_killswitch")&&b?b.initialDelegatedSessionId:a.pageid);this.pm=cv(!0,a.canplaylive);this.Gb=cv(!1,a.livemonitor);this.disableSharing=cv(this.D,b?b.disableSharing:a.ss);(n=b&&this.K("fill_video_container_size_override_from_wpcc")?b.videoContainerOverride:a.video_container_override)?(m=n.split("x"),2!==m.length?
n=null:(n=Number(m[0]),m=Number(m[1]),n=isNaN(n)||isNaN(m)||0>=n*m?null:new g.Kg(n,m))):n=null;this.Tk=n;this.mute=b?!!b.startMuted:cv(!1,a.mute);this.storeUserVolume=!this.mute&&cv("0"!==this.controlsType,b&&!this.K("store_user_volume_override_from_wpcc_killswitch_2")?b.storeUserVolume:a.store_user_volume);n=b?b.annotationsLoadPolicy:a.iv_load_policy;this.annotationsLoadPolicy="3"===this.controlsType?3:dv(void 0,n,WF);this.captionsLanguagePreference=b?b.captionsLanguagePreference||"":fv("",a.cc_lang_pref);
n=dv(2,b?b.captionsLanguageLoadPolicy:a.cc_load_policy,WF);"3"===this.controlsType&&2===n&&(n=3);this.kb=n;this.wg=b?b.hl||"en_US":fv("en_US",a.hl);this.region=b?b.contentRegion||"US":fv("US",a.cr);this.hostLanguage=b?b.hostLanguage||"en":fv("en",a.host_language);this.Vl=!this.eb&&Math.random()<g.RE(this.experiments,"web_player_api_logging_fraction");this.Ya=!this.eb;this.enabledEngageTypes=new Set;this.deviceIsAudioOnly=!(null==b||!b.deviceIsAudioOnly);this.Pc=ev(this.Pc,a.ismb);this.fm?(n=a.vss_host||
"s.youtube.com","s.youtube.com"===n&&(n=XF(this.ya)||"www.youtube.com")):n="video.google.com";this.Uk=n;YF(this,a,!0);this.qa=new $E;g.M(this,this.qa);m=b?b.innertubeApiKey:fv("",a.innertube_api_key);l=b?b.innertubeApiVersion:fv("",a.innertube_api_version);n=b?b.innertubeContextClientVersion:fv("",a.innertube_context_client_version);m=g.O("INNERTUBE_API_KEY")||m;l=g.O("INNERTUBE_API_VERSION")||l;h=g.O("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO");e=ZF(this);d="number"===typeof this.deviceParams.c?Number(this.deviceParams.c):
Object.keys(pza).indexOf(this.deviceParams.c);this.Li={innertubeApiKey:m,innertubeApiVersion:l,YC:h,xI:e,MP:d,innertubeContextClientVersion:g.O("INNERTUBE_CONTEXT_CLIENT_VERSION")||n,zI:this.hostLanguage,yI:this.region,NP:g.O("INNERTUBE_HOST_OVERRIDE")||"",OP:!!g.O("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),AI:!!g.O("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1)};this.Lj=null!=window.WebKitPlaybackTargetAvailabilityEvent;this.j=new WE(this.experiments,this.K("html5_force_hfr_support")?!0:$F(this)||
Qu()||yma()||qza(this),g.$D&&g.vc(56)||g.oB&&g.vc(54)||qza(this));n=this.Pc;m=this.experiments;l=new gza;g.aG(this)&&(l.j=!0,l.D=.1);m.jb("html5_pctile_bandwidth_estimator")&&(l.j=!1);n&&(l.B=n/8);l.C=480<=FE();this.schedule=new dza(l);var p;this.enableSafetyMode=null!=(p=null==b?void 0:b.initialEnableSafetyMode)?p:cv(!1,a.enable_safety_mode);p=this.Ia?!1:MF(this)&&"blazer"!==this.playerStyle;var q;b?null!=b.disableAutonav&&(q=!b.disableAutonav):q=a.allow_autonav;this.xd=cv(p,!this.S&&q);this.sendVisitorIdHeader=
b?!!b.sendVisitorIdHeader:cv(!1,a.send_visitor_id_header);var u;"docs"===this.playerStyle&&(b?u=b.disableNativeContextMenu:u=a.disable_native_context_menu);this.disableNativeContextMenu=cv(!1,u);this.Yl=$F(this)&&this.K("enable_skip_intro_button");this.embedConfig=fv("",b?b.serializedEmbedConfig:a.embed_config);this.ea=iv(a,g.KF(this));this.B="EMBEDDED_PLAYER_MODE_PFL"===this.ea;this.embedsErrorLinks=!(null==b||!b.embedsErrorLinks);this.Rb=cv(!1,a.full_window);this.Ac=!g.SF(this)&&!bG(this)&&!g.VF(this)&&
!0;var w;this.livingRoomAppMode=dv("LIVING_ROOM_APP_MODE_UNSPECIFIED",(null==b?void 0:null==(w=b.device)?void 0:w.livingRoomAppMode)||a.living_room_app_mode,rza);var y;q=ev(NaN,null==b?void 0:null==(y=b.device)?void 0:y.deviceYear);isNaN(q)||(this.deviceYear=q);this.transparentBackground=b?!!b.transparentBackground:cv(!1,a.transparent_background);this.showMiniplayerButton=b?!!b.showMiniplayerButton:cv(!1,a.show_miniplayer_button);this.externalFullscreen=b?!!b.externalFullscreen:cv(!1,a.external_fullscreen);
this.showMiniplayerUiWhenMinimized=b?!!b.showMiniplayerUiWhenMinimized:cv(!1,a.use_miniplayer_ui);this.showInlinePreviewUi=b?!!b.showInlinePreviewUi:!1;this.showBackButton=cv(!1,a.showbackbutton);var A;this.Pj=null!=(A=a.show_loop_video_toggle)?A:!0;this.jm=1E-4>Math.random();this.Mi=a.onesie_hot_config||(null==b?0:b.onesieHotConfig)?new bza(a.onesie_hot_config,null==b?void 0:b.onesieHotConfig):void 0;this.isTectonic=b&&!this.K("fill_is_tectonic_from_wpcc_killswitch")?!!b.isTectonic:!!a.isTectonic;
this.playerCanaryState=c;this.Qd=new iza;g.M(this,this.Qd);this.Lk=cv(!1,a.force_gvi);this.datasyncId=(null==b?void 0:b.datasyncId)||g.O("DATASYNC_ID");this.hm=g.O("LOGGED_IN",!1);this.yg=(null==b?void 0:b.allowWoffleManagement)||!1;this.Gk=0;this.livingRoomPoTokenId=null==b?void 0:b.livingRoomPoTokenId;a=g.RE(this.experiments,"html5_ultra_high_res_logging_percent");this.K("html5_high_res_logging")?this.Z=2:a?100*Math.random()<a&&(this.Z=2):1>4096*Math.random()&&(this.Z=this.K("html5_high_res_logging_triggers_ultra_high")?
2:1);this.K("html5_ping_queue")&&(this.Ni=new ZE);this.Af=g.RE(this.experiments,"html5_defer_ad_module_ms");this.Bk=g.RE(this.experiments,"html5_defer_modules_delay_time_millis")};
tza=function(a){a=g.RE(a.experiments,"embeds_web_lite_mode");return 0<=a&&a<sza.length?sza[a]:"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN"};
YF=function(a,b,c){c=void 0===c?!1:c;a.Id=fv(a.Id,b.video_id);a.Wa=fv(a.Wa,b.eventid);a.Wa&&(tz=a.Wa);for(var d=[],e=g.r(Object.keys(uza)),f=e.next();!f.done;f=e.next()){f=uza[f.value];var h=b[f];null!=h&&(h!==a.deviceParams[f]&&d.push(f),a.deviceParams[f]=h)}!c&&0<d.length&&a.jm&&(d.sort(),g.pz(new g.Pv("Player client parameters changed after startup",d)));a.userAge=ev(a.userAge,b.user_age);a.Yi=fv(a.Yi,b.user_display_email);a.userDisplayImage=fv(a.userDisplayImage,b.user_display_image);g.nA(a.userDisplayImage)||
(a.userDisplayImage="");a.userDisplayName=fv(a.userDisplayName,b.user_display_name);a.xg=fv(a.xg,b.user_gender);a.csiPageType=fv(a.csiPageType,b.csi_page_type);a.csiServiceName=fv(a.csiServiceName,b.csi_service_name);a.Qi=cv(a.Qi,b.enablecsi);a.pageId=fv(a.pageId,b.pageid);if(c=b.enabled_engage_types)a.enabledEngageTypes=new Set(c.split(","));b.living_room_session_po_token&&(a.Te=b.living_room_session_po_token.toString())};
dG=function(a,b){return!a.D&&Nu()&&Ao(55)&&"3"===a.controlsType&&!b};
g.eG=function(a){a=XF(a.ya);return"www.youtube-nocookie.com"===a?"www.youtube.com":a};
g.fG=function(a){return g.VF(a)?"music.youtube.com":g.eG(a)};
gG=function(a,b,c){return a.protocol+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")};
hG=function(a){return MF(a)&&!g.SF(a)};
PF=function(a){return RF&&!a.Qk||Mu("nintendo wiiu")?!0:!1};
g.VF=function(a){return"music-embed"===a.playerStyle};
ZF=function(a){return a.deviceParams.c};
g.aG=function(a){return/^TVHTML5/.test(ZF(a))?!0:"TV"===a.deviceParams.cplatform};
vza=function(a){return"TVHTML5"===ZF(a)&&a.deviceParams.cver.startsWith("7")};
FF=function(a){return"TVHTML5_SIMPLY_EMBEDDED_PLAYER"===ZF(a)};
qza=function(a){return"CHROMECAST ULTRA/STEAK"===a.deviceParams.cmodel||"CHROMECAST/STEAK"===a.deviceParams.cmodel};
g.iG=function(){return 1<window.devicePixelRatio?window.devicePixelRatio:1};
$F=function(a){return/web/i.test(ZF(a))};
g.jG=function(a){return"WEB"===ZF(a).toUpperCase()};
bG=function(a){return"WEB_KIDS"===ZF(a)};
g.SF=function(a){return"WEB_UNPLUGGED"===ZF(a)};
kG=function(a){return"TVHTML5_UNPLUGGED"===ZF(a)};
g.lG=function(a){return g.SF(a)||"TV_UNPLUGGED_CAST"===ZF(a)||kG(a)};
g.TF=function(a){return"WEB_REMIX"===ZF(a)};
g.mG=function(a){return"WEB_EMBEDDED_PLAYER"===ZF(a)};
g.nG=function(a){return!a.K("web_player_i_see_captions_killswitch")&&g.jG(a)};
oG=function(a){return a.K("web_player_enable_hybrid_controls_on_touch_screen")&&window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches&&g.jG(a)};
g.qG=function(a){return(a.deviceIsAudioOnly||!g.$D||Uu||"3"===a.controlsType?!1:g.Wu?a.u&&g.vc(51):!0)||(a.deviceIsAudioOnly||!g.oB||Uu||"3"===a.controlsType?!1:g.Wu?a.u&&g.vc(48):g.vc(38))||(a.deviceIsAudioOnly||!g.IF||Uu||"3"===a.controlsType?!1:g.Wu?a.u&&g.vc(37):g.vc(27))||!a.deviceIsAudioOnly&&g.pG&&!Tu()&&g.vc(11)||!a.deviceIsAudioOnly&&g.Xv&&g.vc("604.4")};
wza=function(a){if(g.QF(a)&&NF)return!1;if(g.oB){if(!g.vc(47)||!g.vc(52)&&g.vc(51))return!1}else if(g.Xv)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1};
MF=function(a){return"detailpage"===a.Qa};
g.QF=function(a){return"embedded"===a.Qa};
rG=function(a){return"leanback"===a.Qa};
LF=function(a){return"adunit"===a.Qa||"gvn"===a.playerStyle};
g.UF=function(a){return"profilepage"===a.Qa};
g.KF=function(a){return a.u&&g.QF(a)&&!LF(a)&&!a.D};
sG=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.pz(new g.Pv("Profile image not a FIFE URL.",a.userDisplayImage));return a.userDisplayImage};
g.tG=function(a){var b=g.fG(a);!a.K("yt_embeds_disable_new_error_lozenge_url")&&xza.includes(b)&&(b="www.youtube.com");return a.protocol+"://"+b};
g.uG=function(a){return Gu(a||"")};
vG=function(a){return 1<=a.Z};
XF=function(a){var b=g.pi(a);return(a=Number(g.oi(4,a))||null)?b+":"+a:b};
wG=function(a){var b=[];if(a){a=g.r(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=g.r(c.value);c=d.next().value;d=d.next().value;void 0!==d&&(d="boolean"===typeof d?""+ +d:(""+d).replace(/[:,=]/g,"_"),b.push(c+"."+d))}}return b.join(";")};
xG=function(a,b,c){b=void 0===b?{}:b;this.errorCode=a;this.details=b;this.severity=void 0===c?0:c};
yG=function(a){return 1===a||2===a};
zG=function(a,b){b=void 0===b?0:b;if(a instanceof xG)return a;a=a&&a instanceof Error?a:Error(""+a);yG(b)?g.oz(a):g.pz(a);return new xG(1===b?"player.fatalexception":"player.exception",{name:""+a.name,message:""+a.message},b)};
AG=function(a){this.j=a};
BG=function(a,b,c){if(c)return Fu();c={};var d=YD();b=g.r(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,a.canPlayType(d,e.Dg().mimeType)){var f=e.j.video.quality;if(!c[f]||c[f].Dg().cf())c[f]=e}a=[];c.auto&&a.push(c.auto);d=g.r(ND);for(b=d.next();!b.done;b=d.next())(b=c[b.value])&&a.push(b);return a.length?Gu(a):Fu()};
yza=function(a,b,c,d,e){this.B=a;this.u=b;this.D=c;this.cpn=d;this.I=e;this.C=0;this.j=""};
zza=function(a,b){a.B.some(function(c){var d;return(null==(d=c.Nc)?void 0:d.getId())===b});
a.j=b};
CG=function(a,b,c){a.cpn&&(b=g.wi(b,{cpn:a.cpn}));c&&(b=g.wi(b,{Q5a:c}));return b};
Aza=function(a,b){a=a.itag.toString();null!==b&&(a+=b.itag.toString());return a};
Bza=function(a){for(var b=[],c=[],d=g.r(a.u),e=d.next();!e.done;e=d.next())e=e.value,e.bitrate<=a.C?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.u=b.concat(c)};
Cza=function(a){this.itag=a.itag;this.url=a.url;this.codecs=a.codecs;this.width=a.width;this.height=a.height;this.fps=a.fps;this.bitrate=a.bitrate;var b;this.u=(null==(b=a.audioItag)?void 0:b.split(","))||[];this.tx=a.tx;this.yd=a.yd||"";this.Nc=a.Nc;this.audioChannels=a.audioChannels;this.j=""};
Dza=function(a,b,c,d){b=void 0===b?!1:b;c=void 0===c?!0:c;d=void 0===d?{}:d;var e={};a=g.r(a);for(var f=a.next();!f.done;f=a.next()){f=f.value;if(b&&MediaSource&&MediaSource.isTypeSupported){var h=f.type;f.audio_channels&&(h=h+"; channels="+f.audio_channels);if(!MediaSource.isTypeSupported(h)){d[f.itag]="tpus";continue}}if(c||!f.drm_families||"smpte2084"!==f.eotf&&"arib-std-b67"!==f.eotf){h=void 0;var l={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},m=f.type.match(/codecs="([^"]*)"/);
m=m?m[1]:"";f.audio_track_id&&(h=new g.WD(f.name,f.audio_track_id,!!f.is_default));var n=f.eotf;f=new Cza({itag:f.itag,url:f.url,codecs:m,width:Number(f.width),height:Number(f.height),fps:Number(f.fps),bitrate:Number(f.bitrate),audioItag:f.audio_itag,tx:n?l[n]:void 0,yd:f.drm_families,Nc:h,audioChannels:Number(f.audio_channels)});e[f.itag]=e[f.itag]||[];e[f.itag].push(f)}else d[f.itag]="enchdr"}return e};
DG=function(a,b,c){this.j=a;this.B=b;this.expiration=c;this.u=null};
Eza=function(a,b){if(!(Uu||Ru()||Pu()))return null;a=Dza(b,a.K("html5_filter_fmp4_in_hls"));if(!a)return null;b=[];for(var c={},d=g.r(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=g.r(a[e.value]);for(var f=e.next();!f.done;f=e.next()){var h=f.value;h.Nc&&(f=h.Nc.getId(),c[f]||(h=new g.rB(f,h.Nc),c[f]=h,b.push(h)))}}return 0<b.length?b:null};
Jza=function(a,b,c,d,e,f,h){if(!(Uu||Ru()||Pu()))return Fu();var l={},m=Fza(c),n=Dza(c,a.K("html5_filter_fmp4_in_hls"),a.j.D,l);if(!n)return h({noplst:1}),Fu();Gza(n);c={};var p=(c.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",c),q;c=[];var u=[],w=[],y=null,A="";d=d&&d.match(/hls_timedtext_playlist/)?new Cza({itag:"0",url:d,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,Nc:new g.WD("English","en",!1)}):null;for(var B=g.r(Object.keys(n)),D=B.next();!D.done;D=B.next())if(D=D.value,!a.K("html5_disable_drm_hfr_1080")||
"383"!==D&&"373"!==D){D=g.r(n[D]);for(var G=D.next();!G.done;G=D.next())if(G=G.value,G.width){for(var H=g.r(G.u),L=H.next();!L.done;L=H.next())if(L=L.value,n[L]){G.j=L;break}G.j||(G.j=Hza(n,G));if(H=n[G.j])if(c.push(G),"fairplay"===G.yd&&(q=p),L="","PQ"===G.tx?L="smpte2084":"HLG"===G.tx&&(L="arib-std-b67"),L&&(A=L),w.push(Iza(H,[G],d,f,G.itag,G.width,G.height,G.fps,m,void 0,void 0,q,L)),!y||G.width*G.height*G.fps>y.width*y.height*y.fps)y=G}else u.push(G)}else l[D]="disdrmhfr";w.reduce(function(N,
K){return K.Dg().isEncrypted()&&N},!0)&&(q=p);
e=Math.max(e,0);p=y||{};n=void 0===p.fps?0:p.fps;y=void 0===p.width?0:p.width;p=void 0===p.height?0:p.height;B=a.K("html5_native_audio_track_switching");w.push(Iza(u,c,d,f,"93",y,p,n,m,"auto",e,q,A,B));Object.entries(l).length&&h(l);return BG(a.j,w,dG(a,b))};
Iza=function(a,b,c,d,e,f,h,l,m,n,p,q,u,w){for(var y=0,A="",B=g.r(a),D=B.next();!D.done;D=B.next())D=D.value,A||(A=D.itag),D.audioChannels&&D.audioChannels>y&&(y=D.audioChannels,A=D.itag);e=new QD(e,"application/x-mpegURL",{audio:new KD(0,y),video:new MD(f,h,l,null,void 0,n,void 0,u),yd:q,DQ:A});a=new yza(a,b,c?[c]:[],d,!!w);a.C=p?p:1369843;return new DG(e,a,m)};
Fza=function(a){a=g.r(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};
Hza=function(a,b){for(var c=g.r(Object.keys(a)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d][0];if(!e.width&&e.yd===b.yd&&!e.audioChannels)return d}return""};
Gza=function(a){for(var b=new Set,c=g.r(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.r(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.r(c);for(e=b.next();!e.done;e=b.next())delete a[e.value]};
EG=function(a,b){this.j=a;this.u=b};
Kza=function(a,b,c,d){var e=[];c=g.r(c);for(var f=c.next();!f.done;f=c.next()){var h=f.value;if(h.url){f=new g.KB(h.url,!0);if(h.s){var l=h.sp,m=Xva(decodeURIComponent(h.s));f.set(l,encodeURIComponent(m))}l=g.r(Object.keys(d));for(m=l.next();!m.done;m=l.next())m=m.value,f.set(m,d[m]);h=VD(h.type,h.quality,h.itag,h.width,h.height);e.push(new EG(h,f))}}return BG(a.j,e,dG(a,b))};
FG=function(a,b){this.j=a;this.u=b};
Lza=function(a,b,c){var d=[];c=g.r(c);for(var e=c.next();!e.done;e=c.next())if((e=e.value)&&e.url){var f=VD(e.type,"medium","0");d.push(new FG(f,e.url))}return BG(a.j,d,dG(a,b))};
Mza=function(a){return["OK","LIVE_STREAM_OFFLINE"].includes(a.status)};
g.GG=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.j=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.IG=function(a){var b={languageCode:a.languageCode,languageName:a.languageName,displayName:g.HG(a),kind:a.kind,name:a.name,id:a.id,is_servable:a.j,is_default:a.isDefault,is_translateable:a.isTranslateable,vss_id:a.vssId};a.translationLanguage&&(b.translationLanguage=a.translationLanguage);return b};
g.JG=function(a){return a.translationLanguage?a.translationLanguage.languageCode:a.languageCode};
g.HG=function(a){var b=a.languageName||"",c=[b];"asr"===a.kind&&-1===b.indexOf("(")&&c.push(" (Automatic Captions)");a.name&&c.push(" - "+a.name);a.translationLanguage&&c.push(" >> "+a.translationLanguage.languageName);return c.join("")};
Qza=function(a,b,c,d){a||(a=b&&Nza.hasOwnProperty(b)&&Oza.hasOwnProperty(b)?Oza[b]+"_"+Nza[b]:void 0);b=a;if(!b)return null;a=b.match(Pza);if(!a||5!==a.length)return null;if(a=b.match(Pza)){var e=Number(a[3]),f=[7,8,10,5,6];a=!(1===Number(a[1])&&8===e)&&0<=f.indexOf(e)}else a=!1;return c||d||a?b:null};
KG=function(a,b){for(var c={},d=g.r(Object.keys(Rza)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.nA(f)&&(c[Rza[e]]=f)}return c};
LG=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.r(Object.keys(Sza)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=Sza[e];for(var f=g.r(a),h=f.next();!h.done;h=f.next())if(h=h.value,h.width>=e){e=Tza(h.url);g.nA(e)&&(b[d]=e);break}}(a=a.pop())&&1280<=a.width&&(a=Tza(a.url),g.nA(a)&&(b["maxresdefault.jpg"]=a));return b};
Tza=function(a){return a.startsWith("//")?"https:"+a:a};
Vza=function(a){if(a=a.colorInfo)if(a=a.transferCharacteristics)return Uza[a];return null};
MG=function(a){return a&&a.baseUrl||""};
NG=function(a){a=g.lu(a);for(var b=g.r(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};
Wza=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;b=b.playerAttestationRenderer.challenge;null!=b&&(a.jj=b)};
Yza=function(a,b){a.captionTracks=[];if(b.captionTracks)for(var c=g.r(b.captionTracks),d=c.next();!d.done;d=c.next()){d=d.value;var e=Xza(d.baseUrl);if(!e)return;d=new g.GG({is_translateable:!!d.isTranslatable,languageCode:d.languageCode,languageName:d.name&&g.xA(d.name),url:e,vss_id:d.vssId,kind:d.kind});a.captionTracks.push(d)}a.NG=b.audioTracks||[];a.dO=b.defaultAudioTrackIndex||0;a.OG=b.translationLanguages?g.Ok(b.translationLanguages,function(f){return{languageCode:f.languageCode,languageName:g.xA(f.languageName)}}):
[];
a.TB=!!b.contribute&&!!b.contribute.captionsMetadataRenderer};
aAa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.interstitials.map(function(h){var l=g.Zu(h,Zza);if(l)return{is_yto_interstitial:!0,raw_player_response:l};if(h=g.Zu(h,$za))return Object.assign({is_yto_interstitial:!0},ju(h))});
d=g.r(d);for(var e=d.next();!e.done;e=d.next())switch(e=e.value,c.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":a.interstitials=a.interstitials.concat({time:0,playerVars:e,Ml:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:e,Ml:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var f=Number(c.podConfig.timeToInsertAtMillis);a.interstitials=a.interstitials.concat({time:f,playerVars:e,
Ml:0===f?5:7})}}};
bAa=function(a,b){if(b=b.find(function(c){return!(!c||!c.tooltipRenderer)}))a.tooltipRenderer=b.tooltipRenderer};
cAa=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)};
gAa=function(a){var b=a.indexRange,c=a.initRange;b={itag:a.itag,url:a.url,index:b?b.start+"-"+b.end:"0-0",bitrate:a.bitrate,init:c?c.start+"-"+c.end:"0-0",type:a.mimeType,clen:a.contentLength,lmt:a.lastModified,xtags:a.xtags};if(c=a.audioTrack){var d=c.displayName;d&&(b.name=d,b.audio_track_id=c.id,c.audioIsDefault&&(b.isDefault="1"))}if(c=a.captionTrack)b.caption_display_name=c.displayName,b.caption_vss_id=c.vssId,b.caption_language_code=c.languageCode,b.caption_kind=c.kind;(c=g.Zu(a,dAa)||a.signatureCipher)?
(c=ju(c),b.sp=c.sp,b.s=c.s,b.url=c.url):b.url=a.url;c=a.width;d=a.height;null!=c&&null!=d&&(b.size=c+"x"+d);(c=a.fps)&&(b.fps=c);(c=a.type)&&(b.stream_type=c);(c=a.projectionType)&&(b.projection_type=c);(c=a.stereoLayout)&&(b.stereo_layout=eAa[c]);(c=a.spatialAudioType)&&(b.spatial_audio_type=c);if(d=a.drmFamilies){c=[];d=g.r(d);for(var e=d.next();!e.done;e=d.next())c.push(OG[e.value]);b.drm_families=c.join(",")}(c=a.qualityLabel)&&(b.quality_label=c);(c=a.targetDurationSec)&&(b.target_duration_sec=
c);(c=a.maxDvrDurationSec)&&(b.max_dvr_duration_sec=c);(c=a.audioSampleRate)&&(b.audio_sample_rate=c);(c=a.audioChannels)&&(b.audio_channels=c);(c=Vza(a))&&(b.eotf=c);(c=a.colorInfo)&&(c=c.primaries)&&(c=fAa[c])&&(b.primaries=c);a.isDrc&&(b.drc="1");return g.ui(b)};
PG=function(a,b){this.type=a||"";this.id=b||""};
g.QG=function(a){return new PG(a.substr(0,2),a.substr(2))};
g.RG=function(a,b){this.Sa=a;this.author="";this.Dy=null;this.playlistLength=0;this.IE=this.sessionData=null;this.fg={};this.title="";if(b){this.author=b.author||b.playlist_author||"";this.title=b.playlist_title||"";if(a=b.session_data)this.sessionData=hu(a,"&");var c;this.IE=(null==(c=b.thumbnail_ids)?void 0:c.split(",")[0])||null;this.fg=KG(b,"playlist_");this.videoId=b.video_id||void 0;if(c=b.list)switch(b.listType){case "user_uploads":this.playlistId=(new PG("UU","PLAYER_"+c)).toString();break;
default:if(a=b.playlist_length)this.playlistLength=Number(a)||0;this.playlistId=g.QG(c).toString();if(b=b.video)this.videoId=(b[0]||null).video_id||void 0}else b.playlist&&(this.playlistLength=b.playlist.toString().split(",").length)}};
g.SG=function(a,b){this.Sa=a;this.yp=this.author="";this.Dy=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.Ts=this.lengthText="";this.sessionData=null;this.fg={};this.title="";if(b){this.ariaLabel=b.aria_label||void 0;this.author=b.author||"";this.yp=b.yp||"";if(a=b.endscreen_autoplay_session_data)this.Dy=hu(a,"&");this.Ey=b.Ey;this.isLivePlayback="1"===b.live_playback;this.isUpcoming=!!b.isUpcoming;if(a=b.length_seconds)this.lengthSeconds="string"===typeof a?Number(a):a;this.lengthText=
b.lengthText||"";this.Ts=b.Ts||"";this.publishedTimeText=b.publishedTimeText||void 0;if(a=b.session_data)this.sessionData=hu(a,"&");this.shortViewCount=b.short_view_count_text||void 0;this.fg=KG(b);this.title=b.title||"";this.videoId=b.docid||b.video_id||b.videoId||b.id||void 0;this.watchUrl=b.watchUrl||void 0}};
hAa=function(a,b,c,d){d={autonav:"1",playnext:String(d)};a.playlistId&&(d.autoplay="1");if(b){var e,f,h,l,m=null==(e=b.autoplay)?void 0:null==(f=e.autoplay)?void 0:null==(h=f.sets)?void 0:null==(l=h[0])?void 0:l.autoplayVideo;m&&((e=m.clickTrackingParams)&&(d.itct=e),e=g.Zu(m,g.TG))&&(a.SN=e)}else if(c){var n,p;(e=null==(m=c.nextButton)?void 0:null==(n=m.buttonRenderer)?void 0:null==(p=n.navigationEndpoint)?void 0:p.clickTrackingParams)&&(d.itct=e)}d.itct||(d.feature="related-auto");a.Dy=d};
iAa=function(a){this.j=a.playback_progress_0s_url;this.B=a.playback_progress_2s_url;this.u=a.playback_progress_10s_url};
UG=function(){var a=jAa;var b=void 0===b?[]:b;var c=void 0===c?[]:c;b=Qka.apply(null,[Rka.apply(null,g.t(b))].concat(g.t(c)));this.store=Tka(a,void 0,b)};
g.VG=function(a,b,c){for(var d=Object.assign({},a),e=g.r(Object.keys(b)),f=e.next();!f.done;f=e.next()){f=f.value;var h=a[f],l=b[f];if(void 0===l)delete d[f];else if(void 0===h)d[f]=l;else if(Array.isArray(l)&&Array.isArray(h))d[f]=c?[].concat(g.t(h),g.t(l)):l;else if(!Array.isArray(l)&&g.Ma(l)&&!Array.isArray(h)&&g.Ma(h))d[f]=g.VG(h,l,c);else if(typeof l===typeof h)d[f]=l;else return b=new g.Pv("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:f,O5a:h,Oa:l}),g.oz(b),a}return d};
WG=function(a){this.j=a;this.pos=0;this.u=-1};
XG=function(a){var b=YB(a.j,a.pos);++a.pos;if(128>b)return b;for(var c=b&127,d=1;128<=b;)b=YB(a.j,a.pos),++a.pos,d*=128,c+=(b&127)*d;return c};
YG=function(a,b){var c=a.u;for(a.u=-1;a.pos+1<=a.j.totalLength;){0>c&&(c=XG(a));var d=c>>3,e=c&7;if(d===b)return!0;if(d>b){a.u=c;break}c=-1;switch(e){case 0:XG(a);break;case 1:a.pos+=8;break;case 2:d=XG(a);a.pos+=d;break;case 5:a.pos+=4}}return!1};
ZG=function(a,b){if(YG(a,b))return XG(a)};
kAa=function(a,b){if(YG(a,b))return!!XG(a)};
$G=function(a,b){if(YG(a,b)){b=XG(a);var c=XB(a.j,a.pos,b);a.pos+=b;return c}};
aH=function(a,b){if(a=$G(a,b))return g.fC(a)};
lAa=function(a,b,c){if(a=$G(a,b))return c(new WG(new SB([a])))};
bH=function(a,b){a=a instanceof Uint8Array?new SB([a]):a;return b(new WG(a))};
mAa=function(){this.pos=0;this.u=[];this.j=new Uint8Array(4096);this.view=new DataView(this.j.buffer)};
cH=function(a,b){b=a.pos+b;if(!(a.j.length>=b)){for(var c=2*a.j.length;c<b;)c*=2;b=new Uint8Array(c);b.set(a.j.subarray(0,a.pos));a.j=b;a.view=new DataView(a.j.buffer)}};
dH=function(a,b){if(268435455<b){cH(a,4);for(var c=b&1073741823,d=0;4>d;d++)a.view.setUint8(a.pos,c&127|128),c>>=7,a.pos+=1;b=Math.floor(b/268435456)}for(cH(a,4);127<b;)a.view.setUint8(a.pos,b&127|128),b>>=7,a.pos+=1;a.view.setUint8(a.pos,b);a.pos+=1};
eH=function(a,b,c){void 0!==c&&(dH(a,b<<3|0),dH(a,c))};
fH=function(a,b,c){void 0!==c&&eH(a,b,c?1:0)};
gH=function(a,b,c){void 0!==c&&(dH(a,b<<3|2),b=c.length,dH(a,b),cH(a,b),a.j.set(c,a.pos),a.pos+=b)};
hH=function(a,b,c){void 0!==c&&(nAa(a,b,Math.ceil(Math.log2(4*c.length+2)/7)),cH(a,1.2*c.length),b=hC(c,a.j.subarray(a.pos)),a.pos+b>a.j.length&&(cH(a,b),b=hC(c,a.j.subarray(a.pos))),a.pos+=b,oAa(a))};
nAa=function(a,b,c){c=void 0===c?2:c;dH(a,b<<3|2);a.u.push(a.pos);a.u.push(c);a.pos+=c};
oAa=function(a){for(var b=a.u.pop(),c=a.u.pop(),d=a.pos-c-b;b--;){var e=b?128:0;a.view.setUint8(c++,d&127|e);d>>=7}};
iH=function(a,b,c,d,e){c&&(nAa(a,b,void 0===e?3:e),d(a,c),oAa(a))};
jH=function(a,b){var c=new mAa;b(c,a);return new Uint8Array(c.j.buffer,0,c.pos)};
g.kH=function(a){var b=new WG(new SB([Bc(decodeURIComponent(a))]));a=aH(b,2);b=ZG(b,4);var c=pAa[b];if("undefined"===typeof c)throw a=new g.Pv("Failed to recognize field number",{name:"EntityKeyHelperError",r5a:b}),g.oz(a),a;return{AY:b,entityType:c,entityId:a}};
g.lH=function(a,b){var c=new mAa;gH(c,2,jwa(a));a=qAa[b];if("undefined"===typeof a)throw b=new g.Pv("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:b}),g.oz(b),b;eH(c,4,a);eH(c,5,1);b=new Uint8Array(c.j.buffer,0,c.pos);return encodeURIComponent(g.xc(b))};
mH=function(a,b,c,d){if(void 0===d)return d=Object.assign({},a[b]||{}),c=(delete d[c],d),d={},Object.assign({},a,(d[b]=c,d));var e={},f={};return Object.assign({},a,(f[b]=Object.assign({},a[b],(e[c]=d,e)),f))};
rAa=function(a,b,c,d,e){var f=a[b];if(null==f||!f[c])return a;d=g.VG(f[c],d,"REPEATED_FIELDS_MERGE_OPTION_APPEND"===e);e={};f={};return Object.assign({},a,(f[b]=Object.assign({},a[b],(e[c]=d,e)),f))};
sAa=function(a,b){a=void 0===a?{}:a;switch(b.type){case "ENTITY_LOADED":return b.payload.reduce(function(d,e){var f,h=null==(f=e.options)?void 0:f.persistenceOption;if(h&&"ENTITY_PERSISTENCE_OPTION_UNKNOWN"!==h&&"ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"!==h)return d;if(!e.entityKey)return g.oz(Error("Missing entity key")),d;if("ENTITY_MUTATION_TYPE_REPLACE"===e.type){if(!e.payload)return g.oz(new g.Pv("REPLACE entity mutation is missing a payload",{entityKey:e.entityKey})),d;var l=g.pf(e.payload);
return mH(d,l,e.entityKey,e.payload[l])}if("ENTITY_MUTATION_TYPE_DELETE"===e.type){e=e.entityKey;try{var m=g.kH(e).entityType;l=mH(d,m,e)}catch(q){if(q instanceof Error)g.oz(new g.Pv("Failed to deserialize entity key",{entityKey:e,originalMessage:q.message})),l=d;else throw q;}return l}if("ENTITY_MUTATION_TYPE_UPDATE"===e.type){if(!e.payload)return g.oz(new g.Pv("UPDATE entity mutation is missing a payload",{entityKey:e.entityKey})),d;l=g.pf(e.payload);var n,p;return rAa(d,l,e.entityKey,e.payload[l],
null==(n=e.fieldMask)?void 0:null==(p=n.mergeOptions)?void 0:p.repeatedFieldsMergeOption)}return d},a);
case "REPLACE_ENTITY":var c=b.payload;return mH(a,c.entityType,c.key,c.zY);case "REPLACE_ENTITIES":return Object.keys(b.payload).reduce(function(d,e){var f=b.payload[e];return Object.keys(f).reduce(function(h,l){return mH(h,e,l,f[l])},d)},a);
case "UPDATE_ENTITY":return c=b.payload,rAa(a,c.entityType,c.key,c.zY,c.H5a);default:return a}};
uAa=function(a,b){var c=g.Ga("ytDebugData.callbacks");c||(c={},g.Fa("ytDebugData.callbacks",c));if(g.S("web_dd_iu")||tAa.includes(a))c[a]=b};
nH=function(a){this.j=new Eo(a)};
vAa=function(){if(void 0===oH){try{window.localStorage.removeItem("yt-player-lv")}catch(b){}a:{try{var a=!!self.localStorage}catch(b){a=!1}if(a&&(a=g.Oo(g.Qv()+"::yt-player"))){oH=new nH(a);break a}oH=void 0}}return oH};
g.pH=function(){var a=vAa();if(!a)return{};try{var b=a.get("yt-player-lv");return JSON.parse(b||"{}")}catch(c){return{}}};
g.wAa=function(a){var b=vAa();b&&(a=JSON.stringify(a),b.set("yt-player-lv",a))};
g.qH=function(a){return g.pH()[a]||0};
g.rH=function(a,b){var c=g.pH();b!==c[a]&&(0!==b?c[a]=b:delete c[a],g.wAa(c))};
g.sH=function(a){return g.z(function(b){return b.return(g.rw(xAa(),a))})};
vH=function(a,b,c,d,e,f,h,l,m){var n,p,q,u,w,y;return g.z(function(A){switch(A.j){case 1:return n=g.qH(a),4===n?A.return(4):g.x(A,g.Aw(),2);case 2:p=A.u;if(!p)throw g.Zv("wiac");if(!m||void 0===l){A.Ma(3);break}return g.x(A,yAa(m,l),4);case 4:l=A.u;case 3:return q=c.lastModified||"0",g.x(A,g.sH(p),5);case 5:return u=A.u,g.pa(A,6),tH++,g.x(A,g.iw(u,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",Zb:!0},function(B){if(void 0!==h&&void 0!==l){var D=""+a+"|"+b.id+"|"+q+"|"+String(h).padStart(10,
"0");D=g.jw(B.objectStore("media"),l,D)}else D=g.aw.resolve(void 0);var G=zAa(a,b.isVideo()),H=zAa(a,!b.isVideo()),L={fmts:AAa(d),format:c||{}};G=g.jw(B.objectStore("index"),L,G);var N=-1===d.downloadedEndTime;L=N?B.objectStore("index").get(H):g.aw.resolve(void 0);var K={fmts:"music",format:{}};B=N&&e&&!b.isVideo()?g.jw(B.objectStore("index"),K,H):g.aw.resolve(void 0);return f?g.aw.all([B,L,D,G]).then(function(P){P=g.r(P);P.next();P=P.next().value;tH--;var R=g.qH(a);if(4!==R&&N&&e||void 0!==P&&g.uH(P.fmts))R=
1,g.rH(a,R);return R}):g.aw.all([L,
D,G]).then(function(P){P=g.r(P).next().value;tH--;var R=g.qH(a);4!==R&&N&&void 0!==P&&g.uH(P.fmts)&&(R=1,g.rH(a,R));return R})}),8);
case 8:return A.return(A.u);case 6:w=g.ua(A);tH--;y=g.qH(a);if(4===y)return A.return(y);g.rH(a,4);throw w;}})};
g.BAa=function(a){var b,c;return g.z(function(d){if(1==d.j)return g.x(d,g.Aw(),2);if(3!=d.j){b=d.u;if(!b)throw g.Zv("ri");return g.x(d,g.sH(b),3)}c=d.u;return d.return(g.iw(c,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(e){var f=IDBKeyRange.bound(a+"|",a+"~");return e.objectStore("index").getAll(f).then(function(h){return h.map(function(l){return l?l.format:{}})})}))})};
EAa=function(a,b,c,d,e){var f,h,l;return g.z(function(m){if(1==m.j)return g.x(m,g.Aw(),2);if(3!=m.j){f=m.u;if(!f)throw g.Zv("rc");return g.x(m,g.sH(f),3)}h=m.u;l=g.iw(h,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM",Zb:CAa},function(n){var p=""+a+"|"+b+"|"+c+"|"+String(d).padStart(10,"0");return n.objectStore("media").get(p)});
return e?m.return(l.then(function(n){if(void 0===n)throw Error("No data from indexDb");return DAa(e,n)}).catch(function(n){throw new g.Pv("Error while reading chunk: "+n.name+", "+n.message);
})):m.return(l)})};
g.uH=function(a){return a?"music"===a?!0:a.includes("dlt=-1")||!a.includes("dlt="):!1};
zAa=function(a,b){return""+a+"|"+(b?"v":"a")};
AAa=function(a){var b={};return iu((b.dlt=a.downloadedEndTime.toString(),b.mket=a.maxKnownEndTime.toString(),b.avbr=a.averageByteRate.toString(),b))};
GAa=function(a){var b={},c={};a=g.r(a);for(var d=a.next();!d.done;d=a.next()){var e=d.value,f=e.split("|");e.match(g.FAa)?(d=Number(f.pop()),isNaN(d)?c[e]="?":(f=f.join("|"),(e=b[f])?(f=e[e.length-1],d===f.end+1?f.end=d:e.push({start:d,end:d})):b[f]=[{start:d,end:d}])):c[e]="?"}a=g.r(Object.keys(b));for(d=a.next();!d.done;d=a.next())d=d.value,c[d]=b[d].map(function(h){return h.start+"-"+h.end}).join(",");
return c};
HAa=function(a){if(a=a.commonConfig)this.url=a.url,this.urlQueryOverride=a.urlQueryOverride,a.ustreamerConfig&&(this.YA=uF(a.ustreamerConfig)||void 0)};
wH=function(a){g.az.call(this);this.j=null;this.B=new Ro;this.j=null;this.J=new Set;this.D=a||""};
IAa=function(a,b,c){for(c=xH(a,c);0<=c;){var d=a.levels[c];if(d.isLoaded(yH(d,b))&&(d=g.zH(d,b)))return d;c--}return g.zH(a.levels[0],b)};
KAa=function(a,b,c){c=xH(a,c);for(var d,e;0<=c;c--)if(d=a.levels[c],e=yH(d,b),!d.isLoaded(e)){d=a;var f=c,h=f+"-"+e;d.J.has(h)||(d.J.add(h),d.B.enqueue(f,{iQ:f,xQ:e}))}JAa(a)};
JAa=function(a){if(!a.j&&!a.B.isEmpty()){var b=a.B.remove();a.j=LAa(a,b)}};
LAa=function(a,b){var c=document.createElement("img");a.D&&(c.crossOrigin=a.D);c.src=a.levels[b.iQ].ye(b.xQ);c.onload=function(){var d=b.iQ,e=b.xQ;null!==a.j&&(a.j.onload=null,a.j=null);d=a.levels[d];d.loaded.add(e);JAa(a);var f=d.columns*d.rows;e*=f;d=Math.min(e+f-1,d.rB()-1);e=[e,d];a.ma("l",e[0],e[1])};
return c};
g.AH=function(a,b,c,d){this.level=a;this.C=b;this.loaded=new Set;this.level=a;this.C=b;a=c.split("#");this.width=Math.floor(Number(a[0]));this.height=Math.floor(Number(a[1]));this.frameCount=Math.floor(Number(a[2]));this.columns=Math.floor(Number(a[3]));this.rows=Math.floor(Number(a[4]));this.j=Math.floor(Number(a[5]));this.B=a[6];this.signature=a[7];this.videoLength=d};
yH=function(a,b){return Math.floor(b/(a.columns*a.rows))};
g.zH=function(a,b){b>=a.MF()&&a.Hu();var c=yH(a,b),d=a.columns*a.rows,e=b%d;b=e%a.columns;e=Math.floor(e/a.columns);var f=a.Hu()+1-d*c;if(f<a.columns){var h=f;d=1}else h=a.columns,d=f<d?Math.ceil(f/a.columns):a.rows;return{url:a.ye(c),column:b,columns:h,row:e,rows:d,Iz:a.width*h,Zs:a.height*d}};
BH=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;wH.call(this,c);this.isLive=d;this.S=!!e;this.levels=this.u(a,b);this.C=new Map;1<this.levels.length&&this.levels[0].isDefault()&&this.levels.splice(0,1)};
MAa=function(a,b,c){return(a=a.levels[b])?a.sB(c):-1};
xH=function(a,b){var c=a.C.get(b);if(c)return c;c=a.levels.length;for(var d=0;d<c;d++)if(a.levels[d].width>=b)return a.C.set(b,d),d;a.C.set(b,c-1);return c-1};
CH=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.AH.call(this,a,b,c,0);this.u=null;this.D=d?2:0};
DH=function(a,b,c,d){BH.call(this,a,0,void 0,b,!(void 0===d||!d));for(a=0;a<this.levels.length;a++)this.levels[a].VM(c)};
NAa=function(a,b,c){b={cpn:b};-1===a.indexOf("/ibw/")&&(b.ibw=c?String(c):"1369843");return{url:g.wi(a,b),type:"application/x-mpegURL",quality:"auto",itag:"93"}};
g.FH=function(a,b){g.az.call(this);this.Sa=a;this.adModule=!1;this.adaptiveFormats="";this.RL=this.Uk=this.adQueryId=this.Vt=null;this.cK={start:NaN,end:NaN};this.ariaLabel="";this.cueRanges=this.yd=null;this.PL=this.drmParams="";this.eventLabel=null;this.allowEmbed=!0;this.allowLiveDvr=this.offlineable=this.backgroundable=!1;this.Ya="";this.hL=this.Zt=!1;this.uN=null;this.Ne=this.Vg=this.Nj=this.ZF=!1;this.D=null;this.SL=this.Qi=!1;this.pe=NaN;this.Lk=!1;this.MI=0;this.CT=!1;this.Mu={};this.UI=this.cycToken=
null;this.author="";this.nz=0;this.Tl=!1;this.Iy=null;this.dK=[];this.Or=this.NL=!1;this.clientScreenNonce=this.clientPlaybackNonce=this.videoCountText=this.channelBanner=this.Id=this.xd="";this.contentCheckOk=!1;this.limitedPlaybackDurationInSeconds=this.endSeconds=this.yb=0;this.Mj=this.ya=this.u=null;this.oF="";this.Ia=!1;this.Pc=this.Sk=0;this.pK=this.pipable=this.Lt=this.dn=!1;this.paidContentOverlayDurationMs=0;this.isLiveHeadPlayable=this.isLivePlayback=this.Gb=this.isShortsEligible=this.isPrivate=
this.isListed=this.rF=this.JT=this.mutedAutoplay=this.un=!1;this.dG="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=this.isLiveDefaultBroadcast=this.XF=this.Bk=this.uf=!1;this.latencyClass="UNKNOWN";this.rN=this.qF=this.enablePreroll=this.enableServerStitchedDai=this.Fe=this.isMdxPlayback=this.isUpcoming=this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=!1;this.lc=0;this.reloadReason="";this.YF=this.tN=this.Fi=!1;this.keywords={};this.Lb="";this.cm=0;this.Vu=!1;this.liveChunkReadahead=
NaN;this.Gk=null;this.Rs=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.cM=this.paygated=!1;this.jk=[];this.ea=[];this.racyCheckOk=!1;this.FN={};this.tA=0;this.B=null;this.autonavState=1;this.SN=null;this.shortDescription="";this.Wa=this.IH=!1;this.Tu=this.Qd=this.startSeconds=0;this.Wu=this.VL=this.Lj=EH;this.Vk=this.suggestions=null;this.wt=this.Ft=void 0;this.Pk=null;this.NI=!1;this.expandedSubtitle=this.expandedTitle=this.subtitle=this.title="";this.fu=this.suggestedAction=
this.multiMarkersPlayerBarRenderer=this.ML=void 0;this.Kd=[];this.Li=[];this.hlsFormats=this.Qk="";this.wu=this.Su=this.Ni=this.Ac=this.kb=this.hm=this.vr=null;this.dj="vvt";this.Te=!1;this.CL=null;this.LT="";this.bq=NaN;this.lq=this.bv=this.qm=this.Zu=this.Yu=this.Oj=this.pm=this.uv=this.Dm=this.ev="";this.Pj=null;this.RS=!1;this.J={};this.clipStart=0;this.clipEnd=Infinity;this.heartbeatToken="";this.iN=this.dM=NaN;this.wg=this.Zl=this.jf=this.qN=this.kN=!1;this.lm=!0;this.fg={};this.captionTracks=
[];this.NG=[];this.dO=0;this.OG=[];this.TB=!1;this.Ul=new g.rB("und",new g.WD("Default","und",!0));this.bG=0;this.S=null;this.Nu=[];this.kF=!1;this.Ue=[];this.Xu=this.Lc="";this.slotPosition=-1;this.breakType=0;this.watchNextResponse=this.fG=this.playerResponse=this.bM=this.Hk=this.Wl=this.Nh=this.jF=this.mK=this.pJ=null;this.er=!1;this.Z=null;this.isInlinePlaybackNoAd=this.Xi=this.useCobaltWidevine=this.fT=this.Ls=!1;this.iF=!0;this.oe=this.Af=NaN;this.defraggedFromSubfragments=this.Sm=this.hasSubfragmentedFmp4=
!1;this.liveExperimentalContentId=NaN;this.KI=this.nK=this.Tg=!1;this.interstitials=[];this.C=this.VF=!1;this.eb="";this.allowImaMonetization=!1;this.Hc=this.fm=this.AN="";this.Qa=this.mN=!1;this.zg=0;this.zN=this.nm="";this.kG=this.gG=this.pF=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=this.maxReadAheadMediaTimeMs=NaN;this.showShareButton=!0;this.mm=!1;this.Ok=this.Mi=!0;this.errorDetail=this.userGenderAge="";this.bJ=this.qJ=this.getSharePanelCommand=this.removeFromWatchLaterCommand=
this.addToWatchLaterCommand=this.unsubscribeCommand=this.subscribeCommand=this.contextParams=this.bl=this.errorReason=this.errorCode=null;this.du=this.au="";this.Vl=!1;this.Ps=[];this.Sc=this.Rb=this.zc=this.Vh=this.df=0;this.fetchType=null;this.UN=!0;this.transitionEndpointAtEndOfStream=void 0;this.BL=this.TL=-1;this.Nk=this.Ce=!1;this.Ld=null;this.La="";this.Yi=!1;this.watchUrl=null;this.vu=[];this.visibleOnLoadKeys=[];this.KT=[];this.inlineMetricEnabled=this.Lu=!1;this.embedsRctn=this.embedsRct=
"";this.lN=NaN;this.K("web_player_ux_module_wait")&&this.Sa.Ac&&this.ea.push("ux");this.Ce=this.K("web_new_autonav_countdown");this.Nk=this.K("web_new_big_thumbnail_endscreen");OAa(this,b)};
g.IH=function(a,b,c){b&&b.cpn&&g.pz(new g.Pv("CPN provided in VideoData update",{K5a:b.cpn,uh:a.clientPlaybackNonce,t5a:c}));c?(hv(b),OAa(a,b),GH(a)&&HH(a)):(b=b||{},PAa(a,b),QAa(a,b),RAa(a,b),a.ma("dataupdated"))};
RAa=function(a,b){a.fflags=fv(a.fflags,b.fflags);var c=b.iv_invideo_url;c&&(a.Ya=oA(c));a.Zt=cv(a.Zt,b.iv_ads_only);a.hL=cv(a.hL,b.iv_allow_in_place_switch);if(c=b.cta_conversion_urls)a.ZT=c;a.isPharma=cv(a.isPharma,b.is_pharma);a.author=fv(a.author,b.author);a.xd=Xza(b.ttsurl)||a.xd;a.Tl=cv(a.Tl,b.cc_asr);a.Id=fv(a.Id,b.channel_path);a.channelBanner=fv(a.channelBanner,b.channel_banner);if(c=b.profile_picture)a.profilePicture=fv(a.profilePicture,c);a.videoCountText=fv(a.videoCountText,b.video_count_text);
a.autonavState=dv(a.autonavState,b.autonav_state,SAa);a.clientPlaybackNonce=fv(a.clientPlaybackNonce,b.cpn);a.subscribed=cv(a.subscribed,b.subscribed);a.rawViewCount=ev(a.rawViewCount,b.view_count);a.shortViewCount=fv(a.shortViewCount,b.short_view_count_text);a.publishedTimeText=fv(a.publishedTimeText||"",b.publishedTimeText);a.lengthText=fv(a.lengthText||"",b.lengthText);a.Ts=fv(a.Ts||"",b.Ts);a.yp=fv(a.yp||"",b.yp);a.title=fv(a.title,b.title);a.subtitle=fv(a.subtitle,b.subtitle);a.expandedTitle=
fv(a.expandedTitle,b.expanded_title);a.expandedSubtitle=fv(a.expandedSubtitle,b.expanded_subtitle);a.ariaLabel=fv(a.ariaLabel,b.aria_label);a.ypcPreview=fv(a.ypcPreview,b.ypc_preview);a.OL=fv(a.OL,b.ypc_origin);a.Te=cv(a.Te,b.ypc_is_premiere_trailer);a.nm=fv(a.nm,b.ypc_clickwrap_message);a.paygated=cv(a.paygated,b.paygated);a.RS=cv(a.RS,b.requires_purchase);a.showShareButton=!cv(!a.showShareButton,b.ss);a.Mi=cv(a.Mi,b.showwatchlater);a.Ok=cv(a.Ok,b.shownotifybutton);a.mm=cv(a.mm,b.copy_share);if(c=
b.el)a.eventLabel=c;if(c=b.keywords)a.keywords=TAa(c.split(","));if(c=b.rvs)a.suggestions=ku(c).map(function(d){return d.playlist||d.list||d.api?new g.RG(a.Sa,d):new g.SG(a.Sa,d)}),a.K("web_player_decouple_autonav")||(a.Vk=a.suggestions[0]);
a.contentCheckOk=cv(a.contentCheckOk,b.cco);a.racyCheckOk=cv(a.racyCheckOk,b.rco);a.isLivingRoomDeeplink=cv(a.isLivingRoomDeeplink,b.is_living_room_deeplink);a.oauthToken=fv(a.oauthToken,b.oauth_token);a.Lb=fv(a.Lb,b.kpt);a.visitorData=fv(a.visitorData,b.visitor_data);if(c=b.session_data)a.sessionData=hu(c,"&");a.ir=fv(a.ir,b.endscreen_ad_tracking_data);a.HT=cv(a.HT,b.wait_for_vast_info_cards_xml);a.LI=cv(a.LI,b.suppress_creator_endscreen);a.sN=cv(a.sN,b.is_trueview_action);a.FT=fv(a.FT,b.tracking_list);
a.au=fv(a.au,b.clip);a.du=fv(a.du,b.clipt);UAa(a,b)};
OAa=function(a,b){b=b||{};var c=b.errordetail;null!=c&&(a.errorDetail=c);var d=b.errorcode;null!=d?a.errorCode=d:"fail"==b.status&&(a.errorCode="150");var e=b.reason;null!=e&&(a.errorReason=e);var f=b.subreason;null!=f&&(a.bl=f);a.clientPlaybackNonce||(a.clientPlaybackNonce=b.cpn||g.vz(16));a.Gb=cv(a.Sa.Gb,b.livemonitor);PAa(a,b);var h=b.raw_player_response;if(h)a.fG=h;else{var l=b.player_response;l&&(h=JSON.parse(l))}h&&(a.playerResponse=h);if(a.playerResponse){var m=a.playerResponse.annotations;
if(m)for(var n=g.r(m),p=n.next();!p.done;p=n.next()){var q=p.value.playerAnnotationsUrlsRenderer;if(q){q.adsOnly&&(a.Zt=!0);q.allowInPlaceSwitch&&(a.hL=!0);var u=q.loadPolicy;u&&(a.annotationsLoadPolicy=VAa[u]);var w=q.invideoUrl;w&&(a.Ya=oA(w));a.ZF=!0;break}}var y=a.playerResponse.attestation;y&&Wza(a,y);var A=a.playerResponse.cotn;A&&(a.cotn=A);var B=a.playerResponse.heartbeatParams;if(B){var D=B.heartbeatToken;D&&(a.drmSessionId=B.drmSessionId||"",a.heartbeatToken=D,a.dM=Number(B.intervalMilliseconds),
a.iN=Number(B.maxRetries),a.kN=!!B.softFailOnError,a.qN=!!B.useInnertubeHeartbeatsForDrm,a.Nj=!0);a.heartbeatServerData=B.heartbeatServerData;a.K("heartbeat_iff_heartbeat_params_filled")&&(a.Nj=!0);var G;a.Lk=!(null==(G=B.heartbeatAttestationConfig)||!G.requiresAttestation)}var H=a.playerResponse.messages;H&&bAa(a,H);var L=a.playerResponse.multicamera;if(L){var N=L.playerLegacyMulticameraRenderer;if(N){var K=N.metadataList;K&&(a.zN=K,a.Ue=ku(K))}}var P=a.playerResponse.overlay;if(P){var R=P.playerControlsOverlayRenderer;
if(R){var X=R.controlBgHtml;null!=X?(a.eb=X,a.C=!0):(a.eb="",a.C=!1);if(R.mutedAutoplay){var Q=g.Zu(R.mutedAutoplay,WAa);if(Q&&Q.endScreen){var oa=g.Zu(Q.endScreen,XAa);oa&&oa.text&&(a.AN=g.xA(oa.text))}}else a.mutedAutoplay=!1}}if(g.KF(a.Sa)&&a.Sa.K("embeds_web_enable_epm_dni_parity_fix")){var sa=a.V(),Ba;void 0!==(null==P?void 0:null==(Ba=P.playerControlsOverlayRenderer)?void 0:Ba.controlBgHtml)?sa.ea="EMBEDDED_PLAYER_MODE_PFP":"EMBEDDED_PLAYER_MODE_PFP"===sa.ea&&(sa.ea="EMBEDDED_PLAYER_MODE_DEFAULT")}var ya=
a.playerResponse.playabilityStatus;if(ya){var va=ya.backgroundability;va&&va.backgroundabilityRenderer.backgroundable&&(a.backgroundable=!0);var Ja,Ka;if(null==(Ja=ya.offlineability)?0:null==(Ka=Ja.offlineabilityRenderer)?0:Ka.offlineable)a.offlineable=!0;var qa=ya.contextParams;qa&&(a.contextParams=qa);var kb=ya.pictureInPicture;kb&&kb.pictureInPictureRenderer.playableInPip&&(a.pipable=!0);ya.playableInEmbed&&(a.allowEmbed=!0);var Mb=ya.ypcClickwrap;if(Mb){var Ta=Mb.playerLegacyDesktopYpcClickwrapRenderer,
fb=Mb.ypcRentalActivationRenderer;if(Ta)a.nm=Ta.durationMessage||"",a.Ne=!0;else if(fb){var Yb=fb.durationMessage;a.nm=Yb?g.xA(Yb):"";a.Ne=!0}}var Ua=ya.errorScreen;if(Ua){if(Ua.playerLegacyDesktopYpcTrailerRenderer){var $a=Ua.playerLegacyDesktopYpcTrailerRenderer;a.lq=$a.trailerVideoId||"";var ub=Ua.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var dc=ub&&ub.ypcTrailerRenderer}else if(Ua.playerLegacyDesktopYpcOfferRenderer)$a=Ua.playerLegacyDesktopYpcOfferRenderer;else if(Ua.ypcTrailerRenderer){dc=
Ua.ypcTrailerRenderer;var Qb=dc.fullVideoMessage;a.pm=Qb?g.xA(Qb):"";var Nc,Zb;a.lq=(null==(Nc=g.Zu(dc,YAa))?void 0:null==(Zb=Nc.videoDetails)?void 0:Zb.videoId)||""}$a&&(a.qm=$a.itemTitle||"",$a.itemUrl&&(a.bv=$a.itemUrl),$a.itemBuyUrl&&(a.Yu=$a.itemBuyUrl),a.Zu=$a.itemThumbnail||"",a.uv=$a.offerHeadline||"",a.Dm=$a.offerDescription||"",a.Oj=$a.offerId||"",a.ev=$a.offerButtonText||"",a.CL=$a.offerButtonFormattedText||null,a.bq=$a.overlayDurationMsec||NaN,a.pm=$a.fullVideoMessage||"",a.Vg=!0);if(dc){var Zc=
g.Zu(dc,YAa);if(Zc)a.Pj={raw_player_response:Zc};else{var yd=g.Zu(dc,ZAa);a.Pj=yd?ju(yd):null}a.Vg=!0}}}var pb=a.playerResponse.playbackTracking;if(pb){var ec=b,qb=MG(pb.googleRemarketingUrl);qb&&(a.googleRemarketingUrl=qb);var Tb=MG(pb.youtubeRemarketingUrl);Tb&&(a.youtubeRemarketingUrl=Tb);var Nb=MG(pb.ptrackingUrl);if(Nb){var Ub=NG(Nb),Nd=Ub.oid;Nd&&(a.DN=Nd);var ta=Ub.pltype;ta&&(a.EN=ta);var vb=Ub.ptchn;vb&&(a.CN=vb);var fd=Ub.ptk;fd&&(a.Ku=encodeURIComponent(fd));var Ec=Ub.m;Ec&&(a.gr=Ec)}var sb=
MG(pb.ppvRemarketingUrl);sb&&(a.ppvRemarketingUrl=sb);var Fc=MG(pb.qoeUrl);if(Fc){for(var zd=g.lu(Fc),ne=g.r(Object.keys(zd)),gd=ne.next();!gd.done;gd=ne.next()){var Hd=gd.value,ie=zd[Hd];zd[Hd]=Array.isArray(ie)?ie.join(","):ie}a.UL=zd;var Rc=zd.cat;Rc&&(a.fm=Rc);var od=zd.live;od&&(a.dG=od);var Sa=zd.drm_product;Sa&&(a.PL=Sa)}var Ia=MG(pb.remarketingUrl);if(Ia){a.remarketingUrl=Ia;var Od=NG(Ia);Od.foc_id&&(a.J.focEnabled=!0);var oe=Od.data;oe&&(a.J.rmktEnabled=!0,oe.engaged&&(a.J.engaged="1"));
a.J.baseUrl=Dea(Ia)+hi(g.oi(5,Ia))}var Ke=MG(pb.videostatsPlaybackUrl);if(Ke){var Gc=NG(Ke);a.Hd=Gc;var cf=Gc.adformat;if(cf&&(ec.adformat=cf,!a.K("process_video_data_ad_format_in_player_tracking_killswitch"))){var Sc=a.V(),pd=Qza(cf,a.Xu,Sc.u,Sc.C);pd&&(a.adFormat=pd)}var ug=Gc.aqi;ug&&(ec.ad_query_id=ug);var Ng=Gc.autoplay;Ng&&(a.un="1"==Ng,a.Lt="1"==Ng);var wf=Gc.autonav;wf&&(a.dn="1"==wf);var ic=Gc.delay;ic&&(a.yb=Wg(ic));var pe=Gc.ei;pe&&(a.eventId=pe);"adunit"===Gc.el&&(a.un=!0);var Le=Gc.feature;
Le&&(a.gm=Le);var Oc=Gc.list;Oc&&(a.playlistId=Oc);var je=Gc.of;je&&(a.iG=je);var xf=Gc.osid;xf&&(a.osid=xf);var Og=Gc.referrer;Og&&(a.referrer=Og);var yf=Gc.sdetail;yf&&(a.Ru=yf);var zf=Gc.sourceid;zf&&(a.nya=zf);var Hc=Gc.ssrt;Hc&&(a.jm="1"==Hc);var hd=Gc.subscribed;hd&&(a.subscribed="1"==hd,a.J.subscribed=hd);var Ad=Gc.uga;Ad&&(a.userGenderAge=Ad);var Af=Gc.upt;Af&&(a.Uu=Af);var oc=Gc.vm;oc&&(a.videoMetadata=oc)}var Pd=MG(pb.videostatsWatchtimeUrl);if(Pd){var $c=NG(Pd).ald;$c&&(a.Ut=$c)}if(pb.promotedPlaybackTracking){var yc=
pb.promotedPlaybackTracking;yc.startUrls&&(a.Ou=yc.startUrls);yc.firstQuartileUrls&&(a.nG=yc.firstQuartileUrls);yc.secondQuartileUrls&&(a.oG=yc.secondQuartileUrls);yc.thirdQuartileUrls&&(a.pG=yc.thirdQuartileUrls);yc.completeUrls&&(a.mG=yc.completeUrls);yc.engagedViewUrls&&(1<yc.engagedViewUrls.length&&g.pz(new g.Pv("There are more than one engaged_view_urls.")),a.xg=yc.engagedViewUrls[0])}}var pc=a.playerResponse.playerCueRanges;pc&&0<pc.length&&(a.cueRanges=pc);a:{var qe=a.playerResponse.adPlacements;
if(qe)for(var Me=g.r(qe),Bf=Me.next();!Bf.done;Bf=Me.next()){var ag=void 0,lh=void 0,ji=null==(ag=Bf.value.adPlacementRenderer)?void 0:null==(lh=ag.renderer)?void 0:lh.videoAdTrackingRenderer;if(ji){var Ne=ji;break a}}Ne=null}var df=Ne;pb&&pb.promotedPlaybackTracking&&df&&g.pz(new g.Pv("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));df&&(a.cM=!0);var ki=a.playerResponse.playerAds;if(ki)for(var ef=b,Oe=g.r(ki),Pg=Oe.next();!Pg.done;Pg=Oe.next()){var cj=Pg.value;if(cj){var mh=
cj.playerLegacyDesktopWatchAdsRenderer;if(mh){var bg=mh.playerAdParams;if(bg){"1"==bg.autoplay&&(a.un=!0,a.Lt=!0);a.Uk=bg.encodedAdSafetyReason||null;void 0!==bg.showContentThumbnail&&(a.lm=!!bg.showContentThumbnail);ef.enabled_engage_types=bg.enabledEngageTypes;break}}}}var Tc=a.playerResponse.playerConfig;if(Tc){var Cf=Tc.manifestlessWindowedLiveConfig;if(Cf){var vg=Number(Cf.minDvrSequence),cg=Number(Cf.maxDvrSequence),dg=Number(Cf.minDvrMediaTimeMs),nh=Number(Cf.maxDvrMediaTimeMs),Kb=Number(Cf.startWalltimeMs);
vg&&(a.df=vg);dg&&(a.Rb=dg/1E3);cg&&(a.Vh=cg);nh&&(a.zc=nh/1E3);Kb&&(a.Sc=Kb/1E3)}var Kh=Tc.daiConfig;if(Kh){if(Kh.enableDai){a.Fe=!0;var dj=Kh.enableServerStitchedDai;dj&&(a.enableServerStitchedDai=dj);var Wk=Kh.enablePreroll;Wk&&(a.enablePreroll=Wk)}var ej;if("DAI_TYPE_SS_DISABLED"===Kh.daiType||(null==(ej=Kh.debugInfo)?0:ej.isDisabledUnpluggedChannel))a.qF=!0}var ff=Tc.audioConfig;if(ff){var li=ff.loudnessDb;null!=li&&(a.pe=li);ff.audioMuted&&(a.Qi=!0);ff.muteOnStart&&(a.SL=!0)}var Xk=Tc.playbackEndConfig;
if(Xk){var Yk=Xk.endSeconds;Yk&&a.mutedAutoplay&&(a.endSeconds=Yk)}var Yd=Tc.fairPlayConfig;if(Yd){var Qg=Yd.certificate;Qg&&(a.ya=uF(Qg));var fj=Number(Yd.keyRotationPeriodMs);0<fj&&(a.lr=fj);var mi=Number(Yd.keyPrefetchMarginMs);0<mi&&(a.jr=mi)}var ni=Tc.playbackStartConfig;if(ni){a.kG=Number(ni.startSeconds);var sp=ni.liveUtcStartSeconds,tp=!!a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds;sp&&!tp&&(a.liveUtcStartSeconds=Number(sp));var Ab=ni.startPosition;if(Ab){var cC=Ab.utcTimeMillis;cC&&!tp&&
(a.liveUtcStartSeconds=.001*Number(cC));var dC=Ab.streamTimeMillis;dC&&(a.Tu=.001*Number(dC))}a.progressBarStartPosition=ni.progressBarStartPosition;a.progressBarEndPosition=ni.progressBarEndPosition}else{var zw=Tc.skippableSegmentsConfig;if(zw){var Ob=zw.introSkipDurationMs;Ob&&(a.pF=Number(Ob)/1E3);var bsa=zw.outroSkipDurationMs;bsa&&(a.gG=Number(bsa)/1E3)}}var V2=Tc.skippableIntroConfig;if(V2){var csa=Number(V2.startMs),dsa=Number(V2.endMs);isNaN(csa)||isNaN(dsa)||(a.Af=csa,a.oe=dsa)}var esa=Tc.streamSelectionConfig;
esa&&(a.Pc=Number(esa.maxBitrate));var fsa=Tc.vrConfig;fsa&&(a.Ls="1"==fsa.partialSpherical);var jD=Tc.webDrmConfig;if(jD){jD.skipWidevine&&(a.fT=!0);var gsa=jD.widevineServiceCert;gsa&&(a.Mj=uF(gsa));jD.useCobaltWidevine&&(a.useCobaltWidevine=!0);jD.startWithNoQualityConstraint&&(a.Xi=!0)}var hsa=Tc.mediaCommonConfig;if(hsa){var NM=hsa.dynamicReadaheadConfig;NM&&(a.maxReadAheadMediaTimeMs=NM.maxReadAheadMediaTimeMs||NaN,a.minReadAheadMediaTimeMs=NM.minReadAheadMediaTimeMs||NaN,a.readAheadGrowthRateMs=
NM.readAheadGrowthRateMs||NaN)}var isa=Tc.inlinePlaybackConfig;isa&&(a.iF=!!isa.showAudioControls);var W2=Tc.embeddedPlayerConfig;if(W2&&W2.embeddedPlayerMode&&a.K("embeds_web_enable_player_response_embeds_mode")){var jsa=a.V(),ksa=W2.embeddedPlayerMode;jsa.ea=ksa;jsa.B="EMBEDDED_PLAYER_MODE_PFL"===ksa}}var wm=a.playerResponse.streamingData;if(wm){var X2=wm.adaptiveFormats;if(X2){var lsa=wm.streamingUrlTemplate;if(a.K("enable_streaming_url_template")&&lsa)for(var msa=g.r(X2),Qh=msa.next();!Qh.done;Qh=
msa.next()){var OM=Qh.value;!OM.url&&OM.distinctParams&&(OM.url=lsa+"&"+OM.distinctParams)}var nsa=[],osa=g.r(X2);for(Qh=osa.next();!Qh.done;Qh=osa.next()){var PM=Qh.value;nsa.push(gAa(PM));var psa=PM.loudnessDb;PM.itag&&null!=psa&&(a.Mu[PM.itag.toString()]=psa)}a.adaptiveFormats=nsa.join(",")}var Y2=wm.formats;if(Y2){var kD=[],qsa=g.r(Y2);for(Qh=qsa.next();!Qh.done;Qh=qsa.next()){var Z2=Qh.value;kD.push(Z2.itag+"/"+Z2.width+"x"+Z2.height)}a.oF=kD.join(",");kD=[];var rsa=g.r(Y2);for(Qh=rsa.next();!Qh.done;Qh=
rsa.next()){var dx=Qh.value,lD={itag:dx.itag,type:dx.mimeType,quality:dx.quality},ssa=dx.url;ssa&&(lD.url=ssa);var tsa=g.Zu(dx,dAa)||dx.signatureCipher;if(tsa){var $2=ju(tsa);lD.sp=$2.sp;lD.s=$2.s;lD.url=$2.url}kD.push(g.ui(lD))}a.Qk=kD.join(",")}var a3=wm.hlsFormats;if(a3){var usa=Tc||null,QM={};if(usa){var b3=usa.audioPairingConfig;if(b3&&b3.pairs)for(var vsa=g.r(b3.pairs),c3=vsa.next();!c3.done;c3=vsa.next()){var wsa=c3.value,d3=wsa.videoItag;QM[d3]||(QM[d3]=[]);QM[d3].push(wsa.audioItag)}}for(var xsa=
{},ysa=g.r(a3),ct=ysa.next();!ct.done;ct=ysa.next()){var zsa=ct.value;xsa[zsa.itag]=zsa.bitrate}var Asa=[],Bsa=g.r(a3);for(ct=Bsa.next();!ct.done;ct=Bsa.next()){var qi=ct.value,xm={itag:qi.itag,type:qi.mimeType,url:qi.url,bitrate:qi.bitrate,width:qi.width,height:qi.height,fps:qi.fps},RM=qi.audioTrack;if(RM){var Csa=RM.displayName;Csa&&(xm.name=Csa,xm.audio_track_id=RM.id,RM.audioIsDefault&&(xm.is_default="1"))}if(qi.drmFamilies){for(var Dsa=[],Esa=g.r(qi.drmFamilies),e3=Esa.next();!e3.done;e3=Esa.next())Dsa.push(OG[e3.value]);
xm.drm_families=Dsa.join(",")}var SM=QM[qi.itag];if(SM&&SM.length){xm.audio_itag=SM.join(",");var Fsa=xsa[SM[0]];Fsa&&(xm.bitrate+=Fsa)}var Gsa=Vza(qi);Gsa&&(xm.eotf=Gsa);qi.audioChannels&&(xm.audio_channels=qi.audioChannels);Asa.push(g.ui(xm))}a.hlsFormats=Asa.join(",")}var f3=wm.licenseInfos;if(f3&&0<f3.length){for(var Hsa={},Isa=g.r(f3),g3=Isa.next();!g3.done;g3=Isa.next()){var Jsa=g3.value,Ksa=Jsa.drmFamily,Lsa=Jsa.url;Ksa&&Lsa&&(Hsa[OG[Ksa]]=Lsa)}a.yd=Hsa}var Msa=wm.drmParams;Msa&&(a.drmParams=
Msa);var Nsa=wm.dashManifestUrl;Nsa&&(a.ob=g.wi(Nsa,{cpn:a.clientPlaybackNonce}));var Osa=wm.hlsManifestUrl;Osa&&(a.hlsvp=Osa);var Psa=wm.probeUrl;Psa&&(a.probeUrl=oA(g.wi(Psa,{cpn:a.clientPlaybackNonce})))}var Qsa=a.playerResponse.trackingParams;Qsa&&(a.Ba=Qsa);var Rd=a.playerResponse.videoDetails;if(Rd){var ym=b,h3=Rd.videoId;h3&&(a.videoId=h3,ym.video_id||(ym.video_id=h3));var Rsa=Rd.channelId;Rsa&&(a.J.uid=Rsa.substr(2));var i3=Rd.title;i3&&(a.title=i3,ym.title||(ym.title=i3));var j3=Rd.lengthSeconds;
j3&&(a.lengthSeconds=Number(j3),ym.length_seconds||(ym.length_seconds=j3));var Ssa=Rd.keywords;Ssa&&(a.keywords=TAa(Ssa));var k3=Rd.channelId;k3&&(a.Kk=k3,ym.ucid||(ym.ucid=k3));var Tsa=Rd.viewCount;Tsa&&(a.rawViewCount=Number(Tsa));var l3=Rd.author;l3&&(a.author=l3,ym.author||(ym.author=l3));var Usa=Rd.shortDescription;Usa&&(a.shortDescription=Usa);var Vsa=Rd.isCrawlable;Vsa&&(a.isListed=Vsa);var Wsa=Rd.musicVideoType;Wsa&&(a.musicVideoType=Wsa);var m3=Rd.isLive;null!=m3&&(a.isLivePlayback=m3);if(m3||
Rd.isUpcoming)a.isPremiere=!Rd.isLiveContent;var Xsa=Rd.thumbnail;Xsa&&(a.fg=LG(Xsa));var Ysa=Tc||null,n3=b;Rd.isLiveDefaultBroadcast&&(a.isLiveDefaultBroadcast=!0);Rd.isUpcoming&&(a.isUpcoming=!0);if(Rd.isPostLiveDvr)a.uf=!0;else{var o3=!1;if(a.Gb)a.allowLiveDvr=JH(a,!0),a.isLivePlayback=!0;else if(Rd.isLive){n3.livestream="1";a.allowLiveDvr=JH(a,!!Rd.isLiveDvrEnabled);a.qa=27;Rd.isLowLatencyLiveStream&&(a.isLowLatencyLiveStream=!0);var Zsa=Rd.latencyClass;Zsa&&(a.latencyClass=$Aa[Zsa]||"UNKNOWN");
var $sa=Rd.liveChunkReadahead;$sa&&(a.liveChunkReadahead=$sa);var ex=Ysa&&Ysa.livePlayerConfig;if(ex){ex.hasSubfragmentedFmp4&&(a.hasSubfragmentedFmp4=!0);ex.hasSubfragmentedWebm&&(a.Sm=!0);ex.defraggedFromSubfragments&&(a.defraggedFromSubfragments=!0);var ata=ex.liveExperimentalContentId;ata&&(a.liveExperimentalContentId=Number(ata));var bta=ex.isLiveHeadPlayable;a.K("html5_live_head_playable")&&null!=bta&&(a.isLiveHeadPlayable=bta)}o3=!0}else Rd.isUpcoming&&(o3=!0);o3&&(a.isLivePlayback=!0,n3.adformat&&
"8"!==n3.adformat.split("_")[1]||a.ea.push("heartbeat"),a.K("heartbeat_iff_heartbeat_params_filled")||(a.Nj=!0))}var cta=Rd.isPrivate;void 0!==cta&&(a.isPrivate=cv(a.isPrivate,cta))}if(ya){var dta=Rd||null,eta=!1,fx=ya.errorScreen;eta=fx&&(fx.playerLegacyDesktopYpcOfferRenderer||fx.playerLegacyDesktopYpcTrailerRenderer||fx.ypcTrailerRenderer)?!0:dta&&dta.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(ya.status);if(!eta){a.errorCode="150";var TM=fx&&fx.playerErrorMessageRenderer;
if(TM){a.playerErrorMessageRenderer=TM;var fta=TM.reason;fta&&(a.errorReason=g.xA(fta));var q3=TM.subreason;q3&&(a.bl=g.xA(q3),a.rr=q3)}else a.errorReason=ya.reason||null;var r3=ya.status;if("LOGIN_REQUIRED"===r3)a.errorDetail="1";else if("CONTENT_CHECK_REQUIRED"===r3)a.errorDetail="2";else if("AGE_CHECK_REQUIRED"===r3){var gta=ya.errorScreen,hta=gta&&gta.playerKavRenderer;a.errorDetail=hta&&hta.kavUrl?"4":"3"}else a.errorDetail=ya.isBlockedInRestrictedMode?"5":"0"}}var ita=a.playerResponse.interstitialPods;
ita&&aAa(a,ita);a.Ya&&a.eventId&&(a.Ya=nu(a.Ya,{ei:a.eventId}));var s3=a.playerResponse.captions;s3&&s3.playerCaptionsTracklistRenderer&&Yza(a,s3.playerCaptionsTracklistRenderer);a.clipConfig=a.playerResponse.clipConfig;a.clipConfig&&null!=a.clipConfig.startTimeMs&&(a.kG=.001*Number(a.clipConfig.startTimeMs));a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&cAa(a,a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting)}QAa(a,
b);b.queue_info&&(a.queueInfo=b.queue_info);var jta=b.hlsdvr;null!=jta&&(a.allowLiveDvr=JH(a,"1"==jta));a.adQueryId=b.ad_query_id||null;a.Uk||(a.Uk=b.encoded_ad_safety_reason||null);a.RL=b.agcid||null;a.pJ=b.ad_id||null;a.mK=b.ad_sys||null;a.jF=b.encoded_ad_playback_context||null;a.Qi=cv(a.Qi,b.infringe||b.muted);a.authKey=b.authkey;a.authUser=b.authuser;a.mutedAutoplay=cv(a.mutedAutoplay,b&&b.playmuted)&&a.K("embeds_enable_muted_autoplay");a.endSeconds=ev(a.endSeconds,a.gG||b.end||b.endSeconds);
a.limitedPlaybackDurationInSeconds=ev(a.limitedPlaybackDurationInSeconds,b.limited_playback_duration_in_seconds);a.Ba=fv(a.Ba,b.itct);a.rF=cv(a.rF,b.noiba);a.XF=cv(a.XF,b.is_live_destination);a.isLivePlayback=cv(a.isLivePlayback,b.live_playback);a.enableServerStitchedDai=a.enableServerStitchedDai&&a.isLivePlayback;b.isUpcoming&&(a.isUpcoming=cv(a.isUpcoming,b.isUpcoming));a.uf=cv(a.uf,b.post_live_playback);a.isMdxPlayback=cv(a.isMdxPlayback,b.mdx);var UM=b.mdx_control_mode;UM&&(a.mdxControlMode="number"===
typeof UM?UM:Wg(UM));a.isInlinePlaybackNoAd=cv(a.isInlinePlaybackNoAd,b.is_inline_playback_no_ad);a.lc=ev(a.lc,b.reload_count);a.reloadReason=fv(a.reloadReason,b.reload_reason);a.lm=cv(a.lm,b.show_content_thumbnail);a.YF=cv(a.YF,b.utpsa);a.NI=cv(a.NI,b.third_party_remapped_ad);a.cycToken=b.cyc||null;a.UI=b.tkn||null;var kta=KG(b);0<Object.keys(kta).length&&(a.fg=kta);a.Aa=fv(a.Aa,b.vvt);a.mdxEnvironment=fv(a.mdxEnvironment,b.mdx_environment);b.source_container_playlist_id&&(a.sourceContainerPlaylistId=
b.source_container_playlist_id);a.jU=b.osig;a.eventId||(a.eventId=b.eventid);a.osid||(a.osid=b.osid);a.playlistId=fv(a.playlistId,b.list);b.index&&(a.playlistIndex=void 0===a.playlistIndex?ev(0,b.index):ev(a.playlistIndex,b.index));a.ZP=b.pyv_view_beacon_url;a.wQ=b.pyv_quartile25_beacon_url;a.IQ=b.pyv_quartile50_beacon_url;a.YR=b.pyv_quartile75_beacon_url;a.jQ=b.pyv_quartile100_beacon_url;var lta=b.remarketing_url;lta&&(a.remarketingUrl=lta);var mta=b.ppv_remarketing_url;mta&&(a.ppvRemarketingUrl=
mta);var nta=b.session_data;!a.pS&&nta&&(a.pS=hu(nta,"&").feature);a.isFling=1==ev(a.isFling?1:0,b.is_fling);a.vnd=ev(a.vnd,b.vnd);a.forceAdsUrl=fv(a.forceAdsUrl,b.force_ads_url);a.Fh=fv(a.Fh,b.ctrl);a.ai=fv(a.ai,b.ytr);a.Sn=b.ytrcc;a.zS=b.ytrexp;a.qG=b.ytrext;a.Lc=fv(a.Lc,b.adformat);a.Xu=fv(a.Xu,b.attrib);a.slotPosition=ev(a.slotPosition,b.slot_pos);a.breakType=b.break_type;a.jm=cv(a.jm,b.ssrt);a.videoId=hv(b)||a.videoId;a.I=fv(a.I,b.vss_credentials_token);a.dj=fv(a.dj,b.vss_credentials_token_type);
a.Tg=cv(a.Tg,b.audio_only);a.nK=cv(a.nK,b.aac_high);a.KI=cv(a.KI,b.prefer_low_quality_audio);a.fm=fv(a.fm,b.qoe_cat);a.Vl=cv(a.Vl,b.download_media);a.Qa=cv(a.Qa,b.prefer_gapless);a:{var t3=a.playerResponse;if(t3&&t3.adPlacements)for(var ota=g.r(t3.adPlacements),u3=ota.next();!u3.done;u3=ota.next()){var VM=u3.value.adPlacementRenderer;if(null!=VM&&"AD_PLACEMENT_KIND_START"==(VM.config&&VM.config.adPlacementConfig&&VM.config.adPlacementConfig.kind)){var pta=!0;break a}}pta=!1}pta&&(a.adModule=!0,a.ea.push("ad"));
var qta=b.adaptive_fmts;qta&&(a.adaptiveFormats=qta);var rta=b.allow_embed;rta&&(a.allowEmbed="1"==rta);var sta=b.backgroundable;sta&&(a.backgroundable="1"==sta);var tta=b.autonav;tta&&(a.dn="1"==tta);var v3=b.autoplay;v3&&(a.Lt="1"==v3,a.un="1"==v3);var uta=b.iv_load_policy;uta&&(a.annotationsLoadPolicy=dv(a.annotationsLoadPolicy,uta,WF));var vta=b.cc_lang_pref;vta&&(a.captionsLanguagePreference=fv(vta,a.captionsLanguagePreference));var wta=b.cc_load_policy;wta&&(a.Iy=dv(a.Iy,wta,WF));var xta;a.deviceCaptionsOn=
null!=(xta=b.device_captions_on)?xta:void 0;var yta;a.aM=null!=(yta=b.device_captions_lang_pref)?yta:"";var zta;a.dK=null!=(zta=b.viewer_selected_caption_langs)?zta:[];var Ata=b.cached_load;Ata&&(a.Or=cv(a.Or,Ata));"0"==b.dash&&(a.NL=!0);var Bta=b.dashmpd;Bta&&(a.ob=g.wi(Bta,{cpn:a.clientPlaybackNonce}));var Cta=b.delay;Cta&&(a.yb=Wg(Cta));var Dta=a.gG||b.end;void 0!=Dta&&(a.clipEnd=ev(a.clipEnd,Dta));var Eta=b.fmt_list;Eta&&(a.oF=Eta);b.heartbeat_preroll&&a.ea.push("heartbeat");a.Sk=-Math.floor(10*
Math.random());a.Rs=-Math.floor(40*Math.random());var Fta=b.is_listed;Fta&&(a.isListed=cv(a.isListed,Fta));var Gta=b.is_private;Gta&&(a.isPrivate=cv(a.isPrivate,Gta));var Hta=b.is_dni;Hta&&(a.C=cv(a.C,Hta));var Ita=b.dni_color;Ita&&(a.eb=fv(a.eb,Ita));var Jta=b.pipable;Jta&&(a.pipable=cv(a.pipable,Jta));a.pK=a.pipable&&a.Sa.qm;a.IH=a.pK&&(!a.Sa.showMiniplayerButton||a.K("web_player_pip"));var Kta=b.paid_content_overlay_duration_ms;Kta&&(a.paidContentOverlayDurationMs=Wg(Kta));var Lta=b.paid_content_overlay_text;
Lta&&(a.paidContentOverlayText=Lta);var Mta=b.url_encoded_fmt_stream_map;Mta&&(a.Qk=Mta);var Nta=b.hls_formats;Nta&&(a.hlsFormats=Nta);var Ota=b.hlsvp;Ota&&(a.hlsvp=Ota);var WM=b.length_seconds;WM&&(a.lengthSeconds="string"===typeof WM?Wg(WM):WM);var XM=b.live_start_walltime;XM&&(a.eG="number"===typeof XM?XM:Wg(XM));var YM=b.live_manifest_duration;YM&&(a.Gk="number"===typeof YM?YM:Wg(YM));var Pta=b.player_params;Pta&&(a.playerParams=Pta);var Qta=b.partnerid;Qta&&(a.qa=ev(a.qa,Qta));var Rta=b.probe_url;
Rta&&(a.probeUrl=oA(g.wi(Rta,{cpn:a.clientPlaybackNonce})));var w3=b.pyv_billable_url;w3&&Xua(w3)&&(a.xg=w3);var x3=b.pyv_conv_url;x3&&Xua(x3)&&(a.aQ=x3);UAa(a,b);0<a.startSeconds||(a.startSeconds=ev(a.startSeconds,a.kG||a.pF||b.start||b.startSeconds),a.Qd=a.startSeconds);if(!(a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds)){var Sta=b.live_utc_start;if(null!=Sta)a.liveUtcStartSeconds=Number(Sta);else{var y3=a.startSeconds;y3&&isFinite(y3)&&1E9<y3&&(a.liveUtcStartSeconds=a.startSeconds)}}if(!(a.liveUtcStartSeconds&&
0<a.liveUtcStartSeconds)){var Tta=b.utc_start_millis;Tta&&(a.liveUtcStartSeconds=.001*Number(Tta))}var Uta=b.stream_time_start_millis;Uta&&(a.Tu=.001*Number(Uta));var Vta=a.pF||b.start;void 0==Vta||"1"==b.resume||a.isLivePlayback||(a.clipStart=ev(a.clipStart,Vta));var Wta=b.url_encoded_third_party_media;Wta&&(a.Pk=ku(Wta));var z3=b.ypc_offer_button_formatted_text;if(z3){var Xta=JSON.parse(z3);a.CL=null!=Xta?Xta:null;a.LT=z3}var Yta=b.ypc_offer_button_text;Yta&&(a.ev=Yta);var Zta=b.ypc_offer_description;
Zta&&(a.Dm=Zta);var $ta=b.ypc_offer_headline;$ta&&(a.uv=$ta);var aua=b.ypc_full_video_message;aua&&(a.pm=aua);var bua=b.ypc_offer_id;bua&&(a.Oj=bua);var cua=b.ypc_buy_url;cua&&(a.Yu=cua);var dua=b.ypc_item_thumbnail;dua&&(a.Zu=dua);var eua=b.ypc_item_title;eua&&(a.qm=eua);var fua=b.ypc_item_url;fua&&(a.bv=fua);var gua=b.ypc_vid;gua&&(a.lq=gua);b.ypc_overlay_timeout&&(a.bq=Number(b.ypc_overlay_timeout));var hua=b.ypc_trailer_player_vars;hua&&(a.Pj=ju(hua));var iua=b.ypc_original_itct;iua&&(a.vU=iua);
a.Kk=fv(a.Kk,b.ucid);b.baseUrl&&(a.J.baseUrl=b.baseUrl);b.uid&&(a.J.uid=b.uid);b.oeid&&(a.J.oeid=b.oeid);b.ieid&&(a.J.ieid=b.ieid);b.ppe&&(a.J.ppe=b.ppe);b.engaged&&(a.J.engaged=b.engaged);b.subscribed&&(a.J.subscribed=b.subscribed);a.J.focEnabled=cv(a.J.focEnabled,b.focEnabled);a.J.rmktEnabled=cv(a.J.rmktEnabled,b.rmktEnabled);a.Su=b.storyboard_spec||null;a.wu=b.live_storyboard_spec||null;a.uN=b.iv_endscreen_url||null;a.ZF=cv(a.ZF,b.iv3_module);a.Nj=cv(a.Nj,b.ypc_license_checker_module);a.Vg=cv(a.Vg,
b.ypc_module);a.Ne=cv(a.Ne,b.ypc_clickwrap_module);a.Vg&&a.ea.push("ypc");a.Ne&&a.ea.push("ypc_clickwrap");a.FN={video_id:b.video_id,eventid:b.eventid,cbrand:b.cbrand,cbr:b.cbr,cbrver:b.cbrver,c:b.c,cver:b.cver,ctheme:b.ctheme,cplayer:b.cplayer,cmodel:b.cmodel,cnetwork:b.cnetwork,cos:b.cos,cosver:b.cosver,cplatform:b.cplatform,user_age:b.user_age,user_display_image:b.user_display_image,user_display_name:b.user_display_name,user_gender:b.user_gender,csi_page_type:b.csi_page_type,csi_service_name:b.csi_service_name,
enablecsi:b.enablecsi,enabled_engage_types:b.enabled_engage_types};RAa(a,b);var jua=b.cotn;jua&&(a.cotn=jua);if(aBa(a))KH(a)&&(a.isLivePlayback&&a.ob&&(a.jf=!0),a.ya&&(a.Zl=!0));else if(bBa(a))a.jf=!0;else{var nua=cBa(a,a.adaptiveFormats);if(nua){LH(a,nua);var oua=!0}else oua=!1;oua?a.enableServerStitchedDai=a.enableServerStitchedDai&&MH(a):a.ob&&(a.jf=!0)}var B3=b.adpings;B3&&(a.Vt=B3?ju(B3):null);var pua=b.feature;pua&&(a.gm=pua);var qua=b.referrer;qua&&(a.referrer=qua);a.clientScreenNonce=fv(a.clientScreenNonce,
b.csn);a.tA=ev(a.tA,b.root_ve_type);a.cm=ev(a.cm,b.kids_age_up_mode);void 0!=b.kids_app_info&&(a.kidsAppInfo=b.kids_app_info);a.Vu=cv(a.Vu,b.upg_content_filter_mode);var rua=b.unplugged_location_info;rua&&(a.Z=rua);var sua=b.unplugged_partner_opt_out;sua&&(a.aJ=fv("",sua));a.er=cv(a.er,b.disable_watch_next);a.Yl=fv(a.Yl,b.internal_ip_override);a.VF=!!b.is_yto_interstitial;(a.interstitials.length||a.VF)&&a.ea.push("yto");var tua=b.jk;tua&&(a.jk=tua);b.DE&&(a.DE=b.DE);var uua;a.La=null!=(uua=b.csi_timer)?
uua:"";a.Yi=!!b.force_gvi;b.watchUrl&&(a.watchUrl=b.watchUrl);a.K("html5_attach_watch_endpoint_ustreamer_config")&&b.watch_endpoint&&dBa(a,b.watch_endpoint);!a.K("embeds_rct_killswitch")&&g.KF(a.Sa)&&(a.embedsRct=fv(a.embedsRct,b.rct),a.embedsRctn=fv(a.embedsRctn,b.rctn));a.Lu=a.Lu||!!b.pause_at_start};
QAa=function(a,b){var c=b.raw_watch_next_response;if(!c){var d=b.watch_next_response;d&&(c=JSON.parse(d))}if(c){a.watchNextResponse=c;var e=a.watchNextResponse.contents;if(e){var f=e.singleColumnWatchNextResults;if(f){var h=ev(0,b.autoplay_count);if(f.autoplay&&f.autoplay.autoplay&&!f.playlist){var l=f.autoplay.autoplay.sets,m={},n=new g.SG(a.V()),p=null,q;if(l){for(var u=g.r(l),w=u.next();!w.done;w=u.next()){var y=w.value.autoplayVideoRenderer;if(y&&y.compactVideoRenderer){p=y.compactVideoRenderer;
break}}if(q=l[0].autoplayVideo){var A=q.clickTrackingParams;A&&(m.itct=A);m.autonav="1";m.playnext=String(h)}}else m.feature="related-auto";var B=g.Zu(q,g.TG);if(p){n.videoId=p.videoId;var D=p.shortBylineText;D&&(n.author=g.xA(D));var G=p.title;G&&(n.title=g.xA(G))}else null!=B&&B.videoId&&(n.videoId=B.videoId);n.Dy=m;a.K("web_player_decouple_autonav")?a.suggestions=[]:a.suggestions=[n];a.Vk=n}}var H=e.twoColumnWatchNextResults}var L,N;a.gU=!!(null==(L=H)?0:null==(N=L.autoplay)?0:N.autoplay);var K=
a.watchNextResponse.playerOverlays;if(K){var P=K.playerOverlayRenderer;if(P){var R=P.autonavToggle;R&&(a.autoplaySwitchButtonRenderer=g.Zu(R,eBa),a.K("web_player_autonav_use_server_provided_state")&&NH(a)&&(a.autonavState=a.autoplaySwitchButtonRenderer.enabled?2:1));var X=P.endScreen;if(X){var Q=X.watchNextEndScreenRenderer;if(Q)var oa=Q.results}var sa=P.videoDetails;if(sa){var Ba=sa.embeddedPlayerOverlayVideoDetailsRenderer;var ya=sa.musicEmbeddedPlayerOverlayVideoDetailsRenderer;ya&&(a.mF=ya.title,
a.lF=ya.byline);var va=sa.playerOverlayVideoDetailsRenderer;va&&(va.title&&(b.title=g.xA(va.title)),va.subtitle&&(b.subtitle=g.xA(va.subtitle)))}var Ja=P.actions;if(Ja)for(var Ka=g.r(Ja),qa=Ka.next();!qa.done;qa=Ka.next()){var kb=qa.value;kb.likeButtonRenderer&&(a.likeButtonRenderer=kb.likeButtonRenderer)}var Mb,Ta=null==(Mb=g.Zu(P.suggestedActionsRenderer,fBa))?void 0:Mb.suggestedActions;if(Ta)for(var fb=g.r(Ta),Yb=fb.next();!Yb.done;Yb=fb.next()){var Ua=g.Zu(Yb.value,gBa),$a=void 0;g.Zu(null==($a=
Ua)?void 0:$a.trigger,hBa)&&(a.suggestedAction=Ua)}var ub=g.Zu(P.decoratedPlayerBarRenderer,iBa);if(ub){a.multiMarkersPlayerBarRenderer=g.Zu(ub.playerBar,jBa);var dc;a.ML=null==(dc=g.Zu(ub.playerBar,kBa))?void 0:dc.chapters;a.pU=g.Zu(ub.playerBarActionButton,OH)}g.QF(a.Sa)&&(a.Mi=!!P.addToMenu);lBa(a,P.shareButton);var Qb=P.productsInVideoOverlayRenderer;Qb&&(a.shoppingOverlayRenderer=g.Zu(Qb,mBa));var Nc=P.autoplay;if(Nc)var Zb=Nc.playerOverlayAutoplayRenderer;a.progressBarStartPosition=P.startPosition;
a.progressBarEndPosition=P.endPosition;var Zc=P.gatedActionsOverlayRenderer;Zc&&(a.TT=g.Zu(Zc,nBa));var yd=g.Zu(P.infoPanel,oBa);a.K("embeds_web_enable_info_panel_preview")&&yd&&pBa(a,yd)}}if(!oa&&H){var pb=H.endScreen&&H.endScreen.endScreen;pb&&(oa=pb.results)}if(H){var ec=H.desktopOverlay&&g.Zu(H.desktopOverlay,qBa);ec&&(ec.suppressShareButton&&(a.showShareButton=!1),ec.suppressWatchLaterButton&&(a.Mi=!1))}Ba&&rBa(a,b,Ba);var qb=ev(0,b.autoplay_count);if(oa){for(var Tb=H||null,Nb=Zb||null,Ub=[],
Nd=!0,ta=g.r(oa),vb=ta.next();!vb.done;vb=ta.next()){var fd=vb.value,Ec=void 0,sb=null;if(fd.endScreenVideoRenderer){var Fc=fd.endScreenVideoRenderer,zd=Fc.title;sb=new g.SG(a.V());sb.videoId=Fc.videoId;sb.lengthSeconds=Fc.lengthInSeconds||0;var ne=Fc.publishedTimeText;ne&&(sb.publishedTimeText=g.xA(ne));var gd=Fc.shortBylineText;gd&&(sb.author=g.xA(gd));var Hd=Fc.shortViewCountText;Hd&&(sb.shortViewCount=g.xA(Hd));if(zd){sb.title=g.xA(zd);var ie=zd.accessibility;if(ie){var Rc=ie.accessibilityData;
Rc&&Rc.label&&(sb.ariaLabel=Rc.label)}}var od=Fc.navigationEndpoint;if(od){Ec=od.clickTrackingParams;var Sa=g.Zu(od,g.TG),Ia=g.Zu(od,g.PH);Sa?sb.Ey=Sa:null!=Ia&&(sb.watchUrl=Ia.url)}var Od=Fc.thumbnailOverlays;if(Od)for(var oe=g.r(Od),Ke=oe.next();!Ke.done;Ke=oe.next()){var Gc=Ke.value.thumbnailOverlayTimeStatusRenderer;if(Gc)if("LIVE"===Gc.style){sb.isLivePlayback=!0;break}else if("UPCOMING"===Gc.style){sb.isUpcoming=!0;break}}sb.fg=LG(Fc.thumbnail)}else if(fd.endScreenPlaylistRenderer){var cf=fd.endScreenPlaylistRenderer,
Sc=cf.navigationEndpoint;if(!Sc)continue;var pd=g.Zu(Sc,g.TG);if(!pd)continue;var ug=pd.videoId;sb=new g.RG(a.V());sb.playlistId=cf.playlistId;sb.playlistLength=Number(cf.videoCount)||0;sb.IE=ug||null;sb.videoId=ug;var Ng=cf.title;Ng&&(sb.title=g.xA(Ng));var wf=cf.shortBylineText;wf&&(sb.author=g.xA(wf));Ec=Sc.clickTrackingParams;sb.fg=LG(cf.thumbnail)}sb&&(Ec&&(sb.sessionData={itct:Ec}),Nd?(a.K("web_player_decouple_autonav")?Ub.push(sb):(hAa(sb,Tb,Nb,qb),Ub.splice(0,0,sb)),Nd=!1):Ub.push(sb))}a.suggestions=
Ub}if(Zb){a.UN=!!Zb.preferImmediateRedirect;a.Ce=a.Ce||!!Zb.webShowNewAutonavCountdown;a.Nk=a.Nk||!!Zb.webShowBigThumbnailEndscreen;if(a.Ce||a.Nk){var ic=Zb,pe=oa||null,Le=H||null,Oc=new g.SG(a.V());Oc.videoId=ic.videoId;var je,xf,Og=null==pe?void 0:null==(je=pe[0])?void 0:null==(xf=je.endScreenVideoRenderer)?void 0:xf.navigationEndpoint;if(Og){var yf=Og.clickTrackingParams;yf&&(Oc.sessionData={itct:yf})}var zf=ic.videoTitle;if(zf){Oc.title=g.xA(zf);var Hc=zf.accessibility;if(Hc){var hd=Hc.accessibilityData;
hd&&hd.label&&(Oc.ariaLabel=hd.label)}}var Ad=ic.byline;Ad&&(Oc.author=g.xA(Ad));var Af=ic.publishedTimeText;Af&&(Oc.publishedTimeText=g.xA(Af));var oc=ic.shortViewCountText;oc&&(Oc.shortViewCount=g.xA(oc));var Pd=ic.thumbnailOverlays;if(Pd)for(var $c=g.r(Pd),yc=$c.next();!yc.done;yc=$c.next()){var pc=yc.value.thumbnailOverlayTimeStatusRenderer;if(pc)if("LIVE"===pc.style){Oc.isLivePlayback=!0;break}else if("UPCOMING"===pc.style){Oc.isUpcoming=!0;break}else if("DEFAULT"===pc.style&&pc.text){Oc.lengthText=
g.xA(pc.text);var qe=pc.text.accessibility;if(qe){var Me=qe.accessibilityData;Me&&Me.label&&(Oc.Ts=Me.label||"")}break}}Oc.fg=LG(ic.background);var Bf=ic.nextButton;if(Bf){var ag=Bf.buttonRenderer;if(ag){var lh=ag.navigationEndpoint;if(lh){var ji=g.Zu(lh,g.TG);ji&&(Oc.Ey=ji)}}}if(ic.topBadges){var Ne=ic.topBadges[0];if(Ne){var df=g.Zu(Ne,sBa);df&&"BADGE_STYLE_TYPE_PREMIUM"===df.style&&(Oc.DE=!0)}}var ki=ic.alternativeTitle;ki&&(Oc.yp=g.xA(ki));hAa(Oc,Le,ic,qb);a.suggestions||(a.suggestions=[]);if(.01>
Math.random()){for(var ef=!1,Oe=g.r(a.suggestions),Pg=Oe.next();!Pg.done;Pg=Oe.next())if(Pg.value.videoId===Oc.videoId){ef=!0;break}ef||g.pz(new g.Pv("Autonav video not in endscreen",{empty:!a.suggestions.length}))}a.Vk=Oc;a.K("web_player_decouple_autonav")||(a.suggestions[0]=Oc)}null!=Zb.countDownSecs&&(a.TL=1E3*Zb.countDownSecs);null!=Zb.countDownSecsForFullscreen&&(a.BL=0<=Zb.countDownSecsForFullscreen?1E3*Zb.countDownSecsForFullscreen:-1);var cj;a.eU=null==(cj=Zb.cancelButton)?void 0:cj.buttonRenderer;
a.K("web_autonav_color_transition")&&Zb.watchToWatchTransitionRenderer&&(a.watchToWatchTransitionRenderer=g.Zu(Zb.watchToWatchTransitionRenderer,tBa))}a.watchNextResponse.currentVideoThumbnail&&(a.fg=LG(a.watchNextResponse.currentVideoThumbnail));var mh,bg,Tc,Cf,vg,cg=null==(mh=a.watchNextResponse)?void 0:null==(bg=mh.contents)?void 0:null==(Tc=bg.twoColumnWatchNextResults)?void 0:null==(Cf=Tc.results)?void 0:null==(vg=Cf.results)?void 0:vg.contents;if(cg&&cg[1]){var dg,nh,Kb,Kh,dj=null==(dg=cg[1].videoSecondaryInfoRenderer)?
void 0:null==(nh=dg.owner)?void 0:null==(Kb=nh.videoOwnerRenderer)?void 0:null==(Kh=Kb.thumbnail)?void 0:Kh.thumbnails;dj&&dj.length&&(a.profilePicture=dj[dj.length-1].url)}var Wk=a.watchNextResponse.onResponseReceivedEndpoints;if(Wk)for(var ej=g.r(Wk),ff=ej.next();!ff.done;ff=ej.next()){var li=ff.value;g.Zu(li,QH)&&(a.vN=g.Zu(li,QH));var Xk=g.Zu(li,uBa),Yk=void 0;a.K("web_key_moments_markers")&&(null==(Yk=Xk)?0:Yk.entityKeys)&&(a.vu=Xk.entityKeys,Xk.visibleOnLoadKeys&&(a.visibleOnLoadKeys=Xk.visibleOnLoadKeys))}if(a.K("web_key_moments_markers")){var Yd=
g.RH.getState().entities,Qg=g.lH("visibility_override","markersVisibilityOverrideEntity");var fj=Yd.markersVisibilityOverrideEntity?Yd.markersVisibilityOverrideEntity[Qg]||null:null;var mi=a.videoId||hv(b);a.Kd=(null==fj?void 0:fj.videoId)===mi&&(null==fj?0:fj.visibilityOverrideMarkersKey)?fj.visibilityOverrideMarkersKey:a.visibleOnLoadKeys;a.visibleOnLoadKeys=[].concat(g.t(a.Kd))}}};
NH=function(a){var b;return void 0!==(null==(b=a.autoplaySwitchButtonRenderer)?void 0:b.enabled)};
SH=function(a){return!!(a.B&&a.B.videoInfos&&a.B.videoInfos.length)};
VH=function(a){if(a.K("html5_single_format_policy")&&a.Ld)return a.Ld;var b=a.Qa,c=!!a.j&&a.j.vf,d=a.Sa,e=a.FI(),f=TH(a),h=a.nK,l=a.isOtf(),m=a.AG(),n=a.Gb,p=a.zg,q=new qya(d);if(vG(d)||d.K("html5_logging_format_selection"))q.B=!0;q.kb=f;q.Ia=h&&d.C;q.zg=p;Mu("windows nt 5.1")&&!g.oB&&(q.j=!0);if(f=e)f=d.K("disable_html5_ambisonic_audio")||!(g.qG(d)||d.K("html5_enable_spherical")||d.K("html5_enable_spherical3d"))?!1:wza(d);f&&(q.eb=!0);b&&(q.j=!0,q.zc=!0);l&&!d.K("html5_otf_prefer_vp9")&&(q.j=!0);
n&&(q.j=!0);b=d.K("html5_ugc_vod_audio_51")&&!c;l=d.K("html5_ugc_live_audio_51")&&c;q.Qa=b||l;EB(d.j,FB.CHANNELS)&&(d.K("html5_enable_aac51")&&(q.Aa=!0),d.K("html5_enable_ac3")&&(q.D=!0),d.K("html5_enable_eac3")&&(q.I=!0),d.K("html5_enable_ac3_gapless")&&(q.La=!0));d.K("html5_block_8k_hfr")&&(q.yb=!0);q.J=g.RE(d.experiments,"html5_max_selectable_quality_ordinal");q.S=g.RE(d.experiments,"html5_min_selectable_quality_ordinal");!d.K("html5_kaios_hd_killswitch")&&HF&&(q.Pc=480);if(c||e)q.ob=!1;q.Gb=!1;
c=IE(d,q.u);0<c&&2160>c&&(mE()||d.K("html5_format_hybridization"))&&(q.u.supportsChangeType=+mE(),q.ea=c);2160<=c&&(q.ya=!0);oya()&&(q.u.serveVp9OverAv1IfHigherRes=0,q.Ac=!1);q.AG=m;q.Ya=g.vw||Yu()&&!m?!1:!0;q.Ba=d.K("html5_format_hybridization");q.Rb=d.K("html5_disable_encrypted_vp9_live_non_2k_4k");Pu()&&a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(q.D=!0,q.I=!0);a.Qa&&
a.isAd()&&(a.Ft&&(q.qa=a.Ft),a.wt&&(q.C=a.wt));q.Wa=a.isLivePlayback&&UH(a)&&a.Sa.K("html5_drm_live_audio_51");return a.Ld=q};
vBa=function(a){WA("drm_pb_s",void 0,a.La);a.ya||a.j&&HB(a.j);var b={};a.j&&(b=Lva(VH(a),a.Sa.j,a.j,function(c){return a.ma("ctmp","fmtflt",c)},!0));
b=new UE(b,a.Sa.experiments,a.fT,a.useCobaltWidevine?Pu()?WH(a):!1:!1,function(c,d){a.va(c,d)});
g.M(a,b);a.Zl=!1;a.Ia=!0;uya(b,function(c){WA("drm_pb_f",void 0,a.La);for(var d=g.r(c),e=d.next();!e.done;e=d.next())switch(e=e.value,e.flavor){case "fairplay":e.ya=a.ya;e.lr=a.lr;e.jr=a.jr;break;case "widevine":e.Mj=a.Mj}a.Nu=c;if(0<a.Nu.length&&(a.S=a.Nu[0],2<=a.Sa.Z)){c={};d=g.r(Object.entries(a.S.j));for(e=d.next();!e.done;e=d.next()){var f=g.r(e.value);e=f.next().value;f=f.next().value;var h="unk";(e=e.match(/(.*)codecs="(.*)"/))&&(h=e[2]);c[h]=f}a.va("drmProbe",c)}HH(a)})};
cBa=function(a,b){var c;(c=!b)||(c=!(!a.K("html5_manifestless_unplugged")&&a.isLivePlayback&&g.lG(a.Sa)&&g.aG(a.Sa)?0:!KH(a)&&a.adaptiveFormats));if(c)return null;XH(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(gya=!0);b=YH(b);c=Date.now();var d=a.yd;var e=a.lengthSeconds,f=a.isLivePlayback,h=a.uf,l=a.Sa,m=Sxa(b);if(f||h){l=new tE("",null==l?void 0:l.experiments,!0);e=g.r(b);for(f=e.next();!f.done;f=e.next()){var n=f.value;f=vE(n,d);m=wE(n.url,n.sp,n.s);var p=m.get("id");p&&p.includes("%7E")&&
(l.Aa=!0);p=Number(n.target_duration_sec)||5;n=Number(n.max_dvr_duration_sec)||14400;var q=Number(m.get("mindsq")||m.get("min_sq")||"0"),u=Number(m.get("maxdsq")||m.get("max_sq")||"0")||Infinity;l.df=l.df||q;l.Vh=l.Vh||u;var w=!UD(f.mimeType);m&&uE(l,new AD(m,f,{Fk:p,wm:w,Xn:n,df:q,Vh:u,Gz:300,uf:h}))}l.u=!h;l.vf=!0;l.isManifestless=!0;l.isLive=!h;l.uf=h;l.C=!!l.df&&!!l.Vh&&isFinite(l.Vh);d=l}else if("FORMAT_STREAM_TYPE_OTF"===m){e=void 0===e?0:e;h=new tE("",null==l?void 0:l.experiments,!1);h.duration=
e||0;l=g.r(b);for(e=l.next();!e.done;e=l.next())if(p=e.value,e=vE(p,d,h.duration),f=wE(p.url,p.sp,p.s))"FORMAT_STREAM_TYPE_OTF"===e.streamType?uE(h,new BD(f,e,"sq/0")):(m=aD(p.init),p=aD(p.index),uE(h,new ID(f,e,m,p)));h.isOtf=!0;d=h}else{e=void 0===e?0:e;h=new tE("",null==l?void 0:l.experiments,!1);h.duration=e||0;e=g.r(b);for(f=e.next();!f.done;f=e.next())if(n=f.value,f=vE(n,d,h.duration),m=aD(n.init),p=aD(n.index),n=wE(n.url,n.sp,n.s))q=void 0,uE(h,new ID(n,f,m,p,null==(q=l)?void 0:q.Vk));d=h}c=
Date.now()-c;a.K("html5_log_manifest_performance")&&(h=Qxa(d)?1:0,a.va("mfsp",{wasm:h,t:c}));0<b.length&&(b=b[0],b.url&&b.sp&&b.s&&(b=wE(b.url,b.sp,b.s),b=Number(b.get("max_sq"))||Infinity,isFinite(b)&&(a.Bk=!0)));return d};
KH=function(a){return Pu()?!WH(a):Ru()?!(!a.ya||!a.K("html5_enable_safari_fairplay")):!1};
WH=function(a){return XH(a,"html5_enable_tvos_dash_dogfood")||a.K("html5_enable_tvos_dash")&&(a.K("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"'))};
MH=function(a){return!(!a.j||!a.j.isManifestless)};
wBa=function(a){if(!pB())return!1;if(a.K("html5_streaming_debug")||MH(a)&&("ULTRALOW"==a.latencyClass||21530001==ZH(a)))return!0;if(!window.AbortController&&!qB()||a.Qa)return!1;if(a.K("html5_streaming_xhr"))return!0;var b;return a.K("html5_streaming_xhr_vod")&&!1===(null==(b=a.j)?void 0:b.vf)?!0:!1};
xBa=function(a){return Vva({hasSubfragmentedFmp4:a.hasSubfragmentedFmp4,Sm:a.Sm,defraggedFromSubfragments:a.defraggedFromSubfragments,isManifestless:MH(a),fL:wBa(a)})};
ZH=function(a){return a.isLowLatencyLiveStream&&void 0!=a.j&&5<=BE(a.j)?21530001:a.liveExperimentalContentId};
aBa=function(a){return Pu()&&WH(a)?!1:KH(a)&&g.lG(a.Sa)&&!a.isLivePlayback||!XE(a.Sa.j)||a.NL?!0:!1};
zBa=function(a){a.Ia=!0;a.jf=!1;if(bBa(a))g.BAa(a.videoId).then(function(c){yBa(a,c)}).then(function(){HH(a)});
else{mA(a.ob)||g.pz(new g.Pv("DASH MPD Origin invalid: ",a.ob));var b=a.ob;b=g.wi(b,{mpd_version:g.RE(a.Sa.experiments,"dash_manifest_version")||4});a.isLowLatencyLiveStream&&"NORMAL"!=a.latencyClass||(b=g.wi(b,{pacing:0}));$xa(b,a.Sa.experiments,a.isLivePlayback).then(function(c){a.isDisposed()||(LH(a,c,!0),WA("mrc",void 0,a.La),HH(a))},function(c){a.isDisposed()||(a.Ia=!1,a.ma("dataloaderror",new xG("manifest.net.retryexhausted",{backend:"manifest",
rc:c.status},1)))});
WA("mrs",void 0,a.La)}};
yBa=function(a,b){var c=b.map(function(e){return e.itag}),d;
null!=(d=a.playerResponse)&&d.streamingData?(d=a.playerResponse.streamingData.adaptiveFormats.filter(function(e){return c.includes(e.itag)}).map(function(e){e=Object.assign({},e);
e.url=b.find(function(f){return f.itag===e.itag}).url;
e.signatureCipher="";return gAa(e)}).join(","),d=cBa(a,d),LH(a,d),a.va("dlr",{})):a.va("offsdm",{cotn:a.fG?a.fG.cotn:"0",
cpn:a.clientPlaybackNonce})};
HH=function(a){a.isDisposed()||(a.Ia=!1,a.ma("dataloaded"))};
LH=function(a,b,c){c=void 0===c?!1:c;a.j=b;g.M(a,b);b.df=a.df;b.Vh=a.Vh;b.Rb=a.Rb;b.zc=a.zc;a.K("html5_start_walltime_min_seekable_killswitch")||(b.Sc=a.Sc);ABa(a)&&a.ea.push("webgl");a.j.isLive||(a.isLivePlayback=!1);var d=b.sourceUrl.split("/");-1!=d.indexOf("manifest_duration")&&(a.Gk=Number(d[d.indexOf("manifest_duration")+1]));b.u&&(b.subscribe("clienttemp",a.va,a),c?b.subscribe("refresh",a.ZQ,a):b.subscribe("cuepointsadded",a.kO,a));HB(b)&&(a.Zl=!0);b.isPremiere=a.isPremiere;b.isLiveHeadPlayable=
a.isLiveHeadPlayable};
UH=function(a){return a.yd?!0:!!a.j&&HB(a.j)};
FBa=function(a,b){if(a.isDisposed())return Fu();a.B=null;a.kb=null;a.Ac=null;XH(a,"html5_high_res_logging")&&(a.Sa.Z=2);return BBa(a,b).then(void 0,function(){return CBa(a,b)}).then(void 0,function(){return DBa(a)}).then(void 0,function(){return EBa(a)})};
BBa=function(a,b){var c=b||aBa(a);if(!a.j||c)return a.va("skipDash",{dm:!!a.j,air:b,dd:a.NL,mss:XE(a.Sa.j)}),Fu();TH(a)&&dya(a.j,a.isLivePlayback);XH(a,"html5_enable_cobalt_experimental_vp9_decoder")&&Hya(a.Sa.j);return Gu().then(function(){return Uva(VH(a),a.Sa.j,a.j,a.S,function(d){return a.ma("ctmp","fmtflt",d)}).then(function(d){GBa(a,d);
/^av/.test(a.clientPlaybackNonce)&&a.Ld&&a.va("av1",a.Ld.u)})})};
CBa=function(a,b){if(b&&a.hlsvp)return Fu();if(a.hlsFormats){b=YH(a.hlsFormats);var c;if((null==(c=a.Ld)?0:c.B)&&b){c=[];for(var d=g.r(b),e=d.next();!e.done;e=d.next())c.push(e.value.itag);a.va("hlsfmt",{itags:c.join(".")})}a.vr=Eza(a.Sa,b);c=a.clientPlaybackNonce;var f,h,l,m;return Jza(a.Sa,a.isAd(),b,null!=(m=null==(f=a.playerResponse)?void 0:null==(h=f.captions)?void 0:null==(l=h.playerCaptionsRenderer)?void 0:l.baseUrl)?m:null,a.Pc,c,function(n){return a.ma("ctmp","hlsflt",n)}).then(function(n){for(var p=
0,q=[],u=g.r(n),w=u.next();!w.done;w=u.next()){w=w.value;
var y=void 0;q.push(null==(y=w.Dg())?void 0:y.itag);var A=y=void 0;(null==(y=w.Dg())?void 0:null==(A=y.audio)?void 0:A.numChannels)>p&&(p=w.Dg().audio.numChannels)}2<p&&a.va("hlschl",{mn:p});var B;(null==(B=a.Ld)?0:B.B)&&a.va("hlsfmtaf",{itags:q.join(".")});$H(a,n)})}return Fu()};
DBa=function(a){return a.Pk&&a.tN?Lza(a.Sa,a.isAd(),a.Pk).then(function(b){$H(a,b)}):Fu()};
EBa=function(a){var b=YH(a.Qk,a.oF);if(a.hlsvp){var c=NAa(a.hlsvp,a.clientPlaybackNonce,a.Pc);b.push(c)}return Kza(a.Sa,a.isAd(),b,HBa(a)).then(function(d){$H(a,d)})};
GBa=function(a,b){a.B=b;b=a.getAvailableAudioTracks();b=b.concat(a.Ul);for(var c=0;c<a.NG.length;c++)for(var d=a.NG[c],e=0;e<b.length;e++){var f=b[e],h=f.Nc.id==d.audioTrackId;if(f.Nc.isDefault&&c==a.dO||h){if(d.captionTrackIndices)for(h=0;h<d.captionTrackIndices.length;h++)f.captionTracks[h]=a.captionTracks[d.captionTrackIndices[h]];void 0!==d.defaultCaptionTrackIndex&&(f.B=a.captionTracks[d.defaultCaptionTrackIndex]);void 0!==d.forcedCaptionTrackIndex&&(f.j=a.captionTracks[d.forcedCaptionTrackIndex]);
f.u=d.visibility||"UNKNOWN";f.captionsInitialState=d.captionsInitialState||"CAPTIONS_INITIAL_STATE_UNKNOWN"}}if(a.S&&a.B&&a.B.videoInfos&&!(0>=a.B.videoInfos.length)&&(b=TD(a.B.videoInfos[0]),b!=("fairplay"==a.S.flavor)))for(c=g.r(a.Nu),d=c.next();!d.done;d=c.next())if(d=d.value,b==("fairplay"==d.flavor)){a.S=d;break}};
$H=function(a,b){a.Ac=b;GBa(a,new yB(g.Ok(a.Ac,function(c){return c.Dg()})))};
HBa=function(a){var b={cpn:a.clientPlaybackNonce,c:a.Sa.deviceParams.c,cver:a.Sa.deviceParams.cver};a.Ku&&(b.ptk=a.Ku,b.oid=a.DN,b.ptchn=a.CN,b.pltype=a.EN,a.gr&&(b.m=a.gr));return b};
g.aI=function(a){return KH(a)&&a.ya?(a={},a.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",a):a.u&&a.u.yd||null};
IBa=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.text?g.xA(b.text):a.paidContentOverlayText};
bI=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.durationMs?Wg(b.durationMs):a.paidContentOverlayDurationMs};
cI=function(a){var b="";if(a.dG)return a.dG;a.isLivePlayback&&(b=a.allowLiveDvr?"dvr":a.isPremiere?"lp":!a.K("html5_change_player_mode_order_for_logging")&&a.uf?"post":a.Bk?"window":"live");a.K("html5_change_player_mode_order_for_logging")&&a.uf&&(b="post");return b};
g.dI=function(a,b){return"string"!==typeof a.keywords[b]?null:a.keywords[b]};
eI=function(a){return!!(a.ob||a.adaptiveFormats||a.Qk||a.Pk||a.hlsvp)};
GH=function(a){if(a.K("html5_onesie")&&a.errorCode)return!1;var b=g.Sb(a.ea,"ypc");a.ypcPreview&&(b=!1);return a.isValid()&&!a.Ia&&(eI(a)||g.Sb(a.ea,"heartbeat")||b)};
YH=function(a,b){a=ku(a);var c={};if(b){b=g.r(b.split(","));for(var d=b.next();!d.done;d=b.next())(d=d.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(c[d[1]]={width:d[2],height:d[3]})}b=g.r(a);for(d=b.next();!d.done;d=b.next()){d=d.value;var e=c[d.itag];e&&(d.width=e.width,d.height=e.height)}return a};
lBa=function(a,b){a.showShareButton=!!b;var c,d,e=(null==(c=g.Zu(b,OH))?void 0:c.navigationEndpoint)||(null==(d=g.Zu(b,OH))?void 0:d.command);e&&(a.mm=!!g.Zu(e,JBa))};
PAa=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.Nh=c);if(a.Nh){if(c=a.Nh.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),c.isShortsEligible&&(a.isShortsEligible=c.isShortsEligible);if(c=a.Nh.embedPreview){c=c.thumbnailPreviewRenderer;d=c.controlBgHtml;null!=d?(a.eb=d,a.C=!0,a.Sa.K("embeds_web_enable_epm_dni_parity_fix")&&
(a.Sa.ea="EMBEDDED_PLAYER_MODE_PFP")):(a.eb="",a.C=!1,a.Sa.K("embeds_web_enable_epm_dni_parity_fix")&&"EMBEDDED_PLAYER_MODE_PFP"===a.Sa.ea&&(a.Sa.ea="EMBEDDED_PLAYER_MODE_DEFAULT"));if(d=c.defaultThumbnail)a.fg=LG(d),a.sampledThumbnailColor=d.sampledThumbnailColor;(d=g.Zu(null==c?void 0:c.videoDetails,KBa))&&rBa(a,b,d);if(d=g.Zu(null==c?void 0:c.videoDetails,LBa))a.mF=d.title,a.lF=d.byline,d.musicVideoType&&(a.musicVideoType=d.musicVideoType);a.Mi=!!c.addToWatchLaterButton;lBa(a,c.shareButton);var e,
f;if(d=g.Zu(null==c?void 0:null==(e=c.playButton)?void 0:null==(f=e.buttonRenderer)?void 0:f.navigationEndpoint,g.TG))dBa(a,d),a.videoId=d.videoId||a.videoId;c.videoDurationSeconds&&(a.lengthSeconds=Wg(c.videoDurationSeconds));c.webPlayerActionsPorting&&cAa(a,c.webPlayerActionsPorting);if(e=g.Zu(null==c?void 0:c.playlist,MBa)){f=[];d=Number(e.currentIndex);if(e.contents)for(var h=0,l=e.contents.length;h<l;h++){var m=e.contents[h].playlistPanelVideoRenderer;if(m){var n=m.shortBylineText?g.xA(m.shortBylineText):
"",p=m.title?g.xA(m.title):"",q=h===d?b.channel_path:"",u=h===d?b.profile_picture:"",w=h===d?a.isPrivate:!a.Sa.K("embeds_web_private_pl_metadata_killswitch");f.push({author:n,encrypted_id:m.videoId,title:p,channel_path:q,profile_picture:u,is_private:w,is_dni:h===d?a.C:!1,dni_color:h===d?a.eb:""})}}b={index:e.currentIndex,list:e.playlistId,playlist_length:e.totalVideos,video:f};e.titleText&&(b.title=g.xA(e.titleText));e.shortBylineText&&(b.author=g.xA(e.shortBylineText));a.bM=b}b=g.Zu(null==c?void 0:
c.infoPanel,oBa);a.K("embeds_web_enable_info_panel_preview")&&b&&pBa(a,b)}if(a.Nh.previewPlayabilityStatus){if(a.Hk=a.Nh.previewPlayabilityStatus,b=a.Hk,!["OK","LIVE_STREAM_OFFLINE"].includes(b.status)){c=b.errorScreen;if(e=null==c?void 0:c.playerErrorMessageRenderer){a.QL=e;if(f=e.reason)a.errorReason=g.xA(f);if(e=e.subreason)a.bl=g.xA(e)}else a.errorReason=b.reason||null;switch(b.status){case "LOGIN_REQUIRED":a.errorDetail="1";break;case "CONTENT_CHECK_REQUIRED":a.errorDetail="2";break;case "AGE_CHECK_REQUIRED":var y;
(null==c?0:null==(y=c.playerKavRenderer)?0:y.kavUrl)?a.errorDetail="4":a.errorDetail="3";break;default:a.errorDetail=b.isBlockedInRestrictedMode?"5":"0"}}}else a.Nh.playabilityStatus&&(a.Wl=a.Nh.playabilityStatus,NBa(a)&&(a.errorDetail="0",a.Wl&&((y=a.Wl.embeddedPlayerErrorMessageRenderer)?a.QL=g.Zu(y,OBa):a.K("embeds_playabilitystatus_deprecation_killswitch")||(a.errorReason=a.Wl.reason||null))));(y=a.Nh.attestation)&&Wza(a,y);(y=a.Nh.permissions)&&y.allowImaMonetization&&(a.allowImaMonetization=
!0)}};
dBa=function(a,b){var c;if(b=null==b?void 0:null==(c=b.watchEndpointSupportedOnesieConfig)?void 0:c.html5PlaybackOnesieConfig)a.BN=new HAa(b)};
rBa=function(a,b,c){var d=c.channelThumbnail;d&&(d=d.thumbnails)&&(d=d[0])&&(b.profile_picture=d.url);var e;if(d=g.Zu(null==(e=g.Zu(null==c?void 0:c.channelThumbnailEndpoint,PBa))?void 0:e.urlEndpoint,g.PH))b.channel_path=d.url;if(e=c.collapsedRenderer)if(e=g.Zu(e,QBa)){if(d=e.title)b.title=g.xA(d);if(e=e.subtitle)b.subtitle=g.xA(e)}if(c=c.expandedRenderer)if(c=g.Zu(c,RBa)){if(e=c.title)b.expanded_title=g.xA(e);if(e=c.subtitle)b.expanded_subtitle=g.xA(e);if(c=c.subscribeButton)if(c=g.Zu(c,SBa))b.ucid=
c.channelId,b.subscribed=c.subscribed,a.Ok=!!c.notificationPreferenceToggleButton,c.notificationPreferenceToggleButton&&c.notificationPreferenceToggleButton.toggleButtonRenderer&&(b=c.notificationPreferenceToggleButton.toggleButtonRenderer,b.isToggled?(a.qJ=b.toggledServiceEndpoint||null,a.bJ=b.defaultServiceEndpoint||null):(a.qJ=b.defaultServiceEndpoint||null,a.bJ=b.toggledServiceEndpoint||null))}};
pBa=function(a,b){a.lN=Number(null==b?void 0:b.durationMs)||NaN;if(null==b?0:b.infoPanelOverviewViewModel)a.kf=null==b?void 0:b.infoPanelOverviewViewModel;if(null==b?0:b.infoPanelDetailsViewModel)a.Xl=null==b?void 0:b.infoPanelDetailsViewModel};
g.gI=function(a){return fI(a)&&!a.allowLiveDvr};
hI=function(a){return fI(a)&&a.allowLiveDvr};
fI=function(a){return a.K("html5_live_head_playable")?a.isLiveHeadPlayable:a.isLivePlayback};
g.iI=function(a){return!!a.j&&Lxa(a.j)};
g.jI=function(a){return!!a.j&&Mxa(a.j)};
ABa=function(a){return a.FI()||g.kI(a)};
g.lI=function(a){return!!a.j&&Nxa(a.j)};
g.kI=function(a){return!!a.j&&Oxa(a.j)};
g.TBa=function(a){if(a.LI)return null;var b=a.uN;b||(b=a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenUrlRenderer&&a.playerResponse.endscreen.endscreenUrlRenderer.url);return b||null};
g.UBa=function(a){return a.LI?null:a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenRenderer||null};
g.mI=function(a){return a.playerResponse&&a.playerResponse.cards&&a.playerResponse.cards.cardCollectionRenderer||null};
g.nI=function(a){if(!a.playerResponse||!a.playerResponse.annotations)return null;a=g.r(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};
oI=function(a){return a.adFormat&&"1_5"!=a.adFormat?"adunit":a.eventLabel||a.Sa.Qa};
pI=function(a){if(a.isAd()&&a.videoId!=a.Sa.Id)return a.Sa.Id};
qI=function(a){return a.un||"detailpage"==oI(a)||"shortspage"==oI(a)||a.mutedAutoplay};
rI=function(a){if(qI(a)){if("detailpage"==oI(a)||"shortspage"==oI(a))return a.dn||0<a.lc;if(!("17_8"===a.adFormat&&!a.dn||a.JT||"adunit"==oI(a)&&a.xg))return!0}return!1};
g.sI=function(a){return a.oauthToken||a.Sa.zg};
VBa=function(a){var b=1,c=g.RE(a.Sa.experiments,"html5_default_ad_gain");c&&a.isAd()&&(b=c);c=a.pe;a.B&&a.B.j&&a.B.j[0]&&a.Mu[a.B.j[0].id]&&(c=a.Mu[a.B.j[0].id]);if(a.K("html5_stateful_audio_normalization")&&null!=c){if(a.CT)return Math.min(1,Math.pow(10,-a.MI/20))||b;var d=0;a.K("html5_diff_bias_over_ad_content")&&(d=a.isAd()?0:3);c-=Math.min(0,d+Math.max(a.Sa.Gk,g.RE(a.Sa.experiments,"html5_stateful_audio_min_adjustment_value")));a.MI=c}return Math.min(1,Math.pow(10,-c/20))||b};
TH=function(a){var b=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],c="TVHTML5_SIMPLY"===ZF(a.Sa)&&"MUSIC"===a.Sa.deviceParams.ctheme;!a.Tg&&(g.TF(a.Sa)||c)&&b.includes(a.musicVideoType)&&(a.Tg=!0);if(b=g.Ou())b=/Starboard\/([0-9]+)/.exec(g.nb()),b=10>(b?parseInt(b[1],10):NaN);c=a.Sa;c=("TVHTML5_CAST"===ZF(c)||"TVHTML5"===ZF(c)&&(c.deviceParams.cver.startsWith("6.20130725")||c.deviceParams.cver.startsWith("6.20130726")))&&"MUSIC"===a.Sa.deviceParams.ctheme;!a.Tg&&(c||vza(a.Sa))&&
!b&&(b="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"===a.musicVideoType,c=(a.K("cast_prefer_audio_only_for_atv_and_uploads")||a.K("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&"MUSIC_VIDEO_TYPE_ATV"===a.musicVideoType,b||c)&&(a.Tg=!0);return a.Sa.deviceIsAudioOnly||a.Tg&&a.Sa.C};
WBa=function(a){return isNaN(a)?0:Math.max((Date.now()-a)/1E3-30,0)};
tI=function(a){return!(!a.Vl||!a.Sa.C)&&!!a.adaptiveFormats};
XBa=function(a){return a.enablePreroll&&a.enableServerStitchedDai};
bBa=function(a){var b;if(b=!!a.cotn)b=a.videoId,b=!!b&&1===g.qH(b);return b&&!a.Vl};
g.uI=function(a){if(!a.j||!a.u||!a.D)return!1;var b=a.j.j;return!!b[a.u.id]&&NB(b[a.u.id].u.j)&&!!b[a.D.id]&&NB(b[a.D.id].u.j)};
NBa=function(a){return(a=a.Wl)&&a.showError?a.showError:!1};
XH=function(a,b){return a.K(b)?!0:(a.fflags||"").includes(b+"=true")};
YBa=function(a){return(a=/html5_log_experiment_id_from_player_response_to_ctmp=([0-9]+)/.exec(a.fflags))?a[1]:null};
UAa=function(a,b){b.inlineMetricEnabled&&(a.inlineMetricEnabled=!0);b.playback_progress_0s_url&&(a.Qu=new iAa(b));if(b=b.video_masthead_ad_quartile_urls)a.lG=b.quartile_0_url,a.CO=b.quartile_25_url,a.mP=b.quartile_50_url,a.GP=b.quartile_75_url,a.jO=b.quartile_100_url,a.Ou=b.quartile_0_urls,a.nG=b.quartile_25_urls,a.oG=b.quartile_50_urls,a.pG=b.quartile_75_urls,a.mG=b.quartile_100_urls};
JH=function(a,b){return b?XE(a.Sa.j)?!0:vI&&5>wI?!1:!0:!1};
TAa=function(a){var b={};a=g.r(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};
Xza=function(a){if(a){if(ava(a))return a;a=bva(a);if(ava(a,!0))return a}return""};
g.ZBa=function(a){return a.captionsLanguagePreference||a.Sa.captionsLanguagePreference||g.dI(a,"yt:cc_default_lang")||a.Sa.wg};
xI=function(a){return!(!a.isLivePlayback||!a.hasProgressBarBoundaries())};
g.yI=function(a){if(a.K("web_player_decouple_autonav")){var b;return a.Vk||(null==(b=a.suggestions)?void 0:b[0])||null}var c;return(null==(c=a.suggestions)?void 0:c[0])||null};
zI=function(a,b){this.j=a;this.ea=b||{};this.I=String(Math.floor(1E9*Math.random()));this.D={};this.Z=this.S=0};
$Ba=function(a){return AI(a)&&1==a.getPlayerState(2)};
AI=function(a){a=a.Jc();return void 0!==a&&2==a.getPlayerType()};
BI=function(a){a=a.V();return $F(a)&&!g.lG(a)&&"desktop-polymer"==a.playerStyle};
CI=function(a,b){var c=a.V();PF(c)||"3"!=c.controlsType||a.gb().wA(b)};
EI=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.j=e;this.u=f;this.id=DI(a)};
DI=function(a){return a+(":"+(So.getInstance().j++).toString(36))};
FI=function(a){this.Y=a};
aCa=function(a,b){if(0===b||1===b&&(a.Y.isMobile&&g.Xv?0:a.Y.isMobile||g.lG(a.Y)||g.aG(a.Y)||bG(a.Y)||!g.Xv))return!0;a=g.ch("video-ads");return null!=a&&"none"!==Cl(a,"display")};
bCa=function(a){switch(a){case "audio_audible":return"adaudioaudible";case "audio_measurable":return"adaudiomeasurable";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}};
GI=function(){g.az.call(this);var a=this;this.j={};g.$e(this,function(){for(var b=g.r(Object.keys(a.j)),c=b.next();!c.done;c=b.next())delete a.j[c.value]})};
II=function(){if(null===HI){HI=new GI;Qk(Mn).u="b";var a=Qk(Mn),b="h"==Fn(a)||"b"==Fn(a),c=!(Zk(),!1);b&&c&&(a.D=!0,a.I=new Qia)}return HI};
cCa=function(a,b,c){a.j[b]=c};
dCa=function(){};
JI=function(a,b,c){this.j=a;this.D=b;this.B=c;this.u=b.length;this.adBreakLengthSeconds=b.reduce(function(d,e){return d+e},0);
c=0;for(a+=1;a<b.length;a++)c+=b[a];this.adBreakRemainingLengthSeconds=c};
KI=function(a){var b,c,d,e,f;return!(null==(b=a.get("active_view_viewable"))||!b.length)||!(null==(c=a.get("active_view_measurable"))||!c.length)||!(null==(d=a.get("active_view_fully_viewable_audible_half_duration"))||!d.length)||!(null==(e=a.get("audio_audible"))||!e.length)||!(null==(f=a.get("audio_measurable"))||!f.length)};
LI=function(a){var b,c;return null!=(c=null==a?void 0:null==(b=a.activeViewTracking)?void 0:b.trafficType)?c:"ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"};
MI=function(a){var b,c;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||[]],["audio_audible",(null==(b=a.activeViewTracking)?void 0:b.activeViewAudioAudiblePings)||[]],["audio_measurable",(null==(c=a.activeViewTracking)?void 0:c.activeViewAudioMeasurablePings)||[]],["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||[]],["unmuted_impression",a.unmutedImpressionPings||[]],["unmuted_error",a.unmutedErrorPings||[]],["unmuted_mute",a.unmutedMutePings||[]],["unmuted_unmute",a.unmutedUnmutePings||[]],["unmuted_pause",a.unmutedPausePings||[]],["unmuted_resume",a.unmutedResumePings||[]],["unmuted_close",a.unmutedClosePings||[]],["unmuted_progress",a.unmutedProgressPings||[]],["unmuted_clickthrough",a.unmutedClickthroughPings||
[]],["unmuted_fullscreen",a.unmutedFullscreenPings||[]],["unmuted_end_fullscreen",a.unmutedEndFullscreenPings||[]],["unmuted_abandon",a.unmutedAbandonPings||[]],["unmuted_start",a.unmutedStartPings||[]],["unmuted_first_quartile",a.unmutedFirstQuartilePings||[]],["unmuted_midpoint",a.unmutedSecondQuartilePings||[]],["unmuted_third_quartile",a.unmutedThirdQuartilePings||[]],["unmuted_complete",a.unmutedCompletePings||[]],["unmuted_skip",a.unmutedSkipPings||[]]])};
NI=function(a){switch(a){case "abandon":return"unmuted_abandon";case "active_view_fully_viewable_audible_half_duration":return null;case "active_view_measurable":return null;case "active_view_viewable":return null;case "audio_audible":return null;case "audio_measurable":return null;case "channel_clickthrough":return null;case "clickthrough":return"unmuted_clickthrough";case "close":return"unmuted_close";case "companion_engagement":return null;case "complete":return"unmuted_complete";case "end_fullscreen":return"unmuted_end_fullscreen";
case "error":return"unmuted_error";case "first_quartile":return"unmuted_first_quartile";case "fullscreen":return"unmuted_fullscreen";case "impression":return"unmuted_impression";case "midpoint":return"unmuted_midpoint";case "mute":return"unmuted_mute";case "pause":return"unmuted_pause";case "progress":return"unmuted_progress";case "resume":return"unmuted_resume";case "rewind":return null;case "skip":return"unmuted_skip";case "start":return"unmuted_start";case "third_quartile":return"unmuted_third_quartile";
case "unmute":return"unmuted_unmute";case "seek":return null;case "unmuted_abandon":case "unmuted_clickthrough":case "unmuted_complete":case "unmuted_end_fullscreen":case "unmuted_error":case "unmuted_first_quartile":case "unmuted_fullscreen":case "unmuted_impression":case "unmuted_midpoint":case "unmuted_mute":case "unmuted_pause":case "unmuted_close":case "unmuted_progress":case "unmuted_resume":case "unmuted_start":case "unmuted_third_quartile":case "unmuted_unmute":case "unmuted_skip":return null;
default:return null}};
eCa=function(a){return(a=a.pings)?Object.fromEntries(MI(a)):{}};
OI=function(a,b,c,d,e){zI.call(this,a,eCa(a));(a=c&&c.kind)||(a="AD_PLACEMENT_KIND_UNKNOWN");this.La=c;this.isPostroll="AD_PLACEMENT_KIND_END"===a;this.B=new JI(0,[]);this.ya=null;this.C={};this.Aa=null;this.u=0;this.J=null;this.qa=e;this.Ia=null;c=this.j.skipOffsetMilliseconds||0;0<c&&(this.Aa=c);this.C=ju(this.j.playerVars||"");this.J=this.j.externalVideoId||null;this.u=ev(this.u,this.C.length_seconds);this.qa&&this.J&&(this.Ia=this.qa(this.J));if(this.C.cta_conversion_urls)try{this.C.cta_conversion_urls=
JSON.parse(this.C.cta_conversion_urls)}catch(f){g.oz(f)}this.ya=this.j.clickthroughEndpoint||null;this.B=new JI(0,[this.u])};
fCa=function(a){var b=a.C||{};1<a.B.u&&(b.slot_pos=a.B.j);b.autoplay="1";return b};
PI=function(){this.j=[];this.u=0};
QI=function(a,b){b&&a.j.push(b)};
RI=function(a){if(!a)return[];var b=[];a=g.r(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.loggingUrls){c=g.r(c.loggingUrls);for(var d=c.next();!d.done;d=c.next())b.push({baseUrl:d.value.baseUrl})}return b};
SI=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};
TI=function(a){return a&&a.adVideoOffset&&a.adVideoOffset.percent||0};
UI=function(a){return"AD_VIDEO_PROGRESS_KIND_PERCENT"==a.adVideoOffset.kind};
gCa=function(a){a=a.playbackCommands;if(!a)return{};var b={};b.impression=RI(a.impressionCommands)||[];b.error=RI(a.errorCommands)||[];b.mute=RI(a.muteCommands)||[];b.unmute=RI(a.unmuteCommands)||[];b.pause=RI(a.pauseCommands)||[];b.rewind=RI(a.rewindCommands)||[];b.resume=RI(a.resumeCommands)||[];b.skip=RI(a.skipCommands)||[];b.close=RI(a.closeCommands)||[];b.clickthrough=RI(a.clickthroughCommands)||[];b.fullscreen=RI(a.fullscreenCommands)||[];b.active_view_viewable=RI(a.activeViewViewableCommands)||
[];b.active_view_measurable=RI(a.activeViewMeasurableCommands)||[];b.active_view_fully_viewable_audible_half_duration=RI(a.activeViewFullyViewableAudibleHalfDurationCommands)||[];a.activeViewTracking&&(b.audio_audible=RI(a.activeViewTracking.activeViewAudioAudibleCommands)||[],b.audio_measurable=RI(a.activeViewTracking.activeViewAudioMeasurableCommands)||[]);b.end_fullscreen=RI(a.endFullscreenCommands)||[];b.channel_clickthrough=RI(a.channelClickthroughCommands)||[];b.abandon=RI(a.abandonCommands)||
[];b.progress=SI(a.progressCommands.filter(function(c){return"AD_VIDEO_PROGRESS_KIND_MILLISECONDS"==c.adVideoOffset.kind}));
b.start=SI(a.progressCommands.filter(function(c){return UI(c)&&Hg(TI(c),0)}));
b.first_quartile=SI(a.progressCommands.filter(function(c){return UI(c)&&Hg(TI(c),.25)}));
b.midpoint=SI(a.progressCommands.filter(function(c){return UI(c)&&Hg(TI(c),.5)}));
b.third_quartile=SI(a.progressCommands.filter(function(c){return UI(c)&&Hg(TI(c),.75)}));
b.complete=SI(a.progressCommands.filter(function(c){return UI(c)&&Hg(TI(c),1)}));
return b};
VI=function(a){zI.call(this,a,gCa(a));a.questions&&a.questions.reduce(function(b,c){return(c=c.instreamSurveyAdSingleSelectQuestionRenderer||c.instreamSurveyAdMultiSelectQuestionRenderer)?b+(c.surveyAdQuestionCommon.durationMilliseconds||0)/1E3:b},0)};
hCa=function(a,b,c,d){this.id=b;this.C=d.qf;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.B=(this.D=e.getAdBreakUrl||"")?0:2;d.j=parseInt(e.prefetchMilliseconds,10)||0;d.visible=!b.hideCueRangeMarker;var f=gva(b,d);if(null==f)d=new uA(b,new yo(-1,-1),!1,"adcuerange:invalid",3),d.deactivate(),d=[null,d];else{e=":"+(So.getInstance().j++).toString(36);
var h=d.daiEnabled||d.qf;f=new uA(b,f,d.visible&&!h,"adcuerange:"+e,3);h=null;if(d.qf||0<d.j)if(d=gva(b,d,!0))h=new uA(b,d,!1,"prefetch:"+e,5),f.C=h,h.C=f;d=[h,f]}this.j=d[1];this.u=c;this.I=!1;this.S={};this.J=void 0===a.driftRecoveryMs?null:parseInt(a.driftRecoveryMs,10)};
WI=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.j.j||"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"==a.j.j};
YI=function(a,b){var c={};iCa(a,c,b);jCa(c);c.LACT=XI(function(){var d=Nx().toString();a.V().K("enable_undefined_lact_debug_logging")&&"-1"===d&&g.pz(Error("Unknown LACT returned from macro_expander.ts"));return d});
c.VIS=XI(function(){return a.getVisibilityState().toString()});
c.SDKV="h.3.0";c.VOL=XI(function(){return a.isMuted()?"0":Math.round(a.getVolume()).toString()});
c.VED="";return c};
kCa=function(a){var b={};if(!a.kind)return g.oz(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.oz(Error("malformed AdPlacementConfig")),b;b.MIDROLL_POS=XI(Xf(Math.round(Wg(a.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else b.MIDROLL_POS=XI(Xf("0"));return b};
XI=function(a){return{toString:function(){return a()}}};
lCa=function(a,b,c){function d(l,m){(m=c[m])&&(f[l]=m)}
function e(l,m){(m=c[m])&&(f[l]=h(m))}
if(!c||g.vf(c))return a;var f=Object.assign({},a),h=b?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};
iCa=function(a,b,c){b.CPN=XI(function(){var d;(d=a.getVideoData(1))?d=d.clientPlaybackNonce:(g.pz(Error("Video data is null.")),d=null);return d});
b.AD_MT=XI(function(){return Math.round(Math.max(0,1E3*(null!=c?c:a.getCurrentTime(2,!1)))).toString()});
b.MT=XI(function(){return Math.round(Math.max(0,1E3*a.getCurrentTime(1,!1))).toString()});
b.P_H=XI(function(){return a.gb().Ki().height.toString()});
b.P_W=XI(function(){return a.gb().Ki().width.toString()});
b.PV_H=XI(function(){return a.gb().getVideoContentRect().height.toString()});
b.PV_W=XI(function(){return a.gb().getVideoContentRect().width.toString()})};
jCa=function(a){a.CONN=XI(Xf("0"));a.WT=XI(function(){return Date.now().toString()})};
mCa=function(a){var b=Object.assign({},{});b.MIDROLL_POS=WI(a)?XI(Xf(Math.round(a.j.start/1E3).toString())):XI(Xf("0"));return b};
nCa=function(a){var b={};b.SLOT_POS=XI(Xf(a.B.j.toString()));return b};
oCa=function(a){var b=a&&g.eb(a,"load_timeout")?"402":"400",c={};return c.YT_ERROR_CODE=(3).toString(),c.ERRORCODE=b,c.ERROR_MSG=a,c};
ZI=function(a){for(var b={},c=g.r(pCa),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d];e&&(b[d]=e.toString())}return b};
$I=function(){var a={};Object.assign.apply(Object,[a].concat(g.t(g.za.apply(0,arguments))));return a};
aJ=function(){};
qCa=function(a,b,c,d){var e,f,h,l,m,n,p,q,u,w;g.z(function(y){switch(y.j){case 1:e=!!b.scrubReferrer;f=g.Qn(b.baseUrl,lCa(c,e,d));h={};if(!b.headers){y.Ma(2);break}l=g.r(b.headers);m=l.next();case 3:if(m.done){y.Ma(5);break}n=m.value;switch(n.headerType){case "VISITOR_ID":g.O("VISITOR_DATA")&&(h["X-Goog-Visitor-Id"]=g.O("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.O("EOM_VISITOR_DATA")&&(h["X-Goog-EOM-Visitor-Id"]=g.O("EOM_VISITOR_DATA"));break;case "USER_AUTH":return y.Ma(6);case "PLUS_PAGE_ID":(p=
a.u())&&(h["X-Goog-PageId"]=p)}y.Ma(4);break;case 6:q=a.j();u=q.getValue();y.Ma(8);break;case 9:u=y.u;case 8:(w=u)&&(h.Authorization="Bearer "+w);y.Ma(4);break;case 4:m=l.next();y.Ma(3);break;case 5:"X-Goog-EOM-Visitor-Id"in h&&"X-Goog-Visitor-Id"in h&&delete h["X-Goog-Visitor-Id"];case 2:g.Uw(f,void 0,e,0!==Object.keys(h).length?h:void 0,"",!0),g.na(y)}})};
bJ=function(a){this.Vr=a};
cJ=function(a){this.Ir=a};
sCa=function(a,b,c,d,e,f){e=void 0===e?new cJ(new bJ(d.getVideoData(1))):e;f=void 0===f?!1:f;g.J.call(this);this.ad=a;this.B=b;this.macros=c;this.j=d;this.yk=e;this.daiEnabled=f;this.u={nF:.25,hG:.5,jG:.75};this.lastUpdatedTimeSecs=null;this.progressPings=Array.from(this.ad.ea.progress||[]);this.progressPings.sort(function(h,l){return h.offsetMilliseconds-l.offsetMilliseconds});
this.unmutedProgressPings=Array.from(this.ad.ea.unmuted_progress||[]);this.unmutedProgressPings.sort(function(h,l){return h.offsetMilliseconds-l.offsetMilliseconds});
rCa(LI(a.j.pings))};
hJ=function(a,b){dJ(a)||(eJ(a)?(fJ(a,0,!0),tCa(a,b,b)):(fJ(a,0,!0),uCa(a,0,0,!0)),gJ(a,"complete"))};
fJ=function(a,b,c){for(c=void 0===c?!1:c;a.ad.S<a.progressPings.length;){var d=iJ(a,"progress"),e=a.progressPings[a.ad.S];if(e.offsetMilliseconds<=1E3*b||c)jJ(a,e,d),a.ad.S++;else break}};
vCa=function(a,b,c){for(c=void 0===c?!1:c;a.ad.Z<a.unmutedProgressPings.length;){var d=iJ(a,"unmuted_progress"),e=a.unmutedProgressPings[a.ad.Z];if(e.offsetMilliseconds<=1E3*b||c)jJ(a,e,d),a.ad.Z++;else break}};
uCa=function(a,b,c,d){d=void 0===d?!1:d;(b>=c*a.u.nF||d)&&gJ(a,"first_quartile");(b>=c*a.u.hG||d)&&gJ(a,"midpoint");(b>=c*a.u.jG||d)&&gJ(a,"third_quartile")};
wCa=function(a,b,c,d){d=void 0===d?!1:d;(b>=c*a.u.nF||d)&&gJ(a,"unmuted_first_quartile");(b>=c*a.u.hG||d)&&gJ(a,"unmuted_midpoint");(b>=c*a.u.jG||d)&&gJ(a,"unmuted_third_quartile")};
kJ=function(a,b,c,d){if(null==a.lastUpdatedTimeSecs){if(c<d||1<c-d)return}else if(a.lastUpdatedTimeSecs>d||d>c)return;gJ(a,b)};
tCa=function(a,b,c){if(0<c&&0<b){var d=a.j.Eb(a.j.getPresentingPlayerType());g.V(d,16)||g.V(d,32)||(kJ(a,"first_quartile",b,c*a.u.nF),kJ(a,"midpoint",b,c*a.u.hG),kJ(a,"third_quartile",b,c*a.u.jG))}a.lastUpdatedTimeSecs=b};
lJ=function(a,b){for(var c=iJ(a,b),d=g.r(a.ad.ea[b]||[]),e=d.next();!e.done;e=d.next())jJ(a,e.value,c);a.ad.D[b]=!0};
gJ=function(a,b){a.ad.D.hasOwnProperty(b)||lJ(a,b)};
mJ=function(a,b){return a.ad.D.hasOwnProperty(b)};
jJ=function(a,b,c){var d=b.baseUrl;if(d){b=b.headers||[];for(var e=a.yk,f=e.send,h={},l=YI(a.j),m=g.r(Object.keys(l)),n=m.next();!n.done;n=m.next())n=n.value,h[n]=l[n].toString();if(l=a.j.getVideoData(2))h.AD_CPN=l.clientPlaybackNonce;a=Object.assign(h,a.macros);f.call(e,d,a,c,b)}};
iJ=function(a,b){var c=a.B;a=a.ad;if(a.sz())if(b=xCa(b),null==b)c={};else{var d;(d=a.Ba()())||(d=(d=c.G)&&d.Jc?(d=d.Jc())&&2==d.getPlayerType()?nJ(d):null:null);d?(c={opt_adElement:d,opt_fullscreen:c.G.isFullscreen()},c=Pn(b,a.I,c)):c={}}else c={};return c?Object.assign({},c):{}};
eJ=function(a){return!a.j.V().K("html5_bulleit_dai_logging_policy_upg_livestream_killswitch")&&a.daiEnabled};
dJ=function(a){return eJ(a)&&!mJ(a,"impression")};
oJ=function(a){return eJ(a)&&mJ(a,"seek")};
pJ=function(a,b){eJ(a)?lJ(a,b):gJ(a,b)};
g.qJ=function(a,b){this.state=a;this.yq=b};
rJ=function(a,b){return g.V(a.state,b)&&!g.V(a.yq,b)?1:!g.V(a.state,b)&&g.V(a.yq,b)?-1:0};
g.sJ=function(a,b){return 0<rJ(a,b)};
tJ=function(a,b,c,d,e,f){f=void 0===f?0:f;g.az.call(this);this.G=a;this.j=d;this.u=e;this.u.j[b.I]=this;this.u.subscribe("adactiveviewmeasurable",this.RR,this);this.u.subscribe("adfullyviewableaudiblehalfdurationimpression",this.SR,this);this.u.subscribe("adoverlaymeasurableimpression",this.TR,this);this.u.subscribe("adoverlayunviewableimpression",this.UR,this);this.u.subscribe("adoverlayviewableendofsessionimpression",this.VR,this);this.u.subscribe("adoverlayviewableimmediateimpression",this.WR,
this);this.u.subscribe("adviewableimpression",this.XR,this);this.ad=b;this.Aa=[];this.macros=c;this.S=!1;this.ya=!aCa(new FI(this.G.V()),f);this.C=!1};
zCa=function(a,b){g.cc(a.Aa,b);yCa(a,b,1)};
ACa=function(a,b){if(a.S){var c=a.j,d=a.getDuration();!dJ(c)&&0<d&&(fJ(c,b),eJ(c)?tCa(c,b,d):uCa(c,b,d,!1));a.C||(c=a.j,a=a.getDuration(),!dJ(c)&&0<a&&(vCa(c,b),wCa(c,b,a,!1)))}};
yCa=function(a,b,c){0!=b.length&&(b=g.Ok(b,function(d){return new wA(d,c,d.id)}),a.ma("onAdUxUpdate",b))};
uJ=function(a){var b={};b.abandon=a.abandonCommands&&RI(a.abandonCommands.commands)||[];zI.call(this,a,b)};
vJ=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?!1:f;EI.call(this,"ad-action-interstitial",a,b,c,d);this.j=d;this.UK=e;this.AE=f};
wJ=function(a,b,c,d,e,f){tJ.call(this,a,b,c,d,e,1);this.D=b;this.B=b.j.durationMilliseconds||0;this.xc=null;this.I=f};
xJ=function(a){zI.call(this,a);this.u=ju(this.j.playerVars||"")};
yJ=function(){zI.apply(this,arguments)};
BCa=function(a,b,c,d){this.C=a;this.j=b;this.B=c;this.u=d};
zJ=function(a,b,c,d,e){tJ.call(this,a,b,c,d,e);var f=this;this.I=b;this.B=new g.Xn(function(){f.Qm("load_timeout")},1E4);
g.M(this,this.B);this.D=new Yy(this);g.M(this,this.D)};
AJ=function(a,b,c){if(c&&!c.includes(a.layoutType))return!1;b=g.r(b);for(c=b.next();!c.done;c=b.next())if(!Yz(a.Ea,c.value))return!1;return!0};
CCa=function(a){return null!=(null==a?void 0:a.durationMs)&&0<(null==a?void 0:a.durationMs)};
BJ=function(a){return!!(a.TZ&&a.slot&&a.layout)};
CJ=function(a,b,c){EI.call(this,"ad-message",a,void 0,b,c)};
DJ=function(a,b,c,d,e,f,h,l){tJ.call(this,a,b,c,d,e);var m=this;this.B=b;this.Z=b.j.durationMs||0;this.J=l;this.ea=!1;this.I=this.D=0;this.qa=function(){var n=m.G.getProgressState().current;n<m.D?m.Pm():n>m.I&&m.gj()}};
FCa=function(a,b){if(a.J&&a.ea){a.ea=!1;var c=a.B.j;if(BJ(c)){var d=c.slot;c=c.layout;b=DCa(b);a=g.r(a.J.listeners);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=d,h=c,l=b;EJ(e.j(),f,h,l);ECa(e.j(),f)}}else g.pz(Error("adMessageRenderer is not augmented on termination"))}};
DCa=function(a){switch(a){case "adabandonedreset":return"user_cancelled";case "adended":return"normal";case "aderror":return"error";case void 0:return g.pz(Error("AdNotify abandoned")),"abandoned";default:return g.pz(Error("Unexpected eventType for adNotify exit")),"abandoned"}};
g.FJ=function(a,b){for(var c={},d=g.r(Object.keys(b)),e=d.next();!e.done;c={eF:c.eF},e=d.next())e=e.value,c.eF=b[e],a=a.replace(new RegExp("\\$"+e,"gi"),function(f){return function(){return f.eF}}(c));
return a};
GJ=function(a,b,c,d){this.j=a;this.C=b;this.u=YI(c);this.B=d};
GCa=function(a){for(var b={},c=g.r(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)};
HCa=function(a,b,c,d){new GJ(a,b,c,d)};
HJ=function(a,b,c,d,e,f,h,l,m){tJ.call(this,a,b,c,d,e,1);var n=this;this.eD=!0;this.J=m;this.B=b;this.D=f;this.ea=new Yy(this);g.M(this,this.ea);this.I=new g.Xn(function(){n.Qm("load_timeout")},1E4);
g.M(this,this.I);this.Z=h};
ICa=function(a){if(a.Z&&(a.G.V().experiments.jb("enable_topsoil_wta_for_halftime")||a.G.V().experiments.jb("enable_topsoil_wta_for_halftime_live_infra"))){var b=a.B.B,c=b.C,d=b.B,e=b.j;b=b.D;if(void 0===c)g.oz(Error("Expected ad break start time when a DAI ad starts"));else if(void 0===d)g.oz(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.B.u)}};
KJ=function(a,b){if(null!==a.J){var c=JCa(a);a=g.r(a.J.listeners);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=c;var f=b,h=!1;d.j||"aderror"!==f||(KCa(d,e,[],!1),LCa(d.B(),d.u),MCa(d.B(),d.u),NCa(d.B(),d.u),h=!0);if(d.j&&d.j.layoutId===e){switch(f){case "adabandoned":e="abandoned";break;case "aderror":e="error";break;default:e="normal"}EJ(d.B(),d.u,d.j,e);if(h){e=d.B();h=d.u;IJ(e.pc,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",h);e=g.r(e.Rd);for(f=e.next();!f.done;f=e.next())f.value.Bj(h);ECa(d.B(),
d.u)}d.Ha.get().G.V().K("html5_send_layout_unscheduled_signal_for_externally_managed")&&d.C&&JJ(d.B(),d.u,d.j);d.u=null;d.j=null;d.C=!1}}}};
LJ=function(a){return(a=a.G.getVideoData(2))?a.clientPlaybackNonce:""};
JCa=function(a){if(a=a.B.j.elementId)return a;g.oz(Error("No elementId on VideoAd InstreamVideoAdRenderer"));return""};
OCa=function(a){function b(h,l){h=a.H3;var m=Object.assign({},{});m.FINAL=XI(Xf("1"));m.SLOT_POS=XI(Xf("0"));return $I(h,ZI(m),l)}
function c(h){return null==h?{create:function(){return null}}:{create:function(l,m,n){var p=b(l,m);
m=a.vL(l,p);l=h(l,p,m,n);g.M(l,m);return l}}}
var d=c(function(h,l,m){return new wJ(a.G,h,l,m,a.Hy,a.ib)}),e=c(function(h,l,m){return new DJ(a.G,h,l,m,a.Hy,a.ib,a.vl,a.Io)}),f=c(function(h,l,m){return new zJ(a.G,h,l,m,a.Hy,a.ib)});
this.hX=new BCa({create:function(h,l){var m=$I(b(h,l),ZI(nCa(h)));l=a.vL(h,m);h=new HJ(a.G,h,m,l,a.Hy,a.ib,a.daiEnabled,function(){return new HCa(a.ib,m,a.G,a.yk)},a.Jo,a.wh);
g.M(h,l);return h}},d,e,f)};
MJ=function(a,b){this.u=a;this.j={};this.B=void 0===b?!1:b};
PCa=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}b=Math.max(a.startSecs,0);return{eY:new yo(b,c),SZ:new iA(b,c-b,a.context,a.identifier,a.event,a.j)}};
NJ=function(){this.j=[]};
OJ=function(a,b,c){var d=g.jc(a.j,b);if(0<=d)return b;b=-d-1;return b>=a.j.length||a.j[b]>c?null:a.j[b]};
QCa=function(){this.j=new NJ};
PJ=function(a){this.j=a};
RCa=function(a){a=[a,a.C].filter(function(d){return!!d});
for(var b=g.r(a),c=b.next();!c.done;c=b.next())c.value.deactivate();return a};
SCa=function(a,b,c){this.B=a;this.u=b;this.j=c;a.getCurrentTime()};
TCa=function(a,b,c){a.j&&QJ({daiStateTrigger:{totalCueDurationMs:b,filledAdsDurationMs:c,contentCpn:a.u}})};
UCa=function(a,b){a.j&&QJ({adTrimmingInfo:{contentCpn:a.u,cueIdentifier:b.cueIdentifier||void 0,adMediaInfo:b.tX}})};
VCa=function(a,b){QJ({daiStateTrigger:{errorType:a,contentCpn:b}})};
QJ=function(a){g.Kv("adsClientStateChange",a)};
RJ=function(a){this.G=a;this.adVideoId=this.j=this.videoId=this.adCpn=this.contentCpn=null;this.C=!0;this.u=this.Ze=!1;this.adFormat=null;this.B="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"};
XCa=function(a,b,c,d,e,f){f();var h=a.G.getVideoData(1),l=a.G.getVideoData(2);h&&(a.contentCpn=h.clientPlaybackNonce,a.videoId=h.videoId,a.j=h.I);l&&(a.adCpn=l.clientPlaybackNonce,a.adVideoId=l.videoId,a.adFormat=l.adFormat);a.B=b;0>=d?f():(a.actionType=a.C?c?"unknown_type":"video_to_ad":c?"ad_to_video":"ad_to_ad",a.videoStreamType=e?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD","unknown_type"!==a.actionType&&(a.Ze=!0,(a.G.K("send_csi_info_for_ad_to_video_killswitch")||kB("_start",a.actionType))&&
WCa(a)))};
WCa=function(a){if(a.Ze)if(a.G.K("html5_no_video_to_ad_on_preroll_reset")&&"AD_PLACEMENT_KIND_START"===a.B&&"video_to_ad"===a.actionType)UA("video_to_ad");else if(a.G.K("web_csi_via_jspb")){var b=new wt;g.E(b,21,YCa(a.B));g.E(b,7,4);var c=new ut;g.E(c,8,2);F(b,ut,22,c);g.E(b,53,a.videoStreamType);"ad_to_video"===a.actionType?(a.contentCpn&&g.E(b,76,a.contentCpn),a.videoId&&g.E(b,78,a.videoId)):(a.adCpn&&g.E(b,76,a.adCpn),a.adVideoId&&g.E(b,78,a.adVideoId));a.adFormat&&g.E(b,12,a.adFormat);a.contentCpn&&
g.E(b,8,a.contentCpn);a.videoId&&b.setVideoId(a.videoId);a.adCpn&&g.E(b,28,a.adCpn);a.adVideoId&&g.E(b,20,a.adVideoId);jB(b,a.actionType)}else b={adBreakType:ZCa(a.B),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:a.videoStreamType},"ad_to_video"===a.actionType?(a.contentCpn&&(b.targetCpn=a.contentCpn),a.videoId&&(b.targetVideoId=a.videoId)):(a.adCpn&&(b.targetCpn=a.adCpn),a.adVideoId&&(b.targetVideoId=a.adVideoId)),a.adFormat&&(b.adType=
a.adFormat),a.contentCpn&&(b.clientPlaybackNonce=a.contentCpn),a.videoId&&(b.videoId=a.videoId),a.adCpn&&(b.adClientPlaybackNonce=a.adCpn),a.adVideoId&&(b.adVideoId=a.adVideoId),XA(b,a.actionType)};
ZCa=function(a){switch(a){case "AD_PLACEMENT_KIND_START":return"LATENCY_AD_BREAK_TYPE_PREROLL";case "AD_PLACEMENT_KIND_MILLISECONDS":case "AD_PLACEMENT_KIND_COMMAND_TRIGGERED":case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":return"LATENCY_AD_BREAK_TYPE_MIDROLL";case "AD_PLACEMENT_KIND_END":return"LATENCY_AD_BREAK_TYPE_POSTROLL";default:return"LATENCY_AD_BREAK_TYPE_UNKNOWN"}};
YCa=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 0}};
g.aDa=function(a){return(a=$Ca[a.toString()])?a:"LICENSE"};
SJ=function(){var a=this;this.j=this.u=raa;this.promise=new g.Dh(function(b,c){a.u=b;a.j=c})};
TJ=function(){g.J.call(this);this.u=null;this.S=this.J=!1;this.D=new g.Uf;g.M(this,this.D)};
UJ=function(a){a=a.Zy();return 1>a.length?NaN:a.end(a.length-1)};
bDa=function(a){!a.B&&Dxa()&&(a.C?a.C.then(function(){return bDa(a)}):a.Lf()||(a.B=a.Up()))};
cDa=function(a,b,c){a.Pn()||a.getCurrentTime()>b||10<c||(a.play(),g.vu(function(){cDa(a,a.getCurrentTime(),c+1)},500))};
dDa=function(a,b){a.u&&a.u.equals(b)||(a.u&&a.u.dispose(),a.u=b)};
VJ=function(a){return Bxa(a.Xg(),a.getCurrentTime())};
eDa=function(a,b){if(0===a.hj()||0<a.gg())return!1;var c=0<a.getCurrentTime();return 0<=b&&(a=a.Zy(),a.length||!c)?gE(a,b):c};
WJ=function(a){a.Lf()&&(fDa&&Uu&&0<a.getCurrentTime()&&a.seekTo(0),a.lE(),a.load(),dDa(a,null));delete a.C};
gDa=function(a){var b=a.Xg();return 0<iE(b)&&a.getDuration()?b.end(b.length-1):0};
XJ=function(a){switch(a.gg()){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}};
g.YJ=function(a,b){this.stateData=void 0===b?null:b;this.state=a||64};
ZJ=function(a,b,c){return b===a.state&&c===a.stateData||void 0!==b&&(b&128&&!c||b&2&&b&16)?a:new g.YJ(b,c)};
$J=function(a,b){return ZJ(a,a.state|b)};
aK=function(a,b){return ZJ(a,a.state&~b)};
bK=function(a,b,c){return ZJ(a,(a.state|b)&~c)};
g.V=function(a,b){return!!(a.state&b)};
g.cK=function(a,b){return b.state===a.state&&b.stateData===a.stateData};
g.dK=function(a){return g.V(a,8)&&!g.V(a,2)&&!g.V(a,1024)};
eK=function(a){return a.Tc()&&!g.V(a,16)&&!g.V(a,32)};
g.fK=function(a){return g.V(a,1)&&!g.V(a,2)};
gK=function(a){return g.V(a,128)?-1:g.V(a,2)?0:g.V(a,64)?-1:g.V(a,1)&&!g.V(a,32)?3:g.V(a,8)?1:g.V(a,4)?2:-1};
hK=function(a,b,c,d,e,f,h,l){g.az.call(this);this.qh=a;this.G=b;this.u=d;this.J=this.u.u instanceof zI?this.u.u:null;this.j=null;this.ea=!1;this.D=c;this.Z=(a=b.getVideoData(1))&&a.isLivePlayback||!1;this.Aa=0;this.ya=!1;this.Vn=e;this.Fv=f;this.Fr=h;this.qa=!1;this.daiEnabled=l};
hDa=function(a){if(AI(a.G)){var b=a.G.getVideoData(2);b=a.u.S[b.Hc]||null;if(!b)return a.Em(),!0;(!a.j||a.j&&a.j.ad!==b)&&a.Qx(b)}else if(1===a.G.getPresentingPlayerType()&&a.j)return a.Em(),!0;return!1};
iDa=function(a,b){a.D.wv(a.u.j.j,b,a.UO(),a.VO(),a.isLiveStream())};
iK=function(a){var b=a.qh,c=a.u.j;if(c instanceof uA){if(b.S&&fva(c)&&g.V(b.j.Eb(1),64)){var d=1E3*b.j.getCurrentTime(1)||0;d!=c.start&&c.contains(d)&&c.deactivate()}b.B.has(c)?g.oz(Error(c.toString()+" has already been seen")):(b.Gr.add(c),b.B.set(c,a),vA(c)||b.j.qe([c],1))}else g.oz(Error("Should use AdCueRange instead of CueRange"));a.daiEnabled&&!a.u.I&&(jDa(a,a.WO()),a.u.I=!0)};
jDa=function(a,b){for(var c=jK(a),d=a.u.j.start,e=[],f=g.r(b),h=f.next();!h.done;h=f.next()){h=h.value;if(c<=d)break;var l=kDa(h);e.push({externalVideoId:h.Tf(),originalMediaDurationMs:(1E3*h.u).toString(),trimmedMediaDurationMs:(parseInt(h.j.trimmedMaxNonSkippableAdDurationMs,10)||0).toString()});l=d+l;var m=Math.min(l,c);h.B.C=a.u.j.start;h.B.B=c;if(!lDa(a,h,d,m)||l!==m)break;d=l}b=b.reduce(function(n,p){return n+kDa(p)},0);
TCa(a.Vn,a.u.j.Lv(),b);UCa(a.Vn,{cueIdentifier:a.u.C&&a.u.C.identifier,tX:e})};
kDa=function(a){var b=1E3*a.u;return 0<parseInt(a.j.trimmedMaxNonSkippableAdDurationMs,10)&&parseInt(a.j.trimmedMaxNonSkippableAdDurationMs,10)<b?parseInt(a.j.trimmedMaxNonSkippableAdDurationMs,10):b};
jK=function(a){var b=a.u.j.end;a=OJ(a.Fv,a.u.j.start,b);return Math.min(b,null===a?Infinity:a)};
lDa=function(a,b,c,d){var e=a.Fr.create(b,ZI(mCa(a.u)),a.u.j.j);c=e.IO(c,d);g.Ye(e);if(!c)return!1;a.u.S[c]=b;return!0};
lK=function(a,b){b=void 0===b?!1:b;a.ea=!0;g.Ye(a.j);a.D.Zw();var c=a.u.J;if(null!==c){var d=a.Vn,e=a.u.C&&a.u.C.identifier,f=a.u.j.start,h=jK(a);d.j&&QJ({driftRecoveryInfo:{contentCpn:d.u,cueIdentifier:e||void 0,driftRecoveryMs:c.toString(),breakDurationMs:Math.round(h-f).toString(),driftFromHeadMs:Math.round(1E3*d.B.Sp()).toString()}});a.u.J=null}b||a.daiEnabled?kK(a.qh,!0):a.Z&&a.KM()&&a.zz()?kK(a.qh,!1,mDa(a)):kK(a.qh,!1);iDa(a,!0)};
mDa=function(a){if(a.ya)return function(c){c.seekTo(Infinity,!0,void 0,1)};
var b=Math.floor(g.Ra()/1E3)-a.Aa;return function(c){c.seekTo(c.getCurrentTime()+b,!0,void 0,1)}};
nDa=function(a,b,c){this.j=a;this.u=b;this.B=c};
oDa=function(a,b){a=a&&a.watchEndpointSupportedAuthorizationTokenConfig&&a.watchEndpointSupportedAuthorizationTokenConfig.videoAuthorizationToken&&a.watchEndpointSupportedAuthorizationTokenConfig.videoAuthorizationToken.credentialTransferTokens||[];for(var c=0;c<a.length;++c)if(a[c].scope===b)return a[c].token||void 0};
mK=function(){this.D=[];this.S=[];this.j=[];this.C=[];this.I=[];this.u=new Set;this.Z=new Map};
nK=function(){mK.j||(mK.j=new mK);return mK.j};
sDa=function(a,b,c,d){d=void 0===d?{}:d;Object.values(pDa).includes(b)||(g.pz(new g.Pv("createClientScreen() called with a non-page VE",b)),b=83769);d.isHistoryNavigation||a.j.push({rootVe:b,key:d.key||""});a.D=[];a.S=[];d.BO?qDa(a,b,c,d):rDa(a,b,c,d)};
tDa=function(a,b,c){c=void 0===c?0:c;b.then(function(d){a.u.has(c)&&a.B&&a.B();var e=g.zz(c),f=g.yz(c);if(e&&f){var h;(null==d?0:null==(h=d.response)?0:h.trackingParams)&&g.Dz(a.client,e,f,[g.sz(d.response.trackingParams)]);var l;(null==d?0:null==(l=d.playerResponse)?0:l.trackingParams)&&g.Dz(a.client,e,f,[g.sz(d.playerResponse.trackingParams)])}})};
uDa=function(a,b){oK(a,g.sz(b))};
oK=function(a,b,c,d){d=void 0===d?0:d;if(a.u.has(d))a.D.push([b,c]);else{var e=g.zz(d);c=c||g.yz(d);e&&c&&g.Dz(a.client,e,c,[b])}};
qDa=function(a,b,c,d){d=void 0===d?{}:d;a.u.add(d.layer||0);a.B=function(){rDa(a,b,c,d);var h=g.yz(d.layer);if(h){for(var l=g.r(a.D),m=l.next();!m.done;m=l.next())m=m.value,oK(a,m[0],m[1]||h,d.layer);h=g.r(a.S);for(l=h.next();!l.done;l=h.next()){var n=l.value;l=void 0;l=void 0===l?0:l;m=g.zz(l);var p=n[0]||g.yz(l);if(m&&p){l=a.client;var q=n[1];n={cttAuthInfo:Az(m),Ck:m};g.S("il_via_jspb")?(q=new rt,q.B(m),p=p.getAsJspb(),F(q,bs,2,p),"UNDEFINED_CSN"==m?Cz("visualElementStateChanged",n,void 0,q):gpa(q,
n,l)):(p={csn:m,ve:p.getAsJson(),clientData:q},"UNDEFINED_CSN"==m?Cz("visualElementStateChanged",n,p):l?ny("visualElementStateChanged",p,l,n):g.Kv("visualElementStateChanged",p,n))}}}};
c||g.zz(d.layer)||a.B();if(d.BO)for(var e=g.r(d.BO),f=e.next();!f.done;f=e.next())tDa(a,f.value,d.layer);else g.oz(Error("Delayed screen needs a data promise."))};
rDa=function(a,b,c,d){d=void 0===d?{}:d;d.layer||(d.layer=0);var e=void 0!==d.y3?d.y3:d.layer;var f=g.zz(e);e=g.yz(e);var h=c||e,l;h&&(void 0!==d.parentCsn?l={clientScreenNonce:d.parentCsn,visualElement:h}:f&&"UNDEFINED_CSN"!==f&&(l={clientScreenNonce:f,visualElement:h}));var m;h=g.O("EVENT_ID");"UNDEFINED_CSN"===f&&h&&(m={servletData:{serializedServletEventId:h}});try{var n=yua(a.client,b,l,d.xO,d.cttAuthInfo,m,d.v5a)}catch(p){Wra(p,{tA:b,rootVe:e,parentVisualElement:c,d5a:f,S5a:l,xO:d.xO});g.oz(p);
return}mua(n,b,d.layer,d.cttAuthInfo);if(b=f&&"UNDEFINED_CSN"!==f&&e){a:{b=g.r(Object.values(vDa));for(c=b.next();!c.done;c=b.next())if(g.zz(c.value)===f){b=!0;break a}b=!1}b=!b}b&&zua(a.client,f,e,!0);a.j[a.j.length-1]&&!a.j[a.j.length-1].csn&&(a.j[a.j.length-1].csn=n||"");XA({clientScreenNonce:n});Kz.getInstance().clear();e=g.yz(d.layer);f&&"UNDEFINED_CSN"!==f&&e&&(g.S("web_mark_root_visible")||g.S("music_web_mark_root_visible"))&&g.Ez(n,e);a.u.delete(d.layer||0);a.B=void 0;f=g.r(a.Z);for(n=f.next();!n.done;n=
f.next())b=g.r(n.value),n=b.next().value,b=b.next().value,b.has(d.layer)&&e&&oK(a,n,e,d.layer);for(d=0;d<a.C.length;d++){f=a.C[d];try{f()}catch(p){g.oz(p)}}for(d=a.C.length=0;d<a.I.length;d++){f=a.I[d];try{f()}catch(p){g.oz(p)}}};
pK=function(){this.j={};if(this.u=uma()){var a=g.Ku("CONSISTENCY");a&&wDa(this,{encryptedTokenJarContents:a})}};
wDa=function(a,b){if(b.encryptedTokenJarContents&&(a.j[b.encryptedTokenJarContents]=b,"string"===typeof b.expirationSeconds)){var c=Number(b.expirationSeconds);setTimeout(function(){delete a.j[b.encryptedTokenJarContents]},1E3*c);
a.u&&g.Ju("CONSISTENCY",b.encryptedTokenJarContents,c,void 0,!0)}};
rK=function(){var a=g.O("LOCATION_PLAYABILITY_TOKEN");"TVHTML5"===g.O("INNERTUBE_CLIENT_NAME")&&(this.localStorage=qK(this))&&(a=this.localStorage.get("yt-location-playability-token"));a&&(this.locationPlayabilityToken=a,this.j=void 0)};
qK=function(a){return void 0===a.localStorage?new xv("yt-client-location"):a.localStorage};
g.sK=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d=g.O("INNERTUBE_CONTEXT");if(!d)return g.oz(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};d=g.Hf(d);g.S("web_no_tracking_params_in_shell_killswitch")||delete d.clickTracking;d.client||(d.client={});var e=d.client;"MWEB"===e.clientName&&(e.clientFormFactor=g.O("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");e.screenWidthPoints=window.innerWidth;e.screenHeightPoints=window.innerHeight;e.screenPixelDensity=Math.round(window.devicePixelRatio||
1);e.screenDensityFloat=window.devicePixelRatio||1;e.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var f=void 0===f?!1:f;g.pv.getInstance();var h="USER_INTERFACE_THEME_LIGHT";g.qv(0,165)?h="USER_INTERFACE_THEME_DARK":g.qv(0,174)?h="USER_INTERFACE_THEME_LIGHT":!g.S("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&&(h="USER_INTERFACE_THEME_DARK");f=f?h:zra()||h;e.userInterfaceTheme=
f;if(!b){if(f=Pma())e.connectionType=f;g.S("web_log_effective_connection_type")&&(f=Rma())&&(d.client.effectiveConnectionType=f)}var l;if(g.S("web_log_memory_total_kbytes")&&(null==(l=g.C.navigator)?0:l.deviceMemory)){var m;l=null==(m=g.C.navigator)?void 0:m.deviceMemory;d.client.memoryTotalKbytes=""+1E6*l}m=g.lu(g.C.location.href);!g.S("web_populate_internal_geo_killswitch")&&m.internalcountrycode&&(e.internalGeo=m.internalcountrycode);"MWEB"===e.clientName||"WEB"===e.clientName?(e.mainAppWebInfo=
{graftUrl:g.C.location.href},g.S("kevlar_woffle")&&Lma.j&&(m=Lma.j,e.mainAppWebInfo.pwaInstallabilityStatus=!m.j&&m.u?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),e.mainAppWebInfo.webDisplayMode=nv(),e.mainAppWebInfo.isWebNativeShareAvailable=navigator&&void 0!==navigator.share):"TVHTML5"===e.clientName&&(!g.S("web_lr_app_quality_killswitch")&&(m=g.O("LIVING_ROOM_APP_QUALITY"))&&(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{appQuality:m})),m=g.O("LIVING_ROOM_CERTIFICATION_SCOPE"))&&
(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{certificationScope:m}));if(!g.S("web_populate_time_zone_itc_killswitch")){a:{if("undefined"!==typeof Intl)try{var n=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(D){}n=void 0}n&&(e.timeZone=n)}(n=bu())?e.experimentsToken=n:delete e.experimentsToken;n=cu();pK.j||(pK.j=new pK);d.request=Object.assign({},d.request,{internalExperimentFlags:n,consistencyTokenJars:qf(pK.j.j)});!g.S("web_prequest_context_killswitch")&&(n=g.O("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&
(d.request.externalPrequestContext=n);e=g.pv.getInstance();n=g.qv(0,58);e=e.get("gsml","");d.user=Object.assign({},d.user);n&&(d.user.enableSafetyMode=n);e&&(d.user.lockedSafetyMode=!0);g.S("warm_op_csn_cleanup")?c&&(b=g.zz())&&(d.clientScreenNonce=b):!b&&(b=g.zz())&&(d.clientScreenNonce=b);a&&(d.clickTracking={clickTrackingParams:a});if(a=g.Ga("yt.mdx.remote.remoteClient_"))d.remoteClient=a;rK.getInstance().setLocationOnInnerTubeContext(d);try{var p=ru(),q=p.bid;delete p.bid;d.adSignalsInfo={params:[],
bid:q};for(var u=g.r(Object.entries(p)),w=u.next();!w.done;w=u.next()){var y=g.r(w.value),A=y.next().value,B=y.next().value;p=A;q=B;a=void 0;null==(a=d.adSignalsInfo.params)||a.push({key:p,value:""+q})}}catch(D){g.oz(D)}return d};
tK=function(){this.OS=!0};
uK=function(){tK.apply(this,arguments);this.Jt={}};
wK=function(){vK||(vK=new uK);return vK};
xDa=function(a,b){b?a.Jt.Authorization="Bearer "+b:delete a.Jt.Authorization};
yDa=function(a){return a.isTimeout?"NO_BID":"ERR_BID"};
zDa=function(){var a=null;Kma().then(function(b){return a=b},function(b){return a=yDa(b)});
return a};
ADa=function(){var a=Nh(1E3,"NO_BID");return Ih(Tda([Kma(),a]).bj(yDa),function(){return a.cancel()})};
BDa=function(a){return a.xd?g.qv(g.pv.getInstance(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"};
xK=function(a){this.player=a;this.u=this.j=1};
zK=function(a,b,c,d){var e=void 0===c?{}:c;c=e.sy;e=e.Td;d=void 0===d?"":d;var f=a.player.getVideoData(1),h=a.player.V().Wl,l={AD_BLOCK:a.j++,AD_BREAK_LENGTH:c?c.durationSecs:0,AUTONAV_STATE:BDa(a.player.V()),CA_TYPE:"image",CPN:f.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:1E3*a.player.Sp(),LACT:Nx(),LIVE_INDEX:c?a.u++:1,LIVE_TARGETING_CONTEXT:c&&c.context?c.context:"",MIDROLL_POS:e?Math.round(e.start/1E3):0,MIDROLL_POS_MS:e?Math.round(e.start):0,VIS:a.player.getVisibilityState(),P_H:a.player.gb().Ki().height,
P_W:a.player.gb().Ki().width,YT_REMOTE:h?h.join(","):""};a.player.V().K("enable_undefined_lact_debug_logging")&&-1===Nx()&&g.pz(Error("Unknown LACT returned from ad_break_info_service."));var m=ema(dma);Object.keys(m).forEach(function(p){null!=m[p]&&(l[p.toUpperCase()]=m[p].toString())});
""!==d&&(l.BISCOTTI_ID=d);d={};qu(b)&&(d.sts="19233",(c=a.player.V().forcedExperiments)&&(d.forced_experiments=c));var n=nu(g.Qn(b,l),d);a.player.getVideoData();return 2!==n.split("?").length?Gh(Error("Invalid AdBreakInfo URL")):g.uG(null==f?void 0:f.oauthToken).then(function(p){if(p&&pu()){var q=wK();xDa(q,p)}p=a.player.Jm(q);q=CDa(a,n,l,f.isMdxPlayback);return g.yK(p,q,"/youtubei/v1/player/ad_break").then(function(u){return u})})};
FDa=function(a,b,c,d){a.client||(a.client={});a.client.originalUrl=b;var e=ou(b),f=DDa(b,"X-YouTube-Time-Zone");(e||f)&&"undefined"!==typeof Intl&&(a.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);f=DDa(b,"X-YouTube-Ad-Signals");if(e||f||""!==c){var h={};b=iu(ru(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=[];EDa.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};
IDa=function(a,b){var c=!1;if(""===b)return c;b.split(",").forEach(function(d){var e={},f={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},h="ACTIVE";"!"===d[0]&&(d=d.substring(1),h="INACTIVE");d=d.split("-");3>d.length||(d[0]in GDa&&(f.clientName=GDa[d[0]]),d[1]in HDa&&(f.platform=HDa[d[1]]),f.applicationState=h,f.clientVersion=2<d.length?d[2]:"",e.remoteClient=f,a.remoteContexts?a.remoteContexts.push(e):a.remoteContexts=[e],c=!0)});
return c};
CDa=function(a,b,c,d){var e=c.DRIFT_FROM_HEAD_MS&&!Number.isNaN(c.DRIFT_FROM_HEAD_MS)?Math.trunc(c.DRIFT_FROM_HEAD_MS):0,f=JDa.exec(b);f=null!=f&&2<=f.length?f[1]:"";var h=KDa.test(b),l=LDa.exec(b);l=null!=l&&2<=l.length?l[1]:"";var m=MDa.exec(b);m=null!=m&&2<=m.length&&!Number.isNaN(Number(m[1]))?Number(m[1]):1;var n=NDa.exec(b);n=null!=n&&2<=n.length?n[1]:"0";var p=a.player.V();var q=XF(p.ya);p=p.K("embeds_web_enable_pem_domain_fix_for_ad_requests")?q:"www.youtube-nocookie.com"===q?"www.youtube.com":
q;q=g.sK(a.player.getVideoData(1).Ba,!0);var u="BISCOTTI_ID"in c?c.BISCOTTI_ID:"";FDa(q,b,u.toString(),a.player.V());var w={splay:!1,lactMilliseconds:c.LACT.toString(),playerHeightPixels:Math.trunc(c.P_H),playerWidthPixels:Math.trunc(c.P_W),vis:Math.trunc(c.VIS),signatureTimestamp:19233,autonavState:BDa(a.player.V())};d&&(d={},IDa(d,c.YT_REMOTE)&&(w.mdxContext=d));if(d=ODa.includes(p)?void 0:g.Ku("PREF")){for(var y=d.split(RegExp("[:&]")),A=0,B=y.length;A<B;A++){var D=y[A].split("=");if(("SML"===
D[0].toUpperCase()||"GSML"===D[0].toUpperCase())&&1<D.length&&"TRUE"===D[1].toUpperCase()){q.user.lockedSafetyMode=!0;break}}a:{if("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in PDa)for(d=d.split(RegExp("[:&]")),A=PDa.FLAG_AUTO_CAPTIONS_DEFAULT_ON,y="f"+(1+Math.floor(A/31)).toString(),A=1<<Math.floor(A%31),B=0,D=d.length;B<D;B++){var G=d[B].split("=");if(G[0]===y&&parseInt("0x"+G[1],16)&A){d=!0;break a}}d=!1}w.autoCaptionsDefaultOn=d}b=QDa.exec(b);(b=null!=b&&2<=b.length?b[1]:"")&&l&&(q.user.credentialTransferTokens=
[{token:b,scope:"VIDEO"}]);b={contentPlaybackContext:w};f={adBlock:Math.trunc(c.AD_BLOCK),params:f,breakIndex:m,breakPositionMs:n,clientPlaybackNonce:c.CPN,topLevelDomain:p,isProxyAdTagRequest:h,context:q,adSignalsInfoString:iu(ru(u.toString())),overridePlaybackContext:b};l&&(f.videoId=l);c.LIVE_TARGETING_CONTEXT&&(f.liveTargetingParams=c.LIVE_TARGETING_CONTEXT);c.AD_BREAK_LENGTH&&(f.breakLengthMs=Math.trunc(1E3*c.AD_BREAK_LENGTH).toString());e&&(f.driftFromHeadMs=e.toString());f.currentMediaTimeMs=
Math.round(1E3*a.player.getCurrentTime(1));return f};
AK=function(a,b,c,d,e,f){g.az.call(this);this.I=a;this.u=b;this.D=c;this.C=d;this.j=e;this.B=f};
RDa=function(a,b){var c={isEmpty:!0,XP:!1,Qn:[]};if(!b)return c;b&&b.trackingParams&&uDa(nK(),b.trackingParams);if(b&&b.adThrottled)return c.XP=!0,c;b=b.playerAds;if(!b||!b.length)return c;b=b.map(function(e){return e.adPlacementRenderer}).filter(function(e){return e&&null!=e.renderer});
if(g.Vb(b))return c;if(0<a.j.j.end){var d=a.j.j.end.toString();b.forEach(function(e){(e=e.config&&e.config.adPlacementConfig)&&"AD_PLACEMENT_KIND_MILLISECONDS"==e.kind&&"-1"==e.adTimeOffset.offsetEndMilliseconds&&e.adTimeOffset.offsetEndMilliseconds!=d&&(e.adTimeOffset.offsetEndMilliseconds=d)})}c.Qn=b;
c.isEmpty=!1;return c};
BK=function(){zI.apply(this,arguments)};
CK=function(a,b,c,d,e,f,h,l){hK.call(this,a,b,c,d,e,f,h,l);this.B=d.u;this.C=-1;this.I=null;this.S=SDa(this.KC())};
TDa=function(a){a.C++;var b=a.KC();b?(0<a.C&&a.D.ZK(),a.Qx(b)):lK(a)};
SDa=function(a){return a?UDa.some(function(b){return a instanceof b}):!1};
VDa=function(a){this.j=new nDa(function(b){b=new hK(a.qh,a.G,a.wO(),b,a.Vn,a.Fv,a.Fr,a.daiEnabled);iK(b);return b},function(b){return new AK(a.uG,a.qh,a.G,a.Er,b,a.Vn)},function(b){b=new CK(a.qh,a.G,a.wO(),b,a.Vn,a.Fv,a.Fr,a.daiEnabled);
iK(b);return b})};
WDa=function(a,b){PI.call(this);a.adStart&&a.adStart.adMessageRenderer&&(g.Kv("adNotifyFilled",{notifyCompositeType:"COMPOSITE_AD_TYPE_LINEAR_AD_SEQUENCE"}),QI(this,new yJ(a.adStart.adMessageRenderer)));if(a.linearAds){var c=[];a=g.r(a.linearAds);for(var d=a.next();!d.done;d=a.next()){d=d.value;if(d.instreamVideoAdRenderer){var e=b(d.instreamVideoAdRenderer);QI(this,e);c.push(e.u);d.instreamVideoAdRenderer.isCritical&&(this.u=1)}else d.adActionInterstitialRenderer?(d=new uJ(d.adActionInterstitialRenderer),
QI(this,d)):d.adIntroRenderer&&(d=new xJ(d.adIntroRenderer),QI(this,d),this.u=1);this.j.filter(function(f){return f instanceof OI}).forEach(function(f,h){f instanceof OI&&(h=new JI(h,c),f.B=h)})}}};
YDa=function(a,b){PI.call(this);QI(this,XDa(this,a.adVideoStart));var c=a.linearAd;b=c&&c.instreamVideoAdRenderer?b(c.instreamVideoAdRenderer):null;QI(this,b);(a=a.adVideoEnd)?a.adActionInterstitialRenderer?(this.u=1,a=new uJ(a.adActionInterstitialRenderer)):a=null:a=null;QI(this,a)};
XDa=function(a,b){return null==b?null:b.adActionInterstitialRenderer?(a.u=1,new uJ(b.adActionInterstitialRenderer)):b.adMessageRenderer?(g.Kv("adNotifyFilled",{notifyCompositeType:"COMPOSITE_AD_TYPE_SANDWICHED_LINEAR_AD"}),new yJ(b.adMessageRenderer)):null};
ZDa=function(a,b){this.B=new dCa;this.j=a;this.u=b};
$Da=function(a){this.j=a};
aEa=function(a,b,c,d){try{var e=b.renderer,f=b.config&&b.config.adPlacementConfig,h=e?a.j.create(e,f):null;return new hCa(b,c,h,d)}catch(l){g.oz(l)}};
bEa=function(a){var b=new $Da(a.iX);return{TO:function(){return b}}};
DK=function(a){g.J.call(this);var b=this;this.u=a;this.j=null;g.$e(this,function(){return b.j=null});
var c=Xy(a);if(c){var d=function(){b.j&&b.j(!!Vy())};
this.u.addEventListener(c,d);g.$e(this,function(){b.u.removeEventListener(c,d)})}};
EK=function(a){g.J.call(this);this.j=a};
cEa=function(a){var b=window.document;return g.lG(a.V())?new DK(b):new EK(a)};
dEa=function(a){g.J.call(this);this.FV=new SCa(a.G,a.contentCpn,a.daiEnabled)};
eEa=function(a){FK=a&&a.data};
fEa=function(a){GK=a&&a.data};
gEa=function(a){HK=a&&a.data};
hEa=function(){IK=HK=GK=FK=null};
LK=function(a){g.J.call(this);var b=this;this.md=a;this.Ke=new Map;this.j=new Map;JK(this,"commandExecutorCommand",function(c,d,e){b.Kf(c.commands,d,e)});
KK(this,"commandExecutorCommand",function(c,d,e){iEa(b,c.commands,d,e)});
JK(this,"clickTrackingParams",function(){});
KK(this,"clickTrackingParams",function(){})};
jEa=function(a,b){JK(a,b.Im(),function(c,d,e){d=void 0===d?{}:d;e=void 0===e?{}:e;b.handle(c,d,e)})};
kEa=function(a,b){KK(a,b.Im(),function(c,d,e){b.xo(c,d,e)})};
JK=function(a,b,c){a.isDisposed();a.Ke.get(b)&&g.oz(Error("Extension name "+b+" already registered"));a.Ke.set(b,c)};
KK=function(a,b,c){a.isDisposed();a.j.get(b)&&g.oz(Error("Extension name "+b+" already registered"));a.j.set(b,c)};
iEa=function(a,b,c,d){b=void 0===b?[]:b;a.isDisposed();var e=[],f=[],h=g.r(b);for(b=h.next();!b.done;b=h.next())b=b.value,g.Zu(b,lEa)||g.Zu(b,mEa)?e.push(b):f.push(b);e=g.r(e);for(b=e.next();!b.done;b=e.next())MK(a,b.value,c,d);f=g.r(f);for(b=f.next();!b.done;b=f.next())MK(a,b.value,c,d)};
nEa=function(a,b){a.md.get().Pa("innertubeCommand",{openPopupAction:b})};
oEa=function(a,b){a.md.get().Pa("innertubeCommand",{confirmDialogEndpoint:b})};
MK=function(a,b,c,d){a.isDisposed();b.loggingUrls&&(d&&0<Object.keys(d).length&&g.pz(new g.Pv("Command handling in control flow with additional macros.",{fieldName:"loggingUrls"})),pEa(a,"loggingUrls",b.loggingUrls,c,d));b=g.r(Object.entries(b));for(var e=b.next();!e.done;e=b.next()){var f=g.r(e.value);e=f.next().value;f=f.next().value;"openPopupAction"===e?nEa(a,f):"confirmDialogEndpoint"===e?oEa(a,f):qEa.hasOwnProperty(e)||(d&&0<Object.keys(d).length&&"adPingingEndpoint"!==e&&g.pz(new g.Pv("Command handling in control flow with additional macros.",
{fieldName:e})),pEa(a,e,f,c,d))}};
rEa=function(a,b,c,d,e){e=void 0===e?{}:e;if((a=a.Ke.get(b))&&"function"===typeof a)try{a(c,d,e)}catch(f){g.oz(f)}else b=new g.Pv("Unhandled field",b),g.pz(b)};
pEa=function(a,b,c,d,e){(a=a.j.get(b))||new g.Pv("Unhandled field",b);try{a(c,d,e)}catch(f){g.oz(f)}};
tEa=function(a,b,c,d){for(var e=!1,f=g.r(b.Ej.entries()),h=f.next();!h.done;h=f.next())h=g.r(h.value).next().value,"SLOT_TYPE_PLAYER_BYTES"===h.slotType&&"core"===h.fb&&(e=!0);e?(d=sEa(b,d))?c.mI(d):cA("No triggering layout ID available when attempting to mute."):g.Bh(function(){a.Em()})};
sEa=function(a,b){if(b)return b;a=g.r(a.Ej.entries());for(b=a.next();!b.done;b=a.next()){var c=g.r(b.value);b=c.next().value;c=c.next().value;if("SLOT_TYPE_IN_PLAYER"===b.slotType&&"core"===b.fb)return c.layoutId}};
uEa=function(a){var b=new bJ(a.Vr),c=new cJ(b);return{VY:function(){return b},
WH:function(){return c}}};
NK=function(a){RJ.call(this,a)};
xCa=function(a){switch(a){case "abandon":case "unmuted_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 "audio_audible":return"audio_audible";case "audio_measurable":return"audio_measurable";case "complete":case "unmuted_complete":return"complete";case "end_fullscreen":case "unmuted_end_fullscreen":return"exitfullscreen";
case "first_quartile":case "unmuted_first_quartile":return"firstquartile";case "fullscreen":case "unmuted_fullscreen":return"fullscreen";case "impression":case "unmuted_impression":return"impression";case "midpoint":case "unmuted_midpoint":return"midpoint";case "mute":case "unmuted_mute":return"mute";case "pause":case "unmuted_pause":return"pause";case "progress":case "unmuted_progress":return"progress";case "resume":case "unmuted_resume":return"resume";case "skip":case "unmuted_skip":return"skip";
case "start":case "unmuted_start":return"start";case "third_quartile":case "unmuted_third_quartile":return"thirdquartile";case "unmute":case "unmuted_unmute":return"unmute";default:return null}};
vEa=function(a){this.G=a;var b=Qk(Mn),c=a.Fe();b.B!==c&&((b.B=c)||Rja(b));a.V().K("active_view_stop_starting_measurement_on_loaded")&&vk(Zk().featureSet,"ssmol",1)};
rCa=function(a){On(Qk(Mn),a)};
wEa=function(a){g.J.call(this);this.j=a;this.u=new vEa(a.G)};
xEa=function(a){return function(){return new NK(a.j.G)}};
yEa=function(a){return function(b,c){return new sCa(b,a.u,c,a.j.G,a.j.yk,a.j.daiEnabled)}};
OK=function(a,b,c,d,e){g.az.call(this);var f=this;this.j=b;this.Ba=null;this.eb=c;this.ob=e.wh;this.Ya=e.Iq;this.u=null;this.B=new Map;c=this.j.V().experiments;var h=uEa({Vr:b.getVideoData(1)}),l=new wEa({yk:h.WH(),G:b,daiEnabled:!1});g.M(this,l);this.Gr=new Set;this.ZC=-1;this.Z=[];this.ea=new Map;this.I=new Map;this.J=new Set;this.C=new Yy(this);g.M(this,this.C);this.D=new Yy(this);g.M(this,this.D);this.qa=this.Wa=this.Aa=!1;this.S=g.lG(b.V());this.yb=d;b=new dEa({contentCpn:this.j.getVideoData(1).clientPlaybackNonce,
c5a:this,daiEnabled:!1,G:this.j});g.M(this,b);this.kb=b.FV;this.La=(new QCa).j;var m=Gca(ZI(YI(this.j)));e=new OCa({ib:this,Hy:II(),yk:h.WH(),G:this.j,H3:m,vL:yEa(l),daiEnabled:!1,Jo:e.Jo,wh:this.ob,vl:e.vl,Io:e.Io});this.ya=(new VDa({Er:this.eb,Fr:e.hX,uG:a,qh:this,Hy:II(),wO:xEa(l),Vn:this.kb,Fv:this.La,G:this.j,o6a:m,vL:function(n){return yEa(l)(n,m)},
daiEnabled:!1})).SO();this.Ia=bEa({iX:new ZDa(c,function(n){return f.I.has(n)?f.I.get(n):null})}).TO();
this.Qa=cEa(this.j);g.M(this,this.Qa);this.Gb=rG(this.j.V())?this.j.V().experiments.jb("align_ad_to_video_player_lifecycle_for_bulleit_living_room"):this.j.V().experiments.jb("align_ad_to_video_player_lifecycle_for_bulleit")};
EEa=function(a,b){if(a.j.getVideoData(1).Or||g.O("SERVED_VIA_SPF_HISTORY"))PK(a);else{if(BI(a.j)){var c=zEa(a.j);c.addEventListener("updateKevlarOrC3Companion",eEa);c.addEventListener("updateEngagementPanelAction",fEa);c.addEventListener("changeEngagementPanelVisibility",gEa);window.addEventListener("yt-navigate-start",hEa)}a.C.T(a.j,"applicationplayerstatechange",a.B0);a.C.T(a.j,g.sA("ad"),a.BJ,a);a.C.T(a.j,g.tA("ad"),a.R0,a);a.C.T(a.j,"aduxclicked",a.o0);a.C.T(a.j,"videodatachange",a.l3);b=AEa(b);
b=BEa(a,b);b=CEa(a,b);0<b.length&&DEa(a,b);g.Bh(a.Z5,a)}};
AEa=function(a){return a.filter(function(b){return"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"==(b.config&&b.config.adPlacementConfig&&b.config.adPlacementConfig.kind||null)?(cA("Tries to extract CuePoint triggered AdPlacementRenderer."),!1):!0})};
BEa=function(a,b){a.ea=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.ea.set(c.elementId,c),!1):!0})};
CEa=function(a,b){a.I=new Map;return b.filter(function(c){return(c=c.renderer.remoteSlotsRenderer)&&c.hostElementId?(a.I.set(c.hostElementId,c),!1):!0})};
FEa=function(a,b){return b.every(function(c){c=a.B.get(c);return null==c?(g.oz(Error("AdCueRange without a corresponding AdPlacement.")),!0):c instanceof AK?!1:c instanceof hK?!c.Is():!0})};
PK=function(a){var b=GEa(a);if(0<b.length){var c=g.RE(a.j.V().experiments,"delay_ads_gvi_call_on_bulleit_living_room_ms");0<c&&!a.S&&g.aG(a.j.V())?(c=new g.Xn(function(){HEa(a,b)},c),g.M(a,c),c.start()):g.Bh(function(){HEa(a,b)})}};
IEa=function(a,b){if(!b)return{};(a=!!a.u&&a.u||null)?(a=a.j,b=a.ad.sz()?iJ(a.j,b):{}):b={};return b};
GEa=function(a){for(var b=JEa(a),c=g.r(b),d=c.next();!d.done;d=c.next())a.Gr.delete(d.value);return b};
JEa=function(a){var b=[];a=g.r(a.Gr);for(var c=a.next();!c.done;c=a.next())c=c.value,vA(c)&&b.push(c);return b};
KEa=function(a,b){var c=null;c=void 0===c?null:c;var d=a.Ia,e=d.create;var f=1E3*a.j.getDuration(1);f=new Sua(f,1E3*a.j.getCurrentTime(1)||0,!1,a.j.V().experiments.jb("html5_recognize_predict_start_cue_point"));b=e.call(d,b,f,a.Z.length,c);a.Z=a.Z.concat(b);return b};
HEa=function(a,b){if(!a.isDisposed()){b=g.r(b);for(var c=b.next();!c.done;c=b.next())a.BJ(c.value)}};
DEa=function(a,b){b=KEa(a,b);0==b.length||b.map(function(c){return a.ya.create(c)})};
LEa=function(a){a.Aa||(a.D.T(a.j,"presentingplayerstatechange",a.GV),a.D.T(a.j,"internalAbandon",a.Z_),a.D.T(a.j,"progresssync",a.o3),a.D.T(a.j,"onVolumeChange",a.q3),a.D.T(a.Qa,"fullscreentoggled",a.b1),a.Aa=!0);g.fo(a.j.getRootNode(),"ad-showing");g.fo(a.j.getRootNode(),"ad-interrupting");a.j.V().experiments.jb("enable_html5_teal_ad_badge")&&BI(a.j)&&g.fo(a.j.getRootNode(),"ad-teal-design");a.j.cueVideoByPlayerVars({videoId:"workaround"},2)};
kK=function(a,b,c){var d=!!a.u&&a.u||null,e=d&&d.Is()&&(AI(a.j)||!1);d=b&&d&&d.reset()||null;a.u&&MEa(a,a.u);a.u=null;a.ZC=-1;e&&NEa(a,c);a.qa||a.Ya.ls();b&&d&&(d.JM().B=!1,iK(d))};
NEa=function(a,b){g.$y(a.D);a.Aa=!1;g.ho(a.j.getRootNode(),"ad-showing");a.Gb?(a.qa||a.Ya.ls(),OEa(a),a.j.cueVideoByPlayerVars({},2)):(a.j.cueVideoByPlayerVars({},2),OEa(a));g.ho(a.j.getRootNode(),"ad-interrupting");a.j.V().experiments.jb("enable_html5_teal_ad_badge")&&g.ho(a.j.getRootNode(),"ad-teal-design");b&&b(a.j)};
OEa=function(a){if(a.Wa)!a.S&&g.aG(a.j.V())&&a.j.Qo();else if(a.j.Qo(),!a.S){var b=a.j.Eb(1);g.V(b,4)&&!g.V(b,2)&&a.j.playVideo()}};
MEa=function(a,b){a=a.B;for(var c=g.r(a),d=c.next();!d.done;d=c.next()){d=g.r(d.value);var e=d.next().value;if(d.next().value==b){a.delete(e);break}}g.Ye(b)};
QK=function(a){g.J.call(this);this.u=a};
RK=function(a){QK.call(this,!0);this.j=a};
PEa=function(a){function b(e){return{toString:e}}
var c={},d=a.getVideoData(1);c.CPN=b(function(){return d&&d.clientPlaybackNonce||null});
c.ASR=b(function(){return d&&d.Uk||null});
c.EI=b(function(){return d&&d.eventId||null});
c.AD_CPN=b(function(){var e;return(null==(e=a.getVideoData(2))?void 0:e.clientPlaybackNonce)||""});
c.AD_MT=b(function(){return Math.round(Math.max(0,1E3*a.getCurrentTime(2))).toString()});
c.MT=b(function(){return Math.round(Math.max(0,1E3*a.getCurrentTime(1))).toString()});
c.P_H=b(function(){return a.getPlayerSize().height.toString()});
c.PV_H=c.P_H;c.P_W=b(function(){return a.getPlayerSize().width.toString()});
c.PV_W=c.P_W;c.CONN="0";c.WT=b(function(){return Date.now().toString()});
c.LACT=b(function(){var e=Nx().toString();a.V().K("enable_undefined_lact_debug_logging")&&"-1"===e&&g.pz(Error("Unknown LACT returned from macro.js"));return e});
c.VIS=b(function(){return a.getVisibilityState().toString()});
c.VOL=b(function(){return a.getVolume().toString()});
return c};
QEa=function(a,b){g.J.call(this);var c=this;this.B=[];this.J=!1;this.u=0;this.D=this.I=this.C=!1;this.ea=null;var d=(0,g.Pa)(a,b);this.j=new g.Xn(function(){return d(c.ea)},300);
g.M(this,this.j);this.Z=this.S=Infinity};
REa=function(a,b){if(!b)return!1;for(var c=0;c<b.length;c++){var d=b.item(c);if(d&&a.B.includes(d.identifier))return!0}return!1};
SK=function(){var a="ytp-id-"+SEa.toString();SEa++;return a};
g.TK=function(a){g.J.call(this);this.Pc={};this.Ne={};this.element=this.createElement(a)};
UK=function(a,b,c,d){if("{{"===d.substr(0,2))a.Ne[d]=[b,c];else return d};
TEa=function(a,b){var c=[];if(!b)return c;b=g.r(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,null!=d){var e=d.nodeType;1===e||3===e?c.push(d):d&&"string"===typeof d.F?c.push(a.createElement(d)):d.element?c.push(d.element):"string"===typeof d&&-1!==d.indexOf("\n")?d.split("\n").forEach(function(f,h){0<h&&c.push(g.hh("BR"));c.push(g.ih(f))}):c.push(g.ih(d))}return c};
VK=function(a,b,c,d){if("child"===c){g.jh(b);var e;void 0===d?e=void 0:e=!Array.isArray(d)||d&&"string"===typeof d.F?[d]:d;c=TEa(a,e);c=g.r(c);for(a=c.next();!a.done;a=c.next())b.appendChild(a.value)}else"style"===c?g.zl(b,"cssText",d?d:""):null===d||void 0===d?b.removeAttribute(c):(a=d.toString(),"href"===c&&(a=g.og(g.pg(a))),b.setAttribute(c,a))};
g.W=function(a){g.TK.call(this,a);this.rb=!0;this.Aa=!1;this.listeners=[]};
g.WK=function(a,b){b?a.show():a.hide()};
g.XK=function(a){g.W.call(this,a);this.Ya=new g.az;g.M(this,this.Ya)};
YK=function(a,b,c,d,e,f,h,l){l=void 0===l?null:l;e||"ad-message"===d||"ad-text"===d||g.pz(new g.Pv("The UI component has undefined layoutId.",{componentType:d}));g.XK.call(this,c);this.api=a;this.ib=b;this.macros={};this.componentType=d;this.J=null;this.yb=l;this.layoutId=e;this.j=f;this.bb=h;this.eb=null;this.BK=new RK(this.element);g.M(this,this.BK);this.ob=this.T(this.element,"click",this.onClick);this.ya=[];this.qa=new QEa(this.onClick,this);g.M(this,this.qa);this.Gb=!1;this.Z=null};
ZK=function(a,b){a=void 0===a?null:a;b=void 0===b?null:b;if(null==a)return g.pz(Error("Got null or undefined adText object")),"";var c=g.Ug(a.text);if(!a.isTemplated)return c;if(null==b)return g.pz(Error("Missing required parameters for a templated message")),c;a=g.r(Object.entries(b));for(b=a.next();!b.done;b=a.next()){var d=g.r(b.value);b=d.next().value;d=d.next().value;c=c.replace("{"+b+"}",d)}return c};
UEa=function(a){a=void 0===a?null:a;return null==a||(a=a.thumbnail,null==a||null==a.thumbnails||g.Vb(a.thumbnails)||null==a.thumbnails[0].url)?"":g.Ug(a.thumbnails[0].url)};
VEa=function(a){a=void 0===a?null:a;return null==a||(a=a.thumbnail,null==a||null==a.thumbnails||g.Vb(a.thumbnails)||null==a.thumbnails[0].width||null==a.thumbnails[0].height)?new g.Kg(0,0):new g.Kg(a.thumbnails[0].width||0,a.thumbnails[0].height||0)};
WEa=function(){return{F:"svg",X:{"enable-background":"new 0 0 24 24",height:"48",viewBox:"0 0 24 24",width:"48"},W:[{F:"path",X:{d:"M22,20h-8v-1h7V5H3v3H2V4h20V20z M2,17.32V20h2.73C4.73,18.52,3.51,17.32,2,17.32z M2,13.75v1.79c2.51,0,4.55,2,4.55,4.46 h1.82C8.36,16.55,5.52,13.75,2,13.75z M2,10.18v1.79c4.52,0,8.18,3.6,8.18,8.03H12C12,14.57,7.52,10.18,2,10.18z",fill:"white"}}]}};
g.XEa=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,X:{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"}}]}};
$K=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",X:{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.aL=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},W:[{F:"path",X:{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.bL=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},W:[{F:"path",X:{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"}}]}};
YEa=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},W:[{F:"path",X:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{F:"path",X:{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"}}]}};
ZEa=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},W:[{F:"path",Qb:!0,X:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}};
$Ea=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},W:[{F:"path",Qb:!0,X:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
g.cL=function(){return{F:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},W:[{F:"path",X:{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"}}]}};
aFa=function(){return{F:"svg",X:{height:"100%",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",X:{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"}}]}};
bFa=function(){return{F:"svg",X:{viewBox:"0 0 24 24"},W:[{F:"path",X:{d:"M0 0h24v24H0z",fill:"none"}},{F:"path",X:{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"}}]}};
cFa=function(){return{F:"svg",X:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},W:[{F:"path",X:{d:"M0 0h48v48H0z",fill:"none"}},{F:"path",X:{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"}}]}};
dFa=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,N:"ytp-svg-fill",X:{d:"m 17,23 h 2 V 17 H 17 Z 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 0,18 c -4.41,0 -8,-3.59 -8,-8 0,-4.41 3.59,-8 8,-8 4.41,0 8,3.59 8,8 0,4.41 -3.59,8 -8,8 z M 17,15 h 2 v -2 h -2 z"}}]}};
g.dL=function(){return{F:"svg",X:{viewBox:"0 0 24 24"},W:[{F:"path",X:{d:"M0 0h24v24H0z",fill:"none"}},{F:"path",X:{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"}}]}};
eL=function(){return{F:"svg",X:{height:"100%",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",X:{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"}}]}};
eFa=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},W:[{F:"path",Qb:!0,X:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}};
fL=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,N:"ytp-svg-fill",X:{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.gL=function(){return{F:"svg",X:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},W:[{F:"path",X:{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"}}]}};
hL=function(){return{F:"svg",X:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},W:[{F:"path",X:{d:"M0 0h48v48H0z",fill:"none"}},{F:"path",X:{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"}}]}};
fFa=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,N:"ytp-svg-fill",X:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}};
gFa=function(){return{F:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{F:"path",N:"ytp-svg-fill",X:{"clip-rule":"evenodd",d:"M12 4C9.79 4 8 5.79 8 8C8 10.21 9.79 12 12 12C14.21 12 16 10.21 16 8C16 5.79 14.21 4 12 4ZM14 8C14 6.9 13.1 6 12 6C10.9 6 10 6.9 10 8C10 9.1 10.9 10 12 10C13.1 10 14 9.1 14 8ZM18 17C17.8 16.29 14.7 15 12 15C9.3 15 6.2 16.29 6 17.01V18H18V17ZM4 17C4 14.34 9.33 13 12 13C14.67 13 20 14.34 20 17V20H4V17Z","fill-rule":"evenodd"}}]}};
hFa=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,X:{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"}}]}};
iL=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,N:"ytp-svg-fill",X:{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"}}]}};
iFa=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,N:"ytp-svg-fill",X:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}};
g.jL=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,N:"ytp-svg-fill",X:{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.kL=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,X:{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"}}]}};
g.jFa=function(){return{F:"svg",X:{height:"100%",viewBox:"0 0 16 16",width:"100%"},W:[{F:"path",X:{d:"M13 4L12 3 8 7 4 3 3 4 7 8 3 12 4 13 8 9 12 13 13 12 9 8z",fill:"#fff"}}]}};
kFa=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,N:"ytp-svg-fill",X:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}};
lFa=function(){return{F:"svg",X:{height:"48px",version:"1.1",viewBox:"0 0 48 48",width:"48px",x:"0px",y:"0px"},W:[{F:"path",X:{d:"M45,10v28H3V10H45 M46,9H2v30h44V9L46,9z M5,12v22h38V12H5z M15.21,27.29l-1.41,1.41L8.09,23l5.71-5.71l1.41,1.41L10.91,23  L15.21,27.29z M34.21,28.71l-1.41-1.41L37.09,23l-4.29-4.29l1.41-1.41L39.91,23L34.21,28.71z",fill:"white"}}]}};
lL=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,N:"ytp-svg-fill",X:{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"}}]}};
mL=function(a){if(!a)return null;switch(a.iconType){case "OPEN_IN_NEW":return hL();case "CHECK_BOX":return{F:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},W:[{F:"path",X:{d:"M0 0h24v24H0z",fill:"none"}},{F:"path",X:{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{F:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},W:[{F:"path",X:{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"}},{F:"path",X:{d:"M0 0h24v24H0z",fill:"none"}}]};case "CLOSE":return g.cL();case "INFO_OUTLINE":return cFa();case "REMOVE_CIRCLE":return{F:"svg",X:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},W:[{F:"path",X:{d:"M0 0h24v24H0z",fill:"none"}},{F:"path",X:{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 fL();case "LIKE":return g.dL();case "DISLIKE":return bFa();default:return g.pz(new g.Pv("Unexpected icon:",
a)),null}};
nL=function(a,b,c,d,e,f,h,l,m){f=void 0===f?[]:f;h=void 0===h?"button":h;l=void 0===l?!1:l;f={F:"button",Fa:["ytp-ad-button"].concat(f)};null!=m&&(f.X={tabindex:m});YK.call(this,a,b,f,h,c,d,e);this.u=this.B=this.C=null;this.D=l;this.hide()};
mFa=function(a){var b=null;null!=a.u&&(b=[a.u.serviceEndpoint,a.u.navigationEndpoint].filter(function(c){return null!=c}),a.u.command&&(b=b.concat(a.u.command)));
return b||[]};
oL=function(){g.J.call(this);var a=this;this.j=new Map;this.u=Eoa(function(b){if(b.target&&(b=a.j.get(b.target))&&b)for(var c=0;c<b.length;c++)g.Uw(b[c])})};
nFa=function(){null==pL&&(pL=new oL);return pL};
qL=function(a,b){if(a.simpleText){a:{a=a.simpleText;if(b&&(b=oFa(a))){b=gh("SPAN",null,b);break a}b=g.ih(a)}return b}var c=[];if(a.runs)for(var d=0;d<a.runs.length;d++){var e=a.runs[d];e.text&&c.push(pFa(e,b))}return 1==c.length?c[0]:gh("SPAN",null,c)};
pFa=function(a,b){var c=null,d=a.text;b&&(d=oFa(d)||d);a.bold&&(c=gh("B",null,c||d));a.italics&&(c=gh("I",null,c||d));a.strikethrough&&(c=gh("STRIKE",null,c||d));a.navigationEndpoint&&a.navigationEndpoint.urlEndpoint&&(b=a.navigationEndpoint.urlEndpoint,c=gh("A",null,c||d),g.Bg(c,b.url),"TARGET_NEW_WINDOW"==b.target&&(c.target="_blank"),a=a.navigationEndpoint.loggingUrls)&&(a=a.map(function(e){return e.baseUrl}),nFa().register(c,a),g.fo(c,"ytp-ad-has-logging-urls"));
return c||gh("SPAN",null,d)};
oFa=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(gh("BR")),b.push(a[c]);return b}return null};
rL=function(a,b,c,d,e,f,h,l,m){h=void 0===h?!1:h;l=void 0===l?[]:l;m=void 0===m?"ad-hover-text-button":m;YK.call(this,a,b,{F:"span",Fa:["ytp-ad-hover-text-button"].concat(l)},m,c,d,e);this.button=this.B=null;this.I=h;this.D=f;this.hide()};
sL=function(a){return a&&a.thumbnails&&!g.Vb(a.thumbnails||null)&&a.thumbnails[0].url?g.Ug(a.thumbnails[0].url):""};
tL=function(a,b,c,d,e,f,h){h=void 0===h?!1:h;YK.call(this,a,b,{F:"img",N:"ytp-ad-image"},"ad-image",c,d,e,void 0===f?null:f);this.u=h;this.hide()};
uL=function(a,b,c,d,e,f,h){f=void 0===f?[]:f;h=void 0===h?"confirm-dialog":h;YK.call(this,a,b,{F:"div",Fa:["ytp-ad-confirm-dialog-background"],W:[{F:"div",N:"ytp-ad-confirm-dialog-container",W:[{F:"div",Fa:["ytp-ad-confirm-dialog"].concat(f),X:{role:"dialog",tabindex:"-1"},W:[{F:"div",N:"ytp-ad-confirm-dialog-title",oa:"{{title}}"},{F:"div",N:"ytp-ad-confirm-dialog-messages"},{F:"div",N:"ytp-ad-confirm-dialog-confirm-container",W:[{F:"button",N:"ytp-ad-confirm-dialog-cancel-button",oa:"{{cancelLabel}}"},
{F:"button",N:"ytp-ad-confirm-dialog-confirm-button",oa:"{{confirmLabel}}"}]}]}]},{F:"button",Fa:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],W:[{F:"span",N:"ytp-ad-button-icon",W:[g.cL()]}]}]},h,c,d,e);this.S=this.Da("ytp-ad-confirm-dialog-close-overlay-button");this.D=this.Da("ytp-ad-confirm-dialog-cancel-button");this.I=this.Da("ytp-ad-confirm-dialog-confirm-button");this.ea=this.Da("ytp-ad-confirm-dialog-messages");this.C=null;this.u=new Yy;g.M(this,this.u);
this.B=null;this.hide()};
qFa=function(a,b){if(b.title){var c=g.xA(b.title);a.Oa("title",c)}if(b.dialogMessages){c=g.r(b.dialogMessages);for(var d=c.next();!d.done;d=c.next())d=qL(d.value),a.ea.appendChild(d)}b.cancelLabel&&(c=g.xA(b.cancelLabel),a.Oa("cancelLabel",c),a.u.T(a.D,"click",function(e){return a.NF(e)}));
b.confirmLabel&&(b=g.xA(b.confirmLabel),a.Oa("confirmLabel",b),a.u.T(a.I,"click",function(e){return a.zJ(e)}));
a.u.T(a.S,"click",function(e){return a.yJ(e)})};
vL=function(a,b,c,d,e,f,h){f=void 0===f?[]:f;h=void 0===h?"toggle-button":h;var l=DI("ytp-ad-toggle-button-input");YK.call(this,a,b,{F:"div",Fa:["ytp-ad-toggle-button"].concat(f),W:[{F:"label",N:"ytp-ad-toggle-button-label",X:{"for":l},W:[{F:"span",N:"ytp-ad-toggle-button-icon",X:{role:"button","aria-label":"{{tooltipText}}"},W:[{F:"span",N:"ytp-ad-toggle-button-untoggled-icon",oa:"{{untoggledIconTemplateSpec}}"},{F:"span",N:"ytp-ad-toggle-button-toggled-icon",oa:"{{toggledIconTemplateSpec}}"}]},
{F:"input",N:"ytp-ad-toggle-button-input",X:{id:l,type:"checkbox"}},{F:"span",N:"ytp-ad-toggle-button-text",oa:"{{buttonText}}"},{F:"span",N:"ytp-ad-toggle-button-tooltip",oa:"{{tooltipText}}"}]}]},h,c,d,e);this.C=this.Da("ytp-ad-toggle-button");this.u=this.Da("ytp-ad-toggle-button-input");this.Da("ytp-ad-toggle-button-label");this.ea=this.Da("ytp-ad-toggle-button-icon");this.I=this.Da("ytp-ad-toggle-button-untoggled-icon");this.D=this.Da("ytp-ad-toggle-button-toggled-icon");this.Ba=this.Da("ytp-ad-toggle-button-text");
this.B=null;this.S=!1;this.hide()};
wL=function(a){a.S&&(a.isToggled()?(g.Ll(a.I,!1),g.Ll(a.D,!0)):(g.Ll(a.I,!0),g.Ll(a.D,!1)))};
rFa=function(a,b){var c=null;a.B&&(c=(b?[a.B.defaultServiceEndpoint,a.B.defaultNavigationEndpoint]:[a.B.toggledServiceEndpoint]).filter(function(d){return null!=d}));
return c||[]};
xL=function(a){Yy.call(this);this.j=a;this.T(this.j,"onAdUxUpdate",this.S)};
yL=function(a,b,c,d,e){YK.call(this,a,b,{F:"div",N:"ytp-ad-feedback-dialog-background",W:[{F:"div",N:"ytp-ad-feedback-dialog-container",W:[{F:"div",N:"ytp-ad-feedback-dialog-form",X:{role:"dialog",tabindex:"-1"},W:[{F:"div",N:"ytp-ad-feedback-dialog-title",W:[{F:"span",oa:"{{title}}"}]},{F:"span",N:"ytp-ad-info-dialog-feedback-options-title",oa:"{{reasonsTitle}}"},{F:"div",N:"ytp-ad-info-dialog-feedback-options"},{F:"div",N:"ytp-ad-feedback-dialog-confirm-container",W:[{F:"button",N:"ytp-ad-feedback-dialog-cancel-button",
oa:"{{cancelLabel}}"},{F:"button",N:"ytp-ad-feedback-dialog-confirm-button",oa:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",c,d,e);this.D=[];this.u=null;this.I=this.Da("ytp-ad-feedback-dialog-cancel-button");this.S=this.Da("ytp-ad-feedback-dialog-confirm-button");this.ea=this.Da("ytp-ad-info-dialog-feedback-options");this.Ba=this.Da("ytp-ad-feedback-dialog-title");this.C=this.B=null;this.hide()};
vFa=function(a,b){var c=b.cancelRenderer&&b.cancelRenderer.buttonRenderer||null;c&&(a.u=new nL(a.api,a.ib,a.layoutId,a.j,a.bb,["ytp-ad-feedback-dialog-close-button"],"button"),g.M(a,a.u),a.u.init(DI("button"),c,a.macros),a.u.Ra("click",a.SQ,a),a.u.Ca(a.element));b.title&&(c=g.xA(b.title),a.Oa("title",c));b.reasonsTitle&&(c=g.xA(b.reasonsTitle),a.Oa("reasonsTitle",c));b.reasons&&sFa(a,b.reasons);b.cancelLabel&&(c=g.xA(b.cancelLabel),a.Oa("cancelLabel",c),g.yx(a.I,"click",function(){return a.SQ()}));
b.confirmLabel&&(c=g.xA(b.confirmLabel),a.Oa("confirmLabel",c),g.yx(a.S,"click",function(){return tFa(a)}));
b.undoRenderer&&uFa(a,b.undoRenderer)};
sFa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value;c=d.reason;null==c?g.pz(Error("AdFeedbackReason.reason was not set.")):(d=d.endpoint,null==d?g.pz(Error("AdFeedbackReason.endpoint was not set.")):(c=new wFa(c,d),g.M(a,c),a.ea.appendChild(c.j.element),a.D.push(c)))}};
uFa=function(a,b){if(b=b&&b.buttonRenderer||null)b.serviceEndpoint?(a.B=new nL(a.api,a.ib,a.layoutId,a.j,a.bb,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.M(a,a.B),a.B.init(DI("ad-feedback-undo-mute-button"),b,a.macros),a.B.Ra("click",a.j3,a),a.B.Ca(a.Ba)):g.pz(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint."))};
tFa=function(a){var b=a.D.filter(function(c){return c.isChecked()});
0!==b.length&&(b=b[0].u,a.api.V().K("enable_macro_substitution_on_html5")?a.layoutId?a.bb.executeCommand(b,a.layoutId):g.oz(Error("Missing layoutId for ad feedback dialog.")):zL(a.bb,b,a.macros),a.api.onAdUxClicked("ad-feedback-dialog-confirm-button",a.layoutId),a.ma("a"),a.hide())};
wFa=function(a,b){this.u=b;this.j=new g.XK({F:"label",N:"ytp-ad-feedback-dialog-reason-label",W:[{F:"input",N:"ytp-ad-feedback-dialog-reason-input",X:{type:"radio",name:"feedback-reason-group"}},{F:"span",N:"ytp-ad-feedback-dialog-reason-text",oa:g.xA(a)}]});this.B=this.j.Da("ytp-ad-feedback-dialog-reason-input")};
AL=function(a,b,c,d,e){uL.call(this,a,b,c,d,e,[],"ad-mute-confirm-dialog")};
BL=function(a,b,c,d,e,f){YK.call(this,a,b,{F:"div",N:"ytp-ad-info-dialog-background",W:[{F:"div",N:"ytp-ad-info-dialog-container",W:[{F:"div",N:"ytp-ad-info-dialog-form",X:{role:"dialog",tabindex:"-1"},W:[{F:"div",N:"ytp-ad-info-dialog-title",oa:"{{title}}"},{F:"ul",N:"ytp-ad-info-dialog-ad-reasons"},{F:"div",N:"ytp-ad-info-dialog-message"},{F:"div",N:"ytp-ad-info-dialog-mute-container"},{F:"div",N:"ytp-ad-info-dialog-confirm-container",W:[{F:"button",N:"ytp-ad-info-dialog-confirm-button",oa:"{{confirmLabel}}"}]}]}]}]},
"ad-info-dialog",c,d,e);this.u=this.B=null;this.S=this.Da("ytp-ad-info-dialog-confirm-button");this.Wa=this.Da("ytp-ad-info-dialog-mute-container");this.Qa=this.Da("ytp-ad-info-dialog-message");this.Ia=this.Da("ytp-ad-info-dialog-ad-reasons");this.D=this.C=null;this.Ba=f;this.I=null;this.La=!1;this.ea=null;this.hide()};
xFa=function(a,b){if(b=b.content&&b.content.adFeedbackRenderer||null)a.B=new yL(a.api,a.ib,a.layoutId,a.j,a.bb),g.M(a,a.B),a.B.init(DI("ad-feedback-dialog"),b,a.macros),a.B.Ca(a.Ba),a.B.subscribe("a",function(){return a.ma("c")})};
yFa=function(a,b){if(b=b.content&&b.content.confirmDialogRenderer||null)a.D=new AL(a.api,a.ib,a.layoutId,a.j,a.bb),g.M(a,a.D),a.D.init(DI("ad-mute-confirm-dialog"),b,a.macros),a.D.Ca(a.Ba),a.D.subscribe("b",function(){return a.ma("c")})};
zFa=function(a){a.u&&a.u.Ra("click",a.XM,a);g.yx(a.S,"click",function(){return a.XM()})};
CL=function(a,b,c,d,e,f,h){rL.call(this,a,b,c,d,e,void 0===h?!0:h,!0,["ytp-ad-info-hover-text-button"],"ad-info-hover-text-button");this.u=null;this.C=f;this.hide()};
AFa=function(a,b,c){b=b.dialog&&b.dialog.adInfoDialogRenderer||null;null==b?g.oz(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(a.u=new BL(a.api,a.ib,a.layoutId,a.j,a.bb,a.C),g.M(a,a.u),a.u.init(DI("ad-info-dialog"),b,c),a.u.Ca(a.C),a.u.subscribe("d",function(){return a.ma("f")}),a.u.subscribe("c",function(){return a.ma("e")}))};
CFa=function(a,b,c){null==a.button?g.oz(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(a.B&&g.fo(a.B.element,"ytp-ad-info-hover-text-short"),(b=b&&b.serviceEndpoint&&b.serviceEndpoint.adInfoDialogEndpoint||null)?(AFa(a,b,c),a.button.Ra("click",function(){a.u&&!a.u.rb&&(a.u.show(),BFa(a))})):a.button.Ra("click",function(){return BFa(a)}))};
BFa=function(a){a.api.onAdUxClicked("ad-info-icon-button",a.layoutId)};
DL=function(a,b,c,d,e,f,h){YK.call(this,a,b,{F:"div",N:"ytp-ad-text"},void 0===h?"ad-text":h,c,d,e,void 0===f?null:f);this.u=null;this.hide()};
EL=function(a,b){b&&g.rh(a.element,ZK(a.u,b))};
FL=function(a,b,c,d,e,f,h,l){YK.call(this,a,b,c,d,e,f,h);this.u=l;g.M(this,this.u);this.Ia=this.D=-1};
GL=function(a){a.u&&-1===a.D&&(a.D=a.u.subscribe("h",a.Jq,a),a.Ia=a.u.subscribe("g",a.Ct,a),a.Jq())};
HL=function(a){null!=a.u&&-1!==a.D&&(a.u.Og(a.D),a.u.Og(a.Ia),a.Ia=-1,a.D=-1)};
g.IL=function(a,b,c,d,e,f){g.J.call(this);this.element=a;this.state=null;c||a.hide();this.B=b;this.C=void 0===d?b:d;this.j=f;this.u=e;this.delay=new g.Xn(this.zB,0,this);g.M(this,this.delay)};
JL=function(a,b){a=a.element.element;b?a.setAttribute("aria-hidden","true"):a.removeAttribute("aria-hidden")};
KL=function(a,b,c,d,e,f,h){FL.call(this,a,b,{F:"div",N:"ytp-ad-preview-slot"},"ad-preview",c,d,e,f);var l=this;this.Qa=-1;this.B=new g.XK({F:"span",N:"ytp-ad-preview-container"});g.M(this,this.B);this.C=new DL(this.api,this.ib,this.layoutId,this.j,this.bb,"ytp-ad-preview-text");g.M(this,this.C);this.C.Ca(this.B.element);this.S=new g.XK({F:"span",N:"ytp-ad-preview-image"});g.M(this,this.S);this.I=new tL(this.api,this.ib,this.layoutId,this.j,this.bb);g.M(this,this.I);this.I.Ca(this.S.element);this.S.Ca(this.B.element);
this.B.Ca(this.element);this.ea=new g.IL(this.B,400,!1,100,function(){return l.hide()});
g.M(this,this.ea);this.Ba=0;this.La=!1;this.Wa=h;this.hide()};
LL=function(a){a.ea.show(100);a.show()};
ML=function(a,b,c,d,e,f){FL.call(this,a,b,{F:"div",Fa:["ytp-flyout-cta","ytp-flyout-cta-inactive"],W:[{F:"div",N:"ytp-flyout-cta-icon-container"},{F:"div",N:"ytp-flyout-cta-body",W:[{F:"div",N:"ytp-flyout-cta-text-container",W:[{F:"div",N:"ytp-flyout-cta-headline-container"},{F:"div",N:"ytp-flyout-cta-description-container"}]},{F:"div",N:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",c,d,e,f);this.C=new tL(this.api,this.ib,this.layoutId,this.j,this.bb,"ytp-flyout-cta-icon");g.M(this,this.C);
this.C.Ca(this.Da("ytp-flyout-cta-icon-container"));this.api.V().K("web_rounded_thumbnails")&&this.api.V().K("web_modern_ads")&&this.C.element.classList.add("ytp-flyout-cta-icon-rounded");this.ea=new DL(this.api,this.ib,this.layoutId,this.j,this.bb,"ytp-flyout-cta-headline");g.M(this,this.ea);this.ea.Ca(this.Da("ytp-flyout-cta-headline-container"));this.S=new DL(this.api,this.ib,this.layoutId,this.j,this.bb,"ytp-flyout-cta-description");g.M(this,this.S);this.S.Ca(this.Da("ytp-flyout-cta-description-container"));
a=["ytp-flyout-cta-action-button"];this.api.V().K("web_modern_buttons")&&this.api.V().K("web_modern_ads")&&a.push("ytp-flyout-cta-action-button-rounded");this.B=new nL(this.api,this.ib,this.layoutId,this.j,this.bb,a);g.M(this,this.B);this.B.Ca(this.Da("ytp-flyout-cta-action-button-container"));this.api.V().K("disable_tabbing_before_flyout_ad_elements_appear")&&this.B.element.setAttribute("tabIndex","-1");this.I=null;this.Ba=0;this.hide()};
NL=function(a,b,c,d,e,f){YK.call(this,a,b,{F:"div",N:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",c,d,e,void 0===f?null:f);var h=this;this.u=null;this.C=new vL(this.api,this.ib,this.layoutId,this.j,this.bb,["ytp-ad-instream-user-sentiment-like-button"]);g.M(this,this.C);this.C.Ca(this.element);this.B=new vL(this.api,this.ib,this.layoutId,this.j,this.bb,["ytp-ad-instream-user-sentiment-dislike-button"]);g.M(this,this.B);this.B.Ca(this.element);this.D=new g.IL(this,400,!1,500,
function(){return h.hide()});
g.M(this,this.D);this.hide()};
OL=function(a,b,c,d,e){e=void 0===e?0:e;g.J.call(this);this.B=a;this.u=!1;this.Z=d;this.I=!1;this.j=null;0<b&&(this.j=new g.Xn(this.QN,b,this),g.M(this,this.j));this.D=new g.Xn(this.QN,c,this);g.M(this,this.D);this.S=ska(this.B,e,1,d);g.M(this,this.S);this.J=ska(this.B,0,d,1);g.M(this,this.J);this.C=new Yy;g.M(this,this.C)};
PL=function(a,b,c,d,e,f,h){FL.call(this,a,b,{F:"div",N:"ytp-ad-skip-button-slot"},"skip-button",c,d,e,f);var l=this;this.S=null;this.Ba=!1;this.La=h;this.C=new g.XK({F:"span",Fa:["ytp-ad-skip-button-container"]});g.M(this,this.C);this.C.Ca(this.element);this.B=this.I=null;this.Qa=new g.IL(this.C,500,!1,100,function(){return l.hide()});
g.M(this,this.Qa);this.ea=new OL(this.C.element,15E3,5E3,.5,.5);g.M(this,this.ea);this.hide()};
EFa=function(a){a=a.S&&a.S.adRendererCommands;return(a&&a.clickCommand&&a.clickCommand.commandExecutorCommand&&a.clickCommand.commandExecutorCommand.commands||[]).some(function(b){return b.adLifecycleCommand?DFa(b.adLifecycleCommand):!1})};
DFa=function(a){return"END_LINEAR_AD"===a.action||"END_LINEAR_AD_PLACEMENT"===a.action};
QL=function(a,b,c,d,e,f,h){FL.call(this,a,b,{F:"div",N:"ytp-ad-skip-ad-slot"},"skip-ad",c,d,e,f);this.ea=h;this.I=!1;this.S=0;this.C=this.B=null;this.hide()};
FFa=function(a,b){a.I||(a.I=!0,a.B&&(b?a.B.ea.hide():a.B.hide()),b?(a=a.C,a.Qa.show(),a.show()):a.C.show())};
RL=function(a,b,c,d,e){nL.call(this,a,b,c,d,e,["ytp-ad-visit-advertiser-button"],"visit-advertiser")};
SL=function(a,b,c,d,e,f){f=void 0===f?!1:f;YK.call(this,a,b,{F:"span",N:"ytp-ad-simple-ad-badge"},"simple-ad-badge",c,d,e);this.u=f;this.hide()};
TL=function(a,b,c,d,e){e=void 0===e?!1:e;EI.call(this,"player-overlay",a,{},b,d);this.videoAdDurationSeconds=c;this.j=d;this.AE=e};
UL=function(a,b){g.az.call(this);this.api=a;this.durationMs=b;this.j=null;this.Xc=new Yy(this);g.M(this,this.Xc);this.u=GFa;this.Xc.T(this.api,"presentingplayerstatechange",this.Uc);this.j=this.Xc.T(this.api,"onAdPlaybackProgress",this.hc)};
VL=function(a,b){g.az.call(this);this.ib=b;this.u=!1;this.j=0;this.Xc=new Yy(this);g.M(this,this.Xc);this.durationMs=a;this.timer=new g.Lh(100);g.M(this,this.timer);this.Xc.T(this.timer,"tick",this.hc);this.B={seekableStart:0,seekableEnd:a/1E3,current:0};this.start()};
g.WL=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){b="";0<d&&(b+=" "+d+" Days");if(0<d||0<e)b+=" "+e+" Hours";b+=" "+f+" Minutes";b+=" "+c+" Seconds";d=b.trim()}else{b="";0<d&&(b+=d+":",10>e&&(b+="0"));if(0<d||0<e)b+=e+":",10>f&&(b+="0");b+=f+":";10>c&&(b+="0");d=b+c}return 0<=a?d:"-"+d};
g.XL=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)};
YL=function(a,b,c,d,e,f,h){FL.call(this,a,b,{F:"span",N:"ytp-ad-duration-remaining"},"ad-duration-remaining",c,d,e,f);this.videoAdDurationSeconds=h;this.B=null;this.hide()};
ZL=function(a,b,c,d,e){DL.call(this,a,b,c,d,e,"ytp-video-ad-top-bar-title","ad-title")};
$L=function(a,b){this.u=a;this.j=b};
aM=function(a){return a.j-a.u};
bM=function(a,b){return a.u+b*aM(a)};
cM=function(a,b,c){return aM(a)?g.Eg((b-a.u)/aM(a),0,1):null!=c?c:Infinity};
dM=function(a,b){g.XK.call(this,{F:"div",N:"ytp-ad-persistent-progress-bar-container",W:[{F:"div",N:"ytp-ad-persistent-progress-bar"}]});this.api=a;this.u=b;g.M(this,this.u);this.Cc=this.Da("ytp-ad-persistent-progress-bar");this.j=-1;this.T(a,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()};
eM=function(a,b,c,d,e,f,h){YK.call(this,a,b,{F:"div",N:"ytp-ad-player-overlay",W:[{F:"div",N:"ytp-ad-player-overlay-flyout-cta"},{F:"div",N:"ytp-ad-player-overlay-instream-info"},{F:"div",N:"ytp-ad-player-overlay-skip-or-preview"},{F:"div",N:"ytp-ad-player-overlay-progress-bar"},{F:"div",N:"ytp-ad-player-overlay-instream-user-sentiment"}]},"player-overlay",c,d,e);this.S=h;this.D=this.Da("ytp-ad-player-overlay-flyout-cta");this.api.V().K("web_rounded_thumbnails")&&this.api.V().K("web_modern_ads")&&
this.D.classList.add("ytp-ad-player-overlay-flyout-cta-rounded");this.B=this.Da("ytp-ad-player-overlay-instream-info");this.C=null;HFa(this)&&(a=gh("div"),g.fo(a,"ytp-ad-player-overlay-top-bar-gradients"),b=this.B,b.parentNode&&b.parentNode.insertBefore(a,b),(b=this.api.getVideoData(2))&&b.isListed&&b.title&&(c=new ZL(this.api,this.ib,this.layoutId,this.j,this.bb),c.Ca(a),c.init(DI("ad-title"),{text:b.title},this.macros),g.M(this,c)),this.C=a);this.I=this.Da("ytp-ad-player-overlay-skip-or-preview");
this.Ba=this.Da("ytp-ad-player-overlay-progress-bar");this.ea=this.Da("ytp-ad-player-overlay-instream-user-sentiment");this.u=f;g.M(this,this.u);this.hide()};
HFa=function(a){a=a.api.V();return g.TF(a)&&a.isMobile};
JFa=function(a,b){var c=void 0===c?!0:c;var d=g.O("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=g.pi(window.location.href);e&&d.push(e);e=g.pi(a);if(g.Sb(d,e)||!e&&bb(a,"/"))if(g.S("autoescape_tempdata_url")&&(d=document.createElement("a"),g.Bg(d,a),a=d.href),a&&(a=Eea(a),d=a.indexOf("#"),a=0>d?a:a.slice(0,d)))if(c&&!b.csn&&(b.itct||b.ved)&&(b=Object.assign({csn:g.zz()},b)),f){var f=parseInt(f,10);isFinite(f)&&0<f&&IFa(a,b,f)}else IFa(a,b)};
IFa=function(a,b,c){a="ST-"+Vg(a).toString(36);b=b?g.ui(b):"";c=c||5;bv()&&g.Ju(a,b,c)};
fM=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.wi("/sharing_services",a);g.Uw(d)};
g.gM=function(a){a&=16777215;var b=[(a&16711680)>>16,(a&65280)>>8,a&255];a=b[0];var c=b[1];b=b[2];a=Number(a);c=Number(c);b=Number(b);if(a!=(a&255)||c!=(c&255)||b!=(b&255))throw Error('"('+a+","+c+","+b+'") is not a valid RGB color');c=a<<16|c<<8|b;return 16>a?"#"+(16777216|c).toString(16).slice(1):"#"+c.toString(16)};
g.KFa=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.wi(a,b)+c;var e=void 0===e?Cfa:e;e=Dfa(a,e)||bda;e=e instanceof ng?g.og(e):Bfa(e);void 0!==e&&(d.href=e)};
g.hM=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?!1:c;var d=g.O("EVENT_ID");d&&(b.ei||(b.ei=d));b&&JFa(a,b);c||((window.ytspf||{}).enabled?spf.navigate(a):g.KFa(a))};
g.iM=function(a,b,c,d){c&&JFa(a,c);c=g.pg(a);c=g.og(c);a!=c&&gu(Error("Unsafe window.open URL: "+a));a=c;b=b||Vg(a).toString(36);if(d){var e,f;c="function"===typeof(null==(e=document.featurePolicy)?void 0:e.features)&&(null==(f=document.featurePolicy)?void 0:f.features().includes("attribution-reporting"));a="www.googleadservices.com"!==g.pi(a)?a:c?a+"&nis=6":a+"&nis=5";try{var h=encodeURIComponent(d);window.open(a,b,"attributionsrc="+h);return}catch(l){g.eu(l)}}window.open(a,b)};
g.jM=function(a,b,c){b=LFa(null,b,c);if(b=Cg(b,window,"loginPopup","width=800,height=600,resizable=yes,scrollbars=yes"))c=g.Sx("LOGGED_IN",function(d){g.Tx(g.O("LOGGED_IN_PUBSUB_KEY"));Zt("LOGGED_IN",!0);a(d)}),Zt("LOGGED_IN_PUBSUB_KEY",c),b.moveTo((screen.width-800)/2,(screen.height-600)/2)};
LFa=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=vi(c,"mode",a));a=vi(d,"next",c);b&&(a=vi(a,"feature",b));return a};
OFa=function(a,b){if(!a)return!1;var c,d=null==(c=g.Zu(a,MFa))?void 0:c.signal;if(d&&b.Qt)return!!b.Qt[d];var e;if((c=null==(e=g.Zu(a,NFa))?void 0:e.request)&&b.ZG)return!!b.ZG[c];for(var f in a)if(b.WG[f])return!0;return!1};
PFa=function(a,b){var c,d=null==(c=g.Zu(a,MFa))?void 0:c.signal;if(d&&b.Qt&&(c=b.Qt[d]))return c();var e;if((c=null==(e=g.Zu(a,NFa))?void 0:e.request)&&b.ZG&&(e=b.ZG[c]))return e();for(var f in a)if(b.WG[f]&&(a=b.WG[f]))return a()};
kM=function(a){this.name=a};
lM=function(){this.key=QFa};
RFa=function(){this.providers=new Map;this.j=new Map};
nM=function(a,b,c,d){d=void 0===d?!1:d;if(-1<c.indexOf(b))throw Error("Deps cycle for: "+b);if(a.j.has(b))return a.j.get(b);if(!a.providers.has(b)){if(d)return;throw Error("No provider for: "+b);}d=a.providers.get(b);c.push(b);if(d.zT)var e=d.zT;else if(d.b6)e=d[mM]?SFa(a,d[mM],c):[],e=d.b6.apply(d,g.t(e));else if(d.yT){e=d.yT;var f=e[mM]?SFa(a,e[mM],c):[];e=new (Function.prototype.bind.apply(e,[null].concat(g.t(f))))}else throw Error("Could not resolve providers for: "+b);c.pop();d.m6a||a.j.set(b,
e);return e};
SFa=function(a,b,c){return b?b.map(function(d){return d instanceof lM?nM(a,d.key,c,!0):nM(a,d,c)}):[]};
oM=function(a){return function(){return new a}};
UFa=function(a){var b=void 0===b?"UNKNOWN_INTERFACE":b;if(1===a.length)return a[0];var c=TFa[b];if(c){var d=new RegExp(c),e=g.r(a);for(c=e.next();!c.done;c=e.next())if(c=c.value,d.exec(c))return c}var f=[];Object.entries(TFa).forEach(function(h){var l=g.r(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.r(a);for(c=e.next();!c.done;c=e.next())if(c=c.value,!d.exec(c))return c;return a[0]};
g.pM=function(a){return"/youtubei/v1/"+UFa(a)};
qM=function(){};
rM=function(){};
sM=function(a,b,c,d){this.uH=a;this.ag=b;this.j=c;this.C=d;this.B=void 0;this.u=new Map;a.Qt||(a.Qt={});a.Qt=Object.assign({},VFa,a.Qt)};
WFa=function(a,b,c,d){if(void 0!==sM.j){if(d=sM.j,a=[a!==d.uH,b!==d.ag,c!==d.j,!1,!1,void 0!==d.B],a.some(function(e){return e}))throw new g.Pv("InnerTubeTransportService is already initialized",a);
}else sM.j=new sM(a,b,c,d)};
uM=function(a,b,c){var d=void 0===d?tM:d;var e=PFa(b,a.uH);if(!e)return Gh(new g.Pv("Error: No request builder found for command.",b));var f=e.D(b,c,d);return f?new g.Dh(function(h){var l,m,n;return g.z(function(p){if(1==p.j)return m="cors"===(null==(l=f.Mq)?void 0:l.mode)?"cors":void 0,a.j.OS?(n=XFa(a,f.config,m),p.Ma(2)):g.x(p,YFa(a,f.config,m),3);2!=p.j&&(n=p.u);h(ZFa(a,f,n));g.na(p)})}):Gh(new g.Pv("Error: Failed to build request for command.",b))};
g.yK=function(a,b,c,d,e){e=void 0===e?{Lr:{identity:tM}}:e;var f=void 0===f?!0:f;b.context||(b.context=g.sK(d,f));return new g.Dh(function(h){var l,m,n,p,q;return g.z(function(u){if(1==u.j)return l=$u(c),m=ou(l)?"same-origin":"cors",a.j.OS?(n=XFa(a,e,m),u.Ma(2)):g.x(u,YFa(a,e,m),3);2!=u.j&&(n=u.u);var w=n;p=Ama($u(c),w);q={input:p,Mq:av(p),Xm:b,config:e};h(ZFa(a,q,n));g.na(u)})})};
aGa=function(a,b,c){var d;if(b&&!(null==b?0:null==(d=b.h6a)?0:d.n6a)&&a.C){d=g.r($Fa);for(var e=d.next();!e.done;e=d.next())e=e.value,a.C[e]&&a.C[e].handleResponse(b,c)}};
ZFa=function(a,b,c){var d,e,f,h,l,m,n,p,q,u,w,y,A,B,D,G,H,L,N,K,P,R,X,Q,oa,sa,Ba,ya;return g.z(function(va){switch(va.j){case 1:va.Ma(2);break;case 3:if((d=va.u)&&!d.isExpired())return va.return(Promise.resolve(d.j()));case 2:if(null==(e=b)?0:null==(f=e.Xm)?0:f.context)for(h=g.r([]),l=h.next();!l.done;l=h.next())m=l.value,m.a6a(b.Xm.context);if(null==(n=a.B)||!n.i6a(b.input,b.Xm)){va.Ma(4);break}return g.x(va,a.B.G5a(b.input,b.Xm),5);case 5:return p=va.u,g.S("kevlar_process_local_innertube_responses_killswitch")||
aGa(a,p,b),va.return(p);case 4:return(w=null==(u=b.config)?void 0:u.kh)&&a.u.has(w)&&g.S("web_memoize_inflight_requests")?q=a.u.get(w):(y=JSON.stringify(b.Xm),D=null!=(B=null==(A=b.Mq)?void 0:A.headers)?B:{},b.Mq=Object.assign({},b.Mq,{headers:Object.assign({},D,c)}),G=Object.assign({},b.Mq),"POST"===b.Mq.method&&(G=Object.assign({},G,{body:y})),(null==(H=b.config)?0:H.d4)&&WA(b.config.d4),L=function(){return a.ag.fetch(b.input,G,b.config)},q=L(),w&&a.u.set(w,q)),g.x(va,q,6);
case 6:N=va.u;if(g.S("web_one_platform_error_handling")&&(null==(K=N)?0:null==(P=K.error)?0:P.details))for(R=N.error.details,X=g.r(R),Q=X.next();!Q.done;Q=X.next())oa=Q.value,(sa=oa["@type"])&&-1<bGa.indexOf(sa)&&(delete oa["@type"],N=oa);w&&a.u.has(w)&&a.u.delete(w);(null==(Ba=b.config)?0:Ba.i4)&&WA(b.config.i4);if(N||null==(ya=a.B)||!ya.Y4a(b.input,b.Xm)){va.Ma(7);break}return g.x(va,a.B.F5a(b.input,b.Xm),8);case 8:N=va.u;case 7:return aGa(a,N,b),va.return(N)}})};
YFa=function(a,b,c){var d,e,f,h,l,m,n;return g.z(function(p){if(1==p.j){f=(null==(d=b)?void 0:null==(e=d.Lr)?void 0:e.identity)||tM;m=null==(h=b)?void 0:null==(l=h.Lr)?void 0:l.sessionIndex;var q=Fh(a.j.BC(f,{sessionIndex:m}));return g.x(p,q,2)}n=p.u;return p.return(Promise.resolve(Object.assign({},cGa(c),n)))})};
XFa=function(a,b,c){var d,e=(null==b?void 0:null==(d=b.Lr)?void 0:d.identity)||tM,f;b=null==b?void 0:null==(f=b.Lr)?void 0:f.sessionIndex;a=a.j.BC(e,{sessionIndex:b});return Object.assign({},cGa(c),a)};
cGa=function(a){var b={"Content-Type":"application/json"};g.O("EOM_VISITOR_DATA")?b["X-Goog-EOM-Visitor-Id"]=g.O("EOM_VISITOR_DATA"):g.O("VISITOR_DATA")&&(b["X-Goog-Visitor-Id"]=g.O("VISITOR_DATA"));g.S("track_webfe_innertube_auth_mismatch")&&(b["X-Youtube-Bootstrap-Logged-In"]=g.O("LOGGED_IN",!1));"cors"!==a&&((a=g.O("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(b["X-Youtube-Client-Name"]=a),(a=g.O("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(b["X-Youtube-Client-Version"]=a),(a=g.O("CHROME_CONNECTED_HEADER"))&&
(b["X-Youtube-Chrome-Connected"]=a),(a=g.O("DOMAIN_ADMIN_STATE"))&&(b["X-Youtube-Domain-Admin-State"]=a));return b};
vM=function(){};
wM=function(){};
xM=function(){};
yM=function(){};
zM=function(){};
AM=function(){};
BM=function(a){this.j=a};
g.EM=function(a,b){if(!CM){DM||(DM=new RFa);var c=DM;var d={lK:dGa,yT:BM};c.providers.set(d.lK,d);d={WG:{feedbackEndpoint:oM(xM),modifyChannelNotificationPreferenceEndpoint:oM(yM),playlistEditEndpoint:oM(zM),subscribeEndpoint:oM(vM),unsubscribeEndpoint:oM(wM),webPlayerShareEntityServiceEndpoint:oM(AM)}};var e=rK.getInstance(),f={};e&&(f.client_location=e);void 0===a&&(tK.j||(tK.j=new tK),a=tK.j);void 0===b&&(b=c.resolve(dGa));WFa(d,b,a,f);a={lK:eGa,zT:sM.j};c.providers.set(a.lK,a);CM=c.resolve(eGa)}return CM};
FM=function(){};
fGa=function(){FM.j||(FM.j=new FM);return FM.j};
hGa=function(){if(!g.S("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.S("disable_biscotti_fetch_entirely_for_all_web_clients")&&bv()){var a=g.O("PLAYER_VARS",{});if("1"!=g.Ef(a,"privembed",!1)&&!Cma(a)){var b=function(){GM=!0;"google_ad_status"in window?Zt("DCLKSTAT",1):Zt("DCLKSTAT",2)};
try{g.Rz("//static.doubleclick.net/instream/ad_status.js",b)}catch(c){}gGa.push(g.Tn.Jh(function(){if(!(GM||"google_ad_status"in window)){try{if(b){var c=""+g.Oa(b),d=Iua[c];d&&g.Tx(d)}}catch(e){}GM=!0;Zt("DCLKSTAT",3)}},5E3))}}};
iGa=function(){var a=Number(g.O("DCLKSTAT",0));return isNaN(a)?0:a};
HM=function(){};
jGa=function(){var a=navigator;return new Promise(function(b,c){var d;null!=(d=a.webkitTemporaryStorage)&&d.queryUsageAndQuota?a.webkitTemporaryStorage.queryUsageAndQuota(function(e,f){b({usage:e,quota:f})},function(e){c(e)}):c(Error("webkitTemporaryStorage is not supported."))})};
Iv=function(a,b){var c=this;this.handleError=a;this.j=b;this.u=!1;void 0===self.document||self.addEventListener("beforeunload",function(){c.u=!0});
this.B=Math.random()<=g.au("ytidb_transaction_ended_event_rate_limit",.02)};
lGa=function(a,b){HM.getInstance().estimate().then(function(c){c=Object.assign({},b,{isSw:void 0===self.document,isIframe:self!==self.top,deviceStorageUsageMbytes:kGa(null==c?void 0:c.usage),deviceStorageQuotaMbytes:kGa(null==c?void 0:c.quota)});a.j("idbQuotaExceeded",c)})};
kGa=function(a){return"undefined"===typeof a?"-1":String(Math.ceil(a/1048576))};
IM=function(){this.state=1;this.j=null};
nGa=function(a,b,c,d,e,f){var h=void 0===h?"trayride":h;c?(a.Vc(2),g.Rz(c,function(){if(window[h])mGa(a,d,h,e);else{a.Vc(3);var l=Hua(c),m=document.getElementById(l);m&&(Hoa(l),m.parentNode.removeChild(m));g.pz(new g.Pv("Unable to load Botguard","from "+c))}},f)):b?(f=g.hh("SCRIPT"),f.textContent=b,f.nonce=Dg(),document.head.appendChild(f),document.head.removeChild(f),window[h]?mGa(a,d,h,e):(a.Vc(4),g.pz(new g.Pv("Unable to load Botguard from JS")))):g.pz(new g.Pv("Unable to load VM; no url or JS provided"))};
mGa=function(a,b,c,d){a.Vc(5);try{var e=new Yi({program:b,globalName:c});e.G4.then(function(){a.Vc(6);d&&d(b)});
a.QK(e)}catch(f){a.Vc(7),f instanceof Error&&g.pz(f)}};
oGa=function(a,b){var c=g.JM;a=void 0===a?{}:a;b=void 0===b?3E3:b;return c.fz()?Promise.race([new Promise(function(d,e){setTimeout(function(){setTimeout(function(){setTimeout(function(){e(Error("Timed out waiting for snapshot"))},0)},0)},b)}),
new Promise(function(d){var e=c.fz();e?e.snapshot({py:a}).then(d):d(null)})]):Promise.resolve(null)};
KM=function(){IM.apply(this,arguments)};
MM=function(a){return!LM||(0,g.T)()-LM>a};
pGa=function(a,b){a.program&&(2===g.JM.state?0:MM(b.V3))&&(lB("bg_i",void 0,"player_att"),g.JM.initialize(a,function(){var c=a.serverEnvironment;lB("bg_l",void 0,"player_att");LM=(0,g.T)();for(var d=0;d<ZM.length;d++){var e=ZM[d];try{e(c)}catch(f){}}},b.cspNonce))};
qGa=function(a){a=void 0===a?{}:a;return g.JM.invoke(a)};
rGa=function(a){var b=g.au("botguard_async_snapshot_timeout_ms",3E3);a=void 0===a?{}:a;return oGa(a,b)};
tGa=function(a,b,c,d){var e=window.location.search;if(38===b.qa&&"books"===a.playerStyle)return e=b.videoId.indexOf(":"),g.wi("//play.google.com/books/volumes/"+b.videoId.slice(0,e)+"/content/media",{aid:b.videoId.slice(e+1),sig:b.jU});if(30===b.qa&&"docs"===a.playerStyle)return g.wi("https://docs.google.com/get_video_info",{docid:b.videoId,authuser:b.authUser,authkey:b.authKey,eurl:a.Ce});if(33===b.qa&&"google-live"===a.playerStyle)return g.wi("//google-liveplayer.appspot.com/get_video_info",{key:b.videoId});
"yt"!==a.La&&g.oz(Error("getVideoInfoUrl for invalid namespace: "+a.La));var f={html5:"1",video_id:b.videoId,cpn:b.clientPlaybackNonce,eurl:a.Ce,ps:a.playerStyle,el:oI(b),hl:a.wg,list:b.playlistId,agcid:b.RL,aqi:b.adQueryId,sts:19233,lact:Nx()};Object.assign(f,a.deviceParams);a.forcedExperiments&&(f.forced_experiments=a.forcedExperiments);b.Aa?(f.vvt=b.Aa,b.mdxEnvironment&&(f.mdx_environment=b.mdxEnvironment)):g.sI(b)&&(f.access_token=g.sI(b));b.adFormat&&(f.adformat=b.adFormat);0<=b.slotPosition&&
(f.slot_pos=b.slotPosition);b.breakType&&(f.break_type=b.breakType);null!==b.pJ&&(f.ad_id=b.pJ);null!==b.mK&&(f.ad_sys=b.mK);null!==b.jF&&(f.encoded_ad_playback_context=b.jF);b.NI&&(f.tpra="1");a.captionsLanguagePreference&&(f.cc_lang_pref=a.captionsLanguagePreference);a.kb&&2!==a.kb&&(f.cc_load_policy=a.kb);var h=g.qv(g.pv.getInstance(),65);g.nG(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.ir&&(f.endscreen_ad_tracking=b.ir);(h=a.qa.get(b.videoId))&&h.QA&&(f.ic_track=h.QA);b.Ba&&(f.itct=b.Ba);rI(b)&&(f.autoplay="1");b.mutedAutoplay&&(f.mutedautoplay=b.mutedAutoplay);b.dn&&(f.autonav="1");b.rF&&(f.noiba="1");b.isMdxPlayback&&(f.mdx="1",f.ytr=b.ai);b.mdxControlMode&&(f.mdx_control_mode=b.mdxControlMode);b.Sn&&(f.ytrcc=b.Sn);b.YF&&(f.utpsa="1");b.isFling&&(f.is_fling="1");b.isInlinePlaybackNoAd&&(f.mute="1");b.vnd&&(f.vnd=b.vnd);b.forceAdsUrl&&(h=3===b.forceAdsUrl.split("|").length,f.force_ad_params=
h?b.forceAdsUrl:"||"+b.forceAdsUrl);b.wg&&(f.preload=b.wg);c.width&&(f.width=c.width);c.height&&(f.height=c.height);b.Fi&&(f.splay="1");b.ypcPreview&&(f.ypc_preview="1");pI(b)&&(f.content_v=pI(b));b.Gb&&(f.livemonitor=1);a.authUser&&(f.authuser=a.authUser);a.pageId&&(f.pageid=a.pageId);a.Wa&&(f.ei=a.Wa);a.u&&(f.iframe="1");b.contentCheckOk&&(f.cco="1");b.racyCheckOk&&(f.rco="1");a.C&&b.eG&&(f.live_start_walltime=b.eG);a.C&&b.Gk&&(f.live_manifest_duration=b.Gk);a.C&&b.playerParams&&(f.player_params=
b.playerParams);a.C&&b.cycToken&&(f.cyc=b.cycToken);a.C&&b.UI&&(f.tkn=b.UI);0!==d&&(f.vis=d);a.enableSafetyMode&&(f.enable_safety_mode="1");b.Lb&&(f.kpt=b.Lb);b.cm&&(f.kids_age_up_mode=b.cm);b.kidsAppInfo&&(f.kids_app_info=b.kidsAppInfo);b.Vu&&(f.upg_content_filter_mode="1");a.widgetReferrer&&(f.widget_referrer=a.widgetReferrer.substring(0,128));b.Z?(c=null!=b.Z.latitudeE7&&null!=b.Z.longitudeE7?b.Z.latitudeE7+","+b.Z.longitudeE7:",",c+=","+(b.Z.clientPermissionState||0)+","+(b.Z.locationRadiusMeters||
"")+","+(b.Z.locationOverrideToken||"")):c=null;c&&(f.uloc=c);b.Yl&&(f.internalipoverride=b.Yl);a.embedConfig&&(f.embed_config=a.embedConfig);a.Mj&&(f.co_rel="1");0<a.ancestorOrigins.length&&(f.ancestor_origins=Array.from(a.ancestorOrigins).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.au&&
b.du&&(f.clip=b.au,f.clipt=b.du);b.er&&(f.disable_watch_next="1");b.Yi&&(f.forced_by_var="1");for(var l in f)!sGa.has(l)&&f[l]&&512<String(f[l]).length&&(g.pz(Error("GVI param too long: "+l)),f[l]="");b=a.ya;g.SF(a)&&(b=lA(b.replace(/\b(?:www|web)([.-])/,"tv$1"))||a.ya);a=g.wi(b+"get_video_info",f);e&&(a=lma(a,e));return a};
g.$M=function(a,b){return a.ya+"timedtext_video?ref=player&v="+b.videoId};
g.aN=function(a,b){a.feature=b;return a};
g.bN=function(a,b){b=g.pi(b)||b;a.utm_source="yt-embeds-web";a.utm_medium=b};
uGa=function(a){var b={};a.qG&&(b.ytrext=a.qG);return g.vf(b)?void 0:b};
g.vGa=function(a){var b=this;this.videoData=a;a={};this.u=(a.c1a=function(){var c=[];if(g.JM.isInitialized()){var d="";b.videoData&&b.videoData.jj&&(d=b.videoData.jj+("&r1b="+b.videoData.clientPlaybackNonce));var e={};d=(e.atr_challenge=d,e);lB("bg_v",void 0,"player_att");d=qGa(d);lB("bg_s",void 0,"player_att");d?c.push("r1a="+d):c.push("r1c=2")}else lB("bg_e",void 0,"player_att"),window.trayride||window.botguard?c.push("r1c=1"):c.push("r1c=4");c.push("r1d="+g.JM.getState());return c.join("&")},a.c6a=
function(c){return"r6a="+(Number(c.c)^iGa())},a);
this.videoData&&this.videoData.jj?this.j=ju(this.videoData.jj):this.j={}};
g.wGa=function(a){if(a.videoData&&a.videoData.jj){for(var b=[a.videoData.jj],c=g.r(Object.keys(a.u)),d=c.next();!d.done;d=c.next())d=d.value,a.j[d]&&a.u[d]&&(d=a.u[d](a.j))&&b.push(d);return b.join("&")}return null};
yGa=function(a){var b={};Object.assign(b,a.u);g.S("player_attestation_bg_async")&&(b.c1a=function(){return xGa(a)});
if(a.videoData&&a.videoData.jj){for(var c=[a.videoData.jj],d=g.r(Object.keys(b)),e=d.next();!e.done;e=d.next())e=e.value,a.j[e]&&b[e]&&(e=b[e](a.j))&&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)};
g.cN=function(a,b){pGa(a,{V3:g.RE(b.experiments,"bg_vm_reinit_threshold"),cspNonce:b.cspNonce})};
xGa=function(a){function b(e){return e+"&r1d="+g.JM.getState()}
if(!g.JM.isInitialized())return lB("bg_e",void 0,"player_att"),window.trayride||window.botguard?Promise.resolve(b("r1c=1")):Promise.resolve(b("r1c=4"));var c="";a.videoData&&a.videoData.jj&&(c=a.videoData.jj+("&r1b="+a.videoData.clientPlaybackNonce));a={};var d=(a.atr_challenge=c,a);return new Promise(function(e){lB("bg_v",void 0,"player_att");rGa(d).then(function(f){f?(lB("bg_s",void 0,"player_att"),e(b("r1a="+f))):(lB("bg_e",void 0,"player_att"),e(b("r1c=2")))},function(){lB("bg_e",void 0,"player_att");
e(b("r1c=3"))})})};
g.eN=function(a){var b=a.V(),c=g.dN(b),d=a.Ba;d&&(c.clickTracking={clickTrackingParams:d});d=c.client||{};var e="EMBED",f=oI(a);"leanback"===f?e="WATCH":b.K("gvi_channel_client_screen")&&"profilepage"===f?e="CHANNEL":a.Gb?e="LIVE_MONITOR":"detailpage"===f?e="WATCH_FULL_SCREEN":"adunit"===f?e="ADUNIT":"sponsorshipsoffer"===f&&(e="UNKNOWN");d.clientScreen=e;if(b=a.kidsAppInfo)d.kidsAppInfo=JSON.parse(b);(e=a.cm)&&!b&&(d.kidsAppInfo={contentSettings:{ageUpMode:zGa[e]}});a.Vu&&(d.unpluggedAppInfo={enableFilterMode:!0});
if(b=a.Z)d.unpluggedLocationInfo=b;c.client=d;d=c.request||{};a.wg&&(d.isPrefetch=!0);if(b=a.mdxEnvironment)d.mdxEnvironment=b;if(b=a.mdxControlMode)d.mdxControlMode=AGa[b];c.request=d;d=c.user||{};if(b=a.Aa)d.credentialTransferTokens=[{token:b,scope:"VIDEO"}];if(b=a.Lb)d.delegatePurchases={oauthToken:b},d.kidsParent={oauthToken:b};c.user=d;if(d=a.contextParams)c.activePlayers=[{playerContextParams:d}];if(a=a.clientScreenNonce)c.clientScreenNonce=a;return c};
g.dN=function(a){var b=g.sK(),c=b.client||{};if(a.forcedExperiments){var d=a.forcedExperiments.split(","),e=[];d=g.r(d);for(var f=d.next();!f.done;f=d.next())e.push(Number(f.value));c.experimentIds=e}if(e=a.homeGroupInfo)c.homeGroupInfo=JSON.parse(e);if(e=a.getPlayerType())c.playerType=e;if(e=a.deviceParams.ctheme)c.theme=e;if(e=a.livingRoomAppMode)c.tvAppInfo=Object.assign({},c.tvAppInfo,{livingRoomAppMode:e});e=a.deviceYear;a.K("html5_propagate_device_year")&&e&&(c.tvAppInfo=Object.assign({},c.tvAppInfo,
{deviceYear:e}));if(e=a.livingRoomPoTokenId)c.tvAppInfo=Object.assign({},c.tvAppInfo,{livingRoomPoTokenId:e});b.client=c;c=b.user||{};a.enableSafetyMode&&(c=Object.assign({},c,{enableSafetyMode:!0}));a.pageId&&(c=Object.assign({},c,{onBehalfOfUser:a.pageId}));b.user=c;if(a=a.Ce)b.thirdParty={embedUrl:a};return b};
FGa=function(a,b,c){var d=a.videoId,e=g.eN(a),f=a.V(),h={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(Nx()),referer:document.location.toString(),signatureTimestamp:19233};f.K("enable_undefined_lact_debug_logging")&&"-1"===h.lactMilliseconds&&g.pz(Error("Unknown LACT returned from createContentPlaybackContext."));g.pv.getInstance();a.dn&&(h.autonav=!0);g.qv(0,141)&&(h.autonavState=g.qv(0,140)?"STATE_OFF":"STATE_ON");h.autoCaptionsDefaultOn=g.qv(0,66);rI(a)&&(h.autoplay=!0);f.C&&a.cycToken&&
(h.cycToken=a.cycToken);f.enablePrivacyFilter&&(h.enablePrivacyFilter=!0);a.isFling&&(h.fling=!0);var l=a.forceAdsUrl;if(l){var m={},n=[];l=l.split(",");l=g.r(l);for(var p=l.next();!p.done;p=l.next()){p=p.value;var q=p.split("|");3!==q.length||p.includes("=")||(q[0]="breaktype="+q[0],q[1]="offset="+q[1],q[2]="url="+q[2]);p={adtype:"video_ad"};q=g.r(q);for(var u=q.next();!u.done;u=q.next()){var w=g.r(u.value.split("="));u=w.next().value;w=fa(w);p[u]=w.join("=")}q=p.url;u=p.presetad;w=p.viralresponseurl;
var y=Number(p.campaignid);if("in_display_ad"===p.adtype)q&&(m.url=q),u&&(m.presetAd=u),w&&(m.viralAdResponseUrl=w),y&&(m.viralCampaignId=String(y));else if("video_ad"===p.adtype){var A={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(p.offset)||0)}};if(p=BGa[p.breaktype])A.breakType=p;q&&(A.url=q);u&&(A.presetAd=u);w&&(A.viralAdResponseUrl=w);y&&(A.viralCampaignId=String(y));n.push(A)}}h.forceAdParameters={videoAds:n,inDisplayAd:m}}a.isInlinePlaybackNoAd&&(h.isInlinePlaybackNoAd=!0);a.isLivingRoomDeeplink&&
(h.isLivingRoomDeeplink=!0);m=a.eG;if(null!=m){m={startWalltime:String(m)};if(n=a.Gk)m.manifestDuration=String(n||14400);h.liveContext=m}a.mutedAutoplay&&(h.mutedAutoplay=!0);a.Fi&&(h.splay=!0);m=a.vnd;5===m&&(h.vnd=m);m={};if(n=a.isMdxPlayback)m.triggeredByMdx=n;if(n=a.Sn)m.skippableAdsSupported=n.split(",").includes("ska");if(p=a.ai){n=a.qG;l=[];p=g.r(p.split(","));for(q=p.next();!q.done;q=p.next())if(u=q.value)if((q=u.startsWith("!"))&&(u=u.substr(1)),u=u.split("-"),!(3>u.length)){q={applicationState:q?
"INACTIVE":"ACTIVE",clientFormFactor:CGa[u[1]]||"UNKNOWN_FORM_FACTOR",clientName:DGa[u[0]]||"UNKNOWN_INTERFACE",clientVersion:u[2]||"",platform:EGa[u[1]]||"UNKNOWN_PLATFORM"};u=void 0;if(n){w=void 0;try{w=JSON.parse(n)}catch(B){g.pz(B)}w&&(u={params:[{key:"ms",value:w.ms}]},q.osName=w.os_name,q.userAgent=w.user_agent,q.windowHeightPoints=w.window_height_points,q.windowWidthPoints=w.window_width_points)}l.push({adSignalsInfo:u,remoteClient:q})}m.remoteContexts=l}a.sourceContainerPlaylistId&&(m.mdxPlaybackSourceContext=
{mdxPlaybackContainerInfo:{sourceContainerPlaylistId:a.sourceContainerPlaylistId}});h.mdxContext=m;m=b.width;0<m&&(h.playerWidthPixels=Math.round(m));if(b=b.height)h.playerHeightPixels=Math.round(b);0!==c&&(h.vis=c);if(c=f.widgetReferrer)h.widgetReferrer=c.substring(0,128);g.KF(f)&&!f.K("embeds_enable_sending_ancestor_origins_killswitch")&&h&&(h.ancestorOrigins=f.ancestorOrigins);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);e=a.V();if(f=e.embedConfig)d.serializedThirdPartyEmbedConfig=f;d.captionParams={};f=g.qv(g.pv.getInstance(),65);null!=a.deviceCaptionsOn?d.captionParams.deviceCaptionsOn=a.deviceCaptionsOn:g.nG(e)&&(d.captionParams.deviceCaptionsOn=null!=f?!f:!1);a.aM&&(d.captionParams.deviceCaptionsLangPref=a.aM);a.dK.length?d.captionParams.viewerSelectedCaptionLangs=a.dK:g.jG(e)&&!e.K("web_player_i_see_captions_2_killswitch")&&
(f=g.pya(),null==f?0:f.length)&&(d.captionParams.viewerSelectedCaptionLangs=f);f="onesie"===a.fetchType&&a.K("html5_onesie_attach_po_token");h="onesie"!==a.fetchType&&a.K("html5_non_onesie_attach_po_token");if(f||h)a=a.V(),a.Te&&(d.serviceIntegrityDimensions={},d.serviceIntegrityDimensions.poToken=a.Te);e.K("fetch_att_independently")?(a=!e.K("html5_force_include_bg_data"),d.attestationRequest={omitBotguardData:a}):e.K("html5_exclude_bg_vm_data")&&(d.attestationRequest={omitBotguardData:!MM(g.RE(e.experiments,
"bg_vm_reinit_threshold"))});return d};
HGa=function(a,b){var c,d,e;return g.z(function(f){if(1==f.j)return c={context:g.dN(a.V()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:a.videoId,cpn:a.clientPlaybackNonce}}]},d=g.pM(GGa),g.x(f,g.yK(b,c,d),2);e=f.u;return f.return(e)})};
IGa=function(a,b,c){MM(g.RE(b.experiments,"bg_vm_reinit_threshold"))&&HGa(a,c).then(function(d){d&&(d=d.botguardData)&&g.cN(d,b)},function(d){a.isDisposed()||(d=zG(d),a.va("attf",{error:d.errorCode}))})};
JGa=function(){this.qv={}};
fN=function(a,b,c,d,e){b in a.qv||(c=new g.qA(c,d,{id:b,priority:2,namespace:"appad"}),e.addCueRange(c),a.qv[b]=c)};
gN=function(){g.J.apply(this,arguments);this.C=new Set;this.D={};this.J={};this.j={};this.I={};this.B={};this.u=void 0;this.S=new Set};
hN=function(a){var b=void 0===b?5:b;return a?KGa[a]||b:b};
LGa=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 iN(a)};
iN=function(a,b,c){if("string"===typeof a)return{videoId:a,startSeconds:b,suggestedQuality:c};b={};c=g.r(MGa);for(var d=c.next();!d.done;d=c.next())d=d.value,a[d]&&(b[d]=a[d]);return b};
NGa=function(a,b,c,d){if(g.Ma(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};
jN=function(a,b,c,d){g.J.call(this);this.app=a;this.state=b;this.playerType=d;this.j=!0;this.element=null;c&&(OGa(this),PGa(this))};
OGa=function(a){kN(a,"getInternalApiInterface",a.getInternalApiInterface);kN(a,"cueVideoByPlayerVars",a.cueVideoByPlayerVars);kN(a,"loadVideoByPlayerVars",a.loadVideoByPlayerVars);kN(a,"preloadVideoByPlayerVars",a.preloadVideoByPlayerVars);kN(a,"getAdState",a.getAdState);kN(a,"sendAbandonmentPing",a.sendAbandonmentPing);kN(a,"setLoopRange",a.setLoopRange);kN(a,"getLoopRange",a.getLoopRange);kN(a,"setAutonavState",a.setAutonavState);kN(a,"seekToLiveHead",a.seekToLiveHead);kN(a,"seekToStreamTime",a.seekToStreamTime);
kN(a,"seekToChapterWithAnimation",a.seekToChapterWithAnimation);kN(a,"startSeekCsiAction",a.startSeekCsiAction);kN(a,"getStreamTimeOffset",a.getStreamTimeOffset);kN(a,"getVideoData",a.dZ);kN(a,"setIsExternalPlaylist",a.setIsExternalPlaylist);kN(a,"downloadVideo",a.downloadVideo);kN(a,"queueOfflineAction",a.queueOfflineAction);kN(a,"pauseVideoDownload",a.pauseVideoDownload);kN(a,"resumeVideoDownload",a.resumeVideoDownload);kN(a,"refreshAllVideos",a.refreshAllVideos);kN(a,"refreshAllStaleEntities",
a.refreshAllStaleEntities);kN(a,"deleteVideos",a.deleteVideos);kN(a,"deleteAllVideos",a.deleteAllVideos);kN(a,"isOrchestrationLeader",a.isOrchestrationLeader);kN(a,"getAppState",a.getAppState);kN(a,"addInfoCardXml",a.addInfoCardXml);kN(a,"updateLastActiveTime",a.updateLastActiveTime);kN(a,"setBlackout",a.setBlackout);kN(a,"setUserEngagement",a.setUserEngagement);kN(a,"updateSubtitlesUserSettings",a.updateSubtitlesUserSettings);kN(a,"getPresentingPlayerType",a.getPresentingPlayerType);kN(a,"canPlayType",
a.canPlayType);kN(a,"updatePlaylist",a.updatePlaylist);kN(a,"updateVideoData",a.updateVideoData);kN(a,"updateEnvironmentData",a.updateEnvironmentData);kN(a,"sendVideoStatsEngageEvent",a.sendVideoStatsEngageEvent);kN(a,"setCardsVisible",a.setCardsVisible);kN(a,"productsInVideoVisibilityUpdated",a.productsInVideoVisibilityUpdated);kN(a,"setSafetyMode",a.setSafetyMode);kN(a,"isAtLiveHead",function(b){return a.isAtLiveHead(void 0,b)});
kN(a,"getVideoAspectRatio",a.getVideoAspectRatio);kN(a,"getPreferredQuality",a.getPreferredQuality);kN(a,"setPlaybackQualityRange",a.setPlaybackQualityRange);kN(a,"onAdUxClicked",a.onAdUxClicked);kN(a,"getFeedbackProductData",a.getFeedbackProductData);kN(a,"getStoryboardFrame",a.getStoryboardFrame);kN(a,"getStoryboardFrameIndex",a.getStoryboardFrameIndex);kN(a,"getStoryboardLevel",a.getStoryboardLevel);kN(a,"getNumberOfStoryboardLevels",a.getNumberOfStoryboardLevels);kN(a,"getCaptionWindowContainerId",
a.getCaptionWindowContainerId);kN(a,"getAvailableQualityLabels",a.getAvailableQualityLabels);kN(a,"addUtcCueRange",a.addUtcCueRange);kN(a,"showAirplayPicker",a.showAirplayPicker);kN(a,"addBgVersionChangeCallback",a.addBgVersionChangeCallback);kN(a,"dispatchReduxAction",a.dispatchReduxAction);kN(a,"getPlayerResponse",a.getPlayerResponse);kN(a,"changeMarkerVisibility",a.changeMarkerVisibility);kN(a,"setAutonav",a.setAutonav);kN(a,"isNotServable",a.isNotServable);kN(a,"channelSubscribed",a.channelSubscribed);
kN(a,"channelUnsubscribed",a.channelUnsubscribed);kN(a,"isPictureInPictureAllowed",a.isPictureInPictureAllowed);kN(a,"togglePictureInPicture",a.togglePictureInPicture);kN(a,"supportsGaplessAudio",a.supportsGaplessAudio);kN(a,"enqueueVideoByPlayerVars",function(b){return void a.enqueueVideoByPlayerVars(b)});
kN(a,"clearQueue",a.clearQueue);kN(a,"isFastLoad",function(){return!1});
kN(a,"getAudioTrack",a.JY);kN(a,"setAudioTrack",a.setAudioTrack);kN(a,"getAvailableAudioTracks",a.KY);kN(a,"getMaxPlaybackQuality",a.getMaxPlaybackQuality);kN(a,"getUserPlaybackQualityPreference",a.getUserPlaybackQualityPreference);kN(a,"getStatsForNerds",a.getStatsForNerds);kN(a,"getSubtitlesUserSettings",a.getSubtitlesUserSettings);kN(a,"resetSubtitlesUserSettings",a.resetSubtitlesUserSettings);kN(a,"setMinimized",a.setMinimized);kN(a,"confirmYpcRental",a.confirmYpcRental);kN(a,"setInlinePreview",
a.setInlinePreview);kN(a,"toggleSubtitlesOn",a.toggleSubtitlesOn);kN(a,"handleExternalCall",a.handleExternalCall);kN(a,"isExternalMethodAvailable",a.isExternalMethodAvailable);kN(a,"setScreenLayer",a.setScreenLayer);kN(a,"getCurrentPlaylistSequence",a.getCurrentPlaylistSequence);kN(a,"getPlaylistSequenceForTime",a.getPlaylistSequenceForTime);kN(a,"shouldSendVisibilityState",a.shouldSendVisibilityState);kN(a,"setGlobalCrop",a.setGlobalCrop);kN(a,"syncVolume",a.syncVolume);kN(a,"getVisibilityState",
a.getVisibilityState);kN(a,"isMutedByMutedAutoplay",a.isMutedByMutedAutoplay);kN(a,"setInternalSize",a.setInternalSize)};
PGa=function(a){lN(a,"cueVideoById",a.cueVideoById);lN(a,"loadVideoById",a.loadVideoById);lN(a,"cueVideoByUrl",a.cueVideoByUrl);lN(a,"loadVideoByUrl",a.loadVideoByUrl);lN(a,"playVideo",a.playVideo);lN(a,"pauseVideo",a.pauseVideo);lN(a,"stopVideo",a.stopVideo);lN(a,"clearVideo",a.clearVideo);lN(a,"getVideoBytesLoaded",a.getVideoBytesLoaded);lN(a,"getVideoBytesTotal",a.getVideoBytesTotal);lN(a,"getVideoLoadedFraction",a.getVideoLoadedFraction);lN(a,"getVideoStartBytes",a.getVideoStartBytes);lN(a,"cuePlaylist",
a.cuePlaylist);lN(a,"loadPlaylist",a.loadPlaylist);lN(a,"nextVideo",a.nextVideo);lN(a,"previousVideo",a.previousVideo);lN(a,"playVideoAt",a.playVideoAt);lN(a,"setShuffle",a.setShuffle);lN(a,"setLoop",a.setLoop);lN(a,"getPlaylist",a.aZ);lN(a,"getPlaylistIndex",a.getPlaylistIndex);lN(a,"getPlaylistId",a.getPlaylistId);lN(a,"loadModule",a.loadModule);lN(a,"unloadModule",a.unloadModule);lN(a,"setOption",a.setOption);lN(a,"getOption",a.getOption);lN(a,"getOptions",a.getOptions);lN(a,"mute",a.mute);lN(a,
"unMute",a.unMute);lN(a,"isMuted",a.isMuted);lN(a,"setVolume",a.setVolume);lN(a,"getVolume",a.getVolume);lN(a,"seekTo",a.seekTo);lN(a,"getPlayerMode",a.getPlayerMode);lN(a,"getPlayerState",a.getPlayerState);lN(a,"getPlaybackRate",a.getPlaybackRate);lN(a,"setPlaybackRate",a.setPlaybackRate);lN(a,"getAvailablePlaybackRates",a.getAvailablePlaybackRates);lN(a,"getPlaybackQuality",function(){return a.getPlaybackQuality(1)});
lN(a,"setPlaybackQuality",a.setPlaybackQuality);lN(a,"getAvailableQualityLevels",a.getAvailableQualityLevels);lN(a,"getCurrentTime",a.getCurrentTime);lN(a,"getDuration",a.getDuration);lN(a,"addEventListener",a.qX);lN(a,"removeEventListener",a.X3);lN(a,"getDebugText",a.getDebugText);lN(a,"getVideoData",function(){return QGa(a)});
lN(a,"addCueRange",a.addCueRange);lN(a,"removeCueRange",a.removeCueRange);lN(a,"setSize",a.setSize);lN(a,"getApiInterface",a.getApiInterface);lN(a,"destroy",a.destroy);lN(a,"showVideoInfo",a.showVideoInfo);lN(a,"hideVideoInfo",a.hideVideoInfo);lN(a,"isVideoInfoVisible",a.isVideoInfoVisible);lN(a,"getSphericalProperties",a.getSphericalProperties);lN(a,"setSphericalProperties",a.setSphericalProperties);var b=a.app.V();b.D||(lN(a,"getVideoEmbedCode",a.getVideoEmbedCode),lN(a,"getVideoUrl",a.getVideoUrl));
lN(a,"getMediaReferenceTime",a.getMediaReferenceTime);lN(a,"getSize",a.getSize);b.D||lN(a,"logImaAdEvent",a.logImaAdEvent)};
lN=function(a,b,c){a.state.D[b]=function(){return c.apply(a,g.za.apply(0,arguments))};
a.state.j.hasOwnProperty(b)||kN(a,b,c);a.state.C.add(b)};
mN=function(a,b,c){a.state.J[b]=function(){return c.apply(a,g.za.apply(0,arguments))};
a.state.j.hasOwnProperty(b)||kN(a,b,c);a.state.C.add(b)};
kN=function(a,b,c){a.state.j[b]=function(){return c.apply(a,g.za.apply(0,arguments))}};
zEa=function(a){a.state.u||(a.state.u={addEventListener:function(b,c){RGa(a,b,c)},
removeEventListener:function(b,c){c="string"===typeof c?b+c:b+String(g.Oa(c));var d=a.state.B[c];d&&(a.app.Zn.unsubscribe(b,d),g.Df(a.state.B,c))}});
return a.state.u};
RGa=function(a,b,c){var d="string"===typeof c?b+c:b+String(g.Oa(c));if(!a.state.B[d]){var e;"string"===typeof c?e=function(){var h=g.za.apply(0,arguments);g.Ga(c).apply(window,h)}:e=c;
var f=function(h){e({target:a.state.u,data:h})};
a.state.B[d]=f;a.app.Zn.subscribe(b,f)}};
oN=function(a,b,c){b=g.Eg(Math.floor(b),0,100);isFinite(b)&&nN(a.app,{volume:b,muted:a.isMuted()},c)};
SGa=function(a,b){nN(a.app,{muted:!0,volume:a.getVolume()},b)};
TGa=function(a,b){nN(a.app,{muted:!1,volume:Math.max(5,a.getVolume())},b)};
QGa=function(a,b){b=void 0===b?a.playerType:b;var c={};if(b=g.pN(a.app,b)){b=b.getVideoData();if(b.isPrivate)return{};c.video_id=b.videoId;c.author=b.author;c.title=b.title;c.isPlayable=b.Hk?Mza(b.Hk):!0;c.errorCode=b.errorCode;if(b.u&&b.u.video){c.video_quality=b.u.video.quality;b=b.u.video;var d=[];32<b.fps&&d.push("hfr");b.isHdr()&&d.push("hdr");"bt2020"===b.primaries&&d.push("wcg");c.video_quality_features=d}}if(a=a.getPlaylistId())c.list=a;return c};
g.rN=function(a){var b=qN(a.app.wb());if(b)return b.Ny();a=a.app.wb();a=g.VF(a.G.V())?a.le.get("music"):void 0;return a?a.Ny():null};
sN=function(a,b,c,d){jN.call(this,a,b,!1,d);this.j=!1;c&&(OGa(this),UGa(this),PGa(this))};
UGa=function(a){mN(a,"cueVideoByPlayerVars",function(b,c){a.cueVideoByPlayerVars(tN(a,b),c)});
mN(a,"loadVideoByPlayerVars",function(b,c,d,e){a.loadVideoByPlayerVars(tN(a,b),c,d,e)});
mN(a,"preloadVideoByPlayerVars",function(b,c,d,e){return void a.preloadVideoByPlayerVars(tN(a,b),c,d,e)});
mN(a,"getVideoData",a.kP);mN(a,"seekBy",a.seekBy);mN(a,"mutedAutoplay",a.mutedAutoplay);mN(a,"showControls",a.showControls);mN(a,"hideControls",a.hideControls);mN(a,"cancelPlayback",a.cancelPlayback);mN(a,"getProgressState",a.getProgressState);mN(a,"isInline",a.isInline);mN(a,"setInline",a.setInline);mN(a,"setLoopVideo",a.setLoopVideo);mN(a,"getLoopVideo",a.getLoopVideo);mN(a,"getStoryboardFormat",a.getStoryboardFormat);mN(a,"getVideoContentRect",a.getVideoContentRect);mN(a,"toggleFullscreen",a.toggleFullscreen);
mN(a,"isFullscreen",a.isFullscreen);mN(a,"getVideoStats",a.getVideoStats);mN(a,"getPlayerSize",a.getPlayerSize);mN(a,"toggleSubtitles",a.toggleSubtitles);mN(a,"setCenterCrop",a.setCenterCrop);mN(a,"setFauxFullscreen",a.setFauxFullscreen);mN(a,"handleGlobalKeyDown",a.handleGlobalKeyDown);mN(a,"handleGlobalKeyUp",a.handleGlobalKeyUp);mN(a,"setSizeStyle",a.setSizeStyle);mN(a,"wakeUpControls",a.wakeUpControls)};
tN=function(a,b){var c={};if(a.app.V().S){a=g.r(VGa);for(var d=a.next();!d.done;d=a.next())d=d.value,b.hasOwnProperty(d)&&(c[d]=b[d])}else for(a=g.r(WGa),d=a.next();!d.done;d=a.next())d=d.value,b.hasOwnProperty(d)&&(c[d]=b[d]);return c};
XGa=function(a,b,c){var d=a.app.getIngestionTime(c);if(!d)return 0;a=d-a.app.getCurrentTime(c);return b-a};
g.uN=function(a,b){sN.call(this,a,b,!1);this.OF=this.settingsMenu=null};
g.vN=function(a){a=a.wb();var b=a.le.get("endscreen");return b&&b.Ot()?!0:a.AA()||g.VF(a.G.V())};
g.wN=function(a,b){3===a.getPresentingPlayerType()?a.ma("mdxautoplaycancel"):a.ma("autonavcancel",b)};
g.yN=function(a){var b=xN(a.wb());return a.app.Oh&&!a.isFullscreen()||3===a.getPresentingPlayerType()&&b&&b.hasNext()&&b.Rm()||!!a.getPlaylist()};
g.AN=function(a){return(a=g.zN(a.wb()))?a.NC():{}};
g.YGa=function(a){a=(a=a.getVideoData())&&a.u;return!!a&&!(!a.audio||!a.video)&&"application/x-mpegURL"!==a.mimeType};
g.ZGa=function(a){a=a.getVideoData();return!!a&&!!(a.adaptiveFormats||a.hlsFormats||a.ob)};
g.BN=function(a,b,c){a=a.gb().element;var d=kc(a.children,function(e){e=Number(e.getAttribute("data-layer"));return c-e||1});
0>d&&(d=-(d+1));g.kh(a,b,d);b.setAttribute("data-layer",String(c))};
g.CN=function(a){var b=a.V();if(!b.xd)return!1;var c=a.getVideoData();if(!c||3===a.getPresentingPlayerType())return!1;var d=(!c.isLiveDefaultBroadcast||b.K("allow_poltergust_autoplay"))&&!xI(c);d=c.isLivePlayback&&(!b.K("allow_live_autoplay")||!d);var e=c.isLivePlayback&&b.K("allow_live_autoplay_on_mweb");a=a.getPlaylist();a=!!a&&a.hasNext();var f=c.watchNextResponse&&c.watchNextResponse.playerOverlays||null;f=!!(f&&f.playerOverlayRenderer&&f.playerOverlayRenderer.autoplay);f=c.C&&f;return!c.ypcPreview&&
(!d||e)&&!g.Sb(c.ea,"ypc")&&!a&&(!g.KF(b)||f)};
$Ga=function(a){a=g.pN(a.app);if(!a)return!1;var b=a.getVideoData();if(!b.u||!b.u.video||1080>b.u.video.j||b.mN)return!1;var c=/^qsa/.test(b.clientPlaybackNonce),d="r";0<=b.u.id.indexOf(";")&&(c=/^[a-p]/.test(b.clientPlaybackNonce),d="x");return c?(a.va("iqss",{trigger:d},!0),!0):!1};
g.DN=function(a,b,c,d){d=void 0===d?!1:d;g.XK.call(this,b);var e=this;this.G=a;this.Ba=d;this.J=new g.XD(this);this.Z=new g.IL(this,c,!0,void 0,void 0,function(){e.u&&e.element&&(e.u.getAttribute("aria-haspopup"),e.u.setAttribute("aria-expanded","true"),e.focus())});
g.M(this,this.J);g.M(this,this.Z)};
aHa=function(a){a.u&&(document.activeElement&&g.qh(a.element,document.activeElement)&&(sh(a.u),a.u.focus()),a.u.setAttribute("aria-expanded","false"),a.u=void 0);g.$y(a.J);a.S=void 0};
EN=function(a,b,c){a.Ah()?a.Bb():a.Qc(b,c)};
FN=function(a,b,c,d){d=new g.W({F:"div",Fa:["ytp-linked-account-popup-button"],oa:d,X:{role:"button",tabindex:"0"}});b=new g.W({F:"div",N:"ytp-linked-account-popup",X:{role:"dialog","aria-modal":"true",tabindex:"-1"},W:[{F:"div",N:"ytp-linked-account-popup-title",oa:b},{F:"div",N:"ytp-linked-account-popup-description",oa:c},{F:"div",N:"ytp-linked-account-popup-buttons",W:[d]}]});g.DN.call(this,a,{F:"div",N:"ytp-linked-account-popup-container",W:[b]},100);var e=this;this.dialog=b;g.M(this,this.dialog);
d.Ra("click",function(){e.Bb()});
g.M(this,d);g.BN(this.G,this.element,4);this.hide()};
g.GN=function(a,b,c,d){g.XK.call(this,a);this.priority=b;c&&this.Mg(c);d&&this.Wd(d)};
g.HN=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{F:c?"a":"div",Fa:b,X:a,W:[{F:"div",N:"ytp-menuitem-icon",oa:"{{icon}}"},{F:"div",N:"ytp-menuitem-label",oa:"{{label}}"},{F:"div",N:"ytp-menuitem-content",oa:"{{content}}"}]}};
IN=function(a,b){a.Oa("icon",b)};
JN=function(a){g.GN.call(this,g.HN({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var b=this;this.G=a;this.u=this.j=!1;this.qb=a.Lm();a.Ug(this.element,this,!0);this.T(this.G,"settingsMenuVisibilityChanged",function(c){b.Wb(c)});
this.T(this.G,"videodatachange",this.C);this.Ra("click",this.onClick);this.C()};
KN=function(a){return a?g.xA(a):""};
LN=function(a){g.J.call(this);this.api=a};
MN=function(a){LN.call(this,a);var b=this;kN(a,"setAccountLinkState",function(c){b.setAccountLinkState(c)});
kN(a,"updateAccountLinkingConfig",function(c){b.updateAccountLinkingConfig(c)});
a.addEventListener("videodatachange",function(c,d){b.onVideoDataChange(d)});
a.addEventListener("settingsMenuInitialized",function(){b.menuItem=new JN(b.api);g.M(b,b.menuItem)})};
NN=function(a,b){g.GN.call(this,g.HN({role:"menuitemcheckbox","aria-checked":"false"}),b,a,{F:"div",N:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.Ra("click",this.onClick)};
ON=function(a){var b=a.K("web_player_use_cinematic_label_2")?"Ambient mode":"Cinematic lighting";NN.call(this,b,13);this.G=a;this.j=!1;this.qb=a.Lm();IN(this,{F:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{F:"path",X:{d:"M21 7v10H3V7h18m1-1H2v12h20V6zM11.5 2v3h1V2h-1zm1 17h-1v3h1v-3zM3.79 3 6 5.21l.71-.71L4.5 2.29 3.79 3zm2.92 16.5L6 18.79 3.79 21l.71.71 2.21-2.21zM19.5 2.29 17.29 4.5l.71.71L20.21 3l-.71-.71zm0 19.42.71-.71L18 18.79l-.71.71 2.21 2.21z",fill:"white"}}]});this.subscribe("select",
this.u,this)};
bHa=function(){g.pv.getInstance();return g.qv(0,192)?g.qv(0,190):!0};
PN=function(a){LN.call(this,a);var b=this;this.j=!1;var c;this.K("web_cinematic_watch_settings")&&(null==(c=a.V().webPlayerContextConfig)?0:c.cinematicSettingsAvailable)&&(a.addEventListener("settingsMenuInitialized",function(){b.menuItem=new ON(b.api);g.M(b,b.menuItem);b.menuItem.Ja(b.j)}),kN(a,"updateCinematicSettings",function(d){b.updateCinematicSettings(d)}))};
dHa=function(a){LN.call(this,a);var b=this;this.events=new g.XD(a);g.M(this,this.events);this.K("enable_precise_embargos")&&(this.events.T(a,"videodatachange",function(){var c=b.api.getVideoData();b.api.Gf("embargo",1);(null==c?0:c.cueRanges)&&cHa(b,c)}),this.events.T(a,g.sA("embargo"),function(){b.api.pg("heartbeat.stop",2,"This video isn't available in your current playback area")}))};
eHa=function(a){function b(d){return void 0!==(null==d?void 0:d.embargo)}
var c;return null==(c=a.onEnter)?void 0:c.some(b)};
cHa=function(a,b){if(null==b?0:xI(b)){var c;null==(c=b.cueRanges)||c.filter(function(d){return eHa(d)}).forEach(function(d){var e,f=Number(null==(e=d.playbackPosition)?void 0:e.utcTimeMillis)/1E3,h;
d=f+Number(null==(h=d.duration)?void 0:h.seconds);a.api.addUtcCueRange("embargo",f,d,"embargo",!1)})}};
QN=function(a,b){g.W.call(this,{F:"button",Fa:["ytp-fullerscreen-edu-button","ytp-button"],W:[{F:"div",Fa:["ytp-fullerscreen-edu-text"],oa:"Scroll for details"},{F:"div",Fa:["ytp-fullerscreen-edu-chevron"],W:[{F:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},W:[{F:"path",X:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}]});this.Va=a;this.B=b;this.j=new g.IL(this,250,void 0,100);this.C=this.u=!1;a.vb(this.element,this,61214);this.B=b;g.M(this,this.j);this.T(a,
"fullscreentoggled",this.Ja);this.T(a,"presentingplayerstatechange",this.Ja);this.Ra("click",this.onClick);this.Ja()};
RN=function(a){LN.call(this,a);var b=this;this.events=new g.XD(a);g.M(this,this.events);kN(this.api,"updateFullerscreenEduButtonSubtleModeState",function(d){b.updateFullerscreenEduButtonSubtleModeState(d)});
kN(this.api,"updateFullerscreenEduButtonVisibility",function(d){b.updateFullerscreenEduButtonVisibility(d)});
var c=a.V();a.K("external_fullscreen_with_edu")&&c.externalFullscreen&&hG(c)&&this.events.T(a,"basechromeinitialized",function(){var d=g.rN(a);b.j=new QN(a,d);g.M(b,b.j);d.HB(b.j)})};
fHa=function(a){g.W.call(this,{F:"div",N:"ytp-gated-actions-overlay",W:[{F:"div",N:"ytp-gated-actions-overlay-background",W:[{F:"div",N:"ytp-gated-actions-overlay-background-overlay"}]},{F:"div",N:"ytp-gated-actions-overlay-bar",W:[{F:"div",N:"ytp-gated-actions-overlay-text-container",W:[{F:"div",N:"ytp-gated-actions-overlay-title",oa:"{{title}}"},{F:"div",N:"ytp-gated-actions-overlay-subtitle",oa:"{{subtitle}}"}]},{F:"div",N:"ytp-gated-actions-overlay-button-container"}]}]});this.api=a;this.background=
this.Da("ytp-gated-actions-overlay-background");this.u=this.Da("ytp-gated-actions-overlay-button-container");this.j=[];this.hide()};
iHa=function(a,b){var c=0,d={};for(c=0;c<b.length;d={xx:d.xx},c++){var e=a.j[c];e||(e=new g.W({F:"button",N:"ytp-gated-actions-overlay-button",X:{tabindex:"0"},W:[{F:"div",N:"ytp-gated-actions-overlay-button-title",oa:"{{buttonText}}"}]}),g.M(a,e),e.Ca(a.u),a.j[c]=e);d.xx=g.Zu(b[c],gHa);var f=void 0,h=void 0,l=void 0,m=(null==(f=d.xx)?void 0:f.title)||(null==(h=d.xx)?void 0:null==(l=h.titleFormatted)?void 0:l.content)||"";e.update({buttonText:m});e.Ra("click",function(n){return function(){var p,q=
g.Zu(null==(p=n.xx)?void 0:p.onTap,hHa);q&&a.api.Pa("innertubeCommand",q)}}(d))}for(;c<a.j.length;)a.j.pop().dispose()};
jHa=function(a){LN.call(this,a);var b=this;this.events=new g.XD(a);g.M(this,this.events);this.K("enable_courses_player_overlay_purchase")&&(this.j=new fHa(this.api),g.M(this,this.j),this.events.T(a,"videodatachange",function(){var c,d=null==(c=b.api.getVideoData())?void 0:c.TT;c=b.j;if(d){var e,f,h=(null==(e=d.title)?void 0:e.content)||"";e=(null==(f=d.subtitle)?void 0:f.content)||"";c.update({title:h,subtitle:e});h=d.thumbnail;f="none";if(null==h?0:h.sources){e=0;h=g.r(h.sources);for(var l=h.next();!l.done;l=
h.next())l=l.value,l.width&&l.url&&l.width>e&&(e=l.width,f="url("+l.url+")")}c.background.style.backgroundImage=f;iHa(c,d.actionButtons||[]);c.show()}else c.hide()}),g.BN(this.api,this.j.element,4))};
SN=function(a){LN.call(this,a);var b=this;kN(a,"getAvailableQualityData",function(){return b.getAvailableQualityData()})};
kHa=function(a,b,c){var d=[],e=b?156595:151874;a=g.r(a);for(var f=a.next();!f.done;f=a.next()){var h=f.value;f=h.video;h={formatId:h.id,qualityLabel:f.qualityLabel,quality:f.quality,isPlayable:b};if(f=c.get(f.qualityLabel))h.paygatedQualityDetails={paygatedIndicatorText:f.paygatedIndicatorText,endpoint:f.endpoint,veType:e,trackingParams:f.trackingParams};d.push(h)}return d};
TN=function(a){LN.call(this,a);var b=this;this.useLivingRoomPoToken=!1;this.tb=null;var c;this.useLivingRoomPoToken=!(null==(c=a.V().webPlayerContextConfig)||!c.useLivingRoomPoToken);a.addEventListener("csiinitialized",function(){b.tb=a.Gi();b.K("html5_generate_session_po_token")&&!b.useLivingRoomPoToken&&(b.tb.nh("pot_isc"),b.K("html5_webpo_idle_priority_job")?g.Av(g.Cv(),function(){lHa(b)}):lHa(b))});
a.OK(this)};
lHa=function(a){a.tb.nh("pot_ist");var b=a.api.V(),c=a.K("html5_po_token_enable_webpo_experimental")?"UE0a2bupPZ6aUyyLkkEY":"Z1elNkAKLpSR3oPOUMSN",d=a.K("html5_po_token_enable_webpo_experimental")?"bxNLZUJrsnkb8KzwCOTR":"O43z0dpjhgX20SCx4KAo";c=g.aG(b)?c:d;a.K("html5_placeholder_po_tokens")&&(c="2ZCPXHYZSpebQXqOYNtj");try{if(a.j=wga({kh:c,onError:function(f){g.pz(f)}}),!a.K("html5_generate_content_po_token")){a.j.ready().then(function(){a.tb.nh("pot_if");
mHa(a)});
var e=g.RE(b.experiments,"html5_session_po_token_interval_time_ms");0<e&&(a.u=g.wu(function(){mHa(a)},e))}}catch(f){f instanceof Error&&g.pz(f)}};
mHa=function(a){var b,c,d,e,f;g.z(function(h){if(!a.K("html5_generate_session_po_token")||null==(b=a.j)||!b.isReady()||a.useLivingRoomPoToken)return h.return();c=a.api.V();d=g.O("EOM_VISITOR_DATA")||g.O("VISITOR_DATA");e=c.hm?c.datasyncId:d;f=c.livingRoomPoTokenId||e;c.Te=nHa(a,f);g.na(h)})};
nHa=function(a,b){var c;if(null==(c=a.j)||!c.isReady())return"";try{a.tb.nh("pot_cms");var d=a.j.xw({py:b});a.tb.nh("pot_cmf");a.tb.nh("pot_es");var e=g.xc(d,2);a.tb.nh("pot_ef");return e}catch(f){return g.pz(f),""}};
oHa=function(a){g.J.call(this);this.j=new MN(a);g.M(this,this.j);this.I=new SN(a);g.M(this,this.I);this.J=new TN(a);g.M(this,this.J);this.B=new dHa(a);g.M(this,this.B);this.u=new PN(a);g.M(this,this.u);this.C=new RN(a);g.M(this,this.C);this.D=new jHa(a);g.M(this,this.D)};
UN=function(a){this.Y=a;this.u=this.j=NaN};
VN=function(a,b,c){kB(a,c)||lB(a,b,c);kB(a,"video_to_ad")||lB(a,b,"video_to_ad");kB(a,"ad_to_video")||lB(a,b,"ad_to_video");kB(a,"ad_to_ad")||lB(a,b,"ad_to_ad")};
WN=function(a,b){this.Y=a;this.timerName="";this.C=!1;this.u=this.B=NaN;this.D=new UN(a);this.j=b||null;this.C=!1};
pHa=function(a,b){a.timerName=b};
XN=function(a,b){VN(b,void 0,a.timerName)};
qHa=function(a,b,c){var d=g.QF(b.Sa)&&!b.Sa.D;if(b.Sa.Qi&&(MF(b.Sa)||"shortspage"===b.Sa.Qa||rG(b.Sa)||d)&&!a.C){a.C=!0;a.J=b.clientPlaybackNonce;g.O("TIMING_ACTION")||Zt("TIMING_ACTION",a.Y.csiPageType);a.Y.csiServiceName&&Zt("CSI_SERVICE_NAME",a.Y.csiServiceName);if(a.j){d=a.j.Gi();for(var e=g.r(Object.keys(d)),f=e.next();!f.done;f=e.next())f=f.value,WA(f,d[f],a.timerName);d=a.j.gC;e=g.r(Object.keys(d));for(f=e.next();!f.done;f=e.next())f=f.value,g.ZA(f,d[f],a.timerName);d=a.j;d.j={};d.gC={}}g.ZA("yt_pvis",
mB(),a.timerName);g.ZA("yt_pt","html5",a.timerName);a.I!==b.clientPlaybackNonce||Number.isNaN(a.B)||(kB("_start",a.timerName)?c=BA(a.timerName)._start+a.B:g.pz(new g.Pv("attempted to log gapless pbs before CSI timeline started",{cpn:b.clientPlaybackNonce})));c&&!kB("pbs",a.timerName)&&a.tick("pbs",c)}};
rHa=function(a){if(a.j){var b=a.j;b.j={};b.gC={}}a.C=!1;a.I=void 0;a.B=NaN};
YN=function(a,b){g.az.call(this);this.Sa=a;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.j=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.fg={};this.u=0;if(a=b.session_data)this.sessionData=hu(a,"&");this.index=Math.max(0,Number(b.index)||0);this.loop=!!b.loop;this.startSeconds=Number(b.startSeconds)||0;this.title=b.playlist_title||"";this.description=b.playlist_description||"";this.author=
b.author||b.playlist_author||"";b.video_id&&(this.items[this.index]=b);if(a=b.api)"string"===typeof a&&16===a.length?b.list="PL"+a:b.playlist=a;if(a=b.list)switch(b.listType){case "user_uploads":this.listId=new PG("UU","PLAYER_"+a);break;default:var c=b.playlist_length;c&&(this.length=Number(c)||0);this.listId=g.QG(a);if(a=b.video)this.items=a.slice(0),this.loaded=!0}else if(b.playlist){a=b.playlist.toString().split(",");0<this.index&&(this.items=[]);a=g.r(a);for(c=a.next();!c.done;c=a.next())(c=
c.value)&&this.items.push({video_id:c});this.length=this.items.length;if(a=b.video)this.items=a.slice(0),this.loaded=!0}this.setShuffle(!!b.shuffle);if(a=b.suggestedQuality)this.quality=a;this.fg=KG(b,"playlist_");this.B=(b=b.thumbnail_ids)?b.split(","):[]};
ZN=function(a){return!!(a.playlist||a.list||a.api)};
sHa=function(a){var b=a.index+1;return b>=a.length?0:b};
tHa=function(a){var b=a.index-1;return 0>b?a.length-1:b};
g.$N=function(a,b,c,d){b=void 0!==b?b:a.index;b=a.items&&b in a.items?a.items[a.order[b]]:null;var e=null;b&&(c&&(b.autoplay="1"),d&&(b.autonav="1"),e=new g.FH(a.Sa,b),g.M(a,e),e.startSeconds=a.startSeconds||e.clipStart||0,a.listId&&(e.playlistId=a.listId.toString()));return e};
aO=function(a,b){a.index=g.Eg(b,0,a.length-1);a.startSeconds=0};
bO=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=g.$N(a);a.items=[];for(var d=g.r(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;(b=b.index)?a.index=b:a.findIndex(c);a.setShuffle(!1);a.loaded=!0;a.u++;a.j&&a.j()}};
wHa=function(a,b){var c,d,e,f,h,l;return g.z(function(m){if(1==m.j){c=g.EM();var n=a.V(),p={context:g.eN(a)};n.K("embeds_enable_sending_ancestor_origins_killswitch")||(p.playbackContext={contentPlaybackContext:{ancestorOrigins:n.ancestorOrigins}});n=n.embedConfig;var q=b.docid||b.video_id||b.videoId||b.id;if(!q){q=b.raw_embedded_player_response;if(!q&&!g.S("parse_video_id_from_serialized_embedded_player_response_killswitch")){var u=b.embedded_player_response;u&&(q=JSON.parse(u))}if(q){var w,y,A,B,
D,G,H;q=(null==(w=q)?void 0:null==(y=w.embedPreview)?void 0:null==(A=y.thumbnailPreviewRenderer)?void 0:null==(B=A.playButton)?void 0:null==(D=B.buttonRenderer)?void 0:null==(G=D.navigationEndpoint)?void 0:null==(H=G.watchEndpoint)?void 0:H.videoId)||null}else q=null}w=(w=q)?w:void 0;y=a.playlistId?a.playlistId:b.list;A=b.listType;if(y){var L;"user_uploads"===A?L={username:y}:L={playlistId:y};uHa(n,w,b,L);p.playlistRequest=L}else b.playlist?(L={templistVideoIds:b.playlist.toString().split(",")},uHa(n,
w,b,L),p.playlistRequest=L):w&&(L={videoId:w},n&&(L.serializedThirdPartyEmbedConfig=n),p.singleVideoRequest=L);d=p;e=g.pM(vHa);g.pa(m,2);return g.x(m,g.yK(c,d,e),4)}if(2!=m.j)return f=m.u,h=a.V(),b.raw_embedded_player_response=f,h.K("embeds_pfl_cue_killswitch")||(h.ea=iv(b,g.KF(h)),h.B="EMBEDDED_PLAYER_MODE_PFL"===h.ea),m.return(new g.FH(h,b));l=g.ua(m);g.oz(l);return m.return(a)})};
uHa=function(a,b,c,d){c.index&&(d.playlistIndex=String(Number(c.index)+1));d.videoId=b?b:"";a&&(d.serializedThirdPartyEmbedConfig=a)};
g.dO=function(a,b){cO.get(a);cO.set(a,b)};
g.eO=function(a){g.az.call(this);this.loaded=!1;this.player=a};
xHa=function(){this.u=[];this.j=[]};
g.fO=function(a,b){return b?a.j.concat(a.u):a.j};
g.gO=function(a,b){switch(b.kind){case "asr":yHa(b,a.u);break;default:yHa(b,a.j)}};
yHa=function(a,b){g.Pb(b,function(c){return a.equals(c)})||b.push(a)};
g.hO=function(a){g.J.call(this);this.Y=a;this.j=new xHa;this.C=[]};
g.iO=function(a,b,c){g.hO.call(this,a);this.audioTrack=c;this.u=null;this.C=b.OG};
zHa=function(){this.j=this.cj=!1};
AHa=function(a,b){b=void 0===b?{}:b;var c=void 0===b.Sm?!1:b.Sm,d=new zHa;d.cj=(void 0===b.hasSubfragmentedFmp4?!1:b.hasSubfragmentedFmp4)||c;d.j=a.K("html5_early_read_chunk");return d};
g.jO=function(a){this.Sa=a;this.C=new zHa;this.jm=this.hm=!1;this.Vl=2;this.I=20971520;this.ea=8388608;this.D=120;this.Ac=3145728;this.Wa=62914560;this.Lc=10485760;this.Xl=g.RE(this.Sa.experiments,"html5_min_readbehind_secs");this.Su=g.RE(this.Sa.experiments,"html5_min_readbehind_cap_secs");this.Ru=g.RE(this.Sa.experiments,"html5_max_readbehind_secs");this.ev=this.Sa.K("html5_trim_future_discontiguous_ranges");this.Tb=NaN;this.lq=this.Lk=this.vr=2;this.eb=2097152;this.bq=1048576;this.Gb=!1;this.Mw=
1800;this.Wl=this.Tl=5;this.Ia=15;this.jf=1;this.u=1.15;this.B=1.05;this.Ok=1;this.cm=!0;this.ya=!1;this.Ps=.8;this.Pj=this.yb=!1;this.Sc=6;this.Z=this.zc=!1;this.Qd=0;this.Yl=this.Sa.K("html5_new_min_startup_smooth_logic");this.Hd=0;this.wu=this.Sa.K("html5_append_init_while_paused");this.lm=g.RE(this.Sa.experiments,"html5_post_interrupt_readahead");this.fm=!1;this.Id=5E3;this.lr=100;this.Af=10;this.Tu=g.RE(this.Sa.experiments,"html5_offline_failure_retry_limit")||2;this.au=g.RE(this.Sa.experiments,
"html5_ssdai_failure_retry_limit")||3;this.Lj=this.Sa.experiments.jb("html5_clone_original_for_fallback_location");this.Vg=1;this.Qi=1.6;this.Pc=!1;this.Aa=.5;this.pe=2;this.oe=this.gr=0;this.ir=1.5;this.jr=this.Xi=.5;this.Xk=15;this.Vk=1;this.Ft=this.xd=!1;this.Ul=0;this.Wn=this.du=this.Tk=this.pm=this.gm=!1;this.qm=0;this.Li=2;this.Zt=this.Qk=!1;this.yg=0;this.Ba=this.er=this.Fi=!1;this.nz=this.Sa.K("html5_webm_init_skipping");this.Fm=!1;this.ob=!0;this.Te=this.Ld=this.nm=this.kb=!1;this.Mj=!0;
this.Ni=!1;this.j="";this.Nu=1048576;this.Ne=[];this.Ou=this.Sa.K("html5_woffle_resume");this.Rb=!0;this.Sk=this.Bk=this.Ue=!1;this.zg=46800;this.wt=this.Pk=this.Nk=this.Dm=this.kf=this.qa=!1;this.S=0;this.Nj="";this.Mu=this.Sa.K("html5_disable_codec_for_playback_on_error");this.Gk=this.vu=this.Oj=this.Mi=!1;this.xg=0;this.Yu=Su();this.Vt=this.Uk=!1;this.Ku=this.Sa.K("html5_skip_buffer_check_seek_to_head");this.Ce=!1;this.Qu=this.Sa.K("html5_flush_segment_index_on_error");this.Hk=!1;this.Tg=8192;
this.Ya=this.Kd=!1;this.Rs=1;this.uv=this.Sa.K("html5_onesie_live");this.Iy=this.Sa.K("html5_onesie_premieres");this.Ut=this.Sa.K("html5_seek_for_index_reset_killswitch");this.Uu=g.RE(this.Sa.experiments,"html5_onesie_live_ttl_secs")||8;this.Zl=g.RE(this.Sa.experiments,"html5_attach_num_random_bytes_to_bandaid");this.Zu=this.Sa.K("html5_self_init_consolidation");this.fu=this.Sa.K("html5_stream_metadata");this.lc=this.Sa.K("html5_onesie_ads");this.Lu=this.Sa.K("html5_live_partial_response_resumable");
this.wg=this.Sa.K("html5_ssdai_log_ad_transition_info");this.Wu=g.RE(this.Sa.experiments,"html5_onesie_request_timeout_ms")||3E3;this.Vu=this.Sa.K("html5_onesie_nonzero_playback_start");this.La=this.Sa.K("html5_ssdai_use_post_for_media")&&this.Sa.K("gab_return_sabr_ssdai_config");this.rr=this.Sa.K("html5_use_post_for_media");this.Yi=this.Sa.K("html5_ssdai_enable_new_seek_logic");this.bv=this.Sa.K("html5_skip_ssdai_ad_init");this.Xu=this.Sa.K("html5_precoalesce");this.useUmp=this.Sa.K("html5_use_ump");
this.Qa=this.J=!1;this.Lb=this.Sa.K("html5_enable_atv_offline");this.mm=this.Sa.K("html5_prefer_drc")};
BHa=function(a,b){1080<b.video.j&&!a.hm&&(a.I=36700160,a.ea=5242880,a.Ac=10485760,a.eb=4194304,a.hm=!0);2160<b.video.j&&!a.jm&&(a.I=104857600,a.Tb=13107200,a.jm=!0);b.isEncrypted()&&g.Ou()&&Mu("kant")&&(a.Tb=1310720);b.Tb&&(a.bq=Math.max(65536,Math.min(a.eb,5*b.Tb)))};
g.kO=function(a,b){return UD(a.info.mimeType)?b?a.info.itag===b:!0:!1};
g.CHa=function(a,b){if(null!=a.j&&g.lG(b.V())&&!a.j.isManifestless&&null!=a.j.j.rawcc)return!0;if(!a.vf())return!1;b=!!a.j&&a.j.isManifestless&&Object.values(a.j.j).some(function(c){return g.kO(c,"386")});
a=!!a.j&&!a.j.isManifestless&&Kxa(a.j);return b||a};
g.lO=function(a,b,c,d,e){g.hO.call(this,a);this.videoId=c;this.KP=e;this.D={};this.u=null;a=d||g.lu(b).hl||"";a=a.split("_").join("-");this.B=mu(b,{hl:a})};
mO=function(a,b){g.J.call(this);this.G=a;this.J=b;this.gC={};this.j={};this.u=null;this.S=this.G.K("web_player_defer_modules");this.D=new Set;this.C=this.G.V().Bk||0;this.B=this.G.V().Af||0;this.le=new Map;0<this.C&&(this.I=new g.Xn(this.fC,this.C,this),g.M(this,this.I));0<this.B&&(this.Hr=new g.Xn(this.eC,this.B,this),g.M(this,this.Hr))};
g.nO=function(a){return a.le.get("captions")};
GHa=function(a,b){switch(b){case "ad":return oO(a);case "annotations_module":return a.isShortsModeEnabled()?a=!1:(b=a.G,a=b.V(),b=b.getVideoData(),a=b.sN||"3"===a.controlsType?!1:a.qa.isEmpty()&&"annotation-editor"!==a.playerStyle&&"live-dashboard"!==a.playerStyle?!!b.Ya||!!g.mI(b)||!!g.nI(b):!0),a;case "attribution":return a=a.G.V(),a.K("web_player_show_music_in_this_video")&&"desktop-polymer"===a.playerStyle;case "creatorendscreen":return DHa(a);case "embed":return g.KF(a.G.V());case "endscreen":return g.EHa(a);
case "heartbeat":return a.SK();case "inline_preview":return a.G.V().showInlinePreviewUi;case "kids":return bG(a.G.V());case "remote":return a.G.V().Lb;case "miniplayer":return a.G.V().showMiniplayerUiWhenMinimized;case "music":return g.VF(a.G.V());case "offline":return a.G.V().yg;case "captions":return b=a.G.getVideoData(),!!b.xd||!!b.captionTracks.length||g.CHa(b,a.G);case "unplugged":return g.SF(a.G.V());case "ux":return a.G.V().Ac;case "webgl":return FHa(a);case "ypc":return a.AA();case "ypc_clickwrap":return a=
a.G.getVideoData(),a.Ne&&!a.VF;case "yto":return!!a.G.getVideoData().ea.includes("yto");default:return g.oz(Error("Module descriptor "+b+" does not match")),!1}};
pO=function(a,b,c,d,e){var f;c=void 0===c?!1:c;d=void 0===d?!1:d;var h=a.le.get(b);if(!h||d)if(e||(e=function(){pO(a,b,c,d)}),f||(f=function(){a.G.xf(b)}),h=h||HHa(a,b,GHa(a,b),e,f))a.le.set(b,h),h.create(),c&&a.G.Pa("onApiChange")};
IHa=function(a){var b=a.G.getVideoData(),c=a.S&&!b.isInlinePlaybackNoAd;a.G.K("html5_defer_modules_on_ads_only")&&!b.isAd()&&(c=!1);return c};
qO=function(a){a=a.G.getVideoData();var b;if(b=a.K("web_player_defer_ad"))if(g.Sb(a.ea,"ad")||a.enableServerStitchedDai)b=!1;else{var c;if(c=b=null==(c=a.playerResponse)?void 0:c.adPlacements){c=Number.MAX_VALUE;b=g.r(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value.adPlacementRenderer){var e=void 0,f=null==(e=d.config)?void 0:e.adPlacementConfig;e=void 0;if("AD_PLACEMENT_KIND_MILLISECONDS"===(null==(e=f)?void 0:e.kind)){var h=e=void 0;f=Number(null==(e=f)?void 0:null==(h=e.adTimeOffset)?void 0:
h.offsetStartMilliseconds)||0;h=e=void 0;d=Number((null==(e=d.renderer)?void 0:null==(h=e.adBreakServiceRenderer)?void 0:h.prefetchMilliseconds)||0);d=f-d;d<c&&(c=d)}}c=c-5E3<=1E3*a.startSeconds}b=c?!1:!0}return b};
g.EHa=function(a){var b=a.G.V();if(rG(b)||b.D||!b.Lc&&!b.Ue)return!1;var c=a.G.getPresentingPlayerType();if(2===c)return!1;if(3===c)return b.K("desktop_enable_autoplay");a=a.G.getVideoData();if(!a)return!1;c=!a.isLiveDefaultBroadcast||b.K("allow_poltergust_autoplay");c=a.isLivePlayback&&(!b.K("allow_live_autoplay")||!c);b=a.isLivePlayback&&b.K("allow_live_autoplay_on_mweb");return!c||b};
g.zN=function(a){return a.le.get("webgl")};
FHa=function(a){var b=a.G.getVideoData();a=a.G.V();var c=g.zma(),d=a.K("enable_spherical_kabuki"),e=g.qG(a);if(g.lI(b))return c||d||e||a.K("html5_enable_spherical");if(g.iI(b))return e||c||d||a.K("html5_enable_spherical");if(g.jI(b))return e||c||a.K("html5_enable_spherical3d");if(g.kI(b))return e||!1;c=b.u&&b.u.video&&b.u.video.isHdr();return e&&!g.aI(b)&&!c&&(a.K("enable_webgl_noop")||a.K("html5_enable_bicubicsharp"))};
JHa=function(a){a.G.V().K("web_player_ux_module_wait")&&a.le.get("ux")&&a.G.xf("ux")};
KHa=function(a){JHa(a);pO(a,"ux",!0)};
oO=function(a){if(a.G.V().B)return!1;if(a=a.G.getVideoData(1).getPlayerResponse())if(a=a.adPlacements)for(var b=0;b<a.length;b++)if(a[b].adPlacementRenderer)return!0;return!1};
DHa=function(a){if(a.isShortsModeEnabled())return!1;a=a.G;var b=a.V();if(b.B||"3"===b.controlsType)return!1;if("creator-endscreen-editor"===b.playerStyle)return!0;a=a.getVideoData();return!!a&&(!!g.TBa(a)||!!g.UBa(a))};
HHa=function(a,b,c,d,e){try{if(c){var f=cO.get(b);if(f)return new f(a.G);LHa(a,b,d,e)}else a.G.xf(b)}catch(h){a.G.xf(b),g.oz(h)}return null};
rO=function(a,b,c){for(var d=g.r(a.le),e=d.next();!e.done;e=d.next()){var f=g.r(e.value);e=f.next().value;(f=f.next().value)&&(c||f.Dj(b))&&(g.Ye(f),a.le.delete(e))}};
sO=function(a){return a.le.get("ad")};
tO=function(a){if(bG(a.G.V()))return a.le.get("kids")};
xN=function(a){if(a.G.V().Lb)return a.le.get("remote")};
g.uO=function(a){if(g.SF(a.G.V()))return a.le.get("unplugged")};
qN=function(a){if(a.G.V().Ac)return a.le.get("ux")};
vO=function(a){if(a.G.V().yg)return a.le.get("offline")};
g.wO=function(a){return a.le.get("annotations_module")};
xO=function(a){return a.le.get("creatorendscreen")};
NHa=function(a){var b=a.J.split("/").slice(0,4).join("/")+"/wasm/lib.js";return new Promise(function(c,d){MHa(a,b,function(){var e,f;return g.z(function(h){if(1==h.j)return e=g.C.loadWasm,"function"!==typeof e?(d("noloadwasm"),h.Ma(0)):g.x(h,e(),3);f=h.u;c(f);g.na(h)})},function(){d("player wasm load failure")})})};
LHa=function(a,b,c,d){if(a.J){var e=OHa[b];MHa(a,a.J+e,function(){a.D.add(e);c.call(a)},d)}};
MHa=function(a,b,c,d){function e(){a.isDisposed()||d.call(a)}
function f(){a.isDisposed()||c.call(a)}
for(var h=g.$g("SCRIPT"),l=!1,m,n=0;n<h.length;n++){var p=h[n];if(p.src===b||p.getAttribute("data-original-src")===b)m=p}m||(m=g.hh("SCRIPT"),m.setAttribute("data-original-src",b),l=!0);var q=m.onload;m.onload=function(A){wh(f);q&&q.apply(window,[A])};
var u=m.onerror;m.onerror=function(A){if(.01>Math.random()){var B=new g.Pv("Unable to load player module",b,document.location&&document.location.origin);g.oz(B)}wh(e);u&&u(A)};
var w=m,y=w.onreadystatechange;w.onreadystatechange=function(A){switch(w.readyState){case "loaded":case "complete":wh(f)}y&&y(A)};
l&&((h=a.G.V().cspNonce)&&m.setAttribute("nonce",h),g.bj(m,g.lg(b)),h=g.$g("HEAD")[0]||document.body,h.insertBefore(m,h.firstChild),g.$e(a,function(){m.parentNode&&m.parentNode.removeChild(m)}))};
yO=function(a,b,c){g.af.call(this,b,a);this.j=c};
g.zO=function(a){TJ.call(this);var b=this;this.j=a;this.I={};this.listener=function(c){b.dispatchEvent(new yO(b,c.type,c))}};
BO=function(a,b,c,d,e){g.az.call(this);var f=this;this.target=a;this.SB=b;this.u=0;this.I=!1;this.C=new g.Ig(NaN,NaN);this.j=new g.XD(this);this.ya=this.B=this.J=null;g.M(this,this.j);b=d||e?4E3:3E3;this.Z=new g.Xn(function(){AO(f,1,!1)},b,this);
g.M(this,this.Z);this.ea=new g.Xn(function(){AO(f,2,!1)},b,this);
g.M(this,this.ea);this.qa=new g.Xn(function(){AO(f,512,!1)},b,this);
g.M(this,this.qa);this.Aa=c&&0<c.Ue.length?5E3:3E3;d||(this.B=this.j.T(a,"mouseover",this.yD),this.j.T(a,"mousemove",this.E_),this.j.T(a,"mouseleave",this.F_));Al?this.j.T(a,"keypress",this.b_):this.j.T(a,"focusin",this.SY);this.D=this.j.T(a,"mousedown",this.yQ);this.S=this.j.T(a,"touchstart",this.aT,void 0,!0);AO(this,640,!0)};
PHa=function(a){AO(a,4,!1);a.J&&(a.j.yc(a.J),a.J=null,a.B=a.j.T(a.target,"mouseover",a.yD));a.B&&(a.j.yc(a.B),a.B=a.j.T(a.target,"mouseover",a.yD))};
AO=function(a,b,c){a.isDisposed();var d=!a.u;c?(a.u|=b,b&1&&a.Z.start(),b&2&&a.ea.start()):(a.u&=~b,b&1&&a.Z.stop(),b&2&&a.ea.stop(),b&512&&a.qa.stop());a.u&512&&!(a.u&128)&&g.Yn(a.qa,a.Aa);b=!a.u;d!==b&&a.ma("autohideupdate",b)};
g.CO=function(a){g.W.call(this,{F:"button",Fa:["ytp-large-play-button","ytp-button"],X:{"aria-label":"Play"},W:["{{largePlayButtonChildren}}"]});this.api=a;this.T(a,"videodatachange",this.Ja);this.T(a,"basechromeinitialized",this.Ja);g.QF(this.api.V())&&this.api.K("embeds_web_enable_red_play_button_on_preview")&&g.fo(this.element,"ytp-large-play-button-red-bg");this.Ja()};
g.DO=function(a){var b=["ytp-cued-thumbnail-overlay"];a.V().D&&b.push("ytp-exp-contain-thumbnail");g.W.call(this,{F:"div",Fa:b,W:[{F:"div",N:"ytp-cued-thumbnail-overlay-image"}]});b=this.Da("ytp-cued-thumbnail-overlay");var c=new g.CO(a);g.M(this,c);c.Ca(b);this.B=new g.XD(this);g.M(this,this.B);this.api=a;this.D=this.Da("ytp-cued-thumbnail-overlay-image");this.C=c;this.u=new g.IL(this,250);g.M(this,this.u);this.j=new g.Xn(this.Ja,0,this);g.M(this,this.j);this.Ja();this.T(a,"appresize",this.Cb);this.T(a,
"presentingplayerstatechange",this.onStateChange);this.T(a,"ypcStateChanged",this.v3);MF(a.V())&&this.T(a,"videoplayerreset",this.NV)};
QHa=function(a){var b=!a.V().Fi&&3!==a.getPresentingPlayerType();return a.isFullscreen()||b};
g.EO=function(a,b,c,d){var e=a.currentTarget;if((void 0===c||!c)&&g.XL(a))return g.Ex(a),!0;b.pauseVideo();a=e.getAttribute("href");g.hM(a,d,!0);return!1};
g.FO=function(a,b,c){if(hG(b.V())&&2!==b.getPresentingPlayerType()){if(g.XL(c))return b.isFullscreen()&&!b.V().externalFullscreen&&b.toggleFullscreen(),g.Ex(c),!0}else if(b.V().K("embeds_enable_webview_nonjs_navigation")&&g.KF(b.V())&&(Xu()||Vu()))b=c.target,b instanceof HTMLAnchorElement&&(a=Dfa(a),a=a instanceof ng?g.og(a):Bfa(a),void 0!==a&&(b.href=a));else{var d=g.XL(c);d&&b.pauseVideo();g.hM(a,void 0,!0);d&&(g.iM(a),g.Ex(c))}return!1};
RHa=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,X:{d:"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z",
fill:"#fff"}}],N:"ytp-subtitles-button-icon"}};
GO=function(){return{F:"div",N:"ytp-spinner-container",W:[{F:"div",N:"ytp-spinner-rotator",W:[{F:"div",N:"ytp-spinner-left",W:[{F:"div",N:"ytp-spinner-circle"}]},{F:"div",N:"ytp-spinner-right",W:[{F:"div",N:"ytp-spinner-circle"}]}]}]}};
HO=function(a){if(document.createRange){var b=document.createRange();b&&(b.selectNodeContents(a),a=window.getSelection())&&(a.removeAllRanges(),a.addRange(b))}};
IO=function(a,b,c){a=a.V();return a.K("desktop_player_button_tooltip_with_shortcut")&&!a.Tg?g.FJ("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:b,SHORTCUT:c}):b};
g.JO=function(a){g.W.call(this,{F:"div",Fa:["ytp-error"],X:{role:"alert"},W:[{F:"div",N:"ytp-error-content",W:[{F:"div",N:"ytp-error-icon-container",W:[{F:"svg",X:{fill:"#fff",viewBox:"0 0 48 48"},W:[{F:"path",X:{d:"M0 0h48v48H0V0z",fill:"none"}},{F:"path",X:{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"}}]}]},{F:"div",N:"ytp-error-content-wrap",
W:[{F:"div",N:"ytp-error-content-wrap-reason",oa:"{{content}}"},{F:"div",N:"ytp-error-content-wrap-subreason",oa:"{{subreason}}"}]}]}]});this.api=a;this.keys=[]};
g.KO=function(a){a=a.split(SHa);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({F:"br"}),b.push(d[e]);c<a.length&&b.push({F:"a",X:{href:a[c],target:a[c+1]},oa:a[c+2]})}return{F:"span",W:b}};
MO=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.V().u);a=a.api.getVideoData();b=g.FJ(g.LO[b]||"",d?{CPN:a.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);d=[];f&&d.push({F:"h2",oa:f});d.push(b[0]);h&&d.push({F:"br"});d.push({F:"a",X:{href:c,target:e?"_blank":null},oa:b[2]});d.push(b[4]);return{F:"span",W:d}};
THa=function(a,b){for(var c=a.element.getElementsByTagName("a"),d=0;d<c.length;d++){var e=a.T(c[d],"click",b);a.keys.push(e)}};
UHa=function(a){for(var b=0;b<a.keys.length;b++)a.yc(a.keys[b]);a.keys=[]};
NO=function(a){g.XD.call(this);this.G=a;this.j=new Set;this.mediaSession=navigator.mediaSession;this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.Dh);this.onVideoDataChange()};
OO=function(a,b,c){a.mediaSession.setActionHandler(b,c?function(){c()}:null);
a.j.add(b)};
VHa=function(a){OO(a,"play",function(){a.G.playVideo()});
OO(a,"pause",function(){a.G.pauseVideo()});
OO(a,"seekbackward",function(){a.G.seekBy(-5*a.G.getPlaybackRate())});
OO(a,"seekforward",function(){a.G.seekBy(5*a.G.getPlaybackRate())})};
WHa=function(a){var b,c;a=a.G.getVideoData();a=a.watchNextResponse&&a.watchNextResponse.playerOverlays||null;return null==a?void 0:null==(b=a.playerOverlayRenderer)?void 0:null==(c=b.browserMediaSession)?void 0:c.browserMediaSessionRenderer};
XHa=function(a){var b=[];if(!a||!a.thumbnails)return b;a=g.r(a.thumbnails);for(var c=a.next();!c.done;c=a.next())c=c.value,c.url&&(!c.width||0>=c.width||!c.height||0>=c.height||g.nA(c.url)&&b.push({src:c.url||"",sizes:c.width+"x"+c.height,type:"image/jpeg"}));return b};
YHa=function(a){var b=a.G.Eb();b=b.isCued()||b.isError()?"none":g.dK(b)?"playing":"paused";a.mediaSession.playbackState=b};
PO=function(a){g.W.call(this,{F:"div",N:"ytp-paid-content-overlay",X:{"aria-live":"assertive","aria-atomic":"true"}});this.G=a;this.videoId=null;this.B=!1;this.Dd=this.j=null;var b=a.V();a.K("enable_new_paid_product_placement")&&!g.mG(b)?(this.u=new g.W({F:"a",N:"ytp-paid-content-overlay-link",X:{href:"{{href}}",target:"_blank"},W:[{F:"div",N:"ytp-paid-content-overlay-icon",oa:"{{icon}}"},{F:"div",N:"ytp-paid-content-overlay-text",oa:"{{text}}"},{F:"div",N:"ytp-paid-content-overlay-chevron",oa:"{{chevron}}"}]}),
this.T(this.u.element,"click",this.onClick)):this.u=new g.W({F:"div",Fa:["ytp-button","ytp-paid-content-overlay-text"],oa:"{{text}}"});this.C=new g.IL(this.u,250,!1,100);g.M(this,this.u);this.u.Ca(this.element);g.M(this,this.C);this.G.Ug(this.element,this);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.Uc)};
$Ha=function(a,b){var c=IBa(b),d=bI(b);b.Ne&&a.G.ul()||(a.j?b.videoId&&b.videoId!==a.videoId&&(g.$n(a.j),a.videoId=b.videoId,a.B=!!d,a.B&&c&&ZHa(a,d,c,b)):c&&d&&ZHa(a,d,c,b))};
ZHa=function(a,b,c,d){a.j&&a.j.dispose();a.j=new g.Xn(a.Bb,b,a);g.M(a,a.j);var e,f;b=null==(e=d.getPlayerResponse())?void 0:null==(f=e.paidContentOverlay)?void 0:f.paidContentOverlayRenderer;e=null==b?void 0:b.navigationEndpoint;var h;f=null==b?void 0:null==(h=b.icon)?void 0:h.iconType;var l;h=null==(l=g.Zu(e,g.PH))?void 0:l.url;a.G.ji(a.element,(null==e?void 0:e.clickTrackingParams)||null);a.u.update({href:null!=h?h:"#",text:c,icon:"MONEY_HAND"===f?{F:"svg",X:{fill:"none",height:"100%",viewBox:"0 0 24 24",
width:"100%"},W:[{F:"path",X:{d:"M6 9H5V5V4H6H19V5H6V9ZM21.72 16.04C21.56 16.8 21.15 17.5 20.55 18.05C20.47 18.13 18.42 20.01 14.03 20.01C13.85 20.01 13.67 20.01 13.48 20C11.3 19.92 8.51 19.23 5.4 18H2V10H5H6H7V6H21V13H16.72C16.37 13.59 15.74 14 15 14H12.7C13.01 14.46 13.56 15 14.5 15H15.02C16.07 15 17.1 14.64 17.92 13.98C18.82 13.26 20.03 13.22 20.91 13.84C21.58 14.32 21.9 15.19 21.72 16.04ZM15 10C15 9.45 14.55 9 14 9C13.45 9 13 9.45 13 10H15ZM20 11C19.45 11 19 11.45 19 12H20V11ZM19 7C19 7.55 19.45 8 20 8V7H19ZM8 8C8.55 8 9 7.55 9 7H8V8ZM8 10H12C12 8.9 12.9 8 14 8C15.1 8 16 8.9 16 10V10.28C16.59 10.63 17 11.26 17 12H18C18 10.9 18.9 10 20 10V9C18.9 9 18 8.1 18 7H10C10 8.1 9.1 9 8 9V10ZM5 13.5V11H3V17H5V13.5ZM20.33 14.66C19.81 14.29 19.1 14.31 18.6 14.71C17.55 15.56 16.29 16 15.02 16H14.5C12.62 16 11.67 14.46 11.43 13.64L11.24 13H15C15.55 13 16 12.55 16 12C16 11.45 15.55 11 15 11H6V13.5V17.16C8.9 18.29 11.5 18.93 13.52 19C17.85 19.15 19.85 17.34 19.87 17.32C20.33 16.9 20.62 16.4 20.74 15.84C20.84 15.37 20.68 14.91 20.33 14.66Z",
fill:"white"}}]}:null,chevron:h?g.bL():null})};
aIa=function(a,b){a.j&&(g.V(b,8)&&a.B?(a.B=!1,a.Qc(),a.j.start()):(g.V(b,2)||g.V(b,64))&&a.videoId&&(a.videoId=null))};
QO=function(a){g.W.call(this,{F:"div",N:"ytp-spinner",W:[GO(),{F:"div",N:"ytp-spinner-message",oa:"If playback doesn't begin shortly, try restarting your device."}]});this.api=a;this.message=this.Da("ytp-spinner-message");this.j=new g.Xn(this.show,500,this);g.M(this,this.j);this.T(a,"presentingplayerstatechange",this.onStateChange);this.T(a,"playbackstalledatstart",this.u);this.Vc(a.Eb())};
RO=function(a){var b=g.JE(a.V().experiments,"mweb_muted_autoplay_animation"),c=[],d=[{F:"div",Fa:["ytp-unmute-icon"],W:[{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,N:"ytp-svg-fill",X:{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"}}]}]},
{F:"div",Fa:["ytp-unmute-text"],oa:"Tap to unmute"}];"none"!==b&&(c.push("ytp-unmute-animated"),d.push({F:"div",Fa:["ytp-unmute-box"],W:[]}),"expand"===b?c.push("ytp-unmute-expand"):"shrink"===b&&c.push("ytp-unmute-shrink"));g.DN.call(this,a,{F:"button",Fa:["ytp-unmute","ytp-popup","ytp-button"].concat(c),W:[{F:"div",N:"ytp-unmute-inner",W:d}]},100);this.j=this.clicked=!1;this.api=a;this.api.vb(this.element,this,51663);this.T(a,"onMutedAutoplayChange",this.onMutedAutoplayChange,this);this.T(a,"presentingplayerstatechange",
this.Dh);this.Ra("click",this.onClick,this);a=a.isMutedByMutedAutoplay()&&!g.KF(this.api.V());g.WK(this,a);a&&bIa(this);this.B=a};
bIa=function(a){a.j||(a.j=!0,a.api.Xa(a.element,!0))};
g.TO=function(a){g.XD.call(this);var b=this;this.api=a;this.fJ=!1;this.Zm=null;this.dC=!1;this.Cf=null;this.cH=this.NE=!1;this.sL=this.uL=null;this.eQ=NaN;this.rL=this.zy=!1;this.Lz=0;this.rG=[];this.XJ=!1;this.XC={height:0,width:0};var c=a.V(),d=a.gb();this.XC=a.getPlayerSize();this.RN=new g.Xn(this.uJ,0,this);g.M(this,this.RN);g.VF(c)||(this.Un=new g.DO(a),g.M(this,this.Un),g.BN(a,this.Un.element,4));if(cIa(this)){var e=new QO(a);g.M(this,e);e=e.element;g.BN(a,e,4)}var f=a.getVideoData();this.je=
new BO(d,function(l){return b.SB(l)},f,c.kf,oG(c));
g.M(this,this.je);this.je.subscribe("autohideupdate",this.Bl,this);if(!c.disablePaidContentOverlay){var h=new PO(a);g.M(this,h);g.BN(a,h.element,4)}this.RE=new RO(a);g.M(this,this.RE);g.BN(this.api,this.RE.element,2);this.rI=this.api.isMutedByMutedAutoplay();this.T(a,"onMutedAutoplayChange",this.onMutedAutoplayChange);this.JE=new g.Xn(this.gx,200,this);g.M(this,this.JE);this.ow=f.videoId;this.iS=new g.Xn(function(){b.Lz=0},350);
g.M(this,this.iS);this.iC=new g.Xn(function(){b.rL||SO(b)},350,this);
g.M(this,this.iC);f=a.getRootNode();f.setAttribute("aria-label","YouTube Video Player");switch(c.color){case "white":g.fo(f,"ytp-color-white")}g.VF(c)&&g.fo(f,"ytp-music-player");!a.K("web_player_disable_mediasession")&&navigator.mediaSession&&null!=navigator.mediaSession.setActionHandler&&(f=new NO(a),g.M(this,f));this.T(a,"appresize",this.Cb);this.T(a,"presentingplayerstatechange",this.Dh);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"videoplayerreset",this.Q1);this.T(a,"autonavvisibility",
function(){b.En()});
this.T(a,"sizestylechange",function(){b.En()});
this.T(d,"click",this.t2,this);this.T(d,"dblclick",this.u2,this);c.ob&&(this.T(d,"gesturechange",this.v2,this),this.T(d,"gestureend",this.w2,this));this.tq=[d.oy];this.Un&&this.tq.push(this.Un.element);e&&this.tq.push(e)};
UO=function(a,b){if(!b)return!1;var c=a.api.Ud();if(c.Dr()&&(c=c.zf())&&g.qh(c,b))return c.controls;for(c=0;c<a.tq.length;c++)if(g.qh(a.tq[c],b))return!1;return g.eo(b,"ytp-player-content")||g.eo(b,"html5-endscreen")||b===a.api.getRootNode()?!1:!0};
dIa=function(a){var b=2===a.api.getPresentingPlayerType()&&(a.api.gb().UC||!1)&&a.api.V().isMobile&&VO&&11<=wI;a=a.api.V().I&&VO;return!(!b&&!a)};
WO=function(a,b){return!UO(a,Bx(b))&&g.XL(b)};
SO=function(a){a.je.Dn();if(a.NE&&a.cH)a.cH=!1;else if(!a.api.V().Ia&&!a.dl()){var b=a.api.Eb();g.V(b,2)&&g.vN(a.api)||a.Pt(b);if(!a.api.V().ob||b.isCued()||g.V(b,1024)){var c=a.api.zE();g.Kv("embedsShouldRequestStorageAccessResult",{result:!!c,returnsUndefined:void 0===c});var d=g.V(b,1024);c&&(b.isCued()||d)?(g.Kv("embedsRequestStorageAccessState",{isCued:b.isCued(),A5a:d}),a.requestStorageAccess()):(!c||b.isCued()&&d||g.Kv("embedsRequestStorageAccessFailedState",{state:b.state}),a.gx())}else a.JE.isActive()?
(a.VC(),a.JE.stop()):a.JE.start()}};
eIa=function(a,b){return g.XL(b)&&a.api.isMutedByMutedAutoplay()?(a.api.unMute(),2===a.api.getPresentingPlayerType()&&a.api.playVideo(),b=a.api.Eb(),!g.V(b,4)||g.V(b,8)||g.V(b,2)||a.gx(),!0):!1};
fIa=function(a,b,c){a.api.isFullscreen()?c<1-b&&a.api.toggleFullscreen():c>1+b&&a.api.toggleFullscreen()};
cIa=function(a){a=Nu()&&67<=vma()&&!a.api.V().I;return!Mu("tizen")&&!HF&&!a&&!0};
XO=function(a,b){b=void 0===b?2:b;g.az.call(this);this.api=a;this.j=null;this.Xc=new Yy(this);g.M(this,this.Xc);this.u=GFa;this.Xc.T(this.api,"presentingplayerstatechange",this.Uc);this.j=this.Xc.T(this.api,"progresssync",this.hc);this.Ml=b;1===this.Ml&&this.hc()};
YO=function(a){g.W.call(this,{F:"button",Fa:["ytp-button","ytp-back-button"],W:[{F:"div",N:"ytp-arrow-back-icon",W:[{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 -12 36 36",width:"100%"},W:[{F:"path",X:{d:"M0 0h24v24H0z",fill:"none"}},{F:"path",Qb:!0,X:{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",fill:"#fff"}}]}]}]});this.G=a;g.WK(this,a.V().showBackButton);this.Ra("click",this.onClick)};
g.ZO=function(a){g.W.call(this,{F:"div",W:[{F:"div",N:"ytp-bezel-text-wrapper",W:[{F:"div",N:"ytp-bezel-text",oa:"{{title}}"}]},{F:"div",N:"ytp-bezel",X:{role:"status","aria-label":"{{label}}"},W:[{F:"div",N:"ytp-bezel-icon",oa:"{{icon}}"}]}]});this.G=a;this.u=new g.Xn(this.show,10,this);this.j=new g.Xn(this.hide,500,this);g.M(this,this.u);g.M(this,this.j);this.hide()};
aP=function(a,b,c){if(0>=b){c=lL();b="muted";var d=0}else c=c?{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,X:{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"}}]}:{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,X:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z",
fill:"#fff"}}]},d=Math.floor(b),b=d+"volume";$O(a,c,b,d+"%")};
gIa=function(a,b){b=b?{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,N:"ytp-svg-fill",X:{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"}}]}:{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,N:"ytp-svg-fill",X:{d:"M 10,24 18.5,18 10,12 V 24 z M 19,12 V 24 L 27.5,18 19,12 z"}}]};var c=a.G.getPlaybackRate(),d=g.FJ("Speed is $RATE",{RATE:String(c)});$O(a,b,d,c+"x")};
hIa=function(a,b){b=b?"Subtitles/closed captions on":"Subtitles/closed captions off";$O(a,RHa(),b)};
$O=function(a,b,c,d){d=void 0===d?"":d;a.Oa("label",void 0===c?"":c);oG(a.G.V())?a.Oa("icon",null):a.Oa("icon",b);g.$n(a.j);a.u.start();a.Oa("title",d);g.jo(a.element,"ytp-bezel-text-hide",!d)};
cP=function(a,b,c){g.W.call(this,{F:"button",Fa:["ytp-button","ytp-cards-button"],X:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.KF(a.V()))},W:[{F:"span",N:"ytp-cards-button-icon-default",W:[{F:"div",N:"ytp-cards-button-icon",W:[a.V().K("player_new_info_card_format")?dFa():{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,N:"ytp-svg-fill",X:{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"}}]}]},
{F:"div",N:"ytp-cards-button-title",oa:"Info"}]},{F:"span",N:"ytp-cards-button-icon-shopping",W:[{F:"div",N:"ytp-cards-button-icon",W:[{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",N:"ytp-svg-shadow",X:{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"}},{F:"path",N:"ytp-svg-fill",X:{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"}},{F:"path",N:"ytp-svg-shadow-fill",X:{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"}}]}]},{F:"div",
N:"ytp-cards-button-title",oa:"Shopping"}]}]});this.G=a;this.B=b;this.C=c;this.j=null;this.u=new g.IL(this,250,!0,100);g.M(this,this.u);g.jo(this.C,"ytp-show-cards-title",g.KF(a.V()));this.hide();this.Ra("click",this.onClicked);this.Ra("mouseover",this.j1);bP(this,!0)};
bP=function(a,b){b?a.j=g.dP(a.B.wc(),a.element):(a.j=a.j,a.j(),a.j=null)};
eP=function(a,b,c){g.W.call(this,{F:"div",N:"ytp-cards-teaser",W:[{F:"div",N:"ytp-cards-teaser-box"},{F:"div",N:"ytp-cards-teaser-text",W:a.V().K("player_new_info_card_format")?[{F:"button",N:"ytp-cards-teaser-info-icon",X:{"aria-label":"Show cards","aria-haspopup":"true"},W:[dFa()]},{F:"span",N:"ytp-cards-teaser-label",oa:"{{text}}"},{F:"button",N:"ytp-cards-teaser-close-button",X:{"aria-label":"Close"},W:[g.cL()]}]:[{F:"span",N:"ytp-cards-teaser-label",oa:"{{text}}"}]}]});var d=this;this.G=a;this.Z=
b;this.Kh=c;this.C=new g.IL(this,250,!1,250);this.j=null;this.J=new g.Xn(this.C1,300,this);this.I=new g.Xn(this.B1,2E3,this);this.D=[];this.u=null;this.S=new g.Xn(function(){d.element.style.margin="0"},250);
this.onClickCommand=this.B=null;g.M(this,this.C);g.M(this,this.J);g.M(this,this.I);g.M(this,this.S);a.V().K("player_new_info_card_format")?(g.fo(a.getRootNode(),"ytp-cards-teaser-dismissible"),this.T(this.Da("ytp-cards-teaser-close-button"),"click",this.rk),this.T(this.Da("ytp-cards-teaser-info-icon"),"click",this.iL),this.T(this.Da("ytp-cards-teaser-label"),"click",this.iL)):this.Ra("click",this.iL);this.T(c.element,"mouseover",this.bN);this.T(c.element,"mouseout",this.aN);this.T(a,"cardsteasershow",
this.V2);this.T(a,"cardsteaserhide",this.Bb);this.T(a,"cardstatechange",this.nT);this.T(a,"presentingplayerstatechange",this.nT);this.T(a,"appresize",this.IL);this.T(a,"onShowControls",this.IL);this.T(a,"onHideControls",this.TX);this.Ra("mouseenter",this.OV)};
gP=function(a){g.W.call(this,{F:"button",Fa:[fP.BUTTON,fP.TITLE_NOTIFICATIONS],X:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},W:[{F:"div",N:fP.TITLE_NOTIFICATIONS_ON,X:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},W:[g.gL()]},{F:"div",N:fP.TITLE_NOTIFICATIONS_OFF,X:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},W:[{F:"svg",X:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},W:[{F:"path",X:{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.j=!1;a.vb(this.element,this,36927);this.Ra("click",this.onClick,this);this.Oa("pressed",!1);this.Oa("label","Get notified about every new video")};
iIa=function(a,b){a.j=b;a.element.classList.toggle(fP.NOTIFICATIONS_ENABLED,a.j);var c=a.api.getVideoData();c?(b=b?c.qJ:c.bJ)?(a=a.api.Jm())?uM(a,b):g.eu(Error("No innertube service available when updating notification preferences.")):g.eu(Error("No update preferences command available.")):g.eu(Error("No video data when updating notification preferences."))};
g.iP=function(a,b,c,d,e,f,h,l,m,n,p,q,u){u=void 0===u?null:u;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=q.V();if(p){c={href:p,"aria-label":"Subscribe to channel"};if(g.QF(w)||g.UF(w))c.target=w.J;g.W.call(this,{F:"div",Fa:["ytp-button","ytp-sb"],W:[{F:"a",N:"ytp-sb-subscribe",X:c,W:[{F:"div",N:"ytp-sb-text",W:[{F:"div",N:"ytp-sb-icon"},a]},b?{F:"div",N:"ytp-sb-count",oa:b}:""]}]});f&&g.fo(this.element,
"ytp-sb-classic");this.channelId=h;this.j=u}else{p=w.userDisplayName&&g.QF(w)&&!w.K("subscribe_tooltipkillswitch");g.W.call(this,{F:"div",Fa:["ytp-button","ytp-sb"],W:[{F:"div",N:"ytp-sb-subscribe",X:p?{title:g.FJ("Subscribe as $USER_NAME",{USER_NAME:w.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":sG(w),"data-tooltip-opaque":String(g.KF(w)),tabindex:"0",role:"button"}:{"aria-label":"Subscribe to channel"},W:[{F:"div",N:"ytp-sb-text",W:[{F:"div",N:"ytp-sb-icon"},a]},b?
{F:"div",N:"ytp-sb-count",oa:b}:""]},{F:"div",N:"ytp-sb-unsubscribe",X:p?{title:g.FJ("Subscribed as $USER_NAME",{USER_NAME:w.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":sG(w),"data-tooltip-opaque":String(g.KF(w)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},W:[{F:"div",N:"ytp-sb-text",W:[{F:"div",N:"ytp-sb-icon"},c]},d?{F:"div",N:"ytp-sb-count",oa:d}:""]}]});var y=this;this.channelId=h;this.j=u;var A=this.Da("ytp-sb-subscribe"),B=this.Da("ytp-sb-unsubscribe");
f&&g.fo(this.element,"ytp-sb-classic");if(e){l?this.u():this.B();var D=function(){var H=y.channelId;if(m||n){var L={c:H};if(q.V().K("embeds_botguard_with_subscribe_killswitch"))L="";else{var N;g.JM.isInitialized()&&(N=qGa(L));L=N||""}if(N=q.getVideoData())if(N=N.subscribeCommand){var K=q.Jm();K?(uM(K,N,{botguardResponse:L,feature:m}),q.Pa("SUBSCRIBE",H)):g.eu(Error("No innertube service available when updating subscriptions."))}else g.eu(Error("No subscribe command in videoData."));else g.eu(Error("No video data available when updating subscription."))}B.focus();
B.removeAttribute("aria-hidden");A.setAttribute("aria-hidden","true")},G=function(){var H=y.channelId;
if(m||n){var L=q.getVideoData();uM(q.Jm(),L.unsubscribeCommand,{feature:m});q.Pa("UNSUBSCRIBE",H)}A.focus();A.removeAttribute("aria-hidden");B.setAttribute("aria-hidden","true")};
this.T(A,"click",D);this.T(B,"click",G);this.T(A,"keypress",function(H){13===H.keyCode&&D(H)});
this.T(B,"keypress",function(H){13===H.keyCode&&G(H)});
this.T(q,"SUBSCRIBE",this.u);this.T(q,"UNSUBSCRIBE",this.B);this.j&&p&&(this.tooltip=this.j.wc(),hP(this.tooltip),g.$e(this,g.dP(this.tooltip,A)),g.$e(this,g.dP(this.tooltip,B)))}else g.fo(A,"ytp-sb-disabled"),g.fo(B,"ytp-sb-disabled")}};
jP=function(a,b){g.W.call(this,{F:"div",N:"ytp-title-channel",W:[{F:"div",N:"ytp-title-beacon"},{F:"a",N:"ytp-title-channel-logo",X:{href:"{{channelLink}}",target:a.V().J,"aria-label":"{{channelLogoLabel}}"}},{F:"div",N:"ytp-title-expanded-overlay",X:{"aria-hidden":"{{flyoutUnfocusable}}"},W:[{F:"div",N:"ytp-title-expanded-heading",W:[{F:"div",N:"ytp-title-expanded-title",W:[{F:"a",oa:"{{expandedTitle}}",X:{href:"{{channelTitleLink}}",target:a.V().J,tabIndex:"{{channelTitleFocusable}}"}}]},{F:"div",
N:"ytp-title-expanded-subtitle",oa:"{{expandedSubtitle}}"}]}]}]});this.api=a;this.I=b;this.channel=this.Da("ytp-title-channel");this.j=this.Da("ytp-title-channel-logo");this.C=this.Da("ytp-title-expanded-overlay");this.B=this.u=this.subscribeButton=null;this.D=g.KF(this.api.V());a.vb(this.j,this,36925);this.D&&jIa(this);this.T(a,"videodatachange",this.Ja);this.T(a,"videoplayerreset",this.Ja);this.Ja()};
jIa=function(a){var b=a.api.V(),c=a.api.getVideoData();if(!b.pe){var d=b.authUser?null:LFa(),e=new g.iP("Subscribe",null,"Subscribed",null,!0,!1,c.Kk,c.subscribed,"channel_avatar",null,d,a.api,a.I);a.subscribeButton=e;g.M(a,e);e.Ca(a.C);a.api.vb(e.element,a,36926);e.hide();a.T(e.element,"click",function(){a.api.ub(e.element)});
var f=new gP(a.api);a.u=f;g.M(a,f);f.Ca(a.C);f.hide();a.T(a.api,"SUBSCRIBE",function(){c.Ok&&f.show()});
a.T(a.api,"UNSUBSCRIBE",function(){c.Ok&&(f.hide(),iIa(f,!1))})}a.Oa("flyoutUnfocusable","true");
a.Oa("channelTitleFocusable","-1");b.isMobile||b.Ok?a.T(a.j,"click",function(h){kIa(a)&&(h.preventDefault(),a.isExpanded()?a.VG():a.CH());a.api.ub(a.j)}):(a.T(a.channel,"mouseenter",a.CH),a.T(a.channel,"mouseleave",a.VG),a.T(a.channel,"focusin",a.CH),a.T(a.channel,"focusout",function(h){a.channel.contains(h.relatedTarget)||a.VG()}),a.T(a.j,"click",function(){a.api.ub(a.j)}));
a.B=new g.Xn(function(){a.isExpanded()&&(a.subscribeButton&&(a.subscribeButton.hide(),a.api.Xa(a.subscribeButton.element,!1)),a.u&&(a.u.hide(),a.api.Xa(a.u.element,!1)),a.channel.classList.remove("ytp-title-expanded"),a.channel.classList.add("ytp-title-show-collapsed"))},500);
g.M(a,a.B);a.T(a.channel,lIa,function(){mIa(a)});
a.T(a.api,"onHideControls",a.xK);a.T(a.api,"appresize",a.xK);a.T(a.api,"fullscreentoggled",a.xK)};
mIa=function(a){a.channel.classList.remove("ytp-title-show-collapsed");a.channel.classList.remove("ytp-title-show-expanded")};
kIa=function(a){var b=a.api.getPlayerSize();return a.D&&524<=b.width};
nIa=function(a,b){var c={};a.api.V().Aa&&g.bN(c,a.api.V().loaderUrl);return g.wi(b,g.aN(c,"emb_ch_name_ex"))};
kP=function(a,b,c,d,e,f){var h={F:"div",N:"ytp-panel"};if(c){var l="ytp-panel-back-button";var m="ytp-panel-title";var n={F:"div",N:"ytp-panel-header",W:[{F:"div",Fa:["ytp-panel-back-button-container"],W:[{X:{"aria-label":"Back to previous menu"},F:"button",Fa:["ytp-button",l]}]},{X:{tabindex:"0"},F:"span",Fa:[m],W:[c]}]};if(e){var p="ytp-panel-options";n.W.push({F:"button",Fa:["ytp-button",p],W:[d]})}h.W=[n]}d=!1;f&&(f={F:"div",N:"ytp-panel-footer",W:[f]},d=!0,h.W?h.W.push(f):h.W=[f]);g.XK.call(this,
h);this.content=b;d&&h.W?b.Ca(this.element,h.W.length-1):b.Ca(this.element);this.DP=!1;this.CP=d;c&&(c=this.Da(l),m=this.Da(m),this.T(c,"click",this.OQ),this.T(m,"click",this.OQ),this.DP=!0,e&&(p=this.Da(p),this.T(p,"click",e)));b.subscribe("size-change",this.UQ,this);this.T(a,"fullscreentoggled",this.UQ);g.jo(this.element,"ytp-panel-min-width-killswitch",a.V().K("player_panel_min_width_killswitch"));this.G=a};
oIa=function(a,b){var c=new g.XK({F:"div",N:"ytp-multi-item-panel"});a.content.Ca(c.element);b.Ca(c.element);a.content=c;c.Ca(a.element);g.M(a,c)};
g.lP=function(a,b,c,d,e,f){b=void 0===b?null:b;var h={role:"menu"};b&&(h.id=b);b=new g.XK({F:"div",N:"ytp-panel-menu",X:h});kP.call(this,a,b,c,d,e,f);this.menuItems=b;this.items=[];g.M(this,this.menuItems)};
g.mP=function(a){for(var b=g.r(a.items),c=b.next();!c.done;c=b.next())c.value.unsubscribe("size-change",a.MJ,a);a.items=[];g.jh(a.menuItems.element);a.menuItems.ma("size-change")};
pIa=function(a,b){return b.priority-a.priority};
nP=function(a){var b=g.HN({"aria-haspopup":"true"});g.GN.call(this,b,a);this.Ra("keydown",this.j)};
oP=function(a,b){a.element.setAttribute("aria-haspopup",String(b))};
pP=function(a,b){g.W.call(this,{F:"div",N:"ytp-user-info-panel",X:{"aria-label":"User info"},W:a.V().authUser&&!a.K("embeds_web_always_enable_signed_out_state")?[{F:"div",N:"ytp-user-info-panel-icon",oa:"{{icon}}"},{F:"div",N:"ytp-user-info-panel-content",W:[{F:"div",N:"ytp-user-info-panel-info",X:{tabIndex:"{{userInfoFocusable}}",role:"text"},oa:"{{watchingAsUsername}}"},{F:"div",N:"ytp-user-info-panel-info",X:{tabIndex:"{{userInfoFocusable2}}",role:"text"},oa:"{{watchingAsEmail}}"}]}]:[{F:"div",
N:"ytp-user-info-panel-icon",oa:"{{icon}}"},{F:"div",N:"ytp-user-info-panel-content",W:[{F:"div",W:[{F:"text",X:{tabIndex:"{{userInfoFocusable}}"},oa:"Signed out"}]},{F:"div",N:"ytp-user-info-panel-login",W:[{F:"a",X:{tabIndex:"{{userInfoFocusable2}}",role:"button"},oa:a.V().pe?"":"Sign in on YouTube"}]}]}]});this.Va=a;this.j=b;a.V().authUser||a.V().pe||(a=this.Da("ytp-user-info-panel-login"),this.T(a,"click",this.QV));this.closeButton=new g.W({F:"button",Fa:["ytp-collapse","ytp-button"],X:{title:"Close"},
W:[g.jFa()]});this.closeButton.Ca(this.element);g.M(this,this.closeButton);this.T(window,"blur",this.hide);this.T(document,"click",this.PV);this.Ja()};
qP=function(a,b,c,d){g.lP.call(this,a);this.qb=c;this.Ic=d;this.getVideoUrl=new nP(6);this.ql=new nP(5);this.jl=new nP(4);this.Sb=new nP(3);this.qA=new g.GN(g.HN({href:"{{href}}",target:this.G.V().J},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.GN(g.HN(),1,"Stats for nerds");this.Dv=new g.XK({F:"div",Fa:["ytp-copytext","ytp-no-contextmenu"],X:{draggable:"false",tabindex:"1"},oa:"{{text}}"});this.sO=new kP(this.G,this.Dv);this.SA=this.eq=null;g.KF(this.G.V())&&(this.Ek=new g.GN(g.HN(),
8,"Account"),g.M(this,this.Ek),this.Fc(this.Ek,!0),this.Ek.Ra("click",this.I2,this),a.vb(this.Ek.element,this.Ek,137682));this.G.V().Pj&&(this.lk=new NN("Loop",7),g.M(this,this.lk),this.Fc(this.lk,!0),this.lk.Ra("click",this.t1,this),a.vb(this.lk.element,this.lk,28661));g.M(this,this.getVideoUrl);this.Fc(this.getVideoUrl,!0);this.getVideoUrl.Ra("click",this.f1,this);a.vb(this.getVideoUrl.element,this.getVideoUrl,28659);g.M(this,this.ql);this.Fc(this.ql,!0);this.ql.Ra("click",this.g1,this);a.vb(this.ql.element,
this.ql,28660);g.M(this,this.jl);this.Fc(this.jl,!0);this.jl.Ra("click",this.e1,this);a.vb(this.jl.element,this.jl,28658);g.M(this,this.Sb);this.Fc(this.Sb,!0);this.Sb.Ra("click",this.d1,this);g.M(this,this.qA);this.Fc(this.qA,!0);this.qA.Ra("click",this.n2,this);g.M(this,this.showVideoInfo);this.Fc(this.showVideoInfo,!0);this.showVideoInfo.Ra("click",this.J2,this);g.M(this,this.Dv);this.Dv.Ra("click",this.Q0,this);g.M(this,this.sO);b=document.queryCommandSupported&&document.queryCommandSupported("copy");
43<=Eb("Chromium")&&(b=!0);40>=Eb("Firefox")&&(b=!1);b&&(this.eq=new g.W({F:"textarea",N:"ytp-html5-clipboard",X:{readonly:"",tabindex:"-1"}}),g.M(this,this.eq),this.eq.Ca(this.element));var e;null==(e=this.Ek)||IN(e,gFa());var f;null==(f=this.lk)||IN(f,{F:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{F:"path",X:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});IN(this.Sb,{F:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{F:"path",
X:{"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"}}]});IN(this.qA,{F:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{F:"path",X:{"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"}}]});IN(this.showVideoInfo,cFa());this.T(a,"onLoopChange",this.onLoopChange);this.T(a,"videodatachange",this.onVideoDataChange);qIa(this);this.yS(this.G.getVideoData())};
sP=function(a,b){var c=!1;if(a.eq){var d=a.eq.element;d.value=b;d.select();try{c=document.execCommand("copy")}catch(e){}}c?a.qb.Bb():(a.Dv.Wd(b,"text"),g.rP(a.qb,a.sO),HO(a.Dv.element),a.eq&&(a.eq=null,qIa(a)));return c};
qIa=function(a){var b=!!a.eq;a.Sb.Mg(b?"Copy debug info":"Get debug info");oP(a.Sb,!b);a.jl.Mg(b?"Copy embed code":"Get embed code");oP(a.jl,!b);a.getVideoUrl.Mg(b?"Copy video URL":"Get video URL");oP(a.getVideoUrl,!b);a.ql.Mg(b?"Copy video URL at current time":"Get video URL at current time");oP(a.ql,!b);IN(a.jl,b?aFa():null);IN(a.getVideoUrl,b?eL():null);IN(a.ql,b?eL():null)};
g.tP=function(a,b){g.DN.call(this,a,{F:"div",Fa:["ytp-popup",b||""]},100,!0);this.j=[];this.I=this.C=null;this.AB=this.maxWidth=0;this.size=new g.Kg(0,0);this.Ra("keydown",this.RV)};
rIa=function(a){var b=a.j[a.j.length-1];if(b){g.Jl(a.element,a.maxWidth||"100%",a.AB||"100%");b.G.V().K("player_panel_min_width_killswitch")&&g.zl(b.element,"minWidth","250px");g.zl(b.element,"width","");g.zl(b.element,"height","");g.zl(b.element,"maxWidth","100%");g.zl(b.element,"maxHeight","100%");g.zl(b.content.element,"height","");var c=g.Kl(b.element);c.width+=1;c.height+=1;g.zl(b.element,"width",c.width+"px");g.zl(b.element,"height",c.height+"px");g.zl(b.element,"maxWidth","");g.zl(b.element,
"maxHeight","");var d=0;b.DP&&(d=b.Da("ytp-panel-header"),d=g.Kl(d).height);var e=0;b.CP&&(e=b.Da("ytp-panel-footer"),g.zl(e,"width",c.width+"px"),e=g.Kl(e).height);g.zl(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.zl(b.element,"width",c.width+"px")));a.size=c}};
g.rP=function(a,b){var c=a.j[a.j.length-1];a.j.push(b);uP(a,c,b)};
g.vP=function(a){if(!(1>=a.j.length)){var b=a.j.pop(),c=a.j[0];a.j=[c];uP(a,b,c,!0)}};
uP=function(a,b,c,d){sIa(a);b&&(b.unsubscribe("size-change",a.nx,a),b.unsubscribe("back",a.Wi,a));c.subscribe("size-change",a.nx,a);c.subscribe("back",a.Wi,a);if(a.rb){g.fo(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.Ca(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;rIa(a);g.Jl(a.element,e);a.C=new g.Xn(function(){tIa(a,b,c,d)},20,a);
a.C.start()}else c.Ca(a.element),b&&b.detach()};
tIa=function(a,b,c,d){a.C.dispose();a.C=null;g.fo(a.element,"ytp-popup-animating");d?(g.fo(b.element,"ytp-panel-animate-forward"),g.ho(c.element,"ytp-panel-animate-back")):(g.fo(b.element,"ytp-panel-animate-back"),g.ho(c.element,"ytp-panel-animate-forward"));g.Jl(a.element,a.size);a.I=new g.Xn(function(){g.ho(a.element,"ytp-popup-animating");b.detach();g.io(b.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);a.I.dispose();a.I=null},250,a);
a.I.start()};
sIa=function(a){a.C&&g.Zn(a.C);a.I&&g.Zn(a.I)};
g.wP=function(a,b,c){g.tP.call(this,a);this.ya=b;this.Ic=c;this.B=new g.XD(this);this.ea=new g.Xn(this.b3,1E3,this);this.qa=this.D=null;g.M(this,this.B);g.M(this,this.ea);a.vb(this.element,this,28656);g.fo(this.element,"ytp-contextmenu");uIa(this);this.hide()};
uIa=function(a){g.$y(a.B);if("gvn"!==a.G.V().playerStyle){var b=a.G.gb();a.B.T(b,"contextmenu",a.O0);a.B.T(b,"touchstart",a.TV,null,!0);a.B.T(b,"touchmove",a.xR,null,!0);a.B.T(b,"touchend",a.xR,null,!0)}};
vIa=function(a){a.G.isFullscreen()?g.BN(a.G,a.element,10):a.Ca(document.body)};
g.xP=function(a,b,c){c=void 0===c?240:c;g.W.call(this,{F:"button",Fa:["ytp-button","ytp-copylink-button"],X:{title:"{{title-attr}}","data-tooltip-opaque":String(g.KF(a.V()))},W:[{F:"div",N:"ytp-copylink-icon",oa:"{{icon}}"},{F:"div",N:"ytp-copylink-title",oa:"Copy link",X:{"aria-hidden":"true"}}]});this.api=a;this.j=b;this.u=c;this.visible=!1;this.tooltip=this.j.wc();b=a.V();hP(this.tooltip);g.jo(this.element,"ytp-show-copylink-title",g.KF(b)&&!g.VF(b));a.vb(this.element,this,86570);this.Ra("click",
this.onClick);this.T(a,"videodatachange",this.Ja);this.T(a,"videoplayerreset",this.Ja);this.T(a,"appresize",this.Ja);this.Ja();g.$e(this,g.dP(this.tooltip,this.element))};
wIa=function(a){a.Oa("icon",$K());if(a.api.V().isMobile)yP(a.tooltip,a.element,"Link copied to clipboard");else{a.Oa("title-attr","Link copied to clipboard");zP(a.tooltip);yP(a.tooltip,a.element);var b=a.Ra("mouseleave",function(){a.yc(b);a.Ja();a.tooltip.Yj()})}};
xIa=function(a,b){return g.z(function(c){if(1==c.j)return g.pa(c,2),g.x(c,navigator.clipboard.writeText(b),4);if(2!=c.j)return c.return(!0);g.ua(c);var d=c.return,e=!1,f=g.hh("TEXTAREA");f.value=b;f.setAttribute("readonly","");var h=a.api.getRootNode();h.appendChild(f);if(Uu){var l=window.getSelection();l.removeAllRanges();var m=document.createRange();m.selectNodeContents(f);l.addRange(m);f.setSelectionRange(0,b.length)}else f.select();try{e=document.execCommand("copy")}catch(n){}h.removeChild(f);
return d.call(c,e)})};
AP=function(){g.W.call(this,{F:"div",N:"ytp-doubletap-ui",W:[{F:"div",Fa:["ytp-seek-info-container","ytp-seek-static-circle"],W:[{F:"div",N:"ytp-seek-arrows-container",W:[{F:"span",N:"ytp-seek-base-arrow"},{F:"span",N:"ytp-seek-base-arrow"},{F:"span",N:"ytp-seek-base-arrow"}]},{F:"div",N:"ytp-seek-tooltip",W:[{F:"div",N:"ytp-chapter-seek-text",oa:"{{chapterSeekText}}"},{F:"div",N:"ytp-seek-tooltip-label",oa:"{{seekTime}}"}]}]}]});this.u=new g.Xn(this.show,10,this);this.j=new g.Xn(this.hide,700,this);
g.M(this,this.u);g.M(this,this.j);this.hide()};
BP=function(a){g.W.call(this,{F:"div",N:"ytp-doubletap-ui-legacy",W:[{F:"div",N:"ytp-doubletap-fast-forward-ve"},{F:"div",N:"ytp-doubletap-rewind-ve"},{F:"div",N:"ytp-doubletap-static-circle",W:[{F:"div",N:"ytp-doubletap-ripple"}]},{F:"div",N:"ytp-doubletap-overlay-a11y"},{F:"div",N:"ytp-doubletap-seek-info-container",W:[{F:"div",N:"ytp-doubletap-arrows-container",W:[{F:"span",N:"ytp-doubletap-base-arrow"},{F:"span",N:"ytp-doubletap-base-arrow"},{F:"span",N:"ytp-doubletap-base-arrow"}]},{F:"div",
N:"ytp-doubletap-tooltip",W:[{F:"div",N:"ytp-chapter-seek-text-legacy",oa:"{{seekText}}"},{F:"div",N:"ytp-doubletap-tooltip-label",oa:"{{seekTime}}"}]}]}]});this.G=a;this.B=new g.Xn(this.show,10,this);this.u=new g.Xn(this.hide,700,this);this.j=this.Da("ytp-doubletap-static-circle");g.M(this,this.B);g.M(this,this.u);this.hide();this.C=this.Da("ytp-doubletap-fast-forward-ve");this.D=this.Da("ytp-doubletap-rewind-ve");this.G.vb(this.C,this,28240);this.G.vb(this.D,this,28239);this.G.Xa(this.C,!0);this.G.Xa(this.D,
!0)};
yIa=function(a,b){b=g.FJ("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:b.toString()});a.Oa("seekTime",b)};
CP=function(a,b,c){g.W.call(this,{F:"div",Fa:["ytp-info-panel-action-item"],W:[{F:"div",N:"ytp-info-panel-action-item-disclaimer",oa:"{{disclaimer}}"},{F:"a",Fa:["ytp-info-panel-action-item-button","ytp-button"],X:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},W:[{F:"div",N:"ytp-info-panel-action-item-icon",oa:"{{icon}}"},{F:"div",N:"ytp-info-panel-action-item-label",oa:"{{label}}"}]}]});this.G=a;this.isMobile=c;this.disclaimer=this.Da("ytp-info-panel-action-item-disclaimer");this.button=
this.Da("ytp-info-panel-action-item-button");this.isValid=!1;this.G.Ug(this.element,this);this.Ra("click",this.onClick);a=zIa(this,b);var d;if(c=null==(d=b.disclaimerText)?void 0:d.content){this.button.style.borderBottom="1px solid white";var e;this.update({label:null==(e=b.bodyText)?void 0:e.content,icon:hL(),disclaimer:c,url:a})}else{this.disclaimer.style.display="none";var f;this.update({label:null==(f=b.bodyText)?void 0:f.content,icon:hL(),url:a})}this.G.ji(this.element,b.trackingParams||null)};
zIa=function(a,b){var c="";b=g.Zu(null==b?void 0:b.onTap,hHa);var d=g.Zu(b,g.PH);if(d)return c=d.url||"",c.startsWith("//")&&(c="http:"+c),a.isValid=!0,c;if((d=g.Zu(b,AIa))&&a.isMobile)return(c=d.phoneNumbers)&&0<c.length?(c="sms:"+c[0],d.messageText&&(c+="?&body="+encodeURI(d.messageText))):c="",a.isValid=!0,c;if((b=g.Zu(b,BIa))&&a.isMobile)return c=b.phoneNumber?"tel:"+b.phoneNumber:"",a.isValid=!0,c;a.isValid=!1;return c};
DP=function(a,b){var c=SK();g.DN.call(this,a,{F:"div",N:"ytp-info-panel-detail",X:{role:"dialog",id:c},W:[{F:"div",N:"ytp-info-panel-detail-header",W:[{F:"div",N:"ytp-info-panel-detail-title",oa:"{{title}}"},{F:"button",Fa:["ytp-info-panel-detail-close","ytp-button"],X:{"aria-label":"Close"},W:[g.cL()]}]},{F:"div",N:"ytp-info-panel-detail-body",oa:"{{body}}"},{F:"div",N:"ytp-info-panel-detail-items"}]},250);this.isMobile=b;this.items=this.Da("ytp-info-panel-detail-items");this.B=new g.XD(this);this.j=
[];this.C=c;b=this.Da("ytp-info-panel-detail-close");this.T(b,"click",this.Bb);g.M(this,this.B);this.G.Ug(this.element,this);this.T(a,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",a.getVideoData());this.hide()};
CIa=function(a,b){a=g.r(a.j);for(var c=a.next();!c.done;c=a.next())c=c.value,c.G.Xa(c.element,b)};
FP=function(a,b){g.W.call(this,{F:"div",N:"ytp-info-panel-preview",X:{"aria-live":"assertive","aria-atomic":"true","aria-owns":b.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.KF(a.V()))},W:[{F:"div",N:"ytp-info-panel-preview-text",oa:"{{text}}"},{F:"div",N:"ytp-info-panel-preview-chevron",oa:"{{chevron}}"}]});var c=this;this.G=a;this.Dd=this.j=this.videoId=null;this.C=this.showControls=this.u=!1;this.T(this.element,"click",function(){c.G.ub(c.element);EN(b)});
this.B=new g.IL(this,250,!1,100);g.M(this,this.B);this.G.Ug(this.element,this);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.Uc);this.T(this.G,"paidcontentoverlayvisibilitychange",this.VQ);this.T(this.G,"infopaneldetailvisibilitychange",this.VQ);var d=a.getVideoData()||{};DIa(d)&&EP(this,d);this.T(a,"onShowControls",this.VV);this.T(a,"onHideControls",this.UV)};
EP=function(a,b){if(!b.Ne||!a.G.ul()){var c=b.lN||1E4,d=DIa(b);a.j?b.videoId&&b.videoId!==a.videoId&&(g.$n(a.j),a.videoId=b.videoId,d?(EIa(a,c,b),a.Qc()):(a.Bb(),a.j.dispose(),a.j=null)):d&&(b.videoId&&(a.videoId=b.videoId),EIa(a,c,b),a.Qc())}};
DIa=function(a){var b,c,d,e;return!!(null==(b=a.kf)?0:null==(c=b.title)?0:c.content)||!!(null==(d=a.kf)?0:null==(e=d.bodyText)?0:e.content)};
EIa=function(a,b,c){a.j&&a.j.dispose();a.j=new g.Xn(a.F4,b,a);g.M(a,a.j);var d;b=(null==(d=c.kf)?void 0:d.trackingParams)||null;a.G.ji(a.element,b);var e;var f,h;if(null==c?0:null==(f=c.kf)?0:null==(h=f.title)?0:h.content){var l;d=null==(e=c.kf)?void 0:null==(l=e.title)?void 0:l.content;var m,n;if(null==(m=c.kf)?0:null==(n=m.bodyText)?0:n.content)d+=" \u2022 ";e=d}else e="";var p,q;c=(null==(p=c.kf)?void 0:null==(q=p.bodyText)?void 0:q.content)||"";a.update({text:e+c,chevron:g.bL()})};
FIa=function(a,b){a.j&&(g.V(b,8)?(a.u=!0,a.Qc(),a.j.start()):(g.V(b,2)||g.V(b,64))&&a.videoId&&(a.videoId=null))};
GP=function(a){var b=null;try{b=a.toLocaleString("en",{style:"percent"})}catch(c){b=a.toLocaleString(void 0,{style:"percent"})}return b};
HP=function(a,b){var c=0;a=g.r(a);for(var d=a.next();!(d.done||d.value.startTime>b);d=a.next())c++;return 0===c?c:c-1};
GIa=function(a,b){for(var c=0,d=g.r(a),e=d.next();!e.done;e=d.next()){e=e.value;if(b<e.timeRangeStartMillis)return null;if(b>=e.timeRangeStartMillis&&b<e.timeRangeStartMillis+e.j)break;c++}c+1<a.length&&a[c+1].timeRangeStartMillis<=b&&c++;return c<a.length?c:null};
HIa=function(a,b){b=HP(a,b)+1;return b<a.length?b:-1};
IIa=function(a,b){return HP(a,b)-1};
JIa=function(a,b){return new g.qA(a,b,{namespace:"timedMarkerCueRange",priority:9,id:"tm_"+a})};
g.JP=function(a,b,c,d,e,f,h,l){g.XD.call(this);var m=this;this.api=a;this.contextMenu=c;this.je=d;this.Ic=e;this.j=f;this.C=h;this.Cc=l;this.B=new g.Xn(function(){KIa(m,!1)},1E3);
this.u="";g.M(this,this.B);this.T(b,"mousedown",function(){IP(m,!1)});
this.T(c.element,"mousedown",function(){IP(m,!1)});
this.T(b,"keydown",this.tP);this.T(c.element,"keydown",this.tP);this.T(b,"keyup",this.uP);this.T(c.element,"keyup",this.uP)};
IP=function(a,b){g.jo(a.api.getRootNode(),"ytp-probably-keyboard-focus",b);g.jo(a.contextMenu.element,"ytp-probably-keyboard-focus",b)};
LP=function(a,b,c,d){var e=g.nO(a.api.wb());if(e&&e.loaded){var f=a.api.getSubtitlesUserSettings();e=void 0;for(var h=0;h<g.KP.length;h++){var l=g.KP[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);KIa(a,!0);a.B.start()}};
LIa=function(a,b){a.api.hg();if(g.V(a.api.Eb(),4)){var c=a.api.getVideoData().u;c&&(c=c.video)&&a.api.seekBy(b/(c.fps||30))}};
KIa=function(a,b){g.nO(a.api.wb())&&a.api.setOption("captions","sampleSubtitles",b)};
MP=function(a,b,c){g.W.call(this,{F:"button",Fa:["ytp-button","ytp-overflow-button"],X:{title:"More","aria-haspopup":"true","aria-owns":c.element.id},W:[{F:"div",N:"ytp-overflow-icon",W:[{F:"svg",X:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},W:[{F:"path",X:{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.G=a;this.j=b;this.visible=!1;this.tooltip=this.j.wc();
a.vb(this.element,this,16499);this.T(a,"appresize",this.Ja);this.T(a,"fullscreentoggled",this.Ja);this.T(a,"presentingplayerstatechange",this.Ja);this.Ja();g.$e(this,g.dP(this.tooltip,this.element));this.Ra("click",function(){a.ub(d.element);EN(c,d.element,!1)});
this.T(c.closeButton,"click",function(){d.focus()})};
NP=function(a,b){g.DN.call(this,a,{F:"div",N:"ytp-overflow-panel",X:{id:SK(),role:"dialog"},W:[{F:"div",N:"ytp-overflow-panel-content",W:[{F:"div",N:"ytp-overflow-panel-action-buttons",oa:"{{buttons}}"}]},{F:"button",Fa:["ytp-overflow-panel-close","ytp-button"],X:{title:"Close"},W:[g.cL()]}]},250);this.actionButtons=[];this.tooltip=b.wc();this.j=this.Da("ytp-overflow-panel-content");this.closeButton=this.Da("ytp-overflow-panel-close");this.T(this.closeButton,"click",this.Bb);g.$e(this,g.dP(this.tooltip,
this.closeButton));this.Ra("click",this.WV);this.T(a,"videoplayerreset",this.hide);this.T(a,"fullscreentoggled",this.onFullscreenToggled);this.hide()};
OP=function(a,b){a.actionButtons.includes(b)||(a.actionButtons.push(b),a.Oa("buttons",a.actionButtons))};
MIa=function(a,b){a=g.r(a.actionButtons);for(var c=a.next();!c.done;c=a.next())c.value.Wb(b)};
PP=function(a,b,c){var d=g.$N(b,c),e=a.V(),f=d.Mf("default.jpg");g.W.call(this,{F:"a",Fa:["ytp-video-menu-item","ytp-button"],X:{role:"menuitemradio","aria-label":d.title,href:e.getVideoUrl(d.videoId,b.listId?b.listId.toString():null)},W:[{F:"div",N:"ytp-video-menu-item-index",oa:String(c+1)},{F:"div",N:"ytp-video-menu-item-now-playing",oa:"\u25b6"},{F:"div",N:"ytp-video-menu-item-thumbnail",X:{style:f?"background-image: url("+f+");":void 0}},{F:"div",N:"ytp-video-menu-item-title",oa:d.title},{F:"div",
N:"ytp-video-menu-item-author",oa:d.author}]});this.api=a;this.index=c;this.Ra("click",this.onClick)};
QP=function(a){g.DN.call(this,a,{F:"div",N:"ytp-playlist-menu",X:{role:"dialog",id:SK()},W:[{F:"div",N:"ytp-playlist-menu-header",W:[{F:"div",N:"ytp-playlist-menu-title",W:[a.V().B?{F:"span",N:"ytp-playlist-menu-title-name",oa:"{{title}}"}:{F:"a",N:"ytp-playlist-menu-title-name",X:{href:"{{playlisturl}}"},oa:"{{title}}"},{F:"button",Fa:["ytp-playlist-menu-close","ytp-button"],X:{"aria-label":"Close"},W:[g.cL()]}]},{F:"div",N:"ytp-playlist-menu-subtitle",oa:"{{subtitle}}"}]},{F:"div",N:"ytp-playlist-menu-items",
X:{role:"menu"}}]},250);this.api=a;this.C=this.selected=this.D=this.playlist=null;this.items=this.Da("ytp-playlist-menu-items");this.B=new g.XD(this);this.j=[];var b=this.Da("ytp-playlist-menu-close");this.T(b,"click",this.Bb);b=this.Da("ytp-playlist-menu-title-name");a.V().B||(this.C=this.T(b,"click",this.Z2));g.M(this,this.B);this.hide()};
RP=function(a,b,c){g.W.call(this,{F:"button",Fa:["ytp-playlist-menu-button","ytp-button"],X:{title:"{{title}}","aria-owns":String(c.element.id),"aria-haspopup":"true","aria-label":"Playlist"},W:[{F:"div",N:"ytp-playlist-menu-button-icon",W:[{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,X:{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"}}]}]},{F:"div",N:"ytp-playlist-menu-button-text",oa:"{{text}}"}]});var d=this;this.api=a;this.playlist=null;this.visible=!1;this.tooltip=b.wc();a.vb(this.element,this,70344);this.T(a,"videodatachange",this.j);this.T(a,"onPlaylistUpdate",this.j);this.T(a,"presentingplayerstatechange",this.Ja);this.T(a,"appresize",this.Ja);this.hide();this.j();g.$e(this,g.dP(this.tooltip,this.element));this.Ra("click",function(){a.ub(d.element);EN(c,d.element,!1)})};
SP=function(a,b,c){g.W.call(this,{F:"div",N:"ytp-promotooltip-wrapper",W:[{F:"div",N:"ytp-promotooltip-container",W:[{F:"div",N:"ytp-promotooltip-content",W:[{F:"div",N:"ytp-promotooltip-title",oa:"{{title}}"},{F:"div",N:"ytp-promotooltip-details",oa:"{{details}}"}]},{F:"div",N:"ytp-promotooltip-buttons",W:[{F:"div",N:"ytp-promotooltip-dismiss-button",oa:"{{dismissButtonText}}",X:{tabindex:"0"}},{F:"div",N:"ytp-promotooltip-accept-button",oa:"{{acceptButtonText}}",X:{tabindex:"0","aria-haspopup":"true"}}]}]},
{F:"div",N:"ytp-promotooltip-pointer"}]});this.tooltipRenderer=a;this.J=b;this.G=c;this.j=this.B=null;this.title=this.Da("ytp-promotooltip-title");this.details=this.Da("ytp-promotooltip-details");this.acceptButton=this.Da("ytp-promotooltip-accept-button");this.dismissButton=this.Da("ytp-promotooltip-dismiss-button");this.u=this.D=!1;this.C=!0;this.Z=this.I=this.S=!1;g.WK(this,!1);a=this.tooltipRenderer.trackingParams||null;if(this.u=!!a)this.G.Ug(this.element,this,!0),this.G.ji(this.element,a);this.T(c,
"onShowControls",this.YV);this.T(c,"onHideControls",this.XV);this.T(c,"resize",this.Cb);this.T(this.acceptButton,"click",this.b0);this.T(this.dismissButton,"click",this.V0);this.T(document,"click",this.ZV)};
NIa=function(a){var b=document.querySelectorAll('[data-tooltip-target-id="'+a.tooltipRenderer.targetId+'"]');b=0<b.length?b[0]:null;var c=g.ch("ytp-chrome-bottom"),d=g.ch("ytp-ad-module");a.C=!(null==c||!c.contains(b));a.S=!(null==d||!d.contains(b));return b};
VP=function(a,b,c){if(!a.D){if(b){a.tooltipRenderer=b;b=a.tooltipRenderer.text;var d=!1,e;(null==b?0:null==(e=b.runs)?0:e.length)&&b.runs[0].text&&(a.update({title:b.runs[0].text.toString()}),d=!0);g.Ll(a.title,d);b=a.tooltipRenderer.detailsText;e=!1;var f;if((null==b?0:null==(f=b.runs)?0:f.length)&&b.runs[0].text){d=b.runs[0].text.toString();f=d.indexOf("$TARGET_ICON");if(-1<f)if(a.tooltipRenderer.targetId){b=[];d=d.split("$TARGET_ICON");var h=new g.TK({F:"span",N:"ytp-promotooltip-details-icon",
W:[OIa[a.tooltipRenderer.targetId]]});g.M(a,h);for(var l=[],m=g.r(d),n=m.next();!n.done;n=m.next())n=new g.TK({F:"span",N:"ytp-promotooltip-details-component",oa:n.value}),g.M(a,n),l.push(n);2===d.length?(b.push(l[0].element),b.push(h.element),b.push(l[1].element)):1===d.length&&(0===f?(b.push(h.element),b.push(l[0].element)):(b.push(l[0].element),b.push(h.element)));f=b.length?b:null}else f=null;else f=d;if(f){if("string"!==typeof f)for(g.jh(a.details),e=g.r(f),f=e.next();!f.done;f=e.next())a.details.appendChild(f.value);
else a.update({details:f});e=!0}}g.Ll(a.details,e);e=a.tooltipRenderer.acceptButton;f=!1;var p,q,u;(null==e?0:null==(p=e.buttonRenderer)?0:null==(q=p.text)?0:null==(u=q.runs)?0:u.length)&&e.buttonRenderer.text.runs[0].text&&(a.update({acceptButtonText:e.buttonRenderer.text.runs[0].text.toString()}),f=!0);g.Ll(a.acceptButton,f);p=a.tooltipRenderer.dismissButton;q=!1;var w,y,A;(null==p?0:null==(w=p.buttonRenderer)?0:null==(y=w.text)?0:null==(A=y.runs)?0:A.length)&&p.buttonRenderer.text.runs[0].text&&
(a.update({dismissButtonText:p.buttonRenderer.text.runs[0].text.toString()}),q=!0);g.Ll(a.dismissButton,q)}c&&(a.B=c);a.j=NIa(a);a.I=!1;a.G.V().K("web_player_hide_nitrate_promo_tooltip")||g.WK(a,!0);TP(a);a.Z||(a.Z=!0,UP(a,0));a.u&&a.G.Xa(a.element,a.rb)}};
WP=function(a){g.WK(a,!1);a.u&&a.G.Xa(a.element,a.rb)};
UP=function(a,b){var c=a.tooltipRenderer.promoConfig;if(c){switch(b){case 0:var d;if(null==(d=c.impressionEndpoints)?0:d.length)var e=c.impressionEndpoints[0];break;case 1:e=c.acceptCommand;break;case 2:e=c.dismissCommand}var f;b=null==(f=g.Zu(e,PIa))?void 0:f.feedbackToken;e&&b&&(f={feedbackTokens:[b]},a=a.G.Jm(),(null==a?0:OFa(e,a.uH))&&uM(a,e,f))}};
QIa=function(a){var b,c,d,e,f,h=(null==(b=a.acceptButton)?void 0:null==(c=b.buttonRenderer)?void 0:null==(d=c.text)?void 0:null==(e=d.runs)?void 0:e.length)&&!(null==(f=a.acceptButton)||!f.buttonRenderer.text.runs[0].text),l,m,n,p,q;b=(null==(l=a.dismissButton)?void 0:null==(m=l.buttonRenderer)?void 0:null==(n=m.text)?void 0:null==(p=n.runs)?void 0:p.length)&&!(null==(q=a.dismissButton)||!q.buttonRenderer.text.runs[0].text);return h||b};
TP=function(a){var b;if(!(b=!a.j)){b=a.j;var c=window.getComputedStyle(b);b="none"===c.display||"hidden"===c.visibility||"true"===b.getAttribute("aria-hidden")}if(b||a.G.Df())g.WK(a,!1);else if(b=g.Kl(a.j),b.width&&b.height){a.J.At(a.element,a.j);var d=a.G.gb().getPlayerSize().height;c=g.Kl(a.Da("ytp-promotooltip-container")).height;var e=d-c-b.height-12;a.C||(e-=d-a.J.fk().height);a.element.style.top=e+"px";d=a.Da("ytp-promotooltip-pointer");e=g.Il(a.j,a.G.getRootNode());var f=Number(a.element.style.left.replace(/[^\d\.]/g,
""));a=a.G.isFullscreen()?18:12;d.style.left=e.x-f+b.width/2-a+"px";d.style.top=c+"px"}else g.WK(a,!1)};
XP=function(a,b){g.W.call(this,{F:"button",Fa:["ytp-replay-button","ytp-button"],X:{title:"Replay"},W:[g.jL()]});this.G=a;this.T(a,"presentingplayerstatechange",this.onStateChange);this.Ra("click",this.onClick,this);this.Vc(a.Eb());g.dP(b.wc(),this.element)};
g.YP=function(a,b,c,d){d=void 0===d?240:d;g.W.call(this,{F:"button",Fa:["ytp-button","ytp-share-button"],X:{title:"Share","aria-haspopup":"true","aria-owns":c.element.id,"data-tooltip-opaque":String(g.KF(a.V()))},W:[{F:"div",N:"ytp-share-icon",oa:"{{icon}}"},{F:"div",N:"ytp-share-title",oa:"Share"}]});this.api=a;this.j=b;this.u=c;this.B=d;this.visible=!1;this.tooltip=this.j.wc();b=a.V();a.vb(this.element,this,28664);this.Ra("click",this.onClick);this.T(a,"videodatachange",this.Ja);this.T(a,"videoplayerreset",
this.Ja);this.T(a,"appresize",this.Ja);this.T(a,"presentingplayerstatechange",this.Ja);this.Ja();g.jo(this.element,"ytp-show-share-title",g.KF(b)&&!g.VF(b));g.$e(this,g.dP(this.tooltip,this.element))};
g.ZP=function(a,b){var c=SK(),d=a.V();c={F:"div",N:"ytp-share-panel",X:{id:SK(),role:"dialog","aria-labelledby":c},W:[{F:"div",N:"ytp-share-panel-inner-content",W:[{F:"div",N:"ytp-share-panel-title",X:{id:c},oa:"Share"},{F:"a",Fa:["ytp-share-panel-link","ytp-no-contextmenu"],X:{href:"{{link}}",target:d.J,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},oa:"{{linkText}}"},{F:"label",N:"ytp-share-panel-include-playlist",W:[{F:"input",N:"ytp-share-panel-include-playlist-checkbox",X:{type:"checkbox",
checked:!0}},"Include playlist"]},{F:"div",N:"ytp-share-panel-loading-spinner",W:[GO()]},{F:"div",N:"ytp-share-panel-service-buttons",oa:"{{buttons}}"},{F:"div",N:"ytp-share-panel-error",oa:"An error occurred while retrieving sharing information. Please try again later."}]},{F:"button",Fa:["ytp-share-panel-close","ytp-button"],X:{title:"Close"},W:[g.cL()]}]};g.DN.call(this,a,c,250);this.api=a;this.tooltip=b.wc();this.j=[];this.D=this.Da("ytp-share-panel-inner-content");this.closeButton=this.Da("ytp-share-panel-close");
this.T(this.closeButton,"click",this.Bb);g.$e(this,g.dP(this.tooltip,this.closeButton));this.C=this.Da("ytp-share-panel-include-playlist-checkbox");this.T(this.C,"click",this.Ja);this.B=this.Da("ytp-share-panel-link");g.$e(this,g.dP(this.tooltip,this.B));this.Ra("click",this.aW);this.T(a,"videoplayerreset",this.hide);this.T(a,"fullscreentoggled",this.onFullscreenToggled);this.T(a,"onLoopRangeChange",this.n_);this.hide()};
SIa=function(a,b){RIa(a);for(var c=b.links||b.shareTargets,d=0,e={},f=0;f<c.length&&2>d;e={gp:e.gp},f++){e.gp=c[f];a:switch(e.gp.img||e.gp.iconId){case "facebook":var h={F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},W:[{F:"rect",X:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{F:"path",X:{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={F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},W:[{F:"rect",X:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{F:"path",X:{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.W({F:"a",Fa:["ytp-share-panel-service-button","ytp-button"],X:{href:e.gp.url,target:"_blank",title:e.gp.sname||e.gp.serviceName},W:[h]}),h.Ra("click",function(m){return function(n){if(g.XL(n)){var p=m.gp.url;var q=void 0===q?{}:q;q.target=q.target||"YouTube";q.width=q.width||"600";q.height=q.height||"600";var u=q;u||(u={});q=window;var w=p instanceof ng?p:g.pg("undefined"!=typeof p.href?p.href:String(p));var y=void 0!==self.crossOriginIsolated,
A="strict-origin-when-cross-origin";window.Request&&(A=(new Request("/")).referrerPolicy);var B="unsafe-url"===A;A=u.noreferrer;if(y&&A){if(B)throw Error("Cannot use the noreferrer option on a page that sets a referrer-policy of `unsafe-url` in modern browsers!");A=!1}p=u.target||p.target;y=[];for(var D in u)switch(D){case "width":case "height":case "top":case "left":y.push(D+"="+u[D]);break;case "target":case "noopener":case "noreferrer":break;default:y.push(D+"="+(u[D]?1:0))}D=y.join(",");Hb()&&
q.navigator&&q.navigator.standalone&&p&&"_self"!=p?(u=g.hh("A"),g.Bg(u,w),u.target=p,A&&(u.rel="noreferrer"),w=document.createEvent("MouseEvent"),w.initMouseEvent("click",!0,!0,q,1),u.dispatchEvent(w),q={}):A?(q=Cg("",q,p,D),w=g.og(w),q&&(g.pG&&g.eb(w,";")&&(w="'"+w.replace(/'/g,"%27")+"'"),q.opener=null,""===w&&(w="javascript:''"),w=g.Ag(g.ig("b/12014412, meta tag with sanitized URL"),'<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+g.Tg(w)+'">'),(u=q.document)&&
u.write&&(u.write(g.yg(w)),u.close()))):((q=Cg(w,q,p,D))&&u.noopener&&(q.opener=null),q&&u.noreferrer&&(q.opener=null));q&&(q.opener||(q.opener=window),q.focus());g.Ex(n)}}}(e)),g.$e(h,g.dP(a.tooltip,h.element)),a.j.push(h),d++)}var l=b.more||b.moreLink;
b=new g.W({F:"a",Fa:["ytp-share-panel-service-button","ytp-button"],W:[{F:"span",N:"ytp-share-panel-service-button-more",W:[{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},W:[{F:"rect",X:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{F:"path",X:{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"}}]}]}],X:{href:l,target:"_blank",title:"More"}});b.Ra("click",function(m){g.FO(l,a.api,m)&&a.api.Pa("SHARE_CLICKED")});
g.$e(b,g.dP(a.tooltip,b.element));a.j.push(b);a.Oa("buttons",a.j)};
RIa=function(a){for(var b=g.r(a.j),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),g.Ye(c);a.j=[]};
bQ=function(a,b,c){c=void 0===c?!0:c;g.W.call(this,{F:"div",N:"ytp-suggested-action"});var d=this;this.G=a;this.kb=b;this.Wa=this.J=this.j=this.D=this.C=this.u=this.expanded=this.enabled=this.B=!1;this.La=new g.Xn(function(){d.badge.element.style.width=""},200,this);
this.ea=new g.Xn(function(){$P(d);aQ(d)},200,this);
this.dismissButton=new g.W({F:"button",Fa:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.M(this,this.dismissButton);this.I=new g.W({F:"div",N:"ytp-suggested-action-badge-expanded-content-container",W:[{F:"label",N:"ytp-suggested-action-badge-title",oa:"{{badgeLabel}}"},this.dismissButton]});g.M(this,this.I);this.badge=new g.W({F:"button",Fa:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],W:[c?{F:"div",N:"ytp-suggested-action-badge-icon"}:
"",this.I]});g.M(this,this.badge);this.badge.Ca(this.element);this.S=new g.IL(this.badge,250,!1,100);g.M(this,this.S);this.ya=new g.IL(this.I,250,!1,100);g.M(this,this.ya);this.Qa=new g.Vn(this.U4,null,this);g.M(this,this.Qa);this.qa=new g.Vn(this.yY,null,this);g.M(this,this.qa);g.M(this,this.La);g.M(this,this.ea);this.G.Ug(this.badge.element,this.badge,!0);this.G.Ug(this.dismissButton.element,this.dismissButton,!0);this.T(this.G,"onHideControls",function(){d.j=!1;aQ(d);$P(d);d.Jj()});
this.T(this.G,"onShowControls",function(){d.j=!0;aQ(d);$P(d);d.Jj()});
this.T(this.badge.element,"click",this.vJ);this.T(this.dismissButton.element,"click",this.wJ);this.T(this.G,"pageTransition",this.bW);this.T(this.G,"appresize",this.Jj);this.T(this.G,"fullscreentoggled",this.Z0);this.T(this.G,"cardstatechange",this.H0);this.T(this.G,"annotationvisibility",this.W5,this);this.T(this.G,"offlineslatestatechange",this.X5,this)};
$P=function(a){g.jo(a.badge.element,"ytp-suggested-action-badge-with-controls",a.j||!a.u)};
aQ=function(a,b){var c=a.J||a.j||!a.u;a.expanded!==c&&(a.expanded=c,void 0===b||b?(a.Qa.stop(),a.qa.stop(),a.La.stop(),a.Qa.start()):(g.WK(a.I,a.expanded),g.jo(a.badge.element,"ytp-suggested-action-badge-expanded",a.expanded)),TIa(a))};
TIa=function(a){a.C&&a.G.Xa(a.badge.element,a.CA());a.D&&a.G.Xa(a.dismissButton.element,a.CA()&&(a.J||a.j||!a.u))};
UIa=function(a){var b=a.text||"";g.rh(g.ch("ytp-suggested-action-badge-title",a.element),b);a.badge.element.setAttribute("aria-label",b);a.dismissButton.element.setAttribute("aria-label",a.Ya?a.Ya:"")};
VIa=function(a,b){b?a.D&&a.G.ub(a.dismissButton.element):a.C&&a.G.ub(a.badge.element)};
cQ=function(a,b){bQ.call(this,a,b);var c=this;this.Z=this.Ba=this.Ia=!1;this.T(this.G,g.sA("shopping_overlay_visible"),function(){c.Ff(!0)});
this.T(this.G,g.tA("shopping_overlay_visible"),function(){c.Ff(!1)});
this.T(this.G,g.sA("shopping_overlay_expanded"),function(){c.J=!0;aQ(c)});
this.T(this.G,g.tA("shopping_overlay_expanded"),function(){c.J=!1;aQ(c)});
this.T(this.G,"changeProductsInVideoVisibility",this.S1);this.T(this.G,"videodatachange",this.onVideoDataChange);this.T(this.G,"paidcontentoverlayvisibilitychange",this.L1)};
dQ=function(a){a.G.Gf("shopping_overlay_visible");a.G.Gf("shopping_overlay_expanded")};
eQ=function(a){g.DN.call(this,a,{F:"button",Fa:["ytp-skip-intro-button","ytp-popup","ytp-button"],W:[{F:"div",N:"ytp-skip-intro-button-text",oa:"Skip Intro"}]},100);var b=this;this.B=!1;this.j=new g.Xn(function(){b.hide()},5E3);
this.oe=this.Af=NaN;g.M(this,this.j);this.I=function(){b.show()};
this.D=function(){b.hide()};
this.C=function(){var c=b.G.getCurrentTime();c>b.Af/1E3&&c<b.oe/1E3&&b.show()};
this.T(this.G,"videodatachange",function(c,d){b.Zp(c,d)});
this.T(this.element,"click",function(){b.G.seekTo(b.oe/1E3)});
this.hide()};
fQ=function(a,b){g.W.call(this,{F:"button",Fa:["ytp-airplay-button","ytp-button"],X:{title:"AirPlay"},oa:"{{icon}}"});this.G=a;this.Ra("click",this.onClick);this.T(a,"airplayactivechange",this.Ja);this.T(a,"airplayavailabilitychange",this.Ja);this.Ja();g.$e(this,g.dP(b.wc(),this.element))};
gQ=function(a,b){g.W.call(this,{F:"button",Fa:["ytp-button"],X:{title:"{{title}}","aria-label":"{{label}}","data-tooltip-target-id":"ytp-autonav-toggle-button"},W:[{F:"div",N:"ytp-autonav-toggle-button-container",W:[{F:"div",N:"ytp-autonav-toggle-button",X:{"aria-checked":"true"}}]}]});this.G=a;this.u=[];this.j=!1;this.isChecked=!0;a.vb(this.element,this,113681);this.T(a,"presentingplayerstatechange",this.Rx);this.Ra("click",this.onClick);this.G.V().K("web_player_autonav_toggle_always_listen")&&WIa(this);
this.tooltip=b.wc();g.$e(this,g.dP(b.wc(),this.element));this.Rx()};
WIa=function(a){a.u.push(a.T(a.G,"videodatachange",a.Rx));a.u.push(a.T(a.G,"videoplayerreset",a.Rx));a.u.push(a.T(a.G,"onPlaylistUpdate",a.Rx));a.u.push(a.T(a.G,"autonavchange",a.cN))};
XIa=function(a){a.setValue(a.isChecked);var b=a.isChecked?"Autoplay is on":"Autoplay is off";a.Oa("title",b);a.Oa("label",b);zP(a.tooltip)};
YIa=function(a){return a.G.V().K("web_player_autonav_use_server_provided_state")&&NH(a.bd())};
g.iQ=function(a){g.W.call(this,{F:"div",N:"ytp-gradient-bottom"});this.j=g.hh("CANVAS");this.ctx=this.j.getContext("2d");this.B=NaN;this.j.width=1;this.u=g.VF(a.V());g.hQ(this,a.gb().getPlayerSize().height)};
g.hQ=function(a,b){if(a.ctx){b=Math.floor(b*(a.u?1:.4));b=Math.max(b,47);var c=b+2;if(a.B!==c){a.B=c;a.j.height=c;a.ctx.clearRect(0,0,1,c);var d=a.ctx.createLinearGradient(0,2,0,2+b);if(a.u)d.addColorStop(.133,"rgba(0, 0, 0, 0.2)"),d.addColorStop(.44,"rgba(0, 0, 0, 0.243867)"),d.addColorStop(1,"rgba(0, 0, 0, 0.8)");else{var e=b-42;d.addColorStop(0,"rgba(0, 0, 0, 0)");d.addColorStop(e/b,"rgba(0, 0, 0, 0.3)");d.addColorStop(1,"rgba(0, 0, 0, 0.68)")}a.ctx.fillStyle=d;a.ctx.fillRect(0,2,1,b);a.element.style.height=
c+"px";try{a.element.style.backgroundImage="url("+a.j.toDataURL()+")"}catch(f){}}}};
jQ=function(a,b,c,d,e){g.W.call(this,{F:"div",N:"ytp-chapter-container",W:[{F:"button",Fa:["ytp-chapter-title","ytp-button"],W:[{F:"span",X:{"aria-hidden":"true"},N:"ytp-chapter-title-prefix",oa:"\u2022"},{F:"div",N:"ytp-chapter-title-content",oa:"{{title}}",X:{title:e,"aria-label":e}},{F:"div",N:"ytp-chapter-title-chevron",W:[{F:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},W:[{F:"path",X:{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.G=a;
this.C=c;this.D="";this.currentIndex=0;this.j=void 0;this.u=!0;this.S=this.Da("ytp-chapter-container");this.B=this.Da("ytp-chapter-title");this.Z=this.Da("ytp-chapter-title-content");this.updateVideoData("newdata",this.G.getVideoData());this.T(a,"videodatachange",this.updateVideoData);this.T(this.S,"click",this.onClick);this.T(a,g.sA(d),this.hc);this.T(a,"onLoopRangeChange",this.hc);this.T(a,"innertubeCommand",this.onClickCommand);g.KF(this.G.V())||g.$e(this,g.dP(b.wc(),this.Z))};
kQ=function(a,b,c){jQ.call(this,a,b,c,"chapterCueRange","View chapter")};
ZIa=function(a,b,c,d,e){var f=b.Zs/b.rows,h=Math.min(c/(b.Iz/b.columns),d/f),l=b.Iz*h,m=b.Zs*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,q=-b.column*n,u=-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+") "+q+"px "+u+"px/"+l+"px "+m+"px"};
g.lQ=function(a){g.W.call(this,{F:"div",N:"ytp-storyboard-framepreview",W:[{F:"div",N:"ytp-storyboard-framepreview-img"}]});this.api=a;this.C=this.Da("ytp-storyboard-framepreview-img");this.u=null;this.B=NaN;this.events=new g.XD(this);this.j=new g.IL(this,100);g.M(this,this.events);g.M(this,this.j);this.T(this.api,"presentingplayerstatechange",this.Uc)};
mQ=function(a,b){var c=!!a.u;a.u=b;a.u?(c||(a.events.T(a.api,"videodatachange",function(){mQ(a,a.api.Ji())}),a.events.T(a.api,"progresssync",a.Yd),a.events.T(a.api,"appresize",a.D)),a.B=NaN,nQ(a),a.j.show(200)):(c&&g.$y(a.events),a.j.hide(),a.j.stop())};
nQ=function(a){var b=a.u,c=a.api.getCurrentTime(),d=a.api.gb().getPlayerSize(),e=xH(b,d.width);c=MAa(b,e,c);c!==a.B&&(a.B=c,KAa(b,c,d.width),b=IAa(b,c,d.width),ZIa(a.C,b,d.width,d.height))};
g.oQ=function(a,b){g.W.call(this,{F:"button",Fa:["ytp-fullscreen-button","ytp-button"],X:{title:"{{title}}"},oa:"{{icon}}"});this.G=a;this.u=b;this.message=null;this.j=g.dP(this.u.wc(),this.element);this.B=new g.Xn(this.OX,2E3,this);g.M(this,this.B);this.T(a,"fullscreentoggled",this.Dk);this.T(a,"presentingplayerstatechange",this.Ja);this.Ra("click",this.onClick);g.Uy()&&(b=this.G.gb(),this.T(b,Era(),this.FJ),this.T(b,Xy(document),this.No));a.V().ob||a.V().I||this.disable();a.vb(this.element,this,
139117);this.Ja();this.Dk(a.isFullscreen())};
pQ=function(a,b,c){jQ.call(this,a,b,c,"timedMarkerCueRange","View key moments");this.T(a,g.tA("timedMarkerCueRange"),this.hc);this.T(a,"updatemarkervisibility",this.updateVideoData)};
$Ia=function(a){var b,c=null==(b=a.G.getVideoData())?void 0:b.Kd;if(c)for(a=a.C.Sc,c=g.r(c),b=c.next();!b.done;b=c.next())if(b=a[b.value])return b};
qQ=function(a,b){g.W.call(this,{F:"button",Fa:["ytp-miniplayer-button","ytp-button"],X:{title:"{{title}}","data-tooltip-target-id":"ytp-miniplayer-button"},W:[hFa()]});this.G=a;this.visible=!1;this.Ra("click",this.onClick);this.T(a,"fullscreentoggled",this.Ja);this.Oa("title",IO(a,"Miniplayer","i"));g.$e(this,g.dP(b.wc(),this.element));a.vb(this.element,this,62946);this.Ja()};
rQ=function(a,b,c){g.W.call(this,{F:"button",Fa:["ytp-multicam-button","ytp-button"],X:{title:"Switch camera","aria-haspopup":"true","data-preview":"{{preview}}","data-tooltip-text":"{{text}}"},W:[{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,X:{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.G=a;this.j=!1;this.u=new g.Xn(this.B,400,this);this.tooltip=b.wc();hP(this.tooltip);g.M(this,this.u);this.Ra("click",function(){EN(c,d.element,!1)});
this.T(a,"presentingplayerstatechange",function(){d.Ja(!1)});
this.T(a,"videodatachange",this.onVideoDataChange);this.Ja(!0);g.$e(this,g.dP(this.tooltip,this.element))};
sQ=function(a){g.DN.call(this,a,{F:"div",N:"ytp-multicam-menu",X:{role:"dialog"},W:[{F:"div",N:"ytp-multicam-menu-header",W:[{F:"div",N:"ytp-multicam-menu-title",W:["Switch camera",{F:"button",Fa:["ytp-multicam-menu-close","ytp-button"],X:{"aria-label":"Close"},W:[g.cL()]}]}]},{F:"div",N:"ytp-multicam-menu-items"}]},250);this.api=a;this.B=new g.XD(this);this.items=this.Da("ytp-multicam-menu-items");this.j=[];g.M(this,this.B);a=this.Da("ytp-multicam-menu-close");this.T(a,"click",this.Bb);this.hide()};
tQ=function(){g.J.call(this);this.u=null;this.startTime=this.duration=0;this.delay=new g.Vn(this.j,null,this);g.M(this,this.delay)};
aJa=function(a,b){if("path"===b.F)return b.X.d;if(b.W)for(var c=0;c<b.W.length;c++){var d=b.W[c];if(d&&"string"!==typeof d&&(d=aJa(a,d)))return d}};
dJa=function(a,b,c){c=aJa(a,c);var d=b.getElementsByTagName("path")[0],e=d.getAttribute("d");if(d.getAttribute("id")){var f=SK();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=bJa(e),m=bJa(c);uQ(a,function(n){d.setAttribute("d",cJa(l,m,n))},200)};
uQ=function(a,b,c){a.u=b;a.startTime=(0,g.T)();a.duration=c;a.j()};
bJa=function(a){var b=[];a=a.match(eJa);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};
cJa=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};
g.vQ=function(a,b){g.W.call(this,{F:"button",Fa:["ytp-mute-button","ytp-button"],X:a.V().Ba?{title:"{{title}}"}:{"aria-disabled":"true","aria-haspopup":"true"},oa:"{{icon}}"});this.G=a;this.j=null;this.C=this.S=this.D=this.ea=NaN;this.qa=this.I=null;this.B=[];this.u=[];this.visible=!1;this.J=null;var c=this.G.V();this.Oa("icon",lL());this.tooltip=b.wc();this.j=new g.TK({F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"defs",W:[{F:"clipPath",X:{id:"ytp-svg-volume-animation-mask"},
W:[{F:"path",X:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{F:"path",X:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{F:"path",N:"ytp-svg-volume-animation-mover",X:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{F:"clipPath",X:{id:"ytp-svg-volume-animation-slash-mask"},W:[{F:"path",N:"ytp-svg-volume-animation-mover",X:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{F:"path",Qb:!0,Fa:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],X:{"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"}},{F:"path",Qb:!0,Fa:["ytp-svg-fill","ytp-svg-volume-animation-hider"],X:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)",d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z",fill:"#fff"}}]});g.M(this,this.j);this.I=this.j.Da("ytp-svg-volume-animation-speaker");this.qa=this.I.getAttribute("d");this.B=g.bh("ytp-svg-volume-animation-mover",this.j.element);
this.u=g.bh("ytp-svg-volume-animation-hider",this.j.element);this.ya=new tQ;g.M(this,this.ya);this.Z=new tQ;g.M(this,this.Z);this.Ra("click",this.D1);this.T(a,"appresize",this.dN);this.T(a,"onVolumeChange",this.onVolumeChange);var d=null;if(c.Ba)g.$e(this,g.dP(b.wc(),this.element));else{var e="Your browser doesn't support changing the volume. $BEGIN_LINKLearn More$END_LINK".split(/\$(BEGIN|END)_LINK/);d=new g.DN(a,{F:"span",Fa:["ytp-popup","ytp-generic-popup"],X:{tabindex:"0"},W:[e[0],{F:"a",X:{href:"https://support.google.com/youtube/?p=noaudio",
target:c.J},oa:e[2]},e[4]]},100,!0);g.M(this,d);d.hide();d.subscribe("show",function(f){b.Iv(d,f)});
g.BN(a,d.element,4)}this.message=d;a.vb(this.element,this,28662);this.dN(a.gb().getPlayerSize());this.setVolume(a.getVolume(),a.isMuted())};
hJa=function(a,b){a.ea=b;var c=a.qa;b&&(c+=cJa(fJa,gJa,b));a.I.setAttribute("d",c)};
iJa=function(a,b){a.S=b;for(var c=20*b,d=0;d<a.B.length;d++)a.B[d].setAttribute("transform","translate("+c+", "+c+")");var e;1===b?e=lL():e=a.j;for(c=0;c<a.u.length;c++){d=a.u[c];var f=void 0;if(null==(f=d)?0:f.style)d.style.display=0===b?"none":""}e!==a.J&&(a.Oa("icon",e),a.J=e)};
wQ=function(a,b){g.W.call(this,{F:"button",Fa:["ytp-pip-button","ytp-button"],X:{title:"{{title}}","data-tooltip-target-id":"ytp-pip-button"},W:[hFa()]});this.G=a;this.Oa("title","Picture in Picture");this.Ra("click",this.onClick);g.$e(this,g.dP(b.wc(),this.element))};
g.xQ=function(a,b,c){g.W.call(this,{F:"button",Fa:["ytp-play-button","ytp-button"],X:{title:"{{title}}"},oa:"{{icon}}"});this.G=a;this.j=null;this.transition=new tQ;this.tooltip=b.wc();g.M(this,this.transition);this.u=!!c;a.vb(this.element,this,36842);a.Xa(this.element,!0);this.T(a,"fullscreentoggled",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.onStateChange);this.T(a,"videodatachange",this.onVideoDataChange);this.Vc(a.Eb());this.Ra("click",this.gx,this);g.$e(this,g.dP(b.wc(),
this.element))};
jJa=function(a){switch(a){case 1:return iL();case 2:return fFa();case 3:return g.jL();case 4:return kFa();default:return null}};
g.zQ=function(a,b,c){g.W.call(this,{F:"a",Fa:[c?"ytp-next-button":"ytp-prev-button","ytp-button"],X:{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}}"},W:[c?fL():iFa()]});var d=this;this.G=a;this.j=c;this.playlist=this.videoData=null;this.I=!1;this.C=this.D=this.u=null;this.B=!1;this.tooltip=b.wc();c?a.vb(this.element,this,6193):a.vb(this.element,
this,6194);this.T(a,"fullscreentoggled",this.onVideoDataChange);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"onPlaylistUpdate",this.onVideoDataChange);this.T(a,"onLoopRangeChange",this.onVideoDataChange);this.j||this.T(a,"appresize",this.QF);this.T(a,"mdxpreviousnextchange",function(){yQ(d);d.QF()});
this.onVideoDataChange()};
kJa=function(a){a.playlist&&a.playlist.unsubscribe("shuffle",a.onVideoDataChange,a)};
lJa=function(a){return!!a.playlist&&!a.j&&!!a.videoData&&!a.videoData.isLivePlayback&&3<=a.G.getCurrentTime()&&2!==a.G.getPresentingPlayerType()};
mJa=function(a){var b=xN(a.G.wb());return b?a.j?b.hasNext():b.Rm():!1};
yQ=function(a){var b={duration:null,preview:null,text:null,title:null,url:null},c=null!=a.playlist&&a.playlist.hasNext();c=g.yN(a.G)&&(!a.j||c);var d=a.j&&g.CN(a.G),e=mJa(a),f=a.j&&5===a.G.getPresentingPlayerType(),h=IO(a.G,"Next","SHIFT+n"),l=IO(a.G,"Previous","SHIFT+p");if(f)b.title="Start video";else if(a.B)b.title="Replay";else if(c){var m=null;a.playlist&&(m=g.$N(a.playlist,a.j?sHa(a.playlist):tHa(a.playlist)));if(m){if(m.videoId){var n=a.playlist.listId;b.url=a.G.V().getVideoUrl(m.videoId,n?
n.toString():void 0)}b.text=m.title;b.duration=m.lengthText?m.lengthText:m.lengthSeconds?g.WL(m.lengthSeconds):null;b.preview=m.Mf("mqdefault.jpg")}b.title=a.j?h:l}else if(d){if(l=null==(m=a.videoData)?void 0:g.yI(m))b.url=l.Om(),b.text=l.title,b.duration=l.lengthText?l.lengthText:l.lengthSeconds?g.WL(l.lengthSeconds):null,b.preview=l.Mf("mqdefault.jpg");b.title=h}b.disabled=!d&&!c&&!e&&!f;a.update(b);a.I=!!b.url;d||c||a.B||e||f?a.u||(a.u=g.dP(a.tooltip,a.element),a.D=a.Ra("click",a.onClick,a)):a.u&&
(a.u(),a.u=null,a.yc(a.D),a.D=null);zP(a.tooltip)};
AQ=function(a,b,c){g.W.call(this,{F:"div",N:"ytp-fine-scrubbing",W:[{F:"div",N:"ytp-fine-scrubbing-thumbnails",X:{tabindex:"0",role:"slider",type:"range","aria-label":"Click or scroll the panel for the precise seeking.","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}},{F:"div",X:{"aria-hidden":"true"},N:"ytp-fine-scrubbing-cursor"},{F:"div",N:"ytp-fine-scrubbing-seek-time",X:{"aria-hidden":"true"},oa:"{{seekTime}}"},{F:"div",
N:"ytp-fine-scrubbing-play",W:[iL()],X:{title:"Play from this position",role:"button"}},{F:"div",N:"ytp-fine-scrubbing-dismiss",W:[g.cL()],X:{title:"Exit precise seeking",role:"button"}}]});this.api=a;this.C=c;this.B=this.Da("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.Da("ytp-fine-scrubbing-dismiss");this.playButton=this.Da("ytp-fine-scrubbing-play");this.thumbnails=[];this.j=[];this.qa=void 0;this.S=NaN;this.Ba=this.J=this.u=this.I=0;this.D=[];this.interval=this.frameCount=0;this.scale=
1;this.ya=0;this.isEnabled=this.ea=!1;g.$e(this,g.dP(b,this.dismissButton));g.$e(this,g.dP(b,this.playButton));this.Z=new g.ez(this.B,!0);this.Z.subscribe("dragstart",this.SF,this);this.Z.subscribe("dragmove",this.RF,this);this.Z.subscribe("dragend",this.dW,this);this.T(a,"SEEK_COMPLETE",this.Bw);this.B.addEventListener("keydown",function(){});
g.M(this,this.Z);this.api.vb(this.element,this,153154);this.api.vb(this.B,this,152789);this.api.vb(this.dismissButton,this,153156);this.api.vb(this.playButton,this,153155)};
BQ=function(a){a.S=NaN;a.J=0;a.I=a.u};
oJa=function(a){var b=a.api.Ji();if(b){var c=160*a.scale,d=90*a.scale,e=xH(b,160*a.scale);if(b=b.levels[e]){if(!a.D.length){e=[];for(var f=yH(b,b.Hu()),h=b.columns*b.rows,l=b.frameCount,m=0;m<=f;m++)for(var n=l<h?Math.ceil(l/b.columns):b.rows,p=0;p<b.rows;p++){var q=l<b.columns?l:b.columns,u={url:b.ye(m),column:0,columns:q,row:p,rows:n,Iz:b.width*q,Zs:b.height*n};e.push(u);l-=q;if(1>=l)break}a.D=e;a.frameCount=b.rB();a.interval=b.j/1E3||a.api.getDuration()/a.frameCount}for(;a.thumbnails.length>a.D.length;)e=
void 0,null==(e=a.thumbnails.pop())||e.dispose();for(;a.thumbnails.length<a.D.length;)e=new nJa,a.thumbnails.push(e),e.Ca(a.B),g.M(a,e);for(e=0;e<a.D.length;e++)f=a.thumbnails[e].element,h=a.D[e],l=h.Zs/h.rows,m=d/l,f.style.background="url("+h.url+") 0 "+-h.row*h.Zs/h.rows*m+"px/"+c*b.columns+"px "+l*h.rows*m+"px",f.style.width=c*h.columns+"px",f.style.height=d+"px";CQ(a,a.api.getCurrentTime());for(c=a.api.getVideoData().Li;a.j.length>c.length;)d=void 0,null==(d=a.j.pop())||d.dispose();for(;a.j.length<
c.length;)d=new DQ,a.j.push(new DQ),g.M(a,d);c=g.r(c.entries());for(d=c.next();!d.done;d=c.next())e=g.r(d.value),d=e.next().value,e=e.next().value,a.j[d].update({chapterTitle:e.title}),e=Math.round(e.startTime/b.j),f=Math.floor(e/b.rows),g.zl(a.j[d].element,"transform","translateX("+e%b.rows*160*a.scale+"px)"),a.j[d].Ca(a.thumbnails[f].element);a.ea=!0}}};
CQ=function(a,b){a.update({seekTime:g.WL(b)});var c=160*a.scale;b=b<a.interval/2?-b*c/a.interval*2+a.C/2:-b*c/a.interval-c/2+a.C/2;b=g.Eg(b,pJa(a),a.C/2);a.I=b;a.u=a.I;g.zl(a.B,"transform","translateX("+a.I+"px)")};
qJa=function(a,b){var c=160*a.scale;b-=a.C/2;return b>-c?-b/c*a.interval*.5:-(b+c/2)/c*a.interval};
pJa=function(a){return-((a.B.offsetWidth||160*(a.frameCount-1)*a.scale)-a.C/2)};
nJa=function(){g.W.call(this,{F:"div",N:"ytp-fine-scrubbing-thumbnail"})};
DQ=function(){g.W.call(this,{F:"div",N:"ytp-fine-scrubbing-chapter-title",W:[{F:"div",N:"ytp-fine-scrubbing-chapter-title-content",oa:"{{chapterTitle}}"}]})};
rJa=function(a){g.W.call(this,{F:"div",N:"ytp-heat-map-chapter",W:[{F:"svg",N:"ytp-heat-map-svg",X:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},W:[{F:"defs",W:[{F:"clipPath",X:{id:"{{id}}"},W:[{F:"path",N:"ytp-heat-map-path",X:{d:"",fill:"white","fill-opacity":"0.6"}}]}]},{F:"rect",N:"ytp-heat-map-graph",X:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.2",height:"100%",width:"100%",x:"0",y:"0"}},{F:"rect",N:"ytp-heat-map-hover",X:{"clip-path":"url(#hm_1)",
height:"100%",x:"0",y:"0"}},{F:"rect",N:"ytp-heat-map-play",X:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}}]}]});this.api=a;this.I=this.Da("ytp-heat-map-svg");this.D=this.Da("ytp-heat-map-path");this.C=this.Da("ytp-heat-map-graph");this.B=this.Da("ytp-heat-map-play");this.u=this.Da("ytp-heat-map-hover");this.isValid=!1;this.j=60;a=""+g.Oa(this);this.update({id:a});a="url(#"+a+")";this.C.setAttribute("clip-path",a);this.B.setAttribute("clip-path",a);this.u.setAttribute("clip-path",a)};
tJa=function(a,b,c,d){d=void 0===d?!1:d;b=new sJa(b||a,c||a);return{x:a.x+.2*((void 0===d?0:d)?-1*b.j:b.j),y:a.y+.2*((void 0===d?0:d)?-1*b.u:b.u)}};
sJa=function(a,b){this.u=this.j=0;this.j=b.x-a.x;this.u=b.y-a.y};
EQ=function(){g.W.call(this,{F:"div",N:"ytp-chapter-hover-container",W:[{F:"div",N:"ytp-progress-bar-padding"},{F:"div",N:"ytp-progress-list",W:[{F:"div",Fa:["ytp-play-progress","ytp-swatch-background-color"]},{F:"div",N:"ytp-progress-linear-live-buffer"},{F:"div",N:"ytp-load-progress"},{F:"div",N:"ytp-hover-progress"},{F:"div",N:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.C=this.Da("ytp-progress-linear-live-buffer");this.B=this.Da("ytp-ad-progress-list");
this.D=this.Da("ytp-load-progress");this.I=this.Da("ytp-play-progress");this.u=this.Da("ytp-hover-progress");this.j=this.Da("ytp-chapter-hover-container")};
FQ=function(a,b){g.zl(a.j,"width",b)};
GQ=function(a,b){g.zl(a.j,"margin-right",b+"px")};
HQ=function(a,b){return"PLAY_PROGRESS"===b?a.I:"LOAD_PROGRESS"===b?a.D:"LIVE_BUFFER"===b?a.C:a.u};
uJa=function(){this.fraction=this.position=this.B=this.j=this.C=this.u=this.width=NaN};
IQ=function(){g.W.call(this,{F:"div",N:"ytp-timed-marker"});this.j=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0};
g.KQ=function(a,b){g.XK.call(this,{F:"div",N:"ytp-progress-bar-container",X:{"aria-disabled":"true"},W:[{F:"div",Fa:["ytp-heat-map-container"],W:[{F:"div",N:"ytp-heat-map-edu"}]},{F:"div",Fa:["ytp-progress-bar"],X:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},W:[{F:"div",N:"ytp-chapters-container"},{F:"div",N:"ytp-marker-crenellation-list"},{F:"div",N:"ytp-timed-markers-container"},
{F:"div",N:"ytp-clip-start-exclude"},{F:"div",N:"ytp-clip-end-exclude"},{F:"div",N:"ytp-scrubber-container",W:[{F:"div",Fa:["ytp-scrubber-button","ytp-swatch-background-color"],W:[{F:"div",N:"ytp-scrubber-pull-indicator"}]}]}]},{F:"div",Fa:["ytp-fine-scrubbing-container"],W:[{F:"div",N:"ytp-fine-scrubbing-edu"}]},{F:"div",N:"ytp-bound-time-left",oa:"{{boundTimeLeft}}"},{F:"div",N:"ytp-bound-time-right",oa:"{{boundTimeRight}}"},{F:"div",N:"ytp-clip-start",X:{title:"{{clipstarttitle}}"},oa:"{{clipstarticon}}"},
{F:"div",N:"ytp-clip-end",X:{title:"{{clipendtitle}}"},oa:"{{clipendicon}}"}]});this.api=a;this.Ue=!1;this.D=this.yg=0;this.eb=1;this.pe=this.Z=0;this.J=null;this.Ba=this.Hd=0;this.ob=this.Da("ytp-marker-crenellation-list");this.Wa={};this.Lc={};this.clipEnd=Infinity;this.zc=this.Da("ytp-clip-end");this.Kd=new g.ez(this.zc,!0);this.jf=this.Da("ytp-clip-end-exclude");this.Tg=this.Da("ytp-clip-start-exclude");this.clipStart=0;this.Ac=this.Da("ytp-clip-start");this.Ld=new g.ez(this.Ac,!0);this.qa=this.Lb=
0;this.Cc=this.Da("ytp-progress-bar");this.lc={};this.Sc={};this.Id=this.Da("ytp-chapters-container");this.zg=this.Da("ytp-timed-markers-container");this.j=[];this.S=[];this.Te={};this.kf=null;this.kb=-1;this.Rb=this.Ia=0;this.ea=null;this.Ce=this.Da("ytp-scrubber-button");this.Vg=this.Da("ytp-scrubber-container");this.Gb=new g.Ig;this.wg=new uJa;this.B=new $L(0,0);this.xb=null;this.C=this.xd=!1;this.xg=null;this.yb=this.Da("ytp-fine-scrubbing-container");this.ya=this.Da("ytp-heat-map-container");
this.Qd=this.Da("ytp-heat-map-edu");this.Af=this.Da("ytp-fine-scrubbing-edu");this.I=[];this.Qa=this.oe=this.La=!1;this.heatMarkersDecorations=[];this.u=void 0;this.tooltip=b.wc();g.$e(this,g.dP(this.tooltip,this.zc));g.M(this,this.Kd);this.Kd.subscribe("hoverstart",this.RQ,this);this.Kd.subscribe("hoverend",this.QQ,this);this.T(this.zc,"click",this.jE);g.$e(this,g.dP(this.tooltip,this.Ac));g.M(this,this.Ld);this.Ld.subscribe("hoverstart",this.RQ,this);this.Ld.subscribe("hoverend",this.QQ,this);this.T(this.Ac,
"click",this.jE);vJa(this);this.T(a,"resize",this.Cb);this.T(a,"presentingplayerstatechange",this.fW);this.T(a,"videodatachange",this.Zp);this.T(a,"videoplayerreset",this.nZ);this.T(a,"cuerangesadded",this.rT);this.T(a,"cuerangesremoved",this.Y3);this.T(a,"cuerangemarkersupdated",this.rT);this.T(a,"onLoopRangeChange",this.eN);this.T(a,"innertubeCommand",this.onClickCommand);this.T(a,g.sA("timedMarkerCueRange"),this.Y2);this.T(a,"updatemarkervisibility",this.pT);this.updateVideoData(a.getVideoData(),
!0);this.eN(a.getLoopRange());JQ(this)&&(this.u||(this.u=new AQ(this.api,this.tooltip,this.D),this.u.Ca(this.yb),g.M(this,this.u),this.T(this.u.dismissButton,"click",this.NO),this.T(this.u.playButton,"click",this.GH),this.T(this.u.element,"dblclick",this.GH)),g.fo(this.api.getRootNode(),"ytp-fine-scrubbing-exp"));a=this.api.V();g.KF(a)&&a.isMobile&&a.K("embeds_web_enable_progress_bar_context_menu_fix")&&g.fo(this.element,"ytp-no-contextmenu");this.api.vb(this.ya,this,139609,!0);this.api.vb(this.Qd,
this,140127,!0);this.api.vb(this.Af,this,151179,!0);this.api.vb(this.ob,this,145078,!0)};
vJa=function(a){if(0===a.j.length){var b=new EQ;a.j.push(b);g.M(a,b);b.Ca(a.Id,0)}for(;1<a.j.length;)a.j.pop().dispose();FQ(a.j[0],"100%");a.j[0].startTime=0;a.j[0].title=""};
LQ=function(a){for(;a.S.length;)a.S.pop().dispose()};
wJa=function(a){for(var b=a.j,c=[],d=0;d<b.length;d++)if(!isNaN(b[d].startTime)){var e=b[d].startTime;e=new g.qA(e,d===b.length-1?Infinity:b[d+1].startTime,{namespace:"chapterCueRange",priority:9,id:"c_"+e});c.push(e)}a.api.Gf("chapterCueRange");a.api.qe(c)};
OQ=function(a,b){var c,d=null==(c=a.lc[b])?void 0:c.chapters;d&&(xJa(a,d),a.api.getVideoData().Li=a.j,wJa(a));var e;if((c=null==(e=a.lc[b])?void 0:e.markers)&&"HEATSEEKER"!==b){LQ(a);e=g.r(c);for(c=e.next();!c.done;c=e.next())if(d=c.value,c=new IQ,d=d.markerRenderer){var f=void 0;c.title=(null==(f=d.title)?void 0:f.simpleText)||"";f=void 0;c.timeRangeStartMillis=null!=(f=d.timeRangeStartMillis)?f:NaN;var h=f=void 0;c.onActiveCommand=null!=(h=null==(f=d)?void 0:f.onActiveCommand)?h:void 0;yJa(a,c)}MQ(a,
a.S);e=a.S;c=a.Te;d=[];for(f=0;f<e.length;f++)!isNaN(e[f].timeRangeStartMillis)&&e[f].onActiveCommand&&(h=JIa(e[f].timeRangeStartMillis,f===e.length-1?Infinity:e[f+1].timeRangeStartMillis),d.push(h),c[h.id]=e[f].onActiveCommand);a.api.qe(d)}var l,m;if(b=null==(l=a.lc[b])?void 0:null==(m=l.heatmap)?void 0:m.heatmapRenderer){l=b.heatMarkers||[];var n;m=null!=(n=b.minHeightDp)?n:0;var p;n=null!=(p=b.maxHeightDp)?p:60;p=a.j.length;e=null;for(c=0;c<p;c++){f=a.j[c].startTime;h=c===p-1?Infinity:a.j[c+1].startTime;
if(c===a.I.length){d=void 0;var q=a;d=void 0===d?NaN:d;var u=new rJa(q.api);q.I.push(u);g.M(q,u);u.Ca(q.ya);0<=d&&(u.element.style.width=d+"px")}d=[];e&&d.push(e);q=g.r(l);for(u=q.next();!u.done;u=q.next()){u=u.value;var w=void 0,y=void 0,A=void 0,B=null!=(A=null==(w=u)?void 0:null==(y=w.heatMarkerRenderer)?void 0:y.timeRangeStartMillis)?A:-1;B>=f&&B<=h&&d.push(u)}0<n&&(a.ya.style.height=n+"px");f=a.I[c];q=0===c;q=void 0===q?!1:q;h=f;0<n&&(h.j=n,h.I.style.height=h.j+"px");h=f;q=void 0===q?!1:q;u=
1E3/d.length;w=[];w.push({x:0,y:100});y=g.r(d.entries());for(A=y.next();!A.done;A=y.next()){B=g.r(A.value);A=B.next().value;B=B.next().value;var D=void 0;B=(null==(D=B.heatMarkerRenderer)?void 0:D.heatMarkerIntensityScoreNormalized)||0;D=(A+.5)*u;B=100-g.Eg(100*B,m/h.j*100,n/h.j*100);0!==A||q||w.push({x:0,y:B});w.push({x:D,y:B});A===d.length-1&&w.push({x:1E3,y:B})}w.push({x:1E3,y:100});h=w;if(0===d.length)h="";else{q="";u=g.r(h.entries());for(w=u.next();!w.done;w=u.next())y=g.r(w.value),w=y.next().value,
y=y.next().value,0===w?w="M "+y.x.toFixed(1)+","+y.y.toFixed(1):(A=tJa(h[w-1],h[w-2],y),w=tJa(y,h[w-1],h[w+1],!0),w=" C "+(A.x.toFixed(1)+","+A.y.toFixed(1)+" "+w.x.toFixed(1)+","+w.y.toFixed(1)+" "+y.x.toFixed(1)+","+y.y.toFixed(1))),q+=w;h=q}f.D.setAttribute("d",h);f.isValid=""!==h;g.jo(f.api.getRootNode(),"ytp-heat-map",f.isValid);g.jo(f.api.getRootNode(),"ytp-heat-map-played_bar",f.api.K("web_player_heat_map_played_bar")&&""!==h);0<d.length&&(e=d[d.length-1])}g.NQ(a);l=[];b=g.r(b.heatMarkersDecorations||
[]);for(m=b.next();!m.done;m=b.next())if(m=m.value.timedMarkerDecorationRenderer)n=m.label,c=e=p=void 0,l.push({visibleTimeRangeStartMillis:null!=(p=m.visibleTimeRangeStartMillis)?p:-1,visibleTimeRangeEndMillis:null!=(e=m.visibleTimeRangeEndMillis)?e:-1,decorationTimeMillis:null!=(c=m.decorationTimeMillis)?c:NaN,label:n?g.xA(n):""});a.heatMarkersDecorations=l}};
yJa=function(a,b){a.S.push(b);g.M(a,b);b.Ca(a.zg,a.zg.children.length)};
MQ=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=PQ(a,c.timeRangeStartMillis/(1E3*a.B.j),QQ(a));g.zl(c.element,"transform","translateX("+d+"px) scaleX(0.6)")}};
xJa=function(a,b){var c=0,d=!1;b=g.r(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;if(e.chapterRenderer){e=e.chapterRenderer;var f={startTime:NaN,title:null,onActiveCommand:void 0},h=e.title;f.title=h?g.xA(h):"";h=e.timeRangeStartMillis;null!=h&&(f.startTime=h);f.onActiveCommand=e.onActiveCommand;e=f;0===c&&0!==e.startTime&&(a.j[c].startTime=0,a.j[c].title="",a.j[c].onActiveCommand=e.onActiveCommand,c++,d=!0);a.j.length<=c&&(f=new EQ,a.j.push(f),g.M(a,f),f.Ca(a.Id,a.Id.children.length));a.j[c].startTime=
e.startTime;a.j[c].title=e.title?e.title:"";a.j[c].onActiveCommand=e.onActiveCommand;a.j[c].index=d?c-1:c}c++}for(;c<a.j.length;)a.j.pop().dispose();g.NQ(a);RQ(a)};
g.NQ=function(a){a.Ia=a.j.length-1;a.Rb=0;zJa(a,!0)&&zJa(a,!1);for(var b=0,c=0;c<a.j.length;c++)if(0===a.j[c].width){if(c===a.j.length-1)for(var d=a.j.length-1;0<=d;d--)if(0<a.j[d].width){GQ(a.j[d],0);var e=Math.floor(a.j[d].width);a.j[d].width=e;FQ(a.j[d],e+"px");break}a.j[c].width=0;FQ(a.j[c],"0")}else c===a.j.length-1?(d=Math.floor(a.j[c].width+b),a.j[c].width=d,FQ(a.j[c],d+"px")):(b=a.j[c].width+b,d=Math.round(b),b-=d,a.j[c].width=d,FQ(a.j[c],d+"px"));c=0;if(a.I.length===a.j.length)for(b=0;b<
a.I.length;b++)d=a.j[b].width,a.I[b].element.style.width=d+"px",a.I[b].element.style.left=c+"px",c+=d+(a.C?3:2)};
zJa=function(a,b){var c=0,d=!1,e=a.j.length,f=1E3*a.B.j;0===f&&(f=1E3*a.api.getProgressState().seekableEnd);if(0<f&&0<a.D){for(var h=a.D-(a.C?3:2)*a.Ia,l=0===a.Rb?3:h*a.Rb,m=g.r(a.j),n=m.next();!n.done;n=m.next())n.value.width=0;for(;c<e;){m=f-a.j[c].startTime;c<e-1&&(m=a.j[c+1].startTime-a.j[c].startTime,GQ(a.j[c],a.C?3:2));g.jo(a.j[c].j,"ytp-exp-chapter-hover-container",1<a.j.length);n=(0===f?0:m/f*h)+a.j[c].width;if(n>l)a.j[c].width=n;else{a.j[c].width=0;var p=a,q=c,u=p.j[q-1];void 0!==u&&0<u.width?
u.width+=n:q<p.j.length-1&&(p.j[q+1].width+=n);GQ(p.j[q],0);b&&(a.Ia--,m/f>a.Rb&&(a.Rb=m/f),d=!0)}c++}}return d};
RQ=function(a){if(a.D){var b=a.api.getProgressState(),c=a.api.getVideoData();if(!(c&&c.enableServerStitchedDai&&c.enablePreroll)||isFinite(b.current)){var d;c=(null==(d=a.api.getVideoData())?0:xI(d))&&b.airingStart&&b.airingEnd?AJa(a,b.airingStart,b.airingEnd):AJa(a,b.seekableStart,b.seekableEnd);d=cM(c,b.loaded,0);b=cM(c,b.current,0);var e=a.B.u!==c.u||a.B.j!==c.j;a.B=c;SQ(a,b,d);e&&TQ(a);BJa(a)}}};
AJa=function(a,b,c){return UQ(a)?new $L(Math.max(b,a.xb.startTimeMs/1E3),Math.min(c,a.xb.endTimeMs/1E3)):new $L(b,c)};
CJa=function(a,b){var c;!a.api.K("web_repeating_chapters")||"repeatChapter"!==(null==(c=a.xb)?void 0:c.type)&&"repeatChapter"!==(null==b?void 0:b.type)||(b&&(b=a.j[HP(a.j,b.startTimeMs)],g.jo(b.j,"ytp-repeating-chapter",!1)),a.xb&&(b=a.j[HP(a.j,a.xb.startTimeMs)],g.jo(b.j,"ytp-repeating-chapter",!0)),a.j.forEach(function(d){g.jo(d.j,"ytp-exp-chapter-hover-container",!a.xb)}))};
WQ=function(a,b){var c=bM(a.B,b.fraction);if(1<a.j.length){c=VQ(a,b.B,!0);for(var d=0,e=0;e<c;e++)0<a.j[e].width&&(d+=a.j[e].width,d+=a.C?3:2);c=(a.j[c].startTime+(b.B-d)/a.j[c].width*((c===a.j.length-1?1E3*a.B.j:a.j[c+1].startTime)-a.j[c].startTime))/1E3||0}return c};
DJa=function(a,b,c){return c>=a.j.length?!1:4>Math.abs(b-a.j[c].startTime/1E3)/a.B.j*(a.D-(a.C?3:2)*a.Ia)};
EJa=function(a,b,c,d){b=g.Eg(b,0,a.C?60:40);a.Z=b;var e=a.eb;a.eb=b/(a.C?60:40)*(Math.max(aM(a.B)/a.D,1)-1)+1;b=a.D*a.eb;a.Ba=g.Eg(d*b-c,0,b-a.D);e!==a.eb&&TQ(a)};
TQ=function(a){if(1!==a.j.length||JQ(a))a.Ce.style.removeProperty("height");else{var b=QQ(a),c=-b.u/b.j,d=(-b.u+b.width)/b.j,e=Gda(a.ob),f=0;if(a.Z>.2*(a.C?60:40)){for(var h=d*(aM(a.B)/60),l=Math.ceil(c*(aM(a.B)/60));l<h;l++){var m=e[f];m||(m=g.hh("DIV"),a.ob.appendChild(m));f++;0===l%60?g.co(m,"ytp-60m-progress"):0===l%30?g.co(m,"ytp-30m-progress"):0===l%15?g.co(m,"ytp-15m-progress"):g.co(m,"ytp-1m-progress");m.style.left=(60*l/aM(a.B)-c)*b.j+"px"}a.Qa||(a.Qa=!0,a.api.Xa(a.ob,a.Qa))}b=a.xd?a.B.j:
0;a.update({boundTimeLeft:g.WL(bM(a.B,c)-b),boundTimeRight:g.WL(bM(a.B,d)-b)});for(c=e.length-1;c>=f;c--)g.oh(e[c]);a.element.style.height=a.Z+(a.C?8:5)+"px";a.ma("height-change",a.Z);a.Ce.style.height=a.Z+(a.C?20:13)+"px"}e=g.r(Object.keys(a.Wa));for(f=e.next();!f.done;f=e.next())FJa(a,f.value);XQ(a);SQ(a,a.qa,a.Lb)};
QQ=function(a){var b=a.Gb.x,c=a.D*a.eb;b=g.Eg(b,0,a.D);a.wg.update(b,a.D,-a.Ba,-(c-a.Ba-a.D));return a.wg};
YQ=function(a){return(a.C?135:90)-(a.C?54:48)};
SQ=function(a,b,c){a.qa=b;a.Lb=c;var d=QQ(a),e=a.B.j,f=bM(a.B,a.qa),h=g.FJ("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.WL(f,!0),DURATION:g.WL(e,!0)}),l=HP(a.j,1E3*f);l=a.j[l].title;a.update({ariamin:Math.floor(a.B.u),ariamax:Math.floor(e),arianow:Math.floor(f),arianowtext:l?l+" "+h:h});e=a.clipStart;f=a.clipEnd;a.xb&&2!==a.api.getPresentingPlayerType()&&(e=a.xb.startTimeMs/1E3,f=a.xb.endTimeMs/1E3);e=cM(a.B,e,0);l=cM(a.B,f,1);h=a.api.getVideoData();f=g.Eg(b,e,l);c=(null==h?0:g.uI(h))?1:g.Eg(c,
e,l);b=PQ(a,b,d);g.zl(a.Vg,"transform","translateX("+b+"px)");ZQ(a,d,e,f,"PLAY_PROGRESS");(null==h?0:xI(h))?(b=a.api.getProgressState().seekableEnd)&&ZQ(a,d,f,cM(a.B,b),"LIVE_BUFFER"):ZQ(a,d,e,c,"LOAD_PROGRESS");if(a.api.K("web_player_heat_map_played_bar")){var m;null!=(m=a.I[0])&&m.B.setAttribute("width",(100*f).toFixed(2)+"%")}};
ZQ=function(a,b,c,d,e){var f=a.j.length,h=b.j-a.Ia*(a.C?3:2),l=c*h;c=VQ(a,l);var m=d*h;h=VQ(a,m);"HOVER_PROGRESS"===e&&(h=VQ(a,b.j*d,!0),m=b.j*d-GJa(a,b.j*d)*(a.C?3:2));b=Math.max(l-HJa(a,c),0);for(d=c;d<f;d++)HQ(a.j[d],e).style.left=c===d?b+"px":"0";for(f=c;f<h;f++)d=a.j[f].width,$Q(a,HQ(a.j[f],e),f===c?d-b:d,d);f=a.j[h].width;m=g.Eg(m-HJa(a,h),0,f);c===h&&(m-=b);$Q(a,HQ(a.j[h],e),m,f);m=a.j.length;for(h+=1;h<m;h++)$Q(a,HQ(a.j[h],e),0,a.j[h].width);for(h=0;h<c;h++)$Q(a,HQ(a.j[h],e),0,a.j[h].width)};
HJa=function(a,b){if(b>=a.j.length)return a.D;for(var c=0,d=0;d<b;)c+=a.j[d].width,d++;return c};
$Q=function(a,b,c,d,e){e||a.api.V().isMobile?b.style.width=c+"px":g.zl(b,"transform","scalex("+(d?c/d:0)+")")};
VQ=function(a,b,c){var d=0;(void 0===c?0:c)&&(b-=GJa(a,b)*(a.C?3:2));c=g.r(a.j);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.j.length?d-1:d};
PQ=function(a,b,c){for(var d=b*a.B.j*1E3,e=-1,f=g.r(a.j),h=f.next();!h.done;h=f.next())h=h.value,d>h.startTime&&0<h.width&&e++;return b*(c.j-(a.C?3:2)*a.Ia)+(a.C?3:2)*(0>e?0:e)+c.u};
GJa=function(a,b){for(var c=a.j.length,d=0,e=g.r(a.j),f=e.next();!f.done;f=e.next())if(f=f.value,0!==f.width)if(b>f.width)b-=f.width,b-=a.C?3:2,d++;else break;return d===c?c-1:d};
g.aR=function(a,b,c,d){var e=a.D!==c,f=a.C!==d;a.yg=b;a.D=c;a.C=d;JQ(a)&&null!=(b=a.u)&&(b.scale=d?1.5:1);TQ(a);1===a.j.length&&(a.j[0].width=c||0);e&&g.NQ(a);a.u&&(a.u.C=a.D,f&&JQ(a)&&(a.u.isEnabled&&(c=a.C?135:90,d=c-(a.C?54:48),a.yb.style.height=c+"px",g.zl(a.ya,"transform","translateY("+-d+"px)"),g.zl(a.Cc,"transform","translateY("+-d+"px)")),oJa(a.u)))};
XQ=function(a){var b=!!a.xb&&2!==a.api.getPresentingPlayerType(),c=a.clipStart,d=a.clipEnd,e=!0,f=!0;b&&a.xb?(c=a.xb.startTimeMs/1E3,d=a.xb.endTimeMs/1E3):(e=c>a.B.u,f=0<a.B.j&&d<a.B.j);var h,l;if((null==(h=a.xb)?0:h.postId)||"repeatChapter"===(null==(l=a.xb)?void 0:l.type))f=e=!1;g.jo(a.element,"ytp-loop-range-enabled",b);g.jo(a.element,"ytp-clip-start-enabled",e);g.jo(a.element,"ytp-clip-end-enabled",f);b=e?cM(a.B,c,0):0;d=f?cM(a.B,d,1):1;a.Ac.style.left=Math.round(1E3*b)/10+"%";a.zc.style.left=
Math.round(1E3*d)/10+"%";a.Tg.style.width=Math.round(1E3*b)/10+"%";a.jf.style.left=Math.round(1E3*d)/10+"%";a.jf.style.width=Math.round(1E3*(1-d))/10+"%"};
BJa=function(a){var b;if(null==(b=a.api.getVideoData())||!xI(b)){b=QQ(a);ZQ(a,b,a.qa,Math.max(b.fraction,a.qa),"HOVER_PROGRESS");for(var c=VQ(a,b.j*a.qa,!0),d=VQ(a,b.B,!0),e=c;e<=d;e++)g.jo(a.j[e].u,"ytp-hover-progress-light",b.fraction>a.qa);g.jo(a.Ce,"ytp-scrubber-button-hover",c===d&&1<a.j.length);if(a.api.K("web_player_heat_map_played_bar")){var f;null!=(f=a.I[0])&&f.u.setAttribute("width",(100*b.fraction).toFixed(2)+"%")}}};
FJa=function(a,b){var c=a.Wa[b];b=a.Lc[b];var d=QQ(a),e=cM(a.B,c.start/1E3,0),f=eva(c,a.C)/d.width;var h=cM(a.B,c.end/1E3,1);f!==Number.POSITIVE_INFINITY&&(e=g.Eg(e,0,h-f));h=Math.min(h,e+f);c.color&&(b.style.background=c.color);c=e;e=!0;e=void 0===e?!1:e;b.style.left=Math.max(c*d.j+d.u,0)+"px";$Q(a,b,g.Eg((h-c)*d.j+d.u,0,d.width),d.width,e)};
IJa=function(a,b){var c=b.getId();a.Wa[c]===b&&(g.oh(a.Lc[c]),delete a.Wa[c],delete a.Lc[c])};
JQ=function(a){var b;return a.api.V().K("web_player_fine_scrubbing")&&!(null==(b=a.api.getVideoData())?0:b.isLivePlayback)&&!a.api.Df()&&!a.api.isInline()};
bR=function(a){a.u&&(a.u.disable(),a.Z=0,a.ya.style.removeProperty("transform"),a.Cc.style.removeProperty("transform"),a.yb.style.removeProperty("height"),a.element.parentElement&&a.element.parentElement.style.removeProperty("height"))};
JJa=function(a,b){var c=b/YQ(a)*(a.C?54:48);g.zl(a.Cc,"transform","translateY("+-b+"px)");g.zl(a.ya,"transform","translateY("+-b+"px)");g.zl(a.yb,"transform","translateY("+c+"px)");a.yb.style.height=b+c+"px";a.element.parentElement&&(a.element.parentElement.style.height=(a.C?54:48)-c+"px")};
KJa=function(a,b){b?a.ea||(a.element.removeAttribute("aria-disabled"),a.ea=new g.ez(a.Cc,!0),a.ea.subscribe("hovermove",a.V1,a),a.ea.subscribe("hoverend",a.U1,a),a.ea.subscribe("dragstart",a.T1,a),a.ea.subscribe("dragmove",a.X1,a),a.ea.subscribe("dragend",a.W1,a),a.xg=a.Ra("keydown",a.gW)):a.ea&&(a.element.setAttribute("aria-disabled","true"),a.yc(a.xg),a.ea.cancel(),a.ea.dispose(),a.ea=null)};
g.LJa=function(a){var b=2*a.D*g.iG();return 1E3*aM(a.B)/a.api.getPlaybackRate()/b};
UQ=function(a){var b;return!(null==(b=a.xb)||!b.postId)&&2!==a.api.getPresentingPlayerType()};
cR=function(a,b,c){g.W.call(this,{F:"button",Fa:["ytp-remote-button","ytp-button"],X:{title:"Play on TV","aria-haspopup":"true"},oa:"{{icon}}"});this.G=a;this.qb=c;this.j=null;this.T(a,"onMdxReceiversChange",this.Ja);this.T(a,"presentingplayerstatechange",this.Ja);this.T(a,"appresize",this.Ja);a.vb(this.element,this,139118);this.Ja();this.Ra("click",this.u,this);g.$e(this,g.dP(b.wc(),this.element))};
dR=function(a,b){g.W.call(this,{F:"button",Fa:["ytp-button","ytp-screen-mode-button"],X:{"aria-haspopup":"true","aria-owns":SK(),title:"Viewing options","data-tooltip-target-id":"ytp-screen-mode-button"},W:[{F:"svg",X:{viewBox:"0 0 36 36"},W:[{F:"path",Qb:!0,X:{d:"M8 9v11.2h4v-1.6H9.6v-8h12.8V14H24V9Zm17.09 10.81h-5.81v4.36h5.81zM28 25.63V15.44c0-.8-.65-1.44-1.45-1.44h-13.09c-.8 0-1.45.64-1.45 1.44v10.19c0 .8.65 1.45 1.45 1.45h13.09c.8 0 1.45-.65 1.45-1.45Zm-1.45.01h-13.09V15.43h13.09z",fill:"#fff"}}]}]});
this.G=a;this.u=!0;this.qb=null;this.Ra("click",this.B);this.T(a,"appresize",this.j);g.$e(this,g.dP(b.wc(),this.element));this.j(a.gb().getPlayerSize())};
eR=function(a,b,c,d,e){g.GN.call(this,g.HN(),a,b);this.qb=d;this.j=!1;this.u=null;e&&(this.u=new g.W({F:"div",W:[{F:"span",oa:"{{title}}"},{F:"span",N:"ytp-menuitem-keyboard-shortcut",oa:e}]}),this.Mg(this.u),this.u.Oa("title",b),g.M(this,this.u));this.Ra("click",this.onClick)};
fR=function(a,b){b&&!a.j?(a.qb.Fc(a),a.j=!0):!b&&a.j&&(a.qb.Hf(a),a.j=!1)};
gR=function(a,b){eR.call(this,10,"Miniplayer",a,b,"(i)");this.G=a;IN(this,{F:"svg",X:{height:"24",version:"1.1",viewBox:"6 6 24 24",width:"24"},W:[{F:"path",Qb:!0,X:{d:"M25,17 L17,17 L17,23 L25,23 L25,17 L25,17 Z M29,25 L29,10.98 C29,9.88 28.1,9 27,9 L9,9 C7.9,9 7,9.88 7,10.98 L7,25 C7,26.1 7.9,27 9,27 L27,27 C28.1,27 29,26.1 29,25 L29,25 Z M27,25.02 L9,25.02 L9,10.97 L27,10.97 L27,25.02 L27,25.02 Z",fill:"#fff"}}]});this.T(a,"fullscreentoggled",this.Ja);a.vb(this.element,this,62946);this.Ja()};
hR=function(a,b,c){eR.call(this,12,"Connect to a device",a,b);this.G=a;this.C=c;this.B=null;this.T(a,"onMdxReceiversChange",this.Ja);this.T(a,"presentingplayerstatechange",this.Ja);this.T(a,"appresize",this.Ja);a.vb(this.element,this,139118);this.Ja()};
iR=function(a,b){eR.call(this,11,"Theater mode",a,b,"(t)");this.G=a;this.isWidescreen=null;this.T(a,"sizestylechange",this.Ja);this.T(a,"fullscreentoggled",this.Ja);this.T(a,"presentingplayerstatechange",this.Ja);a.vb(this.element,this,139116);this.Ja()};
jR=function(a,b,c){g.tP.call(this,a,"ytp-screen-mode-menu");this.settingsMenu=b;this.Uo=c;this.td=new g.lP(this.G);this.LE=0;g.M(this,this.td);this.T(a,"minimized",this.hide);this.T(a,"sizestylechange",this.hide);this.T(a,"fullscreentoggled",this.hide);this.hide();g.rP(this,this.td);this.Uo=c;this.element.id=c.element.getAttribute("aria-owns");a=this.G.V();a.Lb&&(b=new hR(this.G,this,this.settingsMenu),g.M(this,b),this.LE++);a.Rb||(b=new iR(this.G,this),g.M(this,b),this.LE++);a.showMiniplayerButton&&
(a=new gR(this.G,this),g.M(this,a),this.LE++)};
kR=function(a,b,c){g.W.call(this,{F:"button",Fa:["ytp-button","ytp-settings-button"],X:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":SK(),title:"Settings","data-tooltip-target-id":"ytp-settings-button"},W:[g.kL()]});this.G=a;this.qb=c;this.u=!0;this.Ra("click",this.B);this.T(a,"onPlaybackQualityChange",this.updateBadge);this.T(a,"videodatachange",this.updateBadge);this.T(a,"webglsettingschanged",this.updateBadge);this.T(a,"appresize",this.j);g.$e(this,g.dP(b.wc(),this.element));
this.G.vb(this.element,this,28663);this.updateBadge();this.j(a.gb().getPlayerSize())};
lR=function(a,b){a.u=!!b;a.j(a.G.gb().getPlayerSize())};
mR=function(a,b){NN.call(this,"Annotations",7);this.G=a;this.qb=b;this.j=!1;a.K("web_settings_menu_icons")&&IN(this,{F:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{F:"path",X:{d:"M17.5,7c1.93,0,3.5,1.57,3.5,3.5c0,1-0.53,4.5-0.85,6.5h-2.02l0.24-1.89l0.14-1.09l-1.1-0.03C15.5,13.94,14,12.4,14,10.5 C14,8.57,15.57,7,17.5,7             M6.5,7C8.43,7,10,8.57,10,10.5c0,1-0.53,4.5-0.85,6.5H7.13l0.24-1.89l0.14-1.09l-1.1-0.03 C4.5,13.94,3,12.4,3,10.5C3,8.57,4.57,7,6.5,7             M17.5,6C15.01,6,13,8.01,13,10.5c0,2.44,1.95,4.42,4.38,4.49L17,18h4c0,0,1-6,1-7.5 C22,8.01,19.99,6,17.5,6L17.5,6z             M6.5,6C4.01,6,2,8.01,2,10.5c0,2.44,1.95,4.42,4.38,4.49L6,18h4c0,0,1-6,1-7.5 C11,8.01,8.99,6,6.5,6L6.5,6z",
fill:"white"}}]});this.T(a,"videodatachange",this.Ja);this.T(a,"onApiChange",this.Ja);this.subscribe("select",this.onSelect,this);this.Ja()};
g.nR=function(a,b,c,d,e,f,h){g.GN.call(this,g.HN({"aria-haspopup":"true"}),b,a);this.qb=d;this.C=!1;this.B=null;this.options={};this.u=new g.lP(c,void 0,a,e,f,h);g.M(this,this.u);this.Ra("keydown",this.hW);this.Ra("click",this.open)};
MJa=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.oR=function(a,b){g.mP(a.u);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?(a.options[f].Mg(a.Wk(f,!0)),delete a.options[f]):h=a.KG(f,-e,l);c[f]=h;a.u.Fc(h,!0)}d||(a.B=null);b=g.r(Object.keys(a.options));for(d=b.next();!d.done;d=b.next())a.options[d.value].dispose();a.options=c};
pR=function(a,b){g.nR.call(this,"Audio track",4,a,b);this.G=a;this.tracks={};this.j=new g.W({F:"div",W:[{F:"span",oa:"Audio track"},{F:"span",N:"ytp-menuitem-label-count",oa:"{{content}}"}]});a.K("web_settings_menu_icons")&&IN(this,{F:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{F:"path",X:{d:"M11.99,1.98C6.46,1.98,1.98,6.47,1.98,12s4.48,10.02,10.01,10.02c5.54,0,10.03-4.49,10.03-10.02S17.53,1.98,11.99,1.98z            M8.86,14.5c-0.16-0.82-0.25-1.65-0.25-2.5c0-0.87,.09-1.72,.26-2.55h6.27c0.17,.83,.26,1.68,.26,2.55 c0,.85-0.09,1.68-0.25,2.5H8.86z            M14.89,15.5c-0.54,1.89-1.52,3.64-2.89,5.15c-1.37-1.5-2.35-3.25-2.89-5.15H14.89z            M9.12,8.45 c0.54-1.87,1.52-3.61,2.88-5.1c1.36,1.49,2.34,3.22,2.88,5.1H9.12z            M16.15,9.45h4.5c0.24,.81,.37,1.66,.37,2.55 c0,.87-0.13,1.71-0.36,2.5h-4.51c0.15-0.82,.24-1.65,.24-2.5C16.39,11.13,16.3,10.28,16.15,9.45z            M20.29,8.45h-4.38 c-0.53-1.97-1.47-3.81-2.83-5.4C16.33,3.45,19.04,5.56,20.29,8.45z            M10.92,3.05c-1.35,1.59-2.3,3.43-2.83,5.4H3.71 C4.95,5.55,7.67,3.44,10.92,3.05z            M3.35,9.45h4.5C7.7,10.28,7.61,11.13,7.61,12c0,.85,.09,1.68,.24,2.5H3.34 c-0.23-0.79-0.36-1.63-0.36-2.5C2.98,11.11,3.11,10.26,3.35,9.45z            M3.69,15.5h4.39c0.52,1.99,1.48,3.85,2.84,5.45 C7.65,20.56,4.92,18.42,3.69,15.5z            M13.09,20.95c1.36-1.6,2.32-3.46,2.84-5.45h4.39C19.08,18.42,16.35,20.55,13.09,20.95z",
fill:"white"}}]});g.M(this,this.j);this.Mg(this.j);this.T(a,"videodatachange",this.Ja);this.T(a,"onPlaybackAudioChange",this.Ja);this.Ja()};
qR=function(a,b){NN.call(this,"Autoplay",8);this.G=a;this.qb=b;this.j=!1;this.B=[];this.T(a,"presentingplayerstatechange",this.u);this.subscribe("select",this.onSelect,this);a.vb(this.element,this,113682);this.u()};
rR=function(a,b,c){g.W.call(this,{F:"div",N:"ytp-screen-mode-settings-option",W:[{F:"div",N:"ytp-screen-mode-settings-label",oa:"{{label}}"}]});this.qb=c;this.Uo=new g.XK({F:"button",Fa:["ytp-screen-mode-settings-button","ytp-button"],oa:"{{icon}}",X:{title:"{{title}}"}});this.Uo.Ca(this.element,0);g.M(this,this.Uo);this.Uo.Oa("icon",a);this.Mg(b);this.Ra("click",this.onClick)};
sR=function(a,b,c){rR.call(this,{F:"svg",X:{height:"48px",version:"1.1",viewBox:"0 0 48 48",width:"48px",x:"0px",y:"0px"},W:[{F:"path",X:{d:"M45,10v28H3V10H45 M46,9H2v30h44V9L46,9z M43,26H26v10h17V26 M23,16v6.09l-6.68-6.68l-1.41,1.41L21.09,23H16v2h9v-9H23z",fill:"white"}}]},IO(b,"Miniplayer","i"),c);this.G=b;a.addButton(this);this.T(b,"fullscreentoggled",this.Ja);b.vb(this.element,this,62946);this.Ja()};
tR=function(a,b){var c;g.jG(a.V())&&(c={F:"div",N:"ytp-panel-footer-content",W:[{F:"span",oa:"Adjust download quality from your "},{F:"a",N:"ytp-panel-footer-content-link",oa:"Settings",X:{href:"/account_downloads"}}]});g.nR.call(this,"Quality",3,a,b,void 0,void 0,c);this.G=a;this.J={};this.D={};this.j=!1;this.I="unknown";this.j=this.G.K("web_player_use_new_api_for_quality_pullback");a.K("web_settings_menu_icons")&&IN(this,{F:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{F:"path",X:{d:"M15,17h6v1h-6V17z M11,17H3v1h8v2h1v-2v-1v-2h-1V17z M14,8h1V6V5V3h-1v2H3v1h11V8z            M18,5v1h3V5H18z M6,14h1v-2v-1V9H6v2H3v1 h3V14z M10,12h11v-1H10V12z",
fill:"white"}}]});g.fo(this.u.element,"ytp-quality-menu");this.T(a,"videodatachange",this.Sx);this.T(a,"videoplayerreset",this.Sx);this.T(a,"onPlaybackQualityChange",this.fN);this.Sx();a.vb(this.element,this,137721)};
OJa=function(a,b,c){a=a.J[b];var d=g.tB[b];return NJa(a?a.qualityLabel:d?d+"p":"Auto",b,c)};
PJa=function(a,b,c,d){var e=(a=a.D[b])&&a.qualityLabel,f=g.tB[b];b=NJa(e?e:f?f+"p":"Auto",b,d);(d=(d=a&&a.paygatedQualityDetails)&&d.paygatedIndicatorText)&&c&&b.W.push({F:"div",N:"ytp-premium-label",oa:d});return b};
NJa=function(a,b,c){a={F:"span",Fa:c,W:[a]};var d;"highres"===b?d="8K":"hd2880"===b?d="5K":"hd2160"===b?d="4K":0===b.indexOf("hd")&&"hd720"!==b&&(d="HD");d&&(a.W.push(" "),a.W.push({F:"sup",N:"ytp-swatch-color",oa:d}));return a};
uR=function(a,b,c){rR.call(this,WEa(),"Connect to a device",c);this.G=b;this.j=null;a.addButton(this);this.T(b,"onMdxReceiversChange",this.Ja);this.T(b,"presentingplayerstatechange",this.Ja);this.T(b,"appresize",this.Ja);b.vb(this.element,this,139118);this.Ra("click",this.onClick);this.Ja()};
vR=function(a,b){g.XK.call(this,{F:"div",N:"ytp-screen-mode-menu-item"});this.G=a;this.qb=b};
wR=function(a,b,c){rR.call(this,lFa(),IO(b,"Theater mode","t"),c);this.G=b;this.isWidescreen=null;a.addButton(this);this.T(b,"sizestylechange",this.Ja);this.T(b,"fullscreentoggled",this.Ja);this.T(b,"presentingplayerstatechange",this.Ja);b.vb(this.element,this,139116);this.Ja()};
xR=function(a,b,c,d,e,f,h){g.W.call(this,{F:"div",N:"ytp-slider-section",X:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},W:[{F:"div",N:"ytp-slider",W:[{F:"div",N:"ytp-slider-handle"}]}]});this.I=a;this.D=b;this.minimumValue=c;this.maximumValue=d;this.J=e;this.ea=f;this.range=this.maximumValue-this.minimumValue;this.qa=this.Da("ytp-slider-section");this.u=this.Da("ytp-slider");this.S=this.Da("ytp-slider-handle");
this.C=new g.ez(this.u,!0);this.j=h?h:c;g.M(this,this.C);this.C.subscribe("dragmove",this.jW,this);this.T(this.element,"keydown",this.kW);this.T(this.element,"wheel",this.iW);this.init()};
zR=function(a){xR.call(this,.05,.05,a.getAvailablePlaybackRates()[0],a.getAvailablePlaybackRates()[a.getAvailablePlaybackRates().length-1],150,20,a.getPlaybackRate());this.G=a;this.B=g.hh("P");this.ya=Qca(this.Z,this);g.fo(this.u,"ytp-speedslider");g.fo(this.B,"ytp-speedslider-text");a=this.u;a.parentNode&&a.parentNode.insertBefore(this.B,a.nextSibling);yR(this);this.T(this.G,"onPlaybackRateChange",this.Ba)};
yR=function(a){a.B.textContent=AR(a,a.j)+"x"};
AR=function(a,b){a=Number(g.Eg(b,a.minimumValue,a.maximumValue).toFixed(2));b=Math.floor(100*(a+.001)%5+2E-15);var c=a;0!==b&&(c=a-.01*b);return Number(c.toFixed(2))};
BR=function(a){g.XK.call(this,{F:"div",N:"ytp-speedslider-component"});this.j=new zR(a);g.M(this,this.j);this.element.appendChild(this.j.element)};
QJa=function(a){var b=new BR(a);kP.call(this,a,b,"Custom");g.M(this,b)};
CR=function(a,b){var c=new QJa(a);g.nR.call(this,"Playback speed",6,a,b,"Custom",function(){g.rP(b,c)});
a.K("web_settings_menu_icons")&&IN(this,{F:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{F:"path",X:{d:"M10,8v8l6-4L10,8L10,8z M6.3,5L5.7,4.2C7.2,3,9,2.2,11,2l0.1,1C9.3,3.2,7.7,3.9,6.3,5z            M5,6.3L4.2,5.7C3,7.2,2.2,9,2,11 l1,.1C3.2,9.3,3.9,7.7,5,6.3z            M5,17.7c-1.1-1.4-1.8-3.1-2-4.8L2,13c0.2,2,1,3.8,2.2,5.4L5,17.7z            M11.1,21c-1.8-0.2-3.4-0.9-4.8-2 l-0.6,.8C7.2,21,9,21.8,11,22L11.1,21z            M22,12c0-5.2-3.9-9.4-9-10l-0.1,1c4.6,.5,8.1,4.3,8.1,9s-3.5,8.5-8.1,9l0.1,1 C18.2,21.5,22,17.2,22,12z",
fill:"white"}}]});g.M(this,c);this.G=a;this.D=this.j=this.J=null;this.I=this.G.getAvailablePlaybackRates();this.T(a,"presentingplayerstatechange",this.Ja);this.Ja()};
RJa=function(a,b){var c=DR(b);a.options[c]?a.Sj(c):b===a.D&&a.j&&(a.Sj(a.j),a.Wd(b.toString()))};
TJa=function(a){g.oR(a,a.I.map(DR));a.j=null;a.D=null;var b=a.G.getPlaybackRate();a.I.includes(b)||(SJa(a,b),g.nR.prototype.Pg.call(a,a.j))};
SJa=function(a,b){a.D=b;a.j=g.FJ("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:b.toString()});b=a.I.map(DR);b.unshift(a.j);g.oR(a,b)};
DR=function(a){return a.toString()};
ER=function(a,b,c,d){var e=new g.lP(b,void 0,"Video Override");g.nR.call(this,d.text||"",a,b,c,"Video Override",function(){g.rP(c,e)});
var f=this;g.fo(this.element,"ytp-subtitles-options-menu-item");this.setting=d.option.toString();a=d.options;this.settings=g.rc(a,this.getKey,this);this.I=e;g.M(this,this.I);b=new g.GN({F:"div",N:"ytp-menuitemtitle",oa:"Allow for a different caption style if specified by the video."},0);g.M(this,b);this.I.Fc(b,!0);this.D=new g.GN({F:"div",N:"ytp-menuitem",X:{role:"menuitemradio",tabindex:"0"},W:[{F:"div",N:"ytp-menuitem-label",oa:"On"}]},-1);g.M(this,this.D);this.I.Fc(this.D,!0);this.T(this.D.element,
"click",function(){UJa(f,!0)});
this.j=new g.GN({F:"div",N:"ytp-menuitem",X:{role:"menuitemradio",tabindex:"0"},W:[{F:"div",N:"ytp-menuitem-label",oa:"Off"}]},-2);g.M(this,this.j);this.I.Fc(this.j,!0);this.T(this.j.element,"click",function(){UJa(f,!1)});
g.oR(this,g.Ok(a,this.getKey))};
UJa=function(a,b){a.ma("settingChange",a.setting+"Override",!b);a.qb.Wi()};
FR=function(a,b){g.lP.call(this,a,void 0,"Options");var c=this;this.rq={};for(var d=0;d<g.KP.length;d++){var e=g.KP[d],f=new ER(-d,a,b,e);g.M(this,f);f.subscribe("settingChange",this.Ui,this);this.rq[e.option.toString()]=f;this.Fc(f,!0)}a=new g.GN(g.HN(),-g.KP.length,"Reset");g.M(this,a);a.Ra("click",function(){c.Ui("reset",!0)});
this.Fc(a,!0)};
GR=function(a,b){g.nR.call(this,"Auto-translate",0,a,b);this.G=a;this.languages={};a.vb(this.element,this,127301);a.Xa(this.element,!0)};
VJa=function(a,b){a.languages=g.rc(b,a.getKey,a);g.oR(a,g.Ok(b,a.getKey))};
HR=function(a,b){var c=new FR(a,b),d=["This setting only applies to the current video. Adjust caption visibility in "," for all videos."],e;g.nG(a.V())&&(e={F:"div",N:"ytp-panel-footer-content",W:[{F:"span",oa:d[0]},{F:"a",N:"ytp-panel-footer-content-link",oa:"Settings",X:{href:"/account_playback"}},{F:"span",oa:d[1]}]});g.nR.call(this,"Subtitles/CC",5,a,b,"Options",function(){g.rP(b,c)},e);
var f=this;this.G=a;this.qb=b;this.tracks={};this.I=new g.Xn(function(){WJa(f,!1)},3E3);
g.M(this,this.I);this.J=new g.W({F:"div",W:[{F:"span",oa:"Subtitles/CC"},{F:"span",N:"ytp-menuitem-label-count",oa:"{{content}}"}]});g.M(this,this.J);this.Mg(this.J);a.K("web_settings_menu_icons")&&IN(this,{F:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{F:"path",X:{d:"M6,14v-4c0-0.55,.45-1,1-1h3c0.55,0,1,.45,1,1v1H9.5v-0.5h-2v3h2V13H11v1c0,.55-0.45,1-1,1H7C6.45,15,6,14.55,6,14z            M14,15h3c0.55,0,1-0.45,1-1v-1h-1.5v0.5h-2v-3h2V11H18v-1c0-0.55-0.45-1-1-1h-3c-0.55,0-1,.45-1,1v4C13,14.55,13.45,15,14,15z            M20,4H4v16h16V4 M21,3v18H3V3.01C3,3,3,3,3.01,3H21L21,3z",
fill:"white"}}]});this.j=new GR(a,b);g.M(this,this.j);this.j.subscribe("select",this.lW,this);this.D=c;g.M(this,this.D);this.D.subscribe("settingChange",this.Ui,this);b.subscribe("show",this.H2,this);this.T(a,"videodatachange",this.Ja);this.T(a,"onApiChange",this.Ja);this.T(a,"onCaptionsTrackListChanged",this.Ja);this.T(a,"captionschanged",this.Ja);a.vb(this.element,this,127300);this.Ja()};
WJa=function(a,b){a.G.setOption("captions","sampleSubtitles",b)};
IR=function(a){g.tP.call(this,a,"ytp-settings-menu");var b=this;this.td=new g.lP(this.G);this.settingsButton=null;this.ME=0;this.isInitialized=!1;g.M(this,this.td);this.hide();g.rP(this,this.td);var c=this.G.V();if(c.K("web_screen_mode_menu_b")){var d=new vR(this.G,this);g.M(this,d);if(c.showMiniplayerButton&&!c.K("web_player_pip")){var e=new sR(d,this.G,this);g.M(this,e)}c.Rb||(e=new wR(d,this.G,this),g.M(this,e),this.ME++);c.Lb&&(e=new uR(d,this.G,this),g.M(this,e),this.ME++);1<this.ME&&oIa(this.td,
d)}a.vb(this.element,this,108341,!0);this.subscribe("show",function(f){b.Ff(f)});
c.K("web_rounded_containers")&&g.fo(this.element,"ytp-rounded-menu")};
XJa=function(a,b){a.settingsButton=b;a.element.id=b.element.getAttribute("aria-controls")};
JR=function(a,b){g.W.call(this,{F:"button",Fa:["ytp-size-button","ytp-button"],X:{title:"{{title}}"},oa:"{{icon}}"});this.G=a;this.isWidescreen=null;this.transition=new tQ;this.tooltip=b.wc();g.M(this,this.transition);this.T(a,"sizestylechange",this.Ja);this.T(a,"fullscreentoggled",this.Ja);this.T(a,"presentingplayerstatechange",this.Ja);a.vb(this.element,this,139116);this.Ja();this.Ra("click",this.onClick);g.$e(this,g.dP(this.tooltip,this.element))};
g.KR=function(a,b){g.W.call(this,{F:"button",Fa:["ytp-subtitles-button","ytp-button"],X:{"aria-pressed":"{{pressed}}",title:"{{title}}"},W:[RHa()]});this.G=a;this.tooltip=b.wc();this.T(a,"videodatachange",this.Ja);this.T(a,"appresize",this.Ja);this.T(a,"promotooltipacceptbuttonclicked",this.j);this.T(a,"onApiChange",this.Ja);this.T(a,"onCaptionsTrackListChanged",this.Ja);this.T(a,"captionschanged",this.Ja);this.G.vb(this.element,this,127299);this.Ja();this.Ra("click",this.onClick);g.$e(this,g.dP(b.wc(),
this.element))};
g.MR=function(a,b,c){c=void 0===c?350:c;g.W.call(this,{F:"div",Fa:["ytp-time-display","notranslate"],W:[{F:"span",N:"ytp-time-clip-icon",oa:"{{clipicon}}"},{F:"span",W:[{F:"span",N:"ytp-time-current",oa:"{{currenttime}}"},{F:"span",N:"ytp-time-separator",oa:" / "},{F:"span",N:"ytp-time-duration",oa:"{{duration}}"}]},{F:"span",N:"ytp-clip-watch-full-video-button-separator",oa:"\u2022"},{F:"span",N:"ytp-clip-watch-full-video-button",oa:"{{watchfullvideo}}"}]});this.api=a;this.J=c;this.liveBadge=new g.W({F:"button",
Fa:["ytp-live-badge","ytp-button"],X:{disabled:"true"},oa:"{{content}}"});this.j=null;this.isLiveVideo=this.u=!1;this.I=this.D=null;this.isPremiere=!1;this.xb=this.C=this.B=null;this.S=this.Da("ytp-clip-watch-full-video-button");this.liveBadge.Wd("Live");g.M(this,this.liveBadge);this.liveBadge.Ca(this.element);this.tooltip=b.wc();this.Ra("click",this.onClick);this.T(this.S,"click",this.r3);this.T(a,"presentingplayerstatechange",this.hc);this.T(a,"appresize",this.hc);this.T(a,"onLoopRangeChange",this.onLoopRangeChange);
this.T(a,"videodatachange",this.onVideoDataChange);(b=a.getVideoData())&&this.updateVideoData(b);this.hc();a=a.getLoopRange();b=this.xb!==a;this.xb=a;b&&LR(this)};
LR=function(a){a.Oa("clipicon",{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},W:[{F:"path",X:{d:"M22,3h-4l-5,5l3,3l6-6V3L22,3z M10.79,7.79C10.91,7.38,11,6.95,11,6.5C11,4.01,8.99,2,6.5,2S2,4.01,2,6.5S4.01,11,6.5,11 c0.45,0,.88-0.09,1.29-0.21L9,12l-1.21,1.21C7.38,13.09,6.95,13,6.5,13C4.01,13,2,15.01,2,17.5S4.01,22,6.5,22s4.5-2.01,4.5-4.5 c0-0.45-0.09-0.88-0.21-1.29L12,15l6,6h4v-2L10.79,7.79z M6.5,8C5.67,8,5,7.33,5,6.5S5.67,5,6.5,5S8,5.67,8,6.5S7.33,8,6.5,8z M6.5,19C5.67,19,5,18.33,5,17.5S5.67,16,6.5,16S8,16.67,8,17.5S7.33,19,6.5,19z"}}]});
a.isLiveVideo&&!a.u?a.Oa("watchfullvideo","Watch live stream"):a.Oa("watchfullvideo","Watch full video");g.jo(a.element,"ytp-clip",NR(a));g.jo(a.element,"ytp-live",OR(a))};
OR=function(a){var b=a.api.V().K("enable_linear_program_progress");return a.isLiveVideo&&!NR(a)&&(!b||!a.u)};
NR=function(a){return!!a.xb&&!!a.xb.postId&&2!==a.api.getPresentingPlayerType()&&(!a.api.K("web_repeating_chapters")||"clips"===a.xb.type)};
RR=function(a,b,c){g.W.call(this,{F:"div",N:"ytp-volume-panel",X:{role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},W:[{F:"div",N:"ytp-volume-slider",W:[{F:"div",N:"ytp-volume-slider-handle"}]}]});var d=this;this.api=a;this.j=b;this.J=c;this.hk=!1;this.Z=this.volume=0;this.I=null;this.B=this.u=this.isDragging=!1;this.j=b;this.J=c;this.C=b.Wf();this.S=this.Da("ytp-volume-slider");this.ea=this.Da("ytp-volume-slider-handle");
this.D=new g.ez(this.S,!0);g.M(this,this.D);this.D.subscribe("dragstart",this.M2,this);this.D.subscribe("dragmove",this.nW,this);this.D.subscribe("dragend",this.L2,this);this.T(a,"onVolumeChange",this.onVolumeChange);this.T(a,"appresize",this.gN);this.T(a,"fullscreentoggled",this.No);this.T(a,"onShowControls",this.lO);this.T(a,"onHideControls",this.lO);this.T(this.element,"keydown",this.oW);this.T(this.element,"focus",function(){PR(d,d.u,d.isDragging,!0,d.j.hk())});
this.T(this.element,"blur",function(){PR(d,d.u,d.isDragging,!1,d.j.hk())});
this.gN(a.gb().getPlayerSize());QR(this,a.getVolume(),a.isMuted())};
QR=function(a,b,c){var d=Math.floor(b),e=d+"% volume"+(c?" muted":"");c=c?0:b/100;a.Oa("valuenow",d);a.Oa("valuetext",e);a.ea.style.left=(a.C?60:40)*c+"px";a.volume=b};
YJa=function(a,b){g.jo(a.element,"ytp-volume-control-hover",b);PR(a,b,a.isDragging,a.B,a.j.hk())};
PR=function(a,b,c,d,e){var f=a.u||a.isDragging||a.B||a.hk;a.u=b;a.isDragging=c;a.B=d;a.hk=e;b=a.u||a.isDragging||a.B||a.hk;f!==b&&(b?a.I=a.T(a.element,"wheel",a.mW):(a.yc(a.I),a.I=null),g.jo(a.J,"ytp-volume-slider-active",b))};
g.SR=function(a,b){var c=a.V(),d=g.fG(c);0===d.indexOf("www.")&&(d=d.substring(4));var e=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];c.B&&e.push("no-link");g.VF(c)&&e.push("ytp-youtube-music-button");var f={target:c.J,"data-sessionlink":"feature=player-button",title:""};c.B||(f.title=g.FJ("Watch on $WEBSITE",{WEBSITE:d}),f.href="{{url}}");g.W.call(this,{F:"a",Fa:e,X:f,oa:"{{logoSvg}}"});this.j=null;this.api=a;this.visible=!1;a.vb(this.element,this,28666);c.B||(this.j=this.Ra("click",
this.onClick));this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"onLoopRangeChange",this.onVideoDataChange);this.T(a,"appresize",this.Cb);this.onVideoDataChange();c.B||g.$e(this,g.dP(b.wc(),this.element));this.Cb()};
TR=function(a,b,c){g.XD.call(this);var d=this;this.G=a;this.C=b;this.je=c;this.Wa=NaN;this.Ya=this.Qa=null;this.settingsMenu=new IR(this.G);this.B=null;this.Cc=new g.KQ(this.G,this.C);this.muteButton=null;this.ri=new g.MR(this.G,this.C);this.Z=this.I=this.D=this.Ia=this.Ba=null;this.ea=new wQ(this.G,this.C);this.La=new g.oQ(this.G,this.C);this.Ee=new g.Vn(this.jt,null,this);this.S=null;c=a.V();this.je.subscribe("autohideupdate",this.Bl,this);var e=!a.Eb().isCued(),f=this.G.V().K("html5_player_bottom_linear_gradient");
f||!g.VF(c)&&!a.V().K("html5_player_dynamic_bottom_gradient")?f=f?new g.W({F:"div",N:"ytp-gradient-bottom-container",W:[{F:"div",N:"ytp-gradient-bottom-extension"},{F:"div",N:"ytp-gradient-bottom"}]}):new g.W({F:"div",N:"ytp-gradient-bottom"}):this.Ya=f=new g.iQ(a);g.M(this,f);g.BN(a,f.element,9);this.Aa=new g.IL(f,250,e,100);g.M(this,this.Aa);this.u=new g.W({F:"div",N:"ytp-chrome-bottom",W:[{F:"div",N:"ytp-chrome-controls"}]});g.M(this,this.u);g.BN(a,this.u.element,9);this.qa=new g.IL(this.u,250,
e,100);g.M(this,this.qa);this.ya=this.u.element.children[0];g.$e(this.settingsMenu,function(){a.Lm()===d.settingsMenu&&(a.settingsMenu=null)});
g.M(this,this.settingsMenu);a.settingsMenu=this.settingsMenu;g.BN(a,this.settingsMenu.element,6);this.settingsMenu.subscribe("show",function(n){ZJa(d.C.wc(),!n);b.xA(d.settingsMenu,n)});
g.M(this,this.Cc);this.Cc.Ca(this.u.element,0);e=new g.lQ(a);g.M(this,e);g.BN(a,e.element,4);e=new g.TK({F:"div",N:"ytp-left-controls"});g.M(this,e);e.Ca(this.ya);f=new g.zQ(a,b,!1);g.M(this,f);f.Ca(e.element);c.Ia||(f=new g.xQ(a,b),g.M(this,f),f.Ca(e.element),oG(c)&&(f=new g.TK({F:"div",N:"ytp-hybrid-controls"}),g.M(this,f),this.Z=new g.xQ(a,b,!0),g.M(this,this.Z),this.Z.Ca(f.element),g.BN(a,f.element,4)));f=new g.zQ(a,b,!0);g.M(this,f);f.Ca(e.element);f=new g.W({F:"span",N:"ytp-volume-area"});g.M(this,
f);f.Ca(e.element);if(!c.zc&&(this.muteButton=new g.vQ(a,b),g.M(this,this.muteButton),this.muteButton.Ca(f.element),c.Ba&&!c.I)){var h=new RR(a,b,this.u.element);g.M(this,h);h.Ca(f.element);f=new g.ez(f.element);g.M(this,f);f.subscribe("hoverstart",function(){YJa(h,!0)});
f=new g.ez(e.element);g.M(this,f);f.subscribe("hoverend",function(){YJa(h,!1)})}g.M(this,this.ri);
this.ri.Ca(e.element);this.j=new g.TK({F:"div",N:"ytp-right-controls"});g.M(this,this.j);this.Ba=new kQ(a,b,this.Cc);g.M(this,this.Ba);this.Ba.Ca(e.element);c.K("web_key_moments_markers")&&(this.Ia=new pQ(a,b,this.Cc),g.M(this,this.Ia),this.Ia.Ca(e.element));this.j.Ca(this.ya);a.V().xd&&c.K("web_player_move_autonav_toggle")&&(e=new gQ(a,b),g.M(this,e),e.Ca(this.j.element));e=new g.KR(a,b);g.M(this,e);e.Ca(this.j.element);e=new kR(a,b,this.settingsMenu);g.M(this,e);XJa(this.settingsMenu,e);e.Ca(this.j.element);
if(c.K("web_screen_mode_menu_a")){var l=new dR(a,b);g.M(this,l);this.B=new jR(this.G,this.settingsMenu,l);l.qb=this.B;g.$e(this.B,function(){a.Yy()===d.B&&(a.OF=null)});
g.M(this,this.B)}if(e=this.B&&1<this.B.LE)a.OF=this.B,g.BN(a,this.B.element,7),this.B.subscribe("show",function(n){ZJa(d.C.wc(),!n);b.xA(d.B,n)}),l.Ca(this.j.element);
var m=new sQ(a);g.M(this,m);g.BN(a,m.element,5);m.subscribe("show",function(n){b.Ip(m,n)});
l=new rQ(a,b,m);g.M(this,l);l.Ca(this.j.element);l=a.getVideoData();if(c.Oj||l.C&&"1"===c.controlsType)this.D=new g.SR(a,b),g.M(this,this.D),this.D.Ca(this.j.element);g.M(this,this.ea);!e&&1>=this.settingsMenu.ME&&(c.showMiniplayerButton&&!a.V().K("web_player_pip")&&(this.I=new qQ(a,b),g.M(this,this.I),this.I.Ca(this.j.element)),this.ea.Ca(this.j.element),l.IH||this.ea.hide(),c.Rb||(l=new JR(a,b),g.M(this,l),l.Ca(this.j.element)),c.Lb&&(l=new cR(a,b,this.settingsMenu),g.M(this,l),l.Ca(this.j.element)),
c.Lj&&(c=new fQ(a,b),g.M(this,c),c.Ca(this.j.element)));g.M(this,this.La);this.La.Ca(this.j.element);g.M(this,this.Ee);this.T(a,"appresize",this.Cb);this.T(a,"fullscreentoggled",this.Cb);this.T(a,"presentingplayerstatechange",this.TF);this.T(a,"videodatachange",this.onVideoDataChange);this.Cb()};
$Ja=function(a,b){a.G.Eb().isCued()||b?b&&(a.qa.hide(),a.Aa.hide(),a.muteButton&&a.muteButton.Wb(!1),a.D&&a.D.Wb(!1),a.I&&a.I.Wb(!1),a.C.wc().Yj(a.u.element)):b||(a.qa.show(),a.Aa.show(),a.muteButton&&a.muteButton.Wb(!0),a.D&&a.D.Wb(!0),a.I&&a.I.Wb(!0),a.Bl())};
aKa=function(a){var b=a.G.gb().getPlayerSize().width;return Math.max(b-2*UR(a),100)};
UR=function(a){var b=a.C.Wf();return 12*(a.G.getVideoData().C?0:b?2:1)};
VR=function(a){var b=a.C.Wf()?72:50;a=a.G.V();g.jG(a)&&(b=62,g.QF(a)&&(b=54));return b};
WR=function(a,b){bQ.call(this,a,b,!1);var c=this;this.T(this.G,"videodatachange",this.onVideoDataChange);this.T(this.G,g.sA("suggested_action_button_visible"),function(){c.Ff(!0)});
this.T(this.G,g.tA("suggested_action_button_visible"),function(){c.Ff(!1)})};
YR=function(a){a.G.Gf("suggested_action_button_visible")};
$R=function(a){g.W.call(this,{F:"div",N:ZR.TITLE,W:[{F:"div",N:ZR.TEXT,W:[{F:"a",Fa:[ZR.LINK,ZR.SESSIONLINK],X:{target:a.V().J,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},oa:"{{title}}"},{F:"div",N:ZR.SUBTEXT,W:["{{subtextElement}}"]}]}]});this.api=a;this.j=null;this.link=this.Da(ZR.LINK);a.vb(this.element,this,23851);this.T(a,"videodatachange",this.Ja);this.T(a,"videoplayerreset",this.Ja);this.Ja()};
bKa=function(a){a.Oa("channelLink","");a.Oa("channelName","");a.Oa("channelTitleFocusable","-1")};
g.aS=function(a,b){g.W.call(this,{F:"div",W:[{F:"div",N:"ytp-tooltip-text-wrapper",X:{"aria-hidden":"{{ariaHidden}}"},W:[{F:"div",N:"ytp-tooltip-edu",W:[{F:"svg",X:{height:"100%",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",X:{d:"M14.1 36.75 12 34.65 24 22.65 36 34.65 33.9 36.75 24 26.85ZM14.1 24.1 12 22 24 10 36 22 33.9 24.1 24 14.2Z"}}]},{F:"span",oa:"{{eduText}}"}]},{F:"div",N:"ytp-tooltip-image"},{F:"div",N:"ytp-tooltip-title",W:[{F:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},W:[{F:"g",
W:[{F:"rect",X:{fill:"none",height:"24",width:"24",x:"0"}}]},{F:"g",W:[{F:"g",W:[{F:"polygon",X:{points:"19,9 20.25,6.25 23,5 20.25,3.75 19,1 17.75,3.75 15,5 17.75,6.25"}},{F:"polygon",X:{points:"19,15 17.75,17.75 15,19 17.75,20.25 19,23 20.25,20.25 23,19 20.25,17.75"}},{F:"path",X:{d:"M11.5,9.5L9,4L6.5,9.5L1,12l5.5,2.5L9,20l2.5-5.5L17,12L11.5,9.5z M9.99,12.99L9,15.17l-0.99-2.18L5.83,12l2.18-0.99 L9,8.83l0.99,2.18L12.17,12L9.99,12.99z"}}]}]}]},{F:"span",oa:"{{title}}"}]},{F:"span",N:"ytp-tooltip-text",
oa:"{{text}}"}]},{F:"div",N:"ytp-tooltip-bg",W:[{F:"div",N:"ytp-tooltip-duration",oa:"{{duration}}"}]}]});var c=this;this.api=a;this.Ia=b;this.env=this.api.V();this.Ba=this.env.isMobile;this.bg=this.Da("ytp-tooltip-bg");this.image=this.Da("ytp-tooltip-image");this.text=this.Da("ytp-tooltip-text");this.title=this.Da("ytp-tooltip-title");this.Z=function(d){(d=Cx(d))&&g.qh(c.u,d)||c.Ql()};
this.C=function(d){3===c.type&&c.Ql();(d=d.currentTarget)&&1===d.nodeType&&!c.type&&(d.removeEventListener("mouseover",c.C),d.addEventListener("mouseout",c.Z),d.removeEventListener("focus",c.C),d.addEventListener("blur",c.Z),cKa(c,d,2))};
this.ea=function(){c.Ql()};
this.u=null;this.D=new g.IL(this,100);this.type=null;this.S=!1;this.j=null;this.B=NaN;this.I="";this.UF=this.api.gb().getPlayerSize().width;this.J=!0;this.scale=1;this.qa=new g.Xn(this.h_,250,this);this.ya=new g.Xn(this.Ql,5E3,this);g.M(this,this.D);g.M(this,this.qa);g.M(this,this.ya);GF&&(a=this.Da("ytp-tooltip-text"),a.setAttribute("role","text"),a.setAttribute("aria-live","polite"))};
hP=function(a){a.element.setAttribute("aria-live","polite")};
ZJa=function(a,b){if(null!=a.type)if(b)switch(a.type){case 3:case 2:bS(a);a.D.show();break;default:a.D.show()}else a.D.hide();a.J=b};
fKa=function(a,b,c,d,e,f,h,l,m){if(!a.Ba||a.env.I){3===a.type&&a.Ql();1!==a.type&&(g.co(a.element,"ytp-tooltip ytp-bottom"),a.type=1,a.J&&a.D.show(),a.j&&a.j.dispose(),a.j=a.api.Ji(),a.j&&a.j.subscribe("l",a.bR,a));a.update({text:d,title:null!=h?h:"",eduText:null!=m?m:""});g.jo(a.text,"ytp-tooltip-text-no-title",1===a.type&&!h);g.jo(a.element,"ytp-text-detail",!!e);d=-1;a.j&&(d=xH(a.j,160*a.scale),a.env.K("web_l3_storyboard")&&4===a.j.levels.length&&(d=a.j.levels.length-1),d=MAa(a.j,d,c));dKa(a,d);
if(l)switch(c=g.Kl(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"}eKa(a,!!e,b,f)}};
g.cS=function(a){1===a.type&&a.Ql()};
g.dP=function(a,b){if(a.Ba)return function(){};
b.addEventListener("mouseover",a.C);b.addEventListener("focus",a.C);var c=b.getAttribute("title");c&&!b.hasAttribute("aria-label")&&b.setAttribute("aria-label",c);return function(){a.u===b&&a.Ql();b.removeEventListener("mouseover",a.C);b.removeEventListener("focus",a.C)}};
yP=function(a,b,c){if(a.type)if(3===a.type)a.Ql();else return;cKa(a,b,3,c)};
cKa=function(a,b,c,d){if(b&&!b.hasAttribute)a=new g.Pv("showElementTooltip called with non-element.",b.toString()),g.oz(a);else{isNaN(a.B)||(a.B=NaN,a.bg.style.background="");a.u=b;a.S=!!d;d?a.I=d:(a.I=b.getAttribute("title"),b.removeAttribute("title"));g.co(a.element,"ytp-tooltip");a.env.K("web_rounded_containers")&&g.fo(a.element,"ytp-rounded-tooltip");var e=b.getAttribute("data-tooltip-image");e&&(a.image.style.backgroundImage="url("+e+")");d?a.update({ariaHidden:"false"}):a.update({ariaHidden:"true"});
g.jo(a.element,"ytp-tooltip-image-enabled",!!e);b=b.getAttribute("data-tooltip-opaque");g.jo(a.element,"ytp-tooltip-opaque",!!b);a.type=c;a.api.addEventListener("appresize",a.ea);a.J&&(bS(a),a.D.show(0))}};
bS=function(a){var b;a.u&&(b=a.u.getAttribute("data-tooltip-text"));if(b&&!a.S){var c=a.u;a.Oa("text",b);var d=c.getAttribute("data-duration");a.update({title:a.I,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.go(a.element,["ytp-text-detail","ytp-preview"]);
g.jo(a.element,"ytp-has-duration",!!d)}else a.Oa("text",a.I),g.io(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);eKa(a,!!b)};
eKa=function(a,b,c,d){var e=Math.min(a.UF,300*a.scale);a.element.style.maxWidth=b?"":e+"px";a.Ia.At(a.element,a.u,c,1===a.type,d);a.element.style.top?g.fo(a.element,"ytp-bottom"):a.element.style.bottom&&g.fo(a.element,"ytp-top");3===a.type&&a.ya.start()};
zP=function(a){a.u&&!a.S&&a.u.hasAttribute("title")&&(a.I=a.u.getAttribute("title")||"",a.u.removeAttribute("title"),a.J&&bS(a))};
dKa=function(a,b){g.jo(a.element,"ytp-preview",0<=b);if(!(0>b||b===a.B)){a.B=b;b=160*a.scale;var c=160*a.scale,d=IAa(a.j,a.B,b);ZIa(a.bg,d,b,c,!0);a.qa.start()}};
gKa=function(a){var b=a.u;3===a.type&&a.ya.stop();a.api.removeEventListener("appresize",a.ea);a.S||b.setAttribute("title",a.I);a.I="";a.u=null};
g.dS=function(a,b){g.W.call(this,{F:"button",Fa:["ytp-watch-later-button","ytp-button"],X:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.KF(a.V()))},W:[{F:"div",N:"ytp-watch-later-icon",oa:"{{icon}}"},{F:"div",N:"ytp-watch-later-title",oa:"Watch later"}]});this.G=a;this.icon=null;this.visible=this.isRequestPending=this.j=!1;this.tooltip=b.wc();hP(this.tooltip);a.vb(this.element,this,28665);this.Ra("click",this.onClick,this);this.T(a,"videoplayerreset",this.pW);
this.T(a,"appresize",this.BB);this.T(a,"videodatachange",this.BB);this.T(a,"presentingplayerstatechange",this.BB);this.BB();a=this.G.V();var c=g.Oz("yt-player-watch-later-pending");a.u&&c?(lya(),hKa(this)):this.Ja(2);g.jo(this.element,"ytp-show-watch-later-title",g.KF(a));g.$e(this,g.dP(b.wc(),this.element))};
iKa=function(a,b){g.jM(function(){lya({videoId:b});window.location.reload()},"wl_button",g.eG(a.G.V()))};
hKa=function(a){if(!a.isRequestPending){a.isRequestPending=!0;a.Ja(3);var b=a.G.getVideoData();b=a.j?b.removeFromWatchLaterCommand:b.addToWatchLaterCommand;var c=a.G.Jm(),d=a.j?function(){a.j=!1;a.isRequestPending=!1;a.Ja(2);a.G.V().C&&a.G.Pa("WATCH_LATER_VIDEO_REMOVED")}:function(){a.j=!0;
a.isRequestPending=!1;a.Ja(1);a.G.V().isMobile&&yP(a.tooltip,a.element);a.G.V().C&&a.G.Pa("WATCH_LATER_VIDEO_ADDED")};
uM(c,b).then(d,function(){a.isRequestPending=!1;jKa(a,"An error occurred. Please try again later.")})}};
jKa=function(a,b){a.Ja(4,b);a.G.V().C&&a.G.Pa("WATCH_LATER_ERROR",b)};
kKa=function(a,b){var c=a.G.V();if(b!==a.icon){switch(b){case 3:var d=GO();break;case 1:d=$K();break;case 2:d={F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,N:"ytp-svg-fill",X:{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=c.K("watch_later_iconchange_killswitch")?{F:"svg",X:{height:"100%",version:"1.1",
viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,N:"ytp-svg-fill",X:{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"}}]}:{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,X:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}a.Oa("icon",d);a.icon=b}};
eS=function(a){g.TO.call(this,a);var b=this;this.rz=(this.hq=g.KF(this.api.V()))&&(this.api.V().isMobile||Xu()||Vu());this.TG=48;this.UG=69;this.Bm=null;this.uq=[];this.Ic=new g.ZO(this.api);this.Ay=this.api.K("web_player_deprecate_double_tap_ux")?new AP:new BP(this.api);this.Gj=new g.W({F:"div",N:"ytp-chrome-top"});this.PA=[];this.tooltip=new g.aS(this.api,this);this.backButton=this.Gw=null;this.channelAvatar=new jP(this.api,this);this.title=new $R(this.api,this);this.wi=new g.TK({F:"div",N:"ytp-chrome-top-buttons"});
this.Lh=this.shareButton=this.ej=null;this.Kh=new cP(this.api,this,this.Gj.element);this.overflowButton=this.Eh=null;this.Pf="1"===this.api.V().controlsType?new TR(this.api,this,this.je):null;this.contextMenu=new g.wP(this.api,this,this.Ic);this.IG=!1;this.tC=new g.W({F:"div",X:{tabindex:"0"}});this.sC=new g.W({F:"div",X:{tabindex:"0"}});this.iA=null;this.x3=this.fJ=this.dC=!1;var c=a.gb(),d=a.V(),e=a.getVideoData();this.hq&&(g.fo(a.getRootNode(),"ytp-embed"),g.fo(a.getRootNode(),"ytp-embed-playlist"),
this.rz&&(g.fo(a.getRootNode(),"ytp-embed-overlays-autohide"),g.fo(this.contextMenu.element,"ytp-embed-overlays-autohide")),this.TG=60,this.UG=89);this.api.V().isMobile&&(g.fo(a.getRootNode(),"ytp-mobile"),this.api.V().I&&g.fo(a.getRootNode(),"ytp-embed-mobile-exp"));this.Nh=e&&e.Nh;g.M(this,this.Ic);g.BN(a,this.Ic.element,4);g.M(this,this.Ay);g.BN(a,this.Ay.element,4);e=new g.W({F:"div",N:"ytp-gradient-top"});g.M(this,e);g.BN(a,e.element,1);this.qL=new g.IL(e,250,!0,100);g.M(this,this.qL);g.M(this,
this.Gj);g.BN(a,this.Gj.element,1);this.pL=new g.IL(this.Gj,250,!0,100);g.M(this,this.pL);g.M(this,this.tooltip);g.BN(a,this.tooltip.element,4);var f=new QP(a);g.M(this,f);g.BN(a,f.element,5);f.subscribe("show",function(m){b.Ip(f,m)});
this.PA.push(f);this.Gw=new RP(a,this,f);g.M(this,this.Gw);d.showBackButton&&(this.backButton=new YO(a),g.M(this,this.backButton),this.backButton.Ca(this.Gj.element));this.hq||this.Gw.Ca(this.Gj.element);this.channelAvatar.Ca(this.Gj.element);g.M(this,this.channelAvatar);g.M(this,this.title);this.title.Ca(this.Gj.element);g.M(this,this.wi);this.wi.Ca(this.Gj.element);d.B||(this.ej=new g.dS(a,this),g.M(this,this.ej),this.ej.Ca(this.wi.element));var h=new g.ZP(a,this);g.M(this,h);g.BN(a,h.element,5);
h.subscribe("show",function(m){b.Ip(h,m)});
this.PA.push(h);d.B||(this.shareButton=new g.YP(a,this,h),g.M(this,this.shareButton),this.shareButton.Ca(this.wi.element),this.Lh=new g.xP(a,this),g.M(this,this.Lh),this.Lh.Ca(this.wi.element));d.Yl&&(e=new eQ(a),g.M(this,e),g.BN(a,e.element,4));this.hq&&this.Gw.Ca(this.wi.element);g.M(this,this.Kh);this.Kh.Ca(this.wi.element);d.B||(e=new eP(a,this,this.Kh),g.M(this,e),e.Ca(this.wi.element));this.Eh=new NP(a,this);g.M(this,this.Eh);g.BN(a,this.Eh.element,5);this.Eh.subscribe("show",function(){b.Ip(b.Eh,
b.Eh.Ah())});
this.PA.push(this.Eh);this.overflowButton=new MP(a,this,this.Eh);g.M(this,this.overflowButton);this.overflowButton.Ca(this.wi.element);this.Pf&&g.M(this,this.Pf);"3"===d.controlsType&&(e=new XP(a,this),g.M(this,e),g.BN(a,e.element,9));g.M(this,this.contextMenu);this.contextMenu.subscribe("show",this.wT,this);e=new dM(a,new XO(a));g.M(this,e);g.BN(a,e.element,4);this.tC.Ra("focus",this.TY,this);g.M(this,this.tC);this.sC.Ra("focus",this.UY,this);g.M(this,this.sC);var l;(this.Go=d.kf?null:new g.JP(a,
c,this.contextMenu,this.je,this.Ic,this.Ay,function(){return b.dl()},null==(l=this.Pf)?void 0:l.Cc))&&g.M(this,this.Go);
this.hq||(this.BS=new cQ(this.api,this),g.M(this,this.BS),g.BN(a,this.BS.element,4));this.NS=new WR(this.api,this);g.M(this,this.NS);g.BN(a,this.NS.element,4);this.hq&&this.api.V().K("embeds_web_enable_info_panel_preview")&&(c=new DP(a,this.rz),g.M(this,c),g.BN(a,c.element,5),c=new FP(a,c),g.M(this,c),g.BN(a,c.element,4));this.tq.push(this.Ic.element);this.T(a,"fullscreentoggled",this.No);this.T(a,"offlineslatestatechange",function(){b.api.wz()&&AO(b.je,128,!1)});
this.T(a,"cardstatechange",function(){b.Jk()});
this.T(a,"resize",this.P0);this.T(a,"showpromotooltip",this.v1)};
lKa=function(a){var b=a.api.V(),c=g.V(a.api.Eb(),128);return b.u&&c&&!a.api.isFullscreen()};
fS=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!==Cl(b,"display")&&"true"!==b.getAttribute("aria-hidden")){var e=void 0;0<=b.tabIndex?e=b:e=fS(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};
mKa=function(a,b,c){if(a.api.V().K("web_player_nitrate_promo_tooltip")){var d=a.api.getVideoData(1);if(null==d?0:d.tooltipRenderer){d=d.tooltipRenderer;var e;if(e=!a.iA){if(!(b=!b)){var f,h;b="TOOLTIP_DISPLAY_TYPE_DO_NOT_SHOW_IMMEDIATELY"!==(null==(f=d.tooltipDisplayStrategy)?void 0:f.type)&&"dtip-edu-player-iseecaptions"!==(null==(h=d.promoConfig)?void 0:h.promoId)}e=b}e&&(a.iA=new SP(d,a,a.api),g.M(a,a.iA),g.BN(a.api,a.iA.element,9));var l;null==(l=a.iA)||VP(l,d,c)}}};
g.gS=function(a){g.eO.call(this,a);this.chrome=null;this.load()};
hS=function(a,b,c,d){function e(h){var l=!(204!==h.status&&200!==h.status&&!h.response),m;h={succ:""+ +l,rc:h.status,lb:(null==(m=h.response)?void 0:m.byteLength)||0,rt:((0,g.T)()-f).toFixed(),shost:g.pi(a),trigger:b};nKa(h,a);c&&c(h);d&&!l&&d(new xG("pathprobe.net",h))}
var f=(0,g.T)();g.Au(a,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:e,onTimeout:e})};
nKa=function(a,b){var c;(null==(c=window.performance)?0:c.getEntriesByName)&&(b=performance.getEntriesByName(b))&&b.length&&(b=b[0],a.pedns=(b.domainLookupEnd-b.startTime).toFixed(),a.pecon=(b.connectEnd-b.domainLookupEnd).toFixed(),a.perqs=(b.requestStart-b.connectEnd).toFixed())};
oKa=function(a){return new Promise(function(b){setTimeout(b,a)})};
iS=function(a){g.J.call(this);var b=this;this.Y=a;this.j=new Map;this.C=[];this.B=this.Y.experiments.jb("html5_onesie_trusted_hosts_for_all")||!jF();this.Z=g.RE(this.Y.experiments,"html5_onesie_prewarm_interval_ms");this.S=new g.Xn(this.J,this.Z,this);this.I=-1;g.M(this,this.S);pKa(this,g.Oz("yt-player-bandaid-host"));this.ea=this.load();this.Z&&this.ea.then(function(){b.J()})};
pKa=function(a,b){var c=null==b?void 0:b.primary;a.u(0,c);c=c?qKa(c):void 0;a.u(2,c);a.u(1,null==b?void 0:b.secondary)};
jS=function(a,b){return new g.KB("https://"+b+a.Y.Mi.baseUrl)};
rKa=function(a,b){a="https://"+MB(b.location)+"/initplayback?c="+ZF(a.Y)+"&owc=1";b.start();hS(a,"pw",function(c){b.end();c.ht=b.IP;b.f_=c})};
kS=function(a,b,c,d){hS("https://"+b+"/videoplayback?probe=1",c,function(e){d.K("html5_onesie_host_racing")&&!d.K("html5_onesie_probe_ec_hosts")&&(d.dD||d.xP());a.C.push(e)},function(e){a.C.push(e.details)})};
qKa=function(a){return a.replace(/(\d+)---/g,function(b,c){b=Number(c);return(1===b?2:b-1)+"---"})};
mS=function(a,b){var c,d,e,f,h,l;return g.z(function(m){if(1==m.j){c=jS(a,"redirector.googlevideo.com");c.set("alr","yes");c.set("id",""+Math.round(1E5*Math.random()));if(1===b||2===b)c.set("cmo=sensitive_content","yes"),c.set("sc","yes");2===b&&c.set("cmo=td","c.youtube.com");d={format:"RAW",timeout:5E3};return g.x(m,Cu(c.ye(),d),2)}e=m.u;if(200!==e.xhr.status||!e.xhr.responseText)return m.return(Promise.reject(new g.Pv("b204258371_no_host",c.ye(),e.xhr.status)));f=new g.KB(e.xhr.responseText);h=
MB(f);l=f.get("ms");a.Y.K("html5_onesie_keep_redirector_params")?f.set("id",null):(f=jS(a,h),f.set("ms",l));return h&&sKa(h)?2!==b||lS(h)?m.return(f):m.return(Promise.reject(new g.Pv("b204258371_untrusted",h,l))):m.return(Promise.reject(new g.Pv("b204258371_invalid",h,l)))})};
tKa=function(a){var b=a.C;a.C=[];return b};
sKa=function(a){return/.*(\.c\.youtube\.com|.*\.googlevideo\.com)/.test(a)};
lS=function(a){var b=/sn-[^.]*-/;return/.*\.c\.youtube\.com/.test(a)&&!b.test(a)};
nS=function(a,b){this.location=a;this.IP=b;this.endTimestamp=this.startTimestamp=-1};
oS=function(a){return a.endTimestamp<=a.startTimestamp?Infinity:a.endTimestamp-a.startTimestamp};
uKa=function(a){var b,c;null==(b=window.h5vcc)||null==(c=b.settings)||c.set("QUIC",+a)};
vKa=function(){var a=window.H5vccPlatformService,b="";if(a&&a.has("dev.cobalt.coat.clientloginfo")&&(a=a.open("dev.cobalt.coat.clientloginfo",function(){}))){var c=a.send(new ArrayBuffer(0));
c&&(b=String.fromCharCode.apply(String,g.t(new Uint8Array(c))));a.close()}return b};
wKa=function(){for(var a=pS.length;4>a;a++){var b=g.hh("VIDEO");b.load();pS.push(new g.zO(b))}};
xKa=function(){};
g.qS=function(a,b,c,d){d=void 0===d?!1:d;TJ.call(this);this.mediaElement=a;this.start=b;this.end=c;this.j=d};
yKa=function(a,b,c){var d=b.getVideoData(),e=a.getVideoData();if(b.getPlayerState().isError())return{msg:"player-error"};b=e.B;if(a.nj()>c/1E3+1)return{msg:"in-the-past"};if(e.isLivePlayback&&!isFinite(c))return{msg:"live-infinite"};(a=a.Ud())&&a.isView()&&(a=a.mediaElement);if(a&&12<a.Cs().length&&g.aI(d))return{msg:"played-ranges"};if(!d.B)return null;if(!d.B.j||!b.j)return{msg:"non-dash"};if(d.B.videoInfos[0].containerType!==b.videoInfos[0].containerType)return{msg:"container"};if(g.aI(e)&&g.aI(d))return{msg:"content-protection"};
e=b.j[0];d=d.B.j[0];a=e.audio;c=d.audio;return a.sampleRate===c.sampleRate||g.$D?(a.numChannels||2)!==(c.numChannels||2)?{msg:"channel-count"}:null:{msg:"sample-rate",ci:e.itag,cr:a.sampleRate,ni:d.itag,nr:c.sampleRate}};
rS=function(a,b,c,d){g.J.call(this);var e=this;this.policy=a;this.j=b;this.u=c;this.C=this.B=null;this.D=-1;this.I=!1;this.Cn=new SJ;this.Jl=d-1E3*b.Cd();this.Cn.then(void 0,function(){});
this.timeout=new g.Xn(function(){e.Of("timeout")},1E4);
g.M(this,this.timeout);this.J=isFinite(d);this.status={status:0,error:null}};
DKa=function(a){var b,c,d,e,f,h,l,m,n;return g.z(function(p){if(1==p.j){if(a.isDisposed())return p.return(Promise.reject(Error(a.status.error||"disposed")));a.timeout.start();b=g.sS.Rq("gtfta");return g.x(p,a.Cn,2)}g.sS.Lp(b);c=a.j.Ud();if(c.Yg())return a.Of("ended_in_finishTransition"),p.return(Promise.reject(Error(a.status.error||"")));if(!a.C||!pE(a.C))return a.Of("next_mse_closed"),p.return(Promise.reject(Error(a.status.error||"")));if(a.u.Up()!==a.C)return a.Of("next_mse_mismatch"),p.return(Promise.reject(Error(a.status.error||
"")));d=zKa(a);e=d.GQ;f=d.zO;h=d.FQ;a.j.di(!1,!0);l=AKa(c,e,h,!a.u.getVideoData().isAd());a.u.setMediaElement(l);a.J&&(a.u.seekTo(a.u.getCurrentTime()+.001,{Hs:!0,oL:3,Ae:"gapless_pseudo"}),l.play()||Gu());m=c.Sb();m.cpn=a.j.getVideoData().clientPlaybackNonce;m.st=""+e;m.et=""+h;a.u.va("gapless",m);a.j.va("gaplessTo",{cpn:a.u.getVideoData().clientPlaybackNonce});n=a.j.getPlayerType()===a.u.getPlayerType();BKa(a.j,f,!1,n,a.u.getVideoData().clientPlaybackNonce);BKa(a.u,a.u.getCurrentTime(),!0,n,a.j.getVideoData().clientPlaybackNonce);
g.Bh(function(){!a.u.getVideoData().Wa&&g.dK(a.u.getPlayerState())&&CKa(a.u)});
tS(a,6);a.dispose();return p.return(Promise.resolve())})};
GKa=function(a){if(a.u.getVideoData().B){uS(a.u,a.C);tS(a,3);EKa(a);var b=FKa(a),c=b.AS;b=b.H4;c.subscribe("updateend",a.Ju,a);b.subscribe("updateend",a.Ju,a);a.Ju(c);a.Ju(b)}};
EKa=function(a){a.j.unsubscribe("internalvideodatachange",a.Kr,a);a.u.unsubscribe("internalvideodatachange",a.Kr,a);a.j.unsubscribe("mediasourceattached",a.Kr,a);a.u.unsubscribe("statechange",a.Uc,a)};
AKa=function(a,b,c,d){a=a.isView()?a.mediaElement:a;return new g.qS(a,b,c,d)};
tS=function(a,b){b<=a.status.status||(a.status={status:b,error:null},5===b&&a.Cn.resolve(void 0))};
zKa=function(a){var b=a.j.Ud();b=b.isView()?b.start:0;var c=a.j.getVideoData().isLivePlayback?Infinity:vS(a.j,!0);c=Math.min(a.Jl/1E3,c)+b;var d=a.J?100:0;a=c-a.u.nj()+d;return{gY:b,GQ:a,zO:c,FQ:Infinity}};
FKa=function(a){return{AS:a.B.j.Zd,H4:a.B.u.Zd}};
wS=function(a){g.J.call(this);var b=this;this.app=a;this.D=this.u=this.j=null;this.J=!1;this.C=null;this.S=new xKa;this.B=null;this.I=function(){g.Bh(function(){HKa(b)})}};
IKa=function(a,b,c,d){d=void 0===d?0:d;a.lw()||xS(a);a.C=new SJ;a.j=b;var e=c,f=a.app.Jc(),h=f.getVideoData().isLivePlayback?Infinity:1E3*vS(f,!0);e>h&&(e=h-200,a.J=!0);f.getCurrentTime()>=e/1E3?a.I():(a.u=f,f=e,e=a.u,a.app.Va.addEventListener(g.sA("vqueued"),a.I),f=isFinite(f)||f/1E3>e.getDuration()?f:0x8000000000000,a.D=new g.qA(f,0x8000000000000,{namespace:"vqueued"}),e.addCueRange(a.D));f=d/=1E3;e=b.getVideoData().j;if(d&&e&&a.u){h=d;var l=0;b.getVideoData().isLivePlayback&&(f=Math.min(c/1E3,
vS(a.u,!0)),l=Math.max(0,f-a.u.getCurrentTime()),h=Math.min(d,vS(b)+l));f=bya(e,h)||d;f!==d&&a.j.va("qvaln",{st:d,at:f,rm:l,ct:h})}b=f;d=a.j;d.getVideoData().wg=!0;d.getVideoData().Qa=!0;g.yS(d,!0);e={};a.u&&(e=g.zS(a.u.qc.u),f=a.u.getVideoData().clientPlaybackNonce,e={crt:(1E3*e).toFixed(),cpn:f});d.va("queued",e);0!==b&&d.seekTo(b+.01,{Hs:!0,oL:3,Ae:"videoqueuer_queued"});a.B=new rS(a.S,a.app.Jc(),a.j,c);c=a.B;Infinity!==c.status.status&&(tS(c,1),c.j.subscribe("internalvideodatachange",c.Kr,c),
c.u.subscribe("internalvideodatachange",c.Kr,c),c.j.subscribe("mediasourceattached",c.Kr,c),c.u.subscribe("statechange",c.Uc,c),c.j.subscribe("newelementrequired",c.gR,c),c.Kr());return a.C};
HKa=function(a){var b,c,d;g.z(function(e){switch(e.j){case 1:if(a.isDisposed()||!a.C||!a.j)return e.return();a.J&&AS(a.app.Jc(),!0,!1);b=null;if(!a.B){e.Ma(2);break}g.pa(e,3);return g.x(e,DKa(a.B),5);case 5:g.ra(e,2);break;case 3:b=c=g.ua(e);case 2:if(!a.j)return e.return();g.sS.qK("vqsp",function(){BS(a.app,a.j)});
g.sS.qK("vqpv",function(){a.app.playVideo()});
b&&JKa(a.j,b.message);d=a.C;xS(a);return e.return(d.resolve(void 0))}})};
xS=function(a){if(a.u){var b=a.u;a.app.Va.removeEventListener(g.sA("vqueued"),a.I);b.removeCueRange(a.D);a.u=null;a.D=null}a.B&&(a.B.isFinished()||(b=a.B,Infinity!==b.status.status&&b.Of("Canceled")),a.B=null);a.C=null;a.j&&a.j!==g.pN(a.app,1)&&a.j!==a.app.Jc()&&a.j.dispose();a.j=null;a.J=!1};
KKa=function(){var a=xoa();return!(!a||"visible"===a)};
MKa=function(a){var b=LKa();b&&document.addEventListener(b,a,!1)};
NKa=function(a){var b=LKa();b&&document.removeEventListener(b,a,!1)};
LKa=function(){if(document.visibilityState)var a="visibilitychange";else{if(!document[ux+"VisibilityState"])return"";a=ux+"visibilitychange"}return a};
CS=function(){g.az.call(this);var a=this;this.fullscreen=0;this.u=this.pictureInPicture=this.j=this.B=this.inline=!1;this.C=function(){a.Ff()};
MKa(this.C);this.D=this.getVisibilityState(this.Fg(),this.isFullscreen(),this.Df(),this.isInline(),this.jw(),this.ew())};
OKa=function(a,b){var c;if(b.tG)for(c=0;c<b.tG.length;c++)hH(a,1,b.tG[c]);gH(a,2,b.sX);hH(a,3,b.hs);eH(a,4,b.Q4)};
PKa=function(a,b){iH(a,6,b.B4,OKa,3)};
QKa=function(a){this.end=this.start=a};
g.HS=function(a,b,c){g.J.call(this);var d=this;this.api=a;this.Y=b;this.xa=c;this.ya=new Map;this.Ya=new Map;this.Ba=new Map;this.C=new Map;this.B=[];this.D=[];this.u=new Map;this.zc=new Map;this.Z=new Map;this.Pc=NaN;this.Rb=this.ob=null;this.lc=new g.Xn(function(){DS(d,d.Pc)});
this.events=new g.XD(this);this.isLiveNow=!0;this.Qd=g.RE(this.Y.experiments,"web_player_ss_dai_ad_fetching_timeout_ms")||1E4;this.S=new g.Xn(function(){d.Aa=!0;var e=d.xa,f=d.Qd;e.va("sdai",{aftimeout:f});e.Ed(new xG("ad.fetchtimeout",{timeout:f}));ES(d);d.jz(!1)},this.Qd);
this.Aa=!1;this.La=new Map;this.Lb=[];this.qa=null;this.Ld=new Set;this.Wa=[];this.Ac=[];this.Id=[];this.Hd=[];this.j=void 0;this.kb=0;this.eb=!0;this.I=!1;this.Ia=[];this.xd=new Set;this.Kd=new Set;this.Gb=new Set;this.Zj=0;this.ea=null;this.yb=new Set;this.Sc=0;this.Gp=this.Lc=!1;this.J="";this.xa.getPlayerType();RKa(this.xa,this);this.Qa=vG(this.Y);g.M(this,this.lc);g.M(this,this.events);g.M(this,this.S);GS(this)||(this.events.T(this.api,g.sA("serverstitchedcuerange"),this.onCueRangeEnter),this.events.T(this.api,
g.tA("serverstitchedcuerange"),this.onCueRangeExit))};
UKa=function(a,b,c,d,e,f,h,l){var m=SKa(a,f,f+e);a.Y.K("html5_ssdai_log_ad_transition_info")&&a.xa.va("sdai",{attl:1,len:(e/1E3).toFixed(3),enter:(f/1E3).toFixed(3),abid:l});a.Aa&&a.xa.va("sdai",{adaftto:1});var n=a.Y.K("web_player_ssdai_reject_invalid_ads_killswitch"),p=a.xa;h=void 0===h?f+e:h;f===h&&!e&&a.Y.K("html5_allow_zero_duration_ads_on_timeline")&&a.xa.va("sdai",{attl0d:1});if(f>h&&(IS(a,{reason:"enterTime_greater_than_return",Dc:f,Zc:h}),n))return"";var q=1E3*p.getMinSeekableTime();if(f<
q&&(IS(a,{reason:"enterTime_less_than_minSeekableTime",Dc:f,T5a:q}),n))return"";p=1E3*p.getDuration();if(h>p&&(IS(a,{reason:"parent_return_greater_than_content_duration",Zc:h,R5a:p}),n))return"";p=null;if(n)for(n=g.r(a.D),q=n.next();!q.done;q=n.next()){q=q.value;if(f>=q.Dc&&f<q.Zc||h<=q.Zc&&h>q.Dc||h===q.Dc)return JS(a,b.video_id||"",f,h,q),"";f===q.Zc&&(p=q)}else n=g.jc(a.D,{Zc:f},function(w,y){return w.Zc-y.Zc}),0<=n&&(p=a.D[n],p.Zc>f&&JS(a,b.video_id||"",f,h,p));
if(m&&p)for(n=g.r(a.Wa.entries()),q=n.next();!q.done;q=n.next()){var u=g.r(q.value);q=u.next().value;u=u.next().value;if(u.identifier===m.identifier){a.Wa.splice(q,1);break}}else if(m&&a.Y.K("web_player_ss_timeout_skip_ads"))return a.xa.va("sdai",{rejectAttl:1}),l&&!Ol(a.Hd,function(w){return w===l})&&(a.xa.va("sdai",{rejectAdBreakAttl:1}),a.Hd.push(l)),a.Y.K("web_player_stop_timer_for_timedout_ab_killswitch")||KS(a),"";
m="ss_childplayback_"+TKa++;b.cpn||(b.cpn=g.vz(16));n=b.cpn;b=new g.FH(a.Y,b);b.Hc=m;c={Hc:m,playerType:d,durationMs:e,Dc:f,Zc:h,cpn:n,videoData:b,errorCount:0,ssdaiAdsConfig:c};g.nc(a.D,c,function(w,y){return w.Dc-y.Dc});
a.u.set(n,c);a.zc.set(m,c);a.xa.va("sdai",{attlDone:h-f,acpn:n});l?c.Uj=l:p?c.Uj=p.Uj:c.Uj=c.cpn;if(f=c.Uj)(d=a.Z.get(f))?(d.push(c),g.lc(d,function(w,y){return w.Dc-y.Dc})):a.Z.set(f,[c]);
a.S.isActive()&&(a.Aa=!1,a.S.stop(),ES(a),a.jz(!0));return m};
LS=function(a,b,c){return a.Y.experiments.jb("html5_ssdai_log_ad_transition_info")&&c?{ssvc:b,cpn:c.cpn,vid:c.videoData.videoId}:{ssvc:b}};
VKa=function(a,b,c){return new g.qA(a,b,{id:c,namespace:"serverstitchedcuerange",priority:9})};
MS=function(a){return{cpn:a.xa.getVideoData().clientPlaybackNonce,durationMs:0,Dc:0,playerType:1,Zc:0,videoData:a.xa.getVideoData(),errorCount:0}};
OS=function(a,b,c){var d=a.I,e=MS(a),f=a.J;a.J="";var h=b.rg-c.rg;.5<Math.abs(h)&&a.xa.va("sdai",{ttdtb:1,delta:h,cpn:e.cpn,enter:b.adCpn,exit:c.adCpn,seek:d,skip:f});if(b.isAd&&c.isAd){if(b.adCpn&&c.adCpn){var l=a.u.get(b.adCpn);var m=a.u.get(c.adCpn)}m&&l&&(a.api.ma("serverstitchedvideochange",l.Hc,l.tp),a.xa.va("sdai",LS(a,"a2a",l)),a.Zj++,NS(a.xa,m,l,c.rg,b.rg,d,!!f))}else if(!b.isAd&&c.isAd){a.api.ma("serverstitchedvideochange");a.xa.va("sdai",LS(a,"a2c"));a.Zj=0;if(h=c.Td)a.kb=h.end;var n;c.adCpn&&
(n=a.u.get(c.adCpn));n&&NS(a.xa,n,e,c.rg,b.rg,d,!!f)}else if(b.isAd&&!c.isAd){var p;b.adCpn&&(p=a.u.get(b.adCpn));p&&(a.kb=0,a.api.ma("serverstitchedvideochange",p.Hc,p.tp),a.xa.va("sdai",LS(a,"c2a",p)),a.Zj=1,NS(a.xa,e,p,c.rg,b.rg,d,!!f))}};
PS=function(a,b,c){c=1E3*(b+(void 0===c?0:c));var d=g.jc(a.D,{Dc:c},function(e,f){return e.Dc-f.Dc});
d=0>d?-1*(d+2):d;return 0<=d&&(a=a.D[d],a.Zc>=c)?{zm:a,gt:b}:{zm:void 0,gt:b}};
QS=function(a,b){var c="";GS(a)?(c=b/1E3-a.oo(),c=a.xa.Vv(c)):(b=WKa(a,b))&&(c=b.getId());return c?a.u.get(c):void 0};
WKa=function(a,b){a=g.r(a.C.values());for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.start<=b&&c.end>=b)return c};
DS=function(a,b){var c=a.Rb||a.api.Jc().getPlayerState();RS(a,!0);var d=b;a.Y.K("web_player_ssdai_seek_without_offset_killswitch")&&(d=PS(a,b).gt);a.xa.seekTo(d);a=a.api.Jc();b=a.getPlayerState();g.dK(c)&&!g.dK(b)?a.playVideo():g.V(c,4)&&!g.V(b,4)&&a.pauseVideo()};
RS=function(a,b){a.Pc=NaN;a.lc.stop();a.ob&&b&&SS(a.ob);a.Rb=null;a.ob=null};
TS=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;for(var d=b,e=c,f=[],h=g.r(a.D),l=h.next();!l.done;l=h.next())l=l.value,(l.Dc<d||l.Zc>e)&&f.push(l);a.D=f;d=b;e=c;f=g.r(a.C.values());for(h=f.next();!h.done;h=f.next())h=h.value,h.start>=d&&h.end<=e&&(a.xa.removeCueRange(h),a.C.delete(h.getId()),a.xa.va("sdai",{rmAdCR:1}));d=PS(a,b/1E3);b=d.zm;d=d.gt;b&&(d=1E3*d-b.Dc,e=b.Dc+d,b.durationMs=d,b.Zc=e,XKa(a,b));if(b=PS(a,c/1E3).zm){var m;d="playback_timelinePlaybackId_"+b.Hc+"_video_id_"+(null==
(m=b.videoData)?void 0:m.videoId)+"_durationMs_"+b.durationMs+"_enterTimeMs_"+b.Dc+"_parentReturnTimeMs_"+b.Zc;a.Ez("Invalid_clearEndTimeMs_"+c+"_that_falls_during_"+d+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}};
YKa=function(a){a.ya.clear();a.Ya.clear();a.Ba.clear();a.C.clear();a.B=[];a.D=[];a.u.clear();a.zc.clear();a.Z.clear();a.La.clear();a.Lb=[];a.qa=null;a.Ld.clear();a.Wa=[];a.Ac=[];a.Id=[];a.Hd=[];a.Ia=[];a.xd.clear();a.Kd.clear();a.Gb.clear();a.yb.clear();a.isLiveNow=!0;a.Aa=!1;a.j=void 0;a.kb=0;a.eb=!0;a.I=!1;a.Zj=0;a.ea=null;a.Sc=0;a.Lc=!1;a.Gp=!1;a.J="";a.S.isActive()&&KS(a)};
XKa=function(a,b){var c=a.C.get(b.cpn);if(c){a=g.r(a.B);for(var d=a.next();!d.done;d=a.next())d=d.value,d.start===c.end?d.start=b.Dc+b.durationMs:d.end===c.start&&(d.end=b.Dc);c.start=b.Dc;c.end=b.Dc+b.durationMs}};
$Ka=function(a,b,c,d,e){if(!a.Gp)if(g.ZKa(a,c))a.Qa&&a.xa.va("sdai",{gdu:"undec",seg:c,itag:e});else return US(a,b,c,d)};
US=function(a,b,c,d){var e=a.La.get(c);if(!e){b+=a.oo();b=PS(a,b,1);var f;a.Y.K("web_player_keep_decorating_last_chunk_killswitch")||b.zm||2!==(null==(f=VS(a,c-1,null!=d?d:2))?void 0:f.Vx)?e=b.zm:e=a.La.get(c-1)}return e};
aLa=function(a){if(a.Ia.length)for(var b=g.r(a.Ia),c=b.next();!c.done;c=b.next())a.onCueRangeExit(c.value);c=g.r(a.C.values());for(b=c.next();!b.done;b=c.next())a.xa.removeCueRange(b.value);c=g.r(a.B);for(b=c.next();!b.done;b=c.next())a.xa.removeCueRange(b.value);a.C.clear();a.B=[];a.ya.clear();a.Ya.clear();a.Ba.clear();a.j||(a.eb=!0)};
VS=function(a,b,c){if(1===c&&a.ya.has(b))return a.ya.get(b);if(2===c&&a.Ya.has(b))return a.Ya.get(b);if(3===c&&a.Ba.has(b))return a.Ba.get(b)};
WS=function(a,b,c,d){if(d)for(d=0;d<a.B.length;){var e=a.B[d];if(e.start<b&&e.end>c){var f=e.end;e.end=b;bLa(a,c,f)}else if(e.start>=b&&e.start<c&&e.end>c)e.start=c;else if(e.end>b&&e.end<=c&&e.start<b)e.end=b;else if(e.start>=b&&e.end<=c){a.xa.removeCueRange(e);if(a.Ia.includes(e))a.onCueRangeExit(e);a.B.splice(d,1);continue}d++}else bLa(a,b,c)};
bLa=function(a,b,c){b=VKa(b,c);c=!0;g.nc(a.B,b,function(h,l){return h.start-l.start});
for(var d=0;d<a.B.length;){if(0<d){var e=a.B[d],f=a.B[d-1];if(Math.round(f.end/1E3)>=Math.round(e.start/1E3)){f.end=e.end;e!==b?a.xa.removeCueRange(e):c=!1;a.B.splice(d,1);continue}}d++}if(c)for(a.xa.addCueRange(b),b=a.xa.Gy("serverstitchedcuerange",36E5),b=g.r(b),c=b.next();!c.done;c=b.next())a.C.delete(c.value.getId())};
XS=function(a,b,c){if(void 0===c||!c){c=g.r(a.Lb);for(var d=c.next();!d.done;d=c.next()){d=d.value;if(b>=d.start&&b<=d.end)return;if(b===d.end+1){d.end+=1;return}}a.Lb.push(new QKa(b))}};
g.ZKa=function(a,b){a=g.r(a.Lb);for(var c=a.next();!c.done;c=a.next())if(c=c.value,b>=c.start&&b<=c.end)return!0;return!1};
JS=function(a,b,c,d,e){var f;b={reason:"overlapping_playbacks",L5a:b,Dc:c,Zc:d,n5a:e.Hc,o5a:(null==(f=e.videoData)?void 0:f.videoId)||"",k5a:e.durationMs,l5a:e.Dc,m5a:e.Zc};IS(a,b)};
IS=function(a,b){a=a.xa;a.va("timelineerror",b);a.Ed(new xG("dai.timelineerror",b))};
cLa=function(a,b){var c=[];a=a.Z.get(b);if(!a)return[];a=g.r(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.cpn&&c.push(b.cpn);return c};
dLa=function(a,b,c){var d=0;a=a.Z.get(c);if(!a)return-1;a=g.r(a);for(c=a.next();!c.done;c=a.next()){if(c.value.cpn===b)return d;d++}return-1};
eLa=function(a,b){var c=[];a=a.Z.get(b);if(!a)return[];a=g.r(a);for(var d=a.next();!d.done;d=a.next())b=void 0,(d=null==(b=d.value.videoData)?void 0:b.videoId)&&c.push(d);return c};
fLa=function(a,b){var c=0;a=a.Z.get(b);if(!a)return 0;a=g.r(a);for(b=a.next();!b.done;b=a.next())b=b.value,0!==b.durationMs&&b.Zc!==b.Dc&&c++;return c};
gLa=function(a,b,c){var d=!1;if(c&&(c=a.Z.get(c))){c=g.r(c);for(var e=c.next();!e.done;e=c.next())e=e.value,0!==e.durationMs&&e.Zc!==e.Dc&&(e=e.cpn,b===e&&(d=!0),d&&!a.Kd.has(e)&&(a.xa.va("sdai",{decoratedAd:e}),a.Kd.add(e)))}};
ES=function(a){a.Qa&&a.xa.va("sdai",{adf:"0_"+((new Date).getTime()/1E3-a.Sc)+"_isTimeout_"+a.Aa})};
SKa=function(a,b,c){if(a.Wa.length)for(var d={},e=g.r(a.Wa),f=e.next();!f.done;d={Xq:d.Xq},f=e.next()){d.Xq=f.value;f=1E3*d.Xq.startSecs;var h=1E3*d.Xq.durationSecs+f;if(b>f&&b<h||c>f&&c<h)return Ol(a.Id,function(l){return function(m){return m.identifier===l.Xq.identifier}}(d))||(a.xa.va("sdai",{adskip:b}),a.Id.push(d.Xq)),d.Xq}};
KS=function(a){a.Aa=!1;a.S.isActive()&&ES(a);a.S.stop();a.jz(!1)};
GS=function(a){return a.Y.experiments.jb("html5_ssdai_use_new_ad_report")};
YS=function(a,b,c){g.J.call(this);var d=this;this.api=a;this.Y=b;this.j=c;this.I=new Map;this.u=[];this.B=this.J=null;this.Z=NaN;this.D=this.C=null;this.S=new g.Xn(function(){hLa(d,d.Z)});
this.ea=[];this.qa=new g.Xn(function(){var e=d.ea.pop();if(e){var f=e.Hc,h=e.playerVars;e=e.playerType;h&&(h.prefer_gapless=!0,d.api.preloadVideoByPlayerVars(h,e,NaN,"",f),d.ea.length&&g.Yn(d.qa,4500))}});
this.events=new g.XD(this);c.getPlayerType();g.M(this,this.S);g.M(this,this.qa);g.M(this,this.events);this.events.T(this.api,g.sA("childplayback"),this.onCueRangeEnter);this.events.T(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.T(this.api,"presentingplayerstatechange",this.Dh)};
lLa=function(a,b,c,d,e,f){var h=b.cpn,l=b.docid||b.video_id||b.videoId||b.id,m=a.j;f=void 0===f?e+d:f;if(e>f)return ZS(a,"enterAfterReturn enterTimeMs="+e+" is greater than parentReturnTimeMs="+f.toFixed(3),h,l),"";var n=1E3*m.getMinSeekableTime();if(e<n)return ZS(a,"enterBeforeMinSeekable enterTimeMs="+e+" is less than parentMinSeekableTimeMs="+n,h,l),"";n=1E3*m.getDuration();if(f>n)return m="returnAfterDuration parentReturnTimeMs="+f.toFixed(3)+" is greater than parentDurationMs="+n+". And timestampOffset in seconds is "+
m.Cd(),ZS(a,m,h,l),"";n=null;for(var p=g.r(a.u),q=p.next();!q.done;q=p.next()){q=q.value;if(e>=q.Dc&&e<q.Zc)return ZS(a,"overlappingEnter",h,l),"";if(f<=q.Zc&&f>q.Dc)return ZS(a,"overlappingReturn",h,l),"";if(f===q.Dc)return ZS(a,"outOfOrder",h,l),"";e===q.Zc&&(n=q)}h="cs_childplayback_"+iLa++;l={Td:$S(d,!0),Jl:Infinity,target:null};var u={Hc:h,playerVars:b,playerType:c,durationMs:d,Dc:e,Zc:f,Kp:l};a.u=a.u.concat(u).sort(function(A,B){return A.Dc-B.Dc});
n?jLa(a,n,{Td:$S(n.durationMs,!0),Jl:a.Y.K("timeline_manager_transition_killswitch")?Infinity:n.Kp.Jl,target:u}):(b={Td:$S(e,!1),Jl:e,target:u},a.I.set(b.Td,b),m.addCueRange(b.Td));b=!0;if(a.j===a.api.Jc()&&(m=1E3*m.getCurrentTime(),m>=u.Dc&&m<u.Zc)){var w=a.api.Jc().getPlayerState(),y=m-u.Dc;wh(function(){kLa(a,u,y/1E3,w)});
b=!1}b&&(a.ea.unshift(u),g.Yn(a.qa,0));return h};
$S=function(a,b){return new g.qA(Math.max(0,a-5E3),b?0x8000000000000:a-1,{namespace:"childplayback",priority:9})};
mLa=function(a,b,c,d){a.B=d;a.api.kC(a.j,c,b)};
nLa=function(a,b,c,d){a.B=d;d=b.Hc;var e=b.playerVars,f=b.playerType;a.J=b;e&&a.api.enqueueVideoByPlayerVars(e,f,c,d)};
jLa=function(a,b,c){var d=b.Kp;b.Kp=c;aT(a,b)&&(c=a.api.Jc(),d.Td===a.B&&bT(a),c.removeCueRange(d.Td),c.addCueRange(b.Kp.Td))};
bT=function(a){a.J=null;a.B=null;a.api.lw()||a.api.clearQueue()};
oLa=function(a,b){aT(a,b)||ZS(a,"childPlaybackIsNotPresenting");return b.Zc===b.Dc+b.durationMs?(a=a.api.Jc(),b.Dc+1E3*a.getCurrentTime()):b.Zc};
cT=function(a,b){var c=0;a=g.r(a.u);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=d.Dc/1E3+c,f=e+d.durationMs/1E3;if(e>b)break;if(f>b)return{zm:d,gt:b-e};c=f-d.Zc/1E3}return{zm:null,gt:b-c}};
hLa=function(a,b){var c=a.D||a.api.Jc().getPlayerState();dT(a,!0);b=a.Y.K("html5_playbacktimeline_seektoinf_killswitch")||isFinite(b)?b:a.j.ll();var d=cT(a,b);b=d.zm;d=d.gt;var e=b&&!aT(a,b)||!b&&a.j!==a.api.Jc(),f=1E3*d;f=a.B&&a.B.start<=f&&f<=a.B.end;!e&&f||bT(a);b?kLa(a,b,d,c):eT(a,d,c)};
eT=function(a,b,c){var d=a.j,e=a.api.Jc();d!==e&&a.api.Qo();d.seekTo(b,{Ae:"application_timelinemanager"});pLa(a,c)};
kLa=function(a,b,c,d){var e=aT(a,b);if(!e){b.playerVars.prefer_gapless=!0;var f=new g.FH(a.Y,b.playerVars);f.Hc=b.Hc;a.api.nq(f,b.playerType)}f=a.api.Jc();e||f.addCueRange(b.Kp.Td);f.seekTo(c,{Ae:"application_timelinemanager"});pLa(a,d)};
pLa=function(a,b){a=a.api.Jc();var c=a.getPlayerState();g.dK(b)&&!g.dK(c)?a.playVideo():g.V(b,4)&&!g.V(c,4)&&a.pauseVideo()};
dT=function(a,b){a.Z=NaN;a.S.stop();a.C&&b&&SS(a.C);a.D=null;a.C=null};
aT=function(a,b){a=a.api.Jc();return!!a&&a.getVideoData().Hc===b.Hc};
qLa=function(a){var b=a.u.find(function(e){return aT(a,e)});
if(b){var c=a.api.Jc();bT(a);var d=new g.YJ(8);b=oLa(a,b)/1E3;eT(a,b,d);c.va("forceParentTransition",{childPlayback:1});a.j.va("forceParentTransition",{parentPlayback:1})}};
fT=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;for(var d=b,e=c,f=g.r(a.I),h=f.next();!h.done;h=f.next()){var l=g.r(h.value);h=l.next().value;l=l.next().value;l.Jl>=d&&l.target&&l.target.Zc<=e&&(a.j.removeCueRange(h),a.I.delete(h))}d=b;e=c;f=[];h=g.r(a.u);for(l=h.next();!l.done;l=h.next())if(l=l.value,l.Dc>=d&&l.Zc<=e){var m=a;m.J===l&&bT(m);aT(m,l)&&m.api.Qo()}else f.push(l);a.u=f;d=cT(a,b/1E3);b=d.zm;d=d.gt;b&&(d*=1E3,rLa(a,b,d,b.Zc===b.Dc+b.durationMs?b.Dc+d:b.Zc));(b=cT(a,c/1E3).zm)&&
ZS(a,"Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(b.Hc+" video_id="+b.playerVars.video_id+" durationMs="+b.durationMs+" enterTimeMs="+b.Dc+" parentReturnTimeMs="+b.Zc+"}.Child playbacks can only have duration updated not their start."))};
rLa=function(a,b,c,d){b.durationMs=c;b.Zc=d;d={Td:$S(c,!0),Jl:c,target:null};jLa(a,b,d);aT(a,b)&&1E3*a.api.Jc().getCurrentTime()>c&&(b=oLa(a,b)/1E3,c=a.api.Jc().getPlayerState(),eT(a,b,c))};
ZS=function(a,b,c,d){a.j.va("timelineerror",{e:b,cpn:c?c:void 0,videoId:d?d:void 0})};
tLa=function(a){a&&"web"!==a&&sLa.includes(a)};
iT=function(a,b){g.J.call(this);var c=this;this.data=[];this.B=a||NaN;this.u=b||null;this.j=new g.Xn(function(){gT(c);hT(c)});
g.M(this,this.j)};
kT=function(a){var b;if(b=void 0===b?!1:b)for(var c=g.r(a.data),d=c.next();!d.done;d=c.next())jT(a,d.value,b);a.data=[];hT(a)};
gT=function(a){var b=(0,g.T)();a.data.forEach(function(c){c.expire<b&&jT(a,c,!0)});
a.data=g.um(a.data,function(c){return!(c.expire<b)})};
jT=function(a,b,c){c&&a.u&&a.u(b.value)};
hT=function(a){a.j.stop();var b=Infinity;for(var c=g.r(a.data),d=c.next();!d.done;d=c.next())d=d.value,d.expire<b&&(b=d.expire);b&&isFinite(b)&&(b=Math.max(b-Date.now(),100),a.j.start(b))};
g.lT=function(a){this.tag=a};
vLa=function(a,b){uLa.apply(null,[6,a,b].concat(g.t(g.za.apply(2,arguments))))};
uLa=function(a,b,c){var d=g.za.apply(3,arguments),e=6===a?"ERROR":"WARNING",f="b"+c;g.oz(new (Function.prototype.bind.apply(g.Pv,[null,f].concat(g.t(d)))),e);d.unshift(f);d=d.join(", ");e=wLa.get(b);e||(e="ytplog."+b,f=5,window.localStorage&&!isNaN(+window.localStorage[e])&&(f=+window.localStorage[e]),window.sessionStorage&&!isNaN(+window.sessionStorage[e])&&(f=+window.sessionStorage[e]),wLa.set(b,f),e=f);a<e||("function"===typeof d&&(d=d()),console.log("plyr."+b,d))};
mT=function(){g.J.call(this);this.j=new iT(5,null);g.M(this,this.j);this.u=new iT(15,null);g.M(this,this.u)};
xLa=function(a,b){return b?!!a.j.get(b):!1};
nT=function(){g.Bo.call(this);this.D=new Map};
oT=function(a){this.data=window.Float32Array?new Float32Array(a):Array(a);this.u=this.j=a-1};
yLa=function(a){return a.data[a.j]||0};
pT=function(a){g.J.call(this);this.B=a;this.j=new Map;this.u=new g.Xn(this.sample,250,this);g.M(this,this.u);this.start()};
qT=function(a,b){if(null==(a=a.j.get(b)))a=void 0;else{a=a.buffer;for(b=[];a.u!==a.j;)a.u=(a.u+1)%a.data.length,b.push(a.data[a.u]);a=b}return a||[]};
rT=function(a,b){var c;return(null==(c=a.j.get(b))?void 0:yLa(c.buffer))||0};
sT=function(a){this.u=a;this.j=NaN;this.buffer=new oT(100)};
zLa=function(a){var b=/codecs="([^"]*)"/.exec(a.mimeType);return b&&b[1]?b[1]+" ("+a.itag+")":a.itag};
tT=function(a){g.J.call(this);var b=this;this.j=null;for(var c=[],d=0;100>=d;d++)c.push(d/100);c={threshold:c,trackVisibility:!0,delay:1E3};(this.u=window.IntersectionObserver?new IntersectionObserver(function(e){e=e[e.length-1];"undefined"===typeof e.isVisible?b.j=null:b.j=e.isVisible?e.intersectionRatio:0},c):null)&&this.u.observe(a)};
vT=function(a){g.W.call(this,{F:"div",Fa:["html5-video-player"],X:{tabindex:"-1",id:a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId:a.config.attrs.id},W:[{F:"div",N:g.uT.VIDEO_CONTAINER,X:{"data-layer":"0"}}]});var b=this;this.app=a;this.oy=this.Da(g.uT.VIDEO_CONTAINER);this.Iw=new g.wl(0,0,0,0);this.Nb=null;this.aE=new g.wl(0,0,0,0);this.fI=this.iJ=this.hJ=NaN;this.UC=this.XD=this.gK=this.iO=!1;this.YG=NaN;this.II=!1;this.Fz=null;this.EJ=function(){b.element.focus()};
this.JD=function(){b.app.Va.ma("playerUnderlayVisibilityChange","visible");b.Nb.classList.remove(g.uT.VIDEO_CONTAINER_TRANSITIONING);b.Nb.removeEventListener(ALa,b.JD);b.Nb.removeEventListener("transitioncancel",b.JD)};
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.V();e.transparentBackground&&this.vp("ytp-transparent");"0"===e.controlsType&&this.vp("ytp-hide-controls");g.fo(this.element,"ytp-exp-bottom-control-flexbox");e.K("html5_player_bottom_linear_gradient")&&g.fo(this.element,"ytp-linear-gradient-bottom-experiment");e.K("enable_new_paid_product_placement")&&!g.mG(e)&&g.fo(this.element,"ytp-exp-ppp-update");oG(e)&&g.fo(this.element,"ytp-exp-hybrid-controls");Bra(this.element,"version",BLa(a));this.CS=!1;this.Ky=new g.Kg(NaN,NaN);CLa(this);this.T(a.Va,
"onMutedAutoplayChange",this.onMutedAutoplayChange)};
CLa=function(a){function b(){a.Nb&&wT(a);xT(a)!==a.II&&a.resize()}
function c(h,l){a.Zp(h,l)}
function d(h){h.getVideoData()&&a.updateVideoData(h.getVideoData())}
function e(){a.aE=new g.wl(0,0,0,0);a.Iw=new g.wl(0,0,0,0)}
var f=a.app.Va;f.addEventListener("initializingmode",e);f.addEventListener("videoplayerreset",d);f.addEventListener("videodatachange",c);f.addEventListener("presentingplayerstatechange",b);g.$e(a,function(){f.removeEventListener("initializingmode",e);f.removeEventListener("videoplayerreset",d);f.removeEventListener("videodatachange",c);f.removeEventListener("presentingplayerstatechange",b)})};
DLa=function(a){var b=g.pN(a.app);if(b=b?b.getVideoData():null){if(g.iI(b)||g.jI(b)||g.lI(b))return 16/9;if(SH(b)&&b.B.j)return a=b.B.videoInfos[0].video,yT(a.width,a.height)}return(a=a.Nb)?yT(a.videoWidth,a.videoHeight):16/9};
ELa=function(a,b,c,d){var e=c,f=yT(b.width,b.height);a.iO?e=c<f?Infinity:0:isNaN(a.fI)?isNaN(a.iJ)||(e=a.iJ):e=a.fI;isFinite(e)||(e=Math.max(c,f));a=e>f?{width:b.width,height:b.width/e,aspectRatio:e}:e<f?{width:b.height*e,height:b.height,aspectRatio:e}:{width:b.width,height:b.height,aspectRatio:f};d||isNaN(c)||(c>e?a.width=a.height*c:c<e&&(a.height=a.width/c),a.aspectRatio=c);return a};
yT=function(a,b){return 1>Math.abs(zT*b-a)||1>Math.abs(zT/a-b)?zT:a/b};
xT=function(a){if(1===a.app.getAppState())return!1;if(6===a.app.getAppState())return!0;var b=g.pN(a.app);if(!b||b.ul())return!1;var c=a.app.Va.Eb();a=!g.V(c,2)||!a.app.V().K("html5_leanback_gapless_elem_display_killswitch")&&b&&b.getVideoData().Qa;b=g.V(c,1024);return c&&a&&!b&&!c.isCued()};
wT=function(a){var b="3"===a.app.V().controlsType&&!a.UC&&xT(a)&&!a.app.Jz||!1;a.Nb.controls=b;a.Nb.tabIndex=b?0:-1;b?a.Nb.removeEventListener("focus",a.EJ):a.app.V().K("disable_focus_redirect")||a.Nb.addEventListener("focus",a.EJ)};
FLa=function(a){var b=a.Ki(),c=1,d=!1,e=ELa(a,b,a.getVideoAspectRatio()),f=a.app.V(),h=f.K("enable_desktop_player_underlay"),l=Tu(),m=g.RE(f.experiments,"player_underlay_min_player_width");m=h&&a.gK&&a.getPlayerSize().width>m;if(xT(a)){var n=DLa(a);var p=isNaN(n)||g.vw||AT&&g.Xv||m;Uu&&!g.vc(601)?n=e.aspectRatio:p=p||"3"===f.controlsType;p?m?(p=f.K("place_shrunken_video_on_left_of_player"),n=.02*a.getPlayerSize().width,p=p?n:a.getPlayerSize().width-b.width-n,p=new g.wl(p,0,b.width,b.height)):p=new g.wl(0,
0,b.width,b.height):(c=e.aspectRatio/n,p=new g.wl((b.width-e.width/c)/2,(b.height-e.height)/2,e.width/c,e.height),1===c&&g.Xv&&(n=p.width-b.height*n,0<n&&(p.width+=n,p.height+=n)));f.K("web_player_fit_cover_killswitch2")||g.jo(a.element,"ytp-fit-cover-video",1>Math.max(p.width-e.width,p.height-e.height));if(l||a.CS)a.Nb.style.display="";a.II=!0}else{p=-b.height;Uu?p*=window.devicePixelRatio:g.pG&&(p-=window.screen.height);p=new g.wl(0,p,b.width,b.height);if(l||a.CS)a.Nb.style.display="none";a.II=
!1}xl(a.aE,p)||(a.aE=p,g.SF(f)?(a.Nb.style.setProperty("width",p.width+"px","important"),a.Nb.style.setProperty("height",p.height+"px","important")):g.Jl(a.Nb,p.getSize()),d=new g.Ig(p.left,p.top),g.Fl(a.Nb,Math.round(d.x),Math.round(d.y)),d=!0);b=new g.wl((b.width-e.width)/2,(b.height-e.height)/2,e.width,e.height);xl(a.Iw,b)||(a.Iw=b,d=!0);g.zl(a.Nb,"transform",1===c?"":"scaleX("+c+")");h&&m!==a.XD&&(m&&(a.Nb.addEventListener(ALa,a.JD),a.Nb.addEventListener("transitioncancel",a.JD),a.Nb.classList.add(g.uT.VIDEO_CONTAINER_TRANSITIONING)),
a.XD=m,a.app.Va.ma("playerUnderlayVisibilityChange",a.XD?"transitioning":"hidden"));return d};
GLa=function(){this.csn=g.zz();this.clientPlaybackNonce=null;this.elements=new Set;this.B=new Set;this.j=new Set;this.u=new Set};
HLa=function(a,b){a.elements.has(b);a.elements.delete(b);a.B.delete(b);a.j.delete(b);a.u.delete(b)};
ILa=function(a){if(a.csn!==g.zz())if("UNDEFINED_CSN"===a.csn)a.csn=g.zz();else{var b=g.zz(),c=g.yz();if(b&&c){a.csn=b;for(var d=g.r(a.elements),e=d.next();!e.done;e=d.next())(e=e.value.visualElement)&&e.isClientVe()&&g.Dz(void 0,b,c,[e])}if(b)for(a=g.r(a.j),e=a.next();!e.done;e=a.next())(c=e.value.visualElement)&&c.isClientVe()&&g.Ez(b,c)}};
BT=function(a,b,c,d,e){g.W.call(this,{F:"div",N:"ytp-horizonchart"});this.D=b;this.sampleCount=c;this.B=d;this.C=e;this.index=0;this.heightPx=-1;this.u=this.ctx=null;this.j=Math.round(a/c);this.element.style.width=this.j*this.sampleCount+"px";this.element.style.height=this.D+"em"};
CT=function(a,b){if(-1===a.heightPx){var c=null;try{c=g.hh("CANVAS"),a.ctx=c.getContext("2d")}catch(e){}if(a.ctx){var d=a.j*a.sampleCount;a.u=c;a.u.width=d;a.u.style.width=d+"px";a.element.appendChild(a.u)}else for(a.sampleCount=Math.floor(a.sampleCount/4),a.j*=4,c=0;c<a.sampleCount;c++)d=g.hh("SPAN"),d.style.width=a.j+"px",d.style.left=a.j*c+"px",a.element.appendChild(d)}c=a.element.clientHeight||24;c!==a.heightPx&&(a.heightPx=c,a.ctx&&(c=1<(window.devicePixelRatio||1)?2:1,a.u.height=a.heightPx*
c,a.u.style.height=a.heightPx+"px",a.ctx.scale(1,c)));b=g.r(b);for(c=b.next();!c.done;c=b.next())a.setValue(a.index,c.value),a.index=(a.index+1)%a.sampleCount;b=a.index;a.ctx?a.ctx.clearRect(b*a.j,0,a.j,a.heightPx):(a=a.element.children[b],a.style.height="0px",a.style.borderTop="")};
DT=function(a){var b=null;b={F:"button",Fa:["html5-video-info-panel-close","ytp-button"],X:{title:"close"},oa:"[X]"};g.W.call(this,{F:"div",N:"html5-video-info-panel",W:[b,{F:"div",N:"html5-video-info-panel-content",W:[{F:"div",W:[{F:"div",oa:"Video ID / sCPN"},{F:"span",oa:"{{video_id_and_cpn}}",N:"ytp-sfn-cpn"}]},{F:"div",W:[{F:"div",oa:"Viewport / Frames"},{F:"span",oa:"{{dims_and_frames}}"}]},{F:"div",W:[{F:"div",oa:"Current / Optimal Res"},{F:"span",oa:"{{resolution}}"}]},{F:"div",W:[{F:"div",
oa:"Volume / Normalized"},{F:"span",oa:"{{volume}}"}]},{F:"div",W:[{F:"div",oa:"Codecs"},{F:"span",oa:"{{codecs}}"}]},{F:"div",X:{style:"{{shader_info_style}}"},W:[{F:"div",oa:"Shader Info"},{F:"span",oa:"{{shader_info}}"}]},{F:"div",X:{style:"{{color_style}}"},W:[{F:"div",oa:"Color"},{F:"span",oa:"{{color}}"}]},{F:"div",X:{style:"{{drm_style}}"},W:[{F:"div",oa:"Protected"},{F:"span",oa:"{{drm}}"}]},{F:"div",X:{style:"{{bandwidth_style}}"},W:[{F:"div",oa:"Connection Speed"},{F:"span",W:[{F:"span",
oa:"{{bandwidth_chart}}"},{F:"span",oa:"{{bandwidth_kbps}}"}]}]},{F:"div",X:{style:"{{network_activity_style}}"},W:[{F:"div",oa:"Network Activity"},{F:"span",W:[{F:"span",oa:"{{network_activity_chart}}"},{F:"span",oa:"{{network_activity_bytes}}"}]}]},{F:"div",W:[{F:"div",oa:"Buffer Health"},{F:"span",W:[{F:"span",oa:"{{buffer_health_chart}}"},{F:"span",oa:"{{buffer_health_seconds}}"}]}]},{F:"div",X:{style:"{{live_latency_style}}"},W:[{F:"div",oa:"Live Latency"},{F:"span",W:[{F:"span",oa:"{{live_latency_chart}}"},
{F:"span",oa:"{{live_latency_secs}}"}]}]},{F:"div",X:{style:"{{live_mode_style}}"},W:[{F:"div",oa:"Live Mode"},{F:"span",oa:"{{live_mode}}"}]},{F:"div",X:{style:"{{playback_categories_style}}"},W:[{F:"div",oa:"Playback Categories"},{F:"span",oa:"{{playback_categories}}"}]},{F:"div",W:[{F:"div",oa:"Mystery Text"},{F:"span",oa:"{{debug_info}}"}]},{F:"div",X:{style:"{{extra_debug_info_style}}"},W:[{F:"div",oa:""},{F:"span",W:[{F:"span",oa:"{{extra_debug_info}}"}]}]},{F:"div",W:[{F:"div",oa:"Date"},{F:"span",
oa:"{{date}}"}]},{F:"div",X:{style:"{{cotn_and_local_media_style}}"},W:[{F:"div",oa:"COTN / Local Media"},{F:"span",oa:"{{cotn_and_local_media}}"}]},{F:"div",X:{style:"{{release_style}}"},W:[{F:"div",oa:"Player Release"},{F:"span",oa:"{{release_name}}"}]}]}]});b?(b=this.Da("html5-video-info-panel-close"),this.T(b,"click",this.hide)):this.T(this.element,"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.D={};this.j=new BT(300,1,150,b,c);g.M(this,this.j);this.Oa("bandwidth_chart",this.j);this.B=new BT(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.M(this,this.B);this.Oa("live_latency_chart",this.B);this.u=new BT(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.M(this,this.u);this.Oa("buffer_health_chart",this.u);this.C=new BT(300,1,150,d,c);g.M(this,this.C);this.Oa("network_activity_chart",this.C);this.delay=
new g.Xn(this.Ja,500,this);g.M(this,this.delay);this.Va=a};
ET=function(a,b){this.schedule=a;this.policy=b;this.playbackRate=1};
JLa=function(a,b){var c=Math.min(2.5,zF(a.schedule));a=FT(a);return b-c*a};
GT=function(a,b,c,d,e){e=void 0===e?!1:e;a.policy.Ue&&(d=Math.abs(d));d/=a.playbackRate;var f=1/BF(a.schedule);c=Math.max(.9*(d-3),zF(a.schedule)+2048*f)/f*a.policy.Ps/(b+c);c=Math.min(c,d);a.policy.Xk&&e&&(c=Math.max(c,a.policy.Xk));return KLa(a,c,b)};
KLa=function(a,b,c){return Math.ceil(Math.max(Math.max(65536,a.policy.lq*c),Math.min(Math.min(a.policy.eb,31*c),Math.ceil(b*c))))||65536};
FT=function(a){return BF(a.schedule,!a.policy.Pj,a.policy.bq)};
HT=function(a){return FT(a)/a.playbackRate};
IT=function(a,b,c,d,e){this.Ka=a;this.j=b;this.videoTrack=c;this.audioTrack=d;this.policy=e;this.seekCount=this.u=0;this.D=!1;this.B=this.j.isManifestless&&!this.j.uf;this.C=null};
LLa=function(a,b){var c=a.j.index,d=a.u.Na;zD(c,d)||b&&b.Na===d?(a.D=!zD(c,d),a.S=!zD(c,d)):(a.D=!0,a.S=!0)};
NLa=function(a,b,c,d){if(!b.j.Yf())return d=a.policy.Vu&&!!b.B.length&&b.B[0]instanceof JT,0===c||d||KT(b),c;a=LT(b,c);if(!isNaN(a))return a;b.mj();return d&&(d=hE(d.Cg(),c),!isNaN(d))?(MT(b,d+MLa),c):MT(b,c)};
RLa=function(a,b,c,d){if(a.Gg()&&a.u){var e=OLa(a,b,c);if(-1!==e){a.videoTrack.D=!1;a.audioTrack.D=!1;a.B=!0;g.Bh(function(){a.Ka.va("seekreason",{reason:"behindMinSq",tgt:e});PLa(a,e)});
return}}c?a.videoTrack.S=!1:a.audioTrack.S=!1;var f=a.policy.Ku||!a.B;0<=LT(a.videoTrack,a.u)&&0<=LT(a.audioTrack,a.u)&&f?((a.videoTrack.D||a.audioTrack.D)&&a.Ka.va("iterativeSeeking",{status:"done",count:a.seekCount}),a.videoTrack.D=!1,a.audioTrack.D=!1):d&&g.Bh(function(){if(a.B||!a.policy.ob)QLa(a);else{var h=b.startTime,l=b.duration,m=-1!==a.videoTrack.I&&-1!==a.audioTrack.I,n=!a.videoTrack.S&&!a.audioTrack.S;(c?a.videoTrack.D:a.audioTrack.D)&&m&&n&&(a.u>=h&&a.u<h+l+.1?((c?a.videoTrack:a.audioTrack).D=
!1,a.videoTrack.D||a.audioTrack.D||(a.Ka.va("iterativeSeeking",{status:"done",count:a.seekCount}),a.seekCount=0)):8>a.seekCount?(a.seekCount++,a.Ka.va("iterativeSeeking",{status:"inprogress",count:a.seekCount,target:a.u,actual:h,duration:l,isVideo:c}),a.seek(a.u)):(a.Ka.va("iterativeSeeking",{status:"incomplete",count:a.seekCount,target:a.u,actual:h}),a.seekCount=0,a.videoTrack.D=!1,a.audioTrack.D=!1,a.Ka.xa.seekTo(h+.1,{Hs:!0,Ae:"chunkSelectorSynchronizeMedia",xp:!0})))}})};
OLa=function(a,b,c){if(!a.Gg())return-1;c=(c?a.videoTrack:a.audioTrack).j.index;var d=c.getSegmentNumberForTime(a.u);return(zD(c,a.j.df)||b.Na===a.j.df)&&d<a.j.df?a.j.getMinSeekableTime():-1};
PLa=function(a,b){a.B&&-1!==a.videoTrack.I&&-1!==a.audioTrack.I&&(a.B=!1,a.Ka.xa.seekTo(b+.1,{Hs:!0,Ae:"chunkSelectorSynchronize",xp:!0}))};
QLa=function(a){var b=-1!==a.videoTrack.I,c=-1!==a.audioTrack.I;if(!b||!c)if(b=!b&&a.videoTrack.Kg(),c=!c&&a.audioTrack.Kg(),b||c)if(c=b?a.videoTrack:a.audioTrack,b=b?a.audioTrack:a.videoTrack,c.I=c.Kg().info.Na,-1!==b.I){var d=Math.max(b.j.index.getStartTime(b.I),c.j.index.getStartTime(c.I));AE(a.j)&&432E3<Math.abs(d-AE(a.j))&&fya(a.j);g.Bh(function(){return PLa(a,d)});
a.Ka.va("initManifestlessSync",{st:d,a:a.audioTrack.I,v:a.videoTrack.I});a.C&&(a.C.resolve(d+.1),a.C=null)}};
SLa=function(a){this.j=a;this.S=this.Ba=this.I=this.Aa=this.B=this.C=this.J=this.ya=this.ea=this.qa=this.Z=0;this.ticks={}};
TLa=function(a){a.Z||(a.Z=(0,g.T)(),VN("mb_s",a.Z,a.j))};
NT=function(a,b,c,d,e,f){g.az.call(this);this.Ka=a;this.S=b;this.policy=c;this.I=d;this.Ba=e;this.Aa=this.j=null;this.B=this.D=NaN;this.J=0;this.ea=NaN;this.C=null;this.Z=new Map;this.qa="";this.ya=0;this.u=f?1:0};
OT=function(a,b,c){b.startSecs+=isNaN(a.J)?0:a.J;a=a.S;a.J.push(b);a.ma("cuepointsadded",c)};
ULa=function(a){return 1===a.u||2===a.u||3===a.u};
VLa=function(a,b,c){return(0>c||c===a.B)&&!isNaN(a.D)?a.D:b};
XLa=function(a,b,c,d){WLa(a.I,d,c,b);WLa(a.Ba,d,c,b);CE(a.S,d,!0);CE(a.S,d,!1);a.va("sdai",{rollbk2_seg:d,rbt:c.toFixed(3),lt:b.toFixed(3)})};
YLa=function(a,b){if(a.j){var c=a.j.qf.durationSecs-(b.startTime+a.J-a.j.qf.startSecs);0>=c||(c=new iA(a.j.qf.startSecs-(isNaN(a.J)?0:a.J),c,a.j.qf.context,a.j.qf.identifier,"stop",a.j.qf.j+1E3*b.duration),a.va("cuepointdiscontinuity",{segNum:b.Na}),OT(a,c,b.Na))}};
PT=function(a,b,c){a.u!==b&&(a.va("sdai",{setsst:b,old:a.u,r:c}),a.u=b)};
QT=function(a,b,c,d){(void 0===d?0:d)?PT(a,1,"sk2h"):0<b&&5<=Math.abs(b-c)&&4===a.u&&PT(a,5,"sk2t."+b.toFixed(2)+";ct."+c.toFixed(2))};
RT=function(a,b,c){this.audio=a;this.video=b;this.reason=c};
ZLa=function(a,b,c,d,e,f){f=void 0===f?[]:f;this.Ka=a;this.ya=b;this.policy=c;this.C=d;this.I=e;this.ob=f;this.logger=new g.lT("dash/abr");this.B=EH;this.u=this.J=null;this.Z=-1;this.Qa=!1;this.nextVideo=this.j=null;this.D=[];this.Ia={};this.videoIndex=0;this.eb=this.ea=this.S=!1;this.Ba=0;this.Ya=new Set;this.kb=!1;this.Aa=new Map;this.Wa=0;this.yb=!1;this.La=null};
dMa=function(a,b,c){ST(a,b);$La(a,c);a.J=a.j;aMa(a);bMa(a);a.u=a.nextVideo;a.J=a.j;return cMa(a)};
fMa=function(a,b){if(eMa(a,b))return null;if("m"===b.reason&&b.isLocked())return ST(a,b),a.videoIndex=a.D.length-1,TT(a),UT(a),a.ea=a.ea||a.u!==a.nextVideo,a.u=a.nextVideo,new RT(a.j,a.u,b.reason);"r"===b.reason&&(a.Z=-1);ST(a,b);UT(a);if("r"===b.reason&&a.nextVideo===a.u)return new RT(a.j,a.nextVideo,b.reason);a.u&&a.nextVideo&&VT(a,a.u.info)<VT(a,a.nextVideo.info)&&(b=a.B.reason,a.S=a.S||"r"===b||"u"===b||"v"===b);return null};
WT=function(a,b,c){a.Wa+=1;if(void 0===c?0:c)a.yb=!0;c=6E4*Math.pow(2,a.Wa);a.Aa.set(b.info.id,(0,g.T)()+c);a.Z=-1;ST(a,a.B)};
XT=function(a){if(a.Aa.size){for(var b=(0,g.T)(),c=g.r(a.Aa.values()),d=c.next();!d.done;d=c.next())if(d.value>b)return!0;a.Aa.clear()}return!1};
gMa=function(a,b){return new RT(a.J,a.u,b||a.B.reason)};
ZT=function(a){return a.B.isLocked()};
cMa=function(a){a.Qa?a.Qa=!1:a.Z=(0,g.T)();a.S=!1;return new RT(a.J,a.u,a.B.reason)};
hMa=function(a,b){var c={};b=g.r(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.video){var e=d.video.j,f=c[e],h=f&&SD(f)&&f.video.j>a.policy.S,l=e<=a.policy.S?SD(d):DB(d);if(!f||h||l)c[e]=d}return c};
ST=function(a,b){a.B=b;var c=a.I.videoInfos;if(!ZT(a)){var d=(0,g.T)();c=g.um(c,function(q){if(q.Tb>this.policy.Tb)return!1;var u=this.C.j[q.id],w=u.info.j;return this.policy.Mu&&this.Ya.has(w)||this.Aa.get(q.id)>d||4<u.u.u||4<u.J?!1:!0},a);
a.yb&&XT(a)&&(c=g.um(c,function(q){return 854>=q.video.width&&480>=q.video.height}))}c.length||(c=a.I.videoInfos);
var e=g.um(c,b.C,b);if(ZT(a)&&a.qa){var f=g.Pb(c,function(q){return q.id===a.qa});
f?e=[f]:delete a.qa}f="m"===b.reason||"s"===b.reason;a.policy.Oj&&AT&&g.Xv&&(!f||1080>b.j)&&(e=e.filter(function(q){return q.video&&(!q.u||q.u.powerEfficient)}));
if(0<e.length)if(mE()){var h=hMa(a,e);e=e.filter(function(q){return!!q&&!!q.video&&q.j===h[q.video.j].j})}else{var l,m,n=null==(l=e[0])?void 0:null==(m=l.video)?void 0:m.j;
if(n){b=e.filter(function(q){return!!q&&!!q.video&&q.video.j===n});
var p=hMa(a,b)[n].j;e=e.filter(function(q){return!!q&&!!q.video&&q.j===p})}}e.length||(e=[c[0]]);
e.sort(function(q,u){return VT(a,q)-VT(a,u)});
c={};for(b=1;b<e.length;c={aB:c.aB,ZA:c.ZA},b++)c.ZA=e[b-1],c.aB=e[b],c.ZA.video.width>c.aB.video.width?(g.Wb(e,b),b--):VT(a,c.ZA)*a.policy.u>VT(a,c.aB)&&(g.Wb(e,b-1),b--);c=e[e.length-1];a.kb=!!a.u&&!!a.u.info&&a.u.info.j!==c.j;a.D=e;BHa(a.policy,c)};
$La=function(a,b){b?a.j=a.C.j[b]:(b=g.Pb(a.I.j,function(c){return!!c.Nc&&c.Nc.isDefault}),a.policy.mm&&!b&&(b=g.Pb(a.I.j,function(c){return c.audio.j})),b=b||a.I.j[0],a.j=a.C.j[b.id]);
TT(a)};
iMa=function(a,b){for(var c=0;c+1<a.D.length&&"tiny"===a.D[c].video.quality;)c++;var d=HT(a.ya)/a.policy.u;return VT(a,b.info)+VT(a,a.D[c])>d};
TT=function(a){if(!a.j||!a.policy.j&&!a.j.info.Nc){var b=a.I.j;a.j&&a.policy.mm&&(b=b.filter(function(e){return e.audio.j===a.j.info.audio.j}),b.length||(b=a.I.j));
a.j=a.C.j[b[0].id];if(1<b.length){var c=!1;if(a.policy.kb){if(c=!0,a.policy.nm){var d=Lb(b,function(e){return"250"===e.itag});
0<=d&&(a.j=a.C.j[b[d].id],c=iMa(a,a.j))}}else c=a.B.isLocked()?240>a.B.j:iMa(a,a.j);c&&(a.j=a.C.j[g.Jb(b).id])}}};
UT=function(a){a.policy.Mi&&(a.La=a.La||new g.Xn(function(){a.policy.Mi&&a.u&&!XT(a)&&1===Math.floor(10*Math.random())?(WT(a,a.u),a.S=!0):a.La.start()},6E4),g.Yn(a.La));
if(!a.nextVideo||!a.policy.j)if(ZT(a))a.nextVideo=360>=a.B.j?a.C.j[a.D[0].id]:a.C.j[g.Jb(a.D).id];else{for(var b=Math.min(a.videoIndex,a.D.length-1),c=HT(a.ya),d=VT(a,a.j.info),e=c/a.policy.B-d;0<b&&!(VT(a,a.D[b])<=e);b--);for(var f=c/a.policy.u-d;b<a.D.length-1&&!(VT(a,a.D[b+1])>=f);b++);a.nextVideo=a.C.j[a.D[b].id];a.videoIndex!==b&&a.logger.info(function(){var h=a.B;return"Adapt to: "+yxa(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", bandwidth to downgrade: "+e.toFixed(0)+", bandwidth to upgrade: "+
f.toFixed(0)+", constraint: ["+(h.u+"-"+h.j+", override: "+(h.B+", reason: "+h.reason+"]"))});
a.videoIndex=b}};
aMa=function(a){var b=a.policy.B,c=HT(a.ya),d=c/b-VT(a,a.j.info);b=g.Rb(a.D,function(e){return VT(this,e)<d},a);
0>b&&(b=0);a.videoIndex=b;a.nextVideo=a.C.j[a.D[b].id];a.logger.info(function(){return"Initial selected fmt: "+yxa(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", max video byterate: "+d.toFixed(0)})};
bMa=function(a){if(a.ob.length){var b=a.ob,c=function(d,e){if("f"===d.info.j||b.includes(ZC(d,a.C.vf,a.Ka.Tf(),a.policy.lc)))return d;for(var f={},h=0;h<e.length;f={dB:f.dB,fB:f.fB},h++){var l=a.C.j[e[h].id],m=ZC(l,a.C.vf,a.Ka.Tf(),a.policy.lc);if(b.includes(m)){m=d.info.j;var n=l.info.j;if(m===n||mE()){if(d.info.B!==l.info.B)return a.Ka.va("ombifa",{mismatch:"xtag",f:d.info.id,t:l.info.id}),d;f.dB=d.info.itag;f.fB=l.info.itag;a.Ka.va("ombifa",{f:f.dB,t:f.fB});a.logger.info(function(p){return function(){return"Initial format selection changed from "+
p.dB+" to "+p.fB+" based on prefetched media."}}(f));
a.Qa=!0;return l}a.Ka.va("ombifa",{mismatch:"efficient",fc:m,tc:n})}}a.Ka.va("ombifa",{mismatch:"unselectable",fmts:b.join(".")});return d};
a.nextVideo=c(a.nextVideo,a.I.videoInfos);a.j=c(a.j,a.I.j)}};
VT=function(a,b){if(!a.Ia[b.id]){var c=a.C.j[b.id].index.getLocalMaxByterate(a.Ba,15);c=b.tv&&a.u&&a.u.index.isLoaded()?c||b.tv:c||b.Tb;a.Ia[b.id]=c}c=a.Ia[b.id];a.policy.Qd&&b.video&&b.video.j>a.policy.Qd&&(c*=1.5);return c};
jMa=function(a,b){a=Dca(a.C.j,function(c){return c.info.itag===b});
if(!a)throw Error("Itag "+b+" from server not known.");return a};
kMa=function(a){var b=[];if("m"===a.B.reason||"s"===a.B.reason)return b;if(Pxa(a.C)){for(var c=Math.max(0,a.videoIndex-2);c<a.videoIndex&&c<a.D.length;c++)b.push(a.D[c].itag);b.reverse()}return b};
eMa=function(a,b){var c;return a.B.equals(b)&&(!a.qa||!ZT(a)||(null==(c=a.nextVideo)?void 0:c.info.id)===a.qa)};
lMa=function(a,b){this.u=(new TextEncoder).encode(a);this.j=(new TextEncoder).encode(b)};
yAa=function(a,b){var c,d,e;return g.z(function(f){if(1==f.j){if(!b)return f.return(b);c=$T.Rq("woe");d=new g.kF(a.u);return g.x(f,d.encrypt(b,a.j),2)}e=f.u;$T.Lp(c,Math.ceil(b.byteLength/16));return f.return(e)})};
DAa=function(a,b){var c,d,e;return g.z(function(f){if(1==f.j){if(!b)return f.return(b);c=$T.Rq("wod");d=new g.kF(a.u);return g.x(f,d.decrypt(b,a.j),2)}e=f.u;$T.Lp(c,Math.ceil(b.byteLength/16));return f.return(e)})};
aU=function(a,b,c){this.policy=a;this.j=b;this.ya=c;this.B=this.u=0;this.Pe=null;this.ea=new Set;this.Z=[];this.indexRange=this.initRange=null;this.S=new SJ;this.qa=this.Aa=!1;a:{if(this.policy.Ne&&this.policy.Ou){b={};c=g.r(this.policy.Ne);for(var d=c.next();!d.done;b={bB:b.bB,cB:b.cB},d=c.next())if(d=g.lu(d.value),b.bB=+d.clen,b.cB=+d.csz,0<b.bB&&0<b.cB&&this.policy.j===d.docid&&this.j.info.id===d.fmtid&&this.j.info.lastModified===+d.lmt){c={};b=(c.clen=b.bB,c.csz=b.cB,c.ck=d.ck,c.civ=d.civ,c);
break a}}b=void 0}b?(this.chunkSize=b.csz,this.C=Math.floor(b.clen/b.csz),this.J=b.ck,this.I=b.civ):(this.chunkSize=a.Nu,this.C=0,this.J=g.vz(16),this.I=g.vz(16));this.D=new Uint8Array(this.chunkSize);this.J&&this.I&&(this.crypto=new lMa(this.J,this.I))};
bU=function(a){return!!a.Pe&&dD(a.Pe)};
oMa=function(a,b){if(!bU(a)&&!a.isDisposed()){if(!(a.Aa||(a.Aa=!0,0<a.C))){var c=cU(a);c=vH(a.policy.j,a.j.info,dU(a),c,a.policy.Qa,a.policy.Lb);eU(a,c)}if(1===b.info.type){if(a.Pe){fU(a,Error("Woffle: Expect INIT slices to always start us off"));return}a.initRange=bD(0,b.j.totalLength)}else if(2===b.info.type)a.Pe&&1===a.Pe.type||fU(a,Error("Woffle: Index before init")),a.indexRange=bD(a.initRange.end+1,b.j.totalLength);else if(3===b.info.type){if(!a.Pe){fU(a,Error("Woffle: Expect MEDIA slices to always have lastSlice"));
return}if(3===a.Pe.type&&!gD(a.Pe,b.info)&&(a.Z=[],b.info.Na!==hD(a.Pe)||0!==b.info.Kb))return;if(b.info.Ge){c=g.r(a.Z);for(var d=c.next();!d.done;d=c.next())mMa(a,d.value);a.Z=[]}else{a.Z.push(b);a.Pe=b.info;return}}else{fU(a,Error("Woffle: Unexpected slice type"));return}a.Pe=b.info;mMa(a,b);nMa(a)}};
mMa=function(a,b){var c=0,d=XB(b.j);if(a.B<a.C){c=a.C*a.chunkSize;var e,f=((null==(e=b.info.range)?void 0:e.start)||0)+b.info.Kb;c-=f;if(c>=d.length)return;if(0>c)throw Error("Missing data");a.B=a.C;a.u=0}for(e={};c<d.length;){e.Ax=Math.min(d.length-c,a.D.byteLength-a.u);f=new Uint8Array(d.buffer,d.byteOffset+c,e.Ax);a.D.set(f,a.u);a.u+=e.Ax;c+=e.Ax;if(a.u===a.D.length){if(b.info===a.Pe&&bU(a)&&c===d.length)break;f=cU(a);f=vH(a.policy.j,a.j.info,dU(a),f,a.policy.Qa,a.policy.Lb,a.B,a.D,a.crypto);a.policy.Rb&&
a.ea.add(f);eU(a,f);a.isDisposed()||(f=cU(a),a.ya(dU(a),void 0!==f?(f.downloadedEndTime||0)*f.averageByteRate:f.maxKnownEndTime*f.averageByteRate,f.maxKnownEndTime*f.averageByteRate));a.D=new Uint8Array(a.chunkSize);a.u=0;a.B+=1}e={Ax:e.Ax}}};
nMa=function(a){if(bU(a))if(a.Pe&&a.indexRange)if(a.u){var b=new Uint8Array(a.D.buffer,0,a.u),c=pMa(a),d=a.policy.j;if(a.policy.Rb)Promise.all(a.ea).then(function(){var f=vH(d,a.Pe.j.info,dU(a,!0),c,a.policy.Qa,a.policy.Lb,a.B,b,a.crypto);eU(a,f,!0)});
else{var e=vH(a.policy.j,a.Pe.j.info,dU(a,!0),c,a.policy.Qa,a.policy.Lb,a.B,b,a.crypto);eU(a,e,!0)}}else fU(a,new gU("Woffle: Expect always re-mark currentChunkOffset at EOS"));else fU(a,new gU("Woffle: Expect at EOS to always have lastSlice or indexRange"))};
cU=function(a){return{downloadedEndTime:Math.round(a.Pe?a.Pe.B:0),maxKnownEndTime:Math.round(a.j.index.getMaxKnownEndTime()),averageByteRate:Math.round(a.j.info.tv)}};
pMa=function(a){return{downloadedEndTime:-1,maxKnownEndTime:Math.round(a.j.index.getMaxKnownEndTime()),averageByteRate:Math.round(a.j.info.tv)}};
dU=function(a,b){void 0===b||!b||a.indexRange&&a.initRange&&a.Pe||fU(a,new gU("Woffle: Expect isFinal to always have indexRange and initRange and lastSlice"));b={lmt:a.j.info.lastModified,docid:a.policy.j,fmtid:a.j.info.id,type:a.j.info.mimeType.split(";")[0],csz:a.chunkSize,clen:a.B*a.chunkSize+a.u};a.crypto&&(b.ck=a.J,b.civ=a.I);var c="local://localhost/videoplayback?"+iu(b),d,e;b={itag:+a.j.info.itag,mimeType:a.j.info.mimeType,bitrate:8*a.j.info.Tb,lastModified:String(a.j.info.lastModified),initRange:null==
(d=a.initRange)?void 0:Nwa(d),indexRange:null==(e=a.indexRange)?void 0:Nwa(e),url:c};if(d=a.j.info.B)b.xtags=d;if(d=a.j.info.video)if(b.quality=d.quality,b.qualityLabel=d.qualityLabel,b.width=d.width,b.height=d.height,d=d.fps)b.fps=d;if(a=a.j.info.audio){if(d=a.sampleRate)b.audioSampleRate=String(d);if(a=a.numChannels)b.audioChannels=a}return b};
eU=function(a,b,c){c=void 0===c?!1:c;b.then(function(d){a.policy.Rb&&a.ea.delete(b);(c||4===d)&&a.S.resolve(d)},function(d){a.S.reject(d)})};
fU=function(a,b){4!==g.qH(a.policy.j)&&(g.rH(a.policy.j,4),g.pz(b),a.S.reject(new gU(b.message)))};
gU=function(a,b){a=Error.call(this,a);this.message=a.message;"stack"in a&&(this.stack=a.stack);this.j=void 0===b?!1:b};
qMa=function(a){a=g.DC(a,1886614376);for(var b=g.r(a),c=b.next();!c.done;c=b.next());return g.Ok(a,function(d){return new Uint8Array(d.data.buffer,d.offset+d.data.byteOffset,d.size)})};
rMa=function(a){var b=Pk(a,function(e,f){return e+f.length},0);
b=new Uint8Array(b);var c=0;a=g.r(a);for(var d=a.next();!d.done;d=a.next())d=d.value,b.set(d,c),c+=d.length;return b};
sMa=function(a,b,c,d,e,f){this.ids=a;this.j=b;this.u=c;this.C=d;this.B=e;this.Vx=f};
hU=function(a,b,c){this.initData=a;this.contentType=b;this.isPrefetch=c;this.j=this.cryptoPeriodIndex=NaN;this.u=[];this.cf=!1;if("webm"===(null==b?void 0:b.toLowerCase())||16===a.length)this.cf=!0};
uMa=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{b:{var m=void 0,n=b.subarray(c+f,c+f+l);f=tMa;if(iU.length){var p=iU.pop();Iba(p);p.j.init(n,void 0,void 0,void 0);m=p}else m=new me(n);try{var q=Ee(f);var u=$ba(new q.Yr,m,q);break b}finally{m.j.clear(),m.C=-1,m.u=-1,100>iU.length&&iU.push(m)}u=
void 0}m=u;if(null!==m){var w=m;break a}}catch(y){}}c+=e}w=null}catch(y){w=null}}if(null!=w)for(b=g.nd(w,7),null==b||a.cf||(a.cryptoPeriodIndex=b),b=g.nd(w,10),null!=b&&0<b&&!a.cf&&(a.j=b),w=g.r(tba(w,2)),b=w.next();!b.done;b=w.next())a.u.push(g.xc(Uc(b.value),4))};
vMa=function(a){return isNaN(a.cryptoPeriodIndex)?g.xc(a.initData):""+a.cryptoPeriodIndex};
jU=function(a,b,c){var d=void 0===c?{}:c;c=void 0===d.videoDuration?0:d.videoDuration;var e=void 0===d.hA?void 0:d.hA;d=void 0===d.WC?!1:d.WC;this.videoId=a;this.status=b;this.videoDuration=c;this.hA=e;this.WC=d};
wMa=function(a,b,c,d,e){this.videoId=a;this.formatStream=b;this.u=c;this.bytesDownloaded=d;this.j=e};
kU=function(a){this.j=a;this.offset=0};
lU=function(a){if(a.offset>=a.j.totalLength)throw Error();return YB(a.j,a.offset++)};
xMa=function(a,b){b=void 0===b?!1:b;var c=lU(a);if(1===c){b=-1;for(c=0;7>c;c++){var d=lU(a);-1===b&&255!==d&&(b=0);-1<b&&(b=256*b+d)}return b}d=128;for(var e=0;6>e&&d>c;e++)c=256*c+lU(a),d*=128;return b?c:c-d};
oU=function(a,b,c){var d=this;this.Ka=a;this.policy=b;this.I=c;this.logger=new g.lT("dash");this.u=[];this.j=null;this.qa=-1;this.S=0;this.ya=NaN;this.Z=0;this.B=NaN;this.Ia=this.La=0;this.Ya=-1;this.Ba=this.C=this.D=this.Aa=null;this.eb=this.Wa=NaN;this.J=this.ea=this.Qa=this.kb=null;this.ob=!1;this.timestampOffset=0;if(this.policy.j){var e=this.I,f=this.policy.j;this.J=new aU(this.policy,e,function(h,l,m){mU(a,new jU(d.policy.j,2,{hA:new wMa(f,h,e.info,l,m)}))});
this.J.S.promise.then(function(h){d.J=null;1===h&&mU(a,new jU(d.policy.j,h))},function(h){var l=(h.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_");
h instanceof gU&&!h.j?(d.logger.info(function(){return"Assertion failed: "+l}),nU(d),mU(a,new jU(d.policy.j,4))):(d.logger.info(function(){return"Failed to write to disk: "+l}),d.Ka.va("dldbwerr",{em:l}),nU(d),mU(a,new jU(d.policy.j,4,{WC:!0})))})}};
yMa=function(a){return a.u.length?a.u[0]:null};
pU=function(a){return a.u.length?a.u[a.u.length-1]:null};
CMa=function(a,b,c){if(a.C){var d=a.C.Kb+a.C.u;if(0<c.info.Kb)if(c.info.Na===a.C.Na&&c.info.Kb<d){if(c.info.Kb+c.info.u<=d)return;c=nxa(c,d-c.info.Kb)[1]}else if(0<=c.info.Na&&0<=a.C.Na&&!gD(a.C,c.info))throw new g.Pv("improper_continuation",mD(a.C),mD(c.info));d=a.C;var e=c.info;(d.Na!==e.Na&&e.Na!==d.Na+1||d.type!==e.type?0:gD(d,e)||(Hg(d.C,e.C)&&d.Na===e.Na?0:Qwa(d,e)))||qU(a,"d")}else if(0<c.info.Kb)throw new g.Pv("continuation_of_null",mD(c.info));a.C=c.info;a.I=c.info.j;d=b.aI();if(0===c.info.Kb){if(a.j)throw new g.Pv("slice_not_fully_processed",
mD(a.j.info),mD(c.info));rU(a);a.La=d}else{if(a.policy.Lu&&a.La&&d&&a.La!==d)throw a=new g.Pv("lmt_mismatch",c.info.Na,a.La,d),a.level="WARNING",a;!c.info.j.hn()&&a.D&&(d=c.info,e=a.D.j,d.D="updateWithEmsg",d.Na=e)}if(a.j){d=oxa(a.j,c);if(!d)throw new g.Pv("failed_to_merge",mD(a.j.info),mD(c.info));a.j=d}else a.j=c;a:{c=g.GD(a.j.info.j.info);if(3!==a.j.info.type){if(!a.j.info.Ge)break a;6===a.j.info.type?zMa(a,b,a.j):sU(a,a.j);a.j=null}for(;a.j;){d=a.j.j.totalLength;if(0>=a.qa&&0===a.S){var f=a.j.j,
h=-1;e=-1;if(c){for(var l=0;l+8<f.totalLength;){var m=iwa(f,l),n=iwa(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 kU(f);for(m=l=!1;;){n=f.getOffset();var p=f;try{var q=xMa(p,!0),u=xMa(p,!1);var w=q;var y=u}catch(B){y=w=-1}p=w;var A=y;if(!(0<p))break;if(408125543!==p)if(524531317===p)l=!0,0<=A&&(e=f.getOffset()+A,m=!0);else{if(l&&(160===p||163===p)&&(0>h&&(h=n),m))break;163===p&&(h=Math.max(0,h),e=f.getOffset()+A);if(160===p){0>h&&(e=h=f.getOffset()+
A);break}f.skip(A)}}0>h&&(e=-1)}if(0>h)break;a.qa=h;a.S=e-h}if(a.qa>d)break;a.qa?(d=AMa(a,a.qa),d.D&&BMa(a,d),zMa(a,b,d),tU(a,d),a.qa=0):a.S&&(d=AMa(a,0>a.S?Infinity:a.S),a.S-=d.j.totalLength,tU(a,d))}}a.j&&a.j.info.Ge&&(tU(a,a.j),a.j=null)};
sU=function(a,b){!b.info.j.hn()&&0===b.info.Kb&&(g.GD(b.info.j.info)||b.info.j.info.cf())&&uxa(b);if(1===b.info.type)try{BMa(a,b),DMa(a,b)}catch(d){g.oz(d);var c=iD(b.info);c.hms="1";a.Ka.handleError("fmt.unparseable",c||{},1)}b.info.j.lI(b);a.J&&oMa(a.J,b)};
nU=function(a){var b;null==(b=a.J)||b.dispose();a.J=null};
EMa=function(a){var b=a.u.reduce(function(c,d){return c+d.j.totalLength},0);
a.j&&(b+=a.j.j.totalLength);return b};
uU=function(a){return g.Ok(a.u,function(b){return b.info})};
AMa=function(a,b){var c=a.j;b=Math.min(b,c.j.totalLength);if(b===c.j.totalLength)return a.j=null,c;c=nxa(c,b);a.j=c[1];return c[0]};
BMa=function(a,b){var c=FD(b);if(RD(b.info.j.info)&&"bt2020"===b.info.j.info.video.primaries){var d=new EC(c);GC(d,[408125543,374648427,174,224,21936,21937])&&(d=d.start+d.pos,129===c.getUint8(d)&&1===c.getUint8(d+1)&&c.setUint8(d+1,9))}d=b.info.j.info;DB(d)&&!RD(d)&&(d=FD(b),(new EC(d)).hw(),KC([408125543,374648427,174,224],21936,d));b.info.j.info.isVideo()&&(d=b.info.j,d.info&&d.info.video&&"MESH"===d.info.video.projectionType&&!d.B&&(g.GD(d.info)?d.B=twa(c):d.info.cf()&&(d.B=Awa(c))));b.info.j.info.cf()&&
b.info.isVideo()&&(c=FD(b),(new EC(c)).hw(),KC([408125543,374648427,174,224],30320,c)&&KC([408125543,374648427,174,224],21432,c));if(a.policy.Yu&&b.info.j.info.cf()){c=FD(b);var e=new EC(c);if(GC(e,[408125543,374648427,174,29637])){d=JC(e,!0);e=e.start+e.pos;for(var f=0;f<d-1;f++)c.setUint8(e+f,0);c.setUint8(e+d-1,1)}}if(a.cn()&&g.GD(b.info.j.info)){d=FD(b);c=g.uC(d,0,1701606260);f=g.uC(d,0,1836476516);if(c&&f){c.skip(2);var h=kC(c),l=mC(c);d=[];e=[];var m=[],n=[];if(h)for(h=0;h<l;++h)d.push(nC(c)),
e.push(nC(c)),m.push(kC(c)),n.push(kC(c));else for(h=0;h<l;++h)d.push(lC(c)),e.push(lC(c)),m.push(kC(c)),n.push(kC(c));c=g.vC(f);c=new qwa(e[0]/c,d[0]/c)}else c=null;if(c){if(g.GD(b.info.j.info))for(d=FD(b),e=g.uC(d,0,1701082227);e;)e.markAsSkip(),e=g.uC(d,e.offset+e.size,1701082227);a.ob=!0;b.info.j.C=c}}b.info.j.hn()||b.info.j.j||b.info.j.indexRange||vxa(b)};
zMa=function(a,b,c){if(c.info.j.hn()){if(a.ob&&FMa(c)&&(b=FD(c),b=g.uC(b,0,1953658222))){b.skip(1);var d=jC(b)<<16|kC(b),e=d&1,f=d&4;if(d&256){var h=d&512,l=d&1024;d&=2048;var m=mC(b);2>m||(e&&b.skip(4),f&&b.skip(4),e=mC(b),b.skip((m-1)*(4+(h?4:0)+(l?4:0)+(d?4:0))-4),b.data.setUint32(b.offset+b.j,e))}}if(b=a.Aa&&!!a.Aa.I.C)if(b=c.info.isVideo())b=txa(c),h=a.Aa,vU?(l=1/b,b=wU(a,b)>=wU(h)+l):b=a.getDuration()>=h.getDuration(),b=!b;b&&FMa(c)&&(b=a.Aa,vU?(l=txa(c),h=1/l,l=wU(a,l),b=wU(b)+h-l):b=b.getDuration()-
a.getDuration(),b=1+b/c.info.duration,swa(FD(c),b))}else{h=!1;a.D||(uxa(c),c.u&&(a.D=c.u,h=!0,e=c.info,f=c.u.j,e.D="updateWithEmsg",e.Na=f,e=c.u,e.C&&(a.I.index.u=!e.C),e=c.info.j.info,f=FD(c),g.GD(e)?CC(f,1701671783):e.cf()&&KC([408125543],307544935,f)));a:{if(f=e=HD(c,a.policy.Ya))f=c.info.j.info.cf()&&160===YB(c.j,0);if(f)a.Z+=e,a.B=a.policy.Kd?a.B+e:NaN;else{if(a.policy.Zt){if(f=d=a.Ka.xp(pxa(c),1),0<=a.B&&6!==c.info.type){if(a.policy.Kd&&isNaN(a.Wa)){g.pz(new g.Pv("Missing duration while processing previous chunk",
mD(c.info)));qU(a,"m");break a}var n=d-a.B;m=n-a.Ia;var p=c.info.Na,q=a.Ba?a.Ba.Na:-1,u=a.eb,w=a.Wa;var y=a.policy.yg&&n>a.policy.yg;var A=a.policy.xg&&Math.abs(m)>a.policy.xg;if(1E-4<Math.abs(m)){var B,D=null==(B=a.D)?void 0:sC(B);B={audio:""+ +a.cn(),sq:p.toFixed(),sliceStart:d,lastSq:q.toFixed(),lastSliceStart:u,lastSliceDuration:w,totalDrift:(1E3*n).toFixed(),segDrift:(1E3*m).toFixed(),skipRewrite:""+(+y||A)};if(null==D?0:D.length)B.adCpn=D[0];a.Ka.handleError("qoe.avsync",B);a.Ya=p}B=0;y||A||
(f=a.B);a.Aa&&!a.cn()&&g.GD(c.info.j.info)&&(A=a.Aa,y=A.Ya,A=A.Ia,D=.02<Math.abs(A-n),(p===y||p>y&&p>a.Ya)&&D&&(p=Math.max(.95,Math.min(1.05,(e-(A-n))/e)),swa(FD(c),p),p=HD(c,a.policy.Ya),B=e-p,e=p));a.Ia=n+B;a.policy.Z&&(m||B)&&(n=null==(l=a.D)?void 0:sC(l),a.Ka.va("discontinuityRewrite",{adCpn:(null==n?0:n.length)?n.join("."):"",itag:c.info.j.info.itag,sq:c.info.Na,originalStartTime:d,rewrittenStartTime:f,startTimeAdjustment:f-d,segDrift:(1E3*m).toFixed(),originalDuration:e+B,rewrittenDuration:e,
durationAdjustment:B}))}}else f=isNaN(a.B)?c.info.startTime:a.B;qxa(c,f)?(isNaN(a.ya)&&(a.ya=f),a.Z+=e,a.B=f+e):(l=iD(c.info),l.smst="1",a.Ka.handleError("fmt.unparseable",l||{},1))}}a.Ba=c.info;a.Wa=sxa(c);0<=c.C&&(a.eb=c.C);if(h&&a.D){h=GMa(a,!0);nD(c.info,h);a.j&&nD(a.j.info,h);b=g.r(b.info.j);for(l=b.next();!l.done;l=b.next())nD(l.value,h);(c.info.Ge||a.j&&a.j.info.Ge)&&6!==c.info.type||(a.ea=h,b=a.Ka,b.j.isManifestless&&HMa(b,h,null,!!a.I.info.video),a.policy.Ce||IMa(a))}}DMa(a,c);a.timestampOffset&&
rxa(c,a.timestampOffset)};
tU=function(a,b){if(b.info.Ge){a.kb=b.info;if(a.D){var c=a.D,d=GMa(a,!1),e=null;if(a.D.mz()){e=c.data["Stitched-Video-Id"]?c.data["Stitched-Video-Id"].split(",").slice(0,-1):[];var f=sC(c),h=[];if(c.data["Stitched-Video-Duration-Us"])for(var l=g.r(c.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),m=l.next();!m.done;m=l.next())h.push((Number(m.value)||0)/1E6);l=[];if(c.data["Stitched-Video-Start-Frame-Index"]){m=g.r(c.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var n=
m.next();!n.done;n=m.next())l.push(Number(n.value)||0)}l=[];if(c.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(m=g.r(c.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),n=m.next();!n.done;n=m.next())l.push((Number(n.value)||0)/1E6);e=new sMa(e,f,h,l,g.owa(c),g.pwa(c))}a.Ka.LJ(a.I,d,e);a.ea||a.policy.Ce||IMa(a);a.ea=null}rU(a)}a.J&&oMa(a.J,b);if(c=pU(a))if(c=oxa(c,b,a.policy.Nk)){a.u.pop();a.u.push(c);return}a.u.push(b)};
rU=function(a){a.j=null;a.qa=-1;a.S=0;a.D=null;a.ya=NaN;a.Z=0;a.ea=null};
qU=function(a,b){b={rst4disc:b,cd:a.Ia.toFixed(3),sq:a.Ba?a.Ba.Na:-1};a.B=NaN;a.Ia=0;a.Ya=-1;a.Ba=null;a.eb=NaN;a.Wa=NaN;a.Qa=null;a.Ka.va("mdstm",b)};
DMa=function(a,b){if(a.I.info.yd){if(b.info.j.info.cf()){var c=new EC(FD(b));if(GC(c,[408125543,374648427,174,28032,25152,20533,18402])){var d=JC(c,!0);c=16!==d?null:OC(c,d)}else c=null;d="webm"}else b.info.J=qMa(FD(b)),c=rMa(b.info.J),d="cenc";c&&c.length&&(c=new hU(c,d),c.cf=b.info.j.info.cf(),b.u&&b.u.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.u.cryptoPeriodIndex),b.u&&b.u.B&&(c.j=b.u.B),a.Ka.zw(c))}};
IMa=function(a){var b=a.D,c=mwa(b);c&&(c.startSecs+=a.ya,a.Ka.KJ(a.I,c,b.j,b.mz()))};
GMa=function(a,b){var c,d=a.D;if(c=mwa(d))c.startSecs+=a.ya;return new QB(d.j,a.ya,b?d.Fk:a.Z,d.ingestionTime,"sq/"+d.j,void 0,void 0,b,c)};
FMa=function(a){return a.info.j.hn()&&a.info.Na===a.info.j.index.getLastSegmentNumber()};
wU=function(a,b){b=(b=void 0===b?0:b)?Math.round(a.timestampOffset*b)/b:a.timestampOffset;a.I.C&&b&&(b+=a.I.C.j);return b+a.getDuration()};
JMa=function(a,b){0>b||(a.u.forEach(function(c){rxa(c,b)}),a.timestampOffset=b)};
xU=function(a,b){this.info=a;this.callback=b;this.state=1;this.SC=!1;this.So=0;this.xt=!1;this.Le=this.lastError=null};
KMa=function(a){return g.Td(a.info.j,function(b){return 3===b.type})};
yU=function(a,b,c){this.policy=a;this.j=b;this.u=0;this.C=null;this.yf=[];this.D=null;(this.length=c?c:0)?1!==this.j.length||this.j[0].u||(this.j[0].u=this.length):1===this.j.length||g.Td(this.j,function(d){return!!d.range})};
zU=function(a,b,c){a.policy.Xu&&a.length&&!c&&!a.B&&(a.B=new Uint8Array(a.length));if(a.B&&a.B.byteLength>=b.totalLength){var d=b,e=a.B;if(!(e.byteLength<d.totalLength)){for(var f=0,h=0;h<d.j.length;h++)e.set(d.j[h],f),f+=d.j[h].length;d.j=[e.subarray(0,f)];VB(d)}a.B=a.B.subarray(b.totalLength)}a.C&&(TB(a.C,b),b=a.C,a.C=null);e=d=!1;h=f=0;for(var l=g.r(a.j),m=l.next();!m.done;m=l.next())if(m=m.value,m.range&&f+m.u<=a.u)f+=m.u;else{if(eD(m)&&!c&&a.u+b.totalLength-h<f+m.u){a.C=b.split(h).ap;break}var n=
3===m.type||4===m.type,p=a,q=a.u-f,u=n&&d&&!e&&1===b.j.length,w=b.totalLength-h;m.range&&(w=Math.min(m.u-q,w));q=new cD(m.type,m.j,m.range,"reslice"+m.D,m.Na,m.startTime,m.duration,m.Kb+q,w,m.range?m.Kb+q+w===m.range.length:!!c);var y=UB(b,h,w),A=void 0;if(u)for(A=new SB([]),u=0;u<p.yf.length;u++)TB(A,p.yf[u].j);p.yf.push(new ED(q,y,A));p=w;a.u+=p;h+=p;f+=m.u;1===m.type&&(d=!0);n&&(e=!0);if(h===b.totalLength)break}};
LMa=function(a){return a.length-a.u+a.yf.reduce(function(b,c){return b+c.j.totalLength},0)};
JT=function(a,b,c,d,e){xU.call(this,c,e);var f=this;this.policy=a;this.formatId=b;this.ze=d;this.j=new g.Xn(function(){f.isComplete()||(f.lastError="net.timeout",f.Vc(5))},this.policy.Wu);
this.Yd=function(){f.isDisposed()||(AU(f.ze,f.formatId)?(f.isComplete()||f.j.start(),f.ze.Bh(f.formatId)&&f.wq(2),f.ze.Xf(f.formatId)&&(MMa(f.ze,f.formatId)?f.Vc(4):(f.lastError="net.closed",f.Vc(5)))):(f.lastError="player.exception",f.Vc(5)))};
this.j.start();this.Le=new yU(this.policy,this.info.j,pD(this.info));NMa(this.ze,this.formatId,this.Yd);g.Bh(this.Yd)};
BU=function(a,b,c){this.Ka=a;this.policy=b;this.j=c;this.B=[];this.u=this.vc=null;this.ea=this.qa=0;this.I=-1;this.S=!1;this.Z=-1;this.C=new oU(a,b,c);this.Tb=c.info.Tb;this.J=c.vz();this.isManifestless=c.vz();this.D=this.J};
CU=function(a,b){b&&vU&&JMa(a.C,b.cI());a.vc=b};
DU=function(a){return a.vc&&a.vc.FC()};
EU=function(a,b){a.B.push(b);a.u=g.Jb(b.info.j)};
FU=function(a){for(;a.B.length&&4===a.B[0].state;){var b=a.B.shift();OMa(a,b);a.qa=b.YO()}a.B.length&&(b=a.B[0],b.Hw()&&(!b.info.Tn()||a.policy.fu||b instanceof JT)&&OMa(a,b))};
OMa=function(a,b){if(b.Hw()){var c=b.Yw();c=g.r(c);for(var d=c.next();!d.done;d=c.next())d=d.value,a.policy.Z&&b instanceof JT&&a.Ka.va("omblss",{s:mD(d.info)}),PMa(a,b,d)}};
PMa=function(a,b,c){switch(c.info.type){case 1:case 2:sU(a.C,c);break;case 4:var d=c.info.j,e=d.TM(c),f;(null==(f=a.u)?0:4===f.type)&&Uwa(c.info,a.u)&&(a.u=d.Ow(a.u).pop());c=g.r(e);for(d=c.next();!d.done;d=c.next())PMa(a,b,d.value);break;case 3:CMa(a.C,b,c);break;case 6:CMa(a.C,b,c),a.u=c.info}};
LT=function(a,b,c){c=void 0===c?!1:c;if(a.vc){var d=a.vc.Cg(),e=hE(d,b),f=NaN,h=DU(a);h&&(f=hE(d,h.j.index.getStartTime(h.Na)));if(e===f&&a.u&&a.u.u&&QMa(GU(a),0))return b}a=RMa(a,b,c);return 0<=a?a:NaN};
MT=function(a,b){a.j.Yf();var c=RMa(a,b);if(0<=c)return c;c=Math;var d=c.min,e=a.C;if(e.J)if(e=e.J,e.Pe&&3===e.Pe.type)e=e.Pe.startTime;else if(0<e.C){var f=e.j.index;f=g.jc(f.offsets.subarray(0,f.count),e.C*e.chunkSize);e=e.j.index.getStartTime(0<=f?f:Math.max(0,-f-2))}else e=0;else e=Infinity;b=d.call(c,b,e);a.u=a.j.Km(b).j[0];HU(a)&&a.vc&&a.vc.abort();a.ea=0;return a.u.startTime};
SMa=function(a){a.J=!0;a.D=!0;a.I=-1;MT(a,Infinity)};
IU=function(a){for(var b=0,c=g.r(a.B),d=c.next();!d.done;d=c.next())d=d.value,d=d.Le&&d.Le.length?LMa(d.Le):Xwa(d.info),b+=d;return b+=EMa(a.C)};
JU=function(a,b){b=void 0===b?!1:b;if(!a.vc)return 0;var c=DU(a);if(c&&dD(c))return c.B;c=a.Ka.getCurrentTime();if(b&&(b=pU(a.C)))return b.info.B-c;a=a.vc.Cg(!0);return Bxa(a,c)};
WLa=function(a,b,c,d){KT(a);for(var e=a.C,f=null,h=e.u.length-1;0<=h;h--){var l=e.u[h];l.info.Na>=b&&(e.u.pop(),e.B-=HD(l,e.policy.Ya),f=l.info)}f&&(e.C=0<e.u.length?e.u[e.u.length-1].info:e.Qa,0!==e.u.length||e.C||qU(e,"r"));e.Ka.va("mdstm",{rollbk:1,itag:f?f.j.info.itag:"",popped:f?f.Na:-1,sq:b,lastslc:e.C?e.C.Na:-1,lastfraget:e.B.toFixed(3)});d>c?MT(a,d):a.u=a.j.rp(b-1,!1).j[0]};
MU=function(a,b){var c;for(c=0;c<a.B.length&&b!==a.B[c];c++);if(c===a.B.length)KU(a,b);else{for(;c<a.B.length;)KU(a,a.B.pop());var d=LU(a);d&&d.j.Ks()&&Ol(b.info.j,function(e){return Vwa(e,d)})?a.u=d:fD(b.info.j[0])?a.u=b.Le&&b.Le.D?Twa(b.Le.D):Swa(b.info.j[0]):a.u=null}};
HU=function(a){var b;!(b="f"===a.j.info.j)&&(b=a.policy.j)&&(b=a.C,b=!!b.J&&bU(b.J));if(b)return!0;b=DU(a);if(!b)return!1;var c=dD(b)&&b.Ge;return a.isManifestless&&0<a.Z?c||b.Na>=a.Z:c};
TMa=function(a){var b;return HU(a)||!(null==(b=pU(a.C))||!dD(b.info))};
GU=function(a){var b=[],c=DU(a);c&&b.push(c);b=g.ac(b,uU(a.C));c=g.r(a.B);for(var d=c.next();!d.done;d=c.next()){d=d.value;for(var e={},f=g.r(d.info.j),h=f.next();!h.done;e={uu:e.uu},h=f.next())e.uu=h.value,d.SC&&(b=g.um(b,function(l){return function(m){return!Uwa(m,l.uu)}}(e))),(fD(e.uu)||4===e.uu.type)&&b.push(e.uu)}a.u&&!Pwa(a.u,g.Jb(b),a.u.j.hn())&&b.push(a.u);
return b};
QMa=function(a,b){if(!a.length)return!1;for(b+=1;b<a.length;b++)if(!Qwa(a[b-1],a[b]))return!1;return!0};
RMa=function(a,b,c){c=void 0===c?!1:c;if(!a.u||!a.u.u)return NaN;a=GU(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.C<=b)if(d)e=f;else if(h.startTime+h.duration>=b){b=f;break a}}b=e}return 0>b?NaN:QMa(a,c?b:0)?a[b].startTime:NaN};
NU=function(a){return!(!a.u||a.u.j===a.j)};
UMa=function(a){return NU(a)&&a.j.Yf()&&a.u.j.info.Tb<a.j.info.Tb};
VMa=function(a,b,c){return(a=LU(a))&&!dD(a)?a.B>b&&a.B<b+c:!1};
LU=function(a){var b=pU(a.C);return b?b.info:DU(a)};
KT=function(a){for(var b=g.r(a.B),c=b.next();!c.done;c=b.next())KU(a,c.value);a.B=[];a.u=null};
KU=function(a,b){if(b.SC&&!b.info.j[0].j.Ks()){a=a.C;if(a.ea&&!a.policy.Fi){var c=a.Ka;c.j.isManifestless&&CE(c.j,a.ea.Na,!!a.I.info.video)}a.ea=null;a.D=null;a.C=a.kb;a.B=a.C?a.B-a.Z:NaN;rU(a)}b.dispose()};
WMa=function(a){return!!a.u&&-1!==a.u.Na&&a.u.Na<a.j.index.getFirstSegmentNumber()};
XMa=function(a){var b=a.u;b&&-1===b.Na&&(a=pU(a.C))&&fD(a.info)&&(a=a.info.Na,b.D="updateLastSliceRequested",b.Na=a)};
YMa=function(a){return Ol(a.B,function(b){return b.xt})};
ZMa=function(a){a=void 0===a?{}:a;var b=a.cj,c=a.oi,d=a.getLastSegmentNumber,e=a.ys;this.Wn=a.Wn;this.cj=b;this.oi=c;this.getLastSegmentNumber=d;this.ys=e};
$Ma=function(a,b){if(0>b)return!0;var c=a.getLastSegmentNumber();return b<c||b===c&&!a.Wn||b===c&&(a=a.ys())&&b===a.Na?!0:!1};
aNa=function(a,b,c){if(!$Ma(a,b))return 0;if(!a.cj||!isNaN(c)&&0<c)return 2;if(0>b)return 1;c=a.getLastSegmentNumber();return b<c||b===c&&(a=a.ys())&&b===a.Na&&!a.pending?2:1};
OU=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.callbacks=c;this.status=0;this.j=new SB;this.B=0;this.isDisposed=this.C=!1;this.D=0;this.xhr=new XMLHttpRequest;this.xhr.open(d.method||"GET",a);if(d.headers)for(a=d.headers,b=g.r(Object.keys(a)),c=b.next();!c.done;c=b.next())c=c.value,this.xhr.setRequestHeader(c,a[c]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return e.Aw()};
this.xhr.onload=function(){return e.onDone()};
this.xhr.onerror=function(){return e.onError()};
this.xhr.fetch(function(f){e.u&&e.j.append(e.u);e.u=f;e.B+=f.length;f=(0,g.T)();10<f-e.D&&(e.callbacks.nt(f,e.B),e.D=f)},function(){},d.body||null)};
cNa=function(a,b){var c=this;this.j=a;this.callbacks=b;this.loaded=this.status=0;this.error="";a=aD(this.j.get("range")||"");if(!a)throw Error("bad range");this.range=a;this.u=new SB;bNa(this).then(function(){c.callbacks.Gq()},function(d){c.error=""+d||"unknown_err";
c.callbacks.Gq()})};
bNa=function(a){var b,c,d,e,f,h,l,m,n,p,q,u,w,y,A;return g.z(function(B){if(1==B.j){a.status=200;b=a.j.get("docid");c=Sg(a.j.get("fmtid")||"");d=a.j.get("lmt")||"0";e=+(a.j.get("csz")||0);if(!b||!c||!e)throw Error("Invalid local URL");a.j.get("ck")&&a.j.get("civ")&&(f=new lMa(a.j.get("ck"),a.j.get("civ")));h=a.range;l=Math.floor(h.start/e);m=Math.floor(h.end/e);n=l}if(5!=B.j)return n<=m?g.x(B,EAa(b,c,d,n,f),5):B.Ma(0);p=B.u;if(void 0===p)throw Error("invariant: data is undefined");q=n*e;u=(n+1)*e;
w=Math.max(0,h.start-q);y=Math.min(h.end+1,u)-(w+q);A=new Uint8Array(p.buffer,w,y);a.u.append(A);a.loaded+=y;a.loaded<h.length&&a.callbacks.nt((0,g.T)(),a.loaded);n++;return B.Ma(2)})};
PU=function(a,b){var c=b.Bi,d=void 0===b.fl?1:b.fl,e=void 0===b.ND?d:b.ND,f=void 0===b.Tn?!1:b.Tn,h=void 0===b.Bo?!1:b.Bo,l=void 0===b.tH?!1:b.tH,m=b.uj,n=b.Na;b=b.Uf;this.callbacks=a;this.requestNumber=++dNa;this.j=this.now();this.Aa=this.Qa=NaN;this.Ia=0;this.C=this.j;this.u=0;this.Wa=this.j;this.ya=0;this.Ya=this.La=this.isActive=!1;this.B=0;this.ea=NaN;this.J=this.D=Infinity;this.S=NaN;this.Ba=!1;this.Z=NaN;this.I=void 0;this.Bi=c;this.policy=this.Bi.Aa;this.fl=d;this.ND=e;this.Tn=f;this.Bo=h;
l&&(this.I=[]);this.uj=m;this.Na=n;this.Uf=b;this.snapshot=CF(this.Bi);eNa(this);fNa(this,this.j);this.ea=(this.Z-this.j)/1E3};
gNa=function(a,b){a.url=b;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})};
QU=function(a){var b={rn:a.requestNumber,rt:(a.now()-a.j).toFixed(),lb:a.u,pt:(1E3*a.ea).toFixed(),pb:a.fl,stall:(1E3*a.B).toFixed(),hrt:(a.Qa-a.j).toFixed(),elt:(a.Aa-a.j).toFixed(),elb:a.Ia};a.url&&nKa(b,a.url);return b};
iNa=function(a,b,c,d){if(!a.La){a.La=!0;if(!a.Bo){RU(a,b,c);hNa(a,b,c);var e=a.xs();if(2===e&&d)SU(a,a.u/d,a.u);else if(2===e||1===e)d=(b-a.j)/1E3,(d<=a.policy.j||!a.policy.j)&&!a.Ya&&TU(a)&&SU(a,d,c),TU(a)&&(d=a.Bi,d.j.rh(1,a.B/Math.max(c,2048)),DF(d));c=a.Bi;b=(b-a.j)/1E3||.05;d=a.ea;e=a.Tn;c.I.rh(b,a.u/b);c.C=yF();e||c.u.rh(1,b-d)}a.deactivate()}};
hNa=function(a,b,c){var d=(b-a.C)/1E3,e=c-a.u,f=a.xs();if(a.isActive)1===f&&0<e&&(.2<d||1024>e?(a.B+=d,.2<d&&SU(a,.05,e)):SU(a,d,e),a.Ya=!0);else if(UU(a,c)){if(1===f&&(f=(b-a.j)/1E3,!jNa(a)&&!a.Bo)){var h=a.Bi;h.J.rh(1,f);DF(h)}a.Aa=b;a.Ia=c;a.isActive=!0}a.Bo||eza(a.Bi,d,e);a.C=b;a.u=c};
SU=function(a,b,c){a.Bo||(b=Math.max(b,.05),a=a.Bi,a.B.rh(b,c/b),a.C=yF())};
RU=function(a,b,c){c=Math.round(c/1024);a.I&&a.I.push(VU(b-a.Wa,c-a.ya));a.Wa=b;a.ya=c};
kNa=function(a){return a.I?a.I.join(""):""};
UU=function(a,b){return b?a.gD()?!0:2048<=b:!1};
TU=function(a){return UU(a,a.u)};
lNa=function(a){return(a.C-a.j)/1E3};
eNa=function(a){a.S=a.j+1E3*a.snapshot.delay;a.Ba=!1};
WU=function(a,b){if(a.uj&&void 0!==a.Na&&void 0!==a.Uf){var c=Math,d=c.min,e=a.D;var f=a.uj;var h=a.j;if($Ma(f,a.Na))f=b;else{var l=0;f.cj&&(l=.2);f=h+1E3*(f.oi+l)}a.D=d.call(c,e,f);c=Math;d=c.min;e=a.J;f=a.uj;h=a.j;l=aNa(f,a.Na,a.Uf);2!==l&&(b=l?b:h+1E3*f.oi,f.cj&&(b+=1E3*f.oi));a.J=d.call(c,e,b);a.D<=a.j?eNa(a):(a.S=a.D,a.Ba=!0)}};
jNa=function(a){a.uj&&WU(a,a.now());return a.Ba};
fNa=function(a,b){b=void 0===b?a.now():b;if(a.uj){WU(a,b);if(a.qa?a.gD():a.D!==a.J){var c=a.J;if(b<c){a.Z=a.J;return}}else c=a.D;c=Math.max(c,a.S)}else c=a.S;var d=a.fl-a.u;0>d&&(d=0);d=1E3*(d*a.snapshot.stall+d/a.snapshot.byterate);d=TU(a)?d+b:d+Math.max(b,c);a.Z=d};
VU=function(a,b){for(var c="";4095<a;)c+=VU(4095,0),a-=4095;for(;4095<b;)c+=VU(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))};
YU=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.callbacks=c;this.Z=d;this.status=0;this.response=void 0;this.S=this.u=0;this.I=this.J=!1;this.errorMessage="";this.qa=function(f){e.status=f.status;if(f.ok&&f.body&&204!==e.status)e.status=e.status||242,e.yn=f.body.getReader(),e.isDisposed()?e.yn.cancel().catch(function(){}):(e.D=f.headers,e.callbacks.Cw(),XU(e));
else e.onDone()};
this.ea=function(f){var h=(0,g.T)();e.isDisposed()||(e.C&&(e.j.append(e.C),e.C=void 0),f.done?(e.yn=void 0,e.onDone()):(f=f.value,e.u+=f.length,e.C=f,e.policy.j&&XU(e),f=(0,g.T)(),10<f-e.S&&(e.S=f,e.callbacks.nt(h,e.u)),e.policy.j||XU(e)))};
this.onError=function(f){e.errorMessage=String(f);e.J=!0;e.onDone()};
this.j=new SB;this.B=window.AbortController?new AbortController:void 0;this.start(a)};
XU=function(a){a.yn.read().then(a.ea,a.onError).then(void 0,Jv)};
mNa=function(a,b){if(b+1<=a.totalLength){var c=YB(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)a=YB(a,b++);else if(2===c)c=YB(a,b++),a=YB(a,b++),a=(c&63)+64*a;else if(3===c){c=YB(a,b++);var d=YB(a,b++);a=YB(a,b++);a=(c&31)+32*(d+256*a)}else if(4===c){c=YB(a,b++);d=YB(a,b++);var e=YB(a,b++);a=YB(a,b++);a=(c&15)+16*(d+256*(e+256*a))}else c=b+1,a.focus(c),WB(a,c,4)?a=fwa(a).getUint32(c-a.B,!0):(d=YB(a,c+2)+256*YB(a,c+3),a=YB(a,c)+256*(YB(a,c+1)+
256*d)),b+=5;return[a,b]};
ZU=function(a){this.callbacks=a;this.j=new SB};
$U=function(a,b,c){var d=this;c=void 0===c?{}:c;this.callbacks=b;this.u=this.status=0;this.isDisposed=this.j=!1;this.xhr=new XMLHttpRequest;this.xhr.open(c.method||"GET",a);if(c.headers){a=c.headers;b=g.r(Object.keys(a));for(var e=b.next();!e.done;e=b.next())e=e.value,this.xhr.setRequestHeader(e,a[e])}this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(f){d.Aw(f)};
a=fu(function(f){d.onDone(f)});
this.xhr.addEventListener("load",a,!1);this.xhr.addEventListener("error",a,!1);c.body?this.xhr.send(c.body):this.xhr.send();this.xhr.addEventListener("progress",fu(function(f){d.Yd(f)}),!1)};
oNa=function(a,b){eH(a,13,b.timeSinceLastManualFormatSelectionMs);var c=b.lastManualDirection;void 0!==c&&(dH(a,112),dH(a,c<<1^c>>31));eH(a,16,b.e_);eH(a,18,b.WX);eH(a,19,b.VX);eH(a,21,b.X4);eH(a,23,b.CX);eH(a,34,b.visibility);iH(a,38,b.mediaCapabilities,nNa,3);eH(a,39,b.w5);eH(a,40,b.GO);fH(a,46,b.rY)};
pNa=function(a){for(var b=[];YG(a,2);)b.push(XG(a));return{HG:b.length?b:void 0,videoId:aH(a,3),KL:ZG(a,4)}};
nNa=function(a,b){var c;if(b.JL)for(c=0;c<b.JL.length;c++)iH(a,1,b.JL[c],qNa,1);if(b.GG)for(c=0;c<b.GG.length;c++)iH(a,2,b.GG[c],rNa,1)};
rNa=function(a,b){eH(a,1,b.AX);eH(a,2,b.numChannels);eH(a,3,b.q_)};
qNa=function(a,b){eH(a,1,b.h6);eH(a,3,b.r_);eH(a,4,b.s_);eH(a,11,b.maxFramerate);eH(a,12,b.q_)};
uNa=function(a){return{A3:ZG(a,1),itag:aH(a,3),KR:lAa(a,4,sNa),lmt:ZG(a,5),p5a:ZG(a,7),xtags:aH(a,15),x_:lAa(a,23,tNa)}};
sNa=function(a){return{iv:$G(a,5),VZ:kAa(a,7)}};
tNa=function(a){return{videoId:aH(a,2)}};
wNa=function(a,b){iH(a,2,b.nO,oNa,3);iH(a,3,b.BI,vNa,3);gH(a,4,b.onesieUstreamerConfig);gH(a,9,b.YA)};
vNa=function(a,b){gH(a,2,b.encryptedOnesieInnertubeRequest);gH(a,5,b.encryptedClientKey);gH(a,6,b.iv);gH(a,7,b.hmac);fH(a,10,b.serializeResponseAsJson);fH(a,13,b.enableAdPlacementsPreroll);fH(a,14,b.enableCompressionResponseOnly);gH(a,16,b.unencryptedOnesieInnertubeRequest)};
xNa=function(a,b){hH(a,1,b.name);hH(a,2,b.value)};
yNa=function(a,b){hH(a,1,b.url);var c;if(b.httpHeaders)for(c=0;c<b.httpHeaders.length;c++)iH(a,2,b.httpHeaders[c],xNa,3);gH(a,3,b.postBody);fH(a,4,b.proxiedByTrustedBandaid);fH(a,6,b.skipResponseEncryption)};
zNa=function(a){return{onesieProxyStatus:ZG(a,1),httpStatus:ZG(a,2),body:$G(a,4)}};
dV=function(a,b,c,d,e,f){var h=void 0===f?{}:f;f=void 0===h.dA?[]:h.dA;var l=void 0===h.GA?!1:h.GA,m=void 0===h.Nr?0:h.Nr,n=void 0===h.poToken?"":h.poToken,p=void 0===h.ot?void 0:h.ot;h=void 0===h.kA?"":h.kA;xU.call(this,b,e);var q=this;this.policy=a;this.logger=new g.lT("dash/request");this.Av=this.Jg=0;this.uS=!1;this.zo=this.Um=null;this.jT=this.iT=this.FP=!1;this.timing=new PU(this,c);this.Vm=d;this.GA=l;this.Qf=g.sD(this.info,this.policy,this.Vm);this.Qf.set("rn",this.timing.requestNumber.toString());
this.Qf.set("rbuf",(1E3*m).toFixed().toString());this.GA&&this.Qf.set("smb","1");this.policy.Hk&&n&&this.Qf.set("pot",n);h&&this.Qf.set("bbs",h);this.policy.useUmp&&(this.ix=new ZU(this),this.Qf.set("ump","1"),this.Qf.set("srfvp","1"));this.dA=f||null;this.ot=p;this.xt=ANa(this);this.Mw=1*this.policy.Mw;this.pE=new g.Xn(this.b4,this.Mw,this);this.info.u.J=(0,g.T)();Iwa(aV(this));a=void 0;if(this.policy.rr||this.policy.useUmp||this.policy.La){a={method:"POST"};b=(0,g.bV)([120,0]);if(this.policy.useUmp||
this.policy.rr)a.body=b;this.policy.La&&(a.body=this.info.Es()||b)}try{this.xhr=BNa(this,a),this.pE.start()}catch(u){g.pz(u),this.lastError="net.ssl",g.Bh(function(){cV(q)})}};
ANa=function(a){if(!(rD(a.info)&&a.info.Tn()&&a.policy.xd&&a.dA)||2<=a.info.u.u||0<FE()||!mya())return!1;var b=a.Qf.get("aitags");if(!b)return!1;b=Sg(b).split(",");for(var c=[],d=g.r(a.dA),e=d.next();!e.done;e=d.next())e=e.value,g.Sb(b,e)&&c.push(e);if(!c.length)return!1;a.Qf.set("altitags",g.Rg(c.join(",")));return!0};
aV=function(a){return VC(a.Vm,MB(a.Qf.lj))};
DNa=function(a,b){if(400<=b.status)return a.lastError="net.badstatus",5;if(!b.lA())return a.lastError=204===b.status?"net.nocontent":"net.connect",5;var c="";if(CNa(a)){var d=b.Kg();d.totalLength<=a.policy.Tg&&(c=XB(d),c=bC(c),c=mA(c)?c:"")}if(c)return UC(aV(a)),a.info.gk(a.Qf,c),3;c=b.ol();if(a.ix){if(a.uo(!0),!a.iT){if(a.jT)return UC(aV(a)),3;a.lastError="net.closed";return 5}}else{if((d=pD(a.info))&&d!==c||b.fE())return a.lastError="net.closed",5;a.uo(!0);if(!d&&a.Le&&(d=a.Le.Hq(),d.length&&!mxa(d[0])))return a.lastError=
"net.closed",5}d=KMa(a)?b.getResponseHeader("X-Bandwidth-Est"):0;if(b=KMa(a)?b.getResponseHeader("X-Bandwidth-Est3"):0)a.uS=!0,a.policy.pm&&(d=b);iNa(a.timing,(0,g.T)(),c,d?Number(d):0);UC(aV(a));b=a.info.u;b.u=0;b.D=0;b.I=0;if(null!=(b=a.ot)&&(a=a.Qf.lj,!((0,g.T)()<b.I+3E5||NB(a))&&(c=MB(a))&&sKa(c)&&b.B===lS(c))){var e;OB(a)&&(e=MB(PB(a)));g.Nz("yt-player-bandaid-host",{primary:c,secondary:e},864E3);b.I=(0,g.T)();pKa(b,{primary:c,secondary:e})}return 4};
cV=function(a){if("net.timeout"===a.lastError){var b=a.timing,c=(0,g.T)();if(!b.Bo){RU(b,c,1024*b.ya);var d=(c-b.j)/1E3;if(2!==b.xs())if(TU(b)){b.B+=(c-b.C)/1E3;var e=b.Bi,f=b.u;f=Math.max(f,2048);e.j.rh(1,b.B/f);DF(e)}else jNa(b)||b.Bo||(e=b.Bi,e.J.rh(1,d),DF(e)),b.Aa=c;e=b.Bi;f=b.ea;var h=b.Tn;e.I.rh(d,b.u/d);e.C=yF();h||e.u.rh(1,d-f);eza(b.Bi,(c-b.C)/1E3,0)}}"net.nocontent"!==a.lastError?((b="net.timeout"===a.lastError||"net.connect"===a.lastError||"net.closed"===a.lastError)&&!NB(a.Qf.lj)?(c=
aV(a),c.timedOut+=1):(c=aV(a),c.j+=1),a.timing.u||(c=a.info.u,d=a.Qf,++c.u,b&&++c.D,MB(d.lj).startsWith("redirector.")&&(c.j=c.C.clone(),delete c.B))):++a.info.u.I;a.Vc(5)};
ENa=function(a,b){b&&(b=aV(a),b.u+=1);eV(a);a.lastError="net.timeout";cV(a)};
eV=function(a){a.xhr&&a.xhr.abort();a.timing.deactivate()};
CNa=function(a){var b=a.xhr.getResponseHeader("content-type"),c=a.xhr.Oy();c=!c||c<=a.policy.Tg;return(!a.xhr.bx()||!b||-1!==b.indexOf("text/plain")||"application/vnd.yt-ump"===b)&&c};
BNa=function(a,b){if(NB(a.Qf.lj))return new cNa(a.Qf,a.timing);var c=a.Qf.ye();return a.policy.ya&&(a.policy.Ft&&!isNaN(a.info.Uf)&&a.info.Uf>a.policy.Ul||a.xt&&!a.policy.fu?0:pB())?qB()?new OU(c,a.policy.C,a.timing,b):new YU(c,a.policy.C,a.timing,b):new $U(c,a.timing,b)};
fV=function(a,b,c,d,e,f,h,l,m,n,p,q){g.J.call(this);this.Ka=a;this.policy=b;this.videoTrack=c;this.audioTrack=d;this.Vm=e;this.B=f;this.timing=h;this.I=l;this.schedule=m;this.j=n;this.D=p;this.qa=q;this.Aa=!1;this.kA="";this.C=this.uj=null;this.S="";this.Z=0;this.Uf=NaN;this.ya=!1;this.u=null;this.ea=NaN;this.J=0;this.logger=new g.lT("dash");0<this.policy.Zl&&(this.kA=g.vz(this.policy.Zl))};
FNa=function(a,b,c){if(gV(a,b,c)){if(b.J){if(a.j.isLive){var d=a.j.df&&a.j.C?b.j.rp(a.j.df,!1):b.j.Km(Infinity);d.Uf=a.Uf}else d=b.j.rp(0,!1);a.qa?0===d.Uf&&(d.D=a.qa.S):d.D=a.ea}else if(d=b.u,d.j.Yf()){var e=d.B-a.Ka.getCurrentTime(),f=!d.range||0===d.u&&0===d.Kb?0:d.range.length-(d.Kb+d.u),h=d.j;if(NU(b)&&b.j.Yf()){var l=Math.min(15,.5*hV(a.Ka,b,!0));l=UMa(b)||e<=l||a.D.S}else l=!1;l&&0===f&&(a.j.isManifestless?h=b.j:(h=d.startTime+iV,d.u&&(h+=d.duration),MT(b,h),d=b.u,h=d.j));h.hn()?(f=a.D,c=GT(a.I,
h.info.Tb,c.j.info.Tb,e,0<f.D.length&&0===f.videoIndex&&a.Ka.mw),h=NU(b),c=d.j.Gu(d,c),(e=pD(c))&&1<c.j.length&&(h||c.u.u||c.j[0].j!==d.j?c=d.j.Gu(d,c.j[0].u):(h=c.j[c.j.length-1],f=h.u/e,!h.Ge&&.4>f&&(c=d.j.Gu(d,e-h.u)))),d=c):(0>d.Na&&(c=iD(d),c.pr=""+b.B.length,a.Ka.Gg()&&(c.sk="1"),c.snss=d.D,a.Ka.va("nosq",c)),d=h.Ox(d));if(a.policy.J)for(c=g.r(d.j),e=c.next();!e.done;e=c.next())e.value.type=6}else d.j.hn()?(c=GT(a.I,b.j.info.Tb,c.j.info.Tb,0),d=d.j.Gu(d,c)):d=d.j.Ox(d);if(a.u)if(e=d.j[0].j.info.id,
c=a.B,h=d.j[0].Na,c=0>h&&!isNaN(c.B)?c.B:h,h=VLa(a.B,d.j[0].C,c),f=b===a.audioTrack?1:2,l=d.j[0].j.info.itag,a.policy.La)e=a.u.Es(h,c,e,f),0>c&&2===f&&QT(a.B,0,0,!0),e&&(a.Ka.va("sdai",{ssdaiinfo:"1",length:e.length,itag:l,sg:c,st:h.toFixed(3)}),d.J=e);else if(e=a.u.Hm(h,c,e,f),0>c&&2===f&&QT(a.B,0,0,!0),e){h={decurl_itag:l,sg:c,st:h.toFixed(3)};if(a.policy.Vt&&b.isRequestPending(c-1)){a.Ka.va("sdai",{wt_daistate_on_sg:c-1});return}a.Ka.va("sdai",h);e&&(d.B=new g.KB(e))}a.policy.Pk&&-1!==d.j[0].Na&&
d.j[0].Na<a.j.df&&(d=b.j.rp(a.j.df,!1));EU(b,jV(a,d));TLa(a.timing)}};
gV=function(a,b,c){var d=a.B;if(2===d.u||3===d.u)return kV(a,"waitad"),!1;if(!Mwa(b.u?b.u.j.u:b.j.u,a.policy))return kV(a,"resource"),!1;if(a.Ka.isSuspended&&(!fza(a.schedule)||a.Ka.qH))return kV(a,"suspend"),!1;if(a.policy.j&&5<=tH)return g.Yn(a.Ka.oD),kV(a,"exceedq"),!1;if(a.j.isManifestless){if(0<b.B.length&&b.u&&-1===b.u.Na)return kV(a,"pending"),!1;if(b.B.length>=a.policy.Vk)return kV(a,"toomany"),!1;if(!a.policy.gm&&0<b.B.length&&!a.policy.C.cj)return kV(a,"pipeline"),!1;if(b.J)return b=!a.j.isLive||
!isNaN(a.Uf),kV(a,b?"":"sqless"),b}if(YMa(b))return kV(a,"shavable"),!1;if(!b.u){if(!b.j.Yf())return kV(a,"meta"),!1;MT(b,a.Ka.getCurrentTime())}d=b.B.length+c.B.length;(b.B.length&&b.B[0].Ms()||c.B.length&&c.B[0].Ms()||a.j.isLive)&&--d;if(d+1>=a.policy.Vl)return kV(a,"maxpending"),!1;d=b.u;if(!d)return!0;4===d.type&&d.j.Yf()&&(b.u=g.Jb(d.j.Ow(d)),d=b.u);if(!dD(d)&&!d.j.qp(d))return kV(a,"notready"),!1;var e=a.j.uf||a.j.C;if(a.j.isManifestless&&e){e=b.j.index.getLastSegmentNumber();var f=c.j.index.getLastSegmentNumber();
e=Math.min(e,f);if(0<b.j.index.DC()&&0<e&&d.Na>=e)return b.Z=e,c.Z=e,kV(a,"postlive"),!1}if(d.j.info.audio&&4===d.type)return kV(a,"toomanyaudio"),!1;if(UMa(b)&&!a.policy.Gb)return kV(a,""),!0;if(dD(d))return kV(a,"eos"),!1;if(IU(b)&&IU(b)+IU(c)>a.policy.Ac)return kV(a,"maxheap"),!1;e=!b.D&&!c.D;f=d.B;f=!!(c.u&&!dD(c.u)&&c.u.B<f);var h=b===a.videoTrack&&a.policy.J;if(f&&(!a.j.isManifestless||c.u&&c.u.B&&d.B)&&e&&!h)return kV(a,"othertrack"),!1;if(a.policy.ob&&!b.D&&c.D)return kV(a,"seek"),!1;if(fD(d)&&
d.B>GNa(a,b))return kV(a,"maxtime;"+d.B.toFixed(3)+";"+GNa(a,b)),!1;if((b=b.vc)&&b.isLocked())return kV(a,"locked"),!1;kV(a,"");return!0};
kV=function(a,b){a.policy.wg&&a.u&&(a.S=b)};
GNa=function(a,b){var c=a.B;c=c.j?c.j.qf:null;if(a.policy.J&&c)return c.startSecs+c.durationSecs+15;b=hV(a.Ka,b,!0);!ZT(a.Ka.ge)&&0<a.policy.Ia&&(c=((0,g.T)()-a.Z)/1E3,b=Math.min(b,a.policy.Ia+a.policy.jf*c));b=a.Ka.getCurrentTime()+b;return a.policy.lm&&(c=HNa(a)+a.policy.lm,c<b)?(a.Ka.va("mrl",{ori:b,mod:c},!0),a.policy.Sk&&(a.Z=(0,g.T)()),c):b};
HNa=function(a){var b=a.Ka.il().filter(function(d){return"ad"===d.namespace});
b=g.r(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.start/1E3>a.Ka.getCurrentTime())return c.start/1E3;return Infinity};
lV=function(a,b,c){a:if(b=b.info,b.B)c=null;else{var d=b.j[0];if(b.range)var e=bD(b.range.start,Math.min(4096,pD(b)));else{if(b.C&&0<=b.C.indexOf("/range/")||"1"===b.u.C.get("defrag")||"1"===b.u.C.get("otf")){c=null;break a}e=bD(0,4096)}e=new oD([new cD(5,d.j,e,"createProbeRequestInfo"+d.D,d.Na)],b.C);e.I=c;e.B=b.B;c=e}c&&jV(a,c)};
jV=function(a,b){INa(a.Ka,b);var c=Xwa(b);c={Bi:a.schedule,fl:c,ND:JLa(a.I,c),Tn:eD(b.j[0]),Bo:NB(b.u.j),tH:a.policy.Z};a.uj&&(c.Na=b.j[0].Na,c.Uf=b.Uf,c.uj=a.uj);var d={Nr:Ywa(b,a.Ka.getCurrentTime()),dA:a.policy.xd&&rD(b)&&b.j[0].j.info.video?kMa(a.D):void 0,GA:a.policy.J,poToken:a.Ka.bI(),ot:a.Ka.LC(),kA:a.kA};return new dV(a.policy,b,c,a.Vm,function(e,f){try{a:{a.policy.wg&&a.u&&(a.C=e);var h=e.info.j[0].j,l=h.info.video?a.videoTrack:a.audioTrack;if(!(2<=e.state)||e.isComplete()||e.So||!(!a.Ka.mediaSource||
a.Ka.isSuspended||3<JU(l))){var m=e.So;if(!e.isComplete()&&m&&!XC(e.info.u,a.policy,a.Vm)){var n=a.policy.qm;if(!a.ya&&n&&m>=n)lV(a,e,!1),a.ya=!0;else{var p=a.policy.Li;if(p&&!(m<p)){var q=a.Vm;var u=MB(WC(e.info.u,a.policy));var w=VC(q,u);w.j||w.timedOut||w.started||lV(a,e,!0)}}}if(e.isComplete()||e.isDisposed()&&3>f){if(a.policy.zc){var y=Object.assign(QU(e.timing),{rst:""+e.state,strm:""+e.xhr.bx(),d:kNa(e.timing)});a.Ka.va("rqs",y)}e.uS&&a.Ka.va("sbwe3",{},!0)}if(!a.isDisposed()&&2<=e.state){var A=
a.timing,B=e.info.j[0].j,D=!A.D&&B.info.video,G=!A.u&&B.info.audio;3===e.state?D?A.tick("vrr"):G&&A.tick("arr"):4===e.state?D?(A.D=e.ye(),g.Cv(),Ev(4)):G&&(A.u=e.ye()):e.Ms()&&D&&(g.Cv(),Ev(4));if(3===e.state){MU(l,e);rD(e.info)&&mV(a,l,h,!0);if(a.u){var H=e.info.Hm();H&&a.u.gk(e.info.j[0].Na,h.info.id,H)}a.Ka.Tj()}else if(e.isComplete()&&5===e.info.j[0].type){if(4===e.state){var L=(e.info.j[0].j.info.video?a.videoTrack:a.audioTrack).B[0]||null;L&&L instanceof dV&&L.So&&ENa(L,!0)}e.dispose()}else{if(!e.isFailed()&&
e.xt&&2<=e.state&&3!==e.state){var N=e.xhr.getResponseHeader("X-Response-Itag");if(N){var K=jMa(a.D,N),P=pD(e.info);if(P){var R=P-K.UH();K.D=!0;e.info.j[0].j.D=!1;var X=K.Vp(R);e.info=X;if(e.Le){var Q=e.Le,oa=X.j;Q.j=oa;var sa=oa[0].range,Ba=new SB;for(f=0;f<Q.yf.length;f++)TB(Ba,Q.yf[f].j);for(f=0;f<Q.yf.length;f++){Q.yf[f].info=oa[f];var ya=oa[f].range;Q.yf[f].j=UB(Ba,ya.start-sa.start,ya.length)}}e.xt=!1;var va=a.videoTrack;va.j!==K&&(va.j=K);var Ja=a.videoTrack;Ja.u&&(Ja.u.j=K);a.Ka.UJ(K.info.video.quality);
var Ka=e.aI();Ka&&K.info.lastModified&&K.info.lastModified!==+Ka&&MU(a.videoTrack,e)}}else e.xt=!1}if(4===e.state){if(nV(a,e),a.B){var qa=a.B,kb=e.info,Mb=a.u;if(0!==qa.u&&Mb&&kb.j[0].isVideo())if(kb.j[0].Na>qa.B&&(qa.B=NaN,qa.D=NaN),qa.j&&qa.j.Na===kb.j[0].Na){var Ta=qa.j,fb=Ta.qf;Mb.Bq(fb)&&"predictStart"!==fb.event?Ta.mz?PT(qa,4,"cue"):(qa.B=kb.j[0].Na,qa.D=kb.j[0].C,qa.va("sdai",{joinad:qa.u,sg:qa.B,st:qa.D.toFixed(3)}),qa.ea=Date.now(),PT(qa,2,"join"),Mb.hI(Ta.qf)):PT(qa,5,"nogab")}else 1===
qa.u&&PT(qa,5,"noad")}}else if(a.policy.ya&&e.Hw()&&!e.isComplete()&&!nV(a,e)&&!e.isFailed())break a;e.isFailed()&&a.Xv(e);a.Ka.Tj();if(a.policy.Id&&e.isComplete()&&e.canRetry()&&XC(e.info.u,a.policy,a.Vm)){var Yb=a.Vm;var Ua=MB(e.info.u.j);var $a=VC(Yb,Ua);$a.B+a.policy.Id*Jwa($a,a.policy,!0)>(0,g.T)()||lV(a,e,!1)}}}}}}catch(ub){K=a.Aa?1:0,a.Aa=!0,e=yG(K),K=zG(ub,K),a.Ka.handleError(K.errorCode,K.details,K.severity),e||a.Ka.mj()}},d)};
nV=function(a,b){try{var c=b.info.j[0].j,d=c.info.video?a.videoTrack:a.audioTrack;if(a.j.isManifestless&&d){a.J=0;d.J&&(b.isDisposed(),b.isComplete()||b.Hw(),d.J=!1);b.OH()&&a.Ka.XB.rh(1,b.OH());var e=b.DC(),f=b.bP(),h=a.j,l;for(l in h.j){var m=h.j[l].index;m.wm&&(e&&(m.Um=Math.max(m.Um,e)),f&&(m.zo=Math.max(m.zo||0,f)))}}if(b.info.Tn()&&!qD(b.info))for(var n=g.r(b.Yw()),p=n.next();!p.done;p=n.next()){var q=p.value;if(1===q.info.type)if(c.info.video){var u=a.timing;u.ya||(u.ya=(0,g.T)(),VN("vis_r",
u.ya,u.j))}else{var w=a.timing;w.J||(w.J=(0,g.T)(),VN("ais_r",w.J,w.j))}sU(d.C,q)}FU(d,a.Ka.getCurrentTime());var y=!!d.Kg();if(y&&b instanceof JT)if(c.info.cn()){var A=a.timing;A.ea||(A.ea=(0,g.T)(),VN("oafs_rp",A.ea,A.j))}else{var B=a.timing;B.qa||(B.qa=(0,g.T)(),VN("ovfs_rp",B.qa,B.j))}return y}catch(D){return b=b.Mv(),b.origin="hrhs",JNa(a.Ka,D,b),!1}};
KNa=function(a){var b=a.videoTrack.j.index;a.uj=new ZMa({Wn:a.policy.Wn,cj:a.policy.C.cj,oi:b.oi,getLastSegmentNumber:function(){return b.getLastSegmentNumber()},
ys:function(){return b.ys()}})};
mV=function(a,b,c,d){if(!(c.Yf()||c.nw()||c.D)&&Mwa(c.u,a.policy)&&"f"!==c.info.j){if(d){d=a.I;var e=c.info;d=KLa(d,e.video?d.policy.vr:d.policy.Lk,e.Tb)}else d=0;d=c.Vp(d);a=jV(a,d);qD(d)&&EU(b,a);c.D=!0}};
LNa=function(a,b,c,d,e){this.Ka=a;this.policy=b;this.schedule=c;this.Av=d;this.Z=e;this.ea=NaN;this.u=this.J=this.C=null;this.j=this.D=this.I=this.startTimeSecs=NaN;this.B=!1;this.S=NaN};
MNa=function(a,b,c,d,e){return b.Pc&&b.Ba&&3===Wva(b)?new LNa(a,b,c,d,e):null};
NNa=function(a,b){if(a.policy.er){var c=b.info.Tb,d=BF(a.schedule);b=b.index.oi;c=Math.max(1,d/c);a.S=Math.round(1E3*Math.max(((c-1)*b+a.policy.Aa)/c,b-a.policy.pe))}};
QNa=function(a,b){var c=Date.now()/1E3,d=c-a.startTimeSecs,e=c-a.I,f=e>=a.policy.Xi,h=!1;if(f){var l=0;!isNaN(b)&&b>a.D&&(l=b-a.D,a.D=b);l/e<a.policy.ir&&(h=!0);a.I=c}c=d>=a.policy.pe&&!a.B;if(!f&&!c&&ONa(a,b))return NaN;c&&(a.B=!0);a:{d=h;c=Date.now()/1E3-(a.Av.Rh()||0)-a.J.u-a.policy.Aa;f=a.u.startTime;c=f+c;if(d){if(isNaN(b)){oV(a,NaN,"n",b);f=NaN;break a}d=b-a.policy.oe;d<c&&(c=d)}else a.B&&(d=c+a.policy.Aa-a.ea+a.policy.jr,isNaN(b)||(d=Math.max(d,Math.min(c,b-a.policy.oe))),c=d);f=c=Math.max(c,
f)}a.j=f;if(isNaN(a.j))return a.clear(),NaN;if(!h&&ONa(a,b))return PNa(a,b),NaN;if(a.j<=a.u.startTime)return oV(a,NaN,"y",b),a.clear(),NaN;if(!a.Z(a.j,!1))return!PNa(a,b)&&h&&(oV(a,NaN,"t",b),a.clear()),NaN;h=a.j;oV(a,h,"s",b);a.clear();return h};
PNa=function(a,b){return a.Z(a.j,!0)?!1:(oV(a,NaN,"ns",b),a.clear(),!0)};
ONa=function(a,b){return isNaN(b)?!0:isNaN(a.j)?!1:b<a.j+(a.B?a.policy.oe:a.policy.gr)};
oV=function(a,b,c,d){var e=a.C.Mv();e.ssr_sk=(1E3*b).toFixed(0);e.ssr_t=(1E3*a.j).toFixed(0);e.ssr_r=c;e.ssr_st=(1E3*a.startTimeSecs).toFixed(0);e.ssr_n=Date.now().toFixed(0);e.ssr_f=(1E3*a.J.u).toFixed(0);e.ssr_fa=a.B?"1":"0";e.ssr_o=(1E3*a.Av.Rh()||0).toFixed(0);e.ssr_v=(1E3*d).toFixed(0);b=a.u.j.index;zD(b,a.u.Na,!0)&&(e.ssr_ist=(1E3*b.getStartTime(a.u.Na)).toFixed(0),e.ssr_id=(1E3*b.getDuration(a.u.Na)).toFixed(0));a.Ka.va("ssr",e)};
RNa=function(){var a={};if(window.performance){var b=window.performance.memory;b&&(a.jsTotal=b.totalJSHeapSize,a.jsUsed=b.usedJSHeapSize,a.msUsed=b.usedMediaSourceMemorySize)}var c;if(null==(c=window.h5vcc)?0:c.cVal)a.cbFree=window.h5vcc.cVal.getValue("Memory.CPU.Free"),a.cbUsed=window.h5vcc.cVal.getValue("Memory.CPU.Used");return a};
g.pV=function(a,b,c,d,e,f,h,l,m,n){l=void 0===l?!1:l;g.J.call(this);var p=this;this.xa=a;this.schedule=b;this.policy=c;this.j=d;this.Z=m;this.Ya=n;this.timing=new SLa(this.Ya);this.S=new ET(this.schedule,this.policy);this.mediaSource=null;this.Qa=new g.Xn(this.Tj,0,this);this.oD=new g.Xn(this.Tj,1E3,this);this.Wa=new g.Xn(this.Tj,void 0,this);this.La=new g.Xn(this.Tj,1E4,this);this.I=this.currentTime=NaN;this.ea=0;this.mw=this.qH=this.isSuspended=!1;this.Aa="";this.XB=new vF(5);this.Vm={};this.timestampOffset=
NaN;this.Ia=!1;this.Ba=0;this.J=null;this.qa=NaN;this.logger=new g.lT("dash");a=m&&Array.from(m.me.keys());m&&(this.qa=Date.now());this.ge=new ZLa(this,this.S,c,this.j,e,a);c=dMa(this.ge,f,h&&h.id);this.audioTrack=new BU(this,this.policy,c.audio);this.videoTrack=new BU(this,this.policy,c.video);this.videoTrack.C.Aa=this.audioTrack.C;this.ya={updateend:this.qW,error:this.x0};g.M(this,this.Qa);g.M(this,this.oD);g.M(this,this.Wa);g.M(this,this.La);this.C=MNa(this,this.policy,this.schedule,this.XB,function(q,
u){return SNa(p,q,u)});
this.u=new NT(this,this.j,this.policy,this.videoTrack,this.audioTrack,l);this.D=new IT(this,this.j,this.videoTrack,this.audioTrack,this.policy);this.B=new fV(this,this.policy,this.videoTrack,this.audioTrack,this.Vm,this.u,this.timing,this.S,this.schedule,this.j,this.ge,this.C);g.M(this,this.B)};
VNa=function(a,b){var c=b.j,d=a.j.vf;if(a.j.vf){if(a.j.Aa){a.va("ombab",{});return}var e=Date.now();if(DE(a.j)&&!isNaN(a.qa)&&e-a.qa>1E3*a.policy.Uu){a.va("ombttl",{});return}if(a.j.df&&a.j.C||!a.policy.Iy&&a.j.isPremiere)return}e=a.Tf();if(a.Z&&AU(a.Z,ZC(c,d,e,a.policy.lc))){d=ZC(c,d,e,a.policy.lc);e=TNa(a.Z,d);var f;if(!a.j.vf||!a.policy.uv){if(!c.indexRange||!c.initRange)return;var h=c.indexRange.length+c.initRange.length,l=UNa(a.Z,d);if(!l){a.va("ombooo",{});return}h=l-h;if(0<e.length){var m;
if((f=null==(m=c.Vp(0))?void 0:Zwa(m,e,h))&&!$wa(f,a.currentTime)){a.va("ostmf",{ct:a.currentTime});return}}f&&0!==e.length||(f=c.Vp(h),a.va("ombcf",{}))}else if(DE(a.j))f=c.Km(Infinity);else if(a.j.isPremiere||a.j.uf)f=c.Km(0);f&&(m=function(n){try{n.isFailed()?(a.handleError(n.gg(),n.Mv()),MU(b,n),rD(n.info)&&mV(a.B,b,c,!0),a.Tj()):nV(a.B,n)&&a.Tj()}catch(p){n=zG(p),a.handleError(n.errorCode,n.details,n.severity),a.mj()}},c.D=!0,qD(f)&&(EU(b,new JT(a.policy,d,f,a.Z,m)),TLa(a.timing)))}else a.va("ombfmt",
{})};
qV=function(a,b){b=b||a.videoTrack&&a.videoTrack.u&&a.videoTrack.u.startTime||a.currentTime;var c=a.videoTrack,d=a.ge;b=d.nextVideo&&d.nextVideo.index.getSegmentNumberForTime(b)||0;d.Ba!==b&&(d.Ia={},d.Ba=b,ST(d,d.B));b=!ZT(d)&&-1<d.Z&&8E3>(0,g.T)()-d.Z;var e=d.nextVideo&&3*VT(d,d.nextVideo.info)<HT(d.ya);if(!b||e)TT(d),UT(d),d.ea=d.ea||d.nextVideo!==d.u;d.nextVideo&&!d.nextVideo.index.isLoaded()&&(d.Ba=-1);d=d.nextVideo;c.j!==d&&(c.j=d);c=a.audioTrack;a=a.ge.j;c.j!==a&&(c.j=a)};
rV=function(a,b){a.qH=b;a.policy.J||(a.isSuspended=!0)};
XNa=function(a){a.policy.Ld=!1;try{WNa(a)}catch(b){g.oz(b)}};
YNa=function(a){a.mediaSource&&a.mediaSource.j&&a.mediaSource.u&&(cz(a.mediaSource.j,a.ya,a),cz(a.mediaSource.u,a.ya,a));CU(a.audioTrack,null);CU(a.videoTrack,null);a.mediaSource=null};
sV=function(a,b){b=void 0===b?!1:b;YNa(a);b?a.policy.J=!0:a.policy.Te?rV(a,a.Ia):rV(a,!1);a.mj()};
tV=function(a){a.mediaSource&&a.mediaSource.Xf()&&(sV(a),a.policy.wt&&a.handleError("fmt.unplayable",{unexpected:1},1))};
ZNa=function(a,b){b&&a.xa.ED(b);a.policy.Uk&&a.ge.eb&&(b=gMa(a.ge,"a"),uV(a.xa,b.reason,b.audio.info))};
INa=function(a,b){if(fD(b.j[b.j.length-1])){a:{var c=a.ge;b=b.j[0].j;if(b.info.video){if(c.u!==b){c.u=b;c=cMa(c);break a}}else c.eb=c.J!==b,c.J=b;c=null}ZNa(a,c)}};
JNa=function(a,b,c){if(b instanceof Error&&(c.msg||(c.msg=""+b.message),g.pz(b),"WARNING"===b.level)){vV(a.xa,c);return}a.handleError("fmt.unplayable",c,1)};
wV=function(a){g.Yn(a.Qa)};
WNa=function(a){if(a.mediaSource){var b=a.mediaSource.j,c=a.mediaSource.u,d=$Na(a);if(d){if(a.policy.wu){if(!b.Rp()){var e=a.audioTrack.Kg();e&&(xV(a,a.audioTrack,b,e.info),yV(a,b,e))}!c.Rp()&&(b=a.videoTrack.Kg())&&(xV(a,a.videoTrack,c,b.info),yV(a,c,b))}a.ea||(a.ea=(0,g.T)(),a.policy.Z&&a.va("apdps",{r:d}))}else{if(a.ea){d=(0,g.T)()-a.ea;e=JU(a.audioTrack,!0);var f=JU(a.videoTrack,!0);a.policy.Z&&a.va("apdpe",{dur:d.toFixed(),abuf:(1E3*e).toFixed(),vbuf:(1E3*f).toFixed()});a.ea=0}if(a.C){d=a.C;
e=a.audioTrack;f=iE(a.mediaSource.u.Cg());if(d.C)d=QNa(d,f);else{if(f=e.Kg()){var h=f.u;h&&h.D&&h.u&&(e=e.B.length?e.B[0]:null)&&2<=e.state&&!e.isFailed()&&0===e.info.Uf&&(d.C=e,d.J=h,d.u=f.info,d.startTimeSecs=Date.now()/1E3,d.I=d.startTimeSecs,d.D=d.u.startTime)}d=NaN}d&&a.xa.seekTo(d,{Hs:!0,Ae:"pollSubsegmentReadahead",xp:!0})}d=!1;aOa(a,a.videoTrack,c)&&(d=!0,e=a.timing,e.C||(e.C=(0,g.T)(),VN("vda",e.C,e.j),e.B&&(g.Cv(),Ev(4))),e=a.timing,e.Ba||(e.Ba=(0,g.T)(),VN("vrb_f",e.Ba,e.j)));if(a.mediaSource&&
!a.mediaSource.Xf()&&(aOa(a,a.audioTrack,b)&&(d=!0,e=a.timing,e.B||(e.B=(0,g.T)(),VN("ada",e.B,e.j),e.C&&(g.Cv(),Ev(4))),e=a.timing,e.S||(e.S=(0,g.T)(),VN("arb_f",e.S,e.j))),!a.isDisposed()&&a.mediaSource)){!a.policy.Ld&&HU(a.videoTrack)&&HU(a.audioTrack)&&pE(a.mediaSource)&&!a.mediaSource.Th()&&(e=DU(a.audioTrack).j,e===a.j.j[e.info.id]&&(e=a.mediaSource,pE(e)&&(e.mediaSource?e.mediaSource.endOfStream():e.Nf.webkitSourceEndOfStream(e.Nf.EOS_NO_ERROR)),e=a.schedule,hya(CF(e)),e.D=yF(),e.S=!0));e=
a.policy.Ru;f=a.policy.ev;d||!(0<e||f)||!pE(a.mediaSource)||HU(a.videoTrack)||HU(a.audioTrack)||(b.PE(a.currentTime,f,e),c.PE(a.currentTime,f,e));if(c=d)c=a.mediaSource,c=!(c.j?c.j.supports(0):rE());c&&wV(a)}}}};
$Na=function(a){if(YMa(a.videoTrack))return"ssf";if(!a.policy.Yi&&ULa(a.u))return"cpm";if(a.policy.Fm||TMa(a.audioTrack)||TMa(a.videoTrack)&&(!a.policy.Yl||"f"!==a.videoTrack.j.info.j))return"";if(a.D.Gg()){var b=a.S;var c=a.videoTrack,d=a.audioTrack;if(c.B.length||d.B.length){var e=c.j.info.Tb+d.j.info.Tb;if(b.policy.Yl)e=10*(1-HT(b)/e),b=Math.max(e,b.policy.Hd),b=JU(d,!0)>=b&&JU(c,!0)>=b;else{var f=0;c=uU(c.C).concat(uU(d.C));c=g.r(c);for(d=c.next();!d.done;d=c.next())f+=d.value.u;f/=e;b=f<b.policy.Hd?
!1:10<f?!0:10>e*(10-f)/HT(b)}}else b=!0;if(!b)return"abr";b=a.videoTrack;if(0<b.B.length&&1===b.C.u.length&&yMa(b.C).info.I<b.qa)return"seek"}if(!a.mw||!a.policy.Sc||10>a.currentTime||360<a.videoTrack.j.info.video.j)return"";b=VMa(a.videoTrack,a.currentTime,a.policy.Sc)||VMa(a.audioTrack,a.currentTime,a.policy.Sc);return(0<a.videoTrack.B.length||0<a.audioTrack.B.length||gV(a.B,a.videoTrack,a.audioTrack)||gV(a.B,a.audioTrack,a.videoTrack))&&b?"nord":""};
aOa=function(a,b,c){if(c.Th())return!0;if(!c.RB())return!1;var d=b.Kg();if(!d||6===d.info.type)return!1;var e,f;(f=null==(e=a.u))||(f=e.policy.Yi&&ULa(e))||!(f=0!==e.u&&b===e.Ba)||(e=LU(e.I),f=d.info.Na>(e?e.Na:-1));if(f)return a.policy.Yi&&a.D.Gg()&&wV(a),!1;xV(a,b,c,d.info);if(a.j.u&&0===d.info.Kb){if(null==c.Rp()){e=DU(b);if(!(f=!e||e.j!==d.info.j)){b:if(e=e.J,f=d.info.J,e.length!==f.length)e=!1;else{for(var h=0;h<e.length;h++)if(!g.mc(e[h],f[h])){e=!1;break b}e=!0}f=!e}e=f}else e=c.Rp(),d.info.j.nw()&&
vxa(d),f=d.info.j.j,e=e!==f&&!g.mc(e,f),a.policy.bv&&(f=!!a.u.Z.get(d.info.Na),e&&f&&a.va("sdai",{skipadinit:1,sq:d.info.Na,itag:d.info.j.info.itag}),e=e&&!f);e&&(f=DU(b),a.va("initchg",{it:d.info.j.info.id,sr:!!f&&f.j===d.info.j,ty:d.info.type,seg:d.info.Na}));f=g.GD(d.info.j.info);(a.policy.yb&&f||a.policy.nz&&!f)&&!e&&(g.GD(d.info.j.info)?(CC(FD(d),1836019574),CC(FD(d),1718909296)):(e=new EC(FD(d)),Ewa(e),IC(e,524531317,!0),d.j=d.j.split(e.start+e.pos).ap),d.D=!1)}a.policy.Ni?d.B=void 0:a.policy.Zu&&
!c.Rp()&&(e=d.info.j.j,1===d.j.j.length||0!==d.info.Kb||d.D||d.B||3!==d.info.type||!e||(f=new SB([e]),TB(f,d.j),f=XB(f),e=(new SB([f])).split(e.length),d.B=e.TC,d.j=e.ap));e=a.C&&!!a.C.C&&b.j.info.audio;f=a.j.isManifestless||d.B||d.D;if(!(a.j.u&&0!==d.info.Kb||f&&!e)&&yV(a,c,d))return!0;if(e)return!1;e=a.currentTime+hV(a,b,!1);if(!(e=d.info.C>e)){e=a.policy.qa?(0,g.T)():0;f=d.D||d.B?d.info.j.j:null;h=d.j;d.B&&(h=new SB([]),TB(h,d.B),TB(h,d.j));var l=XB(h);h=a.policy.qa?(0,g.T)():0;f=bOa(a,c,l,d.info,
f);a.policy.qa&&(!d.info.Kb||d.info.Ge||10>d.info.C)&&a.va("sba",c.Sb({as:mD(d.info),pdur:Math.round(h-e),adur:Math.round((0,g.T)()-h)}));"s"===f?(a.Ba=0,a=!0):("i"===f||"x"===f?cOa(a,"checked",f,d.info):("q"===f&&(d.info.isVideo()?(c=a.policy,c.I=Math.floor(.8*c.I),c.Wa=Math.floor(.8*c.Wa),c.D=Math.floor(.8*c.D)):(c=a.policy,c.ea=Math.floor(.8*c.ea),c.Lc=Math.floor(.8*c.Lc),c.D=Math.floor(.8*c.D)),WT(a.ge,d.info.j)),vV(a.xa,{reattachOnAppend:f})),a=!1);e=!a}if(e)return!1;b.aj(d);return!0};
cOa=function(a,b,c,d){var e="fmt.unplayable",f=1;"x"===c||"m"===c?(e="fmt.unparseable",d.j.info.video&&!XT(a.ge)&&WT(a.ge,d.j)):"i"===c&&(15>a.Ba?(a.Ba++,e="html5.invalidstate",f=0):e="fmt.unplayable");d=iD(d);var h;d.mrs=null==(h=a.mediaSource)?void 0:qE(h);d.origin=b;d.reason=c;a.handleError(e,d,f)};
HMa=function(a,b,c,d,e){var f=a.j,h=!1,l=-1;for(p in f.j){var m=UD(f.j[p].info.mimeType)||f.j[p].info.isVideo();if(d===m)if(h=f.j[p].index,zD(h,b.Na)){m=b;var n=h.Gm(m.Na);n&&n.startTime!==m.startTime?(h.segments=[],h.LF(m),h=!0):h=!1;h&&(l=b.Na)}else h.LF(b),h=!0}if(0<=l){var p={};f.ma("clienttemp","resetMflIndex",(p[d?"v":"a"]=l,p),!1)}RLa(a.D,b,d,h);a.u.LJ(b,c,d,e)};
xV=function(a,b,c,d){b=DU(b);!b||b.Ge||gD(b,d)||c.abort();!c.Sy()||mE()?c.FL(d.j.info.containerType,d.j.info.mimeType):d.j.info.containerType!==c.Sy()&&a.va("ctu",{ct:mE(),prev_c:c.Sy(),curr_c:d.j.info.containerType});b=d.j.C;a.policy.Mj&&b&&(d=0+b.duration,b=-b.j,0===c.zC()&&d===c.LH()||c.LK(0,d),b!==c.Cd()&&(c.yE(b),vU&&JMa(a.audioTrack.C,c.cI())))};
yV=function(a,b,c){c.info.j.Yf();var d=c.info.j.j;if(!d||!b.RB()||b.Rp()===d)return!1;var e=d,f=b.EC();if(a.policy.Ni&&f&&b.isView()&&g.GD(c.info.j.info)){var h=new DataView(d.buffer,d.byteOffset,d.byteLength);(f=ywa(h,f))?e=new Uint8Array(f.buffer,f.byteOffset,f.byteLength):a.va("fenc",{})}f=null;(h=c.info.j.Vp(0))&&(f=h.j[0]);a.policy.qa&&a.va("sbi",b.Sb({as:mD(c.info)}));a.policy.Gk&&b.abort();d=bOa(a,b,e,f,d);if("s"!==d)return cOa(a,"sepInit",d,c.info),!0;c.info.isVideo()?(a=a.timing,a.Aa||(a.Aa=
(0,g.T)(),VN("vis_a",a.Aa,a.j))):(a=a.timing,a.I||(a.I=(0,g.T)(),VN("ais_a",a.I,a.j)));return b.Th()};
bOa=function(a,b,c,d,e){try{b.appendBuffer(c,d,e)}catch(f){if(f instanceof DOMException){if(11===f.code)return"i";if(12===f.code)return"x";if(22===f.code||0===f.message.indexOf("Not enough storage"))return b=Object.assign({name:"QuotaExceededError",buffered:eE(b.Cg()).replace(/,/g,"_"),message:g.zc(f.message),track:a.mediaSource?b===a.mediaSource.u?"v":"a":"u"},RNa()),a.handleError("player.exception",b),"q";g.oz(f)}return"u"}return a.mediaSource.Xf()?"m":"s"};
mU=function(a,b){a.xa.FD(b)};
hV=function(a,b,c){if(a.isSuspended)return 1;var d=b.j.info.audio?a.policy.ea:a.policy.I;!a.policy.Gb&&ZT(a.ge)&&(d=Math.max(d,b.j.info.audio?a.policy.Lc:a.policy.Wa));c&&(d+=a.policy.Ac);c=ZT(a.ge)?b.u?b.u.j.info.Tb:b.j.info.Tb:b.Tb*a.policy.Ok;d/=c;0<a.policy.Xl&&a.mediaSource&&pE(a.mediaSource)&&(b=b.j.info.video?a.mediaSource.u:a.mediaSource.j)&&!b.Th()&&(b=b.Cg(),c=fE(b,a.currentTime),0<=c&&(b=a.currentTime-b.start(c),d+=Math.max(0,Math.min(b-a.policy.Xl,a.policy.Su))));0<a.policy.D&&(d=Math.min(d,
a.policy.D));return d};
dOa=function(a,b){hS(b,"cms",function(c){a.policy.Z&&a.va("pathprobe",c)},function(c){a.xa.handleError(c)})};
eOa=function(a,b){a.J=b;a.u&&(a.u.C=b);a.J.RK(a.videoTrack.j.info.cf());a.B.u=a.J};
fOa=function(a,b){if(a.mediaSource&&a.mediaSource.u){b-=isNaN(a.timestampOffset)?0:a.timestampOffset;var c=a.u,d=b;if(0!==c.u&&c.C){var e=c.Vv(d);e!==c.qa&&(c.C.RJ(c.qa,e,c.ya,d),c.qa=e);c.ya=d}a.currentTime!==b&&a.resume();a.D.Gg()&&a.mediaSource&&!a.mediaSource.Xf()&&(c=a.currentTime<=b&&b<a.currentTime+10,d=gE(a.mediaSource.u.Cg(),a.currentTime+iV),c&&d&&(a.D.D=!1));a.D.Gg()||(a.currentTime=b);g.Yn(a.oD)}};
gOa=function(a,b){var c=GU(a.videoTrack).find(function(d){return d.startTime>=b&&SNa(a,d.startTime,!1)});
return c&&c.startTime<b+1.5*c.duration?c.startTime+.1:0};
SNa=function(a,b,c){if(!(a.videoTrack.j.Yf()&&a.audioTrack.j.Yf()&&a.mediaSource&&a.mediaSource.u&&a.mediaSource.j))return!1;if(c&&a.j.isManifestless&&(-1===a.videoTrack.I||-1===a.audioTrack.I))return!0;var d=LT(a.videoTrack,b,c);if(isNaN(d))return!1;a=LT(a.audioTrack,a.policy.Ba?b:d,c);return isNaN(a)?!1:!0};
hOa=function(a){a.mj();a.C&&NNa(a.C,a.videoTrack.j);wV(a);a=a.D;var b=Math.max(a.videoTrack.C.B||0,a.audioTrack.C.B||0);SMa(a.videoTrack);SMa(a.audioTrack);eya(a.j);a.j.isManifestless&&(a.B=!0);a.Ka.currentTime=b;a.D=!0;a.C=new SJ;return a.C};
zV=function(a,b){a.timestampOffset!==b&&(a.timestampOffset=b,a.u.J=a.timestampOffset,a.xa.TJ(a.timestampOffset),a.j.isManifestless&&(a.j.timestampOffset=a.timestampOffset))};
g.AV=function(a){this.rd=a};
BV=function(){g.az.apply(this,arguments)};
CV=function(a,b,c,d){BV.call(this);var e=this;this.B=-1;this.j={};this.C=new g.Xn(this.D,0,this);g.M(this,this.C);this.u=new g.Xn(function(){e.isDisposed()||(e.C.start(Math.random()*c),e.u.start(b))},a,this);
g.M(this,this.u);d.subscribe("fairplay_next_need_key_info",this.I,this)};
iOa=function(a){a=a.subarray(4);a=new Uint16Array(a.buffer,a.byteOffset,a.byteLength/2);return String.fromCharCode.apply(null,a)};
jOa=function(a){var b=a.interval,c=a.Pw;this.url=a.url;this.interval=b;this.Pw=c};
kOa=function(a,b){this.statusCode=a;this.message=b;this.j=this.heartbeatParams=this.errorMessage=null;this.u={};this.nextFairplayKeyId=null};
lOa=function(a){var b=$B(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=tC(b.slice(d+2));if(null==b)return null;a=new kOa(e,a.subarray(c+4));0!==a.statusCode&&(a.errorMessage=g.aDa(a.statusCode));if(c=b["Heartbeat-Url"])a.heartbeatParams=new jOa({url:c,interval:Number(b["Heartbeat-Interval-Secs"])||
60,Pw:Number(b["Heartbeat-Num-Retries"])||4});if(c=b["Authorized-Format-Types"])a.j=c.split(",");if(c=b["Key-Ids"]){if(c)for(d=c.split(";"),c={},d=g.r(d),e=d.next();!e.done;e=d.next())e=e.value.split(","),2===e.length&&(c[e[1]]=e[0]);else c={};a.u=c}a.nextFairplayKeyId=b["Next-Key-Id"];return a};
mOa=function(a,b,c){c=void 0===c?"":c;g.J.call(this);this.message=a;this.requestNumber=b;this.timer=c;this.onError=this.onSuccess=null;this.j=new g.ai(5E3,2E4,.2)};
nOa=function(a,b,c){a.onSuccess=b;a.onError=c};
pOa=function(a,b,c){var d={format:"RAW",method:"POST",postBody:a.message,responseType:"arraybuffer",withCredentials:!0,timeout:3E4,onSuccess:function(e){if(!a.isDisposed())if(0!==e.status&&e.response)if(WA("drm_net_r",void 0,a.timer),e=new Uint8Array(e.response),e=lOa(e))a.onSuccess(e,a.requestNumber);else a.onError(a,"drm.net","t.p");else oOa(a,e)},
onError:function(e){oOa(a,e)}};
c&&(b=Lea(b,"access_token",c));g.Au(b,d)};
oOa=function(a,b){if(!a.isDisposed())a.onError(a,b.status?"drm.net.badstatus":"drm.net.connect","t.r;c."+String(b.status),b.status)};
rOa=function(a,b,c,d){var e={timeout:3E4,onSuccess:function(f){if(!a.isDisposed()){WA("drm_net_r",void 0,a.timer);var h="LICENSE_STATUS_OK"===f.status?0:9999,l=null;if(f.license)try{l=Bc(f.license)}catch(y){g.oz(y)}if(0!==h||l){l=new kOa(h,l);0!==h&&f.reason&&(l.errorMessage=f.reason);if(f.authorizedFormats){h={};for(var m=[],n={},p=g.r(f.authorizedFormats),q=p.next();!q.done;q=p.next())if(q=q.value,q.trackType&&q.keyId){var u=qOa[q.trackType];if(u){"HD"===u&&f.isHd720&&(u="HD720");q.isHdr&&(u+="HDR");
h[u]||(m.push(u),h[u]=!0);var w=null;try{w=Bc(q.keyId)}catch(y){g.oz(y)}w&&(n[g.xc(w,4)]=u)}}l.j=m;l.u=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.isDisposed())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")},
onTimeout:function(){a.onError(a,"drm.net","rt.req."+a.requestNumber)}};
d&&(e.PN="Bearer "+d);g.tx(c,"player/get_drm_license",b,e)};
EV=function(a,b,c,d){g.az.call(this);this.videoData=a;this.Y=b;this.S=c;this.sessionId=d;this.C={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.J=this.ea=!1;this.B=null;this.ya=[];this.D=[];this.qa=!1;this.j={};this.Aa=NaN;this.status="";this.I=NaN;this.u=a.S;this.cryptoPeriodIndex=c.cryptoPeriodIndex;a={};Object.assign(a,this.Y.deviceParams);a.cpn=this.videoData.clientPlaybackNonce;this.videoData.Aa&&(a.vvt=this.videoData.Aa,this.videoData.mdxEnvironment&&(a.mdx_environment=this.videoData.mdxEnvironment));
this.Y.authUser&&(a.authuser=this.Y.authUser);this.Y.pageId&&(a.pageid=this.Y.pageId);isNaN(this.cryptoPeriodIndex)||(a.cpi=this.cryptoPeriodIndex.toString());var e=(e=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.nb()))?e[1]:"";"ATV"===e&&(a.cdt=e);this.C=a;this.C.session_id=d;this.Z=!0;"widevine"===this.u.flavor&&(this.C.hdr="1");"playready"===this.u.flavor&&(b=Number(g.JE(b.experiments,"playready_first_play_expiration")),!isNaN(b)&&0<=b&&(this.C.mfpe=""+b),this.Z=!1);this.baseUrl=g.QE(this.u)?iOa(c.initData).replace("skd://",
"https://"):this.u.u;this.fairplayKeyId=yi(this.baseUrl,"ek")||"";if(b=yi(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(b);this.Ba=this.videoData.K("html5_use_drm_retry");this.ya=c.cf?[g.xc(c.initData,4)]:c.u;DV(this,{sessioninit:c.cryptoPeriodIndex});this.status="in"};
vOa=function(a,b){DV(a,{createkeysession:1});a.status="gr";WA("drm_gk_s",void 0,a.videoData.La);a.url=sOa(a);try{a.B=b.createSession(a.S,function(c){DV(a,{m:c})})}catch(c){b="t.g";
c instanceof DOMException&&(b+=";c."+c.code);a.ma("licenseerror","drm.unavailable",1,b,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}a.B&&(tOa(a.B,function(c,d){uOa(a,c,d)},function(c,d,e){if(!a.isDisposed()){d=void 0;
var f=1;g.QE(a.u)&&g.SF(a.Y)&&a.Y.K("html5_enable_safari_fairplay")&&1212433232===e&&(d="ERROR_HDCP",f=a.Y.K("html5_safari_fairplay_ignore_hdcp")?0:f);a.error("drm.keyerror",f,c,d)}},function(){a.isDisposed()||(DV(a,{onkyadd:1}),a.J||(a.ma("sessionready"),a.J=!0))},function(c){a.Eq(c)}),g.M(a,a.B))};
sOa=function(a){var b=a.baseUrl;Zua(b)||a.error("drm.net",2,"t.x");if(!yi(b,"fexp")){var c=["23898307","23914062","23916106","23883098"].filter(function(e){return a.Y.experiments.experiments[e]});
0<c.length&&(a.C.fexp=c.join())}c=g.r(Object.keys(a.C));for(var d=c.next();!d.done;d=c.next())d=d.value,b=Lea(b,d,a.C[d]);return b};
uOa=function(a,b,c){if(!a.isDisposed())if(b){DV(a,{onkmtyp:c});a.status="km";switch(c){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":wOa(a,b);return;default:a.ma("ctmp","message_type",{t:c,l:b.byteLength})}a.ea||(WA("drm_gk_f",void 0,a.videoData.La),a.ea=!0,a.ma("newsession",a));if(NE(a.u)&&(b=xOa(b),!b))return;g.QE(a.u)&&!a.videoData.useInnertubeDrmService()&&(b=ZB(g.xc(b)));b=new mOa(b,++a.requestNumber,a.videoData.La);nOa(b,function(d){yOa(a,
d)},function(d,e,f){if(!a.isDisposed()){var h=0,l;
(l=3<=d.j.u)||(l=a.Ba&&36E4<(0,g.T)()-a.Aa);l&&(h=1,e="drm.net.retryexhausted");DV(a,{onlcsrqerr:e,info:f});a.error(e,h,f);a.shouldRetry(yG(h),d)&&zOa(a,d)}});
g.M(a,b);AOa(a,b)}else a.error("drm.unavailable",1,"km.empty")};
wOa=function(a,b){DV(a,{sdpvrq:1});a.I=Date.now();if("widevine"!==a.u.flavor)a.error("drm.provision",1,"e.flavor;f."+a.u.flavor+";l."+b.byteLength);else{var c={cpn:a.videoData.clientPlaybackNonce};Object.assign(c,a.Y.deviceParams);c=g.wi("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",c);b={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:$B(b)}),responseType:"arraybuffer"};
g.Du(c,b,3,500).then(fu(function(d){d=d.xhr;if(!a.isDisposed()){d=new Uint8Array(d.response);var e=$B(d);try{var f=JSON.parse(e)}catch(h){}f&&f.signedResponse?(a.ma("ctmp","drminfo",{provisioning:1}),f=(Date.now()-a.I)/1E3,a.I=NaN,a.ma("ctmp","provs",{et:f.toFixed(3)}),a.B&&a.B.update(d)):(f=f&&f.error&&f.error.message,d="e.parse",f&&(d+=";m."+f),a.error("drm.provision",1,d))}}),fu(function(d){a.isDisposed()||a.error("drm.provision",1,"e."+d.errorCode+";c."+(d.xhr&&d.xhr.status))}))}};
FV=function(a){var b;if(b=a.Z&&null!=a.B)a=a.B,b=!(!a.j||!a.j.keyStatuses);return b};
AOa=function(a,b){a.status="km";WA("drm_net_s",void 0,a.videoData.La);if(a.videoData.useInnertubeDrmService()){var c=new g.sx(a.Y.Li),d={context:g.wv(c.config_||g.vv())};d.drmSystem=BOa[a.u.flavor];d.videoId=a.videoData.videoId;d.cpn=a.videoData.clientPlaybackNonce;d.sessionId=a.sessionId;d.licenseRequest=g.xc(b.message);d.drmParams=a.videoData.drmParams;isNaN(a.cryptoPeriodIndex)||(d.isKeyRotated=!0,d.cryptoPeriodIndex=a.cryptoPeriodIndex);var e,f,h=!!(null==(e=a.videoData.u)?0:null==(f=e.video)?
0:f.isHdr());d.drmVideoFeature=h?"DRM_VIDEO_FEATURE_PREFER_HDR":"DRM_VIDEO_FEATURE_SDR";if(d.context&&d.context.client){if(e=a.Y.deviceParams)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.Aa&&(d.context.user.credentialTransferTokens=[{token:a.videoData.Aa,
scope:"VIDEO"}]);d.context.request.mdxEnvironment=a.videoData.mdxEnvironment||d.context.request.mdxEnvironment;a.videoData.Lb&&(d.context.user.kidsParent={oauthToken:a.videoData.Lb});g.QE(a.u)&&(d.fairplayKeyId=g.xc(waa(a.fairplayKeyId)));g.uG(g.sI(a.videoData)).then(function(l){rOa(b,d,c,l);a.status="rs"})}else a.error("drm.net",2,"t.r;ic.0")}else g.uG(g.sI(a.videoData)).then(function(l){pOa(b,a.url,l);
a.status="rs"})};
yOa=function(a,b){if(!a.isDisposed())if(DV(a,{onlcsrsp:1}),a.status="rr",0!==b.statusCode)a.error("drm.auth",1,"t.f;c."+b.statusCode,b.errorMessage||void 0);else{WA("drm_kr_s",void 0,a.videoData.La);if(b.heartbeatParams&&b.heartbeatParams.url&&a.videoData.K("outertube_streaming_data_always_use_staging_license_service")){var c=a.u.u.match(/(.*)youtube.com/g);c&&(b.heartbeatParams.url=c[0]+b.heartbeatParams.url)}b.heartbeatParams&&a.ma("newlicense",b.heartbeatParams);b.j&&(a.D=b.j,a.Y.K("html5_heartbeat_wait_for_drm_killswitch")||
(a.videoData.useInnertubeDrmService()&&!a.videoData.kF&&a.ma("newlicense",new jOa({})),a.videoData.kF=!0),a.qa=Ol(a.D,function(d){return d.includes("HDR")}));
b.u&&(a.j=nf(b.u,function(d){return{type:d,status:"unknown"}}));
OE(a.u)&&!a.videoData.useInnertubeDrmService()?b.message=Bc($B(b.message)):PE(a.u)&&a.videoData.useInnertubeDrmService()&&(b.message=ZB(g.xc(b.message)));a.B&&(DV(a,{updtks:1}),a.status="ku",a.B.update(b.message).then(function(){WA("drm_kr_f",void 0,a.videoData.La);FV(a)||(DV(a,{ksApiUnsup:1}),a.ma("keystatuseschange",a))},function(d){d="msuf.req."+a.requestNumber+";msg."+g.zc(d.message);
a.error("drm.keyerror",1,d)}));
a.J&&(a.Aa=(0,g.T)());g.QE(a.u)&&a.ma("fairplay_next_need_key_info",a.baseUrl,b.nextFairplayKeyId)}};
zOa=function(a,b){var c=b.j.getValue();c=new g.Xn(function(){AOa(a,b)},c);
g.M(a,c);c.start();g.bi(b.j);DV(a,{rtyrq:1})};
COa=function(a,b){for(var c=[],d=g.r(Object.keys(a.j)),e=d.next();!e.done;e=d.next())e=e.value,c.push(e+"_"+a.j[e].type+"_"+a.j[e].status);return c.join(b)};
GV=function(a){var b={};b[a.status]=FV(a)?COa(a,"."):a.D.join(".");return b};
DOa=function(a,b){switch(a){case "highres":case "hd2880":a="UHD2";break;case "hd2160":case "hd1440":a="UHD1";break;case "hd1080":case "hd720":a="HD";break;case "large":case "medium":case "small":case "light":case "tiny":a="SD";break;default:return""}b&&(a+="HDR");return a};
HV=function(a,b){for(var c in a.j)if("usable"===a.j[c].status&&a.j[c].type===b)return!0;return!1};
DV=function(a,b){var c=void 0===c?!1:c;wG(b);(c||vG(a.Y))&&a.ma("ctmp","drmlog",b)};
EOa=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};
xOa=function(a){for(var b="",c=0;c<a.length;c+=2)b+=String.fromCharCode(a[c]);a=zfa(new DOMParser,g.Ag(g.ig("Uses only text content."),b));return a?(a=a.querySelector("Challenge"))&&a.childNodes&&0!==a.childNodes.length?new Uint8Array((0,g.bV)(cba(a.childNodes[0].nodeValue)).buffer):null:null};
FOa=function(a,b,c,d){if(a=ZB(g.xc(a)))a={format:"RAW",method:"POST",postBody:a,responseType:"arraybuffer",withCredentials:!0,timeout:3E4},c=Mea(c,d),g.Du(c,a,3,500).then(function(e){e=new Uint8Array(e.xhr.response);(e=lOa(e))&&e.message&&b.update(e.message)})};
IV=function(a,b,c,d,e){g.J.call(this);this.element=a;this.S=b;this.initData=c;this.j=d;this.u=e;this.sessionId="";this.J=this.I=this.B=this.D=null;this.C=new g.XD(this);g.M(this,this.C);GOa(this)};
GOa=function(a){a.j?(a.C.T(a.j,"message",a.rW),a.C.T(a.j,"keystatuseschange",a.Eq),a.j.closed&&a.j.closed.then(fu(function(){a.isDisposed()||Mu("xboxone")&&a.B&&a.B("closed")}),null)):a.u&&(Zy(a.C,a.u,["mskeymessage",
"webkitkeymessage"],a.oR),Zy(a.C,a.u,["mskeyerror","webkitkeyerror"],a.nR),Zy(a.C,a.u,["mskeyadded","webkitkeyadded"],a.mR))};
tOa=function(a,b,c,d,e){a.D=b;a.B=c;a.I=d;a.J=e};
HOa=function(a,b,c){g.eu(c);a.B&&(c instanceof DOMException&&(b+=";n."+c.name+";m."+c.message),a.B(b))};
JV=function(a,b){g.J.call(this);this.element=a;this.j=b;this.I={};this.C=null;this.D=new g.XD(this);this.B=this.u=null;g.M(this,this.D)};
JOa=function(a,b){b=IOa(b,a.j.ya);a=a.B.createSession("video/mp4",b);return new IV(null,null,null,null,a)};
KOa=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);a=a.B.createSession("video/mp4",b,c);return new IV(null,null,null,null,a)};
KV=function(a,b){var c=a.I[b.sessionId];!c&&a.C&&(c=a.C,a.C=null,c.sessionId=b.sessionId,a.I[b.sessionId]=c);return c};
IOa=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};
LV=function(a,b){g.J.call(this);this.j=g.hh("video");this.u=null;this.D=[];this.C=new g.XD(this);this.B=new KE("fairplay","com.youtube.fairplay","",b);this.B.ya=a;g.M(this,this.C);this.init()};
MV=function(a,b,c,d){BV.call(this);var e=this;this.D=a;this.C=b;this.B=c;this.j=[];this.u=new g.Xn(function(){e.ma("log_qoe",{wvagt:"timer",reqlen:e.j?e.j.length:-1});if(e.j){if(0<e.j.length){var f=e.j.shift();LOa(e,f.info)}0<e.j.length&&(f=e.j[0].time-(0,g.T)(),e.u.start(Math.max(0,f)))}},0);
g.M(this,this.u);d.subscribe("widevine_set_need_key_info",this.I,this)};
LOa=function(a,b){a:{var c=b.cryptoPeriodIndex;if(isNaN(c)&&0<a.B.size)c=!0;else{for(var d=g.r(a.B.values()),e=d.next();!e.done;e=d.next())if(e.value.cryptoPeriodIndex===c){c=!0;break a}c=!1}}a.ma("log_qoe",{wvagt:"reqnews",canskip:c});c||a.ma("rotated_need_key_info_ready",b)};
NV=function(){this.keys=[];this.values=[]};
OV=function(a){a.keys=[];a.values=[]};
PV=function(a,b,c){g.az.call(this);this.element=a;this.videoData=b;this.Y=c;this.j=this.videoData.S;this.drmSessionId=this.videoData.drmSessionId||g.Zra();this.u=new Map;this.I=new NV;this.J=new NV;this.B=[];this.Ia=2;this.qa=new g.XD(this);this.La=this.ya=!1;this.heartbeatParams=null;this.Aa=this.Z=!1;this.D=null;this.Ba=!1;(a=this.element)&&(a.addKey||a.webkitAddKey)||LE()||SE(c.experiments);c=this.videoData.Xi;this.S="fairplay"===this.j.flavor||c?EH:MOa;this.C=new JV(this.element,this.j);g.M(this,
this.C);ME(this.j)&&(this.ea=new JV(this.element,this.j),g.M(this,this.ea));g.M(this,this.qa);c=this.element;this.j.keySystemAccess?this.qa.T(c,"encrypted",this.vW):Zy(this.qa,c,ME(this.j)?["msneedkey"]:["needkey","webkitneedkey"],this.F1);NOa(this);a:switch(c=this.j,a=this.Y.experiments,b=this.u,c.flavor){case "fairplay":19.2999<wma()?(a=c.lr,c=c.jr,c>=a&&(c=.75*a),b=.5*(a-c),c=new CV(b,a,a-b-c,this)):c=null;break a;case "widevine":c=new MV(a.jb("disable_license_delay"),!a.jb("h5_widevine_keyrotationagent_optimization_killswitch"),
b,this);break a;default:c=null}if(this.D=c)g.M(this,this.D),this.D.subscribe("rotated_need_key_info_ready",this.MN,this),this.D.subscribe("log_qoe",this.zi,this);SE(this.Y.experiments);this.zi({cks:this.j.Dg()});c=this.j;"com.youtube.widevine.forcehdcp"===c.keySystem&&c.B&&(this.Qa=new LV(this.videoData.ya,this.Y.experiments),g.M(this,this.Qa))};
NOa=function(a){var b=a.C.attach();b?b.then(fu(function(){OOa(a)}),fu(function(c){if(!a.isDisposed()){g.eu(c);
var d="t.a";c instanceof DOMException&&(d+=";n."+c.name+";m."+c.message);a.ma("licenseerror","drm.unavailable",1,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(a.zi({mdkrdy:1}),a.Z=!0);
a.ea&&(b=a.ea.attach())};
QOa=function(a,b,c){a.La=!0;c=new hU(b,c);a.Y.K("html5_eme_loader_sync")&&(a.I.get(b)||a.I.set(b,c));POa(a,c)};
POa=function(a,b){if(!a.isDisposed()){a.zi({onInitData:1});if(a.Y.K("html5_eme_loader_sync")&&a.videoData.B&&a.videoData.B.j){var c=a.J.get(b.initData);b=a.I.get(b.initData);if(!c||!b)return;b=c;c=b.initData;a.I.remove(c);a.J.remove(c)}a.zi({initd:b.initData.length,ct:b.contentType});if("widevine"===a.j.flavor)if(a.ya&&!a.videoData.isLivePlayback)QV(a);else{if(!(a.Y.K("vp9_drm_live")&&a.videoData.isLivePlayback&&b.cf)){a.ya=!0;c=b.cryptoPeriodIndex;var d=b.j;uMa(b);b.cf||(d&&b.j!==d?a.ma("ctmp","cpsmm",
{emsg:d,pssh:b.j}):c&&b.cryptoPeriodIndex!==c&&a.ma("ctmp","cpimm",{emsg:c,pssh:b.cryptoPeriodIndex}));a.ma("widevine_set_need_key_info",b)}}else a.MN(b)}};
OOa=function(a){if(!a.isDisposed())if(a.Y.K("html5_drm_set_server_cert")&&!g.aG(a.Y)){var b=a.C.setServerCertificate();b?b.then(fu(function(c){vG(a.Y)&&a.ma("ctmp","ssc",{success:c})}),fu(function(c){a.ma("ctmp","ssce",{n:c.name,
m:c.message})})).then(fu(function(){RV(a)})):RV(a)}else RV(a)};
RV=function(a){a.isDisposed()||(a.Z=!0,a.zi({onmdkrdy:1}),QV(a))};
ROa=function(a){return"widevine"===a.j.flavor&&a.videoData.K("html5_drm_cpi_license_key")};
QV=function(a){if(a.La&&a.Z&&!a.Aa){for(;a.B.length;){var b=a.B[0],c=ROa(a)?vMa(b):g.xc(b.initData);if(a.u.get(c))if("fairplay"===a.j.flavor)a.u.delete(c);else{a.B.shift();continue}uMa(b);break}a.B.length&&a.createSession(a.B[0])}};
SOa=function(a){var b;if(b=g.Ou()){var c;b=!(null==(c=a.C.u)||!c.getMetrics)}b&&(b=a.C.getMetrics())&&(b=g.fC(b),a.ma("ctmp","drm",{metrics:b}))};
TV=function(a){g.J.call(this);var b=this;this.xa=a;this.Sa=this.xa.V();this.videoData=this.xa.getVideoData();this.Bz=0;this.D=this.u=!1;this.C=0;this.B=g.RE(this.Sa.experiments,"html5_delayed_retry_count");this.j=new g.Xn(function(){SV(b.xa)},g.RE(this.Sa.experiments,"html5_delayed_retry_delay_ms"));
g.M(this,this.j)};
VV=function(a,b,c){var d=a.videoData.u,e=a.videoData.D;if(("progressive.net.retryexhausted"===b||"fmt.unplayable"===b||"fmt.decode"===b)&&!a.xa.dh.D&&d&&"22"===d.itag)return a.xa.dh.D=!0,a.Ed("qoe.restart",{reason:"fmt.unplayable.22"}),UV(a.xa),!0;var f=!1,h=a.Bz+3E4<(0,g.T)()||a.j.isActive();if(a.Sa.K("html5_empty_src")&&a.videoData.isAd()&&"fmt.unplayable"===b&&/Empty src/.test(""+c.msg))return c.origin="emptysrc",a.Ed("auth",c),!0;var l;if(l=!h)l=a.xa.Yp(),l=!!(l.Df()||l.isInline()||l.isBackground()||
l.jw()||l.ew());l&&(c.nonfg="paused",h=!0,a.xa.pauseVideo());("fmt.decode"===b||"fmt.unplayable"===b)&&(null==e?0:Nva(e)||Mva(e))&&(Iya(a.Sa.j,e.j),c.acfallexp=e.j,f=h=!0);!h&&0<a.B&&(a.j.start(),h=!0,c.delayed="1",--a.B);e=a.xa.Ka;if(!h&&((null==d?0:SD(d))||(null==d?0:DB(d)))){var m;if(a.videoData.K("html5_disable_codec_for_playback_on_error")&&e){l=e.ge;var n=d.j;l.Ya.has(n)?l=!1:(l.Ya.add(n),l.Z=-1,ST(l,l.B),l=!0);l&&(m="cfallp")}else Iya(a.Sa.j,d.j),m="cfallexp";m&&(f=h=!0,c[m]=d.j)}if(!h)return TOa(a,
c);a.Bz=(0,g.T)();h=a.videoData;h.kb?(h=h.kb.UM(),m=Date.now()/1E3+1800,h=h<m):h=!1;c.e=b;h&&(c.staleprog="1");a.Ed("qoe.restart",c);if(h&&UOa(a))return VOa(a),!0;Mu("philips")&&WOa(a);d&&SD(d)?(f=a.Sa.j,f.Z=!0,f=f.j=!0):e?(b=(b=DU(e.videoTrack)||e.videoTrack.u)?b.j:e.videoTrack.j,b.J+=1,WT(e.ge,b,!0)):a.videoData.kb&&a.videoData.kb.FK();a.j.isActive()||SV(a.xa,f);return!0};
TOa=function(a,b){if(a.videoData.Wa)return!1;a.Sa.yb+=1;if(10>=a.Sa.yb)return!1;b.exiled=""+a.Sa.yb;a.Ed("qoe.start15s",b);a.xa.ma("playbackstalledatstart");return!0};
WOa=function(a){if("GAME_CONSOLE"!==a.Sa.deviceParams.cplatform)try{window.close()}catch(b){}};
UOa=function(a){return a.u?!0:"yt"!==a.Sa.La?!1:a.videoData.Wa?25>a.videoData.lc:!a.videoData.lc};
VOa=function(a){if(!a.u){a.u=!0;var b=a.xa.getPlayerState();b=g.V(b,4)||b.isSuspended();a.xa.Ro();b&&!tI(a.videoData)||a.xa.ma("signatureexpired")}};
XOa=function(a,b){if((a=a.xa.Ud())&&("fmt.unplayable"===b.errorCode||"html5.invalidstate"===b.errorCode)){var c=a.gg();b.details.merr=c?c.toString():"0";b.details.msg=a.rf()}};
ZOa=function(a,b){if("403"===b.details.rc){var c=b.errorCode;c="net.badstatus"===c||"manifest.net.retryexhausted"===c}else c=!1;if(!c&&!a.u)return!1;b.details.sts="19233";if(UOa(a))return yG(b.severity)&&(b=Object.assign({e:b.errorCode},b.details),b=new xG("qoe.restart",b)),a.Ed(b.errorCode,b.details),VOa(a),!0;6048E5<(0,g.T)()-a.Sa.Ne&&YOa(a,"signature");return!1};
YOa=function(a,b){try{window.location.reload();a.Ed("qoe.restart",{detail:"pr."+b});return}catch(c){}a.Sa.K("tvhtml5_retire_old_players")&&g.aG(a.Sa)&&WOa(a)};
$Oa=function(a,b){var c=a.Sa.j;c.D=!1;c.j=!0;a.Ed("qoe.restart",{e:void 0===b?"fmt.noneavailable":b,detail:"hdr"});SV(a.xa,!0)};
aPa=function(a,b,c,d){this.videoData=a;this.j=b;this.reason=c;this.u=d};
WV=function(a,b,c){this.Y=a;this.DA=b;this.xa=c;this.Z=this.I=this.J=this.u=this.j=this.C=this.S=this.B=0;this.playbackRate=1;this.D=!1};
XV=function(a,b,c){!a.Y.K("html5_tv_ignore_capable_constraint")&&g.aG(a.Y)&&(c=c.compose(bPa(a,b)));return c};
cPa=function(a,b){var c=!0,d=a.playbackRate;if(a.K("html5_cap_quality_for_tv_hfr")){var e;c=YV(a,null==(e=b.j)?void 0:e.videoInfos);d=a.xa.getPlaybackRate()}return 1<d&&c?(a=Cya(a.Y.j,b.j.videoInfos,d),new sB(0,a,!0,"o")):new sB(0,0,!1,"o")};
YV=function(a,b){return b&&g.aG(a.Y)?a.K("html5_cap_quality_for_tv_hfr")?b.some(function(c){return 32<c.video.fps}):32<b[0].video.fps:!1};
dPa=function(a,b){var c=a.xa.CC();if(a.K("html5_use_video_quality_cap_for_ustreamer_constraint")&&c&&0<c.KL&&vB(b.videoData.Lj))a=c.KL,b.videoData.Lj=new sB(0,a,!1,"u");else{var d;if(c&&(null==(d=c.HG)?0:d.length)&&vB(b.videoData.Lj)){a=new Map;d=g.r(b.j.videoInfos);for(var e=d.next();!e.done;e=d.next())e=e.value,a.set(+e.itag,e.video.j);d=[];c=g.r(c.HG);for(e=c.next();!e.done;e=c.next())(e=a.get(e.value))&&d.push(e);a=Math.max.apply(Math,g.t(d));b.videoData.Lj=new sB(0,a,!1,"u")}}return b.videoData.Lj};
bPa=function(a,b){if(g.aG(a.Y)&&EB(a.Y.j,FB.HEIGHT))var c=b.j.videoInfos[0].video.j;else{var d=!!b.j.j;var e;PF(a.Y)&&(e=window.screen&&window.screen.width?new g.Kg(window.screen.width,window.screen.height):null);e||(e=a.Y.Tk?a.Y.Tk.clone():a.DA.Ki());(RF||AT||d)&&e.scale(g.iG());d=e;TH(b.videoData);b=b.j.videoInfos;if(b.length){e=.85;var f=b[0].video;"MESH"!==f.projectionType&&"EQUIRECTANGULAR"!==f.projectionType&&"EQUIRECTANGULAR_THREED_TOP_BOTTOM"!==f.projectionType||NF||(e=.45);a=g.RE(a.Y.experiments,
"html5_viewport_undersend_maximum");for(f=0;f<b.length;f++){c=b[f];var h=c.video;if(null===d||h.width*e<d.width&&h.height*e<d.height){a&&f&&h.width<d.width*a&&h.height<d.height*a&&(c=b[f-1]);break}}d=c.video;c=new sB(0,"93"===c.itag?g.tB[LD(d.width,d.height)]:d.j,!1,"r")}else c=EH;c=c.j}c&&(c=Math.max(c,360));return new sB(0,c,!1,"r")};
ePa=function(a){var b,c,d,e;return g.z(function(f){switch(f.j){case 1:return a.j.j&&"function"===typeof(null==(b=navigator.mediaCapabilities)?void 0:b.decodingInfo)?g.x(f,Promise.resolve(),2):f.return(Promise.resolve());case 2:c=g.r(a.j.videoInfos),d=c.next();case 3:if(d.done){f.Ma(0);break}e=d.value;return g.x(f,xxa(e),4);case 4:d=c.next(),f.Ma(3)}})};
gPa=function(a,b){if(!b.videoData.u||a.K("html5_disable_performance_downgrade"))return!1;6E4<g.Ra()-a.S&&(a.B=0);a.B++;a.S=g.Ra();if(4!==a.B)return!1;fPa(a,b.videoData.u);return!0};
iPa=function(a,b,c,d){if(!b||!c||!b.videoData.u)return!1;var e=g.RE(a.Y.experiments,"html5_df_downgrade_thresh"),f=a.K("html5_log_media_perf_info"),h=g.RE(a.Y.experiments,"hfr_dropped_framerate_fallback_threshold");if(!(5E3>(0,g.T)()-a.C?0:f||0<e||0<h))return!1;var l=((0,g.T)()-a.C)/1E3;a.C=(0,g.T)();c=c.wB();if(!c)return!1;var m=c.droppedVideoFrames-a.I,n=c.totalVideoFrames-a.Z;a.I=c.droppedVideoFrames;a.Z=c.totalVideoFrames;var p=0===c.displayCompositedVideoFrames?0:c.displayCompositedVideoFrames||
-1;f&&vG(a.Y)&&a.xa.va("ddf",{dr:c.droppedVideoFrames,de:c.totalVideoFrames,comp:p});if(d)return a.j=0,a.u=0,!1;d=60<n?m/n:0;0<d&&(a.J=d);a.u=0<h&&60*d>h?a.u+1:0;if(45<(n-m)/l||!e||g.aG(a.Y))return!1;a.j=d>e?a.j+1:0;if(3!==a.j)return!1;fPa(a,b.videoData.u);a.xa.va("dfd",Object.assign({dr:c.droppedVideoFrames,de:c.totalVideoFrames},hPa()));return!0};
jPa=function(a,b){return 0>=g.RE(a.Y.experiments,"hfr_dropped_framerate_fallback_threshold")||!(b&&b.video&&32<b.video.fps)?!1:3<=a.u?(a.u=0,!0):!1};
fPa=function(a,b){var c=b.j,d=b.video.fps;b=b.video.j-1;var e=GE();c=kya(c,d);0<+e[c]&&(b=Math.min(+e[c],b));e[c]!==b&&(e[c]=b,g.Nz("yt-player-performance-cap",e,604800));a.xa.kx()};
kPa=function(a,b){if(!b.j.j)return a.D?new sB(0,360,!1,"b"):EH;for(var c=!1,d=!1,e=g.r(b.j.videoInfos),f=e.next();!f.done;f=e.next())SD(f.value)?c=!0:d=!0;c=c&&d;d=0;f=g.RE(a.Y.experiments,"html5_performance_cap_floor");a=a.Y.isMobile?240:f;b=g.r(b.j.videoInfos);for(f=b.next();!f.done;f=b.next())if(e=f.value,!c||!SD(e))if(f=HE(e.j,e.video.fps),e=e.video.j,Math.max(f,a)>=e){d=e;break}return new sB(0,d,!1,"b")};
lPa=function(a){a=a.xa.Yp();return a.isInline()?new sB(0,480,!1,"v"):a.isBackground()&&60<Nx()/1E3?new sB(0,360,!1,"v"):EH};
nPa=function(a,b,c){if(a.Y.experiments.jb("html5_disable_client_autonav_cap_for_onesie")&&"onesie"===b.fetchType||g.aG(a.Y)&&(1080<=FE(-1)||b.osid))return EH;var d=g.RE(a.Y.experiments,"html5_autonav_quality_cap"),e=g.RE(a.Y.experiments,"html5_autonav_cap_idle_secs");return d&&b.dn&&Nx()/1E3>e?(c&&(d=mPa(a,c,d)),new sB(0,d,!1,"e")):EH};
mPa=function(a,b,c){if(a.K("html5_optimality_defaults_chooses_next_higher")&&c)for(a=b.j.videoInfos,b=1;b<a.length;b++)if(a[b].video.j<c)return a[b-1].video.j;return c};
oPa=function(a,b){a.K("html5_log_media_perf_info")&&(a.xa.va("perfdb",hPa()),a.xa.va("hwc",{nch:navigator.hardwareConcurrency},!0),b&&a.xa.va("mcdb",{itags:b.j.videoInfos.filter(function(c){var d;return!1===(null==(d=c.u)?void 0:d.smooth)}).map(function(c){return c.itag}).join("-")}))};
hPa=function(){return nf(GE(),function(a){return""+a})};
ZV=function(a,b){g.J.call(this);this.j=a;this.J=b;this.u=-1;this.I=!1;this.B=-1;this.playerState=new g.YJ;this.seekCount=this.nonNetworkErrorCount=this.networkErrorCount=this.rebufferTimeSecs=this.playTimeSecs=this.D=0;this.delay=new g.Xn(this.send,6E4,this);this.C=!1;g.M(this,this.delay)};
$V=function(a){0<=a.u||(3===a.j.xa.getVisibilityState()?a.I=!0:(a.u=g.zS(a.j),a.delay.start()))};
pPa=function(a){if(!(0>a.B)){var b=g.zS(a.j),c=b-a.D;a.D=b;8===a.playerState.state?a.playTimeSecs+=c:g.fK(a.playerState)&&!g.V(a.playerState,16)&&(a.rebufferTimeSecs+=c)}};
aW=function(a,b){b?qPa.test(a):(a=g.lu(a),Object.keys(a).includes("cpn"))};
bW=function(a,b,c,d,e,f,h){var l={format:"RAW"},m={};if(ou(a)&&pu()){if(h){var n;2!==(null==(n=rPa.uaChPolyfill)?void 0:n.state.type)?h=null:(h=rPa.uaChPolyfill.state.data.values,h={"Synth-Sec-CH-UA-Arch":h.architecture,"Synth-Sec-CH-UA-Model":h.model,"Synth-Sec-CH-UA-Platform":h.platform,"Synth-Sec-CH-UA-Platform-Version":h.platformVersion,"Synth-Sec-CH-UA-Full-Version":h.uaFullVersion});m=Object.assign(m,h);l.withCredentials=!0}(h=g.O("EOM_VISITOR_DATA"))?m["X-Goog-EOM-Visitor-Id"]=h:d?m["X-Goog-Visitor-Id"]=
d:g.O("VISITOR_DATA")&&(m["X-Goog-Visitor-Id"]=g.O("VISITOR_DATA"));c&&(m["X-Goog-PageId"]=c);e&&(m.Authorization="Bearer "+e);h||m["X-Goog-Visitor-Id"]||e||c?l.withCredentials=!0:b.K("html5_send_cpn_with_options")&&qPa.test(a)&&(l.withCredentials=!0)}0<Object.keys(m).length&&(l.headers=m);f&&(l.onFinish=f);return 1<Object.keys(l).length?l:null};
cW=function(a,b,c,d,e,f,h,l){pu()&&c.token&&(a=mu(a,{ctt:c.token,cttype:c.nL,mdx_environment:c.mdxEnvironment}));f||l&&d.K("nwl_skip_retry")?(null==b?b={}:aW(a,d.K("html5_assert_cpn_with_regex")),h?d.K("use_new_nwl_saw")?cx().sendAndWrite(a,b):nx(a,b):d.K("use_new_nwl_stw")?cx().sendThenWrite(a,b,l):mx(a,b,l)):d.Ni?(b=b||{},aW(a,d.K("html5_assert_cpn_with_regex")),d.Ni.enqueue(a,b)):b?(aW(a,d.K("html5_assert_cpn_with_regex")),g.Au(a,b)):g.Uw(a,e)};
g.eW=function(a){g.J.call(this);var b=this;this.j=a;this.logger=new g.lT("qoe");this.u={};this.sequenceNumber=1;this.kb=NaN;this.Dd="N";this.S=this.Rb=this.yb=this.eb=this.C=0;this.Ia=this.lc="";this.Gb=this.qa=NaN;this.ob=0;this.Pc=-1;this.Lb=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.Wa=this.ya=this.isOffline=this.Aa=!1;this.Ac=[];this.ea=null;this.D=this.Qa=this.I=!1;this.B=-1;this.La=!1;this.zc=new g.Xn(this.pZ,750,this);this.Z=this.adCpn="";this.adFormat=void 0;this.Sc=0;this.Lc=new Set("cl fexp drm drm_system drm_product ns el adformat live cat".split(" "));
this.Ya=!1;g.M(this,this.zc);(a="function"===typeof navigator.getBattery?navigator.getBattery():null)&&a.then&&a.then(function(c){b.ea=c});
g.dW(this,0,"vps",["N"])};
g.dW=function(a,b,c,d){var e=a.u[c];e||(e=[],a.u[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))};
fW=function(a,b){var c=a.j.xa.getCurrentTime();g.dW(a,b,"cmt",[c.toFixed(3)]);c=a.j.xa.nj();if(a.J&&1E3*c>a.J.HQ+100&&a.J){var d=a.J,e=d.isAd;c=1E3*c-d.HQ;a.Ba=1E3*b-d.q4-c-d.W3;if(!a.j.videoData.K("web_player_dai_csi_killswitch")){c=(0,g.T)()-c;b=a.Ba;d=a.j.videoData;var f=d.isAd();if(e||f){f=(e?"ad":"video")+"_to_"+(f?"ad":"video");var h={};!d.K("web_player_csi_ctt_killswitch")&&d.I&&(h.cttAuthInfo={token:d.I,videoId:d.videoId});h.startTime=c-b;YA(f,h);XA({targetVideoId:d.videoId,targetCpn:d.clientPlaybackNonce},
f);WA("pbs",c,f)}else c=a.j.xa.Gi(),c.J!==d.clientPlaybackNonce?(c.I=d.clientPlaybackNonce,c.B=b):g.pz(new g.Pv("CSI timing logged before gllat",{cpn:d.clientPlaybackNonce}))}a.va("gllat",{l:a.Ba.toFixed(),prev_ad:+e});delete a.J}};
hW=function(a,b){b=void 0===b?NaN:b;b=0<=b?b:g.zS(a.j);var c=a.j.xa.bz();if(!isNaN(a.qa)&&!isNaN(c.j)){var d=c.j-a.qa;0<d&&g.dW(a,b,"bwm",[d,(c.C-a.Gb).toFixed(3)])}isNaN(a.qa)&&c.j&&a.isOffline&&sPa(a,!1);a.qa=c.j;a.Gb=c.C;isNaN(c.bandwidthEstimate)||g.dW(a,b,"bwe",[c.bandwidthEstimate.toFixed(0)]);vG(a.j.Y)&&0!==Object.keys(c.u).length&&a.va("bwinfo",c.u);if(vG(a.j.Y)||a.j.Y.K("html5_log_meminfo"))d=RNa(),Object.values(d).some(function(e){return void 0!==e})&&a.va("meminfo",d);
a.ea&&g.dW(a,b,"bat",[a.ea.level,a.ea.charging?"1":"0"]);d=a.j.xa.getVisibilityState();a.Pc!==d&&(g.dW(a,b,"vis",[d]),a.Pc=d);fW(a,b);(d=tPa(a.j))&&d!==a.ob&&(g.dW(a,b,"conn",[d]),a.ob=d);gW(a,b,c)};
gW=function(a,b,c){if(!isNaN(c.Nr)){var d=c.Nr;c.B<d&&(d=c.B);g.dW(a,b,"bh",[d.toFixed(3)])}};
uPa=function(a,b,c){g.uG(g.sI(a.j.videoData)).then(function(d){var e=!1;if(b.includes("&dt=")||b.includes("&cotn=")){if(a.j.Y.K("kevlar_woffle")||a.j.Y.K("qoe_nwl_downloads"))e=!0}else a.j.Y.K("qoe_with_networkless")&&(e=!0);var f=a.j.Y.K("qoe_send_and_write"),h=a.j.Y,l=a.j.K("web_player_vss_pageid_header")?a.j.Y.pageId:void 0;d=bW(b,h,l,a.j.Y.sendVisitorIdHeader?a.j.videoData.visitorData:void 0,d);h.K("html5_simplify_pings")&&(d=d||{});d?(d.method="POST",d.postBody=c,cW(b,d,{token:a.j.videoData.I,
nL:a.j.videoData.dj,mdxEnvironment:a.j.videoData.mdxEnvironment},h,void 0,e,f&&a.ya)):e?(e=a.j.Y.K("networkless_ajax"),h={method:"POST",postBody:c},f&&a.ya?a.j.Y.K("use_new_nwl_saw")?cx().sendAndWrite(b,h):nx(b,h):e?g.Au(b,{method:"POST",postBody:c}):a.j.Y.K("use_new_nwl_stw")?cx().sendThenWrite(b,h):mx(b,h)):(f=c,f=void 0===f?"":f,joa(b,f)||g.Uw(b,void 0,void 0,void 0,f))})};
iW=function(a){for(var b=0,c=g.r(Object.keys(a.u)),d=c.next();!d.done;d=c.next())d=d.value,b+=d.length+Number(Pk(a.u[d],function(e,f){return e+f.length},0));
96E3<b&&(new g.Xn(a.reportStats,0,a)).start()};
vPa=function(a){a.j.videoData.wg&&jW(a,"prefetch");a.j.videoData.lc&&a.va("reload",{r:a.j.videoData.reloadReason,ct:a.j.videoData.lc});a.j.videoData.Gb&&jW(a,"monitor");a.j.videoData.isLivePlayback&&jW(a,"live");a.j.videoData.Fh&&a.va("ctrl",{mode:a.j.videoData.Fh},!0);if(a.j.videoData.ai){var b=a.j.videoData.ai.replace(/,/g,"_");a.va("ytp",{type:b},!0)}a.j.videoData.zS&&(b=a.j.videoData.zS.replace(/,/g,"."),a.va("ytrexp",{ids:b},!0));if(!a.j.Y.K("html5_disable_gpu_reporting")){var c=a.j.videoData;
b=a.j.Y.K("enable_white_noise")||a.j.Y.K("enable_webgl_noop")||a.j.Y.K("enable_gpu_logging");c=g.kI(c)||g.iI(c)||g.jI(c)||g.lI(c);(b||c)&&(b=(0,g.kW)())&&(a.u.gpu=[b])}tI(a.j.videoData)&&g.dW(a,g.zS(a.j),"dt",["1"]);vG(a.j.Y)&&(b=(0,g.T)()-a.j.Y.Ne,a.va("playerage",{secs:Math.pow(1.6,Math.round(Math.log(b/1E3)/Math.log(1.6))).toFixed()}));a.D=!0;a.kb=g.wu(function(){a.reportStats()},1E4)};
xPa=function(a,b,c){var d=g.zS(a.j);wPa(a,d,b,0,c);hW(a,d);iW(a)};
wPa=function(a,b,c,d,e){var f=a.j.xa.getCurrentTime();c=[c,1===d?"fatal":"",f.toFixed(3)];e&&c.push(yPa(e));g.dW(a,b,"error",c);a.D=!0};
lW=function(a){0<=a.B||(a.j.Y.oe||3!==a.j.xa.getVisibilityState()?a.B=g.zS(a.j):a.La=!0)};
jW=function(a,b){var c=a.u.cat||[];c.push(b);a.u.cat=c};
sPa=function(a,b){a.isOffline=b;g.dW(a,g.zS(a.j),"is_offline",[a.isOffline?"1":"0"])};
zPa=function(a,b,c,d,e){var f=g.zS(a.j);1!==b&&(a.j.Y.experiments.jb("html5_record_transitiontype_vps_killswitch")||3!==b&&5!==b)||g.dW(a,f,"vps",[a.Dd]);var h=a.u.xvt||[];h.push("t."+f.toFixed(3)+";m."+e.toFixed(3)+";g.2;tt."+b+";np.0;c."+c+";d."+d);a.u.xvt=h};
yPa=function(a){/[^a-zA-Z0-9;.!_-]/.test(a)&&(a=a.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return a};
APa=function(a){this.j=a;this.S=!1;this.u=0;this.D=-1;this.lastUpdateTime=NaN;this.B=0;this.segments=[];this.J=this.I=0;this.ea=this.j.pj().volume;this.Z=this.j.pj().muted;this.C=mW(this.j)};
nW=function(a){a.C.startTime=a.B;a.C.endTime=a.u;a.segments.length&&g.Jb(a.segments).isEmpty()?a.segments[a.segments.length-1]=a.C:a.segments.length&&a.C.isEmpty()||a.segments.push(a.C);a.I+=a.u-a.B;a.C=mW(a.j);a.B=a.u};
CPa=function(a){BPa(a);a.J=g.wu(function(){a.update()},100);
a.lastUpdateTime=g.zS(a.j);a.C=mW(a.j)};
BPa=function(a){window.clearInterval(a.J);a.J=NaN};
DPa=function(a,b,c){c-=a.lastUpdateTime;return b===a.u&&.5<c};
oW=function(a,b,c,d){this.Y=b;this.segments=[];this.experimentIds=[];this.Qa=this.Gb=this.isFinal=this.pe=this.ob=this.zc=this.autoplay=this.autonav=!1;this.Rb="yt";this.D=this.I=null;this.sendVisitorIdHeader=this.Wa=!1;this.pageId="";this.C="watchtime"===c;this.B="playback"===c;this.ea="delayplay"===c;this.Z="atr"===c;this.Ce="engage"===c;this.sendVisitorIdHeader=!1;this.uri=this.Z?"/api/stats/"+c:"//"+b.Uk+"/api/stats/"+c;this.Af=!b.K("embeds_disable_event_label_embedded_unbranded_killswitch")&&
this.B&&b.pfpChazalUi&&a.C;d&&(this.Gb=d.fs,d.rtn&&(this.D=d.rtn),this.C?(this.playerState=d.state,0<d.rti&&(this.I=d.rti)):(this.Ne=d.mos,this.kf=d.volume,d.at&&(this.adType=d.at)),d.autonav&&(this.autonav=d.autonav),null!=d.inview&&(this.Pc=d.inview),d.size&&(this.lc=d.size));this.deviceParams=g.Gf(b.deviceParams);this.oe=b.Ce;b.K("embeds_js_api_set_1p_cookie")&&b.embedsTokenValue&&(this.embedsTokenValue=b.embedsTokenValue);this.experimentIds=b.experiments.experimentIds;this.La=b.wg;this.Rb=b.La;
this.region=b.region;this.userAge=b.userAge;this.eb=b.xg;this.xd=Nx();this.sendVisitorIdHeader=b.sendVisitorIdHeader;this.Aa=b.K("vss_pings_using_networkless")||b.K("kevlar_woffle");this.Te=b.K("vss_final_ping_send_and_write");this.ya=b.K("vss_use_send_and_write");this.pageId=b.pageId;this.Ue=b.K("vss_playback_use_send_and_write");this.Lc=b.K("use_new_nwl_saw");this.Sc=b.K("use_new_nwl_stw");b.livingRoomAppMode&&(this.livingRoomAppMode=b.livingRoomAppMode);this.Ld=b.u&&b.K("embeds_append_synth_ch_headers");
g.KF(b)&&!b.K("embeds_enable_epm_killswitch")&&(this.Ia=b.ea);this.accessToken=g.sI(a);a.Hd&&(this.Hd=a.Hd);this.adFormat=a.adFormat;this.adQueryId=a.adQueryId;this.autoplay=rI(a);this.B&&(this.zc=a.K("html5_enable_log_server_autoplay")&&a.Lt&&"adunit"==oI(a)?!0:!1);this.autonav=a.dn||this.autonav;this.Qd=pI(a);this.clientPlaybackNonce=a.clientPlaybackNonce;this.ob=a.C;a.I&&(this.J=a.I,this.kb=a.dj);a.mdxEnvironment&&(this.mdxEnvironment=a.mdxEnvironment);this.j=a.nz;this.yb=a.yb;a.u&&(this.videoFormat=
a.u.itag,a.D&&a.D.itag!==this.videoFormat&&(this.audioFormat=a.D.itag));a.j&&zB(a.j)&&(this.offlineDownloadUserChoice="1");this.eventLabel=this.Af?"embedded_unbranded":oI(a);this.Qa=a.Fi;this.Id=a.Sk;if(b=cI(a))this.jf=b;this.Kd=a.Rs;this.qa=a.qa;this.eventId=a.eventId;this.playlistId=a.FT||a.playlistId;this.Ru=a.Ru;this.Fh=a.Fh;this.ai=a.ai;this.jm=a.jm;this.subscribed=a.subscribed;this.videoId=a.videoId;this.videoMetadata=a.videoMetadata;this.visitorData=a.visitorData;this.osid=a.osid;this.iG=a.iG;
this.referrer=a.referrer;this.gm=a.pS||a.gm;this.Ya=a.aJ;this.Uu=a.Uu;this.userGenderAge=a.userGenderAge;this.Ut=a.Ut;this.embedsRct=a.embedsRct;this.embedsRctn=a.embedsRctn};
pW=function(a,b){var c=a.sendVisitorIdHeader?a.visitorData:void 0;return g.uG(a.accessToken).then(function(d){return bW(a.uri,a.Y,a.pageId,c,d,b,a.Ld)})};
EPa=function(a,b){return function(){a.Y.K("html5_simplify_pings")?(a.j=a.Ba,a.Ac=b(),a.xd=0,a.send()):pW(a).then(function(c){var d=a.uri,e=qW(a),f=a.Aa,h=a.ya,l=a.Lc,m=a.Sc;l=void 0===l?!1:l;m=void 0===m?!1:m;e.cmt=e.len;e.lact="0";var n=b().toFixed(3);e.rt=Number(n).toString();d=g.wi(d,e);f?(null==c&&(c={}),h?l?cx().sendAndWrite(d,c):nx(d,c):m?cx().sendThenWrite(d,c):mx(d,c)):c?g.Au(d,c):g.Uw(d)})}};
qW=function(a){var b={ns:a.Rb,el:a.eventLabel,cpn:a.clientPlaybackNonce,ver:2,cmt:a.u(a.j),fmt:a.videoFormat,fs:a.Gb?"1":"0",rt:a.u(a.Ac),adformat:a.adFormat,content_v:a.Qd,etv:a.embedsTokenValue,euri:a.oe,lact:a.xd,live:a.jf,cl:(470597858).toString(),mos:a.Ne,state:a.playerState,volume:a.kf};a.subscribed&&(b.subscribed="1");Object.assign(b,a.deviceParams);a.autoplay&&(b.autoplay="1");a.zc&&(b.sautoplay="1");a.ob&&(b.dni="1");!a.C&&a.Ia&&(b.epm=FPa[a.Ia]);a.isFinal&&(b["final"]="1");a.Qa&&(b.splay=
"1");a.yb&&(b.delay=a.yb);a.La&&(b.hl=a.La);a.region&&(b.cr=a.region);a.userGenderAge&&(b.uga=a.userGenderAge);void 0!==a.userAge&&a.eb&&(b.uga=a.eb+a.userAge);void 0!==a.Ba&&(b.len=a.u(a.Ba));!a.C&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!==a.D&&(b.rtn=a.u(a.D));a.gm&&(b.feature=a.gm);a.Fh&&(b.ctrl=a.Fh);a.ai&&(b.ytr=a.ai);a.audioFormat&&(b.afmt=a.audioFormat);a.offlineDownloadUserChoice&&(b.ODUC=a.offlineDownloadUserChoice);a.Lb&&(b.lio=a.u(a.Lb));a.C?(b.idpj=a.Id,b.ldpj=
a.Kd,null!=a.I&&(b.rti=a.u(a.I)),a.Ut&&(b.ald=a.Ut)):void 0!==a.adType&&(b.at=a.adType);a.lc&&(a.B||a.ea||a.C)&&(b.size=a.lc);null!=a.Pc&&(a.B||a.ea||a.C)&&(b.inview=a.u(a.Pc));a.C&&(b.volume=rW(a,g.Ok(a.segments,function(d){return d.volume})),b.st=rW(a,g.Ok(a.segments,function(d){return d.startTime})),b.et=rW(a,g.Ok(a.segments,function(d){return d.endTime})),Ol(a.segments,function(d){return 1!==d.playbackRate})&&(b.rate=rW(a,g.Ok(a.segments,function(d){return d.playbackRate}))),Ol(a.segments,function(d){return"-"!==
d.j})&&(b.als=g.Ok(a.segments,function(d){return d.j}).join(",")));
b.muted=rW(a,g.Ok(a.segments,function(d){return d.muted?1:0}));
Ol(a.segments,function(d){return 0!==d.visibilityState})&&(b.vis=rW(a,g.Ok(a.segments,function(d){return d.visibilityState})));
Ol(a.segments,function(d){return 0!==d.connectionType})&&(b.conn=rW(a,g.Ok(a.segments,function(d){return d.connectionType})));
Ol(a.segments,function(d){return 0!==d.u})&&(b.blo=rW(a,g.Ok(a.segments,function(d){return d.u})));
Ol(a.segments,function(d){return"-"!==d.C})&&(b.cc=g.Ok(a.segments,function(d){return d.C}).join(","));
Ol(a.segments,function(d){return"-"!==d.clipId})&&(b.clipid=g.Ok(a.segments,function(d){return d.clipId}).join(","));
if(Ol(a.segments,function(d){return!!d.B})){var c="au";
a.B&&(c="au_d");b[c]=g.Ok(a.segments,function(d){return d.B}).join(",")}pu()&&a.J&&(b.ctt=a.J,b.cttype=a.kb,b.mdx_environment=a.mdxEnvironment);
a.Ce&&(b.etype=void 0!==a.S?a.S:0);a.Ya&&(b.uoo=a.Ya);a.livingRoomAppMode&&"LIVING_ROOM_APP_MODE_UNSPECIFIED"!==a.livingRoomAppMode&&(b.clram=GPa[a.livingRoomAppMode]||a.livingRoomAppMode);a.Hd&&a.Y.K("html5_log_server_url_param")?HPa(a,b):(b.docid=a.videoId,b.referrer=a.referrer,b.ei=a.eventId,b.of=a.iG,b.osid=a.osid,b.vm=a.videoMetadata,a.adQueryId&&(b.aqi=a.adQueryId),a.autonav&&(b.autonav="1"),a.playlistId&&(b.list=a.playlistId),a.jm&&(b.ssrt="1"),a.Uu&&(b.upt=a.Uu));if(a.B||a.ea)a.embedsRct&&
(b.rct=a.embedsRct),a.embedsRctn&&(b.rctn=a.embedsRctn);return b};
HPa=function(a,b){if(b&&a.Hd)for(var c=new Set(["q","feature","mos"]),d=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),e=new Set(["aqi","autonav","list","ssrt","upt"]),f=g.r(Object.keys(a.Hd)),h=f.next();!h.done;h=f.next())h=h.value,d.has(h)||c.has(h)||e.has(h)&&!a.Hd[h]||(b[h]=a.Hd[h])};
rW=function(a,b){return g.Ok(b,a.u).join(",")};
IPa=function(a,b){a.attestationResponse&&pW(a).then(function(c){c=c||{};c.method="POST";c.postParams={atr:a.attestationResponse};a.Aa?a.ya?a.Lc?cx().sendAndWrite(b,c):nx(b,c):a.Sc?cx().sendThenWrite(b,c):mx(b,c):g.Au(b,c)})};
sW=function(a){g.J.call(this);this.j=a;this.currentPlayerState="paused";this.D=NaN;this.I=[10,10,10,40];this.S=this.J=0;this.Aa=this.qa=this.Ba=this.ya=this.ea=this.Z=this.B=!1;this.C=NaN;this.u=new APa(a)};
KPa=function(a){if(!a.B){a.j.Y.K("disable_embedpage_playback_logging")||16623!==a.j.videoData.tA||g.pz(Error("Playback for EmbedPage"));var b=tW(a,"playback");a:{if(a.j.Y.K("web_player_use_server_vss_schedule")){var c,d=null==(c=a.j.videoData.getPlayerResponse())?void 0:c.playbackTracking,e=null==d?void 0:d.videostatsScheduledFlushWalltimeSeconds;d=null==d?void 0:d.videostatsDefaultFlushIntervalSeconds;if(e&&0<e.length&&d){c=[];var f=a.j.videoData.Sk,h=a.j.videoData.Rs,l=-f;e=g.r(e);for(var m=e.next();!m.done;m=
e.next())m=m.value,c.push(m-l),l=m;c.push(d+h-f);c.push(d);a.I=c;break a}}a.I=[10+a.j.videoData.Sk,10,10,40+a.j.videoData.Rs-a.j.videoData.Sk,40]}CPa(a.u);b.D=uW(a,!0);0<a.C&&(b.j-=a.C);b.send();a.j.videoData.Ku&&(b=a.j.Y,d=a.j.videoData,c={html5:"1",video_id:d.videoId,cpn:d.clientPlaybackNonce,ei:d.eventId,ptk:d.Ku,oid:d.DN,ptchn:d.CN,pltype:d.EN,content_v:pI(d)},d.gr&&Object.assign(c,{m:d.gr}),b=g.wi(b.ya+"ptracking",c),vW(a,b));a.j.videoData.yb||JPa(a);a.B=!0;a=a.u;a.u=a.j.xa.getCurrentTime();
a.j.Y.K("html5_vss_media_time_killswitch")||(a.u=a.j.xa.nj());a.lastUpdateTime=g.zS(a.j);!(0===a.B&&5>a.u)&&2<a.u-a.B&&(a.B=a.u);a.S=!0}};
uW=function(a,b,c){c=void 0===c?NaN:c;var d=g.zS(a.j);c=isNaN(c)?d:c;c=Math.ceil(c);var e=a.I[a.J];a.J+1<a.I.length&&a.J++;var f=c+e;a.D=g.vu(function(){if(!a.isDisposed()){a.D=NaN;var h=wW(a),l=LPa(a,h);b&&(l.I=f);var m=1E3<a.S;!(1<h.length)&&h[0].isEmpty()||m||(l.D=uW(a,!0,f));l.send();a.S++}},1E3*(f-d));
return f};
xW=function(a){return a.B&&isNaN(a.D)?a.j.Y.K("html5_flush_vss_with_rti_and_rtn")?uW(a,!0):uW(a,!1):NaN};
yW=function(a){g.xu(a.D);a.D=NaN};
wW=function(a){a.u.update();a=a.u;a.segments.length&&a.u===a.B||nW(a);var b=a.segments;a.segments=[];return b};
tW=function(a,b){var c=a.j;c=Object.assign(c.pj(),c.videoData.pj());Object.assign(c,{state:a.currentPlayerState});b=new oW(a.j.videoData,a.j.Y,b,c);b.j=a.j.xa.getCurrentTime();a.j.Y.K("html5_vss_media_time_killswitch")||(b.j=a.j.xa.nj());a.j.videoData.isLivePlayback||(b.Ba=a.j.xa.getDuration());a.j.videoData.j&&(c=a.j.videoData.j.getIngestionTime(b.j))&&(b.Lb=c-b.j);b.Ac=g.zS(a.j);b.segments=[mW(a.j)];return b};
LPa=function(a,b){var c=tW(a,"watchtime");if(0<a.C){for(var d=g.r(b),e=d.next();!e.done;e=d.next())e=e.value,e.startTime-=a.C,e.endTime-=a.C;c.j-=a.C}else c.j=a.u.u;c.segments=b;return c};
zW=function(a){var b=LPa(a,wW(a));a.j.Y.K("html5_flush_vss_with_rti_and_rtn")&&(b.I=g.zS(a.j));return b};
JPa=function(a){a.j.videoData.remarketingUrl&&!a.ya&&(vW(a,a.j.videoData.remarketingUrl),a.ya=!0);a.j.videoData.youtubeRemarketingUrl&&!a.Ba&&(vW(a,a.j.videoData.youtubeRemarketingUrl),a.Ba=!0);a.j.videoData.googleRemarketingUrl&&!a.qa&&(vW(a,a.j.videoData.googleRemarketingUrl),a.qa=!0);a.j.videoData.ppvRemarketingUrl&&!a.Aa&&(vW(a,a.j.videoData.ppvRemarketingUrl),a.Aa=!0);a.mx()};
AW=function(a){if(!a.isDisposed()&&a.B){a.currentPlayerState="paused";var b=zW(a);b.isFinal=!0;b.send();a.dispose()}};
MPa=function(a,b,c){if(!a.Z){c||(c=tW(a,"atr"));c.attestationResponse=b;try{c.send()}catch(d){if("Unknown Error"!==d.message)throw d;}a.Z=!0}};
vW=function(a,b){var c=a.j.Y;g.uG(g.sI(a.j.videoData)).then(function(d){var e=a.j.K("web_player_vss_pageid_header")?a.j.Y.pageId:void 0,f=a.j.Y.sendVisitorIdHeader?a.j.videoData.visitorData:void 0,h=a.j.Y.K("vss_pings_using_networkless")||a.j.Y.K("kevlar_woffle"),l=a.j.Y.K("allow_skip_networkless");d=bW(b,c,e,f,d);cW(b,d,{token:a.j.videoData.I,nL:a.j.videoData.dj,mdxEnvironment:a.j.videoData.mdxEnvironment},c,void 0,h&&!l,!1,!0)})};
NPa=function(){this.endTime=this.startTime=-1;this.C="-";this.playbackRate=1;this.visibilityState=0;this.B="";this.volume=this.connectionType=this.u=0;this.muted=!1;this.j=this.clipId="-"};
BW=function(a,b,c,d){this.videoData=a;this.Y=b;this.xa=c;this.pj=d;this.j=void 0};
g.zS=function(a){return OPa(a)()};
OPa=function(a){if(!a.j){var b=g.Qa(function(d){var e=(0,g.T)();d&&631152E6>=e&&(g.oz(Error("invalid coreTime.now value: "+e)),e=(new Date).getTime()+2);return e},a.Y.K("html5_validate_yt_now")),c=b();
a.j=function(){return Math.round(b()-c)/1E3};
a.xa.QJ()}return a.j};
tPa=function(a){if(navigator.connection&&navigator.connection.type)return PPa[navigator.connection.type]||PPa.other;if(g.aG(a.Y)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 1}return 0};
mW=function(a){var b=new NPa;b.C=a.pj().cc||"-";b.playbackRate=a.xa.getPlaybackRate();var c=a.xa.getVisibilityState();0!==c&&(b.visibilityState=c);a.Y.Hd&&(b.u=1);c=a.xa.getAudioTrack();c.Nc&&c.Nc.id&&"und"!==c.Nc.id&&(b.B=c.Nc.id);b.connectionType=tPa(a);b.volume=a.pj().volume;b.muted=a.pj().muted;b.clipId=a.pj().clipid||"-";b.j=a.videoData.IT||"-";return b};
g.CW=function(a){g.J.call(this);var b=this;this.u=a;this.qoe=this.j=null;this.uh=void 0;this.B=new Map;this.u.videoData.isValid()&&!this.u.videoData.Pk&&(this.j=new sW(this.u),g.M(this,this.j),this.qoe=new g.eW(this.u),g.M(this,this.qoe),this.u.videoData.enableServerStitchedDai&&(this.uh=this.u.videoData.clientPlaybackNonce)&&this.B.set(this.uh,this.j));this.C=new ZV(this.u,function(c){b.va("h5h",c)});
g.M(this,this.C)};
QPa=function(a){if(a.u.videoData.enableServerStitchedDai&&a.uh){var b;null!=(b=a.B.get(a.uh))&&nW(b.u)}else a.j&&nW(a.j.u)};
RPa=function(a){a.C.send();if(a.qoe){var b=a.qoe;if(b.D){"PL"===b.Dd&&(b.Dd="N");var c=g.zS(b.j);g.dW(b,c,"vps",[b.Dd]);b.I||(0<=b.B&&(b.u.user_intent=[b.B.toString()]),b.I=!0);vG(b.j.Y)&&b.va("finalized",{});b.ya=!0;b.reportStats(c)}}if(a.u.videoData.enableServerStitchedDai)for(b=g.r(a.B.values()),c=b.next();!c.done;c=b.next())AW(c.value);else a.j&&AW(a.j);a.dispose()};
SPa=function(a,b){a.j&&MPa(a.j,b)};
TPa=function(a){if(!a.j)return null;var b=tW(a.j,"atr");return function(c){a.j&&MPa(a.j,c,b)}};
UPa=function(a,b,c,d){c.adFormat=c.Lc;var e=b.xa;b=new sW(new BW(c,b.Y,{getDuration:function(){return c.lengthSeconds},
getCurrentTime:function(){return e.getCurrentTime()},
nj:function(){return e.nj()},
bz:function(){return e.bz()},
getPlayerSize:function(){return e.getPlayerSize()},
getAudioTrack:function(){return c.getAudioTrack()},
getPlaybackRate:function(){return e.getPlaybackRate()},
ez:function(){return e.ez()},
getVisibilityState:function(){return e.getVisibilityState()},
Gi:function(){return e.Gi()},
QJ:function(){e.QJ()},
Uz:function(){e.Uz()}},b.pj));
b.C=d;g.M(a,b);return b};
VPa=function(){this.Nr=0;this.D=this.C=this.j=this.B=NaN;this.u={};this.bandwidthEstimate=NaN};
WPa=function(){this.j=g.rA;this.array=[]};
YPa=function(a,b,c){var d=[];for(b=XPa(a,b);b<a.array.length;++b){var e=a.array[b];(e.end<=c||e.contains(c))&&d.push(e);if(e.start>c)break}return d};
ZPa=function(a,b){var c=[];a=g.r(a.array);for(var d=a.next();!d.done&&!(d=d.value,d.contains(b)&&c.push(d),d.start>b);d=a.next());return c};
$Pa=function(a){return a.array.slice(XPa(a,0x7ffffffffffff),a.array.length)};
XPa=function(a,b){a=kc(a.array,function(c){return b-c.start||1});
return 0>a?-(a+1):a};
aQa=function(a,b){var c=NaN;a=g.r(a.array);for(var d=a.next();!d.done;d=a.next())if(d=d.value,d.contains(b)&&(isNaN(c)||d.end<c)&&(c=d.end),d.start>b&&(isNaN(c)||d.start<c)){c=d.start;break}return c};
bQa=function(a,b){a.array=a.array.filter(function(c){return!b.has(c)})};
DW=function(a,b,c,d){g.J.call(this);this.S=a;this.qa=b;this.D=c;this.Z=d;this.u=NaN;this.I=this.J=this.started=!1;this.B=[];this.ea=new g.Xn(this.Rl,250,this);g.M(this,this.ea);this.C=new g.Xn(this.Rl,0,this);g.M(this,this.C);this.j=new WPa};
cQa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c[1];1===c[0]?a.Z(g.sA(d.namespace),d):a.Z(g.tA(d.namespace),d)}};
dQa=function(a){this.u=this.mediaTime=NaN;this.B=this.j=!1;this.C=.001;g.aG(a)&&(this.C=.01)};
EW=function(a,b){return b>a.mediaTime+a.C&&b<a.mediaTime+5};
FW=function(a,b,c,d){if(d=1<d)a.B=!0;if(a.j)b!==a.mediaTime&&(a.j=!1);else if(0<b&&a.mediaTime===b)return c-a.u>(d||!a.B?1500:400);a.mediaTime=b;a.u=c;return!1};
eQa=function(a,b){this.videoData=a;this.j=b};
fQa=function(a,b,c){return FBa(b,c).then(function(){return Gu(new eQa(b,b.B))},function(d){d instanceof Error&&gu(d);
var e=ZD('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),f=aE('audio/mp4; codecs="mp4a.40.2"'),h=e||f,l=b.isLivePlayback&&!g.YE(a.j,!0);d="fmt.noneavailable";l?d="html5.unsupportedlive":h||(d="html5.missingapi");h=l||!h?2:1;e={buildRej:"1",a:!!b.adaptiveFormats,d:!!b.ob,drm:UH(b),f18:0<=b.Qk.indexOf("itag=18"),c18:e};b.j&&(UH(b)?(e.f142=!!b.j.j["142"],e.f149=!!b.j.j["149"],e.f279=!!b.j.j["279"]):(e.f133=!!b.j.j["133"],e.f140=!!b.j.j["140"],e.f242=!!b.j.j["242"]),e.cAAC=f,e.cAVC=aE('video/mp4; codecs="avc1.42001E"'),
e.cVP9=aE('video/webm; codecs="vp9"'));b.S&&(e.drmsys=b.S.keySystem,f=0,b.S.j&&(f=Object.keys(b.S.j).length),e.drmst=f);return new xG(d,e,h)})};
gQa=function(a){this.D=a;this.B=this.u=0;this.C=new oT(50)};
HW=function(a,b,c){g.az.call(this);this.videoData=a;this.experiments=b;this.S=c;this.u=[];this.C=0;this.B=!0;this.D=!1;this.I=0;c=new hQa;"ULTRALOW"===a.latencyClass&&(c.C=!1);a.Gb?c.u=3:g.gI(a)&&(c.u=2);b.jb("html5_adaptive_seek_to_head_killswitch")||"NORMAL"!==a.latencyClass||(c.S=!0);var d=xBa(a);c.D=2===d||-1===d;c.D&&(c.qa++,21530001===ZH(a)&&(c.I=g.RE(b,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN));if(Mu("trident/")||Mu("edge/"))c.B=Math.max(c.B,g.RE(b,"html5_platform_minimum_readahead_seconds")||
3);g.RE(b,"html5_minimum_readahead_seconds")&&(c.B=g.RE(b,"html5_minimum_readahead_seconds"));g.RE(b,"html5_maximum_readahead_seconds")&&(c.Z=g.RE(b,"html5_maximum_readahead_seconds"));b.jb("html5_force_adaptive_readahead")&&(c.C=!0);g.RE(b,"html5_allowable_liveness_drift_chunks")&&(c.j=g.RE(b,"html5_allowable_liveness_drift_chunks"));g.RE(b,"html5_readahead_ratelimit")&&(c.ea=g.RE(b,"html5_readahead_ratelimit"));switch(ZH(a)){case 21530001:c.j=(c.j+1)/5,"LOW"===a.latencyClass&&(c.j*=2),c.J=b.jb("html5_live_smoothly_extend_max_seekable_time")}this.policy=
c;this.J=1!==this.policy.u;b=isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead;a.Gb&&b--;a.isLowLatencyLiveStream&&"NORMAL"!==a.latencyClass||b++;switch(ZH(a)){case 21530001:b=1;break;case 2153E4:b=2}this.policy.D&&b++;this.j=GW(this,b)};
iQa=function(a,b){var c=a.j;(void 0===b?0:b)&&a.policy.J&&3===xBa(a.videoData)&&--c;return IW(a)*c};
JW=function(a,b){var c=a.ll(),d=a.policy.j;a.D||(d=Math.max(d-1,0));a=d*IW(a);return b>=c-a};
jQa=function(a,b,c){b=JW(a,b);c||b?b&&(a.B=!0):a.B=!1;a.J=2===a.policy.u||3===a.policy.u&&a.B};
kQa=function(a,b){b=JW(a,b);a.D!==b&&a.ma("livestatusshift",b);a.D=b};
IW=function(a){return a.videoData.j?BE(a.videoData.j)||5:5};
GW=function(a,b){b=Math.max(Math.max(a.policy.qa,Math.ceil(a.policy.B/IW(a))),b);return Math.min(Math.min(8,Math.floor(a.policy.Z/IW(a))),b)};
hQa=function(){this.qa=1;this.B=0;this.Z=Infinity;this.ea=0;this.C=!0;this.j=2;this.u=1;this.D=!1;this.I=NaN;this.J=this.S=!1};
MW=function(a){g.J.call(this);this.xa=a;this.Y=this.xa.V();this.C=this.j=0;this.B=new g.Xn(this.D,1E3,this);this.Ba=new KW({delayMs:g.RE(this.Y.experiments,"html5_seek_timeout_delay_ms")});this.Z=new KW({delayMs:g.RE(this.Y.experiments,"html5_long_rebuffer_threshold_ms")});this.Ia=LW(this,"html5_seek_set_cmt");this.qa=LW(this,"html5_seek_jiggle_cmt");this.Aa=LW(this,"html5_seek_new_elem");this.Ya=LW(this,"html5_unreported_seek_reseek");this.J=LW(this,"html5_long_rebuffer_jiggle_cmt");this.S=new KW({delayMs:2E4});
this.I=LW(this,"html5_ads_preroll_lock_timeout");this.La=new KW({delayMs:g.RE(this.Y.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Ev:!this.Y.K("html5_report_slow_ads_as_error")});this.Qa=new KW({delayMs:g.RE(this.Y.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Ev:!this.Y.K("html5_skip_slow_buffering_ad")});this.ya=LW(this,"html5_seek_over_discontinuities");this.Wa=new KW({delayMs:g.RE(this.Y.experiments,"html5_slow_start_timeout_delay_ms")});this.ea=LW(this,"html5_slow_start_no_media_source");
this.u={};g.M(this,this.B)};
LW=function(a,b){var c=g.RE(a.Y.experiments,b+"_delay_ms");a=a.Y.K(b+"_cfl");return new KW({delayMs:c,Ev:a})};
lQa=function(a,b,c,d,e,f,h){var l=fE(c,Math.max(d-3.5,0)),m=0<=l&&d>c.end(l)-1.1&&l+1<c.length&&11>c.start(l+1)-c.end(l);m=f&&h&&m;var n=l+1<c.length?c.start(l+1):d;NW(a,a.ya,m&&!e,f&&!h,"qoe.longrebuffer",function(){b.seekTo(n+.2)},"seekover")};
NW=function(a,b,c,d,e,f,h,l){mQa(b,c)?(a.Ed(e,b,h),b.Ev||f()):(b.oE&&b.triggerTimestamp&&!b.B?(c=(0,g.T)(),d?b.j||(b.j=c):b.j=0,f=!d&&c-b.triggerTimestamp>b.oE,c=b.j&&c-b.j>b.tK||f?b.B=!0:!1):c=!1,c&&(l=Object.assign({},a.Sb(b),l),l.wn=h,l.we=e,l.wsuc=d,a.xa.va("workaroundReport",l),d&&(b.reset(),a.u[e]=!1)))};
KW=function(a){var b=void 0===a?{}:a;a=void 0===b.delayMs?0:b.delayMs;var c=void 0===b.tK?1E3:b.tK,d=void 0===b.oE?3E4:b.oE;b=void 0===b.Ev?!1:b.Ev;this.j=this.triggerTimestamp=this.u=this.startTimestamp=0;this.B=!1;this.C=Math.ceil(a/1E3);this.tK=c;this.oE=d;this.Ev=b};
mQa=function(a,b){if(!a.C||a.triggerTimestamp)return!1;if(!b)return a.reset(),!1;b=(0,g.T)();if(!a.startTimestamp)a.startTimestamp=b,a.u=0;else if(a.u>=a.C)return a.triggerTimestamp=b,!0;a.u+=1;return!1};
PW=function(a){g.J.call(this);var b=this;this.xa=a;this.Y=this.xa.V();this.videoData=this.xa.getVideoData();this.policy=new nQa(this.Y);this.ea=new MW(this.xa);this.playbackData=null;this.Qa=new g.XD;this.I=this.u=this.Ka=this.mediaElement=null;this.j=NaN;this.C=0;this.ya=NaN;this.B=null;this.Ba=NaN;this.D=this.J=null;this.Z=this.S=!1;this.Aa=new g.Xn(function(){oQa(b,!1)},2E3);
this.eb=new g.Xn(function(){OW(b)});
this.La=new g.Xn(function(){b.S=!0;pQa(b)});
this.timestampOffset=0;this.Wa=!0;this.Ia=0;this.Ya=NaN;this.qa=new g.Xn(function(){var c=b.Y.Qd;c.j+=1E4/36E5;c.j-c.B>1/6&&(hza(c),c.B=c.j);b.qa.start()},1E4);
g.M(this,this.ea);g.M(this,this.Qa);g.M(this,this.Aa);g.M(this,this.La);g.M(this,this.eb);g.M(this,this.qa)};
qQa=function(a,b){a.playbackData=b;a.videoData.isLivePlayback&&(a.I=new gQa(function(){a:{if(a.playbackData&&a.playbackData.j.j){if(MH(a.videoData)&&a.Ka){var c=a.Ka.XB.Rh()||0;break a}if(a.videoData.j){c=a.videoData.j.S;break a}}c=0}return c}),a.u=new HW(a.videoData,a.Y.experiments,function(){return a.Bd(!0)}));
QW(a)||(a.C=a.C||a.videoData.startSeconds||0)};
TW=function(a,b){(a.Ka=b)?RW(a,!0):SW(a)};
rQa=function(a,b){var c=a.getCurrentTime(),d=a.isAtLiveHead(c);if(a.I&&d){var e=a.I;if(e.j&&!(c>=e.u&&c<e.B)){var f=e.j.getSegmentNumberForTime(c);-1!==f&&(e.u=e.j.getStartTime(f),e.B=e.u+e.j.getDuration(f),f=Date.now()/1E3-e.j.getIngestionTime(f),f-=e.D(),e.C.add(f))}}a.u&&(d&&(d=a.u,e=a.mediaElement?VJ(a.mediaElement):0,d.C++,3>d.C||g.Ra()-d.I<d.policy.ea||(d.I=g.Ra(),d.u.push(e),50<d.u.length&&d.u.shift())),d=a.u,jQa(d,c,void 0===b?!0:b),kQa(d,c),b&&oQa(a,!0))};
oQa=function(a,b){if(a.u){var c=a.u;var d=a.getCurrentTime();!JW(c,d)&&c.Co()?(c.policy.S&&(c.policy.j=Math.max(c.policy.j+1,10)),c=Infinity):c=d<c.videoData.getMinSeekableTime()?Math.min(c.videoData.getMinSeekableTime()+10,c.ll()):NaN;if(!isNaN(c)){if(a.Ka&&b&&(b=a.Aa.isActive(),d=a.u.ll(),(d=gOa(a.Ka,d-a.Cd()))&&!b)){a.Aa.start();a.xa.va("inBufferPtl",{cmt:a.getCurrentTime(),seekTo:d+a.Cd()});a.seekTo(d+a.Cd(),{Ae:"playbacktimeline_inBufferSeek"});return}a.seekTo(c,{Ae:"playbacktimeline_pegToLive"})}}};
RW=function(a,b){if(a.u&&a.Ka){var c=!1;if(b)c=!0;else if(a.videoData.isLowLatencyLiveStream||"LOW"===a.videoData.latencyClass||"ULTRALOW"===a.videoData.latencyClass)if(b=a.u,b.u.length){c=b.j;b:{if(b.u.length){if(1<Math.min.apply(null,b.u)){var d=GW(b,b.j-1);break b}if(b.policy.C){d=GW(b,b.j+1);break b}}d=b.j}b.j=d;if(c=c!==b.j)b.u=[],b.C=0}else c=!1;c&&(c=a.xa.qc,b=iQa(a.u),c.qoe&&(c=c.qoe,g.dW(c,g.zS(c.j),"lra",[b]),c.va("live-readahead-seconds",{v:b})));b=a.Ka;c=a.u.j;d=a.u;d=(d.j-1+d.policy.j)*
IW(d);var e=b.B;a=a.u.policy.I;e.Uf=Math.max(c-1,0);e.ea=a;b.C&&(b.C.ea=d)}};
sQa=function(a,b){a.C=b};
UW=function(a){return a.videoData.isLivePlayback&&!!a.videoData.B&&!a.videoData.B.j};
pQa=function(a){tQa(a).then(void 0,function(){SW(a)});
VW(a).then(function(c){uQa(a,c)},function(){SW(a)});
SS(a.xa);if(2<=a.Y.Z){var b=a.Sb();b["native"]=""+ +a.Z;b.tgt=""+a.j;a.xa.va("startSeek",b)}};
tQa=function(a){a.J||(a.Ka?isFinite(a.j)?a.J=a.Ka.seek(a.j-a.timestampOffset):(fI(a.videoData),a.J=hOa(a.Ka),a.j=a.Ka.getCurrentTime()+a.timestampOffset):a.J=Fh(a.j-a.timestampOffset));return a.J};
VW=function(a){var b=a.B;b||(a.B=new SJ,b=a.B,OW(a));return b};
vQa=function(a,b,c){return isNaN(b)?NaN:g.Eg(b,a.getMinSeekableTime(),a.Bd(c))};
OW=function(a){if(a.B)if(!a.K("html5_nondash_live_seek_killswitch")&&UW(a)&&a.mediaElement&&0<a.mediaElement.hj()&&0<UJ(a.mediaElement)&&(a.j=vQa(a,a.j,!1)),!a.mediaElement||!wQa(a))a.eb.start(750);else if(!isNaN(a.j)&&isFinite(a.j)&&a.Ba!==a.j-a.timestampOffset){var b=a.mediaElement.getCurrentTime()-a.j;if(Math.abs(b)<=a.Ia)a.B&&a.B.resolve(a.mediaElement.getCurrentTime());else if(!fI(a.videoData)&&a.j>=a.Bd()-.1)a.j=a.Bd(),a.B.resolve(a.Bd()),AS(a.xa);else try{var c=a.j-a.timestampOffset;a.mediaElement.seekTo(c);
a.ea.j=c;a.Ba=c;a.C=a.j}catch(d){}}};
wQa=function(a){if(!a.mediaElement||0===a.mediaElement.hj()||0<a.mediaElement.gg())return!1;var b=0<a.mediaElement.getCurrentTime();if(!(a.K("html5_nondash_mediaelementready_killswitch")||a.videoData.B&&a.videoData.B.j||a.videoData.isLivePlayback)&&UH(a.videoData))return b;if(0<=a.j){var c=a.mediaElement.Zy();if(c.length||!b)return gE(c,a.j-a.timestampOffset)}return b};
uQa=function(a,b){a.D&&(a.D.resolve(b),a.xa.ma("SEEK_COMPLETE"),2<=a.Y.Z&&(b=a.Sb(),b["native"]=""+ +a.Z,a.xa.va("seekEnd",b)));SW(a)};
SW=function(a){a.j=NaN;a.Ba=NaN;a.B=null;a.J=null;a.D=null;a.S=!1;a.Z=!1;a.Ia=0;a.Aa.stop();a.La.stop()};
xQa=function(a){if(a.mediaElement){for(var b=g.r(["loadedmetadata","progress","seeked","seeking"]),c=b.next();!c.done;c=b.next())a.Qa.T(a.mediaElement,c.value,function(d){var e=a.mediaElement;switch(d.type){case "seeking":d=e.getCurrentTime()+a.timestampOffset;if(!a.B||a.Z&&d!==a.j)a.B=new SJ,a.Ba=d,e=e.getCurrentTime(),a.ea.j=e,a.seekTo(d,{Ae:"playbacktimeline_mediaElementEvent"}),a.Z=!0;break;case "seeked":a.B&&a.B.resolve(a.mediaElement.getCurrentTime());break;case "loadedmetadata":if(a.Wa){e=
"ss";d=0;a.videoData.j&&a.videoData.j.isManifestless&&a.videoData.Qd&&!QW(a)&&(e="mss",d=a.K("html5_start_seconds_reorder")?0:a.Cd(),d=a.videoData.Qd+d);var f;if(f=!d||!a.K("html5_start_seconds_reorder"))f=(hI(a.videoData)||!!a.videoData.liveUtcStartSeconds)&&(!!a.videoData.liveUtcStartSeconds||QW(a))&&!!a.videoData.j;f&&(d=a.videoData.liveUtcStartSeconds||a.videoData.Qd,e="utc",d=a.Bd()-a.getIngestionTime(a.Bd())+d);!d&&a.videoData.Tu&&(e="stss",d=a.videoData.Tu);f={};d?(a.seekTo(d,{Ae:"playbacktimeline_startSeconds"}),
f[e]=d,a.xa.va("startSeconds",f),a.Wa=!1):a.videoData.Qd&&(f[e]=a.videoData.Qd+a.Cd(),a.xa.va("startSeconds",f));if(d>a.Bd()||d<a.getMinSeekableTime())f.minSeekableTime=a.getMinSeekableTime(),f.maxSeekableTime=a.Bd(),a.xa.va("startSecondsOutOfBounds",f);e=!!d}else e=!1;a.K("html5_nondash_live_seek_killswitch")&&!e&&UW(a)&&(a.j=isFinite(a.j)?g.Eg(a.j,a.getMinSeekableTime(),a.Bd()):a.Bd());OW(a);break;case "progress":OW(a)}});
a.D||a.C||a.policy.u||!a.mediaElement.wK()||a.seekTo(.01,{Ae:"playbacktimeline_setupMediaElement"})}};
QW=function(a){return!!a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&1E9<a.videoData.startSeconds};
nQa=function(a){this.j=a.K("html5_live_smoothly_extend_max_seekable_time");this.u=a.K("html5_requires_seek_for_playback_at_zero_killswitch")};
WW=function(){this.finished=this.started=!1};
XW=function(a){this.j=a;this.iv=(0,g.bV)(uz(16))};
yQa=function(a,b){var c;return g.z(function(d){(0,g.T)();c=aza(a.j);return d.return(c.encrypt(b,a.iv))})};
zQa=function(a,b){var c;return g.z(function(d){(0,g.T)();var e=a.j;e.C||(e.C=new Tya(e.B));c=e.C;return d.return(Wya(c,b,a.iv))})};
AQa=function(a,b,c){var d;return g.z(function(e){(0,g.T)();d=aza(a.j);return e.return(d.decrypt(b,c))})};
YW=function(a){g.J.call(this);this.u=a;this.logger=new g.lT("onesie");this.me=new Map;this.j=!1};
AU=function(a,b){return a.me.has(b)};
TNa=function(a,b){return(a=a.me.get(b))?a.rQ:[]};
NMa=function(a,b,c){a.me.get(b).Yd=c};
$W=function(a,b){AU(a,b)&&(a.me.get(b).yf=new SB,ZW(a,b))};
BQa=function(a){for(var b=g.r(a.me),c=b.next();!c.done;c=b.next()){var d=g.r(c.value);c=d.next().value;d=d.next().value;d.Yd||$W(a,c)}};
UNa=function(a,b){var c;return(null==(c=a.me.get(b))?void 0:c.fl)||0};
MMa=function(a,b){var c=a.me.get(b),d=!c.fl&&!!c.bytesReceived;b=a.Yg(b);return d&&a.j&&void 0!==b?b:(d||c.bytesReceived===c.fl)&&c.MB+c.yf.totalLength===c.bytesReceived};
CQa=function(a,b,c){c=void 0===c?!1:c;a.me.set(b,{yf:new SB,MB:0,bytesReceived:0,jK:!1,Xf:!1,Yg:!1,cn:c,rQ:[]})};
ZW=function(a,b){if((b=a.me.get(b))&&!b.Xf){b.Xf=!0;b.Yd&&b.Yd();a:{b=g.r(a.me.values());for(var c=b.next();!c.done;c=b.next())if(!c.value.Xf){b=!1;break a}b=!0}if(b&&(a=a.u,a.playerResponse)){var d;null==(d=a.xhr)||d.abort()}}};
DQa=function(a,b){for(var c=!1,d=g.r(a.me.keys()),e=d.next();!e.done;e=d.next()){e=a.me.get(e.value);var f=void 0,h=void 0;(null==(f=e)?0:f.fl)&&0<(null==(h=e)?void 0:h.fl)&&(e.cn?c=!0:b=!0)}return b&&c};
aX=function(a){this.nk=a;this.u=!1;this.j=[]};
cX=function(a){for(;a.j.length&&!a.j[0].isEncrypted;){var b=a.j.shift(),c=b.dL;if(b=b.buffer)EQa(a.nk.Jd,c,b);else if(b=a.nk,b.j[c].BP=!0,b=bX(b.Jd,c),null==b?0:AU(b,c))null==b||ZW(b,c)}};
FQa=function(a,b){a.j.push({dL:b,isEncrypted:!1});a.u||cX(a)};
g.GQa=function(a){this.data=a;this.j=0;this.D=!1;this.B=0;this.error=!1;this.register=this.u=0;if(0===dX.length){dX.length=288;dX.fill(8);for(a=144;280>a;a++)dX[a]=255>=a?9:7;eX.length=32;eX.fill(5);fX.length=286;fX.fill(0);for(a=261;285>a;a++)fX[a]=Math.floor((a-261)/4);gX[257]=3;for(a=258;285>a;a++){var b=gX[a-1];b+=1<<fX[a-1];gX[a]=b}gX[285]=258;for(a=0;30>a;a++)hX[a]=3>=a?0:Math.floor((a-2)/2);for(a=iX[0]=1;30>a;a++)b=iX[a-1],b+=1<<hX[a-1],iX[a]=b}a=100+7*this.data.length;31===this.data[0]&&139===
this.data[1]&&(a=(new DataView(this.data.buffer,this.data.byteOffset+this.data.length-4)).getUint32(0,!0),this.data=this.data.subarray(10,this.data.length-8));this.C=new Uint8Array(a)};
g.KQa=function(a){for(;!a.D&&!a.error;){var b=a;b.D=!!jX(b,1);switch(jX(b,2)){case 2:var c=[],d=[];d.length=19;d.fill(0);var e=jX(b,5)+257;var f=jX(b,5)+1;for(var h=jX(b,4)+4,l=0;l<h;l++)d[HQa[l]]=jX(b,3);d=kX(d);for(h=e+f;c.length<h;){l=IQa(b,d);switch(l){case 16:l=c[c.length-1];var m=jX(b,2)+3;break;case 17:l=0;m=jX(b,3)+3;break;case 18:l=0;m=jX(b,7)+11;break;default:m=1}for(;0<m;m--)c.push(l)}c.length!==h?b.error=!0:(f=c.slice(-f),c.length=e,JQa(b,c,f));break;case 1:JQa(b,dX,eX);break;case 0:lX(b,
b.j&7);c=jX(b,16);e=jX(b,16);65535!==(c^e)&&(b.error=!0);b.C.set(b.data.subarray(b.u,b.u+c),b.B);b.u+=c;b.B+=c;break;default:b.error=!0}a.B>a.C.length&&(a.C=new Uint8Array(2*a.B),a.B=0,a.u=0,a.D=!1,a.j=0,a.register=0)}a.C.length!==a.B&&(a.C=a.C.subarray(0,a.B));return a.error?new Uint8Array(0):a.C};
JQa=function(a,b,c){b=kX(b);c=kX(c);for(var d=a.data,e=a.C,f=a.B,h=a.register,l=a.j,m=a.u;;){if(15>l){if(m>d.length){a.error=!0;break}h|=(d[m+1]<<8)+d[m]<<l;m+=2;l+=16}var n=b[h&127];if(0>n)for(h>>=7;0>n;)n=b[(h&1)-n],h>>=1;else h>>=n&15;l-=n&15;n>>=4;if(256>n)e[f++]=n;else if(a.register=h,a.j=l,a.u=m,256<n){h=gX[n];h+=jX(a,fX[n]);m=IQa(a,c);l=iX[m];l+=jX(a,hX[m]);if(LQa&&h<l)l=f-l,e.copyWithin(f,l,l+h);else for(m=f+h,n=f;n<m;n+=4)e[n]=e[n-l],e[n+1]=e[n-l+1],e[n+2]=e[n-l+2],e[n+3]=e[n-l+3];f+=h;h=
a.register;l=a.j;m=a.u}else break}a.B=f};
IQa=function(a,b){if(7>a.j){var c=a.data,d=a.u;d>c.length&&(a.error=!0);a.register|=(c[d+1]<<8)+c[d]<<a.j;a.u+=2;a.j+=16}c=b[a.register&127];if(0<=c)return lX(a,c&15),c>>4;for(lX(a,7);0>c;)c=b[jX(a,1)-c];return c>>4};
jX=function(a,b){for(;a.j<b;){if(a.u>=a.data.length)return a.error=!0,0;a.register|=a.data[a.u++]<<a.j;a.j+=8}var c=a.register&(1<<b)-1;a.register>>=b;a.j-=b;return c};
lX=function(a,b){a.j-=b;a.register>>=b};
kX=function(a){for(var b=[],c=g.r(a),d=c.next();!d.done;d=c.next())d=d.value,b[d]||(b[d]=0),b[d]++;var e=b[0]=0;c=[];var f=0;d=0;for(var h=1;h<b.length;h++)b[h]?d=h:b[h]=0,e=e+b[h-1]<<1,c[h]=e,7<h&&(f+=b[h]);for(e=1;e<f;)e<<=1;b=128;d=new Int16Array(128+2*(e+d));for(f=0;f<a.length;f++)if(h=a[f]){for(var l=c[h]++,m=e=0;m<h;m++)e=e<<1|l>>m&1;l=f<<4|h;if(7>=h)for(m=1<<7-h;m--;)d[m<<h|e]=l;else{m=e&127;h-=7;for(e>>=7;h--;){d[m]||(d[m]=-b,b+=2);var n=e&1;e>>=1;m=n-d[m]}d[m]=l}}return d};
MQa=function(a){var b,c,d,e,f,h,l;return g.z(function(m){switch(m.j){case 1:if(!("DecompressionStream"in window))return m.return(g.KQa(new g.GQa(a)));b=new DecompressionStream("gzip");c=b.writable.getWriter();c.write(a);c.close();d=b.readable.getReader();e=new SB([]);case 2:return g.x(m,d.read(),4);case 4:f=m.u;h=f.value;if(l=f.done){m.Ma(3);break}e.append(h);m.Ma(2);break;case 3:return m.return(XB(e))}})};
OQa=function(a,b){var c=[];b=g.r(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=NQa[d]||0;a.j&&e>a.j||c.push(d)}return c};
RQa=function(a,b){var c=a[a.length-1];a.push.apply(a,g.t(PQa[c]||[]));b.K("html5_early_media_for_drm")&&a.push.apply(a,g.t(QQa[c]||[]))};
WQa=function(a,b){var c=VH(a),d=a.V().j;if(mX&&!d.j)return mX;for(var e=[],f=[],h={},l=g.r(SQa),m=l.next();!m.done;m=l.next()){var n=!1;m=g.r(m.value);for(var p=m.next();!p.done;p=m.next()){p=p.value;var q=TQa(p);!q||!q.video||SD(q)&&!c.ya&&q.video.j>c.ea||(n?e.push(p):(q=CB(c,q,d),!0===q?(n=!0,e.push(p)):h[p]=q))}e&&RQa(e,a)}l=g.r(UQa);for(n=l.next();!n.done;n=l.next()){n=g.r(n.value);for(p=n.next();!p.done;p=n.next())if(m=p.value,(p=VQa(m))&&p.audio)if(p=CB(c,p,d),!0===p){f.push(m);break}else h[m]=
p;f&&RQa(f,a)}c.B&&b("orfmts",h);mX={video:e,audio:f};d.j=!1;return mX};
TQa=function(a){var b=XQa[PD[a]],c=YQa[a];if(!c||!b)return null;var d=new MD(c.width,c.height,c.fps);b=Rxa(b,d);return new QD(a,b,{video:d,Tb:c.bitrate/8})};
VQa=function(a){var b=XQa[PD[a]],c=ZQa[a];return c&&b?new QD(a,b,{audio:new KD(c.audioSampleRate,c.numChannels)}):null};
$Qa=function(a){this.Jd=a;this.logger=new g.lT("onesie");this.B={};this.j={};this.C=!0;this.u=null;this.queue=new aX(this)};
nX=function(a){var b=a.queue;b.j.length&&b.j[0].isEncrypted&&!b.u&&(b.j.length=0);b=g.r(Object.keys(a.j));for(var c=b.next();!c.done;c=b.next())c=c.value,a.j[c].BP||FQa(a.queue,c)};
aRa=function(a,b){var c=b.totalLength,d=!1;switch(a.u){case 0:a.PJ(b,a.C).then(function(e){var f=a.Jd;f.Wc("oprr");f.playerResponse=e;f.eJ||(f.Nw=!1);oX(f)},function(e){a.Jd.fail(e)});
break;case 2:a.Wc("ormk");b=XB(b);a.queue.decrypt(b);break;default:d=!0}a.Jd.rj&&a.Jd.va("ombup","id.11;pt."+a.u+";len."+c+(d?";ignored.1":""));a.u=null};
bRa=function(a,b,c){var d=YB(b,0);a.Jd.rj&&a.Jd.va("ombup","id."+(c?12:21)+";len."+b.totalLength+";hid."+d);1!==b.totalLength&&(b=b.split(1).ap,d=a.B[d]||null)&&(a.nh(a.j[d].cn?"oafs_r":"ovfs_r"),a.queue.enqueue(d,b,c))};
eRa=function(a,b,c,d){var e={},f=FE(0);f&&(e.e_=f,e.lastManualDirection=iya(),f=Dua()||0,0<f&&(e.timeSinceLastManualFormatSelectionMs=(0,g.T)()-f));e.X4=FE();if(a.schedule.S||!a.K("html5_onesie_enable_server_side_badwidth_estimation"))e.CX=BF(a.schedule,!0);f=g.iG();e.WX=c.width*f;e.VX=c.height*f;e.visibility=d;e.w5=Nx();a.K("html5_onesie_media_capabilities")&&(e.GO=3);a.K("html5_onesie_audio_only_playback")&&TH(b)&&(e.GO=1);if(a.K("html5_onesie_media_capabilities")){b=VH(b);c=a.j;d=[];f=[];for(var h=
g.r(SQa),l=h.next();!l.done;l=h.next()){l=g.r(l.value);for(var m=l.next();!m.done;m=l.next()){m=m.value;var n=TQa(m);if(n&&n.video&&!0===CB(b,n,c)){d.push({h6:cRa[PD[m]],s_:n.video.width,r_:n.video.height,maxFramerate:n.video.fps});break}}}h=g.r(UQa);for(l=h.next();!l.done;l=h.next())for(l=g.r(l.value),m=l.next();!m.done;m=l.next())if(m=m.value,(n=VQa(m))&&n.audio&&!0===CB(b,n,c)){f.push({AX:dRa[PD[m]],numChannels:n.audio.numChannels});break}e.mediaCapabilities={JL:d,GG:f}}a.K("html5_prefer_drc")&&
(e.rY=!0);return e};
gRa=function(a,b,c){var d,e,f;return g.z(function(h){if(1==h.j)return d=jH(b,yNa),g.x(h,yQa(c,d),2);if(3!=h.j)return e=h.u,g.x(h,zQa(c,e),3);f=h.u;return h.return({encryptedOnesieInnertubeRequest:e,encryptedClientKey:c.j.encryptedClientKey,iv:c.iv,hmac:f,serializeResponseAsJson:!0,enableAdPlacementsPreroll:a.K("html5_onesie_ads"),enableCompressionResponseOnly:fRa(a,!!b.skipResponseEncryption)})})};
hRa=function(a,b,c,d,e,f,h,l){var m,n;return g.z(function(p){if(1==p.j)return g.x(p,gRa(c,a,b),2);m=p.u;n=eRa(c,d,e,f);return p.return({BI:m,nO:n,onesieUstreamerConfig:h,YA:l})})};
fRa=function(a,b){a=BF(a.schedule,!0);b=b||!!jF()&&1572864<a;return"DecompressionStream"in window||!b};
iRa=function(a,b){var c=g.JE(b.Y.experiments,"debug_bandaid_hostname");if(c)b=jS(b,c);else if(c=b.j.get(0)){var d=c;if(b.Y.K("html5_onesie_host_racing_during_prewarming")){var e=b.j.values();e=g.r(e);for(var f=e.next();!f.done;f=e.next())f=f.value,oS(f)<oS(d)&&(d=f);e=g.RE(b.Y.experiments,"html5_onesie_host_racing_cap_ms");0<e&&0!==d.IP&&oS(c)-oS(d)<=e&&(d=c);var h;b.D=null==(h=d)?void 0:h.f_}b=d.location.clone()}else b=void 0;if(b&&a.videoId){h=uF(a.videoId);a=[];if(h)for(h=g.r(h),c=h.next();!c.done;c=
h.next())a.push(c.value.toString(16).padStart(2,"0"));b.set("id",a.join(""));return b}};
jRa=function(a,b){return b.load().then(function(){return iRa(a,b)})};
pX=function(a,b){g.J.call(this);this.xa=a;this.playerRequest=b;this.Y=this.xa.V();this.videoData=this.xa.getVideoData();this.logger=new g.lT("onesie");this.rj=2<=this.Y.Z;this.iH=this.Y.Mi;this.LD=new XW(this.iH.j);this.xhr=null;this.Cn=new SJ;this.EP=!1;this.playerResponse="";this.ix=new ZU(this);this.nk=new $Qa(this);this.Dw=new g.Xn(this.xP,1E4,this);this.CR=new g.Xn(this.u_,2E3,this);this.Et="";this.dD=this.RP=!1;this.cq=this.xa.LC();this.Ew="";this.Nw=this.K("html5_onesie_wait_for_media_availability");
this.enableCompression=this.eJ=this.cD=!1;g.M(this.videoData,this);g.M(this,this.Dw);g.M(this,this.CR);a=pB();b=XE(this.Y.j);this.K("html5_onesie_media_bytes")&&a&&b&&(this.K("html5_onesie_ads")?this.Zf=new Map:(this.ze=new YW(this),g.M(this,this.ze)));this.RO=new Map;this.va("sxhr",{s:""+ +a,a:""+ +(!!window.AbortController||qB())},!0)};
bX=function(a,b){return a.Zf?(b=b.split(";")[0],a.Zf.get(b)):a.ze};
kRa=function(a,b,c){var d;return g.z(function(e){if(1==e.j)return a.Wc("oprd_s"),jF()?g.x(e,AQa(a.LD,b,c),3):(d=a.LD.decrypt(b,c),e.Ma(2));2!=e.j&&(d=e.u);a.Wc("oprd_c");return e.return(d)})};
lRa=function(a){return a.K("html5_onesie_host_probing")||a.rj?pB():!1};
EQa=function(a,b,c){null!=(a=bX(a,b))&&(b=a.me.get(b))&&!b.Xf&&(TB(b.yf,c),b.bytesReceived+=c.totalLength,b.jK=!0)};
oX=function(a){if(!a.playerResponse)return!1;if(a.cD)return!0;var b=a.videoData.K("html5_onesie_audio_only_playback")&&TH(a.videoData);if(!a.Zf&&a.Nw&&a.ze&&!DQa(a.ze,b))return!1;if(a.Zf&&a.Nw){if(!a.Zf.has(a.Et))return!1;var c=a.Zf.get(a.Et);if(c&&!DQa(c,b))return!1}a.Wc("ofr");a.Cn.resolve(a.playerResponse);a.K("html5_onesie_time_out_after_resolving")?a.Dw.start():a.Dw.stop();return a.cD=!0};
nRa=function(a){var b;if((null!=(b=a.Zf)?b:a.ze)&&!a.K("html5_onesie_media_capabilities")){a.Wc("ogsf_s");b=WQa(a.xa.getVideoData(),function(d,e){a.va(d,e)});
var c=mRa(a.xa);b.video=OQa(c,b.video);a.Wc("ogsf_c");if(b.video.length)return b;a.va("ombspf","l."+c.u+";u."+c.j+";o."+c.B+";r."+c.reason)}};
oRa=function(a){if(!a.zn)return{};var b=QU(a.zn);b.d=kNa(a.zn);b.shost=a.sS;b.ty="o";return b};
uRa=function(a){function b(e){return(d.Yi&&!c.K("web_player_no_force_gvi")||!((c.Lk?0:c.K("web_player_gvi_wexit")||(g.aG(c)?"TVHTML5"===ZF(c)?vza(c)?c.K("web_player_gvi_wexit_living_room_pangea"):c.K("web_player_gvi_wexit_living_room_bedrock"):"TVHTML5_KIDS"===ZF(c)?c.K("web_player_gvi_wexit_living_room_kids"):"TVHTML5_SIMPLY"===ZF(c)||FF(c)?c.K("web_player_gvi_wexit_living_room_simply"):kG(c)||"TV_UNPLUGGED_CAST"===ZF(c)?c.K("web_player_gvi_wexit_living_room_unplugged"):c.K("web_player_gvi_wexit_living_room_other"):
1))||d.Vl&&d.Sa.C)?0:"yt"!==c.La?38===d.qa&&"books"===c.playerStyle||30===d.qa&&"docs"===c.playerStyle||33===d.qa&&"google-live"===c.playerStyle?0:c.K("web_player_gvi_wexit_all_player_styles"):"adunit"!==oI(d)||c.K("web_player_gvi_wexit_adunit"))?pRa(a,d).then(function(){qX(a,d)},function(f){qX(a,d,!0);
throw f;}):qRa(a,d,e)}
var c=a.V(),d=a.getVideoData();d.isDisposed();d.Ia=!0;return rRa(a)?sRa(a,d).then(function(){qX(a,d)},function(e){e=zG(e);
if(yG(e.severity))return qX(a,d,!0),Promise.reject(e);"onesie.response.badproxystatus"===e.errorCode&&"3"===""+e.details.st&&(tRa=!0);a.handleError(e);return b("onesie")}):b("gvi")};
rRa=function(a){var b=a.V();if(!b.K("html5_onesie"))return!1;var c=a.getVideoData();if(!b.K("html5_onesie_cast")&&(c.I||c.Fh)||!b.K("html5_onesie_inline")&&5===a.getVisibilityState()||"yt"!==b.La)return!1;b=b.Mi;if(!b||!b.j)return a.handleError(new xG("onesie.unavailable.hotconfig",{key:"0"})),!1;b.j.D<(0,g.T)()&&a.va("okexp","1");if(tRa)return a.va("ost3","1"),!1;b={};return 0<Object.keys(b).length?(b.onesie="0",a.handleError(new xG("html5.missingapi",b)),!1):!0};
vRa=function(a){var b=wK();xDa(b,a);return g.EM(b,fGa())};
sRa=function(a,b){var c,d,e,f,h,l,m,n,p,q,u,w,y,A,B,D,G,H,L,N,K,P,R,X,Q,oa,sa;return g.z(function(Ba){if(1==Ba.j)return b.fetchType="onesie",c=FGa(b,a.getPlayerSize(),a.getVisibilityState()),d=new pX(a,c),g.x(Ba,d.fetch(),2);e=Ba.u;f={player_response:e};b.Ia=!1;h=a.V();l=h.K("html5_onesie_ads");m=a.Sg.Ys;if(!l)b.Tk=d.ze;else if(l&&d.Zf)for(n=g.r(d.Zf.entries()),p=n.next();!p.done;p=n.next())q=p.value,u=g.r(q),w=u.next().value,y=u.next().value,A=w,B=y,m.j.set(A,B,180);if(h.K("html5_apply_ustreamer_cap_per_video_id"))for(D=
g.r(d.RO.entries()),G=D.next();!G.done;G=D.next())H=G.value,L=g.r(H),N=L.next().value,K=L.next().value,P=N,R=K,m.u.set(P,R,180);else if(l){var ya=d.ws;a.Sg.bd().ws=ya}else b.ws=d.ws;g.IH(b,f,!0);if(b.Ia||GH(b))return Ba.return(Promise.resolve());l?(kT(m.j),kT(m.u)):b.Tk=void 0;X={};Q="onesie.response";oa=0;b.errorCode?(Q="auth",X.ec=b.errorCode,X.ed=b.errorDetail,X.es=b.bl||"",oa=2):(X.successButUnplayable="1",X.disposed=""+ +b.isDisposed(),X.afmts=""+ +/adaptiveFormats/.test(e),X.cpn=b.clientPlaybackNonce);
sa=new xG(Q,X,oa);return Ba.return(Promise.reject(sa))})};
pRa=function(a,b){var c,d,e,f,h,l,m,n,p,q;return g.z(function(u){switch(u.j){case 1:c=b.isAd(),d=!c,e=c?1:3,f=0;case 2:if(!(f<e)){u.Ma(4);break}if(!(0<f)){u.Ma(5);break}return g.x(u,Nh(5E3),6);case 6:h=new g.Pv("Retrying OnePlatform request",{attempt:f}),g.pz(h);case 5:return g.pa(u,7),g.x(u,wRa(a,b),9);case 9:return u.return();case 7:l=g.ua(u);m=zG(l);n=m.errorCode;d&&"manifest.net.badstatus"===n&&"401"===m.details.rc&&(d=!1,f===e-1&&(e+=1));if("auth"===n||"manifest.net.retryexhausted"===n)return u.return(Promise.reject(m));
a.handleError(m);if(yG(m.severity)){u.Ma(4);break}case 3:f++;u.Ma(2);break;case 4:return p=c?"auth":"manifest.net.retryexhausted",q=c?2:1,u.return(Promise.reject(new xG(p,{backend:"op"},q)))}})};
wRa=function(a,b){var c,d,e,f,h,l,m,n,p,q,u,w,y,A,B,D,G,H,L,N,K,P;return g.z(function(R){switch(R.j){case 1:b.fetchType="gp";c=a.V();d=g.uG(g.sI(b));e=d.getValue();R.Ma(2);break;case 3:e=R.u;case 2:return f=e,h=vRa(f),l=FGa(b,a.getPlayerSize(),a.getVisibilityState()),m=g.pM(xRa),n=g.sI(b),p=(0,g.T)(),q=!1,u="empty",w=0,a.Wc("ps_s"),y=function(X){2===X.readyState&&a.Wc("ps_c")},A={Aw:y},g.x(R,g.yK(h,l,m,void 0,A),4);
case 4:B=R.u;a.Wc("ps_r");if(b.isDisposed())return R.return();B?"error"in B&&B.error?(q=!0,u="esf:"+B.error.message,w=B.error.code):B.errorMetadata&&(q=!0,u="its",w=B.errorMetadata.status):q=!0;if(q)return D=0,G=((0,g.T)()-p).toFixed(),H={backend:"op",rc:""+w,rt:G,reason:u,has_kpt:b.Lb?"1":"0",has_mdx_env:b.mdxEnvironment?"1":"0",has_omit_key_flag:g.O("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:c.pageId?"1":"0",has_token:n?"1":"0",has_vvt:b.Aa?"1":"0",is_mdx:b.isMdxPlayback?
"1":"0",mdx_ctrl:b.Fh||"",token_eq:n===g.sI(b)?"1":"0"},L="manifest.net.connect",429===w?(L="auth",D=2):200<w&&(L="manifest.net.badstatus",400===w&&(D=2)),R.return(Promise.reject(new xG(L,H,D)));b.Ia=!1;g.IH(b,{raw_player_response:B},!0);if(b.errorCode)return N={ec:b.errorCode,ed:b.errorDetail,es:b.bl||""},R.return(Promise.reject(new xG("auth",N,2)));if(!b.Ia&&!GH(b))return K=b.isAd()?"auth":"manifest.net.retryexhausted",P=b.isAd()?2:1,R.return(Promise.reject(new xG(K,{successButUnplayable:"1",hasMedia:eI(b)?
"1":"0"},P)));g.na(R)}})};
qRa=function(a,b,c){var d,e,f,h,l,m,n,p,q,u,w;return g.z(function(y){switch(y.j){case 1:d=tGa(a.V(),b,a.getPlayerSize(),a.getVisibilityState(),a.isFullscreen()),e=function(){return!0},f=function(A){A=zG(A);
if(yG(A.severity))return Promise.reject(A);a.handleError(A);return!1},l=(h=b.isAd())?1:3,m=0;
case 2:if(!(m<l)){y.Ma(4);break}n=d;if(!(0<m)){y.Ma(5);break}return g.x(y,Nh(5E3),6);case 6:p={playerretry:m,playerretrysrc:c},h||(p.recover="embedded"),n=nu(d,p);case 5:return g.x(y,yRa(b,n).then(e,f),7);case 7:if(q=y.u)return y.return();m++;y.Ma(2);break;case 4:u=h?"auth":"manifest.net.retryexhausted";w=h?2:1;if(!h&&1E-4>Math.random())try{g.pz(new g.Pv("b/152131571",btoa(d)))}catch(A){}return y.return(Promise.reject(new xG(u,{backend:"gvi"},w)))}})};
yRa=function(a,b){var c,d,e,f,h,l,m,n,p,q,u,w,y,A;return g.z(function(B){if(1==B.j)return a.fetchType="gvi",c=a.V(),(f=uGa(a))?(d={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:f},e=nu(b,{action_display_post:1})):(d={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},e=b),h={},c.sendVisitorIdHeader&&a.visitorData&&(h["X-Goog-Visitor-Id"]=a.visitorData),(l=g.JE(c.experiments,"debug_sherlog_username"))&&(h["X-Youtube-Sherlog-Username"]=l),0<Object.keys(h).length&&(d.headers=
h),m=(0,g.T)(),n=function(D){if(!a.isDisposed()){D=D?D.status:-1;var G=0,H=((0,g.T)()-m).toFixed();H={backend:"gvi",rc:""+D,rt:H};var L="manifest.net.connect";429===D?(L="auth",G=2):200<D&&(L="manifest.net.badstatus",400===D&&(G=2));return Promise.reject(new xG(L,H,G))}},p=function(D){return n(D.xhr)},g.x(B,sE(Cu,e,d).then(void 0,p),2);
q=B.u;if(!q||!q.responseText)return B.return(n(q));a.Ia=!1;u=ju(q.responseText);g.IH(a,u,!0);if(a.errorCode)return w={ec:a.errorCode,ed:a.errorDetail,es:a.bl||""},B.return(Promise.reject(new xG("auth",w,2)));if(!a.Ia&&!GH(a))return y=a.isAd()?"auth":"manifest.net.retryexhausted",A=a.isAd()?2:1,B.return(Promise.reject(new xG(y,{successButUnplayable:"1"},A)));g.na(B)})};
qX=function(a,b,c){c=void 0===c?!1:c;var d,e,f,h;g.z(function(l){if(1==l.j){d=a.V();if(c&&(!g.mG(d)||"embedded"!==oI(b))||b.er||"adunit"!==oI(b)&&(g.aG(d)||bG(d)||g.TF(d)||g.SF(d)||"WEB_CREATOR"===ZF(d)))return l.return();e=g.uG(g.sI(b));f=e.getValue();return l.Ma(2)}2!=l.j&&(f=l.u);h=f;return l.return(zRa(a,b,h))})};
zRa=function(a,b,c){var d,e,f,h;return g.z(function(l){if(1==l.j){g.pa(l,2);d=vRa(c);var m=b.V();g.pv.getInstance();var n={context:g.eN(b),videoId:b.videoId,racyCheckOk:b.racyCheckOk,contentCheckOk:b.contentCheckOk,autonavState:"STATE_NONE"};"adunit"===oI(b)&&(n.isAdPlayback=!0);m.embedConfig&&(n.serializedThirdPartyEmbedConfig=m.embedConfig);m.Mj&&(n.showContentOwnerOnly=!0);g.qv(0,141)&&(n.autonavState=g.qv(0,140)?"STATE_OFF":"STATE_ON");if(g.nG(m)){m=g.qv(0,65);m=null!=m?!m:!1;var p=!!g.Oz("yt-player-sticky-caption");
n.captionsRequested=m&&p}e=n;f=g.pM(ARa);a.Wc("wn_s");return g.x(l,g.yK(d,e,f),4)}if(2!=l.j)return h=l.u,a.Wc("wn_r"),!h||"error"in h&&h.error||g.IH(b,{raw_watch_next_response:h},!1),g.ra(l,0);g.ua(l);g.na(l)})};
BRa=function(a){function b(){a.Wc("virc");lB("virc",void 0,"video_to_ad")}
a.Wc("vir");lB("vir",void 0,"video_to_ad");var c=uRa(a);c.then(b,b);return c};
g.uX=function(a,b,c,d,e,f,h,l,m,n){m=void 0===m?new g.FH(a):m;n=void 0===n?!0:n;g.az.call(this);var p=this;this.Y=a;this.playerType=b;this.tb=c;this.DA=d;this.getVisibilityState=f;this.visibility=h;this.Sg=l;this.videoData=m;this.IX=n;this.logger=new g.lT("VideoPlayer");this.ey=new dQa(this.Y);this.De=null;this.Fw=new NV;this.Yn=null;this.dh=new WV(this.Y,this.DA,this);this.AP=!0;this.mediaSource=this.Ka=null;this.xk=[];this.vn=new WW;this.Qe=this.cA=null;this.Oo=new WW;this.SD=null;this.qI=this.kq=
!1;this.TD=NaN;this.playerState=new g.YJ;this.WD=[];this.qx=new g.XD;this.al=new TV(this);this.mediaElement=null;this.Vs=new g.Xn(this.q1,15E3,this);this.DK=this.AD=!1;this.Dt=NaN;this.KB=!1;this.EG=0;this.FG=new g.Xn(this.HK,4500,this);this.qz=!1;this.jD=NaN;this.bL=new pT(new Map([["bufferhealth",function(){var q=p.qd;return q.mediaElement?VJ(q.mediaElement):0}],
["bandwidth",function(){return p.MH()}],
["networkactivity",function(){return p.Y.schedule.Z}],
["livelatency",function(){return p.isAtLiveHead()&&p.Tc()?rX(p):NaN}],
["rawlivelatency",function(){return rX(p)}]]));
this.Bz=0;this.loop=!1;this.playbackRate=1;this.cQ=0;this.qd=new PW(this);this.TN=!1;this.VD=[];this.QI=this.JR=0;this.AK=this.qT=!1;this.sG=new g.Xn(this.fZ,0,this);this.rd=null;this.JQ=new g.Xn(this.PX,0,this);this.bE=new g.Xn(this.gS,3E4,this);this.S_=[this.qx,this.sG,this.Vs,this.bE,this.FG,this.bL,this.JQ];this.Ff=function(){var q=p.qc;q.u.Y.oe||3===q.u.xa.getVisibilityState()||(q.u.Y.oe=!0);QPa(q);var u=q.C;u.I&&0>u.u&&3!==u.j.xa.getVisibilityState()&&$V(u);q.qoe&&(q=q.qoe,q.La&&0>q.B&&q.j.Y.oe&&
lW(q));p.Ka&&sX(p);p.Y.cm&&!p.videoData.backgroundable&&p.mediaElement&&!p.Fg()&&(p.isBackground()&&p.mediaElement.uB()?(p.va("bgmobile",{suspend:1}),p.Ro(!0)):p.isBackground()||tX(p)&&p.va("bgmobile",{resume:1}))};
this.Mh=new DW(function(){return p.getCurrentTime()},function(){return p.getPlaybackRate()},function(){return p.getPlayerState()},function(q,u){q!==g.sA("endcr")||g.V(p.playerState,32)||AS(p);
e(q,u,p.playerType)});
g.M(this,this.Mh);g.M(this,this.qd);CRa(this,m);this.videoData.subscribe("dataupdated",this.n3,this);this.videoData.subscribe("dataloaded",this.SG,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.va,this);this.videoData.subscribe("ctmpstr",this.rK,this);DRa(this);MKa(this.Ff);this.visibility.subscribe("visibilitystatechange",this.Ff)};
CRa=function(a,b){if(2===a.playerType||a.Y.gm)b.tN=!0;var c=Qza(b.Lc,b.Xu,a.Y.u,a.Y.C);c&&(b.adFormat=c);2===a.playerType&&(b.un=!0);if(a.isFullscreen()||a.Y.u)c=g.Oz("yt-player-autonavstate"),b.autonavState=c||(a.Y.u?2:a.videoData.autonavState);b.endSeconds&&b.endSeconds>b.startSeconds&&vX(a,b.endSeconds)};
FRa=function(a){if(a.videoData.Qa){var b=a.Sg.Jc();a.videoData.wt=a.videoData.wt||(null==b?void 0:b.PH());a.videoData.Ft=a.videoData.Ft||(null==b?void 0:b.QH())}(b=NBa(a.videoData))||(b=a.videoData,b=!(b.Hk?Mza(b.Hk):1));b&&(b=a.videoData.errorDetail,a.pg("auth",2,unescape(a.videoData.errorReason),b,b,a.videoData.bl||void 0));1===a.playerType&&wX.isActive()&&a.bE.start();a.videoData.zg=a.getUserAudio51Preference();a.K("html5_generate_content_po_token")&&ERa(a)};
DRa=function(a){!a.qc||a.qc.isDisposed();a.qc=new g.CW(new BW(a.videoData,a.Y,a,function(){return a.Sg.pj()}))};
nJ=function(a){return a.mediaElement&&a.mediaElement.Dr()?a.mediaElement.zf():null};
xX=function(a){if(a.videoData.isValid())return!0;a.pg("api.invalidparam",2,void 0,"invalidVideodata.1");return!1};
g.yS=function(a,b){b=void 0===b?!1:b;if(!b){var c=a.qc;$V(c.C);c.qoe&&lW(c.qoe)}a.kq=b;!xX(a)||a.vn.started?g.aG(a.Y)&&a.videoData.isLivePlayback&&a.vn.started&&!a.vn.isFinished()&&!a.kq&&a.SG():(a.vn.start(),b=a.qc,g.zS(b.u),b.qoe&&vPa(b.qoe),a.SG())};
GRa=function(a){var b=a.videoData;BRa(a).then(void 0,function(c){a.videoData!==b||b.isDisposed()||(c=zG(c),"auth"===c.errorCode&&a.videoData.errorDetail?a.pg("auth",2,unescape(a.videoData.errorReason),wG(c.details),a.videoData.errorDetail,a.videoData.bl||void 0):a.handleError(c))})};
RKa=function(a,b){a.rd=b;a.Ka&&eOa(a.Ka,new g.AV(b))};
HRa=function(a){if(!g.V(a.playerState,128))if(a.videoData.isLoaded(),4!==a.playerType&&(a.xk=g.bc(a.videoData.ea)),eI(a.videoData)){a.tb.tick("bpd_s");yX(a).then(function(){a.tb.tick("bpd_c");if(!a.isDisposed()){a.kq&&(a.Xb($J($J(a.playerState,512),1)),tX(a));var c=a.videoData;c.endSeconds&&c.endSeconds>c.startSeconds&&vX(a,c.endSeconds);a.vn.finished=!0;zX(a,"dataloaded");a.Oo.started&&AX(a);oPa(a.dh,a.Qe)}});
a.K("html5_log_media_perf_info")&&a.va("loudness",{v:a.videoData.pe.toFixed(3)},!0);var b=YBa(a.videoData);b&&a.va("playerResponseExperiment",{id:b},!0);a.DG()}else zX(a,"dataloaded")};
yX=function(a){BX(a);a.Qe=null;var b=fQa(a.Y,a.videoData,a.Fg());a.cA=b;a.cA.then(function(c){IRa(a,c)},function(c){a.isDisposed()||(c=zG(c),a.visibility.isBackground()?(CX(a,"vp_none_avail"),a.cA=null,a.vn.reset()):(a.vn.finished=!0,a.pg(c.errorCode,c.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",wG(c.details))))});
return b};
UV=function(a){yX(a).then(function(){return tX(a)});
g.dK(a.playerState)&&a.playVideo()};
IRa=function(a,b){if(!a.isDisposed()&&!b.videoData.isDisposed()){a.Qe=b;qQa(a.qd,a.Qe);if(a.videoData.isLivePlayback){var c=(a.K("html5_onesie_ads")?xLa(a.Sg.Ys,a.videoData.videoId):!!a.videoData.Tk)||a.Ka&&!isNaN(a.Ka.qa);c=a.K("html5_onesie_live")&&c;0<a.videoData.Qd&&!MH(a.videoData)||c||a.seekTo(a.Bd(),{Ae:"videoplayer_playbackData"})}a.videoData.B.j?a.Ka?g.pz(Error("Duplicated Loader")):(c=g.RE(a.Y.experiments,"html5_onesie_defer_content_loader_ms"),a.K("html5_onesie_ads")&&c&&g.Sb(a.xk,"ad")&&
xLa(a.Sg.Ys,a.videoData.rU)?g.vu(function(){a.isDisposed()||a.Ka||DX(a)},c):DX(a)):!a.videoData.B.j&&tI(a.videoData)&&a.FD(new jU(a.videoData.videoId||"",4));
EX(a);ePa(b).then(function(){a.kx();sX(a)})}};
FX=function(a){a.mediaElement&&a.mediaElement.hv();g.yS(a);if(xX(a)&&!g.V(a.playerState,128)){a.Oo.started||(a.Oo.start(),a.videoData.Lu?a.Xb($J(a.playerState,4)):a.Xb($J($J(a.playerState,8),1)));var b=a.Sg.Jc();b=b&&2===b.getPlayerType();a.K("html5_suspend_for_preroll_join_latency")&&b&&1===a.getPlayerType()&&!g.V(a.playerState,512)&&a.Xb($J(a.playerState,512));AX(a)}};
AX=function(a){a.isDisposed();if(!a.Oo.isFinished()&&a.vn.isFinished()&&!g.V(a.playerState,128)&&!a.xk.length){if(!a.Mh.started){var b=a.Mh;b.started=!0;b.Rl()}if(!a.ul()){a.Ka&&(b=a.Ka.timing,a.qI=!!b.u&&!!b.D);a.Oo.isFinished()||(a.Oo.finished=!0);b=a.K("html5_onesie_live")&&a.Ka&&!isNaN(a.Ka.qa);!a.videoData.isLivePlayback||0<a.videoData.Qd&&!MH(a.videoData)||b||(a.seekTo(Infinity,{Ae:"videoplayer_readying"}),a.isBackground()&&(a.DK=!0));b=a.qc;if(b.qoe){b=b.qoe;b.j.videoData.fm&&jW(b,b.j.videoData.fm);
if(b.j.videoData.isLivePlayback){var c=b.j.videoData.j;MH(b.j.videoData)&&jW(b,"manifestless");c&&BE(c)&&jW(b,"live-segment-"+BE(c).toFixed(1))}"yt"!==b.j.Y.La&&(b.u.len=[b.j.videoData.lengthSeconds.toFixed(2)]);b.j.videoData.cotn&&!tI(b.j.videoData)&&sPa(b,!0);vG(b.j.Y)&&(c=vKa())&&b.va("cblt",{m:c})}a.ma("playbackready",a);kB("pl_c",a.tb.timerName)||(a.tb.tick("pl_c"),lB("pl_c",void 0,"video_to_ad"));kB("pbr",a.tb.timerName)||(a.tb.tick("pbr"),lB("pbr",void 0,"video_to_ad"))}}};
AS=function(a,b,c){b=void 0===b?!0:b;(void 0===c||c)&&a.mediaElement&&a.mediaElement.pause();a.Xb(b?new g.YJ(14):new g.YJ)};
vX=function(a,b){a.Yn&&GX(a);a.Yn=new g.qA(1E3*b,0x7ffffffffffff);a.Yn.namespace="endcr";a.addCueRange(a.Yn)};
GX=function(a){a.removeCueRange(a.Yn);a.Yn=null};
IX=function(a,b,c,d){a.videoData.u=c;d&&uV(a,b,d);d=g.HX(a);a.qc.aA(new aPa(a.videoData,c,b,d?d.itag:""));c=a.dh;c.B=0;c.j=0;a.ma("internalvideoformatchange",a.videoData,"m"===b)};
g.HX=function(a){var b=JX(a);return vB(b)||!a.Qe?null:g.Pb(a.Qe.j.videoInfos,function(c){return b.C(c)})};
uV=function(a,b,c){if(c!==a.videoData.D){var d=!a.videoData.D;a.videoData.D=c;"m"!==b&&(b=d?"i":"a");a.qc.Sz(new aPa(a.videoData,c,b,""));d||a.ma("internalaudioformatchange",a.videoData,"m"===b)}};
vV=function(a,b){b&&a.Ed(new xG("qoe.restart",b));a.Xb($J(a.playerState,2048));KX(a);b=a.videoData.j&&HB(a.videoData.j);var c=a.mediaElement&&a.mediaElement.isView();b||c?(a.Ka&&XNa(a.Ka),SV(a)):(tX(a),g.dK(a.playerState)&&a.playVideo())};
JX=function(a){if(a.Qe){var b=a.dh;var c=a.Qe;a=a.zs();if(b.xa.Yp().isInline())var d=EH;else b.K("html5_exponential_memory_for_sticky")?d=.5>EF(b.Y.Qd,"sticky-lifetime")?"auto":wB[FE()]:d=wB[FE()],d=g.uB("auto",d,!1,"s");if(vB(d)){d=bPa(b,c);var e=d.compose,f;a:if((f=c.j)&&f.videoInfos.length){for(var h=g.r(f.videoInfos),l=h.next();!l.done;l=h.next()){l=l.value;var m=void 0;if(null==(m=l.u)?0:m.smooth){f=l.video.j;break a}}f=f.videoInfos[0].video.j}else f=0;xma()&&!g.aG(b.Y)&&DB(c.j.videoInfos[0])&&
(f=Math.min(f,g.tB.large));d=e.call(d,new sB(0,f,!1,"o"));e=d.compose;f=4320;!b.Y.isMobile||g.QF(b.Y)||Tu()||b.Y.K("hls_for_vod")||b.Y.K("mweb_remove_360p_cap")||(f=g.tB.medium);(h=g.RE(b.Y.experiments,"html5_default_quality_cap"))&&c.j.j&&!c.videoData.Fh&&!c.videoData.yd&&(f=Math.min(f,h));h=g.RE(b.Y.experiments,"html5_random_playback_cap");l=/[a-h]$/;h&&l.test(c.videoData.clientPlaybackNonce)&&(f=Math.min(f,h));if(l=h=g.RE(b.Y.experiments,"html5_hfr_quality_cap"))a:{l=c.j;if(l.j)for(l=g.r(l.videoInfos),
m=l.next();!m.done;m=l.next())if(32<m.value.video.fps){l=!0;break a}l=!1}l&&(f=Math.min(f,h));(h=g.RE(b.Y.experiments,"html5_live_quality_cap"))&&c.videoData.isLivePlayback&&(f=Math.min(f,h));f=mPa(b,c,f);d=e.call(d,new sB(0,4320===f?0:f,!1,"d")).compose(lPa(b)).compose(nPa(b,c.videoData,c)).compose(kPa(b,c)).compose(dPa(b,c)).compose(cPa(b,c))}else b.K("html5_perf_cap_override_sticky")&&(d=d.compose(kPa(b,c))),b.K("html5_ustreamer_cap_override_sticky")&&(d=d.compose(dPa(b,c)));b.K("html5_varispeed_playback_rate")&&
(d=d.compose(cPa(b,c)));b=c.videoData.Wu.compose(d).compose(c.videoData.VL).compose(a)}else b=EH;return b};
mRa=function(a){var b=a.dh;a=a.videoData;var c=lPa(b);b.K("html5_disable_client_autonav_cap_for_onesie")||c.compose(nPa(b,a));return c};
g.JRa=function(a,b,c,d){a.videoData.Wu=b;if(a.Qe&&c){c=a.dh;var e=a.Qe;if(e.j.j){var f=FE(),h=e.j.videoInfos[0].video.j;if(!(f>h&&0!==h&&b.j===h)){f=!0;h=c.playbackRate;if(c.K("html5_cap_quality_for_tv_hfr")){var l;f=YV(c,null==(l=e.j)?void 0:l.videoInfos);h=c.xa.getPlaybackRate()}1<h&&f&&c.K("html5_varispeed_playback_rate")&&(l=Cya(c.Y.j,e.j.videoInfos,h),0!==b.j&&l<b.j&&c.xa.setPlaybackRate(1));var m,n;e=(null==(m=e.videoData.u)?void 0:null==(n=m.video)?void 0:n.j)||0;g.Nz("yt-player-quality",{quality:g.tB[xB(b)],
previousQuality:e},31104E3);c.Y.schedule.policy.C=480<=FE();if(c.K("html5_exponential_memory_for_sticky")){b=c.Y.Qd;m=1;var p=void 0===p?!1:p;jza(b,"sticky-lifetime");b.values["sticky-lifetime"]&&b.qo["sticky-lifetime"]||(b.values["sticky-lifetime"]=0,b.qo["sticky-lifetime"]=0);p&&.0625<EF(b,"sticky-lifetime")&&(m=2*b.qo["sticky-lifetime"]);b.values["sticky-lifetime"]+=1*Math.pow(2,b.j/m);b.qo["sticky-lifetime"]=m;b.C.start()}if(c.K("html5_perf_cap_override_sticky"))if(c.K("html5_perserve_av1_perf_cap")){p=
GE();c=g.r(Object.keys(p));for(b=c.next();!b.done;b=c.next())b=b.value,0!==b.indexOf("1")&&(p[b]=0);g.Nz("yt-player-performance-cap",p,604800)}else g.Pz("yt-player-performance-cap")}}}d&&a.Ka&&(a.Ka.ge.qa=d);EX(a)};
ERa=function(a){a.videoData.videoId?a.Sg.JH(a.videoData.videoId).then(function(b){a.videoData.vxa=b}):a.va("pomvid",{})};
EX=function(a){if(!a.isDisposed()&&!g.V(a.playerState,128)&&a.videoData.B){if(a.videoData.B.j)sX(a);else{var b=JX(a),c=a.videoData;a:{var d=a.videoData.Ac;if(b.j){for(var e=g.r(d),f=e.next();!f.done;f=e.next()){f=f.value;var h=f.Dg(),l=g.tB[h.video.quality];if((!b.B||"auto"!==h.video.quality)&&l<=b.j){d=f;break a}}d=d[d.length-1]}else d=d[0]}c.kb=d;IX(a,b.reason,KRa(a,a.videoData.kb))}if(a.K("html5_check_unstarted")?g.dK(a.playerState):a.Tc())a.qd.Wa=!1,a.playVideo()}};
sX=function(a){if(a.videoData.B&&a.videoData.B.j){var b=JX(a);if(a.Ka&&(a=a.Ka,!a.isDisposed()&&!eMa(a.ge,b)&&a.videoTrack)){var c=a.ge.B;ZNa(a,fMa(a.ge,b));qV(a);var d=ZT(a.ge)&&"m"===b.reason&&a.ge.ea,e=a.policy.Qk&&"l"===b.reason&&NU(a.videoTrack);b=c.j>b.j&&"b"===b.reason;c=a.ge.kb&&!mE();d||e||b||c?vV(a.xa,{reattchOnConstraint:d?"u":e?"drm":c?"codec":"perf"}):wV(a)}}};
LRa=function(a){var b;return!!(a.K("html5_native_audio_track_switching")&&g.Xv&&(null==(b=a.videoData.u)?0:TD(b)))};
MRa=function(a){if(!LRa(a))return!1;var b;a=null==(b=a.mediaElement)?void 0:b.audioTracks();return!!(a&&1<a.length)};
ORa=function(a){var b=NRa(a);if(b)return a.videoData.getAvailableAudioTracks().find(function(c){return c.Nc.getName()===b})};
NRa=function(a){var b;if(a=null==(b=a.mediaElement)?void 0:b.audioTracks())for(b=0;b<a.length;++b){var c=a[b];if(c.enabled)return c.label}};
DX=function(a){cya(a.videoData.j,{cpn:a.videoData.clientPlaybackNonce,c:a.Y.deviceParams.c,cver:a.Y.deviceParams.cver});var b=a.Y,c=a.videoData,d=new g.jO(b),e=AHa(b,{hasSubfragmentedFmp4:c.hasSubfragmentedFmp4,Sm:c.Sm});d.C=e;d.Aa=g.RE(b.experiments,"html5_subsegment_readahead_target_buffer_health_secs");d.pe=g.RE(b.experiments,"html5_subsegment_readahead_timeout_secs");d.gr=g.RE(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs");d.oe=g.RE(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");
d.ir=g.RE(b.experiments,"html5_subsegment_readahead_min_load_speed");d.Xi=g.RE(b.experiments,"html5_subsegment_readahead_load_speed_check_interval");d.jr=g.RE(b.experiments,"html5_subsegment_readahead_seek_latency_fudge");d.Ft=b.K("html5_restrict_streaming_xhr_on_sqless_requests");d.Ul=g.RE(b.experiments,"html5_max_headm_for_streaming_xhr");d.gm=b.K("html5_pipeline_manifestless_allow_nonstreaming");d.pm=b.K("html5_prefer_server_bwe3");d.Tk=b.K("html5_last_slice_transition");d.du=b.K("html5_store_xhr_headers_readable");
d.Id=g.RE(b.experiments,"html5_probe_primary_delay_base_ms")||d.Id;d.Fi=b.K("html5_no_placeholder_rollbacks");d.er=b.K("html5_subsegment_readahead_enable_mffa");b.K("html5_allow_video_keyframe_without_audio")&&(d.Ba=!0);d.Ue=b.K("html5_abs_buffer_health");d.Sk=b.K("html5_interruption_resets_seeked_time");d.zg=g.RE(b.experiments,"html5_max_live_dvr_window_plus_margin_secs")||d.zg;d.kf=b.K("html5_explicitly_dispose_xhr");d.wt=b.K("html5_restart_on_unexpected_detach");d.xg=g.RE(b.experiments,"html5_manifestless_seg_drift_limit_secs");
d.yg=g.RE(b.experiments,"html5_max_drift_per_track_secs");d.Qd=g.RE(b.experiments,"html5_static_abr_resolution_shelf");d.Nk=!b.K("html5_encourage_array_coalescing");d.Oj=b.K("html5_filter_non_efficient_formats_for_safari");d.vu=b.K("html5_format_hybridization");d.Gk=b.K("html5_abort_before_separate_init");d.Vt=b.K("html5_serialize_server_stitched_ad_request");d.Fm=b.K("html5_never_pause_appends");d.Hd=g.RE(b.experiments,"html5_min_startup_buffered_media_duration_secs");d.Hk=b.K("html5_attach_po_token_to_bandaid");
b.K("html5_allow_video_keyframe_without_audio")&&(d.Ba=!0);0<g.RE(b.experiments,"html5_max_redirect_response_length")&&(d.Tg=g.RE(b.experiments,"html5_max_redirect_response_length"));e=g.RE(b.experiments,"html5_resource_bad_status_delay_scaling");0<e&&(d.Rs=e);d.Kd=b.K("html5_rewrite_timestamps_for_webm");d.Ya=b.K("html5_only_media_duration_for_discontinuities");b.K("html5_media_common_config_killswitch")||(d.D=c.maxReadAheadMediaTimeMs/1E3||d.D,e=b.schedule,e.B.Rh()===e.policy.B?d.Ia=10:d.Ia=c.minReadAheadMediaTimeMs/
1E3||d.Ia,d.jf=c.readAheadGrowthRateMs/1E3||d.jf);Al&&(d.Wa=41943040);d.Gb=!rE();g.aG(b)||!rE()?(e=b.experiments,d.I=8388608,d.ea=524288,d.Lk=5,d.Ac=2097152,d.eb=1048576,d.lq=1.5,d.cm=!1,d.Tb=4587520,Qu()&&(d.Tb=786432),d.u*=1.1,d.B*=1.1,d.yb=!0,d.Wa=d.I,d.Lc=d.ea,d.Te=e.jb("persist_disable_player_preload_on_tv")||e.jb("persist_disable_player_preload_on_tv_for_living_room")||!1):b.isMobile&&(d.u*=1.3,d.B*=1.3);g.$D&&Mu("crkey")&&(e="CHROMECAST/ANCHOVY"===b.deviceParams.cmodel,d.I=20971520,d.ea=1572864,
e&&(d.Tb=812500,d.Mw=1E3,d.vr=5,d.eb=2097152));!b.K("html5_disable_firefox_init_skipping")&&g.oB&&(d.yb=!0);b.supportsGaplessAudio()||(d.Mj=!1);HF&&(d.kb=!0);d.xd=b.K("html5_peak_shave");"onesie"===c.fetchType&&b.K("html5_disable_peak_shave_for_onesie")&&(d.xd=!1);var f;e=null==(f=c.j)?void 0:HB(f);if(MH(c)){d.Ce=!0;d.Pj=!0;d.Ya=!0;d.Kd=!0;d.Zt=!0;if("ULTRALOW"===c.latencyClass||"LOW"===c.latencyClass&&!b.K("html5_disable_low_pipeline"))d.Vk=2,d.Vl=4;d.Wn=c.defraggedFromSubfragments;c.Fe&&(d.Dm=!0);
g.gI(c)&&(d.ob=!1);d.Pk=g.lG(b);d.useUmp=!1}c.isAd()&&(d.Sc=0,d.Xk=0,d.Hd=g.RE(b.experiments,"html5_min_startup_buffered_ad_media_duration_secs"));wBa(c)&&(d.ya=!0,b.K("html5_aggressive_timeout_for_streaming_xhr")&&(d.Mw=400,d.Wl=10,d.qm=1,d.fm=!0,d.Li=5,d.Tl=2,d.Vg=3,d.Qi=1.4));d.Pc=b.K("html5_enable_subsegment_readahead_v3")||b.K("html5_ultra_low_latency_subsegment_readahead")&&"ULTRALOW"===c.latencyClass;d.zc=vG(b);d.Z=d.zc&&(/^rq[a-f]/.test(c.clientPlaybackNonce)||2<=b.Z);Yu()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(b.deviceParams.cmodel)&&
!b.K("html5_disable_move_pssh_to_moov")&&e&&(d.yb=!1);var h=0;b.K("html5_live_use_alternate_bandwidth_window_sizes")&&(h=b.schedule.policy.u,c.isLivePlayback&&(h=g.RE(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.Aa.j=MH(c)?.5:0;if(!f.policy.j&&h&&(f=f.B,h=Math.round(h*f.resolution),h!==f.j)){var l=Array(h),m=Math.min(h,f.u?
f.j:f.valueIndex),n=f.valueIndex-m;0>n&&(n+=f.j);for(var p=0;p<m;++p)l[p]=f.values[(n+p)%f.j];for(;p<h;++p)l[p]=Infinity;f.j=h;f.values=l;f.valueIndex=m%h;f.u=m===h;f.C=!0;f.D=cza(f)}d.Fm=c.isLivePlayback;switch(ZH(c)){case 21530001:d.Bk=b.K("html5_live_smoothly_extend_max_seekable_time");d.Pc=!0;"LOW"===c.latencyClass?d.Aa=g.RE(b.experiments,"html5_jumbo_mobile_subsegment_readahead_target"):"ULTRALOW"===c.latencyClass&&(d.Aa=g.RE(b.experiments,"html5_jumbo_ull_subsegment_readahead_target"));d.Fi=
!0;break;case 2153E4:d.Pc=!1}c.vf()&&(d.Ok=1.3);d.kb=d.kb||c.KI;d.Ld=c.Qa;2<=b.Z&&(d.qa=!0);c.Qa&&!e&&(d.Ni=!0);c.Qa&&c.isAd()&&(d.u*=1.6,d.B*=1.6);tI(c)&&(d.j=c.videoId,b.K("woffle_pending_promises_killswitch")&&(d.Rb=!1),d.Ue=!0,d.lr=4,c.Ps&&0<c.Ps.length&&(d.Ne=c.Ps));d.Qk=c.Xi;d.S=IE(b,{},c.B||void 0);d.Qa=TH(c)&&g.TF(b);c=480<=FE();e=g.RE(b.experiments,"html5_deadzone_multiplier")||1;d.u*=e;d.B*=e;if(e=g.RE(b.experiments,"html5_request_sizing_multiplier"))d.Ps=e;EB(b.j,FB.BITRATE)&&(d.Tb=NaN);
b.j.B&&(d.Nj="; "+FB.EXPERIMENTAL.name+"=allowed");c&&(d.Qd=0);b.K("html5_prefer_low_quality_audio_means_64k")&&HF&&(d.nm=!0);b.K("debug_html5_random_stun_format")&&(d.Mi=!0);b.K("html5_log_audio_abr")&&(d.Uk=!0);b=a.getAudioTrack();b=b.Nc.isDefault?void 0:b;OV(a.Fw);if(a.K("html5_onesie_ads"))a:{c=a.Sg.Ys;if(e=a.videoData.videoId)if(f=c.j.get(e)){c.j.remove(e);c=f;break a}c=void 0}else c=a.videoData,e=c.Tk,delete c.Tk,c=e;a.Ka=new g.pV(a,a.Y.schedule,d,a.videoData.j,a.videoData.B,JX(a),b,a.videoData.enableServerStitchedDai,
c,a.videoData.La);d=PRa(a)?!0:a.kq&&g.aG(a.Y)&&a.videoData.isLivePlayback;a.Ka.initialize(a.getCurrentTime(),JX(a),d);a.videoData.probeUrl&&(a.Ka.Aa=a.videoData.probeUrl);!a.xk.length&&!a.kq||!a.K("woffle_disable_suspend_loader_killswitch")&&a.videoData.cotn||LX(a,!1);TW(a.qd,a.Ka);a.rd&&eOa(a.Ka,new g.AV(a.rd));g.uI(a.videoData)&&(d=a.Ka,d.policy.Af=d.policy.Tu,a.K("html5_offline_retry_index_db_read")&&(CAa=!0))};
BX=function(a){a.Ka&&(a.Ka.dispose(),a.Ka=null,TW(a.qd,null));KX(a)};
KX=function(a){if(a.mediaSource){if(a.Ka){var b=MH(a.videoData)&&a.videoData.Fe&&!a.videoData.isAd();sV(a.Ka,b)}a.mediaSource.dispose();a.mediaSource=null}};
QRa=function(a){if(a.mediaSource)return a.mediaSource.B;a:{try{if(g.Ou()&&a.videoData.FI()){var b=a.mediaElement;b.B&&(b.B.dispose(),b.B=void 0)}var c=a.mediaElement.Up()}catch(e){if(VV(a.al,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",e);a.pg("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}uS(a,c)}var d;return(null==(d=a.Up())?void 0:d.B)||null};
uS=function(a,b){RRa(a);a.mediaSource=b;Exa(a.mediaSource,function(c){try{if(a.mediaSource&&(!c||a.mediaSource===c)){var d=a.getDuration();!d&&MH(a.videoData)&&(d=25200);a.mediaSource.isView?(c=d,c>a.mediaSource.getDuration()&&a.mediaSource.Cj(c)):a.mediaSource.Cj(d);var e=a.Ka,f=a.mediaSource;e.policy.J&&(e.mj(),e.policy.J=!1);YNa(e);if(!f.j&&!f.u){var h=e.videoTrack.Kg(),l=h?h.info.j:e.videoTrack.j,m=e.audioTrack.Kg(),n=l.info.mimeType+e.policy.Nj,p=(m?m.info.j:e.audioTrack.j).info.mimeType,q,u=
null==(q=f.mediaSource)?void 0:q.addSourceBuffer(p),w,y="fakesb"===n.split(";")[0]?void 0:null==(w=f.mediaSource)?void 0:w.addSourceBuffer(n);f.Nf&&(f.Nf.webkitSourceAddId("0",p),f.Nf.webkitSourceAddId("1",n));var A=new lE(u,f.Nf,"0",OD(p),!1),B=new lE(y,f.Nf,"1",OD(n),!0);f.j=A;f.u=B;g.M(f,A);g.M(f,B)}CU(e.videoTrack,f.u||null);CU(e.audioTrack,f.j||null);e.mediaSource=f;e.resume();g.bz(f.j,e.ya,e);g.bz(f.u,e.ya,e);try{e.Tj()}catch(D){g.oz(D)}a.ma("mediasourceattached")}}catch(D){g.pz(D),a.handleError(new xG("fmt.unplayable",
{msi:"1",ename:D.name},1))}})};
RRa=function(a){a.Ka?a.Ka.seek(a.getCurrentTime()-a.Cd()).bj(function(){}):DX(a)};
SV=function(a,b){b=void 0===b?!1:b;return g.z(function(c){if(1==c.j)return!a.K("html5_reset_daistate_on_newelement_killswitch")&&a.Ka&&a.Ka.Fs(),a.Ka&&a.Ka.isDisposed()&&BX(a),a.Xb($J(a.playerState,2048)),a.ma("newelementrequired"),b?g.x(c,yX(a),2):c.Ma(2);g.V(a.playerState,8)&&a.playVideo();g.na(c)})};
JKa=function(a,b){a.va("newelem",{r:b});SV(a)};
MX=function(a){a.tb.D.xJ();g.V(a.playerState,32)||(a.Xb($J(a.playerState,32)),g.V(a.playerState,8)&&a.pauseVideo(!0),a.ma("beginseeking",a));a.hc()};
SS=function(a){g.V(a.playerState,32)?(a.Xb(bK(a.playerState,16,32)),a.ma("endseeking",a)):g.V(a.playerState,2)||a.Xb($J(a.playerState,16));a.tb.D.CJ(a.videoData,g.V(a.playerState,4))};
zX=function(a,b){a.ma("internalvideodatachange",void 0===b?"dataupdated":b,a,a.videoData)};
SRa=function(a){for(var b=g.r("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),c=b.next();!c.done;c=b.next())a.qx.T(a.mediaElement,c.value,a.VJ,a);a.Y.Lj&&a.mediaElement.Dr()&&(a.qx.T(a.mediaElement,"webkitplaybacktargetavailabilitychanged",a.s0,a),a.qx.T(a.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",a.t0,a))};
TRa=function(a){window.clearInterval(a.TD);NX(a)||(a.TD=g.wu(function(){return NX(a)},100))};
NX=function(a){var b=a.mediaElement;b&&a.AD&&!a.videoData.Wa&&!kB("vfp",a.tb.timerName)&&2<=b.hj()&&!b.Yg()&&0<iE(b.Xg())&&a.tb.tick("vfp");return(b=a.mediaElement)&&!a.videoData.Wa&&0<b.getDuration()&&(!kB("pbp",a.tb.timerName)&&b.Pn()&&2<=b.hj()&&0<iE(b.Xg())&&a.tb.tick("pbp"),b=b.getCurrentTime(),EW(a.ey,b))?(CKa(a),!0):!1};
CKa=function(a){window.clearInterval(a.TD);a.Vs.stop();a.videoData.Wa=!0;a.Y.Tl=!0;a.Y.yb=0;var b=a.al;if(b.videoData.u){var c=b.Sa.j;c.u.delete(b.videoData.u.j);c.j=!0}b.j.stop();a.Y.Gk=a.videoData.MI;a.videoData.CT=!0;URa(a);g.V(a.playerState,8)&&a.Xb(aK(a.playerState,65));a.K("web_player_reset_preloading_killswitch")||(a.kq=!1);b=a.qc;b.j&&KPa(b.j);b=b.C;c=g.zS(b.j);0>b.u&&(b.u=c,b.delay.start());b.B=c;b.D=c;g.Yn(a.FG);a.ma("playbackstarted");g.Dv()&&((a=g.Ga("yt.scheduler.instance.clearPriorityThreshold"))?
a():Ev(0))};
URa=function(a){var b=a.getCurrentTime(),c=a.Sg.bd();!kB("pbs",a.tb.timerName)&&CA.measure&&CA.getEntriesByName&&(CA.getEntriesByName("mark_nr")[0]?Dva("mark_nr"):Dva());c.videoId&&a.tb.info("docid",c.videoId);c.eventId&&a.tb.info("ei",c.eventId);c.clientPlaybackNonce&&!a.K("web_player_early_cpn")&&a.tb.info("cpn",c.clientPlaybackNonce);0<c.startSeconds&&a.tb.info("start",c.startSeconds.toString());if(a.mediaElement&&a.mediaElement.Pn())if(a.Y.experiments.jb("web_csi_via_jspb")){var d=new ut;g.E(d,
6,!0);var e=new wt;F(e,ut,22,d);jB(e,a.tb.timerName)}else a.tb.info("paused",1);a.Y.experiments.jb("web_csi_via_jspb")?(d=new ut,c.u?g.E(d,1,Number(c.u.itag)):g.E(d,1,-1),e=new wt,F(e,ut,22,d),jB(e,a.tb.timerName)):c.u?a.tb.info("fmt",c.u.itag):a.tb.info("fmt","-1");c.wg&&(e=a.qI?2:1,a.Y.experiments.jb("web_csi_via_jspb")?(d=new ut,g.E(d,8,e),e=new wt,F(e,ut,22,d),jB(e,a.tb.timerName)):a.tb.info("yt_pre",String(a.qI?2:1)));a.isFullscreen()&&a.tb.info("yt_fs","1");c={liveStreamMode:VRa[cI(c)]};XA(c,
a.tb.timerName);a.tb.info("cmt",b.toFixed(3));if(a.Ka){b=a.Ka.timing;window&&window.performance&&window.performance.getEntriesByName&&(b.D&&(c=window.performance.getEntriesByName(b.D),c.length&&(c=c[0],b.tick("vri",c.fetchStart),b.tick("vdns",c.domainLookupEnd),b.tick("vreq",c.requestStart),b.tick("fvb",c.responseStart),b.tick("fvb_r",c.responseStart),b.tick("vrc",c.responseEnd))),b.u&&(c=window.performance.getEntriesByName(b.u),c.length&&(c=c[0],b.tick("ari",c.fetchStart),b.tick("adns",c.domainLookupEnd),
b.tick("areq",c.requestStart),b.tick("avb",c.responseStart),b.tick("fab_r",c.responseStart),b.tick("arc",c.responseEnd))));b=b.ticks;for(var f in b)b.hasOwnProperty(f)&&a.tb.tick(f,b[f])}};
WRa=function(a){a.qc.Yd();if(fI(a.videoData)&&Date.now()>a.cQ+6283){if(!(!a.isAtLiveHead()||a.videoData.j&&yE(a.videoData.j))){var b=a.qc;if(b.qoe){b=b.qoe;var c=b.j.xa.bz(),d=g.zS(b.j);gW(b,d,c);c=c.D;isNaN(c)||g.dW(b,d,"e2el",[c.toFixed(3)])}}g.lG(a.Y)&&a.va("rawlat",{l:rT(a.bL,"rawlivelatency").toFixed(3)});a.cQ=Date.now()}a.videoData.u&&TD(a.videoData.u)&&(b=nJ(a))&&b.videoHeight!==a.QI&&(a.QI=b.videoHeight,IX(a,"a",KRa(a,a.videoData.kb)))};
KRa=function(a,b){if("auto"===b.j.video.quality&&TD(b.Dg())&&a.videoData.Ac)for(var c=g.r(a.videoData.Ac),d=c.next();!d.done;d=c.next())if(d=d.value,d.getHeight()===a.QI&&"auto"!==d.j.video.quality)return d.Dg();return b.Dg()};
rX=function(a){if(!fI(a.videoData))return NaN;var b=0;a.Ka&&a.videoData.j&&(b=MH(a.videoData)?a.Ka.XB.Rh()||0:a.videoData.j.S);return Date.now()/1E3-a.getIngestionTime()-b};
XRa=function(a){!a.K("html5_ignore_airplay_events_on_new_video_killswitch")&&a.mediaElement&&a.mediaElement.Fg()&&(a.jD=(0,g.T)());a.Y.nm?g.vu(function(){OX(a)},0):OX(a)};
OX=function(a){if(a.mediaElement)try{a.SD=a.mediaElement.playVideo()}catch(c){CX(a,"err."+c)}if(a.SD){var b=a.SD;b.then(void 0,function(c){if(!(g.V(a.playerState,4)||g.V(a.playerState,256)||a.SD!==b||c&&"AbortError"===c.name&&c.message&&c.message.includes("load"))){var d="promise";c&&c.name&&(d+=";m."+c.name);CX(a,d);a.TN=!0;a.videoData.JT=!0}})}};
CX=function(a,b){g.V(a.playerState,128)||(a.Xb(bK(a.playerState,1028,9)),a.va("dompaused",{r:b}),a.ma("onAutoplayBlocked"))};
tX=function(a){if(!a.mediaElement||!a.videoData.B)return!1;var b,c=null;if(null==(b=a.videoData.B)?0:b.j){c=QRa(a);var d;null==(d=a.Ka)||d.resume()}else BX(a),a.videoData.kb&&(c=a.videoData.kb.Px());b=c;d=a.mediaElement.uB();c=!1;d&&d.equals(b)||(YRa(a,b),c=!0);g.V(a.playerState,2)||(b=a.qd,b.D||!(0<b.C)||b.mediaElement&&0<b.mediaElement.getCurrentTime()||b.seekTo(b.C,{Ae:"playbacktimeline_resumeTime"}));a:if(b=c,g.aI(a.videoData)&&a.mediaElement)if((d=a.videoData.S)&&a.mediaElement.Dr()){var e=a.mediaElement.zf();
if(a.De)if(e!==a.De.element)PX(a);else if(b&&"fairplay"===d.flavor&&!Pu())PX(a);else break a;a.De=new PV(e,a.videoData,a.Y);a.De.subscribe("licenseerror",a.DD,a);a.De.subscribe("qualitychange",a.m1,a);a.De.subscribe("heartbeatparams",a.Wz,a);a.De.subscribe("keystatuseschange",a.Eq,a);a.De.subscribe("ctmp",a.va,a);b=g.r(a.Fw.keys);for(d=b.next();!d.done;d=b.next())d=a.Fw.get(d.value),a.De.zw(d);a.K("html5_eme_loader_sync")||OV(a.Fw)}else a.pg("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",
"drm.1");return c};
YRa=function(a,b){a.tb.tick("vta");lB("vta",void 0,"video_to_ad");0<a.getCurrentTime()&&sQa(a.qd,a.getCurrentTime());a.mediaElement.hv(b);a.mediaSource&&Ev(4);!a.videoData.Wa&&g.dK(a.playerState)&&a.Vs.start();if(LRa(a)){var c;if(b=null==(c=a.mediaElement)?void 0:c.audioTracks())b.onchange=function(){a.ma("internalaudioformatchange",a.videoData,!0)}}};
PX=function(a){a.De&&(a.De.dispose(),a.De=null)};
vS=function(a,b){b=void 0===b?!1:b;return fI(a.videoData)&&(a.isAtLiveHead()&&(a.K("html5_videoplayer_getmaxseekabletimeforux_check_pause_killswitch")||!g.V(a.playerState,4))||a.Co()||g.gI(a.videoData))?a.getCurrentTime():a.Bd(b)};
ZRa=function(a){a.mediaElement&&(a.mediaSource?(PX(a),KX(a),QRa(a)):(a.videoData.kb&&a.videoData.kb.FK(),a.mediaElement.stopVideo()),a.playVideo())};
QX=function(a,b){a.Y.K("html5_log_rebuffer_reason")&&a.va("bufreason",{r:b,lact:Nx()})};
NS=function(a,b,c,d,e,f,h){var l;if(null==(l=a.videoData.j)?0:l.isLive){l=2===c.playerType?c:b;var m=b.videoData.videoId,n=c.videoData.videoId;if(m&&n){var p=a.qc;if(p.qoe){p=p.qoe;var q=b.cpn,u=c.cpn,w=l.videoData.Lc,y=p.j.videoData.clientPlaybackNonce,A=p.j.videoData.videoId,B=u!==y&&n!==A;y=q!==y&&m!==A;p.reportStats();p.adCpn&&p.adCpn!==q||(p.adCpn=y?q:"",p.Z=y?m:"",p.adFormat=y?w:void 0,zPa(p,h?4:f?2:0,u,n,e),p.reportStats(),p.adCpn=B?u:"",p.Z=B?n:"",p.adFormat=B?w:void 0,zPa(p,h?5:f?3:1,q,m,
d),p.reportStats())}d=a.qc;f=b.cpn;if(d.B.has(f)){if(h=d.B.get(f),zW(h).send(),yW(h),f!==d.u.videoData.clientPlaybackNonce){AW(h);var D;null==(D=d.j)||wW(D);d.B.delete(f)}}else d.uh=d.u.videoData.clientPlaybackNonce,d.uh&&d.j&&(d.B.set(d.uh,d.j),zW(d.j).send(),yW(d.j));D=a.qc;d=c.cpn;l=l.videoData;f=e-a.oo();if(D.B.has(d))if(l=D.B.get(d),D.u.Y.K("html5_flush_vss_with_rti_and_rtn")){var G=xW(l);l=zW(l);isNaN(G)||(l.D=G);l.send()}else zW(l).send(),xW(l);else l=UPa(D,D.u,l,f),D.B.set(d,l),D.u.Y.K("html5_ssdai_vss_player_state_change")&&
l.Uc(new g.qJ($J(new g.YJ,8),new g.YJ)),KPa(l),null==(G=D.j)||yW(G);D.uh=d;G=a.videoData.clientPlaybackNonce;a=c.videoData;b=(b.cpn===G?"video":"ad")+"_to_"+(c.cpn===G?"video":"ad");G={};!a.K("web_player_csi_ctt_killswitch")&&a.I&&(G.cttAuthInfo={token:a.I,videoId:a.videoId});G.startTime=e;YA(b,G);XA({targetVideoId:a.videoId,targetCpn:c.cpn},b);WA("pbs",e,b)}}};
$Ra=function(a,b){if(vG(a.Y)){var c=g.RE(a.Y.experiments,"html5_log_rebuffer_events");if(c&&a.mediaElement){var d=a.mediaElement.Sb();d.rt=(1E3*g.zS(a.qc.u)).toFixed();d.e=b.substr(0,3);a.VD[a.JR++%c]=d}}};
aSa=function(a){if(vG(a.Y)){a.VD.sort(function(d,e){return+d.rt-+e.rt});
for(var b=g.r(a.VD),c=b.next();!c.done;c=b.next())c=c.value,a.va("vpe",Object.assign({t:c.rt},c));a.VD=[];a.JR=0}};
bSa=function(a){if(Mu("cobalt")&&Mu("nintendo switch")){var b=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;a.va("nxdock",{d:b})}};
BKa=function(a,b,c,d,e){a.va("xvt",{m:b,g:1,tt:c?1:0,np:d?1:0,c:e})};
LX=function(a,b){var c;null==(c=a.Ka)||rV(c,b||PRa(a))};
PRa=function(a){var b=a.K("disable_prefetch_when_ad_pending_for_living_room")&&g.aG(a.Y),c=a.K("disable_prefetch_when_ad_pending_for_web");return(b||c)&&g.Sb(a.xk,"ad")};
g.TX=function(a,b,c){g.J.call(this);var d=this;this.logger=new g.lT("App");this.Jz=this.Oh=!1;this.Xt={};this.qv=new JGa;this.cE={};this.Qw=[];this.LP=!1;this.CI=null;this.PP=!1;this.Ns=!0;this.TK=!1;this.fQ=this.RI=null;this.lQ=!0;this.mediaElement=this.xb=null;this.bA=!1;this.Vd=this.qS=this.jA=this.Jb=this.playlist=null;this.BA=void 0;this.Vq=0;this.Gd=this.vx=this.Mk=null;this.config=Hra(b||{});this.webPlayerContextConfig=c;cna();b=this.config.args||{};this.Y=new cG(b,c,c?c.canaryState:this.config.assets.player_canary_state);
g.M(this,this.Y);this.DG();this.Y.experiments.jb("web_player_all_payloads_via_jspb")&&(g.S("migrate_events_to_ts")?(cSa||(cSa=!0),py=dSa,qy=eSa):(fSa||(fSa=!0),Qy=dSa,Ry=eSa));this.Y.isMobile&&!gSa&&(window.addEventListener(GF?"touchstart":"click",wKa,{capture:!0,passive:!0}),gSa=!0);this.K("html5_onesie")&&(this.ot=new iS(this.Y),g.M(this,this.ot));this.ES=cv(MF(this.Y)&&!0,b.enablesizebutton);this.JI=cv(!1,b.player_wide);this.visibility=new CS;g.M(this,this.visibility);this.setIsExternalPlaylist(b.external_list);
this.events=new g.XD(this);g.M(this,this.events);this.Po=new nT;g.M(this,this.Po);this.Zn=new nT;g.M(this,this.Zn);this.gq=new GLa;b=new gN;this.Va=new g.uN(this,b);g.M(this,this.Va);this.template=new vT(this);g.M(this,this.template);this.appState=1;this.Gh=hSa(this);this.G=this.Y.C?new sN(this,b,!0,1):new jN(this,b,!0,1);g.M(this,this.G);g.M(this,b);b={};this.CG=(b.internalvideodatachange=this.w0,b.playbackready=this.y0,b.playbackstarted=this.z0,b.statechange=this.A0,b);this.OY=new oHa(this.Va);
g.M(this,this.OY);this.Bc=iSa(this);this.B_=new g.XD(this);g.M(this,this.B_);this.K("html5_enable_web_assembly")&&this.Bc&&NHa(this.Bc).then(function(e){d.Y.Vk=e});
this.tb=new WN(this.Y,this.Bc);this.Va.ma("csiinitialized");this.sb=jSa(this);this.sb.setPlaybackRate(this.Y.u?1:kSa(this,Number(g.Oz("yt-player-playback-rate"))||1));g.bz(this.sb,this.CG,this);FRa(this.sb);b={};this.NR=(b.airplayactivechange=this.onAirPlayActiveChange,b.airplayavailabilitychange=this.onAirPlayAvailabilityChange,b.beginseeking=this.xJ,b.endseeking=this.CJ,b.internalAbandon=this.HJ,b.internalaudioformatchange=this.Sz,b.internalvideodatachange=this.onVideoDataChange,b.internalvideoformatchange=
this.aA,b.liveviewshift=this.o1,b.playbackstalledatstart=this.P2,b.progresssync=this.Z1,b.onLoadProgress=this.onLoadProgress,b.SEEK_COMPLETE=this.Bw,b.SEEK_TO=this.E2,b.onVideoProgress=this.onVideoProgress,b.onLoadedMetadata=this.onLoadedMetadata,b.onAutoplayBlocked=this.onAutoplayBlocked,b.playbackready=this.P1,b.statechange=this.BR,b.connectionissue=this.Uz,b.newelementrequired=this.hR,b.heartbeatparams=this.Wz,b.videoelementevent=this.VJ,b.drmoutputrestricted=this.onDrmOutputRestricted,b.signatureexpired=
this.K2,b.nonfatalerror=this.G1,b);this.qq=new g.XD(this);g.M(this,this.qq);b=10;g.aG(this.Y)&&(b=3);kG(this.Y)&&(b=g.RE(this.Y.experiments,"tvhtml5_unplugged_preload_cache_size"));this.Ys=new mT;g.M(this,this.Ys);this.fA=new iT(b,function(e){e!==g.pN(d,e.getPlayerType())&&e.dispose()});
g.M(this,this.fA);this.DH=this.oC=-1;this.sE=new g.Xn(this.template.resize,16,this.template);g.M(this,this.sE);lSa(this);this.rd=new YS(this.Va,this.Y,this.sb);this.sx=new wS(this);g.M(this,this.sx);tLa(this.Y.deviceParams.c);this.events.T(this.Va,g.sA("appapi"),this.u0);this.events.T(this.Va,g.tA("appapi"),this.v0);this.events.T(this.Va,g.sA("appad"),this.MQ);this.events.T(this.Va,g.tA("appad"),this.MQ);this.events.T(this.Va,g.sA("appprogressboundary"),this.Y1);this.events.T(this.Va,g.tA("applooprange"),
this.uE);this.events.T(this.Va,"presentingplayerstatechange",this.Dh);this.events.T(this.Va,"resize",this.o2);this.template.Ca(Ada(a));this.events.T(this.Va,"offlineslatestatechange",this.I1);this.LL=mSa(this,this.template.element);g.M(this,this.LL);this.Bc.G.V().yg&&pO(this.Bc,"offline");this.Y.Ac&&g.dO("ux",g.gS);this.ON=new g.Xn(this.U3,g.RE(this.Y.experiments,"html5_defer_fetch_att_ms"),this);g.M(this,this.ON);this.bd().isValid()&&(g.Qz()&&this.bd().ea.push("remote"),RX(this),!this.Y.K("html5_delay_initial_loading")&&
SX(this)&&(this.Y.Xi||this.Y.jf)&&g.yS(this.sb));this.tb.tick("fs");nSa(this);this.Y.Ac&&KHa(this.Bc);g.VF(this.Bc.G.V())&&pO(this.Bc,"music");g.KF(this.Bc.G.V())&&pO(this.Bc,"embed");this.K("web_player_sentinel_is_uniplayer")||g.pz(new g.Pv("Player experiment flags missing","web_player_sentinel_is_uniplayer"));a=this.K("web_player_sentinel_yt_experiments_sync");b=g.S("web_player_sentinel_yt_experiments_sync");a!==b&&g.pz(new g.Pv("b/195699950",{yt:a,player:b}));c||g.pz(new g.Pv("b/179532961"));this.kT=
oSa(this);if(c=g.RE(this.Y.experiments,"html5_block_pip_safari_delay"))this.HH=new g.Xn(this.bO,c,this),g.M(this,this.HH);this.Y.K("embeds_enable_pem_cookie_blocking_killswitch")||(Hu=this.Y.eb);c=g.RE(this.Y.experiments,"html5_performance_impact_profiling_timer_ms");0<c&&(this.ER=new g.Lh(c),g.M(this,this.ER),this.events.T(this.ER,"tick",function(){d.FR&&pSa.Lp(d.FR);d.FR=pSa.Rq("apit")}));
c=this.Y.Af||0;0<c&&(this.Hr=new g.Xn(this.iE,c,this),g.M(this,this.Hr))};
oSa=function(a){function b(c){c.stack&&-1!==c.stack.indexOf("player")&&(a.Jb||a.sb).qc.Ed("player.exception",wG({n:c.name,m:c.message}))}
qz.subscribe("handleError",b);du.push(b);return function(){qz.unsubscribe("handleError",b);var c=du.indexOf(b);-1!==c&&du.splice(c,1)}};
jSa=function(a){var b=new g.FH(a.Y,a.config.args);return a.qy(1,b)};
iSa=function(a){var b="",c=BLa(a);0===c.indexOf("//")&&(c=a.Y.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.pz(Error("Player module URL mismatch: "+(c+" vs "+b+".")));b=new mO(a.Va,b);qSa(a,b);return b};
qSa=function(a,b){var c={};c=(c.destroyed=function(){a.onApiChange()},c);
b.u=c};
rSa=function(a,b){var c=a.isVideoInfoVisible();a.Mk||(a.Mk=new DT(a.Va),g.M(a,a.Mk),g.BN(a.Va,a.Mk.element,4));g.WK(a.Mk,b);UX(a)&&c!==b&&xN(a.Bc).mL();a=a.Jb;b&&a&&a.va("sfn",{},!0)};
hSa=function(a){if(a.Y.storeUserVolume){a=g.Oz("yt-player-volume")||{};var b=a.volume;a={volume:isNaN(b)?100:g.Eg(Math.floor(b),0,100),muted:!!a.muted}}else a={volume:100,muted:a.Y.mute};return a};
VX=function(a){a.mediaElement=a.Y.deviceIsAudioOnly?new g.zO(g.hh("AUDIO")):pS.pop()||new g.zO(g.hh("VIDEO"));g.M(a,a.mediaElement);a.Jb&&a.Jb.setMediaElement(a.mediaElement);try{a.Y.zc?(a.vx&&a.events.yc(a.vx),a.vx=a.events.T(a.mediaElement,"volumechange",a.A1)):(a.mediaElement.Sw(a.Gh.muted),a.mediaElement.setVolume(a.Gh.volume/100))}catch(d){a.Of("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(d.message&&d.message.replace(/[;:,]/g,"_")));return}g.$y(a.qq);sSa(a);var b=a.template;
b.Nb=a.mediaElement.zf();b.UC=!1;b.Nb.parentNode||g.kh(b.oy,b.Nb,0);b.aE=new g.wl(0,0,0,0);FLa(b);wT(b);g.fo(b.Nb,"video-stream");g.fo(b.Nb,g.uT.MAIN_VIDEO);var c=b.app.V();c.Fi&&b.Nb.setAttribute("data-no-fullscreen","true");c.Qk&&(b.Nb.setAttribute("webkit-playsinline",""),b.Nb.setAttribute("playsinline",""));c.mm&&b.Nb&&b.T(b.Nb,"click",b.Nb.play,b.Nb);try{a.mediaElement.hv()}catch(d){a.Of("html5.missingapi",2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(d.message&&d.message.replace(/[;:,]/g,"_")))}};
BS=function(a,b,c){if(a.Jb!==b){var d=null;if(a.Jb){d=a.Jb.getPlayerState();rO(a.Bc,3);WX(a,"cuerangesremoved",a.Jb.il());a.sx&&!b.isGapless()&&a.Jb.isGapless()&&a.mediaElement&&a.mediaElement.stopVideo();var e;if(e=a.Gd)e=a.mediaElement,e=!!e&&e===a.Gd.mediaElement;e&&(a.di(),VX(a));a.Jb&&(a.Jb.di(),cz(a.Jb,a.NR,a),1!==a.Jb.getPlayerType()&&a.Jb.dispose());a.Jb=null}1===b.getPlayerType()&&a.sb!==b&&(b.getVideoData().autonavState=a.sb.getVideoData().autonavState,cz(a.sb,a.CG,a),e=a.sb.getPlaybackRate(),
a.sb.dispose(),a.sb=b,a.sb.setPlaybackRate(e),g.bz(b,a.CG,a),RX(a));e=b.getPlayerType();if(b!==a.sb&&b!==a.Xt[e]){var f;null==(f=a.Xt[e])||f.dispose();a.Xt[e]=b}a.Jb=b;a.mediaElement&&b.setMediaElement(a.mediaElement);g.bz(b,a.NR,a);if(b.iD())tSa(a,"setPresenting",!1);else{a.onVideoDataChange("newdata",b,b.getVideoData());d&&!g.cK(d,b.getPlayerState())&&a.BR(new g.qJ(b.getPlayerState(),d));c=c&&a.G.K("html5_player_preload_ad_fix");if(b.vn.isFinished()&&!c)a.onVideoDataChange("dataloaded",b,b.getVideoData());
(c=(c=b.getVideoData().u)&&c.video)&&a.Va.Pa("onPlaybackQualityChange",c.quality);WX(a,"cuerangesadded",a.Jb.il());c=b.getPlayerState();g.V(c,2)?uSa(a):g.V(c,8)?b.playVideo():b.xz()&&b.pauseVideo();a.K("html5_load_ads_instead_of_cue")&&2===b.getPlayerType()&&!a.Fe()&&(b=b.getVideoData(),a.sb.Ht(b.clientPlaybackNonce,b.Lc||"",b.breakType||0,b.pe))}}};
uSa=function(a){if(!vSa(a)){var b=a.sb.Ud();b&&(b=b.Fy(),b instanceof Promise&&b.catch(function(){}));
XX(a,gK(a.Eb()))}};
sSa=function(a){var b=a.mediaElement;bE()?a.qq.T(b,"webkitpresentationmodechanged",a.B2):window.document.pictureInPictureEnabled&&(a.qq.T(b,"enterpictureinpicture",function(){a.Tw(!0)}),a.qq.T(b,"leavepictureinpicture",function(){a.Tw(!1)}));
RF&&(a.qq.T(b,"webkitbeginfullscreen",function(){a.Dk(3)}),a.qq.T(b,"webkitendfullscreen",function(){a.Dk(0)}))};
g.pN=function(a,b){return b?1===b?a.sb:a.getVideoData().enableServerStitchedDai&&2===b?a.getVideoData().enablePreroll?a.Xt[2]||a.Jb:a.Jb:a.Xt[b]||null:a.Jb};
YX=function(a,b,c,d){a=a.qy(b,c,d);FRa(a);return a};
ZX=function(a,b){return a.Fe(b)?a.sb:b};
$X=function(a,b){var c=a.Jb;return c&&b===a.sb&&a.Fe(b)&&a.Fe(c)?c:b};
wSa=function(a){var b=a.getVideoData(),c=a.Bc;qO(c)||c.eC();pO(c,"attribution",!1,!0);pO(c,"embed");pO(c,"inline_preview");pO(c,"kids");pO(c,"remote");pO(c,"miniplayer");pO(c,"music");pO(c,"offline");pO(c,"unplugged");pO(c,"ypc",!1,!0);pO(c,"ypc_clickwrap",!1,!0);pO(c,"yto",!1,!0);pO(c,"webgl",!1,!0);IHa(c)?0<c.C&&c.I&&c.I.start():(pO(c,"captions",!0),pO(c,"endscreen"),c.eH(),pO(c,"creatorendscreen",!0));c.tO();JHa(c);a.Va.ma("videoready",b)};
SX=function(a){a=a.bd();a.isValid();return qI(a)};
nSa=function(a){a.mH();var b=a.config.args;VX(a);var c=a.bd();a.Va.Pa("onVolumeChange",a.Gh);if(b&&ZN(b)){var d=hG(a.Y);d&&!a.Oh&&(b.fetch=0);var e=g.KF(a.Y);e&&!a.Oh&&(b.fetch=0);aY(a,b);g.KF(a.Y)&&a.tb.tick("ep_pr_s");if(d&&!a.Oh)bY(a);else if(e&&!a.Oh)cY(a);else if(!c.isValid())a.playlist.onReady(function(){dY(a)})}BS(a,a.sb);
g.V(a.sb.getPlayerState(),128)||(b=zxa(!a.Y.deviceIsAudioOnly),"fmt.noneavailable"===b?a.Of("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):"html5.missingapi"===b?a.Of(b,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):c&&c.isValid()&&SX(a)&&(a.Y.Xi||a.Y.jf)?eY(a):g.Oz("yt-player-playback-on-reload")?(g.Kv("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!a.Y.authUser}),nya(!1),eY(a)):rG(a.Y)||xSa(a),g.jG(a.Y)||"MWEB"===ZF(a.Y)?(g.Av(g.Cv(),function(){fY(a)}),g.Av(g.Cv(),
function(){hGa()})):(fY(a),hGa()))};
fY=function(a){if(a.K("fetch_att_independently"))g.Yn(a.ON);else{var b=a.getVideoData().botguardData;b&&g.cN(b,a.Y,a.getVideoData().jj||"")}};
xSa=function(a){a.Va.ma("initializingmode");a.Bn(2);pO(a.Bc,"remote");a.Y.K("player_cued_miniplayer_module_killswitch")||pO(a.Bc,"miniplayer")};
eY=function(a){if(g.V(a.sb.getPlayerState(),128))return!1;SX(a)&&a.Y.jf&&(pS.length&&a.Jz?(nN(a,{muted:!1,volume:a.Gh.volume},!1),gY(a,!1)):pS.length||a.Gh.muted||(nN(a,{muted:!0,volume:a.Gh.volume},!1),gY(a,!0)));var b=a.sb.getVideoData();b.SL&&nN(a,{muted:!0,volume:a.Gh.volume},!1);hY(a,1,b,!1);a.Va.ma("initializingmode");BS(a,a.sb);a.Bn(3);if(!(b=!a.Y.Sk)){if(b=a.Gd)b=a.mediaElement,b=!!b&&b===a.Gd.mediaElement;b=b&&a.LP}b&&(a.di(),VX(a),a.sb.setMediaElement(a.mediaElement));FX(a.sb);if(g.V(a.sb.getPlayerState(),
128))return!1;XX(a,3);return a.LP=!0};
UX=function(a){a=xN(a.Bc);return!!a&&a.loaded};
ySa=function(a,b){if(!a.xb)return!1;var c=.001*a.xb.startTimeMs-1,d=.001*a.xb.endTimeMs;"repeatChapter"===a.xb.type&&d--;return Hg(b,c)||Hg(b,d)||b>=c&&b<=d};
zSa=function(a){if(!(g.V(a.sb.getPlayerState(),64)&&a.bd().isLivePlayback&&5E3>a.xb.startTimeMs)){if(a.K("web_repeating_chapters")&&"repeatChapter"===a.xb.type){var b,c=null==(b=qN(a.wb()))?void 0:b.Ny(),d;b=null==(d=a.getVideoData())?void 0:d.Li;c instanceof g.TO&&b&&(d=b[HP(b,a.xb.startTimeMs)],c.sK(0,d.title));isNaN(Number(a.xb.loopCount))?a.xb.loopCount=0:a.xb.loopCount++;1===a.xb.loopCount&&a.G.Pa("innertubeCommand",a.getVideoData().sU)}a.sb.seekTo(.001*a.xb.startTimeMs,{Ae:"application_loopRangeStart"})}};
kSa=function(a,b){var c=a.Va.getAvailablePlaybackRates();b=Number(b.toFixed(2));a=c[0];c=c[c.length-1];b<=a?b=a:b>=c?b=c:(a=Math.floor(100*b+.001)%5,b=0===a?b:Math.floor(100*(b-.01*a)+.001)/100);return b};
jY=function(a,b,c){if(a.Fe(c)){c=c.getVideoData();if(iY(a))c=b;else{a=a.rd;for(var d=g.r(a.u),e=d.next();!e.done;e=d.next())if(e=e.value,c.Hc===e.Hc){b+=e.Dc/1E3;break}d=b;a=g.r(a.u);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.Hc===e.Hc)break;var f=e.Dc/1E3;if(f<b)d+=e.durationMs/1E3+f-e.Zc/1E3;else break}c=d}return c}return b};
ASa=function(a,b){if(3===a.getPresentingPlayerType())return gK(xN(a.Bc).Dd);if(a.getVideoData().enableServerStitchedDai&&2===b){var c;return(null==(c=a.Vd)?0:c.isAdPlaying(a.getCurrentTime()))?a.oC:-1}return 2!==b||a.Fe()?a.oC:a.DH};
RX=function(a){kY(a);a.setLoopVideo(!1);a.setLoopRange(null);a.qv.qv={};a.cE={};a.Qw=[];rHa(a.tb);if(a.Vd){var b=a.Vd,c=a.sb;c.getPlayerType();RS(b,!1);TS(b);YKa(b);b.xa=c}b=a.rd;a=a.sb;1!==a.getPlayerType()&&ZS(b,"invalidParentVideoPlayerType");dT(b,!1);fT(b);b.j=a};
bY=function(a){var b=BSa();if(b)if(!b.list)a.yv();else if(a.playlist&&a.playlist.getPlaylistId()===b.list)if(0<=b.index){var c=b.video;a.Va.isFullscreen()&&((c=c[a.playlist.index])&&c.encrypted_id!==g.$N(a.playlist).videoId||(b.index=a.playlist.index));bO(a.playlist,b);a.jA&&lY(a,a.jA)}else a.jA=null};
cY=function(a,b){var c=(b?b:a.bd()).bM;a.tb.tick("ep_pr_r");if(null!=c&&(bO(a.playlist,c),a.TK))a.playlist.onReady(function(){dY(a,b)})};
aY=function(a,b){a.playlist&&(a.playlist.unsubscribe("error",a.yv,a),g.Ye(a.playlist),a.playlist=null);b&&(a.Oh&&(b.fetch=0),a.playlist=new YN(a.Y,b),a.playlist.subscribe("error",a.yv,a))};
FSa=function(a,b,c){if(!(c in b))return!1;b=b[c];Array.isArray(b)||(b=[b]);b=g.r(b);for(c=b.next();!c.done;c=b.next()){c=c.value;var d={CPN:a.getVideoData().clientPlaybackNonce};c=g.Qn(c,d);d=void 0;d=void 0===d?!1:d;(d=jA(kA(c,CSa),c,d,"Active View 3rd Party Integration URL"))||(d=void 0,d=void 0===d?!1:d,d=jA(kA(c,DSa),c,d,"Google/YouTube Brand Lift URL"));d||(d=void 0,d=void 0===d?!1:d,d=jA(kA(c,ESa),c,d,"Nielsen OCR URL"));g.Uw(c,void 0,d)}return!0};
XX=function(a,b){if(a.Jb){var c=a.Jb.getPlayerType();if(2===c&&!a.Fe()){a.DH!==b&&(a.DH=b,a.Va.Pa("onAdStateChange",b));return}if(2===c&&a.Fe()||5===c||6===c||7===c)if(-1===b||0===b||5===b)return}0===b&&a.xb||a.oC===b||(a.oC=b,a.Va.Pa("onStateChange",b))};
hY=function(a,b,c,d){if(!f){var e=b+"_"+c.videoId+"_"+c.Hc;var f=a.fA.get(e);if(!f)return null;a.fA.remove(e);if(g.V(f.getPlayerState(),128))return f.dispose(),null}if(f===g.pN(a,b))return XA({isCacheHit:!0},a.tb.timerName),f;if((f.getVideoData().oauthToken||c.oauthToken)&&f.getVideoData().oauthToken!==c.oauthToken)return null;d||BS(a,f,!0);XA({isCacheHit:!0},a.tb.timerName);return f};
mY=function(a,b,c){c=g.pN(a,c);b&&c===a.sb&&(c.getVideoData().Fi=!0)};
nY=function(a,b,c){c=void 0===c?1:c;if(b.isValid()){var d=YX(a,c,b);a.cancelPlayback(4,c);BS(a,d);2!==c||a.K("html5_load_ads_instead_of_cue")||a.sb.Ht(b.clientPlaybackNonce,b.Lc||"",b.breakType||0,b.pe);1===c&&(a.Bn(1),xSa(a))}else b.dispose(),g.Ye(g.pN(a,c)),!a.K("web_player_clean_up_adplayer_for_preroll_on_ssdai_killswitch")&&XBa(a.bd())&&2===c&&delete a.Xt[2]};
GSa=function(a,b,c,d,e){b=NGa(b,c,d,e);(c=g.KF(a.Y)&&!a.Y.S)&&!a.Oh&&(b.fetch=0);aY(a,b);g.KF(a.Y)&&a.tb.tick("ep_a_pr_s");if(c&&!a.Oh)c=a.bd(),wHa(c,b).then(function(f){a.TK=!0;cY(a,f)});
else a.playlist.onReady(function(){dY(a)});
g.KF(a.Y)&&a.tb.tick("ep_a_pr_r")};
dY=function(a,b){var c=g.KF(a.Y)&&!a.Y.S,d=c&&b?b:g.$N(a.playlist);b=c&&b?b:a.getVideoData();d&&(b.un&&(a.Y.Xi||a.Y.jf)||!a.Ns?(b=b.Fi,d=a.nq(d,1),b&&mY(a,d)):nY(a,d,1));g.KF(a.Y)&&a.tb.tick("ep_p_l");a.TK=!1;a.Va.Pa("onPlaylistUpdate")};
vSa=function(a){if(a.playlist&&g.QF(a.Y)&&a.Ly()){var b=a.Y.K("html5_player_autonav_logging");a.nextVideo(!1,b);return!0}return!1};
lY=function(a,b){var c=g.Ga(b);c?((b=BSa())&&b.list&&c(),a.jA=null):a.jA=b};
BSa=function(){var a=g.Ga("yt.www.watch.lists.getState");return a?a():null};
oY=function(a,b,c,d,e,f,h){b={id:b,namespace:null!=h?h:"appapi"};"chapter"===f?(b.style=pA.CHAPTER_MARKER,b.visible=!0):isNaN(e)||("ad"===f?b.style=pA.AD_MARKER:(b.style=pA.TIME_MARKER,b.color=e),b.visible=!0);a.Wx([new g.qA(1E3*c,1E3*d,b)],1);return!0};
HSa=function(a,b,c,d,e,f){f=void 0===f?!0:f;var h=a.getIngestionTime();if(!h)return f&&a.getVideoData().isLivePlayback&&a.Qw.push({id:b,f6:c,e6:d}),!1;f=h-a.getCurrentTime();return oY(a,b,c-f,d-f,void 0,void 0,e)};
ISa=function(a,b){a.Qw=g.um(a.Qw,function(f){return f.id!==b});
for(var c=a.sb.il(),d=0;d<c.length;d++){var e=c[d];if(e.getId()===b)return a.sb.removeCueRange(e),WX(a,"cuerangesremoved",[e]),!0}return!1};
JSa=function(a){var b=(0,g.T)(),c=a.getCurrentTime();a=a.getVideoData();c=1E3*(c-a.startSeconds);a.isLivePlayback&&(c=0);return b-Math.max(c,0)};
nN=function(a,b,c){a.Y.Ba&&(a.Gh=b,b.muted||gY(a,!1),c&&a.Y.storeUserVolume&&!a.Y.zc&&(c={volume:Math.floor(b.volume),muted:b.muted},c.unstorable||(g.Nz("yt-player-volume",c),g.Nz("yt-player-volume",c,2592E3))),KSa(a),c=g.$D&&a.mediaElement&&!a.mediaElement.Lf(),a.Y.zc&&!c||a.Va.Pa("onVolumeChange",{muted:b.muted,volume:b.volume,unstorable:!a.Y.storeUserVolume}))};
KSa=function(a){var b=a.getVideoData();if(!b.Qi){b=a.Y.zc?1:VBa(b);var c=a.mediaElement;c.Sw(a.Gh.muted);try{c.setVolume(a.Gh.volume*b/100)}catch(d){g.pz(new g.Pv("b183742307","multiplier: "+b+", volume: "+a.Gh.volume))}}};
gY=function(a,b){b!==a.Jz&&(a.Jz=b,a.Va.Pa("onMutedAutoplayChange",b))};
pY=function(a){var b=Vy(!0);return b&&(b===a.template.element||a.mediaElement&&b===a.mediaElement.zf())?b:null};
MSa=function(a,b){var c=window.screen&&window.screen.orientation;if((a.Y.K("lock_fullscreen2")||a.Y.I)&&c&&c.lock&&(!g.$D||!LSa))if(b){b=0===c.type.indexOf("portrait");var d=a.template.getVideoAspectRatio(),e=b;1>d?e=!0:1<d&&(e=!1);if(!a.bA||e!==b){c=c.lock(e?"portrait":"landscape");if(null!=c)c["catch"](function(){});
a.bA=!0}}else a.bA&&(a.bA=!1,c.unlock())};
WX=function(a,b,c){a.Va.ma(b,c);var d=g.aG(a.Y)||g.SF(a.Y)||g.TF(a.Y);if(c&&d){switch(b){case "cuerangemarkersupdated":var e="onCueRangeMarkersUpdated";break;case "cuerangesadded":e="onCueRangesAdded";break;case "cuerangesremoved":e="onCueRangesRemoved"}e&&a.Va.Pa(e,c.map(function(f){return{getId:function(){return this.id},
end:f.end,id:f.getId(),namespace:"ad"===f.namespace?"ad":"",start:f.start,style:f.style,visible:f.visible}}))}};
qY=function(a,b,c,d,e,f){c=void 0===c?!0:c;f=void 0===f?!1:f;var h=g.pN(a,e);if(!h||(2!==h.getPlayerType()||a.Fe(h)||f)&&!g.gI(h.getVideoData()))3===a.getPresentingPlayerType()?xN(a.Bc).qn("control_seek",b,c):(h===a.sb&&a.xb&&!ySa(a,b)&&a.setLoopRange(null),a.seekTo(b,c,d,e))};
rY=function(a){a.Va.Pa("SIZE_CLICKED",!a.JI)};
tSa=function(a,b,c){c&&(a.di(),VX(a));c=g.pN(a);c.Ed(new xG("staleconfig",{reason:b}));var d=a.getVideoData(),e={};e.video_id=d.videoId;e.adformat=d.adFormat;d.isLivePlayback?MH(d)&&g.lG(a.Y)&&(e.live_utc_start=c.getIngestionTime(),e.resume="1"):(e.start=c.getCurrentTime(),e.resume="1");d.Aa&&(e.vvt=d.Aa);d.I&&(e.vss_credentials_token=d.I,e.vss_credentials_token_type=d.dj);d.oauthToken&&(e.oauth_token=d.oauthToken);d.Yi&&(e.force_gvi=d.Yi);e.autoplay=1;e.reload_count=d.lc+1;e.reload_reason=b;d.aJ&&
(e.unplugged_partner_opt_out=d.aJ);d.Te&&(e.ypc_is_premiere_trailer=d.Te);d.playerParams&&(e.player_params=d.playerParams);a.loadVideoByPlayerVars(e,void 0,!0);"signature"===b&&a.Vd&&a.iE()};
NSa=function(a,b){a.bd().autonavState=b;g.Nz("yt-player-autonavstate",b);a.Va.ma("autonavchange",b)};
OSa=function(a){var b=a.getVideoData().Qi,c=a.Y.Hd,d=a.isInline()&&!a.getVideoData().iF,e=a.mediaElement;b||c||d?e.pH():(e.sH(),nN(a,a.Gh))};
mSa=function(a,b){return a.Y.K("html5_enable_embedded_player_visibility_signals")&&g.KF(a.Y)?new tT(b):null};
kY=function(a){(a=sO(a.wb()))&&a.created&&a.destroy()};
iY=function(a){return(a.K("html5_halftime_limit_timeline_usage_killswitch")||a.getVideoData().enableServerStitchedDai)&&!!a.Vd};
PSa=function(a,b){b.bounds=a.getBoundingClientRect();for(var c=g.r(["display","opacity","visibility","zIndex"]),d=c.next();!d.done;d=c.next())d=d.value,b[d]=Cl(a,d);b.hidden=!!a.hidden};
lSa=function(a){var b=a.Y,c=document,d=c.requestStorageAccess&&c.hasStorageAccess;b.K("embeds_enable_request_storage_access_safari_itp")&&g.Xv&&d&&b.u?Vu()||b.eb?(g.Kv("embedsStorageAccessNotChecked",{isIosWebview:Vu(),isPemPlayer:b.eb}),a.BA=!1):c.hasStorageAccess().then(function(e){g.Kv("embedsHasStorageAccessResult",{hasCookieAccess:e,resultedInError:!1});a.BA=!e},function(e){g.Kv("embedsHasStorageAccessResult",{hasCookieAccess:!1,
resultedInError:!0});g.pz(Error("Embeds ITP Error: "+e));a.BA=!1}):a.BA=!1};
QSa=function(a,b){return g.aG(a.Y)&&qu(b)&&pu(b)?g.uG(g.sI(a.getVideoData())).then(function(c){var d;c&&(d={Authorization:"Bearer "+c});return d},void 0):Gu()};
sY=function(a,b){QSa(a,b).then(function(c){g.Uw(b,void 0,void 0,c)})};
tY=function(a,b){b.forEach(function(c){sY(a,c)})};
BLa=function(a){return a.webPlayerContextConfig?a.webPlayerContextConfig.jsUrl:a.config.assets&&a.config.assets.js?a.config.assets.js:""};
RSa=function(a,b,c,d){var e=1E3*a.getCurrentTime()<c?1:-1;b.sK(e,d);qY(a,c/1E3)};
uY=function(a){var b=new Map;a.forEach(function(c){b.set(c.getType(),c)});
this.j=b};
Yz=function(a,b){return a.j.has(b)};
vY=function(a,b){a=a.j.get(b);if(void 0!==a)return a.get()};
wY=function(a){return Array.from(a.j.keys())};
TSa=function(a){var b;return(null==(b=SSa.get(a))?void 0:b.St)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
yY=function(a,b){var c={type:b.slotType,controlFlowManagerLayer:USa.get(b.fb)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};b.Pb&&(c.entryTriggerType=b.Pb.triggerType);1!==b.slotPhysicalPosition&&(c.slotPhysicalPosition=b.slotPhysicalPosition);if(a){c.debugData={slotId:b.slotId};if(a=b.Pb)c.debugData.slotEntryTriggerData=xY(a);a=b.dc;c.debugData.fulfillmentTriggerData=[];a=g.r(a);for(var d=a.next();!d.done;d=a.next())c.debugData.fulfillmentTriggerData.push(xY(d.value));b=b.kc;c.debugData.expirationTriggerData=
[];b=g.r(b);for(a=b.next();!a.done;a=b.next())c.debugData.expirationTriggerData.push(xY(a.value))}return c};
VSa=function(a,b){var c={type:b.layoutType,controlFlowManagerLayer:USa.get(b.fb)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};a&&(c.debugData={layoutId:b.layoutId});return c};
xY=function(a,b){var c={type:a.triggerType};null!=b&&(c.category=b);null!=a.oh&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedSlotId=a.oh);null!=a.If&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedLayoutId=a.If);return c};
WSa=function(a,b,c,d){b={opportunityType:b};a&&(d||c)&&(d=g.Ok(d||[],function(e){return yY(a,e)}),b.debugData=Object.assign({},c&&0<c.length?{associatedSlotId:c}:{},0<d.length?{slots:d}:{}));
return b};
BY=function(a,b){return function(c){return zY(AY(a),b.slotId,b.slotType,b.slotPhysicalPosition,b.fb,b.Pb,b.dc,b.kc,c.layoutId,c.layoutType,c.fb)}};
zY=function(a,b,c,d,e,f,h,l,m,n,p){return{adClientDataEntry:{slotData:yY(a,{slotId:b,slotType:c,slotPhysicalPosition:d,fb:e,Pb:f,dc:h,kc:l,Ea:new uY([])}),layoutData:VSa(a,{layoutId:m,layoutType:n,fb:p,Pd:[],hd:[],Yc:[],jd:[],od:[],Vb:new Map,Ea:new uY([]),Ec:{}})}}};
XSa=function(){return!0};
CY=function(a){this.u=XSa;this.Ha=a;a=Math.random();var b=this.Ha.get();b=g.RE(b.G.V().experiments,"html5_debug_data_log_probability");b=Number.isFinite(b)&&0<=b&&1>=b?b:0;this.j=a<b};
AY=function(a){return a.j||a.Ha.get().G.V().K("html5_force_debug_data_for_client_tmp_logs")};
YSa=function(a,b){var c={slotId:fA(b,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Pb:void 0,dc:[],kc:[],fb:"surface",Ea:new uY([])},d=Object,e=d.assign;b=gA(b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",c.slotId);b={layoutId:b,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Vb:new Map,Pd:[],hd:[],Yc:[],jd:[],od:[],fb:"surface",Ea:new uY([]),Ec:zY(!1,c.slotId,c.slotType,c.slotPhysicalPosition,c.fb,c.Pb,c.dc,c.kc,b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return e.call(d,{},
a,{TZ:!0,slot:c,layout:b})};
DY=function(a){this.controller=a};
EY=function(a){this.bH=a};
FY=function(a,b,c){this.bH=a;this.Oi=b;this.pk=c};
ZSa=function(a,b,c){var d=a.bH();switch(b.type){case "SKIP":tEa(d,a.Oi,a.pk,c)}};
GY=function(){};
HY=function(){};
IY=function(a,b,c){this.El=a;this.UD=b;this.Ta=c};
JY=function(a,b){this.Ir=a;this.Ta=b};
KY=function(a){this.G=a};
LY=function(a,b,c){this.yk=a;this.Ta=b;this.UD=c};
aTa=function(a){g.J.call(this);this.j=a;this.wW=$Sa(this)};
$Sa=function(a){var b=new LK(a.j.md);g.M(a,b);a=g.r([new DY(a.j.kX),new JY(a.j.Ir,a.j.Ta),new KY(a.j.G),new LY(a.j.yk,a.j.Ta,a.j.wh),new FY(a.j.J_,a.j.Oi,a.j.pk),new EY(a.j.SX),new HY,new IY(a.j.El,a.j.wh,a.j.Ta),new GY]);for(var c=a.next();!c.done;c=a.next())c=c.value,jEa(b,c),kEa(b,c);a=g.r(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(c=a.next();!c.done;c=a.next())JK(b,c.value,function(){});
return b};
MY=function(a){this.value=a};
NY=function(a){this.value=a};
OY=function(a){this.value=a};
PY=function(a){this.value=a};
QY=function(a){this.value=a};
RY=function(){MY.apply(this,arguments)};
SY=function(a){this.value=a};
TY=function(a){this.value=a};
UY=function(a){this.value=a};
VY=function(a){this.value=a};
WY=function(a){this.value=a};
XY=function(a){this.value=a};
YY=function(a){this.value=a};
ZY=function(a){this.value=a};
$Y=function(a){this.value=a};
aZ=function(){MY.apply(this,arguments)};
bZ=function(){MY.apply(this,arguments)};
cZ=function(a){this.value=a};
dZ=function(a){this.value=a};
eZ=function(a){this.value=a};
fZ=function(a){this.value=a};
gZ=function(a){this.value=a};
hZ=function(a){this.value=a};
iZ=function(a){this.value=a};
jZ=function(a){this.value=a};
kZ=function(a){this.value=a};
lZ=function(a){this.value=a};
mZ=function(a){this.value=a};
nZ=function(a){this.value=a};
oZ=function(a){this.value=a};
pZ=function(a){this.value=a};
qZ=function(a){this.value=a};
rZ=function(a){this.value=a};
sZ=function(a){this.value=a};
tZ=function(a){this.value=a};
uZ=function(a){this.value=a};
vZ=function(a){this.value=a};
wZ=function(a){this.value=a};
xZ=function(a){this.value=a};
yZ=function(a){this.value=a};
zZ=function(a){this.value=a};
AZ=function(a){this.value=a};
BZ=function(a){this.value=a};
CZ=function(a){this.value=a};
DZ=function(a){this.value=a};
EZ=function(a){this.value=a};
FZ=function(a){this.value=a};
GZ=function(a){this.value=a};
HZ=function(a){this.value=a};
IZ=function(a){this.value=a};
JZ=function(){MY.apply(this,arguments)};
KZ=function(a){this.value=a};
LZ=function(){MY.apply(this,arguments)};
MZ=function(){MY.apply(this,arguments)};
NZ=function(){MY.apply(this,arguments)};
OZ=function(){MY.apply(this,arguments)};
PZ=function(a){this.value=a};
bTa=function(a,b){switch(a){case "TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL":return 0;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED":return 1;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED":return 2;case "TRIGGER_CATEGORY_SLOT_EXPIRATION":return 3;case "TRIGGER_CATEGORY_SLOT_FULFILLMENT":return 4;case "TRIGGER_CATEGORY_SLOT_ENTRY":return 5;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED":return 6;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED":return 7;default:return b(a),8}};
QZ=function(a,b,c,d){g.J.call(this);this.Rd=b;this.pc=c;this.Ha=d;this.j=a(this,this,this,this,this);g.M(this,this.j);a=g.r(b);for(b=a.next();!b.done;b=a.next())g.M(this,b.value)};
LCa=function(a,b){IJ(a.pc,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",b)};
MCa=function(a,b){IJ(a.pc,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",b);a=g.r(a.Rd);for(var c=a.next();!c.done;c=a.next())c.value.Xh(b)};
NCa=function(a,b){IJ(a.pc,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",b);a=g.r(a.Rd);for(var c=a.next();!c.done;c=a.next())c.value.cg(b)};
ECa=function(a,b){IJ(a.pc,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",b);a=g.r(a.Rd);for(var c=a.next();!c.done;c=a.next())c.value.dg(b)};
SZ=function(a,b,c){cA(c,b,void 0,void 0,c.Jr);RZ(a,b,!0)};
eTa=function(a,b,c){if(TZ(a.j,b))if(UZ(a.j,b).C=c?"filled":"not_filled",null===c){VZ(a.pc,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",b);c=g.r(a.Rd);for(var d=c.next();!d.done;d=c.next())d.value.vk(b);RZ(a,b,!1)}else{VZ(a.pc,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",b,c);VZ(a.pc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,c);if(d=vY(c.Ea,"metadata_type_sub_layouts")){d=g.r(d);for(var e=d.next();!e.done;e=d.next())VZ(a.pc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,e.value)}e=g.r(a.Rd);for(d=e.next();!d.done;d=
e.next())d.value.wk(b);if(TZ(a.j,b))if(UZ(a.j,b).D)RZ(a,b,!1);else{VZ(a.pc,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",b,c);try{var f=a.j;if(!UZ(f,b))throw new WZ("Unknown slotState for onLayout");if(!f.Ke.Ho.get(b.slotType))throw new WZ("No LayoutRenderingAdapterFactory registered for slot of type: "+b.slotType);if(g.Vb(c.Pd)&&g.Vb(c.hd)&&g.Vb(c.Yc)&&g.Vb(c.jd)&&g.Vb(c.od))throw new WZ("Layout has no exit triggers.");XZ(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.Pd);XZ(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",
c.hd);XZ(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.Yc);XZ(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.jd);XZ(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",c.od)}catch(n){a.og(b,c,n);RZ(a,b,!0);return}UZ(a.j,b).I=!0;try{var h=a.j,l=UZ(h,b),m=h.Ke.Ho.get(b.slotType).get().Xe(h.C,h.u,b,c);m.init();l.layout=c;if(l.B)throw new WZ("Already had LayoutRenderingAdapter registered for slot");l.B=m;YZ(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.Pd);YZ(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",
c.hd);YZ(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.Yc);YZ(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.jd);YZ(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",c.od)}catch(n){ZZ(a,b);RZ(a,b,!0);a.og(b,c,n);return}VZ(a.pc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);f=g.r(a.Rd);for(d=f.next();!d.done;d=f.next())d.value.xj(b,c);ZZ(a,b);cTa(a,b)}else dTa(a.Ha.get())&&cA("slot is unscheduled after been fulfilled.",b,c)}};
$Z=function(a,b,c){"core"!==b.fb&&VZ(a.pc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,c)};
a_=function(a,b,c){VZ(a.pc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);a=g.r(a.Rd);for(var d=a.next();!d.done;d=a.next())d.value.xj(b,c)};
JJ=function(a,b,c){a=g.r(a.Rd);for(var d=a.next();!d.done;d=a.next())d.value.yj(b,c)};
b_=function(a,b,c){VZ(a.pc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",b,c);a=g.r(a.Rd);for(var d=a.next();!d.done;d=a.next())d.value.Rc(b,c)};
EJ=function(a,b,c,d){VZ(a.pc,TSa(d),b,c);a=g.r(a.Rd);for(var e=a.next();!e.done;e=a.next())e.value.pd(b,c,d)};
ZZ=function(a,b){if(TZ(a.j,b)){UZ(a.j,b).I=!1;var c=c_;b=UZ(a.j,b);var d=[].concat(g.t(b.S));Oaa(b.S);c(a,d)}};
c_=function(a,b){b.sort(function(f,h){function l(m){cA("TriggerCategoryOrder enum does not contain trigger category: "+m)}
return f.category===h.category?f.trigger.triggerId.localeCompare(h.trigger.triggerId):bTa(f.category,l)-bTa(h.category,l)});
var c=new Map;b=g.r(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,TZ(a.j,d.slot))if(UZ(a.j,d.slot).I)UZ(a.j,d.slot).S.push(d);else{fTa(a.pc,d.slot,d,d.layout);var e=c.get(d.category);e||(e=[]);e.push(d);c.set(d.category,e)}b=g.r(gTa);for(d=b.next();!d.done;d=b.next())e=g.r(d.value),d=e.next().value,e=e.next().value,(d=c.get(d))&&hTa(a,d,e);(b=c.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&iTa(a,b);(b=c.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&jTa(a,b);(c=c.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&&
kTa(a,c)};
hTa=function(a,b,c){b=g.r(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.layout&&d_(a.j,d.slot)&&lTa(a,d.slot,d.layout,c)};
iTa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next())RZ(a,c.value.slot,!1)};
jTa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a:switch(UZ(a.j,c.slot).C){case "not_filled":var d=!0;break a;default:d=!1}d&&(IJ(a.pc,"ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",c.slot),a.j.Jy(c.slot))}};
kTa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;IJ(a.pc,"ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",c.slot);for(var d=g.r(a.Rd),e=d.next();!e.done;e=d.next())e.value.Aj(c.slot);try{var f=a.j,h=c.slot,l=UZ(f,h);if(!l)throw new zA("Got enter request for unknown slot");if(!l.u)throw new zA("Tried to enter slot with no assigned slotAdapter");if("scheduled"!==l.j)throw new zA("Tried to enter a slot from stage: "+l.j);if(e_(l))throw new zA("Got enter request for already active slot");
for(var m=g.r(f_(f,h.slotType+"_"+h.slotPhysicalPosition).values()),n=m.next();!n.done;n=m.next()){var p=n.value;if(l!==p&&e_(p))throw new zA("Trying to enter a slot when a slot of same type is already active.",{activeSlotStatus:p.j});}}catch(q){cA(q,c.slot,g_(a.j,c.slot),void 0,q.Jr);RZ(a,c.slot,!0);continue}c=UZ(a.j,c.slot);"scheduled"!==c.j&&h_(c.slot,c.j,"enterSlot");c.j="enter_requested";c.u.lC()}};
cTa=function(a,b){if(TZ(a.j,b)&&e_(UZ(a.j,b))&&g_(a.j,b)&&!d_(a.j,b)){var c;VZ(a.pc,"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",b,null!=(c=g_(a.j,b))?c:void 0);a=UZ(a.j,b);"entered"!==a.j&&h_(a.slot,a.j,"enterLayoutForSlot");a.j="rendering";a.B.startRendering(a.layout)}};
lTa=function(a,b,c,d){if(TZ(a.j,b)){var e=a.pc,f;var h=(null==(f=SSa.get(d))?void 0:f.It)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";VZ(e,h,b,c);a=UZ(a.j,b);"rendering"!==a.j&&h_(a.slot,a.j,"exitLayout");a.j="rendering_stop_requested";a.B.eg(c,d)}};
RZ=function(a,b,c){if(TZ(a.j,b)){a:switch(UZ(a.j,b).j){case "exit_requested":var d=!0;break a;default:d=!1}if(!d)a:switch(UZ(a.j,b).j){case "rendering_stop_requested":d=!0;break a;default:d=!1}if(d&&(UZ(a.j,b).D=!0,!c))return;if(e_(UZ(a.j,b)))UZ(a.j,b).D=!0,mTa(a,b,c);else{a:switch(UZ(a.j,b).C){case "fill_requested":c=!0;break a;default:c=!1}if(c)UZ(a.j,b).D=!0,TZ(a.j,b)&&(IJ(a.pc,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",b),b=UZ(a.j,b),b.C="fill_cancel_requested",b.J.MG());else{c=
g_(a.j,b);IJ(a.pc,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",b);d=UZ(a.j,b);var e=b.Pb,f=d.Aa.get(e.triggerId);f&&(f.Ik(e),d.Aa.delete(e.triggerId));e=g.r(b.dc);for(f=e.next();!f.done;f=e.next()){f=f.value;var h=d.ea.get(f.triggerId);h&&(h.Ik(f),d.ea.delete(f.triggerId))}e=g.r(b.kc);for(f=e.next();!f.done;f=e.next())if(f=f.value,h=d.Z.get(f.triggerId))h.Ik(f),d.Z.delete(f.triggerId);null!=d.layout&&(e=d.layout,i_(d,e.Pd),i_(d,e.hd),i_(d,e.Yc),i_(d,e.jd),i_(d,e.od));d.J=void 0;null!=d.u&&(d.u.release(),
d.u=void 0);null!=d.B&&(d.B.release(),d.B=void 0);d=a.j;UZ(d,b)&&(d=f_(d,b.slotType+"_"+b.slotPhysicalPosition))&&d.delete(b.slotId);IJ(a.pc,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",b);a=g.r(a.Rd);for(d=a.next();!d.done;d=a.next())d=d.value,d.Bj(b),c&&d.yj(b,c)}}}};
mTa=function(a,b,c){if(TZ(a.j,b)&&e_(UZ(a.j,b))){var d=g_(a.j,b);if(d&&d_(a.j,b))lTa(a,b,d,c?"error":"abandoned");else{IJ(a.pc,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",b);try{var e=UZ(a.j,b);if(!e)throw new zA("Cannot exit slot it is unregistered");"enter_requested"!==e.j&&"entered"!==e.j&&"rendering"!==e.j&&h_(e.slot,e.j,"exitSlot");e.j="exit_requested";if(void 0===e.u)throw e.j="scheduled",new zA("Cannot exit slot because adapter is not defined");e.u.nC()}catch(f){cA(f,b,void 0,void 0,f.Jr)}}}};
nTa=function(a){this.slot=a;this.Aa=new Map;this.ea=new Map;this.Z=new Map;this.qa=new Map;this.B=this.layout=this.u=this.J=void 0;this.I=this.D=!1;this.S=[];this.j="not_scheduled";this.C="not_filled"};
e_=function(a){return"enter_requested"===a.j||a.isActive()};
WZ=function(a,b,c){c=void 0===c?!1:c;Xa.call(this,a);this.Jr=c;this.args=[];b&&this.args.push(b)};
j_=function(a,b,c,d,e,f){g.J.call(this);this.Ke=a;this.B=b;this.D=c;this.C=d;this.u=e;this.Ha=f;this.j=new Map};
f_=function(a,b){return(a=a.j.get(b))?a:new Map};
UZ=function(a,b){return f_(a,b.slotType+"_"+b.slotPhysicalPosition).get(b.slotId)};
oTa=function(a){var b=[];a.j.forEach(function(c){c=g.r(c.values());for(var d=c.next();!d.done;d=c.next())b.push(d.value.slot)});
return b};
TZ=function(a,b){return null!=UZ(a,b)};
d_=function(a,b){a=UZ(a,b);if(b=null!=a.layout)a:switch(a.j){case "rendering":case "rendering_stop_requested":b=!0;break a;default:b=!1}return b};
g_=function(a,b){(a=UZ(a,b))?null!=a.layout&&!a.layout&&cA("Unexpected empty layout",b):cA("Unexpected undefined slotState",b);return(null==a?void 0:a.layout)||null};
k_=function(a,b,c){if(g.Vb(c))throw new zA("No "+pTa.get(b)+" triggers found for slot.");c=g.r(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.Ke.Ij.get(d.triggerType))throw new zA("No trigger adapter registered for "+b+" trigger of type: "+d.triggerType);};
XZ=function(a,b,c){c=g.r(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.Ke.Ij.get(d.triggerType))throw new WZ("No trigger adapter registered for "+pTa.get(b)+" trigger of type: "+d.triggerType);};
YZ=function(a,b,c,d){d=g.r(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=a.Ke.Ij.get(e.triggerType);f.Ak(c,e,b.slot,b.layout?b.layout:null);b.qa.set(e.triggerId,f)}};
i_=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.qa.get(c.triggerId);d&&(d.Ik(c),a.qa.delete(c.triggerId))}};
h_=function(a,b,c){cA("Slot stage was "+b+" when calling method "+c,a)};
qTa=function(a){return l_(a.qt).concat(l_(a.Ij)).concat(l_(a.ao)).concat(l_(a.Yo)).concat(l_(a.Ho))};
l_=function(a){var b=[];a=g.r(a.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.sj&&b.push(c);return b};
m_=function(a){g.J.call(this);this.j=a;this.u=rTa(this)};
rTa=function(a){var b=new QZ(function(c,d,e,f){return new j_(a.j.Ke,c,d,e,f,a.j.Ha)},new Set(qTa(a.j.Ke).concat(a.j.listeners)),a.j.pc,a.j.Ha);
g.M(a,b);return b};
n_=function(a){g.J.call(this);var b=this;this.u=a;this.j=null;g.$e(this,function(){g.Ye(b.j);b.j=null})};
Y=function(a){return new n_(a)};
o_=function(a){this.j=a};
zL=function(a,b,c,d){(a=a.j())||cA("Could not initiate a command router instance.");a.executeCommand(b,c,d)};
p_=function(a,b,c,d){(a=a.j())||cA("Could not initiate a command router instance.");MK(a,b,c,d)};
q_=function(a){return null!=(null==a?void 0:a.layoutId)&&null!=(null==a?void 0:a.layoutType)};
r_=function(a){var b,c=null==(b=a.config)?void 0:b.adPlacementConfig;a=a.renderer;return!(!c||null==c.kind||!a)};
sTa=function(a){return null!=a.linearAds&&q_(a.adLayoutMetadata)};
tTa=function(a){return null!=a.linearAd&&null!=a.adVideoStart};
vTa=function(a,b,c,d,e,f,h){b=hva(b,f,Number(d.prefetchMilliseconds)||0,h);a=b instanceof zA?b:uTa(a,d,e,b,c);return a instanceof zA?a:[a]};
wTa=function(a){var b,c;return void 0!==(null==(b=a.renderer)?void 0:null==(c=b.adBreakServiceRenderer)?void 0:c.getAdBreakUrl)};
ATa=function(a,b,c,d,e){b=g.r(b);for(var f=b.next();!f.done;f=b.next())f=f.value,s_(a,f.renderer,f.config.adPlacementConfig.kind);a=Array.from(a.values()).filter(function(p){return xTa(p)});
b=[];f={};for(var h=g.r(a),l=h.next();!l.done;f={fp:f.fp},l=h.next()){f.fp=l.value;l={};for(var m=g.r(f.fp.xG),n=m.next();!n.done;l={Kj:l.Kj},n=m.next())l.Kj=n.value,n=function(p,q){return function(u){return p.Kj.fH(u,q.fp.instreamVideoAdRenderer.elementId,p.Kj.wG)}}(l,f),l.Kj.isContentVideoCompanion?b.push(yTa(c,d,e,f.fp.instreamVideoAdRenderer.elementId,l.Kj.associatedCompositePlayerBytesLayoutId,l.Kj.adSlotLoggingData,n)):1<a.length?b.push(zTa(c,d,e,f.fp.instreamVideoAdRenderer.elementId,l.Kj.adSlotLoggingData,
function(p,q){return function(u){return p.Kj.fH(u,q.fp.instreamVideoAdRenderer.elementId,p.Kj.wG,p.Kj.associatedCompositePlayerBytesLayoutId)}}(l,f))):b.push(zTa(c,d,e,f.fp.instreamVideoAdRenderer.elementId,l.Kj.adSlotLoggingData,n))}return b};
s_=function(a,b,c){if(b=BTa(b)){b=g.r(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.externalVideoId){var e=CTa(a,d.externalVideoId);e.instreamVideoAdRenderer||(e.instreamVideoAdRenderer=d,e.aD=c)}else cA("InstreamVideoAdRenderer without externalVideoId")}};
BTa=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.r(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};
xTa=function(a){if(void 0===a.instreamVideoAdRenderer)return cA("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var b=g.r(a.xG),c=b.next();!c.done;c=b.next()){c=c.value;if(void 0===c.fH)return!1;if(void 0===c.wG)return cA("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(void 0===a.aD||void 0===c.EB||a.aD!==c.EB&&"AD_PLACEMENT_KIND_SELF_START"!==c.EB)return!1;if(void 0===a.instreamVideoAdRenderer.elementId)return cA("InstreamVideoAdRenderer has no elementId",
void 0,void 0,{kind:a.aD,"matching APSR kind":c.EB}),!1}return!0};
CTa=function(a,b){a.has(b)||a.set(b,{instreamVideoAdRenderer:void 0,aD:void 0,adVideoId:b,xG:[]});return a.get(b)};
t_=function(a,b,c,d,e,f,h,l,m){e?CTa(a,e).xG.push({T4a:b,EB:c,isContentVideoCompanion:d,wG:h,associatedCompositePlayerBytesLayoutId:f,adSlotLoggingData:l,fH:m}):cA("Companion AdPlacementSupportedRenderer without adVideoId")};
ETa=function(a){if(!a.questions||1!==a.questions.length||!a.playbackCommands)return!1;var b,c,d=(null==(b=a.questions[0].instreamSurveyAdMultiSelectQuestionRenderer)?void 0:b.surveyAdQuestionCommon)||(null==(c=a.questions[0].instreamSurveyAdSingleSelectQuestionRenderer)?void 0:c.surveyAdQuestionCommon);return DTa(d)?!0:!1};
FTa=function(a){a=((null==a?void 0:a.playerOverlay)||{}).instreamSurveyAdRenderer;var b;a?a.playbackCommands&&a.questions&&1===a.questions.length?(a=null==(b=a.questions[0].instreamSurveyAdMultiSelectQuestionRenderer)?void 0:b.surveyAdQuestionCommon,b=DTa(a)):b=!1:b=!1;return b};
DTa=function(a){if(!a)return!1;var b=(a.instreamAdPlayerOverlay||{}).instreamSurveyAdPlayerOverlayRenderer;a=(null==b?void 0:b.skipOrPreviewRenderer)||{};var c=a.skipAdRenderer;b=((null==b?void 0:b.adInfoRenderer)||{}).adHoverTextButtonRenderer;return(a.adPreviewRenderer||c)&&b?!0:!1};
u_=function(a){var b=0;a=g.r(a.questions);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c=c.instreamSurveyAdMultiSelectQuestionRenderer||c.instreamSurveyAdSingleSelectQuestionRenderer){var d=void 0;b+=(null==(d=c.surveyAdQuestionCommon)?void 0:d.durationMilliseconds)||0}return b};
v_=function(a){var b,c,d,e,f=(null==(b=a.questions)?void 0:null==(c=b[0].instreamSurveyAdMultiSelectQuestionRenderer)?void 0:c.surveyAdQuestionCommon)||(null==(d=a.questions)?void 0:null==(e=d[0].instreamSurveyAdSingleSelectQuestionRenderer)?void 0:e.surveyAdQuestionCommon),h;b=[].concat(g.t((null==(h=a.playbackCommands)?void 0:h.instreamAdCompleteCommands)||[]),g.t((null==f?void 0:f.timeoutCommands)||[]));var l,m,n,p,q,u,w,y,A,B,D,G,H,L,N,K,P,R,X,Q;return{impressionCommands:null==(l=a.playbackCommands)?
void 0:l.impressionCommands,errorCommands:null==(m=a.playbackCommands)?void 0:m.errorCommands,muteCommands:null==(n=a.playbackCommands)?void 0:n.muteCommands,unmuteCommands:null==(p=a.playbackCommands)?void 0:p.unmuteCommands,pauseCommands:null==(q=a.playbackCommands)?void 0:q.pauseCommands,rewindCommands:null==(u=a.playbackCommands)?void 0:u.rewindCommands,resumeCommands:null==(w=a.playbackCommands)?void 0:w.resumeCommands,skipCommands:null==(y=a.playbackCommands)?void 0:y.skipCommands,progressCommands:null==
(A=a.playbackCommands)?void 0:A.progressCommands,Z4a:null==(B=a.playbackCommands)?void 0:B.clickthroughCommands,fullscreenCommands:null==(D=a.playbackCommands)?void 0:D.fullscreenCommands,activeViewViewableCommands:null==(G=a.playbackCommands)?void 0:G.activeViewViewableCommands,activeViewMeasurableCommands:null==(H=a.playbackCommands)?void 0:H.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:null==(L=a.playbackCommands)?void 0:L.activeViewFullyViewableAudibleHalfDurationCommands,
activeViewAudioAudibleCommands:null==(N=a.playbackCommands)?void 0:null==(K=N.activeViewTracking)?void 0:K.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:null==(P=a.playbackCommands)?void 0:null==(R=P.activeViewTracking)?void 0:R.activeViewAudioMeasurableCommands,endFullscreenCommands:null==(X=a.playbackCommands)?void 0:X.endFullscreenCommands,abandonCommands:null==(Q=a.playbackCommands)?void 0:Q.abandonCommands,completeCommands:b}};
HTa=function(a,b,c,d,e,f,h){return function(l,m){return GTa(a,m.slotId,l,f,function(n,p){n=h(n);return w_(b,m.layoutId,p,e,n,"LAYOUT_TYPE_SURVEY",[new jZ(c),d],c.adLayoutLoggingData)})}};
KTa=function(a,b,c,d,e,f,h){if(!ITa(a))return new zA("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:a});var l=a.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[JTa(f,b,c,d,function(m){var n=h(m);m=m.slotId;m=gA(e.Za.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",m);var p={layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",fb:"core"},q=new x_(e.j,d);return{layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Vb:new Map,Pd:[q],hd:[],
Yc:[],jd:[],od:[],fb:"core",Ea:new uY([new kZ(l)]),Ec:n(p)}})]};
ITa=function(a){a=((null==a?void 0:a.additionalPlayerOverlay)||{}).slidingTextPlayerOverlayRenderer;if(!a)return!1;var b=a.slidingMessages;return a.title&&b&&0!==b.length?!0:!1};
NTa=function(a,b,c,d,e){var f;if(null==(f=a.playerOverlay)||!f.instreamSurveyAdRenderer)return function(){return[]};
if(!FTa(a))return function(){return new zA("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:a})};
var h=a.playerOverlay.instreamSurveyAdRenderer,l=u_(h);return 0>=l?function(){return new zA("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:h})}:function(m,n){var p=LTa(m,c,d,function(q){var u=n(q),w=q.slotId;
q=v_(h);w=gA(e.Za.get(),"LAYOUT_TYPE_SURVEY",w);var y={layoutId:w,layoutType:"LAYOUT_TYPE_SURVEY",fb:"core"},A=new x_(e.j,d),B=new y_(e.j,w),D=new z_(e.j,w),G=new MTa(e.j);return{layoutId:w,layoutType:"LAYOUT_TYPE_SURVEY",Vb:new Map,Pd:[A,G],hd:[B],Yc:[],jd:[D],od:[],fb:"core",Ea:new uY([new iZ(h),new WY(b),new HZ(l/1E3),new LZ(q)]),Ec:u(y),adLayoutLoggingData:h.adLayoutLoggingData}});
m=KTa(a,c,p.slotId,d,e,m,n);return m instanceof zA?m:[p].concat(g.t(m))}};
VTa=function(a,b,c,d,e,f){var h=[];try{var l=[];if(c.renderer.linearAdSequenceRenderer)var m=function(y){y=OTa(y.slotId,c,b,e(y),d,f);l=y.m5;return y.hY};
else if(c.renderer.instreamVideoAdRenderer)m=function(y){var A=y.slotId;y=e(y);var B=c.config.adPlacementConfig,D=PTa(B),G=D.JO;D=D.MO;var H=c.renderer.instreamVideoAdRenderer,L;if(null==H?0:null==(L=H.playerOverlay)?0:L.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var N=QTa(H);L=Math.min(G+1E3*N.videoLengthSeconds,D);D=new JI(0,[N.videoLengthSeconds],L);var K=N.videoLengthSeconds,P=N.playerVars,R=N.instreamAdPlayerOverlayRenderer,X=N.adVideoId,
Q=RTa(c),oa=N.Vb;N=N.JN;var sa=null==H?void 0:H.adLayoutLoggingData;H=null==H?void 0:H.sodarExtensionData;A=gA(b.Za.get(),"LAYOUT_TYPE_MEDIA",A);var Ba={layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA",fb:"core"};return{layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA",Vb:oa,Pd:[new A_(b.j)],hd:[],Yc:[],jd:[],od:[],fb:"core",Ea:new uY([new cZ(d),new tZ(K),new uZ(P),new wZ(G),new xZ(L),R&&new dZ(R),new WY(B),new aZ(X),new XY(D),new CZ(Q),H&&new vZ(H),new pZ({current:null}),new zZ({}),new OZ(N)].filter(STa)),Ec:y(Ba),
adLayoutLoggingData:sa}};
else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var n=TTa(a,d,m);h.push(n);for(var p=g.r(l),q=p.next();!q.done;q=p.next()){var u=q.value,w=u(a,e);if(w instanceof zA)return w;h.push.apply(h,g.t(w))}}catch(y){return new zA(y,{errorMessage:y.message,AdPlacementRenderer:c,numberOfSurveyRenderers:UTa(c)})}return h};
UTa=function(a){a=(a.renderer.linearAdSequenceRenderer||{}).linearAds;return null!=a&&a.length?a.filter(function(b){var c,d;return null!=(null==(c=b.instreamVideoAdRenderer)?void 0:null==(d=c.playerOverlay)?void 0:d.instreamSurveyAdRenderer)}).length:0};
OTa=function(a,b,c,d,e,f){var h=b.config.adPlacementConfig,l=PTa(h),m=l.JO,n=l.MO;l=(b.renderer.linearAdSequenceRenderer||{}).linearAds;if(null==l||!l.length)throw new TypeError("Expected linear ads");var p=[],q={LS:m,MS:0,c5:p};l=l.map(function(w){return WTa(a,w,q,c,d,h,e,n)}).map(function(w,y){y=new JI(y,p,n);
return w(y)});
var u=l.map(function(w){return w.iY});
return{hY:XTa(c,a,m,u,h,RTa(b),d,n,f),m5:l.map(function(w){return w.l5})}};
WTa=function(a,b,c,d,e,f,h,l){var m=QTa(b.instreamVideoAdRenderer),n=c.LS,p=c.MS,q=Math.min(n+1E3*m.videoLengthSeconds,l);c.LS=q;c.MS++;c.c5.push(m.videoLengthSeconds);var u,w,y=null==(u=b.instreamVideoAdRenderer)?void 0:null==(w=u.playerOverlay)?void 0:w.instreamSurveyAdRenderer;if("nPpU29QrbiU"===m.adVideoId&&null==y)throw new TypeError("Survey slate media has no survey overlay");return function(A){var B=m.playerVars;2<=A.u&&(B.slot_pos=A.j);B.autoplay="1";var D,G;B=m.videoLengthSeconds;var H=m.playerVars,
L=m.Vb,N=m.JN,K=m.instreamAdPlayerOverlayRenderer,P=m.adVideoId,R=null==(D=b.instreamVideoAdRenderer)?void 0:D.adLayoutLoggingData;D=null==(G=b.instreamVideoAdRenderer)?void 0:G.sodarExtensionData;G=gA(d.Za.get(),"LAYOUT_TYPE_MEDIA",a);var X={layoutId:G,layoutType:"LAYOUT_TYPE_MEDIA",fb:"adapter"};A={layoutId:G,layoutType:"LAYOUT_TYPE_MEDIA",Vb:L,Pd:[],hd:[],Yc:[],jd:[],od:[],fb:"adapter",Ea:new uY([new cZ(h),new tZ(B),new uZ(H),new wZ(n),new xZ(q),new yZ(p),new pZ({current:null}),K&&new dZ(K),new WY(f),
new aZ(P),new XY(A),D&&new vZ(D),y&&new NZ(y),new zZ({}),new OZ(N)].filter(STa)),Ec:e(X),adLayoutLoggingData:R};B=NTa(b.instreamVideoAdRenderer,f,h,A.layoutId,d);return{iY:A,l5:B}}};
QTa=function(a){if(!a)throw new TypeError("Expected instream video ad renderer");if(!a.playerVars)throw new TypeError("Expected player vars in url encoded string");var b=ju(a.playerVars),c=Number(b.length_seconds);if(isNaN(c))throw new TypeError("Expected valid length seconds in player vars");var d=Number(a.trimmedMaxNonSkippableAdDurationMs);c=isNaN(d)?c:Math.min(c,d/1E3);d=a.playerOverlay||{};d=void 0===d.instreamAdPlayerOverlayRenderer?null:d.instreamAdPlayerOverlayRenderer;var e=b.video_id;e||
(e=(e=a.externalVideoId)?e:void 0);if(!e)throw new TypeError("Expected valid video id in IVAR");return{playerVars:b,videoLengthSeconds:c,instreamAdPlayerOverlayRenderer:d,adVideoId:e,Vb:a.pings?MI(a.pings):new Map,JN:LI(a.pings)}};
RTa=function(a){a=Number(a.driftRecoveryMs);return isNaN(a)||0>=a?null:a};
PTa=function(a){var b=a.adTimeOffset||{};a=b.offsetEndMilliseconds;b=Number(b.offsetStartMilliseconds);if(isNaN(b))throw new TypeError("Expected valid start offset");a=Number(a);if(isNaN(a))throw new TypeError("Expected valid end offset");return{JO:b,MO:a}};
ZTa=function(a,b,c,d,e,f,h){var l=c.pings;return l?[YTa(a,f,e,function(m){var n=m.slotId;m=h(m);var p=c.adLayoutLoggingData;n=gA(b.Za.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",n);var q={layoutId:n,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",fb:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",Vb:MI(l),Pd:[new B_(b.j,f)],hd:[],Yc:[],jd:[],od:[],fb:"core",Ea:new uY([new WY(d)]),Ec:m(q),adLayoutLoggingData:p}})]:new zA("VideoAdTrackingRenderer without VideoAdTracking pings filled.",
{videoAdTrackingRenderer:c})};
aUa=function(a,b,c,d,e,f,h,l){a=$Ta(a,c,f,h,d,function(m){var n=m.slotId;m=l(m);n=gA(b.Za.get(),"LAYOUT_TYPE_FORECASTING",n);var p={layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",fb:"core"},q=new Map,u=e.impressionUrls;u&&q.set("impression",u);return{layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",Vb:q,Pd:[new C_(b.j,n)],hd:[],Yc:[],jd:[],od:[],fb:"core",Ea:new uY([new BZ(e),new WY(c)]),Ec:m(p)}});
return a instanceof zA?a:[a]};
cUa=function(a,b,c,d,e,f,h,l){a=bUa(a,c,f,h,d,function(m,n){var p=m.slotId;m=l(m);var q=e.contentSupportedRenderer;q?q.textOverlayAdContentRenderer?(q=gA(b.Za.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",p),n=D_(b,q,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",e,c,m,E_(b,n,p))):q.enhancedTextOverlayAdContentRenderer?(q=gA(b.Za.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",p),n=D_(b,q,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",e,c,m,E_(b,n,p))):q.imageOverlayAdContentRenderer?(q=gA(b.Za.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",
p),n=E_(b,n,p),n.push(new F_(b.j,q)),n=D_(b,q,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",e,c,m,n)):n=new WZ("InvideoOverlayAdRenderer without appropriate sub renderer"):n=new WZ("InvideoOverlayAdRenderer without contentSupportedRenderer");return n});
return a instanceof zA?a:[a]};
fUa=function(a,b,c,d,e,f,h,l,m){var n=Number(d.durationMilliseconds);return isNaN(n)?new zA("Expected valid duration for AdActionInterstitialRenderer."):function(p){return dUa(b,p.slotId,c,n,{impressionCommands:void 0,abandonCommands:d.abandonCommands?[{commandExecutorCommand:d.abandonCommands}]:void 0,completeCommands:d.completionCommands},d.skipPings?new Map([["skip",d.skipPings]]):new Map,h(p),function(q){return eUa(a,q,e,function(u,w){var y=u.slotId;u=h(u);y=gA(b.Za.get(),"LAYOUT_TYPE_ENDCAP",
y);return w_(b,y,w,c,u,"LAYOUT_TYPE_ENDCAP",[new gZ(d),l],d.adLayoutLoggingData)})},m,f-1,d.adLayoutLoggingData,f)}};
gUa=function(a,b,c,d){if(!c.playerVars)return new zA("No playerVars available in AdIntroRenderer.");var e=ju(c.playerVars);e.autoplay="1";return function(f){var h=f.slotId;f=d(f);h=gA(a.Za.get(),"LAYOUT_TYPE_MEDIA",h);var l={layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",fb:"adapter"};return{Rt:{layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",Vb:new Map,Pd:[],hd:[],Yc:[],jd:[],od:[],fb:"adapter",Ea:new uY([new AZ({}),new WY(b),new pZ({current:null}),new uZ(e)]),Ec:f(l)},Bv:[new G_(a.j,h,["error"])],Ur:[],bC:[],
aC:[]}}};
iUa=function(a,b,c,d,e,f,h,l,m){var n=u_(e);if(!ETa(e))return new zA("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:e});if(0>=n)return new zA("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:e});var p=HTa(a,b,e,f,c,d,h);return p instanceof zA?p:function(q){return hUa(b,q.slotId,c,n,v_(e),h(q),p,l,m)}};
jUa=function(a,b,c,d,e,f,h,l){function m(q){return eUa(a,q,d,n)}
function n(q,u){var w=q.slotId;q=h(q);w=gA(b.Za.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",w);return w_(b,w,u,c,q,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new hZ(e),f],e.adLayoutLoggingData)}
if(!(!isNaN(Number(e.timeoutSeconds))&&e.text&&e.ctaButton&&e.ctaButton.buttonRenderer&&e.brandImage&&e.backgroundImage&&e.backgroundImage.thumbnailLandscapePortraitRenderer&&e.backgroundImage.thumbnailLandscapePortraitRenderer.landscape))return new zA("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:e});var p=1E3*e.timeoutSeconds;return function(q){var u={impressionCommands:e.impressionCommands,completeCommands:e.timeoutCommands,skipCommands:e.dismissCommands},w=
h(q);q=H_(b,q.slotId,c,p,u,new Map,w,m);u=new mZ(q.OD);w=new YY(l);return{Rt:{layoutId:q.layoutId,layoutType:q.layoutType,Vb:q.Vb,Pd:[],hd:[],Yc:[],jd:[],od:[],fb:q.fb,Ea:new uY([].concat(g.t(q.ly),[u,w])),Ec:q.Ec,adLayoutLoggingData:q.adLayoutLoggingData},Bv:[],Ur:q.Yc,bC:q.jd,aC:q.od,Vi:q.Vi}}};
mUa=function(a,b,c,d,e,f,h,l,m,n,p,q,u,w){d=fA(d,"SLOT_TYPE_PLAYER_BYTES");a=kUa(e,a,h,c,d,m,n);if(a instanceof zA)return a;var y;h=null==(y=vY(a.Ea,"metadata_type_fulfilled_layout"))?void 0:y.layoutId;if(!h)return new zA("Invalid adNotify layout");b=lUa(h,e,f,c,l,b,m,p,q,u,w);return b instanceof zA?b:[a].concat(g.t(b))};
lUa=function(a,b,c,d,e,f,h,l,m,n,p){c=nUa(c,d,f,h,l,m,n,p);if(c instanceof zA)return c;a=oUa(b,a,h,e,c);return a instanceof zA?a:[].concat(g.t(a.Yh),[a.zt])};
qUa=function(a,b,c,d,e,f,h,l,m,n,p){b=nUa(b,c,e,f,l,m,n,p);if(b instanceof zA)return b;a=pUa(a,c,f,h,d,l.vf,b);return a instanceof zA?a:a.Yh.concat(a.zt)};
nUa=function(a,b,c,d,e,f,h,l){var m=I_(c);return m instanceof WZ?new zA(m):function(n){var p=new JI(0,[m.FB]),q=rUa(m.playerVars,m.dS,e,l,p);n=f(n);var u=h.get(m.TA.externalVideoId);p=sUa(a,"core",m.TA,b,q,m.FB,d,p,n,u);return{layout:{layoutId:p.layoutId,layoutType:p.layoutType,Vb:p.Vb,Pd:p.Pd,hd:p.hd,Yc:p.Yc,jd:p.jd,od:p.od,fb:p.fb,Ea:new uY(p.oO),Ec:p.Ec,adLayoutLoggingData:p.adLayoutLoggingData},Yh:[]}}};
I_=function(a){if(!a.playerVars)return new WZ("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.instreamAdPlayerOverlayRenderer)||null==a.pings||null==a.externalVideoId)return new WZ("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:a});b=ju(a.playerVars);var c=Number(b.length_seconds);isNaN(c)&&(c=0,cA("Expected valid length seconds in player vars but got NaN"));
return{TA:a,playerVars:b,dS:a.playerVars,FB:c}};
rUa=function(a,b,c,d,e){a.iv_load_policy=d;b=ju(b);if(b.cta_conversion_urls)try{a.cta_conversion_urls=JSON.parse(b.cta_conversion_urls)}catch(f){cA(f)}c.Fh&&(a.ctrl=c.Fh);c.ai&&(a.ytr=c.ai);c.Sn&&(a.ytrcc=c.Sn);c.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,c.dj&&(a.vss_credentials_token_type=c.dj),c.mdxEnvironment&&(a.mdx_environment=c.mdxEnvironment));2<=e.u&&(a.slot_pos=e.j);a.autoplay="1";return a};
uUa=function(a,b,c,d,e,f,h,l,m,n,p,q,u,w,y){a=fA(a,"SLOT_TYPE_PLAYER_BYTES");d=kUa(b,h,d,e,a,n,p);if(d instanceof zA)return d;var A;h=null==(A=vY(d.Ea,"metadata_type_fulfilled_layout"))?void 0:A.layoutId;if(!h)return new zA("Invalid adNotify layout");b=tUa(h,b,c,e,f,m,l,n,q,u,w,y);return b instanceof zA?b:[d].concat(g.t(b))};
tUa=function(a,b,c,d,e,f,h,l,m,n,p,q){c=vUa(b,c,d,f,h,l,m,n,p,q);wUa(f)?(d=xUa(b,a),a=fA(b.Za.get(),"SLOT_TYPE_IN_PLAYER"),f=gA(b.Za.get(),"LAYOUT_TYPE_SURVEY",a),l=J_(b,d,l),b=[].concat(g.t(l.kc),[new K_(b.j,f)]),a=c({slotId:l.slotId,slotType:l.slotType,slotPhysicalPosition:l.slotPhysicalPosition,Pb:l.Pb,dc:l.dc,kc:b,fb:l.fb},{slotId:a,layoutId:f}),e=a instanceof zA?a:{zt:Object.assign({},l,{kc:b,Ea:new uY([new DZ(a.layout)]),adSlotLoggingData:e}),Yh:a.Yh}):e=oUa(b,a,l,e,c);return e instanceof zA?
e:[].concat(g.t(e.Yh),[e.zt])};
zUa=function(a,b,c,d,e,f,h,l,m,n,p,q){b=vUa(a,b,c,e,f,h,m,n,p,q);wUa(e)?(c=yUa(a,c,h,l),c instanceof zA?d=c:(e=fA(a.Za.get(),"SLOT_TYPE_IN_PLAYER"),h=gA(a.Za.get(),"LAYOUT_TYPE_SURVEY",e),a=[].concat(g.t(c.kc),[new K_(a.j,h)]),e=b({slotId:c.slotId,slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,fb:c.fb,Pb:c.Pb,dc:c.dc,kc:a},{slotId:e,layoutId:h}),d=e instanceof zA?e:{zt:{slotId:c.slotId,slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,Pb:c.Pb,dc:c.dc,kc:a,fb:c.fb,Ea:new uY([new DZ(e.layout)]),
adSlotLoggingData:d},Yh:e.Yh})):d=pUa(a,c,h,l,d,m.vf,b);return d instanceof zA?d:d.Yh.concat(d.zt)};
wUa=function(a){a=g.r(a);for(var b=a.next();!b.done;b=a.next())if(b.value.instreamSurveyAdRenderer)return!0;return!1};
vUa=function(a,b,c,d,e,f,h,l,m,n){return function(p,q){a:{b:{var u=[];for(var w=g.r(d),y=w.next();!y.done;y=w.next())if(y=y.value,y.instreamVideoAdRenderer){y=I_(y.instreamVideoAdRenderer);if(y instanceof WZ){u=new zA(y);break b}u.push(y.FB)}}if(u instanceof zA)q=u;else{w=0;y=[];for(var A=[],B=[],D=[],G=[],H=[],L=new qZ({current:null}),N=new $Y({current:null}),K=!1,P=[],R=-1,X=g.r(d),Q=X.next();!Q.done;Q=X.next())if(Q=Q.value,Q.adIntroRenderer){Q=gUa(b,c,Q.adIntroRenderer,l);if(Q instanceof zA){q=
Q;break a}Q=Q(p);y.push(Q.Rt);A=[].concat(g.t(Q.Bv),g.t(A));B=[].concat(g.t(Q.Ur),g.t(B));Q.Vi&&(P=[Q.Vi].concat(g.t(P)))}else if(Q.instreamVideoAdRenderer){R=I_(Q.instreamVideoAdRenderer);if(R instanceof WZ){q=new zA(R);break a}Q=new JI(w,u);var oa=b,sa=R.TA,Ba=rUa(R.playerVars,R.dS,h,n,Q),ya=l(p),va=m.get(R.TA.externalVideoId);Ba=sUa(oa,"adapter",sa,c,Ba,R.FB,f,Q,ya,va);ya=Ba.hd;va=Ba.oO;sa.adPodSkipTarget&&0<sa.adPodSkipTarget&&(va.push(N),va.push(new ZY(sa.adPodSkipTarget)),ya=[]);va.push(new YY(Q.j));
sa.isCritical&&(ya=[new G_(oa.j,Ba.layoutId,["error"])].concat(g.t(ya)));Q={layoutId:Ba.layoutId,layoutType:Ba.layoutType,Vb:Ba.Vb,Pd:[],hd:[],Yc:[],jd:[],od:[],fb:Ba.fb,Ea:new uY(va),Ec:Ba.Ec,adLayoutLoggingData:Ba.adLayoutLoggingData};oa=ya;sa=Ba.Yc;w++;y.push(Q);A=[].concat(g.t(oa),g.t(A));B=[].concat(g.t(sa),g.t(B));K||(H.push(N),K=!0);R=(R=R.TA.adPodSkipTarget)&&0<R?R:-1}else if(Q.adActionInterstitialRenderer){Q=fUa(a,b,c,Q.adActionInterstitialRenderer,f,w,l,N,R);if(Q instanceof zA){q=Q;break a}Q=
Q(p);y.push(Q.Rt);A=[].concat(g.t(Q.Bv),g.t(A));B=[].concat(g.t(Q.Ur),g.t(B));Q.Vi&&(P=[Q.Vi].concat(g.t(P)))}else if(Q.instreamSurveyAdRenderer){if(void 0===q){q=new zA("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:Q.instreamSurveyAdRenderer});break a}Q=iUa(a,b,c,f,Q.instreamSurveyAdRenderer,L,l,q,w);if(Q instanceof zA){q=Q;break a}Q=Q(p);y.push(Q.Rt);Q.Vi&&P.push(Q.Vi);A=[].concat(g.t(Q.Bv),g.t(A));B=[].concat(g.t(Q.Ur),g.t(B));D=[].concat(g.t(Q.bC),
g.t(D));G=[].concat(g.t(Q.aC),g.t(G));H=[L].concat(g.t(H))}else if(Q.surveyTextInterstitialRenderer){Q=jUa(a,b,c,f,Q.surveyTextInterstitialRenderer,L,l,w);if(Q instanceof zA){q=Q;break a}Q=Q(p);y.push(Q.Rt);Q.Vi&&P.push(Q.Vi);B=[].concat(g.t(Q.Ur),g.t(B))}else{q=new zA("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}q={d5:y,hd:A,jd:D,od:G,Yc:B,ly:H,Yh:P}}}q instanceof zA?p=q:(G=p.slotId,u=q.d5,w=q.hd,y=q.Yc,A=q.jd,B=q.ly,p=l(p),D=e?e.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",
G=e?e.layoutId:gA(b.Za.get(),D,G),H={layoutId:G,layoutType:D,fb:"core"},p={layout:{layoutId:G,layoutType:D,Vb:new Map,Pd:[new C_(b.j,G)],hd:w,Yc:y,jd:A,od:[],fb:"core",Ea:new uY([new rZ(u)].concat(g.t(B))),Ec:p(H)},Yh:q.Yh});return p}};
BUa=function(a,b,c,d,e,f,h){if(!ETa(c))return new zA("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:c});var l=u_(c);if(0>=l)return new zA("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:c});var m=new qZ({current:null}),n=HTa(a,b,c,m,d,f,h);return AUa(a,d,f,l,e,function(p,q){var u=p.slotId,w=v_(c);p=h(p);u=gA(b.Za.get(),"LAYOUT_TYPE_MEDIA_BREAK",u);var y={layoutId:u,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",fb:"core"},A=n(u,
q);vY(A.Ea,"metadata_type_fulfilled_layout")||cA("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");w=[new WY(d),new IZ(l),new LZ(w),m];return{w_:{layoutId:u,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Vb:new Map,Pd:[new C_(b.j,u)],hd:[new y_(b.j,q.layoutId)],Yc:[],jd:[new z_(b.j,q.layoutId)],od:[],fb:"core",Ea:new uY(w),Ec:p(y)},NZ:A}})};
CUa=function(a){if(!tTa(a))return!1;var b=a.adVideoStart.adMessageRenderer;return b?a.linearAd.instreamVideoAdRenderer&&BJ(b)?!0:(cA("Invalid Sandwich with notify"),!1):!1};
DUa=function(a){if(null==a.linearAds)return!1;var b;a=null==(b=a.adStart)?void 0:b.adMessageRenderer;return a?BJ(a)?!0:(cA("Invalid LASR with notify"),!1):!1};
EUa=function(a){if(!sTa(a))return!1;var b;a=null==(b=a.adStart)?void 0:b.adMessageRenderer;return a?BJ(a)?!0:(cA("Invalid LASR with notify"),!1):!1};
L_=function(a,b,c,d,e,f,h,l){this.Za=a;this.Fb=b;this.zb=c;this.Ha=d;this.Hb=e;this.j=f;this.Di=h;this.loadPolicy=void 0===l?1:l};
Oua=function(a,b,c,d,e,f,h,l){var m=[];if(0===b.length&&0===c.length)return m;b=b.filter(r_);for(var n=c.filter(r_),p=new Map,q=new Map,u=g.r(b),w=u.next();!w.done;w=u.next())(w=w.value.renderer.remoteSlotsRenderer)&&w.hostElementId&&q.set(w.hostElementId,w);u=g.r(b);for(w=u.next();!w.done;w=u.next()){w=w.value;var y=FUa(a,p,w,d,e,f,h,q,l);y instanceof zA?cA(y,void 0,void 0,{renderer:w.renderer,config:w.config.adPlacementConfig,kind:w.config.adPlacementConfig.kind,contentCpn:d,daiEnabled:f}):m.push.apply(m,
g.t(y))}M_(a.Ha.get())||(e=GUa(a,n,d,h,q,p),m.push.apply(m,g.t(e)));if(null===a.j||f&&!h.AO){var A,B,D;a=h.vf&&1===b.length&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===(null==(A=b[0].config)?void 0:null==(B=A.adPlacementConfig)?void 0:B.kind)&&(null==(D=b[0].renderer)?void 0:D.adBreakServiceRenderer);if(!m.length&&!a){var G,H,L,N;cA("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:d,"first APR kind":null==(G=b[0])?void 0:null==
(H=G.config)?void 0:null==(L=H.adPlacementConfig)?void 0:L.kind,renderer:null==(N=b[0])?void 0:N.renderer})}return m}A=c.filter(r_);m.push.apply(m,g.t(ATa(p,A,a.Fb.get(),a.j,d)));if(!m.length){var K,P,R,X;cA("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:d,daiEnabled:f.toString(),"first APR kind":null==(K=b[0])?void 0:null==(P=K.config)?void 0:null==(R=P.adPlacementConfig)?void 0:R.kind,renderer:null==(X=b[0])?void 0:X.renderer})}return m};
GUa=function(a,b,c,d,e,f){function h(u){return BY(a.Hb.get(),u)}
var l=[];b=g.r(b);for(var m=b.next();!m.done;m=b.next()){m=m.value;var n=m.renderer,p=n.sandwichedLinearAdRenderer,q=n.linearAdSequenceRenderer;p&&CUa(p)?(q=p.adVideoStart.adMessageRenderer,p=p.linearAd.instreamVideoAdRenderer,s_(f,n,m.config.adPlacementConfig.kind),m=lUa(q.layout.layoutId,a.Fb.get(),a.zb.get(),m.config.adPlacementConfig,m.adSlotLoggingData,p,c,d,h,e,a.loadPolicy,a.Ha.get()),m instanceof zA?cA(m):l.push.apply(l,g.t(m))):q&&(!q.adLayoutMetadata&&DUa(q)||q.adLayoutMetadata&&EUa(q))&&
(s_(f,n,m.config.adPlacementConfig.kind),m=tUa(q.adStart.adMessageRenderer.layout.layoutId,a.Fb.get(),a.zb.get(),m.config.adPlacementConfig,m.adSlotLoggingData,q.linearAds,q_(q.adLayoutMetadata)?q.adLayoutMetadata:void 0,c,d,h,e,a.loadPolicy,a.Ha.get()),m instanceof zA?cA(m):l.push.apply(l,g.t(m)))}return l};
FUa=function(a,b,c,d,e,f,h,l,m){function n(B){return BY(a.Hb.get(),B)}
var p=c.renderer,q=c.config.adPlacementConfig,u=q.kind,w=c.adSlotLoggingData,y=h.AO&&"AD_PLACEMENT_KIND_START"===u;y=f&&!y;if(null!=p.adsEngagementPanelRenderer)return t_(b,c.elementId,u,p.adsEngagementPanelRenderer.isContentVideoEngagementPanel,p.adsEngagementPanelRenderer.adVideoId,p.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,q,w,function(B,D,G,H){var L=a.zb.get(),N=p.adsEngagementPanelRenderer,K=BY(a.Hb.get(),B);return N_(L,B.slotId,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON",
new OY(N),D,G,N.impressionPings,K,p.adsEngagementPanelRenderer.adLayoutLoggingData,H)}),[];
if(null!=p.actionCompanionAdRenderer)t_(b,c.elementId,u,p.actionCompanionAdRenderer.isContentVideoCompanion,p.actionCompanionAdRenderer.adVideoId,p.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,q,w,function(B,D,G,H){var L=a.zb.get(),N=p.actionCompanionAdRenderer,K=BY(a.Hb.get(),B);return N_(L,B.slotId,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new NY(N),D,G,N.impressionPings,K,p.actionCompanionAdRenderer.adLayoutLoggingData,H)});
else if(p.imageCompanionAdRenderer)t_(b,c.elementId,u,p.imageCompanionAdRenderer.isContentVideoCompanion,p.imageCompanionAdRenderer.adVideoId,p.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,q,w,function(B,D,G,H){var L=a.zb.get(),N=p.imageCompanionAdRenderer,K=BY(a.Hb.get(),B);return N_(L,B.slotId,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new SY(N),D,G,N.impressionPings,K,p.imageCompanionAdRenderer.adLayoutLoggingData,H)});
else if(p.shoppingCompanionCarouselRenderer)t_(b,c.elementId,u,p.shoppingCompanionCarouselRenderer.isContentVideoCompanion,p.shoppingCompanionCarouselRenderer.adVideoId,p.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,q,w,function(B,D,G,H){var L=a.zb.get(),N=p.shoppingCompanionCarouselRenderer,K=BY(a.Hb.get(),B);return N_(L,B.slotId,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new TY(N),D,G,N.impressionPings,K,p.shoppingCompanionCarouselRenderer.adLayoutLoggingData,H)});
else if(p.adBreakServiceRenderer){if(!wTa(c))return[];if("AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"!==u)return vTa(a.Fb.get(),q,w,c.renderer.adBreakServiceRenderer,d,e,f);if(!a.Di)return new zA("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");h.vf||cA("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:u,adPlacementConfig:q,daiEnabledForContentVideo:String(f),isServedFromLiveInfra:String(h.vf),clientPlaybackNonce:h.clientPlaybackNonce});
HUa(a.Di,{adPlacementRenderer:c,contentCpn:d,rO:e})}else{if(p.clientForecastingAdRenderer)return aUa(a.Fb.get(),a.zb.get(),q,w,p.clientForecastingAdRenderer,d,e,n);if(p.invideoOverlayAdRenderer)return cUa(a.Fb.get(),a.zb.get(),q,w,p.invideoOverlayAdRenderer,d,e,n);if((p.linearAdSequenceRenderer||p.instreamVideoAdRenderer)&&y)return VTa(a.Fb.get(),a.zb.get(),c,d,n,m);if(p.linearAdSequenceRenderer&&!y){s_(b,p,u);if(p.linearAdSequenceRenderer.adLayoutMetadata){if(!sTa(p.linearAdSequenceRenderer))return new zA("Received invalid LinearAdSequenceRenderer.")}else if(null==
p.linearAdSequenceRenderer.linearAds)return new zA("Received invalid LinearAdSequenceRenderer.");var A;if(null==(A=p.linearAdSequenceRenderer.adStart)?0:A.adMessageRenderer){b=p.linearAdSequenceRenderer.adStart.adMessageRenderer;if(!CCa(b))return new zA("Invalid AdMessageRenderer.");c=p.linearAdSequenceRenderer.linearAds;return uUa(a.Za.get(),a.Fb.get(),a.zb.get(),a.Hb.get(),q,w,b,q_(p.linearAdSequenceRenderer.adLayoutMetadata)?p.linearAdSequenceRenderer.adLayoutMetadata:void 0,c,d,e,h,n,l,a.loadPolicy,
a.Ha.get())}return zUa(a.Fb.get(),a.zb.get(),q,w,p.linearAdSequenceRenderer.linearAds,q_(p.linearAdSequenceRenderer.adLayoutMetadata)?p.linearAdSequenceRenderer.adLayoutMetadata:void 0,d,e,h,n,l,a.loadPolicy,a.Ha.get())}if(!p.remoteSlotsRenderer||f){if(p.instreamVideoAdRenderer&&!y)return s_(b,p,u),qUa(a.Fb.get(),a.zb.get(),q,w,p.instreamVideoAdRenderer,d,e,h,n,l,a.loadPolicy,a.Ha.get());if(p.instreamSurveyAdRenderer)return BUa(a.Fb.get(),a.zb.get(),p.instreamSurveyAdRenderer,q,w,d,n);if(null!=p.sandwichedLinearAdRenderer)return tTa(p.sandwichedLinearAdRenderer)?
p.sandwichedLinearAdRenderer.adVideoStart.adMessageRenderer?(b=p.sandwichedLinearAdRenderer.adVideoStart.adMessageRenderer,CCa(b)?(c=p.sandwichedLinearAdRenderer.linearAd.instreamVideoAdRenderer)?mUa(b,c,q,a.Za.get(),a.Fb.get(),a.zb.get(),a.Hb.get(),w,d,e,h,n,l,a.loadPolicy,a.Ha.get()):new zA("Missing IVAR from Sandwich"):new zA("Invalid AdMessageRenderer.")):zUa(a.Fb.get(),a.zb.get(),q,w,[p.sandwichedLinearAdRenderer.adVideoStart,p.sandwichedLinearAdRenderer.linearAd],void 0,d,e,h,n,l,a.loadPolicy,
a.Ha.get()):new zA("Received invalid SandwichedLinearAdRenderer.");if(null!=p.videoAdTrackingRenderer)return ZTa(a.Fb.get(),a.zb.get(),p.videoAdTrackingRenderer,q,w,d,n)}}return[]};
O_=function(a){g.J.call(this);this.j=a};
Xz=function(a,b,c,d){a.j().Ti(b,d);c=c();a=a.j();P_(a.pc,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",b,d,c);b=g.r(c);for(c=b.next();!c.done;c=b.next())a:{d=a;c=c.value;IJ(d.pc,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",c);IJ(d.pc,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",c);try{var e=d.j;if(g.cb(c.slotId))throw new zA("Slot ID was empty");if(UZ(e,c))throw new zA("Duplicate registration for slot.",{slotId:c.slotId,slotEntryTriggerType:c.Pb.triggerType});if(!e.Ke.ao.has(c.slotType))throw new zA("No fulfillment adapter factory registered for slot of type: "+
c.slotType);if(!e.Ke.Yo.has(c.slotType))throw new zA("No SlotAdapterFactory registered for slot of type: "+c.slotType);k_(e,"TRIGGER_CATEGORY_SLOT_ENTRY",c.Pb?[c.Pb]:[]);k_(e,"TRIGGER_CATEGORY_SLOT_FULFILLMENT",c.dc);k_(e,"TRIGGER_CATEGORY_SLOT_EXPIRATION",c.kc);var f=d.j,h=c.slotType+"_"+c.slotPhysicalPosition,l=f_(f,h);if(UZ(f,c))throw new zA("Duplicate slots not supported");l.set(c.slotId,new nTa(c));f.j.set(h,l)}catch(R){cA(R,c,void 0,void 0,R.Jr);break a}UZ(d.j,c).I=!0;try{var m=d.j,n=UZ(m,c),
p=c.Pb,q=m.Ke.Ij.get(p.triggerType);q&&(q.Ak("TRIGGER_CATEGORY_SLOT_ENTRY",p,c,null),n.Aa.set(p.triggerId,q));for(var u=g.r(c.dc),w=u.next();!w.done;w=u.next()){var y=w.value,A=m.Ke.Ij.get(y.triggerType);A&&(A.Ak("TRIGGER_CATEGORY_SLOT_FULFILLMENT",y,c,null),n.ea.set(y.triggerId,A))}for(var B=g.r(c.kc),D=B.next();!D.done;D=B.next()){var G=D.value,H=m.Ke.Ij.get(G.triggerType);H&&(H.Ak("TRIGGER_CATEGORY_SLOT_EXPIRATION",G,c,null),n.Z.set(G.triggerId,H))}var L=m.Ke.ao.get(c.slotType).get().Xe(m.B,c);
n.J=L;var N=m.Ke.Yo.get(c.slotType).get().Xe(m.D,c);N.init();n.u=N}catch(R){cA(R,c,void 0,void 0,R.Jr);RZ(d,c,!0);break a}IJ(d.pc,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);d.j.Xh(c);for(var K=g.r(d.Rd),P=K.next();!P.done;P=K.next())P.value.Xh(c);ZZ(d,c)}};
Q_=function(a,b,c,d){this.bp=b;this.Ll=c;this.visible=d;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)};
R_=function(a,b,c,d){g.J.call(this);var e=this;this.Ub=a;this.Fb=b;this.Yb=c;this.j=new Map;d.get().addListener(this);g.$e(this,function(){d.get().removeListener(e)})};
Lua=function(a,b){var c=0x8000000000000;for(var d=0,e=g.r(b.dc),f=e.next();!f.done;f=e.next())f=f.value,f instanceof Q_?(c=Math.min(c,f.Ll.start),d=Math.max(d,f.Ll.end)):cA("Found unexpected fulfillment trigger for throttled slot.",b,null,{fulfillmentTrigger:f});c=new yo(c,d);d="throttledadcuerange:"+b.slotId;a.j.set(d,b);a.Yb.get().addCueRange(d,c.start,c.end,!1,a)};
S_=function(){g.J.apply(this,arguments);this.sj=!0;this.Ej=new Map;this.j=new Map};
IUa=function(a,b){a=g.r(a.Ej.values());for(var c=a.next();!c.done;c=a.next())if(c.value.layoutId===b)return!0;return!1};
T_=function(a,b){a=g.r(a.j.values());for(var c=a.next();!c.done;c=a.next()){c=g.r(c.value);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.layoutId===b)return d}cA("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.cb(b)),layoutId:b})};
K_=function(a,b){this.j=b;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=a(this.triggerType)};
G_=function(a,b,c){this.If=b;this.j=c;this.triggerType="TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON";this.triggerId=a(this.triggerType)};
x_=function(a,b){this.If=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=a(this.triggerType)};
A_=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=a(this.triggerType)};
U_=function(a,b){this.j=b;this.slotType="SLOT_TYPE_PLAYER_BYTES";this.layoutType="LAYOUT_TYPE_MEDIA";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED";this.triggerId=a(this.triggerType)};
V_=function(a,b){this.j=b;this.slotType="SLOT_TYPE_IN_PLAYER";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED";this.triggerId=a(this.triggerType)};
C_=function(a,b){this.layoutId=b;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=a(this.triggerType)};
B_=function(a,b){this.j=b;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=a(this.triggerType)};
JUa=function(a,b){this.opportunityType="OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED";this.associatedSlotId=b;this.triggerType="TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED";this.triggerId=a(this.triggerType)};
MTa=function(a){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=a(this.triggerType)};
W_=function(a,b,c){this.layoutId=b;this.offsetMs=c;this.triggerType="TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=a(this.triggerType)};
X_=function(a,b){this.layoutId=b;this.triggerType="TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME";this.triggerId=a(this.triggerType)};
Y_=function(a,b,c){this.layoutId=b;this.offsetMs=c;this.triggerType="TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=a(this.triggerType)};
y_=function(a,b){this.If=b;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=a(this.triggerType)};
z_=function(a,b){this.If=b;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=a(this.triggerType)};
F_=function(a,b){this.durationMs=45E3;this.If=b;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=a(this.triggerType)};
KUa=function(a){var b=[new lZ(a.hx),new dZ(a.instreamAdPlayerOverlayRenderer),new oZ(a.IR),new WY(a.adPlacementConfig),new tZ(a.videoLengthSeconds),new HZ(a.dJ)];a.LN&&b.push(new $Y(a.LN));return b};
LUa=function(a,b,c,d,e,f){a=c.tI?c.tI:gA(f,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",a);var h={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",fb:b};return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Vb:new Map,Pd:[new x_(function(l){return hA(f,l)},c.hx)],
hd:[],Yc:[],jd:[],od:[],fb:b,Ea:d,Ec:e(h),adLayoutLoggingData:c.instreamAdPlayerOverlayRenderer.adLayoutLoggingData}};
Z_=function(a){var b=this;this.Za=a;this.j=function(c){return hA(b.Za.get(),c)}};
MUa=function(a,b,c,d,e,f){c=new uY([new eZ(c),new WY(d)]);b=gA(a.Za.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",b);d={layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",fb:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Vb:new Map,Pd:[new x_(function(h){return hA(a.Za.get(),h)},e)],
hd:[],Yc:[],jd:[],od:[],fb:"core",Ea:c,Ec:f(d),adLayoutLoggingData:void 0}};
$_=function(a,b,c,d,e){var f=KUa(d);return LUa(b,c,d,new uY(f),e,a.Za.get())};
NUa=function(a,b,c,d,e){var f=KUa(d);f.push(new UY(d.jX));f.push(new VY(d.lX));return LUa(b,c,d,new uY(f),e,a.Za.get())};
N_=function(a,b,c,d,e,f,h,l,m,n){b=gA(a.Za.get(),c,b);var p={layoutId:b,layoutType:c,fb:"core"},q=new Map;h&&q.set("impression",h);h=[new U_(a.j,e)];n&&h.push(new G_(a.j,n,["normal"]));return{layoutId:b,layoutType:c,Vb:q,Pd:h,hd:[],Yc:[],jd:[],od:[],fb:"core",Ea:new uY([d,new WY(f),new lZ(e)]),Ec:l(p),adLayoutLoggingData:m}};
E_=function(a,b,c){var d=[];d.push(new V_(a.j,c));b&&d.push(b);return d};
D_=function(a,b,c,d,e,f,h){var l={layoutId:b,layoutType:c,fb:"core"};return{layoutId:b,layoutType:c,Vb:new Map,Pd:h,hd:[new K_(a.j,b)],Yc:[],jd:[],od:[],fb:"core",Ea:new uY([new RY(d),new WY(e)]),Ec:f(l),adLayoutLoggingData:d.adLayoutLoggingData}};
w_=function(a,b,c,d,e,f,h,l){var m={layoutId:b,layoutType:f,fb:"core"};return{layoutId:b,layoutType:f,Vb:new Map,Pd:[new x_(a.j,c)],hd:[],Yc:[],jd:[],od:[],fb:"core",Ea:new uY([new WY(d)].concat(g.t(h))),Ec:e(m),adLayoutLoggingData:l}};
dUa=function(a,b,c,d,e,f,h,l,m,n,p,q){a=H_(a,b,c,d,e,f,h,l,p,q);b=a.ly;c=new mZ(a.OD);d=a.hd;0<m&&(b.push(c),b.push(new ZY(m)),d=[]);b.push(new YY(n));return{Rt:{layoutId:a.layoutId,layoutType:a.layoutType,Vb:a.Vb,Pd:[],hd:[],Yc:[],jd:[],od:[],fb:a.fb,Ea:new uY(b),Ec:a.Ec,adLayoutLoggingData:a.adLayoutLoggingData},Bv:d,Ur:a.Yc,bC:a.jd,aC:a.od,Vi:a.Vi}};
hUa=function(a,b,c,d,e,f,h,l,m){b=H_(a,b,c,d,e,new Map,f,function(n){return h(n,l)});
a=new z_(a.j,b.OD);c=new mZ(b.OD);m=new YY(m);return{Rt:{layoutId:b.layoutId,layoutType:b.layoutType,Vb:b.Vb,Pd:[],hd:[],Yc:[],jd:[],od:[],fb:b.fb,Ea:new uY([].concat(g.t(b.ly),[c,m])),Ec:b.Ec,adLayoutLoggingData:b.adLayoutLoggingData},Bv:b.hd,Ur:b.Yc,bC:[].concat(g.t(b.jd),[a]),aC:b.od,Vi:b.Vi}};
H_=function(a,b,c,d,e,f,h,l,m,n){b=gA(a.Za.get(),"LAYOUT_TYPE_MEDIA_BREAK",b);var p={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",fb:"adapter"};l=l(b);var q=vY(l.Ea,"metadata_type_fulfilled_layout");q||cA("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");q=q?q.layoutId:"";c=[new WY(c),new IZ(d),new LZ(e)];n&&c.push(new yZ(n));return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Vb:f,Pd:[],hd:[new y_(a.j,q)],Yc:[],jd:[],od:[],fb:"adapter",
ly:c,Ec:h(p),adLayoutLoggingData:m,Vi:l,OD:q}};
sUa=function(a,b,c,d,e,f,h,l,m,n){var p=c.elementId,q={layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA",fb:b};d=[new WY(d),new XY(l),new aZ(c.externalVideoId),new cZ(h),new dZ(c.playerOverlay.instreamAdPlayerOverlayRenderer),new LZ({impressionCommands:c.impressionCommands,abandonCommands:c.onAbandonCommands,completeCommands:c.completeCommands}),new uZ(e),new pZ({current:null}),new tZ(f)];(e=c.playerUnderlay)&&d.push(new eZ(e));e=fA(a.Za.get(),"SLOT_TYPE_IN_PLAYER");f=(f=c.playerOverlay.instreamAdPlayerOverlayRenderer.elementId)?
f:gA(a.Za.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",e);d.push(new mZ(f));d.push(new nZ(e));d.push(new yZ(l.j));c.adNextParams&&d.push(new PY(c.adNextParams));c.shrunkenPlayerBytesConfig&&d.push(new fZ(c.shrunkenPlayerBytesConfig));c.clickthroughEndpoint&&d.push(new QY(c.clickthroughEndpoint));c.legacyInfoCardVastExtension&&d.push(new JZ(c.legacyInfoCardVastExtension));c.sodarExtensionData&&d.push(new vZ(c.sodarExtensionData));n&&d.push(new GZ(n));d.push(new OZ(LI(c.pings)));return{layoutId:p,
layoutType:"LAYOUT_TYPE_MEDIA",Vb:MI(c.pings),Pd:[new C_(a.j,p)],hd:c.skipOffsetMilliseconds?[new y_(a.j,f)]:[],Yc:[new y_(a.j,f)],jd:[],od:[],fb:b,oO:d,Ec:m(q),adLayoutLoggingData:c.adLayoutLoggingData}};
XTa=function(a,b,c,d,e,f,h,l,m){d.every(function(p){return AJ(p,[],["LAYOUT_TYPE_MEDIA"])})||cA("Unexpect subLayout type for DAI composite layout");
b=gA(a.Za.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",b);var n={layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",fb:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Vb:new Map,Pd:[new A_(a.j)],hd:[],Yc:[],jd:[],od:[],fb:"core",Ea:new uY([new wZ(c),new xZ(l),new rZ(d),new WY(e),new CZ(f),new zZ({}),new PZ(m)]),Ec:h(n)}};
STa=function(a){return null!=a};
a0=function(a,b,c){this.bp=b;this.visible=c;this.triggerType="TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED";this.triggerId=a(this.triggerType)};
b0=function(a,b,c){this.If=b;this.slotId=c;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ACTIVE_AND_SLOT_ID_HAS_EXITED";this.triggerId=a(this.triggerType)};
c0=function(a,b){this.If=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ENTERED";this.triggerId=a(this.triggerType)};
OUa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=a(this.triggerType)};
d0=function(a,b,c,d,e){this.bp=b;this.Ll=c;this.visible=d;this.layoutId=e;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED";this.triggerId=a(this.triggerType)};
e0=function(a,b,c){this.bp=b;this.Ll=c;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)};
f0=function(a,b){this.oh=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_ENTERED";this.triggerId=a(this.triggerType)};
g0=function(a,b){this.oh=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=a(this.triggerType)};
h0=function(a,b){this.oh=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=a(this.triggerType)};
i0=function(a,b){this.oh=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=a(this.triggerType)};
j0=function(a,b){this.oh=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=a(this.triggerType)};
k0=function(a,b){this.oh=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_UNSCHEDULED";this.triggerId=a(this.triggerType)};
l0=function(a,b,c){var d=this;this.Za=a;this.zb=b;this.Ha=c;this.j=function(e){return hA(d.Za.get(),e)}};
uTa=function(a,b,c,d,e,f){f=void 0===f?[]:f;var h=fA(a.Za.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),l=[];d.Jv&&d.Jv.start!==d.xn.start&&l.push(new Q_(a.j,c,new yo(d.Jv.start,d.xn.start),!1));l.push(new Q_(a.j,c,new yo(d.xn.start,d.xn.end),d.dE));d={getAdBreakUrl:b.getAdBreakUrl,cS:d.xn.start,bS:d.xn.end};b=new i0(a.j,h);f=[new EZ(d)].concat(g.t(f));return{slotId:h,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,Pb:b,dc:l,kc:[new B_(a.j,c),new g0(a.j,h),new h0(a.j,h)],fb:"core",Ea:new uY(f),
adSlotLoggingData:e}};
QUa=function(a,b,c){var d=[];c=g.r(c);for(var e=c.next();!e.done;e=c.next())d.push(PUa(a,b,e.value));return d};
PUa=function(a,b,c){return null!=c.oh&&c.oh===a?c.clone(b):c};
GTa=function(a,b,c,d,e){return RUa(a,b,c,d,e)};
eUa=function(a,b,c,d){var e=fA(a.Za.get(),"SLOT_TYPE_IN_PLAYER");return RUa(a,e,b,c,d)};
RUa=function(a,b,c,d,e){var f=new c0(a.j,c),h=[new f0(a.j,b)];a=[new g0(a.j,b),new B_(a.j,d)];return{slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Pb:f,dc:h,kc:a,fb:"core",Ea:new uY([new DZ(e({slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,fb:"core",Pb:f,dc:h,kc:a},c))]),adSlotLoggingData:void 0}};
AUa=function(a,b,c,d,e,f){var h=fA(a.Za.get(),"SLOT_TYPE_PLAYER_BYTES"),l=fA(a.Za.get(),"SLOT_TYPE_IN_PLAYER"),m=gA(a.Za.get(),"LAYOUT_TYPE_SURVEY",l);b=m0(a,b,c,d);d=[new f0(a.j,h)];a=[new g0(a.j,h),new B_(a.j,c),new K_(a.j,m)];if(b instanceof zA)return b;f=f({slotId:h,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,fb:"core",Pb:b,dc:d,kc:a},{slotId:l,layoutId:m});l=f.NZ;return[{slotId:h,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Pb:b,dc:d,kc:a,fb:"core",Ea:new uY([new DZ(f.w_)]),
adSlotLoggingData:e},l]};
SUa=function(a,b,c,d,e){e=e?e:fA(a.Za.get(),"SLOT_TYPE_IN_PLAYER");c=new c0(a.j,c);var f=[new f0(a.j,e)];a=[new B_(a.j,b),new g0(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Pb:c,dc:f,kc:a,fb:"core",Ea:new uY([new DZ(d({slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,fb:"core",Pb:c,dc:f,kc:a}))])}};
TUa=function(a,b,c,d){var e=fA(a.Za.get(),"SLOT_TYPE_PLAYER_UNDERLAY");c=new c0(a.j,c);var f=[new f0(a.j,e)];a=[new B_(a.j,b),new g0(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,Pb:c,dc:f,kc:a,fb:"core",Ea:new uY([new DZ(d({slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,fb:"core",Pb:c,dc:f,kc:a}))])}};
kUa=function(a,b,c,d,e,f,h){var l=fA(a.Za.get(),"SLOT_TYPE_IN_PLAYER"),m=gA(a.Za.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",l);d=UUa(a,d,f,h,m);if(d instanceof zA)return d;h=[new f0(a.j,l)];e=[new B_(a.j,f),new f0(a.j,e),new k0(a.j,e)];c=BY(c,{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,fb:"core",Pb:d,dc:h,kc:e});a=a.zb.get();f={layoutId:m,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",fb:"core"};b={layoutId:m,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Vb:new Map,Pd:[new W_(a.j,m,
b.durationMs)],hd:[new Y_(a.j,m,b.durationMs)],od:[new X_(a.j,m)],Yc:[],jd:[],fb:"core",Ea:new uY([new KZ(b)]),Ec:c(f)};return{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,fb:"core",Pb:d,dc:h,kc:e,Ea:new uY([new DZ(b)])}};
bUa=function(a,b,c,d,e,f){b=m0(a,b,c,d);if(b instanceof zA)return b;var h=b instanceof Q_?new e0(a.j,c,b.Ll):null;d=fA(a.Za.get(),"SLOT_TYPE_IN_PLAYER");var l=[new f0(a.j,d)];a=[new B_(a.j,c),new g0(a.j,d)];f=f({slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,fb:"core",Pb:b,dc:l,kc:a},h);return f instanceof WZ?new zA(f):{slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Pb:b,dc:l,kc:a,fb:"core",Ea:new uY([new DZ(f)]),adSlotLoggingData:e}};
LTa=function(a,b,c,d){var e=fA(a.Za.get(),"SLOT_TYPE_IN_PLAYER");c=new c0(a.j,c);var f=[new f0(a.j,e)],h=[new g0(a.j,e),new B_(a.j,b)];f={slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,fb:"core",Pb:c,dc:f,kc:h};return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Pb:c,dc:[new f0(a.j,e)],kc:[new B_(a.j,b),new g0(a.j,e)],fb:"core",Ea:new uY([new DZ(d(f))])}};
JTa=function(a,b,c,d,e){var f=fA(a.Za.get(),"SLOT_TYPE_IN_PLAYER");c=new b0(a.j,d,c);d=[new f0(a.j,f)];a=[new B_(a.j,b)];return{slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Pb:c,dc:d,kc:a,fb:"core",Ea:new uY([new DZ(e({slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,fb:"core",Pb:c,dc:d,kc:a}))])}};
zTa=function(a,b,c,d,e,f){var h=fA(a.Za.get(),b);return VUa(a,h,b,new c0(a.j,d),c,e,d,f)};
yTa=function(a,b,c,d,e,f,h){var l=fA(a.Za.get(),b);return VUa(a,l,b,new G_(a.j,e,["normal"]),c,f,d,h)};
YTa=function(a,b,c,d){var e=fA(a.Za.get(),"SLOT_TYPE_PLAYBACK_TRACKING");b=new $z(a.j,b);var f=[new f0(a.j,e)];a=[new g0(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_PLAYBACK_TRACKING",slotPhysicalPosition:1,Pb:b,dc:f,kc:a,fb:"core",Ea:new uY([new DZ(d({slotId:e,slotType:"SLOT_TYPE_PLAYBACK_TRACKING",slotPhysicalPosition:1,fb:"core",Pb:b,dc:f,kc:a}))]),adSlotLoggingData:c}};
TTa=function(a,b,c){var d=fA(a.Za.get(),"SLOT_TYPE_PLAYER_BYTES"),e=new OUa(a.j),f=[new j0(a.j,d)];a=[new B_(a.j,b)];return{slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Pb:e,dc:f,kc:a,fb:"core",Ea:new uY([new DZ(c({slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,fb:"core",Pb:e,dc:f,kc:a})),new zZ({})])}};
xUa=function(a,b){return M_(a.Ha.get())?new G_(a.j,b,["normal","error","skipped"]):new G_(a.j,b,["normal"])};
oUa=function(a,b,c,d,e){b=xUa(a,b);a=J_(a,b,c);e=e({slotId:a.slotId,slotType:a.slotType,slotPhysicalPosition:a.slotPhysicalPosition,Pb:a.Pb,dc:a.dc,kc:a.kc,fb:a.fb});return e instanceof zA?e:{zt:Object.assign({},a,{Ea:new uY([new DZ(e.layout)]),adSlotLoggingData:d}),Yh:e.Yh}};
pUa=function(a,b,c,d,e,f,h){a=yUa(a,b,c,d);if(a instanceof zA)return a;h=h({slotId:a.slotId,slotType:a.slotType,slotPhysicalPosition:a.slotPhysicalPosition,Pb:a.Pb,dc:a.dc,kc:a.kc,fb:a.fb});if(h instanceof zA)return h;b=[new DZ(h.layout)];f&&b.push(new MZ({}));return{zt:{slotId:a.slotId,slotType:a.slotType,slotPhysicalPosition:a.slotPhysicalPosition,Pb:a.Pb,dc:a.dc,kc:a.kc,fb:a.fb,Ea:new uY(b),adSlotLoggingData:e},Yh:h.Yh}};
J_=function(a,b,c){var d=fA(a.Za.get(),"SLOT_TYPE_PLAYER_BYTES"),e=[new f0(a.j,d)];a=[new g0(a.j,d),new B_(a.j,c)];return{slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Pb:b,dc:e,kc:a,fb:"core"}};
yUa=function(a,b,c,d){b=m0(a,b,c,d);return b instanceof zA?b:J_(a,b,c)};
$Ta=function(a,b,c,d,e,f){var h=fA(a.Za.get(),"SLOT_TYPE_FORECASTING");b=m0(a,b,c,d);if(b instanceof zA)return b;d=[new f0(a.j,h)];a=[new g0(a.j,h),new B_(a.j,c)];return{slotId:h,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,Pb:b,dc:d,kc:a,fb:"core",Ea:new uY([new DZ(f({slotId:h,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,fb:"core",Pb:b,dc:d,kc:a}))]),adSlotLoggingData:e}};
WUa=function(a,b,c,d,e){var f=!b.hideCueRangeMarker;switch(b.kind){case "AD_PLACEMENT_KIND_START":return new $z(a.j,c);case "AD_PLACEMENT_KIND_MILLISECONDS":return a=hva(b,d),a instanceof zA?a:e(a.xn,f);case "AD_PLACEMENT_KIND_END":return new a0(a.j,c,f);default:return new zA("Cannot construct entry trigger",{kind:b.kind})}};
UUa=function(a,b,c,d,e){return WUa(a,b,c,d,function(f,h){return new d0(a.j,c,f,h,e)})};
m0=function(a,b,c,d){return WUa(a,b,c,d,function(e,f){return new Q_(a.j,c,e,f)})};
VUa=function(a,b,c,d,e,f,h,l){var m=[new j0(a.j,b)];a=[new B_(a.j,e),new g0(a.j,b),new G_(a.j,h,["error"])];return{slotId:b,slotType:c,slotPhysicalPosition:1,Pb:d,dc:m,kc:a,fb:"core",Ea:new uY([new DZ(l({slotId:b,slotType:c,slotPhysicalPosition:1,fb:"core",Pb:d,dc:m,kc:a}))]),adSlotLoggingData:f}};
n0=function(a,b){g.J.call(this);this.Ha=a;this.j=b;this.eventCount=0};
IJ=function(a,b,c){P_(a,b,void 0,void 0,void 0,c,void 0,void 0,c.adSlotLoggingData)};
VZ=function(a,b,c,d){P_(a,b,void 0,void 0,void 0,c,d?d:void 0,void 0,c.adSlotLoggingData,d?d.adLayoutLoggingData:void 0)};
fTa=function(a,b,c,d){o0(a.Ha.get(),"html5_log_trigger_events_with_debug_data")&&!AY(a.j.get())||P_(a,"ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",void 0,void 0,void 0,b,d?d:void 0,c,b.adSlotLoggingData,d?d.adLayoutLoggingData:void 0)};
P_=function(a,b,c,d,e,f,h,l,m,n){try{if(a.u()&&"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"!==b){o0(a.Ha.get(),"h5_debug_empty_pacf_event")&&(b||cA("Empty PACF event type",f,h));var p=AY(a.j.get()),q=XUa(a,p,b,c,d,e,f,h,l,m,n);YUa(a,q)}}catch(u){o0(a.Ha.get(),"html5_log_pacf_logging_errors")&&g.Av(g.Cv(),function(){cA(u instanceof Error?u:String(u),f,h,{pacf_message:"exception during pacf logging"})})}};
XUa=function(a,b,c,d,e,f,h,l,m,n,p){c={eventType:c,eventOrder:++a.eventCount};var q={};h&&(q.slotData=yY(b,h));l&&(q.layoutData=VSa(b,l));m&&(q.triggerData=xY(m.trigger,m.category));d&&(q.opportunityData=WSa(b,d,e,f));b={organicPlaybackContext:{contentCpn:a.Ua.get().Sf(1).clientPlaybackNonce}};b.organicPlaybackContext.isLivePlayback=a.Ua.get().Sf(1).vf;var u;b.organicPlaybackContext.isMdxPlayback=null==(u=a.Ua.get().Sf(1))?void 0:u.isMdxPlayback;var w;if(a=null==(w=a.Ua.get().Sf(2))?void 0:w.clientPlaybackNonce)b.adVideoPlaybackContext=
{adVideoCpn:a};b&&(q.externalContext=b);c.adClientData=q;n&&(c.serializedSlotAdServingData=n.serializedSlotAdServingDataEntry);p&&(c.serializedAdServingData=p.serializedAdServingDataEntry);return c};
YUa=function(a,b){b={adsClientEvent:b};o0(a.Ha.get(),"tvh5_pacf_disable_gel_log_action")||g.Kv("adsClientStateChange",b)};
p0=function(a,b,c){n0.call(this,a,b);this.Ha=a;this.Ua=c};
q0=function(){this.j=new Map};
r0=function(a,b,c,d,e){g.J.call(this);this.G=a;this.u=b;this.Ga=c;this.Ua=d;this.Oe=e;this.listeners=[];var f=new Yy(this);g.M(this,f);f.T(a,"internalAbandon",this.HJ);g.$e(this,function(){g.$y(f)})};
s0=function(a){g.J.call(this);this.G=a;this.j=new Map;this.u=new Yy(this);g.M(this,this.u);this.u.T(this.G,g.sA("ad"),this.onCueRangeEnter,this);this.u.T(this.G,g.tA("ad"),this.onCueRangeExit,this)};
$Ua=function(a,b){(b=a.j.get(b))&&ZUa(a,b)};
ZUa=function(a,b){a.G.jh([b.Td],b.Ml);a.j.delete(b.Td.id)};
aVa=function(a,b,c,d,e){g.qA.call(this,b,c,{id:a,namespace:"ad",priority:e,visible:d})};
t0=function(a){this.G=a};
u0=function(a){this.G=a;this.j=Math.random()<g.RE(this.G.V().experiments,"tv_pacf_logging_sample_rate")};
o0=function(a,b){return a.G.V().K(b)};
v0=function(a){var b,c,d;return(null==(b=a.G.getVideoData(1).getPlayerResponse())?void 0:null==(c=b.playerConfig)?void 0:null==(d=c.daiConfig)?void 0:d.enableServerStitchedDai)||!1};
bVa=function(a){return a.G.V().K("html5_enable_vod_lasr_with_notify_pacf")};
M_=function(a){return a.G.V().K("html5_enable_vod_slar_with_notify_pacf")};
dTa=function(a){if(g.lG(a.G.V()))return a.G.V().K("html5_enable_vod_lsar_ivar_pacf_unplugged");if($F(a.G.V())||g.aG(a.G.V()))return!0;cA("Composite VOD on legacy path.");return!1};
cVa=function(a){return a.G.V().K("html5_recognize_predict_start_cue_point")};
w0=function(a){return a.G.V().K("enable_lr_home_infeed_ads_inline_playback_progress_pings")};
dVa=function(a){return a.G.V().experiments.jb("enable_desktop_player_underlay")};
x0=function(a,b){this.Ga=a;this.G=b;this.j=new Map;II().subscribe("adactiveviewmeasurable",this.Qz,this);II().subscribe("adfullyviewableaudiblehalfdurationimpression",this.Pz,this);II().subscribe("adviewableimpression",this.Rz,this);II().subscribe("adaudioaudible",this.Nz,this);II().subscribe("adaudiomeasurable",this.Oz,this)};
z0=function(a,b,c,d,e){e=void 0===e?null:e;a.j.has(b)?cA("Unexpected registration of layout in LidarApi"):(a.j.set(b,e),On(Qk(Mn),c),cCa(II(),b,{Ry:function(){return d?{currentTime:a.Ga.get().getCurrentTimeSec(2,!1),duration:d,Tc:2===a.Ga.get().getPresentingPlayerType()&&1===y0(a.Ga.get(),2),C5a:!1,D5a:!0,volume:a.Ga.get().isMuted()?0:a.Ga.get().getVolume()/100}:{}}}))};
A0=function(a,b){a.j.has(b)?(a.j.delete(b),delete II().j[b]):cA("Unexpected unregistration of layout in LidarApi")};
B0=function(a,b){this.B=a;this.C=b};
C0=function(a,b,c,d){var e=void 0===e?new B0(function(){var f=a.getVideoData(1);return g.uG(f?g.sI(f):"")},function(){return a.V().pageId}):e;
this.G=a;this.u=b;this.Ib=c;this.Ua=d;this.Ir=e;this.GE=null;this.j=new Map;this.yk=new cJ(e)};
F0=function(a,b,c,d,e){d=void 0===d?[]:d;var f=T_(a.u.get(),c);f?(c=D0(a,E0(f),f,void 0,e),b.hasOwnProperty("baseUrl")?a.Ir.send(b,c):a.yk.send(b,c,{},d)):cA("Trying to ping from an unknown layout",void 0,void 0,{layoutId:c})};
G0=function(a,b){g.Kv("adsClientStateChange",b)};
H0=function(a,b){a.j.has(b.Rv())?cA("Trying to register an existing AdErrorInfoSupplier."):a.j.set(b.Rv(),b)};
I0=function(a,b){a.j.delete(b.Rv())||cA("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")};
E0=function(a){var b=vY(a.Ea,"metadata_type_ad_placement_config");a=vY(a.Ea,"metadata_type_media_sub_layout_index");return{adPlacementConfig:b,sQ:a}};
D0=function(a,b,c,d,e){var f=c?eVa(a):{};c=c?fVa(a,c.layoutId):{};var h=a.G.V().K("enable_macro_substitution_on_html5")?gVa(a):{},l={},m={};f=Object.assign({},YI(a.G,d),kCa(b.adPlacementConfig),(l.SLOT_POS=XI(function(){return(b.sQ||0).toString()}),l),c,f,h,(m.FINAL=XI(function(){return"1"}),m.AD_CPN=XI(function(){var n;
return(null==(n=a.Ua.get().Sf(2))?void 0:n.clientPlaybackNonce)||""}),m));
d={};e=Object.assign({},f,e);f=g.r(Object.values(hVa));for(c=f.next();!c.done;c=f.next())c=c.value,h=e[c],null!=h&&null!=h.toString()&&(d[c]=h.toString());return d};
eVa=function(a){var b={},c,d=null==(c=a.GE)?void 0:c.Sl/1E3;null!=d&&(b.SURVEY_ELAPSED_MS=XI(function(){return Math.round(1E3*d).toString()}));
b.SURVEY_LOCAL_TIME_EPOCH_S=XI(function(){return Math.round(Date.now()/1E3).toString()});
return b};
fVa=function(a,b){a=a.j.get(b);if(!a)return{};a=a.KH();if(!a)return{};b={};return b.YT_ERROR_CODE=a.WE.toString(),b.ERRORCODE=a.UA.toString(),b.ERROR_MSG=a.errorMessage,b};
gVa=function(a){var b={},c=a.G.getVideoData(1);b.ASR=XI(function(){var d;return null!=(d=null==c?void 0:c.Uk)?d:null});
b.EI=XI(function(){var d;return null!=(d=null==c?void 0:c.eventId)?d:null});
return b};
J0=function(a,b,c){g.J.call(this);this.G=a;this.Fd=b;this.Ha=c;this.listeners=[];this.TI=null;this.yG=new Map;b=new g.XD(this);g.M(this,b);b.T(a,"videodatachange",this.m3);b.T(a,"serverstitchedvideochange",this.F2);this.gs=this.Sf()};
jVa=function(a,b,c){var d=iVa(a,b,c);a.gs=d;a.listeners.forEach(function(e){e.lR(d)})};
iVa=function(a,b,c){var d=b.author,e=b.clientPlaybackNonce,f=b.isListed,h=b.Hc,l=b.title,m=b.Fh,n=b.ai,p=b.isMdxPlayback,q=b.dj,u=b.mdxEnvironment,w=b.dn,y=b.Lt,A=b.un,B=b.Or,D=b.videoId||"",G=b.profilePicture||"",H=b.Kk||"";b=b.Sn||void 0;h=a.Fd.get().j.get(h)||{layoutId:null,slotId:null};var L=a.G.getVideoData(1),N=L.vf();L=L.getPlayerResponse();c=1E3*a.G.getDuration(c);a=1E3*a.G.getDuration(1);var K,P,R=(null==L?void 0:null==(K=L.playerConfig)?void 0:null==(P=K.daiConfig)?void 0:P.enableDai)||
!1,X,Q;K=(null==L?void 0:null==(X=L.playerConfig)?void 0:null==(Q=X.daiConfig)?void 0:Q.enablePreroll)||!1;return Object.assign({},h,{videoId:D,author:d,clientPlaybackNonce:e,playbackDurationMs:c,rO:a,daiEnabled:R,AO:K,isListed:f,vf:N,profilePicture:G,title:l,Kk:H,Fh:m,ai:n,Sn:b,isMdxPlayback:p,dj:q,mdxEnvironment:u,dn:w,Lt:y,un:A,Or:B})};
K0=function(a,b,c){g.J.call(this);this.G=a;this.Ua=b;this.Ha=c;this.listeners=[];this.cC=[];this.ls=function(){cA("Called 'doUnlockPreroll' before it's initialized.")};
b=new Yy(this);c=new g.XD(this);g.M(this,c);g.M(this,b);b.T(a,"progresssync",this.b2);b.T(a,"presentingplayerstatechange",this.R1);b.T(a,"fullscreentoggled",this.onFullscreenToggled);b.T(a,"onVolumeChange",this.onVolumeChange);b.T(a,"minimized",this.Zg);b.T(a,"resize",this.Cb);c.T(a,g.sA("appad"),this.qk)};
kVa=function(a,b){a.cC=a.cC.filter(function(c){return c!==b})};
L0=function(a,b){var c;b=null!=(c=a.Ua.get().yG.get(b))?c:null;if(null===b)return cA("Expected ad video start time on playback timeline"),0;a=a.G.getCurrentTime(2,!0);return a<b?0:a-b};
y0=function(a,b){return a.G.Eb(b)};
lVa=function(a){var b=a.G.gb().Ki();a=a.G.fk(!0,!0);return b.height-(a.height+a.top)};
mVa=function(a){a.G.cueVideoByPlayerVars({videoId:"empty_video"},2)};
nVa=function(a,b){var c=a.G.V();PF(c)||"3"!==c.controlsType||a.G.gb().wA(b)};
M0=function(a,b){g.fo(a.G.getRootNode(),b)};
N0=function(a,b){g.ho(a.G.getRootNode(),b)};
oVa=function(a,b,c,d,e){g.J.call(this);var f=this;this.Za=Y(function(){return new eA});
g.M(this,this.Za);this.zb=Y(function(){return new Z_(f.Za)});
g.M(this,this.zb);this.Gc=Y(function(){return new S_});
g.M(this,this.Gc);this.Ub=Y(function(){return new O_(a)});
g.M(this,this.Ub);this.Fb=Y(function(){return new l0(f.Za,f.zb,f.Ha)});
g.M(this,this.Fb);this.Fd=Y(function(){return new q0});
g.M(this,this.Fd);this.Mb=Y(function(){return new o_(e)});
this.Yb=Y(function(){return new s0(b)});
g.M(this,this.Yb);this.md=Y(function(){return new t0(b)});
g.M(this,this.md);this.Ha=Y(function(){return new u0(b)});
g.M(this,this.Ha);this.Hb=Y(function(){return new CY(f.Ha)});
g.M(this,this.Hb);this.Md=Y(function(){return new L_(f.Za,f.Fb,f.zb,f.Ha,f.Hb,null,null)});
g.M(this,this.Md);this.Ua=Y(function(){return new J0(b,f.Fd,f.Ha)});
g.M(this,this.Ua);this.pc=new p0(this.Ha,this.Hb,this.Ua);g.M(this,this.pc);this.Ga=Y(function(){return new K0(b,f.Ua,f.Ha)});
g.M(this,this.Ga);this.Ib=Y(function(){return new x0(f.Ga,b)});
g.M(this,this.Ib);this.Ta=Y(function(){return new C0(b,f.Gc,f.Ib,f.Ua)});
g.M(this,this.Ta);this.Kc=new dA(this.Ub,this.Md,c,this.Ha,a,this.Ua,this.Ga);g.M(this,this.Kc);var h=new r0(b,this.Kc,this.Ga,this.Ua);this.Bf=Y(function(){return h});
this.Aq=h;this.Me=new R_(this.Ub,this.Fb,this.Yb,this.Bf);g.M(this,this.Me);this.Mc=new Wz(this.Ub,this.Fb,this.Md,this.Ua,this.Me,c);g.M(this,this.Mc);this.Ke={qt:new Map,ao:new Map,Ij:new Map,Yo:new Map,Ho:new Map};this.listeners=[];this.Ss={Mc:this.Mc,tm:null,Jo:null,wh:this.Ha.get(),bb:this.Mb.get(),Iq:this.Ga.get(),Kc:this.Kc,vl:this.Za.get(),Io:null,pk:{mI:function(){}},
Oi:this.Gc.get(),El:this.Ua.get()}};
O0=function(){this.listeners=new Set};
P0=function(){};
pVa=function(a,b){b.siub&&b.bgub&&b.scs&&b.bgp&&Cga(b.siub,b.scs,b.bgub,b.bgp)};
qVa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.zb=c;this.Hb=d;this.Ha=e;this.j=null};
rVa=function(a,b,c,d){a.j&&cA("Currently active request ongoing for slot. This should never happen",a.slot);a.j=b();a.j.then(function(e){a.j=null;d&&d(e);var f=e.ex?"LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE":"LAYOUT_TYPE_AD_BREAK_RESPONSE",h=a.zb.get(),l=a.slot.slotId,m=BY(a.Hb.get(),{slotId:a.slot.slotId,slotType:a.slot.slotType,slotPhysicalPosition:a.slot.slotPhysicalPosition,fb:a.slot.fb,Pb:a.slot.Pb,dc:a.slot.dc,kc:a.slot.kc}),n=gA(h.Za.get(),f,l),p={layoutId:n,layoutType:f,fb:"core"};e={layoutId:n,
layoutType:f,Vb:new Map,Pd:[new JUa(h.j,l)],hd:[],Yc:[],jd:[],od:[],fb:"core",Ea:new uY([new FZ(e)]),Ec:m(p)};eTa(a.callback,a.slot,e)},function(e){a.j=null;
c&&c();e instanceof Jh||SZ(a.callback,a.slot,new zA(e,void 0,!0))});
o0(a.Ha.get(),"fetch_bid_for_dclk_status")&&bA("abr fetch")};
sVa=function(a){if(null==a.j)a.callback.ID(a.slot);else try{a.j.cancel(),a.j=null,a.callback.ID(a.slot)}catch(b){a.j=null,SZ(a.callback,a.slot,new zA(b))}};
Q0=function(a,b,c,d,e,f,h){this.slot=b;this.Ve=c;this.Je=h;this.j=new qVa(a,b,d,e,f)};
tVa=function(a){var b;null==(b=a.Je)||b.get().Fq(vY(a.slot.Ea,"metadata_type_cue_point").identifier)};
R0=function(a,b,c,d,e,f){this.slot=b;this.Ve=c;this.j=new qVa(a,b,d,e,f)};
S0=function(a,b){this.callback=a;this.slot=b};
T0=function(a,b){return Zz(a,b.ue,b.slotType)?!0:!1};
U0=function(){};
V0=function(a,b,c,d,e){this.Ve=a;this.zb=b;this.Hb=c;this.Ha=d;this.Je=e};
W0=function(){};
uVa=function(a,b,c,d){this.callback=a;this.slot=b;this.layout=c;this.j=d};
X0=function(a,b){return AJ(a,b.ue,b.Ef)?!0:!1};
Y0=function(a){this.j=a};
Z0=function(a,b,c,d,e){e=void 0===e?null:e;this.B=a;this.Ta=b;this.layoutId=d;this.C=0;this.D=null;this.j=new Set;this.u=Array.from(this.B.get("progress")||[]);this.u.sort(function(f,h){return(f.offsetMilliseconds||0)-(h.offsetMilliseconds||0)});
this.I={adPlacementConfig:c,sQ:e}};
$0=function(){return["metadata_type_ad_placement_config"]};
a1=function(a){var b=a.Ta.get();return D0(b,a.I)};
b1=function(a,b,c){c=void 0===c?!1:c;if(!a.j.has(b)){var d=c&&NI(b);d&&(c=!a.j.has(d));a.Rf(b,c)}};
d1=function(a,b,c){for(c=void 0===c?!1:c;a.C<a.u.length;){var d=a.u[a.C];if(d.offsetMilliseconds<=b||c)c1(a,"progress",[d]),a.C++;else break}};
e1=function(a,b){return a.j.has(b)};
vVa=function(a){return a.u.every(function(b){return b.hasOwnProperty("offsetMilliseconds")})};
c1=function(a,b,c){var d,e=a.Ta.get(),f=a.layoutId;a=null!=(d=a.D)?d:void 0;c=void 0===c?[]:c;if(d=T_(e.u.get(),f))for(b=e.Ib.get().Rf(f,b),f=D0(e,E0(d),d,a),c=g.r(c),d=c.next();!d.done;d=c.next())d=d.value,d.baseUrl&&e.yk.send(d.baseUrl,f,b,d.headers);else cA("Trying to track from an unknown layout.",void 0,void 0,{layoutId:f,trackingType:b})};
wVa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.layout=c;this.Ta=d;this.j=e;a=vY(this.layout.Ea,"metadata_type_ad_placement_config");this.u=new Z0(c.Vb,this.Ta,a,c.layoutId)};
xVa=function(){var a=["metadata_type_client_forecasting_ad_renderer"];$0().forEach(function(b){a.push(b)});
return{ue:a,Ef:["LAYOUT_TYPE_FORECASTING"]}};
f1=function(a,b,c){this.Ta=a;this.j=b;this.Ib=c};
yVa=function(a,b,c){this.j=a;this.slot=b;this.layout=c};
g1=function(a,b,c){b.layoutId!==a.layout.layoutId?a.j.og(a.slot,b,new WZ("Unknown layout received. Required LayoutId: "+a.layout.layoutId+("and LayoutType: "+a.layout.layoutType))):c()};
h1=function(a,b,c,d){g.az.call(this);this.callback=a;this.B=d;this.j=[];this.u=new yVa(a,b,c)};
i1=function(a,b,c,d,e,f,h){e=vY(c.Ea,e);a=a1(a);var l=$f(function(){d.Rc(b,c)});
h.push(f(e,a,c.layoutId,{adsClientData:c.Ec},function(){l()}))};
j1=function(a,b,c,d,e,f,h,l,m){if(b===a)if(m){if(m===l.layoutId){a:{a=g.r(c.keys());for(b=a.next();!b.done;b=a.next())if(b=b.value,"SLOT_TYPE_PLAYER_BYTES"===b.slotType&&f===c.get(b).layoutId){c=!0;break a}c=!1}c?d.G.sendVideoStatsEngageEvent(1,void 0,2):e?e():cA("Tried to call engagePingCallback but it is null",h,l)}}else cA("Companion AdUxClick received without a layoutId",h,l)};
zVa=function(a,b,c,d,e){EI.call(this,"action-companion",a,b,c,d,e)};
k1=function(a,b,c,d,e,f,h,l){h1.call(this,a,b,c,d);this.Ta=e;this.mf=f;this.J=l;this.sj=!0;this.C=null;this.D=vY(c.Ea,"metadata_type_linked_player_bytes_layout_id");this.mf().Rd.add(this);a=vY(c.Ea,"metadata_type_ad_placement_config");this.I=new Z0(c.Vb,this.Ta,a,c.layoutId)};
AVa=function(){var a=["metadata_type_action_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];$0().forEach(function(b){a.push(b)});
return{ue:a,Ef:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
l1=function(a,b,c,d,e){h1.call(this,a,b,c,d);a=vY(c.Ea,"metadata_type_ad_placement_config");this.C=new Z0(c.Vb,e,a,c.layoutId)};
BVa=function(){var a=["metadata_type_ad_action_interstitial_renderer"];$0().forEach(function(b){a.push(b)});
return{ue:a,Ef:["LAYOUT_TYPE_ENDCAP"]}};
m1=function(a,b,c,d,e,f,h,l){h1.call(this,a,b,c,d);this.Ga=e;this.Ta=f;this.I=h;this.D=l;this.C=!1;this.J=vY(this.layout.Ea,"metadata_type_linked_player_bytes_layout_id")};
CVa=function(){return{ue:["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"],Ef:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]}};
n1=function(a,b,c,d,e,f,h,l){return X0(c,CVa())?new m1(a,b,c,d,e,f,h,l):X0(c,BVa())?new l1(a,b,c,d,f):null};
o1=function(a,b,c,d,e){this.jc=a;this.Ga=b;this.Ta=c;this.u=d;this.j=e};
p1=function(a,b,c,d,e,f){g.J.call(this);this.callback=a;this.xe=b;this.Ga=c;this.Sd=d;this.mf=e;this.Ha=f;this.sj=!0;this.sI=!1};
q1=function(a,b,c,d,e,f,h,l,m,n){p1.call(this,a,b,c,d,m,n);this.B=e;this.slot=f;this.layout=h;this.I=l;this.u=[];this.j=-1;this.C=!1};
EVa=function(a,b,c){var d=a.u[a.j];if(c.layoutId!==r1(d,b,c))cA("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",d.fd(),d.Db(),{requestingSlot:b,requestingLayout:c});else{var e=vY(d.Db().Ea,"metadata_type_ad_pod_skip_target");if(e&&0<e&&e<a.u.length){for(var f=e;f<a.u.length;){if(e===vY(a.u[f].Db().Ea,"metadata_type_ad_pod_skip_index")){DVa(a,d.fd(),d.Db(),f);return}f++}cA("Skip-to-index was requested but target index was not found",d.fd(),d.Db(),{requestingSlot:b,
requestingLayout:c})}else cA("Invalid ad pod skip target index",d.fd(),d.Db(),{requestingSlot:b,requestingLayout:c})}};
r1=function(a,b,c){var d=vY(a.Db().Ea,"metadata_type_linked_in_player_layout_id");return d?d:(cA("Tried to retrieve Linked InPlayer LayoutId but missing ClientMetadata",a.fd(),a.Db(),{requestingSlot:b,requestingLayout:c}),null)};
t1=function(a,b,c,d){FVa(a,b,c,d,function(){s1(a,a.j+1)})};
DVa=function(a,b,c,d){FVa(a,b,c,"skipped",function(){s1(a,d)})};
FVa=function(a,b,c,d,e){if(!a.C){var f=a.u[a.j];f?(f.Db().layoutId!==c.layoutId&&cA("SubLayout mismatch in exitSubLayout",b,c,{exitingSubLayout:c.layoutId,activeSubLayout:f.Db().layoutId}),a.C=!0,f.eg(f.Db(),d),EJ(a.B,b,c,d),a.C=!1,a.D?(a.D(),a.Sd.get().Zw()):e()):cA("No active adapter when exitSubLayout in PlayerBytesVodCompositeLayoutRenderingAdapter. This should never happen.",b,c)}};
s1=function(a,b){if(a.j===a.u.length-1)a.j++,u1(a.I,a.layout.layoutId),a.Sd.get().Zw();else{if(-1===a.j&&(a.callback.Rc(a.slot,a.layout),0<b)){cA("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",a.slot,a.layout,{indexToPlay:b,layoutId:a.layout.layoutId});return}a.j=b;b=a.u[a.j];0<a.j&&a.Sd.get().ZK();b.startRendering(b.Db())}};
v1=function(a){return!a.yq.Tc()&&a.state.Tc()};
w1=function(a,b,c){return a<b?!1:null!=c?c<=b:a<=b+1};
GVa=function(a){var b;if("AD_VIDEO_PROGRESS_KIND_PERCENT"!==(null==(b=a.adVideoOffset)?void 0:b.kind))return!1;var c;return null!=(null==(c=a.adVideoOffset)?void 0:c.percent)};
HVa=function(a){var b;if("AD_VIDEO_PROGRESS_KIND_MILLISECONDS"!==(null==(b=a.adVideoOffset)?void 0:b.kind))return!1;var c;return null!=(null==(c=a.adVideoOffset)?void 0:c.milliseconds)&&!isNaN(Number(a.adVideoOffset.milliseconds))};
IVa=function(a,b,c,d){this.Mb=a;this.layoutId=c;this.D=d;this.u=[];this.j=[];this.B=this.C=0;a=g.r(b);for(b=a.next();!b.done;b=a.next())switch(b=b.value,c=void 0,null==(c=b.adVideoOffset)?void 0:c.kind){case "AD_VIDEO_PROGRESS_KIND_PERCENT":GVa(b)?this.u.push(b):cA("Invalid AdVideoProgressPercentCommand");break;case "AD_VIDEO_PROGRESS_KIND_MILLISECONDS":HVa(b)?this.j.push(b):cA("Invalid AdVideoProgressMillisecondsCommand");break;default:cA("Unknown or invalid AdVideoProgressOffSet kind")}this.u.sort(function(e,
f){return e.adVideoOffset.percent-f.adVideoOffset.percent});
this.j.sort(function(e,f){return Number(e.adVideoOffset.milliseconds)-Number(f.adVideoOffset.milliseconds)})};
y1=function(a,b,c,d,e,f,h,l,m,n,p,q,u,w){g.J.call(this);var y=this;this.callback=a;this.slot=b;this.layout=c;this.Ta=d;this.Ib=e;this.Ga=f;this.Sd=h;this.lf=l;this.Mb=m;this.D=n;this.position=q;this.qa=u;this.Ha=w;this.sj=!0;this.ea=!1;this.j="not_rendering";this.C=!1;a=vY(this.layout.Ea,"metadata_type_ad_placement_config");this.u=new Z0(c.Vb,this.Ta,a,c.layoutId);var A;a=(null==(A=x1(this))?void 0:A.progressCommands)||[];this.ya=new IVa(m,a,c.layoutId,function(){return y.Qv()});
this.Z=$f(function(){y.callback.Rc(y.slot,y.layout)});
this.J=$f(function(){"rendering_stop_requested"!==y.j&&p(y);y.S?y.callback.pd(y.slot,y.layout,y.S):cA("Received layout exit signal when not in layout exit flow.",y.slot,y.layout)})};
x1=function(a){return vY(a.layout.Ea,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")};
A1=function(a,b,c){c=void 0===c?!1:c;if("rendering"===a.j){d1(a.u,1E3*b,c);a.C||d1(a.u,1E3*b,void 0===c?!1:c);var d=a.Qv();if(d&&(d/=1E3,(b>=.25*d||c)&&z1(a,"first_quartile"),(b>=.5*d||c)&&z1(a,"midpoint"),(b>=.75*d||c)&&z1(a,"third_quartile"),a=a.ya,b*=1E3,c=a.D())){for(;a.C<a.u.length;)if(d=a.u[a.C],d.adVideoOffset.percent*c<=b)a.Mb.get().executeCommand(d.command,a.layoutId),a.C++;else break;for(;a.B<a.j.length;)if(c=a.j[a.B],Number(c.adVideoOffset.milliseconds)<=b)a.Mb.get().executeCommand(c.command,
a.layoutId),a.B++;else break}}};
z1=function(a,b){o0(a.Ha.get(),"av_call_once_per_event_pair")?b1(a.u,b,!a.C):(b1(a.u,b),a.C||(b=NI(b))&&b1(a.u,b))};
B1=function(a,b){if(o0(a.Ha.get(),"av_call_every_user_event")){var c=a.u;a=!a.C;a=void 0===a?!1:a;c.j.has(b)?c1(c,b,[]):b1(c,b,a)}else z1(a,b)};
C1=function(a,b,c,d,e,f,h,l,m,n,p,q,u,w,y){y1.call(this,a,b,c,d,e,f,h,m,n,p,q,u,w,y);var A=this;this.md=l;this.eD=!0;this.B=this.Sl=0;this.timer=new g.Lh(200);this.timer.Ra("tick",function(){A.hc()});
g.M(this,this.timer)};
JVa=function(){for(var a=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],b=g.r($0()),c=b.next();!c.done;c=b.next())a.push(c.value);return{ue:a,Ef:["LAYOUT_TYPE_MEDIA_BREAK"]}};
KVa=function(a){a.B=Date.now();D1(a,a.Sl);a.timer.start()};
D1=function(a,b){b={current:b/1E3,duration:a.Qv()/1E3};a.md.get().Pa("onAdPlaybackProgress",b)};
E1=function(a,b,c,d,e,f,h,l,m,n,p,q,u,w,y,A,B,D,G,H){y1.call(this,a,b,c,d,e,m,p,u,w,A,B,D,G,H);var L=this;this.Be=f;this.xe=h;this.Ua=l;this.Yb=n;this.md=q;this.wf=y;this.adCpn="";this.I=new g.Xn(function(){L.Kz("load_timeout",new WZ("Media layout load timeout.",{},!0))},1E4)};
LVa=function(){for(var a=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"],b=g.r($0()),c=b.next();!c.done;c=b.next())a.push(c.value);return{ue:a,Ef:["LAYOUT_TYPE_MEDIA"]}};
F1=function(a,b,c,d,e,f,h){p1.call(this,a,b,c,d,f,h);this.j=e};
NVa=function(a,b,c,d,e,f,h,l,m,n,p,q,u,w,y,A,B,D,G){if(X0(d,{ue:["metadata_type_sub_layouts"],Ef:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})){var H=vY(d.Ea,"metadata_type_sub_layouts");a=new q1(a,n,q,w,b,c,d,f,e,G);e=[];for(b={Yq:0};b.Yq<H.length;b={Yq:b.Yq},b.Yq++){var L=MVa({Rc:a.R2.bind(a),pd:a.T2.bind(a),og:a.S2.bind(a)},c,H[b.Yq],h,l,m,n,p,q,u,w,y,A,B,D,function(N){return function(K){K.eg(H[N.Yq],"normal")}}(b),b.Yq,H.length,G);
if(!L)return;e.push(L)}a.u=e;return a}if(X0(d,{ue:[],Ef:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]}))return(c=MVa({Rc:a.Rc.bind(a),pd:a.pd.bind(a),og:a.og.bind(a)},c,d,h,l,m,n,p,q,u,w,y,A,B,D,function(){u1(f,d.layoutId)},0,1,G))?new F1(a,n,q,w,c,e,G):c};
MVa=function(a,b,c,d,e,f,h,l,m,n,p,q,u,w,y,A,B,D,G){if(X0(c,JVa()))return new C1(a,b,c,d,e,m,p,q,u,w,function(){},A,B,D,G);
if(X0(c,LVa()))return Yz(c.Ea,"metadata_type_ad_intro")?new E1(a,b,c,d,e,f,h,l,m,n,p,q,u,w,y,function(H){q.get().Pa("onAdIntroStateChange",H)},A,B,D,G):new E1(a,b,c,d,e,f,h,l,m,n,p,q,u,w,y,function(H){q.get().zk(H)},A,B,D,G)};
G1=function(a,b,c,d,e,f,h,l,m,n,p,q,u,w,y){this.mf=a;this.j=b;this.Ta=c;this.Ib=d;this.Be=e;this.xe=f;this.Ua=h;this.Ga=l;this.Yb=m;this.Sd=n;this.md=p;this.lf=q;this.Mb=u;this.wf=w;this.Ha=y};
H1=function(a,b,c,d,e,f,h,l){g.J.call(this);var m=this;this.Ub=a;this.Fb=b;this.Oe=d;this.Ga=e;this.Ha=f;this.Ta=h;this.Je=l;this.j=null;c.get().addListener(this);g.$e(this,function(){c.get().removeListener(m)});
d.get().addListener(this);g.$e(this,function(){d.get().removeListener(m)})};
HUa=function(a,b){if(a.j)cA("Unexpected multiple fetch instructions for the current content");else{a.j=b;b=g.r(a.Oe.get().OE);for(var c=b.next();!c.done;c=b.next())OVa(a,a.j,c.value)}};
OVa=function(a,b,c){var d=a.Ga.get().getCurrentTimeSec(1,!1);a.Ha.get().G.V().experiments.jb("html5_ssdai_log_ad_transition_info")&&a.Ta.get().Uh("sdai","onopp.1;evt."+c.event+";start."+c.startSecs.toFixed(3)+";d."+c.durationSecs.toFixed(3));Xz(a.Ub.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var e=a.Fb.get(),f=v0(a.Ha.get());var h=1E3*c.startSecs;h={xn:new yo(h,h+1E3*c.durationSecs),dE:!1};var l=c.startSecs+c.durationSecs;if(c.startSecs<=d)f=new yo(1E3*(c.startSecs-4),1E3*l);else{var m=
Math.max(0,c.startSecs-d-10);f=new yo(1E3*Math.floor(d+Math.random()*(f?0===d?0:Math.min(m,5):m)),1E3*l)}h.Jv=f;return[uTa(e,b.adPlacementRenderer.renderer.adBreakServiceRenderer,b.contentCpn,h,b.adPlacementRenderer.adSlotLoggingData,[new sZ(c)])]})};
I1=function(a,b,c,d,e,f,h,l,m){g.J.call(this);this.j=a;this.B=b;this.u=c;this.Ub=d;this.Fb=e;this.zb=f;this.Hb=h;this.Ha=l;this.Ua=m;this.sj=!0};
PVa=function(a,b,c){return TUa(a.Fb.get(),b.contentCpn,b.hx,function(d){return MUa(a.zb.get(),d.slotId,c,b.adPlacementConfig,b.hx,BY(a.Hb.get(),d))})};
J1=function(a){var b,c=null==(b=vY(a.Ea,"metadata_type_player_bytes_callback_ref"))?void 0:b.current;if(!c)return null;b=vY(a.Ea,"metadata_type_ad_pod_skip_target_callback_ref");var d=a.layoutId,e=vY(a.Ea,"metadata_type_content_cpn"),f=vY(a.Ea,"metadata_type_instream_ad_player_overlay_renderer"),h=vY(a.Ea,"metadata_type_player_underlay_renderer"),l=vY(a.Ea,"metadata_type_ad_placement_config"),m=vY(a.Ea,"metadata_type_video_length_seconds");var n=Yz(a.Ea,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?
vY(a.Ea,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):Yz(a.Ea,"metadata_type_layout_enter_ms")&&Yz(a.Ea,"metadata_type_layout_exit_ms")?(vY(a.Ea,"metadata_type_layout_exit_ms")-vY(a.Ea,"metadata_type_layout_enter_ms"))/1E3:void 0;return{hx:d,contentCpn:e,IR:c,LN:b,instreamAdPlayerOverlayRenderer:f,instreamAdPlayerUnderlayRenderer:h,adPlacementConfig:l,videoLengthSeconds:m,dJ:n,tI:vY(a.Ea,"metadata_type_linked_in_player_layout_id"),JP:vY(a.Ea,"metadata_type_linked_in_player_slot_id")}};
RVa=function(a,b){return QVa(a,b)};
SVa=function(a,b){b=QVa(a,b);if(!b)return null;var c;b.dJ=null==(c=vY(a.Ea,"metadata_type_ad_pod_info"))?void 0:c.adBreakRemainingLengthSeconds;return b};
QVa=function(a,b){var c,d=null==(c=vY(a.Ea,"metadata_type_player_bytes_callback_ref"))?void 0:c.current;if(!d)return null;Yz(a.Ea,"metadata_ad_video_is_listed")?c=vY(a.Ea,"metadata_ad_video_is_listed"):b?c=b.isListed:(cA("No layout metadata nor AdPlayback specified for ad video isListed"),c=!1);Yz(a.Ea,"metadata_type_ad_info_ad_metadata")?b=vY(a.Ea,"metadata_type_ad_info_ad_metadata"):b?b={channelId:b.Kk,channelThumbnailUrl:b.profilePicture,channelTitle:b.author,videoTitle:b.title}:(cA("No layout metadata nor AdPlayback specified for AdMetaData"),
b={channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""});return{jX:b,adPlacementConfig:vY(a.Ea,"metadata_type_ad_placement_config"),lX:c,contentCpn:vY(a.Ea,"metadata_type_content_cpn"),tI:vY(a.Ea,"metadata_type_linked_in_player_layout_id"),JP:vY(a.Ea,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:vY(a.Ea,"metadata_type_instream_ad_player_overlay_renderer"),instreamAdPlayerUnderlayRenderer:void 0,dJ:void 0,IR:d,hx:a.layoutId,videoLengthSeconds:vY(a.Ea,"metadata_type_video_length_seconds")}};
TVa=function(a,b){this.callback=a;this.slot=b};
K1=function(){};
UVa=function(a,b,c){this.callback=a;this.slot=b;this.Ga=c};
VVa=function(a,b,c){this.callback=a;this.slot=b;this.Ga=c;this.u=!1;this.j=0};
WVa=function(a,b,c){this.callback=a;this.slot=b;this.Ga=c};
L1=function(a){this.Ga=a};
M1=function(a,b,c,d){this.category=a;this.trigger=b;this.slot=c;this.layout=d};
N1=function(a){g.J.call(this);this.sF=a;this.Ob=new Map};
XVa=function(a,b){for(var c=[],d=g.r(a.Ob.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f instanceof z_&&f.If===b&&c.push(e)}c.length?c_(a.sF(),c):cA("Survey is submitted but no registered triggers can be activated.")};
O1=function(a,b){N1.call(this,a);var c=this;b.get().addListener(this);g.$e(this,function(){b.get().removeListener(c)})};
P1=function(a){g.J.call(this);this.j=a;this.sj=!0;this.Ob=new Map;this.D=new Set;this.B=new Set;this.C=new Set;this.I=new Set;this.u=new Set};
Q1=function(a,b){g.J.call(this);var c=this;this.j=a;this.Ob=new Map;b.get().addListener(this);g.$e(this,function(){b.get().removeListener(c)})};
YVa=function(a,b,c,d){var e=[];a=g.r(a.values());for(var f=a.next();!f.done;f=a.next())if(f=f.value,f.trigger instanceof B_){var h=f.trigger.j===b;h===c?e.push(f):d&&h&&(cA("Firing OnNewPlaybackAfterContentVideoIdTrigger from presumed cached playback CPN match.",void 0,void 0,{cpn:b}),e.push(f))}return e};
R1=function(a){return a instanceof W_||a instanceof Y_||a instanceof X_};
S1=function(a,b,c,d){g.J.call(this);var e=this;this.u=a;this.Yb=b;this.Ga=c;this.Ua=d;this.sj=!0;this.Ob=new Map;this.j=new Set;c.get().addListener(this);g.$e(this,function(){c.get().removeListener(e)})};
T1=function(a,b,c,d,e,f,h,l,m,n){if(a.Ua.get().Sf(1).clientPlaybackNonce!==m)throw new zA("Cannot register CueRange-based trigger for different content CPN",{trigger:c});a.Ob.set(c.triggerId,{bundle:new M1(b,c,d,e),Zr:f});a.Yb.get().addCueRange(f,h,l,n,a)};
ZVa=function(a,b){a=g.r(a.Ob.entries());for(var c=a.next();!c.done;c=a.next()){var d=g.r(c.value);c=d.next().value;d=d.next().value;if(b===d.Zr)return c}return""};
U1=function(a){g.J.call(this);this.B=a;this.sj=!0;this.Ob=new Map;this.u=this.j=null};
u1=function(a,b){for(var c=[],d=g.r(a.Ob.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof C_){var f;if(f=e.trigger.layoutId===b)f=(f=gTa.get(e.category))?"normal"===f:!1;f&&c.push(e)}c.length&&c_(a.B(),c)};
V1=function(a){g.J.call(this);this.j=a;this.sj=!0;this.Ob=new Map};
W1=function(a,b,c){g.J.call(this);this.j=a;this.jn=b;this.Za=c;this.jn.get().addListener(this)};
X1=function(a,b,c,d,e,f){g.J.call(this);this.B=a;this.He=b;this.Hb=c;this.Ua=d;this.Za=e;this.Ha=f;this.j=this.u=null;this.C=!1;this.He.get().addListener(this)};
KCa=function(a,b,c,d,e){var f=fA(a.Za.get(),"SLOT_TYPE_PLAYER_BYTES");a.u={slotId:f,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Pb:void 0,dc:[],kc:[],fb:"surface",Ea:new uY([])};a.j={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",Vb:new Map,Pd:[],hd:[],Yc:[],jd:[],od:[],fb:"surface",Ea:new uY(c),Ec:zY(AY(a.Hb.get()),f,"SLOT_TYPE_PLAYER_BYTES",1,"surface",void 0,[],[],b,"LAYOUT_TYPE_MEDIA","surface"),adLayoutLoggingData:e};$Z(a.B(),a.u,a.j);d&&(a_(a.B(),a.u,a.j),a.C=!0,b_(a.B(),a.u,a.j))};
Y1=function(a){this.Er=a};
$Va=function(a,b){if(!a)return{Qn:[],ex:!0,ssdaiAdsConfig:void 0};a.trackingParams&&uDa(nK(),a.trackingParams);if(a.adThrottled)return{Qn:[],ex:!0,ssdaiAdsConfig:void 0};var c=a.playerAds;if(!c||!c.length)return{Qn:[],ex:!1,ssdaiAdsConfig:void 0};c=c.map(function(e){return e.adPlacementRenderer}).filter(function(e){return!(!e||!e.renderer)});
if(!c.length)return{Qn:[],ex:!1,ssdaiAdsConfig:void 0};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{Qn:c,
ex:!1,ssdaiAdsConfig:a.ssdaiAdsConfig}};
Z1=function(a){g.J.call(this);this.G=a;this.listeners=[];this.j=new Yy(this);g.M(this,this.j);this.j.T(this.G,"aduxclicked",this.onAdUxClicked);this.j.T(this.G,"aduxmouseover",this.tJ);this.j.T(this.G,"aduxmouseout",this.sJ);this.j.T(this.G,"muteadaccepted",this.q0)};
aWa=function(a,b,c){b=g.Ok(b,function(d){return new wA(d,c,d.id)});
a.G.Pa("onAdUxUpdate",b)};
$1=function(a,b){a=g.r(a.listeners);for(var c=a.next();!c.done;c=a.next())b(c.value)};
a2=function(a,b,c){g.J.call(this);this.G=a;this.Ha=b;this.Ta=c;this.listeners=[];this.B=!1;this.OE=[];this.C=new MJ(this,cVa(b.get()));this.u=new NJ;this.j=null};
cWa=function(a,b){G0(a.Ta.get(),{cuepointTrigger:{event:bWa(b.event),cuepointId:b.identifier,totalCueDurationMs:1E3*b.durationSecs,playheadTimeMs:b.j,cueStartTimeMs:1E3*b.startSecs,cuepointReceivedTimeMs:Date.now(),contentCpn:a.G.getVideoData(1).clientPlaybackNonce}})};
bWa=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");}};
b2=function(a){this.G=a};
c2=function(a){this.G=a};
d2=function(){this.listeners=[]};
dWa=function(a){this.G=a};
eWa=function(a,b,c,d,e,f){this.callback=a;this.slot=b;this.layout=c;this.Ga=d;this.Ta=e;this.Ha=f;a=vY(c.Ea,"metadata_type_ad_placement_config");this.j=new Z0(c.Vb,this.Ta,a,c.layoutId)};
fWa=function(a,b,c){this.Ga=a;this.Ta=b;this.Ha=c};
e2=function(a,b,c,d,e,f,h,l,m,n){this.callback=a;this.slot=b;this.layout=c;this.Ua=d;this.Je=e;this.Oe=f;this.Ga=h;this.j=l;this.Ta=m;this.D=n;this.driftRecoveryMs=vY(this.layout.Ea,"metadata_type_drift_recovery_ms")||null};
gWa=function(a){var b=vY(a.layout.Ea,"metadata_type_layout_enter_ms"),c=vY(a.layout.Ea,"metadata_type_layout_exit_ms");a=a.Oe.get();b=OJ(a.u,b,c);return Math.min(c,null!==b?b:Infinity)};
f2=function(a,b){var c;G0(a.Ta.get(),{driftRecoveryInfo:Object.assign({},{contentCpn:null==(c=a.Ua.get().gs)?void 0:c.clientPlaybackNonce,adClientData:a.layout.Ec.adClientDataEntry},b)})};
g2=function(a,b,c,d,e,f,h,l,m,n,p){e2.call(this,a,b,c,d,e,f,h,l,m,n);this.C=p;this.B=this.u=null;a=g.r(this.C);for(b=a.next();!b.done;b=a.next())b=b.value,Yz(b.Db().Ea,"metadata_type_survey_overlay")&&(this.B=b.Db().layoutId)};
iWa=function(a,b){var c=hWa(a,b);a.u={Vj:c};c?c.startRendering(c.Db()):b===a.B&&cA("Failed to find rendering adapter for survey media layout",a.slot,a.layout,{surveyMediaLayoutId:b})};
hWa=function(a,b){return null==b?null:a.C.find(function(c){return c.Db().layoutId===b})||null};
jWa=function(a,b,c,d,e,f,h,l,m,n){var p=e-d,q=Yz(b.Ea,"metadata_type_survey_overlay"),u,w=(null==(u=vY(a.Ea,"metadata_type_fulfilled_layout"))?void 0:vY(u.Ea,"metadata_type_ssdai_ads_config"))||"";if(!p)return h.oz(c,w,2,f,d,e,a.slotId),n.Uh("ads_iraot","sid."+a.slotId+";enterMs."+d+";exitMs."+e+";hso."+q+";vid."+c.video_id),null;p=h.ov(c,w,2,f,d,e,a.slotId);n.Uh("ads_atct","sid."+a.slotId+";enterMs."+d+";exitMs."+e+";hso."+q+";vid."+c.video_id);if(!p)return cA("Unexpected failure to add to playback timeline",
a,b,m()),null;a=a.slotId;b=b.layoutId;p?(l.j.has(p)&&cA("Unexpected remap of timeline playback"),l.j.set(p,{slotId:a,layoutId:b})):cA("Invalid timeline playback ID");d+f>e&&h.lx(p,e-d);return p};
kWa=function(a,b){var c=vY(b.Ea,"metadata_type_sodar_extension_data");if(c)try{pVa(0,c)}catch(d){cA("Unexpected error when loading Sodar",a,b,{error:d})}};
lWa=function(a,b,c,d,e,f){h2(a,b,new g.qJ(c,new g.YJ),d,e,!1,f)};
h2=function(a,b,c,d,e,f,h){f=void 0===f?!0:f;v1(c)&&w1(e,0,null)&&(!e1(a,"impression")&&h&&h(),b1(a,"impression"));e1(a,"impression")&&(g.sJ(c,4)&&!g.sJ(c,2)&&a.Rf("pause"),0>rJ(c,4)&&!(0>rJ(c,2))&&a.Rf("resume"),g.sJ(c,16)&&.5<=e&&a.Rf("seek"),f&&g.sJ(c,2)&&i2(a,c.state,b,d,e))};
i2=function(a,b,c,d,e,f){if(e1(a,"impression")){var h=1>=Math.abs(d-e);j2(a,b,h?d:e,c,d,f);h&&b1(a,"complete")}};
j2=function(a,b,c,d,e,f){d1(a,1E3*c);0>=e||0>=c||(null==b?0:g.V(b,16))||(null==b?0:g.V(b,32))||(w1(c,.25*e,d)&&(f&&!e1(a,"first_quartile")&&f("first"),b1(a,"first_quartile")),w1(c,.5*e,d)&&(f&&!e1(a,"midpoint")&&f("second"),b1(a,"midpoint")),w1(c,.75*e,d)&&(f&&!e1(a,"third_quartile")&&f("third"),b1(a,"third_quartile")))};
mWa=function(a,b){e1(a,"impression")&&a.Rf(b?"fullscreen":"end_fullscreen")};
nWa=function(a){e1(a,"impression")&&a.Rf("clickthrough")};
oWa=function(a){a.Rf("active_view_measurable")};
pWa=function(a){e1(a,"impression")&&!e1(a,"seek")&&a.Rf("active_view_fully_viewable_audible_half_duration")};
qWa=function(a){e1(a,"impression")&&!e1(a,"seek")&&a.Rf("active_view_viewable")};
rWa=function(a){e1(a,"impression")&&!e1(a,"seek")&&a.Rf("audio_audible")};
sWa=function(a){e1(a,"impression")&&!e1(a,"seek")&&a.Rf("audio_measurable")};
tWa=function(a,b,c,d,e,f,h,l,m,n,p,q){this.callback=a;this.slot=b;this.layout=c;this.Je=d;this.j=e;this.Ga=f;this.Fd=h;this.Ib=l;this.Be=m;this.Ha=n;this.Ta=p;this.Ua=q;this.eD=!0;this.Hc=this.u=null};
uWa=function(a,b,c){var d;a.Ta.get().Uh("ads_qua","cpn."+vY(a.layout.Ea,"metadata_type_content_cpn")+";acpn."+(null==(d=a.Ua.get().Sf(2))?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)};
vWa=function(a,b){var c,d,e;a.Ta.get().Uh("ads_imp","cpn."+vY(a.layout.Ea,"metadata_type_content_cpn")+";acpn."+(null==(c=a.Ua.get().Sf(2))?void 0:c.clientPlaybackNonce)+";clr."+b+";skp."+!!(null==(d=vY(a.layout.Ea,"metadata_type_instream_ad_player_overlay_renderer"))?0:null==(e=d.skipOrPreviewRenderer)?0:e.skipAdRenderer))};
k2=function(a){return{enterMs:vY(a.Ea,"metadata_type_layout_enter_ms"),exitMs:vY(a.Ea,"metadata_type_layout_exit_ms")}};
l2=function(a,b,c,d,e,f,h,l,m,n,p,q,u,w){e2.call(this,a,b,c,d,e,h,l,m,n,q);this.Fd=f;this.Be=p;this.Ib=u;this.Ha=w;this.Hc=this.u=null};
wWa=function(a,b){var c;a.Ta.get().Uh("ads_imp","acpn."+(null==(c=a.Ua.get().Sf(2))?void 0:c.clientPlaybackNonce)+";clr."+b)};
xWa=function(a,b,c){var d;a.Ta.get().Uh("ads_qua","cpn."+vY(a.layout.Ea,"metadata_type_content_cpn")+";acpn."+(null==(d=a.Ua.get().Sf(2))?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)};
m2=function(a,b,c,d,e,f,h,l,m,n,p,q,u,w,y,A,B,D,G){this.mf=a;this.u=b;this.Ua=c;this.Je=d;this.Ga=e;this.Ta=f;this.Fd=h;this.Oe=l;this.Ib=m;this.Be=n;this.xe=p;this.Yb=q;this.Sd=u;this.md=w;this.lf=y;this.Mb=A;this.wf=B;this.Ha=D;this.j=G};
n2=function(a){g.J.call(this);this.j=a;this.Ob=new Map};
o2=function(a,b){for(var c=[],d=g.r(a.Ob.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger.j===b.layoutId&&c.push(e);c.length&&c_(a.j(),c)};
p2=function(a,b){g.J.call(this);var c=this;this.C=a;this.u=new Map;this.B=new Map;this.j=null;b.get().addListener(this);g.$e(this,function(){b.get().removeListener(c)});
var d;this.j=(null==(d=b.get().gs)?void 0:d.slotId)||null};
yWa=function(a,b){var c=[];a=g.r(a.values());for(var d=a.next();!d.done;d=a.next())d=d.value,d.slot.slotId===b&&c.push(d);return c};
zWa=function(a){this.G=a};
AWa=function(a,b,c,d,e){EI.call(this,"image-companion",a,b,c,d,e)};
BWa=function(a,b,c,d,e,f,h,l){h1.call(this,a,b,c,d);this.Ta=e;this.mf=f;this.J=l;this.sj=!0;this.C=null;this.D=vY(c.Ea,"metadata_type_linked_player_bytes_layout_id");this.mf().Rd.add(this);a=vY(c.Ea,"metadata_type_ad_placement_config");this.I=new Z0(c.Vb,this.Ta,a,c.layoutId)};
CWa=function(){var a=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];$0().forEach(function(b){a.push(b)});
return{ue:a,Ef:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
DWa=function(a,b,c,d,e){EI.call(this,"shopping-companion",a,b,c,d,e)};
EWa=function(a,b,c,d,e,f,h,l){h1.call(this,a,b,c,d);this.Ta=e;this.mf=f;this.J=l;this.sj=!0;this.C=null;this.D=vY(c.Ea,"metadata_type_linked_player_bytes_layout_id");this.mf().Rd.add(this);a=vY(c.Ea,"metadata_type_ad_placement_config");this.I=new Z0(c.Vb,this.Ta,a,c.layoutId)};
FWa=function(){var a=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];$0().forEach(function(b){a.push(b)});
return{ue:a,Ef:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}};
GWa=function(a,b,c,d,e){EI.call(this,"ads-engagement-panel",a,b,c,d,e)};
HWa=function(a,b,c,d,e,f,h,l){h1.call(this,a,b,c,d);this.Ta=e;this.mf=f;this.J=l;this.sj=!0;this.C=null;this.D=vY(c.Ea,"metadata_type_linked_player_bytes_layout_id");this.mf().Rd.add(this);a=vY(c.Ea,"metadata_type_ad_placement_config");this.I=new Z0(c.Vb,this.Ta,a,c.layoutId)};
IWa=function(){var a=["metadata_type_ads_engagement_panel_renderer","metadata_type_linked_player_bytes_layout_id"];$0().forEach(function(b){a.push(b)});
return{ue:a,Ef:["LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON"]}};
JWa=function(a,b,c,d,e){this.jc=a;this.Ta=b;this.mf=c;this.j=d;this.Ib=e};
KWa=function(a,b,c){EI.call(this,"player-underlay",a,{},b,c);this.j=c};
q2=function(a,b,c,d){h1.call(this,a,b,c,d)};
LWa=function(a){this.jc=a};
MWa=function(a,b,c,d){EI.call(this,"survey-interstitial",a,b,c,d)};
r2=function(a,b,c,d,e){h1.call(this,c,a,b,d);this.Ta=e;a=vY(b.Ea,"metadata_type_ad_placement_config");this.C=new Z0(b.Vb,e,a,b.layoutId)};
s2=function(a){return Math.round(a.width)+"x"+Math.round(a.height)};
OWa=function(a,b,c){c=void 0===c?NWa:c;c.width<NWa.width&&(c=NWa);if(a.width<c.width||a.height<c.height)return{WE:3,UA:501,errorMessage:"ad("+s2(c)+") larger than container("+s2(a)+")."};if(c.width*c.height>a.width*a.height*.2)return{WE:3,UA:501,errorMessage:"ad("+s2(c)+") to container("+s2(a)+") ratio exceeds limit."};if(c.height>a.height/3-b)return{WE:3,UA:501,errorMessage:"ad("+s2(c)+") covers container("+s2(a)+") center."}};
PWa=function(a,b){var c=vY(a.Ea,"metadata_type_ad_placement_config");return new Z0(a.Vb,b,c,a.layoutId)};
t2=function(a){return vY(a.Ea,"metadata_type_invideo_overlay_ad_renderer")};
QWa=function(a,b,c,d){EI.call(this,"invideo-overlay",a,b,c,d);this.j=d};
u2=function(a,b,c,d,e,f,h,l,m,n,p,q){h1.call(this,f,a,b,e);this.Ta=c;this.C=h;this.Ga=l;this.Mb=m;this.Ha=n;this.I=p;this.D=q;this.S=PWa(b,c)};
RWa=function(){var a=["metadata_type_invideo_overlay_ad_renderer"];$0().forEach(function(b){a.push(b)});
return{ue:a,Ef:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}};
v2=function(a,b,c,d,e,f,h,l,m,n,p,q,u){h1.call(this,f,a,b,e);this.Ta=c;this.C=h;this.S=l;this.Ga=m;this.Mb=n;this.Ha=p;this.I=q;this.D=u;this.Z=PWa(b,c)};
SWa=function(){for(var a=["metadata_type_invideo_overlay_ad_renderer"],b=g.r($0()),c=b.next();!c.done;c=b.next())a.push(c.value);return{ue:a,Ef:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}};
w2=function(a){this.Ga=a;this.j=!1};
TWa=function(a,b,c,d,e,f){h1.call(this,c,a,b,d);this.Ga=e;this.Ha=f};
UWa=function(a,b,c){EI.call(this,"survey",a,{},b,c)};
VWa=function(a,b,c,d,e,f,h){h1.call(this,c,a,b,d);this.C=e;this.Ga=f;this.Ha=h};
WWa=function(a,b,c,d,e,f,h,l,m,n){this.jc=a;this.Ga=b;this.Ta=c;this.C=d;this.Ib=e;this.u=f;this.B=h;this.Mb=l;this.Ha=m;this.j=n};
x2=function(a){g.J.call(this);this.B=a;this.sj=!0;this.Ob=new Map;this.j=new Map;this.u=new Map};
XWa=function(a,b){var c=[];if(b=a.j.get(b.layoutId)){b=g.r(b);for(var d=b.next();!d.done;d=b.next())(d=a.u.get(d.value.triggerId))&&c.push(d)}return c};
YWa=function(a,b,c,d,e){g.J.call(this);var f=this;this.Za=Y(function(){return new eA});
g.M(this,this.Za);this.zb=Y(function(){return new Z_(f.Za)});
g.M(this,this.zb);this.Gc=Y(function(){return new S_});
g.M(this,this.Gc);this.Ub=Y(function(){return new O_(a)});
g.M(this,this.Ub);this.Fb=Y(function(){return new l0(f.Za,f.zb,f.Ha)});
g.M(this,this.Fb);this.Fd=Y(function(){return new q0});
g.M(this,this.Fd);this.lf=Y(function(){return new FI(b.V())});
g.M(this,this.lf);this.jc=Y(function(){return new Z1(b)});
g.M(this,this.jc);this.Mb=Y(function(){return new o_(e)});
g.M(this,this.Mb);this.Sd=Y(function(){return new RJ(b)});
g.M(this,this.Sd);this.Yb=Y(function(){return new s0(b)});
g.M(this,this.Yb);this.xe=Y(function(){return new b2(b)});
g.M(this,this.xe);this.md=Y(function(){return new t0(b)});
g.M(this,this.md);this.Ha=Y(function(){return new u0(b)});
g.M(this,this.Ha);this.Ve=Y(function(){return new Y1(d)});
g.M(this,this.Ve);this.Hb=Y(function(){return new CY(f.Ha)});
g.M(this,this.Hb);this.Md=Y(function(){return new L_(f.Za,f.Fb,f.zb,f.Ha,f.Hb,"SLOT_TYPE_ABOVE_FEED",f.Di)});
g.M(this,this.Md);this.wf=Y(function(){return new c2(b)});
g.M(this,this.wf);this.He=Y(function(){return new d2});
g.M(this,this.He);this.jn=Y(function(){return new O0});
g.M(this,this.jn);this.Ua=Y(function(){return new J0(b,f.Fd,f.Ha)});
g.M(this,this.Ua);this.pc=new p0(this.Ha,this.Hb,this.Ua);g.M(this,this.pc);this.Oe=Y(function(){return new a2(b,f.Ha,f.Ta)});
g.M(this,this.Oe);this.Je=Y(function(){return new zWa(b)});
g.M(this,this.Je);this.Ga=Y(function(){return new K0(b,f.Ua,f.Ha)});
g.M(this,this.Ga);this.Be=Y(function(){return new P0});
this.Ib=Y(function(){return new x0(f.Ga,b)});
g.M(this,this.Ib);this.Ta=Y(function(){return new C0(b,f.Gc,f.Ib,f.Ua)});
g.M(this,this.Ta);this.fh=new I1(J1,y2,function(l,m,n,p){return $_(f.zb.get(),l,m,n,p)},this.Ub,this.Fb,this.zb,this.Hb,this.Ha,this.Ua);
g.M(this,this.fh);this.Kc=new dA(this.Ub,this.Md,c,this.Ha,a,this.Ua,this.Ga);g.M(this,this.Kc);var h=new r0(b,this.Kc,this.Ga,this.Ua,this.Oe);this.Bf=Y(function(){return h});
this.Aq=h;this.Di=new H1(this.Ub,this.Fb,this.Bf,this.Oe,this.Ga,this.Ha,this.Ta,this.Je);g.M(this,this.Di);this.Me=new R_(this.Ub,this.Fb,this.Yb,this.Bf);g.M(this,this.Me);this.Mc=new Wz(this.Ub,this.Fb,this.Md,this.Ua,this.Me,c);g.M(this,this.Mc);this.Rg=Y(function(){return new V0(f.Ve,f.zb,f.Hb,f.Ha,f.Je)});
g.M(this,this.Rg);this.Ad=Y(function(){return new W0});
g.M(this,this.Ad);this.We=new O1(a,this.jc);g.M(this,this.We);this.Ab=new P1(a);g.M(this,this.Ab);this.Tr=new n2(a);g.M(this,this.Tr);this.nf=new Q1(a,this.Bf);g.M(this,this.nf);this.ke=new S1(a,this.Yb,this.Ga,this.Ua);g.M(this,this.ke);this.Us=new p2(a,this.Ua);g.M(this,this.Us);this.kd=new U1(a);g.M(this,this.kd);this.ah=new V1(a);g.M(this,this.ah);this.Tt=new x2(a);g.M(this,this.Tt);this.zd=Y(function(){return new K1});
g.M(this,this.zd);this.gh=Y(function(){return new L1(f.Ga)});
g.M(this,this.gh);this.IN=Y(function(){return new JWa(f.jc,f.Ta,a,f.Gc,f.Ib)});
g.M(this,this.IN);this.Qg=Y(function(){return new Y0(f.Mc)});
g.M(this,this.Qg);this.Wg=Y(function(){return new f1(f.Ta,f.kd,f.Ib)});
g.M(this,this.Wg);this.eh=Y(function(){return new m2(a,f.kd,f.Ua,f.Je,f.Ga,f.Ta,f.Fd,f.Oe,f.Ib,f.Be,f.xe,f.Yb,f.Sd,f.md,f.lf,f.Mb,f.wf,f.Ha,f.Gc)});
g.M(this,this.eh);this.HR=Y(function(){return new fWa(f.Ga,f.Ta,f.Ha)});
g.M(this,this.HR);this.wl=Y(function(){return new WWa(f.jc,f.Ga,f.Ta,f.Gc,f.Ib,f.Tr,f.Tt,f.Mb,f.Ha,c)});
g.M(this,this.wl);this.lT=Y(function(){return new LWa(f.jc)});
g.M(this,this.lT);this.vG=new W1(a,this.jn,this.Za);g.M(this,this.vG);this.Fl=new X1(a,this.He,this.Hb,this.Ua,this.Za,this.Ha);g.M(this,this.Fl);this.Ke={qt:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Mc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Di],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.fh],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Kc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Me]]),ao:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.Rg],["SLOT_TYPE_ABOVE_FEED",this.Ad],["SLOT_TYPE_FORECASTING",this.Ad],["SLOT_TYPE_IN_PLAYER",this.Ad],["SLOT_TYPE_PLAYER_BYTES",this.Ad],["SLOT_TYPE_PLAYER_UNDERLAY",this.Ad],["SLOT_TYPE_PLAYBACK_TRACKING",this.Ad]]),Ij:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.We],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.We],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Ab],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Ab],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Ab],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Ab],
["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Ab],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Ab],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Ab],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Ab],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Ab],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.Ab],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Ab],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Tr],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.nf],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",
this.ke],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.ke],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.ke],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.ke],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.ke],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.ke],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.ke],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Us],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Us],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",
this.kd],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.kd],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.nf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.ah],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.Tt]]),Yo:new Map([["SLOT_TYPE_ABOVE_FEED",this.zd],["SLOT_TYPE_AD_BREAK_REQUEST",this.zd],["SLOT_TYPE_FORECASTING",this.zd],["SLOT_TYPE_IN_PLAYER",this.zd],["SLOT_TYPE_PLAYER_BYTES",this.gh],["SLOT_TYPE_PLAYER_UNDERLAY",this.zd],["SLOT_TYPE_PLAYBACK_TRACKING",this.zd]]),
Ho:new Map([["SLOT_TYPE_ABOVE_FEED",this.IN],["SLOT_TYPE_AD_BREAK_REQUEST",this.Qg],["SLOT_TYPE_FORECASTING",this.Wg],["SLOT_TYPE_PLAYER_BYTES",this.eh],["SLOT_TYPE_PLAYBACK_TRACKING",this.HR],["SLOT_TYPE_IN_PLAYER",this.wl],["SLOT_TYPE_PLAYER_UNDERLAY",this.lT]])};this.listeners=[this.Gc.get()];this.Ss={Mc:this.Mc,tm:this.kd,Jo:this.He.get(),wh:this.Ha.get(),bb:this.Mb.get(),Iq:this.Ga.get(),Kc:this.Kc,vl:this.Za.get(),Io:this.jn.get(),pk:this.We,Oi:this.Gc.get(),El:this.Ua.get()}};
ZWa=function(a,b,c,d,e,f,h,l,m,n){this.jc=a;this.Ga=b;this.Ta=c;this.C=d;this.Ib=e;this.u=f;this.B=h;this.Mb=l;this.Ha=m;this.j=n};
$Wa=function(a,b,c,d,e){g.J.call(this);var f=this;this.Za=Y(function(){return new eA});
g.M(this,this.Za);this.zb=Y(function(){return new Z_(f.Za)});
g.M(this,this.zb);this.Gc=Y(function(){return new S_});
g.M(this,this.Gc);this.Ub=Y(function(){return new O_(a)});
g.M(this,this.Ub);this.Fb=Y(function(){return new l0(f.Za,f.zb,f.Ha)});
g.M(this,this.Fb);this.Fd=Y(function(){return new q0});
g.M(this,this.Fd);this.lf=Y(function(){return new FI(b.V())});
g.M(this,this.lf);this.jc=Y(function(){return new Z1(b)});
g.M(this,this.jc);this.Mb=Y(function(){return new o_(e)});
g.M(this,this.Mb);this.Sd=Y(function(){return new RJ(b)});
g.M(this,this.Sd);this.Yb=Y(function(){return new s0(b)});
g.M(this,this.Yb);this.xe=Y(function(){return new b2(b)});
g.M(this,this.xe);this.md=Y(function(){return new t0(b)});
g.M(this,this.md);this.Ha=Y(function(){return new u0(b)});
g.M(this,this.Ha);this.Ve=Y(function(){return new Y1(d)});
g.M(this,this.Ve);this.Hb=Y(function(){return new CY(f.Ha)});
g.M(this,this.Hb);this.Md=Y(function(){return new L_(f.Za,f.Fb,f.zb,f.Ha,f.Hb,null,f.Di)});
g.M(this,this.Md);this.wf=Y(function(){return new c2(b)});
g.M(this,this.wf);this.He=Y(function(){return new d2});
g.M(this,this.He);this.jn=Y(function(){return new O0});
g.M(this,this.jn);this.Ua=Y(function(){return new J0(b,f.Fd,f.Ha)});
g.M(this,this.Ua);this.pc=new p0(this.Ha,this.Hb,this.Ua);g.M(this,this.pc);this.Oe=Y(function(){return new a2(b,f.Ha,f.Ta)});
this.Ga=Y(function(){return new K0(b,f.Ua,f.Ha)});
g.M(this,this.Ga);this.Ib=Y(function(){return new x0(f.Ga,b)});
g.M(this,this.Ib);this.Ta=Y(function(){return new C0(b,f.Gc,f.Ib,f.Ua)});
g.M(this,this.Ta);this.Be=Y(function(){return new P0});
g.M(this,this.Be);this.fh=new I1(J1,y2,function(l,m,n,p){return $_(f.zb.get(),l,m,n,p)},this.Ub,this.Fb,this.zb,this.Hb,this.Ha,this.Ua);
g.M(this,this.fh);this.Kc=new dA(this.Ub,this.Md,c,this.Ha,a,this.Ua,this.Ga);g.M(this,this.Kc);var h=new r0(b,this.Kc,this.Ga,this.Ua,this.Oe);this.Bf=Y(function(){return h});
this.Aq=h;this.Di=new H1(this.Ub,this.Fb,this.Bf,this.Oe,this.Ga,this.Ha,this.Ta);g.M(this,this.Di);this.Me=new R_(this.Ub,this.Fb,this.Yb,this.Bf);g.M(this,this.Me);this.Mc=new Wz(this.Ub,this.Fb,this.Md,this.Ua,this.Me,c);g.M(this,this.Mc);this.Rg=Y(function(){return new V0(f.Ve,f.zb,f.Hb,f.Ha)});
g.M(this,this.Rg);this.Ad=Y(function(){return new W0});
g.M(this,this.Ad);this.We=new O1(a,this.jc);g.M(this,this.We);this.Ab=new P1(a);g.M(this,this.Ab);this.Tr=new n2(a);g.M(this,this.Tr);this.nf=new Q1(a,this.Bf);g.M(this,this.nf);this.ke=new S1(a,this.Yb,this.Ga,this.Ua);g.M(this,this.ke);this.kd=new U1(a);g.M(this,this.kd);this.ah=new V1(a);g.M(this,this.ah);this.Tt=new x2(a);g.M(this,this.Tt);this.zd=Y(function(){return new K1});
g.M(this,this.zd);this.gh=Y(function(){return new L1(f.Ga)});
g.M(this,this.gh);this.Qg=Y(function(){return new Y0(f.Mc)});
g.M(this,this.Qg);this.Wg=Y(function(){return new f1(f.Ta,f.kd,f.Ib)});
g.M(this,this.Wg);this.wl=Y(function(){return new ZWa(f.jc,f.Ga,f.Ta,f.Gc,f.Ib,f.Tr,f.Tt,f.Mb,f.Ha,c)});
g.M(this,this.wl);this.eh=Y(function(){return new G1(a,f.kd,f.Ta,f.Ib,f.Be,f.xe,f.Ua,f.Ga,f.Yb,f.Sd,f.md,f.lf,f.Mb,f.wf,f.Ha)});
g.M(this,this.eh);this.vG=new W1(a,this.jn,this.Za);g.M(this,this.vG);this.Fl=new X1(a,this.He,this.Hb,this.Ua,this.Za,this.Ha);g.M(this,this.Fl);this.Ke={qt:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Mc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Di],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.fh],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Kc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Me]]),ao:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.Rg],["SLOT_TYPE_FORECASTING",this.Ad],["SLOT_TYPE_IN_PLAYER",this.Ad],["SLOT_TYPE_PLAYER_BYTES",this.Ad]]),Ij:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.We],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Ab],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Ab],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Ab],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Ab],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Ab],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Ab],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Ab],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",
this.Ab],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Ab],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Ab],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Tr],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.nf],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.ke],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.ke],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.ke],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.kd],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.kd],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",
this.nf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.ah],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.Tt]]),Yo:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.zd],["SLOT_TYPE_FORECASTING",this.zd],["SLOT_TYPE_IN_PLAYER",this.zd],["SLOT_TYPE_PLAYER_BYTES",this.gh]]),Ho:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Qg],["SLOT_TYPE_FORECASTING",this.Wg],["SLOT_TYPE_IN_PLAYER",this.wl],["SLOT_TYPE_PLAYER_BYTES",this.eh]])};this.listeners=[this.Gc.get()];this.Ss={Mc:this.Mc,tm:null,Jo:this.He.get(),
wh:this.Ha.get(),bb:this.Mb.get(),Iq:this.Ga.get(),Kc:this.Kc,vl:this.Za.get(),Io:this.jn.get(),pk:this.We,Oi:this.Gc.get(),El:this.Ua.get()}};
aXa=function(a,b,c,d,e){g.J.call(this);var f=this;this.Za=Y(function(){return new eA});
g.M(this,this.Za);this.zb=Y(function(){return new Z_(f.Za)});
g.M(this,this.zb);this.Gc=Y(function(){return new S_});
g.M(this,this.Gc);this.Ub=Y(function(){return new O_(a)});
g.M(this,this.Ub);this.Fb=Y(function(){return new l0(f.Za,f.zb,f.Ha)});
g.M(this,this.Fb);this.Fd=Y(function(){return new q0});
g.M(this,this.Fd);this.lf=Y(function(){return new FI(b.V())});
g.M(this,this.lf);this.jc=Y(function(){return new Z1(b)});
g.M(this,this.jc);this.Mb=Y(function(){return new o_(e)});
g.M(this,this.Mb);this.Sd=Y(function(){return new RJ(b)});
g.M(this,this.Sd);this.Yb=Y(function(){return new s0(b)});
g.M(this,this.Yb);this.xe=Y(function(){return new b2(b)});
g.M(this,this.xe);this.md=Y(function(){return new t0(b)});
g.M(this,this.md);this.Ha=Y(function(){return new u0(b)});
g.M(this,this.Ha);this.Ve=Y(function(){return new Y1(d)});
g.M(this,this.Ve);this.Hb=Y(function(){return new CY(f.Ha)});
g.M(this,this.Hb);this.Md=Y(function(){return new L_(f.Za,f.Fb,f.zb,f.Ha,f.Hb,null,null)});
g.M(this,this.Md);this.wf=Y(function(){return new c2(b)});
g.M(this,this.wf);this.He=Y(function(){return new d2});
g.M(this,this.He);this.Ua=Y(function(){return new J0(b,f.Fd,f.Ha)});
g.M(this,this.Ua);this.pc=new p0(this.Ha,this.Hb,this.Ua);g.M(this,this.pc);this.Ga=Y(function(){return new K0(b,f.Ua,f.Ha)});
g.M(this,this.Ga);this.Ib=Y(function(){return new x0(f.Ga,b)});
g.M(this,this.Ib);this.Ta=Y(function(){return new C0(b,f.Gc,f.Ib,f.Ua)});
g.M(this,this.Ta);this.Be=Y(function(){return new P0});
g.M(this,this.Be);this.fh=new I1(J1,y2,function(l,m,n,p){return $_(f.zb.get(),l,m,n,p)},this.Ub,this.Fb,this.zb,this.Hb,this.Ha,this.Ua);
g.M(this,this.fh);this.Kc=new dA(this.Ub,this.Md,c,this.Ha,a,this.Ua,this.Ga);g.M(this,this.Kc);var h=new r0(b,this.Kc,this.Ga,this.Ua);this.Bf=Y(function(){return h});
this.Aq=h;this.Me=new R_(this.Ub,this.Fb,this.Yb,this.Bf);g.M(this,this.Me);this.Mc=new Wz(this.Ub,this.Fb,this.Md,this.Ua,this.Me,c);g.M(this,this.Mc);this.Rg=Y(function(){return new V0(f.Ve,f.zb,f.Hb,f.Ha)});
g.M(this,this.Rg);this.Ad=Y(function(){return new W0});
g.M(this,this.Ad);this.We=new O1(a,this.jc);g.M(this,this.We);this.Ab=new P1(a);g.M(this,this.Ab);this.nf=new Q1(a,this.Bf);g.M(this,this.nf);this.ke=new S1(a,this.Yb,this.Ga,this.Ua);g.M(this,this.ke);this.kd=new U1(a);g.M(this,this.kd);this.ah=new V1(a);g.M(this,this.ah);this.zd=Y(function(){return new K1});
g.M(this,this.zd);this.gh=Y(function(){return new L1(f.Ga)});
g.M(this,this.gh);this.Qg=Y(function(){return new Y0(f.Mc)});
g.M(this,this.Qg);this.Wg=Y(function(){return new f1(f.Ta,f.kd,f.Ib)});
g.M(this,this.Wg);this.DR=Y(function(){return new o1(f.jc,f.Ga,f.Ta,f.Gc,c)});
g.M(this,this.DR);this.eh=Y(function(){return new G1(a,f.kd,f.Ta,f.Ib,f.Be,f.xe,f.Ua,f.Ga,f.Yb,f.Sd,f.md,f.lf,f.Mb,f.wf,f.Ha)});
g.M(this,this.eh);this.Fl=new X1(a,this.He,this.Hb,this.Ua,this.Za,this.Ha);g.M(this,this.Fl);this.Ke={qt:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Mc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.fh],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Kc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Me]]),ao:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Rg],["SLOT_TYPE_FORECASTING",this.Ad],["SLOT_TYPE_IN_PLAYER",this.Ad],["SLOT_TYPE_PLAYER_BYTES",
this.Ad]]),Ij:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.We],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Ab],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Ab],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Ab],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Ab],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Ab],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Ab],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Ab],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Ab],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Ab],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.nf],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.ke],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.ke],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.kd],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.kd],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.nf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.ah]]),Yo:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.zd],["SLOT_TYPE_ABOVE_FEED",this.zd],["SLOT_TYPE_FORECASTING",this.zd],["SLOT_TYPE_IN_PLAYER",this.zd],["SLOT_TYPE_PLAYER_BYTES",
this.gh]]),Ho:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Qg],["SLOT_TYPE_FORECASTING",this.Wg],["SLOT_TYPE_IN_PLAYER",this.DR],["SLOT_TYPE_PLAYER_BYTES",this.eh]])};this.listeners=[this.Gc.get()];this.Ss={Mc:this.Mc,tm:null,Jo:this.He.get(),wh:this.Ha.get(),bb:this.Mb.get(),Iq:this.Ga.get(),Kc:this.Kc,vl:this.Za.get(),Io:null,pk:this.We,Oi:this.Gc.get(),El:this.Ua.get()}};
bXa=function(a,b,c,d,e){g.J.call(this);var f=this;this.Za=Y(function(){return new eA});
g.M(this,this.Za);this.zb=Y(function(){return new Z_(f.Za)});
g.M(this,this.zb);this.Gc=Y(function(){return new S_});
g.M(this,this.Gc);this.Ub=Y(function(){return new O_(a)});
g.M(this,this.Ub);this.Fb=Y(function(){return new l0(f.Za,f.zb,f.Ha)});
g.M(this,this.Fb);this.Fd=Y(function(){return new q0});
g.M(this,this.Fd);this.lf=Y(function(){return new FI(b.V())});
g.M(this,this.lf);this.jc=Y(function(){return new Z1(b)});
g.M(this,this.jc);this.Mb=Y(function(){return new o_(e)});
g.M(this,this.Mb);this.Sd=Y(function(){return new RJ(b)});
g.M(this,this.Sd);this.Yb=Y(function(){return new s0(b)});
g.M(this,this.Yb);this.xe=Y(function(){return new b2(b)});
g.M(this,this.xe);this.md=Y(function(){return new t0(b)});
g.M(this,this.md);this.Ha=Y(function(){return new u0(b)});
g.M(this,this.Ha);this.Ve=Y(function(){return new Y1(d)});
g.M(this,this.Ve);this.Hb=Y(function(){return new CY(f.Ha)});
g.M(this,this.Hb);this.Md=Y(function(){return new L_(f.Za,f.Fb,f.zb,f.Ha,f.Hb,null,null)});
g.M(this,this.Md);this.wf=Y(function(){return new c2(b)});
g.M(this,this.wf);this.He=Y(function(){return new d2});
g.M(this,this.He);this.Ua=Y(function(){return new J0(b,f.Fd,f.Ha)});
g.M(this,this.Ua);this.pc=new p0(this.Ha,this.Hb,this.Ua);g.M(this,this.pc);this.Ga=Y(function(){return new K0(b,f.Ua,f.Ha)});
g.M(this,this.Ga);this.Ib=Y(function(){return new x0(f.Ga,b)});
g.M(this,this.Ib);this.Ta=Y(function(){return new C0(b,f.Gc,f.Ib,f.Ua)});
g.M(this,this.Ta);this.Be=Y(function(){return new P0});
g.M(this,this.Be);this.fh=new I1(J1,y2,function(l,m,n,p){return $_(f.zb.get(),l,m,n,p)},this.Ub,this.Fb,this.zb,this.Hb,this.Ha,this.Ua);
g.M(this,this.fh);this.Kc=new dA(this.Ub,this.Md,c,this.Ha,a,this.Ua,this.Ga);g.M(this,this.Kc);var h=new r0(b,this.Kc,this.Ga,this.Ua);this.Bf=Y(function(){return h});
this.Aq=h;this.Me=new R_(this.Ub,this.Fb,this.Yb,this.Bf);g.M(this,this.Me);this.Mc=new Wz(this.Ub,this.Fb,this.Md,this.Ua,this.Me,c);g.M(this,this.Mc);this.Rg=Y(function(){return new V0(f.Ve,f.zb,f.Hb,f.Ha)});
g.M(this,this.Rg);this.Ad=Y(function(){return new W0});
g.M(this,this.Ad);this.We=new O1(a,this.jc);g.M(this,this.We);this.Ab=new P1(a);g.M(this,this.Ab);this.nf=new Q1(a,this.Bf);g.M(this,this.nf);this.ke=new S1(a,this.Yb,this.Ga,this.Ua);g.M(this,this.ke);this.kd=new U1(a);g.M(this,this.kd);this.ah=new V1(a);g.M(this,this.ah);this.zd=Y(function(){return new K1});
g.M(this,this.zd);this.gh=Y(function(){return new L1(f.Ga)});
g.M(this,this.gh);this.Qg=Y(function(){return new Y0(f.Mc)});
g.M(this,this.Qg);this.Wg=Y(function(){return new f1(f.Ta,f.kd,f.Ib)});
g.M(this,this.Wg);this.wl=Y(function(){return new o1(f.jc,f.Ga,f.Ta,f.Gc,c)});
g.M(this,this.wl);this.eh=Y(function(){return new G1(a,f.kd,f.Ta,f.Ib,f.Be,f.xe,f.Ua,f.Ga,f.Yb,f.Sd,f.md,f.lf,f.Mb,f.wf,f.Ha)});
g.M(this,this.eh);this.Fl=new X1(a,this.He,this.Hb,this.Ua,this.Za,this.Ha);g.M(this,this.Fl);this.Ke={qt:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Mc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.fh],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Kc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Me]]),ao:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Rg],["SLOT_TYPE_FORECASTING",this.Ad],["SLOT_TYPE_IN_PLAYER",this.Ad],["SLOT_TYPE_PLAYER_BYTES",
this.Ad]]),Ij:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.We],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Ab],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Ab],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Ab],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Ab],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Ab],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Ab],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Ab],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Ab],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Ab],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.nf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.ke],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.kd],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.kd],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.nf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.ah]]),Yo:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.zd],["SLOT_TYPE_FORECASTING",this.zd],["SLOT_TYPE_IN_PLAYER",this.zd],["SLOT_TYPE_PLAYER_BYTES",this.gh]]),Ho:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Qg],["SLOT_TYPE_FORECASTING",
this.Wg],["SLOT_TYPE_IN_PLAYER",this.wl],["SLOT_TYPE_PLAYER_BYTES",this.eh]])};this.listeners=[this.Gc.get()];this.Ss={Mc:this.Mc,tm:null,Jo:this.He.get(),wh:this.Ha.get(),bb:this.Mb.get(),Iq:this.Ga.get(),Kc:this.Kc,vl:this.Za.get(),Io:null,pk:this.We,Oi:this.Gc.get(),El:this.Ua.get()}};
z2=function(a,b,c,d,e,f,h,l,m){m1.call(this,a,b,c,d,e,f,h,m);this.Yk=l};
cXa=function(){var a=CVa();a.ue.push("metadata_type_ad_info_ad_metadata");return a};
dXa=function(a,b,c,d,e,f){this.jc=a;this.Ga=b;this.Ta=c;this.u=d;this.Yk=e;this.j=f};
eXa=function(a,b,c,d,e){g.J.call(this);var f=this;this.Za=Y(function(){return new eA});
g.M(this,this.Za);this.zb=Y(function(){return new Z_(f.Za)});
g.M(this,this.zb);this.Gc=Y(function(){return new S_});
g.M(this,this.Gc);this.Ub=Y(function(){return new O_(a)});
g.M(this,this.Ub);this.Fb=Y(function(){return new l0(f.Za,f.zb,f.Ha)});
g.M(this,this.Fb);this.Fd=Y(function(){return new q0});
g.M(this,this.Fd);this.Yk=Y(function(){return new dWa(b)});
g.M(this,this.Yk);this.lf=Y(function(){return new FI(b.V())});
g.M(this,this.lf);this.jc=Y(function(){return new Z1(b)});
g.M(this,this.jc);this.Mb=Y(function(){return new o_(e)});
g.M(this,this.Mb);this.Sd=Y(function(){return new RJ(b)});
g.M(this,this.Sd);this.Yb=Y(function(){return new s0(b)});
g.M(this,this.Yb);this.xe=Y(function(){return new b2(b)});
g.M(this,this.xe);this.md=Y(function(){return new t0(b)});
g.M(this,this.md);this.Ha=Y(function(){return new u0(b)});
g.M(this,this.Ha);this.Ve=Y(function(){return new Y1(d)});
g.M(this,this.Ve);this.Hb=Y(function(){return new CY(f.Ha)});
g.M(this,this.Hb);this.Md=Y(function(){return new L_(f.Za,f.Fb,f.zb,f.Ha,f.Hb,null,null)});
g.M(this,this.Md);this.wf=Y(function(){return new c2(b)});
g.M(this,this.wf);this.He=Y(function(){return new d2});
g.M(this,this.He);this.Ua=Y(function(){return new J0(b,f.Fd,f.Ha)});
g.M(this,this.Ua);this.pc=new p0(this.Ha,this.Hb,this.Ua);g.M(this,this.pc);this.Ga=Y(function(){return new K0(b,f.Ua,f.Ha)});
g.M(this,this.Ga);this.Ib=Y(function(){return new x0(f.Ga,b)});
g.M(this,this.Ib);this.Ta=Y(function(){return new C0(b,f.Gc,f.Ib,f.Ua)});
g.M(this,this.Ta);this.Be=Y(function(){return new P0});
g.M(this,this.Be);this.fh=new I1(RVa,y2,function(l,m,n,p){return NUa(f.zb.get(),l,m,n,p)},this.Ub,this.Fb,this.zb,this.Hb,this.Ha,this.Ua);
g.M(this,this.fh);this.Kc=new dA(this.Ub,this.Md,c,this.Ha,a,this.Ua,this.Ga);g.M(this,this.Kc);var h=new r0(b,this.Kc,this.Ga,this.Ua);this.Bf=Y(function(){return h});
this.Aq=h;this.Me=new R_(this.Ub,this.Fb,this.Yb,this.Bf);g.M(this,this.Me);this.Mc=new Wz(this.Ub,this.Fb,this.Md,this.Ua,this.Me,c);g.M(this,this.Mc);this.Rg=Y(function(){return new V0(f.Ve,f.zb,f.Hb,f.Ha)});
g.M(this,this.Rg);this.Ad=Y(function(){return new W0});
g.M(this,this.Ad);this.We=new O1(a,this.jc);g.M(this,this.We);this.Ab=new P1(a);g.M(this,this.Ab);this.nf=new Q1(a,this.Bf);g.M(this,this.nf);this.ke=new S1(a,this.Yb,this.Ga,this.Ua);g.M(this,this.ke);this.kd=new U1(a);g.M(this,this.kd);this.ah=new V1(a);g.M(this,this.ah);this.zd=Y(function(){return new K1});
g.M(this,this.zd);this.gh=Y(function(){return new L1(f.Ga)});
g.M(this,this.gh);this.Qg=Y(function(){return new Y0(f.Mc)});
g.M(this,this.Qg);this.Wg=Y(function(){return new f1(f.Ta,f.kd,f.Ib)});
g.M(this,this.Wg);this.eh=Y(function(){return new G1(a,f.kd,f.Ta,f.Ib,f.Be,f.xe,f.Ua,f.Ga,f.Yb,f.Sd,f.md,f.lf,f.Mb,f.wf,f.Ha)});
g.M(this,this.eh);this.ET=Y(function(){return new dXa(f.jc,f.Ga,f.Ta,f.Gc,f.Yk,c)});
g.M(this,this.ET);this.Fl=new X1(a,this.He,this.Hb,this.Ua,this.Za,this.Ha);g.M(this,this.Fl);this.Ke={qt:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Mc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.fh],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Kc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Me]]),ao:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Rg],["SLOT_TYPE_FORECASTING",this.Ad],["SLOT_TYPE_IN_PLAYER",this.Ad],["SLOT_TYPE_PLAYER_BYTES",
this.Ad]]),Ij:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.We],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Ab],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Ab],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Ab],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Ab],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Ab],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Ab],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Ab],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Ab],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Ab],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.nf],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.ke],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.ke],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.kd],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.kd],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.nf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.ah]]),Yo:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.zd],["SLOT_TYPE_FORECASTING",this.zd],["SLOT_TYPE_IN_PLAYER",this.zd],["SLOT_TYPE_PLAYER_BYTES",this.gh]]),Ho:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.Qg],["SLOT_TYPE_FORECASTING",this.Wg],["SLOT_TYPE_IN_PLAYER",this.ET],["SLOT_TYPE_PLAYER_BYTES",this.eh]])};this.listeners=[this.Gc.get()];this.Ss={Mc:this.Mc,tm:null,Jo:this.He.get(),wh:this.Ha.get(),bb:this.Mb.get(),Iq:this.Ga.get(),Kc:this.Kc,vl:this.Za.get(),Io:null,pk:this.We,Oi:this.Gc.get(),El:this.Ua.get()}};
fXa=function(a,b,c,d,e,f){this.jc=a;this.Ga=b;this.Ta=c;this.u=d;this.Yk=e;this.j=f};
gXa=function(a,b,c,d,e){g.J.call(this);var f=this;this.Za=Y(function(){return new eA});
g.M(this,this.Za);this.zb=Y(function(){return new Z_(f.Za)});
g.M(this,this.zb);this.Gc=Y(function(){return new S_});
g.M(this,this.Gc);this.Ub=Y(function(){return new O_(a)});
g.M(this,this.Ub);this.Fb=Y(function(){return new l0(f.Za,f.zb,f.Ha)});
g.M(this,this.Fb);this.Fd=Y(function(){return new q0});
g.M(this,this.Fd);this.Yk=Y(function(){return new dWa(b)});
g.M(this,this.Yk);this.lf=Y(function(){return new FI(b.V())});
g.M(this,this.lf);this.jc=Y(function(){return new Z1(b)});
g.M(this,this.jc);this.Mb=Y(function(){return new o_(e)});
g.M(this,this.Mb);this.Sd=Y(function(){return new RJ(b)});
g.M(this,this.Sd);this.Yb=Y(function(){return new s0(b)});
g.M(this,this.Yb);this.xe=Y(function(){return new b2(b)});
g.M(this,this.xe);this.md=Y(function(){return new t0(b)});
g.M(this,this.md);this.Ha=Y(function(){return new u0(b)});
g.M(this,this.Ha);this.Ve=Y(function(){return new Y1(d)});
g.M(this,this.Ve);this.Hb=Y(function(){return new CY(f.Ha)});
g.M(this,this.Hb);this.Md=Y(function(){return new L_(f.Za,f.Fb,f.zb,f.Ha,f.Hb,null,f.Di,3)});
g.M(this,this.Md);this.wf=Y(function(){return new c2(b)});
g.M(this,this.wf);this.He=Y(function(){return new d2});
g.M(this,this.He);this.Ua=Y(function(){return new J0(b,f.Fd,f.Ha)});
g.M(this,this.Ua);this.pc=new p0(this.Ha,this.Hb,this.Ua);g.M(this,this.pc);this.Oe=Y(function(){return new a2(b,f.Ha,f.Ta)});
g.M(this,this.Oe);this.Je=Y(function(){return new zWa(b)});
g.M(this,this.Je);this.Ga=Y(function(){return new K0(b,f.Ua,f.Ha)});
g.M(this,this.Ga);this.Be=Y(function(){return new P0});
this.Ib=Y(function(){return new x0(f.Ga,b)});
g.M(this,this.Ib);this.Ta=Y(function(){return new C0(b,f.Gc,f.Ib,f.Ua)});
g.M(this,this.Ta);this.Kc=new dA(this.Ub,this.Md,c,this.Ha,a,this.Ua,this.Ga);g.M(this,this.Kc);var h=new r0(b,this.Kc,this.Ga,this.Ua,this.Oe);this.Bf=Y(function(){return h});
this.Aq=h;this.fh=new I1(SVa,y2,function(l,m,n,p){return NUa(f.zb.get(),l,m,n,p)},this.Ub,this.Fb,this.zb,this.Hb,this.Ha,this.Ua);
g.M(this,this.fh);this.Di=new H1(this.Ub,this.Fb,this.Bf,this.Oe,this.Ga,this.Ha,this.Ta,this.Je);g.M(this,this.Di);this.Me=new R_(this.Ub,this.Fb,this.Yb,this.Bf);g.M(this,this.Me);this.Mc=new Wz(this.Ub,this.Fb,this.Md,this.Ua,this.Me,c);g.M(this,this.Mc);this.Rg=Y(function(){return new V0(f.Ve,f.zb,f.Hb,f.Ha,f.Je)});
g.M(this,this.Rg);this.Ad=Y(function(){return new W0});
g.M(this,this.Ad);this.We=new O1(a,this.jc);g.M(this,this.We);this.Ab=new P1(a);g.M(this,this.Ab);this.nf=new Q1(a,this.Bf);g.M(this,this.nf);this.ke=new S1(a,this.Yb,this.Ga,this.Ua);g.M(this,this.ke);this.Us=new p2(a,this.Ua);g.M(this,this.Us);this.kd=new U1(a);g.M(this,this.kd);this.ah=new V1(a);g.M(this,this.ah);this.zd=Y(function(){return new K1});
g.M(this,this.zd);this.gh=Y(function(){return new L1(f.Ga)});
g.M(this,this.gh);this.Qg=Y(function(){return new Y0(f.Mc)});
g.M(this,this.Qg);this.Wg=Y(function(){return new f1(f.Ta,f.kd,f.Ib)});
g.M(this,this.Wg);this.eh=Y(function(){return new m2(a,f.kd,f.Ua,f.Je,f.Ga,f.Ta,f.Fd,f.Oe,f.Ib,f.Be,f.xe,f.Yb,f.Sd,f.md,f.lf,f.Mb,f.wf,f.Ha,f.Gc)});
g.M(this,this.eh);this.wl=Y(function(){return new fXa(f.jc,f.Ga,f.Ta,f.Gc,f.Yk,c)});
g.M(this,this.wl);this.Fl=new X1(a,this.He,this.Hb,this.Ua,this.Za,this.Ha);g.M(this,this.Fl);this.Ke={qt:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Mc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Di],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.fh],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Kc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Me]]),ao:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Rg],["SLOT_TYPE_FORECASTING",this.Ad],
["SLOT_TYPE_IN_PLAYER",this.Ad],["SLOT_TYPE_PLAYER_BYTES",this.Ad]]),Ij:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.We],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Ab],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Ab],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Ab],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Ab],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Ab],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Ab],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Ab],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Ab],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",
this.Ab],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.nf],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.ke],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.ke],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Us],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Us],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.kd],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.kd],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.nf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.ah]]),Yo:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.zd],["SLOT_TYPE_FORECASTING",this.zd],["SLOT_TYPE_IN_PLAYER",this.zd],["SLOT_TYPE_PLAYER_BYTES",this.gh]]),Ho:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Qg],["SLOT_TYPE_FORECASTING",this.Wg],["SLOT_TYPE_PLAYER_BYTES",this.eh],["SLOT_TYPE_IN_PLAYER",this.wl]])};this.listeners=[this.Gc.get()];this.Ss={Mc:this.Mc,tm:null,Jo:this.He.get(),wh:this.Ha.get(),bb:this.Mb.get(),Iq:this.Ga.get(),Kc:this.Kc,vl:this.Za.get(),Io:null,pk:this.We,Oi:this.Gc.get(),El:this.Ua.get()}};
iXa=function(a,b,c,d){g.J.call(this);var e=this;this.j=hXa(function(){return e.u},a,b,c,d);
g.M(this,this.j);this.u=(new m_(this.j)).B();g.M(this,this.u)};
A2=function(a){return a.j.Ss};
hXa=function(a,b,c,d,e){try{var f=b.V();if(g.jG(f))var h=new YWa(a,b,c,d,e);else if(g.mG(f))h=new $Wa(a,b,c,d,e);else if("WEB_MUSIC_EMBEDDED_PLAYER"===ZF(f))h=new bXa(a,b,c,d,e);else if(bG(f))h=new aXa(a,b,c,d,e);else if(g.TF(f))h=new eXa(a,b,c,d,e);else if(g.SF(f))h=new gXa(a,b,c,d,e);else throw new TypeError("Unknown web interface");return h}catch(l){return h=b.V(),cA("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:h.deviceParams.cplatform,interface:h.deviceParams.c,
z5a:h.deviceParams.cver,y5a:h.deviceParams.ctheme,x5a:h.deviceParams.cplayer,U5a:h.playerStyle}),new oVa(a,b,c,d,e)}};
B2=function(a,b){this.j=a;this.tm=b};
jXa=function(a){xL.call(this,a)};
kXa=function(a,b,c,d,e,f){FL.call(this,a,b,{F:"div",N:"ytp-ad-timed-pie-countdown-container",W:[{F:"svg",N:"ytp-ad-timed-pie-countdown",X:{viewBox:"0 0 20 20"},W:[{F:"circle",N:"ytp-ad-timed-pie-countdown-background",X:{r:"10",cx:"10",cy:"10"}},{F:"circle",N:"ytp-ad-timed-pie-countdown-inner",X:{r:"5",cx:"10",cy:"10"}},{F:"circle",N:"ytp-ad-timed-pie-countdown-outer",X:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",c,d,e,f);this.C=this.Da("ytp-ad-timed-pie-countdown-inner");this.B=Math.ceil(10*
Math.PI);this.hide()};
lXa=function(a,b,c,d,e,f,h){YK.call(this,a,b,{F:"div",N:"ytp-ad-action-interstitial",X:{tabindex:"0"},W:[{F:"div",N:"ytp-ad-action-interstitial-background-container"},{F:"div",N:"ytp-ad-action-interstitial-slot",W:[{F:"div",N:"ytp-ad-action-interstitial-card",W:[{F:"div",N:"ytp-ad-action-interstitial-image-container"},{F:"div",N:"ytp-ad-action-interstitial-headline-container"},{F:"div",N:"ytp-ad-action-interstitial-description-container"},{F:"div",N:"ytp-ad-action-interstitial-action-button-container"}]}]}]},
"ad-action-interstitial",c,d,e);this.UK=f;this.AE=h;this.navigationEndpoint=this.u=this.skipButton=this.B=this.actionButton=null;this.ea=this.Da("ytp-ad-action-interstitial-image-container");this.D=new tL(this.api,this.ib,this.layoutId,this.j,this.bb,"ytp-ad-action-interstitial-image");g.M(this,this.D);this.D.Ca(this.ea);this.La=this.Da("ytp-ad-action-interstitial-headline-container");this.S=new DL(this.api,this.ib,this.layoutId,this.j,this.bb,"ytp-ad-action-interstitial-headline");g.M(this,this.S);
this.S.Ca(this.La);this.Ia=this.Da("ytp-ad-action-interstitial-description-container");this.I=new DL(this.api,this.ib,this.layoutId,this.j,this.bb,"ytp-ad-action-interstitial-description");g.M(this,this.I);this.I.Ca(this.Ia);this.Wa=this.Da("ytp-ad-action-interstitial-background-container");this.Ba=new tL(this.api,this.ib,this.layoutId,this.j,this.bb,"ytp-ad-action-interstitial-background",!0);g.M(this,this.Ba);this.Ba.Ca(this.Wa);this.Qa=this.Da("ytp-ad-action-interstitial-action-button-container");
this.C=new Yy;g.M(this,this.C);this.hide()};
mXa=function(a){var b=g.ch("html5-video-player");b&&g.jo(b,"ytp-ad-display-override",a)};
qXa=function(a,b,c,d,e){YK.call(this,a,b,{F:"div",N:"ytp-ad-overlay-slot",W:[{F:"div",N:"ytp-ad-overlay-container"}]},"invideo-overlay",c,d,e);this.S=[];this.kb=this.Ia=this.D=this.Qa=this.Ba=null;this.Wa=!1;this.I=null;this.ea=0;b=this.Da("ytp-ad-overlay-container");this.La=new OL(b,45E3,6E3,.3,.4);g.M(this,this.La);this.C=nXa(this);g.M(this,this.C);this.C.Ca(b);this.B=oXa(this);g.M(this,this.B);this.B.Ca(b);this.u=pXa(this);g.M(this,this.u);this.u.Ca(b);a.K("web_rounded_containers")&&g.fo(b,"ytp-rounded-overlay-ad");
this.hide()};
nXa=function(a){var b=new g.XK({F:"div",N:"ytp-ad-text-overlay",W:[{F:"div",N:"ytp-ad-overlay-ad-info-button-container"},{F:"div",N:"ytp-ad-overlay-close-container",W:[{F:"button",N:"ytp-ad-overlay-close-button",W:[mL(rXa)]}]},{F:"div",N:"ytp-ad-overlay-title",oa:"{{title}}"},{F:"div",N:"ytp-ad-overlay-desc",oa:"{{description}}"},{F:"div",Fa:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],oa:"{{displayUrl}}"}]});a.T(b.Da("ytp-ad-overlay-title"),"click",function(c){C2(a,b.element,c)});
a.T(b.Da("ytp-ad-overlay-link"),"click",function(c){C2(a,b.element,c)});
a.T(b.Da("ytp-ad-overlay-close-container"),"click",a.rk);b.hide();return b};
oXa=function(a){var b=new g.XK({F:"div",Fa:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],W:[{F:"div",N:"ytp-ad-overlay-ad-info-button-container"},{F:"div",N:"ytp-ad-overlay-close-container",W:[{F:"button",N:"ytp-ad-overlay-close-button",W:[mL(rXa)]}]},{F:"div",N:"ytp-ad-overlay-text-image",W:[{F:"img",X:{src:"{{imageUrl}}"}}]},{F:"div",N:"ytp-ad-overlay-title",oa:"{{title}}"},{F:"div",N:"ytp-ad-overlay-desc",oa:"{{description}}"},{F:"div",Fa:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],
oa:"{{displayUrl}}"}]});a.T(b.Da("ytp-ad-overlay-title"),"click",function(c){C2(a,b.element,c)});
a.T(b.Da("ytp-ad-overlay-link"),"click",function(c){C2(a,b.element,c)});
a.T(b.Da("ytp-ad-overlay-close-container"),"click",a.rk);a.T(b.Da("ytp-ad-overlay-text-image"),"click",a.W2);b.hide();return b};
pXa=function(a){var b=new g.XK({F:"div",N:"ytp-ad-image-overlay",W:[{F:"div",N:"ytp-ad-overlay-ad-info-button-container"},{F:"div",N:"ytp-ad-overlay-close-container",W:[{F:"button",N:"ytp-ad-overlay-close-button",W:[mL(rXa)]}]},{F:"div",N:"ytp-ad-overlay-image",W:[{F:"img",X:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.T(b.Da("ytp-ad-overlay-image"),"click",function(c){C2(a,b.element,c)});
a.T(b.Da("ytp-ad-overlay-close-container"),"click",a.rk);b.hide();return b};
tXa=function(a,b){if(b){var c=b.adHoverTextButtonRenderer||null;if(null==c)g.oz(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else if(b=g.ch("video-ads ytp-ad-module")||null,null==b)g.oz(Error("Could not locate the root ads container element to attach the ad info dialog."));else if(a.Ia=new g.XK({F:"div",N:"ytp-ad-overlay-ad-info-dialog-container"}),g.M(a,a.Ia),a.Ia.Ca(b),b=new CL(a.api,a.ib,a.layoutId,a.j,a.bb,a.Ia.element,!1),g.M(a,b),b.init(DI("ad-info-hover-text-button"),
c,a.macros),a.I){b.Ca(a.I,0);b.subscribe("f",a.h0,a);b.subscribe("e",a.NJ,a);a.T(a.I,"click",a.j0);var d=g.ch("ytp-ad-button",b.element);a.T(d,"click",function(){var e,f;if(g.Zu(null==(e=c.button)?void 0:null==(f=e.buttonRenderer)?void 0:f.serviceEndpoint,sXa))a.Wa=2===a.api.getPlayerState(1),a.api.pauseVideo();else a.api.onAdUxClicked("ad-info-hover-text-button",a.layoutId)});
a.kb=b}else g.oz(Error("Ad info button container within overlay ad was not present."))}else g.pz(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))};
vXa=function(a,b){if(uXa(a,D2)||a.api.Df())return!1;var c=ZK(b.title),d=ZK(b.description);if(g.cb(c)||g.cb(d))return!1;a.Ug(a.C.element,b.trackingParams||null);a.C.Oa("title",ZK(b.title));a.C.Oa("description",ZK(b.description));a.C.Oa("displayUrl",ZK(b.displayUrl));b.navigationEndpoint&&g.cc(a.S,b.navigationEndpoint);a.C.show();a.La.start();a.Xa(a.C.element,!0);a.T(a.C.element,"mouseover",function(){a.ea++});
return!0};
wXa=function(a,b){if(uXa(a,D2)||a.api.Df())return!1;var c=ZK(b.title),d=ZK(b.description);if(g.cb(c)||g.cb(d))return!1;a.Ug(a.B.element,b.trackingParams||null);a.B.Oa("title",ZK(b.title));a.B.Oa("description",ZK(b.description));a.B.Oa("displayUrl",ZK(b.displayUrl));a.B.Oa("imageUrl",UEa(b.image));b.navigationEndpoint&&g.cc(a.S,b.navigationEndpoint);a.Qa=b.imageNavigationEndpoint||null;a.B.show();a.La.start();a.Xa(a.B.element,!0);a.T(a.B.element,"mouseover",function(){a.ea++});
return!0};
xXa=function(a,b){if(a.api.Df())return!1;var c=VEa(b.image),d=c;c.width<D2.width&&(d=D2);if(0===c.width||0===c.height||uXa(a,d))return!1;a.Ug(a.u.element,b.trackingParams||null);a.u.Oa("imageUrl",UEa(b.image));a.u.Oa("width",c.width);a.u.Oa("height",c.height);b.navigationEndpoint&&g.cc(a.S,b.navigationEndpoint);b=a.u.Da("ytp-ad-image-overlay");g.zl(b,"max-width",c.width+"px");a.u.show();a.Xa(a.u.element,!0);a.T(a.u.element,"mouseover",function(){a.ea++;a.api.tJ("invideo-overlay",a.layoutId)});
a.T(a.u.element,"mouseout",function(){a.api.sJ("invideo-overlay",a.layoutId)});
return!0};
uXa=function(a,b){var c=a.api.gb().Ki(),d=a.api.fk(!0,!1);return(b=OWa(c,c.height-(d.height+d.top),b))?(a.Ba&&b&&(c=g.Gf(a.macros),c.ERRORCODE=b.UA.toString(),c.ERROR_MSG=b.errorMessage,a.api.V().K("enable_macro_substitution_on_html5")?a.layoutId?p_(a.bb,a.Ba,a.layoutId,c):g.oz(Error("Missing layoutId for invideo_overlay_ad.")):zL(a.bb,a.Ba,c)),!0):!1};
C2=function(a,b,c){var d=g.Gf(a.macros),e=g.Kl(b);d.AW={toString:function(){return e.width.toString()}};
d.AH={toString:function(){return e.height.toString()}};
var f=g.Il(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.ea.toString()}};
b=g.r(a.S);for(c=b.next();!c.done;c=b.next())c=c.value,a.api.V().K("enable_macro_substitution_on_html5")?a.layoutId?p_(a.bb,c,a.layoutId,d):g.oz(Error("Missing layoutId for invideo_overlay_ad.")):zL(a.bb,c,d);a.api.pauseVideo()};
yXa=function(a,b){a=a.api.getRootNode();g.jo(a,"ytp-ad-overlay-open",b);g.jo(a,"ytp-ad-overlay-closed",!b)};
zXa=function(a,b,c,d,e,f){FL.call(this,a,b,{F:"div",N:"ytp-ad-message-overlay",W:[{F:"div",N:"ytp-ad-message-slot"}]},"ad-message",c,d,e,f);var h=this;this.ea=-1;this.C=0;this.S=!1;this.Ba=this.Da("ytp-ad-message-slot");this.B=new g.XK({F:"span",N:"ytp-ad-message-container"});this.B.Ca(this.Ba);g.M(this,this.B);this.messageText=new DL(this.api,this.ib,this.layoutId,this.j,e,"ytp-ad-message-text");g.M(this,this.messageText);this.messageText.Ca(this.B.element);this.I=new g.IL(this.B,400,!1,100,function(){return h.hide()});
g.M(this,this.I);this.hide()};
AXa=function(a,b){a=a.api.getRootNode();g.jo(a,"ytp-ad-overlay-open",b);g.jo(a,"ytp-ad-overlay-closed",!b)};
BXa=function(a,b,c,d,e){YK.call(this,a,b,{F:"div",N:"ytp-ad-underlay-companion",W:[{F:"div",N:"ytp-ad-underlay-side-container",W:[{F:"div",N:"ytp-ad-underlay-image-container"},{F:"div",N:"ytp-ad-underlay-description-container"},{F:"div",N:"ytp-ad-underlay-headline-container"},{F:"div",N:"ytp-ad-underlay-action-button-container"}]}]},"player-underlay",c,d,e);this.actionButton=null;this.Ba=this.Da("ytp-ad-underlay-image-container");this.C=new tL(this.api,this.ib,this.layoutId,this.j,this.bb,"ytp-ad-underlay-image");
g.M(this,this.C);this.C.Ca(this.Ba);this.ea=this.Da("ytp-ad-underlay-headline-container");this.B=new DL(this.api,this.ib,this.layoutId,this.j,this.bb,"ytp-ad-underlay-headline");g.M(this,this.B);this.B.Ca(this.ea);this.S=this.Da("ytp-ad-underlay-description-container");this.D=new DL(this.api,this.ib,this.layoutId,this.j,this.bb,"ytp-ad-underlay-description");g.M(this,this.D);this.D.Ca(this.S);this.I=this.Da("ytp-ad-underlay-action-button-container");this.u=this.Da("ytp-ad-underlay-side-container");
this.hide()};
CXa=function(a){var b=g.ch("html5-video-player");b&&g.jo(b,"ytp-ad-display-override",a)};
E2=function(a,b,c,d,e){YK.call(this,a,b,{F:"div",N:"ytp-ad-survey-answer"},"survey-answer",c,d,e);this.u=null;this.toggledLoggingParams="";this.answer=this.Da("ytp-ad-survey-answer");this.hide()};
DXa=function(a,b,c,d,e){YK.call(this,a,b,{F:"div",N:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above",c,d,e);this.button=null;this.u=this.Da("ytp-ad-survey-none-of-the-above");this.hide()};
F2=function(a,b,c,d,e){nL.call(this,a,b,c,d,e,["ytp-ad-survey-submit-button"],"survey-submit")};
G2=function(a,b,c,d,e,f){YK.call(this,a,b,{F:"div",N:"ytp-ad-survey-player-overlay",W:[{F:"div",N:"ytp-ad-survey-player-overlay-instream-info"},{F:"div",N:"ytp-ad-survey-player-overlay-skip-preview-submit",W:[{F:"div",N:"ytp-ad-survey-player-overlay-skip-or-preview"},{F:"div",N:"ytp-ad-survey-player-overlay-submit"}]},{F:"div",N:"ytp-ad-survey-player-overlay-instream-user-sentiment"}]},"survey-player-overlay",c,d,e);this.C=f;this.B=this.u=null;this.D=this.Da("ytp-ad-survey-player-overlay-instream-info");
this.I=this.Da("ytp-ad-survey-player-overlay-skip-or-preview");this.submitButton=this.Da("ytp-ad-survey-player-overlay-submit");g.M(this,this.C);this.hide()};
H2=function(a,b,c,d,e,f){YK.call(this,a,b,{F:"div",N:"ytp-ad-survey-question",W:[{F:"div",Fa:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{F:"div",Fa:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{F:"div",Fa:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{F:"div",N:"ytp-ad-survey-question-background"}]},f,c,d,e);this.D=null;this.B=[];this.u=null;this.question=this.Da("ytp-ad-survey-question");this.S=this.Da("ytp-ad-survey-question-background");
this.questionText=this.Da("ytp-ad-survey-question-text");this.answers=this.Da("ytp-ad-survey-answers");this.playerOverlay=this.Da("ytp-ad-survey-question-player-overlay");this.C=g.Ra()};
EXa=function(a,b,c){var d=new E2(a.api,a.ib,a.layoutId,a.j,a.bb);d.Ca(a.answers);d.init(DI("survey-answer"),b,c);a.B.push(d)};
FXa=function(a,b){if(b){var c=b.background;c&&c.instreamSurveyAdBackgroundImageRenderer&&(c=(c=c.instreamSurveyAdBackgroundImageRenderer.image)&&sL(c)||"",g.cb(c)?g.pz(Error("Found ThumbnailDetails without valid image URL")):g.zl(a.S,"backgroundImage","url("+c+")"));if(null==b.durationMilliseconds||void 0===b.durationMilliseconds||0===b.durationMilliseconds)g.oz(Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(b)));else{a.C=g.Ra();a.u=new UL(a.api,b.durationMilliseconds);
g.M(a,a.u);if(a.u&&b.instreamAdPlayerOverlay&&b.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer)try{var d=new G2(a.api,a.ib,a.layoutId,a.j,a.bb,a.u);d.Ca(a.playerOverlay);d.init(DI("survey-player-overlay"),b.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer,a.macros);a.D=d;g.M(a,d);a.eS()}catch(e){g.oz(Error("ISAPOR had an error when initializing. Error: "+(e+" SurveyAdQuestionCommon: "+JSON.stringify(b))))}else g.oz(Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+
JSON.stringify(b)));a.u&&b.durationMilliseconds&&0<b.durationMilliseconds?(b=new dM(a.api,a.u),b.Ca(a.playerOverlay),g.M(a,b)):g.oz(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(b)))}}else g.oz(Error("addCommonComponents() needs to be called before starting countdown."))};
GXa=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()).toString()});
a.macros.SURVEY_ELAPSED_MS=b(function(){return(g.Ra()-a.C).toString()})};
HXa=function(a,b,c,d,e){H2.call(this,a,b,c,d,e,"survey-question-multi-select");this.noneOfTheAbove=null;this.submitEndpoints=[];this.I=null;this.hide()};
IXa=function(a,b,c){a.noneOfTheAbove=new DXa(a.api,a.ib,a.layoutId,a.j,a.bb);a.noneOfTheAbove.Ca(a.answers);a.noneOfTheAbove.init(DI("survey-none-of-the-above"),b,c)};
KXa=function(a){a.B.forEach(function(b){b.u.toggleButton(!1)});
JXa(a,!0)};
JXa=function(a,b){var c=a.D;a=LXa(a);b=void 0===b?!1:b;c.u&&(a?c.u.hide():c.u.show(),b&&c.u instanceof QL&&!c.u.I&&FFa(c.u,!1));c.B&&(a?c.B.show():c.B.hide())};
LXa=function(a){return a.B.some(function(b){return b.u.isToggled()})||a.noneOfTheAbove.button.isToggled()};
I2=function(a,b,c,d,e){H2.call(this,a,b,c,d,e,"survey-question-single-select");this.hide()};
J2=function(a,b,c,d,e){YK.call(this,a,b,{F:"div",N:"ytp-ad-survey",W:[{F:"div",N:"ytp-ad-survey-questions"}]},"survey",c,d,e);this.questions=[];this.u=this.Da("ytp-ad-survey-questions");this.hide()};
K2=function(a,b,c,d,e){YK.call(this,a,b,{F:"div",N:"ytp-ad-survey-interstitial",W:[{F:"div",N:"ytp-ad-survey-interstitial-contents",W:[{F:"div",N:"ytp-ad-survey-interstitial-logo",W:[{F:"div",N:"ytp-ad-survey-interstitial-logo-image"}]},{F:"div",N:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",c,d,e);this.u=this.actionButton=null;this.interstitial=this.Da("ytp-ad-survey-interstitial");this.B=this.Da("ytp-ad-survey-interstitial-contents");this.text=this.Da("ytp-ad-survey-interstitial-text");
this.logoImage=this.Da("ytp-ad-survey-interstitial-logo-image");this.transition=new g.IL(this,500,!1,300);g.M(this,this.transition)};
MXa=function(a,b){b=b&&sL(b)||"";if(g.cb(b))g.pz(Error("Found ThumbnailDetails without valid image URL"));else{var c=a.style.cssText;if(g.Ac&&10>document.documentMode)c=tg;else{var d=document;"function"===typeof HTMLTemplateElement&&(d=g.hh("TEMPLATE").content.ownerDocument);d=d.implementation.createHTMLDocument("").createElement("DIV");d.style.cssText=c;c=Bka(d.style)}b=fda(c,eda({"background-image":'url("'+b+'")'}));a.style.cssText=sg(b)}};
NXa=function(a){var b=g.ch("html5-video-player");b&&g.jo(b,"ytp-ad-display-override",a)};
L2=function(a,b,c,d){xL.call(this,a);this.api=a;this.bb=c;this.u={};this.I=b;a=new g.W({F:"div",Fa:["video-ads","ytp-ad-module"]});g.M(this,a);HF&&g.fo(a.element,"ytp-ads-tiny-mode");this.D=new RK(a.element);g.M(this,this.D);g.BN(this.api,a.element,4);dVa(d)&&(d=new g.W({F:"div",Fa:["ytp-ad-underlay"]}),g.M(this,d),this.B=new RK(d.element),g.M(this,this.B),g.BN(this.api,d.element,0));g.M(this,nFa())};
OXa=function(a,b){a=g.Ef(a.u,b.id,null);null==a&&g.pz(Error("Component not found for element id: "+b.id));return a||null};
PXa=function(a){g.eO.call(this,a);var b=this;this.u=this.ib=null;this.created=!1;this.Er=new xK(this.player);this.B=function(){function d(){return b.ib}
if(null!=b.u)return b.u;var e=uEa({Vr:a.getVideoData(1)});e=new aTa({kX:new B2(function(){return b.ib},A2(b.j).tm),
Ir:e.VY(),SX:d,J_:d,pk:A2(b.j).pk,yk:e.WH(),El:A2(b.j).El,G:b.player,wh:A2(b.j).wh,Ta:b.j.j.Ta,Oi:A2(b.j).Oi,md:b.j.j.md});b.u=e.wW;return b.u};
this.j=new iXa(this.player,this,this.Er,this.B);g.M(this,this.j);var c=a.V();!$F(c)||g.SF(c)||bG(c)||(g.M(this,new L2(a,function(){return b.ib},A2(this.j).bb,A2(this.j).wh)),g.M(this,new jXa(a)))};
QXa=function(a){a.created!==a.loaded&&cA("Created and loaded are out of sync")};
RXa=function(a,b){b===a.fv&&(a.fv=void 0)};
SXa=function(a){a.ib?A2(a.j).Kc.pI()||a.ib.pI()||A2(a.j).Iq.ls():cA("AdService is null when calling maybeUnlockPrerollIfReady")};
TXa=function(a){a=g.r(A2(a.j).Oi.Ej.keys());for(var b=a.next();!b.done;b=a.next())if(b=b.value,"SLOT_TYPE_PLAYER_BYTES"===b.slotType&&"core"===b.fb)return!0;return!1};
UXa=function(a){a=g.r(A2(a.j).Oi.Ej.values());for(var b=a.next();!b.done;b=a.next())if("LAYOUT_TYPE_MEDIA_BREAK"===b.value.layoutType)return!0;return!1};
Mua=function(a,b,c,d){c=void 0===c?"":c;d=void 0===d?"":d;var e=A2(a.j).wh,f=a.player.getVideoData(1),h=f&&f.getPlayerResponse()||{};h=h&&h.playerConfig&&h.playerConfig.daiConfig&&h.playerConfig.daiConfig.enableDai||!1;f=f&&f.vf()||!1;e=VXa(b,e,h,f,A2(a.j).vl);Pua(A2(a.j).Mc,c,e.QD,b,d);a.ib&&0<e.gy.length&&(a=a.ib,b=e.gy,b=BEa(a,b),b=CEa(a,b),DEa(a,b))};
VXa=function(a,b,c,d,e){var f={gy:[],QD:[]};a=g.r(a);for(var h=a.next();!h.done;h=a.next())if((h=h.value)&&null!=h.renderer){var l=h.renderer;if(!bVa(b)){var m=void 0,n=void 0,p=void 0,q=void 0,u=e;if(null==(q=l.sandwichedLinearAdRenderer)?0:null==(p=q.adVideoStart)?0:p.adMessageRenderer)m=YSa(l.sandwichedLinearAdRenderer.adVideoStart.adMessageRenderer,u),l.sandwichedLinearAdRenderer.adVideoStart.adMessageRenderer=m;else if(null==(n=l.linearAdSequenceRenderer)?0:null==(m=n.adStart)?0:m.adMessageRenderer)m=
YSa(l.linearAdSequenceRenderer.adStart.adMessageRenderer,u),l.linearAdSequenceRenderer.adStart.adMessageRenderer=m}m=b;n=d;c||null!=l.instreamSurveyAdRenderer||null!=l.sandwichedLinearAdRenderer&&null!=l.sandwichedLinearAdRenderer.linearAd&&null!=l.sandwichedLinearAdRenderer.linearAd.instreamSurveyAdRenderer||null!=l.videoAdTrackingRenderer||null!=l.clientForecastingAdRenderer||null!=l.actionCompanionAdRenderer||null!=l.imageCompanionAdRenderer||null!=l.shoppingCompanionCarouselRenderer||null!=l.adsEngagementPanelRenderer||
null!=l.invideoOverlayAdRenderer||null!=l.adBreakServiceRenderer?l=!0:null!=l.instreamVideoAdRenderer||null!=l.remoteSlotsRenderer?(l=n)||(l=m,g.lG(l.G.V())?l=l.G.V().K("html5_enable_vod_lsar_ivar_pacf_unplugged"):$F(l.G.V())||g.aG(l.G.V())?l=!0:(cA("Single VOD on legacy path."),l=!1)):l=l.linearAdSequenceRenderer&&l.linearAdSequenceRenderer.linearAds?l.linearAdSequenceRenderer.adStart?bVa(m):n||dTa(m):null!=l.sandwichedLinearAdRenderer?M_(m):!1;l?f.QD.push(h):f.gy.push(h)}return f};
WXa=function(){if(!g.Ac)return!1;try{return new ActiveXObject("MSXML2.DOMDocument"),!0}catch(a){return!1}};
g.YXa=function(a){if("undefined"!=typeof DOMParser){var b=new DOMParser;a=zg(a);return b.parseFromString(g.yg(a),"application/xml")}if(XXa){b=new ActiveXObject("MSXML2.DOMDocument");b.resolveExternals=!1;b.validateOnParse=!1;try{b.setProperty("ProhibitDTD",!0),b.setProperty("MaxXMLSize",2048),b.setProperty("MaxElementDepth",256)}catch(c){}b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");};
g.M2=function(a,b){var c="ytp-miniplayer-button-bottom-right",d={F:"svg",X:{height:"18px",version:"1.1",viewBox:"0 0 22 18",width:"22px"},W:[{F:"g",X:{fill:"none","fill-rule":"evenodd",stroke:"none","stroke-width":"1"},W:[{F:"g",X:{transform:"translate(-1.000000, -3.000000)"},W:[{F:"polygon",X:{points:"0 0 24 0 24 24 0 24"}},{F:"path",X:{d:"M19,7 L5,7 L5,17 L19,17 L19,7 Z M23,19 L23,4.98 C23,3.88 22.1,3 21,3 L3,3 C1.9,3 1,3.88 1,4.98 L1,19 C1,20.1 1.9,21 3,21 L21,21 C22.1,21 23,20.1 23,19 Z M21,19.02 L3,19.02 L3,4.97 L21,4.97 L21,19.02 Z",
fill:"#fff","fill-rule":"nonzero"}}]}]}]},e="Open video page";a.V().K("kevlar_miniplayer_expand_top")&&(c="ytp-miniplayer-button-top-left",d={F:"svg",X:{height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px"},W:[{F:"g",X:{fill:"none","fill-rule":"evenodd",stroke:"none","stroke-width":"1"},W:[{F:"g",X:{transform:"translate(12.000000, 12.000000) scale(-1, 1) translate(-12.000000, -12.000000) "},W:[{F:"path",X:{d:"M19,19 L5,19 L5,5 L12,5 L12,3 L5,3 C3.89,3 3,3.9 3,5 L3,19 C3,20.1 3.89,21 5,21 L19,21 C20.1,21 21,20.1 21,19 L21,12 L19,12 L19,19 Z M14,3 L14,5 L17.59,5 L7.76,14.83 L9.17,16.24 L19,6.41 L19,10 L21,10 L21,3 L14,3 Z",
fill:"#fff","fill-rule":"nonzero"}}]}]}]},e="Expand");g.W.call(this,{F:"button",Fa:["ytp-miniplayer-expand-watch-page-button","ytp-button",c],X:{title:"{{title}}","data-tooltip-target-id":"ytp-miniplayer-expand-watch-page-button"},W:[d]});this.G=a;this.Ra("click",this.onClick,this);this.Oa("title",IO(a,e,"i"));g.$e(this,g.dP(b.wc(),this.element))};
aaa=[];da="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};
g.ca=caa(this);ea("Symbol",function(a){function b(f){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new c(d+(f||"")+"_"+e++,f)}
function c(f,h){this.j=f;da(this,"description",{configurable:!0,writable:!0,value:h})}
if(a)return a;c.prototype.toString=function(){return this.j};
var d="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",e=0;return b});
ea("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=g.ca[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&da(d.prototype,a,{configurable:!0,writable:!0,value:function(){return daa(baa(this))}})}return a});
var ZXa="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)ha(d,e)&&(a[e]=d[e])}return a};
ea("Object.assign",function(a){return a||ZXa});
var faa="function"==typeof Object.create?Object.create:function(a){function b(){}
b.prototype=a;return new b},$Xa=function(){function a(){function c(){}
new c;Reflect.construct(c,[],function(){});
return new c instanceof c}
if("undefined"!=typeof Reflect&&Reflect.construct){if(a())return Reflect.construct;var b=Reflect.construct;return function(c,d,e){c=b(c,d);e&&Reflect.setPrototypeOf(c,e.prototype);return c}}return function(c,d,e){void 0===e&&(e=c);
e=faa(e.prototype||Object.prototype);return Function.prototype.apply.call(c,e,d)||e}}(),aYa;
if("function"==typeof Object.setPrototypeOf)aYa=Object.setPrototypeOf;else{var bYa;a:{var cYa={a:!0},dYa={};try{dYa.__proto__=cYa;bYa=dYa.a;break a}catch(a){}bYa=!1}aYa=bYa?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var ia=aYa;
ka.prototype.S=function(a){this.u=a};
ka.prototype.return=function(a){this.B={return:a};this.j=this.D};
ka.prototype.Ma=function(a){this.j=a};
ea("Reflect",function(a){return a?a:{}});
ea("Reflect.construct",function(){return $Xa});
ea("Reflect.setPrototypeOf",function(a){return a?a:ia?function(b,c){try{return ia(b,c),!0}catch(d){return!1}}:null});
ea("Promise",function(a){function b(h){this.j=0;this.B=void 0;this.u=[];this.J=!1;var l=this.C();try{h(l.resolve,l.reject)}catch(m){l.reject(m)}}
function c(){this.j=null}
function d(h){return h instanceof b?h:new b(function(l){l(h)})}
if(a)return a;c.prototype.u=function(h){if(null==this.j){this.j=[];var l=this;this.B(function(){l.D()})}this.j.push(h)};
var e=g.ca.setTimeout;c.prototype.B=function(h){e(h,0)};
c.prototype.D=function(){for(;this.j&&this.j.length;){var h=this.j;this.j=[];for(var l=0;l<h.length;++l){var m=h[l];h[l]=null;try{m()}catch(n){this.C(n)}}}this.j=null};
c.prototype.C=function(h){this.B(function(){throw h;})};
b.prototype.C=function(){function h(n){return function(p){m||(m=!0,n.call(l,p))}}
var l=this,m=!1;return{resolve:h(this.Aa),reject:h(this.D)}};
b.prototype.Aa=function(h){if(h===this)this.D(new TypeError("A Promise cannot resolve to itself"));else if(h instanceof b)this.Ba(h);else{a:switch(typeof h){case "object":var l=null!=h;break a;case "function":l=!0;break a;default:l=!1}l?this.qa(h):this.I(h)}};
b.prototype.qa=function(h){var l=void 0;try{l=h.then}catch(m){this.D(m);return}"function"==typeof l?this.Ia(l,h):this.I(h)};
b.prototype.D=function(h){this.S(2,h)};
b.prototype.I=function(h){this.S(1,h)};
b.prototype.S=function(h,l){if(0!=this.j)throw Error("Cannot settle("+h+", "+l+"): Promise already settled in state"+this.j);this.j=h;this.B=l;2===this.j&&this.ya();this.Z()};
b.prototype.ya=function(){var h=this;e(function(){if(h.ea()){var l=g.ca.console;"undefined"!==typeof l&&l.error(h.B)}},1)};
b.prototype.ea=function(){if(this.J)return!1;var h=g.ca.CustomEvent,l=g.ca.Event,m=g.ca.dispatchEvent;if("undefined"===typeof m)return!0;"function"===typeof h?h=new h("unhandledrejection",{cancelable:!0}):"function"===typeof l?h=new l("unhandledrejection",{cancelable:!0}):(h=g.ca.document.createEvent("CustomEvent"),h.initCustomEvent("unhandledrejection",!1,!0,h));h.promise=this;h.reason=this.B;return m(h)};
b.prototype.Z=function(){if(null!=this.u){for(var h=0;h<this.u.length;++h)f.u(this.u[h]);this.u=null}};
var f=new c;b.prototype.Ba=function(h){var l=this.C();h.QB(l.resolve,l.reject)};
b.prototype.Ia=function(h,l){var m=this.C();try{h.call(l,m.resolve,m.reject)}catch(n){m.reject(n)}};
b.prototype.then=function(h,l){function m(u,w){return"function"==typeof u?function(y){try{n(u(y))}catch(A){p(A)}}:w}
var n,p,q=new b(function(u,w){n=u;p=w});
this.QB(m(h,n),m(l,p));return q};
b.prototype.catch=function(h){return this.then(void 0,h)};
b.prototype.QB=function(h,l){function m(){switch(n.j){case 1:h(n.B);break;case 2:l(n.B);break;default:throw Error("Unexpected state: "+n.j);}}
var n=this;null==this.u?f.u(m):this.u.push(m);this.J=!0};
b.resolve=d;b.reject=function(h){return new b(function(l,m){m(h)})};
b.race=function(h){return new b(function(l,m){for(var n=g.r(h),p=n.next();!p.done;p=n.next())d(p.value).QB(l,m)})};
b.all=function(h){var l=g.r(h),m=l.next();return m.done?d([]):new b(function(n,p){function q(y){return function(A){u[y]=A;w--;0==w&&n(u)}}
var u=[],w=0;do u.push(void 0),w++,d(m.value).QB(q(u.length-1),p),m=l.next();while(!m.done)})};
return b});
ea("Array.prototype.find",function(a){return a?a:function(b,c){return maa(this,b,c).BT}});
ea("WeakMap",function(a){function b(m){this.j=(l+=Math.random()+1).toString();if(m){m=g.r(m);for(var n;!(n=m.next()).done;)n=n.value,this.set(n[0],n[1])}}
function c(){}
function d(m){var n=typeof m;return"object"===n&&null!==m||"function"===n}
function e(m){if(!ha(m,h)){var n=new c;da(m,h,{value:n})}}
function f(m){var n=Object[m];n&&(Object[m]=function(p){if(p instanceof c)return p;Object.isExtensible(p)&&e(p);return n(p)})}
if(function(){if(!a||!Object.seal)return!1;try{var m=Object.seal({}),n=Object.seal({}),p=new a([[m,2],[n,3]]);if(2!=p.get(m)||3!=p.get(n))return!1;p.delete(m);p.set(n,4);return!p.has(m)&&4==p.get(n)}catch(q){return!1}}())return a;
var h="$jscomp_hidden_"+Math.random();f("freeze");f("preventExtensions");f("seal");var l=0;b.prototype.set=function(m,n){if(!d(m))throw Error("Invalid WeakMap key");e(m);if(!ha(m,h))throw Error("WeakMap key fail: "+m);m[h][this.j]=n;return this};
b.prototype.get=function(m){return d(m)&&ha(m,h)?m[h][this.j]:void 0};
b.prototype.has=function(m){return d(m)&&ha(m,h)&&ha(m[h],this.j)};
b.prototype.delete=function(m){return d(m)&&ha(m,h)&&ha(m[h],this.j)?delete m[h][this.j]:!1};
return b});
ea("Map",function(a){function b(){var l={};return l.previous=l.next=l.head=l}
function c(l,m){var n=l.j;return daa(function(){if(n){for(;n.head!=l.j;)n=n.previous;for(;n.next!=n.head;)return n=n.next,{done:!1,value:m(n)};n=null}return{done:!0,value:void 0}})}
function d(l,m){var n=m&&typeof m;"object"==n||"function"==n?f.has(m)?n=f.get(m):(n=""+ ++h,f.set(m,n)):n="p_"+m;var p=l.data_[n];if(p&&ha(l.data_,n))for(l=0;l<p.length;l++){var q=p[l];if(m!==m&&q.key!==q.key||m===q.key)return{id:n,list:p,index:l,entry:q}}return{id:n,list:p,index:-1,entry:void 0}}
function e(l){this.data_={};this.j=b();this.size=0;if(l){l=g.r(l);for(var m;!(m=l.next()).done;)m=m.value,this.set(m[0],m[1])}}
if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var l=Object.seal({x:4}),m=new a(g.r([[l,"s"]]));if("s"!=m.get(l)||1!=m.size||m.get({x:4})||m.set({x:4},"t")!=m||2!=m.size)return!1;var n=m.entries(),p=n.next();if(p.done||p.value[0]!=l||"s"!=p.value[1])return!1;p=n.next();return p.done||4!=p.value[0].x||"t"!=p.value[1]||!n.next().done?!1:!0}catch(q){return!1}}())return a;
var f=new WeakMap;e.prototype.set=function(l,m){l=0===l?0:l;var n=d(this,l);n.list||(n.list=this.data_[n.id]=[]);n.entry?n.entry.value=m:(n.entry={next:this.j,previous:this.j.previous,head:this.j,key:l,value:m},n.list.push(n.entry),this.j.previous.next=n.entry,this.j.previous=n.entry,this.size++);return this};
e.prototype.delete=function(l){l=d(this,l);return l.entry&&l.list?(l.list.splice(l.index,1),l.list.length||delete this.data_[l.id],l.entry.previous.next=l.entry.next,l.entry.next.previous=l.entry.previous,l.entry.head=null,this.size--,!0):!1};
e.prototype.clear=function(){this.data_={};this.j=this.j.previous=b();this.size=0};
e.prototype.has=function(l){return!!d(this,l).entry};
e.prototype.get=function(l){return(l=d(this,l).entry)&&l.value};
e.prototype.entries=function(){return c(this,function(l){return[l.key,l.value]})};
e.prototype.keys=function(){return c(this,function(l){return l.key})};
e.prototype.values=function(){return c(this,function(l){return l.value})};
e.prototype.forEach=function(l,m){for(var n=this.entries(),p;!(p=n.next()).done;)p=p.value,l.call(m,p[1],p[0],this)};
e.prototype[Symbol.iterator]=e.prototype.entries;var h=0;return e});
ea("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}});
ea("Number.isInteger",function(a){return a?a:function(b){return Number.isFinite(b)?b===Math.floor(b):!1}});
ea("Math.trunc",function(a){return a?a:function(b){b=Number(b);if(isNaN(b)||Infinity===b||-Infinity===b||0===b)return b;var c=Math.floor(Math.abs(b));return 0>b?-c:c}});
ea("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
ea("Array.prototype.entries",function(a){return a?a:function(){return Aa(this,function(b,c){return[b,c]})}});
ea("Array.prototype.keys",function(a){return a?a:function(){return Aa(this,function(b){return b})}});
ea("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});
ea("Object.setPrototypeOf",function(a){return a||ia});
ea("Set",function(a){function b(c){this.j=new Map;if(c){c=g.r(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.j.size}
if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var c=Object.seal({x:4}),d=new a(g.r([c]));if(!d.has(c)||1!=d.size||d.add(c)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||4!=f.value[0].x||f.value[1]!=f.value[0]?!1:e.next().done}catch(h){return!1}}())return a;
b.prototype.add=function(c){c=0===c?0:c;this.j.set(c,c);this.size=this.j.size;return this};
b.prototype.delete=function(c){c=this.j.delete(c);this.size=this.j.size;return c};
b.prototype.clear=function(){this.j.clear();this.size=0};
b.prototype.has=function(c){return this.j.has(c)};
b.prototype.entries=function(){return this.j.entries()};
b.prototype.values=function(){return this.j.values()};
b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.j.forEach(function(f){return c.call(d,f,f,e)})};
return b});
ea("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(l){return l};
var e=[],f="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof f){b=f.call(b);for(var h=0;!(f=b.next()).done;)e.push(c.call(d,f.value,h++))}else for(f=b.length,h=0;h<f;h++)e.push(c.call(d,b[h],h));return e}});
ea("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)ha(b,d)&&c.push([d,b[d]]);return c}});
ea("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=Ca(this,b,"endsWith");b+="";void 0===c&&(c=d.length);c=Math.max(0,Math.min(c|0,d.length));for(var e=b.length;0<e&&0<c;)if(d[--c]!=b[--e])return!1;return 0>=e}});
ea("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Ca(this,b,"startsWith");b+="";var e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var h=0;h<f&&c<e;)if(d[c++]!=b[h++])return!1;return h>=f}});
ea("String.prototype.repeat",function(a){return a?a:function(b){var c=Ca(this,null,"repeat");if(0>b||1342177279<b)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}});
ea("Array.prototype.values",function(a){return a?a:function(){return Aa(this,function(b,c){return c})}});
ea("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
ea("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(0>c&&(c=Math.max(c+e,0));c<e;c++){var f=d[c];if(f===b||Object.is(f,b))return!0}return!1}});
ea("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==Ca(this,b,"includes").indexOf(b,c||0)}});
ea("globalThis",function(a){return a||g.ca});
ea("Promise.prototype.finally",function(a){return a?a:function(b){return this.then(function(c){return Promise.resolve(b()).then(function(){return c})},function(c){return Promise.resolve(b()).then(function(){throw c;
})})}});
ea("Array.prototype.findIndex",function(a){return a?a:function(b,c){return maa(this,b,c).i}});
ea("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)ha(b,d)&&c.push(b[d]);return c}});
ea("Array.prototype.fill",function(a){return a?a:function(b,c,d){var e=this.length||0;0>c&&(c=Math.max(0,e+c));if(null==d||d>e)d=e;d=Number(d);0>d&&(d=Math.max(0,e+d));for(c=Number(c||0);c<d;c++)this[c]=b;return this}});
ea("Int8Array.prototype.fill",Da);ea("Uint8Array.prototype.fill",Da);ea("Uint8ClampedArray.prototype.fill",Da);ea("Int16Array.prototype.fill",Da);ea("Uint16Array.prototype.fill",Da);ea("Int32Array.prototype.fill",Da);ea("Uint32Array.prototype.fill",Da);ea("Float32Array.prototype.fill",Da);ea("Float64Array.prototype.fill",Da);ea("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});
ea("String.prototype.padStart",function(a){return a?a:function(b,c){var d=Ca(this,null,"padStart");b-=d.length;c=void 0!==c?String(c):" ";return(0<b&&c?c.repeat(Math.ceil(b/c.length)).substring(0,b):"")+d}});
ea("Object.fromEntries",function(a){return a?a:function(b){var c={};if(!(Symbol.iterator in b))throw new TypeError(""+b+" is not iterable");b=b[Symbol.iterator].call(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;if(Object(d)!==d)throw new TypeError("iterable for fromEntries should yield objects");c[d[0]]=d[1]}return c}});
ea("WeakSet",function(a){function b(c){this.j=new WeakMap;if(c){c=g.r(c);for(var d;!(d=c.next()).done;)this.add(d.value)}}
if(function(){if(!a||!Object.seal)return!1;try{var c=Object.seal({}),d=Object.seal({}),e=new a([c]);if(!e.has(c)||e.has(d))return!1;e.delete(c);e.add(d);return!e.has(c)&&e.has(d)}catch(f){return!1}}())return a;
b.prototype.add=function(c){this.j.set(c,!0);return this};
b.prototype.has=function(c){return this.j.has(c)};
b.prototype.delete=function(c){return this.j.delete(c)};
return b});
ea("Array.prototype.copyWithin",function(a){function b(c){c=Number(c);return Infinity===c||-Infinity===c?c:c|0}
return a?a:function(c,d,e){var f=this.length;c=b(c);d=b(d);e=void 0===e?f:b(e);c=0>c?Math.max(f+c,0):Math.min(c,f);d=0>d?Math.max(f+d,0):Math.min(d,f);e=0>e?Math.max(f+e,0):Math.min(e,f);if(c<d)for(;d<e;)d in this?this[c++]=this[d++]:(delete this[c++],d++);else for(e=Math.min(e,f+d-c),c+=e-d;e>d;)--e in this?this[--c]=this[e]:delete this[--c];return this}});
ea("Int8Array.prototype.copyWithin",Ea);ea("Uint8Array.prototype.copyWithin",Ea);ea("Uint8ClampedArray.prototype.copyWithin",Ea);ea("Int16Array.prototype.copyWithin",Ea);ea("Uint16Array.prototype.copyWithin",Ea);ea("Int32Array.prototype.copyWithin",Ea);ea("Uint32Array.prototype.copyWithin",Ea);ea("Float32Array.prototype.copyWithin",Ea);ea("Float64Array.prototype.copyWithin",Ea);ea("Number.parseInt",function(a){return a||parseInt});
Ci=Ci||{};g.C=this||self;Na="closure_uid_"+(1E9*Math.random()>>>0);oaa=0;g.Va(Xa,Error);Xa.prototype.name="CustomError";var zda;g.Va(Ya,Xa);Ya.prototype.name="AssertionError";var ue=void 0,te,Kba="undefined"!==typeof TextDecoder,uaa,taa="undefined"!==typeof TextEncoder;var ib=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},zaa=/&/g,Aaa=/</g,Baa=/>/g,Caa=/"/g,Daa=/'/g,Eaa=/\x00/g,yaa=/[\x00&<>"']/;var eYa=g.Ga("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var ob;if(null!=eYa&&eYa){var fYa=g.C.navigator;ob=fYa?fYa.userAgentData||null:null}else ob=null;var Naa,Pk,Ol;Naa=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.indexOf(b,0);
for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1};
g.gYa=Array.prototype.lastIndexOf?function(a,b){return Array.prototype.lastIndexOf.call(a,b,a.length-1)}:function(a,b){var c=a.length-1;
0>c&&(c=Math.max(0,a.length+c));if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.lastIndexOf(b,c);for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1};
g.qc=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)};
g.um=Array.prototype.filter?function(a,b,c){return Array.prototype.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,h="string"===typeof a?a.split(""):a,l=0;l<d;l++)if(l in h){var m=h[l];
b.call(c,m,l,a)&&(e[f++]=m)}return e};
g.Ok=Array.prototype.map?function(a,b,c){return Array.prototype.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f="string"===typeof a?a.split(""):a,h=0;h<d;h++)h in f&&(e[h]=b.call(c,f[h],h,a));
return e};
Pk=Array.prototype.reduce?function(a,b,c){return Array.prototype.reduce.call(a,b,c)}:function(a,b,c){var d=c;
(0,g.qc)(a,function(e,f){d=b.call(void 0,d,e,f,a)});
return d};
Ol=Array.prototype.some?function(a,b){return Array.prototype.some.call(a,b,void 0)}:function(a,b){for(var c=a.length,d="string"===typeof a?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a))return!0;
return!1};
g.Td=Array.prototype.every?function(a,b,c){return Array.prototype.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return!1;
return!0};sc[" "]=function(){};var Al,AT,LSa,hYa,iYa,jYa,GF,HF,kYa;g.IF=xb();g.Ac=yb();g.vw=tb("Edge");g.pG=g.vw||g.Ac;Al=tb("Gecko")&&!(gb(g.nb(),"WebKit")&&!tb("Edge"))&&!(tb("Trident")||tb("MSIE"))&&!tb("Edge");g.gf=gb(g.nb(),"WebKit")&&!tb("Edge");AT=Ib();LSa=Kaa();g.Wu=Jaa();hYa=Gb();iYa=tb("iPad");jYa=tb("iPod");GF=Hb();HF=gb(g.nb(),"KaiOS");
a:{var lYa="",mYa=function(){var a=g.nb();if(Al)return/rv:([^\);]+)(\)|;)/.exec(a);if(g.vw)return/Edge\/([\d\.]+)/.exec(a);if(g.Ac)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(g.gf)return/WebKit\/(\S+)/.exec(a);if(g.IF)return/(?:Version)[ \/]?(\S+)/.exec(a)}();
mYa&&(lYa=mYa?mYa[1]:"");if(g.Ac){var nYa=Xaa();if(null!=nYa&&nYa>parseFloat(lYa)){kYa=String(nYa);break a}}kYa=lYa}var uc=kYa,Yaa={},oYa;if(g.C.document&&g.Ac){var pYa=Xaa();oYa=pYa?pYa:parseInt(uc,10)||void 0}else oYa=void 0;var Zaa=oYa;var RF,vI;g.oB=Bb();RF=Gb()||tb("iPod");vI=tb("iPad");g.JF=Gaa();g.$D=Cb();g.Xv=Db()&&!Hb();var aba={},Cc=null;var Dc="undefined"!==typeof Uint8Array,dba,Kc={};var eba;Mc.prototype.isEmpty=function(){return null==this.wd};var Vc="function"===typeof Symbol&&"symbol"===typeof Symbol()?Symbol(void 0):void 0;var Vd,qd=Object.freeze(Yc([])),qYa="undefined"!=typeof Symbol&&"undefined"!=typeof Symbol.hasInstance;g.k=Ud.prototype;g.k.toArray=function(){return this.toJSON()};
g.k.toJSON=function(){var a=this.ud;return Vd?a:ld(a,oba,pba)};
g.k.clone=function(){var a=ld(this.ud,qba,iba);bd(a);Sd=a;a=new this.constructor(a);Sd=null;Zd(a,this);return a};
g.k.isMutable=function(){return!dd(this)};
g.k.jq=function(){return dd(this)};
g.k.toString=function(){return this.ud.toString()};
var Sd;var Fba,Cba;Fba="function"===typeof Uint8Array.prototype.slice;g.be=0;g.ce=0;Cba="function"===typeof BigInt;g.k=g.de.prototype;g.k.init=function(a,b,c,d){d=void 0===d?{}:d;this.IB=void 0===d.IB?!1:d.IB;a&&(a=ae(a),this.u=a.buffer,this.D=a.jq,this.C=b||0,this.B=void 0!==c?this.C+c:this.u.length,this.j=this.C)};
g.k.clear=function(){this.u=null;this.D=!1;this.j=this.B=this.C=0;this.IB=!1};
g.k.reset=function(){this.j=this.C};
g.k.advance=function(a){ee(this,this.j+a)};
g.k.pB=aa(0);var Hba=[];me.prototype.reset=function(){this.j.reset();this.B=this.j.j;this.u=this.C=-1};
me.prototype.advance=function(a){this.j.advance(a)};
var iU=[];var Nba;we.prototype.length=function(){return this.j.length};
we.prototype.end=function(){var a=this.j;this.j=[];return a};g.v(Ce,Ud);Ce.prototype.OA=function(){return this};
if(qYa){var rYa={};Object.defineProperties(Ce,(rYa[Symbol.hasInstance]=kba(function(){throw Error(void 0);}),rYa))};var De,He,Ge,Fe,sYa,tYa,uYa,Q2,vYa,R2,wYa;De=Symbol();He=Symbol();Ge=Symbol();Fe=Symbol();sYa=g.Pe(function(a,b,c){if(1!==a.u)return!1;a=g.ke(a.j);xd(b,c,a,0);return!0},g.Qe);
tYa=g.Pe(function(a,b,c){if(0!==a.u)return!1;a=g.fe(a.j);xd(b,c,a,0);return!0},g.Re);
uYa=g.Pe(function(a,b,c){if(0!==a.u)return!1;a=g.ge(a.j);xd(b,c,a,0);return!0},g.Se);
g.N2=g.Pe(function(a,b,c){if(2!==a.u)return!1;g.E(b,c,g.ve(a));return!0},g.oca);
g.O2=g.Pe(function(a,b,c,d,e){if(2!==a.u)return!1;g.se(a,Kd(b,c,d),e);return!0},function(a,b,c,d,e){b=Fd(b,d,c);
if(null!=b)for(d=0;d<b.length;d++){var f=Sba(a,c);e(b[d],a);Tba(a,f)}});
g.P2=g.Pe(function(a,b,c,d,e,f){if(2!==a.u)return!1;(f=Cd(b,f))&&f!==c&&wd(b,f);b=g.vba(b,d,c);g.se(a,b,e);return!0},g.pca);
Q2=g.Pe(function(a,b,c){if(2!==a.u)return!1;g.E(b,c,Lba(a));return!0},function(a,b,c){b=td(b,c);
null!=b&&g.Be(a,c,ae(b).buffer)});
vYa=g.Pe(function(a,b,c){if(2!==a.u)return!1;a=Lba(a);g.Bd(b,c,a,void 0,!0);return!0},function(a,b,c){b=tba(b,c);
if(null!=b)for(var d=0;d<b.length;d++){var e=b[d];null!=e&&g.Be(a,c,ae(e).buffer)}});
R2=g.Pe(function(a,b,c){if(0!==a.u)return!1;g.E(b,c,g.ge(a.j)>>>0);return!0},function(a,b,c){b=g.nd(b,c);
null!=b&&null!=b&&(g.Ae(a,c,0),xe(a.j,b))});
wYa=g.Pe(function(a,b,c){if(0!==a.u)return!1;g.E(b,c,g.ge(a.j));return!0},function(a,b,c){b=g.nd(b,c);
null!=b&&(b=parseInt(b,10),g.Ae(a,c,0),Qba(a.j,b))});g.v(g.I,Ce);g.I.prototype.OA=function(){if(dd(this)){var a={dH:!0};var b=dd(this);if(b&&!a.dH)throw Error("copyRepeatedFields must be true for frozen messages");b||hba(this.ud);var c=new this.constructor;this.D&&(c.D=this.D.slice());for(var d=this.ud,e=0;e<d.length;e++){var f=d[e];if(e===d.length-1&&ed(f))for(var h in f){var l=+h;Number.isNaN(l)?md(c)[h]=f[h]:Vba(this,c,l,f[h],b,a)}else Vba(this,c,e-this.C,f,b,a)}c.S=this;a=c}else a=this;return a};
if(qYa){var xYa={};Object.defineProperties(g.I,(xYa[Symbol.hasInstance]=kba(Object[Symbol.hasInstance]),xYa))};g.v(rca,g.I);var yYa=[rca,1,Q2,2,Q2];g.v(sca,g.I);var zYa=[sca,1,Q2,2,Q2];g.v(Te,g.I);var AYa=[Te,1,Q2,2,Q2];g.v(Ue,g.I);var S2=[1,2,3],BYa=[Ue,1,g.P2,yYa,S2,2,g.P2,zYa,S2,3,g.P2,AYa,S2];g.k=Ve.prototype;g.k.pX=function(a){var b=g.za.apply(1,arguments),c=this.NH(b);c?c.push(new tca(a)):this.vS(a,b)};
g.k.vS=function(a){this.xv.set(this.eP(g.za.apply(1,arguments)),[new tca(a)])};
g.k.NH=function(){var a=this.eP(g.za.apply(0,arguments));return this.xv.has(a)?this.xv.get(a):void 0};
g.k.YY=function(){var a=this.NH(g.za.apply(0,arguments));return a&&a.length?a[0]:void 0};
g.k.clear=function(){this.xv.clear()};
g.k.eP=function(){var a=g.za.apply(0,arguments);return a?a.join(","):"key"};g.v(We,Ve);We.prototype.B=function(a){var b=g.za.apply(1,arguments),c=0,d=this.YY(b);d&&(c=d.hO);this.vS(c+a,b)};g.v(Xe,Ve);Xe.prototype.ih=function(a){this.pX(a,g.za.apply(1,arguments))};g.J.prototype.Fm=!1;g.J.prototype.isDisposed=function(){return this.Fm};
g.J.prototype.dispose=function(){this.Fm||(this.Fm=!0,this.ra())};
g.J.prototype.ra=function(){if(this.Xk)for(;this.Xk.length;)this.Xk.shift()()};g.af.prototype.stopPropagation=function(){this.u=!0};
g.af.prototype.preventDefault=function(){this.defaultPrevented=!0};var bf={};var Jca=function(){if(!g.C.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});
try{g.C.addEventListener("test",function(){},b),g.C.removeEventListener("test",function(){},b)}catch(c){}return a}();var lIa=xca("AnimationEnd"),ALa=xca("TransitionEnd");g.Va(hf,g.af);var CYa={2:"touch",3:"pen",4:"mouse"};
hf.prototype.init=function(a,b){var c=this.type=a.type,d=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=b;(b=a.relatedTarget)?Al&&(tc(b,"nodeName")||(b=null)):"mouseover"==c?b=a.fromElement:"mouseout"==c&&(b=a.toElement);this.relatedTarget=b;d?(this.clientX=void 0!==d.clientX?d.clientX:d.pageX,this.clientY=void 0!==d.clientY?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0):(this.clientX=void 0!==a.clientX?
a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.key=a.key||"";this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId=a.pointerId||0;this.pointerType="string"===typeof a.pointerType?a.pointerType:CYa[a.pointerType]||"";this.state=a.state;this.j=a;a.defaultPrevented&&hf.Re.preventDefault.call(this)};
hf.prototype.stopPropagation=function(){hf.Re.stopPropagation.call(this);this.j.stopPropagation?this.j.stopPropagation():this.j.cancelBubble=!0};
hf.prototype.preventDefault=function(){hf.Re.preventDefault.call(this);var a=this.j;a.preventDefault?a.preventDefault():a.returnValue=!1};var yca="closure_listenable_"+(1E6*Math.random()|0);var zca=0;var Fca="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");Jf.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.listeners[f];a||(a=this.listeners[f]=[],this.j++);var h=Lf(a,b,d,e);-1<h?(b=a[h],c||(b.PB=!1)):(b=new Aca(b,this.src,f,!!d,e),b.PB=c,a.push(b));return b};
Jf.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=Lf(e,b,c,d);return-1<b?(kf(e[b]),g.Wb(e,b),0==e.length&&(delete this.listeners[a],this.j--),!0):!1};
Jf.prototype.Uy=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=Lf(a,b,c,d));return-1<e?a[e]:null};var Qf="closure_lm_"+(1E6*Math.random()|0),Sf={},Lca=0,Tf="__closure_events_fn_"+(1E9*Math.random()>>>0);g.Va(g.Uf,g.J);g.Uf.prototype[yca]=!0;g.k=g.Uf.prototype;g.k.addEventListener=function(a,b,c,d){g.Nf(this,a,b,c,d)};
g.k.removeEventListener=function(a,b,c,d){Nca(this,a,b,c,d)};
g.k.dispatchEvent=function(a){var b=this.La;if(b){var c=[];for(var d=1;b;b=b.La)c.push(b),++d}b=this.Gb;d=a.type||a;if("string"===typeof a)a=new g.af(a,b);else if(a instanceof g.af)a.target=a.target||b;else{var e=a;a=new g.af(d,b);g.If(a,e)}e=!0;if(c)for(var f=c.length-1;!a.u&&0<=f;f--){var h=a.currentTarget=c[f];e=Vf(h,d,!0,a)&&e}a.u||(h=a.currentTarget=b,e=Vf(h,d,!0,a)&&e,a.u||(e=Vf(h,d,!1,a)&&e));if(c)for(f=0;!a.u&&f<c.length;f++)h=a.currentTarget=c[f],e=Vf(h,d,!1,a)&&e;return e};
g.k.ra=function(){g.Uf.Re.ra.call(this);if(this.B){var a=this.B,b=0,c;for(c in a.listeners){for(var d=a.listeners[c],e=0;e<d.length;e++)++b,kf(d[e]);delete a.listeners[c];a.j--}}this.La=null};
g.k.Ra=function(a,b,c,d){return this.B.add(String(a),b,!1,c,d)};
g.k.mD=function(a,b,c,d){return this.B.add(String(a),b,!0,c,d)};
g.k.yc=function(a,b,c,d){this.B.remove(String(a),b,c,d)};
g.k.Uy=function(a,b,c,d){return this.B.Uy(String(a),b,c,d)};Wf.prototype.get=function(){if(0<this.u){this.u--;var a=this.j;this.j=a.next;a.next=null}else a=this.B();return a};try{(new self.OffscreenCanvas(0,0)).getContext("2d")}catch(a){}var Hda=g.Ac||g.gf;var DYa={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};var eg;gg.prototype.Wm=!0;gg.prototype.dk=function(){return this.j};
var Sca={},Rca={};g.ig("");var Tca={};jg.prototype.toString=function(){return this.j.toString()};
jg.prototype.dk=function(){return this.j.toString()};kg.prototype.toString=function(){return this.j+""};
kg.prototype.Wm=!0;kg.prototype.dk=function(){return this.j.toString()};
var Yca=/%{(\w+)}/g,Xca=RegExp("^((https:)?//[0-9a-z.:[\\]-]+/|/[^/\\\\]|[^:/\\\\%]+/|[^:/\\\\%]*[?#]|about:blank#)","i"),Vca={};ng.prototype.toString=function(){return this.j.toString()};
ng.prototype.Wm=!0;ng.prototype.dk=function(){return this.j.toString()};
var ada=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,$ca=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,mg={},bda=new ng("about:invalid#zClosurez",mg);var qg={};rg.prototype.dk=function(){return this.j};
rg.prototype.toString=function(){return this.j.toString()};
var tg=new rg("",qg),ida=RegExp("^[-,.\"'%_!#/ a-zA-Z0-9\\[\\]]+$"),hda=RegExp("\\b(url\\([ \t\n]*)('[ -&(-\\[\\]-~]*'|\"[ !#-\\[\\]-~]*\"|[!#-&*-\\[\\]-~]*)([ \t\n]*\\))","g"),gda=RegExp("\\b(calc|cubic-bezier|fit-content|hsl|hsla|linear-gradient|matrix|minmax|radial-gradient|repeat|rgb|rgba|(rotate|scale|translate)(X|Y|Z|3d)?|var)\\([-+*/0-9a-zA-Z.%#\\[\\], ]+\\)","g"),jda=/\/\*/;var wg={};xg.prototype.dk=function(){return this.j.toString()};
xg.prototype.toString=function(){return this.j.toString()};
var EYa=/^[a-zA-Z0-9-]+$/,FYa={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},GYa={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},nda=new xg(g.C.trustedTypes&&g.C.trustedTypes.emptyHTML||"",wg);var rda=Zf(function(){var a=document.createElement("div"),b=document.createElement("div");b.appendChild(document.createElement("div"));a.appendChild(b);b=a.firstChild.firstChild;a.innerHTML=g.yg(nda);return!b.parentElement}),tda=/^[\w+/_-]+[=]{0,2}$/;g.k=g.Ig.prototype;g.k.clone=function(){return new g.Ig(this.x,this.y)};
g.k.equals=function(a){return a instanceof g.Ig&&Jg(this,a)};
g.k.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
g.k.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
g.k.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
g.k.scale=function(a,b){this.x*=a;this.y*="number"===typeof b?b:a;return this};g.k=g.Kg.prototype;g.k.clone=function(){return new g.Kg(this.width,this.height)};
g.k.aspectRatio=function(){return this.width/this.height};
g.k.isEmpty=function(){return!Mg(this)};
g.k.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
g.k.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
g.k.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
g.k.scale=function(a,b){this.width*=a;this.height*="number"===typeof b?b:a;return this};g.HYa=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};var Bda={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};g.k=Xg.prototype;g.k.getElementsByTagName=function(a,b){return(b||this.j).getElementsByTagName(String(a))};
g.k.Da=function(a){return g.ch(a,this.j)};
g.k.createElement=function(a){return fh(this.j,a)};
g.k.appendChild=function(a,b){a.appendChild(b)};
g.k.append=function(a,b){Fda(Yg(a),a,arguments,1)};
g.k.canHaveChildren=function(a){if(1!=a.nodeType)return!1;switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0};
g.k.removeNode=g.oh;g.k.contains=g.qh;var vh;xh.prototype.add=function(a,b){var c=Oda.get();c.set(a,b);this.u?this.u.next=c:this.j=c;this.u=c};
xh.prototype.remove=function(){var a=null;this.j&&(a=this.j,this.j=this.j.next,this.j||(this.u=null),a.next=null);return a};
var Oda=new Wf(function(){return new yh},function(a){return a.reset()});
yh.prototype.set=function(a,b){this.fn=a;this.scope=b;this.next=null};
yh.prototype.reset=function(){this.next=this.scope=this.fn=null};var zh,Ah=!1,Mda=new xh;Pda.prototype.reset=function(){this.context=this.onRejected=this.u=this.j=null;this.B=!1};
var Qda=new Wf(function(){return new Pda},function(a){a.reset()});
g.Dh.prototype.then=function(a,b,c){return Yda(this,"function"===typeof a?a:null,"function"===typeof b?b:null,c)};
g.Dh.prototype.$goog_Thenable=!0;g.k=g.Dh.prototype;g.k.bj=function(a,b){return Yda(this,null,a,b)};
g.k.catch=g.Dh.prototype.bj;g.k.cancel=function(a){if(0==this.j){var b=new Jh(a);g.Bh(function(){Uda(this,b)},this)}};
g.k.Q5=function(a){this.j=0;Ch(this,2,a)};
g.k.R5=function(a){this.j=0;Ch(this,3,a)};
g.k.HY=function(){for(var a;a=Vda(this);)Wda(this,a,this.j,this.J);this.I=!1};
var bea=Kda;g.Va(Jh,Xa);Jh.prototype.name="cancel";g.Va(g.Lh,g.Uf);g.k=g.Lh.prototype;g.k.enabled=!1;g.k.xc=null;g.k.setInterval=function(a){this.yh=a;this.xc&&this.enabled?(this.stop(),this.start()):this.xc&&this.stop()};
g.k.u5=function(){if(this.enabled){var a=g.Ra()-this.gQ;0<a&&a<.8*this.yh?this.xc=this.NA.setTimeout(this.WN,this.yh-a):(this.xc&&(this.NA.clearTimeout(this.xc),this.xc=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
g.k.start=function(){this.enabled=!0;this.xc||(this.xc=this.NA.setTimeout(this.WN,this.yh),this.gQ=g.Ra())};
g.k.stop=function(){this.enabled=!1;this.xc&&(this.NA.clearTimeout(this.xc),this.xc=null)};
g.k.ra=function(){g.Lh.Re.ra.call(this);this.stop();delete this.NA};g.k=g.Oh.prototype;g.k.JK=function(a){this.D=a;this.C=1};
g.k.IF=function(){var a=this.j.values();a=[].concat(g.t(a)).filter(function(b){return b.xv.size});
a.length&&this.J.flush(a,this.D);eea(a);this.B=0;this.u.enabled&&this.u.stop()};
g.k.wp=function(a){var b=g.za.apply(1,arguments);this.j.has(a)||this.j.set(a,new We(a,b))};
g.k.GB=function(a){var b=g.za.apply(1,arguments);this.j.has(a)||this.j.set(a,new Xe(a,b))};
g.k.Br=function(a){this.HF.apply(this,[a,1].concat(g.t(g.za.apply(1,arguments))))};
g.k.HF=function(a,b){var c=g.za.apply(2,arguments),d=dea(this,a);d&&d instanceof We&&(d.B(b,c),cea(this))};
g.k.ih=function(a,b){var c=g.za.apply(2,arguments),d=dea(this,a);d&&d instanceof Xe&&(d.ih(b,c),cea(this))};fea.prototype.ih=function(a,b,c,d,e){this.j.ih("/client_streamz/po/w/rl",a,b,c,d,e)};
gea.prototype.ih=function(a,b,c){this.j.ih("/client_streamz/po/w/el",a,b,c)};var iea,jea;g.v(g.Ph,g.I);g.v(g.Rh,g.I);g.v(g.Sh,g.I);g.v(g.Th,g.I);iea=[3,6,4];jea=[1];g.Vh=[1,2,3];g.Uh=[1,2,3];g.v(lea,g.I);var kea=[1];var sea={};g.k=Wh.prototype;g.k.isEnabled=function(){if(!g.C.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{pD:60});if("1"!==this.get("TESTCOOKIESENABLED"))return!1;this.remove("TESTCOOKIESENABLED");return!0};
g.k.set=function(a,b,c){var d=!1;if("object"===typeof c){var e=c.e6a;d=c.w4||!1;var f=c.domain||void 0;var h=c.path||void 0;var l=c.pD}if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');void 0===l&&(l=-1);c=f?";domain="+f:"";h=h?";path="+h:"";d=d?";secure":"";l=0>l?"":0==l?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+1E3*l)).toUTCString();this.j.cookie=a+"="+b+c+h+l+d+(null!=e?";samesite="+
e:"")};
g.k.get=function(a,b){for(var c=a+"=",d=(this.j.cookie||"").split(";"),e=0,f;e<d.length;e++){f=ib(d[e]);if(0==f.lastIndexOf(c,0))return f.slice(c.length);if(f==a)return""}return b};
g.k.remove=function(a,b,c){var d=void 0!==this.get(a);this.set(a,"",{pD:0,path:b,domain:c});return d};
g.k.jo=function(){return Xh(this).keys};
g.k.ek=function(){return Xh(this).values};
g.k.isEmpty=function(){return!this.j.cookie};
g.k.clear=function(){for(var a=Xh(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
var Iu=new Wh("undefined"==typeof document?null:document);g.v($h,g.I);var vea=[2];g.ai.prototype.u=0;g.ai.prototype.reset=function(){this.j=this.B=this.C;this.u=0};
g.ai.prototype.getValue=function(){return this.B};var zea={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},yea=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;ei.prototype.B=null;ei.prototype.getOptions=function(){return this.B||(this.B=this.C())};var IYa;g.Va(fi,ei);fi.prototype.j=function(){var a=Bea(this);return a?new ActiveXObject(a):new XMLHttpRequest};
fi.prototype.C=function(){var a={};Bea(this)&&(a[0]=!0,a[1]=!0);return a};
IYa=new fi;var ii=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),Jea=/#|$/,Kea=/[?&]($|#)/;g.Va(g.Ai,g.Uf);var Uea=/^https?$/i,JYa=["POST","PUT"],Nea=[];g.k=g.Ai.prototype;g.k.RX=function(){this.dispose();g.Xb(Nea,this)};
g.k.send=function(a,b,c,d){if(this.j)throw Error("[goog.net.XhrIo] Object is active with another request="+this.qa+"; newUri="+a);b=b?b.toUpperCase():"GET";this.qa=a;this.D="";this.u=0;this.Ba=!1;this.C=!0;this.j=this.Z?this.Z.j():IYa.j();this.ya=this.Z?this.Z.getOptions():IYa.getOptions();this.j.onreadystatechange=(0,g.Pa)(this.rR,this);try{this.getStatus(),this.Ia=!0,this.j.open(b,String(a),!0),this.Ia=!1}catch(h){this.getStatus();Rea(this,h);return}a=c||"";c=new Map(this.headers);if(d)if(Object.getPrototypeOf(d)===
Object.prototype)for(var e in d)c.set(e,d[e]);else if("function"===typeof d.keys&&"function"===typeof d.get){e=g.r(d.keys());for(var f=e.next();!f.done;f=e.next())f=f.value,c.set(f,d.get(f))}else throw Error("Unknown input type for opt_headers: "+String(d));d=Array.from(c.keys()).find(function(h){return"content-type"==h.toLowerCase()});
e=g.C.FormData&&a instanceof g.C.FormData;!g.Sb(JYa,b)||d||e||c.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");b=g.r(c);for(d=b.next();!d.done;d=b.next())c=g.r(d.value),d=c.next().value,c=c.next().value,this.j.setRequestHeader(d,c);this.Qa&&(this.j.responseType=this.Qa);"withCredentials"in this.j&&this.j.withCredentials!==this.J&&(this.j.withCredentials=this.J);try{Tea(this),0<this.S&&(this.Wa=Pea(this.j),this.getStatus(),this.Wa?(this.j.timeout=this.S,this.j.ontimeout=(0,g.Pa)(this.MM,
this)):this.Aa=g.Mh(this.MM,this.S,this)),this.getStatus(),this.ea=!0,this.j.send(a),this.ea=!1}catch(h){this.getStatus(),Rea(this,h)}};
g.k.MM=function(){"undefined"!=typeof Ci&&this.j&&(this.D="Timed out after "+this.S+"ms, aborting",this.u=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))};
g.k.abort=function(a){this.j&&this.C&&(this.getStatus(),this.C=!1,this.I=!0,this.j.abort(),this.I=!1,this.u=a||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Bi(this))};
g.k.ra=function(){this.j&&(this.C&&(this.C=!1,this.I=!0,this.j.abort(),this.I=!1),Bi(this,!0));g.Ai.Re.ra.call(this)};
g.k.rR=function(){this.isDisposed()||(this.Ia||this.ea||this.I?Sea(this):this.e2())};
g.k.e2=function(){Sea(this)};
g.k.isActive=function(){return!!this.j};
g.k.isComplete=function(){return 4==g.Di(this)};
g.k.getStatus=function(){try{return 2<g.Di(this)?this.j.status:-1}catch(a){return-1}};
g.k.getResponseHeader=function(a){if(this.j&&this.isComplete())return a=this.j.getResponseHeader(a),null===a?void 0:a};
g.k.getLastError=function(){return"string"===typeof this.D?this.D:String(this.D)};g.v(Ii,g.I);g.v(Ji,g.I);var Wea=[1];var jfa=["platform","platformVersion","architecture","model","uaFullVersion"];new Ji;g.v(Ki,g.I);g.v(Li,g.I);Li.prototype.K=function(){return Array.isArray(g.nd(this,7))};
var Xea=[3,20,27];g.v(Zea,g.I);var Yea=[3,5];g.v(afa,g.I);var $ea=[5];g.v(bfa,g.I);var KYa;KYa=new function(a,b,c){this.j=a;this.fieldName=b;this.Yr=c;this.isRepeated=0;this.u=qca}(175237375,{E5a:0},bfa);g.v(Ni,g.Uf);g.k=Ni.prototype;g.k.ra=function(){this.FH();g.Uf.prototype.ra.call(this)};
g.k.dispatch=function(a){if(a instanceof Li)this.log(a);else{var b=new Li;a=Wd(a);b=g.E(b,8,a);this.log(b)}};
g.k.log=function(a){a=a.clone();var b=this.Lb++;g.E(a,21,b);this.ea&&g.E(a,26,this.ea);if(!g.nd(a,1)){b=a;var c=Date.now().toString();g.E(b,1,c)}null!=g.nd(a,15)||g.E(a,15,60*(new Date).getTimezoneOffset());this.C&&(b=this.C.clone(),F(a,$h,16,b));for(;1E3<=this.u.length;)this.u.shift(),++this.J;this.u.push(a);this.dispatchEvent(new ifa(a));this.ya||this.j.enabled||this.j.start()};
g.k.flush=function(a,b){var c=this;if(0===this.u.length)a&&a();else if(this.Ba)hfa(this);else{var d=Date.now();if(this.ob>d&&this.Ia<d)b&&b("throttled");else{var e=this.I.Xe(this.u,this.J);d={};var f=this.eb();f&&(d.Authorization=f);var h=efa(this);this.Z&&(d["X-Goog-AuthUser"]=this.Z,h=xi(h,"authuser",this.Z));this.pageId&&(d["X-Goog-PageId"]=this.pageId,h=xi(h,"pageId",this.pageId));if(f&&this.kb===f)b&&b("stale-auth-token");else{this.u=[];this.j.enabled&&this.j.stop();this.J=0;var l=Wd(e),m;this.S&&
this.S.isSupported(l.length)&&(m=this.S.compress(l));var n={url:h,body:l,EX:1,Jt:d,requestType:"POST",withCredentials:this.withCredentials,timeoutMillis:this.timeoutMillis},p=function(w){c.D.reset();c.j.setInterval(c.D.getValue());if(w){var y=null;try{var A=JSON.parse(w.replace(")]}'\n",""));y=new afa(A)}catch(B){}y&&(w=Number(ud(y,1,"-1")),0<w&&(c.Ia=Date.now(),c.ob=c.Ia+w),y=KYa.u(y))&&(y=Ld(y,1,-1),-1!=y&&(c.Ya||ffa(c,y)))}a&&a()},q=function(w,y){var A=Fd(e,Li,3);
g.bi(c.D);c.j.setInterval(c.D.getValue());401===w&&f&&(c.kb=f);void 0===y&&(y=500<=w&&600>w||401===w||0===w);y&&(c.u=A.concat(c.u),c.ya||c.j.enabled||c.j.start());b&&b("net-send-failed",w)},u=function(){c.Wa?c.Wa.send(n,p,q):c.yb(n,p,q)};
m?m.then(function(w){n.Jt["Content-Encoding"]="gzip";n.Jt["Content-Type"]="application/binary";n.body=w;n.EX=2;u()},function(){u()}):u()}}}};
g.k.FH=function(){this.flush()};
g.v(ifa,g.af);cfa.prototype.Xe=function(a,b){b=void 0===b?0:b;var c=this.j.clone();var d=Date.now().toString();c=g.E(c,4,d);a=Id(c,Li,3,a);b&&g.E(a,14,b);return a};mfa.prototype.Xe=function(){var a=new Ni(this.I,this.Aa?this.Aa:Zh,"0",this.J,this.B,this.C,!1,this.Ia,void 0,void 0,this.S?this.S:void 0);this.ea&&Mi(a.I,this.ea);if(this.u){var b=this.u,c=Oi(a.I);g.E(c,7,b)}this.D&&(a.S=this.D);this.j&&(a.ea=this.j);this.Z&&((b=this.Z)?(a.C||(a.C=new $h),b=Wd(b),g.E(a.C,4,b)):a.C&&wd(a.C,4));this.ya&&(b=this.ya,a.C||(a.C=new $h),uba(a.C,2,b));this.qa&&(b=this.qa,a.Ya=!0,ffa(a,b));this.Ba&&kfa(a.I,this.Ba);return a};Pi.prototype.flush=function(a){a=a||[];if(a.length){for(var b=new lea,c=[],d=0;d<a.length;d++){var e=a[d],f=g.mea(e);c.push(f);e.clear()}Id(b,g.Ph,1,c);this.j.dispatch(b);this.j.flush()}};g.v(Qi,Error);Qi.prototype.name="RpcError";Si.prototype.done=function(){this.logger.mQ(this.j,Ri()-this.startMillis)};
Ti.prototype.Dz=function(){};
Ti.prototype.mQ=function(){};
Ti.prototype.XI=function(a,b,c){return c};
Ui.prototype.Dz=function(a){this.clientError.j.Br("/client_streamz/po/w/cec",a,this.kh)};
Ui.prototype.mQ=function(a,b){this.B.ih(b,a,this.kh)};
Ui.prototype.XI=function(a,b,c){function d(h){var l=Ri()-f;e.C.ih(l,a,b,h,e.kh)}
var e=this,f=Ri();c.then(function(){d(0)},function(h){h instanceof Qi?d(h.code):d(-1)});
return c};ofa.prototype.ih=function(a,b){this.j.ih("/client_streamz/bg/fil",a,b)};
qfa.prototype.ih=function(a,b){this.j.ih("/client_streamz/bg/fsl",a,b)};g.v(sfa,g.I);g.v(tfa,g.I);g.v(Wi,g.I);Wi.j="bfkj";Yi.prototype.snapshot=function(a){var b=this;if(this.hC)throw Error("Already disposed");var c=Vi(),d;null!=(d=this.Sr)&&d.u.j.Br("/client_streamz/bg/fsc",d.kh);return this.j.then(function(e){var f=e.yX;return new Promise(function(h){f(function(l){var m;null!=(m=b.Sr)&&m.B.ih(Vi()-c,m.kh);h(l)},[a.py,
a.N4])})})};
Yi.prototype.dispose=function(){var a;null!=(a=this.Sr)&&a.j.IF();this.hC=!0;this.j.then(function(b){(b=b.L4)&&b()})};
Yi.prototype.isDisposed=function(){return this.hC};/*

 SPDX-License-Identifier: Apache-2.0
*/
var xfa={};g.v(Zi,vfa);Zi.prototype.toString=function(){return this.j};var LYa;try{new URL("s://g"),LYa=!0}catch(a){LYa=!1}var Afa=LYa;var Cfa=[aj("data"),aj("http"),aj("https"),aj("mailto"),aj("ftp"),new $i(function(a){return/^[^:]*([/?#]|$)/.test(a)})];g.v(hj,g.I);g.v(ij,g.I);g.v(jj,g.I);Lfa.prototype.ping=function(a,b){var c=this,d,e;return g.z(function(f){d=c.j();e=b||new jj;var h=g.E(e,1,c.kh);g.E(h,2,a);return g.x(f,c.client.ping(e,d),0)})};g.ca.Object.defineProperties(Pfa.prototype,{u:{configurable:!0,enumerable:!0,get:function(){return this.j.a}},
B:{configurable:!0,enumerable:!0,get:function(){return this.j.b}}});g.v(lj,g.I);mj.prototype.GC=function(){return this.B};
mj.prototype.getMetadata=function(){return this.u};nj.prototype.getMetadata=function(){return this.j};
nj.prototype.GC=function(){return this.u};
nj.prototype.getStatus=function(){return null};oj.prototype.getName=function(){return this.name};var MYa=new oj("/google.internal.waa.v1.Waa/Create",hj,lj,function(a){return Wd(a)},function(a){return Xd(lj,a)});g.v(pj,g.I);var Nfa=new oj("/google.internal.waa.v1.Waa/GenerateIT",ij,pj,function(a){return Wd(a)},function(a){return Xd(pj,a)});g.v(qj,g.I);var NYa=new oj("/google.internal.waa.v1.Waa/Ping",jj,qj,function(a){return Wd(a)},function(a){return Xd(qj,a)});var oga=Promise;g.v(rj,g.I);rj.prototype.getValue=function(){if(Array.isArray(g.nd(this,2)))throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return vd(this,2)};
rj.prototype.setValue=function(a){if(null==a)a=this;else if(Array.isArray(a))a=g.E(this,2,ld(a,qba,iba));else if("string"===typeof a||a instanceof Mc||Ic(a))id(this),null==a||(a instanceof Mc?a.isEmpty():0===a.length)?wd(this,2):Jd(this,2,a),a=this;else throw Error("invalid value in Any.value field: "+a+" expected a ByteString, a base64 encoded string, a Uint8Array or a jspb array");return a};g.v(sj,g.I);sj.prototype.getMessage=function(){return Qd(this,2)};
var Rfa=[3];tj.prototype.Mo=function(a,b){"data"==a?this.B.push(b):"metadata"==a?this.D.push(b):"status"==a?this.I.push(b):"end"==a?this.C.push(b):"error"==a&&this.u.push(b);return this};
tj.prototype.removeListener=function(a,b){"data"==a?xj(this.B,b):"metadata"==a?xj(this.D,b):"status"==a?xj(this.I,b):"end"==a?xj(this.C,b):"error"==a&&xj(this.u,b);return this};
tj.prototype.cancel=function(){this.j.abort()};
tj.prototype.cancel=tj.prototype.cancel;tj.prototype.removeListener=tj.prototype.removeListener;tj.prototype.on=tj.prototype.Mo;g.Va(g.yj,ei);g.yj.prototype.j=function(){var a=new zj(this.I,this.D);this.u&&a.setCredentialsMode(this.u);return a};
g.yj.prototype.C=Xf({});g.yj.prototype.setCredentialsMode=function(a){this.u=a};
g.Va(zj,g.Uf);g.k=zj.prototype;g.k.open=function(a,b){if(0!=this.readyState)throw this.abort(),Error("Error reopening a connection");this.qa=a;this.ea=b;this.readyState=1;Aj(this)};
g.k.send=function(a){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.j=!0;var b={headers:this.Z,method:this.qa,credentials:this.I,cache:void 0};a&&(b.body=a);(this.Aa||g.C).fetch(new Request(this.ea,b)).then(this.sZ.bind(this),this.RC.bind(this))};
g.k.abort=function(){this.response=this.responseText="";this.Z=new Headers;this.status=0;this.C&&this.C.cancel("Request was aborted.").catch(function(){});
1<=this.readyState&&this.j&&4!=this.readyState&&(this.j=!1,Bj(this));this.readyState=0};
g.k.sZ=function(a){if(this.j&&(this.D=a,this.u||(this.status=this.D.status,this.statusText=this.D.statusText,this.u=a.headers,this.readyState=2,Aj(this)),this.j&&(this.readyState=3,Aj(this),this.j)))if("arraybuffer"===this.responseType)a.arrayBuffer().then(this.qZ.bind(this),this.RC.bind(this));else if("undefined"!==typeof g.C.ReadableStream&&"body"in a){this.C=a.body.getReader();if(this.J){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=
[]}else this.response=this.responseText="",this.S=new TextDecoder;Wfa(this)}else a.text().then(this.rZ.bind(this),this.RC.bind(this))};
g.k.iZ=function(a){if(this.j){if(this.J&&a.value)this.response.push(a.value);else if(!this.J){var b=a.value?a.value:new Uint8Array(0);if(b=this.S.decode(b,{stream:!a.done}))this.response=this.responseText+=b}a.done?Bj(this):Aj(this);3==this.readyState&&Wfa(this)}};
g.k.rZ=function(a){this.j&&(this.response=this.responseText=a,Bj(this))};
g.k.qZ=function(a){this.j&&(this.response=a,Bj(this))};
g.k.RC=function(){this.j&&Bj(this)};
g.k.setRequestHeader=function(a,b){this.Z.append(a,b)};
g.k.getResponseHeader=function(a){return this.u?this.u.get(a.toLowerCase())||"":""};
g.k.getAllResponseHeaders=function(){if(!this.u)return"";for(var a=[],b=this.u.entries(),c=b.next();!c.done;)c=c.value,a.push(c[0]+": "+c[1]),c=b.next();return a.join("\r\n")};
g.k.setCredentialsMode=function(a){this.I=a};
Object.defineProperty(zj.prototype,"withCredentials",{get:function(){return"include"===this.I},
set:function(a){this.setCredentialsMode(a?"include":"same-origin")}});g.Dj.prototype.toString=function(){var a=[],b=this.C;b&&a.push(Kj(b,OYa,!0),":");var c=this.j;if(c||"file"==b)a.push("//"),(b=this.S)&&a.push(Kj(b,OYa,!0),"@"),a.push(g.Rg(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.B,null!=c&&a.push(":",String(c));if(c=this.getPath())this.j&&"/"!=c.charAt(0)&&a.push("/"),a.push(Kj(c,"/"==c.charAt(0)?PYa:QYa,!0));(c=this.u.toString())&&a.push("?",c);(c=this.D)&&a.push("#",Kj(c,RYa));return a.join("")};
g.Dj.prototype.resolve=function(a){var b=this.clone(),c=!!a.C;c?g.Ej(b,a.C):c=!!a.S;c?b.S=a.S:c=!!a.j;c?g.Fj(b,a.j):c=null!=a.B;var d=a.getPath();if(c)g.Gj(b,a.B);else if(c=!!a.J){if("/"!=d.charAt(0))if(this.j&&!this.J)d="/"+d;else{var e=b.getPath().lastIndexOf("/");-1!=e&&(d=b.getPath().slice(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(g.eb(e,"./")||g.eb(e,"/.")){d=bb(e,"/");e=e.split("/");for(var f=[],h=0;h<e.length;){var l=e[h++];"."==l?d&&h==e.length&&f.push(""):".."==l?((1<f.length||1==f.length&&
""!=f[0])&&f.pop(),d&&h==e.length&&f.push("")):(f.push(l),d=!0)}d=f.join("/")}else d=e}c?b.J=d:c=""!==a.u.toString();c?Hj(b,a.u.clone()):c=!!a.D;c&&(b.D=a.D);return b};
g.Dj.prototype.clone=function(){return new g.Dj(this)};
g.Dj.prototype.getPath=function(){return this.J};
var OYa=/[#\/\?@]/g,QYa=/[#\?:]/g,PYa=/[#\?]/g,$fa=/[#\?@]/g,RYa=/#/g;g.k=Jj.prototype;g.k.add=function(a,b){Nj(this);this.B=null;a=Oj(this,a);var c=this.j.get(a);c||this.j.set(a,c=[]);c.push(b);this.u=this.u+1;return this};
g.k.remove=function(a){Nj(this);a=Oj(this,a);return this.j.has(a)?(this.B=null,this.u=this.u-this.j.get(a).length,this.j.delete(a)):!1};
g.k.clear=function(){this.j=this.B=null;this.u=0};
g.k.isEmpty=function(){Nj(this);return 0==this.u};
g.k.forEach=function(a,b){Nj(this);this.j.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};
g.k.jo=function(){Nj(this);for(var a=Array.from(this.j.values()),b=Array.from(this.j.keys()),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
g.k.ek=function(a){Nj(this);var b=[];if("string"===typeof a)cga(this,a)&&(b=b.concat(this.j.get(Oj(this,a))));else{a=Array.from(this.j.values());for(var c=0;c<a.length;c++)b=b.concat(a[c])}return b};
g.k.set=function(a,b){Nj(this);this.B=null;a=Oj(this,a);cga(this,a)&&(this.u=this.u-this.j.get(a).length);this.j.set(a,[b]);this.u=this.u+1;return this};
g.k.get=function(a,b){if(!a)return b;a=this.ek(a);return 0<a.length?String(a[0]):b};
g.k.toString=function(){if(this.B)return this.B;if(!this.j)return"";for(var a=[],b=Array.from(this.j.keys()),c=0;c<b.length;c++){var d=b[c],e=g.Rg(d);d=this.ek(d);for(var f=0;f<d.length;f++){var h=e;""!==d[f]&&(h+="="+g.Rg(d[f]));a.push(h)}}return this.B=a.join("&")};
g.k.clone=function(){var a=new Jj;a.B=this.B;this.j&&(a.j=new Map(this.j),a.u=this.u);return a};
g.k.extend=function(a){for(var b=0;b<arguments.length;b++)g.Cj(arguments[b],function(c,d){this.add(d,c)},this)};g.Va(g.Qj,g.J);var SYa=[];g.k=g.Qj.prototype;g.k.Ra=function(a,b,c,d){Array.isArray(b)||(b&&(SYa[0]=b.toString()),b=SYa);for(var e=0;e<b.length;e++){var f=g.Nf(a,b[e],c||this.handleEvent,d||!1,this.u||this);if(!f)break;this.j[f.key]=f}return this};
g.k.mD=function(a,b,c,d){return fga(this,a,b,c,d)};
g.k.yc=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)this.yc(a,b[f],c,d,e);else c=c||this.handleEvent,d=g.Ma(d)?!!d.capture:!!d,e=e||this.u||this,c=Of(c),d=!!d,b=jf(a)?a.Uy(b,c,d,e):a?(a=Pf(a))?a.Uy(b,c,d,e):null:null,b&&(Rf(b),delete this.j[b.key])};
g.k.ra=function(){g.Qj.Re.ra.call(this);g.Rj(this)};
g.k.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};gga.prototype.isInputValid=function(){return this.B};Sj.prototype.isInputValid=function(){return 3!=this.j};
Sj.prototype.rf=function(){return this.I};
Sj.prototype.DB=function(){return!0};
Sj.prototype.parse=function(a){function b(m){m&128&&Tj(f,h,l,"invalid tag");2!=(m&7)&&Tj(f,h,l,"invalid wire type");f.B=m>>>3;1!=f.B&&2!=f.B&&15!=f.B&&Tj(f,h,l,"unexpected tag");f.j=1;f.u=0;f.C=0}
function c(m){f.C++;5==f.C&&m&240&&Tj(f,h,l,"message length too long");f.u|=(m&127)<<7*(f.C-1);m&128||(f.j=2,f.S=0,"undefined"!==typeof Uint8Array?f.D=new Uint8Array(f.u):f.D=Array(f.u),0==f.u&&e())}
function d(m){f.D[f.S++]=m;f.S==f.u&&e()}
function e(){if(15>f.B){var m={};m[f.B]=f.D;f.J.push(m)}f.j=0}
for(var f=this,h=a instanceof Array?a:new Uint8Array(a),l=0;l<h.length;){switch(f.j){case 3:Tj(f,h,l,"stream already broken");break;case 0:b(h[l]);break;case 1:c(h[l]);break;case 2:d(h[l]);break;default:throw Error("unexpected parser state: "+f.j);}f.Z++;l++}a=f.J;f.J=[];return 0<a.length?a:null};Uj.prototype.isInputValid=function(){return null===this.j};
Uj.prototype.rf=function(){return this.j};
Uj.prototype.DB=function(){return!1};
Uj.prototype.parse=function(a){null!==this.j&&iga(this,a,"stream already broken");var b=null;try{var c=this.B;c.B||hga(c,a,"stream already broken");c.j+=a;var d=Math.floor(c.j.length/4);if(0==d)var e=null;else{try{var f=cba(c.j.slice(0,4*d))}catch(h){hga(c,c.j,h.message)}c.u+=4*d;c.j=c.j.slice(4*d);e=f}b=null===e?null:this.C.parse(e)}catch(h){iga(this,a,h.message)}this.u+=a.length;return b};var TYa={INIT:0,Tx:1,cG:2,Pu:3,Cx:4,Bx:5,STRING:6,WF:7,jN:8,wN:9,xN:10,yN:11,WL:12,XL:13,YL:14,ZL:15,nN:16,oN:17,pN:18,LW:19,aG:20};g.k=Wj.prototype;g.k.isInputValid=function(){return 3!=this.D};
g.k.rf=function(){return this.Z};
g.k.done=function(){return 2===this.D};
g.k.DB=function(){return!1};
g.k.parse=function(a){function b(){for(;u<a.length;)if(Vj(a[u]))u++,f.B++;else break;return u<n}
function c(){for(var y;;){y=a[u++];if(!y)break;f.B++;switch(f.j){case m.INIT:"{"===y?f.j=m.cG:"["===y?f.j=m.Cx:Vj(y)||Xj(f,a,u);continue;case m.WF:case m.cG:if(Vj(y))continue;if(f.j===m.WF)h.push(m.jN);else if("}"===y){e("{}");f.j=d();continue}else h.push(m.Pu);'"'===y?f.j=m.STRING:Xj(f,a,u);continue;case m.jN:case m.Pu:if(Vj(y))continue;":"===y?(f.j===m.Pu&&(h.push(m.Pu),f.u++),f.j=m.Tx):"}"===y?(f.u--,e(),f.j=d()):","===y?(f.j===m.Pu&&h.push(m.Pu),f.j=m.WF):Xj(f,a,u);continue;case m.Cx:case m.Tx:if(Vj(y))continue;
if(f.j===m.Cx)if(f.u++,f.j=m.Tx,"]"===y){f.u--;if(0===f.u){f.j=m.Bx;return}e("[]");f.j=d();continue}else h.push(m.Bx);'"'===y?f.j=m.STRING:"{"===y?f.j=m.cG:"["===y?f.j=m.Cx:"t"===y?f.j=m.wN:"f"===y?f.j=m.WL:"n"===y?f.j=m.nN:"-"!==y&&(-1!=="0123456789".indexOf(y)?f.j=m.aG:Xj(f,a,u));continue;case m.Bx:if(","===y)h.push(m.Bx),f.j=m.Tx,1===f.u&&(q=u);else if("]"===y){f.u--;if(0===f.u)return;e();f.j=d()}else if(Vj(y))continue;else Xj(f,a,u);continue;case m.STRING:var A=u;a:for(;;){for(;0<f.S;)if(y=a[u++],
4===f.S?f.S=0:f.S++,!y)break a;if('"'===y&&!f.J){f.j=d();break}if("\\"===y&&!f.J&&(f.J=!0,y=a[u++],!y))break;if(f.J)if(f.J=!1,"u"===y&&(f.S=1),y=a[u++])continue;else break;l.lastIndex=u;y=l.exec(a);if(!y){u=a.length+1;break}u=y.index+1;y=a[y.index];if(!y)break}f.B+=u-A;continue;case m.wN:if(!y)continue;"r"===y?f.j=m.xN:Xj(f,a,u);continue;case m.xN:if(!y)continue;"u"===y?f.j=m.yN:Xj(f,a,u);continue;case m.yN:if(!y)continue;"e"===y?f.j=d():Xj(f,a,u);continue;case m.WL:if(!y)continue;"a"===y?f.j=m.XL:
Xj(f,a,u);continue;case m.XL:if(!y)continue;"l"===y?f.j=m.YL:Xj(f,a,u);continue;case m.YL:if(!y)continue;"s"===y?f.j=m.ZL:Xj(f,a,u);continue;case m.ZL:if(!y)continue;"e"===y?f.j=d():Xj(f,a,u);continue;case m.nN:if(!y)continue;"u"===y?f.j=m.oN:Xj(f,a,u);continue;case m.oN:if(!y)continue;"l"===y?f.j=m.pN:Xj(f,a,u);continue;case m.pN:if(!y)continue;"l"===y?f.j=d():Xj(f,a,u);continue;case m.LW:"."===y?f.j=m.aG:Xj(f,a,u);continue;case m.aG:if(-1!=="0123456789.eE+-".indexOf(y))continue;else u--,f.B--,f.j=
d();continue;default:Xj(f,a,u)}}}
function d(){var y=h.pop();return null!=y?y:m.Tx}
function e(y){1<f.u||(y||(y=-1===q?f.C+a.substring(p,u):a.substring(q,u)),f.ea?f.I.push(y):f.I.push(JSON.parse(y)),q=u)}
for(var f=this,h=f.qa,l=f.Aa,m=TYa,n=a.length,p=0,q=-1,u=0;u<n;)switch(f.D){case 3:return Xj(f,a,u),null;case 2:return b()&&Xj(f,a,u),null;case 0:if(b()){var w=a[u++];f.B++;if("["===w){f.D=1;p=u;f.j=m.Cx;continue}else Xj(f,a,u)}return null;case 1:return c(),0===f.u&&f.j==m.Bx?(f.D=2,f.C=a.substring(u)):f.C=-1===q?f.C+a.substring(p):a.substring(q),0<f.I.length?(w=f.I,f.I=[],w):null}return null};Yj.prototype.isInputValid=function(){return null===this.D};
Yj.prototype.rf=function(){return this.D};
Yj.prototype.DB=function(){return!1};
Yj.prototype.parse=function(a){function b(m){f.u=6;f.D="The stream is broken @"+f.j+"/"+h+". Error: "+m+". With input:\n";throw Error(f.D);}
function c(){f.B=new Wj({V4a:!0,jY:!0})}
function d(m){if(m)for(var n=0;n<m.length;n++){var p={};p[1]=m[n];f.C.push(p)}}
function e(m){if(m){(f.I||1<m.length)&&b("extra status: "+m);f.I=!0;var n={};n[2]=m[0];f.C.push(n)}}
for(var f=this,h=0;h<a.length;){var l;if(l=2!==f.u){a:{for(;h<a.length;){if(!Vj(a[h])){l=!0;break a}h++;f.j++}l=!1}l=!l}if(l)return null;switch(f.u){case 6:b("stream already broken");break;case 0:"["===a[h]?(f.u=1,h++,f.j++):b("unexpected input token");break;case 1:"["===a[h]?(f.u=2,c()):","===a[h]||"null,"==a.slice(h,h+5)?f.u=3:"]"===a[h]?(f.u=5,h++,f.j++):b("unexpected input token");break;case 2:l=f.B.parse(a.substring(h));d(l);f.B.done()?(f.u=3,l=f.B.C,f.j+=a.length-h-l.length,a=l,h=0):(f.j+=a.length-
h,h=a.length);break;case 3:","===a[h]||"null,"==a.slice(h,h+5)?(f.u=4,c(),f.B.parse("["),h+=","===a[h]?1:5,f.j++):"]"===a[h]&&(f.u=5,h++,f.j++);break;case 4:l=f.B.parse(a.substring(h));e(l);f.B.done()?(f.u=5,l=f.B.C,f.j+=a.length-h-l.length,a=l,h=0):(f.j+=a.length-h,h=a.length);break;case 5:b("extra input after stream end")}}return 0<f.C.length?(a=f.C,f.C=[],a):null};Zj.prototype.getStatus=function(){return this.C};
Zj.prototype.ea=function(a){a=a.target;try{if(a==this.j)a:{var b=g.Di(this.j),c=this.j.u,d=this.j.getStatus(),e=g.Fi(this.j);a=[];if(g.Gi(this.j)instanceof Array){var f=g.Gi(this.j);0<f.length&&f[0]instanceof Uint8Array&&(this.Z=!0,a=f)}if(!(3>b||3==b&&!e&&0==a.length))if(d=200==d||206==d,4==b&&(8==c?ak(this,7):7==c?ak(this,8):d||ak(this,3)),this.u||(this.u=jga(this.j),null==this.u&&ak(this,5)),2<this.C)bk(this);else{if(a.length>this.B){var h=a.length;c=[];try{if(this.u.DB())for(var l=0;l<h;l++){var m=
this.u.parse(Array.from(a[l]));m&&(c=c.concat(m))}else{m="";if(!this.I){if("undefined"===typeof TextDecoder)throw Error("TextDecoder is not supported by this browser.");this.I=new TextDecoder}for(l=0;l<h;l++)m+=this.I.decode(a[l],{stream:4==b&&l==h-1});c=this.u.parse(m)}a.splice(0,h);c&&this.D(c)}catch(p){ak(this,5);bk(this);break a}}else if(e.length>this.B){l=e.slice(this.B);this.B=e.length;try{var n=this.u.parse(l);null!=n&&this.D&&this.D(n)}catch(p){ak(this,5);bk(this);break a}}4==b?(0!=e.length||
this.Z?ak(this,2):ak(this,4),bk(this)):ak(this,1)}}}catch(p){ak(this,6),bk(this)}};g.k=kga.prototype;g.k.Mo=function(a,b){var c=this.u[a];c||(c=[],this.u[a]=c);c.push(b);return this};
g.k.addListener=function(a,b){this.Mo(a,b);return this};
g.k.removeListener=function(a,b){var c=this.u[a];c&&g.Xb(c,b);(a=this.j[a])&&g.Xb(a,b);return this};
g.k.once=function(a,b){var c=this.j[a];c||(c=[],this.j[a]=c);c.push(b);return this};
g.k.S0=function(a){var b=this.u.data;b&&lga(a,b);(b=this.j.data)&&lga(a,b);this.j.data=[]};
g.k.Q2=function(){switch(this.B.getStatus()){case 1:ck(this,"readable");break;case 5:case 6:case 4:case 7:case 3:ck(this,"error");break;case 8:ck(this,"close");break;case 2:ck(this,"end")}};mga.prototype.serverStreaming=function(a,b,c,d){var e=this,f=a.substr(0,a.length-d.name.length);return nga(function(h){var l=h.GC(),m=h.getMetadata(),n=qga(e,!1);m=rga(e,m,n,f+l.getName());var p=sga(n,l.u,!0);h=l.j(h.j);n.send(m,"POST",h);return p},this.C).call(this,Qfa(d,b,c))};dk.prototype.create=function(a,b){return kj(this.j,this.u+"/$rpc/google.internal.waa.v1.Waa/Create",a,b||{},MYa)};
dk.prototype.ping=function(a,b){return kj(this.j,this.u+"/$rpc/google.internal.waa.v1.Waa/Ping",a,b||{},NYa)};var uga={toString:function(a){var b=[],c=0;a-=-2147483648;b[c++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(a%52);for(a=Math.floor(a/52);0<a;)b[c++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(a%62),a=Math.floor(a/62);return b.join("")}};g.v(hk,Error);g.v(ik,g.J);g.v(kk,ik);kk.prototype.xw=function(a){++this.D>=this.I&&this.B.resolve();var b=new Si(this.logger,"C");a=this.C(a.py);b.done();if(a instanceof Uint8Array)return a;b=new Pfa(a);a=this.j;a=Ed(a,Te,3===Cd(a,S2)?3:-1);if(!a){a=new Te;var c=Bc(b.B);Jd(a,2,c);Gd(this.j,Te,3,S2,a)}b=new Uint8Array(b.u);Jd(a,1,b);return g.Je(this.j,BYa)};
g.v(lk,ik);lk.prototype.xw=function(){return this.j};
g.v(mk,ik);mk.prototype.xw=function(){if(this.j){var a=this.j;this.j=void 0;return a}return this.C};
gk.prototype.isReady=function(){return!!this.j};
gk.prototype.ready=function(){var a=this;return g.z(function(b){return g.x(b,a.u.promise,0)})};
gk.prototype.xw=function(a){if(!this.j)throw Error("SGK:Not ready");var b=new Si(this.logger,this.j.u);try{return this.j.xw(a)}catch(e){b=new Si(this.logger,"e");var c=new hk(5,e);this.logger.Dz(c.code);var d;null==(d=this.onError)||d.call(this,c);return(new mk(c)).xw()}finally{b.done()}};var lra={aRa:0,XQa:1,UQa:2,VQa:3,WQa:4,ZQa:5,YQa:6};var am;am=["av.default","js","unreleased"].slice(-1)[0];var Ql=document,Ck=window;var Hga={NONE:0,una:1},lha={fU:0,WPa:1,VPa:2,XPa:3},Vk={PT:"a",Yma:"d",VIDEO:"v"};ok.prototype.isVisible=function(){return this.Js?.3<=this.Nd:.5<=this.Nd};var yk={bha:0,yra:1},jha={NONE:0,qwa:1,Ita:2};pk.prototype.getValue=function(){return this.wd};
g.v(qk,pk);qk.prototype.setValue=function(a){if(null!==this.wd||!g.tf(this.u,a))return!1;this.wd=a;return!0};
g.v(rk,pk);rk.prototype.setValue=function(a){if(null!==this.wd||"number"!==typeof a)return!1;this.wd=a;return!0};
g.v(sk,pk);sk.prototype.setValue=function(a){if(null!==this.wd||"string"!==typeof a)return!1;this.wd=a;return!0};tk.prototype.disable=function(){this.u=!1};
tk.prototype.enable=function(){this.u=!0};
tk.prototype.isEnabled=function(){return this.u};
tk.prototype.reset=function(){this.j={};this.u=!0;this.B={}};var nia=!g.Ac&&!Db();zk.prototype.now=function(){return 0};
zk.prototype.u=function(){return 0};
zk.prototype.B=function(){return 0};
zk.prototype.j=function(){return 0};g.v(Bk,zk);Bk.prototype.now=function(){return Ak()&&Ck.performance.now?Ck.performance.now():zk.prototype.now.call(this)};
Bk.prototype.u=function(){return Ak()&&Ck.performance.memory?Ck.performance.memory.totalJSHeapSize||0:zk.prototype.u.call(this)};
Bk.prototype.B=function(){return Ak()&&Ck.performance.memory?Ck.performance.memory.usedJSHeapSize||0:zk.prototype.B.call(this)};
Bk.prototype.j=function(){return Ak()&&Ck.performance.memory?Ck.performance.memory.jsHeapSizeLimit||0:zk.prototype.j.call(this)};var Kga=Zf(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
g.C.addEventListener("test",null,b)}catch(c){}return a});Lga.prototype.isVisible=function(){return 1===Fk(Ql)};g.ig("csi.gstatic.com");g.ig("googleads.g.doubleclick.net");g.ig("partner.googleadservices.com");g.ig("pubads.g.doubleclick.net");g.ig("securepubads.g.doubleclick.net");g.ig("tpc.googlesyndication.com");var Nga={p$:"allow-forms",q$:"allow-modals",r$:"allow-orientation-lock",s$:"allow-pointer-lock",t$:"allow-popups",u$:"allow-popups-to-escape-sandbox",v$:"allow-presentation",w$:"allow-same-origin",x$:"allow-scripts",y$:"allow-top-navigation",z$:"allow-top-navigation-by-user-activation"},Rga=Zf(function(){return Oga()});var Vga=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");Kk.prototype.ye=function(a,b,c){a=a+"//"+b+c;var d=Zga(this)-c.length;if(0>d)return"";this.j.sort(function(n,p){return n-p});
c=null;b="";for(var e=0;e<this.j.length;e++)for(var f=this.j[e],h=this.u[f],l=0;l<h.length;l++){if(!d){c=null==c?f:c;break}var m=Yga(h[l],this.B,",$");if(m){m=b+m;if(d>=m.length){d-=m.length;a+=m;b=this.B;break}c=null==c?f:c}}d="";null!=c&&(d=b+"trn="+c);return a+d};Rk.prototype.setInterval=function(a,b){return Ck.setInterval(a,b)};
Rk.prototype.clearInterval=function(a){Ck.clearInterval(a)};
Rk.prototype.setTimeout=function(a,b){return Ck.setTimeout(a,b)};
Rk.prototype.clearTimeout=function(a){Ck.clearTimeout(a)};fha.prototype.getContext=function(){if(!this.j){if(!Ck)throw Error("Context has not been set and window is undefined.");this.j=Qk(Rk)}return this.j};g.v(Tk,g.I);var nja=[Tk,1,sYa,2,tYa,3,tYa,4,tYa,5,uYa];var kha={hOa:1,XW:2,dGa:3};mha.prototype.iK=function(a){if("string"===typeof a&&0!=a.length){var b=this.featureSet;if(b.u){a=a.split("&");for(var c=a.length-1;0<=c;c--){var d=a[c].split("="),e=decodeURIComponent(d[0]);1<d.length?(d=decodeURIComponent(d[1]),d=/^[0-9]+$/g.exec(d)?parseInt(d,10):d):d=1;(e=b.j[e])&&e.setValue(d)}}}};var T2=null;var bl=g.C.performance,UYa=!!(bl&&bl.mark&&bl.measure&&bl.clearMarks),$k=Zf(function(){var a;if(a=UYa){var b;if(null===T2){T2="";try{a="";try{a=g.C.top.location.hash}catch(c){a=g.C.location.hash}a&&(T2=(b=a.match(/\bdeid=([\d,]+)/))?b[1]:"")}catch(c){}}b=T2;a=!!b.indexOf&&0<=b.indexOf("1337")}return a});
al.prototype.disable=function(){this.j=!1;this.events!=this.u.google_js_reporting_queue&&($k()&&g.qc(this.events,sha),this.events.length=0)};
al.prototype.start=function(a,b){if(!this.j)return null;var c=qha()||pha();a=new rha(a,b,c);b="goog_"+a.label+"_"+a.uniqueId+"_start";bl&&$k()&&bl.mark(b);return a};
al.prototype.end=function(a){if(this.j&&"number"===typeof a.value){var b=qha()||pha();a.duration=b-a.value;b="goog_"+a.label+"_"+a.uniqueId+"_end";bl&&$k()&&bl.mark(b);!this.j||2048<this.events.length||this.events.push(a)}};tha.prototype.ZI=function(a,b,c,d,e){e=e||this.KO;try{var f=new Kk;f.j.push(1);f.u[1]=Lk("context",a);b.error&&b.meta&&b.id||(b=new fl(gl(b)));if(b.msg){var h=b.msg.substring(0,512);f.j.push(2);f.u[2]=Lk("msg",h)}var l=b.meta||{};if(this.zG)try{this.zG(l)}catch(q){}if(d)try{d(l)}catch(q){}b=[l];f.j.push(3);f.u[3]=b;var m=Xga();if(m.u){var n=m.u.url||"";f.j.push(4);f.u[4]=Lk("top",n)}var p=[{url:m.j.url||""},{url:m.j.url?Dea(m.j.url):""}];f.j.push(5);f.u[5]=p;nha(this.j,e,f,c)}catch(q){try{nha(this.j,
e,{context:"ecmserr",rctx:a,msg:gl(q),url:m&&m.j.url},c)}catch(u){}}return this.WK};
g.v(fl,oha);var dl,el,cl=new al;dl=new function(){var a="https:";Ck&&Ck.location&&"http:"===Ck.location.protocol&&(a="http:");this.u=a;this.j=.01};
el=new tha;Ck&&Ck.document&&("complete"==Ck.document.readyState?vha():cl.j&&Ek(Ck,"load",function(){vha()}));var yha=Date.now(),nl=-1,ll=-1,Nia,ol=-1,ml=!1;g.k=pl.prototype;g.k.getHeight=function(){return this.bottom-this.top};
g.k.clone=function(){return new pl(this.top,this.right,this.bottom,this.left)};
g.k.contains=function(a){return this&&a?a instanceof pl?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1};
g.k.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};
g.k.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};
g.k.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};
g.k.scale=function(a,b){b="number"===typeof b?b:a;this.left*=a;this.right*=a;this.top*=b;this.bottom*=b;return this};tl.prototype.equals=function(a,b){return!!a&&(!(void 0===b?0:b)||this.volume==a.volume)&&this.B==a.B&&rl(this.j,a.j)&&!0};ul.prototype.equals=function(a,b){return this.C.equals(a.C,void 0===b?!1:b)&&this.S==a.S&&rl(this.B,a.B)&&rl(this.I,a.I)&&this.j==a.j&&this.D==a.D&&this.u==a.u&&this.J==a.J};var VYa={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},Om={RW:"start",mU:"firstquartile",JW:"midpoint",SW:"thirdquartile",aU:"complete",ERROR:"error",IW:"metric",PAUSE:"pause",OW:"resume",PW:"skip",WW:"viewable_impression",KW:"mute",UW:"unmute",nU:"fullscreen",iU:"exitfullscreen",XT:"bufferstart",VT:"bufferfinish",oU:"fully_viewable_audible_half_duration_impression",HW:"measurable_impression",NT:"abandon",hU:"engagedview",uU:"impression",cU:"creativeview",GW:"loaded",fPa:"progress",
CLOSE:"close",vga:"collapse",MLa:"overlay_resize",NLa:"overlay_unmeasurable_impression",OLa:"overlay_unviewable_impression",QLa:"overlay_viewable_immediate_impression",PLa:"overlay_viewable_end_of_session_impression",dU:"custom_metric_viewable",SKa:"verification_debug",QT:"audio_audible",ST:"audio_measurable",RT:"audio_impression"},$ja="start firstquartile midpoint thirdquartile resume loaded".split(" "),aka=["start","firstquartile","midpoint","thirdquartile"],Oia=["abandon"],hn={UNKNOWN:-1,RW:0,
mU:1,JW:2,SW:3,aU:4,IW:5,PAUSE:6,OW:7,PW:8,WW:9,KW:10,UW:11,nU:12,iU:13,oU:14,HW:15,NT:16,hU:17,uU:18,cU:19,GW:20,dU:21,XT:22,VT:23,RT:24,ST:25,QT:26};var Aha={t7:"addEventListener",Kta:"getMaxSize",Lta:"getScreenSize",Mta:"getState",Nta:"getVersion",LPa:"removeEventListener",kxa:"isViewable"};g.k=g.wl.prototype;g.k.clone=function(){return new g.wl(this.left,this.top,this.width,this.height)};
g.k.contains=function(a){return a instanceof g.Ig?a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height:this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height};
g.k.distance=function(a){var b=a.x<this.left?this.left-a.x:Math.max(a.x-(this.left+this.width),0);a=a.y<this.top?this.top-a.y:Math.max(a.y-(this.top+this.height),0);return Math.sqrt(b*b+a*a)};
g.k.getSize=function(){return new g.Kg(this.width,this.height)};
g.k.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
g.k.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
g.k.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
g.k.scale=function(a,b){b="number"===typeof b?b:a;this.left*=a;this.width*=a;this.top*=b;this.height*=b;return this};var Eha={};Nha.prototype.update=function(a){a&&a.document&&(this.J=vl(!1,a,this.isMobileDevice),this.j=vl(!0,a,this.isMobileDevice),Pha(this,a),Oha(this,a))};Sl.prototype.cancel=function(){Sk().clearTimeout(this.j);this.j=null};
Sl.prototype.schedule=function(){var a=this,b=Sk(),c=Zk().j.j;this.j=b.setTimeout(Uk(c,il(143,function(){a.u++;a.B.sample()})),zha())};g.k=Tl.prototype;g.k.Kx=function(){return!1};
g.k.initialize=function(){return this.isInitialized=!0};
g.k.Nv=function(){return this.j.Ba};
g.k.lz=function(){return this.j.ea};
g.k.fail=function(a,b){if(!this.ea||(void 0===b?0:b))this.ea=!0,this.Ba=a,this.S=0,this.j!=this||Vl(this)};
g.k.getName=function(){return this.j.Qa};
g.k.Tp=function(){return this.j.cP()};
g.k.cP=function(){return{}};
g.k.po=function(){return this.j.S};
g.k.OM=function(){var a=Pl();a.j=vl(!0,this.B,a.isMobileDevice)};
g.k.PM=function(){Oha(Pl(),this.B)};
g.k.jP=function(){return this.C.j};
g.k.sample=function(){};
g.k.isActive=function(){return this.j.I};
g.k.Yv=function(a){var b=this.j;this.j=a.po()>=this.S?a:this;b!==this.j?(this.I=this.j.I,Vl(this)):this.I!==this.j.I&&(this.I=this.j.I,Vl(this))};
g.k.aq=function(a){if(a.u===this.j){var b=!this.C.equals(a,this.Z);this.C=a;b&&Sha(this)}};
g.k.An=function(){return this.Z};
g.k.dispose=function(){this.ya=!0};
g.k.isDisposed=function(){return this.ya};g.k=Wl.prototype;g.k.JF=function(){return!0};
g.k.Lx=function(){};
g.k.dispose=function(){if(!this.isDisposed()){var a=this.u;g.Xb(a.D,this);a.Z&&this.An()&&Rha(a);this.Lx();this.ea=!0}};
g.k.isDisposed=function(){return this.ea};
g.k.Tp=function(){return this.u.Tp()};
g.k.po=function(){return this.u.po()};
g.k.Nv=function(){return this.u.Nv()};
g.k.lz=function(){return this.u.lz()};
g.k.Yv=function(){};
g.k.aq=function(){this.Ap()};
g.k.An=function(){return this.qa};g.k=Xl.prototype;g.k.po=function(){return this.j.po()};
g.k.Nv=function(){return this.j.Nv()};
g.k.lz=function(){return this.j.lz()};
g.k.create=function(a,b,c){var d=null;this.j&&(d=this.qB(a,b,c),Ul(this.j,d));return d};
g.k.QM=function(){return this.Mx()};
g.k.Mx=function(){return!1};
g.k.init=function(a){return this.j.initialize()?(Ul(this.j,this),this.C=a,!0):!1};
g.k.Yv=function(a){0==a.po()&&this.C(a.Nv(),this)};
g.k.aq=function(){};
g.k.An=function(){return!1};
g.k.dispose=function(){this.D=!0};
g.k.isDisposed=function(){return this.D};
g.k.Tp=function(){return{}};Yl.prototype.add=function(a,b,c){++this.B;a=new Tha(a,b,c);this.j.push(new Tha(a.j,a.wd,a.u+this.B/4096));this.u=!0;return this};Yha.prototype.toString=function(){var a="//pagead2.googlesyndication.com//pagead/gen_204",b=$l(this.j);0<b.length&&(a+="?"+b);return a};bm.prototype.update=function(a,b,c){a&&(this.j+=b,this.u+=b,this.C+=b,this.B=Math.max(this.B,this.C));if(void 0===c?!a:c)this.C=0};var dia=[1,.75,.5,.3,0];cm.prototype.update=function(a,b,c,d,e,f){f=void 0===f?!0:f;b=e?Math.min(a,b):b;for(e=0;e<this.u.length;e++){var h=this.u[e],l=0<b&&b>=h;h=!(0<a&&a>=h)||c;this.j[e].update(f&&l,d,!f||h)}};im.prototype.update=function(a,b,c,d){this.J=-1!=this.J?Math.min(this.J,b.Nd):b.Nd;this.qa=Math.max(this.qa,b.Nd);this.Aa=-1!=this.Aa?Math.min(this.Aa,b.Zi):b.Zi;this.Ba=Math.max(this.Ba,b.Zi);this.kb.update(b.Zi,c.Zi,b.j,a,d);this.u.update(b.Nd,c.Nd,b.j,a,d);c=d||c.Js!=b.Js?c.isVisible()&&b.isVisible():c.isVisible();b=!b.isVisible()||b.j;this.Qa.update(c,a,b)};
im.prototype.Fo=function(){return this.Qa.B>=this.eb};if(Ql&&Ql.URL){var WYa=Ql.URL,XYa;if(XYa=!!WYa){var YYa;a:{if(WYa){var ZYa=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var U2=ZYa.exec(decodeURIComponent(WYa));if(U2){YYa=U2[1]&&1<U2[1].length?U2[1].substring(1):"true";break a}}catch(a){}}YYa=""}XYa=0<YYa.length}el.WK=!XYa};var $Ya=new pl(0,0,0,0);var lia=new pl(0,0,0,0);g.v(nm,g.J);g.k=nm.prototype;
g.k.ra=function(){if(this.Ci.j){if(this.Wr.mJ){var a=this.Ci.j;a.removeEventListener&&a.removeEventListener("mouseover",this.Wr.mJ,Dk());this.Wr.mJ=null}this.Wr.kJ&&(a=this.Ci.j,a.removeEventListener&&a.removeEventListener("mouseout",this.Wr.kJ,Dk()),this.Wr.kJ=null)}this.FA&&this.FA.dispose();this.Ie&&this.Ie.dispose();delete this.tD;delete this.cJ;delete this.mT;delete this.Ci.oq;delete this.Ci.j;delete this.Wr;delete this.FA;delete this.Ie;delete this.featureSet;g.J.prototype.ra.call(this)};
g.k.Wp=function(){return this.Ie?this.Ie.j:this.position};
g.k.iK=function(a){Zk().iK(a)};
g.k.An=function(){return!1};
g.k.JC=function(){return new im};
g.k.Sh=function(){return this.tD};
g.k.fP=function(a){return pia(this,a,1E4)};
g.k.Ja=function(a,b,c,d,e,f,h){this.iq||(this.By&&(a=this.JG(a,c,e,h),d=d&&this.Ig.Nd>=(this.Js()?.3:.5),this.HL(f,a,d),this.lastUpdateTime=b,0<a.Nd&&-1===this.US&&(this.US=b),-1==this.XS&&this.Fo()&&(this.XS=b),-2==this.WI&&(this.WI=lm(this.Wp())?a.Nd:-1),this.Ig=a),this.cJ(this))};
g.k.HL=function(a,b,c){this.Sh().update(a,b,this.Ig,c)};
g.k.VH=function(){return new ok};
g.k.JG=function(a,b,c,d){c=this.VH();c.j=b;b=Sk().u;b=0===Fk(Ql)?-1:b.isVisible()?0:1;c.u=b;c.Nd=this.XG(a);c.Js=this.Js();c.Zi=d;return c};
g.k.XG=function(a){return 0===this.opacity&&1===wk(this.featureSet,"opac")?0:a};
g.k.Js=function(){return!1};
g.k.BE=function(){return this.WZ||this.ZZ};
g.k.yD=function(){kl()};
g.k.lJ=function(){kl()};
g.k.Mm=function(){return 0};
g.k.Fo=function(){return this.tD.Fo()};
g.k.lP=function(){var a=this.By;a=(this.hasCompleted||this.isDisposed())&&!a;var b=2!==Zk().u||this.K5;return this.iq||b&&a?2:this.Fo()?4:3};
g.k.AC=function(){return 0};g.pm.prototype.next=function(){return g.p3};
g.p3={done:!0,value:void 0};g.pm.prototype.ij=function(){return this};g.v(via,ok);var A3=xia([void 0,1,2,3,4,8,16]),C3=xia([void 0,4,8,16]),aZa={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:tm("p0",C3),p1:tm("p1",C3),p2:tm("p2",C3),p3:tm("p3",C3),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:sm("mtos1",[0,2,4],!1,C3),mtos2:sm("mtos2",[0,2,4],!1,C3),mtos3:sm("mtos3",[0,2,4],!1,C3),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:tm("a0",C3),a1:tm("a1",C3),a2:tm("a2",C3),a3:tm("a3",C3),ft:"ft",dft:"dft",at:"at",dat:"dat",as:"as",
vpt:"vpt",gmm:"gmm",std:"std",efpf:"efpf",swf:"swf",nio:"nio",px:"px",nnut:"nnut",vmer:"vmer",vmmk:"vmmk",vmiec:"vmiec",nmt:"nmt",tcm:"tcm",bt:"bt",pst:"pst",vpaid:"vpaid",dur:"dur",vmtime:"vmtime",dtos:"dtos",dtoss:"dtoss",dvs:"dvs",dfvs:"dfvs",dvpt:"dvpt",fmf:"fmf",vds:"vds",is:"is",i0:"i0",i1:"i1",i2:"i2",i3:"i3",ic:"ic",cs:"cs",c:"c",c0:tm("c0",C3),c1:tm("c1",C3),c2:tm("c2",C3),c3:tm("c3",C3),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:tm("qmtos",A3),qnc:tm("qnc",A3),qmv:tm("qmv",A3),qnv:tm("qnv",A3),
raf:"raf",rafc:"rafc",lte:"lte",ces:"ces",tth:"tth",femt:"femt",femvt:"femvt",emc:"emc",emuc:"emuc",emb:"emb",avms:"avms",nvat:"nvat",qi:"qi",psm:"psm",psv:"psv",psfv:"psfv",psa:"psa",pnk:"pnk",pnc:"pnc",pnmm:"pnmm",pns:"pns",ptlt:"ptlt",pngs:"pings",veid:"veid",ssb:"ssb",ss0:tm("ss0",C3),ss1:tm("ss1",C3),ss2:tm("ss2",C3),ss3:tm("ss3",C3),dc_rfl:"urlsigs",obd:"obd",omidp:"omidp",omidr:"omidr",omidv:"omidv",omida:"omida",omids:"omids",omidpv:"omidpv",omidam:"omidam",omidct:"omidct",omidia:"omidia"},
bZa=Object.assign({},aZa,{avid:Xf("audio"),avas:"avas",vs:"vs"}),cZa={atos:"atos",avt:sm("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(a,b){return function(c){return void 0===c[a]&&void 0!==b?b:c[a]}}("ss",0),
t:"t"};Bm.prototype.getValue=function(){return this.u};
Bm.prototype.update=function(a,b){32<=a||(this.j&1<<a&&!b?this.u&=~(1<<a):this.j&1<<a||!b||(this.u|=1<<a),this.j|=1<<a)};g.v(Cm,im);
Cm.prototype.update=function(a,b,c,d){if(!b.paused){im.prototype.update.call(this,a,b,c,d);var e=rm(b)&&rm(c),f=.5<=(d?Math.min(b.Nd,c.Nd):c.Nd);Nl(b.volume)&&(this.C=-1!=this.C?Math.min(this.C,b.volume):b.volume,this.I=Math.max(this.I,b.volume));f&&(this.ya+=a,this.Z+=e?a:0);this.j.update(b.Nd,c.Nd,b.j,a,d,e);this.B.update(!0,a);this.D.update(e,a);this.ea.update(c.fullscreen,a);this.ob.update(e&&!f,a);a=Math.floor(b.mediaTime/1E3);this.Ia.update(a,b.isVisible());this.Ya.update(a,1<=b.Nd);this.Wa.update(a,
rm(b))}};Cia.prototype.D=function(a){this.u||(this.j(a)?(a=Nja(this.Z,this.B,a),this.C|=a,a=0==a):a=!1,this.u=a)};g.v(Em,Cia);Em.prototype.j=function(){return!0};
Em.prototype.I=function(){return!1};
Em.prototype.getId=function(){var a=this,b=uf(Om,function(c){return c==a.B});
return hn[b].toString()};
Em.prototype.toString=function(){var a="";this.I()&&(a+="c");this.u&&(a+="s");0<this.C&&(a+=":"+this.C);return this.getId()+a};g.v(Fm,Em);Fm.prototype.D=function(a,b){b=void 0===b?null:b;null!=b&&this.J.push(b);Em.prototype.D.call(this,a)};g.v(Gm,Wl);g.k=Gm.prototype;g.k.LG=function(){if(this.element){var a=this.element,b=this.u.j.B;try{try{var c=Kha(a.getBoundingClientRect())}catch(n){c=new pl(0,0,0,0)}var d=c.right-c.left,e=c.bottom-c.top,f=Hha(a,b),h=f.x,l=f.y;var m=new pl(Math.round(l),Math.round(h+d),Math.round(l+e),Math.round(h))}catch(n){m=$Ya.clone()}this.j=m}};
g.k.ZN=function(){this.C=this.u.C.j};
g.k.UP=function(a){var b=1==wk(this.featureSet,"od");return kia(a,this.C,this.element,b)};
g.k.aO=function(){this.timestamp=kl()};
g.k.Ap=function(){this.aO();this.LG();if(this.element&&"number"===typeof this.element.videoWidth&&"number"===typeof this.element.videoHeight){var a=this.element;var b=new g.Kg(a.videoWidth,a.videoHeight);a=this.j;var c=ql(a),d=a.getHeight(),e=b.width;b=b.height;0>=e||0>=b||0>=c||0>=d||(e/=b,b=c/d,a=a.clone(),e>b?(c/=e,d=(d-c)/2,0<d&&(d=a.top+d,a.top=Math.round(d),a.bottom=Math.round(d+c))):(d*=e,c=Math.round((c-d)/2),0<c&&(c=a.left+c,a.left=Math.round(c),a.right=Math.round(c+d))));this.j=a}this.ZN();
a=this.j;c=this.C;a=a.left<=c.right&&c.left<=a.right&&a.top<=c.bottom&&c.top<=a.bottom?new pl(Math.max(a.top,c.top),Math.min(a.right,c.right),Math.min(a.bottom,c.bottom),Math.max(a.left,c.left)):new pl(0,0,0,0);c=a.top>=a.bottom||a.left>=a.right?new pl(0,0,0,0):a;a=this.u.C;b=e=d=0;0<(this.j.bottom-this.j.top)*(this.j.right-this.j.left)&&(this.UP(c)?c=new pl(0,0,0,0):(d=Pl().C,b=new pl(0,d.height,d.width,0),d=mm(c,this.j),e=mm(c,Pl().j),b=mm(c,b)));c=c.top>=c.bottom||c.left>=c.right?new pl(0,0,0,
0):sl(c,-this.j.left,-this.j.top);Rl()||(e=d=0);this.J=new ul(a,this.element,this.j,c,d,e,this.timestamp,b)};
g.k.getName=function(){return this.u.getName()};var dZa=new pl(0,0,0,0);g.v(Hm,Gm);g.k=Hm.prototype;g.k.JF=function(){this.B();return!0};
g.k.aq=function(){Gm.prototype.Ap.call(this)};
g.k.aO=function(){};
g.k.LG=function(){};
g.k.Ap=function(){this.B();Gm.prototype.Ap.call(this)};
g.k.Yv=function(a){a=a.isActive();a!==this.I&&(a?this.B():(Pl().j=new pl(0,0,0,0),this.j=new pl(0,0,0,0),this.C=new pl(0,0,0,0),this.timestamp=-1));this.I=a};var D3={},Mia=(D3.firstquartile=0,D3.midpoint=1,D3.thirdquartile=2,D3.complete=3,D3);g.v(Jm,nm);g.k=Jm.prototype;g.k.An=function(){return!0};
g.k.Eo=function(){return 2==this.Ch};
g.k.fP=function(a){return pia(this,a,Math.max(1E4,this.B/3))};
g.k.Ja=function(a,b,c,d,e,f,h){var l=this,m=this.J(this)||{};g.If(m,e);this.B=m.duration||this.B;this.Z=m.isVpaid||this.Z;this.La=m.isYouTube||this.La;e=Eia(this,b);1===Dia(this)&&(f=e);nm.prototype.Ja.call(this,a,b,c,d,m,f,h);this.Xs&&this.Xs.u&&g.qc(this.I,function(n){n.D(l)})};
g.k.HL=function(a,b,c){nm.prototype.HL.call(this,a,b,c);Mm(this).update(a,b,this.Ig,c);this.kb=rm(this.Ig)&&rm(b);-1==this.Ba&&this.eb&&(this.Ba=this.Sh().B.j);this.Ag.B=0;a=this.Fo();b.isVisible()&&Am(this.Ag,"vs");a&&Am(this.Ag,"vw");Nl(b.volume)&&Am(this.Ag,"am");rm(b)&&Am(this.Ag,"a");this.cw&&Am(this.Ag,"f");-1!=b.u&&(Am(this.Ag,"bm"),1==b.u&&Am(this.Ag,"b"));rm(b)&&b.isVisible()&&Am(this.Ag,"avs");this.kb&&a&&Am(this.Ag,"avw");0<b.Nd&&Am(this.Ag,"pv");Nm(this,this.Sh().B.j,!0)&&Am(this.Ag,"gdr");
2E3<=gm(this.Sh().u,1)&&Am(this.Ag,"pmx")};
g.k.JC=function(){return new Cm};
g.k.Sh=function(){return this.tD};
g.k.VH=function(){return new via};
g.k.JG=function(a,b,c,d){a=nm.prototype.JG.call(this,a,b,c,void 0===d?-1:d);a.fullscreen=this.cw;a.paused=this.Eo();a.volume=c.volume;Nl(a.volume)||(this.yb++,b=this.Ig,Nl(b.volume)&&(a.volume=b.volume));c=c.currentTime;a.mediaTime=void 0!==c&&0<=c?c:-1;return a};
g.k.XG=function(a){return Pl(),this.cw?1:nm.prototype.XG.call(this,a)};
g.k.Mm=function(){return 1};
g.k.getDuration=function(){return this.B};
g.k.lP=function(){return this.iq?2:Gia(this)?5:this.Fo()?4:3};
g.k.AC=function(){return this.ob?2E3<=this.Sh().D.B?4:3:2};var eZa=g.Ra();Wia.prototype.reset=function(){this.j=[];this.u=[]};
var Tm=Qk(Wia);g.v(Wm,Xl);g.k=Wm.prototype;g.k.getName=function(){return(this.u?this.u:this.j).getName()};
g.k.Tp=function(){return(this.u?this.u:this.j).Tp()};
g.k.po=function(){return(this.u?this.u:this.j).po()};
g.k.init=function(a){var b=!1;(0,g.qc)(this.B,function(c){c.initialize()&&(b=!0)});
b&&(this.C=a,Ul(this.j,this));return b};
g.k.dispose=function(){(0,g.qc)(this.B,function(a){a.dispose()});
Xl.prototype.dispose.call(this)};
g.k.QM=function(){return Ol(this.B,function(a){return a.Kx()})};
g.k.Mx=function(){return Ol(this.B,function(a){return a.Kx()})};
g.k.qB=function(a,b,c){return new Gm(a,this.j,b,c)};
g.k.aq=function(a){this.u=a.u};var eja={threshold:[0,.3,.5,.75,1]};g.v(Xm,Gm);g.k=Xm.prototype;g.k.JF=function(){var a=this;this.Z||(this.Z=kl());if(xha(298,function(){return fja(a)}))return!0;
this.u.fail("msf");return!1};
g.k.Lx=function(){if(this.B&&this.element)try{this.B.unobserve(this.element),this.I?(this.I.unobserve(this.element),this.I=null):this.D&&(this.D.disconnect(),this.D=null)}catch(a){}};
g.k.Ap=function(){var a=Ym(this);0<a.length&&Zm(this,a);Gm.prototype.Ap.call(this)};
g.k.LG=function(){};
g.k.UP=function(){return!1};
g.k.ZN=function(){};
g.k.Tp=function(){var a={};return Object.assign(this.u.Tp(),(a.niot_obs=this.Z,a.niot_cbk=this.S,a))};
g.k.getName=function(){return"nio"};g.v($m,Xl);$m.prototype.getName=function(){return"nio"};
$m.prototype.Mx=function(){return!Pl().u&&null!=this.j.j.B.IntersectionObserver};
$m.prototype.qB=function(a,b,c){return new Xm(a,this.j,b,c)};g.v(an,Tl);an.prototype.jP=function(){return Pl().j};
an.prototype.Kx=function(){var a=hja();this.S!==a&&(this.j!=this&&a>this.j.S&&(this.j=this,Vl(this)),this.S=a);return 2==a};bn.prototype.sample=function(){en(this,Um(),!1)};
bn.prototype.C=function(){var a=Rl(),b=kl();a?(ml||(nl=b,g.qc(Tm.j,function(c){var d=c.Sh();d.La=Dm(d,b,1!=c.Ch)})),ml=!0):(this.J=mja(this,b),ml=!1,Nia=b,g.qc(Tm.j,function(c){c.By&&(c.Sh().S=b)}));
en(this,Um(),!a)};
var cn=Qk(bn);var pja=null,Dn="",Cn=!1;var sja=rja().Am,gn=rja().Cm;var vja={Ara:"visible",Wca:"audible",VXa:"time",ZXa:"timetype"},wja={visible:function(a){return/^(100|[0-9]{1,2})$/.test(a)},
audible:function(a){return"0"==a||"1"==a},
timetype:function(a){return"mtos"==a||"tos"==a},
time:function(a){return/^(100|[0-9]{1,2})%$/.test(a)||/^([0-9])+ms$/.test(a)}};
uja.prototype.setTime=function(a,b,c){"ms"==b?(this.B=a,this.C=-1):(this.B=-1,this.C=a);this.D=void 0===c?"tos":c;return this};g.v(ln,Em);ln.prototype.getId=function(){return this.J};
ln.prototype.I=function(){return!0};
ln.prototype.j=function(a){var b=a.Sh(),c=a.getDuration();return Ol(this.S,function(d){if(void 0!=d.j)var e=yja(d,b);else b:{switch(d.D){case "mtos":e=d.u?b.D.B:b.B.j;break b;case "tos":e=d.u?b.D.j:b.B.j;break b}e=0}0==e?d=!1:(d=-1!=d.B?d.B:void 0!==c&&0<c?d.C*c:-1,d=-1!=d&&e>=d);return d})};g.v(mn,zja);mn.prototype.u=function(){return null};
mn.prototype.B=function(){return[]};g.v(nn,yia);nn.prototype.j=function(a){var b=new vm;b.j=zm(a,aZa);b.u=zm(a,cZa);return b};g.v(on,Em);on.prototype.j=function(a){return Gia(a)};g.v(pn,zja);g.v(qn,Em);qn.prototype.j=function(a){return a.Sh().Fo()};g.v(rn,Fm);rn.prototype.j=function(a){var b=g.Sb(this.J,wk(Zk().featureSet,"ovms"));return!a.iq&&(0!=a.Ch||b)};g.v(sn,pn);sn.prototype.u=function(){return new rn(this.j)};
sn.prototype.B=function(){return[new qn("viewable_impression",this.j),new on(this.j)]};g.v(tn,Hm);tn.prototype.B=function(){var a=g.Ga("ima.admob.getViewability"),b=wk(this.featureSet,"queryid");"function"===typeof a&&b&&a(b)};
tn.prototype.getName=function(){return"gsv"};g.v(un,Xl);un.prototype.getName=function(){return"gsv"};
un.prototype.Mx=function(){var a=Pl();Zk();return a.u&&!1};
un.prototype.qB=function(a,b,c){return new tn(this.j,b,c)};g.v(vn,Hm);vn.prototype.B=function(){var a=this,b=g.Ga("ima.bridge.getNativeViewability"),c=wk(this.featureSet,"queryid");"function"===typeof b&&c&&b(c,function(d){g.vf(d)&&a.D++;var e=d.opt_nativeViewVisibleBounds||{},f=d.opt_nativeViewHidden;a.j=Lha(d.opt_nativeViewBounds||{});var h=a.u.C;h.j=f?dZa.clone():Lha(e);a.timestamp=d.opt_nativeTime||-1;Pl().j=h.j;d=d.opt_nativeVolume;void 0!==d&&(h.volume=d)})};
vn.prototype.getName=function(){return"nis"};g.v(wn,Xl);wn.prototype.getName=function(){return"nis"};
wn.prototype.Mx=function(){var a=Pl();Zk();return a.u&&!1};
wn.prototype.qB=function(a,b,c){return new vn(this.j,b,c)};g.v(xn,Tl);g.k=xn.prototype;g.k.Kx=function(){return null!=this.u.zl};
g.k.cP=function(){var a={};this.Ia&&(a.mraid=this.Ia);this.Aa&&(a.mlc=1);a.mtop=this.u.P4;this.J&&(a.mse=this.J);this.La&&(a.msc=1);a.mcp=this.u.compatibility;return a};
g.k.Nq=function(a){var b=g.za.apply(1,arguments);try{return this.u.zl[a].apply(this.u.zl,b)}catch(c){jl(538,c,.01,function(d){d.method=a})}};
g.k.initialize=function(){var a=this;if(this.isInitialized)return!this.lz();this.isInitialized=!0;if(2===this.u.compatibility)return this.J="ng",this.fail("w"),!1;if(1===this.u.compatibility)return this.J="mm",this.fail("w"),!1;Pl().S=!0;this.B.document.readyState&&"complete"==this.B.document.readyState?Dja(this):km(this.B,"load",function(){Sk().setTimeout(il(292,function(){return Dja(a)}),100)},292);
return!0};
g.k.OM=function(){var a=Pl(),b=Ija(this,"getMaxSize");a.j=new pl(0,b.width,b.height,0)};
g.k.PM=function(){Pl().C=Ija(this,"getScreenSize")};
g.k.dispose=function(){Fja(this);Tl.prototype.dispose.call(this)};g.k=zn.prototype;g.k.wy=function(a){om(a,!1);$ia(a)};
g.k.OC=function(){};
g.k.oA=function(a,b,c,d){var e=this;b=c?b:-1;c=this.uO();a=new Jm(Ck,a,b,7,this.gH(),c.u(),c.B());a.hh=d;Ega(a.featureSet);vk(a.featureSet,"queryid",a.hh);a.iK("");sia(a,function(){return e.sP.apply(e,g.t(g.za.apply(0,arguments)))},function(){return e.uZ.apply(e,g.t(g.za.apply(0,arguments)))});
(d=Qk(Vm).j)&&oia(a,d);a.Ci.oq&&Qk(ija);return a};
g.k.Yv=function(a){switch(a.po()){case 0:if(a=Qk(Vm).j)a=a.j,g.Xb(a.D,this),a.Z&&this.An()&&Rha(a);Bn();break;case 2:dn()}};
g.k.aq=function(){};
g.k.An=function(){return!1};
g.k.uZ=function(a,b){a.iq=!0;switch(a.Mm()){case 1:Oja(a,b);break;case 2:this.uK(a)}this.KK()};
g.k.DZ=function(a){var b=a.J(a);b&&(b=b.volume,a.ob=Nl(b)&&0<b);Jia(a,0);return Pm(a,"start",Rl())};
g.k.jx=function(a,b,c){en(cn,[a],!Rl());return this.Nm(a,b,c)};
g.k.Nm=function(a,b,c){return Pm(a,c,Rl())};
g.k.yZ=function(a){return Hn(a,"firstquartile",1)};
g.k.AZ=function(a){a.eb=!0;return Hn(a,"midpoint",2)};
g.k.EZ=function(a){return Hn(a,"thirdquartile",3)};
g.k.vZ=function(a){var b=Hn(a,"complete",4);Km(a);return b};
g.k.wZ=function(a){a.Ch=3;return Pm(a,"error",Rl())};
g.k.lS=function(a,b,c){b=Rl();if(a.Eo()&&!b){var d=kl();a.Sh().S=d}en(cn,[a],!b);a.Eo()&&(a.Ch=1);return Pm(a,c,b)};
g.k.CZ=function(a,b){b=this.jx(a,b||{},"skip");Km(a);return b};
g.k.zZ=function(a,b){om(a,!0);return this.jx(a,b||{},"fullscreen")};
g.k.xZ=function(a,b){om(a,!1);return this.jx(a,b||{},"exitfullscreen")};
g.k.aK=function(a,b,c){b=a.Sh();var d=kl();b.La=Dm(b,d,1!=a.Ch);en(cn,[a],!Rl());1==a.Ch&&(a.Ch=2);return Pm(a,c,Rl())};
g.k.BZ=function(a){en(cn,[a],!Rl());return a.u()};
g.k.oI=function(a){en(cn,[a],!Rl());this.fS(a);Km(a);return a.u()};
g.k.sP=function(){};
g.k.uK=function(){};
g.k.fS=function(){};
g.k.RM=function(){};
g.k.KK=function(){};
g.k.hH=function(){};
g.k.uO=function(){this.j||(this.j=this.hH());return null==this.j?new mn:new sn(this.j)};
g.k.gH=function(){return new nn};g.v(In,Em);In.prototype.j=function(a){return 4==a.AC()};g.v(Jn,Fm);Jn.prototype.j=function(a){a=a.AC();return 3==a||4==a};g.v(Kn,pn);Kn.prototype.u=function(){return new Jn(this.j)};
Kn.prototype.B=function(){return[new In(this.j)]};g.v(Ln,yia);Ln.prototype.j=function(a){!a||4!==a.vs&&5!==a.vs||(a=Object.assign({},a,{vs:3}));var b=new vm;b.j=zm(a,bZa);b.u=zm(a,cZa);return b};Tja.prototype.u=function(){return g.Ga(this.j)};var Ema={Ana:"EMBEDDED_PLAYER_MODE_UNKNOWN",xna:"EMBEDDED_PLAYER_MODE_DEFAULT",zna:"EMBEDDED_PLAYER_MODE_PFP",yna:"EMBEDDED_PLAYER_MODE_PFL"},fZa={FW:"LIVING_ROOM_APP_MODE_UNSPECIFIED",BW:"LIVING_ROOM_APP_MODE_MAIN",zW:"LIVING_ROOM_APP_MODE_KIDS",DW:"LIVING_ROOM_APP_MODE_MUSIC",EW:"LIVING_ROOM_APP_MODE_UNPLUGGED",yW:"LIVING_ROOM_APP_MODE_GAMING"},Yma={y3a:"WEB_DISPLAY_MODE_UNKNOWN",u3a:"WEB_DISPLAY_MODE_BROWSER",w3a:"WEB_DISPLAY_MODE_MINIMAL_UI",x3a:"WEB_DISPLAY_MODE_STANDALONE",v3a:"WEB_DISPLAY_MODE_FULLSCREEN"};g.v(Mn,zn);g.k=Mn.prototype;g.k.OC=function(a,b){var c=this,d=Qk(Vm);if(null!=d.j)switch(d.j.getName()){case "nis":var e=Xja(this,a,b);break;case "gsv":e=Wja(this,a,b);break;case "exc":e=Yja(this,a)}e||(b.opt_overlayAdElement?e=void 0:b.opt_adElement&&(e=Qja(this,a,b.opt_adElement,b.opt_osdId)));e&&1==e.Mm()&&(e.J==g.Yf&&(e.J=function(f){return c.RM(f)}),Vja(this,e,b));
return e};
g.k.RM=function(a){a.u=0;a.ya=0;if("h"==a.C||"n"==a.C){Zk();a.Ya&&(Zk(),"h"!=Fn(this)&&Fn(this));var b=g.Ga("ima.common.getVideoMetadata");if("function"===typeof b)try{var c=b(a.hh)}catch(e){a.u|=4}else a.u|=2}else if("b"==a.C)if(b=g.Ga("ytads.bulleit.getVideoMetadata"),"function"===typeof b)try{c=b(a.hh)}catch(e){a.u|=4}else a.u|=2;else if("ml"==a.C)if(b=g.Ga("ima.common.getVideoMetadata"),"function"===typeof b)try{c=b(a.hh)}catch(e){a.u|=4}else a.u|=2;else a.u|=1;a.u||(void 0===c?a.u|=8:null===
c?a.u|=16:g.vf(c)?a.u|=32:null!=c.errorCode&&(a.ya=c.errorCode,a.u|=64));null==c&&(c={});b=c;a.S=0;for(var d in VYa)null==b[d]&&(a.S|=VYa[d]);Sja(b,"currentTime");Sja(b,"duration");Nl(c.volume)&&Nl()&&(c.volume*=NaN);return c};
g.k.hH=function(){Zk();"h"!=Fn(this)&&Fn(this);var a=Zja(this);return null!=a?new Tja(a):null};
g.k.uK=function(a){!a.j&&a.iq&&Gn(this,a,"overlay_unmeasurable_impression")&&(a.j=!0)};
g.k.fS=function(a){a.DS&&(a.Fo()?Gn(this,a,"overlay_viewable_end_of_session_impression"):Gn(this,a,"overlay_unviewable_impression"),a.DS=!1)};
g.k.sP=function(){};
g.k.KK=function(){};
g.k.oA=function(a,b,c,d){if(wk(Zk().featureSet,"ima_tt")){var e=wk(Zk().featureSet,"mm"),f={};(e=(f[Vk.PT]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",f[Vk.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",f)[e])&&On(this,e);"ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"===this.C&&jl(1044,Error())}a=zn.prototype.oA.call(this,a,b,c,d);this.D&&(b=this.I,null==a.D&&(a.D=new tia),b.j[a.hh]=a.D,a.D.D=eZa);return a};
g.k.wy=function(a){a&&1==a.Mm()&&this.D&&delete this.I.j[a.hh];return zn.prototype.wy.call(this,a)};
g.k.uO=function(){this.j||(this.j=this.hH());return null==this.j?new mn:"ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"===this.C?new Kn(this.j):new sn(this.j)};
g.k.gH=function(){return"ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"===this.C?new Ln:new nn};
var Nn=new vm;Nn.j="stopped";Nn.u="stopped";var gZa=hl(193,Pn,void 0,Pja);g.Fa("Goog_AdSense_Lidar_sendVastEvent",gZa);var hZa=il(194,function(a,b){b=void 0===b?{}:b;a=bka(Qk(Mn),a,b);return cka(a)});
g.Fa("Goog_AdSense_Lidar_getViewability",hZa);var iZa=hl(195,function(){return eha()});
g.Fa("Goog_AdSense_Lidar_getUrlSignalsArray",iZa);var jZa=il(196,function(){return JSON.stringify(eha())});
g.Fa("Goog_AdSense_Lidar_getUrlSignalsList",jZa);var fma=(new Date).getTime();var kZa="client_dev_domain client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");[].concat(g.t(kZa),["client_dev_set_cookie"]);var eka="://secure-...imrworldwide.com/ ://cdn.imrworldwide.com/ ://aksecure.imrworldwide.com/ ://[^.]*.moatads.com ://youtube[0-9]+.moatpixel.com ://pm.adsafeprotected.com/youtube ://pm.test-adsafeprotected.com/youtube ://e[0-9]+.yt.srs.doubleverify.com www.google.com/pagead/xsul www.youtube.com/pagead/slav".split(" "),fka=/\bocr\b/;var hka=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;g.v(Sn,g.Uf);Sn.prototype.dispose=function(){window.removeEventListener("offline",this.C);window.removeEventListener("online",this.C);this.xl.Zk(this.I);delete Sn.j};
Sn.prototype.tf=function(){return this.j};Un.prototype.set=function(a,b){b=void 0===b?!0:b;Number.isInteger(a);0<=a&&52>a&&Number.isInteger(a)&&this.data_[a]!==b&&(this.data_[a]=b,this.j=-1)};
Un.prototype.get=function(a){return!!this.data_[a]};g.Va(g.Vn,g.J);g.k=g.Vn.prototype;g.k.start=function(){this.stop();this.C=!1;var a=lka(this),b=mka(this);a&&!b&&this.u.mozRequestAnimationFrame?(this.j=g.Nf(this.u,"MozBeforePaint",this.B),this.u.mozRequestAnimationFrame(null),this.C=!0):this.j=a&&b?a.call(this.u,this.B):this.u.setTimeout(Pca(this.B),20)};
g.k.stop=function(){if(this.isActive()){var a=lka(this),b=mka(this);a&&!b&&this.u.mozRequestAnimationFrame?Rf(this.j):a&&b?b.call(this.u,this.j):this.u.clearTimeout(this.j)}this.j=null};
g.k.isActive=function(){return null!=this.j};
g.k.AV=function(){this.C&&this.j&&Rf(this.j);this.j=null;this.I.call(this.D,g.Ra())};
g.k.ra=function(){this.stop();g.Vn.Re.ra.call(this)};g.Va(g.Xn,g.J);g.k=g.Xn.prototype;g.k.Nx=0;g.k.ra=function(){g.Xn.Re.ra.call(this);this.stop();delete this.j;delete this.u};
g.k.start=function(a){this.stop();this.Nx=g.Mh(this.B,void 0!==a?a:this.yh)};
g.k.stop=function(){this.isActive()&&g.C.clearTimeout(this.Nx);this.Nx=0};
g.k.isActive=function(){return 0!=this.Nx};
g.k.SM=function(){this.Nx=0;this.j&&this.j.call(this.u)};ao.prototype[Symbol.iterator]=function(){return this};
ao.prototype.next=function(){var a=this.j.next();return{value:a.done?void 0:this.u.call(void 0,a.value),done:a.done}};ko.prototype.ij=function(){return new lo(this.u())};
ko.prototype[Symbol.iterator]=function(){return new mo(this.u())};
ko.prototype.j=function(){return new mo(this.u())};
g.v(lo,g.pm);lo.prototype.next=function(){return this.u.next()};
lo.prototype[Symbol.iterator]=function(){return new mo(this.u)};
lo.prototype.j=function(){return new mo(this.u)};
g.v(mo,ko);mo.prototype.next=function(){return this.B.next()};g.k=g.oo.prototype;g.k.ek=function(){qo(this);for(var a=[],b=0;b<this.j.length;b++)a.push(this.u[this.j[b]]);return a};
g.k.jo=function(){qo(this);return this.j.concat()};
g.k.has=function(a){return po(this.u,a)};
g.k.equals=function(a,b){if(this===a)return!0;if(this.size!=a.size)return!1;b=b||qka;qo(this);for(var c,d=0;c=this.j[d];d++)if(!b(this.get(c),a.get(c)))return!1;return!0};
g.k.isEmpty=function(){return 0==this.size};
g.k.clear=function(){this.u={};this.Wq=this.size=this.j.length=0};
g.k.remove=function(a){return this.delete(a)};
g.k.delete=function(a){return po(this.u,a)?(delete this.u[a],--this.size,this.Wq++,this.j.length>2*this.size&&qo(this),!0):!1};
g.k.get=function(a,b){return po(this.u,a)?this.u[a]:b};
g.k.set=function(a,b){po(this.u,a)||(this.size+=1,this.j.push(a),this.Wq++);this.u[a]=b};
g.k.forEach=function(a,b){for(var c=this.jo(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};
g.k.clone=function(){return new g.oo(this)};
g.k.transpose=function(){for(var a=new g.oo,b=0;b<this.j.length;b++){var c=this.j[b];a.set(this.u[c],c)}return a};
g.k.keys=function(){return no(this.ij(!0)).j()};
g.k.values=function(){return no(this.ij(!1)).j()};
g.k.entries=function(){var a=this;return nka(this.keys(),function(b){return[b,a.get(b)]})};
g.k.ij=function(a){qo(this);var b=0,c=this.Wq,d=this,e=new g.pm;e.next=function(){if(c!=d.Wq)throw Error("The map has changed since the iterator was created");if(b>=d.j.length)return g.p3;var f=d.j[b++];return g.qm(a?f:d.u[f])};
return e};g.Va(g.ro,g.Uf);g.k=g.ro.prototype;g.k.Tc=function(){return 1==this.j};
g.k.CD=function(){this.bk("begin")};
g.k.Vz=function(){this.bk("end")};
g.k.onFinish=function(){this.bk("finish")};
g.k.bk=function(a){this.dispatchEvent(a)};var lZa=Zf(function(){if(g.Ac)return g.vc("10.0");var a=g.hh("DIV"),b=g.gf?"-webkit":Al?"-moz":g.Ac?"-ms":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");c={style:c};if(!EYa.test("div"))throw Error("");if("DIV"in GYa)throw Error("");b=void 0;var d="";if(c)for(h in c)if(Object.prototype.hasOwnProperty.call(c,h)){if(!EYa.test(h))throw Error("");var e=c[h];if(null!=e){var f=h;if(e instanceof gg)e=hg(e);else if("style"==f.toLowerCase()){if(!g.Ma(e))throw Error("");
e instanceof rg||(e=eda(e));e=sg(e)}else{if(/^on/i.test(f))throw Error("");if(f.toLowerCase()in FYa)if(e instanceof kg)e=Wca(e).toString();else if(e instanceof ng)e=g.og(e);else if("string"===typeof e)e=g.pg(e).dk();else throw Error("");}e.Wm&&(e=e.dk());f=f+'="'+db(String(e))+'"';d+=" "+f}}var h="<div"+d;null==b?b=[]:Array.isArray(b)||(b=[b]);!0===DYa.div?h+=">":(b=pda(b),h+=">"+g.yg(b).toString()+"</div>");h=zg(h);g.sda(a,h);return""!=g.Bl(a.firstChild,"transition")});g.Va(so,g.ro);g.k=so.prototype;g.k.play=function(){if(this.Tc())return!1;this.CD();this.bk("play");this.startTime=g.Ra();this.j=1;if(lZa())return g.zl(this.u,this.J),this.C=g.Mh(this.G3,void 0,this),!0;this.KF(!1);return!1};
g.k.G3=function(){g.Kl(this.u);rka(this.u,this.S);g.zl(this.u,this.D);this.C=g.Mh((0,g.Pa)(this.KF,this,!1),1E3*this.I)};
g.k.stop=function(){this.Tc()&&this.KF(!0)};
g.k.KF=function(a){g.zl(this.u,"transition","");g.C.clearTimeout(this.C);g.zl(this.u,this.D);this.endTime=g.Ra();this.j=0;if(a)this.bk("stop");else this.onFinish();this.Vz()};
g.k.ra=function(){this.stop();so.Re.ra.call(this)};
g.k.pause=function(){};var tka={rgb:!0,rgba:!0,alpha:!0,rect:!0,image:!0,"linear-gradient":!0,"radial-gradient":!0,"repeating-linear-gradient":!0,"repeating-radial-gradient":!0,"cubic-bezier":!0,matrix:!0,perspective:!0,rotate:!0,rotate3d:!0,rotatex:!0,rotatey:!0,steps:!0,rotatez:!0,scale:!0,scale3d:!0,scalex:!0,scaley:!0,scalez:!0,skew:!0,skewx:!0,skewy:!0,translate:!0,translate3d:!0,translatex:!0,translatey:!0,translatez:!0};to("Element","attributes")||to("Node","attributes");to("Element","innerHTML")||to("HTMLElement","innerHTML");to("Node","nodeName");to("Node","nodeType");to("Node","parentNode");to("Node","childNodes");to("HTMLElement","style")||to("Element","style");to("HTMLStyleElement","sheet");var zka=vka("getPropertyValue"),Aka=vka("setProperty");to("Element","namespaceURI")||to("Node","namespaceURI");var yka={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var Eka,Dka,Cka,Fka;Eka=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]");g.mZa=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.nZa=RegExp("^[^\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]*[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]");
g.uo=RegExp("^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");Dka=/^http:\/\/.*/;g.oZa=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");Cka=/\s+/;Fka=/[\d\u06f0-\u06f9]/;g.wo.prototype.clone=function(){return new g.wo(this.j,this.J,this.B,this.D,this.C,this.I,this.u,this.S)};
g.wo.prototype.equals=function(a){return this.j==a.j&&this.J==a.J&&this.B==a.B&&this.D==a.D&&this.C==a.C&&this.I==a.I&&this.u==a.u&&this.S==a.S};yo.prototype.clone=function(){return new yo(this.start,this.end)};var pZa=new WeakMap;(function(){if(LSa){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.nb()))?a[1]:"0"}return AT?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(g.nb()))?a[0].replace(/_/g,"."):"10"):g.Wu?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.nb()))?a[1]:""):hYa||iYa||jYa?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.nb()))?a[1].replace(/_/g,"."):""):""})();var Hka=function(){if(g.oB)return zo(/Firefox\/([0-9.]+)/);if(g.Ac||g.vw||g.IF)return uc;if(g.$D){if(Hb()||Ib()){var a=zo(/CriOS\/([0-9.]+)/);if(a)return a}return zo(/Chrome\/([0-9.]+)/)}if(g.Xv&&!Hb())return zo(/Version\/([0-9.]+)/);if(RF||vI){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.nb()))return a[1]+"."+a[2]}else if(g.JF)return(a=zo(/Android\s+([0-9.]+)/))?a:zo(/Version\/([0-9.]+)/);return""}();g.Va(g.Bo,g.J);g.k=g.Bo.prototype;g.k.subscribe=function(a,b,c){var d=this.u[a];d||(d=this.u[a]=[]);var e=this.I;this.j[e]=a;this.j[e+1]=b;this.j[e+2]=c;this.I=e+3;d.push(e);return e};
g.k.unsubscribe=function(a,b,c){if(a=this.u[a]){var d=this.j;if(a=a.find(function(e){return d[e+1]==b&&d[e+2]==c}))return this.Og(a)}return!1};
g.k.Og=function(a){var b=this.j[a];if(b){var c=this.u[b];0!=this.C?(this.B.push(a),this.j[a+1]=function(){}):(c&&g.Xb(c,a),delete this.j[a],delete this.j[a+1],delete this.j[a+2])}return!!b};
g.k.ma=function(a,b){var c=this.u[a];if(c){for(var d=Array(arguments.length-1),e=1,f=arguments.length;e<f;e++)d[e-1]=arguments[e];if(this.J)for(e=0;e<c.length;e++){var h=c[e];Ika(this.j[h+1],this.j[h+2],d)}else{this.C++;try{for(e=0,f=c.length;e<f&&!this.isDisposed();e++)h=c[e],this.j[h+1].apply(this.j[h+2],d)}finally{if(this.C--,0<this.B.length&&0==this.C)for(;c=this.B.pop();)this.Og(c)}}return 0!=e}return!1};
g.k.clear=function(a){if(a){var b=this.u[a];b&&(b.forEach(this.Og,this),delete this.u[a])}else this.j.length=0,this.u={}};
g.k.ra=function(){g.Bo.Re.ra.call(this);this.clear();this.B.length=0};g.Co.prototype.set=function(a,b){void 0===b?this.j.remove(a):this.j.set(a,g.di(b))};
g.Co.prototype.get=function(a){try{var b=this.j.get(a)}catch(c){return}if(null!==b)try{return JSON.parse(b)}catch(c){throw"Storage: Invalid value was encountered";}};
g.Co.prototype.remove=function(a){this.j.remove(a)};g.Va(Do,g.Co);Do.prototype.set=function(a,b){Do.Re.set.call(this,a,Kka(b))};
Do.prototype.u=function(a){a=Do.Re.get.call(this,a);if(void 0===a||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
Do.prototype.get=function(a){if(a=this.u(a)){if(a=a.data,void 0===a)throw"Storage: Invalid value was encountered";}else a=void 0;return a};g.Va(Eo,Do);Eo.prototype.set=function(a,b,c){if(b=Kka(b)){if(c){if(c<g.Ra()){Eo.prototype.remove.call(this,a);return}b.expiration=c}b.creation=g.Ra()}Eo.Re.set.call(this,a,b)};
Eo.prototype.u=function(a,b){var c=Eo.Re.u.call(this,a);if(c)if(!b&&g.Lka(c))Eo.prototype.remove.call(this,a);else return c};g.Va(g.Fo,Eo);g.Va(Go,Mka);Go.prototype[Symbol.iterator]=function(){return no(this.ij(!0)).j()};
Go.prototype.clear=function(){var a=Array.from(this);a=g.r(a);for(var b=a.next();!b.done;b=a.next())this.remove(b.value)};g.Va(Ho,Go);g.k=Ho.prototype;g.k.isAvailable=function(){if(!this.j)return!1;try{return this.j.setItem("__sak","1"),this.j.removeItem("__sak"),!0}catch(a){return!1}};
g.k.set=function(a,b){try{this.j.setItem(a,b)}catch(c){if(0==this.j.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
g.k.get=function(a){a=this.j.getItem(a);if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.k.remove=function(a){this.j.removeItem(a)};
g.k.ij=function(a){var b=0,c=this.j,d=new g.pm;d.next=function(){if(b>=c.length)return g.p3;var e=c.key(b++);if(a)return g.qm(e);e=c.getItem(e);if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return g.qm(e)};
return d};
g.k.clear=function(){this.j.clear()};
g.k.key=function(a){return this.j.key(a)};g.Va(Io,Ho);g.Va(Nka,Ho);g.Va(Ko,Go);var Oka={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},Jo=null;g.k=Ko.prototype;g.k.isAvailable=function(){return!!this.j};
g.k.set=function(a,b){this.j.setAttribute(Lo(a),b);Mo(this)};
g.k.get=function(a){a=this.j.getAttribute(Lo(a));if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.k.remove=function(a){this.j.removeAttribute(Lo(a));Mo(this)};
g.k.ij=function(a){var b=0,c=this.j.XMLDocument.documentElement.attributes,d=new g.pm;d.next=function(){if(b>=c.length)return g.p3;var e=c[b++];if(a)return g.qm(decodeURIComponent(e.nodeName.replace(/\./g,"%")).slice(1));e=e.nodeValue;if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return g.qm(e)};
return d};
g.k.clear=function(){for(var a=this.j.XMLDocument.documentElement,b=a.attributes.length;0<b;b--)a.removeAttribute(a.attributes[b-1].nodeName);Mo(this)};g.Va(No,Go);No.prototype.set=function(a,b){this.u.set(this.j+a,b)};
No.prototype.get=function(a){return this.u.get(this.j+a)};
No.prototype.remove=function(a){this.u.remove(this.j+a)};
No.prototype.ij=function(a){var b=this.u[Symbol.iterator](),c=this,d=new g.pm;d.next=function(){var e=b.next();if(e.done)return e;for(e=e.value;e.slice(0,c.j.length)!=c.j;){e=b.next();if(e.done)return e;e=e.value}return g.qm(a?e.slice(c.j.length):c.u.get(e))};
return d};Po.prototype.getKey=function(){return this.j};
Po.prototype.getValue=function(){return this.wd};
Po.prototype.clone=function(){return new Po(this.j,this.wd)};g.k=Qo.prototype;g.k.remove=function(){var a=this.j,b=a.length,c=a[0];if(!(0>=b)){if(1==b)a.length=0;else{a[0]=a.pop();a=0;b=this.j;for(var d=b.length,e=b[a];a<d>>1;){var f=2*a+1,h=2*a+2;f=h<d&&b[h].getKey()<b[f].getKey()?h:f;if(b[f].getKey()>e.getKey())break;b[a]=b[f];a=f}b[a]=e}return c.getValue()}};
g.k.ek=function(){for(var a=this.j,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};
g.k.jo=function(){for(var a=this.j,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getKey());return b};
g.k.clone=function(){return new Qo(this)};
g.k.isEmpty=function(){return 0===this.j.length};
g.k.clear=function(){this.j.length=0};g.v(Ro,Qo);Ro.prototype.enqueue=function(a,b){Pka(this,a,b)};Ha(So);So.prototype.j=0;/*


 The MIT License (MIT)

 Copyright (c) 2015-present Dan Abramov

 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 in the Software without restriction, including without limitation the rights
 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:

 The above copyright notice and this permission notice shall be included in all
 copies or substantial portions of the Software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 SOFTWARE.
*/
var Uo="@@redux/INIT"+To(),Uka="@@redux/REPLACE"+To();var Vka="function"===typeof Symbol&&Symbol.observable||"@@observable";g.v(Vo,g.I);Vo.prototype.getType=function(){return ud(this,11,0)};
g.v(Wo,g.I);Wo.prototype.getKey=function(){return td(this,3)};
var Wka=[2,13,14],tMa=[Vo,2,vYa,4,Q2,7,R2,9,R2,10,R2,11,wYa,12,R2,13,vYa,14,g.O2,[Wo,1,Q2,2,Q2,3,Q2,4,Q2,5,R2],15,g.N2,16,g.N2,17,R2,1,wYa,3,g.N2,5,g.N2,6,g.N2,8,Q2];var sXa=new g.Xo("adInfoDialogEndpoint");var mEa=new g.Xo("adPingingEndpoint");var Zpa={J$:0,H$:1,I$:2};var $pa={N$:0,M$:1,L$:2,K$:3};var dqa={Ica:0,Hca:1,Gca:2};var Ey={Sea:0,Tea:1,Qea:2,Pea:3,Nea:4,Rea:5,Oea:6,Mea:7};var cqa={Dfa:0,Cfa:1,yfa:2,ufa:3,Bfa:4,Efa:5,xfa:6,tfa:7,wfa:8,Afa:9,zfa:10,Ffa:11,vfa:12,Gfa:13};var Dqa={Vfa:0,Jfa:1,Mfa:2,Wfa:3,Kfa:4,Lfa:5,Rfa:6,Tfa:7,Ofa:8,Ifa:9,Qfa:10,Ufa:11,Pfa:12,Nfa:13,Sfa:14};var bqa={gna:0,ena:1,fna:2};var Cqa={iQa:0,hQa:1,gQa:2,fQa:3};var Bqa={pQa:0,jQa:1,kQa:5,lQa:6,nQa:2,oQa:3,mQa:4};var Aqa={sQa:0,tQa:1,rQa:2,qQa:3};var zqa={xQa:0,vQa:1,wQa:2};var yqa={E2a:0,t2a:1,A2a:2,u2a:3,B2a:4,x2a:5,C2a:6,y2a:7,w2a:8,v2a:9,z2a:10,D2a:11,s2a:12};g.v(Yo,g.I);Yo.prototype.getType=function(){return g.nd(this,1)};g.v(Zo,g.I);g.v($o,g.I);g.v(ap,g.I);g.v(bp,g.I);var Yka=[2];g.v(cp,g.I);var Zka=[3];g.v(dp,g.I);g.v(ep,g.I);g.v(fp,g.I);g.v(gp,g.I);g.v(hp,g.I);g.v(ip,g.I);g.v(jp,g.I);var Cy=[2,3,4,5,6,7,8,9,10,11];var iqa={aba:0,qaa:2,bba:3,raa:4,paa:5,Qaa:6,Raa:58,Baa:17,haa:18,Taa:15,Waa:7,Eaa:8,W$:10,X$:26,jaa:45,naa:11,Aaa:14,dba:16,S$:19,Y$:20,T$:21,fba:22,Z$:23,eba:24,oaa:25,O$:27,P$:53,Daa:28,iaa:30,Haa:31,eaa:32,aaa:33,Gaa:34,Caa:35,xaa:36,U$:37,Oaa:38,Naa:39,taa:41,yaa:42,vaa:43,uaa:44,V$:40,Jaa:46,Kaa:47,baa:48,Iaa:49,Maa:50,waa:51,zaa:52,cba:54,Uaa:55,Vaa:56,caa:57,Zaa:59,Paa:60,faa:67,Yaa:61,Xaa:62,Laa:63,Q$:64,maa:65,Saa:66,daa:68,R$:69,Faa:70,saa:71};var hqa={wba:0,vba:1,uba:2};var jqa={BBa:0,uBa:1,xBa:2,XAa:3,zBa:4,KAa:5,qBa:6,aBa:7,ABa:8,TAa:9,nBa:10,UAa:11,sBa:12,vAa:13,eBa:14,cBa:15,dBa:16,rBa:17,gBa:18,pBa:19,oBa:20,kBa:21,PAa:22,wAa:23,bBa:24,iBa:25,RAa:26,QAa:27,hBa:28,xAa:29,lBa:30,WAa:31,yBa:32,JAa:33,jBa:34,IAa:35,LAa:36,MAa:37,SAa:38,OAa:39,NAa:40,mBa:41,fBa:42,tBa:43,YAa:44,vBa:45,wBa:46,ZAa:47,VAa:70,FAa:48,CAa:49,HAa:50,GAa:51,EAa:52,BAa:53,yAa:54,DAa:55,AAa:56,zAa:57,tAa:58,sAa:59,rAa:60,lAa:61,qAa:62,mAa:63,nAa:64,kAa:65,oAa:66,uAa:67,pAa:68,jAa:69};var Ypa={Hea:0,Eea:1,Dea:18,Aea:2,tea:3,zea:9,uea:10,xea:14,vea:4,sea:5,wea:6,Iea:11,yea:12,rea:13,qea:15,Cea:16,Fea:17,Gea:19,Jea:20,Bea:7};var kqa={rba:0,tba:1,mba:2,nba:3,oba:4,kba:5,lba:6,pba:7,qba:8};var Dy={Qba:0,Gba:1,Pba:3,Nba:4,Mba:5,Rba:6,Eba:7,yba:8,Iba:9,xba:12,Hba:22,Kba:23,Oba:24,Lba:13,Sba:14,Jba:15,zba:16,Cba:17,Aba:18,Bba:19,Dba:20,Fba:21};g.v(kp,g.I);g.v(lp,g.I);var $ka=[1];g.v(mp,g.I);var ala=[2];g.v(np,g.I);var lqa=[1,2];var sqa={fOa:0,eOa:1,aOa:2,YNa:3,bOa:4,ZNa:5,dOa:6,cOa:7};g.qZa=new g.Xo("commandExecutorCommand");g.v(op,g.I);var Hy=[1,2,3];g.v(pp,g.I);g.v(qp,g.I);g.v(rp,g.I);g.v(up,g.I);var Gy=[1,2,3];g.v(vp,g.I);g.v(wp,g.I);var bla=[1];g.v(xp,g.I);g.v(yp,g.I);g.v(zp,g.I);g.v(Ap,g.I);g.v(Bp,g.I);g.v(Cp,g.I);g.v(Dp,g.I);g.v(Ep,g.I);g.v(Fp,g.I);g.v(Gp,g.I);g.v(Hp,g.I);g.v(Ip,g.I);g.v(Jp,g.I);g.v(Kp,g.I);g.v(Lp,g.I);g.v(Mp,g.I);g.v(Np,g.I);g.v(Op,g.I);g.v(Pp,g.I);g.v(Qp,g.I);Qp.prototype.getId=function(){return g.nd(this,1)};
g.v(Rp,g.I);Rp.prototype.getType=function(){return g.nd(this,1)};
g.v(Sp,g.I);Sp.prototype.getType=function(){return g.nd(this,1)};
g.v(Tp,g.I);g.v(Up,g.I);g.v(Vp,g.I);g.v(Wp,g.I);g.v(Xp,g.I);var dla=[1],rqa=[1,2],ela=[2],Jy=[1,2,3,4],uqa=[1,2],Iy=[3,4,5];g.v(Yp,g.I);g.v(Zp,g.I);Zp.prototype.getKey=function(){return g.nd(this,1)};
Zp.prototype.getValue=function(){return Md(this,2===Cd(this,rZa)?2:-1)};
Zp.prototype.setValue=function(a){return g.Dd(this,2,rZa,a)};
var rZa=[2,3,4,5,6];g.v($p,g.I);g.v(aq,g.I);g.v(bq,g.I);g.v(cq,g.I);g.v(dq,g.I);g.v(gla,g.I);var fla=[2];g.v(g.eq,g.I);g.eq.prototype.Qp=aa(1);g.eq.prototype.getPlayerType=function(){return g.nd(this,36)};
g.eq.prototype.setHomeGroupInfo=function(a){return F(this,gla,81,a)};
g.eq.prototype.clearLocationPlayabilityToken=function(){return wd(this,89)};
var hla=[9,66,24,32,86,100,101],pza={i1a:0,p3a:1,B3a:32,G3a:61,L3a:67,I3a:86,A3a:42,C3a:60,t3a:62,F3a:73,E3a:76,J3a:88,K3a:90,M3a:41,N3a:69,O3a:70,P3a:71,lHa:2,GHa:27,ANDROID:3,Yba:54,Zba:14,gca:91,aca:55,bca:24,cca:20,dca:18,fca:21,ica:30,lca:29,mca:28,nca:34,hca:36,eca:38,IOS:5,xwa:15,Hwa:92,ywa:40,Awa:25,Bwa:17,Cwa:19,Dwa:64,Ewa:66,Fwa:26,Jwa:22,Uwa:33,Vwa:68,Wwa:35,Gwa:53,Iwa:37,zwa:39,z_a:7,q0a:57,D0a:43,O0a:59,E0a:93,kca:74,S0a:75,T0a:85,U0a:65,W0a:80,X0a:8,x_a:10,a1a:58,Z0a:63,V0a:72,jca:23,
c4a:11,d4a:13,jga:12,y_a:16,z3a:56,H3a:31,HGa:77,Ota:84,D3a:87,Qta:89,Pta:94,qFa:95},sZa={l1a:0,CLASSIC:1,wxa:2,Rva:3,tha:4,rGa:5,wta:6,VW:7};g.v(fq,g.I);var ila=[15,26,28];g.v(gq,g.I);gq.prototype.setToken=function(a){return g.E(this,2,a)};g.v(hq,g.I);hq.prototype.setSafetyMode=function(a){return g.E(this,5,a)};
var jla=[12];g.v(iq,g.I);iq.prototype.J=function(a){F(this,g.eq,1,a)};
var kla=[12];var Fqa={RVa:0,QVa:1,rVa:2,sVa:3,tVa:4,uVa:5,vVa:6,wVa:7,xVa:8,yVa:9,zVa:10,AVa:11,BVa:12,CVa:13,DVa:14,EVa:15,FVa:16,GVa:17,HVa:18,IVa:19,JVa:20,MVa:21,KVa:22,LVa:23,NVa:24,OVa:25,PVa:26};var Eqa={bWa:0,SVa:1,TVa:2,UVa:3,VVa:4,WVa:5,XVa:6,YVa:7,ZVa:8,aWa:9,cWa:10};var vqa={mfa:0,Zea:1,nfa:2,kfa:3,Wea:4,Xea:5,jfa:6,Yea:7,gfa:8,ifa:13,bfa:9,dfa:10,ffa:11,ofa:12,afa:14,efa:15,cfa:16,lfa:17};var wqa={sfa:0,rfa:1,qfa:2,pfa:3};var oqa={Pca:0,Nca:4,Mca:2,Kca:5,Lca:8,Oca:9,Jca:3,Qca:6,Rca:7};var pqa={Xga:0,Uga:1,Vga:2,Yga:3,Zga:4,Wga:5};var nqa={Bha:0,zha:8,xha:2,vha:5,wha:9,yha:3,uha:4,Cha:6,Dha:7,Aha:10};var qqa={J2a:0,I2a:1,K2a:2};var tZa={M2a:0,L2a:1};var Qpa={z6:0,x6:1,w6:2,y6:3};g.uZa=new g.Xo("changeEngagementPanelVisibilityAction");var NFa=new g.Xo("continuationCommand");g.vZa=new g.Xo("openPopupAction");var wZa=new g.Xo("webCommandMetadata");var sBa=new g.Xo("metadataBadgeRenderer");var MFa=new g.Xo("signalServiceEndpoint");var Qqa={i$:0,j$:1,e$:2,h$:3,f$:4,g$:5};var Rqa={n$:0,l$:1,k$:2,m$:3,o$:4};g.v(jq,g.I);jq.prototype.getType=function(){return ud(this,1,0)};var Oy={rxa:0,sxa:1,qxa:2,mxa:3,oxa:4,pxa:5,txa:6,nxa:7};var xZa={oGa:0,hGa:1,iGa:2,nGa:3,jGa:4,mGa:6,lGa:7,kGa:8};var yZa={uIa:0,rIa:1,tIa:2,sIa:3,qIa:4};var zZa={IMa:0,tMa:1,JMa:2,HMa:3,GMa:4,FMa:5,EMa:6,wMa:7,uMa:8,AMa:9,NMa:10,vMa:11,CMa:12,LMa:13,MMa:14,DMa:15,zMa:16,yMa:17,BMa:18,xMa:19,KMa:20};var mqa={YMa:0,XMa:86};var Py={ZOa:0,YOa:1,ROa:2,OOa:3,QOa:4,aPa:5,XOa:6,MOa:7,bPa:8,KOa:9,VOa:10,cPa:11,WOa:12,NOa:13,JOa:14,POa:15,TOa:16,SOa:17,UOa:18,LOa:19};var hHa=new g.Xo("innertubeCommand");var PBa=new g.Xo("channelThumbnailEndpoint");var OBa=new g.Xo("embeddedPlayerErrorMessageRenderer");var KBa=new g.Xo("embeddedPlayerOverlayVideoDetailsRenderer"),QBa=new g.Xo("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),RBa=new g.Xo("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var oBa=new g.Xo("embedsInfoPanelRenderer");var xqa={qCa:0,eCa:1,nCa:2,pCa:3,fCa:4,iCa:5,kCa:6,gCa:7,hCa:8,mCa:9,oCa:10,jCa:11,lCa:12};var PIa=new g.Xo("feedbackEndpoint");var AZa=new g.Xo("callToActionButtonViewModel");var BZa={Jxa:0,Kxa:1,Ixa:2,Dxa:3,Cxa:4,Exa:5,Gxa:6,Fxa:7,Hxa:8};var CZa={Pxa:0,Mxa:1,Oxa:2,Nxa:3};var DZa={Zua:0,Gua:1,ava:8,Rua:16,Sua:17,Vua:2,Tua:3,Uua:4,Jua:5,Hua:6,Iua:7,Yua:9,Wua:10,Xua:11,Qua:12,Nua:13,Pua:14,Oua:15,Mua:18,Kua:19,Lua:20,Fua:21};var EZa={XLa:0,YLa:1,VLa:2};var FZa={kMa:0,gMa:1,iMa:2,fMa:3,hMa:4,jMa:5};var GZa={Qda:0,Oda:1,Pda:2};var HZa={Tda:0,Rda:1,Uda:2,Sda:3};var mra={g7:0,J6:1,S6:2,W6:3,c7:4,d7:5,h7:6,X6:7,I6:8,P6:9,O6:10,A6:11,R6:12,G6:14,L6:15,V6:16,U6:17,Q6:18,K6:29,M6:19,D6:20,H6:21,f7:22,B6:23,i7:24,N6:25,E6:26,Z6:27,F6:28,a7:30,b7:31,T6:32,e7:33,C6:34,Y6:35,j7:36};var IZa={Kga:0,Jga:1,Iga:2};g.v(kq,g.I);g.v(lq,g.I);var JZa={r8:0,T7:1,j8:4,k8:14,P7:15,l8:17,H7:6,J7:7,L7:8,K7:9,O7:5,a8:16,i8:20,h8:26,e8:28,S7:2,V7:19,D7:25,I7:29,p8:30,Y7:31,U7:3,f8:11,s8:27,b8:10,B7:12,C7:13,F7:18,X7:21,N7:22,A7:23,g8:24,y7:32,W7:33,z7:34,u8:35,E7:36,d8:37,R7:38,o8:39,m8:40,n8:41,t8:42,G7:43,q8:44,Q7:45,M7:46,c8:47,Z7:48};var KZa={I8:0,C8:1,E8:2,G8:3,B8:4,w8:5,y8:6,A8:7,F8:8,x8:9,z8:10,D8:13,H8:14,v8:11};var LZa={E9:0,L8:1,M8:2,O8:3,W8:4,y9:42,q9:9,z9:10,U8:11,w9:12,v9:13,e9:43,p9:14,f9:15,C9:47,h9:46,m9:16,l9:17,P8:18,t9:19,T8:20,u9:21,D9:22,A9:23,B9:24,S8:25,N8:26,x9:27,j9:28,n9:38,o9:39,s9:5,g9:6,V8:7,a9:8,k9:29,r9:30,i9:31,J8:32,b9:33,Z8:34,X8:35,G9:36,d9:37,F9:40,c9:41,K8:44,Y8:45,Q8:48};var Jqa={gha:0,dha:1,cha:2,fha:3,eha:4};var MZa={Ska:0,Qka:1,Nka:2,Rka:3,Oka:4,Pka:5};var NZa={Vka:0,Tka:1,Uka:2};var OZa={dla:0,ala:1,Yka:2,Zka:3,Xka:4};var PZa={gla:0,ela:1,fla:2,hla:3};var QZa={nla:0,ila:1,mla:2,lla:3,kla:4,jla:5};var RZa={ula:0,tla:1,ola:2};var SZa={sla:0,qla:1,rla:2};var TZa={xla:0,vla:1,wla:2};var UZa={Lla:0,Hla:1,Gla:2,Bla:3,Fla:4,zla:5,Ala:6,Ila:7,Cla:8,Jla:9,Ela:10,yla:11,Dla:12,Kla:13};var VZa={Qla:0,Ola:1,Pla:2,Nla:3,Mla:4};var Iqa={Eza:0,kza:1,lza:2,Cya:3,bza:4,mza:5,cza:6,Dya:7,nza:8,vya:9,wya:10,Jya:11,Bya:12,Eya:13,eza:14,Hya:15,uya:16,wza:17,Zya:18,Fya:19,hza:20,fza:21,gza:22,tya:23,Cza:25,vza:26,fAa:61,Sya:35,Mya:36,Kya:37,Oya:38,Qya:39,Pya:40,Wya:41,Tya:42,Rya:43,Xya:44,Yya:45,yya:24,zya:27,Aya:28,Yza:29,aAa:75,Zza:30,Vza:89,bAa:31,cAa:86,Wza:32,Xza:91,Jza:51,Lza:52,Uza:62,Nza:70,Rza:63,Pza:64,Kza:65,Tza:66,Mza:71,Qza:67,Oza:68,Sza:69,eAa:33,Uya:46,Vya:47,xza:49,yza:50,tza:77,pza:78,oza:79,qza:80,dza:53,Fza:54,
Hza:55,Gza:56,uza:57,Iza:58,iza:59,jza:60,rza:72,sza:84,Gya:73,Aza:74,xya:76,Dza:81,Lya:82,Bza:83,Nya:85,dAa:87,aza:88,Iya:90};var Kqa={bU:0,pga:1,rya:2,Sga:3,MW:4,NW:5,TPa:6,MQa:7,xNa:8,YW:9,qga:10,J9:11,L9:12,g3a:13,Z9:14,b$:15,T9:16,U9:17,M9:18,Kda:19,poa:20,Dva:21,owa:22,ZW:23,YXa:24,I9:25,KFa:26,JFa:47,QW:27,Jda:28,SPa:29,Vra:30,Cva:31,Hga:32,j2a:33,c2a:34,Z1a:35,h2a:36,i2a:37,e2a:38,f2a:39,g2a:40,b2a:41,a2a:42,Nda:43,xW:44,mda:45,OT:46,m7:48,qU:49,QXa:50,dna:51,RBa:52,S4a:53};var WZa={hLa:0,WKa:1,bLa:2,ZKa:3,aLa:4,VKa:5,fLa:6,gLa:7,UKa:8,dLa:9,XKa:10,YKa:11,cLa:12,eLa:13};var XZa={mLa:0,nLa:1,iLa:2,jLa:3,lLa:4,kLa:5};var Hqa={JLa:0,FLa:1,BLa:2,CLa:3,xLa:4,sLa:5,uLa:6,tLa:7,wLa:8,ILa:9,rLa:10,HLa:11,GLa:12,ELa:13,DLa:20,yLa:14,ALa:15,zLa:16,qLa:17,pLa:19,vLa:18};var Lqa={IUa:0,EUa:1,FUa:14,HUa:15,tUa:2,AUa:3,xUa:4,yUa:5,qUa:6,BUa:7,wUa:8,uUa:9,sUa:10,DUa:11,zUa:12,CUa:13,rUa:16,GUa:17,vUa:18};var Mqa={jZa:0,gZa:1,iZa:2,hZa:3,aZa:4,eZa:5,dZa:6,cZa:8,bZa:9,fZa:7};var Ly={t_a:0,kZa:1,KZa:2,n_a:3,i_a:4,sZa:5,UZa:6,AZa:7,XZa:8,RZa:9,h_a:10,k_a:11,ZZa:12,tZa:13,SZa:14,yZa:15,qZa:16,PZa:17,YZa:18,j_a:19,wZa:20,DZa:21,r_a:22,q_a:57,CZa:23,vZa:24,rZa:25,s_a:26,NZa:27,l_a:28,m_a:29,VZa:30,p_a:31,xZa:32,a_a:33,HZa:34,JZa:35,QZa:36,OZa:37,c_a:38,TZa:39,u_a:40,EZa:41,FZa:42,GZa:43,pZa:44,oZa:45,nZa:46,lZa:58,mZa:59,f_a:47,g_a:48,zZa:49,b_a:50,e_a:51,d_a:52,MZa:53,uZa:54,o_a:55,IZa:56,WZa:60,LZa:61,BZa:62};g.v(mq,g.I);g.v(nq,g.I);g.v(oq,g.I);g.v(pq,g.I);g.v(qq,g.I);g.v(rq,g.I);var Oqa=[1,2];g.v(sq,g.I);sq.prototype.getType=function(){return g.nd(this,1)};
var Nqa=[3,4];g.v(tq,g.I);tq.prototype.getType=function(){return g.nd(this,2)};
g.v(uq,g.I);uq.prototype.Rv=function(){return g.nd(this,1)};
var lla=[5],mla=[2,3,4,5,6];g.v(vq,g.I);vq.prototype.getType=function(){return g.nd(this,2)};
g.v(wq,g.I);var nla=[2,4,5,6];g.v(xq,g.I);g.v(yq,g.I);var ola=[1];g.v(zq,g.I);g.v(Aq,g.I);var pla=[2],qla=[1];g.v(Bq,g.I);g.v(Cq,g.I);g.v(Dq,g.I);var rla=[3];g.v(Eq,g.I);Eq.prototype.gg=function(){return g.nd(this,1)};g.v(Fq,g.I);Fq.prototype.rf=function(){return g.nd(this,2)};g.v(Gq,g.I);g.v(Hq,g.I);g.v(Iq,g.I);Iq.prototype.getType=function(){return g.nd(this,1)};g.v(Jq,g.I);g.v(Kq,g.I);g.v(Lq,g.I);g.v(Mq,g.I);Mq.prototype.yC=function(){return g.nd(this,4)};g.v(Nq,g.I);g.v(Oq,g.I);g.v(Pq,g.I);g.v(Qq,g.I);g.v(Rq,g.I);g.v(Sq,g.I);g.v(Tq,g.I);var E3=[1,2,3,4,5,6,7,8,9,10,11,12,13,14];g.v(Uq,g.I);g.v(Vq,g.I);g.v(Wq,g.I);g.v(Xq,g.I);g.v(Yq,g.I);Yq.prototype.getState=function(){return ud(this,1,0)};
Yq.prototype.Vc=function(a){g.E(this,1,a)};g.v(Zq,g.I);g.v($q,g.I);var sla=[1];g.v(ar,g.I);var tla=[2,3];g.v(br,g.I);var ula=[1,2];g.v(cr,g.I);g.v(dr,g.I);g.v(er,g.I);g.v(fr,g.I);g.v(gr,g.I);g.v(hr,g.I);hr.prototype.setConfig=function(a){return F(this,gr,2,a)};g.v(ir,g.I);g.v(jr,g.I);var vla=[1];g.v(kr,g.I);g.v(lr,g.I);lr.prototype.getKey=function(){return Qd(this,1)};
lr.prototype.getValue=function(){return Qd(this,2)};
lr.prototype.setValue=function(a){return g.E(this,2,a)};
var wla=[4,5];g.v(mr,g.I);g.v(nr,g.I);g.v(or,g.I);g.v(pr,g.I);var wy=[2,3,4];g.v(qr,g.I);qr.prototype.getMessage=function(){return Qd(this,1)};g.v(rr,g.I);g.v(sr,g.I);g.v(tr,g.I);g.v(ur,g.I);ur.prototype.rh=function(a,b){Kd(this,5,tr,a,b)};
var xla=[5];g.v(vr,g.I);var yla=[19,20];g.v(wr,g.I);g.v(xr,g.I);g.v(yr,g.I);yr.prototype.setConfig=function(a){return F(this,xr,3,a)};
var zla=[2,5];g.v(zr,g.I);zr.prototype.Lv=function(){return ud(this,2,0)};g.v(Ar,g.I);Ar.prototype.getPath=function(){return Qd(this,3)};
var Ala=[9];g.v(Br,g.I);g.v(Cr,g.I);g.v(Dr,g.I);g.v(Er,g.I);g.v(Fr,g.I);Fr.prototype.getType=function(){return ud(this,2,0)};
var Bla=[3];g.v(Gr,g.I);var Cla=[10,17];g.v(Hr,g.I);var Opa={Cca:0,Bca:1,yca:2,zca:3,Aca:4};g.v(Ir,g.I);Ir.prototype.Lf=function(){return Qd(this,2)};var vpa={loa:0,moa:3,noa:1,koa:2};var spa={cpa:0,voa:1,xoa:2,yoa:3,zoa:4,Aoa:5,Coa:6,Doa:7,Eoa:8,Foa:9,Goa:10,Joa:11,Koa:12,Loa:13,Moa:14,Noa:15,Ooa:16,Roa:17,Soa:18,Toa:19,Uoa:20,Voa:21,Woa:22,Xoa:23,Yoa:24,dpa:25,epa:26,Poa:27,Zoa:28,Qoa:29,Ioa:30,Boa:31,Hoa:32,fpa:33,gpa:34,uoa:35,woa:36,apa:37,bpa:38};var upa={ira:0,qpa:1,vqa:2,dra:3,tra:4,rqa:5,wqa:6,upa:7,xpa:8,wpa:9,Gqa:10,qqa:11,pqa:12,Oqa:13,Sqa:14,fra:15,rra:16,tpa:17,mpa:18,Kpa:19,Bpa:20,uqa:21,Aqa:22,gra:23,npa:24,opa:25,Lqa:26,Npa:27,Opa:28,Fqa:29,rpa:30,Ipa:31,tqa:32,Eqa:33,kpa:34,lpa:35,ipa:36,jpa:37,xqa:38,yqa:39,Rqa:40,spa:41,sra:42,Jqa:43,Dqa:44,Hqa:45,sqa:46,Iqa:47,Dpa:48,ypa:49,vra:50,Mpa:51,Lpa:52,zpa:53,Apa:54,ara:55,Zqa:56,Yqa:57,cra:58,Cpa:59,Epa:60,qra:61,Nqa:62,Kqa:63,Mqa:64,zqa:65,Uqa:66,Tqa:67,Vqa:68,Jpa:69,ura:70,Hpa:71,
Wqa:72,Xqa:73,Pqa:74,Qqa:75,Gpa:76,Fpa:77,Cqa:78,hra:79,Bqa:80,hpa:81,ppa:115,Rpa:82,Tpa:83,hqa:84,Upa:85,nqa:86,Spa:87,Wpa:88,bqa:89,eqa:90,jqa:91,gqa:92,iqa:93,Qpa:94,Xpa:95,fqa:96,Zpa:97,Ypa:98,Ppa:99,Vpa:100,kqa:101,cqa:102,oqa:103,lqa:104,aqa:105,mqa:106,dqa:107,kra:108,ora:109,nra:110,mra:111,pra:112,lra:113,jra:114};var YZa={oga:0,nga:1,kga:2,lga:3};var tra={MSa:0,rTa:1,uTa:2,gTa:3,hTa:4,iTa:5,vTa:39,wTa:6,sTa:7,qTa:50,jTa:32,kTa:44,lTa:33,tTa:8,mTa:9,nTa:10,pTa:11,oTa:12,NSa:56,OSa:57,PSa:58,QSa:59,RSa:60,SSa:61,QTa:13,RTa:14,STa:15,aUa:16,VTa:17,cUa:18,bUa:19,XTa:20,YTa:21,TTa:34,ZTa:35,WTa:36,UTa:49,WSa:37,XSa:38,ZSa:40,bTa:41,aTa:42,cTa:43,dTa:51,YSa:52,VSa:67,TSa:22,USa:23,ATa:24,FTa:25,GTa:62,ETa:26,CTa:27,zTa:48,xTa:53,yTa:63,HTa:66,BTa:54,DTa:68,fTa:64,eTa:65,ITa:28,LTa:29,KTa:30,JTa:31,NTa:45,PTa:46,OTa:47,MTa:55};var sra={eUa:0,fUa:1,dUa:2};var vra={iUa:0,hUa:1,gUa:2};var ura={pUa:0,nUa:1,lUa:2,oUa:3,jUa:4,kUa:5,mUa:6};var dra={JXa:0,IXa:1,HXa:2};var cra={NXa:0,LXa:1,KXa:2,MXa:3};g.v(Jr,g.I);g.v(Kr,g.I);g.v(Lr,g.I);g.v(Mr,g.I);g.v(Nr,g.I);g.v(Or,g.I);Or.prototype.getFeature=function(){return ud(this,2,0)};
Or.prototype.hasFeature=function(){return null!=g.nd(this,2)};g.v(Pr,g.I);g.v(Qr,g.I);g.v(Rr,g.I);g.v(Sr,g.I);Sr.prototype.getScreen=function(){return Ld(this,11)};
Sr.prototype.hasScreen=function(){return null!=g.nd(this,11)};
g.v(Tr,g.I);Tr.prototype.getName=function(){return ud(this,1,0)};
Tr.prototype.getStatus=function(){return ud(this,2,0)};
Tr.prototype.getState=function(){return ud(this,3,0)};
Tr.prototype.Vc=function(a){g.E(this,3,a)};
var Dla=[2];g.v(Ur,g.I);g.v(Vr,g.I);var Ela=[1,2];var rra={lya:0,jya:1,kya:2};var ara={ICa:0,CCa:1,FCa:2,JCa:3,DCa:4,ECa:5,GCa:6,HCa:7};var bra={MCa:0,LCa:1,KCa:2};var $qa={nHa:0,oHa:1,mHa:2};var Zqa={EHa:0,rHa:1,AHa:2,FHa:3,CHa:4,uHa:5,qHa:6,sHa:7,tHa:8,DHa:9,BHa:10,vHa:11,yHa:12,zHa:13,xHa:14,wHa:15,pHa:16};var Wqa={wWa:0,sWa:1,vWa:2,uWa:3,tWa:4};var Vqa={AWa:0,yWa:1,zWa:2,xWa:3};var Xqa={HWa:0,DWa:1,FWa:2,BWa:3,GWa:4,CWa:5,EWa:6};var Uqa={OWa:0,QWa:1,PWa:2,KWa:3,IWa:4,JWa:5,RWa:6,LWa:7,SWa:8,MWa:9,NWa:10};var Yqa={VWa:0,UWa:1,TWa:2};var hra={J_a:0,H_a:1,G_a:2,B_a:3,D_a:4,E_a:5,A_a:6,C_a:7,I_a:8,K_a:9,F_a:10};var gra={M_a:0,L_a:1};var ora={i0a:0,N_a:1,h0a:2,g0a:3,m0a:4,l0a:5,f0a:19,R_a:6,T_a:7,b0a:8,S_a:24,e0a:25,c0a:20,V_a:21,P_a:22,d0a:23,O_a:9,Q_a:10,U_a:11,W_a:12,X_a:13,Y_a:14,a0a:15,Z_a:16,j0a:17,k0a:18};var ira={o0a:0,n0a:1,p0a:2};var era={C0a:0,w0a:1,s0a:2,A0a:3,v0a:4,B0a:5,r0a:6,t0a:7,x0a:8,u0a:9,y0a:10,z0a:11};var kra={J0a:0,H0a:1,F0a:2,G0a:3,I0a:4};var jra={N0a:0,K0a:1,L0a:2,M0a:3};var fra={R0a:0,Q0a:1,P0a:2};var pra={F1a:0,E1a:1,D1a:2,B1a:3,C1a:4};var qra={J1a:0,H1a:1,G1a:2,I1a:3};var ZZa={Ega:0,Bga:1,Cga:2,zga:3,Dga:4,Aga:5};var wpa={TW:0,Sva:1,Fta:2,Gta:3,mya:4,bIa:5};var yy={Cma:0,hma:101,oma:102,bma:103,fma:104,lma:105,mma:106,pma:107,qma:108,tma:109,uma:110,Bma:111,nma:112,jma:113,rma:114,wma:115,Dma:116,ema:117,kma:118,Ema:119,xma:120,yma:121,gma:122,cma:123,vma:124,Ama:125,zma:126};var Spa={Nma:0,Kma:1,Lma:2,Ima:3,Jma:4,Hma:5,Mma:6};var $Za={Fna:0,Ena:1,Cna:2,Dna:3};var a_a={Qna:0,Ona:1,Hna:2,Nna:3,Gna:4,Kna:5,Mna:6,Pna:7,Lna:8,Jna:9,Ina:10};var b_a={Sna:0,Tna:1,Rna:2};g.v(Wr,g.I);g.v(Xr,g.I);g.v(Yr,g.I);Yr.prototype.getState=function(){return Ld(this,1)};
Yr.prototype.Vc=function(a){g.E(this,1,a)};g.v(Zr,g.I);g.v($r,g.I);g.v(as,g.I);g.v(bs,g.I);bs.prototype.ji=function(a){Jd(this,1,a)};g.v(cs,g.I);cs.prototype.Tm=function(){return Array.isArray(g.nd(this,2))};g.v(ds,g.I);ds.prototype.getFeature=function(){return ud(this,1,0)};
ds.prototype.hasFeature=function(){return null!=g.nd(this,1)};g.v(es,g.I);g.v(fs,g.I);fs.prototype.Lf=function(){return ud(this,2,0)};
g.v(gs,g.I);var c_a=[1];g.v(hs,g.I);g.v(is,g.I);g.v(js,g.I);g.v(ks,g.I);ks.prototype.setDescription=function(a){return g.E(this,1,a)};g.v(ls,g.I);g.v(ms,g.I);g.v(ns,g.I);ns.prototype.setBroadcastConferenceType=function(a){return g.E(this,4,a)};g.v(os,g.I);g.v(ps,g.I);g.v(qs,g.I);g.v(rs,g.I);g.v(ts,g.I);ts.prototype.getId=function(){return Qd(this,1)};g.v(us,g.I);g.v(vs,g.I);g.v(ws,g.I);var Fla=[5];g.v(xs,g.I);g.v(ys,g.I);g.v(zs,g.I);var Gla=[27];g.v(As,g.I);g.v(Bs,g.I);g.v(Cs,g.I);g.v(Ds,g.I);var d_a=[1,2,3];g.v(Es,g.I);g.v(Fs,g.I);g.v(Gs,g.I);g.v(Hs,g.I);g.v(Is,g.I);g.v(Js,g.I);g.v(Ks,g.I);var Hla=[1];g.v(Ls,g.I);Ls.prototype.Lf=function(){return ud(this,3,0)};g.v(Ms,g.I);g.v(Ns,g.I);g.v(Os,g.I);g.v(Ps,g.I);Ps.prototype.Tf=function(){return Ed(this,Ns,2===Cd(this,F3)?2:-1)};
Ps.prototype.setVideoId=function(a){return Gd(this,Ns,2,F3,a)};
Ps.prototype.getPlaylistId=function(){return Ed(this,Ms,4===Cd(this,F3)?4:-1)};
var F3=[2,3,4,5];g.v(Qs,g.I);Qs.prototype.getType=function(){return ud(this,1,0)};
Qs.prototype.Tf=function(){return Qd(this,3)};
Qs.prototype.setVideoId=function(a){return g.E(this,3,a)};g.v(Rs,g.I);g.v(Ss,g.I);g.v(Ts,g.I);var Sqa=[3];g.v(Us,g.I);g.v(Vs,g.I);g.v(Ws,g.I);g.v(Xs,g.I);g.v(Ys,g.I);g.v(Zs,g.I);g.v($s,g.I);g.v(at,g.I);g.v(bt,g.I);g.v(dt,g.I);dt.prototype.getStarted=function(){var a=g.rba(this,1);return null==a?!1:a};g.v(et,g.I);g.v(ft,g.I);g.v(gt,g.I);gt.prototype.getDuration=function(){return Ld(this,2)};
gt.prototype.Cj=function(a){g.E(this,2,a)};g.v(ht,g.I);g.v(jt,g.I);g.v(kt,g.I);g.v(lt,g.I);lt.prototype.B=function(a){g.E(this,2,a)};
g.v(mt,g.I);g.v(nt,g.I);nt.prototype.B=function(a){g.E(this,1,a)};
var Kla=[3];g.v(ot,g.I);ot.prototype.B=function(a){g.E(this,1,a)};
ot.prototype.Tm=function(){return Array.isArray(g.nd(this,2))};g.v(pt,g.I);pt.prototype.B=function(a){g.E(this,1,a)};
pt.prototype.Tm=function(){return Array.isArray(g.nd(this,2))};g.v(qt,g.I);qt.prototype.B=function(a){g.E(this,1,a)};
qt.prototype.Tm=function(){return Array.isArray(g.nd(this,2))};g.v(rt,g.I);rt.prototype.B=function(a){g.E(this,1,a)};
rt.prototype.Tm=function(){return Array.isArray(g.nd(this,2))};g.v(tt,g.I);g.v(ut,g.I);ut.prototype.getVisibilityState=function(){return ud(this,5,0)};
var Mla=[16];g.v(vt,g.I);g.v(wt,g.I);wt.prototype.getPlayerType=function(){return ud(this,7,0)};
wt.prototype.Tf=function(){return Qd(this,19)};
wt.prototype.setVideoId=function(a){return g.E(this,19,a)};
g.v(xt,g.I);xt.prototype.getId=function(){return Qd(this,2)};
var Nla=[83,68];g.v(At,g.I);g.v(Bt,g.I);g.v(Ct,g.I);Ct.prototype.Tf=function(){return Qd(this,1)};
Ct.prototype.setVideoId=function(a){return g.E(this,1,a)};
g.v(Dt,g.I);var Ola=[3],Pla=[9];g.v(Et,g.I);Et.prototype.Tf=function(){return Qd(this,1)};
Et.prototype.setVideoId=function(a){return g.E(this,1,a)};g.v(Ft,g.I);g.v(Gt,g.I);var Qla=[1,2];g.v(Ht,g.I);g.v(It,g.I);It.prototype.getId=function(){return Qd(this,1)};
var Rla=[2];g.v(Jt,g.I);g.v(Kt,g.I);g.v(Lt,g.I);g.v(Mt,g.I);Mt.prototype.getId=function(){return Qd(this,1)};
g.v(Nt,g.I);g.v(Ot,g.I);var Sla=[14,17];g.v(Pt,g.I);var Tla=[1,2];g.v(Qt,g.I);g.v(Rt,g.I);Rt.prototype.getOrigin=function(){return Qd(this,3)};g.v(St,g.I);g.v(Tt,g.I);g.v(Ut,g.I);Ut.prototype.getContext=function(){return Ed(this,Tt,33)};
var ty=[23,24,11,6,7,5,2,3,13,20,21,22,28,32,37,229,241,45,59,225,288,72,73,78,208,156,202,215,74,76,79,80,111,85,91,97,100,102,105,119,126,127,136,146,148,151,157,158,159,163,164,168,176,222,383,177,178,179,411,184,188,189,190,191,193,194,195,196,197,198,199,200,201,402,320,203,204,205,206,258,259,260,261,327,209,219,226,227,232,233,234,240,244,247,248,249,251,256,257,266,254,255,270,272,278,291,293,300,304,308,309,310,311,313,314,319,321,323,324,328,330,331,332,334,337,338,340,344,348,350,351,352,
353,354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,388,389,403,410,412,429,413,414,415,416,417,418,430,423,424,425,426,427,431,117,439,441];var e_a={Asa:0,msa:1,rsa:2,nsa:3,usa:4,qsa:5,dsa:6,xsa:7,jsa:8,Xra:9,ksa:10,vsa:11,ssa:12,fsa:13,bsa:14,esa:15,zsa:16,Yra:17,Zra:18,ysa:19,gsa:20,csa:21,wsa:22,Fsa:23,Esa:24,Bsa:25,lsa:26,tsa:27,Gsa:28,hsa:29,Wra:30,Dsa:31,Csa:32,isa:33,Hsa:34};var f_a={kta:0,Xsa:1,ata:2,Ysa:3,eta:4,Zsa:5,Psa:6,hta:7,Usa:8,Jsa:9,Vsa:10,fta:11,bta:12,Rsa:13,Nsa:14,Qsa:15,jta:16,Lsa:17,Msa:18,ita:19,Ssa:20,Osa:21,gta:22,pta:23,nta:24,lta:25,Wsa:26,dta:27,qta:28,Tsa:29,Isa:30,mta:31,Ksa:32,rta:33};var g_a={tva:0,sva:1,uva:2};var h_a={rua:0,pua:1,jua:3,nua:4,oua:5,qua:6,kua:7};var i_a={xua:0,uua:1,wua:2,vua:3,tua:4,sua:5};var j_a={nva:0,iva:1,jva:2,kva:3,mva:4};var k_a={zva:0,Ava:1,Bva:2,yva:3,wva:4,xva:5};var wua={jwa:0,Tva:1,Zva:2,bwa:4,gwa:8,cwa:16,dwa:32,iwa:64,hwa:128,Vva:256,Xva:512,fwa:1024,Wva:2048,Yva:4096,Uva:8192,ewa:16384};var Upa={Nwa:0,Mwa:1,Lwa:2,Kwa:4};var Tpa={Swa:0,Pwa:1,Qwa:2,Twa:3,Rwa:4,Owa:5};var l_a={Dra:0,Cra:1,Bra:2};var m_a={WDa:0,VDa:1,UDa:2};var n_a={MEa:0,wEa:1,KEa:2,yEa:3,EEa:4,OEa:5,LEa:6,mEa:7,lEa:8,kEa:9,qEa:10,vEa:11,uEa:12,nEa:13,FEa:14,AEa:15,CEa:16,cEa:17,JEa:18,gEa:19,BEa:20,bEa:21,DEa:22,tEa:23,dEa:24,fEa:25,HEa:26,NEa:27,IEa:28,zEa:29,oEa:30,rEa:31,sEa:32,jEa:33,PEa:34,hEa:35,pEa:36,GEa:37,eEa:38,aEa:39,iEa:41,xEa:42};var o_a={YEa:0,XEa:1,WEa:2,VEa:3};var Dpa={tna:0,rna:1,sna:2,ona:3,pna:4,qna:5};var Lpa={tKa:0,lKa:1,uKa:2,sKa:4,pKa:8,oKa:16,nKa:32,qKa:64,mKa:128,rKa:256};var p_a={NKa:0,IKa:1,MKa:2,FKa:3,xKa:4,DKa:5,yKa:6,zKa:7,BKa:8,GKa:9,KKa:10,JKa:11,LKa:12,AKa:13,CKa:14,EKa:15,HKa:16,wKa:17};var Jpa={WJa:0,TJa:1,UJa:2,VJa:3};var Npa={fKa:0,hKa:1,eKa:2,aKa:3,gKa:4,bKa:5,cKa:6,dKa:7};var npa={g1a:0,Mga:1,wCa:2,hIa:3,jIa:4,kIa:5,eIa:6,gYa:7,BIa:8,AIa:9,fIa:10,iIa:11,KYa:12,O9:13,W9:14,P9:15,uNa:16,MJa:17,CIa:18,GIa:19,jKa:20,EIa:21,ZJa:22,PKa:23,PIa:24,YJa:25,gIa:26,dYa:27,lWa:28,cQa:29,eea:30,Q4a:31,XJa:32};var mpa={k1a:0,n7:1,RKa:2,QKa:3,SUCCESS:4,OXa:5,Era:6,KPa:7,iua:9,Nga:10,Wla:11,CANCELLED:12,bQa:13,mWa:14,rWa:15,d2a:16};var lpa={YYa:0,PYa:1,UYa:2,TYa:3,QYa:4,RYa:5,LYa:6,XYa:7,WYa:8,OYa:9,NYa:10,SYa:11,VYa:12,MYa:13};var tpa={jNa:0,gNa:1,iNa:2,hNa:3};var q_a={yOa:0,xOa:1,wOa:2};var r_a={BOa:0,zOa:1,AOa:2};var s_a={sRa:0,tRa:1};var t_a={QUa:0,OUa:1,PUa:2};var u_a={qXa:0,mXa:1,nXa:2,oXa:3,pXa:4};var Mpa={TUa:0,RUa:1,SUa:2};var v_a={qVa:0,nVa:1,oVa:2,pVa:3};var Gpa={Xba:0,Wba:1,Uba:2,Vba:3};var Xpa={Fda:0,zda:1,Cda:2,Dda:3,Bda:4,Eda:5,Gda:6,Ada:7};var zpa={rha:0,qha:1,sha:2};var qpa={e1a:0,Yfa:1,Zfa:2,Xfa:3,aga:4};var ppa={f1a:0,oOa:1};var Cpa={Nra:0,Jra:1,Fra:2,Mra:3,Hra:4,Kra:5,Ira:6,Gra:7,Lra:8};var Epa={qva:0,pva:1,ova:2};var Wpa={vCa:0,uCa:1,tCa:2};var Bpa={NHa:0,MHa:1,LHa:2};var Vpa={IQa:0,GQa:1,HQa:2};var Fpa={TXa:0,SXa:1,RXa:2};var w_a={YBa:0,UBa:1,VBa:2,WBa:3,XBa:4,ZBa:5};var x_a={sNa:0,pNa:1,nNa:2,kNa:3,oNa:4,qNa:5,lNa:6,mNa:7,rNa:8,tNa:9};var y_a={tYa:0,sYa:1,uYa:2};var z_a={C4a:0,o4a:1,u4a:2,t4a:3,n4a:4,D4a:5,A4a:6,p4a:7,q4a:8,s4a:9,r4a:12,k4a:10,B4a:11,w4a:13,x4a:14,E4a:15,v4a:16,y4a:17,l4a:18,z4a:19,m4a:20};g.v(Vt,g.I);g.v(Wt,g.I);Wt.prototype.Tf=function(){return Md(this,1===Cd(this,iy)?1:-1)};
Wt.prototype.setVideoId=function(a){return g.Dd(this,1,iy,a)};
Wt.prototype.getPlaylistId=function(){return Md(this,2===Cd(this,iy)?2:-1)};
var iy=[1,2];g.v(Xt,g.I);Xt.prototype.getContext=function(){return Ed(this,iq,1)};
var Ula=[3];g.A_a=new g.Xo("ytMainDownloadedVideoEntityActionMetadata");var QH=new g.Xo("changeKeyedMarkersVisibilityCommand");var B_a=new g.Xo("changeMarkersVisibilityCommand");var uBa=new g.Xo("loadMarkersCommand");var mBa=new g.Xo("shoppingOverlayRenderer");var LBa=new g.Xo("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var BIa=new g.Xo("phoneDialerEndpoint");var AIa=new g.Xo("sendSmsEndpoint");var JBa=new g.Xo("copyTextEndpoint");var C_a=new g.Xo("webPlayerShareEntityServiceEndpoint");g.PH=new g.Xo("urlEndpoint");g.TG=new g.Xo("watchEndpoint");var D_a=new g.Xo("watchPlaylistEndpoint");var E_a={dea:0,cea:1,bea:2,Zda:3,aea:4};var Kpa={zIa:0,xIa:1,yIa:2,wIa:3};var F_a={UIa:0,TIa:1,RIa:2,SIa:3};var G_a={YIa:0,VIa:1,WIa:2,XIa:3,ZIa:4};var H_a={IJa:0,EJa:1,JJa:2,GJa:3,xJa:4,gJa:5,dJa:36,hJa:27,uJa:31,wJa:6,yJa:7,zJa:8,AJa:9,BJa:10,CJa:11,FJa:29,iJa:30,vJa:32,pJa:12,oJa:13,fJa:14,tJa:15,aJa:16,cJa:35,jJa:28,rJa:17,qJa:18,sJa:19,HJa:20,mJa:25,eJa:33,KJa:21,nJa:22,lJa:26,DJa:23,bJa:24,kJa:34};var I_a={QJa:0,OJa:1,NJa:2,PJa:3};var Ay={qWa:0,nWa:1,pWa:2,oWa:3};var opa={JYa:0,yYa:1,xYa:2,CYa:3,IYa:4,zYa:5,FYa:6,DYa:7,EYa:8,AYa:9,GYa:10,BYa:11,HYa:12};var Ipa={iKa:0,QIa:1,DIa:2,LIa:3,MIa:4,JIa:5,KIa:6};var J_a={jRa:0,iRa:1};var K_a={tXa:0,sXa:1,rXa:2,uXa:3};var L_a={EXa:0,zXa:1,AXa:2,BXa:5,CXa:6,DXa:7};var M_a={yXa:0,xXa:1,wXa:2};var WAa=new g.Xo("playerMutedAutoplayOverlayRenderer"),XAa=new g.Xo("playerMutedAutoplayEndScreenRenderer");var Zza=new g.Xo("unserializedPlayerResponse"),YAa=new g.Xo("unserializedPlayerResponse");var N_a=new g.Xo("playlistEditEndpoint");var OH=new g.Xo("buttonRenderer");var zy={h1a:0,gAa:4,KQa:1,eua:2,ida:3,hAa:5,NQa:6,fua:7,gua:8,hua:9};var O_a=new g.Xo("resolveUrlCommandMetadata");var P_a=new g.Xo("modifyChannelNotificationPreferenceEndpoint");var lEa=new g.Xo("pingingEndpoint");var Q_a=new g.Xo("unsubscribeEndpoint");var R_a={jSa:0,kSa:1,dSa:2,WRa:3,hSa:4,iSa:5,lSa:6,SRa:7,TRa:8,VRa:9,eSa:10,XRa:11,aSa:12,YRa:13,ZRa:14,bSa:15,cSa:19,URa:16,gSa:17,fSa:18};var SBa=new g.Xo("subscribeButtonRenderer");var S_a=new g.Xo("subscribeEndpoint");var Hpa={XUa:0,VUa:1,WUa:2};var gHa=new g.Xo("buttonViewModel");var nra={ISa:0,JSa:1,HSa:2,DSa:3,GSa:4,ESa:5,CSa:6,FSa:7};var rza={FW:"LIVING_ROOM_APP_MODE_UNSPECIFIED",BW:"LIVING_ROOM_APP_MODE_MAIN",zW:"LIVING_ROOM_APP_MODE_KIDS",DW:"LIVING_ROOM_APP_MODE_MUSIC",EW:"LIVING_ROOM_APP_MODE_UNPLUGGED",yW:"LIVING_ROOM_APP_MODE_GAMING"};var eBa=new g.Xo("autoplaySwitchButtonRenderer");var iBa,kBa,jBa;iBa=new g.Xo("decoratedPlayerBarRenderer");kBa=new g.Xo("chapteredPlayerBarRenderer");jBa=new g.Xo("multiMarkersPlayerBarRenderer");g.T_a=new g.Xo("markerRenderer");var qBa=new g.Xo("desktopOverlayConfigRenderer");var nBa=new g.Xo("gatedActionsOverlayViewModel");var tBa=new g.Xo("watchToWatchTransitionRenderer");var MBa=new g.Xo("playlistPanelRenderer");var hBa=new g.Xo("suggestedActionTimeRangeTrigger"),fBa=new g.Xo("suggestedActionsRenderer"),gBa=new g.Xo("suggestedActionRenderer");var U_a={S3a:0,Q3a:1,R3a:2};var Fy={TW:0,USER:74,Eca:459,TRACK:344,Fca:493,Sca:419,Yda:337,MFa:237,bva:236,Ula:3,T3a:78,W3a:248,eGa:79,nPa:246,e4a:247,nIa:382,mIa:383,lIa:384,XXa:235,VIDEO:4,b4a:186,aha:126,kXa:127,mha:117,hPa:125,BQa:151,Tga:6,Rta:132,Wta:154,Uta:222,Vta:155,Sta:221,Tta:156,jXa:209,iXa:210,V2a:7,CPa:124,UUa:96,WHa:97,l3a:93,m3a:275,rda:110,qda:120,vOa:121,Fva:72,P2a:351,N2a:377,Q2a:378,sda:381,O2a:386,n3a:387,xca:410,pwa:437,soa:338,pda:380,l7:352,cNa:113,dNa:114,nYa:82,oYa:112,Xma:354,mYa:21,jna:375,Q9:302,
oha:136,Gva:85,d$:22,f4a:23,rYa:252,qYa:253,oda:254,N9:165,hXa:304,ina:408,dxa:421,lYa:422,W2a:423,uQa:463,PLAYLIST:63,T2a:27,S2a:28,U2a:29,YWa:30,bXa:31,aXa:324,cXa:32,Ida:398,eXa:399,fXa:400,ZHa:411,YHa:413,aIa:414,dIa:415,vPa:39,wPa:143,APa:144,rPa:40,sPa:145,uPa:146,zPa:325,JNa:262,LNa:263,KNa:264,ONa:355,PNa:249,RNa:250,QNa:251,wga:46,oRa:49,qRa:50,H9:62,sFa:105,exa:242,kWa:397,EOa:83,aNa:135,uca:87,wca:153,vca:187,pca:89,oca:88,qca:139,sca:91,rca:104,tca:137,ega:99,L1a:100,UHa:326,Pma:148,Oma:149,
WWa:150,XWa:395,Xca:166,dda:199,cda:167,Yca:168,gda:169,hda:170,Zca:171,bda:172,eda:179,fda:180,k2a:200,M1a:476,l2a:213,Uca:191,NNa:192,FNa:305,GNa:306,TNa:329,iVa:327,jVa:328,ANa:195,BNa:197,eNa:301,vNa:223,wNa:224,cxa:227,wwa:396,ixa:356,gxa:490,jxa:394,gea:230,jda:297,q2a:298,bxa:342,Zma:346,wra:245,pYa:261,Jva:265,Ova:266,Kva:267,Hva:268,Iva:269,Nva:270,Lva:271,Mva:272,SBa:303,LBa:391,OBa:277,TBa:278,MBa:489,aoa:332,coa:333,Yna:334,boa:335,Zna:336,dga:340,Ywa:341,G2a:349,F2a:420,D$:388,C$:389,
E$:390,yPa:281,tPa:282,pRa:286,ZWa:288,xPa:291,BPa:292,IBa:295,dXa:296,HBa:299,S9:417,lxa:308,g4a:309,h4a:310,i4a:311,A$:350,n2a:418,cva:424,Y1a:425,oIa:429,VHa:430,hxa:426,gWa:460,THa:427,eQa:428,dQa:461,lVa:464,xFa:431,vFa:432,CFa:433,uFa:434,zFa:435,AFa:436,wFa:438,BFa:439,DFa:453,yFa:454,tFa:472,nOa:440,pOa:441,tOa:442,lOa:448,mOa:449,qOa:450,uOa:451,sOa:491,POST:445,iOa:446,rOa:447,HOa:456,pIa:483,GOa:458,uRa:480,wRa:481,vRa:482,Zwa:452,rSa:465,sSa:466,Zla:467,FOa:468,eoa:469,tga:470,rga:471,
fxa:474,Xwa:475,Eha:477,axa:478,cua:479,UNa:484,SNa:485,DNa:486,CNa:487,X9:488,wna:492};var dAa=new g.Xo("cipher");var $za=new g.Xo("playerVars");var ZAa=new g.Xo("playerVars");var G3=g.C.window,V_a,W_a,Yt=(null==G3?void 0:null==(V_a=G3.yt)?void 0:V_a.config_)||(null==G3?void 0:null==(W_a=G3.ytcfg)?void 0:W_a.data_)||{};g.Fa("yt.config_",Yt);var du=[];var cma=/^[\w.]*$/,ama={q:!0,search_query:!0},$la=String(hu);var dma=new function(){var a=window.document;this.j=window;this.u=a};
g.Fa("yt.ads_.signals_.getAdSignalsString",function(a){return iu(ru(a))});g.Ra();var gma="XMLHttpRequest"in g.C?function(){return new XMLHttpRequest}:null;var ima={Authorization:"AUTHORIZATION","X-Goog-EOM-Visitor-Id":"EOM_VISITOR_DATA","X-Goog-Visitor-Id":"SANDBOXED_VISITOR_ID","X-Youtube-Domain-Admin-State":"DOMAIN_ADMIN_STATE","X-Youtube-Chrome-Connected":"CHROME_CONNECTED_HEADER","X-YouTube-Client-Name":"INNERTUBE_CONTEXT_CLIENT_NAME","X-YouTube-Client-Version":"INNERTUBE_CONTEXT_CLIENT_VERSION","X-YouTube-Delegation-Context":"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT","X-YouTube-Device":"DEVICE","X-Youtube-Identity-Token":"ID_TOKEN","X-YouTube-Page-CL":"PAGE_CL",
"X-YouTube-Page-Label":"PAGE_BUILD_LABEL","X-YouTube-Variants-Checksum":"VARIANTS_CHECKSUM"},kma="app debugcss debugjs expflag force_ad_params force_ad_encrypted force_viral_ad_response_params forced_experiments innertube_snapshots innertube_goldens internalcountrycode internalipoverride absolute_experiments conditional_experiments sbb sr_bns_address".split(" ").concat(g.t(kZa)),pma=!1,DDa=yu;g.v(Bu,Xa);Eu.prototype.then=function(a,b,c){return 1===this.j&&a?(a=a.call(c,this.wd))&&"function"===typeof a.then?a:Gu(a):2===this.j&&b?(a=b.call(c,this.wd))&&"function"===typeof a.then?a:Fu(a):this};
Eu.prototype.getValue=function(){return this.wd};
Eu.prototype.$goog_Thenable=!0;var Hu=!1;var Uu=RF||vI;var Bma=/^([0-9\.]+):([0-9\.]+)$/;g.v(kv,Xa);kv.prototype.name="BiscottiError";g.v(jv,Xa);jv.prototype.name="BiscottiMissingError";var mv={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},lv=null;var ov=g.Ga("ytglobal.prefsUserPrefsPrefs_")||{};g.Fa("ytglobal.prefsUserPrefsPrefs_",ov);g.k=g.pv.prototype;g.k.get=function(a,b){uv(a);tv(a);a=void 0!==ov[a]?ov[a].toString():null;return null!=a?a:b?b:""};
g.k.set=function(a,b){uv(a);tv(a);if(null==b)throw Error("ExpectedNotNull");ov[a]=b.toString()};
g.k.remove=function(a){uv(a);tv(a);delete ov[a]};
g.k.save=function(){var a=!0;g.S("web_secure_pref_cookie_killswitch")&&(a=!1);g.Ju(this.j,this.dump(),63072E3,this.u,a)};
g.k.clear=function(){g.Eca(ov)};
g.k.dump=function(){var a=[],b;for(b in ov)a.push(b+"="+encodeURIComponent(String(ov[b])));return a.join("&")};
Ha(g.pv);var Oma={bluetooth:"CONN_DISCO",cellular:"CONN_CELLULAR_UNKNOWN",ethernet:"CONN_WIFI",none:"CONN_NONE",wifi:"CONN_WIFI",wimax:"CONN_CELLULAR_4G",other:"CONN_UNKNOWN",unknown:"CONN_UNKNOWN","slow-2g":"CONN_CELLULAR_2G","2g":"CONN_CELLULAR_2G","3g":"CONN_CELLULAR_3G","4g":"CONN_CELLULAR_4G"},Zma={CONN_DEFAULT:0,CONN_UNKNOWN:1,CONN_NONE:2,CONN_WIFI:3,CONN_CELLULAR_2G:4,CONN_CELLULAR_3G:5,CONN_CELLULAR_4G:6,CONN_CELLULAR_UNKNOWN:7,CONN_DISCO:8,CONN_CELLULAR_5G:9,CONN_WIFI_METERED:10,CONN_CELLULAR_5G_SA:11,
CONN_CELLULAR_5G_NSA:12,CONN_INVALID:31},$ma={EFFECTIVE_CONNECTION_TYPE_UNKNOWN:0,EFFECTIVE_CONNECTION_TYPE_OFFLINE:1,EFFECTIVE_CONNECTION_TYPE_SLOW_2G:2,EFFECTIVE_CONNECTION_TYPE_2G:3,EFFECTIVE_CONNECTION_TYPE_3G:4,EFFECTIVE_CONNECTION_TYPE_4G:5},Qma={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};xv.prototype.set=function(a,b,c,d){c=c||31104E3;this.remove(a);if(this.j)try{this.j.set(a,b,Date.now()+1E3*c);return}catch(f){}var e="";if(d)try{e=escape(g.di(b))}catch(f){return}else e=escape(b);g.Ju(a,e,c,this.u)};
xv.prototype.get=function(a,b){var c=void 0,d=!this.j;if(!d)try{c=this.j.get(a)}catch(e){d=!0}if(d&&(c=g.Ku(a))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c};
xv.prototype.remove=function(a){this.j&&this.j.remove(a);g.Lu(a,"/",this.u)};var H3;H3=window;g.T=H3.ytcsi&&H3.ytcsi.now?H3.ytcsi.now:H3.performance&&H3.performance.timing&&H3.performance.now&&H3.performance.timing.navigationStart?function(){return H3.performance.timing.navigationStart+H3.performance.now()}:function(){return(new Date).getTime()};yv.prototype.Jh=function(a,b){return zv(a,1,b)};g.v(Bv,yv);Bv.prototype.Zk=function(a){if(void 0===a||!Number.isNaN(Number(a))){var b=g.Ga("yt.scheduler.instance.cancelJob");b?b(a):g.xu(a)}};
Bv.prototype.start=function(){var a=g.Ga("yt.scheduler.instance.start");a&&a()};
Bv.prototype.pause=function(){var a=g.Ga("yt.scheduler.instance.pause");a&&a()};g.Tn=g.Cv();var Fv=function(){var a;return function(){a||(a=new xv("ytidb"));return a}}();var Lv=[],Hv,Mv=!1;g.v(g.Pv,Error);var I3={},dna=(I3.AUTH_INVALID="No user identifier specified.",I3.EXPLICIT_ABORT="Transaction was explicitly aborted.",I3.IDB_NOT_SUPPORTED="IndexedDB is not supported.",I3.MISSING_INDEX="Index not created.",I3.MISSING_OBJECT_STORES="Object stores not created.",I3.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",I3.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",I3.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",I3.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",I3.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",I3.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",I3.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",I3),J3={},ena=(J3.AUTH_INVALID="ERROR",J3.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",J3.EXPLICIT_ABORT="IGNORED",
J3.IDB_NOT_SUPPORTED="ERROR",J3.MISSING_INDEX="WARNING",J3.MISSING_OBJECT_STORES="ERROR",J3.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",J3.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",J3.QUOTA_EXCEEDED="WARNING",J3.QUOTA_MAYBE_EXCEEDED="WARNING",J3.UNKNOWN_ABORT="WARNING",J3.INCOMPATIBLE_DB_VERSION="WARNING",J3),K3={},fna=(K3.AUTH_INVALID=!1,K3.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,K3.EXPLICIT_ABORT=!1,K3.IDB_NOT_SUPPORTED=!1,K3.MISSING_INDEX=!1,K3.MISSING_OBJECT_STORES=!1,K3.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,K3.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,K3.QUOTA_EXCEEDED=!1,K3.QUOTA_MAYBE_EXCEEDED=!0,K3.UNKNOWN_ABORT=!0,K3.INCOMPATIBLE_DB_VERSION=!1,K3);g.v(g.Uv,g.Pv);g.v(Vv,g.Uv);g.v(Wv,Error);var gna=["The database connection is closing","Can't start a transaction on a closed database","A mutation operation was attempted on a database that did not allow mutations"];g.aw.all=function(a){return new g.aw(new $v(function(b,c){var d=[],e=a.length;0===e&&b(d);for(var f={ju:0};f.ju<a.length;f={ju:f.ju},++f.ju)g.aw.resolve(a[f.ju]).then(function(h){return function(l){d[h.ju]=l;e--;0===e&&b(d)}}(f)).catch(function(h){c(h)})}))};
g.aw.resolve=function(a){return new g.aw(new $v(function(b,c){a instanceof g.aw?a.then(b,c):b(a)}))};
g.aw.reject=function(a){return new g.aw(new $v(function(b,c){c(a)}))};
g.aw.prototype.then=function(a,b){var c=this,d=null!=a?a:ina,e=null!=b?b:hna;return new g.aw(new $v(function(f,h){"PENDING"===c.state.status?(c.j.push(function(){jna(c,c,d,f,h)}),c.onRejected.push(function(){kna(c,c,e,f,h)})):"FULFILLED"===c.state.status?jna(c,c,d,f,h):"REJECTED"===c.state.status&&kna(c,c,e,f,h)}))};
g.aw.prototype.catch=function(a){return this.then(void 0,a)};g.k=nna.prototype;g.k.advance=function(a){this.cursor.advance(a);return ew(this.request)};
g.k.continue=function(a){this.cursor.continue(a);return ew(this.request)};
g.k.continuePrimaryKey=function(a,b){this.cursor.continuePrimaryKey(a,b);return ew(this.request)};
g.k.getKey=function(){return this.cursor.key};
g.k.MC=function(){return this.cursor.primaryKey};g.k=ona.prototype;g.k.add=function(a,b,c){return g.iw(this,[a],{mode:"readwrite",Zb:!0},function(d){return d.objectStore(a).add(b,c)})};
g.k.clear=function(a){return g.iw(this,[a],{mode:"readwrite",Zb:!0},function(b){return b.objectStore(a).clear()})};
g.k.close=function(){this.j.close();var a;(null==(a=this.options)?0:a.closed)&&this.options.closed()};
g.k.count=function(a,b){return g.iw(this,[a],{mode:"readonly",Zb:!0},function(c){return c.objectStore(a).count(b)})};
g.k.delete=function(a,b){return g.iw(this,[a],{mode:"readwrite",Zb:!0},function(c){return c.objectStore(a).delete(b)})};
g.k.get=function(a,b){return g.iw(this,[a],{mode:"readonly",Zb:!0},function(c){return c.objectStore(a).get(b)})};
g.k.getAll=function(a,b,c){return g.iw(this,[a],{mode:"readonly",Zb:!0},function(d){return d.objectStore(a).getAll(b,c)})};
g.k.objectStoreNames=function(){return Array.from(this.j.objectStoreNames)};
g.k.getName=function(){return this.j.name};
g.k=fw.prototype;g.k.add=function(a,b){return cw(this.j.add(a,b))};
g.k.autoIncrement=function(){return this.j.autoIncrement};
g.k.clear=function(){return cw(this.j.clear()).then(function(){})};
g.k.count=function(a){return cw(this.j.count(a))};
g.k.delete=function(a){return a instanceof IDBKeyRange?tna(this,a):cw(this.j.delete(a))};
g.k.get=function(a){return cw(this.j.get(a))};
g.k.getAll=function(a,b){return"getAll"in IDBObjectStore.prototype?cw(this.j.getAll(a,b)):una(this,a,b)};
g.k.index=function(a){try{return new yna(this.j.index(a))}catch(b){if(b instanceof Error&&"NotFoundError"===b.name)throw new Wv(a,this.j.name);throw b;}};
g.k.getName=function(){return this.j.name};
g.k.keyPath=function(){return this.j.keyPath};
kw.prototype.abort=function(){this.j.abort();this.u=!0;throw new g.Uv("EXPLICIT_ABORT");};
kw.prototype.objectStore=function(a){a=this.j.objectStore(a);var b=this.B.get(a);b||(b=new fw(a),this.B.set(a,b));return b};
g.k=yna.prototype;g.k.count=function(a){return cw(this.j.count(a))};
g.k.delete=function(a){return g.ow(this,{query:a},function(b){return b.delete().then(function(){return b.continue()})})};
g.k.get=function(a){return cw(this.j.get(a))};
g.k.getAll=function(a,b){return"getAll"in IDBIndex.prototype?cw(this.j.getAll(a,b)):zna(this,a,b)};
g.k.getKey=function(a){return cw(this.j.getKey(a))};
g.k.keyPath=function(){return this.j.keyPath};
g.k.unique=function(){return this.j.unique};
g.k=Ana.prototype;g.k.advance=function(a){this.cursor.advance(a);return nw(this.request)};
g.k.continue=function(a){this.cursor.continue(a);return nw(this.request)};
g.k.delete=function(){return cw(this.cursor.delete()).then(function(){})};
g.k.getKey=function(){return this.cursor.key};
g.k.MC=function(){return this.cursor.primaryKey};
g.k.getValue=function(){return this.cursor.value};
g.k.update=function(a){return cw(this.cursor.update(a))};qw.prototype.B=function(a,b,c){c=void 0===c?{}:c;return Cna(a,b,c)};
qw.prototype.delete=function(a){a=void 0===a?{}:a;return pw(this.name,a)};
qw.prototype.open=function(){function a(){var f,h,l,m,n,p,q,u,w,y;return g.z(function(A){switch(A.j){case 1:return h=null!=(f=Error().stack)?f:"",g.pa(A,2),g.x(A,c.B(c.name,c.options.version,e),4);case 4:l=A.u;for(var B=c.options,D=[],G=g.r(Object.keys(B.xq)),H=G.next();!H.done;H=G.next()){H=H.value;var L=B.xq[H],N=void 0===L.a4?Number.MAX_VALUE:L.a4;!(l.j.version>=L.Rn)||l.j.version>=N||l.j.objectStoreNames.contains(H)||D.push(H)}m=D;if(0===m.length){A.Ma(5);break}n=Object.keys(c.options.xq);p=l.objectStoreNames();
if(c.I<g.au("ytidb_reopen_db_retries",0))return c.I++,l.close(),Nv(new g.Uv("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:c.name,expectedObjectStores:n,foundObjectStores:p})),A.return(a());if(!(c.D<g.au("ytidb_remake_db_retries",1))){A.Ma(6);break}c.D++;if(!g.S("ytidb_remake_db_enable_backoff_delay")){A.Ma(7);break}return g.x(A,Dna(c.u),8);case 8:c.u*=2;case 7:return g.x(A,c.delete(),9);case 9:return Nv(new g.Uv("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:c.name,expectedObjectStores:n,foundObjectStores:p})),
A.return(a());case 6:throw new Vv(p,n);case 5:return A.return(l);case 2:q=g.ua(A);if(q instanceof DOMException?"VersionError"!==q.name:"DOMError"in self&&q instanceof DOMError?"VersionError"!==q.name:!(q instanceof Object&&"message"in q)||"An attempt was made to open a database using a lower version than the existing version."!==q.message){A.Ma(10);break}return g.x(A,c.B(c.name,void 0,Object.assign({},e,{upgrade:void 0})),11);case 11:u=A.u;w=u.j.version;if(void 0!==c.options.version&&w>c.options.version+
1)throw u.close(),c.C=!1,Ena(c,w);return A.return(u);case 10:throw b(),q instanceof Error&&!g.S("ytidb_async_stack_killswitch")&&(q.stack=q.stack+"\n"+h.substring(h.indexOf("\n")+1)),Yv(q,c.name,"",null!=(y=c.options.version)?y:-1);}})}
function b(){c.j===d&&(c.j=void 0)}
var c=this;if(!this.C)throw Ena(this);if(this.j)return this.j;var d,e={blocking:function(f){f.close()},
closed:b,r5:b,upgrade:this.options.upgrade};return this.j=d=a()};var tw=new qw("YtIdbMeta",{xq:{databases:{Rn:1}},upgrade:function(a,b){b(1)&&g.gw(a,"databases",{keyPath:"actualName"})}});var xw,ww=new function(){}(new function(){});new g.Xi;g.k=Cw.prototype;g.k.writeThenSend=function(a,b){var c=this;b=void 0===b?{}:b;if(Bw(this)&&this.Ze){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.jg.set(d,this.Ye).then(function(e){d.id=e;c.ag.tf()&&Dw(c,d)}).catch(function(e){Dw(c,d);
Ew(c,e)})}else this.Vo(a,b)};
g.k.sendThenWrite=function(a,b,c){var d=this;b=void 0===b?{}:b;if(Bw(this)&&this.Ze){var e={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.jb&&this.jb("nwl_skip_retry")&&(e.skipRetry=c);if(this.ag.tf()||this.jb&&this.jb("nwl_aggressive_send_then_write")&&!e.skipRetry){if(!e.skipRetry){var f=b.onError?b.onError:function(){};
b.onError=function(h,l){return g.z(function(m){if(1==m.j)return g.x(m,d.jg.set(e,d.Ye).catch(function(n){Ew(d,n)}),2);
f(h,l);g.na(m)})}}this.Vo(a,b,e.skipRetry)}else this.jg.set(e,this.Ye).catch(function(h){d.Vo(a,b,e.skipRetry);
Ew(d,h)})}else this.Vo(a,b,this.jb&&this.jb("nwl_skip_retry")&&c)};
g.k.sendAndWrite=function(a,b){var c=this;b=void 0===b?{}:b;if(Bw(this)&&this.Ze){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0},e=!1,f=b.onSuccess?b.onSuccess:function(){};
d.options.onSuccess=function(h,l){void 0!==d.id?c.jg.Gv(d.id,c.Ye):e=!0;c.ag.Lo&&c.jb&&c.jb("vss_network_hint")&&c.ag.Lo(!0);f(h,l)};
this.Vo(d.url,d.options);this.jg.set(d,this.Ye).then(function(h){d.id=h;e&&c.jg.Gv(d.id,c.Ye)}).catch(function(h){Ew(c,h)})}else this.Vo(a,b)};
g.k.KA=function(){var a=this;if(!Bw(this))throw g.Zv("throttleSend");this.j||(this.j=this.xl.Jh(function(){var b;return g.z(function(c){if(1==c.j)return g.x(c,a.jg.gP("NEW",a.Ye),2);if(3!=c.j)return b=c.u,b?g.x(c,Dw(a,b),3):(a.cO(),c.return());a.j&&(a.j=0,a.KA());g.na(c)})},this.SS))};
g.k.cO=function(){this.xl.Zk(this.j);this.j=0};Gw.prototype.toString=function(){return this.topic};var X_a=g.Ga("ytPubsub2Pubsub2Instance")||new g.Bo;g.Bo.prototype.subscribe=g.Bo.prototype.subscribe;g.Bo.prototype.unsubscribeByKey=g.Bo.prototype.Og;g.Bo.prototype.publish=g.Bo.prototype.ma;g.Bo.prototype.clear=g.Bo.prototype.clear;g.Fa("ytPubsub2Pubsub2Instance",X_a);var Jw=g.Ga("ytPubsub2Pubsub2SubscribedKeys")||{};g.Fa("ytPubsub2Pubsub2SubscribedKeys",Jw);var Kw=g.Ga("ytPubsub2Pubsub2TopicToKeys")||{};g.Fa("ytPubsub2Pubsub2TopicToKeys",Kw);var Xna=g.Ga("ytPubsub2Pubsub2IsAsync")||{};
g.Fa("ytPubsub2Pubsub2IsAsync",Xna);g.Fa("ytPubsub2Pubsub2SkipSubKey",null);g.v(Nw,qw);Nw.prototype.B=function(a,b,c){c=void 0===c?{}:c;return(this.options.Xw?Nna:Mna)(a,b,Object.assign({},c))};
Nw.prototype.delete=function(a){a=void 0===a?{}:a;return(this.options.Xw?Rna:Ona)(this.name,a)};var Pw;var Y_a={},foa=g.Ow("ServiceWorkerLogsDatabase",{xq:(Y_a.SWHealthLog={Rn:1},Y_a),Xw:!0,upgrade:function(a,b){b(1)&&g.lw(g.gw(a,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var Vw={},loa=0;Ww.prototype.requestComplete=function(a,b){b&&(this.u=!0);a=this.removeParams(a);this.j.get(a)||this.j.set(a,b)};
Ww.prototype.isEndpointCFR=function(a){a=this.removeParams(a);return(a=this.j.get(a))?!1:!1===a&&this.u?!0:null};
Ww.prototype.removeParams=function(a){return a.split("?")[0]};
Ww.prototype.removeParams=Ww.prototype.removeParams;Ww.prototype.isEndpointCFR=Ww.prototype.isEndpointCFR;Ww.prototype.requestComplete=Ww.prototype.requestComplete;Ww.getInstance=Xw;var Yw;g.v($w,g.Uf);g.k=$w.prototype;g.k.tf=function(){return this.j.tf()};
g.k.Lo=function(a){this.j.j=a};
g.k.eZ=function(){var a=window.navigator.onLine;return void 0===a?!0:a};
g.k.uY=function(){this.u=!0};
g.k.Ra=function(a,b){return this.j.Ra(a,b)};
g.k.vA=function(a){a=Rn(this.j,a);a.then(function(b){g.S("use_cfr_monitor")&&Xw().requestComplete("generate_204",b)});
return a};
$w.prototype.sendNetworkCheckRequest=$w.prototype.vA;$w.prototype.listen=$w.prototype.Ra;$w.prototype.enableErrorFlushing=$w.prototype.uY;$w.prototype.getWindowStatus=$w.prototype.eZ;$w.prototype.networkStatusHint=$w.prototype.Lo;$w.prototype.isNetworkAvailable=$w.prototype.tf;$w.getInstance=noa;g.v(g.ax,g.Uf);g.ax.prototype.tf=function(){var a=g.Ga("yt.networkStatusManager.instance.isNetworkAvailable");return a?a.bind(this.u)():!0};
g.ax.prototype.Lo=function(a){var b=g.Ga("yt.networkStatusManager.instance.networkStatusHint").bind(this.u);b&&b(a)};
g.ax.prototype.vA=function(a){var b=this,c;return g.z(function(d){c=g.Ga("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(b.u);return g.S("skip_network_check_if_cfr")&&Xw().isEndpointCFR("generate_204")?d.return(new Promise(function(e){var f;b.Lo((null==(f=window.navigator)?void 0:f.onLine)||!0);e(b.tf())})):c?d.return(c(a)):d.return(!0)})};var gx;g.v(bx,Cw);bx.prototype.writeThenSend=function(a,b){b||(b={});g.Rv()||(this.Ze=!1);Cw.prototype.writeThenSend.call(this,a,b)};
bx.prototype.sendThenWrite=function(a,b,c){b||(b={});g.Rv()||(this.Ze=!1);Cw.prototype.sendThenWrite.call(this,a,b,c)};
bx.prototype.sendAndWrite=function(a,b){b||(b={});g.Rv()||(this.Ze=!1);Cw.prototype.sendAndWrite.call(this,a,b)};
bx.prototype.awaitInitialization=function(){return this.u.promise};var ox=0,qx=0,rx,px=g.C.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1,potentialEsfErrorCounter:qx};g.Fa("ytNetworklessLoggingInitializationOptions",px);g.sx.prototype.isReady=function(){!this.config_&&Sma()&&(this.config_=g.vv());return!!this.config_};var Z_a=0,ux=g.gf?"webkit":Al?"moz":g.Ac?"ms":g.IF?"o":"",$_a=g.Ga("ytDomDomGetNextId")||function(){return++Z_a};
g.Fa("ytDomDomGetNextId",$_a);var yoa={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,screenX:1,screenY:1,scale:1,rotation:1,webkitMovementX:1,webkitMovementY:1};wx.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
wx.prototype.TP=function(){return this.event?!1===this.event.returnValue:!1};
wx.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
wx.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var xx=g.C.ytEventsEventsListeners||{};g.Fa("ytEventsEventsListeners",xx);var Boa=g.C.ytEventsEventsCounter||{count:0};g.Fa("ytEventsEventsCounter",Boa);var Fra=Zf(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a}),Coa=Zf(function(){var a=!1;
try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a});var yF=window.ytcsi&&window.ytcsi.now?window.ytcsi.now:window.performance&&window.performance.timing&&window.performance.now&&window.performance.timing.navigationStart?function(){return window.performance.timing.navigationStart+window.performance.now()}:function(){return(new Date).getTime()};g.Va(Ix,g.J);Ix.prototype.Z=function(a){void 0===a.j&&zoa(a);var b=a.j;void 0===a.u&&zoa(a);this.j=new g.Ig(b,a.u)};
Ix.prototype.Wp=function(){return this.j||new g.Ig};
Ix.prototype.ea=function(){if(this.j){var a=yF();if(0!=this.C){var b=this.I,c=this.j,d=b.x-c.x;b=b.y-c.y;d=Math.sqrt(d*d+b*b)/(a-this.C);this.u[this.B]=.5<Math.abs((d-this.D)/this.D)?1:0;for(c=b=0;4>c;c++)b+=this.u[c]||0;3<=b&&this.J();this.D=d}this.C=a;this.I=this.j;this.B=(this.B+1)%4}};
Ix.prototype.ra=function(){window.clearInterval(this.S);g.zx(this.qa)};var Mx={};var a0a,Px,Rx;a0a=g.C.ytPubsubPubsubInstance||new g.Bo;Px=g.C.ytPubsubPubsubSubscribedKeys||{};Rx=g.C.ytPubsubPubsubTopicToKeys||{};g.Qx=g.C.ytPubsubPubsubIsSynchronous||{};g.Bo.prototype.subscribe=g.Bo.prototype.subscribe;g.Bo.prototype.unsubscribeByKey=g.Bo.prototype.Og;g.Bo.prototype.publish=g.Bo.prototype.ma;g.Bo.prototype.clear=g.Bo.prototype.clear;g.Fa("ytPubsubPubsubInstance",a0a);g.Fa("ytPubsubPubsubTopicToKeys",Rx);g.Fa("ytPubsubPubsubIsSynchronous",g.Qx);
g.Fa("ytPubsubPubsubSubscribedKeys",Px);Vx.prototype.storePayload=function(a,b){this.store.push({payload:b,keys:a});a=Koa(a);this.j[a]?this.j[a]++:this.j[a]=1;return a};
Vx.prototype.extractMatchingEntries=function(a){for(var b=[],c=[],d=g.r(this.store),e=d.next();!e.done;e=d.next()){e=e.value;a:{var f=a;var h=Object.keys(f);h=g.r(h);for(var l=h.next();!l.done;l=h.next())if(l=l.value,e.keys[l]!==f[l]){f=!1;break a}f=!0}f?(b.push(e.payload),this.j[Koa(e.keys)]--):c.push(e)}this.store=c;a=Joa(this,a);a=g.r(a);for(c=a.next();!c.done;c=a.next())c=c.value,0<this.j[c]&&gu(new g.Pv("Transport IMS did not fully extract entries for key:",{sequence:c,P5a:b.length,M5a:this.j[c]}));
return b};
Vx.prototype.getSequenceCount=function(a){var b=Joa(this,a);a=0;b=g.r(b);for(var c=b.next();!c.done;c=b.next())a+=this.j[c.value];return a};
Vx.prototype.getSequenceCount=Vx.prototype.getSequenceCount;Vx.prototype.extractMatchingEntries=Vx.prototype.extractMatchingEntries;Vx.prototype.storePayload=Vx.prototype.storePayload;var Roa=g.au("initial_gel_batch_timeout",2E3),$oa=Math.pow(2,16)-1,cy=void 0,ey=new Loa,dy=new Loa,ly=!0,ay=g.C.ytLoggingTransportGELQueue_||new Map;g.Fa("ytLoggingTransportGELQueue_",ay);var by=g.C.ytLoggingTransportGELProtoQueue_||new Map;g.Fa("ytLoggingTransportGELProtoQueue_",by);var ky=g.C.ytLoggingTransportTokensToCttTargetIds_||{};g.Fa("ytLoggingTransportTokensToCttTargetIds_",ky);var jy=g.C.ytLoggingTransportTokensToJspbCttTargetIds_||{};
g.Fa("ytLoggingTransportTokensToJspbCttTargetIds_",jy);var Zx={};var my=g.C.ytLoggingGelSequenceIdObj_||{};g.Fa("ytLoggingGelSequenceIdObj_",my);var py,qy,bpa=g.sx,cSa=!1;var dpa=g.C.ytLoggingGelSequenceIdObj_||{};g.Fa("ytLoggingGelSequenceIdObj_",dpa);var dSa={adNotify:function(a){var b=new lq;try{return a.adMediaTimeSec&&g.E(b,1,a.adMediaTimeSec),a.adMediaTimeMs&&g.E(b,6,a.adMediaTimeMs),a.timeToAdBreakSec&&g.E(b,2,a.timeToAdBreakSec),a.clientScreenNonce&&g.E(b,3,a.clientScreenNonce),a.clientPlaybackNonce&&g.E(b,4,a.clientPlaybackNonce),a.videoAdBreakOffsetSec&&g.E(b,5,a.videoAdBreakOffsetSec),a.videoAdBreakOffsetMs&&g.E(b,7,a.videoAdBreakOffsetMs),b}catch(c){}},
biscottiBasedDetection:function(a){var b=new Ir;try{return a.detected&&g.E(b,1,a.detected),a.source&&g.E(b,2,a.source),b}catch(c){}},
adNotifyFilled:function(a){var b=new kq;try{return a.R_&&g.E(b,1,IZa[a.R_]),b}catch(c){}},
idbTransactionEnded:function(a){var b=new gt;try{return a.objectStoreNames&&g.E(b,1,a.objectStoreNames),a.duration&&b.Cj(a.duration),a.isSuccessful&&g.E(b,3,a.isSuccessful),a.connectionHasUnknownAbortedTransaction&&g.E(b,4,a.connectionHasUnknownAbortedTransaction),a.tryCount&&g.E(b,5,a.tryCount),a.tag&&g.E(b,6,k_a[a.tag]),b}catch(c){}},
idbUnexpectedlyClosed:function(a){var b=new ht;try{return a.dbName&&g.E(b,1,a.dbName),a.dbVersion&&g.E(b,2,a.dbVersion),b}catch(c){}},
flowEvent:function(a){var b=new Zs;try{a.flowNonce&&g.E(b,1,a.flowNonce);if(a.flowEventType){a:{var c=a.flowEventType,d=new Ys;try{c.QY&&g.E(d,1,e_a[c.QY]);c.flowEventType&&g.E(d,2,c.flowEventType);var e=d;break a}catch(Ab){}e=void 0}F(b,Ys,2,e)}if(a.flowMetadata){a:{var f=a.flowMetadata,h=new Xs;try{if(f.notaireContext){b:{var l=f.notaireContext,m=new us;try{if(l.serverInfo){c:{var n=l.serverInfo,p=new ts;try{n.id&&g.E(p,1,n.id);n.forceLog&&g.E(p,2,n.forceLog);var q=p;break c}catch(Ab){}q=void 0}F(m,
ts,1,q)}if(l.clientInfo){c:{var u=l.clientInfo,w=new rs;try{u.timeSinceReceivedMs&&g.E(w,1,u.timeSinceReceivedMs);var y=w;break c}catch(Ab){}y=void 0}F(m,rs,2,y)}var A=m;break b}catch(Ab){}A=void 0}F(h,us,1,A)}if(f.offlineTransferStatusChangedContext){b:{var B=f.offlineTransferStatusChangedContext,D=new As;try{if(B.offlineTransferStatusChanged){var G=Ppa(B.offlineTransferStatusChanged);F(D,xs,1,G)}var H=D;break b}catch(Ab){}H=void 0}F(h,As,2,H)}if(f.offlineOrchestrationContext){b:{var L=f.offlineOrchestrationContext,
N=new ws;try{L.entityType&&g.E(N,1,L.entityType);L.entityId&&g.E(N,7,L.entityId);L.W_&&g.E(N,6,G_a[L.W_]);L.V_&&g.E(N,2,F_a[L.V_]);L.X_&&g.E(N,10,H_a[L.X_]);L.isRetryable&&g.E(N,3,L.isRetryable);if(L.orchestrationAction){var K=Pqa(L.orchestrationAction);F(N,vs,4,K)}if(L.additionalOrchestrationActions){var P=Pqa(L.additionalOrchestrationActions);Kd(N,5,vs,P)}L.intervalSinceEnqueuedMs&&g.E(N,8,L.intervalSinceEnqueuedMs);L.executionIntervalMs&&g.E(N,9,L.executionIntervalMs);var R=N;break b}catch(Ab){}R=
void 0}F(h,ws,3,R)}if(f.shortsCreationContext){b:{var X=f.shortsCreationContext,Q=new Ks;try{X.K4&&g.Bd(Q,1,R_a[X.K4]);var oa=Q;break b}catch(Ab){}oa=void 0}F(h,Ks,4,oa)}if(f.mdxConnectionContext){b:{var sa=f.mdxConnectionContext,Ba=new os;try{sa.isReconnection&&g.E(Ba,1,sa.isReconnection);sa.nY&&g.E(Ba,2,n_a[sa.nY]);sa.isRetry&&g.E(Ba,3,sa.isRetry);var ya=Ba;break b}catch(Ab){}ya=void 0}F(h,os,5,ya)}if(f.premiumMultiStepPurchaseContext){b:{var va=f.premiumMultiStepPurchaseContext,Ja=new Hs;try{if(va.selectedOption){c:{var Ka=
va.selectedOption,qa=new Gs;try{Ka.Mz&&g.E(qa,1,xZa[Ka.Mz]);Ka.Az&&g.E(qa,2,Oy[Ka.Az]);Ka.itemExternalId&&g.E(qa,3,Ka.itemExternalId);var kb=qa;break c}catch(Ab){}kb=void 0}F(Ja,Gs,1,kb)}va.Az&&g.E(Ja,2,Oy[va.Az]);va.Bt&&g.E(Ja,3,Py[va.Bt]);va.landingPageVariantId&&g.E(Ja,4,va.landingPageVariantId);va.IY&&g.E(Ja,5,q_a[va.IY]);va.themeKey&&g.E(Ja,6,va.themeKey);va.O4&&g.E(Ja,7,r_a[va.O4]);var Mb=Ja;break b}catch(Ab){}Mb=void 0}F(h,Hs,6,Mb)}if(f.mdxReceiverConnectionContext){b:{var Ta=f.mdxReceiverConnectionContext,
fb=new ps;try{Ta.isFromAppLaunch&&g.E(fb,1,Ta.isFromAppLaunch);Ta.lY&&g.E(fb,2,m_a[Ta.lY]);Ta.supportsSmoothPairing&&g.E(fb,3,Ta.supportsSmoothPairing);Ta.hasManuallyPairedRemotesOnAppStartup&&g.E(fb,4,Ta.hasManuallyPairedRemotesOnAppStartup);Ta.A_&&g.E(fb,5,sZa[Ta.A_]);Ta.mdxSenderConnectedCounter&&g.E(fb,6,Ta.mdxSenderConnectedCounter);Ta.LY&&g.E(fb,7,l_a[Ta.LY]);Ta.appReloadCount&&g.E(fb,8,Ta.appReloadCount);var Yb=fb;break b}catch(Ab){}Yb=void 0}F(h,ps,7,Yb)}if(f.parentToolsOnboardingContext){b:{var Ua=
f.parentToolsOnboardingContext,$a=new Cs;try{Ua.L5&&g.E($a,1,FZa[Ua.L5]);if(Ua.kidsFlowInfo){c:{var ub=Ua.kidsFlowInfo,dc=new Bs;try{ub.d_&&g.E(dc,1,CZa[ub.d_]);ub.flowLabel&&g.E(dc,2,ub.flowLabel);ub.HZ&&g.E(dc,3,DZa[ub.HZ]);ub.hostClientVersion&&g.E(dc,4,ub.hostClientVersion);var Qb=dc;break c}catch(Ab){}Qb=void 0}F($a,Bs,2,Qb)}Ua.c_&&g.E($a,3,BZa[Ua.c_]);Ua.vX&&g.E($a,4,EZa[Ua.vX]);Ua.isKidSignedIn&&g.E($a,5,Ua.isKidSignedIn);Ua.alreadyOnboardedYtk&&g.E($a,6,Ua.alreadyOnboardedYtk);Ua.alreadyOnboardedSupex&&
g.E($a,7,Ua.alreadyOnboardedSupex);var Nc=$a;break b}catch(Ab){}Nc=void 0}F(h,Cs,8,Nc)}if(f.hashtagAutoCompleteContext){b:{var Zb=f.hashtagAutoCompleteContext,Zc=new es;try{Zb.suggestionSelected&&g.E(Zc,1,Zb.suggestionSelected);var yd=Zc;break b}catch(Ab){}yd=void 0}F(h,es,9,yd)}if(f.liveStreamingContext){b:{var pb=f.liveStreamingContext,ec=new ns;try{pb.HX&&g.E(ec,1,HZa[pb.HX]);pb.isAutoDashboard&&g.E(ec,2,pb.isAutoDashboard);pb.externalVideoId&&g.E(ec,3,pb.externalVideoId);pb.GX&&ec.setBroadcastConferenceType(GZa[pb.GX]);
if(pb.eventData){c:{var qb=pb.eventData,Tb=new ms;try{if(qb.webrtcHandshakeOffer){d:{var Nb=qb.webrtcHandshakeOffer,Ub=new ls;try{Nb.localVideoSsrc&&g.E(Ub,1,Nb.localVideoSsrc);Nb.localAudioSsrc&&g.E(Ub,2,Nb.localAudioSsrc);Nb.participantId&&g.E(Ub,3,Nb.participantId);var Nd=Ub;break d}catch(Ab){}Nd=void 0}F(Tb,ls,1,Nd)}if(qb.webrtcHandshakeAnswer){d:{var ta=qb.webrtcHandshakeAnswer,vb=new js;try{ta.remoteVideoSsrc&&g.E(vb,1,ta.remoteVideoSsrc);ta.remoteAudioSsrc&&g.E(vb,2,ta.remoteAudioSsrc);var fd=
vb;break d}catch(Ab){}fd=void 0}F(Tb,js,2,fd)}if(qb.webrtcHandshakeError){d:{var Ec=qb.webrtcHandshakeError,sb=new ks;try{Ec.description&&sb.setDescription(Ec.description);var Fc=sb;break d}catch(Ab){}Fc=void 0}F(Tb,ks,3,Fc)}if(qb.costreamStartNotification){d:{var zd=qb.costreamStartNotification,ne=new hs;try{zd.broadcastStartTimeMs&&g.E(ne,1,zd.broadcastStartTimeMs);var gd=ne;break d}catch(Ab){}gd=void 0}F(Tb,hs,4,gd)}if(qb.remoteParticipant){d:{var Hd=qb.remoteParticipant,ie=new is;try{Hd.videoSsrc&&
g.E(ie,1,Hd.videoSsrc);Hd.audioSsrc&&g.E(ie,2,Hd.audioSsrc);var Rc=ie;break d}catch(Ab){}Rc=void 0}F(Tb,is,5,Rc)}var od=Tb;break c}catch(Ab){}od=void 0}F(ec,ms,5,od)}var Sa=ec;break b}catch(Ab){}Sa=void 0}F(h,ns,10,Sa)}if(f.touAppealContext){b:{var Ia=f.touAppealContext,Od=new Ps;try{Ia.scope&&g.E(Od,1,Ia.scope);if(Ia.videoId){var oe=Od.setVideoId;c:{var Ke=Ia.videoId,Gc=new Ns;try{Ke.externalVideoId&&g.E(Gc,1,Ke.externalVideoId);var cf=Gc;break c}catch(Ab){}cf=void 0}oe.call(Od,cf)}if(Ia.videoThumbnailId){c:{var Sc=
Ia.videoThumbnailId,pd=new Os;try{Sc.externalVideoId&&g.E(pd,1,Sc.externalVideoId);Sc.thumbnailVersion&&g.E(pd,3,Sc.thumbnailVersion);Sc.checksum&&g.E(pd,4,Sc.checksum);var ug=pd;break c}catch(Ab){}ug=void 0}Gd(Od,Os,3,F3,ug)}if(Ia.playlistId){c:{var Ng=Ia.playlistId,wf=new Ms;try{Ng.externalPlaylistId&&g.E(wf,1,Ng.externalPlaylistId);var ic=wf;break c}catch(Ab){}ic=void 0}Gd(Od,Ms,4,F3,ic)}Ia.urlHostname&&g.Dd(Od,5,F3,Ia.urlHostname);Ia.encodedTouViolativeContentId&&g.E(Od,6,Ia.encodedTouViolativeContentId);
Ia.encodedChannelTouViolativeContentId&&g.E(Od,7,Ia.encodedChannelTouViolativeContentId);var pe=Od;break b}catch(Ab){}pe=void 0}F(h,Ps,11,pe)}if(f.dragAndDropContext){b:{var Le=f.dragAndDropContext,Oc=new cs;try{if(Le.rootVe){var je=By(Le.rootVe);F(Oc,bs,1,je)}if(Le.ve){var xf=By(Le.ve);F(Oc,bs,2,xf)}var Og=Oc;break b}catch(Ab){}Og=void 0}F(h,cs,12,Og)}if(f.socialSuggestionsContext){b:{var yf=f.socialSuggestionsContext,zf=new Ls;try{yf.R4&&g.E(zf,1,t_a[yf.R4]);yf.suggestionSelected&&g.E(zf,2,yf.suggestionSelected);
yf.source&&g.E(zf,3,u_a[yf.source]);var Hc=zf;break b}catch(Ab){}Hc=void 0}F(h,Ls,13,Hc)}if(f.featureEnablementContext){b:{var hd=f.featureEnablementContext,Ad=new ds;try{hd.feature&&g.E(Ad,1,vqa[hd.feature]);var Af=Ad;break b}catch(Ab){}Af=void 0}F(h,ds,14,Af)}if(f.iapContext){b:{var oc=f.iapContext,Pd=new fs;try{if(oc.playIapProduct){c:{var $c=oc.playIapProduct,yc=new gs;try{$c.packageId&&g.E(yc,1,$c.packageId);$c.productId&&g.E(yc,2,$c.productId);var pc=yc;break c}catch(Ab){}pc=void 0}Gd(Pd,gs,
1,c_a,pc)}oc.source&&g.E(Pd,2,g_a[oc.source]);oc.attributionId&&g.E(Pd,3,oc.attributionId);oc.externalVideoId&&g.E(Pd,4,oc.externalVideoId);oc.externalChannelId&&g.E(Pd,5,oc.externalChannelId);var qe=Pd;break b}catch(Ab){}qe=void 0}F(h,fs,15,qe)}if(f.shoppingCheckoutContext){b:{var Me=f.shoppingCheckoutContext,Bf=new Js;try{if(Me.shoppingFlowParams){c:{var ag=Me.shoppingFlowParams,lh=new Is;try{ag.s6&&g.E(lh,1,z_a[ag.s6]);var ji=lh;break c}catch(Ab){}ji=void 0}F(Bf,Is,1,ji)}Me.J4&&g.E(Bf,2,s_a[Me.J4]);
var Ne=Bf;break b}catch(Ab){}Ne=void 0}F(h,Js,16,Ne)}if(f.ypcCancellationContext){b:{var df=f.ypcCancellationContext,ki=new Vs;try{df.Az&&g.E(ki,1,Oy[df.Az]);df.Bt&&g.E(ki,2,Py[df.Bt]);var ef=ki;break b}catch(Ab){}ef=void 0}F(h,Vs,17,ef)}if(f.ypcBrowseOffersContext){b:{var Oe=f.ypcBrowseOffersContext,Pg=new Us;try{if(Oe.commerceFlowLoggingParams){var cj=Tqa(Oe.commerceFlowLoggingParams);F(Pg,Ts,1,cj)}Oe.Mz&&g.E(Pg,2,yZa[Oe.Mz]);Oe.xH&&g.E(Pg,3,ZZa[Oe.xH]);var mh=Pg;break b}catch(Ab){}mh=void 0}F(h,
Us,18,mh)}if(f.mdxStreamTransferContext){b:{var bg=f.mdxStreamTransferContext,Tc=new qs;try{bg.ZX&&g.E(Tc,1,o_a[bg.ZX]);var Cf=Tc;break b}catch(Ab){}Cf=void 0}F(h,qs,19,Cf)}if(f.pdgBuyFlowContext){b:{var vg=f.pdgBuyFlowContext,cg=new Fs;try{vg.Bt&&g.E(cg,1,Py[vg.Bt]);if(vg.entryPointClickedContext){c:{var dg=vg.entryPointClickedContext,nh=new Ds;try{dg.j5&&g.Dd(nh,1,d_a,L_a[dg.j5]);dg.h5&&g.Dd(nh,2,d_a,K_a[dg.h5]);dg.I4&&g.Dd(nh,3,d_a,J_a[dg.I4]);var Kb=nh;break c}catch(Ab){}Kb=void 0}F(cg,Ds,2,Kb)}if(vg.itemSelectionPageDisplayedContext){c:{var Kh=
vg.itemSelectionPageDisplayedContext,dj=new Es;try{Kh.i5&&g.E(dj,1,M_a[Kh.i5]);var Wk=dj;break c}catch(Ab){}Wk=void 0}F(cg,Es,3,Wk)}var ej=cg;break b}catch(Ab){}ej=void 0}F(h,Fs,20,ej)}if(f.ypcPurchaseContext){b:{var ff=f.ypcPurchaseContext,li=new Ws;try{if(ff.commerceFlowLoggingParams){var Xk=Tqa(ff.commerceFlowLoggingParams);F(li,Ts,1,Xk)}ff.Mz&&g.E(li,2,yZa[ff.Mz]);ff.D5&&g.E(li,3,y_a[ff.D5]);ff.D3&&g.E(li,4,zZa[ff.D3]);var Yk=li;break b}catch(Ab){}Yk=void 0}F(h,Ws,21,Yk)}if(f.webViewContext){b:{var Yd=
f.webViewContext,Qg=new Rs;try{Yd.hostname&&g.E(Qg,1,Yd.hostname);Yd.p6&&g.E(Qg,2,U_a[Yd.p6]);Yd.isLoaded&&g.E(Qg,3,Yd.isLoaded);Yd.webViewEngagementSec&&g.E(Qg,4,Yd.webViewEngagementSec);var fj=Qg;break b}catch(Ab){}fj=void 0}F(h,Rs,22,fj)}if(f.videoSuggestionsContext){b:{var mi=f.videoSuggestionsContext,ni=new Qs;try{mi.type&&g.E(ni,1,tZa[mi.type]);mi.serializedSuggestionData&&Jd(ni,2,mi.serializedSuggestionData);mi.videoId&&ni.setVideoId(mi.videoId);var sp=ni;break b}catch(Ab){}sp=void 0}F(h,Qs,
23,sp)}var tp=h;break a}catch(Ab){}tp=void 0}F(b,Xs,3,tp)}a.RY&&g.E(b,4,f_a[a.RY]);a.flowEventStatus&&g.E(b,5,a.flowEventStatus);a.csn&&g.E(b,6,a.csn);a.can&&g.E(b,7,a.can);return b}catch(Ab){}},
idbQuotaExceeded:function(a){var b=new et;try{return a.deviceStorageUsageMbytes&&g.E(b,1,a.deviceStorageUsageMbytes),a.deviceStorageQuotaMbytes&&g.E(b,2,a.deviceStorageQuotaMbytes),a.isIframe&&g.E(b,3,a.isIframe),a.isSw&&g.E(b,4,a.isSw),a.dbName&&g.E(b,5,a.dbName),a.objectStoreNames&&g.E(b,6,a.objectStoreNames),a.transactionCount&&g.E(b,7,a.transactionCount),a.transactionMode&&g.E(b,8,a.transactionMode),b}catch(c){}},
idbTransactionAborted:function(a){var b=new ft;try{return a.objectStoreNames&&g.E(b,1,a.objectStoreNames),a.hasWindowUnloaded&&g.E(b,2,a.hasWindowUnloaded),a.transactionCount&&g.E(b,3,a.transactionCount),a.transactionDuration&&g.E(b,4,a.transactionDuration),a.dbDuration&&g.E(b,5,a.dbDuration),b}catch(c){}},
streamzIncremented:function(a){var b=new Qt;try{return a.serializedIncrementBatch&&Jd(b,1,a.serializedIncrementBatch),b}catch(c){}},
sliEventBatch:function(a){var b=new Vr;try{if(a.loggedEvents){var c=wra(a.loggedEvents);Kd(b,1,Rr,c)}if(a.unloggedEvents){var d=wra(a.unloggedEvents);Kd(b,2,Rr,d)}a.playerClientVersion&&g.E(b,3,a.playerClientVersion);a.player_canary_state&&g.E(b,4,YZa[a.player_canary_state]);if(a.dimensions){a:{var e=a.dimensions,f=new Ur;try{e.playerClientVersion&&g.E(f,1,e.playerClientVersion);e.player_canary_state&&g.E(f,2,YZa[e.player_canary_state]);var h=f;break a}catch(l){}h=void 0}F(b,Ur,5,h)}return b}catch(l){}},
playbackAssociated:function(a){var b=new jt;try{a.cpn&&g.E(b,1,a.cpn);if(a.playbackVe){var c=By(a.playbackVe);F(b,bs,2,c)}a.csn&&g.E(b,3,a.csn);if(a.queueInfo){a:{var d=a.queueInfo,e=new kt;try{if(d.enqueueingVe){var f=By(d.enqueueingVe);F(e,bs,1,f)}d.enqueueingCsn&&g.E(e,2,d.enqueueingCsn);d.clientEnqueueingTimeMs&&g.E(e,3,d.clientEnqueueingTimeMs);var h=e;break a}catch(l){}h=void 0}F(b,kt,4,h)}return b}catch(l){}},
autoplayTriggered:function(a){var b=new Xr;try{return a.intentional&&g.E(b,1,a.intentional),b}catch(c){}},
webPlayerApiCalled:function(a){var b=new Rt;try{return a.callerUrl&&g.E(b,1,a.callerUrl),a.methodName&&g.E(b,2,a.methodName),a.origin&&g.E(b,3,a.origin),a.playerStyle&&g.E(b,4,a.playerStyle),b}catch(c){}},
embedsAdEvent:function(a){var b=new Wr;try{return a.rs&&g.E(b,1,a_a[a.rs]),a.break_type&&g.E(b,2,$Za[a.break_type]),a.packageName&&g.E(b,3,a.packageName),a.embedUrl&&g.E(b,4,a.embedUrl),a.oX&&g.E(b,5,b_a[a.oX]),a.youtubeHost&&g.E(b,6,a.youtubeHost),b}catch(c){}},
embedsShouldRequestStorageAccessResult:function(a){var b=new $r;try{return a.result&&g.E(b,1,a.result),a.returnsUndefined&&g.E(b,2,a.returnsUndefined),b}catch(c){}},
embedsRequestStorageAccessState:function(a){var b=new Zr;try{return a.isCued&&g.E(b,1,a.isCued),a.isAutoplayBlocked&&g.E(b,2,a.isAutoplayBlocked),b}catch(c){}},
embedsRequestStorageAccessFailedState:function(a){var b=new Yr;try{return a.state&&b.Vc(a.state),b}catch(c){}},
heartbeatActionPlayerHalted:function(a){var b=new at;try{return a.serializedServerContext&&Jd(b,1,a.serializedServerContext),a.enforcedPolicyToHaltOnNetworkFailure&&g.E(b,2,a.enforcedPolicyToHaltOnNetworkFailure),b}catch(c){}},
heartbeatActionPlayerTransitioned:function(a){var b=new bt;try{return a.reason&&g.E(b,1,h_a[a.reason]),a.trigger&&g.E(b,2,i_a[a.trigger]),a.serializedServerContext&&Jd(b,3,a.serializedServerContext),b}catch(c){}},
embedsItpWatchLaterResult:function(a){var b=new as;try{return a.accepted&&g.E(b,1,a.accepted),b}catch(c){}},
html5PlayerHealthEvent:function(a){var b=new dt;try{return a.started&&g.E(b,1,a.started),a.V4&&g.E(b,2,x_a[a.V4]),a.joinLatencySecs&&g.E(b,4,a.joinLatencySecs),a.playTimeSecs&&g.E(b,5,a.playTimeSecs),a.rebufferTimeSecs&&g.E(b,6,a.rebufferTimeSecs),a.I3&&g.E(b,7,j_a[a.I3]),a.isAd&&g.E(b,8,a.isAd),a.live_mode&&g.E(b,9,w_a[a.live_mode]),a.isGapless&&g.E(b,10,a.isGapless),a.hasDrm&&g.E(b,11,a.hasDrm),a.seekCount&&g.E(b,12,a.seekCount),a.networkErrorCount&&g.E(b,13,a.networkErrorCount),a.nonNetworkErrorCount&&
g.E(b,14,a.nonNetworkErrorCount),a.isServerStitchedDai&&g.E(b,15,a.isServerStitchedDai),b}catch(c){}},
adsClientStateChange:function(a){var b=new Tq;try{if(a.cuepointTrigger){a:{var c=a.cuepointTrigger,d=new Iq;try{c.type&&g.E(d,1,NZa[c.type]);c.event&&g.E(d,2,MZa[c.event]);c.cuepointId&&g.E(d,3,c.cuepointId);c.totalCueDurationMs&&g.E(d,4,c.totalCueDurationMs);c.playheadTimeMs&&g.E(d,5,c.playheadTimeMs);c.cueStartTimeMs&&g.E(d,6,c.cueStartTimeMs);c.cuepointReceivedTimeMs&&g.E(d,7,c.cuepointReceivedTimeMs);c.contentCpn&&g.E(d,8,c.contentCpn);c.externalChannelId&&g.E(d,9,c.externalChannelId);var e=d;
break a}catch(ta){}e=void 0}Gd(b,Iq,1,E3,e)}if(a.daiStateTrigger){a:{var f=a.daiStateTrigger,h=new Nq;try{f.contentCpn&&g.E(h,1,f.contentCpn);f.totalCueDurationMs&&g.E(h,2,f.totalCueDurationMs);f.filledAdsDurationMs&&g.E(h,3,f.filledAdsDurationMs);f.lH&&g.E(h,4,TZa[f.lH]);f.jH&&g.E(h,5,RZa[f.jH]);f.kH&&g.E(h,6,SZa[f.kH]);f.qs&&g.E(h,7,UZa[f.qs]);f.externalChannelId&&g.E(h,8,f.externalChannelId);if(f.adClientData){var l=My(f.adClientData);F(h,Bq,9,l)}var m=h;break a}catch(ta){}m=void 0}Gd(b,Nq,2,E3,
m)}if(a.daiAdBreakCriticalError){a:{var n=a.daiAdBreakCriticalError,p=new Jq;try{n.contentCpn&&g.E(p,1,n.contentCpn);n.qs&&g.E(p,2,UZa[n.qs]);n.externalChannelId&&g.E(p,3,n.externalChannelId);n.msg&&g.E(p,4,n.msg);n.cueIdentifier&&g.E(p,5,n.cueIdentifier);var q=p;break a}catch(ta){}q=void 0}Gd(b,Jq,3,E3,q)}if(a.daiAdBreakWarning){a:{var u=a.daiAdBreakWarning,w=new Lq;try{u.contentCpn&&g.E(w,1,u.contentCpn);u.qs&&g.E(w,2,UZa[u.qs]);u.externalChannelId&&g.E(w,3,u.externalChannelId);u.msg&&g.E(w,4,u.msg);
u.cueIdentifier&&g.E(w,5,u.cueIdentifier);var y=w;break a}catch(ta){}y=void 0}Gd(b,Lq,4,E3,y)}if(a.daiAdBreakInfo){a:{var A=a.daiAdBreakInfo,B=new Kq;try{A.contentCpn&&g.E(B,1,A.contentCpn);A.totalCueDurationMs&&g.E(B,2,A.totalCueDurationMs);A.filledAdsDurationMs&&g.E(B,3,A.filledAdsDurationMs);A.lH&&g.E(B,4,TZa[A.lH]);A.jH&&g.E(B,5,RZa[A.jH]);A.kH&&g.E(B,6,SZa[A.kH]);A.externalChannelId&&g.E(B,7,A.externalChannelId);A.cueIdentifier&&g.E(B,8,A.cueIdentifier);A.OZ&&g.E(B,9,VZa[A.OZ]);A.msg&&g.E(B,
10,A.msg);A.filledAdCount&&g.E(B,11,A.filledAdCount);var D=B;break a}catch(ta){}D=void 0}Gd(b,Kq,5,E3,D)}if(a.visibilityErrorDebugInfo){a:{var G=a.visibilityErrorDebugInfo,H=new Sq;try{G.elementName&&g.E(H,1,G.elementName);G.contentVideoPlaybackEventId&&g.E(H,2,G.contentVideoPlaybackEventId);G.errorList&&g.E(H,3,G.errorList);G.htmlDump&&g.E(H,4,G.htmlDump);var L=H;break a}catch(ta){}L=void 0}Gd(b,Sq,6,E3,L)}if(a.playbackTimelineAdBreakStateTrigger){a:{var N=a.playbackTimelineAdBreakStateTrigger,K=
new Rq;try{N.cueIdentifier&&g.E(K,1,N.cueIdentifier);N.timestampUnixEpochSec&&g.E(K,2,N.timestampUnixEpochSec);N.mX&&g.E(K,3,OZa[N.mX]);N.y4&&g.E(K,4,PZa[N.y4]);N.timestampUnixEpochMs&&g.E(K,5,N.timestampUnixEpochMs);var P=K;break a}catch(ta){}P=void 0}Gd(b,Rq,7,E3,P)}if(a.extraLongAdBreakDebugInfo){a:{var R=a.extraLongAdBreakDebugInfo,X=new Qq;try{R.contentVideoPlaybackEventId&&g.E(X,1,R.contentVideoPlaybackEventId);if(R.adPlacementKindCuepointInitiatedCueRange){var Q=Ny(R.adPlacementKindCuepointInitiatedCueRange);
F(X,Pq,2,Q)}if(R.adPlacementConfigImpliedCueRange){var oa=Ny(R.adPlacementConfigImpliedCueRange);F(X,Pq,3,oa)}if(R.adPlacementKindMillisecondsInitiatedCueRange){var sa=Ny(R.adPlacementKindMillisecondsInitiatedCueRange);F(X,Pq,4,sa)}R.cueIdentifier&&g.E(X,5,R.cueIdentifier);var Ba=X;break a}catch(ta){}Ba=void 0}Gd(b,Qq,8,E3,Ba)}if(a.comparePyvAdTagInfo){a:{var ya=a.comparePyvAdTagInfo,va=new Hq;try{ya.pyvAdTagUrlFromPlayer&&g.E(va,1,ya.pyvAdTagUrlFromPlayer);ya.pyvAdTagUrlFromWatchNext&&g.E(va,2,ya.pyvAdTagUrlFromWatchNext);
var Ja=va;break a}catch(ta){}Ja=void 0}Gd(b,Hq,9,E3,Ja)}if(a.driftRecoveryInfo){a:{var Ka=a.driftRecoveryInfo,qa=new Oq;try{Ka.contentCpn&&g.E(qa,1,Ka.contentCpn);Ka.cueIdentifier&&g.E(qa,2,Ka.cueIdentifier);Ka.driftRecoveryMs&&g.E(qa,3,Ka.driftRecoveryMs);Ka.breakDurationMs&&g.E(qa,4,Ka.breakDurationMs);Ka.driftFromHeadMs&&g.E(qa,5,Ka.driftFromHeadMs);Ka.appliedDriftRecoveryMs&&g.E(qa,6,Ka.appliedDriftRecoveryMs);Ka.destinationMs&&g.E(qa,7,Ka.destinationMs);if(Ka.adClientData){var kb=My(Ka.adClientData);
F(qa,Bq,8,kb)}var Mb=qa;break a}catch(ta){}Mb=void 0}Gd(b,Oq,10,E3,Mb)}if(a.adsClientEvent){a:{var Ta=a.adsClientEvent,fb=new Gq;try{Ta.rs&&g.E(fb,1,LZa[Ta.rs]);if(Ta.adClientData){var Yb=My(Ta.adClientData);F(fb,Bq,3,Yb)}Ta.serializedAdServingData&&Jd(fb,4,Ta.serializedAdServingData);Ta.eventOrder&&g.E(fb,5,Ta.eventOrder);Ta.serializedSlotAdServingData&&Jd(fb,6,Ta.serializedSlotAdServingData);if(Ta.errorInfo){b:{var Ua=Ta.errorInfo,$a=new Fq;try{Ua.qs&&g.E($a,1,KZa[Ua.qs]);Ua.EY&&g.E($a,2,JZa[Ua.EY]);
var ub=$a;break b}catch(ta){}ub=void 0}F(fb,Fq,7,ub)}var dc=fb;break a}catch(ta){}dc=void 0}Gd(b,Gq,11,E3,dc)}if(a.daiAdStateTracking){a:{var Qb=a.daiAdStateTracking,Nc=new Mq;try{Qb.rs&&g.E(Nc,1,QZa[Qb.rs]);Qb.contentCpn&&g.E(Nc,2,Qb.contentCpn);Qb.externalChannelId&&g.E(Nc,3,Qb.externalChannelId);Qb.adCpn&&g.E(Nc,4,Qb.adCpn);Qb.adCount&&g.E(Nc,5,Qb.adCount);Qb.msg&&g.E(Nc,6,Qb.msg);var Zb=Nc;break a}catch(ta){}Zb=void 0}Gd(b,Mq,12,E3,Zb)}if(a.adTrimmingInfo){a:{var Zc=a.adTrimmingInfo,yd=new Cq;
try{Zc.contentCpn&&g.E(yd,1,Zc.contentCpn);Zc.cueIdentifier&&g.E(yd,2,Zc.cueIdentifier);if(Zc.adMediaInfo){b:{var pb=Zc.adMediaInfo,ec=new Dq;try{pb.externalVideoId&&g.E(ec,1,pb.externalVideoId);pb.originalMediaDurationMs&&g.E(ec,2,pb.originalMediaDurationMs);pb.trimmedMediaDurationMs&&g.E(ec,3,pb.trimmedMediaDurationMs);var qb=ec;break b}catch(ta){}qb=void 0}Kd(yd,3,Dq,qb)}var Tb=yd;break a}catch(ta){}Tb=void 0}Gd(b,Cq,13,E3,Tb)}if(a.adsAttributionEvent){a:{var Nb=a.adsAttributionEvent,Ub=new Eq;
try{Nb.DY&&g.E(Ub,1,WZa[Nb.DY]);Nb.zX&&g.E(Ub,2,XZa[Nb.zX]);Nb.innerErrorDomain&&g.E(Ub,3,Nb.innerErrorDomain);Nb.innerErrorCode&&g.E(Ub,4,Nb.innerErrorCode);var Nd=Ub;break a}catch(ta){}Nd=void 0}Gd(b,Eq,14,E3,Nd)}return b}catch(ta){}},
offlineTransferStatusChanged:Ppa,offlineStateSnapshot:function(a){var b=new Pt;try{if(a.offlineVideos){a:{var c=a.offlineVideos,d=new Mt;try{c.id&&g.E(d,1,c.id);c.k6&&g.E(d,2,p_a[c.k6]);c.pendingStateFlags&&g.E(d,3,c.pendingStateFlags);c.totalBytes&&g.E(d,21,c.totalBytes);c.downloadedBytes&&g.E(d,4,c.downloadedBytes);c.GK&&g.E(d,5,zy[c.GK]);c.z4&&g.E(d,6,Ipa[c.z4]);c.playerResponseSavedTimeMs&&g.E(d,7,c.playerResponseSavedTimeMs);c.offlineStateUpdateTimeMs&&g.E(d,8,c.offlineStateUpdateTimeMs);c.offlineStateExpiresInS&&
g.E(d,9,c.offlineStateExpiresInS);c.durationInS&&g.E(d,10,c.durationInS);c.isInPlaylist&&g.E(d,11,c.isInPlaylist);c.rX&&g.E(d,12,yy[c.rX]);c.oY&&g.E(d,13,yy[c.oY]);if(c.captions){b:{var e=c.captions,f=new Nt;try{e.format&&g.E(f,1,e.format);e.isDownloaded&&g.E(f,2,e.isDownloaded);var h=f;break b}catch(ub){}h=void 0}Kd(d,14,Nt,h)}c.DL&&g.E(d,15,Lpa[c.DL]);c.lastPlaybackTimestampMs&&g.E(d,16,c.lastPlaybackTimestampMs);if(c.offlineSuspendedStates){b:{var l=c.offlineSuspendedStates,m=new Kt;try{l.totalDownloadedBytes&&
g.E(m,1,l.totalDownloadedBytes);l.totalSegmentCount&&g.E(m,2,l.totalSegmentCount);l.backgroundTransitionCount&&g.E(m,3,l.backgroundTransitionCount);l.totalDurationMs&&g.E(m,4,l.totalDurationMs);l.downloadErrorCount&&g.E(m,5,l.downloadErrorCount);l.totalDownloadedSizePercent&&g.E(m,6,l.totalDownloadedSizePercent);var n=m;break b}catch(ub){}n=void 0}Kd(d,17,Kt,n)}c.streamInLocalStorage&&g.E(d,18,c.streamInLocalStorage);c.streamInInternalStorage&&g.E(d,19,c.streamInInternalStorage);if(c.storageIdStates){b:{var p=
c.storageIdStates,q=new Lt;try{p.storageId&&g.E(q,1,p.storageId);p.a5&&g.E(q,2,v_a[p.a5]);var u=q;break b}catch(ub){}u=void 0}F(d,Lt,20,u)}c.cotn&&g.E(d,22,c.cotn);if(c.additionalVideoClientState){var w=new Jt;F(d,Jt,23,w)}if(c.offlineVideoEntityMigrationState){b:{var y=c.offlineVideoEntityMigrationState,A=new Ot;try{y.isInOfflineStore&&g.E(A,1,y.isInOfflineStore);y.isPlaybackDataEntityPresent&&g.E(A,2,y.isPlaybackDataEntityPresent);y.wasPlaybackDataEntityUsedToFillVideoState&&g.E(A,3,y.wasPlaybackDataEntityUsedToFillVideoState);
y.isTransferEntityPresent&&g.E(A,4,y.isTransferEntityPresent);y.wasTransferEntityUsedToFillVideoState&&g.E(A,5,y.wasTransferEntityUsedToFillVideoState);y.offlineStoreCaptionTrackCount&&g.E(A,6,y.offlineStoreCaptionTrackCount);y.entityStoreCaptionTrackCount&&g.E(A,7,y.entityStoreCaptionTrackCount);y.isMetadataEntityPresent&&g.E(A,8,y.isMetadataEntityPresent);var B=A;break b}catch(ub){}B=void 0}F(d,Ot,24,B)}var D=d;break a}catch(ub){}D=void 0}Kd(b,1,Mt,D)}if(a.offlinePlaylists){a:{var G=a.offlinePlaylists,
H=new It;try{G.id&&g.E(H,1,G.id);G.videoIds&&g.Bd(H,2,G.videoIds);G.videoCount&&g.E(H,3,G.videoCount);G.successCount&&g.E(H,4,G.successCount);G.failCount&&g.E(H,5,G.failCount);G.pendingCount&&g.E(H,6,G.pendingCount);G.disabledCount&&g.E(H,7,G.disabledCount);G.deletedCount&&g.E(H,8,G.deletedCount);G.GK&&g.E(H,9,zy[G.GK]);G.isPlaylistOwner&&g.E(H,10,G.isPlaylistOwner);G.lastSyncTimeMs&&g.E(H,11,G.lastSyncTimeMs);G.e4&&g.E(H,12,I_a[G.e4]);var L=H;break a}catch(ub){}L=void 0}Kd(b,2,It,L)}a.freeDiskSpaceBytes&&
g.E(b,3,a.freeDiskSpaceBytes);a.lastOfflineUsageTimeMs&&g.E(b,4,a.lastOfflineUsageTimeMs);a.lastOfflinePlaybackTimeMs&&g.E(b,5,a.lastOfflinePlaybackTimeMs);a.lastOfflineSaveTimeMs&&g.E(b,6,a.lastOfflineSaveTimeMs);a.lastOfflineDownloadSuccessTimeMs&&g.E(b,7,a.lastOfflineDownloadSuccessTimeMs);a.isBatteryCharging&&g.E(b,8,a.isBatteryCharging);a.oH&&g.E(b,9,yy[a.oH]);a.batteryLevelPercentage&&g.E(b,10,a.batteryLevelPercentage);a.isPostMigrationState&&g.E(b,11,a.isPostMigrationState);if(a.offlineCacheVerificationFailure){a:{var N=
a.offlineCacheVerificationFailure,K=new Bt;try{N.numUncachedVideos&&g.E(K,1,N.numUncachedVideos);N.numTotalCompletedVideos&&g.E(K,2,N.numTotalCompletedVideos);if(N.uncachedVideos){b:{var P=N.uncachedVideos,R=new Ct;try{P.videoId&&R.setVideoId(P.videoId);P.itag&&g.E(R,6,P.itag);P.us&&g.E(R,2,E_a[P.us]);P.isCachedExternally&&g.E(R,3,P.isCachedExternally);P.M3&&g.E(R,4,E_a[P.M3]);P.previousFailureReasonTimestampMs&&g.E(R,5,P.previousFailureReasonTimestampMs);P.eL&&g.E(R,7,Ay[P.eL]);P.blockSizeBytes&&
g.E(R,8,P.blockSizeBytes);if(P.streamVerificationFailedBlocks){c:{var X=P.streamVerificationFailedBlocks,Q=new Dt;try{X.itag&&g.E(Q,1,X.itag);X.startingByte&&g.E(Q,2,X.startingByte);var oa=Q;break c}catch(ub){}oa=void 0}Kd(R,9,Dt,oa)}P.N3&&g.E(R,10,Ay[P.N3]);P.v4&&g.E(R,11,Ay[P.v4]);P.u4&&g.E(R,12,E_a[P.u4]);var sa=R;break b}catch(ub){}sa=void 0}Kd(K,3,Ct,sa)}var Ba=K;break a}catch(ub){}Ba=void 0}F(b,Bt,12,Ba)}if(a.additionalOfflineClientState){a:{var ya=a.additionalOfflineClientState,va=new Ht;try{if(ya.mainAppAdditionalOfflineClientState){b:{var Ja=
ya.mainAppAdditionalOfflineClientState,Ka=new Gt;try{if(Ja.downloadRecsVideos){c:{var qa=Ja.downloadRecsVideos,kb=new Et;try{qa.videoId&&kb.setVideoId(qa.videoId);qa.surrogateVideoId&&g.E(kb,2,qa.surrogateVideoId);var Mb=kb;break c}catch(ub){}Mb=void 0}Kd(Ka,1,Et,Mb)}if(Ja.smartDownloadVideos){c:{var Ta=Ja.smartDownloadVideos,fb=new Ft;try{Ta.externalVideoId&&g.E(fb,1,Ta.externalVideoId);Ta.videoSid&&g.E(fb,2,Ta.videoSid);var Yb=fb;break c}catch(ub){}Yb=void 0}Kd(Ka,2,Ft,Yb)}var Ua=Ka;break b}catch(ub){}Ua=
void 0}F(va,Gt,1,Ua)}var $a=va;break a}catch(ub){}$a=void 0}F(b,Ht,13,$a)}return b}catch(ub){}}},eSa={adNotify:function(a,b,c){var d=new Ut;
Gd(d,lq,184,ty,a);c?ry(d,c,b):sy(d,b)},
biscottiBasedDetection:function(a,b,c){var d=new Ut;Gd(d,Ir,439,ty,a);c?ry(d,c,b):sy(d,b)},
adNotifyFilled:function(a,b,c){var d=new Ut;Gd(d,kq,300,ty,a);c?ry(d,c,b):sy(d,b)},
idbTransactionEnded:function(a,b,c){var d=new Ut;Gd(d,gt,352,ty,a);c?ry(d,c,b):sy(d,b)},
idbUnexpectedlyClosed:function(a,b,c){var d=new Ut;Gd(d,ht,348,ty,a);c?ry(d,c,b):sy(d,b)},
flowEvent:function(a,b,c){var d=new Ut;Gd(d,Zs,304,ty,a);c?ry(d,c,b):sy(d,b)},
idbQuotaExceeded:function(a,b,c){var d=new Ut;Gd(d,et,351,ty,a);c?ry(d,c,b):sy(d,b)},
idbTransactionAborted:function(a,b,c){var d=new Ut;Gd(d,ft,353,ty,a);c?ry(d,c,b):sy(d,b)},
streamzIncremented:function(a,b,c){var d=new Ut;Gd(d,Qt,126,ty,a);c?ry(d,c,b):sy(d,b)},
sliEventBatch:function(a,b,c){var d=new Ut;Gd(d,Vr,344,ty,a);c?ry(d,c,b):sy(d,b)},
playbackAssociated:ipa,autoplayTriggered:function(a,b,c){var d=new Ut;Gd(d,Xr,209,ty,a);c?ry(d,c,b):sy(d,b)},
webPlayerApiCalled:function(a,b,c){var d=new Ut;Gd(d,Rt,76,ty,a);c?ry(d,c,b):sy(d,b)},
embedsAdEvent:function(a,b,c){var d=new Ut;Gd(d,Wr,327,ty,a);c?ry(d,c,b):sy(d,b)},
embedsShouldRequestStorageAccessResult:function(a,b,c){var d=new Ut;Gd(d,$r,251,ty,a);c?ry(d,c,b):sy(d,b)},
embedsRequestStorageAccessState:function(a,b,c){var d=new Ut;Gd(d,Zr,256,ty,a);c?ry(d,c,b):sy(d,b)},
embedsRequestStorageAccessFailedState:function(a,b,c){var d=new Ut;Gd(d,Yr,257,ty,a);c?ry(d,c,b):sy(d,b)},
heartbeatActionPlayerHalted:function(a,b,c){var d=new Ut;Gd(d,at,332,ty,a);c?ry(d,c,b):sy(d,b)},
heartbeatActionPlayerTransitioned:function(a,b,c){var d=new Ut;Gd(d,bt,330,ty,a);c?ry(d,c,b):sy(d,b)},
embedsItpWatchLaterResult:function(a,b,c){var d=new Ut;Gd(d,as,266,ty,a);c?ry(d,c,b):sy(d,b)},
html5PlayerHealthEvent:function(a,b,c){var d=new Ut;Gd(d,dt,293,ty,a);c?ry(d,c,b):sy(d,b)},
adsClientStateChange:function(a,b,c){var d=new Ut;Gd(d,Tq,197,ty,a);c?ry(d,c,b):sy(d,b)},
offlineTransferStatusChanged:function(a,b,c){var d=new Ut;Gd(d,xs,2,ty,a);c?ry(d,c,b):sy(d,b)},
offlineStateSnapshot:function(a,b,c){var d=new Ut;Gd(d,Pt,22,ty,a);c?ry(d,c,b):sy(d,b)}};var fSa=!1,Qy=void 0,Ry=void 0,xra=g.sx;var yra=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var Dra={};g.v(Yy,g.J);Yy.prototype.T=function(a,b,c,d,e){c=fu((0,g.Pa)(c,d||this.eb));c={target:a,name:b,callback:c};var f;e&&Fra()&&(f={passive:!0});a.addEventListener(b,c.callback,f);this.J.push(c);return c};
Yy.prototype.yc=function(a){for(var b=0;b<this.J.length;b++)if(this.J[b]==a){this.J.splice(b,1);a.target.removeEventListener(a.name,a.callback);break}};
Yy.prototype.ra=function(){g.$y(this);g.J.prototype.ra.call(this)};g.Va(g.az,g.J);g.az.prototype.subscribe=function(a,b,c){return this.isDisposed()?0:this.yg.subscribe(a,b,c)};
g.az.prototype.unsubscribe=function(a,b,c){return this.isDisposed()?!1:this.yg.unsubscribe(a,b,c)};
g.az.prototype.Og=function(a){return this.isDisposed()?!1:this.yg.Og(a)};
g.az.prototype.ma=function(a,b){return this.isDisposed()?!1:this.yg.ma.apply(this.yg,arguments)};g.v(g.ez,g.az);g.k=g.ez.prototype;g.k.cancel=function(){this.B&&(this.B=!1,this.ma("dragend",0,0,null));this.u&&(this.u=!1,this.ma("hoverend",0,0,null),gz(this),dz(this))};
g.k.BQ=function(a){gz(this);fz(this,hz("move"),this.zQ);fz(this,hz("out"),this.AQ);fz(this,"touchstart",this.tL);this.j&&fz(this,hz("down"),this.jJ);var b=g.Ax(a);a=Dx(a);this.u=!0;this.ma("hoverstart",a.x,a.y,b);this.ma("hovermove",a.x,a.y,b)};
g.k.zQ=function(a){var b=g.Ax(a);a=Dx(a);if(this.D){var c=this.D;this.D=null;if(Cx(c)==b&&Jg(Dx(c),a))return}this.ma("hovermove",a.x,a.y,b)};
g.k.AQ=function(a){var b=Dx(a),c=Cx(a);try{if(c&&g.qh(this.I,c)){this.D=a;this.ma("hovermove",b.x,b.y,c);return}}catch(d){}gz(this);dz(this);this.u=!1;this.ma("hoverend",b.x,b.y,c)};
g.k.D_=function(a){this.BQ(a);this.jJ(a)};
g.k.jJ=function(a){if("number"!==typeof a.button||0==a.button){gz(this);this.C.T(document,hz("move"),this.C_);this.C.T(document,hz("up"),this.H_);var b=g.Ax(a);if(g.gf)fz(this,"dragstart",this.pY);else if(g.Ex(a),(g.pG||Al)&&b)a:{for(var c=b;c;){if(sh(c)||"-1"===c.getAttribute("tabindex")){c.focus();break a}c=c.parentElement}document.activeElement.blur()}this.B=!0;a=Dx(a);this.ma("dragstart",a.x,a.y,b);this.ma("dragmove",a.x,a.y,b)}};
g.k.pY=function(a){g.Ex(a)};
g.k.C_=function(a){var b=g.Ax(a);b==document&&(b=null);a=Dx(a);this.ma("hovermove",a.x,a.y,b);this.ma("dragmove",a.x,a.y,b)};
g.k.H_=function(a){gz(this);this.B=!1;var b=Bx(a),c=g.Ax(a);a=Dx(a);b&&g.qh(this.I,b)?(fz(this,hz("move"),this.zQ),fz(this,hz("out"),this.AQ),fz(this,hz("down"),this.jJ),fz(this,"touchstart",this.tL),this.ma("dragend",a.x,a.y,c)):(dz(this),this.u=!1,this.ma("dragend",a.x,a.y,c),this.ma("hoverend",a.x,a.y,c))};
g.k.tL=function(a){var b=a.changedTouches[0];b&&(gz(this),fz(this,"touchmove",this.B5),fz(this,"touchend",this.ZS),fz(this,"touchcancel",this.ZS),this.J=b.identifier,a=g.Ax(a),this.u||(this.u=!0,this.ma("hoverstart",b.pageX,b.pageY,a)),this.ma("hovermove",b.pageX,b.pageY,a),this.j&&(this.B=!0,this.ma("dragstart",b.pageX,b.pageY,a),this.ma("dragmove",b.pageX,b.pageY,a)))};
g.k.B5=function(a){var b=Gra(this,a);b&&(this.j&&g.Ex(a),a=g.Ax(a),this.ma("hovermove",b.pageX,b.pageY,a),this.j&&this.ma("dragmove",b.pageX,b.pageY,a))};
g.k.ZS=function(a){var b=Gra(this,a);if(b){gz(this);dz(this);this.u=!1;var c=g.Ax(a);this.j&&(this.S||g.Ex(a),this.B=!1,this.ma("dragend",b.pageX,b.pageY,c));this.ma("hoverend",b.pageX,b.pageY,c)}};
g.k.ra=function(){this.j&&(g.gf&&this.I.removeAttribute("draggable"),this.I.style.touchAction="");gz(this);g.az.prototype.ra.call(this)};iz.prototype.clone=function(){var a=new iz,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];a[b]="object"==naa(c)?g.Gf(c):c}return a};var GGa=["att/get"],vHa=["embedded_player"],b0a=["share/get_web_player_share_panel"],c0a=["feedback"],d0a=["notification/modify_channel_preference"],xRa=["player"],e0a=["browse/edit_playlist"],f0a=["subscription/subscribe"],g0a=["subscription/unsubscribe"],ARa=["next","unplugged/watch_next"];var Qra=[{gJ:function(a){return"Cannot read property '"+a.key+"'"},
RD:{Error:[{Zh:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{Zh:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{Zh:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{Zh:/\uc815\uc758\ub418\uc9c0 \uc54a\uc74c \ub610\ub294 (null|undefined) \ucc38\uc870\uc778 '([^']+)' \uc18d\uc131\uc744 \uac00\uc838\uc62c \uc218 \uc5c6\uc2b5\ub2c8\ub2e4./,
groups:["value","key"]},{Zh:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{Zh:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{Zh:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{gJ:function(a){return"Cannot call '"+a.key+"'"},
RD:{TypeError:[{Zh:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{Zh:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{Zh:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{Zh:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{Zh:/\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f '([^']+)' \u30d7\u30ed\u30d1\u30c6\u30a3\u307e\u305f\u306f\u30e1\u30bd\u30c3\u30c9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u305b\u3093/,groups:["key"]},
{Zh:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{gJ:function(a){return a.key+" is not defined"},
RD:{ReferenceError:[{Zh:/(.*) is not defined/,groups:["key"]},{Zh:/Can't find variable: (.*)/,groups:["key"]}]}}];var Lra={Ko:[],Bp:[{callback:Ira,weight:500}]};var jz;var qz=new g.Bo;var Rra=new Set,Ora=0,Tra=0,Sra=0,Pra=[],Vra=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var Xra=1;rz.prototype.getAsJson=function(){var a={};void 0!==this.j.trackingParams?a.trackingParams=this.j.trackingParams:(a.veType=this.j.veType,void 0!==this.j.veCounter&&(a.veCounter=this.j.veCounter),void 0!==this.j.elementIndex&&(a.elementIndex=this.j.elementIndex));void 0!==this.j.dataElement&&(a.dataElement=this.j.dataElement.getAsJson());void 0!==this.j.youtubeData&&(a.youtubeData=this.j.youtubeData);return a};
rz.prototype.getAsJspb=function(){var a=new bs;void 0!==this.j.trackingParams?a.ji(this.j.trackingParams):(void 0!==this.j.veType&&g.E(a,2,this.j.veType),void 0!==this.j.veCounter&&g.E(a,6,this.j.veCounter),void 0!==this.j.elementIndex&&g.E(a,3,this.j.elementIndex));if(void 0!==this.j.dataElement){var b=this.j.dataElement.getAsJspb();F(a,bs,7,b)}void 0!==this.j.youtubeData&&F(a,Yp,8,this.j.jspbYoutubeData);return a};
rz.prototype.toString=function(){return JSON.stringify(this.getAsJson())};
rz.prototype.isClientVe=function(){return!this.j.trackingParams&&!!this.j.veType};var tz=Date.now().toString();var L3=g.C.ytLoggingDocDocumentNonce_;L3||(L3=g.vz(16),g.Fa("ytLoggingDocDocumentNonce_",L3));var lua=L3;var vDa={fU:0,cga:1,hha:2,LFa:3,Qma:4,d3a:5,jHa:6,hRa:7,kPa:8,yQa:9,0:"DEFAULT",1:"CHAT",2:"CONVERSATIONS",3:"MINIPLAYER",4:"DIALOG",5:"VOZ",6:"MUSIC_WATCH_TABS",7:"SHARE",8:"PUSH_NOTIFICATIONS",9:"RICH_GRID_WATCH"};g.Fa("yt_logging_screen.getRootVeType",$ra);g.Fa("yt_logging_screen.getCurrentCsn",g.zz);g.Fa("yt_logging_screen.getCttAuthInfo",Az);g.Fa("yt_logging_screen.setCurrentScreen",mua);g.v(Bz,Fw);var xua=new Gw("screen-created",Bz),Fz=[],vua=Bua,Gz=0;var pDa={Hfa:3611,t6:27686,v6:85013,k7:23462,p7:157557,q7:42016,r7:62407,s7:26926,o7:43781,u7:51236,v7:79148,w7:50160,x7:77504,F$:153587,hba:87907,jba:18630,Dca:54445,Tca:80935,Vca:152172,tda:105675,uda:150723,vda:37521,wda:147285,xda:47786,Hda:98349,Lda:123695,Xda:6827,fea:29434,Uea:7282,Vea:124448,yga:32276,xga:76278,Fga:147868,Gga:147869,Lga:93911,Oga:106531,Pga:27259,Qga:27262,Rga:27263,iha:21759,jha:27107,lha:62936,nha:49568,Fha:38408,Gha:80637,Hha:68727,Iha:68728,Jha:80353,Kha:80356,Lha:74610,
Mha:45707,Nha:83962,Oha:83970,Pha:46713,Qha:89711,Rha:74612,Sha:155792,Tha:93265,Uha:74611,Vha:131380,Xha:128979,Yha:139311,Zha:128978,Wha:131391,aia:105350,cia:139312,dia:134800,bia:131392,fia:113533,gia:93252,hia:99357,jia:94521,kia:114252,lia:113532,mia:94522,iia:94583,oia:88E3,pia:139580,qia:93253,ria:93254,sia:94387,tia:94388,uia:93255,via:97424,eia:72502,wia:110111,xia:76019,zia:117092,Aia:117093,yia:89431,Bia:110466,Cia:77240,Dia:60508,Eia:148123,Fia:148124,Gia:137401,Hia:137402,Iia:137046,
Jia:73393,Kia:113534,Lia:92098,Mia:131381,Nia:84517,Oia:83759,Pia:80357,Qia:86113,Ria:72598,Sia:72733,Tia:107349,Uia:124275,Via:118203,Wia:133275,Xia:160157,Yia:152569,Zia:156651,aja:133274,bja:160159,cja:160158,dja:133272,eja:133273,fja:133276,gja:144507,hja:143247,ija:156652,jja:143248,kja:143249,lja:143250,mja:143251,nja:156653,oja:144401,qja:117431,pja:133797,rja:153964,sja:128572,tja:133405,uja:117429,vja:117430,wja:117432,xja:120080,yja:117259,zja:156655,Aja:156654,Bja:121692,Cja:145656,Dja:156656,
Eja:145655,Fja:145653,Gja:145654,Hja:145657,Ija:132972,Jja:133051,Kja:133658,Lja:132971,Mja:97615,Oja:143359,Nja:143356,Qja:143361,Pja:143358,Sja:143360,Rja:143357,Tja:142303,Uja:143353,Vja:143354,Wja:144479,Xja:143355,Yja:31402,aka:133624,bka:146477,cka:133623,dka:133622,Zja:133621,fka:84774,gka:95117,hka:150497,ika:98930,jka:98931,kka:98932,lka:153320,mka:153321,nka:43347,oka:129889,pka:149123,qka:45474,rka:100352,ska:84758,tka:98443,uka:117985,vka:74613,wka:155911,xka:74614,yka:64502,zka:136032,
Aka:74615,Bka:74616,Cka:122224,Dka:74617,Eka:77820,Fka:74618,Gka:93278,Hka:93274,Ika:93275,Jka:93276,Kka:22110,Lka:29433,Rla:133798,Vla:132295,ama:120541,Rma:82047,Sma:113550,Tma:75836,Uma:75837,ana:42352,kna:84512,lna:76065,nna:75989,Una:16623,Vna:32594,Wna:27240,doa:32633,zra:74858,Ora:156999,Qra:3945,Pra:16989,Rra:45520,Sra:25488,Tra:25492,Ura:25494,tta:55760,uta:14057,vta:18451,xta:57204,yta:57203,zta:17897,Ata:57205,Bta:18198,Cta:17898,Dta:17909,Eta:43980,Hta:46220,Xta:11721,Zta:147994,yua:49954,
Dua:96369,Eua:3854,rva:151633,Eva:56251,tU:159108,Pva:25624,Qva:152036,rwa:16906,swa:99999,uwa:68172,vwa:27068,uxa:47973,xxa:72773,yxa:26970,zxa:26971,Axa:96805,Bxa:17752,Lxa:73233,Qxa:109512,Rxa:22256,Sxa:14115,Txa:22696,Uxa:89278,Vxa:89277,Wxa:109513,Xxa:43278,Yxa:43459,Zxa:43464,aya:89279,bya:43717,cya:55764,dya:22255,eya:147912,fya:89281,gya:40963,hya:43277,iya:43442,pya:91824,sya:120137,CBa:96367,DBa:36850,EBa:72694,FBa:37414,GBa:36851,KBa:124863,JBa:121343,NBa:73491,PBa:54473,QBa:43375,aCa:46674,
xCa:143815,yCa:139095,zCa:144402,ACa:149968,BCa:149969,NCa:32473,TCa:72901,UCa:72906,VCa:50947,WCa:50612,XCa:50613,YCa:50942,ZCa:84938,aDa:84943,bDa:84939,cDa:84941,dDa:84944,eDa:84940,fDa:84942,gDa:35585,hDa:51926,iDa:79983,jDa:63238,kDa:18921,lDa:63241,mDa:57893,nDa:41182,oDa:135732,pDa:33424,qDa:22207,rDa:42993,sDa:36229,tDa:22206,uDa:22205,vDa:18993,wDa:19001,xDa:18990,yDa:18991,zDa:18997,ADa:18725,BDa:19003,CDa:36874,DDa:44763,EDa:33427,FDa:67793,GDa:22182,HDa:37091,IDa:34650,JDa:50617,KDa:47261,
LDa:22287,MDa:25144,NDa:97917,PDa:62397,QDa:150871,RDa:150874,SDa:125598,TDa:137935,XDa:36961,YDa:108035,ZDa:27426,QEa:27857,REa:27846,SEa:27854,TEa:69692,UEa:61411,ZEa:39299,aFa:38696,bFa:62520,cFa:36382,dFa:108701,eFa:50663,fFa:36387,gFa:14908,hFa:37533,iFa:105443,jFa:61635,kFa:62274,lFa:133818,mFa:65702,nFa:65703,oFa:65701,pFa:76256,EFa:37671,FFa:49953,PFa:36216,QFa:28237,RFa:39553,SFa:29222,TFa:26107,UFa:38050,VFa:26108,XFa:120745,WFa:26109,YFa:26110,ZFa:66881,aGa:28236,bGa:14586,pGa:57929,sGa:74723,
tGa:44098,AGa:44099,EGa:23528,FGa:61699,CGa:134104,DGa:134103,GGa:59149,IGa:101951,JGa:97346,MGa:118051,NGa:95102,OGa:64882,PGa:119505,QGa:63595,TGa:63349,UGa:95101,VGa:75240,WGa:27039,YGa:68823,ZGa:21537,aHa:83464,bHa:75707,gHa:83113,hHa:101952,iHa:101953,kHa:79610,PHa:125755,QHa:24402,RHa:24400,SHa:32925,cIa:57173,XHa:156421,FIa:122502,HIa:145268,IIa:138480,NIa:64423,OIa:64424,LJa:33986,RJa:100828,SJa:129089,kKa:21409,ULa:135155,WLa:135156,ZLa:135157,aMa:135158,bMa:158225,cMa:135159,dMa:135160,
eMa:135161,mMa:135162,nMa:135163,lMa:158226,oMa:158227,pMa:135164,qMa:135165,rMa:135166,RLa:11070,SLa:11074,TLa:17880,sMa:14001,PMa:30709,QMa:30707,RMa:30711,SMa:30710,TMa:30708,OMa:26984,UMa:146143,VMa:63648,WMa:63649,fNa:51879,ENa:111059,INa:5754,MNa:20445,WNa:151308,XNa:151152,kOa:130975,jOa:130976,COa:110386,IOa:113746,dPa:66557,lPa:17310,mPa:28631,qPa:21589,DPa:154946,EPa:68012,FPa:60480,GPa:138664,HPa:141121,IPa:31571,JPa:141978,OPa:150105,PPa:150106,QPa:150107,RPa:150108,UPa:76980,YPa:41577,
ZPa:45469,DQa:38669,EQa:13768,FQa:13777,OQa:141842,PQa:62985,QQa:4724,RQa:59369,SQa:43927,TQa:43928,dRa:12924,gRa:100355,lRa:56219,mRa:27669,nRa:10337,kRa:47896,rRa:122629,ARa:139723,zRa:139722,BRa:121258,CRa:107598,DRa:127991,ERa:96639,FRa:107536,GRa:130169,HRa:96661,IRa:145188,JRa:96658,KRa:116646,LRa:159428,MRa:121122,NRa:96660,ORa:127738,PRa:127083,QRa:155281,RRa:147842,mSa:104443,nSa:96659,oSa:147595,pSa:106442,tSa:134840,ySa:63667,zSa:63668,ASa:63669,BSa:130686,NUa:147036,ZUa:78314,aVa:147799,
kVa:148649,dWa:55761,eWa:127098,fWa:134841,gXa:96368,lXa:67374,vXa:48992,PXa:146176,UXa:49956,bYa:31961,cYa:26388,jYa:23811,kYa:5E4,vYa:126250,ZYa:96370,v_a:47355,w_a:47356,Y0a:37935,b1a:45521,d1a:21760,j1a:83769,m1a:49977,n1a:49974,o1a:93497,p1a:93498,q1a:34325,s1a:140759,t1a:115803,u1a:123707,v1a:100081,w1a:35309,x1a:68314,y1a:25602,z1a:100339,A1a:143516,N1a:59018,O1a:18248,P1a:50625,Q1a:9729,R1a:37168,S1a:37169,T1a:21667,U1a:16749,V1a:18635,W1a:39305,X1a:18046,o2a:53969,p2a:8213,H2a:93926,Y2a:102852,
Z2a:110099,a3a:22678,b3a:69076,c3a:137575,e3a:139224,f3a:100856,i3a:154430,j3a:17736,k3a:3832,o3a:147111,r3a:55759,s3a:64031,X3a:93044,Z3a:93045,j4a:34388,F4a:17657,G4a:17655,H4a:39579,I4a:39578,J4a:77448,K4a:8196,L4a:11357,M4a:69877,N4a:8197,O4a:156512,P4a:156509,R4a:82039};Kz.prototype.J=function(){};
Kz.prototype.clear=function(){this.u.clear();this.j.clear();this.B.clear()};
Ha(Kz);var Mz;g.Lz=Zf(function(){var a=new Io;return a.isAvailable()?new g.Fo(a):null});
Mz=Zf(function(){var a=new Nka;return a.isAvailable()?new g.Fo(a):null});var Eua=/\.vflset|-vfl[a-zA-Z0-9_+=-]+/,Fua=/-[a-zA-Z]{2,3}_[a-zA-Z]{2,3}(?=(\/|$))/,Iua={};g.v(Wz,g.J);var Qua=!1;g.v(dA,g.J);dA.prototype.pI=function(){var a=this.j().YH("SLOT_TYPE_PLAYER_BYTES",1),b=this.Ua.get().Sf(1).clientPlaybackNonce,c=!1;a=g.r(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e="SLOT_TYPE_PLAYER_BYTES"===d.slotType&&d.Pb instanceof $z?d.Pb.bp:void 0;e&&e===b&&(c&&cA("More than 1 preroll playerBytes slot detected",d),c=!0)}return c};
dA.prototype.Si=function(a,b,c,d,e,f){var h=this,l=this.Ua.get().Sf(1);l.Or?this.Ga.get().ls():(Xz(this.Ub.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return Oua(h.Md.get(),d,e,a,b,f,l,"")}),SXa(this.uG),o0(this.Ha.get(),"fetch_bid_for_dclk_status")&&bA("video loaded"))};
dA.prototype.Cl=function(){};var M3={},pA=(M3.AD_MARKER="ytp-ad-progress",M3.CHAPTER_MARKER="ytp-chapter-marker",M3.TIME_MARKER="ytp-time-marker",M3);var CSa=RegExp("^https?://([^.]*\\.moatads\\.com/|e[0-9]+\\.yt\\.srs\\.doubleverify\\.com|pagead2\\.googlesyndication\\.com/pagead/gen_204\\?id=yt3p&sr=1&|pm\\.adsafeprotected\\.com/youtube|pm\\.test-adsafeprotected\\.com/youtube|youtube[0-9]+\\.moatpixel\\.com/)"),Tua=RegExp("^http://0\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.l2gfe\\.[a-z0-9_]+\\.([a-z]{2}|i)\\.borg\\.google\\.com(:[0-9]+)?/|^https://([a-z]+\\.)?[0-9a-f]{1,63}\\.sslproxy\\.corp\\.google\\.com/|^https://([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.demos\\.corp\\.google\\.com/|^https://[0-9a-f]{1,63}\\.proxy\\.googleprod\\.com/|^https?://((?:uytfe\\.corp|dev-uytfe\\.corp|uytfe\\.sandbox)\\.google\\.com/|([-\\w]*www[-\\w]*\\.|[-\\w]*web[-\\w]*\\.|[-\\w]*canary[-\\w]*\\.|[-\\w]*dev[-\\w]*\\.|[-\\w]{1,3}\\.)+(corp\\.)?youtube(-nocookie|kids|education)?\\.com/|([A-Za-z0-9-]{1,63}\\.)*(youtube\\.googleapis\\.com)[.]?(:[0-9]+)?/|([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.([a-z]{3}|i)\\.corp\\.google\\.com(:[0-9]+)?/|([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.c\\.googlers\\.com(:[0-9]+)?/|(docs|drive)\\.google\\.com/(a/[^/\\\\%]+/|)|(music|music-green-qa|music-release-qa)\\.youtube\\.com/|(tv|tv-green-qa|tv-release-qa)\\.youtube\\.com/|[A-Za-z0-9-]+\\.prod\\.google\\.com(:[0-9]+)?/|m?web-ppg\\.corp\\.google\\.com/)"),
DSa=RegExp("^https?://(www\\.google\\.com/pagead/xsul|www\\.youtube\\.com/pagead/slav)"),$ua=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|docs\\.google\\.com|drive\\.google\\.com|prod\\.google\\.com|currents\\.google\\.com|mail\\.google\\.com|youtube\\.com|youtubeeducation\\.com|youtube\\-nocookie\\.com|youtubekids\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$))"),
Yua=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|prod\\.google\\.com|youtube\\.com|youtubekids\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$))"),Vua=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z])?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(([1-4]\\.bp\\.blogspot)|(bp[0-3]\\.blogger))|(ccp-lh\\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\\.(ggpht|googleusercontent))|(gm[1-4]\\.ggpht)|(play-(ti-)?lh\\.googleusercontent)|(gz0\\.googleusercontent)|(((yt[3-4])|(sp[1-3]))\\.(ggpht|googleusercontent)))\\.com)|(dp[3-6]\\.googleusercontent\\.cn)|(dp4\\.googleusercontent\\.com)|(photos\\-image\\-(dev|qa)(-auth)?\\.corp\\.google\\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\\.sandbox\\.google\\.com\\/image)|(image\\-(dev|qa)\\-lighthouse(-auth)?\\.sandbox\\.google\\.com(\\/image)?))\\/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleplex\\.com|play\\.google\\.com|prod\\.google\\.com|currents\\.google\\.com|video\\.google\\.com|youtube\\.com|ytimg\\.com|ytimg\\.sandbox\\.google\\.com|chat\\.google\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|s2\\.googleusercontent\\.com/s2/favicons\\?|yt[3-4]\\.ggpht\\.com/)"),
ESa=RegExp("^https?.*#ocr$|^https?://(aksecure\\.imrworldwide\\.com/|cdn\\.imrworldwide\\.com/|secure\\-..\\.imrworldwide\\.com/)"),Wua=RegExp("^https?://(googleads\\.g\\.doubleclick\\.net/(aclk|pagead/conversion)|www\\.google\\.com/(aclk|pagead/conversion)|www\\.googleadservices\\.com/(aclk|pagead/(aclk|conversion))|www\\.youtube\\.com/pagead/conversion)"),Uua=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z])?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(([1-4]\\.bp\\.blogspot)|(bp[0-3]\\.blogger))|(ccp-lh\\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\\.(ggpht|googleusercontent))|(gm[1-4]\\.ggpht)|(play-(ti-)?lh\\.googleusercontent)|(gz0\\.googleusercontent)|(((yt[3-4])|(sp[1-3]))\\.(ggpht|googleusercontent)))\\.com)|(dp[3-6]\\.googleusercontent\\.cn)|(dp4\\.googleusercontent\\.com)|(photos\\-image\\-(dev|qa)(-auth)?\\.corp\\.google\\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\\.sandbox\\.google\\.com\\/image)|(image\\-(dev|qa)\\-lighthouse(-auth)?\\.sandbox\\.google\\.com(\\/image)?))\\/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleplex\\.com|googlevideo\\.com|prod\\.google\\.com|lh3\\.photos\\.google\\.com|currents\\.google\\.com|mail\\.google\\.com|youtube\\.com|yt\\.akamaized\\.net|chat\\.google\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|([A-Za-z0-9-]{1,63}\\.)*c\\.lh3(-d[a-gz]|-testonly)?\\.(googleusercontent|photos\\.google)\\.com/.*$)"),
lza=RegExp("^https?://(([A-Za-z0-9-]{1,63}\\.)*(imasdk\\.googleapis\\.com|2mdn\\.net|googlesyndication\\.com|corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|googleads\\.g\\.doubleclick\\.net|prod\\.google\\.com|static\\.doubleclick\\.net|static\\.googleadsserving\\.cn|studioapi\\.doubleclick\\.net|youtube\\.com|youtube\\.googleapis\\.com|youtube\\-nocookie\\.com|youtubekids\\.com|ytimg\\.com|ytimg\\.sandbox\\.google\\.com)[.]?(:[0-9]+)?/|lightbox-(demos|builder)\\.appspot\\.com/|s[01](qa)?\\.2mdn\\.net/ads/richmedia/studio/mu/templates/tetris|www\\.gstatic\\.com/doubleclick/studio/innovation/h5/layouts/tetris|www\\.gstatic\\.com/doubleclick/studio/innovation/ytplayer)"),
kza=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)*(crowdsource|datacompute)\\.google\\.com/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https://canvastester-3fd0b\\.appspot\\.com(/|$)|^https://narrative-news-cast-receiver-d\\.appspot\\.com(/|$)|^https://narrative-news-cast-receiver-f\\.appspot\\.com(/|$)|^https://one\\.google\\.com(/|$)|^https://www\\.gstatic\\.com/aog_howto|^https://www\\.gstatic\\.com/narrative_cast_receiver/news|^https?://(([A-Za-z0-9-]{1,63}\\.)*(imasdk\\.googleapis\\.com|corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleads\\.g\\.doubleclick\\.net|googleplex\\.com|play\\.google\\.com|prod\\.google\\.com|photos\\.google\\.com|get\\.google\\.com|currents\\.google\\.com|books\\.googleusercontent\\.com|play\\-books\\-autopush\\-sandbox\\.googleusercontent\\.com|play\\-books\\-canary\\-sandbox\\.googleusercontent\\.com|play\\-books\\-internal\\-sandbox\\.googleusercontent\\.com|play\\-books\\-staging\\-sandbox\\.googleusercontent\\.com|blogger\\.com|mail\\.google\\.com|survey\\.g\\.doubleclick\\.net|youtube\\.com|youtube\\.googleapis\\.com|youtubeeducation\\.com|youtube\\-nocookie\\.com|yt\\-web\\-embedded\\-player\\.appspot\\.com|youtubekids\\.com|vevo\\.com|chat\\.google\\.com|meet\\.google\\.com|stadia\\.google\\.com)[.]?(:[0-9]+)?(/|$)|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|(www\\.|encrypted\\.)?google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/(search|webhp)\\?|(www\\.|encrypted\\.)google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/?$|lightbox-(demos|builder)\\.appspot\\.com/|s0\\.2mdn\\.net/instream/html5/native/|s[01](qa)?\\.2mdn\\.net/ads/richmedia/studio/mu/templates/tetris|www\\.gstatic\\.com/doubleclick/studio/innovation/h5/layouts/tetris)"),
h0a=RegExp("^(https://photos\\.google\\.com|https://get\\.google\\.com|https://currents\\.google\\.com|https://mail\\.google\\.com|https://yt\\-web\\-embedded\\-player\\.appspot\\.com|http://yt\\-web\\-embedded\\-player\\.appspot\\.com|https://chat\\.google\\.com|https://stadia\\.google\\.com|https://one\\.google\\.com)$|^http://[0-9]+\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.([a-z]{2}|i)\\.borg\\.google\\.com(:[0-9]+)?$|^https://((autopush|beta-lookup|daily-[0-6]|manual-qual|preprod|stream)\\.)?meet\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)*(crowdsource|datacompute)\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)*(youtube|youtubekids|youtubeeducation)\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+sandbox\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com$|^https://(books|play-books-(autopush|canary|internal|staging)-sandbox)\\.googleusercontent\\.com$|^https://(draft|www|(www\\.)?dev\\.sandbox|(www\\.)?autopush\\.sandbox|(www\\.)?restore\\.sandbox)\\.blogger\\.com$|^https://[0-9a-f]{1,63}\\.proxy\\.googleprod\\.com$|^https?://(((docs|m|sing|ss|sss|www)\\.)?drive\\.google\\.com$|([A-Za-z0-9-]{1,63}\\.)*c\\.googlers\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*corp\\.google\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*googleplex\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*proxy\\.googlers\\.com(:[0-9]+)?$|(www\\.|encrypted\\.)google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/?$|[A-Za-z0-9-]+\\.prod\\.google\\.com(:[0-9]+)?$|docs\\.google\\.com$)");g.qA.prototype.getId=function(){return this.id};
g.qA.prototype.toString=function(){return"CueRange{"+this.namespace+":"+this.id+"}["+dva(this.start)+", "+dva(this.end)+"]"};
g.qA.prototype.contains=function(a,b){return a>=this.start&&(a<this.end||a===this.end&&this.start===this.end)&&(null==b||a<b&&b<=this.end)};
var cva=1;g.qA.prototype.getId=g.qA.prototype.getId;g.v(uA,g.qA);uA.prototype.deactivate=function(){this.B=!0};
uA.prototype.Lv=function(){return this.end-this.start};var i0a;var j0a=g.nb(),k0a=j0a.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!k0a||2>k0a.length)i0a=void 0;else{var l0a=j0a.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);i0a=l0a&&6==l0a.length?Number(l0a[5].replace("_",".")):0}var wI=i0a,VO=0<=wI;VO&&0<=g.nb().search("Safari")&&g.nb().search("Version");g.v(zA,Xa);g.v(AA,Fw);g.v(iva,Fw);var pva=new Gw("aft-recorded",AA),m0a=new Gw("timing-sent",iva);var N3=window,CA=N3.performance||N3.mozPerformance||N3.msPerformance||N3.webkitPerformance||new jva;var ova=!1,nB={'script[name="scheduler/scheduler"]':"sj",'script[name="player/base"]':"pj",'link[rel="stylesheet"][name="www-player"]':"pc",'link[rel="stylesheet"][name="player/www-player"]':"pc",'script[name="desktop_polymer/desktop_polymer"]':"dpj",'link[rel="import"][name="desktop_polymer"]':"dph",'script[name="mobile-c3"]':"mcj",'link[rel="stylesheet"][name="mobile-c3"]':"mcc",'script[name="player-plasma-ias-phone/base"]':"mcppj",'script[name="player-plasma-ias-tablet/base"]':"mcptj",'link[rel="stylesheet"][name="mobile-polymer-player-ias"]':"mcpc",
'link[rel="stylesheet"][name="mobile-polymer-player-svg-ias"]':"mcpsc",'script[name="mobile_blazer_core_mod"]':"mbcj",'link[rel="stylesheet"][name="mobile_blazer_css"]':"mbc",'script[name="mobile_blazer_logged_in_users_mod"]':"mbliuj",'script[name="mobile_blazer_logged_out_users_mod"]':"mblouj",'script[name="mobile_blazer_noncore_mod"]':"mbnj","#player_css":"mbpc",'script[name="mobile_blazer_desktopplayer_mod"]':"mbpj",'link[rel="stylesheet"][name="mobile_blazer_tablet_css"]':"mbtc",'script[name="mobile_blazer_watch_mod"]':"mbwj"},
Bva=(0,g.Pa)(CA.clearResourceTimings||CA.webkitClearResourceTimings||CA.mozClearResourceTimings||CA.msClearResourceTimings||CA.oClearResourceTimings||g.Yf,CA);var O3={},vva=(O3.auto_search="LATENCY_ACTION_AUTO_SEARCH",O3.ad_to_ad="LATENCY_ACTION_AD_TO_AD",O3.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",O3["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",O3.app_startup="LATENCY_ACTION_APP_STARTUP",O3["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",O3["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",O3["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",O3["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",
O3.browse="LATENCY_ACTION_BROWSE",O3.cast_splash="LATENCY_ACTION_CAST_SPLASH",O3.channels="LATENCY_ACTION_CHANNELS",O3.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",O3["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",O3["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",O3["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",O3["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",O3["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",
O3["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",O3["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",O3["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",O3["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",O3["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",O3["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",O3["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",O3["channel.live_streaming"]=
"LATENCY_ACTION_CREATOR_LIVE_STREAMING",O3.chips="LATENCY_ACTION_CHIPS",O3["dialog.copyright_strikes"]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",O3["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",O3["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",O3.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",O3.embed="LATENCY_ACTION_EMBED",O3.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",O3.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",
O3.explore="LATENCY_ACTION_EXPLORE",O3.home="LATENCY_ACTION_HOME",O3.library="LATENCY_ACTION_LIBRARY",O3.live="LATENCY_ACTION_LIVE",O3.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",O3.onboarding="LATENCY_ACTION_ONBOARDING",O3.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",O3.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",O3.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",O3.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",O3["post.comments"]=
"LATENCY_ACTION_CREATOR_POST_COMMENTS",O3["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",O3.prebuffer="LATENCY_ACTION_PREBUFFER",O3.prefetch="LATENCY_ACTION_PREFETCH",O3.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",O3.profile_switcher="LATENCY_ACTION_LOGIN",O3.reel_watch="LATENCY_ACTION_REEL_WATCH",O3.results="LATENCY_ACTION_RESULTS",O3["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",O3.search_ui="LATENCY_ACTION_SEARCH_UI",O3.search_suggest="LATENCY_ACTION_SUGGEST",O3.search_zero_state=
"LATENCY_ACTION_SEARCH_ZERO_STATE",O3.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",O3.seek="LATENCY_ACTION_PLAYER_SEEK",O3.settings="LATENCY_ACTION_SETTINGS",O3.store="LATENCY_ACTION_STORE",O3.tenx="LATENCY_ACTION_TENX",O3.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",O3.watch="LATENCY_ACTION_WATCH",O3.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",O3["watch,watch7"]="LATENCY_ACTION_WATCH",O3["watch,watch7_html5"]="LATENCY_ACTION_WATCH",O3["watch,watch7ad"]="LATENCY_ACTION_WATCH",O3["watch,watch7ad_html5"]=
"LATENCY_ACTION_WATCH",O3.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",O3.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",O3["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",O3["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",O3["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",O3["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",O3["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC",O3["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",O3["video.live_streaming"]=
"LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",O3["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",O3["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",O3.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",O3.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",O3.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",O3),P3={},wva=(P3.ad_allowed="adTypesAllowed",P3.yt_abt="adBreakType",P3.ad_cpn="adClientPlaybackNonce",P3.ad_docid="adVideoId",
P3.yt_ad_an="adNetworks",P3.ad_at="adType",P3.aida="appInstallDataAgeMs",P3.browse_id="browseId",P3.p="httpProtocol",P3.t="transportProtocol",P3.cs="commandSource",P3.cpn="clientPlaybackNonce",P3.ccs="creatorInfo.creatorCanaryState",P3.ctop="creatorInfo.topEntityType",P3.csn="clientScreenNonce",P3.docid="videoId",P3.GetHome_rid="requestIds",P3.GetSearch_rid="requestIds",P3.GetPlayer_rid="requestIds",P3.GetWatchNext_rid="requestIds",P3.GetBrowse_rid="requestIds",P3.GetLibrary_rid="requestIds",P3.is_continuation=
"isContinuation",P3.is_nav="isNavigation",P3.b_p="kabukiInfo.browseParams",P3.is_prefetch="kabukiInfo.isPrefetch",P3.is_secondary_nav="kabukiInfo.isSecondaryNav",P3.nav_type="kabukiInfo.navigationType",P3.prev_browse_id="kabukiInfo.prevBrowseId",P3.query_source="kabukiInfo.querySource",P3.voz_type="kabukiInfo.vozType",P3.yt_lt="loadType",P3.mver="creatorInfo.measurementVersion",P3.yt_ad="isMonetized",P3.nr="webInfo.navigationReason",P3.nrsu="navigationRequestedSameUrl",P3.pnt="performanceNavigationTiming",
P3.prt="playbackRequiresTap",P3.plt="playerInfo.playbackType",P3.pis="playerInfo.playerInitializedState",P3.paused="playerInfo.isPausedOnLoad",P3.yt_pt="playerType",P3.fmt="playerInfo.itag",P3.yt_pl="watchInfo.isPlaylist",P3.yt_pre="playerInfo.preloadType",P3.yt_ad_pr="prerollAllowed",P3.pa="previousAction",P3.yt_red="isRedSubscriber",P3.rce="mwebInfo.responseContentEncoding",P3.rc="resourceInfo.resourceCache",P3.scrh="screenHeight",P3.scrw="screenWidth",P3.st="serverTimeMs",P3.ssdm="shellStartupDurationMs",
P3.br_trs="tvInfo.bedrockTriggerState",P3.kebqat="kabukiInfo.earlyBrowseRequestInfo.abandonmentType",P3.kebqa="kabukiInfo.earlyBrowseRequestInfo.adopted",P3.label="tvInfo.label",P3.is_mdx="tvInfo.isMdx",P3.preloaded="tvInfo.isPreloaded",P3.aac_type="tvInfo.authAccessCredentialType",P3.upg_player_vis="playerInfo.visibilityState",P3.query="unpluggedInfo.query",P3.upg_chip_ids_string="unpluggedInfo.upgChipIdsString",P3.yt_vst="videoStreamType",P3.vph="viewportHeight",P3.vpw="viewportWidth",P3.yt_vis=
"isVisible",P3.rcl="mwebInfo.responseContentLength",P3.GetSettings_rid="requestIds",P3.GetTrending_rid="requestIds",P3.GetMusicSearchSuggestions_rid="requestIds",P3.REQUEST_ID="requestIds",P3),xva="isContinuation isNavigation kabukiInfo.earlyBrowseRequestInfo.adopted kabukiInfo.isPrefetch kabukiInfo.isSecondaryNav isMonetized navigationRequestedSameUrl performanceNavigationTiming playerInfo.isPausedOnLoad prerollAllowed isRedSubscriber tvInfo.isMdx tvInfo.isPreloaded isVisible watchInfo.isPlaylist playbackRequiresTap".split(" "),
Q3={},yva=(Q3.ccs="CANARY_STATE_",Q3.mver="MEASUREMENT_VERSION_",Q3.pis="PLAYER_INITIALIZED_STATE_",Q3.yt_pt="LATENCY_PLAYER_",Q3.pa="LATENCY_ACTION_",Q3.ctop="TOP_ENTITY_TYPE_",Q3.yt_vst="VIDEO_STREAM_TYPE_",Q3),zva="all_vc ap aq c cbr cbrand cbrver cmodel cos cosver cplatform ctheme cver ei l_an l_mm plid srt yt_fss yt_li vpst vpni2 vpil2 icrc icrt pa GetAccountOverview_rid GetHistory_rid cmt d_vpct d_vpnfi d_vpni nsru pc pfa pfeh pftr pnc prerender psc rc start tcrt tcrc ssr vpr vps yt_abt yt_fn yt_fs yt_pft yt_pre yt_pt yt_pvis ytu_pvis yt_ref yt_sts tds".split(" ");var U={LATENCY_ACTION_SHORTS_VIDEO_INGESTION_TRANSCODING:179,LATENCY_ACTION_KIDS_PROFILE_SWITCHER:90,LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER:100,LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC:46,LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR:37,LATENCY_ACTION_SPINNER_DISPLAYED:14,LATENCY_ACTION_PLAYABILITY_CHECK:10,LATENCY_ACTION_PROCESS:9,LATENCY_ACTION_APP_STARTUP:5,LATENCY_ACTION_COMMERCE_TRANSACTION:184,LATENCY_ACTION_LOG_PAYMENT_SERVER_ANALYTICS_RPC:173,LATENCY_ACTION_GET_PAYMENT_INSTRUMENTS_PARAMS_RPC:172,
LATENCY_ACTION_GET_FIX_INSTRUMENT_PARAMS_RPC:171,LATENCY_ACTION_RESUME_SUBSCRIPTION_RPC:170,LATENCY_ACTION_PAUSE_SUBSCRIPTION_RPC:169,LATENCY_ACTION_GET_OFFLINE_UPSELL_RPC:168,LATENCY_ACTION_GET_OFFERS_RPC:167,LATENCY_ACTION_GET_CANCELLATION_YT_FLOW_RPC:166,LATENCY_ACTION_GET_CANCELLATION_FLOW_RPC:165,LATENCY_ACTION_UPDATE_CROSS_DEVICE_OFFLINE_STATE_RPC:164,LATENCY_ACTION_GET_OFFER_DETAILS_RPC:163,LATENCY_ACTION_CANCEL_RECURRENCE_TRANSACTION_RPC:162,LATENCY_ACTION_GET_TIP_MODULE_RPC:161,LATENCY_ACTION_HANDLE_TRANSACTION_RPC:160,
LATENCY_ACTION_COMPLETE_TRANSACTION_RPC:159,LATENCY_ACTION_GET_CART_RPC:158,LATENCY_ACTION_THUMBNAIL_FETCH:156,LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK:154,LATENCY_ACTION_SHARE_VIDEO:153,LATENCY_ACTION_AD_TO_VIDEO_INT:152,LATENCY_ACTION_ABANDONED_BROWSE:151,LATENCY_ACTION_PLAYER_ROTATION:150,LATENCY_ACTION_GENERIC_WEB_VIEW:183,LATENCY_ACTION_SHOPPING_IN_APP:124,LATENCY_ACTION_PLAYER_ATTESTATION:121,LATENCY_ACTION_PLAYER_SEEK:119,LATENCY_ACTION_SUPER_STICKER_BUY_FLOW:114,LATENCY_ACTION_DOWNLOADS_DATA_ACCESS:180,
LATENCY_ACTION_BLOCKS_PERFORMANCE:148,LATENCY_ACTION_ASSISTANT_QUERY:138,LATENCY_ACTION_ASSISTANT_SETTINGS:137,LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF:129,LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF:128,LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE:127,LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION:123,LATENCY_ACTION_NETWORKLESS_PERFORMANCE:122,LATENCY_ACTION_DOWNLOADS_EXPANSION:133,LATENCY_ACTION_ENTITY_TRANSFORM:131,LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER:96,LATENCY_ACTION_EMBEDS_SET_VIDEO:95,
LATENCY_ACTION_SETTINGS:93,LATENCY_ACTION_ABANDONED_STARTUP:81,LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY:80,LATENCY_ACTION_MEDIA_BROWSER_SEARCH:79,LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE:78,LATENCY_ACTION_WHO_IS_WATCHING:77,LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH:76,LATENCY_ACTION_LITE_SWITCH_ACCOUNT:73,LATENCY_ACTION_ELEMENTS_PERFORMANCE:70,LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION:69,LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION:65,LATENCY_ACTION_OFFLINE_STORE_START:61,LATENCY_ACTION_REEL_EDITOR:58,
LATENCY_ACTION_CHANNEL_SUBSCRIBE:56,LATENCY_ACTION_CHANNEL_PREVIEW:55,LATENCY_ACTION_PREFETCH:52,LATENCY_ACTION_ABANDONED_WATCH:45,LATENCY_ACTION_LOAD_COMMENT_REPLIES:26,LATENCY_ACTION_LOAD_COMMENTS:25,LATENCY_ACTION_EDIT_COMMENT:24,LATENCY_ACTION_NEW_COMMENT:23,LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING:19,LATENCY_ACTION_EMBED:18,LATENCY_ACTION_MDX_LAUNCH:15,LATENCY_ACTION_RESOLVE_URL:13,LATENCY_ACTION_CAST_SPLASH:149,LATENCY_ACTION_MDX_STREAM_TRANSFER:178,LATENCY_ACTION_MDX_CAST:120,LATENCY_ACTION_MDX_COMMAND:12,
LATENCY_ACTION_REEL_SELECT_SEGMENT:136,LATENCY_ACTION_ACCELERATED_EFFECTS:145,LATENCY_ACTION_EDIT_AUDIO_GEN:182,LATENCY_ACTION_UPLOAD_AUDIO_MIXER:147,LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING:157,LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING:146,LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK:130,LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD:125,LATENCY_ACTION_SHORTS_VIDEO_INGESTION:155,LATENCY_ACTION_SHORTS_GALLERY:107,LATENCY_ACTION_SHORTS_TRIM:105,LATENCY_ACTION_SHORTS_EDIT:104,LATENCY_ACTION_SHORTS_CAMERA:103,
LATENCY_ACTION_PARENT_TOOLS_DASHBOARD:102,LATENCY_ACTION_PARENT_TOOLS_COLLECTION:101,LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS:116,LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS:115,LATENCY_ACTION_MUSIC_ALBUM_DETAIL:72,LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL:71,LATENCY_ACTION_STORE:175,LATENCY_ACTION_CHIPS:68,LATENCY_ACTION_SEARCH_ZERO_STATE:67,LATENCY_ACTION_LIVE_PAGINATION:117,LATENCY_ACTION_LIVE:20,LATENCY_ACTION_PREBUFFER:40,LATENCY_ACTION_TENX:39,LATENCY_ACTION_KIDS_PROFILE_SETTINGS:94,LATENCY_ACTION_KIDS_WATCH_IT_AGAIN:92,
LATENCY_ACTION_KIDS_SECRET_CODE:91,LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS:89,LATENCY_ACTION_KIDS_ONBOARDING:88,LATENCY_ACTION_KIDS_VOICE_SEARCH:82,LATENCY_ACTION_KIDS_CURATED_COLLECTION:62,LATENCY_ACTION_KIDS_LIBRARY:53,LATENCY_ACTION_CREATOR_PROMOTION_LIST:186,LATENCY_ACTION_CREATOR_PROMOTION_EDIT:185,LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS:38,LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION:74,LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING:141,LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS:142,LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC:51,
LATENCY_ACTION_CREATOR_VIDEO_EDITOR:50,LATENCY_ACTION_CREATOR_VIDEO_EDIT:36,LATENCY_ACTION_CREATOR_VIDEO_COMMENTS:34,LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS:33,LATENCY_ACTION_CREATOR_SONG_ANALYTICS:176,LATENCY_ACTION_CREATOR_POST_LIST:112,LATENCY_ACTION_CREATOR_POST_EDIT:110,LATENCY_ACTION_CREATOR_POST_COMMENTS:111,LATENCY_ACTION_CREATOR_LIVE_STREAMING:108,LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT:174,LATENCY_ACTION_CREATOR_DIALOG_UPLOADS:86,LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES:87,LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS:32,
LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS:48,LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS:139,LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT:177,LATENCY_ACTION_CREATOR_CHANNEL_MUSIC:99,LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION:43,LATENCY_ACTION_CREATOR_CHANNEL_EDITING:113,LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD:49,LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT:44,LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS:66,LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS:31,LATENCY_ACTION_CREATOR_ARTIST_PROFILE:85,LATENCY_ACTION_CREATOR_ARTIST_CONCERTS:84,
LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS:83,LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE:140,LATENCY_ACTION_EXPERIMENTAL_WATCH_UI:181,LATENCY_ACTION_STORYBOARD_THUMBNAILS:118,LATENCY_ACTION_SEARCH_THUMBNAILS:59,LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD:54,LATENCY_ACTION_VOICE_ASSISTANT:47,LATENCY_ACTION_SEARCH_UI:35,LATENCY_ACTION_SUGGEST:30,LATENCY_ACTION_AUTO_SEARCH:126,LATENCY_ACTION_DOWNLOADS:98,LATENCY_ACTION_EXPLORE:75,LATENCY_ACTION_VIDEO_LIST:63,LATENCY_ACTION_HOME_RESUME:60,LATENCY_ACTION_SUBSCRIPTIONS_LIST:57,
LATENCY_ACTION_THUMBNAIL_LOAD:42,LATENCY_ACTION_FIRST_THUMBNAIL_LOAD:29,LATENCY_ACTION_SUBSCRIPTIONS_FEED:109,LATENCY_ACTION_SUBSCRIPTIONS:28,LATENCY_ACTION_TRENDING:27,LATENCY_ACTION_LIBRARY:21,LATENCY_ACTION_VIDEO_THUMBNAIL:8,LATENCY_ACTION_SHOW_MORE:7,LATENCY_ACTION_VIDEO_PREVIEW:6,LATENCY_ACTION_PREBUFFER_VIDEO:144,LATENCY_ACTION_PREFETCH_VIDEO:143,LATENCY_ACTION_DIRECT_PLAYBACK:132,LATENCY_ACTION_REEL_WATCH:41,LATENCY_ACTION_AD_TO_AD:22,LATENCY_ACTION_VIDEO_TO_AD:17,LATENCY_ACTION_AD_TO_VIDEO:16,
LATENCY_ACTION_ONBOARDING:135,LATENCY_ACTION_LOGIN:97,LATENCY_ACTION_BROWSE:11,LATENCY_ACTION_CHANNELS:4,LATENCY_ACTION_WATCH:3,LATENCY_ACTION_RESULTS:2,LATENCY_ACTION_HOME:1,LATENCY_ACTION_STARTUP:106,LATENCY_ACTION_UNKNOWN:0};U[U.LATENCY_ACTION_SHORTS_VIDEO_INGESTION_TRANSCODING]="LATENCY_ACTION_SHORTS_VIDEO_INGESTION_TRANSCODING";U[U.LATENCY_ACTION_KIDS_PROFILE_SWITCHER]="LATENCY_ACTION_KIDS_PROFILE_SWITCHER";U[U.LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER]="LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER";
U[U.LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC";U[U.LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR";U[U.LATENCY_ACTION_SPINNER_DISPLAYED]="LATENCY_ACTION_SPINNER_DISPLAYED";U[U.LATENCY_ACTION_PLAYABILITY_CHECK]="LATENCY_ACTION_PLAYABILITY_CHECK";U[U.LATENCY_ACTION_PROCESS]="LATENCY_ACTION_PROCESS";U[U.LATENCY_ACTION_APP_STARTUP]="LATENCY_ACTION_APP_STARTUP";U[U.LATENCY_ACTION_COMMERCE_TRANSACTION]="LATENCY_ACTION_COMMERCE_TRANSACTION";
U[U.LATENCY_ACTION_LOG_PAYMENT_SERVER_ANALYTICS_RPC]="LATENCY_ACTION_LOG_PAYMENT_SERVER_ANALYTICS_RPC";U[U.LATENCY_ACTION_GET_PAYMENT_INSTRUMENTS_PARAMS_RPC]="LATENCY_ACTION_GET_PAYMENT_INSTRUMENTS_PARAMS_RPC";U[U.LATENCY_ACTION_GET_FIX_INSTRUMENT_PARAMS_RPC]="LATENCY_ACTION_GET_FIX_INSTRUMENT_PARAMS_RPC";U[U.LATENCY_ACTION_RESUME_SUBSCRIPTION_RPC]="LATENCY_ACTION_RESUME_SUBSCRIPTION_RPC";U[U.LATENCY_ACTION_PAUSE_SUBSCRIPTION_RPC]="LATENCY_ACTION_PAUSE_SUBSCRIPTION_RPC";
U[U.LATENCY_ACTION_GET_OFFLINE_UPSELL_RPC]="LATENCY_ACTION_GET_OFFLINE_UPSELL_RPC";U[U.LATENCY_ACTION_GET_OFFERS_RPC]="LATENCY_ACTION_GET_OFFERS_RPC";U[U.LATENCY_ACTION_GET_CANCELLATION_YT_FLOW_RPC]="LATENCY_ACTION_GET_CANCELLATION_YT_FLOW_RPC";U[U.LATENCY_ACTION_GET_CANCELLATION_FLOW_RPC]="LATENCY_ACTION_GET_CANCELLATION_FLOW_RPC";U[U.LATENCY_ACTION_UPDATE_CROSS_DEVICE_OFFLINE_STATE_RPC]="LATENCY_ACTION_UPDATE_CROSS_DEVICE_OFFLINE_STATE_RPC";U[U.LATENCY_ACTION_GET_OFFER_DETAILS_RPC]="LATENCY_ACTION_GET_OFFER_DETAILS_RPC";
U[U.LATENCY_ACTION_CANCEL_RECURRENCE_TRANSACTION_RPC]="LATENCY_ACTION_CANCEL_RECURRENCE_TRANSACTION_RPC";U[U.LATENCY_ACTION_GET_TIP_MODULE_RPC]="LATENCY_ACTION_GET_TIP_MODULE_RPC";U[U.LATENCY_ACTION_HANDLE_TRANSACTION_RPC]="LATENCY_ACTION_HANDLE_TRANSACTION_RPC";U[U.LATENCY_ACTION_COMPLETE_TRANSACTION_RPC]="LATENCY_ACTION_COMPLETE_TRANSACTION_RPC";U[U.LATENCY_ACTION_GET_CART_RPC]="LATENCY_ACTION_GET_CART_RPC";U[U.LATENCY_ACTION_THUMBNAIL_FETCH]="LATENCY_ACTION_THUMBNAIL_FETCH";
U[U.LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK]="LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK";U[U.LATENCY_ACTION_SHARE_VIDEO]="LATENCY_ACTION_SHARE_VIDEO";U[U.LATENCY_ACTION_AD_TO_VIDEO_INT]="LATENCY_ACTION_AD_TO_VIDEO_INT";U[U.LATENCY_ACTION_ABANDONED_BROWSE]="LATENCY_ACTION_ABANDONED_BROWSE";U[U.LATENCY_ACTION_PLAYER_ROTATION]="LATENCY_ACTION_PLAYER_ROTATION";U[U.LATENCY_ACTION_GENERIC_WEB_VIEW]="LATENCY_ACTION_GENERIC_WEB_VIEW";U[U.LATENCY_ACTION_SHOPPING_IN_APP]="LATENCY_ACTION_SHOPPING_IN_APP";
U[U.LATENCY_ACTION_PLAYER_ATTESTATION]="LATENCY_ACTION_PLAYER_ATTESTATION";U[U.LATENCY_ACTION_PLAYER_SEEK]="LATENCY_ACTION_PLAYER_SEEK";U[U.LATENCY_ACTION_SUPER_STICKER_BUY_FLOW]="LATENCY_ACTION_SUPER_STICKER_BUY_FLOW";U[U.LATENCY_ACTION_DOWNLOADS_DATA_ACCESS]="LATENCY_ACTION_DOWNLOADS_DATA_ACCESS";U[U.LATENCY_ACTION_BLOCKS_PERFORMANCE]="LATENCY_ACTION_BLOCKS_PERFORMANCE";U[U.LATENCY_ACTION_ASSISTANT_QUERY]="LATENCY_ACTION_ASSISTANT_QUERY";U[U.LATENCY_ACTION_ASSISTANT_SETTINGS]="LATENCY_ACTION_ASSISTANT_SETTINGS";
U[U.LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF]="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF";U[U.LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF]="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF";U[U.LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE]="LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE";U[U.LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION]="LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION";U[U.LATENCY_ACTION_NETWORKLESS_PERFORMANCE]="LATENCY_ACTION_NETWORKLESS_PERFORMANCE";
U[U.LATENCY_ACTION_DOWNLOADS_EXPANSION]="LATENCY_ACTION_DOWNLOADS_EXPANSION";U[U.LATENCY_ACTION_ENTITY_TRANSFORM]="LATENCY_ACTION_ENTITY_TRANSFORM";U[U.LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER]="LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER";U[U.LATENCY_ACTION_EMBEDS_SET_VIDEO]="LATENCY_ACTION_EMBEDS_SET_VIDEO";U[U.LATENCY_ACTION_SETTINGS]="LATENCY_ACTION_SETTINGS";U[U.LATENCY_ACTION_ABANDONED_STARTUP]="LATENCY_ACTION_ABANDONED_STARTUP";U[U.LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY]="LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY";
U[U.LATENCY_ACTION_MEDIA_BROWSER_SEARCH]="LATENCY_ACTION_MEDIA_BROWSER_SEARCH";U[U.LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE]="LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE";U[U.LATENCY_ACTION_WHO_IS_WATCHING]="LATENCY_ACTION_WHO_IS_WATCHING";U[U.LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH]="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH";U[U.LATENCY_ACTION_LITE_SWITCH_ACCOUNT]="LATENCY_ACTION_LITE_SWITCH_ACCOUNT";U[U.LATENCY_ACTION_ELEMENTS_PERFORMANCE]="LATENCY_ACTION_ELEMENTS_PERFORMANCE";
U[U.LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION]="LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION";U[U.LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION]="LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION";U[U.LATENCY_ACTION_OFFLINE_STORE_START]="LATENCY_ACTION_OFFLINE_STORE_START";U[U.LATENCY_ACTION_REEL_EDITOR]="LATENCY_ACTION_REEL_EDITOR";U[U.LATENCY_ACTION_CHANNEL_SUBSCRIBE]="LATENCY_ACTION_CHANNEL_SUBSCRIBE";U[U.LATENCY_ACTION_CHANNEL_PREVIEW]="LATENCY_ACTION_CHANNEL_PREVIEW";U[U.LATENCY_ACTION_PREFETCH]="LATENCY_ACTION_PREFETCH";
U[U.LATENCY_ACTION_ABANDONED_WATCH]="LATENCY_ACTION_ABANDONED_WATCH";U[U.LATENCY_ACTION_LOAD_COMMENT_REPLIES]="LATENCY_ACTION_LOAD_COMMENT_REPLIES";U[U.LATENCY_ACTION_LOAD_COMMENTS]="LATENCY_ACTION_LOAD_COMMENTS";U[U.LATENCY_ACTION_EDIT_COMMENT]="LATENCY_ACTION_EDIT_COMMENT";U[U.LATENCY_ACTION_NEW_COMMENT]="LATENCY_ACTION_NEW_COMMENT";U[U.LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING]="LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING";U[U.LATENCY_ACTION_EMBED]="LATENCY_ACTION_EMBED";
U[U.LATENCY_ACTION_MDX_LAUNCH]="LATENCY_ACTION_MDX_LAUNCH";U[U.LATENCY_ACTION_RESOLVE_URL]="LATENCY_ACTION_RESOLVE_URL";U[U.LATENCY_ACTION_CAST_SPLASH]="LATENCY_ACTION_CAST_SPLASH";U[U.LATENCY_ACTION_MDX_STREAM_TRANSFER]="LATENCY_ACTION_MDX_STREAM_TRANSFER";U[U.LATENCY_ACTION_MDX_CAST]="LATENCY_ACTION_MDX_CAST";U[U.LATENCY_ACTION_MDX_COMMAND]="LATENCY_ACTION_MDX_COMMAND";U[U.LATENCY_ACTION_REEL_SELECT_SEGMENT]="LATENCY_ACTION_REEL_SELECT_SEGMENT";U[U.LATENCY_ACTION_ACCELERATED_EFFECTS]="LATENCY_ACTION_ACCELERATED_EFFECTS";
U[U.LATENCY_ACTION_EDIT_AUDIO_GEN]="LATENCY_ACTION_EDIT_AUDIO_GEN";U[U.LATENCY_ACTION_UPLOAD_AUDIO_MIXER]="LATENCY_ACTION_UPLOAD_AUDIO_MIXER";U[U.LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING]="LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING";U[U.LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING]="LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING";U[U.LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK]="LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK";U[U.LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD]="LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD";
U[U.LATENCY_ACTION_SHORTS_VIDEO_INGESTION]="LATENCY_ACTION_SHORTS_VIDEO_INGESTION";U[U.LATENCY_ACTION_SHORTS_GALLERY]="LATENCY_ACTION_SHORTS_GALLERY";U[U.LATENCY_ACTION_SHORTS_TRIM]="LATENCY_ACTION_SHORTS_TRIM";U[U.LATENCY_ACTION_SHORTS_EDIT]="LATENCY_ACTION_SHORTS_EDIT";U[U.LATENCY_ACTION_SHORTS_CAMERA]="LATENCY_ACTION_SHORTS_CAMERA";U[U.LATENCY_ACTION_PARENT_TOOLS_DASHBOARD]="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD";U[U.LATENCY_ACTION_PARENT_TOOLS_COLLECTION]="LATENCY_ACTION_PARENT_TOOLS_COLLECTION";
U[U.LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS]="LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS";U[U.LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS]="LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS";U[U.LATENCY_ACTION_MUSIC_ALBUM_DETAIL]="LATENCY_ACTION_MUSIC_ALBUM_DETAIL";U[U.LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL]="LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL";U[U.LATENCY_ACTION_STORE]="LATENCY_ACTION_STORE";U[U.LATENCY_ACTION_CHIPS]="LATENCY_ACTION_CHIPS";U[U.LATENCY_ACTION_SEARCH_ZERO_STATE]="LATENCY_ACTION_SEARCH_ZERO_STATE";
U[U.LATENCY_ACTION_LIVE_PAGINATION]="LATENCY_ACTION_LIVE_PAGINATION";U[U.LATENCY_ACTION_LIVE]="LATENCY_ACTION_LIVE";U[U.LATENCY_ACTION_PREBUFFER]="LATENCY_ACTION_PREBUFFER";U[U.LATENCY_ACTION_TENX]="LATENCY_ACTION_TENX";U[U.LATENCY_ACTION_KIDS_PROFILE_SETTINGS]="LATENCY_ACTION_KIDS_PROFILE_SETTINGS";U[U.LATENCY_ACTION_KIDS_WATCH_IT_AGAIN]="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN";U[U.LATENCY_ACTION_KIDS_SECRET_CODE]="LATENCY_ACTION_KIDS_SECRET_CODE";U[U.LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS]="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS";
U[U.LATENCY_ACTION_KIDS_ONBOARDING]="LATENCY_ACTION_KIDS_ONBOARDING";U[U.LATENCY_ACTION_KIDS_VOICE_SEARCH]="LATENCY_ACTION_KIDS_VOICE_SEARCH";U[U.LATENCY_ACTION_KIDS_CURATED_COLLECTION]="LATENCY_ACTION_KIDS_CURATED_COLLECTION";U[U.LATENCY_ACTION_KIDS_LIBRARY]="LATENCY_ACTION_KIDS_LIBRARY";U[U.LATENCY_ACTION_CREATOR_PROMOTION_LIST]="LATENCY_ACTION_CREATOR_PROMOTION_LIST";U[U.LATENCY_ACTION_CREATOR_PROMOTION_EDIT]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT";
U[U.LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS";U[U.LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION";U[U.LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING";U[U.LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS";U[U.LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC";
U[U.LATENCY_ACTION_CREATOR_VIDEO_EDITOR]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR";U[U.LATENCY_ACTION_CREATOR_VIDEO_EDIT]="LATENCY_ACTION_CREATOR_VIDEO_EDIT";U[U.LATENCY_ACTION_CREATOR_VIDEO_COMMENTS]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS";U[U.LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS";U[U.LATENCY_ACTION_CREATOR_SONG_ANALYTICS]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS";U[U.LATENCY_ACTION_CREATOR_POST_LIST]="LATENCY_ACTION_CREATOR_POST_LIST";
U[U.LATENCY_ACTION_CREATOR_POST_EDIT]="LATENCY_ACTION_CREATOR_POST_EDIT";U[U.LATENCY_ACTION_CREATOR_POST_COMMENTS]="LATENCY_ACTION_CREATOR_POST_COMMENTS";U[U.LATENCY_ACTION_CREATOR_LIVE_STREAMING]="LATENCY_ACTION_CREATOR_LIVE_STREAMING";U[U.LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT";U[U.LATENCY_ACTION_CREATOR_DIALOG_UPLOADS]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS";U[U.LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES";
U[U.LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS";U[U.LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS";U[U.LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS";U[U.LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT";U[U.LATENCY_ACTION_CREATOR_CHANNEL_MUSIC]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC";U[U.LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION";
U[U.LATENCY_ACTION_CREATOR_CHANNEL_EDITING]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING";U[U.LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD]="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD";U[U.LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT";U[U.LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS";U[U.LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS";U[U.LATENCY_ACTION_CREATOR_ARTIST_PROFILE]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE";
U[U.LATENCY_ACTION_CREATOR_ARTIST_CONCERTS]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS";U[U.LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS";U[U.LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE";U[U.LATENCY_ACTION_EXPERIMENTAL_WATCH_UI]="LATENCY_ACTION_EXPERIMENTAL_WATCH_UI";U[U.LATENCY_ACTION_STORYBOARD_THUMBNAILS]="LATENCY_ACTION_STORYBOARD_THUMBNAILS";U[U.LATENCY_ACTION_SEARCH_THUMBNAILS]="LATENCY_ACTION_SEARCH_THUMBNAILS";
U[U.LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD]="LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD";U[U.LATENCY_ACTION_VOICE_ASSISTANT]="LATENCY_ACTION_VOICE_ASSISTANT";U[U.LATENCY_ACTION_SEARCH_UI]="LATENCY_ACTION_SEARCH_UI";U[U.LATENCY_ACTION_SUGGEST]="LATENCY_ACTION_SUGGEST";U[U.LATENCY_ACTION_AUTO_SEARCH]="LATENCY_ACTION_AUTO_SEARCH";U[U.LATENCY_ACTION_DOWNLOADS]="LATENCY_ACTION_DOWNLOADS";U[U.LATENCY_ACTION_EXPLORE]="LATENCY_ACTION_EXPLORE";U[U.LATENCY_ACTION_VIDEO_LIST]="LATENCY_ACTION_VIDEO_LIST";
U[U.LATENCY_ACTION_HOME_RESUME]="LATENCY_ACTION_HOME_RESUME";U[U.LATENCY_ACTION_SUBSCRIPTIONS_LIST]="LATENCY_ACTION_SUBSCRIPTIONS_LIST";U[U.LATENCY_ACTION_THUMBNAIL_LOAD]="LATENCY_ACTION_THUMBNAIL_LOAD";U[U.LATENCY_ACTION_FIRST_THUMBNAIL_LOAD]="LATENCY_ACTION_FIRST_THUMBNAIL_LOAD";U[U.LATENCY_ACTION_SUBSCRIPTIONS_FEED]="LATENCY_ACTION_SUBSCRIPTIONS_FEED";U[U.LATENCY_ACTION_SUBSCRIPTIONS]="LATENCY_ACTION_SUBSCRIPTIONS";U[U.LATENCY_ACTION_TRENDING]="LATENCY_ACTION_TRENDING";
U[U.LATENCY_ACTION_LIBRARY]="LATENCY_ACTION_LIBRARY";U[U.LATENCY_ACTION_VIDEO_THUMBNAIL]="LATENCY_ACTION_VIDEO_THUMBNAIL";U[U.LATENCY_ACTION_SHOW_MORE]="LATENCY_ACTION_SHOW_MORE";U[U.LATENCY_ACTION_VIDEO_PREVIEW]="LATENCY_ACTION_VIDEO_PREVIEW";U[U.LATENCY_ACTION_PREBUFFER_VIDEO]="LATENCY_ACTION_PREBUFFER_VIDEO";U[U.LATENCY_ACTION_PREFETCH_VIDEO]="LATENCY_ACTION_PREFETCH_VIDEO";U[U.LATENCY_ACTION_DIRECT_PLAYBACK]="LATENCY_ACTION_DIRECT_PLAYBACK";U[U.LATENCY_ACTION_REEL_WATCH]="LATENCY_ACTION_REEL_WATCH";
U[U.LATENCY_ACTION_AD_TO_AD]="LATENCY_ACTION_AD_TO_AD";U[U.LATENCY_ACTION_VIDEO_TO_AD]="LATENCY_ACTION_VIDEO_TO_AD";U[U.LATENCY_ACTION_AD_TO_VIDEO]="LATENCY_ACTION_AD_TO_VIDEO";U[U.LATENCY_ACTION_ONBOARDING]="LATENCY_ACTION_ONBOARDING";U[U.LATENCY_ACTION_LOGIN]="LATENCY_ACTION_LOGIN";U[U.LATENCY_ACTION_BROWSE]="LATENCY_ACTION_BROWSE";U[U.LATENCY_ACTION_CHANNELS]="LATENCY_ACTION_CHANNELS";U[U.LATENCY_ACTION_WATCH]="LATENCY_ACTION_WATCH";U[U.LATENCY_ACTION_RESULTS]="LATENCY_ACTION_RESULTS";
U[U.LATENCY_ACTION_HOME]="LATENCY_ACTION_HOME";U[U.LATENCY_ACTION_STARTUP]="LATENCY_ACTION_STARTUP";U[U.LATENCY_ACTION_UNKNOWN]="LATENCY_ACTION_UNKNOWN";var $A={LATENCY_NETWORK_MOBILE:2,LATENCY_NETWORK_WIFI:1,LATENCY_NETWORK_UNKNOWN:0};$A[$A.LATENCY_NETWORK_MOBILE]="LATENCY_NETWORK_MOBILE";$A[$A.LATENCY_NETWORK_WIFI]="LATENCY_NETWORK_WIFI";$A[$A.LATENCY_NETWORK_UNKNOWN]="LATENCY_NETWORK_UNKNOWN";
var aB={CONN_INVALID:31,CONN_CELLULAR_5G_NSA:12,CONN_CELLULAR_5G_SA:11,CONN_WIFI_METERED:10,CONN_CELLULAR_5G:9,CONN_DISCO:8,CONN_CELLULAR_UNKNOWN:7,CONN_CELLULAR_4G:6,CONN_CELLULAR_3G:5,CONN_CELLULAR_2G:4,CONN_WIFI:3,CONN_NONE:2,CONN_UNKNOWN:1,CONN_DEFAULT:0};aB[aB.CONN_INVALID]="CONN_INVALID";aB[aB.CONN_CELLULAR_5G_NSA]="CONN_CELLULAR_5G_NSA";aB[aB.CONN_CELLULAR_5G_SA]="CONN_CELLULAR_5G_SA";aB[aB.CONN_WIFI_METERED]="CONN_WIFI_METERED";aB[aB.CONN_CELLULAR_5G]="CONN_CELLULAR_5G";
aB[aB.CONN_DISCO]="CONN_DISCO";aB[aB.CONN_CELLULAR_UNKNOWN]="CONN_CELLULAR_UNKNOWN";aB[aB.CONN_CELLULAR_4G]="CONN_CELLULAR_4G";aB[aB.CONN_CELLULAR_3G]="CONN_CELLULAR_3G";aB[aB.CONN_CELLULAR_2G]="CONN_CELLULAR_2G";aB[aB.CONN_WIFI]="CONN_WIFI";aB[aB.CONN_NONE]="CONN_NONE";aB[aB.CONN_UNKNOWN]="CONN_UNKNOWN";aB[aB.CONN_DEFAULT]="CONN_DEFAULT";
var bB={DETAILED_NETWORK_TYPE_NR_NSA:126,DETAILED_NETWORK_TYPE_NR_SA:125,DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED:124,DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT:123,DETAILED_NETWORK_TYPE_DISCONNECTED:122,DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN:121,DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN:120,DETAILED_NETWORK_TYPE_WIMAX:119,DETAILED_NETWORK_TYPE_ETHERNET:118,DETAILED_NETWORK_TYPE_BLUETOOTH:117,DETAILED_NETWORK_TYPE_WIFI:116,DETAILED_NETWORK_TYPE_LTE:115,DETAILED_NETWORK_TYPE_HSPAP:114,DETAILED_NETWORK_TYPE_EHRPD:113,
DETAILED_NETWORK_TYPE_EVDO_B:112,DETAILED_NETWORK_TYPE_UMTS:111,DETAILED_NETWORK_TYPE_IDEN:110,DETAILED_NETWORK_TYPE_HSUPA:109,DETAILED_NETWORK_TYPE_HSPA:108,DETAILED_NETWORK_TYPE_HSDPA:107,DETAILED_NETWORK_TYPE_EVDO_A:106,DETAILED_NETWORK_TYPE_EVDO_0:105,DETAILED_NETWORK_TYPE_CDMA:104,DETAILED_NETWORK_TYPE_1_X_RTT:103,DETAILED_NETWORK_TYPE_GPRS:102,DETAILED_NETWORK_TYPE_EDGE:101,DETAILED_NETWORK_TYPE_UNKNOWN:0};bB[bB.DETAILED_NETWORK_TYPE_NR_NSA]="DETAILED_NETWORK_TYPE_NR_NSA";
bB[bB.DETAILED_NETWORK_TYPE_NR_SA]="DETAILED_NETWORK_TYPE_NR_SA";bB[bB.DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED]="DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED";bB[bB.DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT]="DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT";bB[bB.DETAILED_NETWORK_TYPE_DISCONNECTED]="DETAILED_NETWORK_TYPE_DISCONNECTED";bB[bB.DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN]="DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN";bB[bB.DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN]="DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN";
bB[bB.DETAILED_NETWORK_TYPE_WIMAX]="DETAILED_NETWORK_TYPE_WIMAX";bB[bB.DETAILED_NETWORK_TYPE_ETHERNET]="DETAILED_NETWORK_TYPE_ETHERNET";bB[bB.DETAILED_NETWORK_TYPE_BLUETOOTH]="DETAILED_NETWORK_TYPE_BLUETOOTH";bB[bB.DETAILED_NETWORK_TYPE_WIFI]="DETAILED_NETWORK_TYPE_WIFI";bB[bB.DETAILED_NETWORK_TYPE_LTE]="DETAILED_NETWORK_TYPE_LTE";bB[bB.DETAILED_NETWORK_TYPE_HSPAP]="DETAILED_NETWORK_TYPE_HSPAP";bB[bB.DETAILED_NETWORK_TYPE_EHRPD]="DETAILED_NETWORK_TYPE_EHRPD";bB[bB.DETAILED_NETWORK_TYPE_EVDO_B]="DETAILED_NETWORK_TYPE_EVDO_B";
bB[bB.DETAILED_NETWORK_TYPE_UMTS]="DETAILED_NETWORK_TYPE_UMTS";bB[bB.DETAILED_NETWORK_TYPE_IDEN]="DETAILED_NETWORK_TYPE_IDEN";bB[bB.DETAILED_NETWORK_TYPE_HSUPA]="DETAILED_NETWORK_TYPE_HSUPA";bB[bB.DETAILED_NETWORK_TYPE_HSPA]="DETAILED_NETWORK_TYPE_HSPA";bB[bB.DETAILED_NETWORK_TYPE_HSDPA]="DETAILED_NETWORK_TYPE_HSDPA";bB[bB.DETAILED_NETWORK_TYPE_EVDO_A]="DETAILED_NETWORK_TYPE_EVDO_A";bB[bB.DETAILED_NETWORK_TYPE_EVDO_0]="DETAILED_NETWORK_TYPE_EVDO_0";bB[bB.DETAILED_NETWORK_TYPE_CDMA]="DETAILED_NETWORK_TYPE_CDMA";
bB[bB.DETAILED_NETWORK_TYPE_1_X_RTT]="DETAILED_NETWORK_TYPE_1_X_RTT";bB[bB.DETAILED_NETWORK_TYPE_GPRS]="DETAILED_NETWORK_TYPE_GPRS";bB[bB.DETAILED_NETWORK_TYPE_EDGE]="DETAILED_NETWORK_TYPE_EDGE";bB[bB.DETAILED_NETWORK_TYPE_UNKNOWN]="DETAILED_NETWORK_TYPE_UNKNOWN";var cB={LATENCY_PLAYER_RTSP:7,LATENCY_PLAYER_HTML5_INLINE:6,LATENCY_PLAYER_HTML5_FULLSCREEN:5,LATENCY_PLAYER_HTML5:4,LATENCY_PLAYER_FRAMEWORK:3,LATENCY_PLAYER_FLASH:2,LATENCY_PLAYER_EXO:1,LATENCY_PLAYER_UNKNOWN:0};
cB[cB.LATENCY_PLAYER_RTSP]="LATENCY_PLAYER_RTSP";cB[cB.LATENCY_PLAYER_HTML5_INLINE]="LATENCY_PLAYER_HTML5_INLINE";cB[cB.LATENCY_PLAYER_HTML5_FULLSCREEN]="LATENCY_PLAYER_HTML5_FULLSCREEN";cB[cB.LATENCY_PLAYER_HTML5]="LATENCY_PLAYER_HTML5";cB[cB.LATENCY_PLAYER_FRAMEWORK]="LATENCY_PLAYER_FRAMEWORK";cB[cB.LATENCY_PLAYER_FLASH]="LATENCY_PLAYER_FLASH";cB[cB.LATENCY_PLAYER_EXO]="LATENCY_PLAYER_EXO";cB[cB.LATENCY_PLAYER_UNKNOWN]="LATENCY_PLAYER_UNKNOWN";
var dB={LATENCY_AD_BREAK_TYPE_POSTROLL:3,LATENCY_AD_BREAK_TYPE_MIDROLL:2,LATENCY_AD_BREAK_TYPE_PREROLL:1,LATENCY_AD_BREAK_TYPE_UNKNOWN:0};dB[dB.LATENCY_AD_BREAK_TYPE_POSTROLL]="LATENCY_AD_BREAK_TYPE_POSTROLL";dB[dB.LATENCY_AD_BREAK_TYPE_MIDROLL]="LATENCY_AD_BREAK_TYPE_MIDROLL";dB[dB.LATENCY_AD_BREAK_TYPE_PREROLL]="LATENCY_AD_BREAK_TYPE_PREROLL";dB[dB.LATENCY_AD_BREAK_TYPE_UNKNOWN]="LATENCY_AD_BREAK_TYPE_UNKNOWN";var eB={LATENCY_ACTION_ERROR_STARTUP_TIMEOUT:1,LATENCY_ACTION_ERROR_UNSPECIFIED:0};
eB[eB.LATENCY_ACTION_ERROR_STARTUP_TIMEOUT]="LATENCY_ACTION_ERROR_STARTUP_TIMEOUT";eB[eB.LATENCY_ACTION_ERROR_UNSPECIFIED]="LATENCY_ACTION_ERROR_UNSPECIFIED";var fB={LIVE_STREAM_MODE_WINDOW:5,LIVE_STREAM_MODE_POST:4,LIVE_STREAM_MODE_LP:3,LIVE_STREAM_MODE_LIVE:2,LIVE_STREAM_MODE_DVR:1,LIVE_STREAM_MODE_UNKNOWN:0};fB[fB.LIVE_STREAM_MODE_WINDOW]="LIVE_STREAM_MODE_WINDOW";fB[fB.LIVE_STREAM_MODE_POST]="LIVE_STREAM_MODE_POST";fB[fB.LIVE_STREAM_MODE_LP]="LIVE_STREAM_MODE_LP";
fB[fB.LIVE_STREAM_MODE_LIVE]="LIVE_STREAM_MODE_LIVE";fB[fB.LIVE_STREAM_MODE_DVR]="LIVE_STREAM_MODE_DVR";fB[fB.LIVE_STREAM_MODE_UNKNOWN]="LIVE_STREAM_MODE_UNKNOWN";var gB={VIDEO_STREAM_TYPE_VOD:3,VIDEO_STREAM_TYPE_DVR:2,VIDEO_STREAM_TYPE_LIVE:1,VIDEO_STREAM_TYPE_UNSPECIFIED:0};gB[gB.VIDEO_STREAM_TYPE_VOD]="VIDEO_STREAM_TYPE_VOD";gB[gB.VIDEO_STREAM_TYPE_DVR]="VIDEO_STREAM_TYPE_DVR";gB[gB.VIDEO_STREAM_TYPE_LIVE]="VIDEO_STREAM_TYPE_LIVE";gB[gB.VIDEO_STREAM_TYPE_UNSPECIFIED]="VIDEO_STREAM_TYPE_UNSPECIFIED";
var hB={YT_IDB_TRANSACTION_TYPE_READ:2,YT_IDB_TRANSACTION_TYPE_WRITE:1,YT_IDB_TRANSACTION_TYPE_UNKNOWN:0};hB[hB.YT_IDB_TRANSACTION_TYPE_READ]="YT_IDB_TRANSACTION_TYPE_READ";hB[hB.YT_IDB_TRANSACTION_TYPE_WRITE]="YT_IDB_TRANSACTION_TYPE_WRITE";hB[hB.YT_IDB_TRANSACTION_TYPE_UNKNOWN]="YT_IDB_TRANSACTION_TYPE_UNKNOWN";var iB={PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN:2,PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT:1,PLAYER_ROTATION_TYPE_UNKNOWN:0};iB[iB.PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN]="PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN";
iB[iB.PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT]="PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT";iB[iB.PLAYER_ROTATION_TYPE_UNKNOWN]="PLAYER_ROTATION_TYPE_UNKNOWN";var Cva="actionVisualElement spinnerInfo resourceInfo playerInfo commentInfo mdxInfo watchInfo thumbnailLoadInfo creatorInfo unpluggedInfo reelInfo subscriptionsFeedInfo requestIds mediaBrowserActionInfo musicLoadActionInfo shoppingInfo webViewInfo prefetchInfo accelerationSession commerceInfo webInfo tvInfo kabukiInfo mwebInfo musicInfo".split(" ");var SA=g.C.ytLoggingLatencyUsageStats_||{};g.Fa("ytLoggingLatencyUsageStats_",SA);QA.prototype.tick=function(a,b,c,d){TA(this,"tick_"+a+"_"+b)||(c={timestamp:c,cttAuthInfo:d},g.S("web_csi_via_jspb")?(d=new At,g.E(d,1,a),g.E(d,2,b),a=new Ut,Gd(a,At,5,ty,d),sy(a,c)):g.Kv("latencyActionTicked",{tickName:a,clientActionNonce:b},c))};
QA.prototype.info=function(a,b,c){var d=Object.keys(a).join("");TA(this,"info_"+d+"_"+b)||(a=Object.assign({},a),a.clientActionNonce=b,g.Kv("latencyActionInfo",a,{cttAuthInfo:c}))};
QA.prototype.jspbInfo=function(a,b,c){for(var d="",e=0;e<a.toJSON().length;e++)void 0!==a.toJSON()[e]&&(d=0===e?d.concat(""+e):d.concat("_"+e));TA(this,"info_"+d+"_"+b)||(g.E(a,2,b),b={cttAuthInfo:c},c=new Ut,Gd(c,wt,7,ty,a),sy(c,b))};
QA.prototype.span=function(a,b,c){var d=Object.keys(a).join("");TA(this,"span_"+d+"_"+b)||(a.clientActionNonce=b,g.Kv("latencyActionSpan",a,{cttAuthInfo:c}))};var n0a=window;n0a.ytcsi&&(n0a.ytcsi.info=g.ZA,n0a.ytcsi.tick=WA);var SAa={Vma:1,Xna:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};var zT=16/9,o0a=[.25,.5,.75,1,1.25,1.5,1.75,2],p0a=o0a.concat([3,4,5,6,7,8,9,10,15]);var q0a=["h","H"],r0a=["9","("],s0a=["9h","(h"],t0a=["8","*"],u0a=["a","A"],v0a=["o","O"],w0a=["m","M"],x0a=["mac3","MAC3"],y0a=["meac3","MEAC3"],R3={},rya=(R3.h=q0a,R3.H=q0a,R3["9"]=r0a,R3["("]=r0a,R3["9h"]=s0a,R3["(h"]=s0a,R3["8"]=t0a,R3["*"]=t0a,R3.a=u0a,R3.A=u0a,R3.o=v0a,R3.O=v0a,R3.m=w0a,R3.M=w0a,R3.mac3=x0a,R3.MAC3=x0a,R3.meac3=y0a,R3.MEAC3=y0a,R3);g.rB.prototype.getLanguageInfo=function(){return this.Nc};
g.rB.prototype.toString=function(){return this.Nc.name};
g.rB.prototype.getLanguageInfo=g.rB.prototype.getLanguageInfo;var S3,wB;S3={};g.tB=(S3.auto=0,S3.tiny=144,S3.light=144,S3.small=240,S3.medium=360,S3.large=480,S3.hd720=720,S3.hd1080=1080,S3.hd1440=1440,S3.hd2160=2160,S3.hd2880=2880,S3.highres=4320,S3);wB={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};sB.prototype.equals=function(a){return this.u===a.u&&this.j===a.j&&this.B===a.B&&this.reason===a.reason};
sB.prototype.isLocked=function(){return this.B&&!!this.u&&this.u===this.j};
sB.prototype.compose=function(a){if(a.B&&vB(a))return EH;if(a.B||vB(this))return a;if(this.B||vB(a))return this;var b=this.u&&a.u?Math.max(this.u,a.u):this.u||a.u,c=this.j&&a.j?Math.min(this.j,a.j):this.j||a.j;b=Math.min(b,c);return b===this.u&&c===this.j?this:new sB(b,c,!1,c===this.j?this.reason:a.reason)};
sB.prototype.C=function(a){return a.video?Iva(this,a.video.quality):!1};
var z0a=g.uB("auto","hd1080",!1,"l"),MOa=g.uB("auto","large",!1,"l"),EH=g.uB("auto","auto",!1,"p");yB.prototype.Pp=function(a){a=a||EH;for(var b=g.um(this.videoInfos,function(h){return a.C(h)}),c=[],d={},e=0;e<b.length;e++){var f=b[e].video;
d[f.quality]||(c.push(f),d[f.quality]=!0)}return c};
yB.prototype.My=function(a){a=a||EH;return g.um(this.videoInfos,function(b){return a.C(b)})};
yB.prototype.getAvailableAudioTracks=function(){return this.audioTracks};var JB={ZH:function(a,b){a.splice(0,b)},
xh:function(a){a.reverse()},
zP:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b%a.length]=c}};g.KB.prototype.set=function(a,b){this.j[a]!==b&&(this.j[a]=b,this.url="")};
g.KB.prototype.get=function(a){LB(this);return this.j[a]||null};
g.KB.prototype.ye=function(){this.url||(this.url=bwa(this));return this.url};
g.KB.prototype.clone=function(){var a=new g.KB(this.u,this.D);a.B=this.B;a.path=this.path;a.C=this.C;a.j=g.Gf(this.j);a.url=this.url;return a};
var awa=[Xka];g.k=RB.prototype;g.k.LF=function(a){this.segments.push(a)};
g.k.getDuration=function(a){return(a=this.Gm(a))?a.duration:0};
g.k.getDurationTicks=function(a){return this.getDuration(a)};
g.k.getFirstSegmentNumber=function(){return this.segments.length?this.segments[0].Na:-1};
g.k.getIngestionTime=function(a){return(a=this.Gm(a))?a.ingestionTime:NaN};
g.k.getLastSegmentNumber=function(){return this.segments.length?this.segments[this.segments.length-1].Na:-1};
g.k.HI=function(a){return this.getLastSegmentNumber()===a&&!this.u&&0<=a};
g.k.getMaxKnownEndTime=function(){var a=this.segments[this.segments.length-1];return a?a.endTime:NaN};
g.k.getMinSeekableTime=function(){return this.segments[0].startTime};
g.k.getNumberOfSegments=function(){return this.segments.length};
g.k.getOffset=function(){return 0};
g.k.getSegmentNumberForTime=function(a){return(a=this.Kv(a))?a.Na:-1};
g.k.getSegmentURL=function(a){return(a=this.Gm(a))?a.sourceURL:""};
g.k.getStartTime=function(a){return(a=this.Gm(a))?a.startTime:0};
g.k.getStartTimeInPeriod=function(a){return(a=this.Gm(a))?a.j:0};
g.k.isLoaded=function(){return 0<this.segments.length};
g.k.Gm=function(a){if(this.j&&this.j.Na===a)return this.j;a=g.jc(this.segments,new QB(a,0,0,0,""),function(b,c){return b.Na-c.Na});
return this.j=0<=a?this.segments[a]:null};
g.k.Kv=function(a){if(this.j&&this.j.startTime<=a&&a<this.j.startTime+this.j.duration)return this.j;a=g.jc(this.segments,{startTime:a},function(b,c){return b.startTime-c.startTime});
return this.j=0<=a?this.segments[a]:this.segments[Math.max(0,-a-2)]};
g.k.append=function(a){if(a.length)if(a=g.bc(a),this.segments.length){var b=this.segments.length?g.Jb(this.segments).endTime:0,c=a[0].Na-this.getLastSegmentNumber();1<c&&Oaa(this.segments);for(c=0<c?0:-c+1;c<a.length;c++){var d=a[c];d.startTime=b;d.endTime=d.startTime+d.duration;b+=a[c].duration;this.segments.push(a[c])}}else this.segments=a};
g.k.getLocalMaxByterate=function(){return 0};SB.prototype.append=function(a){if(ewa(this,a)){var b=this.j[this.j.length-1];this.j[this.j.length-1]=new Uint8Array(b.buffer,b.byteOffset,b.length+a.length);VB(this)}else this.j.push(a);this.totalLength+=a.length};
SB.prototype.split=function(a){for(var b=new SB,c=new SB,d=g.r(this.j),e=d.next();!e.done;e=d.next())e=e.value,a>=e.length?(b.append(e),a-=e.length):a?(b.append(new Uint8Array(e.buffer,e.byteOffset,a)),c.append(new Uint8Array(e.buffer,e.byteOffset+a,e.length-a)),a=0):c.append(e);return{TC:b,ap:c}};
SB.prototype.isFocused=function(a){return a>=this.B&&a<this.B+this.j[this.u].length};
SB.prototype.focus=function(a){if(!this.isFocused(a)){for(a<this.B&&VB(this);this.B+this.j[this.u].length<=a&&this.u<this.j.length;)this.B+=this.j[this.u].length,this.u+=1;this.C=void 0}};var eC,aC,gC;g.bV=function(){function a(d){for(var e=new Uint8Array(d.length),f=0;f<d.length;f++)e[f]=d[f];return e}
function b(d){return new Uint8Array(d)}
var c=new Uint8Array([1]);return 1===c.length&&1===c[0]?b:a}();
eC=Array(1024);aC=window.TextDecoder?new TextDecoder:void 0;gC=window.TextEncoder?new TextEncoder:void 0;iC.prototype.skip=function(a){this.j+=a};
iC.prototype.markAsSkip=function(){this.type=1936419184;this.data.setUint32(this.offset+4,1936419184)};var T3={},A0a=(T3.predictStart="predictStart",T3.start="start",T3["continue"]="continue",T3.stop="stop",T3),lwa={EVENT_PREDICT_START:"predictStart",EVENT_START:"start",EVENT_CONTINUE:"continue",EVENT_STOP:"stop"};rC.prototype.mz=function(){return!!(this.data["Stitched-Video-Id"]||this.data["Stitched-Video-Cpn"]||this.data["Stitched-Video-Duration-Us"]||this.data["Stitched-Video-Start-Frame-Index"]||this.data["Serialized-State"]||this.data["Is-Ad-Break-Finished"])};
rC.prototype.toString=function(){for(var a="",b=g.r(Object.keys(this.data)),c=b.next();!c.done;c=b.next())c=c.value,a+=c+":"+this.data[c]+";";return a};var U3={},eAa=(U3.STEREO_LAYOUT_UNKNOWN=0,U3.STEREO_LAYOUT_LEFT_RIGHT=1,U3.STEREO_LAYOUT_TOP_BOTTOM=2,U3);var xwa=!1;EC.prototype.hw=function(){var a=this.pos;this.pos=0;var b=!1;try{IC(this,440786851)&&(this.pos=0,IC(this,408125543)&&(b=!0))}catch(c){if(c instanceof RangeError)this.pos=0,b=!1,g.pz(c);else throw c;}this.pos=a;return b};SC.prototype.set=function(a,b){this.lj.get(a);this.j[a]=b;this.url=""};
SC.prototype.get=function(a){return this.j[a]||this.lj.get(a)};
SC.prototype.ye=function(){this.url||(this.url=Gwa(this));return this.url};Kwa.prototype.gk=function(a,b){a.lj===this.j&&(this.j=TC(a,b));a.lj===this.B&&(this.B=TC(a,b))};YC.prototype.Yf=function(){return!!this.j&&this.index.isLoaded()};
YC.prototype.nw=function(){return!1};
YC.prototype.TM=function(a){return[a]};
YC.prototype.Ow=function(a){return[a]};$C.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};cD.prototype.isEncrypted=function(){return this.j.info.isEncrypted()};
cD.prototype.equals=function(a){return!(!a||a.j!==this.j||a.type!==this.type||(this.range&&a.range?a.range.start!==this.range.start||a.range.end!==this.range.end:a.range!==this.range)||a.Na!==this.Na||a.Kb!==this.Kb||a.u!==this.u)};
cD.prototype.isVideo=function(){return!!this.j.info.video};oD.prototype.Hm=function(){return this.B?this.B.ye():""};
oD.prototype.Es=function(){return this.J};
oD.prototype.Tn=function(){return eD(this.j[0])};
oD.prototype.gk=function(a,b){this.u.gk(a,b);if(this.B){this.B=TC(a,b);b=g.r(["acpns","cpn","daistate","skipsq"]);for(var c=b.next();!c.done;c=b.next())this.B.set(c.value,null)}this.requestId=a.get("req_id")};
var Wwa=!1;g.v(tD,YC);g.k=tD.prototype;g.k.hn=function(){return!1};
g.k.Ks=function(){return B0a};
g.k.vz=function(){return!1};
g.k.nw=function(){return!this.I};
g.k.Vp=function(){return new oD([new cD(1,this,this.initRange,"getMetadataRequestInfo")],this.I)};
g.k.Gu=function(){return null};
g.k.Ox=function(a){this.qp(a);return this.Ks()&&a.u&&!a.Ge?new oD([new cD(a.type,a.j,a.range,"liveGetNextRequestInfoBySegment",a.Na,a.startTime,a.duration,a.Kb+a.u,NaN,!0)],this.index.getSegmentURL(a.Na)):this.rp(hD(a),!1)};
g.k.Km=function(a,b){b=void 0===b?!1:b;a=this.index.getSegmentNumberForTime(a);b&&(a=Math.min(this.index.getLastSegmentNumber(),a+1));return this.rp(a,!0)};
g.k.lI=function(a){this.j=new Uint8Array(FD(a).buffer)};
g.k.qp=function(a){return 0===a.u?!0:this.index.getLastSegmentNumber()>a.Na&&this.index.getFirstSegmentNumber()<=a.Na+1};
g.k.update=function(a,b,c){this.index.append(a);dwa(this.index,c);this.index.u=b};
g.k.Yf=function(){return this.nw()?!0:YC.prototype.Yf.call(this)};
g.k.rp=function(a,b){var c=this.index.getSegmentURL(a),d=this.index.getStartTime(a),e=this.index.getDuration(a),f;b?e=f=0:f=0<this.info.Tb?this.info.Tb*e:1E3;return new oD([new cD(3,this,void 0,"liveCreateRequestInfoForSegment",a,d,e,0,f,!b)],c)};
g.k.UH=function(){return this.nw()?0:this.initRange.length};
g.k.eK=function(){return!1};
var B0a=!1;wD.prototype.update=function(a,b){var c=void 0;this.u&&(c=this.u);var d=new wD,e=Array.from(a.getElementsByTagName("S"));if(e.length){var f=+uD(a,"timescale")||1,h=(+e[0].getAttribute("t")||0)/f,l=+uD(a,"startNumber")||0,m=d.C=h,n=+uD(a,"presentationTimeOffset")||0;b=c?c.startSecs+c.durationSecs:b?m-n/f:0;m=Date.parse(cxa(uD(a,"yt:segmentIngestTime")))/1E3;d.D="SegmentTemplate"===a.parentElement.tagName;d.D&&(d.J=uD(a,"media"));a=c?l-c.Na:1;d.I=0<a?0:-a+1;a=g.r(e);for(e=a.next();!e.done;e=a.next()){e=
e.value;n=+e.getAttribute("d")/f;for(var p=(+e.getAttribute("yt:sid")||0)/f,q=+e.getAttribute("r")||0,u=0;u<=q;u++)if(c&&l<=c.Na)l++;else{var w=new axa(l,b,n,m+p,h);d.j.push(w);var y=w.startSecs;w=e.getAttribute("yt:cuepointTimeOffset");var A=e.getAttribute("yt:cuepointDuration");if(w&&A){w=Number(w);y=-w/f+y;A=Number(A)/f;var B=e.getAttribute("yt:cuepointContext")||null,D=e.getAttribute("yt:cuepointIdentifier")||"",G=e.getAttribute("yt:cuepointEvent")||"";w=new iA(y,A,B,D,A0a[G]||"unknown",w)}else w=
null;w&&d.B.push(w);l++;b+=n;h+=n;m+=n+p}}d.j.length&&(d.u=g.Jb(d.j))}this.I=d.I;this.u=d.u||this.u;g.cc(this.j,d.j);g.cc(this.B,d.B);this.D=d.D;this.J=d.J;-1===this.C&&(this.C=d.getStreamTimeOffset())};
wD.prototype.getStreamTimeOffset=function(){return-1===this.C?0:this.C};g.v(xD,RB);g.k=xD.prototype;g.k.getFirstSegmentNumber=function(){return this.wm?this.segments.length?this.Kv(this.getMinSeekableTime()).Na:-1:RB.prototype.getFirstSegmentNumber.call(this)};
g.k.getMinSeekableTime=function(){if(this.uf)return 0;if(!this.wm)return RB.prototype.getMinSeekableTime.call(this);if(!this.segments.length)return 0;var a=Math.max(g.Jb(this.segments).endTime-this.Xn,0);return 0<this.df&&this.Kv(a).Na<this.df?this.Gm(this.df).startTime:a};
g.k.getMaxKnownEndTime=function(){if(!this.segments.length)return RB.prototype.getMaxKnownEndTime.call(this);var a=this.getLastSegmentNumber();if(!this.wm||a<=this.segments[this.segments.length-1].Na)a=this.segments[this.segments.length-1];else{var b=this.segments[this.segments.length-1];a=new QB(a,Math.max(0,b.startTime-(b.Na-a)*this.oi),this.oi,0,"sq/"+a,void 0,void 0,!0)}return null!==this.B&&a.pending&&3===this.B?this.uf?Math.min(this.Xn,a.startTime):a.startTime:this.uf?Math.min(this.Xn,a.endTime):
a.endTime};
g.k.getNumberOfSegments=function(){return this.wm?this.segments.length?this.getLastSegmentNumber()-this.getFirstSegmentNumber()+1:0:RB.prototype.getNumberOfSegments.call(this)};
g.k.getLastSegmentNumber=function(){var a=Math.min(this.Vh,Math.max(RB.prototype.getLastSegmentNumber.call(this),this.Um)),b=1E3*this.Xn;b=0<this.zo&&this.zo<b;this.uf&&0<this.Xn&&0<this.Um&&!b&&(b=this.Kv(this.Xn))&&(a=Math.min(b.Na-1,a));return a};
g.k.ys=function(){return this.segments.length?this.segments[this.segments.length-1]:null};
g.k.LF=function(a){var b=yD(this,a.Na);if(0<=b)this.segments[b]=a;else if(this.segments.splice(-(b+1),0,a),this.Gz&&0===a.Na%(300/this.oi)){var c=this.segments[0].Na,d=Math.floor(this.Gz/this.oi);a=a.Na-d;b=-(b+1)-d;0<b&&a>c&&(this.segments=this.segments.slice(b))}};
g.k.DC=function(){return this.Um};
g.k.Kv=function(a){if(!this.wm)return RB.prototype.Kv.call(this,a);if(!this.segments.length)return null;var b=this.segments[this.segments.length-1];if(a<this.segments[0].startTime)b=Math.max(0,this.segments[0].Na-Math.ceil((this.segments[0].startTime-a)/this.oi));else if(a>=b.endTime)b=b.Na+Math.floor((a-b.endTime)/this.oi+1);else{b=kc(this.segments,function(d){return a<d.startTime?-1:a>=d.endTime?1:0});
if(0<=b)return this.segments[b];var c=-(b+1);b=this.segments[c-1];c=this.segments[c];b=Math.floor((a-b.endTime)/((c.startTime-b.endTime)/(c.Na-b.Na-1))+1)+b.Na}return this.Gm(b)};
g.k.Gm=function(a){if(!this.wm)return RB.prototype.Gm.call(this,a);if(!this.segments.length)return null;var b=yD(this,a);if(0<=b)return this.segments[b];var c=-(b+1);b=this.oi;if(0===c)var d=Math.max(0,this.segments[0].startTime-(this.segments[0].Na-a)*b);else c===this.segments.length?(d=this.segments[this.segments.length-1],d=d.endTime+(a-d.Na-1)*b):(d=this.segments[c-1],b=this.segments[c],b=(b.startTime-d.endTime)/(b.Na-d.Na-1),d=d.endTime+(a-d.Na-1)*b);return new QB(a,d,b,0,"sq/"+a,void 0,void 0,
!0)};g.v(AD,tD);g.k=AD.prototype;g.k.vz=function(){return!0};
g.k.Yf=function(){return!0};
g.k.qp=function(a){return this.Ks()&&a.u&&!a.Ge||!a.j.index.HI(a.Na)};
g.k.Vp=function(){};
g.k.Km=function(a,b){return"number"!==typeof a||isFinite(a)?tD.prototype.Km.call(this,a,void 0===b?!1:b):new oD([new cD(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.Fk,void 0,this.Fk*this.info.Tb)],"")};
g.k.rp=function(a,b){var c=void 0===c?!1:c;if(zD(this.index,a))return tD.prototype.rp.call(this,a,b);var d=this.index.getStartTime(a);return new oD([new cD(c?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",a,d,void 0,void 0,b?0:this.Fk*this.info.Tb,!b)],0<=a?"sq/"+a:"")};g.v(BD,YC);g.k=BD.prototype;g.k.hn=function(){return!1};
g.k.Ks=function(){return!1};
g.k.vz=function(){return!1};
g.k.Vp=function(){return new oD([new cD(1,this,void 0,"otfInit")],this.I)};
g.k.Gu=function(){return null};
g.k.Ox=function(a){this.qp(a);return kxa(this,hD(a),!1)};
g.k.Km=function(a,b){b=void 0===b?!1:b;a=this.index.getSegmentNumberForTime(a);b&&(a=Math.min(this.index.getLastSegmentNumber(),a+1));return kxa(this,a,!0)};
g.k.lI=function(a){1===a.info.type&&(this.j||(this.j=hwa(a.j)),a.u&&"http://youtube.com/streaming/otf/durations/112015"===a.u.uri&&lxa(this,a.u))};
g.k.qp=function(a){return 0===a.u?!0:this.index.getLastSegmentNumber()>a.Na&&this.index.getFirstSegmentNumber()<=a.Na+1};
g.k.UH=function(){return 0};
g.k.eK=function(){return!1};g.k=CD.prototype;g.k.getOffset=function(a){return this.offsets[a]};
g.k.getStartTime=function(a){return this.j[a]/this.B};
g.k.getStartTimeInPeriod=function(){return 0};
g.k.getIngestionTime=function(){return NaN};
g.k.getDuration=function(a){a=this.getDurationTicks(a);return 0<=a?a/this.B:-1};
g.k.getDurationTicks=function(a){return a+1<this.count||this.u?this.j[a+1]-this.j[a]:-1};
g.k.getByteLength=function(a){return a+1<this.count||this.u?this.offsets[a+1]-this.offsets[a]:-1};
g.k.getFirstSegmentNumber=function(){return 0};
g.k.getLastSegmentNumber=function(){return this.count-1};
g.k.HI=function(a){return this.getLastSegmentNumber()===a&&0<=a};
g.k.getMaxKnownEndTime=function(){return this.u?this.j[this.count]/this.B:NaN};
g.k.getMinSeekableTime=function(){return 0};
g.k.getNumberOfSegments=function(){return this.count};
g.k.getTotalByteLength=function(){return this.u?this.offsets[this.count]:-1};
g.k.getSegmentURL=function(){return""};
g.k.getSegmentNumberForTime=function(a){a=g.jc(this.j.subarray(0,this.count),a*this.B);return 0<=a?a:Math.max(0,-a-2)};
g.k.isLoaded=function(){return 0<=this.getLastSegmentNumber()};
g.k.getLocalMaxByterate=function(a,b){if(a>=this.getLastSegmentNumber())return 0;var c=0;for(b=this.getStartTime(a)+b;a<this.getLastSegmentNumber()&&b>this.getStartTime(a);a++)c=Math.max(c,this.getByteLength(a)/this.getDuration(a));return c};
g.k.resize=function(a){a+=2;var b=this.offsets;this.offsets=new Float64Array(a+1);var c=this.j;this.j=new Float64Array(a+1);for(a=0;a<this.count+1;a++)this.offsets[a]=b[a],this.j[a]=c[a]};
g.k.setTimebase=function(a){this.B=a};
g.k.setFirstSegmentStart=function(a,b){this.offsets[0]=a;this.j[0]=b;this.u=!0};
g.k.addSegmentBySize=function(a,b){this.count++;DD(this);this.offsets[this.count]=this.offsets[this.count-1]+a;this.j[this.count]=this.j[this.count-1]+b};
g.k.addSegmentByStart=function(a,b){DD(this);this.offsets[this.count]=a;this.j[this.count]=b;this.count++};
g.k.cap=function(a,b){DD(this);this.u=!0;this.j[this.count]=b;this.offsets[this.count]=a};ED.prototype.verify=function(a){if(this.info.u!==this.j.totalLength)return a.slength=this.info.u.toString(),a.range=this.j.totalLength.toString(),!1;if(1===this.info.j.info.containerType){if(8>this.info.u||4===this.info.type)return!0;var b=FD(this),c=b.getUint32(0,!1);b=b.getUint32(4,!1);a.infotype=this.info.type.toString();a.slicesize=c.toString();a.boxtype=b.toString();if(2===this.info.type)return c===this.info.u&&1936286840===b;if(3===this.info.type&&0===this.info.Kb)return 1836019558===b||1936286840===
b||1937013104===b||1718909296===b||1701671783===b||1936419184===b}else if(2===this.info.j.info.containerType){if(4>this.info.u||4===this.info.type)return!0;c=FD(this).getUint32(0,!1);a.ebm=c.toString();if(3===this.info.type&&0===this.info.Kb)return 524531317===c||440786851===c}return!0};g.v(ID,YC);g.k=ID.prototype;g.k.Vp=function(a){var b=new cD(2,this,this.indexRange,"indexInfo"),c=[new cD(1,this,this.initRange,"initInfo"),b];0<this.info.contentLength&&a&&(b=b.range.end+1,a=Math.min(a,this.info.contentLength-b),0<a&&c.push(new cD(4,this,bD(b,a),"tbdRange")));return new oD(c)};
g.k.lI=function(a){if(1===a.info.type){if(this.j)return;this.j=hwa(a.j)}else if(2===a.info.type){if(this.I||0<=this.index.getLastSegmentNumber())return;if(g.GD(this.info)){var b=this.index,c=FD(a);a=a.info.range.start;var d=g.uC(c,0,1936286840);c=uwa(d);b.setTimebase(c.lL);b.setFirstSegmentStart(c.PY+a+d.size,c.tY);a=c.gL.length;for(d=0;d<a;d++)b.addSegmentBySize(c.T3[d],c.gL[d])}else this.I=FD(a)}if(this.info.cf()&&this.j&&this.I){a=new DataView(this.j.buffer);b=this.index;d=this.I;c=this.indexRange.end;
var e=new EC(a);a=e;e=a.pos;var f={VS:1E6,WS:1E9,duration:0,rS:0,EK:0};if(IC(a,408125543))if(f.rS=JC(a,!0),f.EK=a.start+a.pos,IC(a,357149030)){for(var h=HC(a);!FC(h);){var l=JC(h,!1);2807729===l?f.VS=LC(h):2807730===l?f.WS=LC(h):17545===l?f.duration=NC(h):MC(h)}a.pos=e;a=f}else a.pos=e,a=null;else a.pos=e,a=null;if(null!==a){b.setTimebase(a.WS/a.VS);e=new EC(d);d=e;h=a.EK;e=d.pos;f=[];if(IC(d,475249515)){for(l=HC(d);IC(l,187);){var m=HC(l);if(IC(m,179)){var n=LC(m);if(IC(m,183)){m=HC(m);for(var p=
h;IC(m,241);)p=LC(m)+h;f.push({ZB:p,fY:n})}}}if(0<f.length&&c===f[0].ZB)for(c=0;c<f.length;c++)f[c].ZB+=1;d.pos=e;c=f}else d.pos=e,c=null;if(null!==c){c=g.r(c);for(d=c.next();!d.done;d=c.next())d=d.value,b.addSegmentByStart(d.ZB,d.fY);b.cap(a.rS+a.EK,a.duration)}}this.I=null}};
g.k.TM=function(a){for(var b=this.Ow(a.info),c=a.info.range.start+a.info.Kb,d=a.B,e=[],f=0;f<b.length;f++){var h=UB(a.j,b[f].range.start+b[f].Kb-c,b[f].u);e.push(new ED(b[f],h,d));d=void 0}return e};
g.k.Ow=function(a){for(var b=a.range.start+a.Kb,c=0;c<this.index.getLastSegmentNumber()&&b>=this.index.getOffset(c+1);)c++;return JD(this,c,b,a.u).j};
g.k.qp=function(a){dD(a);return this.Yf()?!0:a.range.end+1<this.info.contentLength};
g.k.Gu=function(a,b){this.qp(a);if(!this.Yf())return b=bD(a.range.end+1,b),b.end+1>this.info.contentLength&&(b=new $C(b.start,this.info.contentLength-1)),new oD([new cD(4,a.j,b,"getNextRequestInfoByLength")]);4===a.type&&(a=this.Ow(a),a=a[a.length-1]);var c=0,d=a.range.start+a.Kb+a.u;3===a.type&&(dD(a),c=a.Na,d===a.range.end+1&&(c+=1));return JD(this,c,d,b)};
g.k.Ox=function(){return null};
g.k.Km=function(a,b){b=void 0===b?!1:b;a=this.index.getSegmentNumberForTime(a);b&&(a=Math.min(this.index.getLastSegmentNumber(),a+1));return JD(this,a,this.index.getOffset(a),0)};
g.k.hn=function(){return!0};
g.k.Ks=function(){return!0};
g.k.vz=function(){return!1};
g.k.UH=function(){return this.indexRange.length+this.initRange.length};
g.k.eK=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};KD.prototype.isMultiChannelAudio=function(){return 2<this.numChannels};var V3={},FB=(V3.WIDTH={name:"width",video:!0,valid:640,invalid:99999},V3.HEIGHT={name:"height",video:!0,valid:360,invalid:99999},V3.FRAMERATE={name:"framerate",video:!0,valid:30,invalid:9999},V3.BITRATE={name:"bitrate",video:!0,valid:3E5,invalid:2E9},V3.EOTF={name:"eotf",video:!0,valid:"bt709",invalid:"catavision"},V3.CHANNELS={name:"channels",video:!1,valid:2,invalid:99},V3.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",invalid:"invalidformat"},V3.DECODETOTEXTURE={name:"decode-to-texture",
video:!0,valid:"false",invalid:"nope"},V3.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",invalid:"av99.0.05M.08"},V3.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",invalid:"invalid"},V3);var Z={},PD=(Z["0"]="f",Z["160"]="h",Z["133"]="h",Z["134"]="h",Z["135"]="h",Z["136"]="h",Z["137"]="h",Z["264"]="h",Z["266"]="h",Z["138"]="h",Z["298"]="h",Z["299"]="h",Z["304"]="h",Z["305"]="h",Z["214"]="h",Z["216"]="h",Z["374"]="h",Z["375"]="h",Z["140"]="a",Z["141"]="ah",Z["327"]="sa",Z["258"]="m",Z["380"]="mac3",Z["328"]="meac3",Z["161"]="H",Z["142"]="H",Z["143"]="H",Z["144"]="H",Z["222"]="H",Z["223"]="H",Z["145"]="H",Z["224"]="H",Z["225"]="H",Z["146"]="H",Z["226"]="H",Z["227"]="H",Z["147"]="H",
Z["384"]="H",Z["376"]="H",Z["385"]="H",Z["377"]="H",Z["149"]="A",Z["261"]="M",Z["381"]="MAC3",Z["329"]="MEAC3",Z["598"]="9",Z["278"]="9",Z["242"]="9",Z["243"]="9",Z["244"]="9",Z["247"]="9",Z["248"]="9",Z["353"]="9",Z["355"]="9",Z["271"]="9",Z["577"]="9",Z["313"]="9",Z["579"]="9",Z["272"]="9",Z["302"]="9",Z["303"]="9",Z["407"]="9",Z["408"]="9",Z["308"]="9",Z["315"]="9",Z["330"]="9h",Z["331"]="9h",Z["332"]="9h",Z["333"]="9h",Z["334"]="9h",Z["335"]="9h",Z["336"]="9h",Z["337"]="9h",Z["338"]="so",Z["600"]=
"o",Z["250"]="o",Z["251"]="o",Z["194"]="*",Z["195"]="*",Z["220"]="*",Z["221"]="*",Z["196"]="*",Z["197"]="*",Z["279"]="(",Z["280"]="(",Z["317"]="(",Z["318"]="(",Z["273"]="(",Z["274"]="(",Z["357"]="(",Z["358"]="(",Z["275"]="(",Z["359"]="(",Z["360"]="(",Z["276"]="(",Z["583"]="(",Z["584"]="(",Z["314"]="(",Z["585"]="(",Z["561"]="(",Z["277"]="(",Z["361"]="(h",Z["362"]="(h",Z["363"]="(h",Z["364"]="(h",Z["365"]="(h",Z["366"]="(h",Z["591"]="(h",Z["592"]="(h",Z["367"]="(h",Z["586"]="(h",Z["587"]="(h",Z["368"]=
"(h",Z["588"]="(h",Z["562"]="(h",Z["409"]="(",Z["410"]="(",Z["411"]="(",Z["412"]="(",Z["557"]="(",Z["558"]="(",Z["394"]="1",Z["395"]="1",Z["396"]="1",Z["397"]="1",Z["398"]="1",Z["399"]="1",Z["400"]="1",Z["401"]="1",Z["571"]="1",Z["402"]="1",Z["694"]="1h",Z["695"]="1h",Z["696"]="1h",Z["697"]="1h",Z["698"]="1h",Z["699"]="1h",Z["700"]="1h",Z["701"]="1h",Z["702"]="1h",Z["703"]="1h",Z["386"]="3",Z["387"]="w",Z["406"]="6",Z["645"]="(",Z["646"]="(",Z["647"]="(",Z["648"]="(",Z["649"]="(",Z["650"]="(",Z["651"]=
"(",Z["652"]="(",Z["653"]="(",Z["654"]="(",Z["655"]="(",Z["656"]="(",Z["657"]="(",Z["658"]="(",Z["659"]="(",Z["660"]="(",Z["661"]="(",Z["662"]="(",Z["663"]="(",Z["664"]="(",Z["665"]="(",Z["666"]="(",Z["667"]="(",Z["668"]="(",Z["669"]="(",Z["670"]="(",Z["671"]="(",Z["672"]="(",Z["673"]="(",Z["674"]="(h",Z["675"]="(h",Z["676"]="(h",Z["677"]="(h",Z["678"]="(h",Z["679"]="(h",Z["680"]="(h",Z["681"]="(h",Z["682"]="(h",Z["683"]="(h",Z["684"]="(h",Z["685"]="(h",Z["686"]="(h",Z["687"]="(h",Z["688"]="A",Z["689"]=
"A",Z["690"]="A",Z["691"]="MEAC3",Z);var ND="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");MD.prototype.isHdr=function(){return"smpte2084"===this.u||"arib-std-b67"===this.u};QD.prototype.cf=function(){return 2===this.containerType};
QD.prototype.isEncrypted=function(){return!!this.yd};
QD.prototype.cn=function(){return!!this.audio};
QD.prototype.isVideo=function(){return!!this.video};g.WD.prototype.getName=function(){return this.name};
g.WD.prototype.getId=function(){return this.id};
g.WD.prototype.getIsDefault=function(){return this.isDefault};
g.WD.prototype.toString=function(){return this.name};
g.WD.prototype.getName=g.WD.prototype.getName;g.WD.prototype.getId=g.WD.prototype.getId;g.WD.prototype.getIsDefault=g.WD.prototype.getIsDefault;g.v(g.XD,Yy);g.XD.prototype.T=function(a,b,c,d,e){return Yy.prototype.T.call(this,a,b,c,d,e)};g.v(kE,g.az);g.k=kE.prototype;g.k.appendBuffer=function(a,b,c){if(this.Zd.zC()!==this.appendWindowStart+this.start||this.Zd.LH()!==this.appendWindowEnd+this.start||this.Zd.Cd()!==this.timestampOffset+this.start)this.Zd.supports(1),this.Zd.LK(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.Zd.yE(this.timestampOffset+this.start);this.Zd.appendBuffer(a,b,c)};
g.k.abort=function(){this.Zd.abort()};
g.k.remove=function(a,b){this.Zd.remove(a+this.start,b+this.start)};
g.k.LK=function(a,b){this.appendWindowStart=a;this.appendWindowEnd=b};
g.k.cI=function(){return this.timestampOffset+this.start};
g.k.zC=function(){return this.appendWindowStart};
g.k.LH=function(){return this.appendWindowEnd};
g.k.yE=function(a){this.timestampOffset=a};
g.k.Cd=function(){return this.timestampOffset};
g.k.Cg=function(a){a=this.Zd.Cg(void 0===a?!1:a);return jE(a,this.start,this.end)};
g.k.Th=function(){return this.Zd.Th()};
g.k.Rp=function(){return this.Zd.Rp()};
g.k.EC=function(){return this.Zd.EC()};
g.k.FL=function(a,b){this.Zd.FL(a,b)};
g.k.supports=function(a){return this.Zd.supports(a)};
g.k.FC=function(){return this.Zd.FC()};
g.k.isView=function(){return!0};
g.k.PE=function(a,b,c){return this.isActive?this.Zd.PE(a,b,c):!1};
g.k.RB=function(){return this.Zd.RB()?this.isActive:!1};
g.k.isLocked=function(){return this.XA&&!this.isActive};
g.k.Sb=function(a){a=this.Zd.Sb(a);a.vw=this.start+"-"+this.end;return a};
g.k.Sy=function(){return this.Zd.Sy()};
g.k.XH=function(){return this.Zd.XH()};
g.k.ra=function(){cz(this.Zd,this.yP);g.az.prototype.ra.call(this)};var vU=!1;g.v(lE,g.az);g.k=lE.prototype;g.k.appendBuffer=function(a,b,c){this.NB=!1;c&&(this.kD=c);b&&(b.isEncrypted()&&(this.bQ=this.kD),3===b.type&&(this.Pe=b));this.sA&&(2<=this.sA.length||1048576<a.length?delete this.sA:this.sA.push(a));var d;(null==(d=this.vc)?0:d.appendBuffer)?this.vc.appendBuffer(a):this.vc?this.vc.append(a):this.Nf&&this.Nf.webkitSourceAppend(this.id,a)};
g.k.abort=function(){try{this.vc?this.vc.abort():this.Nf&&this.Nf.webkitSourceAbort(this.id)}catch(a){}this.kD=this.Pe=null};
g.k.remove=function(a,b){this.NB=!1;var c;(null==(c=this.vc)?0:c.remove)&&this.vc.remove(a,b)};
g.k.zC=function(){if(vU&&this.isVideo)return this.appendWindowStart;var a;return(null==(a=this.vc)?void 0:a.appendWindowStart)||0};
g.k.LH=function(){var a;return(null==(a=this.vc)?void 0:a.appendWindowEnd)||0};
g.k.LK=function(a,b){this.vc&&(vU&&this.isVideo?(this.appendWindowStart=a,this.vc.appendWindowEnd=b):a>this.zC()?(this.vc.appendWindowEnd=b,this.vc.appendWindowStart=a):(this.vc.appendWindowStart=a,this.vc.appendWindowEnd=b))};
g.k.cI=function(){return this.timestampOffset};
g.k.yE=function(a){vU?this.timestampOffset=a:this.supports(1)&&(this.vc.timestampOffset=a)};
g.k.Cd=function(){return vU?this.timestampOffset:this.supports(1)?this.vc.timestampOffset:0};
g.k.Cg=function(a){if(void 0===a?0:a)return this.NB||this.Th()||(this.YN=this.Cg(!1),this.NB=!0),this.YN;try{return this.vc?this.vc.buffered:this.Nf?this.Nf.webkitSourceBuffered(this.id):dE([0],[Infinity])}catch(b){return dE([],[])}};
g.k.Th=function(){var a;return(null==(a=this.vc)?void 0:a.updating)||!1};
g.k.Rp=function(){return this.kD};
g.k.EC=function(){return this.bQ};
g.k.FL=function(a,b){this.containerType!==a&&(this.supports(4),mE()&&this.vc.changeType(b));this.containerType=a};
g.k.FC=function(){return this.Pe};
g.k.isView=function(){return!1};
g.k.supports=function(a){switch(a){case 1:var b;return void 0!==(null==(b=this.vc)?void 0:b.timestampOffset);case 0:var c;return!(null==(c=this.vc)||!c.appendBuffer);case 2:var d;return!(null==(d=this.vc)||!d.remove);case 3:var e,f;return!!((null==(e=this.vc)?0:e.addEventListener)&&(null==(f=this.vc)?0:f.removeEventListener));case 4:return!(!this.vc||!this.vc.changeType);default:return!1}};
g.k.RB=function(){return!this.Th()};
g.k.isLocked=function(){return!1};
g.k.Sb=function(a){a.to=this.Cd();a.up=this.Th();var b,c=(null==(b=this.vc)?void 0:b.appendWindowStart)||0,d;b=(null==(d=this.vc)?void 0:d.appendWindowEnd)||Infinity;a.aw=c.toFixed(3)+"-"+b.toFixed(3);try{a.bu=eE(this.Cg())}catch(e){}return a};
g.k.ra=function(){this.supports(3)&&(this.vc.removeEventListener("updateend",this.Xc),this.vc.removeEventListener("error",this.Xc));g.az.prototype.ra.call(this)};
g.k.PE=function(a,b,c){if(!this.supports(2)||this.Th())return!1;var d=this.Cg(),e=fE(d,a);if(0>e)return!1;try{if(b&&e+1<d.length){var f=d.start(e+1),h=d.end(d.length-1);this.remove(f,h);return!0}if(this.isView())return!1;var l=Math.max(0,a-c);if(0<c&&d.start(e)<l)return this.remove(0,l),!0}catch(m){}return!1};
g.k.Sy=function(){return this.containerType};
g.k.XH=function(){return this.sA};
var Cxa=!1;nE.prototype.dispose=function(){if(!this.isDisposed){if(this.u)try{URL.revokeObjectURL(this.j)}catch(a){}this.B=!0}};
nE.prototype.isDisposed=function(){return this.B};
nE.prototype.equals=function(a){return null!==a&&a.j===this.j};
nE.prototype.toString=function(){return"MediaResource {"+this.j+"}"};g.v(oE,g.J);g.k=oE.prototype;g.k.getDuration=function(){var a;return(null==(a=this.mediaSource)?void 0:a.duration)||this.C};
g.k.Cj=function(a){try{this.mediaSource?this.mediaSource.duration=a:(this.C=a,this.Nf.webkitSourceSetDuration(a))}catch(b){}};
g.k.Xf=function(){try{return"closed"===qE(this)}catch(a){return!0}};
g.k.Th=function(){return!!(this.j&&this.j.Th()||this.u&&this.u.Th())};
g.k.O2=function(){!this.isDisposed()&&pE(this)&&this.callback&&(this.callback(this),this.callback=null)};
g.k.N2=function(){this.dispose()};var Ixa=/action_display_post/;var Jxa;g.v(tE,g.az);g.k=tE.prototype;g.k.isFailed=function(){return 3===this.state};
g.k.z3=function(a){var b,c=a.getElementsByTagName("Representation");if(0<a.getElementsByTagName("SegmentList").length||0<a.getElementsByTagName("SegmentTemplate").length){this.vf=this.u=!0;this.timeline||(this.timeline=new exa);ixa(this.timeline,a,this.La);this.ma("refresh");for(a=0;a<c.length;a++){var d=Xxa(this,c[a]),e=this.isLive&&g.GD(d)&&this.Qa;if(!this.j[d.id]){var f=wE(vD(c[a],"BaseURL").textContent),h=vD(c[a],"Initialization"),l=uD(h,"sourceURL");h=aD(uD(h,"range"));e&&(l="",h=void 0);this.j[d.id]=
new tD(f,d,l,h)}d=this.j[d.id];f=uD(c[a],"id","AdaptationSet");f=""!==f?f:uD(c[a],"mimetype","AdaptationSet");l=this.timeline;l=l.B[d.info.id]||l.u[f]||l.j||null;f=l.j;!this.D&&l.getStreamTimeOffset()&&(this.D=l.getStreamTimeOffset());if(l.D)for(e=[],f=g.r(f),h=f.next();!h.done;h=f.next()){h=h.value;var m=d.info.id,n=8*d.info.Tb,p=h.Na,q=h.startSecs;var u=l.J.split("$$");for(b=0;b<u.length;b++)u[b]=u[b].replace("$RepresentationID$",m),u[b]=u[b].replace("$Number$",p.toString()),u[b]=u[b].replace("$Bandwidth$",
n.toString()),u[b]=u[b].replace("$Time$",q.toString());e.push(new QB(h.Na,h.startSecs,h.durationSecs,h.j,u.join("$"),null,h.u))}else{l=fc(vD(c[a],"SegmentList").getElementsByTagName("SegmentURL"),l.I);h=[];for(m=0;m<l.length;m++){n=h;p=n.push;q=f[m];u=void 0;var w=l[m];b=w.getAttribute("media");if(!e&&(w=w.getAttribute("mediaRange"))){var y=w.split("-");y[1]&&0<=Number(y[1])?u=aD(w):b=b+"?range="+w}p.call(n,new QB(q.Na,q.startSecs,q.durationSecs,q.j,b,u,q.u))}e=h}d.update(e,this.isLive,this.ya)}jxa(this.timeline);
return!0}this.duration=bxa(uD(a,"mediaPresentationDuration"));a:{for(a=0;a<c.length;a++){f=c[a];d=Xxa(this,f);e=wE(vD(f,"BaseURL").textContent);l=vD(f,"SegmentBase");f=aD(l.attributes.getNamedItem("indexRange").value);l=aD(l.getElementsByTagName("Initialization")[0].attributes.getNamedItem("range").value);d=new ID(e,d,l,f);if(!d){c=!1;break a}uE(this,d)}c=!0}return c};
g.k.refresh=function(){if(1!==this.state&&!this.isDisposed()){var a=g.wi(this.sourceUrl,{start_seq:aya(this).toString()});Zxa(this,a).bj(function(){})}};
g.k.resume=function(){Yxa(this)};
g.k.Bd=function(){if(this.isManifestless&&this.C&&zE(this))return zE(this);var a=this.j,b=!1,c=NaN,d=NaN,e;for(e in a){var f=a[e],h=f.index;h.isLoaded()&&(f.C&&(b=!0),h=h.getMaxKnownEndTime(),f.info.cn()&&(isNaN(c)||h<c)?c=h:f.info.isVideo()&&(isNaN(d)||h<d)&&(d=h))}return b||isNaN(d)?c:Math.min(c,d)};
g.k.getMinSeekableTime=function(){if(this.isManifestless){if(AE(this))return AE(this);if(this.Sc){var a=this.getIngestionTime(this.Bd());if(a&&(a-=this.Sc,0<a))return this.Bd()-a}}a=this.j;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.getMinSeekableTime()}return 0};
g.k.getStreamTimeOffset=function(){return this.D};
g.k.getIngestionTime=function(a){for(var b in this.j){var c=this.j[b].index;if(c.isLoaded()){var d=c.getSegmentNumberForTime(a),e=c.getIngestionTime(d);if(e)return e+a-c.getStartTime(d)}}return NaN};
var EE=null,C0a,gya=!(null==(C0a=navigator.mediaCapabilities)||!C0a.decodingInfo),Wxa={commentary:1,alternate:2,dub:3,main:4};KE.prototype.clone=function(a){return new KE(this.flavor,a,this.u,this.experiments)};
KE.prototype.Sb=function(){return{flavor:this.flavor,keySystem:this.keySystem}};
KE.prototype.Dg=function(){switch(this.keySystem){case "com.youtube.playready":return"PRY";case "com.microsoft.playready":return"PRM";case "com.widevine.alpha":return"WVA";case "com.youtube.widevine.l3":return"WVY";case "com.youtube.widevine.forcehdcp":return"WVYF";case "com.youtube.fairplay":return"FPY";case "com.apple.fps.1_0":return"FPA";default:return this.keySystem}};
var D0a={},TE=(D0a.playready=["com.youtube.playready","com.microsoft.playready"],D0a.widevine=["com.youtube.widevine.forcehdcp","com.youtube.widevine.l3","com.widevine.alpha"],D0a),W3={},BOa=(W3.widevine="DRM_SYSTEM_WIDEVINE",W3.fairplay="DRM_SYSTEM_FAIRPLAY",W3.playready="DRM_SYSTEM_PLAYREADY",W3),X3={},E0a=(X3.widevine=1,X3.fairplay=2,X3.playready=3,X3);g.v(UE,g.J);
UE.prototype.initialize=function(a,b){for(var c=this,d=g.r(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=g.r(a[e.value]);for(var f=e.next();!f.done;f=e.next())if(f=f.value,f.yd)for(var h=g.r(Object.keys(f.yd)),l=h.next();!l.done;l=h.next())if(l=l.value,TE[l])for(var m=g.r(TE[l]),n=m.next();!n.done;n=m.next())n=n.value,this.B[n]=this.B[n]||new KE(l,n,f.yd[l],this.experiments),this.u[l]=this.u[l]||{},this.u[l][f.mimeType]=!0}if(Pu()&&(this.B["com.youtube.fairplay"]=new KE("fairplay","com.youtube.fairplay",
"",this.experiments),this.u.fairplay={'video/mp4; codecs="avc1.4d400b"':!0,'audio/mp4; codecs="mp4a.40.5"':!0},this.K("html5_enable_vp9_fairplay")))for(d=g.r(Object.keys(a)),e=d.next();!e.done;e=d.next())for(e=g.r(a[e.value]),f=e.next();!f.done;f=e.next())f=f.value,f.yd&&f.yd.fairplay&&(this.u.fairplay[f.mimeType]=!0);this.j=sya(b,this.useCobaltWidevine,this.K("html5_enable_safari_fairplay"),g.JE(this.experiments,"html5_hdcp_probing_stream_url")).filter(function(p){return!!c.B[p]})};
UE.prototype.K=function(a){return this.experiments.jb(a)};var VRa={"":"LIVE_STREAM_MODE_UNKNOWN",dvr:"LIVE_STREAM_MODE_DVR",lp:"LIVE_STREAM_MODE_LP",post:"LIVE_STREAM_MODE_POST",window:"LIVE_STREAM_MODE_WINDOW",live:"LIVE_STREAM_MODE_LIVE"};var F0a={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1,kitkat:4.4,lollipop:5.1,marshmallow:6,nougat:7.1},Y3;a:{var Z3=g.nb();Z3=Z3.toLowerCase();if(g.eb(Z3,"android")){var G0a=Z3.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(G0a){var H0a=parseFloat(G0a[1]);if(100>H0a){Y3=H0a;break a}}var I0a=Z3.match("("+g.rf(F0a).join("|")+")");Y3=I0a?F0a[I0a[0]]:0}else Y3=void 0}var OF=Y3,NF=0<=OF;var oza={RED:"red",Y3a:"white"};var mza={a$:"adunit",Fma:"detailpage",mna:"editpage",vna:"embedded",Bna:"embedded_unbranded",iAa:"leanback",DOa:"previewpage",ePa:"profilepage",VW:"unplugged",HNa:"playlistoverview",bVa:"sponsorshipsoffer",qSa:"shortspage",Yta:"handlesclaiming",tU:"immersivelivepage"};zya.prototype.jb=function(a){return"true"===this.flags[a]};var Aya=Promise.resolve(),Dya=window.queueMicrotask?window.queueMicrotask.bind(window):Bya;WE.prototype.canPlayType=function(a,b){a=a.canPlayType?a.canPlayType(b):!1;Uu?a=a||J0a[b]:2.2===OF?a=a||K0a[b]:Nu()&&(a=a||L0a[b]);return!!a};
WE.prototype.isTypeSupported=function(a){return this.J?window.cast.receiver.platform.canDisplayType(a):aE(a)};
var K0a={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},L0a={"application/x-mpegURL":"maybe"},J0a={"application/x-mpegURL":"maybe"};ZE.prototype.enqueue=function(a,b){this.queue.push({url:a,options:b});Kya(this)};
ZE.prototype.flush=function(){for(;this.queue.length;){var a=this.queue.shift();g.Au(a.url,a.options)}};g.v($E,g.az);$E.prototype.add=function(a,b){!this.items[a]&&(b.jy||b.UB||b.QA)&&(this.items[a]=Gca(b),this.ma("vast_info_card_add",a))};
$E.prototype.remove=function(a){var b=this.get(a);delete this.items[a];return b};
$E.prototype.get=function(a){return this.items[a]||null};
$E.prototype.isEmpty=function(){return g.vf(this.items)};var WF={bCa:1,cCa:2,dCa:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};var Lya=!1,bF,cF,dF,eF,fF;gF.prototype.encrypt=function(a){var b=a.length;a=new Uint8Array(a.buffer.slice(a.byteOffset,a.byteOffset+b));for(var c=this.u,d=0;d<b&&16>this.j;)a[d++]^=c[this.j++];for(var e=b-(b-d)%16;d<e;)Nya(this),a[d++]^=c[0],a[d++]^=c[1],a[d++]^=c[2],a[d++]^=c[3],a[d++]^=c[4],a[d++]^=c[5],a[d++]^=c[6],a[d++]^=c[7],a[d++]^=c[8],a[d++]^=c[9],a[d++]^=c[10],a[d++]^=c[11],a[d++]^=c[12],a[d++]^=c[13],a[d++]^=c[14],a[d++]^=c[15];if(d<b)for(Nya(this),this.j=0;d<b;)a[d++]^=c[this.j++];return a};var hF=!1;(function(){function a(d){for(var e=new Uint8Array(d.length),f=0;f<d.length;f++)e[f]=d[f];return e}
function b(d){return new Uint8Array(d)}
var c=new Uint8Array([1]);return 1===c.length&&1===c[0]?b:a})();
var iF;g.kF.prototype.encrypt=function(a,b){var c=this,d,e;return g.z(function(f){if(1==f.j){d=jF();if(!d)return f.return(c.j(a,b));g.pa(f,3);return g.x(f,c.u(a,b,d),5)}if(3!=f.j)return f.return(f.u);e=g.ua(f);g.pz(e);hF=!0;return f.return(c.j(a,b))})};
g.kF.prototype.u=function(a,b,c){var d=this,e,f,h;return g.z(function(l){switch(l.j){case 1:if(d.D){l.Ma(2);break}e=d;return g.x(l,c.importKey("raw",d.C,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:e.D=l.u;case 2:return f={name:"AES-CTR",counter:b,length:128},g.x(l,c.encrypt(f,d.D,a),4);case 4:return h=l.u,l.return(new Uint8Array(h))}})};
g.kF.prototype.j=function(a,b){this.B||(this.B=new gF(this.C));Mya(this.B,b);return this.B.encrypt(a)};
g.kF.prototype.decrypt=function(a,b){return this.encrypt(a,b)};
g.lF.prototype.encrypt=function(a,b){this.j||(this.j=new gF(this.u));Mya(this.j,b);return this.j.encrypt(a)};
g.lF.prototype.decrypt=function(a,b){return this.encrypt(a,b)};mF.prototype.reset=function(){Pya(this);this.update(this.B)};
mF.prototype.update=function(a){var b=0,c=a.length;this.C+=c;this.u&&64<=this.u+c&&(this.I.set(a.subarray(0,64-this.u),this.u),b=64-this.u,this.u=0,Oya(this,this.I,0));for(;b+64<=c;b+=64)Oya(this,a,b);b<c&&(a=a.subarray(b),this.I.set(a,this.u),this.u+=a.length)};
var nF=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,
4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];var M0a;M0a={};g.N0a=g.Ow("yt-idb-pref-storage",{xq:(M0a.prefs={Rn:1},M0a),Xw:!1,upgrade:function(a,b){b(1)&&g.lw(g.gw(a,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});pF.prototype.ih=function(a,b){var c=this;b=void 0===b?1:b;this.j+=b;this.B+=a;var d=a/b;oF.forEach(function(e,f){d<e||(c.u[f]+=b)})};
pF.prototype.toString=function(){return""};
var oF=[20,100,500,2E3];g.k=Zya.prototype;g.k.isActive=function(){return!0};
g.k.bD=function(a,b){var c=this;if(b){var d={},e;for(e in b)b.hasOwnProperty(e)&&(d.cF=a.prototype[e],d.fF=b[e],a.prototype[e]=function(f){return function(){var h=g.za.apply(0,arguments),l=(0,g.T)();h=f.cF.apply(this,h);qF(c,f.fF,(0,g.T)()-l);return h}}(d)),d={cF:d.cF,
fF:d.fF}}};
g.k.Rq=function(a){return new Yya(a)};
g.k.Lp=function(a,b){b=void 0===b?1:b;a instanceof Yya&&(qF(this,a.name,(0,g.T)()-a.startTimeMs,b),a.j=!0)};
g.k.qK=function(a,b){var c=void 0===c?1:c;var d=(0,g.T)();b();qF(this,a,(0,g.T)()-d,c)};
g.k.QO=function(){var a={},b;for(b in this.profiles)if(this.profiles.hasOwnProperty(b)){var c=this.profiles[b];if(0===c.j)c=null;else{for(var d=c.j.toString()+"."+Math.round(c.B).toString(),e=0;e<oF.length;++e)if(0<c.u[e])d+="."+oF[e].toString()+"_"+Math.round(c.u[e]).toString();else break;c=d}c&&(a[b]=c)}this.profiles=new Xya;return a};
g.k.toString=function(){return""};g.k=rF.prototype;g.k.isActive=function(){return!1};
g.k.bD=function(){};
g.k.Rq=function(){};
g.k.Lp=function(){};
g.k.qK=function(a,b){b()};
g.k.QO=function(){return{}};
g.k.toString=function(){return""};var $3,wX,a4,$T,pSa;$3=new rF;wX=$t("html5_enable_profiler")||$t("html5_onesie_enable_profiler")||$t("html5_offline_encryption_enable_profiler")||0<$t("html5_performance_impact_profiling_timer_ms")?new Zya:new rF;g.sS=$t("html5_enable_profiler")?wX:$3;a4=$t("html5_onesie_enable_profiler")?wX:$3;$T=$t("html5_offline_encryption_enable_profiler")?wX:$3;pSa=$t("html5_performance_impact_profiling_timer_ms")?wX:$3;g.v(sF,g.kF);sF.prototype.j=function(a,b){var c=a4.Rq("oap");b=g.kF.prototype.j.call(this,a,b);a4.Lp(c,Math.ceil(a.length/16));return b};
sF.prototype.u=function(a,b,c){var d=this,e,f;return g.z(function(h){if(1==h.j)return e=a4.Rq("oan2"),g.x(h,g.kF.prototype.u.call(d,a,b,c),2);f=h.u;a4.Lp(e,Math.ceil(a.byteLength/16));return h.return(f)})};
g.v(tF,g.lF);tF.prototype.encrypt=function(a,b){var c=a4.Rq("oap");b=g.lF.prototype.encrypt.call(this,a,b);a4.Lp(c,Math.ceil(a.byteLength/16));return b};vF.prototype.rh=function(a,b){var c=Math.pow(this.alpha,a);this.j=b*(1-c)+c*this.j;this.u+=a};
vF.prototype.Rh=function(){return this.j/(1-Math.pow(this.alpha,this.u))};wF.prototype.rh=function(a,b){a=Math.min(this.j,Math.max(1,Math.round(a*this.resolution)));a+this.valueIndex>=this.j&&(this.u=!0);for(;a--;)this.values[this.valueIndex]=b,this.valueIndex=(this.valueIndex+1)%this.j;this.C=!0};
wF.prototype.Rh=function(){return this.I?(xF(this,this.B-this.I)+xF(this,this.B)+xF(this,this.B+this.I))/3:xF(this,this.B)};g.v(iza,g.J);var nza="blogger gac books docs duo google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),uza={Mda:"cbrand",Vda:"cbr",Wda:"cbrver",kwa:"c",nwa:"cver",mwa:"ctheme",lwa:"cplayer",cGa:"cmodel",KHa:"cnetwork",KLa:"cos",LLa:"cosver",ZMa:"cplatform"};g.v(cG,g.J);g.k=cG.prototype;g.k.K=function(a){return this.experiments.jb(a)};
g.k.getVideoUrl=function(a,b,c,d,e){b={list:b};c&&(e?b.time_continue=c:b.t=c);c=g.fG(this);d&&"www.youtube.com"===c?d="https://youtu.be/"+a:g.SF(this)?(d="https://"+c+"/fire",b.v=a):(d=this.protocol+"://"+c+"/watch",b.v=a,Uu&&(a=Vla())&&(b.ebc=a));return g.wi(d,b)};
g.k.getVideoEmbedCode=function(a,b,c,d){b="https://"+g.fG(this)+"/embed/"+b;d&&(b=g.wi(b,{list:d}));d=c.width;c=c.height;b=g.Tg(b);return'<iframe width="'+d+'" height="'+c+'" src="'+b+'" title="'+((null!=a?a:"YouTube video player")+'" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>')};
g.k.supportsGaplessAudio=function(){return g.$D&&!Uu&&74<=vma()||g.oB&&g.vc(68)?!0:!1};
g.k.getPlayerType=function(){return this.deviceParams.cplayer};
var xza=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],sza=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"];g.k=AG.prototype;g.k.Dg=function(){return this.j};
g.k.Px=function(){return null};
g.k.UM=function(){var a=this.Px();return a?(a=g.lu(a.j),Number(a.expire)):NaN};
g.k.FK=function(){};
g.k.getHeight=function(){return this.j.video.height};yza.prototype.Xe=function(){Bza(this);var a=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],b={};a:if(this.j)var c=this.j;else{c="";for(var d=g.r(this.B),e=d.next();!e.done;e=d.next())if(e=e.value,e.Nc){if(e.Nc.getIsDefault()){c=e.Nc.getId();break a}c||(c=e.Nc.getId())}}d=g.r(this.B);for(var f=d.next();!f.done;f=d.next())if(e=f.value,this.I||!e.Nc||e.Nc.getId()===c)b[e.itag]||(b[e.itag]=[]),b[e.itag].push(e);c=g.r(this.u);for(e=c.next();!e.done;e=c.next())if(d=e.value,e=b[d.j])for(e=g.r(e),f=e.next();!f.done;f=
e.next()){var h=a,l=h.push;f=f.value;var m="#EXT-X-MEDIA:TYPE=AUDIO,",n="YES",p="audio";if(f.Nc){p=f.Nc;var q=p.getId().split(".")[0];q&&(m+='LANGUAGE="'+q+'",');(this.j?this.j===p.getId():p.getIsDefault())||(n="NO");p=p.getName()}q="";null!==d&&(q=d.itag.toString());q=CG(this,f.url,q);m=m+('NAME="'+p+'",DEFAULT='+(n+',AUTOSELECT=YES,GROUP-ID="'))+(Aza(f,d)+'",URI="'+(q+'"'));l.call(h,m)}c=g.r(this.D);for(d=c.next();!d.done;d=c.next())d=d.value,e=O0a,d=(h=d.Nc)?'#EXT-X-MEDIA:URI="'+CG(this,d.url)+
'",TYPE=SUBTITLES,GROUP-ID="'+e+'",LANGUAGE="'+h.getId()+'",NAME="'+h.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,d&&a.push(d);c=0<this.D.length?O0a:void 0;d=g.r(this.u);for(e=d.next();!e.done;e=d.next())e=e.value,h=b[e.j],l=void 0,0<(null==(l=h)?void 0:l.length)&&(h=h[0],h="#EXT-X-STREAM-INF:BANDWIDTH="+(e.bitrate+h.bitrate)+',CODECS="'+(e.codecs+","+h.codecs+'",RESOLUTION=')+(e.width+"x"+e.height+',AUDIO="')+(Aza(h,e)+'",')+(c?'SUBTITLES="'+c+'",':"")+"CLOSED-CAPTIONS=NONE",1<e.fps&&(h+=",FRAME-RATE="+
e.fps),e.tx&&(h+=",VIDEO-RANGE="+e.tx),a.push(h),a.push(CG(this,e.url,"")));return a.join("\n")};
var O0a="text";g.v(DG,AG);DG.prototype.UM=function(){return this.expiration};
DG.prototype.Px=function(){if(!this.u||this.u.isDisposed()){var a=this.B.Xe();a="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(a);this.u=new nE(a)}return this.u};g.v(EG,AG);EG.prototype.Px=function(){return new nE(this.u.ye())};
EG.prototype.FK=function(){this.u=PB(this.u)};g.v(FG,AG);FG.prototype.Px=function(){return new nE(this.u)};g.k=g.GG.prototype;g.k.getId=function(){return this.id};
g.k.getName=function(){return this.name};
g.k.isServable=function(){return this.j};
g.k.ye=function(){return this.url};
g.k.toString=function(){return this.languageCode+": "+g.HG(this)+" - "+this.vssId};
g.k.equals=function(a){return a?this.toString()===a.toString():!1};
g.k.isValid=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var Nza={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},Oza={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},Pza=/^(\d*)_((\d*)_?(\d*))$/;var Rza={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},Sza={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var b4={},VAa=(b4.ALWAYS=1,b4.BY_REQUEST=3,b4.UNKNOWN=void 0,b4),c4={},fAa=(c4.COLOR_PRIMARIES_BT709="bt709",c4.COLOR_PRIMARIES_BT2020="bt2020",c4.COLOR_PRIMARIES_UNKNOWN=null,c4.COLOR_PRIMARIES_UNSPECIFIED=null,c4),d4={},Uza=(d4.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",d4.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",d4.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",d4.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",d4.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,d4.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=
null,d4),e4={},OG=(e4.FAIRPLAY="fairplay",e4.PLAYREADY="playready",e4.WIDEVINE="widevine",e4.CLEARKEY=null,e4.FLASHACCESS=null,e4.UNKNOWN=null,e4.WIDEVINE_CLASSIC=null,e4),f4={},$Aa=(f4.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",f4.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",f4.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",f4.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",f4);PG.prototype.toString=function(){return this.type+this.id};g.RG.prototype.Mf=function(a){a=a||"hqdefault.jpg";var b=this.fg[a];if(b)return b;if("sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a)return b;if(this.IE)return gG(this.Sa,this.IE,a)};
g.RG.prototype.Om=function(){return this.Sa.getVideoUrl(this.videoId,this.playlistId)};g.SG.prototype.Mf=function(a){a||(a="hqdefault.jpg");var b=this.fg[a];return b?b:"pop1.jpg"===a||"pop2.jpg"===a||"sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a?b:gG(this.Sa,this.videoId,a)};
g.SG.prototype.Om=function(){return this.watchUrl||this.Sa.getVideoUrl(this.videoId)};UG.prototype.getState=function(){return this.store.getState()};
UG.prototype.dispatch=function(a){return this.store.dispatch(a)};
UG.prototype.subscribe=function(a){return this.store.subscribe(a)};
UG.prototype.replaceReducer=function(a){return this.store.replaceReducer(a)};
UG.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};for(var qAa={buttonEntity:358,captionTrack:225,channelHandle:275,commerceCartListEntity:236,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,flowStateEntity:252,iconBadgeEntity:229,liveChatPollStateEntity:217,logoEntity:245,mainDownloadsListEntity:164,mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,
markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,musicShare:100,musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,
offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,refresh:148,settingEntity:297,transfer:120,videoPlaybackPositionEntity:76,ytMainChannelEntity:152,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},pAa={},P0a=g.r(Object.entries(qAa)),Q0a=P0a.next();!Q0a.done;Q0a=P0a.next()){var R0a=g.r(Q0a.value),S0a=R0a.next().value,T0a=R0a.next().value,U0a=S0a,V0a=T0a;V0a&&(pAa[V0a]=U0a)};var g4;g4={};g.W0a=(g4.INVALID_ENCODER_VERSION="Invalid encoder version",g4.KEY_CREATION_FAILED="Failed to create encoder key",g4.UNKNOWN_DECODE_ERROR="Failed to decode PES data",g4.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",g4.WRONG_DATA_TYPE="Encoder cannot process the data type",g4);var jAa;
jAa=function(a){for(var b=Object.keys(a),c={},d=0;d<b.length;d++){var e=b[d];"function"===typeof a[e]&&(c[e]=a[e])}var f=Object.keys(c);try{Ska(c)}catch(l){var h=l}return function(l,m){l=void 0===l?{}:l;if(h)throw h;for(var n=!1,p={},q=0;q<f.length;q++){var u=f[q],w=l[u],y=(0,c[u])(w,m);if("undefined"===typeof y)throw l=m&&m.type,Error("Given "+(l&&'action "'+String(l)+'"'||"an action")+', reducer "'+u+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.');p[u]=
y;n=n||y!==w}return(n=n||f.length!==Object.keys(l).length)?p:l}}({entities:function(a,b){a=void 0===a?{}:a;
return sAa(a,b)}});
g.RH=new UG;var tAa=["APP_STATE","PI"];var h4={},xAa=g.Ow("yt-player-local-media",{xq:(h4.index={Rn:2},h4.media={Rn:2},h4.captions={Rn:5},h4),Xw:!1,upgrade:function(a,b){b(2)&&(g.gw(a,"index"),g.gw(a,"media"));b(5)&&g.gw(a,"captions");b(6)&&(hw(a,"metadata"),hw(a,"playerdata"))},
version:5});nH.prototype.set=function(a,b,c){c=void 0!==c?Date.now()+c:void 0;this.j.set(a,b,c)};
nH.prototype.get=function(a){return this.j.get(a)};
nH.prototype.remove=function(a){this.j.remove(a)};var oH=void 0;uAa("LMS",function(){return g.z(function(a){return a.return(g.pH())})});var tH,CAa;tH=0;CAa=!1;g.FAa=/^([\w\-_]+)\|(\d+)(;[\w\-_]+)?\|(\d+)\|(\d+)$/;uAa("LMDB",function(){var a,b;return g.z(function(c){if(1==c.j)return g.x(c,g.Aw(),2);if(3!=c.j){a=c.u;if(!a)throw g.Zv("edd");return g.x(c,g.sH(a),3)}b=c.u;return c.return(g.iw(b,["index","media","captions"],{mode:"readonly",Zb:!0},function(d){var e={};d=[g.mw(d.objectStore("index"),{},function(f){e[f.getKey()]=f.getValue();return f.continue()}),
wna(d.objectStore("media")),wna(d.objectStore("captions"))];return g.aw.all(d).then(function(f){var h=g.r(f);h.next();f=h.next().value;h=h.next().value;return{index:e,media:GAa(f||[]),captions:h}})}))})});g.v(wH,g.az);wH.prototype.ra=function(){this.j&&(this.j=this.j.onload=null);g.az.prototype.ra.call(this)};g.k=g.AH.prototype;g.k.getHeight=function(){return this.height};
g.k.dP=aa(2);g.k.rB=function(){return this.frameCount};
g.k.isDefault=function(){return-1!==this.B.indexOf("default")};
g.k.isLoaded=function(a){return this.loaded.has(a)};
g.k.ye=function(a){var b=this.C;b=b.replace("$N",this.B);b=b.replace("$L",this.level.toString());b=b.replace("$M",a.toString());this.signature&&(b=g.wi(b,{sigh:this.signature}));return oA(b)};
g.k.sB=function(a){var b=this.rB()-1;return g.Eg(0===this.j?Math.round(a*this.frameCount/this.videoLength):Math.round(1E3*a/this.j),0,b)};
g.k.Hu=function(){return this.frameCount-1};
g.k.MF=function(){return this.frameCount?0:-1};
g.k.VM=function(){};g.v(BH,wH);BH.prototype.u=function(a,b){var c=[];a=a.split("|");for(var d=a[0],e=1;e<a.length;e++){var f=this.I(e-1,d,a[e],b);(this.S||180>f.getHeight())&&c.push(f)}return c};
BH.prototype.I=function(a,b,c,d){return new g.AH(a,b,c,d)};g.v(CH,g.AH);g.k=CH.prototype;g.k.rB=function(){return this.u.getNumberOfSegments()};
g.k.sB=function(a){var b=this.rows*this.columns*this.D,c=this.u,d=c.getLastSegmentNumber();a=c.getSegmentNumberForTime(a);return a>d-b?-1:a};
g.k.Hu=function(){return this.u.getLastSegmentNumber()};
g.k.MF=function(){return this.u.getFirstSegmentNumber()};
g.k.VM=function(a){this.u=a};g.v(DH,BH);DH.prototype.u=function(a,b){return BH.prototype.u.call(this,"$N|"+a,b)};
DH.prototype.I=function(a,b,c){return new CH(a,b,c,this.isLive)};g.v(g.FH,g.az);g.k=g.FH.prototype;g.k.V=function(){return this.Sa};
g.k.K=function(a){return this.Sa.K(a)};
g.k.hg=function(){return!this.isLivePlayback||this.allowLiveDvr};
g.k.hasSupportedAudio51Tracks=function(){var a;return!(null==(a=this.Ld)||!a.Lb)};
g.k.ZQ=function(){this.isDisposed()||(this.j.u||this.j.unsubscribe("refresh",this.ZQ,this),this.kO(-1))};
g.k.kO=function(a){if(!this.isLivePlayback||!this.S||"fairplay"!=this.S.flavor){var b=Txa(this.j,this.bG);if(0<b.length){for(var c=g.r(b),d=c.next();!d.done;d=c.next())d=d.value,d.startSecs=Math.max(d.startSecs,this.getMinSeekableTime());this.ma("cuepointupdated",b,a);this.bG+=b.length;if(MH(this)&&2<=this.Sa.Z)for(b=g.r(b),d=b.next();!d.done;d=b.next())c=d.value,this.va("cuepoint",{segNum:a,event:c.event,startSecs:c.startSecs,id:c.identifier.slice(-16)}),"start"===c.event&&(c=c.startSecs,this.cK.start=
this.nz,this.cK.end=c+3)}}};
g.k.pj=function(){var a={};this.u&&(a.fmt=this.u.itag,this.D&&this.D.itag!=this.u.itag&&(a.afmt=this.D.itag));a.ei=this.eventId;a.list=this.playlistId;a.cpn=this.clientPlaybackNonce;this.videoId&&(a.v=this.videoId);this.Qi&&(a.infringe=1);this.Fi&&(a.splay=1);var b=cI(this);b&&(a.live=b);this.Lt&&(a.sautoplay=1);this.un&&(a.autoplay=1);this.Ru&&(a.sdetail=this.Ru);this.qa&&(a.partnerid=this.qa);this.osid&&(a.osid=this.osid);return a};
g.k.Ji=function(){if(this.cotn)return null;var a=g.lG(this.Sa)||this.K("web_l3_storyboard");if(!this.Ni)if(this.playerResponse&&this.playerResponse.storyboards){var b=this.playerResponse.storyboards,c=b.playerStoryboardSpecRenderer;c&&c.spec?this.Ni=new BH(c.spec,this.lengthSeconds,void 0,!1,a):(b=b.playerLiveStoryboardSpecRenderer)&&b.spec&&this.j&&(c=Cca(this.j.j).index)&&(this.Ni=new DH(b.spec,this.j.isLive,c,a))}else this.Su?this.Ni=new BH(this.Su,this.lengthSeconds,void 0,!1,a):this.wu&&this.j&&
(b=Cca(this.j.j).index)&&(this.Ni=new DH(this.wu,this.j.isLive,b,a));return this.Ni};
g.k.getStoryboardFormat=function(){if(this.cotn)return null;if(this.playerResponse&&this.playerResponse.storyboards){var a=this.playerResponse.storyboards;return(a=a.playerStoryboardSpecRenderer||a.playerLiveStoryboardSpecRenderer)&&a.spec||null}return this.Su||this.wu};
g.k.Bd=function(){return this.j&&!isNaN(this.j.Bd())?this.j.Bd():MH(this)?0:this.lengthSeconds};
g.k.getMinSeekableTime=function(){return this.j&&!isNaN(this.j.getMinSeekableTime())?this.j.getMinSeekableTime():0};
g.k.getPlaylistSequenceForTime=function(a){if(this.j&&this.u){var b=this.j.j[this.u.id];if(!b)return null;var c=b.index.getSegmentNumberForTime(a);b=b.index.getStartTime(c);return{sequence:c,elapsed:Math.floor(1E3*(a-b))}}return null};
g.k.isValid=function(){return!this.isDisposed()&&!(!this.videoId&&!this.Pk)};
g.k.isLoaded=function(){return GH(this)&&!this.jf&&!this.Zl};
g.k.Mf=function(a){if(30==this.qa)return(a=this.fg["default.jpg"])?a:this.videoId?g.wi("//docs.google.com/vt",{id:this.videoId,authuser:this.authUser,authkey:this.authKey}):"//docs.google.com/images/doclist/cleardot.gif";a||(a="hqdefault.jpg");var b=this.fg[a];return b||this.Sa.S||"pop1.jpg"==a||"pop2.jpg"==a||"sddefault.jpg"==a||"hq720.jpg"==a||"maxresdefault.jpg"==a?b:gG(this.Sa,this.videoId,a)};
g.k.vf=function(){return this.isLivePlayback||this.uf||this.Bk||!(!this.liveUtcStartSeconds||!this.Gk)};
g.k.isOtf=function(){return!!this.j&&(this.j.isOtf||!this.uf&&!this.isLivePlayback&&this.j.u)};
g.k.getAvailableAudioTracks=function(){return this.B?0<this.B.getAvailableAudioTracks().length?this.B.getAvailableAudioTracks():this.vr||[]:[]};
g.k.getAudioTrack=function(){var a=this;if(this.D&&!TD(this.D))return g.Pb(this.getAvailableAudioTracks(),function(d){return d.id==a.D.id})||this.Ul;
if(this.vr){if(!this.hm)for(var b=g.r(this.vr),c=b.next();!c.done;c=b.next())if(c=c.value,c.Nc.getIsDefault()){this.hm=c;break}return this.hm||this.Ul}return this.Ul};
g.k.getPlayerResponse=function(){return this.playerResponse};
g.k.Om=function(){return this.watchUrl?this.watchUrl:this.Sa.getVideoUrl(this.videoId)};
g.k.FI=function(){return!!this.j&&(Lxa(this.j)||Mxa(this.j)||Nxa(this.j))};
g.k.isAd=function(){return!!this.adFormat};
g.k.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)};
g.k.SK=function(){return this.Nj||this.Te};
g.k.AA=function(){return this.Vg||this.Te};
g.k.AG=function(){return XH(this,"html5_samsung_vp9_live")};
g.k.useInnertubeDrmService=function(){return!0};
g.k.va=function(a,b,c){this.ma("ctmp",a,b,c)};
g.k.rK=function(a,b,c){this.ma("ctmpstr",a,b,c)};
g.k.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)};
g.k.ra=function(){g.az.prototype.ra.call(this);delete this.Tk;this.Vt=null;delete this.ZT;delete this.accountLinkingConfig;delete this.j;this.B=this.playerResponse=this.watchNextResponse=null;this.Qk=this.adaptiveFormats="";delete this.botguardData;this.Mu={};this.Kd=this.suggestions=this.Vk=null};zI.prototype.sz=function(){return!1};
zI.prototype.Ba=function(){return function(){return null}};var HI=null;g.v(GI,g.az);GI.prototype.Ry=function(a){return this.j.hasOwnProperty(a)?this.j[a].Ry():{}};
g.Fa("ytads.bulleit.getVideoMetadata",function(a){return II().Ry(a)});
g.Fa("ytads.bulleit.triggerExternalActivityEvent",function(a,b,c){var d=II();c=bCa(c);null!==c&&d.ma(c,{queryId:a,viewabilityString:b})});g.v(OI,zI);g.k=OI.prototype;g.k.gw=function(){return!0};
g.k.Cr=function(){return!1};
g.k.isSkippable=function(){return null!=this.Aa};
g.k.Tf=function(){return this.J};
g.k.getVideoUrl=function(){return null};
g.k.sz=function(){return!0};g.v(VI,zI);VI.prototype.gw=function(){return!0};
VI.prototype.Cr=function(){return!1};
VI.prototype.sz=function(){return!0};
VI.prototype.Ba=function(){return function(){return g.ch("video-ads")}};hCa.prototype.isPostroll=function(){return"AD_PLACEMENT_KIND_END"==this.j.j};var hVa={u6:"FINAL",OT:"AD_BREAK_LENGTH",K9:"AD_CPN",R9:"AH",V9:"AD_MT",Y9:"ASR",c$:"AW",gga:"NM",hga:"NX",iga:"NY",bU:"CONN",pha:"CPN",hna:"DV_VIEWABILITY",hoa:"ERRORCODE",qoa:"ERROR_MSG",toa:"EI",qU:"GOOGLE_VIEWABILITY",vva:"IAS_VIEWABILITY",qya:"LACT",xW:"LIVE_TARGETING_CONTEXT",rCa:"I_X",sCa:"I_Y",rFa:"MT",HFa:"MIDROLL_POS",IFa:"MIDROLL_POS_MS",NFa:"MOAT_INIT",OFa:"MOAT_VIEWABILITY",MW:"P_H",yNa:"PV_H",zNa:"PV_W",NW:"P_W",VNa:"TRIGGER_TYPE",LQa:"SDKV",QW:"SLOT_POS",GXa:"SURVEY_LOCAL_TIME_EPOCH_S",
FXa:"SURVEY_ELAPSED_MS",XW:"VIS",R2a:"VIEWABILITY",X2a:"VED",YW:"VOL",h3a:"WT",ZW:"YT_ERROR_CODE"};var pCa=["FINAL","CPN","MIDROLL_POS","SDKV","SLOT_POS"];aJ.prototype.send=function(a,b,c){try{qCa(this,a,b,c)}catch(d){}};g.v(bJ,aJ);bJ.prototype.j=function(){return this.Vr?g.uG(g.sI(this.Vr)):Gu("")};
bJ.prototype.u=function(){return this.Vr?this.Vr.V().pageId:""};var wfa=eaa(["attributionsrc"]);
cJ.prototype.send=function(a,b,c){try{var d=new g.Dj(a);if("1"===d.u.get("ase")&&"video_10s_engaged_view"===d.u.get("label")){var e=document.createElement("img");yfa(e,a+"&asr=1")}var f=a.match(ii);if("https"===f[1])var h=a;else f[1]="https",h=gi("https",f[2],f[3],f[4],f[5],f[6],f[7]);a=h;var l=gka(a);d=[];qu(a)&&(d.push({headerType:"USER_AUTH"}),d.push({headerType:"PLUS_PAGE_ID"}),d.push({headerType:"VISITOR_ID"}),d.push({headerType:"EOM_VISITOR_ID"}));this.Ir.send({baseUrl:a,scrubReferrer:l,headers:d},
b,c)}catch(m){}};g.v(sCa,g.J);g.v(tJ,g.az);g.k=tJ.prototype;g.k.Ry=function(){return{}};
g.k.kS=function(){};
g.k.qg=function(a){this.Qr();this.ma(a)};
g.k.Qr=function(){yCa(this,this.Aa,3);this.Aa=[]};
g.k.getDuration=function(){return this.G.getDuration(2,!1)};
g.k.gz=function(){var a=this.j;dJ(a)||!mJ(a,"impression")&&!mJ(a,"start")||mJ(a,"abandon")||mJ(a,"complete")||mJ(a,"skip")||pJ(a,"pause");this.C||(a=this.j,dJ(a)||!mJ(a,"unmuted_impression")&&!mJ(a,"unmuted_start")||mJ(a,"unmuted_abandon")||mJ(a,"unmuted_complete")||pJ(a,"unmuted_pause"))};
g.k.iz=function(){this.ya||this.S||this.rl()};
g.k.gj=function(){hJ(this.j,this.getDuration());if(!this.C){var a=this.j;this.getDuration();dJ(a)||(vCa(a,0,!0),wCa(a,0,0,!0),gJ(a,"unmuted_complete"))}};
g.k.Pm=function(){var a=this.j;!mJ(a,"impression")||mJ(a,"skip")||mJ(a,"complete")||lJ(a,"abandon");this.C||(a=this.j,mJ(a,"unmuted_impression")&&!mJ(a,"unmuted_complete")&&lJ(a,"unmuted_abandon"))};
g.k.iI=function(){var a=this.j;eJ(a)?gJ(a,"skip"):!mJ(a,"impression")||mJ(a,"abandon")||mJ(a,"complete")||gJ(a,"skip")};
g.k.rl=function(){if(!this.S){var a=this.yC();this.j.macros.AD_CPN=a;a=this.j;if(eJ(a)){var b=a.j.getCurrentTime(2,!1);kJ(a,"impression",b,0)}else gJ(a,"impression");gJ(a,"start");dJ(a)||a.j.isFullscreen()&&lJ(a,"fullscreen");this.S=!0;this.C=this.G.isMuted()||0==this.G.getVolume();this.C||(a=this.j,gJ(a,"unmuted_impression"),gJ(a,"unmuted_start"),dJ(a)||a.j.isFullscreen()&&lJ(a,"unmuted_fullscreen"))}};
g.k.Qm=function(a){a=a||"";var b="",c="",d="";AI(this.G)&&(b=this.G.Eb(2).state,this.G.Ud()&&(c=this.G.Ud().hj(),null!=this.G.Ud().gg()&&(d=this.G.Ud().gg())));var e=this.j;e.macros=$I(e.macros,oCa("There was an error playing the video ad. Error code: "+(a+"; s:"+b+"; rs:")+(c+"; ec:"+d)));gJ(e,"error");this.C||(e=this.j,e.macros=$I(e.macros,oCa("There was an error playing the video ad. Error code: "+(a+"; s:"+b+"; rs:")+(c+"; ec:"+d))),gJ(e,"unmuted_error"))};
g.k.Eg=function(){};
g.k.RR=function(){this.ma("adactiveviewmeasurable")};
g.k.SR=function(){this.ma("adfullyviewableaudiblehalfdurationimpression")};
g.k.TR=function(){this.ma("adoverlaymeasurableimpression")};
g.k.UR=function(){this.ma("adoverlayunviewableimpression")};
g.k.VR=function(){this.ma("adoverlayviewableendofsessionimpression")};
g.k.WR=function(){this.ma("adoverlayviewableimmediateimpression")};
g.k.XR=function(){this.ma("adviewableimpression")};
g.k.dispose=function(){this.isDisposed()||(this.Qr(),this.u.unsubscribe("adactiveviewmeasurable",this.RR,this),this.u.unsubscribe("adfullyviewableaudiblehalfdurationimpression",this.SR,this),this.u.unsubscribe("adoverlaymeasurableimpression",this.TR,this),this.u.unsubscribe("adoverlayunviewableimpression",this.UR,this),this.u.unsubscribe("adoverlayviewableendofsessionimpression",this.VR,this),this.u.unsubscribe("adoverlayviewableimmediateimpression",this.WR,this),this.u.unsubscribe("adviewableimpression",
this.XR,this),delete this.u.j[this.ad.I],g.az.prototype.dispose.call(this))};
g.k.yC=function(){var a=this.G.getVideoData(2);return a&&a.clientPlaybackNonce||""};
g.k.IO=function(){return""};g.v(uJ,zI);uJ.prototype.gw=function(){return!0};
uJ.prototype.Cr=function(){return!1};g.v(vJ,EI);g.v(wJ,tJ);g.k=wJ.prototype;g.k.tB=function(){0<this.B&&this.rl()};
g.k.rl=function(){var a=this;this.xc=new g.Xn(function(){a.gj();for(var b=g.r(a.D.j.completionCommands||[]),c=b.next();!c.done;c=b.next())a.I.executeCommand(c.value,a.macros);a.qg("adended")},this.B,this);
g.M(this,this.xc);this.xc.start();zCa(this,[new vJ(this.D.j,this.macros)]);tJ.prototype.rl.call(this)};
g.k.Pm=function(){tJ.prototype.Pm.call(this);this.qg("adabandoned")};
g.k.gj=function(){tJ.prototype.gj.call(this)};
g.k.qg=function(a){this.xc&&this.xc.stop();tJ.prototype.qg.call(this,a)};g.v(xJ,zI);xJ.prototype.gw=function(){return!0};
xJ.prototype.Cr=function(){return!1};g.v(yJ,zI);yJ.prototype.gw=function(){return!0};
yJ.prototype.Cr=function(){return!1};BCa.prototype.create=function(a,b){return a instanceof OI?this.C.create(a,b):a instanceof uJ?this.j.create(a,b):a instanceof yJ?this.B.create(a,b):a instanceof xJ?this.u.create(a,b):null};g.v(zJ,tJ);g.k=zJ.prototype;g.k.Pm=function(){tJ.prototype.Pm.call(this);this.qg("adabandoned")};
g.k.gz=function(){tJ.prototype.gz.call(this);this.ma("adpause",2)};
g.k.iz=function(){tJ.prototype.iz.call(this);this.ma("adplay",1)};
g.k.rl=function(){tJ.prototype.rl.call(this);this.B.stop();this.D.T(this.G,g.sA("bltplayback"),this.BV);var a=new g.qA(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:2});this.G.qe([a],2);this.ma("adplay",1)};
g.k.gj=function(){tJ.prototype.gj.call(this);this.qg("adended")};
g.k.Qm=function(a){tJ.prototype.Qm.call(this,a);this.qg("aderror")};
g.k.tB=function(){CI(this.G,!1);var a=this.I.u||{};a.autoplay="1";this.G.cueVideoByPlayerVars(a,2);this.B.start();this.G.playVideo(2);this.G.Pa("onAdIntroStateChange",1)};
g.k.qg=function(a){this.B.stop();CI(this.G,!0);"adabandoned"!=a&&this.G.Pa("onAdComplete");this.G.Pa("onAdEnd");this.ma(a);this.G.Pa("onAdIntroStateChange",0)};
g.k.BV=function(a){"bltcompletion"==a.getId()&&(this.G.Gf("bltplayback",2),hJ(this.j,this.getDuration()))};var gTa=new Map([["TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL","normal"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED","skipped"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED","muted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED","user_input_submitted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED","user_cancelled"]]);g.v(CJ,EI);g.v(DJ,tJ);g.k=DJ.prototype;g.k.tB=function(){if(this.J){var a=this.B.j;if(!BJ(a)){g.pz(Error("adMessageRenderer is not augmented on playAd"));return}a=a.slot;for(var b=g.r(this.J.listeners),c=b.next();!c.done;c=b.next()){var d=c.value;c=a;LCa(d.j(),c);MCa(d.j(),c);d=d.j();d=g.r(d.Rd);for(var e=d.next();!e.done;e=d.next())e.value.Aj(c)}}0>=this.Z&&(g.oz(Error("durationMs was specified incorrectly with a value of: "+this.Z)),this.gj());this.rl();this.G.addEventListener("progresssync",this.qa)};
g.k.Pm=function(){tJ.prototype.Pm.call(this);this.qg("adabandonedreset",!0)};
g.k.rl=function(){var a=this.G.V();lB("apbs",void 0,"video_to_ad");tJ.prototype.rl.call(this);this.D=a.K("disable_rounding_ad_notify")?this.G.getCurrentTime():Math.floor(this.G.getCurrentTime());this.I=this.D+this.Z/1E3;g.aG(a)?this.G.Pa("onAdMessageChange",{renderer:this.B.j,startTimeSecs:this.D}):zCa(this,[new CJ(this.B.j)]);a=(a=this.G.getVideoData(1))&&a.clientPlaybackNonce||"";var b=g.zz(),c=this.B.j.videoAdBreakOffsetMsInt64;b&&g.Kv("adNotify",{clientScreenNonce:b,adMediaTimeMs:Math.floor(1E3*
this.I),timeToAdBreakSec:Math.ceil(this.I-this.D),clientPlaybackNonce:a,videoAdBreakOffsetMs:Number(c)});if(this.J){this.ea=!0;b=this.B.j;if(!BJ(b)){g.pz(Error("adMessageRenderer is not augmented on ad started"));return}a=b.slot;b=b.layout;c=g.r(this.J.listeners);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=a,f=b;NCa(d.j(),e);b_(d.j(),e,f)}}g.V(this.G.Eb(1),512)&&(g.pz(Error("player stuck during adNotify")),a=(a=this.G.getVideoData(1))&&a.clientPlaybackNonce||"",b=g.zz(),c=this.B.j.videoAdBreakOffsetMsInt64,
b&&g.Kv("adNotifyFailure",{clientScreenNonce:b,adMediaTimeMs:Math.floor(1E3*this.I),timeToAdBreakSec:Math.ceil(this.I-this.D),clientPlaybackNonce:a,videoAdBreakOffsetMs:c}),this.gj())};
g.k.gj=function(){tJ.prototype.gj.call(this);this.qg("adended",!0)};
g.k.Qm=function(a){g.pz(new g.Pv("Player error during adNotify.",{errorCode:a}));tJ.prototype.Qm.call(this,a);this.qg("aderror",!0)};
g.k.qg=function(a,b){(void 0===b?0:b)||g.pz(Error("TerminateAd directly called from other class during adNotify."));this.G.removeEventListener("progresssync",this.qa);this.Qr();FCa(this,a);"adended"===a||"aderror"===a?this.ma("adnotifyexitednormalorerror"):this.ma(a)};
g.k.dispose=function(){this.G.removeEventListener("progresssync",this.qa);FCa(this);tJ.prototype.dispose.call(this)};
g.k.Qr=function(){g.aG(this.G.V())?this.G.Pa("onAdMessageChange",{renderer:null,startTimeSecs:this.D}):tJ.prototype.Qr.call(this)};GJ.prototype.sendAdsPing=function(a){this.B.send(a,GCa(this),{})};
GJ.prototype.Kf=function(a){var b=this;if(a){var c=GCa(this);Array.isArray(a)?a.forEach(function(d){return b.j.executeCommand(d,c)}):this.j.executeCommand(a,c)}};g.v(HJ,tJ);g.k=HJ.prototype;g.k.Ry=function(){return{currentTime:this.G.getCurrentTime(2,!1),duration:this.B.u,isPlaying:$Ba(this.G),isVpaid:!1,isYouTube:!0,volume:this.G.isMuted()?0:this.G.getVolume()/100}};
g.k.tB=function(){var a=this.B.j.legacyInfoCardVastExtension,b=this.B.Tf();a&&b&&this.G.V().qa.add(b,{jy:a});try{var c=this.B.j.sodarExtensionData;if(c&&c.siub&&c.bgub&&c.scs&&c.bgp)try{Cga(c.siub,c.scs,c.bgub,c.bgp)}catch(e){var d=g.ig("//tpc.googlesyndication.com/sodar/%{path}");g.pz(new g.Pv("Load Sodar Error.",d instanceof gg,d.constructor===gg,{Message:e.message,"Escaped injector basename":g.Tg(c.siub),"BG vm basename":c.bgub}));if(d.constructor===gg)throw e;}}catch(e){g.oz(e)}CI(this.G,!1);
a=fCa(this.B);b=this.G.V();a.iv_load_policy=b.isMobile||g.aG(b)||g.lG(b)?3:1;b=this.G.getVideoData(1);b.Fh&&(a.ctrl=b.Fh);b.ai&&(a.ytr=b.ai);b.Sn&&(a.ytrcc=b.Sn);b.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,b.dj&&(a.vss_credentials_token_type=b.dj),b.mdxEnvironment&&(a.mdx_environment=b.mdxEnvironment));this.ma("adunstarted",-1);this.Z?this.I.start():(this.G.cueVideoByPlayerVars(a,2),this.I.start(),this.G.playVideo(2))};
g.k.gz=function(){tJ.prototype.gz.call(this);this.ma("adpause",2)};
g.k.iz=function(){tJ.prototype.iz.call(this);this.ma("adplay",1)};
g.k.rl=function(){tJ.prototype.rl.call(this);this.I.stop();this.ea.T(this.G,g.sA("bltplayback"),this.CV);var a=new g.qA(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:2});this.G.qe([a],2);a=LJ(this);this.D.Ba=a;if(this.G.isMuted()){a=this.j;var b=this.G.isMuted();eJ(a)||gJ(a,b?"mute":"unmute")}this.ma("adplay",1);if(null!==this.J){a=null!==this.D.j.getVideoData(1)?this.D.j.getVideoData(1).clientPlaybackNonce:"";b=JCa(this);for(var c=this.B,d=ICa(this),e=g.r(this.J.listeners),
f=e.next();!f.done;f=e.next()){f=f.value;var h=b,l=c,m=d,n=[],p=l.Tf(),q=l.getVideoUrl();p&&n.push(new aZ(p));q&&n.push(new bZ(q));(q=(p=l.j)&&p.playerOverlay&&p.playerOverlay.instreamAdPlayerOverlayRenderer)?(n.push(new dZ(q)),(q=q.elementId)&&n.push(new mZ(q))):cA("instreamVideoAdRenderer without instreamAdPlayerOverlayRenderer");(p=p&&p.playerUnderlay)&&n.push(new eZ(p));l.j.adNextParams&&n.push(new PY(l.j.adNextParams||""));(p=l.ya)&&n.push(new QY(p));(p=f.Ua.get().Sf(2))?(n.push(new UY({channelId:p.Kk,
channelThumbnailUrl:p.profilePicture,channelTitle:p.author,videoTitle:p.title})),n.push(new VY(p.isListed))):cA("Expected meaningful PlaybackData on ad started.");n.push(new XY(l.B));n.push(new tZ(l.u));n.push(new cZ(a));n.push(new pZ({current:this}));p=l.La;null!=p.kind&&n.push(new WY(p));(p=l.Ia)&&n.push(new GZ(p));void 0!==m&&n.push(new HZ(m));f.j?cA(f.j.layoutId===h?"Received repeat AD_START event.":"Received a new AD_START event before received AD_ENDED event."):KCa(f,h,n,!0,l.j.adLayoutLoggingData)}}this.G.Pa("onAdStart",
LJ(this));a=g.r(this.B.j.impressionCommands||[]);for(b=a.next();!b.done;b=a.next())this.D.executeCommand(b.value,this.macros)};
g.k.CV=function(a){"bltcompletion"==a.getId()&&(this.G.Gf("bltplayback",2),hJ(this.j,this.getDuration()),KJ(this,"adended"))};
g.k.gj=function(){tJ.prototype.gj.call(this);this.qg("adended");for(var a=g.r(this.B.j.completeCommands||[]),b=a.next();!b.done;b=a.next())this.D.executeCommand(b.value,this.macros)};
g.k.Pm=function(){tJ.prototype.Pm.call(this);this.qg("adabandoned")};
g.k.nE=function(){var a=this.j;dJ(a)||lJ(a,"clickthrough");this.C||(a=this.j,dJ(a)||lJ(a,"unmuted_clickthrough"))};
g.k.Zz=function(){this.iI()};
g.k.iI=function(){tJ.prototype.iI.call(this);this.qg("adended")};
g.k.Qm=function(a){tJ.prototype.Qm.call(this,a);this.qg("aderror")};
g.k.qg=function(a){this.I.stop();CI(this.G,!0);"adabandoned"!=a&&this.G.Pa("onAdComplete");KJ(this,a);this.G.Pa("onAdEnd",LJ(this));this.ma(a)};
g.k.Qr=function(){var a=this.G.V();g.aG(a)&&(g.lG(a)||a.K("enable_topsoil_wta_for_halftime")||a.K("enable_topsoil_wta_for_halftime_live_infra")||g.aG(a))?this.G.Pa("onAdInfoChange",null):tJ.prototype.Qr.call(this)};
g.k.kS=function(){this.a_&&this.G.playVideo()};
g.k.a_=function(){return 2==this.G.getPlayerState(2)};
g.k.IO=function(a,b){if(!Number.isFinite(a))return g.oz(Error("Playing the video after the current media has finished is not supported")),"";if(b<=a)return g.oz(Error("Start time is not earlier than end time")),"";var c=1E3*this.B.u,d=fCa(this.B);d=this.G.ov(d,"",2,c,a,b);a+c>b&&this.G.lx(d,b-a);return d};
g.k.dispose=function(){$Ba(this.G)&&!this.Z&&this.G.stopVideo(2);KJ(this,"adabandoned");tJ.prototype.dispose.call(this)};MJ.prototype.reduce=function(a){switch(a.event){case "start":case "continue":case "predictStart":case "stop":break;case "unknown":return;default:return}var b=a.identifier;var c=this.j[b];c?b=c:(c={uy:null,hQ:-Infinity},b=this.j[b]=c);c=a.startSecs+a.j/1E3;if(!(c<b.hQ))if(b.hQ=c,b.uy){if(c<b.uy.end){a:{c=b.uy;switch(a.event){case "start":case "continue":case "stop":break;default:a=null;break a}a=c.start+a.durationSecs;a=a<c.start||c.end<=a?null:a}null!==a&&(b.uy.end=a,this.u.YQ(a))}}else if(a=PCa(a,
this.B))c=a.SZ,b.uy=a.eY,this.u.OJ(c)};
MJ.prototype.updateTime=function(){};PJ.prototype.jh=function(a){var b=this.j;g.Bh(function(){return b.jh(a,1)})};g.k=RJ.prototype;g.k.wv=function(a,b,c,d,e){var f=this;XCa(this,a,b,d,e,function(){f.contentCpn=null;f.adCpn=null;f.videoId=null;f.adVideoId=null;f.adFormat=null;f.B="AD_PLACEMENT_KIND_UNKNOWN";f.actionType="unknown_type";f.Ze=!1;f.u=!1;f.C=!b&&0===c})};
g.k.YK=function(){var a=this.G.getVideoData(1);if(!this.G.K("html5_no_video_to_ad_on_preroll")||null!=a&&a.Wa)this.u=!1,a={},!this.G.K("web_player_csi_ctt_killswitch")&&this.j&&this.videoId&&(a.cttAuthInfo={token:this.j,videoId:this.videoId}),YA("video_to_ad",a)};
g.k.ZK=function(){this.u=!1;var a={};!this.G.K("web_player_csi_ctt_killswitch")&&this.j&&this.videoId&&(a.cttAuthInfo={token:this.j,videoId:this.videoId});YA("ad_to_ad",a)};
g.k.Zw=function(){this.u=!1;var a={};!this.G.K("web_player_csi_ctt_killswitch")&&this.j&&this.videoId&&(a.cttAuthInfo={token:this.j,videoId:this.videoId});YA("ad_to_video",a);this.G.K("html5_csi_delay_pbresume")&&(this.G.Gi().u=this.G.getCurrentTime(1));this.G.K("send_csi_info_for_ad_to_video_killswitch")||WCa(this)};
g.k.IK=function(){if(this.Ze&&!this.u&&(this.C=!1,this.u=!0,"ad_to_video"!==this.actionType&&(this.G.K("html5_no_video_to_ad_on_preroll")?lB("apbs",void 0,this.actionType):WA("apbs",void 0,this.actionType),g.S("finalize_all_timelines")))){var a=this.actionType;VA(a);OA(a);UA(a)}};
g.k.reset=function(){return new RJ(this.G)};var i4={},j4=(i4.BUFFERING="buffering-mode",i4.CUED="cued-mode",i4.ENDED="ended-mode",i4.PAUSED="paused-mode",i4.PLAYING="playing-mode",i4.SEEKING="seeking-mode",i4.UNSTARTED="unstarted-mode",i4);var X0a,k4,$Ca;
X0a={B$:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",kda:"AUTHENTICATION_MALFORMED",lda:"AUTHENTICATION_MISSING",yda:"BAD_REQUEST",lea:"CAST_SESSION_DEVICE_MISMATCHED",mea:"CAST_SESSION_VIDEO_MISMATCHED",nea:"CAST_TOKEN_EXPIRED",oea:"CAST_TOKEN_FAILED",pea:"CAST_TOKEN_MALFORMED",Kea:"CGI_PARAMS_MALFORMED",Lea:"CGI_PARAMS_MISSING",Gma:"DEVICE_FALLBACK",ioa:"GENERIC_WITH_LINK_AND_CPN",joa:"ERROR_HDCP",ooa:"LICENSE",roa:"VIDEO_UNAVAILABLE",sta:"FORMAT_UNAVAILABLE",Jta:"GEO_FAILURE",
dva:"HTML5_AUDIO_RENDERER_ERROR",eva:"GENERIC_WITHOUT_LINK",fva:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",gva:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",hva:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",twa:"INVALID_DRM_MESSAGE",iPa:"PURCHASE_NOT_FOUND",jPa:"PURCHASE_REFUNDED",MPa:"RENTAL_EXPIRED",aQa:"RETRYABLE_ERROR",bRa:"SERVER_ERROR",mVa:"STOPPED_BY_ANOTHER_PLAYBACK",hWa:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",iWa:"STREAMING_NOT_ALLOWED",jWa:"STREAM_LICENSE_NOT_FOUND",eYa:"TOO_MANY_REQUESTS",
fYa:"TOO_MANY_REQUESTS_WITH_LINK",hYa:"TOO_MANY_STREAMS_PER_ENTITLEMENT",iYa:"TOO_MANY_STREAMS_PER_USER",K1a:"UNSUPPORTED_DEVICE",m2a:"VIDEO_FORBIDDEN",r2a:"VIDEO_NOT_FOUND"};k4={};
g.LO=(k4.ALREADY_PINNED_ON_A_DEVICE="This video has already been downloaded on the maximum number of devices allowed by the copyright holder. Before you can play the video here, it needs to be unpinned on another device.",k4.DEVICE_FALLBACK="Sorry, this video is not available on this device.",k4.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",k4.LICENSE="Sorry, there was an error licensing this video.",k4.VIDEO_UNAVAILABLE=
"Video unavailable",k4.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",k4.GEO_FAILURE="This video isn't available in your country.",k4.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",k4.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",k4.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",k4.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="Your browser does not currently recognize any of the video formats available. $BEGIN_LINKClick here to visit our frequently asked questions about HTML5 video.$END_LINK",
k4.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",k4.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",k4.PURCHASE_NOT_FOUND="This video requires payment.",k4.PURCHASE_REFUNDED="This video's purchase has been refunded.",k4.RENTAL_EXPIRED="This video's rental has expired.",k4.CAST_SESSION_DEVICE_MISMATCHED="The device in the cast session doesn't match the requested one.",k4.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",
k4.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",k4.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",k4.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",k4.SERVER_ERROR="There was an internal server error. Please try again later.",k4.STOPPED_BY_ANOTHER_PLAYBACK="Your account is playing this video in another location. Please reload this page to resume watching.",k4.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",
k4.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",k4.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",k4.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",k4.TOO_MANY_REQUESTS="Please log in to watch this video.",k4.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",k4.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",
k4.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",k4.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",k4.VIDEO_FORBIDDEN="Access to this video is forbidden.",k4.VIDEO_NOT_FOUND="This video can not be found.",k4);
$Ca={300:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",301:"ALREADY_PINNED_ON_A_DEVICE",303:"STOPPED_BY_ANOTHER_PLAYBACK",304:"TOO_MANY_STREAMS_PER_USER",305:"TOO_MANY_STREAMS_PER_ENTITLEMENT",400:"VIDEO_NOT_FOUND",401:"GEO_FAILURE",402:"STREAMING_NOT_ALLOWED",403:"UNSUPPORTED_DEVICE",405:"VIDEO_FORBIDDEN",500:"PURCHASE_NOT_FOUND",501:"RENTAL_EXPIRED",502:"PURCHASE_REFUNDED",5E3:"BAD_REQUEST",5001:"CGI_PARAMS_MISSING",5002:"CGI_PARAMS_MALFORMED",5100:"AUTHENTICATION_MISSING",5101:"AUTHENTICATION_MALFORMED",
5102:"AUTHENTICATION_EXPIRED",5200:"CAST_TOKEN_MALFORMED",5201:"CAST_TOKEN_EXPIRED",5202:"CAST_TOKEN_FAILED",5203:"CAST_SESSION_VIDEO_MISMATCHED",5204:"CAST_SESSION_DEVICE_MISMATCHED",6E3:"INVALID_DRM_MESSAGE",7E3:"SERVER_ERROR",8E3:"RETRYABLE_ERROR"};SJ.prototype.then=function(a,b){return this.promise.then(a,b)};
SJ.prototype.resolve=function(a){this.u(a)};
SJ.prototype.reject=function(a){this.j(a)};g.v(TJ,g.J);g.k=TJ.prototype;g.k.uB=function(){return this.u};
g.k.hv=function(a){var b="";a&&(dDa(this,a),b=a.j);if(!this.Lf()||b)b&&this.Lf()!==b&&(this.yB(b),delete this.B,this.C&&(this.C.reject(),delete this.C)),Y0a||a&&a.u||this.load(),this.S||(this.addEventListener("volumechange",this.mO),this.S=!0)};
g.k.Up=function(){if(this.B){var a=this.B;this.B=void 0;return a}a=this.zf();a=window.MediaSource?new oE(new window.MediaSource,void 0,!1):window.WebKitMediaSource?new oE(new window.WebKitMediaSource,void 0,!1):new oE(void 0,a,!1);this.hv(a.B);return a};
g.k.playVideo=function(){var a=this;this.Yg()&&this.seekTo(0);!this.Lf()&&this.u&&(g.eu(Error("playVideo without src")),this.yB(this.u.j),this.u.u||this.load());var b=this.play();!b&&Z0a&&VO&&7<=(wI||0)&&g.Foa(this,"playing",function(){g.vu(function(){cDa(a,a.getCurrentTime(),0)},500)});
return b};
g.k.seekTo=function(a){0<this.hj()&&($0a&&VO&&4>wI&&(a=Math.max(.1,a)),this.xB(a))};
g.k.stopVideo=function(){var a=this;if(!this.B)if(a1a){if(!this.C){var b=new SJ;b.then(void 0,function(){});
this.C=b;b1a&&this.pause();g.vu(function(){a.C===b&&(WJ(a),b.resolve())},200)}}else WJ(this)};
g.k.Sv=function(){var a=this.Xg();return 0<iE(a)&&this.getDuration()?hE(a,this.getCurrentTime()):0};
g.k.As=function(){var a=this.getDuration();return Infinity===a?1:a?this.Sv()/a:0};
g.k.Sb=function(){try{var a=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:eE(this.Cs(),",",3),vbu:eE(this.Xg()),vpa:""+ +this.Pn(),vsk:""+ +this.Gg(),ven:""+ +this.Yg(),vpr:""+this.getPlaybackRate(),vrs:""+this.hj(),vns:""+this.IC(),vec:""+this.gg(),vemsg:this.rf(),vvol:""+this.getVolume(),vdom:""+ +this.DI(),vsrc:""+ +!!this.Lf(),vw:""+a.width,vh:""+a.height}}catch(b){return{}}};
g.k.addEventListener=function(a,b){this.D.Ra(a,b,!1,this);this.vH(a)};
g.k.removeEventListener=function(a,b){this.D.yc(a,b,!1,this)};
g.k.dispatchEvent=function(a){return this.C&&"pause"===a.type?!1:this.D.dispatchEvent(a)};
g.k.sH=function(){this.J=!1};
g.k.pH=function(){this.J=!0;this.Sw(!0)};
g.k.mO=function(){this.J&&!this.HC()&&this.Sw(!0)};
g.k.equals=function(a){return!!a&&a.zf()===this.zf()};
g.k.ra=function(){this.S&&this.removeEventListener("volumechange",this.mO);a1a&&WJ(this);g.J.prototype.ra.call(this)};
var Y0a=!1,fDa=!0,Z0a=!0,$0a=!0,a1a=!1,b1a=!1;g.k=g.YJ.prototype;g.k.getData=function(){return this.stateData};
g.k.Tc=function(){return g.V(this,8)&&!g.V(this,512)&&!g.V(this,64)&&!g.V(this,2)};
g.k.isCued=function(){return g.V(this,64)&&!g.V(this,8)&&!g.V(this,4)};
g.k.isError=function(){return g.V(this,128)};
g.k.isSuspended=function(){return g.V(this,512)};
g.k.xz=function(){return g.V(this,64)&&g.V(this,4)};
g.k.toString=function(){return"PSt."+this.state.toString(16)};g.v(hK,g.az);g.k=hK.prototype;g.k.Is=function(){var a=this.u;return a.u instanceof OI||a.u instanceof VI||a.u instanceof PI};
g.k.FF=function(){return this.u.u.Cr()};
g.k.JM=function(){return this.u.j};
g.k.GF=function(){return"AD_PLACEMENT_KIND_START"==this.u.j.j};
g.k.KM=function(){return WI(this.u)};
g.k.nP=function(a){if(!vA(a)){this.Z&&(this.ya=this.G.isAtLiveHead(),this.Aa=Math.ceil(g.Ra()/1E3));var b=new PJ(this.qh);a=RCa(a);b.jh(a)}this.LM()};
g.k.WP=function(){return!0};
g.k.zz=function(){return this.J instanceof OI};
g.k.LM=function(){var a=this.qh;this.WP()&&(a.u&&kK(a,!1),a.u=this,this.Is()&&LEa(a));this.D.YK();this.GR()};
g.k.GR=function(){this.J?this.Qx(this.J):lK(this)};
g.k.onAdEnd=function(a,b){b=void 0===b?!1:b;this.zk(0);lK(this,b)};
g.k.KQ=function(){this.onAdEnd()};
g.k.d0=function(){gJ(this.j.j,"active_view_measurable")};
g.k.g0=function(){var a=this.j.j;dJ(a)||oJ(a)||gJ(a,"active_view_fully_viewable_audible_half_duration")};
g.k.k0=function(){};
g.k.l0=function(){};
g.k.m0=function(){};
g.k.n0=function(){};
g.k.r0=function(){var a=this.j.j;dJ(a)||oJ(a)||gJ(a,"active_view_viewable")};
g.k.e0=function(){var a=this.j.j;dJ(a)||oJ(a)||gJ(a,"audio_audible")};
g.k.f0=function(){var a=this.j.j;dJ(a)||oJ(a)||gJ(a,"audio_measurable")};
g.k.WO=function(){return this.zz()?[this.KC()]:[]};
g.k.Uc=function(a){if(null!==this.j){this.qa||(a=new g.qJ(a.state,new g.YJ),this.qa=!0);var b=a.state;if(g.sJ(a,2))this.j.gj();else{var c=a;(this.G.V().experiments.jb("html5_bulleit_handle_gained_playing_state")?c.state.Tc()&&!c.yq.Tc():c.state.Tc())?(this.D.IK(),this.j.iz()):b.isError()?this.j.Qm(b.getData().errorCode):g.sJ(a,4)&&(this.ea||this.j.gz())}if(null!==this.j){if(g.sJ(a,16)&&(b=this.j.j,!(dJ(b)||.5>b.j.getCurrentTime(2,!1)&&!b.j.V().K("html5_dai_pseudogapless_seek_killswitch")))){c=b.ad;
if(c.sz()){var d=b.B.G.V().K("html5_dai_enable_active_view_creating_completed_adblock");dka(c.I,d)}b.ad.D.seek=!0}0>rJ(a,4)&&!(0>rJ(a,2))&&(b=this.j,c=b.j,dJ(c)||pJ(c,"resume"),b.C||(b=b.j,dJ(b)||pJ(b,"unmuted_resume")));!this.G.V().experiments.jb("html5_dai_handle_suspended_state_killswitch")&&this.daiEnabled&&g.sJ(a,512)&&!g.fK(a.state)&&this.D.Zw()}}};
g.k.onVideoDataChange=function(){return this.daiEnabled?hDa(this):!1};
g.k.resume=function(){this.j&&this.j.kS()};
g.k.Jp=function(){this.j&&this.j.qg("adended")};
g.k.Em=function(){this.Jp()};
g.k.zk=function(a){this.qh.zk(a)};
g.k.EV=function(a){this.qh.j.Pa("onAdUxUpdate",a)};
g.k.onAdUxClicked=function(a){this.j.Eg(a)};
g.k.UO=function(){return 0};
g.k.VO=function(){return 1};
g.k.wL=function(a){this.daiEnabled&&this.u.I&&this.u.j.start<=a&&a<jK(this)&&this.G.Rr(a,this.u.j.end)};
g.k.Qx=function(a){g.Ye(this.j);this.j=a=this.Fr.create(a,ZI(mCa(this.u)),this.u.j.j);this.VI(a);a.ya?a.Qm("ui_unstable"):a.tB();iDa(this,!1)};
g.k.VI=function(a){a.subscribe("adabandoned",g.Qa(this.onAdEnd,!0),this);a.subscribe("adabandonedreset",g.Qa(this.onAdEnd,!0,!0),this);a.subscribe("adactiveviewmeasurable",this.d0,this);a.subscribe("adended",this.onAdEnd,this);a.subscribe("aderror",this.KQ,this);a.subscribe("adfullyviewableaudiblehalfdurationimpression",this.g0,this);a.subscribe("adoverlaymeasurableimpression",this.k0,this);a.subscribe("adoverlayunviewableimpression",this.l0,this);a.subscribe("adoverlayviewableendofsessionimpression",
this.m0,this);a.subscribe("adoverlayviewableimmediateimpression",this.n0,this);a.subscribe("adpause",this.nI,this);a.subscribe("adplay",this.nI,this);a.subscribe("adunstarted",this.nI,this);a.subscribe("onAdUxUpdate",this.EV,this);a.subscribe("adviewableimpression",this.r0,this);a.subscribe("adaudioaudible",this.e0,this);a.subscribe("adaudiomeasurable",this.f0,this)};
g.k.nI=function(a){this.zk(a)};
g.k.KC=function(){return this.J};
g.k.isLiveStream=function(){return this.Z};
g.k.reset=function(){return new hK(this.qh,this.G,this.D.reset(),this.u,this.Vn,this.Fv,this.Fr,this.daiEnabled)};
g.k.ra=function(){g.Ye(this.j);this.j=null;g.az.prototype.ra.call(this)};nDa.prototype.create=function(a){return(a.u instanceof PI?this.B:""===a.D?this.j:this.u)(a)};mK.prototype.J=function(a){this.client=a};
mK.prototype.vO=function(a,b){b=void 0===b?{}:b;var c,d=null==(c=g.Zu(null==a?void 0:a.commandMetadata,wZa))?void 0:c.rootVe;if(d){c=g.Zu(null==a?void 0:a.commandMetadata,O_a);if(null==c?0:c.parentTrackingParams){var e=g.sz(c.parentTrackingParams);if(c.parentCsn)var f=c.parentCsn}else b.UX?e=b.UX:a.clickTrackingParams&&(e=g.sz(a.clickTrackingParams));a:{c=g.Zu(a,g.TG);a=g.Zu(a,D_a);if(c){if(a=oDa(c,"VIDEO")){a={token:a,videoId:c.videoId};break a}}else if(a&&(c=oDa(a,"PLAYLIST"))){a={token:c,playlistId:a.playlistId};
break a}a=void 0}b=Object.assign({},{cttAuthInfo:a,parentCsn:f},b);sDa(this,d,e,b)}else g.pz(new g.Pv("Error: Trying to create a new screen without a rootVeType",a))};
mK.prototype.clickCommand=function(a,b,c){a=a.clickTrackingParams;c=void 0===c?0:c;a?(c=g.zz(void 0===c?0:c))?(Aua(this.client,c,g.sz(a),b),b=!0):b=!1:b=!1;return b};pK.prototype.handleResponse=function(a,b){if(!b)throw Error("request needs to be passed into ConsistencyService");var c,d;b=(null==(c=b.Xm.context)?void 0:null==(d=c.request)?void 0:d.consistencyTokenJars)||[];var e;(a=null==(e=a.responseContext)?void 0:e.consistencyTokenJar)&&this.replace(b,a)};
pK.prototype.replace=function(a,b){a=g.r(a);for(var c=a.next();!c.done;c=a.next())delete this.j[c.value.encryptedTokenJarContents];wDa(this,b)};var c1a=window.location.hostname.split(".").slice(-2).join("."),l4;rK.getInstance=function(){l4=g.Ga("yt.clientLocationService.instance");l4||(l4=new rK,g.Fa("yt.clientLocationService.instance",l4));return l4};
g.k=rK.prototype;
g.k.setLocationOnInnerTubeContext=function(a){a.client||(a.client={});this.j?(a.client.locationInfo||(a.client.locationInfo={}),a.client.locationInfo.latitudeE7=Math.floor(1E7*this.j.coords.latitude),a.client.locationInfo.longitudeE7=Math.floor(1E7*this.j.coords.longitude),a.client.locationInfo.horizontalAccuracyMeters=Math.round(this.j.coords.accuracy),a.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0):this.locationPlayabilityToken&&(a.client.locationPlayabilityToken=this.locationPlayabilityToken)};
g.k.handleResponse=function(a){var b;a=null==(b=a.responseContext)?void 0:b.locationPlayabilityToken;void 0!==a&&(this.locationPlayabilityToken=a,this.j=void 0,"TVHTML5"===g.O("INNERTUBE_CLIENT_NAME")?(this.localStorage=qK(this))&&this.localStorage.set("yt-location-playability-token",a,15552E3):g.Ju("YT_CL",JSON.stringify({loctok:a}),15552E3,c1a,!0))};
g.k.clearLocationPlayabilityToken=function(a){"TVHTML5"===a?(this.localStorage=qK(this))&&this.localStorage.remove("yt-location-playability-token"):g.Lu("YT_CL")};
g.k.getCurrentPositionFromGeolocation=function(){var a=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var b=!1,c=1E4;"MWEB"===g.O("INNERTUBE_CLIENT_NAME")&&(b=!0,c=15E3);return new Promise(function(d,e){navigator.geolocation.getCurrentPosition(function(f){a.j=f;d(f)},function(f){e(f)},{enableHighAccuracy:b,
maximumAge:0,timeout:c})})};
g.k.createUnpluggedLocationInfo=function(a){var b={};a=a.coords;if(null==a?0:a.latitude)b.latitudeE7=Math.floor(1E7*a.latitude);if(null==a?0:a.longitude)b.longitudeE7=Math.floor(1E7*a.longitude);if(null==a?0:a.accuracy)b.locationRadiusMeters=Math.round(a.accuracy);return b};tK.prototype.BC=function(a,b){a={};var c=Zh([]);c&&(a.Authorization=c,c=b=null==b?void 0:b.sessionIndex,void 0===c&&(c=Number(g.O("SESSION_INDEX",0)),c=isNaN(c)?0:c),g.S("voice_search_auth_header_removal")||(a["X-Goog-AuthUser"]=c),"INNERTUBE_HOST_OVERRIDE"in Yt||(a["X-Origin"]=window.location.origin),void 0===b&&"DELEGATED_SESSION_ID"in Yt&&(a["X-Goog-PageId"]=g.O("DELEGATED_SESSION_ID")));return a};var vK;g.v(uK,tK);uK.prototype.BC=function(a,b){a=tK.prototype.BC.call(this,a,b);return Object.assign({},a,this.Jt)};var KDa=/[&\?]action_proxy=1/,JDa=/[&\?]token=([\w-]*)/,LDa=/[&\?]video_id=([\w-]*)/,MDa=/[&\?]index=([\d-]*)/,NDa=/[&\?]m_pos_ms=([\d-]*)/,QDa=/[&\?]vvt=([\w-]*)/,EDa="ca_type dt el flash u_tz u_his u_h u_w u_ah u_aw u_cd u_nplug u_nmime frm u_java bc bih biw brdim vis wgl".split(" "),ODa="www.youtube-nocookie.com youtube-nocookie.com www.youtube-nocookie.com:443 youtube.googleapis.com www.youtubeedu.com www.youtubeeducation.com video.google.com redirector.gvt1.com".split(" "),GDa={android:"ANDROID",
"android.k":"ANDROID_KIDS","android.m":"ANDROID_MUSIC","android.up":"ANDROID_UNPLUGGED",youtube:"WEB","youtube.m":"WEB_REMIX","youtube.up":"WEB_UNPLUGGED",ytios:"IOS","ytios.k":"IOS_KIDS","ytios.m":"IOS_MUSIC","ytios.up":"IOS_UNPLUGGED"},HDa={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},PDa={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};xK.prototype.uw=function(a){this.player.Gi().tick(a)};
xK.prototype.fetch=function(a,b){var c=this;if(!a.match(/\[BISCOTTI_ID\]/g))return zK(this,a,b);var d=1===this.j;d&&this.uw("a_bid_s");var e=zDa();if(null!==e)return d&&this.uw("a_bid_f"),zK(this,a,b,e);e=ADa();d&&Ih(e,function(){c.uw("a_bid_f")});
return e.then(function(f){return zK(c,a,b,f)})};
xK.prototype.reset=function(){this.u=this.j=1};g.v(AK,g.az);g.k=AK.prototype;g.k.JM=function(){return this.j.j};
g.k.GF=function(){return"AD_PLACEMENT_KIND_START"==this.j.j.j};
g.k.KM=function(){return WI(this.j)};
g.k.Is=function(){return!1};
g.k.FF=function(){return!1};
g.k.onAdUxClicked=function(){};
g.k.nP=function(a){var b=this;cA("Fetching logic is still in use while live midroll is on PACF");if(1!==this.j.B&&2!==this.j.B){var c=[];this.GF()||(c=RCa(a));this.j.B=1;Ih(this.C.fetch(this.j.D,{sy:this.j.C||void 0,Td:this.j.j}).then(function(d){if(!b.isDisposed()){var e=c;b.D.isFullscreen();d=RDa(b,d);var f=b.B;f.j&&d.isEmpty&&VCa("DAI_ERROR_TYPE_NO_AD_BREAK_RENDERER",f.u);d.XP||(b.j.B=2,(new PJ(b.u)).jh(e),d.isEmpty||Mua(b.I,d.Qn))}},function(){(new PJ(b.u)).jh(c);
var d=b.B;d.j&&VCa("DAI_ERROR_TYPE_AD_REQUEST_FAIL",d.u)}),function(){2!==b.j.B&&(b.j.B=0);
b.GF()&&PK(b.u)})}};
g.k.LM=function(){};
g.k.wL=function(){};g.v(BK,zI);BK.prototype.gw=function(){return!0};
BK.prototype.Cr=function(){return!1};var UDa=Object.freeze([uJ,xJ,VI,BK,OI]);g.v(CK,hK);g.k=CK.prototype;g.k.WO=function(){for(var a=this.B.j,b=g.r(a),c=b.next();!c.done;c=b.next());return a};
g.k.WP=function(){return(0>=this.C?this.B.j:this.B.j.slice(this.C)).some(function(a){return a.gw()})};
g.k.zz=function(){return this.I instanceof OI||this.I instanceof xJ};
g.k.GR=function(){this.daiEnabled?AI(this.G)&&hDa(this):TDa(this)};
g.k.Qx=function(a){var b=SDa(a);this.I&&b&&this.S!==b&&(b?LEa(this.qh):NEa(this.qh),this.S=b);this.I=a;this.daiEnabled&&(this.C=this.B.j.findIndex(function(c){return c===a}));
hK.prototype.Qx.call(this,a)};
g.k.VI=function(a){var b=this;hK.prototype.VI.call(this,a);a.subscribe("adnotifyexitednormalorerror",function(){return void lK(b)})};
g.k.Em=function(){this.C=this.B.j.length;this.j&&this.j.qg("adended");lK(this)};
g.k.Jp=function(){this.onAdEnd()};
g.k.onAdEnd=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.daiEnabled||(this.zk(0),a?lK(this,b):TDa(this))};
g.k.KQ=function(){if(1==this.B.u)this.I instanceof yJ&&g.pz(Error("AdNotify error with FailureMode.TERMINATING")),lK(this);else this.onAdEnd()};
g.k.KC=function(){var a=0>=this.C?this.B.j:this.B.j.slice(this.C);return 0<a.length?a[0]:null};
g.k.Is=function(){return this.S};
g.k.FF=function(){return this.B.j.every(function(a){return a.Cr()})};
g.k.reset=function(){return new CK(this.qh,this.G,this.D.reset(),this.u,this.Vn,this.Fv,this.Fr,this.daiEnabled)};
g.k.UO=function(){return this.C};
g.k.VO=function(){return this.B.j.length};VDa.prototype.SO=function(){return this.j};g.v(WDa,PI);g.v(YDa,PI);ZDa.prototype.create=function(a,b){function c(h){return new OI(h,d.B,b,d.j,d.u)}
var d=this,e=a.instreamVideoAdRenderer,f=a.sandwichedLinearAdRenderer;a=a.linearAdSequenceRenderer;return null!=e&&e.playerVars?c(e):null!=f?new YDa(f,c,this.j):null!=a?new WDa(a,c):null};$Da.prototype.create=function(a,b,c,d){d=void 0===d?null:d;var e=[];c=void 0===c?0:c;if(d){d=g.r(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var h=b,l=new Sua(h.B,h.u,h.daiEnabled,h.C),m=h.qf;m&&(l.qf=new iA(m.startSecs,m.durationSecs,m.context,m.identifier,m.event,m.j));h.j&&(l.j=h.j);l.visible=h.visible;h=l;h.qf=f;e.push(aEa(this,a[0],c,h));c++}}else for(a=g.r(a),d=a.next();!d.done;d=a.next())e.push(aEa(this,d.value,c,b)),c++;return e};g.v(DK,g.J);DK.prototype.addEventListener=function(a,b){this.j=b};
DK.prototype.removeEventListener=function(){this.j=null};
g.v(EK,g.J);EK.prototype.addEventListener=function(a,b,c){this.j.addEventListener(a,b,c)};
EK.prototype.removeEventListener=function(a,b){this.j.removeEventListener(a,b)};g.v(dEa,g.J);var FK=null,GK=null,HK=null,IK=null;g.Fa("yt.www.ads.eventcache.getLastCompanionData",function(){return FK});
g.Fa("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null});
g.Fa("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return GK});
g.Fa("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return HK});
g.Fa("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return IK});var qEa={clickTrackingParams:!0,commandMetadata:!0,loggingUrls:!0};g.v(LK,g.J);LK.prototype.ra=function(){this.Ke.clear();g.J.prototype.ra.call(this)};
LK.prototype.Kf=function(a,b,c){a=void 0===a?[]:a;b=void 0===b?{}:b;c=void 0===c?{}:c;this.isDisposed();a=g.r(a);for(var d=a.next();!d.done;d=a.next())this.executeCommand(d.value,b,c)};
LK.prototype.executeCommand=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.isDisposed();a.loggingUrls&&rEa(this,"loggingUrls",a.loggingUrls,b,c);a=g.r(Object.entries(a));for(var d=a.next();!d.done;d=a.next()){var e=g.r(d.value);d=e.next().value;e=e.next().value;"openPopupAction"===d?nEa(this,e):"confirmDialogEndpoint"===d?oEa(this,e):qEa.hasOwnProperty(d)||rEa(this,d,e,b,c)}};g.v(NK,RJ);g.k=NK.prototype;g.k.wv=function(){};
g.k.YK=function(){};
g.k.ZK=function(){};
g.k.Zw=function(){};
g.k.IK=function(){};
g.k.reset=function(){return new NK(this.G)};g.v(wEa,g.J);g.v(OK,g.az);g.k=OK.prototype;g.k.pI=function(){return!FEa(this,JEa(this))};
g.k.yC=function(){return this.Ba};
g.k.ra=function(){this.qa=!0;g.$y(this.C);if(BI(this.j)){var a=zEa(this.j);a.removeEventListener("updateKevlarOrC3Companion",eEa);a.removeEventListener("updateEngagementPanelAction",fEa);a.removeEventListener("changeEngagementPanelVisibility",gEa);window.removeEventListener("yt-navigate-start",hEa);IK=HK=GK=FK=null}a=g.r(this.B.values());for(var b=a.next();!b.done;b=a.next())MEa(this,b.value);kK(this,!1);this.Gr.clear();this.Z=[];this.J.clear();g.Ye(this.ea);this.ea=new Map;g.Ye(this.I);this.I=new Map;
this.B.clear();g.az.prototype.ra.call(this)};
g.k.BJ=function(a){if(a instanceof uA&&!a.B&&(!fva(a)||a.contains(1E3*this.j.getCurrentTime(1)||0)))if(g.V(this.j.Eb(1),32))this.J.add(a);else{var b=this.B.get(a);b&&((this.j.V().experiments.jb("enable_eviction_protection_for_bulleit")?this.u?this.u.FF():1:1)?b.nP(a):a.deactivate())}};
g.k.R0=function(a){a instanceof uA&&(a.B&&(a.B=!1),this.J.delete(a))};
g.k.OJ=function(){};
g.k.YQ=function(a){var b=1E3*a;this.u&&this.u.wL(b);for(var c=g.r(this.B.values()),d=c.next();!d.done;d=c.next())d.value.wL(b);g.nc(this.La.j,1E3*a)};
g.k.qn=function(a){switch(a){case "control_play":this.u&&(a=this.u,a.zz()&&a.G.Jc().playVideo());break;case "control_pause":this.u&&(a=this.u,a.zz()&&a.G.Jc().pauseVideo())}};
g.k.GV=function(a){this.u&&this.u.Uc(a)};
g.k.B0=function(a){0>rJ(a,16)&&(this.J.forEach(this.BJ,this),this.J.clear())};
g.k.l3=function(){if(this.u)this.u.onVideoDataChange()};
g.k.o3=function(){if(AI(this.j)&&this.u){var a=this.j.getCurrentTime(2,!1),b=this.u;b.j&&ACa(b.j,a)}};
g.k.Z_=function(){this.Wa=!0;if(this.u){var a=this.u;a.j&&a.j.Pm()}};
g.k.o0=function(a){if(this.u)this.u.onAdUxClicked(a)};
g.k.q3=function(){if(2==this.j.getPresentingPlayerType()&&this.u){var a=this.u.j,b=a.j,c=a.G.isMuted();eJ(b)||gJ(b,c?"mute":"unmute");a.C||(b=a.G.isMuted(),gJ(a.j,b?"unmuted_mute":"unmuted_unmute"))}};
g.k.b1=function(a){if(this.u){var b=this.u.j,c=b.j;dJ(c)||lJ(c,a?"fullscreen":"end_fullscreen");b.C||(b=b.j,dJ(b)||lJ(b,a?"unmuted_fullscreen":"unmuted_end_fullscreen"))}};
g.k.jh=function(a,b){this.j.jh(a,b);a=g.r(a);for(b=a.next();!b.done;b=a.next())b=b.value,this.Gr.delete(b),this.B.delete(b)};
g.k.Z5=function(){for(var a=[],b=g.r(this.Gr),c=b.next();!c.done;c=b.next())c=c.value,vA(c)||a.push(c);b=this.j.app;1!==b.getPresentingPlayerType()||WX(b,"cuerangemarkersupdated",a)};
g.k.zk=function(a){this.j.zk(a);switch(a){case 1:this.ZC=1;break;case 0:this.ZC=0}};
g.k.VK=function(){var a=this.j.getVideoData(2);return a?a.isListed&&!this.S:!1};
g.k.Jp=function(){this.u&&this.u.Is()&&this.u.Jp()};
g.k.Em=function(){this.u&&this.u.Is()&&this.u.Em()};
g.k.qC=function(){};
g.k.WB=function(){};
g.k.hc=function(a){if(this.u){var b=this.u;b.j&&ACa(b.j,a)}};
g.k.executeCommand=function(a,b,c){this.yb.executeCommand(a,b,IEa(this,void 0===c?null:c))};
g.k.isDaiEnabled=function(){return!1};
g.k.SO=function(){return this.ya};
g.k.TO=function(){return this.Ia};g.v(QK,g.J);QK.prototype.append=function(a){if(!this.u)throw Error("This does not support the append operation");this.j.appendChild(a.j)};
g.v(RK,QK);g.v(QEa,g.J);var SEa=1;g.v(g.TK,g.J);g.k=g.TK.prototype;
g.k.createElement=function(a,b){b=b||"svg"===a.F;var c=a.N,d=a.Fa;if(b){var e=document.createElementNS("http://www.w3.org/2000/svg",a.F);g.pG&&(a.X||(a.X={}),a.X.focusable="false")}else e=g.hh(a.F);if(c){if(c=UK(this,e,"class",c))VK(this,e,"class",c),this.Pc[c]=e}else if(d){c=g.r(d);for(var f=c.next();!f.done;f=c.next())this.Pc[f.value]=e;VK(this,e,"class",d.join(" "))}d=a.oa;c=a.W;if(d)b=UK(this,e,"child",d),void 0!==b&&e.appendChild(g.ih(b));else if(c)for(d=0,c=g.r(c),f=c.next();!f.done;f=c.next())if(f=
f.value)if("string"===typeof f)f=UK(this,e,"child",f),null!=f&&e.appendChild(g.ih(f));else if(f.element)e.appendChild(f.element);else{var h=f;f=this.createElement(h,b);e.appendChild(f);h.Qb&&(h=SK(),f.id=h,f=document.createElementNS("http://www.w3.org/2000/svg","use"),f.setAttribute("class","ytp-svg-shadow"),f.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+h),g.kh(e,f,d++))}if(a=a.X)for(b=e,d=g.r(Object.keys(a)),c=d.next();!c.done;c=d.next())c=c.value,f=a[c],VK(this,b,c,"string"===typeof f?
UK(this,b,c,f):f);return e};
g.k.Da=function(a){return this.Pc[a]};
g.k.Ca=function(a,b){"number"===typeof b?g.kh(a,this.element,b):a.appendChild(this.element)};
g.k.detach=function(){g.oh(this.element)};
g.k.update=function(a){for(var b=g.r(Object.keys(a)),c=b.next();!c.done;c=b.next())c=c.value,this.Oa(c,a[c])};
g.k.Oa=function(a,b){(a=this.Ne["{{"+a+"}}"])&&VK(this,a[0],a[1],b)};
g.k.ra=function(){this.Pc={};this.Ne={};this.detach();g.J.prototype.ra.call(this)};g.v(g.W,g.TK);g.k=g.W.prototype;g.k.Wd=function(a,b){this.Oa(b||"content",a)};
g.k.show=function(){this.rb||(g.zl(this.element,"display",""),this.rb=!0)};
g.k.hide=function(){this.rb&&(g.zl(this.element,"display","none"),this.rb=!1)};
g.k.Wb=function(a){this.Aa=a};
g.k.Ra=function(a,b,c){return this.T(this.element,a,b,c)};
g.k.T=function(a,b,c,d){c=(0,g.Pa)(c,d||this);d={target:a,type:b,listener:c};this.listeners.push(d);a.addEventListener(b,c);return d};
g.k.yc=function(a){var b=this;this.listeners.forEach(function(c,d){c===a&&(c=b.listeners.splice(d,1)[0],c.target.removeEventListener(c.type,c.listener))})};
g.k.focus=function(){var a=this.element;sh(a);a.focus()};
g.k.ra=function(){for(;this.listeners.length;){var a=this.listeners.pop();a&&a.target.removeEventListener(a.type,a.listener)}g.TK.prototype.ra.call(this)};g.v(g.XK,g.W);g.XK.prototype.subscribe=function(a,b,c){return this.Ya.subscribe(a,b,c)};
g.XK.prototype.unsubscribe=function(a,b,c){return this.Ya.unsubscribe(a,b,c)};
g.XK.prototype.Og=function(a){return this.Ya.Og(a)};
g.XK.prototype.ma=function(a){return this.Ya.ma.apply(this.Ya,[a].concat(g.t(g.za.apply(1,arguments))))};var d1a=new WeakSet;g.v(YK,g.XK);g.k=YK.prototype;g.k.bind=function(a){if(!this.eb&&a.renderer){var b=this.api.V().K("enable_macro_substitution_on_html5")?{}:Object.assign({},PEa(this.api),a.macros);this.init(a.id,a.renderer,b,a)}return Promise.resolve()};
g.k.init=function(a,b,c){this.eb=a;this.element.setAttribute("id",this.eb);this.yb&&g.fo(this.element,this.yb);this.Z=b&&b.adRendererCommands;this.macros=c;this.J=b.trackingParams||null;null!=this.J&&this.Ug(this.element,this.J)};
g.k.clear=function(){};
g.k.hide=function(){g.XK.prototype.hide.call(this);null!=this.J&&this.Xa(this.element,!1)};
g.k.show=function(){g.XK.prototype.show.call(this);if(!this.Gb){this.Gb=!0;var a=this.Z&&this.Z.impressionCommand;a&&this.tE(a,null)}null!=this.J&&this.Xa(this.element,!0)};
g.k.onClick=function(a){if(this.J&&!d1a.has(a)){var b=this.element;this.api.Tm(b)&&this.rb&&this.api.ub(b,this.j);d1a.add(a)}if(a=this.Z&&this.Z.clickCommand)a=this.QR(a),this.tE(a,this.XO())};
g.k.QR=function(a){return a};
g.k.XO=function(){return null};
g.k.JV=function(a){var b=this.qa;b.J=!0;b.u=a.touches.length;b.j.isActive()&&(b.j.stop(),b.D=!0);a=a.touches;b.I=REa(b,a)||1!=a.length;var c=a.item(0);b.I||!c?(b.S=Infinity,b.Z=Infinity):(b.S=c.clientX,b.Z=c.clientY);for(c=b.B.length=0;c<a.length;c++){var d=a.item(c);b.B.push(d.identifier)}};
g.k.IV=function(a){var b=this.qa;a=a.changedTouches.item(0);if(Hb()&&!(0<=g.lb(Laa(),8))||a&&Math.pow(a.clientX-b.S,2)+Math.pow(a.clientY-b.Z,2)>Math.pow(5,2))b.C=!0};
g.k.HV=function(a){if(this.qa){var b=this.qa,c=a.changedTouches;c&&b.J&&1==b.u&&!b.C&&!b.D&&!b.I&&REa(b,c)&&(b.ea=a,b.j.start());b.u=a.touches.length;0===b.u&&(b.J=!1,b.C=!1,b.B.length=0);b.D=!1}};
g.k.tE=function(a){this.api.V().K("enable_macro_substitution_on_html5")?(0<Object.keys(this.macros).length&&g.pz(new g.Pv("There are non-empty macros passed to the runCommand method.",{componentType:this.componentType})),this.layoutId?this.bb.executeCommand(a,this.layoutId):g.oz(new g.Pv("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))):zL(this.bb,a,this.macros)};
g.k.Ug=function(a,b){this.api.Ug(a,this);this.api.ji(a,b)};
g.k.Xa=function(a,b){this.api.Tm(a)&&this.api.Xa(a,b,this.j)};
g.k.ra=function(){this.clear(null);this.yc(this.ob);for(var a=g.r(this.ya),b=a.next();!b.done;b=a.next())this.yc(b.value);g.XK.prototype.ra.call(this)};g.v(nL,YK);
nL.prototype.init=function(a,b,c){YK.prototype.init.call(this,a,b,c);this.u=b;if(null==b.text&&null==b.icon)g.pz(Error("ButtonRenderer did not have text or an icon set."));else{switch(b.style||null){case "STYLE_UNKNOWN":a="ytp-ad-button-link";break;default:a=null}null!=a&&g.fo(this.element,a);null!=b.text&&(a=g.xA(b.text),g.cb(a)||(this.element.setAttribute("aria-label",a),this.C=new g.XK({F:"span",N:"ytp-ad-button-text",oa:a}),g.M(this,this.C),this.C.Ca(this.element)));this.api.V().K("use_accessibility_data_on_desktop_player_button")&&b.accessibilityData&&
b.accessibilityData.accessibilityData&&b.accessibilityData.accessibilityData.label&&!g.cb(b.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",b.accessibilityData.accessibilityData.label);null!=b.icon&&(b=mL(b.icon),null!=b&&(this.B=new g.XK({F:"span",N:"ytp-ad-button-icon",W:[b]}),g.M(this,this.B)),this.D?g.kh(this.element,this.B.element,0):this.B.Ca(this.element))}};
nL.prototype.clear=function(){this.hide()};
nL.prototype.onClick=function(a){YK.prototype.onClick.call(this,a);a=g.r(mFa(this));for(var b=a.next();!b.done;b=a.next())b=b.value,this.api.V().K("enable_macro_substitution_on_html5")?this.layoutId?this.bb.executeCommand(b,this.layoutId):g.oz(Error("Missing layoutId for button.")):zL(this.bb,b,this.macros);this.api.onAdUxClicked(this.componentType,this.layoutId)};g.v(oL,g.J);oL.prototype.ra=function(){this.u&&g.zx(this.u);this.j.clear();pL=null;g.J.prototype.ra.call(this)};
oL.prototype.register=function(a,b){b&&this.j.set(a,b)};
var pL=null;g.v(rL,YK);
rL.prototype.init=function(a,b,c){YK.prototype.init.call(this,a,b,c);a=b.hoverText||null;b=b.button&&b.button.buttonRenderer||null;null==b?g.oz(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new nL(this.api,this.ib,this.layoutId,this.j,this.bb),g.M(this,this.button),this.button.init(DI("button"),b,this.macros),a&&this.button.element.setAttribute("aria-label",g.xA(a)),this.button.Ca(this.element),this.I&&!g.eo(this.button.element,"ytp-ad-clickable")&&g.fo(this.button.element,"ytp-ad-clickable"),
a&&(this.B=new g.XK({F:"div",N:"ytp-ad-hover-text-container"}),this.D&&(b=new g.XK({F:"div",N:"ytp-ad-hover-text-callout"}),b.Ca(this.B.element),g.M(this,b)),g.M(this,this.B),this.B.Ca(this.element),b=qL(a),g.kh(this.B.element,b,0)),this.show())};
rL.prototype.hide=function(){this.button&&this.button.hide();this.B&&this.B.hide();YK.prototype.hide.call(this)};
rL.prototype.show=function(){this.button&&this.button.show();YK.prototype.show.call(this)};g.v(tL,YK);
tL.prototype.init=function(a,b,c){YK.prototype.init.call(this,a,b,c);c=(a=b.thumbnail)&&sL(a)||"";g.cb(c)?(this.api.V().K("web_player_ad_image_error_rate_sampling_killswitch")||.01>Math.random())&&g.pz(Error("Found AdImage without valid image URL")):(this.u?g.zl(this.element,"backgroundImage","url("+c+")"):dh(this.element,{src:c}),dh(this.element,{alt:a&&a.accessibility&&a.accessibility.label||""}),b&&b.adRendererCommands&&b.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),
this.show())};
tL.prototype.clear=function(){this.hide()};g.v(uL,YK);g.k=uL.prototype;g.k.hide=function(){YK.prototype.hide.call(this);this.C&&this.C.focus()};
g.k.show=function(){this.C=document.activeElement;YK.prototype.show.call(this);this.D.focus()};
g.k.init=function(a,b,c){YK.prototype.init.call(this,a,b,c);this.B=b;b.dialogMessages||null!=b.title?null==b.confirmLabel?g.oz(Error("ConfirmDialogRenderer.confirmLabel was not set.")):null==b.cancelLabel?g.oz(Error("ConfirmDialogRenderer.cancelLabel was not set.")):qFa(this,b):g.oz(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))};
g.k.clear=function(){g.$y(this.u);this.hide()};
g.k.yJ=function(){this.hide()};
g.k.NF=function(){var a=this.B.cancelEndpoint;a&&(this.api.V().K("enable_macro_substitution_on_html5")?this.layoutId?this.bb.executeCommand(a,this.layoutId):g.oz(Error("Missing layoutId for confirm dialog.")):zL(this.bb,a,this.macros));this.hide()};
g.k.zJ=function(){var a=this.B.confirmNavigationEndpoint||this.B.confirmEndpoint;a&&(this.api.V().K("enable_macro_substitution_on_html5")?this.layoutId?this.bb.executeCommand(a,this.layoutId):g.oz(Error("Missing layoutId for confirm dialog.")):zL(this.bb,a,this.macros));this.hide()};g.v(vL,YK);g.k=vL.prototype;
g.k.init=function(a,b,c){YK.prototype.init.call(this,a,b,c);this.B=b;if(null==b.defaultText&&null==b.defaultIcon)g.oz(Error("ToggleButtonRenderer must have either text or icon set."));else if(null==b.defaultIcon&&null!=b.toggledIcon)g.oz(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(b.style){switch(b.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":a="ytp-ad-toggle-button-default-style";break;default:a=null}null!=a&&g.fo(this.C,a)}a={};b.defaultText?
(c=g.xA(b.defaultText),g.cb(c)||(a.buttonText=c,this.u.setAttribute("aria-label",c))):g.Ll(this.Ba,!1);b.defaultTooltip&&(a.tooltipText=b.defaultTooltip,this.u.hasAttribute("aria-label")||this.ea.setAttribute("aria-label",b.defaultTooltip));b.defaultIcon?(c=mL(b.defaultIcon),this.Oa("untoggledIconTemplateSpec",c),b.toggledIcon?(this.S=!0,c=mL(b.toggledIcon),this.Oa("toggledIconTemplateSpec",c)):(g.Ll(this.I,!0),g.Ll(this.D,!1)),g.Ll(this.u,!1)):g.Ll(this.ea,!1);g.vf(a)||this.update(a);b.isToggled&&
(g.fo(this.C,"ytp-ad-toggle-button-toggled"),this.toggleButton(b.isToggled));wL(this);this.T(this.element,"change",this.WM);this.show()}};
g.k.onClick=function(a){0<this.ya.length&&(this.toggleButton(!this.isToggled()),this.WM());YK.prototype.onClick.call(this,a)};
g.k.WM=function(){g.jo(this.C,"ytp-ad-toggle-button-toggled",this.isToggled());for(var a=g.r(rFa(this,this.isToggled())),b=a.next();!b.done;b=a.next())b=b.value,this.api.V().K("enable_macro_substitution_on_html5")?this.layoutId?this.bb.executeCommand(b,this.layoutId):g.oz(Error("Missing layoutId for toggle button.")):zL(this.bb,b,this.macros);if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);wL(this)};
g.k.clear=function(){this.hide()};
g.k.toggleButton=function(a){g.jo(this.C,"ytp-ad-toggle-button-toggled",a);this.u.checked=a;wL(this)};
g.k.isToggled=function(){return this.u.checked};g.v(xL,Yy);xL.prototype.S=function(a){if(Array.isArray(a)){a=g.r(a);for(var b=a.next();!b.done;b=a.next())b=b.value,b instanceof wA&&this.C(b)}};g.v(yL,YK);g.k=yL.prototype;g.k.init=function(a,b,c){YK.prototype.init.call(this,a,b,c);b.reasons?null==b.confirmLabel?g.oz(Error("AdFeedbackRenderer.confirmLabel was not set.")):(null==b.cancelLabel&&g.pz(Error("AdFeedbackRenderer.cancelLabel was not set.")),null==b.title&&g.pz(Error("AdFeedbackRenderer.title was not set.")),vFa(this,b)):g.oz(Error("AdFeedbackRenderer.reasons were not set."))};
g.k.clear=function(){Hx(this.I);Hx(this.S);this.D.length=0;this.hide()};
g.k.hide=function(){this.u&&this.u.hide();this.B&&this.B.hide();YK.prototype.hide.call(this);this.C&&this.C.focus()};
g.k.show=function(){this.u&&this.u.show();this.B&&this.B.show();this.C=document.activeElement;YK.prototype.show.call(this);this.I.focus()};
g.k.SQ=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.ma("a");this.hide()};
g.k.j3=function(){this.hide()};
wFa.prototype.isChecked=function(){return this.B.checked};g.v(AL,uL);AL.prototype.yJ=function(a){uL.prototype.yJ.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
AL.prototype.NF=function(a){uL.prototype.NF.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
AL.prototype.zJ=function(a){uL.prototype.zJ.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.ma("b")};g.v(BL,YK);g.k=BL.prototype;
g.k.init=function(a,b,c){YK.prototype.init.call(this,a,b,c);this.I=b;if(null==b.dialogMessage&&null==b.title)g.oz(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{null==b.confirmLabel&&g.pz(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(a=b.closeOverlayRenderer&&b.closeOverlayRenderer.buttonRenderer||null)this.u=new nL(this.api,this.ib,this.layoutId,this.j,this.bb,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"),g.M(this,
this.u),this.u.init(DI("button"),a,this.macros),this.u.Ca(this.element);b.title&&(a=g.xA(b.title),this.Oa("title",a));if(b.adReasons)for(a=b.adReasons,c=0;c<a.length;c++){var d=qL(a[c]);if(!g.cb(d.textContent)){var e=gh("LI");e.appendChild(d);this.Ia.appendChild(e)}}else g.Ll(this.Ia,!1);b.dialogMessage&&(a=qL(b.dialogMessage,!0),this.Qa.appendChild(a));b.confirmLabel&&(a=g.xA(b.confirmLabel),this.Oa("confirmLabel",a));b.muteAdRenderer&&(b=(b=b.muteAdRenderer)&&b.buttonRenderer||null)&&(a=b.navigationEndpoint&&
b.navigationEndpoint.adFeedbackEndpoint||null,c=b.navigationEndpoint&&b.navigationEndpoint.confirmDialogEndpoint||null,null==a&&null==c?g.pz(Error("AdInfoDialogRenderer.muteAdRenderer was specified but contains neither an AdFeedbackEndpoint, nor a ConfirmDialogEndpoint.")):(a?xFa(this,a):c&&yFa(this,c),this.C=new nL(this.api,this.ib,this.layoutId,this.j,this.bb,["ytp-ad-info-dialog-mute-button"],"button",!0),g.M(this,this.C),this.C.init(DI("button"),b,this.macros),this.C.Ra("click",this.E1,this),
this.C.Ca(this.Wa)));zFa(this)}};
g.k.clear=function(){Hx(this.S);this.hide()};
g.k.hide=function(){this.B?this.B.hide():this.D&&this.D.hide();this.u&&this.u.hide();this.C&&this.C.hide();YK.prototype.hide.call(this);this.ea&&this.ea.focus()};
g.k.show=function(){this.u&&this.u.show();this.C&&this.C.show();if(!this.La){for(var a=g.r(this.I&&this.I.impressionEndpoints||[]),b=a.next();!b.done;b=a.next())b=b.value,this.api.V().K("enable_macro_substitution_on_html5")?this.layoutId?this.bb.executeCommand(b,this.layoutId):g.oz(Error("Missing layoutId for ad info dialog.")):zL(this.bb,b,this.macros);this.La=!0}this.ea=document.activeElement;YK.prototype.show.call(this);this.S.focus()};
g.k.XM=function(){if(this.I&&this.I.confirmServiceEndpoint){var a=this.I.confirmServiceEndpoint;this.api.V().K("enable_macro_substitution_on_html5")?this.layoutId?this.bb.executeCommand(a,this.layoutId):g.oz(Error("Missing layoutId for ad info dialog.")):zL(this.bb,a,this.macros)}this.api.onAdUxClicked("ad-info-dialog-close-button",this.layoutId);this.ma("d");this.hide()};
g.k.E1=function(){var a=this.B?this.B:this.D;a&&!a.rb&&(this.hide(),a.show())};g.v(CL,rL);CL.prototype.init=function(a,b,c){rL.prototype.init.call(this,a,b,c);a=b.button&&b.button.buttonRenderer||null;null!=a&&(CFa(this,a,c),this.show())};
CL.prototype.hide=function(){this.button&&this.button.hide();this.u&&this.u.hide();rL.prototype.hide.call(this)};
CL.prototype.show=function(){this.button&&this.button.show();rL.prototype.show.call(this)};
CL.prototype.clear=function(){this.hide()};g.v(DL,YK);
DL.prototype.init=function(a,b,c){YK.prototype.init.call(this,a,b,c);this.u=b;this.isTemplated()||g.rh(this.element,ZK(this.u));if(b.backgroundImage&&(a=(a=b.backgroundImage.thumbnail)?sL(a):"",c=(c=this.api.getVideoData(1))&&c.lm,a&&c&&(this.element.style.backgroundImage="url("+a+")",this.element.style.backgroundSize="100%"),b.style&&b.style.adTextStyle))switch(b.style.adTextStyle.fontSize){case "AD_FONT_SIZE_MEDIUM":this.element.style.fontSize="26px"}(a=g.Ug(b.targetId))&&this.element.setAttribute("data-tooltip-target-id",a);
b&&b.adRendererCommands&&b.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element");this.show()};
DL.prototype.isTemplated=function(){return this.u.isTemplated||!1};
DL.prototype.clear=function(){this.hide()};var GFa={seekableStart:0,seekableEnd:1,current:0};g.v(FL,YK);FL.prototype.clear=function(){this.dispose()};(function(a,b){function c(f){var h=g.r(f);f=h.next().value;h=fa(h);return a.apply(f,h)}
function d(f){f=g.r(f);f.next();f=fa(f);return b(e,f)}
b=void 0===b?Gka:b;var e=g.Oa(a);return function(){var f=g.za.apply(0,arguments),h=this||g.C,l=pZa.get(h);l||(l={},pZa.set(h,l));return Waa(l,[this].concat(g.t(f)),c,d)}})(function(a){var b=g.hh("DIV");
a&&(b.className=a);b.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";a=g.hh("DIV");g.Jl(a,"200px","200px");b.appendChild(a);document.body.appendChild(b);a=b.offsetWidth-b.clientWidth;g.oh(b);return a});g.v(g.IL,g.J);g.k=g.IL.prototype;g.k.show=function(a){1!==this.state&&2!==this.state&&(4===this.state&&this.zB(),5===this.state?(this.element.show(),this.state=null,this.delay.stop(),this.j&&this.j()):this.element.rb||(JL(this,!0),this.state=1,a?this.delay.start(a):this.zB()))};
g.k.hide=function(){4!==this.state&&(1===this.state||2===this.state?(this.element.hide(),this.state=null,this.delay.stop()):this.element.rb&&(JL(this,!0),this.state=4,this.delay.start(this.C)))};
g.k.zB=function(){switch(this.state){case 1:this.element.show();this.state=2;this.delay.start(10);break;case 2:JL(this,!1);this.state=3;this.delay.start(this.B);break;case 3:this.state=null;this.j&&this.j();break;case 4:this.element.hide();JL(this,!1);this.state=5;this.delay.start(0);break;case 5:this.state=null,this.u&&this.u()}};
g.k.stop=function(){for(;null!==this.state&&5!==this.state;)this.delay.stop(),this.zB()};
g.k.ra=function(){this.element.isDisposed()||this.element.element.removeAttribute("aria-hidden");g.J.prototype.ra.call(this)};g.v(KL,FL);g.k=KL.prototype;
g.k.init=function(a,b,c){FL.prototype.init.call(this,a,b,c);a=b.durationMilliseconds;"number"===typeof a&&0>a&&g.oz(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+a));this.Wa&&g.fo(this.B.element,"countdown-next-to-thumbnail");a=b.durationMilliseconds;this.Ba=null==a||0===a?this.u.Lv():a;if(b.templatedCountdown)var d=b.templatedCountdown.templatedAdText;else b.staticPreview&&(d=b.staticPreview);this.C.init(DI("ad-text"),d,c);(d=this.api.getVideoData(1))&&
d.lm&&b.thumbnail?this.I.init(DI("ad-image"),b.thumbnail,c):this.S.hide()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){this.B.hide();this.C.hide();this.I.hide();HL(this);FL.prototype.hide.call(this)};
g.k.show=function(){GL(this);this.B.show();this.C.show();this.I.show();FL.prototype.show.call(this)};
g.k.Ct=function(){this.hide()};
g.k.Jq=function(){if(null!=this.u){var a=this.u.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.La&&a>=this.Ba?(this.ea.hide(),this.La=!0,this.ma("i")):this.C&&this.C.isTemplated()&&(a=Math.max(0,Math.ceil((this.Ba-a)/1E3)),a!=this.Qa&&(EL(this.C,{TIME_REMAINING:String(a)}),this.Qa=a)))}};g.v(ML,FL);g.k=ML.prototype;
g.k.init=function(a,b,c){FL.prototype.init.call(this,a,b,c);if(b.image&&b.image.thumbnail)if(b.headline)if(b.description)if(b.actionButton&&b.actionButton.buttonRenderer&&b.actionButton.buttonRenderer.navigationEndpoint){a=this.api.getVideoData(2);if(null!=a)if(b.image&&b.image.thumbnail){var d=b.image.thumbnail.thumbnails;null!=d&&0<d.length&&g.cb(g.Ug(d[0].url))&&(d[0].url=a.profilePicture)}else g.pz(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.C.init(DI("ad-image"),b.image,c);
this.ea.init(DI("ad-text"),b.headline,c);this.S.init(DI("ad-text"),b.description,c);this.B.init(DI("button"),b.actionButton.buttonRenderer,c);this.I=b.actionButton.buttonRenderer.navigationEndpoint;this.api.fD()||this.show();this.api.addEventListener("playerUnderlayVisibilityChange",this.YM.bind(this));this.Ba=b.startMs||0;GL(this)}else g.oz(Error("FlyoutCtaRenderer has no valid action button."));else g.oz(Error("FlyoutCtaRenderer has no description AdText."));else g.oz(Error("FlyoutCtaRenderer has no headline AdText."));
else g.pz(Error("FlyoutCtaRenderer has no image."))};
g.k.onClick=function(a){FL.prototype.onClick.call(this,a);this.api.pauseVideo();!g.qh(this.B.element,a.target)&&this.I&&(this.api.V().K("enable_macro_substitution_on_html5")?this.layoutId?this.bb.executeCommand(this.I,this.layoutId):g.oz(Error("Missing layoutId for flyout cta.")):zL(this.bb,this.I,this.macros))};
g.k.Jq=function(){if(this.u){var a=this.u.getProgressState();a&&a.current&&1E3*a.current>=this.Ba&&(HL(this),g.ho(this.element,"ytp-flyout-cta-inactive"),this.api.V().K("disable_tabbing_before_flyout_ad_elements_appear")&&this.B.element.removeAttribute("tabIndex"))}};
g.k.Ct=function(){this.clear()};
g.k.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.YM.bind(this))};
g.k.show=function(){this.B&&this.B.show();FL.prototype.show.call(this)};
g.k.hide=function(){this.B&&this.B.hide();FL.prototype.hide.call(this)};
g.k.YM=function(a){"hidden"==a?this.show():this.hide()};g.v(NL,YK);g.k=NL.prototype;
g.k.init=function(a,b,c){YK.prototype.init.call(this,a,b,c);this.u=b;if(this.u.rectangle)for(this.C.init(DI("toggle-button"),this.u.likeButton.toggleButtonRenderer,c),this.B.init(DI("toggle-button"),this.u.dislikeButton.toggleButtonRenderer,c),this.T(this.element,"change",this.ZM),this.D.show(100),this.show(),a=g.r(this.u&&this.u.impressionCommands||[]),b=a.next();!b.done;b=a.next())b=b.value,this.api.V().K("enable_macro_substitution_on_html5")?this.layoutId?this.bb.executeCommand(b,this.layoutId):
g.oz(Error("Missing layoutId for instream user sentiment.")):zL(this.bb,b,this.macros)};
g.k.clear=function(){this.hide()};
g.k.hide=function(){this.C.hide();this.B.hide();YK.prototype.hide.call(this)};
g.k.show=function(){this.C.show();this.B.show();YK.prototype.show.call(this)};
g.k.ZM=function(){pka(this.element,"ytp-ad-instream-user-sentiment-selected");this.u.postMessageAction&&this.api.Pa("onYtShowToast",this.u.postMessageAction);this.D.hide()};
g.k.onClick=function(a){0<this.ya.length&&this.ZM();YK.prototype.onClick.call(this,a)};g.v(OL,g.J);g.k=OL.prototype;g.k.ra=function(){this.reset();g.J.prototype.ra.call(this)};
g.k.reset=function(){g.$y(this.C);this.I=!1;this.j&&this.j.stop();this.D.stop();this.u&&(this.u=!1,this.J.play())};
g.k.start=function(){this.reset();this.C.T(this.B,"mouseover",this.LV,this);this.C.T(this.B,"mouseout",this.KV,this);this.j?this.j.start():(this.I=this.u=!0,g.zl(this.B,{opacity:this.Z}))};
g.k.LV=function(){this.u&&(this.u=!1,this.J.play());this.D.stop();this.j&&this.j.stop()};
g.k.KV=function(){this.I?this.D.start():this.j&&this.j.start()};
g.k.QN=function(){this.u||(this.u=!0,this.S.play(),this.I=!0)};g.v(PL,FL);g.k=PL.prototype;
g.k.init=function(a,b,c){FL.prototype.init.call(this,a,b,c);this.S=b;this.Ba=EFa(this);if(!b||g.vf(b))g.oz(Error("SkipButtonRenderer was not specified or empty."));else if(!b.message||g.vf(b.message))g.oz(Error("SkipButtonRenderer.message was not specified or empty."));else{a={iconType:"SKIP_NEXT"};b=mL(a);null==b?g.oz(Error("Icon for SkipButton was unable to be retrieved. yt.innertube.Icon.IconType: "+a.iconType+".")):(this.I=new g.XK({F:"button",Fa:["ytp-ad-skip-button","ytp-button"],W:[{F:"span",
N:"ytp-ad-skip-button-icon",W:[b]}]}),g.M(this,this.I),this.I.Ca(this.C.element),this.B=new DL(this.api,this.ib,this.layoutId,this.j,this.bb,"ytp-ad-skip-button-text"),this.B.init(DI("ad-text"),this.S.message,c),g.M(this,this.B),g.kh(this.I.element,this.B.element,0));var d=void 0===d?null:d;c=this.api.V();!(0<this.ya.length)&&c.isMobile&&(HF?0:"ontouchstart"in document.documentElement&&(Mga()||Gk()))&&(this.yc(this.ob),d&&this.yc(d),this.ya=[this.T(this.element,"touchstart",this.JV,this),this.T(this.element,
"touchmove",this.IV,this),this.T(this.element,"touchend",this.HV,this)])}};
g.k.clear=function(){this.ea.reset();this.hide()};
g.k.hide=function(){this.C.hide();this.B&&this.B.hide();HL(this);FL.prototype.hide.call(this)};
g.k.onClick=function(a){if(null!=this.I&&(a&&g.Ex(a),FL.prototype.onClick.call(this,a),this.ma("j"),this.La||!this.Ba))this.api.onAdUxClicked(this.componentType,this.layoutId)};
g.k.QR=function(a){if(!this.La)return this.Ba&&cA("SkipButton click commands not pruned while ALC exist"),a;var b,c=null==(b=a.commandExecutorCommand)?void 0:b.commands;if(!c)return a;b=[];for(var d=0;d<c.length;d++){var e=a.commandExecutorCommand.commands[d];e.adLifecycleCommand&&DFa(e.adLifecycleCommand)||e.pingingEndpoint||e.adPingingEndpoint||b.push(e)}return{commandExecutorCommand:{commands:b}}};
g.k.XO=function(){return"skip"};
g.k.tE=function(a,b){b=IEa(this.ib,b);this.api.V().K("enable_macro_substitution_on_html5")?(b=lCa(this.macros,!1,b),this.layoutId?p_(this.bb,a,this.layoutId,b):g.oz(Error("Missing layoutId for skip button."))):zL(this.bb,a,this.macros,b)};
g.k.show=function(){this.ea.start();this.C.show();this.B&&this.B.show();GL(this);FL.prototype.show.call(this)};
g.k.Ct=function(){this.ma("k")};
g.k.Jq=function(){};g.v(QL,FL);g.k=QL.prototype;
g.k.init=function(a,b,c){FL.prototype.init.call(this,a,b,c);a=b&&b.preskipRenderer&&b.preskipRenderer.adPreviewRenderer||{};(a=g.vf(a)?null:a)?(this.S=null!=a.durationMilliseconds&&void 0!==a.durationMilliseconds?a.durationMilliseconds:5E3,this.B=new KL(this.api,this.ib,this.layoutId,this.j,this.bb,this.u,"countdown_next_to_thumbnail"==g.JE(this.api.V().experiments,"preskip_button_style_ads_backend")&&$F(this.api.V())),this.B.init(DI("preskip-component"),a,c),LL(this.B),g.M(this,this.B),this.B.Ca(this.element)):
b.skipOffsetMilliseconds&&(this.S=b.skipOffsetMilliseconds);b=b&&b.skippableRenderer&&b.skippableRenderer.skipButtonRenderer||{};b=g.vf(b)?null:b;null==b?g.oz(Error("SkipButtonRenderer was not set in player response.")):(this.C=new PL(this.api,this.ib,this.layoutId,this.j,this.bb,this.u,this.ea),this.C.init(DI("skip-button"),b,c),g.M(this,this.C),this.C.Ca(this.element),this.show())};
g.k.show=function(){this.I&&this.C?this.C.show():this.B&&this.B.show();GL(this);FL.prototype.show.call(this)};
g.k.Ct=function(){};
g.k.clear=function(){this.B&&this.B.clear();this.C&&this.C.clear();HL(this);FL.prototype.hide.call(this)};
g.k.hide=function(){this.B&&this.B.hide();this.C&&this.C.hide();HL(this);FL.prototype.hide.call(this)};
g.k.Jq=function(){1E3*this.u.getProgressState().current>=this.S&&FFa(this,!0)};g.v(RL,nL);RL.prototype.init=function(a,b,c){nL.prototype.init.call(this,a,b,c);a=!1;null!=b.text&&(a=g.xA(b.text),a=!g.cb(a));a?null==b.navigationEndpoint?g.pz(Error("No visit advertiser clickthrough provided in renderer,")):"STYLE_UNKNOWN"!==b.style?g.pz(Error("Button style was not a link-style type in renderer,")):this.show():g.pz(Error("No visit advertiser text was present in the renderer."))};g.v(SL,YK);SL.prototype.init=function(a,b,c){YK.prototype.init.call(this,a,b,c);a=b.text;g.cb(ZK(a))?g.pz(Error("SimpleAdBadgeRenderer has invalid or empty text")):(a&&a.text&&(b=a.text,this.u&&(b=this.api.V(),b=a.text+" "+(b&&b.isMobile?"\u2022":"\u00b7")),b={text:b,isTemplated:a.isTemplated},a.style&&(b.style=a.style),a.targetId&&(b.targetId=a.targetId),a=new DL(this.api,this.ib,this.layoutId,this.j,this.bb),a.init(DI("simple-ad-badge"),b,c),a.Ca(this.element),g.M(this,a)),this.show())};
SL.prototype.clear=function(){this.hide()};g.v(TL,EI);g.v(UL,g.az);g.k=UL.prototype;g.k.Lv=function(){return this.durationMs};
g.k.stop=function(){this.j&&this.Xc.yc(this.j)};
g.k.hc=function(a){this.u={seekableStart:0,seekableEnd:this.durationMs/1E3,current:a.current};this.ma("h")};
g.k.getProgressState=function(){return this.u};
g.k.Uc=function(a){g.sJ(a,2)&&this.ma("g")};g.v(VL,g.az);g.k=VL.prototype;g.k.Lv=function(){return this.durationMs};
g.k.start=function(){this.u||(this.u=!0,this.timer.start())};
g.k.stop=function(){this.u&&(this.u=!1,this.timer.stop())};
g.k.hc=function(){this.j+=100;var a=!1;this.j>this.durationMs&&(this.j=this.durationMs,this.timer.stop(),a=!0);this.B={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.j/1E3};this.ib&&this.ib.hc(this.B.current);this.ma("h");a&&this.ma("g")};
g.k.getProgressState=function(){return this.B};g.v(YL,FL);g.k=YL.prototype;g.k.init=function(a,b,c){FL.prototype.init.call(this,a,b,c);var d;if(null==b?0:null==(d=b.templatedCountdown)?0:d.templatedAdText){a=b.templatedCountdown.templatedAdText;if(!a.isTemplated){gu(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.B=new DL(this.api,this.ib,this.layoutId,this.j,this.bb);this.B.init(DI("ad-text"),a,{});this.B.Ca(this.element);g.M(this,this.B)}this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){HL(this);FL.prototype.hide.call(this)};
g.k.Ct=function(){this.hide()};
g.k.Jq=function(){if(null!=this.u){var a=this.u.getProgressState();null!=a&&null!=a.current&&this.B&&(a=(this.u instanceof UL?void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:a.seekableEnd:void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:this.u instanceof VL?a.seekableEnd:this.api.getDuration(2,!1))-a.current,EL(this.B,{FORMATTED_AD_DURATION_REMAINING:String(g.WL(a)),TIME_REMAINING:String(Math.ceil(a))}))}};
g.k.show=function(){GL(this);FL.prototype.show.call(this)};g.v(ZL,DL);ZL.prototype.onClick=function(a){DL.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType)};g.v(dM,g.XK);dM.prototype.hc=function(){var a=this.u.getProgressState();this.Cc.style.width=100*cM(new $L(a.seekableStart,a.seekableEnd),a.current,0)+"%"};
dM.prototype.onStateChange=function(){g.SF(this.api.V())||(2===this.api.getPresentingPlayerType()?-1===this.j&&(this.show(),this.j=this.u.subscribe("h",this.hc,this),this.hc()):-1!==this.j&&(this.hide(),this.u.Og(this.j),this.j=-1))};g.v(eM,YK);
eM.prototype.init=function(a,b,c,d){YK.prototype.init.call(this,a,b,c);b.skipOrPreviewRenderer&&(a=b.skipOrPreviewRenderer,a.skipAdRenderer?(c=new QL(this.api,this.ib,this.layoutId,this.j,this.bb,this.u,this.S),c.Ca(this.I),c.init(DI("skip-button"),a.skipAdRenderer,this.macros),g.M(this,c)):a.adPreviewRenderer&&(c=new KL(this.api,this.ib,this.layoutId,this.j,this.bb,this.u,!1),c.Ca(this.I),c.init(DI("ad-preview"),a.adPreviewRenderer,this.macros),LL(c),g.M(this,c)));b.brandInteractionRenderer&&(a=
b.brandInteractionRenderer.brandInteractionRenderer,c=new NL(this.api,this.ib,this.layoutId,this.j,this.bb),c.Ca(this.ea),c.init(DI("instream-user-sentiment"),a,this.macros),g.M(this,c));b.flyoutCtaRenderer&&(a=b.flyoutCtaRenderer,a.flyoutCtaRenderer&&(c=new ML(this.api,this.ib,this.layoutId,this.j,this.bb,this.u),g.M(this,c),c.Ca(this.D),c.init(DI("flyout-cta"),a.flyoutCtaRenderer,this.macros)));d=d&&d.videoAdDurationSeconds;b.adBadgeRenderer&&(a=b.adBadgeRenderer.simpleAdBadgeRenderer,null==a&&
(a={text:{text:"Ad",isTemplated:!1}}),c=new SL(this.api,this.ib,this.layoutId,this.j,this.bb,!0),g.M(this,c),c.Ca(this.B),c.init(DI("simple-ad-badge"),a,this.macros));b.adDurationRemaining&&(a=b.adDurationRemaining.adDurationRemainingRenderer,null==a&&(a={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),d=new YL(this.api,this.ib,this.layoutId,this.j,this.bb,this.u,d),g.M(this,d),d.Ca(this.B),d.init(DI("ad-duration-remaining"),a,this.macros));b.adInfoRenderer&&
(d=b.adInfoRenderer,d.adHoverTextButtonRenderer&&(a=new CL(this.api,this.ib,this.layoutId,this.j,this.bb,this.element),g.M(this,a),a.Ca(this.B),a.init(DI("ad-info-hover-text-button"),d.adHoverTextButtonRenderer,this.macros)));b.visitAdvertiserRenderer&&(b=b.visitAdvertiserRenderer,b.buttonRenderer&&(d=HFa(this)&&this.C?this.C:this.B))&&(a=new RL(this.api,this.ib,this.layoutId,this.j,this.bb),g.M(this,a),a.Ca(d),a.init(DI("visit-advertiser"),b.buttonRenderer,this.macros));(b=this.api.V())&&!PF(b)&&
"3"==b.controlsType&&(b=new dM(this.api,this.u),b.Ca(this.Ba),g.M(this,b));this.api.V().K("enable_updated_html5_player_focus_style")&&g.fo(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()};
eM.prototype.clear=function(){this.hide()};g.Fa("yt.pubsub.publish",g.Ux);var tM={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var mM=Symbol("injectionDeps");kM.prototype.toString=function(){return"InjectionToken("+this.name+")"};
RFa.prototype.resolve=function(a){return a instanceof lM?nM(this,a.key,[],!0):nM(this,a,[])};var DM;var m4={},TFa=(m4.WEB_UNPLUGGED="^unplugged/",m4.WEB_UNPLUGGED_ONBOARDING="^unplugged/",m4.WEB_UNPLUGGED_OPS="^unplugged/",m4.WEB_UNPLUGGED_PUBLIC="^unplugged/",m4.WEB_CREATOR="^creator/",m4.WEB_KIDS="^kids/",m4.WEB_EXPERIMENTS="^experiments/",m4.WEB_MUSIC="^music/",m4.WEB_REMIX="^music/",m4.WEB_MUSIC_EMBEDDED_PLAYER="^music/",m4.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",m4);qM.prototype.D=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?tM:c;var d={context:g.sK(a.clickTrackingParams,!1,this.C)};var e=this.j(a);if(e){this.u(d,e,b);var f;b=g.pM(this.B());(e=null==(f=g.Zu(a.commandMetadata,wZa))?void 0:f.apiUrl)&&(b=e);f=Ama($u(b));a=g.S("kevlar_response_command_processor_page")?Object.assign({},{command:a},void 0):Object.assign({},void 0);d={input:f,Mq:av(f),Xm:d,config:a};d.config.Lr?d.config.Lr.identity=c:d.config.Lr={identity:c};return d}g.oz(new g.Pv("Error: Failed to create Request from Command.",
a))};
g.ca.Object.defineProperties(qM.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!1}}});g.v(rM,qM);rM.prototype.D=function(){return{input:"/getDatasyncIdsEndpoint",Mq:av("/getDatasyncIdsEndpoint","GET"),Xm:{}}};
rM.prototype.B=function(){return[]};
rM.prototype.j=function(){};
rM.prototype.u=function(){};var e1a={},VFa=(e1a.GET_DATASYNC_IDS=oM(rM),e1a);var $Fa="tokens consistency mss client_location entities response_received_commands store PLAYER_PRELOAD".split(" "),bGa=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse"];var eGa=new kM("INNERTUBE_TRANSPORT_TOKEN");g.v(vM,qM);vM.prototype.B=function(){return f0a};
vM.prototype.j=function(a){return g.Zu(a,S_a)||void 0};
vM.prototype.u=function(a,b,c){c=void 0===c?{}:c;b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params);c.botguardResponse&&(a.botguardResponse=c.botguardResponse);c.feature&&(a.clientFeature=c.feature)};
g.ca.Object.defineProperties(vM.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.v(wM,qM);wM.prototype.B=function(){return g0a};
wM.prototype.j=function(a){return g.Zu(a,Q_a)||void 0};
wM.prototype.u=function(a,b){b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params)};
g.ca.Object.defineProperties(wM.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.v(xM,qM);xM.prototype.B=function(){return c0a};
xM.prototype.j=function(a){return g.Zu(a,PIa)||void 0};
xM.prototype.u=function(a,b,c){a.feedbackTokens=[];b.feedbackToken&&a.feedbackTokens.push(b.feedbackToken);if(b=b.cpn||c.cpn)a.feedbackContext={cpn:b};a.isFeedbackTokenUnencrypted=!!c.is_feedback_token_unencrypted;a.shouldMerge=!1;c.extra_feedback_tokens&&(a.shouldMerge=!0,a.feedbackTokens=a.feedbackTokens.concat(c.extra_feedback_tokens))};
g.ca.Object.defineProperties(xM.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.v(yM,qM);yM.prototype.B=function(){return d0a};
yM.prototype.j=function(a){return g.Zu(a,P_a)||void 0};
yM.prototype.u=function(a,b){b.params&&(a.params=b.params);b.secondaryParams&&(a.secondaryParams=b.secondaryParams)};g.v(zM,qM);zM.prototype.B=function(){return e0a};
zM.prototype.j=function(a){return g.Zu(a,N_a)||void 0};
zM.prototype.u=function(a,b){b.actions&&(a.actions=b.actions);b.params&&(a.params=b.params);b.playlistId&&(a.playlistId=b.playlistId)};g.v(AM,qM);AM.prototype.B=function(){return b0a};
AM.prototype.j=function(a){return g.Zu(a,C_a)};
AM.prototype.u=function(a,b,c){c=void 0===c?{}:c;b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);c.includeListId&&(a.includeListId=!0)};var QFa=new kM("NETWORK_SLI_TOKEN");BM.prototype.fetch=function(a,b){var c=this,d,e;return g.z(function(f){c.j&&(d=hi(g.oi(5,zi(a,"key")))||"/UNKNOWN_PATH",c.j.start(d));e=new window.Request(a,b);return g.S("web_fetch_promise_cleanup_killswitch")?f.return(Promise.resolve(fetch(e).then(function(h){return c.handleResponse(h)}).catch(function(h){g.pz(h)}))):f.return(fetch(e).then(function(h){return c.handleResponse(h)}).catch(function(h){g.pz(h)}))})};
BM.prototype.handleResponse=function(a){var b=a.text().then(function(c){return JSON.parse(c.replace(")]}'",""))});
a.redirected||a.ok?this.j&&this.j.success():(this.j&&this.j.failure(),b=b.then(function(c){g.pz(new g.Pv("Error: API fetch failed",a.status,a.url,c));return Object.assign({},c,{errorMetadata:{status:a.status}})}));
return b};
BM[mM]=[new lM];var dGa=new kM("NETWORK_MANAGER_TOKEN");var CM;FM.prototype.fetch=function(a,b,c){var d=this;return new Promise(function(e){var f=new XMLHttpRequest;f.onerror=function(){e(d.handleResponse(a,f.status,f.response))};
f.onload=function(){e(d.handleResponse(a,f.status,f.response))};
if(null==c?0:c.Aw)f.onreadystatechange=function(p){c.Aw(f,p)};
var h;f.open(null!=(h=b.method)?h:"GET",a,!0);f.responseType="text";f.withCredentials=!0;if(b.headers){h=g.r(Object.entries(b.headers));for(var l=h.next();!l.done;l=h.next()){var m=g.r(l.value);l=m.next().value;m=m.next().value;f.setRequestHeader(l,m)}}var n;f.send(null!=(n=b.body)?n:null)})};
FM.prototype.handleResponse=function(a,b,c){c=c.replace(")]}'","");try{var d=JSON.parse(c)}catch(e){g.pz(new g.Pv("JSON parsing failed after XHR fetch",a,b,c)),d={}}200!==b&&(g.pz(new g.Pv("XHR API fetch failed",a,b,c)),d=Object.assign({},d,{errorMetadata:{status:b}}));return d};var gGa=[],GM=!1;HM.getInstance=function(){var a=g.Ga("ytglobal.storage_");a||(a=new HM,g.Fa("ytglobal.storage_",a));return a};
HM.prototype.estimate=function(){var a,b,c;return g.z(function(d){a=navigator;return(null==(b=a.storage)?0:b.estimate)?d.return(a.storage.estimate()):(null==(c=a.webkitTemporaryStorage)?0:c.queryUsageAndQuota)?d.return(jGa()):d.return()})};
g.Fa("ytglobal.storageClass_",HM);Iv.prototype.Ez=function(a){this.handleError(a)};
Iv.prototype.logEvent=function(a,b){switch(a){case "IDB_DATA_CORRUPTED":g.S("idb_data_corrupted_killswitch")||this.j("idbDataCorrupted",b);break;case "IDB_UNEXPECTEDLY_CLOSED":this.j("idbUnexpectedlyClosed",b);break;case "IS_SUPPORTED_COMPLETED":g.S("idb_is_supported_completed_killswitch")||this.j("idbIsSupportedCompleted",b);break;case "QUOTA_EXCEEDED":lGa(this,b);break;case "TRANSACTION_ENDED":this.B&&this.j("idbTransactionEnded",b);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":a=Object.assign({},
b,{hasWindowUnloaded:this.u}),this.j("idbTransactionAborted",a)}};g.k=IM.prototype;
g.k.initialize=function(a,b,c){if(a.program){var d,e=null!=(d=a.interpreterScript)?d:null,f;d=null!=(f=a.interpreterUrl)?f:null;a.interpreterSafeScript&&(e=a.interpreterSafeScript,g.ig("From proto message. b/166824318"),e=Uca(e.privateDoNotAccessOrElseSafeScriptWrappedValue||"").toString());a.interpreterSafeUrl&&(f=a.interpreterSafeUrl,g.ig("From proto message. b/166824318"),d=g.lg(f.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue||"").toString());nGa(this,e,d,a.program,b,c)}else g.pz(Error("Cannot initialize botguard without program"))};
g.k.isInitialized=function(){return!!this.fz()};
g.k.getState=function(){return this.state};
g.k.invoke=function(a){a=void 0===a?{}:a;var b=this.fz();if(b){var c={py:a};if(b.hC)throw Error("Already disposed");a=Vi();var d;null!=(d=b.Sr)&&d.u.j.Br("/client_streamz/bg/fsc",d.kh);d=b.p5([c.py,c.N4]);var e;null!=(e=b.Sr)&&e.B.ih(Vi()-a,e.kh);b=d}else b=null;return b};
g.k.dispose=function(){this.ra()};
g.k.ra=function(){this.QK(null);this.Vc(8)};
g.k.fz=function(){return this.j};
g.k.QK=function(a){g.Ye(this.j);this.j=a};
g.k.Vc=function(a){this.state=a};g.v(KM,IM);KM.prototype.ra=function(){this.Vc(8)};
KM.prototype.fz=function(){return g.Ga("yt.abuse.playerAttLoader")};
KM.prototype.QK=function(a){g.Ye(g.Ga("yt.abuse.playerAttLoader"));g.Fa("yt.abuse.playerAttLoader",a)};var LM,ZM;g.JM=new KM;LM=0;ZM=[];var sGa=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var CGa={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},DGa={android:"ANDROID","android.k":"ANDROID_KIDS","android.m":"ANDROID_MUSIC","android.up":"ANDROID_UNPLUGGED",youtube:"WEB","youtube.m":"WEB_REMIX","youtube.up":"WEB_UNPLUGGED",ytios:"IOS","ytios.k":"IOS_KIDS","ytios.m":"IOS_MUSIC","ytios.up":"IOS_UNPLUGGED"},EGa={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},BGa={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},zGa={0:"YT_KIDS_AGE_UP_MODE_UNKNOWN",1:"YT_KIDS_AGE_UP_MODE_OFF",
2:"YT_KIDS_AGE_UP_MODE_TWEEN",3:"YT_KIDS_AGE_UP_MODE_PRESCHOOL"},AGa={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"};g.v(gN,g.J);gN.prototype.ra=function(){this.S=this.u=this.B=this.I=this.j=this.J=this.D=this.C=void 0};var n4={},KGa=(n4["api.invalidparam"]=2,n4.auth=150,n4["drm.auth"]=150,n4["heartbeat.net"]=150,n4["heartbeat.servererror"]=150,n4["heartbeat.stop"]=150,n4["html5.unsupportedads"]=5,n4["fmt.noneavailable"]=5,n4["fmt.decode"]=5,n4["fmt.unplayable"]=5,n4["html5.missingapi"]=5,n4["html5.unsupportedlive"]=5,n4["drm.unavailable"]=5,n4);var MGa=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn".split(" "));g.v(jN,g.J);g.k=jN.prototype;
g.k.handleExternalCall=function(a,b,c){var d=this.state.D[a],e=this.state.J[a],f=d;if(e)if(c&&kA(c,h0a))f=e;else if(!d)throw Error('API call from an untrusted origin: "'+c+'"');d=this.app.V();d.Vl&&!this.state.S.has(a)&&(this.state.S.add(a),g.Kv("webPlayerApiCalled",{callerUrl:d.loaderUrl,methodName:a,origin:c||void 0,playerStyle:d.playerStyle||void 0}));if(f){c=!1;d=g.r(b);for(e=d.next();!e.done;e=d.next())if(String(e.value).includes("javascript:")){c=!0;break}c&&g.pz(Error('Dangerous call to "'+a+
'" with ['+b+"]."));return f.apply(this,b)}throw Error('Unknown API method: "'+a+'".');};
g.k.isExternalMethodAvailable=function(a,b){return this.state.D[a]?!0:!!(this.state.J[a]&&b&&kA(b,h0a))};
g.k.getBandwidthEstimate=function(){return BF(this.app.V().schedule)};
g.k.reportPlaybackIssue=function(a){a=void 0===a?"":a;var b=g.pN(this.app);b&&(a={gpu:(0,g.kW)(),d:a},b.handleError(new xG("feedback",a)))};
g.k.getApiInterface=function(){return Array.from(this.state.C)};
g.k.getInternalApiInterface=function(){return g.rf(this.state.j)};
g.k.qX=function(a,b){if("string"===typeof b){var c=function(){var d=g.za.apply(0,arguments);g.Ga(b).apply(window,d)};
this.state.I[b]=c}else c=b;this.app.Zn.subscribe(a,c)};
g.k.X3=function(a,b){if("string"===typeof b){var c=this.state.I[b];g.Df(this.state.I,b);b=c}this.app.Zn.unsubscribe(a,b)};
g.k.getPlayerState=function(){return ASa(this.app)};
g.k.cueVideoByPlayerVars=function(a,b){this.app.cueVideoByPlayerVars(a,b||this.playerType)};
g.k.loadVideoByPlayerVars=function(a,b,c,d,e){this.app.loadVideoByPlayerVars(a,c||this.playerType,b,d,e)};
g.k.preloadVideoByPlayerVars=function(a,b,c,d,e){c=void 0===c?NaN:c;this.app.preloadVideoByPlayerVars(a,b||this.playerType,c,void 0===d?"":d,void 0===e?"":e)};
g.k.seekTo=function(a,b,c){Dma(tza(this.app.V()))||(this.j&&mY(this.app,!0,this.playerType),qY(this.app,a,b,c,this.playerType))};
g.k.seekToChapterWithAnimation=function(a){this.app.seekToChapterWithAnimation(a)};
g.k.startSeekCsiAction=function(){this.app.Gi().D.j=(0,g.T)()};
g.k.seekToStreamTime=function(a,b,c){this.j&&mY(this.app,!0,this.playerType);var d=this.app,e=this.playerType;b=void 0===b?!0:b;var f=void 0===f?!1:f;var h=g.pN(d,e),l=0;h&&h.getStreamTimeOffset()&&!h.Cd()&&(l=h.getStreamTimeOffset());qY(d,a-l,b,c,e,f)};
g.k.getStreamTimeOffset=function(){var a=g.pN(this.app,1);return a?a.getStreamTimeOffset():0};
g.k.seekToLiveHead=function(a,b){var c=g.pN(this.app,this.playerType);c&&(c=c.getVideoData())&&c.isLivePlayback&&qY(this.app,Infinity,a,b,this.playerType)};
g.k.getCurrentTime=function(){return this.app.getCurrentTime(this.playerType)};
g.k.getMediaReferenceTime=function(){var a=this.app.getIngestionTime(this.playerType);return isNaN(a)?this.getCurrentTime():a};
g.k.getDuration=function(){return this.app.getDuration(this.playerType)};
g.k.getVolume=function(){return this.app.Gh.volume};
g.k.setVolume=function(a){oN(this,a)};
g.k.syncVolume=function(){var a=hSa(this.app);oN(this,a.volume,a.muted)};
g.k.isMuted=function(){return this.app.Gh.muted};
g.k.mute=function(){SGa(this)};
g.k.unMute=function(){TGa(this)};
g.k.getPlayerMode=function(){var a={};this.app.getVideoData().C&&(a.pfp={enableIma:this.app.V().Vg&&this.app.bd().allowImaMonetization,autoplay:qI(this.app.bd()),mutedAutoplay:this.app.bd().mutedAutoplay});return a};
g.k.playVideo=function(){this.j&&mY(this.app,!0,this.playerType);var a=this.app.getPresentingPlayerType();if(2===a&&!this.app.Fe()){var b=sO(this.app.wb());if(!TXa(b)){b.qn("control_play");return}if(UXa(b))return}3===a?xN(this.app.wb()).qn("control_play"):this.app.playVideo(a)};
g.k.pauseVideo=function(){var a=this.app.getPresentingPlayerType();if(2===a&&!this.app.Fe()){var b=sO(this.app.wb());if(!TXa(b)){b.qn("control_pause");return}}3===a?xN(this.app.wb()).qn("control_pause"):this.app.pauseVideo(a)};
g.k.stopVideo=function(){var a=this.app;a.Y.lc&&a.Va.ma("pageTransition");a.stopVideo()};
g.k.clearVideo=function(){};
g.k.getPlaybackRate=function(){return g.pN(this.app,1).getPlaybackRate()};
g.k.setPlaybackRate=function(a){"number"===typeof a&&this.app.setPlaybackRate(a)};
g.k.getAvailablePlaybackRates=function(){var a=this.app.V();if(a.Ld){var b=a.u||a.K("web_player_admin_origin_killswitch")?a.ancestorOrigins[0]:window.location.origin;a=["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(b)||a.Xl?p0a:o0a}else a=[1];return a};
g.k.getPlaybackQuality=function(a){return(a=g.pN(this.app,a))?a.getPlaybackQuality():"unknown"};
g.k.setPlaybackQuality=function(){};
g.k.getAvailableQualityLevels=function(){var a=g.pN(this.app,this.playerType);return a?(a=g.Ok(a.Pp(),function(b){return b.quality}),a.length&&("auto"===a[0]&&a.shift(),a=a.concat(["auto"])),a):[]};
g.k.getAvailableQualityLabels=function(){var a=g.pN(this.app,this.playerType);return a?g.Ok(a.Pp(),function(b){return b.qualityLabel}):[]};
g.k.getVideoBytesLoaded=function(){return this.getVideoLoadedFraction()};
g.k.getVideoBytesTotal=function(){return 1};
g.k.getVideoLoadedFraction=function(){return this.app.getVideoLoadedFraction()};
g.k.getVideoStartBytes=function(){return 0};
g.k.getSize=function(){var a=this.app.gb().getPlayerSize();return{width:a.width,height:a.height}};
g.k.setSize=function(){this.app.gb().resize()};
g.k.channelSubscribed=function(){this.Pa("SUBSCRIBE",this.app.bd().Kk)};
g.k.channelUnsubscribed=function(){this.Pa("UNSUBSCRIBE",this.app.bd().Kk)};
g.k.getStatsForNerds=function(){return this.app.getStatsForNerds()};
g.k.setScreenLayer=function(a){this.app.setScreenLayer(a)};
g.k.getCurrentPlaylistSequence=function(){return g.pN(this.app).getPlaylistSequenceForTime(this.app.getCurrentTime())};
g.k.getPlaylistSequenceForTime=function(a){return g.pN(this.app).getPlaylistSequenceForTime(a)};
g.k.shouldSendVisibilityState=function(){return!0};
g.k.confirmYpcRental=function(){var a=g.pN(this.app,this.playerType);a&&a.xf("ypc_clickwrap")};
g.k.setHomeGroupInfo=function(a){this.app.V().homeGroupInfo=a};
g.k.setConnectedRemoteApps=function(a){this.app.V().Wl=a};
g.k.setLivingRoomAppMode=function(a){this.app.V().livingRoomAppMode=dv("LIVING_ROOM_APP_MODE_UNSPECIFIED",a,fZa)};
g.k.setEnablePrivacyFilter=function(a){this.app.V().enablePrivacyFilter=void 0===a?!1:a};
g.k.isPictureInPictureAllowed=function(){return this.app.bd().pK};
g.k.togglePictureInPicture=function(){this.app.togglePictureInPicture()};
g.k.loadModule=function(a){"captions"===a&&(a=g.nO(this.app.wb()))&&!a.loaded&&a.load()};
g.k.unloadModule=function(a){"captions"===a&&(a=g.nO(this.app.wb()))&&a.loaded&&a.T5()};
g.k.loadVideoById=function(a,b,c){a&&(a=iN(a,b,c),a=this.app.loadVideoByPlayerVars(a,this.playerType),this.j&&mY(this.app,a,this.playerType))};
g.k.cueVideoById=function(a,b,c){a=iN(a,b,c);this.app.cueVideoByPlayerVars(a,this.playerType)};
g.k.loadVideoByUrl=function(a,b,c){a=LGa(a,b,c);a=this.app.loadVideoByPlayerVars(a,this.playerType);this.j&&mY(this.app,a,this.playerType)};
g.k.cueVideoByUrl=function(a,b,c){a=LGa(a,b,c);this.app.cueVideoByPlayerVars(a,this.playerType)};
g.k.getVideoUrl=function(){var a=this.app.V();if(a.S)return"";var b=this.app.bd(),c=void 0;b.isLivePlayback||(c=Math.floor(this.app.getCurrentTime(1)));return a.getVideoUrl(b.videoId,this.getPlaylistId()||void 0,c)};
g.k.getDebugText=function(){return this.app.getDebugText()};
g.k.getVideoEmbedCode=function(){var a=this.app.V();if(a.S)return"";var b=this.app.bd();return a.getVideoEmbedCode(b.isPrivate?"":b.title,this.app.bd().videoId,this.app.gb().getPlayerSize(),this.getPlaylistId()||void 0)};
g.k.addCueRange=function(a,b,c){return oY(this.app,a,b,c)};
g.k.addUtcCueRange=function(a,b,c,d,e){return HSa(this.app,a,b,c,d,e)};
g.k.removeCueRange=function(a){return ISa(this.app,a)};
g.k.loadPlaylist=function(a,b,c,d){this.app.loadPlaylist(a,b,c,d);this.j&&mY(this.app,!0,this.playerType)};
g.k.cuePlaylist=function(a,b,c,d){this.app.cuePlaylist(a,b,c,d)};
g.k.nextVideo=function(){this.app.nextVideo();this.j&&mY(this.app,!0,this.playerType)};
g.k.previousVideo=function(){this.app.previousVideo();this.j&&mY(this.app,!0,this.playerType)};
g.k.playVideoAt=function(a){this.app.playVideoAt(a);this.j&&mY(this.app,!0,this.playerType)};
g.k.setShuffle=function(a){var b=this.app.getPlaylist();b&&b.setShuffle(a)};
g.k.setLoop=function(a){var b=this.app.getPlaylist();b&&(b.loop=a)};
g.k.aZ=function(){var a=this.app.getPlaylist();if(!a)return null;for(var b=[],c=0;c<a.length;c++){var d=g.$N(a,c);d&&b.push(d.videoId)}return b};
g.k.getPlaylistIndex=function(){var a=this.app.getPlaylist();return a?a.index:-1};
g.k.getPlaylistId=function(){var a=this.app.getPlaylist();return a&&a.listId?a.listId.toString():null};
g.k.setOption=function(a,b,c){if(!b)return null;var d=this.app.wb();return"captions"===a?(a=g.nO(d))&&a.Bg(b,c):null};
g.k.getOption=function(a,b,c){var d=g.pN(this.app,this.playerType);return d&&d.getVideoData().isPrivate&&this.app.V().u?{}:this.setOption(a,b,c)};
g.k.getOptions=function(a){var b=this.app.wb();if("captions"===a){var c;return(null==(c=g.nO(b))?void 0:c.getOptions())||null}return a?null:(a=[],g.nO(b)&&a.push("captions"),a)};
g.k.dZ=function(a){a=void 0===a?this.playerType:a;var b=this.kP(a);if(a=g.pN(this.app,a)){a=a.getVideoData();b.hasProgressBarBoundaries=a.hasProgressBarBoundaries();b.isPremiere=a.isPremiere;b.itct=a.Ba;var c;var d=a.hasProgressBarBoundaries()&&(null==(c=a.progressBarStartPosition)?0:c.utcTimeMillis)?Wg(a.progressBarStartPosition.utcTimeMillis):null;b.progressBarStartPositionUtcTimeMillis=d;var e;c=a.hasProgressBarBoundaries()&&(null==(e=a.progressBarEndPosition)?0:e.utcTimeMillis)?Wg(a.progressBarEndPosition.utcTimeMillis):
null;b.progressBarEndPositionUtcTimeMillis=c;b.ypcOriginalItct=a.vU;b.ypcPreview=a.ypcPreview;b.paidContentOverlayText=IBa(a);b.paidContentOverlayDurationMs=bI(a);a.j&&zB(a.j)&&(b.usingLocalMedia="true");b.transitionEndpointAtEndOfStream=a.transitionEndpointAtEndOfStream}return b};
g.k.kP=function(a){a=void 0===a?this.playerType:a;var b=QGa(this,a);if(a=g.pN(this.app,a)){a=a.getVideoData();b.backgroundable=a.backgroundable;b.eventId=a.eventId;b.cpn=a.clientPlaybackNonce;b.isLive=a.isLivePlayback;b.isWindowedLive=a.Bk;b.isManifestless=MH(a);b.allowLiveDvr=a.allowLiveDvr;b.isListed=a.isListed;null!=a.liveUtcStartSeconds&&(b.liveUtcStartSeconds=a.liveUtcStartSeconds);UH(a)&&(b.isEncrypted=!0);if(a.B)for(var c=g.r(a.B.videoInfos),d=c.next();!d.done;d=c.next()){var e=void 0;if(null==
(e=d.value.video)?0:e.isHdr()){b.isHdr=!0;break}}var f,h;b.isMultiChannelAudio=!!(null==(f=a.D)?0:null==(h=f.audio)?0:h.isMultiChannelAudio())}return b};
g.k.showVideoInfo=function(){rSa(this.app,!0)};
g.k.hideVideoInfo=function(){rSa(this.app,!1)};
g.k.isVideoInfoVisible=function(){return this.app.isVideoInfoVisible()};
g.k.getAdState=function(){return this.app.getAdState()};
g.k.isNotServable=function(a){if(a!==this.app.config.args.video_id)return!1;var b=(a=(a=g.pN(this.app,1))?a.getPlayerState():null)?a.getData():null;return!!(a&&b&&g.V(a,128)&&5===hN(b.errorCode))};
g.k.getSphericalProperties=function(){var a=g.zN(this.app.wb());return a&&2!==this.playerType?a.getSphericalProperties():{}};
g.k.setSphericalProperties=function(a){if(a&&2!==this.playerType){var b=g.zN(this.app.wb());b&&b.setSphericalProperties(a,!0)}};
g.k.supportsGaplessAudio=function(){return this.app.V().supportsGaplessAudio()};
g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;this.app.enqueueVideoByPlayerVars(a,b,c,void 0===d?"":d)};
g.k.clearQueue=function(){this.app.clearQueue()};
g.k.destroy=function(){this.app.dispose()};
g.k.sendAbandonmentPing=function(){var a=g.pN(this.app);a&&a.sendAbandonmentPing()};
g.k.downloadVideo=function(a,b){return this.app.downloadVideo(a,b)};
g.k.queueOfflineAction=function(a,b,c,d){var e=this,f,h;return g.z(function(l){return 1==l.j?(f=vO(e.app.wb()))?g.x(l,f.oK([a],b,c,d),3):l.Ma(2):2!=l.j&&(h=l.u,h.length)?l.return(h[0]):l.return(Promise.reject())})};
g.k.pauseVideoDownload=function(a){this.app.pauseVideoDownload(a)};
g.k.resumeVideoDownload=function(a){var b=this;return g.z(function(c){return c.return(b.app.resumeVideoDownload(a))})};
g.k.refreshAllVideos=function(a){return this.app.refreshAllVideos(a)};
g.k.refreshAllStaleEntities=function(a){return this.app.refreshAllStaleEntities(a)};
g.k.deleteAllVideos=function(){return this.app.deleteAllVideos()};
g.k.deleteVideos=function(a){return this.app.deleteVideos(a)};
g.k.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()};
g.k.setAutonavState=function(a){if(this.K("web_player_autonav_use_server_provided_state")){var b;if(null==(b=this.app.bd())?0:NH(b))return}NSa(this.app,a)};
g.k.setAutonav=function(a){this.setAutonavState(a?2:1)};
g.k.setLoopRange=function(a){this.app.setLoopRange(a)};
g.k.getLoopRange=function(){return this.app.getLoopRange()};
g.k.setImmersivePreview=function(a){this.app.setImmersivePreview(a)};
g.k.hasSupportedAudio51Tracks=function(){var a;return!(null==(a=g.pN(this.app,this.playerType))||!a.hasSupportedAudio51Tracks())};
g.k.setUserAudio51Preference=function(a){var b=g.pN(this.app,this.playerType);b&&b.setUserAudio51Preference(a)};
g.k.getUserAudio51Preference=function(){var a,b;return null!=(b=null==(a=g.pN(this.app,this.playerType))?void 0:a.getUserAudio51Preference())?b:1};
g.k.setIsExternalPlaylist=function(a){this.app.setIsExternalPlaylist(a)};
g.k.getAppState=function(){return this.app.getAppState()};
g.k.addInfoCardXml=function(a,b,c){this.app.V().qa.add(a,{UB:b,QA:c})};
g.k.updateLastActiveTime=function(){Jx()};
g.k.setBlackout=function(a){this.app.setBlackout(a)};
g.k.setUserEngagement=function(a){this.app.V().Nk!==a&&(this.app.V().Nk=a,(a=g.pN(this.app,this.playerType))&&EX(a))};
g.k.updateSubtitlesUserSettings=function(a,b){b=void 0===b?!0:b;g.nO(this.app.wb()).tT(a,b)};
g.k.getCaptionWindowContainerId=function(){var a=g.nO(this.app.wb());return a?a.getCaptionWindowContainerId():""};
g.k.toggleSubtitlesOn=function(){var a=g.nO(this.app.wb());a&&a.YS()};
g.k.getPresentingPlayerType=function(){var a=this.app.getPresentingPlayerType(!0);2===a&&this.app.Fe()&&(a=1);return a};
g.k.getPlayerResponse=function(){var a=g.pN(this.app,this.playerType);return a?a.getVideoData().getPlayerResponse():null};
g.k.getStoryboardFrame=function(a,b){var c=this.app.Ji();if(!c)return null;b=c.levels[b];return b?(a=g.zH(b,a))?{column:a.column,columns:a.columns,height:a.Zs,row:a.row,rows:a.rows,url:a.url,width:a.Iz}:null:null};
g.k.getStoryboardFrameIndex=function(a,b){var c=this.app.Ji();if(!c)return-1;b=c.levels[b];if(!b)return-1;a-=this.Cd();return b.sB(a)};
g.k.getStoryboardLevel=function(a){var b=this.app.Ji();return b?(b=b.levels[a])?{index:a,intervalMs:b.j,maxFrameIndex:b.Hu(),minFrameIndex:b.MF()}:null:null};
g.k.getNumberOfStoryboardLevels=function(){var a=this.app.Ji();return a?a.levels.length:0};
g.k.JY=function(){return this.getAudioTrack()};
g.k.getAudioTrack=function(){var a=g.pN(this.app,this.playerType);return a?a.getAudioTrack():this.app.getVideoData().Ul};
g.k.setAudioTrack=function(a){3===this.getPresentingPlayerType()&&xN(this.app.wb()).qn("control_set_audio_track",a);var b=g.pN(this.app,this.playerType);if(b&&!b.isDisposed()&&!g.V(b.playerState,128)){var c;if(null==(c=b.videoData.B)?0:c.j)b.Ka.setAudioTrack(a);else if(MRa(b)){a:{c=b.mediaElement.audioTracks();for(var d=0;d<c.length;++d){var e=c[d];if(e.label===a.Nc.getName()){if(e.enabled){c=!1;break a}c=e.enabled=!0;break a}}c=void 0}c&&b.va("hlsaudio",{id:a.id})}else{a:if(c=b.videoData,c.D&&!TD(c.D)||
a==c.hm||!c.Ac||0>=c.Ac.length)c=!1;else{d=g.r(c.Ac);for(e=d.next();!e.done;e=d.next()){e=e.value;if(!(e instanceof DG)){c=!1;break a}var f=a.Nc.getId();e.B&&(zza(e.B,f),e.u=null)}c.hm=a;c=!0}c&&tX(b)&&(b.ma("internalaudioformatchange",b.videoData,!0),b.va("hlsaudio",{id:a.id}))}}};
g.k.KY=function(){return this.getAvailableAudioTracks()};
g.k.getAvailableAudioTracks=function(){return g.pN(this.app,this.playerType).getAvailableAudioTracks()};
g.k.getMaxPlaybackQuality=function(){var a=g.pN(this.app,this.playerType);return a&&a.getVideoData().u?xB(a.Qe?XV(a.dh,a.Qe,a.zs()):EH):"unknown"};
g.k.getUserPlaybackQualityPreference=function(){var a=g.pN(this.app,this.playerType);return a?a.getUserPlaybackQualityPreference():"auto"};
g.k.getSubtitlesUserSettings=function(){var a=g.nO(this.app.wb());return a?a.cZ():null};
g.k.resetSubtitlesUserSettings=function(){g.nO(this.app.wb()).g4()};
g.k.setMinimized=function(a){this.app.setMinimized(a)};
g.k.setInlinePreview=function(a){this.app.setInlinePreview(a)};
g.k.setGlobalCrop=function(a){this.app.gb().setGlobalCrop(a)};
g.k.getVisibilityState=function(){var a=this.Df();return this.app.getVisibilityState(this.Fg(),this.isFullscreen()||PF(this.app.V()),a,this.isInline(),this.app.jw(),this.app.ew())};
g.k.isMutedByMutedAutoplay=function(){return this.app.Jz};
g.k.isInline=function(){return this.app.isInline()};
g.k.setInternalSize=function(a,b){this.app.gb().setInternalSize(new g.Kg(a,b))};
g.k.Cd=function(){var a=g.pN(this.app);return a?a.Cd():0};
g.k.Df=function(){return this.app.Df()};
g.k.Fg=function(){var a=g.pN(this.app,this.playerType);return!!a&&a.Fg()};
g.k.isFullscreen=function(){return this.app.isFullscreen()};
g.k.setSafetyMode=function(a){this.app.V().enableSafetyMode=a};
g.k.canPlayType=function(a){return this.app.canPlayType(a)};
g.k.updatePlaylist=function(a){if(a){var b=this.getPlaylistId(),c=!1;if(b&&b!==a.list)if(this.K("player_enable_playback_playlist_change"))c=!0;else return;void 0!==a.external_list&&this.app.setIsExternalPlaylist(a.external_list);var d=a.video;(b=this.app.getPlaylist())&&!c?this.isFullscreen()&&((c=d[b.index])&&c.encrypted_id!==g.$N(b).videoId||(a.index=b.index)):aY(this.app,{list:a.list,index:a.index,playlist_length:d.length});bO(this.app.getPlaylist(),a);this.Pa("onPlaylistUpdate")}else this.app.updatePlaylist()};
g.k.updateVideoData=function(a,b){var c=g.pN(this.app,this.playerType||1);c&&g.IH(c.getVideoData(),a,b)};
g.k.updateEnvironmentData=function(a){YF(this.app.V(),a,!1)};
g.k.sendVideoStatsEngageEvent=function(a){this.app.sendVideoStatsEngageEvent(a,this.playerType)};
g.k.setCardsVisible=function(a,b,c){var d=g.wO(this.app.wb());d&&d.Ai()&&d.setCardsVisible(a,b,c)};
g.k.productsInVideoVisibilityUpdated=function(a){this.ma("changeProductsInVideoVisibility",a)};
g.k.setInline=function(a){this.app.setInline(a)};
g.k.isAtLiveHead=function(a,b){return this.app.isAtLiveHead(a,void 0===b?!0:b)};
g.k.getVideoAspectRatio=function(){return this.app.gb().getVideoAspectRatio()};
g.k.getPreferredQuality=function(){var a=g.pN(this.app);return a?a.getPreferredQuality():"unknown"};
g.k.setPlaybackQualityRange=function(a,b,c){var d=g.pN(this.app,this.playerType);d&&g.JRa(d,g.uB(a,b||a,!0,"m"),!0,c)};
g.k.onAdUxClicked=function(a,b){this.ma("aduxclicked",a,b)};
g.k.showAirplayPicker=function(){this.app.showAirplayPicker()};
g.k.addBgVersionChangeCallback=function(a){this.app.addBgVersionChangeCallback(a)};
g.k.dispatchReduxAction=function(a){g.RH.dispatch(a)};
g.k.changeMarkerVisibility=function(a,b){var c=this.app.getVideoData(),d=!1;a?b.forEach(function(e){c.Kd.includes(e)||(c.Kd.push(e),d=!0)}):b.forEach(function(e){c.visibleOnLoadKeys.includes(e)||g.Xb(c.Kd,e)&&(d=!0)});
d&&this.ma("updatemarkervisibility")};
g.k.ma=function(a){var b=g.za.apply(1,arguments);this.app.V().C&&("videodatachange"===a||"resize"===a||"cardstatechange"===a)&&this.app.Zn.ma.apply(this.app.Zn,[a].concat(g.t(b)));this.app.Po.ma.apply(this.app.Po,[a].concat(g.t(b)))};
g.k.Pa=function(a){var b=g.za.apply(1,arguments);this.app.Zn.ma.apply(this.app.Zn,[a].concat(g.t(b)));this.app.Po.ma.apply(this.app.Po,[a].concat(g.t(b)))};
g.k.getFeedbackProductData=function(){return this.app.getFeedbackProductData()};
g.k.logImaAdEvent=function(a,b){this.app.V().Vg&&this.app.bd().allowImaMonetization&&(a={adSource:"EMBEDS_AD_SOURCE_IMA",breakType:b,embedUrl:g.Cea(this.app.V().loaderUrl),eventType:a,youtubeHost:g.pi(this.app.V().ya)||""},g.Kv("embedsAdEvent",a))};
g.k.K=function(a){return this.app.V().K(a)};
g.k.ra=function(){if(this.element){var a=this.element,b;for(b in this.state.j)this.state.j.hasOwnProperty(b)&&(a[b]=null);this.element=null}g.J.prototype.ra.call(this)};g.v(sN,jN);g.k=sN.prototype;g.k.addCueRange=function(a,b,c,d,e){return oY(this.app,a,b,c,d,e)};
g.k.getPlayerState=function(a){return ASa(this.app,a)};
g.k.nextVideo=function(a,b){this.app.nextVideo(a,b)};
g.k.previousVideo=function(a){this.app.previousVideo(a)};
g.k.seekBy=function(a,b,c){qY(this.app,this.app.getCurrentTime()+a,b,c,this.playerType)};
g.k.seekTo=function(a,b,c,d){Dma(tza(this.app.V()))||qY(this.app,a,b,c,d||this.playerType)};
g.k.getStoryboardFormat=function(){return this.app.getStoryboardFormat()};
g.k.getCurrentTime=function(a,b){if(2===this.app.getAppState()&&5===this.getPlayerState()){var c;return(null==(c=this.app.getVideoData())?void 0:c.startSeconds)||0}return a?this.app.getCurrentTime(a,b):jN.prototype.getCurrentTime.call(this)};
g.k.getDuration=function(a,b){if(3===this.getPresentingPlayerType()){var c;return(null==(c=xN(this.app.wb()).getProgressState())?void 0:c.duration)||0}return a?this.app.getDuration(a,b):jN.prototype.getDuration.call(this)};
g.k.getProgressState=function(a){if(3===this.getPresentingPlayerType())return xN(this.app.wb()).getProgressState();var b=this.app.getVideoData(),c=(g.pN(this.app,a)||g.pN(this.app)).getPlayerType();a:{var d=this.app.getVideoData();var e;if(null==(e=d.progressBarStartPosition)?0:e.utcTimeMillis)if(d=Number(d.progressBarStartPosition.utcTimeMillis)/1E3,!isNaN(d)){d=XGa(this,d,a);break a}d=0}var f;a:{e=this.app.getVideoData();if(null==(f=e.progressBarEndPosition)?0:f.utcTimeMillis)if(f=Number(e.progressBarEndPosition.utcTimeMillis)/
1E3,!isNaN(f)){f=XGa(this,f,a);break a}f=0}e=this.getCurrentTime(a);a=this.getDuration(a);var h=this.app.getIngestionTime(c),l=this.app.isAtLiveHead(c),m=this.app.Sv(),n=this.app.getMinSeekableTime(c);var p=this.app;(c=g.pN(p,c))?(c=ZX(p,c),c=jY(p,vS(c),c)):c=0;return{airingStart:d,airingEnd:f,allowSeeking:this.app.hg(),clipEnd:b.clipEnd,clipStart:b.clipStart,current:e,displayedStart:-1,duration:a,ingestionTime:h,isAtLiveHead:l,loaded:m,seekableStart:n,seekableEnd:c}};
g.k.getVideoLoadedFraction=function(a){return this.app.getVideoLoadedFraction(a)};
g.k.getCurrentBroadcastId=function(){return null};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h){b=void 0===b?!1:b;c=void 0===c?!1:c;d=void 0===d?!1:d;e=void 0===e?!1:e;var l=g.rN(this);l&&l.handleGlobalKeyDown(a,b,c,d,e,f,h)};
g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){b=void 0===b?!1:b;c=void 0===c?!1:c;d=void 0===d?!1:d;e=void 0===e?!1:e;var l=g.rN(this);l&&l.handleGlobalKeyUp(a,b,c,d,e,f,h)};
g.k.setSizeStyle=function(a,b){this.app.setSizeStyle(a,b)};
g.k.showControls=function(){var a=g.rN(this);a&&a.showControls(!0)};
g.k.hideControls=function(){var a=g.rN(this);a&&a.showControls(!1)};
g.k.getVideoContentRect=function(a){a=this.app.gb().getVideoContentRect(a);return{left:a.left,top:a.top,width:a.width,height:a.height}};
g.k.setFauxFullscreen=function(a){g.Uy();this.app.Dk(a?2:0)};
g.k.toggleFullscreen=function(){function a(c){g.pz(c)}
var b=this.app.V();if(b.externalFullscreen){if(!g.mG(b))return this.isFullscreen()?Wy(window.document.documentElement):Ty(window.document.documentElement).catch(a)}else if(g.Uy()||b.I)return this.isFullscreen()?Wy(Vy()):"3"!==b.controlsType&&g.Uy()?Ty(this.app.gb().element).catch(a):(b=this.app.Ud().zf())?Ty(b).catch(a):Promise.reject(Error("Media element missing"));this.Pa("onFullscreenToggled",this.isFullscreen());return Promise.resolve(void 0)};
g.k.cancelPlayback=function(){var a=sO(this.app.wb());a&&a.created&&a.destroy();(a=g.pN(this.app))&&a.stopVideo();(a=this.app.wb().le.get("endscreen"))&&a.UZ()&&g.wN(this.app.Va,!0)};
g.k.stopVideo=function(){var a=this.app.V();!a.K("disable_new_pause_state3")&&hG(a)&&"blazer"!==a.playerStyle?this.cancelPlayback():jN.prototype.stopVideo.call(this)};
g.k.getVideoStats=function(){return g.pN(this.app,this.playerType).Sb(!0)};
g.k.toggleSubtitles=function(){var a=g.nO(this.app.wb());a&&a.y5()};
g.k.getDebugText=function(a){return this.app.getDebugText(a)};
g.k.setSphericalProperties=function(a){if(a){var b=g.zN(this.app.wb());b&&b.setSphericalProperties(a,!0)}};
g.k.getSphericalProperties=function(){var a=g.zN(this.app.wb());return a?a.getSphericalProperties():{}};
g.k.setVolume=function(a,b){oN(this,a,b)};
g.k.mute=function(a){SGa(this,a)};
g.k.unMute=function(a){TGa(this,a)};
g.k.mutedAutoplay=function(){this.K("embeds_enable_muted_autoplay")&&this.app.mutedAutoplay()};
g.k.loadModule=function(a){if("annotations_module"===a){var b=g.wO(this.app.wb());b&&!b.loaded&&b.load()}jN.prototype.loadModule.call(this,a)};
g.k.unloadModule=function(a){if("annotations_module"===a){var b=g.wO(this.app.wb());b&&b.loaded&&b.unload()}jN.prototype.unloadModule.call(this,a)};
g.k.setOption=function(a,b,c){if(!b)return null;var d=this.app.wb();switch(a){case "ad":return(a=sO(d))&&a.Bg&&a.Bg(b,c);case "kids":return(a=tO(d))&&a.Bg(b,c);case "remote":return(a=xN(d))&&a.Bg(b,c);case "unplugged":return(a=g.uO(d))&&a.Bg(b,c);case "annotations_module":return(a=g.wO(d))&&a.Bg(b,c);case "creatorendscreen":return(a=xO(d))&&a.Bg(b,c)}return jN.prototype.setOption.call(this,a,b,c)};
g.k.getOptions=function(a){var b=this.app.wb();switch(a){case "ad":var c,d;return(null==(c=sO(b))?void 0:null==(d=c.getOptions)?void 0:d.call(c))||null;case "remote":var e,f;return(null==(e=xN(b))?void 0:null==(f=e.getOptions)?void 0:f.call(e))||null;case "annotations_module":var h,l;return(null==(h=g.wO(b))?void 0:null==(l=h.getOptions)?void 0:l.call(h))||null;case "creatorendscreen":var m,n;return(null==(m=xO(b))?void 0:null==(n=m.getOptions)?void 0:n.call(m))||null;case "unplugged":var p,q;return(null==
(p=g.uO(b))?void 0:null==(q=p.getOptions)?void 0:q.call(p))||null;case "kids":var u,w;return(null==(u=tO(b))?void 0:null==(w=u.getOptions)?void 0:w.call(u))||null}if(!a){a=jN.prototype.getOptions.call(this);if(!a)return a;sO(b)&&a.push("ad");xN(b)&&a.push("remote");g.wO(b)&&a.push("annotations_module");xO(b)&&a.push("creatorendscreen");g.uO(b)&&a.push("unplugged");tO(b)&&a.push("kids");return a}return jN.prototype.getOptions.call(this,a)};
g.k.getPlayerSize=function(){var a=this.app.gb().getPlayerSize();return{width:a.width,height:a.height}};
g.k.wakeUpControls=function(){var a=g.rN(this);a&&a.Dn()};
g.k.setCenterCrop=function(a){this.app.gb().setCenterCrop(a)};
g.k.getLoopVideo=function(){return this.app.getLoopVideo()};
g.k.setLoopVideo=function(a){this.app.setLoopVideo(a)};
var VGa="BASE_URL BASE_YT_URL adformat adaptive_fmts allow_embed authuser autoplay cc_load_policy cpn dash dashmpd disable_native_context_menu disablekb docid el enable_faster_speeds enablecastapi end external_fullscreen fmt_list hl hlsdvr hlsvp iurl iurlhq iurlmq length_seconds live_playback osig override_hl partnerid pipable playsinline plid post_live_playback postid ps public rel show_loop_video_toggle start startSeconds status suggestedQuality timestamp title token ttsurl use_native_controls url_encoded_fmt_stream_map video_id videoId".split(" "),
WGa="adformat allow_embed authuser autohide autonav autoplay c cbr cbrver cc_load_policy controls cos cosver cr csi_page_type cver cyc dash dashmpd disablekb el enablecastapi enablecsi end external_fullscreen external_list fs hl host_language innertube_api_key innertube_api_version innertube_context_client_version iurl iurlhq iurlmq iv_load_policy jsapicallback length_seconds live_playback live_storyboard_spec loaderUrl osig override_hl pageid partnerid pipable player_params player_wide playsinline plid postid profile_picture ps rel show_miniplayer_button showinfo showwatchlater start startSeconds status storyboard_spec suggestedQuality timestamp title tkn token transparent_background ucid url_encoded_fmt_stream_map use_miniplayer_ui use_native_controls videoId video_id vss_host watermark".split(" ");g.v(g.uN,sN);g.k=g.uN.prototype;g.k.Nl=function(a,b,c,d,e,f,h){return this.app.Nl(a,b,c,d,e,f,h)};
g.k.Ly=function(){return this.app.Ly()};
g.k.Op=aa(4);g.k.wb=function(){return this.app.wb()};
g.k.bf=function(){var a=this.wb().le.get("endscreen");return!!a&&a.bf()};
g.k.getRootNode=function(){return this.gb().element};
g.k.V=function(){return this.app.V()};
g.k.Tv=aa(6);g.k.Jm=function(a){return this.app.Jm(a)};
g.k.Lm=function(){return this.settingsMenu};
g.k.Yy=function(){return this.OF};
g.k.Eb=function(a){return this.app.Eb(a)};
g.k.gb=function(){return this.app.gb()};
g.k.getPlaylist=function(){return this.app.getPlaylist()};
g.k.getVideoData=function(a){var b=g.pN(this.app,a);if(!b)return null;b=b.getVideoData();var c;if(b.enableServerStitchedDai&&2===a){a=this.app;if(null==(b=a.Vd))b=void 0;else{var d=a.getCurrentTime();b=b.Gp?void 0:null==(c=QS(b,1E3*d))?void 0:c.videoData}c=b||a.getVideoData()}else c=b;return c};
g.k.Ji=function(a){return this.app.Ji(a)};
g.k.isWidescreen=function(){return this.app.isWidescreen()};
g.k.isHdr=function(){var a=g.pN(this.app);return a?a.isHdr():!1};
g.k.yz=function(){return this.app.yz()};
g.k.Uw=function(a){this.app.Uw(a)};
g.k.pg=function(a,b,c,d,e){this.app.Of(a,b,c,d,e)};
g.k.Xo=function(a,b){this.app.Xo(a,b)};
g.k.playVideo=function(a){try{if(3===this.getPresentingPlayerType()){xN(this.app.wb()).qn("control_play");return}if(2===this.getPresentingPlayerType()){var b=sO(this.app.wb());if(b&&UXa(b))return}}catch(c){g.oz(c)}this.app.playVideo(a)};
g.k.stopVideo=function(a){g.pN(this.app,a).stopVideo()};
g.k.Ro=function(a){g.pN(this.app,a).Ro()};
g.k.addEventListener=function(a,b){this.app.Po.subscribe(a,b)};
g.k.removeEventListener=function(a,b){this.app.Po.unsubscribe(a,b)};
g.k.ma=function(a){sN.prototype.ma.call.apply(sN.prototype.ma,[this,a].concat(g.t(g.za.apply(1,arguments))))};
g.k.zk=function(a){this.app.zk(a)};
g.k.setPlaybackQuality=function(a){this.setPlaybackQualityRange(a,a)};
g.k.Pp=function(){var a={},b=g.pN(this.app).Pp();b=g.r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a[c.quality]=c;return a};
g.k.My=function(){return g.pN(this.app).My()};
g.k.Vy=aa(10);g.k.qE=function(a){this.app.qE(a);a&&NSa(this.app,a)};
g.k.getDebugText=function(a){return this.app.getDebugText(a)};
g.k.getVideoUrl=function(a,b,c,d){var e=this.getPresentingPlayerType(),f=2===e;if(d&&f||3===e)f=!1,e=1;d=this.getVideoData(e);if(!d)return"";var h;a||d.isLivePlayback||(h=Math.floor(this.getCurrentTime(e)));a=f?void 0:this.getPlaylistId()||void 0;b&&"WL"===a&&(a=void 0);return this.app.getVideoUrl(d.videoId,a,h,b,c)};
g.k.Wy=aa(12);g.k.Dl=aa(16);g.k.uw=function(a,b){this.wb().uw(a,b)};
g.k.Ai=function(){var a=g.wO(this.wb());return!!a&&a.Ai()};
g.k.xm=function(){var a=g.wO(this.wb());return!!a&&a.xm()};
g.k.setCardsVisible=function(a,b,c){var d=g.wO(this.wb());d&&d.setCardsVisible(a,b,c)};
g.k.productsInVideoVisibilityUpdated=function(a){this.ma("changeProductsInVideoVisibility",a)};
g.k.Rw=aa(17);g.k.Yt=function(){var a=g.pN(this.app);a&&a.Yt()};
g.k.wA=function(a){this.Pa("onVideoAreaChange");this.Pa(a?"onShowControls":"onHideControls")};
g.k.fk=function(a,b){var c=g.rN(this);if(c)return c.fk(a,b);a=this.app.gb().Ki();return new g.wl(0,0,a.width,a.height)};
g.k.Yp=function(){return this.app.Yp()};
g.k.wz=function(){var a=this.wb().le.get("heartbeat");return!!a&&a.wz()};
g.k.hg=function(){var a=this.V();if(a.Ia||a.disableSeek)return!1;a=g.pN(this.app);if(!a)return!1;var b=a.getVideoData();return!b.isValid()||g.gI(b)||2===this.getPresentingPlayerType()&&!this.app.Fe()||a.ul()&&3!==this.getPresentingPlayerType()?!1:!0};
g.k.qz=function(){var a;return(null==(a=g.pN(this.app))?void 0:a.qz)||!1};
g.k.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()};
g.k.Pq=function(){var a=g.pN(this.app);a&&a.Pq()};
g.k.sendVideoStatsEngageEvent=function(a,b,c){this.app.sendVideoStatsEngageEvent(a,c,b)};
g.k.qe=function(a,b,c){this.app.Wx(a,b,c)};
g.k.jh=function(a,b){this.app.kE(a,b)};
g.k.Gf=function(a,b){var c=this.app,d=g.pN(c,b);d&&(a=d.Mh.Gf(a),b&&c.getPresentingPlayerType()!==b||WX(c,"cuerangesremoved",a))};
g.k.xf=function(a,b){(b=g.pN(this.app,b))&&b.xf(a)};
g.k.ul=function(){var a=g.pN(this.app);return a?a.ul():!0};
g.k.setPlaybackRate=function(a,b){this.app.setPlaybackRate(a,b)};
g.k.setVolume=function(a){a=g.Eg(a,0,100);nN(this.app,{volume:a,muted:this.isMuted()},!0)};
g.k.mute=function(){nN(this.app,{muted:!0,volume:this.getVolume()},!0)};
g.k.unMute=function(){nN(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},!0)};
g.k.setLoopVideo=function(a){this.app.setLoopVideo(a)};
g.k.getLoopVideo=function(){return this.app.getLoopVideo()};
g.k.Ud=function(){return this.app.Ud()};
g.k.Gi=function(){return this.app.Gi()};
g.k.Ii=function(a){return this.app.Ii(a)};
g.k.getBandwidthEstimate=function(){return BF(this.V().schedule)};
g.k.vb=function(a,b,c,d){this.V().Ya&&this.app.gq.vb(a,b,c,void 0===d?!1:d)};
g.k.Ug=function(a,b,c){this.V().Ya&&this.app.gq.Ug(a,b,void 0===c?!1:c)};
g.k.ji=function(a,b){this.V().Ya&&this.app.gq.ji(a,b)};
g.k.ub=function(a,b){this.V().Ya&&this.app.gq.click(a,b)};
g.k.Xa=function(a,b,c){if(this.V().Ya){var d=this.app.gq;d.elements.has(a);b?d.j.add(a):d.j.delete(a);var e=g.zz(),f=a.visualElement;d.u.has(a)?e&&f&&(b?g.Hz(e,[f]):g.Iz(e,[f])):b&&!d.B.has(a)&&(e&&f&&g.Ez(e,f,c),d.B.add(a))}};
g.k.Tm=function(a){return this.V().Ya?this.app.gq.Tm(a):!1};
g.k.Jc=function(){return g.pN(this.app)};
g.k.getPresentingPlayerType=function(a){return this.app.getPresentingPlayerType(a)};
g.k.Qo=function(){this.app.Qo()};
g.k.qy=function(a,b){return this.app.qy(a,b)};
g.k.Bn=function(a){this.app.Bn(a)};
g.k.YI=function(){this.app.YI()};
g.k.ov=function(a,b,c,d,e,f,h){return this.app.ov(a,b,c,d,e,f,h)};
g.k.oz=function(a,b,c,d,e,f,h){return this.app.oz(a,b,c,d,e,f,h)};
g.k.Fq=function(a){this.app.Fq(a)};
g.k.Rr=function(a,b){b=void 0===b?Infinity:b;this.app.Rr(void 0===a?-1:a,b)};
g.k.lx=function(a,b,c){this.app.lx(a,b,c)};
g.k.Sp=function(){return this.app.Sp()};
g.k.kC=function(a,b,c){this.app.kC(a,b,void 0===c?0:c)};
g.k.lw=function(){return this.app.lw()};
g.k.clearQueue=function(){this.app.clearQueue()};
g.k.Fe=function(){return this.app.Fe()};
g.k.nq=function(a,b,c){return this.app.nq(a,b,c)};
g.k.va=function(a,b,c,d){c=void 0===c?!1:c;var e;null==(e=g.pN(this.app,d))||e.va(a,b,c)};
g.k.zE=function(){return this.app.zE()};
g.k.requestStorageAccess=function(a,b){this.app.requestStorageAccess(a,b)};
g.k.tJ=function(a,b){this.ma("aduxmouseover",a,b)};
g.k.sJ=function(a,b){this.ma("aduxmouseout",a,b)};
g.k.NJ=function(a,b){this.ma("muteadaccepted",a,b)};
g.k.fD=function(){return this.app.gb().fD()};
g.k.Vw=function(a){this.app.gb().Vw(a)};
g.k.Gl=function(){var a=g.pN(this.app);return a?a.Gl():!1};
g.k.OK=function(a){this.app.OK(a)};g.v(g.DN,g.XK);g.k=g.DN.prototype;g.k.show=function(){var a=this.Ah();g.XK.prototype.show.call(this);this.Ba&&(this.J.T(window,"blur",this.Bb),this.J.T(document,"click",this.MV));a||this.ma("show",!0)};
g.k.hide=function(){var a=this.Ah();g.XK.prototype.hide.call(this);aHa(this);a&&this.ma("show",!1)};
g.k.Qc=function(a,b){this.u=a;this.Z.show();b?(this.S||(this.S=this.J.T(this.G,"appresize",this.NN)),this.NN()):this.S&&(this.J.yc(this.S),this.S=void 0)};
g.k.NN=function(){var a=g.rN(this.G);this.u&&a.At(this.element,this.u)};
g.k.Bb=function(){var a=this.Ah();aHa(this);this.Z.hide();a&&this.ma("show",!1)};
g.k.MV=function(a){var b=Bx(a);b&&(g.qh(this.element,b)||this.u&&g.qh(this.u,b)||!g.XL(a))||this.Bb()};
g.k.Ah=function(){return this.rb&&4!==this.Z.state};g.v(FN,g.DN);FN.prototype.Qc=function(){g.DN.prototype.Qc.call(this);this.dialog.focus()};g.v(g.GN,g.XK);g.GN.prototype.Mg=function(a){this.Oa("label",a)};
g.GN.prototype.Oa=function(a,b){g.XK.prototype.Oa.call(this,a,b);this.ma("size-change")};g.v(JN,g.GN);JN.prototype.Wb=function(a){this.u&&this.G.Xa(this.element,this.j&&a)};
JN.prototype.C=function(){var a,b,c=null==(a=this.G.getVideoData())?void 0:null==(b=a.accountLinkingConfig)?void 0:b.linked;if(c&&!this.j){var d;a=null==(d=this.G.getVideoData())?void 0:d.accountLinkingConfig;var e;this.Mg(KN(null==a?void 0:null==(e=a.menuData)?void 0:e.connectedMenuLabel));var f,h,l;this.B=new FN(this.G,KN(null==a?void 0:null==(f=a.menuData)?void 0:f.connectedDialogTitle),KN(null==a?void 0:null==(h=a.menuData)?void 0:h.connectedDialogMessage),KN(null==a?void 0:null==(l=a.menuData)?
void 0:l.confirmButtonText));g.M(this,this.B);var m;d=(null==a?void 0:null==(m=a.menuData)?void 0:m.trackingParams)||null;(this.u=!!d)&&this.G.ji(this.element,d);this.qb.Fc(this);this.j=!0}else!c&&this.j&&(this.qb.Hf(this),this.j=!1)};
JN.prototype.onClick=function(){this.u&&this.G.ub(this.element);this.qb.Bb();this.B&&this.B.Qc()};g.v(LN,g.J);LN.prototype.K=function(a){return this.api.K(a)};g.v(MN,LN);MN.prototype.onVideoDataChange=function(a){if(!a.accountLinkingConfig){var b,c=null==(b=a.getPlayerResponse())?void 0:b.accountLinkingConfig;a.accountLinkingConfig=c}var d;if(b=null==(d=a.accountLinkingConfig)?void 0:d.alsParam)a.IT=b};
MN.prototype.setAccountLinkState=function(a){this.api.getVideoData().IT=a;this.api.Yt()};
MN.prototype.updateAccountLinkingConfig=function(a){var b=this.api.getVideoData(),c=b.accountLinkingConfig;c&&(c.linked=a);this.api.ma("videodatachange","dataupdated",b,this.api.getPresentingPlayerType())};g.v(NN,g.GN);NN.prototype.onClick=function(){this.setValue(!this.checked);this.ma("select",this.checked)};
NN.prototype.getValue=function(){return this.checked};
NN.prototype.setValue=function(a){this.checked=a;this.element.setAttribute("aria-checked",String(this.checked))};g.v(ON,NN);ON.prototype.Ja=function(a){a?this.j||(this.qb.Fc(this),this.j=!0):this.j&&(this.qb.Hf(this),this.j=!1);this.j&&this.setValue(bHa())};
ON.prototype.u=function(a){var b=bHa();a!==b&&(b=g.pv.getInstance(),rv(190,a),rv(192,!0),b.save(),this.G.Pa("cinematicSettingsToggleChange",a))};
ON.prototype.ra=function(){this.j&&this.qb.Hf(this);NN.prototype.ra.call(this)};g.v(PN,LN);PN.prototype.updateCinematicSettings=function(a){this.j=a;var b;null==(b=this.menuItem)||b.Ja(a);this.api.ma("onCinematicSettingsVisibilityChange",a)};g.v(dHa,LN);g.v(QN,g.W);QN.prototype.onClick=function(){this.Va.ub(this.element);this.Va.Pa("onFullerscreenEduClicked")};
QN.prototype.Ja=function(){this.Va.isFullscreen()?this.u?this.j.hide():this.j.show():this.hide();this.Va.Xa(this.element,this.Va.isFullscreen()&&!this.u)};g.v(RN,LN);RN.prototype.updateFullerscreenEduButtonSubtleModeState=function(a){var b;null!=(b=this.j)&&(g.jo(b.element,"ytp-fullerscreen-edu-button-subtle",a),a&&!b.C&&(b.element.setAttribute("title","Scroll for details"),g.$e(b,g.dP(b.B.wc(),b.element)),b.C=!0))};
RN.prototype.updateFullerscreenEduButtonVisibility=function(a){var b;null!=(b=this.j)&&(b.u=a,b.Ja())};g.v(fHa,g.W);g.v(jHa,LN);g.v(SN,LN);SN.prototype.getAvailableQualityData=function(){var a=this.api.getVideoData();if(!a)return[];var b=[],c,d,e=null==(c=a.getPlayerResponse())?void 0:null==(d=c.playabilityStatus)?void 0:d.paygatedQualitiesMetadata;c=new Map(((null==e?void 0:e.qualityDetails)||[]).map(function(h){return[h.key,h.value]}));
if(d=null==e?void 0:e.restrictedAdaptiveFormats){e=[];d=g.r(d);for(var f=d.next();!f.done;f=d.next())f=f.value,f=VD(f.mimeType,f.quality,f.itag.toString(),f.width.toString(),f.height.toString(),f.qualityLabel),e.push(f);a=VH(a);AB(a,e,[]);d=[];e=g.r(e);for(f=e.next();!f.done;f=e.next())f=f.value,!0===CB(a,f,this.api.V().j)&&d.push(f);b=b.concat(kHa(d,!1,c))}a=this.api.My();b=b.concat(kHa(a,!0,c));c=[];a={};b=g.r(b);for(e=b.next();!e.done;e=b.next())e=e.value,d=e.quality,a[d]||(c.push(e),a[d]=!0);
return c};g.v(TN,LN);TN.prototype.ra=function(){this.u&&(window.clearInterval(this.u),this.u=void 0);LN.prototype.ra.call(this)};
TN.prototype.JH=function(a){var b=this;return g.z(function(c){return b.j?c.return(b.j.ready().then(function(){b.tb.nh("pot_if");return nHa(b,a)})):c.return(Promise.reject("web po not ready"))})};g.v(oHa,g.J);UN.prototype.xJ=function(){this.u=(0,g.T)()};
UN.prototype.reset=function(){this.j=this.u=NaN};
UN.prototype.CJ=function(a,b){if(a.clientPlaybackNonce&&!isNaN(this.j)){if(.1>Math.random()){b=b?"pbp":"pbs";var c={startTime:this.j};!this.Y.K("web_player_csi_ctt_killswitch")&&a.I&&(c.cttAuthInfo={token:a.I,videoId:a.videoId});YA("seek",c);g.ZA("cpn",a.clientPlaybackNonce,"seek");isNaN(this.u)||WA("pl_ss",this.u,"seek");WA(b,(0,g.T)(),"seek")}this.reset()}};WN.prototype.reset=function(){UA(this.timerName)};
WN.prototype.tick=function(a,b){WA(a,b,this.timerName)};
WN.prototype.nh=function(a){var b=this.timerName;kB(a,b)?a=!1:(WA(a,void 0,b),a=!0);return a};
WN.prototype.info=function(a,b){g.ZA(a,b,this.timerName)};g.v(YN,g.az);g.k=YN.prototype;g.k.hasNext=function(a){return this.loop||!!a||this.index+1<this.length};
g.k.Rm=function(a){return this.loop||!!a||0<=this.index-1};
g.k.setShuffle=function(a){this.shuffle=a;a=this.order&&null!=this.order[this.index]?this.order[this.index]:this.index;this.order=[];for(var b=0;b<this.items.length;b++)this.order.push(b);this.index=a;this.u++;if(this.shuffle){a=this.order[this.index];for(b=1;b<this.order.length;b++){var c=Math.floor(Math.random()*(b+1)),d=this.order[b];this.order[b]=this.order[c];this.order[c]=d}for(b=0;b<this.order.length;b++)this.order[b]===a&&(this.index=b);this.u++}this.ma("shuffle")};
g.k.Mf=function(a){a=a||"hqdefault.jpg";var b=this.fg[a];if(b||this.Sa.S||"sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a)return b;if(this.B.length)return gG(this.Sa,this.B[0],a)};
g.k.findIndex=function(a){if(a&&(a=a.videoId,!this.items[this.index]||this.items[this.index].video_id!==a))for(var b=0;b<this.items.length;b++)if(this.items[b].video_id===a){this.index=b;break}};
g.k.onReady=function(a){this.j=a;this.loaded&&g.vu(this.j,0)};
g.k.getPlaylistId=function(){return this.listId?this.listId.toString():null};
g.k.Om=function(){return this.Sa.getVideoUrl(g.$N(this).videoId,this.getPlaylistId())};
g.k.ra=function(){this.j=null;g.Ze(this.items);g.az.prototype.ra.call(this)};var cO=new Map;g.v(g.eO,g.az);g.k=g.eO.prototype;g.k.create=function(){};
g.k.load=function(){this.loaded=!0};
g.k.unload=function(){this.loaded=!1};
g.k.Bg=function(){};
g.k.Dj=function(){return!0};
g.k.ra=function(){this.loaded&&this.unload();g.az.prototype.ra.call(this)};
g.k.Sb=function(){return{}};
g.k.getOptions=function(){return[]};g.v(g.hO,g.J);g.k=g.hO.prototype;g.k.mq=aa(20);g.k.qw=function(){};
g.k.ep=function(){};
g.k.Ds=function(){return""};
g.k.hK=aa(21);g.k.ra=function(){this.ep();g.J.prototype.ra.call(this)};g.v(g.iO,g.hO);g.iO.prototype.mq=aa(19);g.iO.prototype.qw=function(a){if(this.audioTrack)for(var b=g.r(this.audioTrack.captionTracks),c=b.next();!c.done;c=b.next())g.gO(this.j,c.value);a()};
g.iO.prototype.Ds=function(a,b){var c=a.ye(),d={fmt:b};if("srv3"===b||"3"===b||"json3"===b)g.Ou()?Object.assign(d,{xorb:2,xobt:1,xovt:1}):Object.assign(d,{xorb:2,xobt:3,xovt:3});a.translationLanguage&&(d.tlang=g.JG(a));return mu(c,d)};
g.iO.prototype.ep=function(){this.u&&this.u.abort()};g.jO.prototype.override=function(a){a=g.r(Object.entries(a));for(var b=a.next();!b.done;b=a.next()){var c=g.r(b.value);b=c.next().value;c=c.next().value;Object.defineProperty(this,b,{value:c})}};g.f1a=new Map;g.v(g.lO,g.hO);g.lO.prototype.mq=aa(18);
g.lO.prototype.qw=function(a){var b=this,c=this.B,d={type:"list",tlangs:1,v:this.videoId,vssids:1};this.KP&&(d.asrs=1);c=mu(c,d);this.ep();this.u=g.Au(c,{format:"RAW",onSuccess:function(e){b.u=null;if((e=e.responseXML)&&e.firstChild){for(var f=e.getElementsByTagName("track"),h=0;h<f.length;h++){var l=f[h],m=l.getAttribute("lang_code"),n=l.getAttribute("lang_translated"),p=l.getAttribute("name"),q=l.getAttribute("kind"),u=l.getAttribute("id"),w="true"===l.getAttribute("lang_default"),y="true"===l.getAttribute("cantran");
l=l.getAttribute("vss_id");g.gO(b.j,new g.GG({languageCode:m,languageName:n,name:p,kind:q,id:u,is_servable:!0,is_translateable:y,vss_id:l,is_default:w}))}e=e.getElementsByTagName("target");f=e.length;for(h=0;h<f;h++)m={languageCode:e[h].getAttribute("lang_code"),languageName:e[h].getAttribute("lang_translated"),languageOriginal:e[h].getAttribute("lang_original"),id:e[h].getAttribute("id"),isDefault:"true"===e[h].getAttribute("lang_default")},b.D[m.languageCode]=m.languageName,b.C.push(m)}a()},
withCredentials:!0})};
g.lO.prototype.Ds=function(a,b){var c=this.B;b={v:this.videoId,type:"track",lang:a.languageCode,name:a.getName(),kind:a.kind,fmt:b};a.translationLanguage&&(b.tlang=g.JG(a));return c=mu(c,b)};
g.lO.prototype.ep=function(){this.u&&this.u.abort()};g.v(mO,g.J);g.k=mO.prototype;g.k.fC=function(){qO(this)&&(0<this.B&&this.Hr?g.Yn(this.Hr):this.eC());IHa(this)&&(pO(this,"captions",!0),pO(this,"endscreen"),this.eH(),pO(this,"creatorendscreen",!0))};
g.k.AA=function(){return this.G.getVideoData().AA()};
g.k.SK=function(){return this.G.getVideoData().SK()};
g.k.tO=function(){var a=this.le.get("heartbeat");pO(this,"heartbeat",!1,!0,this.tO);!a&&this.le.has("heartbeat")&&this.G.ma("offlineslatestatechange")};
g.k.isShortsModeEnabled=function(){var a=this.G,b;return!(null==(b=g.rN(a))||!b.Do())&&a.V().K("embeds_enable_shorts_branded_ui")};
g.k.eH=function(){pO(this,"annotations_module",!0,void 0,this.eH);var a=this.le.get("annotations_module");if(a)for(var b in this.u)if(this.u.hasOwnProperty(b)){var c=b;a.subscribe(c,this.u[c])}};
g.k.eC=function(){if(!this.le.get("ad"))try{oO(this)?pO(this,"ad",!1,!0,this.eC):this.G.xf("ad")}catch(a){this.G.xf("ad"),g.oz(a)}};
g.k.Gi=function(){return this.j};
g.k.eI=function(){var a={},b=g.nO(this);b&&Object.assign(a,b.eI());return a};
g.k.uw=function(a,b){Object.assign(this.j,a||null);Object.assign(this.gC,b||null)};
g.k.ra=function(){g.J.prototype.ra.call(this);rO(this,1,!0);for(var a=g.r(Object.entries(OHa)),b=a.next();!b.done;b=a.next()){var c=g.r(b.value);b=c.next().value;c=c.next().value;this.D.has(c)&&cO.delete(b)}this.D.clear()};
var o4={},OHa=(o4.ad="ad.js",o4.annotations_module="annotations_module.js",o4.attribution="attribution.js",o4.creatorendscreen="annotations_module.js",o4.embed="embed.js",o4.endscreen="endscreen.js",o4.heartbeat="heartbeat.js",o4.inline_preview="inline_preview.js",o4.kids="kids.js",o4.remote="remote.js",o4.miniplayer="miniplayer.js",o4.music="music.js",o4.offline="offline.js",o4.captions="captions.js",o4.unplugged="unplugged.js",o4.ux="ux.js",o4.webgl="webgl.js",o4.ypc="ypc.js",o4.ypc_clickwrap="ypc_clickwrap.js",
o4.yto="yto.js",o4);g.v(yO,g.af);yO.prototype.preventDefault=function(){g.af.prototype.preventDefault.call(this);this.j&&this.j.preventDefault()};
yO.prototype.stopPropagation=function(){g.af.prototype.stopPropagation.call(this);this.j&&this.j.stopPropagation()};g.v(g.zO,TJ);g.k=g.zO.prototype;g.k.Dr=function(){return!0};
g.k.isView=function(){return!1};
g.k.wK=function(){return!1};
g.k.zf=function(){return this.j};
g.k.Lf=function(){return this.j.src};
g.k.yB=function(a){var b=this.getPlaybackRate();this.j.src=a;this.setPlaybackRate(b)};
g.k.lE=function(){this.j.removeAttribute("src")};
g.k.getPlaybackRate=function(){try{return 0<=this.j.playbackRate?this.j.playbackRate:1}catch(a){return 1}};
g.k.setPlaybackRate=function(a){this.getPlaybackRate()!==a&&(this.j.playbackRate=a);return a};
g.k.Bs=function(){return this.j.loop};
g.k.setLoop=function(a){this.j.loop=a};
g.k.canPlayType=function(a,b){return this.j.canPlayType(a,b)};
g.k.Pn=function(){return this.j.paused};
g.k.Gg=function(){return this.j.seeking};
g.k.Yg=function(){return this.j.ended};
g.k.HC=function(){return this.j.muted};
g.k.Sw=function(a){cE();this.j.muted=a};
g.k.Cs=function(){return this.j.played||dE([],[])};
g.k.Xg=function(){try{var a=this.j.buffered}catch(b){}return a||dE([],[])};
g.k.Zy=function(){return this.j.seekable||dE([],[])};
g.k.vB=function(){var a=this.j;return a.getStartDate?a.getStartDate():null};
g.k.getCurrentTime=function(){return this.j.currentTime};
g.k.xB=function(a){this.j.currentTime=a};
g.k.getDuration=function(){return this.j.duration};
g.k.load=function(){var a=this.j.playbackRate;try{this.j.load()}catch(b){}this.j.playbackRate=a};
g.k.pause=function(){this.j.pause()};
g.k.play=function(){var a=this.j.play();if(!a||!a.then)return null;a.then(void 0,function(){});
return a};
g.k.hj=function(){return this.j.readyState};
g.k.IC=function(){return this.j.networkState};
g.k.gg=function(){return this.j.error?this.j.error.code:null};
g.k.rf=function(){return this.j.error?this.j.error.message:""};
g.k.wB=function(){if(window.HTMLVideoElement&&this.j instanceof window.HTMLVideoElement&&this.j.getVideoPlaybackQuality)return this.j.getVideoPlaybackQuality();if(this.j){var a=this.j,b=a.webkitDroppedFrameCount;if(a=a.webkitDecodedFrameCount)return{droppedVideoFrames:b||0,totalVideoFrames:a}}return{}};
g.k.Fg=function(){return!!this.j.webkitCurrentPlaybackTargetIsWireless};
g.k.Pq=function(){return!!this.j.webkitShowPlaybackTargetPicker()};
g.k.togglePictureInPicture=function(){var a=this.j,b=window.document;window.document.pictureInPictureEnabled?this.j!==b.pictureInPictureElement?a.requestPictureInPicture():b.exitPictureInPicture():bE()&&a.webkitSetPresentationMode("picture-in-picture"===a.webkitPresentationMode?"inline":"picture-in-picture")};
g.k.Wp=function(){var a=this.j;return new g.Ig(a.offsetLeft,a.offsetTop)};
g.k.getSize=function(){return g.Kl(this.j)};
g.k.setSize=function(a){g.Jl(this.j,a)};
g.k.getVolume=function(){return this.j.volume};
g.k.setVolume=function(a){cE();this.j.volume=a};
g.k.vH=function(a){this.I[a]||(this.j.addEventListener(a,this.listener),this.I[a]=this.listener)};
g.k.setAttribute=function(a,b){this.j.setAttribute(a,b)};
g.k.removeAttribute=function(a){this.j.removeAttribute(a)};
g.k.hasAttribute=function(a){return this.j.hasAttribute(a)};
g.k.Xx=aa(23);g.k.HA=aa(25);g.k.IA=aa(27);g.k.zv=aa(29);g.k.Fy=function(){return Wy(this.j)};
g.k.vp=function(a){g.fo(this.j,a)};
g.k.getStyle=function(a){return g.Bl(this.j,a)};
g.k.DI=function(){return g.qh(document.body,this.j)};
g.k.audioTracks=function(){var a=this.j;if("audioTracks"in a)return a.audioTracks};
g.k.ra=function(){for(var a=g.r(Object.keys(this.I)),b=a.next();!b.done;b=a.next())b=b.value,this.j.removeEventListener(b,this.I[b]);TJ.prototype.ra.call(this)};g.v(BO,g.az);g.k=BO.prototype;g.k.E_=function(a){a=Dx(a);if(!Jg(a,this.C)){var b=2;this.I&&(b|=8);this.C=a;AO(this,b,!0)}};
g.k.F_=function(){this.I&&AO(this,8,!0);AO(this,2,!1)};
g.k.yD=function(a){var b=Dx(a);Jg(b,this.C)||(this.C=b,(a=g.Ax(a))&&this.SB(a)&&(AO(this,4,!0),this.j.yc(this.B),this.B=this.j.T(this.target,"mouseover",this.lJ),this.J=this.j.T(this.target,"mouseout",this.lJ)))};
g.k.lJ=function(a){a=Cx(a);a&&this.SB(a)||(this.C=new g.Ig(NaN,NaN),PHa(this))};
g.k.b_=function(){AO(this,1,!0)};
g.k.SY=function(a){a=g.Ax(a);a instanceof Element&&!(0<a.tabIndex)||AO(this,1,!0)};
g.k.yQ=function(){this.I=!0;this.j.yc(this.D);this.D=this.j.T(document,"mouseup",this.G_)};
g.k.G_=function(){this.I=!1;AO(this,8,!1);this.j.yc(this.D);this.D=this.j.T(this.target,"mousedown",this.yQ)};
g.k.aT=function(a){if(a=(a=a.changedTouches)&&a[0])this.ya=a.identifier,this.j.yc(this.S),this.S=this.j.T(this.target,"touchend",this.A5,void 0,!0),AO(this,1024,!0)};
g.k.A5=function(a){if(a=a.changedTouches)for(var b=0;b<a.length;b++){var c=a[b];if(c.identifier===this.ya){var d=c;break}}d&&(this.j.yc(this.S),this.S=this.j.T(this.target,"touchstart",this.aT,void 0,!0),AO(this,1024,!1))};
g.k.Dn=function(){AO(this,2,!0)};
g.k.resize=function(){g.$D&&PHa(this)};
g.k.toString=function(){return g.az.prototype.toString.call(this)};g.v(g.CO,g.W);
g.CO.prototype.Ja=function(){var a=this.api.getVideoData(),b=this.api.V(),c,d=!(null==(c=g.rN(this.api))||!c.Do());g.jo(this.element,"ytp-shorts-mode",d);d&&b.K("embeds_enable_shorts_branded_ui")?c=[{F:"svg",X:{fill:"none",height:"100%",viewBox:"0 0 87 115",width:"100%"},W:[{F:"path",X:{"clip-rule":"evenodd",d:"M83.99 10.81C90.08 21.24 86.62 34.66 76.26 40.79L69.05 45.06L74.17 47.38C81.58 50.74 86.52 57.99 86.96 66.17C87.40 74.34 83.27 82.09 76.26 86.24L32.76 111.97C22.41 118.10 9.08 114.61 3.00 104.18C-3.08 93.75 .37 80.33 10.73 74.20L17.94 69.93L12.82 67.61C5.41 64.25 .47 57.00 .03 48.82C-0.40 40.65 3.72 32.90 10.73 28.75L54.23 3.02C64.58 -3.10 77.91 .38 83.99 10.81Z",fill:"#f00",
"fill-rule":"evenodd"}},{F:"path",X:{"clip-rule":"evenodd",d:"M33 74L33 41L61 57.5L33 74Z",fill:"white","fill-rule":"evenodd"}}]}]:a.C&&(a.eb||b.pfpChazalUi)?c=b.pfpChazalUi?[{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},W:[{F:"path",N:"ytp-dni-large-play-button-bg",X:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{F:"path",X:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}]:[{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},W:[{F:"path",
N:"ytp-dni-large-play-button-bg",X:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",fill:"#212121","fill-opacity":"0.8"}},{F:"path",X:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]:b.D?(g.jo(this.element,"ytp-touch-device",b.isMobile),c=[b.D?
{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},W:[{F:"path",N:"ytp-large-play-button-bg",X:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{F:"path",X:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}:{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},W:[{F:"path",N:"ytp-large-play-button-bg",X:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",
fill:"#212121","fill-opacity":"0.8"}},{F:"path",X:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]):c=[{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},W:[{F:"path",N:"ytp-large-play-button-bg",X:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",
fill:"#f00"}},{F:"path",X:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];this.Oa("largePlayButtonChildren",c);a.C&&(a.eb||b.pfpChazalUi)&&(a=a.eb?a.eb:"#1f1f1f",this.Da("ytp-dni-large-play-button-bg").setAttribute("fill",a))};g.v(g.DO,g.W);g.k=g.DO.prototype;g.k.show=function(){var a=this;this.rb||(this.B.T(this.api,"videodatachange",function(){g.Yn(a.j)}),this.B.T(this.api,"videoplayerreset",function(){g.Yn(a.j)}));
g.W.prototype.show.call(this)};
g.k.hide=function(){this.B&&g.$y(this.B);g.W.prototype.hide.call(this)};
g.k.Cb=function(){g.Yn(this.j)};
g.k.onStateChange=function(a){var b=this.api.V();b.K("disable_new_pause_state3")&&hG(b)&&(a=a.state.isCued()&&!a.yq.isCued()||g.yN(this.api)&&g.V(a.state,2),g.zl(this.element,"transition-delay",a?"2s":""));g.Yn(this.j)};
g.k.v3=function(){g.Yn(this.j)};
g.k.NV=function(){this.u.stop();this.hide();g.Yn(this.j)};
g.k.Ja=function(){var a=this.api.Eb();if(3===this.api.getPresentingPlayerType()&&(a.Tc()||g.V(a,4)))var b=!0;else(b=this.api.wb().le.get("ypc"))&&b.PD?b=!0:(b=this.api.V(),b=g.V(a,2)&&g.vN(this.api)&&b.Ue?!0:!1);b?(b=!0,this.C.hide()):(this.C.show(),a.isCued()&&2!==this.api.getPresentingPlayerType()?b=!0:(b=!this.api.V().K("disable_new_pause_state3"),b=!(!g.V(a,2)||g.vN(this.api)||b&&this.api.Ly())||g.V(a,1024)?!0:!1));b?(this.u.show(),a=this.api.getVideoData(),this.a6(this.api.getPlaylist(),a)):
(this.u.hide(),g.V(a,1)||this.u.stop())};
g.k.a6=function(){for(var a,b=g.r(g.za.apply(0,arguments)),c=b.next();!c.done;c=b.next())if(c=c.value,!(!c||c instanceof g.FH&&!c.videoId)){a=this.api.gb().getPlayerSize();var d=g.iG(),e=a.width*d;d*=a.height;if(1280<e||720<d)if(a=c.Mf("maxresdefault.jpg"))break;if(640<e||480<d)if(a=c.Mf("maxresdefault.jpg"))break;if(320<e||180<d)if(a=c.Mf("sddefault.jpg")||c.Mf("hqdefault.jpg")||c.Mf("mqdefault.jpg"))break;if(a=c.Mf("default.jpg"))break}this.D.style.backgroundImage=a?"url("+a+")":""};g.v(g.JO,g.W);g.JO.prototype.resize=function(){};
g.JO.prototype.u=function(a){var b=this;UHa(this);var c=a.yH,d=this.api.V();"GENERIC_WITHOUT_LINK"!==c||d.D?"TOO_MANY_REQUESTS"===c?(d=this.api.getVideoData(),this.Wd(MO(this,"TOO_MANY_REQUESTS_WITH_LINK",d.Om(),void 0,void 0,void 0,!1))):"HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!==c||d.D?this.Wd(g.KO(a.errorMessage)):this.Wd(MO(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(a=d.hostLanguage,c="//support.google.com/youtube/?p=player_error1",a&&(c=
g.wi(c,{hl:a})),this.Wd(MO(this,"GENERIC_WITH_LINK_AND_CPN",c,!0)),d.lc&&!d.u&&THa(this,function(e){if(g.EO(e,b.api,!hG(b.api.V()))){e={as3:!1,html5:!0,player:!0,cpn:b.api.getVideoData().clientPlaybackNonce};var f=b.api;f.Pa("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:e});f.isFullscreen()&&f.toggleFullscreen()}}))};
var SHa=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;g.v(NO,g.XD);NO.prototype.Dh=function(){YHa(this)};
NO.prototype.onVideoDataChange=function(){var a=this,b=this.G.getVideoData();if(b.isValid()){var c=this.G.V(),d=[],e="";if(!c.S){var f=WHa(this);c.K("enable_web_media_session_metadata_fix")&&g.TF(c)&&f?(d=XHa(f.thumbnailDetails),f.album&&(e=g.xA(f.album))):d=[{src:b.Mf("mqdefault.jpg")||"",sizes:"320x180",type:"image/jpeg"}]}YHa(this);VHa(this);this.mediaSession.metadata=new MediaMetadata({title:b.title,artist:b.author,artwork:d,album:e});c=b=null;g.yN(this.G)&&(this.j.delete("nexttrack"),this.j.delete("previoustrack"),
b=function(){a.G.nextVideo()},c=function(){a.G.previousVideo()});
OO(this,"nexttrack",b);OO(this,"previoustrack",c)}};
NO.prototype.ra=function(){this.mediaSession.playbackState="none";this.mediaSession.metadata=null;for(var a=g.r(this.j),b=a.next();!b.done;b=a.next())OO(this,b.value,null);g.XD.prototype.ra.call(this)};g.v(PO,g.W);g.k=PO.prototype;g.k.onClick=function(a){g.EO(a,this.G,!0);this.G.ub(this.element)};
g.k.onVideoDataChange=function(a,b){$Ha(this,b);this.Dd&&aIa(this,this.Dd)};
g.k.Uc=function(a){var b=this.G.getVideoData();this.videoId!==b.videoId&&$Ha(this,b);this.j&&aIa(this,a.state);this.Dd=a.state};
g.k.Qc=function(){this.C.show();this.G.ma("paidcontentoverlayvisibilitychange",!0);this.G.Xa(this.element,!0)};
g.k.Bb=function(){this.C.hide();this.G.ma("paidcontentoverlayvisibilitychange",!1);this.G.Xa(this.element,!1)};g.v(QO,g.W);QO.prototype.hide=function(){this.j.stop();this.message.style.display="none";g.W.prototype.hide.call(this)};
QO.prototype.onStateChange=function(a){this.Vc(a.state)};
QO.prototype.Vc=function(a){if(g.V(a,128))var b=!1;else{var c;b=(null==(c=this.api.Jc())?0:c.kq)?!1:g.V(a,16)||g.V(a,1)?!0:!1}b?this.j.start():this.hide()};
QO.prototype.u=function(){this.message.style.display="block"};g.v(RO,g.DN);RO.prototype.onMutedAutoplayChange=function(a){this.B&&(a?(bIa(this),this.Qc()):(this.j&&this.ub(),this.Bb()))};
RO.prototype.Dh=function(a){this.api.isMutedByMutedAutoplay()&&g.sJ(a,2)&&this.Bb()};
RO.prototype.onClick=function(){this.api.unMute();this.ub()};
RO.prototype.ub=function(){this.clicked||(this.clicked=!0,this.api.ub(this.element))};g.v(g.TO,g.XD);g.k=g.TO.prototype;g.k.init=function(){var a=this.api,b=a.Eb();this.XC=a.getPlayerSize();this.Xb(b);this.En();this.Cb();this.api.ma("basechromeinitialized",this)};
g.k.onVideoDataChange=function(a,b){var c=this.ow!==b.videoId;if(c||"newdata"===a)a=this.api,a.isFullscreen()||(this.XC=a.getPlayerSize());c&&(this.ow=b.videoId,c=this.je,c.Aa=b&&0<b.Ue.length?5E3:3E3,AO(c,512,!0),this.En())};
g.k.Q1=function(){this.onVideoDataChange("newdata",this.api.getVideoData())};
g.k.Oq=function(){var a=this.api.Ai()&&this.api.xm();return this.dC||a||this.rI};
g.k.Jk=function(){var a=!this.Oq();g.jo(this.api.getRootNode(),"ytp-menu-shown",!a)};
g.k.SB=function(a){try{if(!g.qh(this.api.getRootNode(),a))return!1}catch(b){return!1}for(;a&&!sh(a);)a=a===this.api.getRootNode()?null:g.ph(a);return!!a};
g.k.Bl=function(a){var b=this.api.getRootNode();g.jo(b,"ytp-autohide",a);g.jo(b,"ytp-autohide-active",!0);this.RN.start(a?250:100);a&&(this.NE=!1,g.ho(b,"ytp-touch-mode"));this.cH=!a;this.api.wA(!a)};
g.k.uJ=function(){var a=this.api.getRootNode();g.jo(a,"ytp-autohide-active",!1)};
g.k.A2=function(){this.rL=!0};
g.k.z2=function(a){if(this.api.V().K("player_doubletap_to_seek")||!this.api.V().K("embeds_web_enable_mobile_touch_fix_killswitch")&&this.api.V().I)this.rL=!1,this.sL&&this.yc(this.sL),0===this.Lz&&WO(this,a)?(this.VC(),this.iC.start(),this.sL=this.T(this.api.gb(),"touchmove",this.A2,void 0,!0)):this.iC.stop();dIa(this)&&WO(this,a)&&(!this.api.V().I||this.api.V().K("embeds_web_enable_mobile_touch_fix_killswitch"))&&SO(this);var b=this.RE.Ah();if(GF&&eIa(this,a))b&&g.Ex(a);else if(this.je.u||!this.api.K("web_player_drag_on_autohide_killswitch")||
UO(this,Bx(a))||this.RE.Ah()||(this.api.Eb().isCued(),g.Ex(a)),this.NE=!0,g.fo(this.api.getRootNode(),"ytp-touch-mode"),this.je.Dn(),this.api.V().K("player_doubletap_to_seek")&&(b=this.api.Eb(),!(!this.api.hg()||g.V(b,2)&&g.vN(this.api)||g.V(b,64)))){b=Date.now()-this.eQ;this.Lz+=1;if(350>=b){this.zy=!0;b=this.api.getPlayerSize().width/3;var c=this.api.getRootNode().getBoundingClientRect(),d=a.targetTouches[0].clientX-c.left;c=a.targetTouches[0].clientY-c.top;var e=10*(this.Lz-1);0<d&&d<b?(this.Kw(-1,
d,c,e),this.api.seekBy(-10*this.api.getPlaybackRate())):d>2*b&&d<3*b&&(this.Kw(1,d,c,e),this.api.seekBy(10*this.api.getPlaybackRate()));g.Ex(a)}this.eQ=Date.now();this.iS.start()}};
g.k.t2=function(a){if(!eIa(this,a)){if(!dIa(this)&&WO(this,a)&&!this.iC.isActive()){if(g.mG(this.api.V())&&this.api.Eb().isCued()){var b=void 0===b?{}:b;VA();OA();UA();FA(!1);b.cttAuthInfo&&(GA().cttAuthInfo=b.cttAuthInfo);Zt("TIMING_AFT_KEYS",[]);b.B5a?XA({loadType:"hot"}):XA({loadType:"warm"});Zt("TIMING_ACTION","");delete g.O("TIMING_INFO",{}).yt_lt;WA("_start",b.startTime,void 0);b=["pbs","pbu"];NA("").info.actionType="watch";b&&Zt("TIMING_AFT_KEYS",b);Zt("TIMING_ACTION","watch");if(g.S("web_csi_via_jspb")){b=
g.O("TIMING_INFO",{});var c=new wt;b=g.r(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=g.r(d.value);d=e.next().value;e=e.next().value;switch(d){case "GetBrowse_rid":var f=new xt;g.E(f,1,d);g.E(f,2,String(e));zt(c,f);break;case "GetGuide_rid":f=new xt;g.E(f,1,d);g.E(f,2,String(e));zt(c,f);break;case "GetHome_rid":f=new xt;g.E(f,1,d);g.E(f,2,String(e));zt(c,f);break;case "GetPlayer_rid":f=new xt;g.E(f,1,d);g.E(f,2,String(e));zt(c,f);break;case "GetSearch_rid":f=new xt;g.E(f,1,d);g.E(f,
2,String(e));zt(c,f);break;case "GetSettings_rid":f=new xt;g.E(f,1,d);g.E(f,2,String(e));zt(c,f);break;case "GetTrending_rid":f=new xt;g.E(f,1,d);g.E(f,2,String(e));zt(c,f);break;case "GetWatchNext_rid":f=new xt;g.E(f,1,d);g.E(f,2,String(e));zt(c,f);break;case "yt_red":g.E(c,14,!!e);break;case "yt_ad":g.E(c,9,!!e)}}jB(c);c=new wt;c=g.E(c,25,!0);c=g.E(c,1,U[PA(g.O("TIMING_ACTION"))]);(b=g.O("PREVIOUS_ACTION"))&&g.E(c,13,U[PA(b)]);(b=g.O("CLIENT_PROTOCOL"))&&g.E(c,33,b);(b=g.O("CLIENT_TRANSPORT"))&&
g.E(c,34,b);(b=g.zz())&&"UNDEFINED_CSN"!==b&&g.E(c,4,b);b=mB();1!==b&&-1!==b||g.E(c,6,!0);b=HA();if(sva()&&(g.E(c,3,"cold"),Fva(b),b=Hva(),0<b.length))for(b=g.r(b),d=b.next();!d.done;d=b.next())d=d.value,e=new vt,g.E(e,1,d),Kd(c,83,vt,e);jB(c)}else{b=g.O("TIMING_INFO",{});for(c in b)b.hasOwnProperty(c)&&g.ZA(c,b[c]);c={isNavigation:!0,actionType:PA(g.O("TIMING_ACTION"))};if(b=g.O("PREVIOUS_ACTION"))c.previousAction=PA(b);if(b=g.O("CLIENT_PROTOCOL"))c.httpProtocol=b;if(b=g.O("CLIENT_TRANSPORT"))c.transportProtocol=
b;(b=g.zz())&&"UNDEFINED_CSN"!==b&&(c.clientScreenNonce=b);b=mB();if(1===b||-1===b)c.isVisible=!0;if(g.S("skip_setting_info_in_csi_data_object")?"cold"===IA().loadType:"cold"===HA().yt_lt)if(c.loadType="cold",Fva(HA()),b=Hva(),0<b.length)for(c.resourceInfo=[],b=g.r(b),d=b.next();!d.done;d=b.next())c.resourceInfo.push({resourceCache:d.value});XA(c)}c=HA();b=KA();if(!(g.S("skip_setting_info_in_csi_data_object")&&"cold"!==IA().loadType||"cold"!==c.yt_lt&&"cold"!==b.loadType)){d=BA();e=JA();e=e.gelTicks?
e.gelTicks:e.gelTicks={};for(var h in d)h in e||WA(h,d[h]);h={};d=!1;e=g.r(Object.keys(c));for(f=e.next();!f.done;f=e.next())f=f.value,(f=Ava(f,c[f]))&&!rva(KA(),f)&&(Uz(b,f),Uz(h,f),d=!0);d&&XA(h)}FA(!0);h=g.O("TIMING_ACTION");g.Ga("ytglobal.timingready_")&&h&&kB("_start")&&kva()&&qva()}SO(this);g.Ex(a)}this.zy&&(this.zy=!1)}};
g.k.requestStorageAccess=function(){var a=this;this.api.requestStorageAccess(function(){g.Kv("embedsRequestStorageAccessResult",{resolved:!0});nya(!0);Sy();window.location.reload()},function(){g.Kv("embedsRequestStorageAccessResult",{resolved:!1});
a.gx()})};
g.k.VC=function(){};
g.k.Pt=function(){};
g.k.Kw=function(){};
g.k.sK=function(){};
g.k.gx=function(){var a=this.api.Eb();g.V(a,2)&&g.vN(this.api)||(g.dK(a)?this.api.pauseVideo():(this.api.YI(),this.api.playVideo(),this.Un&&document.activeElement===this.Un.C.element&&this.api.getRootNode().focus()))};
g.k.u2=function(a){var b=this,c=this.api.getPresentingPlayerType();if(!UO(this,Bx(a)))if(a=this.api.V(),this.api.V().K("player_doubletap_to_seek")&&this.zy)this.zy=!1;else if(a.ob&&3!==c)try{this.api.toggleFullscreen().catch(function(d){b.kz(d)})}catch(d){this.kz(d)}};
g.k.kz=function(a){String(a).includes("fullscreen error")?g.pz(a):g.oz(a)};
g.k.v2=function(a){fIa(this,.3,a.scale);g.Ex(a)};
g.k.w2=function(a){fIa(this,.1,a.scale)};
g.k.Cb=function(){var a=this.api.gb().getPlayerSize(),b=this.api.getRootNode(),c=650<=a.width;this.je.resize();g.jo(b,"ytp-fullscreen",this.api.isFullscreen());g.jo(b,"ytp-large-width-mode",c);g.jo(b,"ytp-small-mode",this.Hg());g.jo(b,"ytp-tiny-mode",this.hD());g.jo(b,"ytp-big-mode",this.Wf());this.Cf&&this.Cf.resize(a)};
g.k.Dh=function(a){this.Xb(a.state);this.En()};
g.k.yA=aa(30);g.k.SH=function(){var a=!!this.ow&&!this.api.bf()&&!this.XJ,b=2===this.api.getPresentingPlayerType(),c=this.api.V();if(b){if(iYa&&c.K("enable_visit_advertiser_support_on_ipad_mweb"))return!1;b=sO(this.api.wb());return a&&b.VK()}return a&&(c.Nj||this.api.isFullscreen()||c.Rb)};
g.k.En=function(){var a=this.SH();this.Zm!==a&&(this.Zm=a,g.jo(this.api.getRootNode(),"ytp-hide-info-bar",!a))};
g.k.Xb=function(a){var b=a.isCued()||this.api.ul()&&3!==this.api.getPresentingPlayerType();b!==this.isCued&&(this.isCued=b,this.uL&&this.yc(this.uL),this.uL=this.T(this.api.gb(),"touchstart",this.z2,void 0,b));var c=a.Tc()&&!g.V(a,32)||this.api.wz();AO(this.je,128,!c);c=3===this.api.getPresentingPlayerType();AO(this.je,256,c);c=this.api.getRootNode();if(g.V(a,2))var d=[j4.ENDED];else d=[],g.V(a,8)?d.push(j4.PLAYING):g.V(a,4)&&d.push(j4.PAUSED),g.V(a,1)&&!g.V(a,32)&&d.push(j4.BUFFERING),g.V(a,32)&&
d.push(j4.SEEKING),g.V(a,64)&&d.push(j4.UNSTARTED);g.mc(this.rG,d)||(g.io(c,this.rG),this.rG=d,g.go(c,d));d=this.api.V();var e=g.V(a,2);a:{var f=this.api.V();var h=f.controlsType;switch(h){case "2":case "0":f=!1;break a}f="3"===h&&!g.V(a,2)||this.isCued||(2!==this.api.getPresentingPlayerType()?0:UXa(sO(this.api.wb())))||g.KF(f)&&2===this.api.getPresentingPlayerType()?!1:!0}g.jo(c,"ytp-hide-controls",!f);g.jo(c,"ytp-native-controls","3"===d.controlsType&&!b&&!e&&!this.rI);g.V(a,128)&&!g.KF(d)?(this.Cf||
(this.Cf=new g.JO(this.api),g.M(this,this.Cf),g.BN(this.api,this.Cf.element,4)),this.Cf.u(a.getData()),this.Cf.show()):this.Cf&&(this.Cf.dispose(),this.Cf=null)};
g.k.dl=function(){return this.api.Ai()&&this.api.xm()?(this.api.setCardsVisible(!1,!1),!0):this.api.bf()?(g.wN(this.api,!0),!0):!1};
g.k.onMutedAutoplayChange=function(a){this.rI=a;this.Jk()};
g.k.Wf=function(){return!1};
g.k.Hg=function(){return!this.Wf()&&(480>this.api.getPlayerSize().width||290>this.api.getPlayerSize().height)};
g.k.hD=function(){return this.Hg()&&(240>this.api.getPlayerSize().width||140>this.api.getPlayerSize().height)};
g.k.Do=function(){var a=this.api.V();if(!g.KF(a)||!a.K("embeds_enable_allow_watch_again_endscreen_for_eligible_shorts")||"EMBEDDED_PLAYER_MODE_DEFAULT"!==(a.ea||"EMBEDDED_PLAYER_MODE_DEFAULT")||this.api.getPlaylist())return!1;a=this.XC;var b;return!(null==(b=this.api.getVideoData())||!b.isShortsEligible)&&a.width<=a.height};
g.k.hk=function(){return this.NE};
g.k.Lm=function(){return null};
g.k.Yy=function(){return null};
g.k.fk=function(){var a=this.api.gb().getPlayerSize();return new g.wl(0,0,a.width,a.height)};
g.k.handleGlobalKeyDown=function(){return!1};
g.k.handleGlobalKeyUp=function(){return!1};
g.k.At=function(){};
g.k.showControls=function(a){void 0!==a&&this.api.gb().wA(a)};
g.k.Dn=function(){};g.v(XO,g.az);g.k=XO.prototype;g.k.Lv=function(){return 1E3*this.api.getDuration(this.Ml,!1)};
g.k.stop=function(){this.j&&this.Xc.yc(this.j)};
g.k.hc=function(){var a=this.api.getProgressState(this.Ml);this.u={seekableStart:a.seekableStart,seekableEnd:a.seekableEnd,current:this.api.V().K("halftime_ux_killswitch")?a.current:this.api.getCurrentTime(this.Ml,!1)};this.ma("h")};
g.k.getProgressState=function(){return this.u};
g.k.Uc=function(a){g.sJ(a,2)&&this.ma("g")};g.v(YO,g.W);YO.prototype.onClick=function(){this.G.Pa("BACK_CLICKED")};g.v(g.ZO,g.W);g.ZO.prototype.show=function(){g.W.prototype.show.call(this);g.Yn(this.j)};
g.ZO.prototype.hide=function(){this.u.stop();g.W.prototype.hide.call(this)};
g.ZO.prototype.Pt=function(a){a?g.V(this.G.Eb(),64)||$O(this,iL(),"Play"):(a=this.G.getVideoData(),a.isLivePlayback&&!a.allowLiveDvr?$O(this,kFa(),"Stop live playback"):$O(this,fFa(),"Pause"))};g.v(cP,g.W);g.k=cP.prototype;g.k.Qc=function(){this.G.V().K("player_new_info_card_format")&&g.eo(this.G.getRootNode(),"ytp-cards-teaser-shown")&&!g.KF(this.G.V())||(this.u.show(),g.Ux("iv-button-shown"))};
g.k.Bb=function(){g.Ux("iv-button-hidden");this.u.hide()};
g.k.Ah=function(){return this.rb&&4!==this.u.state};
g.k.ra=function(){this.j&&this.j();g.W.prototype.ra.call(this)};
g.k.j1=function(){g.Ux("iv-button-mouseover")};
g.k.onClicked=function(a){this.G.Ai();var b=g.eo(this.G.getRootNode(),"ytp-cards-teaser-shown");g.Ux("iv-teaser-clicked",b);a=0===a.screenX&&0===a.screenY;this.G.setCardsVisible(!this.G.xm(),a,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.v(eP,g.W);g.k=eP.prototype;g.k.nT=function(){this.G.Ai()&&this.G.xm()&&this.Ah()&&this.Bb()};
g.k.iL=function(){this.Bb();!this.G.Ai()&&this.G.V().K("enable_error_corrections_infocards_icon_web")&&this.Kh.Bb();g.Ux("iv-teaser-clicked",null!=this.j);this.onClickCommand?this.G.Pa("innertubeCommand",this.onClickCommand):this.G.setCardsVisible(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")};
g.k.OV=function(){g.Ux("iv-teaser-mouseover");this.j&&this.j.stop()};
g.k.V2=function(a){this.G.V().K("player_new_info_card_format")&&!g.KF(this.G.V())?this.Kh.Bb():this.G.V().K("enable_error_corrections_infocards_icon_web")&&this.Kh.Qc();this.j||!a||this.G.xm()||this.u&&this.u.isActive()||(this.Qc(a),g.Ux("iv-teaser-shown"))};
g.k.Qc=function(a){this.onClickCommand=a.onClickCommand;this.Oa("text",a.teaserText);this.element.setAttribute("dir",g.vo(a.teaserText));this.C.show();this.u=new g.Xn(function(){g.fo(this.G.getRootNode(),"ytp-cards-teaser-shown");this.G.K("player_new_info_card_format")&&!g.KF(this.G.V())&&this.Kh.Bb();this.IL()},0,this);
this.u.start();bP(this.Kh,!1);this.j=new g.Xn(this.Bb,580+a.durationMs,this);this.j.start();this.D.push(this.Ra("mouseover",this.bN,this));this.D.push(this.Ra("mouseout",this.aN,this))};
g.k.IL=function(){if(!this.G.V().K("player_new_info_card_format")&&g.KF(this.G.V())&&this.rb){var a=this.Kh.element.offsetLeft,b=g.ch("ytp-cards-button-icon"),c=this.G.isFullscreen()?54:36;if(b){var d=a+b.offsetLeft;this.element.style.marginRight=this.Kh.element.offsetParent.offsetWidth-a-b.offsetLeft-c+"px";this.element.style.marginLeft=d+"px"}}};
g.k.TX=function(){g.KF(this.G.V())&&this.Z.Hg()&&this.rb&&this.S.start()};
g.k.bN=function(){this.I.stop();this.j&&this.j.isActive()&&this.J.start()};
g.k.aN=function(){this.J.stop();this.j&&!this.j.isActive()&&this.I.start()};
g.k.C1=function(){this.j&&this.j.stop()};
g.k.B1=function(){this.Bb()};
g.k.rk=function(){this.Bb()};
g.k.Bb=function(){!this.j||this.B&&this.B.isActive()||(g.Ux("iv-teaser-hidden"),this.C.hide(),g.ho(this.G.getRootNode(),"ytp-cards-teaser-shown"),this.B=new g.Xn(function(){for(var a=g.r(this.D),b=a.next();!b.done;b=a.next())this.yc(b.value);this.D=[];this.j&&(this.j.dispose(),this.j=null);bP(this.Kh,!0);!this.G.Ai()&&this.G.V().K("enable_error_corrections_infocards_icon_web")&&this.Kh.Bb()},330,this),this.B.start())};
g.k.Ah=function(){return this.rb&&4!==this.C.state};
g.k.ra=function(){var a=this.G.getRootNode();a&&g.ho(a,"ytp-cards-teaser-shown");g.Ze(this.u,this.B,this.j);g.W.prototype.ra.call(this)};var p4={},fP=(p4.BUTTON="ytp-button",p4.TITLE_NOTIFICATIONS="ytp-title-notifications",p4.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",p4.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",p4.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",p4);g.v(gP,g.W);gP.prototype.onClick=function(){this.api.ub(this.element);var a=!this.j;this.Oa("label",a?"Stop getting notified about every new video":"Get notified about every new video");this.Oa("pressed",a);iIa(this,a)};g.v(g.iP,g.W);g.iP.prototype.u=function(){g.fo(this.element,"ytp-sb-subscribed")};
g.iP.prototype.B=function(){g.ho(this.element,"ytp-sb-subscribed")};g.v(jP,g.W);g.k=jP.prototype;g.k.xK=function(){mIa(this);this.channel.classList.remove("ytp-title-expanded")};
g.k.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")};
g.k.CH=function(){if(kIa(this)&&!this.isExpanded()){this.Oa("flyoutUnfocusable","false");this.Oa("channelTitleFocusable","0");this.B&&this.B.stop();this.subscribeButton&&(this.subscribeButton.show(),this.api.Xa(this.subscribeButton.element,!0));var a=this.api.getVideoData();this.u&&a.Ok&&a.subscribed&&(this.u.show(),this.api.Xa(this.u.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}};
g.k.VG=function(){this.Oa("flyoutUnfocusable","true");this.Oa("channelTitleFocusable","-1");this.B&&this.B.start()};
g.k.Ja=function(){var a=this.api.getVideoData(),b=this.api.V(),c=!1;2===this.api.getPresentingPlayerType()?c=!!a.videoId&&!!a.isListed&&!!a.author&&!!a.Id&&!!a.profilePicture:g.KF(b)&&(c=!!a.videoId&&!!a.Id&&!!a.profilePicture&&!(a.C&&b.pfpChazalUi)&&!b.B&&!(b.I&&200>this.api.getPlayerSize().width));var d=g.tG(this.api.V())+a.Id;g.KF(b)&&(d=nIa(this,d));var e=a.Id,f=a.profilePicture;b=g.KF(b)?a.expandedTitle:a.author;e=void 0===e?"":e;f=void 0===f?"":f;b=void 0===b?"":b;if(c){var h=this.api.V();e=
g.tG(h)+e;g.KF(h)&&(e=nIa(this,e));this.J!==f&&(this.j.style.backgroundImage="url("+f+")",this.J=f);this.Oa("channelLink",e);this.Oa("channelLogoLabel",g.FJ("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:b}));g.fo(this.api.getRootNode(),"ytp-title-enable-channel-logo")}else g.ho(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.Xa(this.j,c&&this.Aa);this.subscribeButton&&(this.subscribeButton.channelId=a.Kk);this.Oa("expandedTitle",a.expandedTitle);this.Oa("channelTitleLink",d);this.Oa("expandedSubtitle",
a.expandedSubtitle)};g.v(kP,g.XK);kP.prototype.UQ=function(){this.ma("size-change")};
kP.prototype.focus=function(){this.content.focus()};
kP.prototype.OQ=function(){this.ma("back")};g.v(g.lP,kP);g.k=g.lP.prototype;g.k.Fc=function(a,b){if(void 0===b?0:b)this.items.push(a),this.menuItems.element.appendChild(a.element);else{b=g.jc(this.items,a,pIa);if(0<=b)return;b=~b;g.gc(this.items,b,0,a);g.kh(this.menuItems.element,a.element,b)}a.subscribe("size-change",this.MJ,this);this.menuItems.ma("size-change")};
g.k.Hf=function(a){a.unsubscribe("size-change",this.MJ,this);this.isDisposed()||(g.Xb(this.items,a),this.menuItems.element.removeChild(a.element),this.menuItems.ma("size-change"))};
g.k.MJ=function(){this.menuItems.ma("size-change")};
g.k.focus=function(){for(var a=0,b=0;b<this.items.length;b++)if("true"===this.items[b].element.getAttribute("aria-checked")){a=b;break}this.items[a].focus()};
g.k.Hi=function(){return this.items.length};g.v(nP,g.GN);nP.prototype.j=function(a){g.Fx(a)||39!==g.Gx(a)||(this.element.click(),g.Ex(a))};g.v(pP,g.W);g.k=pP.prototype;g.k.show=function(){g.W.prototype.show.call(this);this.element.tabIndex=0;this.element.focus();this.Oa("userInfoFocusable","0");this.Oa("userInfoFocusable2","0")};
g.k.hide=function(){g.W.prototype.hide.call(this);this.Oa("userInfoFocusable","-1");this.Oa("userInfoFocusable2","-1")};
g.k.PV=function(a){var b=Bx(a),c=g.qh(this.closeButton.element,b),d=g.qh(this.element,b);a=this.j&&g.qh(this.j,b)&&g.XL(a);b&&(d||a)&&!c||this.hide()};
g.k.QV=function(){g.jM(function(){window.location.reload()},"user_info_panel",g.eG(this.Va.V()))};
g.k.Ja=function(){var a=this.Va.V();a={USER_NAME:a.userDisplayName,USER_EMAIL:a.Yi};this.Oa("icon",gFa());this.Oa("watchingAsUsername",g.FJ("Watching as $USER_NAME",a));this.Oa("watchingAsEmail",g.FJ("($USER_EMAIL)",a))};g.v(qP,g.lP);g.k=qP.prototype;g.k.Q0=function(){HO(this.Dv.element)};
g.k.d1=function(){sP(this,this.G.getDebugText(!0))&&$O(this.Ic,$K())};
g.k.e1=function(){sP(this,this.G.getVideoEmbedCode())&&$O(this.Ic,aFa());this.G.ub(this.jl.element);fM("EMBED",this.G.getVideoData().videoId,this.G.getPlaylistId()||"")};
g.k.f1=function(){sP(this,this.G.getVideoUrl(!0,!0))&&$O(this.Ic,eL());this.G.ub(this.getVideoUrl.element);fM("COPY_PASTE",this.G.getVideoData().videoId,this.G.getPlaylistId()||"")};
g.k.g1=function(){sP(this,this.G.getVideoUrl(!1,!0))&&$O(this.Ic,eL());this.G.ub(this.ql.element);fM("COPY_PASTE",this.G.getVideoData().videoId,this.G.getPlaylistId()||"")};
g.k.onLoopChange=function(a){var b;null==(b=this.lk)||b.setValue(a)};
g.k.t1=function(){this.G.setLoopVideo(this.lk.getValue());this.qb.Bb();this.G.ub(this.lk.element)};
g.k.n2=function(a){this.G.reportPlaybackIssue();if(g.EO(a,this.G,!hG(this.G.V()))){a=this.G;var b=a.app.getFeedbackProductData();a.Pa("onFeedbackStartRequest",b);a.isFullscreen()&&a.toggleFullscreen()}this.qb.Bb()};
g.k.J2=function(){this.G.isVideoInfoVisible()?this.G.hideVideoInfo():this.G.showVideoInfo();this.qb.Bb()};
g.k.I2=function(){this.Ek&&(this.SA||(this.SA=new pP(this.G,this.Ek.element),g.M(this,this.SA),g.BN(this.G,this.SA.element,4)),this.SA.show(),this.qb.Bb(),this.G.ub(this.Ek.element))};
g.k.onVideoDataChange=function(a,b){this.yS(b)};
g.k.yS=function(a){var b=this.G.V(),c=2===this.G.getPresentingPlayerType(),d=!c||a.isListed;d=!b.S&&!!a.videoId&&d;"play"!==b.playerStyle?b="https://support.google.com/youtube/?p=report_playback":(b={contact_type:"playbackissue",html5:1,ei:a.eventId,v:a.videoId,p:"movies_playback"},a.u&&(b.fmt=a.u.itag),a.clientPlaybackNonce&&(b.cpn=a.clientPlaybackNonce),a.qa&&(b.partnerid=a.qa),b=g.wi("//support.google.com/googleplay/",b));g.WK(this.jl,d&&a.allowEmbed);g.WK(this.getVideoUrl,d);g.WK(this.ql,d&&!a.isLivePlayback);
this.qA.Wd(b,"href");var e;null==(e=this.lk)||g.WK(e,!a.isLivePlayback&&!c);var f;null==(f=this.Ek)||g.WK(f,!c)};
g.k.Wb=function(a){g.lP.prototype.Wb.call(this,a);this.G.Xa(this.jl.element,a);this.G.Xa(this.getVideoUrl.element,a);this.G.Xa(this.ql.element,a);this.lk&&this.G.Xa(this.lk.element,a);this.Ek&&this.G.Xa(this.Ek.element,a)};g.v(g.tP,g.DN);g.k=g.tP.prototype;g.k.show=function(){g.DN.prototype.show.call(this);this.nx()};
g.k.hide=function(){g.DN.prototype.hide.call(this);1<this.j.length&&g.vP(this)};
g.k.nx=function(){sIa(this);this.rb&&(rIa(this),g.Jl(this.element,this.size))};
g.k.Wi=function(){var a=this.j.pop();uP(this,a,this.j[this.j.length-1],!0)};
g.k.RV=function(a){if(!g.Fx(a))switch(g.Gx(a)){case 27:this.Bb();g.Ex(a);break;case 37:1<this.j.length&&this.Wi();g.Ex(a);break;case 39:g.Ex(a)}};
g.k.focus=function(){this.j.length&&this.j[this.j.length-1].focus()};
g.k.ra=function(){g.DN.prototype.ra.call(this);this.C&&this.C.dispose();this.I&&this.I.dispose()};g.v(g.wP,g.tP);g.k=g.wP.prototype;g.k.TV=function(a){var b=Bx(a);if(!(b&&(uh(b,"a")||uh(b,null,"ytp-no-contextmenu"))||this.rb)){var c;this.qa=(a=null==(c=a.touches)?void 0:c.item(0))?new g.Ig(a.clientX,a.clientY):new g.Ig(0,0);this.ea.start()}};
g.k.xR=function(){this.ea.stop()};
g.k.b3=function(){this.open(this.qa)};
g.k.show=function(){this.D||(this.D=new qP(this.G,this.ya,this,this.Ic),g.M(this,this.D),g.rP(this,this.D));this.D.onLoopChange(this.G.getLoopVideo());g.tP.prototype.show.call(this);this.G.Xa(this.element,!0);this.D.Wb(!0);this.element.tabIndex=-1;this.element.focus()};
g.k.hide=function(){uIa(this);g.tP.prototype.hide.call(this);this.G.Xa(this.element,!1);this.D&&this.D.Wb(!1)};
g.k.O0=function(a){var b=Bx(a);this.rb||b&&(uh(b,"a")||uh(b,null,"ytp-no-contextmenu"))||(g.Ex(a),this.open(Dx(a)))};
g.k.Qc=function(a){if(a){var b=a.getBoundingClientRect();this.open(new g.Ig(b.x,b.y))}g.tP.prototype.Qc.call(this,a)};
g.k.open=function(a){vIa(this);var b=this.G.getVideoData();g.jo(this.element,"ytp-dni",b.C);this.element.style.left="";this.element.style.top="";a.x++;a.y++;g.tP.prototype.Qc.call(this);var c=document.body;b=new pl(0,Infinity,Infinity,0);var d=Zg(c);for(var e=d.j.body,f=d.j.documentElement,h=Dda(d.j);c=Fha(c);)if(!(g.Ac&&0==c.clientWidth||g.gf&&0==c.clientHeight&&c==e)&&c!=e&&c!=f&&"visible"!=Dl(c,"overflow")){var l=g.Hl(c),m=new g.Ig(c.clientLeft,c.clientTop);l.x+=m.x;l.y+=m.y;b.top=Math.max(b.top,
l.y);b.right=Math.min(b.right,l.x+c.clientWidth);b.bottom=Math.min(b.bottom,l.y+c.clientHeight);b.left=Math.max(b.left,l.x)}e=h.scrollLeft;h=h.scrollTop;b.left=Math.max(b.left,e);b.top=Math.max(b.top,h);d=d.j;d=Cda(d.parentWindow||d.defaultView||window);b.right=Math.min(b.right,e+d.width);b.bottom=Math.min(b.bottom,h+d.height);d=0<=b.top&&0<=b.left&&b.bottom>b.top&&b.right>b.left?b:null;b=this.size;a=a.clone();b=b.clone();d&&(h=b,e=5,65==(e&65)&&(a.x<d.left||a.x>=d.right)&&(e&=-2),132==(e&132)&&(a.y<
d.top||a.y>=d.bottom)&&(e&=-5),a.x<d.left&&e&1&&(a.x=d.left),e&16&&(f=a.x,a.x<d.left&&(a.x=d.left),a.x+h.width>d.right&&(h.width=Math.min(d.right-a.x,f+h.width-d.left),h.width=Math.max(h.width,0))),a.x+h.width>d.right&&e&1&&(a.x=Math.max(d.right-h.width,d.left)),a.y<d.top&&e&4&&(a.y=d.top),e&32&&(f=a.y,a.y<d.top&&(a.y=d.top),a.y+h.height>d.bottom&&(h.height=Math.min(d.bottom-a.y,f+h.height-d.top),h.height=Math.max(h.height,0))),a.y+h.height>d.bottom&&e&4&&(a.y=Math.max(d.bottom-h.height,d.top)));
d=new g.wl(0,0,0,0);d.left=a.x;d.top=a.y;d.width=b.width;d.height=b.height;g.Fl(this.element,new g.Ig(d.left,d.top));g.$y(this.B);this.B.T(document,"contextmenu",this.W0);this.B.T(this.G,"fullscreentoggled",this.onFullscreenToggled);this.B.T(this.G,"pageTransition",this.SV)};
g.k.W0=function(a){if(!g.Fx(a)){var b=Bx(a);g.qh(this.element,b)||this.Bb();this.G.V().disableNativeContextMenu&&g.Ex(a)}};
g.k.onFullscreenToggled=function(){this.Bb();vIa(this)};
g.k.SV=function(){this.Bb()};g.v(g.xP,g.W);g.xP.prototype.onClick=function(){var a=this,b,c,d,e;return g.z(function(f){if(1==f.j)return b=a.api.V(),c=a.api.getVideoData(),d=a.api.getPlaylistId(),e=b.getVideoUrl(c.videoId,d,void 0,!0),g.x(f,xIa(a,e),2);f.u&&wIa(a);a.api.ub(a.element);g.na(f)})};
g.xP.prototype.Ja=function(){var a=this.api.V(),b=this.api.getVideoData();this.Oa("icon",{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,N:"ytp-svg-fill",X:{d:"M21.9,8.3H11.3c-0.9,0-1.7,.8-1.7,1.7v12.3h1.7V10h10.6V8.3z M24.6,11.8h-9.7c-1,0-1.8,.8-1.8,1.8v12.3  c0,1,.8,1.8,1.8,1.8h9.7c1,0,1.8-0.8,1.8-1.8V13.5C26.3,12.6,25.5,11.8,24.6,11.8z M24.6,25.9h-9.7V13.5h9.7V25.9z"}}]});this.Oa("title-attr","Copy link");var c=this.api.gb().getPlayerSize().width;this.visible=
!!b.videoId&&c>=this.u&&b.mm&&!(b.C&&a.pfpChazalUi);g.jo(this.element,"ytp-copylink-button-visible",this.visible);g.WK(this,this.visible);zP(this.tooltip);this.api.Xa(this.element,this.visible&&this.Aa)};
g.xP.prototype.Wb=function(a){g.W.prototype.Wb.call(this,a);this.api.Xa(this.element,this.visible&&a)};
g.xP.prototype.ra=function(){g.W.prototype.ra.call(this);g.ho(this.element,"ytp-copylink-button-visible")};g.v(AP,g.W);g.k=AP.prototype;g.k.show=function(){g.W.prototype.show.call(this);g.Yn(this.j)};
g.k.hide=function(){this.u.stop();g.ho(this.element,"ytp-chapter-seek");g.ho(this.element,"ytp-time-seeking");g.W.prototype.hide.call(this)};
g.k.Kw=function(a,b,c,d){this.Lw(a,d)};
g.k.Lw=function(a,b){g.$n(this.j);this.u.start();this.element.setAttribute("data-side",-1===a?"back":"forward");g.ho(this.element,"ytp-chapter-seek");this.Oa("chapterSeekText","");a=g.FJ("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:b.toString()});this.Oa("seekTime",a)};
g.k.mE=function(a,b){g.$n(this.j);this.u.start();switch(a){case -1:a="back";break;case 1:a="forward";break;default:a=""}this.element.setAttribute("data-side",a);g.fo(this.element,"ytp-chapter-seek");this.Oa("chapterSeekText",b);this.Oa("seekTime","")};g.v(BP,g.W);g.k=BP.prototype;g.k.show=function(){g.W.prototype.show.call(this);g.Yn(this.u)};
g.k.hide=function(){this.B.stop();g.ho(this.element,"ytp-chapter-seek");g.ho(this.element,"ytp-time-seeking");g.W.prototype.hide.call(this)};
g.k.Kw=function(a,b,c,d){var e=-1===a?this.D:this.C;e&&this.G.ub(e);g.$n(this.u);this.B.start();this.element.setAttribute("data-side",-1===a?"back":"forward");var f=3*this.G.gb().getPlayerSize().height;e=this.G.gb().getPlayerSize();e=e.width/3-3*e.height;this.j.style.width=f+"px";this.j.style.height=f+"px";1===a?(this.j.style.left="",this.j.style.right=e+"px"):-1===a&&(this.j.style.right="",this.j.style.left=e+"px");var h=2.5*f;f=h/2;var l=this.Da("ytp-doubletap-ripple");l.style.width=h+"px";l.style.height=
h+"px";1===a?(a=this.G.gb().getPlayerSize().width-b+Math.abs(e),l.style.left="",l.style.right=a-f+"px"):-1===a&&(a=Math.abs(e)+b,l.style.right="",l.style.left=a-f+"px");l.style.top="calc((33% + "+Math.round(c)+"px) - "+f+"px)";if(c=this.Da("ytp-doubletap-ripple"))c.classList.remove("ytp-doubletap-ripple"),c.classList.add("ytp-doubletap-ripple");yIa(this,d)};
g.k.Lw=function(a,b){var c=this.G.gb().getPlayerSize();g.$n(this.u);this.B.start();this.element.setAttribute("data-side",-1===a?"back":"forward");g.fo(this.element,"ytp-time-seeking");this.j.style.width="110px";this.j.style.height="110px";1===a?(this.j.style.right="",this.j.style.left=.8*c.width-30+"px"):-1===a&&(this.j.style.right="",this.j.style.left=.1*c.width-15+"px");this.j.style.top=.5*c.height+15+"px";yIa(this,b)};
g.k.mE=function(a,b){g.$n(this.u);this.B.start();switch(a){case -1:a="back";break;case 1:a="forward";break;default:a=""}this.element.setAttribute("data-side",a);this.j.style.width="0";this.j.style.height="0";g.fo(this.element,"ytp-chapter-seek");this.Oa("seekText",b);this.Oa("seekTime","")};g.v(CP,g.W);CP.prototype.onClick=function(){this.G.ub(this.element)};g.v(DP,g.DN);g.k=DP.prototype;g.k.show=function(){g.DN.prototype.show.call(this);this.G.ma("infopaneldetailvisibilitychange",!0);this.G.Xa(this.element,!0);CIa(this,!0)};
g.k.hide=function(){g.DN.prototype.hide.call(this);this.G.ma("infopaneldetailvisibilitychange",!1);this.G.Xa(this.element,!1);CIa(this,!1)};
g.k.getId=function(){return this.C};
g.k.Hi=function(){return this.j.length};
g.k.onVideoDataChange=function(a,b){if(b){var c,d,e,f;this.update({title:(null==(c=b.Xl)?void 0:null==(d=c.title)?void 0:d.content)||"",body:(null==(e=b.Xl)?void 0:null==(f=e.bodyText)?void 0:f.content)||""});var h;a=(null==(h=b.Xl)?void 0:h.trackingParams)||null;this.G.ji(this.element,a);h=g.r(this.j);for(a=h.next();!a.done;a=h.next())a.value.dispose();this.j=[];var l;if(null==(l=b.Xl)?0:l.ctaButtons)for(b=g.r(b.Xl.ctaButtons),l=b.next();!l.done;l=b.next())if(l=g.Zu(l.value,AZa))l=new CP(this.G,
l,this.isMobile),l.isValid&&(this.j.push(l),l.Ca(this.items))}};
g.k.ra=function(){this.hide();g.DN.prototype.ra.call(this)};g.v(FP,g.W);g.k=FP.prototype;g.k.onVideoDataChange=function(a,b){EP(this,b);this.Dd&&FIa(this,this.Dd)};
g.k.Uc=function(a){var b=this.G.getVideoData();this.videoId!==b.videoId&&EP(this,b);FIa(this,a.state);this.Dd=a.state};
g.k.VQ=function(a){(this.C=a)?this.hide():this.show()};
g.k.VV=function(){this.u||this.Qc();this.showControls=!0};
g.k.UV=function(){this.u||this.Bb();this.showControls=!1};
g.k.Qc=function(){this.j&&!this.C&&(this.B.show(),this.G.ma("infopanelpreviewvisibilitychange",!0),this.G.Xa(this.element,!0))};
g.k.Bb=function(){this.j&&!this.C&&(this.B.hide(),this.G.ma("infopanelpreviewvisibilitychange",!1),this.G.Xa(this.element,!1))};
g.k.F4=function(){this.u=!1;this.showControls||this.Bb()};var g1a={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(g1a).reduce(function(a,b){a[g1a[b]]=b;return a},{});
var h1a={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(h1a).reduce(function(a,b){a[h1a[b]]=b;return a},{});
var i1a={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(i1a).reduce(function(a,b){a[i1a[b]]=b;return a},{});var j1a,k1a;j1a=[{option:"#fff",text:"White"},{option:"#ff0",text:"Yellow"},{option:"#0f0",text:"Green"},{option:"#0ff",text:"Cyan"},{option:"#00f",text:"Blue"},{option:"#f0f",text:"Magenta"},{option:"#f00",text:"Red"},{option:"#080808",text:"Black"}];k1a=[{option:0,text:GP(0)},{option:.25,text:GP(.25)},{option:.5,text:GP(.5)},{option:.75,text:GP(.75)},{option:1,text:GP(1)}];
g.KP=[{option:"fontFamily",text:"Font family",options:[{option:1,text:"Monospaced Serif"},{option:2,text:"Proportional Serif"},{option:3,text:"Monospaced Sans-Serif"},{option:4,text:"Proportional Sans-Serif"},{option:5,text:"Casual"},{option:6,text:"Cursive"},{option:7,text:"Small Capitals"}]},{option:"color",text:"Font color",options:j1a},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:GP(.5)},{option:-1,text:GP(.75)},{option:0,text:GP(1)},{option:1,text:GP(1.5)},{option:2,
text:GP(2)},{option:3,text:GP(3)},{option:4,text:GP(4)}]},{option:"background",text:"Background color",options:j1a},{option:"backgroundOpacity",text:"Background opacity",options:k1a},{option:"windowColor",text:"Window color",options:j1a},{option:"windowOpacity",text:"Window opacity",options:k1a},{option:"charEdgeStyle",text:"Character edge style",options:[{option:0,text:"None"},{option:4,text:"Drop Shadow"},{option:1,text:"Raised"},{option:2,text:"Depressed"},{option:3,text:"Outline"}]},{option:"textOpacity",
text:"Font opacity",options:[{option:.25,text:GP(.25)},{option:.5,text:GP(.5)},{option:.75,text:GP(.75)},{option:1,text:GP(1)}]}];g.v(g.JP,g.XD);g.k=g.JP.prototype;
g.k.tP=function(a){var b=!1,c=g.Gx(a),d=Bx(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey,f=!1,h=!1,l=this.api.V();g.Fx(a)?(e=!1,h=!0):l.Tg&&(e=!1);if(9===c)b=!0;else{if(d)switch(c){case 32:case 13:if("BUTTON"===d.tagName||"A"===d.tagName||"INPUT"===d.tagName)b=!0,e=!1;else if(e){var m=d.getAttribute("role");!m||"option"!==m&&"button"!==m&&0!==m.indexOf("menuitem")||(b=!0,d.click(),f=!0)}break;case 37:case 39:case 36:case 35:b="slider"===d.getAttribute("role");break;case 38:case 40:m=d.getAttribute("role"),
d=38===c?d.previousSibling:d.nextSibling,"slider"===m?b=!0:e&&("option"===m?(d&&"option"===d.getAttribute("role")&&d.focus(),f=b=!0):m&&0===m.indexOf("menuitem")&&(d&&d.hasAttribute("role")&&0===d.getAttribute("role").indexOf("menuitem")&&d.focus(),f=b=!0))}if(e&&!f)switch(c){case 38:f=Math.min(this.api.getVolume()+5,100);aP(this.Ic,f,!1);this.api.setVolume(f);h=f=!0;break;case 40:f=Math.max(this.api.getVolume()-5,0);aP(this.Ic,f,!0);this.api.setVolume(f);h=f=!0;break;case 36:this.api.hg()&&(this.api.startSeekCsiAction(),
this.api.seekTo(0),h=f=!0);break;case 35:this.api.hg()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity),h=f=!0)}}b&&IP(this,!0);(b||h)&&this.je.Dn();(f||e&&this.handleGlobalKeyDown(c,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code))&&g.Ex(a);l.C&&(a={keyCode:g.Gx(a),altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:g.Fx(a),fullscreen:this.api.isFullscreen()},this.api.Pa("onKeyPress",a))};
g.k.uP=function(a){this.handleGlobalKeyUp(g.Gx(a),a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code)};
g.k.handleGlobalKeyUp=function(a){var b=!1,c=g.zN(this.api.wb());c&&(c=c.Qq)&&c.rb&&(c.pP(a),b=!0);9===a&&(IP(this,!0),b=!0);return b};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f){var h=!1;e=this.api.V();if(e.Tg)return h;var l=g.zN(this.api.wb());if(l&&(l=l.Qq)&&l.rb)switch(a){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:h=l.oP(a)}e.D||h||(h=f||String.fromCharCode(a).toLowerCase(),this.u+=h,0==="awesome".indexOf(this.u)?(h=!0,7===this.u.length&&pka(this.api.getRootNode(),"ytp-color-party")):(this.u=h,h=0==="awesome".indexOf(this.u)));if(!h){l=this.api.getVideoData();var m,n;f=null==(m=this.Cc)?void 0:null==
(n=m.u)?void 0:n.isEnabled;m=l?l.Li:[];n=AT?d:c;switch(a){case 80:b&&!e.Ia&&($O(this.Ic,iFa(),"Previous"),this.api.previousVideo(),h=!0);break;case 78:b&&!e.Ia&&($O(this.Ic,fL(),"Next"),this.api.nextVideo(),h=!0);break;case 74:this.api.hg()&&(this.api.startSeekCsiAction(),this.j?this.j.Lw(-1,10):$O(this.Ic,{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,N:"ytp-svg-fill",X:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}),
this.api.seekBy(-10*this.api.getPlaybackRate()),h=!0);break;case 76:this.api.hg()&&(this.api.startSeekCsiAction(),this.j?this.j.Lw(1,10):$O(this.Ic,{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,N:"ytp-svg-fill",X:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}),
this.api.seekBy(10*this.api.getPlaybackRate()),h=!0);break;case 37:this.api.hg()&&(this.api.startSeekCsiAction(),n?(n=IIa(m,1E3*this.api.getCurrentTime()),-1!==n&&null!=this.j&&(this.j.mE(-1,m[n].title),this.api.seekTo(m[n].startTime/1E3),h=!0)):(this.j?this.j.Lw(-1,5):$O(this.Ic,{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,N:"ytp-svg-fill",X:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}),
this.api.seekBy(-5*this.api.getPlaybackRate()),h=!0));break;case 39:this.api.hg()&&(this.api.startSeekCsiAction(),n?(n=HIa(m,1E3*this.api.getCurrentTime()),-1!==n&&null!=this.j&&(this.j.mE(1,m[n].title),this.api.seekTo(m[n].startTime/1E3),h=!0)):(null!=this.j?this.j.Lw(1,5):$O(this.Ic,{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,N:"ytp-svg-fill",X:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}),
this.api.seekBy(5*this.api.getPlaybackRate()),h=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),aP(this.Ic,this.api.getVolume(),!1)):(this.api.mute(),aP(this.Ic,0,!0));h=!0;break;case 32:case 75:e.Ia||(f?this.Cc.GH():(h=!g.dK(this.api.Eb()),this.Ic.Pt(h),h?this.api.playVideo():this.api.pauseVideo()),h=!0);break;case 190:b?e.Ld&&(h=this.api.getPlaybackRate(),this.api.setPlaybackRate(h+.25,!0),gIa(this.Ic,!1),h=!0):this.api.hg()&&(LIa(this,1),h=!0);break;case 188:b?e.Ld&&(h=this.api.getPlaybackRate(),
this.api.setPlaybackRate(h-.25,!0),gIa(this.Ic,!0),h=!0):this.api.hg()&&(LIa(this,-1),h=!0);break;case 70:QHa(this.api)&&(this.api.toggleFullscreen().catch(function(){}),h=!0);
break;case 27:f?(this.Cc.NO(),h=!0):this.C()&&(h=!0)}if("3"!==e.controlsType)switch(a){case 67:g.nO(this.api.wb())&&(e=this.api.getOption("captions","track"),this.api.toggleSubtitles(),hIa(this.Ic,!e||e&&!e.displayName),h=!0);break;case 79:LP(this,"textOpacity");break;case 87:LP(this,"windowOpacity");break;case 187:case 61:LP(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:LP(this,"fontSizeIncrement",!0,!0)}var p;b||c||d||(48<=a&&57>=a?p=a-48:96<=a&&105>=a&&(p=a-96));null!=p&&this.api.hg()&&
(this.api.startSeekCsiAction(),a=this.api.getProgressState(),this.api.seekTo(p/10*(a.seekableEnd-a.seekableStart)+a.seekableStart),h=!0);h&&this.je.Dn()}return h};
g.k.ra=function(){g.$n(this.B);g.XD.prototype.ra.call(this)};g.v(MP,g.W);MP.prototype.Ja=function(){var a=this.G.V(),b=a.B,c=g.KF(a)&&g.yN(this.G)&&g.V(this.G.Eb(),128),d=this.G.getPlayerSize();this.visible=this.j.Hg()&&!c&&240<=d.width&&!(this.G.getVideoData().C&&a.pfpChazalUi)&&!b;g.jo(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&zP(this.tooltip);this.G.Xa(this.element,this.visible&&this.Aa)};
MP.prototype.Wb=function(a){g.W.prototype.Wb.call(this,a);this.G.Xa(this.element,this.visible&&a)};
MP.prototype.ra=function(){g.W.prototype.ra.call(this);g.ho(this.element,"ytp-overflow-button-visible")};g.v(NP,g.DN);g.k=NP.prototype;g.k.WV=function(a){a=Bx(a);g.qh(this.element,a)&&(g.qh(this.j,a)||g.qh(this.closeButton,a)||EN(this))};
g.k.Bb=function(){g.DN.prototype.Bb.call(this);this.tooltip.Yj(this.element)};
g.k.show=function(){this.rb&&this.G.ma("OVERFLOW_PANEL_OPENED");g.DN.prototype.show.call(this);this.element.setAttribute("aria-modal","true");MIa(this,!0)};
g.k.hide=function(){g.DN.prototype.hide.call(this);this.element.removeAttribute("aria-modal");MIa(this,!1)};
g.k.onFullscreenToggled=function(a){!a&&this.Ah()&&EN(this)};
g.k.focus=function(){for(var a=g.r(this.actionButtons),b=a.next();!b.done;b=a.next())if(b=b.value,b.rb){b.focus();break}};g.v(PP,g.W);PP.prototype.onClick=function(a){g.EO(a,this.api)&&this.api.playVideoAt(this.index)};g.v(QP,g.DN);g.k=QP.prototype;g.k.show=function(){g.DN.prototype.show.call(this);this.B.T(this.api,"videodatachange",this.PF);this.B.T(this.api,"onPlaylistUpdate",this.PF);this.PF()};
g.k.hide=function(){g.DN.prototype.hide.call(this);g.$y(this.B);this.updatePlaylist(null)};
g.k.PF=function(){this.updatePlaylist(this.api.getPlaylist());this.api.V().B&&(this.Da("ytp-playlist-menu-title-name").removeAttribute("href"),this.C&&(this.yc(this.C),this.C=null))};
g.k.rE=function(){var a=this.playlist,b=a.u;if(b===this.D)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.j[a.index];else{for(var c=g.r(this.j),d=c.next();!d.done;d=c.next())d.value.dispose();c=a.length;this.j=[];for(d=0;d<c;d++){var e=new PP(this.api,a,d);this.j.push(e);e.Ca(this.items)}this.selected=this.j[a.index];this.D=b}this.selected&&this.selected.element.setAttribute("aria-checked","true")};
g.k.Z2=function(a){var b=this.api.getVideoUrl(!0);g.FO(b,this.api,a)};
g.k.updatePlaylist=function(a){if(this.playlist!==a)if(this.playlist&&this.playlist.unsubscribe("shuffle",this.rE,this),this.playlist=a,this.D=null,a){a.subscribe("shuffle",this.rE,this);var b=a.author,c=b?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",d={CURRENT_POSITION:String(a.index+1),PLAYLIST_LENGTH:String(a.length)};b&&(d.AUTHOR=b);this.update({title:a.title,subtitle:g.FJ(c,d),playlisturl:this.api.getVideoUrl(!0)});this.rE()}else this.rb&&this.hide();
else this.playlist&&this.rE()};
g.k.focus=function(){this.selected.focus()};
g.k.ra=function(){this.hide();g.DN.prototype.ra.call(this)};g.v(RP,g.W);
RP.prototype.Ja=function(){var a=g.KF(this.api.V());g.jo(this.element,"ytp-playlist-menu-button-tiny",400>this.api.gb().getPlayerSize().width&&!a);this.playlist&&2!==this.api.getPresentingPlayerType()?(this.update({text:g.FJ("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.length)}),title:g.FJ("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.rb||(this.show(),zP(this.tooltip)),this.visible=!0,this.Wb(!0)):
this.rb&&(this.hide(),this.Wb(!1),zP(this.tooltip))};
RP.prototype.Wb=function(a){g.W.prototype.Wb.call(this,a);this.api.Xa(this.element,this.visible&&a)};
RP.prototype.j=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.Ja,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.Ja,this);this.Ja()};g.v(SP,g.W);g.k=SP.prototype;g.k.YV=function(){this.C?VP(this):TP(this)};
g.k.XV=function(){this.C?(WP(this),this.I=!0):TP(this)};
g.k.b0=function(){this.D=!0;UP(this,1);this.G.ma("promotooltipacceptbuttonclicked",this.acceptButton);WP(this);this.u&&this.G.ub(this.acceptButton)};
g.k.V0=function(){this.D=!0;UP(this,2);WP(this);this.u&&this.G.ub(this.dismissButton)};
g.k.ZV=function(a){if(1===this.G.getPresentingPlayerType()||2===this.G.getPresentingPlayerType()&&this.S){var b=!0,c=g.ch("ytp-ad-overlay-ad-info-dialog-container"),d=Bx(a);if(this.B&&d&&g.qh(this.B,d))this.B=null;else{1===this.G.getPresentingPlayerType()&&d&&Array.from(d.classList).forEach(function(l){l.startsWith("ytp-ad")&&(b=!1)});
var e=QIa(this.tooltipRenderer),f;if("TOOLTIP_DISMISS_TYPE_TAP_ANYWHERE"===(null==(f=this.tooltipRenderer.dismissStrategy)?void 0:f.type))e&&(b=b&&!g.qh(this.element,d));else{var h;"TOOLTIP_DISMISS_TYPE_TAP_INTERNAL"===(null==(h=this.tooltipRenderer.dismissStrategy)?void 0:h.type)&&(b=e?!1:b&&g.qh(this.element,d))}this.j&&this.rb&&!c&&(!d||b&&g.XL(a))&&(this.D=!0,WP(this))}}};
g.k.Cb=function(){this.I||(this.j||(this.j=NIa(this)),VP(this))};
var OIa={"ytp-settings-button":g.kL()};g.v(XP,g.W);XP.prototype.onStateChange=function(a){this.Vc(a.state)};
XP.prototype.Vc=function(a){g.WK(this,g.V(a,2))};
XP.prototype.onClick=function(){this.G.Eb();this.G.playVideo()};g.v(g.YP,g.W);g.k=g.YP.prototype;g.k.onClick=function(){var a=this.api.V(),b=this.api.getVideoData(this.api.getPresentingPlayerType()),c=this.api.getPlaylistId();a=a.getVideoUrl(b.videoId,c,void 0,!0);if(navigator.share)try{var d=navigator.share({title:b.title,url:a});d instanceof Promise&&d.catch(this.wP)}catch(e){e instanceof Error&&this.wP(e)}else this.j.dl(),EN(this.u,this.element,!1);this.api.ub(this.element)};
g.k.Ja=function(){var a=this.api.V(),b=this.api.getVideoData(),c=g.KF(a)&&g.yN(this.api)&&g.V(this.api.Eb(),128);this.Oa("icon",{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,N:"ytp-svg-fill",X:{d:"m 20.20,14.19 0,-4.45 7.79,7.79 -7.79,7.79 0,-4.56 C 16.27,20.69 12.10,21.81 9.34,24.76 8.80,25.13 7.60,27.29 8.12,25.65 9.08,21.32 11.80,17.18 15.98,15.38 c 1.33,-0.60 2.76,-0.98 4.21,-1.19 z"}}]});a=a.disableSharing&&2!==this.api.getPresentingPlayerType()||
!b.showShareButton||b.mm||c||b.C&&a.pfpChazalUi;c=this.api.gb().getPlayerSize().width;this.visible=!!b.videoId&&c>=this.B&&!a;g.jo(this.element,"ytp-share-button-visible",this.visible);g.WK(this,this.visible);zP(this.tooltip);this.api.Xa(this.element,this.visible&&this.Aa)};
g.k.Wb=function(a){g.W.prototype.Wb.call(this,a);this.api.Xa(this.element,this.visible&&a)};
g.k.ra=function(){g.W.prototype.ra.call(this);g.ho(this.element,"ytp-share-button-visible")};
g.k.wP=function(a){"InvalidStateError"!==a.name&&"AbortError"!==a.name&&("NotAllowedError"===a.name?(this.j.dl(),EN(this.u,this.element,!1)):g.oz(a))};g.v(g.ZP,g.DN);g.k=g.ZP.prototype;g.k.aW=function(a){a=Bx(a);g.qh(this.D,a)||g.qh(this.closeButton,a)||EN(this)};
g.k.Bb=function(){g.DN.prototype.Bb.call(this);this.tooltip.Yj(this.element)};
g.k.show=function(){var a=this.rb;g.DN.prototype.show.call(this);this.Ja();a||this.api.Pa("onSharePanelOpened")};
g.k.n_=function(){this.rb&&this.Ja()};
g.k.Ja=function(){var a=this;g.fo(this.element,"ytp-share-panel-loading");g.ho(this.element,"ytp-share-panel-fail");var b=this.api.getVideoData(),c=this.api.getPlaylistId()&&this.C.checked;b.getSharePanelCommand&&uM(this.api.Jm(),b.getSharePanelCommand,{includeListId:c}).then(function(d){a.isDisposed()||(g.ho(a.element,"ytp-share-panel-loading"),SIa(a,d))});
b=this.api.getVideoUrl(!0,!0,!1,!1);g.VF(this.api.V())&&(b=g.wi(b,g.aN({},"emb_share")));this.Oa("link",b);this.Oa("linkText",b);this.Oa("shareLinkWithUrl",g.FJ("Share link $URL",{URL:b}));HO(this.B)};
g.k.onFullscreenToggled=function(a){!a&&this.Ah()&&EN(this)};
g.k.focus=function(){this.B.focus()};
g.k.ra=function(){g.DN.prototype.ra.call(this);RIa(this)};g.v(bQ,g.W);g.k=bQ.prototype;g.k.vJ=function(){};
g.k.wJ=function(){};
g.k.CA=function(){return!0};
g.k.U4=function(){if(this.expanded){this.ya.show();var a=this.I.element.scrollWidth}else a=this.I.element.scrollWidth,this.ya.hide();this.eb=34+a;g.jo(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?34:this.eb)+"px";this.qa.start()};
g.k.yY=function(){this.badge.element.style.width=(this.expanded?this.eb:34)+"px";this.La.start()};
g.k.X5=function(){g.jo(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!0)};
g.k.Jj=function(){this.CA()?this.S.show():this.S.hide();TIa(this)};
g.k.bW=function(){this.enabled=!1;this.Jj()};
g.k.W5=function(){this.Jj()};
g.k.H0=function(a){this.Wa=1===a;this.Jj();g.jo(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!1)};
g.k.Z0=function(){g.jo(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.G.isFullscreen());this.Jj()};g.v(cQ,bQ);g.k=cQ.prototype;g.k.ra=function(){dQ(this);bQ.prototype.ra.call(this)};
g.k.vJ=function(a){a.target!==this.dismissButton.element&&(VIa(this,!1),this.G.Pa("innertubeCommand",this.onClickCommand))};
g.k.wJ=function(){this.B=!0;VIa(this,!0);this.Jj()};
g.k.S1=function(a){this.Ia=a;this.Jj()};
g.k.L1=function(a){var b=this.G.getVideoData();b&&b.videoId===this.videoId&&this.Ba&&(this.Z=a,a||(a=3+this.G.getCurrentTime(),this.qe(a)))};
g.k.onVideoDataChange=function(a,b){if(a=!!b.videoId&&this.videoId!==b.videoId)this.videoId=b.videoId,this.B=!1,this.j=!0,this.Z=this.Ba=this.u=this.J=!1,dQ(this);if(a||!b.videoId)this.D=this.C=!1;a=b.shoppingOverlayRenderer;this.Ia=this.enabled=!1;if(a){this.enabled=!0;if(!this.C){var c,d=null==(c=a.badgeInteractionLogging)?void 0:c.trackingParams;(this.C=!!d)&&this.G.ji(this.badge.element,d||null)}if(!this.D){var e;if(this.D=!(null==(e=a.dismissButton)||!e.trackingParams)){var f;this.G.ji(this.dismissButton.element,
(null==(f=a.dismissButton)?void 0:f.trackingParams)||null)}}this.text=g.xA(a.text);var h;if(c=null==(h=a.dismissButton)?void 0:h.a11yLabel)this.Ya=g.xA(c);this.onClickCommand=a.onClickCommand;this.timing=a.timing;bI(b)?this.Z=this.Ba=!0:this.qe()}UIa(this);aQ(this);this.Jj()};
g.k.CA=function(){return!this.Ia&&this.enabled&&!this.B&&!this.kb.Hg()&&!this.Wa&&!this.Z&&(this.u||this.j)};
g.k.Ff=function(a){(this.u=a)?($P(this),aQ(this,!1)):(dQ(this),this.ea.start());this.Jj()};
g.k.qe=function(a){a=void 0===a?0:a;var b=[],c=this.timing.visible,d=this.timing.expanded;c&&b.push(new g.qA(1E3*(c.startSec+a),1E3*(c.endSec+a),{priority:9,namespace:"shopping_overlay_visible"}));d&&b.push(new g.qA(1E3*(d.startSec+a),1E3*(d.endSec+a),{priority:9,namespace:"shopping_overlay_expanded"}));this.G.qe(b)};g.v(eQ,g.DN);eQ.prototype.show=function(){g.DN.prototype.show.call(this);this.j.start()};
eQ.prototype.hide=function(){g.DN.prototype.hide.call(this);this.j.stop()};
eQ.prototype.Zp=function(a,b){"dataloaded"===a&&((this.Af=b.Af,this.oe=b.oe,isNaN(this.Af)||isNaN(this.oe))?this.B&&(this.G.Gf("intro"),this.G.removeEventListener(g.sA("intro"),this.I),this.G.removeEventListener(g.tA("intro"),this.D),this.G.removeEventListener("onShowControls",this.C),this.hide(),this.B=!1):(this.G.addEventListener(g.sA("intro"),this.I),this.G.addEventListener(g.tA("intro"),this.D),this.G.addEventListener("onShowControls",this.C),a=new g.qA(this.Af,this.oe,{priority:9,namespace:"intro"}),
this.G.qe([a]),this.B=!0))};g.v(fQ,g.W);fQ.prototype.onClick=function(){this.G.Pq()};
fQ.prototype.Ja=function(){var a=!0;g.KF(this.G.V())&&(a=a&&480<=this.G.gb().getPlayerSize().width);g.WK(this,a);this.Oa("icon",this.G.Fg()?{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,X:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",fill:"#fff"}}]}:{F:"svg",
X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,N:"ytp-svg-fill",X:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]})};new xv("yt.autonav");g.v(gQ,g.W);g.k=gQ.prototype;
g.k.Rx=function(){var a;if(a=3!==this.G.getPresentingPlayerType()&&g.CN(this.G)&&400<=this.G.gb().getPlayerSize().width)a=this.bd(),a=this.G.V().K("client_respect_autoplay_switch_button_renderer")?!!a.autoplaySwitchButtonRenderer:!1!==a.gU;if(a)this.j||(this.j=!0,g.WK(this,this.j),this.G.V().K("web_player_autonav_toggle_always_listen")||WIa(this),a=this.bd(),this.cN(a.autonavState),this.G.Xa(this.element,this.j));else if(this.j=!1,g.WK(this,this.j),!this.G.V().K("web_player_autonav_toggle_always_listen")){this.G.V().K("web_player_autonav_toggle_always_listen");a=
g.r(this.u);for(var b=a.next();!b.done;b=a.next())this.yc(b.value)}};
g.k.cN=function(a){YIa(this)?this.isChecked=1!==a:((a=1!==a)||(g.pv.getInstance(),a=g.S("web_autonav_allow_off_by_default")&&!g.qv(0,141)&&g.O("AUTONAV_OFF_BY_DEFAULT")?!1:!g.qv(0,140)),this.isChecked=a);XIa(this)};
g.k.onClick=function(){this.isChecked=!this.isChecked;this.G.qE(this.isChecked?2:1);XIa(this);if(YIa(this)){var a=this.bd().autoplaySwitchButtonRenderer;this.isChecked&&(null==a?0:a.onEnabledCommand)?this.G.Pa("innertubeCommand",a.onEnabledCommand):!this.isChecked&&(null==a?0:a.onDisabledCommand)&&this.G.Pa("innertubeCommand",a.onDisabledCommand)}this.G.ub(this.element)};
g.k.getValue=function(){return this.isChecked};
g.k.setValue=function(a){this.isChecked=a;this.Da("ytp-autonav-toggle-button").setAttribute("aria-checked",String(this.isChecked))};
g.k.bd=function(){var a;this.G.V().K("web_player_autonav_toggle_app_video_data_killswitch")||(a=1);return this.G.getVideoData(a)};g.v(g.iQ,g.W);g.iQ.prototype.ra=function(){this.ctx=null;g.W.prototype.ra.call(this)};g.v(jQ,g.W);jQ.prototype.onClick=function(){this.G.Pa("innertubeCommand",this.j)};
jQ.prototype.J=function(a){a!==this.D&&(this.update({title:a}),this.D=a);a?this.show():this.hide()};
jQ.prototype.I=function(){this.B.disabled=null==this.j;g.jo(this.B,"ytp-chapter-container-disabled",this.B.disabled);this.hc()};g.v(kQ,jQ);kQ.prototype.onClickCommand=function(a){g.Zu(a,QH)&&this.hc()};
kQ.prototype.updateVideoData=function(a,b){var c;this.j=null==(c=b.pU)?void 0:c.command;jQ.prototype.I.call(this)};
kQ.prototype.hc=function(){var a="",b=this.C.j,c=this.G.getLoopRange();c=!this.G.K("web_repeating_chapters")&&c||"clips"===(null==c?void 0:c.type);if(1<b.length&&!c){a=1E3*this.G.getProgressState().current;c=HP(b,a);a=b[c].title||"Chapters";if(c!==this.currentIndex||this.u)this.G.Pa("innertubeCommand",b[c].onActiveCommand),this.currentIndex=c;this.u=!1}else this.u=!0;jQ.prototype.J.call(this,a)};g.v(g.lQ,g.W);g.lQ.prototype.Uc=function(a){g.V(a.state,32)?mQ(this,this.api.Ji()):this.rb&&(g.V(a.state,16)||g.V(a.state,1))||this.j.hide()};
g.lQ.prototype.Yd=function(){var a=this.api.Eb();(g.V(a,32)||g.V(a,16))&&nQ(this)};
g.lQ.prototype.D=function(){this.B=NaN;nQ(this)};
g.lQ.prototype.hide=function(){this.u&&mQ(this,null);g.W.prototype.hide.call(this)};g.v(g.oQ,g.W);g.k=g.oQ.prototype;g.k.onClick=function(){var a=this;if(this.G.V().ob||this.G.V().I){this.G.ub(this.element);try{this.G.toggleFullscreen().catch(function(b){a.kz(b)})}catch(b){this.kz(b)}}else EN(this.message,this.element,!0)};
g.k.kz=function(a){String(a).includes("fullscreen error")?g.pz(a):g.oz(a);this.FJ()};
g.k.FJ=function(){this.disable();this.message.Qc(this.element,!0)};
g.k.No=function(){Vy()===this.G.getRootNode()?this.B.start():(this.B.stop(),this.message&&this.message.hide())};
g.k.OX=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var a=.9*window.screen.width,b=.9*window.screen.height,c=Math.max(window.outerWidth,window.innerWidth),d=Math.max(window.outerHeight,window.innerHeight);if(c>d!==a>b){var e=c;c=d;d=e}a>c&&b>d&&this.FJ()}};
g.k.disable=function(){var a=this;if(!this.message){var b=(null!=vx(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)?"Full screen is unavailable. $BEGIN_LINKLearn More$END_LINK":"Your browser doesn't support full screen. $BEGIN_LINKLearn More$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.DN(this.G,{F:"div",Fa:["ytp-popup","ytp-generic-popup"],X:{role:"alert",tabindex:"0"},W:[b[0],{F:"a",X:{href:"https://support.google.com/youtube/answer/6276924",
target:this.G.V().J},oa:b[2]},b[4]]},100,!0);this.message.hide();g.M(this,this.message);this.message.subscribe("show",function(c){a.u.Iv(a.message,c)});
g.BN(this.G,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.j)();this.j=null}};
g.k.Ja=function(){var a=QHa(this.G),b=this.G.V().I&&250>this.G.getPlayerSize().width;g.WK(this,a&&!b);this.G.Xa(this.element,this.rb)};
g.k.Dk=function(a){if(a){var b={F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"g",N:"ytp-fullscreen-button-corner-2",W:[{F:"path",Qb:!0,N:"ytp-svg-fill",X:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{F:"g",N:"ytp-fullscreen-button-corner-3",W:[{F:"path",Qb:!0,N:"ytp-svg-fill",X:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{F:"g",N:"ytp-fullscreen-button-corner-0",W:[{F:"path",Qb:!0,N:"ytp-svg-fill",X:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{F:"g",
N:"ytp-fullscreen-button-corner-1",W:[{F:"path",Qb:!0,N:"ytp-svg-fill",X:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};a=IO(this.G,"Exit full screen","f");document.activeElement===this.element&&this.G.getRootNode().focus()}else b={F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"g",N:"ytp-fullscreen-button-corner-0",W:[{F:"path",Qb:!0,N:"ytp-svg-fill",X:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{F:"g",N:"ytp-fullscreen-button-corner-1",W:[{F:"path",
Qb:!0,N:"ytp-svg-fill",X:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{F:"g",N:"ytp-fullscreen-button-corner-2",W:[{F:"path",Qb:!0,N:"ytp-svg-fill",X:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{F:"g",N:"ytp-fullscreen-button-corner-3",W:[{F:"path",Qb:!0,N:"ytp-svg-fill",X:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},a=IO(this.G,"Full screen","f");a=this.message?null:a;this.update({title:a,icon:b});zP(this.u.wc())};
g.k.ra=function(){this.message||((0,this.j)(),this.j=null);g.W.prototype.ra.call(this)};g.v(pQ,jQ);pQ.prototype.onClickCommand=function(a){g.Zu(a,B_a)&&this.hc()};
pQ.prototype.updateVideoData=function(){var a,b;this.j=null==(a=$Ia(this))?void 0:null==(b=a.onTap)?void 0:b.innertubeCommand;jQ.prototype.I.call(this)};
pQ.prototype.hc=function(){var a="",b=this.C.S,c,d=null==(c=$Ia(this))?void 0:c.headerTitle;c=d?g.xA(d):"";d=this.G.getLoopRange();d=!this.G.K("web_repeating_chapters")&&d||"clips"===(null==d?void 0:d.type);1<b.length&&!d&&(a=1E3*this.G.getProgressState().current,d=GIa(b,a),a=null!=d?b[d].title:c,null!=d&&d!==this.currentIndex&&(this.G.Pa("innertubeCommand",b[d].onActiveCommand),this.currentIndex=d));jQ.prototype.J.call(this,a)};g.v(qQ,g.W);qQ.prototype.onClick=function(){this.G.Pa("onCollapseMiniplayer");this.G.ub(this.element)};
qQ.prototype.Ja=function(){this.visible=!this.G.isFullscreen();g.WK(this,this.visible);this.G.Xa(this.element,this.visible&&this.Aa)};
qQ.prototype.Wb=function(a){g.W.prototype.Wb.call(this,a);this.G.Xa(this.element,this.visible&&a)};g.v(rQ,g.W);rQ.prototype.onVideoDataChange=function(a){this.Ja("newdata"===a)};
rQ.prototype.Ja=function(a){var b=this.G.getVideoData(),c=b.Ue,d=this.G.Eb();d=(g.dK(d)||g.V(d,4))&&0<c.length;g.WK(this,d);a&&(this.j=!0);if(d){this.j&&g.Yn(this.u);a=null;d="";for(var e=0;e<c.length;e++)if(c[e].id===b.videoId){a=c[e].title;d=g.FJ("Viewing $CAMERA_INDEX of $CAMERA_COUNT",{CAMERA_INDEX:String(e+1),CAMERA_COUNT:String(c.length)})+"\n";break}this.update({text:d+a,preview:b.Mf("default.jpg")});zP(this.tooltip)}else this.u.stop()};
rQ.prototype.B=function(){yP(this.tooltip,this.element,"More cameras available");this.j=!1};g.v(sQ,g.DN);g.k=sQ.prototype;g.k.show=function(){var a=this.rb;g.DN.prototype.show.call(this);a||(this.B.T(this.api,"presentingplayerstatechange",this.Ja),this.B.T(this.api,"videodatachange",this.Ja),this.Ja())};
g.k.hide=function(){this.B&&(g.$y(this.B),g.DN.prototype.hide.call(this))};
g.k.Ja=function(){var a=this,b=this.api.getVideoData(),c=b.Ue,d,e={};for(d=0;d<c.length;e={XE:e.XE},d++){var f=this.j[d];f||(f=new g.W({F:"button",Fa:["ytp-multicam-menu-item","ytp-button"],X:{"aria-checked":"{{selected}}","data-id":"{{videoId}}"},W:[{F:"div",N:"ytp-multicam-menu-item-title",oa:"{{cameraName}}"}]}),e.XE=d,f.Ra("click",function(n){return function(){var p=n.XE,q=a.api.getVideoData(),u=a.api,w=q.Ue[p];p=g.pN(u.app,1).getVideoData();q=u.getCurrentTime();w.id===p.videoId?(w=g.pN(u.app,
1),g.pN(u.app)!==w&&(u.app.Qo(),p.isLivePlayback||u.seekTo(q))):u.app.loadVideoByPlayerVars({videoId:w.id,title:p.title,start:p.isLivePlayback?null:q,raw_player_response:{multicamera:{playerLegacyMulticameraRenderer:{metadataList:p.zN}}}},4)}}(e)),f.Ca(this.items),this.j[d]=f);
var h=c[d],l=h.id;if(l!==f.element.getAttribute("data-id")){var m=h.thumbnail_url;!m&&l&&(m=gG(this.api.V(),l,"default.jpg"));f.element.style.backgroundImage=m?"url("+m+")":""}f.update({cameraName:h.title,videoId:l,selected:l===b.videoId?!0:null})}for(;d<this.j.length;)this.j.pop().dispose();d=this.api.Eb();b=c.length||!b.isLoaded();g.dK(d)||g.V(d,4)||b||!this.Ah()||EN(this)};
g.k.focus=function(){for(var a=this.api.getVideoData(),b=a.Ue,c=0;c<b.length;c++)if(b[c].id===a.videoId){this.j[c].focus();break}};
g.k.ra=function(){g.Ze(this.j);g.DN.prototype.ra.call(this)};g.v(tQ,g.J);tQ.prototype.j=function(){var a=(0,g.T)()-this.startTime;a=a<this.duration?a/this.duration:1;this.u(g.xo(l1a,a));1>a&&this.delay.start()};
var l1a=new g.wo(0,0,.4,0,.2,1,1,1),eJa=/[0-9.-]+|[^0-9.-]+/g;g.v(g.vQ,g.W);g.k=g.vQ.prototype;g.k.dN=function(a){this.visible=300<=a.width;g.WK(this,this.visible);this.G.Xa(this.element,this.visible&&this.Aa)};
g.k.D1=function(){this.G.V().Ba?this.G.isMuted()?this.G.unMute():this.G.mute():EN(this.message,this.element,!0);this.G.ub(this.element)};
g.k.onVolumeChange=function(a){this.setVolume(a.volume,a.muted)};
g.k.setVolume=function(a,b){var c=this,d=b?0:a/100,e=this.G.V();a=0===d?1:50<a?1:0;if(this.D!==a){var f=this.ea;isNaN(f)?hJa(this,a):uQ(this.ya,function(l){hJa(c,f+(c.D-f)*l)},250);
this.D=a}d=0===d?1:0;if(this.C!==d){var h=this.S;isNaN(h)?iJa(this,d):uQ(this.Z,function(l){iJa(c,h+(c.C-h)*l)},250);
this.C=d}e.Ba&&(e=IO(this.G,"Mute","m"),d=IO(this.G,"Unmute","m"),this.Oa("title",b?d:e),zP(this.tooltip))};
g.k.Wb=function(a){g.W.prototype.Wb.call(this,a);this.G.Xa(this.element,this.visible&&a)};
var fJa=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",24.77," C",21.89,",",23.85," ",24,",",21.17," ",24,",",18," C",24,",",14.83," ",21.89,",",12.15," ",19,",",11.29," L",19,",",11.29," Z"],gJa=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",26.77," C",23.01,",",25.86," ",26,",",22.28," ",26,",",18," C",26,",",13.72," ",
23.01,",",10.14," ",19,",",9.23," L",19,",",11.29," Z"];g.v(wQ,g.W);wQ.prototype.onClick=function(){this.G.togglePictureInPicture()};g.v(g.xQ,g.W);g.xQ.prototype.onStateChange=function(a){this.Vc(a.state);a=g.V(a.state,2);oG(this.G.V())&&(!this.u&&!a||this.u&&a?(this.hide(),this.G.Xa(this.element,!1)):(this.show(),this.G.Xa(this.element,!0)))};
g.xQ.prototype.Vc=function(a){var b=g.gI(this.G.getVideoData()),c=!1;g.dK(a)?a=b?4:2:g.V(a,2)?(a=3,c=b):a=1;this.element.disabled=c;if(this.j!==a){b=null;switch(a){case 2:b=IO(this.G,"Pause","k");break;case 3:b="Replay";break;case 1:b=IO(this.G,"Play","k");break;case 4:b="Stop live playback"}3===a?this.update({title:b,icon:jJa(a)}):(this.update({title:b}),(b=jJa(a))&&this.j&&3!==this.j?dJa(this.transition,this.element,b):this.Oa("icon",b));zP(this.tooltip);this.j=a}};
g.xQ.prototype.onVideoDataChange=function(){g.jo(this.element,"ytp-play-button-playlist",g.yN(this.G))};
g.xQ.prototype.gx=function(a){this.G.ub(this.element);if(g.dK(this.G.Eb()))this.G.pauseVideo();else{if(this.G.Df()&&this.G.Eb().isCued()){var b={},c;!this.G.K("web_player_csi_ctt_killswitch")&&(null==(c=this.G.getVideoData())?0:c.I)&&(b.cttAuthInfo={token:this.G.getVideoData().I,videoId:this.G.getVideoData().videoId});YA("direct_playback",b)}this.G.Gi().timerName="direct_playback";this.G.playVideo()}!this.G.V().K("miniplayer_disable_play_button_click_focus_killswitch")&&this.G.Df()&&a&&"click"===
a.type&&this.element.blur()};g.v(g.zQ,g.W);g.k=g.zQ.prototype;g.k.onVideoDataChange=function(){kJa(this);this.C&&(this.yc(this.C),this.C=null);this.videoData=this.G.getVideoData(1);if(this.playlist=this.G.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.C=this.T(this.G,"progresssync",this.cW);this.B=lJa(this);yQ(this);this.QF(this.G.gb().getPlayerSize())};
g.k.QF=function(a){a=void 0===a?this.G.gb().getPlayerSize():a;var b,c="clips"===(null==(b=this.G.getLoopRange())?void 0:b.type);a=(g.yN(this.G)||this.j&&g.CN(this.G)||mJa(this))&&!c&&(this.j||400<=a.width);g.WK(this,a);this.G.Xa(this.element,a)};
g.k.onClick=function(a){this.G.ub(this.element);var b=!0;this.I?b=g.EO(a,this.G):g.Ex(a);b&&(this.j&&5===this.G.getPresentingPlayerType()?this.G.ma("ytoprerollinternstitialnext"):this.j?this.G.nextVideo(!0):this.B?this.G.seekTo(0):this.G.previousVideo(!0))};
g.k.cW=function(){var a=lJa(this);a!==this.B&&(this.B=a,yQ(this))};
g.k.ra=function(){this.u&&(this.u(),this.u=null);kJa(this);g.W.prototype.ra.call(this)};g.v(AQ,g.W);g.k=AQ.prototype;g.k.eW=function(a){this.SF(a.pageX);this.RF(a.pageX+a.deltaX);BQ(this)};
g.k.SF=function(a){this.S=a};
g.k.RF=function(a){if(!isNaN(this.S)&&0<this.thumbnails.length&&(this.J=a-this.S,0<this.thumbnails.length&&0!==this.J))if(this.u=this.I+this.J,a=qJa(this,this.u),this.u<=this.C/2&&this.u>=pJa(this)){this.api.seekTo(a,!1);g.zl(this.B,"transform","translateX("+this.u+"px)");var b=g.WL(a),c=g.FJ("Seek to $PROGRESS",{PROGRESS:g.WL(a,!0)});this.update({ariamin:0,ariamax:Math.floor(this.api.getDuration()),arianow:Math.floor(a),arianowtext:c,seekTime:b})}else this.u=this.I};
g.k.dW=function(){var a=300>(0,g.T)()-this.ya;if(5>Math.abs(this.J)&&!a){this.ya=(0,g.T)();a=this.S+this.J;var b=this.C/2-a;this.SF(a);this.RF(a+b);BQ(this);this.api.ub(this.B)}BQ(this)};
g.k.Bw=function(){CQ(this,this.api.getCurrentTime())};
g.k.play=function(a){this.api.seekTo(qJa(this,this.u));this.api.playVideo();a&&this.api.ub(this.playButton)};
g.k.enable=function(){this.isEnabled||(this.isEnabled=!0,this.Ba=this.api.getCurrentTime(),g.jo(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.qa=this.T(this.element,"wheel",this.eW),this.Xa(this.isEnabled))};
g.k.disable=function(){this.isEnabled=!1;this.hide();g.jo(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.qa&&this.yc(this.qa);this.Xa(this.isEnabled)};
g.k.reset=function(){this.disable();this.D=[];this.ea=!1};
g.k.Xa=function(a){this.api.Xa(this.element,a);this.api.Xa(this.B,a);this.api.Xa(this.dismissButton,a);this.api.Xa(this.playButton,a)};
g.k.ra=function(){for(;this.j.length;){var a=void 0;null==(a=this.j.pop())||a.dispose()}g.W.prototype.ra.call(this)};
g.v(nJa,g.W);g.v(DQ,g.W);g.v(rJa,g.W);g.v(EQ,g.W);uJa.prototype.update=function(a,b,c,d){this.width=b;this.u=c;this.C=d;this.j=b-c-d;this.position=g.Eg(a,c,c+this.j);this.B=this.position-c;this.fraction=this.B/this.j};g.v(IQ,g.W);g.v(g.KQ,g.XK);g.k=g.KQ.prototype;
g.k.pT=function(){var a=!1,b=this.api.getVideoData();if(!b)return a;this.api.Gf("timedMarkerCueRange");LQ(this);for(var c=g.r(b.Kd),d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0,f=null==(e=this.Sc[d])?void 0:e.markers;if(f){a=g.r(f);for(e=a.next();!e.done;e=a.next()){f=e.value;e=new IQ;var h=void 0;e.title=(null==(h=f.title)?void 0:h.simpleText)||"";e.timeRangeStartMillis=Number(f.startMillis);e.j=Number(f.durationMillis);var l=h=void 0;e.onActiveCommand=null!=(l=null==(h=f.onActive)?void 0:
h.innertubeCommand)?l:void 0;yJa(this,e)}MQ(this,this.S);a=this.S;e=this.Te;f=[];h=null;for(l=0;l<a.length;l++){var m=a[l].timeRangeStartMillis;if(!isNaN(m)&&a[l].onActiveCommand){var n=void 0,p=null!=(n=a[l].j)?n:1E4;h&&h.end>m&&(h.end=m);m=JIa(m,m+p);f.push(m);h=m;e[m.id]=a[l].onActiveCommand}}this.api.qe(f);this.kf=this.Sc[d];a=!0}}b.KT=this.S;g.jo(this.element,"ytp-timed-markers-enabled",a);return a};
g.k.Cb=function(){g.NQ(this);RQ(this);MQ(this,this.S);var a;null==(a=this.u)||CQ(a,this.api.getCurrentTime())};
g.k.onClickCommand=function(a){if(a=g.Zu(a,QH)){var b=a.key;a.isVisible&&b&&OQ(this,b)}};
g.k.Y2=function(a){this.api.Pa("innertubeCommand",this.Te[a.id])};
g.k.hc=function(){RQ(this);var a=this.api.getCurrentTime();(a<this.clipStart||a>this.clipEnd)&&this.jE()};
g.k.gW=function(a){if(!g.Fx(a)){var b=!1;switch(g.Gx(a)){case 36:this.api.seekTo(0);b=!0;break;case 35:this.api.seekTo(Infinity);b=!0;break;case 34:this.api.seekBy(-60);b=!0;break;case 33:this.api.seekBy(60);b=!0;break;case 38:this.api.seekBy(5);b=!0;break;case 40:this.api.seekBy(-5),b=!0}b&&g.Ex(a)}};
g.k.Zp=function(a,b){this.updateVideoData(b,"newdata"===a)};
g.k.nZ=function(){this.Zp("newdata",this.api.getVideoData())};
g.k.updateVideoData=function(a,b){b=void 0===b?!1:b;var c=!!a&&a.isValid();c&&(xI(a)||UQ(this)?this.xd=!1:this.xd=a.allowLiveDvr,g.jo(this.api.getRootNode(),"ytp-enable-live-buffer",!(null==a||!xI(a))));KJa(this,this.api.hg());if(b){if(c){b=a.clipEnd;this.clipStart=a.clipStart;this.clipEnd=b;XQ(this);for(SQ(this,this.qa,this.Lb);0<this.I.length;)this.I.pop().dispose();this.heatMarkersDecorations=[];this.lc={};var d;null==(d=this.u)||d.reset();bR(this)}else this.jE();g.cS(this.tooltip)}if(a){b=a.watchNextResponse;
var e;d=!this.api.K("web_repeating_chapters")&&this.xb||"clips"===(null==(e=this.xb)?void 0:e.type);if(e=!a.isLivePlayback&&b)e=this.api.getVideoData(),b=e.ML,e=null!=e.multiMarkersPlayerBarRenderer||null!=b&&0<b.length||0<e.vu.length;if(e&&!d){e=this.api.getVideoData();b=e.multiMarkersPlayerBarRenderer;d=!1;if(null==b?0:b.markersMap){d=this.api.getVideoData();var f;d.fu=(null==(f=b.visibleOnLoad)?void 0:f.key)||d.fu;f=g.r(b.markersMap);for(b=f.next();!b.done;b=f.next())b=b.value,b.key&&b.value&&
(this.lc[b.key]=b.value,b.value.onChapterRepeat&&(d.sU=b.value.onChapterRepeat));null!=d.fu&&OQ(this,d.fu);d=!0}if(this.api.V().K("web_key_moments_markers")&&0<e.vu.length){f=g.RH.getState().entities;b=g.r(e.vu);for(c=b.next();!c.done;c=b.next()){c=c.value;var h=void 0,l=null==(h=f.macroMarkersListEntity?f.macroMarkersListEntity[c]||null:null)?void 0:h.markersList;h=void 0;"MARKER_TYPE_TIMESTAMPS"===(null==(h=l)?void 0:h.markerType)&&(this.Sc[c]=l)}d=this.pT()||d}!d&&(f=e.ML)&&(xJa(this,f),e.Li=this.j,
wJa(this));CJa(this,null);a.vN&&0===this.I.length&&(a=a.vN,e=a.key,a.isVisible&&e&&OQ(this,e))}else vJa(this),LQ(this)}RQ(this)};
g.k.fW=function(a){this.ea&&!g.V(a.state,32)&&3!==this.api.getPresentingPlayerType()&&this.ea.cancel();var b;(null==(b=this.u)?0:b.isEnabled)&&g.V(a.state,8)&&this.api.pauseVideo()};
g.k.eN=function(a){var b=!!this.xb!==!!a,c=this.xb;this.xb=a;CJa(this,c);this.api.K("web_repeating_chapters")&&"clips"!==(null==a?void 0:a.type)&&a||(a?(this.Oa("clipstarticon",eFa()),this.Oa("clipendicon",eFa()),this.Oa("clipstarttitle",null),this.Oa("clipendtitle",null)):(this.Oa("clipstarticon",$Ea()),this.Oa("clipendicon",ZEa()),this.Oa("clipstarttitle","Watch full video"),this.Oa("clipendtitle","Watch full video")),b&&(this.updateVideoData(this.api.getVideoData(),!0),g.NQ(this)),XQ(this));SQ(this,
this.qa,this.Lb)};
g.k.V1=function(a,b,c){var d=g.Hl(this.element),e=QQ(this).j,f=c?c.getAttribute("data-tooltip"):void 0,h=c?c.getAttribute("data-position"):void 0,l=c?c.getAttribute("data-offset-y"):void 0;l=l?Number(l):0;h&&(a=cM(this.B,Number(c.getAttribute("data-position")),0)*e+g.Hl(this.Cc).x);this.Gb.x=a-d.x;this.Gb.y=b-d.y;a=QQ(this);c=WQ(this,a);b=0;var m;if(null==(m=this.api.getVideoData())?0:xI(m))(m=this.api.getProgressState().seekableEnd)&&c>m&&(c=m,b=-this.Ba,m=cM(this.B,m)*QQ(this).j+b,a.position=m),
b=this.B.u;UQ(this)&&(b=this.B.u);m=f||g.WL(this.xd?c-this.B.j:c-b);b=a.position+this.yg;c-=this.api.Cd();var n;if(null==(n=this.u)||!n.isEnabled)if(this.api.Ji()){if(1<this.j.length){n=VQ(this,this.Gb.x,!0);if(!this.xb)for(d=0;d<this.j.length;)g.jo(this.j[d].j,"ytp-exp-chapter-hover-effect",d===n),d++;if(1<this.I.length)for(d=0;d<this.j.length;d++)g.jo(this.I[d].element,"ytp-heatmap-hover",d===n)}if(0<this.S.length)for(n=this.Gb.x,d=g.r(this.S),e=d.next();!e.done;e=d.next())e=e.value,h=PQ(this,e.timeRangeStartMillis/
(1E3*this.B.j),QQ(this)),g.jo(e.element,"ytp-timed-marker-hover",h<=n&&h+6>=n);d=this.tooltip.scale;l=(isNaN(l)?0:l)-45*d;this.api.K("web_key_moments_markers")?this.kf?(n=GIa(this.S,1E3*c),n=null!=n?this.S[n].title:""):(n=HP(this.j,1E3*c),n=this.j[n].title):(n=HP(this.j,1E3*c),n=this.j[n].title);n||(l+=16*d);.6===this.tooltip.scale&&(l=n?110:126);d=HP(this.j,1E3*c);this.kb=DJa(this,c,d)?d:DJa(this,c,d+1)?d+1:-1;g.jo(this.api.getRootNode(),"ytp-progress-bar-snap",-1!==this.kb&&1<this.j.length);d=!1;
e=g.r(this.heatMarkersDecorations);for(h=e.next();!h.done;h=e.next()){h=h.value;var p=1E3*c;p>=h.visibleTimeRangeStartMillis&&p<=h.visibleTimeRangeEndMillis&&(n=h.label,m=g.WL(h.decorationTimeMillis/1E3),d=!0)}this.oe!==d&&(this.oe=d,this.api.Xa(this.Qd,this.oe));g.jo(this.api.getRootNode(),"ytp-progress-bar-decoration",d);d=320*this.tooltip.scale;e=n.length*(this.C?8.55:5.7);e=e<=d?e:d;h=e<160*this.tooltip.scale;d=3;!h&&e/2>a.position&&(d=1);!h&&e/2>this.D-a.position&&(d=2);this.api.V().I&&(l-=10);
this.I.length&&this.I[0].isValid&&(l-=14*(this.C?2:1),this.La||(this.La=!0,this.api.Xa(this.ya,this.La)));var q;if(JQ(this)&&((null==(q=this.u)?0:q.isEnabled)||0<this.Z)){var u;l-=(null==(u=this.u)?0:u.isEnabled)?YQ(this):this.Z}q=void 0;JQ(this)&&(q="Pull up for precise seeking",this.api.Xa(this.Af,!0));fKa(this.tooltip,b,c,m,!!f,l,n,d,q)}else fKa(this.tooltip,b,c,m,!!f,l);g.fo(this.api.getRootNode(),"ytp-progress-bar-hover");BJa(this)};
g.k.U1=function(){g.cS(this.tooltip);g.ho(this.api.getRootNode(),"ytp-progress-bar-hover");this.La&&(this.La=!1,this.api.Xa(this.ya,this.La))};
g.k.T1=function(a,b){JQ(this)&&this.u&&(this.u.ea?CQ(this.u,this.api.getCurrentTime()):oJa(this.u),this.u.show(),g.jo(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.u.isEnabled));this.J&&(this.J.dispose(),this.J=null);this.pe=b;1<this.j.length&&-1!==this.kb?this.api.seekTo(this.j[this.kb].startTime/1E3,!1):this.api.seekTo(WQ(this,QQ(this)),!1);g.fo(this.element,"ytp-drag");(this.Ue=g.dK(this.api.Eb()))&&this.api.pauseVideo()};
g.k.W1=function(){var a=this;if(JQ(this)&&this.u){var b=YQ(this);this.Z>=.5*b?(this.u.enable(),CQ(this.u,this.api.getCurrentTime()),JJa(this,b)):bR(this)}else if(this.Hd=0,g.ho(this.element,"ytp-pull-ui"),g.ho(this.element,"ytp-pulling"),this.J&&(this.J.dispose(),this.J=null),0<this.Z){var c=(0,g.T)();this.J=new g.Vn(function(){var f=a.Z,h=QQ(a).position,l=1-Math.pow(1-((0,g.T)()-c)/200,3);h+=l*(a.qa*a.D-h);if(0>l||1<l)l=1;EJa(a,(1-l)*f,h,a.qa);1>l&&a.J.start();a.Qa&&(a.Qa=!1,a.api.Xa(a.ob,a.Qa))});
this.J.start()}if(g.V(this.api.Eb(),32)||3===this.api.getPresentingPlayerType()){var d;if(null==(d=this.u)?0:d.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(1<this.j.length&&-1!==this.kb)this.api.seekTo(this.j[this.kb].startTime/1E3);else{b=WQ(this,QQ(this));this.api.seekTo(b);d=g.r(this.heatMarkersDecorations);for(var e=d.next();!e.done;e=d.next())e=e.value,1E3*b>=e.visibleTimeRangeStartMillis&&1E3*b<=e.visibleTimeRangeEndMillis&&this.api.ub(this.Qd)}g.ho(this.element,"ytp-drag");
this.Ue&&!g.V(this.api.Eb(),2)&&this.api.playVideo()}}};
g.k.X1=function(a,b){var c=this,d=!1,e=!1;a=QQ(this);1===this.j.length&&!JQ(this)&&3600<=aM(this.B)&&(EJa(this,this.pe-b-10,a.position,a.fraction),e=!0,d=this.Z>.1*(this.C?60:40),a=QQ(this));g.jo(this.element,"ytp-pull-ui",e);d&&g.fo(this.element,"ytp-pulling");d=0;a.u&&0>=a.position?d=-1:a.C&&a.position>=a.width&&(d=1);if(this.Hd!==d&&(this.Hd=d,this.J&&(this.J.dispose(),this.J=null),d)){var f=(0,g.T)();this.J=new g.Vn(function(){var l=c.D*(c.eb-1);c.Ba=g.Eg(c.Ba+c.Hd*((0,g.T)()-f)*.3,0,l);TQ(c);
c.api.seekTo(WQ(c,QQ(c)),!1);0<c.Ba&&c.Ba<l&&c.J.start()});
this.J.start()}a=WQ(this,a);this.api.seekTo(a,!1);var h;JQ(this)&&(null==(h=this.u)?0:h.ea)&&(h=YQ(this),b=this.pe-b-10,this.u.isEnabled&&(b=h+b,CQ(this.u,a)),this.Z=g.Eg(b,0,h),JJa(this,this.Z))};
g.k.RQ=function(){this.xb||(this.Oa("clipstarticon",YEa()),this.Oa("clipendicon",YEa()),g.fo(this.element,"ytp-clip-hover"))};
g.k.QQ=function(){this.xb||(this.Oa("clipstarticon",$Ea()),this.Oa("clipendicon",ZEa()),g.ho(this.element,"ytp-clip-hover"))};
g.k.jE=function(){this.clipStart=0;this.clipEnd=Infinity;XQ(this);SQ(this,this.qa,this.Lb)};
g.k.rT=function(a){a=g.r(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.visible){var c=b.getId();if(!this.Wa[c]){var d=g.hh("DIV");b.tooltip&&d.setAttribute("data-tooltip",b.tooltip);this.Wa[c]=b;this.Lc[c]=d;g.co(d,b.style);FJa(this,c);this.api.V().K("disable_ad_markers_on_content_progress_bar")||this.j[0].B.appendChild(d)}}else IJa(this,b)};
g.k.Y3=function(a){a=g.r(a);for(var b=a.next();!b.done;b=a.next())IJa(this,b.value)};
g.k.NO=function(a){if(this.u){var b=this.u;a=null!=a;b.api.seekTo(b.Ba);b.api.playVideo();a&&b.api.ub(b.dismissButton);bR(this)}};
g.k.GH=function(a){this.u&&(this.u.play(null!=a),bR(this))};
g.k.ra=function(){KJa(this,!1);g.XK.prototype.ra.call(this)};g.v(cR,g.W);cR.prototype.isActive=function(){return!!this.G.getOption("remote","casting")};
cR.prototype.Ja=function(){var a=!1;this.G.getOptions().includes("remote")&&(a=1<this.G.getOption("remote","receivers").length);g.WK(this,a&&400<=this.G.gb().getPlayerSize().width);this.G.Xa(this.element,this.rb);var b=1;a&&this.isActive()&&(b=2);if(this.j!==b){this.j=b;switch(b){case 1:this.Oa("icon",{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,X:{d:"M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z",
fill:"#fff"}}]});break;case 2:this.Oa("icon",g.XEa())}g.jo(this.element,"ytp-remote-button-active",this.isActive())}};
cR.prototype.u=function(){this.G.getOption("remote","quickCast")?this.G.setOption("remote","quickCast",!0):this.qb.KE(this.element);this.G.ub(this.element)};g.v(dR,g.W);dR.prototype.j=function(a){g.WK(this,this.u&&400<=a.width)};
dR.prototype.B=function(){var a=this.qb;a.rb?a.Bb():a.Qc(this.element)};g.v(eR,g.GN);eR.prototype.onClick=function(){this.qb.Bb()};g.v(gR,eR);gR.prototype.onClick=function(){eR.prototype.onClick.call(this);this.G.Pa("onCollapseMiniplayer");this.G.ub(this.element)};
gR.prototype.Ja=function(){var a=!this.G.isFullscreen();fR(this,a);this.G.Xa(this.element,this.j)};g.v(hR,eR);hR.prototype.isActive=function(){return!!this.G.getOption("remote","casting")};
hR.prototype.Ja=function(){var a=!1;this.G.getOptions().includes("remote")&&(a=1<this.G.getOption("remote","receivers").length);fR(this,a&&!this.G.isFullscreen());this.G.Xa(this.element,this.j);var b=1;a&&this.isActive()&&(b=2);if(this.B!==b)switch(this.B=b,b){case 1:this.Oa("icon",{F:"svg",X:{height:"24",version:"1.1",viewBox:"6 6 24 24",width:"24"},W:[{F:"path",Qb:!0,X:{d:"M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z",
fill:"#fff"}}]});break;case 2:this.Oa("icon",{F:"svg",X:{height:"24",version:"1.1",viewBox:"6 6 24 24",width:"24"},W:[{F:"path",Qb:!0,X:{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"}}]})}};
hR.prototype.onClick=function(){eR.prototype.onClick.call(this);this.G.getOption("remote","quickCast")?this.G.setOption("remote","quickCast",!0):this.C.KE(this.element);this.G.ub(this.element)};g.v(iR,eR);iR.prototype.onClick=function(){eR.prototype.onClick.call(this);rY(this.G.app);this.G.ub(this.element)};
iR.prototype.Ja=function(){var a=this.G.yz()&&!this.G.isFullscreen()&&3!==this.G.getPresentingPlayerType();fR(this,a);this.j&&(a=this.G.isWidescreen(),this.isWidescreen!==a&&(IN(this,a?{F:"svg",X:{height:"24",version:"1.1",viewBox:"6 6 24 24",width:"24"},W:[{F:"path",Qb:!0,X:{d:"m 26,13 0,10 -16,0 0,-10 z m -14,2 12,0 0,6 -12,0 0,-6 z",fill:"#fff","fill-rule":"evenodd"}}]}:{F:"svg",X:{height:"24",version:"1.1",viewBox:"6 6 24 24",width:"24"},W:[{F:"path",Qb:!0,X:{d:"m 28,11 0,14 -20,0 0,-14 z m -18,2 16,0 0,10 -16,0 0,-10 z",
fill:"#fff","fill-rule":"evenodd"}}]}),this.isWidescreen=a,this.u.Oa("title",a?"Default view":"Theater mode")));this.G.Xa(this.element,this.j)};g.v(jR,g.tP);jR.prototype.Qc=function(a){0<this.td.Hi()&&g.tP.prototype.Qc.call(this,a)};
jR.prototype.Fc=function(a){this.td.Fc(a);a=this.Uo;a.u=0<this.td.Hi();a.j(a.G.gb().getPlayerSize())};
jR.prototype.Hf=function(a){this.rb&&1>=this.td.Hi()&&this.hide();this.td.Hf(a);a=this.Uo;a.u=0<this.td.Hi();a.j(a.G.gb().getPlayerSize())};
jR.prototype.KE=function(){};g.v(kR,g.W);kR.prototype.j=function(a){var b=400;this.G.V().I&&(b=200);a=this.u&&a.width>=b;g.WK(this,a);this.G.Xa(this.element,a)};
kR.prototype.B=function(){if(this.qb.rb)this.qb.Bb();else{var a=g.nO(this.G.wb());a&&!a.loaded&&(a.Bg("tracklist",{includeAsr:!0}).length||a.load());this.G.ub(this.element);this.qb.Qc(this.element)}};
kR.prototype.updateBadge=function(){var a=this.G.isHdr(),b=this.G.getPresentingPlayerType(),c=2!==b&&3!==b,d=g.AN(this.G),e=c&&!!g.zN(this.G.wb());b=e&&1===d.displayMode;d=e&&2===d.displayMode;c=(e=b||d)||!c?null:this.G.getPlaybackQuality();g.jo(this.element,"ytp-hdr-quality-badge",a);g.jo(this.element,"ytp-hd-quality-badge",!a&&("hd1080"===c||"hd1440"===c));g.jo(this.element,"ytp-4k-quality-badge",!a&&"hd2160"===c);g.jo(this.element,"ytp-5k-quality-badge",!a&&"hd2880"===c);g.jo(this.element,"ytp-8k-quality-badge",
!a&&"highres"===c);g.jo(this.element,"ytp-3d-badge-grey",!a&&e&&b);g.jo(this.element,"ytp-3d-badge",!a&&e&&d)};g.v(mR,NN);mR.prototype.isLoaded=function(){var a=g.wO(this.G.wb());return void 0!==a&&a.loaded};
mR.prototype.Ja=function(){void 0!==g.wO(this.G.wb())&&3!==this.G.getPresentingPlayerType()?this.j||(this.qb.Fc(this),this.j=!0):this.j&&(this.qb.Hf(this),this.j=!1);this.setValue(this.isLoaded())};
mR.prototype.onSelect=function(a){this.isLoaded();a?this.G.loadModule("annotations_module"):this.G.unloadModule("annotations_module");this.G.ma("annotationvisibility",a)};
mR.prototype.ra=function(){this.j&&this.qb.Hf(this);NN.prototype.ra.call(this)};g.v(g.nR,g.GN);g.k=g.nR.prototype;g.k.open=function(){g.rP(this.qb,this.u)};
g.k.Sj=function(a){MJa(this);this.options[a].element.setAttribute("aria-checked","true");this.Wd(this.Wk(a));this.B=a};
g.k.KG=function(a,b,c){var d=this;b=new g.GN({F:"div",Fa:["ytp-menuitem"],X:{tabindex:"0",role:"menuitemradio","aria-checked":c?"true":void 0},W:[{F:"div",Fa:["ytp-menuitem-label"],oa:"{{label}}"}]},b,this.Wk(a,!0));b.Ra("click",function(){d.Pg(a)});
return b};
g.k.enable=function(a){this.C?a||(this.C=!1,this.Iu(!1)):a&&(this.C=!0,this.Iu(!0))};
g.k.Iu=function(a){a?this.qb.Fc(this):this.qb.Hf(this)};
g.k.Pg=function(a){this.ma("select",a)};
g.k.Wk=function(a){return a.toString()};
g.k.hW=function(a){g.Fx(a)||39!==g.Gx(a)||(this.open(),g.Ex(a))};
g.k.ra=function(){this.C&&this.qb.Hf(this);g.GN.prototype.ra.call(this);for(var a=g.r(Object.keys(this.options)),b=a.next();!b.done;b=a.next())this.options[b.value].dispose()};g.v(pR,g.nR);pR.prototype.Ja=function(){var a=this.G.getAvailableAudioTracks();1<a.length?(g.oR(this,g.Ok(a,this.D)),this.tracks=g.rc(a,this.D,this),this.j.Wd(a.length?" ("+a.length+")":""),this.ma("size-change"),this.Sj(this.D(this.G.getAudioTrack())),this.enable(!0)):this.enable(!1)};
pR.prototype.Pg=function(a){g.nR.prototype.Pg.call(this,a);this.G.setAudioTrack(this.tracks[a]);this.qb.Wi()};
pR.prototype.D=function(a){return a.toString()};g.v(qR,NN);
qR.prototype.u=function(){var a=this.G.getPresentingPlayerType();if(2!==a&&3!==a&&g.CN(this.G))this.j||(this.qb.Fc(this),this.j=!0,this.B.push(this.T(this.G,"videodatachange",this.u)),this.B.push(this.T(this.G,"videoplayerreset",this.u)),this.B.push(this.T(this.G,"onPlaylistUpdate",this.u)),this.B.push(this.T(this.G,"autonavchange",this.C)),a=this.G.getVideoData(),this.C(a.autonavState),this.G.Xa(this.element,this.j));else if(this.j){this.qb.Hf(this);this.j=!1;a=g.r(this.B);for(var b=a.next();!b.done;b=a.next())this.yc(b.value)}};
qR.prototype.C=function(a){this.setValue(1!==a)};
qR.prototype.onSelect=function(a){this.G.qE(a?2:1);this.j&&(this.G.Xa(this.element,this.j),this.G.ub(this.element))};
qR.prototype.ra=function(){this.j&&this.qb.Hf(this);NN.prototype.ra.call(this)};g.v(rR,g.W);rR.prototype.onClick=function(){this.qb.Bb()};
rR.prototype.Mg=function(a){this.Oa("label",a);this.Uo.Oa("title",a)};g.v(sR,rR);sR.prototype.onClick=function(){rR.prototype.onClick.call(this);this.G.Pa("onCollapseMiniplayer");this.G.ub(this.element)};
sR.prototype.Ja=function(){var a=!this.G.isFullscreen();g.WK(this,a);this.G.Xa(this.element,a)};g.v(tR,g.nR);g.k=tR.prototype;
g.k.Sx=function(){var a=this.G.getPresentingPlayerType();if(2!==a&&3!==a){this.J=this.G.Pp();a=this.G.getAvailableQualityLevels();if(this.j){var b=this.G;var c=b.state.j.getAvailableQualityData.apply(b.state.j,g.t([]));b=[];c=g.r(c);for(var d=c.next();!d.done;d=c.next())d=d.value,this.D[d.quality]=d,d.quality&&b.push(d.quality);"auto"===a[a.length-1]&&b.push("auto");a=b}g.YGa(this.G)&&g.ZGa(this.G)&&a.unshift("missing-qualities");$Ga(this.G)&&a.unshift("inline-survey");g.oR(this,a);b=this.G.getVideoData().cotn?
!0:!1;c=!g.jG(this.G.V())||!(void 0===b?0:b);b=this.u;c=void 0===c?!1:c;c=void 0===c?!1:c;b.CP&&(b=b.Da("ytp-panel-footer"),g.jo(b,"ytp-panel-hide-footer",c));if(a.length){this.fN();this.enable(!0);return}}this.enable(!1)};
g.k.fN=function(){var a=this.G.getPreferredQuality();this.options[a]&&(this.I=this.G.getPlaybackQuality(),this.Sj(a),"auto"===a&&this.Wd(this.Wk(a)))};
g.k.Pg=function(a){if("missing-qualities"!==a){g.nR.prototype.Pg.call(this,a);if(this.j){var b=this.D[a];if(b=(b=b&&b.paygatedQualityDetails)&&b.endpoint){this.G.Pa("innertubeCommand",b);return}}this.G.setPlaybackQuality(a);this.qb.Bb();this.Sx()}};
g.k.open=function(){g.nR.prototype.open.call(this);this.G.ub(this.element)};
g.k.KG=function(a,b,c){var d=this;if("inline-survey"!==a){var e=this.D[a];e=(e=e&&e.paygatedQualityDetails)&&e.veType;b=g.nR.prototype.KG.call(this,a,b,c);e&&this.G.vb(b.element,this,e,!0);return b}a=[{F:"span",oa:"Looks good?"}];c={};e=g.r([!0,!1]);for(var f=e.next();!f.done;c={eB:c.eB},f=e.next())c.eB=f.value,f=new g.W({F:"span",N:"ytp-menuitem-inline-survey-response",W:[c.eB?g.dL():bFa()],X:{tabindex:"0",role:"button"}}),f.Ra("click",function(h){return function(){var l=h.eB,m=g.pN(d.G.app);m&&
(m.va("iqsr",{tu:l}),m.getVideoData().mN=!0);d.qb.Bb();d.Sx()}}(c)),a.push(f);
return new g.GN({F:"div",N:"ytp-menuitem",X:{"aria-disabled":"true"},W:[{F:"div",Fa:["ytp-menuitem-label"],W:a}]},b)};
g.k.Wk=function(a,b){b=void 0===b?!1:b;if("missing-qualities"===a)return{F:"a",X:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.G.V().J},oa:"Missing options?"};if("inline-survey"===a)return"";var c=this.j?[PJa(this,a,b)]:[OJa(this,a)];var d=this.G.getPreferredQuality();b||"auto"!==d||"auto"!==a||(c.push(" "),this.j?c.push(PJa(this,this.I,b,["ytp-menu-label-secondary"])):c.push(OJa(this,this.I,["ytp-menu-label-secondary"])));return{F:"div",W:c}};g.v(uR,rR);uR.prototype.isActive=function(){return!!this.G.getOption("remote","casting")};
uR.prototype.Ja=function(){var a=!1;this.G.getOptions().includes("remote")&&(a=1<this.G.getOption("remote","receivers").length);g.WK(this,a);this.G.Xa(this.element,this.rb);var b=1;a&&this.isActive()&&(b=2);if(this.j!==b)switch(this.j=b,b){case 1:this.Oa("icon",WEa());break;case 2:this.Oa("icon",{F:"svg",X:{"enable-background":"new 0 0 24 24",height:"48",viewBox:"0 0 24 24",width:"48"},W:[{F:"path",X:{d:"M22,20l-8-0.04L14,19l7,.04V5H3L2.99,8L2,8l0.02-4H22V20z M2,17.32V20h2.73C4.73,18.52,3.51,17.32,2,17.32z M2,13.75v1.79 c2.51,0,4.55,2,4.55,4.46h1.82C8.36,16.55,5.52,13.75,2,13.75z M2,10.18v1.79c4.52,0,8.18,3.6,8.18,8.03H12 C12,14.57,7.52,10.18,2,10.18z M5,7v1.39c4.21,1.09,7.52,4.39,8.61,8.61H19V7H5z",
fill:"white"}}]})}};
uR.prototype.onClick=function(){rR.prototype.onClick.call(this);this.G.getOption("remote","quickCast")?this.G.setOption("remote","quickCast",!0):this.qb.KE(this.element);this.G.ub(this.element)};g.v(vR,g.XK);vR.prototype.addButton=function(a){this.element.appendChild(a.element)};
vR.prototype.removeButton=function(a){this.element.removeChild(a.element)};g.v(wR,rR);wR.prototype.onClick=function(){rR.prototype.onClick.call(this);rY(this.G.app);this.G.ub(this.element)};
wR.prototype.Ja=function(){g.WK(this,this.G.yz()&&!this.G.isFullscreen()&&3!==this.G.getPresentingPlayerType());if(this.rb){var a=this.G.isWidescreen();this.isWidescreen!==a&&(this.Uo.Oa("icon",a?{F:"svg",X:{height:"48px",version:"1.1",viewBox:"0 0 48 48",width:"48px",x:"0px",y:"0px"},W:[{F:"path",X:{d:"M45,10v28H3V10H45 M46,9H2v30h44V9L46,9z M5,12v18h30V12H5z M10.21,26.71l-1.41-1.41L13.09,21l-4.29-4.29l1.41-1.41  L15.91,21L10.21,26.71z M31.21,25.29l-1.41,1.41L24.09,21l5.71-5.71l1.41,1.41L26.91,21L31.21,25.29z",
fill:"white"}}]}:lFa()),this.Mg(IO(this.G,a?"Default view":"Theater mode","t")),this.isWidescreen=a)}this.G.Xa(this.element,this.rb)};g.v(xR,g.W);g.k=xR.prototype;g.k.init=function(){this.Nt(this.j);this.Oa("minvalue",this.minimumValue);this.Oa("maxvalue",this.maximumValue)};
g.k.kW=function(a){if(!g.Fx(a)){switch(g.Gx(a)){case 37:case 40:var b=-this.I;break;case 39:case 38:b=this.I;break;default:return}this.Nt(this.j+b);g.Ex(a)}};
g.k.iW=function(a){var b=this.j;b+=0>(a.deltaX||-a.deltaY)?-this.D:this.D;this.Nt(b);g.Ex(a)};
g.k.jW=function(a){a=(a-g.Hl(this.u).x)/this.J*this.range+this.minimumValue;this.Nt(a)};
g.k.Nt=function(a,b){b=void 0===b?"":b;a=g.Eg(a,this.minimumValue,this.maximumValue);""===b&&(b=a.toString());this.Oa("valuenow",a);this.Oa("valuetext",b);this.S.style.left=(a-this.minimumValue)/this.range*(this.J-this.ea)+"px";this.j=a};
g.k.focus=function(){this.qa.focus()};g.v(zR,xR);zR.prototype.Z=function(){this.G.setPlaybackRate(this.j,!0)};
zR.prototype.Nt=function(a){xR.prototype.Nt.call(this,a,AR(this,a).toString());this.B&&(yR(this),this.ya())};
zR.prototype.Ba=function(){var a=this.G.getPlaybackRate();AR(this,this.j)!==a&&(this.Nt(a),yR(this))};g.v(BR,g.XK);BR.prototype.focus=function(){this.j.focus()};g.v(QJa,kP);g.v(CR,g.nR);g.k=CR.prototype;g.k.Wk=function(a){return"1"===a?"Normal":a.toLocaleString()};
g.k.Ja=function(){var a=this.G.getPresentingPlayerType();this.enable(2!==a&&3!==a);TJa(this)};
g.k.Iu=function(a){g.nR.prototype.Iu.call(this,a);a?(this.J=this.T(this.G,"onPlaybackRateChange",this.onPlaybackRateChange),TJa(this),RJa(this,this.G.getPlaybackRate())):(this.yc(this.J),this.J=null)};
g.k.onPlaybackRateChange=function(a){var b=this.G.getPlaybackRate();this.I.includes(b)||SJa(this,b);RJa(this,a)};
g.k.Pg=function(a){g.nR.prototype.Pg.call(this,a);a===this.j?this.G.setPlaybackRate(this.D,!0):this.G.setPlaybackRate(Number(a),!0);this.qb.Wi()};g.v(ER,g.nR);g.k=ER.prototype;g.k.Sj=function(a){g.nR.prototype.Sj.call(this,a)};
g.k.getKey=function(a){return a.option.toString()};
g.k.getOption=function(a){return this.settings[a]};
g.k.Wk=function(a){return this.getOption(a).text||""};
g.k.Pg=function(a){g.nR.prototype.Pg.call(this,a);this.ma("settingChange",this.setting,this.settings[a].option)};g.v(FR,g.lP);FR.prototype.Ng=function(a){for(var b=g.r(Object.keys(a)),c=b.next();!c.done;c=b.next()){var d=c.value;if(c=this.rq[d]){var e=a[d].toString();d=!!a[d+"Override"];c.options[e]&&(c.Sj(e),c.D.element.setAttribute("aria-checked",String(!d)),c.j.element.setAttribute("aria-checked",String(d)))}}};
FR.prototype.Ui=function(a,b){this.ma("settingChange",a,b)};g.v(GR,g.nR);GR.prototype.getKey=function(a){return a.languageCode};
GR.prototype.Wk=function(a){return this.languages[a].languageName||""};
GR.prototype.Pg=function(a){this.ma("select",a);this.G.ub(this.element);g.vP(this.qb)};g.v(HR,g.nR);g.k=HR.prototype;g.k.getKey=function(a){return g.vf(a)?"__off__":a.displayName};
g.k.Wk=function(a){return"__off__"===a?"Off":"__translate__"===a?"Auto-translate":"__contribute__"===a?"Add subtitles/CC":("__off__"===a?{}:this.tracks[a]).displayName};
g.k.Pg=function(a){"__translate__"===a?this.j.open():"__contribute__"===a?(this.G.pauseVideo(),this.G.isFullscreen()&&this.G.toggleFullscreen(),a=g.$M(this.G.V(),this.G.getVideoData()),g.iM(a)):(this.G.ub(this.element),this.G.setOption("captions","track","__off__"===a?{}:this.tracks[a]),g.nR.prototype.Pg.call(this,a),this.qb.Wi())};
g.k.Ja=function(){var a=this.G.getOptions();a=a&&-1!==a.indexOf("captions");var b=this.G.getVideoData();b=b&&b.TB;var c,d=!(null==(c=this.G.getVideoData())||!g.uI(c));c={};if(a||b){if(a){var e=this.G.getOption("captions","track");c=this.G.getOption("captions","tracklist",{includeAsr:!0});var f=d?[]:this.G.getOption("captions","translationLanguages");this.tracks=g.rc(c,this.getKey,this);d=g.Ok(c,this.getKey);if(f.length&&!g.vf(e)){var h=e.translationLanguage;if(h&&h.languageName){var l=h.languageName;
h=f.findIndex(function(m){return m.languageName===l});
Vaa(f,h)}VJa(this.j,f);d.push("__translate__")}f=this.getKey(e)}else this.tracks={},d=[],f="__off__";d.unshift("__off__");this.tracks.__off__={};b&&d.unshift("__contribute__");this.tracks[f]||(this.tracks[f]=e,d.push(f));g.oR(this,d);this.Sj(f);e&&e.translationLanguage?this.j.Sj(this.j.getKey(e.translationLanguage)):MJa(this.j);a&&this.D.Ng(this.G.getSubtitlesUserSettings());this.J.Wd(c&&c.length?" ("+c.length+")":"");this.ma("size-change");this.G.Xa(this.element,!0);this.enable(!0)}else this.enable(!1)};
g.k.lW=function(a){var b=this.G.getOption("captions","track");b=g.Gf(b);b.translationLanguage=this.j.languages[a];this.G.setOption("captions","track",b)};
g.k.Ui=function(a,b){if("reset"===a)this.G.resetSubtitlesUserSettings();else{var c={};c[a]=b;this.G.updateSubtitlesUserSettings(c)}WJa(this,!0);this.I.start();this.D.Ng(this.G.getSubtitlesUserSettings())};
g.k.H2=function(a){a||g.$n(this.I)};
g.k.ra=function(){g.$n(this.I);g.nR.prototype.ra.call(this)};g.v(IR,g.tP);g.k=IR.prototype;g.k.initialize=function(){if(!this.isInitialized){this.isInitialized=!0;var a=new tR(this.G,this);g.M(this,a);a=new HR(this.G,this);g.M(this,a);this.G.V().B||(a=new mR(this.G,this),g.M(this,a));this.G.V().Ld&&(a=new CR(this.G,this),g.M(this,a));this.G.V().xd&&!this.G.V().K("web_player_move_autonav_toggle")&&(a=new qR(this.G,this),g.M(this,a));a=new pR(this.G,this);g.M(this,a);this.G.ma("settingsMenuInitialized");lR(this.settingsButton,this.td.Hi())}};
g.k.Fc=function(a){this.initialize();this.td.Fc(a);lR(this.settingsButton,this.td.Hi())};
g.k.Hf=function(a){this.rb&&1>=this.td.Hi()&&this.hide();this.td.Hf(a);lR(this.settingsButton,this.td.Hi())};
g.k.Qc=function(a){this.initialize();0<this.td.Hi()&&g.tP.prototype.Qc.call(this,a)};
g.k.show=function(){g.tP.prototype.show.call(this);g.fo(this.G.getRootNode(),"ytp-settings-shown")};
g.k.hide=function(){g.tP.prototype.hide.call(this);g.ho(this.G.getRootNode(),"ytp-settings-shown")};
g.k.Ff=function(a){this.G.Xa(this.element,a);this.G.ma("settingsMenuVisibilityChanged",a)};
g.k.KE=function(a){if(this.Ah())this.Bb();else{this.initialize();a:{var b=g.r(this.td.items);for(var c=b.next();!c.done;c=b.next())if(c=c.value,1===c.priority){b=c;break a}b=null}b&&(b.open(),this.Qc(a));this.Qc(a)}};g.v(JR,g.W);JR.prototype.onClick=function(){rY(this.G.app);this.G.ub(this.element)};
JR.prototype.Ja=function(){g.WK(this,this.G.yz()&&!this.G.isFullscreen()&&3!==this.G.getPresentingPlayerType());if(this.rb){var a=this.G.isWidescreen();if(this.isWidescreen!==a){var b=a?{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,X:{d:"m 26,13 0,10 -16,0 0,-10 z m -14,2 12,0 0,6 -12,0 0,-6 z",fill:"#fff","fill-rule":"evenodd"}}]}:{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,X:{d:"m 28,11 0,14 -20,0 0,-14 z m -18,2 16,0 0,10 -16,0 0,-10 z",
fill:"#fff","fill-rule":"evenodd"}}]};null==this.isWidescreen?this.Oa("icon",b):dJa(this.transition,this.element,b);this.isWidescreen=a;b=IO(this.G,"Default view","t");var c=IO(this.G,"Theater mode","t");this.Oa("title",a?b:c);zP(this.tooltip)}}this.G.Xa(this.element,this.rb)};g.v(g.KR,g.W);g.KR.prototype.onClick=function(){if(null!=g.nO(this.G.wb())&&(this.G.toggleSubtitles(),this.G.ub(this.element),!this.isEnabled())){var a=!1,b=g.qv(g.pv.getInstance(),65);g.nG(this.G.V())&&null!=b&&(a=!b);a&&this.G.V().K("web_player_nitrate_promo_tooltip")&&this.G.ma("showpromotooltip",this.element)}};
g.KR.prototype.j=function(a){var b,c;null==(b=g.rN(this.G))||null==(c=b.Lm())||c.Qc(a)};
g.KR.prototype.isEnabled=function(){return!!this.G.getOption("captions","track").displayName};
g.KR.prototype.Ja=function(){var a=null!=g.nO(this.G.wb()),b=300;this.G.V().I&&(b=480);var c=this.G.V();if(c.K("web_player_unavailable_subtitles_button_killswitch")||c.D)this.Oa("title",IO(this.G,"Subtitles/closed captions","c")),c=a;else{if(a){var d;null==(d=this.Da("ytp-subtitles-button-icon"))||d.setAttribute("fill-opacity","1");this.Oa("title",IO(this.G,"Subtitles/closed captions","c"))}else{var e;null==(e=this.Da("ytp-subtitles-button-icon"))||e.setAttribute("fill-opacity","0.3");this.Oa("title",
"Subtitles/closed captions unavailable")}c=!0}zP(this.tooltip);c=c&&this.G.gb().getPlayerSize().width>=b;g.WK(this,c);this.G.Xa(this.element,c);a&&this.Oa("pressed",this.isEnabled())};g.v(g.MR,g.W);g.k=g.MR.prototype;
g.k.hc=function(){var a=this.api.gb().getPlayerSize().width,b=this.J;this.api.V().I&&(b=400);b=a>=b&&(!OR(this)||!g.V(this.api.Eb(),64));g.WK(this,b);g.jo(this.element,"ytp-time-display-allow-autohide",b&&400>a);a=this.api.getProgressState();if(b){b=this.api.getPresentingPlayerType();var c=this.api.V().K("halftime_ux_killswitch")?a.current:this.api.getCurrentTime(b,!1);this.u&&(c-=a.airingStart);NR(this)&&(c-=this.xb.startTimeMs/1E3);c=g.WL(c);this.B!==c&&(this.Oa("currenttime",c),this.B=c);b=NR(this)?
g.WL((this.xb.endTimeMs-this.xb.startTimeMs)/1E3):g.WL(this.api.V().K("halftime_ux_killswitch")?a.duration:this.api.getDuration(b,!1));this.C!==b&&(this.Oa("duration",b),this.C=b)}a=a.isAtLiveHead;!OR(this)||this.I===a&&this.D===this.isPremiere||(this.I=a,this.D=this.isPremiere,this.hc(),b=this.liveBadge.element,b.disabled=a,this.liveBadge.Wd(this.isPremiere?"Premiere":"Live"),a?this.j&&(this.j(),this.j=null,b.removeAttribute("title")):(b.title="Skip ahead to live broadcast.",this.j=g.dP(this.tooltip,
this.liveBadge.element)));a=this.api.getLoopRange();b=this.xb!==a;this.xb=a;b&&LR(this)};
g.k.onLoopRangeChange=function(a){var b=this.xb!==a;this.xb=a;b&&(this.hc(),LR(this))};
g.k.r3=function(){this.api.setLoopRange(null)};
g.k.onVideoDataChange=function(a,b,c){this.updateVideoData((this.api.V().K("enable_topsoil_wta_for_halftime")||this.api.V().K("enable_topsoil_wta_for_halftime_live_infra"))&&2===c?this.api.getVideoData(1):b);this.hc();LR(this)};
g.k.updateVideoData=function(a){this.isLiveVideo=a.isLivePlayback&&!a.Gb;this.u=xI(a);this.isPremiere=a.isPremiere;g.jo(this.element,"ytp-live",OR(this))};
g.k.onClick=function(a){a.target===this.liveBadge.element&&(this.api.seekTo(Infinity),this.api.playVideo())};
g.k.ra=function(){this.j&&this.j();g.W.prototype.ra.call(this)};g.v(RR,g.W);g.k=RR.prototype;g.k.No=function(){var a=this.j.Wf();this.C!==a&&(this.C=a,QR(this,this.api.getVolume(),this.api.isMuted()))};
g.k.gN=function(a){g.WK(this,350<=a.width)};
g.k.oW=function(a){if(!g.Fx(a)){var b=g.Gx(a),c=null;37===b?c=this.volume-5:39===b?c=this.volume+5:36===b?c=0:35===b&&(c=100);null!==c&&(c=g.Eg(c,0,100),0===c?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(c)),g.Ex(a))}};
g.k.mW=function(a){var b=a.deltaX||-a.deltaY;a.deltaMode?this.api.setVolume(this.volume+(0>b?-10:10)):this.api.setVolume(this.volume+g.Eg(b/10,-10,10));g.Ex(a)};
g.k.M2=function(){PR(this,this.u,!0,this.B,this.j.hk());this.Z=this.volume;this.api.isMuted()&&this.api.unMute()};
g.k.nW=function(a){var b=this.C?78:52,c=this.C?18:12;a-=g.Hl(this.S).x;this.api.setVolume(100*g.Eg((a-c/2)/(b-c),0,1))};
g.k.L2=function(){PR(this,this.u,!1,this.B,this.j.hk());0===this.volume&&(this.api.mute(),this.api.setVolume(this.Z))};
g.k.onVolumeChange=function(a){QR(this,a.volume,a.muted)};
g.k.lO=function(){PR(this,this.u,this.isDragging,this.B,this.j.hk())};
g.k.ra=function(){g.W.prototype.ra.call(this);g.ho(this.J,"ytp-volume-slider-active")};g.v(g.SR,g.W);g.SR.prototype.onVideoDataChange=function(){var a=this.api.getVideoData(1).C,b=this.api.V();this.visible=!!this.api.getVideoData().videoId&&!(a&&b.pfpChazalUi);g.WK(this,this.visible);this.api.Xa(this.element,this.visible&&this.Aa);this.visible&&(a=this.api.getVideoUrl(!0,!1,!1,!0),this.Oa("url",a));b.B&&(this.j&&(this.yc(this.j),this.j=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.fo(this.element,"no-link"))};
g.SR.prototype.onClick=function(a){var b=this.api.V(),c=this.api.getVideoUrl(!g.XL(a),!1,!0,!0);if(g.KF(b)||g.VF(b)){var d={};b.Aa&&g.KF(b)&&g.bN(d,b.loaderUrl);c=g.wi(c,g.aN(d,"emb_logo"))}g.FO(c,this.api,a);this.api.ub(this.element)};
g.SR.prototype.Cb=function(){var a={F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},W:[{F:"path",Qb:!0,N:"ytp-svg-fill",X:{d:"M 45.09 10 L 45.09 25.82 L 47.16 25.82 L 47.41 24.76 L 47.47 24.76 C 47.66 25.14 47.94 25.44 48.33 25.66 C 48.72 25.88 49.16 25.99 49.63 25.99 C 50.48 25.99 51.1 25.60 51.5 24.82 C 51.9 24.04 52.09 22.82 52.09 21.16 L 52.09 19.40 C 52.12 18.13 52.05 17.15 51.90 16.44 C 51.75 15.74 51.50 15.23 51.16 14.91 C 50.82 14.59 50.34 14.44 49.75 14.44 C 49.29 14.44 48.87 14.57 48.47 14.83 C 48.27 14.96 48.09 15.11 47.93 15.29 C 47.78 15.46 47.64 15.65 47.53 15.86 L 47.51 15.86 L 47.51 10 L 45.09 10 z M 8.10 10.56 L 10.96 20.86 L 10.96 25.82 L 13.42 25.82 L 13.42 20.86 L 16.32 10.56 L 13.83 10.56 L 12.78 15.25 C 12.49 16.62 12.31 17.59 12.23 18.17 L 12.16 18.17 C 12.04 17.35 11.84 16.38 11.59 15.23 L 10.59 10.56 L 8.10 10.56 z M 30.10 10.56 L 30.10 12.58 L 32.59 12.58 L 32.59 25.82 L 35.06 25.82 L 35.06 12.58 L 37.55 12.58 L 37.55 10.56 L 30.10 10.56 z M 19.21 14.46 C 18.37 14.46 17.69 14.63 17.17 14.96 C 16.65 15.29 16.27 15.82 16.03 16.55 C 15.79 17.28 15.67 18.23 15.67 19.43 L 15.67 21.06 C 15.67 22.24 15.79 23.19 16 23.91 C 16.21 24.62 16.57 25.15 17.07 25.49 C 17.58 25.83 18.27 26 19.15 26 C 20.02 26 20.69 25.83 21.19 25.5 C 21.69 25.17 22.06 24.63 22.28 23.91 C 22.51 23.19 22.63 22.25 22.63 21.06 L 22.63 19.43 C 22.63 18.23 22.50 17.28 22.27 16.56 C 22.04 15.84 21.68 15.31 21.18 14.97 C 20.68 14.63 20.03 14.46 19.21 14.46 z M 56.64 14.47 C 55.39 14.47 54.51 14.84 53.99 15.61 C 53.48 16.38 53.22 17.60 53.22 19.27 L 53.22 21.23 C 53.22 22.85 53.47 24.05 53.97 24.83 C 54.34 25.40 54.92 25.77 55.71 25.91 C 55.97 25.96 56.26 25.99 56.57 25.99 C 57.60 25.99 58.40 25.74 58.96 25.23 C 59.53 24.72 59.81 23.94 59.81 22.91 C 59.81 22.74 59.79 22.61 59.78 22.51 L 57.63 22.39 C 57.62 23.06 57.54 23.54 57.40 23.83 C 57.26 24.12 57.01 24.27 56.63 24.27 C 56.35 24.27 56.13 24.18 56.00 24.02 C 55.87 23.86 55.79 23.61 55.75 23.25 C 55.71 22.89 55.68 22.36 55.68 21.64 L 55.68 21.08 L 59.86 21.08 L 59.86 19.16 C 59.86 17.99 59.77 17.08 59.58 16.41 C 59.39 15.75 59.07 15.25 58.61 14.93 C 58.15 14.62 57.50 14.47 56.64 14.47 z M 23.92 14.67 L 23.92 23.00 C 23.92 24.03 24.11 24.79 24.46 25.27 C 24.82 25.76 25.35 26.00 26.09 26.00 C 27.16 26.00 27.97 25.49 28.5 24.46 L 28.55 24.46 L 28.76 25.82 L 30.73 25.82 L 30.73 14.67 L 28.23 14.67 L 28.23 23.52 C 28.13 23.73 27.97 23.90 27.77 24.03 C 27.57 24.16 27.37 24.24 27.15 24.24 C 26.89 24.24 26.70 24.12 26.59 23.91 C 26.48 23.70 26.43 23.35 26.43 22.85 L 26.43 14.67 L 23.92 14.67 z M 36.80 14.67 L 36.80 23.00 C 36.80 24.03 36.98 24.79 37.33 25.27 C 37.60 25.64 37.97 25.87 38.45 25.96 C 38.61 25.99 38.78 26.00 38.97 26.00 C 40.04 26.00 40.83 25.49 41.36 24.46 L 41.41 24.46 L 41.64 25.82 L 43.59 25.82 L 43.59 14.67 L 41.09 14.67 L 41.09 23.52 C 40.99 23.73 40.85 23.90 40.65 24.03 C 40.45 24.16 40.23 24.24 40.01 24.24 C 39.75 24.24 39.58 24.12 39.47 23.91 C 39.36 23.70 39.31 23.35 39.31 22.85 L 39.31 14.67 L 36.80 14.67 z M 56.61 16.15 C 56.88 16.15 57.08 16.23 57.21 16.38 C 57.33 16.53 57.42 16.79 57.47 17.16 C 57.52 17.53 57.53 18.06 57.53 18.78 L 57.53 19.58 L 55.69 19.58 L 55.69 18.78 C 55.69 18.05 55.71 17.52 55.75 17.16 C 55.79 16.81 55.87 16.55 56.00 16.39 C 56.13 16.23 56.32 16.15 56.61 16.15 z M 19.15 16.19 C 19.50 16.19 19.75 16.38 19.89 16.75 C 20.03 17.12 20.09 17.7 20.09 18.5 L 20.09 21.97 C 20.09 22.79 20.03 23.39 19.89 23.75 C 19.75 24.11 19.51 24.29 19.15 24.30 C 18.80 24.30 18.54 24.11 18.41 23.75 C 18.28 23.39 18.22 22.79 18.22 21.97 L 18.22 18.5 C 18.22 17.7 18.28 17.12 18.42 16.75 C 18.56 16.38 18.81 16.19 19.15 16.19 z M 48.63 16.22 C 48.88 16.22 49.08 16.31 49.22 16.51 C 49.36 16.71 49.45 17.05 49.50 17.52 C 49.55 17.99 49.58 18.68 49.58 19.55 L 49.58 21 L 49.59 21 C 49.59 21.81 49.57 22.45 49.5 22.91 C 49.43 23.37 49.32 23.70 49.16 23.89 C 49.00 24.08 48.78 24.17 48.51 24.17 C 48.30 24.17 48.11 24.12 47.94 24.02 C 47.76 23.92 47.62 23.78 47.51 23.58 L 47.51 17.25 C 47.59 16.95 47.75 16.70 47.96 16.50 C 48.17 16.31 48.39 16.22 48.63 16.22 z "}}]};
if(g.VF(this.api.V())){var b=this.Da("ytp-youtube-music-button"),c=300>this.api.getPlayerSize().width;a=c?{F:"svg",X:{fill:"none",height:"24",width:"24"},W:[{F:"circle",X:{cx:"12",cy:"12",fill:"red",r:"12"}},{F:"ellipse",X:{cx:"12.18",cy:"12",fill:"red",rx:"7.308",ry:"7.2",stroke:"#fff","stroke-width":"1.2"}},{F:"path",X:{d:"M9.74 15.54l6.32-3.54-6.32-3.54v7.09z",fill:"#fff"}}]}:{F:"svg",X:{viewBox:"0 0 80 24"},W:[{F:"ellipse",X:{cx:"12.18",cy:"12",fill:"red",rx:"12.18",ry:"12"}},{F:"ellipse",X:{cx:"12.18",
cy:"12",fill:"red",rx:"7.308",ry:"7.2",stroke:"#fff","stroke-width":"1.2"}},{F:"path",X:{d:"M9.74 15.54l6.32-3.54-6.32-3.54v7.09zM37.43 9.64c-.57 2.85-1.01 6.33-1.25 7.77h-.16c-.18-1.48-.62-4.94-1.22-7.75L33.31 2.67h-4.52v18.85h2.80V5.98l.27 1.45 2.85 14.08h2.80l2.80-14.08.3-1.45v15.54h2.80V2.67h-4.56l-1.43 6.96zM51.01 18.69c-.25.51-.81.87-1.36.87-.64 0-.90-.49-.90-1.70V7.75H45.54v10.29c0 2.54.85 3.70 2.75 3.70 1.29 0 2.33-.56 3.05-1.90h.07l.27 1.68h2.50V7.75h-3.19v10.94h.00zM60.39 13.19c-1.04-.74-1.69-1.23-1.69-2.31 0-.76.37-1.19 1.25-1.19.90 0 1.20.60 1.22 2.67l2.68-.11c.20-3.34-.92-4.74-3.87-4.74-2.73 0-4.07 1.19-4.07 3.63 0 2.22 1.11 3.23 2.92 4.56 1.55 1.16 2.45 1.82 2.45 2.76 0 .72-.46 1.21-1.27 1.21-.95 0-1.50-.87-1.36-2.40l-2.71.04c-.41 2.85.76 4.51 3.91 4.51 2.75 0 4.19-1.23 4.19-3.70-.00-2.24-1.16-3.14-3.66-4.94zM68.87 7.75h-3.05v13.77h3.06V7.75zM67.36 2.31c-1.18 0-1.73.42-1.73 1.91 0 1.52.55 1.90 1.73 1.90 1.20 0 1.73-.38 1.73-1.90 0-1.41-.53-1.91-1.73-1.91zM79.15 16.56l-2.80-.13c0 2.42-.27 3.21-1.22 3.21-.95 0-1.11-.87-1.11-3.73v-2.67c0-2.76.18-3.63 1.13-3.63.88 0 1.11.83 1.11 3.39l2.77-.17c.18-2.13-.09-3.59-.94-4.42-.62-.60-1.57-.89-2.89-.89-3.10 0-4.37 1.61-4.37 6.15v1.93c0 4.67 1.08 6.17 4.26 6.17 1.34 0 2.27-.27 2.89-.85.90-.81 1.24-2.20 1.18-4.34z",
fill:"#fff"}}]};g.jo(b,"ytp-youtube-music-logo-icon-only",c)}a.X=Object.assign({},a.X,{"aria-hidden":"true"});this.Oa("logoSvg",a)};
g.SR.prototype.Wb=function(a){g.W.prototype.Wb.call(this,a);this.api.Xa(this.element,this.visible&&a)};g.v(TR,g.XD);g.k=TR.prototype;g.k.Yd=function(){this.Cc.hc();this.ri.hc()};
g.k.Bl=function(){this.TF();if(this.je.u){this.Yd();var a;null==(a=this.Z)||a.show()}else{g.cS(this.Cc.tooltip);var b;null==(b=this.Z)||b.hide()}};
g.k.jt=function(){this.Yd();this.Ee.start()};
g.k.TF=function(){var a=!this.G.V().isMobile&&300>g.LJa(this.Cc)&&this.G.Eb().Tc()&&!!window.requestAnimationFrame,b=!a;this.je.u||(a=b=!1);b?this.S||(this.S=this.T(this.G,"progresssync",this.Yd)):this.S&&(this.yc(this.S),this.S=null);a?this.Ee.isActive()||this.Ee.start():this.Ee.stop()};
g.k.Cb=function(){var a=this.C.Wf(),b=this.G.gb().getPlayerSize(),c=UR(this),d=Math.max(b.width-2*c,100);if(this.Wa!==b.width||this.Qa!==a){this.Wa=b.width;this.Qa=a;var e=aKa(this);this.u.element.style.width=e+"px";this.u.element.style.left=c+"px";g.aR(this.Cc,c,e,a);this.C.wc().UF=e}c=this.settingsMenu;e=Math.min(413*(a?1.5:1),Math.round(.82*(b.height-VR(this))));c.maxWidth=Math.min(570*(a?1.5:1),d);c.AB=e;c.nx();this.TF();!this.G.V().K("html5_player_bottom_linear_gradient")&&this.G.V().K("html5_player_dynamic_bottom_gradient")&&
g.hQ(this.Ya,b.height)};
g.k.onVideoDataChange=function(){var a=this.G.getVideoData();this.ya.style.background=a.C?a.eb:"";g.WK(this.ea,a.IH)};g.v(WR,bQ);g.k=WR.prototype;g.k.vJ=function(a){a.target!==this.dismissButton.element&&(this.onClickCommand&&this.G.Pa("innertubeCommand",this.onClickCommand),this.B=!0,this.S.hide())};
g.k.wJ=function(){this.B=!0;this.S.hide()};
g.k.onVideoDataChange=function(a,b){"newdata"===a&&(this.u=this.B=!1,YR(this));a=b.suggestedAction;if(null==b.shoppingOverlayRenderer&&a){this.j=this.J=this.enabled=!0;this.text=(b=a.title)?g.xA(b):"View Chapters";var c=g.Zu(a.trigger,hBa);if(c){b=[];var d=c.timeRangeStartMillis;c=c.timeRangeEndMillis;null!=d&&null!=c&&b.push(new g.qA(d,c,{priority:9,namespace:"suggested_action_button_visible"}));this.G.qe(b)}this.onClickCommand=a.tapCommand;UIa(this);aQ(this);this.Jj()}};
g.k.CA=function(){return!this.B&&this.enabled&&(this.u||this.j)};
g.k.Ff=function(a){this.B||((this.u=a)?$P(this):(YR(this),this.ea.start()),this.Jj())};
g.k.ra=function(){YR(this);bQ.prototype.ra.call(this)};var q4={},ZR=(q4.CHANNEL_NAME="ytp-title-channel-name",q4.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",q4.LINK="ytp-title-link",q4.SESSIONLINK="yt-uix-sessionlink",q4.SUBTEXT="ytp-title-subtext",q4.TEXT="ytp-title-text",q4.TITLE="ytp-title",q4);g.v($R,g.W);$R.prototype.onClick=function(a){this.api.ub(this.element);var b=this.api.V(),c=this.api.getVideoUrl(!g.XL(a),!1,!0);if(g.KF(b)){var d={};b.Aa&&g.bN(d,b.loaderUrl);c=g.wi(c,g.aN(d,"emb_title"))}g.FO(c,this.api,a)};
$R.prototype.Ja=function(){var a=this.api.getVideoData(),b=this.api.V();this.Oa("title",a.title);var c={F:"a",N:ZR.CHANNEL_NAME,X:{href:"{{channelLink}}",target:"_blank"},oa:"{{channelName}}"};this.api.V().B&&(c={F:"span",N:ZR.CHANNEL_NAME,oa:"{{channelName}}"});this.Oa("subtextElement",c);bKa(this);2===this.api.getPresentingPlayerType()&&(c=this.api.getVideoData(),c.videoId&&c.isListed&&c.author&&c.Id&&c.profilePicture?(this.Oa("channelLink",c.Id),this.Oa("channelName",c.author),this.Oa("channelTitleFocusable",
"0")):bKa(this));c=b.externalFullscreen||!this.api.isFullscreen()&&b.Rb;g.jo(this.link,ZR.FULLERSCREEN_LINK,c);b.S||!a.videoId||c||a.C&&b.pfpChazalUi||b.B?this.j&&(this.Oa("url",null),this.yc(this.j),this.j=null):(this.Oa("url",this.api.getVideoUrl(!0)),this.j||(this.j=this.T(this.link,"click",this.onClick)));b.B&&this.Oa("channelName",g.KF(b)?a.expandedTitle:a.author)};g.v(g.aS,g.W);g.k=g.aS.prototype;g.k.bR=function(a,b){a<=this.B&&this.B<=b&&(a=this.B,this.B=NaN,dKa(this,a))};
g.k.h_=function(){KAa(this.j,this.B,160*this.scale)};
g.k.Ql=function(){switch(this.type){case 2:var a=this.u;a.removeEventListener("mouseout",this.Z);a.addEventListener("mouseover",this.C);a.removeEventListener("blur",this.Z);a.addEventListener("focus",this.C);gKa(this);break;case 3:gKa(this);break;case 1:this.j&&(this.j.unsubscribe("l",this.bR,this),this.j=null),this.api.removeEventListener("videoready",this.ea),this.qa.stop()}this.type=null;this.J&&this.D.hide()};
g.k.Yj=function(){if(this.u)for(var a=0;a<arguments.length;a++)g.qh(arguments[a],this.u)&&this.Ql()};
g.k.ra=function(){null!=this.type&&this.Ql();this.j&&this.j.dispose();g.W.prototype.ra.call(this)};g.v(g.dS,g.W);g.k=g.dS.prototype;g.k.BB=function(){var a=this.G.getPlayerSize(),b=this.G.V(),c=this.G.getVideoData(),d=g.KF(b)&&g.yN(this.G)&&g.V(this.G.Eb(),128);this.visible=b.Ul&&240<=a.width&&!c.isAd()&&c.Mi&&!d&&!(c.C&&b.pfpChazalUi);g.WK(this,this.visible);this.icon&&kKa(this,this.icon);this.G.Xa(this.element,this.visible&&this.Aa)};
g.k.Tf=function(){return this.G.getVideoData().videoId};
g.k.onClick=function(){var a=this;this.G.ub(this.element);var b=this.G.V(),c=this.Tf();b.authUser?hKa(this):this.G.zE()?this.G.requestStorageAccess(function(){g.Kv("embedsItpWatchLaterResult",{accepted:!0});Sy();iKa(a,c)},function(){g.Kv("embedsItpWatchLaterResult",{accepted:!1});
jKa(a,"Sorry, saving failed because your cookies are blocked by the browser.")}):iKa(this,c)};
g.k.pW=function(){this.isRequestPending=this.j=!1;this.Ja(2)};
g.k.Ja=function(a,b){var c=this.G.V();kKa(this,a);b?this.update({title:b,image:null}):c.userDisplayName?(a={USER_NAME:c.userDisplayName},this.update({title:this.j?g.FJ("Added as $USER_NAME",a):g.FJ("Watch later as $USER_NAME",a),image:sG(c)})):this.update({title:"Watch later",image:null});zP(this.tooltip)};
g.k.Wb=function(a){g.W.prototype.Wb.call(this,a);this.G.Xa(this.element,this.visible&&a)};g.v(eS,g.TO);g.k=eS.prototype;g.k.wc=function(){return this.tooltip};
g.k.Ip=function(a,b){b?this.Bm=a:this.Bm=null;this.Jk()};
g.k.Iv=function(a,b){if(b)this.uq.push(a);else for(b=this.uq.length;0<=b;b--)if(this.uq[b]===a){this.uq.splice(b,1);break}AO(this.je,64,0<this.uq.length)};
g.k.Oq=function(){this.api.Ai()&&this.api.xm();return!!this.Bm||lKa(this)||g.TO.prototype.Oq.call(this)};
g.k.Jk=function(){var a=!this.Oq(),b=a&&this.api.Ai()&&!g.V(this.api.Eb(),2)&&!(this.api.getVideoData().C&&this.api.V().pfpChazalUi)&&!this.api.V().B,c=this.hq&&g.yN(this.api)&&g.V(this.api.Eb(),128);a||c?(this.pL.show(),this.qL.show()):(this.pL.hide(),this.qL.hide(),this.tooltip.Yj(this.Gj.element));b?this.Kh.Qc():this.Kh.Bb();this.Pf&&$Ja(this.Pf,this.x3||!a);g.TO.prototype.Jk.call(this)};
g.k.At=function(a,b,c,d,e){a.style.left="";a.style.top="";a.style.bottom="";var f=g.Kl(a),h=d||this.Pf&&g.qh(this.Pf.u.element,b),l=d=null;null!=c&&h||(d=g.Kl(b),l=g.Il(b,this.api.getRootNode()),null==c&&(c=l.x+d.width/2));c-=f.width/2;h?(b=this.Pf,d=UR(b),l=aKa(b),h=this.api.gb().getPlayerSize().height,c=g.Eg(c,d,d+l-f.width),f=h-VR(b)-f.height):g.qh(this.Gj.element,b)?(b=this.api.gb().getPlayerSize().width,c=g.Eg(c,12,b-f.width-12),f=this.Wf()?this.UG:this.TG,"gvn"===this.api.V().playerStyle&&(f+=
20),this.hq&&(f-=this.Wf()?26:18)):(b=this.api.gb().getPlayerSize(),c=g.Eg(c,12,b.width-f.width-12),f=l.y>(b.height-d.height)/2?l.y-f.height-12:l.y+d.height+12);a.style.top=f+(e||0)+"px";a.style.left=c+"px"};
g.k.Bl=function(a){a&&(this.tooltip.Yj(this.Gj.element),this.Pf&&this.tooltip.Yj(this.Pf.u.element));this.rz&&(g.jo(this.contextMenu.element,"ytp-autohide",a),g.jo(this.contextMenu.element,"ytp-autohide-active",!0));g.TO.prototype.Bl.call(this,a)};
g.k.uJ=function(){g.TO.prototype.uJ.call(this);this.rz&&(g.jo(this.contextMenu.element,"ytp-autohide-active",!1),this.rz&&(this.contextMenu.hide(),this.Eh&&this.Eh.hide()))};
g.k.fk=function(a,b){var c=this.api.gb().getPlayerSize();c=new g.wl(0,0,c.width,c.height);if(a||this.je.u&&!this.Oq()){if(this.api.V().Nj||b)a=this.Wf()?this.UG:this.TG,c.top+=a,c.height-=a;this.Pf&&(c.height-=VR(this.Pf))}return c};
g.k.No=function(a){var b=this.api.getRootNode();a?b.parentElement?(b.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.V().externalFullscreen||(b.parentElement.insertBefore(this.tC.element,b),b.parentElement.insertBefore(this.sC.element,b.nextSibling))):g.eu(Error("Player not in DOM.")):(b.setAttribute("aria-label","YouTube Video Player"),this.tC.detach(),this.sC.detach());this.Cb();this.En()};
g.k.Wf=function(){var a=this.api.V();return this.api.isFullscreen()&&!a.I||!1};
g.k.showControls=function(a){this.dC=!a;this.Jk()};
g.k.Cb=function(){var a=this.Wf();this.tooltip.scale=a?1.5:1;this.contextMenu&&g.jo(this.contextMenu.element,"ytp-big-mode",a);this.Jk();if(this.Hg()&&this.Eh)this.ej&&OP(this.Eh,this.ej),this.shareButton&&OP(this.Eh,this.shareButton),this.Lh&&OP(this.Eh,this.Lh);else{if(this.Eh){a=this.Eh;for(var b=g.r(a.actionButtons),c=b.next();!c.done;c=b.next())c.value.detach();a.actionButtons=[]}this.ej&&!g.qh(this.wi.element,this.ej.element)&&this.ej.Ca(this.wi.element);this.shareButton&&!g.qh(this.wi.element,
this.shareButton.element)&&this.shareButton.Ca(this.wi.element);this.Lh&&!g.qh(this.wi.element,this.Lh.element)&&this.Lh.Ca(this.wi.element)}this.En();g.TO.prototype.Cb.call(this)};
g.k.SH=function(){if(lKa(this)&&!g.yN(this.api))return!1;var a=this.api.getVideoData();return!g.KF(this.api.V())||2===this.api.getPresentingPlayerType()||!this.Nh||((a=this.Nh||a.Nh)?(a=a.embedPreview)?(a=a.thumbnailPreviewRenderer,a=a.videoDetails&&g.Zu(a.videoDetails,KBa)||null):a=null:a=null,a&&a.collapsedRenderer&&a.expandedRenderer)?g.TO.prototype.SH.call(this):!1};
g.k.En=function(){g.TO.prototype.En.call(this);this.api.Xa(this.title.element,!!this.Zm);this.Gw&&this.Gw.Wb(!!this.Zm);this.channelAvatar.Wb(!!this.Zm);this.overflowButton&&this.overflowButton.Wb(this.Hg()&&!!this.Zm);this.shareButton&&this.shareButton.Wb(!this.Hg()&&!!this.Zm);this.ej&&this.ej.Wb(!this.Hg()&&!!this.Zm);this.Lh&&this.Lh.Wb(!this.Hg()&&!!this.Zm);if(!this.Zm){this.tooltip.Yj(this.Gj.element);for(var a=0;a<this.PA.length;a++){var b=this.PA[a];b.Ah()&&b.Bb()}}};
g.k.Xb=function(a){this.Pf&&$Ja(this.Pf,this.Oq());this.Jk();g.TO.prototype.Xb.call(this,a)};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h){return this.Go?this.Go.handleGlobalKeyDown(a,b,c,d,e,f,h):!1};
g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){return this.Go?this.Go.handleGlobalKeyUp(a,b,c,d,e,f,h):!1};
g.k.dl=function(){if(this.contextMenu.rb)return this.contextMenu.Bb(),!0;if(this.uq.length)return this.uq[this.uq.length-1].Bb(),!0;if(this.Bm)return this.Bm.Bb(),!0;this.Pf&&this.tooltip.Yj(this.Pf.u.element);return g.TO.prototype.dl.call(this)};
g.k.xA=function(a,b){this.fJ=b;this.Iv(a,b);this.wT()};
g.k.wT=function(){var a=this.fJ||this.contextMenu.Ah();this.IG!==a&&(this.IG=a,this.api.Pa("onAutonavPauseRequest",this.IG))};
g.k.TY=function(){fS(this,this.api.getRootNode(),!0).focus()};
g.k.UY=function(){fS(this,this.api.getRootNode(),!1).focus()};
g.k.Lm=function(){return this.Pf&&this.Pf.settingsMenu};
g.k.Yy=function(){return this.Pf&&this.Pf.B};
g.k.Dn=function(){this.je.Dn()};
g.k.VC=function(){this.Ic.hide()};
g.k.Pt=function(a){this.Ic.Pt(!g.dK(a))};
g.k.Kw=function(a,b,c,d){this.Ay.Kw(a,b,c,d)};
g.k.sK=function(a,b){this.Ay.mE(a,b)};
g.k.P0=function(){mKa(this,!0)};
g.k.v1=function(a){mKa(this,!1,a)};
g.k.HB=function(a){a.Ca(this.Pf.j.element)};g.v(g.gS,g.eO);g.gS.prototype.Dj=function(){return!1};
g.gS.prototype.create=function(){var a=this.player.V();g.TF(a)&&a.isMobile?this.chrome=new g.TO(this.player):this.chrome=new eS(this.player);g.M(this,this.chrome);this.chrome.init();this.player.xf("ux")};
g.gS.prototype.Ny=function(){return this.chrome};g.v(iS,g.J);iS.prototype.u=function(a,b){if(b){b=b instanceof g.KB?b:jS(this,b);var c;(null==(c=this.j.get(a))?void 0:MB(c.location))!==MB(b)&&this.j.set(a,new nS(b,a))}else this.j.delete(a)};
iS.prototype.load=function(){var a=this,b,c,d,e,f,h,l,m,n,p;return g.z(function(q){switch(q.j){case 1:b=a.j.get(0);g.pa(q,2);var u;if(u=b&&!a.B)u=MB(b.location),u=a.B===lS(u);if(u){q.Ma(4);break}return g.x(q,mS(a,a.B?2:0),5);case 5:if(c=q.u)a.u(0,c),OB(c)&&a.u(1,PB(c));case 4:g.ra(q,3);break;case 2:d=g.ua(q);g.pz(d);if(!a.B){q.Ma(3);break}a.B=!1;return g.x(q,a.load(),7);case 7:return q.return();case 3:if(!a.Y.experiments.jb("html5_onesie_probe_ec_hosts")){q.Ma(0);break}g.pa(q,9);e=a;f=e.u;h=3;return g.x(q,
mS(a,1),11);case 11:return f.call(e,h,q.u),l=a,m=l.u,n=4,g.x(q,mS(a,2),12);case 12:m.call(l,n,q.u);g.ra(q,0);break;case 9:p=g.ua(q),g.pz(p),g.na(q)}})};
iS.prototype.J=function(){var a=this,b,c,d,e,f,h,l;return g.z(function(m){if(1==m.j){g.Yn(a.S);b=g.RE(a.Y.experiments,"html5_onesie_prewarm_max_lact_ms");if(Nx()>=b)return m.return();if(!a.Y.K("html5_onesie_host_racing_during_prewarming"))return(c=a.j.get(0))&&rKa(a,c),m.Ma(0);d=g.RE(a.Y.experiments,"html5_onesie_prewarm_cooldown_ms");e=a.j.values();f=g.r(e);h=f.next()}if(4!=m.j){if(h.done)return m.Ma(0);l=h.value;if(a.isDisposed())return m.return();rKa(a,l);return d?g.x(m,oKa(d),4):m.Ma(4)}h=f.next();
return m.Ma(3)})};
nS.prototype.start=function(){this.startTimestamp=(0,g.T)()};
nS.prototype.end=function(){this.endTimestamp=(0,g.T)()};var pS=[],gSa=!1;g.kW=Zf(function(){var a="";try{var b=g.hh("CANVAS").getContext("webgl");b&&(b.getExtension("WEBGL_debug_renderer_info"),a=b.getParameter(37446),a=a.replace(/[ :]/g,"_"))}catch(c){}return a});g.v(g.qS,TJ);g.k=g.qS.prototype;g.k.isView=function(){return!0};
g.k.wK=function(){var a=this.mediaElement.getCurrentTime();if(a<this.start)try{var b=this.mediaElement.Xg(),c=hE(b,a);return!(this.start<c)}catch(d){}return!1};
g.k.Cs=function(){return jE(this.mediaElement.Cs(),this.start,this.end)};
g.k.Xg=function(){return jE(this.mediaElement.Xg(),this.start,this.end)};
g.k.Zy=function(){return jE(this.mediaElement.Zy(),this.start,this.end)};
g.k.getCurrentTime=function(){return this.mediaElement.getCurrentTime()-this.start};
g.k.xB=function(a){this.mediaElement.xB(a+this.start)};
g.k.getDuration=function(){return isFinite(this.end)&&!this.j?this.end-this.start:this.mediaElement.getDuration()-this.start};
g.k.play=function(){if(this.wK()){this.mediaElement.getCurrentTime();try{this.mediaElement.xB(this.start)}catch(a){}}return this.mediaElement.play()};
g.k.Sb=function(){var a=TJ.prototype.Sb.call(this);a.view=this.start+"-"+this.end;return a};
g.k.addEventListener=function(a,b){this.mediaElement.addEventListener(a,b)};
g.k.removeEventListener=function(a,b){this.mediaElement.removeEventListener(a,b)};
g.k.uB=function(){return this.mediaElement.uB()};
g.k.hv=function(a){this.mediaElement.hv(a)};
g.k.Up=function(){return this.mediaElement.Up()};
g.k.playVideo=function(){return this.mediaElement.playVideo()};
g.k.sH=function(){this.mediaElement.sH()};
g.k.pH=function(){this.mediaElement.pH()};
g.k.Dr=function(){return this.mediaElement.Dr()};
g.k.zf=function(){return this.mediaElement.zf()};
g.k.Lf=function(){return this.mediaElement.Lf()};
g.k.yB=function(a){this.mediaElement.yB(a)};
g.k.lE=function(){this.mediaElement.lE()};
g.k.getPlaybackRate=function(){return this.mediaElement.getPlaybackRate()};
g.k.setPlaybackRate=function(a){return this.mediaElement.setPlaybackRate(a)};
g.k.Bs=function(){return this.mediaElement.Bs()};
g.k.setLoop=function(a){this.mediaElement.setLoop(a)};
g.k.canPlayType=function(a,b){return this.mediaElement.canPlayType(a,b)};
g.k.Pn=function(){return this.mediaElement.Pn()};
g.k.Gg=function(){return this.mediaElement.Gg()};
g.k.Yg=function(){return this.mediaElement.Yg()};
g.k.HC=function(){return this.mediaElement.HC()};
g.k.Sw=function(a){this.mediaElement.Sw(a)};
g.k.vB=function(){return this.mediaElement.vB()};
g.k.load=function(){this.mediaElement.load()};
g.k.pause=function(){this.mediaElement.pause()};
g.k.hj=function(){return this.mediaElement.hj()};
g.k.IC=function(){return this.mediaElement.IC()};
g.k.gg=function(){return this.mediaElement.gg()};
g.k.rf=function(){return this.mediaElement.rf()};
g.k.wB=function(){return this.mediaElement.wB()};
g.k.Fg=function(){return this.mediaElement.Fg()};
g.k.Pq=function(){return this.mediaElement.Pq()};
g.k.togglePictureInPicture=function(){this.mediaElement.togglePictureInPicture()};
g.k.Wp=function(){return this.mediaElement.Wp()};
g.k.getSize=function(){return this.mediaElement.getSize()};
g.k.setSize=function(a){this.mediaElement.setSize(a)};
g.k.getVolume=function(){return this.mediaElement.getVolume()};
g.k.setVolume=function(a){this.mediaElement.setVolume(a)};
g.k.setAttribute=function(a,b){this.mediaElement.setAttribute(a,b)};
g.k.removeAttribute=function(a){this.mediaElement.removeAttribute(a)};
g.k.hasAttribute=function(a){return this.mediaElement.hasAttribute(a)};
g.k.Xx=aa(22);g.k.HA=aa(24);g.k.IA=aa(26);g.k.zv=aa(28);g.k.Fy=function(){return this.mediaElement.Fy()};
g.k.vp=function(a){this.mediaElement.vp(a)};
g.k.getStyle=function(a){return this.mediaElement.getStyle(a)};
g.k.DI=function(){return this.mediaElement.DI()};
g.k.stopVideo=function(){this.mediaElement.stopVideo()};
g.k.vH=function(a){this.mediaElement.vH(a)};
g.k.audioTracks=function(){return this.mediaElement.audioTracks()};g.v(rS,g.J);g.k=rS.prototype;g.k.isFinished=function(){return 6===this.status.status};
g.k.getStatus=function(){return this.status};
g.k.Kr=function(){var a=this.j.getVideoData(),b=this.u.getVideoData(),c;if((c=a.B)&&!(c=!a.j)){c=a.j;for(var d=!1,e=!1,f=g.r(Object.values(c.j)),h=f.next();!h.done;h=f.next())h=h.value,h.info.audio&&h.index.isLoaded()&&(d=!0),h.info.video&&h.index.isLoaded()&&(e=!0);c.j["0"]&&(e=!0);c=d&&e}if(c)if(this.j.Ud()){f=yKa(this.j,this.u,this.Jl);h=zKa(this);c=h.gY;e=h.GQ;d=h.zO;h=h.FQ;if(!this.I){var l=1E3*this.u.nj(),m=this.j.nj();m=1E3*(d-c-m);f&&"in-the-past"===f.msg&&(m=0);a=a.isAd();this.u.nA(l,m,a);
this.I=!0}f?(b="cannot_apply"+f.msg,delete f.msg,this.Of(b,f)):2===this.status.status?GKa(this):(a=this.j.Up())&&(a.j||a.u)&&(!pE(a)&&g.Ou()?this.Of("mse_closed"):b.j&&HB(b.j)&&a.u&&!a.u.EC()?this.Of("encr_upgrade"):(b=this.j.Ud(),b.Yg()?this.Of("elem_ended"):0>e?this.Of("next_player_future"):(this.D=d,this.B=Fxa(a,c,d,!0),this.C=Fxa(a,e,h,!1),a=this.u.getVideoData().clientPlaybackNonce,this.j.va("gaplessPrep",{cpn:a}),uS(this.j,this.B),this.j.setMediaElement(AKa(b,c,d,!this.j.getVideoData().isAd())),
tS(this,2),GKa(this))))}else this.Of("no-elem")};
g.k.Ju=function(a){var b=a===FKa(this).AS,c=b?this.B.j:this.B.u;b=b?this.C.j:this.C.u;if(c.isActive&&!b.isActive){var d=this.D;gE(a.Cg(),d-.01)&&(tS(this,4),c.isActive=!1,c.XA=c.XA||c.isActive,this.u.va("sbh",{}),b.isActive=!0,b.XA=b.XA||b.isActive);a=this.C.u;this.C.j.isActive&&a.isActive&&tS(this,5)}};
g.k.gR=function(){4<=this.status.status&&6>this.status.status&&this.Of("player-reload-after-handoff")};
g.k.Of=function(a,b){b=void 0===b?{}:b;if(!this.isDisposed()&&!this.isFinished()){var c=4<=this.status.status&&"player-reload-after-handoff"!==a;this.status={status:Infinity,error:a};if(this.j&&this.u){var d=this.u.getVideoData().clientPlaybackNonce;this.j.Ed(new xG("dai.transitionfailure",Object.assign(b,{cpn:d,transitionTimeMs:this.Jl,msg:a})));a=this.j;a.videoData.Qa=!1;c&&SV(a);a.Ka&&XNa(a.Ka)}this.Cn.reject(void 0);this.dispose()}};
g.k.ra=function(){EKa(this);this.j.unsubscribe("newelementrequired",this.gR,this);if(this.B){var a=this.B.u;this.B.j.Zd.unsubscribe("updateend",this.Ju,this);a.Zd.unsubscribe("updateend",this.Ju,this)}g.J.prototype.ra.call(this)};
g.k.Uc=function(a){g.sJ(a,128)&&this.Of("player-error-event")};g.v(wS,g.J);wS.prototype.clearQueue=function(){this.C&&this.C.reject("Queue cleared");xS(this)};
wS.prototype.lw=function(){return!this.j};
wS.prototype.ra=function(){xS(this);g.J.prototype.ra.call(this)};g.v(CS,g.az);g.k=CS.prototype;g.k.getVisibilityState=function(a,b,c,d,e,f){return a?4:KKa()?3:b?2:c?1:d?5:e?7:f?8:0};
g.k.Dk=function(a){this.fullscreen!==a&&(this.fullscreen=a,this.Ff())};
g.k.setMinimized=function(a){this.B!==a&&(this.B=a,this.Ff())};
g.k.setInline=function(a){this.inline!==a&&(this.inline=a,this.Ff())};
g.k.Tw=function(a){this.pictureInPicture!==a&&(this.pictureInPicture=a,this.Ff())};
g.k.setImmersivePreview=function(a){this.u!==a&&(this.u=a,this.Ff())};
g.k.Fg=function(){return this.j};
g.k.isFullscreen=function(){return 0!==this.fullscreen};
g.k.Pv=function(){return this.fullscreen};
g.k.Df=function(){return this.B};
g.k.isInline=function(){return this.inline};
g.k.isBackground=function(){return KKa()};
g.k.jw=function(){return this.pictureInPicture};
g.k.ew=function(){return this.u};
g.k.Ff=function(){this.ma("visibilitychange");var a=this.getVisibilityState(this.Fg(),this.isFullscreen(),this.Df(),this.isInline(),this.jw(),this.ew());a!==this.D&&this.ma("visibilitystatechange");this.D=a};
g.k.ra=function(){NKa(this.C);g.az.prototype.ra.call(this)};g.v(g.HS,g.J);g.k=g.HS.prototype;
g.k.onCueRangeEnter=function(a){this.Ia.push(a);var b=a.getId(),c=""===b;this.yb.add(a.u);c||this.xa.va("sdai",{enterAdCueRange:1});if(this.eb&&!this.j){this.eb=!1;if(!c){var d=this.u.get(b);d&&(this.Y.K("web_player_ss_record_join_mid_ad_break_killswitch")||(c=this.xa.getCurrentTime(),OS(this,{Td:a,isAd:!0,Ao:!0,rg:c,adCpn:b},{isAd:!1,Ao:!1,rg:c})),this.api.ma("serverstitchedvideochange",d.Hc,d.tp),this.xa.va("sdai",LS(this,"midab",d)),this.Zj=1)}this.I=!1}else if(this.j){if(this.j.Ao)this.xa.va("sdai",{a_pair_of_same_transition_occurs_enter:1,
acpn:this.j.adCpn,transitionTime:this.j.rg,cpn:b,currentTime:this.xa.getCurrentTime()}),this.Y.K("web_player_same_transition_fallback_killswitch")||(d=this.xa.getCurrentTime(),a={Td:a,isAd:!c,Ao:!0,rg:d,adCpn:b},b={Td:this.j.Td,isAd:this.j.isAd,Ao:!1,rg:d,adCpn:this.j.adCpn},this.j.Td&&this.yb.delete(this.j.Td.u),OS(this,a,b));else{if(this.j.Td===a){this.xa.va("sdai",{same_cue_range_pair_enter:1,acpn:this.j.adCpn,transitionTime:this.j.rg,cpn:b,currentTime:this.xa.getCurrentTime(),cueRangeStartTime:a.start,
cueRangeEndTime:a.end});this.j=void 0;return}if(this.j.adCpn===b){b&&this.xa.va("sdai",{dchtsc:b});this.j=void 0;return}a={Td:a,isAd:!c,Ao:!0,rg:this.xa.getCurrentTime(),adCpn:b};OS(this,a,this.j)}this.j=void 0;this.I=!1}else this.j={Td:a,isAd:!c,Ao:!0,rg:this.xa.getCurrentTime(),adCpn:b}};
g.k.onCueRangeExit=function(a){if(this.Y.K("web_player_same_transition_fallback_killswitch")||this.yb.has(a.u)){this.yb.delete(a.u);this.Ia=this.Ia.filter(function(d){return d!==a});
this.eb&&(this.I=this.eb=!1,this.xa.va("sdai",{cref:1}));var b=a.getId(),c=""===b;if(this.j){if(this.j.Ao){if(this.j.Td===a){this.xa.va("sdai",{same_cue_range_pair_exit:1,acpn:this.j.adCpn,transitionTime:this.j.rg,cpn:b,currentTime:this.xa.getCurrentTime(),cueRangeStartTime:a.start,cueRangeEndTime:a.end});this.j=void 0;return}if(this.j.adCpn===b){b&&this.xa.va("sdai",{dchtsc:b});this.j=void 0;return}c={Td:a,isAd:!c,Ao:!1,rg:this.xa.getCurrentTime(),adCpn:b};OS(this,this.j,c)}else this.xa.va("sdai",
{a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.j.adCpn,transitionTime:this.j.rg,upcomingCpn:b,contentCpn:this.xa.getVideoData().clientPlaybackNonce,currentTime:this.xa.getCurrentTime()});this.j=void 0;this.I=!1}else this.j={Td:a,isAd:!c,Ao:!1,rg:this.xa.getCurrentTime(),adCpn:b};this.Y.K("web_player_halftime_dai")&&(b=this.u.get(b),this.isLiveNow&&b&&this.xa.getCurrentTime()<this.xa.ll()&&DS(this,Infinity))}else this.xa.va("sdai",{ignore_single_exit:1})};
g.k.isAdPlaying=function(a){return this.Gp?!1:GS(this)?!!this.ea:!!QS(this,1E3*a)};
g.k.seekTo=function(a,b,c){a=void 0===a?0:a;c=void 0===c?null:c;this.I=!0;if(void 0===b?0:b)DS(this,a);else{b=this.api.Jc();var d=b===this.ob?this.Rb:null;RS(this,!1);this.Pc=a;null!=c&&this.lc.start(c);b&&(this.Rb=d||b.getPlayerState(),MX(b),this.ob=b)}};
g.k.ra=function(){RS(this,!1);TS(this);YKa(this);g.J.prototype.ra.call(this)};
g.k.RK=function(a){this.Lc=a;this.xa.va("sdai",{swebm:a})};
g.k.gk=function(a,b,c){if(c&&b){var d=this.La.get(a);if(d){d.locations||(d.locations=new Map);var e=Number(b.split(";")[0]);c=new g.KB(c);this.Qa&&this.xa.va("sdai",{hdlredir:1,itag:b,seg:a,hostport:MB(c)});d.locations.set(e,c)}}};
g.k.Es=function(a,b,c,d){var e=3===d;a=$Ka(this,a,b,d,c);if(!a)return XS(this,b,e),null;e=a.Uj;var f;b=(null==(f=VS(this,b-1,d))?void 0:f.hs)||"";f=uF(a.ssdaiAdsConfig||"")||void 0;f={B4:{tG:e?cLa(this,e):[],sX:f,hs:b,Q4:a.EA}};return jH(f,PKa)};
g.k.Hm=function(a,b,c,d){var e=Number(c.split(";")[0]),f=3===d;a=$Ka(this,a,b,d,c);this.Qa&&this.xa.va("sdai",{gdu:1,seg:b,itag:e,pb:""+!!a});if(!a)return XS(this,b,f),null;a.locations||(a.locations=new Map);if(!a.locations.has(e)){var h,l,m=null==(h=a.videoData.getPlayerResponse())?void 0:null==(l=h.streamingData)?void 0:l.adaptiveFormats;if(!m)return this.xa.va("sdai",{gdu:"noadpfmts",seg:b,itag:e}),XS(this,b,f),null;h=m.find(function(A){return A.itag===e});
if(!h||!h.url){c={gdu:"nofmt",seg:b,vid:a.videoData.videoId,itag:e,fullitag:c,itags:""};if(!this.Y.K("html5_ssdai_log_missing_itags_killswitch")){var n=[];a=g.r(m);for(var p=a.next();!p.done;p=a.next())n.push(p.value.itag);c.itags=n.join(",")}this.xa.va("sdai",c);XS(this,b,f);return null}m=!this.Y.K("html5_ssdai_decipher_killswitch");a.locations.set(e,new g.KB(h.url,m))}m=a.locations.get(e);if(!m)return this.xa.va("sdai",{gdu:"nourl",seg:b,itag:e}),XS(this,b,f),null;m=new SC(m);this.Lc&&(m.get("dvc")?
this.xa.va("sdai",{dvc:m.get("dvc")||""}):m.set("dvc","webm"));this.Y.experiments.jb("ssdai_return_original_content")&&m.set("dairoc","1");var q;(h=null==(q=VS(this,b-1,d))?void 0:q.hs)&&m.set("daistate",h);a.EA&&b>=a.EA&&m.set("skipsq",""+a.EA);(h=this.xa.getVideoData().clientPlaybackNonce)&&m.set("cpn",h);q=[];a.Uj&&(q=cLa(this,a.Uj),0<q.length&&m.set("acpns",q.join(",")));f||this.La.set(b,a);f=null;if(!this.Y.K("web_player_ssdai_acpns_aids_logging_killswitch")){f=m.get("aids");var u,w;if(((null==
(u=f)?void 0:null==(w=u.split(","))?void 0:w.length)||0)!==q.length)if(a.Uj){var y;this.xa.va("sdai",{acpns_aids_nm:1,ids:eLa(this,a.Uj).join("_"),acpns:q.join("_"),aids:null==(y=f)?void 0:y.replace(/,/g,"_"),cpn:h,trackType:d})}else this.xa.va("sdai",{acpns_aids_nm:"noAdBreakId",cpn:h})}d=m.ye();2048<(null==d?void 0:d.length)&&this.xa.va("sdai",{urltoolong:1,sq:b,itag:e,len:d.length});this.Qa?(d&&(u=a.cpn,p=a.Uj,gLa(this,u,p),p&&!this.Gb.has(p)&&(u=dLa(this,u,p),w=fLa(this,p),this.xa.va("sdai",{iofa:u}),
this.xa.va("sdai",{noawnzd:w-u}),this.xa.va("sdai",{acpns:q.join("."),aids:null==(n=f)?void 0:n.replace(/,/g,".")}),this.Gb.add(p))),this.xa.va("sdai",{gdu:"v",seg:b,itag:c,ast:a.Dc.toFixed(3),alen:a.durationMs.toFixed(3),acpn:a.cpn,avid:a.videoData.videoId})):!this.Y.K("web_player_ssdai_all_acpns_aids_logging_killswitch")&&d&&(b=a.Uj)&&!this.Gb.has(b)&&(this.xa.va("sdai",{acpns:q.join("."),aids:null==(p=f)?void 0:p.replace(/,/g,"."),vids:eLa(this,b).join("."),abid:b}),this.Gb.add(b));return d};
g.k.XK=function(a,b){if(a=US(this,a,b)){var c=a.Uj;if(c){this.xa.va("sdai",{skipadonsq:b,abid:c,acpn:a.cpn,avid:a.videoData.videoId});c=this.Z.get(c);if(!c)return;c=g.r(c);for(var d=c.next();!d.done;d=c.next())d.value.EA=b}this.J=a.cpn;aLa(this)}};
g.k.zK=function(){for(var a=g.r(this.D),b=a.next();!b.done;b=a.next())b.value.EA=NaN;aLa(this);this.J=""};
g.k.RA=aa(32);
g.k.SJ=function(a,b,c,d,e,f,h,l,m){m&&(h?this.Ya.set(a,{hs:m,Vx:l}):this.ya.set(a,{hs:m,Vx:l}));if(h){if(d.length&&e.length)for(this.J&&this.J===d[0]&&this.xa.va("sdai",{skipfail:1,sq:a,acpn:this.J}),a=b+this.oo(),h=g.r(d.entries()),l=h.next();!l.done;l=h.next()){m=g.r(l.value);l=m.next().value;var n=m=m.next().value;m=a;a=m+e[l];if(n=this.u.get(n))l=m-f[l],n.tp=null!=n.tp?Math.min(n.tp,l):l}if(!GS(this))if(d.length&&e.length)for(b=1E3*(b+this.oo()),d=g.r(d.entries()),c=d.next();!c.done;c=d.next())if(c=
g.r(c.value),f=c.next().value,c=c.next().value,f=1E3*e[f],c===this.xa.getVideoData().clientPlaybackNonce)WS(this,b,b+f,!1),b+=f;else if(this.xd.has(c)||(this.xa.va("sdai",{adCpnFromEmsg:1}),this.xd.add(c)),(a=this.C.get(c))&&a.start<=b&&a.end>=b+f)b=a.end;else{if(h=!1,a?b<a.start?a.start=b:a.end<b+f&&(a.end=b+f):(a=VKa(b,b+f,c),this.C.set(c,a),this.xa.va("sdai",{newAdCR:1,cpn:c,startTime:a.start,endTime:a.end}),h=!0),b=a.end,WS(this,a.start,a.end,!0),h)for(this.xa.addCueRange(a),c=this.xa.Gy("serverstitchedcuerange",
36E5),c=g.r(c),f=c.next();!f.done;f=c.next())this.C.delete(f.value.getId())}else 5!==c&&4!==c||WS(this,1E3*(b+this.oo()),1E3*(b+this.oo())+5E3,!1)}};
g.k.Py=aa(34);g.k.oo=function(){return this.xa.oo()};
g.k.Ez=function(a){this.xa.va("timelineerror",{e:a})};
g.k.jz=function(a){this.Aa&&this.qa&&this.Wa.push(this.qa);!this.Y.K("web_player_skip_fetched_cuepoint_killswitch")&&a&&this.qa&&this.Ac.push(this.qa);this.qa=null;this.xa.jz(a)};
g.k.hI=function(a){if(this.Gp||a.identifier&&this.Ld.has(a.identifier))this.Qa&&this.xa.va("sdai",{startnoad:a.identifier}),KS(this);else if(Ol(this.Wa,function(c){return c.identifier===a.identifier}))this.xa.va("sdai",{timedoutcp:1}),this.S.start(0);
else if(!this.Y.K("web_player_skip_fetched_cuepoint_killswitch")&&Ol(this.Ac,function(c){return c.identifier===a.identifier}))this.xa.va("sdai",{fetchedcp:1}),KS(this);
else if(this.S.isActive()){var b;this.xa.va("sdai",{racingcp:(null==(b=this.qa)?void 0:b.identifier)+"_"+a.identifier})}else this.Sc=(new Date).getTime()/1E3,this.Qa&&this.xa.va("sdai",{adf:1}),this.Aa=!1,this.S.start(),this.qa=a,this.ya.clear(),this.Ya.clear(),this.Ba.clear(),this.Y.K("enable_h5_ssdai_decoration_records_clear_killswitch")&&this.La.clear(),this.Lb=[]};
g.k.Xv=function(a,b){a=US(this,a,b);if(!this.Y.experiments.jb("disable_ssdai_on_errors")||!a||this.Gp)return!1;this.Gp=!0;0<this.Zj&&(this.Zj=0,this.ea=null,this.api.ma("serverstitchedvideochange"));a=this.xa;b={reason:"disablessdai",sq:b};"disablessdai"===b.reason&&(a.videoData.rN=!0);a.Ed(new xG("qoe.restart",b));SV(a,!0);return!0};
g.k.Fs=function(){this.xa.va("sdai",{rstdaist:1});this.ya.clear();this.Ya.clear();this.Ba.clear()};
g.k.Fq=function(a){this.Ld.add(a);var b;(null==(b=this.qa)?void 0:b.identifier)===a&&KS(this)};
g.k.RJ=function(a,b,c,d){if(GS(this)){var e=this.xa.getVideoData().clientPlaybackNonce;a=a||e;b=b||e;if(a!==b){var f=a===e?MS(this):this.u.get(a),h=b===e?MS(this):this.u.get(b);f&&h?(c=this.I?c:d,NS(this.xa,f,h,c,d,this.I,!!this.J),this.J="",b===e?(this.kb=1E3*c,this.Zj=0,this.ea=null,this.xa.va("sdai",{adchg:this.Zj}),this.api.ma("serverstitchedvideochange")):(this.kb=0,this.Zj++,this.ea=h,this.xa.va("sdai",{adchg:this.Zj,apid:this.ea.Hc,acpn:this.ea.cpn}),this.api.ma("serverstitchedvideochange",
h.Hc,h.tp))):this.xa.va("sdai",{unknowntrans:"1",old:a,"new":b});this.I=!1}}};
g.k.Bq=function(a){var b=sO(this.api.wb());return b?b.Bq(a):!1};
var TKa=0;g.v(YS,g.J);g.k=YS.prototype;g.k.onCueRangeEnter=function(a){if(this.j===this.api.Jc()){var b=this.I.get(a);b?nLa(this,b.target,b.Jl,a):this.Ed("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:a.toString()})}else if(b=this.u.find(function(e){return e.Kp.Td===a})){var c=b.Kp,d=c.target;
c=c.Jl;d?nLa(this,d,c,a):mLa(this,b.Zc,c,a)}};
g.k.onQueuedVideoLoaded=function(){var a=this.J;bT(this);if(a){if(!aT(this,a)){var b=this.api.Jc();this.Ed("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:null==b?void 0:b.getVideoData().clientPlaybackNonce,ccpn:""+a.playerVars.cpn})}this.api.Jc().addCueRange(a.Kp.Td)}};
g.k.seekTo=function(a,b,c){a=void 0===a?0:a;c=void 0===c?null:c;if(void 0===b?0:b)hLa(this,a);else{b=this.api.Jc();var d=b===this.C?this.D:null;dT(this,!1);this.Z=a;null!=c&&this.S.start(c);b&&(this.D=d||b.getPlayerState(),MX(b),this.C=b)}};
g.k.Dh=function(a){g.sJ(a,128)&&qLa(this)};
g.k.isManifestless=function(){return MH(this.j.getVideoData())};
g.k.ra=function(){dT(this,!1);fT(this);g.J.prototype.ra.call(this)};
g.k.Ed=function(a,b){this.j.Ed(new xG(a,b))};
var iLa=0;var sLa="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_FOR_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_MUSIC_EMBEDDED_PLAYER WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.v(iT,g.J);iT.prototype.get=function(a){gT(this);var b=this.data.find(function(c){return c.key===a});
return b?b.value:null};
iT.prototype.set=function(a,b,c){this.remove(a,!0);gT(this);a={key:a,value:b,expire:Infinity};c&&isFinite(c)&&(c*=1E3,a.expire=(0,g.T)()+c);for(this.data.push(a);this.data.length>this.B;)(c=this.data.shift())&&jT(this,c,!0);hT(this)};
iT.prototype.remove=function(a,b){b=void 0===b?!1:b;var c=this.data.find(function(d){return d.key===a});
c&&(jT(this,c,b),g.$b(this.data,function(d){return d.key===a}),hT(this))};
iT.prototype.ra=function(){var a=this;g.J.prototype.ra.call(this);this.data.forEach(function(b){jT(a,b,!0)});
this.data=[]};g.lT.prototype.info=function(){};
var wLa=new Map;g.v(mT,g.J);mT.prototype.CC=function(a){if(a)return this.u.get(a)};
mT.prototype.ra=function(){kT(this.j);kT(this.u);g.J.prototype.ra.call(this)};g.v(nT,g.Bo);nT.prototype.ma=function(a){var b=g.za.apply(1,arguments);if(this.D.has(a))return this.D.get(a).push(b),!0;var c=!1;try{for(b=[b],this.D.set(a,b);b.length;)c=g.Bo.prototype.ma.call.apply(g.Bo.prototype.ma,[this,a].concat(g.t(b.shift())))}finally{this.D.delete(a)}return c};oT.prototype.add=function(a){this.j=(this.j+1)%this.data.length;this.data[this.j]=a};
oT.prototype.forEach=function(a){for(var b=this.j+1;b<this.data.length;b++)a(this.data[b]||0);for(b=0;b<=this.j;b++)a(this.data[b]||0)};
oT.prototype.clear=function(){for(var a=this.data.length,b=0;b<a;b++)this.data[b]=0;this.u=this.j=this.data.length-1};g.v(pT,g.J);pT.prototype.start=function(){this.u.start()};
pT.prototype.stop=function(){this.u.stop()};
pT.prototype.clear=function(){for(var a=g.r(this.j.values()),b=a.next();!b.done;b=a.next())b.value.clear()};
pT.prototype.sample=function(){for(var a=g.r(this.B),b=a.next();!b.done;b=a.next()){var c=g.r(b.value);b=c.next().value;c=c.next().value;this.j.has(b)||this.j.set(b,new sT(m1a.has(b)));this.j.get(b).update(c())}this.u.start()};
var m1a=new Set(["networkactivity"]);sT.prototype.update=function(a){this.u?(this.buffer.add(a-this.j||0),this.j=a):this.buffer.add(a)};
sT.prototype.clear=function(){this.buffer.clear();this.j=0};g.v(tT,g.J);tT.prototype.ra=function(){g.J.prototype.ra.call(this);this.j=null;this.u&&this.u.disconnect()};g.n1a=Zf(function(){var a=window.AudioContext||window.webkitAudioContext;try{return new a}catch(b){return b.name}});var r4;r4={};g.uT=(r4.STOP_EVENT_PROPAGATION="html5-stop-propagation",r4.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",r4.IV_DRAWER_OPEN="ytp-iv-drawer-open",r4.MAIN_VIDEO="html5-main-video",r4.VIDEO_CONTAINER="html5-video-container",r4.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",r4.HOUSE_BRAND="house-brand",r4);g.v(vT,g.W);g.k=vT.prototype;g.k.vp=function(){g.go(this.element,g.za.apply(0,arguments))};
g.k.di=function(){this.Nb&&(this.Nb.removeEventListener("focus",this.EJ),g.oh(this.Nb),this.Nb=null)};
g.k.mH=function(){this.isDisposed();var a=this.app.V();a.Sk||this.vp("tag-pool-enabled");a.D&&this.vp(g.uT.HOUSE_BRAND);"gvn"===a.playerStyle&&(this.vp("ytp-gvn"),this.element.style.backgroundColor="transparent");a.lc&&(this.YG=g.Sx("yt-dom-content-change",this.resize,this));this.T(window,"orientationchange",this.resize,this);this.T(window,"resize",this.resize,this)};
g.k.wA=function(a){this.UC=!a;wT(this)};
g.k.resize=function(){if(this.Nb){var a=this.Ki();if(!a.isEmpty()){var b=!g.Lg(a,this.Iw.getSize()),c=FLa(this);b&&(this.Iw.width=a.width,this.Iw.height=a.height);a=this.app.V();(c||b||a.lc)&&this.app.Va.ma("resize",this.getPlayerSize())}}};
g.k.Zp=function(a,b){this.updateVideoData(b)};
g.k.updateVideoData=function(a){if(this.Nb){var b=this.app.V();Uu&&(this.Nb.setAttribute("x-webkit-airplay","allow"),a.title?this.Nb.setAttribute("title",a.title):this.Nb.removeAttribute("title"));ABa(a)?this.Nb.setAttribute("disableremoteplayback",""):this.Nb.removeAttribute("disableremoteplayback");this.Nb.setAttribute("controlslist","nodownload");b.Dm&&a.videoId&&(this.Nb.poster=a.Mf("default.jpg"))}b=g.dI(a,"yt:bgcolor");this.oy.style.backgroundColor=b?b:"";this.hJ=gv(g.dI(a,"yt:stretch"));this.iJ=
gv(g.dI(a,"yt:crop"),!0);g.jo(this.element,"ytp-dni",a.C);this.resize()};
g.k.setGlobalCrop=function(a){this.fI=gv(a,!0);this.resize()};
g.k.setCenterCrop=function(a){this.iO=a;this.resize()};
g.k.Dk=function(){};
g.k.getPlayerSize=function(){var a=this.app.V(),b=this.app.Va.isFullscreen();if(b&&Nu())return new g.Kg(window.outerWidth,window.outerHeight);if(b||a.Zl){if(window.matchMedia){a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.Fz&&this.Fz.media===a||(this.Fz=window.matchMedia(a));var c=this.Fz&&this.Fz.matches}if(c)return new g.Kg(window.innerWidth,window.innerHeight)}else if(!isNaN(this.Ky.width)&&!isNaN(this.Ky.height))return this.Ky.clone();return new g.Kg(this.element.clientWidth,
this.element.clientHeight)};
g.k.Ki=function(){var a=this.app.V().K("enable_desktop_player_underlay"),b=this.getPlayerSize(),c=g.RE(this.app.V().experiments,"player_underlay_min_player_width");return a&&this.gK&&b.width>c?new g.Kg(b.width*g.RE(this.app.V().experiments,"player_underlay_video_width_fraction"),b.height):b};
g.k.getVideoAspectRatio=function(){return isNaN(this.hJ)?DLa(this):this.hJ};
g.k.getVideoContentRect=function(a){var b=this.Ki();a=ELa(this,b,this.getVideoAspectRatio(),a);return new g.wl((b.width-a.width)/2,(b.height-a.height)/2,a.width,a.height)};
g.k.Vw=function(a){this.gK=a;this.resize()};
g.k.fD=function(){return this.XD};
g.k.onMutedAutoplayChange=function(){wT(this)};
g.k.setInternalSize=function(a){g.Lg(this.Ky,a)||(this.Ky=a,this.resize())};
g.k.ra=function(){this.YG&&g.Tx(this.YG);this.di();g.W.prototype.ra.call(this)};g.k=GLa.prototype;g.k.click=function(a,b){this.elements.has(a);this.j.has(a);var c=g.zz();c&&a.visualElement&&g.Jz(c,a.visualElement,b)};
g.k.vb=function(a,b,c,d){var e=this;d=void 0===d?!1:d;this.elements.has(a);this.elements.add(a);c=Yra(c);a.visualElement=c;var f=g.zz(),h=g.yz();f&&h&&g.Dz(void 0,f,h,[c]);g.$e(b,function(){HLa(e,a)});
d&&this.u.add(a)};
g.k.Ug=function(a,b,c){var d=this;c=void 0===c?!1:c;this.elements.has(a);this.elements.add(a);g.$e(b,function(){HLa(d,a)});
c&&this.u.add(a)};
g.k.vO=function(a,b){this.clientPlaybackNonce!==b&&(this.clientPlaybackNonce=b,sDa(nK(),a),ILa(this))};
g.k.ji=function(a,b){this.elements.has(a);b&&(a.visualElement=g.sz(b))};
g.k.Tm=function(a){return this.elements.has(a)};g.v(BT,g.W);
BT.prototype.setValue=function(a,b){for(var c=0;c+2<this.B.length&&this.B[c+1]<b;)c++;b=Math.min(1,(b-this.B[c])/(this.B[c+1]-this.B[c]));if(this.ctx)this.ctx.fillStyle=this.C[c],this.ctx.fillRect(a*this.j,0,this.j,this.heightPx),this.ctx.fillStyle=this.C[c+1],this.ctx.fillRect(a*this.j,this.heightPx*(1-b),this.j,this.heightPx);else{a=this.element.children[a];var d=window.devicePixelRatio||1;b=Math.min(this.heightPx,Math.round(this.heightPx*b*d)/d)||0;a.style.height=b+"px";a.style.backgroundColor=this.C[c+
1];a.style.borderTop="solid "+(this.heightPx-b)+"px "+this.C[c]}};g.v(DT,g.W);g.k=DT.prototype;g.k.show=function(){g.W.prototype.show.call(this);this.Ja()};
g.k.hide=function(){g.W.prototype.hide.call(this);this.delay.stop()};
g.k.stop=function(){this.delay.stop()};
g.k.start=function(){this.delay.isActive()||this.Ja()};
g.k.Ja=function(){var a=(0,g.T)(),b=this.Va.getStatsForNerds();CT(this.j,b.bandwidth_samples);CT(this.C,b.network_activity_samples);CT(this.B,b.live_latency_samples);CT(this.u,b.buffer_health_samples);var c={};b=g.r(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=g.r(d.value);d=e.next().value;e=e.next().value;this.D[d]!==e&&(c[d]=" "+String(e));this.D[d]=e}this.update(c);a=25<(0,g.T)()-a?5E3:500;this.delay.start(a)};ET.prototype.setPlaybackRate=function(a){this.playbackRate=Math.max(1,a)};
ET.prototype.getPlaybackRate=function(){return this.playbackRate};IT.prototype.seek=function(a){a!==this.u&&(this.seekCount=0);this.u=a;var b=this.videoTrack.u,c=this.audioTrack.u,d=this.audioTrack.vc,e=NLa(this,this.videoTrack,a,this.videoTrack.vc);d=NLa(this,this.audioTrack,this.policy.Ba?a:e,d);a=Math.max(a,e,d);this.D=!0;this.j.isManifestless&&(LLa(this.videoTrack,b),LLa(this.audioTrack,c));return a};
IT.prototype.Gg=function(){return this.D};
var MLa=2/24;SLa.prototype.tick=function(a,b){this.ticks[a]=b?window.performance.timing.navigationStart+b:(0,g.T)()};g.v(NT,g.az);g.k=NT.prototype;
g.k.LJ=function(a,b,c,d){if(this.C&&d){d=[];var e=[],f=[],h=void 0,l=0;b&&(d=b.j,e=b.u,f=b.C,h=b.B,l=b.Vx);this.C.SJ(a.Na,a.startTime,this.u,d,e,f,c,l,h)}if(c){if(b&&!this.Z.has(a.Na)){c=a.startTime;d=[];e=g.r(b.j.entries());for(f=e.next();!f.done;f=e.next())h=g.r(f.value),f=h.next().value,h=h.next().value,l=c,c=l+b.u[f],d.push({startTime:l,endTime:c,adCpn:h});this.Z.set(a.Na,d)}this.policy.Ce&&(c=this.Aa&&a.Na===this.Aa.Na+1,this.Aa=a,d=this.j&&a.Na===this.j.Na+1,d=this.j&&c&&d&&"stop"!==this.j.qf.event&&
"predictStart"!==this.j.qf.event,e=a.qf||null,f=this.I.j.index.getLastSegmentNumber()<=a.Na,h=this.S.isManifestless&&this.policy.Dm,e?(this.j={qf:e,Na:a.Na,mz:!!b},f?OT(this,e,a.Na):h&&(c?d?OT(this,e,a.Na):"continue"===e.event||"stop"===e.event?YLa(this,a):OT(this,e,a.Na):OT(this,e,a.Na))):d&&YLa(this,a))}};
g.k.KJ=function(a,b,c){var d=this.I.j.index.getLastSegmentNumber()<=b;this.j={qf:a,Na:b,mz:c};d&&OT(this,a,b)};
g.k.Fs=function(){this.C&&this.C.Fs()};
g.k.va=function(a,b){this.Ka.va(a,b)};
g.k.Gl=function(a,b){var c=this.I.j.index.getSegmentNumberForTime(a),d;if(d=0<=c){var e;d=(null==(e=VS(b.rd,c,2))?void 0:e.hs)||""}if(d)return b.XK(a,c),XLa(this,a,a,c),this.va("sdai",{cmskpad:1,t:a.toFixed(3),sq:c}),!0;this.va("sdai",{cmskpad:0,t:a.toFixed(3),sq:c});return!1};
g.k.Vv=function(a){var b="",c=this.I.j.index.getSegmentNumberForTime(a);if(c=this.Z.get(c)){c=g.r(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.startTime<=a&&a<d.endTime){b=d.adCpn;break}}return b};ZLa.prototype.kx=function(a){var b=this.policy.S;this.policy.S=IE(a,{},this.I);if(b!==this.policy.S){ST(this,this.B);UT(this);var c,d;b>this.policy.S&&(null==(c=this.u)?0:SD(c.info))&&(null==(d=this.nextVideo)||!SD(d.info))&&(this.S=!0)}};aU.prototype.dispose=function(){this.qa=!0};
aU.prototype.isDisposed=function(){return this.qa};
g.v(gU,Error);kU.prototype.skip=function(a){this.offset+=a};
kU.prototype.getOffset=function(){return this.offset};oU.prototype.mj=function(){this.u=[];rU(this);nU(this)};
oU.prototype.aj=function(a){this.Qa=this.u.shift().info;a.info.equals(this.Qa)};
oU.prototype.cn=function(){return!!this.I.info.audio};
oU.prototype.getDuration=function(){return this.I.index.getMaxKnownEndTime()};g.k=xU.prototype;g.k.OH=function(){return 0};
g.k.DC=function(){return null};
g.k.bP=function(){return null};
g.k.isComplete=function(){return 3<=this.state};
g.k.isFailed=function(){return 5===this.state};
g.k.gg=function(){return this.lastError};
g.k.onStateChange=function(){};
g.k.Vc=function(a){var b=this.state;this.state=a;this.onStateChange(b);this.callback&&this.callback(this,b)};
g.k.wq=function(a){a&&this.state<a?this.Vc(a):this.callback&&this.callback(this,this.state)};
g.k.isDisposed=function(){return-1===this.state};
g.k.dispose=function(){this.isDisposed()||(this.info.j[0].j.D=!1,this.Vc(-1))};
g.k.aI=function(){return 0};yU.prototype.Yw=function(){if(!this.yf.length)return[];var a=this.yf;this.yf=[];this.D=g.Jb(a).info;return a};
yU.prototype.Hq=function(){return this.yf};g.v(JT,xU);g.k=JT.prototype;g.k.onStateChange=function(){this.isDisposed()&&($W(this.ze,this.formatId),this.j.dispose())};
g.k.Mv=function(){var a=UNa(this.ze,this.formatId),b;var c=(null==(b=this.ze.me.get(this.formatId))?void 0:b.bytesReceived)||0;var d;b=(null==(d=this.ze.me.get(this.formatId))?void 0:d.MB)||0;var e;d=(null==(e=this.ze.me.get(this.formatId))?void 0:e.yf.totalLength)||0;return{expected:a,received:c,bytesShifted:b,sliceLength:d,isEnded:this.ze.Yg(this.formatId)}};
g.k.YO=function(){return 0};
g.k.Ms=function(){return!0};
g.k.Yw=function(){this.uo();this.SC=!0;return this.Le.Yw()};
g.k.Hq=function(){this.uo();return this.Le.Hq()};
g.k.Hw=function(){var a,b;return!!(null==(a=this.Le)?0:null==(b=a.Hq())?0:b.length)||this.ze.Bh(this.formatId)};
g.k.uo=function(){for(;this.ze.Bh(this.formatId);){var a=this.Le,b=this.ze.aj(this.formatId),c=this.ze.me.get(this.formatId);zU(a,b,c.Xf&&!c.yf.totalLength&&MMa(this.ze,this.formatId))}};g.k=BU.prototype;g.k.Kg=function(){return yMa(this.C)};
g.k.aj=function(a){this.C.aj(a);this.Tb=Math.max(this.Tb,a.info.j.info.Tb||0)};
g.k.getDuration=function(){return this.j.index.getMaxKnownEndTime()};
g.k.mj=function(){KT(this);this.C.mj()};
g.k.isRequestPending=function(a){return this.B.length?a===this.B[this.B.length-1].info.j[0].Na:!1};g.k=OU.prototype;g.k.Aw=function(){this.xhr.status&&(this.status=this.xhr.status);this.xhr.readyState===this.xhr.HEADERS_RECEIVED&&this.callbacks.Cw()};
g.k.onError=function(){this.C=!0;this.onDone()};
g.k.onDone=function(){this.isDisposed||(this.u&&(this.j.append(this.u),delete this.u),this.callbacks.Gq())};
g.k.Gs=function(){return this.xhr.readyState>=this.xhr.HEADERS_RECEIVED};
g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return""}};
g.k.Oy=function(){return+this.getResponseHeader("content-length")};
g.k.ol=function(){return this.B};
g.k.lA=function(){return 200<=this.status&&300>this.status&&!!this.B};
g.k.Bh=function(){return 0<this.j.totalLength};
g.k.aj=function(){var a=this.j;this.j=new SB;return a};
g.k.Kg=function(){return this.j};
g.k.abort=function(){this.isDisposed=!0;this.xhr.abort()};
g.k.bx=function(){return!0};
g.k.fE=function(){return this.C};
g.k.rf=function(){return""};g.k=cNa.prototype;g.k.getResponseHeader=function(a){return"content-type"===a?this.j.get("type"):""};
g.k.abort=function(){};
g.k.Gs=function(){return!0};
g.k.Oy=function(){return this.range.length};
g.k.ol=function(){return this.loaded};
g.k.lA=function(){return!!this.loaded};
g.k.Bh=function(){return!!this.u.totalLength};
g.k.aj=function(){var a=this.u;this.u=new SB;return a};
g.k.Kg=function(){return this.u};
g.k.bx=function(){return!0};
g.k.fE=function(){return!!this.error};
g.k.rf=function(){return this.error};var dNa=0;g.k=PU.prototype;g.k.xs=function(){this.qa||(this.qa=this.callbacks.xs?this.callbacks.xs():1);return this.qa};
g.k.gD=function(){return this.uj?1!==this.xs():!1};
g.k.Cw=function(){this.Qa=this.now();this.callbacks.Cw()};
g.k.nt=function(a,b){RU(this,a,b);50>a-this.C&&TU(this)||hNa(this,a,b);this.callbacks.nt(a,b)};
g.k.Gq=function(){this.callbacks.Gq()};
g.k.deactivate=function(){this.isActive&&(this.isActive=!1)};
g.k.Ms=function(){return this.u>this.ND&&UU(this,this.u)};
g.k.now=function(){return(0,g.T)()};g.k=YU.prototype;g.k.start=function(a){var b={credentials:"include",cache:"no-store"};Object.assign(b,this.Z);this.B&&(b.signal=this.B.signal);a=new Request(a,b);fetch(a).then(this.qa,this.onError).then(void 0,Jv)};
g.k.onDone=function(){this.isDisposed()||this.callbacks.Gq()};
g.k.getResponseHeader=function(a){return this.D?this.D.get(a):null};
g.k.Gs=function(){return!!this.D};
g.k.ol=function(){return this.u};
g.k.Oy=function(){return+this.getResponseHeader("content-length")};
g.k.lA=function(){return 200<=this.status&&300>this.status&&!!this.u};
g.k.Bh=function(){return!!this.j.totalLength};
g.k.aj=function(){this.Bh();var a=this.j;this.j=new SB;return a};
g.k.Kg=function(){this.Bh();return this.j};
g.k.isDisposed=function(){return this.I};
g.k.abort=function(){this.yn&&this.yn.cancel().catch(function(){});
this.B&&this.B.abort();this.I=!0};
g.k.bx=function(){return!0};
g.k.fE=function(){return this.J};
g.k.rf=function(){return this.errorMessage};ZU.prototype.feed=function(a){for(TB(this.j,a);;){var b=0;b=g.r(mNa(this.j,b));a=b.next().value;b=b.next().value;b=g.r(mNa(this.j,b));var c=b.next().value;b=b.next().value;if(0>a||0>c||!(b+c<=this.j.totalLength))break;b=this.j.split(b).ap.split(c);c=b.ap;this.callbacks.zR(a,b.TC);this.j=c}};
ZU.prototype.dispose=function(){this.j=new SB};g.k=$U.prototype;g.k.onDone=function(){if(!this.isDisposed){this.status=this.xhr.status;try{this.response=this.xhr.response,this.u=this.response.byteLength}catch(a){}this.j=!0;this.callbacks.Gq()}};
g.k.Aw=function(){2===this.xhr.readyState&&this.callbacks.Cw()};
g.k.Yd=function(a){this.isDisposed||(this.status=this.xhr.status,this.j||(this.u=a.loaded),this.callbacks.nt((0,g.T)(),a.loaded))};
g.k.Gs=function(){return 2<=this.xhr.readyState};
g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return gu(Error("Could not read XHR header "+a)),""}};
g.k.Oy=function(){return+this.getResponseHeader("content-length")};
g.k.ol=function(){return this.u};
g.k.lA=function(){return 200<=this.status&&300>this.status&&this.j&&!!this.u};
g.k.Bh=function(){return this.j&&!!this.response&&!!this.response.byteLength};
g.k.aj=function(){this.Bh();var a=this.response;this.response=void 0;return new SB([new Uint8Array(a)])};
g.k.Kg=function(){this.Bh();return new SB([new Uint8Array(this.response)])};
g.k.abort=function(){this.isDisposed=!0;this.xhr.abort()};
g.k.bx=function(){return!1};
g.k.fE=function(){return!1};
g.k.rf=function(){return""};g.v(dV,xU);g.k=dV.prototype;g.k.ye=function(){return this.Qf.ye()};
g.k.Mv=function(){var a=QU(this.timing);a.shost=MB(this.Qf.lj);this.Jg&&(a.rc=this.Jg.toString());a.itag=this.info.j[0].j.info.itag;a.ml=""+ +this.info.j[0].j.Yf();a.sq=""+this.info.j[0].Na;this.Qf&&(a.ifi=""+ +OB(this.info.u.C));410!==this.Jg&&500!==this.Jg&&503!==this.Jg||(a.fmt_unav="true");var b,c=null==(b=this.xhr)?void 0:b.rf();c&&(a.msg=c);this.GA&&(a.smb="1");this.Le&&(b=this.Le.Hq(),b.length&&mxa(b[0],a));this.info.Hm()&&(a.sdai="1");return a};
g.k.YO=function(){return lNa(this.timing)};
g.k.rf=function(){return this.xhr.rf()||""};
g.k.Ms=function(){return this.isComplete()||this.timing.Ms()};
g.k.nt=function(){!this.isDisposed()&&this.xhr&&(this.Jg=this.xhr.status,this.Hw()?this.wq(2):!this.FP&&this.Ms()&&(this.wq(),this.FP=!0))};
g.k.Cw=function(){if(!this.isDisposed()&&this.xhr){if(!this.Av&&this.xhr.Gs()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var a=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.Av=((0,g.T)()-a)/1E3}this.xhr.Gs()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.du&&!mya()&&g.Nz("yt-player-headers-readable",!0,2592E3);a=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var b=Number(this.xhr.getResponseHeader("X-Head-Time-Millis"));this.Um=a||this.Um;this.zo=b||this.zo}};
g.k.Gq=function(){var a=this.xhr;!this.isDisposed()&&a&&(this.pE.stop(),this.Jg=a.status,a=DNa(this,a),5===a?cV(this):this.Vc(a))};
g.k.canRetry=function(){this.isDisposed();var a=aV(this),b=this.info.Hm()?this.policy.au:this.policy.Af;return a.timedOut<this.policy.lr&&a.j<b};
g.k.onStateChange=function(){this.isComplete()&&(this.policy.kf?eV(this):this.timing.deactivate())};
g.k.b4=function(){this.isComplete();if(!this.isDisposed()){var a=(0,g.T)(),b=!1;TU(this.timing)?(a=this.timing.Z,fNa(this.timing),this.timing.Z-a>=.8*this.Mw?(this.So++,b=this.So>=this.policy.Wl):this.So=0):(b=this.timing,b.uj&&WU(b,b.now()),a-=b.S,this.policy.Li&&0<a&&(this.So+=1),b=Jwa(aV(this),this.policy,!1)*this.policy.Tl,b=a>1E3*b);this.So&&this.callback&&this.callback(this,this.state);b?ENa(this,!1):this.pE.start()}};
g.k.dispose=function(){xU.prototype.dispose.call(this);this.pE.dispose();this.policy.kf||eV(this)};
g.k.Yw=function(){if(!this.Hq().length)return[];this.SC=!0;return this.Le.Yw()};
g.k.Hw=function(){if(1>this.state)return!1;if(this.Le&&this.Le.yf.length)return!0;var a;return(null==(a=this.xhr)?0:a.Bh())?!0:!1};
g.k.Hq=function(){this.uo(!1);return this.Le?this.Le.Hq():[]};
g.k.uo=function(a){if(a||this.xhr.Gs()&&this.xhr.Bh()&&!CNa(this)&&!this.xt){if(!this.Le){var b;this.xhr.bx()?b=pD(this.info):b=this.xhr.ol();this.Le=new yU(this.policy,this.info.j,b)}for(;this.xhr.Bh();)this.ix?this.ix.feed(this.xhr.aj()):zU(this.Le,this.xhr.aj(),a&&!this.xhr.Bh())}};
g.k.zR=function(a,b){switch(a){case 21:a=b.split(1).ap;zU(this.Le,a,!1);break;case 22:this.iT=!0;break;case 43:if(a=aH(new WG(b),1))this.info.gk(this.Qf,a),this.jT=!0}};
g.k.ol=function(){return this.xhr.ol()};
g.k.OH=function(){return this.Av};
g.k.xs=function(){return this.gD()?2:1};
g.k.gD=function(){if(!this.policy.C.cj||!isNaN(this.info.Uf)&&0<this.info.Uf)return!1;if(!this.xhr.Gs())return!0;var a=this.xhr;a.Oy()?a=!1:(a=a.getResponseHeader("content-type"),a="audio/mp4"===a||"video/mp4"===a||"video/webm"===a);return!a||isNaN(this.info.Uf)&&(a=this.xhr.getResponseHeader("x-head-seqnum"))&&Number(a)>this.info.j[0].Na?!1:!0};
g.k.aI=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0};
g.k.DC=function(){this.xhr&&(this.Um=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.Um};
g.k.bP=function(){this.xhr&&(this.zo=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.zo};g.v(fV,g.J);
fV.prototype.Xv=function(a){var b=a.info.j[0].j,c=a.gg();if(NB(b.u.j)){var d=g.zc(a.rf());this.Ka.va("dldbrerr",{em:d||"none"})}d=a.info.j[0].Na;var e=VLa(this.B,a.info.j[0].C,d);"net.badstatus"===c&&(this.J+=1);if(a.canRetry()){if(!(a.info.u.u>=this.policy.au&&this.u&&a.info.Hm()&&"net.badstatus"===a.gg()&&this.u.Xv(e,d))){d=(b.info.video&&1<b.u.u||410===a.Jg||500===a.Jg||503===a.Jg)&&!XT(this.D)&&!NB(b.u.j);e=a.Mv();var f=b.info.video?this.videoTrack:this.audioTrack;d&&(e.stun="1");this.Ka.handleError(c,
e);this.isDisposed()||(d&&WT(this.D,b),MU(f,a),this.Ka.Tj())}}else b=1,this.u&&a.info.Hm()&&"net.badstatus"===a.gg()&&this.u.Xv(e,d)&&(b=0),this.j.isLive&&"net.badstatus"===a.gg()&&this.J<=2*this.policy.Af?(eya(this.j),this.policy.Ut||!this.j.uf&&!this.j.isPremiere?!this.policy.Ut&&this.j.C?this.Ka.xa.seekTo(this.j.Rb,{Ae:"badStatusWorkaround",xp:!0}):hOa(this.Ka):this.Ka.xa.seekTo(0,{Ae:"badStatusWorkaround"})):this.Ka.handleError(c,a.Mv(),b)};
fV.prototype.ra=function(){this.C=null;this.S="";g.J.prototype.ra.call(this)};
var iV=2/24;LNa.prototype.clear=function(){this.u=this.J=this.C=null;this.j=this.D=this.I=this.startTimeSecs=NaN;this.B=!1};g.v(g.pV,g.J);g.k=g.pV.prototype;
g.k.initialize=function(a,b,c){a=a||0;this.xa.ED(gMa(this.ge));if(this.j.isManifestless){if(this.policy.Bk){b=Wva(this.policy);for(var d in this.j.j)this.j.j.hasOwnProperty(d)&&(this.j.j[d].index.B=b)}KNa(this.B)}this.C&&NNa(this.C,this.videoTrack.j);this.policy.ya&&pB()&&this.va("streaming",{ac:!!window.AbortController||qB()},!0);d=isNaN(this.currentTime)?0:this.currentTime;this.currentTime=this.j.isManifestless?d:a;this.Z&&(VNa(this,this.videoTrack),VNa(this,this.audioTrack),BQa(this.Z),delete this.Z);
c?(this.policy.Te?(this.Ia=c,rV(this,c)):rV(this,!1),g.Yn(this.oD)):(a=0===this.currentTime,mV(this.B,this.videoTrack,this.videoTrack.j,a),mV(this.B,this.audioTrack,this.audioTrack.j,a),this.seek(this.currentTime).bj(function(){}),this.timing.tick("gv"));
(this.j.df||this.j.Vh||this.j.Rb||this.j.zc||this.j.Sc)&&this.va("minMaxSq",{minSq:this.j.df,maxSq:this.j.Vh,minDvrTime:this.j.Rb,maxDvrTime:this.j.zc,startWalltime:this.j.Sc})};
g.k.resume=function(){if(this.isSuspended||this.mw){this.qH=this.mw=this.isSuspended=!1;try{this.Tj()}catch(a){g.oz(a)}}};
g.k.setAudioTrack=function(a){if(!this.isDisposed()){var b=this.ge;b.j=b.C.j[a.id];b.J=b.j;a=new RT(b.J,b.u,"m");uV(this.xa,a.reason,a.audio.info);vV(this.xa)}};
g.k.setPlaybackRate=function(a){a!==this.S.getPlaybackRate()&&this.S.setPlaybackRate(a)};
g.k.bI=function(){return this.xa.bI()};
g.k.LC=function(){return this.xa.LC()};
g.k.il=function(){return this.xa.il()};
g.k.UJ=function(a){this.xa.UJ(a)};
g.k.Tj=function(){tV(this);if(this.mediaSource&&pE(this.mediaSource)&&!this.mediaSource.Th()){var a=DU(this.videoTrack);a=this.policy.Tk&&a&&dD(a);this.j.isManifestless&&this.j.C&&zE(this.j)?(this.I=zE(this.j),this.mediaSource.Cj(this.I)):DE(this.j)&&!a?isNaN(this.I)?(this.I=this.currentTime+3600,this.mediaSource.Cj(this.I)):this.I<=this.currentTime+1800&&(this.I=Math.max(this.I+1800,this.currentTime+3600),this.mediaSource.Cj(this.I)):this.mediaSource.isView||(a=Math.max(this.audioTrack.getDuration(),
this.videoTrack.getDuration()),(!isFinite(this.I)||this.I!==a)&&0<a&&(this.mediaSource.Cj(a),this.I=a))}if(!this.isDisposed())if(yE(this.j)&&this.j.isFailed())this.handleError("manifest.net.retryexhausted",{rc:this.j.Jg.toString()},1);else if(!this.j.u||!WMa(this.videoTrack)&&!WMa(this.audioTrack)||(this.videoTrack.D||this.audioTrack.D)&&this.policy.ob?a=!1:(this.mj(),this.xa.seekTo(Infinity,{Ae:"checkLoaderTracksSync",xp:!0}),a=!0),!a){tV(this);try{FU(this.videoTrack);if(this.isDisposed())return;
FU(this.audioTrack);if(this.isDisposed())return}catch(e){JNa(this,e,{origin:"pollSlice"})}this.j.isManifestless&&(XMa(this.videoTrack),XMa(this.audioTrack),QLa(this.D),(a=this.videoTrack.Kg())&&a.u&&(a=a.u.D&&!this.policy.Wn,this.va(a===this.policy.C.cj?"strm":"strmbug",{strm:a,sfmp4:this.policy.C.cj,dfs:this.policy.Wn},!0)));if(this.mediaSource)WNa(this);else if(this.policy.j){(a=this.videoTrack.Kg())&&this.videoTrack.aj(a);var b=this.audioTrack.Kg();b&&this.audioTrack.aj(b);HU(this.videoTrack)&&
HU(this.audioTrack)||(a||b)&&wV(this)}qV(this);mV(this.B,this.videoTrack,this.videoTrack.j,!1);mV(this.B,this.audioTrack,this.audioTrack.j,!1);a=this.videoTrack;var c=this.audioTrack;if((!this.mediaSource||pE(this.mediaSource)&&!this.policy.Gb)&&!this.D.Gg()&&NU(a)&&a.j.Yf()&&this.ge.S){b=this.currentTime;var d=this.S;c=GT(d,a.j.info.Tb,c.j.info.Tb,0);d=zF(d.schedule)+c/BF(d.schedule);b+=Math.max(d,d+10-c/a.j.info.Tb);a:{if(a.B.length){if(a.B[0].info.j[0].startTime<=b)break a;KT(a)}d=a.C;for(c=d.u.length-
1;0<=c;c--)d.u[c].info.startTime>b&&d.u.pop();a.B.length?a.u=g.Jb(g.Jb(a.B).info.j):a.C.u.length?a.u=pU(a.C).info:a.u=DU(a);a.u&&b<a.u.startTime&&(a.ea=0,a.j.Yf()?a.u=a.j.Km(b,!0).j[0]:a.u=null)}}FNa(this.B,this.videoTrack,this.audioTrack);FNa(this.B,this.audioTrack,this.videoTrack);this.policy.cm&&this.Aa&&!this.isSuspended&&fza(this.schedule)&&(dOa(this,this.Aa),this.Aa="");this.C&&(a=this.C,a.C?(b=a.I+a.policy.Xi,a.B||(b=Math.min(b,a.startTimeSecs+a.policy.pe)),a=Math.max(0,1E3*b-Date.now())):
a=NaN,isNaN(a)||g.Yn(this.Wa,a));g.Yn(this.La)}};
g.k.qW=function(a){var b=this;if(this.policy.qa&&this.mediaSource){var c=a===this.mediaSource.j,d=a.FC();d&&(d.Kb&&!d.Ge||this.va("sbu",a.Sb({a:c})),d.Ge&&!a.Th()&&setTimeout(function(){var e=a.Cg(),f=fE(e,d.startTime+iV),h=fE(e,b.currentTime);(0>f||f!==h)&&b.va("sbu_mismatch",{b:eE(e),c:b.currentTime,s:mD(d)})},0))}this.Tj()};
g.k.x0=function(a){if(this.mediaSource){var b=DU(a===this.mediaSource.j?this.audioTrack:this.videoTrack);if(a=a.XH())for(var c=0;c<a.length;c++)this.va("appendedbuffer",{i:c,b:g.xc(a[c].subarray(0,4096),3)});a=void 0;b&&(a=iD(b));this.handleError("fmt.unplayable",a,1)}};
g.k.zw=function(a){this.xa.zw(a)};
g.k.LJ=function(a,b,c){this.j.isManifestless&&HMa(this,b,c,!!a.info.video,!0)};
g.k.KJ=function(a,b,c,d){a.info.video&&this.u.KJ(b,c,d)};
g.k.cz=aa(8);g.k.seek=function(a){if(this.isDisposed())return Gh();if(this.videoTrack.J||this.audioTrack.J)return Gh("seeking to head");tV(this);this.B.Z=(0,g.T)();qV(this,a);this.mediaSource&&this.mediaSource.j&&this.mediaSource.u&&(this.mediaSource.j.isLocked()||this.mediaSource.u.isLocked())&&vV(this.xa,{reattachOnLockedBuffer:1,vsb:""+this.mediaSource.u.isLocked(),asb:""+this.mediaSource.j.isLocked()});var b=this.currentTime;this.currentTime=this.D.seek(a);QT(this.u,a,b);wV(this);return Fh(this.currentTime)};
g.k.getCurrentTime=function(){return this.currentTime};
g.k.PH=function(){return this.audioTrack.j.info.j};
g.k.QH=function(){return this.videoTrack.j.info.j};
g.k.ra=function(){try{sV(this),KT(this.audioTrack),KT(this.videoTrack),g.J.prototype.ra.call(this)}catch(a){g.oz(a)}};
g.k.handleError=function(a,b,c){c=void 0===c?0:c;var d=yG(c);if("fmt.unplayable"===a&&this.j.isLive&&(this.policy.ya=!1,this.policy.Qu)){var e=this.j;if(e.isManifestless)for(var f in e.j)e.j[f].index.segments=[]}b=new xG(a,b,c);g.Oa(this);wG(b.details);this.xa.handleError(b);"html5.invalidstate"!==a&&"fmt.unplayable"!==b.errorCode&&"fmt.unparseable"!==a&&d&&this.dispose()};
g.k.Sb=function(){var a=DU(this.audioTrack),b=DU(this.videoTrack);a={lct:this.currentTime.toFixed(3),lsk:this.D.Gg(),lmf:ZT(this.ge),lbw:AF(this.schedule).toFixed(3),lhd:zF(this.schedule).toFixed(3),lst:(1E9*(this.schedule.j.Rh()||0)).toFixed(3),laa:a?mD(a):"",lva:b?mD(b):"",lar:this.audioTrack.u?mD(this.audioTrack.u):"",lvr:this.videoTrack.u?mD(this.videoTrack.u):"",laq:""+IU(this.audioTrack),lvq:""+IU(this.videoTrack)};this.mediaSource&&!this.mediaSource.Xf()&&this.mediaSource.j&&this.mediaSource.u&&
(a.lab=eE(this.mediaSource.j.Cg()),a.lvb=eE(this.mediaSource.u.Cg()));this.ea&&(a.lapt=((0,g.T)()-this.ea).toFixed(0),a.lapr=$Na(this));return a};
g.k.mj=function(){try{this.audioTrack.mj(),this.videoTrack.mj()}catch(a){g.oz(a)}this.policy.j=""};
g.k.MH=function(){return FT(this.S)};
g.k.va=function(a,b,c){this.xa.va(a,b,void 0===c?!1:c)};
g.k.Tf=function(){return this.xa.Tf()};
g.k.xp=function(a,b){a/=b;isNaN(this.timestampOffset)&&zV(this,a-Math.min(a,this.policy.zg));return(a-this.timestampOffset)*b};
g.k.Gg=function(){return this.D.Gg()};
g.k.Fs=function(){this.u.Fs()};
g.k.kx=function(a){this.ge.kx(a)};
g.k.Gl=function(a,b){return this.J&&this.u.Gl(a,this.J)?(zV(this,this.timestampOffset-b),wV(this),!0):!1};
g.k.Vv=function(a){return this.u.Vv(a)};g.k=g.AV.prototype;g.k.Hm=function(a,b,c,d){return this.rd.Hm(a,b,c,d)};
g.k.Es=function(a,b,c,d){return this.rd.Es(a,b,c,d)};
g.k.hI=function(a){this.rd.hI(a)};
g.k.Xv=function(a,b){return this.rd.Xv(a,b)};
g.k.Fs=function(){this.rd.Fs()};
g.k.XK=function(a,b){this.rd.XK(a,b)};
g.k.zK=function(){this.rd.zK()};
g.k.Py=aa(33);g.k.gk=function(a,b,c){this.rd.gk(a,b,c)};
g.k.RA=aa(31);g.k.SJ=function(a,b,c,d,e,f,h,l,m){this.rd.SJ(a,b,c,d,e,f,h,l,m)};
g.k.RK=function(a){this.rd.RK(a)};
g.k.RJ=function(a,b,c,d){this.rd.RJ(a,b,c,d)};
g.k.Bq=function(a){return this.rd.Bq(a)};g.v(BV,g.az);g.v(CV,BV);CV.prototype.I=function(a,b){if(a&&b){var c=1*Number(yi(a,"cpi"))+1;isNaN(c)||0>=c||c<this.B?(this.C.stop(),this.u.stop(),this.B=-1,this.j={}):(c>this.B&&(this.B=c,g.vf(this.j)||(this.j={},this.C.stop(),this.u.stop())),this.j[b]=a,g.Yn(this.u))}};
CV.prototype.D=function(){for(var a=g.r(Object.keys(this.j)),b=a.next();!b.done;b=a.next()){var c=b.value;b=this.ma;for(var d=this.B,e=this.j[c].match(ii),f=[],h=g.r(e[6].split("&")),l=h.next();!l.done;l=h.next())l=l.value,0===l.indexOf("cpi=")?f.push("cpi="+d.toString()):0===l.indexOf("ek=")?f.push("ek="+g.Rg(c)):f.push(l);e[6]="?"+f.join("&");c="skd://"+e.slice(2).join("");e=2*c.length;d=new Uint8Array(e+4);d[0]=e%256;d[1]=(e-d[0])/256;for(e=0;e<c.length;++e)d[2*e+4]=c.charCodeAt(e);b.call(this,
"rotated_need_key_info_ready",new hU(d,"fairplay",!0))}this.j={}};
CV.prototype.ra=function(){this.j={};BV.prototype.ra.call(this)};var s4={},qOa=(s4.DRM_TRACK_TYPE_AUDIO="AUDIO",s4.DRM_TRACK_TYPE_SD="SD",s4.DRM_TRACK_TYPE_HD="HD",s4.DRM_TRACK_TYPE_UHD1="UHD1",s4);g.v(mOa,g.J);g.v(EV,g.az);g.k=EV.prototype;g.k.Eq=function(a){var b=this;this.isDisposed()||0>=a.size||(a.forEach(function(c,d){var e=NE(b.u)?d:c;d=new Uint8Array(NE(b.u)?c:d);NE(b.u)&&EOa(d);c=g.xc(d,4);EOa(d);d=g.xc(d,4);b.j[c]?b.j[c].status=e:b.j[d]?b.j[d].status=e:b.j[c]={type:"",status:e}}),COa(this,","),DV(this,{onkeystatuschange:1}),this.status="kc",this.ma("keystatuseschange",this))};
g.k.error=function(a,b,c,d){this.isDisposed()||(this.ma("licenseerror",a,b,c,d),"drm.provision"===a&&(a=(Date.now()-this.I)/1E3,this.I=NaN,this.ma("ctmp","provf",{et:a.toFixed(3)})));yG(b)&&this.dispose()};
g.k.shouldRetry=function(a,b){return this.Ba&&this.J?!1:!a&&this.requestNumber===b.requestNumber};
g.k.ra=function(){this.j={};g.az.prototype.ra.call(this)};
g.k.Sb=function(){var a={ctype:this.S.contentType||"",length:this.S.initData.length,requestedKeyIds:this.ya,cryptoPeriodIndex:this.cryptoPeriodIndex};this.B&&(a.keyStatuses=this.j);return a};
g.k.Dg=function(){var a=this.D.join();if(FV(this)){var b=new Set,c;for(c in this.j)"usable"!==this.j[c].status&&b.add(this.j[c].type);a+="/UKS."+Array.from(b)}return a+="/"+this.cryptoPeriodIndex};
g.k.ye=function(){return this.url};g.v(IV,g.J);g.k=IV.prototype;g.k.rW=function(a){if(this.D){var b=a.messageType||"license-request";this.D(new Uint8Array(a.message),b)}};
g.k.Eq=function(){this.J&&this.J(this.j.keyStatuses)};
g.k.oR=function(a){this.D&&this.D(a.message,"license-request")};
g.k.nR=function(a){if(this.B){if(this.u){var b=this.u.error.code;a=this.u.error.systemCode}else b=a.errorCode,a=a.systemCode;this.B("t.prefixedKeyError;c."+b+";sc."+a,b,a)}};
g.k.mR=function(){this.I&&this.I()};
g.k.update=function(a){var b=this;if(this.j)return this.j.update(a).then(null,fu(function(c){HOa(b,"t.update",c)}));
this.u?this.u.update(a):this.element.addKey?this.element.addKey(this.S.keySystem,a,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.S.keySystem,a,this.initData,this.sessionId);return Gu()};
g.k.ra=function(){this.j&&this.j.close();this.element=null;g.J.prototype.ra.call(this)};g.v(JV,g.J);g.k=JV.prototype;g.k.attach=function(){var a=this;if(this.j.keySystemAccess)return this.j.keySystemAccess.createMediaKeys().then(function(b){a.isDisposed()||(a.u=b,a.element.setMediaKeys(b))});
ME(this.j)?this.B=new (LE())(this.j.keySystem):OE(this.j)?(this.B=new (LE())(this.j.keySystem),this.element.webkitSetMediaKeys(this.B)):(Zy(this.D,this.element,["keymessage","webkitkeymessage"],this.uW),Zy(this.D,this.element,["keyerror","webkitkeyerror"],this.tW),Zy(this.D,this.element,["keyadded","webkitkeyadded"],this.sW));return null};
g.k.setServerCertificate=function(){return this.u.setServerCertificate?"widevine"===this.j.flavor&&this.j.Mj?this.u.setServerCertificate(this.j.Mj):this.j.C&&"fairplay"===this.j.flavor&&this.j.ya?this.u.setServerCertificate(this.j.ya):null:null};
g.k.createSession=function(a,b){var c=a.initData;if(this.j.keySystemAccess){b&&b("createsession");var d=this.u.createSession();PE(this.j)&&(c=IOa(c,this.j.ya));b&&b("genreq");a=d.generateRequest(a.contentType,c);var e=new IV(null,null,null,d,null);a.then(function(){b&&b("genreqsuccess")},fu(function(f){HOa(e,"t.generateRequest",f)}));
return e}if(ME(this.j))return KOa(this,c);if(OE(this.j))return JOa(this,c);this.element.generateKeyRequest?this.element.generateKeyRequest(this.j.keySystem,c):this.element.webkitGenerateKeyRequest(this.j.keySystem,c);return this.C=new IV(this.element,this.j,c,null,null)};
g.k.uW=function(a){var b=KV(this,a);b&&b.oR(a)};
g.k.tW=function(a){var b=KV(this,a);b&&b.nR(a)};
g.k.sW=function(a){var b=KV(this,a);b&&b.mR(a)};
g.k.getMetrics=function(){if(this.u&&this.u.getMetrics)try{var a=this.u.getMetrics()}catch(b){}return a};
g.k.ra=function(){this.B=this.u=null;var a;null==(a=this.C)||a.dispose();a=g.r(Object.values(this.I));for(var b=a.next();!b.done;b=a.next())b.value.dispose();this.I={};g.J.prototype.ra.call(this);delete this.element};g.v(LV,g.J);
LV.prototype.init=function(){var a=this,b,c;return g.z(function(d){if(1==d.j)return g.zl(a.j,{position:"absolute",width:"1px",height:"1px",display:"block"}),a.j.src=a.B.B,document.body.appendChild(a.j),a.C.T(a.j,"encrypted",a.I),b=[{initDataTypes:["keyids","cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="mp4a"'}],videoCapabilities:[{contentType:'video/mp4; codecs="avc1"'}]}],g.x(d,navigator.requestMediaKeySystemAccess("com.youtube.fairplay",b),2);c=d.u;a.B.keySystemAccess=c;a.u=new JV(a.j,
a.B);g.M(a,a.u);a.u.attach();g.na(d)})};
LV.prototype.I=function(a){if(!this.isDisposed()){var b=new Uint8Array(a.initData);a=new hU(b,a.initDataType);var c=iOa(b).replace("skd://","https://"),d={},e=this.u.createSession(a,function(){});
e&&(g.M(this,e),this.D.push(e),tOa(e,function(f){FOa(f,e.j,c,d)},function(){},function(){},function(){}))}};
LV.prototype.ra=function(){this.D=[];this.j&&this.j.parentNode&&this.j.parentNode.removeChild(this.j);g.J.prototype.ra.call(this)};g.v(MV,BV);
MV.prototype.I=function(a){var b;if(!(b=!this.C)){a:{if((b=a.cryptoPeriodIndex)&&0<this.j.length)for(var c=g.r(this.j),d=c.next();!d.done;d=c.next())if(b===d.value.info.cryptoPeriodIndex){b=!0;break a}b=!1}b=!b}if(b){b=(0,g.T)();if(!(c=this.D)){a:{c=a.cryptoPeriodIndex;if(!isNaN(c)){d=g.r(this.B.values());for(var e=d.next();!e.done;e=d.next())if(1>=Math.abs(e.value.cryptoPeriodIndex-c)){c=!0;break a}}c=!1}c=!c}c?c=0:(c=a.j,c=1E3*Math.max(0,Math.random()*((isNaN(c)?120:c)-30)));this.ma("log_qoe",{wvagt:"delay."+
c,cpi:a.cryptoPeriodIndex,reqlen:this.j.length});this.C&&0>=c?LOa(this,a):(this.j.push({time:b+c,info:a}),g.Yn(this.u,c))}};
MV.prototype.ra=function(){this.j=[];BV.prototype.ra.call(this)};NV.prototype.get=function(a){a=this.findIndex(a);return-1!==a?this.values[a]:null};
NV.prototype.remove=function(a){a=this.findIndex(a);-1!==a&&(this.keys.splice(a,1),this.values.splice(a,1))};
NV.prototype.set=function(a,b){var c=this.findIndex(a);-1!==c?this.values[c]=b:(this.keys.push(a),this.values.push(b))};
NV.prototype.findIndex=function(a){return g.Rb(this.keys,function(b){return g.mc(a,b)})};g.v(PV,g.az);g.k=PV.prototype;g.k.vW=function(a){this.zi({onecpt:1});a.initData&&QOa(this,new Uint8Array(a.initData),a.initDataType)};
g.k.F1=function(a){this.zi({onndky:1});QOa(this,a.initData,a.contentType)};
g.k.zw=function(a){this.zi({onneedkeyinfo:1});this.Y.K("html5_eme_loader_sync")&&(this.J.get(a.initData)||this.J.set(a.initData,a));POa(this,a)};
g.k.MN=function(a){this.B.push(a);QV(this)};
g.k.createSession=function(a){var b=ROa(this)?vMa(a):g.xc(a.initData);this.u.get(b);this.Aa=!0;a=new EV(this.videoData,this.Y,a,this.drmSessionId);this.u.set(b,a);a.subscribe("ctmp",this.PQ,this);a.subscribe("keystatuseschange",this.Eq,this);a.subscribe("licenseerror",this.DD,this);a.subscribe("newlicense",this.iR,this);a.subscribe("newsession",this.jR,this);a.subscribe("sessionready",this.vR,this);a.subscribe("fairplay_next_need_key_info",this.aR,this);vOa(a,this.C)};
g.k.iR=function(a){this.isDisposed()||(this.zi({onnelcswhb:1}),a&&!this.heartbeatParams&&(this.heartbeatParams=a,this.ma("heartbeatparams",a)))};
g.k.jR=function(){this.isDisposed()||(this.zi({newlcssn:1}),this.B.shift(),this.Aa=!1,QV(this))};
g.k.vR=function(){if(ME(this.j)&&(this.zi({onsnrdy:1}),this.Ia--,0===this.Ia)){var a=this.ea;a.element.msSetMediaKeys(a.B)}};
g.k.Eq=function(a){if(!this.isDisposed()){!this.Ba&&this.videoData.K("html5_log_drm_metrics_on_key_statuses")&&(SOa(this),this.Ba=!0);this.zi({onksch:1});if(!FV(a)&&g.vw&&"com.microsoft.playready"===a.u.keySystem&&navigator.requestMediaKeySystemAccess)var b="large";else{b=[];var c=!0;if(FV(a))for(var d=g.r(Object.keys(a.j)),e=d.next();!e.done;e=d.next())e=e.value,"usable"===a.j[e].status&&b.push(a.j[e].type),"unknown"!==a.j[e].status&&(c=!1);if(!FV(a)||c)b=a.D;b=g.Sb(b,"UHD2")||g.Sb(b,"UHD2HDR")?
"highres":g.Sb(b,"UHD1")||g.Sb(b,"UHD1HDR")?"hd2160":g.Sb(b,"HD")||g.Sb(b,"HDHDR")?"hd1080":g.Sb(b,"HD720")||g.Sb(b,"HD720HDR")?"hd720":"large"}a:{c=g.uB("auto",b,!1,"l");if(this.videoData.Xi){if(this.S.equals(c))break a}else if(Iva(this.S,b))break a;this.S=c;this.ma("qualitychange");this.zi({updtlq:b})}this.ma("keystatuseschange",a)}};
g.k.PQ=function(a,b){this.isDisposed()||this.ma("ctmp",a,b)};
g.k.aR=function(a,b){this.isDisposed()||this.ma("fairplay_next_need_key_info",a,b)};
g.k.DD=function(a,b,c,d){this.isDisposed()||(this.videoData.K("html5_log_drm_metrics_on_error")&&SOa(this),this.ma("licenseerror",a,b,c,d))};
g.k.zs=function(){return this.S};
g.k.ra=function(){this.j.keySystemAccess&&this.element&&this.element.setMediaKeys(null);this.element=null;this.B=[];for(var a=g.r(this.u.values()),b=a.next();!b.done;b=a.next())b=b.value,b.unsubscribe("ctmp",this.PQ,this),b.unsubscribe("keystatuseschange",this.Eq,this),b.unsubscribe("licenseerror",this.DD,this),b.unsubscribe("newlicense",this.iR,this),b.unsubscribe("newsession",this.jR,this),b.unsubscribe("sessionready",this.vR,this),b.unsubscribe("fairplay_next_need_key_info",this.aR,this),b.dispose();
this.u.clear();OV(this.I);OV(this.J);this.heartbeatParams=null;g.az.prototype.ra.call(this)};
g.k.Sb=function(){for(var a={systemInfo:this.j.Sb(),sessions:[]},b=g.r(this.u.values()),c=b.next();!c.done;c=b.next())a.sessions.push(c.value.Sb());return a};
g.k.Dg=function(){return 0>=this.u.size?"no session":""+this.u.values().next().value.Dg()+(this.D?"/KR":"")};
g.k.zi=function(a,b){b=void 0===b?!1:b;this.isDisposed()||(wG(a),(vG(this.Y)||b)&&this.ma("ctmp","drmlog",a))};g.v(TV,g.J);TV.prototype.iD=function(){return this.u};
TV.prototype.handleError=function(a){var b=this;XOa(this,a);if(("html5.invalidstate"!==a.errorCode&&"fmt.unplayable"!==a.errorCode&&"fmt.unparseable"!==a.errorCode||!VV(this,a.errorCode,a.details))&&!ZOa(this,a))if(yG(a.severity)){var c,d=null==(c=this.xa.Ka)?void 0:c.ge.B;if("net.badstatus"===a.errorCode&&(1===a.severity||a.details.fmt_unav)&&d&&d.isLocked())var e="FORMAT_UNAVAILABLE";else if(!this.Sa.D&&"auth"===a.errorCode&&"429"===a.details.rc){e="TOO_MANY_REQUESTS";var f="6"}this.xa.pg(a.errorCode,
a.severity,e,wG(a.details),f)}else this.xa.ma("nonfatalerror",a),c=/^pp/.test(this.videoData.clientPlaybackNonce),this.Ed(a.errorCode,a.details),c&&"manifest.net.connect"===a.errorCode&&(a="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.T)(),hS(a,"manifest",function(h){b.D=!0;b.va("pathprobe",h)},function(h){b.Ed(h.errorCode,h.details)}))};
TV.prototype.va=function(a,b){this.xa.qc.va(a,b)};
TV.prototype.Ed=function(a,b){b=wG(b);this.xa.qc.Ed(a,b)};WV.prototype.setPlaybackRate=function(a){this.playbackRate=a};
WV.prototype.K=function(a){return this.Y.K(a)};g.v(ZV,g.J);ZV.prototype.Uc=function(a){pPa(this);this.playerState=a.state;0<=this.B&&g.sJ(a,16)&&this.seekCount++;a.state.isError()&&this.send()};
ZV.prototype.onError=function(a){"player.fatalexception"!==a&&(a.match(o1a)?this.networkErrorCount++:this.nonNetworkErrorCount++)};
ZV.prototype.send=function(){if(!(this.C||0>this.u)){pPa(this);var a=g.zS(this.j)-this.u,b="PLAYER_PLAYBACK_STATE_UNKNOWN",c=this.playerState.getData();this.playerState.isError()?b=c&&"auth"===c.errorCode?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.V(this.playerState,2)?b="PLAYER_PLAYBACK_STATE_ENDED":g.V(this.playerState,64)?b="PLAYER_PLAYBACK_STATE_UNSTARTED":g.V(this.playerState,16)||g.V(this.playerState,32)?b="PLAYER_PLAYBACK_STATE_SEEKING":g.V(this.playerState,1)&&g.V(this.playerState,
4)?b="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.V(this.playerState,1)?b="PLAYER_PLAYBACK_STATE_BUFFERING":g.V(this.playerState,4)?b="PLAYER_PLAYBACK_STATE_PAUSED":g.V(this.playerState,8)&&(b="PLAYER_PLAYBACK_STATE_PLAYING");c=VRa[cI(this.j.videoData)];a:switch(this.j.Y.playerCanaryState){case "canary":var d="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":d="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:d="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var e=0>this.B?a:this.B-this.u;a=this.j.Y.Ne+
36E5<(0,g.T)();b={started:0<=this.B,stateAtSend:b,joinLatencySecs:e,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:d,isAd:this.j.videoData.isAd(),liveMode:c,hasDrm:!!g.aI(this.j.videoData),isGapless:this.j.videoData.Qa,isServerStitchedDai:this.j.videoData.enableServerStitchedDai};a||g.Kv("html5PlayerHealthEvent",b);this.j.K("html5_health_to_qoe")&&
(b.muted=a,this.J(b));this.C=!0;this.dispose()}};
ZV.prototype.ra=function(){this.C||this.send();g.J.prototype.ra.call(this)};
var o1a=/\bnet\b/;var rPa=window;var qPa=/[?&]cpn=/;g.v(g.eW,g.J);g.k=g.eW.prototype;g.k.pZ=function(){var a=g.zS(this.j);fW(this,a)};
g.k.Ty=function(){return this.Ba};
g.k.reportStats=function(a){a=void 0===a?NaN:a;if(!this.isDisposed()&&(a=0<=a?a:g.zS(this.j),-1<["PL","B","S"].indexOf(this.Dd)&&(!g.vf(this.u)||a>=this.C+30)&&(g.dW(this,a,"vps",[this.Dd]),this.C=a),!g.vf(this.u))){7E3===this.sequenceNumber&&g.pz(Error("Sent over 7000 pings"));if(!(7E3<=this.sequenceNumber)){hW(this,a);var b=a,c=this.j.xa.ez(),d=c.droppedVideoFrames||0,e=c.totalVideoFrames||0,f=d-this.yb,h=e&&!this.Rb;d>c.totalVideoFrames||5E3<f?xPa(this,"html5.badframedropcount","df."+d+";tf."+
c.totalVideoFrames):(0<f||h)&&g.dW(this,b,"df",[f]);this.yb=d;this.Rb=e;!this.j.Y.K("disable_webgl_reporting")&&0<this.S&&(g.dW(this,a,"glf",[this.S]),this.S=0);a={};this.j.videoData.u&&(a.fmt=this.j.videoData.u.itag,(b=this.j.videoData.D)&&b.itag!==a.fmt&&(a.afmt=b.itag));a.cpn=this.j.videoData.clientPlaybackNonce;this.adCpn&&(a.adcpn=this.adCpn);this.Z&&(a.addocid=this.Z);this.j.videoData.cotn&&(a.cotn=this.j.videoData.cotn);a.el=oI(this.j.videoData);a.content_v=pI(this.j.videoData);a.ns=this.j.Y.La;
a.fexp=this.j.Y.experiments.experimentIds.toString();a.cl=(470597858).toString();(b=this.j.videoData.adFormat||this.adFormat)&&(a.adformat=b);(b=cI(this.j.videoData))&&(a.live=b);UH(this.j.videoData)&&(a.drm=1,this.j.videoData.S&&(a.drm_system=E0a[this.j.videoData.S.flavor]||0),this.j.videoData.PL&&(a.drm_product=this.j.videoData.PL));pu()&&this.j.videoData.I&&(a.ctt=this.j.videoData.I,a.cttype=this.j.videoData.dj,this.j.videoData.mdxEnvironment&&(a.mdx_environment=this.j.videoData.mdxEnvironment));
this.j.videoData.isDaiEnabled()?(a.dai=this.j.videoData.enableServerStitchedDai?"ss":"cs",this.j.videoData.rN&&(a.dai_fallback="1")):this.j.videoData.Hc?a.dai="cs":this.j.videoData.qF&&(a.dai="disabled");a.seq=this.sequenceNumber++;if(this.j.K("html5_log_server_url_param")&&this.j.videoData.UL){if(b=this.j.videoData.UL,a&&b)for(c=g.r(Object.keys(b)),d=c.next();!d.done;d=c.next())d=d.value,this.Lc.has(d)||(a[d]=b[d])}else a.event="streamingstats",a.docid=this.j.videoData.videoId,a.ei=this.j.videoData.eventId;
g.If(a,this.j.Y.deviceParams);a=g.wi("//"+this.j.Y.Uk+"/api/stats/qoe",a);c=b="";d=g.r(Object.keys(this.u));for(e=d.next();!e.done;e=d.next())e=e.value,null===this.u[e]?g.pz(new g.Pv("Stats report key has invalid value",e)):(e="&"+e+"="+this.u[e].join(","),100<e.length?c+=e:b+=e);uPa(this,a+b,c.replace(/ /g,"%20"))}this.u={}}};
g.k.mA=function(a){0<a&&(this.u.aft=[a.toString()])};
g.k.wS=function(){if(this.j.videoData.S){var a=this.j.videoData.S;jW(this,"eme-"+(a.keySystemAccess?"final":ME(a)?"ms":PE(a)?"ytfp":OE(a)?"safarifp":"nonfinal"))}};
g.k.Uc=function(a){var b=a.state,c=g.zS(this.j);a=this.getPlayerState(a.state);a!==this.Dd&&(c<this.C||("PL"===this.Dd?this.playTimeSecs+=c-this.C:"B"===this.Dd&&this.Aa&&(this.Aa=!1,this.rebufferTimeSecs+=c-(g.RE(this.j.Y.experiments,"html5_disable_last_state_change")?this.C:this.eb),!this.Wa&&10<=this.rebufferTimeSecs&&180>=this.playTimeSecs&&(this.j.xa.Uz(),this.u.qoealert=["1"],this.Wa=!0)),"B"!==a||"PL"!==this.Dd&&"PB"!==this.Dd||(this.Aa=!0),this.C=c),"PL"===this.Dd&&("B"===a||"S"===a)||vG(this.j.Y)?
hW(this,c):(this.Ya||"PL"!==a||(this.Ya=!0,gW(this,c,this.j.xa.bz())),fW(this,c)),"PL"===a&&g.Yn(this.zc),g.dW(this,c,"vps",[a]),this.Dd=a,this.C=this.eb=c,this.D=!0);a=b.getData();g.V(b,128)&&a&&wPa(this,c,a.errorCode,a.mC,a.ZR);(g.V(b,2)||g.V(b,128))&&this.reportStats(c);b.Tc()&&!this.I&&(0<=this.B&&(this.u.user_intent=[this.B.toString()]),this.I=!0);iW(this)};
g.k.aA=function(a){var b=g.zS(this.j);g.dW(this,b,"vfs",[a.j.id,a.u,this.lc,a.reason]);this.lc=a.j.id;var c=this.j.xa.getPlayerSize();if(0<c.width&&0<c.height){c=[Math.round(c.width),Math.round(c.height)];var d=g.iG();1<d&&c.push(d);g.dW(this,b,"view",c)}this.Qa||(vG(this.j.Y)&&jW(this,"rqs"),this.j.videoData.j&&zB(this.j.videoData.j)&&(this.u.preload=["1"]));this.D=this.Qa=!0;"m"===a.reason&&100===++this.Sc&&(a=this.u.fcnz,a||(a=[],this.u.fcnz=a),a.push("2"));g.dW(this,b,"vps",[this.Dd]);this.reportStats(b)};
g.k.Sz=function(a){var b=g.zS(this.j);a.j.id!==this.Ia&&(g.dW(this,b,"afs",[a.j.id,this.Ia,a.reason]),this.Ia=a.j.id)};
g.k.Dq=aa(37);g.k.Cq=aa(40);g.k.onPlaybackRateChange=function(a){var b=g.zS(this.j);a&&a!==this.Lb&&(g.dW(this,b,"rate",[a]),this.Lb=a);this.reportStats(b)};
g.k.Dl=aa(15);g.k.getPlayerState=function(a){if(g.V(a,128))return"ER";if(g.V(a,2048))return"B";if(g.V(a,512))return"SU";if(g.V(a,16)||g.V(a,32))return"S";if(g.dK(a)&&g.V(a,64))return"B";var b=p1a[gK(a)];g.aG(this.j.Y)&&"B"===b&&3===this.j.xa.getVisibilityState()&&(b="SU");"B"===b&&g.V(a,4)&&(b="PB");return b};
g.k.ra=function(){g.J.prototype.ra.call(this);window.clearInterval(this.kb)};
g.k.va=function(a,b,c){var d=this.u.ctmp||[],e=-1!==this.Ac.indexOf(a);e||this.Ac.push(a);if(!c||!e){b="string"!==typeof b?wG(b):b;b=yPa(b);if(!c&&!/^t[.]/.test(b)){var f=1E3*g.zS(this.j);b="t."+f.toFixed()+";"+b}d.push(a+":"+b);this.u.ctmp=d;iW(this);return f}};
g.k.nA=function(a,b,c){this.J={q4:Number(this.va("glrem",{nst:a.toFixed(),rem:b.toFixed(),ca:+c})),HQ:a,W3:b,isAd:c}};
g.k.Ht=function(a,b,c){g.dW(this,g.zS(this.j),"ad_playback",[a,b,c])};
var t4={},p1a=(t4[5]="N",t4[-1]="N",t4[3]="B",t4[0]="EN",t4[2]="PA",t4[1]="PL",t4);APa.prototype.update=function(){if(this.S){var a=this.j.xa.getCurrentTime()||0;this.j.Y.K("html5_vss_media_time_killswitch")||(a=this.j.xa.nj()||0);var b=g.zS(this.j);if(a!==this.u||DPa(this,a,b)){var c;if(!(c=a<this.u||a-this.u>b-this.lastUpdateTime+2||DPa(this,a,b))){var d=this.j.pj();c=d.volume;var e=c!==this.ea;d=d.muted;d!==this.Z?(this.Z=d,c=!0):(!e||0<=this.D||(this.ea=c,this.D=b),c=b-this.D,0<=this.D&&2<c?(this.D=-1,c=!0):c=!1)}c&&(nW(this),this.B=a);this.lastUpdateTime=b;this.u=a}}};oW.prototype.send=function(a){var b=this;if(!this.Wa){var c=qW(this),d=g.wi(this.uri,c);this.Z&&!this.Y.K("html5_simplify_pings")?IPa(this,d):pW(this,a).then(function(e){b.Z&&(e=e||{},e.method="POST",e.postParams={atr:b.attestationResponse});cW(d,e,{token:b.J,nL:b.kb,mdxEnvironment:b.mdxEnvironment},b.Y,a,b.Aa,b.isFinal&&b.Te||b.ya||b.B&&b.Ue)});
this.Wa=!0}};
oW.prototype.u=function(a){void 0===a&&(a=NaN);return Number(a.toFixed(3)).toString()};
var u4={},GPa=(u4.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,u4.LIVING_ROOM_APP_MODE_MAIN=1,u4.LIVING_ROOM_APP_MODE_KIDS=2,u4.LIVING_ROOM_APP_MODE_MUSIC=3,u4.LIVING_ROOM_APP_MODE_UNPLUGGED=4,u4.LIVING_ROOM_APP_MODE_GAMING=5,u4),v4={},FPa=(v4.EMBEDDED_PLAYER_MODE_UNKNOWN=0,v4.EMBEDDED_PLAYER_MODE_DEFAULT=1,v4.EMBEDDED_PLAYER_MODE_PFP=2,v4.EMBEDDED_PLAYER_MODE_PFL=3,v4);g.v(sW,g.J);g.k=sW.prototype;g.k.Yd=function(){this.u.update();var a;if(a=this.j.videoData.isLoaded()&&this.j.videoData.yb&&this.B&&!this.ea)a=this.u,a=(a.j.Y.K("html5_vss_media_time_killswitch")?a.I+a.j.xa.getCurrentTime()-a.B:a.I+a.j.xa.nj()-a.B)>=this.j.videoData.yb;a&&(this.B&&this.j.videoData.yb&&(a=tW(this,"delayplay"),a.pe=!0,a.send(),this.ea=!0),JPa(this))};
g.k.Uc=function(a){if(!this.isDisposed())if(this.j.Y.K("html5_flush_vss_with_rti_and_rtn"))if(g.V(a.state,2)||g.V(a.state,512))this.currentPlayerState="paused",(g.sJ(a,2)||g.sJ(a,512))&&this.B&&(yW(this),zW(this).send());else if(g.V(a.state,8)){this.currentPlayerState="playing";var b=xW(this);!isNaN(b)&&(0>rJ(a,64)||0>rJ(a,512))&&(a=zW(this),a.D=b,a.send())}else this.currentPlayerState="paused";else g.V(a.state,2)?(this.currentPlayerState="paused",g.sJ(a,2)&&this.B&&zW(this).send()):g.V(a.state,8)?
(this.currentPlayerState="playing",xW(this)):this.currentPlayerState="paused"};
g.k.ra=function(){g.J.prototype.ra.call(this);yW(this);BPa(this.u)};
g.k.Sb=function(){return qW(tW(this,"playback"))};
g.k.mx=function(){this.j.videoData.J.eventLabel=oI(this.j.videoData);this.j.videoData.J.playerStyle=this.j.Y.playerStyle;this.j.videoData.xg&&(this.j.videoData.J.feature="pyv");this.j.videoData.J.vid=this.j.videoData.videoId;var a=this.j.videoData.J;var b=this.j.videoData;b=b.isAd()||!!b.xg;a.isAd=b};
g.k.Ii=function(a){var b=tW(this,"engage");b.S=a;return EPa(b,OPa(this.j))};NPa.prototype.isEmpty=function(){return this.endTime===this.startTime};BW.prototype.K=function(a){return this.Y.K(a)};
var PPa={other:1,none:2,wifi:3,cellular:7};g.v(g.CW,g.J);g.k=g.CW.prototype;g.k.Uc=function(a){if(g.sJ(a,1024)||g.sJ(a,512)||g.sJ(a,4)){var b=this.C;0<=b.B||(b.u=-1,b.delay.stop());this.qoe&&(b=this.qoe,b.I||(b.B=-1))}if(this.u.videoData.enableServerStitchedDai&&this.uh){var c;null==(c=this.B.get(this.uh))||c.Uc(a)}else this.j&&this.j.Uc(a);this.qoe&&this.qoe.Uc(a);this.C.Uc(a)};
g.k.Yd=function(){if(this.u.videoData.enableServerStitchedDai&&this.uh){var a;null==(a=this.B.get(this.uh))||a.Yd()}else this.j&&this.j.Yd()};
g.k.Ed=function(a,b){this.qoe&&xPa(this.qoe,a,b);this.C.onError(a)};
g.k.aA=function(a){this.qoe&&this.qoe.aA(a)};
g.k.Sz=function(a){this.qoe&&this.qoe.Sz(a)};
g.k.onPlaybackRateChange=function(a){if(this.qoe)this.qoe.onPlaybackRateChange(a)};
g.k.Dq=aa(36);g.k.va=function(a,b,c){this.qoe&&this.qoe.va(a,b,c)};
g.k.nA=function(a,b,c){this.qoe&&this.qoe.nA(a,b,c)};
g.k.mA=function(a){this.qoe&&this.qoe.mA(a)};
g.k.Ht=function(a,b,c){this.qoe&&this.qoe.Ht(a,b,c)};
g.k.Cq=aa(39);g.k.Dl=aa(14);g.k.Ty=function(){if(this.qoe)return this.qoe.Ty()};
g.k.Sb=function(){if(this.u.videoData.enableServerStitchedDai&&this.uh){var a;null==(a=this.B.get(this.uh))||a.Sb()}else if(this.j)return this.j.Sb();return{}};
g.k.Ii=function(a){return this.j?this.j.Ii(a):function(){}};
g.k.mx=function(){this.j&&this.j.mx()};g.v(DW,g.J);g.k=DW.prototype;g.k.qe=function(a,b){this.Rl();b&&2E3<=this.j.array.length&&this.Gy("captions",1E4);b=this.j;if(1<a.length&&a.length>b.array.length)b.array=b.array.concat(a),b.array.sort(b.j);else{a=g.r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,!b.array.length||0<b.j(c,b.array[b.array.length-1])?b.array.push(c):g.nc(b.array,c,b.j)}this.u=NaN;this.Rl()};
g.k.jh=function(a){1E4<a.length&&g.pz(new g.Pv("Over 10k cueRanges removal occurs with a sample: ",a[0]));if(!this.isDisposed()){var b=new Set(a);this.B=this.B.filter(function(c){return!b.has(c)});
bQa(this.j,b);this.Rl()}};
g.k.Gy=function(a,b){var c=(isNaN(this.u)?g.V(this.D(),2)?0x8000000000000:1E3*this.S():this.u)-b;b=this.il().filter(function(d){return d.namespace===a&&d.end<c});
this.jh(b);return b};
g.k.il=function(){return this.isDisposed()?[]:this.j.array};
g.k.reset=function(){this.started=!1;this.C.stop();this.j.array=[];this.B=[];this.Rl()};
g.k.Gf=function(a){var b=this.il().filter(function(c){return c.namespace===a});
this.jh(b);return b};
g.k.Uc=function(a){this.started&&(this.Rl(),g.V(a.yq,16)&&(a=aQa(this.j,Math.max(this.u-2E3,0)),!isNaN(a)&&0x7ffffffffffff>a&&this.C.start()))};
g.k.wH=function(a){var b=[];if(!a.length)return b;for(var c=0;c<a.length;c++){var d=a[c];d.active&&-1===this.B.indexOf(d)&&(this.B.push(d),b.push([1,d]))}return b};
g.k.BH=function(a){var b=[];if(!a.length)return b;a.sort(g.rA);a=g.r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,this.B.splice(this.B.indexOf(c),1),b.push([2,c]);return b};
g.k.Rl=function(){this.I=!0;if(!this.J){for(var a=3;this.I&&a;)this.I=!1,this.J=!0,this.QP(),this.J=!1,a--;this.D().Tc()&&(a=aQa(this.j,this.u),!isNaN(a)&&0x7ffffffffffff>a&&(a=(a-this.u)/this.qa(),this.C.start(a)))}};
g.k.QP=function(){if(this.started&&!this.isDisposed()){this.C.stop();var a=this.D();g.V(a,32)&&this.ea.start();for(var b=g.V(this.D(),2)?0x8000000000000:1E3*this.S(),c=g.V(a,2),d=[],e=[],f=g.r(this.B),h=f.next();!h.done;h=f.next())h=h.value,h.active&&(c?0x8000000000000>h.end:!h.contains(b))&&e.push(h);d=d.concat(this.BH(e));f=e=null;c?(a=ZPa(this.j,0x7ffffffffffff),e=a.filter(function(l){return 0x8000000000000>l.end}),f=$Pa(this.j)):a=this.u<=b&&eK(a)?YPa(this.j,this.u,b):ZPa(this.j,b);
d=d.concat(this.wH(a));e&&(d=d.concat(this.BH(e)));f&&(d=d.concat(this.wH(f)));this.u=b;cQa(this,d)}};
g.k.ra=function(){this.B=[];this.j.array=[];g.J.prototype.ra.call(this)};
g.sS.bD(DW,{qe:"crmacr",wH:"crmncr",BH:"crmxcr",QP:"crmis",jh:"crmrcr"});g.v(HW,g.az);HW.prototype.Co=function(){return this.J};
HW.prototype.ll=function(){return Math.max(this.S()-iQa(this,!0),this.videoData.getMinSeekableTime())};g.v(MW,g.J);MW.prototype.Uc=function(){g.Yn(this.B)};
MW.prototype.D=function(){var a=this,b=this.xa.Ud(),c=this.xa.getPlayerState();if(b&&!c.isError()){var d=b.getCurrentTime(),e=8===c.state&&d>this.j,f=g.V(c,8)&&g.V(c,16),h=this.xa.Yp().isBackground()||c.isSuspended();NW(this,this.Ba,f&&!h,e,"qoe.slowseek",function(){},"timeout");
var l=isFinite(this.j)&&(0<this.j||this.Y.K("html5_watchdog_for_zero_seek")||this.Y.K("html5_watchdog_for_zero_seek_shorts")&&"shortspage"===oI(this.xa.getVideoData()));f=f&&l&&eDa(b,this.j);l=!d||10<Math.abs(d-this.j);NW(this,this.Ia,f&&l&&!h,e,"qoe.slowseek",function(){b.seekTo(a.j)},"set_cmt");
var m=f&&gE(b.Xg(),this.j);f=this.xa.Ka;l=!f||!f.policy.Ld;var n=function(){b.seekTo(a.j+.001)};
NW(this,this.qa,m&&l&&!h,e,"qoe.slowseek",n,"jiggle_cmt");l=function(){return SV(a.xa)};
NW(this,this.Aa,m&&!h,e,"qoe.slowseek",l,"new_elem");var p=eK(c);m=g.fK(c);var q=b.Xg(),u=fE(q,d);lQa(this,b,q,d,h,p,m);var w=0<=u&&q.end(u)>d+5;w=p&&m&&w;NW(this,this.J,w&&!h,p&&!m,"qoe.longrebuffer",n,"jiggle_cmt");NW(this,this.S,w&&!h,p&&!m,"qoe.longrebuffer",l,"new_elem_nnr");if(f){var y=f.getCurrentTime();n=b.Cs();n=Axa(n,y);n=!f.Gg()&&d===n;NW(this,this.Ya,p&&m&&n&&!h,p&&!m&&!n,"qoe.longrebuffer",function(){b.seekTo(y)},"seek_to_loader")}n={};
if(!this.Y.K("html5_watchdog_log_extrainfo_killswitch")){w=fE(q,Math.max(d-3.5,0));var A=0<=w&&d>q.end(w)-1.1,B=0<=w&&w+1<q.length?q.start(w+1)-q.end(w):9999;n.mindex=u;n.disIndex=w;n.isdisc=0<=w&&A&&11>B;n.close2edge=A;n.gapsize=B;n.buflen=q.length}NW(this,this.Z,p&&m&&!h,p&&!m,"qoe.longrebuffer",function(){},"timeout",n);
q=c.isSuspended();q=g.Sb(this.xa.xk,"ad")&&!q;NW(this,this.I,q,!q,"qoe.start15s",function(){a.xa.xf("ad")},"ads_preroll_timeout");
q=this.xa.getVideoData();u=.5>d-this.C;n=q.isAd()&&p&&!m&&u;p=function(){var D=a.xa,G=D.Sg.Jc();(!G||!D.videoData.isAd()||G.getVideoData().Hc!==D.getVideoData().Hc)&&D.videoData.Fe||D.pg("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+D.videoData.videoId)};
NW(this,this.La,n,!n,"ad.rebuftimeout",p,"skip_slow_ad");m=q.isAd()&&m&&gE(b.Xg(),d+5)&&u;NW(this,this.Qa,m,!m,"ad.rebuftimeout",p,"skip_slow_ad_buf");NW(this,this.Wa,g.dK(c)&&g.V(c,64)&&!h,e,"qoe.start15s",function(){},"timeout");
NW(this,this.ea,!!f&&!f.mediaSource&&g.dK(c),e,"qoe.start15s",l,"newElemMse");this.C=d;this.B.start()}};
MW.prototype.Ed=function(a,b,c){b=this.Sb(b);b.wn=c;b.wdup=this.u[a]?"1":"0";this.xa.Ed(new xG(a,b));this.u[a]=!0};
MW.prototype.Sb=function(a){a=Object.assign(this.xa.Sb(!0),a.Sb());this.j&&(a.stt=this.j.toFixed(3));delete a.uga;delete a.euri;delete a.referrer;delete a.fexp;delete a.vm;return a};
KW.prototype.reset=function(){this.j=this.triggerTimestamp=this.u=this.startTimestamp=0;this.B=!1};
KW.prototype.Sb=function(){var a={},b=(0,g.T)();this.startTimestamp&&(a.wsd=(b-this.startTimestamp).toFixed());this.triggerTimestamp&&(a.wtd=(b-this.triggerTimestamp).toFixed());this.j&&(a.wssd=(b-this.j).toFixed());return a};g.v(PW,g.J);g.k=PW.prototype;g.k.setMediaElement=function(a){g.$y(this.Qa);(this.mediaElement=a)?(xQa(this),OW(this)):SW(this)};
g.k.Uc=function(a){this.ea.Uc(a);this.K("html5_exponential_memory_for_sticky")&&(a.state.Tc()?g.Yn(this.qa):this.qa.stop());if(this.mediaElement)if(8===a.yq.state&&eK(a.state)&&g.fK(a.state)){a=this.mediaElement.getCurrentTime();var b=this.mediaElement.Xg();var c=this.K("manifestless_post_live_ufph")||this.K("manifestless_post_live")?fE(b,Math.max(a-3.5,0)):fE(b,a-3.5);0<=c&&a>b.end(c)-1.1&&c+1<b.length&&11>b.start(c+1)-b.end(c)&&(c=b.start(c+1)+.2,.2>Math.abs(this.Ya-c)||(this.xa.va("seekover",{b:eE(b,
"_"),cmt:a}),this.Ya=c,this.seekTo(c,{Hs:!0,Ae:"playbacktimeline_postLiveDisc"})))}else(null==(b=a.state)?0:8===b.state)&&!this.videoData.Wa&&0<this.videoData.limitedPlaybackDurationInSeconds&&vX(this.xa,this.getCurrentTime()+this.videoData.limitedPlaybackDurationInSeconds)};
g.k.getCurrentTime=function(){return!isNaN(this.j)&&isFinite(this.j)?this.j:this.mediaElement&&wQa(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.C||0};
g.k.nj=function(){return this.getCurrentTime()-this.Cd()};
g.k.ll=function(){return this.u?this.u.ll():Infinity};
g.k.isAtLiveHead=function(a){if(!this.u)return!1;void 0===a&&(a=this.getCurrentTime());return JW(this.u,a)};
g.k.Co=function(){return!!this.u&&this.u.Co()};
g.k.seekTo=function(a,b){var c=void 0===b?{}:b;b=void 0===c.gT?!1:c.gT;var d=void 0===c.hT?0:c.hT,e=void 0===c.Hs?!1:c.Hs,f=void 0===c.oL?0:c.oL,h=void 0===c.Ae?"":c.Ae;if(void 0===c.xp?0:c.xp)a+=this.Cd();if(c=!!(!this.K("html5_ssdai_skipad_seek_killswitch")&&a<this.ya&&this.Ka)){this.xa.va("sdai",{skipad:0,t:a.toFixed(3),mt:(a-this.timestampOffset).toFixed(3),lstskp:this.ya.toFixed(3)});this.ya=NaN;this.timestampOffset-=1E3;var l;if(null!=(l=this.Ka)){zV(l,l.timestampOffset-1E3);var m=l.j,n=new Set;
for(u in m.j){var p=m.j[u].index,q=p.ys();q&&!n.has(q)&&(q.startTime+=1E3,q.endTime=q.startTime+q.duration,n.add(q));p.segments.length&&(q=p.segments[p.segments.length-1],p.segments=[],p.segments.push(q))}l.J&&l.J.zK();QT(l.u,0,0,!0)}}var u=a;(l=!isFinite(u)||(this.u?JW(this.u,u):u>=this.Bd())||!g.gI(this.videoData))||this.xa.va("seeknotallowed",{st:u,mst:this.Bd()});if(!l)return this.B&&(this.B=null,VW(this)),Fh(this.getCurrentTime());if(.005>Math.abs(a-this.j)&&this.S)return this.D;h&&(u=a,(2<=
this.Y.Z||this.K("html5_log_seek_reasons"))&&this.xa.va("seekreason",{reason:h,tgt:u}));this.S&&SW(this);this.D||(this.D=new SJ);a&&!isFinite(a)&&RW(this,!1);if(h=!c)h=a,h=UW(this)&&!(this.mediaElement&&0<this.mediaElement.hj()&&0<UJ(this.mediaElement))||MH(this.videoData)&&this.getMinSeekableTime()===this.Bd(!1)?!1:isFinite(h)?!0:MH(this.videoData)?!1:!0;h&&(a=vQa(this,a,e));a&&!isFinite(a)&&RW(this,!1);this.C=a;this.Ia=f;this.j=a;this.u&&(e=this.u,f=a,jQa(e,f,!1),kQa(e,f));e=this.xa;f=a;e.qd.C=
f;h=e.ey;h.mediaTime=f;h.j=!0;b&&MX(e);e.Yn&&f>e.videoData.endSeconds&&isFinite(f)&&GX(e);f<e.Bd()-.01&&(h=aK(e.playerState,2),g.V(h,8)&&(h=aK(h,4)),e.Xb(h));e.ma("SEEK_TO",e,f);this.D&&(b?d&&this.La.start(d):(this.S=!0,pQa(this)));(b=this.xa.Yn)&&a>b.start&&GX(this.xa);return this.D};
g.k.Bd=function(a){if(!this.videoData.isLivePlayback)return this.videoData.Bd();var b;if(!this.K("html5_linear_live_max_seekable_killswitch")&&xI(this.videoData)&&(null==(b=this.mediaElement)?0:b.Pn())&&this.videoData.j)return a=this.getCurrentTime(),WBa(1E3*this.getIngestionTime(a))+a;if(MH(this.videoData)&&this.videoData.Bk&&this.videoData.j)return this.videoData.j.Bd()+this.timestampOffset;if(this.videoData.B&&this.videoData.B.j){if(!a&&this.u)return this.u.ll();a=this.videoData.Bd();this.policy.j&&
this.mediaElement&&(a=Math.max(a,gDa(this.mediaElement)));return a+this.timestampOffset}return this.mediaElement?Pu()?WBa(this.mediaElement.vB().getTime()):UJ(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset};
g.k.getMinSeekableTime=function(){var a=this.videoData?this.videoData.getMinSeekableTime()+this.timestampOffset:this.timestampOffset;if(xI(this.videoData)&&this.videoData.j){var b,c=Number(null==(b=this.videoData.progressBarStartPosition)?void 0:b.utcTimeMillis)/1E3;b=this.getCurrentTime();b=this.getIngestionTime(b)-b;if(!isNaN(c)&&!isNaN(b))return Math.max(a,c-b)}return a};
g.k.ra=function(){TW(this,null);this.ea.dispose();g.J.prototype.ra.call(this)};
g.k.Sb=function(){var a={};this.Ka&&Object.assign(a,this.Ka.Sb());this.mediaElement&&Object.assign(a,this.mediaElement.Sb());return a};
g.k.Gl=function(a){var b=this;this.xa.va("sdai",{skipad:1,t:a.toFixed(3)});this.ya=a;this.C=this.j=a+=1;VW(this).then(function(c){uQa(b,c)},function(){SW(b)})};
g.k.TJ=function(a){this.timestampOffset=a};
g.k.getStreamTimeOffset=function(){return MH(this.videoData)?0:this.videoData.j?this.videoData.j.getStreamTimeOffset():0};
g.k.Cd=function(){return this.timestampOffset};
g.k.getIngestionTime=function(a){return this.videoData.j.getIngestionTime(a-this.timestampOffset)};
g.k.As=function(){if(!this.mediaElement)return 0;if(hI(this.videoData)){var a=gDa(this.mediaElement)+this.timestampOffset-this.getMinSeekableTime(),b=this.Bd()-this.getMinSeekableTime();return Math.max(0,Math.min(1,a/b))}return this.mediaElement.As()};
g.k.ED=function(a){this.I&&(this.I.j=a.audio.index)};
g.k.K=function(a){return this.Y&&this.Y.K(a)};WW.prototype.isFinished=function(){return this.finished};
WW.prototype.start=function(){this.started=!0};
WW.prototype.reset=function(){this.finished=this.started=!1};XW.prototype.encrypt=function(a){(0,g.T)();return(new tF(this.j.j)).encrypt(a,this.iv)};
XW.prototype.decrypt=function(a,b){(0,g.T)();return(new tF(this.j.j)).decrypt(a,b)};g.v(YW,g.J);g.k=YW.prototype;g.k.Bh=function(a){var b;return!(null==(b=this.me.get(a))||!b.yf.totalLength)};
g.k.aj=function(a){a=this.me.get(a);var b=a.yf;a.MB+=b.totalLength;a.yf=new SB;return b};
g.k.Xf=function(a){return this.me.get(a).Xf};
g.k.Yg=function(a){return this.me.get(a).Yg};
g.k.wq=function(){for(var a=g.r(this.me.values()),b=a.next();!b.done;b=a.next())b=b.value,b.jK&&(b.Yd&&b.Yd(),b.jK=!1)};
g.k.Xz=function(a){(a=this.me.get(a))&&!a.Yg&&(a.Yg=!0)};
g.k.ra=function(){g.J.prototype.ra.call(this);for(var a=g.r(this.me.keys()),b=a.next();!b.done;b=a.next())ZW(this,b.value);this.me.clear()};aX.prototype.decrypt=function(a){var b=this,c,d,e,f,h,l;return g.z(function(m){switch(m.j){case 1:if(b.j.length&&!b.j[0].isEncrypted)return m.return();b.u=!0;b.nk.Wc("omd_s");c=new Uint8Array(16);jF()?d=new sF(a):e=new tF(a);case 2:if(!b.j.length||!b.j[0].isEncrypted){m.Ma(3);break}f=b.j.shift();if(!d){h=e.decrypt(XB(f.buffer),c);m.Ma(4);break}return g.x(m,d.decrypt(XB(f.buffer),c),5);case 5:h=m.u;case 4:l=h;for(var n=0;n<c.length;n++)if(255===c[n])c[n]=0;else{c[n]+=1;break}n=new SB([l]);EQa(b.nk.Jd,
f.dL,n);m.Ma(2);break;case 3:b.nk.Wc("omdf"),b.nk.Wc("omd_c"),cX(b),b.u=!1,b.nk.JJ(),g.na(m)}})};
aX.prototype.enqueue=function(a,b,c){this.j.push({dL:a,buffer:b,isEncrypted:c});this.u||cX(this)};var LQa=!!Uint8Array.prototype.copyWithin,dX=[],eX=[],HQa=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],gX=[],fX=[],iX=[],hX=[];var mX,q1a=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),w4={},dRa=(w4.a=1,w4.o=3,w4.meac3=5,w4.mac3=7,w4),x4={},cRa=(x4["1h"]=8,x4["9h"]=4,x4["1"]=8,x4["9"]=4,x4.h=2,x4),SQa=[["337","336","335"],["702","701","700"],["315","308","303","302"],["299","298"],["571","401","400","399","398"],["313","271","248","247","244"],["137","136"]],UQa=[["140"],["251"]],y4={},QQa=(y4["302"]=["409","410"],y4["298"]=["384","376"],y4["247"]="274 357 358 317 273 318 280 279".split(" "),y4["136"]="145 224 225 144 222 223 143 142".split(" "),
y4["140"]=["149"],y4),z4={},PQa=(z4["398"]=["397","396","395","394"],z4["247"]=["244","243","242"],z4["136"]=["135","134","133","160"],z4["251"]=["250"],z4),r1a={},ZQa=(r1a["140"]={numChannels:2},r1a["251"]={audioSampleRate:48E3,numChannels:2},r1a),A4={},YQa=(A4["337"]={width:3840,height:2160,bitrate:3E7,fps:30},A4["336"]={width:2560,height:1440,bitrate:15E6,fps:30},A4["335"]={width:1920,height:1080,bitrate:75E5,fps:30},A4["702"]={width:7680,height:4320,bitrate:4E7,fps:60},A4["701"]={width:3840,height:2160,
bitrate:2E7,fps:60},A4["700"]={width:2560,height:1440,bitrate:1E7,fps:60},A4["315"]={width:3840,height:2160,bitrate:2E7,fps:60},A4["308"]={width:2560,height:1440,bitrate:1E7,fps:60},A4["303"]={width:1920,height:1080,bitrate:5E6,fps:60},A4["302"]={width:1280,height:720,bitrate:25E5,fps:60},A4["299"]={width:1920,height:1080,bitrate:75E5,fps:60},A4["298"]={width:1280,height:720,bitrate:35E5,fps:60},A4["571"]={width:7680,height:4320,bitrate:3E7,fps:60},A4["401"]={width:3840,height:2160,bitrate:15E6,fps:60},
A4["400"]={width:2560,height:1440,bitrate:75E5,fps:60},A4["399"]={width:1920,height:1080,bitrate:2E6,fps:60},A4["398"]={width:1280,height:720,bitrate:1E6,fps:60},A4["313"]={width:3840,height:2160,bitrate:8E6,fps:30},A4["271"]={width:2560,height:1440,bitrate:4E6,fps:30},A4["248"]={width:1920,height:1080,bitrate:2E6,fps:30},A4["247"]={width:1280,height:720,bitrate:15E5,fps:30},A4["137"]={width:1920,height:1080,bitrate:4E6,fps:30},A4["136"]={width:1280,height:720,bitrate:3E6,fps:30},A4),B4={},NQa=(B4["133"]=
240,B4["134"]=360,B4["135"]=480,B4["136"]=720,B4["137"]=1080,B4["242"]=240,B4["243"]=360,B4["244"]=480,B4["247"]=720,B4["248"]=1080,B4["298"]=720,B4["299"]=1080,B4["302"]=720,B4["303"]=1080,B4["395"]=240,B4["396"]=360,B4["397"]=480,B4["398"]=720,B4["399"]=1080,B4),C4={},XQa=(C4["1"]='video/mp4; codecs="av01.0.08M.08"',C4["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',C4["9"]='video/webm; codecs="vp9"',C4["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"',C4.h='video/mp4; codecs="avc1.64001e"',
C4.o='audio/webm; codecs="opus"',C4.a='audio/mp4; codecs="mp4a.40.2"',C4);g.k=$Qa.prototype;g.k.JJ=function(){this.Jd.JJ()};
g.k.feed=function(a,b){var c=b.totalLength;switch(a){case 10:a=bH(b,uNa);var d=a.A3,e=!1;switch(d){case 0:this.C=!a.KR.VZ;this.iv=a.KR.iv;break;case 2:break;case 23:var f=this.Jd;a=a.x_;f.Wc("omp_r");a.videoId&&(f.Et=a.videoId);f.Et!==f.videoData.videoId&&(f.videoData.rU=f.Et,f.va("ompp","vid."+f.Et));f.eJ=!0;break;case 24:a=this.Jd;a.Wc("omp_c");a.eJ=!1;a.Nw=!1;null!=(c=a.ze||(null==(f=a.Zf)?void 0:f.get(a.Et)))&&(c.j=!0);oX(a);break;default:e=!0}this.Jd.rj&&this.Jd.va("ombup","id.10;pt."+d+";len."+
b.totalLength+(e?";ignored.1":""));this.u=d;break;case 11:aRa(this,b);break;case 20:f=new WG(b);var h={FZ:ZG(f,1),videoId:aH(f,2),itag:ZG(f,3),lmt:ZG(f,4),xtags:aH(f,5),x4:ZG(f,6),hw:kAa(f,8),wE:ZG(f,9),e5a:ZG(f,10),startMs:ZG(f,11),durationMs:ZG(f,12),vE:ZG(f,14),N5a:ZG(f,17)};var l=h.FZ,m=h.itag,n=h.hw;a=h.x4;c=h.wE;var p=h.startMs,q=h.durationMs;f=this.Jd.K("html5_onesie_ads");var u=h.videoId;f=((void 0===f?0:f)?(u||"")+";":"")+h.itag+";"+(h.lmt||0)+";"+(h.xtags||"");m=q1a.has(PD[""+m]);n&&this.Wc(m?
"oais_r":"ovis_r");n=void 0!==this.j[f];this.Jd.rj&&this.Jd.va("ombup","id.20;len."+b.totalLength+";hid."+l+";fid"+f);this.B[l]=f;n?(d=this.j[f].headers,d.push(h),h.vE&&2===d.length&&(b=this.Jd,d=d[0].vE+d[1].vE,e={XN:null!=a?a:-1,wE:null!=c?c:-1,startTimeMs:null!=p?p:-1,durationMs:null!=q?q:-1},null!=(a=bX(b,f))&&(c=a.me.get(f),c.fl=d,e&&(0>=e.XN||0>=e.wE||0>=e.durationMs||0>e.startTimeMs?$W(a,f):c.rQ.push(e))),oX(b))):(this.j[f]={BP:!1,cn:m,headers:[h]},b=this.Jd,b.Zf?(e=f.split(";")[0],b.Zf.has(e)||
(a=new YW(b),b.Zf.set(e,a),g.M(b,a)),null==(d=b.Zf.get(e))||CQa(d,f,m)):null==(e=b.ze)||CQa(e,f,m));break;case 21:bRa(this,b,!1);break;case 12:bRa(this,b,!0);break;case 22:this.Xz(b);break;case 37:b=bH(b,pNa);if(b.HG||b.KL)f=this.Jd,f.ws=b,b.videoId&&f.RO.set(b.videoId,b);break;default:this.Jd.rj&&this.Jd.va("ombup","id."+a+";len."+c+";ignored.1")}};
g.k.Xz=function(a){var b=YB(a,0);this.Jd.rj&&this.Jd.va("ombup","id.22;len."+a.totalLength+";hid."+b);(a=this.B[b]||null)&&this.Jd.Xz(a);a&&(b=this.j[a],1===b.headers.length&&b.headers[0].vE||FQa(this.queue,a))};
g.k.PJ=function(a,b){var c=this,d,e,f,h,l,m,n,p,q,u,w;return g.z(function(y){switch(y.j){case 1:c.Jd.PJ();d=XB(a);if(!b){f=d;y.Ma(2);break}return g.x(y,kRa(c.Jd,d,c.iv),3);case 3:f=y.u;case 2:e=f;if(!c.Jd.enableCompression){y.Ma(4);break}return g.x(y,MQa(e),5);case 5:e=y.u,c.Jd.va("decompression",{ds:"DecompressionStream"in window});case 4:try{h=bH(e,zNa)}catch(A){return l=A instanceof Error?{name:A.name,message:A.message}:{},l.webcrypto=""+ +!!jF(),l.enc=""+ +c.C,m=new xG("onesie.response.parse",
l),y.return(Promise.reject(m))}if(1!==h.onesieProxyStatus)return n={st:h.onesieProxyStatus,webcrypto:""+ +!!jF(),textencoder:""+ +!!g.C.TextEncoder},p=new xG("onesie.response.badproxystatus",n),y.return(Promise.reject(p));if(200!==h.httpStatus)return q={st:h.httpStatus},u=new xG("onesie.response.badstatus",q),y.return(Promise.reject(u));w=g.fC(h.body);return y.return(w)}})};
g.k.Wc=function(a){this.Jd.Wc(a)};
g.k.nh=function(a){return this.Jd.nh(a)};g.v(pX,g.J);g.k=pX.prototype;g.k.Wc=function(a){this.xa.Wc(a)};
g.k.nh=function(a){return this.xa.nh(a)};
g.k.zR=function(a,b){this.nk.feed(a,b)};
g.k.DJ=function(){this.Wc("orfb");this.dD=!0;if(lRa(this)&&this.xhr){var a={rc:this.xhr.status,lb:this.xhr.ol(),rt:(1E3*lNa(this.zn)).toFixed(),shost:g.pi(this.Ew),trigger:"o1"};this.va("pathprobe",wG(a))}};
g.k.PJ=function(){this.Wc("orpr");this.Wc("opr_r");this.EP=!0};
g.k.JJ=function(){if(this.Zf)for(var a=g.r(this.Zf.keys()),b=a.next();!b.done;b=a.next()){var c=void 0;null==(c=this.Zf.get(b.value))||c.wq()}else null==(a=this.ze)||a.wq()};
g.k.va=function(a,b,c){this.xa.va(a,b,void 0===c?!1:c)};
g.k.Xz=function(a){var b;null==(b=bX(this,a))||b.Xz(a)};
g.k.fetch=function(){var a=this,b,c,d,e,f,h,l,m,n,p,q,u,w,y,A,B,D;return g.z(function(G){switch(G.j){case 1:a.Dw.start();a.Wc("ogpd");a.Wc("or_i");if(b=iRa(a.videoData,a.cq)){G.Ma(2);break}return g.x(G,jRa(a.videoData,a.cq),3);case 3:b=G.u;case 2:if(!b)return a.logger.info("Onesie URL creation failed."),c={url:"0"},d=new xG("onesie.unavailable.hotconfig",c),a.fail(d),G.return(a.Cn);a.sS=MB(b);f=g.uG(g.sI(a.videoData));h=f.getValue();G.Ma(4);break;case 5:h=G.u;case 4:l=h;var H=a.playerRequest,L=a.Y,
N=a.videoData,K=lS(a.sS);K=void 0===K?!1:K;var P=L.Li,R="https://youtubei.googleapis.com/youtubei/"+P.innertubeApiVersion+"/player";P.AI&&l||(R=R+"?key="+P.innertubeApiKey);P=[{name:"Content-Type",value:"application/json"}];l&&P.push({name:"Authorization",value:"Bearer "+l});P.push({name:"User-Agent",value:g.nb()});g.O("EOM_VISITOR_DATA")?P.push({name:"X-Goog-EOM-Visitor-Id",value:g.O("EOM_VISITOR_DATA")}):(N=N.visitorData||g.O("VISITOR_DATA"))&&P.push({name:"X-Goog-Visitor-Id",value:N});(L=g.JE(L.experiments,
"debug_sherlog_username"))&&P.push({name:"X-Youtube-Sherlog-Username",value:L});H=jwa(JSON.stringify(H));m={url:R,httpHeaders:P,postBody:H,proxiedByTrustedBandaid:K,skipResponseEncryption:K};g.pa(G,6);if(!jF()){P=a.Y;L=a.videoData;N=a.xa.getPlayerSize();var X=a.xa.getVisibilityState();K=a.iH.onesieUstreamerConfig;R=null==(n=a.videoData.BN)?void 0:n.YA;var Q=a.LD,oa=jH(m,yNa);H={encryptedClientKey:Q.j.encryptedClientKey,serializeResponseAsJson:!0,enableAdPlacementsPreroll:P.K("html5_onesie_ads"),enableCompressionResponseOnly:fRa(P,
!!m.skipResponseEncryption)};m.skipResponseEncryption?H.unencryptedOnesieInnertubeRequest=oa:(oa=Q.encrypt(oa),H.encryptedOnesieInnertubeRequest=oa,(0,g.T)(),oa=Sya(new Rya(Q.j.B),oa,Q.iv),H.hmac=oa,H.iv=Q.iv);P=eRa(P,L,N,X);e={BI:H,nO:P,onesieUstreamerConfig:K,YA:R};G.Ma(8);break}return g.x(G,hRa(m,a.LD,a.Y,a.videoData,a.xa.getPlayerSize(),a.xa.getVisibilityState(),a.iH.onesieUstreamerConfig,null==(p=a.videoData.BN)?void 0:p.YA),9);case 9:e=G.u;case 8:g.ra(G,7);break;case 6:return q=g.ua(G),a.logger.info("Failed to create OnesieRequestProto."),
a.fail(q),G.return(a.Cn);case 7:return a.enableCompression=e.BI.enableCompressionResponseOnly,a.Wc("osor"),u=AHa(a.Y),w=jH(e,wNa),y={method:"POST",body:w,headers:{"Content-Type":"text/plain",Referer:location.origin}},A=a.K("html5_onesie_media_capabilities"),K=b,H=a.videoData,R=nRa(a),P=A,P=void 0===P?!1:P,K.set("ack","1"),K.set("cpn",H.clientPlaybackNonce),K.set("opr","1"),L=H.V(),L.K("html5_onesie_ads")||(K.set("oaad","0"),K.set("oavd","0")),K.set("por","1"),jF()||K.set("onem","1"),0<H.startSeconds&&
L.K("html5_onesie_nonzero_playback_start")&&(K.set("osts",""+H.startSeconds),K.set("osbr","1"),K.set("osnz","1")),P||(R?(H=R.audio,K.set("pvi",R.video.join(",")),K.set("pai",H.join(",")),pB()||K.set("osh","1")):(K.set("oad","0"),K.set("ovd","0"),K.set("oaad","0"),K.set("oavd","0"))),a.rj&&a.va("ombrs","1"),B=a.xa.V().schedule,a.zn=new PU(a,{Bi:B,tH:a.rj}),b.set("rn",""+a.zn.requestNumber),a.Ew=b.ye(),gNa(a.zn,a.Ew),a.Wc("ocs"),a.Wc("or_p"),pB()?qB()?a.xhr=new OU(a.Ew,u,a.zn,y):a.xhr=new YU(a.Ew,u,
a.zn,y):a.xhr=new $U(a.Ew,a.zn,y),a.CR.start(),a.rj&&(null==(D=a.cq)?0:D.D)&&a.va("ombhr",a.cq.D),G.return(a.Cn)}})};
g.k.Cw=function(){this.Wc("orh_r")};
g.k.nt=function(){!this.dD&&this.xhr.ol()&&this.DJ();this.uo()};
g.k.Gq=function(){this.uo();if(!this.isDisposed()){var a=oRa(this),b=this.xhr;a.rc=b.status;if(b.rf()){var c="onesie.net";a.msg=b.rf()}else 400<=b.status?c="onesie.net.badstatus":b.lA()?this.EP||(c="onesie.response.noplayerresponse"):c=204===b.status?"onesie.net.nocontent":"onesie.net.connect";c?this.fail(new xG(c,a)):(this.Wc("orf"),this.Wc("or_fs"),iNa(this.zn,(0,g.T)(),b.ol(),0),this.rj&&this.va("rqs",a));this.rj&&this.va("ombre","ok."+ +!c);this.Nw=!1;oX(this);nX(this.nk);this.Dw.stop();var d;
if(c=null==(d=this.cq)?void 0:tKa(d))for(d=0;d<c.length;d++)this.va("pathprobe",c[d])}};
g.k.K=function(a){return this.Y.K(a)};
g.k.u_=function(){if(lRa(this)&&this.cq&&(!this.dD||this.K("html5_onesie_probe_ec_hosts"))){var a=this.cq;if(a.Y.experiments.jb("html5_onesie_probe_ec_hosts")){var b,c=null==(b=a.j.get(3))?void 0:MB(b.location);c&&kS(a,c,"osc",this);var d;(c=null==(d=a.j.get(4))?void 0:MB(d.location))&&kS(a,c,"ocy",this)}else{var e;(d=null==(e=a.j.get(1))?void 0:MB(e.location))&&kS(a,d,"o2",this);(d=null==(c=a.j.get(2))?void 0:MB(c.location))&&kS(a,d,"o3",this)}}};
g.k.xP=function(){this.logger.info("Onesie request timed out");this.Nw=!1;if(!oX(this)){var a=oRa(this);a.timeout="1";this.fail(new xG("onesie.request",a))}};
g.k.fail=function(a){var b=this;a=zG(a);this.cD?this.xa.Ed(a):(this.Cn.reject(a),this.cD=!0);nX(this.nk);this.Dw.stop();this.Wc("ore");this.Wc("or_fe");var c,d;null==(c=this.cq)||null==(d=tKa(c))||d.forEach(function(e){b.va("pathprobe",e)});
this.dispose()};
g.k.ra=function(){this.playerResponse="";var a;null==(a=this.xhr)||a.abort();nX(this.nk);this.ix.dispose();g.J.prototype.ra.call(this)};
g.k.uo=function(){try{var a=this.xhr;102400<a.ol()&&!this.RP&&(this.Wc("or100k"),this.RP=!0);for(var b={};a.Bh();){var c=a.aj();b.aF=c.totalLength;this.rj&&this.va("ombrss","len."+b.aF);this.ix.feed(c);b={aF:b.aF}}if(this.Zf)for(var d=g.r(this.Zf.keys()),e=d.next();!e.done;e=d.next())a=void 0,null==(a=this.Zf.get(e.value))||a.wq();else{var f;null==(f=this.ze)||f.wq()}}catch(h){this.fail(h)}};var tRa=!1;g.v(g.uX,g.az);g.k=g.uX.prototype;g.k.ra=function(){this.gS();this.bE.stop();window.clearInterval(this.TD);NKa(this.Ff);this.visibility.unsubscribe("visibilitystatechange",this.Ff);RPa(this.qc);g.Ye(this.qc);BX(this);g.Tn.Zk(this.Dt);this.di();this.Qe=null;g.Ye(this.videoData);g.Ye(this.al);g.Ze(this.S_);this.Yn=null;g.az.prototype.ra.call(this)};
g.k.mA=function(a){this.qc.mA(a)};
g.k.Ht=function(a,b,c,d){this.qc.Ht(a,b,c);this.K("html5_log_media_perf_info")&&this.va("adloudness",{ld:d.toFixed(3),cpn:a})};
g.k.PH=function(){var a;return null==(a=this.Ka)?void 0:a.PH()};
g.k.QH=function(){var a;return null==(a=this.Ka)?void 0:a.QH()};
g.k.getVideoData=function(){return this.videoData};
g.k.V=function(){return this.Y};
g.k.Yp=function(){return this.visibility};
g.k.Ud=function(){return this.mediaElement};
g.k.SG=function(){if(this.videoData.isLoaded()){var a=this.al;0<g.RE(a.Sa.experiments,"html5_player_min_build_cl")&&470597858<g.RE(a.Sa.experiments,"html5_player_min_build_cl")&&YOa(a,"oldplayer");HRa(this)}else this.videoData.jf||this.videoData.Zl?this.kq&&g.aG(this.Y)&&this.videoData.isLivePlayback||(this.videoData.jf?zBa(this.videoData):(a=this.qc,a.qoe&&(a=a.qoe,jW(a,"protected"),a.j.videoData.S?a.wS():a.j.videoData.subscribe("dataloaded",a.wS,a)),vBa(this.videoData))):!this.videoData.Ia&&this.IX&&
GRa(this)};
g.k.Tv=aa(5);g.k.isFullscreen=function(){return this.visibility.isFullscreen()};
g.k.isBackground=function(){return this.visibility.isBackground()};
g.k.sendAbandonmentPing=function(){g.V(this.getPlayerState(),128)||(this.ma("internalAbandon"),this.HK(!0),RPa(this.qc),g.Ye(this.qc),g.Tn.Zk(this.Dt));var a;null==(a=this.Y.Ni)||a.flush()};
g.k.Yt=function(){QPa(this.qc)};
g.k.pg=function(a,b,c,d,e,f){var h,l;g.tf(X0a,c)?h=c:c?l=c:h="GENERIC_WITHOUT_LINK";d=(d||"")+(";a6s."+iGa());b={errorCode:a,errorDetail:e,errorMessage:l||g.LO[h]||"",yH:h,bl:f||"",ZR:d,mC:b};this.videoData.errorCode=hN(a).toString();zX(this,"dataloaderror");this.Xb(ZJ(this.playerState,128,b));g.Tn.Zk(this.Dt);BX(this);this.Ro()};
g.k.xf=function(a){this.xk=this.xk.filter(function(b){return a!==b});
this.Oo.started&&AX(this)};
g.k.ul=function(){var a;(a=!!this.xk.length)||(a=this.Mh.j.array[0],a=!!a&&-0x8000000000000>=a.start);return a};
g.k.Co=function(){return this.qd.Co()};
g.k.Tc=function(){return this.playerState.Tc()};
g.k.xz=function(){return this.playerState.xz()&&this.videoData.Lu};
g.k.getPlayerState=function(){return this.playerState};
g.k.getPlayerType=function(){return this.playerType};
g.k.getPreferredQuality=function(){if(this.Qe){var a=this.Qe;a=a.videoData.Wu.compose(a.videoData.VL);a=xB(a)}else a="auto";return a};
g.k.Vy=aa(9);g.k.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()};
g.k.setMediaElement=function(a){if(this.mediaElement&&a.zf()===this.mediaElement.zf()&&(a.isView()||this.mediaElement.isView())){if(a.isView()||!this.mediaElement.isView())g.$y(this.qx),this.mediaElement=a,SRa(this),this.qd.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.di();if(!this.playerState.isError()){var b=aK(this.playerState,512);g.V(b,8)&&!g.V(b,2)&&(b=$J(b,1));a.isView()&&(b=aK(b,64));this.Xb(b)}this.mediaElement=a;this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);
SRa(this);this.qd.setMediaElement(this.mediaElement);this.K("html5_prewarm_media_source")&&!this.al.Bz&&bDa(this.mediaElement)}};
g.k.di=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;if(this.mediaElement){var c=this.getCurrentTime();0<c&&(this.qd.C=c);this.qd.setMediaElement(null);KX(this);this.Ka&&(wV(this.Ka),LX(this,b));this.Vs.stop();if(this.mediaElement&&(!this.Oo.started||this.playerState.isError()||g.V(this.playerState,2)||this.Xb($J(this.playerState,512)),this.mediaElement)){g.$y(this.qx);if(a||!this.mediaElement.isView())this.mediaElement.stopVideo(),PX(this);this.mediaElement=null}}};
g.k.playVideo=function(){var a=this,b,c,d,e,f;return g.z(function(h){if(1==h.j){if(!a.K("html5_clear_globalcache_killswitch")){var l=window.google_image_requests;l&&10<l.length&&(window.google_image_requests=l.slice(-10))}if(g.V(a.playerState,128))return h.return();if(a.al.iD())return a.ma("signatureexpired"),h.return();a.mediaElement&&(l=a.qc,$V(l.C),l.qoe&&lW(l.qoe));FX(a);g.V(a.playerState,64)&&a.Xb($J(a.playerState,8));return a.Oo.isFinished()&&a.mediaElement?a.Qe||!a.cA?h.Ma(2):g.x(h,a.cA,2):
h.return()}if(!a.videoData.B)return a.videoData.isLivePlayback&&!g.YE(a.Y.j,!0)?(b="html5.unsupportedlive",c=2):(b=UH(a.videoData)?"fmt.unplayable":"fmt.noneavailable",c=1),g.pz(Error("selectableFormats")),a.pg(b,c,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),h.return();if(a.Fg()&&a.videoData.B.j)return h.return(yX(a));if(fI(a.videoData)){d=a.getCurrentTime()<a.getMinSeekableTime()-15;e=g.gI(a.videoData)&&g.V(a.playerState,4);(f=!a.K("html5_dompaused_unpause_killswitch")&&g.V(a.playerState,
1024))||!d&&!e||(e?a.seekTo(Infinity,{Ae:"videoplayer_unpauseLiveOnly"}):a.seekTo(a.getMinSeekableTime(),{Ae:"videoplayer_outOfWindow"}));!a.isAtLiveHead(void 0,!0)&&a.Co()&&a.seekTo(Infinity,{Ae:"videoplayer_peggedToLive"});if(l=g.V(a.playerState,256)&&a.videoData.Wa)l=a.qd,l=l.S&&!isFinite(l.j);if(l)return a.Xb(bK(a.playerState,8,4)),h.return()}g.V(a.playerState,4)&&g.V(a.playerState,16)&&a.Xb(bK(a.playerState,9,4));if(tX(a))return XRa(a),h.return();OX(a);g.na(h)})};
g.k.Pp=function(){if(!this.Qe)return[];var a=XV(this.dh,this.Qe,this.zs());return this.Qe.j.Pp(a)};
g.k.My=function(){if(!this.Qe)return[];var a=XV(this.dh,this.Qe,this.zs());return this.Qe.j.My(a)};
g.k.zs=function(){var a=this.De?this.De.zs():SH(this.videoData)&&this.videoData.j&&HB(this.videoData.j)?this.videoData.Xi?EH:MOa:EH;this.AK&&(a=a.compose(z0a));return a};
g.k.CC=function(){if(this.K("html5_apply_ustreamer_cap_per_video_id")){var a=this.Tf(),b=this.Sg.bd().videoId;return this.Sg.Ys.CC(a)||this.Sg.Ys.CC(b)}return this.K("html5_remove_ustreamer_cap_from_non_onesie_ads")?this.videoData.ws:this.videoData.ws||this.Sg.bd().ws};
g.k.getUserPlaybackQualityPreference=function(){return this.videoData.B&&!this.videoData.B.j?xB(this.videoData.Wu):wB[FE()]};
g.k.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()};
g.k.setUserAudio51Preference=function(a){this.videoData.zg!==a&&(this.va("toggle51",{pref:a}),this.videoData.zg=a,g.Nz("yt-player-audio51",a,2592E3),UV(this))};
g.k.getUserAudio51Preference=function(){var a=1;kG(this.Y)&&this.K("html5_ytv_surround_toggle_default_off")&&(a=0);var b;return null!=(b=g.Oz("yt-player-audio51"))?b:a};
g.k.getAvailableAudioTracks=function(){return this.videoData.getAvailableAudioTracks()};
g.k.getAudioTrack=function(){if(MRa(this)){var a=ORa(this);if(a)return a}return this.videoData.getAudioTrack()};
g.k.Up=function(){return this.mediaSource};
g.k.zw=function(a){this.Fw.set(a.initData,a);this.De&&(this.De.zw(a),this.K("html5_eme_loader_sync")||this.Fw.remove(a.initData))};
g.k.UJ=function(a){this.videoData.Lj=g.uB("auto",a,!1,"u");sX(this)};
g.k.ED=function(a){IX(this,a.reason,a.video.info,a.audio.info);this.qd.ED(a)};
g.k.FD=function(a){this.ma("localmediachange",a)};
g.k.kx=function(){var a;null==(a=this.Ka)||a.kx(this.Y)};
g.k.iD=function(){return this.al.iD()};
g.k.handleError=function(a){this.al.handleError(a)};
g.k.pauseVideo=function(a){a=void 0===a?!1:a;if((g.V(this.playerState,64)||g.V(this.playerState,2))&&!a)if(g.V(this.playerState,8))this.Xb(bK(this.playerState,4,8));else if(this.xz())tX(this);else return;g.V(this.playerState,128)||(a?this.Xb($J(this.playerState,256)):this.Xb(bK(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.gI(this.videoData)&&this.Ka&&LX(this,!1)};
g.k.stopVideo=function(){this.pauseVideo();this.Ka&&(LX(this,!1),this.Ka.mj())};
g.k.Ro=function(a){a=void 0===a?!1:a;var b;null==(b=this.mediaElement)||b.stopVideo();PX(this);BX(this);g.V(this.playerState,128)||(a?this.Xb(aK(aK($J(this.playerState,4),8),16)):this.Xb(ZJ(this.playerState)));this.videoData.videoId&&this.Y.qa.remove(this.videoData.videoId)};
g.k.seekTo=function(a,b){b=void 0===b?{}:b;g.V(this.playerState,2)&&tX(this);if(this.rd){var c=this.rd;isFinite(a)&&a<c.xa.ll()?c.isLiveNow=!1:c.isLiveNow=!0}this.qd.seekTo(a,b);this.K("html5_cuerange_synconseek_killswitch")||this.Mh.Rl()};
g.k.getCurrentTime=function(){return this.qd.getCurrentTime()};
g.k.nj=function(){return this.qd.nj()};
g.k.ll=function(){return this.qd.ll()};
g.k.getPlaylistSequenceForTime=function(a){return this.videoData.getPlaylistSequenceForTime(a-this.Cd())};
g.k.Sv=function(){var a=NaN;this.mediaElement&&(a=this.mediaElement.Sv());return 0<=a?a:this.getCurrentTime()};
g.k.getIngestionTime=function(){var a;return(null==(a=this.videoData.j)?0:a.getIngestionTime)?this.videoData.j.getIngestionTime(this.getCurrentTime()-this.Cd()):this.K("html5_disable_limit_ingestion_tvos")&&!Pu()||!this.mediaElement||!(a=this.mediaElement.vB())||(a=a.getTime(),isNaN(a))?NaN:a/1E3+this.getCurrentTime()};
g.k.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.Cd():this.Bd()?this.Bd():0};
g.k.bz=function(){var a=new VPa;if(this.Ka){var b=this.Y.schedule;a.j=b.Z;a.C=b.qa;a.bandwidthEstimate=BF(b);a.u={d:zF(b).toFixed(2),st:(1E9*(b.j.Rh()||0)).toFixed(2),bw:b.B.Rh().toFixed(0),abw:b.I.Rh().toFixed(0),v50:xF(b.u,.5).toFixed(2),v92:xF(b.u,.92).toFixed(2),v96:xF(b.u,.96).toFixed(2),v98:xF(b.u,.98).toFixed(2)};b=this.Ka;if(b.mediaSource&&!b.mediaSource.Xf()&&(a.Nr=JU(b.videoTrack),a.B=JU(b.audioTrack),b.policy.zc)){var c=IU(b.videoTrack),d=IU(b.audioTrack),e=eE(b.mediaSource.u.Cg(),"_",
5),f=eE(b.mediaSource.j.Cg(),"_",5);Object.assign(a.u,{lvq:c,laq:d,lvb:e,lab:f})}a.bandwidthEstimate=FT(b.S)}else this.mediaElement&&(a.Nr=VJ(this.mediaElement));a.D=this.isAtLiveHead()&&this.Tc()?rX(this):NaN;return a};
g.k.As=function(){return this.mediaElement?g.gI(this.videoData)?1:hI(this.videoData)?this.isAtLiveHead()||this.Co()?1:this.qd.As():this.mediaElement.As():0};
g.k.Sb=function(a){var b={};if(void 0===a?0:a){Object.assign(b,this.qc.Sb());this.mediaElement&&(Object.assign(b,this.mediaElement.Sb()),Object.assign(b,this.ez()));this.Ka&&Object.assign(b,this.Ka.Sb());this.De&&(b.drm=JSON.stringify(this.De.Sb()));b.state=this.playerState.state.toString(16);g.V(this.playerState,128)&&(b.debug_error=JSON.stringify(this.playerState.getData()));this.ul()&&(b.prerolls=this.xk.join(","));this.videoData.Pc&&(b.ismb=this.videoData.Pc);"UNKNOWN"!==this.videoData.latencyClass&&
(b.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(b.lowlatency="1");this.videoData.cotn&&(b.is_offline=1,b.cotn=this.videoData.cotn);this.Sg.isOrchestrationLeader()&&(b.leader=1);this.videoData.isLivePlayback&&(this.videoData.j&&BE(this.videoData.j)&&(b.segduration=BE(this.videoData.j)),a=this.qd,b.lat=a.I?yLa(a.I.C):0,b.liveutcstart=this.videoData.liveUtcStartSeconds);b.relative_loudness=this.videoData.pe.toFixed(3);if(a=g.HX(this))b.optimal_format=a.video.qualityLabel;
b.user_qual=FE();b.release_version="youtube.player.web_20220828_00_RC00"}b.debug_videoId=this.videoData.videoId;return b};
g.k.addCueRange=function(a){this.Wx([a])};
g.k.removeCueRange=function(a){this.Mh.jh([a])};
g.k.Gy=function(a,b){return this.Mh.Gy(a,b)};
g.k.Wx=function(a,b){this.Mh.qe(a,b)};
g.k.kE=function(a){this.Mh.jh(a)};
g.k.il=function(){return this.Mh.il()||[]};
g.k.Fg=function(){return this.visibility.Fg()};
g.k.Pq=function(){this.mediaElement&&this.mediaElement.Pq()};
g.k.n3=function(){zX(this)};
g.k.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()};
g.k.VJ=function(a){var b=a.target.Lf();if(this.mediaElement&&this.mediaElement.Lf()&&this.mediaElement.Lf()===b){$Ra(this,a.type);switch(a.type){case "error":var c=XJ(this.mediaElement)||"";if("capability.changed"===c){yX(this);return}if(0<this.mediaElement.gg()&&VV(this.al,c,{msg:this.mediaElement.rf()}))return;if(this.isBackground()&&4===this.mediaElement.gg()){this.Ro();CX(this,"unplayable");return}break;case "durationchange":c=this.mediaElement.getDuration();isFinite(c)&&(!this.mediaSource||0<
c)&&1!==c&&this.Cj(c);break;case "ratechange":this.Ka&&this.Ka.setPlaybackRate(this.mediaElement.getPlaybackRate());c=this.Mh;c.started=!0;c.Rl();this.qc.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":bSa(this);this.ma("onLoadedMetadata");TRa(this);break;case "loadstart":TRa(this);break;case "progress":case "suspend":this.hc();this.ma("onLoadProgress",this,this.As());break;case "playing":XN(this.tb,"plev");this.DK&&(this.DK=!1,this.isAtLiveHead()||this.seekTo(Infinity,{Ae:"videoplayer_onPlaying"}));
break;case "timeupdate":c=this.mediaElement&&!this.mediaElement.getCurrentTime();var d=this.mediaElement&&0===this.mediaElement.hj();if(c&&(!this.AD||d))return;this.AD=this.AD||!!this.mediaElement.getCurrentTime();NX(this);this.hc();if(!this.mediaElement||this.mediaElement.Lf()!==b)return;this.ma("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(0<this.mediaElement.Cs().length&&0===this.mediaElement.Xg().length&&0<this.mediaElement.getCurrentTime()&&5>this.mediaElement.getCurrentTime()&&
this.Ka)return;break;case "resize":bSa(this);this.videoData.u&&"auto"===this.videoData.u.video.quality&&this.ma("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.TN&&g.V(this.playerState,8)&&!g.V(this.playerState,1024)&&0===this.getCurrentTime()&&g.Xv){CX(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.Lf()===b){this.ma("videoelementevent",a);b=this.playerState;if(!g.V(b,128)){c=this.ey;var e=this.mediaElement;d=b.state;e=e?e:a.target;var f=
e.getCurrentTime();if(!g.V(b,64)||"ended"!==a.type&&"pause"!==a.type){var h=e.Yg()||1<f&&1.1>Math.abs(f-e.getDuration()),l="pause"===a.type&&e.Yg();f="ended"===a.type||"waiting"===a.type||"timeupdate"===a.type&&!g.V(b,4)&&!EW(c,f);if(l||h&&f)0<e.IC()&&e.Lf()&&(d=14);else switch(a.type){case "error":XJ(e)&&(d|=128);break;case "pause":g.V(b,256)?(d^=256)||(d=64):g.V(b,32)||g.V(b,2)||g.V(b,4)||(d=4,g.V(b,1)&&g.V(b,8)&&(d|=1));break;case "playing":d=(d|8)&-1093;EW(c,e.getCurrentTime())&&(d&=-2);g.V(b,
1)&&FW(c,e.getCurrentTime(),(0,g.T)(),VJ(e))&&(d|=1);break;case "seeking":d|=16;g.V(b,8)&&(d|=1);d&=-3;break;case "seeked":d&=-17;break;case "waiting":g.V(b,2)||(d|=1);FW(c,e.getCurrentTime(),(0,g.T)(),VJ(e));break;case "timeupdate":h=g.V(b,16),l=g.V(b,4),(g.V(b,8)||h)&&!l&&EW(c,e.getCurrentTime())&&(d=8),FW(c,e.getCurrentTime(),(0,g.T)(),VJ(e))&&(d|=1)}}c=d;d=null;c&128&&(d=a.target,e=XJ(d),h=1,e?("capability.changed"===e&&(h=2),l="GENERIC_WITHOUT_LINK",f=d.Sb(),f.mediaElem="1",/AUDIO_RENDERER/.test(d.rf())&&
(l="HTML5_AUDIO_RENDERER_ERROR"),d={errorCode:e,errorMessage:g.LO[l]||"",yH:l,ZR:wG(f),mC:h}):d=null);b=ZJ(b,c,d)}!g.V(this.playerState,1)&&g.V(b,1)&&QX(this,"evt"+a.type);this.Xb(b)}}};
g.k.s0=function(a){a="available"===a.j.availability;a!==this.qz&&(this.qz=a,this.ma("airplayavailabilitychange"))};
g.k.t0=function(){var a=(0,g.T)(),b=this.mediaElement.Fg();this.va("airplay",{ia:b});if(!this.K("html5_ignore_inactive_airplay_killswitch")&&b||isNaN(this.jD)||!(2E3>a-this.jD))this.jD=a,b!==this.Fg()&&(a=this.visibility,a.j!==b&&(a.j=b,a.Ff()),this.va("airplay",{rbld:b}),UV(this)),this.ma("airplayactivechange")};
g.k.jz=function(a){if(this.Ka){var b=this.Ka,c=b.u,d=b.currentTime,e=Date.now()-c.ea;c.ea=NaN;c.va("sdai",{adfetchdone:a,d:e});a&&!isNaN(c.D)&&XLa(c,d,c.D,c.B);PT(c,4,"adf");wV(b)}};
g.k.hc=function(a){var b=this;a=void 0===a?!1:a;if(this.mediaElement&&this.videoData){rQa(this.qd,this.Tc());var c=this.getCurrentTime();this.Ka&&(g.V(this.playerState,4)&&g.gI(this.videoData)||fOa(this.Ka,c));5<c&&(this.qd.C=c);var d=g.Dv();d?g.Tn.Zk(this.Dt):g.xu(this.Dt);var e=this.mediaElement.Pn();if((g.fK(this.playerState)||!e||xI(this.videoData))&&!g.V(this.playerState,128)){var f=function(){if(b.mediaElement&&!g.V(b.playerState,128)){vG(b.Y)&&g.RE(b.Y.experiments,"html5_log_rebuffer_events")&&
$Ra(b,"pfx");var h=b.getCurrentTime(),l=VJ(b.mediaElement),m=g.V(b.playerState,8),n=EW(b.ey,h),p=FW(b.ey,h,(0,g.T)(),l);m&&n?b.Xb(aK(b.playerState,1)):m&&p?(m=b.getDuration(),n=fI(b.videoData),(b.K("html5_set_ended_in_pfx_live")||!n)&&m&&1.1>Math.abs(m-h)?(b.va("setended",{ct:h,bh:l,dur:m,live:n}),n&&b.K("html5_set_ended_in_pfx_live_cfl")||(b.mediaElement.Bs()?b.seekTo(0,{Ae:"videoplayer_loop"}):AS(b))):(g.fK(b.playerState)||QX(b,"progress_fix"),b.Xb($J(b.playerState,1)))):(m&&!n&&!p&&0<h&&(m=(Date.now()-
b.Bz)/1E3,n=b.getDuration(),h>n-1&&b.va("misspg",{t:h.toFixed(2),d:n.toFixed(2),r:m.toFixed(2),bh:l.toFixed(2)})),g.V(b.playerState,4)&&g.fK(b.playerState)&&5<VJ(b.mediaElement)&&b.Xb(aK(b.playerState,1)));b.hc()}};
0===this.mediaElement.Cs().length?this.Dt=d?g.Tn.Jh(f,100):g.vu(f,100):this.Dt=d?g.Tn.Jh(f,500):g.vu(f,500)}this.videoData.nz=c;!a&&this.Tc()&&WRa(this);iPa(this.dh,this.Qe,this.Ud(),this.isBackground())&&sX(this);jPa(this.dh,this.videoData.u)&&(this.qc.Ed("qoe.restart","droprate."+this.dh.J),Gya(this.Y.j),UV(this));this.ma("progresssync",this,a);!this.K("html5_progress_event_linear_paused_killswitch")&&e&&xI(this.videoData)&&this.ma("onVideoProgress",this,this.getCurrentTime())}};
g.k.fZ=function(){this.pg("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))};
g.k.Ty=function(){return this.qc.Ty()};
g.k.MH=function(){return this.Ka?this.Ka.MH():BF(this.Y.schedule,!0)};
g.k.PX=function(){g.fK(this.playerState)&&gPa(this.dh,this.Qe)&&sX(this)};
g.k.Xb=function(a){if(!g.cK(this.playerState,a)){var b=new g.qJ(a,this.playerState);this.playerState=a;aSa(this);var c=!this.WD.length;this.WD.push(b);var d=this.mediaElement&&this.mediaElement.Gg();if(g.sJ(b,1)&&!g.V(b.yq,16)&&!d&&g.V(this.playerState,8)&&!g.V(this.playerState,64)&&this.Ka){d=this.Ka;d.mw=!0;if(d.policy.wg&&d.J){var e={rebuf:d.mw,ct:d.currentTime.toFixed(3)},f=d.B;f.S&&(e.ccr=f.S);f.C&&(e.sq=f.C.info.j[0].Na,e.itag=f.C.info.j[0].j.info.id,e.mt=f.C.info.j[0].C.toFixed(3),e.st=f.C.state,
(f=f.C.gg())&&(e.err=f));d.va("sdai",e)}this.mediaElement&&5<=VJ(this.mediaElement)&&((d=g.RE(this.Y.experiments,"html5_non_network_rebuffer_duration_ms"))?this.JQ.start(d):gPa(this.dh,this.Qe)&&sX(this))}(d=g.RE(this.Y.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.V(a,1)&&(g.V(a,8)||g.V(a,16))?this.sG.start(d):this.sG.stop();(0>rJ(b,8)||g.sJ(b,1024))&&this.Vs.stop();!g.sJ(b,8)||this.videoData.Wa||g.V(b.state,1024)||this.Vs.start();g.V(b.state,8)&&0>rJ(b,16)&&!g.V(b.state,32)&&!g.V(b.state,
2)&&this.playVideo();g.V(b.state,2)&&hI(this.videoData)&&(this.Cj(this.getCurrentTime()),this.hc(!0));g.sJ(b,2)&&this.HK(!0);g.sJ(b,128)&&this.Ro();this.videoData.j&&this.videoData.isLivePlayback&&!this.qT&&(0>rJ(b,8)?(a=this.videoData.j,a.B&&a.B.stop()):g.sJ(b,8)&&this.videoData.j.resume());this.qd.Uc(b);this.qc.Uc(b);if(c&&!this.isDisposed())try{for(var h=g.r(this.WD),l=h.next();!l.done;l=h.next()){var m=l.value;this.Mh.Uc(m);this.ma("statechange",m)}}finally{this.WD.length=0}}};
g.k.Uz=function(){this.videoData.isLivePlayback||this.ma("connectionissue")};
g.k.QJ=function(){this.tb.tick("qoes")};
g.k.DD=function(a,b,c,d){a:{var e=this.al;d=void 0===d?"LICENSE":d;c=c.substr(0,256);var f=yG(b);"drm.keyerror"===a&&this.De&&1<this.De.u.keys.length&&96>e.C&&(a="drm.sessionlimitexhausted",f=!1);if(f)if(e.videoData.u&&e.videoData.u.video.isHdr())$Oa(e,a);else{if(e.xa.pg(a,b,d,c),TOa(e,{detail:c}))break a}else e.Ed(a,{detail:c});"drm.sessionlimitexhausted"===a&&(e.va("retrydrm",{sessionLimitExhausted:1}),e.C++,ZRa(e.xa))}};
g.k.m1=function(){var a=this,b=g.RE(this.Y.experiments,"html5_license_constraint_delay"),c=Yu();b&&c?(b=new g.Xn(function(){EX(a);zX(a)},b),g.M(this,b),b.start()):(EX(this),zX(this))};
g.k.Wz=function(a){this.ma("heartbeatparams",a)};
g.k.Eq=function(a){this.va("keystatuses",GV(a));var b="auto",c=!1;this.videoData.u&&(b=this.videoData.u.video.quality,c=this.videoData.u.video.isHdr());if(this.K("html5_drm_check_all_key_error_states")){var d=DOa(b,c);d=FV(a)?HV(a,d):a.D.includes(d)}else{a:{b=DOa(b,c);for(d in a.j)if("output-restricted"===a.j[d].status){var e=a.j[d].type;if(""===b||"AUDIO"===e||b===e){d=!0;break a}}d=!1}d=!d}b=a.qa&&d;c&&!b?$Oa(this.al):d||HV(a,"AUDIO")&&HV(a,"SD")||(a=GV(a),this.AK?(this.ma("drmoutputrestricted"),
this.K("html5_report_fatal_drm_restricted_error_killswitch")||this.pg("drm.keyerror",2,void 0,"info."+a)):(this.AK=!0,this.Ed(new xG("qoe.restart",Object.assign({},{retrydrm:1},a))),sX(this),ZRa(this)))};
g.k.q1=function(){if(!this.videoData.Wa&&this.mediaElement&&!this.isBackground()){var a="0";0<this.mediaElement.hj()&&5<=VJ(this.mediaElement)&&this.videoData.B&&this.videoData.B.j&&(this.Xb($J(this.playerState,1)),QX(this,"load_soft_timeout"),this.ma("playbackstalledatstart"),a="1");aSa(this);if(this.K("html5_new_video_qoe_restart_info_killswitch"))a={restartmsg:a},this.ul()&&(a.prerolls=this.xk.join(",")),this.Ka&&Object.assign(a,this.Ka.Sb()),this.mediaElement&&Object.assign(a,this.mediaElement.Sb());
else{var b=this.videoData.B;a={restartmsg:a,mfmt:SH(this.videoData)?"0":"1",mdrm:b&&b.videoInfos&&b.videoInfos.length&&b.videoInfos[0].yd&&!this.De?"1":"0",mfmtinfo:this.videoData.u?"0":"1",prerolls:this.ul()?this.xk.join(","):"0"};if(this.De){b=a;var c=this.De;if(0>=c.u.size){var d="ns;";c.Z||(d+="nr;");c=d+="ql."+c.B.length}else c=GV(c.u.values().next().value),c=wG(c);b.drmp=c}var e;Object.assign(a,(null==(e=this.Ka)?void 0:e.Sb())||{});var f;Object.assign(a,(null==(f=this.mediaElement)?void 0:
f.Sb())||{})}this.qc.Ed("qoe.start15s",wG(a));this.ma("loadsofttimeout")}};
g.k.Cj=function(a){this.videoData.lengthSeconds!==a&&(this.videoData.lengthSeconds=a,zX(this))};
g.k.HK=function(a){var b=this;a=void 0===a?!1:a;if(!this.KB){kB("att_s","player_att")||lB("att_s",void 0,"player_att");var c=new g.vGa(this.videoData);if("c1a"in c.j&&!g.JM.isInitialized()&&(lB("att_wb",void 0,"player_att"),2===this.EG&&.01>Math.random()&&g.pz(Error("Botguard not available after 2 attempts")),!a&&5>this.EG)){g.Yn(this.FG);this.EG++;return}if("c1b"in c.j){var d=TPa(this.qc);d&&yGa(c).then(function(e){e&&!b.KB&&d?(lB("att_f",void 0,"player_att"),d(e),b.KB=!0):lB("att_e",void 0,"player_att")},
function(){lB("att_e",void 0,"player_att")})}else(a=g.wGa(c))?(lB("att_f",void 0,"player_att"),SPa(this.qc,a),this.KB=!0):lB("att_e",void 0,"player_att")}};
g.k.Bd=function(a){return this.qd.Bd(void 0===a?!1:a)};
g.k.getMinSeekableTime=function(){return this.qd.getMinSeekableTime()};
g.k.Cd=function(){return this.qd?this.qd.Cd():0};
g.k.getStreamTimeOffset=function(){return this.qd?this.qd.getStreamTimeOffset():0};
g.k.oo=function(){var a=0;this.Y.K("web_player_ss_media_time_offset")&&(a=0===this.getStreamTimeOffset()?this.Cd():this.getStreamTimeOffset());return a};
g.k.setPlaybackRate=function(a){var b;this.playbackRate!==a&&YV(this.dh,null==(b=this.videoData.B)?void 0:b.videoInfos)&&(this.dh.setPlaybackRate(a),sX(this));this.playbackRate=a;this.mediaElement&&this.mediaElement.setPlaybackRate(a)};
g.k.getPlaybackRate=function(){return this.playbackRate};
g.k.getPlaybackQuality=function(){var a="unknown";if(this.videoData.u&&(a=this.videoData.u.video.quality,"auto"===a&&this.mediaElement)){var b=nJ(this);b&&0<b.videoHeight&&(a=LD(b.videoWidth,b.videoHeight))}return a};
g.k.isHdr=function(){return!!(this.videoData.u&&this.videoData.u.video&&this.videoData.u.video.isHdr())};
g.k.mx=function(){this.qc.mx()};
g.k.sendVideoStatsEngageEvent=function(a,b){var c=this.qc;c.j?(c=tW(c.j,"engage"),c.S=a,c.send(b)):b&&b()};
g.k.Ii=function(a){return this.qc.Ii(a)};
g.k.isAtLiveHead=function(a,b){b=void 0===b?!1:b;return fI(this.videoData)&&(this.AP||b)?this.qd.isAtLiveHead(a):!1};
g.k.Sp=function(){var a=this.Bd(),b=this.getCurrentTime(),c;(c=!fI(this.videoData))||(c=this.qd,c=!(c.u&&c.u.B));return c||this.Co()||isNaN(a)||isNaN(b)?0:Math.max(0,a-b)};
g.k.Dl=aa(13);g.k.Dq=aa(35);g.k.Cq=aa(38);g.k.ez=function(){return this.mediaElement?this.mediaElement.wB():{}};
g.k.setLoop=function(a){this.loop=a;this.mediaElement&&this.mediaElement.setLoop(a)};
g.k.Bs=function(){return this.mediaElement?this.mediaElement.Bs():this.loop};
g.k.TJ=function(a){this.va("timestamp",{t:a.toString()});this.qd.TJ(a)};
g.k.Wc=function(a){this.tb.tick(a)};
g.k.nh=function(a){return this.tb.nh(a)};
g.k.va=function(a,b,c){this.qc.va(a,b,void 0===c?!1:c)};
g.k.rK=function(a,b,c){this.qc.va(a,b,void 0===c?!1:c)};
g.k.Ed=function(a){this.qc.Ed(a.errorCode,wG(a.details))};
g.k.nA=function(a,b,c){this.qc.nA(a,b,c)};
g.k.getPlayerSize=function(){return this.DA.getPlayerSize()};
g.k.Ki=function(){return this.DA.Ki()};
g.k.Gi=function(){return this.tb};
g.k.K=function(a){return this.Y.K(a)};
g.k.DG=function(){if(XH(this.videoData,"html5_set_debugging_opt_in")){var a=g.pv.getInstance();g.qv(0,183)||(rv(183,!0),a.save())}};
g.k.gS=function(){if(g.dK(this.playerState)){var a=wX.QO();0!==Object.keys(a).length&&this.qc.va("profile",a)}this.bE.start()};
g.k.Gl=function(){var a=this.getCurrentTime(),b=a-this.Cd(),c=this.mediaElement?iE(this.mediaElement.Xg()):0;c=Math.floor(Math.max(c-b,0))+100;var d;return(null==(d=this.Ka)?0:d.Gl(b,c))?(this.va("sdai",{skipad:1,ct:b.toFixed(3),adj:c.toFixed(3)}),this.qd.Gl(a),!0):!1};
g.k.bI=function(){return this.Y.Te||""};
g.k.Tf=function(){return this.videoData.videoId};
g.k.Vv=function(a){return this.Ka?this.Ka.Vv(a):""};
g.k.LC=function(){return this.Sg.ot};g.v(g.TX,g.J);g.TX.create=function(a,b,c){try{var d="string"===typeof a?a:"player"+g.Oa(a),e=D4[d];if(e){try{e.dispose()}catch(h){g.oz(h)}D4[d]=null}var f=new g.TX(a,b,c);g.$e(f,function(){D4[d]=null;f.kT&&f.kT()});
return D4[d]=f}catch(h){throw g.oz(h),h.stack;}};
g.k=g.TX.prototype;g.k.Yp=function(){return this.visibility};
g.k.getVisibilityState=function(a,b,c,d,e,f){return this.visibility.getVisibilityState(a,b,c,d,e,f)};
g.k.Jm=function(){this.CI||(this.CI=g.EM(wK(),fGa()));return this.CI};
g.k.isVideoInfoVisible=function(){return!(!this.Mk||!this.Mk.rb)};
g.k.di=function(){if(this.mediaElement){this.vx&&(this.events.yc(this.vx),this.vx=null);g.$y(this.qq);this.Jb&&this.Jb.di(!0);this.template.di();try{this.K("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.lE()}catch(a){g.pz(a)}this.mediaElement=null}};
g.k.Jc=function(){return this.Jb};
g.k.Qo=function(){this.Jb!==this.sb&&BS(this,this.sb)};
g.k.qy=function(a,b,c){var d=this,e=this.tb;2===a&&(e=new WN(this.Y));return new g.uX(this.Y,a,e,this.template,function(f){return d.Po.ma.apply(d.Po,[f].concat(g.t(g.za.apply(1,arguments))))},function(){return d.Va.getVisibilityState()},this.visibility,this,b,c)};
g.k.iE=function(){if(!UX(this)){var a=sO(this.Bc);a&&!a.created&&oO(this.Bc)&&a.create()}};
g.k.setIsExternalPlaylist=function(a){this.Oh=cv(!1,a)};
g.k.y0=function(){UX(this)||this.Bn(5)};
g.k.P1=function(a){if(!UX(this)){KSa(this);var b=a.getPlayerState();a.xz()?this.pauseVideo():g.dK(b)&&this.playVideo()}};
g.k.canPlayType=function(a){return ZD(a)};
g.k.V=function(){return this.Y};
g.k.getVideoData=function(){return this.Jb.getVideoData()};
g.k.cz=aa(7);g.k.bd=function(){return this.sb.getVideoData()};
g.k.getVideoLoadedFraction=function(a){a=g.pN(this,a);return a?g.uI(a.getVideoData())?1:(a=a.Ud())?a.As():0:0};
g.k.gb=function(){return this.template};
g.k.wb=function(){return this.Bc};
g.k.Gi=function(){return this.tb};
g.k.Uw=function(a){var b=g.pN(this,1);b&&AS(b,a)};
g.k.pj=function(){var a=this.Bc.eI();a.fs=this.Va.isFullscreen();a.volume=Math.round(this.Va.getVolume());a.muted=this.Va.isMuted()?1:0;a.mos=a.muted;if(this.Y.K("html5_enable_embedded_player_visibility_signals")&&g.KF(this.Y)){if(this.LL){var b=this.LL;b=null==b.j?null:Math.round(100*b.j)/100;null!=b&&(a.inview=b)}b=this.template.getPlayerSize();if(0<b.height&&0<b.width){b=[Math.round(b.width),Math.round(b.height)];var c=g.iG();1<c&&b.push(c);a.size=b.join(":")}}this.Jb===this.sb&&this.xb&&(a.clipid=
this.xb.postId);return a};
g.k.U3=function(){IGa(this.getVideoData(),this.Y,this.Jm())};
g.k.addBgVersionChangeCallback=function(a){ZM.push(a)};
g.k.JH=function(a){var b=this;return g.z(function(c){return b.LR?c.return(b.LR.JH(a)):c.return(Promise.reject("web po not available"))})};
g.k.OK=function(a){this.LR=a};
g.k.zk=function(a){1===a&&(this.tb.tick("vr"),this.Vq||(this.Vq=Mw(m0a,this.WQ,this)),URa(this.Jb),qHa(this.tb,this.Jb.getVideoData(),JSa(this)),this.Bc.fC());var b=this.Y;(rG(b)&&b.C||g.SF(b))&&(this.Fe()||this.Va.Pa("onAdStateChange",a))};
g.k.setLoopVideo=function(a){this.Jb===this.sb&&this.Jb.Bs()!==a&&(this.Jb.setLoop(a),this.Va.Pa("onLoopChange",a))};
g.k.getLoopVideo=function(){return this.Jb.Bs()};
g.k.setLoopRange=function(a){var b=!1;!!this.xb!==!!a?b=!0:this.xb&&a&&(b=this.xb.startTimeMs!==a.startTimeMs||this.xb.endTimeMs!==a.endTimeMs||this.xb.postId!==a.postId||this.xb.type!==a.type);if(b){this.sb.Mh.Gf("applooprange");if(a)b=new g.qA(a.startTimeMs,a.endTimeMs,{id:"looprange",namespace:"applooprange"}),this.sb.addCueRange(b);else{this.bd().clipConfig=void 0;var c,d;"repeatChapter"!==(null==(c=this.xb)?void 0:c.type)||isNaN(Number(null==(d=this.xb)?void 0:d.loopCount))||(b={loopCount:String(this.xb.loopCount),
cpn:this.getVideoData().clientPlaybackNonce},g.Kv("repeatChapterLoopEvent",b))}this.xb=a;this.Va.Pa("onLoopRangeChange",a||void 0);this.Jb===this.sb&&(this.uE(),this.Jb.Yt())}};
g.k.getLoopRange=function(){return this.xb};
g.k.uE=function(){this.xb&&this.Jb===this.sb&&(ySa(this,this.sb.getCurrentTime())?this.xb.loopCount=0:zSa(this))};
g.k.setPlaybackRate=function(a,b){isNaN(a)||(a=kSa(this,a),this.sb.getPlaybackRate()!==a&&(this.sb.setPlaybackRate(a),b&&!this.Y.u&&g.Nz("yt-player-playback-rate",a),this.Va.Pa("onPlaybackRateChange",a)))};
g.k.getCurrentTime=function(a,b){b=void 0===b?!0:b;if(3===this.getPresentingPlayerType())return xN(this.Bc).getCurrentTime();var c=2===a&&this.getVideoData().enableServerStitchedDai;a=c?g.pN(this):g.pN(this,a);if(!a)return 0;if(b){if(c&&this.Vd&&(b=this.Vd.kb/1E3,0!==b))return b;a=$X(this,a);return jY(this,a.getCurrentTime(),a)}c&&this.Vd?(b=this.Vd,a=a.getCurrentTime(),GS(b)?(b=QS(b,1E3*a))&&b.tp&&(a-=b.tp):(b=WKa(b,1E3*a))&&(a-=b.start/1E3)):a=a.getCurrentTime();return a};
g.k.Sv=function(){var a=g.pN(this);if(!a)return 0;a=$X(this,a);return jY(this,a.Sv(),a)};
g.k.getDuration=function(a,b){b=void 0===b?!0:b;var c=this.getVideoData(),d=2===a&&c.enableServerStitchedDai;a=d?g.pN(this):g.pN(this,a);if(!a)return 0;if(c.hasProgressBarBoundaries()&&!d){var e,f=Number(null==(e=c.progressBarStartPosition)?void 0:e.utcTimeMillis),h;c=Number(null==(h=c.progressBarEndPosition)?void 0:h.utcTimeMillis);if(!isNaN(f)&&!isNaN(c))return(c-f)/1E3}if(b)return b=ZX(this,a),jY(this,b.getDuration(),b);d&&this.Vd?(b=this.Vd,d=a.getCurrentTime(),b=GS(b)?b.ea?b.ea.durationMs/1E3:
0:(b=QS(b,1E3*d))?b.durationMs/1E3:0):b=a.getDuration();return b};
g.k.getMinSeekableTime=function(a){a=g.pN(this,a);if(!a)return 0;a=ZX(this,a);return jY(this,a.getMinSeekableTime(),a)};
g.k.getIngestionTime=function(a){var b=g.pN(this,a);return b?this.Fe(b)?(b=ZX(this,b),b.getIngestionTime()-b.getCurrentTime()+this.getCurrentTime(a)):b.getIngestionTime():0};
g.k.mH=function(){this.template.mH();var a=this.G;a.element=this.template.element;var b=a.element,c;for(c in a.state.j)a.state.j.hasOwnProperty(c)&&(b[c]=a.state.j[c]);(a=Xy(this.template.element))&&this.events.T(this.template,a,this.onFullscreenChange);this.events.T(window,"resize",this.q2)};
g.k.getDebugText=function(a){var b=this.sb.Sb(a);if(this.Jb&&this.Jb!==this.sb){for(var c=this.Jb.Sb(a),d=g.r(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,b["ad"+e]=c[e];if(a){c=b;d={};if(e=Ada("movie_player"))d.bounds=e.getBoundingClientRect(),d["class"]=e.className;e={};var f=g.ch("video-ads");f?(PSa(f,e),e.html=f.outerHTML):e.missing=1;f={};var h=g.ch("videoAdUiSkipContainer"),l=g.ch("ytp-ad-skip-button-container"),m=h||l;m?(PSa(m,f),f.ima=h?1:0,f.bulleit=l?1:0):f.missing=1;d=JSON.stringify({player:d,
videoAds:e,skipButton:f});c.ad_skipBtnDbgInfo=d}}a&&this.mediaElement&&(b["0sz"]=""+(0===+Mg(this.mediaElement.getSize())),b.op=this.mediaElement.getStyle("opacity"),c=this.mediaElement.Wp().y+this.mediaElement.getSize().height,b.yof=""+(0>=+c),b.dis=this.mediaElement.getStyle("display"));(a=a?(0,g.kW)():null)&&(b.gpu=a);b.debug_playbackQuality=this.Va.getPlaybackQuality(1);b.debug_date=(new Date).toString();delete b.uga;delete b.q;return JSON.stringify(b,null,2)};
g.k.getFeedbackProductData=function(){var a={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.V().experiments.experimentIds.join(", ")},b=this.Eb().getData();b&&(a.player_error_code=b.errorCode,a.player_error_details=JSON.stringify(b.errorDetail));return a};
g.k.getPresentingPlayerType=function(a){if(1===this.appState)return 1;if(UX(this))return 3;var b;return a&&(null==(b=this.Vd)?0:b.isAdPlaying(this.getCurrentTime()))?2:g.pN(this).getPlayerType()};
g.k.Eb=function(a){return 3===this.getPresentingPlayerType()?xN(this.Bc).Dd:g.pN(this,a).getPlayerState()};
g.k.getAppState=function(){return this.appState};
g.k.VJ=function(a){switch(a.type){case "loadedmetadata":XN(this.tb,"fvb");XN(this.tb,"fvb_r");this.sE.start();a=g.r(this.Qw);for(var b=a.next();!b.done;b=a.next())b=b.value,HSa(this,b.id,b.f6,b.e6,void 0,!1);this.Qw=[];break;case "loadstart":XN(this.tb,"gv");break;case "progress":case "timeupdate":2<=iE(a.target.Xg())&&XN(this.tb,"l2s");break;case "playing":g.pG&&this.sE.start();if(g.aG(this.Y))a=!1;else{b=g.zN(this.wb());a="none"===this.mediaElement.getStyle("display")||0===Mg(this.mediaElement.getSize());
var c=xT(this.template),d=this.Jb.getVideoData(),e=g.TF(this.Y)||g.VF(this.Y);d=TH(d);b=!c||b||e||d||this.Y.Hd;a=a&&!b}a&&(this.Jb.va("hidden",{},!0),this.getVideoData().lc||(this.getVideoData().lc=1,this.hR(null),this.Jb.playVideo()))}};
g.k.onLoadProgress=function(a,b){this.Va.Pa("onLoadProgress",b)};
g.k.P2=function(){this.Va.ma("playbackstalledatstart")};
g.k.onVideoProgress=function(a,b){a=$X(this,a);b=jY(this,a.getCurrentTime(),a);this.Va.Pa("onVideoProgress",b)};
g.k.onAutoplayBlocked=function(){this.Va.Pa("onAutoplayBlocked")};
g.k.Z1=function(){this.Va.ma("progresssync")};
g.k.A0=function(a){if(1===this.getPresentingPlayerType()){g.sJ(a,1)&&!g.V(a.state,64)&&this.bd().isLivePlayback&&this.sb.isAtLiveHead()&&1<this.Va.getPlaybackRate()&&this.setPlaybackRate(1,!0);if(g.sJ(a,2)){if(this.xb&&this.xb.endTimeMs>=1E3*(this.getDuration()-1)){zSa(this);return}uSa(this)}if(g.V(a.state,128)){var b=a.state;this.cancelPlayback(5);b=b.getData();JSON.stringify({errorData:b,debugInfo:this.getDebugText(!0)});this.Va.Pa("onError",hN(b.errorCode));this.Va.Pa("onDetailedError",{errorCode:b.errorCode,
errorDetail:b.errorDetail,message:b.errorMessage,messageKey:b.yH});6048E5<(0,g.T)()-this.Y.Ne&&this.Va.Pa("onReloadRequired")}b={};if(a.state.Tc()&&!g.fK(a.state)&&!kB("pbresume","ad_to_video")&&kB("_start","ad_to_video")){var c=this.getVideoData();b.clientPlaybackNonce=c.clientPlaybackNonce;c.videoId&&(b.videoId=c.videoId);XA(b,"ad_to_video");if(this.K("html5_csi_delay_pbresume")){if(kB("plev","ad_to_video")&&!isNaN(this.tb.u))if(b=1E3*(this.getCurrentTime()-this.tb.u),0>b){var d;null==(d=g.pN(this))||
d.va("csir",{ossms:b})}else if(1E5<b){var e;null==(e=g.pN(this))||e.va("csir",{oslms:b})}else d=(0,g.T)()-b,WA("pbresume",d,"ad_to_video"),this.tb.u=NaN}else WA("pbresume",void 0,"ad_to_video");this.Bc.fC()}this.Va.ma("applicationplayerstatechange",a)}};
g.k.BR=function(a){3!==this.getPresentingPlayerType()&&this.Va.ma("presentingplayerstatechange",a)};
g.k.Dh=function(a){XX(this,gK(a.state));g.V(a.state,1024)&&this.Va.isMutedByMutedAutoplay()&&(nN(this,{muted:!1,volume:this.Gh.volume},!1),gY(this,!1))};
g.k.w0=function(a,b,c){"newdata"===a&&RX(this);b=c.clipConfig;"dataloaded"===a&&b&&null!=b.startTimeMs&&null!=b.endTimeMs&&this.setLoopRange({startTimeMs:Math.floor(Number(b.startTimeMs)),endTimeMs:Math.floor(Number(b.endTimeMs)),postId:b.postId,type:"clips"})};
g.k.Sz=function(){this.Va.Pa("onPlaybackAudioChange",this.Va.getAudioTrack().Nc.name)};
g.k.aA=function(a){var b=this.Jb.getVideoData();a===b&&this.Va.Pa("onPlaybackQualityChange",a.u.video.quality)};
g.k.onVideoDataChange=function(a,b,c){b===this.sb&&(this.Y.zg=c.oauthToken);if(this.K("html5_ssdai_only_maintain_sstm_on_application_killswitch")||b===this.sb)this.getVideoData().enableServerStitchedDai&&!this.Vd?this.Vd=new g.HS(this.Va,this.Y,this.sb):!this.getVideoData().enableServerStitchedDai&&this.Vd&&(this.Vd.dispose(),this.Vd=null);if("newdata"===a)rO(this.Bc,2),this.Va.ma("videoplayerreset",b);else{if(!this.mediaElement)return;if("dataloaded"===a)if(this.Jb===this.sb){if(YF(c.Sa,c.FN),!this.sb.getPlayerState().isError()){var d=
UX(this);this.bd().isLoaded();d&&this.Bn(6);wSa(this);qO(this.Bc)||this.iE()}}else wSa(this);if(1===b.getPlayerType()&&(this.Y.Ba&&OSa(this),this.getVideoData().isLivePlayback&&!this.Y.pm&&this.Of("html5.unsupportedlive",2,"DEVICE_FALLBACK"),c.isLoaded())){if(c.xg||c.lG||c.Ou||c.Qu||c.cM||c.J.focEnabled||c.J.rmktEnabled||this.getVideoData().Vt){d=this.qv;var e=this.getVideoData(),f=this.sb;fN(d,"part2viewed",1,0x8000000000000,f);fN(d,"engagedview",Math.max(1,1E3*e.yb),0x8000000000000,f);e.isLivePlayback||
(e=1E3*e.lengthSeconds,fN(d,"videoplaytime25",.25*e,e,f),fN(d,"videoplaytime50",.5*e,e,f),fN(d,"videoplaytime75",.75*e,e,f),fN(d,"videoplaytime100",e,0x8000000000000,f),fN(d,"conversionview",e,0x8000000000000,f),fN(d,"videoplaybackstart",1,e,f),fN(d,"videoplayback2s",2E3,e,f),fN(d,"videoplayback10s",1E4,e,f))}if(c.hasProgressBarBoundaries()){var h;d=Number(null==(h=this.getVideoData().progressBarEndPosition)?void 0:h.utcTimeMillis)/1E3;!isNaN(d)&&(h=this.getIngestionTime())&&(h-=this.getCurrentTime(),
h=1E3*(d-h),d=this.cE.progressEndBoundary,(null==d?void 0:d.start)!==h&&(d&&this.kE([d]),h=new g.qA(h,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),this.sb.addCueRange(h),this.cE.progressEndBoundary=h))}}this.Va.ma("videodatachange",a,c,b.getPlayerType())}this.Va.Pa("onVideoDataChange",{type:a,playertype:b.getPlayerType()});this.uE();(a=c.tA)?this.gq.vO(a,c.clientPlaybackNonce):ILa(this.gq)};
g.k.yv=function(){aY(this,null);this.Va.Pa("onPlaylistUpdate")};
g.k.MQ=function(a){var b=a.getId(),c=this.bd(),d=!this.isInline();if(!c.inlineMetricEnabled||d){if("part2viewed"===b){if(c.ZP&&g.Uw(c.ZP),c.lG&&sY(this,c.lG),c.Ou)for(var e={CPN:this.getVideoData().clientPlaybackNonce},f=g.r(c.Ou),h=f.next();!h.done;h=f.next())sY(this,g.Qn(h.value,e))}else"conversionview"===b?this.sb.mx():"engagedview"===b&&c.xg&&(e={CPN:this.getVideoData().clientPlaybackNonce},g.Uw(g.Qn(c.xg,e)));c.aQ&&(e=a.getId(),e=mu(c.aQ,{label:e}),g.Uw(e));switch(b){case "videoplaytime25":c.CO&&
sY(this,c.CO);c.nG&&tY(this,c.nG);c.wQ&&g.Uw(c.wQ);break;case "videoplaytime50":c.mP&&sY(this,c.mP);c.oG&&tY(this,c.oG);c.IQ&&g.Uw(c.IQ);break;case "videoplaytime75":c.GP&&sY(this,c.GP);c.pG&&tY(this,c.pG);c.YR&&g.Uw(c.YR);break;case "videoplaytime100":c.jO&&sY(this,c.jO),c.mG&&tY(this,c.mG),c.jQ&&g.Uw(c.jQ)}(e=this.getVideoData().Vt)&&FSa(this,e,a.getId())&&FSa(this,e,a.getId()+"gaia")}if(c.inlineMetricEnabled&&!d)switch(b){case "videoplaybackstart":var l,m=null==(l=c.Qu)?void 0:l.j;m&&sY(this,m);
break;case "videoplayback2s":(l=null==(m=c.Qu)?void 0:m.B)&&sY(this,l);break;case "videoplayback10s":var n;(l=null==(n=c.Qu)?void 0:n.u)&&sY(this,l)}this.sb.removeCueRange(a)};
g.k.Y1=function(a){delete this.cE[a.getId()];this.sb.removeCueRange(a);a:{a=this.getVideoData();var b,c,d,e,f,h,l,m,n,p,q=(null==(b=a.watchNextResponse)?void 0:null==(c=b.contents)?void 0:null==(d=c.singleColumnWatchNextResults)?void 0:null==(e=d.autoplay)?void 0:null==(f=e.autoplay)?void 0:f.sets)||(null==(h=a.watchNextResponse)?void 0:null==(l=h.contents)?void 0:null==(m=l.twoColumnWatchNextResults)?void 0:null==(n=m.autoplay)?void 0:null==(p=n.autoplay)?void 0:p.sets);if(q)for(b=g.r(q),c=b.next();!c.done;c=
b.next())if(c=c.value,e=d=void 0,c=c.autoplayVideo||(null==(d=c.autoplayVideoRenderer)?void 0:null==(e=d.autoplayEndpointRenderer)?void 0:e.endpoint),d=g.Zu(c,g.TG),f=e=void 0,null!=c&&(null==(e=d)?void 0:e.videoId)===a.videoId&&(null==(f=d)?0:f.continuePlayback)){a=c;break a}a=null}(b=g.Zu(a,g.TG))&&this.Va.Pa("onPlayVideo",{sessionData:{autonav:"1",itct:null==a?void 0:a.clickTrackingParams},videoId:b.videoId,watchEndpoint:b})};
g.k.Bn=function(a){a!==this.appState&&(2===a&&1===this.getPresentingPlayerType()&&(XX(this,-1),XX(this,5)),this.appState=a,this.Va.ma("appstatechange",a))};
g.k.Of=function(a,b,c,d,e){this.sb.pg(a,b,c,d,e)};
g.k.Xo=function(a,b){this.sb.handleError(new xG(a,b))};
g.k.isAtLiveHead=function(a,b){b=void 0===b?!1:b;var c=g.pN(this,a);if(!c)return!1;a=ZX(this,c);c=$X(this,c);return a!==c?a.isAtLiveHead(jY(this,c.getCurrentTime(),c),!0):a.isAtLiveHead(void 0,b)};
g.k.Sp=function(){var a=g.pN(this);return a?ZX(this,a).Sp():0};
g.k.seekTo=function(a,b,c,d){b=!1!==b;if(d=g.pN(this,d))2===this.appState&&eY(this),this.Fe(d)?iY(this)?this.Vd.seekTo(a,b,c):this.rd.seekTo(a,b,c):d.seekTo(a,{gT:!b,hT:c,Ae:"application"})};
g.k.seekBy=function(a,b,c,d){this.seekTo(this.getCurrentTime()+a,b,c,d)};
g.k.Bw=function(){this.Va.Pa("SEEK_COMPLETE")};
g.k.E2=function(a,b){var c=a.getVideoData();if(1===this.appState||2===this.appState)c.startSeconds=b;2===this.appState?g.V(a.getPlayerState(),512)||eY(this):this.Va.Pa("SEEK_TO",b)};
g.k.onAirPlayActiveChange=function(){this.Va.ma("airplayactivechange");this.Y.K("html5_external_airplay_events")&&this.Va.Pa("onAirPlayActiveChange",this.Va.Fg())};
g.k.onAirPlayAvailabilityChange=function(){this.Va.ma("airplayavailabilitychange");this.Y.K("html5_external_airplay_events")&&this.Va.Pa("onAirPlayAvailabilityChange",this.Va.qz())};
g.k.showAirplayPicker=function(){var a;null==(a=this.Jb)||a.Pq()};
g.k.xJ=function(){this.Va.ma("beginseeking")};
g.k.CJ=function(){this.Va.ma("endseeking")};
g.k.getStoryboardFormat=function(a){return(a=g.pN(this,a))?ZX(this,a).getVideoData().getStoryboardFormat():null};
g.k.Ji=function(a){return(a=g.pN(this,a))?ZX(this,a).getVideoData().Ji():null};
g.k.Fe=function(a){a=a||this.Jb;var b=!1;if(a){a=a.getVideoData();if(iY(this))a=a===this.Vd.xa.getVideoData();else a:if(b=this.rd,a===b.j.getVideoData()&&b.u.length)a=!0;else{b=g.r(b.u);for(var c=b.next();!c.done;c=b.next())if(a.Hc===c.value.Hc){a=!0;break a}a=!1}b=a}return b};
g.k.ov=function(a,b,c,d,e,f,h){var l=iY(this),m;null==(m=g.pN(this))||m.va("appattl",{sstm:this.Vd?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:l});return l?UKa(this.Vd,a,b,c,d,e,f,h):lLa(this.rd,a,c,d,e,f)};
g.k.oz=function(a,b,c,d,e,f,h){iY(this)&&UKa(this.Vd,a,b,c,d,e,f,h);return""};
g.k.Fq=function(a){var b;null==(b=this.Vd)||b.Fq(a)};
g.k.Rr=function(a,b){a=void 0===a?-1:a;b=void 0===b?Infinity:b;iY(this)?this.Y.K("web_player_ssdai_prevent_clearing_timeline_killswitch")&&TS(this.Vd,a,b):fT(this.rd,a,b)};
g.k.lx=function(a,b,c){if(iY(this)){var d=this.Vd,e=d.zc.get(a);e?(void 0===c&&(c=e.Zc),e.durationMs=b,e.Zc=c,d.Y.K("web_player_ssdai_prevent_updating_ad_cuerange_killswitch")&&XKa(d,e)):d.Ez("Invalid_timelinePlaybackId_"+a+"_specified")}else{d=this.rd;e=null;for(var f=g.r(d.u),h=f.next();!h.done;h=f.next())if(h=h.value,h.Hc===a){e=h;break}e?(void 0===c&&(c=e.Zc),rLa(d,e,b,c)):ZS(d,"InvalidTimelinePlaybackId timelinePlaybackId="+a)}};
g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;d=void 0===d?"":d;this.Fe();a=new g.FH(this.Y,a);d&&(a.Hc=d);c=void 0===c?Infinity:c;d=b||this.Jb.getPlayerType();(b=hY(this,d,a,!0))||(b=YX(this,d,a));2===d&&this.sb&&(a=b.getVideoData(),this.sb.Ht(a.clientPlaybackNonce,a.Lc||"",a.breakType||0,a.pe));this.kC(b,c)};
g.k.kC=function(a,b,c){var d=this;c=void 0===c?0:c;var e=g.pN(this);e&&(ZX(this,e).qT=!0);IKa(this.sx,a,b,c).then(function(){d.Va.Pa("onQueuedVideoLoaded")},function(){})};
g.k.lw=function(){return this.sx.lw()};
g.k.clearQueue=function(){this.sx.clearQueue()};
g.k.loadVideoByPlayerVars=function(a,b,c,d,e){b=void 0===b?1:b;var f=!1;this.K("fetch_bid_for_dclk_status")&&g.Av(g.Cv(),function(){bA("player")});
var h=new g.FH(this.Y,a),l;pHa(this.tb,null!=(l=h.La)?l:"");this.tb.nh("pl_i");this.K("web_player_early_cpn")&&h.clientPlaybackNonce&&this.tb.info("cpn",h.clientPlaybackNonce);if(!this.K("web_player_load_video_context_killswitch")&&e){for(;h.jk.length&&h.jk[0].isExpired();)h.jk.shift();f=h.jk.length-1;f=0<f&&e.u(h.jk[f])&&e.u(h.jk[f-1]);h.jk.push(e)}c||(a&&ZN(a)?(hG(this.Y)&&!this.Oh&&(a.fetch=0),aY(this,a)):this.playlist&&aY(this,null),a&&this.setIsExternalPlaylist(a.external_list),hG(this.Y)&&!this.Oh&&
bY(this));a=this.nq(h,b,d);f&&this.Of("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+h.jk.join()).replace(/[;:,]/g,"_"));return a};
g.k.preloadVideoByPlayerVars=function(a,b,c,d,e){b=void 0===b?1:b;c=void 0===c?NaN:c;e=void 0===e?"":e;d=hv(a);if(!this.fA.get(b+"_"+d+"_"+e)){a=new g.FH(this.Y,a);e&&(a.Hc=e);e=b+"_"+a.videoId+"_"+a.Hc;if(d=this.Jb){d=this.Jb.getPlayerType();var f=this.Jb.getVideoData().videoId,h=this.Jb.getVideoData().Hc;d=e===d+"_"+f+"_"+h}d?(g.yS(this.Jb,!0),a.dispose()):(a.wg=!0,a=YX(this,b,a),1===b&&kG(this.Y)||g.yS(a,!0),this.fA.set(e,a,c||3600))}};
g.k.setMinimized=function(a){this.visibility.setMinimized(a);a=this.Bc;a=a.G.V().showMiniplayerUiWhenMinimized?a.le.get("miniplayer"):void 0;a&&(this.Df()?a.load():a.unload());this.Va.ma("minimized")};
g.k.setInline=function(a){this.visibility.setInline(a)};
g.k.setInlinePreview=function(a){this.visibility.setInline(a);a=this.Bc;a=a.G.V().showInlinePreviewUi?a.le.get("inline_preview"):void 0;a&&(this.isInline()?a.load():a.unload(),this.Va.Pa("onInlinePreviewModeChange"))};
g.k.Tw=function(a){var b=this.Y.K("html5_block_pip_non_mse")&&"undefined"===typeof MediaSource,c=this.Y.Hk&&this.Y.K("html5_block_pip_with_events")||b;a&&c&&this.getVideoData()&&!this.getVideoData().backgroundable?this.HH&&b?this.HH.start():this.bO():this.visibility.Tw(a)};
g.k.bO=function(){var a,b=null==(a=this.mediaElement)?void 0:a.zf();b&&Wy(b).catch(function(c){return g.pz(c)})};
g.k.setImmersivePreview=function(a){this.visibility.setImmersivePreview(a)};
g.k.B2=function(){"picture-in-picture"===this.mediaElement.zf().webkitPresentationMode?this.Tw(!0):this.Tw(!1)};
g.k.togglePictureInPicture=function(){var a=g.pN(this);a&&a.togglePictureInPicture()};
g.k.nq=function(a,b,c){b=void 0===b?1:b;kB("_start",this.tb.timerName)||(WA("_start",void 0,this.tb.timerName),this.tb.info("srt",0));var d=!1,e=hY(this,b,a,!1);e?(d=!0,a.dispose()):(e=YX(this,b,a,c),this.K("html5_onesie")&&xX(e)&&g.yS(e),this.sE.stop(),1===b&&b!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,b),BS(this,e));e===this.sb&&(this.Y.zg=a.oauthToken);if(!xX(e))return!1;if(e===this.sb){this.Bn(1);a=eY(this);if(d&&this.G.K("html5_player_preload_ad_fix")&&e.vn.isFinished())this.onVideoDataChange("dataloaded",
e,e.getVideoData());return a}FX(e);return!0};
g.k.cueVideoByPlayerVars=function(a,b){var c=this;b=void 0===b?1:b;if(a&&ZN(a))if(this.Ns=!0,aY(this,a),(a=g.$N(this.playlist))&&a.isValid())nY(this,a,b);else this.playlist.onReady(function(){dY(c)});
else{b||(b=this.getPresentingPlayerType());1===b&&this.yv();var d=new g.FH(this.Y,a);!g.KF(this.Y)||this.Y.S||1!==b||d.isAd()||d.Lc?nY(this,d,b):(this.Jc().getVideoData().Ia=!0,wHa(d,a?a:{}).then(function(e){nY(c,e,b)}),d.dispose())}};
g.k.Nl=function(a,b,c,d,e,f,h){if(!a&&!c)throw Error("Playback source is invalid");if(MF(this.Y)||g.lG(this.Y))return b=b||{},b.lact=Nx(),b.vis=this.Va.getVisibilityState(),this.Va.Pa("onPlayVideo",{videoId:a,watchEndpoint:f,sessionData:b,listId:c}),!1;rHa(this.tb);this.tb.reset();a={video_id:a};d&&(a.autoplay="1");d&&(a.autonav="1");f&&!this.K("web_player_watch_endpoint_param_killswitch")&&(a.player_params=f.playerParams);h&&(a.oauth_token=h);c?(a.list=c,this.loadPlaylist(a)):this.loadVideoByPlayerVars(a,
1);return!0};
g.k.cuePlaylist=function(a,b,c,d){this.Ns=!0;GSa(this,a,b,c,d)};
g.k.loadPlaylist=function(a,b,c,d){this.Ns=!1;GSa(this,a,b,c,d)};
g.k.Ly=function(){if(this.Va.isMutedByMutedAutoplay())return!1;if(3===this.getPresentingPlayerType())return!0;hG(this.Y)&&!this.Oh&&bY(this);return!(!this.playlist||!this.playlist.hasNext())};
g.k.Op=aa(3);
g.k.nextVideo=function(a,b){var c=this.sb.getVideoData(),d;c=b?g.yI(c):null==(d=c.suggestions)?void 0:d[0];g.CN(this.Va)&&c?this.Nl(c.videoId,b?c.Dy:c.sessionData,c.playlistId,b,void 0,c.SN||void 0):this.Oh?this.Va.Pa("onPlaylistNext"):3===this.getPresentingPlayerType()?xN(this.Bc).nextVideo():this.playlist&&(hG(this.Y)&&!this.Va.isFullscreen()?lY(this,"yt.www.watch.lists.next"):(this.playlist.hasNext(a)&&aO(this.playlist,sHa(this.playlist)),this.playlist.loaded?(a=b&&this.Y.K("html5_player_autonav_logging"),this.nq(g.$N(this.playlist,
void 0,b,a),1)):this.Ns=!1))};
g.k.previousVideo=function(a){this.Oh?this.Va.Pa("onPlaylistPrevious"):3===this.getPresentingPlayerType()?xN(this.Bc).ZD():this.playlist&&(hG(this.Y)&&!this.Va.isFullscreen()?lY(this,"yt.www.watch.lists.prev"):(this.playlist.Rm(a)&&aO(this.playlist,tHa(this.playlist)),this.playlist.loaded?this.nq(g.$N(this.playlist),1):this.Ns=!1))};
g.k.playVideoAt=function(a){this.Oh?this.Va.Pa("onPlaylistIndex",a):this.playlist&&(this.playlist.loaded?this.nq(g.$N(this.playlist,a),1):this.Ns=!1,aO(this.playlist,a))};
g.k.getPlaylist=function(){return this.playlist};
g.k.Wy=aa(11);g.k.u0=function(a){this.Va.Pa("onCueRangeEnter",a.getId())};
g.k.v0=function(a){this.Va.Pa("onCueRangeExit",a.getId())};
g.k.Wx=function(a,b,c){var d=g.pN(this,b);d&&(d.Wx(a,c),b&&this.getPresentingPlayerType()!==b||WX(this,"cuerangesadded",a))};
g.k.kE=function(a,b){var c=g.pN(this,b);c&&(c.kE(a),b&&this.getPresentingPlayerType()!==b||WX(this,"cuerangesremoved",a))};
g.k.z0=function(){var a=this;this.getPresentingPlayerType();this.Vq||(this.Vq=Mw(m0a,this.WQ,this));qHa(this.tb,this.Jb.getVideoData(),JSa(this));SX(this)&&this.Y.u&&"embedded"===oI(this.bd())&&this.lQ&&.01>Math.random()&&g.Kv("autoplayTriggered",{intentional:this.PP});this.lQ=!1;this.Bc.fC();this.K("web_player_defer_ad")&&(this.Hr?g.Yn(this.Hr):this.iE());this.Va.Pa("onPlaybackStartExternal");this.Y.K("mweb_client_log_screen_associated");(function(){var c=g.zz(a.qS||(a.Df()?3:0));if(c&&"UNDEFINED_CSN"!==
c){var d=a.Y.K("web_player_attach_player_response_ve"),e=a.Y.K("web_playback_associated_ve");if(a.Y.K("il_via_jspb")){var f=new jt;var h=a.getVideoData().clientPlaybackNonce;h=g.E(f,1,h);g.E(h,3,c);a.getVideoData().Ba&&(d||e)&&(d=g.sz(a.getVideoData().Ba),g.Ez(c,d),e&&(c=d.getAsJspb(),F(f,bs,2,c)));if(a.Y.K("kevlar_playback_associated_queue")&&a.getVideoData().queueInfo){c=a.getVideoData().queueInfo;e=new kt;if(null==c?0:c.enqueueingVe)(null==c?0:c.enqueueingVe.trackingParams)?(d=g.sz(c.enqueueingVe.trackingParams),
d=d.getAsJspb(),F(e,bs,1,d)):g.pz(new g.Pv("Cannot map enqueueingVe from a client VE "));(null==c?0:c.enqueueingCsn)&&g.E(e,2,c.enqueueingCsn);(null==c?0:c.clientEnqueueingTimeMs)&&g.E(e,3,Number(c.clientEnqueueingTimeMs));F(f,kt,4,e)}c={};a.K("web_playback_associated_log_ctt")&&a.getVideoData().I&&(c.cttAuthInfo={token:a.getVideoData().I,videoId:a.getVideoData().videoId});ipa(f,c)}else f={cpn:a.getVideoData().clientPlaybackNonce,csn:c},a.getVideoData().Ba&&(d||e)&&(d=g.sz(a.getVideoData().Ba),g.Ez(c,
d),e&&(f.playbackVe=d.getAsJson())),a.Y.K("kevlar_playback_associated_queue")&&a.getVideoData().queueInfo&&(f.queueInfo=a.getVideoData().queueInfo),c={},a.K("web_playback_associated_log_ctt")&&a.getVideoData().I&&(c.cttAuthInfo={token:a.getVideoData().I,videoId:a.getVideoData().videoId}),g.Kv("playbackAssociated",f,c)}else g.pz(new g.Pv("CSN Missing or undefined during playback association"))})();
var b={};!this.K("web_player_csi_ctt_killswitch")&&this.getVideoData().I&&(b.cttAuthInfo={token:this.getVideoData().I,videoId:this.getVideoData().videoId});YA("player_att",b);this.getVideoData().botguardData&&(g.jG(this.Y)||"MWEB"===ZF(this.Y)?g.Av(g.Cv(),function(){fY(a)}):fY(this));
this.uE()};
g.k.HJ=function(){this.Va.ma("internalAbandon");this.K("html5_ad_module_cleanup_killswitch")||kY(this)};
g.k.WQ=function(a){a=a.j;!isNaN(a)&&0<a&&this.sb&&this.sb.mA(a)};
g.k.onApiChange=function(){this.Y.C&&this.Jb?this.Va.Pa("onApiChange",this.Jb.getPlayerType()):this.Va.Pa("onApiChange")};
g.k.A1=function(){var a=this.mediaElement;a={volume:g.Eg(Math.floor(100*a.getVolume()),0,100),muted:a.HC()};a.muted||gY(this,!1);this.Gh=g.Gf(a);this.Va.Pa("onVolumeChange",a)};
g.k.mutedAutoplay=function(){var a=this.getVideoData().videoId;a&&(this.loadVideoByPlayerVars({video_id:a,playmuted:!0}),this.Va.Pa("onMutedAutoplayStarts"))};
g.k.onFullscreenChange=function(){var a=pY(this);this.Dk(a?1:0);MSa(this,!!a)};
g.k.Dk=function(a){var b=!!a,c=!!this.Pv()!==b;this.visibility.Dk(a);this.template.Dk(b);this.K("html5_media_fullscreen")&&!b&&this.mediaElement&&pY(this)===this.mediaElement.zf()&&this.mediaElement.Fy();this.template.resize();c&&this.tb.tick("fsc");c&&(this.Va.ma("fullscreentoggled",b),a=this.bd(),b={fullscreen:b,videoId:a.OL||a.videoId,time:this.getCurrentTime()},this.Va.getPlaylistId()&&(b.listId=this.Va.getPlaylistId()),this.Va.Pa("onFullscreenChange",b))};
g.k.isFullscreen=function(){return this.visibility.isFullscreen()};
g.k.Pv=function(){return this.visibility.Pv()};
g.k.q2=function(){this.Jb&&(0!==this.Pv()&&1!==this.Pv()||this.Dk(pY(this)?1:0),this.Y.Hk&&this.getVideoData()&&!this.getVideoData().backgroundable&&this.mediaElement&&.33>window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)&&this.mediaElement.Fy())};
g.k.o1=function(a){3!==this.getPresentingPlayerType()&&this.Va.ma("liveviewshift",a)};
g.k.playVideo=function(a){if(a=g.pN(this,a))2===this.appState?eY(this):(null!=this.Mk&&this.Mk.rb&&this.Mk.start(),g.V(a.getPlayerState(),2)?this.seekTo(0):a.playVideo())};
g.k.pauseVideo=function(a){(a=g.pN(this,a))&&a.pauseVideo()};
g.k.stopVideo=function(){var a=this.sb.getVideoData(),b=new g.FH(this.Y,{video_id:a.OL||a.videoId,oauth_token:a.oauthToken});b.fg=g.Gf(a.fg);this.cancelPlayback(6);nY(this,b,1);null!=this.Mk&&this.Mk.stop()};
g.k.cancelPlayback=function(a,b){Lw(this.Vq);this.Vq=0;var c=g.pN(this,b);c&&(2===b&&1===c.getPlayerType()&&XBa(this.bd())?c.va("canclpb",{r:"no_adpb_ssdai"}):(this.Y.K("html5_high_res_logging")&&c.va("canclpb",{r:a}),1!==this.appState&&2!==this.appState&&(c===this.Jb&&rO(this.Bc,a),1===b&&(c.stopVideo(),kY(this)),c.Ro(),WX(this,"cuerangesremoved",c.il()),c.Mh.reset(),this.sx&&c.isGapless()&&(c.di(!0),c.setMediaElement(this.mediaElement)))))};
g.k.sendVideoStatsEngageEvent=function(a,b,c){(b=g.pN(this,b))&&this.Y.enabledEngageTypes.has(a.toString())?b.sendVideoStatsEngageEvent(a,c):c&&c()};
g.k.Ii=function(a){var b=g.pN(this);return b&&this.Y.enabledEngageTypes.has(a.toString())?b.Ii(a):null};
g.k.updatePlaylist=function(){hG(this.Y)?bY(this):g.KF(this.Y)&&cY(this);this.Va.Pa("onPlaylistUpdate")};
g.k.setSizeStyle=function(a,b){this.ES=a;this.JI=b;this.Va.ma("sizestylechange",a,b);this.template.resize()};
g.k.isWidescreen=function(){return this.JI};
g.k.Df=function(){return this.visibility.Df()};
g.k.isInline=function(){return this.visibility.isInline()};
g.k.jw=function(){return this.visibility.jw()};
g.k.ew=function(){return this.visibility.ew()};
g.k.yz=function(){return this.ES};
g.k.getAdState=function(){if(3===this.getPresentingPlayerType())return xN(this.Bc).getAdState();if(!this.Fe()){var a=sO(this.wb());if(a)return a.getAdState()}return-1};
g.k.o2=function(a){var b=this.template.getVideoContentRect();xl(this.fQ,b)||(this.fQ=b,this.Jb&&EX(this.Jb),this.sb&&this.sb!==this.Jb&&EX(this.sb),1===this.Pv()&&this.bA&&MSa(this,!0));this.RI&&g.Lg(this.RI,a)||(this.Va.ma("appresize",a),this.RI=a)};
g.k.hg=function(){return this.Va.hg()};
g.k.K2=function(){2===this.getPresentingPlayerType()&&this.rd.isManifestless()&&!this.K("web_player_manifestless_ad_signature_expiration_killswitch")?qLa(this.rd):(this.Vd&&(TS(this.Vd),kY(this)),tSa(this,"signature"))};
g.k.hR=function(){this.di();VX(this)};
g.k.G1=function(a){"manifest.net.badstatus"===a.errorCode&&"401"===a.details.rc&&this.Va.Pa("onPlayerRequestAuthFailed")};
g.k.Uz=function(){this.Va.Pa("CONNECTION_ISSUE")};
g.k.Wz=function(a){this.Va.ma("heartbeatparams",a)};
g.k.qE=function(a){this.Va.Pa("onAutonavChangeRequest",1!==a)};
g.k.Ud=function(){return this.mediaElement};
g.k.setBlackout=function(a){this.Y.Hd=a;this.Jb&&(this.Jb.Yt(),this.Y.Ba&&OSa(this))};
g.k.I1=function(){var a=g.pN(this);if(a){var b=!this.Va.wz();(a.AP=b)||a.Vs.stop();if(a.videoData.j)if(b)a.videoData.j.resume();else{var c=a.videoData.j;c.B&&c.B.stop()}a.Y.K("html5_suspend_loader")&&a.Ka&&(b?a.Ka.resume():LX(a,!0));a.Y.K("html5_fludd_suspend")&&(g.V(a.playerState,2)||b?g.V(a.playerState,512)&&b&&a.Xb(aK(a.playerState,512)):a.Xb($J(a.playerState,512)));a=a.qc;a.qoe&&(a=a.qoe,g.dW(a,g.zS(a.j),"stream",[b?"A":"I"]))}};
g.k.onLoadedMetadata=function(){this.Va.Pa("onLoadedMetadata")};
g.k.onDrmOutputRestricted=function(){this.Va.Pa("onDrmOutputRestricted")};
g.k.DG=function(){this.K("html5_skip_empty_load")&&(Y0a=!0);fDa=this.K("html5_ios_force_seek_to_zero_on_stop");Z0a=this.K("html5_ios7_force_play_on_stall");$0a=this.K("html5_ios4_seek_above_zero");a1a=this.K("html5_use_async_stopVideo");b1a=this.K("html5_pause_for_async_stopVideo");Cxa=this.K("html5_retain_source_buffer_appends_for_debugging");this.K("html5_mediastream_applies_timestamp_offset")&&(vU=!0);this.K("html5_dont_override_default_sample_desc_index")&&(xwa=!0);var a=g.RE(this.Y.experiments,
"html5_cobalt_override_quic");a&&uKa(0<a);Error.stackTraceLimit=25;var b=g.RE(this.Y.experiments,"html5_idle_rate_limit_ms");b&&Object.defineProperty(window,"requestIdleCallback",{value:function(c){return window.setTimeout(c,b)}});
B0a=this.K("html5_live_partial_response_resumable");Wwa=this.K("html5_allow_discontiguous_slices");Eya(this.Y.j)};
g.k.YI=function(){this.PP=!0};
g.k.ra=function(){this.Bc.dispose();this.rd.dispose();this.Vd&&this.Vd.dispose();this.sb.dispose();this.di();g.Ze(qf(this.Xt),this.playlist);Lw(this.Vq);this.Vq=0;g.J.prototype.ra.call(this)};
g.k.K=function(a){return this.Y.K(a)};
g.k.zE=function(){return this.BA};
g.k.requestStorageAccess=function(a,b){document.requestStorageAccess().then(a,b)};
g.k.setScreenLayer=function(a){this.qS=a};
g.k.seekToChapterWithAnimation=function(a){var b=this,c,d=null==(c=qN(this.wb()))?void 0:c.Ny();if(d instanceof g.TO&&!(0>a)){var e;if((c=null==(e=this.getVideoData())?void 0:e.Li)&&a<c.length)for(e=g.r(c),c=e.next();!c.done;c=e.next())if(c=c.value,c.index===a){RSa(this,d,c.startTime,c.title);return}if(this.K("web_key_moments_markers")){var f;(e=null==(f=this.getVideoData())?void 0:f.KT)&&a<e.length&&e.forEach(function(h,l){l===a&&RSa(b,d,h.timeRangeStartMillis,h.title)})}}};
g.k.downloadVideo=function(a,b){var c=this,d,e,f;return g.z(function(h){if(1==h.j){d=vO(c.Bc);if(!d)return h.return(Promise.reject());b&&(e={ytMainDownloadedVideoEntityActionMetadata:{maximumDownloadQuality:b}});return g.x(h,d.oK([a],"mainVideoEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",e),3)}f=h.u;return h.return(f[0])})};
g.k.pauseVideoDownload=function(a){var b=vO(this.Bc);b&&b.ZJ(a)};
g.k.resumeVideoDownload=function(a){var b=this,c;return g.z(function(d){return(c=vO(b.Bc))?d.return(c.rA(a)):d.return(Promise.reject())})};
g.k.refreshAllVideos=function(a){void 0===a&&(a=14400);var b=vO(this.Bc);return b?b.hE(a):Promise.reject()};
g.k.refreshAllStaleEntities=function(a){void 0===a&&(a=14400);var b=vO(this.Bc);return b?b.refreshAllStaleEntities(a):Promise.reject()};
g.k.deleteVideos=function(a){var b=vO(this.Bc);return b?b.oK(a,"mainVideoEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"):Promise.reject()};
g.k.deleteAllVideos=function(){var a=vO(this.Bc);return a?a.deleteAll():Promise.reject()};
g.k.isOrchestrationLeader=function(){var a=vO(this.Bc);return a?a.isOrchestrationLeader():!1};
g.k.getStatsForNerds=function(){var a=this.Va,b=g.pN(this),c=a.getVideoData(),d=a.Ud(),e=d.zf(),f=b.ez(),h=b.bL,l=8*rT(h,"bandwidth")/1024,m=rT(h,"networkactivity")/1024,n=rT(h,"bufferhealth");if(b.De){var p=b.videoData.useInnertubeDrmService()?"IT/":"";p+=b.De.j.Dg()+"/"+xB(b.zs());p+="/"+b.De.Dg()}else p="";var q=p,u=b.getPlayerState().state.toString(16),w=d.getCurrentTime().toFixed(2),y=eE(d.Xg(),",",3);p="";if(c.isDaiEnabled()){c.enableServerStitchedDai&&(p+=c.qF?"DS":"SS");p+="DAI, ";a:{if(b.rd){if(b.rd.Gp){var A=
"D,";break a}A=b.rd.Zj;if(0<A){A="AD"+A+", ";break a}}A=""}A&&(p+=A)}if(c.fetchType){switch(c.fetchType){case "onesie":A="o";break;case "gp":A="gp";break;default:A="gvi"}p+="vd:"+A+", "}p+="s:"+u+" t:"+w+" b:"+y+" ";d.Gg()&&(p+="S");d.Pn()&&(p+="P");d.Yg()&&(p+="E");a.isOrchestrationLeader()&&(p+=" L");(d=b.Ty())&&(p+=" l:"+d.toFixed());d=b.getCurrentTime();u=c.cK;d&&d>u.start&&d<u.end&&(p+=" as");d=p;p=BA()._start;u=[];w=g.r(["pl_i","vir","or_p","orfb","pbs"]);for(y=w.next();!y.done;y=w.next())y=
y.value,(A=BA()[y])&&p&&(A-=p,u.push(y+":"+Math.round(A)));p=u.join(" ");u=g.iG();w=g.AN(a).PZ;y=c.B&&!c.B.j?"display:none":"";if((A=c.clientPlaybackNonce)&&16==A.length){for(var B=0,D="",G=0;10>G;G++)if(B=(B<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(A.charAt(G)),4==G%5){for(var H="",L=0;6>L;L++)H="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(B&31)+H,B>>=5;D+=H}A=D.substr(0,4)+" "+D.substr(4,4)+" "+D.substr(8,4)}else A="";l={video_id_and_cpn:c.videoId+" / "+A,codecs:"",
dims_and_frames:"",bandwidth_kbps:l.toFixed(0)+" Kbps",buffer_health_seconds:n.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:q?"":"display:none",drm:q,debug_info:d,extra_debug_info:"",bandwidth_style:y,network_activity_style:y,network_activity_bytes:m.toFixed(0)+" KB",shader_info:w,shader_info_style:w?"":"display:none",playback_categories:""};m=e.clientWidth+"x"+e.clientHeight+(1<u?"*"+u.toFixed(2):"");n="-";f.totalVideoFrames&&(n=(f.droppedVideoFrames||0)+" dropped of "+f.totalVideoFrames);
l.dims_and_frames=m+" / "+n;a=a.getVolume();f=VBa(c);var N;m=(null==(N=c.D)?0:N.audio.j)?"DRC":Math.round(a*f)+"%";N=Math.round(a)+"% / "+m;a=c.pe.toFixed(1);isFinite(Number(a))&&(N+=" (content loudness "+a+"dB)");l.volume=N;l.resolution=e.videoWidth+"x"+e.videoHeight;if(N=c.u)if(e=N.video)a=e.fps,1<a&&(l.resolution+="@"+a),(a=g.HX(b))&&a.video&&(l.resolution+=" / "+a.video.width+"x"+a.video.height,1<a.video.fps&&(l.resolution+="@"+a.video.fps)),l.codecs=zLa(N),!c.D||N.audio&&N.video?N.DQ&&(l.codecs+=
" / "+N.DQ+"A"):l.codecs+=" / "+zLa(c.D),e.u||e.primaries?(N=e.u||"unknown","smpte2084"===N?N+=" (PQ)":"arib-std-b67"===N&&(N+=" (HLG)"),l.color=N+" / "+(e.primaries||"unknown"),l.color_style=""):l.color_style="display:none";e=c.isLivePlayback;N=c.uf;l.live_mode_style=e||N?"":"display:none";l.live_latency_style=e?"":"display:none";if(N)l.live_mode="Post-Live"+(MH(c)?" Manifestless":"");else if(e){N=rT(h,"livelatency");l.live_latency_secs=N.toFixed(2)+"s";e=MH(c)?"Manifestless, ":"";c.Bk&&(e+="Windowed, ");
a="Uncertain";if(0<=N&&120>N)if(c.latencyClass&&"UNKNOWN"!==c.latencyClass)switch(c.latencyClass){case "NORMAL":a="Optimized for Normal Latency";break;case "LOW":a="Optimized for Low Latency";break;case "ULTRALOW":a="Optimized for Ultra Low Latency";break;default:a="Unknown Latency Setting"}else a=c.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";e+=a;(N=b.getPlaylistSequenceForTime(b.getCurrentTime()))&&(e+=", seq "+N.sequence);l.live_mode=e}b.isGapless()&&(l.playback_categories+=
"Gapless ");l.playback_categories_style=l.playback_categories?"":"display:none";l.bandwidth_samples=qT(h,"bandwidth");l.network_activity_samples=qT(h,"networkactivity");l.live_latency_samples=qT(h,"livelatency");l.buffer_health_samples=qT(h,"bufferhealth");b=g.uI(c);if(c.cotn||b)l.cotn_and_local_media=(c.cotn?c.cotn:"null")+" / "+b;l.cotn_and_local_media_style=l.cotn_and_local_media?"":"display:none";XH(c,"web_player_release_debug")?(l.release_name="youtube.player.web_20220828_00_RC00",l.release_style=
""):l.release_style="display:none";l.debug_info&&0<p.length&&60>=l.debug_info.length+p.length?l.debug_info+=" "+p:l.extra_debug_info=p;l.extra_debug_info_style=l.extra_debug_info&&0<l.extra_debug_info.length?"":"display:none";return l};
g.k.getVideoUrl=function(a,b,c,d,e){return this.xb&&this.xb.postId?(a=this.Y.getVideoUrl(a),a=zi(a,"v"),a.replace("/watch","/clip/"+this.xb.postId)):this.Y.getVideoUrl(a,b,c,d,e)};
var D4={};g.Fa("yt.player.Application.create",g.TX.create);g.Fa("yt.player.Application.createAlternate",g.TX.create);Kra(kz(),{Ko:[{Hz:/Unable to load player module/,weight:20},{Hz:/Failed to fetch/,weight:500},{Hz:/XHR API fetch failed/,weight:10},{Hz:/JSON parsing failed after XHR fetch/,weight:10},{Hz:/Retrying OnePlatform request/,weight:10}]});var s1a=g.Ga("ytcsi.tick");s1a&&s1a("pe");var USa=new Map([["unspecified","CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"],["core","CONTROL_FLOW_MANAGER_LAYER_CORE"],["adapter","CONTROL_FLOW_MANAGER_LAYER_ADAPTER"],["surface","CONTROL_FLOW_MANAGER_LAYER_SURFACE"],["external","CONTROL_FLOW_MANAGER_LAYER_EXTERNAL"]]),SSa=new Map([["normal",{It:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",St:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{It:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",St:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}],
["muted",{It:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",St:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{It:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",St:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{It:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",St:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{It:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED",St:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}],
["error",{It:"ADS_CLIENT_EVENT_TYPE_ABORTED_EXIT_LAYOUT_REQUESTED",St:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED"}]]);var t1a={NPa:"replaceUrlMacros",TKa:"onAboutThisAdPopupClosed",xra:"executeCommand"};DY.prototype.Im=function(){return"adLifecycleCommand"};
DY.prototype.handle=function(a){var b=this;switch(a.action){case "END_LINEAR_AD":g.Bh(function(){b.controller.Jp()});
break;case "END_LINEAR_AD_PLACEMENT":g.Bh(function(){b.controller.Em()});
break;case "FILL_ABOVE_FEED_SLOT":g.Bh(function(){a.elementId&&b.controller.qC(a.elementId)});
break;case "CLEAR_ABOVE_FEED_SLOT":g.Bh(function(){b.controller.WB()})}};
DY.prototype.xo=function(a){this.handle(a)};EY.prototype.Im=function(){return"clearCueRangesCommand"};
EY.prototype.handle=function(){var a=this.bH();g.Bh(function(){a.jh(Array.from(a.Gr))})};
EY.prototype.xo=function(a){this.handle(a)};FY.prototype.Im=function(){return"muteAdEndpoint"};
FY.prototype.handle=function(a){ZSa(this,a)};
FY.prototype.xo=function(a,b){ZSa(this,a,b)};GY.prototype.Im=function(){return"openPopupAction"};
GY.prototype.handle=function(){};
GY.prototype.xo=function(a){this.handle(a)};HY.prototype.Im=function(){return"pingingEndpoint"};
HY.prototype.handle=function(){};
HY.prototype.xo=function(a){this.handle(a)};IY.prototype.Im=function(){return"urlEndpoint"};
IY.prototype.handle=function(a,b){b=Object.assign({},b);if(o0(this.UD,"h5_inplayer_enable_adcpn_macro_substitution_for_click_pings")){var c=this.El.Sf(2);c&&(b.AD_CPN=c.clientPlaybackNonce)}a=g.Qn(a.url,b);"1"===(new g.Dj(a)).u.get("ase")?g.iM(a,void 0,void 0,a+"&asr=1"):g.iM(a)};
IY.prototype.xo=function(a,b,c){if(o0(this.UD,"enable_macro_substitution_on_html5")){var d=this.handle;var e=this.Ta.get(),f=T_(e.u.get(),b);f?b=D0(e,E0(f),f,void 0,c):(cA("Trying to ping from an unknown layout",void 0,void 0,{layoutId:b}),b={});d.call(this,a,b)}else this.handle(a,{})};JY.prototype.Im=function(){return"adPingingEndpoint"};
JY.prototype.handle=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.Ir.send(a,b,c)};
JY.prototype.xo=function(a,b,c){F0(this.Ta.get(),a,b,void 0,c)};KY.prototype.Im=function(){return"changeEngagementPanelVisibilityAction"};
KY.prototype.handle=function(a){this.G.Pa("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:a})};
KY.prototype.xo=function(a){this.handle(a)};LY.prototype.Im=function(){return"loggingUrls"};
LY.prototype.handle=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;a=g.r(a);for(var d=a.next();!d.done;d=a.next())d=d.value,this.yk.send(d.baseUrl,b,c,d.headers)};
LY.prototype.xo=function(a,b,c){a=g.r(a);for(var d=a.next();!d.done;d=a.next())d=d.value,o0(this.UD,"enable_macro_substitution_on_html5")?F0(this.Ta.get(),d.baseUrl,b,d.headers,c):F0(this.Ta.get(),d.baseUrl,b,d.headers)};g.v(aTa,g.J);MY.prototype.get=function(){return this.value};
g.v(NY,MY);NY.prototype.getType=function(){return"metadata_type_action_companion_ad_renderer"};
g.v(OY,MY);OY.prototype.getType=function(){return"metadata_type_ads_engagement_panel_renderer"};
g.v(PY,MY);PY.prototype.getType=function(){return"metadata_type_ad_next_params"};
g.v(QY,MY);QY.prototype.getType=function(){return"metadata_type_ad_video_clickthrough_endpoint"};
g.v(RY,MY);RY.prototype.getType=function(){return"metadata_type_invideo_overlay_ad_renderer"};
g.v(SY,MY);SY.prototype.getType=function(){return"metadata_type_image_companion_ad_renderer"};
g.v(TY,MY);TY.prototype.getType=function(){return"metadata_type_shopping_companion_carousel_renderer"};
g.v(UY,MY);UY.prototype.getType=function(){return"metadata_type_ad_info_ad_metadata"};
g.v(VY,MY);VY.prototype.getType=function(){return"metadata_ad_video_is_listed"};
g.v(WY,MY);WY.prototype.getType=function(){return"metadata_type_ad_placement_config"};
g.v(XY,MY);XY.prototype.getType=function(){return"metadata_type_ad_pod_info"};
g.v(YY,MY);YY.prototype.getType=function(){return"metadata_type_ad_pod_skip_index"};
g.v(ZY,MY);ZY.prototype.getType=function(){return"metadata_type_ad_pod_skip_target"};
g.v($Y,MY);$Y.prototype.getType=function(){return"metadata_type_ad_pod_skip_target_callback_ref"};
g.v(aZ,MY);aZ.prototype.getType=function(){return"metadata_type_ad_video_id"};
g.v(bZ,MY);bZ.prototype.getType=function(){return"metadata_type_ad_video_url"};
g.v(cZ,MY);cZ.prototype.getType=function(){return"metadata_type_content_cpn"};
g.v(dZ,MY);dZ.prototype.getType=function(){return"metadata_type_instream_ad_player_overlay_renderer"};
g.v(eZ,MY);eZ.prototype.getType=function(){return"metadata_type_player_underlay_renderer"};
g.v(fZ,MY);fZ.prototype.getType=function(){return"metadata_type_shrunken_player_bytes_config"};
g.v(gZ,MY);gZ.prototype.getType=function(){return"metadata_type_ad_action_interstitial_renderer"};
g.v(hZ,MY);hZ.prototype.getType=function(){return"metadata_type_valid_survey_text_interstitial_renderer"};
g.v(iZ,MY);iZ.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_DAI"};
g.v(jZ,MY);jZ.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"};
g.v(kZ,MY);kZ.prototype.getType=function(){return"metadata_type_sliding_text_player_overlay_renderer"};
g.v(lZ,MY);lZ.prototype.getType=function(){return"metadata_type_linked_player_bytes_layout_id"};
g.v(mZ,MY);mZ.prototype.getType=function(){return"metadata_type_linked_in_player_layout_id"};
g.v(nZ,MY);nZ.prototype.getType=function(){return"metadata_type_linked_in_player_slot_id"};
g.v(oZ,MY);oZ.prototype.getType=function(){return"metadata_type_player_bytes_callback"};
g.v(pZ,MY);pZ.prototype.getType=function(){return"metadata_type_player_bytes_callback_ref"};
g.v(qZ,MY);qZ.prototype.getType=function(){return"metadata_type_player_bytes_layout_controls_callback_ref"};
g.v(rZ,MY);rZ.prototype.getType=function(){return"metadata_type_sub_layouts"};
g.v(sZ,MY);sZ.prototype.getType=function(){return"metadata_type_cue_point"};
g.v(tZ,MY);tZ.prototype.getType=function(){return"metadata_type_video_length_seconds"};
g.v(uZ,MY);uZ.prototype.getType=function(){return"metadata_type_player_vars"};
g.v(vZ,MY);vZ.prototype.getType=function(){return"metadata_type_sodar_extension_data"};
g.v(wZ,MY);wZ.prototype.getType=function(){return"metadata_type_layout_enter_ms"};
g.v(xZ,MY);xZ.prototype.getType=function(){return"metadata_type_layout_exit_ms"};
g.v(yZ,MY);yZ.prototype.getType=function(){return"metadata_type_media_sub_layout_index"};
g.v(zZ,MY);zZ.prototype.getType=function(){return"metadata_type_dai"};
g.v(AZ,MY);AZ.prototype.getType=function(){return"metadata_type_ad_intro"};
g.v(BZ,MY);BZ.prototype.getType=function(){return"metadata_type_client_forecasting_ad_renderer"};
g.v(CZ,MY);CZ.prototype.getType=function(){return"metadata_type_drift_recovery_ms"};
g.v(DZ,MY);DZ.prototype.getType=function(){return"metadata_type_fulfilled_layout"};
g.v(EZ,MY);EZ.prototype.getType=function(){return"metadata_type_ad_break_request_data"};
g.v(FZ,MY);FZ.prototype.getType=function(){return"metadata_type_ad_break_response_data"};
g.v(GZ,MY);GZ.prototype.getType=function(){return"metadata_type_remote_slots_data"};
g.v(HZ,MY);HZ.prototype.getType=function(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"};
g.v(IZ,MY);IZ.prototype.getType=function(){return"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"};
g.v(JZ,MY);JZ.prototype.getType=function(){return"metadata_type_legacy_info_card_vast_extension"};
g.v(KZ,MY);KZ.prototype.getType=function(){return"metadata_type_valid_ad_message_renderer"};
g.v(LZ,MY);LZ.prototype.getType=function(){return"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"};
g.v(MZ,MY);MZ.prototype.getType=function(){return"metadata_type_served_from_live_infra"};
g.v(NZ,MY);NZ.prototype.getType=function(){return"metadata_type_survey_overlay"};
g.v(OZ,MY);OZ.prototype.getType=function(){return"metadata_type_active_view_traffic_type"};
g.v(PZ,MY);PZ.prototype.getType=function(){return"metadata_type_ssdai_ads_config"};var pTa=new Map([["TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL","trigger_category_layout_exit_normal"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED","trigger_category_layout_exit_user_skipped"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED","trigger_category_layout_exit_user_muted"],["TRIGGER_CATEGORY_SLOT_EXPIRATION","trigger_category_slot_expiration"],["TRIGGER_CATEGORY_SLOT_FULFILLMENT","trigger_category_slot_fulfillment"],["TRIGGER_CATEGORY_SLOT_ENTRY","trigger_category_slot_entry"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",
"trigger_category_layout_exit_user_input_submitted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED","trigger_category_layout_exit_user_cancelled"]]);g.v(QZ,g.J);g.k=QZ.prototype;g.k.YH=function(a,b){return this.j.YH(a,b)};
g.k.Ti=function(a,b){P_(this.pc,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",a,b);for(var c=g.r(this.Rd),d=c.next();!d.done;d=c.next())d.value.Ti(a,b)};
g.k.cg=function(a){if(TZ(this.j,a)){IJ(this.pc,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",a);this.j.cg(a);for(var b=g.r(this.Rd),c=b.next();!c.done;c=b.next())c.value.cg(a);cTa(this,a)}};
g.k.dg=function(a){if(TZ(this.j,a)){IJ(this.pc,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",a);this.j.dg(a);for(var b=g.r(this.Rd),c=b.next();!c.done;c=b.next())c.value.dg(a);TZ(this.j,a)&&UZ(this.j,a).D&&RZ(this,a,!1)}};
g.k.ID=function(a){IJ(this.pc,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",a);TZ(this.j,a)&&(this.j.ID(a),RZ(this,a,!1))};
g.k.Rc=function(a,b){if(TZ(this.j,a)){VZ(this.pc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",a,b);for(var c=g.r(this.Rd),d=c.next();!d.done;d=c.next())d.value.Rc(a,b)}};
g.k.pd=function(a,b,c){if(TZ(this.j,a)){VZ(this.pc,TSa(c),a,b);this.j.pd(a,b);for(var d=g.r(this.Rd),e=d.next();!e.done;e=d.next())e.value.pd(a,b,c);(c=g_(this.j,a))&&b.layoutId===c.layoutId&&mTa(this,a,!1)}};
g.k.og=function(a,b,c){cA(c,a,b,void 0,c.Jr);RZ(this,a,!0)};
g.k.ra=function(){var a=oTa(this.j);a=g.r(a);for(var b=a.next();!b.done;b=a.next())RZ(this,b.value,!1);g.J.prototype.ra.call(this)};nTa.prototype.isActive=function(){switch(this.j){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};g.v(WZ,Xa);g.v(j_,g.J);g.k=j_.prototype;g.k.YH=function(a,b){b=f_(this,a+"_"+b);a=[];b=g.r(b.values());for(var c=b.next();!c.done;c=b.next())a.push(c.value.slot);return a};
g.k.Xh=function(a){a=UZ(this,a);"not_scheduled"!==a.j&&h_(a.slot,a.j,"onSlotScheduled");a.j="scheduled"};
g.k.Jy=function(a){a=UZ(this,a);a.C="fill_requested";a.J.Jy()};
g.k.cg=function(a){a=UZ(this,a);"enter_requested"!==a.j&&h_(a.slot,a.j,"onSlotEntered");a.j="entered"};
g.k.ID=function(a){UZ(this,a).C="fill_canceled"};
g.k.dg=function(a){a=UZ(this,a);"exit_requested"!==a.j&&h_(a.slot,a.j,"onSlotExited");a.j="scheduled"};
g.k.pd=function(a,b){a=UZ(this,a);null!=a.layout&&a.layout.layoutId===b.layoutId&&("rendering_stop_requested"!==a.j&&h_(a.slot,a.j,"onLayoutExited"),a.j="entered")};g.v(m_,g.J);m_.prototype.B=function(){return this.u};g.v(n_,g.J);n_.prototype.get=function(){this.isDisposed()&&cA("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.j});this.j||(this.j=this.u());return this.j};o_.prototype.executeCommand=function(a,b){MK(this.j(),a,b)};
o_.prototype.Kf=function(a,b){iEa(this.j(),a,b)};g.v(O_,g.J);g.v(R_,g.J);R_.prototype.onCueRangeEnter=function(){};
R_.prototype.onCueRangeExit=function(a){var b=this,c=this.j.get(a);c&&(this.j.delete(a),this.Yb.get().removeCueRange(a),Xz(this.Ub.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",function(){var d=b.Fb.get();d=fA(d.Za.get(),"SLOT_TYPE_AD_BREAK_REQUEST");return[Object.assign({},c,{slotId:d,Pb:c.Pb?PUa(c.slotId,d,c.Pb):void 0,dc:QUa(c.slotId,d,c.dc),kc:QUa(c.slotId,d,c.kc)})]},c.slotId))};
R_.prototype.Si=function(){for(var a=g.r(this.j.keys()),b=a.next();!b.done;b=a.next())b=b.value,this.Yb.get().removeCueRange(b);this.j.clear()};
R_.prototype.Cl=function(){};g.v(S_,g.J);g.k=S_.prototype;g.k.Xh=function(){};
g.k.Bj=function(a){var b=this;g.Av(g.Cv(),function(){var c=b.j.get(a);c&&cA("Expected layouts to be properly unscheduled",a,void 0,{slotType:a.slotType,layoutTypes:[].concat(g.t(c)).map(function(d){return d.layoutType})})},0)};
g.k.cg=function(){};
g.k.Aj=function(){};
g.k.dg=function(){};
g.k.vk=function(){};
g.k.wk=function(){};
g.k.xj=function(a,b){this.j.has(a)||this.j.set(a,new Set);this.j.get(a).add(b)};
g.k.yj=function(a,b){this.Ej.has(a)&&this.Ej.get(a)===b&&cA("Unscheduled a Layout that is currently entered.",a,b);if(this.j.has(a)){var c=this.j.get(a);c.has(b)?(c.delete(b),0===c.size&&this.j.delete(a)):cA("Trying to unscheduled a Layout that was not scheduled.",a,b)}else cA("Trying to unscheduled a Layout that was not scheduled.",a,b)};
g.k.Rc=function(a,b){this.Ej.set(a,b)};
g.k.pd=function(a){this.Ej.delete(a)};
g.k.Ti=function(){};f0.prototype.clone=function(a){var b=this;return new f0(function(){return b.triggerId},a)};g0.prototype.clone=function(a){var b=this;return new g0(function(){return b.triggerId},a)};h0.prototype.clone=function(a){var b=this;return new h0(function(){return b.triggerId},a)};i0.prototype.clone=function(a){var b=this;return new i0(function(){return b.triggerId},a)};j0.prototype.clone=function(a){var b=this;return new j0(function(){return b.triggerId},a)};k0.prototype.clone=function(a){var b=this;return new k0(function(){return b.triggerId},a)};g.v(n0,g.J);n0.prototype.logEvent=function(a){P_(this,a)};
n0.prototype.u=function(){var a=this.Ha.get();return(g.aG(a.G.V())?a.G.V().K("html5_enable_ads_client_monitoring_log_tv"):!0)&&!this.Ha.get().G.V().K("html5_disable_client_tmp_logs")};g.v(p0,n0);p0.prototype.u=function(){var a=n0.prototype.u.call(this),b=o0(this.Ha.get(),"disable_pacf_logging_for_memory_limited_tv")?this.j.get().u():!0;var c=this.Ha.get();c=g.aG(c.G.V())?c.G.V().K("use_session_based_sampling")?c.j:c.G.V().K("sample_pacf_events_on_tv")?Math.random()<g.RE(c.G.V().experiments,"tv_pacf_logging_sample_rate"):!0:!0;return a&&b&&c};q0.prototype.clear=function(){this.j.clear()};g.v(r0,g.J);g.k=r0.prototype;g.k.addListener=function(a){this.listeners.push(a)};
g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.k.Si=function(a,b,c,d,e,f,h){if(""===a)cA("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(!this.G.V().K("html5_de_dupe_content_video_loads_in_lifecycle_api")||a!==this.j||c){this.j=a;this.Ga.get().Si(a,b,c,d,e,f,h);this.Ua.get().Si(a,b,c,d,e,f,h);var l;null==(l=this.Oe)||l.get().Si(a,b,c,d,e,f,h);this.u.Si(a,b,c,d,e,f,h);l=g.r(this.listeners);for(var m=l.next();!m.done;m=l.next())m.value.Si(a,b,c,d,e,f,h)}};
g.k.HJ=function(){this.j&&this.Cl(this.j)};
g.k.Cl=function(a){this.j=void 0;for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.Cl(a)};g.v(s0,g.J);s0.prototype.addCueRange=function(a,b,c,d,e,f,h){f=void 0===f?3:f;h=void 0===h?1:h;this.j.has(a)?cA("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:a}):(a=new aVa(a,b,c,d,f),this.j.set(a.id,{Td:a,listener:e,Ml:h}),this.G.qe([a],h))};
s0.prototype.removeCueRange=function(a){var b=this.j.get(a);b?ZUa(this,b):cA("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:a})};
s0.prototype.onCueRangeEnter=function(a){if(this.j.has(a.id))this.j.get(a.id).listener.onCueRangeEnter(a.id)};
s0.prototype.onCueRangeExit=function(a){if(this.j.has(a.id))this.j.get(a.id).listener.onCueRangeExit(a.id)};
g.v(aVa,g.qA);t0.prototype.zk=function(a){this.G.zk(a)};
t0.prototype.Pa=function(a){this.G.Pa.apply(this.G,[a].concat(g.t(g.za.apply(1,arguments))))};g.k=x0.prototype;g.k.Rf=function(a,b){if(!this.j.has(a))return{};if("seek"===b)return b=this.G.V().K("html5_dai_enable_active_view_creating_completed_adblock"),dka(a,b),{};b=xCa(b);if(null===b||this.G.V().K("enable_server_stitched_dai")&&2!==this.G.getPresentingPlayerType(!0))return{};var c=this.G.Jc();c=c&&(this.G.V().K("enable_server_stitched_dai")||2===c.getPlayerType())&&nJ(c);if(!c)return{};c={opt_adElement:c,opt_fullscreen:this.Ga.get().isFullscreen()};return Pn(b,a,c)};
g.k.Qz=function(a){var b;null==(b=this.j.get(a.queryId))||b.Qz()};
g.k.Pz=function(a){var b;null==(b=this.j.get(a.queryId))||b.Pz()};
g.k.Rz=function(a){var b;null==(b=this.j.get(a.queryId))||b.Rz()};
g.k.Nz=function(a){var b;null==(b=this.j.get(a.queryId))||b.Nz()};
g.k.Oz=function(a){var b;null==(b=this.j.get(a.queryId))||b.Oz()};g.v(B0,aJ);B0.prototype.j=function(){return this.B()};
B0.prototype.u=function(){return this.C()};C0.prototype.Ii=function(){var a=this.G.Jc();return a&&(a=a.Ii(1))?a:null};
C0.prototype.Uh=function(a,b){"string"===typeof b?this.G.getVideoData(1).rK(a,b):this.G.getVideoData(1).va(a,b)};g.v(J0,g.J);g.k=J0.prototype;g.k.addListener=function(a){this.listeners.push(a)};
g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.k.Si=function(){this.yG.clear();this.TI=null;this.G.V().K("html5_clear_timeline_storage_killswitch")||this.Fd.get().clear()};
g.k.Cl=function(){};
g.k.Sf=function(a){var b=this.G.getVideoData(a);return b?iVa(this,b,a||this.G.getPresentingPlayerType(!0)):null};
g.k.m3=function(a,b,c){"nPpU29QrbiU"===b.videoId&&this.Uh("ads_ssm_vdc_s",{pt:c,dvt:a});(v0(this.Ha.get())||this.Ha.get().G.V().K("html5_debug_client_stitched"))&&"dataloaded"!==a||jVa(this,b,c)};
g.k.F2=function(a,b){void 0!==a&&(this.TI=a,void 0===b?cA("Expected ad video start time on SS video changed"):this.yG.set(a,b));var c=this.G.getPresentingPlayerType(!0),d=this.G.getVideoData(c);this.G.getVideoData(1).va("ads_ssvc",{pt:c,cpn:null==d?void 0:d.clientPlaybackNonce,crtt:this.G.getCurrentTime(1,!1),atlh:this.G.isAtLiveHead(),adstt:b});d?jVa(this,d,c):cA("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.G.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:a})};
g.k.ra=function(){this.listeners.length=0;this.gs=null;g.J.prototype.ra.call(this)};
g.k.Uh=function(a,b){this.G.getVideoData(1).va(a,b)};g.v(K0,g.J);g.k=K0.prototype;g.k.Si=function(){var a=this;this.ls=$f(function(){a.G.isDisposed()||a.G.xf("ad",1)})};
g.k.Cl=function(){};
g.k.addListener=function(a){this.listeners.push(a)};
g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.k.TQ=function(){};
g.k.playVideo=function(){this.G.playVideo()};
g.k.pauseVideo=function(){this.G.pauseVideo()};
g.k.resumeVideo=function(a){this.Eo(a)&&this.G.playVideo()};
g.k.Eo=function(a){return 2===this.G.getPlayerState(a)};
g.k.getCurrentTimeSec=function(a,b){var c=this.Ua.get().TI;return 2!==a||b||null===c?this.G.getCurrentTime(a,b):L0(this,c)};
g.k.getVolume=function(){return this.G.getVolume()};
g.k.isMuted=function(){return this.G.isMuted()};
g.k.getPresentingPlayerType=function(){return this.G.getPresentingPlayerType(!0)};
g.k.getPlayerState=function(a){return this.G.getPlayerState(a)};
g.k.isFullscreen=function(){return this.G.isFullscreen()};
g.k.isAtLiveHead=function(){return this.G.isAtLiveHead()};
g.k.Vw=function(a){this.G.Vw(a)};
g.k.b2=function(){var a=this.G.getPresentingPlayerType(!0),b=this.getCurrentTimeSec(a,!1);if(2===a){var c=g.r(this.listeners);for(a=c.next();!a.done;a=c.next())a.value.Ri(b)}else if(1===a&&w0(this.Ha.get()))for(c=g.r(this.cC),a=c.next();!a.done;a=c.next())a.value.TQ(b)};
g.k.R1=function(a){for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.zj(a,this.getPresentingPlayerType())};
g.k.onFullscreenToggled=function(a){for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.onFullscreenToggled(a)};
g.k.onVolumeChange=function(){for(var a=g.r(this.listeners),b=a.next();!b.done;b=a.next())b.value.onVolumeChange()};
g.k.Zg=function(){for(var a=this.G.Df(),b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.Zg(a)};
g.k.Cb=function(){for(var a=this.G.gb().Ki(),b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.vj(a)};
g.k.qk=function(a){for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.qk(a)};g.v(oVa,g.J);O0.prototype.addListener=function(a){this.listeners.add(a)};
O0.prototype.removeListener=function(a){this.listeners.delete(a)};Q0.prototype.Jy=function(){var a=this;rVa(this.j,function(){var b=vY(a.slot.Ea,"metadata_type_ad_break_request_data");return a.Ve.get().fetch({xT:b.getAdBreakUrl,yO:new g.qA(b.cS,b.bS),sy:vY(a.slot.Ea,"metadata_type_cue_point")})},function(){tVa(a)},function(b){b=b.Qn;
2<=b.length&&cA("Unexpected ad placement renderers length",a.slot,null,{length:b.length});b.some(function(c){var d,e,f,h;return!!(null==(d=c.renderer)?0:null==(e=d.linearAdSequenceRenderer)?0:null==(f=e.linearAds)?0:f.length)||!(null==(h=c.renderer)||!h.instreamVideoAdRenderer)})||tVa(a)})};
Q0.prototype.MG=function(){sVa(this.j)};R0.prototype.Jy=function(){var a=this;rVa(this.j,function(){var b=vY(a.slot.Ea,"metadata_type_ad_break_request_data");return a.Ve.get().fetch({xT:b.getAdBreakUrl,yO:new g.qA(b.cS,b.bS)})})};
R0.prototype.MG=function(){sVa(this.j)};S0.prototype.Jy=function(){eTa(this.callback,this.slot,vY(this.slot.Ea,"metadata_type_fulfilled_layout"))};
S0.prototype.MG=function(){SZ(this.callback,this.slot,new zA("Got CancelSlotFulfilling request for "+this.slot.slotType+" in DirectFulfillmentAdapter."))};U0.prototype.Xe=function(a,b){return T0(b,{ue:["metadata_type_fulfilled_layout"]})?new S0(a,b):this.j(a,b)};g.v(V0,U0);
V0.prototype.j=function(a,b){if(T0(b,{ue:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new Q0(a,b,this.Ve,this.zb,this.Hb,this.Ha,this.Je);if(T0(b,{ue:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new R0(a,b,this.Ve,this.zb,this.Hb,this.Ha);throw new zA("Unsupported slot with type: "+b.slotType+" and client metadata: "+wY(b.Ea)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.v(W0,U0);W0.prototype.j=function(a,b){throw new zA("Unsupported slot with type: "+b.slotType+" and client metadata: "+wY(b.Ea)+" in DefaultFulfillmentAdapterFactory.");};g.k=uVa.prototype;g.k.fd=function(){return this.slot};
g.k.Db=function(){return this.layout};
g.k.init=function(){};
g.k.release=function(){};
g.k.startRendering=function(a){if(a.layoutId!==this.layout.layoutId)this.callback.og(this.slot,a,new WZ("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType)));else{var b=vY(a.Ea,"metadata_type_ad_break_response_data");"SLOT_TYPE_AD_BREAK_REQUEST"===this.slot.slotType?(this.callback.Rc(this.slot,a),Nua(this.j,this.slot,b)):cA("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",
this.slot,a)}};
g.k.eg=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.og(this.slot,a,new WZ("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):this.callback.pd(this.slot,a,b)};Y0.prototype.Xe=function(a,b,c,d){if(X0(d,{ue:["metadata_type_ad_break_response_data"],Ef:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new uVa(a,c,d,this.j);throw new WZ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+wY(d.Ea)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};Z0.prototype.Rf=function(a,b){b=void 0===b?!1:b;var c=(this.B.get(a)||[]).concat();if(b=b&&NI(a)){var d=this.B.get(b);d&&c.push.apply(c,g.t(d))}c1(this,a,c);this.j.add(a);b&&this.j.add(b)};g.k=wVa.prototype;g.k.fd=function(){return this.slot};
g.k.Db=function(){return this.layout};
g.k.init=function(){};
g.k.release=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.og(this.slot,a,new WZ("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(this.callback.Rc(this.slot,a),b1(this.u,"impression"),u1(this.j,a.layoutId))};
g.k.eg=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.og(this.slot,a,new WZ("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):this.callback.pd(this.slot,a,b)};f1.prototype.Xe=function(a,b,c,d){if(X0(d,xVa()))return new wVa(a,c,d,this.Ta,this.j);throw new WZ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+wY(d.Ea)+" in ForecastingLayoutRenderingAdapterFactory.");};g.v(h1,g.az);g.k=h1.prototype;g.k.fd=function(){return this.u.slot};
g.k.Db=function(){return this.u.layout};
g.k.init=function(){this.B.get().addListener(this)};
g.k.release=function(){this.B.get().removeListener(this);this.dispose()};
g.k.mI=function(){};
g.k.kI=function(){};
g.k.jI=function(){};
g.k.QC=function(){};
g.k.startRendering=function(a){var b=this;g1(this.u,a,function(){return void b.CE()})};
g.k.CE=function(){this.B.get().CE(this.j)};
g.k.eg=function(a,b){var c=this;g1(this.u,a,function(){var d=c.B.get();aWa(d,c.j,3);c.j=[];c.callback.pd(c.slot,a,b)})};
g.k.ra=function(){this.B.get().removeListener(this);g.az.prototype.ra.call(this)};
g.ca.Object.defineProperties(h1.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.u.slot}},
layout:{configurable:!0,enumerable:!0,get:function(){return this.u.layout}}});g.v(zVa,EI);g.v(k1,h1);g.k=k1.prototype;g.k.Eg=function(a,b){j1("action-companion",a,this.J.get().Ej,this.Ta.get(),this.C,this.D,this.fd(),this.Db(),b)};
g.k.startRendering=function(a){i1(this.I,this.fd(),this.Db(),this.callback,"metadata_type_action_companion_ad_renderer",function(b,c,d,e,f){return new zVa(b,c,d,e,f)},this.j);
h1.prototype.startRendering.call(this,a)};
g.k.Rc=function(a,b){b.layoutId===this.layout.layoutId?b1(this.I,"impression"):this.D===b.layoutId&&(null===this.C?this.C=this.Ta.get().Ii():cA("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.pd=function(){};
g.k.Xh=function(){};
g.k.Bj=function(){};
g.k.Aj=function(){};
g.k.cg=function(){};
g.k.dg=function(){};
g.k.vk=function(){};
g.k.wk=function(){};
g.k.xj=function(){};
g.k.yj=function(){};
g.k.Ti=function(){};
g.k.ra=function(){this.mf().Rd.delete(this);h1.prototype.ra.call(this)};g.v(l1,h1);l1.prototype.init=function(){h1.prototype.init.call(this);var a=vY(this.layout.Ea,"metadata_type_ad_action_interstitial_renderer"),b=a1(this.C);this.j.push(new vJ(a,b,this.layout.layoutId,{adsClientData:this.layout.Ec},!0,!0))};
l1.prototype.startRendering=function(a){h1.prototype.startRendering.call(this,a);this.callback.Rc(this.slot,a)};
l1.prototype.Eg=function(a,b){if(b===this.layout.layoutId)switch(a){case "skip-button":var c;(a=null==(c=vY(this.layout.Ea,"metadata_type_ad_pod_skip_target_callback_ref"))?void 0:c.current)&&EVa(a,this.fd(),this.layout)}};
l1.prototype.ra=function(){h1.prototype.ra.call(this)};g.v(m1,h1);g.k=m1.prototype;g.k.init=function(){h1.prototype.init.call(this);var a=vY(this.layout.Ea,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.Ec},c=!vY(this.layout.Ea,"metadata_type_player_bytes_callback").eD;this.j.push(new TL(a,this.layout.layoutId,vY(this.layout.Ea,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b,c))};
g.k.zq=function(){this.C||this.Ga.get().resumeVideo(2)};
g.k.startRendering=function(a){h1.prototype.startRendering.call(this,a);this.callback.Rc(this.slot,a);this.D.fv=this};
g.k.eg=function(a,b){h1.prototype.eg.call(this,a,b);RXa(this.D,this)};
g.k.Eg=function(a){if(IUa(this.I.get(),this.J))switch(a){case "visit-advertiser":this.Ta.get().G.sendVideoStatsEngageEvent(3,void 0,2)}switch(a){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.C||this.Ga.get().resumeVideo(2);break;case "ad-info-icon-button":(this.C=this.Ga.get().Eo(2))||this.Ga.get().pauseVideo();break;case "visit-advertiser":this.Ga.get().pauseVideo();vY(this.layout.Ea,"metadata_type_player_bytes_callback").nE();
break;case "skip-button":if(a=vY(this.layout.Ea,"metadata_type_player_bytes_callback"),a.eD)a.Zz(this.fd(),this.layout);else{var b;(a=null==(b=vY(this.layout.Ea,"metadata_type_ad_pod_skip_target_callback_ref"))?void 0:b.current)&&EVa(a,this.fd(),this.layout)}}};
g.k.ra=function(){h1.prototype.ra.call(this)};o1.prototype.Xe=function(a,b,c,d){if(a=n1(a,c,d,this.jc,this.Ga,this.Ta,this.u,this.j))return a;throw new WZ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+wY(d.Ea)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.v(p1,g.J);g.k=p1.prototype;g.k.init=function(){var a=vY(this.Db().Ea,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.fq()};
g.k.release=function(){var a=vY(this.Db().Ea,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=null);this.Lq()};
g.k.startRendering=function(a){a.layoutId!==this.Db().layoutId?this.callback.og(this.fd(),a,new WZ("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Db().layoutId+("and LayoutType: "+this.Db().layoutType))):(this.Ga.get().addListener(this),this.mf().Rd.add(this),this.Ha.get().G.V().experiments.jb("html5_load_empty_player_in_media_break_sub_lra")||mVa(this.Ga.get()),this.Sd.get().YK(),this.Sq(a))};
g.k.eg=function(a,b){this.sI=!0;this.Tq(a,b);this.Ga.get().G.Qo();this.xe.get().G.cueVideoByPlayerVars({},2);a=y0(this.Ga.get(),1);g.V(a,4)&&!g.V(a,2)&&this.Ga.get().playVideo();this.Ga.get().removeListener(this);this.sI&&this.qQ()};
g.k.pd=function(a,b){b.layoutId===this.Db().layoutId&&(this.sI=!1,this.mf().Rd.delete(this))};
g.k.zj=function(a,b){if(a.state.isError()){var c,d;this.og(null==(c=a.state.getData())?void 0:c.errorCode,new WZ("There was a player error during this media layout.",{playerErrorCode:null==(d=a.state.getData())?void 0:d.errorCode}),b)}else this.pR(a)};
g.k.Xh=function(){};
g.k.Bj=function(){};
g.k.Aj=function(){};
g.k.cg=function(){};
g.k.dg=function(){};
g.k.vk=function(){};
g.k.wk=function(){};
g.k.xj=function(){};
g.k.yj=function(){};
g.k.Ti=function(){};
g.k.qk=function(){};g.v(q1,p1);g.k=q1.prototype;g.k.fd=function(){return this.slot};
g.k.Db=function(){return this.layout};
g.k.fq=function(){if(1>=this.u.length)throw new zA("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.u.length)});var a=vY(this.Db().Ea,"metadata_type_ad_pod_skip_target_callback_ref");a&&(a.current=this);a=g.r(this.u);for(var b=a.next();!b.done;b=a.next())b=b.value,b.init(),$Z(this.B,this.slot,b.Db()),a_(this.B,this.slot,b.Db())};
g.k.Lq=function(){var a=vY(this.Db().Ea,"metadata_type_ad_pod_skip_target_callback_ref");a&&(a.current=null);a=g.r(this.u);for(var b=a.next();!b.done;b=a.next())b=b.value,JJ(this.B,this.slot,b.Db()),b.release()};
g.k.vt=function(a,b){var c=this.u[this.j];b.layoutId!==r1(c,a,b)?cA("pauseLayout for a PlayerBytes layout that is not currently active",a,b):c.vt()};
g.k.Kt=function(a,b){var c=this.u[this.j];b.layoutId!==r1(c,a,b)?cA("resumeLayout for a PlayerBytes layout that is not currently active",a,b):c.Kt()};
g.k.Zz=function(a,b){var c=this.u[this.j];b.layoutId!==r1(c,a,b)?cA("onSkipRequested for a PlayerBytes layout that is not currently active",c.fd(),c.Db(),{requestingSlot:a,requestingLayout:b}):t1(this,c.fd(),c.Db(),"skipped")};
g.k.Sq=function(){-1===this.j&&s1(this,this.j+1)};
g.k.R2=function(a,b){b_(this.B,a,b)};
g.k.Tq=function(a,b){var c=this;this.j!==this.u.length?(a=this.u[this.j],a.eg(a.Db(),b),this.D=function(){c.callback.pd(c.slot,c.layout,b)}):this.callback.pd(this.slot,this.layout,b)};
g.k.Rc=function(a,b){var c=this.u[this.j];c&&c.Rc(a,b)};
g.k.pd=function(a,b,c){p1.prototype.pd.call(this,a,b,c);var d=this.u[this.j];d&&d.pd(a,b,c)};
g.k.qQ=function(){var a=this.u[this.j];a&&a.PC()};
g.k.Ri=function(a){var b=this.u[this.j];b&&b.Ri(a)};
g.k.pR=function(a){var b=this.u[this.j];b&&b.zj(a)};
g.k.og=function(a,b){-1===this.j&&(this.callback.Rc(this.slot,this.layout),this.j++);var c=this.u[this.j];c?c.Kz(a,b):cA("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.j),layoutId:this.Db().layoutId})};
g.k.onFullscreenToggled=function(a){var b=this.u[this.j];if(b)b.onFullscreenToggled(a)};
g.k.Zg=function(a){var b=this.u[this.j];b&&b.Zg(a)};
g.k.vj=function(a){var b=this.u[this.j];b&&b.vj(a)};
g.k.onVolumeChange=function(){var a=this.u[this.j];if(a)a.onVolumeChange()};
g.k.T2=function(a,b,c){t1(this,a,b,c)};
g.k.S2=function(a,b){t1(this,a,b,"error")};g.v(y1,g.J);g.k=y1.prototype;g.k.fd=function(){return this.slot};
g.k.Db=function(){return this.layout};
g.k.init=function(){var a=vY(this.layout.Ea,"metadata_type_video_length_seconds"),b=vY(this.layout.Ea,"metadata_type_active_view_traffic_type");KI(this.layout.Vb)&&z0(this.Ib.get(),this.layout.layoutId,b,a,this);H0(this.Ta.get(),this);this.fq()};
g.k.release=function(){KI(this.layout.Vb)&&A0(this.Ib.get(),this.layout.layoutId);I0(this.Ta.get(),this);this.Lq()};
g.k.vt=function(){};
g.k.Kt=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.og(this.slot,a,new WZ("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(this.j="rendering_start_requested",aCa(this.lf.get(),1)?(this.D(-1),this.Sq(a),this.wv(!1)):this.Kz("ui_unstable",new WZ("Failed to render media layout because ad ui unstable.")))};
g.k.Rc=function(a,b){if(b.layoutId===this.layout.layoutId){this.j="rendering";this.C=this.Ga.get().isMuted()||0===this.Ga.get().getVolume();z1(this,"impression");z1(this,"start");if(this.Ga.get().isMuted()){B1(this,"mute");var c;a=(null==(c=x1(this))?void 0:c.muteCommands)||[];this.Mb.get().Kf(a,this.layout.layoutId)}if(this.Ga.get().isFullscreen()){this.Rf("fullscreen");var d;c=(null==(d=x1(this))?void 0:d.fullscreenCommands)||[];this.Mb.get().Kf(c,this.layout.layoutId)}this.Sd.get().IK();this.D(1);
this.dR();var e;d=(null==(e=x1(this))?void 0:e.impressionCommands)||[];this.Mb.get().Kf(d,this.layout.layoutId)}};
g.k.Kz=function(a,b){this.Aa={WE:3,UA:"load_timeout"===a?402:400,errorMessage:b.message};z1(this,"error");var c;a=(null==(c=x1(this))?void 0:c.errorCommands)||[];this.Mb.get().Kf(a,this.layout.layoutId);this.callback.og(this.slot,this.layout,b)};
g.k.PC=function(){this.J()};
g.k.qP=function(){if("rendering"===this.j){B1(this,"pause");var a,b=(null==(a=x1(this))?void 0:a.pauseCommands)||[];this.Mb.get().Kf(b,this.layout.layoutId);this.D(2)}};
g.k.rP=function(){if("rendering"===this.j){B1(this,"resume");var a,b=(null==(a=x1(this))?void 0:a.resumeCommands)||[];this.Mb.get().Kf(b,this.layout.layoutId)}};
g.k.eg=function(a,b){if(a.layoutId!==this.layout.layoutId)this.callback.og(this.slot,a,new WZ("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType)));else if("rendering_stop_requested"!==this.j){this.j="rendering_stop_requested";this.S=b;if(o0(this.Ha.get(),"html5_track_termination_during_request"))switch(b){case "normal":z1(this,"complete");break;case "skipped":z1(this,"skip");break;case "abandoned":e1(this.u,
"impression")&&z1(this,"abandon")}this.Tq(a,b)}};
g.k.pd=function(a,b,c){if(b.layoutId===this.layout.layoutId)switch(this.j="not_rendering",this.S=void 0,(a="normal"!==c||this.position+1===this.qa)&&this.wv(a),this.eR(c),this.D(0),c){case "abandoned":if(e1(this.u,"impression")){o0(this.Ha.get(),"html5_track_termination_during_request")||z1(this,"abandon");var d,e=(null==(d=x1(this))?void 0:d.abandonCommands)||[];this.Mb.get().Kf(e,this.layout.layoutId)}break;case "normal":o0(this.Ha.get(),"html5_track_termination_during_request")||z1(this,"complete");
d=(null==(e=x1(this))?void 0:e.completeCommands)||[];this.Mb.get().Kf(d,this.layout.layoutId);break;case "skipped":o0(this.Ha.get(),"html5_track_termination_during_request")||z1(this,"skip");var f;d=(null==(f=x1(this))?void 0:f.skipCommands)||[];this.Mb.get().Kf(d,this.layout.layoutId)}};
g.k.Rv=function(){return this.layout.layoutId};
g.k.KH=function(){return this.Aa};
g.k.zj=function(a){if("not_rendering"!==this.j){this.ea||(a=new g.qJ(a.state,new g.YJ),this.ea=!0);var b=2===this.Ga.get().getPresentingPlayerType();"rendering_start_requested"===this.j?b&&v1(a)&&this.Z():b?g.sJ(a,2)?this.hN():(v1(a)?this.D(1):g.sJ(a,4)&&!g.sJ(a,2)&&this.qP(),0>rJ(a,4)&&!(0>rJ(a,2))&&this.rP()):this.PC()}};
g.k.Qz=function(){if("rendering"===this.j){b1(this.u,"active_view_measurable");var a,b=(null==(a=x1(this))?void 0:a.activeViewMeasurableCommands)||[];this.Mb.get().Kf(b,this.layout.layoutId)}};
g.k.Pz=function(){if("rendering"===this.j){b1(this.u,"active_view_fully_viewable_audible_half_duration");var a,b=(null==(a=x1(this))?void 0:a.activeViewFullyViewableAudibleHalfDurationCommands)||[];this.Mb.get().Kf(b,this.layout.layoutId)}};
g.k.Rz=function(){if("rendering"===this.j){b1(this.u,"active_view_viewable");var a,b=(null==(a=x1(this))?void 0:a.activeViewViewableCommands)||[];this.Mb.get().Kf(b,this.layout.layoutId)}};
g.k.Nz=function(){if("rendering"===this.j){b1(this.u,"audio_audible");var a,b=(null==(a=x1(this))?void 0:a.activeViewAudioAudibleCommands)||[];this.Mb.get().Kf(b,this.layout.layoutId)}};
g.k.Oz=function(){if("rendering"===this.j){b1(this.u,"audio_measurable");var a,b=(null==(a=x1(this))?void 0:a.activeViewAudioMeasurableCommands)||[];this.Mb.get().Kf(b,this.layout.layoutId)}};
g.k.wv=function(a){this.Sd.get().wv(vY(this.layout.Ea,"metadata_type_ad_placement_config").kind,a,this.position,this.qa,!1)};
g.k.onFullscreenToggled=function(a){if("rendering"===this.j)if(a){this.Rf("fullscreen");var b,c=(null==(b=x1(this))?void 0:b.fullscreenCommands)||[];this.Mb.get().Kf(c,this.layout.layoutId)}else this.Rf("end_fullscreen"),b=(null==(c=x1(this))?void 0:c.endFullscreenCommands)||[],this.Mb.get().Kf(b,this.layout.layoutId)};
g.k.onVolumeChange=function(){if("rendering"===this.j)if(this.Ga.get().isMuted()){B1(this,"mute");var a,b=(null==(a=x1(this))?void 0:a.muteCommands)||[];this.Mb.get().Kf(b,this.layout.layoutId)}else B1(this,"unmute"),a=(null==(b=x1(this))?void 0:b.unmuteCommands)||[],this.Mb.get().Kf(a,this.layout.layoutId)};
g.k.Zg=function(){};
g.k.vj=function(){};
g.k.qk=function(){};
g.k.Rf=function(a){o0(this.Ha.get(),"av_call_once_per_event_pair")?this.u.Rf(a,!this.C):(this.u.Rf(a),this.C||(a=NI(a))&&this.u.Rf(a))};g.v(C1,y1);g.k=C1.prototype;g.k.fq=function(){};
g.k.Lq=function(){var a=this.Ta.get();a.GE===this&&(a.GE=null);this.timer.stop()};
g.k.Sq=function(){mVa(this.Ga.get());this.Ta.get().GE=this;kB("pbp")||kB("pbs")||lB("pbp");kB("pbp","watch")||kB("pbs","watch")||lB("pbp",void 0,"watch");this.Z()};
g.k.dR=function(){KVa(this)};
g.k.hN=function(){};
g.k.vt=function(){this.timer.stop();y1.prototype.qP.call(this)};
g.k.Kt=function(){KVa(this);y1.prototype.rP.call(this)};
g.k.Qv=function(){return vY(this.Db().Ea,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")};
g.k.Tq=function(){this.timer.stop()};
g.k.hc=function(){var a=Date.now(),b=a-this.B;this.B=a;this.Sl+=b;this.Sl>=this.Qv()?(this.Sl=this.Qv(),A1(this,this.Sl/1E3,!0),D1(this,this.Sl),this.J()):(A1(this,this.Sl/1E3),D1(this,this.Sl))};
g.k.eR=function(){};
g.k.Ri=function(){};g.v(E1,y1);g.k=E1.prototype;g.k.fq=function(){vY(this.Db().Ea,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=vY(this.Db().Ea,"metadata_type_shrunken_player_bytes_config")};
g.k.Lq=function(){vY(this.Db().Ea,"metadata_type_player_bytes_callback_ref").current=null;this.B&&this.Yb.get().removeCueRange(this.B);this.B=void 0;this.I.dispose()};
g.k.Sq=function(a){var b=vY(a.Ea,"metadata_type_ad_video_id"),c=vY(a.Ea,"metadata_type_legacy_info_card_vast_extension");b&&c&&this.wf.get().G.V().qa.add(b,{jy:c});(b=vY(a.Ea,"metadata_type_sodar_extension_data"))&&pVa(this.Be.get(),b);nVa(this.Ga.get(),!1);(b=this.Ha.get().G.V().experiments.jb("html5_load_ads_instead_of_cue"))?(c=this.xe.get(),a=vY(a.Ea,"metadata_type_player_vars"),c.G.loadVideoByPlayerVars(a,!1,2)):(c=this.xe.get(),a=vY(a.Ea,"metadata_type_player_vars"),c.G.cueVideoByPlayerVars(a,
2));this.I.start();b||this.xe.get().G.playVideo(2)};
g.k.dR=function(){this.I.stop();this.B="adcompletioncuerange:"+this.Db().layoutId;this.Yb.get().addCueRange(this.B,0x7ffffffffffff,0x8000000000000,!1,this,2,2);var a;(this.adCpn=(null==(a=this.Ua.get().Sf(2))?void 0:a.clientPlaybackNonce)||"")||cA("Media layout confirmed started, but ad CPN not set.");this.md.get().Pa("onAdStart",this.adCpn)};
g.k.hN=function(){this.J()};
g.k.Qv=function(){var a;return null==(a=this.Ua.get().Sf(2))?void 0:a.playbackDurationMs};
g.k.nE=function(){this.u.Rf("clickthrough")};
g.k.Tq=function(){this.I.stop();nVa(this.Ga.get(),!0);var a;(null==(a=this.shrunkenPlayerBytesConfig)?0:a.shouldRequestShrunkenPlayerBytes)&&this.Ga.get().Vw(!1)};
g.k.onCueRangeEnter=function(a){a!==this.B?cA("Received CueRangeEnter signal for unknown layout.",this.fd(),this.Db(),{cueRangeId:a}):(this.Yb.get().removeCueRange(this.B),this.B=void 0,a=vY(this.Db().Ea,"metadata_type_video_length_seconds"),A1(this,a,!0),o0(this.Ha.get(),"av_call_early_terminal_event")?z1(this,"complete"):b1(this.u,"complete"))};
g.k.eR=function(a){"abandoned"!==a&&this.md.get().Pa("onAdComplete");this.md.get().Pa("onAdEnd",this.adCpn)};
g.k.onCueRangeExit=function(){};
g.k.Ri=function(a){"rendering"===this.j&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&a>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.Ga.get().Vw(!0),A1(this,a))};g.v(F1,p1);g.k=F1.prototype;g.k.fd=function(){return this.j.fd()};
g.k.Db=function(){return this.j.Db()};
g.k.fq=function(){this.j.init()};
g.k.Lq=function(){this.j.release()};
g.k.vt=function(){this.j.vt()};
g.k.Kt=function(){this.j.Kt()};
g.k.Zz=function(a,b){cA("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter.  Skip should be handled by Triggers",this.fd(),this.Db(),{requestingSlot:a,requestingLayout:b})};
g.k.Sq=function(a){this.j.startRendering(a)};
g.k.Tq=function(a,b){this.j.eg(a,b)};
g.k.Rc=function(a,b){this.j.Rc(a,b)};
g.k.pd=function(a,b,c){p1.prototype.pd.call(this,a,b,c);this.j.pd(a,b,c);b.layoutId===this.Db().layoutId&&this.Sd.get().Zw()};
g.k.qQ=function(){this.j.PC()};
g.k.Ri=function(a){this.j.Ri(a)};
g.k.pR=function(a){this.j.zj(a)};
g.k.og=function(a,b){this.j.Kz(a,b)};
g.k.onFullscreenToggled=function(a){this.j.onFullscreenToggled(a)};
g.k.Zg=function(a){this.j.Zg(a)};
g.k.vj=function(a){this.j.vj(a)};
g.k.onVolumeChange=function(){this.j.onVolumeChange()};G1.prototype.Xe=function(a,b,c,d){if(a=NVa(a,b,c,d,this.mf,this.j,this.Ta,this.Ib,this.Be,this.xe,this.Ua,this.Ga,this.Yb,this.Sd,this.md,this.lf,this.Mb,this.wf,this.Ha))return a;throw new WZ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+wY(d.Ea)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.v(H1,g.J);g.k=H1.prototype;g.k.fR=function(a){if(!this.j){var b;null==(b=this.Je)||b.get().Fq(a.identifier);return!1}OVa(this,this.j,a);return!0};
g.k.XQ=function(){};
g.k.Si=function(a){this.j&&this.j.contentCpn!==a&&(cA("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.j.contentCpn}),this.j=null)};
g.k.Cl=function(a){this.j&&this.j.contentCpn!==a&&cA("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.j.contentCpn},!0);this.j=null};
g.k.ra=function(){g.J.prototype.ra.call(this);this.j=null};g.v(I1,g.J);g.k=I1.prototype;g.k.Rc=function(a,b){var c=this;if("LAYOUT_TYPE_MEDIA"===b.layoutType&&AJ(b,this.B)){var d=this.Ua.get().Sf(2),e=this.j(b,d||void 0,this.Ha.get().G.V().experiments.jb("enable_post_ad_perception_survey_in_tvhtml5"));e?Xz(this.Ub.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",function(){var f=[SUa(c.Fb.get(),e.contentCpn,e.hx,function(h){return c.u(h.slotId,"core",e,BY(c.Hb.get(),h))},e.JP)];
e.instreamAdPlayerUnderlayRenderer&&dVa(c.Ha.get())&&f.push(PVa(c,e,e.instreamAdPlayerUnderlayRenderer));return f}):cA("Expected MediaLayout to carry valid opportunity on entered",a,b)}};
g.k.Xh=function(){};
g.k.Bj=function(){};
g.k.cg=function(){};
g.k.Aj=function(){};
g.k.dg=function(){};
g.k.vk=function(){};
g.k.wk=function(){};
g.k.xj=function(){};
g.k.yj=function(){};
g.k.Ti=function(){};
g.k.pd=function(){};var y2=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"];g.k=TVa.prototype;g.k.init=function(){};
g.k.fd=function(){return this.slot};
g.k.lC=function(){this.callback.cg(this.slot)};
g.k.nC=function(){this.callback.dg(this.slot)};
g.k.release=function(){};K1.prototype.Xe=function(a,b){return new TVa(a,b)};g.k=UVa.prototype;g.k.init=function(){};
g.k.fd=function(){return this.slot};
g.k.lC=function(){M0(this.Ga.get(),"ad-showing");this.callback.cg(this.slot)};
g.k.nC=function(){this.callback.dg(this.slot);N0(this.Ga.get(),"ad-showing")};
g.k.release=function(){};g.k=VVa.prototype;g.k.init=function(){};
g.k.fd=function(){return this.slot};
g.k.lC=function(){M0(this.Ga.get(),"ad-showing");M0(this.Ga.get(),"ad-interrupting");this.u=this.Ga.get().isAtLiveHead();this.j=Math.ceil(Date.now()/1E3);this.callback.cg(this.slot)};
g.k.nC=function(){N0(this.Ga.get(),"ad-showing");N0(this.Ga.get(),"ad-interrupting");var a=this.u?Infinity:this.Ga.get().getCurrentTimeSec(1,!0)+Math.floor(Date.now()/1E3)-this.j;this.Ga.get().G.seekTo(a,void 0,void 0,1);this.callback.dg(this.slot)};
g.k.release=function(){};g.k=WVa.prototype;g.k.init=function(){};
g.k.fd=function(){return this.slot};
g.k.lC=function(){M0(this.Ga.get(),"ad-showing");M0(this.Ga.get(),"ad-interrupting");this.callback.cg(this.slot)};
g.k.nC=function(){this.Ga.get().ls();N0(this.Ga.get(),"ad-showing");N0(this.Ga.get(),"ad-interrupting");this.callback.dg(this.slot)};
g.k.release=function(){this.Ga.get().ls()};L1.prototype.Xe=function(a,b){if(Zz(b,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new UVa(a,b,this.Ga);if(b.Pb instanceof Q_&&Zz(b,["metadata_type_served_from_live_infra"],"SLOT_TYPE_PLAYER_BYTES"))return new VVa(a,b,this.Ga);if(Zz(b,[],"SLOT_TYPE_PLAYER_BYTES"))return new WVa(a,b,this.Ga);throw new zA("Unsupported slot with type "+b.slotType+" and client metadata: "+(wY(b.Ea)+" in PlayerBytesSlotAdapterFactory."));};g.v(N1,g.J);N1.prototype.j=function(a){for(var b=[],c=g.r(this.Ob.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof y_&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"===d.category&&e.If===a&&b.push(d)}b.length?c_(this.sF(),b):cA("Mute requested but no registered triggers can be activated.")};g.v(O1,N1);g.k=O1.prototype;g.k.Eg=function(a,b){if(b)if("survey-submit"===a)XVa(this,b);else if("skip-button"===a){a=[];for(var c=g.r(this.Ob.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof y_&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"===d.category&&e.If===b&&a.push(d)}a.length&&c_(this.sF(),a)}else"survey-single-select-answer-button"===a&&XVa(this,b)};
g.k.mI=function(a){N1.prototype.j.call(this,a)};
g.k.Ak=function(a,b,c,d){if(this.Ob.has(b.triggerId))throw new zA("Tried to register duplicate trigger for slot.");if(!(b instanceof z_||b instanceof y_))throw new zA("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdUxUpdateTriggerAdapter.");this.Ob.set(b.triggerId,new M1(a,b,c,d))};
g.k.Ik=function(a){this.Ob.delete(a.triggerId)};
g.k.kI=function(){};
g.k.jI=function(){};
g.k.QC=function(){};g.v(P1,g.J);g.k=P1.prototype;
g.k.Ak=function(a,b,c,d){if(this.Ob.has(b.triggerId))throw new zA("Tried to register duplicate trigger for slot.");if(!(b instanceof f0||b instanceof g0||b instanceof h0||b instanceof i0||b instanceof j0||b instanceof k0||b instanceof V_||b instanceof c0||b instanceof x_||b instanceof G_||b instanceof U_||b instanceof b0))throw new zA("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdsControlFlowEventTriggerAdapter");a=new M1(a,b,c,d);this.Ob.set(b.triggerId,a);b instanceof
j0&&this.D.has(b.oh)&&c_(this.j(),[a]);b instanceof f0&&this.B.has(b.oh)&&c_(this.j(),[a]);b instanceof c0&&this.u.has(b.If)&&c_(this.j(),[a])};
g.k.Ik=function(a){this.Ob.delete(a.triggerId)};
g.k.Xh=function(a){this.D.add(a.slotId);for(var b=[],c=g.r(this.Ob.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof j0&&a.slotId===d.trigger.oh&&b.push(d);0<b.length&&c_(this.j(),b)};
g.k.Bj=function(a){this.D.delete(a.slotId);for(var b=[],c=g.r(this.Ob.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof k0&&e.oh===a.slotId&&b.push(d)}0<b.length&&c_(this.j(),b)};
g.k.Aj=function(a){for(var b=[],c=g.r(this.Ob.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof V_&&e.slotType===a.slotType&&e.j!==a.slotId&&b.push(d)}0<b.length&&c_(this.j(),b)};
g.k.cg=function(a){this.B.add(a.slotId);for(var b=[],c=g.r(this.Ob.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof f0&&a.slotId===d.trigger.oh&&b.push(d);0<b.length&&c_(this.j(),b)};
g.k.dg=function(a){this.B.delete(a.slotId);this.C.add(a.slotId);for(var b=[],c=g.r(this.Ob.values()),d=c.next();!d.done;d=c.next())if(d=d.value,d.trigger instanceof g0)a.slotId===d.trigger.oh&&b.push(d);else if(d.trigger instanceof b0){var e=d.trigger;a.slotId===e.slotId&&this.u.has(e.If)&&b.push(d)}0<b.length&&c_(this.j(),b)};
g.k.vk=function(a){for(var b=[],c=g.r(this.Ob.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof h0&&a.slotId===d.trigger.oh&&b.push(d);0<b.length&&c_(this.j(),b)};
g.k.wk=function(a){for(var b=[],c=g.r(this.Ob.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof i0&&a.slotId===d.trigger.oh&&b.push(d);0<b.length&&c_(this.j(),b)};
g.k.xj=function(a,b){this.I.add(b.layoutId)};
g.k.yj=function(a,b){this.I.delete(b.layoutId)};
g.k.Rc=function(a,b){this.u.add(b.layoutId);for(var c=[],d=g.r(this.Ob.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof c0)b.layoutId===e.trigger.If&&c.push(e);else if(e.trigger instanceof U_){var f=e.trigger;a.slotType===f.slotType&&b.layoutType===f.layoutType&&b.layoutId!==f.j&&c.push(e)}else e.trigger instanceof b0&&(f=e.trigger,b.layoutId===f.If&&this.C.has(f.slotId)&&c.push(e));0<c.length&&c_(this.j(),c)};
g.k.pd=function(a,b,c){this.u.delete(b.layoutId);a=[];for(var d=g.r(this.Ob.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof x_&&b.layoutId===e.trigger.If&&a.push(e),e.trigger instanceof G_){var f=e.trigger;b.layoutId===f.If&&f.j.includes(c)&&a.push(e)}0<a.length&&c_(this.j(),a)};
g.k.Ti=function(){};
g.k.Si=function(){this.C.clear()};
g.k.Cl=function(){};g.v(Q1,g.J);Q1.prototype.Ak=function(a,b,c,d){if(this.Ob.has(b.triggerId))throw new zA("Tried to register duplicate trigger for slot.");if(!(b instanceof $z||b instanceof B_))throw new zA("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.Ob.set(b.triggerId,new M1(a,b,c,d))};
Q1.prototype.Ik=function(a){this.Ob.delete(a.triggerId)};
Q1.prototype.Si=function(a,b,c){b=[];for(var d=b.push,e=d.apply,f=[],h=g.r(this.Ob.values()),l=h.next();!l.done;l=h.next())l=l.value,l.trigger instanceof $z&&l.trigger.bp===a&&f.push(l);e.call(d,b,g.t(f));b.push.apply(b,g.t(YVa(this.Ob,a,!1,c)));b.length&&c_(this.j(),b)};
Q1.prototype.Cl=function(a){var b=[];b.push.apply(b,g.t(YVa(this.Ob,a,!0,!1)));b.length&&c_(this.j(),b)};g.v(S1,g.J);g.k=S1.prototype;
g.k.Ak=function(a,b,c,d){if(this.Ob.has(b.triggerId))throw new zA("Tried to register duplicate trigger for slot.");var e="adtriggercuerange:"+b.triggerId;if(R1(b))this.Ob.set(b.triggerId,{bundle:new M1(a,b,c,d),Zr:e});else if(b instanceof Q_||b instanceof d0)T1(this,a,b,c,d,e,b.Ll.start,b.Ll.end,b.bp,b.visible);else if(b instanceof e0)T1(this,a,b,c,d,e,b.Ll.start,b.Ll.end,b.bp,!1);else if(b instanceof a0)T1(this,a,b,c,d,e,0x7ffffffffffff,0x8000000000000,b.bp,b.visible);else throw new zA("Incorrect TriggerType: Tried to register trigger of type "+
b.triggerType+" in CueRangeTriggerAdapter");};
g.k.Ik=function(a){var b=this.Ob.get(a.triggerId);b&&this.Yb.get().removeCueRange(b.Zr);this.Ob.delete(a.triggerId)};
g.k.onCueRangeEnter=function(a,b){b=void 0===b?!1:b;if(a=ZVa(this,a))if(a=this.Ob.get(a))if(g.V(y0(this.Ga.get()),32))this.j.add(a.Zr);else{var c=null==a?void 0:a.bundle.trigger;b=b?c instanceof Y_:c instanceof W_;(c instanceof Q_||c instanceof d0||c instanceof a0||c instanceof X_||b)&&c_(this.u(),[a.bundle])}};
g.k.onCueRangeExit=function(a){if(a=ZVa(this,a))if(a=this.Ob.get(a))this.j.delete(a.Zr),a.bundle.trigger instanceof e0&&c_(this.u(),[a.bundle])};
g.k.zj=function(a){if(0>rJ(a,16)){a=g.r(this.j);for(var b=a.next();!b.done;b=a.next())this.onCueRangeEnter(b.value,!0);this.j.clear()}};
g.k.Xh=function(){};
g.k.Bj=function(){};
g.k.Aj=function(){};
g.k.cg=function(){};
g.k.dg=function(){};
g.k.vk=function(){};
g.k.wk=function(){};
g.k.xj=function(){};
g.k.yj=function(){};
g.k.Rc=function(a,b){a=g.r(this.Ob.values());for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.bundle.trigger;c=c.Zr;if(R1(d)&&d.layoutId===b.layoutId){var e=1E3*this.Ga.get().getCurrentTimeSec(1,!1);d instanceof X_?d=0:(d=e+d.offsetMs,e=0x7ffffffffffff);this.Yb.get().addCueRange(c,d,e,!1,this)}}};
g.k.pd=function(a,b,c){var d=this;a={};for(var e=g.r(this.Ob.values()),f=e.next();!f.done;a={yx:a.yx,Jn:a.Jn},f=e.next())f=f.value,a.Jn=f.bundle.trigger,a.yx=f.Zr,R1(a.Jn)&&a.Jn.layoutId===b.layoutId?$Ua(this.Yb.get(),a.yx):a.Jn instanceof d0&&a.Jn.layoutId===b.layoutId&&"user_cancelled"===c&&(this.Yb.get().removeCueRange(a.yx),g.Av(g.Cv(),function(h){return function(){d.Yb.get().addCueRange(h.yx,h.Jn.Ll.start,h.Jn.Ll.end,h.Jn.visible,d)}}(a)))};
g.k.Ti=function(){};
g.k.Ri=function(){};
g.k.onFullscreenToggled=function(){};
g.k.Zg=function(){};
g.k.vj=function(){};
g.k.onVolumeChange=function(){};
g.k.qk=function(){};g.v(U1,g.J);g.k=U1.prototype;g.k.Ak=function(a,b,c,d){if(this.Ob.has(b.triggerId))throw new zA("Tried to register duplicate trigger for slot.");if(!(b instanceof C_))throw new zA("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Ob.set(b.triggerId,new M1(a,b,c,d))};
g.k.Ik=function(a){this.Ob.delete(a.triggerId)};
g.k.Jp=function(){};
g.k.Em=function(){};
g.k.Rc=function(a,b){"SLOT_TYPE_ABOVE_FEED"===a.slotType&&(null!=this.j?cA("called onLayoutEntered with AboveFeedSlot but there is already a layout entered"):this.j=b.layoutId)};
g.k.pd=function(a){"SLOT_TYPE_ABOVE_FEED"===a.slotType&&(this.j=null)};
g.k.Xh=function(){};
g.k.Bj=function(){};
g.k.Aj=function(){};
g.k.cg=function(a){"SLOT_TYPE_ABOVE_FEED"===a.slotType&&(null!=this.u?cA("called onSlotEntered with AboveFeedSlot but there is already a slot entered"):this.u=a.slotId)};
g.k.dg=function(a){"SLOT_TYPE_ABOVE_FEED"===a.slotType&&(null===this.u?cA("called onSlotExited with AboveFeedSlot but there is no entered slot"):this.u=null)};
g.k.vk=function(){};
g.k.wk=function(){};
g.k.xj=function(){};
g.k.yj=function(){};
g.k.Ti=function(){};
g.k.WB=function(){null!=this.j&&u1(this,this.j)};
g.k.qC=function(){if(null===this.u){for(var a=[],b=g.r(this.Ob.values()),c=b.next();!c.done;c=b.next());a.length&&c_(this.B(),a)}};g.v(V1,g.J);g.k=V1.prototype;g.k.Ti=function(a,b){for(var c=[],d=g.r(this.Ob.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f.opportunityType===a&&(f.associatedSlotId&&f.associatedSlotId!==b||c.push(e))}c.length&&c_(this.j(),c)};
g.k.Ak=function(a,b,c,d){if(this.Ob.has(b.triggerId))throw new zA("Tried to register duplicate trigger for slot.");if(!(b instanceof JUa))throw new zA("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OpportunityEventTriggerAdapter");this.Ob.set(b.triggerId,new M1(a,b,c,d))};
g.k.Ik=function(a){this.Ob.delete(a.triggerId)};
g.k.Xh=function(){};
g.k.Bj=function(){};
g.k.Aj=function(){};
g.k.cg=function(){};
g.k.dg=function(){};
g.k.vk=function(){};
g.k.wk=function(){};
g.k.xj=function(){};
g.k.yj=function(){};
g.k.Rc=function(){};
g.k.pd=function(){};g.v(W1,g.J);W1.prototype.ra=function(){this.jn.get().removeListener(this);g.J.prototype.ra.call(this)};g.v(X1,g.J);X1.prototype.ra=function(){this.He.get().removeListener(this);g.J.prototype.ra.call(this)};Y1.prototype.fetch=function(a){var b=a.yO;return this.Er.fetch(a.xT,{sy:void 0===a.sy?void 0:a.sy,Td:b}).then(function(c){return $Va(c,b)})};g.v(Z1,g.J);g.k=Z1.prototype;g.k.addListener=function(a){this.listeners.push(a)};
g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.k.CE=function(a){aWa(this,a,1)};
g.k.onAdUxClicked=function(a,b){$1(this,function(c){c.Eg(a,b)})};
g.k.tJ=function(a){$1(this,function(b){b.kI(a)})};
g.k.sJ=function(a){$1(this,function(b){b.jI(a)})};
g.k.q0=function(a){$1(this,function(b){b.QC(a)})};g.v(a2,g.J);g.k=a2.prototype;
g.k.Si=function(){this.C=new MJ(this,cVa(this.Ha.get()));this.u=new NJ;var a=this.G.getVideoData(1);if(!a.enableServerStitchedDai){var b=this.G.getVideoData(1),c;(null==(c=this.j)?void 0:c.clientPlaybackNonce)!==b.clientPlaybackNonce&&(null!=this.j&&this.j.unsubscribe("cuepointupdated",this.AJ,this),b.subscribe("cuepointupdated",this.AJ,this),this.j=b)}this.OE.length=0;var d;b=(null==(d=a.j)?void 0:Txa(d,0))||[];d=g.r(b);for(b=d.next();!b.done;b=d.next())b=b.value,this.Bq(b)&&cA("Unexpected a GetAdBreak to go out without player waiting",
void 0,void 0,{cuePointId:b.identifier,cuePointEvent:b.event,contentCpn:a.clientPlaybackNonce})};
g.k.Cl=function(){};
g.k.addListener=function(a){this.listeners.push(a)};
g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.k.OJ=function(a){this.OE.push(a);for(var b=!1,c=g.r(this.listeners),d=c.next();!d.done;d=c.next())b=d.value.fR(a)||b;this.B=b};
g.k.YQ=function(a){g.nc(this.u.j,1E3*a);for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.XQ(a)};
g.k.Bq=function(a){cWa(this,a);this.C.reduce(a);a=this.B;this.B=!1;return a};
g.k.AJ=function(a){var b=this.G.getVideoData(1).isDaiEnabled();if(b||!g.lG(this.G.V())){a=g.r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,cWa(this,c),b?this.C.reduce(c):0!==this.G.getCurrentTime(1)&&"start"===c.event&&this.OJ(c)}};
g.k.ra=function(){null!=this.j&&(this.j.unsubscribe("cuepointupdated",this.AJ,this),this.j=null);this.listeners.length=0;this.OE.length=0;g.J.prototype.ra.call(this)};d2.prototype.addListener=function(a){this.listeners.push(a)};
d2.prototype.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};g.k=eWa.prototype;g.k.fd=function(){return this.slot};
g.k.Db=function(){return this.layout};
g.k.init=function(){this.Ga.get().addListener(this);this.Ga.get().cC.push(this)};
g.k.release=function(){this.Ga.get().removeListener(this);kVa(this.Ga.get(),this)};
g.k.startRendering=function(a){this.callback.Rc(this.slot,a)};
g.k.eg=function(a,b){this.callback.pd(this.slot,a,b)};
g.k.qk=function(a){switch(a.id){case "part2viewed":b1(this.j,"start");break;case "videoplaytime25":b1(this.j,"first_quartile");break;case "videoplaytime50":b1(this.j,"midpoint");break;case "videoplaytime75":b1(this.j,"third_quartile");break;case "videoplaytime100":b1(this.j,"complete");break;case "engagedview":if(!w0(this.Ha.get())){b1(this.j,"progress");break}vVa(this.j)||b1(this.j,"progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;
default:cA("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}};
g.k.onVolumeChange=function(){};
g.k.vj=function(){};
g.k.Zg=function(){};
g.k.onFullscreenToggled=function(){};
g.k.zj=function(){};
g.k.Ri=function(){};
g.k.TQ=function(a){w0(this.Ha.get())&&vVa(this.j)&&d1(this.j,1E3*a,!1)};fWa.prototype.Xe=function(a,b,c,d){b=["metadata_type_ad_placement_config"];for(var e=g.r($0()),f=e.next();!f.done;f=e.next())b.push(f.value);if(X0(d,{ue:b,Ef:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return new eWa(a,c,d,this.Ga,this.Ta,this.Ha);throw new WZ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+wY(d.Ea)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};g.k=e2.prototype;g.k.fd=function(){return this.slot};
g.k.Db=function(){return this.layout};
g.k.init=function(){this.Oe.get().addListener(this);this.Ga.get().addListener(this);this.fq();var a=vY(this.layout.Ea,"metadata_type_layout_enter_ms"),b=vY(this.layout.Ea,"metadata_type_layout_exit_ms"),c,d=null==(c=this.Ua.get().gs)?void 0:c.clientPlaybackNonce;c=this.layout.Ec.adClientDataEntry;G0(this.Ta.get(),{daiStateTrigger:{filledAdsDurationMs:b-a,contentCpn:d,adClientData:c}});var e=this.Oe.get();e=OJ(e.u,a,b);null!==e&&(G0(this.Ta.get(),{daiStateTrigger:{filledAdsDurationMs:e-a,contentCpn:d,
cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:c}}),this.Je.get().Rr(e,b))};
g.k.release=function(){this.Lq();this.Oe.get().removeListener(this);this.Ga.get().removeListener(this)};
g.k.startRendering=function(){this.Sq();this.callback.Rc(this.slot,this.layout)};
g.k.eg=function(a,b){this.Tq(b);null!==this.driftRecoveryMs&&(f2(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(gWa(this)-vY(this.layout.Ea,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(1E3*this.Ga.get().G.Sp()).toString()}),this.driftRecoveryMs=null);this.callback.pd(this.slot,this.layout,b)};
g.k.fR=function(){return!1};
g.k.XQ=function(a){var b=vY(this.layout.Ea,"metadata_type_layout_enter_ms"),c=vY(this.layout.Ea,"metadata_type_layout_exit_ms");a*=1E3;if(b<=a&&a<c){var d;G0(this.Ta.get(),{daiStateTrigger:{filledAdsDurationMs:a-b,contentCpn:null==(d=this.Ua.get().gs)?void 0:d.clientPlaybackNonce,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:this.layout.Ec.adClientDataEntry}});this.Je.get().Rr(a,c)}};
g.k.Ri=function(a){this.LQ(a);a=this.Ga.get().getCurrentTimeSec(2,!0);if(IUa(this.D.get(),this.layout.layoutId)){var b=vY(this.layout.Ea,"metadata_type_layout_enter_ms"),c=this.driftRecoveryMs;if(!(null===c||1E3*a<b+c)){this.driftRecoveryMs=null;var d=gWa(this),e=this.Ga.get().G.Sp(),f=Math.min(a+e,d/1E3);f<=a?f2(this,{driftRecoveryMs:c.toString(),breakDurationMs:Math.round(d-b).toString(),driftFromHeadMs:Math.round(1E3*e).toString()}):(f2(this,{driftRecoveryMs:c.toString(),breakDurationMs:Math.round(d-
b).toString(),driftFromHeadMs:Math.round(1E3*e).toString(),appliedDriftRecoveryMs:Math.round(1E3*a-b).toString(),destinationMs:Math.round(1E3*f-b).toString()}),this.Ga.get().G.seekTo(f,void 0,void 0,1))}}};
g.k.Zg=function(){};
g.k.vj=function(){};
g.k.onVolumeChange=function(){};
g.k.qk=function(){};g.v(g2,e2);g.k=g2.prototype;g.k.fq=function(){this.Ua.get().addListener(this);this.C.forEach(function(a){a.init()});
null!=this.B&&this.Ta.get().Uh("ads_ssmplra_init","lid."+this.layout.layoutId+";smlid."+this.B)};
g.k.Lq=function(){this.Ua.get().removeListener(this);this.u=null;this.C.forEach(function(a){a.release()})};
g.k.Sq=function(){if(this.u)cA("Failed to restart rendering",this.slot,this.layout,{hasSurveyMediaSubLayout:String(!!this.B)});else{var a,b=null==(a=this.Ua.get().gs)?void 0:a.layoutId;iWa(this,b)}};
g.k.Tq=function(a){var b,c,d,e;null==(d=this.u)||null==(e=d.Vj)||e.eg(null==(b=this.u)?void 0:null==(c=b.Vj)?void 0:c.Db(),a);this.u=null};
g.k.lR=function(a){var b=a.videoId;a=a.layoutId;if("nPpU29QrbiU"===b){var c,d;this.Ta.get().Uh("ads_ssmplra_opdcs","vid."+b+";lid."+this.layout.layoutId+";smlid."+this.B+";slrs."+!!this.u+";slrslid."+(null==(c=this.u)?void 0:null==(d=c.Vj)?void 0:d.Db().layoutId))}var e;if(this.u&&(null==(e=this.u.Vj)?void 0:e.Db().layoutId)!==a){var f,h;null==(h=this.u.Vj)||h.eg(null==(f=this.u.Vj)?void 0:f.Db(),"normal");iWa(this,a)}};
g.k.LQ=function(){};
g.k.zj=function(){};
g.k.onFullscreenToggled=function(){};g.k=tWa.prototype;g.k.fd=function(){return this.slot};
g.k.Db=function(){return this.layout};
g.k.init=function(){var a=this;vY(this.layout.Ea,"metadata_type_player_bytes_callback_ref").current=this;this.Hc=jWa(this.slot,this.layout,vY(this.layout.Ea,"metadata_type_player_vars"),vY(this.layout.Ea,"metadata_type_layout_enter_ms"),vY(this.layout.Ea,"metadata_type_layout_exit_ms"),1E3*vY(this.layout.Ea,"metadata_type_video_length_seconds"),this.Je.get(),this.Fd.get(),function(){var e=Object,f=e.assign,h=k2(a.layout);var l=vY(a.slot.Ea,"metadata_type_fulfilled_layout");l=Object.assign({},k2(l),
{adPlacementConfig:vY(l.Ea,"metadata_type_ad_placement_config"),subLayouts:vY(l.Ea,"metadata_type_sub_layouts").map(k2)});return f.call(e,{},{layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"},h,{compositeLayout:l,hasSurveyOverlay:Yz(a.layout.Ea,"metadata_type_survey_overlay"),surveyOverlay:vY(a.layout.Ea,"metadata_type_survey_overlay")})},this.Ta.get());
this.Ga.get().addListener(this);var b=vY(this.layout.Ea,"metadata_type_video_length_seconds"),c=vY(this.layout.Ea,"metadata_type_active_view_traffic_type"),d=KI(this.layout.Vb);this.Ha.get().G.V().experiments.jb("html5_disable_lidar")&&this.Ta.get().Uh("ads_av","lid."+this.layout.layoutId+";enab."+d);d&&z0(this.Ib.get(),this.layout.layoutId,c,b,this);$Z(this.callback,this.slot,this.layout);a_(this.callback,this.slot,this.layout)};
g.k.release=function(){this.Ga.get().removeListener(this);KI(this.layout.Vb)&&A0(this.Ib.get(),this.layout.layoutId);this.Ha.get().G.V().K("html5_unschedule_dai_media_sublayout_killswitch")||JJ(this.callback,this.slot,this.layout)};
g.k.startRendering=function(){var a=this;Yz(this.layout.Ea,"metadata_type_survey_overlay")&&this.Ta.get().Uh("ads_ssmlra_srs","lid."+this.layout.layoutId);if(this.u)cA("Expected the layout not to be entered before start rendering",this.slot,this.layout,{hasSurveyOverlay:Yz(this.layout.Ea,"metadata_type_survey_overlay"),surveyOverlay:vY(this.layout.Ea,"metadata_type_survey_overlay")});else{this.u={yl:null,uA:!1};this.Ha.get().G.V().experiments.jb("html5_disable_sodar_for_tvhtml5")||kWa(this.slot,this.layout,
this.Be.get());b1(this.j,"start");if(v0(this.Ha.get())){var b=y0(this.Ga.get()),c=vY(this.layout.Ea,"metadata_type_video_length_seconds"),d=this.Ga.get().getCurrentTimeSec(2,!1);lWa(this.j,this.u.yl,b,c,d,function(){return void vWa(a,"teois")})}b_(this.callback,this.slot,this.layout);
Yz(this.layout.Ea,"metadata_type_survey_overlay")&&this.Ta.get().Uh("ads_ssmlra_sre","lid."+this.layout.layoutId)}};
g.k.eg=function(a,b){var c=this;if(this.u){if(v0(this.Ha.get()))if(null===this.Hc)cA("Unexpected media sub layout exited without a timeline playback ID");else{a=vY(this.layout.Ea,"metadata_type_video_length_seconds");var d=L0(this.Ga.get(),this.Hc);this.j.D=d;i2(this.j,null,this.u.yl,a,d,function(e){return void uWa(c,e,"fue")})}this.u=null;
EJ(this.callback,this.slot,this.layout,b)}else cA("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.k.Kz=function(){};
g.k.PC=function(){};
g.k.Ri=function(a){var b=this;if(this.u){if(e1(this.j,"impression")){var c=y0(this.Ga.get()),d=vY(this.layout.Ea,"metadata_type_video_length_seconds");j2(this.j,c,a,this.u.yl,d,function(e){return void uWa(b,e,"tpaqe")})}this.u.yl=a}};
g.k.zj=function(a){var b=this;if(this.u){v0(this.Ha.get())||this.u.uA||(this.u.uA=!0,a=new g.qJ(a.state,new g.YJ));var c=vY(this.layout.Ea,"metadata_type_video_length_seconds"),d=this.Ga.get().getCurrentTimeSec(2,!1);h2(this.j,this.u.yl,a,c,d,!v0(this.Ha.get()),function(){return void vWa(b,"teosc")})}};
g.k.onFullscreenToggled=function(a){mWa(this.j,a)};
g.k.Zg=function(){};
g.k.vj=function(){};
g.k.Zz=function(a,b){var c;a=this.Ta.get();var d=a.Uh,e="ti."+e1(this.j,"impression")+";ts."+e1(this.j,"skip")+";hp.",f;var h=!(null==(f=this.j.B.get("skip"))||!f.length);d.call(a,"ads_dsr",e+h+";cpn."+vY(this.layout.Ea,"metadata_type_content_cpn")+";acpn."+(null==(c=this.Ua.get().Sf(2))?void 0:c.clientPlaybackNonce)+";sl."+(vY(b.Ea,"metadata_type_linked_player_bytes_layout_id")===this.layout.layoutId));e1(this.j,"impression")&&b1(this.j,"skip");this.Je.get().Gl()||cA("Unexpected failure to skip a server stitched ad",
this.slot,this.layout)};
g.k.onVolumeChange=function(){};
g.k.Rc=function(){};
g.k.pd=function(){};
g.k.vt=function(){};
g.k.Kt=function(){};
g.k.nE=function(){nWa(this.j)};
g.k.Qz=function(){oWa(this.j)};
g.k.Pz=function(){pWa(this.j)};
g.k.Rz=function(){qWa(this.j)};
g.k.Nz=function(){rWa(this.j)};
g.k.Oz=function(){sWa(this.j)};
g.k.qk=function(){};g.v(l2,e2);g.k=l2.prototype;
g.k.fq=function(){var a=this;vY(this.layout.Ea,"metadata_type_player_bytes_callback_ref").current=this;var b=vY(this.layout.Ea,"metadata_type_layout_enter_ms"),c=vY(this.layout.Ea,"metadata_type_layout_exit_ms");this.Hc=jWa(this.slot,this.layout,vY(this.layout.Ea,"metadata_type_player_vars"),b,c,1E3*vY(this.layout.Ea,"metadata_type_video_length_seconds"),this.Je.get(),this.Fd.get(),function(){return{layoutType:"LAYOUT_TYPE_MEDIA",enterMs:b,exitMs:c,adPlacementConfig:vY(a.layout.Ea,"metadata_type_ad_placement_config")}},
this.Ta.get());
var d=vY(this.layout.Ea,"metadata_type_video_length_seconds"),e=vY(this.layout.Ea,"metadata_type_active_view_traffic_type");KI(this.layout.Vb)&&z0(this.Ib.get(),this.layout.layoutId,e,d,this)};
g.k.Lq=function(){KI(this.layout.Vb)&&A0(this.Ib.get(),this.layout.layoutId)};
g.k.Sq=function(){var a=this;if(this.u)cA("Expected the layout not to be entered before start rendering",this.slot,this.layout);else if(this.u={yl:null,uA:!1},kWa(this.slot,this.layout,this.Be.get()),b1(this.j,"start"),v0(this.Ha.get())){var b=y0(this.Ga.get()),c=vY(this.layout.Ea,"metadata_type_video_length_seconds"),d=this.Ga.get().getCurrentTimeSec(2,!1);lWa(this.j,this.u.yl,b,c,d,function(){return void wWa(a,"teois")})}};
g.k.Tq=function(){var a=this;if(this.u){if(v0(this.Ha.get()))if(null===this.Hc)cA("Unexpected single media layout exited without a timeline playback ID");else{var b=vY(this.layout.Ea,"metadata_type_video_length_seconds"),c=L0(this.Ga.get(),this.Hc);this.j.D=c;i2(this.j,null,this.u.yl,b,c,function(d){return void xWa(a,d,"fue")})}this.u=null}else cA("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.k.LQ=function(a){var b=this;if(this.u){if(e1(this.j,"impression")){var c=y0(this.Ga.get()),d=vY(this.layout.Ea,"metadata_type_video_length_seconds");j2(this.j,c,a,this.u.yl,d,function(e){return void xWa(b,e,"tpaqe")})}this.u.yl=a}};
g.k.zj=function(a){var b=this;if(this.u){v0(this.Ha.get())||this.u.uA||(this.u.uA=!0,a=new g.qJ(a.state,new g.YJ));var c=vY(this.layout.Ea,"metadata_type_video_length_seconds"),d=this.Ga.get().getCurrentTimeSec(2,!1);h2(this.j,this.u.yl,a,c,d,!v0(this.Ha.get()),function(){return void wWa(b,"teosc")})}};
g.k.onFullscreenToggled=function(a){mWa(this.j,a)};
g.k.nE=function(){nWa(this.j)};
g.k.Qz=function(){oWa(this.j)};
g.k.Pz=function(){pWa(this.j)};
g.k.Rz=function(){qWa(this.j)};
g.k.Nz=function(){rWa(this.j)};
g.k.Oz=function(){sWa(this.j)};m2.prototype.Xe=function(a,b,c,d){if(Yz(c.Ea,"metadata_type_dai")){var e=vY(d.Ea,"metadata_type_ad_placement_config");X0(d,{ue:"metadata_type_video_length_seconds metadata_type_player_vars metadata_type_layout_enter_ms metadata_type_layout_exit_ms metadata_type_player_bytes_callback_ref metadata_type_content_cpn".split(" "),Ef:["LAYOUT_TYPE_MEDIA"]})&&void 0!==e?(e=new Z0(d.Vb,this.Ta,e,d.layoutId,null),e=new l2(a,c,d,this.Ua,this.Je,this.Fd,this.Oe,this.Ga,e,this.Ta,this.Be,this.j,this.Ib,this.Ha)):
e=null;if(e)return e;a:{var f=vY(d.Ea,"metadata_type_sub_layouts"),h=vY(d.Ea,"metadata_type_ad_placement_config");if(X0(d,{ue:["metadata_type_layout_enter_ms","metadata_type_drift_recovery_ms","metadata_type_layout_exit_ms"],Ef:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})&&void 0!==f&&void 0!==h){e=[];f=g.r(f);for(var l=f.next();!l.done;l=f.next()){l=l.value;var m=vY(l.Ea,"metadata_type_media_sub_layout_index");if(!X0(l,{ue:"metadata_type_video_length_seconds metadata_type_player_vars metadata_type_layout_enter_ms metadata_type_layout_exit_ms metadata_type_player_bytes_callback_ref metadata_type_content_cpn".split(" "),
Ef:["LAYOUT_TYPE_MEDIA"]})||void 0===m){a=null;break a}m=new Z0(l.Vb,this.Ta,h,l.layoutId,m);e.push(new tWa(b,c,l,this.Je,m,this.Ga,this.Fd,this.Ib,this.Be,this.Ha,this.Ta,this.Ua))}b=new Z0(d.Vb,this.Ta,h,d.layoutId);a=new g2(a,c,d,this.Ua,this.Je,this.Oe,this.Ga,b,this.Ta,this.j,e)}else a=null}if(a)return a}else if(a=NVa(a,b,c,d,this.mf,this.u,this.Ta,this.Ib,this.Be,this.xe,this.Ua,this.Ga,this.Yb,this.Sd,this.md,this.lf,this.Mb,this.wf,this.Ha))return a;throw new WZ("Unsupported layout with type: "+
d.layoutType+" and client metadata: "+wY(d.Ea)+" in PlayerBytesLayoutRenderingAdapterFactory.");};g.v(n2,g.J);n2.prototype.Ak=function(a,b,c,d){if(this.Ob.has(b.triggerId))throw new zA("Tried to register duplicate trigger for slot.");if(!(b instanceof K_))throw new zA("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CloseRequestedTriggerAdapter");this.Ob.set(b.triggerId,new M1(a,b,c,d))};
n2.prototype.Ik=function(a){this.Ob.delete(a.triggerId)};g.v(p2,g.J);
p2.prototype.Ak=function(a,b,c,d){if(this.u.has(b.triggerId)||this.B.has(b.triggerId))throw new zA("Tried to re-register the trigger.");a=new M1(a,b,c,d);if(a.trigger instanceof OUa)this.u.set(a.trigger.triggerId,a);else if(a.trigger instanceof A_)this.B.set(a.trigger.triggerId,a);else throw new zA("Incorrect TriggerType: Tried to register trigger of type "+a.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.u.has(a.trigger.triggerId)&&a.slot.slotId===this.j&&c_(this.C(),[a])};
p2.prototype.Ik=function(a){this.u.delete(a.triggerId);this.B.delete(a.triggerId)};
p2.prototype.lR=function(a){a=a.slotId;if(this.j!==a){var b=[];null!=this.j&&b.push.apply(b,g.t(yWa(this.B,this.j)));null!=a&&b.push.apply(b,g.t(yWa(this.u,a)));this.j=a;b.length&&c_(this.C(),b)}};g.k=zWa.prototype;g.k.ov=function(a,b,c,d,e,f,h){return this.G.ov(a,b,c,d,e,f,h)};
g.k.Rr=function(a,b){this.G.Rr(a,b)};
g.k.lx=function(a,b,c){this.G.lx(a,b,c)};
g.k.Fq=function(a){this.G.Fq(a)};
g.k.oz=function(a,b,c,d,e,f,h){this.G.oz(a,b,c,d,e,f,h)};
g.k.Gl=function(){return this.G.Gl()};g.v(AWa,EI);g.v(BWa,h1);g.k=BWa.prototype;g.k.Eg=function(a,b){j1("image-companion",a,this.J.get().Ej,this.Ta.get(),this.C,this.D,this.fd(),this.Db(),b)};
g.k.startRendering=function(a){i1(this.I,this.fd(),this.Db(),this.callback,"metadata_type_image_companion_ad_renderer",function(b,c,d,e,f){return new AWa(b,c,d,e,f)},this.j);
h1.prototype.startRendering.call(this,a)};
g.k.Rc=function(a,b){b.layoutId===this.layout.layoutId?b1(this.I,"impression"):this.D===b.layoutId&&(null===this.C?this.C=this.Ta.get().Ii():cA("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.pd=function(){};
g.k.Xh=function(){};
g.k.Bj=function(){};
g.k.Aj=function(){};
g.k.cg=function(){};
g.k.dg=function(){};
g.k.vk=function(){};
g.k.wk=function(){};
g.k.xj=function(){};
g.k.yj=function(){};
g.k.Ti=function(){};
g.k.ra=function(){this.mf().Rd.delete(this);h1.prototype.ra.call(this)};g.v(DWa,EI);g.v(EWa,h1);g.k=EWa.prototype;g.k.Eg=function(a,b){j1("shopping-companion",a,this.J.get().Ej,this.Ta.get(),this.C,this.D,this.fd(),this.Db(),b)};
g.k.startRendering=function(a){i1(this.I,this.fd(),this.Db(),this.callback,"metadata_type_shopping_companion_carousel_renderer",function(b,c,d,e,f){return new DWa(b,c,d,e,f)},this.j);
h1.prototype.startRendering.call(this,a)};
g.k.Rc=function(a,b){b.layoutId===this.layout.layoutId?b1(this.I,"impression"):this.D===b.layoutId&&(null===this.C?this.C=this.Ta.get().Ii():cA("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.pd=function(){};
g.k.Xh=function(){};
g.k.Bj=function(){};
g.k.Aj=function(){};
g.k.cg=function(){};
g.k.dg=function(){};
g.k.vk=function(){};
g.k.wk=function(){};
g.k.xj=function(){};
g.k.yj=function(){};
g.k.Ti=function(){};
g.k.ra=function(){this.mf().Rd.delete(this);h1.prototype.ra.call(this)};g.v(GWa,EI);g.v(HWa,h1);g.k=HWa.prototype;g.k.Eg=function(a,b){j1("ads-engagement-panel",a,this.J.get().Ej,this.Ta.get(),this.C,this.D,this.fd(),this.Db(),b)};
g.k.startRendering=function(a){i1(this.I,this.fd(),this.Db(),this.callback,"metadata_type_ads_engagement_panel_renderer",function(b,c,d,e,f){return new GWa(b,c,d,e,f)},this.j);
h1.prototype.startRendering.call(this,a)};
g.k.Rc=function(a,b){b.layoutId===this.layout.layoutId?b1(this.I,"impression"):this.D===b.layoutId&&(null===this.C?this.C=this.Ta.get().Ii():cA("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.pd=function(){};
g.k.Xh=function(){};
g.k.Bj=function(){};
g.k.Aj=function(){};
g.k.cg=function(){};
g.k.dg=function(){};
g.k.vk=function(){};
g.k.wk=function(){};
g.k.xj=function(){};
g.k.yj=function(){};
g.k.Ti=function(){};
g.k.ra=function(){this.mf().Rd.delete(this);h1.prototype.ra.call(this)};JWa.prototype.Xe=function(a,b,c,d){if(X0(d,IWa()))return new HWa(a,c,d,this.jc,this.Ta,this.mf,this.Ib,this.j);if(X0(d,AVa()))return new k1(a,c,d,this.jc,this.Ta,this.mf,this.Ib,this.j);if(X0(d,CWa()))return new BWa(a,c,d,this.jc,this.Ta,this.mf,this.Ib,this.j);if(X0(d,FWa()))return new EWa(a,c,d,this.jc,this.Ta,this.mf,this.Ib,this.j);throw new WZ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+wY(d.Ea)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};g.v(KWa,EI);g.v(q2,h1);q2.prototype.init=function(){h1.prototype.init.call(this);var a=vY(this.layout.Ea,"metadata_type_player_underlay_renderer");this.j.push(new KWa(a.instreamAdPlayerUnderlayRenderer,this.layout.layoutId,{adsClientData:this.layout.Ec}))};
q2.prototype.Eg=function(){};
q2.prototype.startRendering=function(a){h1.prototype.startRendering.call(this,a);this.callback.Rc(this.slot,a)};
q2.prototype.ra=function(){h1.prototype.ra.call(this)};LWa.prototype.Xe=function(a,b,c,d){b=["metadata_type_player_underlay_renderer"];for(var e=g.r($0()),f=e.next();!f.done;f=e.next())b.push(f.value);if(X0(d,{ue:b,Ef:["LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON"]}))return new q2(a,c,d,this.jc);throw new WZ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+wY(d.Ea)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.v(MWa,EI);g.v(r2,h1);r2.prototype.startRendering=function(a){var b=a1(this.C),c={adsClientData:this.layout.Ec};this.j.push(new MWa(vY(this.layout.Ea,"metadata_type_valid_survey_text_interstitial_renderer"),b,this.Db().layoutId,c));h1.prototype.startRendering.call(this,a);this.callback.Rc(this.slot,a)};
r2.prototype.Eg=function(a,b){b!==this.layout.layoutId||"survey-interstitial"!==a&&"button"!==a||((a=vY(this.layout.Ea,"metadata_type_player_bytes_layout_controls_callback_ref").current)?a.Zz(this.slot,this.layout):cA("Tried to skip SurveyInterstitial but PlayerBytes callback is null"))};
r2.prototype.ra=function(){h1.prototype.ra.call(this)};var NWa=new g.Kg(320,63);g.v(QWa,EI);g.v(u2,h1);g.k=u2.prototype;g.k.Ri=function(){};
g.k.zj=function(){};
g.k.onFullscreenToggled=function(){};
g.k.Zg=function(a){a&&o2(this.C,this.layout)};
g.k.vj=function(a){var b=t2(this.layout);if(this.J=OWa(a,lVa(this.Ga.get())))b.onErrorCommand&&this.Mb.get().executeCommand(b.onErrorCommand,this.layout.layoutId),o2(this.C,this.layout)};
g.k.onVolumeChange=function(){};
g.k.Rv=function(){return this.Db().layoutId};
g.k.KH=function(){return this.J};
g.k.Eg=function(a){this.D.Eg(a);"in_video_overlay_close_button"===a&&o2(this.C,this.layout)};
g.k.QC=function(a){"invideo-overlay"===a&&o2(this.C,this.layout)};
g.k.zq=function(){this.D.zq()};
g.k.startRendering=function(a){h1.prototype.startRendering.call(this,a);this.callback.Rc(this.slot,a);this.I.fv=this};
g.k.eg=function(a,b){h1.prototype.eg.call(this,a,b);RXa(this.I,this)};
g.k.init=function(){h1.prototype.init.call(this);H0(this.Ta.get(),this);this.Ga.get().addListener(this);this.j.push(new QWa(t2(this.layout),a1(this.S),this.layout.layoutId,{adsClientData:this.layout.Ec}))};
g.k.release=function(){h1.prototype.release.call(this);this.Ga.get().removeListener(this);I0(this.Ta.get(),this)};
g.k.qk=function(){};g.v(v2,h1);g.k=v2.prototype;g.k.init=function(){h1.prototype.init.call(this);H0(this.Ta.get(),this);this.Ga.get().addListener(this);this.j.push(new QWa(t2(this.layout),a1(this.Z),this.layout.layoutId,{adsClientData:this.layout.Ec}))};
g.k.zq=function(){this.D.zq()};
g.k.startRendering=function(a){h1.prototype.startRendering.call(this,a);this.callback.Rc(this.slot,a);this.I.fv=this};
g.k.eg=function(a,b){h1.prototype.eg.call(this,a,b);RXa(this.I,this)};
g.k.Eg=function(a){this.D.Eg(a);"in_video_overlay_close_button"===a&&o2(this.C,this.layout)};
g.k.kI=function(a){if("invideo-overlay"===a){a=XWa(this.S,this.layout);a=g.r(a);for(var b=a.next();!b.done;b=a.next())b.value.stop()}};
g.k.QC=function(a){"invideo-overlay"===a&&o2(this.C,this.layout)};
g.k.jI=function(a){if("invideo-overlay"===a){a=XWa(this.S,this.layout);a=g.r(a);for(var b=a.next();!b.done;b=a.next())b.value.start()}};
g.k.Ri=function(){};
g.k.zj=function(){};
g.k.onFullscreenToggled=function(){};
g.k.Zg=function(a){a&&o2(this.C,this.layout)};
g.k.vj=function(a){var b=t2(this.layout),c=b.contentSupportedRenderer.imageOverlayAdContentRenderer,d=lVa(this.Ga.get());a:{c=c.image;c=void 0===c?null:c;if(null!=c&&(c=c.thumbnail,null!=c&&null!=c.thumbnails&&!g.Vb(c.thumbnails)&&null!=c.thumbnails[0].width&&null!=c.thumbnails[0].height)){c=new g.Kg(c.thumbnails[0].width||0,c.thumbnails[0].height||0);break a}c=new g.Kg(0,0)}if(this.J=OWa(a,d,c))b.onErrorCommand&&this.Mb.get().executeCommand(b.onErrorCommand,this.layout.layoutId),o2(this.C,this.layout)};
g.k.onVolumeChange=function(){};
g.k.Rv=function(){return this.Db().layoutId};
g.k.KH=function(){return this.J};
g.k.release=function(){h1.prototype.release.call(this);this.Ga.get().removeListener(this);I0(this.Ta.get(),this)};
g.k.qk=function(){};w2.prototype.Eg=function(a){"ad-info-hover-text-button"===a&&((this.j=this.Ga.get().Eo(1))||this.Ga.get().pauseVideo())};
w2.prototype.zq=function(){this.j||this.Ga.get().resumeVideo(1)};g.v(TWa,h1);g.k=TWa.prototype;g.k.startRendering=function(a){var b=this;g1(this.u,a,function(){b.j.push(new CJ(vY(b.layout.Ea,"metadata_type_valid_ad_message_renderer"),a.layoutId,a.Ec));b.CE();b.callback.Rc(b.slot,a);g.V(y0(b.Ga.get(),1),512)&&b.callback.og(b.fd(),b.Db(),new WZ("player is stuck during adNotify"))})};
g.k.Ri=function(){};
g.k.zj=function(a){if(a.state.isError()){var b;this.callback.og(this.fd(),this.Db(),new WZ("A player error happened during adNotify",{playerErrorCode:null==(b=a.state.getData())?void 0:b.errorCode}))}};
g.k.onFullscreenToggled=function(){};
g.k.Zg=function(){};
g.k.vj=function(){};
g.k.onVolumeChange=function(){};
g.k.qk=function(){};
g.k.Eg=function(){};g.v(UWa,EI);g.v(VWa,h1);g.k=VWa.prototype;g.k.init=function(){h1.prototype.init.call(this);this.Ga.get().addListener(this)};
g.k.startRendering=function(a){var b=vY(this.layout.Ea,"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD");this.j.push(new UWa(b,this.layout.layoutId,{adsClientData:this.layout.Ec}));h1.prototype.startRendering.call(this,a);this.callback.Rc(this.slot,a)};
g.k.Rc=function(){};
g.k.Eg=function(a,b){b!==this.layout.layoutId||"ad-info-icon-button"!==a&&"ad-info-dialog-close-button"!==a||((b=vY(this.layout.Ea,"metadata_type_player_bytes_layout_controls_callback_ref").current)?"ad-info-icon-button"===a?b.vt(this.slot,this.layout):"ad-info-dialog-close-button"===a&&b.Kt(this.slot,this.layout):cA("Tried to use LayoutControlsCallback on Survey but it is null",this.slot,this.layout,{ComponentType:a}))};
g.k.vj=function(a){450>a.width&&o2(this.C,this.layout)};
g.k.onVolumeChange=function(){};
g.k.Ri=function(){};
g.k.onFullscreenToggled=function(){};
g.k.Zg=function(){};
g.k.zj=function(){};
g.k.qk=function(){};
g.k.ra=function(){h1.prototype.ra.call(this)};
g.k.release=function(){h1.prototype.release.call(this);this.Ga.get().removeListener(this)};WWa.prototype.Xe=function(a,b,c,d){if(b=n1(a,c,d,this.jc,this.Ga,this.Ta,this.C,this.j))return b;if(X0(d,SWa()))return new v2(c,d,this.Ta,this.Ib,this.jc,a,this.u,this.B,this.Ga,this.Mb,this.Ha,this.j,new w2(this.Ga));if(X0(d,RWa()))return new u2(c,d,this.Ta,this.Ib,this.jc,a,this.u,this.Ga,this.Mb,this.Ha,this.j,new w2(this.Ga));if(X0(d,{ue:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"],Ef:["LAYOUT_TYPE_SURVEY"]}))return new VWa(c,d,a,this.jc,this.u,this.Ga,this.Ha);if(X0(d,{ue:["metadata_type_player_bytes_layout_controls_callback_ref",
"metadata_type_valid_survey_text_interstitial_renderer","metadata_type_ad_placement_config"],Ef:["LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]}))return new r2(c,d,a,this.jc,this.Ta);if(X0(d,{ue:["metadata_type_valid_ad_message_renderer"],Ef:["LAYOUT_TYPE_TEXT_BANNER_OVERLAY"]}))return new TWa(c,d,a,this.jc,this.Ga,this.Ha);throw new WZ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+wY(d.Ea)+" in WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");};g.v(x2,g.J);g.k=x2.prototype;g.k.Ak=function(a,b,c,d){if(this.Ob.has(b.triggerId))throw new zA("Tried to register duplicate trigger for slot.");if(!(b instanceof F_))throw new zA("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Ob.set(b.triggerId,new M1(a,b,c,d));a=this.j.has(b.If)?this.j.get(b.If):new Set;a.add(b);this.j.set(b.If,a)};
g.k.Ik=function(a){this.Ob.delete(a.triggerId);if(!(a instanceof F_))throw new zA("Incorrect TriggerType: Tried to unregister trigger of type "+a.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var b=this.u.get(a.triggerId);b&&(b.dispose(),this.u.delete(a.triggerId));if(b=this.j.get(a.If))b.delete(a),0===b.size&&this.j.delete(a.If)};
g.k.Xh=function(){};
g.k.Bj=function(){};
g.k.Aj=function(){};
g.k.cg=function(){};
g.k.dg=function(){};
g.k.vk=function(){};
g.k.wk=function(){};
g.k.xj=function(){};
g.k.yj=function(){};
g.k.Ti=function(){};
g.k.Rc=function(a,b){var c=this;if(this.j.has(b.layoutId)){b=this.j.get(b.layoutId);a={};b=g.r(b);for(var d=b.next();!d.done;a={zx:a.zx},d=b.next())a.zx=d.value,d=new g.Xn(function(e){return function(){var f=c.Ob.get(e.zx.triggerId);c_(c.B(),[f])}}(a),a.zx.durationMs),d.start(),this.u.set(a.zx.triggerId,d)}};
g.k.pd=function(){};g.v(YWa,g.J);ZWa.prototype.Xe=function(a,b,c,d){if(b=n1(a,c,d,this.jc,this.Ga,this.Ta,this.C,this.j))return b;if(X0(d,SWa()))return new v2(c,d,this.Ta,this.Ib,this.jc,a,this.u,this.B,this.Ga,this.Mb,this.Ha,this.j,new w2(this.Ga));if(X0(d,RWa()))return new u2(c,d,this.Ta,this.Ib,this.jc,a,this.u,this.Ga,this.Mb,this.Ha,this.j,new w2(this.Ga));throw new WZ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+wY(d.Ea)+" in WebEmbeddedInPlayerLayoutRenderingAdapterFactory.");};g.v($Wa,g.J);g.v(aXa,g.J);g.v(bXa,g.J);g.v(z2,m1);z2.prototype.startRendering=function(a){m1.prototype.startRendering.call(this,a);vY(this.layout.Ea,"metadata_ad_video_is_listed")&&(a=vY(this.layout.Ea,"metadata_type_ad_info_ad_metadata"),this.Yk.get().G.Pa("onAdMetadataAvailable",a))};dXa.prototype.Xe=function(a,b,c,d){if(X0(d,cXa()))return new z2(a,c,d,this.jc,this.Ga,this.Ta,this.u,this.Yk,this.j);throw new WZ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+wY(d.Ea)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};g.v(eXa,g.J);fXa.prototype.Xe=function(a,b,c,d){if(X0(d,cXa()))return new z2(a,c,d,this.jc,this.Ga,this.Ta,this.u,this.Yk,this.j);if(a=n1(a,c,d,this.jc,this.Ga,this.Ta,this.u,this.j))return a;throw new WZ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+wY(d.Ea)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};g.v(gXa,g.J);g.v(iXa,g.J);iXa.prototype.B=function(){return this.u};B2.prototype.qC=function(a){this.tm.qC(a)};
B2.prototype.WB=function(){try{this.tm.WB()}catch(a){}};
B2.prototype.Jp=function(){this.j().Jp()};
B2.prototype.Em=function(){this.j().Em()};g.v(jXa,xL);
jXa.prototype.C=function(a){var b=a.content;if("shopping-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.Pa("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,shoppingCompanionCarouselRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.u,interactionLoggingClientData:b.j});break;case 3:this.j.Pa("updateKevlarOrC3Companion",{})}else if("action-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);
this.j.Pa("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,actionCompanionAdRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.u,interactionLoggingClientData:b.j});break;case 3:b.renderer&&(b=this.j.getVideoData(1),this.j.Pa("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.j.Pa("updateKevlarOrC3Companion",{})}else if("image-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.Pa("updateKevlarOrC3Companion",
{contentVideoId:a&&a.videoId,imageCompanionAdRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.u,interactionLoggingClientData:b.j});break;case 3:b=this.j.getVideoData(1),this.j.Pa("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.j.Pa("updateKevlarOrC3Companion",{})}else if("ads-engagement-panel"===b.componentType)switch(b=b.renderer,a.actionType){case 1:case 2:this.j.Pa("updateEngagementPanelAction",b.addAction);this.j.Pa("changeEngagementPanelVisibility",
b.expandAction);break;case 3:this.j.Pa("changeEngagementPanelVisibility",b.hideAction),this.j.Pa("updateEngagementPanelAction",b.removeAction)}};g.v(kXa,FL);g.k=kXa.prototype;g.k.init=function(a,b,c){FL.prototype.init.call(this,a,b,c);g.zl(this.C,"stroke-dasharray","0 "+this.B);this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){HL(this);FL.prototype.hide.call(this)};
g.k.show=function(){GL(this);FL.prototype.show.call(this)};
g.k.Ct=function(){this.hide()};
g.k.Jq=function(){if(this.u){var a=this.u.getProgressState();null!=a&&null!=a.current&&g.zl(this.C,"stroke-dasharray",a.current/a.seekableEnd*this.B+" "+this.B)}};g.v(lXa,YK);g.k=lXa.prototype;
g.k.init=function(a,b,c){YK.prototype.init.call(this,a,b,c);if(b.image&&b.image.thumbnail)if(b.headline)if(b.description)if(b.backgroundImage&&b.backgroundImage.thumbnail)if(b.actionButton&&b.actionButton.buttonRenderer)if(a=b.durationMilliseconds||0,"number"!==typeof a||0>=a)g.oz(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+a));else if(b.navigationEndpoint){var d=this.api.getVideoData(2);if(null!=d){var e=b.image.thumbnail.thumbnails;null!=
e&&0<e.length&&g.cb(g.Ug(e[0].url))&&(e[0].url=d.profilePicture,g.cb(g.Ug(d.profilePicture))&&vLa("VideoPlayer",239976093,"Expected non-empty profile picture."));e=b.backgroundImage.thumbnail.thumbnails;null!=e&&0<e.length&&g.cb(g.Ug(e[0].url))&&(e[0].url=d.Mf());e=b.headline;null!=e&&g.cb(g.Ug(e.text))&&(e.text=d.author)}this.api.V().K("web_rounded_thumbnails")&&this.api.V().K("web_modern_ads")&&this.ea.classList.add("ytp-ad-action-interstitial-image-container-circular");this.D.init(DI("ad-image"),
b.image,c);this.S.init(DI("ad-text"),b.headline,c);this.I.init(DI("ad-text"),b.description,c);this.Ba.init(DI("ad-image"),b.backgroundImage,c);d=["ytp-ad-action-interstitial-action-button"];(this.api.V().K("web_modern_buttons")&&this.api.V().K("web_modern_ads")||this.api.V().K("mweb_wil_modern_buttons"))&&d.push("ytp-ad-action-interstitial-action-button-rounded");this.actionButton=new nL(this.api,this.ib,this.layoutId,this.j,this.bb,d);g.M(this,this.actionButton);this.actionButton.Ca(this.Qa);this.actionButton.init(DI("button"),
b.actionButton.buttonRenderer,c);this.navigationEndpoint=b.navigationEndpoint;this.api.V().isMobile||(this.C.T(this.ea,"click",this.zH,this),this.C.T(this.La,"click",this.zH,this),this.C.T(this.Ia,"click",this.zH,this));this.u=this.UK?new UL(this.api,a):new VL(a);g.M(this,this.u);b.skipButton?(a=b.skipButton.skipButtonRenderer)&&this.u&&(this.skipButton=new PL(this.api,this.ib,this.layoutId,this.j,this.bb,this.u,this.AE),g.M(this,this.skipButton),this.skipButton.Ca(this.element),this.skipButton.init(DI("skip-button"),
a,c)):b.nonskippableOverlayRenderer&&(a=b.nonskippableOverlayRenderer.adPreviewRenderer)&&this.u&&(this.B=new KL(this.api,this.ib,this.layoutId,this.j,this.bb,this.u,!1),g.M(this,this.B),this.B.Ca(this.element),this.B.init(DI("ad-preview"),a,c));b.countdownRenderer&&(b=b.countdownRenderer,b.timedPieCountdownRenderer&&this.u&&(c=new kXa(this.api,this.ib,this.layoutId,this.j,this.bb,this.u),g.M(this,c),c.Ca(this.element),c.init(DI("timed-pie-countdown"),b.timedPieCountdownRenderer,this.macros)));this.show();
this.element.focus()}else g.oz(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.oz(Error("AdActionInterstitialRenderer has no button."));else g.oz(Error("AdActionInterstitialRenderer has no background AdImage."));else g.oz(Error("AdActionInterstitialRenderer has no description AdText."));else g.oz(Error("AdActionInterstitialRenderer has no headline AdText."));else g.oz(Error("AdActionInterstitialRenderer has no image."))};
g.k.clear=function(){g.$y(this.C);this.hide()};
g.k.show=function(){mXa(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.B&&this.B.show();YK.prototype.show.call(this)};
g.k.hide=function(){mXa(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.B&&this.B.hide();YK.prototype.hide.call(this)};
g.k.zH=function(){this.navigationEndpoint&&(this.api.V().K("enable_macro_substitution_on_html5")?this.layoutId?this.bb.executeCommand(this.navigationEndpoint,this.layoutId):g.oz(Error("Missing layoutId for ad action interstitial.")):zL(this.bb,this.navigationEndpoint,this.macros))};var rXa={iconType:"CLOSE"},D2=new g.Kg(320,63);g.v(qXa,YK);g.k=qXa.prototype;
g.k.init=function(a,b,c){YK.prototype.init.call(this,a,b,c);this.D=b;this.S=g.bc(this.D.onClickCommands||[]);this.Ba=this.D.onErrorCommand||null;if(a=this.D.contentSupportedRenderer)a=this.D.contentSupportedRenderer,b=this.D.adInfoRenderer||null,a.textOverlayAdContentRenderer?(this.I=g.ch("ytp-ad-overlay-ad-info-button-container",this.C.element),tXa(this,b),a=vXa(this,a.textOverlayAdContentRenderer)):a.enhancedTextOverlayAdContentRenderer?(this.I=g.ch("ytp-ad-overlay-ad-info-button-container",this.B.element),
tXa(this,b),a=wXa(this,a.enhancedTextOverlayAdContentRenderer)):a.imageOverlayAdContentRenderer?(this.I=g.ch("ytp-ad-overlay-ad-info-button-container",this.u.element),tXa(this,b),a=xXa(this,a.imageOverlayAdContentRenderer)):(g.oz(Error("InvideoOverlayAdRenderer content could not be initialized.")),a=!1);a&&(this.show(),yXa(this,!0))};
g.k.clear=function(){yXa(this,!1);this.La.reset();this.ea=0;this.C.hide();this.Xa(this.C.element,!1);this.B.hide();this.Xa(this.B.element,!1);this.u.hide();this.Xa(this.u.element,!1);this.hide();this.dispose()};
g.k.W2=function(){this.Qa&&(this.api.V().K("enable_macro_substitution_on_html5")?this.layoutId?this.bb.executeCommand(this.Qa,this.layoutId):g.oz(Error("Missing layoutId for invideo_overlay_ad.")):zL(this.bb,this.Qa,this.macros));this.api.pauseVideo()};
g.k.rk=function(){a:{if(this.D&&this.D.closeButton&&this.D.closeButton.buttonRenderer){var a=this.D.closeButton.buttonRenderer;if(a.serviceEndpoint){a=[a.serviceEndpoint];break a}}a=[]}a=g.r(a);for(var b=a.next();!b.done;b=a.next())b=b.value,this.api.V().K("enable_macro_substitution_on_html5")?this.layoutId?this.bb.executeCommand(b,this.layoutId):g.oz(Error("Missing layoutId for invideo_overlay_ad.")):zL(this.bb,b,this.macros);this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)};
g.k.h0=function(){this.Wa||2!==this.api.getPlayerState(1)||this.api.playVideo()};
g.k.NJ=function(){this.Wa||2!==this.api.getPlayerState(1)||this.api.playVideo();this.api.NJ("invideo-overlay")};
g.k.j0=function(a){a.target===this.I&&g.ch("ytp-ad-button",this.kb.element).click()};g.v(zXa,FL);g.k=zXa.prototype;g.k.init=function(a,b,c){FL.prototype.init.call(this,a,b,c);a=b.durationMs;this.C=null==a||0===a?0:a+1E3*this.u.getProgressState().current;if(b.text)var d=b.text.templatedAdText;else b.staticMessage&&(d=b.staticMessage);this.messageText.init(DI("ad-text"),d,c);this.messageText.Ca(this.B.element);this.I.show(100);this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){AXa(this,!1);FL.prototype.hide.call(this);this.B.hide();this.messageText.hide();HL(this)};
g.k.show=function(){AXa(this,!0);FL.prototype.show.call(this);GL(this);this.B.show();this.messageText.show()};
g.k.Ct=function(){this.hide()};
g.k.Jq=function(){if(null!=this.u){var a=this.u.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.S&&a>=this.C?(this.I.hide(),this.S=!0):this.messageText&&this.messageText.isTemplated()&&(a=Math.max(0,Math.ceil((this.C-a)/1E3)),a!==this.ea&&(EL(this.messageText,{TIME_REMAINING:String(a)}),this.ea=a)))}};g.v(BXa,YK);g.k=BXa.prototype;
g.k.init=function(a,b,c){YK.prototype.init.call(this,a,b,{});b.image&&b.image.thumbnail?b.headline?b.description?b.actionButton&&b.actionButton.buttonRenderer?(this.C.init(DI("ad-image"),b.image,c),this.B.init(DI("ad-text"),b.headline,c),this.D.init(DI("ad-text"),b.description,c),a=["ytp-ad-underlay-action-button"],this.api.V().K("use_blue_buttons_for_desktop_player_underlay")&&a.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new nL(this.api,this.ib,this.layoutId,this.j,this.bb,a),b.backgroundColor&&
g.zl(this.element,"background-color",g.gM(b.backgroundColor)),g.M(this,this.actionButton),this.actionButton.Ca(this.I),this.actionButton.init(DI("button"),b.actionButton.buttonRenderer,c),b=g.RE(this.api.V().experiments,"player_underlay_video_width_fraction"),this.api.V().K("place_shrunken_video_on_left_of_player")?(c=this.u,g.ho(c,"ytp-ad-underlay-left-container"),g.fo(c,"ytp-ad-underlay-right-container"),g.zl(this.u,"margin-left",Math.round(100*(b+.02))+"%")):(c=this.u,g.ho(c,"ytp-ad-underlay-right-container"),
g.fo(c,"ytp-ad-underlay-left-container")),g.zl(this.u,"width",Math.round(100*(1-b-.04))+"%"),this.api.fD()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.eM.bind(this)),this.api.addEventListener("resize",this.vP.bind(this))):g.oz(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.oz(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.oz(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.oz(Error("InstreamAdPlayerUnderlayRenderer has no image."))};
g.k.show=function(){CXa(!0);this.actionButton&&this.actionButton.show();YK.prototype.show.call(this)};
g.k.hide=function(){CXa(!1);this.actionButton&&this.actionButton.hide();YK.prototype.hide.call(this)};
g.k.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.eM.bind(this));this.api.removeEventListener("resize",this.vP.bind(this));this.hide()};
g.k.onClick=function(a){YK.prototype.onClick.call(this,a);this.actionButton&&g.qh(this.actionButton.element,a.target)&&this.api.pauseVideo()};
g.k.eM=function(a){"transitioning"===a?(this.u.classList.remove("ytp-ad-underlay-clickable"),this.show()):"visible"===a?this.u.classList.add("ytp-ad-underlay-clickable"):"hidden"===a&&(this.hide(),this.u.classList.remove("ytp-ad-underlay-clickable"))};
g.k.vP=function(a){1200<a.width?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):875<a.width?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-medium"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large")):(this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium"));
g.zl(this.B.element,"font-size",a.width/40+"px")};g.v(E2,YK);
E2.prototype.init=function(a,b,c){YK.prototype.init.call(this,a,b,c);b.toggledLoggingParams&&(this.toggledLoggingParams=b.toggledLoggingParams);b.answer&&b.answer.buttonRenderer?(a=new nL(this.api,this.ib,this.layoutId,this.j,this.bb,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),a.Ca(this.answer),a.init(DI("ytp-ad-survey-answer-button"),b.answer.buttonRenderer,c),a.show()):b.answer&&b.answer.toggleButtonRenderer&&(this.u=new vL(this.api,this.ib,this.layoutId,this.j,this.bb,
["ytp-ad-survey-answer-toggle-button"]),this.u.Ca(this.answer),g.M(this,this.u),this.u.init(DI("survey-answer-button"),b.answer.toggleButtonRenderer,c));this.show()};
E2.prototype.tE=function(a){this.api.V().K("enable_macro_substitution_on_html5")?this.layoutId?(g.pz(Error("Non-empty macros passed by Answer to the runCommand method.")),p_(this.bb,a,this.layoutId,this.macros)):g.oz(new g.Pv("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType})):zL(this.bb,a,this.macros)};
E2.prototype.clear=function(){this.hide()};g.v(DXa,YK);DXa.prototype.init=function(a,b,c){YK.prototype.init.call(this,a,b,c);b.answer&&b.answer.toggleButtonRenderer&&(this.button=new vL(this.api,this.ib,this.layoutId,this.j,this.bb,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.Ca(this.u),this.button.init(DI("survey-none-of-the-above-button"),b.answer.toggleButtonRenderer,c));this.show()};g.v(F2,nL);F2.prototype.init=function(a,b,c){nL.prototype.init.call(this,a,b,c);a=!1;b.text&&(b=g.xA(b.text),a=!g.cb(b));a||g.pz(Error("No submit text was present in the renderer."))};
F2.prototype.onClick=function(a){this.ma("l");nL.prototype.onClick.call(this,a)};g.v(G2,YK);
G2.prototype.init=function(a,b,c){YK.prototype.init.call(this,a,b,c);if(a=b.skipOrPreviewRenderer)a.skipAdRenderer?(a=a.skipAdRenderer,c=new QL(this.api,this.ib,this.layoutId,this.j,this.bb,this.C,!0),c.Ca(this.I),c.init(DI("skip-button"),a,this.macros),g.M(this,c),this.u=c):a.adPreviewRenderer&&(a=a.adPreviewRenderer,c=new KL(this.api,this.ib,this.layoutId,this.j,this.bb,this.C,!1),c.Ca(this.I),c.init(DI("ad-preview"),a,this.macros),LL(c),g.M(this,c),this.u=c);null==this.u&&g.oz(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(b)));
b.submitButton&&(a=b.submitButton,a.buttonRenderer&&(a=a.buttonRenderer,c=new F2(this.api,this.ib,this.layoutId,this.j,this.bb),c.Ca(this.submitButton),c.init(DI("survey-submit"),a,this.macros),g.M(this,c),this.B=c));if(a=b.adBadgeRenderer)a=a.simpleAdBadgeRenderer,c=new SL(this.api,this.ib,this.layoutId,this.j,this.bb,!0),c.Ca(this.D),c.init(DI("simple-ad-badge"),a,this.macros),g.M(this,c);if(a=b.adDurationRemaining)a=a.adDurationRemainingRenderer,c=new YL(this.api,this.ib,this.layoutId,this.j,this.bb,
this.C,void 0),c.Ca(this.D),c.init(DI("ad-duration-remaining"),a,this.macros),g.M(this,c);(b=b.adInfoRenderer)&&b.adHoverTextButtonRenderer&&(a=new CL(this.api,this.ib,this.layoutId,this.j,this.bb,this.element),g.M(this,a),a.Ca(this.D),a.init(DI("ad-info-hover-text-button"),b.adHoverTextButtonRenderer,this.macros));this.show()};
G2.prototype.clear=function(){this.hide()};g.v(H2,YK);H2.prototype.init=function(a,b,c){YK.prototype.init.call(this,a,b,c);GXa(this)};
H2.prototype.show=function(){this.C=g.Ra();YK.prototype.show.call(this)};
H2.prototype.eS=function(){};g.v(HXa,H2);g.k=HXa.prototype;g.k.init=function(a,b,c){var d=this;H2.prototype.init.call(this,a,b,c);b.questionText&&g.rh(this.questionText,g.xA(b.questionText));b.answers&&b.answers.forEach(function(e){e.instreamSurveyAdAnswerRenderer&&EXa(d,e.instreamSurveyAdAnswerRenderer,c)});
this.I=new Set(this.B.map(function(e){return e.u.u}));
(a=b.noneOfTheAbove)&&(a=a.instreamSurveyAdAnswerNoneOfTheAboveRenderer)&&IXa(this,a,c);b.surveyAdQuestionCommon&&FXa(this,b.surveyAdQuestionCommon);b.submitEndpoints&&(this.submitEndpoints=b.submitEndpoints);this.T(this.element,"change",this.onChange);this.show()};
g.k.eS=function(){JXa(this,!1);this.D.B.subscribe("l",this.U2,this)};
g.k.onChange=function(a){a.target===this.noneOfTheAbove.button.u?KXa(this):this.I.has(a.target)&&(this.noneOfTheAbove.button.toggleButton(!1),JXa(this,!0))};
g.k.U2=function(){var a=this.B.reduce(function(d,e){var f=e.toggledLoggingParams;e.u&&e.u.isToggled()&&f&&d.push(f);return d},[]).join("&"),b=this.submitEndpoints.map(function(d){if(!d.loggingUrls)return d;
d=g.Hf(d);d.loggingUrls=d.loggingUrls.map(function(e){e.baseUrl&&(e.baseUrl=xi(e.baseUrl,a));return e});
return d});
if(b){b=g.r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,this.api.V().K("enable_macro_substitution_on_html5")?this.layoutId?p_(this.bb,c,this.layoutId,this.macros):g.oz(Error("Missing layoutId for multi_select_question.")):zL(this.bb,c,this.macros)}};
g.k.clear=function(){this.api.V().K("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.v(I2,H2);I2.prototype.init=function(a,b,c){var d=this;H2.prototype.init.call(this,a,b,c);b.questionText&&g.rh(this.questionText,g.xA(b.questionText));b.answers&&b.answers.forEach(function(e){e.instreamSurveyAdAnswerRenderer&&EXa(d,e.instreamSurveyAdAnswerRenderer,c)});
b.surveyAdQuestionCommon?FXa(this,b.surveyAdQuestionCommon):g.oz(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(b)));this.show()};
I2.prototype.clear=function(){this.api.V().K("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.v(J2,YK);
J2.prototype.init=function(a,b,c){var d=this;YK.prototype.init.call(this,a,b,c);(b.questions||[]).forEach(function(e){if(e.instreamSurveyAdSingleSelectQuestionRenderer){e=e.instreamSurveyAdSingleSelectQuestionRenderer;var f=new I2(d.api,d.ib,d.layoutId,d.j,d.bb);f.Ca(d.u);f.init(DI("survey-question-single-select"),e,c);d.questions.push(f);g.M(d,f)}else e.instreamSurveyAdMultiSelectQuestionRenderer&&(e=e.instreamSurveyAdMultiSelectQuestionRenderer,f=new HXa(d.api,d.ib,d.layoutId,d.j,d.bb),f.Ca(d.u),
f.init(DI("survey-question-multi-select"),e,c),d.questions.push(f),g.M(d,f))});
this.show()};
J2.prototype.clear=function(){this.api.V().K("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())};g.v(K2,YK);
K2.prototype.init=function(a,b,c){var d=this;YK.prototype.init.call(this,a,b,c);a=b.timeoutSeconds||0;"number"!==typeof a||0>a?g.oz(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+a)):b.timeoutCommands?b.text?b.ctaButton&&b.ctaButton.buttonRenderer?b.brandImage?b.backgroundImage&&b.backgroundImage.thumbnailLandscapePortraitRenderer&&b.backgroundImage.thumbnailLandscapePortraitRenderer.landscape?(this.layoutId||g.oz(Error("Missing layoutId for survey interstitial.")),MXa(this.interstitial,
b.backgroundImage.thumbnailLandscapePortraitRenderer.landscape),MXa(this.logoImage,b.brandImage),g.rh(this.text,g.xA(b.text)),this.actionButton=new nL(this.api,this.ib,this.layoutId,this.j,this.bb,["ytp-ad-survey-interstitial-action-button"]),g.M(this,this.actionButton),this.actionButton.Ca(this.B),this.actionButton.init(DI("button"),b.ctaButton.buttonRenderer,c),this.actionButton.show(),this.u=new UL(this.api,1E3*a),this.u.subscribe("g",function(){d.transition.hide()}),g.M(this,this.u),this.T(this.element,
"click",function(e){var f=e.target===d.interstitial;
e=d.actionButton.element.contains(e.target);if(f||e)if(d.transition.hide(),f)d.api.onAdUxClicked(d.componentType,d.layoutId)}),this.transition.show(100)):g.oz(Error("SurveyTextInterstitialRenderer has no landscape background image.")):g.oz(Error("SurveyTextInterstitialRenderer has no brandImage.")):g.oz(Error("SurveyTextInterstitialRenderer has no button.")):g.oz(Error("SurveyTextInterstitialRenderer has no text.")):g.oz(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))};
K2.prototype.clear=function(){this.hide()};
K2.prototype.show=function(){NXa(!0);YK.prototype.show.call(this)};
K2.prototype.hide=function(){NXa(!1);YK.prototype.hide.call(this)};var u1a="ad-attribution-bar ad-channel-thumbnail advertiser-name ad-preview ad-title skip-button visit-advertiser".split(" ").concat(["shopping-companion","action-companion","image-companion","ads-engagement-panel"]);g.v(L2,xL);
L2.prototype.C=function(a){var b=a.id,c=a.content,d=c.componentType;if(!u1a.includes(d))switch(a.actionType){case 1:a=this.I();var e=this.api,f=this.bb,h=c.layoutId,l=c.j,m=c instanceof vJ?c.UK:!1,n=c instanceof vJ||c instanceof TL?c.AE:!1;l=void 0===l?{}:l;m=void 0===m?!1:m;n=void 0===n?!1:n;switch(d){case "invideo-overlay":a=new qXa(e,a,h,l,f);break;case "player-overlay":a=new eM(e,a,h,l,f,new XO(e),n);break;case "survey":a=new J2(e,a,h,l,f);break;case "ad-action-interstitial":a=new lXa(e,a,h,l,
f,m,n);break;case "survey-interstitial":a=new K2(e,a,h,l,f);break;case "ad-message":a=new zXa(e,a,h,l,f,new XO(e,1));break;case "player-underlay":a=new BXa(e,a,h,l,f);break;default:a=null}if(!a){g.pz(Error("No UI component returned from ComponentFactory for type: "+d));break}g.sf(this.u,b)?g.pz(Error("Ad UI component already registered: "+b)):this.u[b]=a;a.bind(c);c instanceof KWa?this.B?this.B.append(a.BK):g.oz(Error("Underlay view was not created but UnderlayRenderer was created")):this.D.append(a.BK);
break;case 2:b=OXa(this,a);if(null==b)break;b.bind(c);break;case 3:c=OXa(this,a),null!=c&&(g.Ye(c),g.sf(this.u,b)?g.Df(this.u,b):g.pz(Error("Ad UI component does not exist: "+b)))}};
L2.prototype.ra=function(){g.Ze(Object.values(this.u));this.u={};xL.prototype.ra.call(this)};g.v(PXa,g.eO);g.k=PXa.prototype;g.k.create=function(){try{QXa(this),this.load(),this.created=!0,QXa(this)}catch(a){cA(a instanceof Error?a:String(a))}};
g.k.load=function(){g.eO.prototype.load.call(this);var a=A2(this.j).wh;Rua(a.G.V().K("html5_reduce_ecatcher_errors"));try{this.player.getRootNode().classList.add("ad-created")}catch(l){cA(l instanceof Error?l:String(l))}var b=this.B(),c=this.player.getVideoData(1),d=c&&c.videoId||"",e=c&&c.getPlayerResponse()||{},f=(e&&e.adPlacements||[]).map(function(l){return l.adPlacementRenderer});
e=e.playerConfig&&e.playerConfig.daiConfig&&e.playerConfig.daiConfig.enableDai||!1;var h=c&&c.vf()||!1;a=VXa(f,a,e,h,A2(this.j).vl);f=c&&c.clientPlaybackNonce||"";c=c&&c.Or||!1;h=1E3*this.player.getDuration(1);this.ib=new OK(this,this.player,this.Er,b,A2(this.j));EEa(this.ib,a.gy);this.j.j.Aq.Si(f,h,c,a.QD,a.QD.concat(a.gy),e,d);PK(this.ib)};
g.k.destroy=function(){var a=this.player.getVideoData(1);this.j.j.Aq.Cl(a&&a.clientPlaybackNonce||"");this.unload();this.created=!1};
g.k.unload=function(){g.eO.prototype.unload.call(this);Rua(!1);try{this.player.getRootNode().classList.remove("ad-created")}catch(b){cA(b instanceof Error?b:String(b))}if(null!==this.ib){var a=this.ib;this.ib=null;a.dispose()}null!=this.u&&(a=this.u,this.u=null,a.dispose());this.Er.reset()};
g.k.Dj=function(){return!1};
g.k.VK=function(){return null===this.ib?!1:this.ib.VK()};
g.k.qn=function(a){null!==this.ib&&this.ib.qn(a)};
g.k.getAdState=function(){return this.ib?this.ib.ZC:-1};
g.k.getOptions=function(){return Object.values(t1a)};
g.k.Bg=function(a,b){b=void 0===b?{}:b;switch(a){case "replaceUrlMacros":return a=b,a.url?(b=YI(this.player),Object.assign(b,a.U4a),this.ib&&!b.AD_CPN&&(b.AD_CPN=this.ib.yC()),a=g.Qn(a.url,b)):a=null,a;case "onAboutThisAdPopupClosed":this.zq(b);break;case "executeCommand":this.executeCommand(b);break;default:return null}};
g.k.Bq=function(a){var b;return!(null==(b=this.j.j.Oe)||!b.get().Bq(a))};
g.k.zq=function(a){a.isMuted&&tEa(this.ib,A2(this.j).Oi,A2(this.j).pk,a.layoutId);this.fv&&this.fv.zq()};
g.k.executeCommand=function(a){A2(this.j).bb.executeCommand(a.command,a.layoutId)};g.dO("ad",PXa);var XXa=g.Ac&&WXa();g.v(g.M2,g.W);g.M2.prototype.onClick=function(){this.G.Pa("onExpandMiniplayer")};})(_yt_player);
