var _____WB$wombat$assign$function_____=function(name){return (globalThis._wb_wombat && globalThis._wb_wombat.local_init && globalThis._wb_wombat.local_init(name))||globalThis[name];};if(!globalThis.__WB_pmw){globalThis.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{
let window = _____WB$wombat$assign$function_____("window");
let self = _____WB$wombat$assign$function_____("self");
let document = _____WB$wombat$assign$function_____("document");
let location = _____WB$wombat$assign$function_____("location");
let top = _____WB$wombat$assign$function_____("top");
let parent = _____WB$wombat$assign$function_____("parent");
let frames = _____WB$wombat$assign$function_____("frames");
let opener = _____WB$wombat$assign$function_____("opener");
var _yt_player={};(function(g){var window=this;/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
'use strict';var ba,ea,aaa,ia,ka,la,na,ra,sa,ta,va,wa,xa,ya,za,baa,caa,Aa,Ba,daa,eaa,Da,Ea,Fa,Ga,Ha,La,Ma,gaa,haa,Va,Xa,Ya,Za,$a,ab,iaa,bb,db,jb,kb,tb,ub,wb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Jb,Ib,Kb,laa,maa,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,naa,Vb,bc,oaa,jc,kc,paa,pc,mc,qaa,nc,raa,saa,taa,wc,Ac,Bc,Cc,Mc,Oc,Lc,Hc,Rc,Qc,Tc,Vc,Wc,Xc,$c,dd,ed,fd,kd,ld,od,pd,yaa,rd,td,ud,zaa,xd,yd,zd,Bd,Hd,Id,Jd,Kd,Nd,Od,Pd,Qd,Rd,Sd,Ud,Caa,Vd,Xd,Wd,Yd,Daa,$d,ae,Eaa,ce,de,ee,he,je,me,Faa,Gaa,ne,fe,ge,Haa,Iaa,Jaa,Kaa,pe,Laa,Maa,Naa,Oaa,ke,
le,qe,Ee,Aaa,Baa,Fe,Ge,He,Paa,Je,Qaa,Ke,Raa,Le,Saa,Oe,Pe,Qe,Re,Taa,We,Ye,$e,af,cf,Vaa,df,jf,lf,mf,nf,of,qf,sf,tf,wf,Cf,Df,Ef,Ff,Jf,Lf,Waa,Gf,Qf,Rf,Of,Yaa,Mf,Kf,Vf,Wf,Xf,Yf,Zf,$f,ag,bg,Zaa,fg,ig,jg,mg,og,pg,bba,qg,ug,Ag,Bg,Eg,eba,Cg,fba,iba,jba,Ig,Lg,kba,lba,Kg,mba,Tg,Wg,Xg,pba,ah,ch,fh,gh,hh,kh,lh,mh,nh,qba,rba,rh,sh,yh,Gh,Ih,Hh,Jh,Mh,Lh,Kh,sba,ph,Wh,Vh,Yh,Xh,oh,$h,uba,ai,bi,ci,vba,hi,ji,li,mi,oi,pi,qi,si,wba,xba,ui,vi,ti,Ai,ki,ri,zba,yi,wi,xi,Bi,yba,zi,Fi,Hi,Ii,Aba,Ji,Ki,Bba,Li,Vi,Zi,Fba,$i,Gba,
aj,bj,cj,dj,ej,fj,gj,hj,ij,Jba,lj,nj,Lba,pj,qj,rj,sj,tj,xj,yj,zj,Aj,Bj,Cj,Dj,Ej,Gj,Ij,Jj,Lj,Mj,Nj,Nba,Oba,Pba,Sj,Qj,Xj,Rj,kk,Wj,mk,Rba,Sba,Vj,nk,ok,pk,qk,rk,sk,wk,vk,xk,yk,Xba,Wba,zk,tk,uk,Ak,Yba,Bk,Ck,Dk,Ek,Fk,Gk,Hk,Ik,Jk,Kk,Lk,Mk,Zba,$ba,aca,Ok,Pk,Qk,Rk,Sk,Tk,Vk,Wk,Xk,cca,bca,Yk,dca,eca,$k,al,bl,cl,fca,hca,el,fl,gl,hl,il,jl,kl,ll,ml,nl,ol,kca,jca,rl,tl,ul,sl,ql,pl,vl,wl,xl,zl,yl,lca,mca,nca,El,Ql,Sl,qca,Rl,Vl,Xl,Wl,oca,rca,$l,bm,cm,dm,em,fm,gm,hm,im,jm,km,sca,lm,mm,nm,om,pm,qm,rm,dl,uca,tm,um,vm,
sm,wm,vca,ym,wca,xm,xca,yca,Am,Bm,Dm,Em,Fm,Gm,Cm,Hm,zm,Aca,Bca,zca,Cca,Im,Dca,Jm,Km,Lm,Mm,Nm,Om,Pm,Eca,Qm,Rm,Sm,Fca,Hca,Ica,Um,Wm,Vm,Ym,Zm,$m,an,Kca,cn,dn,fn,en,gn,hn,Mca,Oca,Pca,Rca,kn,ln,mn,nn,on,pn,rn,sn,tn,vn,wn,Bn,Cn,Fn,Sca,fo,eo,Tca,Uca,Yca,ko,Xca,Vca,lo,mo,Zca,no,ada,$ca,oo,cda,bda,dda,eda,so,fda,gda,hda,to,ida,lda,mda,vo,nda,oda,tda,wo,uda,xo,vda,wda,xda,yda,zo,zda,Ada,Bda,Go,Eo,Do,Cda,Dda,Eda,Ho,Io,Jo,Gda,Oo,Po,Ida,Jda,Qo,Kda,Ro,So,Lda,Mda,To,Nda,Oda,Pda,Qda,Xo,Vo,Yo,Zo,$o,Rda,Sda,Tda,ap,
bp,cp,Uda,Vda,Wda,dp,Xda,ep,fp,Yda,Zda,$da,aea,bea,cea,dea,hp,ip,jp,lp,gea,mp,np,hea,fea,kp,iea,op,pp,rp,qp,jea,kea,lea,sp,nea,tp,pea,qea,rea,sea,tea,uea,vea,wea,yp,zp,Ap,yea,xea,Cp,zea,Dp,Aea,Ep,Bea,Cea,Fp,Gp,Hp,Dea,Ip,Jp,Kp,Lp,Mp,Np,Op,Pp,Qp,Eea,Fea,Gea,Hea,Rp,Iea,Kea,Jea,Tp,Up,Mea,Lea,Rea,Qea,Vp,Sea,Tea,Uea,Wea,Vea,Xea,Wp,Yea,Zea,Yp,$ea,afa,bfa,cfa,Zp,dfa,$p,efa,aq,bq,gfa,cq,hfa,dq,eq,ifa,jfa,fq,hq,lfa,iq,kfa,nfa,mfa,ofa,pfa,rfa,jq,sfa,mq,nq,ufa,vfa,yfa,zfa,oq,Afa,pq,qq,rq,sq,tq,uq,vq,wq,xq,yq,
zq,Aq,Bq,Efa,Dfa,Ffa,Hfa,Gfa,Jfa,Cfa,Ifa,Bfa,Cq,Dq,Lfa,Mfa,Nfa,Hq,Iq,Jq,Eq,Pfa,Kq,Kfa,Rfa,Sfa,Tfa,Qfa,Lq,Mq,Nq,Oq,Ufa,Ofa,Vfa,Pq,Wfa,Xfa,Yfa,Zfa,$fa,dga,ega,fga,Rq,gga,jga,dr,lga,Tq,er,mga,nga,oga,kr,pga,qga,lr,rga,ur,sga,rr,sr,tr,tga,xr,wr,uga,zr,vga,xga,zga,Br,Aga,Bga,Gga,Cga,Gr,Lga,Hr,Ir,Nga,Lr,Oga,Pga,Mr,Rga,Or,Pr,Qr,Sga,Sr,Tr,Ur,Vr,Xr,Yr,Uga,Vga,Zr,Wga,Xga,$r,Yga,Zga,bs,fha,es,eha,gha,gs,hs,is,js,ks,ls,ms,ns,jha,os,ps,qs,rs,ts,us,vs,ws,xs,ys,zs,As,Bs,mha,nha,oha,Cs,qha,Ds,Es,Fs,rha,Gs,tha,Hs,
Is,vha,wha,Js,Ks,xha,Ls,Ms,Ns,Os,Ps,Qs,Rs,Ss,Ts,Us,Vs,Ws,Xs,Ys,Zs,$s,Lja,Mja,at,bt,ct,dt,ft,gt,ht,jt,lt,Nja,mt,Wja,pt,qt,rt,tt,ut,vt,xt,zt,$ja,At,Bt,Ct,Xja,Dt,cka,fka,Et,Ht,Jt,hka,jka,Kt,kka,lka,mka,qka,oka,pka,Lt,Ot,Nt,rka,Qt,Rt,St,tka,Xt,Zt,uka,$t,au,Yt,cu,vka,wka,eu,xka,gu,hu,yka,iu,ju,ku,mu,ou,pu,du,qu,tu,ru,Dka,Bka,Cka,Eka,Fka,Gka,wu,xu,Ika,Jka,Mka,Cu,Du,Eu,Nka,Iu,Ju,Pka,Lu,Ku,Ou,Rka,Qka,Ska,Uka,Vka,Tka,Xka,Yka,av,gv,Wka,hv,iv,bla,dla,ala,gla,hla,$ka,fla,rv,lla,mla,tv,ola,xv,yv,pla,qla,sla,ula,
vla,ela,wla,xla,yla,zla,Ala,Dla,zv,Bv,Ela,Iv,Jv,Mv,Lv,Nv,Ov,Pv,Qv,Rv,Tv,Jla,Kla,Vv,Wv,Lla,Mla,Xv,Nla,Ola,Yv,Zv,Pla,$v,Qla,bw,cw,Sla,Tla,dw,Vla,Wla,aw,gw,Xla,Rla,Yla,$la,Zla,ew,hw,ama,fw,Ula,bma,jw,cma,kw,dma,iw,ema,fma,lw,gma,mw,hma,nw,ima,pw,jma,kma,lma,mma,uw,nma,oma,pma,qma,rma,sma,tma,uma,ww,vma,xw,yma,xma,wma,yw,zma,zw,Aw,Cw,Bma,Gw,Fw,Bw,Hw,Cma,Iw,Dma,Kw,Lw,Fma,Gma,Mw,Nw,Hma,Ima,Ema,Kma,Lma,Mma,Nma,Oma,Qw,Rw,Tw,Qma,Uw,Vw,Tma,Sma,Rma,Uma,Ww,Wma,Xw,Yw,Zma,Yma,Xma,$ma,ana,ex,fx,bna,cx,cna,$w,dx,
bx,ax,dna,gna,ena,jna,kna,ina,lx,ox,px,mna,nx,qx,rx,ux,vx,yx,zx,wx,ona,Ax,Bx,pna,Dx,Ex,Fx,sna,Hx,Ix,tna,una,vna,Lx,xna,yna,zna,Nx,Ana,Cna,Ox,Dna,Px,Qx,Ev,Lna,Tx,Ux,Wx,Nna,Ona,Pna,Qna,Rna,Xx,Vna,Wna,Xna,Yna,Yx,Zna,fy,$na,coa,foa,doa,py,oy,goa,ny,qy,ry,joa,loa,vy,wy,noa,T,yy,zy,Ay,By,Cy,Dy,ooa,Ey,Fy,Gy,roa,toa,voa,Hy,zoa,Boa,Doa,Foa,Goa,Jy,Ioa,Joa,Py,Qy,Koa,Loa,Ry,Uy,Moa,Noa,Ooa,Poa,Yy,Xy,Zy,$y,az,Vy,bz,cz,Roa,dz,Qoa,Uoa,Voa,Woa,ez,fz,gz,Xoa,hz,cpa,iz,jz,lz,mz,qz,pz,Cz,oz,epa,Dz,Ez,fpa,nz,gpa,hpa,Gz,
Hz,Iz,Jz,Lz,Mz,Oz,ipa,Pz,Tz,Rz,lpa,Xz,Sz,npa,rpa,Zz,kpa,jpa,$z,spa,tpa,upa,cA,eA,fA,wpa,xpa,gA,dA,vpa,ypa,hA,zpa,iA,jA,Apa,kA,lA,nA,rA,sA,tA,uA,vA,wA,xA,yA,Bpa,zA,BA,Dpa,Epa,AA,Gpa,Hpa,CA,Ipa,FA,Jpa,GA,IA,Kpa,HA,JA,Lpa,LA,Opa,YA,ZA,dB,Qpa,aB,eB,gB,Rpa,iB,cB,fB,Spa,jB,Tpa,kB,Upa,$A,bB,Ppa,hB,lB,Vpa,Wpa,nB,Xpa,Ypa,Zpa,oB,$pa,qB,aqa,pB,rB,sB,bqa,tB,uB,vB,wB,xB,cqa,zB,dqa,eqa,AB,BB,CB,fqa,gqa,yB,DB,hqa,iqa,jqa,EB,FB,GB,HB,kqa,lqa,JB,mqa,KB,LB,nqa,oqa,MB,pqa,qqa,uqa,vqa,rqa,sqa,tqa,NB,PB,OB,QB,RB,wqa,
xqa,SB,TB,UB,yqa,VB,WB,XB,zqa,Aqa,YB,Bqa,ZB,Cqa,$B,aC,Dqa,Eqa,Fqa,Gqa,Iqa,Hqa,cC,Jqa,Kqa,Lqa,Mqa,dC,eC,fC,Nqa,hC,gC,lC,mC,nC,oC,pC,Oqa,qC,jC,Pqa,rC,tC,uC,Qqa,vC,wC,xC,yC,zC,AC,BC,CC,Rqa,DC,EC,Sqa,FC,GC,HC,IC,JC,KC,Tqa,Uqa,LC,MC,NC,Vqa,Wqa,OC,PC,ppa,Yz,$qa,ara,bra,cra,dra,era,Qz,fra,QC,jra,ira,hra,RC,gra,lra,SC,pra,mra,nra,rra,sra,UC,qra,tra,VC,WC,XC,ura,vra,wra,YC,TC,xra,kra,zra,Ara,$C,Bra,Cra,Dra,bD,aD,Era,Fra,Gra,Hra,Ira,Kra,qpa,opa,cD,eD,gD,hD,iD,jD,fD,mD,Mra,oD,Ora,pD,Qra,Pra,Nra,Rra,Sra,Tra,
qD,mpa,rD,Ura,Vz,Vra,Wra,tD,uD,wD,xD,yD,zD,Xra,Yra,Zra,$ra,asa,bsa,csa,AD,dsa,BD,CD,esa,DD,fsa,FD,gsa,GD,HD,ID,JD,hsa,isa,jsa,lsa,KD,msa,ksa,LD,MD,ND,OD,nsa,PD,QD,mE,iE,rsa,wsa,nE,qE,rE,aE,Esa,RD,xsa,jE,lE,uE,yE,Fsa,tsa,Gsa,YD,BE,XD,ysa,vsa,CE,psa,EE,Dsa,FE,GE,Isa,Jsa,HE,Ksa,Lsa,Msa,Nsa,IE,Osa,Tsa,Ssa,Psa,Rsa,Qsa,JE,Usa,KE,Vsa,Wsa,LE,NE,OE,Zsa,ata,RE,bta,dta,TE,eta,UE,VE,fta,hta,kta,lta,mta,YE,rta,tta,uta,ita,pta,ota,qta,vta,wta,Ata,Cta,cF,dF,Dta,Fta,Gta,Hta,Ita,eF,Ota,gF,Pta,Rta,Qta,Sta,iF,kF,mF,
Tta,hF,nF,oF,Uta,qF,Yta,Vta,Xta,yF,BF,lua,fua,vF,EF,kua,xF,mua,nua,FF,dua,pua,oua,sF,wF,AF,vua,rua,sua,tua,uua,wua,GF,xua,yua,IF,JF,LF,rF,DF,hua,Wta,gua,jua,iua,NF,Aua,qua,UF,VF,WF,XF,Dua,zF,Eua,ZF,eua,Fua,zua,CF,Gua,aua,uF,$ta,Eta,cG,dG,Iua,eG,fG,gG,iG,hG,jG,Jua,Kua,kG,mG,Lua,Mua,nG,oG,pG,Nua,qG,Oua,rG,sG,tG,uG,vG,wG,Pua,xG,Qua,yG,AG,Tua,zG,Uua,Rua,Sua,Vua,Wua,Xua,BG,CG,DG,EG,FG,$ua,KG,IG,cva,bva,dva,NG,ava,OG,JG,PG,MG,LG,HG,GG,RG,SG,UG,WG,XG,YG,fva,ZG,$G,aH,bH,cH,dH,gva,eH,fH,gH,hva,hH,jva,iva,
lH,kva,lva,mva,pva,nva,ova,qva,mH,rva,sva,tva,uva,vva,nH,oH,pH,qH,rH,sH,tH,uH,vH,wH,xH,yH,zH,AH,BH,CH,DH,EH,FH,GH,HH,IH,JH,KH,LH,MH,NH,OH,PH,QH,RH,SH,TH,UH,VH,WH,XH,YH,ZH,$H,aI,bI,cI,dI,eI,fI,gI,hI,iI,jI,kI,lI,mI,nI,xva,yva,wva,Ava,Bva,zva,oI,Cva,pI,qI,rI,sI,tI,Eva,Dva,uI,vI,wI,Fva,CI,DI,Gva,Iva,EI,Jva,FI,GI,Kva,HI,Lva,Mva,Ova,Pva,Qva,JI,II,Nva,KI,Sva,Tva,Uva,LI,Rva,Wva,Vva,MI,NI,Zva,$va,OI,awa,bwa,PI,RI,SI,TI,UI,XI,ZI,$I,cwa,dwa,aJ,fwa,gwa,bJ,hwa,oJ,iwa,jwa,pJ,qJ,kwa,lwa,rJ,nwa,mwa,sJ,pwa,tJ,qwa,
uJ,vJ,wJ,yJ,rwa,swa,twa,uwa,vwa,zJ,BJ,zwa,Cwa,wwa,CJ,Mwa,Lwa,DJ,Owa,Nwa,Qwa,Rwa,Twa,Swa,Uwa,Vwa,Wwa,Xwa,EJ,FJ,Ywa,Zwa,$wa,bxa,cxa,dxa,exa,fxa,MJ,hxa,ixa,KJ,LJ,gxa,jxa,kxa,NJ,nxa,lxa,pxa,oxa,qxa,eva,rxa,Zua,sxa,txa,uxa,OJ,zxa,wxa,xxa,yxa,Axa,PJ,Dxa,Bxa,Exa,Fxa,Cxa,QJ,Gxa,nJ,Ixa,Jxa,ewa,Hxa,RJ,SJ,Kxa,Lxa,Mxa,TJ,VJ,Oxa,WJ,ZJ,$J,Pxa,Qxa,aK,cK,Rxa,Sxa,Txa,Uxa,Vxa,Wxa,Xxa,Yxa,hK,Zxa,iK,$xa,aya,kK,lK,bya,cya,oK,pK,qK,rK,dya,sK,eya,uK,gya,fya,vK,wK,xK,yK,hya,zK,AK,iya,BK,CK,mya,jya,lya,kya,nya,EK,FK,oya,
pya,qya,GK,rya,tya,sya,HK,IK,JK,KK,LK,NK,OK,PK,QK,RK,SK,TK,vya,uya,UK,wya,VK,WK,XK,YK,ZK,bL,cL,dL,eL,fL,gL,hL,iL,yya,Aya,zya,jL,Dya,Eya,Fya,Gya,nL,Iya,pL,Jya,qL,rL,sL,tL,Lya,vL,Nya,Mya,Qya,Pya,wL,xL,yL,zL,AL,BL,CL,FL,Rya,Tya,Uya,HL,Vya,Dv,Xya,Wya,Yya,$ya,Zya,aza,IL,bza,cza,dza,fza,gza,kza,lza,jza,mza,PL,nza,SL,QL,TL,RL,vxa,oza,pza,qza,rza,YL,XL,uza,xza,iM,jM,kM,yza,zza,lM,mM,Aza,Bza,oM,pM,Cza,Jza,Kza,Nza,Lza,Oza,Pza,Qza,Rza,Tza,AM,Xza,DM,Zza,Wza,$za,aAa,CM,Yza,EM,FM,GM,bM,VL,JM,dAa,bAa,cAa,KM,NM,
fAa,MM,PM,gAa,hAa,SM,TM,UM,YM,jAa,kAa,ZM,$M,lAa,mAa,nAa,oAa,aN,qAa,pAa,rAa,bN,sAa,tAa,dN,eN,uAa,hN,wAa,jN,fN,xAa,yAa,vAa,kN,lN,oN,zAa,AAa,nN,qN,pN,sN,uN,BAa,xN,CAa,FAa,DAa,AN,BN,GAa,HAa,EN,FN,GN,HN,IN,KN,JAa,IAa,KAa,MN,MAa,LAa,NAa,OAa,PAa,QAa,SN,TN,RAa,UN,VN,SAa,TAa,WN,ZN,VAa,UAa,$N,aO,bO,WAa,cO,dO,eO,fO,XAa,gO,hO,YAa,iO,ZAa,aBa,$Aa,nO,lO,mO,bBa,cBa,dBa,oO,pO,qO,rO,sO,eBa,vO,wO,yO,zO,AO,CO,DO,EO,FO,fBa,iBa,GO,gBa,hBa,mBa,nBa,IO,pBa,oBa,qBa,rBa,sBa,KO,MO,uBa,NO,tBa,vBa,xBa,wBa,OO,PO,QO,RO,yBa,zBa,
ABa,BBa,CBa,VO,EBa,DBa,GBa,XO,HBa,bP,JBa,KBa,ZO,WO,dP,YO,eP,NBa,fP,aP,FBa,MBa,cP,IBa,LBa,OBa,SO,hP,PBa,QBa,$O,iP,jP,kP,lP,mP,nP,oP,pP,qP,rP,sP,SBa,vP,wP,xP,yP,zP,AP,BP,CP,TBa,DP,EP,FP,GP,IP,HP,JP,KP,UBa,LP,VBa,XBa,WBa,MP,NP,YBa,OP,PP,ZBa,QP,$Ba,RP,aCa,SP,UP,XP,WP,$P,ZP,bCa,YP,bQ,dCa,eCa,cQ,dQ,eQ,fQ,hQ,fCa,vN,cCa,jCa,QN,gCa,jQ,iCa,RN,hCa,kCa,mCa,lCa,nCa,oCa,mQ,pCa,nQ,qCa,pQ,qQ,rQ,sQ,tQ,uQ,vQ,wQ,sCa,xQ,tCa,yQ,zQ,AQ,BQ,CQ,uCa,vCa,DQ,wCa,EQ,FQ,GQ,HQ,zCa,IQ,OQ,BCa,CCa,QQ,RQ,SQ,TQ,FCa,HCa,GCa,UQ,JCa,KCa,
LCa,MCa,NCa,OCa,PCa,VQ,WQ,XQ,QCa,YQ,SCa,TCa,UCa,VCa,WCa,XCa,$Q,aR,cR,dR,eR,$Ca,aDa,bR,bDa,fR,YCa,ZCa,cDa,gR,hR,iR,jR,eDa,fDa,kR,lR,dDa,nR,hDa,kDa,jDa,lDa,mDa,nDa,oDa,oR,pDa,qDa,pR,qR,sDa,tDa,uDa,vDa,wDa,rR,rDa,sR,tR,uR,xDa,yR,yDa,zDa,ADa,zR,BDa,CDa,AR,BR,CR,ER,HDa,EDa,FDa,DR,DDa,FR,IDa,GR,HR,LDa,MDa,JDa,KDa,IR,JR,PDa,QDa,ODa,SDa,KR,VDa,WDa,XDa,TDa,YDa,UDa,$Da,aEa,LR,MR,bEa,cEa,dEa,eEa,fEa,OR,PR,gEa,hEa,iEa,QR,kEa,RR,lEa,SR,rEa,nEa,mEa,jEa,pEa,qEa,sEa,tEa,vEa,uEa,wEa,xEa,yEa,zEa,AEa,TR,UR,BEa,EEa,
VR,FEa,HEa,IEa,GEa,WR,JEa,ZR,MEa,NEa,LEa,KEa,$R,CEa,DEa,SEa,TEa,UEa,VEa,cS,WEa,YR,OEa,bS,QEa,REa,ZEa,XEa,$Ea,aFa,YEa,bFa,cFa,dFa,eFa,eS,fFa,gFa,hFa,iFa,jFa,kFa,iS,lFa,mFa,nFa,jS,kS,lS,mS,sFa,vFa,tFa,pFa,oS,oFa,uFa,rS,xFa,wFa,sS,zFa,BFa,CFa,AFa,vS,DFa,HFa,IFa,BS,DS,ES,HS,JFa,wS,IS,KS,LFa,KFa,AS,LS,MS,MFa,NS,GS,OFa,PFa,QFa,RFa,SFa,xS,FFa,OS,yS,PS,XFa,RS,YFa,ZFa,VFa,TS,$Fa,US,TFa,WS,WFa,aGa,VS,SS,bGa,XS,cGa,QS,eGa,$S,YS,aT,ZS,bT,cT,fGa,dT,eT,fT,gT,gGa,hT,hGa,jT,jGa,kGa,lGa,mT,lT,kT,nGa,oGa,pGa,qGa,pT,
qT,rT,rGa,sGa,tGa,sT,uGa,uT,vGa,tT,vT,wT,wGa,yGa,CGa,zGa,AGa,BGa,DGa,BT,CT,EGa,GGa,HGa,IGa,DT,ET,NGa,OGa,PGa,JT,KT,QGa,LT,MGa,RGa,FT,JGa,SGa,GT,HT,KGa,LGa,IT,TGa,UGa,VGa,nta,sta,NT,OT,XGa,WGa,PT,QT,RT,YGa,ZGa,$Ga,ST,aHa,bHa,UT,cHa,VT,WT,dHa,XT,fHa,ZT,jHa,bU,zT,eHa,lHa,dU,hHa,iHa,gHa,cU,aU,$T,kHa,pHa,nHa,mHa,fU,qHa,gU,rHa,hU,iU,sHa,tHa,uHa,vHa,wHa,kU,lU,mU,nU,oU,pU,zHa,AHa,yT,AT,DHa,sU,tU,FGa,wU,rU,EHa,qU,BHa,CHa,xU,yU,FHa,vU,xT,uU,GHa,HHa,IHa,zU,KHa,JHa,AU,OHa,BU,QHa,PHa,DU,CU,SHa,FU,EU,THa,MHa,HU,
RHa,NHa,GU,IU,UHa,JU,MU,VHa,KU,ZHa,LU,$Ha,NU,XHa,WHa,aIa,OU,bIa,cIa,fIa,eIa,dIa,PU,gIa,jIa,kIa,VU,WU,mIa,nIa,XU,YU,$U,qIa,aV,rIa,SU,lIa,sIa,tIa,vIa,oHa,dV,uIa,ZU,oIa,wIa,xIa,yIa,zIa,hIa,UU,RU,TU,AIa,gV,hV,BIa,CIa,DIa,FIa,EIa,iV,GIa,IIa,HIa,KIa,kV,OIa,LIa,NIa,PIa,lV,TIa,RIa,SIa,VIa,WIa,XIa,mV,jV,YIa,QIa,$Ia,nV,aJa,MIa,bJa,oV,dJa,eJa,pV,cJa,qV,rV,fJa,sV,tV,uV,vV,hJa,kJa,jJa,iJa,xV,lJa,wV,mJa,zV,BV,nJa,qJa,oJa,pJa,rJa,tJa,sJa,uJa,vJa,CV,xJa,yJa,zJa,AJa,wJa,BJa,DJa,FJa,GJa,CJa,HJa,IJa,KJa,JJa,LJa,EJa,
DV,MJa,NJa,OJa,PJa,RJa,EV,FV,TJa,IV,JV,WJa,KV,XJa,YJa,LV,UJa,ZJa,$Ja,aKa,OV,bKa,dKa,cKa,eKa,PV,QV,fKa,RV,hKa,SV,TV,jKa,VV,UV,kKa,XV,iKa,YV,lKa,WV,mKa,ZV,nKa,VJa,NV,pKa,qKa,rKa,sKa,tKa,uKa,vKa,wKa,yKa,zKa,AKa,xKa,BKa,CKa,aW,DKa,EKa,bW,cW,FKa,GKa,HKa,eW,JKa,gW,KKa,LKa,fW,dW,IKa,jW,iW,MKa,kW,hW,NKa,mW,RKa,pW,SKa,PKa,nW,TKa,qW,QKa,UKa,rW,WKa,lW,XKa,YKa,VKa,ZKa,oW,$Ka,aLa,OKa,sW,tW,uW,vW,bLa,wW,jU,yHa,cLa,dLa,iIa,xHa,eLa,TW,gLa,hLa,fLa,jLa,iLa,mLa,kLa,lLa,oLa,nLa,pLa,qLa,rLa,sLa,cX,uLa,yLa,xLa,kX,mX,lX,
BLa,FLa,HLa,KLa,MLa,DLa,CLa,PLa,QLa,RLa,SLa,TLa,pX,ULa,XLa,WLa,VLa,qX,YLa,tLa,oX,ZLa,eMa,bMa,fMa,cMa,$La,gMa,aMa,iMa,rX,kMa,lMa,mMa,QG,xX,nMa,aS,pMa,EFa,qMa,yX,AV,rMa,FX,AX,uS,wX,GX,IX,cV,eV,JX,PEa,DX,EX,bV,vMa,uMa,sMa,BX,KX,xMa,pS,yMa,yV,yFa,MX,JS,oMa,zX,zMa,BMa,AMa,CMa,NX,rFa,DMa,FMa,tMa,sX,GMa,OX,CX,tX,HMa,PX,qS,QX,RX,CS,IMa,JMa,KMa,qFa,LX,wMa,SMa,OMa,VMa,NMa,WMa,XMa,XX,$X,aNa,YMa,$Ma,bY,ZMa,cY,dY,cNa,dNa,SX,UX,RMa,jY,eNa,iY,MMa,fNa,WX,gNa,hNa,UMa,mY,iNa,jNa,TX,fY,gY,eY,pY,lNa,aY,lY,qY,rY,mNa,
hY,bNa,oY,kNa,sY,nNa,oNa,pNa,UL,qNa,kY,tY,sNa,YX,uY,vY,ZX,tNa,uNa,QMa,nY,vNa,PMa,wY,xY,iGa,wNa,yY,uy,X,zY,yNa,BY,ANa,AY,BNa,EY,CY,FY,DY,CNa,DNa,GY,HY,IY,ENa,JY,KY,LY,MY,NY,OY,GNa,FNa,HNa,PY,QY,xI,yI,INa,zI,jH,SY,KNa,aZ,bZ,BI,cZ,iH,ZY,dZ,ONa,PNa,QNa,RNa,JNa,SNa,RY,TNa,UNa,gZ,WY,fZ,lZ,hZ,UY,VNa,TY,LNa,eZ,iZ,nZ,XY,YY,kZ,jZ,XNa,oZ,pZ,YNa,qZ,Y,rZ,DK,sZ,ZNa,bOa,cOa,gOa,tZ,hOa,dOa,iOa,uZ,vZ,wZ,kOa,nOa,lOa,qOa,yOa,xOa,rOa,zOa,tOa,uOa,sOa,COa,EOa,GOa,JOa,KOa,MOa,NOa,QOa,SOa,OOa,KZ,TOa,WOa,YOa,VOa,$Oa,aPa,
bPa,MZ,koa,dPa,cPa,QZ,sy,SZ,TZ,hoa,UZ,fPa,gPa,LZ,IZ,yZ,BZ,VZ,WZ,DZ,CZ,hPa,pOa,zZ,AZ,HZ,iPa,jPa,XZ,kPa,YZ,lPa,OZ,GZ,FZ,xZ,HOa,LOa,JZ,UOa,AOa,vOa,ZZ,$Z,a_,mPa,b_,c_,d_,e_,f_,g_,h_,$Na,i_,aOa,oPa,nPa,jOa,IOa,pPa,ZOa,qPa,rPa,FOa,oOa,mOa,fOa,BOa,eOa,wOa,POa,ROa,tPa,XOa,DOa,uPa,j_,sPa,k_,AI,VY,MNa,RZ,l_,m_,n_,o_,vPa,p_,q_,NZ,wPa,r_,mZ,$Y,xPa,PZ,s_,yPa,zPa,EZ,t_,v_,w_,x_,y_,BPa,A_,B_,C_,APa,z_,CPa,DPa,D_,ty,HPa,GPa,E_,F_,u_,IPa,JPa,G_,H_,KPa,I_,J_,LPa,MPa,NPa,OPa,K_,PPa,L_,M_,N_,O_,P_,Q_,QPa,R_,S_,T_,U_,
V_,W_,X_,Y_,RPa,SPa,TPa,Z_,$_,a0,b0,UPa,c0,VPa,d0,WPa,e0,XPa,f0,g0,h0,i0,j0,k0,YPa,m0,n0,ZPa,$Pa,aQa,p0,o0,r0,s0,q0,u0,bQa,cQa,FPa,t0,v0,dQa,w0,fQa,eQa,x0,y0,ePa,gQa,z0,hQa,A0,jQa,kQa,iQa,lQa,B0,mQa,nQa,oQa,C0,D0,E0,pQa,F0,G0,H0,qQa,I0,J0,rQa,K0,l0,L0,M0,N0,Hva,O0,sQa,P0,tQa,Q0,R0,uQa,vQa,S0,T0,U0,wQa,V0,xQa,W0,X0,zQa,yQa,AQa,BQa,CQa,Y0,Z0,$0,DQa,EQa,FQa,GQa,HQa,IQa,JQa,KQa,LQa,MQa,a1,b1,NQa,OQa,c1,d1,e1,f1,PQa,g1,QQa,h1,RQa,SQa,i1,TQa,UQa,j1,VQa,WQa,k1,l1,XQa,YQa,ZQa,m1,n1,p1,$Qa,q1,r1,s1,aRa,t1,
bRa,u1,v1,cRa,w1,dRa,eRa,fRa,gRa,hRa,iRa,y1,jRa,kRa,lRa,mRa,nRa,z1,A1,oRa,B1,C1,D1,E1,pRa,F1,qRa,rRa,sRa,I1,tRa,uRa,vRa,J1,H1,wRa,L1,xRa,M1,yRa,N1,O1,P1,Q1,R1,zRa,BRa,ARa,CRa,S1,DRa,ERa,T1,FRa,U1,V1,W1,GRa,HRa,X1,IRa,Y1,JRa,Z1,KRa,LRa,MRa,ioa,NRa,ORa,aa,ha,fa,Tj,Pa,faa;ba=function(a){return function(){return aa[a].apply(this,arguments)}};
g.ca=function(a,b){return aa[a]=b};
ea=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};
aaa=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");};
ia=function(a,b){if(b)a:{var c=fa;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&&ha(c,a,{configurable:!0,writable:!0,value:b})}};
ka=function(a){a={next:a};a[Symbol.iterator]=function(){return this};
return a};
g.q=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:ea(a)}};
la=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c};
g.u=function(a){return a instanceof Array?a:la(g.q(a))};
na=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
g.v=function(a,b){a.prototype=oa(b.prototype);a.prototype.constructor=a;if(pa)pa(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.ue=b.prototype};
ra=function(){this.J=!1;this.B=null;this.j=void 0;this.i=1;this.C=this.I=0;this.W=this.u=null};
sa=function(a){if(a.J)throw new TypeError("Generator is already running");a.J=!0};
ta=function(a,b){a.u={dL:b,iM:!0};a.i=a.I||a.C};
g.A=function(a,b,c){a.i=c;return{value:b}};
g.ua=function(a){a.i=0};
va=function(a,b,c){a.I=b;void 0!=c&&(a.C=c)};
wa=function(a,b){a.i=b;a.I=0};
xa=function(a){a.I=0;var b=a.u.dL;a.u=null;return b};
ya=function(a){a.W=[a.u];a.I=0;a.C=0};
za=function(a,b){var c=a.W.splice(0)[0];(c=a.u=a.u||c)?c.iM?a.i=a.I||a.C:void 0!=c.eb&&a.C<c.eb?(a.i=c.eb,a.u=null):a.i=a.C:a.i=b};
baa=function(a){this.i=new ra;this.j=a};
caa=function(a,b){sa(a.i);var c=a.i.B;if(c)return Aa(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.i.return);
a.i.return(b);return Ba(a)};
Aa=function(a,b,c,d){try{var e=b.call(a.i.B,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.i.J=!1,e;var f=e.value}catch(k){return a.i.B=null,ta(a.i,k),Ba(a)}a.i.B=null;d.call(a.i,f);return Ba(a)};
Ba=function(a){for(;a.i.i;)try{var b=a.j(a.i);if(b)return a.i.J=!1,{value:b.value,done:!1}}catch(c){a.i.j=void 0,ta(a.i,c)}a.i.J=!1;if(a.i.u){b=a.i.u;a.i.u=null;if(b.iM)throw b.dL;return{value:b.return,done:!0}}return{value:void 0,done:!0}};
daa=function(a){this.next=function(b){sa(a.i);a.i.B?b=Aa(a,a.i.B.next,b,a.i.N):(a.i.N(b),b=Ba(a));return b};
this.throw=function(b){sa(a.i);a.i.B?b=Aa(a,a.i.B["throw"],b,a.i.N):(ta(a.i,b),b=Ba(a));return b};
this.return=function(b){return caa(a,b)};
this[Symbol.iterator]=function(){return this}};
eaa=function(a){function b(d){return a.next(d)}
function c(d){return a.throw(d)}
return new Promise(function(d,e){function f(k){k.done?d(k.value):Promise.resolve(k.value).then(b,c).then(f,e)}
f(a.next())})};
g.B=function(a){return eaa(new daa(new baa(a)))};
g.Ca=function(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b};
Da=function(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var f=a[e];if(b.call(c,f,e,a))return{UL:e,HP:f}}return{UL:-1,HP:void 0}};
Ea=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};
Fa=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+""};
Ga=function(a){return a?a:Array.prototype.fill};
Ha=function(a){return a?a:Array.prototype.copyWithin};
g.Ia=function(a,b,c){a=a.split(".");c=c||g.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.Ja=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};
g.Ka=function(){};
La=function(a){a.Xe=void 0;a.getInstance=function(){return a.Xe?a.Xe:a.Xe=new a}};
Ma=function(a){var b=typeof a;return"object"!=b?b:a?Array.isArray(a)?"array":b:"null"};
g.Na=function(a){var b=Ma(a);return"array"==b||"object"==b&&"number"==typeof a.length};
g.Oa=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b};
g.Qa=function(a){return Object.prototype.hasOwnProperty.call(a,Pa)&&a[Pa]||(a[Pa]=++faa)};
gaa=function(a,b,c){return a.call.apply(a.bind,arguments)};
haa=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}};
g.Ra=function(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?g.Ra=gaa:g.Ra=haa;return g.Ra.apply(null,arguments)};
g.Sa=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.Ta=function(){return Date.now()};
g.Ua=function(a,b){function c(){}
c.prototype=b.prototype;a.ue=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.Vf=function(d,e,f){for(var k=Array(arguments.length-2),l=2;l<arguments.length;l++)k[l-2]=arguments[l];return b.prototype[e].apply(d,k)}};
Va=function(a){return a};
Xa=function(a,b){return Error("Invalid wire type: "+a+" (at position "+b+")")};
Ya=function(){return Error("Failed to read varint, encoding is invalid.")};
Za=function(a,b){return Error("Tried to read past the end of the data "+b+" > "+a)};
$a=function(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,$a);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));void 0!==b&&(this.pS=b)};
ab=function(a,b){var c=$a.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($a,this,d+a[e])};
iaa=function(){};
bb=function(a){a.push(65533)};
db=function(a,b){b=String.fromCharCode.apply(null,b);return null==a?b:a+b};
g.fb=function(a){if(jaa)a=(eb||(eb=new TextEncoder)).encode(a);else{var b=void 0;b=void 0===b?!1:b;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 k=a.charCodeAt(++e);if(56320<=k&&57343>=k){f=1024*(f-55296)+k-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=d.subarray(0,c)}return a};
g.ib=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};
jb=function(a,b){return 0==a.lastIndexOf(b,0)};
kb=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};
g.lb=function(a){return/^[\s\xa0]*$/.test(a)};
tb=function(a,b){if(b)a=a.replace(nb,"&amp;").replace(ob,"&lt;").replace(pb,"&gt;").replace(qb,"&quot;").replace(rb,"&#39;").replace(sb,"&#0;");else{if(!kaa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(nb,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(ob,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(pb,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(qb,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(rb,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(sb,"&#0;"))}return a};
ub=function(a,b){return-1!=a.toLowerCase().indexOf(b.toLowerCase())};
g.xb=function(a,b){var c=0;a=vb(String(a)).split(".");b=vb(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;0==c&&e<d;e++){var f=a[e]||"",k=b[e]||"";do{f=/(\d*)(\D*)(.*)/.exec(f)||["","","",""];k=/(\d*)(\D*)(.*)/.exec(k)||["","","",""];if(0==f[0].length&&0==k[0].length)break;c=wb(0==f[1].length?0:parseInt(f[1],10),0==k[1].length?0:parseInt(k[1],10))||wb(0==f[2].length,0==k[2].length)||wb(f[2],k[2]);f=f[3];k=k[3]}while(0==c)}return c};
wb=function(a,b){return a<b?-1:a>b?1:0};
g.yb=function(){var a=g.C.navigator;return a&&(a=a.userAgent)?a:""};
Ab=function(a){var b=zb;return b?b.brands.some(function(c){return(c=c.brand)&&-1!=c.indexOf(a)}):!1};
Bb=function(a){return-1!=g.yb().indexOf(a)};
Cb=function(){var a=zb;return!!a&&0<a.brands.length};
Db=function(){return Cb()?!1:Bb("Opera")};
Eb=function(){return Cb()?!1:Bb("Trident")||Bb("MSIE")};
Fb=function(){return Cb()?!1:Bb("Edge")};
Gb=function(){return Cb()?Ab("Microsoft Edge"):Bb("Edg/")};
Hb=function(){return Bb("Firefox")||Bb("FxiOS")};
Jb=function(){return Bb("Safari")&&!(Ib()||(Cb()?0:Bb("Coast"))||Db()||Fb()||Gb()||(Cb()?Ab("Opera"):Bb("OPR"))||Hb()||Bb("Silk")||Bb("Android"))};
Ib=function(){return Cb()?Ab("Chromium"):(Bb("Chrome")||Bb("CriOS"))&&!Fb()||Bb("Silk")};
Kb=function(){return Bb("Android")&&!(Ib()||Hb()||Db()||Bb("Silk"))};
laa=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})]||""}};
maa=function(a){var b=g.yb();if("Internet Explorer"===a){if(Eb())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=laa(c);switch(a){case "Opera":if(Db())return b(["Version","Opera"]);if(Cb()?Ab("Opera"):Bb("OPR"))return b(["OPR"]);break;case "Microsoft Edge":if(Fb())return b(["Edge"]);if(Gb())return b(["Edg"]);break;case "Chromium":if(Ib())return b(["Chrome","CriOS","HeadlessChrome"])}return"Firefox"===a&&Hb()||"Safari"===a&&Jb()||"Android Browser"===a&&Kb()||"Silk"===a&&Bb("Silk")?(b=c[2])&&b[1]||"":""};
Mb=function(a){if(Cb()&&"Silk"!==a){var b=zb.brands.find(function(c){return c.brand===a});
if(!b||!b.version)return NaN;b=b.version.split(".")}else{b=maa(a);if(""===b)return NaN;b=b.split(".")}return 0===b.length?NaN:Number(b[0])};
Nb=function(){var a=zb;return!!a&&!!a.platform};
Ob=function(){return Nb()?"Android"===zb.platform:Bb("Android")};
Pb=function(){return Bb("iPhone")&&!Bb("iPod")&&!Bb("iPad")};
Qb=function(){return Pb()||Bb("iPad")||Bb("iPod")};
Rb=function(){return Nb()?"macOS"===zb.platform:Bb("Macintosh")};
Sb=function(){return Nb()?"Windows"===zb.platform:Bb("Windows")};
Tb=function(){var a=g.yb(),b="";if(Sb())b=/Windows (?:NT|Phone) ([0-9.]+)/,b=(a=b.exec(a))?a[1]:"0.0";else if(Qb())b=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,b=(a=b.exec(a))&&a[1].replace(/_/g,".");else if(Rb())b=/Mac OS X ([0-9_.]+)/,b=(a=b.exec(a))?a[1].replace(/_/g,"."):"10";else if(ub(g.yb(),"KaiOS"))b=/(?:KaiOS)\/(\S+)/i,b=(a=b.exec(a))&&a[1];else if(Ob())b=/Android\s+([^\);]+)(\)|;)/,b=(a=b.exec(a))&&a[1];else if(Nb()?"Chrome OS"===zb.platform:Bb("CrOS"))b=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,
b=(a=b.exec(a))&&a[1];return b||""};
g.Ub=function(a){return a[a.length-1]};
naa=function(a,b){var c=a.length,d="string"===typeof a?a.split(""):a;for(--c;0<=c;--c)c in d&&b.call(void 0,d[c],c,a)};
g.Wb=function(a,b,c){b=Vb(a,b,c);return 0>b?null:"string"===typeof a?a.charAt(b):a[b]};
Vb=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.Yb=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.$b=function(a,b){return 0<=Zb(a,b)};
g.ac=function(a){return 0==a.length};
bc=function(a){if(!Array.isArray(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0};
g.fc=function(a,b){b=Zb(a,b);var c;(c=0<=b)&&g.ec(a,b);return c};
g.ec=function(a,b){return 1==Array.prototype.splice.call(a,b,1).length};
g.gc=function(a,b){b=Vb(a,b,void 0);0<=b&&g.ec(a,b)};
oaa=function(a,b){var c=0;naa(a,function(d,e){b.call(void 0,d,e,a)&&g.ec(a,e)&&c++})};
g.hc=function(a){return Array.prototype.concat.apply([],arguments)};
g.ic=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[]};
jc=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(g.Na(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var k=0;k<f;k++)a[e+k]=d[k]}else a.push(d)}};
g.lc=function(a,b,c,d){Array.prototype.splice.apply(a,kc(arguments,1))};
kc=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};
paa=function(a){for(var b=0,c=0,d={};c<a.length;){var e=a[c++],f=g.Oa(e)?"o"+g.Qa(e):(typeof e).charAt(0)+e;Object.prototype.hasOwnProperty.call(d,f)||(d[f]=!0,a[b++]=e)}a.length=b};
g.oc=function(a,b,c){return mc(a,c||nc,!1,b)};
pc=function(a,b){return mc(a,b,!0,void 0,void 0)};
mc=function(a,b,c,d,e){for(var f=0,k=a.length,l;f<k;){var m=f+(k-f>>>1),n=void 0;c?n=b.call(e,a[m],m,a):n=b(d,a[m]);0<n?f=m+1:(k=m,l=!n)}return l?f:-f-1};
g.qc=function(a,b){a.sort(b||nc)};
qaa=function(a,b){var c=nc;g.qc(a,function(d,e){return c(b(d),b(e))})};
g.sc=function(a,b){if(!g.Na(a)||!g.Na(b)||a.length!=b.length)return!1;for(var c=a.length,d=raa,e=0;e<c;e++)if(!d(a[e],b[e]))return!1;return!0};
nc=function(a,b){return a>b?1:a<b?-1:0};
raa=function(a,b){return a===b};
g.tc=function(a,b,c){c=g.oc(a,b,c);0>c&&g.lc(a,-(c+1),0,b)};
g.vc=function(a,b,c){var d={};(0,g.uc)(a,function(e,f){d[b.call(c,e,f,a)]=e});
return d};
saa=function(a){for(var b=[],c=0;c<a;c++)b[c]="";return b};
taa=function(a,b){b=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,0,0,b[0])};
wc=function(a){wc[" "](a);return a};
Ac=function(a,b){try{return wc(a[b]),!0}catch(c){}return!1};
Bc=function(a,b,c,d){d=d?d(b):b;return Object.prototype.hasOwnProperty.call(a,d)?a[d]:a[d]=c(b)};
Cc=function(){var a=g.C.document;return a?a.documentMode:void 0};
g.Ec=function(a){return Bc(uaa,a,function(){return 0<=g.xb(Dc,a)})};
g.Gc=function(a){return Number(vaa)>=a};
g.Jc=function(a,b){void 0===b&&(b=0);Hc();b=Ic[b];for(var c=Array(Math.floor(a.length/3)),d=b[64]||"",e=0,f=0;e<a.length-2;e+=3){var k=a[e],l=a[e+1],m=a[e+2],n=b[k>>2];k=b[(k&3)<<4|l>>4];l=b[(l&15)<<2|m>>6];m=b[m&63];c[f++]=""+n+k+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.Kc=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.Jc(b,3)};
Mc=function(a){var b=[];Lc(a,function(c){b.push(c)});
return b};
Oc=function(a){!g.Nc||g.Ec("10");var b=a.length,c=3*b/4;c%3?c=Math.floor(c):-1!="=.".indexOf(a[b-1])&&(c=-1!="=.".indexOf(a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;Lc(a,function(f){d[e++]=f});
return e!==c?d.subarray(0,e):d};
Lc=function(a,b){function c(m){for(;d<a.length;){var n=a.charAt(d++),p=Pc[n];if(null!=p)return p;if(!g.lb(n))throw Error("Unknown base64 encoding at char: "+n);}return m}
Hc();for(var d=0;;){var e=c(-1),f=c(0),k=c(64),l=c(64);if(64===l&&-1===e)break;b(e<<2|f>>4);64!=k&&(b(f<<4&240|k>>2),64!=l&&b(k<<6&192|l))}};
Hc=function(){if(!Pc){Pc={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));Ic[c]=d;for(var e=0;e<d.length;e++){var f=d[e];void 0===Pc[f]&&(Pc[f]=e)}}}};
Rc=function(a){return null==a||Qc(a)?a:"string"===typeof a?Oc(a):null};
Qc=function(a){return Sc&&null!=a&&a instanceof Uint8Array};
Tc=function(a){this.i=a;if(null!==a&&0===a.length)throw Error("ByteString should be constructed with non-empty values");};
Vc=function(a,b,c){return b===c?Uc||(Uc=new Uint8Array(0)):waa?a.slice(b,c):new Uint8Array(a.subarray(b,c))};
Wc=function(a,b){if(a.constructor===Uint8Array)return a;if(a.constructor===ArrayBuffer)return new Uint8Array(a);if(a.constructor===Array)return new Uint8Array(a);if(a.constructor===String)return Oc(a);if(a.constructor===Tc)return!b&&(b=a.i)&&b.constructor===Uint8Array?b:a.isEmpty()?Uc||(Uc=new Uint8Array(0)):new Uint8Array(a.i=Rc(a.i));if(a instanceof Uint8Array)return new Uint8Array(a.buffer,a.byteOffset,a.byteLength);throw Error("Type not convertible to a Uint8Array, expected a Uint8Array, an ArrayBuffer, a base64 encoded string, or Array of numbers");
};
g.Yc=function(a,b){b=void 0===b?{}:b;b=void 0===b.Kk?!1:b.Kk;this.j=null;this.i=this.u=this.B=0;this.Kk=b;a&&Xc(this,a)};
Xc=function(a,b){a.j=Wc(b,a.Kk);a.B=0;a.u=a.j.length;a.i=a.B};
g.Zc=function(a){for(var b=128,c=0,d=0,e=0;4>e&&128<=b;e++)b=a.j[a.i++],c|=(b&127)<<7*e;128<=b&&(b=a.j[a.i++],c|=(b&127)<<28,d|=(b&127)>>4);if(128<=b)for(e=0;5>e&&128<=b;e++)b=a.j[a.i++],d|=(b&127)<<7*e+3;if(128>b){a=c>>>0;b=d>>>0;if(d=b&2147483648)a=~a+1>>>0,b=~b>>>0,0==a&&(b=b+1>>>0);a=4294967296*b+(a>>>0);return d?-a:a}throw Ya();};
$c=function(a){if(a.i>a.u)throw Za(a.u,a.i);};
g.ad=function(a){var b=a.j,c=b[a.i+0],d=c&127;if(128>c)return a.i+=1,$c(a),d;c=b[a.i+1];d|=(c&127)<<7;if(128>c)return a.i+=2,$c(a),d;c=b[a.i+2];d|=(c&127)<<14;if(128>c)return a.i+=3,$c(a),d;c=b[a.i+3];d|=(c&127)<<21;if(128>c)return a.i+=4,$c(a),d;c=b[a.i+4];d|=(c&15)<<28;if(128>c)return a.i+=5,$c(a),d>>>0;a.i+=5;if(128<=b[a.i++]&&128<=b[a.i++]&&128<=b[a.i++]&&128<=b[a.i++]&&128<=b[a.i++])throw Ya();$c(a);return d};
g.bd=function(a){var b=a.j[a.i+0],c=a.j[a.i+1],d=a.j[a.i+2],e=a.j[a.i+3];a.i+=4;$c(a);return(b<<0|c<<8|d<<16|e<<24)>>>0};
dd=function(a){var b={},c=void 0===b.lE?!1:b.lE;this.C={Kk:void 0===b.Kk?!1:b.Kk};this.lE=c;b=this.C;cd.length?(c=cd.pop(),b&&(c.Kk=b.Kk),a&&Xc(c,a),a=c):a=new g.Yc(a,b);this.i=a;this.B=this.i.i;this.j=this.u=-1};
ed=function(a){var b=a.i;if(b.i==b.u)return!1;a.B=a.i.i;var c=g.ad(a.i);b=c>>>3;c&=7;if(!(0<=c&&5>=c))throw Xa(c,a.B);if(1>b)throw Error("Invalid field number: "+b+" (at position "+a.B+")");a.u=b;a.j=c;return!0};
fd=function(a){switch(a.j){case 0:if(0!=a.j)fd(a);else a:{a=a.i;for(var b=a.i,c=0;10>c;c++){if(0===(a.j[b]&128)){a.i=b+1;$c(a);break a}b++}throw Ya();}break;case 1:a.i.advance(8);break;case 2:2!=a.j?fd(a):(b=g.ad(a.i),a.i.advance(b));break;case 5:a.i.advance(4);break;case 3:b=a.u;do{if(!ed(a))throw Error("Unmatched start-group tag: stream EOF");if(4==a.j){if(a.u!=b)throw Error("Unmatched end-group tag");break}fd(a)}while(1);break;default:throw Xa(a.j,a.B);}};
g.gd=function(a,b,c){var d=a.i.u,e=g.ad(a.i),f=a.i.i+e;a.i.u=f;c(b,a);b=f-a.i.i;if(0!==b)throw Error("Message parsing ended unexpectedly. Expected to read "+(e+" bytes, instead read "+(e-b)+" bytes, either the data ended unexpectedly or the message misreported its own length"));a.i.i=f;a.i.u=d};
g.hd=function(a){var b=a.i;a=g.bd(b);var c=g.bd(b);b=2*(c>>31)+1;var d=c>>>20&2047;a=4294967296*(c&1048575)+a;return 2047==d?a?NaN:Infinity*b:0==d?b*Math.pow(2,-1074)*a:b*Math.pow(2,d-1075)*(a+4503599627370496)};
g.jd=function(a){var b=g.ad(a.i);a=a.i;var c=a.i;a.i+=b;$c(a);a=a.j;var d;if(xaa)(d=id)||(d=id=new TextDecoder("utf-8",{fatal:!1})),d=d.decode(a.subarray(c,c+b));else{b=c+b;for(var e=[],f=null,k,l,m;c<b;)k=a[c++],128>k?e.push(k):224>k?c>=b?bb(e):(l=a[c++],194>k||128!==(l&192)?(c--,bb(e)):e.push((k&31)<<6|l&63)):240>k?c>=b-1?bb(e):(l=a[c++],128!==(l&192)||224===k&&160>l||237===k&&160<=l||128!==((d=a[c++])&192)?(c--,bb(e)):e.push((k&15)<<12|(l&63)<<6|d&63)):244>=k?c>=b-2?bb(e):(l=a[c++],128!==(l&192)||
0!==(k<<28)+(l-144)>>30||128!==((d=a[c++])&192)||128!==((m=a[c++])&192)?(c--,bb(e)):(k=(k&7)<<18|(l&63)<<12|(d&63)<<6|m&63,k-=65536,e.push((k>>10&1023)+55296,(k&1023)+56320))):bb(e),8192<=e.length&&(f=db(f,e),e.length=0);d=db(f,e)}return d};
kd=function(a){var b=g.ad(a.i);a=a.i;if(0>b||a.i+b>a.j.length){if(0>b)throw Error("Tried to read a negative byte length: "+b);throw Za(b,a.j.length-a.i);}var c=a.Kk?a.j.subarray(a.i,a.i+b):Vc(a.j,a.i,a.i+b);a.i+=b;return c};
ld=function(){this.i=[]};
od=function(a,b){for(;127<b;)a.i.push(b&127|128),b>>>=7;a.i.push(b)};
pd=function(a,b){if(0<=b)od(a,b);else{for(var c=0;9>c;c++)a.i.push(b&127|128),b>>=7;a.i.push(1)}};
g.qd=function(a,b){a.i.push(b>>>0&255);a.i.push(b>>>8&255);a.i.push(b>>>16&255);a.i.push(b>>>24&255)};
yaa=function(){this.u=[];this.j=0;this.i=new ld};
rd=function(a,b){0!==b.length&&(a.u.push(b),a.j+=b.length)};
td=function(a,b){g.sd(a,b,2);b=a.i.end();rd(a,b);b.push(a.j);return b};
ud=function(a,b){var c=b.pop();for(c=a.j+a.i.length()-c;127<c;)b.push(c&127|128),c>>>=7,a.j++;b.push(c);a.j++};
zaa=function(a,b){if(b=b.Bw){rd(a,a.i.end());for(var c=0;c<b.length;c++)rd(a,b[c])}};
g.sd=function(a,b,c){od(a.i,8*b+c)};
g.vd=function(a,b,c){g.sd(a,b,2);od(a.i,c.length);rd(a,a.i.end());rd(a,c)};
xd=function(a){Object.isFrozen(a)||(wd?a[wd]|=1:void 0!==a.i?a.i|=1:Object.defineProperties(a,{i:{value:1,configurable:!0,writable:!0,enumerable:!1}}));return a};
yd=function(a){return null!==a&&"object"===typeof a&&!Array.isArray(a)&&a.constructor===Object};
zd=function(a){return Rc(a instanceof Tc?a.i||"":a)};
Bd=function(a,b){if(Ad){var c={};Object.defineProperties(a,(c[Symbol.hasInstance]={value:b,configurable:!1,writable:!1,enumerable:!1},c))}};
g.Cd=function(a,b,c){return-1===b?null:b>=a.B?a.j?a.j[b]:void 0:(void 0===c?0:c)&&a.j&&(c=a.j[b],null!=c)?c:a.Kf[b+a.u]};
g.D=function(a,b,c,d){b<a.B&&(void 0===d||!d)?a.Kf[b+a.u]=c:(a.j||(a.j=a.Kf[a.B+a.u]={}))[b]=c;return a};
g.Ed=function(a,b,c){c=void 0===c?!1:c;var d=g.Cd(a,b,c);null==d&&(d=Dd);d===Dd&&(d=xd(d.slice()),g.D(a,b,d,c));return d};
Hd=function(a,b,c){a=g.Cd(a,b);return null==a?c:a};
Id=function(a,b,c){var d=void 0===d?!1:d;return g.D(a,b,null==c?xd([]):Array.isArray(c)?xd(c):c,d)};
Jd=function(a,b,c,d){c!==d?g.D(a,b,c):g.D(a,b,void 0,!1);return a};
g.Ld=function(a,b,c,d){(c=Kd(a,c))&&c!==b&&null!=d&&(a.i&&c in a.i&&(a.i[c]=void 0),g.D(a,c,void 0));return g.D(a,b,d)};
Kd=function(a,b){for(var c=0,d=0;d<b.length;d++){var e=b[d];null!=g.Cd(a,e)&&(0!==c&&g.D(a,c,void 0,!1),c=e)}return c};
g.Md=function(a,b,c){var d=void 0===d?!1:d;a.i||(a.i={});var e=a.i[c];if(e)return e;e=g.Cd(a,c,d);b=new b(e);null==e&&g.D(a,c,b.Kf,d);return a.i[c]=b};
Nd=function(a,b,c,d,e){if(-1===c)return null;a.i||(a.i={});var f=a.i[c];if(f)return f;e=g.Cd(a,c,void 0===e?!1:e);if(null==e&&!d)return f;b=new b(e);return a.i[c]=b};
Od=function(a,b,c,d){a.i||(a.i={});var e=a.i[c];if(!e){d=g.Ed(a,c,void 0===d?!1:d);e=[];for(var f=0;f<d.length;f++)e[f]=new b(d[f]);a.i[c]=e}return e};
Pd=function(a,b,c,d){a.i||(a.i={});var e=c?c.Kf:c;a.i[b]=c;return g.D(a,b,e,void 0===d?!1:d)};
Qd=function(a,b,c,d){a.i||(a.i={});var e=d?d.Kf:d;a.i[b]=d;g.Ld(a,b,c,e)};
Rd=function(a,b,c,d){d=void 0===d?!1:d;if(c){var e=xd([]);for(var f=0;f<c.length;f++)e[f]=c[f].Kf;a.i||(a.i={});a.i[b]=c}else a.i&&(a.i[b]=void 0),e=Dd;return g.D(a,b,e,d)};
Sd=function(a,b,c,d,e){var f=Od(a,c,b,void 0===f?!1:f);c=d?d:new c;a=g.Ed(a,b);void 0!=e?(f.splice(e,0,c),a.splice(e,0,c.Kf)):(f.push(c),a.push(c.Kf));return c};
Ud=function(a,b,c){return Hd(a,b,void 0===c?0:c)};
Caa=function(a,b,c,d,e){var f=Aaa,k=Baa;this.i=a;this.fieldName=b;this.j=c;this.C=d;this.isRepeated=e;this.u=f;this.B=k};
Vd=function(a){switch(typeof a){case "number":return isFinite(a)?a:String(a);case "object":if(a&&!Array.isArray(a)){if(Qc(a))return g.Jc(a);if(a instanceof Tc){if(a.isEmpty())a="";else{var b=a.i;b=null==b||"string"===typeof b?b:Sc&&b instanceof Uint8Array?g.Jc(b):null;a=a.i=b}return a}}}return a};
Xd=function(a,b){if(null!=a){if(Array.isArray(a))a=Wd(a,b);else if(yd(a)){var c={},d;for(d in a)c[d]=Xd(a[d],b);a=c}else a=b(a);return a}};
Wd=function(a,b){for(var c=a.slice(),d=0;d<c.length;d++)c[d]=Xd(c[d],b);if(b=Array.isArray(a)){var e;wd?e=a[wd]:e=a.i;b=(null==e?0:e)&1}b&&xd(c);return c};
Yd=function(a){if(a&&"object"==typeof a&&a.toJSON)return a.toJSON();a=Vd(a);return Array.isArray(a)?Wd(a,Yd):a};
Daa=function(a){return Qc(a)?new Uint8Array(a):a};
$d=function(a,b){Zd=b;a=new a(b);Zd=null;return a};
ae=function(a,b,c){var d=Zd;Zd=null;a||(a=d);d=this.constructor.xU;a||(a=d?[d]:[]);this.u=(d?0:-1)-(this.constructor.lfa||0);this.i=void 0;this.Kf=a;a:{d=this.Kf.length;a=d-1;if(d&&(d=this.Kf[a],yd(d))){this.B=a-this.u;this.j=d;break a}void 0!==b&&-1<b?(this.B=Math.max(b,a+1-this.u),this.j=void 0):this.B=Number.MAX_VALUE}if(c)for(b=0;b<c.length;b++)if(a=c[b],a<this.B)a+=this.u,(d=this.Kf[a])?Array.isArray(d)&&xd(d):this.Kf[a]=Dd;else{d=this.j||(this.j=this.Kf[this.B+this.u]={});var e=d[a];e?Array.isArray(e)&&
xd(e):d[a]=Dd}};
Eaa=function(a,b){return Vd(b)};
ce=function(a){be=!0;try{return JSON.stringify(a.toJSON(),Eaa)}finally{be=!1}};
de=function(a,b){return $d(a,b?JSON.parse(b):null)};
ee=function(a,b){b.Bw&&(a.Bw=b.Bw.slice());var c=b.i;if(c){b=b.j;for(var d in c){var e=c[d];if(e){var f=!(!b||!b[d]),k=+d;if(Array.isArray(e)){if(e.length)for(f=Od(a,e[0].constructor,k,f),k=0;k<Math.min(f.length,e.length);k++)ee(f[k],e[k])}else(f=Nd(a,e.constructor,k,void 0,f))&&ee(f,e)}}}};
he=function(a,b,c){if(c){var d={},e;for(e in c){var f=c[e],k=f.AZ;k||(d.Eu=f.tfa||f.hY.bC,f.nK?(d.mC=fe(f.nK),k=function(l){return function(m,n,p){return l.Eu(m,n,p,l.mC)}}(d)):f.LM?(d.nC=ge(f.xE.j,f.LM),k=function(l){return function(m,n,p){return l.Eu(m,n,p,l.nC)}}(d)):k=d.Eu,f.AZ=k);
k(b,a,f.xE);d={Eu:d.Eu,mC:d.mC,nC:d.nC}}}zaa(b,a)};
je=function(a,b,c){return a[ie]||(a[ie]=function(d,e){return b(d,e,c)})};
me=function(a){var b=a[ie];if(!b){var c=ke(a);b=function(d,e){return le(d,e,c)};
a[ie]=b}return b};
Faa=function(a){var b=a.nK;if(b)return me(b);if(b=a.sfa)return je(a.xE.j,b,a.LM)};
Gaa=function(a){var b=Faa(a),c=a.xE,d=a.hY.ql;return b?function(e,f){return d(e,f,c,b)}:function(e,f){return d(e,f,c)}};
ne=function(a,b,c,d,e,f){a=a();var k=0;a.length&&"number"!==typeof a[0]&&(c(b,a[0]),k++);for(;k<a.length;){c=a[k++];for(var l=k+1;l<a.length&&"number"!==typeof a[l];)l++;var m=a[k++];l-=k;switch(l){case 0:d(b,c,m);break;case 1:d(b,c,m,a[k++]);break;case 2:e(b,c,m,a[k++],a[k++]);break;case 3:l=a[k++];var n=a[k++],p=a[k++];Array.isArray(p)?e(b,c,m,l,n,p):f(b,c,m,l,n,p);break;case 4:f(b,c,m,a[k++],a[k++],a[k++],a[k++]);break;default:throw Error("unexpected number of binary field arguments: "+l);}}return b};
fe=function(a){var b=a[oe];if(!b){var c=pe(a);b=function(d,e){return qe(d,e,c)};
a[oe]=b}return b};
ge=function(a,b){var c=a[oe];c||(c=function(d,e){return he(d,e,b)},a[oe]=c);
return c};
Haa=function(a,b){a.push(b)};
Iaa=function(a,b,c){a.push(b,c.bC)};
Jaa=function(a,b,c,d,e){var f=fe(e),k=c.bC;a.push(b,function(l,m,n){return k(l,m,n,d,f)})};
Kaa=function(a,b,c,d,e,f){var k=ge(d,f),l=c.bC;a.push(b,function(m,n,p){return l(m,n,p,d,k)})};
pe=function(a){var b=a[re];return b?b:ne(a,a[re]=[],Haa,Iaa,Jaa,Kaa)};
Laa=function(a,b){a[0]=b};
Maa=function(a,b,c,d){var e=c.ql;a[b]=d?function(f,k,l){return e(f,k,l,d)}:e};
Naa=function(a,b,c,d,e,f){var k=c.ql,l=me(e);a[b]=function(m,n,p){return k(m,n,p,d,l,f)}};
Oaa=function(a,b,c,d,e,f,k){var l=c.ql,m=je(d,e,f);a[b]=function(n,p,r){return l(n,p,r,d,m,k)}};
ke=function(a){var b=a[se];return b?b:ne(a,a[se]={},Laa,Maa,Naa,Oaa)};
le=function(a,b,c){for(;ed(b)&&4!=b.j;){var d=b.u,e=c[d];if(!e){var f=c[0];f&&(f=f[d])&&(e=c[d]=Gaa(f))}e&&e(b,a,d)||(e=b,d=a,f=e.B,fd(e),e.lE||(e=Vc(e.i.j,f,e.i.i),(f=d.Bw)?f.push(e):d.Bw=[e]))}return a};
qe=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]);he(a,b,e?c[0]:void 0)};
g.te=function(a,b){var c=new yaa;qe(a,c,pe(b));rd(c,c.i.end());a=new Uint8Array(c.j);b=c.u;for(var d=b.length,e=0,f=0;f<d;f++){var k=b[f];a.set(k,e);e+=k.length}c.u=[a];return a};
g.ue=function(a,b){return{ql:a,bC:b}};
g.xe=function(a,b,c){b=g.Cd(b,c);if(null!=b){g.sd(a,c,1);a=a.i;var d=b;d=(c=0>d?1:0)?-d:d;if(0===d)g.ve=0<1/d?0:2147483648,g.we=0;else if(isNaN(d))g.ve=2147483647,g.we=4294967295;else if(1.7976931348623157E308<d)g.ve=(c<<31|2146435072)>>>0,g.we=0;else if(2.2250738585072014E-308>d)b=d/Math.pow(2,-1074),g.ve=(c<<31|b/4294967296)>>>0,g.we=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.ve=(c<<31|b+1023<<20|1048576*d&1048575)>>>0;g.we=4503599627370496*
d>>>0}g.qd(a,g.we);g.qd(a,g.ve)}};
g.ye=function(a,b,c){b=g.Cd(b,c);if(null!=b&&null!=b){g.sd(a,c,0);a=a.i;var d=b;c=0>d;d=Math.abs(d);b=d>>>0;d=Math.floor((d-b)/4294967296);d>>>=0;c&&(d=~d>>>0,b=(~b>>>0)+1,4294967295<b&&(b=0,d++,4294967295<d&&(d=0)));g.we=b;g.ve=d;c=g.we;for(b=g.ve;0<b||127<c;)a.i.push(c&127|128),c=(c>>>7|b<<25)>>>0,b>>>=7;a.i.push(c)}};
g.ze=function(a,b,c){b=g.Cd(b,c);null!=b&&null!=b&&(g.sd(a,c,0),pd(a.i,b))};
g.Ae=function(a,b,c){b=g.Cd(b,c);null!=b&&g.vd(a,c,g.fb(b))};
g.De=function(a,b,c,d,e){b=Nd(b,d,c);null!=b&&(c=td(a,c),e(b,a),ud(a,c))};
Ee=function(a,b,c,d,e){return new Caa(a,b,c,d,void 0===e?0:e)};
Aaa=function(a){var b=this.j,c=this.i;return this.isRepeated?Od(a,b,c,!0):Nd(a,b,c,void 0,!0)};
Baa=function(a,b){var c=this.i;return this.isRepeated?Rd(a,c,b,!0):Pd(a,c,b,!0)};
Fe=function(){ae.apply(this,arguments)};
Ge=function(a){return null===a?void 0:a};
g.E=function(){Fe.apply(this,arguments)};
He=function(a){g.E.call(this,a)};
Paa=function(){return[1,Ie,2,Ie]};
Je=function(a){g.E.call(this,a)};
Qaa=function(){return[1,Ie,2,Ie]};
Ke=function(a){g.E.call(this,a)};
Raa=function(){return[1,Ie,2,Ie]};
Le=function(a){g.E.call(this,a)};
Saa=function(){return[1,g.Me,He,Paa,Ne,2,g.Me,Je,Qaa,Ne,3,g.Me,Ke,Raa,Ne]};
Oe=function(a){this.yK=a};
Pe=function(a,b,c){this.j=a;this.B=b;this.i=c||[];this.us=new Map};
Qe=function(a,b){Pe.call(this,a,3,b)};
Re=function(a,b){Pe.call(this,a,2,b)};
g.Se=function(a){a&&"function"==typeof a.dispose&&a.dispose()};
g.Te=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];g.Na(d)?g.Te.apply(null,d):g.Se(d)}};
g.G=function(){this.gi=this.gi;this.Fh=this.Fh};
g.J=function(a,b){g.Ue(a,g.Sa(g.Se,b))};
g.Ue=function(a,b){a.gi?b():(a.Fh||(a.Fh=[]),a.Fh.push(b))};
g.Ve=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.j=!1};
Taa=function(a){var b=g.Ja("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(k){d="Not available",c=!0}try{var e=a.fileName||a.filename||a.sourceURL||g.C.$googDebugFname||b}catch(k){e="Not available",c=!0}b=We(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,Xe[c])c=Xe[c];else{c=String(c);if(!Xe[c]){var f=/function\s+([^\(]+)/m.exec(c);Xe[c]=f?f[1]:"[Anonymous]"}c=Xe[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}};
We=function(a,b){b||(b={});b[Ye(a)]=!0;var c=a.stack||"";(a=a.pS)&&!b[Ye(a)]&&(c+="\nCaused by: ",a.stack&&0==a.stack.indexOf(a.toString())||(c+="string"===typeof a?a:a.message+"\n"),c+=We(a,b));return c};
Ye=function(a){var b="";"function"===typeof a.toString&&(b=""+a);return b+a.stack};
$e=function(a){return g.Ze?"webkit"+a:a.toLowerCase()};
af=function(a,b){g.Ve.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.i=null;a&&this.init(a,b)};
cf=function(a){return!(!a||!a[bf])};
Vaa=function(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.Ke=e;this.key=++Uaa;this.Cx=this.Vy=!1};
df=function(a){a.Cx=!0;a.listener=null;a.proxy=null;a.src=null;a.Ke=null};
g.ef=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};
g.hf=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};
jf=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c};
g.kf=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1};
lf=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0};
mf=function(a){for(var b in a)return b};
nf=function(a){for(var b in a)return a[b]};
of=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};
g.pf=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
qf=function(a,b){return null!==a&&b in a};
g.rf=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};
sf=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d};
tf=function(a,b){return(b=sf(a,b,void 0))&&a[b]};
g.uf=function(a){for(var b in a)return!1;return!0};
g.vf=function(a){for(var b in a)delete a[b]};
wf=function(a,b,c){return null!==a&&b in a?a[b]:c};
g.xf=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.yf=function(a){var b={},c;for(c in a)b[c]=a[c];return b};
g.zf=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.zf(a[c]);return b};
g.Bf=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<Af.length;f++)c=Af[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};
Cf=function(a){var b=a;Object.isFrozen&&!Object.isFrozen(a)&&(b=Object.create(a),Object.freeze(b));return b};
Df=function(a){this.src=a;this.listeners={};this.i=0};
Ef=function(a,b){var c=b.type;c in a.listeners&&g.fc(a.listeners[c],b)&&(df(b),0==a.listeners[c].length&&(delete a.listeners[c],a.i--))};
Ff=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.Cx&&f.listener==b&&f.capture==!!c&&f.Ke==d)return e}return-1};
Jf=function(a,b,c,d,e){if(d&&d.once)return Gf(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)Jf(a,b[f],c,d,e);return null}c=Kf(c);return cf(a)?a.Pa(b,c,g.Oa(d)?!!d.capture:!!d,e):Lf(a,b,c,!1,d,e)};
Lf=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var k=g.Oa(e)?!!e.capture:!!e,l=Mf(a);l||(a[Nf]=l=new Df(a));c=l.add(b,c,d,k,f);if(c.proxy)return c;d=Waa();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)Xaa||(e=k),void 0===e&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(Of(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");Pf++;return c};
Waa=function(){function a(c){return b.call(a.src,a.listener,c)}
var b=Yaa;return a};
Gf=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)Gf(a,b[f],c,d,e);return null}c=Kf(c);return cf(a)?a.tA(b,c,g.Oa(d)?!!d.capture:!!d,e):Lf(a,b,c,!0,d,e)};
Qf=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)Qf(a,b[f],c,d,e);else d=g.Oa(d)?!!d.capture:!!d,c=Kf(c),cf(a)?a.xc(b,c,d,e):a&&(a=Mf(a))&&(b=a.gw(b,c,d,e))&&Rf(b)};
Rf=function(a){if("number"!==typeof a&&a&&!a.Cx){var b=a.src;if(cf(b))Ef(b.u,a);else{var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(Of(c),d):b.addListener&&b.removeListener&&b.removeListener(d);Pf--;(c=Mf(b))?(Ef(c,a),0==c.i&&(c.src=null,b[Nf]=null)):df(a)}}};
Of=function(a){return a in Sf?Sf[a]:Sf[a]="on"+a};
Yaa=function(a,b){if(a.Cx)a=!0;else{b=new af(b,this);var c=a.listener,d=a.Ke||a.src;a.Vy&&Rf(a);a=c.call(d,b)}return a};
Mf=function(a){a=a[Nf];return a instanceof Df?a:null};
Kf=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.G.call(this);this.u=new Df(this);this.fb=this;this.La=null};
Vf=function(a,b,c,d){b=a.u.listeners[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var k=b[f];if(k&&!k.Cx&&k.capture==c){var l=k.listener,m=k.Ke||k.src;k.Vy&&Ef(a.u,k);e=!1!==l.call(m,d)&&e}}return e&&!d.defaultPrevented};
Wf=function(a,b){this.u=a;this.B=b;this.j=0;this.i=null};
Xf=function(a,b){a.B(b);100>a.j&&(a.j++,b.next=a.i,a.i=b)};
Yf=function(a){return function(){return a}};
Zf=function(){};
$f=function(a){var b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};
ag=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}};
bg=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}};
Zaa=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:Va,createScript:Va,createScriptURL:Va})}catch(c){g.C.console&&g.C.console.error(c.message)}eg=a}else eg=a}return eg};
ig=function(a,b){this.i=a===gg&&b||"";this.j=hg};
jg=function(a){return a instanceof ig&&a.constructor===ig&&a.j===hg?a.i:"type_error:Const"};
g.kg=function(a){return new ig(gg,a)};
mg=function(a,b){this.i=b===lg?a:"";this.Zk=!0};
og=function(a,b){this.i=b===ng?a:""};
pg=function(a){return a instanceof og&&a.constructor===og?a.i:"type_error:TrustedResourceUrl"};
bba=function(a,b){var c=jg(a);if(!$aa.test(c))throw Error("Invalid TrustedResourceUrl format: "+c);a=c.replace(aba,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 ig?jg(d):encodeURIComponent(String(d))});
return qg(a)};
qg=function(a){var b=fg();a=b?b.createScriptURL(a):a;return new og(a,ng)};
g.sg=function(a,b){this.i=b===rg?a:""};
g.tg=function(a){return a instanceof g.sg&&a.constructor===g.sg?a.i:"type_error:SafeUrl"};
ug=function(a){a=String(a);a=a.replace(/(%0A|%0D)/g,"");var b=a.match(cba);return b&&dba.test(b[1])?new g.sg(a,rg):null};
g.xg=function(a){a instanceof g.sg||(a="object"==typeof a&&a.Zk?a.Kh():String(a),a=vg.test(a)?new g.sg(a,rg):ug(a));return a||wg};
g.yg=function(a,b){if(a instanceof g.sg)return a;a="object"==typeof a&&a.Zk?a.Kh():String(a);if(b&&/^data:/i.test(a)&&(b=ug(a)||wg,b.Kh()==a))return b;vg.test(a)||(a="about:invalid#zClosurez");return new g.sg(a,rg)};
Ag=function(a,b){this.i=b===zg?a:"";this.Zk=!0};
Bg=function(a){return a instanceof Ag&&a.constructor===Ag?a.i:"type_error:SafeStyle"};
Eg=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(Cg).join(" "):Cg(d),b+=c+":"+d+";")}return b?new Ag(b,zg):Dg};
eba=function(a){function b(d){Array.isArray(d)?d.forEach(b):c+=Bg(d)}
var c="";Array.prototype.forEach.call(arguments,b);return c?new Ag(c,zg):Dg};
Cg=function(a){if(a instanceof g.sg)return'url("'+g.tg(a).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';a=a instanceof ig?jg(a):fba(String(a));if(/[{;}]/.test(a))throw new ab("Value does not allow [{;}], got: %s.",[a]);return a};
fba=function(a){var b=a.replace(Fg,"$1").replace(Fg,"$1").replace(Gg,"url");if(gba.test(b)){if(hba.test(a))return"zClosurez";for(var c=b=!0,d=0;d<a.length;d++){var e=a.charAt(d);"'"==e&&c?b=!b:'"'==e&&b&&(c=!c)}if(!b||!c||!iba(a))return"zClosurez"}else return"zClosurez";return jba(a)};
iba=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};
jba=function(a){return a.replace(Gg,function(b,c,d,e){var f="";d=d.replace(/^(['"])(.*)\1$/,function(k,l,m){f=l;return m});
b=g.xg(d).Kh();return c+f+b+f+e})};
Ig=function(a,b,c){this.i=c===Hg?a:"";this.j=b;this.Zk=this.iF=!0};
g.Jg=function(a){return a instanceof Ig&&a.constructor===Ig?a.i:"type_error:SafeHtml"};
Lg=function(a){if(a instanceof Ig)return a;var b="object"==typeof a,c=null;b&&a.iF&&(c=a.Ir());return Kg(tb(b&&a.Zk?a.Kh():String(a)),c)};
kba=function(a){function b(f){Array.isArray(f)?f.forEach(b):(f=Lg(f),e.push(g.Jg(f).toString()),f=f.Ir(),0==d?d=f:0!=f&&d!=f&&(d=null))}
var c=Lg(Mg),d=c.Ir(),e=[];a.forEach(b);return Kg(e.join(g.Jg(c).toString()),d)};
lba=function(a){return kba(Array.prototype.slice.call(arguments))};
Kg=function(a,b){var c=fg();a=c?c.createHTML(a):a;return new Ig(a,b,Hg)};
g.Sg=function(a,b){jg(a);jg(a);return Kg(b,null)};
mba=function(a,b){jg(a);jg(a);return new Ag(b,zg)};
Tg=function(a,b){jg(a);jg(a);return qg(b)};
g.Ug=function(a,b){if(nba())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=g.Jg(b)};
g.Vg=function(a,b){b=b instanceof g.sg?b:g.yg(b);a.href=g.tg(b)};
Wg=function(a,b,c,d){a=a instanceof g.sg?a:g.yg(a);b=b||g.C;c=c instanceof ig?jg(c):c||"";return void 0!==d?b.open(g.tg(a),c,d):b.open(g.tg(a),c)};
Xg=function(){a:{var a=g.C.document;if(a.querySelector&&(a=a.querySelector("script[nonce]"))&&(a=a.nonce||a.getAttribute("nonce"))&&oba.test(a))break a;a=""}return a};
pba=function(a,b){return a+Math.random()*(b-a)};
g.Yg=function(a,b,c){return Math.min(Math.max(a,b),c)};
g.Zg=function(a,b){a%=b;return 0>a*b?a+b:a};
g.$g=function(a,b,c){return a+c*(b-a)};
ah=function(a,b){return 1E-6>=Math.abs(a-b)};
g.bh=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0};
ch=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1};
g.dh=function(a,b){this.width=a;this.height=b};
g.eh=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};
fh=function(a){return a.width*a.height};
gh=function(a){return encodeURIComponent(String(a))};
hh=function(a){return decodeURIComponent(a.replace(/\+/g," "))};
g.ih=function(a){return a=tb(a,void 0)};
g.jh=function(a){return null==a?"":String(a)};
kh=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};
lh=function(a){var b=Number(a);return 0==b&&g.lb(a)?NaN:b};
mh=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})};
nh=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()};
qba=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})};
rba=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};
rh=function(a){return a?new oh(ph(a)):qh||(qh=new oh)};
sh=function(a){var b=document;return"string"===typeof a?b.getElementById(a):a};
g.th=function(a,b){return(b||document).getElementsByTagName(String(a))};
g.vh=function(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):g.uh(document,"*",a,b)};
g.wh=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.uh(c,"*",a,b)[0]||null}return a||null};
g.uh=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,k;k=a[f];f++)b==k.nodeName&&(d[e++]=k);d.length=e;return d}return a}a=a.getElementsByTagName(b||"*");if(c){d={};for(f=e=0;k=a[f];f++)b=k.className,"function"==typeof b.split&&g.$b(b.split(/\s+/),c)&&(d[e++]=k);d.length=e;return d}return a};
yh=function(a,b){g.ef(b,function(c,d){c&&"object"==typeof c&&c.Zk&&(c=c.Kh());"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:xh.hasOwnProperty(d)?a.setAttribute(xh[d],c):jb(d,"aria-")||jb(d,"data-")?a.setAttribute(d,c):a[d]=c})};
Gh=function(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new g.dh(a.clientWidth,a.clientHeight)};
Ih=function(a){var b=Hh(a);a=a.parentWindow||a.defaultView;return g.Nc&&g.Ec("10")&&a.pageYOffset!=b.scrollTop?new g.bh(b.scrollLeft,b.scrollTop):new g.bh(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};
Hh=function(a){return a.scrollingElement?a.scrollingElement:g.Ze||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement};
Jh=function(a){return a?a.parentWindow||a.defaultView:window};
Mh=function(a,b,c){var d=arguments,e=document,f=d[1],k=Kh(e,String(d[0]));f&&("string"===typeof f?k.className=f:Array.isArray(f)?k.className=f.join(" "):yh(k,f));2<d.length&&Lh(e,k,d,2);return k};
Lh=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.Na(f)||g.Oa(f)&&0<f.nodeType)e(f);else{a:{if(f&&"number"==typeof f.length){if(g.Oa(f)){var k="function"==typeof f.item||"string"==typeof f.item;break a}if("function"===typeof f){k="function"==typeof f.item;break a}}k=!1}g.uc(k?g.ic(f):f,e)}}};
g.Nh=function(a){return Kh(document,a)};
Kh=function(a,b){b=String(b);"application/xhtml+xml"===a.contentType&&(b=b.toLowerCase());return a.createElement(b)};
g.Oh=function(a){return document.createTextNode(String(a))};
g.Ph=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};
g.Qh=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)};
g.Rh=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null};
sba=function(a){return void 0!=a.children?a.children:Array.prototype.filter.call(a.childNodes,function(b){return 1==b.nodeType})};
g.Sh=function(a){var b;if(tba&&!(g.Nc&&g.Ec("9")&&!g.Ec("10")&&g.C.SVGElement&&a instanceof g.C.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return g.Oa(b)&&1==b.nodeType?b:null};
g.Th=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};
ph=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document};
g.Uh=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.Ph(a);var c=ph(a);a.appendChild(c.createTextNode(String(b)))}};
Wh=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")||Vh(a)):a.hasAttribute("tabindex")&&Vh(a))&&g.Nc){var c;"function"!==typeof a.getBoundingClientRect||g.Nc&&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};
Vh=function(a){a=a.tabIndex;return"number"===typeof a&&0<=a&&32768>a};
Yh=function(a,b,c,d){if(!b&&!c)return null;var e=b?String(b).toUpperCase():null;return Xh(a,function(f){return(!e||f.nodeName==e)&&(!c||"string"===typeof f.className&&g.$b(f.className.split(/\s+/),c))},!0,d)};
Xh=function(a,b,c,d){a&&!c&&(a=a.parentNode);for(c=0;a&&(null==d||c<=d);){if(b(a))return a;a=a.parentNode;c++}return null};
oh=function(a){this.i=a||g.C.document||document};
$h=function(a){"function"!==typeof g.C.setImmediate||g.C.Window&&g.C.Window.prototype&&!Fb()&&g.C.Window.prototype.setImmediate==g.C.setImmediate?(Zh||(Zh=uba()),Zh(a)):g.C.setImmediate(a)};
uba=function(){var a=g.C.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!Bb("Presto")&&(a=function(){var e=g.Nh("IFRAME");e.style.display="none";document.documentElement.appendChild(e);var f=e.contentWindow;e=f.document;e.open();e.close();var k="callImmediate"+Math.random(),l="file:"==f.location.protocol?"*":f.location.protocol+"//"+f.location.host;e=(0,g.Ra)(function(m){if(("*"==l||m.origin==l)&&m.data==k)this.port1.onmessage()},this);
f.addEventListener("message",e,!1);this.port1={};this.port2={postMessage:function(){f.postMessage(k,l)}}});
if("undefined"!==typeof a&&!Eb()){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.vK;c.vK=null;e()}};
return function(e){d.next={vK:e};d=d.next;b.port2.postMessage(0)}}return function(e){g.C.setTimeout(e,0)}};
ai=function(a){g.C.setTimeout(function(){throw a;},0)};
bi=function(){this.j=this.i=null};
ci=function(){this.next=this.scope=this.i=null};
g.gi=function(a,b){di||vba();ei||(di(),ei=!0);fi.add(a,b)};
vba=function(){if(g.C.Promise&&g.C.Promise.resolve){var a=g.C.Promise.resolve(void 0);di=function(){a.then(hi)}}else di=function(){$h(hi)}};
hi=function(){for(var a;a=fi.remove();){try{a.i.call(a.scope)}catch(b){ai(b)}Xf(ii,a)}ei=!1};
ji=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};
li=function(a){this.i=0;this.J=void 0;this.B=this.j=this.u=null;this.C=this.I=!1;if(a!=g.Ka)try{var b=this;a.call(void 0,function(c){ki(b,2,c)},function(c){ki(b,3,c)})}catch(c){ki(this,3,c)}};
mi=function(){this.next=this.context=this.onRejected=this.j=this.i=null;this.u=!1};
oi=function(a,b,c){var d=ni.get();d.j=a;d.onRejected=b;d.context=c;return d};
pi=function(a){if(a instanceof li)return a;var b=new li(g.Ka);ki(b,2,a);return b};
qi=function(a){return new li(function(b,c){c(a)})};
si=function(a,b,c){ri(a,b,c,null)||g.gi(g.Sa(b,a))};
wba=function(a){return new li(function(b,c){a.length||b(void 0);for(var d=0,e;d<a.length;d++)e=a[d],si(e,b,c)})};
xba=function(a){return new li(function(b,c){var d=a.length,e=[];if(d)for(var f=function(n,p){d--;e[n]=p;0==d&&b(e)},k=function(n){c(n)},l=0,m;l<a.length;l++)m=a[l],si(m,g.Sa(f,l),k);
else b(e)})};
ui=function(a,b){b=oi(b,b,void 0);b.u=!0;ti(a,b);return a};
vi=function(a,b){if(0==a.i)if(a.u){var c=a.u;if(c.j){for(var d=0,e=null,f=null,k=c.j;k&&(k.u||(d++,k.i==a&&(e=k),!(e&&1<d)));k=k.next)e||(f=k);e&&(0==c.i&&1==d?vi(c,b):(f?(d=f,d.next==c.B&&(c.B=d),d.next=d.next.next):wi(c),xi(c,e,3,b)))}a.u=null}else ki(a,3,b)};
ti=function(a,b){a.j||2!=a.i&&3!=a.i||yi(a);a.B?a.B.next=b:a.j=b;a.B=b};
Ai=function(a,b,c,d){var e=oi(null,null,null);e.i=new li(function(f,k){e.j=b?function(l){try{var m=b.call(d,l);f(m)}catch(n){k(n)}}:f;
e.onRejected=c?function(l){try{var m=c.call(d,l);void 0===m&&l instanceof zi?k(l):f(m)}catch(n){k(n)}}:k});
e.i.u=a;ti(a,e);return e.i};
ki=function(a,b,c){0==a.i&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.i=1,ri(c,a.iZ,a.jZ,a)||(a.J=c,a.i=b,a.u=null,yi(a),3!=b||c instanceof zi||yba(a,c)))};
ri=function(a,b,c,d){if(a instanceof li)return ti(a,oi(b||g.Ka,c||null,d)),!0;if(ji(a))return a.then(b,c,d),!0;if(g.Oa(a))try{var e=a.then;if("function"===typeof e)return zba(a,e,b,c,d),!0}catch(f){return c.call(d,f),!0}return!1};
zba=function(a,b,c,d,e){function f(m){l||(l=!0,d.call(e,m))}
function k(m){l||(l=!0,c.call(e,m))}
var l=!1;try{b.call(a,k,f)}catch(m){f(m)}};
yi=function(a){a.I||(a.I=!0,g.gi(a.ZS,a))};
wi=function(a){var b=null;a.j&&(b=a.j,a.j=b.next,b.next=null);a.j||(a.B=null);return b};
xi=function(a,b,c,d){if(3==c&&b.onRejected&&!b.u)for(;a&&a.C;a=a.u)a.C=!1;if(b.i)b.i.u=null,Bi(b,c,d);else try{b.u?b.j.call(b.context):Bi(b,c,d)}catch(e){Ci.call(null,e)}Xf(ni,b)};
Bi=function(a,b,c){2==b?a.j.call(a.context,c):a.onRejected&&a.onRejected.call(a.context,c)};
yba=function(a,b){a.C=!0;g.gi(function(){a.C&&Ci.call(null,b)})};
zi=function(a){$a.call(this,a)};
g.Di=function(a,b){g.Uf.call(this);this.Zf=a||1;this.Zx=b||g.C;this.oK=(0,g.Ra)(this.WY,this);this.xM=g.Ta()};
g.Ei=function(a,b,c){if("function"===typeof a)c&&(a=(0,g.Ra)(a,c));else if(a&&"function"==typeof a.handleEvent)a=(0,g.Ra)(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:g.C.setTimeout(a,b||0)};
Fi=function(a,b){var c=null;return(new li(function(d,e){c=g.Ei(function(){d(b)},a);
-1==c&&e(Error("Failed to schedule timer."))})).yh(function(d){g.C.clearTimeout(c);
throw d;})};
g.Gi=function(a){this.J=a;this.i=new Map;this.I=new Set;this.u=0;this.B=100;this.flushInterval=3E4;this.j=new g.Di(this.flushInterval);this.j.Pa("tick",this.UO,!1,this);this.C=!1};
Hi=function(a){a.j.enabled||a.j.start();a.u++;a.u>=a.B&&a.UO()};
Ii=function(a,b){return a.I.has(b)?void 0:a.i.get(b)};
Aba=function(a){for(var b=0;b<a.length;b++)a[b].clear()};
Ji=function(a){this.i=a;this.i.eK("/client_streamz/po/w/rl",{Jn:3,In:"mn"},{Jn:2,In:"ac"},{Jn:2,In:"sc"},{Jn:3,In:"rk"})};
Ki=function(a){this.i=a;this.i.eK("/client_streamz/po/w/el",{Jn:3,In:"en"},{Jn:3,In:"rk"})};
Bba=function(a){this.i=a;this.i.Ny("/client_streamz/po/w/cec",{Jn:2,In:"ec"},{Jn:3,In:"rk"})};
Li=function(a){g.E.call(this,a,-1,Cba)};
g.Mi=function(a){g.E.call(this,a,-1,Dba)};
g.Ni=function(a){g.E.call(this,a)};
g.Ui=function(a){g.E.call(this,a)};
Vi=function(a){g.E.call(this,a,-1,Eba)};
g.Yi=function(a){var b=new Li;b=g.D(b,1,a.j);for(var c=[],d=0;d<a.i.length;d++)c.push(a.i[d].In);b=Id(b,3,c);c=[];d=[];for(var e=g.q(a.us.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 k=a.B;for(var l=a.FE(f)||[],m=[],n=0;n<l.length;n++){var p=l[n];p=p&&p.yK;var r=new g.Ui;switch(k){case 3:g.Ld(r,1,g.Wi,Number(p));break;case 2:g.Ld(r,2,g.Wi,Number(p))}m.push(r)}k=m;for(l=0;l<k.length;l++){m=k[l];n=new g.Mi;m=Pd(n,2,m);n=f;p=[];r=a;for(var t=[],
w=0;w<r.i.length;w++)t.push(r.i[w].Jn);r=t;for(t=0;t<r.length;t++){w=r[t];var x=n[t],y=new g.Ni;switch(w){case 3:g.Ld(y,1,g.Xi,String(x));break;case 2:g.Ld(y,2,g.Xi,Number(x));break;case 1:g.Ld(y,3,g.Xi,"true"==x)}p.push(y)}Rd(m,1,p);c.push(m)}}Rd(b,4,c);return b};
Zi=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};
Fba=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;p=n=0}
function b(r){for(var t=k,w=0;64>w;w+=4)t[w/4]=r[w]<<24|r[w+1]<<16|r[w+2]<<8|r[w+3];for(w=16;80>w;w++)r=t[w-3]^t[w-8]^t[w-14]^t[w-16],t[w]=(r<<1|r>>>31)&4294967295;r=e[0];var x=e[1],y=e[2],z=e[3],F=e[4];for(w=0;80>w;w++){if(40>w)if(20>w){var I=z^x&(y^z);var H=1518500249}else I=x^y^z,H=1859775393;else 60>w?(I=x&y|z&(x|y),H=2400959708):(I=x^y^z,H=3395469782);I=((r<<5|r>>>27)&4294967295)+I+F+H+t[w]&4294967295;F=z;z=y;y=(x<<30|x>>>2)&4294967295;x=r;r=I}e[0]=e[0]+r&4294967295;e[1]=e[1]+x&4294967295;e[2]=
e[2]+y&4294967295;e[3]=e[3]+z&4294967295;e[4]=e[4]+F&4294967295}
function c(r,t){if("string"===typeof r){r=unescape(encodeURIComponent(r));for(var w=[],x=0,y=r.length;x<y;++x)w.push(r.charCodeAt(x));r=w}t||(t=r.length);w=0;if(0==n)for(;w+64<t;)b(r.slice(w,w+64)),w+=64,p+=64;for(;w<t;)if(f[n++]=r[w++],p++,64==n)for(n=0,b(f);w+64<t;)b(r.slice(w,w+64)),w+=64,p+=64}
function d(){var r=[],t=8*p;56>n?c(l,56-n):c(l,64-(n-56));for(var w=63;56<=w;w--)f[w]=t&255,t>>>=8;b(f);for(w=t=0;5>w;w++)for(var x=24;0<=x;x-=8)r[t++]=e[w]>>x&255;return r}
for(var e=[],f=[],k=[],l=[128],m=1;64>m;++m)l[m]=0;var n,p;a();return{reset:a,update:c,digest:d,MS:function(){for(var r=d(),t="",w=0;w<r.length;w++)t+="0123456789ABCDEF".charAt(Math.floor(r[w]/16))+"0123456789ABCDEF".charAt(r[w]%16);return t}}};
$i=function(a,b,c){var d=String(g.C.location.href);return d&&a&&b?[b,Gba(Zi(d),a,c||null)].join(" "):null};
Gba=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],g.uc(d,function(l){e.push(l)}),aj(e.join(" "));
var f=[],k=[];g.uc(c,function(l){k.push(l.key);f.push(l.value)});
c=Math.floor((new Date).getTime()/1E3);e=g.ac(f)?[c,b,a]:[f.join(":"),c,b,a];g.uc(d,function(l){e.push(l)});
a=aj(e.join(" "));a=[c,a];g.ac(k)||a.push(k.join(""));return a.join("_")};
aj=function(a){var b=Fba();b.update(a);return b.MS().toLowerCase()};
bj=function(a){this.i=a||{cookie:""}};
cj=function(a){a=(a.i.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=vb(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}};
dj=function(a){return!!Hba.FPA_SAMESITE_PHASE2_MOD||!(void 0===a||!a)};
ej=function(a){a=void 0===a?!1:a;var b=g.C.__SAPISID||g.C.__APISID||g.C.__3PSAPISID||g.C.__OVERRIDE_SID;dj(a)&&(b=b||g.C.__1PSAPISID);if(b)return!0;var c=new bj(document);b=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID")||c.get("SID");dj(a)&&(b=b||c.get("__Secure-1PAPISID"));return!!b};
fj=function(a,b,c,d){(a=g.C[a])||(a=(new bj(document)).get(b));return a?$i(a,c,d):null};
gj=function(a,b){b=void 0===b?!1:b;var c=Zi(String(g.C.location.href)),d=[];if(ej(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 bj(document),e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID"));(e=e?$i(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e);c&&dj(b)&&((b=fj("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&d.push(b),(a=fj("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",a))&&d.push(a))}return 0==
d.length?null:d.join(" ")};
hj=function(a){g.E.call(this,a,-1,Iba)};
ij=function(){};
g.jj=function(a,b,c,d){this.B=a;this.C=b;this.i=this.u=a;this.I=c||0;this.J=d||2};
g.kj=function(a){a.i=Math.min(a.C,a.i*a.J);a.u=Math.min(a.C,a.i+(a.I?Math.round(a.I*(Math.random()-.5)*2*a.i):0));a.j++};
g.mj=function(a){var b=[];lj(new Jba,a,b);return b.join("")};
Jba=function(){};
lj=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),lj(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),nj(d,c),c.push(":"),lj(a,f,c),e=","));c.push("}");return}}switch(typeof b){case "string":nj(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);}}};
nj=function(a,b){b.push('"',a.replace(Kba,function(c){var d=oj[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).substr(1),oj[c]=d);return d}),'"')};
Lba=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"}};
pj=function(){};
qj=function(){};
rj=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};
sj=function(a,b,c,d,e,f,k){var l="";a&&(l+=a+":");c&&(l+="//",b&&(l+=b+"@"),l+=c,d&&(l+=":"+d));e&&(l+=e);f&&(l+="?"+f);k&&(l+="#"+k);return l};
tj=function(a){return a?decodeURI(a):a};
g.vj=function(a,b){return b.match(uj)[a]||null};
g.wj=function(a){return tj(g.vj(3,a))};
xj=function(a){a=a.match(uj);return sj(a[1],null,a[3],a[4])};
yj=function(a){a=a.match(uj);return sj(null,null,null,null,a[5],a[6],a[7])};
zj=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?hh(e):"")}}};
Aj=function(a){var b=a.indexOf("#");0>b&&(b=a.length);var c=a.indexOf("?");if(0>c||c>b){c=b;var d=""}else d=a.substring(c+1,b);return[a.substr(0,c),d,a.substr(b)]};
Bj=function(a,b){return b?a?a+"&"+b:b:a};
Cj=function(a,b){if(!b)return a;a=Aj(a);a[1]=Bj(a[1],b);return a[0]+(a[1]?"?"+a[1]:"")+a[2]};
Dj=function(a,b,c){if(Array.isArray(b))for(var d=0;d<b.length;d++)Dj(a,String(b[d]),c);else null!=b&&c.push(a+(""===b?"":"="+gh(b)))};
Ej=function(a,b){var c=[];for(b=b||0;b<a.length;b+=2)Dj(a[b],a[b+1],c);return c.join("&")};
g.Fj=function(a){var b=[],c;for(c in a)Dj(c,a[c],b);return b.join("&")};
Gj=function(a,b){var c=2==arguments.length?Ej(arguments[1],0):Ej(arguments,1);return Cj(a,c)};
g.Hj=function(a,b){b=g.Fj(b);return Cj(a,b)};
Ij=function(a,b,c){c=null!=c?"="+gh(c):"";return Cj(a,b+c)};
Jj=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};
Lj=function(a,b){var c=a.search(Kj),d=Jj(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 hh(a.substr(d,e-d))};
Mj=function(a,b){for(var c=a.search(Kj),d=0,e,f=[];0<=(e=Jj(a,d,b,c));)f.push(a.substring(d,e)),d=Math.min(a.indexOf("&",e)+1||c,c);f.push(a.substr(d));return f.join("").replace(Mba,"$1")};
Nj=function(a,b,c){return Ij(Mj(a,b),b,c)};
Nba=function(a,b){a=Aj(a);var c=a[1],d=[];c&&c.split("&").forEach(function(e){var f=e.indexOf("=");b.hasOwnProperty(0<=f?e.substr(0,f):e)||d.push(e)});
a[1]=Bj(d.join("&"),g.Fj(b));return a[0]+(a[1]?"?"+a[1]:"")+a[2]};
g.Oj=function(a){g.Uf.call(this);this.headers=new Map;this.ya=a||null;this.C=!1;this.xa=this.i=null;this.Ta=this.W="";this.j=0;this.B="";this.I=this.Ia=this.Y=this.Ha=!1;this.J=0;this.ea=null;this.Qa="";this.va=this.N=!1};
Oba=function(a,b,c,d,e,f,k){var l=new g.Oj;Pj.push(l);b&&l.Pa("complete",b);l.tA("ready",l.vS);f&&(l.J=Math.max(0,f));k&&(l.N=k);l.send(a,c,d,e)};
Pba=function(a){return g.Nc&&g.Ec(9)&&"number"===typeof a.timeout&&void 0!==a.ontimeout};
Sj=function(a,b){a.C=!1;a.i&&(a.I=!0,a.i.abort(),a.I=!1);a.B=b;a.j=5;Qj(a);Rj(a)};
Qj=function(a){a.Ha||(a.Ha=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
Xj=function(a){if(a.C&&"undefined"!=typeof Tj)if(a.xa[1]&&4==g.Uj(a)&&2==a.getStatus())Vj(a,"Local request error detected and ignored");else if(a.Y&&4==g.Uj(a))g.Ei(a.KN,0,a);else if(a.dispatchEvent("readystatechange"),a.isComplete()){Vj(a,"Request complete");a.C=!1;try{if(Wj(a))a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.j=6;try{var b=2<g.Uj(a)?a.i.statusText:""}catch(c){b=""}a.B=b+" ["+a.getStatus()+"]";Qj(a)}}finally{Rj(a)}}};
Rj=function(a,b){if(a.i){kk(a);var c=a.i,d=a.xa[0]?g.Ka:null;a.i=null;a.xa=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){}}};
kk=function(a){a.i&&a.va&&(a.i.ontimeout=null);a.ea&&(g.C.clearTimeout(a.ea),a.ea=null)};
Wj=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.vj(1,String(a.W)),!a&&g.C.self&&g.C.self.location&&(a=g.C.self.location.protocol,a=a.substr(0,a.length-1)),b=!Qba.test(a?a.toLowerCase():"");c=b}return c};
g.Uj=function(a){return a.i?a.i.readyState:0};
g.lk=function(a){try{return a.i?a.i.responseText:""}catch(b){return""}};
mk=function(a){try{if(!a.i)return null;if("response"in a.i)return a.i.response;switch(a.Qa){case "":case "text":return a.i.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in a.i)return a.i.mozResponseArrayBuffer}return null}catch(b){return null}};
Rba=function(a){return a.i&&a.isComplete()?a.i.getAllResponseHeaders()||"":""};
Sba=function(a){var b={};a=Rba(a).split("\r\n");for(var c=0;c<a.length;c++)if(!g.lb(a[c])){var d=rba(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 jf(b,function(k){return k.join(", ")})};
Vj=function(a,b){return b+" ["+a.Ta+" "+a.W+" "+a.getStatus()+"]"};
nk=function(a){g.E.call(this,a)};
ok=function(a){g.E.call(this,a)};
pk=function(a){g.E.call(this,a,31,Tba)};
qk=function(a){g.E.call(this,a,17,Uba)};
rk=function(a){g.E.call(this,a,6,Vba)};
sk=function(a){g.E.call(this,a)};
wk=function(a,b,c,d,e,f,k,l,m,n,p){g.Uf.call(this);var r=this;this.Y="";this.j=[];this.Wa="";this.Ya=this.Ha=-1;this.Qa=!1;this.N=this.B=null;this.J=0;this.jb=1;this.timeoutMillis=0;this.ya=!1;g.Uf.call(this);this.Ta=b||g.Ka;this.I=new tk(a,f);this.network=p||{send:d};this.kb=g.Sa(pba,0,1);this.va=e||null;this.W=c||null;this.xa=k||!1;this.pageId=m||null;this.logger=null;this.withCredentials=!l;this.Ia=f||!1;!this.Ia&&(65<=Mb("Chromium")||45<=Mb("Firefox")||12<=Mb("Safari")||Qb()&&g.xb(Tb(),12));a=
g.D(new ok,1,1);uk(this.I,a);this.C=new g.jj(1E4,3E5,.1);this.i=new g.Di(this.C.getValue());g.J(this,this.i);Jf(this.i,"tick",$f(vk(this,n)),!1,this);this.ea=new g.Di(6E5);g.J(this,this.ea);Jf(this.ea,"tick",$f(vk(this,n)),!1,this);this.xa||this.ea.start();this.Ia||(Jf(document,"visibilitychange",function(){"hidden"===document.visibilityState&&r.yE()}),Jf(document,"pagehide",this.yE,!1,this))};
vk=function(a,b){return b?function(){b().then(a.flush.bind(a))}:a.flush};
xk=function(a){a.va||(a.va=.01>a.kb()?"https://web.archive.org/web/20220130220643/https://www.google.com/log?format=json&hasfast=true":"https://web.archive.org/web/20220130220643/https://play.google.com/log?format=json&hasfast=true");return a.va};
yk=function(a,b){a.C=new g.jj(1>b?1:b,3E5,.1);a.i.setInterval(a.C.getValue())};
Xba=function(a){Wba(a,function(b,c){b=Ij(b,"format","json");b=Jh().navigator.sendBeacon(b,ce(c));a.ya&&!b&&(a.ya=!1);return b})};
Wba=function(a,b){if(0!==a.j.length){var c=Mj(xk(a),"format");c=Gj(c,"auth",a.Ta(),"authuser",a.W||"0");for(var d=0;10>d&&a.j.length;++d){var e=a.j.slice(0,32),f=a.I.Wd(e,a.J);if(!b(c,f))break;a.J=0;a.j=a.j.slice(e.length)}a.i.enabled&&a.i.stop()}};
zk=function(){g.Ve.call(this,"event-logged",void 0)};
tk=function(a,b){this.j=b=void 0===b?!1:b;this.locale=null;this.i=new qk;g.D(this.i,2,a);b||(this.locale=document.documentElement.getAttribute("lang"));uk(this,new ok)};
uk=function(a,b){Pd(a.i,1,b);g.Cd(b,1)||g.D(b,1,1);a.j||(b=Ak(a),g.Cd(b,5)||g.D(b,5,a.locale))};
Ak=function(a){a=Nd(a.i,ok,1);var b=Nd(a,nk,11);b||(b=new nk,Pd(a,11,b));return b};
Yba=function(a,b,c){Oba(a.url,function(d){d=d.target;Wj(d)?b(g.lk(d)):c(d.getStatus())},a.requestType,a.body,a.Nq,a.timeoutMillis,a.withCredentials)};
Bk=function(){this.u="https://web.archive.org/web/20220130220643/https://play.google.com/log?format=json&hasfast=true";this.B=!1;this.Y=Yba;this.i=""};
Ck=function(){var a="",b=!1,c="2";a=void 0===a?"":a;c=void 0===c?"":c;var d=new Bk;d.i="";""!=a&&(d.u=a);if(void 0===b?0:b)d.B=!0;c&&(d.j=c);this.i=d.Wd()};
Dk=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}};
Ek=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};
Fk=function(a,b){this.logger=a;this.i=b;this.startMillis=Date.now()};
Gk=function(){};
Hk=function(a){this.Vj=a;this.B=new Ck;this.i=new g.Gi(this.B);this.clientError=new Bba(this.i);this.j=new Ki(this.i);this.u=new Ji(this.i)};
Ik=function(a){g.E.call(this,a)};
Jk=function(a){g.E.call(this,a)};
Kk=function(a){g.E.call(this,a)};
Lk=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})};
Mk=function(a){this.i=!1;if(a.challenge instanceof Kk){var b=Hd(a.challenge,4,"");a=Hd(a.challenge,5,"")}else b=a.program,a=a.globalName;var c=new Lk;this.j=c.promise;this.u=g.q((0,g.C[a].a)(b,function(d,e){Promise.resolve().then(function(){c.resolve({kS:d,FY:e})})},!0)).next().value;
this.CY=c.promise.then(function(){})};
Zba=function(a){return Tg(g.kg("From proto message. b/12014412"),g.Cd(a,4)||"")};
$ba=function(){var a="undefined"!==typeof window?window.trustedTypes:void 0;return null!=a?a:null};
aca=function(){if(void 0===Nk)try{var a,b;Nk=null!=(b=null==(a=$ba())?void 0:a.createPolicy("google#safe",{createHTML:function(c){return c},
createScript:function(c){return c},
createScriptURL:function(c){return c}}))?b:null}catch(c){Nk=null}return Nk};
Ok=function(){};
Pk=function(a){this.i=a};
Qk=function(){};
Rk=function(a){this.i=a};
Sk=function(a){if(a instanceof Qk)if(a instanceof Rk)a=a.i;else throw Error("");else a=g.tg(a);return a};
Tk=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.Uk=function(a,b){a.src=pg(b);Tk(a)};
Vk=function(a,b){return a.parseFromString(g.Jg(b),"text/xml")};
Wk=function(){this.i={};this.j=null};
Xk=function(){Wk.i||(Wk.i=new Wk);return Wk.i};
cca=function(a){var b=Xk();return bca(b,Nd(a,Ik,1),Nd(a,Jk,2),Hd(a,3,""))};
bca=function(a,b,c,d){var e;if(!b&&!c)return Promise.resolve();if(!d)return Yk(b,c);(e=a.i)[d]||(e[d]=new Promise(function(f,k){Yk(b,c).then(function(){a.j=d;f()},function(l){delete a.i[d];
k(l)})}));
return a.i[d]};
Yk=function(a,b){return b?dca(b):a?eca(a):Promise.resolve()};
dca=function(a){return new Promise(function(b,c){var d=g.Nh("SCRIPT"),e=Zba(a);g.Uk(d,e);d.onload=function(){g.Rh(d);b()};
d.onerror=function(){g.Rh(d);c(Error("EWLS"))};
(g.th("HEAD")[0]||document.documentElement).appendChild(d)})};
eca=function(a){return new Promise(function(b){var c=g.Nh("SCRIPT");if(a){var d=g.Cd(a,6);if(null===d||void 0===d)var e=null;else{var f=null==(e=aca())?void 0:e.createScript(d);e=new Pk(null!=f?f:d,Zk)}}else e=null;if(e instanceof Ok)if(e instanceof Pk)e=e.i;else throw Error("");else e=e instanceof mg&&e.constructor===mg?e.i:"type_error:SafeScript";c.textContent=e;Tk(c);(g.th("HEAD")[0]||document.documentElement).appendChild(c);g.Rh(c);b()})};
$k=function(a){g.E.call(this,a)};
al=function(a){g.E.call(this,a)};
bl=function(a){g.E.call(this,a)};
cl=function(a,b,c){this.client=a;this.Vj=b;this.i=c};
fca=function(a){var b=Xk().j,c,d,e,f,k;return g.B(function(l){if(1==l.i)return c=new $k,Jd(c,1,a.Vj,""),b&&Jd(c,2,b,""),d=a.i(),g.A(l,a.client.create(c,d),2);e=l.j;f=zd(Hd(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 r=0;r<n.length;r+=8192)p+=String.fromCharCode.apply(null,Array.prototype.slice.call(n,r,r+8192));
n=p}n=de(Kk,n);return m.call(l,n)}k=Nd(e,Kk,1);if(!k)throw Error("Missing field");return l.return(k)})};
hca=function(a,b){var c,d;return g.B(function(e){c=a.i();var f=new al;f=Jd(f,1,a.Vj,"");d=Jd(f,2,b,"");f=e.return;var k=dl(a.client.i,"https://web.archive.org/web/20220130220643/https://jnn-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/GenerateIT",d,c||{},gca);return f.call(e,k)})};
el=function(a){this.i=a};
fl=function(a){g.E.call(this,a)};
gl=function(a,b,c){this.i=a;this.u=b;this.j=c};
hl=function(a,b,c){c=void 0===c?{}:c;this.rY=a;this.i=c;this.j=b};
il=function(a,b,c,d,e){this.name=a;this.methodType="unary";this.requestType=b;this.responseType=c;this.i=d;this.j=e};
jl=function(a,b,c){c=void 0===c?{}:c;return new gl(b,a,c)};
kl=function(a){g.E.call(this,a)};
ll=function(a){g.E.call(this,a)};
ml=function(a){g.E.call(this,a)};
nl=function(a){g.E.call(this,a,-1,ica)};
ol=function(a,b){this.J=a.JU;this.N=b;this.i=a.xhr;this.u=[];this.C=[];this.I=[];this.B=[];this.j=[];this.J&&jca(this)};
kca=function(a,b){Jf(a.i,"complete",function(){if(Wj(a.i)){var c=g.lk(a.i);if(b&&"text/plain"===a.i.getResponseHeader("Content-Type")){if(!atob)throw Error("Cannot decode Base64 response");c=atob(c)}try{var d=a.N(c)}catch(f){pl(a,new Ek(13,"Error when deserializing response data; error: "+f+(", response: "+c)));return}c=Dk(a.i.getStatus());ql(a,rl(a));0==c?sl(a,d):pl(a,new Ek(c,"Xhr succeeded but the status code is not 200"))}else{d=g.lk(a.i);var e={};d?(e=tl(a,d),d=e.code,c=e.details,e=e.metadata):
(d=2,c="Rpc failed due to xhr error. error code: "+a.i.j+", error: "+a.i.getLastError());ql(a,rl(a));pl(a,new Ek(d,c,e))}})};
jca=function(a){a.J.Im("data",function(b){if("1"in b){var c=b["1"];try{var d=a.N(c)}catch(e){pl(a,new Ek(13,"Error when deserializing response data; error: "+e+(", response: "+c)))}d&&sl(a,d)}if("2"in b)for(b=tl(a,b["2"]),c=0;c<a.I.length;c++)a.I[c](b)});
a.J.Im("end",function(){ql(a,rl(a));for(var b=0;b<a.B.length;b++)a.B[b]()});
a.J.Im("error",function(){if(0!=a.j.length){var b=a.i.j;0!==b||Wj(a.i)||(b=6);switch(b){case 0:var c=2;break;case 7:c=10;break;case 8:c=4;break;case 6:c=Dk(a.i.getStatus());break;default:c=14}ql(a,rl(a));pl(a,new Ek(c,Lba(b)+", error: "+a.i.getLastError()))}})};
rl=function(a){var b={},c=Sba(a.i);Object.keys(c).forEach(function(d){b[d]=c[d]});
return b};
tl=function(a,b){var c=2,d={};try{var e=de(nl,b);c=Ud(e,1);var f=e.getMessage();Od(e,ml,3).length&&(d["grpc-web-status-details-bin"]=b)}catch(k){a.i&&404===a.i.getStatus()?(c=5,f="Not Found: "+String(a.i.W)):(c=14,f="Unable to parse RpcStatus: "+k)}return{code:c,details:f,metadata:d}};
ul=function(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)};
sl=function(a,b){for(var c=0;c<a.u.length;c++)a.u[c](b)};
ql=function(a,b){for(var c=0;c<a.C.length;c++)a.C[c](b)};
pl=function(a,b){for(var c=0;c<a.j.length;c++)a.j[c](b)};
vl=function(a){this.C=a.zZ||null;this.u=a.LY||!1};
wl=function(a,b){g.Uf.call(this);this.va=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.W=new Headers;this.j=null;this.ea="GET";this.Y="";this.i=!1;this.N=this.B=this.C=null};
xl=function(a){a.B.read().then(a.uT.bind(a)).catch(a.Yz.bind(a))};
zl=function(a){a.readyState=4;a.C=null;a.B=null;a.N=null;yl(a)};
yl=function(a){a.onreadystatechange&&a.onreadystatechange.call(a)};
lca=function(a){if(a.Bi&&"function"==typeof a.Bi)return a.Bi();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.Na(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return of(a)};
mca=function(a){if(a.jm&&"function"==typeof a.jm)return a.jm();if(!a.Bi||"function"!=typeof a.Bi){if("undefined"!==typeof Map&&a instanceof Map)return Array.from(a.keys());if(!("undefined"!==typeof Set&&a instanceof Set)){if(g.Na(a)||"string"===typeof a){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return g.pf(a)}}};
nca=function(a,b,c){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,c);else if(g.Na(a)||"string"===typeof a)Array.prototype.forEach.call(a,b,c);else for(var d=mca(a),e=lca(a),f=e.length,k=0;k<f;k++)b.call(c,e[k],d&&d[k],a)};
g.Al=function(a,b){this.i=this.N=this.B="";this.u=null;this.C=this.J="";this.I=!1;var c;a instanceof g.Al?(this.I=void 0!==b?b:a.I,g.Bl(this,a.B),this.N=a.N,g.Cl(this,a.i),g.Dl(this,a.u),this.J=a.getPath(),El(this,a.j.clone()),this.C=a.C):a&&(c=String(a).match(uj))?(this.I=!!b,g.Bl(this,c[1]||"",!0),this.N=Ql(c[2]||""),g.Cl(this,c[3]||"",!0),g.Dl(this,c[4]),this.J=Ql(c[5]||"",!0),El(this,c[6]||"",!0),this.C=Ql(c[7]||"")):(this.I=!!b,this.j=new Rl(null,this.I))};
g.Bl=function(a,b,c){a.B=c?Ql(b,!0):b;a.B&&(a.B=a.B.replace(/:$/,""))};
g.Cl=function(a,b,c){a.i=c?Ql(b,!0):b};
g.Dl=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.u=b}else a.u=null};
El=function(a,b,c){b instanceof Rl?(a.j=b,oca(a.j,a.I)):(c||(b=Sl(b,pca)),a.j=new Rl(b,a.I))};
g.Tl=function(a,b,c){a.j.set(b,c)};
g.Ul=function(a){return a instanceof g.Al?a.clone():new g.Al(a,void 0)};
Ql=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""};
Sl=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,qca),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
qca=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};
Rl=function(a,b){this.j=this.i=null;this.u=a||null;this.B=!!b};
Vl=function(a){a.i||(a.i=new Map,a.j=0,a.u&&zj(a.u,function(b,c){a.add(hh(b),c)}))};
Xl=function(a,b){Vl(a);b=Wl(a,b);return a.i.has(b)};
g.Yl=function(a,b,c){a.remove(b);0<c.length&&(a.u=null,a.i.set(Wl(a,b),g.ic(c)),a.j=a.j+c.length)};
Wl=function(a,b){b=String(b);a.B&&(b=b.toLowerCase());return b};
oca=function(a,b){b&&!a.B&&(Vl(a),a.u=null,a.i.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(this.remove(d),g.Yl(this,e,c))},a));
a.B=b};
rca=function(a){var b="";g.ef(a,function(c,d){b+=d;b+=":";b+=c;b+="\r\n"});
return b};
g.Zl=function(a){g.G.call(this);this.j=a;this.i={}};
$l=function(a,b,c,d,e,f){if(Array.isArray(c))for(var k=0;k<c.length;k++)$l(a,b,c[k],d,e,f);else{b=Gf(b,c,d||a.handleEvent,e,f||a.j||a);if(!b)return a;a.i[b.key]=b}return a};
g.am=function(a){g.ef(a.i,function(b,c){this.i.hasOwnProperty(c)&&Rf(b)},a);
a.i={}};
bm=function(){this.u=!0;this.j=0;this.i=""};
cm=function(a,b,c){a.u=!1;throw Error("The stream is broken @"+a.j+". Error: "+c+". With input:\n"+b);};
dm=function(){this.I=null;this.J=[];this.B=this.j=this.u=this.i=this.W=0;this.C=null;this.N=0};
em=function(a,b,c,d){a.i=3;a.I="The stream is broken @"+a.W+"/"+c+". Error: "+d+". With input:\n"+b;throw Error(a.I);};
fm=function(){this.i=null;this.j=0;this.u=new bm;this.B=new dm};
gm=function(a,b,c){a.i="The stream is broken @"+a.j+". Error: "+c+". With input:\n"+b;throw Error(a.i);};
hm=function(a){return"\r"==a||"\n"==a||" "==a||"\t"==a};
im=function(a){this.W=null;this.I=[];this.B="";this.ea=[];this.u=this.j=0;this.J=!1;this.N=0;this.va=/[\\"]/g;this.i=this.C=0;this.Y=!(!a||!a.LS)};
jm=function(a,b,c){a.C=3;a.W="The stream is broken @"+a.u+"/"+c+". With input:\n"+b;throw Error(a.W);};
km=function(){this.C=this.u=null;this.j=this.i=0;this.B=[];this.I=!1};
sca=function(a){var b=a.i?a.i.getResponseHeader("Content-Type"):null;if(!b)return null;b=b.toLowerCase();return b.startsWith("application/json")?b.startsWith("application/json+protobuf")?new km:new im:b.startsWith("application/x-protobuf")?(a=a.i?a.i.getResponseHeader("Content-Transfer-Encoding"):null)?"base64"==a.toLowerCase()?new fm:null:new dm:null};
lm=function(a){this.i=a;this.j=null;this.B=this.u=0;this.W=!1;this.C=this.J=this.I=null;this.N=new g.Zl(this);this.N.Pa(this.i,"readystatechange",this.Y)};
mm=function(a,b){a.B!=b&&(a.B=b,a.J&&a.J())};
nm=function(a){g.am(a.N);if(a.i){var b=a.i;a.i=null;b.abort();b.dispose()}};
om=function(a){this.u=a;a=(0,g.Ra)(this.FV,this);this.u.C=a;a=(0,g.Ra)(this.qX,this);this.u.J=a;this.j={};this.i={}};
pm=function(a,b){for(var c={},d=0;d<a.length;c={hC:c.hC},d++)c.hC=a[d],b.forEach(function(e){return function(f){try{f(e.hC)}catch(k){}}}(c))};
qm=function(a,b){var c=a.j[b];c&&c.forEach(function(d){try{d()}catch(e){}});
(c=a.i[b])&&c.forEach(function(d){d()});
a.i[b]=[]};
rm=function(a){a=void 0===a?{}:a;this.C=a.Ofa||g.Ja("suppressCorsPreflight",a)||!1;this.j=a.withCredentials||g.Ja("withCredentials",a)||!1;this.B=a.Mfa||[];this.I=a.Pfa||[];this.i=a.Rfa;this.u=a.Qfa||!1};
dl=function(a,b,c,d,e){var f=b.substr(0,b.length-e.name.length);return sm(function(k){return new tca(function(l,m){var n={},p=uca(a,k,f);p.Im("error",function(r){return m(r)});
p.Im("metadata",function(r){n=r});
p.Im("data",function(r){var t=n;t=void 0===t?{}:t;l(new hl(r,k.Mz(),t))})})},a.I).call(a,jl(e,c,d)).then(function(k){return k.rY})};
uca=function(a,b,c){var d=b.Mz(),e=b.getMetadata(),f=tm(a,!0);a=um(a,e,f,c+d.getName());c=vm(f,d.j,!1);kca(c,"base64"==e["X-Goog-Encode-Response-If-Executable"]);b=d.i(b.i);f.send(a,"POST",b);return c};
tm=function(a,b){b=a.u&&!b;return a.i||b?new g.Oj(new vl({zZ:a.i,LY:b})):new g.Oj};
um=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.j)c.N=!0;if(a.C)a=d,g.uf(b)?d=a:(b=rca(b),"string"===typeof a?d=Ij(a,gh("$httpHeaders"),b):(g.Tl(a,"$httpHeaders",b),d=a));else for(var f in b)c.headers.set(f,b[f]);return d};
vm=function(a,b,c){if(c)if(a.isActive(),!g.Nc||g.Gc(10)){c=new lm(a);var d=new om(c)}else d=null;return new ol({xhr:a,JU:d},b)};
sm=function(a,b){var c=a;b.forEach(function(d){var e=c;c=function(f){return d.intercept(f,e)}});
return c};
wm=function(){var a={format:"jspb"};this.i=new rm(a)};
vca=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("")};
ym=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=wca(a);for(var c=2654435769,d=2654435769,e=314159265,f=a.length,k=f,l=0;12<=k;k-=12,l+=12)c+=xm(a,l),d+=xm(a,l+4),e+=xm(a,l+8),b();e+=f;switch(k){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 vca(e)};
wca=function(a){for(var b=[],c=0;c<a.length;c++)b.push(a.charCodeAt(c));return b};
xm=function(a,b){return a[b+0]+(a[b+1]<<8)+(a[b+2]<<16)+(a[b+3]<<24)};
xca=function(a){var b=new wm,c={"X-Goog-Api-Key":"AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw"};return new cl(b,a,function(){return c})};
yca=function(a){var b=xca(a.Vj);return new zm(Object.assign({},{vz:b},a))};
Am=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,Am.prototype)};
Bm=function(){g.G.apply(this,arguments);this.j=new Lk};
Dm=function(a,b){Cm(b).then(function(){a.j.resolve()})};
Em=function(a,b,c,d,e){Bm.call(this);this.logger=a;this.u=c;this.C=d;this.B=0;g.J(this,b);Dm(this,e);this.i=new Le};
Fm=function(a,b){Bm.call(this);this.i=a;Dm(this,b)};
Gm=function(a){Bm.call(this);if(a instanceof Am){var b=a.code+":"+a.message+":"+a.stack;a=a.code+":_"+ym(a.message)+":_"+ym(a.stack)}else b=a.message+":"+a.stack,a="_"+ym(a.message)+":_"+ym(a.stack||"");this.i=new Uint8Array(g.ib(("WE:"+b).substring(0,2048)));this.u=new Uint8Array(g.ib(("WE:"+a).substring(0,2048)))};
Cm=function(a){return new Promise(function(b){return void setTimeout(b,a)})};
Hm=function(a,b){return Promise.race([a,Cm(12E4).then(b)])};
zm=function(a){this.i=void 0;this.j=new Lk;this.vz=a.vz;this.uN=a.uN;this.onError=a.onError;this.logger=a.Efa?new Gk:new Hk(a.Vj);var b=new Fk(this.logger,"r");this.ready().finally(function(){return void b.done()});
zca(this)};
Aca=function(a,b,c){var d=window.webpocb;if(!d)throw new Am(4,Error("PMD:Undefined"));d=d(zd(Hd(b,1,"")));return new Em(a.logger,c,d,Ud(b,3),1E3*Ud(b,2))};
Bca=function(a){var b,c,d,e,f,k,l,m,n,p,r,t,w,x,y,z;return g.B(function(F){switch(F.i){case 1:b=void 0,c=a.i?6E4:1E3,d=new g.jj(c,6E5,.25,2),e=1;case 2:if(!(10>=e)){F.eb(4);break}va(F,5);return g.A(F,Hm(a.logger.IF("c",e,fca(a.vz)),function(){return Promise.reject(new Am(10,"JVZ:Timeout"))}),7);
case 7:return f=F.j,k=new Fk(a.logger,"b"),g.A(F,cca(f),8);case 8:return l=new Mk({challenge:f}),g.A(F,Hm(l.snapshot({}),function(){return Promise.reject(new Am(15,"MDA:Timeout"))}),9);
case 9:return m=F.j,k.done(),g.A(F,Hm(a.logger.IF("g",e,hca(a.vz,m)),function(){return Promise.reject(new Am(10,"BWB:Timeout"))}),10);
case 10:n=F.j;p=new Fk(a.logger,"i");if(Ud(n,3))var I=Aca(a,n,l);else l.dispose(),I=new Fm(zd(Hd(n,1,"")),1E3*Ud(n,2));r=I;p.done();w=t=void 0;null==(w=(t=a).uN)||w.call(t,zd(Hd(n,1,"")));return F.return(r);case 5:x=xa(F);b=x instanceof Am?x:x instanceof Ek?new Am(11,x):new Am(12,x);a.logger.Lw(b.code);z=y=void 0;null==(z=(y=a).onError)||z.call(y,b);a:{if(x instanceof Ek)switch(x.code){case 2:case 13:case 14:case 4:break;default:I=!1;break a}I=!0}if(!I)throw b;return g.A(F,Cm(d.getValue()),11);case 11:g.kj(d);
case 3:e++;F.eb(2);break;case 4:throw b;}})};
zca=function(a){var b,c,d,e;g.B(function(f){switch(f.i){case 1:return b=void 0,va(f,4),g.A(f,Bca(a),6);case 6:b=f.j;wa(f,5);break;case 4:if(c=xa(f),d=c instanceof Error?c:Error(String(c)),a.i){a.logger.Lw(13);f.eb(0);break}else a.logger.Lw(14),b=new Gm(d);case 5:return e=void 0,null==(e=a.i)||e.dispose(),a.i=b,a.j.resolve(),g.A(f,a.i.j.promise,1)}})};
Cca=function(a){a=a.url;var b=/[?&]dsh=1(&|$)/.test(a);this.u=!b&&/[?&]ae=1(&|$)/.test(a);this.B=!b&&/[?&]ae=2(&|$)/.test(a);if((this.i=/[?&]adurl=([^&]*)/.exec(a))&&this.i[1]){try{var c=decodeURIComponent(this.i[1])}catch(d){c=null}this.j=c}};
Im=function(a,b,c,d){var e=window,f="//web.archive.org/web/20220130220643/https://pagead2.googlesyndication.com/bg/"+g.ih(c)+".js";c=e.document;var k={};b&&(k._scs_=b);k._bgu_=f;k._bgp_=d;k._li_="v_h.3.0.0.0";(b=e.GoogleTyFxhY)&&"function"==typeof b.push||(b=e.GoogleTyFxhY=[]);b.push(k);e=rh(c).createElement("SCRIPT");e.type="text/javascript";e.async=!0;a=bba(g.kg("//web.archive.org/web/20220130220643/https://tpc.googlesyndication.com/sodar/%{path}"),{path:g.ih(a)+".js"});g.Uk(e,a);c.getElementsByTagName("head")[0].appendChild(e)};
Dca=function(a){var b={};g.uc(a,function(c){var d=c.event,e=b[d];b.hasOwnProperty(d)?null!==e&&(c.equals(e)||(b[d]=null)):b[d]=c});
oaa(a,function(c){return null===b[c.event]})};
Jm=function(){this.hd=0;this.i=!1;this.j=-1;this.jq=!1;this.wh=0};
Km=function(){this.j=null;this.i=!1};
Lm=function(a){Km.call(this);this.u=a};
Mm=function(){Km.call(this)};
Nm=function(){Km.call(this)};
Om=function(){this.i={};this.j=!0;this.u={}};
Pm=function(a,b,c){a.i[b]||(a.i[b]=new Lm(c));return a.i[b]};
Eca=function(a){a.i.queryid||(a.i.queryid=new Nm)};
Qm=function(a,b,c){(a=a.i[b])&&a.setValue(c)};
Rm=function(a,b){if(qf(a.u,b))return a.u[b];if(a=a.i[b])return a.getValue()};
Sm=function(a){var b={},c=g.hf(a.i,function(d){return d.i});
g.ef(c,function(d,e){d=void 0!==a.u[e]?String(a.u[e]):d.i&&null!==d.j?String(d.j):"";0<d.length&&(b[e]=d)},a);
return b};
Fca=function(a){a=Sm(a);var b=[];g.ef(a,function(c,d){d in Object.prototype||"undefined"!=typeof c&&b.push([d,":",c].join(""))});
return b};
Hca=function(a){Pm(a,"od",Gca);Pm(a,"opac",Tm).i=!0;Pm(a,"sbeos",Tm).i=!0;Pm(a,"prf",Tm).i=!0;Pm(a,"mwt",Tm).i=!0;Pm(a,"iogeo",Tm)};
Ica=function(){this.i=this.Co=null};
Um=function(){};
Wm=function(){if(!Vm())throw Error();};
Vm=function(){return!(!Xm||!Xm.performance)};
Ym=function(a){return a?a.passive&&Jca()?a:a.capture||!1:!1};
Zm=function(a,b,c,d){return a.addEventListener?(a.addEventListener(b,c,Ym(d)),!0):!1};
$m=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,Ym(void 0))};
an=function(a){var b="Xe";if(a.Xe&&a.hasOwnProperty(b))return a.Xe;var c=new a;a.Xe=c;a.hasOwnProperty(b);return c};
Kca=function(){var a={};this.Xa=function(b,c){return null!=a[b]?a[b]:c}};
cn=function(a){return an(Kca).Xa(bn.flag,bn.defaultValue)&&a.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[a.visibilityState||a.webkitVisibilityState||a.mozVisibilityState||""]||0};
dn=function(){};
fn=function(){return zb?zb.mobile:!en()&&(Bb("iPod")||Bb("iPhone")||Bb("Android")||Bb("IEMobile"))};
en=function(){return zb?!zb.mobile&&(Bb("iPad")||Bb("Android")||Bb("Silk")):Bb("iPad")||Bb("Android")&&!Bb("Mobile")||Bb("Silk")};
gn=function(a){try{return!!a&&null!=a.location.href&&Ac(a,"foo")}catch(b){return!1}};
hn=function(a,b){if(a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b(a[c],c,a)};
Mca=function(){var a=[];hn(Lca,function(b){a.push(b)});
return a};
Oca=function(a){return(a=Nca.exec(a))&&a[0]||""};
Pca=function(){var a=jn;if(!a)return"";var b=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var c=b.exec(decodeURIComponent(a));if(c)return c[1]&&1<c[1].length?c[1].substring(1):"true"}catch(d){}return""};
Rca=function(){var a=kn("IFRAME"),b={};g.uc(Qca(),function(c){a.sandbox&&a.sandbox.supports&&a.sandbox.supports(c)&&(b[c]=!0)});
return b};
kn=function(a,b){b=void 0===b?document:b;return b.createElement(String(a).toLowerCase())};
ln=function(a){for(var b=a;a&&a!=a.parent;)a=a.parent,gn(a)&&(b=a);return b};
mn=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};
nn=function(a){return a.right-a.left};
on=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};
pn=function(a,b,c){b instanceof g.bh?(a.left+=b.x,a.right+=b.x,a.top+=b.y,a.bottom+=b.y):(a.left+=b,a.right+=b,"number"===typeof c&&(a.top+=c,a.bottom+=c));return a};
g.qn=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};
rn=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};
sn=function(a){this.isValid=a};
tn=function(a){return new sn(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})};
vn=function(a,b){b=void 0===b?un:b;for(var c=0;c<b.length;++c){var d=b[c];if(d instanceof sn&&d.isValid(a))return new Rk(a,Zk)}};
g.xn=function(a,b,c){if("string"===typeof b)(b=wn(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=wn(c,d);f&&(c.style[f]=e)}};
wn=function(a,b){var c=yn[b];if(!c){var d=mh(b);c=d;void 0===a.style[d]&&(d=(g.Ze?"Webkit":zn?"Moz":g.Nc?"ms":null)+qba(d),void 0!==a.style[d]&&(c=d));yn[b]=c}return c};
g.An=function(a,b){var c=a.style[mh(b)];return"undefined"!==typeof c?c:a.style[wn(a,b)]||""};
Bn=function(a,b){var c=ph(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""};
Cn=function(a,b){return Bn(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]};
g.En=function(a,b,c){if(b instanceof g.bh){var d=b.x;b=b.y}else d=b,b=c;a.style.left=g.Dn(d,!1);a.style.top=g.Dn(b,!1)};
Fn=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}};
Sca=function(a){if(g.Nc&&!g.Gc(8))return a.offsetParent;var b=ph(a),c=Cn(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=Cn(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.co=function(a){var b=ph(a),c=new g.bh(0,0);var d=b?ph(b):document;d=!g.Nc||g.Gc(9)||"CSS1Compat"==rh(d).i.compatMode?d.documentElement:d.body;if(a==d)return c;a=Fn(a);b=Ih(rh(b).i);c.x=a.left+b.x;c.y=a.top+b.y;return c};
fo=function(a,b){var c=new g.bh(0,0),d=Jh(ph(a));if(!Ac(d,"parent"))return c;do{var e=d==b?g.co(a):eo(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.go=function(a,b){a=Tca(a);b=Tca(b);return new g.bh(a.x-b.x,a.y-b.y)};
eo=function(a){a=Fn(a);return new g.bh(a.left,a.top)};
Tca=function(a){if(1==a.nodeType)return eo(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.bh(a.clientX,a.clientY)};
g.ho=function(a,b,c){if(b instanceof g.dh)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");a.style.width=g.Dn(b,!0);a.style.height=g.Dn(c,!0)};
g.Dn=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a};
g.io=function(a){var b=Uca;if("none"!=Cn(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};
Uca=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.Ze&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=Fn(a),new g.dh(a.right-a.left,a.bottom-a.top)):new g.dh(b,c)};
g.jo=function(a,b){a.style.display=b?"":"none"};
Yca=function(a){a=a||ko();for(var b=new Vca(g.C.location.href,!1),c=null,d=a.length-1,e=d;0<=e;--e){var f=a[e];!c&&Wca.test(f.url)&&(c=f);if(f.url&&!f.uF){b=f;break}}e=null;f=a.length&&a[d].url;0!=b.depth&&f&&(e=a[d]);return new Xca(b,e,c)};
ko=function(){var a=g.C,b=[],c=null;do{var d=a;if(gn(d)){var e=d.location.href;c=d.document&&d.document.referrer||null}else e=c,c=null;b.push(new Vca(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.uF=!0);return b};
Xca=function(a,b,c){this.i=a;this.j=b;this.u=c};
Vca=function(a,b){this.url=a;this.uF=!!b;this.depth=null};
lo=function(){this.u="&";this.j={};this.B=0;this.i=[]};
mo=function(a,b){var c={};c[a]=b;return[c]};
Zca=function(a,b,c,d,e){var f=[];hn(a,function(k,l){(k=no(k,b,c,d,e))&&f.push(l+"="+k)});
return f.join(b)};
no=function(a,b,c,d,e){if(null==a)return"";b=b||"&";c=c||",$";"string"==typeof c&&(c=c.split(""));if(a instanceof Array){if(d=d||0,d<c.length){for(var f=[],k=0;k<a.length;k++)f.push(no(a[k],b,c,d+1,e));return f.join(c[d])}}else if("object"==typeof a)return e=e||0,2>e?encodeURIComponent(Zca(a,b,c,d,e+1)):"...";return encodeURIComponent(String(a))};
ada=function(a,b,c){b=b+"//web.archive.org/web/20220130220643/https://pagead2.googlesyndication.com"+c;var d=$ca(a)-c.length;if(0>d)return"";a.i.sort(function(p,r){return p-r});
c=null;for(var e="",f=0;f<a.i.length;f++)for(var k=a.i[f],l=a.j[k],m=0;m<l.length;m++){if(!d){c=null==c?k:c;break}var n=Zca(l[m],a.u,",$");if(n){n=e+n;if(d>=n.length){d-=n.length;b+=n;e=a.u;break}c=null==c?k:c}}a="";null!=c&&(a=e+"trn="+c);return b+a+""};
$ca=function(a){var b=1,c;for(c in a.j)b=c.length>b?c.length:b;return 3997-b-a.u.length-1};
oo=function(a,b){this.i=a;this.depth=b};
cda=function(){function a(l,m){return null==l?m:l}
var b=ko(),c=Math.max(b.length-1,0),d=Yca(b);b=d.i;var e=d.j,f=d.u,k=[];f&&k.push(new oo([f.url,f.uF?2:0],a(f.depth,1)));e&&e!=f&&k.push(new oo([e.url,2],0));b.url&&b!=f&&k.push(new oo([b.url,0],a(b.depth,c)));d=g.po(k,function(l,m){return k.slice(0,k.length-m)});
!b.url||(f||e)&&b!=f||(e=Oca(b.url))&&d.push([new oo([e,1],a(b.depth,c))]);d.push([]);return g.po(d,function(l){return bda(c,l)})};
bda=function(a,b){g.qo(b,function(e){return 0<=e.depth});
var c=ro(b,function(e,f){return Math.max(e,f.depth)},-1),d=saa(c+2);
d[0]=a;g.uc(b,function(e){return d[e.depth+1]=e.i});
return d};
dda=function(){var a=cda();return g.po(a,function(b){return no(b)})};
eda=function(a){var b=window||Xm;b.google_image_requests||(b.google_image_requests=[]);var c=kn("IMG",b.document);c.src=a;b.google_image_requests.push(c)};
so=function(){this.j=new dn;this.i=Vm()?new Wm:new Um};
fda=function(){to();var a=Xm.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&"function"===typeof Xm.setInterval&&"function"===typeof Xm.clearInterval&&"function"===typeof Xm.setTimeout&&"function"===typeof Xm.clearTimeout)};
gda=function(){to();return dda()};
hda=function(){};
to=function(){return an(hda).getContext()};
ida=function(a){g.E.call(this,a)};
lda=function(){return[1,jda,2,uo,3,uo,4,uo,5,kda]};
mda=function(a){this.u=a;this.i=-1;this.j=this.B=0};
vo=function(a,b){return function(){var c=g.Ca.apply(0,arguments);if(-1<a.i)return b.apply(null,g.u(c));try{return a.i=a.u.i.now(),b.apply(null,g.u(c))}finally{a.B+=a.u.i.now()-a.i,a.i=-1,a.j+=1}}};
nda=function(a,b){this.j=a;this.u=b;this.i=new mda(a)};
oda=function(){};
tda=function(){this.u=void 0;this.j=this.I=0;this.C=-1;this.featureSet=new Om;Pm(this.featureSet,"mv",pda).i=!0;Pm(this.featureSet,"omid",Tm);Pm(this.featureSet,"epoh",Tm).i=!0;Pm(this.featureSet,"epph",Tm).i=!0;Pm(this.featureSet,"umt",Tm).i=!0;Pm(this.featureSet,"phel",Tm).i=!0;Pm(this.featureSet,"phell",Tm).i=!0;Pm(this.featureSet,"oseid",qda).i=!0;var a=this.featureSet;a.i.sloi||(a.i.sloi=new Mm);a.i.sloi.i=!0;Pm(this.featureSet,"mm",rda);Pm(this.featureSet,"ovms",sda).i=!0;Pm(this.featureSet,
"xdi",Tm).i=!0;Pm(this.featureSet,"amp",Tm).i=!0;Pm(this.featureSet,"prf",Tm).i=!0;Pm(this.featureSet,"gtx",Tm).i=!0;Pm(this.featureSet,"mvp_lv",Tm).i=!0;Pm(this.featureSet,"ssmol",Tm).i=!0;this.i=new nda(to(),this.featureSet);this.B=!1;this.flags=new oda};
wo=function(){return an(tda)};
uda=function(){var a="https:";Xm&&Xm.location&&"http:"===Xm.location.protocol&&(a="http:");this.j=a;this.i=.01;this.u=Math.random()};
xo=function(a,b,c,d,e){if((d?a.u:Math.random())<(e||a.i))try{if(c instanceof lo)var f=c;else f=new lo,hn(c,function(l,m){var n=f,p=n.B++;l=mo(m,l);n.i.push(p);n.j[p]=l});
var k=ada(f,a.j,"/pagead/gen_204?id="+b+"&");k&&(to(),eda(k))}catch(l){}};
vda=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};
wda=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.Ta()};
xda=function(){var a=void 0===a?g.C:a;return(a=a.performance)&&a.now?a.now():null};
yda=function(a,b,c){this.label=a;this.type=b;this.value=c;this.duration=0;this.uniqueId=Math.random();this.slotId=void 0};
zo=function(){var a=window;this.events=[];this.j=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.i=yo()||(null!=b?b:1>Math.random())};
zda=function(a){a&&Ao&&yo()&&(Ao.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),Ao.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))};
Ada=function(){var a=Bo;this.i=Co;this.cL="jserror";this.sH=!0;this.zD=null;this.j=this.KF;this.Pb=void 0===a?null:a};
Bda=function(a,b,c,d){return vo(wo().i.i,function(){try{if(a.Pb&&a.Pb.i){var e=a.Pb.start(b.toString(),3);var f=c();a.Pb.end(e)}else f=c()}catch(m){var k=a.sH;try{zda(e);var l=new Do(Eo(m));k=a.j(b,l,void 0,d)}catch(n){a.KF(217,n)}if(!k)throw m;}return f})()};
Go=function(a,b,c){var d=Fo;return vo(wo().i.i,function(){var e=g.Ca.apply(0,arguments);return Bda(d,a,function(){return b.apply(void 0,e)},c)})};
Eo=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};
Do=function(a){vda.call(this,Error(a),{message:a})};
Cda=function(){var a=window;a&&"undefined"!=typeof a.google_measure_js_timing&&(a.google_measure_js_timing||Bo.disable())};
Dda=function(a){Fo.zD=function(b){g.uc(a,function(c){c(b)})}};
Eda=function(a,b){return Bda(Fo,a,b,void 0)};
Ho=function(a,b){return Go(a,b,void 0)};
Io=function(a,b,c,d){Fo.KF(a,b,c,d)};
Jo=function(){return Date.now()-Fda};
Gda=function(){var a=wo().u,b=0<=Ko?Jo()-Ko:-1,c=Lo?Jo()-Mo:-1,d=0<=No?Jo()-No:-1;if(947190542==a)return 100;if(79463069==a)return 200;a=[2E3,4E3];var e=[250,500,1E3];Io(637,Error(),.001);var f=b;-1!=c&&c<b&&(f=c);for(b=0;b<a.length;++b)if(f<a[b]){var k=e[b];break}void 0===k&&(k=e[a.length]);return-1!=d&&1500<d&&4E3>d?500:k};
Oo=function(a,b,c){var d=new mn(0,0,0,0);this.time=a;this.volume=null;this.u=b;this.i=d;this.j=c};
Po=function(a,b,c,d,e,f,k,l){this.B=a;this.N=b;this.u=c;this.I=d;this.i=e;this.C=f;this.j=k;this.J=l};
Ida=function(a){var b=a!==a.top,c=a.top===ln(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),lf(Hda,function(k){return"function"===typeof f[k]})||(e=1));
return{Lj:f,compatibility:e,HY:d}};
Jda=function(a){return(a=a.document)&&"function"===typeof a.elementFromPoint};
Qo=function(a,b,c,d){var e=void 0===e?!1:e;c=Go(d,c,void 0);Zm(a,b,c,{capture:e})};
Kda=function(a,b,c){a&&null!==b&&b!=b.top&&(b=b.top);try{return(void 0===c?0:c)?(new g.dh(b.innerWidth,b.innerHeight)).round():Gh(b||window).round()}catch(d){return new g.dh(-12245933,-12245933)}};
Ro=function(a,b,c){try{a&&(b=b.top);var d=Kda(a,b,void 0===c?!1:c),e=Ih(rh(b.document).i);if(-12245933==d.width){var f=d.width;var k=new mn(f,f,f,f)}else k=new mn(e.y,e.x+d.width,e.y+d.height,e.x);return k}catch(l){return new mn(-12245933,-12245933,-12245933,-12245933)}};
So=function(a,b){b=Math.pow(10,b);return Math.floor(a*b)/b};
Lda=function(a){return new mn(a.top,a.right,a.bottom,a.left)};
Mda=function(a){var b=a.top||0,c=a.left||0;return new mn(b,c+(a.width||0),b+(a.height||0),c)};
To=function(a){return null!=a&&0<=a&&1>=a};
Nda=function(){var a=g.yb();return a?Uo("Android TV;AppleTV;Apple TV;GoogleTV;HbbTV;NetCast.TV;Opera TV;POV_TV;SMART-TV;SmartTV;TV Store;AmazonWebAppPlatform;MiBOX".split(";"),function(b){return ub(a,b)})||ub(a,"OMI/")&&!ub(a,"XiaoMi/")?!0:ub(a,"Presto")&&ub(a,"Linux")&&!ub(a,"X11")&&!ub(a,"Android")&&!ub(a,"Mobi"):!1};
Oda=function(){this.u=!gn(Xm.top);this.isMobileDevice=en()||fn();var a=ko();this.domain=0<a.length&&null!=a[a.length-1]&&null!=a[a.length-1].url?g.wj(a[a.length-1].url)||"":"";this.i=new mn(0,0,0,0);this.B=new g.dh(0,0);this.C=new g.dh(0,0);this.J=new mn(0,0,0,0);this.I=0;this.N=!1;this.j=!(!Xm||!Ida(Xm).Lj);this.update(Xm)};
Pda=function(a,b){b&&b.screen&&(a.B=new g.dh(b.screen.width,b.screen.height))};
Qda=function(a,b){var c=a.i?new g.dh(nn(a.i),a.i.getHeight()):new g.dh(0,0);b=void 0===b?Xm:b;null!==b&&b!=b.top&&(b=b.top);var d=0,e=0;try{var f=b.document,k=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,r=l.offsetWidth;l.clientHeight!=p&&(m=k.scrollHeight,n=k.scrollWidth,p=k.offsetHeight,r=k.offsetWidth);
m>c.height?m>p?(d=m,e=n):(d=p,e=r):m<p?(d=m,e=n):(d=p,e=r)}var t=new g.dh(e,d)}catch(w){t=new g.dh(-12245933,-12245933)}a.C=t};
Xo=function(){var a=Vo();if(0<a.I||a.N)return!0;a=to().j.isVisible();var b=0===cn(Wo);return a||b};
Vo=function(){return an(Oda)};
Yo=function(a){this.u=a;this.j=0;this.i=null};
Zo=function(a,b,c){this.u=a;this.La=void 0===c?"na":c;this.C=[];this.isInitialized=!1;this.B=new Oo(-1,!0,this);this.i=this;this.N=b;this.Y=this.W=!1;this.ya="uk";this.xa=!1;this.I=!0};
$o=function(a,b){g.$b(a.C,b)||(a.C.push(b),b.Ws(a.i),b.ao(a.B),b.vl()&&(a.W=!0))};
Rda=function(a){a=a.i;a.HI();a.GI();var b=Vo();b.J=Ro(!1,a.u,b.isMobileDevice);Qda(Vo(),a.u);a.B.i=a.CL()};
Sda=function(a){a.W=a.C.length?Uo(a.C,function(b){return b.vl()}):!1};
Tda=function(a){var b=g.ic(a.C);g.uc(b,function(c){c.ao(a.B)})};
ap=function(a){var b=g.ic(a.C);g.uc(b,function(c){c.Ws(a.i)});
a.i!=a||Tda(a)};
bp=function(a,b,c,d){this.element=a;this.i=new mn(0,0,0,0);this.B=new mn(0,0,0,0);this.j=b;this.featureSet=c;this.ea=d;this.Y=!1;this.timestamp=-1;this.J=new Po(b.B,this.element,this.i,new mn(0,0,0,0),0,0,Jo(),0)};
cp=function(a){this.C=!1;this.i=a;this.B=function(){}};
Uda=function(a,b,c){this.u=void 0===c?0:c;this.j=a;this.i=null==b?"":b};
Vda=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}};
Wda=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.i<typeof b.i?!0:typeof a.i>typeof b.i?!1:a.i<b.i};
dp=function(){this.u=0;this.i=[];this.j=!1};
Xda=function(a,b){(0,g.uc)(b.i,function(c){a.add(c.j,c.i,Vda(c))})};
ep=function(a,b){var c=void 0===c?0:c;var d=void 0===d?!0:d;hn(b,function(e,f){d&&void 0===e||a.add(f,e,c)});
return a};
fp=function(a){var b=Yda;a.j&&(g.qc(a.i,function(c,d){return Wda(d,c)?1:Wda(c,d)?-1:0}),a.j=!1);
return ro(a.i,function(c,d){d=b(d);return""+c+(""!=c&&""!=d?"&":"")+d},"")};
Yda=function(a){var b=a.j;a=a.i;return""===a?b:"boolean"===typeof a?a?b:"":Array.isArray(a)?0===a.length?b:b+"="+a.join():b+"="+(g.$b(["mtos","tos","p"],b)?a:encodeURIComponent(a))};
Zda=function(a){var b=void 0===b?!0:b;this.i=new dp;void 0!==a&&Xda(this.i,a);b&&this.i.add("v",gp,-16)};
$da=function(a){var b=[],c=[];g.ef(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)};
aea=function(){if(gp&&"unreleased"!==gp)return gp};
bea=function(a){var b=void 0===b?4E3:b;a=a.toString();if(!/&v=[^&]+/.test(a)){var c=aea();a=c?a+"&v="+encodeURIComponent(c):a}b=a=a.substring(0,b);to();eda(b)};
cea=function(){this.i=0};
dea=function(a,b,c){(0,g.uc)(a.u,function(d){var e=a.i;if(!d.i&&(d.u(b,c),d.B())){d.i=!0;var f=d.j(),k=new dp;k.add("id","av-js");k.add("type","verif");k.add("vtype",d.C);d=an(cea);k.add("i",d.i++);k.add("adk",e);ep(k,f);e=new Zda(k);bea(e)}})};
hp=function(){this.j=this.u=this.B=this.i=0};
ip=function(a){this.j=a=void 0===a?eea:a;this.i=g.po(this.j,function(){return new hp})};
jp=function(a,b){return fea(a,function(c){return c.i},void 0===b?!0:b)};
lp=function(a,b){return kp(a,b,function(c){return c.i})};
gea=function(a,b){return fea(a,function(c){return c.u},void 0===b?!0:b)};
mp=function(a,b){return kp(a,b,function(c){return c.u})};
np=function(a,b){return kp(a,b,function(c){return c.j})};
hea=function(a){g.uc(a.i,function(b){b.j=0})};
fea=function(a,b,c){a=g.po(a.i,function(d){return b(d)});
return c?a:iea(a)};
kp=function(a,b,c){var d=g.Yb(a.j,function(e){return b<=e});
return-1==d?0:c(a.i[d])};
iea=function(a){return g.po(a,function(b,c,d){return 0<c?d[c]-d[c-1]:d[c]})};
op=function(){this.j=new ip;this.La=new hp;this.ea=this.J=-1;this.Wa=1E3;this.Ya=new ip([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.ya=this.va=-1};
pp=function(a,b){return gea(a.j,void 0===b?!0:b)};
rp=function(a,b){b=qp(b);return 0===b?0:qp(a)/b};
qp=function(a){return Math.max(a.bottom-a.top,0)*Math.max(a.right-a.left,0)};
jea=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.Sh(a)||a){var d=ph(a),e=d&&Jh(d),f=e&&e.frameElement;f&&(a=f)}}catch(k){break}}return!1};
kea=function(a,b,c){if(!a||!b)return!1;b=pn(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;var d=window;gn(d.top)&&d.top&&d.top.document&&(d=d.top);if(!Jda(d))return!1;a=d.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=ph(c))&&b.defaultView&&b.defaultView.frameElement)&&jea(b,a);d=a===c;a=!d&&a&&Xh(a,function(e){return e===c});
return!(b||d||a)};
lea=function(a,b,c,d){return Vo().u?!1:0>=nn(a)||0>=a.getHeight()?!0:c&&d?Eda(208,function(){return kea(a,b,c)}):!1};
sp=function(a,b,c){g.G.call(this);this.position=mea.clone();this.AA=this.Pz();this.HF=-2;this.XY=Date.now();this.jP=-1;this.lastUpdateTime=b;this.rA=null;this.nz=!1;this.IA=null;this.opacity=-1;this.requestSource=c;this.MF=function(){};
this.wP=function(){};
this.Wg=new Ica;this.Wg.Co=a;this.Wg.i=a;this.zo=!1;this.Op={WF:null,UF:null};this.SO=!0;this.Sx=null;this.Ys=this.gU=!1;wo().I++;this.Cf=this.NE();this.gP=-1;this.Td=null;this.dU=!1;this.featureSet=new Om;Hca(this.featureSet);nea(this);1==this.requestSource?Qm(this.featureSet,"od",1):Qm(this.featureSet,"od",0)};
nea=function(a){a=a.Wg.Co;var b;if(b=a&&a.getAttribute)b=/-[a-z]/.test("googleAvInapp")?!1:oea&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+nh()):!!a.getAttribute("data-"+nh());b&&(Vo().j=!0)};
tp=function(a,b){b!=a.Ys&&(a.Ys=b,a=Vo(),b?a.I++:0<a.I&&a.I--)};
pea=function(a,b){if(a.Td){if(b.getName()===a.Td.getName())return;a.Td.dispose();a.Td=null}b=b.create(a.Wg.i,a.featureSet,a.vl());if(b=null!=b&&b.BC()?b:null)a.Td=b};
qea=function(a,b,c){if(!a.rA||-1==a.lastUpdateTime||-1===b.j||-1===a.rA.j)return 0;a=b.j-a.rA.j;return a>c?0:a};
rea=function(a,b,c){if(a.Td){a.Td.yn();var d=a.Td.J,e=d.B,f=e.i;if(null!=d.I){var k=d.u;a.IA=new g.bh(k.left-f.left,k.top-f.top)}f=a.EB()?Math.max(d.i,d.C):d.i;k={};null!==e.volume&&(k.volume=e.volume);e=a.xL(d);a.rA=d;a.Ja(f,b,c,!1,k,e,d.J)}};
sea=function(a){if(a.nz&&a.Sx){var b=1==Rm(a.featureSet,"od"),c=Vo().i,d=a.Sx,e=a.Td?a.Td.getName():"ns",f=new g.dh(nn(c),c.getHeight());c=a.EB();a={KY:e,IA:a.IA,xZ:f,EB:c,hd:a.Cf.hd,rZ:b};if(b=d.j){b.yn();e=b.J;f=e.B.i;var k=null,l=null;null!=e.I&&f&&(k=e.u,k=new g.bh(k.left-f.left,k.top-f.top),l=new g.dh(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.i,e.C):e.i;c={KY:b.getName(),IA:k,xZ:l,EB:c,rZ:!1,hd:e}}else c=null;c&&dea(d,a,c)}};
tea=function(a,b,c){b&&(a.MF=b);c&&(a.wP=c)};
g.up=function(){};
g.vp=function(a){return{value:a,done:!1}};
g.xp=function(a){if(a.done)throw g.wp;return a.value};
uea=function(){this.B=this.i=this.u=this.j=this.C=0};
vea=function(a){var b={};var c=g.Ta()-a.C;b=(b.ptlt=c,b);(c=a.j)&&(b.pnk=c);(c=a.u)&&(b.pnc=c);(c=a.B)&&(b.pnmm=c);(a=a.i)&&(b.pns=a);return b};
wea=function(){Jm.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1};
yp=function(a){return To(a.volume)&&0<a.volume};
zp=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 xea(f,b,c)}};
Ap=function(a,b){return function(c){return b(c)?c[a]:void 0}};
yea=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}};
xea=function(a,b,c){return void 0===c||c?g.Bp(a,function(d,e){return g.$b(b,e)}):g.po(b,function(d,e,f){return a.slice(0<e?f[e-1]+1:0,d+1).reduce(function(k,l){return k+l},0)})};
Cp=function(){this.j=this.i=""};
zea=function(){};
Dp=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.Bf(c,a);return fp(ep(new dp,c))};
Aea=function(){var a={};this.j=(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.i={};for(var b in this.j)0<this.j[b][1]&&(this.i[b]=0);this.u=0};
Ep=function(a,b){var c=a.j[b],d=c[1];a.u+=c[0];0<d&&0==a.i[b]&&(a.i[b]=1)};
Bea=function(a){var b=g.pf(a.j),c=0,d;for(d in a.i)g.$b(b,d)&&1==a.i[d]&&(c+=a.j[d][1],a.i[d]=2);return c};
Cea=function(a){var b=0,c;for(c in a.i){var d=a.i[c];if(1==d||2==d)b+=a.j[c][1]}return b};
Fp=function(){this.i=this.j=0};
Gp=function(){op.call(this);this.u=new hp;this.Ia=this.W=this.xa=0;this.N=-1;this.fb=new hp;this.C=new hp;this.i=new ip;this.I=this.B=-1;this.Y=new hp;this.Wa=2E3;this.Ha=new Fp;this.Ta=new Fp;this.Qa=new Fp};
Hp=function(a,b,c){var d=a.Ia;Lo||c||-1==a.N||(d+=b-a.N);return d};
Dea=function(){this.j=!1};
Ip=function(a,b){this.j=!1;this.u=a;this.W=b;this.B=0};
Jp=function(a,b){Ip.call(this,a,b);this.J=[]};
Kp=function(a,b,c,d){bp.call(this,a,b,c,d)};
Lp=function(a,b,c){bp.call(this,null,a,b,c);this.I=a.isActive();this.C=0};
Mp=function(a){return[a.top,a.left,a.bottom,a.right]};
Np=function(a,b,c,d,e,f,k){f=void 0===f?null:f;k=void 0===k?[]:k;sp.call(this,b,c,d);this.FG=e;this.jE=0;this.Ef={};this.sf=new Aea;this.IP={};this.Lf="";this.Ta=null;this.kb=!1;this.i=[];this.xq=f;this.I=k;this.B=null;this.u=-1;this.Ia=this.W=void 0;this.ea=this.Y=0;this.ya=-1;this.Ya=this.Wa=!1;this.xa=this.N=this.j=this.wu=this.jb=0;new ip;this.Ha=this.La=0;this.Qa=-1;this.Ag=0;this.J=Zf;this.va=[this.Pz()];this.wb=2;this.Zq={};this.Zq.pause="p";this.Zq.resume="r";this.Zq.skip="s";this.Zq.mute=
"m";this.Zq.unmute="um";this.Zq.exitfullscreen="ef";this.C=null;this.fb=!1};
Op=function(a){0!=a.Ag&&(a.Ag=3)};
Pp=function(a){return void 0===a?a:Number(a)?So(a,3):0};
Qp=function(a,b){return a.va[null!=b&&b<a.va.length?b:a.va.length-1]};
Eea=function(a){var b=!!Rm(wo().featureSet,"umt");return a.W||!b&&!a.Ia?0:1};
Fea=function(a,b){a.zm()?b=0:-1==a.lastUpdateTime?b=0:(b-=a.lastUpdateTime,b=b>Math.max(1E4,a.u/3)?0:b);var c=a.J(a)||{};c=void 0!==c.currentTime?c.currentTime:a.Y;var d=c-a.Y,e=0;0<=d?(a.ea+=b,a.Ha+=Math.max(b-d,0),e=Math.min(d,a.ea)):a.La+=Math.abs(d);0!=d&&(a.ea=0);-1==a.Qa&&0<d&&(a.Qa=0<=No?Jo()-No:-1);a.Y=c;return e};
Gea=function(a,b){Uo(a.I,function(c){return c.u==b.u})||a.I.push(b)};
Hea=function(a){var b=lp(a.wg().i,1);return Rp(a,b)};
Rp=function(a,b,c){return 15E3<=b?!0:a.Wa?(void 0===c?0:c)?!0:0<a.u?b>=a.u/2:0<a.ya?b>=a.ya:!1:!1};
Iea=function(a){var b=So(a.Cf.hd,2),c=a.sf.u,d=a.Cf,e=Qp(a),f=Pp(e.B),k=Pp(e.I),l=Pp(d.volume),m=So(e.J,2),n=So(e.ea,2),p=So(d.hd,2),r=So(e.va,2),t=So(e.ya,2);d=So(d.wh,2);a=a.Un().clone();a.round();e=pp(e,!1);return{wZ:b,Aw:c,BA:f,xA:k,tv:l,CA:m,yA:n,hd:p,DA:r,zA:t,wh:d,position:a,GA:e}};
Kea=function(a,b){Jea(a.i,b,function(){return{wZ:0,Aw:void 0,BA:-1,xA:-1,tv:-1,CA:-1,yA:-1,hd:-1,DA:-1,zA:-1,wh:-1,position:void 0,GA:[]}});
a.i[b]=Iea(a)};
Jea=function(a,b,c){for(var d=a.length;d<b+1;)a.push(c()),d++};
Tp=function(a,b,c){var d=a.IP[b];if(null!=d)return d;d=Lea(a,b);var e=sf(Sp,function(f){return f==b});
a=Mea(a,d,d,c,Nea[Sp[e]]);"fully_viewable_audible_half_duration_impression"==b&&(a.std="csm");return a};
Up=function(a,b,c){var d=[b];if(a!=b||c!=b)d.unshift(a),d.push(c);return d};
Mea=function(a,b,c,d,e){if(a.zo)return{"if":0,vs:0};var f=a.Un().clone();f.round();var k=Vo(),l=wo(),m=a.wg(),n=a.Td?a.Td.getName():"ns",p={};p["if"]=k.u?1:void 0;p.sdk=a.B?a.B:void 0;p.t=a.XY;p.p=[f.top,f.left,f.bottom,f.right];p.tos=jp(m.j,!1);p.mtos=pp(m);p.mcvt=m.La.u;p.ps=void 0;f=Hp(m,Jo(),a.zm());p.vht=f;p.mut=m.fb.u;p.a=Pp(a.Cf.volume);p.mv=Pp(m.I);p.fs=a.Ys?1:0;p.ft=m.Y.i;p.at=m.C.i;p.as=0<m.B?1:0;p.atos=jp(m.i);p.ssb=jp(m.Ya,!1);p.amtos=gea(m.i,!1);p.uac=a.jb;p.vpt=m.u.i;"nio"==n&&(p.nio=
1,p.avms="nio");p.gmm="4";p.gdr=Rp(a,m.u.i,!0)?1:0;p.efpf=a.wb;if("gsv"==n||"nis"==n)n=a.Td,0<n.C&&(p.nnut=n.C);p.tcm=Eea(a);p.nmt=a.La;p.bt=a.Ha;p.pst=a.Qa;p.vpaid=a.W;p.dur=a.u;p.vmtime=a.Y;p.is=a.sf.u;1<=a.i.length&&(p.i0=a.i[0].Aw,p.a0=[a.i[0].tv],p.c0=[a.i[0].hd],p.ss0=[a.i[0].wh],n=a.i[0].position,p.p0=n?Mp(n):void 0);2<=a.i.length&&(p.i1=a.i[1].Aw,p.a1=Up(a.i[1].BA,a.i[1].tv,a.i[1].xA),p.c1=Up(a.i[1].CA,a.i[1].hd,a.i[1].yA),p.ss1=Up(a.i[1].DA,a.i[1].wh,a.i[1].zA),n=a.i[1].position,p.p1=n?Mp(n):
void 0,p.mtos1=a.i[1].GA);3<=a.i.length&&(p.i2=a.i[2].Aw,p.a2=Up(a.i[2].BA,a.i[2].tv,a.i[2].xA),p.c2=Up(a.i[2].CA,a.i[2].hd,a.i[2].yA),p.ss2=Up(a.i[2].DA,a.i[2].wh,a.i[2].zA),n=a.i[2].position,p.p2=n?Mp(n):void 0,p.mtos2=a.i[2].GA);4<=a.i.length&&(p.i3=a.i[3].Aw,p.a3=Up(a.i[3].BA,a.i[3].tv,a.i[3].xA),p.c3=Up(a.i[3].CA,a.i[3].hd,a.i[3].yA),p.ss3=Up(a.i[3].DA,a.i[3].wh,a.i[3].zA),n=a.i[3].position,p.p3=n?Mp(n):void 0,p.mtos3=a.i[3].GA);p.cs=Cea(a.sf);b&&(p.ic=Bea(a.sf),p.dvpt=m.u.j,p.dvs=np(m.j,.5),
p.dfvs=np(m.j,1),p.davs=np(m.i,.5),p.dafvs=np(m.i,1),c&&(m.u.j=0,hea(m.j),hea(m.i)),a.Am()&&(p.dtos=m.xa,p.dav=m.W,p.dtoss=a.jE+1,c&&(m.xa=0,m.W=0,a.jE++)),p.dat=m.C.j,p.dft=m.Y.j,c&&(m.C.j=0,m.Y.j=0));p.ps=[k.C.width,k.C.height];p.bs=[nn(k.i),k.i.getHeight()];p.scs=[k.B.width,k.B.height];p.dom=k.domain;a.wu&&(p.vds=a.wu);if(0<a.I.length||a.xq)b=g.ic(a.I),a.xq&&b.push(a.xq),p.pings=g.po(b,function(r){return r.toString()});
b=g.po(g.Bp(a.I,function(r){return r.I()}),function(r){return r.getId()});
paa(b);p.ces=b;a.j&&(p.vmer=a.j);a.N&&(p.vmmk=a.N);a.xa&&(p.vmiec=a.xa);p.avms=a.Td?a.Td.getName():"ns";a.Td&&g.Bf(p,a.Td.Tn());d?(p.c=So(a.Cf.hd,2),p.ss=So(a.Cf.wh,2)):p.tth=Jo()-Oea;p.mc=So(m.ea,2);p.nc=So(m.J,2);p.mv=Pp(m.I);p.nv=Pp(m.B);p.lte=So(a.HF,2);d=Qp(a,e);pp(m);p.qmtos=pp(d);p.qnc=So(d.J,2);p.qmv=Pp(d.I);p.qnv=Pp(d.B);p.qas=0<d.B?1:0;p.qi=a.Lf;p.avms||(p.avms="geo");p.psm=m.Ha.i;p.psv=m.Ha.getValue();p.psfv=m.Ta.getValue();p.psa=m.Qa.getValue();l=Fca(l.featureSet);l.length&&(p.veid=l);
a.C&&g.Bf(p,vea(a.C));p.avas=a.Hz();p.vs=a.DL();return p};
Lea=function(a,b){if(g.$b(Pea,b))return!0;var c=a.Ef[b];return void 0!==c?(a.Ef[b]=!0,!c):!1};
Rea=function(){this.i={};var a=Jh();Vp(this,a,document);var b=Qea();try{if("1"==b){for(var c=a.parent;c!=a.top;c=c.parent)Vp(this,c,c.document);Vp(this,a.top,a.top.document)}}catch(d){}};
Qea=function(){var a=document.documentElement;try{if(!gn(Jh().top))return"2";var b=[],c=Jh(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"}};
Vp=function(a,b,c){Qo(c,"mousedown",function(){return Sea(a)},301);
Qo(b,"scroll",function(){return Tea(a)},302);
Qo(c,"touchmove",function(){return Uea(a)},303);
Qo(c,"mousemove",function(){return Vea(a)},304);
Qo(c,"keydown",function(){return Wea(a)},305)};
Sea=function(a){g.ef(a.i,function(b){1E5<b.u||++b.u})};
Tea=function(a){g.ef(a.i,function(b){1E5<b.i||++b.i})};
Uea=function(a){g.ef(a.i,function(b){1E5<b.i||++b.i})};
Wea=function(a){g.ef(a.i,function(b){1E5<b.j||++b.j})};
Vea=function(a){g.ef(a.i,function(b){1E5<b.B||++b.B})};
Xea=function(){this.i=[];this.j=[]};
Wp=function(a,b){return g.Wb(a.i,function(c){return c.Lf==b})};
Yea=function(a,b){return b?g.Wb(a.i,function(c){return c.Wg.Co==b}):null};
Zea=function(a,b){return g.Wb(a.j,function(c){return 2==c.Uk()&&c.Lf==b})};
Yp=function(){var a=Xp;return 0==a.i.length?a.j:0==a.j.length?a.i:g.hc(a.j,a.i)};
$ea=function(a,b){a=1==b.Uk()?a.i:a.j;var c=Vb(a,function(d){return d==b});
return-1!=c?(a.splice(c,1),b.Td&&b.Td.Lu(),b.dispose(),!0):!1};
afa=function(a){var b=Xp;if($ea(b,a)){switch(a.Uk()){case 0:var c=function(){return null};
case 2:c=function(){return Zea(b,a.Lf)};
break;case 1:c=function(){return Wp(b,a.Lf)}}for(var d=c();d;d=c())$ea(b,d)}};
bfa=function(a,b){var c=Xp;a=g.Bp(a,(void 0===b?0:b)?function(d){return!Wp(c,d.Lf)}:function(d){return!Yea(c,d.Wg.Co)});
c.i.push.apply(c.i,g.u(a))};
cfa=function(a){var b=Xp,c=[];g.uc(a,function(d){Uo(b.i,function(e){return e.Wg.Co===d.Wg.Co&&e.Lf===d.Lf})||(b.i.push(d),c.push(d))})};
Zp=function(){this.i=this.j=null};
dfa=function(a,b){function c(d,e){b(d,e)}
if(null==a.j)return!1;a.i=g.Wb(a.j,function(d){return null!=d&&d.II()});
a.i&&(a.i.init(c)?Rda(a.i.i):b(a.i.i.Ls(),a.i));return null!=a.i};
$p=function(a){a=efa(a);cp.call(this,a.length?a[a.length-1]:new Zo(Xm,0));this.u=a;this.j=null};
efa=function(a){if(!a.length)return[];a=(0,g.Bp)(a,function(c){return null!=c&&c.Ku()});
for(var b=1;b<a.length;b++)$o(a[b-1],a[b]);return a};
aq=function(a,b,c,d){bp.call(this,a,b,c,d);this.W=this.N=this.C=this.I=this.u=null};
bq=function(a){return a.u&&a.u.takeRecords?a.u.takeRecords():[]};
gfa=function(a){if(!a.element)return!1;var b=a.element,c=a.j.i.u,d=wo().i.i;a.u=new c.IntersectionObserver(vo(d,function(e){return cq(a,e)}),ffa);
d=vo(d,function(){a.u.unobserve(b);a.u.observe(b);cq(a,bq(a))});
c.ResizeObserver?(a.I=new c.ResizeObserver(d),a.I.observe(b)):c.MutationObserver&&(a.C=new g.C.MutationObserver(d),a.C.observe(b,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));a.u.observe(b);cq(a,bq(a));return!0};
cq=function(a,b){try{if(b.length){a.N||(a.N=Jo());var c=hfa(b),d=fo(a.element,a.j.i.u),e=d.x,f=d.y;a.i=new mn(Math.round(f),Math.round(e)+c.boundingClientRect.width,Math.round(f)+c.boundingClientRect.height,Math.round(e));var k=Lda(c.intersectionRect);a.B=pn(k,a.i.left-k.left,a.i.top-k.top)}}catch(l){a.Lu(),Io(299,l)}};
hfa=function(a){return ro(a,function(b,c){return b.time>c.time?b:c},a[0])};
dq=function(a){a=void 0===a?Xm:a;cp.call(this,new Zo(a,2))};
eq=function(){var a=ifa();Zo.call(this,Xm.top,a,"geo")};
ifa=function(){wo();var a=Vo();return a.u||a.j?0:2};
jfa=function(){};
fq=function(){this.done=!1;this.i={bS:0,aK:0,Gfa:0,XK:0,mF:-1,DS:0,CS:0,ES:0};this.C=null;this.I=!1;this.u=null;this.J=0;this.j=new Yo(this)};
hq=function(){var a=gq;a.I||(a.I=!0,kfa(a,function(){return a.B.apply(a,g.u(g.Ca.apply(0,arguments)))}),a.B())};
lfa=function(){an(jfa);var a=an(Zp);null!=a.i&&a.i.i?Rda(a.i.i):Vo().update(Xm)};
iq=function(a,b,c){if(!a.done&&(a.j.cancel(),0!=b.length)){a.u=null;try{lfa();var d=Jo(),e=wo();e.C=d;if(null!=an(Zp).i)for(e=0;e<b.length;e++)rea(b[e],d,c);else xo(Co,"",{strategy_not_selected:1,bin:e.j},!0,void 0);for(d=0;d<b.length;d++)sea(b[d]);++a.i.XK;mfa()}finally{c?g.uc(b,function(f){f.Cf.hd=0}):a.j.schedule()}}};
kfa=function(a,b){if(!a.C){b=Go(142,b,void 0);to();var c;Wo.visibilityState?c="visibilitychange":Wo.mozVisibilityState?c="mozvisibilitychange":Wo.webkitVisibilityState&&(c="webkitvisibilitychange");c&&Zm(Wo,c,b,{capture:!1})&&(a.C=b)}};
nfa=function(){var a=an(Zp);if(null!=a.i){var b=a.i;g.uc(Yp(),function(c){return pea(c,b)})}};
mfa=function(){var a=wo();Rm(a.featureSet,"llp")};
ofa=function(a,b){a=a.J;Lo&&(a+=b-Mo);return a};
pfa=function(a){var b=gq;a=void 0===a?function(){return{}}:a;
Fo.cL="av-js";Co.i=.01;Dda([function(c){var d=wo(),e={};e=(e.bin=d.j,e.type="error",e);d=Sm(d.featureSet);if(!b.u){var f=Xm.document,k=0<=Ko?Jo()-Ko:-1,l=Jo();-1==b.i.mF&&(k=l);var m=Vo(),n=wo(),p=Sm(n.featureSet),r=Yp();try{if(0<r.length){var t=m.i;t&&(p.bs=[nn(t),t.getHeight()]);var w=m.C;w&&(p.ps=[w.width,w.height]);Xm.screen&&(p.scs=[Xm.screen.width,Xm.screen.height])}else p.url=encodeURIComponent(Xm.location.href.substring(0,512)),f.referrer&&(p.referrer=encodeURIComponent(f.referrer.substring(0,
512)));p.tt=k;p.pt=Ko;p.bin=n.j;void 0!==Xm.google_osd_load_pub_page_exp&&(p.olpp=Xm.google_osd_load_pub_page_exp);p.deb=[1,b.i.bS,b.i.aK,b.i.XK,b.i.mF,0,b.j.j,b.i.DS,b.i.CS,b.i.ES].join("-");p.tvt=ofa(b,l);m.j&&(p.inapp=1);if(null!==Xm&&Xm!=Xm.top){0<r.length&&(p.iframe_loc=encodeURIComponent(Xm.location.href.substring(0,512)));var x=m.J;p.is=[nn(x),x.getHeight()]}}catch(y){p.error=1}b.u=p}t=g.yf(b.u);w=wo().i;1==Rm(w.u,"prf")?(x=new ida,f=w.i,k=0,-1<f.i&&(k=f.u.i.now()-f.i),x=Jd(x,1,f.B+k,0),f=
w.i,x=Jd(x,5,-1<f.i?f.j+1:f.j,0),x=Jd(x,2,w.j.i.u(),0),x=Jd(x,3,w.j.i.j(),0),w=Jd(x,4,w.j.i.i(),0),x={},w=(x.pf=g.Jc(g.te(w,lda)),x)):w={};g.Bf(t,w);g.Bf(c,e,d,t,a());if(e=aea())d={},g.Bf(c,(d.v=encodeURIComponent(e),d))}])};
rfa=function(){var a=qfa||Xm;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("&")};
jq=function(){var a="youtube.player.web_20220126_01_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20220126_01_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20220126_01_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20220126_01_RC00".match(/_(\d{8})_\d+_RC\d+$/),b;if(2==(null==(b=a)?void 0:b.length))return a[1];a="youtube.player.web_20220126_01_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]:"919"};
sfa=function(){return"av.default_js".includes("ima_html5_sdk")?{Mk:"ima",version:"919"}:"av.default_js".includes("ima_native_sdk")?{Mk:"nima",version:"919"}:"av.default_js".includes("admob-native-video-javascript")?{Mk:"an",version:"919"}:"youtube.player.web_20220126_01_RC00".includes("cast_js_sdk")?{Mk:"cast",version:jq()}:"youtube.player.web_20220126_01_RC00".includes("youtube.player.web")?{Mk:"yw",version:jq()}:"youtube.player.web_20220126_01_RC00".includes("outstream_web_client")?{Mk:"out",version:jq()}:
"youtube.player.web_20220126_01_RC00".includes("drx_rewarded_web")?{Mk:"r",version:jq()}:"youtube.player.web_20220126_01_RC00".includes("gam_native_web_video")?{Mk:"n",version:jq()}:"youtube.player.web_20220126_01_RC00".includes("admob_interstitial_video")?{Mk:"int",version:jq()}:{Mk:"j",version:"919"}};
mq=function(a,b){var c={sv:kq,cb:tfa};c.nas=Xp.i.length;c.msg=a;void 0!==b&&(a=ufa(b))&&(c.e=lq[a]);return c};
nq=function(a){return jb(a,"custom_metric_viewable")};
ufa=function(a){var b=nq(a)?"custom_metric_viewable":a.toLowerCase();return sf(Sp,function(c){return c==b})};
vfa=function(){this.i=void 0;this.j=!1;this.u=0;this.B=-1;this.C="tos"};
yfa=function(a){try{var b=a.split(",");return b.length>g.pf(wfa).length?null:ro(b,function(c,d){d=d.toLowerCase().split("=");if(2!=d.length||void 0===xfa[d[0]]||!xfa[d[0]](d[1]))throw Error("Entry ("+d[0]+", "+d[1]+") is invalid.");c[d[0]]=d[1];return c},{})}catch(c){return null}};
zfa=function(a,b){if(void 0==a.i)return 0;switch(a.C){case "mtos":return a.j?mp(b.i,a.i):mp(b.j,a.i);case "tos":return a.j?lp(b.i,a.i):lp(b.j,a.i)}return 0};
oq=function(a,b,c,d){Ip.call(this,b,d);this.J=a;this.N=c};
Afa=function(){};
pq=function(){};
qq=function(){};
rq=function(a){Ip.call(this,"fully_viewable_audible_half_duration_impression",a)};
sq=function(a){this.i=a};
tq=function(a,b){Ip.call(this,a,b)};
uq=function(a){Jp.call(this,"measurable_impression",a)};
vq=function(){sq.apply(this,arguments)};
wq=function(a,b,c){Lp.call(this,a,b,c)};
xq=function(a){a=void 0===a?Xm:a;cp.call(this,new Zo(a,2))};
yq=function(a,b,c){Lp.call(this,a,b,c)};
zq=function(a){a=void 0===a?Xm:a;cp.call(this,new Zo(a,2))};
Aq=function(){Zo.call(this,Xm,2,"mraid");this.Ha=0;this.ea=this.va=!1;this.J=null;this.j=Ida(this.u);this.B.i=new mn(0,0,0,0);this.Ia=!1};
Bq=function(a,b,c){a.Vo("addEventListener",b,c)};
Efa=function(a){wo().B=!!a.Vo("isViewable");Bq(a,"viewableChange",Bfa);"loading"===a.Vo("getState")?Bq(a,"ready",Cfa):Dfa(a)};
Dfa=function(a){"string"===typeof a.j.Lj.AFMA_LIDAR?(a.va=!0,Ffa(a)):(a.j.compatibility=3,a.J="nc",a.fail("w"))};
Ffa=function(a){a.ea=!1;var b=1==Rm(wo().featureSet,"rmmt"),c=!!a.Vo("isViewable");(b?!c:1)&&to().setTimeout(Ho(524,function(){a.ea||(Gfa(a),Io(540,Error()),a.J="mt",a.fail("w"))}),500);
Hfa(a);Bq(a,a.j.Lj.AFMA_LIDAR,Ifa)};
Hfa=function(a){var b=1==Rm(wo().featureSet,"sneio"),c=void 0!==a.j.Lj.AFMA_LIDAR_EXP_1,d=void 0!==a.j.Lj.AFMA_LIDAR_EXP_2;(b=b&&d)&&(a.j.Lj.AFMA_LIDAR_EXP_2=!0);c&&(a.j.Lj.AFMA_LIDAR_EXP_1=!b)};
Gfa=function(a){a.Vo("removeEventListener",a.j.Lj.AFMA_LIDAR,Ifa);a.va=!1};
Jfa=function(a,b){if("loading"===a.Vo("getState"))return new g.dh(-1,-1);b=a.Vo(b);if(!b)return new g.dh(-1,-1);a=parseInt(b.width,10);b=parseInt(b.height,10);return isNaN(a)||isNaN(b)?new g.dh(-1,-1):new g.dh(a,b)};
Cfa=function(){try{var a=an(Aq);a.Vo("removeEventListener","ready",Cfa);Dfa(a)}catch(b){Io(541,b)}};
Ifa=function(a,b){try{var c=an(Aq);c.ea=!0;var d=a?new mn(a.y,a.x+a.width,a.y+a.height,a.x):new mn(0,0,0,0);var e=Jo(),f=Xo();var k=new Oo(e,f,c);k.i=d;k.volume=b;c.ao(k)}catch(l){Io(542,l)}};
Bfa=function(a){var b=wo(),c=an(Aq);a&&!b.B&&(b.B=!0,c.Ia=!0,c.J&&c.fail("w",!0))};
Cq=function(){this.isInitialized=!1;this.i=this.j=null;var a={};this.J=(a.start=this.PT,a.firstquartile=this.JT,a.midpoint=this.LT,a.thirdquartile=this.QT,a.complete=this.HT,a.pause=this.EG,a.resume=this.FO,a.skip=this.OT,a.viewable_impression=this.Vk,a.mute=this.nu,a.unmute=this.nu,a.fullscreen=this.KT,a.exitfullscreen=this.IT,a.fully_viewable_audible_half_duration_impression=this.Vk,a.measurable_impression=this.Vk,a.abandon=this.EG,a.engagedview=this.Vk,a.impression=this.Vk,a.creativeview=this.Vk,
a.progress=this.nu,a.custom_metric_viewable=this.Vk,a.bufferstart=this.EG,a.bufferfinish=this.FO,a.audio_measurable=this.Vk,a.audio_audible=this.Vk,a);a={};this.N=(a.overlay_resize=this.NT,a.abandon=this.dF,a.close=this.dF,a.collapse=this.dF,a.overlay_unmeasurable_impression=function(b){return Tp(b,"overlay_unmeasurable_impression",Xo())},a.overlay_viewable_immediate_impression=function(b){return Tp(b,"overlay_viewable_immediate_impression",Xo())},a.overlay_unviewable_impression=function(b){return Tp(b,
"overlay_unviewable_impression",Xo())},a.overlay_viewable_end_of_session_impression=function(b){return Tp(b,"overlay_viewable_end_of_session_impression",Xo())},a);
wo().j=3;Kfa(this);this.u=!1};
Dq=function(a,b,c,d){b=a.Bx(null,d,!0,b);b.B=c;bfa([b],a.u);return b};
Lfa=function(a,b,c){Dca(b);var d=a.i;g.uc(b,function(e){var f=g.po(e.criteria,function(k){var l=yfa(k);if(null==l)k=null;else if(k=new vfa,null!=l.visible&&(k.i=l.visible/100),null!=l.audible&&(k.j=1==l.audible),null!=l.time){var m="mtos"==l.timetype?"mtos":"tos",n=kb(l.time,"%")?"%":"ms";l=parseInt(l.time,10);"%"==n&&(l/=100);"ms"==n?(k.u=l,k.B=-1):(k.u=-1,k.B=l);k.C=void 0===m?"tos":m}return k});
Uo(f,function(k){return null==k})||Gea(c,new oq(e.id,e.event,f,d))})};
Mfa=function(){var a=[],b=wo();a.push(an(eq));Rm(b.featureSet,"mvp_lv")&&a.push(an(Aq));b=[new xq,new zq];b.push(new $p(a));b.push(new dq(Xm));return b};
Nfa=function(a){if(!a.isInitialized){a.isInitialized=!0;try{var b=Jo(),c=wo(),d=Vo();Ko=b;c.u=79463069;"o"!==a.j&&(qfa=ln(Xm));if(fda()){gq.i.aK=0;gq.i.mF=Jo()-b;var e=Mfa(),f=an(Zp);f.j=e;dfa(f,function(){Eq()})?gq.done||(nfa(),$o(f.i.i,a),hq()):d.u?Eq():hq()}else Fq=!0}catch(k){throw Xp.reset(),k;
}}};
Hq=function(a){gq.j.cancel();Gq=a;gq.done=!0};
Iq=function(a){if(a.j)return a.j;var b=an(Zp).i;if(b)switch(b.getName()){case "nis":a.j="n";break;case "gsv":a.j="m"}a.j||(a.j="h");return a.j};
Jq=function(a,b,c){if(null==a.i)return b.wu|=4,!1;a=Ofa(a.i,c,b);b.wu|=a;return 0==a};
Eq=function(){var a=[new dq(Xm)],b=an(Zp);b.j=a;dfa(b,function(){Hq("i")})?gq.done||(nfa(),hq()):Hq("i")};
Pfa=function(a,b){if(!a.kb){var c=Tp(a,"start",Xo());c=a.FG.i(c).i;var d={id:"lidarv"};d.r=b;d.v=kq+"v";zj(c,function(e,f){return d[e]="mtos"==e||"tos"==e?f:encodeURIComponent(f)});
b=rfa();zj(b,function(e,f){return d[e]=encodeURIComponent(f)});
b="//web.archive.org/web/20220130220643/https://pagead2.googlesyndication.com/pagead/gen_204?"+fp(ep(new dp,d));bea(b);a.kb=!0}};
Kq=function(a,b,c){iq(gq,[a],!Xo());Kea(a,c);4!=c&&Jea(a.va,c,a.Pz);return Tp(a,b,Xo())};
Kfa=function(a){pfa(function(){var b=Qfa();null!=a.j&&(b.sdk=a.j);var c=an(Zp);null!=c.i&&(b.avms=c.i.getName());return b})};
Rfa=function(a,b,c,d){if(a.u)var e=Wp(Xp,b);else e=Yea(Xp,c),null!==e&&e.Lf!==b&&(a.Hv(e),e=null);e||(b=a.Bx(c,Jo(),!1,b),0==Xp.j.length&&(wo().u=79463069),cfa([b]),e=b,e.B=Iq(a),d&&(e.Ta=d));return e};
Sfa=function(a){g.uc(Xp.i,function(b){3==b.Ag&&a.Hv(b)})};
Tfa=function(a,b){var c=a[b];void 0!==c&&0<c&&(a[b]=Math.floor(1E3*c))};
Qfa=function(){var a=Vo(),b={};return b.sv=kq,b["if"]=a.u?"1":"0",b.nas=String(Xp.i.length),b};
Lq=function(a){Ip.call(this,"audio_audible",a)};
Mq=function(a){Jp.call(this,"audio_measurable",a)};
Nq=function(){sq.apply(this,arguments)};
Oq=function(){};
Ufa=function(a){this.i=a};
Ofa=function(a,b,c){a=a.j();if("function"===typeof a){var d={};d=(d.sv=kq,d.cb=tfa,d.e=Vfa(b),d);var e=Tp(c,b,Xo());g.Bf(d,e);c.IP[b]=e;d=2==c.Uk()?$da(d).join("&"):c.FG.i(d).i;try{return a(c.Lf,d,b),0}catch(f){return 2}}else return 1};
Vfa=function(a){var b=nq(a)?"custom_metric_viewable":a;a=sf(Sp,function(c){return c==b});
return lq[a]};
Pq=function(){Cq.call(this);this.C=null;this.B=!1;this.I="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"};
Wfa=function(a,b,c){c=c.opt_configurable_tracking_events;null!=a.i&&Array.isArray(c)&&Lfa(a,c,b)};
Xfa=function(a,b,c){var d=Wp(Xp,b);d||(d=c.opt_nativeTime||-1,d=Dq(a,b,Iq(a),d),c.opt_osdId&&(d.Ta=c.opt_osdId));return d};
Yfa=function(a,b,c){var d=Wp(Xp,b);d||(d=Dq(a,b,"n",c.opt_nativeTime||-1));return d};
Zfa=function(a,b){var c=Wp(Xp,b);c||(c=Dq(a,b,"h",-1));return c};
$fa=function(a){wo();switch(Iq(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};
dga=function(a,b,c,d){c=void 0===c?{}:c;var e={};g.Bf(e,{opt_adElement:void 0,opt_fullscreen:void 0},c);var f=a.Uz(b,c);c=f?f.FG:a.fE();if(e.opt_bounds)return c.i(mq("ol",d));if(void 0!==d)if(void 0!==ufa(d))if(Fq)b=mq("ue",d);else if(Nfa(a),"i"==Gq)b=mq("i",d),b["if"]=0;else if(b=a.Uz(b,e))if(a.u&&3==b.Ag)b="stopped";else{b:{"i"==Gq&&(b.zo=!0,a.iH());f=e.opt_fullscreen;void 0!==f&&tp(b,!!f);var k;if(f=!Vo().j)(f=ub(g.yb(),"CrKey")||ub(g.yb(),"PlayStation")||ub(g.yb(),"Roku")||Nda()||ub(g.yb(),"Xbox"))||
(f=g.yb(),f=ub(f,"AppleTV")||ub(f,"Apple TV")||ub(f,"CFNetwork")||ub(f,"tvOS")),f||(f=g.yb(),f=ub(f,"sdk_google_atv_x86")||ub(f,"Android TV")),f=!f;f&&(to(),f=0===cn(Wo));if(k=f){switch(b.Uk()){case 1:Pfa(b,"pv");break;case 2:a.VG(b)}Hq("pv")}f=d.toLowerCase();if(k=!k)k=Rm(wo().featureSet,"ssmol")&&"loaded"===f?!1:g.$b(aga,f);if(k&&0==b.Ag){"i"!=Gq&&(gq.done=!1);k=void 0!==e?e.opt_nativeTime:void 0;No=k="number"===typeof k?k:Jo();b.nz=!0;var l=Xo();b.Ag=1;b.Ef={};b.Ef.start=!1;b.Ef.firstquartile=
!1;b.Ef.midpoint=!1;b.Ef.thirdquartile=!1;b.Ef.complete=!1;b.Ef.resume=!1;b.Ef.pause=!1;b.Ef.skip=!1;b.Ef.mute=!1;b.Ef.unmute=!1;b.Ef.viewable_impression=!1;b.Ef.measurable_impression=!1;b.Ef.fully_viewable_audible_half_duration_impression=!1;b.Ef.fullscreen=!1;b.Ef.exitfullscreen=!1;b.jE=0;l||(b.wg().N=k);iq(gq,[b],!l)}(k=b.Zq[f])&&Ep(b.sf,k);g.$b(cga,f)&&b.xq&&b.xq.C(b,null);switch(b.Uk()){case 1:var m=nq(f)?a.J.custom_metric_viewable:a.J[f];break;case 2:m=a.N[f]}if(m&&(d=m.call(a,b,e,d),void 0!==
d)){e=mq(void 0,f);g.Bf(e,d);d=e;break b}d=void 0}3==b.Ag&&(a.u?b.Td&&b.Td.Lu():a.Hv(b));b=d}else b=mq("nf",d);else b=void 0;else Fq?b=mq("ue"):f?(b=mq(),g.Bf(b,Mea(f,!0,!1,!1))):b=mq("nf");return"string"===typeof b?a.u&&"stopped"===b?Qq:c.i(void 0):c.i(b)};
ega=function(a,b){b&&(a.I=b)};
fga=function(a){var b={};return b.viewability=a.i,b.googleViewability=a.j,b};
Rq=function(a,b,c){c=void 0===c?{}:c;a=dga(an(Pq),b,c,a);return fga(a)};
gga=function(a,b){b=void 0===b?!1:b;var c=an(Pq).Uz(a,{});c?Op(c):b&&(a=an(Pq).Bx(null,Jo(),!1,a),a.Ag=3,cfa([a]))};
jga=function(a){if(g.lb(g.jh(a)))return!1;if(0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&"))return!0;try{var b=new g.Al(a)}catch(c){return null!=g.Wb(hga,function(d){return 0<a.search(d)})}return b.C.match(iga)?!0:null!=g.Wb(hga,function(c){return null!=a.match(c)})};
g.Sq=function(a,b){return a.replace(kga,function(c,d){try{var e=wf(b,d);if(null==e||null==e.toString())return c;e=e.toString();if(""==e||!g.lb(g.jh(e)))return encodeURIComponent(e).replace(/%2C/g,",")}catch(f){}return c})};
dr=function(a){g.Uf.call(this);var b=this;this.I=this.j=0;this.Ij=null!=a?a:{Uf:function(e,f){return setTimeout(e,f)},
wi:clearTimeout};var c,d;this.i=null!=(d=null==(c=window.navigator)?void 0:c.onLine)?d:!0;this.B=function(){return g.B(function(e){return g.A(e,Tq(b),0)})};
window.addEventListener("offline",this.B);window.addEventListener("online",this.B);this.I||lga(this)};
lga=function(a){a.I=a.Ij.Uf(function(){var b;return g.B(function(c){if(1==c.i)return a.i?(null==(b=window.navigator)?0:b.onLine)?c.eb(3):g.A(c,Tq(a),3):g.A(c,Tq(a),3);lga(a);g.ua(c)})},3E4)};
Tq=function(a,b){return a.C?a.C:a.C=new Promise(function(c){var d,e,f,k;return g.B(function(l){switch(l.i){case 1:return d=window.AbortController?new window.AbortController:void 0,f=null==(e=d)?void 0:e.signal,k=!1,va(l,2,3),d&&(a.j=a.Ij.Uf(function(){d.abort()},b||2E4)),g.A(l,fetch("/generate_204",{method:"HEAD",
signal:f}),5);case 5:k=!0;case 3:ya(l);a.C=void 0;a.j&&(a.Ij.wi(a.j),a.j=0);k!==a.i&&(a.i=k,a.i?a.dispatchEvent("networkstatus-online"):a.dispatchEvent("networkstatus-offline"));c(k);za(l,0);break;case 2:xa(l),k=!1,l.eb(3)}})})};
er=function(){this.data_=[];this.i=-1};
mga=function(a){-1==a.i&&(a.i=ro(a.data_,function(b,c,d){return c?b+Math.pow(2,d):b},0));
return a.i};
g.fr=function(a,b,c){g.G.call(this);this.i=null;this.B=!1;this.I=a;this.C=c;this.j=b||window;this.u=(0,g.Ra)(this.kQ,this)};
g.gr=function(a){a.isActive()||a.start()};
nga=function(a){a=a.j;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null};
oga=function(a){a=a.j;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};
g.K=function(a,b,c){g.G.call(this);this.i=a;this.Zf=b||0;this.j=c;this.u=(0,g.Ra)(this.KI,this)};
g.hr=function(a,b){a.isActive()||a.start(b)};
g.ir=function(a){a.stop();a.KI()};
g.jr=function(a){a.isActive()&&g.ir(a)};
kr=function(a,b){this.i=a[g.C.Symbol.iterator]();this.j=b;this.u=0};
pga=function(a,b){return new kr(a,b)};
qga=function(a){return"string"==typeof a.className?a.className:a.getAttribute&&a.getAttribute("class")||""};
lr=function(a){return a.classList?a.classList:qga(a).match(/\S+/g)||[]};
g.mr=function(a,b){"string"==typeof a.className?a.className=b:a.setAttribute&&a.setAttribute("class",b)};
g.nr=function(a,b){return a.classList?a.classList.contains(b):g.$b(lr(a),b)};
g.L=function(a,b){if(a.classList)a.classList.add(b);else if(!g.nr(a,b)){var c=qga(a);g.mr(a,c+(0<c.length?" "+b:b))}};
g.or=function(a,b){if(a.classList)Array.prototype.forEach.call(b,function(e){g.L(a,e)});
else{var c={};Array.prototype.forEach.call(lr(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.mr(a,b)}};
g.pr=function(a,b){a.classList?a.classList.remove(b):g.nr(a,b)&&g.mr(a,Array.prototype.filter.call(lr(a),function(c){return c!=b}).join(" "))};
g.qr=function(a,b){a.classList?Array.prototype.forEach.call(b,function(c){g.pr(a,c)}):g.mr(a,Array.prototype.filter.call(lr(a),function(c){return!g.$b(b,c)}).join(" "))};
g.M=function(a,b,c){c?g.L(a,b):g.pr(a,b)};
rga=function(a,b){var c=!g.nr(a,b);g.M(a,b,c)};
ur=function(a){if(a instanceof rr||a instanceof sr||a instanceof tr)return a;if("function"==typeof a.Mj)return new rr(function(){return sga(a)});
if("function"==typeof a[Symbol.iterator])return new rr(function(){return a[Symbol.iterator]()});
if("function"==typeof a.Pg)return new rr(function(){return sga(a.Pg())});
throw Error("Not an iterator or iterable.");};
sga=function(a){if(!(a instanceof g.up))return a;var b=!1;return{next:function(){for(var c;!b;)try{c=a.Mj();break}catch(d){if(d!==g.wp)throw d;b=!0}return{value:c,done:b}}}};
rr=function(a){this.i=a};
sr=function(a){this.i=a};
tr=function(a){rr.call(this,function(){return a});
this.u=a};
g.vr=function(a,b){this.j={};this.i=[];this.gp=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.vr)for(c=a.jm(),d=0;d<c.length;d++)this.set(c[d],a.get(c[d]));else for(d in a)this.set(d,a[d])};
tga=function(a,b){return a===b};
xr=function(a){if(a.size!=a.i.length){for(var b=0,c=0;b<a.i.length;){var d=a.i[b];wr(a.j,d)&&(a.i[c++]=d);b++}a.i.length=c}if(a.size!=a.i.length){var e={};for(c=b=0;b<a.i.length;)d=a.i[b],wr(e,d)||(a.i[c++]=d,e[d]=1),b++;a.i.length=c}};
wr=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
g.yr=function(){g.Uf.call(this);this.i=0;this.endTime=this.startTime=null};
uga=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.xn(a,"transition",b.join(","))};
zr=function(a,b,c,d,e){g.yr.call(this);this.j=a;this.I=b;this.J=c;this.C=d;this.N=Array.isArray(e)?e:[e]};
vga=function(a,b,c,d){return new zr(a,b,{opacity:c},{opacity:d},{property:"opacity",duration:b,timing:"ease-in",delay:0})};
xga=function(a){wga();return Kg(a,null)};
g.Ar=function(a){wga();return qg(a)};
zga=function(a){a=vb(a);if(""==a)return null;var b=String(a.substr(0,4)).toLowerCase();if(0==("url("<b?-1:"url("==b?0:1))return!a.endsWith(")")||1<(a?a.split("(").length-1:0)||a&&a.split(")"),null;if(0<a.indexOf("(")){if(/"|'/.test(a))return null;b=/([\-\w]+)\(/g;for(var c;c=b.exec(a);)if(!(c[1].toLowerCase()in yga))return null}return a};
Br=function(a,b){a=g.C[a];return a&&a.prototype?(b=Object.getOwnPropertyDescriptor(a.prototype,b))&&b.get||null:null};
Aga=function(a){var b=g.C.CSSStyleDeclaration;return b&&b.prototype&&b.prototype[a]||null};
Bga=function(a,b,c,d){if(a)return a.apply(b,d);if(g.Nc&&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)};
Gga=function(a){if(!a)return Dg;var b=document.createElement("div").style;Cga(a).forEach(function(c){var d=g.Ze&&c in Dga?c:c.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");jb(d,"--")||jb(d,"var")||(c=Bga(Ega,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[c])||"",c=zga(c),null!=c&&Bga(Fga,b,b.setProperty?"setProperty":"setAttribute",[d,c]))});
return mba(g.kg("Output of CSS sanitizer"),b.cssText||"")};
Cga=function(a){g.Na(a)?a=g.ic(a):(a=g.pf(a),g.fc(a,"cssText"));return a};
g.Dr=function(a){var b,c=b=0,d=!1;a=a.split(Hga);for(var e=0;e<a.length;e++){var f=a[e];g.Cr.test(f)?(b++,c++):Iga.test(f)?d=!0:Jga.test(f)?c++:Kga.test(f)&&(d=!0)}b=0==c?d?1:0:.4<b/c?-1:1;return-1==(0==b?null:b)?"rtl":"ltr"};
g.Er=function(a,b,c,d,e,f,k,l){this.i=a;this.J=b;this.u=c;this.C=d;this.B=e;this.I=f;this.j=k;this.N=l};
g.Fr=function(a,b){if(0==b)return a.i;if(1==b)return a.j;var c=g.$g(a.i,a.u,b),d=g.$g(a.u,a.B,b);a=g.$g(a.B,a.j,b);c=g.$g(c,d,b);d=g.$g(d,a,b);return g.$g(c,d,b)};
Gr=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};
Lga=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")};
Hr=function(a){return(a=a.exec(g.yb()))?a[1]:""};
Ir=function(a){return 0<=g.xb(Mga,a)};
g.Jr=function(a){g.G.call(this);this.I=1;this.u=[];this.B=0;this.i=[];this.j={};this.J=!!a};
Nga=function(a,b,c){g.gi(function(){a.apply(b,c)})};
g.Kr=function(a){this.i=a};
Lr=function(a){this.i=a};
Oga=function(a){this.data=a};
Pga=function(a){return void 0===a||a instanceof Oga?a:new Oga(a)};
Mr=function(a){this.i=a};
g.Qga=function(a){var b=a.creation;a=a.expiration;return!!a&&a<g.Ta()||!!b&&b>g.Ta()};
g.Nr=function(a){this.i=a};
Rga=function(){};
Or=function(){};
Pr=function(a){this.i=a};
Qr=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.i=a};
Sga=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.i=a};
Sr=function(a,b){this.j=a;this.i=null;if(g.Nc&&!g.Gc(9)){Rr||(Rr=new g.vr);this.i=Rr.get(a);this.i||(b?this.i=document.getElementById(b):(this.i=document.createElement("userdata"),this.i.addBehavior("#default#userData"),document.body.appendChild(this.i)),Rr.set(a,this.i));try{this.i.load(this.j)}catch(c){this.i=null}}};
Tr=function(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return Tga[b]})};
Ur=function(a){try{a.i.save(a.j)}catch(b){throw"Storage mechanism: Quota exceeded";}};
Vr=function(a,b){this.j=a;this.i=b+"::"};
g.Wr=function(a){var b=new Qr;return b.isAvailable()?a?new Vr(b,a):b:null};
Xr=function(a,b){this.i=a;this.j=b};
Yr=function(a){this.i=[];if(a)a:{if(a instanceof Yr){var b=a.jm();a=a.Bi();if(0>=this.i.length){for(var c=this.i,d=0;d<b.length;d++)c.push(new Xr(b[d],a[d]));break a}}else b=g.pf(a),a=of(a);for(d=0;d<b.length;d++)Uga(this,b[d],a[d])}};
Uga=function(a,b,c){var d=a.i;d.push(new Xr(b,c));b=d.length-1;a=a.i;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};
Vga=function(){Yr.call(this)};
Zr=function(){};
Wga=function(){var a=g.Ca.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.u(g.Ca.apply(0,arguments))))}})};
Xga=function(){var a=g.Ca.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(k){return e.apply(null,[k].concat(g.u(g.Ca.apply(1,arguments))))}};
d=a.map(function(k){return k(f)});
e=Wga.apply(null,g.u(d))(c.dispatch);return Object.assign({},c,{dispatch:e})}}};
$r=function(){return Math.random().toString(36).substring(7).split("").join(".")};
Yga=function(a){Object.keys(a).forEach(function(b){var c=a[b];if("undefined"===typeof c(void 0,{type:as}))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"+$r()}))throw Error('Reducer "'+
b+"\" returned undefined when probed with a random type. Don't try to handle "+(as+' 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.'));})};
Zga=function(a,b,c,d){function e(){if(r)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(r)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 x=!0;p===n&&(p=n.slice());p.push(w);return function(){if(x){if(r)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.");
x=!1;p===n&&(p=n.slice());p.splice(p.indexOf(w),1);n=null}}}
function k(w){if("object"!==typeof w||null===w)var x=!1;else{for(x=w;null!==Object.getPrototypeOf(x);)x=Object.getPrototypeOf(x);x=Object.getPrototypeOf(w)===x}if(!x)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(r)throw Error("Reducers may not dispatch actions.");try{r=!0,m=l(m,w)}finally{r=!1}x=n=p;for(var y=0;y<x.length;y++)(0,x[y])();
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(Zga)(a,b)}if("function"!==typeof a)throw Error("Expected the reducer to be a function.");
var l=a,m=b,n=[],p=n,r=!1;k({type:as});a={};var t=(a.dispatch=k,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;k({type:$ga});return t},a[aha]=function(){var w={};
return w.subscribe=function(x){function y(){x.next&&x.next(e())}
if("object"!==typeof x||null===x)throw new TypeError("Expected the observer to be an object.");y();return{unsubscribe:f(y)}},w[aha]=function(){return this},w},a);
return t};
bs=function(a){g.E.call(this,a,-1,bha)};
fha=function(){return[2,cha,4,Ie,7,cs,9,cs,10,cs,11,dha,12,cs,13,cha,14,g.ds,es,eha,15,g.fs,16,g.fs,17,cs,1,dha,3,g.fs,5,g.fs,6,g.fs,8,Ie]};
es=function(a){g.E.call(this,a)};
eha=function(){return[1,Ie,2,Ie,3,Ie,4,Ie,5,cs]};
gha=function(a){var b=a.split(""),c=[b,function(d,e){e=(e%d.length+d.length)%d.length;d.splice(e,1)},
null,function(d,e){e=(e%d.length+d.length)%d.length;d.splice(0,1,d.splice(e,1,d[0])[0])},
null,5377642,null,-892237605,-287823814,-399206859,-925392038,-1193160345,-82212452,1763585288,-1437079405,function(d,e,f){var k=f.length;d.forEach(function(l,m,n){this.push(n[m]=f[(f.indexOf(l)-f.indexOf(this[m])+m+k--)%f.length])},e.split(""))},
1481336299,-965769688,"split",1122301642,-269457785,-173601589,b,103246928,function(d,e){for(e=(e%d.length+d.length)%d.length;e--;)d.unshift(d.pop())},
1195465683,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},
1141901654,342370702,function(d,e){e=(e%d.length+d.length)%d.length;var f=d[0];d[0]=d[e];d[e]=f},
function(d,e){e=(e%d.length+d.length)%d.length;d.splice(-e).reverse().forEach(function(f){d.unshift(f)})},
-615306155,-1876426861,563987904,-2129837076,-173601589,1295877648,"HhWY4",342370702,2107368862,-10557899,function(d){d.reverse()},
767418350,670676444,926758653,1394292499,-1400752430,356536951,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){d.reverse()},
-1497022746,b,function(d){for(var e=d.length;e;)d.push(d.splice(--e,1)[0])},
-2015563505,-802116839];c[2]=c;c[4]=c;c[6]=c;try{c[29](c[4],c[16]),c[1](c[22],c[7]),c[24](c[51],c[45]),c[3](c[22],c[9]),c[29](c[14],c[19]),c[1](c[22],c[53]),c[30](c[2],c[40]),c[41](c[25],c[34]),c[35](c[7],c[11]),c[40](c[7],c[38]),c[35](c[33],c[23]),c[35](c[13],c[43]),c[34](c[12],c[52]),c[20](c[1],c[23],c[53]()),c[20](c[27],c[42],c[31]()),c[34](c[11],c[44]),c[34](c[11],c[4]),c[8](c[19],c[30]),c[6](c[19],c[33]),c[35](c[19],c[13]),c[34](c[11],c[27]),c[2](c[19]),c[29](c[9],c[41]),c[23](c[14],c[13]),c[51](c[14],
c[53]),c[45](c[14]),c[23](c[50],c[26]),c[23](c[36],c[11]),c[23](c[43],c[1]),c[17](c[43],c[32]),c[19](c[28]),c[8](c[28],c[15]),c[45](c[35]),c[39](c[17],c[3]),c[19](c[30],c[15]),c[48](c[28],c[0]),c[19](c[48],c[18]),c[18](c[21],c[7]),c[39](c[17],c[26]),c[40](c[51],c[3])}catch(d){return"enhanced_except_y5QBtOv-_w8_"+a}return b.join("")};
gs=function(a){this.i=a};
hs=function(){gs.apply(this,arguments)};
is=function(){hs.apply(this,arguments)};
js=function(a){g.E.call(this,a)};
ks=function(a){g.E.call(this,a)};
ls=function(a){g.E.call(this,a)};
ms=function(a){g.E.call(this,a)};
ns=function(a){g.E.call(this,a,-1,hha)};
jha=function(a){g.E.call(this,a,-1,iha)};
os=function(a){g.E.call(this,a)};
ps=function(a){g.E.call(this,a,-1,kha)};
qs=function(a){g.E.call(this,a,-1,lha)};
rs=function(){hs.apply(this,arguments)};
ts=function(){hs.apply(this,arguments)};
us=function(){hs.apply(this,arguments)};
vs=function(){gs.apply(this,arguments)};
ws=function(){hs.apply(this,arguments)};
xs=function(){hs.apply(this,arguments)};
ys=function(){hs.apply(this,arguments)};
zs=function(){hs.apply(this,arguments)};
As=function(a){g.E.call(this,a)};
Bs=function(a){g.E.call(this,a)};
mha=function(a,b){Pd(a,1,b)};
nha=function(a){g.E.call(this,a)};
oha=function(a,b){Pd(a,1,b)};
Cs=function(a){g.E.call(this,a,-1,pha)};
qha=function(a,b){Pd(a,2,b)};
Ds=function(a){g.E.call(this,a)};
Es=function(a){g.E.call(this,a)};
Fs=function(a){g.E.call(this,a)};
rha=function(a){g.E.call(this,a)};
Gs=function(a){g.E.call(this,a,-1,sha)};
tha=function(a){g.E.call(this,a)};
Hs=function(a){g.E.call(this,a,-1,uha)};
Is=function(a){g.E.call(this,a)};
vha=function(a){g.E.call(this,a)};
wha=function(a){g.E.call(this,a)};
Js=function(a){g.E.call(this,a)};
Ks=function(a){g.E.call(this,a,421)};
xha=function(a){g.E.call(this,a)};
Ls=function(a){g.E.call(this,a)};
Ms=function(a){g.E.call(this,a,-1,yha)};
Ns=function(){hs.apply(this,arguments)};
Os=function(){hs.apply(this,arguments)};
Ps=function(){hs.apply(this,arguments)};
Qs=function(){hs.apply(this,arguments)};
Rs=function(){hs.apply(this,arguments)};
Ss=function(){hs.apply(this,arguments)};
Ts=function(){hs.apply(this,arguments)};
Us=function(){hs.apply(this,arguments)};
Vs=function(){hs.apply(this,arguments)};
Ws=function(){hs.apply(this,arguments)};
Xs=function(){hs.apply(this,arguments)};
Ys=function(){hs.apply(this,arguments)};
Zs=function(){hs.apply(this,arguments)};
$s=function(){hs.apply(this,arguments)};
Lja=function(){return g.Ja("yt.ads.biscotti.lastId_")||""};
Mja=function(a){g.Ia("yt.ads.biscotti.lastId_",a,void 0)};
at=function(a){g.E.call(this,a,1)};
bt=function(a){g.E.call(this,a)};
ct=function(){bt.apply(this,arguments)};
dt=function(){at.apply(this,arguments)};
ft=function(){var a=arguments;1<a.length?et[a[0]]=a[1]:1===a.length&&Object.assign(et,a[0])};
g.P=function(a,b){return a in et?et[a]:b};
gt=function(a){return g.P(a,void 0)};
ht=function(){return et.EXPERIMENT_FLAGS};
jt=function(a){var b=ht();return b?b[a]:void 0};
g.Q=function(a){a=Nja(a);return"string"===typeof a&&"false"===a?!1:!!a};
g.kt=function(a,b){a=Nja(a);return void 0===a&&void 0!==b?b:Number(a||0)};
lt=function(){return g.P("EXPERIMENTS_TOKEN","")};
Nja=function(a){var b=g.P("EXPERIMENTS_FORCED_FLAGS",{});return void 0!==b[a]?b[a]:g.P("EXPERIMENT_FLAGS",{})[a]};
mt=function(){var a=[],b=g.P("EXPERIMENTS_FORCED_FLAGS",{});for(c in b)a.push({key:c,value:String(b[c])});var c=g.P("EXPERIMENT_FLAGS",{});for(var d in c)d.startsWith("force_")&&void 0===b[d]&&a.push({key:d,value:String(c[d])});return a};
Wja=function(a){nt.forEach(function(b){return b(a)})};
pt=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){g.ot(b)}}:a};
g.ot=function(a,b,c,d){var e=g.Ja("yt.logging.errors.log");e?e(a,"ERROR",b,c,d):(e=g.P("ERRORS",[]),e.push([a,"ERROR",b,c,d]),ft("ERRORS",e));Wja(a)};
qt=function(a,b,c,d){var e=g.Ja("yt.logging.errors.log");e?e(a,"WARNING",b,c,d):(e=g.P("ERRORS",[]),e.push([a,"WARNING",b,c,d]),ft("ERRORS",e))};
rt=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 k=Xja(f[0]||""),l=Xja(f[1]||"");k in c?Array.isArray(c[k])?jc(c[k],l):c[k]=[c[k],l]:c[k]=l}catch(r){var m=r,n=f[0],p=String(rt);m.args=[{key:n,value:f[1],query:a,method:Yja==p?"unchanged":p}];Zja.hasOwnProperty(n)||qt(m)}}return c};
tt=function(a){var b=[];g.ef(a,function(c,d){var e=gh(d),f;Array.isArray(c)?f=c:f=[c];g.uc(f,function(k){""==k?b.push(e):b.push(e+"="+gh(k))})});
return b.join("&")};
ut=function(a){"?"==a.charAt(0)&&(a=a.substr(1));return rt(a,"&")};
vt=function(a){a=a.split(",");return a=a.map(function(b){return ut(b)})};
g.wt=function(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),ut(1<a.length?a[1]:a[0])):{}};
xt=function(a,b){return $ja(a,b||{},!0)};
zt=function(a,b){return $ja(a,b||{},!1)};
$ja=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=ut(e[1]||"");for(var f in b)if(c||!qf(e,f))e[f]=b[f];return g.Hj(a,e)+d};
At=function(a){if(!b)var b=window.location.href;var c=g.vj(1,a),d=g.wj(a);c&&d?(a=a.match(uj),b=b.match(uj),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?g.wj(b)==d&&(Number(g.vj(4,b))||null)==(Number(g.vj(4,a))||null):!0;return a};
Bt=function(a){a||(a=document.location.href);a=g.vj(1,a);return null!==a&&"https"==a};
Ct=function(a){a=g.wj(a);a=null!==a?a.split(".").reverse():null;return null===a?!1:"com"==a[0]&&a[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
Xja=function(a){return a&&a.match(aka)?a:hh(a)};
Dt=function(a){var b=bka;a=void 0===a?Lja():a;var c=Object,d=c.assign,e=cka(b);var f=b.i;try{var k=f.screenX;var l=f.screenY}catch(z){}try{var m=f.outerWidth;var n=f.outerHeight}catch(z){}try{var p=f.innerWidth;var r=f.innerHeight}catch(z){}try{var t=f.screenLeft;var w=f.screenTop}catch(z){}try{p=f.innerWidth,r=f.innerHeight}catch(z){}try{var x=f.screen.availWidth;var y=f.screen.availTop}catch(z){}f=[t,w,k,l,x,y,m,n,p,r];k=Kda(!1,b.i.top);l={};m=new er;g.C.SVGElement&&g.C.document.createElementNS&&
m.set(0);n=Rca();n["allow-top-navigation-by-user-activation"]&&m.set(1);n["allow-popups-to-escape-sandbox"]&&m.set(2);g.C.crypto&&g.C.crypto.subtle&&m.set(3);g.C.TextDecoder&&g.C.TextEncoder&&m.set(4);m=mga(m);b=(l.bc=m,l.bih=k.height,l.biw=k.width,l.brdim=f.join(),l.vis=cn(b.j),l.wgl=!!Xm.WebGLRenderingContext,l);c=d.call(c,e,b);c.ca_type="image";a&&(c.bid=a);return c};
cka=function(a){var b={};b.dt=dka;b.flash="0";a:{try{var c=a.i.top.location.href}catch(p){a=2;break a}a=c?c===a.j.location.href?0:1:2}b=(b.frm=a,b);try{b.u_tz=-(new Date).getTimezoneOffset();var d=void 0===d?Xm:d;try{var e=d.history.length}catch(p){e=0}b.u_his=e;var f;b.u_h=null==(f=Xm.screen)?void 0:f.height;var k;b.u_w=null==(k=Xm.screen)?void 0:k.width;var l;b.u_ah=null==(l=Xm.screen)?void 0:l.availHeight;var m;b.u_aw=null==(m=Xm.screen)?void 0:m.availWidth;var n;b.u_cd=null==(n=Xm.screen)?void 0:
n.colorDepth}catch(p){}return b};
fka=function(){if(!eka)return null;var a=eka();return"open"in a?a:null};
g.Ft=function(a){switch(Et(a)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
Et=function(a){return a&&"status"in a?a.status:-1};
g.Gt=function(a,b){"function"===typeof a&&(a=pt(a));return window.setTimeout(a,b)};
Ht=function(a,b){"function"===typeof a&&(a=pt(a));return window.setInterval(a,b)};
g.It=function(a){window.clearTimeout(a)};
Jt=function(a){window.clearInterval(a)};
hka=function(a,b){b=void 0===b?{}:b;var c=At(a),d=g.Q("web_ajax_ignore_global_headers_if_set"),e;for(e in gka){var f=g.P(gka[e]);!f||!c&&!Kt(a,e)||d&&void 0!==b[e]||(b[e]=f)}if(c||Kt(a,"X-YouTube-Utc-Offset"))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(c||Kt(a,"X-YouTube-Time-Zone")){try{var k=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(l){}k&&(b["X-YouTube-Time-Zone"]=k)}if(c||Kt(a,"X-YouTube-Ad-Signals"))b["X-YouTube-Ad-Signals"]=tt(Dt(void 0));return b};
jka=function(a,b){var c=g.wj(a);g.Q("debug_handle_relative_url_for_query_forward_killswitch")||c||!At(a)||(c=document.location.hostname);var d=tj(g.vj(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=ut(b),f={};g.uc(ika,function(k){e[k]&&(f[k]=e[k])});
return zt(a,f)};
Kt=function(a){return g.wj(a)?!1:!0};
g.Mt=function(a,b){var c=b.format||"JSON";a=kka(a,b);var d=lka(a,b),e=!1,f=Lt(a,function(m){if(!e){e=!0;l&&g.It(l);var n=g.Ft(m),p=null,r=400<=m.status&&500>m.status,t=500<=m.status&&600>m.status;if(n||r||t)p=mka(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||{};r=b.context||g.C;n?b.onSuccess&&b.onSuccess.call(r,m,p):b.onError&&b.onError.call(r,m,p);b.onFinish&&b.onFinish.call(r,m,p)}},
b.method,d,b.headers,b.responseType,b.withCredentials);
if(b.onTimeout&&0<b.timeout){var k=b.onTimeout;var l=g.Gt(function(){e||(e=!0,f.abort(),g.It(l),k.call(b.context||g.C,f))},b.timeout)}return f};
kka=function(a,b){b.includeDomain&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var c=g.P("XSRF_FIELD_NAME",void 0);if(b=b.urlParams)b[c]&&delete b[c],a=xt(a,b);return a};
lka=function(a,b){var c=g.P("XSRF_FIELD_NAME",void 0),d=g.P("XSRF_TOKEN",void 0),e=b.postBody||"",f=b.postParams,k=gt("XSRF_FIELD_NAME"),l;b.headers&&(l=b.headers["Content-Type"]);b.excludeXsrf||g.wj(a)&&!b.withCredentials&&g.wj(a)!=document.location.hostname||"POST"!=b.method||l&&"application/x-www-form-urlencoded"!=l||b.postParams&&b.postParams[k]||(f||(f={}),f[c]=d);f&&"string"===typeof e&&(e=ut(e),g.Bf(e,f),e=b.postBodyFormat&&"JSON"==b.postBodyFormat?JSON.stringify(e):g.Fj(e));f=e||f&&!g.uf(f);
!nka&&f&&"POST"!=b.method&&(nka=!0,g.ot(Error("AJAX request with postData should use POST")));return e};
mka=function(a,b,c,d){var e=null;switch(b){case "JSON":try{var f=c.responseText}catch(k){throw d=Error("Error reading responseText"),d.params=a,qt(d),k;}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)?oka(a):null)e={},g.uc(a.getElementsByTagName("*"),function(k){e[k.tagName]=pka(k)})}d&&qka(e);
return e};
qka=function(a){if(g.Oa(a))for(var b in a)"html_content"==b||kb(b,"_html")?a[b]=g.Sg(g.kg("HTML that is escaped and sanitized server-side and passed through yt.net.ajax"),a[b]):qka(a[b])};
oka=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null};
pka=function(a){var b="";g.uc(a.childNodes,function(c){b+=c.nodeValue});
return b};
Lt=function(a,b,c,d,e,f,k){function l(){4==(m&&"readyState"in m?m.readyState:0)&&b&&pt(b)(m)}
c=void 0===c?"GET":c;d=void 0===d?"":d;var m=fka();if(!m)return null;"onloadend"in m?m.addEventListener("loadend",l,!1):m.onreadystatechange=l;g.Q("debug_forward_web_query_parameters")&&(a=jka(a,window.location.search));m.open(c,a,!0);f&&(m.responseType=f);k&&(m.withCredentials=!0);c="POST"==c&&(void 0===window.FormData||!(d instanceof FormData));if(e=hka(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};
Ot=function(a,b){var c=g.yf(b),d;return(new li(function(e,f){c.onSuccess=function(k){g.Ft(k)?e(new rka(k)):f(new Nt("Request failed, status="+Et(k),"net.badstatus",k))};
c.onError=function(k){f(new Nt("Unknown request error","net.unknown",k))};
c.onTimeout=function(k){f(new Nt("Request timed out","net.timeout",k))};
d=g.Mt(a,c)})).yh(function(e){e instanceof zi&&d.abort();
return qi(e)})};
g.Pt=function(a,b,c,d){function e(l,m,n){return l.yh(function(p){if(0>=m||403===Et(p.xhr))return qi(new Nt("Request retried too many times","net.retryexhausted",p.xhr,p));p=Math.pow(2,c-m+1)*n;var r=0<k?Math.min(k,p):p;return f(n).then(function(){return e(Ot(a,b),m-1,r)})})}
function f(l){return new li(function(m){setTimeout(m,l)})}
var k=void 0===k?-1:k;return e(Ot(a,b),c-1,d)};
Nt=function(a,b,c){$a.call(this,a+", errorCode="+b);this.errorCode=b;this.xhr=c;this.name="PromiseAjaxError"};
rka=function(a){this.xhr=a};
Qt=function(){this.j=0;this.i=null};
Rt=function(a){var b=new Qt;a=void 0===a?null:a;b.j=2;b.i=void 0===a?null:a;return b};
St=function(a){var b=new Qt;a=void 0===a?null:a;b.j=1;b.i=void 0===a?null:a;return b};
g.Vt=function(a,b,c,d,e){Tt||Ut.set(""+a,b,{wA:c,path:"/",domain:void 0===d?"youtube.com":d,xY:void 0===e?!1:e})};
g.Wt=function(a,b){if(!Tt)return Ut.get(""+a,b)};
g.ska=function(a,b,c){Tt||Ut.remove(""+a,void 0===b?"/":b,void 0===c?"youtube.com":c)};
tka=function(){if(!Ut.isEnabled())return!1;if(!Ut.isEmpty())return!0;Ut.set("TESTCOOKIESENABLED","1",{wA:60});if("1"!==Ut.get("TESTCOOKIESENABLED"))return!1;Ut.remove("TESTCOOKIESENABLED");return!0};
Xt=function(){};
Zt=function(a,b,c){return Yt(b,0,c)};
uka=function(a,b){Yt(a,2,b)};
$t=function(){Xt.apply(this,arguments)};
au=function(){$t.i||($t.i=new $t);return $t.i};
g.bu=function(){return!!g.Ja("yt.scheduler.instance")};
Yt=function(a,b,c){void 0!==c&&Number.isNaN(Number(c))&&(c=void 0);var d=g.Ja("yt.scheduler.instance.addJob");return d?d(a,b,c):void 0===c?(a(),NaN):g.Gt(a,c||0)};
cu=function(a){var b=g.Ja("yt.scheduler.instance.setPriorityThreshold");b&&b(a)};
vka=function(){var a=/Chrome\/(\d+)/.exec(g.yb());return a?parseFloat(a[1]):NaN};
wka=function(){var a=/\sCobalt\/(\S+)\s/.exec(g.yb());if(!a)return NaN;var b=[];a=g.q(a[1].split("."));for(var c=a.next();!c.done;c=a.next())c=parseInt(c.value,10),0<=c&&b.push(c);return parseFloat(b.join("."))};
eu=function(){return du("android")&&du("chrome")&&!(du("trident/")||du("edge/"))&&!du("cobalt")};
xka=function(){return du("armv7")||du("aarch64")||du("android")};
g.fu=function(){return du("cobalt")};
gu=function(){return du("cobalt")&&du("appletv")};
hu=function(){return du("(ps3; leanback shell)")||du("ps3")&&g.fu()};
yka=function(){return du("(ps4; leanback shell)")||du("ps4")&&g.fu()};
g.zka=function(){return g.fu()&&(du("ps4 vr")||du("ps4 pro vr"))};
iu=function(){var a=/WebKit\/([0-9]+)/.exec(g.yb());return!!(a&&600<=parseInt(a[1],10))};
ju=function(){var a=/WebKit\/([0-9]+)/.exec(g.yb());return!!(a&&602<=parseInt(a[1],10))};
ku=function(){return du("iemobile")||du("windows phone")&&du("edge")};
mu=function(){return lu&&du("applewebkit")&&!du("version")&&(!du("safari")||du("gsa/"))};
ou=function(){return g.nu&&du("version/")};
pu=function(){return du("smart-tv")&&du("samsung")};
du=function(a){var b=g.yb();return b?0<=b.toLowerCase().indexOf(a):!1};
qu=function(){if(ej())return!0;var a=g.P("INNERTUBE_CLIENT_NAME");return!a||"WEB"!==a&&"MWEB"!==a||mu()||ou()?!0:(a=g.Wt("CONSENT"))?a.startsWith("YES+"):!0};
tu=function(a){$a.call(this,a.message||a.description||a.name);this.isMissing=a instanceof ru;this.isTimeout=a instanceof Nt&&"net.timeout"==a.errorCode;this.isCanceled=a instanceof zi};
ru=function(){$a.call(this,"Biscotti ID is missing from server")};
Dka=function(){if(g.Q("disable_biscotti_fetch_entirely_for_all_web_clients"))return qi(Error("Biscotti id fetching has been disabled entirely."));if(!qu())return qi(Error("User has not consented - not fetching biscotti id."));if("1"==wf(g.P("PLAYER_VARS",{}),"privembed",!1))return qi(Error("Biscotti ID is not available in private embed mode"));uu||(uu=Ot("//web.archive.org/web/20220130220643/https://googleads.g.doubleclick.net/pagead/id",Aka).then(Bka).yh(function(a){return Cka(2,a)}));
return uu};
Bka=function(a){a=a.xhr.responseText;if(!jb(a,")]}'"))throw new ru;a=JSON.parse(a.substr(4));if(1<(a.type||1))throw new ru;a=a.id;Mja(a);uu=St(a);Eka(18E5,2);return a};
Cka=function(a,b){b=new tu(b);Mja("");uu=Rt(b);0<a&&Eka(12E4,a-1);throw b;};
Eka=function(a,b){g.Gt(function(){Ot("//web.archive.org/web/20220130220643/https://googleads.g.doubleclick.net/pagead/id",Aka).then(Bka,function(c){return Cka(b,c)}).yh(g.Ka)},a)};
Fka=function(){try{var a=g.Ja("yt.ads.biscotti.getId_");return a?a():Dka()}catch(b){return qi(b)}};
Gka=function(){var a=document;if("visibilityState"in a)return a.visibilityState;var b=vu+"VisibilityState";if(b in a)return a[b]};
wu=function(a,b){var c;Uo(a,function(d){c=b[d];return!!c});
return c};
xu=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 Hka||(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.i=a.pageX;this.j=a.pageY}}catch(e){}};
Ika=function(a){if(document.body&&document.documentElement){var b=document.body.scrollTop+document.documentElement.scrollTop;a.i=a.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);a.j=a.clientY+b}};
Jka=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 sf(yu,function(e){var f="boolean"===typeof e[4]&&e[4]==!!d,k=g.Oa(e[4])&&g.Oa(d)&&g.xf(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||k)})};
g.zu=function(a,b,c,d){d=void 0===d?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=Jka(a,b,c,d);if(e)return e;e=++Kka.count+"";var f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document);var k=f?function(l){l=new xu(l);if(!Xh(l.relatedTarget,function(m){return m==a},!0))return l.currentTarget=a,l.type=b,c.call(a,l)}:function(l){l=new xu(l);
l.currentTarget=a;return c.call(a,l)};
k=pt(k);a.addEventListener?("mouseenter"==b&&f?b="mouseover":"mouseleave"==b&&f?b="mouseout":"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),Lka()||"boolean"===typeof d?a.addEventListener(b,k,d):a.addEventListener(b,k,!!d.capture)):a.attachEvent("on"+b,k);yu[e]=[a,b,c,k,d];return e};
Mka=function(a,b){var c=document.body||document;return g.zu(c,"click",function(d){var e=Xh(d.target,function(f){return f===c||b(f)},!0);
e&&e!==c&&!e.disabled&&(d.currentTarget=e,a.call(e,d))})};
g.Au=function(a){a&&("string"==typeof a&&(a=[a]),g.uc(a,function(b){if(b in yu){var c=yu[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?Lka()||"boolean"===typeof c?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete yu[b]}}))};
g.Bu=function(a){a=a||window.event;a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a};
Cu=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.Bu(a)};
Du=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};
Eu=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.bh(b,c)};
g.Fu=function(a){a=a||window.event;a.returnValue=!1;a.preventDefault&&a.preventDefault()};
g.Gu=function(a){a=a||window.event;return!1===a.returnValue||a.gM&&a.gM()};
g.Hu=function(a){a=a||window.event;return a.keyCode?a.keyCode:a.which};
Nka=function(a){return Mka(a,function(b){return g.nr(b,"ytp-ad-has-logging-urls")})};
g.Oka=function(a,b,c){var d=void 0===d?{}:d;var e;return e=g.zu(a,b,function(){g.Au(e);c.apply(a,arguments)},d)};
Iu=function(a){for(var b in yu)yu[b][0]==a&&g.Au(b)};
Ju=function(a){this.J=a;this.i=null;this.B=0;this.I=null;this.C=0;this.j=[];for(a=0;4>a;a++)this.j.push(0);this.u=0;this.ea=g.zu(window,"mousemove",(0,g.Ra)(this.W,this));this.N=Ht((0,g.Ra)(this.Y,this),25)};
Pka=function(){var a={},b=void 0===a.cY?!1:a.cY;a=void 0===a.RS?!0:a.RS;if(null==g.Ja("_lact",window)){var c=parseInt(g.P("LACT"),10);c=isFinite(c)?Date.now()-Math.max(c,0):-1;g.Ia("_lact",c,window);g.Ia("_fact",c,window);-1==c&&Ku();g.zu(document,"keydown",Ku);g.zu(document,"keyup",Ku);g.zu(document,"mousedown",Ku);g.zu(document,"mouseup",Ku);b?g.zu(window,"touchmove",function(){Lu("touchmove",200)},{passive:!0}):(g.zu(window,"resize",function(){Lu("resize",200)}),a&&g.zu(window,"scroll",function(){Lu("scroll",
200)}));
new Ju(function(){Lu("mouse",100)});
g.zu(document,"touchstart",Ku,{passive:!0});g.zu(document,"touchend",Ku,{passive:!0})}};
Lu=function(a,b){Mu[a]||(Mu[a]=!0,g.Nu.Uf(function(){Ku();Mu[a]=!1},b))};
Ku=function(){null==g.Ja("_lact",window)&&(Pka(),g.Ja("_lact",window));var a=Date.now();g.Ia("_lact",a,window);-1==g.Ja("_fact",window)&&g.Ia("_fact",a,window);(a=g.Ja("ytglobal.ytUtilActivityCallback_"))&&a()};
Ou=function(){var a=g.Ja("_lact",window),b;null==a?b=-1:b=Math.max(Date.now()-a,0);return b};
g.Tu=function(a,b,c){var d=g.Pu();if(d&&b){var e=d.subscribe(a,function(){var f=arguments;var k=function(){Qu[e]&&b.apply&&"function"==typeof b.apply&&b.apply(c||window,f)};
try{g.Ru[a]?k():g.Gt(k,0)}catch(l){g.ot(l)}},c);
Qu[e]=!0;Su[a]||(Su[a]=[]);Su[a].push(e);return e}return 0};
g.Uu=function(a){var b=g.Pu();b&&("number"===typeof a?a=[a]:"string"===typeof a&&(a=[parseInt(a,10)]),g.uc(a,function(c){b.unsubscribeByKey(c);delete Qu[c]}))};
g.Vu=function(a,b){var c=g.Pu();return c?c.publish.apply(c,arguments):!1};
Rka=function(a){var b=g.Pu();if(b)if(b.clear(a),a)Qka(a);else for(var c in Su)Qka(c)};
g.Pu=function(){return g.C.ytPubsubPubsubInstance};
Qka=function(a){Su[a]&&(a=Su[a],g.uc(a,function(b){Qu[b]&&delete Qu[b]}),a.length=0)};
Ska=function(){this.u=this.i=this.j=0};
Uka=function(a,b){if("log_event"===a.endpoint){var c=av(a),d=bv.get(c)||[];bv.set(c,d);d.push(a.payload);Tka(b,d,c)}};
Vka=function(a,b){if("log_event"===a.endpoint){var c=av(a,!0),d=cv.get(c)||[];cv.set(c,d);d.push(a.payload);Tka(b,d,c,!0)}};
Tka=function(a,b,c,d){d=void 0===d?!1:d;a&&(dv=new a);a=g.kt("tvhtml5_logging_max_batch")||g.kt("web_logging_max_batch")||100;var e=(0,g.R)(),f=d?ev.u:fv.u;b.length>=a?gv({writeThenSend:!0},g.Q("flush_only_full_queue")?c:void 0,d):10<=e-f&&(Wka(d),d?ev.u=e:fv.u=e)};
Xka=function(a,b){if("log_event"===a.endpoint){var c=av(a),d=new Map;d.set(c,[a.payload]);b&&(dv=new b);return new li(function(e){dv&&dv.isReady()?hv(d,e,{bypassNetworkless:!0},!0):e()})}};
Yka=function(a,b){if("log_event"===a.endpoint){var c=av(a,!0),d=new Map;d.set(c,[a.payload]);b&&(dv=new b);return new li(function(e){dv&&dv.isReady()?iv(d,e,{bypassNetworkless:!0},!0):e()})}};
av=function(a,b){var c="";if(a.Gv)c="visitorOnlyApprovedKey";else if(a.cttAuthInfo){if(void 0===b?0:b){b=a.cttAuthInfo.token;c=a.cttAuthInfo;var d=new Ls;c.videoId?d.setVideoId(c.videoId):c.playlistId&&g.Ld(d,2,jv,c.playlistId);kv[b]=d}else b=a.cttAuthInfo,c={},b.videoId?c.videoId=b.videoId:b.playlistId&&(c.playlistId=b.playlistId),lv[a.cttAuthInfo.token]=c;c=a.cttAuthInfo.token}return c};
gv=function(a,b,c){a=void 0===a?{}:a;c=void 0===c?!1:c;new li(function(d){c?(g.It(ev.j),g.It(ev.i),ev.i=0):(g.It(fv.j),g.It(fv.i),fv.i=0);if(dv&&dv.isReady())if(void 0!==b)if(c){var e=new Map,f=cv.get(b)||[];e.set(b,f);iv(e,d,a);cv.delete(b)}else e=new Map,f=bv.get(b)||[],e.set(b,f),hv(e,d,a),bv.delete(b);else c?(iv(cv,d,a),cv.clear()):(hv(bv,d,a),bv.clear());else Wka(c),d()})};
Wka=function(a){a=void 0===a?!1:a;if(g.Q("web_gel_timeout_cap")&&(!a&&!fv.i||a&&!ev.i)){var b=g.Gt(function(){gv({writeThenSend:!0},void 0,a)},6E4);
a?ev.i=b:fv.i=b}g.It(a?ev.j:fv.j);b=g.P("LOGGING_BATCH_TIMEOUT",g.kt("web_gel_debounce_ms",1E4));g.Q("shorten_initial_gel_batch_timeout")&&mv&&(b=Zka);b=g.Gt(function(){gv({writeThenSend:!0},void 0,a)},b);
a?ev.j=b:fv.j=b};
hv=function(a,b,c,d){var e=dv;c=void 0===c?{}:c;var f=Math.round((0,g.R)()),k=a.size;a=g.q(a);for(var l=a.next();!l.done;l=a.next()){var m=g.q(l.value);l=m.next().value;var n=m=m.next().value;m=g.zf({context:g.nv(e.config_||g.ov())});m.events=n;(n=lv[l])&&$ka(m,l,n);delete lv[l];l="visitorOnlyApprovedKey"===l;ala(m,f,l);bla(c);g.pv(e,"log_event",m,dla(c,l,function(){k--;k||b()},function(){k--;
k||b()},d));
mv=!1}};
iv=function(a,b,c,d){var e=dv;c=void 0===c?{}:c;var f=Math.round((0,g.R)()),k=a.size;a=g.q(a);for(var l=a.next();!l.done;l=a.next()){var m=g.q(l.value);l=m.next().value;var n=m=m.next().value;m=new Ms;var p=ela(e.config_||g.ov());Pd(m,1,p);for(p=0;p<n.length;p++)Sd(m,3,Ks,n[p],void 0);(n=kv[l])&&fla(m,l,n);delete kv[l];l="visitorOnlyApprovedKey"===l;gla(m,f,l);bla(c);m=ce(m);l=dla(c,l,function(){k--;k||b()},function(){k--;
k||b()},d);
l.headers={"Content-Type":"application/json+protobuf"};l.postBodyFormat="JSPB";l.postBody=m;g.pv(e,"log_event","",l);mv=!1}};
bla=function(a){g.Q("always_send_and_write")&&(a.writeThenSend=!1)};
dla=function(a,b,c,d,e){return{retry:!0,onSuccess:c,onError:d,WM:a,Gv:b,Tea:!!e,headers:{},postBodyFormat:"",postBody:""}};
ala=function(a,b,c){a.requestTimeMs=String(b);g.Q("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);!c&&(b=g.P("EVENT_ID",void 0))&&(c=hla(),a.serializedClientEventId={serializedEventId:b,clientCounter:String(c)})};
gla=function(a,b,c){g.D(a,2,b);if(!c&&(b=g.P("EVENT_ID",void 0))){c=hla();var d=new xha;g.D(d,1,b);g.D(d,2,c);Pd(a,5,d)}};
hla=function(){var a=g.P("BATCH_CLIENT_COUNTER",void 0)||0;a||(a=Math.floor(Math.random()*ila/2));a++;a>ila&&(a=1);ft("BATCH_CLIENT_COUNTER",a);return a};
$ka=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}]};
fla=function(a,b,c){if(g.Cd(c,1===Kd(c,jv)?1:-1))var d=1;else if(c.getPlaylistId())d=2;else return;Pd(a,4,c);a=a.getContext()||new qs;c=Nd(a,ps,3)||new ps;var e=new os;e.setToken(b);g.D(e,1,d);Sd(c,12,os,e,void 0);Pd(a,3,c)};
rv=function(a,b,c,d){d=void 0===d?{}:d;if(g.Q("lr_drop_other_and_business_payloads")){if(jla[a]||kla[a])return}else if(g.Q("lr_drop_other_payloads")&&jla[a])return;var e={},f=Math.round(d.timestamp||(0,g.R)());e.eventTimeMs=f<Number.MAX_SAFE_INTEGER?f:0;e[a]=b;a=Ou();e.context={lastActivityMs:String(d.timestamp||!isFinite(a)?-1:a)};g.Q("log_sequence_info_on_gel_web")&&d.Yi&&(a=e.context,b=d.Yi,b={index:lla(b),groupKey:b},a.sequence=b,d.ZK&&delete qv[d.Yi]);(d.hH?Xka:Uka)({endpoint:"log_event",payload:e,
cttAuthInfo:d.cttAuthInfo,Gv:d.Gv},c)};
lla=function(a){qv[a]=a in qv?qv[a]+1:0;return qv[a]};
mla=function(a){var b=this;this.i=void 0;a.addEventListener("beforeinstallprompt",function(c){c.preventDefault();b.i=c})};
tv=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"}};
ola=function(){var a=tv();a=Object.keys(nla).indexOf(a);return-1===a?null:a};
g.vv=function(){this.i=g.P("ALT_PREF_COOKIE_NAME","PREF");this.j=g.P("ALT_PREF_COOKIE_DOMAIN","youtube.com");var a=g.Wt(this.i);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])&&(uv[d]=c.toString())}}};
g.wv=function(a,b){return!!((pla("f"+(Math.floor(b/31)+1))||0)&1<<b%31)};
xv=function(a){if(/^f([1-9][0-9]*)$/.test(a))throw Error("ExpectedRegexMatch: "+a);};
yv=function(a){if(!/^\w+$/.test(a))throw Error("ExpectedRegexMismatch: "+a);};
pla=function(a){a=void 0!==uv[a]?uv[a].toString():null;return null!=a&&/^[A-Fa-f0-9]+$/.test(a)?parseInt(a,16):null};
qla=function(){var a=g.C.navigator;return a?a.connection:void 0};
sla=function(){var a=qla();if(a){var b=rla[a.type||"unknown"]||"CONN_UNKNOWN";a=rla[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}};
ula=function(){var a=qla();if(null!=a&&a.effectiveType)return tla.hasOwnProperty(a.effectiveType)?tla[a.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
vla=function(){return"INNERTUBE_API_KEY"in et&&"INNERTUBE_API_VERSION"in et};
g.ov=function(){return{innertubeApiKey:g.P("INNERTUBE_API_KEY",void 0),innertubeApiVersion:g.P("INNERTUBE_API_VERSION",void 0),eA:g.P("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),fA:g.P("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),YL:g.P("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:g.P("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0),pF:g.P("INNERTUBE_CONTEXT_HL",void 0),oF:g.P("INNERTUBE_CONTEXT_GL",void 0),ZL:g.P("INNERTUBE_HOST_OVERRIDE",void 0)||"",bM:!!g.P("INNERTUBE_USE_THIRD_PARTY_AUTH",
!1),qF:!!g.P("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:g.P("SERIALIZED_CLIENT_CONFIG_DATA",void 0)}};
g.nv=function(a){var b={client:{hl:a.pF,gl:a.oF,clientName:a.fA,clientVersion:a.innertubeContextClientVersion,configInfo:a.eA}};navigator.userAgent&&(b.client.userAgent=String(navigator.userAgent));var c=g.C.devicePixelRatio;c&&1!=c&&(b.client.screenDensityFloat=String(c));c=lt();""!==c&&(b.client.experimentsToken=c);c=mt();0<c.length&&(b.request={internalExperimentFlags:c});wla(a,void 0,b);xla(a,void 0,b);yla(void 0,b);zla(a,void 0,b);Ala(void 0,b);g.P("DELEGATED_SESSION_ID")&&!g.Q("pageid_as_header_web")&&
(b.user={onBehalfOfUser:g.P("DELEGATED_SESSION_ID")});a=Object;c=a.assign;for(var d=b.client,e={},f=g.q(Object.entries(ut(g.P("DEVICE","")))),k=f.next();!k.done;k=f.next()){var l=g.q(k.value);k=l.next().value;l=l.next().value;"cbrand"===k?e.deviceMake=l:"cmodel"===k?e.deviceModel=l:"cbr"===k?e.browserName=l:"cbrver"===k?e.browserVersion=l:"cos"===k?e.osName=l:"cosver"===k?e.osVersion=l:"cplatform"===k&&(e.platform=l)}b.client=c.call(a,d,e);return b};
ela=function(a){var b=new qs,c=new ns;g.D(c,1,a.pF);g.D(c,2,a.oF);g.D(c,16,a.YL);g.D(c,17,a.innertubeContextClientVersion);if(a.eA){var d=a.eA,e=new ks;d.coldConfigData&&g.D(e,1,d.coldConfigData);d.appInstallData&&g.D(e,6,d.appInstallData);d.coldHashData&&g.D(e,3,d.coldHashData);d.hotHashData&&g.D(e,5,d.hotHashData);Pd(c,62,e)}(d=g.C.devicePixelRatio)&&1!=d&&g.D(c,65,d);d=lt();""!==d&&g.D(c,54,d);d=mt();if(0<d.length){e=new jha;for(var f=0;f<d.length;f++){var k=new js;g.D(k,1,d[f].key);k.setValue(d[f].value);
Sd(e,15,js,k,void 0)}Pd(b,5,e)}wla(a,c);xla(a,c);yla(c);zla(a,c);Ala(c);g.P("DELEGATED_SESSION_ID")&&!g.Q("pageid_as_header_web")&&(a=new ps,g.D(a,3,g.P("DELEGATED_SESSION_ID")));a=g.q(Object.entries(ut(g.P("DEVICE",""))));for(d=a.next();!d.done;d=a.next())e=g.q(d.value),d=e.next().value,e=e.next().value,"cbrand"===d?g.D(c,12,e):"cmodel"===d?g.D(c,13,e):"cbr"===d?g.D(c,87,e):"cbrver"===d?g.D(c,88,e):"cos"===d?g.D(c,18,e):"cosver"===d?g.D(c,19,e):"cplatform"===d&&g.D(c,42,e);Pd(b,1,c);return b};
wla=function(a,b,c){a=a.fA;if("WEB"===a||"MWEB"===a||1===a||2===a)if(b){c=Nd(b,ls,96)||new ls;var d=ola();null!==d&&g.D(c,3,d);Pd(b,96,c)}else c&&(c.client.mainAppWebInfo=null!=(d=c.client.mainAppWebInfo)?d:{},c.client.mainAppWebInfo.webDisplayMode=tv())};
xla=function(a,b,c){a=a.fA;if(("WEB_REMIX"===a||76===a)&&!g.Q("music_web_display_mode_killswitch"))if(b){var d;c=null!=(d=Nd(b,ms,70))?d:new ms;d=ola();null!==d&&g.D(c,10,d);Pd(b,70,c)}else if(c){var e;c.client.UM=null!=(e=c.client.UM)?e:{};c.client.UM.webDisplayMode=tv()}};
yla=function(a,b){var c;if(g.Q("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.D(a,95,1E6*c):b&&(b.client.memoryTotalKbytes=""+1E6*c)}};
zla=function(a,b,c){if(a.appInstallData)if(b){var d;c=null!=(d=Nd(b,ks,62))?d:new ks;g.D(c,6,a.appInstallData);Pd(b,62,c)}else c&&(c.client.configInfo=c.client.configInfo||{},c.client.configInfo.appInstallData=a.appInstallData)};
Ala=function(a,b){var c=sla();c&&(a?g.D(a,61,Bla[c]):b&&(b.client.connectionType=c));g.Q("web_log_effective_connection_type")&&(c=ula())&&(a?g.D(a,94,Cla[c]):b&&(b.client.effectiveConnectionType=c))};
Dla=function(a,b,c){c=void 0===c?{}:c;var d={"X-Goog-Visitor-Id":c.visitorData||g.P("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return d;(b=c.gK||g.P("AUTHORIZATION"))||(a?b="Bearer "+g.Ja("gapi.auth.getToken")().Qea:b=gj([]));b&&(d.Authorization=b,d["X-Goog-AuthUser"]=g.P("SESSION_INDEX",0),g.Q("pageid_as_header_web")&&(d["X-Goog-PageId"]=g.P("DELEGATED_SESSION_ID")));return d};
zv=function(a){var b;(b=g.Wr(a))||(a=new Sr(a||"UserDataSharedStore"),b=a.isAvailable()?a:null);this.i=(a=b)?new Mr(a):null;this.j=document.domain||window.location.hostname};
Bv=function(){var a;return null==(a=Av())?void 0:a.get("LAST_RESULT_ENTRY_KEY",!0)};
Ela=function(){var a={};for(Cv=new Dv(void 0===a.handleError?Ev:a.handleError,void 0===a.logEvent?g.Fv:a.logEvent);0<Gv.length;)switch(a=Gv.shift(),a.type){case "ERROR":Cv.Kj(a.payload);break;case "EVENT":Cv.logEvent(a.eventType,a.payload)}};
Iv=function(a){Hv||(Cv?Cv.Kj(a):(Gv.push({type:"ERROR",payload:a}),10<Gv.length&&Gv.shift()))};
Jv=function(a,b){Hv||(Cv?Cv.logEvent(a,b):(Gv.push({type:"EVENT",eventType:a,payload:b}),10<Gv.length&&Gv.shift()))};
g.Kv=function(a){var b=g.Ca.apply(1,arguments);var c=Error.call(this,a);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.args=[].concat(g.u(b))};
Mv=function(){try{return Lv(),!0}catch(a){return!1}};
Lv=function(a){if(void 0!==g.P("DATASYNC_ID",void 0))return g.P("DATASYNC_ID",void 0);throw new g.Kv("Datasync ID not set",void 0===a?"unknown":a);};
Nv=function(a){if(0<=a.indexOf(":"))throw Error("Database name cannot contain ':'");};
Ov=function(a){return a.substr(0,a.indexOf(":"))||a};
Pv=function(a,b,c,d,e){b=void 0===b?{}:b;c=void 0===c?Fla[a]:c;d=void 0===d?Gla[a]:d;e=void 0===e?Hla[a]:e;g.Kv.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.i=e;Object.setPrototypeOf(this,Pv.prototype)};
Qv=function(a,b){Pv.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:b,foundObjectStores:a},Fla.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,Qv.prototype)};
Rv=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,Rv.prototype)};
Tv=function(a,b,c,d){b=Ov(b);var e=a instanceof Error?a:Error("Unexpected error: "+a);if(e instanceof Pv)return e;a={objectStoreNames:c,dbName:b,dbVersion:d};if("QuotaExceededError"===e.name)return new Pv("QUOTA_EXCEEDED",a);if(g.Sv&&"UnknownError"===e.name)return new Pv("QUOTA_MAYBE_EXCEEDED",a);if(e instanceof Rv)return new Pv("MISSING_INDEX",Object.assign({},a,{objectStore:e.objectStore,index:e.index}));if("InvalidStateError"===e.name&&Ila.some(function(f){return e.message.includes(f)}))return new Pv("EXECUTE_TRANSACTION_ON_CLOSED_DB",
a);
if("AbortError"===e.name)return new Pv("UNKNOWN_ABORT",a,e.message);e.args=[Object.assign({},a,{name:"IdbError",VA:e.name})];e.level="WARNING";return e};
g.Uv=function(a,b,c){var d=Bv();return new Pv("IDB_NOT_SUPPORTED",{context:{caller:a,publicName:b,version:c,hasSucceededOnce:null==d?void 0:d.hasSucceededOnce}})};
Jla=function(a){if(!a)throw Error();throw a;};
Kla=function(a){return a};
Vv=function(a){this.i=a};
Wv=function(a){function b(e){if("PENDING"===d.state.status){d.state={status:"REJECTED",reason:e};e=g.q(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.q(d.i);for(var f=e.next();!f.done;f=e.next())f=f.value,f()}}
var d=this;this.state={status:"PENDING"};this.i=[];this.onRejected=[];a=a.i;try{a(c,b)}catch(e){b(e)}};
Lla=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 Wv?Xv(a,b,f,d,e):d(f)}catch(k){e(k)}};
Mla=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 Wv?Xv(a,b,f,d,e):d(f)}catch(k){e(k)}};
Xv=function(a,b,c,d,e){b===c?e(new TypeError("Circular promise chain detected.")):c.then(function(f){f instanceof Wv?Xv(a,b,f,d,e):d(f)},function(f){e(f)})};
Nla=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(k){}}
a.addEventListener("success",e);a.addEventListener("error",d)};
Ola=function(a){return new Promise(function(b,c){Nla(a,b,c)})};
Yv=function(a){return new Wv(new Vv(function(b,c){Nla(a,b,c)}))};
Zv=function(a,b){return new Wv(new Vv(function(c,d){function e(){var f=a?b(a):null;f?f.then(function(k){a=k;e()},d):c()}
e()}))};
Pla=function(a,b){this.request=a;this.cursor=b};
$v=function(a){return Yv(a).then(function(b){return b?new Pla(a,b):null})};
Qla=function(a,b){this.i=a;this.options=b;this.transactionCount=0;this.u=Math.round((0,g.R)());this.j=!1};
bw=function(a,b,c){a=a.i.createObjectStore(b,c);return new aw(a)};
cw=function(a,b){a.i.objectStoreNames.contains(b)&&a.i.deleteObjectStore(b)};
Sla=function(a,b){return dw(a,["captions"],{mode:"readonly",Kc:!0},function(c){return Rla(c.objectStore("captions"),b,void 0)})};
Tla=function(a,b){return dw(a,["LogsRequestsStore"],{mode:"readwrite",Kc:!0},function(c){return ew(c.objectStore("LogsRequestsStore"),b,void 0)})};
dw=function(a,b,c,d){var e,f,k,l,m,n,p,r,t,w,x,y;return g.B(function(z){switch(z.i){case 1:var F={mode:"readonly",Kc:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};"string"===typeof c?F.mode=c:Object.assign(F,c);e=F;a.transactionCount++;f=e.Kc?3:1;k=0;case 2:if(l){z.eb(3);break}k++;m=Math.round((0,g.R)());va(z,4);n=a.i.transaction(b,e.mode);F=new fw(n);F=Ula(F,d);return g.A(z,F,6);case 6:return p=z.j,r=Math.round((0,g.R)()),Vla(a,m,r,k,void 0,b.join(),e),z.return(p);case 4:t=xa(z);w=Math.round((0,g.R)());
x=Tv(t,a.i.name,b.join(),a.i.version);if((y=x instanceof Pv&&!x.i)||k>=f)Vla(a,m,w,k,x,b.join(),e),l=x;z.eb(2);break;case 3:return z.return(Promise.reject(l))}})};
Vla=function(a,b,c,d,e,f,k){b=c-b;e?(e instanceof Pv&&("QUOTA_EXCEEDED"===e.type||"QUOTA_MAYBE_EXCEEDED"===e.type)&&Jv("QUOTA_EXCEEDED",{dbName:Ov(a.i.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:k.mode}),e instanceof Pv&&"UNKNOWN_ABORT"===e.type&&(c-=a.u,0>c&&c>=Math.pow(2,31)&&(c=0),Jv("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.j=!0),Wla(a,!1,d,f,b,k.tag),Iv(e)):Wla(a,!0,d,f,b,
k.tag)};
Wla=function(a,b,c,d,e,f){Jv("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.j,duration:e,isSuccessful:b,tryCount:c,tag:void 0===f?"IDB_TRANSACTION_TAG_UNKNOWN":f})};
aw=function(a){this.i=a};
gw=function(a,b,c){a.i.createIndex(b,c,{unique:!1})};
Xla=function(a,b){return hw(a,{query:b},function(c){return c.delete().then(function(){return c.continue()})}).then(function(){})};
Rla=function(a,b,c){return"getAll"in IDBObjectStore.prototype?Yv(a.i.getAll(b,c)):Yla(a,b,c)};
Yla=function(a,b,c){var d=[];return hw(a,{query:b},function(e){if(!(void 0!==c&&d.length>=c))return d.push(e.getValue()),e.continue()}).then(function(){return d})};
$la=function(a){return"getAllKeys"in IDBObjectStore.prototype?Yv(a.i.getAllKeys(void 0,void 0)):Zla(a)};
Zla=function(a){var b=[];return ama(a,{query:void 0},function(c){b.push(c.Rz());return c.continue()}).then(function(){return b})};
ew=function(a,b,c){return Yv(a.i.put(b,c))};
hw=function(a,b,c){a=a.i.openCursor(b.query,b.direction);return iw(a).then(function(d){return Zv(d,c)})};
ama=function(a,b,c){var d=b.query;b=b.direction;a="openKeyCursor"in IDBObjectStore.prototype?a.i.openKeyCursor(d,b):a.i.openCursor(d,b);return $v(a).then(function(e){return Zv(e,c)})};
fw=function(a){var b=this;this.i=a;this.u=new Map;this.j=!1;this.done=new Promise(function(c,d){b.i.addEventListener("complete",function(){c()});
b.i.addEventListener("error",function(e){e.currentTarget===e.target&&d(b.i.error)});
b.i.addEventListener("abort",function(){var e=b.i.error;if(e)d(e);else if(!b.j){e=Pv;for(var f=b.i.objectStoreNames,k=[],l=0;l<f.length;l++){var m=f.item(l);if(null===m)throw Error("Invariant: item in DOMStringList is null");k.push(m)}e=new e("UNKNOWN_ABORT",{objectStoreNames:k.join(),dbName:b.i.db.name,mode:b.i.mode});d(e)}})})};
Ula=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.q(d).next().value})};
bma=function(a){this.i=a};
jw=function(a,b){return"getAll"in IDBIndex.prototype?Yv(a.i.getAll(b,void 0)):cma(a,b)};
cma=function(a,b){var c=[];return kw(a,{query:b},function(d){c.push(d.getValue());return d.continue()}).then(function(){return c})};
kw=function(a,b,c){a=a.i.openCursor(void 0===b.query?null:b.query,void 0===b.direction?"next":b.direction);return iw(a).then(function(d){return Zv(d,c)})};
dma=function(a,b){this.request=a;this.cursor=b};
iw=function(a){return Yv(a).then(function(b){return b?new dma(a,b):null})};
ema=function(a,b,c){return new Promise(function(d,e){function f(){t||(t=new Qla(k.result,{closed:r}));return t}
var k=void 0!==b?self.indexedDB.open(a,b):self.indexedDB.open(a);var l=c.blocked,m=c.blocking,n=c.TY,p=c.upgrade,r=c.closed,t;k.addEventListener("upgradeneeded",function(w){try{if(null===w.newVersion)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(null===k.transaction)throw Error("Invariant: transaction on IDbOpenDbRequest is null");w.dataLoss&&"none"!==w.dataLoss&&Jv("IDB_DATA_CORRUPTED",{reason:w.dataLossMessage||"unknown reason",dbName:Ov(a)});var x=f(),y=new fw(k.transaction);
p&&p(x,function(z){return w.oldVersion<z&&w.newVersion>=z},y);
y.done.catch(function(z){e(z)})}catch(z){e(z)}});
k.addEventListener("success",function(){var w=k.result;m&&w.addEventListener("versionchange",function(){m(f())});
w.addEventListener("close",function(){Jv("IDB_UNEXPECTEDLY_CLOSED",{dbName:Ov(a),dbVersion:w.version});n&&n()});
d(f())});
k.addEventListener("error",function(){e(k.error)});
l&&k.addEventListener("blocked",function(){l()})})};
fma=function(a,b,c){c=void 0===c?{}:c;return ema(a,b,c)};
lw=function(a,b){b=void 0===b?{}:b;var c,d,e,f;return g.B(function(k){if(1==k.i)return va(k,2),c=self.indexedDB.deleteDatabase(a),d=b,(e=d.blocked)&&c.addEventListener("blocked",function(){e()}),g.A(k,Ola(c),4);
if(2!=k.i)return wa(k,0);f=xa(k);throw Tv(f,a,"",-1);})};
gma=function(a){return new Promise(function(b){uka(function(){b()},a)})};
mw=function(a,b){this.name=a;this.options=b;this.B=!0;this.I=this.C=0;this.j=500};
hma=function(a,b){return new Pv("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:b})};
nw=function(a,b){if(!b)throw g.Uv("openWithToken",Ov(a.name));return a.open()};
ima=function(a,b){var c;return g.B(function(d){if(1==d.i)return g.A(d,nw(ow,b),2);c=d.j;return d.return(dw(c,["databases"],{Kc:!0,mode:"readwrite"},function(e){var f=e.objectStore("databases");return f.get(a.actualName).then(function(k){if(k?a.actualName!==k.actualName||a.publicName!==k.publicName||a.userIdentifier!==k.userIdentifier:1)return ew(f,a).then(function(){})})}))})};
pw=function(a,b){var c;return g.B(function(d){if(1==d.i)return a?g.A(d,nw(ow,b),2):d.return();c=d.j;return d.return(c.delete("databases",a))})};
jma=function(a,b){var c,d;return g.B(function(e){return 1==e.i?(c=[],g.A(e,nw(ow,b),2)):3!=e.i?(d=e.j,g.A(e,dw(d,["databases"],{Kc:!0,mode:"readonly"},function(f){c.length=0;return hw(f.objectStore("databases"),{},function(k){a(k.getValue())&&c.push(k.getValue());return k.continue()})}),3)):e.return(c)})};
kma=function(a){return jma(function(b){return"LogsDatabaseV2"===b.publicName&&void 0!==b.userIdentifier},a)};
lma=function(){var a,b,c,d;return g.B(function(e){switch(e.i){case 1:a=Bv();if(null==(b=a)?0:b.hasSucceededOnce)return e.return(!0);if(lu&&iu()&&!ju()||g.qw)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);va(e,2);d={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};
return g.A(e,ima(d,rw),4);case 4:return g.A(e,pw("yt-idb-test-do-not-use",rw),5);case 5:return e.return(!0);case 2:return xa(e),e.return(!1)}})};
mma=function(){if(void 0!==tw)return tw;Hv=!0;return tw=lma().then(function(a){Hv=!1;var b;if(null!=(b=Av())&&b.i){var c;b={hasSucceededOnce:(null==(c=Bv())?void 0:c.hasSucceededOnce)||a};var d;null==(d=Av())||d.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0)}return a})};
uw=function(){return g.Ja("ytglobal.idbToken_")||void 0};
g.vw=function(){var a=uw();return a?Promise.resolve(a):mma().then(function(b){(b=b?rw:void 0)&&g.Ia("ytglobal.idbToken_",b,void 0);return b})};
nma=function(a){if(!Mv())throw a=new Pv("AUTH_INVALID",{dbName:a}),Iv(a),a;var b=Lv();return{actualName:a+":"+b,publicName:a,userIdentifier:b}};
oma=function(a,b,c,d){var e,f,k,l,m,n;return g.B(function(p){switch(p.i){case 1:return f=null!=(e=Error().stack)?e:"",g.A(p,g.vw(),2);case 2:k=p.j;if(!k)throw l=g.Uv("openDbImpl",a,b),g.Q("ytidb_async_stack_killswitch")||(l.stack=l.stack+"\n"+f.substring(f.indexOf("\n")+1)),Iv(l),l;Nv(a);m=c?{actualName:a,publicName:a,userIdentifier:void 0}:nma(a);va(p,3);return g.A(p,ima(m,k),5);case 5:return g.A(p,fma(m.actualName,b,d),6);case 6:return p.return(p.j);case 3:return n=xa(p),va(p,7),g.A(p,pw(m.actualName,
k),9);case 9:wa(p,8);break;case 7:xa(p);case 8:throw n;}})};
pma=function(a,b,c){c=void 0===c?{}:c;return oma(a,b,!1,c)};
qma=function(a,b,c){c=void 0===c?{}:c;return oma(a,b,!0,c)};
rma=function(a,b){b=void 0===b?{}:b;var c,d;return g.B(function(e){if(1==e.i)return g.A(e,g.vw(),2);if(3!=e.i){c=e.j;if(!c)return e.return();Nv(a);d=nma(a);return g.A(e,lw(d.actualName,b),3)}return g.A(e,pw(d.actualName,c),0)})};
sma=function(a,b,c){a=a.map(function(d){return g.B(function(e){return 1==e.i?g.A(e,lw(d.actualName,b),2):g.A(e,pw(d.actualName,c),0)})});
return Promise.all(a).then(function(){})};
tma=function(){var a=void 0===a?{}:a;var b,c;return g.B(function(d){if(1==d.i)return g.A(d,g.vw(),2);if(3!=d.i){b=d.j;if(!b)return d.return();Nv("LogsDatabaseV2");return g.A(d,kma(b),3)}c=d.j;return g.A(d,sma(c,a,b),0)})};
uma=function(a,b){b=void 0===b?{}:b;var c;return g.B(function(d){if(1==d.i)return g.A(d,g.vw(),2);if(3!=d.i){c=d.j;if(!c)return d.return();Nv(a);return g.A(d,lw(a,b),3)}return g.A(d,pw(a,c),0)})};
ww=function(a){this.pe=!1;this.potentialEsfErrorCounter=this.i=0;this.handleError=function(){};
this.Xs=function(){};
this.now=Date.now;this.Jv=!1;var b;this.fP=null!=(b=a.fP)?b:100;var c;this.IO=null!=(c=a.IO)?c:1;var d;this.BO=null!=(d=a.BO)?d:2592E6;var e;this.sO=null!=(e=a.sO)?e:12E4;var f;this.HO=null!=(f=a.HO)?f:5E3;var k;this.Yc=null!=(k=a.Yc)?k:void 0;this.oz=!!a.oz;var l;this.bz=null!=(l=a.bz)?l:.1;var m;this.fB=null!=(m=a.fB)?m:10;a.handleError&&(this.handleError=a.handleError);a.Xs&&(this.Xs=a.Xs);a.Jv&&(this.Jv=a.Jv);this.Xa=a.Xa;this.Ij=a.Ij;this.mf=a.mf;this.df=a.df;this.Qm=a.Qm;this.CG=a.CG;this.YF=
a.YF;this.Yc&&(!this.Xa||this.Xa("networkless_logging"))&&vma(this)};
vma=function(a){a.Yc&&!a.Jv&&(a.pe=!0,a.oz&&Math.random()<=a.bz&&a.mf.uS(a.Yc),wma(a),a.df.Ce()&&a.Xx(),a.df.Pa(a.CG,a.Xx.bind(a)),a.df.Pa(a.YF,a.tK.bind(a)))};
xw=function(a,b){var c,d;return g.B(function(e){switch(e.i){case 1:if(!a.Yc)throw c=g.Uv("immediateSend"),c;if(void 0===b.id){e.eb(2);break}return g.A(e,a.mf.qU(b.id,a.Yc),3);case 3:(d=e.j)?b=d:a.Xs(Error("The request cannot be found in the database."));case 2:if(xma(a,b,a.BO)){e.eb(4);break}a.Xs(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===b.id){e.eb(5);break}return g.A(e,a.mf.Es(b.id,a.Yc),5);case 5:return e.return();case 4:b.skipRetry||(b=yma(a,b));if(!b){e.eb(0);
break}if(!b.skipRetry||void 0===b.id){e.eb(8);break}return g.A(e,a.mf.Es(b.id,a.Yc),8);case 8:a.Qm(b.url,b.options,!!b.skipRetry),g.ua(e)}})};
yma=function(a,b){if(!a.Yc)throw g.Uv("updateRequestHandlers");var c=b.options.onError?b.options.onError:function(){};
b.options.onError=function(e,f){var k,l,m;return g.B(function(n){switch(n.i){case 1:k=zma(f);if(!(a.Xa&&a.Xa("nwl_consider_error_code")&&k||a.Xa&&!a.Xa("nwl_consider_error_code")&&a.potentialEsfErrorCounter<=a.fB)){n.eb(2);break}if(!a.df.Rm){n.eb(3);break}return g.A(n,a.df.Rm(),3);case 3:if(a.df.Ce()){n.eb(2);break}c(e,f);if(!a.Xa||!a.Xa("nwl_consider_error_code")||void 0===(null==(l=b)?void 0:l.id)){n.eb(6);break}return g.A(n,a.mf.ZG(b.id,a.Yc,!1),6);case 6:return n.return();case 2:if(a.Xa&&a.Xa("nwl_consider_error_code")&&
!k&&a.potentialEsfErrorCounter>a.fB)return n.return();a.potentialEsfErrorCounter++;if(void 0===(null==(m=b)?void 0:m.id)){n.eb(8);break}return b.sendCount<a.IO?g.A(n,a.mf.ZG(b.id,a.Yc),12):g.A(n,a.mf.Es(b.id,a.Yc),8);case 12:a.Ij.Uf(function(){a.df.Ce()&&a.Xx()},a.HO);
case 8:c(e,f),g.ua(n)}})};
var d=b.options.onSuccess?b.options.onSuccess:function(){};
b.options.onSuccess=function(e,f){var k;return g.B(function(l){if(1==l.i)return void 0===(null==(k=b)?void 0:k.id)?l.eb(2):g.A(l,a.mf.Es(b.id,a.Yc),2);a.df.Hm&&a.Xa&&a.Xa("vss_network_hint")&&a.df.Hm(!0);d(e,f);g.ua(l)})};
return b};
xma=function(a,b,c){b=b.timestamp;return a.now()-b>=c?!1:!0};
wma=function(a){if(!a.Yc)throw g.Uv("retryQueuedRequests");a.mf.yL("QUEUED",a.Yc).then(function(b){b&&!xma(a,b,a.sO)?a.Ij.Uf(function(){return g.B(function(c){if(1==c.i)return void 0===b.id?c.eb(2):g.A(c,a.mf.ZG(b.id,a.Yc),2);wma(a);g.ua(c)})}):a.df.Ce()&&a.Xx()})};
yw=function(a,b){a.JP&&!a.df.Ce()?a.JP(b):a.handleError(b)};
zma=function(a){var b;return(a=null==a?void 0:null==(b=a.error)?void 0:b.code)&&400<=a&&599>=a?!1:!0};
zw=function(a,b){this.version=a;this.args=b};
Aw=function(a,b){this.topic=a;this.i=b};
Cw=function(a,b){var c=Bw();c&&c.publish.call(c,a.toString(),a,b)};
Bma=function(a,b,c){var d=Bw();if(!d)return 0;var e=d.subscribe(a.toString(),function(f,k){var l=g.Ja("ytPubsub2Pubsub2SkipSubKey");l&&l==e||(l=function(){if(Dw[e])try{if(k&&a instanceof Aw&&a!=f)try{var m=a.i,n=k;if(!n.args||!n.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!m.gp){var p=new m;m.gp=p.version}var r=m.gp}catch(t){}if(!r||n.version!=r)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{k=Reflect.construct(m,
g.ic(n.args))}catch(t){throw t.message="yt.pubsub2.Data.deserialize(): "+t.message,t;}}catch(t){throw t.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+a.toString()+": "+t.message,t;}b.call(c||window,k)}catch(t){g.ot(t)}},Ama[a.toString()]?g.bu()?g.Nu.Uf(l):g.Gt(l,0):l())});
Dw[e]=!0;Ew[a.toString()]||(Ew[a.toString()]=[]);Ew[a.toString()].push(e);return e};
Gw=function(a,b,c){var d=Bma(a,function(e){b.apply(c,arguments);Fw(d)},c);
return d};
Fw=function(a){var b=Bw();b&&("number"===typeof a&&(a=[a]),g.uc(a,function(c){b.unsubscribeByKey(c);delete Dw[c]}))};
Bw=function(){return g.Ja("ytPubsub2Pubsub2Instance")};
Hw=function(a,b){mw.call(this,a,b);this.options=b;Nv(a)};
Cma=function(a,b){var c;return function(){c||(c=new Hw(a,b));return c}};
Iw=function(a,b){return Cma(a,b)};
Dma=function(){if(Jw)return Jw();var a={};Jw=Iw("LogsDatabaseV2",{zq:(a.LogsRequestsStore={qn:2},a),Lx:!1,upgrade:function(b,c,d){c(2)&&bw(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});c(3);c(5)&&(d=d.objectStore("LogsRequestsStore"),d.i.indexNames.contains("newRequest")&&d.i.deleteIndex("newRequest"),gw(d,"newRequestV2",["status","interface","timestamp"]));c(7)&&cw(b,"sapisid");c(9)&&cw(b,"SWHealthLog")},
version:9});return Jw()};
Kw=function(a){return nw(Dma(),a)};
Lw=function(a,b){var c,d,e,f;return g.B(function(k){if(1==k.i)return c={startTime:(0,g.R)(),transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},g.A(k,Kw(b),2);if(3!=k.i)return d=k.j,e=Object.assign({},a,{options:JSON.parse(JSON.stringify(a.options)),interface:g.P("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.A(k,Tla(d,e),3);f=k.j;c.cZ=(0,g.R)();Ema(c);return k.return(f)})};
Fma=function(a,b){var c,d,e,f,k,l,m;return g.B(function(n){if(1==n.i)return c={startTime:(0,g.R)(),transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},g.A(n,Kw(b),2);if(3!=n.i)return d=n.j,e=g.P("INNERTUBE_CONTEXT_CLIENT_NAME",0),f=[a,e,0],k=[a,e,(0,g.R)()],l=IDBKeyRange.bound(f,k),m=void 0,g.A(n,dw(d,["LogsRequestsStore"],{mode:"readwrite",Kc:!0},function(p){return kw(p.objectStore("LogsRequestsStore").index("newRequestV2"),{query:l,direction:"prev"},function(r){r.getValue()&&(m=r.getValue(),"NEW"===
a&&(m.status="QUEUED",r.update(m)))})}),3);
c.cZ=(0,g.R)();Ema(c);return n.return(m)})};
Gma=function(a,b){var c;return g.B(function(d){if(1==d.i)return g.A(d,Kw(b),2);c=d.j;return d.return(dw(c,["LogsRequestsStore"],{mode:"readwrite",Kc:!0},function(e){var f=e.objectStore("LogsRequestsStore");return f.get(a).then(function(k){if(k)return k.status="QUEUED",ew(f,k).then(function(){return k})})}))})};
Mw=function(a,b,c){c=void 0===c?!0:c;var d;return g.B(function(e){if(1==e.i)return g.A(e,Kw(b),2);d=e.j;return e.return(dw(d,["LogsRequestsStore"],{mode:"readwrite",Kc:!0},function(f){var k=f.objectStore("LogsRequestsStore");return k.get(a).then(function(l){return l?(l.status="NEW",c&&(l.sendCount+=1),ew(k,l).then(function(){return l})):Wv.resolve(void 0)})}))})};
Nw=function(a,b){var c;return g.B(function(d){if(1==d.i)return g.A(d,Kw(b),2);c=d.j;return d.return(c.delete("LogsRequestsStore",a))})};
Hma=function(a){var b,c;return g.B(function(d){if(1==d.i)return g.A(d,Kw(a),2);b=d.j;c=(0,g.R)()-2592E6;return g.A(d,dw(b,["LogsRequestsStore"],{mode:"readwrite",Kc:!0},function(e){return hw(e.objectStore("LogsRequestsStore"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return f.continue()})})}),0)})};
Ima=function(){g.B(function(a){return g.A(a,tma(),0)})};
Ema=function(a){g.Q("nwl_csi_killswitch")||.01>=Math.random()&&Cw("nwl_transaction_latency_payload",a)};
Kma=function(a){return nw(Jma(),a)};
Lma=function(a){var b,c;g.B(function(d){if(1==d.i)return g.A(d,Kma(a),2);b=d.j;c=(0,g.R)()-2592E6;return g.A(d,dw(b,["SWHealthLog"],{mode:"readwrite",Kc:!0},function(e){return hw(e.objectStore("SWHealthLog"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return f.continue()})})}),0)})};
Mma=function(a){var b;return g.B(function(c){if(1==c.i)return g.A(c,Kma(a),2);b=c.j;return g.A(c,b.clear("SWHealthLog"),0)})};
g.Ow=function(a,b,c,d,e){e=void 0===e?"":e;if(a)if(c&&!g.fu())a&&(a=g.tg(g.xg(a)),"about:invalid#zClosurez"===a||a.startsWith("data")?a="":(a=g.Jg(Lg(a)).toString(),a=gh(g.mj(a))),g.lb(a)||(a=Mh("IFRAME",{src:'javascript:"<body><img src=\\""+'+a+'+"\\"></body>"',style:"display:none"}),ph(a).body.appendChild(a)));else if(e)Lt(a,b,"POST",e,d);else if(g.P("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d)Lt(a,b,"GET","",d);else{b:{try{var f=new Cca({url:a});if(f.u&&f.j||f.B){var k=tj(g.vj(5,a));var l=!(!k||!k.endsWith("/aclk")||
"1"!==Lj(a,"ri"));break b}}catch(m){}l=!1}l?Nma(a)?(b&&b(),c=!0):c=!1:c=!1;c||Oma(a,b)}};
Nma=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1};
Oma=function(a,b){var c=new Image,d=""+Pma++;Pw[d]=c;c.onload=c.onerror=function(){b&&Pw[d]&&b();delete Pw[d]};
c.src=a};
Qw=function(){this.i=new Map;this.j=!1};
Rw=function(){if(!Qw.i){var a=g.Ja("yt.networkRequestMonitor.instance")||new Qw;g.Ia("yt.networkRequestMonitor.instance",a,void 0);Qw.i=a}return Qw.i};
Tw=function(){Sw||(Sw=new zv("yt.offline"));return Sw};
Qma=function(a){if(g.Q("offline_error_handling")){var b=Tw().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);Tw().set("errors",b,2592E3,!0)}};
Uw=function(){if(g.Q("offline_error_handling")){var a=Tw().get("errors",!0);if(a){for(var b in a)if(a[b]){var c=new g.Kv(b,"sent via offline_errors");c.name=a[b].name;c.stack=a[b].stack;c.level=a[b].level;g.ot(c)}Tw().set("errors",{},2592E3,!0)}}};
Vw=function(){g.Uf.call(this);this.J=0;this.N=this.B=!1;this.j=this.TE();g.Q("use_shared_nsm")?(dr.i||(dr.i=new dr(g.Nu)),this.i=dr.i):(Rma(this),Sma(this))};
Tma=function(){if(!Vw.i){var a=g.Ja("yt.networkStatusManager.instance")||new Vw;g.Ia("yt.networkStatusManager.instance",a,void 0);Vw.i=a}return Vw.i};
Sma=function(a){window.addEventListener("online",function(){return g.B(function(b){if(1==b.i)return g.A(b,a.Rm(),2);a.N&&Uw();g.ua(b)})})};
Rma=function(a){window.addEventListener("offline",function(){return g.B(function(b){return g.A(b,a.Rm(),0)})})};
Uma=function(a){a.J=Zt(0,function(){return g.B(function(b){if(1==b.i)return a.j?a.TE()||!a.B?b.eb(3):g.A(b,a.Rm(),3):g.A(b,a.Rm(),3);Uma(a);g.ua(b)})},Vma)};
Ww=function(a){a=void 0===a?{}:a;g.Uf.call(this);var b=this;this.j=this.J=0;this.B="ytnetworkstatus-offline";this.C="ytnetworkstatus-online";g.Q("use_shared_nsm")&&(this.B="networkstatus-offline",this.C="networkstatus-online");this.i=Tma();var c=g.Ja("yt.networkStatusManager.instance.monitorNetworkStatusChange").bind(this.i);c&&c(a.YK);a.uA&&!g.Q("use_shared_nsm")&&(c=g.Ja("yt.networkStatusManager.instance.enableErrorFlushing").bind(this.i))&&c();if(c=g.Ja("yt.networkStatusManager.instance.listen").bind(this.i))a.lB?
(this.lB=a.lB,c(this.C,function(){Wma(b,"publicytnetworkstatus-online");g.Q("use_shared_nsm")&&a.uA&&Uw()}),c(this.B,function(){Wma(b,"publicytnetworkstatus-offline")})):(c(this.C,function(){b.dispatchEvent("publicytnetworkstatus-online");
g.Q("use_shared_nsm")&&a.uA&&Uw()}),c(this.B,function(){b.dispatchEvent("publicytnetworkstatus-offline")}))};
Wma=function(a,b){a.lB?a.j?(g.Nu.wi(a.J),a.J=g.Nu.Uf(function(){a.I!==b&&(a.dispatchEvent(b),a.I=b,a.j=(0,g.R)())},a.lB-((0,g.R)()-a.j))):(a.dispatchEvent(b),a.I=b,a.j=(0,g.R)()):a.dispatchEvent(b)};
Xw=function(){ww.call(this,{mf:{uS:Hma,Es:Nw,yL:Fma,qU:Gma,ZG:Mw,set:Lw},df:Xma(),handleError:g.ot,Xs:qt,Qm:Yma,now:g.R,JP:Qma,Ij:au(),CG:"publicytnetworkstatus-online",YF:"publicytnetworkstatus-offline",oz:!0,bz:.1,fB:g.kt("potential_esf_error_limit",10),Xa:g.Q,Jv:!Mv()});this.j=new Lk;g.Q("networkless_immediately_drop_all_requests")&&Ima();uma("LogsDatabaseV2")};
Yw=function(){var a=g.Ja("yt.networklessRequestController.instance");a||(a=new Xw,g.Ia("yt.networklessRequestController.instance",a,void 0),g.Q("networkless_logging")&&g.vw().then(function(b){a.Yc=b;vma(a);a.j.resolve();a.oz&&Math.random()<=a.bz&&a.Yc&&Lma(a.Yc);g.Q("networkless_immediately_drop_sw_health_store")&&Zma(a)}));
return a};
Zma=function(a){var b;g.B(function(c){if(!a.Yc)throw b=g.Uv("clearSWHealthLogsDb"),b;return c.return(Mma(a.Yc).catch(function(d){a.handleError(d)}))})};
Yma=function(a,b,c){g.Q("use_cfr_monitor")&&$ma(a,b);var d;if(null==(d=b.postParams)?0:d.requestTimeMs)b.postParams.requestTimeMs=Math.round((0,g.R)());c&&0===Object.keys(b).length?g.Ow(a):g.Mt(a,b)};
Xma=function(){Zw||(Zw=new Ww({uA:!0,YK:!0}));return Zw};
$ma=function(a,b){var c=b.onError?b.onError:function(){};
b.onError=function(e,f){Rw().requestComplete(a,!1);c(e,f)};
var d=b.onSuccess?b.onSuccess:function(){};
b.onSuccess=function(e,f){Rw().requestComplete(a,!0);d(e,f)}};
ana=function(a,b){function c(d){var e=$w().Ce();if(!ax()||!d||e&&g.Q("vss_networkless_bypass_write"))bx(a,b);else{var f={url:a,options:b,timestamp:(0,g.R)(),status:"NEW",sendCount:0};Lw(f,d).then(function(k){f.id=k;$w().Ce()&&cx(f)}).catch(function(k){cx(f);
dx(k)})}}
b=void 0===b?{}:b;g.Q("skip_is_supported_killswitch")?g.vw().then(function(d){c(d)}):c(uw())};
ex=function(a,b,c){function d(e){if(ax()&&e){var f={url:a,options:b,timestamp:(0,g.R)(),status:"NEW",sendCount:0};g.Q("nwl_skip_retry")&&(f.skipRetry=c);if($w().Ce()||g.Q("nwl_aggressive_send_then_write")&&!f.skipRetry){if(!f.skipRetry){var k=b.onError?b.onError:function(){};
b.onError=function(l,m){return g.B(function(n){if(1==n.i)return g.A(n,Lw(f,e).catch(function(p){dx(p)}),2);
k(l,m);g.ua(n)})}}bx(a,b,f.skipRetry)}else Lw(f,e).catch(function(l){bx(a,b,g.Q("nwl_skip_retry")&&c);
dx(l)})}else bx(a,b,g.Q("nwl_skip_retry")&&c)}
b=void 0===b?{}:b;g.Q("skip_is_supported_killswitch")?g.vw().then(function(e){d(e)}):d(uw())};
fx=function(a,b){function c(d){if(ax()&&d){var e={url:a,options:b,timestamp:(0,g.R)(),status:"NEW",sendCount:0},f=!1,k=b.onSuccess?b.onSuccess:function(){};
e.options.onSuccess=function(m,n){g.Q("use_cfr_monitor")&&Rw().requestComplete(e.url,!0);void 0!==e.id?Nw(e.id,d):f=!0;g.Q("vss_network_hint")&&$w().Hm(!0);k(m,n)};
if(g.Q("use_cfr_monitor")){var l=b.onError?b.onError:function(){};
e.options.onError=function(m,n){Rw().requestComplete(e.url,!1);l(m,n)}}bx(e.url,e.options);
Lw(e,d).then(function(m){e.id=m;f&&Nw(e.id,d)}).catch(function(m){dx(m)})}else bx(a,b)}
b=void 0===b?{}:b;g.Q("skip_is_supported_killswitch")?g.vw().then(function(d){c(d)}):c(uw())};
bna=function(){var a=uw();if(!a)throw g.Uv("throttleSend");gx||(gx=g.Nu.Uf(function(){var b;return g.B(function(c){if(1==c.i)return g.A(c,Fma("NEW",a),2);if(3!=c.i)return b=c.j,b?g.A(c,cx(b),3):(g.Nu.wi(gx),gx=0,c.return());gx&&(gx=0,bna());g.ua(c)})},100))};
cx=function(a){var b,c,d;return g.B(function(e){switch(e.i){case 1:b=uw();if(!b)throw c=g.Uv("immediateSend"),c;if(void 0===a.id){e.eb(2);break}return g.A(e,Gma(a.id,b),3);case 3:(d=e.j)?a=d:qt(Error("The request cannot be found in the database."));case 2:var f=a.timestamp;if(!(2592E6<=(0,g.R)()-f)){e.eb(4);break}qt(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===a.id){e.eb(5);break}return g.A(e,Nw(a.id,b),5);case 5:return e.return();case 4:a.skipRetry||(a=cna(a));
f=a;var k,l;if(null==f?0:null==(k=f.options)?0:null==(l=k.postParams)?0:l.requestTimeMs)f.options.postParams.requestTimeMs=Math.round((0,g.R)());a=f;if(!a){e.eb(0);break}if(!a.skipRetry||void 0===a.id){e.eb(8);break}return g.A(e,Nw(a.id,b),8);case 8:bx(a.url,a.options,!!a.skipRetry),g.ua(e)}})};
cna=function(a){var b=uw();if(!b)throw g.Uv("updateRequestHandlers");var c=a.options.onError?a.options.onError:function(){};
a.options.onError=function(e,f){var k,l,m;return g.B(function(n){switch(n.i){case 1:g.Q("use_cfr_monitor")&&Rw().requestComplete(a.url,!1);k=zma(f);if(!(g.Q("nwl_consider_error_code")&&k||!g.Q("nwl_consider_error_code")&&dna()<=g.kt("potential_esf_error_limit",10))){n.eb(2);break}if(g.Q("skip_checking_network_on_cfr_failure")&&(!g.Q("skip_checking_network_on_cfr_failure")||Rw().isEndpointCFR(a.url))){n.eb(3);break}return g.A(n,$w().Rm(),3);case 3:if($w().Ce()){n.eb(2);break}c(e,f);if(!g.Q("nwl_consider_error_code")||
void 0===(null==(l=a)?void 0:l.id)){n.eb(6);break}return g.A(n,Mw(a.id,b,!1),6);case 6:return n.return();case 2:if(g.Q("nwl_consider_error_code")&&!k&&dna()>g.kt("potential_esf_error_limit",10))return n.return();g.Ja("ytNetworklessLoggingInitializationOptions")&&hx.potentialEsfErrorCounter++;ix++;if(void 0===(null==(m=a)?void 0:m.id)){n.eb(8);break}return 1>a.sendCount?g.A(n,Mw(a.id,b),12):g.A(n,Nw(a.id,b),8);case 12:g.Nu.Uf(function(){$w().Ce()&&bna()},5E3);
case 8:c(e,f),g.ua(n)}})};
var d=a.options.onSuccess?a.options.onSuccess:function(){};
a.options.onSuccess=function(e,f){var k;return g.B(function(l){if(1==l.i)return g.Q("use_cfr_monitor")&&Rw().requestComplete(a.url,!0),void 0===(null==(k=a)?void 0:k.id)?l.eb(2):g.A(l,Nw(a.id,b),2);g.Q("vss_network_hint")&&$w().Hm(!0);d(e,f);g.ua(l)})};
return a};
$w=function(){if(g.Q("use_new_nwl"))return Xma();jx||(jx=new Ww({uA:!0,YK:!0}));return jx};
dx=function(a){$w().Ce()?g.ot(a):Qma(a)};
bx=function(a,b,c){c&&0===Object.keys(b).length?g.Ow(a):g.Mt(a,b)};
ax=function(){return g.Ja("ytNetworklessLoggingInitializationOptions")?hx.isNwlInitialized:!1};
dna=function(){return g.Ja("ytNetworklessLoggingInitializationOptions")?hx.potentialEsfErrorCounter:ix};
g.kx=function(a){this.config_=null;a?this.config_=a:vla()&&(this.config_=g.ov())};
g.pv=function(a,b,c,d){function e(p){try{(void 0===p?0:p)&&d.retry&&!d.WM.bypassNetworkless?(f.method="POST",d.WM.writeThenSend?g.Q("use_new_nwl")?Yw().writeThenSend(n,f):ana(n,f):g.Q("use_new_nwl")?Yw().sendAndWrite(n,f):fx(n,f)):(f.method="POST",f.postParams||(f.postParams={}),g.Mt(n,f))}catch(r){if("InvalidAccessError"==r.name)qt(Error("An extension is blocking network request."));else throw r;}}
!g.P("VISITOR_DATA")&&"visitor_id"!==b&&.01>Math.random()&&qt(new g.Kv("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady())throw a=new g.Kv("innertube xhrclient not ready",b,c,d),g.ot(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,r){if(d.onSuccess)d.onSuccess(r)},
onFetchSuccess:function(p){if(d.onSuccess)d.onSuccess(p)},
onError:function(p,r){if(d.onError)d.onError(r)},
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 k=a.config_.ZL;k&&(c=k);k=Dla(a.config_.bM||!1,c,d);Object.assign(f.headers,k);(k=f.headers.Authorization)&&!c&&(f.headers["x-origin"]=window.location.origin);b="/youtubei/"+a.config_.innertubeApiVersion+"/"+b;var l={alt:"json"},m=a.config_.qF&&k;m=m&&k.startsWith("Bearer");m||(l.key=a.config_.innertubeApiKey);var n=xt(""+c+b,l);g.Q("use_new_nwl")&&Yw().pe||!g.Q("use_new_nwl")&&
ax()?mma().then(function(p){e(p)}):e(!1)};
g.Fv=function(a,b,c){c=void 0===c?{}:c;var d=g.kx;g.P("ytLoggingEventsDefaultDisabled",!1)&&g.kx==g.kx&&(d=null);rv(a,b,d,c)};
gna=function(){var a=void 0===a?window.location.href:a;if(g.Q("kevlar_disable_theme_param"))return null;var b=tj(g.vj(5,a));if(ena(b))return"USER_INTERFACE_THEME_DARK";try{var c=g.wt(a).theme;return fna.get(c)||null}catch(d){}return null};
ena=function(a){var b=hna.map(function(c){return c.toLowerCase()});
return!g.Q("disable_dark_fashion_destination_launch")&&b.some(function(c){return a.toLowerCase().startsWith(c)})?!0:!1};
jna=function(a,b,c){a&&(a.dataset?a.dataset[ina(b)]=String(c):a.setAttribute("data-"+b,c))};
kna=function(a){return a?a.dataset?a.dataset[ina("loaded")]:a.getAttribute("data-loaded"):null};
ina=function(a){return lna[a]||(lna[a]=String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()}))};
lx=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()};
ox=function(a){var b;g.mx()?nx()==a&&(b=document):b=a;return b&&(a=wu(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))?(b=a.call(b),b instanceof Promise?b:Promise.resolve()):Promise.resolve()};
px=function(a){return g.Wb(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})};
mna=function(){var a=document;return g.Wb(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})};
g.mx=function(){return!!wu(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)};
nx=function(a){a=void 0===a?!1:a;var b=wu(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(a)for(;b&&b.shadowRoot;)b=b.shadowRoot.fullscreenElement;return b?b:null};
qx=function(a){g.G.call(this);this.I=[];this.Ta=a||this};
rx=function(a,b,c,d){for(var e=0;e<c.length;e++)a.S(b,c[e],d)};
g.sx=function(a,b){for(;a.I.length;){var c=a.I.pop(),d=void 0;b&&nna()&&(d={passive:!0});c.target.removeEventListener(c.name,c.callback,d)}};
g.tx=function(a){a=void 0===a?!1:a;g.G.call(this);this.Md=new g.Jr(a);g.J(this,this.Md)};
ux=function(a,b,c){for(var d in b)a.subscribe(d,b[d],c)};
vx=function(a,b,c){for(var d in b)a.unsubscribe(d,b[d],c)};
g.xx=function(a,b,c,d){g.tx.call(this);this.i=!!b;this.I=a;this.W=c||a;this.N=!!d;this.B=new qx(this);g.J(this,this.B);this.C=this.J=null;this.u=this.j=!1;b&&(g.Ze&&a.setAttribute("draggable","true"),a.style.touchAction="none");wx(this)};
yx=function(a,b,c){a.B.S(a.W,b,c,void 0,!a.i)};
zx=function(a){g.sx(a.B,!a.i)};
wx=function(a){a.C=null;a.J=null;yx(a,Ax("over"),a.TM);yx(a,"touchstart",a.OH);a.i&&yx(a,Ax("down"),a.BU)};
ona=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};
Ax=function(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a};
Bx=function(a){a=a||{};var b={},c={};this.url=a.url||"";this.args=a.args||g.yf(b);this.assets=a.assets||{};this.attrs=a.attrs||g.yf(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||{}};
pna=function(a){a instanceof Bx||(a=new Bx(a));return a};
Dx=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(Cx)for(c=1,d=0;d<Cx.length;d++)b[c%a]=b[c%a]^b[(c-1)%a]/4^Cx.charCodeAt(d),c++;return b};
Ex=function(a){a=Dx(a);for(var b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
g.qna=function(){return g.po(Dx(16),function(a){return(a&15).toString(16)}).join("")};
Fx=function(a){this.i=a};
g.Gx=function(a){return new Fx({trackingParams:a})};
sna=function(a){var b=rna++;return new Fx({veType:a,veCounter:b,elementIndex:void 0,dataElement:void 0,youtubeData:void 0,jspbYoutubeData:void 0})};
Hx=function(a){a=void 0===a?0:a;return 0==a?"client-screen-nonce":"client-screen-nonce."+a};
Ix=function(a){a=void 0===a?0:a;return 0==a?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+a};
tna=function(a){return g.P(Ix(void 0===a?0:a),void 0)};
g.Jx=function(a){return(a=tna(void 0===a?0:a))?new Fx({veType:a,youtubeData:void 0,jspbYoutubeData:void 0}):null};
una=function(){var a=g.P("csn-to-ctt-auth-info");a||(a={},ft("csn-to-ctt-auth-info",a));return a};
g.Kx=function(a){a=void 0===a?0:a;var b=g.P(Hx(a));if(!b&&!g.P("USE_CSN_FALLBACK",!0))return null;b||!g.Q("use_undefined_csn_any_layer")&&0!=a||(b="UNDEFINED_CSN");return b?b:null};
vna=function(a,b,c){var d=una();(c=g.Kx(c))&&delete d[c];b&&(d[a]=b)};
Lx=function(a){return una()[a]};
xna=function(a,b,c,d){c=void 0===c?0:c;if(a!==g.P(Hx(c))||b!==g.P(Ix(c)))vna(a,d,c),ft(Hx(c),a),ft(Ix(c),b),b=function(){setTimeout(function(){if(a){var e={clientDocumentNonce:wna,clientScreenNonce:a};g.Q("use_default_heartbeat_client")?g.Fv("foregroundHeartbeatScreenAssociated",e):rv("foregroundHeartbeatScreenAssociated",e,g.kx)}},0)},"requestAnimationFrame"in window?window.requestAnimationFrame(b):b()};
yna=function(a){if("JavaException"===a.name)return!0;a=a.stack;return a.includes("chrome://")||a.includes("chrome-extension://")||a.includes("moz-extension://")};
zna=function(){this.zn=[];this.Gm=[]};
Nx=function(){if(!Mx){var a=Mx=new zna;a.Gm.length=0;a.zn.length=0;Ana(a,Bna)}return Mx};
Ana=function(a,b){b.Gm&&a.Gm.push.apply(a.Gm,b.Gm);b.zn&&a.zn.push.apply(a.zn,b.zn)};
Cna=function(a){function b(){return a.charCodeAt(d++)}
var c=a.length,d=0;do{var e=Ox(b);if(Infinity===e)break;var f=e>>3;switch(e&7){case 0:e=Ox(b);if(2===f)return e;break;case 1:if(2===f)return;d+=8;break;case 2:e=Ox(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)};
Ox=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};
Dna=function(a,b,c,d){if(a)if(Array.isArray(a)){var e=d;for(d=0;d<a.length&&!(a[d]&&(e+=Px(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 k=b;var l=c;k="string"!==typeof f||"clickTrackingParams"!==e&&"trackingParams"!==e?0:(f=Cna(atob(f.replace(/-/g,"+").replace(/_/g,"/"))))?Px(e+".ve",f,k,l):0;d+=k;d+=Px(e,a[e],b,c);if(500<d)break}}else c[b]=Qx(a),d+=c[b].length;else c[b]=Qx(a),d+=c[b].length;return d};
Px=function(a,b,c,d){c+="."+a;a=Qx(b);d[c]=a;return c.length+a.length};
Qx=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+")"}};
Ev=function(a){g.S(a)};
g.Rx=function(a){g.S(a,"WARNING")};
g.S=function(a,b){var c=void 0===c?{}:c;c.name=g.P("INNERTUBE_CONTEXT_CLIENT_NAME",1);c.version=g.P("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0);c=c||{};b=void 0===b?"ERROR":b;b=void 0===b?"ERROR":b;if(a){a.hasOwnProperty("level")&&a.level&&(b=a.level);if(g.Q("console_log_js_exceptions")){var d=[];d.push("Name: "+a.name);d.push("Message: "+a.message);a.hasOwnProperty("params")&&d.push("Error Params: "+JSON.stringify(a.params));a.hasOwnProperty("args")&&d.push("Error args: "+JSON.stringify(a.args));
d.push("File name: "+a.fileName);d.push("Stacktrace: "+a.stack);window.console.log(d.join("\n"),a)}if(!(5<=Ena)){d=Fna;var e=Taa(a),f=e.message||"Unknown Error",k=e.name||"UnknownError",l=e.stack||a.j||"Not available";if(l.startsWith(k+": "+f)){var m=l.split("\n");m.shift();l=m.join("\n")}m=e.lineNumber||"Not available";e=e.fileName||"Not available";var n=0;if(a.hasOwnProperty("args")&&a.args&&a.args.length)for(var p=0;p<a.args.length&&!(n=Dna(a.args[p],"params."+p,c,n),500<=n);p++);else if(a.hasOwnProperty("params")&&
a.params){var r=a.params;if("object"===typeof a.params)for(p in r){if(r[p]){var t="params."+p,w=Qx(r[p]);c[t]=w;n+=t.length+w.length;if(500<n)break}}else c.params=Qx(r)}if(d.length)for(p=0;p<d.length&&!(n=Dna(d[p],"params.context."+p,c,n),500<=n);p++);navigator.vendor&&!c.hasOwnProperty("vendor")&&(c["device.vendor"]=navigator.vendor);c={message:f,name:k,lineNumber:m,fileName:e,stack:l,params:c,sampleWeight:1};p=Number(a.columnNumber);isNaN(p)||(c.lineNumber=c.lineNumber+":"+p);if("IGNORED"===a.level)a=
0;else a:{a=Nx();p=g.q(a.Gm);for(d=p.next();!d.done;d=p.next())if(d=d.value,c.message&&c.message.match(d.Pw)){a=d.weight;break a}a=g.q(a.zn);for(p=a.next();!p.done;p=a.next())if(p=p.value,p.callback(c)){a=p.weight;break a}a=1}c.sampleWeight=a;a=g.q(Gna);for(p=a.next();!p.done;p=a.next())if(p=p.value,p.ZA[c.name])for(f=g.q(p.ZA[c.name]),d=f.next();!d.done;d=f.next())if(k=d.value,d=c.message.match(k.Dg)){c.params["params.error.original"]=d[0];f=k.groups;k={};for(m=0;m<f.length;m++)k[f[m]]=d[m+1],c.params["params.error."+
f[m]]=d[m+1];c.message=p.QF(k);break}c.params||(c.params={});a=Nx();c.params["params.errorServiceSignature"]="msg="+a.Gm.length+"&cb="+a.zn.length;c.params["params.serviceWorker"]="false";g.C.document&&g.C.document.querySelectorAll&&(c.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));g.kg("sample").constructor!==ig&&(c.params["params.fconst"]="true");window.yterr&&"function"===typeof window.yterr&&window.yterr(c);if(0!==c.sampleWeight&&!Hna.has(c.message)){"ERROR"===
b?(Sx.Z("handleError",c),g.Q("record_app_crashed_web")&&0===Ina&&1===c.sampleWeight&&(Ina++,a={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},g.Q("report_client_error_with_app_crash_ks")||(a.systemHealth={crashData:{clientError:{logMessage:{message:c.message}}}}),g.Fv("appCrashed",a)),Jna++):"WARNING"===b&&Sx.Z("handleWarning",c);if(g.Q("kevlar_gel_error_routing")){a=b;b:{p=g.q(Kna);for(d=p.next();!d.done;d=p.next())if(du(d.value.toLowerCase())){p=!0;break b}p=!1}if(p)p=void 0;else{d={stackTrace:c.stack};
c.fileName&&(d.filename=c.fileName);p=c.lineNumber&&c.lineNumber.split?c.lineNumber.split(":"):[];0!==p.length&&(1!==p.length||isNaN(Number(p[0]))?2!==p.length||isNaN(Number(p[0]))||isNaN(Number(p[1]))||(d.lineNumber=Number(p[0]),d.columnNumber=Number(p[1])):d.lineNumber=Number(p[0]));p={level:"ERROR_LEVEL_UNKNOWN",message:c.message,errorClassName:c.name,sampleWeight:c.sampleWeight};"ERROR"===a?p.level="ERROR_LEVEL_ERROR":"WARNING"===a&&(p.level="ERROR_LEVEL_WARNNING");d={isObfuscated:!0,browserStackInfo:d};
f={pageUrl:window.location.href,kvPairs:[]};g.P("FEXP_EXPERIMENTS")&&(f.experimentIds=g.P("FEXP_EXPERIMENTS"));m=g.P("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",void 0);if(!jt("web_disable_gel_stp_ecatcher_killswitch")&&m)for(e=g.q(Object.keys(m)),k=e.next();!k.done;k=e.next())k=k.value,f.kvPairs.push({key:k,value:String(m[k])});if(m=c.params)for(e=g.q(Object.keys(m)),k=e.next();!k.done;k=e.next())k=k.value,f.kvPairs.push({key:"client."+k,value:String(m[k])});k=gt("SERVER_NAME");m=gt("SERVER_VERSION");
k&&m&&(f.kvPairs.push({key:"server.name",value:k}),f.kvPairs.push({key:"server.version",value:m}));p={errorMetadata:f,stackTrace:d,logMessage:p}}p&&(g.Fv("clientError",p),("ERROR"===a||g.Q("errors_flush_gel_always_killswitch"))&&gv())}if(!g.Q("suppress_error_204_logging")){a=c.params||{};b={urlParams:{a:"logerror",t:"jserror",type:c.name,msg:c.message.substr(0,250),line:c.lineNumber,level:b,"client.name":a.name},postParams:{url:g.P("PAGE_NAME",window.location.href),file:c.fileName},method:"POST"};
a.version&&(b["client.version"]=a.version);if(b.postParams){c.stack&&(b.postParams.stack=c.stack);p=g.q(Object.keys(a));for(d=p.next();!d.done;d=p.next())d=d.value,b.postParams["client."+d]=a[d];if(a=g.P("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",void 0))for(p=g.q(Object.keys(a)),d=p.next();!d.done;d=p.next())d=d.value,b.postParams[d]=a[d];a=g.P("SERVER_NAME",void 0);p=g.P("SERVER_VERSION",void 0);a&&p&&(b.postParams["server.name"]=a,b.postParams["server.version"]=p)}g.Mt(g.P("ECATCHER_REPORT_HOST",
"")+"/error_204",b)}try{Hna.add(c.message)}catch(x){}Ena++}}}};
Lna=function(a){var b=g.Ca.apply(1,arguments),c=a;c.args||(c.args=[]);c.args.push.apply(c.args,g.u(b))};
Tx=function(a,b,c){c=void 0===c?{}:c;var d=Math.round(c.timestamp||(0,g.R)());g.D(a,1,d<Number.MAX_SAFE_INTEGER?d:0);var e=Ou();d=new Js;g.D(d,1,c.timestamp||!isFinite(e)?-1:e);if(g.Q("log_sequence_info_on_gel_web")&&c.Yi){e=c.Yi;var f=lla(e),k=new wha;g.D(k,2,f);g.D(k,1,e);Pd(d,3,k);c.ZK&&delete Mna[c.Yi]}Pd(a,33,d);(c.hH?Yka:Vka)({endpoint:"log_event",payload:a,cttAuthInfo:c.cttAuthInfo,Gv:c.Gv},b)};
Ux=function(a,b){b=void 0===b?{}:b;var c=!1;g.P("ytLoggingEventsDefaultDisabled",!1)&&g.kx===g.kx&&(c=!0);Tx(a,c?null:g.kx,b)};
Wx=function(a,b,c){var d=new Ks;Qd(d,72,Vx,a);c?Tx(d,c,b):Ux(d,b)};
Nna=function(a,b,c){var d=new Ks;Qd(d,73,Vx,a);c?Tx(d,c,b):Ux(d,b)};
Ona=function(a,b,c){var d=new Ks;Qd(d,78,Vx,a);c?Tx(d,c,b):Ux(d,b)};
Pna=function(a,b,c){var d=new Ks;Qd(d,208,Vx,a);c?Tx(d,c,b):Ux(d,b)};
Qna=function(a,b,c){var d=new Ks;Qd(d,156,Vx,a);c?Tx(d,c,b):Ux(d,b)};
Rna=function(a,b,c){var d=new Ks;Qd(d,215,Vx,a);c?Tx(d,c,b):Ux(d,b)};
Xx=function(a){zw.call(this,1,arguments);this.csn=a};
Vna=function(a,b,c,d,e,f,k){function l(){g.Rx(new g.Kv("newScreen() parent element does not have a VE - rootVe",b))}
var m=Sna();f=new Fx({veType:b,youtubeData:f,jspbYoutubeData:void 0});e={cttAuthInfo:e,Yi:m};if(g.Q("il_via_jspb")){var n=new Bs;n.Zi(m);mha(n,f.getAsJspb());c&&c.visualElement?(f=new nha,c.clientScreenNonce&&g.D(f,2,c.clientScreenNonce),oha(f,c.visualElement.getAsJspb()),k&&g.D(f,4,Tna[k]),Pd(n,5,f)):c&&l();d&&g.D(n,3,d);Qna(n,e,a)}else f={csn:m,pageVe:f.getAsJson()},c&&c.visualElement?(f.implicitGesture={parentCsn:c.clientScreenNonce,gesturedVe:c.visualElement.getAsJson()},k&&(f.implicitGesture.gestureType=
k)):c&&l(),d&&(f.cloneCsn=d),a?rv("screenCreated",f,a,e):g.Fv("screenCreated",f,e);Cw(Una,new Xx(m));return m};
g.Zx=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:Lx(b),
Yi:b};d=g.q(d);for(var k=d.next();!k.done;k=d.next())k=k.value.getAsJson(),(g.uf(k)||!k.trackingParams&&!k.veType)&&g.Rx(Error("Child VE logged with no data"));if(g.Q("il_via_jspb")){var l=new Cs;l.Zi(b);qha(l,c.getAsJspb());g.po(e,function(m){m=m.getAsJspb();Sd(l,3,As,m,void 0)});
"UNDEFINED_CSN"==b?Yx("visualElementAttached",l,f):Rna(l,f,a)}else c={csn:b,parentVe:c.getAsJson(),childVes:g.po(e,function(m){return m.getAsJson()})},"UNDEFINED_CSN"==b?Yx("visualElementAttached",c,f):a?rv("visualElementAttached",c,a,f):g.Fv("visualElementAttached",c,f)};
g.$x=function(a,b,c){var d={cttAuthInfo:Lx(a),Yi:a};if(g.Q("il_via_jspb")){var e=new Es;e.Zi(a);b=b.getAsJspb();Pd(e,2,b);g.D(e,4,1);c&&Pd(e,3,void 0);"UNDEFINED_CSN"==a?Yx("visualElementShown",e,d):Wx(e,d,void 0)}else e={csn:a,ve:b.getAsJson(),eventType:1},c&&(e.clientData=c),"UNDEFINED_CSN"==a?Yx("visualElementShown",e,d):g.Fv("visualElementShown",e,d)};
Wna=function(a,b,c,d,e,f){var k=(d=void 0===d?!1:d)?16:8,l={cttAuthInfo:Lx(b),Yi:b,ZK:d};g.Q("il_via_jspb")?(k=new Es,k.Zi(b),c=c.getAsJspb(),Pd(k,2,c),g.D(k,4,d?16:8),e&&Pd(k,3,f),"UNDEFINED_CSN"==b?Yx("visualElementHidden",k,l):Nna(k,l,a)):(d={csn:b,ve:c.getAsJson(),eventType:k},e&&(d.clientData=e),"UNDEFINED_CSN"==b?Yx("visualElementHidden",d,l):a?rv("visualElementHidden",d,a,l):g.Fv("visualElementHidden",d,l))};
Xna=function(a,b,c,d){var e="INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var f={cttAuthInfo:Lx(b),Yi:b};if(g.Q("il_via_jspb")){var k=new Ds;k.Zi(b);c=c.getAsJspb();Pd(k,2,c);g.D(k,4,Tna[e]);d&&Pd(k,3,void 0);"UNDEFINED_CSN"==b?Yx("visualElementGestured",k,f):Ona(k,f,a)}else e={csn:b,ve:c.getAsJson(),gestureType:e},d&&(e.clientData=d),"UNDEFINED_CSN"==b?Yx("visualElementGestured",e,f):a?rv("visualElementGestured",e,a,f):g.Fv("visualElementGestured",e,f)};
Yna=function(){return g.Kc(Math.random()+"")};
Yx=function(a,b,c){ay.push({payloadName:a,payload:b,options:c});by||(by=Gw(Una,Zna))};
Zna=function(a){if(ay){for(var b=g.q(ay),c=b.next();!c.done;c=b.next())if(c=c.value,c.payload)if(g.Q("il_via_jspb"))switch(c.payload.Zi(a.csn),c.payloadName){case "screenCreated":Qna(c.payload,c.options);break;case "visualElementAttached":Rna(c.payload,c.options);break;case "visualElementShown":Wx(c.payload,c.options);break;case "visualElementHidden":Nna(c.payload,c.options);break;case "visualElementGestured":Ona(c.payload,c.options);break;case "visualElementStateChanged":Pna(c.payload,c.options);
break;default:g.Rx(new g.Kv("flushQueue unable to map payloadName to JSPB setter"))}else c.payload.csn=a.csn,rv(c.payloadName,c.payload,null,c.options);ay.length=0}by=0};
g.cy=function(a,b){g.uc(b,function(c){var d={cttAuthInfo:Lx(a),Yi:a};if(g.Q("il_via_jspb")){var e=new Es;e.Zi(a);c=c.getAsJspb();Pd(e,2,c);g.D(e,4,4);"UNDEFINED_CSN"==a?Yx("visualElementShown",e,d):Wx(e,d,void 0)}else e={csn:a,ve:c.getAsJson(),eventType:4},"UNDEFINED_CSN"==a?Yx("visualElementShown",e,d):g.Fv("visualElementShown",e,d)})};
g.dy=function(a,b){g.uc(b,function(c){Wna(void 0,a,c,void 0,void 0,void 0)})};
g.ey=function(a,b,c){Xna(void 0,a,b,c)};
fy=function(){this.j=new Set;this.i=new Set;this.u=new Map};
g.iy=function(a,b,c){var d=c&&0<c?c:0;c=d?Date.now()+1E3*d:0;if((d=d?(0,g.gy)():hy())&&window.JSON){"string"!==typeof b&&(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}};
g.jy=function(a){var b=hy(),c=(0,g.gy)();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};
$na=function(){var a=(0,g.gy)();if(a&&(a=a.j("yt-player-quality")))return a.creation};
g.ky=function(a){try{var b=hy(),c=(0,g.gy)();b&&b.remove(a);c&&c.remove(a)}catch(d){}};
g.ly=function(){return g.jy("yt-remote-session-screen-id")};
g.my=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(aoa,""),c=c.replace(boa,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else coa(a,b,c)};
coa=function(a,b,c){c=void 0===c?null:c;var d=doa(a),e=document.getElementById(d),f=e&&kna(e),k=e&&!f;f?b&&b():(b&&(f=g.Tu(d,b),b=""+g.Qa(b),eoa[b]=f),k||(e=foa(a,d,function(){kna(e)||(jna(e,"loaded","true"),g.Vu(d),g.Gt(g.Sa(Rka,d),0))},c)))};
foa=function(a,b,c,d){d=void 0===d?null:d;var e=g.Nh("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.Uk(e,g.Ar(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e};
doa=function(a){var b=document.createElement("a");g.Vg(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+kh(a)};
py=function(a){var b=g.Ca.apply(1,arguments);if(!ny(a)||b.some(function(e){return!ny(e)}))throw Error("Only objects may be merged.");
var c=a;b=g.q(b);for(var d=b.next();!d.done;d=b.next())oy(c,d.value);return c};
oy=function(a,b){for(var c in b)if(ny(b[c])){if(c in a&&!ny(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});oy(a[c],b[c])}else if(qy(b[c])){if(c in a&&!qy(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);goa(a[c],b[c])}else a[c]=b[c];return a};
goa=function(a,b){b=g.q(b);for(var c=b.next();!c.done;c=b.next())c=c.value,ny(c)?a.push(oy({},c)):qy(c)?a.push(goa([],c)):a.push(c);return a};
ny=function(a){return"object"===typeof a&&!Array.isArray(a)};
qy=function(a){return"object"===typeof a&&Array.isArray(a)};
ry=function(a,b,c,d,e,f){g.G.call(this);this.i=a;this.j=c;this.u=d;this.C=e;this.B=f};
joa=function(a,b,c){c.du?(sy(a.i.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId),hoa(a.C,b)):ioa(a.B,c.Ql,b.slotId)};
loa=function(a,b,c,d){var e=ty(a.u.get(),1);sy(a.i.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return koa(a.j.get(),c,d,e.clientPlaybackNonce,e.IK,e.daiEnabled,e)},b)};
vy=function(a,b,c){if(c&&c!==a.ob)return!1;b=g.q(b);for(c=b.next();!c.done;c=b.next())if(!uy(a.Ea,c.value))return!1;return!0};
wy=function(a,b){this.fp=b;this.triggerType="TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED";this.triggerId=a(this.triggerType)};
noa=function(a){moa=void 0===a?!1:a};
T=function(a,b,c,d,e){d=void 0===d?{}:d;moa&&(e=!0);if(!e||5E-4>Math.random()){b=b||null;c=c||null;a=a instanceof Error?a:new g.Kv(a);if(a.args)for(var f=g.q(a.args),k=f.next();!k.done;k=f.next())k=k.value,k instanceof Object&&(d=Object.assign({},k,d));d.category="H5 Ads Control Flow";b&&(d.slot=b?"slot:  "+b.ob:"");c&&(d.layout=c?"layout:  "+c.layoutType:"");e&&(d.known_error_aggressively_sampled=!0);a.args=[d];g.Rx(a)}};
yy=function(a,b,c,d,e,f,k){g.G.call(this);this.u=a;this.j=b;this.wD=c;this.Ka=d;this.B=e;this.i=f;this.Fa=k};
zy=function(){this.j=new Map;this.i=new Map;this.u=new Map};
Ay=function(a,b){if(g.P("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.j.get(b)||0;c++;a.j.set(b,c);return b+"_"+c}return Ex(16)};
By=function(a,b,c){if(g.P("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var d=a.i.get(b)||0;d++;a.i.set(b,d);return c+"_"+b+"_"+d}return Ex(16)};
Cy=function(a,b){if(g.P("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.u.get(b)||0;c++;a.u.set(b,c);return b+"_"+c}return Ex(16)};
Dy=function(a,b,c,d,e,f){this.startSecs=a;this.durationSecs=b;this.context=c;this.identifier=d;this.event=e;this.i=f};
ooa=function(a,b,c,d){this.u=a;this.Ae=null;this.j=b;this.i=0;this.daiEnabled=void 0===c?!1:c;this.visible=!0;this.B=void 0===d?!1:d};
Ey=function(a,b,c,d){!a&&(void 0===c?0:c)&&g.Rx(Error("Player URL validator detects invalid url. "+(void 0===d?"":d)+": "+b));return a};
Fy=function(a,b){return b&&b.test(a)?!0:!1};
Gy=function(a){return(a=poa&&poa.exec(a))?a[0]:""};
roa=function(a){var b=void 0===b?!1:b;return Ey(Fy(a,qoa),a,b,"Nielsen OCR URL")};
toa=function(a){var b=void 0===b?!1:b;return Ey(Fy(a,soa),a,b,"Active View 3rd Party Integration URL")};
voa=function(a){var b=void 0===b?!1:b;return Ey(Fy(a,uoa),a,b,"Google/YouTube Brand Lift URL")};
Hy=function(a){var b=void 0===b?!1:b;return Ey(Fy(a,woa),a,b,"Trusted Stream URL")};
g.Iy=function(a){var b=void 0===b?!1:b;return Ey(Fy(a,xoa),a,b,"Trusted Image URL")};
zoa=function(a){var b=void 0===b?!1:b;return Ey(Fy(a,yoa),a,b,"Trusted Ad Domain URL")};
Boa=function(a){var b=void 0===b?!1:b;return Ey(Fy(a,Aoa),a,b,"Trusted Promoted Video Domain URL")};
Doa=function(a){var b=void 0===b?!1:b;return Ey(Fy(a,Coa),a,b,"Drm Licensor URL")};
Foa=function(a,b){b=void 0===b?!1:b;return Ey(Fy(a,Eoa),a,b,"Captions URL")};
Goa=function(a){a=new g.Al(a);g.Bl(a,document.location.protocol);g.Cl(a,document.location.hostname);document.location.port&&g.Dl(a,document.location.port);return a.toString()};
Jy=function(a){a=new g.Al(a);g.Bl(a,document.location.protocol);return a.toString()};
g.Ly=function(a,b,c){c=void 0===c?{}:c;this.start=a;this.end=b;this.active=!0;this.color="";this.j=Hoa++;this.id=c.id||"";this.priority=c.priority||9;this.visible=c.visible||!1;this.style=c.style||Ky.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.qo(d.thumbnails,function(e){return g.Iy(e.url)})}):null;
this.visible=this.visible;this.style=this.style;this.start=this.start};
Ioa=function(a){return-0x8000000000000===a?"BEFORE_MEDIA_START":0===a?"MEDIA_START":0x7ffffffffffff===a?"MEDIA_END":0x8000000000000===a?"AFTER_MEDIA_END":a.toString()};
Joa=function(a,b){switch(a.style){case Ky.CHAPTER_MARKER:return b?8:5;case Ky.AD_MARKER:return 6;case Ky.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}};
g.My=function(a,b){return a.start-b.start||a.priority-b.priority||a.j-b.j};
g.Ny=function(a){return"crn_"+a};
g.Oy=function(a){return"crx_"+a};
Py=function(a,b,c,d,e){g.Ly.call(this,b.start,b.end,{id:d,namespace:"ad",priority:e,visible:c});this.i=a.kind||"AD_PLACEMENT_KIND_UNKNOWN";this.u=!1;this.B=null};
Qy=function(a){return"AD_PLACEMENT_KIND_START"==a.i};
Koa=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.i};
Loa=function(a,b,c){c=void 0===c?!1:c;switch(a.kind){case "AD_PLACEMENT_KIND_START":return new Gr(-0x8000000000000,-0x8000000000000);case "AD_PLACEMENT_KIND_END":return c?new Gr(Math.max(0,b.u-b.i),0x7ffffffffffff):new Gr(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.u);if(c&&(d=a,a=Math.max(0,a-b.i),a==d))break;return new Gr(a,d);case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":d=
b.Ae;a=1E3*d.startSecs;if(c){if(a<b.j)return new Gr(a-4E3,a);c=Math.max(0,a-b.j-1E4);return new Gr(b.B?b.j:Math.floor(b.j+Math.random()*c),a)}return new Gr(a,a+(0<d.durationSecs?1E3*d.durationSecs:5E3))}return null};
Ry=function(a,b,c){this.actionType=b;this.id=c;this.content=a};
g.Sy=function(a){if(a.simpleText)return a.simpleText;if(a.runs){var b=[];a=g.q(a.runs);for(var c=a.next();!c.done;c=a.next())c=c.value,c.text&&b.push(c.text);return b.join("")}return""};
g.Ty=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,k=null;var l=d.text;d.bold&&(k=Mh("B",null,k||l));d.italics&&(k=Mh("I",null,k||l));d.strikethrough&&(k=Mh("STRIKE",null,k||l));d.navigationEndpoint&&d.navigationEndpoint.urlEndpoint&&(d=d.navigationEndpoint.urlEndpoint,k=Mh("A",null,k||l),g.Vg(k,d.url),"TARGET_NEW_WINDOW"==d.target&&(k.target="_blank"));l=k||Mh("SPAN",null,
l);f.call(e,l)}}return 1==b.length?b[0]:Mh("SPAN",null,b)};
Uy=function(a,b){zw.call(this,1,arguments);this.timer=b};
Moa=function(a,b){zw.call(this,1,arguments);this.i=a;this.timer=b};
Noa=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
Ooa=function(a){var b=Vy(a);if(b.aft)return b.aft;a=g.P((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};
Poa=function(){var a;if(g.Q("csi_use_performance_navigation_timing")){var b,c,d,e=null==Wy?void 0:null==(a=Wy.getEntriesByType)?void 0:null==(b=a.call(Wy,"navigation"))?void 0:null==(c=b[0])?void 0:null==(d=c.toJSON)?void 0:d.call(c);e?(e.requestStart=Xy(e.requestStart),e.responseEnd=Xy(e.responseEnd),e.redirectStart=Xy(e.redirectStart),e.redirectEnd=Xy(e.redirectEnd),e.domainLookupEnd=Xy(e.domainLookupEnd),e.connectStart=Xy(e.connectStart),e.connectEnd=Xy(e.connectEnd),e.responseStart=Xy(e.responseStart),
e.secureConnectionStart=Xy(e.secureConnectionStart),e.domainLookupStart=Xy(e.domainLookupStart),e.isPerformanceNavigationTiming=!0,a=e):a=Wy.timing}else a=Wy.timing;return a};
Yy=function(){return g.Q("csi_use_time_origin")&&Wy.timeOrigin?Math.floor(Wy.timeOrigin):Wy.timing.navigationStart};
Xy=function(a){return Math.round(Yy()+a)};
Zy=function(a,b){g.Ia("ytglobal.timing"+(b||"")+"ready_",a,void 0)};
$y=function(a){return g.Ja("ytcsi."+(a||"")+"data_")||Qoa(a)};
az=function(a){a=$y(a);a.info||(a.info={});return a.info};
Vy=function(a){a=$y(a);a.tick||(a.tick={});return a.tick};
bz=function(a){a=$y(a);if(a.gel){var b=a.gel;b.gelInfos||(b.gelInfos={});b.gelTicks||(b.gelTicks={})}else a.gel={gelTicks:{},gelInfos:{}};return a.gel};
cz=function(a){a=bz(a);a.gelInfos||(a.gelInfos={});return a.gelInfos};
Roa=function(a){a=bz(a);a.jspbInfos||(a.jspbInfos=[]);return a.jspbInfos};
dz=function(a){var b=$y(a).nonce;b||(b=Ex(16),$y(a).nonce=b);return b};
Qoa=function(a){var b={tick:{},info:{}};g.Ia("ytcsi."+(a||"")+"data_",b,void 0);return b};
Uoa=function(a){var b=Vy(a||""),c=Ooa(a);c&&!Soa&&(Cw(Toa,new Uy(Math.round(c-b._start),a)),Soa=!0)};
Voa=function(a,b){for(var c=g.q(Object.keys(b)),d=c.next();!d.done;d=c.next())if(d=d.value,!Object.keys(a).includes(d)||"object"===typeof b[d]&&!Voa(a[d],b[d]))return!1;return!0};
Woa=function(){if(Wy.getEntriesByType){var a=Wy.getEntriesByType("paint");if(a=g.Wb(a,function(b){return"first-paint"===b.name}))return Xy(a.startTime)}a=Wy.timing;
return a.GU?Math.max(0,a.GU):0};
ez=function(){var a=g.Ja("ytcsi.debug");a||(a=[],g.Ia("ytcsi.debug",a,void 0),g.Ia("ytcsi.reference",{},void 0));return a};
fz=function(a){a=a||"";var b=Xoa();if(b[a])return b[a];var c=ez(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);return b[a]=d};
gz=function(a){a=a||"";var b=Xoa();b[a]&&delete b[a];var c=ez(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);b[a]=d};
Xoa=function(){var a=g.Ja("ytcsi.reference");if(a)return a;ez();return g.Ja("ytcsi.reference")};
hz=function(a){return Yoa[a]||"LATENCY_ACTION_UNKNOWN"};
cpa=function(a,b,c){c=bz(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 Zoa){c=Zoa[a];g.$b($oa,c)&&(b=!!b);a in apa&&"string"===typeof b&&(b=apa[a]+b.toUpperCase());a=b;b=c.split(".");for(var f=d={},k=0;k<b.length-1;k++){var l=b[k];f[l]={};f=f[l]}f[b[b.length-1]]="requestIds"===c?[{id:a,endpoint:e}]:a;return py({},d)}g.$b(bpa,a)||g.Rx(new g.Kv("Unknown label logged with GEL CSI",a))};
iz=function(){this.i=0};
jz=function(){iz.i||(iz.i=new iz);return iz.i};
lz=function(a,b){kz[b]=kz[b]||{count:0};var c=kz[b];c.count++;c.time=(0,g.R)();a.i||(a.i=Zt(0,function(){var d=(0,g.R)(),e;for(e in kz)kz[e]&&6E4<d-kz[e].time&&delete kz[e];a&&(a.i=0)},5E3));
return 5<c.count?(6===c.count&&1>1E5*Math.random()&&(c=new g.Kv("CSI data exceeded logging limit with key",b.split("_")),0<=b.indexOf("plev")||g.Rx(c)),!0):!1};
mz=function(a){Qoa(a);dpa();a||(g.P("TIMING_ACTION")&&ft("PREVIOUS_ACTION",g.P("TIMING_ACTION")),ft("TIMING_ACTION",""))};
qz=function(a,b,c){b=void 0===b?{}:b;c=c?c:a;nz(c);gz(c);mz(c);$y(c).useGel=!0;fz(c||"").info.actionType=a;b.cttAuthInfo&&($y(c).cttAuthInfo=b.cttAuthInfo);ft(c+"TIMING_ACTION",a);oz("_start",b.startTime,c);a={actionType:hz(a)};(b=g.Kx())&&"UNDEFINED_CSN"!==b&&(a.clientScreenNonce=b);pz(a,c);Zy(!0,c)};
g.rz=function(a,b,c){null!==b&&(az(c)[a]=b,(a=cpa(a,b,c))&&pz(a,c))};
pz=function(a,b){if(g.Q("web_csi_via_jspb")){var c=new Hs,d=Object.keys(a);a=Object.values(a);for(var e=0;e<d.length;e++)switch(d[e]){case "actionType":g.D(c,1,U[a[e]]);break;case "clientActionNonce":g.D(c,2,a[e]);break;case "clientScreenNonce":g.D(c,4,a[e]);break;case "actionVisualElement":Pd(c,88,a[e]);break;case "loadType":g.D(c,3,a[e]);break;case "isFirstInstall":g.D(c,55,a[e]);break;case "networkType":g.D(c,5,sz[a[e]]);break;case "connectionType":g.D(c,26,tz[a[e]]);break;case "detailedConnectionType":g.D(c,
27,uz[a[e]]);break;case "isVisible":g.D(c,6,a[e]);break;case "playerType":g.D(c,7,vz[a[e]]);break;case "clientPlaybackNonce":g.D(c,8,a[e]);break;case "adClientPlaybackNonce":g.D(c,28,a[e]);break;case "previousCpn":g.D(c,77,a[e]);break;case "targetCpn":g.D(c,76,a[e]);break;case "isMonetized":g.D(c,9,a[e]);break;case "isPrerollAllowed":g.D(c,16,a[e]);break;case "isPrerollShown":g.D(c,17,a[e]);break;case "adType":g.D(c,12,a[e]);break;case "adTypesAllowed":g.D(c,36,a[e]);break;case "adNetworks":g.D(c,
37,a[e]);break;case "previousAction":g.D(c,13,U[a[e]]);break;case "isRedSubscriber":g.D(c,14,a[e]);break;case "serverTimeMs":g.D(c,15,a[e]);break;case "spinnerInfo":Pd(c,18,a[e]);break;case "videoId":c.setVideoId(a[e]);break;case "adVideoId":g.D(c,20,a[e]);break;case "targetVideoId":g.D(c,78,a[e]);break;case "adBreakType":g.D(c,21,wz[a[e]]);break;case "isNavigation":g.D(c,25,a[e]);break;case "viewportHeight":g.D(c,29,a[e]);break;case "viewportWidth":g.D(c,30,a[e]);break;case "screenHeight":g.D(c,
84,a[e]);break;case "screenWidth":g.D(c,85,a[e]);break;case "browseId":g.D(c,31,a[e]);break;case "isCacheHit":g.D(c,32,a[e]);break;case "httpProtocol":g.D(c,33,a[e]);break;case "transportProtocol":g.D(c,34,a[e]);break;case "searchQuery":g.D(c,41,a[e]);break;case "isContinuation":g.D(c,42,a[e]);break;case "availableProcessors":g.D(c,43,a[e]);break;case "sdk":g.D(c,44,a[e]);break;case "isLocalStream":g.D(c,45,a[e]);break;case "navigationRequestedSameUrl":g.D(c,64,a[e]);break;case "shellStartupDurationMs":g.D(c,
70,a[e]);break;case "appInstallDataAgeMs":g.D(c,73,a[e]);break;case "latencyActionError":g.D(c,71,xz[a[e]]);break;case "actionStep":g.D(c,79,a[e]);break;case "jsHeapSizeLimit":g.D(c,80,a[e]);break;case "totalJsHeapSize":g.D(c,81,a[e]);break;case "usedJsHeapSize":g.D(c,82,a[e]);break;case "resourceInfo":Sd(c,83,tha,a[e],void 0);break;case "sourceVideoDurationMs":g.D(c,90,a[e]);break;case "playerInfo":Pd(c,22,a[e]);break;case "commentInfo":Pd(c,23,a[e]);break;case "mdxInfo":Pd(c,24,a[e]);break;case "watchInfo":Pd(c,
35,a[e]);break;case "adPrebufferedTimeSecs":g.D(c,39,a[e]);break;case "thumbnailLoadInfo":Pd(c,40,a[e]);break;case "creatorInfo":Pd(c,46,a[e]);break;case "unpluggedInfo":Pd(c,50,a[e]);break;case "isLivestream":g.D(c,47,a[e]);break;case "liveStreamMode":g.D(c,91,yz[a[e]]);break;case "adCpn2":g.D(c,48,a[e]);break;case "adDaiDriftMillis":g.D(c,49,a[e]);break;case "videoStreamType":g.D(c,53,zz[a[e]]);break;case "reelInfo":Pd(c,54,a[e]);break;case "subscriptionsFeedInfo":Pd(c,72,a[e]);break;case "playbackRequiresTap":g.D(c,
56,a[e]);break;case "requestIds":Sd(c,68,Is,a[e],void 0);break;case "mediaBrowserActionInfo":Pd(c,58,a[e]);break;case "performanceNavigationTiming":g.D(c,67,a[e]);break;case "musicLoadActionInfo":Pd(c,69,a[e]);break;case "transactionType":g.D(c,74,Az[a[e]]);break;case "shoppingInfo":Pd(c,75,a[e]);break;case "prefetchInfo":Pd(c,86,a[e]);break;case "accelerationSession":Pd(c,87,a[e]);break;case "playerRotationType":g.D(c,101,Bz[a[e]]);break;case "webInfo":Pd(c,38,a[e]);break;case "tvInfo":Pd(c,51,a[e]);
break;case "kabukiInfo":Pd(c,52,a[e]);break;case "mwebInfo":Pd(c,59,a[e]);break;case "musicInfo":Pd(c,65,a[e]);break;case "allowedPreroll":g.D(c,10,a[e]);break;case "shownPreroll":g.D(c,11,a[e]);break;case "getHomeRequestId":g.D(c,57,a[e]);break;case "getSearchRequestId":g.D(c,60,a[e]);break;case "getPlayerRequestId":g.D(c,61,a[e]);break;case "getWatchNextRequestId":g.D(c,62,a[e]);break;case "getBrowseRequestId":g.D(c,63,a[e]);break;case "getLibraryRequestId":g.D(c,66,a[e])}Cz(c,b)}else c=fz(b||""),
py(c.info,a),py(cz(b),a),c=dz(b),b=$y(b).cttAuthInfo,jz().info(a,c,b)};
Cz=function(a,b){Roa(b).push(a);fz(b||"").jspbInfo.push(a);var c=dz(b);b=$y(b).cttAuthInfo;jz().jspbInfo(a,c,b)};
oz=function(a,b,c){if(!b&&"_"!==a[0]){var d=a;Wy.mark&&(jb(d,"mark_")||(d="mark_"+d),c&&(d+=" ("+c+")"),Wy.mark(d))}fz(c||"").tick[a]=b||(0,g.R)();d=bz(c);d.gelTicks&&(d.gelTicks[a]=!0);d=Vy(c);var e=b||(0,g.R)();d[a]=e;e=dz(c);var f=$y(c).cttAuthInfo;if("_start"===a){var k=jz();lz(k,"baseline_"+e)||(b={timestamp:b,cttAuthInfo:f},g.Q("web_csi_via_jspb")?(f=new rha,g.D(f,1,e),e=new Ks,Qd(e,6,Vx,f),Ux(e,b)):g.Fv("latencyActionBaselined",{clientActionNonce:e},b))}else jz().tick(a,e,b,f);Uoa(c);return d[a]};
epa=function(a){var b="above_the_fold";Wy&&Wy.measure&&(jb(b,"measure_")||(b="measure_"+b),a?Wy.measure(b,a):Wy.measure(b))};
Dz=function(a,b){b=Vy(b);return a in b};
Ez=function(a,b,c){Dz("_start",c)&&!Dz(a,c)&&oz(a,b,c)};
fpa=function(){switch(Gka()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
nz=function(a){Dz("_start",a)&&oz("aa",void 0,a)};
gpa=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);Xg()&&a.setAttribute("nonce",Xg());return c?(a=Wy.getEntriesByName(c))&&a[0]&&(a=a[0],c=Yy(),oz("rsf_"+b,c+Math.round(a.fetchStart)),oz("rse_"+b,c+Math.round(a.responseEnd)),void 0!==a.transferSize&&0===a.transferSize)?!0:!1:!1};
hpa=function(){var a=window.location.protocol,b=Wy.getEntriesByType("resource");b=g.Bp(b,function(c){return 0===c.name.indexOf(a+"//web.archive.org/web/20220130220643/https://fonts.gstatic.com/s/")});
(b=ro(b,function(c,d){return d.duration>c.duration?d:c},{duration:0}))&&0<b.startTime&&0<b.responseEnd&&(oz("wffs",Xy(b.startTime)),oz("wffe",Xy(b.responseEnd)))};
Gz=function(){return g.qw||g.Fz||g.fu()&&19>wka()?!1:!("function"!==typeof window.fetch||!window.ReadableStream)};
Hz=function(){var a=XMLHttpRequest.prototype.fetch;return!!a&&3===a.length};
Iz=function(a,b){this.id=a;this.Fc=b;this.captionTracks=[];this.i=this.u=this.B=null;this.j="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN"};
Jz=function(a,b,c,d){this.u=c;this.reason=d;this.j=a||0;this.i=b||0};
Lz=function(a,b,c,d){return new Jz(g.Kz[a]||0,g.Kz[b]||0,c,d)};
Mz=function(a){var b=g.Kz.auto;return a.j===b&&a.i===b};
Oz=function(a){return Nz[a.i||a.j]||"auto"};
ipa=function(a,b){b=g.Kz[b];return a.j<=b&&(!a.i||a.i>=b)};
Pz=function(a,b){this.videoInfos=a;this.i=b;this.audioTracks=[];if(this.i){a=new Set;b=g.q(this.i);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.Fc&&!a.has(c.Fc.id)){var d=new Iz(c.id,c.Fc);a.add(c.Fc.id);this.audioTracks.push(d)}}};
Tz=function(a,b,c,d,e){var f={},k=new Set,l={};if(Qz(c)){for(var m in c.i)c.i.hasOwnProperty(m)&&(a=c.i[m],l[a.info.i]=[a.info]);return l}for(var n in c.i)if(c.i.hasOwnProperty(n)){m=c.i[n];var p=m.info.Vb(),r=Rz(a,m.info,b,c.isLive,k);!0!==r?f[p]=r:(l[m.info.i]=l[m.info.i]||[],l[m.info.i].push(m.info))}e&&(d(f),d({bfflt:Sz(l)}));for(var t in l)l.hasOwnProperty(t)&&(c=t,l[c]&&l[c][0].isVideo()&&(l[c]=jpa(a,l[c]),l[c]=kpa(l[c])));c=g.q(k.values());for(k=c.next();!k.done;k=c.next())(k=b.i.get(k.value))&&
--k.GO;b=g.hf(l,function(w){return!!w.length});
e&&d({aftflt:Sz(l)});a.kb=lpa(b,a);return b};
Rz=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?new Set:e;if(""===b.i)return"unkn";if(("304"===b.Vb()||"266"===b.Vb())&&a.Ya)return"blk2khfr";if(a.W&&b.video&&b.video.i>a.W)return"max"+a.W;if(a.Y&&b.video&&b.video.i<a.Y)return"min"+a.Y;if(a.jb&&"h"===b.i&&b.video&&1080<b.video.i)return"blkhigh264";if(a.fb&&b.video&&4320<=b.video.i&&32<b.video.fps)return"blk8khfr";if("(h"===b.i&&!c.B)return"enchdr";if(!a.Ia&&("o"===b.i||"O"===b.i)&&g.Uz&&du("crkey"))return"opchr";var f="MAC3"===b.i||"MEAC3"===
b.i||"M"===b.i;if(d&&f&&!a.La)return"blk51live";if((a=c.i.get(b.i))&&0<a.GO)return e.add(b.i),"byerr";e=mpa(c,b);if(!0!==e)return e;var k;return null==(k=b.video)||!(32<k.fps)||c.J&&(c.Y||Vz(c,Wz.FRAMERATE))?!0:"capHfr"};
lpa=function(a,b){var c=b.I&&!(!a.mac3&&!a.MAC3),d=b.J&&!(!a.meac3&&!a.MEAC3);return b.va&&!(!a.m&&!a.M)||c||d};
Xz=function(a){switch(a){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return a}};
Sz=function(a){var b=[],c;for(c in a)if(a.hasOwnProperty(c)){var d=c;b.push(Xz(d));d=g.q(a[d]);for(var e=d.next();!e.done;e=d.next())b.push(e.value.Vb())}return b.join(".")};
npa=function(a,b,c,d,e){var f={},k={};g.ef(b,function(l,m){l=l.filter(function(n){var p=n.Vb();if(!n.Kd)return k[p]="noenc",!1;if("("===n.i||"(h"===n.i){if(a.j&&c&&"widevine"===c.flavor){var r=n.mimeType+"; experimental=allowed";(r=!!n.Kd[c.flavor]&&!!c.i[r])||(k[p]=n.Kd[c.flavor]?"unspt":"noflv");return r}if(!Vz(a,Wz.CRYPTOBLOCKFORMAT)&&!a.ea||a.W)return k[p]=a.W?"disvp":"vpsub",!1}return c&&n.Kd[c.flavor]&&c.i[n.mimeType]?!0:(k[p]=c?n.Kd[c.flavor]?"unspt":"noflv":"nosys",!1)});
l.length&&(f[m]=l)});
d&&Object.entries(k).length&&e(k);return f};
rpa=function(a,b,c,d,e){function f(w){return!!l[w]}
var k=a.N||!!d,l=Tz(a,b,c,e,k);Yz(c)&&(l=npa(b,l,d,k,e),k&&e({enflt:Sz(l)}));if(Qz(c))return e=g.Wb(Object.values(l),function(w){return!!w.length&&!!w[0].audio}),k=g.Wb(Object.values(l),function(w){return!!w.length&&!!w[0].video}),e&&k||Rt(),St(new Pz(k,e));
b=opa(a);k&&e({audioPrefOrder:b.join("_")});b=g.Wb(b,f);if(!b)return k&&e({noaudio:1}),Rt();b=l[b];l["9"]&&l.h&&c.Af&&!a.Qa&&(k&&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.i);p&&p.length&&(a.u.highestVp9Resolution=p[p.length-1].video.i);var r=[],t=[];if(a.xa&&!a.i)for(t=ppa(c)?l["1h"]||l["9h"]?["1h","9h"]:["9","h"]:["1","9","h"],k&&e({newhybpref:t.join(".")}),n=g.q(t),p=n.next();!p.done;p=n.next())r=
r.concat(l[p.value]).filter(function(w){return w});
else 0<a.j&&p&&n&&(t=[m,d],r=n.concat(p).filter(function(w){return w}));
if(r.length&&!a.i){Zz(r,b,t);if(k){k=[];a=g.q(r);for(c=a.next();!c.done;c=a.next())k.push(c.value.Vb());e({hbdfmt:k.join(".")})}return St(new Pz(r,b))}r=qpa(a);r=g.Wb(r,f);if(!r){if(l[m])return e=l[m],Zz(e,b),St(new Pz(e,b));k&&e({novideo:1});return Rt()}a.Hb&&("1"===r||"1h"===r)&&l[d]&&(m=$z(l[r]),$z(l[d])>m&&(r=d));"9"===r&&l.h&&(d=$z(l["9"]),$z(l.h)>1.5*d&&(r="h"));a.wb&&c.isLive&&"("===r&&l.H&&1440>$z(l["("])&&(r="H");k&&e({vfmly:Xz(r)});a=l[r];if(!a.length)return k&&e({novfmly:Xz(r)}),Rt();Zz(a,
b);return St(new Pz(a,b))};
Zz=function(a,b,c){c=void 0===c?[]:c;g.qc(a,function(d,e){var f=e.video.height*e.video.width-d.video.height*d.video.width;if(!f&&c&&0<c.length){f=c.indexOf(d.i)+1;var k=c.indexOf(e.i)+1;f=0===f||0===k?k||-1:f-k}f||(f=e.Ob-d.Ob);return f});
g.qc(b,function(d,e){return e.Ob-d.Ob})};
kpa=function(a){var b=ro(a,function(c,d){return 32<d.video.fps?Math.min(c,d.video.width):c},Infinity);
Infinity>b&&(a=g.Bp(a,function(c){return 32<c.video.fps||c.video.width<b}));
hu()&&(a=g.Bp(a,function(c){return"299"!==c.Vb()}));
return a};
jpa=function(a,b){return b=g.Bp(b,function(c){return c.video.i<=a.xb})};
$z=function(a){return ro(a,function(b,c){return Math.max(b,c.video.i)},0)};
spa=function(a){a=void 0===a?{}:a;var b=void 0===a.Yk?!1:a.Yk,c=void 0===a.defraggedFromSubfragments?!1:a.defraggedFromSubfragments,d=void 0===a.isManifestless?!1:a.isManifestless,e=void 0===a.zH?!1:a.zH;return((void 0===a.hasSubfragmentedFmp4?0:a.hasSubfragmentedFmp4)||b)&&d?e&&Gz()?3:2:c&&d?-1:1};
tpa=function(a){return spa({hasSubfragmentedFmp4:a.C.Ah,Yk:a.C.Ah,defraggedFromSubfragments:a.Yl,isManifestless:!0,zH:a.La})};
upa=function(a){a=a.split("");aA.eR(a,2);aA.qS(a,49);aA.Tb(a,56);aA.eR(a,2);aA.qS(a,5);aA.qS(a,14);aA.Tb(a,22);return a.join("")};
g.bA=function(a,b){this.j=a;this.C=void 0===b?!1:b;this.B=this.path=this.u="";this.i={};this.url=""};
cA=function(a){a.url||(a.url=vpa(a));return a.url};
eA=function(a){dA(a);return a.B};
fA=function(a){return a.j?jb(a.j,"local"):"local"===a.u};
wpa=function(a){dA(a);return g.kf(a.i,function(b){return null!==b})};
xpa=function(a){dA(a);var b=decodeURIComponent(a.get("mn")||"").split(",");return"/videoplayback"===a.path&&1<b.length&&!!b[1]};
gA=function(a){dA(a);if("/videoplayback"!==a.path){var b=a.clone();b.set("playerfallback","1");return b}var c=cA(a);b=new g.Al(c);var d=a.get("fvip");a=decodeURIComponent(a.get("mn")||"").split(",");if(d&&a&&1<a.length&&a[1]){c=b.i;var e=c.replace(/^[^.]*/,"");g.Cl(b,(0===c.indexOf("rr")?"rr":"r")+d+"---"+a[1]+e);b=new g.bA(b.toString());b.set("fallback_count","1");return b}d=b.i.match("\\.a1\\.googlevideo\\.com$");b.i.match("\\.googlevideo\\.com$")?(g.Cl(b,"redirector.googlevideo.com"),c=b.toString()):
b.i.match("rr?[1-9].*\\.c\\.youtube\\.com$")?(g.Cl(b,"www.youtube.com"),c=b.toString()):c=Goa(c);b=new g.bA(c);b.set("cmo=pf","1");d&&b.set("cmo=td","a1.googlevideo.com");return b};
dA=function(a){if(a.j){if(!Hy(a.j)&&!a.j.startsWith("local"))throw new g.Kv("Untrusted URL",a.j);var b=g.Ul(a.j);a.u=b.B;a.B=b.i+(null!=b.u?":"+b.u:"");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.i;a.i=ypa(c);
Object.assign(a.i,hA(b.j.toString()));Object.assign(a.i,d);"index.m3u8"===a.i.file&&(delete a.i.file,a.path+="/file/index.m3u8");a.j="";a.url="";a.C&&(b=a.get("n"))&&(b=gha(b),a.set("n",b))}};
vpa=function(a){dA(a);var b=a.u+(a.u?"://":"//")+a.B+a.path;if(wpa(a)){var c=[];g.ef(a.i,function(d,e){null!==d&&c.push(e+"="+d)});
b+="?"+c.join("&")}return b};
ypa=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&zpa(c,a[b],a[b+1]);return c};
hA=function(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?zpa(b,d.substr(0,e),d.substr(e+1)):d&&(b[d]="")}return b};
zpa=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};
iA=function(a,b,c,d,e,f,k,l,m){this.Na=a;this.startTime=b;this.duration=c;this.ingestionTime=d;this.sourceURL=e;this.Ae=m;this.endTime=b+c;this.i=k||0;this.range=f||null;this.pending=l||!1;this.Ae=m||null};
jA=function(){this.segments=[];this.i=null};
Apa=function(a,b){if(b>a.getLastSegmentNumber())a.segments=[];else{var c=Vb(a.segments,function(d){return d.Na>=b},a);
0<c&&a.segments.splice(0,c)}};
kA=function(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b};
lA=function(a){return String.fromCharCode.apply(null,a)};
nA=function(a){return mA?mA.decode(a):lA(a)};
g.pA=function(a){if(!a.length)return"";try{if(mA)return mA.decode(a);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(a)}catch(k){}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)oA[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;oA[e++]=55296|f>>10;f=56320|f&1023}oA[e++]=f}}f=String.fromCharCode.apply(String,oA);
1024>e&&(f=f.substr(0,e));c.push(f)}return c.join("")};
rA=function(a,b){var c;if(null==(c=qA)?0:c.encodeInto)return b=qA.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};
sA=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.i=(this.j=e)?0:8;this.dataOffset=this.offset+this.i};
tA=function(a){var b=a.data.getUint8(a.offset+a.i);a.i+=1;return b};
uA=function(a){var b=a.data.getUint16(a.offset+a.i);a.i+=2;return b};
vA=function(a){var b=a.data.getInt32(a.offset+a.i);a.i+=4;return b};
wA=function(a){var b=a.data.getUint32(a.offset+a.i);a.i+=4;return b};
xA=function(a){var b=a.data;var c=a.offset+a.i;b=4294967296*b.getUint32(c)+b.getUint32(c+4);a.i+=8;return b};
yA=function(a,b){b=void 0===b?NaN:b;if(isNaN(b))var c=a.size;else for(c=a.i;c<a.size&&a.data.getUint8(a.offset+c)!==b;)++c;b=new Uint8Array(a.data.buffer,a.offset+a.i+a.data.byteOffset,c-a.i);a.i=Math.min(c+1,a.size);return nA(b)};
Bpa=function(a){this.offset=0;this.data=new DataView(new ArrayBuffer(a))};
zA=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};
BA=function(a,b){this.data=a;this.uri=b||"https://web.archive.org/web/20220130220643/http://youtube.com/streaming/metadata/segment/102015";this.i=AA(this,"Sequence-Number");this.I=AA(this,"Segment-Count");this.J=this.data["Segment-Durations-Ms"]||"";this.ingestionTime=AA(this,"Ingestion-Walltime-Us")/1E6;this.j=(AA(this,"First-Frame-Time-Us")+AA(this,"First-Frame-Uncertainty-Us"))/1E6;this.ej=AA(this,"Target-Duration-Us")/1E6;this.B="T"===this.data["Stream-Finished"];this.C="T"===this.data.Streamable;this.cryptoPeriodIndex=AA(this,"Crypto-Period-Index");
this.u=AA(this,"Crypto-Period-Seconds")};
Dpa=function(a){var b;a.data["Cuepoint-Type"]?b=new Dy(-(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0),Number(a.data["Cuepoint-Total-Duration-Sec"])||0,a.data["Cuepoint-Context"],a.data["Cuepoint-Identifier"]||"",Cpa[a.data["Cuepoint-Event"]||""]||"unknown",1E3*(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0)):b=null;return b};
Epa=function(a){return Number(a.data["Start-Media-Time-Us"])/1E6||0};
AA=function(a,b){return Number(a.data[b])||0};
g.Fpa=function(a){return a.data["Serialized-State"]?a.data["Serialized-State"]:""};
Gpa=function(a,b){this.i=a;this.duration=b};
Hpa=function(a,b,c,d,e){this.j=e;this.i=a||0;this.pitch=b||0;this.yaw=c||0;this.roll=d||0;e.getUint32(4)};
CA=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};
Ipa=function(a,b){var c=g.DA(a,0,1952868452);a=g.DA(a,0,1953658222);if(c&&a){c.skip(1);var d=tA(c)<<16|uA(c);c.skip(4);d&1&&c.skip(8);d&2&&c.skip(4);if(d&8){d=c.i;var e=wA(c);c.data.setUint32(c.offset+d,1<b?Math.ceil(e*b):Math.floor(e*b))}a.skip(1);c=tA(a)<<16|uA(a);if(c&256){d=c&1;e=c&4;var f=c&512,k=c&1024,l=c&2048;c=wA(a);d&&a.skip(4);e&&a.skip(4);d=(f?4:0)+(k?4:0)+(l?4:0);for(e=0;e<c;e++)f=a.i,k=wA(a),a.data.setUint32(a.offset+f,1<b?Math.ceil(k*b):Math.floor(k*b)),a.skip(d)}}};
FA=function(a){a=new DataView(a.buffer,a.byteOffset,a.byteLength);return(a=g.DA(a,0,1836476516))?g.EA(a):NaN};
Jpa=function(a){var b=g.DA(a,0,1937011556);if(!b)return null;b=GA(a,b.dataOffset+8,1635148593);if(!b)return null;var c=GA(a,b.dataOffset+78,1936995172),d=GA(a,b.dataOffset+78,1937126244);if(!d)return null;b=null;if(c)switch(c.skip(4),tA(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=GA(a,d.dataOffset,1886547818)){var k=GA(a,d.dataOffset,1886546020),l=GA(a,d.dataOffset,2037673328);if(!l&&(l=GA(a,d.dataOffset,1836279920),!l))return null;k&&(k.skip(4),c=
vA(k)/65536,f=vA(k)/65536,e=vA(k)/65536);a=new DataView(l.data.buffer,l.dataOffset,l.size-8);return new Hpa(b,c,f,e,a)}return null};
GA=function(a,b,c){for(;HA(a,b);){var d=IA(a,b);if(d.type===c)return d;b+=d.size}return null};
g.DA=function(a,b,c){for(;HA(a,b);){var d=IA(a,b);if(d.type===c)return d;b=JA(d.type)?b+8:b+d.size}return null};
g.KA=function(a){if(a.data.getUint8(a.dataOffset)){var b=a.data;a=a.dataOffset+4;return 4294967296*b.getUint32(a)+b.getUint32(a+4)}return a.data.getUint32(a.dataOffset+4)};
IA=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new sA(a,b,c,d)};
g.EA=function(a){var b=a.data.getUint8(a.dataOffset)?20:12;return a.data.getUint32(a.dataOffset+b)};
Kpa=function(a){a=new sA(a.data,a.offset,a.size,a.type,a.j);var b=tA(a);a.skip(7);var c=wA(a);if(0===b){b=wA(a);var d=wA(a)}else b=xA(a),d=xA(a);a.skip(2);for(var e=uA(a),f=[],k=[],l=0;l<e;l++){var m=wA(a);f.push(m);k.push(wA(a));a.skip(4)}return{GH:c,PS:b,fT:d,iY:f,BH:k}};
HA=function(a,b){if(8>a.byteLength-b)return!1;var c=a.getUint32(b);if(8>c||a.byteLength-b<c)return!1;c=a.getUint32(b+4);if(1635148593===c||1635148611===c||1937126244===c||1936995172===c)return!0;for(c=4;8>c;c++){var d=a.getInt8(b+c);if(97>d||122<d)return!1}return!0};
JA=function(a){return 1701082227===a||1836019558===a||1836019574===a||1835297121===a||1835626086===a||1937007212===a||1953653094===a||1953653099===a||1836475768===a};
Lpa=function(a){a.skip(4);return{wY:yA(a,0),value:yA(a,0),GH:wA(a),Bfa:wA(a),bfa:wA(a),id:wA(a),MM:yA(a),offset:a.offset}};
g.Mpa=function(a){var b=GA(a,0,1701671783);if(!b)return null;var c=Lpa(b),d=c.wY;c=CA(c.MM);if(a=GA(a,b.offset+b.size,1701671783))if(a=Lpa(a),a=CA(a.MM),c&&a){b=g.q(Object.keys(a));for(var e=b.next();!e.done;e=b.next())e=e.value,c[e]=a[e]}return c?new BA(c,d):null};
LA=function(a,b){for(var c=GA(a,0,b);c;)c.markAsSkip(),c=GA(a,c.offset+c.size,b)};
g.MA=function(a,b){for(var c=0,d=[];HA(a,c);){var e=IA(a,c);e.type===b&&d.push(e);c=JA(e.type)?c+8:c+e.size}return d};
Opa=function(a,b){var c=g.DA(a,0,1937011556),d=g.DA(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.DA(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 Bpa(a.byteLength+b);zA(d,a,0,c.offset+12);d.data.setInt32(d.offset,2);d.offset+=4;zA(d,a,c.offset+16,c.size-16);zA(d,e,e.byteOffset+f.dataOffset+8,b);zA(d,a,c.offset+c.size,a.byteLength-
(c.offset+c.size));c=g.q([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(e=c.next();!e.done;e=c.next())e=g.DA(a,0,e.value),d.data.setUint32(e.offset,e.size+b);if(Npa)return d.data;a=g.DA(d.data,0,1953654136);d.data.setUint32(a.offset+16,2);return d.data};
YA=function(a,b){this.j=a;this.i=0;this.start=b||0};
ZA=function(a){return a.i>=a.j.byteLength};
dB=function(a,b,c){var d=new YA(c);if(!$A(d,a))return!1;d=aB(d);if(!bB(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.start+d.i;var e=cB(d,!0);d=a+(d.start+d.i-b)+e;d=9<d?Ppa(d-9,8):Ppa(d-2,1);a=b-a;c.setUint8(a++,236);for(b=0;b<d.length;b++)c.setUint8(a++,d[b]);return!0};
Qpa=function(a){var b=new YA(a);b.Dw();if($A(b,[408125543,374648427,174,224]))b=aB(b);else return null;for(var c=a=null;!ZA(b);){var d=cB(b,!1);if(21432===d)switch(eB(b)){default:a=0;break;case 1:a=1;break;case 3:a=2;break;case 15:a=255}else 30320===d?c=aB(b):fB(b)}if(!c)return null;for(var e,f=d=b=null;!ZA(c);)switch(cB(c,!1)){case 30321:if(3!==eB(c))return null;break;case 30324:b=gB(c);break;case 30323:f=gB(c);break;case 30325:d=gB(c);break;case 30322:e=cB(c,!0);e=hB(c,e);e=new DataView(e.buffer,
e.byteOffset,e.byteLength);break;default:fB(c)}return e?new Hpa(a,b,f,d,e):null};
aB=function(a){var b=cB(a,!0),c=a.j.byteOffset+a.i;c=new DataView(a.j.buffer,c,Math.min(b,a.j.buffer.byteLength-c));c=new YA(c,a.start+a.i);a.i+=b;return c};
eB=function(a){for(var b=cB(a,!0),c=iB(a),d=1;d<b;d++)c=256*c+iB(a);return c};
gB=function(a){var b=cB(a,!0),c=0;4===b?c=a.j.getFloat32(a.i):8===b&&(c=a.j.getFloat64(a.i));a.i+=b;return c};
Rpa=function(a){var b=cB(a,!0);return nA(hB(a,b))};
iB=function(a){return a.j.getUint8(a.i++)};
cB=function(a,b){var c=iB(a);if(1===c){for(b=c=0;7>b;b++)c=256*c+iB(a);return c}for(var d=128,e=0;6>e&&d>c;e++)c=256*c+iB(a),d*=128;return b?c-d:c};
fB=function(a){var b=cB(a,!0);a.i+=b};
Spa=function(a){if(!bB(a,440786851,!0))return null;var b=a.i;cB(a,!1);var c=cB(a,!0)+a.i-b;a.i=b+c;if(!bB(a,408125543,!1))return null;cB(a,!0);if(!bB(a,357149030,!0))return null;var d=a.i;cB(a,!1);var e=cB(a,!0)+a.i-d;a.i=d+e;if(!bB(a,374648427,!0))return null;var f=a.i;cB(a,!1);var k=cB(a,!0)+a.i-f,l=new Uint8Array(c+12+e+k),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,k),c+12+e);return l};
jB=function(a){var b=a.i;a.i=0;var c=1E6;$A(a,[408125543,357149030,2807729])&&(c=eB(a));a.i=b;return c};
Tpa=function(a,b){var c=a.i;a.i=0;if(160!==a.j.getUint8(a.i)&&!kB(a)||!bB(a,160))return a.i=c,NaN;cB(a,!0);var d=a.i;if(!bB(a,161))return a.i=c,NaN;cB(a,!0);iB(a);var e=iB(a)<<8|iB(a);a.i=d;if(!bB(a,155))return a.i=c,NaN;d=eB(a);a.i=c;return(e+d)*b/1E9};
kB=function(a){if(!Upa(a)||!bB(a,524531317))return!1;cB(a,!0);return!0};
Upa=function(a){if(a.Dw()){if(!bB(a,408125543))return!1;cB(a,!0)}return!0};
$A=function(a,b){for(var c=0;c<b.length;c++){if(!bB(a,b[c]))return!1;c!==b.length-1&&cB(a,!0)}return!0};
bB=function(a,b,c){c=void 0===c?!1:c;if(ZA(a))return!1;for(var d=a.i;cB(a,!1)!==b;)if(fB(a),d=a.i,ZA(a))return!1;c&&(a.i=d);return!0};
Ppa=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};
hB=function(a,b){var c=new Uint8Array(a.j.buffer,a.j.byteOffset+a.i,b);a.i+=b;return c};
lB=function(a){this.Vf=a;this.i={};this.url=""};
Vpa=function(a,b){var c=b.indexOf("?");if(0<c){var d=hA(b.substr(c+1));g.ef(d,function(e,f){this.set(f,e)},a);
b=b.substr(0,c)}b=ypa(b);g.ef(b,function(e,f){this.set(f,e)},a)};
g.mB=function(a){a.url||(a.url=Wpa(a));return a.url};
Wpa=function(a){var b=cA(a.Vf),c=[];g.ef(a.i,function(e,f){c.push(f+"="+e)});
if(!c.length)return b;var d=c.join("&");a=wpa(a.Vf)?"&":"?";return b+a+d};
nB=function(a,b){var c=new g.bA(b);(b=c.get("req_id"))&&a.set("req_id",b);g.ef(a.i,function(d,e){c.set(e,null)});
return c};
Xpa=function(){this.j=this.i=this.timedOut=this.started=this.u=0};
Ypa=function(a){a.u=(0,g.R)();a.started+=1};
Zpa=function(a,b,c){var d=a.started+4*a.i;c&&(d+=a.j);return Math.pow(b.Sg,d)};
oB=function(a,b){a[b]||(a[b]=new Xpa);return a[b]};
$pa=function(a){this.J=this.I=this.C=this.j=0;this.i=a;this.B=a.clone()};
qB=function(a,b){if(fA(a.i))return!1;var c=oB(b,eA(a.i));if(1<=c.timedOut||1<=c.i)if(a=pB(a),b=oB(b,eA(a)),b.timedOut+b.i<=c.timedOut+c.i)return!0;return!1};
aqa=function(a,b){a=b?pB(a):a.i;return new lB(a)};
pB=function(a){a.u||(a.u=gA(a.B));return a.u};
rB=function(a,b){return eA(b?pB(a):a.i)};
sB=function(a,b){var c=a.C+b.vp*(a.j-a.C)+b.wp*a.I;b=c>b.Pe?1E3*Math.pow(b.Sg,c-b.Pe):0;return 0===b?!0:a.J+b<(0,g.R)()};
bqa=function(a,b,c){++a.j;b&&++a.C;eA(c.Vf).startsWith("redirector.")&&(a.i=a.B.clone(),delete a.u)};
tB=function(a,b,c,d){this.initRange=c;this.indexRange=d;this.i=null;this.I=!1;this.B=null;this.N=0;this.C=this.u=null;this.info=b;this.j=new $pa(a)};
uB=function(a,b){var c=g.q(a.info.id.split(";")),d=c.next().value;c=c.next().value;return d+";"+(b?0:a.info.lastModified)+";"+(void 0===c?"":c)};
vB=function(a,b){this.start=a;this.end=b;this.length=b-a+1};
wB=function(a){a=a.split("-");var b=Number(a[0]),c=Number(a[1]);if(!isNaN(b)&&!isNaN(c)&&2===a.length&&(a=new vB(b,c),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0<a.length))return a};
xB=function(a,b){return new vB(a,a+b-1)};
cqa=function(a){return null==a.end?{start:String(a.start)}:{start:String(a.start),end:String(a.end)}};
zB=function(a,b,c,d,e,f,k,l,m,n,p){this.type=a;this.i=b;this.range=c;this.N=[];this.I="";this.Na=-1;this.I=void 0===d?"":d;this.Na=0<=e?e:-1;this.startTime=f||0;this.duration=k||0;this.Cb=l||0;this.j=0<=m?m:this.range?this.range.length:NaN;this.u=!!n;a=this.range?this.Cb+this.j===this.range.length:void 0===p?!!this.j:p;this.Zd=a;this.range?(this.B=this.startTime+this.duration*this.Cb/this.range.length,this.J=this.duration*this.j/this.range.length,this.C=this.B+this.J):dqa(this);3!==this.type||0<=
this.Na||!this.i.Tg()||g.Rx(new g.Kv("b168859904",yB(this)))};
dqa=function(a){a.B=a.startTime;a.J=a.duration;a.C=a.B+a.J};
eqa=function(a,b,c){var d=!(!b||b.i!==a.i||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.Cb+b.j===a.Cb+a.j:d};
AB=function(a){return 1===a.type||2===a.type};
BB=function(a){return 3===a.type||6===a.type};
CB=function(a,b){return a.i===b.i?a.range&&b.range?a.range.start+a.Cb+a.j===b.range.start+b.Cb:a.Na===b.Na?a.Cb+a.j===b.Cb:a.Na+1===b.Na&&0===b.Cb&&a.Zd:!1};
fqa=function(a,b){return CB(a,b)||ah(a.C,b.B)||a.Na+1===b.Na&&0===b.Cb&&a.Zd?!0:!1};
gqa=function(a){1===a.length||g.qo(a,function(c){return!!c.range});
for(var b=1;b<a.length;b++);b=a[a.length-1];return new vB(a[0].range.start+a[0].Cb,b.range.start+b.Cb+b.j-1)};
yB=function(a){a=DB(a);var b="";g.ef(a,function(c,d){b+=d+"_"+c+"_"});
return b.slice(0,-1)};
DB=function(a){var b={};b.itag=a.i.info.Vb();b.type=""+a.type;b.seg=String(a.Na);a.range&&(b.range=""+(a.range.start+a.Cb)+"-"+(a.range.start+a.Cb+a.j-1));b.time=""+a.B.toFixed(1)+"-"+(a.B+a.J).toFixed(1);b.off=String(a.Cb);b.len=String(a.j);a.Zd&&(b.end="1");a.u&&(b.eos="1");return b};
hqa=function(a,b){return a.i!==b.i?!1:a.range&&b.range?a.range.start+a.Cb>=b.range.start+b.Cb&&a.range.start+a.Cb+a.j<=b.range.start+b.Cb+b.j:a.Na===b.Na&&a.Cb>=b.Cb&&(a.Cb+a.j<=b.Cb+b.j||b.Zd)};
iqa=function(a,b){return a.i!==b.i?!1:4===a.type&&3===b.type&&a.i.Ze()?(a=a.i.Qt(a),Uo(a,function(c){return iqa(c,b)})):a.Na===b.Na&&!!b.j&&b.Cb+b.j>a.Cb&&b.Cb+b.j<=a.Cb+a.j};
jqa=function(a,b){var c=b.i;a.I="updateWithEmsg";a.Na=c;b.B&&(a.u=b.B)};
EB=function(a,b){var c=b.Na;a.I="updateWithSegmentInfo";a.Na=c;if(a.startTime!==b.startTime||a.duration!==b.duration)a.startTime=b.startTime,a.duration=b.duration,dqa(a)};
FB=function(a,b){this.i=a;this.u=null;this.C=this.We=NaN;this.I=this.requestId=null;this.j=a[0].i.j;this.B=b||"";this.range=this.i[0].range&&0<this.i[0].j?gqa(this.i):null};
GB=function(a){return!AB(a.i[a.i.length-1])};
HB=function(a){return 4===a.i[a.i.length-1].type};
g.IB=function(a,b,c){c=null===a.I?qB(a.j,c):a.I;if(a.u){b=b.Gr&&c?gA(a.u):a.u;var d=new lB(b);d.get("alr")||d.set("alr","yes");a.B&&Vpa(d,a.B)}else/http[s]?:\/\//.test(a.B)?d=new lB(new g.bA(a.B)):(d=aqa(a.j,c),a.B&&Vpa(d,a.B));(b=a.range)&&d.set("range",b.toString());a.requestId&&d.set("req_id",a.requestId);isNaN(a.We)||d.set("headm",a.We.toString());isNaN(a.C)||d.set("mffa",a.C+"ms");a.urlParams&&g.ef(a.urlParams,function(e,f){d.set(f,e)});
return d};
kqa=function(a){if(a.range)return a.range.length;a=a.i[0];return Math.round(a.J*a.i.info.Ob)};
lqa=function(a,b,c){if(!c.Fr&&a.u)return null;var d=a.i[0];if(a.range)c=xB(a.range.start,Math.min(4096,a.range.length));else{if(a.B&&0<=a.B.indexOf("/range/")||"1"===a.j.B.get("defrag")||"1"===a.j.B.get("otf"))return null;c=xB(0,4096)}c=new zB(5,d.i,c,"createProbeRequestInfo"+d.I,d.Na);c=new FB([c],a.B);c.I=b;c.u=a.u;return c};
JB=function(a,b,c,d,e,f){f=void 0===f?0:f;tB.call(this,a,b,d,void 0);this.W=c;this.ej=f;this.J=!0;this.index=e||new jA};
mqa=function(a,b,c,d,e){this.Na=a;this.startSecs=b;this.durationSecs=c;this.i=d||NaN;this.j=e||NaN};
KB=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""};
LB=function(a,b){for(;a;a=a.parentNode){var c=a.getElementsByTagName(b);if(0<c.length)return c[0]}return null};
nqa=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};
oqa=function(a){return a.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?a+"Z":a};
MB=function(){this.i=[];this.j=null;this.I=0;this.u=[];this.C=!1;this.J="";this.B=-1};
pqa=function(a){var b=a.u;a.u=[];return b};
qqa=function(){this.B=[];this.i=null;this.j={};this.u={}};
uqa=function(a,b,c){var d=[];b=Array.from(b.getElementsByTagName("SegmentTimeline"));b=g.q(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=e.parentNode.parentNode,k=null;"Period"===f.nodeName?k=rqa(a):"AdaptationSet"===f.nodeName?(f=f.getAttribute("id")||f.getAttribute("mimetype")||"",k=sqa(a,f)):"Representation"===f.nodeName&&(f=f.getAttribute("id")||"",k=tqa(a,f));if(null==k)return;k.update(e,c);jc(d,pqa(k))}jc(a.B,d);qaa(a.B,function(l){return 1E3*l.startSecs+l.i})};
vqa=function(a){a.i&&(a.i.i=[]);g.ef(a.j,function(b){b.i=[]});
g.ef(a.u,function(b){b.i=[]})};
rqa=function(a){a.i||(a.i=new MB);return a.i};
sqa=function(a,b){a.j[b]||(a.j[b]=new MB);return a.j[b]};
tqa=function(a,b){a.u[b]||(a.u[b]=new MB);return a.u[b]};
NB=function(a){var b=void 0===a?{}:a;a=void 0===b.ej?0:b.ej;var c=void 0===b.Ik?!1:b.Ik,d=void 0===b.Zl?0:b.Zl,e=void 0===b.Ee?0:b.Ee,f=void 0===b.zg?Infinity:b.zg,k=void 0===b.Nw?0:b.Nw;b=void 0===b.bf?!1:b.bf;jA.call(this);this.j=this.Pu=-1;this.u=null;this.Ig=a;this.Zl=d;this.Ik=c;this.Ee=e;this.zg=f;this.Nw=k;this.bf=b};
PB=function(a,b,c){b=OB(a,b);return 0<=b&&(c||!a.segments[b].pending)};
OB=function(a,b){return pc(a.segments,function(c){return b-c.Na})};
QB=function(a,b,c){c=void 0===c?{}:c;JB.call(this,a,b,"",void 0,void 0,c.ej||0);this.index=new NB(c)};
RB=function(a,b,c){tB.call(this,a,b);this.J=c;this.index=new jA};
wqa=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.Ob*f;var k=b===a.index.getLastSegmentNumber()&&0<c;a=new zB(3,a,void 0,"otfCreateRequestInfoForSegment",b,e,f,0,c,k);return new FB([a],d)};
xqa=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,k=0,l=/^(\d+)/,m=/r=(\d+)/,n=0;n<d;n++){if(0>=k)if(k=b.shift(),f=(f=l.exec(k))?+f[1]/1E3:0)k=(k=m.exec(k))?+k[1]:0,k+=1;else return;c.push(new iA(n,e,f,NaN,"sq/"+(n+1)));e+=f;k--}a.index.append(c)}};
SB=function(){this.count=0;this.u=1;this.j=!1;this.offsets=new Float64Array(128);this.i=new Float64Array(128)};
TB=function(a){a.offsets.length<a.count+1&&a.resize(2*a.offsets.length)};
UB=function(a){var b=this;a=void 0===a?[]:a;this.i=[];this.u=this.j=0;this.B=void 0;this.totalLength=0;a.forEach(function(c){b.append(c)})};
yqa=function(a,b){return 0===a.i.length?!1:(a=a.i[a.i.length-1])&&a.buffer===b.buffer&&a.byteOffset+a.length===b.byteOffset};
VB=function(a,b){b=g.q(b.i);for(var c=b.next();!c.done;c=b.next())a.append(c.value)};
WB=function(a){a.B=void 0;a.j=0;a.u=0};
XB=function(a,b,c){a.isFocused(b);return b-a.u+c<=a.i[a.j].length};
zqa=function(a){if(!a.B){var b=a.i[a.j];a.B=new DataView(b.buffer,b.byteOffset,b.length)}return a.B};
Aqa=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(!XB(a,b,c)){var d=a.j,e=a.u;a.focus(b+c-1);e=new Uint8Array(a.u+a.i[a.j].length-e);for(var f=0,k=d;k<=a.j;k++)e.set(a.i[k],f),f+=a.i[k].length;a.i.splice(d,a.j-d+1,e);WB(a);a.focus(b)}d=a.i[a.j];return new DataView(d.buffer,d.byteOffset+b-a.u,c)};
YB=function(a,b,c){a=Aqa(a,void 0===b?0:b,void 0===c?-1:c);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)};
Bqa=function(a){a=YB(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};
ZB=function(a,b){a.focus(b);return a.i[a.j][b-a.u]};
Cqa=function(a,b){a.focus(b);return XB(a,b,4)?zqa(a).getUint32(b-a.u):256*(256*(256*ZB(a,b)+ZB(a,b+1))+ZB(a,b+2))+ZB(a,b+3)};
$B=function(a,b,c){this.info=a;this.u=c;this.j=null;this.B=-1;this.timestampOffset=0;this.C=!1;this.i=b instanceof UB?b:new UB([b])};
aC=function(a){return Aqa(a.i)};
Dqa=function(a,b){if(1!==a.info.i.info.containerType||a.info.Cb||!a.info.Zd)return!0;a=aC(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};
Eqa=function(a,b){b=Math.min(b,a.info.j);var c=a.i.split(b),d=c.Zz;c=c.Wq;var e=new zB(a.info.type,a.info.i,a.info.range,a.info.I,a.info.Na,a.info.startTime,a.info.duration,a.info.Cb,b,!1,!1);d=new $B(e,d,a.u);a=new zB(a.info.type,a.info.i,a.info.range,a.info.I,a.info.Na,a.info.startTime,a.info.duration,a.info.Cb+b,a.info.j-b,a.info.u,a.info.Zd);a=new $B(a,c,!1);return[d,a]};
Fqa=function(a,b,c){var d;if(!(d=!CB(a.info,b.info)||a.info.Zd)){if(c=void 0===c?!1:c)c=b.i,c=!(c.i.length?yqa(a.i,c.i[0]):1);d=c}if(d)return null;c=new zB(a.info.type,a.info.i,a.info.range,a.info.I,a.info.Na,a.info.startTime,a.info.duration,a.info.Cb,a.info.j,a.info.u,a.info.Zd);d=b.info;c.j+=d.j;c.range&&(c.J+=d.J);c.C=d.C;c.Zd=d.Zd;c.u=c.u||d.u;d=new UB;VB(d,a.i);VB(d,b.i);c=new $B(c,d,a.u);c.j=b.j||a.j;if(a=c.info.range)a=c.i,a=!(1===a.i.length&&0<a.i[0].byteOffset);a&&(c.u=!1);return c};
Gqa=function(a){g.bC(a.info.i.info)||a.info.i.info.De();if(-1!==a.B)return a.B;if(a.j&&Epa(a.j))return a.B=Epa(a.j),a.B;if(g.bC(a.info.i.info)){var b=aC(a);for(var c=a.info.i.i,d=NaN,e=NaN,f=0;HA(b,f);){var k=IA(b,f);1936286840===k.type?e=k.data.getUint32(k.dataOffset+8):1836476516===k.type?e=g.EA(k):1952867444===k.type&&isNaN(d)&&(d=g.KA(k));f=JA(k.type)?f+8:f+k.size}!e&&c&&(e=FA(c));b=d/e}else b=new YA(aC(a)),c=a.u?b:new YA(new DataView(a.info.i.i.buffer)),d=jB(c),c=b.i,b.i=0,kB(b)?bB(b,231)?(d=
eB(b)*d/1E9,b.i=c,b=d):(b.i=c,b=NaN):(b.i=c,b=NaN);a.B=b||a.info.B;return a.B};
Iqa=function(a,b){0<a.timestampOffset&&(b-=a.timestampOffset);var c=Gqa(a)+b;Hqa(a,c);a.timestampOffset=b};
Hqa=function(a,b){g.bC(a.info.i.info)||a.info.i.info.De();a.B=b;if(g.bC(a.info.i.info)){var c=aC(a);a=a.info.i.i;for(var d=NaN,e=NaN,f=0;HA(c,f);){var k=IA(c,f);isNaN(d)&&(1936286840===k.type?d=k.data.getUint32(k.dataOffset+8):1836476516===k.type&&(d=g.EA(k)));if(1952867444===k.type){!d&&a&&(d=FA(a));var l=g.KA(k);isNaN(e)&&(e=Math.round(b*d)-l);l+=e;if(k.data.getUint8(k.dataOffset)){var m=k.data,n=k.dataOffset+4;m.setUint32(n,Math.floor(l/4294967296));m.setUint32(n+4,l&4294967295)}else k.data.setUint32(k.dataOffset+
4,l)}f=JA(k.type)?f+8:f+k.size}return!0}c=new YA(aC(a));a=a.u?c:new YA(new DataView(a.info.i.i.buffer));d=jB(a);a=c.i;c.i=0;if(kB(c)&&bB(c,231))if(e=cB(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.i+d,b&255),b>>>=8;c.i=a;b=!0}else b=!1;return b};
cC=function(a,b){b=void 0===b?!1:b;var c=Jqa(a);a=b?0:a.info.J;return c||a};
Jqa=function(a){g.bC(a.info.i.info)||a.info.i.info.De();if(a.j&&6===a.info.type)return a.j.ej;if(g.bC(a.info.i.info)){var b=aC(a);var c=0;b=g.MA(b,1936286840);b=g.q(b);for(var d=b.next();!d.done;d=b.next())d=Kpa(d.value),c+=d.BH[0]/d.GH;c=c||NaN;if(!(0<=c))a:{g.Rx(new g.Kv("b121212789")),c=aC(a);b=a.info.i.i;for(var e=d=0,f=0;HA(c,d);){var k=IA(c,d);if(1836476516===k.type)e=g.EA(k);else if(1836019558===k.type){!e&&b&&(e=FA(b));if(!e){c=NaN;break a}var l=GA(k.data,k.dataOffset,1953653094),m=e,n=GA(l.data,
l.dataOffset,1952868452);l=GA(l.data,l.dataOffset,1953658222);var p=vA(n);vA(n);p&2&&vA(n);n=p&8?vA(n):0;var r=vA(l),t=r&1;p=r&4;var w=r&256,x=r&512,y=r&1024;r&=2048;var z=wA(l);t&&vA(l);p&&vA(l);for(var F=t=0;F<z;F++){var I=w?vA(l):n;x&&vA(l);p&&0===F||!y||vA(l);r&&vA(l);t+=I}f+=t/m}d=JA(k.type)?d+8:d+k.size}c=f||NaN}c||g.Rx(new g.Kv("Missing duration while parsing bmff",yB(a.info)))}else c=new YA(aC(a)),a=a.u?c:new YA(new DataView(a.info.i.i.buffer)),c=Tpa(c,jB(a));return c};
Kqa=function(a){var b=aC(a);var c=(c=g.DA(b,0,1936286840))?c.data.getUint32(c.dataOffset+8):NaN;isNaN(c)&&(a=a.info.i.i,c=(b=g.DA(b,0,1836476516))?g.EA(b):a?FA(a):NaN);return c};
Lqa=function(a){if(!a.j){g.bC(a.info.i.info)||a.info.i.info.De();if(g.bC(a.info.i.info))var b=g.Mpa(aC(a));else{b=new YA(aC(a));var c=b.i;b.i=0;var d=null,e=null;if($A(b,[408125543,307544935]))for(var f=b.i+cB(b,!0);b.i<f;)if(29555!==cB(b,!1))fB(b);else for(var k=b.i+cB(b,!0);b.i<k;)if(26568!==cB(b,!1))fB(b);else for(var l=b.i+cB(b,!0);b.i<l;){var m=cB(b,!1);if(17543===m){if(m=Rpa(b),m=CA(m))if(e)for(var n=g.q(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=Rpa(b),d||(d=m)):fB(b)}b.i=c;b=e?new BA(e,d):null}a.j=b}};
Mqa=function(a){if(!a.C){if(g.bC(a.info.i.info)){var b=aC(a);var c=GA(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=Spa(new YA(aC(a)));b&&(a.info.i.i=b,a.C=!0)}};
dC=function(a,b,c,d,e){tB.call(this,a,b,c,d);this.J=null;this.index=e?new e.NativeSegmentIndex:new SB};
eC=function(a,b,c,d){for(var e=[],f=b;f<=a.index.getLastSegmentNumber();f++){var k=xB(a.index.getOffset(f),a.index.getByteLength(f)),l=a.index.getStartTime(f),m=a.index.getDuration(f),n=Math.max(0,c-k.start),p=Math.min(k.end+1,c+d)-(k.start+n),r=f===a.index.getLastSegmentNumber()&&n+p===k.length;e.push(new zB(3,a,k,"getRequestInfoForRange",f,l,m,n,p,r));if(k.start+n+p>=c+d)break}e.length||g.S(new g.Kv("b189619593",""+b,""+c,""+d));return new FB(e)};
fC=function(a,b,c,d){this.sampleRate=a||0;this.numChannels=b||0;this.spatialAudioType=c||0;this.itag=d||""};
Nqa=function(a,b,c,d){this.displayName=a;this.vssId=b;this.languageCode=c;this.kind=void 0===d?"":d};
hC=function(a,b,c,d,e,f,k,l,m){this.width=a;this.height=b;this.quality=f||gC(a,b);this.i=g.Kz[this.quality];this.fps=c||0;this.stereoLayout=!e||null!=d&&0!==d&&1!==d?0:e;this.projectionType=d?2===d&&2===e?3:d:0;(a=k)||(a=g.Kz[this.quality],0===a?a="Auto":(b=this.fps,c=this.projectionType,a=a.toString()+(2===c||3===c||4===c?"s":"p")+(55<b?"60":49<b?"50":39<b?"48":"")));this.qualityLabel=a;this.j=l||"";this.primaries=m||""};
gC=function(a,b){var c=Math.max(a,b);a=Math.min(a,b);b=iC[0];for(var d=0;d<iC.length;d++){var e=iC[d],f=g.Kz[e];if(c>=1.3*Math.floor(16*f/9)||a>=1.3*f)return b;b=e}return"tiny"};
lC=function(a,b,c){c=void 0===c?{}:c;this.id=a;this.mimeType=b;0<c.Ob||(c.Ob=16E3);Object.assign(this,c);this.containerType=jC(b);this.i=kC[this.Vb()]||""};
mC=function(a){return"9"===a.i||"("===a.i||"9h"===a.i||"(h"===a.i};
nC=function(a){return"9h"===a.i||"(h"===a.i};
oC=function(a){return"1"===a.i||"1h"===a.i};
g.bC=function(a){return 1===a.containerType};
pC=function(a){return"application/x-mpegURL"===a.mimeType};
Oqa=function(a){var b=navigator.mediaCapabilities;if(!b||"f"===a.i)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.Ob||1E6,framerate:a.video.fps||30});a.audio&&(c.audio={contentType:a.mimeType,channels:a.audio.numChannels||2,bitrate:8*a.Ob||128E3,samplerate:a.audio.sampleRate||44100});return b.decodingInfo(c).then(function(d){a.j=d})};
qC=function(a){return a.includes("vtt")||a.includes("text/mp4")};
jC=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};
Pqa=function(a,b,c,d,e){var f=new fC;b in g.Kz||(b="small");"light"===b&&(b="tiny");d&&e?(e=Number(e),d=Number(d)):(e=g.Kz[b],d=Math.round(16*e/9));d=new hC(d,e,0,null,void 0,b,void 0,void 0,void 0);a=unescape(a.replace(/&quot;/g,'"'));return new lC(c,a,{audio:f,video:d})};
rC=function(a,b,c){this.name=a;this.id=b;this.isDefault=c};
g.sC=function(){qx.apply(this,arguments)};
tC=function(){var a=g.Ja("yt.player.utils.videoElement_");a||(a=g.Nh("VIDEO"),g.Ia("yt.player.utils.videoElement_",a,void 0));return a};
uC=function(a){var b=tC();return!!(b&&b.canPlayType&&b.canPlayType(a))};
Qqa=function(a){try{var b=vC('video/mp4; codecs="avc1.42001E"')||vC('video/webm; codecs="vp9"');return(vC('audio/mp4; codecs="mp4a.40.2"')||vC('audio/webm; codecs="opus"'))&&(b||!a)||uC('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(c){return"html5.missingapi"}};
vC=function(a){if(/opus/.test(a)&&g.Uz&&!Ir("38")&&!g.fu())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!yka())return!1;'audio/mp4; codecs="mp4a.40.2"'===a&&(a='video/mp4; codecs="avc1.4d401f"');return!!uC(a)};
wC=function(){return"pictureInPictureEnabled"in window.document&&!!window.document.pictureInPictureEnabled};
xC=function(){var a=tC();return!!a.webkitSupportsPresentationMode&&"function"===typeof a.webkitSetPresentationMode};
yC=function(){var a=tC();try{var b=a.muted;a.muted=!b;return a.muted!==b}catch(c){}return!1};
zC=function(a,b){return{start:function(c){return a[c]},
end:function(c){return b[c]},
length:a.length}};
AC=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)};
BC=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};
CC=function(a,b){return 0<=BC(a,b)};
Rqa=function(a,b){if(!a)return NaN;b=BC(a,b);return 0<=b?a.start(b):NaN};
DC=function(a,b){if(!a)return NaN;b=BC(a,b);return 0<=b?a.end(b):NaN};
EC=function(a){return a&&a.length?a.end(a.length-1):NaN};
Sqa=function(a,b){a=DC(a,b);return 0<=a?a-b:0};
FC=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 zC(d,e)};
GC=function(a,b,c,d){g.tx.call(this);var e=this;this.Jd=a;this.start=b;this.end=c;this.isActive=d;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.NL={error:function(){!e.isDisposed()&&e.isActive&&e.Z("error",e)},
updateend:function(){!e.isDisposed()&&e.isActive&&e.Z("updateend",e)}};
ux(this.Jd,this.NL);this.py=this.isActive};
HC=function(a,b,c,d,e){g.tx.call(this);var f=this;this.Zb=a;this.Ue=b;this.id=c;this.containerType=d;this.isVideo=e;this.rM=this.qA=this.cf=null;this.appendWindowStart=this.timestampOffset=0;this.pK=zC([],[]);this.Ty=!1;this.Ke=function(l){return f.Z(l.type,f)};
var k;if(null==(k=this.Zb)?0:k.addEventListener)this.Zb.addEventListener("updateend",this.Ke),this.Zb.addEventListener("error",this.Ke)};
IC=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1};
JC=function(a,b){this.i=a;this.j=void 0===b?!1:b;this.u=!1};
KC=function(a,b,c){c=void 0===c?!1:c;g.G.call(this);this.mediaSource=a;this.Ue=b;this.isView=c;this.u=0;this.callback=null;this.events=new g.sC(this);g.J(this,this.events);this.Ow=new JC(this.mediaSource?window.URL.createObjectURL(this.mediaSource):this.Ue.webkitMediaSourceURL,!0);a=this.mediaSource||this.Ue;rx(this.events,a,["sourceopen","webkitsourceopen"],this.oX);rx(this.events,a,["sourceclose","webkitsourceclose"],this.nX)};
Tqa=function(){return!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)};
Uqa=function(a,b){LC(a)?g.gi(function(){b(a)}):a.callback=b};
LC=function(a){try{return"open"===MC(a)}catch(b){return!1}};
MC=function(a){if(a.mediaSource)return a.mediaSource.readyState;switch(a.Ue.webkitSourceState){case a.Ue.SOURCE_OPEN:return"open";case a.Ue.SOURCE_ENDED:return"ended";default:return"closed"}};
NC=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)};
Vqa=function(a,b,c,d){if(!a.i||!a.j)return null;var e=a.i.isView()?a.i.Jd:a.i,f=a.j.isView()?a.j.Jd:a.j,k=new KC(a.mediaSource,a.Ue,!0);k.Ow=a.Ow;e=new GC(e,b,c,d);b=new GC(f,b,c,d);k.i=e;k.j=b;g.J(k,e);g.J(k,b);LC(a)||a.i.BB(a.i.kd());return k};
Wqa=function(a,b){return OC(function(c,d){return g.Pt(c,d,4,1E3)},a,b)};
g.Xqa=function(a){var b;a.responseType&&"text"!==a.responseType?"arraybuffer"===a.responseType&&(b=nA(new Uint8Array(a.response))):b=a.responseText;return!b||2048<b.length?"":0===b.indexOf("https://")?b:""};
OC=function(a,b,c){b.match(Yqa);return a(b,c).then(function(d){var e=g.Xqa(d.xhr);return e?OC(a,e,c):d.xhr})};
PC=function(a,b,c){a=void 0===a?"":a;b=void 0===b?null:b;c=void 0===c?!1:c;g.tx.call(this);this.sourceUrl=a;this.isLivePlayback=c;this.La=this.duration=0;this.bf=this.N=this.isLive=this.u=!1;this.zg=this.Ee=0;this.isOtf=this.Af=!1;this.ya=(0,g.R)();this.W=Infinity;this.i={};this.state=this.ea=0;this.timeline=null;this.isManifestless=!1;this.Y=[];this.B=null;this.va=0;this.Qa="";this.xa=NaN;this.J=this.I=this.C=this.timestampOffset=this.j=0;this.Wa=!!b&&b.Xa("html5_live_nonzero_first_segment_start_time");
this.fb=!!b&&b.Xa("html5_live_self_init_segments");this.withCredentials=!b||!b.Xa("html5_manifest_without_credentials");this.Ia=!!b&&b.Xa("disable_html5_manifest_namespace_redux");this.Ta=b&&b.Xa("disable_html5_duration_caching")?Infinity:10;this.Ya=!!b&&b.Xa("html5_reset_index_on_mismatch");Zqa=!!b&&b.Xa("html5_modern_vp9_mime_type");this.Ha=!!b&&b.Xa("html5_unrewrite_timestamps")};
ppa=function(a){return g.kf(a.i,function(b){return!!b.info.video&&b.info.video.isHdr()})};
Yz=function(a){return g.kf(a.i,function(b){return!!b.info.Kd})};
$qa=function(a){return g.kf(a.i,function(b){return qC(b.info.mimeType)})};
ara=function(a){return g.kf(a.i,function(b){return b.info.video?2===b.info.video.projectionType:!1})};
bra=function(a){return g.kf(a.i,function(b){return b.info.video?3===b.info.video.projectionType:!1})};
cra=function(a){return g.kf(a.i,function(b){return b.info.video?4===b.info.video.projectionType:!1})};
dra=function(a){return g.kf(a.i,function(b){return b.info.video?1===b.info.video.stereoLayout:!1})};
era=function(a){return lf(a.i,function(b){return b.info.video?b.HG():!0})};
Qz=function(a){return g.kf(a.i,function(b){return fA(b.j.i)})};
fra=function(a){return g.kf(a.i,function(b){return!(b.index instanceof SB)})};
QC=function(a,b){a.i[b.info.id]=b};
jra=function(a,b,c,d,e,f){var k=gra(a);if(d||e){c=new PC("",null==f?void 0:f.experiments,!0);a=g.q(a);for(d=a.next();!d.done;d=a.next()){var l=d.value;d=RC(l,b);f=SC(l.url,l.sp,l.s);k=Number(l.target_duration_sec)||5;l=Number(l.max_dvr_duration_sec)||14400;var m=Number(f.get("mindsq")||f.get("min_sq")||"0"),n=Number(f.get("maxdsq")||f.get("max_sq")||"0")||Infinity;c.Ee=c.Ee||m;c.zg=c.zg||n;var p=!qC(d.mimeType);f&&QC(c,new QB(f,d,{ej:k,Ik:p,Zl:l,Ee:m,zg:n,Nw:300,bf:e}))}c.u=!e;c.Af=!0;c.isManifestless=
!0;c.isLive=!e;c.bf=e;c.N=!!c.Ee&&!!c.zg&&isFinite(c.zg);b=c}else b=3===k?hra(a,b,c,null==f?void 0:f.experiments):ira(a,b,c,f);return b};
ira=function(a,b,c,d){c=void 0===c?0:c;var e=new PC("",null==d?void 0:d.experiments,!1);e.duration=c||0;g.uc(a,function(f){var k=RC(f,b,e.duration),l=wB(f.init),m=wB(f.index);(f=SC(f.url,f.sp,f.s))&&QC(e,new dC(f,k,l,m,null==d?void 0:d.tj))});
return e};
hra=function(a,b,c,d){c=void 0===c?0:c;var e=new PC("",d,!1);e.duration=c||0;g.uc(a,function(f){var k=RC(f,b,e.duration),l=SC(f.url,f.sp,f.s);if(l)if(3===k.streamType)QC(e,new RB(l,k,"sq/0"));else{var m=wB(f.init);f=wB(f.index);QC(e,new dC(l,k,m,f))}});
e.isOtf=!0;return e};
RC=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 k=(a.size||"640x360").split("x");k=new hC(+k[0],+k[1],+a.fps,+a.projection_type,+a.stereo_layout,void 0,a.quality_label,a.eotf,a.primaries);d=kra(d,k)}var l;if(/(opus|mp4a|dtse|ac-3|ec-3)/.test(d)){var m=new fC(+a.audio_sample_rate||void 0,+a.audio_channels||0,+a.spatial_audio_type);a.name&&(l=new rC(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 Nqa(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),r=Number(a.lmt);c=c&&p?p/c:0;if(b&&a.drm_families){var t={};for(var w=g.q(a.drm_families.split(",")),x=w.next();!x.done;x=w.next())x=x.value,t[x]=b[x]}return new lC(e,d,{audio:m,video:k,Fc:l,Kd:t,Ob:f,vv:c,contentLength:p,lastModified:r,captionTrack:n,streamType:+a.stream_type})};
gra=function(a){return Uo(a,function(b){return 3===+b.stream_type})?3:0};
lra=function(a,b){return a.timeline?kc(a.timeline.B,b):a.Y.length?kc(a.Y,b):[]};
SC=function(a,b,c){b=void 0===b?"":b;c=void 0===c?"":c;a=new g.bA(a,!0);a.set("alr","yes");c&&(c=upa(decodeURIComponent(c)),a.set(b,encodeURIComponent(c)));return a};
pra=function(a,b){var c=KB(b,"id");c=c.replace(":",";");var d=KB(b,"mimeType"),e=KB(b,"codecs");d=e?d+'; codecs="'+e+'"':d;e=Number(KB(b,"bandwidth"))/8;var f=Number(LB(b,"BaseURL").getAttribute(TC(a,"contentLength"))),k=a.duration&&f?f/a.duration:0;if(/(vp9|vp09|vp8|avc1|av01)/.test(d)){var l=Number(KB(b,"width"));var m=Number(KB(b,"height")),n=Number(KB(b,"frameRate")),p=mra(KB(b,TC(a,"projectionType")));a:switch(KB(b,TC(a,"stereoLayout"))){case "layout_left_right":var r=1;break a;case "layout_top_bottom":r=
2;break a;default:r=0}l=new hC(l,m,n,p,r)}if(/(opus|mp4a|dtse|ac-3|ec-3)/.test(d)){var t=Number(KB(b,"audioSamplingRate"));var w=Number(KB(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"));m=nra(KB(b,TC(a,"spatialAudioType")));t=new fC(t,w,m);a:{w=KB(b,"lang")||"und";if(m=LB(b,"Role"))if(p=KB(m,"value")||"",qf(ora,p)){m=w+"."+ora[p];n="main"===p;a=KB(b,TC(a,"langName"))||w+" - "+p;w=new rC(a,m,n);break a}w=void 0}}if(b=LB(b,"ContentProtection"))if("https://web.archive.org/web/20220130220643/http://youtube.com/drm/2012/10/10"===
b.getAttribute("schemeIdUri")){var x={};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&&(x[a]=m.trim()))}else x=void 0;return new lC(c,d,{audio:t,video:l,Fc:w,Kd:x,Ob:e,vv:k,contentLength:f})};
mra=function(a){switch(a){case "equirectangular":return 2;case "equirectangular_threed_top_bottom":return 3;case "mesh":return 4;case "rectangular":return 1;default:return 0}};
nra=function(a){switch(a){case "spatial_audio_type_ambisonics_5_1":return 1;case "spatial_audio_type_ambisonics_quad":return 2;case "spatial_audio_type_foa_with_non_diegetic":return 3;default:return 0}};
rra=function(a,b){b=void 0===b?"":b;a.state=1;a.ya=(0,g.R)();return Wqa(b||a.sourceUrl,{format:"RAW",method:"GET",withCredentials:a.withCredentials}).then(function(c){if(!a.isDisposed()){a.ea=c.status;c=c.responseText;var d=new DOMParser;c=Vk(d,xga(c)).getElementsByTagName("MPD")[0];a.W=1E3*nqa(KB(c,"minimumUpdatePeriod"))||Infinity;if(!a.Ia){b:{if(c.attributes){d=g.q(c.attributes);for(var e=d.next();!e.done;e=d.next())if(e=e.value,"https://web.archive.org/web/20220130220643/http://youtube.com/yt/2012/10/10"===e.value){d=e.name.split(":")[1];
break b}}d=""}a.Qa=d}a.isLive=Infinity>a.W&&a.isLivePlayback;a.La=Number(KB(c,TC(a,"earliestMediaSequence")))||0;if(d=Date.parse(oqa(KB(c,TC(a,"mpdResponseTime")))))a.va=(Date.now()-d)/1E3;a.isLive&&0>=c.getElementsByTagName("SegmentTimeline").length||g.qo(c.getElementsByTagName("Period"),a.VX,a);a.state=2;a.Z("loaded");qra(a)}return a}).yh(function(c){if(c instanceof Nt){var d=c.xhr;
a.ea=d.status}a.state=3;a.Z("loaderror");return qi(d)})};
sra=function(a,b,c){return rra(new PC(a,b,c),a)};
UC=function(a){return a.isLive&&(0,g.R)()-a.ya>=a.W};
qra=function(a){var b=a.W;isFinite(b)&&(UC(a)?a.refresh():(b=Math.max(0,a.ya+b-(0,g.R)()),a.B||(a.B=new g.K(a.refresh,b,a),g.J(a,a.B)),a.B.start(b)))};
tra=function(a){a=a.i;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.getLastSegmentNumber()+1}return 0};
VC=function(a){return a.C&&(a.j||a.Ha)?a.C-(a.j||a.timestampOffset):0};
WC=function(a){return a.I&&(a.j||a.Ha)?a.I-(a.j||a.timestampOffset):0};
XC=function(a){if(!isNaN(a.xa))return a.xa;var b=a.i,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.Ta&&(a.xa=b);return b}if(a.isLive&&(d=b[c],d.ej))return d.ej}return NaN};
ura=function(a,b){a=tf(a.i,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};
vra=function(a,b){g.ef(a.i,function(c){g.ef(b,function(d,e){var f=c.j;f.i.set(e,d);f.B.set(e,d);f.u&&f.u.set(e,d)})})};
wra=function(a,b){if(!a.i["0"]){var c=new lC("0","fakesb",{video:new hC(0,0,0,void 0,void 0,"auto")});a.i["0"]=b?new JB(new g.bA("https://web.archive.org/web/20220130220643/http://www.youtube.com/videoplayback"),c,"fake"):new dC(new g.bA("https://web.archive.org/web/20220130220643/http://www.youtube.com/videoplayback"),c,new vB(0,0),new vB(0,0))}};
YC=function(a,b,c){for(var d in a.i){var e=qC(a.i[d].info.mimeType)||a.i[d].info.isVideo();if(c===e){e=a.i[d].index;var f=OB(e,b);0<=f&&e.segments.splice(f,1)}}};
TC=function(a,b){return a.Ia?"yt:"+b:a.Qa+":"+b};
xra=function(a){a.I=0;a.C=0;a.J=0};
kra=function(a,b){null===ZC&&(ZC=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(Zqa&&window.MediaSource&&void 0!==MediaSource.isTypeSupported)return!ZC&&0<a.indexOf("vp09.00")?a='video/webm; codecs="vp9"':!ZC&&0<a.indexOf("vp09.02")&&(a='video/webm; codecs="vp9.2"'),a;if(!ZC&&!yra||'video/webm; codecs="vp9"'!==a&&'video/webm; codecs="vp9.2"'!==
a)return a;var c="00",d="08",e="01",f="01",k="01";'video/webm; codecs="vp9.2"'===a&&(c="02",d="10","bt2020"===b.primaries&&(k=e="09"),"smpte2084"===b.j&&(f="16"),"arib-std-b67"===b.j&&(f="18"));return'video/webm; codecs="'+["vp09",c,"51",d,"01",e,f,k,"00"].join(".")+'"'};
zra=function(){var a=g.jy("yt-player-volume")||{},b=a.volume;return{volume:isNaN(b)?100:g.Yg(Math.floor(b),0,100),muted:!!a.muted}};
Ara=function(a){g.iy("yt-player-bandwidth",a,2592E3)};
$C=function(a){a=void 0===a?2592E3:a;if(0<a&&!($na()>(0,g.R)()-1E3*a))return 0;a=g.jy("yt-player-quality");if("string"===typeof a){if(a=g.Kz[a],0<a)return a}else if(a instanceof Object)return a.quality;return 0};
Bra=function(){var a=g.jy("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};
Cra=function(){var a={values:{},pm:{}};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};
Dra=function(a,b){var c="";49<b?c="p60":32<b&&(c="p48");return a+c};
bD=function(a,b){return+aD()[Dra(a,b)]||8192};
aD=function(){return g.jy("yt-player-performance-cap")||{}};
Era=function(a){g.iy("yt-player-watch-later-pending",a)};
Fra=function(){return!!g.jy("yt-player-headers-readable")};
Gra=function(a,b){g.iy("yt-player-bandaid-host",{primary:a,secondary:b},864E3)};
Hra=function(a){g.iy("yt-player-playback-on-reload",a)};
Ira=function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(a){return 0}};
g.Jra=function(){var a=g.jy("yt-player-caption-language-preferences");return a?a:[]};
Kra=function(){this.Ab=this.i=this.Ha=this.J=this.I=this.va=this.ya=this.Wa=this.Ta=!1;this.Y=this.W=0;this.jb=!1;this.Ya=!0;this.fb=!1;this.j=0;this.B=!1;this.xb=Infinity;this.BD=!1;this.Hb=!0;this.Qa=this.La=!1;this.u={};this.wb=this.Ia=this.N=this.xa=!1;this.oe=0;this.kb=!1};
qpa=function(a){if(a.Wa)return["f"];var b="9h 9 h 8 (h ( H *".split(" ");a.B&&(b.unshift("1"),b.unshift("1h"));a.i&&b.unshift("h");a.ea&&(b=(Lra[a.ea]||[a.ea]).concat(b));return b};
opa=function(a){var b=["o","a","A"];1===a.oe&&(a.va&&(b=["m","M"].concat(b)),a.I&&(b=["mac3","MAC3"].concat(b)),a.J&&(b=["meac3","MEAC3"].concat(b)));a.Ta&&(b=["so","sa"].concat(b));!a.Ab||a.Ha||a.C||b.unshift("a");a.ya&&b.unshift("ah");a.C&&(b=(Lra[a.C]||[a.C]).concat(b));return b};
cD=function(a,b,c){b=void 0===b?{}:b;if(Vz(a.j,Wz.AV1_CODECS)&&Vz(a.j,Wz.HEIGHT)&&Vz(a.j,Wz.BITRATE))return b.isCapabilityUsable=1,8192;try{var d=Ira();if(d)return b.localPref=d}catch(k){}a=1080;2>=navigator.hardwareConcurrency&&(a=480);b.coreCount=navigator.hardwareConcurrency;xka()&&(b.isArm=1,a=240);if(c){var e,f;if(d=null==(e=c.videoInfos.find(function(k){return oC(k)}))?void 0:null==(f=e.j)?void 0:f.powerEfficient)a=8192,b.isEfficient=1;
c=c.videoInfos[0].video;e=Math.min(bD("1",c.fps),bD("1",30));b.perfCap=e;a=Math.min(a,e);c.isHdr()&&!d&&(b.hdr=1,a*=.75)}else c=bD("1",30),b.perfCap30=c,a=Math.min(a,c),c=bD("1",60),b.perfCap60=c,a=Math.min(a,c);return b.av1Threshold=a};
eD=function(a,b,c,d){this.flavor=a;this.keySystem=b;this.B=c;this.experiments=d;this.i={};this.j=this.keySystemAccess=null;this.I=this.J=-1;this.u=null;this.C="";this.N=!!d&&d.Xa("edge_nonprefixed_eme");this.C=d?g.dD(d,"html5_hdcp_probing_stream_url"):""};
gD=function(a){return a.N?!1:!a.keySystemAccess&&!!fD()&&"com.microsoft.playready"===a.keySystem};
hD=function(a){return"com.microsoft.playready"===a.keySystem};
iD=function(a){return!a.keySystemAccess&&!!fD()&&"com.apple.fps.1_0"===a.keySystem};
jD=function(a){return"com.youtube.fairplay"===a.keySystem};
g.kD=function(a){return"fairplay"===a.flavor};
fD=function(){var a=window,b=a.MSMediaKeys;iu()&&!b&&(b=a.WebKitMediaKeys);return b&&b.isTypeSupported?b:null};
mD=function(a){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.Uz&&!g.fu())return Ir("45");if(g.qw||g.Nc)return a.Xa("edge_nonprefixed_eme");if(g.Fz)return Ir("47");if(g.Sv){if(a.Xa("html5_enable_safari_fairplay"))return!1;if(a=g.lD(a,"html5_safari_desktop_eme_min_version"))return Ir(a)}return!0};
Mra=function(a,b,c,d){var e=gu(),f=(c=e||c&&iu())?["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.u(f),g.u(nD.playready)):[].concat(g.u(nD.playready),g.u(f))};
oD=function(a,b,c,d,e){d=void 0===d?!1:d;g.G.call(this);this.experiments=b;this.useCobaltWidevine=d;this.Ba=e;this.i=[];this.j={};this.B={};this.callback=null;this.C=!1;this.u=[];this.initialize(a,!c);this.ma()};
Ora=function(a,b){a.callback=b;a.u=[];mD(a.experiments)?pD(a):Nra(a)};
pD=function(a){if(!a.isDisposed())if(0===a.i.length)a.callback(a.u);else{var b=a.i[0],c=a.j[b],d=Pra(a,c);a.ma();navigator.requestMediaKeySystemAccess(b,d).then(pt(function(e){if(!a.isDisposed()){a.ma();c.keySystemAccess=e;if(hD(c)){e=tC();for(var f=g.q(Object.keys(a.B[c.flavor])),k=f.next();!k.done;k=f.next())k=k.value,c.i[k]=!!e.canPlayType(k)}else{e=c.keySystemAccess.getConfiguration();if(e.audioCapabilities)for(f=g.q(e.audioCapabilities),k=f.next();!k.done;k=f.next())Qra(a,c,k.value);if(e.videoCapabilities)for(e=
g.q(e.videoCapabilities),f=e.next();!f.done;f=e.next())Qra(a,c,f.value)}a.u.push(c);a.useCobaltWidevine?(a.i.shift(),pD(a)):a.callback(a.u)}}),pt(function(){a.ma();
a.C=!a.C&&"widevine"===a.j[a.i[0]].flavor;a.C||a.i.shift();pD(a)}))}};
Qra=function(a,b,c){a.L("log_robustness_for_drm")?b.i[c.contentType]=c.robustness||!0:b.i[c.contentType]=!0};
Pra=function(a,b){var c={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};hD(b)&&(c.initDataTypes=["keyids","cenc"]);for(var d=g.q(Object.keys(a.B[b.flavor])),e=d.next();!e.done;e=d.next()){e=e.value;var f=0===e.indexOf("audio/"),k=f?c.audioCapabilities:c.videoCapabilities;"widevine"!==b.flavor||a.C?k.push({contentType:e}):f?k.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}):(g.Uz&&du("windows nt")&&!a.L("html5_drm_enable_moho")||k.push({contentType:e,robustness:"HW_SECURE_ALL"}),
f=e,a.L("html5_enable_cobalt_experimental_vp9_decoder")&&e.includes("vp09")&&(f=e+"; experimental=allowed"),k.push({contentType:f,robustness:"SW_SECURE_DECODE"}),a.L("html5_query_sw_secure_crypto_for_android")&&(ou()||eu())&&(a.Ba("swcrypto",{}),k.push({contentType:e,robustness:"SW_SECURE_CRYPTO"})))}return[c]};
Nra=function(a){if(fD()&&g.Sv)a.ma(),a.u.push(new eD("fairplay","com.apple.fps.1_0","",a.experiments));else{var b=Rra(),c=g.Wb(a.i,function(d){var e=a.j[d],f=!1,k=!1,l;for(l in a.B[e.flavor])b(l,d)&&(e.i[l]=!0,f=f||0===l.indexOf("audio/"),k=k||0===l.indexOf("video/"));return f&&k});
c?(a.ma(),a.u.push(a.j[c])):a.ma();a.i=[]}a.callback(a.u)};
Rra=function(){var a=fD();if(a){var b=a.isTypeSupported;return function(d,e){return b(e,d)}}var c=tC();
return c&&(c.addKey||c.webkitAddKey)?function(d,e){return!!c.canPlayType(d,e)}:function(){return!1}};
Sra=function(){this.i=0};
Tra=function(a,b){this.experimentIds=a?a.split(","):[];this.flags=rt(b||"","&");var c={};g.uc(this.experimentIds,function(d){c[d]=!0});
this.experiments=c};
g.lD=function(a,b){return Number(a.flags[b])||0};
g.dD=function(a,b){return(a=a.flags[b])?a.toString():""};
qD=function(a,b,c){this.experiments=a;this.Y=b;this.ea=void 0===c?!1:c;this.I=!!g.Ja("cast.receiver.platform.canDisplayType");this.C={};this.N=!1;this.i=new Map;this.J=!0;this.B=!this.experiments.Xa("html5_disable_protected_hdr");this.j=!1;this.W=this.experiments.Xa("html5_disable_vp9_encrypted");a=g.Ja("cast.receiver.platform.getValue");this.u=!this.I&&a&&a("max-video-resolution-vpx")||null};
mpa=function(a,b,c){c=void 0===c?1:c;var d=b.Vb();if("0"===d)return!0;var e;if(a.experiments.Xa("html5_blocking_media_capabilities")&&(null==(e=b.j)?0:e.supported))return!0;e=b.mimeType;if(b.De()&&gu()&&a.experiments.Xa("html5_appletv_disable_vp9"))return"dwebm";if(oC(b)&&a.N)return"dav1";if(b.video&&(b.video.isHdr()||"bt2020"===b.video.primaries)&&!(Vz(a,Wz.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high)").matches||24<window.screen.pixelDepth&&window.matchMedia("(color-gamut: p3)").matches)))return"dhdr";
if("338"===d&&!(g.Uz?Ir(53):g.Fz&&Ir(64)))return"dopus";var f=c;f=void 0===f?1:f;c={};b.video&&(b.video.width&&(c[Wz.WIDTH.name]=b.video.width),b.video.height&&(c[Wz.HEIGHT.name]=b.video.height),b.video.fps&&(c[Wz.FRAMERATE.name]=b.video.fps*f),b.video.j&&(c[Wz.EOTF.name]=b.video.j),b.Ob&&(c[Wz.BITRATE.name]=8*b.Ob*f),"("===b.i&&(c[Wz.CRYPTOBLOCKFORMAT.name]="subsample"),2===b.video.projectionType||3===b.video.projectionType||4===b.video.projectionType)&&(c[Wz.DECODETOTEXTURE.name]="true");b.audio&&
b.audio.numChannels&&(c[Wz.CHANNELS.name]=b.audio.numChannels);a.j&&mC(b)&&(c[Wz.EXPERIMENTAL.name]="allowed");f=g.q(Object.keys(Wz));for(var k=f.next();!k.done;k=f.next()){k=Wz[k.value];var l;if(l=c[k.name])(l=k===Wz.EOTF&&0<b.mimeType.indexOf("vp09.02"))||(l=b,l=a.experiments.Xa("html5_ignore_h264_framerate_cap")&&k===Wz.FRAMERATE&&("H"===l.i||"h"===l.i)),l=!(l||k===Wz.DECODETOTEXTURE&&!a.experiments.Xa("html5_decode_to_texture_cap"));if(l)if(Vz(a,k))if(a.u){if(a.u[k.name]<c[k.name])return k.name}else e=
e+"; "+k.name+"="+c[k.name];else if(nC(b)&&k===Wz.EOTF)return"dvp92"}!a.experiments.Xa("disable_html5_cast_hdcp_filter2")&&a.I&&b.video&&1080<b.video.i&&b.Kd&&(e+="; hdcp=2.2");return"227"!==d||a.experiments.Xa("html5_enable_1080p_hq_cenc")?"585"!==d&&"588"!==d&&"583"!==d&&"586"!==d&&"584"!==d&&"587"!==d&&"591"!==d&&"592"!==d||a.experiments.Xa("html5_enable_new_hvc_enc")?a.isTypeSupported(e)?!0:"tpus":"newhvc":"hqcenc"};
rD=function(){var a=eu()&&!Ir(29),b=du("google tv")&&du("chrome")&&!Ir(30),c=gu();return a||b||c?!1:Tqa()};
Ura=function(a,b,c){var d=480;b=g.q(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,!(1080<e.video.i)&&mpa(a,e,c)){d=e.video.i;break}return d};
g.sD=function(a,b){b=void 0===b?!1:b;return rD()&&a.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!b&&a.canPlayType(tC(),"application/x-mpegURL")?!0:!1};
Vz=function(a,b){b.name in a.C||(a.C[b.name]=Vra(a,b));return a.C[b.name]};
Vra=function(a,b){if(a.u)return!!a.u[b.name];if(b===Wz.BITRATE&&a.experiments.Xa("html5_ignore_bad_bitrates")&&a.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!a.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(b===Wz.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)};
Wra=function(a,b){var c=0;a.i.has(b)&&(c=a.i.get(b).dT);a.i.set(b,{dT:c+1,GO:Math.pow(2,c+1)})};
tD=function(){g.tx.call(this);this.items={}};
uD=function(a){var b=[];if(a){a=g.q(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=g.q(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(";")};
g.vD=function(a,b,c){b=void 0===b?{}:b;this.errorCode=a;this.details=b;this.severity=void 0===c?0:c};
wD=function(a){return 1===a||2===a};
xD=function(a,b){b=void 0===b?0:b;if(a instanceof g.vD)return a;a=a&&a instanceof Error?a:Error(""+a);wD(b)?g.S(a):g.Rx(a);return new g.vD(1===b?"player.fatalexception":"player.exception",{name:""+a.name,message:""+a.message},b)};
yD=function(a,b,c,d){function e(k){var l=!(204!==k.status&&200!==k.status&&!k.response),m;k={succ:""+ +l,rc:k.status,lb:(null==(m=k.response)?void 0:m.byteLength)||0,rt:((0,g.R)()-f).toFixed(),shost:g.wj(a),trigger:b};c&&c(k);d&&!l&&d(new g.vD("pathprobe.net",k))}
var f=(0,g.R)();g.Mt(a,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:e,onTimeout:e})};
zD=function(a,b,c){g.G.call(this);this.experiments=a;this.B=b;this.C=c;this.u=[];this.i=g.jy("yt-player-bandaid-host")};
Xra=function(a){var b,c=null==(b=a.i)?void 0:b.primary;c&&g.Mt("https://"+c+"/initplayback?c="+a.C+"&owc=1",{timeout:5E3})};
Yra=function(a){Xra(a);var b=g.lD(a.experiments,"html5_onesie_prewarm_interval_ms"),c=g.lD(a.experiments,"html5_onesie_prewarm_max_lact_ms");b&&c&&(a.j=Ht(function(){a.B()<c&&Xra(a)},b))};
Zra=function(){var a,b,c,d,e;return g.B(function(f){if(1==f.i)return a={format:"RAW",timeout:5E3},g.A(f,Ot("https://web.archive.org/web/20220130220643/https://redirector.googlevideo.com/initplayback?alr=yes&id=%s",a),2);b=f.j;if(200!==b.xhr.status||!b.xhr.responseText)return f.return(null);c=b.xhr.responseText;d=/https:\/\/(.*\.googlevideo.com)/;e=c.match(d);return f.return(e?e[1]:null)})};
$ra=function(a,b,c,d){yD("https://"+b+"/videoplayback?probe=1",c,function(e){d.L("html5_onesie_host_racing")&&(d.tF||g.hr(d.BG));a.u.push(e)})};
asa=function(a){return a.replace(/(\d+)---/g,function(b,c){b=Number(c);return(1===b?2:b-1)+"---"})};
bsa=function(a){var b=a.u;a.u=[];return b};
csa=function(a,b){this.encryptedClientKey=b;this.i=new Uint8Array(a.buffer,0,16);this.j=new Uint8Array(a.buffer,16)};
AD=function(a){try{return Oc(a)}catch(b){return null}};
dsa=function(a,b){if(!b&&a)try{b=JSON.parse(a)}catch(e){}if(b){a=b.clientKey?AD(b.clientKey):null;var c=b.encryptedClientKey?AD(b.encryptedClientKey):null,d=b.keyExpiresInSeconds?1E3*Number(b.keyExpiresInSeconds)+(0,g.R)():null;a&&c&&d&&(this.i=new csa(a,c));b.onesieUstreamerConfig&&(this.onesieUstreamerConfig=AD(b.onesieUstreamerConfig)||void 0);this.baseUrl=b.baseUrl}};
BD=function(a){this.i=this.j=0;this.alpha=Math.exp(Math.log(.5)/a)};
CD=function(a,b,c,d){c=void 0===c?.5:c;d=void 0===d?0:d;this.resolution=b;this.valueIndex=0;this.j=!1;this.B=!0;this.i=Math.round(a*this.resolution);this.values=Array(this.i);for(a=0;a<this.i;a++)this.values[a]=Infinity;this.I=esa(this);this.u=c;this.C=d};
esa=function(a){for(var b=Array(a.i),c=0;c<a.i;c++)b[c]=c;return b};
DD=function(a,b){if(!a.j&&0===a.valueIndex)return 0;a.B&&(g.qc(a.I,function(c,d){return a.values[c]-a.values[d]}),a.B=!1);
return a.values[a.I[Math.round(b*((a.j?a.i:a.valueIndex)-1))]]||0};
fsa=function(a){var b=new Sra;this.policy=a;this.va=b;this.Y=this.ea=0;this.C=-1;this.W=!1;this.N=this.B=ED();this.J=new CD(4,1,.6,.4);this.i=new CD(10,1,.5,.4);this.u=a.i?new BD(a.j):new CD(a.j,20,.5,.4);this.I=new CD(5,1,.25);this.j=new CD(30,1,.5);a=g.jy("yt-player-bandwidth")||{};b=this.policy.u;0<a.byterate&&(b=a.byterate,this.W=!0);this.u.Qg(this.policy.C,b);0<a.delay&&this.J.Qg(1,Math.min(a.delay,2));0<a.stall&&this.i.Qg(1,a.stall);0<a.init&&(this.N=Math.min(a.init,this.N));this.C=ED()};
FD=function(a){a=a.J.vg();a=isNaN(a)?.5:a;return a=Math.min(a,5)};
gsa=function(a,b,c){isNaN(c)||(a.Y+=c);isNaN(b)||(a.ea+=b)};
GD=function(a){a=a.u.vg();return 0<a?a:1};
HD=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?1048576:c;var d=GD(a);d=1/((a.i.vg()||0)+1/d);var e=a.I.vg();d=Math.max(d,0<e?e:1);if(!b)return d;b=1E-9+FD(a);c=d*Math.min(1,c/(d*b));a.policy.B||(a=((DD(a.j,.98)||0)-1)/2,a=Math.max(0,Math.min(1,a)),c*=1-.5*a);return c};
ID=function(a){return{delay:FD(a),stall:a.i.vg()||0,byterate:GD(a),init:a.N}};
JD=function(a){-1<a.C&&3E4<ED()-a.C&&(Ara(ID(a)),a.C=ED(),a.W=!0)};
hsa=function(a){return 4E3<=ED()-a.B};
isa=function(){this.j=17;this.u=13E4;this.C=.5;this.B=this.i=!1};
jsa=function(a,b,c){var d=new isa;a&&(d.i=!0,d.C=.1);c.Xa("html5_pctile_bandwidth_estimator")&&(d.i=!1);b&&(d.u=b/8);d.B=480<=$C();return d};
lsa=function(a,b){a=void 0===a?{}:a;b=void 0===b?{}:b;g.G.call(this);var c=this;this.values=a;this.pm=b;this.j={};this.u=this.i=0;this.B=new g.K(function(){ksa(c)},1E4);
g.J(this,this.B)};
KD=function(a,b){msa(a,b);return a.values[b]&&a.pm[b]?a.values[b]/Math.pow(2,a.i/a.pm[b]):0};
msa=function(a,b){a.values[b]||(b=Cra(),a.values=b.values||{},a.pm=b.halfLives||{},a.j=b.values?Object.assign({},b.values):{})};
ksa=function(a){var b=Cra();if(b.values){b=b.values;for(var c={},d=g.q(Object.keys(a.values)),e=d.next();!e.done;e=d.next())e=e.value,b[e]&&a.j[e]&&(a.values[e]+=b[e]-a.j[e]),c[e]=KD(a,e);a.j=c}b=a.pm;c={};c.values=a.j;c.halfLives=b;g.iy("yt-player-memory",c,2592E3)};
LD=function(a,b){return void 0===b||null===b?a:"1"===b||!0===b||1===b||"True"===b?!0:!1};
MD=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a};
ND=function(a,b){return void 0===b||null===b?a:Number(b)};
OD=function(a,b){return void 0===b||null===b?a:b.toString()};
nsa=function(a){if(!a)return null;var b=a.split("x");if(2!==b.length)return null;a=Number(b[0]);b=Number(b[1]);return isNaN(a)||isNaN(b)||0>=a*b?null:new g.dh(a,b)};
PD=function(a,b){if(b){if("fullwidth"===a)return Infinity;if("fullheight"===a)return 0}return a&&(b=a.match(osa))&&(a=Number(b[2]),b=Number(b[1]),!isNaN(a)&&!isNaN(b)&&0<a)?b/a:NaN};
QD=function(a){var b=a.docid||a.video_id||a.videoId||a.id;if(b)return b;b=a.raw_player_response;b||g.Q("parse_video_id_from_serialized_player_response_killswitch")||(a=a.player_response)&&(b=JSON.parse(a));return b&&b.videoDetails&&b.videoDetails.videoId||null};
mE=function(a,b,c){g.G.call(this);this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.Sf=this.lc=this.ya=this.Rf=this.userDisplayName=this.userDisplayImage=this.hh="";this.deviceParams={};this.controlsType="0";this.Ie=NaN;this.Sb=!1;this.Qa=(0,g.R)();this.Ya=0;this.Ui=this.lk=!1;this.gk=!0;this.Li=this.Mc=!1;this.tj=null;this.fd=!1;this.N=0;a=a?g.yf(a):{};b&&b.csiPageType&&(this.csiPageType=b.csiPageType);b&&b.csiServiceName&&(this.csiServiceName=b.csiServiceName);this.experiments=new Tra(b?
b.serializedExperimentIds:a.fexp,b?b.serializedExperimentFlags:a.fflags);this.jb=b?b.serializedForcedExperimentIds:OD("",a.forced_experiments)||void 0;this.cspNonce=(null==b?0:b.cspNonce)&&!this.L("fill_csp_nonce_from_wpcc_killswitch")?b.cspNonce:OD("",a.csp_nonce);this.L("web_player_deprecated_uvr_killswitch");try{var d=document.location.toString()}catch(z){d=""}this.pc=d;this.ancestorOrigins=(d=window.location.ancestorOrigins)?Array.from(d):[];d=!this.L("web_player_context_config_embeds_fields_killswitch");
this.i=LD(!1,b&&d?b.isEmbed:a.is_embed);b&&b.device?psa(this,b.device):(this.deviceParams.c=a.c||"web",this.deviceParams.cver=a.cver||"html5",this.deviceParams.cplayer="UNIPLAYER");b&&!this.L("wpcc_loader_url_killswitch")?this.loaderUrl=this.i||RD(this)&&b.loaderUrl?b.loaderUrl||"":this.pc:this.loaderUrl=this.i||RD(this)&&a.loaderUrl?OD("",a.loaderUrl):this.pc;this.L("embeds_js_api_set_1p_cookie")&&(this.embedsTokenValue=OD("",a.embedsTokenValue));this.u=Fy(this.loaderUrl,qsa);this.Dk=zoa(this.loaderUrl);
this.La=LD(!1,a.privembed);this.protocol=0===this.pc.indexOf("http:")?"http":"https";this.Ha=Gy((b?b.customBaseYoutubeUrl:a.BASE_YT_URL)||"")||Gy(this.pc)||this.protocol+"://www.youtube.com/";this.xa=rsa(this,b?b.eventLabel:a.el);Pka();var e=null,f=b?b.playerStyle:a.ps,k=g.$b(ssa,f);!f||k&&!this.u||(e=f);this.playerStyle=e;this.J=(this.B=g.$b(ssa,this.playerStyle))&&"play"!==this.playerStyle&&"jamboard"!==this.playerStyle;this.Ck=!this.J;this.ea=LD(!1,a.disableplaybackui);this.disablePaidContentOverlay=
LD(!1,null==b?void 0:b.disablePaidContentOverlay);this.disableSeek=LD(!1,null==b?void 0:b.disableSeek);this.qc=this.L("variable_playback_rate")?!0:tC().defaultPlaybackRate?SD||g.nu||TD?g.Fz&&Ir("20")||g.Uz&&Ir("4")||g.UD&&Ir("11")||ju():!(g.UD&&!du("chrome")||SD||du("android")||du("silk")):!1;this.vk=LD(!1,a.enable_faster_speeds);this.isMobile=LD("blazer"===this.playerStyle,a.is_html5_mobile_device||b&&b.isMobileDevice);this.Bk=tsa(this);this.Y=yC();this.Ml=g.VD;this.Vi=LD(!1,b&&d?b.embedOptOutDeprecation:
a.opt_out_deprecation);this.pfpChazalUi=(this.Og=!(!b||!b.embedsEnablePfpImaIntegration||this.L("embeds_pfp_ima_integration_killswitch")))||LD(!1,(b&&d?b.pfpChazalUi:a.pfp_chazal_ui)&&!this.L("embeds_pfp_chazal_ui_killswitch"));var l;b?void 0!==b.hideInfo&&(l=!b.hideInfo):l=a.showinfo;this.pj=g.WD(this)&&!this.Vi||LD(!XD(this)&&!YD(this)&&!this.B,l);this.Xi=b?!!b.mobileIphoneSupportsInlinePlayback:LD(!1,a.playsinline);l=this.isMobile&&ZD&&null!=$D&&0<$D&&2.3>=$D;e=b?b.useNativeControls:a.use_native_controls;
this.C=(this.L("embeds_enable_mobile_custom_controls")||!1===e&&!this.L("embeds_use_native_controls_killswitch"))&&g.WD(this)&&this.isMobile;f=this.isMobile&&!this.C;e=aE(this)||!l&&LD(f,e)?"3":"1";f=b?b.controlsType:a.controls;this.controlsType="0"!==f&&0!==f?e:"0";this.ye=this.isMobile;this.color=MD("red",b&&d?b.progressBarColor:a.color,usa);this.Kl="3"===this.controlsType||LD(!1,b&&d?b.embedsShowModestBranding:a.modestbranding)&&"red"===this.color;this.xb=!this.i;this.rj=(e=!this.xb&&!YD(this)&&
!this.J&&!this.B&&!XD(this))&&!this.Kl&&"1"===this.controlsType;this.Qb=g.bE(this)&&e&&"0"===this.controlsType&&!this.rj;this.Pl=this.Ll=l;this.Ab=("3"===this.controlsType||this.isMobile||LD(!1,a.use_media_volume))&&!this.C;this.hk=cE&&!g.Ec(601)?!1:!0;this.Ak=this.i||!1;this.qd=YD(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128);this.widgetReferrer=OD("",b&&d?b.widgetReferrer:a.widget_referrer);var m;b&&d?b.disableCastApi&&(m=!1):m=a.enablecastapi;m=!this.u||LD(!0,m);l=!0;b&&
b.disableMdxCast&&(l=!1);this.fb=this.L("enable_cast_for_web_unplugged")&&g.dE(this)&&l||this.L("enable_cast_on_music_web")&&g.eE(this)&&l||m&&l&&"1"===this.controlsType&&!this.isMobile&&(YD(this)||g.bE(this)||g.fE(this))&&!g.gE(this);this.Ol=wC()||xC();m=b?!!b.supportsAutoplayOverride:LD(!1,a.autoplayoverride);this.dh=!this.isMobile&&!du("nintendo wiiu")&&!du("nintendo 3ds")||m;m=b?!!b.enableMutedAutoplay:LD(!1,a.mutedautoplay);l=this.L("embeds_enable_muted_autoplay")&&g.WD(this);this.oe=m&&l&&this.Y&&
!aE(this);m=(YD(this)||XD(this))&&"blazer"===this.playerStyle;this.Sg=b?!!b.disableFullscreen:!LD(!0,a.fs);this.Wa=!this.Sg&&(m||g.mx());this.Gi=this.L("uniplayer_block_pip")&&(eu()&&Ir(58)&&!ou()||lu);m=g.WD(this)&&!this.Vi;var n;b?void 0!==b.disableRelatedVideos&&(n=!b.disableRelatedVideos):n=a.rel;this.Jb=m||LD(!this.B,n);this.jj=LD(!1,b&&d?b.enableContentOwnerRelatedVideos:a.co_rel);this.I=ou()&&0<$D&&4.4>=$D?"_top":"_blank";this.me=g.fE(this);this.Zg=LD("blazer"===this.playerStyle,b?b.enableCsiLogging:
a.enablecsi);switch(this.playerStyle){case "blogger":n="bl";break;case "gmail":n="gm";break;case "books":n="gb";break;case "docs":n="gd";break;case "duo":n="gu";break;case "google-live":n="gl";break;case "google-one":n="go";break;case "play":n="gp";break;case "chat":n="hc";break;case "hangouts-meet":n="hm";break;case "photos-edu":case "picasaweb":n="pw";break;default:n="yt"}this.va=n;this.authUser=OD("",b&&d?b.authorizedUserIndex:a.authuser);this.cd=g.WD(this)&&(this.La||this.L("embeds_web_enable_hiding_login_buttons")&&
(!tka()||ou()||mu())||this.L("embeds_web_enable_always_hiding_login_buttons"));var p;b?void 0!==b.disableWatchLater&&(p=!b.disableWatchLater):p=a.showwatchlater;this.nk=((n=!this.cd)||!!this.authUser&&n)&&LD(!this.J,this.u?p:void 0);this.Ng=b?b.isMobileDevice||!!b.disableKeyboardControls:LD(!1,a.disablekb);this.loop=LD(!1,a.loop);this.pageId=OD("",!this.L("wpcc_pageid_killswitch")&&b?b.initialDelegatedSessionId:a.pageid);this.Nl=LD(!0,a.canplaylive);this.wb=LD(!1,a.livemonitor);this.disableSharing=
LD(this.B,b?b.disableSharing:a.ss);this.jk=nsa(b&&this.L("fill_video_container_size_override_from_wpcc")?b.videoContainerOverride:a.video_container_override);this.mute=b?!!b.startMuted:LD(!1,a.mute);this.storeUserVolume=!this.mute&&LD("0"!==this.controlsType,b&&!this.L("store_user_volume_override_from_wpcc_killswitch_2")?b.storeUserVolume:a.store_user_volume);p=b?b.annotationsLoadPolicy:a.iv_load_policy;this.annotationsLoadPolicy="3"===this.controlsType?3:MD(void 0,p,hE);this.captionsLanguagePreference=
b?b.captionsLanguagePreference||"":OD("",a.cc_lang_pref);p=MD(2,b&&d?b.captionsLanguageLoadPolicy:a.cc_load_policy,hE);"3"===this.controlsType&&2===p&&(p=3);this.Ta=p;this.Pe=b?b.hl||"en_US":OD("en_US",a.hl);this.region=b?b.contentRegion||"US":OD("US",a.cr);this.hostLanguage=b?b.hostLanguage||"en":OD("en",a.host_language);this.qk=!this.La&&Math.random()<g.lD(this.experiments,"web_player_api_logging_fraction");this.Ia=!this.La;this.enabledEngageTypes=new Set;this.deviceHasDisplay=b?!b.deviceIsAudioOnly:
LD(!0,a.deviceHasDisplay);this.Ie=ND(this.Ie,a.ismb);this.sj=vsa(this,a);iE(this,a,!0);this.W=new tD;g.J(this,this.W);this.Yg=wsa(this,a,b);this.gj=null!=window.WebKitPlaybackTargetAvailabilityEvent;this.j=new qD(this.experiments,this.L("html5_force_hfr_support")?!0:jE(this)||hu()||yka()||xsa(this),g.Uz&&g.Ec(56)||g.Fz&&g.Ec(54)||xsa(this));this.schedule=new fsa(jsa(g.kE(this),this.Ie,this.experiments));var r;this.enableSafetyMode=null!=(r=null==b?void 0:b.initialEnableSafetyMode)?r:LD(!1,a.enable_safety_mode);
r=this.ea?!1:YD(this)&&"blazer"!==this.playerStyle;var t;b&&d?null!=b.disableAutonav&&(t=!b.disableAutonav):t=a.allow_autonav;this.hc=LD(r,!this.J&&t);this.sendVisitorIdHeader=b?!!b.sendVisitorIdHeader:LD(!1,a.send_visitor_id_header);var w;"docs"===this.playerStyle&&(b&&d?w=b.disableNativeContextMenu:w=a.disable_native_context_menu);this.disableNativeContextMenu=LD(!1,w);this.wk=jE(this)&&this.L("enable_skip_intro_button");this.embedConfig=OD("",b&&d?b.serializedEmbedConfig:a.embed_config);this.fd=
"pfl"===ysa(a);this.kb=LD(!1,a.full_window);this.Hb=!g.dE(this)&&!lE(this)&&!g.gE(this)&&!0;var x;this.livingRoomAppMode=MD("LIVING_ROOM_APP_MODE_UNSPECIFIED",b?null==(x=b.device)?void 0:x.livingRoomAppMode:a.living_room_app_mode,zsa);this.transparentBackground=b?!!b.transparentBackground:LD(!1,a.transparent_background);this.showMiniplayerButton=b?!!b.showMiniplayerButton:LD(!1,a.show_miniplayer_button);this.externalFullscreen=b?!!b.externalFullscreen:LD(!1,a.external_fullscreen);this.showMiniplayerUiWhenMinimized=
b?!!b.showMiniplayerUiWhenMinimized:LD(!1,a.use_miniplayer_ui);this.showInlinePreviewUi=b?!!b.showInlinePreviewUi:!1;this.showBackButton=LD(!1,a.showbackbutton);var y;this.gk=null!=(y=a.show_loop_video_toggle)?y:!0;this.Fk=1E-4>Math.random();this.Ed=a.onesie_hot_config||(null==b?0:b.onesieHotConfig)?new dsa(a.onesie_hot_config,null==b?void 0:b.onesieHotConfig):void 0;this.isTectonic=b&&!this.L("fill_is_tectonic_from_wpcc_killswitch")?!!b.isTectonic:!!a.isTectonic;this.playerCanaryState=c;this.wc=
new lsa;g.J(this,this.wc);this.Li=LD(!1,a.force_gvi);this.datasyncId=(null==b?void 0:b.datasyncId)||g.P("DATASYNC_ID",void 0);this.Ek=g.P("LOGGED_IN",!1);this.pk=(null==b?void 0:b.allowWoffleManagement)||!1;this.embedsRct=OD("",b?b.embedsRct:a.rct);this.Fi=0;this.livingRoomPoTokenId=null==b?void 0:b.livingRoomPoTokenId;if(this.L("html5_onesie")||this.L("html5_host_selector"))this.Qh=new zD(this.experiments,function(){return Ou()},this.deviceParams.c),g.J(this,this.Qh);
this.L("html5_high_res_logging")?this.N=2:1>4096*Math.random()&&(this.N=1)};
iE=function(a,b,c){c=void 0===c?!1:c;a.lc=OD(a.lc,b.video_id);a.ya=OD(a.ya,b.eventid);a.ya&&(Cx=a.ya);for(var d=[],e=g.q(Object.keys(Asa)),f=e.next();!f.done;f=e.next()){f=Asa[f.value];var k=b[f];null!=k&&(k!==a.deviceParams[f]&&d.push(f),a.deviceParams[f]=k)}!c&&0<d.length&&a.Fk&&(d.sort(),g.Rx(new g.Kv("Player client parameters changed after startup",d)));a.userAge=ND(a.userAge,b.user_age);a.hh=OD(a.hh,b.user_display_email);a.userDisplayImage=OD(a.userDisplayImage,b.user_display_image);g.Iy(a.userDisplayImage)||
(a.userDisplayImage="");a.userDisplayName=OD(a.userDisplayName,b.user_display_name);a.Rf=OD(a.Rf,b.user_gender);a.csiPageType=OD(a.csiPageType,b.csi_page_type);a.csiServiceName=OD(a.csiServiceName,b.csi_service_name);a.Zg=LD(a.Zg,b.enablecsi);a.pageId=OD(a.pageId,b.pageid);if(c=b.enabled_engage_types)a.enabledEngageTypes=new Set(c.split(","));b.living_room_session_po_token&&(a.Md=b.living_room_session_po_token.toString())};
rsa=function(a,b){var c="detailpage";"adunit"===b?c=a.i?"embedded":"detailpage":"embedded"===b||a.u?c=MD(c,b,Bsa):b&&(c="embedded");return c};
wsa=function(a,b,c){var d=c?c.innertubeApiKey:OD("",b.innertube_api_key),e=c?c.innertubeApiVersion:OD("",b.innertube_api_version);b=c?c.innertubeContextClientVersion:OD("",b.innertube_context_client_version);d=g.P("INNERTUBE_API_KEY",void 0)||d;e=g.P("INNERTUBE_API_VERSION",void 0)||e;c=g.P("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO");var f=a.deviceParams.c;var k="number"===typeof a.deviceParams.c?Number(a.deviceParams.c):Object.keys(Csa).indexOf(a.deviceParams.c);return{innertubeApiKey:d,innertubeApiVersion:e,
eA:c,fA:f,YL:k,innertubeContextClientVersion:g.P("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0)||b,pF:a.hostLanguage,oF:a.region,ZL:g.P("INNERTUBE_HOST_OVERRIDE",void 0)||"",bM:!!g.P("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),qF:!!g.P("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1)}};
nE=function(a,b){return!a.B&&eu()&&Ir(55)&&"3"===a.controlsType&&!b};
g.oE=function(a){a=Dsa(a.Ha);return"www.youtube-nocookie.com"===a?"www.youtube.com":a};
g.pE=function(a){return g.gE(a)?"music.youtube.com":g.oE(a)};
qE=function(a,b,c){return a.protocol+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")};
rE=function(a){return YD(a)&&!g.dE(a)};
aE=function(a){return cE&&!a.Xi||du("nintendo wiiu")||du("nintendo 3ds")?!0:!1};
g.gE=function(a){return"music-embed"===a.playerStyle};
g.kE=function(a){return/^TVHTML5/.test(a.deviceParams.c)?!0:"TV"===a.deviceParams.cplatform};
Esa=function(a){return"TVHTML5"===a.deviceParams.c&&a.deviceParams.cver.startsWith("7")};
RD=function(a){return"TVHTML5_SIMPLY_EMBEDDED_PLAYER"===a.deviceParams.c};
xsa=function(a){return"CHROMECAST ULTRA/STEAK"===a.deviceParams.cmodel||"CHROMECAST/STEAK"===a.deviceParams.cmodel};
g.sE=function(){return 1<window.devicePixelRatio?window.devicePixelRatio:1};
jE=function(a){return"web"===a.deviceParams.c.toLowerCase().substr(0,3)};
g.tE=function(a){return"WEB"===a.deviceParams.c.toUpperCase()};
lE=function(a){return"WEB_KIDS"===a.deviceParams.c};
g.dE=function(a){return"WEB_UNPLUGGED"===a.deviceParams.c};
uE=function(a){return"TVHTML5_UNPLUGGED"===a.deviceParams.c};
g.vE=function(a){return g.dE(a)||"TV_UNPLUGGED_CAST"===a.deviceParams.c||uE(a)};
g.eE=function(a){return"WEB_REMIX"===a.deviceParams.c};
g.wE=function(a){return"WEB_EMBEDDED_PLAYER"===a.deviceParams.c};
g.xE=function(a){return!a.L("web_player_i_see_captions_killswitch")&&g.tE(a)};
yE=function(a){return a.L("web_player_enable_hybrid_controls_on_touch_screen")&&window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches&&g.tE(a)};
Fsa=function(a){return!a.L("web_player_larger_tap_buttons_killswitch")&&g.tE(a)&&!g.bE(a)};
tsa=function(a){if(a.isMobile)return!a.B;var b=Number(Date.now()/1E3),c=g.vv.getInstance();return a.L("block_desktop_background_playback_with_mobile_cookie")&&c&&b>Number(c.get("dhmu",b.toString()))};
g.AE=function(a){return(a.deviceHasDisplay&&g.Uz&&!lu&&"3"!==a.controlsType?g.nu?a.i&&g.Ec(51):!0:!1)||(a.deviceHasDisplay&&g.Fz&&!lu&&"3"!==a.controlsType?g.nu?a.i&&g.Ec(48):g.Ec(38):!1)||(a.deviceHasDisplay&&g.UD&&!lu&&"3"!==a.controlsType?g.nu?a.i&&g.Ec(37):g.Ec(27):!1)||a.deviceHasDisplay&&g.zE&&!ku()&&g.Ec(11)||a.deviceHasDisplay&&g.Sv&&g.Ec("604.4")};
Gsa=function(a){if(g.bE(a)&&ZD)return!1;if(g.Fz){if(!g.Ec(47)||!g.Ec(52)&&g.Ec(51))return!1}else if(g.Sv)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1};
YD=function(a){return"detailpage"===a.xa};
g.bE=function(a){return"embedded"===a.xa};
BE=function(a){return"leanback"===a.xa};
XD=function(a){return"adunit"===a.xa||"gvn"===a.playerStyle};
g.fE=function(a){return"profilepage"===a.xa};
g.WD=function(a){return a.i&&g.bE(a)&&!XD(a)&&!a.B};
ysa=function(a){var b=a.raw_embedded_player_response;b||(a=a.embedded_player_response)&&(b=JSON.parse(a));return b&&(b=b.embedPreview)?b.thumbnailPreviewRenderer.embedMode||"":""};
vsa=function(a,b){if(g.dD(a.experiments,"html5_qoe_intercept"))return g.dD(a.experiments,"html5_qoe_intercept");a.Ck?(b=b.vss_host||"s.youtube.com",a.L("www_for_videostats")&&"s.youtube.com"===b&&(b=Dsa(a.Ha)||"www.youtube.com")):b="video.google.com";return b};
CE=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.Rx(new g.Kv("Profile image not a FIFE URL.",a.userDisplayImage));return a.userDisplayImage};
g.DE=function(a){var b=g.pE(a);!a.L("yt_embeds_disable_new_error_lozenge_url")&&Hsa.includes(b)&&(b="www.youtube.com");return a.protocol+"://"+b};
psa=function(a,b){b.brand&&(a.deviceParams.cbrand=b.brand);b.browser&&(a.deviceParams.cbr=b.browser);b.browserVersion&&(a.deviceParams.cbrver=b.browserVersion);a.deviceParams.c=b.interfaceName||"WEB";a.deviceParams.cver=b.interfaceVersion||"html5";b.interfaceTheme&&(a.deviceParams.ctheme=b.interfaceTheme);a.deviceParams.cplayer=b.interfacePlayerType||"UNIPLAYER";b.model&&(a.deviceParams.cmodel=b.model);b.network&&(a.deviceParams.cnetwork=b.network);b.os&&(a.deviceParams.cos=b.os);b.osVersion&&(a.deviceParams.cosver=
b.osVersion);b.platform&&(a.deviceParams.cplatform=b.platform)};
EE=function(a){return 1<=a.N};
Dsa=function(a){var b=g.wj(a);return(a=Number(g.vj(4,a))||null)?b+":"+a:b};
FE=function(a){this.i=a};
GE=function(a,b,c){if(c)return Rt();var d={};c=tC();b=g.q(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,a.canPlayType(c,e.vf().mimeType)){var f=e.i.video.quality;if(!d[f]||d[f].vf().De())d[f]=e}var k=[];d.auto&&k.push(d.auto);g.uc(iC,function(l){(l=d[l])&&k.push(l)});
return k.length?St(k):Rt()};
Isa=function(a,b,c,d,e){this.u=a;this.j=b;this.C=c;this.cpn=d;this.I=e;this.B=0;this.i=""};
Jsa=function(a,b){a.u.some(function(c){var d;return(null==(d=c.Fc)?void 0:d.getId())===b});
a.i=b};
HE=function(a,b,c){a.cpn&&(b=g.Hj(b,{cpn:a.cpn}));c&&(b=g.Hj(b,{xfa:c}));return b};
Ksa=function(a,b){a=a.itag.toString();null!==b&&(a+=b.itag.toString());return a};
Lsa=function(a){for(var b=[],c=[],d=g.q(a.j),e=d.next();!e.done;e=d.next())e=e.value,e.bitrate<=a.B?b.push(e):c.push(e);b.sort(function(f,k){return k.bitrate-f.bitrate});
c.sort(function(f,k){return f.bitrate-k.bitrate});
a.j=b.concat(c)};
Msa=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.j=(null==(b=a.audioItag)?void 0:b.split(","))||[];this.Bu=a.Bu;this.Kd=a.Kd||"";this.Fc=a.Fc;this.audioChannels=a.audioChannels;this.i=""};
Nsa=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.q(a);for(var f=a.next();!f.done;f=a.next()){f=f.value;if(b&&MediaSource&&MediaSource.isTypeSupported){var k=f.type;f.audio_channels&&(k=k+"; channels="+f.audio_channels);if(!MediaSource.isTypeSupported(k)){d[f.itag]="tpus";continue}}if(c||!f.drm_families||"smpte2084"!==f.eotf&&"arib-std-b67"!==f.eotf){k=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&&(k=new rC(f.name,f.audio_track_id,!!f.is_default));var n=f.eotf;f=new Msa({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,Bu:n?l[n]:void 0,Kd:f.drm_families,Fc:k,audioChannels:Number(f.audio_channels)});e[f.itag]=e[f.itag]||[];e[f.itag].push(f)}else d[f.itag]="enchdr"}return e};
IE=function(a,b,c){this.i=a;this.u=b;this.expiration=c;this.j=null};
Osa=function(a,b){if(!(lu||iu()||gu()))return null;a=Nsa(b,a.L("html5_filter_fmp4_in_hls"));if(!a)return null;b=[];for(var c={},d=g.q(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=g.q(a[e.value]);for(var f=e.next();!f.done;f=e.next()){var k=f.value;k.Fc&&(f=k.Fc.getId(),c[f]||(k=new Iz(f,k.Fc),c[f]=k,b.push(k)))}}return 0<b.length?b:null};
Tsa=function(a,b,c,d,e,f,k){if(!(lu||iu()||gu()))return Rt();var l={},m=Psa(c),n=Nsa(c,a.L("html5_filter_fmp4_in_hls"),a.j.B,l);if(!n)return k({noplst:1}),Rt();Qsa(n);c={};var p=(c.fairplay="https://web.archive.org/web/20220130220643/https://youtube.com/api/drm/fps?ek=uninitialized",c),r;c=[];var t=[],w=[],x=null,y="";d=d&&d.match(/hls_timedtext_playlist/)?new Msa({itag:"0",url:d,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,Fc:new rC("English","en",!1)}):null;for(var z=g.q(Object.keys(n)),F=z.next();!F.done;F=z.next())if(F=F.value,!a.L("html5_disable_drm_hfr_1080")||
"383"!==F&&"373"!==F){F=g.q(n[F]);for(var I=F.next();!I.done;I=F.next())if(I=I.value,I.width){for(var H=g.q(I.j),O=H.next();!O.done;O=H.next())if(O=O.value,n[O]){I.i=O;break}I.i||(I.i=Rsa(n,I));if(H=n[I.i])if(c.push(I),"fairplay"===I.Kd&&(r=p),O="","PQ"===I.Bu?O="smpte2084":"HLG"===I.Bu&&(O="arib-std-b67"),O&&(y=O),w.push(Ssa(H,[I],d,f,I.itag,I.width,I.height,I.fps,m,void 0,void 0,r,O)),!x||I.width*I.height*I.fps>x.width*x.height*x.fps)x=I}else t.push(I)}else l[F]="disdrmhfr";w.reduce(function(ma,
N){return N.vf().isEncrypted()&&ma},!0)&&(r=p);
e=Math.max(e,0);p=x||{};n=void 0===p.fps?0:p.fps;x=void 0===p.width?0:p.width;p=void 0===p.height?0:p.height;z=a.L("html5_native_audio_track_switching");w.push(Ssa(t,c,d,f,"93",x,p,n,m,"auto",e,r,y,z));Object.entries(l).length&&k(l);return GE(a.j,w,nE(a,b))};
Ssa=function(a,b,c,d,e,f,k,l,m,n,p,r,t,w){for(var x=0,y="",z=g.q(a),F=z.next();!F.done;F=z.next())F=F.value,y||(y=F.itag),F.audioChannels&&F.audioChannels>x&&(x=F.audioChannels,y=F.itag);e=new lC(e,"application/x-mpegURL",{audio:new fC(0,x,null,y),video:new hC(f,k,l,null,void 0,n,void 0,t),Kd:r});a=new Isa(a,b,c?[c]:[],d,!!w);a.B=p?p:1369843;return new IE(e,a,m)};
Psa=function(a){a=g.q(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.url&&(b=b.url.split("expire/"),!(1>=b.length)))return+b[1].split("/")[0];return NaN};
Rsa=function(a,b){for(var c=g.q(Object.keys(a)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d][0];if(!e.width&&e.Kd===b.Kd&&!e.audioChannels)return d}return""};
Qsa=function(a){for(var b=new Set,c=g.q(Object.values(a)),d=c.next();!d.done;d=c.next())d=d.value,d.length&&(d=d[0],d.height&&d.codecs.startsWith("vp09")&&b.add(d.height));c=[];if(b.size){d=g.q(Object.keys(a));for(var e=d.next();!e.done;e=d.next())if(e=e.value,a[e].length){var f=a[e][0];f.height&&b.has(f.height)&&!f.codecs.startsWith("vp09")&&c.push(e)}}b=g.q(c);for(e=b.next();!e.done;e=b.next())delete a[e.value]};
JE=function(a,b){this.i=a;this.j=b};
Usa=function(a,b,c,d){var e=[];c=g.q(c);for(var f=c.next();!f.done;f=c.next()){var k=f.value;if(k.url){f=new g.bA(k.url,!0);if(k.s){var l=k.sp,m=upa(decodeURIComponent(k.s));f.set(l,encodeURIComponent(m))}l=g.q(Object.keys(d));for(m=l.next();!m.done;m=l.next())m=m.value,f.set(m,d[m]);k=Pqa(k.type,k.quality,k.itag,k.width,k.height);e.push(new JE(k,f))}}return GE(a.j,e,nE(a,b))};
KE=function(a,b){this.i=a;this.j=b};
Vsa=function(a){var b=[];g.uc(a,function(c){if(c&&c.url){var d=Pqa(c.type,"medium","0");b.push(new KE(d,c.url))}});
return b};
Wsa=function(a,b,c){c=Vsa(c);return GE(a.j,c,nE(a,b))};
LE=function(a,b){this.type=a||"";this.id=b||""};
g.ME=function(a){return new LE(a.substr(0,2),a.substr(2))};
NE=function(a,b){for(var c={},d=g.q(Object.keys(Xsa)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.Iy(f)&&(c[Xsa[e]]=f)}return c};
OE=function(a){var b={};if(!a||!a.thumbnails)return b;a=a.thumbnails.filter(function(l){return!!l.url});
a.sort(function(l,m){return l.width-m.width||l.height-m.height});
for(var c=g.q(Object.keys(Ysa)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=Ysa[e];for(var f=g.q(a),k=f.next();!k.done;k=f.next())if(k=k.value,k.width>=e){e=Zsa(k.url);g.Iy(e)&&(b[d]=e);break}}(a=a.pop())&&1280<=a.width&&(a=Zsa(a.url),g.Iy(a)&&(b["maxresdefault.jpg"]=a));return b};
Zsa=function(a){return a.startsWith("//")?"https:"+a:a};
g.PE=function(a,b){this.j=a;this.author="";this.Nv=null;this.playlistLength=0;this.i=this.sessionData=null;this.Y={};this.title="";if(b){this.author=b.author||b.playlist_author||"";this.title=b.playlist_title||"";if(a=b.session_data)this.sessionData=rt(a,"&");var c;this.i=(null==(c=b.thumbnail_ids)?void 0:c.split(",")[0])||null;this.Y=NE(b,"playlist_");this.videoId=b.video_id||void 0;if(c=b.list)switch(b.listType){case "user_uploads":this.playlistId=(new LE("UU","PLAYER_"+c)).toString();break;default:if(a=
b.playlist_length)this.playlistLength=Number(a)||0;this.playlistId=g.ME(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.QE=function(a,b){this.i=a;this.un=this.author="";this.Nv=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.tq=this.lengthText="";this.sessionData=null;this.Y={};this.title="";if(b){this.Rl=b.aria_label||void 0;this.author=b.author||"";this.un=b.un||"";if(a=b.endscreen_autoplay_session_data)this.Nv=rt(a,"&");this.Ov=b.Ov;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.tq=b.tq||"";this.publishedTimeText=b.publishedTimeText||void 0;if(a=b.session_data)this.sessionData=rt(a,"&");this.shortViewCount=b.short_view_count_text||void 0;this.Y=NE(b);this.title=b.title||"";this.videoId=b.docid||b.video_id||b.videoId||b.id||void 0;this.watchUrl=b.watchUrl||void 0}};
ata=function(a,b){var c=g.Ja("ytDebugData.callbacks");c||(c={},g.Ia("ytDebugData.callbacks",c,void 0));if(g.Q("web_dd_iu")||$sa.includes(a))c[a]=b};
RE=function(a){this.i=new Mr(a)};
bta=function(){try{var a=!!self.localStorage}catch(b){a=!1}if(a&&(a=g.Wr(Lv()+"::yt-player")))return new RE(a)};
dta=function(){var a=cta;if(void 0===SE)if(a){try{window.localStorage.removeItem("yt-player-lv")}catch(b){}SE=bta()}else(a=bta())&&a.remove("yt-player-lv"),SE=g.Wr();return SE};
TE=function(){var a=dta();if(!a)return{};try{var b=a.get("yt-player-lv");return JSON.parse(b||"{}")}catch(c){return{}}};
eta=function(a){var b=dta();b&&(a=JSON.stringify(a),b.set("yt-player-lv",a))};
UE=function(a){return TE()[a]||0};
VE=function(a,b){var c=TE();b!==c[a]&&(0!==b?c[a]=b:delete c[a],eta(c))};
fta=function(a){var b=TE();b=Object.assign({},b);a=Object.assign({},a);for(var c in b)a[c]?(4!==b[c]&&(b[c]=a[c]),delete a[c]):2!==b[c]&&(b[c]=4);Object.assign(b,a);eta(b);JSON.stringify(b);return b};
g.WE=function(a){return g.B(function(b){return b.return(nw(gta(),a))})};
hta=function(a){var b,c;return g.B(function(d){if(1==d.i)return g.A(d,g.vw(),2);if(3!=d.i)return(b=d.j)?g.A(d,g.WE(b),3):d.return();c=d.j;return d.return(dw(c,["index","media","captions"],{mode:"readwrite",Kc:!0},function(e){var f=IDBKeyRange.bound(a+"|",a+"~");e=[e.objectStore("index").delete(f),e.objectStore("media").delete(f),e.objectStore("captions").delete(f)];return Wv.all(e).then(function(){})}))})};
kta=function(){var a,b;return g.B(function(c){if(1==c.i)return g.A(c,g.vw(),2);if(3!=c.i){a=c.j;if(!a)throw g.Uv("rvdfd");return g.A(c,g.WE(a),3)}b=c.j;return c.return(dw(b,["index","media"],{mode:"readwrite",Kc:!0},function(d){var e={};return hw(d.objectStore("index"),{},function(f){var k=f.getKey().match(/^([\w\-_]+)\|(a|v)$/),l=Wv.resolve(void 0);if(k){var m=k[1];k=k[2];e[m]=e[m]||{};var n;e[m][k]=ita(null==(n=f.getValue())?void 0:n.fmts)}else l=f.delete().then(function(){});
return Wv.all([f.continue(),l]).then(function(p){return g.q(p).next().value})}).then(function(){for(var f={},k=g.q(Object.keys(e)),l=k.next();!l.done;l=k.next()){l=l.value;
var m=e[l].v;f[l]=e[l].a&&m?1:2}var n=fta(f);return ama(d.objectStore("media"),{},function(p){var r=p.getKey().match(jta);r&&f[r[1]]||d.objectStore("media").delete(p.getKey());return p.continue()}).then(function(){return n})})}))})};
lta=function(a,b){var c,d;return g.B(function(e){if(1==e.i)return g.A(e,g.vw(),2);if(3!=e.i){c=e.j;if(!c)throw g.Uv("wct");return g.A(e,g.WE(c),3)}d=e.j;return g.A(e,dw(d,["captions"],{mode:"readwrite",Kc:!0},function(f){var k=[];f=f.objectStore("captions");for(var l=0;l<b.length;l++){var m=ew(f,b[l],a+"|"+b[l].metadata.vss_id);k.push(m)}return Wv.all(k)}),0)})};
mta=function(a){var b,c,d;return g.B(function(e){if(1==e.i)return b=IDBKeyRange.bound(a+"|",a+"~"),g.A(e,g.vw(),2);if(3!=e.i){c=e.j;if(!c)throw g.Uv("gactfv");return g.A(e,g.WE(c),3)}d=e.j;return e.return(Sla(d,b))})};
YE=function(a,b,c,d,e,f,k){var l,m,n,p,r,t,w;return g.B(function(x){switch(x.i){case 1:return l=UE(a),4===l?x.return(4):g.A(x,g.vw(),2);case 2:m=x.j;if(!m)throw g.Uv("wiac");if(!k||void 0===f){x.eb(3);break}return g.A(x,nta(k,f),4);case 4:f=x.j;case 3:return n=c.lastModified||"0",ota("Writing data to iDB: "+a+" "+b.id+" "+n+" "+e+" "+(null==(p=f)?void 0:p.length)),g.A(x,g.WE(m),5);case 5:return r=x.j,va(x,6),XE++,g.A(x,dw(r,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",Kc:!0},
function(y){if(void 0!==e&&void 0!==f){var z=""+a+"|"+b.id+"|"+n+"|"+String(e).padStart(10,"0");z=ew(y.objectStore("media"),f,z)}else z=Wv.resolve(void 0);var F=pta(a,b.isVideo()),I=pta(a,!b.isVideo()),H={fmts:qta(d),format:c||{}};F=ew(y.objectStore("index"),H,F);var O=-1===d.downloadedEndTime;y=O?y.objectStore("index").get(I):Wv.resolve(void 0);return Wv.all([y,z,F]).then(function(ma){ma=g.q(ma).next().value;XE--;var N=UE(a);4!==N&&O&&void 0!==ma&&ita(ma.fmts)&&(N=1,VE(a,N));return N})}),8);
case 8:return x.return(x.j);case 6:t=xa(x);XE--;w=UE(a);if(4===w)return x.return(w);VE(a,4);throw t;}})};
rta=function(a){var b,c;return g.B(function(d){if(1==d.i)return g.A(d,g.vw(),2);if(3!=d.i){b=d.j;if(!b)throw g.Uv("ri");return g.A(d,g.WE(b),3)}c=d.j;return d.return(dw(c,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(e){var f=IDBKeyRange.bound(a+"|",a+"~");return Rla(e.objectStore("index"),f).then(function(k){return k.map(function(l){return l?l.format:{}})})}))})};
tta=function(a,b,c,d,e){var f,k,l;return g.B(function(m){if(1==m.i)return g.A(m,g.vw(),2);if(3!=m.i){f=m.j;if(!f)throw g.Uv("rc");return g.A(m,g.WE(f),3)}k=m.j;l=dw(k,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},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){return sta(e,n)})):m.return(l)})};
uta=function(a){return g.B(function(b){VE(a,0);return b.return(hta(a))})};
ita=function(a){return a?a.includes("dlt=-1")||!a.includes("dlt="):!1};
pta=function(a,b){return""+a+"|"+(b?"v":"a")};
ota=function(){};
qta=function(a){var b={};return tt((b.dlt=a.downloadedEndTime.toString(),b.mket=a.maxKnownEndTime.toString(),b.avbr=a.averageByteRate.toString(),b))};
vta=function(a){var b={},c={};a=g.q(a);for(var d=a.next();!d.done;d=a.next()){var e=d.value,f=e.split("|");e.match(jta)?(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.q(Object.keys(b));for(d=a.next();!d.done;d=a.next())d=d.value,c[d]=b[d].map(function(k){return k.start+"-"+k.end}).join(",");
return c};
wta=function(a){if(a=a.commonConfig)this.url=a.url,this.urlQueryOverride=a.urlQueryOverride,a.ustreamerConfig&&(this.gI=AD(a.ustreamerConfig)||void 0)};
g.ZE=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.i=a.is_servable||!1;this.isTranslateable=a.is_translateable||!1;this.url=a.url||null;this.vssId=a.vss_id||"";this.isDefault=a.is_default||!1;this.translationLanguage=a.translationLanguage||null};
g.aF=function(a){var b={languageCode:a.languageCode,languageName:a.languageName,displayName:g.$E(a),kind:a.kind,name:a.name,id:a.id,is_servable:a.i,is_default:a.isDefault,is_translateable:a.isTranslateable,vss_id:a.vssId};a.translationLanguage&&(b.translationLanguage=a.translationLanguage);return b};
g.bF=function(a){return a.translationLanguage?a.translationLanguage.languageCode:a.languageCode};
g.$E=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("")};
Ata=function(a,b,c,d){a||(a=b&&xta.hasOwnProperty(b)&&yta.hasOwnProperty(b)?yta[b]+"_"+xta[b]:void 0);b=a;if(!b)return null;a=b.match(zta);if(!a||5!==a.length)return null;if(a=b.match(zta)){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};
Cta=function(a){if(a=a.colorInfo)if(a=a.transferCharacteristics)return Bta[a];return null};
cF=function(a){return a&&a.baseUrl||""};
dF=function(a){a=g.wt(a);for(var b=g.q(Object.keys(a)),c=b.next();!c.done;c=b.next()){c=c.value;var d=a[c];a[c]=Array.isArray(d)?d[0]:d}return a};
Dta=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;b=b.playerAttestationRenderer.challenge;null!=b&&(a.Ta=b)};
Fta=function(a,b){a.captionTracks=[];if(b.captionTracks)for(var c=g.q(b.captionTracks),d=c.next();!d.done;d=c.next()){d=d.value;var e=Eta(d.baseUrl);if(!e)return;d=new g.ZE({is_translateable:!!d.isTranslatable,languageCode:d.languageCode,languageName:d.name&&g.Sy(d.name),url:e,vss_id:d.vssId,kind:d.kind});a.captionTracks.push(d)}a.QD=b.audioTracks||[];a.KP=b.defaultAudioTrackIndex||0;a.wE=b.translationLanguages?g.po(b.translationLanguages,function(f){return{languageCode:f.languageCode,languageName:g.Sy(f.languageName)}}):
[];
a.wp=!!b.contribute&&!!b.contribute.captionsMetadataRenderer};
Gta=function(a,b){b=g.q(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.interstitials.map(function(k){var l=k.unserializedPlayerResponse;if(l)return{is_yto_interstitial:!0,raw_player_response:l};if(k=k.playerVars)return Object.assign({is_yto_interstitial:!0},ut(k))});
d=g.q(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,ek:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:e,ek: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,
ek:0===f?5:7})}}};
Hta=function(a,b){if(b=b.find(function(c){return!(!c||!c.tooltipRenderer)}))a.tooltipRenderer=b.tooltipRenderer};
Ita=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)};
eF=function(a){var b=[];a=g.q(a);for(var c=a.next();!c.done;c=a.next())c=c.value,c.baseUrl&&b.push(c.baseUrl);return b};
Ota=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=a.cipher||a.signatureCipher)?
(c=ut(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=Jta[c]);(c=a.projectionType)&&(b.projection_type=Kta[c]);(c=a.stereoLayout)&&(b.stereo_layout=Lta[c]);(c=a.spatialAudioType)&&(b.spatial_audio_type=Mta[c]);if(d=a.drmFamilies){c=[];d=g.q(d);for(var e=d.next();!e.done;e=d.next())c.push(fF[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=Cta(a))&&(b.eotf=c);(a=a.colorInfo)&&(a=a.primaries)&&(a=Nta[a])&&(b.primaries=a);return g.Fj(b)};
gF=function(a){g.tx.call(this);this.i=null;this.u=new Vga;this.i=null;this.J=new Set;this.C=a||""};
Pta=function(a,b,c){for(c=hF(a,c);0<=c;){var d=a.levels[c];if(d.isLoaded(iF(d,b))&&(d=g.jF(d,b)))return d;c--}return g.jF(a.levels[0],b)};
Rta=function(a,b,c){c=hF(a,c);for(var d,e;0<=c;c--)if(d=a.levels[c],e=iF(d,b),!d.isLoaded(e)){d=a;var f=c,k=f+"-"+e;d.J.has(k)||(d.J.add(k),Uga(d.u,f,{AM:f,PM:e}))}Qta(a)};
Qta=function(a){if(!a.i&&!a.u.isEmpty()){var b=a.u.remove();a.i=Sta(a,b)}};
Sta=function(a,b){var c=document.createElement("img");a.C&&(c.crossOrigin=a.C);c.src=kF(a.levels[b.AM],b.PM);c.onload=function(){var d=b.AM,e=b.PM;null!==a.i&&(a.i.onload=null,a.i=null);d=a.levels[d];d.loaded.add(e);Qta(a);var f=d.columns*d.rows;e*=f;d=Math.min(e+f-1,d.EC()-1);e=[e,d];a.Z("l",e[0],e[1])};
return c};
g.lF=function(a,b,c,d){this.level=a;this.B=b;this.loaded=new Set;this.level=a;this.B=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.i=Math.floor(Number(a[5]));this.u=a[6];this.signature=a[7];this.videoLength=d};
iF=function(a,b){return Math.floor(b/(a.columns*a.rows))};
kF=function(a,b){var c=a.B;c=c.replace("$N",a.u);c=c.replace("$L",a.level.toString());c=c.replace("$M",b.toString());a.signature&&(c=g.Hj(c,{sigh:a.signature}));return Jy(c)};
g.jF=function(a,b){b>=a.FC()&&a.jp();var c=iF(a,b),d=a.columns*a.rows,e=b%d;b=e%a.columns;e=Math.floor(e/a.columns);var f=a.jp()+1-d*c;if(f<a.columns){var k=f;d=1}else k=a.columns,d=f<d?Math.ceil(f/a.columns):a.rows;return{url:kF(a,c),column:b,columns:k,row:e,rows:d,Qw:a.width*k,yq:a.height*d}};
mF=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;gF.call(this,c);this.isLive=d;this.N=!!e;this.levels=this.j(a,b);this.B=new Map;1<this.levels.length&&this.levels[0].isDefault()&&this.levels.splice(0,1)};
Tta=function(a,b,c){return(a=a.levels[b])?a.wy(c):-1};
hF=function(a,b){var c=a.B.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.B.set(b,d),d;a.B.set(b,c-1);return c-1};
nF=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.lF.call(this,a,b,c,0);this.j=null;this.C=d?2:0};
oF=function(a,b,c,d){mF.call(this,a,0,void 0,b,!(void 0===d||!d));for(a=0;a<this.levels.length;a++)this.levels[a].NI(c)};
Uta=function(a,b,c){b={cpn:b};-1===a.indexOf("/ibw/")&&(b.ibw=c?String(c):"1369843");return{url:g.Hj(a,b),type:"application/x-mpegURL",quality:"auto",itag:"93"}};
qF=function(a,b){g.tx.call(this);this.u=a;this.adModule=!1;this.adaptiveFormats="";this.cN=this.tp=this.adQueryId=this.rp=null;this.rD={start:NaN,end:NaN};this.Rl="";this.Kd=null;this.yF=this.drmParams="";this.allowEmbed=!0;this.allowLiveDvr=this.offlineable=this.backgroundable=!1;this.Qa="";this.KD=this.vp=!1;this.yI=null;this.gj=this.Ie=this.jj=this.qC=!1;this.I=null;this.ZN=this.Ng=!1;this.me=NaN;this.Fi=!1;this.nD=0;this.SL=!1;this.jr={};this.fD=this.cycToken=null;this.author="";this.bv=0;this.jk=
!1;this.Zu=null;this.iD=[];this.Ip=this.xF=!1;this.clientScreenNonce=this.clientPlaybackNonce=this.videoCountText=this.channelBanner=this.hc=this.Sb="";this.contentCheckOk=!1;this.limitedPlaybackDurationInSeconds=this.endSeconds=this.Qb=0;this.JM=this.Mc=this.j=null;this.VH="";this.Ia=!1;this.hk=this.gk=0;this.tD=this.pipable=this.dl=!1;this.paidContentOverlayDurationMs=0;this.isLivePlayback=this.wb=this.isPrivate=this.isListed=this.kI=this.OM=this.mutedAutoplay=this.ll=!1;this.sC="";this.isLowLatencyLiveStream=
this.isLivingRoomDeeplink=this.isLiveDefaultBroadcast=this.oC=this.Zg=this.bf=!1;this.latencyClass="UNKNOWN";this.jI=this.enablePreroll=this.enableServerStitchedDai=this.Yd=this.isMdxPlayback=this.isUpcoming=this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=!1;this.Ab=0;this.reloadReason="";this.pC=this.xI=this.Pe=!1;this.keywords={};this.xb="";this.qk=0;this.Gr=!1;this.liveChunkReadahead=NaN;this.dh=null;this.Ll=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.mI=this.paygated=
!1;this.Hi=[];this.va=[];this.racyCheckOk=!1;this.DJ={};this.Gx=0;this.B=null;this.autonavState=1;this.jK=null;this.shortDescription="";this.jb=this.aD=!1;this.Fr=this.pc=this.startSeconds=0;this.Hr=this.rP=this.Xi=pF;this.suggestions=null;this.Ol=this.Pl=void 0;this.Ui=null;this.dD=!1;this.expandedSubtitle=this.expandedTitle=this.subtitle=this.title="";this.mq=this.suggestedAction=this.multiMarkersPlayerBarRenderer=this.gF=void 0;this.Nl=[];this.hlsFormats=this.Vi="";this.Yq=this.Er=this.Sf=this.Hb=
this.fb=this.vk=this.Xq=null;this.Yh="vvt";this.cd=!1;this.mD=null;this.aN="";this.Fk=NaN;this.Xr=this.Tr=this.Dk=this.Sr=this.Rr=this.pj=this.Ck=this.Wr=this.Ek=this.Ur="";this.rj=null;this.UK=!1;this.J={};this.clipStart=0;this.clipEnd=Infinity;this.heartbeatToken="";this.oI=this.nI=NaN;this.Ed=this.pk=this.qd=this.vI=this.pI=!1;this.wk=!0;this.Y={};this.captionTracks=[];this.QD=[];this.KP=0;this.wE=[];this.wp=!1;this.sj=new Iz("und",new rC("Default","und",!0));this.rC=0;this.N=null;this.zr=[];this.OG=
!1;this.fd=[];this.Qr=this.qc="";this.slotPosition=-1;this.breakType=0;this.watchNextResponse=this.playerResponse=this.NP=this.lr=this.lk=this.qg=this.GG=this.sD=this.qD=null;this.nq=!1;this.ea=null;this.isInlinePlaybackNoAd=this.Og=this.useCobaltWidevine=this.EL=this.kq=!1;this.XF=!0;this.RJ=this.TJ=NaN;this.defraggedFromSubfragments=this.Yk=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN;this.ev=this.jD=this.ye=!1;this.interstitials=[];this.C=this.lI=!1;this.Wa="";this.allowImaMonetization=
!1;this.Dc=this.rk=this.wJ="";this.Ha=this.qI=!1;this.oe=0;this.uJ=this.Bk="";this.xC=this.wC=this.hI=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=this.maxReadAheadMediaTimeMs=NaN;this.showShareButton=!0;this.Ak=!1;this.Li=this.Rf=!0;this.errorDetail=this.userGenderAge="";this.gD=this.hD=this.getSharePanelCommand=this.removeFromWatchLaterCommand=this.addToWatchLaterCommand=this.unsubscribeCommand=this.subscribeCommand=this.contextParams=this.Ai=this.errorReason=this.errorCode=null;this.fq=
this.Rp="";this.tj=!1;this.Kl=[];this.zM=this.iL=this.VJ=this.zg=this.Ee=0;this.fetchType=null;this.EJ=!0;this.qM=void 0;this.rO=-1;this.Gi=this.wc=!1;this.lc=null;this.xa="";this.Yg=!1;this.watchUrl=null;this.L("web_player_ux_module_wait")&&this.u.Hb&&this.va.push("ux");this.wc=this.L("web_new_autonav_countdown");this.Gi=this.L("web_new_big_thumbnail_endscreen");Vta(this,b)};
g.tF=function(a,b,c,d){b&&b.cpn&&g.Rx(new g.Kv("CPN provided in VideoData update",{ufa:b.cpn,Wf:a.clientPlaybackNonce,dfa:c}));d&&(a.errorCode=null,a.errorDetail="",a.errorReason=null,a.Ai=null);c?(QD(b),Vta(a,b),rF(a)&&sF(a)):(b=b||{},Wta(a,b),Xta(a,b),Yta(a,b),a.Z("dataupdated"))};
Yta=function(a,b){a.fflags=OD(a.fflags,b.fflags);var c=b.iv_invideo_url;c&&(a.Qa=Jy(c));a.vp=LD(a.vp,b.iv_ads_only);a.KD=LD(a.KD,b.iv_allow_in_place_switch);if(c=b.cta_conversion_urls)a.yZ=c;a.isPharma=LD(a.isPharma,b.is_pharma);a.author=OD(a.author,b.author);a.Sb=Eta(b.ttsurl)||a.Sb;a.jk=LD(a.jk,b.cc_asr);a.hc=OD(a.hc,b.channel_path);a.channelBanner=OD(a.channelBanner,b.channel_banner);if(c=b.profile_picture)a.profilePicture=OD(a.profilePicture,c);a.videoCountText=OD(a.videoCountText,b.video_count_text);
a.autonavState=MD(a.autonavState,b.autonav_state,Zta);a.clientPlaybackNonce=OD(a.clientPlaybackNonce,b.cpn);a.subscribed=LD(a.subscribed,b.subscribed);a.rawViewCount=ND(a.rawViewCount,b.view_count);a.shortViewCount=OD(a.shortViewCount,b.short_view_count_text);a.publishedTimeText=OD(a.publishedTimeText||"",b.publishedTimeText);a.lengthText=OD(a.lengthText||"",b.lengthText);a.tq=OD(a.tq||"",b.tq);a.un=OD(a.un||"",b.un);a.title=OD(a.title,b.title);a.subtitle=OD(a.subtitle,b.subtitle);a.expandedTitle=
OD(a.expandedTitle,b.expanded_title);a.expandedSubtitle=OD(a.expandedSubtitle,b.expanded_subtitle);a.Rl=OD(a.Rl,b.aria_label);a.ypcPreview=OD(a.ypcPreview,b.ypc_preview);a.oD=OD(a.oD,b.ypc_origin);a.cd=LD(a.cd,b.ypc_is_premiere_trailer);a.Bk=OD(a.Bk,b.ypc_clickwrap_message);a.paygated=LD(a.paygated,b.paygated);a.UK=LD(a.UK,b.requires_purchase);a.showShareButton=!LD(!a.showShareButton,b.ss);a.Rf=LD(a.Rf,b.showwatchlater);a.Li=LD(a.Li,b.shownotifybutton);a.Ak=LD(a.Ak,b.copy_share);if(c=b.keywords)a.keywords=
$ta(c.split(","));if(c=b.rvs)a.suggestions=vt(c).map(function(d){return d.playlist||d.list||d.api?new g.PE(a.u,d):new g.QE(a.u,d)});
a.contentCheckOk=LD(a.contentCheckOk,b.cco);a.racyCheckOk=LD(a.racyCheckOk,b.rco);a.isLivingRoomDeeplink=LD(a.isLivingRoomDeeplink,b.is_living_room_deeplink);a.oauthToken=OD(a.oauthToken,b.oauth_token);a.xb=OD(a.xb,b.kpt);a.visitorData=OD(a.visitorData,b.visitor_data);if(c=b.session_data)a.sessionData=rt(c,"&");a.Hq=OD(a.Hq,b.endscreen_ad_tracking_data);a.BM=LD(a.BM,b.wait_for_vast_info_cards_xml);a.bD=LD(a.bD,b.suppress_creator_endscreen);a.wI=LD(a.wI,b.is_trueview_action);a.oM=OD(a.oM,b.tracking_list);
a.Rp=OD(a.Rp,b.clip);a.fq=OD(a.fq,b.clipt);aua(a,b)};
Vta=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.Ai=f);a.clientPlaybackNonce||(a.clientPlaybackNonce=b.cpn||Ex(16));a.wb=LD(a.u.wb,b.livemonitor);Wta(a,b);var k=b.raw_player_response;if(!k){var l=b.player_response;l&&(k=JSON.parse(l))}k&&(a.playerResponse=k);if(a.playerResponse){var m=a.playerResponse.annotations;if(m)for(var n=
g.q(m),p=n.next();!p.done;p=n.next()){var r=p.value.playerAnnotationsUrlsRenderer;if(r){r.adsOnly&&(a.vp=!0);r.allowInPlaceSwitch&&(a.KD=!0);var t=r.loadPolicy;t&&(a.annotationsLoadPolicy=bua[t]);var w=r.invideoUrl;w&&(a.Qa=Jy(w));a.qC=!0;break}}var x=a.playerResponse.attestation;x&&Dta(a,x);var y=a.playerResponse.cotn;y&&(a.cotn=y);var z=a.playerResponse.heartbeatParams;if(z){var F=z.heartbeatToken;F&&(a.drmSessionId=z.drmSessionId||"",a.heartbeatToken=F,a.nI=Number(z.intervalMilliseconds),a.oI=
Number(z.maxRetries),a.pI=!!z.softFailOnError,a.vI=!!z.useInnertubeHeartbeatsForDrm,a.jj=!0);a.heartbeatServerData=z.heartbeatServerData;a.L("heartbeat_iff_heartbeat_params_filled")&&(a.jj=!0);var I;a.Fi=!(null==(I=z.heartbeatAttestationConfig)||!I.requiresAttestation)}var H=a.playerResponse.messages;H&&Hta(a,H);var O=a.playerResponse.multicamera;if(O){var ma=O.playerLegacyMulticameraRenderer;if(ma){var N=ma.metadataList;N&&(a.uJ=N,a.fd=vt(N))}}var da=a.playerResponse.overlay;if(da){var qa=da.playerControlsOverlayRenderer;
if(qa){var Wa=qa.controlBgHtml;null!=Wa?(a.Wa=Wa,a.C=!0):(a.Wa="",a.C=!1);if(qa.mutedAutoplay){var cc=qa.mutedAutoplay.playerMutedAutoplayOverlayRenderer;if(cc&&cc.endScreen){var dc=cc.endScreen.playerMutedAutoplayEndScreenRenderer;dc&&dc.text&&(a.wJ=g.Sy(dc.text))}}else a.mutedAutoplay=!1}}var cb=a.playerResponse.playabilityStatus;if(cb){var xc=cb.backgroundability;xc&&xc.backgroundabilityRenderer.backgroundable&&(a.backgroundable=!0);var gb,md;if(null==(gb=cb.offlineability)?0:null==(md=gb.offlineabilityRenderer)?
0:md.offlineable)a.offlineable=!0;var Ng=cb.contextParams;Ng&&(a.contextParams=Ng);var ff=cb.pictureInPicture;ff&&ff.pictureInPictureRenderer.playableInPip&&(a.pipable=!0);cb.playableInEmbed&&(a.allowEmbed=!0);var zh=cb.ypcClickwrap;if(zh){var Oi=zh.playerLegacyDesktopYpcClickwrapRenderer,Fl=zh.ypcRentalActivationRenderer;if(Oi)a.Bk=Oi.durationMessage||"",a.gj=!0;else if(Fl){var Uq=Fl.durationMessage;a.Bk=Uq?g.Sy(Uq):"";a.gj=!0}}var Og=cb.errorScreen;if(Og){if(Og.playerLegacyDesktopYpcTrailerRenderer){var rc=
Og.playerLegacyDesktopYpcTrailerRenderer;a.Xr=rc.trailerVideoId||"";var Gn=Og.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var Yj=Gn&&Gn.ypcTrailerRenderer}else if(Og.playerLegacyDesktopYpcOfferRenderer)rc=Og.playerLegacyDesktopYpcOfferRenderer;else if(Og.ypcTrailerRenderer){Yj=Og.ypcTrailerRenderer;var Vq=Yj.fullVideoMessage;a.Ck=Vq?g.Sy(Vq):""}rc&&(a.Dk=rc.itemTitle||"",rc.itemUrl&&(a.Tr=rc.itemUrl),rc.itemBuyUrl&&(a.Rr=rc.itemBuyUrl),a.Sr=rc.itemThumbnail||"",a.Wr=rc.offerHeadline||"",a.Ek=
rc.offerDescription||"",a.pj=rc.offerId||"",a.Ur=rc.offerButtonText||"",a.mD=rc.offerButtonFormattedText||null,a.Fk=rc.overlayDurationMsec||NaN,a.Ck=rc.fullVideoMessage||"",a.Ie=!0);if(Yj){var Wq=Yj.unserializedPlayerResponse;if(Wq)a.rj={raw_player_response:Wq};else{var Xq=Yj.playerVars;a.rj=Xq?ut(Xq):null}a.Ie=!0}}}var Xb=a.playerResponse.playbackTracking;if(Xb){var Hn=b,In=cF(Xb.googleRemarketingUrl);In&&(a.googleRemarketingUrl=In);var Jn=cF(Xb.youtubeRemarketingUrl);Jn&&(a.youtubeRemarketingUrl=
Jn);var Kn=cF(Xb.ptrackingUrl);if(Kn){var Pi=dF(Kn),Ln=Pi.oid;Ln&&(a.yJ=Ln);var Hf=Pi.pltype;Hf&&(a.CJ=Hf);var Mn=Pi.ptchn;Mn&&(a.xJ=Mn);var Zj=Pi.ptk;Zj&&(a.ir=encodeURIComponent(Zj));var Nn=Pi.m;Nn&&(a.qq=Nn)}var Ah=cF(Xb.ppvRemarketingUrl);Ah&&(a.ppvRemarketingUrl=Ah);var Yq=cF(Xb.qoeUrl);if(Yq){for(var Be=g.wt(Yq),On=g.q(Object.keys(Be)),ak=On.next();!ak.done;ak=On.next()){var Gl=ak.value,Qi=Be[Gl];Be[Gl]=Array.isArray(Qi)?Qi.join(","):Qi}a.wO=Be;var Bh=Be.cat;Bh&&(a.rk=Bh);var Lb=Be.live;Lb&&
(a.sC=Lb);var gf=Be.drm_product;gf&&(a.yF=gf)}var Pg=cF(Xb.remarketingUrl);if(Pg){a.remarketingUrl=Pg;var Hl=dF(Pg);Hl.foc_id&&(a.J.focEnabled=!0);var Pn=Hl.data;Pn&&(a.J.rmktEnabled=!0,Pn.engaged&&(a.J.engaged="1"));a.J.baseUrl=xj(Pg)+tj(g.vj(5,Pg))}var Qn=cF(Xb.videostatsPlaybackUrl);if(Qn){var Fc=dF(Qn);a.PJ=Fc;var bk=Fc.adformat;if(bk&&(Hn.adformat=bk,!a.L("process_video_data_ad_format_in_player_tracking_killswitch"))){var Ri=a.T(),Td=Ata(bk,a.Qr,Ri.i,Ri.u);Td&&(a.adFormat=Td)}var Zq=Fc.aqi;Zq&&
(Hn.ad_query_id=Zq);var Rn=Fc.autoplay;Rn&&(a.ll="1"==Rn);var Si=Fc.autonav;Si&&(a.dl="1"==Si);var ck=Fc.delay;ck&&(a.Qb=lh(ck));var Ch=Fc.ei;Ch&&(a.eventId=Ch);"adunit"===Fc.el&&(a.ll=!0);var Dh=Fc.feature;Dh&&(a.pM=Dh);var dk=Fc.list;dk&&(a.playlistId=dk);var Sn=Fc.of;Sn&&(a.hZ=Sn);var Il=Fc.osid;Il&&(a.osid=Il);var Tn=Fc.referrer;Tn&&(a.referrer=Tn);var Ce=Fc.sdetail;Ce&&(a.nM=Ce);var Qg=Fc.sourceid;Qg&&(a.U_=Qg);var Un=Fc.ssrt;Un&&(a.lD="1"==Un);var yc=Fc.subscribed;yc&&(a.subscribed="1"==yc,
a.J.subscribed=yc);var Vn=Fc.uga;Vn&&(a.userGenderAge=Vn);var Jl=Fc.upt;Jl&&(a.uZ=Jl);var Wn=Fc.vm;Wn&&(a.videoMetadata=Wn)}var Xn=cF(Xb.videostatsWatchtimeUrl);if(Xn){var ek=dF(Xn).ald;ek&&(a.gY=ek)}if(Xb.promotedPlaybackTracking){var Fd=Xb.promotedPlaybackTracking;Fd.startUrls&&(a.hh=Fd.startUrls);Fd.firstQuartileUrls&&(a.Br=Fd.firstQuartileUrls);Fd.secondQuartileUrls&&(a.Cr=Fd.secondQuartileUrls);Fd.thirdQuartileUrls&&(a.Dr=Fd.thirdQuartileUrls);Fd.completeUrls&&(a.Ar=Fd.completeUrls);Fd.engagedViewUrls&&
(1<Fd.engagedViewUrls.length&&g.Rx(new g.Kv("There are more than one engaged_view_urls.")),a.Jb=Fd.engagedViewUrls[0])}}a:{var Kl=a.playerResponse.adPlacements;if(Kl)for(var Ll=g.q(Kl),Yn=Ll.next();!Yn.done;Yn=Ll.next()){var If=Yn.value;if(If.adPlacementRenderer&&If.adPlacementRenderer.renderer&&If.adPlacementRenderer.renderer.videoAdTrackingRenderer){var Zn=If.adPlacementRenderer.renderer.videoAdTrackingRenderer;break a}}Zn=null}var fk=Zn;Xb&&Xb.promotedPlaybackTracking&&fk&&g.Rx(new g.Kv("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));
if(fk)if(a.L("html5_enable_pacf_for_playback_tracking_layout_web"))a.mI=!0;else if(fk.pings){var Gd=fk.pings;Gd.startPings&&(a.hh=eF(Gd.startPings));Gd.firstQuartilePings&&(a.Br=eF(Gd.firstQuartilePings));Gd.secondQuartilePings&&(a.Cr=eF(Gd.secondQuartilePings));Gd.thirdQuartilePings&&(a.Dr=eF(Gd.thirdQuartilePings));Gd.completePings&&(a.Ar=eF(Gd.completePings));Gd.progressPings&&(1<Gd.progressPings.length&&g.Rx(new g.Kv("There is more than one Progress Ping in VideoAdTracking.")),a.Jb=Gd.progressPings[0].baseUrl)}else g.Rx(new g.Kv("VideoAdTrackingRenderer without pings"));
var Rg=a.playerResponse.playerAds;if(Rg)for(var Wu=b,Ml=g.q(Rg),gk=Ml.next();!gk.done;gk=Ml.next()){var hk=gk.value;if(hk){var $q=hk.playerLegacyDesktopWatchAdsRenderer;if($q){var cg=$q.playerAdParams;if(cg){"1"==cg.autoplay&&(a.ll=!0);a.tp=cg.encodedAdSafetyReason||null;void 0!==cg.showContentThumbnail&&(a.wk=!!cg.showContentThumbnail);Wu.enabled_engage_types=cg.enabledEngageTypes;break}}}}var nd=a.playerResponse.playerConfig;if(nd){var Eh=nd.manifestlessWindowedLiveConfig;if(Eh){var $n=Number(Eh.minDvrSequence),
ao=Number(Eh.maxDvrSequence),ar=Number(Eh.minDvrMediaTimeMs),Fh=Number(Eh.maxDvrMediaTimeMs),NA=Number(Eh.startWalltimeMs);$n&&(a.Ee=$n);ar&&(a.iL=ar/1E3);ao&&(a.zg=ao);Fh&&(a.VJ=Fh/1E3);NA&&(a.zM=NA/1E3)}var bo=nd.daiConfig;if(bo){if(bo.enableDai){a.Yd=!0;var OA=bo.enableServerStitchedDai;OA&&(a.enableServerStitchedDai=OA);var Xu=bo.enablePreroll;Xu&&(a.enablePreroll=Xu)}"DAI_TYPE_SS_DISABLED"===bo.daiType&&(a.jI=!0)}var br=nd.audioConfig;if(br){var PA=br.loudnessDb;null!=PA&&(a.me=PA);br.audioMuted&&
(a.Ng=!0);br.muteOnStart&&(a.ZN=!0)}var QA=nd.playbackEndConfig;if(QA){var RA=QA.endSeconds;RA&&a.mutedAutoplay&&(a.endSeconds=RA)}var Nl=nd.fairPlayConfig;if(Nl){var SA=Nl.certificate;SA&&(a.Mc=AD(SA));var TA=Number(Nl.keyRotationPeriodMs);0<TA&&(a.DY=TA);var Yu=Number(Nl.keyPrefetchMarginMs);0<Yu&&(a.tY=Yu)}var Ol=nd.playbackStartConfig;if(Ol){a.xC=Number(Ol.startSeconds);var zha=Ol.liveUtcStartSeconds,xW=!1;a.L("html5_start_seconds_priority")&&(xW=!!a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds);
zha&&!xW&&(a.liveUtcStartSeconds=Number(zha));var yW=Ol.startPosition;if(yW){var Aha=yW.utcTimeMillis;Aha&&!xW&&(a.liveUtcStartSeconds=.001*Number(Aha));var Bha=yW.streamTimeMillis;Bha&&(a.Fr=.001*Number(Bha))}a.progressBarStartPosition=Ol.progressBarStartPosition;a.progressBarEndPosition=Ol.progressBarEndPosition}else{var zW=nd.skippableSegmentsConfig;if(zW){var Cha=zW.introSkipDurationMs;Cha&&(a.hI=Number(Cha)/1E3);var Dha=zW.outroSkipDurationMs;Dha&&(a.wC=Number(Dha)/1E3)}}var AW=nd.skippableIntroConfig;
if(AW){var Eha=Number(AW.startMs),Fha=Number(AW.endMs);isNaN(Eha)||isNaN(Fha)||(a.TJ=Eha,a.RJ=Fha)}var Gha=nd.streamSelectionConfig;Gha&&(a.hk=Number(Gha.maxBitrate));var Hha=nd.vrConfig;Hha&&(a.kq="1"==Hha.partialSpherical);var UA=nd.webDrmConfig;if(UA){UA.skipWidevine&&(a.EL=!0);var Iha=UA.widevineServiceCert;Iha&&(a.JM=AD(Iha));UA.useCobaltWidevine&&(a.useCobaltWidevine=!0);UA.startWithNoQualityConstraint&&(a.Og=!0)}var Jha=nd.mediaCommonConfig;if(Jha){var cJ=Jha.dynamicReadaheadConfig;cJ&&(a.maxReadAheadMediaTimeMs=
cJ.maxReadAheadMediaTimeMs||NaN,a.minReadAheadMediaTimeMs=cJ.minReadAheadMediaTimeMs||NaN,a.readAheadGrowthRateMs=cJ.readAheadGrowthRateMs||NaN)}var Kha=nd.inlinePlaybackConfig;Kha&&(a.XF=!!Kha.showAudioControls)}var Pl=a.playerResponse.streamingData;if(Pl){var Lha=Pl.adaptiveFormats;if(Lha){for(var Mha=[],Nha=g.q(Lha),Ti=Nha.next();!Ti.done;Ti=Nha.next()){var dJ=Ti.value;Mha.push(Ota(dJ));var Oha=dJ.loudnessDb;dJ.itag&&null!=Oha&&(a.jr[dJ.itag.toString()]=Oha)}a.adaptiveFormats=Mha.join(",")}var BW=
Pl.formats;if(BW){var VA=[],Pha=g.q(BW);for(Ti=Pha.next();!Ti.done;Ti=Pha.next()){var CW=Ti.value;VA.push(CW.itag+"/"+CW.width+"x"+CW.height)}a.VH=VA.join(",");VA=[];var Qha=g.q(BW);for(Ti=Qha.next();!Ti.done;Ti=Qha.next()){var Zu=Ti.value,WA={itag:Zu.itag,type:Zu.mimeType,quality:Zu.quality},Rha=Zu.url;Rha&&(WA.url=Rha);var Sha=Zu.cipher||Zu.signatureCipher;if(Sha){var DW=ut(Sha);WA.sp=DW.sp;WA.s=DW.s;WA.url=DW.url}VA.push(g.Fj(WA))}a.Vi=VA.join(",")}var EW=Pl.hlsFormats;if(EW){var Tha=nd||null,
eJ={};if(Tha){var FW=Tha.audioPairingConfig;if(FW&&FW.pairs)for(var Uha=g.q(FW.pairs),GW=Uha.next();!GW.done;GW=Uha.next()){var Vha=GW.value,HW=Vha.videoItag;eJ[HW]||(eJ[HW]=[]);eJ[HW].push(Vha.audioItag)}}for(var Wha={},Xha=g.q(EW),cr=Xha.next();!cr.done;cr=Xha.next()){var Yha=cr.value;Wha[Yha.itag]=Yha.bitrate}var Zha=[],$ha=g.q(EW);for(cr=$ha.next();!cr.done;cr=$ha.next()){var dg=cr.value,ik={itag:dg.itag,type:dg.mimeType,url:dg.url,bitrate:dg.bitrate,width:dg.width,height:dg.height,fps:dg.fps},
fJ=dg.audioTrack;if(fJ){var aia=fJ.displayName;aia&&(ik.name=aia,ik.audio_track_id=fJ.id,fJ.audioIsDefault&&(ik.is_default="1"))}if(dg.drmFamilies){for(var bia=[],cia=g.q(dg.drmFamilies),IW=cia.next();!IW.done;IW=cia.next())bia.push(fF[IW.value]);ik.drm_families=bia.join(",")}var gJ=eJ[dg.itag];if(gJ&&gJ.length){ik.audio_itag=gJ.join(",");var dia=Wha[gJ[0]];dia&&(ik.bitrate+=dia)}var eia=Cta(dg);eia&&(ik.eotf=eia);dg.audioChannels&&(ik.audio_channels=dg.audioChannels);Zha.push(g.Fj(ik))}a.hlsFormats=
Zha.join(",")}var JW=Pl.licenseInfos;if(JW&&0<JW.length){for(var fia={},gia=g.q(JW),KW=gia.next();!KW.done;KW=gia.next()){var hia=KW.value,iia=hia.drmFamily,jia=hia.url;iia&&jia&&(fia[fF[iia]]=jia)}a.Kd=fia}var kia=Pl.drmParams;kia&&(a.drmParams=kia);var lia=Pl.dashManifestUrl;lia&&(a.kb=g.Hj(lia,{cpn:a.clientPlaybackNonce}));var mia=Pl.hlsManifestUrl;mia&&(a.hlsvp=mia);var nia=Pl.probeUrl;nia&&(a.probeUrl=Jy(g.Hj(nia,{cpn:a.clientPlaybackNonce})))}var oia=a.playerResponse.trackingParams;oia&&(a.Ya=
oia);var zc=a.playerResponse.videoDetails;if(zc){var jk=b,LW=zc.videoId;LW&&(a.videoId=LW,jk.video_id||(jk.video_id=LW));var pia=zc.channelId;pia&&(a.J.uid=pia.substr(2));var MW=zc.title;MW&&(a.title=MW,jk.title||(jk.title=MW));var NW=zc.lengthSeconds;NW&&(a.lengthSeconds=Number(NW),jk.length_seconds||(jk.length_seconds=NW));var qia=zc.keywords;qia&&(a.keywords=$ta(qia));var OW=zc.channelId;OW&&(a.nj=OW,jk.ucid||(jk.ucid=OW));var ria=zc.viewCount;ria&&(a.rawViewCount=Number(ria));var PW=zc.author;
PW&&(a.author=PW,jk.author||(jk.author=PW));var sia=zc.shortDescription;sia&&(a.shortDescription=sia);var tia=zc.isCrawlable;tia&&(a.isListed=tia);var uia=zc.musicVideoType;uia&&(a.musicVideoType=uia);var QW=zc.isLive;null!=QW&&(a.isLivePlayback=QW);if(QW||zc.isUpcoming)a.isPremiere=!zc.isLiveContent;var via=zc.thumbnail;via&&(a.Y=OE(via));var wia=nd||null,RW=b;zc.isLiveDefaultBroadcast&&(a.isLiveDefaultBroadcast=!0);zc.isUpcoming&&(a.isUpcoming=!0);if(zc.isPostLiveDvr)a.bf=!0;else{var SW=!1;if(a.wb)a.allowLiveDvr=
uF(!0),a.isLivePlayback=!0;else if(zc.isLive){RW.livestream="1";a.allowLiveDvr=uF(!!zc.isLiveDvrEnabled);a.ya=27;zc.isLowLatencyLiveStream&&(a.isLowLatencyLiveStream=!0);var xia=zc.latencyClass;xia&&(a.latencyClass=cua[xia]||"UNKNOWN");var yia=zc.liveChunkReadahead;yia&&(a.liveChunkReadahead=yia);var XA=wia&&wia.livePlayerConfig;if(XA){XA.hasSubfragmentedFmp4&&(a.hasSubfragmentedFmp4=!0);XA.hasSubfragmentedWebm&&(a.Yk=!0);XA.defraggedFromSubfragments&&(a.defraggedFromSubfragments=!0);var zia=XA.liveExperimentalContentId;
zia&&(a.liveExperimentalContentId=Number(zia))}SW=!0}else zc.isUpcoming&&(SW=!0);SW&&(a.isLivePlayback=!0,RW.adformat&&"8"!==RW.adformat.split("_")[1]||a.L("web_player_defer_modules")&&!a.isUpcoming||a.va.push("heartbeat"),a.L("heartbeat_iff_heartbeat_params_filled")||(a.jj=!0))}var Aia=zc.isPrivate;Aia&&(a.isPrivate=LD(a.isPrivate,Aia))}if(cb){var Bia=zc||null,Cia=!1,$u=cb.errorScreen;Cia=$u&&($u.playerLegacyDesktopYpcOfferRenderer||$u.playerLegacyDesktopYpcTrailerRenderer||$u.ypcTrailerRenderer)?
!0:Bia&&Bia.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(cb.status);if(!Cia){a.errorCode="150";var hJ=$u&&$u.playerErrorMessageRenderer;if(hJ){a.playerErrorMessageRenderer=hJ;var Dia=hJ.reason;Dia&&(a.errorReason=g.Sy(Dia));var UW=hJ.subreason;UW&&(a.Ai=g.Sy(UW),a.Mq=UW)}else a.errorReason=cb.reason||null;var VW=cb.status;if("LOGIN_REQUIRED"===VW)a.errorDetail="1";else if("CONTENT_CHECK_REQUIRED"===VW)a.errorDetail="2";else if("AGE_CHECK_REQUIRED"===VW){var Eia=cb.errorScreen,
Fia=Eia&&Eia.playerKavRenderer;a.errorDetail=Fia&&Fia.kavUrl?"4":"3"}else a.errorDetail=cb.isBlockedInRestrictedMode?"5":"0"}}var Gia=a.playerResponse.interstitialPods;Gia&&Gta(a,Gia);a.Qa&&a.eventId&&(a.Qa=zt(a.Qa,{ei:a.eventId}));var WW=a.playerResponse.captions;WW&&WW.playerCaptionsTracklistRenderer&&Fta(a,WW.playerCaptionsTracklistRenderer);a.clipConfig=a.playerResponse.clipConfig;a.clipConfig&&null!=a.clipConfig.startTimeMs&&(a.xC=.001*Number(a.clipConfig.startTimeMs));a.accountLinkingConfig=
a.playerResponse.accountLinkingConfig;a.accountLinkingConfig&&a.accountLinkingConfig.alsParam&&(a.NJ=a.accountLinkingConfig.alsParam);a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&Ita(a,a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting)}Xta(a,b);b.queue_info&&(a.queueInfo=b.queue_info);var Hia=b.hlsdvr;null!=Hia&&(a.allowLiveDvr=uF("1"==Hia));a.adQueryId=b.ad_query_id||
null;a.tp||(a.tp=b.encoded_ad_safety_reason||null);a.cN=b.agcid||null;a.qD=b.ad_id||null;a.sD=b.ad_sys||null;a.GG=b.encoded_ad_playback_context||null;a.Ng=LD(a.Ng,b.infringe||b.muted);a.authKey=b.authkey;a.authUser=b.authuser;a.mutedAutoplay=LD(a.mutedAutoplay,b&&b.playmuted)&&a.L("embeds_enable_muted_autoplay");a.endSeconds=ND(a.endSeconds,a.wC||b.end||b.endSeconds);a.limitedPlaybackDurationInSeconds=ND(a.limitedPlaybackDurationInSeconds,b.limited_playback_duration_in_seconds);a.Ya=OD(a.Ya,b.itct);
a.kI=LD(a.kI,b.noiba);a.oC=LD(a.oC,b.is_live_destination);a.isLivePlayback=LD(a.isLivePlayback,b.live_playback);a.enableServerStitchedDai=a.enableServerStitchedDai&&a.isLivePlayback;b.isUpcoming&&(a.isUpcoming=LD(a.isUpcoming,b.isUpcoming));a.bf=LD(a.bf,b.post_live_playback);a.isMdxPlayback=LD(a.isMdxPlayback,b.mdx);var iJ=b.mdx_control_mode;iJ&&(a.mdxControlMode="number"===typeof iJ?iJ:lh(iJ));a.isInlinePlaybackNoAd=LD(a.isInlinePlaybackNoAd,b.is_inline_playback_no_ad);a.Ab=ND(a.Ab,b.reload_count);
a.reloadReason=OD(a.reloadReason,b.reload_reason);a.wk=LD(a.wk,b.show_content_thumbnail);a.pC=LD(a.pC,b.utpsa);a.dD=LD(a.dD,b.third_party_remapped_ad);a.cycToken=b.cyc||null;a.fD=b.tkn||null;var Iia=NE(b);0<Object.keys(Iia).length&&(a.Y=Iia);a.La=OD(a.La,b.vvt);a.mdxEnvironment=OD(a.mdxEnvironment,b.mdx_environment);b.source_container_playlist_id&&(a.sourceContainerPlaylistId=b.source_container_playlist_id);a.CZ=b.osig;a.eventId||(a.eventId=b.eventid);a.osid||(a.osid=b.osid);a.playlistId=OD(a.playlistId,
b.list);b.index&&(a.playlistIndex=void 0===a.playlistIndex?ND(0,b.index):ND(a.playlistIndex,b.index));a.MJ=b.pyv_view_beacon_url;a.SJ=b.pyv_quartile25_beacon_url;a.UJ=b.pyv_quartile50_beacon_url;a.WJ=b.pyv_quartile75_beacon_url;a.QJ=b.pyv_quartile100_beacon_url;var Jia=b.remarketing_url;Jia&&(a.remarketingUrl=Jia);var Kia=b.ppv_remarketing_url;Kia&&(a.ppvRemarketingUrl=Kia);var Lia=b.session_data;!a.mK&&Lia&&(a.mK=rt(Lia,"&").feature);a.isFling=1==ND(a.isFling?1:0,b.is_fling);a.vnd=ND(a.vnd,b.vnd);
a.Sg=OD(a.Sg,b.force_ads_url);a.hg=OD(a.hg,b.ctrl);a.Eg=OD(a.Eg,b.ytr);a.Vl=b.ytrcc;a.AK=b.ytrexp;a.ZC=b.ytrext;a.qc=OD(a.qc,b.adformat);a.Qr=OD(a.Qr,b.attrib);a.slotPosition=ND(a.slotPosition,b.slot_pos);a.breakType=b.break_type;a.lD=LD(a.lD,b.ssrt);a.videoId=QD(b)||a.videoId;a.W=OD(a.W,b.vss_credentials_token);a.Yh=OD(a.Yh,b.vss_credentials_token_type);a.ye=LD(a.ye,b.audio_only);a.jD=LD(a.jD,b.aac_high);a.ev=LD(a.ev,b.prefer_low_quality_audio);a.rk=OD(a.rk,b.qoe_cat);a.tj=LD(a.tj,b.download_media);
a.Ha=LD(a.Ha,b.prefer_gapless);a:{var XW=a.playerResponse;if(XW&&XW.adPlacements)for(var Mia=g.q(XW.adPlacements),YW=Mia.next();!YW.done;YW=Mia.next()){var jJ=YW.value.adPlacementRenderer;if(null!=jJ&&"AD_PLACEMENT_KIND_START"==(jJ.config&&jJ.config.adPlacementConfig&&jJ.config.adPlacementConfig.kind)){var Nia=!0;break a}}Nia=!1}Nia&&(a.adModule=!0,a.va.push("ad"));var Oia=b.adaptive_fmts;Oia&&(a.adaptiveFormats=Oia);var Pia=b.allow_embed;Pia&&(a.allowEmbed="1"==Pia);var Qia=b.backgroundable;Qia&&
(a.backgroundable="1"==Qia);var Ria=b.autonav;Ria&&(a.dl="1"==Ria);var Sia=b.autoplay;Sia&&(a.ll="1"==Sia);var Tia=b.iv_load_policy;Tia&&(a.annotationsLoadPolicy=MD(a.annotationsLoadPolicy,Tia,hE));var Uia=b.cc_lang_pref;Uia&&(a.captionsLanguagePreference=OD(Uia,a.captionsLanguagePreference));var Via=b.cc_load_policy;Via&&(a.Zu=MD(a.Zu,Via,hE));var Wia;a.deviceCaptionsOn=null!=(Wia=b.device_captions_on)?Wia:void 0;var Xia;a.MP=null!=(Xia=b.device_captions_lang_pref)?Xia:"";var Yia;a.iD=null!=(Yia=
b.viewer_selected_caption_langs)?Yia:[];var Zia=b.cached_load;Zia&&(a.Ip=LD(a.Ip,Zia));"0"==b.dash&&(a.xF=!0);var $ia=b.dashmpd;$ia&&(a.kb=g.Hj($ia,{cpn:a.clientPlaybackNonce}));var aja=b.delay;aja&&(a.Qb=lh(aja));var bja=a.wC||b.end;void 0!=bja&&(a.clipEnd=ND(a.clipEnd,bja));var cja=b.fmt_list;cja&&(a.VH=cja);b.heartbeat_preroll&&!a.L("web_player_defer_modules")&&a.va.push("heartbeat");a.gk=-Math.floor(10*Math.random());a.Ll=-Math.floor(40*Math.random());var dja=b.is_listed;dja&&(a.isListed=LD(a.isListed,
dja));var eja=b.is_private;eja&&(a.isPrivate=LD(a.isPrivate,eja));var fja=b.is_dni;fja&&(a.C=LD(a.C,fja));var gja=b.dni_color;gja&&(a.Wa=OD(a.Wa,gja));var hja=b.pipable;hja&&(a.pipable=LD(a.pipable,hja));a.tD=a.pipable&&a.u.Ol;a.aD=a.tD&&(!a.u.showMiniplayerButton||a.L("web_player_pip"));var ija=b.paid_content_overlay_duration_ms;ija&&(a.paidContentOverlayDurationMs=lh(ija));var jja=b.paid_content_overlay_text;jja&&(a.paidContentOverlayText=jja);var kja=b.url_encoded_fmt_stream_map;kja&&(a.Vi=kja);
var lja=b.hls_formats;lja&&(a.hlsFormats=lja);var mja=b.hlsvp;mja&&(a.hlsvp=mja);var kJ=b.length_seconds;kJ&&(a.lengthSeconds="string"===typeof kJ?lh(kJ):kJ);var lJ=b.live_start_walltime;lJ&&(a.uC="number"===typeof lJ?lJ:lh(lJ));var mJ=b.live_manifest_duration;mJ&&(a.dh="number"===typeof mJ?mJ:lh(mJ));var nja=b.player_params;nja&&(a.playerParams=nja);var oja=b.partnerid;oja&&(a.ya=ND(a.ya,oja));var pja=b.probe_url;pja&&(a.probeUrl=Jy(g.Hj(pja,{cpn:a.clientPlaybackNonce})));var ZW=b.pyv_billable_url;
ZW&&Boa(ZW)&&(a.Jb=ZW);var $W=b.pyv_conv_url;$W&&Boa($W)&&(a.OJ=$W);aua(a,b);0<a.startSeconds||(a.startSeconds=ND(a.startSeconds,a.xC||a.hI||b.start||b.startSeconds),a.pc=a.startSeconds);if(a.L("html5_start_seconds_priority")){if(!(a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds)){var qja=b.live_utc_start;if(null!=qja)a.liveUtcStartSeconds=Number(qja);else{var aX=a.startSeconds;aX&&isFinite(aX)&&1E9<aX&&(a.liveUtcStartSeconds=a.startSeconds)}}if(!(a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds)){var rja=
b.utc_start_millis;rja&&(a.liveUtcStartSeconds=.001*Number(rja))}}else{var sja=b.live_utc_start;null!=sja&&(a.liveUtcStartSeconds=Number(sja));var tja=b.utc_start_millis;tja&&(a.liveUtcStartSeconds=.001*Number(tja))}var uja=b.stream_time_start_millis;uja&&(a.Fr=.001*Number(uja));var vja=a.hI||b.start;void 0==vja||"1"==b.resume||a.isLivePlayback||(a.clipStart=ND(a.clipStart,vja));var wja=b.url_encoded_third_party_media;wja&&(a.Ui=vt(wja));var bX=b.ypc_offer_button_formatted_text;if(bX){var xja=JSON.parse(bX);
a.mD=null!=xja?xja:null;a.aN=bX}var yja=b.ypc_offer_button_text;yja&&(a.Ur=yja);var zja=b.ypc_offer_description;zja&&(a.Ek=zja);var Aja=b.ypc_offer_headline;Aja&&(a.Wr=Aja);var Bja=b.ypc_full_video_message;Bja&&(a.Ck=Bja);var Cja=b.ypc_offer_id;Cja&&(a.pj=Cja);var Dja=b.ypc_buy_url;Dja&&(a.Rr=Dja);var Eja=b.ypc_item_thumbnail;Eja&&(a.Sr=Eja);var Fja=b.ypc_item_title;Fja&&(a.Dk=Fja);var Gja=b.ypc_item_url;Gja&&(a.Tr=Gja);var Hja=b.ypc_vid;Hja&&(a.Xr=Hja);b.ypc_overlay_timeout&&(a.Fk=Number(b.ypc_overlay_timeout));
var Ija=b.ypc_trailer_player_vars;Ija&&(a.rj=ut(Ija));var Jja=b.ypc_original_itct;Jja&&(a.TP=Jja);a.nj=OD(a.nj,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=LD(a.J.focEnabled,b.focEnabled);a.J.rmktEnabled=LD(a.J.rmktEnabled,b.rmktEnabled);a.Er=b.storyboard_spec||null;a.Yq=b.live_storyboard_spec||null;a.yI=b.iv_endscreen_url||
null;a.qC=LD(a.qC,b.iv3_module);a.jj=LD(a.jj,b.ypc_license_checker_module);a.Ie=LD(a.Ie,b.ypc_module);a.gj=LD(a.gj,b.ypc_clickwrap_module);a.Ie&&a.va.push("ypc");a.gj&&a.va.push("ypc_clickwrap");a.DJ={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};Yta(a,b);var Kja=b.cotn;Kja&&(a.cotn=Kja);if(dua(a))vF(a)&&(a.isLivePlayback&&a.kb&&(a.qd=!0),a.Mc&&(a.pk=!0));else if(eua(a))a.qd=!0;else{var Oja=fua(a,a.adaptiveFormats);if(Oja){wF(a,Oja);var Pja=!0}else Pja=!1;Pja?a.L("html5_disable_manifestfull_ssdai_killswitch")||(a.enableServerStitchedDai=a.enableServerStitchedDai&&xF(a)):a.kb&&(a.qd=
!0)}var dX=b.adpings;dX&&(a.rp=dX?ut(dX):null);var Qja=b.feature;Qja&&(a.pM=Qja);var Rja=b.referrer;Rja&&(a.referrer=Rja);a.clientScreenNonce=OD(a.clientScreenNonce,b.csn);a.Gx=ND(a.Gx,b.root_ve_type);a.qk=ND(a.qk,b.kids_age_up_mode);void 0!=b.kids_app_info&&(a.kidsAppInfo=b.kids_app_info);a.Gr=LD(a.Gr,b.upg_content_filter_mode);var Sja=b.unplugged_location_info;Sja&&(a.ea=Sja);var Tja=b.unplugged_partner_opt_out;Tja&&(a.pD=OD("",Tja));a.nq=LD(a.nq,b.disable_watch_next);a.nk=OD(a.nk,b.internal_ip_override);
a.lI=!!b.is_yto_interstitial;(a.interstitials.length||a.lI)&&a.va.push("yto");var Uja=b.Hi;Uja&&(a.Hi=Uja);b.FB&&(a.FB=b.FB);var Vja;a.xa=null!=(Vja=b.csi_timer)?Vja:"";a.Yg=!!b.force_gvi;b.watchUrl&&(a.watchUrl=b.watchUrl);a.L("html5_attach_watch_endpoint_ustreamer_config")&&b.watch_endpoint&&gua(a,b.watch_endpoint)};
Xta=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 k=ND(0,b.autoplay_count);if(f.autoplay&&f.autoplay.autoplay&&!f.playlist){var l=f.autoplay.autoplay.sets,m={},n=new g.QE(a.u),p=null,r;if(l){for(var t=g.q(l),w=t.next();!w.done;w=t.next()){var x=w.value.autoplayVideoRenderer;if(x&&x.compactVideoRenderer){p=x.compactVideoRenderer;
break}}if(r=l[0].autoplayVideo){var y=r.clickTrackingParams;y&&(m.itct=y);m.autonav="1";m.playnext=String(k)}}else m.feature="related-auto";if(p){n.videoId=p.videoId;var z=p.shortBylineText;z&&(n.author=g.Sy(z));var F=p.title;F&&(n.title=g.Sy(F))}else{var I,H;if(null==(I=r)?0:null==(H=I.watchEndpoint)?0:H.videoId)n.videoId=r.watchEndpoint.videoId}n.Nv=m;a.suggestions=[n]}}var O=e.twoColumnWatchNextResults}var ma,N;a.VY=!!(null==(ma=O)?0:null==(N=ma.autoplay)?0:N.autoplay);var da=a.watchNextResponse.playerOverlays;
if(da){var qa=da.playerOverlayRenderer;if(qa){var Wa=qa.endScreen;if(Wa){var cc=Wa.watchNextEndScreenRenderer;if(cc)var dc=cc.results}var cb=qa.videoDetails;if(cb){var xc=cb.embeddedPlayerOverlayVideoDetailsRenderer;var gb=cb.musicEmbeddedPlayerOverlayVideoDetailsRenderer;gb&&(a.CH=gb.title,a.QG=gb.byline);var md=cb.playerOverlayVideoDetailsRenderer;md&&(md.title&&(b.title=g.Sy(md.title)),md.subtitle&&(b.subtitle=g.Sy(md.subtitle)))}var Ng=qa.actions;if(Ng)for(var ff=g.q(Ng),zh=ff.next();!zh.done;zh=
ff.next()){var Oi=zh.value;Oi.likeButtonRenderer&&(a.likeButtonRenderer=Oi.likeButtonRenderer)}var Fl,Uq,Og=null==(Fl=qa.suggestedActionsRenderer)?void 0:null==(Uq=Fl.suggestedActionsRenderer)?void 0:Uq.suggestedActions;if(Og)for(var rc=g.q(Og),Gn=rc.next();!Gn.done;Gn=rc.next()){var Yj=Gn.value,Vq=void 0,Wq=void 0;if(null==(Vq=Yj.suggestedActionRenderer)?0:null==(Wq=Vq.trigger)?0:Wq.suggestedActionTimeRangeTrigger)a.suggestedAction=Yj.suggestedActionRenderer}var Xq,Xb=null==(Xq=qa.decoratedPlayerBarRenderer)?
void 0:Xq.decoratedPlayerBarRenderer;if(Xb){var Hn;a.multiMarkersPlayerBarRenderer=null==(Hn=Xb.playerBar)?void 0:Hn.multiMarkersPlayerBarRenderer;var In,Jn;a.gF=null==(In=Xb.playerBar)?void 0:null==(Jn=In.chapteredPlayerBarRenderer)?void 0:Jn.chapters;var Kn;a.DZ=null==(Kn=Xb.playerBarActionButton)?void 0:Kn.buttonRenderer}g.bE(a.u)&&(a.Rf=!!qa.addToMenu);hua(a,qa.shareButton);var Pi=qa.productsInVideoOverlayRenderer;Pi&&(a.shoppingOverlayRenderer=Pi.shoppingOverlayRenderer);var Ln=qa.autoplay;if(Ln)var Hf=
Ln.playerOverlayAutoplayRenderer;a.progressBarStartPosition=qa.startPosition;a.progressBarEndPosition=qa.endPosition}}if(!dc&&O){var Mn=O.endScreen&&O.endScreen.endScreen;Mn&&(dc=Mn.results)}if(O){var Zj=O.desktopOverlay&&O.desktopOverlay.desktopOverlayConfigRenderer;Zj&&(Zj.suppressShareButton&&(a.showShareButton=!1),Zj.suppressWatchLaterButton&&(a.Rf=!1))}xc&&iua(a,b,xc);var Nn=ND(0,b.autoplay_count);if(dc){for(var Ah=O||null,Yq=Hf||null,Be=[],On=!0,ak=g.q(dc),Gl=ak.next();!Gl.done;Gl=ak.next()){var Qi=
Gl.value,Bh=void 0,Lb=null;if(Qi.endScreenVideoRenderer){var gf=Qi.endScreenVideoRenderer,Pg=gf.title;Lb=new g.QE(a.u);Lb.videoId=gf.videoId;Lb.lengthSeconds=gf.lengthInSeconds||0;var Hl=gf.publishedTimeText;Hl&&(Lb.publishedTimeText=g.Sy(Hl));var Pn=gf.shortBylineText;Pn&&(Lb.author=g.Sy(Pn));var Qn=gf.shortViewCountText;Qn&&(Lb.shortViewCount=g.Sy(Qn));if(Pg){Lb.title=g.Sy(Pg);var Fc=Pg.accessibility;if(Fc){var bk=Fc.accessibilityData;bk&&bk.label&&(Lb.Rl=bk.label)}}var Ri=gf.navigationEndpoint;
if(Ri){Bh=Ri.clickTrackingParams;var Td=Ri.watchEndpoint;Td?Lb.Ov=Td:Ri.urlEndpoint&&(Lb.watchUrl=Ri.urlEndpoint.url)}var Zq=gf.thumbnailOverlays;if(Zq)for(var Rn=g.q(Zq),Si=Rn.next();!Si.done;Si=Rn.next()){var ck=Si.value.thumbnailOverlayTimeStatusRenderer;if(ck)if("LIVE"===ck.style){Lb.isLivePlayback=!0;break}else if("UPCOMING"===ck.style){Lb.isUpcoming=!0;break}}Lb.Y=OE(gf.thumbnail)}else if(Qi.endScreenPlaylistRenderer){var Ch=Qi.endScreenPlaylistRenderer,Dh=Ch.navigationEndpoint;if(!Dh)continue;
var dk=Dh.watchEndpoint;if(!dk)continue;var Sn=dk.videoId;Lb=new g.PE(a.u);Lb.playlistId=Ch.playlistId;Lb.playlistLength=Number(Ch.videoCount)||0;Lb.i=Sn||null;Lb.videoId=Sn;var Il=Ch.title;Il&&(Lb.title=g.Sy(Il));var Tn=Ch.shortBylineText;Tn&&(Lb.author=g.Sy(Tn));Bh=Dh.clickTrackingParams;Lb.Y=OE(Ch.thumbnail)}Lb&&(Bh&&(Lb.sessionData={itct:Bh}),On?(jua(Lb,Ah,Yq,Nn),Be.splice(0,0,Lb),On=!1):Be.push(Lb))}a.suggestions=Be}if(Hf){a.EJ=!!Hf.preferImmediateRedirect;a.wc=a.wc||!!Hf.webShowNewAutonavCountdown;
a.Gi=a.Gi||!!Hf.webShowBigThumbnailEndscreen;if(a.wc||a.Gi){var Ce=Hf,Qg=dc||null,Un=O||null,yc=new g.QE(a.u);yc.videoId=Ce.videoId;var Vn,Jl,Wn=null==Qg?void 0:null==(Vn=Qg[0])?void 0:null==(Jl=Vn.endScreenVideoRenderer)?void 0:Jl.navigationEndpoint;if(Wn){var Xn=Wn.clickTrackingParams;Xn&&(yc.sessionData={itct:Xn})}var ek=Ce.videoTitle;if(ek){yc.title=g.Sy(ek);var Fd=ek.accessibility;if(Fd){var Kl=Fd.accessibilityData;Kl&&Kl.label&&(yc.Rl=Kl.label)}}var Ll=Ce.byline;Ll&&(yc.author=g.Sy(Ll));var Yn=
Ce.publishedTimeText;Yn&&(yc.publishedTimeText=g.Sy(Yn));var If=Ce.shortViewCountText;If&&(yc.shortViewCount=g.Sy(If));var Zn=Ce.thumbnailOverlays;if(Zn)for(var fk=g.q(Zn),Gd=fk.next();!Gd.done;Gd=fk.next()){var Rg=Gd.value.thumbnailOverlayTimeStatusRenderer;if(Rg)if("LIVE"===Rg.style){yc.isLivePlayback=!0;break}else if("UPCOMING"===Rg.style){yc.isUpcoming=!0;break}else if("DEFAULT"===Rg.style&&Rg.text){yc.lengthText=g.Sy(Rg.text);var Wu=Rg.text.accessibility;if(Wu){var Ml=Wu.accessibilityData;Ml&&
Ml.label&&(yc.tq=Ml.label||"")}break}}yc.Y=OE(Ce.background);var gk=Ce.nextButton;if(gk){var hk=gk.buttonRenderer;if(hk){var $q=hk.navigationEndpoint;if($q){var cg=$q.watchEndpoint;cg&&(yc.Ov=cg)}}}if(Ce.topBadges){var nd=Ce.topBadges[0];if(nd){var Eh=nd.metadataBadgeRenderer;Eh&&"BADGE_STYLE_TYPE_PREMIUM"==Eh.style&&(yc.FB=!0)}}var $n=Ce.alternativeTitle;$n&&(yc.un=g.Sy($n));jua(yc,Un,Ce,Nn);a.suggestions||(a.suggestions=[]);a.suggestions[0]=yc}null!=Hf.countDownSecs&&(a.rO=1E3*Hf.countDownSecs);
var ao;a.BZ=null==(ao=Hf.cancelButton)?void 0:ao.buttonRenderer}a.watchNextResponse.currentVideoThumbnail&&(a.Y=OE(a.watchNextResponse.currentVideoThumbnail));if(!a.L("player_parse_profile_picture_from_watch_next_killswitch")){var ar,Fh,NA,bo,OA,Xu=null==(ar=a.watchNextResponse)?void 0:null==(Fh=ar.contents)?void 0:null==(NA=Fh.twoColumnWatchNextResults)?void 0:null==(bo=NA.results)?void 0:null==(OA=bo.results)?void 0:OA.contents;if(Xu&&Xu[1]){var br,PA,QA,RA,Nl=null==(br=Xu[1].videoSecondaryInfoRenderer)?
void 0:null==(PA=br.owner)?void 0:null==(QA=PA.videoOwnerRenderer)?void 0:null==(RA=QA.thumbnail)?void 0:RA.thumbnails;Nl&&Nl.length&&(a.profilePicture=Nl[Nl.length-1].url)}}var SA=a.watchNextResponse.onResponseReceivedEndpoints;if(SA)for(var TA=g.q(SA),Yu=TA.next();!Yu.done;Yu=TA.next()){var Ol=Yu.value;Ol.changeKeyedMarkersVisibilityCommand&&(a.vC=Ol.changeKeyedMarkersVisibilityCommand)}}};
yF=function(a){return!!(a.B&&a.B.videoInfos&&a.B.videoInfos.length)};
BF=function(a){if(a.L("html5_single_format_policy")&&a.lc)return a.lc;var b=a.Ha,c=!!a.i&&(ara(a.i)||bra(a.i)||cra(a.i)),d=a.u,e=!!a.i&&a.i.Af,f=zF(a),k=a.jD,l=a.isOtf(),m=a.BD(),n=a.wb,p=a.oe,r=new Kra;if(EE(d)||d.L("html5_logging_format_selection"))r.N=!0;d.L("html5_allow_chromecast_opus")&&(r.Ia=!0);r.Wa=f;r.ya=k&&d.u;r.oe=p;du("windows nt 5.1")&&!g.Fz&&(r.i=!0);if(f=c)f=d.L("disable_html5_ambisonic_audio")||!(g.AE(d)||d.L("html5_enable_spherical")||d.L("html5_enable_spherical3d"))?!1:Gsa(d);f&&
(r.Ta=!0);b&&(r.i=!0,r.Ab=!0);l&&!d.L("html5_otf_prefer_vp9")&&(r.i=!0);n&&(r.i=!0);Vz(d.j,Wz.CHANNELS)&&(d.L("html5_enable_aac51")&&(r.va=!0),d.L("html5_enable_ac3")&&(r.I=!0),d.L("html5_enable_eac3")&&(r.J=!0),d.L("html5_enable_ac3_gapless")&&(r.Ha=!0));d.L("html5_block_8k_hfr")&&(r.fb=!0);r.W=g.lD(d.experiments,"html5_max_selectable_quality_ordinal");r.Y=g.lD(d.experiments,"html5_min_selectable_quality_ordinal");!d.L("html5_kaios_hd_killswitch")&&TD&&(r.xb=480);if(e||c)r.Ya=!1;r.jb=!1;b=cD(d,r.u);
0<b&&2160>b&&(IC()||d.L("html5_format_hybridization"))&&(r.u.supportsChangeType=+IC(),r.j=b);2160<=b&&(r.B=!0);Ira()&&(r.u.serveVp9OverAv1IfHigherRes=0,r.Hb=!1);r.BD=m;m=g.qw||pu()&&!m?!1:!0;r.Qa=m;r.xa=d.L("html5_format_hybridization");r.wb=d.L("html5_disable_encrypted_vp9_live_non_2k_4k");gu()&&a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(r.I=!0,r.J=!0);a.Ha&&a.isAd()&&
(a.Pl&&(r.ea=a.Pl),a.Ol&&(r.C=a.Ol));r.La=a.isLivePlayback&&AF(a)&&a.u.L("html5_drm_live_audio_51");return a.lc=r};
lua=function(a){oz("drm_pb_s",void 0,a.xa);a.Mc||a.i&&Yz(a.i);var b={};a.i&&(b=Tz(BF(a),a.u.j,a.i,function(c){return a.Z("ctmp","fmtflt",c)},!0));
b=new oD(b,a.u.experiments,a.EL,kua(a),function(c,d){a.Ba(c,d)});
g.J(a,b);a.pk=!1;a.Ia=!0;Ora(b,function(c){oz("drm_pb_f",void 0,a.xa);for(var d=g.q(c),e=d.next();!e.done;e=d.next())switch(e=e.value,e.flavor){case "fairplay":e.j=a.Mc;e.J=a.DY;e.I=a.tY;break;case "widevine":e.u=a.JM}a.zr=c;if(0<a.zr.length&&(a.N=a.zr[0],2<=a.u.N)){c={};d=g.q(Object.entries(a.N.i));for(e=d.next();!e.done;e=d.next()){var f=g.q(e.value);e=f.next().value;f=f.next().value;var k="unk";(e=e.match(/(.*)codecs="(.*)"/))&&(k=e[2]);c[k]=f}a.Ba("drmProbe",c)}sF(a)})};
fua=function(a,b){var c;(c=!b)||(c=!(!a.L("html5_manifestless_unplugged")&&a.isLivePlayback&&g.vE(a.u)&&g.kE(a.u)?0:!vF(a)&&a.adaptiveFormats));if(c)return null;CF(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(yra=!0);c=DF(b);var d=Date.now();b=jra(c,a.Kd,a.lengthSeconds,a.isLivePlayback,a.bf,a.u);d=Date.now()-d;if(a.L("html5_log_manifest_performance")){var e=fra(b)?1:0;a.Ba("mfsp",{wasm:e,t:d})}0<c.length&&(c=c[0],c.url&&c.sp&&c.s&&(c=SC(c.url,c.sp,c.s),c=Number(c.get("max_sq"))||Infinity,
isFinite(c)&&(a.Zg=!0)));return b};
vF=function(a){return gu()?!EF(a):iu()?!(!a.Mc||!a.L("html5_enable_safari_fairplay")):!1};
EF=function(a){return CF(a,"html5_enable_tvos_dash_dogfood")||a.L("html5_enable_tvos_dash")&&(a.L("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"'))};
kua=function(a){return a.useCobaltWidevine?gu()?EF(a):!1:!1};
xF=function(a){return!(!a.i||!a.i.isManifestless)};
mua=function(a){if(!Gz())return!1;if(a.L("html5_streaming_debug")||xF(a)&&("ULTRALOW"==a.latencyClass||21530001==FF(a)))return!0;if(!window.AbortController&&!Hz()||a.Ha)return!1;if(a.L("html5_streaming_xhr"))return!0;var b;return a.L("html5_streaming_xhr_vod")&&!1===(null==(b=a.i)?void 0:b.Af)||a.L("html5_streaming_xhr_manifestless")&&xF(a)?!0:!1};
nua=function(a){return spa({hasSubfragmentedFmp4:a.hasSubfragmentedFmp4,Yk:a.Yk,defraggedFromSubfragments:a.defraggedFromSubfragments,isManifestless:xF(a),zH:mua(a)})};
FF=function(a){return a.isLowLatencyLiveStream&&void 0!=a.i&&5<=XC(a.i)?21530001:a.liveExperimentalContentId};
dua=function(a){return gu()&&EF(a)?!1:vF(a)&&g.vE(a.u)&&!a.isLivePlayback||!rD()||a.xF?!0:!1};
pua=function(a){a.Ia=!0;a.qd=!1;if(eua(a))rta(a.videoId).then(function(d){oua(a,d)}).then(function(){sF(a)});
else{Hy(a.kb)||g.Rx(new g.Kv("DASH MPD Origin invalid: ",a.kb));var b=a.kb,c=g.lD(a.u.experiments,"dash_manifest_version")||4;b=g.Hj(b,{mpd_version:c});a.isLowLatencyLiveStream&&"NORMAL"!=a.latencyClass||(b=g.Hj(b,{pacing:0}));sra(b,a.u.experiments,a.isLivePlayback).then(function(d){a.isDisposed()||(wF(a,d,!0),oz("mrc",void 0,a.xa),sF(a))},function(d){a.isDisposed()||(a.Ia=!1,a.Z("dataloaderror",new g.vD("manifest.net.retryexhausted",{backend:"manifest",
rc:d.status},1)))});
oz("mrs",void 0,a.xa)}};
oua=function(a,b){var c=b.map(function(e){return e.itag}),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 Ota(e)}).join(",");
d=fua(a,d);wF(a,d);a.Ba("dlr",{})};
sF=function(a){a.isDisposed()||(a.Ia=!1,a.Z("dataloaded"))};
wF=function(a,b,c){c=void 0===c?!1:c;a.i=b;g.J(a,b);b.Ee=a.Ee;b.zg=a.zg;b.I=a.iL;b.C=a.VJ;a.L("html5_start_walltime_min_seekable_killswitch")||(b.J=a.zM);qua(a)&&a.va.push("webgl");a.i.isLive||(a.isLivePlayback=!1);var d=b.sourceUrl.split("/");-1!=d.indexOf("manifest_duration")&&(a.dh=Number(d[d.indexOf("manifest_duration")+1]));b.u&&(b.subscribe("clienttemp",a.Ba,a),c?b.subscribe("refresh",a.rN,a):b.subscribe("cuepointsadded",a.EK,a));Yz(b)&&(a.pk=!0)};
AF=function(a){return a.Kd?!0:!!a.i&&Yz(a.i)};
vua=function(a,b){if(a.isDisposed())return Rt();a.B=null;a.fb=null;a.Hb=null;if(CF(a,"html5_high_res_logging")||CF(a,"html5_high_res_logging_live_infra"))a.u.N=2;return rua(a,b).then(void 0,function(){return sua(a,b)}).then(void 0,function(){return tua(a)}).then(void 0,function(){return uua(a)})};
rua=function(a,b){var c=b||dua(a);if(!a.i||c)return a.Ba("skipDash",{dm:!!a.i,air:b,dd:a.xF,mss:rD()}),Rt();zF(a)&&wra(a.i,a.isLivePlayback);CF(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(a.u.j.j=!0);return St().then(function(){return rpa(BF(a),a.u.j,a.i,a.N,function(d){return a.Z("ctmp","fmtflt",d)}).then(function(d){wua(a,d);
/^av/.test(a.clientPlaybackNonce)&&a.lc&&a.Ba("av1",a.lc.u)})})};
sua=function(a,b){if(b&&a.hlsvp)return Rt();if(a.hlsFormats){b=DF(a.hlsFormats);var c;if((null==(c=a.lc)?0:c.N)&&b){c=[];for(var d=g.q(b),e=d.next();!e.done;e=d.next())c.push(e.value.itag);a.Ba("hlsfmt",{itags:c.join(".")})}a.Xq=Osa(a.u,b);c=a.clientPlaybackNonce;var f,k,l,m;return Tsa(a.u,a.isAd(),b,null!=(m=null==(f=a.playerResponse)?void 0:null==(k=f.captions)?void 0:null==(l=k.playerCaptionsRenderer)?void 0:l.baseUrl)?m:null,a.hk,c,function(n){return a.Z("ctmp","hlsflt",n)}).then(function(n){for(var p=
0,r=[],t=g.q(n),w=t.next();!w.done;w=t.next()){w=w.value;
var x=void 0;r.push(null==(x=w.vf())?void 0:x.Vb());var y=x=void 0;(null==(x=w.vf())?void 0:null==(y=x.audio)?void 0:y.numChannels)>p&&(p=w.vf().audio.numChannels)}2<p&&a.Ba("hlschl",{mn:p});var z;(null==(z=a.lc)?0:z.N)&&a.Ba("hlsfmtaf",{itags:r.join(".")});GF(a,n)})}return Rt()};
tua=function(a){return a.Ui&&a.xI?Wsa(a.u,a.isAd(),a.Ui).then(function(b){GF(a,b)}):Rt()};
uua=function(a){var b=DF(a.Vi,a.VH);if(a.hlsvp){var c=Uta(a.hlsvp,a.clientPlaybackNonce,a.hk);b.push(c)}return Usa(a.u,a.isAd(),b,xua(a)).then(function(d){GF(a,d)})};
wua=function(a,b){a.B=b;b=a.getAvailableAudioTracks();b=b.concat(a.sj);for(var c=0;c<a.QD.length;c++)for(var d=a.QD[c],e=0;e<b.length;e++){var f=b[e],k=f.Fc.id==d.audioTrackId;if(f.Fc.isDefault&&c==a.KP||k){if(d.captionTrackIndices)for(k=0;k<d.captionTrackIndices.length;k++)f.captionTracks[k]=a.captionTracks[d.captionTrackIndices[k]];void 0!==d.defaultCaptionTrackIndex&&(f.u=a.captionTracks[d.defaultCaptionTrackIndex]);void 0!==d.forcedCaptionTrackIndex&&(f.i=a.captionTracks[d.forcedCaptionTrackIndex]);
f.j=d.visibility||"UNKNOWN";f.captionsInitialState=d.captionsInitialState||"CAPTIONS_INITIAL_STATE_UNKNOWN"}}if(a.N&&a.B&&a.B.videoInfos&&!(0>=a.B.videoInfos.length)&&(b=pC(a.B.videoInfos[0]),b!=("fairplay"==a.N.flavor)))for(c=g.q(a.zr),d=c.next();!d.done;d=c.next())if(d=d.value,b==("fairplay"==d.flavor)){a.N=d;break}};
GF=function(a,b){a.Hb=b;wua(a,new Pz(g.po(a.Hb,function(c){return c.vf()})))};
xua=function(a){var b={cpn:a.clientPlaybackNonce,c:a.u.deviceParams.c,cver:a.u.deviceParams.cver};a.ir&&(b.ptk=a.ir,b.oid=a.yJ,b.ptchn=a.xJ,b.pltype=a.CJ,a.qq&&(b.m=a.qq));return b};
g.HF=function(a){return vF(a)&&a.Mc?(a={},a.fairplay="https://web.archive.org/web/20220130220643/https://youtube.com/api/drm/fps?ek=uninitialized",a):a.j&&a.j.Kd||null};
yua=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.text?g.Sy(b.text):a.paidContentOverlayText};
IF=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.durationMs?lh(b.durationMs):a.paidContentOverlayDurationMs};
JF=function(a){var b="";if(a.sC)return a.sC;a.isLivePlayback&&(b=a.allowLiveDvr?"dvr":a.isPremiere?"lp":a.bf?"post":a.Zg?"window":"live");return b};
g.KF=function(a,b){return"string"!==typeof a.keywords[b]?null:a.keywords[b]};
LF=function(a){return!!(a.kb||a.adaptiveFormats||a.Vi||a.Ui||a.hlsvp)};
rF=function(a){if(a.L("html5_onesie")&&a.errorCode)return!1;var b=g.$b(a.va,"ypc");a.ypcPreview&&(b=!1);return a.isValid()&&!a.Ia&&(LF(a)||g.$b(a.va,"heartbeat")||b)};
DF=function(a,b){a=vt(a);var c={};if(b){b=g.q(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.q(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};
hua=function(a,b){a.showShareButton=!!b;var c,d,e=(null==b?void 0:null==(c=b.buttonRenderer)?void 0:c.navigationEndpoint)||(null==b?void 0:null==(d=b.buttonRenderer)?void 0:d.command);e&&(a.Ak=!!e.copyTextEndpoint)};
Wta=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.qg=c);if(a.qg){if(c=a.qg.videoFlags)c.playableInEmbed&&(a.allowEmbed=!0),c.isPrivate&&(a.isPrivate=!0),c.userDisplayName&&(b.user_display_name=c.userDisplayName),c.userDisplayImage&&(b.user_display_image=c.userDisplayImage);if(c=a.qg.embedPreview){c=c.thumbnailPreviewRenderer;d=c.controlBgHtml;null!=d?(a.Wa=d,a.C=!0):(a.Wa="",a.C=!1);if(d=c.defaultThumbnail)a.Y=OE(d),a.sampledThumbnailColor=
d.sampledThumbnailColor;var e;(d=null==c?void 0:null==(e=c.videoDetails)?void 0:e.embeddedPlayerOverlayVideoDetailsRenderer)&&iua(a,b,d);var f;if(e=null==c?void 0:null==(f=c.videoDetails)?void 0:f.musicEmbeddedPlayerOverlayVideoDetailsRenderer)a.CH=e.title,a.QG=e.byline,e.musicVideoType&&(a.musicVideoType=e.musicVideoType);a.Rf=!!c.addToWatchLaterButton;hua(a,c.shareButton);var k,l,m;if(f=null==c?void 0:null==(k=c.playButton)?void 0:null==(l=k.buttonRenderer)?void 0:null==(m=l.navigationEndpoint)?
void 0:m.watchEndpoint)gua(a,f),a.videoId=f.videoId||a.videoId;c.videoDurationSeconds&&(a.lengthSeconds=lh(c.videoDurationSeconds));c.webPlayerActionsPorting&&Ita(a,c.webPlayerActionsPorting);var n;if(k=null==c?void 0:null==(n=c.playlist)?void 0:n.playlistPanelRenderer){n=[];l=Number(k.currentIndex);if(k.contents)for(m=0,f=k.contents.length;m<f;m++)if(e=k.contents[m].playlistPanelVideoRenderer)c=e.shortBylineText?g.Sy(e.shortBylineText):"",d=e.title?g.Sy(e.title):"",n.push({author:c,encrypted_id:e.videoId,
title:d,channel_path:m===l?b.channel_path:"",profile_picture:m===l?b.profile_picture:"",is_private:m===l?a.isPrivate:!1,is_dni:m===l?a.C:!1,dni_color:m===l?a.Wa:""});b={index:k.currentIndex,list:k.playlistId,playlist_length:k.totalVideos,video:n};k.titleText&&(b.title=g.Sy(k.titleText));k.shortBylineText&&(b.author=g.Sy(k.shortBylineText));a.NP=b}}if(a.qg.previewPlayabilityStatus){if(a.lr=a.qg.previewPlayabilityStatus,b=a.lr,!["OK","LIVE_STREAM_OFFLINE"].includes(b.status)){n=b.errorScreen;if(k=null==
n?void 0:n.playerErrorMessageRenderer){a.LF=k;if(l=k.reason)a.errorReason=g.Sy(l);if(k=k.subreason)a.Ai=g.Sy(k)}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 p;(null==n?0:null==(p=n.playerKavRenderer)?0:p.kavUrl)?a.errorDetail="4":a.errorDetail="3";break;default:a.errorDetail=b.isBlockedInRestrictedMode?"5":"0"}}}else a.qg.playabilityStatus&&(a.lk=a.qg.playabilityStatus,
zua(a)&&(a.errorDetail="0",a.lk&&((p=a.lk.embeddedPlayerErrorMessageRenderer)?a.LF=p.embeddedPlayerErrorMessageRenderer:a.L("embeds_playabilitystatus_deprecation_killswitch")||(a.errorReason=a.lk.reason||null))));(p=a.qg.attestation)&&Dta(a,p);(p=a.qg.permissions)&&p.allowImaMonetization&&(a.allowImaMonetization=!0)}};
gua=function(a,b){var c;if(b=null==b?void 0:null==(c=b.watchEndpointSupportedOnesieConfig)?void 0:c.html5PlaybackOnesieConfig)a.gr=new wta(b)};
jua=function(a,b,c,d){d={autonav:"1",playnext:String(d)};a.playlistId&&(d.autoplay="1");if(b){var e,f,k,l,m=null==(e=b.autoplay)?void 0:null==(f=e.autoplay)?void 0:null==(k=f.sets)?void 0:null==(l=k[0])?void 0:l.autoplayVideo;m&&((e=m.clickTrackingParams)&&(d.itct=e),e=m.watchEndpoint)&&(a.jK=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.Nv=d};
iua=function(a,b,c){var d=c.channelThumbnail;d&&(d=d.thumbnails)&&(d=d[0])&&(b.profile_picture=d.url);var e,f,k;if(d=null==c?void 0:null==(e=c.channelThumbnailEndpoint)?void 0:null==(f=e.channelThumbnailEndpoint)?void 0:null==(k=f.urlEndpoint)?void 0:k.urlEndpoint)b.channel_path=d.url;if(e=c.collapsedRenderer)if(e=e.embeddedPlayerOverlayVideoDetailsCollapsedRenderer){if(f=e.title)b.title=g.Sy(f);if(e=e.subtitle)b.subtitle=g.Sy(e)}if(c=c.expandedRenderer)if(c=c.embeddedPlayerOverlayVideoDetailsExpandedRenderer){if(e=
c.title)b.expanded_title=g.Sy(e);if(e=c.subtitle)b.expanded_subtitle=g.Sy(e);if(c=c.subscribeButton)if(c=c.subscribeButtonRenderer)b.ucid=c.channelId,b.subscribed=c.subscribed,a.Li=!!c.notificationPreferenceToggleButton,c.notificationPreferenceToggleButton&&c.notificationPreferenceToggleButton.toggleButtonRenderer&&(b=c.notificationPreferenceToggleButton.toggleButtonRenderer,b.isToggled?(a.hD=b.toggledServiceEndpoint||null,a.gD=b.defaultServiceEndpoint||null):(a.hD=b.defaultServiceEndpoint||null,
a.gD=b.toggledServiceEndpoint||null))}};
g.MF=function(a){return a.isLivePlayback&&!a.allowLiveDvr};
NF=function(a){return a.isLivePlayback&&a.allowLiveDvr};
Aua=function(a){var b=new Iz("und",new rC("Default","und",!0));b.captionTracks=a.captionTracks;return b};
g.OF=function(a){return!!a.i&&ara(a.i)};
g.PF=function(a){return!!a.i&&bra(a.i)};
qua=function(a){return g.PF(a)||g.OF(a)||g.QF(a)||g.RF(a)};
g.RF=function(a){return!!a.i&&cra(a.i)};
g.QF=function(a){return!!a.i&&dra(a.i)};
g.Bua=function(a){if(a.bD)return null;var b=a.yI;b||(b=a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenUrlRenderer&&a.playerResponse.endscreen.endscreenUrlRenderer.url);return b||null};
g.Cua=function(a){return a.bD?null:a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenRenderer||null};
g.SF=function(a){return a.playerResponse&&a.playerResponse.cards&&a.playerResponse.cards.cardCollectionRenderer||null};
g.TF=function(a){if(!a.playerResponse||!a.playerResponse.annotations)return null;a=g.q(a.playerResponse.annotations);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.playerAnnotationsExpandedRenderer&&b.playerAnnotationsExpandedRenderer.featuredChannel)return b.playerAnnotationsExpandedRenderer;return null};
UF=function(a){return a.adFormat&&"1_5"!=a.adFormat?"adunit":a.u.xa};
VF=function(a){if(a.isAd()&&a.videoId!=a.u.lc)return a.u.lc};
WF=function(a){return a.ll||"detailpage"==UF(a)||"shortspage"==UF(a)||a.mutedAutoplay};
XF=function(a){if(WF(a)){if("detailpage"==UF(a)||"shortspage"==UF(a))return a.dl||0<a.Ab;if(!("17_8"===a.adFormat&&!a.dl||a.OM||"adunit"==UF(a)&&a.Jb))return!0}return!1};
g.YF=function(a){return a.oauthToken||a.u.Sf};
Dua=function(a){var b=1,c=g.lD(a.u.experiments,"html5_default_ad_gain");c&&a.isAd()&&(b=c);c=a.me;a.B&&a.B.i&&a.B.i[0]&&a.jr[a.B.i[0].id]&&(c=a.jr[a.B.i[0].id]);if(a.L("html5_stateful_audio_normalization")&&null!=c){if(a.SL)return Math.min(1,Math.pow(10,-a.nD/20))||b;var d=0;a.L("html5_diff_bias_over_ad_content")&&(d=a.isAd()?0:3);c-=Math.min(0,d+Math.max(a.u.Fi,g.lD(a.u.experiments,"html5_stateful_audio_min_adjustment_value")));a.nD=c}return Math.min(1,Math.pow(10,-c/20))||b};
zF=function(a){var b=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],c="TVHTML5_SIMPLY"===a.u.deviceParams.c&&"MUSIC"===a.u.deviceParams.ctheme;!a.ye&&(g.eE(a.u)||c)&&b.includes(a.musicVideoType)&&(a.ye=!0);if(b=g.fu())b=/Starboard\/([0-9]+)/.exec(g.yb()),b=10>(b?parseInt(b[1],10):NaN);c=a.u;c=("TVHTML5_CAST"===c.deviceParams.c||"TVHTML5"===c.deviceParams.c&&(c.deviceParams.cver.startsWith("6.20130725")||c.deviceParams.cver.startsWith("6.20130726")))&&"MUSIC"===a.u.deviceParams.ctheme;
!a.ye&&(c||Esa(a.u))&&!b&&(b="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"===a.musicVideoType,c=(a.L("cast_prefer_audio_only_for_atv_and_uploads")||a.L("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&"MUSIC_VIDEO_TYPE_ATV"===a.musicVideoType,b||c)&&(a.ye=!0);return!a.u.deviceHasDisplay||a.ye&&a.u.u};
Eua=function(a){return isNaN(a)?0:Math.max((Date.now()-a)/1E3-30,0)};
ZF=function(a){return!(!a.tj||!a.u.u)&&!!a.adaptiveFormats};
eua=function(a){var b;if(b=!!a.cotn)b=a.videoId,b=!!b&&1===UE(b);return b&&!a.tj};
g.$F=function(a){if(!a.i||!a.j||!a.I)return!1;var b=a.i.i;return!!b[a.j.id]&&fA(b[a.j.id].j.i)&&!!b[a.I.id]&&fA(b[a.I.id].j.i)};
Fua=function(a){return a.lr?["OK","LIVE_STREAM_OFFLINE"].includes(a.lr.status):!0};
zua=function(a){return(a=a.lk)&&a.showError?a.showError:!1};
CF=function(a,b){return a.L(b)?!0:(a.fflags||"").includes(b+"=true")};
Gua=function(a){return(a=/html5_log_experiment_id_from_player_response_to_ctmp=([0-9]+)/.exec(a.fflags))?a[1]:null};
aua=function(a,b){if(b=b.video_masthead_ad_quartile_urls)a.XC=b.quartile_0_url,a.GJ=b.quartile_25_url,a.HJ=b.quartile_50_url,a.LJ=b.quartile_75_url,a.FJ=b.quartile_100_url,a.hh=b.quartile_0_urls,a.Br=b.quartile_25_urls,a.Cr=b.quartile_50_urls,a.Dr=b.quartile_75_urls,a.Ar=b.quartile_100_urls};
uF=function(a){return a?rD()?!0:aG&&5>bG?!1:!0:!1};
$ta=function(a){var b={};a=g.q(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.split("=");2==d.length?b[d[0]]=d[1]:b[c]=!0}return b};
Eta=function(a){if(a){if(Foa(a))return a;a=Goa(a);if(Foa(a,!0))return a}return""};
g.Hua=function(a){return a.captionsLanguagePreference||a.u.captionsLanguagePreference||g.KF(a,"yt:cc_default_lang")||a.u.Pe};
cG=function(a){return!!(a.L("enable_linear_player_handling")&&a.isLivePlayback&&a.hasProgressBarBoundaries())};
dG=function(a,b){this.i=a;this.Y=b||{};this.J=String(Math.floor(1E9*Math.random()));this.I={};this.W=this.N=0};
Iua=function(a){return eG(a)&&1==a.getPlayerState(2)};
eG=function(a){a=a.Nc();return void 0!==a&&2==a.getPlayerType()};
fG=function(a){a=a.T();return jE(a)&&!g.vE(a)&&"desktop-polymer"==a.playerStyle};
gG=function(a,b){var c=a.T();aE(c)||"3"!=c.controlsType||a.bb().Ix(b)};
iG=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.i=e;this.j=f;this.id=hG(a)};
hG=function(a){return a+(":"+(Zr.getInstance().i++).toString(36))};
jG=function(a){this.X=a};
Jua=function(a,b){if(0===b||1===b&&(a.X.isMobile&&g.Sv?0:a.X.isMobile||g.vE(a.X)||g.kE(a.X)||lE(a.X)||!g.Sv))return!0;a=g.wh("video-ads");return null!=a&&"none"!==Bn(a,"display")};
Kua=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}};
kG=function(){g.tx.call(this);var a=this;this.i={};g.Ue(this,function(){for(var b=g.q(Object.keys(a.i)),c=b.next();!c.done;c=b.next())delete a.i[c.value]})};
mG=function(){if(null===lG){lG=new kG;an(Pq).j="b";var a=an(Pq),b="h"==Iq(a)||"b"==Iq(a),c=!(wo(),!1);b&&c&&(a.B=!0,a.C=new Rea)}return lG};
Lua=function(a,b,c){a.i[b]=c};
Mua=function(){};
nG=function(a,b,c){this.i=a;this.C=b;this.u=c;this.j=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};
oG=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"};
pG=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||[]]])};
Nua=function(a){return(a=a.pings)?Object.fromEntries(pG(a)):{}};
qG=function(a,b,c,d,e){dG.call(this,a,Nua(a));(a=c&&c.kind)||(a="AD_PLACEMENT_KIND_UNKNOWN");this.Ia=c;this.isPostroll="AD_PLACEMENT_KIND_END"===a;this.u=new nG(0,[]);this.xa=null;this.B={};this.va=null;this.j=0;this.C=null;this.ea=e;this.Ha=null;c=this.i.skipOffsetMilliseconds||0;0<c&&(this.va=c);this.B=ut(this.i.playerVars||"");this.C=this.i.externalVideoId||null;this.j=ND(this.j,this.B.length_seconds);this.ea&&this.C&&(this.Ha=this.ea(this.C));if(this.B.cta_conversion_urls)try{this.B.cta_conversion_urls=
JSON.parse(this.B.cta_conversion_urls)}catch(f){g.S(f)}this.xa=this.i.clickthroughEndpoint||null;this.u=new nG(0,[this.j])};
Oua=function(a){var b=a.B||{};1<a.u.j&&(b.slot_pos=a.u.i);b.autoplay="1";return b};
rG=function(){this.i=[];this.j=0};
sG=function(a,b){b&&a.i.push(b)};
tG=function(a){if(!a)return[];var b=[];a=g.q(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.loggingUrls){c=g.q(c.loggingUrls);for(var d=c.next();!d.done;d=c.next())b.push({baseUrl:d.value.baseUrl})}return b};
uG=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};
vG=function(a){return a&&a.adVideoOffset&&a.adVideoOffset.percent||0};
wG=function(a){return"AD_VIDEO_PROGRESS_KIND_PERCENT"==a.adVideoOffset.kind};
Pua=function(a){a=a.playbackCommands;if(!a)return{};var b={};b.impression=tG(a.impressionCommands)||[];b.error=tG(a.errorCommands)||[];b.mute=tG(a.muteCommands)||[];b.unmute=tG(a.unmuteCommands)||[];b.pause=tG(a.pauseCommands)||[];b.rewind=tG(a.rewindCommands)||[];b.resume=tG(a.resumeCommands)||[];b.skip=tG(a.skipCommands)||[];b.close=tG(a.closeCommands)||[];b.clickthrough=tG(a.clickthroughCommands)||[];b.fullscreen=tG(a.fullscreenCommands)||[];b.active_view_viewable=tG(a.activeViewViewableCommands)||
[];b.active_view_measurable=tG(a.activeViewMeasurableCommands)||[];b.active_view_fully_viewable_audible_half_duration=tG(a.activeViewFullyViewableAudibleHalfDurationCommands)||[];a.activeViewTracking&&(b.audio_audible=tG(a.activeViewTracking.activeViewAudioAudibleCommands)||[],b.audio_measurable=tG(a.activeViewTracking.activeViewAudioMeasurableCommands)||[]);b.end_fullscreen=tG(a.endFullscreenCommands)||[];b.channel_clickthrough=tG(a.channelClickthroughCommands)||[];b.abandon=tG(a.abandonCommands)||
[];b.progress=uG(a.progressCommands.filter(function(c){return"AD_VIDEO_PROGRESS_KIND_MILLISECONDS"==c.adVideoOffset.kind}));
b.start=uG(a.progressCommands.filter(function(c){return wG(c)&&ah(vG(c),0)}));
b.first_quartile=uG(a.progressCommands.filter(function(c){return wG(c)&&ah(vG(c),.25)}));
b.midpoint=uG(a.progressCommands.filter(function(c){return wG(c)&&ah(vG(c),.5)}));
b.third_quartile=uG(a.progressCommands.filter(function(c){return wG(c)&&ah(vG(c),.75)}));
b.complete=uG(a.progressCommands.filter(function(c){return wG(c)&&ah(vG(c),1)}));
return b};
xG=function(a){dG.call(this,a,Pua(a));this.j=a.questions?a.questions.reduce(function(b,c){return(c=c.instreamSurveyAdSingleSelectQuestionRenderer||c.instreamSurveyAdMultiSelectQuestionRenderer)?b+(c.surveyAdQuestionCommon.durationMilliseconds||0)/1E3:b},0):0};
Qua=function(a,b,c,d){this.id=b;this.B=d.Ae;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.u=(this.C=e.getAdBreakUrl||"")?0:2;d.i=parseInt(e.prefetchMilliseconds,10)||0;d.visible=!b.hideCueRangeMarker;var f=Loa(b,d);if(null==f)d=new Py(b,new Gr(-1,-1),!1,"adcuerange:invalid",3),d.deactivate(),d=[null,d];else{e=":"+(Zr.getInstance().i++).toString(36);
var k=d.daiEnabled||d.Ae;f=new Py(b,f,d.visible&&!k,"adcuerange:"+e,3);k=null;if(d.Ae||0<d.i)if(d=Loa(b,d,!0))k=new Py(b,d,!1,"prefetch:"+e,5),f.B=k,k.B=f;d=[k,f]}this.W=d[0];this.i=d[1];this.j=c;this.I=!1;this.N={};this.J=void 0===a.driftRecoveryMs?null:parseInt(a.driftRecoveryMs,10)};
yG=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.i.i||"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"==a.i.i};
AG=function(a,b){var c={};Rua(a,c,b);Sua(c);c.LACT=zG(function(){return Ou().toString()});
c.VIS=zG(function(){return a.getVisibilityState().toString()});
c.SDKV="h.3.0";c.VOL=zG(function(){return a.isMuted()?"0":Math.round(a.getVolume()).toString()});
c.VED="";return c};
Tua=function(a){var b={};if(!a.kind)return g.S(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.S(Error("malformed AdPlacementConfig")),b;b.MIDROLL_POS=zG(Yf(Math.round(lh(a.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else b.MIDROLL_POS=zG(Yf("0"));return b};
zG=function(a){return{toString:function(){return a()}}};
Uua=function(a,b,c){function d(l,m){(m=c[m])&&(f[l]=m)}
function e(l,m){(m=c[m])&&(f[l]=k(m))}
if(!c||g.uf(c))return a;var f=Object.assign({},a),k=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};
Rua=function(a,b,c){b.CPN=zG(function(){var d;(d=a.getVideoData(1))?d=d.clientPlaybackNonce:(g.Rx(Error("Video data is null.")),d=null);return d});
b.AD_MT=zG(function(){return Math.round(Math.max(0,1E3*(null!=c?c:a.getCurrentTime(2,!1)))).toString()});
b.MT=zG(function(){return Math.round(Math.max(0,1E3*a.getCurrentTime(1,!1))).toString()});
b.P_H=zG(function(){return a.bb().xg().height.toString()});
b.P_W=zG(function(){return a.bb().xg().width.toString()});
b.PV_H=zG(function(){return a.bb().getVideoContentRect().height.toString()});
b.PV_W=zG(function(){return a.bb().getVideoContentRect().width.toString()})};
Sua=function(a){a.CONN=zG(Yf("0"));a.WT=zG(function(){return Date.now().toString()})};
Vua=function(a){var b=Object.assign({},{});b.MIDROLL_POS=yG(a)?zG(Yf(Math.round(a.i.start/1E3).toString())):zG(Yf("0"));return b};
Wua=function(a){var b={};b.SLOT_POS=zG(Yf(a.u.i.toString()));return b};
Xua=function(a){var b=a&&-1!=a.indexOf("load_timeout")?"402":"400",c={};return c.YT_ERROR_CODE=(3).toString(),c.ERRORCODE=b,c.ERROR_MSG=a,c};
BG=function(a){for(var b={},c=g.q(Yua),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d];e&&(b[d]=e.toString())}return b};
CG=function(){var a={};Object.assign.apply(Object,[a].concat(g.u(g.Ca.apply(0,arguments))));return a};
DG=function(){};
EG=function(a){this.Np=a};
FG=function(a){this.Ap=a};
$ua=function(a,b,c,d,e,f){e=void 0===e?new FG(new EG(d.getVideoData(1))):e;f=void 0===f?!1:f;g.G.call(this);this.ad=a;this.u=b;this.macros=c;this.i=d;this.Sh=e;this.daiEnabled=f;this.j={tC:.25,SECOND:.5,kD:.75};this.lastUpdatedTimeSecs=null;this.progressPings=Array.from(this.ad.Y.progress||[]);this.progressPings.sort(function(k,l){return k.offsetMilliseconds-l.offsetMilliseconds});
this.unmutedProgressPings=Array.from(this.ad.Y.unmuted_progress||[]);this.unmutedProgressPings.sort(function(k,l){return k.offsetMilliseconds-l.offsetMilliseconds});
Zua(oG(a.i.pings))};
KG=function(a,b){GG(a)||(HG(a)?(IG(a,0,!0),ava(a,b,b)):(IG(a,0,!0),bva(a,0,0,!0)),JG(a,"complete"))};
IG=function(a,b,c){for(c=void 0===c?!1:c;a.ad.N<a.progressPings.length;){var d=LG(a,"progress"),e=a.progressPings[a.ad.N];if(e.offsetMilliseconds<=1E3*b||c)MG(a,e,d),a.ad.N++;else break}};
cva=function(a,b,c){for(c=void 0===c?!1:c;a.ad.W<a.unmutedProgressPings.length;){var d=LG(a,"unmuted_progress"),e=a.unmutedProgressPings[a.ad.W];if(e.offsetMilliseconds<=1E3*b||c)MG(a,e,d),a.ad.W++;else break}};
bva=function(a,b,c,d){d=void 0===d?!1:d;(b>=c*a.j.tC||d)&&JG(a,"first_quartile");(b>=c*a.j.SECOND||d)&&JG(a,"midpoint");(b>=c*a.j.kD||d)&&JG(a,"third_quartile")};
dva=function(a,b,c,d){d=void 0===d?!1:d;(b>=c*a.j.tC||d)&&JG(a,"unmuted_first_quartile");(b>=c*a.j.SECOND||d)&&JG(a,"unmuted_midpoint");(b>=c*a.j.kD||d)&&JG(a,"unmuted_third_quartile")};
NG=function(a,b,c,d){if(null==a.lastUpdatedTimeSecs){if(c<d||1<c-d)return}else if(a.lastUpdatedTimeSecs>d||d>c)return;JG(a,b)};
ava=function(a,b,c){if(0<c&&0<b){var d=a.i.zb(a.i.getPresentingPlayerType());g.V(d,16)||g.V(d,32)||(NG(a,"first_quartile",b,c*a.j.tC),NG(a,"midpoint",b,c*a.j.SECOND),NG(a,"third_quartile",b,c*a.j.kD))}a.lastUpdatedTimeSecs=b};
OG=function(a,b){for(var c=LG(a,b),d=g.q(a.ad.Y[b]||[]),e=d.next();!e.done;e=d.next())MG(a,e.value,c);a.ad.I[b]=!0};
JG=function(a,b){a.ad.I.hasOwnProperty(b)||OG(a,b)};
PG=function(a,b){return a.ad.I.hasOwnProperty(b)};
MG=function(a,b,c){var d=b.baseUrl;if(d){b=b.headers||[];for(var e=a.Sh,f=e.send,k={},l=AG(a.i),m=g.q(Object.keys(l)),n=m.next();!n.done;n=m.next())n=n.value,k[n]=l[n].toString();a.i.T().L("html5_enable_cpn_macro_substitution_for_trv_discovery_ads")&&(l=a.i.getVideoData(2))&&(k.AD_CPN=l.clientPlaybackNonce);a=Object.assign(k,a.macros);f.call(e,d,a,c,b)}};
LG=function(a,b){var c=a.u;a=a.ad;if(a.Ew())if(b=eva(b),null==b)c={};else{var d;(d=a.ya()())||(d=(d=c.G)&&d.Nc?(d=d.Nc())&&2==d.getPlayerType()?QG(d):null:null);d?(c={opt_adElement:d,opt_fullscreen:c.G.isFullscreen()},c=Rq(b,a.J,c)):c={}}else c={};return c?Object.assign({},c):{}};
HG=function(a){return!a.i.T().L("html5_bulleit_dai_logging_policy_upg_livestream_killswitch")&&a.daiEnabled};
GG=function(a){return HG(a)&&!PG(a,"impression")};
RG=function(a){return HG(a)&&PG(a,"seek")};
SG=function(a,b){HG(a)?OG(a,b):JG(a,b)};
g.TG=function(a,b){this.state=a;this.Ho=b};
UG=function(a,b){return g.V(a.state,b)&&!g.V(a.Ho,b)?1:!g.V(a.state,b)&&g.V(a.Ho,b)?-1:0};
g.VG=function(a,b){return 0<UG(a,b)};
WG=function(a,b,c,d,e,f){f=void 0===f?0:f;g.tx.call(this);this.G=a;this.i=d;this.j=e;this.j.i[b.J]=this;this.j.subscribe("adactiveviewmeasurable",this.kO,this);this.j.subscribe("adfullyviewableaudiblehalfdurationimpression",this.lO,this);this.j.subscribe("adoverlaymeasurableimpression",this.mO,this);this.j.subscribe("adoverlayunviewableimpression",this.nO,this);this.j.subscribe("adoverlayviewableendofsessionimpression",this.oO,this);this.j.subscribe("adoverlayviewableimmediateimpression",this.pO,
this);this.j.subscribe("adviewableimpression",this.qO,this);this.ad=b;this.va=[];this.macros=c;this.N=!1;this.xa=!Jua(new jG(this.G.T()),f);this.B=!1};
XG=function(a,b){jc(a.va,b);fva(a,b,1)};
YG=function(a,b){if(a.N){var c=a.i,d=a.getDuration();!GG(c)&&0<d&&(IG(c,b),HG(c)?ava(c,b,d):bva(c,b,d,!1));a.B||(c=a.i,a=a.getDuration(),!GG(c)&&0<a&&(cva(c,b),dva(c,b,a,!1)))}};
fva=function(a,b,c){0!=b.length&&(b=g.po(b,function(d){return new Ry(d,c,d.id)}),a.Z("onAdUxUpdate",b))};
ZG=function(a){var b={};b.abandon=a.abandonCommands&&tG(a.abandonCommands.commands)||[];dG.call(this,a,b)};
$G=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?!1:f;iG.call(this,"ad-action-interstitial",a,b,c,d);this.i=d;this.Hg=e;this.cj=f};
aH=function(a,b,c,d,e,f){WG.call(this,a,b,c,d,e,1);this.C=b;this.u=b.i.durationMilliseconds||0;this.Pb=null;this.I=f};
bH=function(a){dG.call(this,a);this.j=ut(this.i.playerVars||"")};
cH=function(){dG.apply(this,arguments)};
dH=function(){dG.apply(this,arguments)};
gva=function(a,b,c,d,e,f){this.I=a;this.B=b;this.i=c;this.C=d;this.u=e;this.j=f};
eH=function(a,b,c,d,e){WG.call(this,a,b,c,d,e);var f=this;this.I=b;this.u=new g.K(function(){f.gh("load_timeout")},1E4);
g.J(this,this.u);this.C=new qx(this);g.J(this,this.C)};
fH=function(a,b,c){if(c&&!c.includes(a.layoutType))return!1;b=g.q(b);for(c=b.next();!c.done;c=b.next())if(!uy(a.Ea,c.value))return!1;return!0};
gH=function(a){return!!(a.bU&&a.slot&&a.layout)};
hva=function(a){iG.call(this,"ad-message",a)};
hH=function(a,b,c,d,e,f,k,l){WG.call(this,a,b,c,d,e);var m=this;this.C=b;this.W=b.i.durationMs||0;this.u=l;this.Y=!1;this.J=this.I=0;this.ea=function(){var n=m.G.getProgressState().current;n<m.I?m.yg():n>m.J&&m.Ch()}};
jva=function(a,b){if(a.u&&a.Y)if(a.Y=!1,a.G.T().experiments.Xa("html5_externally_manage_ad_notify_layout")){var c=a.C.i;if(gH(c)){var d=c.slot;c=c.layout;b=iva(b);a=g.q(a.u.listeners);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=d,k=c,l=b;iH(e.i(),f,k,l);jH(e.i(),f)}}else g.Rx(Error("adMessageRenderer is not augmented on termination"))}else for(d=g.q(a.u.listeners),c=d.next();!c.done;c=d.next())c=c.value,c.u?(b=c.u,c.u=void 0,c.j=void 0,jH(c.i(),b)):T("Received AdNotify terminated event when no slot is active")};
iva=function(a){switch(a){case "adabandonedreset":return"user_cancelled";case "adended":return"normal";case "aderror":return"error";case void 0:return"abandoned";default:return g.Rx(Error("Unexpected eventType for adNotify exit")),"abandoned"}};
g.kH=function(a,b){for(var c={},d=g.q(Object.keys(b)),e=d.next();!e.done;c={kC:c.kC},e=d.next())e=e.value,c.kC=b[e],a=a.replace(new RegExp("\\$"+e,"gi"),function(f){return function(){return f.kC}}(c));
return a};
lH=function(a){return a?g.Sy(a):null};
kva=function(a){if(!a)return[];var b=a.loggingUrls;if(!b)return[];a=[];b=g.q(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c.baseUrl&&a.push(c.baseUrl);return 0===a.length?[]:a};
lva=function(a){return a.cancelRenderer&&a.cancelRenderer.buttonRenderer?(a=a.cancelRenderer.buttonRenderer.serviceEndpoint)&&a.muteAdEndpoint?a:null:null};
mva=function(a){var b={};b.baseUrl=a;return{loggingUrls:[b],pingingEndpoint:{hack:!0}}};
pva=function(a,b,c,d){if(b.button&&b.button.buttonRenderer&&(!b.button.buttonRenderer.command||!b.button.buttonRenderer.command.adInfoDialogChoiceEndpoint)&&b.button.buttonRenderer.serviceEndpoint&&b.button.buttonRenderer.serviceEndpoint.adInfoDialogEndpoint){var e=b.button.buttonRenderer.serviceEndpoint.adInfoDialogEndpoint.dialog;e&&e.adInfoDialogRenderer&&(nva(a,e.adInfoDialogRenderer,c),a.whyThisAdInfo.menuTitle=lH(b.hoverText)||"",e.adInfoDialogRenderer.muteAdRenderer&&(b=e.adInfoDialogRenderer.muteAdRenderer.buttonRenderer)&&
ova(a,b,c,d))}};
nva=function(a,b,c){var d=lH(b.confirmLabel)||"",e=lH(b.title)||"",f=[];if(b.adReasons)for(var k=g.q(b.adReasons),l=k.next();!l.done;l=k.next())f.push(lH(l.value)||"");k=b.headerTitle?g.Sy(b.headerTitle):"";d={closeButton:d,menuTitle:k,targetingReasonHeader:e,targetingReasons:f,dialogMessage:lH(b.dialogMessage)||"",adSettingsLink:null,cancelButton:null,continueButton:null,controlText:null};a.whyThisAdInfo=d;a.whyThisAdClicked=function(){if(b.impressionEndpoints)for(var m=g.q(b.impressionEndpoints),
n=m.next();!n.done;n=m.next())c(n.value)};
a.whyThisAdClosed=function(){b.confirmServiceEndpoint&&c(b.confirmServiceEndpoint)}};
ova=function(a,b,c,d){if(b.navigationEndpoint&&b.navigationEndpoint.adFeedbackEndpoint&&b.navigationEndpoint.adFeedbackEndpoint.content){var e=b.navigationEndpoint.adFeedbackEndpoint.content.adFeedbackRenderer;if(e){var f={goneText:"",questionText:"",undoText:"",hoverText:lH(b.text)||"",surveyOptions:[],confirmMuteWithoutFeedbackLabel:""};a.muteAdInfo=f;b=kva(b.navigationEndpoint);var k=mva(b[1]),l=[mva(b[0])];(b=lva(e))&&l.push(b);var m=!1;a.muteAdClicked=function(){m=!0;c(k)};
a.muteAd=function(){m||c(k);m=!1;for(var n=g.q(l),p=n.next();!p.done;p=n.next())c(p.value)};
qva(a,e,d)}}};
qva=function(a,b,c){a.muteAdInfo.goneText=lH(b.title)||"";a.muteAdInfo.questionText=lH(b.reasonsTitle)||"";b.undoRenderer&&(a.muteAdInfo.undoText=lH(b.undoRenderer.buttonRenderer.text)||"");a.sendAdsPing=function(f){c(f)};
a=a.muteAdInfo.surveyOptions;b=g.q(b.reasons||[]);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=lH(e.reason)||"";e=kva(e.endpoint)[0];a.push({label:d,url:e})}};
mH=function(a,b,c,d,e,f){this.j=a;this.C=b;this.i=AG(d);if(f)for(a=g.q(Object.keys(f)),b=a.next();!b.done;b=a.next())b=b.value,this.i[b]=f[b];this.u=c;this.B=e};
rva=function(a,b,c){b.isSkippable=!0;b.skipTime=c.skipOffsetMilliseconds?Math.floor(c.skipOffsetMilliseconds/1E3):0;if(c.skippableRenderer)switch(Object.keys(c.skippableRenderer)[0]){case "skipButtonRenderer":var d=c.skippableRenderer.skipButtonRenderer;b.skip=function(){var e=d.adRendererCommands&&d.adRendererCommands.clickCommand;e?a.Gd(e):a.u.cq()};
b.skipShown=function(){a.Gd(d.adRendererCommands&&d.adRendererCommands.impressionCommand)}}};
sva=function(a,b,c){pva(b,c,function(d){a.Gd(d)},function(d){a.sendAdsPing(d)})};
tva=function(a){for(var b={},c=g.q(Object.keys(a.i)),d=c.next();!d.done;d=c.next())d=d.value,b[d]=a.i[d].toString();return Object.assign(b,a.C)};
uva=function(){return{adNextParams:"",adSystem:0,attributionInfo:null,clickThroughUrl:"",executeCommand:function(){},
instreamAdPlayerOverlayRenderer:null,instreamSurveyAdRenderer:null,slidingTextPlayerOverlayRenderer:null,isBumper:!1,isPostroll:!1,isSkippable:!1,muteAdInfo:null,skipTime:0,videoId:"",videoUrl:"",whyThisAdInfo:null,muteAd:function(){},
muteAdClicked:function(){},
sendAdsPing:function(){},
skip:function(){},
endSurveyOnSubmitted:function(){},
skipShown:function(){},
whyThisAdClicked:function(){},
whyThisAdClosed:function(){},
daiEnabled:!1,remoteSlotsData:null,adBreakRemainingLengthSeconds:null,adBreakEndSeconds:null}};
vva=function(a,b,c,d,e){new mH(a,b,c,d,e,void 0)};
nH=function(a){this.value=a};
oH=function(a){this.value=a};
pH=function(a){this.value=a};
qH=function(a){this.value=a};
rH=function(a){this.value=a};
sH=function(){nH.apply(this,arguments)};
tH=function(a){this.value=a};
uH=function(a){this.value=a};
vH=function(a){this.value=a};
wH=function(a){this.value=a};
xH=function(a){this.value=a};
yH=function(a){this.value=a};
zH=function(){nH.apply(this,arguments)};
AH=function(){nH.apply(this,arguments)};
BH=function(a){this.value=a};
CH=function(a){this.value=a};
DH=function(a){this.value=a};
EH=function(a){this.value=a};
FH=function(a){this.value=a};
GH=function(a){this.value=a};
HH=function(a){this.value=a};
IH=function(a){this.value=a};
JH=function(a){this.value=a};
KH=function(a){this.value=a};
LH=function(a){this.value=a};
MH=function(a){this.value=a};
NH=function(a){this.value=a};
OH=function(a){this.value=a};
PH=function(a){this.value=a};
QH=function(a){this.value=a};
RH=function(a){this.value=a};
SH=function(a){this.value=a};
TH=function(a){this.value=a};
UH=function(a){this.value=a};
VH=function(a){this.value=a};
WH=function(a){this.value=a};
XH=function(a){this.value=a};
YH=function(a){this.value=a};
ZH=function(a){this.value=a};
$H=function(a){this.value=a};
aI=function(a){this.value=a};
bI=function(a){this.value=a};
cI=function(a){this.value=a};
dI=function(a){this.value=a};
eI=function(a){this.value=a};
fI=function(a){this.value=a};
gI=function(a){this.value=a};
hI=function(a){this.value=a};
iI=function(){nH.apply(this,arguments)};
jI=function(){nH.apply(this,arguments)};
kI=function(){nH.apply(this,arguments)};
lI=function(){nH.apply(this,arguments)};
mI=function(){nH.apply(this,arguments)};
nI=function(){nH.apply(this,arguments)};
xva=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 wva(d)?!0:!1};
yva=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=wva(a)):b=!1:b=!1;return b};
wva=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};
Ava=function(a,b,c,d,e,f){this.i=new mH(a,b,c,d,e,zva(f))};
Bva=function(a,b){var c=uva();c.instreamSurveyAdRenderer=b;c.executeCommand=function(d){a.i.Gd(d)};
b=("instreamSurveyAdSingleSelectQuestionRenderer"in b.questions[0]?b.questions[0].instreamSurveyAdSingleSelectQuestionRenderer:b.questions[0].instreamSurveyAdMultiSelectQuestionRenderer).surveyAdQuestionCommon.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer;if(b.skipOrPreviewRenderer)switch(Object.keys(b.skipOrPreviewRenderer)[0]){case "skipAdRenderer":rva(a.i,c,b.skipOrPreviewRenderer.skipAdRenderer)}if(b.adInfoRenderer)switch(Object.keys(b.adInfoRenderer)[0]){case "adHoverTextButtonRenderer":sva(a.i,
c,b.adInfoRenderer.adHoverTextButtonRenderer)}c.sendAdsPing=function(d){a.i.sendAdsPing(d)};
return c};
zva=function(a){var b={};b.SURVEY_LOCAL_TIME_EPOCH_S=zG(function(){var c=new Date;return""+(Math.round(c.valueOf()/1E3)+-60*c.getTimezoneOffset())});
b.SURVEY_ELAPSED_MS=zG(a);return b};
oI=function(a,b,c){g.tx.call(this,!0);var d=this;this.I=b;this.C=c;this.j=a;this.Pb=new g.Di(200);this.Pb.Pa("tick",function(){var e=Date.now(),f=e-d.B;d.B=e;d.i+=f;d.i>=d.j&&(d.i=d.j,d.Pb.stop());e=d.i/1E3;d.C&&d.C.Rb(e);Cva(d,{current:e,duration:d.j/1E3})});
g.J(this,this.Pb);this.i=0;this.u=null;g.Ue(this,function(){d.u=null});
this.B=0};
Cva=function(a,b){a.I.Oa("onAdPlaybackProgress",b);a.u=b};
pI=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;iG.call(this,"survey",a,{},b,c);this.Hg=d;this.cj=e};
qI=function(a,b,c){g.tx.call(this);var d=this;this.durationMs=a;this.B=b;this.C=c;this.j=!1;this.u=this.i=0;this.timer=new g.Di(200);g.J(this,this.timer);this.timer.Pa("tick",function(){d.Rb()})};
rI=function(){Dz("pbp")||Dz("pbs")||Ez("pbp");Dz("pbp","watch")||Dz("pbs","watch")||Ez("pbp",void 0,"watch")};
sI=function(a,b,c){Dz(a,c)||Ez(a,b,c);Dz(a,"video_to_ad")||Ez(a,b,"video_to_ad");Dz(a,"ad_to_video")||Ez(a,b,"ad_to_video");Dz(a,"ad_to_ad")||Ez(a,b,"ad_to_ad")};
tI=function(a,b,c,d,e,f,k){WG.call(this,a,b,c,d,e,1);var l=this;this.C=b;this.I=new qx;g.J(this,this.I);this.I.S(this.G,"resize",function(){450>l.G.bb().xg().width&&(g.sx(l.I),l.yg())});
this.Y=0;this.J=null;this.W=k(this,function(){return""+(Date.now()-l.Y)});
if(this.u=g.kE(a.T())?new oI(1E3*b.j,a,f):null)g.J(this,this.u),this.I.S(a,"onAdPlaybackProgress",function(m){m.current===m.duration&&Dva(l)})};
Eva=function(a,b){b=Bva(a.W,b);a.G.Oa("onAdInfoChange",b)};
Dva=function(a){var b=a.C.i;(b=b.questions&&b.questions[0])?(b=(b=b.instreamSurveyAdMultiSelectQuestionRenderer||b.instreamSurveyAdSingleSelectQuestionRenderer)&&b.surveyAdQuestionCommon,a.W.Gd(b&&b.timeoutCommands)):g.S(Error("Expected a survey question in InstreamSurveyAdRenderer."))};
uI=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?!1:f;iG.call(this,"survey-interstitial",a,b,c,d);this.Hg=e;this.qH=f};
vI=function(a,b,c,d,e){WG.call(this,a,b,c,d,e,1);this.u=b};
wI=function(a,b,c,d,e,f,k,l,m){WG.call(this,a,b,c,d,e,1);var n=this;this.kA=!0;this.J=m;this.u=b;this.C=f;this.Y=new qx(this);g.J(this,this.Y);this.I=new g.K(function(){n.gh("load_timeout")},1E4);
g.J(this,this.I);this.W=k};
Fva=function(a){if(a.W&&(a.G.T().experiments.Xa("enable_topsoil_wta_for_halftime")||a.G.T().experiments.Xa("enable_topsoil_wta_for_halftime_live_infra"))){var b=a.u.u,c=b.B,d=b.u,e=b.i;b=b.C;if(void 0===c)g.S(Error("Expected ad break start time when a DAI ad starts"));else if(void 0===d)g.S(Error("Expected ad break end time when a DAI ad starts"));else return e=b.slice(0,e).reduce(function(f,k){return f+k},0),Math.min(Math.max((d-c)/1E3-e,0),a.u.j)}};
CI=function(a,b){if(null!==a.J){var c=Gva(a);a=g.q(a.J.listeners);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=c;var f=b,k=!1;d.i||"aderror"!==f||(Hva(d,e,[],!1),xI(d.u(),d.j),yI(d.u(),d.j),zI(d.u(),d.j),k=!0);if(d.i&&d.i.layoutId===e){switch(f){case "adabandoned":e="abandoned";break;case "aderror":e="error";break;default:e="normal"}iH(d.u(),d.j,d.i,e);if(k){e=d.u();k=d.j;AI(e.Ub,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",k);e=g.q(e.Od);for(f=e.next();!f.done;f=e.next())f.value.Si(k);jH(d.u(),
d.j)}d.Ka.get().G.T().L("html5_send_layout_unscheduled_signal_for_externally_managed")&&d.B&&BI(d.u(),d.j,d.i);d.j=null;d.i=null;d.B=!1}}}};
DI=function(a){return(a=a.G.getVideoData(2))?a.clientPlaybackNonce:""};
Gva=function(a){if(a=a.u.i.elementId)return a;g.S(Error("No elementId on VideoAd InstreamVideoAdRenderer"));return""};
Iva=function(a){function b(l,m){l=a.aY;var n=Object.assign({},{});n.FINAL=zG(Yf("1"));n.SLOT_POS=zG(Yf("0"));return CG(l,BG(n),m)}
function c(l){return null==l?{create:function(){return null}}:{create:function(m,n,p){var r=b(m,n);
n=a.QB(m,r);m=l(m,r,n,p);g.J(m,n);return m}}}
var d=c(function(l,m,n){return new aH(a.G,l,m,n,a.Up,a.Ua)}),e=c(function(l,m,n){return new vI(a.G,l,m,n,a.Up)}),f=c(function(l,m,n){return new hH(a.G,l,m,n,a.Up,a.Ua,a.Gj,a.Dm)}),k=c(function(l,m,n){return new eH(a.G,l,m,n,a.Up,a.Ua)});
this.cS=new gva({create:function(l,m){var n=CG(b(l,m),BG(Wua(l)));m=a.QB(l,n);l=new wI(a.G,l,n,m,a.Up,a.Ua,a.daiEnabled,function(p){return new vva(a.Ua,n,p,a.G,a.Sh)},a.Em,a.Xf);
g.J(l,m);return l}},{create:function(l,m){var n=a.QB(l,m);
l=new tI(a.G,l,m,n,a.Up,a.Ua,function(p,r){return new Ava(a.Ua,m,p,a.G,a.Sh,r)});
g.J(l,n);return l}},d,e,f,k)};
EI=function(a,b){this.j=a;this.i={};this.u=void 0===b?!1:b};
Jva=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{GS:new Gr(b,c),aU:new Dy(b,c-b,a.context,a.identifier,a.event,a.i)}};
FI=function(){this.i=[]};
GI=function(a,b,c){var d=g.oc(a.i,b);if(0<=d)return b;b=-d-1;return b>=a.i.length||a.i[b]>c?null:a.i[b]};
Kva=function(){this.i=new FI};
HI=function(a){this.i=a};
Lva=function(a){a=[a,a.B].filter(function(d){return!!d});
for(var b=g.q(a),c=b.next();!c.done;c=b.next())c.value.deactivate();return a};
Mva=function(a,b,c){this.u=a;this.i=b;this.j=c;this.B=a.getCurrentTime()};
Ova=function(a,b){var c=void 0===c?Date.now():c;b=g.q(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=c,f=a.i;II({cuepointTrigger:{type:"CUEPOINT_TYPE_AD",event:Nva(d.event),cuepointId:d.identifier,totalCueDurationMs:1E3*d.durationSecs,playheadTimeMs:d.i,cueStartTimeMs:1E3*d.startSecs,cuepointReceivedTimeMs:e,contentCpn:f}});a.j&&("unknown"===d.event&&JI("DAI_ERROR_TYPE_CUEPOINT_WITH_INVALID_EVENT",a.i),d=d.startSecs+d.i/1E3,d>a.B&&a.u.getCurrentTime()>d&&JI("DAI_ERROR_TYPE_LATE_CUEPOINT",
a.i))}};
Pva=function(a,b,c){a.j&&II({daiStateTrigger:{totalCueDurationMs:b,filledAdsDurationMs:c,contentCpn:a.i}})};
Qva=function(a,b){a.j&&II({adTrimmingInfo:{contentCpn:a.i,cueIdentifier:b.cueIdentifier||void 0,adMediaInfo:b.jS}})};
JI=function(a,b){II({daiStateTrigger:{errorType:a,contentCpn:b}})};
II=function(a){g.Fv("adsClientStateChange",a)};
Nva=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"}};
KI=function(a){this.G=a;this.adVideoId=this.i=this.videoId=this.adCpn=this.contentCpn=null;this.B=!0;this.j=this.pe=!1;this.adFormat=null;this.u="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"};
Sva=function(a,b,c,d,e,f){f();var k=a.G.getVideoData(1),l=a.G.getVideoData(2);k&&(a.contentCpn=k.clientPlaybackNonce,a.videoId=k.videoId,a.i=k.W);l&&(a.adCpn=l.clientPlaybackNonce,a.adVideoId=l.videoId,a.adFormat=l.adFormat);a.u=b;0>=d?f():(a.actionType=a.B?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.pe=!0,(a.G.L("send_csi_info_for_ad_to_video_killswitch")||Dz("_start",a.actionType))&&
Rva(a)))};
Tva=function(a){a.j=!1;var b={};!a.G.L("web_player_csi_ctt_killswitch")&&a.i&&a.videoId&&(b.cttAuthInfo={token:a.i,videoId:a.videoId});qz("video_to_ad",b,void 0)};
Uva=function(a){a.j=!1;var b={};!a.G.L("web_player_csi_ctt_killswitch")&&a.i&&a.videoId&&(b.cttAuthInfo={token:a.i,videoId:a.videoId});qz("ad_to_ad",b,void 0)};
LI=function(a){a.j=!1;var b={};!a.G.L("web_player_csi_ctt_killswitch")&&a.i&&a.videoId&&(b.cttAuthInfo={token:a.i,videoId:a.videoId});qz("ad_to_video",b,void 0);a.G.L("send_csi_info_for_ad_to_video_killswitch")||Rva(a)};
Rva=function(a){if(a.pe){var b={adBreakType:Vva(a.u),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));var c=a.actionType,d=az(c),e=cz(c);c=Roa(c);for(var f=0;f<c.length;f++);!a.adFormat||"ad_at"in d||"ad_at"in e||(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);pz(b,a.actionType)}};
Wva=function(a){a.pe&&!a.j&&(a.B=!1,a.j=!0,"ad_to_video"!==a.actionType&&(oz("apbs",void 0,a.actionType),g.Q("finalize_all_timelines")&&(a=a.actionType,nz(a),gz(a),mz(a))))};
Vva=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"}};
g.Yva=function(a){return(a=Xva[a.toString()])?a:"LICENSE"};
MI=function(){g.G.call(this);this.j=null;this.J=this.I=!1;this.B=new g.Uf;g.J(this,this.B)};
NI=function(a){a=a.nw();return 1>a.length?NaN:a.end(a.length-1)};
Zva=function(a,b,c){a.Fl()||a.getCurrentTime()>b||10<c||(a.play(),g.Gt(function(){Zva(a,a.getCurrentTime(),c+1)},500))};
$va=function(a,b){a.j&&a.j.equals(b)||(a.j&&a.j.dispose(),a.j=b)};
OI=function(a){return Sqa(a.Yf(),a.getCurrentTime())};
awa=function(a,b){if(0===a.Dh()||0<a.uj())return!1;var c=0<a.getCurrentTime();return 0<=b&&(a=a.nw(),a.length||!c)?CC(a,b):c};
bwa=function(a){var b=a.Yf();return 0<EC(b)&&a.getDuration()?b.end(b.length-1):0};
PI=function(a){switch(a.uj()){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.QI=function(a,b){this.stateData=void 0===b?null:b;this.state=a||64};
RI=function(a,b,c){return b===a.state&&c===a.stateData||void 0!==b&&(b&128&&!c||b&2&&b&16)?a:new g.QI(b,c)};
SI=function(a,b){return RI(a,a.state|b)};
TI=function(a,b){return RI(a,a.state&~b)};
UI=function(a,b,c){return RI(a,(a.state|b)&~c)};
g.V=function(a,b){return!!(a.state&b)};
g.VI=function(a,b){return b.state===a.state&&b.stateData===a.stateData};
g.WI=function(a){return g.V(a,8)&&!g.V(a,2)&&!g.V(a,1024)};
XI=function(a){return a.Ic()&&!g.V(a,16)&&!g.V(a,32)};
g.YI=function(a){return g.V(a,1)&&!g.V(a,2)};
ZI=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};
$I=function(a,b,c,d,e,f,k,l){g.tx.call(this);this.Tf=a;this.G=b;this.j=d;this.J=this.j.j instanceof dG?this.j.j:null;this.i=null;this.Y=!1;this.C=c;this.W=(a=b.getVideoData(1))&&a.isLivePlayback||!1;this.va=0;this.xa=!1;this.Xl=e;this.Ds=f;this.yp=k;this.ea=!1;this.daiEnabled=l};
cwa=function(a){if(eG(a.G)){var b=a.G.getVideoData(2);b=a.j.N[b.Dc]||null;if(!b)return a.Qk(),!0;(!a.i||a.i&&a.i.ad!==b)&&a.Su(b)}else if(1===a.G.getPresentingPlayerType()&&a.i)return a.Qk(),!0;return!1};
dwa=function(a,b){a.C.Hp(a.j.i.i,b,a.lL(),a.nL(),a.isLiveStream())};
aJ=function(a){ewa(a.Tf,a.j.i,a);a.daiEnabled&&!a.j.I&&(fwa(a,a.oL()),a.j.I=!0)};
fwa=function(a,b){for(var c=bJ(a),d=a.j.i.start,e=[],f=g.q(b),k=f.next();!k.done;k=f.next()){k=k.value;if(c<=d)break;var l=gwa(k);e.push({externalVideoId:k.C,originalMediaDurationMs:(1E3*k.j).toString(),trimmedMediaDurationMs:(parseInt(k.i.trimmedMaxNonSkippableAdDurationMs,10)||0).toString()});l=d+l;var m=Math.min(l,c);k.u.B=a.j.i.start;k.u.u=c;if(!hwa(a,k,d,m)||l!==m)break;d=l}b=b.reduce(function(n,p){return n+gwa(p)},0);
Pva(a.Xl,a.j.i.Yv(),b);Qva(a.Xl,{cueIdentifier:a.j.B&&a.j.B.identifier,jS:e})};
gwa=function(a){var b=1E3*a.j;return 0<parseInt(a.i.trimmedMaxNonSkippableAdDurationMs,10)&&parseInt(a.i.trimmedMaxNonSkippableAdDurationMs,10)<b?parseInt(a.i.trimmedMaxNonSkippableAdDurationMs,10):b};
bJ=function(a){var b=a.j.i.end;a=GI(a.Ds,a.j.i.start,b);return Math.min(b,null===a?Infinity:a)};
hwa=function(a,b,c,d){var e=a.yp.create(b,BG(Vua(a.j)),a.j.i.i);c=e.aL(c,d);g.Se(e);if(!c)return!1;a.j.N[c]=b;return!0};
oJ=function(a,b){b=void 0===b?!1:b;a.Y=!0;g.Se(a.i);LI(a.C);var c=a.j.J;if(null!==c){var d=a.Xl,e=a.j.B&&a.j.B.identifier,f=a.j.i.start,k=bJ(a);d.j&&II({driftRecoveryInfo:{contentCpn:d.i,cueIdentifier:e||void 0,driftRecoveryMs:c.toString(),breakDurationMs:Math.round(k-f).toString(),driftFromHeadMs:Math.round(1E3*d.u.Sn()).toString()}});a.j.J=null}b||a.daiEnabled?nJ(a.Tf,!0):a.W&&a.BI()&&a.Iw()?nJ(a.Tf,!1,iwa(a)):nJ(a.Tf,!1);dwa(a,!0)};
iwa=function(a){if(a.xa)return function(c){c.seekTo(Infinity,!0,void 0,1)};
var b=Math.floor(g.Ta()/1E3)-a.va;return function(c){c.seekTo(c.getCurrentTime()+b,!0,void 0,1)}};
jwa=function(a,b,c){this.i=a;this.j=b;this.u=c};
pJ=function(){this.C=[];this.J=[];this.i=[];this.B=[];this.I=[];this.j=new Set;this.N=new Map};
qJ=function(){pJ.i||(pJ.i=new pJ);return pJ.i};
kwa=function(a,b,c){c=void 0===c?0:c;b.then(function(d){a.j.has(c)&&a.u&&a.u();var e=g.Kx(c),f=g.Jx(c);if(e&&f){var k;(null==d?0:null==(k=d.response)?0:k.trackingParams)&&g.Zx(a.client,e,f,[g.Gx(d.response.trackingParams)]);var l;(null==d?0:null==(l=d.playerResponse)?0:l.trackingParams)&&g.Zx(a.client,e,f,[g.Gx(d.playerResponse.trackingParams)])}})};
lwa=function(a,b){rJ(a,g.Gx(b),void 0,void 0)};
rJ=function(a,b,c,d){d=void 0===d?0:d;if(a.j.has(d))a.C.push([b,c]);else{var e=g.Kx(d);c=c||g.Jx(d);e&&c&&g.Zx(a.client,e,c,[b])}};
nwa=function(a,b,c){c=void 0===c?{}:c;a.j.add(c.layer||0);a.u=function(){mwa(a,b,c);var f=g.Jx(c.layer);if(f){for(var k=g.q(a.C),l=k.next();!l.done;l=k.next())l=l.value,rJ(a,l[0],l[1]||f,c.layer);f=g.q(a.J);for(k=f.next();!k.done;k=f.next()){var m=k.value;k=void 0;k=void 0===k?0:k;l=g.Kx(k);var n=m[0]||g.Jx(k);if(l&&n){k=a.client;var p=m[1];m={cttAuthInfo:Lx(l),Yi:l};g.Q("il_via_jspb")?(p=new Fs,p.Zi(l),n=n.getAsJspb(),Pd(p,2,n),"UNDEFINED_CSN"==l?Yx("visualElementStateChanged",p,m):Pna(p,m,k)):(n=
{csn:l,ve:n.getAsJson(),clientData:p},"UNDEFINED_CSN"==l?Yx("visualElementStateChanged",n,m):k?rv("visualElementStateChanged",n,k,m):g.Fv("visualElementStateChanged",n,m))}}}};
g.Kx(c.layer)||a.u();if(c.TK)for(var d=g.q(c.TK),e=d.next();!e.done;e=d.next())kwa(a,e.value,c.layer);else g.S(Error("Delayed screen needs a data promise."))};
mwa=function(a,b,c){c=void 0===c?{}:c;c.layer||(c.layer=0);var d=void 0!==c.UX?c.UX:c.layer;var e=g.Kx(d);d=g.Jx(d);var f;d&&(void 0!==c.parentCsn?f={clientScreenNonce:c.parentCsn,visualElement:d}:e&&"UNDEFINED_CSN"!==e&&(f={clientScreenNonce:e,visualElement:d}));var k,l=g.P("EVENT_ID");"UNDEFINED_CSN"===e&&l&&(k={servletData:{serializedServletEventId:l}});try{var m=Vna(a.client,b,f,c.OK,c.cttAuthInfo,k,c.gfa)}catch(n){Lna(n,{Gx:b,rootVe:d,parentVisualElement:void 0,Yea:e,yfa:f,OK:c.OK});g.S(n);return}xna(m,
b,c.layer,c.cttAuthInfo);if((b=e&&"UNDEFINED_CSN"!==e&&d)&&!(b=g.Q("screen_manager_skip_hide_killswitch"))){a:{b=g.q(Object.values(owa));for(f=b.next();!f.done;f=b.next())if(g.Kx(f.value)==e){b=!0;break a}b=!1}b=!b}b&&Wna(a.client,e,d,!0);a.i[a.i.length-1]&&!a.i[a.i.length-1].csn&&(a.i[a.i.length-1].csn=m||"");pz({clientScreenNonce:m});fy.getInstance().clear();d=g.Jx(c.layer);e&&"UNDEFINED_CSN"!==e&&d&&(g.Q("web_mark_root_visible")||g.Q("music_web_mark_root_visible"))&&g.$x(m,d,void 0);a.j.delete(c.layer||
0);a.u=void 0;e=g.q(a.N);for(m=e.next();!m.done;m=e.next())b=g.q(m.value),m=b.next().value,b=b.next().value,b.has(c.layer)&&d&&rJ(a,m,d,c.layer);for(c=0;c<a.B.length;c++){e=a.B[c];try{e()}catch(n){g.S(n)}}for(c=a.B.length=0;c<a.I.length;c++){e=a.I[c];try{e()}catch(n){g.S(n)}}};
sJ=function(){this.i={};if(this.j=tka()){var a=g.Wt("CONSISTENCY");a&&pwa(this,{encryptedTokenJarContents:a})}};
pwa=function(a,b){if(b.encryptedTokenJarContents&&(a.i[b.encryptedTokenJarContents]=b,"string"===typeof b.expirationSeconds)){var c=Number(b.expirationSeconds);setTimeout(function(){delete a.i[b.encryptedTokenJarContents]},1E3*c);
a.j&&g.Vt("CONSISTENCY",b.encryptedTokenJarContents,c,void 0,!0)}};
tJ=function(){var a=g.P("LOCATION_PLAYABILITY_TOKEN");"TVHTML5"===g.P("INNERTUBE_CLIENT_NAME")&&(this.localStorage=qwa(this))&&(a=this.localStorage.get("yt-location-playability-token"));a&&(this.locationPlayabilityToken=a,this.i=void 0)};
qwa=function(a){return void 0===a.localStorage?new zv("yt-client-location"):a.localStorage};
uJ=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d=g.P("INNERTUBE_CONTEXT");if(!d)return g.S(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};d=g.zf(d);g.Q("web_no_tracking_params_in_shell_killswitch")||delete d.clickTracking;d.client||(d.client={});var e=d.client;"MWEB"===e.clientName&&(e.clientFormFactor=g.P("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.vv.getInstance();var k="USER_INTERFACE_THEME_LIGHT";g.wv(0,165)?k="USER_INTERFACE_THEME_DARK":g.wv(0,174)?k="USER_INTERFACE_THEME_LIGHT":!g.Q("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&&(k="USER_INTERFACE_THEME_DARK");f=f?k:gna()||k;e.userInterfaceTheme=
f;if(!b){if(f=sla())e.connectionType=f;g.Q("web_log_effective_connection_type")&&(f=ula())&&(d.client.effectiveConnectionType=f)}var l;if(g.Q("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.wt(g.C.location.href);!g.Q("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.Q("kevlar_woffle")&&mla.i&&(e.mainAppWebInfo.pwaInstallabilityStatus=mla.i.i?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),e.mainAppWebInfo.webDisplayMode=tv(),e.mainAppWebInfo.isWebNativeShareAvailable=navigator&&void 0!==navigator.share):"TVHTML5"===e.clientName&&(!g.Q("web_lr_app_quality_killswitch")&&(m=g.P("LIVING_ROOM_APP_QUALITY"))&&(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{appQuality:m})),m=g.P("LIVING_ROOM_CERTIFICATION_SCOPE"))&&
(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{certificationScope:m}));if(!g.Q("web_populate_time_zone_itc_killswitch")){a:{if("undefined"!==typeof Intl)try{var n=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(F){}n=void 0}n&&(e.timeZone=n)}(n=lt())?e.experimentsToken=n:delete e.experimentsToken;n=mt();sJ.i||(sJ.i=new sJ);d.request=Object.assign({},d.request,{internalExperimentFlags:n,consistencyTokenJars:of(sJ.i.i)});!g.Q("web_prequest_context_killswitch")&&(n=g.P("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&
(d.request.externalPrequestContext=n);e=g.vv.getInstance();n=g.wv(0,58);e=e.get("gsml","");d.user=Object.assign({},d.user);n&&(d.user.enableSafetyMode=n);e&&(d.user.lockedSafetyMode=!0);g.Q("warm_op_csn_cleanup")?c&&(b=g.Kx())&&(d.clientScreenNonce=b):!b&&(b=g.Kx())&&(d.clientScreenNonce=b);a&&(d.clickTracking={clickTrackingParams:a});if(a=g.Ja("yt.mdx.remote.remoteClient_"))d.remoteClient=a;g.Q("web_enable_client_location_service")&&tJ.getInstance().setLocationOnInnerTubeContext(d);try{var p=Dt(void 0),
r=p.bid;delete p.bid;d.adSignalsInfo={params:[],bid:r};for(var t=g.q(Object.entries(p)),w=t.next();!w.done;w=t.next()){var x=g.q(w.value),y=x.next().value,z=x.next().value;p=y;r=z;a=void 0;null==(a=d.adSignalsInfo.params)||a.push({key:p,value:""+r})}}catch(F){g.S(F)}return d};
vJ=function(){this.RY=!0};
wJ=function(){vJ.apply(this,arguments);this.Nq={}};
yJ=function(){xJ||(xJ=new wJ);return xJ};
rwa=function(a,b){b?a.Nq.Authorization="Bearer "+b:delete a.Nq.Authorization};
swa=function(a){return a.isTimeout?"NO_BID":"ERR_BID"};
twa=function(){var a=null;Fka().then(function(b){return a=b},function(b){return a=swa(b)});
return a};
uwa=function(){var a=Fi(1E3,"NO_BID");return ui(wba([Fka(),a]).yh(swa),function(){return a.cancel()})};
vwa=function(a){return a.hc?g.wv(g.vv.getInstance(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"};
zJ=function(a){this.player=a;this.j=this.i=1};
BJ=function(a,b,c,d){c=void 0===c?{}:c;var e=c.Ev,f=c.Bd;d=void 0===d?"":d;c=a.player.getVideoData(1);var k=a.player.T().rk,l={AD_BLOCK:a.i++,AD_BREAK_LENGTH:e?e.durationSecs:0,AUTONAV_STATE:vwa(a.player.T()),CA_TYPE:"image",CPN:c.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:1E3*a.player.Sn(),LACT:Ou(),LIVE_INDEX:e?a.j++:1,LIVE_TARGETING_CONTEXT:e&&e.context?e.context:"",MIDROLL_POS:f?Math.round(f.start/1E3):0,MIDROLL_POS_MS:f?Math.round(f.start):0,VIS:a.player.getVisibilityState(),P_H:a.player.bb().xg().height,
P_W:a.player.bb().xg().width,YT_REMOTE:k?k.join(","):""},m=cka(bka);Object.keys(m).forEach(function(p){null!=m[p]&&(l[p.toUpperCase()]=m[p].toString())});
""!==d&&(l.BISCOTTI_ID=d);d={};Ct(b)&&(d.sts="19019",(e=a.player.T().jb)&&(d.forced_experiments=e));b=zt(g.Sq(b,l),d);a.player.getVideoData();if(2!==b.split("?").length)return qi(Error("Invalid AdBreakInfo URL"));if((d=null==c?void 0:c.oauthToken)&&Bt()){var n=yJ();rwa(n,d)}n=a.player.im(n);a=wwa(a,b,l,c.isMdxPlayback);return g.AJ(n,a,"/youtubei/v1/player/ad_break")};
zwa=function(a,b,c,d){a.client||(a.client={});a.client.originalUrl=b;var e=At(b),f=xwa(b,"X-YouTube-Time-Zone");(e||f)&&"undefined"!==typeof Intl&&(a.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);f=xwa(b,"X-YouTube-Ad-Signals");if(e||f||""!==c){var k={};b=tt(Dt(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")&&(k.bid=l.get("bid"));k.params=[];ywa.forEach(function(m){l.has(m)&&(m={key:m,value:l.get(m)},k.params.push(m))});
a.adSignalsInfo=k}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};
Cwa=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:""},k="ACTIVE";"!"===d[0]&&(d=d.substring(1),k="INACTIVE");d=d.split("-");3>d.length||(d[0]in Awa&&(f.clientName=Awa[d[0]]),d[1]in Bwa&&(f.platform=Bwa[d[1]]),f.applicationState=k,f.clientVersion=2<d.length?d[2]:"",e.remoteClient=f,a.remoteContexts?a.remoteContexts.push(e):a.remoteContexts=[e],c=!0)});
return c};
wwa=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=Dwa.exec(b);f=null!=f&&2<=f.length?f[1]:"";var k=Ewa.test(b),l=Fwa.exec(b);l=null!=l&&2<=l.length?l[1]:"";var m=Gwa.exec(b);m=null!=m&&2<=m.length&&!Number.isNaN(Number(m[1]))?Number(m[1]):1;var n=Hwa.exec(b);n=null!=n&&2<=n.length?n[1]:"0";var p=g.oE(a.player.T()),r=uJ(a.player.getVideoData(1).Ya,!0),t="BISCOTTI_ID"in c?c.BISCOTTI_ID:"";zwa(r,b,t.toString(),a.player.T());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:19019,autonavState:vwa(a.player.T())};d&&(d={},Cwa(d,c.YT_REMOTE)&&(w.mdxContext=d));if(d=Iwa.includes(p)?void 0:g.Wt("PREF")){for(var x=d.split(RegExp("[:&]")),y=0,z=x.length;y<z;y++){var F=x[y].split("=");if(("SML"===F[0].toUpperCase()||"GSML"===F[0].toUpperCase())&&1<F.length&&"TRUE"===F[1].toUpperCase()){r.user.lockedSafetyMode=!0;break}}a:{if("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in
Jwa)for(d=d.split(RegExp("[:&]")),y=Jwa.FLAG_AUTO_CAPTIONS_DEFAULT_ON,x="f"+(1+Math.floor(y/31)).toString(),y=1<<Math.floor(y%31),z=0,F=d.length;z<F;z++){var I=d[z].split("=");if(I[0]===x&&parseInt("0x"+I[1],16)&y){d=!0;break a}}d=!1}w.autoCaptionsDefaultOn=d}b=Kwa.exec(b);(b=null!=b&&2<=b.length?b[1]:"")&&l&&(r.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:k,context:r,adSignalsInfoString:tt(Dt(t.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());a.player.T().L("html5_populate_media_position_in_ad_break_request")&&(f.currentMediaTimeMs=Math.round(1E3*a.player.getCurrentTime(1)));return f};
CJ=function(a,b,c,d,e,f){g.tx.call(this);this.I=a;this.j=b;this.u=c;this.C=d;this.i=e;this.B=f;this.u.T().L("html5_pacf_enable_non_dai_live_video_ads")||Lwa(this)};
Mwa=function(a,b){var c={isEmpty:!0,lM:!1,Ql:[]};if(!b)return c;b&&b.trackingParams&&lwa(qJ(),b.trackingParams);if(b&&b.adThrottled)return c.lM=!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.ac(b))return c;if(0<a.i.i.end){var d=a.i.i.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.Ql=b;
c.isEmpty=!1;return c};
Lwa=function(a){[a.i.W,a.i.i].filter(function(b){return null!=b}).forEach(function(b){ewa(a.j,b,a)})};
DJ=function(a,b,c,d,e,f,k,l){$I.call(this,a,b,c,d,e,f,k,l);this.u=d.j;this.B=-1;this.I=null;this.N=Nwa(this.Qz())};
Owa=function(a){a.B++;var b=a.Qz();b?(0<a.B&&Uva(a.C),a.Su(b)):oJ(a)};
Nwa=function(a){return a?Pwa.some(function(b){return a instanceof b}):!1};
Qwa=function(a){this.i=new jwa(function(b){b=new $I(a.Tf,a.G,a.NK(),b,a.Xl,a.Ds,a.yp,a.daiEnabled);aJ(b);return b},function(b){return new CJ(a.wD,a.Tf,a.G,a.xp,b,a.Xl)},function(b){b=new DJ(a.Tf,a.G,a.NK(),b,a.Xl,a.Ds,a.yp,a.daiEnabled);
aJ(b);return b})};
Rwa=function(a,b){rG.call(this);a.adStart&&a.adStart.adMessageRenderer&&(g.Fv("adNotifyFilled",{notifyCompositeType:"COMPOSITE_AD_TYPE_LINEAR_AD_SEQUENCE"}),sG(this,new cH(a.adStart.adMessageRenderer)));if(a.linearAds){var c=[];a=g.q(a.linearAds);for(var d=a.next();!d.done;d=a.next()){d=d.value;if(d.instreamVideoAdRenderer){var e=b(d.instreamVideoAdRenderer);sG(this,e);c.push(e.j);d.instreamVideoAdRenderer.isCritical&&(this.j=1)}else d.adActionInterstitialRenderer?(d=new ZG(d.adActionInterstitialRenderer),
sG(this,d)):d.adIntroRenderer&&(d=new bH(d.adIntroRenderer),sG(this,d),this.j=1);this.i.filter(function(f){return f instanceof qG}).forEach(function(f,k){f instanceof qG&&(k=new nG(k,c),f.u=k)})}}};
Twa=function(a,b){rG.call(this);sG(this,Swa(this,a.adVideoStart));a:{var c=a.linearAd;if(c){if(c.instreamVideoAdRenderer){b=b(c.instreamVideoAdRenderer);break a}if(c.instreamSurveyAdRenderer){b=new xG(c.instreamSurveyAdRenderer);break a}}b=null}sG(this,b);(a=a.adVideoEnd)?a.adActionInterstitialRenderer?(this.j=1,a=new ZG(a.adActionInterstitialRenderer)):a=null:a=null;sG(this,a)};
Swa=function(a,b){return null==b?null:b.adActionInterstitialRenderer?(a.j=1,new ZG(b.adActionInterstitialRenderer)):b.adMessageRenderer?(g.Fv("adNotifyFilled",{notifyCompositeType:"COMPOSITE_AD_TYPE_SANDWICHED_LINEAR_AD"}),new cH(b.adMessageRenderer)):b.surveyTextInterstitialRenderer?new dH(b.surveyTextInterstitialRenderer):null};
Uwa=function(a,b){this.u=new Mua;this.i=a;this.j=b};
Vwa=function(a){this.i=a};
Wwa=function(a,b,c,d){try{var e=b.renderer,f=b.config&&b.config.adPlacementConfig,k=e?a.i.create(e,f):null;return new Qua(b,c,k,d)}catch(l){g.S(l)}};
Xwa=function(a){var b=new Vwa(a.dS);return{kL:function(){return b}}};
EJ=function(a){g.G.call(this);var b=this;this.j=a;this.i=null;g.Ue(this,function(){return b.i=null});
var c=px(a);if(c){var d=function(){b.i&&b.i(!!nx())};
this.j.addEventListener(c,d);g.Ue(this,function(){b.j.removeEventListener(c,d)})}};
FJ=function(a){g.G.call(this);this.i=a};
Ywa=function(a){var b=window.document;return g.vE(a.T())?new EJ(b):new FJ(a)};
Zwa=function(a){g.G.call(this);this.oQ=new Mva(a.G,a.contentCpn,a.daiEnabled)};
$wa=function(a){GJ=a&&a.data};
bxa=function(a){axa=a&&a.data};
cxa=function(a){HJ=a&&a.data};
dxa=function(a){IJ=a&&a.data};
exa=function(a){JJ=a&&a.data};
fxa=function(){JJ=IJ=HJ=GJ=null};
MJ=function(a){g.G.call(this);var b=this;this.Pc=a;this.Ud=new Map;this.i=new Map;KJ(this,"commandExecutorCommand",function(c,d,e){b.Gd(c.commands,d,e)});
LJ(this,"commandExecutorCommand",function(c,d){gxa(b,c.commands,d)});
KJ(this,"clickTrackingParams",function(){});
LJ(this,"clickTrackingParams",function(){})};
hxa=function(a,b){KJ(a,b.Tk(),function(c,d,e){d=void 0===d?{}:d;e=void 0===e?{}:e;b.handle(c,d,e)})};
ixa=function(a,b){LJ(a,b.Tk(),function(c,d){b.qm(c,d)})};
KJ=function(a,b,c){a.isDisposed();a.Ud.get(b)&&g.S(Error("Extension name "+b+" already registered"));a.Ud.set(b,c)};
LJ=function(a,b,c){a.isDisposed();a.i.get(b)&&g.S(Error("Extension name "+b+" already registered"));a.i.set(b,c)};
gxa=function(a,b,c){b=void 0===b?[]:b;a.isDisposed();var d=[],e=[],f=g.q(b);for(b=f.next();!b.done;b=f.next())b=b.value,b.hasOwnProperty("pingingEndpoint")||b.hasOwnProperty("adPingingEndpoint")?d.push(b):e.push(b);d=g.q(d);for(b=d.next();!b.done;b=d.next())NJ(a,b.value,c);e=g.q(e);for(b=e.next();!b.done;b=e.next())NJ(a,b.value,c)};
jxa=function(a,b){a.Pc.get().Oa("innertubeCommand",{openPopupAction:b})};
kxa=function(a,b){a.Pc.get().Oa("innertubeCommand",{confirmDialogEndpoint:b})};
NJ=function(a,b,c){a.isDisposed();b.loggingUrls&&lxa(a,"loggingUrls",b.loggingUrls,c);b=g.q(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=g.q(d.value);d=e.next().value;e=e.next().value;"openPopupAction"===d?jxa(a,e):"confirmDialogEndpoint"===d?kxa(a,e):mxa.hasOwnProperty(d)||lxa(a,d,e,c)}};
nxa=function(a,b,c,d,e){e=void 0===e?{}:e;if((a=a.Ud.get(b))&&"function"===typeof a)try{a(c,d,e)}catch(f){g.S(f)}else b=new g.Kv("Unhandled field",b),g.Rx(b)};
lxa=function(a,b,c,d){(a=a.i.get(b))||new g.Kv("Unhandled field",b);try{a(c,d)}catch(e){g.S(e)}};
pxa=function(a,b,c,d){for(var e=!1,f=g.q(b.Uh.entries()),k=f.next();!k.done;k=f.next())k=g.q(k.value).next().value,"SLOT_TYPE_PLAYER_BYTES"===k.ob&&"core"===k.gb&&(e=!0);e?(d=oxa(b,d))?c.aF(d):T("No triggering layout ID available when attempting to mute."):g.gi(function(){a.Qk()})};
oxa=function(a,b){if(b)return b;a=g.q(a.Uh.entries());for(b=a.next();!b.done;b=a.next()){var c=g.q(b.value);b=c.next().value;c=c.next().value;if("SLOT_TYPE_IN_PLAYER"===b.ob&&"core"===b.gb)return c.layoutId}};
qxa=function(a){var b=new EG(a.Np),c=new FG(b);return{jT:function(){return b},
OE:function(){return c}}};
eva=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":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}};
rxa=function(a){this.G=a;var b=an(Pq),c=a.Yd();b.u!==c&&((b.u=c)||Sfa(b));a.T().L("active_view_stop_starting_measurement_on_loaded")&&Qm(wo().featureSet,"ssmol",1)};
Zua=function(a){ega(an(Pq),a)};
sxa=function(a){g.G.call(this);this.i=a;this.j=new rxa(a.G)};
txa=function(a){return function(){return new KI(a.i.G)}};
uxa=function(a){return function(b,c){return new $ua(b,a.j,c,a.i.G,a.i.Sh,a.i.daiEnabled)}};
OJ=function(a,b,c,d,e){g.tx.call(this);var f=this;this.i=b;this.Ia=null;this.fb=c;this.jb=e.Xf;this.Ya=e.Po;this.j=null;this.u=new Map;c=this.i.T().experiments;var k=qxa({Np:b.getVideoData(1)}),l=new sxa({Sh:k.OE(),G:b,daiEnabled:!1});g.J(this,l);this.zp=new Set;this.gA=-1;this.Y=[];this.I=null;this.ea=new Map;this.J=new Map;this.N=new Set;this.B=new qx(this);g.J(this,this.B);this.C=new qx(this);g.J(this,this.C);this.va=this.Wa=this.xa=!1;this.W=g.vE(b.T());this.kb=d;b=new Zwa({contentCpn:this.i.getVideoData(1).clientPlaybackNonce,
Wea:this,daiEnabled:!1,G:this.i});g.J(this,b);this.Ha=b.oQ;this.Qa=(new Kva({Xea:this,Dfa:c.Xa("html5_recognize_predict_start_cue_point"),zfa:c.Xa("html5_persist_cue_range_killswitch")})).i;var m=Cf(BG(AG(this.i)));e=new Iva({Ua:this,Up:mG(),Sh:k.OE(),G:this.i,aY:m,QB:uxa(l),daiEnabled:!1,Em:e.Em,Xf:this.jb,Gj:e.Gj,Dm:e.Dm});this.ya=(new Qwa({xp:this.fb,yp:e.cS,wD:a,Tf:this,Up:mG(),NK:txa(l),Xl:this.Ha,Ds:this.Qa,G:this.i,Lfa:m,QB:function(n){return uxa(l)(n,m)},
daiEnabled:!1})).jL();this.La=Xwa({dS:new Uwa(c,function(n){return f.J.has(n)?f.J.get(n):null})}).kL();
this.Ta=Ywa(this.i);g.J(this,this.Ta);this.wb=BE(this.i.T())?this.i.T().experiments.Xa("align_ad_to_video_player_lifecycle_for_bulleit_living_room"):this.i.T().experiments.Xa("align_ad_to_video_player_lifecycle_for_bulleit")};
zxa=function(a,b){var c=a.i.getVideoData(1);if(c.Ip||g.P("SERVED_VIA_SPF_HISTORY"))PJ(a);else{if(fG(a.i)){var d=vxa(a.i);d.addEventListener("updateKevlarOrC3Companion",$wa);d.addEventListener("onPlaShelfInfoCardsReady",bxa);d.addEventListener("updateEngagementPanelAction",cxa);d.addEventListener("changeEngagementPanelVisibility",dxa);d.addEventListener("scrollToEngagementPanel",exa);window.addEventListener("yt-navigate-start",fxa)}a.B.S(a.i,"applicationplayerstatechange",a.jV);a.B.S(a.i,g.Ny("ad"),
a.hG,a);a.B.S(a.i,g.Oy("ad"),a.EV,a);a.B.S(a.i,"aduxclicked",a.XU);a.B.S(a.i,"videodatachange",a.IX);b=wxa(a,b);b=xxa(a,b);b=yxa(a,b);0<b.length&&QJ(a,b);a.I&&c.subscribe("cuepointupdated",a.pN,a);g.gi(a.oZ,a)}};
wxa=function(a,b){return b.filter(function(c){if("AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"==(c.config&&c.config.adPlacementConfig&&c.config.adPlacementConfig.kind||null)){if(a.i.T().experiments.Xa("html5_pacf_enable_non_dai_live_video_ads"))return T("Tries to extract CuePoint triggered AdPlacementRenderer."),!1;g.vE(a.i.T())&&a.i.getVideoData(1).Af()||(a.I=c);return!1}return!0})};
xxa=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})};
yxa=function(a,b){a.J=new Map;return b.filter(function(c){return(c=c.renderer.remoteSlotsRenderer)&&c.hostElementId?(a.J.set(c.hostElementId,c),!1):!0})};
Axa=function(a,b){return b.every(function(c){c=a.u.get(c);return null==c?(g.S(Error("AdCueRange without a corresponding AdPlacement.")),!0):c instanceof CJ?!1:c instanceof $I?!c.hq():!0})};
PJ=function(a){var b=Bxa(a);if(0<b.length){var c=g.lD(a.i.T().experiments,"delay_ads_gvi_call_on_bulleit_living_room_ms");0<c&&!a.W&&g.kE(a.i.T())?(c=new g.K(function(){Cxa(a,b)},c),g.J(a,c),c.start()):g.gi(function(){Cxa(a,b)})}};
Dxa=function(a,b){if(!b)return{};(a=!!a.j&&a.j||null)?(a=a.i,b=a.ad.Ew()?LG(a.i,b):{}):b={};return b};
Bxa=function(a){for(var b=Exa(a),c=g.q(b),d=c.next();!d.done;d=c.next())a.zp.delete(d.value);return b};
Exa=function(a){var b=[];a=g.q(a.zp);for(var c=a.next();!c.done;c=a.next())c=c.value,Qy(c)&&b.push(c);return b};
Fxa=function(a,b,c){c=void 0===c?null:c;var d=a.La,e=d.create;var f=1E3*a.i.getDuration(1);f=new ooa(f,1E3*a.i.getCurrentTime(1)||0,!1,a.i.T().experiments.Xa("html5_recognize_predict_start_cue_point"));b=e.call(d,b,f,a.Y.length,c);a.Y=a.Y.concat(b);return b};
Cxa=function(a,b){if(!a.isDisposed()){b=g.q(b);for(var c=b.next();!c.done;c=b.next())a.hG(c.value)}};
QJ=function(a,b,c){b=Fxa(a,b,void 0===c?null:c);0==b.length||b.map(function(d){return a.ya.create(d)})};
Gxa=function(a){a.xa||(a.C.S(a.i,"presentingplayerstatechange",a.pQ),a.C.S(a.i,"internalAbandon",a.LU),a.C.S(a.i,"progresssync",a.LX),a.C.S(a.i,"onVolumeChange",a.MX),a.C.S(a.Ta,"fullscreentoggled",a.OV),a.xa=!0);g.L(a.i.getRootNode(),"ad-showing");g.L(a.i.getRootNode(),"ad-interrupting");a.i.T().experiments.Xa("enable_html5_teal_ad_badge")&&fG(a.i)&&g.L(a.i.getRootNode(),"ad-teal-design");a.i.xl(2)};
nJ=function(a,b,c){var d=!!a.j&&a.j||null,e=d&&d.hq()&&(eG(a.i)||!1);d=b&&d&&d.reset()||null;a.j&&Hxa(a,a.j);a.j=null;a.gA=-1;e&&Ixa(a,c);a.va||a.Ya.Tp();b&&d&&(d.AI().u=!1,aJ(d))};
Ixa=function(a,b){g.sx(a.C);a.xa=!1;g.pr(a.i.getRootNode(),"ad-showing");a.wb?(a.va||a.Ya.Tp(),Jxa(a),a.i.cueVideoByPlayerVars({},2)):(a.i.cueVideoByPlayerVars({},2),Jxa(a));g.pr(a.i.getRootNode(),"ad-interrupting");a.i.T().experiments.Xa("enable_html5_teal_ad_badge")&&g.pr(a.i.getRootNode(),"ad-teal-design");b&&b(a.i)};
Jxa=function(a){if(a.Wa)!a.W&&g.kE(a.i.T())&&a.i.To(2);else if(a.i.To(2),!a.W){var b=a.i.zb(1);g.V(b,4)&&!g.V(b,2)&&a.i.playVideo()}};
ewa=function(a,b,c){if(b instanceof Py){if(a.W&&Koa(b)&&g.V(a.i.zb(1),64)){var d=1E3*a.i.getCurrentTime(1)||0;d!=b.start&&b.contains(d)&&b.deactivate()}a.u.has(b)?g.S(Error(b.toString()+" has already been seen")):(a.zp.add(b),a.u.set(b,c),Qy(b)||a.i.Nd([b],1))}else g.S(Error("Should use AdCueRange instead of CueRange"))};
Hxa=function(a,b){a=a.u;for(var c=g.q(a),d=c.next();!d.done;d=c.next()){d=g.q(d.value);var e=d.next().value;if(d.next().value==b){a.delete(e);break}}g.Se(b)};
RJ=function(a){g.G.call(this);this.j=a};
SJ=function(a){RJ.call(this,!0);this.i=a};
Kxa=function(a,b){function c(f){return{toString:f}}
var d={},e=a.getVideoData(1);d.CPN=c(function(){return e&&e.clientPlaybackNonce||null});
d.ASR=c(function(){return e&&e.tp||null});
d.EI=c(function(){return e&&e.eventId||null});
d.AD_CPN=c(function(){return b.Fz()});
d.AD_MT=c(function(){return Math.round(Math.max(0,1E3*a.getCurrentTime(2))).toString()});
d.MT=c(function(){return Math.round(Math.max(0,1E3*a.getCurrentTime(1))).toString()});
d.P_H=c(function(){return a.getPlayerSize().height.toString()});
d.PV_H=d.P_H;d.P_W=c(function(){return a.getPlayerSize().width.toString()});
d.PV_W=d.P_W;d.CONN="0";d.WT=c(function(){return Date.now().toString()});
d.LACT=c(function(){return Ou().toString()});
d.VIS=c(function(){return a.getVisibilityState().toString()});
d.VOL=c(function(){return a.getVolume().toString()});
return d};
Lxa=function(a,b){g.G.call(this);var c=this;this.u=[];this.J=!1;this.j=0;this.C=this.I=this.B=!1;this.Y=null;var d=(0,g.Ra)(a,b);this.i=new g.K(function(){return d(c.Y)},300);
g.J(this,this.i);this.W=this.N=Infinity};
Mxa=function(a,b){if(!b)return!1;for(var c=0;c<b.length;c++){var d=b.item(c);if(d&&a.u.includes(d.identifier))return!0}return!1};
TJ=function(){var a="ytp-id-"+Nxa.toString();Nxa++;return a};
g.UJ=function(a){g.G.call(this);this.wb={};this.fd={};this.element=this.createElement(a)};
VJ=function(a,b,c,d){if("{{"===d.substr(0,2))a.fd[d]=[b,c];else return d};
Oxa=function(a,b){var c=[];if(!b)return c;b=g.q(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.D?c.push(a.createElement(d)):d.element?c.push(d.element):"string"===typeof d&&-1!==d.indexOf("\n")?d.split("\n").forEach(function(f,k){0<k&&c.push(g.Nh("BR"));c.push(g.Oh(f))}):c.push(g.Oh(d))}return c};
WJ=function(a,b,c,d){if("child"===c){g.Ph(b);var e;void 0===d?e=void 0:e=!Array.isArray(d)||d&&"string"===typeof d.D?[d]:d;c=Oxa(a,e);c=g.q(c);for(a=c.next();!a.done;a=c.next())b.appendChild(a.value)}else"style"===c?g.xn(b,"cssText",d?d:""):null===d||void 0===d?b.removeAttribute(c):(a=d.toString(),"href"===c&&(a=g.tg(g.xg(a))),b.setAttribute(c,a))};
g.W=function(a){g.UJ.call(this,a);this.sb=!0;this.va=!1;this.listeners=[]};
g.XJ=function(a,b){b?a.show():a.hide()};
g.YJ=function(a){g.W.call(this,a);this.Ta=new g.tx;g.J(this,this.Ta)};
ZJ=function(a,b,c,d,e,f,k,l){l=void 0===l?null:l;g.YJ.call(this,c);this.api=a;this.Ua=b;this.macros={};this.componentType=d;this.J=null;this.jb=l;this.layoutId=e;this.i=f;this.ib=k;this.Wa=null;this.bH=new SJ(this.element);g.J(this,this.bH);this.fb=this.S(this.element,"click",this.onClick);this.xa=[];this.ea=new Lxa(this.onClick,this);g.J(this,this.ea);this.kb=!1;this.W=null};
$J=function(a,b){a=void 0===a?null:a;b=void 0===b?null:b;if(null==a)return g.Rx(Error("Got null or undefined adText object")),"";var c=g.jh(a.text);if(!a.isTemplated)return c;if(null==b)return g.Rx(Error("Missing required parameters for a templated message")),c;a=g.q(Object.entries(b));for(b=a.next();!b.done;b=a.next()){var d=g.q(b.value);b=d.next().value;d=d.next().value;c=c.replace("{"+b+"}",d)}return c};
Pxa=function(a){a=void 0===a?null:a;return null==a||(a=a.thumbnail,null==a||null==a.thumbnails||g.ac(a.thumbnails)||null==a.thumbnails[0].url)?"":g.jh(a.thumbnails[0].url)};
Qxa=function(a){a=void 0===a?null:a;return null==a||(a=a.thumbnail,null==a||null==a.thumbnails||g.ac(a.thumbnails)||null==a.thumbnails[0].width||null==a.thumbnails[0].height)?new g.dh(0,0):new g.dh(a.thumbnails[0].width||0,a.thumbnails[0].height||0)};
aK=function(){return{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{D:"path",Fb:!0,V:{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"}}]}};
g.bK=function(){return{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{D:"path",Fb:!0,V:{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"}}]}};
cK=function(){return{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{D:"path",V:{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.dK=function(){return{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},U:[{D:"path",V:{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.eK=function(){return{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},U:[{D:"path",V:{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"}}]}};
Rxa=function(){return{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},U:[{D:"path",V:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{D:"path",V:{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"}}]}};
Sxa=function(){return{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},U:[{D:"path",Fb:!0,V:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}};
Txa=function(){return{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},U:[{D:"path",Fb:!0,V:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
g.fK=function(){return{D:"svg",V:{height:"100%",viewBox:"0 0 24 24",width:"100%"},U:[{D:"path",V:{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"}}]}};
Uxa=function(){return{D:"svg",V:{height:"100%",viewBox:"0 0 36 36",width:"100%"},U:[{D:"path",V:{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"}}]}};
Vxa=function(){return{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{D:"path",Fb:!0,V:{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"}}]}};
Wxa=function(){return{D:"svg",V:{viewBox:"0 0 24 24"},U:[{D:"path",V:{d:"M0 0h24v24H0z",fill:"none"}},{D:"path",V:{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"}}]}};
Xxa=function(){return{D:"svg",V:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},U:[{D:"path",V:{d:"M0 0h48v48H0z",fill:"none"}},{D:"path",V:{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"}}]}};
Yxa=function(){return{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{D:"path",Fb:!0,K:"ytp-svg-fill",V:{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.gK=function(){return{D:"svg",V:{viewBox:"0 0 24 24"},U:[{D:"path",V:{d:"M0 0h24v24H0z",fill:"none"}},{D:"path",V:{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"}}]}};
hK=function(){return{D:"svg",V:{height:"100%",viewBox:"0 0 36 36",width:"100%"},U:[{D:"path",V:{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"}}]}};
Zxa=function(){return{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},U:[{D:"path",Fb:!0,V:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}};
iK=function(){return{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{D:"path",Fb:!0,K:"ytp-svg-fill",V:{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.jK=function(){return{D:"svg",V:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},U:[{D:"path",V:{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"}}]}};
$xa=function(){return{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{D:"path",Fb:!0,K:"ytp-svg-fill",V:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}};
aya=function(){return{D:"svg",V:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{D:"path",K:"ytp-svg-fill",V:{"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"}}]}};
kK=function(){return{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{D:"path",Fb:!0,V:{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"}}]}};
lK=function(){return{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{D:"path",Fb:!0,K:"ytp-svg-fill",V:{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"}}]}};
bya=function(){return{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{D:"path",Fb:!0,K:"ytp-svg-fill",V:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}};
g.mK=function(){return{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{D:"path",Fb:!0,K:"ytp-svg-fill",V:{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.nK=function(){return{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{D:"path",Fb:!0,V:{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"}}]}};
cya=function(){return{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{D:"path",Fb:!0,K:"ytp-svg-fill",V:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}};
oK=function(){return{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{D:"path",Fb:!0,V:{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"}}]}};
pK=function(){return{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{D:"path",Fb:!0,K:"ytp-svg-fill",V:{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"}}]}};
qK=function(a){if(!a)return null;switch(a.iconType){case "OPEN_IN_NEW":return{D:"svg",V:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},U:[{D:"path",V:{d:"M0 0h48v48H0z",fill:"none"}},{D:"path",V:{d:"M38 38H10V10h14V6H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V24h-4v14zM28 6v4h7.17L15.51 29.66l2.83 2.83L38 12.83V20h4V6H28z"}}]};case "CHECK_BOX":return{D:"svg",V:{height:"100%",viewBox:"0 0 24 24",width:"100%"},U:[{D:"path",V:{d:"M0 0h24v24H0z",fill:"none"}},
{D:"path",V:{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{D:"svg",V:{height:"100%",viewBox:"0 0 24 24",width:"100%"},U:[{D:"path",V:{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"}},{D:"path",V:{d:"M0 0h24v24H0z",fill:"none"}}]};case "CLOSE":return g.fK();case "INFO_OUTLINE":return Xxa();case "REMOVE_CIRCLE":return{D:"svg",
V:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},U:[{D:"path",V:{d:"M0 0h24v24H0z",fill:"none"}},{D:"path",V:{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 iK();case "LIKE":return g.gK();case "DISLIKE":return Wxa();default:return g.Rx(new g.Kv("Unexpected icon:",a)),null}};
rK=function(a,b,c,d,e,f,k,l,m){f=void 0===f?[]:f;l=void 0===l?!1:l;f={D:"button",Ga:["ytp-ad-button"].concat(f)};null!=m&&(f.V={tabindex:m});ZJ.call(this,a,b,f,void 0===k?"button":k,c,d,e);this.j=this.u=this.B=null;this.C=l;this.hide()};
dya=function(a){var b=null;null!=a.j&&(b=[a.j.serviceEndpoint,a.j.navigationEndpoint].filter(function(c){return null!=c}),a.j.command&&(b=b.concat(a.j.command)));
return b||[]};
sK=function(){g.G.call(this);var a=this;this.i=new Map;this.j=Nka(function(b){if(b.target&&(b=a.i.get(b.target))&&b)for(var c=0;c<b.length;c++)g.Ow(b[c],void 0,void 0)})};
eya=function(){null==tK&&(tK=new sK);return tK};
uK=function(a,b){if(a.simpleText){a:{a=a.simpleText;if(b&&(b=fya(a))){b=Mh("SPAN",null,b);break a}b=g.Oh(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(gya(e,b))}return 1==c.length?c[0]:Mh("SPAN",null,c)};
gya=function(a,b){var c=null,d=a.text;b&&(d=fya(d)||d);a.bold&&(c=Mh("B",null,c||d));a.italics&&(c=Mh("I",null,c||d));a.strikethrough&&(c=Mh("STRIKE",null,c||d));a.navigationEndpoint&&a.navigationEndpoint.urlEndpoint&&(b=a.navigationEndpoint.urlEndpoint,c=Mh("A",null,c||d),g.Vg(c,b.url),"TARGET_NEW_WINDOW"==b.target&&(c.target="_blank"),a=a.navigationEndpoint.loggingUrls)&&(a=a.map(function(e){return e.baseUrl}),eya().register(c,a),g.L(c,"ytp-ad-has-logging-urls"));
return c||Mh("SPAN",null,d)};
fya=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(Mh("BR")),b.push(a[c]);return b}return null};
vK=function(a,b,c,d,e,f,k,l,m){k=void 0===k?!1:k;l=void 0===l?[]:l;ZJ.call(this,a,b,{D:"span",Ga:["ytp-ad-hover-text-button"].concat(l)},void 0===m?"ad-hover-text-button":m,c,d,e);this.button=this.u=null;this.I=k;this.C=f;this.hide()};
wK=function(a){return a&&a.thumbnails&&!g.ac(a.thumbnails||null)&&a.thumbnails[0].url?g.jh(a.thumbnails[0].url):""};
xK=function(a,b,c,d,e,f,k){k=void 0===k?!1:k;ZJ.call(this,a,b,{D:"img",K:"ytp-ad-image"},"ad-image",c,d,e,void 0===f?null:f);this.j=k;this.hide()};
yK=function(a,b,c,d,e,f,k){f=void 0===f?[]:f;ZJ.call(this,a,b,{D:"div",Ga:["ytp-ad-confirm-dialog-background"],U:[{D:"div",K:"ytp-ad-confirm-dialog-container",U:[{D:"div",Ga:["ytp-ad-confirm-dialog"].concat(f),V:{role:"dialog",tabindex:"-1"},U:[{D:"div",K:"ytp-ad-confirm-dialog-title",qa:"{{title}}"},{D:"div",K:"ytp-ad-confirm-dialog-messages"},{D:"div",K:"ytp-ad-confirm-dialog-confirm-container",U:[{D:"button",K:"ytp-ad-confirm-dialog-cancel-button",qa:"{{cancelLabel}}"},{D:"button",K:"ytp-ad-confirm-dialog-confirm-button",
qa:"{{confirmLabel}}"}]}]}]},{D:"button",Ga:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],U:[{D:"span",K:"ytp-ad-button-icon",U:[g.fK()]}]}]},void 0===k?"confirm-dialog":k,c,d,e);this.N=this.Da("ytp-ad-confirm-dialog-close-overlay-button");this.C=this.Da("ytp-ad-confirm-dialog-cancel-button");this.I=this.Da("ytp-ad-confirm-dialog-confirm-button");this.Y=this.Da("ytp-ad-confirm-dialog-messages");this.B=null;this.j=new qx;g.J(this,this.j);this.u=null;this.hide()};
hya=function(a,b){if(b.title){var c=g.Sy(b.title);a.Ma("title",c)}if(b.dialogMessages){c=g.q(b.dialogMessages);for(var d=c.next();!d.done;d=c.next())d=uK(d.value),a.Y.appendChild(d)}b.cancelLabel&&(c=g.Sy(b.cancelLabel),a.Ma("cancelLabel",c),a.j.S(a.C,"click",function(e){return a.GC(e)}));
b.confirmLabel&&(b=g.Sy(b.confirmLabel),a.Ma("confirmLabel",b),a.j.S(a.I,"click",function(e){return a.gG(e)}));
a.j.S(a.N,"click",function(e){return a.fG(e)})};
zK=function(a,b,c,d,e,f,k){f=void 0===f?[]:f;k=void 0===k?"toggle-button":k;var l=hG("ytp-ad-toggle-button-input");ZJ.call(this,a,b,{D:"div",Ga:["ytp-ad-toggle-button"].concat(f),U:[{D:"label",K:"ytp-ad-toggle-button-label",V:{"for":l},U:[{D:"span",K:"ytp-ad-toggle-button-icon",V:{role:"button","aria-label":"{{tooltipText}}"},U:[{D:"span",K:"ytp-ad-toggle-button-untoggled-icon",qa:"{{untoggledIconTemplateSpec}}"},{D:"span",K:"ytp-ad-toggle-button-toggled-icon",qa:"{{toggledIconTemplateSpec}}"}]},
{D:"input",K:"ytp-ad-toggle-button-input",V:{id:l,type:"checkbox"}},{D:"span",K:"ytp-ad-toggle-button-text",qa:"{{buttonText}}"},{D:"span",K:"ytp-ad-toggle-button-tooltip",qa:"{{tooltipText}}"}]}]},k,c,d,e);this.B=this.Da("ytp-ad-toggle-button");this.j=this.Da("ytp-ad-toggle-button-input");this.Da("ytp-ad-toggle-button-label");this.Y=this.Da("ytp-ad-toggle-button-icon");this.I=this.Da("ytp-ad-toggle-button-untoggled-icon");this.C=this.Da("ytp-ad-toggle-button-toggled-icon");this.ya=this.Da("ytp-ad-toggle-button-text");
this.u=null;this.N=!1;this.hide()};
AK=function(a){a.N&&(a.isToggled()?(g.jo(a.I,!1),g.jo(a.C,!0)):(g.jo(a.I,!0),g.jo(a.C,!1)))};
iya=function(a,b){var c=null;a.u&&(c=(b?[a.u.defaultServiceEndpoint,a.u.defaultNavigationEndpoint]:[a.u.toggledServiceEndpoint]).filter(function(d){return null!=d}));
return c||[]};
BK=function(a){qx.call(this);this.i=a;this.S(this.i,"onAdUxUpdate",this.N)};
CK=function(a,b,c,d,e){ZJ.call(this,a,b,{D:"div",K:"ytp-ad-feedback-dialog-background",U:[{D:"div",K:"ytp-ad-feedback-dialog-container",U:[{D:"div",K:"ytp-ad-feedback-dialog-form",V:{role:"dialog",tabindex:"-1"},U:[{D:"div",K:"ytp-ad-feedback-dialog-title",U:[{D:"span",qa:"{{title}}"}]},{D:"span",K:"ytp-ad-info-dialog-feedback-options-title",qa:"{{reasonsTitle}}"},{D:"div",K:"ytp-ad-info-dialog-feedback-options"},{D:"div",K:"ytp-ad-feedback-dialog-confirm-container",U:[{D:"button",K:"ytp-ad-feedback-dialog-cancel-button",
qa:"{{cancelLabel}}"},{D:"button",K:"ytp-ad-feedback-dialog-confirm-button",qa:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",c,d,e);this.C=[];this.j=null;this.I=this.Da("ytp-ad-feedback-dialog-cancel-button");this.N=this.Da("ytp-ad-feedback-dialog-confirm-button");this.Y=this.Da("ytp-ad-info-dialog-feedback-options");this.ya=this.Da("ytp-ad-feedback-dialog-title");this.B=this.u=null;this.hide()};
mya=function(a,b){var c=b.cancelRenderer&&b.cancelRenderer.buttonRenderer||null;c&&(a.j=new rK(a.api,a.Ua,a.layoutId,a.i,a.ib,["ytp-ad-feedback-dialog-close-button"],"button"),g.J(a,a.j),a.j.init(hG("button"),c,a.macros),a.j.Pa("click",a.kN,a),a.j.Ca(a.element));b.title&&(c=g.Sy(b.title),a.Ma("title",c));b.reasonsTitle&&(c=g.Sy(b.reasonsTitle),a.Ma("reasonsTitle",c));b.reasons&&jya(a,b.reasons);b.cancelLabel&&(c=g.Sy(b.cancelLabel),a.Ma("cancelLabel",c),g.zu(a.I,"click",function(){return a.kN()}));
b.confirmLabel&&(c=g.Sy(b.confirmLabel),a.Ma("confirmLabel",c),g.zu(a.N,"click",function(){return kya(a)}));
b.undoRenderer&&lya(a,b.undoRenderer)};
jya=function(a,b){b=g.q(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value;c=d.reason;null==c?g.Rx(Error("AdFeedbackReason.reason was not set.")):(d=d.endpoint,null==d?g.Rx(Error("AdFeedbackReason.endpoint was not set.")):(c=new nya(c,d),g.J(a,c),a.Y.appendChild(c.j.element),a.C.push(c)))}};
lya=function(a,b){if(b=b&&b.buttonRenderer||null)b.serviceEndpoint?(a.u=new rK(a.api,a.Ua,a.layoutId,a.i,a.ib,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.J(a,a.u),a.u.init(hG("ad-feedback-undo-mute-button"),b,a.macros),a.u.Pa("click",a.HX,a),a.u.Ca(a.ya)):g.Rx(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint."))};
kya=function(a){var b=a.C.filter(function(c){return c.isChecked()});
0!==b.length&&(a.api.T().experiments.Xa("html5_enable_pacf_command_api_with_macros")?DK(a.ib,b[0].i,a.macros):a.Ua.executeCommand(b[0].i,a.macros),a.api.onAdUxClicked("ad-feedback-dialog-confirm-button",a.layoutId),a.Z("a"),a.hide())};
nya=function(a,b){this.i=b;this.j=new g.YJ({D:"label",K:"ytp-ad-feedback-dialog-reason-label",U:[{D:"input",K:"ytp-ad-feedback-dialog-reason-input",V:{type:"radio",name:"feedback-reason-group"}},{D:"span",K:"ytp-ad-feedback-dialog-reason-text",qa:g.Sy(a)}]});this.u=this.j.Da("ytp-ad-feedback-dialog-reason-input")};
EK=function(a,b,c,d,e){yK.call(this,a,b,c,d,e,[],"ad-mute-confirm-dialog")};
FK=function(a,b,c,d,e,f){ZJ.call(this,a,b,{D:"div",K:"ytp-ad-info-dialog-background",U:[{D:"div",K:"ytp-ad-info-dialog-container",U:[{D:"div",K:"ytp-ad-info-dialog-form",V:{role:"dialog",tabindex:"-1"},U:[{D:"div",K:"ytp-ad-info-dialog-title",qa:"{{title}}"},{D:"ul",K:"ytp-ad-info-dialog-ad-reasons"},{D:"div",K:"ytp-ad-info-dialog-message"},{D:"div",K:"ytp-ad-info-dialog-mute-container"},{D:"div",K:"ytp-ad-info-dialog-confirm-container",U:[{D:"button",K:"ytp-ad-info-dialog-confirm-button",qa:"{{confirmLabel}}"}]}]}]}]},
"ad-info-dialog",c,d,e);this.j=this.u=null;this.N=this.Da("ytp-ad-info-dialog-confirm-button");this.Qa=this.Da("ytp-ad-info-dialog-mute-container");this.La=this.Da("ytp-ad-info-dialog-message");this.Ha=this.Da("ytp-ad-info-dialog-ad-reasons");this.C=this.B=null;this.ya=f;this.I=null;this.Ia=!1;this.Y=null;this.hide()};
oya=function(a,b){if(b=b.content&&b.content.adFeedbackRenderer||null)a.u=new CK(a.api,a.Ua,a.layoutId,a.i,a.ib),g.J(a,a.u),a.u.init(hG("ad-feedback-dialog"),b,a.macros),a.u.Ca(a.ya),a.u.subscribe("a",function(){return a.Z("c")})};
pya=function(a,b){if(b=b.content&&b.content.confirmDialogRenderer||null)a.C=new EK(a.api,a.Ua,a.layoutId,a.i,a.ib),g.J(a,a.C),a.C.init(hG("ad-mute-confirm-dialog"),b,a.macros),a.C.Ca(a.ya),a.C.subscribe("b",function(){return a.Z("c")})};
qya=function(a){a.j&&a.j.Pa("click",a.QI,a);g.zu(a.N,"click",function(){return a.QI()})};
GK=function(a,b,c,d,e,f,k){vK.call(this,a,b,c,d,e,void 0===k?!0:k,!0,["ytp-ad-info-hover-text-button"],"ad-info-hover-text-button");this.j=null;this.B=f;this.hide()};
rya=function(a,b,c){b=b.dialog&&b.dialog.adInfoDialogRenderer||null;null==b?g.S(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(a.j=new FK(a.api,a.Ua,a.layoutId,a.i,a.ib,a.B),g.J(a,a.j),a.j.init(hG("ad-info-dialog"),b,c),a.j.Ca(a.B),a.j.subscribe("d",function(){return a.Z("f")}),a.j.subscribe("c",function(){return a.Z("e")}))};
tya=function(a,b,c){null==a.button?g.S(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(a.u&&g.L(a.u.element,"ytp-ad-info-hover-text-short"),(b=b&&b.serviceEndpoint&&b.serviceEndpoint.adInfoDialogEndpoint||null)?(rya(a,b,c),a.button.Pa("click",function(){a.j&&!a.j.sb&&(a.j.show(),sya(a))})):a.button.Pa("click",function(){return sya(a)}))};
sya=function(a){a.api.onAdUxClicked("ad-info-icon-button",a.layoutId)};
HK=function(a,b,c,d,e,f,k){ZJ.call(this,a,b,{D:"div",K:"ytp-ad-text"},void 0===k?"ad-text":k,c,d,e,void 0===f?null:f);this.j=null;this.hide()};
IK=function(a,b){b&&g.Uh(a.element,$J(a.j,b))};
JK=function(a,b,c,d,e,f,k,l){ZJ.call(this,a,b,c,d,e,f,k);this.j=l;g.J(this,this.j);this.Ha=this.C=-1};
KK=function(a){a.j&&-1===a.C&&(a.C=a.j.subscribe("h",a.Qo,a),a.Ha=a.j.subscribe("g",a.Kq,a),a.Qo())};
LK=function(a){null!=a.j&&-1!==a.C&&(a.j.jg(a.C),a.j.jg(a.Ha),a.Ha=-1,a.C=-1)};
g.MK=function(a,b,c,d,e,f){g.G.call(this);this.element=a;this.state=null;c||a.hide();this.u=b;this.B=void 0===d?b:d;this.i=f;this.j=e;this.delay=new g.K(this.WB,0,this);g.J(this,this.delay)};
NK=function(a,b){a=a.element.element;b?a.setAttribute("aria-hidden","true"):a.removeAttribute("aria-hidden")};
OK=function(a,b,c,d,e,f,k){JK.call(this,a,b,{D:"div",K:"ytp-ad-preview-slot"},"ad-preview",c,d,e,f);var l=this;this.La=-1;this.u=new g.YJ({D:"span",K:"ytp-ad-preview-container"});g.J(this,this.u);this.B=new HK(this.api,this.Ua,this.layoutId,this.i,this.ib,"ytp-ad-preview-text");g.J(this,this.B);this.B.Ca(this.u.element);this.N=new g.YJ({D:"span",K:"ytp-ad-preview-image"});g.J(this,this.N);this.I=new xK(this.api,this.Ua,this.layoutId,this.i,this.ib);g.J(this,this.I);this.I.Ca(this.N.element);this.N.Ca(this.u.element);
this.u.Ca(this.element);this.Y=new g.MK(this.u,400,!1,100,function(){return l.hide()});
g.J(this,this.Y);this.ya=0;this.Ia=!1;this.Qa=k;this.hide()};
PK=function(a){a.Y.show(100);a.show()};
QK=function(a,b,c,d,e,f){JK.call(this,a,b,{D:"div",Ga:["ytp-flyout-cta","ytp-flyout-cta-inactive"],U:[{D:"div",K:"ytp-flyout-cta-icon-container"},{D:"div",K:"ytp-flyout-cta-body",U:[{D:"div",K:"ytp-flyout-cta-text-container",U:[{D:"div",K:"ytp-flyout-cta-headline-container"},{D:"div",K:"ytp-flyout-cta-description-container"}]},{D:"div",K:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",c,d,e,f);this.Y=new xK(this.api,this.Ua,this.layoutId,this.i,this.ib,"ytp-flyout-cta-icon");g.J(this,this.Y);
this.Y.Ca(this.Da("ytp-flyout-cta-icon-container"));this.N=new HK(this.api,this.Ua,this.layoutId,this.i,this.ib,"ytp-flyout-cta-headline");g.J(this,this.N);this.N.Ca(this.Da("ytp-flyout-cta-headline-container"));this.I=new HK(this.api,this.Ua,this.layoutId,this.i,this.ib,"ytp-flyout-cta-description");g.J(this,this.I);this.I.Ca(this.Da("ytp-flyout-cta-description-container"));this.u=new rK(this.api,this.Ua,this.layoutId,this.i,this.ib,["ytp-flyout-cta-action-button"]);g.J(this,this.u);this.u.Ca(this.Da("ytp-flyout-cta-action-button-container"));
this.B=null;this.ya=0;this.hide()};
RK=function(a,b,c,d,e,f){ZJ.call(this,a,b,{D:"div",K:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",c,d,e,void 0===f?null:f);var k=this;this.j=null;this.B=new zK(this.api,this.Ua,this.layoutId,this.i,this.ib,["ytp-ad-instream-user-sentiment-like-button"]);g.J(this,this.B);this.B.Ca(this.element);this.u=new zK(this.api,this.Ua,this.layoutId,this.i,this.ib,["ytp-ad-instream-user-sentiment-dislike-button"]);g.J(this,this.u);this.u.Ca(this.element);this.C=new g.MK(this,400,!1,500,
function(){return k.hide()});
g.J(this,this.C);this.hide()};
SK=function(a,b,c,d,e){e=void 0===e?0:e;g.G.call(this);this.u=a;this.j=!1;this.W=d;this.I=!1;this.i=null;0<b&&(this.i=new g.K(this.hK,b,this),g.J(this,this.i));this.C=new g.K(this.hK,c,this);g.J(this,this.C);this.N=vga(this.u,e,1,d);g.J(this,this.N);this.J=vga(this.u,0,d,1);g.J(this,this.J);this.B=new qx;g.J(this,this.B)};
TK=function(a,b,c,d,e,f,k){JK.call(this,a,b,{D:"div",K:"ytp-ad-skip-button-slot"},"skip-button",c,d,e,f);var l=this;this.N=null;this.ya=!1;this.Ia=k;this.B=new g.YJ({D:"span",Ga:["ytp-ad-skip-button-container"]});g.J(this,this.B);this.B.Ca(this.element);this.u=this.I=null;this.La=new g.MK(this.B,500,!1,100,function(){return l.hide()});
g.J(this,this.La);this.Y=new SK(this.B.element,15E3,5E3,.5,.5);g.J(this,this.Y);this.hide()};
vya=function(a){var b=a.N&&a.N.adRendererCommands;b=b&&b.clickCommand&&b.clickCommand.commandExecutorCommand&&b.clickCommand.commandExecutorCommand.commands||[];return a.api.T().L("html5_enable_single_video_vod_ivar_on_pacf")?b.some(function(c){return c.adLifecycleCommand?uya(c.adLifecycleCommand):!1}):b.some(function(c){return c.adLifecycleCommand})};
uya=function(a){return"END_LINEAR_AD"===a.action||"END_LINEAR_AD_PLACEMENT"===a.action};
UK=function(a,b,c,d,e,f,k){JK.call(this,a,b,{D:"div",K:"ytp-ad-skip-ad-slot"},"skip-ad",c,d,e,f);this.Y=k;this.I=!1;this.N=0;this.B=this.u=null;this.hide()};
wya=function(a,b){a.I||(a.I=!0,a.u&&(b?a.u.Y.hide():a.u.hide()),b?(a=a.B,a.La.show(),a.show()):a.B.show())};
VK=function(a,b,c,d,e){rK.call(this,a,b,c,d,e,["ytp-ad-visit-advertiser-button"],"visit-advertiser")};
WK=function(a,b,c,d,e,f){f=void 0===f?!1:f;ZJ.call(this,a,b,{D:"span",K:"ytp-ad-simple-ad-badge"},"simple-ad-badge",c,d,e);this.j=f;this.hide()};
XK=function(a,b,c,d,e){e=void 0===e?!1:e;iG.call(this,"player-overlay",a,{},b,d);this.videoAdDurationSeconds=c;this.i=d;this.cj=e};
YK=function(a,b){g.tx.call(this);this.api=a;this.durationMs=b;this.i=null;this.Ke=new qx(this);g.J(this,this.Ke);this.j=xya;this.Ke.S(this.api,"presentingplayerstatechange",this.Sc);this.i=this.Ke.S(this.api,"onAdPlaybackProgress",this.Rb)};
ZK=function(a,b){g.tx.call(this);this.Ua=b;this.j=!1;this.i=0;this.Ke=new qx(this);g.J(this,this.Ke);this.durationMs=a;this.timer=new g.Di(100);g.J(this,this.timer);this.Ke.S(this.timer,"tick",this.Rb);this.u={seekableStart:0,seekableEnd:a/1E3,current:0};this.start()};
g.$K=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";d=(b+(" "+f+" Minutes ")+(c+" Seconds")).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.aL=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)};
bL=function(a,b,c,d,e,f,k){JK.call(this,a,b,{D:"span",K:"ytp-ad-duration-remaining"},"ad-duration-remaining",c,d,e,f);this.videoAdDurationSeconds=k;this.u=null;this.hide()};
cL=function(a,b,c,d,e){HK.call(this,a,b,c,d,e,"ytp-video-ad-top-bar-title","ad-title")};
dL=function(a,b){this.j=a;this.i=b};
eL=function(a){return a.i-a.j};
fL=function(a,b){return a.j+b*eL(a)};
gL=function(a,b,c){return eL(a)?g.Yg((b-a.j)/eL(a),0,1):null!=c?c:Infinity};
hL=function(a,b){g.YJ.call(this,{D:"div",K:"ytp-ad-persistent-progress-bar-container",U:[{D:"div",K:"ytp-ad-persistent-progress-bar"}]});this.api=a;this.j=b;g.J(this,this.j);this.Jc=this.Da("ytp-ad-persistent-progress-bar");this.i=-1;this.S(a,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()};
iL=function(a,b,c,d,e,f,k){ZJ.call(this,a,b,{D:"div",K:"ytp-ad-player-overlay",U:[{D:"div",K:"ytp-ad-player-overlay-flyout-cta"},{D:"div",K:"ytp-ad-player-overlay-instream-info"},{D:"div",K:"ytp-ad-player-overlay-skip-or-preview"},{D:"div",K:"ytp-ad-player-overlay-progress-bar"},{D:"div",K:"ytp-ad-player-overlay-instream-user-sentiment"}]},"player-overlay",c,d,e);this.I=k;this.N=this.Da("ytp-ad-player-overlay-flyout-cta");this.u=this.Da("ytp-ad-player-overlay-instream-info");this.B=null;yya(this)&&
(a=Mh("div"),g.L(a,"ytp-ad-player-overlay-top-bar-gradients"),b=this.u,b.parentNode&&b.parentNode.insertBefore(a,b),(b=this.api.getVideoData(2))&&b.isListed&&b.title&&(c=new cL(this.api,this.Ua,this.layoutId,this.i,this.ib),c.Ca(a),c.init(hG("ad-title"),{text:b.title},this.macros),g.J(this,c)),this.B=a);this.C=this.Da("ytp-ad-player-overlay-skip-or-preview");this.ya=this.Da("ytp-ad-player-overlay-progress-bar");this.Y=this.Da("ytp-ad-player-overlay-instream-user-sentiment");this.j=f;g.J(this,this.j);
this.hide()};
yya=function(a){a=a.api.T();return g.eE(a)&&a.isMobile};
Aya=function(a,b){var c=void 0===c?!0:c;var d=g.P("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=g.wj(window.location.href);e&&d.push(e);e=g.wj(a);if(g.$b(d,e)||!e&&jb(a,"/"))if(g.Q("autoescape_tempdata_url")&&(d=document.createElement("a"),g.Vg(d,a),a=d.href),a&&(a=yj(a),d=a.indexOf("#"),a=0>d?a:a.substr(0,d)))if(c&&!b.csn&&(b.itct||b.ved)&&(b=Object.assign({csn:g.Kx()},b)),f){var f=parseInt(f,10);isFinite(f)&&0<f&&zya(a,b,f)}else zya(a,b)};
zya=function(a,b,c){a="ST-"+kh(a).toString(36);b=b?g.Fj(b):"";c=c||5;qu()&&g.Vt(a,b,c)};
jL=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.Hj("/sharing_services",a);g.Ow(d)};
g.Cya=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.Hj(a,b)+c;var e=void 0===e?un:e;e=vn(a,e)||Bya;d.href=Sk(e)};
g.kL=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?!1:c;var d=g.P("EVENT_ID");d&&(b.ei||(b.ei=d));b&&Aya(a,b);c||((window.ytspf||{}).enabled?spf.navigate(a):g.Cya(a))};
g.lL=function(a,b,c,d){c&&Aya(a,c);c=g.xg(a);c=g.tg(c);a!=c&&qt(Error("Unsafe window.open URL: "+a));a=c;b=b||kh(a).toString(36);var e,f;if(d&&"function"===typeof(null==(e=document.featurePolicy)?void 0:e.features)&&(null==(f=document.featurePolicy)?0:f.features().includes("attribution-reporting")))try{a=Dya(a);var k=Object.keys(d).map(function(l){return l.toLowerCase()+"="+d[l]}).join(",");
window.open(a,b,k);return}catch(l){}window.open(a,b)};
Dya=function(a){return"www.googleadservices.com"!==g.wj(a)?a:a+"&nis=3"};
g.mL=function(a,b,c){b=Eya(null,b,c);if(b=Wg(b,window,"loginPopup","width=800,height=600,resizable=yes,scrollbars=yes"))c=g.Tu("LOGGED_IN",function(d){g.Uu(g.P("LOGGED_IN_PUBSUB_KEY",void 0));ft("LOGGED_IN",!0);a(d)}),ft("LOGGED_IN_PUBSUB_KEY",c),b.moveTo((screen.width-800)/2,(screen.height-600)/2)};
Eya=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=Gj(c,"mode",a));a=Gj(d,"next",c);b&&(a=Gj(a,"feature",b));return a};
Fya=function(a,b){if(!a)return!1;var c;if((null==(c=a.signalServiceEndpoint)?0:c.signal)&&b.Uq)return!!b.Uq[a.signalServiceEndpoint.signal];var d;if((null==(d=a.continuationCommand)?0:d.request)&&b.aE)return!!b.aE[a.continuationCommand.request];for(var e in a)if(b.XD[e])return!0;return!1};
Gya=function(a,b){var c;if((null==(c=a.signalServiceEndpoint)?0:c.signal)&&b.Uq&&(c=b.Uq[a.signalServiceEndpoint.signal]))return c();var d;if((null==(d=a.continuationCommand)?0:d.request)&&b.aE&&(d=b.aE[a.continuationCommand.request]))return d();for(var e in a)if(b.XD[e]&&(a=b.XD[e]))return a()};
nL=function(a){return function(){return new a}};
Iya=function(a){var b=void 0===b?"UNKNOWN_INTERFACE":b;if(1===a.length)return a[0];var c=Hya[b];if(c){var d=new RegExp(c),e=g.q(a);for(c=e.next();!c.done;c=e.next())if(c=c.value,d.exec(c))return c}var f=[];Object.entries(Hya).forEach(function(k){var l=g.q(k);k=l.next().value;l=l.next().value;b!==k&&f.push(l)});
d=new RegExp(f.join("|"));a.sort(function(k,l){return k.length-l.length});
e=g.q(a);for(c=e.next();!c.done;c=e.next())if(c=c.value,!d.exec(c))return c;return a[0]};
g.oL=function(a){return"/youtubei/v1/"+Iya(a)};
pL=function(a){var b=g.P("INNERTUBE_HOST_OVERRIDE");b&&(a=String(b)+String(yj(a)));return a};
Jya=function(a,b){var c={};g.P("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")&&(null==b?0:b.Authorization)||(c.key=g.P("INNERTUBE_API_KEY"));g.Q("json_condensed_response")&&(c.prettyPrint="false");return a=zt(a,c)};
qL=function(a,b){return{method:void 0===b?"POST":b,mode:At(a)?"same-origin":"cors",credentials:At(a)?"same-origin":"include"}};
rL=function(){};
sL=function(){};
tL=function(a,b,c,d,e){this.B=a;this.df=b;this.u=c;this.I=d;this.C=e;this.j=void 0;this.i=new Map;a.Uq||(a.Uq={});a.Uq=Object.assign({},Kya,a.Uq)};
Lya=function(a,b,c,d,e){if(void 0!==tL.i){if(d=tL.i,a=[a!==d.B,b!==d.df,c!==d.u,!1,!1,void 0!==d.j],a.some(function(f){return f}))throw new g.Kv("InnerTubeTransportService is already initialized",a);
}else tL.i=new tL(a,b,c,d,e)};
vL=function(a,b,c){var d=void 0===d?uL:d;var e=Gya(b,a.B);if(!e)return qi(new g.Kv("Error: No request builder found for command.",b));var f=e.C(b,c,d);return f?new li(function(k){var l,m,n;return g.B(function(p){if(1==p.i)return m="cors"===(null==(l=f.Oq)?void 0:l.mode)?"cors":void 0,g.A(p,Mya(a,f.config,m),2);n=p.j;k(Nya(a,f,n));g.ua(p)})}):qi(new g.Kv("Error: Failed to build request for command.",b))};
g.AJ=function(a,b,c,d,e){e=void 0===e?{Ep:{identity:uL}}:e;var f=void 0===f?!0:f;b.context||(b.context=uJ(d,f));return new li(function(k){var l,m,n,p,r;return g.B(function(t){if(1==t.i)return l=pL(c),m=At(l)?"same-origin":"cors",g.A(t,Mya(a,e,m),2);n=t.j;p=Jya(pL(c),n);r={input:p,Oq:qL(p),al:b,config:e};k(Nya(a,r,n));g.ua(t)})})};
Nya=function(a,b,c){var d,e,f,k,l,m,n,p,r,t,w,x,y,z,F,I,H,O,ma,N;return g.B(function(da){switch(da.i){case 1:da.eb(2);break;case 3:if((d=da.j)&&!d.isExpired())return da.return(Promise.resolve(d.i()));case 2:if((f=null==(e=b.config)?void 0:e.Vj)&&a.i.has(f)&&g.Q("web_memoize_inflight_requests"))return da.return(a.i.get(f));if(null==(k=b)?0:null==(l=k.al)?0:l.context)for(m=g.q([]),n=m.next();!n.done;n=m.next())p=n.value,p.Cfa(b.al.context);if(null==(r=a.j)?0:r.B(b.input,b.al))return da.return(a.j.u(b.input,
b.al));t=JSON.stringify(b.al);b.Oq=Object.assign({},b.Oq,{headers:c});w=Object.assign({},b.Oq);"POST"===b.Oq.method&&(w=Object.assign({},w,{body:t}));(null==(x=b.config)?0:x.pY)&&oz(b.config.pY);y=a.df.fetch(b.input,w,b.config);f&&a.i.set(f,y);return g.A(da,y,4);case 4:z=da.j;f&&a.i.has(f)&&a.i.delete(f);(null==(F=b.config)?0:F.sY)&&oz(b.config.sY);if(z||null==(I=a.j)||!I.i(b.input,b.al)){da.eb(5);break}return g.A(da,a.j.j(b.input,b.al),6);case 6:z=da.j;case 5:if(g.Q("web_ordered_response_processors")&&
z&&a.C)for(H=g.q(Oya),n=H.next();!n.done;n=H.next())O=n.value,a.C[O]&&a.C[O].handleResponse(z,b);else if(z&&a.I)for(ma=g.q(a.I),n=ma.next();!n.done;n=ma.next())N=n.value,N.handleResponse(z,b);return da.return(z)}})};
Mya=function(a,b,c){return g.B(function(d){if(a.u.RY){var e=d.return,f;var k=(null==b?void 0:null==(f=b.Ep)?void 0:f.identity)||uL;var l;f=null==b?void 0:null==(l=b.Ep)?void 0:l.sessionIndex;k=a.u.Iz(k,{sessionIndex:f});k=Object.assign({},Pya(c),k);d=e.call(d,k)}else d=d.return(Qya(a,b,c));return d})};
Qya=function(a,b,c){var d,e,f,k,l,m,n;return g.B(function(p){if(1==p.i){f=(null==(d=b)?void 0:null==(e=d.Ep)?void 0:e.identity)||uL;m=null==(k=b)?void 0:null==(l=k.Ep)?void 0:l.sessionIndex;var r=pi(a.u.Iz(f,{sessionIndex:m}));return g.A(p,r,2)}n=p.j;return p.return(Promise.resolve(Object.assign({},Pya(c),n)))})};
Pya=function(a){var b={"Content-Type":"application/json"};g.Q("enable_web_eom_visitor_data")&&g.P("EOM_VISITOR_DATA")?b["X-Goog-EOM-Visitor-Id"]=g.P("EOM_VISITOR_DATA"):g.P("VISITOR_DATA")&&(b["X-Goog-Visitor-Id"]=g.P("VISITOR_DATA"));"cors"!==a&&((a=g.P("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(b["X-Youtube-Client-Name"]=a),(a=g.P("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(b["X-Youtube-Client-Version"]=a),(a=g.P("CHROME_CONNECTED_HEADER"))&&(b["X-Youtube-Chrome-Connected"]=a),g.Q("forward_domain_admin_state_on_embeds")&&
(a=g.P("DOMAIN_ADMIN_STATE"))&&(b["X-Youtube-Domain-Admin-State"]=a));return b};
wL=function(){};
xL=function(){};
yL=function(){};
zL=function(){};
AL=function(){};
BL=function(){};
CL=function(){};
g.EL=function(a,b){if(!DL){var c={XD:{feedbackEndpoint:nL(yL),modifyChannelNotificationPreferenceEndpoint:nL(zL),playlistEditEndpoint:nL(AL),subscribeEndpoint:nL(wL),unsubscribeEndpoint:nL(xL),webPlayerShareEntityServiceEndpoint:nL(BL)}},d=g.Q("web_enable_client_location_service")?tJ.getInstance():void 0,e=[],f={};d&&(e.push(d),f.client_location=d);void 0===a&&(vJ.i||(vJ.i=new vJ),a=vJ.i);void 0===b&&(CL.i||(CL.i=new CL),b=CL.i);Lya(c,b,a,e,f);DL=tL.i}return DL};
FL=function(){};
Rya=function(){FL.i||(FL.i=new FL);return FL.i};
Tya=function(){if(!g.Q("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.Q("disable_biscotti_fetch_entirely_for_all_web_clients")&&qu()&&"1"!=wf(g.P("PLAYER_VARS",{}),"privembed",!1)){var a=function(){GL=!0;"google_ad_status"in window?ft("DCLKSTAT",1):ft("DCLKSTAT",2)};
try{g.my("//web.archive.org/web/20220130220643/https://static.doubleclick.net/instream/ad_status.js",a)}catch(b){}Sya.push(g.Nu.Uf(function(){if(!(GL||"google_ad_status"in window)){try{if(a){var b=""+g.Qa(a),c=eoa[b];c&&g.Uu(c)}}catch(d){}GL=!0;ft("DCLKSTAT",3)}},5E3))}};
Uya=function(){var a=Number(g.P("DCLKSTAT",0));return isNaN(a)?0:a};
HL=function(){};
Vya=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."))})};
Dv=function(a,b){var c=this;this.handleError=a;this.i=b;this.j=!1;void 0===self.document||self.addEventListener("beforeunload",function(){c.j=!0});
this.u=Math.random()<=g.kt("ytidb_transaction_ended_event_rate_limit",.02)};
Xya=function(a,b){HL.getInstance().estimate().then(function(c){c=Object.assign({},b,{isSw:void 0===self.document,isIframe:self!==self.top,deviceStorageUsageMbytes:Wya(null==c?void 0:c.usage),deviceStorageQuotaMbytes:Wya(null==c?void 0:c.quota)});a.i("idbQuotaExceeded",c)})};
Wya=function(a){return"undefined"===typeof a?"-1":String(Math.ceil(a/1048576))};
Yya=function(){this.state=1;this.i=null};
$ya=function(a,b,c,d,e,f){var k=void 0===k?"trayride":k;c?(a.state=2,g.my(c,function(){if(window[k])Zya(a,d,k,e);else{a.state=3;var l=doa(c),m=document.getElementById(l);m&&(Rka(l),m.parentNode.removeChild(m));g.Rx(new g.Kv("Unable to load Botguard","from "+c))}},f)):b&&(f=g.Nh("SCRIPT"),f.textContent=b,f.nonce=Xg(),document.head.appendChild(f),document.head.removeChild(f),window[k]?Zya(a,d,k,e):(a.state=4,g.Rx(Error("Unable to load Botguard from JS"))))};
Zya=function(a,b,c,d){a.state=5;if(g.Q("use_bg_facade"))if(window[c])try{var e=new Mk({program:b,globalName:c});e.CY.then(function(){a.state=6;d&&d(b)});
IL(a,e)}catch(m){m instanceof Error&&(a.state=7,g.Rx(m))}else a.state=7,g.Rx(Error("VM not loaded, cannot start"));else{var f,k,l;if(e=null!=(l=null==(f=window[c])?void 0:f.ad)?l:null==(k=window[c])?void 0:k.bg){try{IL(a,new e(b)),a.state=6}catch(m){a.state=7,m instanceof Error&&g.Rx(m)}d&&d(b)}else a.state=7,g.Rx(Error("Failed to finish initializing VM"))}};
aza=function(a,b){var c=g.JL;a=void 0===a?{}:a;b=void 0===b?3E3:b;return c.i?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){c.i?c.i.snapshot?c.i.snapshot({Dv:a}).then(d):c.i.hot?c.i.hot(d,!0,a):c.i.invoke?c.i.invoke(d,!0,a):g.Rx(Error("VM has unknown interface")):d(null)})]):Promise.resolve(null)};
IL=function(a,b){g.Se(a.i);a.i=b};
bza=function(a){return!KL||(0,g.R)()-KL>a};
g.ML=function(a,b){var c=g.lD(b.experiments,"bg_vm_reinit_threshold");b.L("always_reinit_bg_vm")&&(c=0);a.program&&(2===g.JL.state?0:bza(c))&&(Ez("bg_i",void 0,"player_att"),g.JL.initialize(a,function(){var d=a.serverEnvironment;Ez("bg_l",void 0,"player_att");KL=(0,g.R)();for(var e=0;e<LL.length;e++){var f=LL[e];try{f(d)}catch(k){}}},b.cspNonce))};
cza=function(a){a=void 0===a?{}:a;return g.JL.invoke(a)};
dza=function(a){var b=g.kt("botguard_async_snapshot_timeout_ms",3E3);a=void 0===a?{}:a;return aza(a,b)};
fza=function(a,b,c,d){var e=window.location.search;if(38===b.ya&&"books"===a.playerStyle)return e=b.videoId.indexOf(":"),g.Hj("//web.archive.org/web/20220130220643/https://play.google.com/books/volumes/"+b.videoId.slice(0,e)+"/content/media",{aid:b.videoId.slice(e+1),sig:b.CZ});if(30===b.ya&&"docs"===a.playerStyle)return g.Hj("https://web.archive.org/web/20220130220643/https://docs.google.com/get_video_info",{docid:b.videoId,authuser:b.authUser,authkey:b.authKey,eurl:a.qd});if(33===b.ya&&"google-live"===a.playerStyle)return g.Hj("//web.archive.org/web/20220130220643/https://google-liveplayer.appspot.com/get_video_info",{key:b.videoId});
"yt"!==a.va&&g.S(Error("getVideoInfoUrl for invalid namespace: "+a.va));var f={html5:"1",video_id:b.videoId,cpn:b.clientPlaybackNonce,eurl:a.qd,ps:a.playerStyle,el:UF(b),hl:a.Pe,list:b.playlistId,agcid:b.cN,aqi:b.adQueryId,sts:19019,lact:Ou()};Object.assign(f,a.deviceParams);a.jb&&(f.forced_experiments=a.jb);b.La?(f.vvt=b.La,b.mdxEnvironment&&(f.mdx_environment=b.mdxEnvironment)):g.YF(b)&&(f.access_token=g.YF(b));b.adFormat&&(f.adformat=b.adFormat);0<=b.slotPosition&&(f.slot_pos=b.slotPosition);b.breakType&&
(f.break_type=b.breakType);null!==b.qD&&(f.ad_id=b.qD);null!==b.sD&&(f.ad_sys=b.sD);null!==b.GG&&(f.encoded_ad_playback_context=b.GG);b.dD&&(f.tpra="1");a.captionsLanguagePreference&&(f.cc_lang_pref=a.captionsLanguagePreference);a.Ta&&2!==a.Ta&&(f.cc_load_policy=a.Ta);var k=g.wv(g.vv.getInstance(),65);g.xE(a)&&null!=k&&!k&&(f.device_captions_on="1");a.mute&&(f.mute=a.mute);b.annotationsLoadPolicy&&2!==a.annotationsLoadPolicy&&(f.iv_load_policy=b.annotationsLoadPolicy);b.Hq&&(f.endscreen_ad_tracking=
b.Hq);(k=a.W.get(b.videoId))&&k.ey&&(f.ic_track=k.ey);b.Ya&&(f.itct=b.Ya);XF(b)&&(f.autoplay="1");b.mutedAutoplay&&(f.mutedautoplay=b.mutedAutoplay);b.dl&&(f.autonav="1");b.kI&&(f.noiba="1");b.isMdxPlayback&&(f.mdx="1",f.ytr=b.Eg);b.mdxControlMode&&(f.mdx_control_mode=b.mdxControlMode);b.Vl&&(f.ytrcc=b.Vl);b.pC&&(f.utpsa="1");b.isFling&&(f.is_fling="1");b.isInlinePlaybackNoAd&&(f.mute="1");b.vnd&&(f.vnd=b.vnd);b.Sg&&(k=3===b.Sg.split("|").length,f.force_ad_params=k?b.Sg:"||"+b.Sg);b.Ed&&(f.preload=
b.Ed);c.width&&(f.width=c.width);c.height&&(f.height=c.height);b.Pe&&(f.splay="1");b.ypcPreview&&(f.ypc_preview="1");VF(b)&&(f.content_v=VF(b));b.wb&&(f.livemonitor=1);a.authUser&&(f.authuser=a.authUser);a.pageId&&(f.pageid=a.pageId);a.ya&&(f.ei=a.ya);a.i&&(f.iframe="1");b.contentCheckOk&&(f.cco="1");b.racyCheckOk&&(f.rco="1");a.u&&b.uC&&(f.live_start_walltime=b.uC);a.u&&b.dh&&(f.live_manifest_duration=b.dh);a.u&&b.playerParams&&(f.player_params=b.playerParams);a.u&&b.cycToken&&(f.cyc=b.cycToken);
a.u&&b.fD&&(f.tkn=b.fD);0!==d&&(f.vis=d);a.enableSafetyMode&&(f.enable_safety_mode="1");b.xb&&(f.kpt=b.xb);b.qk&&(f.kids_age_up_mode=b.qk);b.kidsAppInfo&&(f.kids_app_info=b.kidsAppInfo);b.Gr&&(f.upg_content_filter_mode="1");a.widgetReferrer&&(f.widget_referrer=a.widgetReferrer.substring(0,128));b.ea?(c=null!=b.ea.latitudeE7&&null!=b.ea.longitudeE7?b.ea.latitudeE7+","+b.ea.longitudeE7:",",c+=","+(b.ea.clientPermissionState||0)+","+(b.ea.locationRadiusMeters||"")+","+(b.ea.locationOverrideToken||"")):
c=null;c&&(f.uloc=c);b.nk&&(f.internalipoverride=b.nk);a.embedConfig&&(f.embed_config=a.embedConfig);a.jj&&(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.Rp&&b.fq&&(f.clip=b.Rp,f.clipt=b.fq);b.nq&&
(f.disable_watch_next="1");b.Yg&&(f.forced_by_var="1");for(var l in f)!eza.has(l)&&f[l]&&512<String(f[l]).length&&(g.Rx(Error("GVI param too long: "+l)),f[l]="");b=a.Ha;g.dE(a)&&(b=Gy(b.replace(/\b(?:www|web)([.-])/,"tv$1"))||a.Ha);a=g.Hj(b+"get_video_info",f);e&&(a=jka(a,e));return a};
g.NL=function(a,b){return a.Ha+"timedtext_video?ref=player&v="+b.videoId};
g.OL=function(a){var b={};b.feature=a;return b};
gza=function(a){var b={};a.ZC&&(b.ytrext=a.ZC);return g.uf(b)?void 0:b};
g.hza=function(a){var b=this;this.videoData=a;a={};this.j=(a.c1a=function(){var c=[];if(g.JL.isInitialized()){var d="";b.videoData&&b.videoData.Ta&&(d=b.videoData.Ta+("&r1b="+b.videoData.clientPlaybackNonce));var e={};d=(e.atr_challenge=d,e);Ez("bg_v",void 0,"player_att");d=cza(d);Ez("bg_s",void 0,"player_att");d?c.push("r1a="+d):c.push("r1c=2")}else Ez("bg_e",void 0,"player_att"),window.trayride||window.botguard?c.push("r1c=1"):c.push("r1c=4");c.push("r1d="+g.JL.getState());return c.join("&")},a.c6a=
function(c){return"r6a="+(Number(c.c)^Uya())},a);
this.videoData&&this.videoData.Ta?this.i=ut(this.videoData.Ta):this.i={}};
g.iza=function(a){if(a.videoData&&a.videoData.Ta){for(var b=[a.videoData.Ta],c=g.q(Object.keys(a.j)),d=c.next();!d.done;d=c.next())d=d.value,a.i[d]&&a.j[d]&&(d=a.j[d](a.i))&&b.push(d);return b.join("&")}return null};
kza=function(a){var b={};Object.assign(b,a.j);g.Q("player_attestation_bg_async")&&(b.c1a=function(){return jza(a)});
if(a.videoData&&a.videoData.Ta){for(var c=[a.videoData.Ta],d=g.q(Object.keys(b)),e=d.next();!e.done;e=d.next())e=e.value,a.i[e]&&b[e]&&(e=b[e](a.i))&&c.push(e);return new Promise(function(f,k){Promise.all(c).then(function(l){f(l.filter(function(m){return!!m}).join("&"))},k)})}return Promise.resolve(null)};
lza=function(a){if(!("c1a"in a.i))return!1;if(!g.JL.isInitialized()){if(g.Q("player_allow_late_init_bg")&&2!==g.JL.state&&a.videoData){var b=a.videoData.botguardData;b&&g.ML(b,a.videoData.T())}return!0}return!1};
jza=function(a){function b(e){return e+"&r1d="+g.JL.getState()}
if(!g.JL.isInitialized())return Ez("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.Ta&&(c=a.videoData.Ta+("&r1b="+a.videoData.clientPlaybackNonce));a={};var d=(a.atr_challenge=c,a);return new Promise(function(e){Ez("bg_v",void 0,"player_att");dza(d).then(function(f){f?(Ez("bg_s",void 0,"player_att"),e(b("r1a="+f))):(Ez("bg_e",void 0,"player_att"),e(b("r1c=2")))},function(){Ez("bg_e",void 0,"player_att");
e(b("r1c=3"))})})};
mza=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 PL(a)};
PL=function(a,b,c){if("string"===typeof a)return{videoId:a,startSeconds:b,suggestedQuality:c};b=["endSeconds","startSeconds","mediaContentUrl","suggestedQuality","videoId"];c={};for(var d=0;d<b.length;d++){var e=b[d];a[e]&&(c[e]=a[e])}return c};
nza=function(a,b,c,d){if(g.Oa(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};
SL=function(a,b){g.G.call(this);var c=this;this.app=a;this.playerType=b;this.i=!0;this.element=null;this.C={};this.J={};this.j={};this.N=[];this.I={};this.B={};this.u=null;this.W=new Set;QL(this,"cueVideoById",this.cueVideoById);QL(this,"loadVideoById",this.loadVideoById);QL(this,"cueVideoByUrl",this.cueVideoByUrl);QL(this,"loadVideoByUrl",this.loadVideoByUrl);QL(this,"playVideo",this.playVideo);QL(this,"pauseVideo",this.pauseVideo);QL(this,"stopVideo",this.stopVideo);QL(this,"clearVideo",this.clearVideo);
QL(this,"getVideoBytesLoaded",this.getVideoBytesLoaded);QL(this,"getVideoBytesTotal",this.getVideoBytesTotal);QL(this,"getVideoLoadedFraction",this.getVideoLoadedFraction);QL(this,"getVideoStartBytes",this.getVideoStartBytes);QL(this,"cuePlaylist",this.cuePlaylist);QL(this,"loadPlaylist",this.loadPlaylist);QL(this,"nextVideo",this.nextVideo);QL(this,"previousVideo",this.previousVideo);QL(this,"playVideoAt",this.playVideoAt);QL(this,"setShuffle",this.setShuffle);QL(this,"setLoop",this.setLoop);QL(this,
"getPlaylist",this.oT);QL(this,"getPlaylistIndex",this.getPlaylistIndex);QL(this,"getPlaylistId",this.getPlaylistId);QL(this,"loadModule",this.loadModule);QL(this,"unloadModule",this.unloadModule);QL(this,"setOption",this.setOption);QL(this,"getOption",this.getOption);QL(this,"getOptions",this.getOptions);QL(this,"mute",this.mute);QL(this,"unMute",this.unMute);QL(this,"isMuted",this.isMuted);QL(this,"setVolume",this.setVolume);QL(this,"getVolume",this.getVolume);QL(this,"seekTo",this.seekTo);QL(this,
"getPlayerMode",this.getPlayerMode);QL(this,"getPlayerState",this.getPlayerState);QL(this,"getPlaybackRate",this.getPlaybackRate);QL(this,"setPlaybackRate",this.setPlaybackRate);QL(this,"getAvailablePlaybackRates",this.getAvailablePlaybackRates);QL(this,"getPlaybackQuality",function(){return c.getPlaybackQuality(1)});
QL(this,"setPlaybackQuality",this.setPlaybackQuality);QL(this,"getAvailableQualityLevels",this.getAvailableQualityLevels);QL(this,"getCurrentTime",this.getCurrentTime);QL(this,"getDuration",this.getDuration);QL(this,"addEventListener",this.iS);QL(this,"removeEventListener",this.kY);QL(this,"getDebugText",this.getDebugText);QL(this,"getVideoData",function(){return c.Vz()});
QL(this,"addCueRange",this.addCueRange);QL(this,"removeCueRange",this.removeCueRange);QL(this,"setSize",this.setSize);QL(this,"getApiInterface",this.getApiInterface);QL(this,"destroy",this.destroy);QL(this,"showVideoInfo",this.showVideoInfo);QL(this,"hideVideoInfo",this.hideVideoInfo);QL(this,"isVideoInfoVisible",this.isVideoInfoVisible);QL(this,"getSphericalProperties",this.getSphericalProperties);QL(this,"setSphericalProperties",this.setSphericalProperties);a=this.app.T();a.B||(QL(this,"getVideoEmbedCode",
this.getVideoEmbedCode),QL(this,"getVideoUrl",this.getVideoUrl));QL(this,"getMediaReferenceTime",this.getMediaReferenceTime);QL(this,"getSize",this.getSize);a.B||QL(this,"logImaAdEvent",this.logImaAdEvent);RL(this,"getInternalApiInterface",this.getInternalApiInterface);RL(this,"cueVideoByPlayerVars",this.cueVideoByPlayerVars);RL(this,"loadVideoByPlayerVars",this.loadVideoByPlayerVars);RL(this,"preloadVideoByPlayerVars",this.preloadVideoByPlayerVars);RL(this,"getAdState",this.getAdState);RL(this,"sendAbandonmentPing",
this.sendAbandonmentPing);RL(this,"setLoopRange",this.setLoopRange);RL(this,"getLoopRange",this.getLoopRange);RL(this,"setAutonavState",this.setAutonavState);RL(this,"seekToLiveHead",this.seekToLiveHead);RL(this,"seekToStreamTime",this.seekToStreamTime);RL(this,"seekToChapterWithAnimation",this.seekToChapterWithAnimation);RL(this,"startSeekCsiAction",this.startSeekCsiAction);RL(this,"getStreamTimeOffset",this.getStreamTimeOffset);RL(this,"getVideoData",this.Vz);RL(this,"setIsExternalPlaylist",this.setIsExternalPlaylist);
RL(this,"downloadVideo",this.downloadVideo);RL(this,"pauseVideoDownload",this.pauseVideoDownload);RL(this,"resumeVideoDownload",this.resumeVideoDownload);RL(this,"refreshAllVideos",this.refreshAllVideos);RL(this,"deleteVideos",this.deleteVideos);RL(this,"deleteAllVideos",this.deleteAllVideos);RL(this,"isOrchestrationLeader",this.isOrchestrationLeader);RL(this,"getAppState",this.getAppState);RL(this,"addInfoCardXml",this.addInfoCardXml);RL(this,"updateLastActiveTime",this.updateLastActiveTime);RL(this,
"setBlackout",this.setBlackout);RL(this,"setAccountLinkState",this.setAccountLinkState);RL(this,"updateAccountLinkingConfig",this.updateAccountLinkingConfig);RL(this,"setUserEngagement",this.setUserEngagement);RL(this,"updateSubtitlesUserSettings",this.updateSubtitlesUserSettings);RL(this,"getPresentingPlayerType",this.getPresentingPlayerType);RL(this,"canPlayType",this.canPlayType);RL(this,"updatePlaylist",this.updatePlaylist);RL(this,"updateVideoData",this.updateVideoData);RL(this,"updateEnvironmentData",
this.updateEnvironmentData);RL(this,"sendVideoStatsEngageEvent",this.sendVideoStatsEngageEvent);RL(this,"setCardsVisible",this.setCardsVisible);RL(this,"productsInVideoVisibilityUpdated",this.productsInVideoVisibilityUpdated);RL(this,"setSafetyMode",this.setSafetyMode);RL(this,"isAtLiveHead",function(d){c.isAtLiveHead(void 0,d)});
RL(this,"getVideoAspectRatio",this.getVideoAspectRatio);RL(this,"getPreferredQuality",this.getPreferredQuality);RL(this,"setPlaybackQualityRange",this.setPlaybackQualityRange);RL(this,"onAdUxClicked",this.onAdUxClicked);RL(this,"getFeedbackProductData",this.getFeedbackProductData);RL(this,"getStoryboardFrame",this.getStoryboardFrame);RL(this,"getStoryboardFrameIndex",this.getStoryboardFrameIndex);RL(this,"getStoryboardLevel",this.getStoryboardLevel);RL(this,"getNumberOfStoryboardLevels",this.getNumberOfStoryboardLevels);
RL(this,"getCaptionWindowContainerId",this.getCaptionWindowContainerId);RL(this,"getAvailableQualityLabels",this.getAvailableQualityLabels);RL(this,"addUtcCueRange",this.addUtcCueRange);RL(this,"showAirplayPicker",this.showAirplayPicker);RL(this,"addBgVersionChangeCallback",this.addBgVersionChangeCallback);RL(this,"setAutonav",this.setAutonav);RL(this,"isNotServable",this.isNotServable);RL(this,"channelSubscribed",this.channelSubscribed);RL(this,"channelUnsubscribed",this.channelUnsubscribed);RL(this,
"isPictureInPictureAllowed",this.isPictureInPictureAllowed);RL(this,"togglePictureInPicture",this.togglePictureInPicture);RL(this,"supportsGaplessAudio",this.supportsGaplessAudio);RL(this,"enqueueVideoByPlayerVars",function(d){return void c.enqueueVideoByPlayerVars(d)});
RL(this,"clearQueue",this.clearQueue);RL(this,"isFastLoad",function(){return!1});
RL(this,"getPlayerResponse",this.getPlayerResponse);RL(this,"getAudioTrack",this.bT);RL(this,"setAudioTrack",this.setAudioTrack);RL(this,"getAvailableAudioTracks",this.cT);RL(this,"getMaxPlaybackQuality",this.getMaxPlaybackQuality);RL(this,"getUserPlaybackQualityPreference",this.getUserPlaybackQualityPreference);RL(this,"getStatsForNerds",this.getStatsForNerds);RL(this,"getSubtitlesUserSettings",this.getSubtitlesUserSettings);RL(this,"resetSubtitlesUserSettings",this.resetSubtitlesUserSettings);RL(this,
"setMinimized",this.setMinimized);RL(this,"confirmYpcRental",this.confirmYpcRental);RL(this,"setInlinePreview",this.setInlinePreview);RL(this,"toggleSubtitlesOn",this.toggleSubtitlesOn);RL(this,"handleExternalCall",this.handleExternalCall);RL(this,"isExternalMethodAvailable",this.isExternalMethodAvailable);RL(this,"setScreenLayer",this.setScreenLayer);RL(this,"getCurrentPlaylistSequence",this.getCurrentPlaylistSequence);RL(this,"getPlaylistSequenceForTime",this.getPlaylistSequenceForTime);RL(this,
"shouldSendVisibilityState",this.shouldSendVisibilityState);RL(this,"updateFullerscreenEduButtonVisibility",this.updateFullerscreenEduButtonVisibility);RL(this,"updateFullerscreenEduButtonSubtleModeState",this.updateFullerscreenEduButtonSubtleModeState);RL(this,"setGlobalCrop",this.setGlobalCrop);RL(this,"getVisibilityState",this.getVisibilityState);RL(this,"isMutedByMutedAutoplay",this.isMutedByMutedAutoplay);RL(this,"setInternalSize",this.setInternalSize)};
QL=function(a,b,c){a.C[b]=function(){var d=g.Ca.apply(0,arguments);a.ma();return c.apply(a,d)};
a.j.hasOwnProperty(b)||RL(a,b,c);a.N.push(b)};
TL=function(a,b,c){a.J[b]=function(){var d=g.Ca.apply(0,arguments);a.ma();return c.apply(a,d)};
a.j.hasOwnProperty(b)||RL(a,b,c);a.N.push(b)};
RL=function(a,b,c){a.j[b]=function(){var d=g.Ca.apply(0,arguments);a.ma();return c.apply(a,d)}};
vxa=function(a){a.u||(a.u={},Object.assign(a.u,a.C),Object.assign(a.u,a.J),a.u.addEventListener=function(b,c){oza(a,b,c)},a.u.removeEventListener=function(b,c){c="string"===typeof c?b+c:b+String(g.Qa(c));
var d=a.B[c];d&&(a.app.fm.unsubscribe(b,d),b=a.B,c in b&&delete b[c])});
return a.u};
oza=function(a,b,c){var d="string"===typeof c?b+c:b+String(g.Qa(c));if(!a.B[d]){var e;"string"===typeof c?e=function(){var k=g.Ca.apply(0,arguments);g.Ja(c).apply(window,k)}:e=c;
var f=function(k){e({target:a.u,data:k})};
a.B[d]=f;a.app.fm.subscribe(b,f)}};
pza=function(a,b,c){b=g.Yg(Math.floor(b),0,100);isFinite(b)&&UL(a.app,{volume:b,muted:a.isMuted()},c)};
qza=function(a,b){UL(a.app,{muted:!0,volume:a.getVolume()},b)};
rza=function(a,b){UL(a.app,{muted:!1,volume:Math.max(5,a.getVolume())},b)};
g.WL=function(a){var b=VL(a.app.tb());if(b)return b.Vv();a=a.app.tb();a=g.gE(a.G.T())?a.Ld.get("music"):void 0;return a?a.Vv():null};
YL=function(a,b){SL.call(this,a,b);var c=this;this.i=!1;TL(this,"cueVideoByPlayerVars",function(d,e){c.cueVideoByPlayerVars(XL(c,d),e)});
TL(this,"loadVideoByPlayerVars",function(d,e,f,k){c.loadVideoByPlayerVars(XL(c,d),e,f,k)});
TL(this,"preloadVideoByPlayerVars",function(d,e,f,k){return void c.preloadVideoByPlayerVars(XL(c,d),e,f,k)});
TL(this,"seekBy",this.seekBy);TL(this,"mutedAutoplay",this.mutedAutoplay);TL(this,"showControls",this.showControls);TL(this,"hideControls",this.hideControls);TL(this,"cancelPlayback",this.cancelPlayback);TL(this,"getProgressState",this.getProgressState);TL(this,"isInline",this.isInline);TL(this,"setInline",this.setInline);TL(this,"setLoopVideo",this.setLoopVideo);TL(this,"getLoopVideo",this.getLoopVideo);TL(this,"getStoryboardFormat",this.getStoryboardFormat);TL(this,"getVideoContentRect",this.getVideoContentRect);
TL(this,"toggleFullscreen",this.toggleFullscreen);TL(this,"isFullscreen",this.isFullscreen);TL(this,"getVideoStats",this.getVideoStats);TL(this,"getPlayerSize",this.getPlayerSize);TL(this,"toggleSubtitles",this.toggleSubtitles);TL(this,"setCenterCrop",this.setCenterCrop);TL(this,"setFauxFullscreen",this.setFauxFullscreen);TL(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);TL(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);TL(this,"setSizeStyle",this.setSizeStyle);TL(this,"wakeUpControls",this.wakeUpControls)};
XL=function(a,b){var c={};if(a.app.T().J){a=g.q(sza);for(var d=a.next();!d.done;d=a.next())d=d.value,b.hasOwnProperty(d)&&(c[d]=b[d])}else for(a=g.q(tza),d=a.next();!d.done;d=a.next())d=d.value,b.hasOwnProperty(d)&&(c[d]=b[d]);return c};
uza=function(a,b,c){var d=a.app.getIngestionTime(c);if(!d)return 0;a=d-a.app.getCurrentTime(c);return b-a};
g.ZL=function(a){YL.call(this,a);this.HC=this.settingsMenu=null};
g.$L=function(a){a=a.tb();var b=a.Ld.get("endscreen");return b&&b.Sq()?!0:a.Mx()||g.gE(a.G.T())};
g.aM=function(a,b){3===a.getPresentingPlayerType()?a.Z("mdxautoplaycancel"):a.Z("autonavcancel",b)};
g.cM=function(a){var b=bM(a.tb());return a.app.rg&&!a.isFullscreen()||3===a.getPresentingPlayerType()&&b&&b.hasNext()&&b.Xk()||!!a.getPlaylist()};
g.eM=function(a){return(a=g.dM(a.tb()))?a.Sz():{}};
g.vza=function(a){a=(a=a.getVideoData())&&a.j;return!!a&&!(!a.audio||!a.video)&&"application/x-mpegURL"!==a.mimeType};
g.wza=function(a){a=a.getVideoData();return!!a&&!!(a.adaptiveFormats||a.hlsFormats||a.kb)};
g.fM=function(a,b,c){a=a.bb().element;var d=pc(a.children,function(e){e=Number(e.getAttribute("data-layer"));return c-e||1});
0>d&&(d=-(d+1));g.Qh(a,b,d);b.setAttribute("data-layer",String(c))};
g.gM=function(a){var b=a.T();if(!b.hc)return!1;var c=a.getVideoData();if(!c||3===a.getPresentingPlayerType())return!1;var d=(!c.isLiveDefaultBroadcast||b.L("allow_poltergust_autoplay"))&&!cG(c);d=c.isLivePlayback&&(!b.L("allow_live_autoplay")||!d);var e=c.isLivePlayback&&b.L("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.$b(c.va,"ypc")&&!a&&(!g.WD(b)||f)};
xza=function(a){a=g.hM(a.app);if(!a)return!1;var b=a.getVideoData();if(!b.j||!b.j.video||1080>b.j.video.i||b.qI)return!1;var c=/^qsa/.test(b.clientPlaybackNonce),d="r";0<=b.j.id.indexOf(";")&&(c=/^[a-p]/.test(b.clientPlaybackNonce),d="x");return c?(a.Ba("iqss",{trigger:d},!0),!0):!1};
iM=function(a){this.X=a;this.j=this.i=NaN;this.u=g.lD(this.X.experiments,"h5_csi_seek_latency_action_sampling")||1};
jM=function(a,b){this.X=a;this.timerName="";this.u=!1;this.j=NaN;this.B=new iM(a);this.i=b||null;this.u=!1};
kM=function(a,b){sI(b,void 0,a.timerName)};
yza=function(a,b,c){var d=g.bE(b.u)&&!b.u.B;if(b.u.Zg&&(YD(b.u)||"shortspage"===b.u.xa||BE(b.u)||d)&&!a.u){a.u=!0;a.I=b.clientPlaybackNonce;g.P("TIMING_ACTION")||ft("TIMING_ACTION",a.X.csiPageType);a.X.csiServiceName&&ft("CSI_SERVICE_NAME",a.X.csiServiceName);if(a.i){d=a.i.zj();for(var e=g.q(Object.keys(d)),f=e.next();!f.done;f=e.next())f=f.value,oz(f,d[f],a.timerName);d=a.i.kz;e=g.q(Object.keys(d));for(f=e.next();!f.done;f=e.next())f=f.value,g.rz(f,d[f],a.timerName);d=a.i;d.i={};d.kz={}}g.rz("yt_pvis",
fpa(),a.timerName);g.rz("yt_pt","html5",a.timerName);a.C!==b.clientPlaybackNonce||Number.isNaN(a.j)||(Dz("_start",a.timerName)?c=Vy(a.timerName)._start+a.j:g.Rx(new g.Kv("attempted to log gapless pbs before CSI timeline started",{cpn:b.clientPlaybackNonce})));c&&!Dz("pbs",a.timerName)&&a.tick("pbs",c)}};
zza=function(a){if(a.i){var b=a.i;b.i={};b.kz={}}a.u=!1;a.C=void 0;a.j=NaN};
lM=function(a,b){g.tx.call(this);this.j=a;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.i=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.Y={};this.u=0;if(a=b.session_data)this.sessionData=rt(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 LE("UU","PLAYER_"+a);break;default:var c=b.playlist_length;c&&(this.length=Number(c)||0);this.listId=g.ME(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.q(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.Y=NE(b,"playlist_");this.B=(b=b.thumbnail_ids)?b.split(","):[]};
mM=function(a){return!!(a.playlist||a.list||a.api)};
Aza=function(a){var b=a.index+1;return b>=a.length?0:b};
Bza=function(a){var b=a.index-1;return 0>b?a.length-1:b};
g.nM=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 qF(a.j,b),g.J(a,e),e.startSeconds=a.startSeconds||e.clipStart||0,a.listId&&(e.playlistId=a.listId.toString()));return e};
oM=function(a,b){a.index=g.Yg(b,0,a.length-1);a.startSeconds=0};
pM=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.nM(a);a.items=[];for(var d=g.q(b.video),e=d.next();!e.done;e=d.next())if(e=e.value)e.video_id=e.encrypted_id,a.items.push(e);a.length=a.items.length;if(b=b.index)a.index=b;else if(c&&(b=c.videoId,!a.items[a.index]||a.items[a.index].video_id!==b))for(c=0;c<a.items.length;c++)if(a.items[c].video_id===b){a.index=
c;break}a.setShuffle(!1);a.loaded=!0;a.u++;a.i&&a.i()}};
g.qM=function(a){var b=a.T(),c=Cza(b),d=a.Ya;d&&(c.clickTracking={clickTrackingParams:d});d=c.client||{};var e="EMBED",f=UF(a);"leanback"===f?e="WATCH":b.L("gvi_channel_client_screen")&&"profilepage"===f?e="CHANNEL":a.wb?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.qk)&&!b&&(d.kidsAppInfo={contentSettings:{ageUpMode:Dza[e]}});a.Gr&&(d.unpluggedAppInfo={enableFilterMode:!0});
if(b=a.ea)d.unpluggedLocationInfo=b;c.client=d;d=c.request||{};a.Ed&&(d.isPrefetch=!0);if(b=a.mdxEnvironment)d.mdxEnvironment=b;if(b=a.mdxControlMode)d.mdxControlMode=Eza[b];c.request=d;d=c.user||{};if(b=a.La)d.credentialTransferTokens=[{token:b,scope:"VIDEO"}];if(b=a.xb)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};
Cza=function(a){var b=uJ(),c=b.client||{};if(a.jb){var d=a.jb.split(","),e=[];d=g.q(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});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.qd)b.thirdParty={embedUrl:a};return b};
Jza=function(a,b,c){var d=a.videoId,e=g.qM(a),f=a.T(),k={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(Ou()),referer:document.location.toString(),signatureTimestamp:19019};g.vv.getInstance();a.dl&&(k.autonav=!0);g.wv(0,141)&&(k.autonavState=g.wv(0,140)?"STATE_OFF":"STATE_ON");k.autoCaptionsDefaultOn=g.wv(0,66);XF(a)&&(k.autoplay=!0);f.u&&a.cycToken&&(k.cycToken=a.cycToken);f.enablePrivacyFilter&&(k.enablePrivacyFilter=!0);a.isFling&&(k.fling=!0);var l=a.Sg;if(l){var m={},n=[];l=l.split(",");
l=g.q(l);for(var p=l.next();!p.done;p=l.next()){p=p.value;var r=p.split("|");3!==r.length||p.includes("=")||(r[0]="breaktype="+r[0],r[1]="offset="+r[1],r[2]="url="+r[2]);p={adtype:"video_ad"};r=g.q(r);for(var t=r.next();!t.done;t=r.next()){var w=g.q(t.value.split("="));t=w.next().value;w=la(w);p[t]=w.join("=")}r=p.url;t=p.presetad;w=p.viralresponseurl;var x=Number(p.campaignid);if("in_display_ad"===p.adtype)r&&(m.url=r),t&&(m.presetAd=t),w&&(m.viralAdResponseUrl=w),x&&(m.viralCampaignId=String(x));
else if("video_ad"===p.adtype){var y={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(p.offset)||0)}};if(p=Fza[p.breaktype])y.breakType=p;r&&(y.url=r);t&&(y.presetAd=t);w&&(y.viralAdResponseUrl=w);x&&(y.viralCampaignId=String(x));n.push(y)}}k.forceAdParameters={videoAds:n,inDisplayAd:m}}a.isInlinePlaybackNoAd&&(k.isInlinePlaybackNoAd=!0);a.isLivingRoomDeeplink&&(k.isLivingRoomDeeplink=!0);m=a.uC;if(null!=m){m={startWalltime:String(m)};if(n=a.dh)m.manifestDuration=String(n||14400);k.liveContext=
m}a.mutedAutoplay&&(k.mutedAutoplay=!0);a.Pe&&(k.splay=!0);m=a.vnd;5===m&&(k.vnd=m);m={};if(n=a.isMdxPlayback)m.triggeredByMdx=n;if(n=a.Vl)m.skippableAdsSupported=n.split(",").includes("ska");if(p=a.Eg){n=a.ZC;l=[];p=g.q(p.split(","));for(r=p.next();!r.done;r=p.next())if(t=r.value)if((r=t.startsWith("!"))&&(t=t.substr(1)),t=t.split("-"),!(3>t.length)){r={applicationState:r?"INACTIVE":"ACTIVE",clientFormFactor:Gza[t[1]]||"UNKNOWN_FORM_FACTOR",clientName:Hza[t[0]]||"UNKNOWN_INTERFACE",clientVersion:t[2]||
"",platform:Iza[t[1]]||"UNKNOWN_PLATFORM"};t=void 0;if(n){w=void 0;try{w=JSON.parse(n)}catch(z){g.Rx(z)}w&&(t={params:[{key:"ms",value:w.ms}]},r.osName=w.os_name,r.userAgent=w.user_agent,r.windowHeightPoints=w.window_height_points,r.windowWidthPoints=w.window_width_points)}l.push({adSignalsInfo:t,remoteClient:r})}m.remoteContexts=l}a.sourceContainerPlaylistId&&(m.mdxPlaybackSourceContext={mdxPlaybackContainerInfo:{sourceContainerPlaylistId:a.sourceContainerPlaylistId}});k.mdxContext=m;m=b.width;0<
m&&(k.playerWidthPixels=Math.round(m));if(b=b.height)k.playerHeightPixels=Math.round(b);0!==c&&(k.vis=c);if(c=f.widgetReferrer)k.widgetReferrer=c.substring(0,128);g.WD(f)&&!f.L("embeds_enable_sending_ancestor_origins_killswitch")&&k&&(k.ancestorOrigins=f.ancestorOrigins);d={videoId:d,context:e,playbackContext:{contentPlaybackContext:k}};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.T();if(f=e.embedConfig)d.serializedThirdPartyEmbedConfig=f;d.captionParams={};f=g.wv(g.vv.getInstance(),65);null!=a.deviceCaptionsOn?d.captionParams.deviceCaptionsOn=a.deviceCaptionsOn:g.xE(e)&&(d.captionParams.deviceCaptionsOn=null!=f?!f:!1);a.MP&&(d.captionParams.deviceCaptionsLangPref=a.MP);a.iD.length?d.captionParams.viewerSelectedCaptionLangs=a.iD:g.tE(e)&&e.L("web_player_i_see_captions_2")&&(f=g.Jra(),null==f?0:f.length)&&(d.captionParams.viewerSelectedCaptionLangs=f);f="onesie"===a.fetchType&&
a.L("html5_onesie_attach_po_token");k="onesie"!==a.fetchType&&a.L("html5_non_onesie_attach_po_token");if(f||k)a=a.T(),a.Md&&(d.serviceIntegrityDimensions={},d.serviceIntegrityDimensions.poToken=a.Md);e.L("html5_exclude_bg_vm_data")&&(a=g.lD(e.experiments,"bg_vm_reinit_threshold"),d.attestationRequest={omitBotguardData:!bza(a)});return d};
Kza=function(a){return{context:uJ(),videoIds:a}};
Nza=function(a,b){var c,d,e,f,k;return g.B(function(l){if(1==l.i){c=g.EL();var m=a.T(),n={context:g.qM(a)};m=m.embedConfig;var p=b.docid||b.video_id||b.videoId||b.id;if(!p){p=b.raw_embedded_player_response;if(!p&&!g.Q("parse_video_id_from_serialized_embedded_player_response_killswitch")){var r=b.embedded_player_response;r&&(p=JSON.parse(r))}if(p){var t,w,x,y,z,F,I;p=(null==(t=p)?void 0:null==(w=t.embedPreview)?void 0:null==(x=w.thumbnailPreviewRenderer)?void 0:null==(y=x.playButton)?void 0:null==
(z=y.buttonRenderer)?void 0:null==(F=z.navigationEndpoint)?void 0:null==(I=F.watchEndpoint)?void 0:I.videoId)||null}else p=null}t=(t=p)?t:void 0;w=a.playlistId?a.playlistId:b.list;x=b.listType;if(w){var H;"user_uploads"===x?H={username:w}:H={playlistId:w};Lza(m,t,b,H);n.playlistRequest=H}else b.playlist?(H={templistVideoIds:b.playlist.toString().split(",")},Lza(m,t,b,H),n.playlistRequest=H):t&&(H={videoId:t},m&&(H.serializedThirdPartyEmbedConfig=m),n.singleVideoRequest=H);d=n;e=g.oL(Mza);return g.A(l,
g.AJ(c,d,e),2)}f=l.j;k=a.T();b.raw_embedded_player_response=f;return l.return(new qF(k,b))})};
Lza=function(a,b,c,d){c.index&&(d.playlistIndex=String(Number(c.index)+1));d.videoId=b?b:"";a&&(d.serializedThirdPartyEmbedConfig=a)};
g.sM=function(a,b){rM.get(a);rM.set(a,b)};
g.tM=function(a){g.tx.call(this);this.loaded=!1;this.player=a};
Oza=function(){this.j=[];this.i=[]};
g.uM=function(a,b){return b?a.i.concat(a.j):a.i};
g.vM=function(a,b){switch(b.kind){case "asr":Pza(b,a.j);break;default:Pza(b,a.i)}};
Pza=function(a,b){g.Wb(b,function(c){return a.equals(c)})||b.push(a)};
g.wM=function(a){g.G.call(this);this.X=a;this.j=new Oza;this.B=[]};
g.xM=function(a,b,c){g.wM.call(this,a);this.audioTrack=c;this.i=null;this.B=b.wE};
Qza=function(){this.i=10;this.Ah=!1};
Rza=function(a,b){var c=void 0===b?{}:b,d=void 0===c.Yk?!1:c.Yk;b=new Qza;b.Ah=(void 0===c.hasSubfragmentedFmp4?!1:c.hasSubfragmentedFmp4)||d;if(a=g.lD(a.experiments,"html5_time_based_consolidation_ms"))b.i=a;return b};
g.Sza=function(a){this.i=a;this.C=new Qza;this.Fk=this.Ek=!1;this.rk=2;this.J=20971520;this.W=8388608;this.I=120;this.kb=3145728;this.ya=62914560;this.wb=10485760;this.wk=g.lD(this.i.experiments,"html5_min_readbehind_secs");this.Qr=g.lD(this.i.experiments,"html5_min_readbehind_cap_secs");this.Hr=g.lD(this.i.experiments,"html5_max_readbehind_secs");this.Xr=this.i.L("html5_trim_future_discontiguous_ranges");this.Ob=NaN;this.hh=0;this.Pl=this.Ui=this.jr=2;this.Ia=2097152;this.Ol=1048576;this.Wa=!1;this.fd=
1800;this.pk=5;this.xa=15;this.Fh=1;this.u=1.15;this.B=1.05;this.Ck=!0;this.La=!1;this.rp=.8;this.Qb=!1;this.ev=this.i.L("html5_update_representation_init_boxes");this.jk=!1;this.xb=6;this.Y=this.fb=!1;this.lc=0;this.Yg=this.i.L("html5_stop_overlapping_requests");this.Ak=0;this.Ar=this.i.L("html5_append_init_while_paused");this.vk=g.lD(this.i.experiments,"html5_max_readahead_bandwidth_cap");this.Kl=g.lD(this.i.experiments,"html5_post_interrupt_readahead");this.Hb=5E3;this.ir=100;this.gk=g.lD(this.i.experiments,
"html5_failure_retry_limit")||6;this.Pe=1;this.Sg=1.6;this.Ya=!1;this.ea=.5;this.qc=2;this.pc=this.Xq=0;this.Yq=1.5;this.gr=this.Zg=.5;this.me=15;this.nk=1;this.fq=this.Ab=!1;this.qk=0;this.Yl=this.Hq=this.tj=this.Ml=this.Dk=!1;this.Jb=2;this.mq=this.qq=this.gj=!1;this.ye=0;this.Rf=this.lr=this.va=this.Mq=this.Sf=!1;this.dh=this.i.L("html5_unrewrite_timestamps");this.Ta=!0;this.cd=this.hc=this.Ll=this.Qa=!1;this.pj=!0;this.Og=!1;this.j="";this.Dr=1048576;this.Mc=[];this.Er=this.i.L("html5_woffle_resume");
this.sj=this.Fi=this.qd=this.Ed=!1;this.Ie=46800;this.jj=this.Rp=this.Xi=this.Vi=this.Nl=this.Md=this.jb=!1;this.N=0;this.rj="";this.Cr=this.i.L("html5_disable_codec_for_playback_on_error");this.Gi=this.zr=this.hk=this.Ng=!1;this.oe=0;this.Ur=ju();this.nq=this.lk=!1;this.Br=this.i.L("html5_skip_buffer_check_seek_to_head");this.wc=!1;this.Gr=this.i.L("html5_enable_ssdai_secondary_host");this.Fr=this.i.L("html5_disable_ssdai_probing_killswitch");this.tp=!this.i.L("html5_reset_media_stream_discontinuity_killswitch");
this.Li=!1;this.gi=8192;this.Ha=this.Sb=!1;this.vp=1;this.bv=this.i.L("html5_update_readahead_from_real_byterates");this.Zu=this.i.L("html5_onesie_live");this.Tr=this.i.L("html5_onesie_probe_during_read");this.Sr=g.lD(this.i.experiments,"html5_onesie_live_ttl_secs")||8;this.Rr=this.i.L("html5_notify_resource_time_out_no_content");this.wp=g.lD(this.i.experiments,"html5_resource_no_content_delay_scaling")||0;this.Bk=g.lD(this.i.experiments,"html5_attach_num_random_bytes_to_bandaid");this.Wr=this.i.L("html5_self_init_consolidation")};
Tza=function(a,b){1080<b.video.i&&!a.Ek&&(a.J=36700160,a.W=5242880,a.kb=10485760,a.Ia=4194304,a.Ek=!0);2160<b.video.i&&!a.Fk&&(a.J=104857600,a.Ob=13107200,a.Fk=!0);b.isEncrypted()&&g.fu()&&du("kant")&&(a.Ob=1310720);b.Ob&&(a.Ol=Math.max(65536,Math.min(a.Ia,5*b.Ob)))};
g.yM=function(a,b){return qC(a.info.mimeType)?b?a.info.Vb()===b:!0:!1};
g.Uza=function(a,b){if(null!=a.i&&g.vE(b.T())&&!a.i.isManifestless&&null!=a.i.i.rawcc)return!0;if(!a.Af())return!1;b=!!a.i&&a.i.isManifestless&&Object.values(a.i.i).some(function(c){return g.yM(c,"386")});
a=!!a.i&&!a.i.isManifestless&&$qa(a.i);return b||a};
g.zM=function(a,b,c,d,e){g.wM.call(this,a);this.videoId=c;this.WL=e;this.C={};this.i=null;a=d||g.wt(b).hl||"";a=a.split("_").join("-");this.u=xt(b,{hl:a})};
AM=function(a,b){g.G.call(this);this.G=a;this.C=b;this.kz={};this.i={};this.j=null;this.u=this.G.L("web_player_defer_modules");this.B=new Set;this.Ld=new Map};
g.BM=function(a){return a.Ld.get("captions")};
Xza=function(a,b){switch(b){case "ad":return CM(a);case "annotations_module":return b=a.G.T(),a=a.G.getVideoData(),a.wI||"3"===b.controlsType?!1:b.W.isEmpty()&&"annotation-editor"!==b.playerStyle&&"live-dashboard"!==b.playerStyle?!!a.Qa||!!g.SF(a)||!!g.TF(a):!0;case "attribution":return a=a.G.T(),a.L("web_player_show_music_in_this_video")&&"desktop-polymer"===a.playerStyle;case "creatorendscreen":return b=a.G.T(),"3"===b.controlsType?a=!1:"creator-endscreen-editor"===b.playerStyle?a=!0:(a=a.G.getVideoData(),
a=!!a&&(!!g.Bua(a)||!!g.Cua(a))),a;case "embed":return g.WD(a.G.T());case "endscreen":return g.Vza(a);case "heartbeat":return a.CB();case "inline_preview":return a.G.T().showInlinePreviewUi;case "kids":return lE(a.G.T());case "remote":return a.G.T().fb;case "miniplayer":return a.G.T().showMiniplayerUiWhenMinimized;case "music":return g.gE(a.G.T());case "captions":return b=a.G.getVideoData(),!!b.Sb||!!b.captionTracks.length||g.Uza(b,a.G);case "unplugged":return g.dE(a.G.T());case "ux":return a.G.T().Hb;
case "webgl":return Wza(a);case "ypc":return a.Mx();case "ypc_clickwrap":return a=a.G.getVideoData(),a.gj&&!a.lI;case "yto":return!!a.G.getVideoData().va.includes("yto");default:return g.S(Error("Module descriptor "+b+" does not match")),!1}};
DM=function(a,b,c,d,e){var f;c=void 0===c?!1:c;d=void 0===d?!1:d;var k=a.Ld.get(b);if(!k||d)if(e||(e=function(){DM(a,b,c,d)}),f||(f=function(){a.G.Fe(b)}),k=k||Yza(a,b,Xza(a,b),e,f))a.Ld.set(b,k),k.create(),c&&a.G.Oa("onApiChange")};
Zza=function(a){a.u&&(DM(a,"captions",!0),DM(a,"endscreen"),a.dE(),DM(a,"creatorendscreen",!0),a.CB()&&a.eE())};
g.Vza=function(a){var b=a.G.T();if(BE(b)||b.B||!b.Jb&&!b.me)return!1;var c=a.G.getPresentingPlayerType();if(2===c)return!1;if(3===c)return b.L("desktop_enable_autoplay");a=a.G.getVideoData();if(!a)return!1;c=!a.isLiveDefaultBroadcast||b.L("allow_poltergust_autoplay");c=a.isLivePlayback&&(!b.L("allow_live_autoplay")||!c);b=a.isLivePlayback&&b.L("allow_live_autoplay_on_mweb");return!c||b};
g.dM=function(a){return a.Ld.get("webgl")};
Wza=function(a){var b=a.G.getVideoData();a=a.G.T();var c=g.zka(),d=a.L("enable_spherical_kabuki"),e=g.AE(a);if(g.RF(b))return c||d||e||a.L("html5_enable_spherical");if(g.OF(b))return e||c||d||a.L("html5_enable_spherical");if(g.PF(b))return e||c||a.L("html5_enable_spherical3d");if(g.QF(b))return e||!1;c=b.j&&b.j.video&&b.j.video.isHdr();return e&&!g.HF(b)&&!c&&(a.L("enable_webgl_noop")||a.L("html5_enable_bicubicsharp"))};
$za=function(a){a.G.T().L("web_player_ux_module_wait")&&a.Ld.get("ux")&&a.G.Fe("ux")};
aAa=function(a){$za(a);DM(a,"ux",!0)};
CM=function(a){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};
Yza=function(a,b,c,d,e){try{if(c){var f=rM.get(b);if(f)return new f(a.G);bAa(a,b,d,e)}else a.G.Fe(b)}catch(k){a.G.Fe(b),g.S(k)}return null};
EM=function(a,b,c){for(var d=g.q(a.Ld),e=d.next();!e.done;e=d.next()){var f=g.q(e.value);e=f.next().value;(f=f.next().value)&&(c||f.bj(b))&&(g.Se(f),a.Ld.delete(e))}};
FM=function(a){return a.Ld.get("ad")};
GM=function(a){if(lE(a.G.T()))return a.Ld.get("kids")};
bM=function(a){if(a.G.T().fb)return a.Ld.get("remote")};
g.HM=function(a){if(g.dE(a.G.T()))return a.Ld.get("unplugged")};
VL=function(a){if(a.G.T().Hb)return a.Ld.get("ux")};
g.IM=function(a){return a.Ld.get("annotations_module")};
JM=function(a){return a.Ld.get("creatorendscreen")};
dAa=function(a){var b=a.C.split("/").slice(0,4).join("/")+"/wasm/lib.js";return new Promise(function(c,d){cAa(a,b,function(){var e,f;return g.B(function(k){if(1==k.i)return e=g.C.loadWasm,"function"!==typeof e?(d("noloadwasm"),k.eb(0)):g.A(k,e(),3);f=k.j;c(f);g.ua(k)})},function(){d("player wasm load failure")})})};
bAa=function(a,b,c,d){if(a.C){var e=eAa[b];cAa(a,a.C+e,function(){a.B.add(e);c.call(a)},d)}};
cAa=function(a,b,c,d){function e(){a.isDisposed()||d.call(a)}
function f(){a.isDisposed()||c.call(a)}
for(var k=g.th("SCRIPT"),l=!1,m,n=0;n<k.length;n++){var p=k[n];if(p.src===b||p.getAttribute("data-original-src")===b)m=p}m||(m=g.Nh("SCRIPT"),m.setAttribute("data-original-src",b),l=!0);var r=m.onload;m.onload=function(y){$h(f);r&&r.apply(window,[y])};
var t=m.onerror;m.onerror=function(y){if(.01>Math.random()){var z=new g.Kv("Unable to load player module",b,document.location&&document.location.origin);g.S(z)}$h(e);t&&t(y)};
var w=m,x=w.onreadystatechange;w.onreadystatechange=function(y){switch(w.readyState){case "loaded":case "complete":$h(f)}x&&x(y)};
l&&((k=a.G.T().cspNonce)&&m.setAttribute("nonce",k),g.Uk(m,g.Ar(b)),k=g.th("HEAD")[0]||document.body,k.insertBefore(m,k.firstChild),g.Ue(a,function(){m.parentNode&&m.parentNode.removeChild(m)}))};
KM=function(a,b,c){g.Ve.call(this,b,a);this.i=c};
g.LM=function(a){MI.call(this);var b=this;this.i=a;this.C={};this.listener=function(c){b.dispatchEvent(new KM(b,c.type,c))}};
NM=function(a,b,c,d,e){g.tx.call(this);var f=this;this.target=a;this.Yy=b;this.j=0;this.I=!1;this.B=new g.bh(NaN,NaN);this.i=new g.sC(this);this.xa=this.u=this.J=null;g.J(this,this.i);b=d||e?4E3:3E3;this.W=new g.K(function(){MM(f,1,!1)},b,this);
g.J(this,this.W);this.Y=new g.K(function(){MM(f,2,!1)},b,this);
g.J(this,this.Y);this.ea=new g.K(function(){MM(f,512,!1)},b,this);
g.J(this,this.ea);this.va=c&&0<c.fd.length?5E3:3E3;d||(this.u=this.i.S(a,"mouseover",this.FA),this.i.S(a,"mousemove",this.CU),this.i.S(a,"mouseleave",this.DU));zn?this.i.S(a,"keypress",this.jU):this.i.S(a,"focusin",this.gT);this.C=this.i.S(a,"mousedown",this.QM);this.N=this.i.S(a,"touchstart",this.mP,void 0,!0);MM(this,640,!0)};
fAa=function(a){MM(a,4,!1);a.J&&(a.i.xc(a.J),a.J=null,a.u=a.i.S(a.target,"mouseover",a.FA));a.u&&(a.i.xc(a.u),a.u=a.i.S(a.target,"mouseover",a.FA))};
MM=function(a,b,c){a.isDisposed();var d=!a.j;c?(a.j|=b,b&1&&a.W.start(),b&2&&a.Y.start()):(a.j&=~b,b&1&&a.W.stop(),b&2&&a.Y.stop(),b&512&&a.ea.stop());a.j&512&&!(a.j&128)&&g.hr(a.ea,a.va);b=!a.j;d!==b&&a.Z("autohideupdate",b)};
g.OM=function(a){g.W.call(this,{D:"button",Ga:["ytp-large-play-button","ytp-button"],V:{"aria-label":"Play"},U:["{{largePlayButtonChildren}}"]});this.api=a;this.S(a,"videodatachange",this.Ja);g.bE(this.api.T())&&this.api.L("embeds_web_enable_red_play_button_on_preview")&&g.L(this.element,"ytp-large-play-button-red-bg");this.Ja()};
PM=function(a){var b=["ytp-cued-thumbnail-overlay"];a.T().B&&b.push("ytp-exp-contain-thumbnail");g.W.call(this,{D:"div",Ga:b,U:[{D:"div",K:"ytp-cued-thumbnail-overlay-image"}]});b=this.Da("ytp-cued-thumbnail-overlay");var c=new g.OM(a);g.J(this,c);c.Ca(b);this.u=new g.sC(this);g.J(this,this.u);this.api=a;this.C=this.Da("ytp-cued-thumbnail-overlay-image");this.B=c;this.j=new g.MK(this,250);g.J(this,this.j);this.i=new g.K(this.Ja,0,this);g.J(this,this.i);this.Ja();this.S(a,"appresize",this.yb);this.S(a,
"presentingplayerstatechange",this.onStateChange);this.S(a,"ypcStateChanged",this.TX);YD(a.T())&&this.S(a,"videoplayerreset",this.vQ)};
gAa=function(a){var b=!a.T().Sg&&3!==a.getPresentingPlayerType();return a.isFullscreen()||b};
g.QM=function(a,b,c,d){var e=a.currentTarget;if((void 0===c||!c)&&g.aL(a))return g.Fu(a),!0;b.pauseVideo();a=e.getAttribute("href");g.kL(a,d,!0);return!1};
g.RM=function(a,b,c){if(rE(b.T())&&2!==b.getPresentingPlayerType()){if(g.aL(c))return b.isFullscreen()&&!b.T().externalFullscreen&&b.toggleFullscreen(),g.Fu(c),!0}else if(b.T().L("embeds_enable_webview_nonjs_navigation")&&g.WD(b.T())&&(ou()||mu()))b=c.target,b instanceof HTMLAnchorElement&&(a=vn(a),b.href=Sk(a));else{var d=g.aL(c);d&&b.pauseVideo();g.kL(a,void 0,!0);d&&(g.lL(a),g.Fu(c))}return!1};
hAa=function(){return{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{D:"path",Fb:!0,V:{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"}}],K:"ytp-subtitles-button-icon"}};
SM=function(){return{D:"div",K:"ytp-spinner-container",U:[{D:"div",K:"ytp-spinner-rotator",U:[{D:"div",K:"ytp-spinner-left",U:[{D:"div",K:"ytp-spinner-circle"}]},{D:"div",K:"ytp-spinner-right",U:[{D:"div",K:"ytp-spinner-circle"}]}]}]}};
TM=function(a){if(document.createRange){var b=document.createRange();b&&(b.selectNodeContents(a),a=window.getSelection())&&(a.removeAllRanges(),a.addRange(b))}};
UM=function(a,b,c){a=a.T();return a.L("desktop_player_button_tooltip_with_shortcut")&&!a.Ng?g.kH("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:b,SHORTCUT:c}):b};
g.VM=function(a){g.W.call(this,{D:"div",Ga:["ytp-error"],V:{role:"alert"},U:[{D:"div",K:"ytp-error-content",U:[{D:"div",K:"ytp-error-icon-container",U:[{D:"svg",V:{fill:"#fff",viewBox:"0 0 48 48"},U:[{D:"path",V:{d:"M0 0h48v48H0V0z",fill:"none"}},{D:"path",V:{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"}}]}]},{D:"div",K:"ytp-error-content-wrap",
U:[{D:"div",K:"ytp-error-content-wrap-reason",qa:"{{content}}"},{D:"div",K:"ytp-error-content-wrap-subreason",qa:"{{subreason}}"}]}]}]});this.api=a;this.keys=[]};
g.WM=function(a){a=a.split(iAa);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({D:"br"}),b.push(d[e]);c<a.length&&b.push({D:"a",V:{href:a[c],target:a[c+1]},qa:a[c+2]})}return{D:"span",U:b}};
YM=function(a,b,c,d,e,f,k){d=void 0===d?!1:d;e=void 0===e?!1:e;k=void 0===k?!0:k;e||(e=a.api.T().i);a=a.api.getVideoData();b=g.kH(g.XM[b]||"",d?{CPN:a.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);d=[];f&&d.push({D:"h2",qa:f});d.push(b[0]);k&&d.push({D:"br"});d.push({D:"a",V:{href:c,target:e?"_blank":null},qa:b[2]});d.push(b[4]);return{D:"span",U:d}};
jAa=function(a,b){for(var c=a.element.getElementsByTagName("a"),d=0;d<c.length;d++){var e=a.S(c[d],"click",b);a.keys.push(e)}};
kAa=function(a){for(var b=0;b<a.keys.length;b++)a.xc(a.keys[b]);a.keys=[]};
ZM=function(a){g.sC.call(this);this.G=a;this.i=new Set;this.mediaSession=navigator.mediaSession;this.S(a,"videodatachange",this.onVideoDataChange);this.S(a,"presentingplayerstatechange",this.eg);this.onVideoDataChange()};
$M=function(a,b,c){a.mediaSession.setActionHandler(b,c?function(){c()}:null);
a.i.add(b)};
lAa=function(a){$M(a,"play",function(){a.G.playVideo()});
$M(a,"pause",function(){a.G.pauseVideo()});
$M(a,"seekbackward",function(){a.G.seekBy(-5*a.G.getPlaybackRate())});
$M(a,"seekforward",function(){a.G.seekBy(5*a.G.getPlaybackRate())})};
mAa=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};
nAa=function(a){var b=[];if(!a||!a.thumbnails)return b;a=g.q(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.Iy(c.url)&&b.push({src:c.url||"",sizes:c.width+"x"+c.height,type:"image/jpeg"}));return b};
oAa=function(a){var b=a.G.zb();b=b.isCued()||b.isError()?"none":g.WI(b)?"playing":"paused";a.mediaSession.playbackState=b};
aN=function(a){g.W.call(this,{D:"div",K:"ytp-paid-content-overlay",V:{"aria-live":"assertive","aria-atomic":"true"}});this.G=a;this.videoId=null;this.u=!1;this.Hd=this.i=null;var b=a.T();a.L("enable_new_paid_product_placement")&&!g.wE(b)?(this.j=new g.W({D:"a",K:"ytp-paid-content-overlay-link",V:{href:"{{href}}",target:"_blank"},U:[{D:"div",K:"ytp-paid-content-overlay-icon",qa:"{{icon}}"},{D:"div",K:"ytp-paid-content-overlay-text",qa:"{{text}}"},{D:"div",K:"ytp-paid-content-overlay-chevron",qa:"{{chevron}}"}]}),
this.S(this.j.element,"click",this.onClick)):this.j=new g.W({D:"div",Ga:["ytp-button","ytp-paid-content-overlay-text"],qa:"{{text}}"});this.B=new g.MK(this.j,250,!1,100);g.J(this,this.j);this.j.Ca(this.element);g.J(this,this.B);this.G.Vg(this.element,this);this.S(a,"videodatachange",this.onVideoDataChange);this.S(a,"presentingplayerstatechange",this.Sc)};
qAa=function(a,b){var c=yua(b),d=IF(b);a.i?b.videoId&&b.videoId!==a.videoId&&(g.jr(a.i),a.videoId=b.videoId,a.u=!!d,a.u&&c&&pAa(a,d,c,b)):c&&d&&pAa(a,d,c,b)};
pAa=function(a,b,c,d){a.i&&a.i.dispose();a.i=new g.K(a.Db,b,a);g.J(a,a.i);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 k;f=null==b?void 0:null==(k=b.icon)?void 0:k.iconType;var l;k=null==e?void 0:null==(l=e.urlEndpoint)?void 0:l.url;a.G.Xj(a.element,(null==e?void 0:e.clickTrackingParams)||null);a.j.update({href:null!=k?k:"#",text:c,icon:"MONEY_HAND"===f?{D:"svg",V:{fill:"none",height:"100%",
viewBox:"0 0 24 24",width:"100%"},U:[{D:"path",V:{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:k?g.eK():null})};
rAa=function(a,b){a.i&&(g.V(b,8)&&a.u?(a.u=!1,a.jd(),a.i.start()):(g.V(b,2)||g.V(b,64))&&a.videoId&&(a.videoId=null))};
bN=function(a){g.W.call(this,{D:"div",K:"ytp-spinner",U:[SM(),{D:"div",K:"ytp-spinner-message",qa:"If playback doesn't begin shortly, try restarting your device."}]});this.api=a;this.message=this.Da("ytp-spinner-message");this.i=new g.K(this.show,500,this);g.J(this,this.i);this.S(a,"presentingplayerstatechange",this.onStateChange);this.S(a,"playbackstalledatstart",this.j);a=a.zb();sAa(a)?this.i.start():this.hide()};
sAa=function(a){return g.V(a,128)?!1:g.V(a,16)||g.V(a,1)?!0:!1};
g.cN=function(a,b,c,d){d=void 0===d?!1:d;g.YJ.call(this,b);var e=this;this.G=a;this.ya=d;this.J=new g.sC(this);this.W=new g.MK(this,c,!0,void 0,void 0,function(){e.j&&e.element&&(e.j.getAttribute("aria-haspopup"),e.j.setAttribute("aria-expanded","true"),e.focus())});
g.J(this,this.J);g.J(this,this.W)};
tAa=function(a){a.j&&(document.activeElement&&g.Th(a.element,document.activeElement)&&(Wh(a.j),a.j.focus()),a.j.setAttribute("aria-expanded","false"),a.j=void 0);g.sx(a.J);a.N=void 0};
dN=function(a,b,c){a.ag()?a.Db():a.jd(b,c)};
eN=function(a){var b=g.dD(a.T().experiments,"mweb_muted_autoplay_animation"),c=[],d=[{D:"div",Ga:["ytp-unmute-icon"],U:[{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{D:"path",Fb:!0,K:"ytp-svg-fill",V:{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"}}]}]},
{D:"div",Ga:["ytp-unmute-text"],qa:"Tap to unmute"}];"none"!==b&&(c.push("ytp-unmute-animated"),d.push({D:"div",Ga:["ytp-unmute-box"],U:[]}),"expand"===b?c.push("ytp-unmute-expand"):"shrink"===b&&c.push("ytp-unmute-shrink"));g.cN.call(this,a,{D:"button",Ga:["ytp-unmute","ytp-popup","ytp-button"].concat(c),U:[{D:"div",K:"ytp-unmute-inner",U:d}]},100);this.i=this.clicked=!1;this.api=a;this.api.Bb(this.element,this,51663);this.S(a,"onMutedAutoplayChange",this.onMutedAutoplayChange,this);this.S(a,"presentingplayerstatechange",
this.eg);this.Pa("click",this.onClick,this);a=a.isMutedByMutedAutoplay()&&!g.WD(this.api.T());g.XJ(this,a);a&&uAa(this);this.u=a};
uAa=function(a){a.i||(a.i=!0,a.api.Za(a.element,!0))};
g.gN=function(a){g.sC.call(this);var b=this;this.api=a;this.PF=!1;this.bl=null;this.jz=!1;this.Je=null;this.cE=this.PB=!1;this.NH=this.PH=null;this.vM=NaN;this.MH=this.Kv=!1;this.Uw=0;this.uD=[];var c=a.T(),d=a.bb();this.iK=new g.K(this.bG,0,this);g.J(this,this.iK);g.gE(c)||(this.Cs=new PM(a),g.J(this,this.Cs),g.fM(a,this.Cs.element,4));if(vAa(this)){var e=new bN(a);g.J(this,e);e=e.element;g.fM(a,e,4)}var f=a.getVideoData();this.Fd=new NM(d,function(l){return b.Yy(l)},f,c.ye,yE(c));
g.J(this,this.Fd);this.Fd.subscribe("autohideupdate",this.Pj,this);if(!c.disablePaidContentOverlay){var k=new aN(a);g.J(this,k);g.fM(a,k.element,4)}this.UB=new eN(a);g.J(this,this.UB);g.fM(this.api,this.UB.element,2);this.hF=this.api.isMutedByMutedAutoplay();this.S(a,"onMutedAutoplayChange",this.onMutedAutoplayChange);this.LB=new g.K(this.fu,200,this);g.J(this,this.LB);this.BF=f.videoId;this.CO=new g.K(function(){b.Uw=0},350);
g.J(this,this.CO);this.mz=new g.K(function(){b.MH||fN(b)},350,this);
g.J(this,this.mz);f=a.getRootNode();f.setAttribute("aria-label","YouTube Video Player");switch(c.color){case "white":g.L(f,"ytp-color-white")}g.gE(c)&&g.L(f,"ytp-music-player");!a.L("web_player_disable_mediasession")&&navigator.mediaSession&&null!=navigator.mediaSession.setActionHandler&&(f=new ZM(a),g.J(this,f));this.S(a,"appresize",this.yb);this.S(a,"presentingplayerstatechange",this.eg);this.S(a,"videodatachange",this.onVideoDataChange);this.S(a,"videoplayerreset",this.wW);this.S(a,"autonavvisibility",
function(){b.Xm()});
this.S(a,"sizestylechange",function(){b.Xm()});
this.S(d,"click",this.VW,this);this.S(d,"dblclick",this.WW,this);c.Wa&&(this.S(d,"gesturechange",this.XW,this),this.S(d,"gestureend",this.YW,this));this.Fo=[d.Cv];this.Cs&&this.Fo.push(this.Cs.element);e&&this.Fo.push(e)};
hN=function(a,b){if(!b)return!1;var c=a.api.ud();if(c.mp()&&(c=c.He())&&g.Th(c,b))return c.controls;for(c=0;c<a.Fo.length;c++)if(g.Th(a.Fo[c],b))return!1;return g.nr(b,"ytp-player-content")||g.nr(b,"html5-endscreen")||b===a.api.getRootNode()?!1:!0};
wAa=function(a){var b=2===a.api.getPresentingPlayerType()&&(a.api.bb().aA||!1)&&a.api.T().isMobile&&iN&&11<=bG;a=a.api.T().C&&iN;return!(!b&&!a)};
jN=function(a,b){return!hN(a,Cu(b))&&g.aL(b)};
fN=function(a){a.Fd.Al();if(a.api.T().L("web_player_touch_mode_improvements")&&a.PB&&a.cE)a.cE=!1;else if(!a.api.T().ea&&!a.Rk()){var b=a.api.zb();g.V(b,2)&&g.$L(a.api)||a.Tq(b);if(!a.api.T().Wa||b.isCued()||g.V(b,1024)){var c=a.api.DB();g.Fv("embedsShouldRequestStorageAccessResult",{result:!!c,returnsUndefined:void 0===c});var d=g.V(b,1024);c&&(b.isCued()||d)?(g.Fv("embedsRequestStorageAccessState",{isCued:b.isCued(),mfa:d}),a.requestStorageAccess()):(!c||b.isCued()&&d||g.Fv("embedsRequestStorageAccessFailedState",
{state:b.state}),a.fu())}else a.LB.isActive()?(a.bA(),a.LB.stop()):a.LB.start()}};
xAa=function(a,b){return g.aL(b)&&a.api.isMutedByMutedAutoplay()?(a.api.unMute(),2===a.api.getPresentingPlayerType()&&a.api.playVideo(),b=a.api.zb(),!g.V(b,4)||g.V(b,8)||g.V(b,2)||a.fu(),!0):!1};
yAa=function(a,b,c){a.api.isFullscreen()?c<1-b&&a.api.toggleFullscreen():c>1+b&&a.api.toggleFullscreen()};
vAa=function(a){a=eu()&&67<=vka()&&!a.api.T().C;return!du("tizen")&&!TD&&!a&&!0};
kN=function(a,b){b=void 0===b?2:b;g.tx.call(this);this.api=a;this.i=null;this.Ke=new qx(this);g.J(this,this.Ke);this.j=xya;this.Ke.S(this.api,"presentingplayerstatechange",this.Sc);this.i=this.Ke.S(this.api,"progresssync",this.Rb);this.ek=b;1===this.ek&&this.Rb()};
lN=function(a){g.W.call(this,{D:"button",Ga:["ytp-button","ytp-back-button"],U:[{D:"div",K:"ytp-arrow-back-icon",U:[{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 -12 36 36",width:"100%"},U:[{D:"path",V:{d:"M0 0h24v24H0z",fill:"none"}},{D:"path",Fb:!0,V:{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.XJ(this,a.T().showBackButton);this.Pa("click",this.onClick)};
g.mN=function(a){g.W.call(this,{D:"div",U:[{D:"div",K:"ytp-bezel-text-wrapper",U:[{D:"div",K:"ytp-bezel-text",qa:"{{title}}"}]},{D:"div",K:"ytp-bezel",V:{role:"status","aria-label":"{{label}}"},U:[{D:"div",K:"ytp-bezel-icon",qa:"{{icon}}"}]}]});this.G=a;this.j=new g.K(this.show,10,this);this.i=new g.K(this.hide,500,this);g.J(this,this.j);g.J(this,this.i);this.hide()};
oN=function(a,b,c){if(0>=b){c=pK();b="muted";var d=0}else c=c?{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{D:"path",Fb:!0,V:{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"}}]}:{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{D:"path",Fb:!0,V:{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";nN(a,c,b,d+"%")};
zAa=function(a,b){b=b?{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{D:"path",Fb:!0,K:"ytp-svg-fill",V:{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"}}]}:{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{D:"path",Fb:!0,K:"ytp-svg-fill",V:{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.kH("Speed is $RATE",{RATE:String(c)});nN(a,b,d,c+"x")};
AAa=function(a,b){b=b?"Subtitles/closed captions on":"Subtitles/closed captions off";nN(a,hAa(),b)};
nN=function(a,b,c,d){d=void 0===d?"":d;a.Ma("label",void 0===c?"":c);yE(a.G.T())?a.Ma("icon",null):a.Ma("icon",b);g.jr(a.i);a.j.start();a.Ma("title",d);g.M(a.element,"ytp-bezel-text-hide",!d)};
qN=function(a,b,c){g.W.call(this,{D:"button",Ga:["ytp-button","ytp-cards-button"],V:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.WD(a.T()))},U:[{D:"span",K:"ytp-cards-button-icon-default",U:[{D:"div",K:"ytp-cards-button-icon",U:[a.T().L("player_new_info_card_format")?Yxa():{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{D:"path",Fb:!0,K:"ytp-svg-fill",V:{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"}}]}]},
{D:"div",K:"ytp-cards-button-title",qa:"Info"}]},{D:"span",K:"ytp-cards-button-icon-shopping",U:[{D:"div",K:"ytp-cards-button-icon",U:[{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{D:"path",K:"ytp-svg-shadow",V:{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"}},{D:"path",K:"ytp-svg-fill",V:{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"}},{D:"path",K:"ytp-svg-shadow-fill",V:{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"}}]}]},{D:"div",
K:"ytp-cards-button-title",qa:"Shopping"}]}]});this.G=a;this.u=b;this.B=c;this.i=null;this.j=new g.MK(this,250,!0,100);g.J(this,this.j);g.M(this.B,"ytp-show-cards-title",g.WD(a.T()));this.hide();this.Pa("click",this.onClicked);this.Pa("mouseover",this.UV);pN(this,!0)};
pN=function(a,b){b?a.i=g.rN(a.u.jc(),a.element):(a.i=a.i,a.i(),a.i=null)};
sN=function(a,b,c){g.W.call(this,{D:"div",K:"ytp-cards-teaser",U:[{D:"div",K:"ytp-cards-teaser-box"},{D:"div",K:"ytp-cards-teaser-text",U:a.T().L("player_new_info_card_format")?[{D:"button",K:"ytp-cards-teaser-info-icon",V:{"aria-label":"Show cards","aria-haspopup":"true"},U:[Yxa()]},{D:"span",K:"ytp-cards-teaser-label",qa:"{{text}}"},{D:"button",K:"ytp-cards-teaser-close-button",V:{"aria-label":"Close"},U:[g.fK()]}]:[{D:"span",K:"ytp-cards-teaser-label",qa:"{{text}}"}]}]});var d=this;this.G=a;this.W=
b;this.xi=c;this.B=new g.MK(this,250,!1,250);this.i=null;this.J=new g.K(this.iW,300,this);this.I=new g.K(this.hW,2E3,this);this.C=[];this.j=null;this.N=new g.K(function(){d.element.style.margin="0"},250);
this.u=null;g.J(this,this.B);g.J(this,this.J);g.J(this,this.I);g.J(this,this.N);a.T().L("player_new_info_card_format")?(g.L(a.getRootNode(),"ytp-cards-teaser-dismissible"),this.S(this.Da("ytp-cards-teaser-close-button"),"click",this.Ni),this.S(this.Da("ytp-cards-teaser-info-icon"),"click",this.DH),this.S(this.Da("ytp-cards-teaser-label"),"click",this.DH)):this.Pa("click",this.DH);this.S(c.element,"mouseover",this.UI);this.S(c.element,"mouseout",this.TI);this.S(a,"cardsteasershow",this.vX);this.S(a,
"cardsteaserhide",this.Db);this.S(a,"cardstatechange",this.xP);this.S(a,"presentingplayerstatechange",this.xP);this.S(a,"appresize",this.aI);this.S(a,"onShowControls",this.aI);this.S(a,"onHideControls",this.xS);this.Pa("mouseenter",this.xQ)};
uN=function(a){g.W.call(this,{D:"button",Ga:[tN.BUTTON,tN.TITLE_NOTIFICATIONS],V:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},U:[{D:"div",K:tN.TITLE_NOTIFICATIONS_ON,V:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},U:[g.jK()]},{D:"div",K:tN.TITLE_NOTIFICATIONS_OFF,V:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},U:[{D:"svg",V:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},U:[{D:"path",V:{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.i=!1;a.Bb(this.element,this,36927);this.Pa("click",this.onClick,this);this.Ma("pressed",!1);this.Ma("label","Get notified about every new video")};
BAa=function(a,b){a.i=b;a.element.classList.toggle(tN.NOTIFICATIONS_ENABLED,a.i);var c=a.api.getVideoData();c?(b=b?c.hD:c.gD)?(a=a.api.im())?vL(a,b):g.ot(Error("No innertube service available when updating notification preferences.")):g.ot(Error("No update preferences command available.")):g.ot(Error("No video data when updating notification preferences."))};
g.wN=function(a,b,c,d,e,f,k,l,m,n,p,r,t){t=void 0===t?null:t;f&&(a=a.charAt(0)+a.substring(1).toLowerCase(),c=c.charAt(0)+c.substring(1).toLowerCase());if("0"===b||"-1"===b)b=null;if("0"===d||"-1"===d)d=null;var w=r.T();if(p){c={href:p,"aria-label":"Subscribe to channel"};if(g.bE(w)||g.fE(w))c.target=w.I;g.W.call(this,{D:"div",Ga:["ytp-button","ytp-sb"],U:[{D:"a",K:"ytp-sb-subscribe",V:c,U:[{D:"div",K:"ytp-sb-text",U:[{D:"div",K:"ytp-sb-icon"},a]},b?{D:"div",K:"ytp-sb-count",qa:b}:""]}]});f&&g.L(this.element,
"ytp-sb-classic");this.channelId=k;this.i=t}else{p=w.userDisplayName&&g.bE(w)&&!w.L("subscribe_tooltipkillswitch");g.W.call(this,{D:"div",Ga:["ytp-button","ytp-sb"],U:[{D:"div",K:"ytp-sb-subscribe",V:p?{title:g.kH("Subscribe as $USER_NAME",{USER_NAME:w.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":CE(w),"data-tooltip-opaque":String(g.WD(w)),tabindex:"0",role:"button"}:{"aria-label":"Subscribe to channel"},U:[{D:"div",K:"ytp-sb-text",U:[{D:"div",K:"ytp-sb-icon"},a]},b?
{D:"div",K:"ytp-sb-count",qa:b}:""]},{D:"div",K:"ytp-sb-unsubscribe",V:p?{title:g.kH("Subscribed as $USER_NAME",{USER_NAME:w.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":CE(w),"data-tooltip-opaque":String(g.WD(w)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},U:[{D:"div",K:"ytp-sb-text",U:[{D:"div",K:"ytp-sb-icon"},c]},d?{D:"div",K:"ytp-sb-count",qa:d}:""]}]});var x=this;this.channelId=k;this.i=t;var y=this.Da("ytp-sb-subscribe"),z=this.Da("ytp-sb-unsubscribe");
f&&g.L(this.element,"ytp-sb-classic");if(e){l?this.j():this.u();var F=function(){var H=x.channelId;if(m||n){var O={c:H};if(r.T().L("embeds_botguard_with_subscribe_killswitch"))O="";else{var ma;g.JL.isInitialized()&&(ma=cza(O));O=ma||""}if(ma=r.getVideoData())if(ma=ma.subscribeCommand){var N=r.im();N?(vL(N,ma,{botguardResponse:O,feature:m}),r.Oa("SUBSCRIBE",H)):g.ot(Error("No innertube service available when updating subscriptions."))}else g.ot(Error("No subscribe command in videoData."));else g.ot(Error("No video data available when updating subscription."))}z.focus();
z.removeAttribute("aria-hidden");y.setAttribute("aria-hidden","true")},I=function(){var H=x.channelId;
if(m||n){var O=r.getVideoData();vL(r.im(),O.unsubscribeCommand,{feature:m});r.Oa("UNSUBSCRIBE",H)}y.focus();y.removeAttribute("aria-hidden");z.setAttribute("aria-hidden","true")};
this.S(y,"click",F);this.S(z,"click",I);this.S(y,"keypress",function(H){13===H.keyCode&&F(H)});
this.S(z,"keypress",function(H){13===H.keyCode&&I(H)});
this.S(r,"SUBSCRIBE",this.j);this.S(r,"UNSUBSCRIBE",this.u);this.i&&p&&(this.tooltip=this.i.jc(),vN(this.tooltip),g.Ue(this,g.rN(this.tooltip,y)),g.Ue(this,g.rN(this.tooltip,z)))}else g.L(y,"ytp-sb-disabled"),g.L(z,"ytp-sb-disabled")}};
xN=function(a,b){g.W.call(this,{D:"div",K:"ytp-title-channel",U:[{D:"div",K:"ytp-title-beacon"},{D:"a",K:"ytp-title-channel-logo",V:{href:"{{channelLink}}",target:a.T().I,"aria-label":"{{channelLogoLabel}}"}},{D:"div",K:"ytp-title-expanded-overlay",V:{"aria-hidden":"{{flyoutUnfocusable}}"},U:[{D:"div",K:"ytp-title-expanded-heading",U:[{D:"h2",K:"ytp-title-expanded-title",U:[{D:"a",qa:"{{expandedTitle}}",V:{href:"{{channelTitleLink}}",target:a.T().I,tabIndex:"{{channelTitleFocusable}}"}}]},{D:"h3",
K:"ytp-title-expanded-subtitle",qa:"{{expandedSubtitle}}"}]}]}]});this.api=a;this.I=b;this.channel=this.Da("ytp-title-channel");this.i=this.Da("ytp-title-channel-logo");this.B=this.Da("ytp-title-expanded-overlay");this.u=this.j=this.subscribeButton=null;this.C=g.WD(this.api.T());a.Bb(this.i,this,36925);this.C&&CAa(this);this.S(a,"videodatachange",this.Ja);this.S(a,"videoplayerreset",this.Ja);this.Ja();g.WD(this.api.T())&&(this.api.T().L("embeds_web_enable_hiding_login_buttons")||this.api.T().L("embeds_web_enable_always_hiding_login_buttons"))&&
g.L(this.element,"ytp-flyout-fix-experiment")};
CAa=function(a){var b=a.api.T(),c=a.api.getVideoData();if(!b.cd){var d=b.authUser?null:Eya(),e=new g.wN("Subscribe",null,"Subscribed",null,!0,!1,c.nj,c.subscribed,"channel_avatar",null,d,a.api,a.I);a.subscribeButton=e;g.J(a,e);e.Ca(a.B);a.api.Bb(e.element,a,36926);e.hide();a.S(e.element,"click",function(){a.api.ub(e.element)});
var f=new uN(a.api);a.j=f;g.J(a,f);f.Ca(a.B);f.hide();a.S(a.api,"SUBSCRIBE",function(){c.Li&&f.show()});
a.S(a.api,"UNSUBSCRIBE",function(){c.Li&&(f.hide(),BAa(f,!1))})}a.Ma("flyoutUnfocusable","true");
a.Ma("channelTitleFocusable","-1");b.isMobile?a.S(a.i,"click",function(k){DAa(a)&&(k.preventDefault(),a.isExpanded()?a.WD():a.uE());a.api.ub(a.i)}):(a.S(a.channel,"mouseenter",a.uE),a.S(a.channel,"mouseleave",a.WD),a.S(a.channel,"focusin",a.uE),a.S(a.channel,"focusout",function(k){a.channel.contains(k.relatedTarget)||a.WD()}),a.S(a.i,"click",function(){a.api.ub(a.i)}));
a.u=new g.K(function(){a.isExpanded()&&(a.subscribeButton&&(a.subscribeButton.hide(),a.api.Za(a.subscribeButton.element,!1)),a.j&&(a.j.hide(),a.api.Za(a.j.element,!1)),a.channel.classList.remove("ytp-title-expanded"),a.channel.classList.add("ytp-title-show-collapsed"))},500);
g.J(a,a.u);a.S(a.channel,EAa,function(){FAa(a)});
a.S(a.api,"onHideControls",a.YG);a.S(a.api,"appresize",a.YG);a.S(a.api,"fullscreentoggled",a.YG)};
FAa=function(a){a.channel.classList.remove("ytp-title-show-collapsed");a.channel.classList.remove("ytp-title-show-expanded")};
DAa=function(a){var b=a.api.getPlayerSize();return a.C&&524<=b.width};
g.yN=function(a,b,c,d){g.YJ.call(this,a);this.priority=b;c&&this.Ff(c);d&&this.zd(d)};
g.zN=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{D:c?"a":"div",Ga:b,V:a,U:[{D:"div",K:"ytp-menuitem-icon",qa:"{{icon}}"},{D:"div",K:"ytp-menuitem-label",qa:"{{label}}"},{D:"div",K:"ytp-menuitem-content",qa:"{{content}}"}]}};
AN=function(a,b){a.Ma("icon",b)};
BN=function(a,b,c,d,e,f){var k={D:"div",K:"ytp-panel"};if(c){var l="ytp-panel-title";var m={D:"div",K:"ytp-panel-header",U:[{D:"button",Ga:["ytp-button",l],U:[c]}]};if(e){var n="ytp-panel-options";m.U.unshift({D:"button",Ga:["ytp-button",n],U:[d]})}k.U=[m]}d=!1;f&&(f={D:"div",K:"ytp-panel-footer",U:[f]},d=!0,k.U?k.U.push(f):k.U=[f]);g.YJ.call(this,k);this.content=b;d&&k.U?b.Ca(this.element,k.U.length-1):b.Ca(this.element);this.RL=!1;this.RT=d;c&&(c=this.Da(l),this.S(c,"click",this.mV),this.RL=!0,
e&&(n=this.Da(n),this.S(n,"click",e)));b.subscribe("size-change",this.mN,this);this.S(a,"fullscreentoggled",this.mN);g.M(this.element,"ytp-panel-min-width-killswitch",a.T().L("player_panel_min_width_killswitch"));this.G=a};
GAa=function(a,b){var c=new g.YJ({D:"div",K:"ytp-multi-item-panel"});a.content.Ca(c.element);b.Ca(c.element);a.content=c;c.Ca(a.element);g.J(a,c)};
g.CN=function(a,b,c,d,e,f){b=void 0===b?null:b;var k={role:"menu"};b&&(k.id=b);b=new g.YJ({D:"div",K:"ytp-panel-menu",V:k});BN.call(this,a,b,c,d,e,f);this.menuItems=b;this.items=[];g.J(this,this.menuItems)};
g.DN=function(a){for(var b=g.q(a.items),c=b.next();!c.done;c=b.next())c.value.unsubscribe("size-change",a.sG,a);a.items=[];g.Ph(a.menuItems.element);a.menuItems.Z("size-change")};
HAa=function(a,b){return b.priority-a.priority};
EN=function(a){var b=g.zN({"aria-haspopup":"true"});g.yN.call(this,b,a);this.Pa("keydown",this.i)};
FN=function(a,b){a.element.setAttribute("aria-haspopup",String(b))};
GN=function(a,b){g.yN.call(this,g.zN({role:"menuitemcheckbox","aria-checked":"false"}),b,a,{D:"div",K:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.Pa("click",this.onClick)};
HN=function(a,b){g.W.call(this,{D:"div",K:"ytp-user-info-panel",V:{"aria-label":"User info"},U:a.T().authUser&&!a.L("embeds_web_always_enable_signed_out_state")?[{D:"div",K:"ytp-user-info-panel-icon",qa:"{{icon}}"},{D:"div",K:"ytp-user-info-panel-content",U:[{D:"div",K:"ytp-user-info-panel-info",V:{tabIndex:"{{userInfoFocusable}}",role:"text"},qa:"{{watchingAsUsername}}"},{D:"div",K:"ytp-user-info-panel-info",V:{tabIndex:"{{userInfoFocusable2}}",role:"text"},qa:"{{watchingAsEmail}}"}]}]:[{D:"div",
K:"ytp-user-info-panel-icon",qa:"{{icon}}"},{D:"div",K:"ytp-user-info-panel-content",U:[{D:"div",U:[{D:"text",V:{tabIndex:"{{userInfoFocusable}}"},qa:"Signed out"}]},{D:"div",K:"ytp-user-info-panel-login",U:[{D:"a",V:{tabIndex:"{{userInfoFocusable2}}",role:"button"},qa:a.T().cd?"":"Sign in on YouTube"}]}]}]});this.Sa=a;this.i=b;a.T().authUser||a.T().cd||(a=this.Da("ytp-user-info-panel-login"),this.S(a,"click",this.zQ));this.S(window,"blur",this.hide);this.S(document,"click",this.yQ);this.Ja()};
IN=function(a,b,c,d){g.CN.call(this,a);this.qb=c;this.Ac=d;this.getVideoUrl=new EN(6);this.Ej=new EN(5);this.Aj=new EN(4);this.Kb=new EN(3);this.Dx=new g.yN(g.zN({href:"{{href}}",target:this.G.T().I},void 0,!0),2,"Troubleshoot playback issue");this.As=new g.YJ({D:"div",Ga:["ytp-copytext","ytp-no-contextmenu"],V:{draggable:"false",tabindex:"1"},qa:"{{text}}"});this.JK=new BN(this.G,this.As);this.iy=this.oo=null;g.WD(this.G.T())&&this.G.L("embeds_web_enable_user_info_in_context_menu")&&(this.dj=new g.yN(g.zN(),
8,"User info"),g.J(this,this.dj),this.zc(this.dj,!0),this.dj.Pa("click",this.iX,this),a.Bb(this.dj.element,this.dj,137682));this.G.T().gk&&(this.Ji=new GN("Loop",7),g.J(this,this.Ji),this.zc(this.Ji,!0),this.Ji.Pa("click",this.bW,this),a.Bb(this.Ji.element,this.Ji,28661));g.J(this,this.getVideoUrl);this.zc(this.getVideoUrl,!0);this.getVideoUrl.Pa("click",this.RV,this);a.Bb(this.getVideoUrl.element,this.getVideoUrl,28659);g.J(this,this.Ej);this.zc(this.Ej,!0);this.Ej.Pa("click",this.SV,this);a.Bb(this.Ej.element,
this.Ej,28660);g.J(this,this.Aj);this.zc(this.Aj,!0);this.Aj.Pa("click",this.QV,this);a.Bb(this.Aj.element,this.Aj,28658);g.J(this,this.Kb);this.zc(this.Kb,!0);this.Kb.Pa("click",this.PV,this);g.J(this,this.Dx);this.zc(this.Dx,!0);this.Dx.Pa("click",this.RW,this);b=new g.yN(g.zN(),1,"Stats for nerds");g.J(this,b);this.zc(b,!0);b.Pa("click",this.jX,this);g.J(this,this.As);this.As.Pa("click",this.CV,this);g.J(this,this.JK);c=document.queryCommandSupported&&document.queryCommandSupported("copy");43<=
Mb("Chromium")&&(c=!0);40>=Mb("Firefox")&&(c=!1);c&&(this.oo=new g.W({D:"textarea",K:"ytp-html5-clipboard",V:{readonly:""}}),g.J(this,this.oo),this.oo.Ca(this.element));var e;null==(e=this.dj)||AN(e,aya());var f;null==(f=this.Ji)||AN(f,{D:"svg",V:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{D:"path",V:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});AN(this.Kb,{D:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{D:"path",V:{"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"}}]});AN(this.Dx,{D:"svg",V:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{D:"path",V:{"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"}}]});AN(b,Xxa());this.S(a,"loopchange",this.xN);this.S(a,"videodatachange",this.onVideoDataChange);IAa(this);JAa(this,this.G.getVideoData())};
KN=function(a,b){var c=!1;if(a.oo){var d=a.oo.element;d.value=b;d.select();try{c=document.execCommand("copy")}catch(e){}}c?a.qb.Db():(a.As.zd(b,"text"),g.JN(a.qb,a.JK),TM(a.As.element),a.oo&&(a.oo=null,IAa(a)));return c};
JAa=function(a,b){var c=a.G.T(),d=2===a.G.getPresentingPlayerType(),e=!d||b.isListed;e=!c.J&&!!b.videoId&&e;"play"!==c.playerStyle?c="https://web.archive.org/web/20220130220643/https://support.google.com/youtube/?p=report_playback":(c={contact_type:"playbackissue",html5:1,ei:b.eventId,v:b.videoId,p:"movies_playback"},b.j&&(c.fmt=b.j.Vb()),b.clientPlaybackNonce&&(c.cpn=b.clientPlaybackNonce),b.ya&&(c.partnerid=b.ya),c=g.Hj("//web.archive.org/web/20220130220643/https://support.google.com/googleplay/",c));g.XJ(a.Aj,e&&b.allowEmbed);g.XJ(a.getVideoUrl,e);g.XJ(a.Ej,e&&!b.isLivePlayback);
a.Dx.zd(c,"href");var f;null==(f=a.Ji)||g.XJ(f,!b.isLivePlayback&&!d);var k;null==(k=a.dj)||g.XJ(k,!d)};
IAa=function(a){var b=!!a.oo;a.Kb.Ff(b?"Copy debug info":"Get debug info");FN(a.Kb,!b);a.Aj.Ff(b?"Copy embed code":"Get embed code");FN(a.Aj,!b);a.getVideoUrl.Ff(b?"Copy video URL":"Get video URL");FN(a.getVideoUrl,!b);a.Ej.Ff(b?"Copy video URL at current time":"Get video URL at current time");FN(a.Ej,!b);AN(a.Aj,b?Uxa():null);AN(a.getVideoUrl,b?hK():null);AN(a.Ej,b?hK():null)};
g.LN=function(a,b){g.cN.call(this,a,{D:"div",Ga:["ytp-popup",b||""]},100,!0);this.i=[];this.I=this.B=null;this.Dy=this.maxWidth=0;this.size=new g.dh(0,0);this.Pa("keydown",this.AQ)};
KAa=function(a){var b=a.i[a.i.length-1];if(b){g.ho(a.element,a.maxWidth||"100%",a.Dy||"100%");b.G.T().L("player_panel_min_width_killswitch")&&g.xn(b.element,"minWidth","250px");g.xn(b.element,"width","");g.xn(b.element,"height","");g.xn(b.element,"maxWidth","100%");g.xn(b.element,"maxHeight","100%");g.xn(b.content.element,"height","");var c=g.io(b.element);c.width+=1;c.height+=1;g.xn(b.element,"width",c.width+"px");g.xn(b.element,"height",c.height+"px");g.xn(b.element,"maxWidth","");g.xn(b.element,
"maxHeight","");var d=0;b.RL&&(d=b.Da("ytp-panel-header"),d=g.io(d).height);var e=0;b.RT&&(e=b.Da("ytp-panel-footer"),g.xn(e,"width",c.width+"px"),e=g.io(e).height);g.xn(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.xn(b.element,"width",c.width+"px")));a.size=c}};
g.JN=function(a,b){var c=a.i[a.i.length-1];a.i.push(b);MN(a,c,b)};
g.NN=function(a){if(!(1>=a.i.length)){var b=a.i.pop(),c=a.i[0];a.i=[c];MN(a,b,c,!0)}};
MN=function(a,b,c,d){LAa(a);b&&(b.unsubscribe("size-change",a.vu,a),b.unsubscribe("back",a.rh,a));c.subscribe("size-change",a.vu,a);c.subscribe("back",a.rh,a);if(a.sb){g.L(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;KAa(a);g.ho(a.element,e);a.B=new g.K(function(){MAa(a,b,c,d)},20,a);
a.B.start()}else c.Ca(a.element),b&&b.detach()};
MAa=function(a,b,c,d){a.B.dispose();a.B=null;g.L(a.element,"ytp-popup-animating");d?(g.L(b.element,"ytp-panel-animate-forward"),g.pr(c.element,"ytp-panel-animate-back")):(g.L(b.element,"ytp-panel-animate-back"),g.pr(c.element,"ytp-panel-animate-forward"));g.ho(a.element,a.size);a.I=new g.K(function(){g.pr(a.element,"ytp-popup-animating");b.detach();g.qr(b.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);a.I.dispose();a.I=null},250,a);
a.I.start()};
LAa=function(a){a.B&&g.ir(a.B);a.I&&g.ir(a.I)};
g.ON=function(a,b,c){g.LN.call(this,a);this.xa=b;this.Ac=c;this.u=new g.sC(this);this.Y=new g.K(this.BX,1E3,this);this.ea=this.C=null;g.J(this,this.u);g.J(this,this.Y);a.Bb(this.element,this,28656);g.L(this.element,"ytp-contextmenu");NAa(this);this.hide()};
NAa=function(a){g.sx(a.u);if("gvn"!==a.G.T().playerStyle){var b=a.G.bb();a.u.S(b,"contextmenu",a.zV);a.u.S(b,"touchstart",a.CQ,null,!0);a.u.S(b,"touchmove",a.TN,null,!0);a.u.S(b,"touchend",a.TN,null,!0)}};
OAa=function(a){a.G.isFullscreen()?g.fM(a.G,a.element,10):a.Ca(document.body)};
g.PN=function(a,b,c){c=void 0===c?240:c;g.W.call(this,{D:"button",Ga:["ytp-button","ytp-copylink-button"],V:{title:"{{title-attr}}","data-tooltip-opaque":String(g.WD(a.T()))},U:[{D:"div",K:"ytp-copylink-icon",qa:"{{icon}}"},{D:"div",K:"ytp-copylink-title",qa:"Copy link",V:{"aria-hidden":"true"}}]});this.api=a;this.i=b;this.j=c;this.visible=!1;this.tooltip=this.i.jc();b=a.T();vN(this.tooltip);g.M(this.element,"ytp-show-copylink-title",g.WD(b)&&!g.gE(b));a.Bb(this.element,this,86570);this.Pa("click",
this.onClick);this.S(a,"videodatachange",this.Ja);this.S(a,"videoplayerreset",this.Ja);this.S(a,"appresize",this.Ja);this.Ja();g.Ue(this,g.rN(this.tooltip,this.element))};
PAa=function(a){a.Ma("icon",cK());if(a.api.T().isMobile)QN(a.tooltip,a.element,"Link copied to clipboard");else{a.Ma("title-attr","Link copied to clipboard");RN(a.tooltip);QN(a.tooltip,a.element);var b=a.Pa("mouseleave",function(){a.xc(b);a.Ja();a.tooltip.wj()})}};
QAa=function(a,b){return g.B(function(c){if(1==c.i)return va(c,2),g.A(c,navigator.clipboard.writeText(b),4);if(2!=c.i)return c.return(!0);xa(c);var d=c.return,e=!1,f=g.Nh("TEXTAREA");f.value=b;f.setAttribute("readonly","");var k=a.api.getRootNode();k.appendChild(f);if(lu){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){}k.removeChild(f);return d.call(c,
e)})};
SN=function(){g.W.call(this,{D:"div",K:"ytp-doubletap-ui",U:[{D:"div",Ga:["ytp-seek-info-container","ytp-seek-static-circle"],U:[{D:"div",K:"ytp-seek-arrows-container",U:[{D:"span",K:"ytp-seek-base-arrow"},{D:"span",K:"ytp-seek-base-arrow"},{D:"span",K:"ytp-seek-base-arrow"}]},{D:"div",K:"ytp-seek-tooltip",U:[{D:"div",K:"ytp-chapter-seek-text",qa:"{{chapterSeekText}}"},{D:"div",K:"ytp-seek-tooltip-label",qa:"{{seekTime}}"}]}]}]});this.j=new g.K(this.show,10,this);this.i=new g.K(this.hide,700,this);
g.J(this,this.j);g.J(this,this.i);this.hide()};
TN=function(a){g.W.call(this,{D:"div",K:"ytp-doubletap-ui-legacy",U:[{D:"div",K:"ytp-doubletap-fast-forward-ve"},{D:"div",K:"ytp-doubletap-rewind-ve"},{D:"div",K:"ytp-doubletap-static-circle",U:[{D:"div",K:"ytp-doubletap-ripple"}]},{D:"div",K:"ytp-doubletap-overlay-a11y"},{D:"div",K:"ytp-doubletap-seek-info-container",U:[{D:"div",K:"ytp-doubletap-arrows-container",U:[{D:"span",K:"ytp-doubletap-base-arrow"},{D:"span",K:"ytp-doubletap-base-arrow"},{D:"span",K:"ytp-doubletap-base-arrow"}]},{D:"div",
K:"ytp-doubletap-tooltip",U:[{D:"div",K:"ytp-chapter-seek-text-legacy",qa:"{{seekText}}"},{D:"div",K:"ytp-doubletap-tooltip-label",qa:"{{seekTime}}"}]}]}]});this.G=a;this.u=new g.K(this.show,10,this);this.j=new g.K(this.hide,700,this);this.i=this.Da("ytp-doubletap-static-circle");g.J(this,this.u);g.J(this,this.j);this.hide();this.B=this.Da("ytp-doubletap-fast-forward-ve");this.C=this.Da("ytp-doubletap-rewind-ve");this.G.Bb(this.B,this,28240);this.G.Bb(this.C,this,28239);this.G.Za(this.B,!0);this.G.Za(this.C,
!0)};
RAa=function(a,b){b=g.kH("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:b.toString()});a.Ma("seekTime",b)};
UN=function(a){var b=null;try{b=a.toLocaleString("en",{style:"percent"})}catch(c){b=a.toLocaleString(void 0,{style:"percent"})}return b};
VN=function(a,b){var c=0;a=g.q(a);for(var d=a.next();!(d.done||d.value.startTime>b);d=a.next())c++;return 0===c?c:c-1};
SAa=function(a,b){b=VN(a,b)+1;return b<a.length?b:-1};
TAa=function(a,b){return VN(a,b)-1};
g.XN=function(a,b,c,d,e,f,k){g.sC.call(this);var l=this;this.api=a;this.contextMenu=c;this.Fd=d;this.Ac=e;this.i=f;this.B=k;this.u=new g.K(function(){UAa(l,!1)},1E3);
this.j="";g.J(this,this.u);this.S(b,"mousedown",function(){WN(l,!1)});
this.S(c.element,"mousedown",function(){WN(l,!1)});
this.S(b,"keydown",this.LL);this.S(c.element,"keydown",this.LL);this.S(b,"keyup",this.ML);this.S(c.element,"keyup",this.ML)};
WN=function(a,b){g.M(a.api.getRootNode(),"ytp-probably-keyboard-focus",b);g.M(a.contextMenu.element,"ytp-probably-keyboard-focus",b)};
ZN=function(a,b,c,d){var e=g.BM(a.api.tb());if(e&&e.loaded){var f=a.api.getSubtitlesUserSettings();e=void 0;for(var k=0;k<g.YN.length;k++){var l=g.YN[k];if(l.option===b){e=l.options;break}}k=void 0;for(l=0;l<e.length;l++)e[l].option===f[b]&&(k=l);if(d)if(c){if(0===k)return}else if(k===e.length-1)return;d={};d[b]=e[(k+(c?e.length-1:1))%e.length].option;a.api.updateSubtitlesUserSettings(d);UAa(a,!0);a.u.start()}};
VAa=function(a,b){a.api.lf();if(g.V(a.api.zb(),4)){var c=a.api.getVideoData().j;c&&(c=c.video)&&a.api.seekBy(b/(c.fps||30))}};
UAa=function(a,b){g.BM(a.api.tb())&&a.api.setOption("captions","sampleSubtitles",b)};
$N=function(a,b,c){g.W.call(this,{D:"button",Ga:["ytp-button","ytp-overflow-button"],V:{title:"More","aria-haspopup":"true","aria-owns":c.element.id},U:[{D:"div",K:"ytp-overflow-icon",U:[{D:"svg",V:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},U:[{D:"path",V:{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.i=b;this.visible=!1;this.tooltip=this.i.jc();
a.Bb(this.element,this,16499);this.S(a,"appresize",this.Ja);this.S(a,"fullscreentoggled",this.Ja);this.S(a,"presentingplayerstatechange",this.Ja);this.Ja();g.Ue(this,g.rN(this.tooltip,this.element));this.Pa("click",function(){a.ub(d.element);dN(c,d.element,!1)});
this.S(c.closeButton,"click",function(){d.focus()})};
aO=function(a,b){g.cN.call(this,a,{D:"div",K:"ytp-overflow-panel",V:{id:TJ(),role:"dialog"},U:[{D:"div",K:"ytp-overflow-panel-content",U:[{D:"div",K:"ytp-overflow-panel-action-buttons",qa:"{{buttons}}"}]},{D:"button",Ga:["ytp-overflow-panel-close","ytp-button"],V:{title:"Close"},U:[g.fK()]}]},250);this.actionButtons=[];this.tooltip=b.jc();this.i=this.Da("ytp-overflow-panel-content");this.closeButton=this.Da("ytp-overflow-panel-close");this.S(this.closeButton,"click",this.Db);g.Ue(this,g.rN(this.tooltip,
this.closeButton));this.Pa("click",this.DQ);this.S(a,"videoplayerreset",this.hide);this.S(a,"fullscreentoggled",this.onFullscreenToggled);this.hide()};
bO=function(a,b){a.actionButtons.includes(b)||(a.actionButtons.push(b),a.Ma("buttons",a.actionButtons))};
WAa=function(a,b){a=g.q(a.actionButtons);for(var c=a.next();!c.done;c=a.next())c.value.dc(b)};
cO=function(a,b,c){var d=g.nM(b,c),e=a.T(),f=d.Re("default.jpg");g.W.call(this,{D:"a",Ga:["ytp-video-menu-item","ytp-button"],V:{role:"menuitemradio","aria-label":d.title,href:e.getVideoUrl(d.videoId,b.listId?b.listId.toString():null)},U:[{D:"div",K:"ytp-video-menu-item-index",qa:String(c+1)},{D:"div",K:"ytp-video-menu-item-now-playing",qa:"\u25b6"},{D:"div",K:"ytp-video-menu-item-thumbnail",V:{style:f?"background-image: url("+f+");":void 0}},{D:"div",K:"ytp-video-menu-item-title",qa:d.title},{D:"div",
K:"ytp-video-menu-item-author",qa:d.author}]});this.api=a;this.index=c;this.Pa("click",this.onClick)};
dO=function(a){g.cN.call(this,a,{D:"div",K:"ytp-playlist-menu",V:{role:"dialog",id:TJ()},U:[{D:"div",K:"ytp-playlist-menu-header",U:[{D:"div",K:"ytp-playlist-menu-title",U:[{D:"a",K:"ytp-playlist-menu-title-name",V:{href:"{{playlisturl}}"},qa:"{{title}}"},{D:"button",Ga:["ytp-playlist-menu-close","ytp-button"],V:{"aria-label":"Close"},U:[g.fK()]}]},{D:"div",K:"ytp-playlist-menu-subtitle",qa:"{{subtitle}}"}]},{D:"div",K:"ytp-playlist-menu-items",V:{role:"menu"}}]},250);this.api=a;this.selected=this.B=
this.playlist=null;this.items=this.Da("ytp-playlist-menu-items");this.u=new g.sC(this);this.i=[];a=this.Da("ytp-playlist-menu-close");this.S(a,"click",this.Db);a=this.Da("ytp-playlist-menu-title-name");this.S(a,"click",this.AX);g.J(this,this.u);this.hide()};
eO=function(a,b,c){g.W.call(this,{D:"button",Ga:["ytp-playlist-menu-button","ytp-button"],V:{title:"{{title}}","aria-owns":String(c.element.id),"aria-haspopup":"true","aria-label":"Playlist"},U:[{D:"div",K:"ytp-playlist-menu-button-icon",U:[{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{D:"path",Fb:!0,V:{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"}}]}]},{D:"div",K:"ytp-playlist-menu-button-text",qa:"{{text}}"}]});var d=this;this.api=a;this.playlist=null;this.visible=!1;this.tooltip=b.jc();a.Bb(this.element,this,70344);this.S(a,"videodatachange",this.i);this.S(a,"onPlaylistUpdate",this.i);this.S(a,"presentingplayerstatechange",this.Ja);this.S(a,"appresize",this.Ja);this.hide();this.i();g.Ue(this,g.rN(this.tooltip,this.element));this.Pa("click",function(){a.ub(d.element);dN(c,d.element,!1)})};
fO=function(a,b,c){g.W.call(this,{D:"div",K:"ytp-promotooltip-wrapper",U:[{D:"div",K:"ytp-promotooltip-container",U:[{D:"div",K:"ytp-promotooltip-content",U:[{D:"div",K:"ytp-promotooltip-title",qa:"{{title}}"},{D:"div",K:"ytp-promotooltip-details",qa:"{{details}}"}]},{D:"div",K:"ytp-promotooltip-buttons",U:[{D:"div",K:"ytp-promotooltip-dismiss-button",qa:"{{dismissButtonText}}",V:{tabindex:"0"}},{D:"div",K:"ytp-promotooltip-accept-button",qa:"{{acceptButtonText}}",V:{tabindex:"0","aria-haspopup":"true"}}]}]},
{D:"div",K:"ytp-promotooltip-pointer"}]});this.tooltipRenderer=a;this.J=b;this.G=c;this.i=this.u=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.I=this.C=this.j=this.B=!1;g.XJ(this,!1);a=this.tooltipRenderer.trackingParams||null;if(this.j=!!a)this.G.Vg(this.element,this,!0),this.G.Xj(this.element,a);this.S(c,"onShowControls",
this.JC);this.S(c,"onHideControls",this.BV);this.S(c,"resize",this.yb);this.S(this.acceptButton,"click",this.MU);this.S(this.dismissButton,"click",this.IV);this.S(document,"click",this.EQ)};
XAa=function(a){a=document.querySelectorAll('[data-tooltip-target-id="'+a.tooltipRenderer.targetId+'"]');return 0<a.length?a[0]:null};
gO=function(a){g.XJ(a,!1);a.j&&a.G.Za(a.element,a.sb)};
hO=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,k;if(null==(f=e)?0:null==(k=f.feedbackEndpoint)?0:k.feedbackToken)b={feedbackTokens:[e.feedbackEndpoint.feedbackToken]},a=a.G.im(),(null==a?0:Fya(e,a.B))&&vL(a,e,b)}};
YAa=function(a){var b,c,d,e,f,k=(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,r;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==(r=a.dismissButton)||!r.buttonRenderer.text.runs[0].text);return k||b};
iO=function(a,b){g.W.call(this,{D:"button",Ga:["ytp-replay-button","ytp-button"],V:{title:"Replay"},U:[g.mK()]});this.G=a;this.S(a,"presentingplayerstatechange",this.onStateChange);this.Pa("click",this.onClick,this);a=a.zb();g.XJ(this,g.V(a,2));g.rN(b.jc(),this.element)};
g.jO=function(a,b,c,d){d=void 0===d?240:d;g.W.call(this,{D:"button",Ga:["ytp-button","ytp-share-button"],V:{title:"Share","aria-haspopup":"true","aria-owns":c.element.id,"data-tooltip-opaque":String(g.WD(a.T()))},U:[{D:"div",K:"ytp-share-icon",qa:"{{icon}}"},{D:"div",K:"ytp-share-title",qa:"Share"}]});this.api=a;this.i=b;this.u=c;this.j=d;this.visible=!1;this.tooltip=this.i.jc();b=a.T();a.Bb(this.element,this,28664);this.Pa("click",this.onClick);this.S(a,"videodatachange",this.Ja);this.S(a,"videoplayerreset",
this.Ja);this.S(a,"appresize",this.Ja);this.S(a,"presentingplayerstatechange",this.Ja);this.Ja();g.M(this.element,"ytp-show-share-title",g.WD(b)&&!g.gE(b));g.Ue(this,g.rN(this.tooltip,this.element))};
ZAa=function(a){"InvalidStateError"!==a.name&&g.S(a)};
g.kO=function(a,b){var c=TJ(),d=a.T();c={D:"div",K:"ytp-share-panel",V:{id:TJ(),role:"dialog","aria-labelledby":c},U:[{D:"div",K:"ytp-share-panel-inner-content",U:[{D:"div",K:"ytp-share-panel-title",V:{id:c},qa:"Share"},{D:"a",Ga:["ytp-share-panel-link","ytp-no-contextmenu"],V:{href:"{{link}}",target:d.I,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},qa:"{{linkText}}"},{D:"label",K:"ytp-share-panel-include-playlist",U:[{D:"input",K:"ytp-share-panel-include-playlist-checkbox",V:{type:"checkbox",
checked:!0}},"Include playlist"]},{D:"div",K:"ytp-share-panel-loading-spinner",U:[SM()]},{D:"div",K:"ytp-share-panel-service-buttons",qa:"{{buttons}}"},{D:"div",K:"ytp-share-panel-error",qa:"An error occurred while retrieving sharing information. Please try again later."}]},{D:"button",Ga:["ytp-share-panel-close","ytp-button"],V:{title:"Close"},U:[g.fK()]}]};g.cN.call(this,a,c,250);this.api=a;this.tooltip=b.jc();this.i=[];this.C=this.Da("ytp-share-panel-inner-content");this.closeButton=this.Da("ytp-share-panel-close");
this.S(this.closeButton,"click",this.Db);g.Ue(this,g.rN(this.tooltip,this.closeButton));this.B=this.Da("ytp-share-panel-include-playlist-checkbox");this.S(this.B,"click",this.Ja);this.u=this.Da("ytp-share-panel-link");g.Ue(this,g.rN(this.tooltip,this.u));this.Pa("click",this.FQ);this.S(a,"videoplayerreset",this.hide);this.S(a,"fullscreentoggled",this.onFullscreenToggled);this.S(a,"onLoopRangeChange",this.pU);this.hide()};
aBa=function(a,b){$Aa(a);for(var c=b.links||b.shareTargets,d=0,e={},f=0;f<c.length&&2>d;e={Zm:e.Zm},f++){e.Zm=c[f];a:switch(e.Zm.img||e.Zm.iconId){case "facebook":var k={D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},U:[{D:"rect",V:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{D:"path",V:{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":k={D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},U:[{D:"rect",V:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{D:"path",V:{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:k=null}k&&(k=new g.W({D:"a",Ga:["ytp-share-panel-service-button","ytp-button"],V:{href:e.Zm.url,target:"_blank",title:e.Zm.sname||e.Zm.serviceName},U:[k]}),k.Pa("click",function(m){return function(n){if(g.aL(n)){var p=m.Zm.url;var r=void 0===r?{}:r;r.target=r.target||"YouTube";r.width=r.width||"600";r.height=r.height||"600";var t=r;t||(t={});r=window;var w=p instanceof g.sg?p:g.xg("undefined"!=typeof p.href?p.href:String(p));var x=void 0!==self.crossOriginIsolated,
y="strict-origin-when-cross-origin";window.Request&&(y=(new Request("/")).referrerPolicy);var z="unsafe-url"===y;y=t.noreferrer;if(x&&y){if(z)throw Error("Cannot use the noreferrer option on a page that sets a referrer-policy of `unsafe-url` in modern browsers!");y=!1}p=t.target||p.target;x=[];for(var F in t)switch(F){case "width":case "height":case "top":case "left":x.push(F+"="+t[F]);break;case "target":case "noopener":case "noreferrer":break;default:x.push(F+"="+(t[F]?1:0))}F=x.join(",");Qb()&&
r.navigator&&r.navigator.standalone&&p&&"_self"!=p?(t=g.Nh("A"),g.Vg(t,w),t.setAttribute("target",p),y&&t.setAttribute("rel","noreferrer"),w=document.createEvent("MouseEvent"),w.initMouseEvent("click",!0,!0,r,1),t.dispatchEvent(w),r={}):y?(r=Wg("",r,p,F),w=g.tg(w),r&&(g.zE&&-1!=w.indexOf(";")&&(w="'"+w.replace(/'/g,"%27")+"'"),r.opener=null,""===w&&(w="javascript:''"),w=g.Sg(g.kg("b/12014412, meta tag with sanitized URL"),'<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+
g.ih(w)+'">'),(t=r.document)&&t.write&&(t.write(g.Jg(w)),t.close()))):(r=Wg(w,r,p,F))&&t.noopener&&(r.opener=null);r&&(r.opener||(r.opener=window),r.focus());g.Fu(n)}}}(e)),g.Ue(k,g.rN(a.tooltip,k.element)),a.i.push(k),d++)}var l=b.more||b.moreLink;
b=new g.W({D:"a",Ga:["ytp-share-panel-service-button","ytp-button"],U:[{D:"span",K:"ytp-share-panel-service-button-more",U:[{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},U:[{D:"rect",V:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{D:"path",V:{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"}}]}]}],V:{href:l,target:"_blank",title:"More"}});b.Pa("click",function(m){g.RM(l,a.api,m)&&a.api.Oa("SHARE_CLICKED")});
g.Ue(b,g.rN(a.tooltip,b.element));a.i.push(b);a.Ma("buttons",a.i)};
$Aa=function(a){for(var b=g.q(a.i),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),g.Se(c);a.i=[]};
nO=function(a,b,c){c=void 0===c?!0:c;g.W.call(this,{D:"div",K:"ytp-suggested-action"});var d=this;this.G=a;this.Ya=b;this.Qa=this.J=this.i=this.C=this.B=this.j=this.expanded=this.enabled=this.u=!1;this.Ia=new g.K(function(){d.badge.element.style.width=""},200,this);
this.Y=new g.K(function(){lO(d);mO(d)},200,this);
this.dismissButton=new g.W({D:"button",Ga:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.J(this,this.dismissButton);this.I=new g.W({D:"div",K:"ytp-suggested-action-badge-expanded-content-container",U:[{D:"label",K:"ytp-suggested-action-badge-title",qa:"{{badgeLabel}}"},this.dismissButton]});g.J(this,this.I);this.badge=new g.W({D:"button",Ga:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],U:[c?{D:"div",K:"ytp-suggested-action-badge-icon"}:
"",this.I]});g.J(this,this.badge);this.badge.Ca(this.element);this.N=new g.MK(this.badge,250,!1,100);g.J(this,this.N);this.xa=new g.MK(this.I,250,!1,100);g.J(this,this.xa);this.La=new g.fr(this.IY,null,this);g.J(this,this.La);this.ea=new g.fr(this.VS,null,this);g.J(this,this.ea);g.J(this,this.Ia);g.J(this,this.Y);this.G.Vg(this.badge.element,this.badge,!0);this.G.Vg(this.dismissButton.element,this.dismissButton,!0);this.S(this.G,"onHideControls",function(){d.i=!1;mO(d);lO(d);d.Xh()});
this.S(this.G,"onShowControls",function(){d.i=!0;mO(d);lO(d);d.Xh()});
this.S(this.badge.element,"click",this.cG);this.S(this.dismissButton.element,"click",this.dG);this.S(this.G,"pageTransition",this.GQ);this.S(this.G,"appresize",this.Xh);this.S(this.G,"fullscreentoggled",this.NV);this.S(this.G,"cardstatechange",this.pV);this.S(this.G,"annotationvisibility",this.lZ,this);this.S(this.G,"offlineslatestatechange",this.mZ,this)};
lO=function(a){g.M(a.badge.element,"ytp-suggested-action-badge-with-controls",a.i||!a.j)};
mO=function(a,b){var c=a.J||a.i||!a.j;a.expanded!==c&&(a.expanded=c,void 0===b||b?(a.La.stop(),a.ea.stop(),a.Ia.stop(),a.La.start()):(g.XJ(a.I,a.expanded),g.M(a.badge.element,"ytp-suggested-action-badge-expanded",a.expanded)),bBa(a))};
bBa=function(a){a.B&&a.G.Za(a.badge.element,a.Ox());a.C&&a.G.Za(a.dismissButton.element,a.Ox()&&(a.J||a.i||!a.j))};
cBa=function(a){var b=a.text||"";g.Uh(g.wh("ytp-suggested-action-badge-title",a.element),b);a.badge.element.setAttribute("aria-label",b);a.dismissButton.element.setAttribute("aria-label",a.Ta?a.Ta:"")};
dBa=function(a,b){b?a.C&&a.G.ub(a.dismissButton.element):a.B&&a.G.ub(a.badge.element)};
oO=function(a,b){nO.call(this,a,b);var c=this;this.W=this.ya=this.Ha=!1;this.S(this.G,g.Ny("shopping_overlay_visible"),function(){c.Me(!0)});
this.S(this.G,g.Oy("shopping_overlay_visible"),function(){c.Me(!1)});
this.S(this.G,g.Ny("shopping_overlay_expanded"),function(){c.J=!0;mO(c)});
this.S(this.G,g.Oy("shopping_overlay_expanded"),function(){c.J=!1;mO(c)});
this.S(this.G,"changeProductsInVideoVisibility",this.yW);this.S(this.G,"videodatachange",this.onVideoDataChange);this.S(this.G,"paidcontentoverlayvisibilitychange",this.rW)};
pO=function(a){a.G.gf("shopping_overlay_visible");a.G.gf("shopping_overlay_expanded")};
qO=function(a){g.cN.call(this,a,{D:"button",Ga:["ytp-skip-intro-button","ytp-popup","ytp-button"],U:[{D:"div",K:"ytp-skip-intro-button-text",qa:"Skip Intro"}]},100);var b=this;this.C=!1;this.B=new g.K(function(){b.hide()},5E3);
this.i=this.u=NaN;g.J(this,this.B);this.ea=function(){b.show()};
this.Y=function(){b.hide()};
this.I=function(){var c=b.G.getCurrentTime();c>b.u/1E3&&c<b.i/1E3&&b.show()};
this.S(this.G,"videodatachange",function(c,d){b.Vs(c,d)});
this.S(this.element,"click",function(){b.G.seekTo(b.i/1E3)});
this.hide()};
rO=function(a,b){g.W.call(this,{D:"button",Ga:["ytp-airplay-button","ytp-button"],V:{title:"AirPlay"},qa:"{{icon}}"});this.G=a;this.Pa("click",this.onClick);this.S(a,"airplayactivechange",this.Ja);this.S(a,"airplayavailabilitychange",this.Ja);this.Ja();g.Ue(this,g.rN(b.jc(),this.element))};
sO=function(a,b){g.W.call(this,{D:"button",Ga:["ytp-button"],V:{title:"{{title}}","aria-label":"{{label}}","data-tooltip-target-id":"ytp-autonav-toggle-button"},U:[{D:"div",K:"ytp-autonav-toggle-button-container",U:[{D:"div",K:"ytp-autonav-toggle-button",V:{"aria-checked":"true"}}]}]});this.G=a;this.j=[];this.i=!1;this.isChecked=!0;a.Bb(this.element,this,113681);this.S(a,"presentingplayerstatechange",this.Tu);this.Pa("click",this.onClick);this.tooltip=b.jc();g.Ue(this,g.rN(b.jc(),this.element));this.Tu()};
eBa=function(a){a.setValue(a.isChecked);var b=a.isChecked?"Autoplay is on":"Autoplay is off";a.Ma("title",b);a.Ma("label",b);RN(a.tooltip)};
g.uO=function(a){g.W.call(this,{D:"div",K:"ytp-gradient-bottom"});this.i=g.Nh("CANVAS");this.ctx=this.i.getContext("2d");this.u=NaN;this.i.width=1;this.j=g.gE(a.T());g.tO(this,a.bb().getPlayerSize().height)};
g.tO=function(a,b){if(a.ctx){b=Math.floor(b*(a.j?1:.4));b=Math.max(b,47);var c=b+2;if(a.u!==c){a.u=c;a.i.height=c;a.ctx.clearRect(0,0,1,c);var d=a.ctx.createLinearGradient(0,2,0,2+b);if(a.j)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.i.toDataURL()+")"}catch(f){}}}};
vO=function(a,b,c){g.W.call(this,{D:"div",K:"ytp-chapter-container",U:[{D:"button",Ga:["ytp-chapter-title","ytp-button"],U:[{D:"span",V:{"aria-hidden":"true"},K:"ytp-chapter-title-prefix",qa:"\u2022"},{D:"div",K:"ytp-chapter-title-content",qa:"{{title}}",V:{title:"View chapter","aria-label":"View chapter"}},{D:"div",K:"ytp-chapter-title-chevron",U:[{D:"svg",V:{height:"100%",viewBox:"0 0 24 24",width:"100%"},U:[{D:"path",V:{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.J=c;this.B="";this.currentIndex=0;this.u=void 0;this.i=!0;this.C=this.Da("ytp-chapter-container");this.j=this.Da("ytp-chapter-title");this.I=this.Da("ytp-chapter-title-content");this.updateVideoData("newdata",this.G.getVideoData());this.S(a,"videodatachange",this.updateVideoData);this.S(this.C,"click",this.onClick);this.S(a,g.Ny("chapterCueRange"),this.Rb);this.S(a,"onLoopRangeChange",this.Rb);this.S(a,"innertubeCommand",this.onClickCommand);g.WD(this.G.T())||g.Ue(this,g.rN(b.jc(),this.I))};
wO=function(a,b,c,d,e,f,k){var l=b.Qw/b.columns,m=b.yq/b.rows,n=Math.min(c/l,d/m);void 0!==f&&n*l<f&&(n=Math.min(2,f/l));f=b.Qw*n;l=b.yq*n;f=Math.floor(f/b.columns)*b.columns;l=Math.floor(l/b.rows)*b.rows;var p=f/b.columns,r=l/b.rows,t=-b.column*p,w=-b.row*r;e&&45>=m&&(r-=1/n);p-=2/n;a=a.style;a.width=p+"px";a.height=r+"px";e||(d=(d-r)/2,c=(c-p)/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+
") "+t+"px "+w+"px/"+(null!=k?k:f)+"px "+l+"px"};
g.xO=function(a){g.W.call(this,{D:"div",K:"ytp-storyboard-framepreview",U:[{D:"div",K:"ytp-storyboard-framepreview-img"}]});this.api=a;this.B=this.Da("ytp-storyboard-framepreview-img");this.j=null;this.u=NaN;this.events=new g.sC(this);this.i=new g.MK(this,100);g.J(this,this.events);g.J(this,this.i);this.S(this.api,"presentingplayerstatechange",this.Sc)};
yO=function(a,b){var c=!!a.j;a.j=b;a.j?(c||(a.events.S(a.api,"videodatachange",function(){yO(a,a.api.fh())}),a.events.S(a.api,"progresssync",a.Dd),a.events.S(a.api,"appresize",a.C)),a.u=NaN,zO(a),a.i.show(200)):(c&&g.sx(a.events),a.i.hide(),a.i.stop())};
zO=function(a){var b=a.j,c=a.api.getCurrentTime(),d=a.api.bb().getPlayerSize(),e=hF(b,d.width);c=Tta(b,e,c);c!==a.u&&(a.u=c,Rta(b,c,d.width),b=Pta(b,c,d.width),wO(a.B,b,d.width,d.height))};
AO=function(a,b){g.W.call(this,{D:"button",Ga:["ytp-fullerscreen-edu-button","ytp-button"],U:[{D:"div",Ga:["ytp-fullerscreen-edu-text"],qa:"Scroll for details"},{D:"div",Ga:["ytp-fullerscreen-edu-chevron"],U:[{D:"svg",V:{height:"100%",viewBox:"0 0 24 24",width:"100%"},U:[{D:"path",V:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}]});this.Sa=a;this.u=b;this.i=new g.MK(this,250,void 0,100);this.B=this.j=!1;a.Bb(this.element,this,61214);this.u=b;g.J(this,this.i);this.S(a,
"fullscreentoggled",this.Ja);this.S(a,"presentingplayerstatechange",this.Ja);this.Pa("click",this.onClick);this.Ja()};
g.BO=function(a,b){g.W.call(this,{D:"button",Ga:["ytp-fullscreen-button","ytp-button"],V:{title:"{{title}}"},qa:"{{icon}}"});this.G=a;this.j=b;this.message=null;this.i=g.rN(this.j.jc(),this.element);this.u=new g.K(this.sS,2E3,this);g.J(this,this.u);this.S(a,"fullscreentoggled",this.aj);this.S(a,"presentingplayerstatechange",this.Ja);this.Pa("click",this.onClick);g.mx()&&(b=this.G.bb(),this.S(b,mna(),this.lG),this.S(b,px(document),this.Jm));a.T().Wa||a.T().C||this.disable();a.Bb(this.element,this,
139117);this.Ja();this.aj(a.isFullscreen())};
CO=function(a,b){g.W.call(this,{D:"button",Ga:["ytp-miniplayer-button","ytp-button"],V:{title:"{{title}}","data-tooltip-target-id":"ytp-miniplayer-button"},U:[kK()]});this.G=a;this.visible=!1;this.Pa("click",this.onClick);this.S(a,"fullscreentoggled",this.Ja);this.Ma("title",UM(a,"Miniplayer","i"));g.Ue(this,g.rN(b.jc(),this.element));a.Bb(this.element,this,62946);this.Ja()};
DO=function(a,b,c){g.W.call(this,{D:"button",Ga:["ytp-multicam-button","ytp-button"],V:{title:"Switch camera","aria-haspopup":"true","data-preview":"{{preview}}","data-tooltip-text":"{{text}}"},U:[{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{D:"path",Fb:!0,V:{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.i=!1;this.j=new g.K(this.u,400,this);this.tooltip=b.jc();vN(this.tooltip);g.J(this,this.j);this.Pa("click",function(){dN(c,d.element,!1)});
this.S(a,"presentingplayerstatechange",function(){d.Ja(!1)});
this.S(a,"videodatachange",this.onVideoDataChange);this.Ja(!0);g.Ue(this,g.rN(this.tooltip,this.element))};
EO=function(a){g.cN.call(this,a,{D:"div",K:"ytp-multicam-menu",V:{role:"dialog"},U:[{D:"div",K:"ytp-multicam-menu-header",U:[{D:"div",K:"ytp-multicam-menu-title",U:["Switch camera",{D:"button",Ga:["ytp-multicam-menu-close","ytp-button"],V:{"aria-label":"Close"},U:[g.fK()]}]}]},{D:"div",K:"ytp-multicam-menu-items"}]},250);this.api=a;this.u=new g.sC(this);this.items=this.Da("ytp-multicam-menu-items");this.i=[];g.J(this,this.u);a=this.Da("ytp-multicam-menu-close");this.S(a,"click",this.Db);this.hide()};
FO=function(){g.G.call(this);this.j=null;this.startTime=this.duration=0;this.delay=new g.fr(this.i,null,this);g.J(this,this.delay)};
fBa=function(a,b){if("path"===b.D)return b.V.d;if(b.U)for(var c=0;c<b.U.length;c++){var d=b.U[c];if(d&&"string"!==typeof d&&(d=fBa(a,d)))return d}};
iBa=function(a,b,c){c=fBa(a,c);var d=b.getElementsByTagName("path")[0],e=d.getAttribute("d");if(d.getAttribute("id")){var f=TJ();b=b.getElementsByTagName("use");for(var k=0;k<b.length;k++)b[k].setAttributeNS("http://www.w3.org/1999/xlink","href","#"+f);d.setAttribute("id",f)}var l=gBa(e),m=gBa(c);GO(a,function(n){d.setAttribute("d",hBa(l,m,n))},200)};
GO=function(a,b,c){a.j=b;a.startTime=(0,g.R)();a.duration=c;a.i()};
gBa=function(a){var b=[];a=a.match(jBa);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};
hBa=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.HO=function(a,b){g.W.call(this,{D:"button",Ga:["ytp-mute-button","ytp-button"],V:a.T().Y?{title:"{{title}}"}:{"aria-disabled":"true","aria-haspopup":"true"},qa:"{{icon}}"});this.G=a;this.i=null;this.B=this.N=this.C=this.Y=NaN;this.ea=this.I=null;this.u=[];this.j=[];this.visible=!1;this.J=null;var c=this.G.T();this.Ma("icon",pK());this.tooltip=b.jc();this.i=new g.UJ({D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{D:"defs",U:[{D:"clipPath",V:{id:"ytp-svg-volume-animation-mask"},
U:[{D:"path",V:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{D:"path",V:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{D:"path",K:"ytp-svg-volume-animation-mover",V:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{D:"clipPath",V:{id:"ytp-svg-volume-animation-slash-mask"},U:[{D:"path",K:"ytp-svg-volume-animation-mover",V:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{D:"path",Fb:!0,Ga:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],V:{"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"}},{D:"path",Fb:!0,Ga:["ytp-svg-fill","ytp-svg-volume-animation-hider"],V:{"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.J(this,this.i);this.I=this.i.Da("ytp-svg-volume-animation-speaker");this.ea=this.I.getAttribute("d");this.u=g.vh("ytp-svg-volume-animation-mover",this.i.element);
this.j=g.vh("ytp-svg-volume-animation-hider",this.i.element);this.xa=new FO;g.J(this,this.xa);this.W=new FO;g.J(this,this.W);this.Pa("click",this.jW);this.S(a,"appresize",this.WI);this.S(a,"onVolumeChange",this.onVolumeChange);var d=null;if(c.Y)g.Ue(this,g.rN(b.jc(),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.cN(a,{D:"span",Ga:["ytp-popup","ytp-generic-popup"],V:{tabindex:"0"},U:[e[0],{D:"a",V:{href:"https://web.archive.org/web/20220130220643/https://support.google.com/youtube/?p=noaudio",
target:c.I},qa:e[2]},e[4]]},100,!0);g.J(this,d);d.hide();d.subscribe("show",function(f){b.Gs(d,f)});
g.fM(a,d.element,4)}this.message=d;a.Bb(this.element,this,28662);this.WI(a.bb().getPlayerSize());this.setVolume(a.getVolume(),a.isMuted())};
mBa=function(a,b){a.Y=b;var c=a.ea;b&&(c+=hBa(kBa,lBa,b));a.I.setAttribute("d",c)};
nBa=function(a,b){a.N=b;for(var c=20*b,d=0;d<a.u.length;d++)a.u[d].setAttribute("transform","translate("+c+", "+c+")");var e;1===b?e=pK():e=a.i;for(c=0;c<a.j.length;c++){d=a.j[c];var f=void 0;if(null==(f=d)?0:f.style)d.style.display=0===b?"none":""}e!==a.J&&(a.Ma("icon",e),a.J=e)};
IO=function(a,b){g.W.call(this,{D:"button",Ga:["ytp-pip-button","ytp-button"],V:{title:"{{title}}","data-tooltip-target-id":"ytp-pip-button"},U:[kK()]});this.G=a;this.Ma("title","Picture in Picture");this.Pa("click",this.onClick);g.Ue(this,g.rN(b.jc(),this.element))};
g.JO=function(a,b,c){g.W.call(this,{D:"button",Ga:["ytp-play-button","ytp-button"],V:{title:"{{title}}"},qa:"{{icon}}"});this.G=a;this.i=null;this.transition=new FO;this.tooltip=b.jc();g.J(this,this.transition);this.j=!!c;a.Bb(this.element,this,36842);a.Za(this.element,!0);this.S(a,"fullscreentoggled",this.onVideoDataChange);this.S(a,"presentingplayerstatechange",this.onStateChange);this.S(a,"videodatachange",this.onVideoDataChange);oBa(this,a.zb());this.Pa("click",this.fu,this);g.Ue(this,g.rN(b.jc(),
this.element))};
pBa=function(a){switch(a){case 1:return lK();case 2:return $xa();case 3:return g.mK();case 4:return cya();default:return null}};
oBa=function(a,b){var c=g.MF(a.G.getVideoData()),d=!1;g.WI(b)?b=c?4:2:g.V(b,2)?(b=3,d=c):b=1;a.element.disabled=d;if(a.i!==b){c=null;switch(b){case 2:c=UM(a.G,"Pause","k");break;case 3:c="Replay";break;case 1:c=UM(a.G,"Play","k");break;case 4:c="Stop live playback"}3===b?a.update({title:c,icon:pBa(b)}):(a.update({title:c}),(c=pBa(b))&&a.i&&3!==a.i?iBa(a.transition,a.element,c):a.Ma("icon",c));RN(a.tooltip);a.i=b}};
g.LO=function(a,b,c){g.W.call(this,{D:"a",Ga:[c?"ytp-next-button":"ytp-prev-button","ytp-button"],V:{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}}"},U:[c?iK():bya()]});var d=this;this.G=a;this.i=c;this.playlist=this.videoData=null;this.isLinkable=!1;this.B=this.C=this.j=null;this.u=!1;this.tooltip=b.jc();c?a.Bb(this.element,this,6193):
a.Bb(this.element,this,6194);this.S(a,"fullscreentoggled",this.onVideoDataChange);this.S(a,"videodatachange",this.onVideoDataChange);this.S(a,"onPlaylistUpdate",this.onVideoDataChange);this.i||this.S(a,"appresize",this.KC);this.S(a,"mdxpreviousnextchange",function(){KO(d);d.KC()});
this.onVideoDataChange()};
qBa=function(a){a.playlist&&a.playlist.unsubscribe("shuffle",a.onVideoDataChange,a)};
rBa=function(a){return!!a.playlist&&!a.i&&!!a.videoData&&!a.videoData.isLivePlayback&&3<=a.G.getCurrentTime()&&2!==a.G.getPresentingPlayerType()};
sBa=function(a){var b=bM(a.G.tb());return b?a.i?b.hasNext():b.Xk():!1};
KO=function(a){var b={duration:null,preview:null,text:null,title:null,url:null},c=null!=a.playlist&&a.playlist.hasNext();c=g.cM(a.G)&&(!a.i||c);var d=a.i&&g.gM(a.G),e=sBa(a),f=a.i&&5===a.G.getPresentingPlayerType(),k=UM(a.G,"Next","SHIFT+n"),l=UM(a.G,"Previous","SHIFT+p");if(f)b.title="Start video";else if(a.u)b.title="Replay";else if(c){var m=null;a.playlist&&(m=g.nM(a.playlist,a.i?Aza(a.playlist):Bza(a.playlist)));if(m){if(m.videoId){var n=a.playlist.listId;b.url=a.G.T().getVideoUrl(m.videoId,n?
n.toString():void 0)}b.text=m.title;b.duration=m.lengthText?m.lengthText:m.lengthSeconds?g.$K(m.lengthSeconds):null;b.preview=m.Re("mqdefault.jpg")}b.title=a.i?k:l}else d&&(a.videoData&&a.videoData.suggestions&&a.videoData.suggestions.length&&(l=a.videoData.suggestions[0],b.url=l.Wk(),b.text=l.title,b.duration=l.lengthText?l.lengthText:l.lengthSeconds?g.$K(l.lengthSeconds):null,b.preview=l.Re("mqdefault.jpg")),b.title=k);b.disabled=!d&&!c&&!e&&!f;a.update(b);a.isLinkable=!!b.url;d||c||a.u||e||f?a.j||
(a.j=g.rN(a.tooltip,a.element),a.C=a.Pa("click",a.onClick,a)):a.j&&(a.j(),a.j=null,a.xc(a.C),a.C=null);RN(a.tooltip)};
MO=function(a,b){g.W.call(this,{D:"div",K:"ytp-fine-scrubbing",U:[{D:"div",K:"ytp-fine-scrubbing-thumbnails"},{D:"div",K:"ytp-fine-scrubbing-cursor"},{D:"div",K:"ytp-fine-scrubbing-seek-time",qa:"{{seekTime}}"},{D:"div",K:"ytp-fine-scrubbing-play",U:[lK()]},{D:"div",K:"ytp-fine-scrubbing-dismiss",U:[g.fK()]}]});this.api=a;this.C=b;this.Y=!1;this.j=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.ea=void 0;this.W=NaN;this.xa=this.N=this.u=this.B=0;this.i=[];this.isEnabled=this.J=!1;this.I=new g.xx(this.j,!0);this.I.subscribe("dragstart",this.ZI,this);this.I.subscribe("dragmove",this.YI,this);this.I.subscribe("dragend",this.XI,this);g.J(this,this.I)};
uBa=function(a){var b=a.api.fh();if(b){var c=a.Y?1.5:1,d=160*c,e=hF(b,160*c);if(b=b.levels[e]){if(!a.i.length){e=[];for(var f=iF(b,b.jp()),k=b.columns*b.rows,l=b.jp(),m=0;m<=f;m++)for(var n=l<k?Math.ceil(l/b.columns):b.rows,p=0;p<b.rows;p++){var r=l<b.columns?l:b.columns,t={url:kF(b,m),column:0,columns:r,row:p,rows:n,Qw:b.width*r,yq:b.height*n};e.push(t);l-=r;if(0>=l)break}a.i=e}for(;a.thumbnails.length>a.i.length;)e=void 0,null==(e=a.thumbnails.pop())||e.dispose();for(;a.thumbnails.length<a.i.length;)e=
new tBa,a.thumbnails.push(e),e.Ca(a.j),g.J(a,e);for(e=0;e<a.i.length;e++)f=a.thumbnails[e].element,k=a.i[e],k.yq*=c,wO(f,k,b.width,d,!0,void 0,d*b.columns),f.style.width=d*k.columns+"px",f.style.height=160*c+"px";NO(a,a.api.getCurrentTime());a.J=!0}}};
NO=function(a,b){var c=g.$K(b);a.update({seekTime:c});c=a.Y?1.5:1;c=a.j.offsetWidth||90*a.thumbnails.length*c;b=-(b/a.api.getDuration()*c)+a.C/2;a.B=b;g.xn(a.j,"transform","translateX("+a.B+"px)")};
tBa=function(){g.W.call(this,{D:"div",K:"ytp-fine-scrubbing-thumbnail"})};
vBa=function(a){g.W.call(this,{D:"div",K:"ytp-heat-map-chapter",U:[{D:"svg",K:"ytp-heat-map-svg",V:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},U:[{D:"defs",U:[{D:"clipPath",V:{id:"{{id}}"},U:[{D:"path",K:"ytp-heat-map-path",V:{d:"",fill:"white","fill-opacity":"0.6"}}]}]},{D:"rect",K:"ytp-heat-map-graph",V:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.2",height:"100%",width:"100%",x:"0",y:"0"}},{D:"rect",K:"ytp-heat-map-hover",V:{"clip-path":"url(#hm_1)",
height:"100%",x:"0",y:"0"}},{D:"rect",K:"ytp-heat-map-play",V:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}}]}]});this.api=a;this.I=this.Da("ytp-heat-map-svg");this.C=this.Da("ytp-heat-map-path");this.B=this.Da("ytp-heat-map-graph");this.u=this.Da("ytp-heat-map-play");this.j=this.Da("ytp-heat-map-hover");this.isValid=!1;this.i=60};
xBa=function(a,b,c,d){d=void 0===d?!1:d;b=new wBa(b||a,c||a);return{x:a.x+.2*((void 0===d?0:d)?-1*b.i:b.i),y:a.y+.2*((void 0===d?0:d)?-1*b.j:b.j)}};
wBa=function(a,b){this.j=this.i=0;this.i=b.x-a.x;this.j=b.y-a.y};
OO=function(){g.W.call(this,{D:"div",K:"ytp-chapter-hover-container",U:[{D:"div",K:"ytp-progress-bar-padding"},{D:"div",K:"ytp-progress-list",U:[{D:"div",Ga:["ytp-play-progress","ytp-swatch-background-color"]},{D:"div",K:"ytp-progress-linear-live-buffer"},{D:"div",K:"ytp-load-progress"},{D:"div",K:"ytp-hover-progress"},{D:"div",K:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.B=this.Da("ytp-progress-linear-live-buffer");this.u=this.Da("ytp-ad-progress-list");
this.C=this.Da("ytp-load-progress");this.I=this.Da("ytp-play-progress");this.j=this.Da("ytp-hover-progress");this.i=this.Da("ytp-chapter-hover-container")};
PO=function(a,b){g.xn(a.i,"width",b)};
QO=function(a,b){g.xn(a.i,"margin-right",b+"px")};
RO=function(a,b){return"PLAY_PROGRESS"===b?a.I:"LOAD_PROGRESS"===b?a.C:"LIVE_BUFFER"===b?a.B:a.j};
yBa=function(){this.u=this.position=this.B=this.i=this.C=this.j=this.width=NaN};
zBa=function(){g.W.call(this,{D:"div",K:"ytp-timed-marker"});this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0};
g.TO=function(a,b){g.YJ.call(this,{D:"div",K:"ytp-progress-bar-container",V:{"aria-disabled":"true"},U:[{D:"div",Ga:["ytp-heat-map-container"],U:[{D:"div",K:"ytp-heat-map-edu"}]},{D:"div",Ga:["ytp-progress-bar"],V:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},U:[{D:"div",K:"ytp-chapters-container"},{D:"div",K:"ytp-marker-crenellation-list"},{D:"div",K:"ytp-timed-markers-container"},
{D:"div",K:"ytp-clip-start-exclude"},{D:"div",K:"ytp-clip-end-exclude"},{D:"div",K:"ytp-scrubber-container",U:[{D:"div",Ga:["ytp-scrubber-button","ytp-swatch-background-color"],U:[{D:"div",K:"ytp-scrubber-pull-indicator"}]}]}]},{D:"div",V:{tabindex:"0"},Ga:["ytp-fine-scrubbing-container"]},{D:"div",K:"ytp-bound-time-left",qa:"{{boundTimeLeft}}"},{D:"div",K:"ytp-bound-time-right",qa:"{{boundTimeRight}}"},{D:"div",K:"ytp-clip-start",V:{title:"{{clipstarttitle}}"},qa:"{{clipstarticon}}"},{D:"div",K:"ytp-clip-end",
V:{title:"{{clipendtitle}}"},qa:"{{clipendicon}}"}]});this.api=a;this.qd=!1;this.C=this.ye=0;this.Wa=1;this.Mc=this.N=0;this.J=null;this.xa=this.Qb=0;this.Md=this.Da("ytp-marker-crenellation-list");this.Qa={};this.Jb={};this.clipEnd=Infinity;this.xb=this.Da("ytp-clip-end");this.lc=new g.xx(this.xb,!0);this.Ed=this.Da("ytp-clip-end-exclude");this.Rf=this.Da("ytp-clip-start-exclude");this.clipStart=0;this.Ab=this.Da("ytp-clip-start");this.pc=new g.xx(this.Ab,!0);this.Y=this.fb=0;this.Jc=this.Da("ytp-progress-bar");
this.kb={};this.hc=this.Da("ytp-chapters-container");this.Pe=this.Da("ytp-timed-markers-container");this.i=[];this.ya=[];this.Ie={};this.Ya=-1;this.jb=this.Ia=0;this.W=null;this.cd=this.Da("ytp-scrubber-button");this.Sf=this.Da("ytp-scrubber-container");this.Hb=new g.bh;this.me=new yBa;this.u=new dL(0,0);this.Nb=null;this.B=this.Sb=!1;this.oe=null;this.Ha=this.Da("ytp-fine-scrubbing-container");this.ea=this.Da("ytp-heat-map-container");this.qc=this.Da("ytp-heat-map-edu");this.I=[];this.wc=this.La=
!1;this.heatMarkersDecorations=[];this.j=void 0;this.tooltip=b.jc();g.Ue(this,g.rN(this.tooltip,this.xb));g.J(this,this.lc);this.lc.subscribe("hoverstart",this.jN,this);this.lc.subscribe("hoverend",this.iN,this);this.S(this.xb,"click",this.pB);g.Ue(this,g.rN(this.tooltip,this.Ab));g.J(this,this.pc);this.pc.subscribe("hoverstart",this.jN,this);this.pc.subscribe("hoverend",this.iN,this);this.S(this.Ab,"click",this.pB);ABa(this);this.S(a,"resize",this.yb);this.S(a,"presentingplayerstatechange",this.JQ);
this.S(a,"videodatachange",this.Vs);this.S(a,"videoplayerreset",this.zT);this.S(a,"cuerangesadded",this.AP);this.S(a,"cuerangesremoved",this.lY);this.S(a,"cuerangemarkersupdated",this.AP);this.S(a,"onLoopRangeChange",this.aJ);this.S(a,"innertubeCommand",this.onClickCommand);this.S(a,g.Ny("timedMarkerCueRange"),this.zX);this.updateVideoData(a.getVideoData(),!0);this.aJ(a.getLoopRange());SO(this)&&!this.j&&(this.j=new MO(this.api,this.C),this.j.Ca(this.Ha),g.J(this,this.j),this.S(this.j.dismissButton,
"click",this.eT),this.S(this.j.playButton,"click",this.zE),this.S(this.j.element,"dblclick",this.zE),this.S(this.Ha,"keydown",this.MV));this.api.Bb(this.ea,this,139609);this.api.Bb(this.qc,this,140127)};
ABa=function(a){if(0===a.i.length){var b=new OO;a.i.push(b);g.J(a,b);b.Ca(a.hc,0)}for(;1<a.i.length;)a.i.pop().dispose();PO(a.i[0],"100%");a.i[0].startTime=0;a.i[0].title=""};
BBa=function(a){for(;a.ya.length;)a.ya.pop().dispose()};
CBa=function(a){for(var b=a.i,c=[],d=0;d<b.length;d++)if(!isNaN(b[d].startTime)){var e=b[d].startTime;e=new g.Ly(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.Nd(c)};
VO=function(a,b){var c,d=null==(c=a.kb[b])?void 0:c.chapters;d&&(DBa(a,d),a.api.getVideoData().Nl=a.i,CBa(a));var e;if((c=null==(e=a.kb[b])?void 0:e.markers)&&"HEATSEEKER"!==b){BBa(a);e=g.q(c);for(c=e.next();!c.done;c=e.next())if(d=c.value,c=new zBa,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 k=f=void 0;c.onActiveCommand=null!=(k=null==(f=d)?void 0:f.onActiveCommand)?k:void 0;a.ya.push(c);
g.J(a,c);c.Ca(a.Pe,a.Pe.children.length)}EBa(a,a.ya);e=a.ya;c=a.Ie;d=[];for(f=0;f<e.length;f++)!isNaN(e[f].timeRangeStartMillis)&&e[f].onActiveCommand&&(k=e[f].timeRangeStartMillis,k=new g.Ly(k,f===e.length-1?Infinity:e[f+1].timeRangeStartMillis,{namespace:"timedMarkerCueRange",priority:9,id:"tm_"+k}),d.push(k),c[k.id]=e[f].onActiveCommand);a.api.Nd(d)}var l,m;b=null==(l=a.kb[b])?void 0:null==(m=l.heatmap)?void 0:m.heatmapRenderer;if(!a.api.L("web_heatseeker_counterfactual")&&b){l=b.heatMarkers||
[];var n;m=null!=(n=b.minHeightDp)?n:0;var p;n=null!=(p=b.maxHeightDp)?p:60;p=a.i.length;e=null;for(c=0;c<p;c++){f=a.i[c].startTime;k=c===p-1?Infinity:a.i[c+1].startTime;if(c===a.I.length){d=void 0;var r=a;d=void 0===d?NaN:d;var t=new vBa(r.api);r.I.push(t);g.J(r,t);t.Ca(r.ea);var w=t;r="hm_"+r.I.length;w.update({id:r});r="url(#"+r+")";w.B.setAttribute("clip-path",r);w.u.setAttribute("clip-path",r);w.j.setAttribute("clip-path",r);0<=d&&(t.element.style.width=d+"px")}d=[];e&&d.push(e);t=g.q(l);for(w=
t.next();!w.done;w=t.next()){w=w.value;var x=r=void 0,y=void 0,z=null!=(y=null==(r=w)?void 0:null==(x=r.heatMarkerRenderer)?void 0:x.timeRangeStartMillis)?y:-1;z>=f&&z<=k&&d.push(w)}0<n&&(a.ea.style.height=n+"px");f=a.I[c];t=0===c;t=void 0===t?!1:t;k=f;0<n&&(k.i=n,k.I.style.height=k.i+"px");k=f;t=void 0===t?!1:t;w=1E3/d.length;r=[];r.push({x:0,y:100});x=g.q(d.entries());for(y=x.next();!y.done;y=x.next()){z=g.q(y.value);y=z.next().value;z=z.next().value;var F=void 0;z=(null==(F=z.heatMarkerRenderer)?
void 0:F.heatMarkerIntensityScoreNormalized)||0;F=(y+.5)*w;z=100-g.Yg(100*z,m/k.i*100,n/k.i*100);0!==y||t||r.push({x:0,y:z});r.push({x:F,y:z});y===d.length-1&&r.push({x:1E3,y:z})}r.push({x:1E3,y:100});k=r;if(0===d.length)k="";else{t="";w=g.q(k.entries());for(r=w.next();!r.done;r=w.next())x=g.q(r.value),r=x.next().value,x=x.next().value,0===r?r="M "+x.x.toFixed(1)+","+x.y.toFixed(1):(y=xBa(k[r-1],k[r-2],x),r=xBa(x,k[r-1],k[r+1],!0),r=" C "+(y.x.toFixed(1)+","+y.y.toFixed(1)+" "+r.x.toFixed(1)+","+
r.y.toFixed(1)+" "+x.x.toFixed(1)+","+x.y.toFixed(1))),t+=r;k=t}f.C.setAttribute("d",k);f.isValid=""!==k;g.M(f.api.getRootNode(),"ytp-heat-map",f.isValid);g.M(f.api.getRootNode(),"ytp-heat-map-played_bar",f.api.L("web_player_heat_map_played_bar")&&""!==k);0<d.length&&(e=d[d.length-1])}g.UO(a);l=[];b=g.q(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.Sy(n):""});a.heatMarkersDecorations=l}};
EBa=function(a,b){b=g.q(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=FBa(a,c.timeRangeStartMillis/(1E3*a.u.i),WO(a));g.xn(c.element,"transform","translateX("+d+"px)")}};
DBa=function(a,b){var c=0,d=!1;b=g.q(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},k=e.title;f.title=k?g.Sy(k):"";k=e.timeRangeStartMillis;null!=k&&(f.startTime=k);f.onActiveCommand=e.onActiveCommand;e=f;0===c&&0!==e.startTime&&(a.i[c].startTime=0,a.i[c].title="",a.i[c].onActiveCommand=e.onActiveCommand,c++,d=!0);a.i.length<=c&&(f=new OO,a.i.push(f),g.J(a,f),f.Ca(a.hc,a.hc.children.length));a.i[c].startTime=
e.startTime;a.i[c].title=e.title?e.title:"";a.i[c].onActiveCommand=e.onActiveCommand;a.i[c].index=d?c-1:c}c++}for(;c<a.i.length;)a.i.pop().dispose();g.UO(a);XO(a)};
g.UO=function(a){a.Ia=a.i.length-1;a.jb=0;GBa(a,!0)&&GBa(a,!1);for(var b=0,c=0;c<a.i.length;c++)if(0===a.i[c].width){if(c===a.i.length-1)for(var d=a.i.length-1;0<=d;d--)if(0<a.i[d].width){QO(a.i[d],0);var e=Math.floor(a.i[d].width);a.i[d].width=e;PO(a.i[d],e+"px");break}a.i[c].width=0;PO(a.i[c],"0")}else c===a.i.length-1?(d=Math.floor(a.i[c].width+b),a.i[c].width=d,PO(a.i[c],d+"px")):(b=a.i[c].width+b,d=Math.round(b),b-=d,a.i[c].width=d,PO(a.i[c],d+"px"));c=0;if(a.I.length===a.i.length)for(b=0;b<
a.I.length;b++)d=a.i[b].width,a.I[b].element.style.width=d+"px",a.I[b].element.style.left=c+"px",c+=d+(a.B?3:2)};
GBa=function(a,b){var c=0,d=!1,e=a.i.length,f=1E3*a.u.i;0===f&&(f=1E3*a.api.getProgressState().seekableEnd);if(0<f&&0<a.C){for(var k=a.C-(a.B?3:2)*a.Ia,l=0===a.jb?3:k*a.jb,m=g.q(a.i),n=m.next();!n.done;n=m.next())n.value.width=0;for(;c<e;){m=f-a.i[c].startTime;c<e-1&&(m=a.i[c+1].startTime-a.i[c].startTime,QO(a.i[c],a.B?3:2));g.M(a.i[c].i,"ytp-exp-chapter-hover-container",1<a.i.length);n=(0===f?0:m/f*k)+a.i[c].width;if(n>l)a.i[c].width=n;else{a.i[c].width=0;var p=a,r=c,t=p.i[r-1];void 0!==t&&0<t.width?
t.width+=n:r<p.i.length-1&&(p.i[r+1].width+=n);QO(p.i[r],0);b&&(a.Ia--,m/f>a.jb&&(a.jb=m/f),d=!0)}c++}}return d};
XO=function(a){if(a.C){var b=a.api.getProgressState(),c=a.api.getVideoData();if(a.api.L("web_player_enable_preroll_for_ssdai_killswitch")||!c||!c.enableServerStitchedDai||!c.enablePreroll||isFinite(b.current)){var d;c=(null==(d=a.api.getVideoData())?0:cG(d))&&b.airingStart&&b.airingEnd?HBa(a,b.airingStart,b.airingEnd):HBa(a,b.seekableStart,b.seekableEnd);d=gL(c,b.loaded,0);b=gL(c,b.current,0);var e=a.u.j!==c.j||a.u.i!==c.i;a.u=c;YO(a,b,d);e&&ZO(a);IBa(a)}}};
HBa=function(a,b,c){var d=a.api.T().L("enable_fully_expanded_clip_range_in_progress_bar"),e=a.api.T().L("enable_expanded_clip_range_in_progress_bar");return $O(a)&&d?new dL(Math.max(b,a.Nb.startTimeMs/1E3),Math.min(c,a.Nb.endTimeMs/1E3)):$O(a)&&e?(d=a.Nb.startTimeMs/1E3,a=a.Nb.endTimeMs/1E3,e=(a-d)/20,new dL(Math.max(b,d-e),Math.min(c,a+e))):new dL(b,c)};
bP=function(a,b){var c=fL(a.u,b.u);if(1<a.i.length){c=aP(a,b.B,!0);for(var d=0,e=0;e<c;e++)0<a.i[e].width&&(d+=a.i[e].width,d+=a.B?3:2);c=(a.i[c].startTime+(b.B-d)/a.i[c].width*((c===a.i.length-1?1E3*a.u.i:a.i[c+1].startTime)-a.i[c].startTime))/1E3||0}return c};
JBa=function(a,b,c){return c>=a.i.length?!1:4>Math.abs(b-a.i[c].startTime/1E3)/a.u.i*(a.C-(a.B?3:2)*a.Ia)};
KBa=function(a,b,c,d){b=g.Yg(b,0,a.B?60:40);a.N=b;var e=a.Wa;a.Wa=b/(a.B?60:40)*(Math.max(eL(a.u)/a.C,1)-1)+1;b=a.C*a.Wa;a.xa=g.Yg(d*b-c,0,b-a.C);e!==a.Wa&&ZO(a)};
ZO=function(a){if(1!==a.i.length||SO(a))a.cd.style.removeProperty("height");else{var b=WO(a),c=-b.j/b.i,d=(-b.j+b.width)/b.i,e=sba(a.Md),f=0;if(a.N>.2*(a.B?60:40))for(var k=eL(a.u)/60*d,l=Math.ceil(eL(a.u)/60*c);l<k;l++){var m=e[f];m||(m=g.Nh("DIV"),a.Md.appendChild(m));f++;0===l%60?g.mr(m,"ytp-60m-progress"):0===l%30?g.mr(m,"ytp-30m-progress"):0===l%15?g.mr(m,"ytp-15m-progress"):g.mr(m,"ytp-1m-progress");m.style.left=(60*l/eL(a.u)-c)*b.i+"px"}b=a.Sb?a.u.i:0;a.update({boundTimeLeft:g.$K(fL(a.u,c)-
b),boundTimeRight:g.$K(fL(a.u,d)-b)});for(c=e.length-1;c>=f;c--)g.Rh(e[c]);a.element.style.height=a.N+(a.B?8:5)+"px";a.Z("height-change",a.N);a.cd.style.height=a.N+(a.B?20:13)+"px"}e=g.q(Object.keys(a.Qa));for(f=e.next();!f.done;f=e.next())LBa(a,f.value);cP(a);YO(a,a.Y,a.fb)};
WO=function(a){var b=a.Hb.x,c=a.C*a.Wa;b=g.Yg(b,0,a.C);a.me.update(b,a.C,-a.xa,-(c-a.xa-a.C));return a.me};
dP=function(a){return(a.B?135:90)-(a.B?54:48)};
YO=function(a,b,c){a.Y=b;a.fb=c;var d=WO(a),e=a.u.i,f=fL(a.u,a.Y),k=g.kH("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.$K(f,!0),DURATION:g.$K(e,!0)}),l=VN(a.i,1E3*f);l=a.i[l].title;a.update({ariamin:Math.floor(a.u.j),ariamax:Math.floor(e),arianow:Math.floor(f),arianowtext:l?l+" "+k:k});e=a.clipStart;f=a.clipEnd;a.Nb&&2!==a.api.getPresentingPlayerType()&&(e=a.Nb.startTimeMs/1E3,f=a.Nb.endTimeMs/1E3);e=gL(a.u,e,0);l=gL(a.u,f,1);k=a.api.getVideoData();f=g.Yg(b,e,l);c=(null==k?0:g.$F(k))?1:g.Yg(c,e,
l);b=FBa(a,b,d);g.xn(a.Sf,"transform","translateX("+b+"px)");eP(a,d,e,f,"PLAY_PROGRESS");(null==k?0:cG(k))?(b=a.api.getProgressState().seekableEnd)&&eP(a,d,f,gL(a.u,b),"LIVE_BUFFER"):eP(a,d,e,c,"LOAD_PROGRESS");if(a.api.L("web_player_heat_map_played_bar")){var m;null!=(m=a.I[0])&&m.u.setAttribute("width",(100*f).toFixed(2)+"%")}};
eP=function(a,b,c,d,e){var f=a.i.length,k=b.i-a.Ia*(a.B?3:2),l=c*k;c=aP(a,l);var m=d*k;k=aP(a,m);"HOVER_PROGRESS"===e&&(k=aP(a,b.i*d,!0),m=b.i*d-MBa(a,b.i*d)*(a.B?3:2));b=Math.max(l-NBa(a,c),0);for(d=c;d<f;d++)RO(a.i[d],e).style.left=c===d?b+"px":"0";for(f=c;f<k;f++)d=a.i[f].width,fP(a,RO(a.i[f],e),f===c?d-b:d,d);f=a.i[k].width;m=g.Yg(m-NBa(a,k),0,f);c===k&&(m-=b);fP(a,RO(a.i[k],e),m,f);m=a.i.length;for(k+=1;k<m;k++)fP(a,RO(a.i[k],e),0,a.i[k].width);for(k=0;k<c;k++)fP(a,RO(a.i[k],e),0,a.i[k].width)};
NBa=function(a,b){if(b>=a.i.length)return a.C;for(var c=0,d=0;d<b;)c+=a.i[d].width,d++;return c};
fP=function(a,b,c,d,e){e||a.api.T().isMobile?b.style.width=c+"px":g.xn(b,"transform","scalex("+(d?c/d:0)+")")};
aP=function(a,b,c){var d=0;(void 0===c?0:c)&&(b-=MBa(a,b)*(a.B?3:2));c=g.q(a.i);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.i.length?d-1:d};
FBa=function(a,b,c){for(var d=b*a.u.i*1E3,e=-1,f=g.q(a.i),k=f.next();!k.done;k=f.next())k=k.value,d>k.startTime&&0<k.width&&e++;return b*(c.i-(a.B?3:2)*a.Ia)+(a.B?3:2)*(0>e?0:e)+c.j};
MBa=function(a,b){for(var c=a.i.length,d=0,e=g.q(a.i),f=e.next();!f.done;f=e.next())if(f=f.value,0!==f.width)if(b>f.width)b-=f.width,b-=a.B?3:2,d++;else break;return d===c?c-1:d};
g.gP=function(a,b,c,d){var e=a.C!==c,f=a.B!==d;a.ye=b;a.C=c;a.B=d;SO(a)&&null!=(b=a.j)&&(b.Y=d);ZO(a);1===a.i.length&&(a.i[0].width=c||0);e&&g.UO(a);a.j&&(a.j.C=a.C,f&&a.j.isEnabled&&(c=a.B?135:90,d=c-(a.B?54:48),a.Ha.style.height=c+"px",a.ea.style.bottom=d+"px",a.Jc.style.bottom=d+"px",uBa(a.j)))};
cP=function(a){var b=!!a.Nb&&2!==a.api.getPresentingPlayerType(),c=a.clipStart,d=a.clipEnd,e=!0,f=!0;b&&a.Nb?(c=a.Nb.startTimeMs/1E3,d=a.Nb.endTimeMs/1E3):(e=c>a.u.j,f=0<a.u.i&&d<a.u.i);var k;(null==(k=a.Nb)?0:k.postId)&&a.api.T().L("enable_fully_expanded_clip_range_in_progress_bar")&&(f=e=!1);g.M(a.element,"ytp-loop-range-enabled",b);g.M(a.element,"ytp-clip-start-enabled",e);g.M(a.element,"ytp-clip-end-enabled",f);b=e?gL(a.u,c,0):0;d=f?gL(a.u,d,1):1;a.Ab.style.left=Math.round(1E3*b)/10+"%";a.xb.style.left=
Math.round(1E3*d)/10+"%";a.Rf.style.width=Math.round(1E3*b)/10+"%";a.Ed.style.left=Math.round(1E3*d)/10+"%";a.Ed.style.width=Math.round(1E3*(1-d))/10+"%"};
IBa=function(a){var b;if(null==(b=a.api.getVideoData())||!cG(b)){b=WO(a);eP(a,b,a.Y,Math.max(b.u,a.Y),"HOVER_PROGRESS");for(var c=aP(a,b.i*a.Y,!0),d=aP(a,b.B,!0),e=c;e<=d;e++)g.M(a.i[e].j,"ytp-hover-progress-light",b.u>a.Y);g.M(a.cd,"ytp-scrubber-button-hover",c===d&&1<a.i.length);if(a.api.L("web_player_heat_map_played_bar")){var f;null!=(f=a.I[0])&&f.j.setAttribute("width",(100*b.u).toFixed(2)+"%")}}};
LBa=function(a,b){var c=a.Qa[b];b=a.Jb[b];var d=WO(a),e=gL(a.u,c.start/1E3,0),f=Joa(c,a.B)/d.width;var k=gL(a.u,c.end/1E3,1);f!==Number.POSITIVE_INFINITY&&(e=g.Yg(e,0,k-f));k=Math.min(k,e+f);c.color&&(b.style.background=c.color);c=e;e=!0;b.style.left=Math.max(c*d.i+d.j,0)+"px";fP(a,b,g.Yg((k-c)*d.i+d.j,0,d.width),d.width,void 0===e?!1:e)};
OBa=function(a,b){var c=b.getId();a.Qa[c]===b&&(g.Rh(a.Jb[c]),delete a.Qa[c],delete a.Jb[c])};
SO=function(a){return a.api.T().L("web_player_fine_scrubbing")};
hP=function(a){a.j&&(a.j.disable(),a.N=0,a.ea.style.removeProperty("bottom"),a.Jc.style.removeProperty("bottom"),a.Ha.style.removeProperty("height"),a.element.parentElement&&a.element.parentElement.style.removeProperty("height"))};
PBa=function(a,b){var c=b/dP(a)*(a.B?54:48);a.Jc.style.bottom=b+"px";a.Ha.style.height=b+c+"px";a.Ha.style.bottom=-c+"px";a.element.parentElement&&(a.element.parentElement.style.height=(a.B?54:48)-c+"px")};
QBa=function(a,b){b?a.W||(a.element.removeAttribute("aria-disabled"),a.W=new g.xx(a.Jc,!0),a.W.subscribe("hovermove",a.DW,a),a.W.subscribe("hoverend",a.BW,a),a.W.subscribe("dragstart",a.zW,a),a.W.subscribe("dragmove",a.FW,a),a.W.subscribe("dragend",a.EW,a),a.oe=a.Pa("keydown",a.KQ)):a.W&&(a.element.setAttribute("aria-disabled","true"),a.xc(a.oe),a.W.cancel(),a.W.dispose(),a.W=null)};
g.RBa=function(a){var b=2*a.C*g.sE();return 1E3*eL(a.u)/a.api.getPlaybackRate()/b};
$O=function(a){var b;return!(null==(b=a.Nb)||!b.postId)&&2!==a.api.getPresentingPlayerType()};
iP=function(a,b,c){g.W.call(this,{D:"button",Ga:["ytp-remote-button","ytp-button"],V:{title:"Play on TV","aria-haspopup":"true"},qa:"{{icon}}"});this.G=a;this.qb=c;this.i=null;this.S(a,"onMdxReceiversChange",this.Ja);this.S(a,"presentingplayerstatechange",this.Ja);this.S(a,"appresize",this.Ja);a.Bb(this.element,this,139118);this.Ja();this.Pa("click",this.j,this);g.Ue(this,g.rN(b.jc(),this.element))};
jP=function(a,b){g.W.call(this,{D:"button",Ga:["ytp-button","ytp-screen-mode-button"],V:{"aria-haspopup":"true","aria-owns":TJ(),title:"Viewing options","data-tooltip-target-id":"ytp-screen-mode-button"},U:[{D:"svg",V:{viewBox:"0 0 36 36"},U:[{D:"path",Fb:!0,V:{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.j=!0;this.qb=null;this.Pa("click",this.u);this.S(a,"appresize",this.i);g.Ue(this,g.rN(b.jc(),this.element));this.i(a.bb().getPlayerSize())};
kP=function(a,b,c,d,e){g.yN.call(this,g.zN(),a,b);this.qb=d;this.i=!1;this.j=null;e&&(this.j=new g.W({D:"div",U:[{D:"span",qa:"{{title}}"},{D:"span",K:"ytp-menuitem-keyboard-shortcut",qa:e}]}),this.Ff(this.j),this.j.Ma("title",b),g.J(this,this.j));this.Pa("click",this.onClick)};
lP=function(a,b){b&&!a.i?(a.qb.zc(a),a.i=!0):!b&&a.i&&(a.qb.hf(a),a.i=!1)};
mP=function(a,b){kP.call(this,9,"Miniplayer",a,b,"(i)");this.G=a;AN(this,{D:"svg",V:{height:"24",version:"1.1",viewBox:"6 6 24 24",width:"24"},U:[{D:"path",Fb:!0,V:{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.S(a,"fullscreentoggled",this.Ja);a.Bb(this.element,this,62946);this.Ja()};
nP=function(a,b,c){kP.call(this,11,"Connect to a device",a,b);this.G=a;this.B=c;this.u=null;this.S(a,"onMdxReceiversChange",this.Ja);this.S(a,"presentingplayerstatechange",this.Ja);this.S(a,"appresize",this.Ja);a.Bb(this.element,this,139118);this.Ja()};
oP=function(a,b){kP.call(this,10,"Theater mode",a,b,"(t)");this.G=a;this.isWidescreen=null;this.S(a,"sizestylechange",this.Ja);this.S(a,"fullscreentoggled",this.Ja);this.S(a,"presentingplayerstatechange",this.Ja);a.Bb(this.element,this,139116);this.Ja()};
pP=function(a,b,c){g.LN.call(this,a,"ytp-screen-mode-menu");this.settingsMenu=b;this.Pm=c;this.Vc=new g.CN(this.G);this.NB=0;g.J(this,this.Vc);this.S(a,"minimized",this.hide);this.S(a,"sizestylechange",this.hide);this.S(a,"fullscreentoggled",this.hide);this.hide();g.JN(this,this.Vc);this.Pm=c;this.element.id=c.element.getAttribute("aria-owns");a=this.G.T();a.fb&&(b=new nP(this.G,this,this.settingsMenu),g.J(this,b),this.NB++);a.kb||(b=new oP(this.G,this),g.J(this,b),this.NB++);a.showMiniplayerButton&&
(a=new mP(this.G,this),g.J(this,a),this.NB++)};
qP=function(a,b,c){g.W.call(this,{D:"button",Ga:["ytp-button","ytp-settings-button"],V:{"aria-haspopup":"true","aria-owns":TJ(),title:"Settings","data-tooltip-target-id":"ytp-settings-button"},U:[g.nK()]});this.G=a;this.qb=c;this.j=!0;this.Pa("click",this.u);this.S(a,"onPlaybackQualityChange",this.updateBadge);this.S(a,"videodatachange",this.updateBadge);this.S(a,"webglsettingschanged",this.updateBadge);this.S(a,"appresize",this.i);g.Ue(this,g.rN(b.jc(),this.element));this.G.Bb(this.element,this,
28663);this.updateBadge();this.i(a.bb().getPlayerSize())};
rP=function(a,b){a.j=!!b;a.i(a.G.bb().getPlayerSize())};
sP=function(a,b){GN.call(this,"Annotations",6);this.G=a;this.qb=b;this.i=!1;a.L("web_settings_menu_icons")&&AN(this,{D:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{D:"path",V:{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.S(a,"videodatachange",this.Ja);this.S(a,"onApiChange",this.Ja);this.subscribe("select",this.j,this);this.Ja()};
g.tP=function(a,b,c,d,e,f,k){g.yN.call(this,g.zN({"aria-haspopup":"true"}),b,a);this.qb=d;this.B=!1;this.j=null;this.options={};this.u=new g.CN(c,void 0,a,e,f,k);g.J(this,this.u);this.Pa("keydown",this.LQ);this.Pa("click",this.open)};
SBa=function(a){if(a.j){var b=a.options[a.j];b.element.getAttribute("aria-checked");b.element.removeAttribute("aria-checked");a.j=null}};
g.uP=function(a,b){g.DN(a.u);for(var c={},d=!1,e=0;e<b.length;e++){var f=b[e],k=a.options[f],l=f===a.j;l&&(d=!0);k&&k.priority===-e?(l=a,l.options[f].Ff(l.vj(f,!0)),delete a.options[f]):k=a.MD(f,-e,l);c[f]=k;a.u.zc(k,!0)}d||(a.j=null);b=g.q(Object.keys(a.options));for(d=b.next();!d.done;d=b.next())a.options[d.value].dispose();a.options=c};
vP=function(a,b){g.tP.call(this,"Audio track",3,a,b);this.G=a;this.tracks={};this.i=new g.W({D:"div",U:[{D:"span",qa:"Audio track"},{D:"span",K:"ytp-menuitem-label-count",qa:"{{content}}"}]});a.L("web_settings_menu_icons")&&AN(this,{D:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{D:"path",V:{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.J(this,this.i);this.Ff(this.i);this.S(a,"videodatachange",this.Ja);this.S(a,"onPlaybackAudioChange",this.Ja);this.Ja()};
wP=function(a,b){GN.call(this,"Autoplay",7);this.G=a;this.qb=b;this.i=!1;this.u=[];this.S(a,"presentingplayerstatechange",this.j);this.subscribe("select",this.C,this);a.Bb(this.element,this,113682);this.j()};
xP=function(a,b,c,d){d=new g.W({D:"div",Ga:["ytp-linked-account-popup-button"],qa:d,V:{role:"button",tabindex:"0"}});b=new g.W({D:"div",K:"ytp-linked-account-popup",V:{role:"dialog","aria-modal":"true",tabindex:"-1"},U:[{D:"div",K:"ytp-linked-account-popup-title",qa:b},{D:"div",K:"ytp-linked-account-popup-description",qa:c},{D:"div",K:"ytp-linked-account-popup-buttons",U:[d]}]});g.cN.call(this,a,{D:"div",K:"ytp-linked-account-popup-container",U:[b]},100);var e=this;this.dialog=b;g.J(this,this.dialog);
d.Pa("click",function(){e.Db()});
g.J(this,d);g.fM(this.G,this.element,4);this.hide()};
yP=function(a,b){g.yN.call(this,g.zN({"aria-haspopup":"true"}),1);this.G=a;this.qb=b;this.j=this.i=!1;this.S(this.G,"videodatachange",this.B);this.Pa("click",this.onClick);this.B()};
zP=function(a){return a?g.Sy(a):""};
AP=function(a,b,c){g.W.call(this,{D:"div",K:"ytp-screen-mode-settings-option",U:[{D:"div",K:"ytp-screen-mode-settings-label",qa:"{{label}}"}]});this.qb=c;this.Pm=new g.YJ({D:"button",K:"ytp-screen-mode-settings-button",qa:"{{icon}}",V:{title:"{{title}}"}});this.Pm.Ca(this.element,0);g.J(this,this.Pm);this.Pm.Ma("icon",a);this.Ff(b);this.Pa("click",this.onClick)};
BP=function(a,b,c){AP.call(this,kK(),UM(b,"Miniplayer","i"),c);this.G=b;a.addButton(this);this.S(b,"fullscreentoggled",this.Ja);b.Bb(this.element,this,62946);this.Ja()};
CP=function(a,b){g.tP.call(this,"Quality",2,a,b);this.G=a;this.C={};this.i="unknown";a.L("web_settings_menu_icons")&&AN(this,{D:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{D:"path",V:{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.L(this.u.element,"ytp-quality-menu");this.S(a,"videodatachange",this.Uu);this.S(a,"videoplayerreset",this.Uu);this.S(a,"onPlaybackQualityChange",
this.bJ);this.Uu();a.Bb(this.element,this,137721)};
TBa=function(a,b,c){a=a.C[b];var d=g.Kz[b];c={D:"span",Ga:c,U:[a?a.qualityLabel:d?d+"p":"Auto"]};var e;"highres"===b?e="8K":"hd2880"===b?e="5K":"hd2160"===b?e="4K":0===b.indexOf("hd")&&"hd720"!==b&&(e="HD");e&&(c.U.push(" "),c.U.push({D:"sup",K:"ytp-swatch-color",qa:e}));return c};
DP=function(a,b,c){AP.call(this,aK(),"Connect to a device",c);this.G=b;this.i=null;a.addButton(this);this.S(b,"onMdxReceiversChange",this.Ja);this.S(b,"presentingplayerstatechange",this.Ja);this.S(b,"appresize",this.Ja);b.Bb(this.element,this,139118);this.Pa("click",this.onClick);this.Ja()};
EP=function(a,b){g.YJ.call(this,{D:"div",K:"ytp-screen-mode-menu-item"});this.G=a;this.qb=b};
FP=function(a,b,c){AP.call(this,oK(),UM(b,"Theater mode","t"),c);this.G=b;this.isWidescreen=null;a.addButton(this);this.S(b,"sizestylechange",this.Ja);this.S(b,"fullscreentoggled",this.Ja);this.S(b,"presentingplayerstatechange",this.Ja);b.Bb(this.element,this,139116);this.Ja()};
GP=function(a,b,c,d,e,f,k){g.W.call(this,{D:"div",K:"ytp-slider-section",V:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},U:[{D:"div",K:"ytp-slider",U:[{D:"div",K:"ytp-slider-handle"}]}]});this.I=a;this.C=b;this.minimumValue=c;this.maximumValue=d;this.J=e;this.Y=f;this.range=this.maximumValue-this.minimumValue;this.ea=this.Da("ytp-slider-section");this.j=this.Da("ytp-slider");this.N=this.Da("ytp-slider-handle");
this.B=new g.xx(this.j,!0);this.i=k?k:c;g.J(this,this.B);this.B.subscribe("dragmove",this.NQ,this);this.S(this.element,"keydown",this.OQ);this.S(this.element,"wheel",this.MQ);this.init()};
IP=function(a){GP.call(this,.05,.05,a.getAvailablePlaybackRates()[0],a.getAvailablePlaybackRates()[a.getAvailablePlaybackRates().length-1],150,20,a.getPlaybackRate());this.G=a;this.u=g.Nh("P");this.xa=Zaa(this.W,this);g.L(this.j,"ytp-speedslider");g.L(this.u,"ytp-speedslider-text");a=this.u;var b=this.j;b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling);HP(this);this.S(this.G,"onPlaybackRateChange",this.ya)};
HP=function(a){a.u.textContent=JP(a,a.i)+"x"};
JP=function(a,b){a=Number(g.Yg(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))};
KP=function(a){g.YJ.call(this,{D:"div",K:"ytp-speedslider-component"});this.i=new IP(a);g.J(this,this.i);this.element.appendChild(this.i.element)};
UBa=function(a){var b=new KP(a);BN.call(this,a,b,"Custom");g.J(this,b)};
LP=function(a,b){var c=new UBa(a);g.tP.call(this,"Playback speed",5,a,b,"Custom",function(){g.JN(b,c)});
a.L("web_settings_menu_icons")&&AN(this,{D:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{D:"path",V:{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.J(this,c);this.G=a;this.C=this.i=this.J=null;this.I=this.G.getAvailablePlaybackRates();this.S(a,"presentingplayerstatechange",this.Ja);this.Ja()};
VBa=function(a,b){var c=MP(b);a.options[c]?a.Zh(c):b===a.C&&a.i&&(a.Zh(a.i),a.zd(b.toString()))};
XBa=function(a){g.uP(a,a.I.map(MP));a.i=null;a.C=null;var b=a.G.getPlaybackRate();a.I.includes(b)||(WBa(a,b),g.tP.prototype.If.call(a,a.i))};
WBa=function(a,b){a.C=b;a.i=g.kH("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:b.toString()});b=a.I.map(MP);b.unshift(a.i);g.uP(a,b)};
MP=function(a){return a.toString()};
NP=function(a,b,c,d){var e=new g.CN(b,void 0,"Video Override");g.tP.call(this,d.text||"",a,b,c,"Video Override",function(){g.JN(c,e)});
var f=this;g.L(this.element,"ytp-subtitles-options-menu-item");this.setting=d.option.toString();a=d.options;this.settings=g.vc(a,this.getKey,this);this.I=e;g.J(this,this.I);b=new g.yN({D:"div",K:"ytp-menuitemtitle",qa:"Allow for a different caption style if specified by the video."},0);g.J(this,b);this.I.zc(b,!0);this.C=new g.yN({D:"div",K:"ytp-menuitem",V:{role:"menuitemradio",tabindex:"0"},U:[{D:"div",K:"ytp-menuitem-label",qa:"On"}]},-1);g.J(this,this.C);this.I.zc(this.C,!0);this.S(this.C.element,
"click",function(){YBa(f,!0)});
this.i=new g.yN({D:"div",K:"ytp-menuitem",V:{role:"menuitemradio",tabindex:"0"},U:[{D:"div",K:"ytp-menuitem-label",qa:"Off"}]},-2);g.J(this,this.i);this.I.zc(this.i,!0);this.S(this.i.element,"click",function(){YBa(f,!1)});
g.uP(this,g.po(a,this.getKey))};
YBa=function(a,b){a.Z("settingChange",a.setting+"Override",!b);a.qb.rh()};
OP=function(a,b){g.CN.call(this,a,void 0,"Options");var c=this;this.Eo={};for(var d=0;d<g.YN.length;d++){var e=g.YN[d],f=new NP(-d,a,b,e);g.J(this,f);f.subscribe("settingChange",this.oh,this);this.Eo[e.option.toString()]=f;this.zc(f,!0)}a=new g.yN(g.zN(),-g.YN.length,"Reset");g.J(this,a);a.Pa("click",function(){c.oh("reset",!0)});
this.zc(a,!0)};
PP=function(a,b){g.tP.call(this,"Auto-translate",0,a,b);this.G=a;this.languages={};a.Bb(this.element,this,127301);a.Za(this.element,!0)};
ZBa=function(a,b){a.languages=g.vc(b,a.getKey,a);g.uP(a,g.po(b,a.getKey))};
QP=function(a,b){var c=new OP(a,b),d=["This setting only applies to the current video. Adjust caption visibility in "," for all videos."],e;g.xE(a.T())&&(e={D:"div",K:"ytp-panel-footer-content",U:[{D:"span",qa:d[0]},{D:"a",K:"ytp-panel-footer-content-link",qa:"Settings",V:{href:"/account_playback"}},{D:"span",qa:d[1]}]});g.tP.call(this,"Subtitles/CC",4,a,b,"Options",function(){g.JN(b,c)},e);
var f=this;this.G=a;this.qb=b;this.tracks={};this.I=new g.K(function(){$Ba(f,!1)},3E3);
g.J(this,this.I);this.J=new g.W({D:"div",U:[{D:"span",qa:"Subtitles/CC"},{D:"span",K:"ytp-menuitem-label-count",qa:"{{content}}"}]});g.J(this,this.J);this.Ff(this.J);a.L("web_settings_menu_icons")&&AN(this,{D:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{D:"path",V:{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.i=new PP(a,b);g.J(this,this.i);this.i.subscribe("select",this.PQ,this);this.C=c;g.J(this,this.C);this.C.subscribe("settingChange",this.oh,this);b.subscribe("show",this.hX,this);this.S(a,"videodatachange",this.Ja);this.S(a,"onApiChange",this.Ja);this.S(a,"onCaptionsTrackListChanged",this.Ja);this.S(a,"captionschanged",this.Ja);a.Bb(this.element,this,127300);this.Ja()};
$Ba=function(a,b){a.G.setOption("captions","sampleSubtitles",b)};
RP=function(a){g.LN.call(this,a,"ytp-settings-menu");var b=this;this.Vc=new g.CN(this.G);this.FF=this.settingsButton=null;this.OB=0;this.isInitialized=!1;g.J(this,this.Vc);this.hide();g.JN(this,this.Vc);var c=this.G.T();if(c.L("web_screen_mode_menu_b")){var d=new EP(this.G,this);g.J(this,d);if(!c.kb){var e=new FP(d,this.G,this);g.J(this,e);this.OB++}c.showMiniplayerButton&&!c.L("web_player_pip")&&(e=new BP(d,this.G,this),g.J(this,e));c.fb&&(c=new DP(d,this.G,this),g.J(this,c),this.OB++);1<this.OB&&
GAa(this.Vc,d)}a.Bb(this.element,this,108341,!0);this.subscribe("show",function(f){b.Me(f)})};
aCa=function(a,b){a.settingsButton=b;a.element.id=b.element.getAttribute("aria-owns")};
SP=function(a,b){g.W.call(this,{D:"button",Ga:["ytp-size-button","ytp-button"],V:{title:"{{title}}"},qa:"{{icon}}"});this.G=a;this.isWidescreen=null;this.transition=new FO;this.tooltip=b.jc();g.J(this,this.transition);this.S(a,"sizestylechange",this.Ja);this.S(a,"fullscreentoggled",this.Ja);this.S(a,"presentingplayerstatechange",this.Ja);a.Bb(this.element,this,139116);this.Ja();this.Pa("click",this.onClick);g.Ue(this,g.rN(this.tooltip,this.element))};
g.TP=function(a,b){g.W.call(this,{D:"button",Ga:["ytp-subtitles-button","ytp-button"],V:{"aria-pressed":"{{pressed}}",title:"{{title}}"},U:[hAa()]});this.G=a;this.tooltip=b.jc();this.S(a,"videodatachange",this.Ja);this.S(a,"appresize",this.Ja);this.S(a,"promotooltipacceptbuttonclicked",this.i);this.S(a,"onApiChange",this.Ja);this.S(a,"onCaptionsTrackListChanged",this.Ja);this.S(a,"captionschanged",this.Ja);this.G.Bb(this.element,this,127299);this.Ja();this.Pa("click",this.onClick);g.Ue(this,g.rN(b.jc(),
this.element))};
g.VP=function(a,b,c){c=void 0===c?350:c;g.W.call(this,{D:"div",Ga:["ytp-time-display","notranslate"],U:[{D:"span",K:"ytp-time-clip-icon",qa:"{{clipicon}}"},{D:"span",U:[{D:"span",K:"ytp-time-current",qa:"{{currenttime}}"},{D:"span",K:"ytp-time-separator",qa:" / "},{D:"span",K:"ytp-time-duration",qa:"{{duration}}"}]},{D:"span",K:"ytp-clip-watch-full-video-button-separator",qa:"\u2022"},{D:"span",K:"ytp-clip-watch-full-video-button",qa:"{{watchfullvideo}}"}]});this.api=a;this.J=c;this.liveBadge=new g.W({D:"button",
Ga:["ytp-live-badge","ytp-button"],V:{disabled:"true"},qa:"{{content}}"});this.i=null;this.isLiveVideo=this.j=!1;this.I=this.C=null;this.isPremiere=!1;this.Nb=this.B=this.u=null;this.N=this.Da("ytp-clip-watch-full-video-button");this.liveBadge.zd("Live");g.J(this,this.liveBadge);this.liveBadge.Ca(this.element);this.tooltip=b.jc();this.Pa("click",this.onClick);this.S(this.N,"click",this.PX);this.S(a,"presentingplayerstatechange",this.Rb);this.S(a,"appresize",this.Rb);this.S(a,"onLoopRangeChange",this.onLoopRangeChange);
this.S(a,"videodatachange",this.onVideoDataChange);(b=a.getVideoData())&&this.updateVideoData(b);this.Rb();a=a.getLoopRange();b=this.Nb!==a;this.Nb=a;b&&UP(this)};
UP=function(a){a.api.T().L("enable_fully_expanded_clip_range_in_progress_bar")&&(a.Ma("clipicon",{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},U:[{D:"path",V:{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.j?a.Ma("watchfullvideo","Watch live stream"):a.Ma("watchfullvideo","Watch full video"),g.M(a.element,"ytp-clip",WP(a)),g.M(a.element,"ytp-live",XP(a)))};
XP=function(a){var b=WP(a)&&a.api.T().L("enable_fully_expanded_clip_range_in_progress_bar");return a.isLiveVideo&&!a.j&&!b};
WP=function(a){return!!a.Nb&&!!a.Nb.postId&&2!==a.api.getPresentingPlayerType()};
$P=function(a,b,c){g.W.call(this,{D:"div",K:"ytp-volume-panel",V:{role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},U:[{D:"div",K:"ytp-volume-slider",U:[{D:"div",K:"ytp-volume-slider-handle"}]}]});var d=this;this.api=a;this.i=b;this.J=c;this.Ei=!1;this.W=this.volume=0;this.I=null;this.u=this.j=this.isDragging=!1;this.i=b;this.J=c;this.B=b.Ye();this.N=this.Da("ytp-volume-slider");this.Y=this.Da("ytp-volume-slider-handle");
this.C=new g.xx(this.N,!0);g.J(this,this.C);this.C.subscribe("dragstart",this.mX,this);this.C.subscribe("dragmove",this.RQ,this);this.C.subscribe("dragend",this.lX,this);this.S(a,"onVolumeChange",this.onVolumeChange);this.S(a,"appresize",this.cJ);this.S(a,"fullscreentoggled",this.Jm);this.S(a,"onShowControls",this.FK);this.S(a,"onHideControls",this.FK);this.S(this.element,"keydown",this.SQ);this.S(this.element,"focus",function(){YP(d,d.j,d.isDragging,!0,d.i.Ei())});
this.S(this.element,"blur",function(){YP(d,d.j,d.isDragging,!1,d.i.Ei())});
this.cJ(a.bb().getPlayerSize());ZP(this,a.getVolume(),a.isMuted())};
ZP=function(a,b,c){var d=Math.floor(b),e=d+"% volume"+(c?" muted":"");c=c?0:b/100;a.Ma("valuenow",d);a.Ma("valuetext",e);a.Y.style.left=(a.B?60:40)*c+"px";a.volume=b};
bCa=function(a,b){g.M(a.element,"ytp-volume-control-hover",b);YP(a,b,a.isDragging,a.u,a.i.Ei())};
YP=function(a,b,c,d,e){var f=a.j||a.isDragging||a.u||a.Ei;a.j=b;a.isDragging=c;a.u=d;a.Ei=e;b=a.j||a.isDragging||a.u||a.Ei;f!==b&&(b?a.I=a.S(a.element,"wheel",a.QQ):(a.xc(a.I),a.I=null),g.M(a.J,"ytp-volume-slider-active",b))};
g.aQ=function(a,b){var c=a.T(),d=g.pE(c);0===d.indexOf("www.")&&(d=d.substring(4));var e=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];g.gE(c)&&e.push("ytp-youtube-music-button");g.W.call(this,{D:"a",Ga:e,V:{href:"{{url}}",target:c.I,title:g.kH("Watch on $WEBSITE",{WEBSITE:d}),"data-sessionlink":"feature=player-button"},qa:"{{logoSvg}}"});this.api=a;this.visible=!1;a.Bb(this.element,this,28666);this.Pa("click",this.onClick);this.S(a,"videodatachange",this.onVideoDataChange);this.S(a,"onLoopRangeChange",
this.onVideoDataChange);this.S(a,"appresize",this.yb);this.onVideoDataChange();g.Ue(this,g.rN(b.jc(),this.element));this.yb()};
bQ=function(a,b,c){g.sC.call(this);var d=this;this.G=a;this.u=b;this.Fd=c;this.La=NaN;this.Qa=this.Ia=null;this.settingsMenu=new RP(this.G);this.i=null;this.Jc=new g.TO(this.G,this.u);this.muteButton=null;this.Jg=new g.VP(this.G,this.u);this.N=this.C=this.B=this.W=this.ya=null;this.Y=new IO(this.G,this.u);this.Ha=new g.BO(this.G,this.u);this.Sd=new g.fr(this.Bq,null,this);this.J=null;c=a.T();this.Fd.subscribe("autohideupdate",this.Pj,this);var e=!a.zb().isCued(),f=this.G.T().L("html5_player_bottom_linear_gradient");
f||!g.gE(c)&&!a.T().L("html5_player_dynamic_bottom_gradient")?f=f?new g.W({D:"div",K:"ytp-gradient-bottom-container",U:[{D:"div",K:"ytp-gradient-bottom-extension"},{D:"div",K:"ytp-gradient-bottom"}]}):new g.W({D:"div",K:"ytp-gradient-bottom"}):this.Qa=f=new g.uO(a);g.J(this,f);g.fM(a,f.element,9);this.va=new g.MK(f,250,e,100);g.J(this,this.va);this.j=new g.W({D:"div",K:"ytp-chrome-bottom",U:[{D:"div",K:"ytp-chrome-controls"}]});g.J(this,this.j);g.fM(a,this.j.element,9);this.ea=new g.MK(this.j,250,
e,100);g.J(this,this.ea);this.xa=this.j.element.children[0];g.Ue(this.settingsMenu,function(){a.Vn()===d.settingsMenu&&(a.settingsMenu=null)});
g.J(this,this.settingsMenu);a.settingsMenu=this.settingsMenu;g.fM(a,this.settingsMenu.element,6);this.settingsMenu.subscribe("show",function(n){cCa(d.u.jc(),!n);b.Jx(d.settingsMenu,n)});
g.J(this,this.Jc);this.Jc.Ca(this.j.element,0);e=new g.xO(a);g.J(this,e);g.fM(a,e.element,4);f=new g.UJ({D:"div",K:"ytp-left-controls"});g.J(this,f);f.Ca(this.xa);e=new g.LO(a,b,!1);g.J(this,e);e.Ca(f.element);c.ea||(e=new g.JO(a,b),g.J(this,e),e.Ca(f.element),yE(c)&&(e=new g.UJ({D:"div",K:"ytp-hybrid-controls"}),g.J(this,e),this.N=new g.JO(a,b,!0),g.J(this,this.N),this.N.Ca(e.element),g.fM(a,e.element,4)));e=new g.LO(a,b,!0);g.J(this,e);e.Ca(f.element);e=new g.W({D:"span",K:"ytp-volume-area"});g.J(this,
e);e.Ca(f.element);if(!c.Ab&&(this.muteButton=new g.HO(a,b),g.J(this,this.muteButton),this.muteButton.Ca(e.element),c.Y&&!c.C)){var k=new $P(a,b,this.j.element);g.J(this,k);k.Ca(e.element);e=new g.xx(e.element);g.J(this,e);e.subscribe("hoverstart",function(){bCa(k,!0)});
e=new g.xx(f.element);g.J(this,e);e.subscribe("hoverend",function(){bCa(k,!1)})}g.J(this,this.Jg);
this.Jg.Ca(f.element);e=new g.UJ({D:"div",K:"ytp-right-controls"});g.J(this,e);this.ya=new vO(a,b,this.Jc);g.J(this,this.ya);this.ya.Ca(f.element);e.Ca(this.xa);a.T().hc&&c.L("web_player_move_autonav_toggle")&&(f=new sO(a,b),g.J(this,f),f.Ca(e.element));c.L("external_fullscreen_with_edu")&&c.externalFullscreen&&rE(c)&&(this.W=new AO(a,b),g.J(this,this.W),this.W.Ca(e.element));f=new g.TP(a,b);g.J(this,f);f.Ca(e.element);f=new qP(a,b,this.settingsMenu);g.J(this,f);aCa(this.settingsMenu,f);f.Ca(e.element);
if(c.L("web_screen_mode_menu_a")){var l=new jP(a,b);g.J(this,l);this.i=new pP(this.G,this.settingsMenu,l);l.qb=this.i;g.Ue(this.i,function(){a.mw()===d.i&&(a.HC=null)});
g.J(this,this.i)}if(f=this.i&&1<this.i.NB)a.HC=this.i,g.fM(a,this.i.element,7),this.i.subscribe("show",function(n){cCa(d.u.jc(),!n);b.Jx(d.i,n)}),l.Ca(e.element);
var m=new EO(a);g.J(this,m);g.fM(a,m.element,5);m.subscribe("show",function(n){b.Fn(m,n)});
l=new DO(a,b,m);g.J(this,l);l.Ca(e.element);l=a.getVideoData();if(c.rj||l.C&&"1"===c.controlsType)this.B=new g.aQ(a,b),g.J(this,this.B),this.B.Ca(e.element);g.J(this,this.Y);!f&&1>=this.settingsMenu.OB&&(c.showMiniplayerButton&&!a.T().L("web_player_pip")&&(this.C=new CO(a,b),g.J(this,this.C),this.C.Ca(e.element)),this.Y.Ca(e.element),l.aD||this.Y.hide(),c.kb||(l=new SP(a,b),g.J(this,l),l.Ca(e.element)),c.fb&&(l=new iP(a,b,this.settingsMenu),g.J(this,l),l.Ca(e.element)),c.gj&&(c=new rO(a,b),g.J(this,
c),c.Ca(e.element)));g.J(this,this.Ha);this.Ha.Ca(e.element);g.J(this,this.Sd);this.S(a,"appresize",this.yb);this.S(a,"fullscreentoggled",this.yb);this.S(a,"presentingplayerstatechange",this.LC);this.S(a,"videodatachange",this.onVideoDataChange);this.yb()};
dCa=function(a,b){a.G.zb().isCued()||b?b&&(a.ea.hide(),a.va.hide(),a.muteButton&&a.muteButton.dc(!1),a.B&&a.B.dc(!1),a.C&&a.C.dc(!1),a.u.jc().wj(a.j.element)):b||(a.ea.show(),a.va.show(),a.muteButton&&a.muteButton.dc(!0),a.B&&a.B.dc(!0),a.C&&a.C.dc(!0),a.Pj())};
eCa=function(a){var b=a.G.bb().getPlayerSize().width;return Math.max(b-2*cQ(a),100)};
cQ=function(a){var b=a.u.Ye();return 12*(a.G.getVideoData().C?0:b?2:1)};
dQ=function(a){var b=a.u.Ye()?72:50;a=a.G.T();g.tE(a)&&(b=54,Fsa(a)&&(b=62));return b};
eQ=function(a,b){nO.call(this,a,b,!1);var c=this;this.S(this.G,"videodatachange",this.onVideoDataChange);this.S(this.G,g.Ny("suggested_action_button_visible"),function(){c.Me(!0)});
this.S(this.G,g.Oy("suggested_action_button_visible"),function(){c.Me(!1)})};
fQ=function(a){a.G.gf("suggested_action_button_visible")};
hQ=function(a){g.W.call(this,{D:"div",K:gQ.TITLE,U:[{D:"div",K:gQ.TEXT,U:[{D:"a",Ga:[gQ.LINK,gQ.SESSIONLINK],V:{target:a.T().I,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},qa:"{{title}}"},{D:"div",K:gQ.SUBTEXT,U:[{D:"a",K:gQ.CHANNEL_NAME,V:{href:"{{channelLink}}",target:"_blank"},qa:"{{channelName}}"}]}]}]});this.api=a;this.i=null;this.link=this.Da(gQ.LINK);a.Bb(this.element,this,23851);this.S(a,"videodatachange",this.Ja);this.S(a,"videoplayerreset",
this.Ja);this.Ja()};
fCa=function(a){a.Ma("channelLink","");a.Ma("channelName","");a.Ma("channelTitleFocusable","-1")};
g.iQ=function(a,b){g.W.call(this,{D:"div",U:[{D:"div",K:"ytp-tooltip-text-wrapper",U:[{D:"div",K:"ytp-tooltip-image"},{D:"div",K:"ytp-tooltip-title",U:[{D:"svg",V:{height:"100%",viewBox:"0 0 24 24",width:"100%"},U:[{D:"g",U:[{D:"rect",V:{fill:"none",height:"24",width:"24",x:"0"}}]},{D:"g",U:[{D:"g",U:[{D:"polygon",V:{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"}},{D:"polygon",V:{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"}},{D:"path",
V:{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"}}]}]}]},{D:"span",qa:"{{title}}"}]},{D:"span",K:"ytp-tooltip-text",qa:"{{text}}"}]},{D:"div",K:"ytp-tooltip-bg",U:[{D:"div",K:"ytp-tooltip-duration",qa:"{{duration}}"}]}]});var c=this;this.api=a;this.Ha=b;this.env=this.api.T();this.ya=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.W=function(d){(d=Du(d))&&g.Th(c.j,d)||c.xk()};
this.B=function(d){3===c.type&&c.xk();(d=d.currentTarget)&&1===d.nodeType&&!c.type&&(d.removeEventListener("mouseover",c.B),d.addEventListener("mouseout",c.W),d.removeEventListener("focus",c.B),d.addEventListener("blur",c.W),gCa(c,d,2))};
this.Y=function(){c.xk()};
this.j=null;this.C=new g.MK(this,100);this.type=null;this.N=!1;this.i=null;this.u=NaN;this.I="";this.MC=this.api.bb().getPlayerSize().width;this.J=!0;this.scale=1;this.ea=new g.K(this.lU,250,this);this.xa=new g.K(this.xk,5E3,this);g.J(this,this.C);g.J(this,this.ea);g.J(this,this.xa);SD&&(a=this.Da("ytp-tooltip-text"),a.setAttribute("role","text"),a.setAttribute("aria-live","polite"))};
vN=function(a){a.element.setAttribute("aria-live","polite")};
cCa=function(a,b){if(null!=a.type)if(b)switch(a.type){case 3:case 2:jQ(a);a.C.show();break;default:a.C.show()}else a.C.hide();a.J=b};
jCa=function(a,b,c,d,e,f,k,l){if(!a.ya||a.env.C){3===a.type&&a.xk();1!==a.type&&(g.mr(a.element,"ytp-tooltip ytp-bottom"),a.type=1,a.J&&a.C.show(),a.i&&a.i.dispose(),a.i=a.api.fh(),a.i&&a.i.subscribe("l",a.tN,a));a.update({text:d,title:null!=k?k:""});g.M(a.text,"ytp-tooltip-text-no-title",1===a.type&&!k);g.M(a.element,"ytp-text-detail",!!e);d=-1;a.i&&(d=hF(a.i,160*a.scale),a.env.L("web_l3_storyboard")&&4===a.i.levels.length&&(d=a.i.levels.length-1),d=Tta(a.i,d,c));hCa(a,d);if(l)switch(c=g.io(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"}iCa(a,!!e,b,f)}};
g.kQ=function(a){1===a.type&&a.xk()};
g.rN=function(a,b){if(a.ya)return g.Ka;b.addEventListener("mouseover",a.B);b.addEventListener("focus",a.B);var c=b.getAttribute("title");c&&!b.hasAttribute("aria-label")&&b.setAttribute("aria-label",c);return function(){a.j===b&&a.xk();b.removeEventListener("mouseover",a.B);b.removeEventListener("focus",a.B)}};
QN=function(a,b,c){if(a.type)if(3===a.type)a.xk();else return;gCa(a,b,3,c)};
gCa=function(a,b,c,d){if(b&&!b.hasAttribute)a=new g.Kv("showElementTooltip called with non-element.",b.toString()),g.S(a);else{isNaN(a.u)||(a.u=NaN,a.bg.style.background="");a.j=b;a.N=!!d;d?a.I=d:(a.I=b.getAttribute("title"),b.removeAttribute("title"));g.mr(a.element,"ytp-tooltip");if(d=b.getAttribute("data-tooltip-image"))a.image.style.backgroundImage="url("+d+")";g.M(a.element,"ytp-tooltip-image-enabled",!!d);b=b.getAttribute("data-tooltip-opaque");g.M(a.element,"ytp-tooltip-opaque",!!b);a.type=
c;a.api.addEventListener("appresize",a.Y);a.J&&(jQ(a),a.C.show(0))}};
jQ=function(a){var b;a.j&&(b=a.j.getAttribute("data-tooltip-text"));if(b&&!a.N){var c=a.j;a.Ma("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,k=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-k)/2+"px "+(f-l)/2+"px";a.bg.style.backgroundSize=k+"px "+l+"px";g.or(a.element,["ytp-text-detail","ytp-preview"]);
g.M(a.element,"ytp-has-duration",!!d)}else a.Ma("text",a.I),g.qr(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);iCa(a,!!b)};
iCa=function(a,b,c,d){var e=Math.min(a.MC,300*a.scale);a.element.style.maxWidth=b?"":e+"px";a.Ha.Iq(a.element,a.j,c,1===a.type,d);a.element.style.top?g.L(a.element,"ytp-bottom"):a.element.style.bottom&&g.L(a.element,"ytp-top");3===a.type&&a.xa.start()};
RN=function(a){a.j&&!a.N&&a.j.hasAttribute("title")&&(a.I=a.j.getAttribute("title")||"",a.j.removeAttribute("title"),a.J&&jQ(a))};
hCa=function(a,b){g.M(a.element,"ytp-preview",0<=b);if(!(0>b||b===a.u)){a.u=b;b=160*a.scale;var c=160*a.scale,d=Pta(a.i,a.u,b);wO(a.bg,d,b,c,!0);a.ea.start()}};
kCa=function(a){var b=a.j;3===a.type&&a.xa.stop();a.api.removeEventListener("appresize",a.Y);a.N||b.setAttribute("title",a.I);a.I="";a.j=null};
g.lQ=function(a,b){g.W.call(this,{D:"button",Ga:["ytp-watch-later-button","ytp-button"],V:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.WD(a.T()))},U:[{D:"div",K:"ytp-watch-later-icon",qa:"{{icon}}"},{D:"div",K:"ytp-watch-later-title",qa:"Watch later"}]});this.G=a;this.icon=null;this.visible=this.isRequestPending=this.i=!1;this.tooltip=b.jc();vN(this.tooltip);a.Bb(this.element,this,28665);this.Pa("click",this.onClick,this);this.S(a,"videoplayerreset",this.TQ);
this.S(a,"appresize",this.Ey);this.S(a,"videodatachange",this.Ey);this.S(a,"presentingplayerstatechange",this.Ey);this.Ey();a=this.G.T();var c=g.jy("yt-player-watch-later-pending");a.i&&c?(Era(),lCa(this)):this.Ja(2);g.M(this.element,"ytp-show-watch-later-title",g.WD(a));g.Ue(this,g.rN(b.jc(),this.element))};
mCa=function(a,b){g.mL(function(){Era({videoId:b});window.location.reload()},"wl_button",g.oE(a.G.T()))};
lCa=function(a){if(!a.isRequestPending){a.isRequestPending=!0;a.Ja(3);var b=a.G.getVideoData();b=a.i?b.removeFromWatchLaterCommand:b.addToWatchLaterCommand;var c=a.G.im(),d=a.i?function(){a.i=!1;a.isRequestPending=!1;a.Ja(2);a.G.T().u&&a.G.Oa("WATCH_LATER_VIDEO_REMOVED")}:function(){a.i=!0;
a.isRequestPending=!1;a.Ja(1);a.G.T().isMobile&&QN(a.tooltip,a.element);a.G.T().u&&a.G.Oa("WATCH_LATER_VIDEO_ADDED")};
vL(c,b).then(d,function(){a.isRequestPending=!1;nCa(a,"An error occurred. Please try again later.")})}};
nCa=function(a,b){a.Ja(4,b);a.G.T().u&&a.G.Oa("WATCH_LATER_ERROR",b)};
oCa=function(a,b){var c=a.G.T();if(b!==a.icon){switch(b){case 3:var d=SM();break;case 1:d=cK();break;case 2:d={D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{D:"path",Fb:!0,K:"ytp-svg-fill",V:{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.L("watch_later_iconchange_killswitch")?{D:"svg",V:{height:"100%",version:"1.1",
viewBox:"0 0 36 36",width:"100%"},U:[{D:"path",Fb:!0,K:"ytp-svg-fill",V:{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"}}]}:{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{D:"path",Fb:!0,V:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}a.Ma("icon",d);a.icon=b}};
mQ=function(a){g.gN.call(this,a);var b=this;this.jA=(this.iq=g.WD(this.api.T()))&&(this.api.T().isMobile||ou()||mu());this.UD=48;this.VD=69;this.Pk=null;this.Go=[];this.Ac=new g.mN(this.api);this.Lv=this.api.L("web_player_deprecate_double_tap_ux")?new SN:new TN(this.api);this.Vh=new g.W({D:"div",K:"ytp-chrome-top"});this.by=[];this.tooltip=new g.iQ(this.api,this);this.backButton=this.Ht=null;this.channelAvatar=new xN(this.api,this);this.title=new hQ(this.api,this);this.Kg=new g.UJ({D:"div",K:"ytp-chrome-top-buttons"});
this.Bh=null;this.xi=new qN(this.api,this,this.Vh.element);this.overflowButton=this.fg=null;this.Hf="1"===this.api.T().controlsType?new bQ(this.api,this,this.Fd):null;this.contextMenu=new g.ON(this.api,this,this.Ac);this.JD=!1;this.Az=new g.W({D:"div",V:{tabindex:"0"}});this.zz=new g.W({D:"div",V:{tabindex:"0"}});this.vx=null;this.PF=this.jz=!1;var c=a.bb(),d=a.T(),e=a.getVideoData();this.iq&&(g.L(a.getRootNode(),"ytp-embed"),g.L(a.getRootNode(),"ytp-embed-playlist"),this.jA&&(g.L(a.getRootNode(),
"ytp-embed-overlays-autohide"),g.L(this.contextMenu.element,"ytp-embed-overlays-autohide")),this.UD=60,this.VD=89);this.api.T().isMobile&&(g.L(a.getRootNode(),"ytp-mobile"),this.api.T().C&&g.L(a.getRootNode(),"ytp-embed-mobile-exp"));this.qg=e&&e.qg;g.J(this,this.Ac);g.fM(a,this.Ac.element,4);g.J(this,this.Lv);g.fM(a,this.Lv.element,4);e=new g.W({D:"div",K:"ytp-gradient-top"});g.J(this,e);g.fM(a,e.element,1);this.LH=new g.MK(e,250,!0,100);g.J(this,this.LH);g.J(this,this.Vh);g.fM(a,this.Vh.element,
1);this.KH=new g.MK(this.Vh,250,!0,100);g.J(this,this.KH);g.J(this,this.tooltip);g.fM(a,this.tooltip.element,4);var f=new dO(a);g.J(this,f);g.fM(a,f.element,5);f.subscribe("show",function(l){b.Fn(f,l)});
this.by.push(f);this.Ht=new eO(a,this,f);g.J(this,this.Ht);d.showBackButton&&(this.backButton=new lN(a),g.J(this,this.backButton),this.backButton.Ca(this.Vh.element));this.iq||this.Ht.Ca(this.Vh.element);this.channelAvatar.Ca(this.Vh.element);g.J(this,this.channelAvatar);g.J(this,this.title);this.title.Ca(this.Vh.element);g.J(this,this.Kg);this.Kg.Ca(this.Vh.element);this.Bh=new g.lQ(a,this);g.J(this,this.Bh);this.Bh.Ca(this.Kg.element);var k=new g.kO(a,this);g.J(this,k);g.fM(a,k.element,5);k.subscribe("show",
function(l){b.Fn(k,l)});
this.by.push(k);this.shareButton=new g.jO(a,this,k);g.J(this,this.shareButton);this.shareButton.Ca(this.Kg.element);this.Ug=new g.PN(a,this);g.J(this,this.Ug);this.Ug.Ca(this.Kg.element);d.wk&&(e=new qO(a),g.J(this,e),g.fM(a,e.element,4));this.iq&&this.Ht.Ca(this.Kg.element);g.J(this,this.xi);this.xi.Ca(this.Kg.element);e=new sN(a,this,this.xi);g.J(this,e);e.Ca(this.Kg.element);this.fg=new aO(a,this);g.J(this,this.fg);g.fM(a,this.fg.element,5);this.fg.subscribe("show",function(){b.Fn(b.fg,b.fg.ag())});
this.by.push(this.fg);this.overflowButton=new $N(a,this,this.fg);g.J(this,this.overflowButton);this.overflowButton.Ca(this.Kg.element);this.Hf&&g.J(this,this.Hf);"3"===d.controlsType&&(e=new iO(a,this),g.J(this,e),g.fM(a,e.element,9));g.J(this,this.contextMenu);this.contextMenu.subscribe("show",this.EP,this);e=new hL(a,new kN(a));g.J(this,e);g.fM(a,e.element,4);this.Az.Pa("focus",this.hT,this);g.J(this,this.Az);this.zz.Pa("focus",this.iT,this);g.J(this,this.zz);(this.Bm=d.ye?null:new g.XN(a,c,this.contextMenu,
this.Fd,this.Ac,this.Lv,function(){return b.Rk()}))&&g.J(this,this.Bm);
this.iq||(this.QO=new oO(this.api,this),g.J(this,this.QO),g.fM(a,this.QO.element,4));this.cP=new eQ(this.api,this);g.J(this,this.cP);g.fM(a,this.cP.element,4);this.Fo.push(this.Ac.element);this.S(a,"fullscreentoggled",this.Jm);this.S(a,"offlineslatestatechange",function(){b.api.Gw()&&MM(b.Fd,128,!1)});
this.S(a,"cardstatechange",function(){b.mj()});
this.S(a,"resize",this.AV);this.S(a,"showpromotooltip",this.dW)};
pCa=function(a){var b=a.api.T(),c=g.V(a.api.zb(),128);return b.i&&c&&!a.api.isFullscreen()};
nQ=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!==Bn(b,"display")&&"true"!==b.getAttribute("aria-hidden")){var e=void 0;0<=b.tabIndex?e=b:e=nQ(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};
qCa=function(a,b,c){if(a.api.T().L("web_player_nitrate_promo_tooltip")){var d=a.api.getVideoData();if(null==d?0:d.tooltipRenderer){d=d.tooltipRenderer;var e;if(e=!a.vx){if(!(b=!b)){var f,k;b="TOOLTIP_DISPLAY_TYPE_DO_NOT_SHOW_IMMEDIATELY"!==(null==(f=d.tooltipDisplayStrategy)?void 0:f.type)&&"dtip-edu-player-iseecaptions"!==(null==(k=d.promoConfig)?void 0:k.promoId)}e=b}e&&(a.vx=new fO(d,a,a.api),g.J(a,a.vx),g.fM(a.api,a.vx.element,9));var l;null==(l=a.vx)||l.JC(d,c)}}};
g.oQ=function(a){g.tM.call(this,a);this.chrome=null;this.load()};
pQ=function(){var a=rCa;var b=void 0===b?[]:b;var c=void 0===c?[]:c;b=Wga.apply(null,[Xga.apply(null,g.u(b))].concat(g.u(c)));this.store=Zga(a,void 0,b)};
qQ=function(a,b,c){for(var d=Object.assign({},a),e=g.q(Object.keys(b)),f=e.next();!f.done;f=e.next()){f=f.value;var k=a[f],l=b[f];if(void 0===l)delete d[f];else if(void 0===k)d[f]=l;else if(Array.isArray(l)&&Array.isArray(k))d[f]=c?[].concat(g.u(k),g.u(l)):l;else if(!Array.isArray(l)&&g.Oa(l)&&!Array.isArray(k)&&g.Oa(k))d[f]=qQ(k,l,c);else if(typeof l===typeof k)d[f]=l;else return b=new g.Kv("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:f,vfa:k,Ma:l}),g.S(b),a}return d};
rQ=function(a){this.j=a;this.B=this.i=0;this.u=-1};
sQ=function(a){var b=ZB(a.j,a.i);++a.i;if(128>b)return b;for(var c=b&127,d=1;128<=b;)b=ZB(a.j,a.i),++a.i,d*=128,c+=(b&127)*d;return c};
tQ=function(a,b){a.B=b;var c=a.u;for(a.u=-1;a.i+1<=a.j.totalLength;){0>c&&(c=sQ(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:sQ(a);break;case 1:a.i+=8;break;case 2:d=sQ(a);a.i+=d;break;case 5:a.i+=4}}return!1};
uQ=function(a,b){if(tQ(a,b))return sQ(a)};
vQ=function(a,b){if(tQ(a,b)){b=sQ(a);var c=YB(a.j,a.i,b);a.i+=b;return c}};
wQ=function(a,b){if(a=vQ(a,b))return g.pA(a)};
sCa=function(a,b,c){if(a=vQ(a,b))return c(new rQ(new UB([a])))};
xQ=function(a,b){a=a instanceof Uint8Array?new UB([a]):a;return b(new rQ(a))};
tCa=function(){this.i=0;this.u=[];this.j=new Uint8Array(4096);this.view=new DataView(this.j.buffer)};
yQ=function(a,b){b=a.i+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.i));a.j=b;a.view=new DataView(a.j.buffer)}};
zQ=function(a,b){if(268435455<b){yQ(a,4);for(var c=b&1073741823,d=0;4>d;d++)a.view.setUint8(a.i,c&127|128),c>>=7,a.i+=1;b=Math.floor(b/268435456)}for(yQ(a,4);127<b;)a.view.setUint8(a.i,b&127|128),b>>=7,a.i+=1;a.view.setUint8(a.i,b);a.i+=1};
AQ=function(a,b,c){void 0!==c&&(zQ(a,b<<3|0),zQ(a,c))};
BQ=function(a,b,c){void 0!==c&&(zQ(a,b<<3|2),b=c.length,zQ(a,b),yQ(a,b),a.j.set(c,a.i),a.i+=b)};
CQ=function(a,b,c){void 0!==c&&(uCa(a,b,Math.ceil(Math.log2(4*c.length+2)/7)),yQ(a,1.2*c.length),b=rA(c,a.j.subarray(a.i)),a.i+b>a.j.length&&(yQ(a,b),b=rA(c,a.j.subarray(a.i))),a.i+=b,vCa(a))};
uCa=function(a,b,c){c=void 0===c?2:c;zQ(a,b<<3|2);a.u.push(a.i);a.u.push(c);a.i+=c};
vCa=function(a){for(var b=a.u.pop(),c=a.u.pop(),d=a.i-c-b;b--;){var e=b?128:0;a.view.setUint8(c++,d&127|e);d>>=7}};
DQ=function(a,b,c,d,e){c&&(uCa(a,b,void 0===e?3:e),d(a,c),vCa(a))};
wCa=function(a,b){var c=new tCa;b(c,a);return new Uint8Array(c.j.buffer,0,c.i)};
EQ=function(a){var b=new rQ(new UB([Oc(decodeURIComponent(a))]));a=wQ(b,2);b=uQ(b,4);var c=xCa[b];if("undefined"===typeof c)throw a=new g.Kv("Failed to recognize field number",{name:"EntityKeyHelperError",cfa:b}),g.S(a),a;return{YS:b,entityType:c,entityId:a}};
FQ=function(a,b){var c=new tCa;CQ(c,2,a);a=yCa[b];if("undefined"===typeof a)throw b=new g.Kv("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:b}),g.S(b),b;AQ(c,4,a);AQ(c,5,1);b=new Uint8Array(c.j.buffer,0,c.i);return encodeURIComponent(g.Jc(b))};
GQ=function(a){a=a.key||a.id;if(!a)throw Error("Entity key is missing");return a};
HQ=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))};
zCa=function(a,b,c,d,e){var f=a[b];if(null==f||!f[c])return a;d=qQ(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))};
IQ=function(a){return window.Int32Array?new Int32Array(a):Array(a)};
OQ=function(a){this.counter=[0,0,0,0];this.j=new Uint8Array(16);this.i=16;if(!ACa){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);JQ=new Uint8Array(256);KQ=IQ(256);LQ=IQ(256);MQ=IQ(256);NQ=IQ(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;JQ[f]=e;b=e<<1^(e>>7&&283);var k=b^e;KQ[f]=b<<24|e<<16|e<<8|k;LQ[f]=k<<24|KQ[f]>>>8;MQ[f]=e<<24|LQ[f]>>>8;NQ[f]=e<<24|MQ[f]>>>8}ACa=!0}e=IQ(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=(JQ[a>>16&255]^d)<<24|JQ[a>>8&255]<<16|JQ[a&255]<<8|JQ[a>>>24],d=d<<1^(d>>7&&283)),e[c]=e[c-4]^a;this.key=e};
BCa=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.i=16};
CCa=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],k=3;0<=k&&!(a.counter[k]=-~a.counter[k]);k--);for(var l,m,n=4;40>n;)k=KQ[c>>>24]^LQ[d>>16&255]^MQ[e>>8&255]^NQ[f&255]^b[n++],l=KQ[d>>>24]^LQ[e>>16&255]^MQ[f>>8&255]^NQ[c&255]^b[n++],m=KQ[e>>>24]^LQ[f>>16&255]^MQ[c>>8&255]^NQ[d&255]^b[n++],f=KQ[f>>>24]^LQ[c>>16&255]^MQ[d>>8&255]^NQ[e&255]^b[n++],c=k,d=l,e=m;a=a.j;k=b[40];a[0]=JQ[c>>>24]^k>>>24;a[1]=JQ[d>>16&255]^k>>16&255;a[2]=JQ[e>>8&255]^
k>>8&255;a[3]=JQ[f&255]^k&255;k=b[41];a[4]=JQ[d>>>24]^k>>>24;a[5]=JQ[e>>16&255]^k>>16&255;a[6]=JQ[f>>8&255]^k>>8&255;a[7]=JQ[c&255]^k&255;k=b[42];a[8]=JQ[e>>>24]^k>>>24;a[9]=JQ[f>>16&255]^k>>16&255;a[10]=JQ[c>>8&255]^k>>8&255;a[11]=JQ[d&255]^k&255;k=b[43];a[12]=JQ[f>>>24]^k>>>24;a[13]=JQ[c>>16&255]^k>>16&255;a[14]=JQ[d>>8&255]^k>>8&255;a[15]=JQ[e&255]^k&255};
QQ=function(){if(!DCa&&!g.qw){if(PQ)return PQ;var a;PQ=null==(a=window.crypto)?void 0:a.subtle;var b,c,d;if((null==(b=PQ)?0:b.importKey)&&(null==(c=PQ)?0:c.sign)&&(null==(d=PQ)?0:d.encrypt))return PQ;PQ=void 0}};
RQ=function(a){this.B=a};
SQ=function(a){this.j=a};
TQ=function(a){this.C=new Uint8Array(64);this.u=new Uint8Array(64);this.B=0;this.I=new Uint8Array(64);this.j=0;this.C.set(a);this.u.set(a);for(a=0;64>a;a++)this.C[a]^=92,this.u[a]^=54;this.reset()};
FCa=function(a,b,c){for(var d=[],e=0;16>e;e++)d.push(b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3]),c+=4;for(b=16;64>b;b++)c=d[b-7]+d[b-16],e=d[b-2],c+=(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10,e=d[b-15],c+=(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3,d.push(c);b=a.i[0];c=a.i[1];e=a.i[2];for(var f=a.i[3],k=a.i[4],l=a.i[5],m=a.i[6],n=a.i[7],p,r,t=0;64>t;t++)p=n+ECa[t]+d[t]+((k>>>6|k<<26)^(k>>>11|k<<21)^(k>>>25|k<<7))+(k&l^~k&m),r=((b>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10))+(b&c^b&e^c&e),n=m,m=l,l=k,k=f+p,f=e,e=c,c=b,b=
p+r;a.i[0]=b+a.i[0]|0;a.i[1]=c+a.i[1]|0;a.i[2]=e+a.i[2]|0;a.i[3]=f+a.i[3]|0;a.i[4]=k+a.i[4]|0;a.i[5]=l+a.i[5]|0;a.i[6]=m+a.i[6]|0;a.i[7]=n+a.i[7]|0};
HCa=function(a){var b=new Uint8Array(32),c=64-a.j;55<a.j&&(c+=64);var d=new Uint8Array(c);d[0]=128;for(var e=8*a.B,f=1;9>f;f++){var k=e%256;d[c-f]=k;e=(e-k)/256}a.update(d);for(c=0;8>c;c++)b[4*c]=a.i[c]>>>24,b[4*c+1]=a.i[c]>>>16&255,b[4*c+2]=a.i[c]>>>8&255,b[4*c+3]=a.i[c]&255;GCa(a);return b};
GCa=function(a){a.i=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];a.B=0;a.j=0};
UQ=function(a,b){b=void 0===b?{}:b;g.Kv.call(this,ICa[a],Object.assign({},{name:"PESEncoderError",type:a},b));this.type=a;this.level="WARNING";Object.setPrototypeOf(this,UQ.prototype)};
JCa=function(a){return new UQ("WRONG_DATA_TYPE",{US:a})};
KCa=function(a){return a instanceof Error?new UQ("UNKNOWN_ENCODE_ERROR",{originalMessage:a.message}):new UQ("UNKNOWN_ENCODE_ERROR")};
LCa=function(a){return a instanceof Error?new UQ("UNKNOWN_DECODE_ERROR",{originalMessage:a.message}):new UQ("UNKNOWN_DECODE_ERROR")};
MCa=function(a,b){a=a instanceof UQ?a:b(a);g.S(a);throw a;};
NCa=function(){};
OCa=function(a,b,c){try{return a.u(b,c)}catch(d){MCa(d,KCa)}};
PCa=function(a,b,c){try{return a.j(b,c)}catch(d){MCa(d,LCa)}};
VQ=function(a){a=(new TextEncoder).encode(a).subarray(0,16);var b=new Uint8Array(16);b.set(a);return b};
WQ=function(a){this.i=a};
XQ=function(){};
QCa=function(){this.i={};this.i[0]=new XQ;if(!g.Q("aes_pes_encoder_killswitch")){var a=this.i;try{var b=Lv();var c=VQ(b);var d=new WQ(new SQ(c),new RQ(c))}catch(e){throw a=e instanceof Error?new UQ("KEY_CREATION_FAILED",{originalMessage:e.message}):new UQ("KEY_CREATION_FAILED"),g.S(a),a;}a[1]=d}};
YQ=function(a,b){b=void 0===b?0:b;a=a.i[b];if(!a)throw b=new UQ("INVALID_ENCODER_VERSION",{US:b}),g.S(b),b;return a};
SCa=function(a){var b=RCa[a];if(b)return b;g.Rx(new g.Kv("Entity model not found.",{entityType:a}))};
TCa=function(a){var b=new QCa,c=a.objectStore("EntityStore"),d=a.objectStore("EntityAssociationStore");hw(c,{},function(e){var f=e.getValue(),k=PCa(YQ(b,f.version),f.data,f.key),l=EQ(f.key).entityType;l=SCa(l);if(!l)return e.continue();l=(new l(k)).Xd();k=[];l=g.q(l);for(var m=l.next();!m.done;m=l.next())k.push(ew(d,{parentEntityKey:f.key,childEntityKey:m.value}));return Wv.all(k).then(function(){return e.continue()})})};
UCa=function(){if(ZQ)return ZQ();var a={};ZQ=Iw("PersistentEntityStoreDb",{zq:(a.EntityStore={qn:1},a.EntityAssociationStore={qn:2},a),Lx:!1,upgrade:function(b,c,d){c(1)&&gw(bw(b,"EntityStore",{keyPath:"key"}),"entityType","entityType");c(2)&&(b=bw(b,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),gw(b,"byParentEntityKey","parentEntityKey"),gw(b,"byChildEntityKey","childEntityKey"));c(3)&&!c(1)&&TCa(d)},
version:g.Q("pes_migrate_association_data")?3:2});return ZQ()};
VCa=function(a){return nw(UCa(),a)};
WCa=function(a,b){this.i=a;this.j=b;this.u={}};
XCa=function(a,b){return PCa(YQ(a.j,b.version),b.data,b.key)};
$Q=function(a,b,c){return a.i.objectStore("EntityStore").get(b).then(function(d){if(d){if(c&&d.entityType!==c)throw Error("Incorrect entity type");return XCa(a,d)}})};
aR=function(a,b,c){return c?(c=c.map(function(d){return $Q(a,d,b)}),Wv.all(c)):jw(a.i.objectStore("EntityStore").index("entityType"),IDBKeyRange.only(b)).then(function(d){return d.map(function(e){return XCa(a,e)})})};
cR=function(a,b,c){var d=GQ(b),e=YQ(a.j,1),f={key:d,entityType:c,data:OCa(e,b,d),version:1};return a.i.objectStore("EntityStore").get(d).then(function(k){if(k&&k.entityType!==c)throw Error("Incorrect entity type");}).then(function(){return Wv.all([ew(a.i.objectStore("EntityStore"),f),
YCa(a,b,c)])}).then(function(){bR(a,d,c);
return d})};
dR=function(a,b,c){b=b.map(function(d){return cR(a,d,c)});
return Wv.all(b)};
eR=function(a,b,c){if(null==c?0:c.uK){var d=new Set;return ZCa(a,b,d).then(function(){for(var f=[],k=g.q(d),l=k.next();!l.done;l=k.next())f.push(eR(a,l.value));return Wv.all(f).then(function(){})})}var e=EQ(b).entityType;
return Wv.all([a.i.objectStore("EntityStore").delete(b),fR(a,b)]).then(function(){bR(a,b,e)})};
$Ca=function(a,b){return kw(a.i.objectStore("EntityStore").index("entityType"),{query:IDBKeyRange.only(b)},function(c){return Wv.all([c.delete(),fR(a,c.Rz())]).then(function(){bR(a,c.Rz(),b);return c.continue()})})};
aDa=function(a,b,c,d){var e=YQ(a.j,1);return $Q(a,b,d).then(function(f){if(f){f=qQ(f,c,void 0);var k={key:b,entityType:d,data:OCa(e,f,b),version:1};return Wv.all([ew(a.i.objectStore("EntityStore"),k),YCa(a,f,d)])}}).then(function(){bR(a,b,d);
return b})};
bR=function(a,b,c){var d=a.u[c];d||(d=new Set,a.u[c]=d);d.add(b)};
bDa=function(a,b,c){var d=GQ(b);c=SCa(c);if(!c)return Wv.resolve([]);c=new c(b);a=a.i.objectStore("EntityAssociationStore");b=[];c=g.q(c.Xd());for(var e=c.next();!e.done;e=c.next())b.push(ew(a,{parentEntityKey:d,childEntityKey:e.value}));return Wv.all(b).then(function(f){return f.map(function(k){return k[1]})})};
fR=function(a,b){return a.i.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(b))};
YCa=function(a,b,c){var d=GQ(b);return fR(a,d).then(function(){return bDa(a,b,c)})};
ZCa=function(a,b,c){if(c.has(b))return Wv.resolve(void 0);c.add(b);return cDa(a,b).then(function(d){return a.i.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(b)).then(function(){return d})}).then(function(d){var e=Wv.resolve(void 0),f={};
d=g.q(d);for(var k=d.next();!k.done;f={jC:f.jC},k=d.next())f.jC=k.value,e=e.then(function(l){return function(){return ZCa(a,l.jC,c)}}(f));
return e}).then(function(){})};
cDa=function(a,b){var c=a.i.objectStore("EntityAssociationStore");return jw(c.index("byParentEntityKey"),IDBKeyRange.only(b)).then(function(d){var e=[];d=g.q(d);for(var f=d.next();!f.done;f=d.next())f=f.value,e.push(jw(c.index("byChildEntityKey"),f.childEntityKey));return Wv.all(e)}).then(function(d){var e=[];
d=g.q(d);for(var f=d.next();!f.done;f=d.next())f=f.value,1===f.length&&e.push(f[0].childEntityKey);return e})};
gR=function(a,b){g.G.call(this);this.token=a;this.j=b;this.i=[];a=new g.C.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+Lv());a.onmessage=this.u.bind(this);this.channel=a};
hR=function(a,b,c){var d,e,f,k;return g.B(function(l){if(1==l.i)return g.A(l,VCa(a.token),2);if(3!=l.i)return d=l.j,g.A(l,dw(d,["EntityStore","EntityAssociationStore"],b,function(m){e=new WCa(m,a.j);return c(e)}),3);
f=l.j;e&&(k=e.u,0<Object.keys(k).length&&(a.channel.postMessage(k),dDa(a,k)));return l.return(f)})};
iR=function(a,b){a.i.push(b);return function(){var c=a.i.indexOf(b);0<=c&&a.i.splice(c,1)}};
jR=function(a,b,c){return hR(a,{mode:"readwrite",Kc:!0},function(d){return cR(d,b,c)})};
eDa=function(a,b){return hR(a,{mode:"readwrite",Kc:!0},function(c){return dR(c,b,"offlineOrchestrationActionWrapperEntity")})};
fDa=function(a,b){return hR(a,{mode:"readwrite",Kc:!0},function(c){return eR(c,b,void 0)})};
kR=function(a,b,c){return hR(a,{mode:"readonly",Kc:!0},function(d){return $Q(d,b,c)})};
lR=function(a,b,c){return hR(a,{mode:"readonly",Kc:!0},function(d){return aR(d,b,c)})};
dDa=function(a,b){a=g.q(a.i);for(var c=a.next();!c.done;c=a.next())c=c.value,c=c(b),gDa&&c&&gDa.push(c)};
nR=function(){mR||(mR=hDa());return mR};
hDa=function(){var a,b,c;return g.B(function(d){if(1==d.i)return va(d,2),g.A(d,g.vw(),4);if(2!=d.i){a=d.j;if(!a||!Mv()||"undefined"===typeof g.C.BroadcastChannel)return d.return();b=new QCa;return d.return(new gR(a,b))}c=xa(d);c instanceof Error&&g.S(c);return d.return()})};
kDa=function(a){var b=iDa,c;return g.B(function(d){if(1==d.i){c=a.mutations;if(!c||0>=c.length)return d.return();if(b){var e=c,f={type:"ENTITY_LOADED"};void 0!==e&&(f.payload=e);b.dispatch(f)}return g.A(d,jDa(c),2)}c.length=0;g.ua(d)})};
jDa=function(a){var b;return g.B(function(c){return 1==c.i?g.A(c,nR(),2):(b=c.j)?g.A(c,hR(b,"readwrite",function(d){for(var e={},f={},k=g.q(a),l=k.next();!l.done;f={pg:f.pg,yr:f.yr},l=k.next())f.pg=l.value,f.pg.entityKey&&lDa(f.pg)&&(f.yr=mf(f.pg.payload),l=void 0,"ENTITY_MUTATION_TYPE_REPLACE"===f.pg.type&&(l=function(m){return function(){return cR(d,m.pg.payload[m.yr],m.yr)}}(f)),"ENTITY_MUTATION_TYPE_DELETE"===f.pg.type&&(l=function(m){return function(){return eR(d,m.pg.entityKey)}}(f)),"ENTITY_MUTATION_TYPE_UPDATE"===
f.pg.type&&(l=function(m){return function(){return aDa(d,m.pg.entityKey,m.pg.payload[m.yr],m.yr)}}(f)),l&&(e[f.pg.entityKey]=e[f.pg.entityKey]?e[f.pg.entityKey].then(l):l()));
return Wv.all(Object.values(e))}),0):c.return()})};
lDa=function(a){var b;a=null==(b=a.options)?void 0:b.persistenceOption;return"ENTITY_PERSISTENCE_OPTION_PERSIST"===a||"ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"===a};
mDa=function(a){return void 0!==a};
nDa=function(){this.locks=navigator.locks};
oDa=function(){try{var a=g.Ja("ytglobal.locks_");if(a)return a;var b;if(b=navigator){var c=navigator;b="locks"in c&&!!c.locks}if(b)return g.C.localStorage&&g.C.localStorage.getItem("noop"),a=new nDa,g.Ia("ytglobal.locks_",a,void 0),a}catch(d){}};
oR=function(a,b,c){g.Rx(new g.Kv("Woffle: "+a,c?{cotn:c}:""));b instanceof Error&&g.Rx(b)};
pDa=function(a){var b,c,d,e,f,k,l,m,n,p,r,t,w,x,y,z,F;return g.B(function(I){if(1==I.i)return g.A(I,hR(a,{mode:"readonly",Kc:!0},function(H){return aR(H,"playbackData").then(function(O){var ma=O.map(function(da){return da.transfer}).filter(function(da){return!!da}),N=O.map(function(da){return da.offlineVideoPolicy}).filter(function(da){return!!da});
ma=aR(H,"transfer",ma);N=aR(H,"offlineVideoPolicy",N);return Wv.all([ma,N]).then(function(da){var qa=g.q(da);da=qa.next().value;qa=qa.next().value;return[O,da,qa]})})}),2);
b=I.j;c=g.q(b);d=c.next().value;e=c.next().value;f=c.next().value;k=d;l=e;m=f;n={};p={};r=g.q(l);for(t=r.next();!t.done;t=r.next())(w=t.value)&&(n[w.key]=w);x=g.q(m);for(y=x.next();!y.done;y=x.next())(z=y.value)&&(p[z.key]=z);F=k.map(function(H){var O=n[H.transfer],ma=p[H.offlineVideoPolicy];H=EQ(ma.key).entityId;if("OFFLINE_VIDEO_POLICY_ACTION_DISABLE"===ma.action){var N="OFFLINE_VIDEO_STATE_DISABLED";ma.expirationTimestamp&&Number(ma.expirationTimestamp)<Date.now()/1E3&&(N="OFFLINE_VIDEO_STATE_EXPIRED");
ma=N}else if("OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED"===ma.action)ma="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(null==O?void 0:O.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":N="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":N="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":N="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":N="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":N=
"OFFLINE_VIDEO_STATE_PLAYABLE";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":N="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:N="OFFLINE_VIDEO_STATE_UNKNOWN"}if("OFFLINE_VIDEO_STATE_OFFLINE_FAILED"===N)switch(null==O?void 0:O.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":N="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":N="OFFLINE_VIDEO_STATE_STREAMS_MISSING";
break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":N="OFFLINE_VIDEO_STATE_NETWORK_ERROR"}ma=N}H={id:H,videoState:ma};if(null==O?0:O.cotn)H.cotn=O.cotn;if(null==O?0:O.maximumDownloadQuality)H.selectedVideoQuality=null==O?void 0:O.maximumDownloadQuality;return H});
return I.return({offlineVideos:F})})};
qDa=function(a){var b;return g.B(function(c){if(1==c.i)return g.A(c,pDa(a),2);b=c.j;g.Fv("offlineStateSnapshot",b);g.ua(c)})};
pR=function(a){g.G.call(this);this.api=a;"undefined"!==typeof g.C.BroadcastChannel&&(this.i=new g.C.BroadcastChannel("PLAYER_OFFLINE_ERROR_SYNC:"+Lv()),this.i.onmessage=this.u.bind(this),this.j=new g.C.BroadcastChannel("PLAYER_OFFLINE_PAUSE_SYNC:"+Lv()),this.j.onmessage=this.B.bind(this))};
qR=function(a,b){a.api.Oa("onOfflineOperationFailure",b);var c;null==(c=a.i)||c.postMessage(b)};
sDa=function(a,b,c,d){var e=this;this.N=a;this.W=b;this.visibility=c;this.L=d;this.B=this.I=this.C=this.j=this.i=!1;this.J=new g.K(function(){rDa(e)});
this.visibility.subscribe("visibilitystatechange",function(){e.Me()})};
tDa=function(a){if(!a.j&&!a.i){var b=oDa();if(b){a.j=!0;var c=Lv("OfflineLockManager");b.request("woffle_orchestration_leader:"+c,{},function(){var d,e,f,k;return g.B(function(l){switch(l.i){case 1:return va(l,2),a.u=new Lk,a.i=!0,a.j=!1,g.A(l,a.N(),4);case 4:return g.A(l,a.u.promise,5);case 5:wa(l,0);break;case 2:d=xa(l),(null==(f=(e=a).L)?0:f.call(e,"wo_relinquish_leadership_on_lock_request_error"))||rDa(a),d instanceof Error&&(k=d,k.args=[{name:"WoLockManagerError",VA:d.name}],g.S(k)),g.ua(l)}})})}}};
uDa=function(a){a.i&&(a.B=!0,rR(a))};
vDa=function(a,b){a.i&&(a.C=b,rR(a))};
wDa=function(a,b){a.i&&(a.I=b,rR(a))};
rR=function(a){a.I&&a.C&&a.B&&a.visibility.isBackground()?g.hr(a.J,6E4):a.J.stop()};
rDa=function(a){a.u&&a.u.resolve();a.i=!1;a.j=!1;a.W()};
sR=function(){};
tR=function(){};
uR=function(a){if(a.includes(":"))throw Error("Invalid user cache name: "+a);return a+":"+Lv("CacheStorage get")};
xDa=function(){return g.B(function(a){if(void 0!==vR)return a.return(vR);vR=new Promise(function(b){var c;return g.B(function(d){switch(d.i){case 1:return va(d,2),g.A(d,wR.open("test-only"),4);case 4:return g.A(d,wR.delete("test-only"),5);case 5:wa(d,3);break;case 2:if(c=xa(d),c instanceof Error&&"SecurityError"===c.name)return b(!1),d.return();case 3:b("caches"in window),g.ua(d)}})});
return a.return(vR)})};
yR=function(){return g.B(function(a){if(1==a.i)return g.A(a,xDa(),2);if(!a.j)return a.return(void 0);xR||(xR=new tR);return a.return(xR)})};
yDa=function(){var a;return g.B(function(b){return 1==b.i?g.A(b,yR(),2):(a=b.j)?b.return(a.delete("yt-player-local-img")):b.return(!0)})};
zDa=function(a){var b,c;return g.B(function(d){if(1==d.i)return g.A(d,yR(),2);if(3!=d.i){b=d.j;if(!b)throw Error("Cache API not supported");return a.length?g.A(d,b.open("yt-player-local-img"),3):d.return()}c=d.j;return g.A(d,Promise.all(a.map(function(e){return c.delete(e)})),0)})};
ADa=function(a){var b,c;return g.B(function(d){if(1==d.i)return g.A(d,yR(),2);if(3!=d.i){b=d.j;if(!b)throw Error("Cache API not supported");return a.length?g.A(d,b.open("yt-player-local-img"),3):d.return()}c=d.j;return g.A(d,c.addAll(a),0)})};
zR=function(a,b){var c=b.ij;a.encryptedVideoId=b.videoId;a.cotn=c.cotn;a.offlineabilityFormatType=c.maximumDownloadQuality;var d;a.isRefresh=null!=(d=c.isRefresh)?d:!1;var e;a.softErrorCount=null!=(e=c.transferRetryCount)?e:0;g.Fv("offlineTransferStatusChanged",a)};
BDa=function(a){zR({transferStatusType:"TRANSFER_STATUS_TYPE_DEQUEUED_BY_USER_PAUSE",statusType:"SUSPENDED"},a)};
CDa=function(a){switch(a){case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":return"OFFLINE_DATABASE_ERROR";case "TRANSFER_FAILURE_REASON_PLAYABILITY":return"NOT_PLAYABLE";case "TRANSFER_FAILURE_REASON_TOO_MANY_RETRIES":return"TOO_MANY_RETRIES";case "TRANSFER_FAILURE_REASON_INTERNAL":return"OFFLINE_DOWNLOAD_CONTROLLER_ERROR";case "TRANSFER_FAILURE_REASON_STREAM_MISSING":return"STREAM_VERIFICATION_FAILED";case "TRANSFER_FAILURE_REASON_SERVER":case "TRANSFER_FAILURE_REASON_SERVER_PROPERTY_MISSING":return"OFFLINE_REQUEST_FAILURE";
case "TRANSFER_FAILURE_REASON_NETWORK":return"OFFLINE_NETWORK_ERROR";default:return"UNKNOWN_FAILURE_REASON"}};
AR=function(a){var b,c,d;return 0<(null!=(d=null==(b=a.actionMetadata)?void 0:null==(c=b.retryScheduleIntervalsInSeconds)?void 0:c.length)?d:0)};
BR=function(a){return"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD"===a.actionType&&!!a.entityKey};
CR=function(a){return"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"===a.actionType&&!!a.entityKey};
ER=function(a,b,c,d){var e,f,k,l,m,n,p,r,t,w,x,y,z,F,I,H,O,ma,N,da,qa,Wa,cc,dc;return g.B(function(cb){switch(cb.i){case 1:return e=FQ(a,"ytMainVideoEntity"),f=FQ(a,"ytMainChannelEntity"),k=FQ(a,"transfer"),g.A(cb,hR(b,{mode:"readonly",Kc:!0},function(xc){return Wv.all([$Q(xc,e,"ytMainVideoEntity"),$Q(xc,f,"ytMainChannelEntity"),$Q(xc,k,"transfer"),aR(xc,"ytMainChannelEntity"),aR(xc,"offlineOrchestrationActionWrapperEntity")])}),2);
case 2:l=cb.j;m=g.q(l);n=m.next().value;p=m.next().value;r=m.next().value;t=m.next().value;w=m.next().value;x=n;y=p;z=r;F=t;I=w;if(!x&&!y){cb.eb(3);break}H=x?DR(x.thumbnail):[];if(!y){O=[];cb.eb(4);break}return g.A(cb,DDa(y,F),5);case 5:O=cb.j;case 4:return ma=O,g.A(cb,zDa(H.concat(ma)),3);case 3:N=[];da=FQ(a,"ytMainDownloadedVideoEntity");qa=g.q(I);for(Wa=qa.next();!Wa.done;Wa=qa.next())cc=Wa.value,dc=EQ(cc.key).entityId,dc!==a||EDa(c,cc.actionProto)||N.push(cc.key);return g.A(cb,hR(b,{mode:"readwrite",
Kc:!0},function(xc){var gb=N.map(function(md){return eR(xc,md)});
gb.push(eR(xc,da,{uK:!0}));return Wv.all(gb)}),7);
case 7:FDa(z),qR(d,{entityKey:da,failureReason:"OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"}),g.ua(cb)}})};
HDa=function(a,b,c){var d,e,f,k,l,m;return g.B(function(n){if(1==n.i)return g.A(n,hR(a,{mode:"readwrite",Kc:!0},function(p){var r=aR(p,"transfer"),t=aR(p,"offlineOrchestrationActionWrapperEntity");return Wv.all([r,t]).then(function(w){w=g.q(w);var x=w.next().value,y=w.next().value;w=GDa.map(function(H){return $Ca(p,H)});
y=g.q(y);for(var z=y.next();!z.done;z=y.next()){z=z.value;var F="ytMainDownloadedVideoEntity"===EQ(z.actionProto.entityKey).entityType,I="OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD"===z.actionProto.actionType;EDa(b,z.actionProto)||F&&(!F||I)||w.push(eR(p,z.key,{uK:!0}))}return Wv.all(w).then(function(){return x})})}),2);
d=n.j;e=g.q(d);for(f=e.next();!f.done;f=e.next())k=f.value,FDa(k),l=EQ(k.key).entityId,m=FQ(l,"ytMainDownloadedVideoEntity"),qR(c,{entityKey:m,failureReason:"OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"});return g.A(n,yDa(),0)})};
EDa=function(a,b){return a.actionType===b.actionType&&a.entityKey===b.entityKey};
FDa=function(a){if(a&&"TRANSFER_STATE_COMPLETE"!==a.transferState&&"TRANSFER_STATE_FAILED"!==a.transferState){var b=EQ(a.key).entityId;zR({transferStatusType:"TRANSFER_STATUS_TYPE_TERMINATED_BY_USER",statusType:"CANCELLED"},{videoId:b,ij:a})}};
DR=function(a){if(!a||!a.thumbnails)return[];var b=[];a=g.q(a.thumbnails);for(var c=a.next();!c.done;c=a.next())c=c.value,c.url&&b.push(c.url);return b};
DDa=function(a,b){var c,d,e,f,k,l,m,n;return g.B(function(p){c=DR(a.avatar);d=g.q(b);for(e=d.next();!e.done;e=d.next())if(f=e.value,f.id!==a.id)for(k=g.q(DR(f.avatar)),l=k.next();!l.done;l=k.next())m=l.value,n=c.indexOf(m),-1!==n&&c.splice(n,1);return p.return(c)})};
FR=function(a){this.i=a};
IDa=function(a,b){var c,d,e,f,k,l,m;return g.B(function(n){switch(n.i){case 1:c=new Map,d=g.q(b),e=d.next();case 2:if(e.done){n.eb(4);break}f=e.value;k=c;l=k.set;m=f;return g.A(n,a.u(f),5);case 5:l.call(k,m,n.j);e=d.next();n.eb(2);break;case 4:return n.return(c)}})};
GR=function(a,b,c,d){this.status=a;this.i=b;this.j=c;this.failureReason=d};
HR=function(a,b,c){this.i=a;this.X=b;this.j=c};
LDa=function(a,b){var c,d,e,f,k,l,m;return g.B(function(n){switch(n.i){case 1:c=b.entityKey;f=null==(d=b.actionMetadata)?void 0:null==(e=d.playbackDataActionMetadata)?void 0:e.isEnqueuedForExpiredStreamUrlRefetch;va(n,2);var p;var r=null!=(p=b.actionMetadata)&&p.playbackDataActionMetadata?{maximumDownloadQuality:b.actionMetadata.playbackDataActionMetadata.maximumDownloadQuality}:void 0;return g.A(n,JDa(a,c,{isEnqueuedForExpiredStreamUrlRefetch:f,GP:r}),4);case 4:return(k=n.j)?g.A(n,KDa(a,k,b),5):
n.return(IR(b,!1,void 0,"OFFLINE_OPERATION_FAILURE_REASON_NETWORK_REQUEST_FAILED"));case 5:return n.return(IR(b,!0,k.orchestrationActions));case 2:return l=xa(n),m="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN",l instanceof Pv&&"QUOTA_EXCEEDED"===l.type&&(m="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"),oR("PDE handleAdd error"),n.return(IR(b,!1,void 0,m))}})};
MDa=function(a,b){var c,d,e,f,k,l,m,n,p,r,t,w,x,y,z;return g.B(function(F){switch(F.i){case 1:return c=b.entityKey,g.A(F,hR(a.i,{mode:"readonly",Kc:!0},function(I){var H=$Q(I,c,"playbackData"),O=$Q(I,FQ(EQ(b.entityKey).entityId,"offlineVideoPolicy"),"offlineVideoPolicy");I=$Q(I,FQ(EQ(b.entityKey).entityId,"transfer"),"transfer");return Wv.all([H,O,I])}),2);
case 2:d=F.j;e=g.q(d);f=e.next().value;k=e.next().value;l=e.next().value;m=f;n=k;p=l;if(!m||!n)return F.return(IR(b,!0));r={lastPlayerResponseTimestampSeconds:m.playerResponseTimestamp,offlineToken:n.offlineToken};t={};if(null==(w=p)?0:w.maximumDownloadQuality)t.maximumDownloadQuality=p.maximumDownloadQuality;va(F,3);return g.A(F,JDa(a,c,{refreshData:r,GP:t}),5);case 5:return(x=F.j)?g.A(F,KDa(a,x,b),6):F.return(IR(b,!1,void 0,"OFFLINE_OPERATION_FAILURE_REASON_NETWORK_REQUEST_FAILED"));case 6:return F.return(IR(b,
!0,x.orchestrationActions));case 3:return y=xa(F),z="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN",y instanceof Pv&&"QUOTA_EXCEEDED"===y.type&&(z="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"),F.return(IR(b,!1,void 0,z))}})};
JDa=function(a,b,c){var d,e,f;return g.B(function(k){d=g.EL();var l=a.X,m=c.refreshData,n=c.isEnqueuedForExpiredStreamUrlRefetch,p=c.GP,r={entityKey:b};m&&(r.refreshData=m);n&&(r.isExpiredStreamUrlRefetch=n);p&&(r.downloadParameters=p);e={context:Cza(l),signatureTimestamp:19019,videos:[r]};f=g.oL(NDa);return k.return(g.AJ(d,e,f))})};
KDa=function(a,b,c){var d;return g.B(function(e){if(1==e.i){if(!b.frameworkUpdates||!b.frameworkUpdates.entityBatchUpdate)return e.return();if(!(b.frameworkUpdates.entityBatchUpdate.mutations&&0<b.frameworkUpdates.entityBatchUpdate.mutations.length&&"ENTITY_MUTATION_TYPE_DELETE"===b.frameworkUpdates.entityBatchUpdate.mutations[0].type))return e.eb(2);d=EQ(b.frameworkUpdates.entityBatchUpdate.mutations[0].entityKey).entityId;return g.A(e,ER(d,a.i,c,a.j),2)}return g.A(e,kDa(b.frameworkUpdates.entityBatchUpdate),
0)})};
IR=function(a,b,c,d){return new GR(b?"OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS":"OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",AR(a),c,d)};
JR=function(){FR.apply(this,arguments)};
PDa=function(a,b){var c,d;return g.B(function(e){switch(e.i){case 1:return c=AR(b),g.A(e,kR(a.i,b.entityKey,"transfer"),2);case 2:if(d=e.j)return e.return(new GR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",c));va(e,3);return g.A(e,ODa(a,b),5);case 5:wa(e,4);break;case 3:return xa(e),e.return(new GR("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",c,void 0,"OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"));case 4:return e.return(new GR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",c))}})};
QDa=function(a,b){var c,d;return g.B(function(e){switch(e.i){case 1:return c=AR(b),g.A(e,kR(a.i,b.entityKey,"transfer"),2);case 2:d=e.j;if(!d||"TRANSFER_STATE_COMPLETE"!==d.transferState)return e.return(new GR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",c));va(e,3);return g.A(e,ODa(a,b,!0),5);case 5:wa(e,4);break;case 3:return xa(e),e.return(new GR("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",c,void 0,"OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"));case 4:return e.return(new GR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",
c))}})};
ODa=function(a,b,c){c=void 0===c?!1:c;var d,e,f,k,l,m;return g.B(function(n){if(1==n.i)return e=null==(d=b.actionMetadata)?void 0:d.transferEntityActionMetadata,l={key:b.entityKey,transferState:"TRANSFER_STATE_TRANSFER_IN_QUEUE",cotn:Ex(16),enqueuedTimestampMs:Date.now().toString(),maximumDownloadQuality:null==(f=e)?void 0:f.maximumDownloadQuality,preferredAudioTrack:null==(k=e)?void 0:k.preferredAudioTrack,transferRetryCount:0,isRefresh:c},m=EQ(l.key).entityId,g.A(n,hR(a.i,{mode:"readwrite",Kc:!0},
function(p){var r=[];c&&r.push(eR(p,FQ(m,"offlineVideoStreams")));r.push(cR(p,l,"transfer"));return Wv.all(r)}),2);
zR({transferStatusType:"TRANSFER_STATUS_TYPE_ENQUEUED",statusType:"ADDED_TO_QUEUE"},{videoId:m,ij:l});g.ua(n)})};
SDa=function(a){var b,c,d,e;return g.B(function(f){if(1==f.i)return b=g.EL(),c=Kza(a),d=g.oL(RDa),g.A(f,g.AJ(b,c,d),2);e=f.j;if(!e)throw Error("Network request failed");if(!e.videos||!e.videos.length)throw Error("No data");return f.return(e.videos.map(function(k){return k.offlineVideoData}))})};
KR=function(a,b,c){this.i=a;this.X=b;this.j=c};
VDa=function(a,b){var c,d,e,f,k,l;return g.B(function(m){switch(m.i){case 1:return c=AR(b),d=EQ(b.entityKey),e=d.entityId,va(m,2),g.A(m,TDa(a,e),4);case 4:wa(m,3);break;case 2:return f=xa(m),k="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN",f instanceof Pv&&"QUOTA_EXCEEDED"===f.type&&(k="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"),m.return(new GR("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",c,void 0,k));case 3:var n;var p=null!=(n=b.actionMetadata)&&n.ytMainDownloadedVideoEntityActionMetadata?
{playbackDataActionMetadata:{maximumDownloadQuality:b.actionMetadata.ytMainDownloadedVideoEntityActionMetadata.maximumDownloadQuality}}:void 0;l=UDa("OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",e,p);return m.return(new GR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",c,[l]))}})};
WDa=function(a,b){var c,d,e,f,k,l,m;return g.B(function(n){switch(n.i){case 1:return c=AR(b),d=EQ(b.entityKey),e=d.entityId,g.A(n,kR(a.i,b.entityKey,"ytMainDownloadedVideoEntity"),2);case 2:f=n.j;if(!f)return n.return(new GR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",c));va(n,3);return g.A(n,TDa(a,e,f.addedTimestampMillis),5);case 5:k=UDa("OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",e);wa(n,4);break;case 3:return l=xa(n),l instanceof Error&&"No data"===l.message?g.A(n,ER(e,a.i,b,a.j),4):(m="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN",
l instanceof Pv&&"QUOTA_EXCEEDED"===l.type&&(m="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"),n.return(new GR("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",c,void 0,m)));case 4:return n.return(new GR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",c,k?[k]:void 0))}})};
XDa=function(a,b){var c,d;return g.B(function(e){switch(e.i){case 1:return c=AR(b),va(e,2),d=EQ(b.entityKey).entityId,"!*$_ALL_VIDEOS_!*$"===d?g.A(e,HDa(a.i,b,a.j),5):g.A(e,ER(d,a.i,b,a.j),5);case 5:wa(e,3);break;case 2:return xa(e),e.return(new GR("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",c,void 0,"OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"));case 3:return e.return(new GR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",c))}})};
TDa=function(a,b,c){var d,e,f,k,l,m;return g.B(function(n){switch(n.i){case 1:return g.A(n,SDa([b]),2);case 2:return d=n.j,e=d[0],g.A(n,YDa(a,e,c),3);case 3:f=n.j;k=f.videoEntity;l=f.channelEntity;va(n,4);var p=DR(k.thumbnail),r=DR(l.avatar);return g.A(n,ADa(p.concat(r)),6);case 6:wa(n,0);break;case 4:m=xa(n);if(!a.X.L("woffle_disable_thumbnails"))throw m;g.ua(n)}})};
YDa=function(a,b,c){var d,e,f,k,l;return g.B(function(m){if(1==m.i){if(!(b&&b.channel&&b.channel.offlineChannelData&&b.videoId))throw Error("Invalid OfflineVideoData");c||(c=Date.now().toString());e=null==(d=b.channel)?void 0:d.offlineChannelData;f={id:FQ(b.videoId,"ytMainChannelEntity"),channelId:e.channelId,title:e.title,avatar:e.thumbnail};k={id:FQ(b.videoId,"ytMainVideoEntity"),videoId:b.videoId,title:b.title,thumbnail:b.thumbnail,localizedStrings:{viewCount:b.shortViewCountText},lengthSeconds:b.lengthSeconds?
Number(b.lengthSeconds):void 0,publishedTimestampMillis:b.publishedTimestamp?(1E3*Number(b.publishedTimestamp)).toString():void 0,formattedDescription:b.description,channelOwner:f.id};l={id:FQ(b.videoId,"ytMainDownloadedVideoEntity"),video:k.id,playbackData:FQ(b.videoId,"playbackData"),offlineVideoPolicy:FQ(b.videoId,"offlineVideoPolicy"),addedTimestampMillis:c};return g.A(m,hR(a.i,{mode:"readwrite",Kc:!0},function(n){var p=cR(n,f,"ytMainChannelEntity"),r=cR(n,k,"ytMainVideoEntity");n=cR(n,l,"ytMainDownloadedVideoEntity");
return Wv.all([p,r,n])}),2)}return m.return({videoEntity:k,
channelEntity:f,afa:l})})};
UDa=function(a,b,c){b=FQ(b,"playbackData");c=Object.assign({},c,{priority:1,retryScheduleIntervalsInSeconds:ZDa});return{actionType:a,entityKey:b,actionMetadata:c}};
$Da=function(a,b,c){return new qF(a,{cotn:b,raw_player_response:c,download_media:!0,start:Infinity,disable_watch_next:!0})};
aEa=function(){return{priority:1,retryScheduleIntervalsInSeconds:[1,2,4]}};
LR=function(a,b,c,d,e,f,k,l,m,n,p){this.entityType=a;this.actionId=b;this.action=c;this.parentActionId=d;this.rootActionId=void 0===e?b:e;this.childActionIds=f;this.prereqActionId=k;this.postreqActionIds=l;this.hasChildActionFailed=n;this.retryScheduleIndex=0;this.i=p||Date.now();this.retryScheduleIndex=m||0};
MR=function(a){return{key:FQ(a.actionId,"offlineOrchestrationActionWrapperEntity"),actionProto:a.action,parentActionId:a.parentActionId,rootActionId:a.rootActionId,childActionIds:a.childActionIds,prereqActionId:a.prereqActionId,postreqActionIds:a.postreqActionIds,retryScheduleIndex:a.retryScheduleIndex,hasChildActionFailed:a.hasChildActionFailed,enqueueTimeSec:(a.i/1E3).toFixed()}};
bEa=function(){this.i=new Map};
cEa=function(){NR||(NR=new bEa);return NR};
dEa=function(a,b){return{eventType:{flowEventNamespace:"FLOW_EVENT_NAMESPACE_OFFLINE_ORCHESTRATION",flowEventType:a},metadata:b,statusCode:void 0,csn:void 0}};
eEa=function(a,b,c){if(!c){var d=void 0===d?!1:d;c=a.i.get("FLOW_TYPE_OFFLINE_ORCHESTRATION");if(!c||d)c=Ex(16),a.i.set("FLOW_TYPE_OFFLINE_ORCHESTRATION",c)}a={flowNonce:c,flowType:"FLOW_TYPE_OFFLINE_ORCHESTRATION",flowEventType:b.eventType};b.metadata&&(a.flowMetadata=b.metadata);void 0!==b.statusCode&&(a.flowEventStatus=b.statusCode);b.csn&&(a.csn=b.csn);g.Fv("flowEvent",a,void 0)};
fEa=function(a,b,c){if(!a.action.entityKey)throw Error("entityKey is missing.");var d=EQ(a.action.entityKey);a={entityType:d.YS,entityId:d.entityId,offlineOrchestrationActionType:a.action.actionType,orchestrationAction:{orchestrationActionId:a.actionId}};b&&(a.offlineOrchestrationActionResult=b.status,a.isRetryable=b.i);c&&(a.additionalOrchestrationActions=c.map(function(e){return{orchestrationActionId:e.actionId}}));
return a};
OR=function(a,b){var c={offlineOrchestrationContext:fEa(a)};b=dEa(b,c);eEa(cEa(),b,a.rootActionId)};
PR=function(a,b,c){c=void 0===c?[]:c;b={offlineOrchestrationContext:fEa(a,b,c)};b=dEa(3,b);eEa(cEa(),b,a.rootActionId)};
gEa=function(){this.actions=[]};
hEa=function(a,b){b=g.q(b);for(var c=b.next();!c.done;c=b.next())c=c.value,OR(c,1),a.actions.push(c);a.actions.sort(a.i)};
iEa=function(a,b){a=g.q(a.actions);for(var c=a.next();!c.done;c=a.next())if(c.value.actionId===b)return!0;return!1};
QR=function(a,b,c,d){g.G.call(this);var e=this;this.j=a;this.ea=b;this.W=c;this.C=d;this.i=new gEa;this.N=new Ww;this.B=new g.K(function(){e.retry()});
this.I=NaN;g.J(this,this.B);this.J=iR(this.j,this.Y.bind(this))};
kEa=function(a,b,c,d){var e;return g.B(function(f){if(1==f.i)return e=new QR(a,b,c,d),g.A(f,jEa(e),2);e.u?Promise.resolve():RR(e);return f.return(e)})};
RR=function(a){var b,c,d,e,f,k,l,m,n,p,r,t,w,x,y;return g.B(function(z){switch(z.i){case 1:if(a.u)throw Error("Already processing an action");if(a.isDisposed())return z.return();b=a.i.actions.shift();vDa(a.W,!b);if(void 0===b)return z.return();for(c=[b];;)if((d=a.i.actions[0])&&0===d.retryScheduleIndex&&d.entityType===b.entityType)c.push(a.i.actions.shift());else break;a.u=c;if(e=a.ea[b.entityType]){z.eb(2);break}a.u=void 0;return g.A(z,RR(a),3);case 3:return z.return();case 2:f=g.q(c);for(k=f.next();!k.done;k=
f.next())l=k.value,OR(l,2);va(z,4,5);return g.A(z,IDa(e,c.map(function(F){return F.action})),7);
case 7:m=z.j,n=g.q(c),k=n.next();case 8:if(k.done){z.eb(5);break}p=k.value;r=m.get(p.action);return g.A(z,lEa(a,p,r),9);case 9:k=n.next();z.eb(8);break;case 5:ya(z);a.u=void 0;za(z,6);break;case 4:return t=xa(z),oR("Orchestration error",t),va(z,12),g.A(z,mEa(a,c),14);case 14:wa(z,5);break;case 12:w=xa(z);oR("Orchestration retry error",w);x=g.q(c);for(k=x.next();!k.done;k=x.next())y=k.value,3>y.retryScheduleIndex&&hEa(a.i,[y]);z.eb(5);break;case 6:return g.A(z,RR(a),0)}})};
lEa=function(a,b,c){var d,e,f,k,l,m;return g.B(function(n){if(1==n.i){if("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS"===c.status){k=void 0;try{k=null==(l=c.j)?void 0:l.map(function(p){return a.createAction(p,b)})}catch(p){return PR(b,c),m={entityKey:b.action.entityKey,
failureReason:"OFFLINE_OPERATION_FAILURE_REASON_UNSUPPORTED_ENTITY_FAILED"},qR(a.C,m),oR("Orchestration subactions creation error",p),n.return()}PR(b,c,k);return g.A(n,hR(a.j,{mode:"readwrite",Kc:!0},function(p){var r=[];if(k){var t=k.map(function(w){return MR(w)});
r.push(dR(p,t,"offlineOrchestrationActionWrapperEntity"))}t=MR(b);r.push(eR(p,t.key));return Wv.all(r)}),9)}if("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE"!==c.status)return n.eb(0);
PR(b,c);if(c.i&&3>b.retryScheduleIndex+1)return g.A(n,mEa(a,[b]),0);e=(null==(d=c)?0:d.failureReason)?c.failureReason:"OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN";f={entityKey:b.action.entityKey,failureReason:e};qR(a.C,f);oR("Orchestration result is not retryable, deleting action");return g.A(n,fDa(a.j,MR(b).key),0)}OR(b,4);g.ua(n)})};
SR=function(a,b){var c,d,e,f,k,l,m,n,p,r,t,w;return g.B(function(x){c=[];d=Infinity;e=4E3;f=g.q(b);for(k=f.next();!k.done;k=f.next())l=k.value,m=Number(l.enqueueTimeSec),n=nEa(m),p=l.retryScheduleIndex,r=null!=p&&0<p,0<n&&r?(d=Math.min(d,m),e=Math.min(n,e)):c.push(l);isFinite(d)&&(!a.B.isActive()||d<a.I)&&(a.I=d,a.B.start(e));a.N.Ce()||(t=c.length,c=c.filter(function(y){var z;y=(null==(z=y.actionProto)?void 0:z.actionType)||"OFFLINE_ORCHESTRATION_ACTION_TYPE_UNKNOWN";return!oEa.includes(y)}),w=c.length<
t,!a.B.isActive()&&w&&a.B.start(1));
0<c.length&&pEa(a,c);return g.A(x,a.u?Promise.resolve():RR(a),0)})};
rEa=function(a){var b,c,d,e,f,k,l;return g.B(function(m){if(1==m.i)return g.A(m,qEa(a),2);b=m.j;c=[];d=g.q(b);for(e=d.next();!e.done;e=d.next())f=e.value,k=EQ(f.key),l=k.entityId,iEa(a.i,l)||c.push(f);return g.A(m,SR(a,c),0)})};
nEa=function(a){a=1E3*a-Date.now();return 4E3<a?4E3:a};
mEa=function(a,b){var c,d,e;return g.B(function(f){c=g.q(b);for(d=c.next();!d.done;d=c.next()){e=d.value;var k=void 0,l=void 0,m=(null==(l=e.action)?void 0:null==(k=l.actionMetadata)?void 0:k.retryScheduleIntervalsInSeconds)||[1,2,4];k=1;e.retryScheduleIndex<m.length&&(k=m[e.retryScheduleIndex]);e.i=1E3*k+Date.now();e.retryScheduleIndex++}return g.A(f,sEa(a,b),0)})};
jEa=function(a){var b;return g.B(function(c){if(1==c.i)return g.A(c,lR(a.j,"offlineOrchestrationActionWrapperEntity"),2);b=c.j;return g.A(c,SR(a,b),0)})};
pEa=function(a,b){0!==b.length&&b.forEach(function(c){if(!c.key)throw Error("Entity key is required.");if(!c.actionProto)throw Error("OfflineOrchestrationAction is required.");var d=EQ(c.key),e=EQ(c.actionProto.entityKey);c=new LR(e.entityType,d.entityId,c.actionProto,c.parentActionId,c.rootActionId,c.childActionIds,c.prereqActionId,c.postreqActionIds,c.retryScheduleIndex,c.hasChildActionFailed,1E3*Number(c.enqueueTimeSec));3>c.retryScheduleIndex&&hEa(a.i,[c])})};
qEa=function(a,b){var c;return g.B(function(d){if(1==d.i)return g.A(d,lR(a.j,"offlineOrchestrationActionWrapperEntity",b),2);c=d.j;return d.return(c.filter(mDa))})};
sEa=function(a,b){if(0===b.length)return Promise.resolve([]);b=b.map(function(c){return MR(c)});
return eDa(a.j,b)};
tEa=function(){this.i=void 0};
vEa=function(a,b){var c,d,e,f,k;return g.B(function(l){c=b.videoId;d=b.T();e=!0;if(b.captionTracks.length)f=Aua(b),a.i=new g.xM(d,b,f);else if(b.Sb)k=g.Hua(b),a.i=new g.zM(d,b.Sb,c,k,b.jk),e=b.jk;else return l.return();return l.return(new Promise(function(m){var n;null==(n=a.i)||n.ut(function(){return g.B(function(p){if(1==p.i)return g.A(p,uEa(a,c,e),2);m();g.ua(p)})})}))})};
uEa=function(a,b,c){c=void 0===c?!0:c;var d,e,f,k,l,m,n,p,r,t,w,x,y,z;return g.B(function(F){switch(F.i){case 1:if(!a.i)return F.return();d=[];e=g.uM(a.i.j,c);f=[];k={};l=g.q(e.entries());for(m=l.next();!m.done;k={fC:k.fC},m=l.next())n=m.value,p=g.q(n),r=p.next().value,t=p.next().value,k.fC=r,w=t,x=a.i.bq(w,"json3"),y=g.Pt(x,{withCredentials:!0},3,500).then(function(I){return function(H){H={metadata:g.aF(e[I.fC]),trackData:H.xhr.responseText};f.push(H)}}(k)).yh(function(I){oR("Caption fetch error",
I)}),d.push(y);
return g.A(F,xba(d),2);case 2:return va(F,3),g.A(F,lta(b,f),5);case 5:wa(F,0);break;case 3:z=xa(F),oR("Caption DB transaction error",z),g.ua(F)}})};
wEa=function(a){var b;return g.B(function(c){if(1==c.i)return g.A(c,mta(a),2);b=c.j;return c.return(!!b&&0<b.length)})};
xEa=function(){this.tag="woffle"};
yEa=function(a,b){this.api=a;this.i=b;this.logger=new xEa;this.j=!1;cta=this.api.T().L("html5_user_partitioned_ls")};
zEa=function(a){return g.B(function(b){return b.return(uta(a))})};
AEa=function(a){var b;return g.B(function(c){if(1==c.i)return g.A(c,rta(a),2);b=c.j;return c.return(b.filter(function(d){return!!d.url}).map(function(d){return d.url}))})};
TR=function(a,b){var c=UE(b);if(1===c||0===c)return Promise.resolve();(c=BEa(a,b))&&c.stopVideo();a.u=0;return zEa(b)};
UR=function(a,b,c,d){c=void 0===c?!1:c;d=void 0===d?!0:d;var e="string"===typeof b?b:b.videoDetails.videoId;2===UE(e)&&((b=BEa(a,e))?b.stopVideo():a.logger.info(function(){return"Corresponding player for "+e+" not found. Pausing anyway"}),VE(e,2),a.u=2,c?CEa(a.i):d&&DEa(a.i))};
BEa=function(a,b){var c;return(null==(c=a.player)?void 0:c.getVideoData().videoId)===b?a.player:null};
EEa=function(a){switch(a){case "HD_1080":return"hd1080";case "HD":return"hd720";case "SD":return"large";case "LD":return"tiny";default:return"hd720"}};
VR=function(a){g.G.call(this);this.i=a;this.j=iR(this.i,this.u.bind(this))};
FEa=function(a,b){var c,d,e,f,k,l,m;return g.B(function(n){switch(n.i){case 1:if(0===b.length)return n.return([]);c=b.map(function(p){return FQ(p,"transfer")});
return g.A(n,lR(a.i,"transfer",c),2);case 2:d=n.j;e=d.filter(mDa).map(function(p){return EQ(p.key).entityId});
f=b.filter(function(p){return-1===e.indexOf(p)});
if(0===f.length)return n.return([]);k=g.q(f);l=k.next();case 3:if(l.done){n.eb(5);break}m=l.value;return g.A(n,zEa(m),4);case 4:l=k.next();n.eb(3);break;case 5:return n.return(f)}})};
HEa=function(a,b,c,d,e,f){var k,l,m;return g.B(function(n){k="STREAM_TYPE_UNKNOWN";c.video&&c.audio?(k="STREAM_TYPE_AUDIO_AND_VIDEO",oR("unexpected stream type")):c.video&&!c.audio?k="STREAM_TYPE_VIDEO":!c.video&&c.audio&&(k="STREAM_TYPE_AUDIO");l=FQ(b,"offlineVideoStreams");m={numBytesDownloaded:e.toFixed(),numTotalBytes:f.toFixed(),streamType:k,streamState:"DOWNLOAD_STREAM_STATE_IN_PROGRESS",formatStreamBytes:JSON.stringify(d),itag:"STREAM_TYPE_AUDIO_AND_VIDEO"===k?Number(c.Vb()):void 0};return g.A(n,
hR(a,{mode:"readwrite",Kc:!0},function(p){var r=$Q(p,l,"offlineVideoStreams"),t=$Q(p,FQ(b,"transfer"),"transfer");return Wv.all([r,t]).then(function(w){var x=g.q(w);w=x.next().value;x=x.next().value;if(!x)return eR(p,l).then(function(){});
w=[cR(p,GEa(w,d,m,l),"offlineVideoStreams")];x.offlineVideoStreams||(x.offlineVideoStreams=[]);-1===x.offlineVideoStreams.indexOf(l)&&(x.offlineVideoStreams.push(l),w.push(cR(p,x,"transfer")));return Wv.all(w)})}),0)})};
IEa=function(a,b){var c,d,e,f,k;return g.B(function(l){if(1==l.i)return c=FQ(b,"offlineVideoStreams"),g.A(l,kR(a,c,"offlineVideoStreams"),2);d=l.j;if(!d||!d.streamsProgress)return l.return();e=g.q(d.streamsProgress);for(f=e.next();!f.done;f=e.next())k=f.value,k.streamState="DOWNLOAD_STREAM_STATE_COMPLETE",k.numTotalBytes!==k.numBytesDownloaded&&(k.numBytesDownloaded=k.numTotalBytes);return g.A(l,jR(a,d,"offlineVideoStreams"),0)})};
GEa=function(a,b,c,d){if(a&&a.streamsProgress){d=a;a:{b=b.itag+";"+b.xtags;for(var e=a.streamsProgress,f=0;f<e.length;f++){var k=JSON.parse(e[f].formatStreamBytes);if(k.itag+";"+k.xtags===b){e[f]=c;c=e;break a}}e.push(c);c=e}d.streamsProgress=c}else a={key:d,streamsProgress:[c]};return a};
WR=function(a,b,c,d){g.G.call(this);var e=this;this.j=a;this.api=b;this.ya=c;this.xa=d;this.C=new Ww;this.B=new g.K(function(){e.i&&"TRANSFER_STATE_TRANSFERRING"===e.i.transferState&&e.C.Ce()&&(3>(e.i.transferRetryCount||0)?UR(e.I,e.u,!1,!1):TR(e.I,e.u.videoDetails.videoId),e.Cq("TRANSFER_FAILURE_REASON_TIMEOUT_NO_PROGRESS"))});
this.W=0;this.va=new g.sC(this);this.J=iR(this.j,this.UQ.bind(this));this.I=new yEa(b,this);this.Ia=new tEa;this.N=new VR(this.j);this.ea=this.C.Pa("publicytnetworkstatus-online",this.VQ.bind(this));this.Y=this.C.Pa("publicytnetworkstatus-offline",this.XX.bind(this));g.J(this,this.va);this.va.S(b,"offlinetransferpause",this.YX);this.Ha=g.lD(this.api.T().experiments,"web_player_transfer_timeout_threshold_ms")};
JEa=function(a){g.B(function(b){if(1==b.i)b=g.A(b,kta(),2);else{var c=a.N;var d=TE();d=Object.keys(d);c=FEa(c,d);b=g.A(b,c,0)}return b})};
ZR=function(a,b){b=void 0===b?!1:b;var c;return g.B(function(d){if(1==d.i){if(a.i)throw Error("Already downloading a video");return g.A(d,KEa(a),2)}return 4!=d.i?(c=d.j,wDa(a.ya,!c),c&&a.C.Ce()?b?g.A(d,new Promise(function(e){g.Gt(e,1E3)}),4):d.eb(4):(!c&&a.i&&YR(a),d.eb(0))):g.A(d,LEa(a,c),0)})};
MEa=function(a){return g.B(function(b){if(1==b.i)return a.u?g.A(b,TR(a.I,a.u.videoDetails.videoId),3):b.eb(0);YR(a);g.ua(b)})};
NEa=function(a,b){var c,d,e;return g.B(function(f){switch(f.i){case 1:return va(f,2),(c=!!b.captionTracks.length||!!b.Sb)?g.A(f,wEa(b.videoId),4):f.return();case 4:return(d=f.j)?f.return():g.A(f,vEa(a.Ia,b),5);case 5:wa(f,0);break;case 2:e=xa(f),oR("Caption downloading error",e,b.cotn),g.ua(f)}})};
LEa=function(a,b){var c,d,e,f,k;return g.B(function(l){switch(l.i){case 1:return a.i=b,"TRANSFER_STATE_TRANSFERRING"===a.i.transferState&&(c=EQ(a.i.key),zR({transferStatusType:"TRANSFER_STATUS_TYPE_RESUME_PROCESSING",statusType:"OFFLINING_RETRIED"},{videoId:c.entityId,ij:a.i})),g.A(l,$R(a),2);case 2:return d=null,va(l,3),g.A(l,OEa(a,b),5);case 5:d=l.j;a.u=d;wa(l,4);break;case 3:return e=xa(l),oR("error getting player response",e,b.cotn),g.A(l,a.Cq("TRANSFER_FAILURE_REASON_INTERNAL"),6);case 6:return l.return();
case 4:return f=$Da(a.api.T(),b.cotn,d),g.A(l,NEa(a,f),7);case 7:return k=f,g.A(l,AEa(f.videoId),8);case 8:k.Kl=l.j;var m=a.I,n=b.maximumDownloadQuality;f.getPlayerResponse();VE(f.videoId,2);m.u=2;m.j=!1;var p;null==(p=m.player)||p.dispose();m.player=m.api.Wl(9,f);p={};ux(m.player,(p.localmediachange=m.At,p.signatureexpired=m.oG,p.statechange=m.KV,p),m);n=EEa(n);m.L("hoffle_lmqf_killswitch")||(n=Lz(n,n,!0,"m"),PEa(m.player,n,!1));aS(m.player,!1);bS(a);g.ua(l)}})};
KEa=function(a){var b,c;return g.B(function(d){if(1==d.i)return g.A(d,lR(a.j,"transfer"),2);b=d.j;c=b.filter(QEa).sort(REa);return 0===c.length?d.return():d.return(c[0])})};
$R=function(a){return g.B(function(b){bS(a);return g.A(b,cS(a,"TRANSFER_STATE_TRANSFERRING"),0)})};
CEa=function(a){var b;g.B(function(c){if(1==c.i)return a.B.stop(),g.A(c,cS(a,"TRANSFER_STATE_PAUSED_BY_USER"),2);b=EQ(a.i.key);BDa({videoId:b.entityId,ij:a.i});YR(a);ZR(a);g.ua(c)})};
DEa=function(a){g.B(function(b){if(1==b.i)return a.B.stop(),g.A(b,cS(a,"TRANSFER_STATE_TRANSFER_IN_QUEUE"),2);YR(a);g.ua(b)})};
SEa=function(a){var b,c,d;g.B(function(e){switch(e.i){case 1:a.B.stop();if(!a.i||!a.u){e.eb(2);break}b=$Da(a.api.T(),a.i.cotn,a.u);return g.A(e,NEa(a,b),2);case 2:return g.A(e,cS(a,"TRANSFER_STATE_COMPLETE","DOWNLOAD_STREAM_STATE_COMPLETE"),4);case 4:return c=EQ(a.i.key),d=c.entityId,g.A(e,IEa(a.j,d),5);case 5:zR({transferStatusType:"TRANSFER_STATUS_TYPE_COMPLETED",statusType:"SUCCESS"},{videoId:d,ij:a.i}),YR(a),ZR(a),g.ua(e)}})};
TEa=function(a,b,c){var d;g.B(function(e){switch(e.i){case 1:if("TRANSFER_STATE_TRANSFERRING"===a.i.transferState){e.eb(2);break}return g.A(e,$R(a),2);case 2:d=Date.now();if(!(1E3<d-a.W)){e.eb(4);break}a.W=d;return g.A(e,HEa(a.j,c.videoId,c.j,c.formatStream,c.bytesDownloaded,c.i),5);case 5:var f=Math.floor(c.bytesDownloaded/1024).toFixed();zR({transferStatusType:"TRANSFER_STATUS_TYPE_PROCESSING",statusType:"OFFLINING_STARTED",alreadyDownloadedKbytes:f,totalFetchedKbytes:f,totalContentKbytes:Math.floor(c.i/
1024).toFixed()},{videoId:b,ij:a.i});case 4:bS(a),g.ua(e)}})};
UEa=function(a){var b=3>(a.i.transferRetryCount||0);b&&(a=a.i,a.transferRetryCount=(a.transferRetryCount||0)+1);return b};
VEa=function(a,b){b=void 0===b?"TRANSFER_FAILURE_REASON_UNKNOWN":b;var c,d;return g.B(function(e){if(1==e.i)return c="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN","TRANSFER_FAILURE_REASON_NETWORK"===b?c="OFFLINE_OPERATION_FAILURE_REASON_NETWORK_REQUEST_FAILED":"TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE"===b&&(c="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"),g.A(e,cS(a,"TRANSFER_STATE_FAILED","DOWNLOAD_STREAM_STATE_ERROR_STREAMS_MISSING",b),2);qR(a.xa,{entityKey:a.i.key,failureReason:c});
d=EQ(a.i.key).entityId;var f={videoId:d,ij:a.i},k=b,l={transferStatusType:"TRANSFER_STATUS_TYPE_TERMINATED_WITH_FAILURE",statusType:"FAILED"};k&&(l.transferFailureReason=k,l.failureReason=CDa(k));zR(l,f);g.ua(e)})};
cS=function(a,b,c,d){var e;return g.B(function(f){if(1==f.i)return a.i.transferState=b,a.i.failureReason=d,va(f,2),g.A(f,WEa(a,function(k){return c?aR(k,"offlineVideoStreams",a.i.offlineVideoStreams).then(function(l){for(var m=g.q(l),n=m.next();!n.done;n=m.next())if((n=n.value)&&n.streamsProgress){n=g.q(n.streamsProgress);for(var p=n.next();!p.done;p=n.next())p.value.streamState=c}return dR(k,l.filter(function(r){return!!r}),"offlineVideoStreams")}):Wv.resolve(void 0)}),4);
if(2!=f.i)return wa(f,0);e=xa(f);return e instanceof Pv&&"QUOTA_EXCEEDED"===e.type?g.A(f,a.Cq("TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE"),0):f.eb(0)})};
WEa=function(a,b){var c;return g.B(function(d){if(!a.i)return d.return();c=a.i;return g.A(d,hR(a.j,{mode:"readwrite",Kc:!0},function(e){var f=[cR(e,c,"transfer")];b&&f.push(b(e));return Wv.all(f)}),0)})};
YR=function(a){a.i=void 0;a.u=void 0;a.B.stop()};
OEa=function(a,b){var c,d,e,f,k;return g.B(function(l){if(1==l.i)return c=EQ(b.key),d=c.entityId,e=FQ(d,"playbackData"),g.A(l,kR(a.j,e,"playbackData"),2);f=l.j;if(null==(k=f)?0:k.playerResponseJson)return l.return(JSON.parse(f.playerResponseJson));throw Error("No PlayerResponse found");})};
bS=function(a){a.B.start(a.Ha||6E4)};
QEa=function(a){return void 0!==dS[a.transferState]};
REa=function(a,b){var c=dS[a.transferState],d=dS[b.transferState];return c!==d?c-d:Number(a.enqueuedTimestampMs)-Number(b.enqueuedTimestampMs)};
ZEa=function(a,b){var c=this;this.X=a;this.api=b;this.J=new Ww;this.j=new sDa(function(){return XEa(c)},function(){YEa(c)},this.api.Wn(),this.api.L.bind(this.api));
this.u=new pR(this.api);this.B=new Lk;tDa(this.j)};
XEa=function(a){return g.B(function(b){a.api.Oa("onOrchestrationBecameLeader");a.i&&a.C||$Ea(a).then(a.B.resolve).catch(a.B.reject);var c=a.B.promise;return g.A(b,c,0)})};
$Ea=function(a){var b,c,d,e;return g.B(function(f){if(1==f.i)return g.A(f,nR(),2);if(3!=f.i){b=f.j;if(!b)return oR("PES is undefined"),f.return();a.i=new WR(b,a.api,a.j,a.u);c={};d=(c.ytMainDownloadedVideoEntity=new KR(b,a.X,a.u),c.playbackData=new HR(b,a.X,a.u),c.transfer=new JR(b),c);e=a;return g.A(f,kEa(b,d,a.j,a.u),3)}e.C=f.j;return g.A(f,aFa(a),0)})};
aFa=function(a){var b;return g.B(function(c){switch(c.i){case 1:if(!a.i)return oR("transferManager is undefined"),c.return();if(!a.api.L("woffle_orch_init_killswitch")&&a.i.i){c.eb(2);break}return g.A(c,ZR(a.i),2);case 2:return g.A(c,eS(a),4);case 4:return a.I=Ht(function(){eS(a)},9E5),Zt(au(),function(){a.i&&JEa(a.i)}),g.A(c,nR(),5);
case 5:return b=c.j,g.A(c,qDa(b),6);case 6:uDa(a.j),g.ua(c)}})};
YEa=function(a){var b,c;g.B(function(d){if(1==d.i)return a.i||a.C?g.A(d,a.B.promise,2):d.return();void 0!==a.I&&(Jt(a.I),a.I=void 0);null==(b=a.i)||b.dispose();a.i=void 0;null==(c=a.C)||c.dispose();a.C=void 0;a.api.Oa("onOrchestrationLostLeader");a.B=new Lk;g.ua(d)})};
bFa=function(a,b,c){return g.B(function(d){var e=c?{ytMainDownloadedVideoEntityActionMetadata:{maximumDownloadQuality:c}}:void 0;return d.return(a.wx(b,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",e))})};
cFa=function(a,b){return g.B(function(c){return c.return(a.wx(b,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"))})};
dFa=function(a){var b,c;return g.B(function(d){if(1==d.i)return g.A(d,nR(),2);b=d.j;if(!b)return d.return();c=FQ(a,"transfer");return g.A(d,hR(b,{mode:"readwrite",Kc:!0},function(e){return $Q(e,c,"transfer").then(function(f){return f&&"TRANSFER_STATE_PAUSED_BY_USER"===f.transferState?(f.transferState="TRANSFER_STATE_TRANSFER_IN_QUEUE",cR(e,f,"transfer").then(function(){zR({transferStatusType:"TRANSFER_STATUS_TYPE_REENQUEUED_BY_USER_RESUME",statusType:"USER_RESUMED"},{videoId:a,ij:f});return Wv.resolve(null)})):
Wv.resolve(null)})}),0)})};
eFa=function(){var a,b,c;return g.B(function(d){if(1==d.i)return g.A(d,nR(),2);if(3!=d.i)return(a=d.j)?g.A(d,lR(a,"transfer"),3):d.return([]);b=d.j;c=b.map(function(e){return EQ(e.key).entityId});
return d.return(c)})};
eS=function(a,b){b=void 0===b?43200:b;var c,d,e,f,k,l,m,n;return g.B(function(p){if(1==p.i)return a.J.Ce()?g.A(p,nR(),2):p.return(fFa());if(3!=p.i){c=p.j;if(!c)return p.return([]);d=Date.now()/1E3;return g.A(p,lR(c,"offlineVideoPolicy"),3)}e=p.j;f=[];k=g.q(e);for(l=k.next();!l.done;l=k.next())m=l.value,Number(m.lastUpdatedTimestampSeconds)+b<=d&&(n=EQ(m.key).entityId,f.push(n));return f.length?p.return(cFa(a,f)):p.return([])})};
fFa=function(){var a,b,c,d,e,f;return g.B(function(k){switch(k.i){case 1:return g.A(k,nR(),2);case 2:a=k.j;if(!a)return k.return([]);b=Date.now()/1E3;return g.A(k,lR(a,"offlineVideoPolicy"),3);case 3:c=k.j,d=g.q(c),e=d.next();case 4:if(e.done){k.eb(6);break}f=e.value;if(!(f.expirationTimestamp&&Number(f.expirationTimestamp)<b)){k.eb(5);break}f.action="OFFLINE_VIDEO_POLICY_ACTION_DISABLE";return g.A(k,jR(a,f,"offlineVideoPolicy"),5);case 5:e=d.next();k.eb(4);break;case 6:return k.return(c.map(function(l){return l.key}))}})};
gFa=function(){var a=void 0===a?!1:a;try{var b=g.C.parent===g.C.top,c=!!oDa()||a;return b&&c&&"undefined"!==typeof g.C.BroadcastChannel&&"undefined"!==typeof g.C.indexedDB}catch(d){return!1}};
hFa=function(){for(var a=fS.length;4>a;a++){var b=g.Nh("VIDEO");b.load();fS.push(new g.LM(b))}};
iFa=function(){this.j=200;this.i=12};
jFa=function(a){var b=new iFa;b.j=g.lD(a.experiments,"html5_gapless_ended_transition_buffer_ms");b.i=g.lD(a.experiments,"html5_gapless_max_played_ranges");return b};
g.gS=function(a,b,c,d){d=void 0===d?!1:d;MI.call(this);this.oa=a;this.start=b;this.end=c;this.i=d};
kFa=function(a,b,c,d){var e=c.getVideoData(),f=b.getVideoData();if(c.getPlayerState().isError())return{msg:"player-error"};c=f.B;if(b.Hh()>d/1E3+1)return{msg:"in-the-past"};if(f.isLivePlayback&&!isFinite(d))return{msg:"live-infinite"};if(a.i&&((b=b.ud())&&b.isView()&&(b=b.oa),b&&b.aq().length>a.i&&g.HF(e)))return{msg:"played-ranges"};if(!e.B)return null;if(!e.B.i||!c.i)return{msg:"non-dash"};if(e.B.videoInfos[0].containerType!==c.videoInfos[0].containerType)return{msg:"container"};if(g.HF(f)&&g.HF(e))return{msg:"content-protection"};
a=c.i[0];e=e.B.i[0];f=a.audio;b=e.audio;return f.sampleRate===b.sampleRate||g.Uz?(f.numChannels||2)!==(b.numChannels||2)?{msg:"channel-count"}:null:{msg:"sample-rate",ci:a.Vb(),cr:f.sampleRate,ni:e.Vb(),nr:b.sampleRate}};
iS=function(){this.u=this.i=0;this.j=Array.from({length:hS.length}).fill(0)};
lFa=function(){};
mFa=function(a){this.name=a;this.startTimeMs=(0,g.R)();this.i=!1};
nFa=function(){this.profiles=new lFa};
jS=function(a,b,c,d){d=void 0===d?1:d;0<=c&&(b in a.profiles||(a.profiles[b]=new iS),a.profiles[b].rl(c,d))};
kS=function(){};
lS=function(){var a=this;this.i=this.j=iaa;this.promise=new li(function(b,c){a.j=b;a.i=c})};
mS=function(a,b,c,d){g.G.call(this);var e=this;this.policy=a;this.i=b;this.j=c;this.B=this.u=null;this.C=-1;this.I=!1;this.zl=new lS;this.bk=d-1E3*b.kd();this.zl.then(void 0,function(){});
this.timeout=new g.K(function(){e.Ve("timeout")},1E4);
g.J(this,this.timeout);this.J=isFinite(d);this.status={status:0,error:null};this.ma()};
sFa=function(a){var b,c,d,e,f,k,l,m,n;return g.B(function(p){if(1==p.i){if(a.isDisposed())return p.return(Promise.reject(Error(a.status.error||"disposed")));a.ma();a.timeout.start();b=g.nS.Zo("gtfta");return g.A(p,a.zl,2)}g.nS.Kn(b);c=a.i.ud();if(c.fl())return a.Ve("ended_in_finishTransition"),p.return(Promise.reject(Error(a.status.error||"")));if(!a.B||!LC(a.B))return a.Ve("next_mse_closed"),p.return(Promise.reject(Error(a.status.error||"")));if(a.j.Yp()!==a.B)return a.Ve("next_mse_mismatch"),p.return(Promise.reject(Error(a.status.error||
"")));d=oFa(a);e=d.YM;f=d.RK;k=d.XM;a.i.Fg(!1,!0);l=pFa(c,e,k,!a.j.getVideoData().isAd());a.j.setMediaElement(l);a.J&&(a.j.seekTo(a.j.getCurrentTime()+.001,{gq:!0,JH:3,ge:"gapless_pseudo"}),l.play()||St());m=c.Kb();m.cpn=a.i.getVideoData().clientPlaybackNonce;m.st=""+e;m.et=""+k;a.j.Ba("gapless",m);a.i.Ba("gaplessTo",{cpn:a.j.getVideoData().clientPlaybackNonce});n=a.i.getPlayerType()===a.j.getPlayerType();qFa(a.i,f,!1,n,a.j.getVideoData().clientPlaybackNonce);qFa(a.j,a.j.getCurrentTime(),!0,n,a.i.getVideoData().clientPlaybackNonce);
g.gi(function(){!a.j.getVideoData().jb&&g.WI(a.j.getPlayerState())&&rFa(a.j)});
oS(a,6);a.dispose();return p.return(Promise.resolve())})};
vFa=function(a){if(a.j.getVideoData().B){pS(a.j,a.B);oS(a,3);tFa(a);var b=uFa(a),c=b.PO;b=b.EY;c.subscribe("updateend",a.Nr,a);b.subscribe("updateend",a.Nr,a);a.Nr(c);a.Nr(b)}};
tFa=function(a){a.i.unsubscribe("internalvideodatachange",a.Cp,a);a.j.unsubscribe("internalvideodatachange",a.Cp,a);a.i.unsubscribe("mediasourceattached",a.Cp,a);a.j.unsubscribe("statechange",a.Sc,a)};
pFa=function(a,b,c,d){a=a.isView()?a.oa:a;return new g.gS(a,b,c,d)};
oS=function(a,b){a.ma();b<=a.status.status||(a.status={status:b,error:null},5===b&&a.zl.resolve(void 0))};
oFa=function(a){var b=a.i.ud();b=b.isView()?b.start:0;var c=a.i.getVideoData().isLivePlayback?Infinity:qS(a.i,!0);c=Math.min(a.bk/1E3,c)+b;var d=a.J?100:0;a=c-a.j.Hh()+d;return{IS:b,YM:a,RK:c,XM:Infinity}};
uFa=function(a){return{PO:a.u.i.Jd,EY:a.u.j.Jd}};
rS=function(a){g.G.call(this);var b=this;this.app=a;this.C=this.i=this.j=null;this.J=!1;this.B=null;this.N=jFa(this.app.T());this.u=null;this.I=function(){g.gi(function(){wFa(b)})}};
xFa=function(a,b,c,d){d=void 0===d?0:d;a.ma();a.nt()||sS(a);a.B=new lS;a.j=b;var e=c,f=a.app.Nc(),k=f.getVideoData().isLivePlayback?Infinity:1E3*qS(f,!0);e>k&&(e=k-a.N.j,a.J=!0);f.getCurrentTime()>=e/1E3?a.I():(a.i=f,f=e,e=a.i,a.app.Sa.addEventListener(g.Ny("vqueued"),a.I),f=isFinite(f)||f/1E3>e.getDuration()?f:0x8000000000000,a.C=new g.Ly(f,0x8000000000000,{namespace:"vqueued"}),e.addCueRange(a.C));f=d/=1E3;e=b.getVideoData().i;if(d&&e&&a.i){k=d;var l=0;b.getVideoData().isLivePlayback&&(f=Math.min(c/
1E3,qS(a.i,!0)),l=Math.max(0,f-a.i.getCurrentTime()),k=Math.min(d,qS(b)+l));f=ura(e,k)||d;f!==d&&a.j.Ba("qvaln",{st:d,at:f,rm:l,ct:k})}b=f;d=a.j;d.getVideoData().Ed=!0;d.getVideoData().Ha=!0;aS(d,!0);e={};a.i&&(e=g.tS(a.i.Wb.j),f=a.i.getVideoData().clientPlaybackNonce,e={crt:(1E3*e).toFixed(),cpn:f});d.Ba("queued",e);0!==b&&d.seekTo(b+.01,{gq:!0,JH:3,ge:"videoqueuer_queued"});a.u=new mS(a.N,a.app.Nc(),a.j,c);c=a.u;c.ma();Infinity!==c.status.status&&(oS(c,1),c.i.subscribe("internalvideodatachange",
c.Cp,c),c.j.subscribe("internalvideodatachange",c.Cp,c),c.i.subscribe("mediasourceattached",c.Cp,c),c.j.subscribe("statechange",c.Sc,c),c.i.subscribe("newelementrequired",c.zN,c),c.Cp());return a.B};
wFa=function(a){var b,c,d;g.B(function(e){switch(e.i){case 1:if(a.isDisposed())return e.return();a.ma();if(!a.B||!a.j)return a.ma(),e.return();a.J&&uS(a.app.Nc(),!0,!1);b=null;if(!a.u){e.eb(2);break}va(e,3);return g.A(e,sFa(a.u),5);case 5:wa(e,2);break;case 3:b=c=xa(e);case 2:if(!a.j)return a.ma(),e.return();a.app.Av(a.j);g.nS.SG("vqsp",function(){a.app.xl(a.j.getPlayerType())});
g.nS.SG("vqpv",function(){a.app.playVideo()});
b&&yFa(a.j,b.message);d=a.B;sS(a);return e.return(d.resolve(void 0))}})};
sS=function(a){if(a.i){var b=a.i;a.app.Sa.removeEventListener(g.Ny("vqueued"),a.I);b.removeCueRange(a.C);a.i=null;a.C=null}a.u&&(a.u.isFinished()||(b=a.u,Infinity!==b.status.status&&b.Ve("Canceled")),a.u=null);a.B=null;a.j=null;a.J=!1};
zFa=function(){var a=Gka();return!(!a||"visible"===a)};
BFa=function(a){var b=AFa();b&&document.addEventListener(b,a,!1)};
CFa=function(a){var b=AFa();b&&document.removeEventListener(b,a,!1)};
AFa=function(){if(document.visibilityState)var a="visibilitychange";else{if(!document[vu+"VisibilityState"])return"";a=vu+"visibilitychange"}return a};
vS=function(){g.tx.call(this);var a=this;this.fullscreen=0;this.j=this.pictureInPicture=this.i=this.u=this.inline=!1;this.B=function(){a.Me()};
BFa(this.B);this.C=this.getVisibilityState(this.yf(),this.isFullscreen(),this.Se(),this.isInline(),this.jt(),this.Zs())};
DFa=function(a){this.end=this.start=a};
g.zS=function(a,b,c){g.G.call(this);var d=this;this.api=a;this.X=b;this.Aa=c;this.La=new Map;this.jb=new Map;this.Qa=new Map;this.C=new Map;this.u=[];this.I=[];this.j=new Map;this.Ab=new Map;this.J=new Map;this.xb=NaN;this.kb=this.Ia=null;this.wb=new g.K(function(){wS(d,d.xb)});
this.events=new g.sC(this);this.isLiveNow=!0;this.Mc=g.lD(this.X.experiments,"web_player_ss_dai_ad_fetching_timeout_ms")||1E4;this.Y=new g.K(function(){d.W=!0;d.Aa.Ba("sdai",{aftimeout:d.Mc});xS(d);d.qw(!1)},this.Mc);
this.W=!1;this.ya=new Map;this.fb=[];this.N=null;this.wc=new Set;this.xa=[];this.Hb=[];this.lc=[];this.Sb=[];this.i=void 0;this.Ha=0;this.Ya=!0;this.B=!1;this.Ta=[];this.hc=new Set;this.qc=new Set;this.pc=new Set;this.Ok=0;this.ea=null;this.Wa=new Set;this.Qb=0;this.Iv=this.Jb=!1;this.Aa.getPlayerType();EFa(this.Aa,this);this.va=EE(this.X);g.J(this,this.wb);g.J(this,this.events);g.J(this,this.Y);yS(this)||(this.events.S(this.api,g.Ny("serverstitchedcuerange"),this.onCueRangeEnter),this.events.S(this.api,
g.Oy("serverstitchedcuerange"),this.onCueRangeExit))};
HFa=function(a,b,c,d,e,f,k){var l=FFa(a,e,e+d);a.W&&a.Aa.Ba("sdai",{adaftto:1});var m=a.X.L("web_player_ssdai_reject_invalid_ads_killswitch"),n=a.Aa;f=void 0===f?e+d:f;e===f&&!d&&a.X.L("html5_allow_zero_duration_ads_on_timeline")&&a.Aa.Ba("sdai",{attl0d:1});if(e>f&&(a.Kj("Invalid_playback_enterTimeMs_"+e+"_is_greater_than_parentReturnTimeMs_"+f),m))return"";var p=1E3*n.getMinSeekableTime();if(e<p&&(a.Kj("Invalid_playback_enterTimeMs_"+e+"_is_less_than_parentMinSeekableTimeMs_"+p),m))return"";n=1E3*
n.getDuration();if(f>n&&(a.Kj("Invalid_playback_parentReturnTimeMs_"+f+"_is_greater_than_parentDurationMs_"+n),m))return"";n=null;if(m)for(m=g.q(a.I),p=m.next();!p.done;p=m.next()){p=p.value;if(e>=p.Hc&&e<p.Zc||f<=p.Zc&&f>p.Hc)return a.Kj("Overlapping_child_playbacks_not_allowed._New_playback_video_id_"+(b.video_id+"_enterTimeMs_"+e+"_parentReturnTimeMs_"+f+"_overlaps_existing_ChildPlayback_"+AS(p))),"";if(f===p.Hc)return a.Kj("Neighboring_child_playbacks_must_be_added_sequentially._New_playback_video_id_"+
(b.video_id+"_enterTimeMs_"+e+"_parentReturnTimeMs_"+f+"_added_after_existing_ChildPlayback_"+AS(p))),"";e===p.Zc&&(n=p)}else m=g.oc(a.I,{Zc:e},function(t,w){return t.Zc-w.Zc}),0<=m&&(n=a.I[m]);
if(l&&n)for(m=g.q(a.xa.entries()),p=m.next();!p.done;p=m.next()){var r=g.q(p.value);p=r.next().value;r=r.next().value;if(r.identifier===l.identifier){a.xa.splice(p,1);break}}else if(l&&a.X.L("web_player_ss_timeout_skip_ads"))return a.Aa.Ba("sdai",{rejectAttl:1}),k&&!Uo(a.Sb,function(t){return t===k})&&(a.Aa.Ba("sdai",{rejectAdBreakAttl:1}),a.Sb.push(k)),"";
l="ss_childplayback_"+GFa++;b.cpn||(b.cpn=Ex(16));m=b.cpn;b=new qF(a.X,b);b.Dc=l;c={Dc:l,playerType:c,durationMs:d,Hc:e,Zc:f,cpn:m,videoData:b,errorCount:0};g.tc(a.I,c,function(t,w){return t.Hc-w.Hc});
a.j.set(m,c);a.Ab.set(l,c);a.Aa.Ba("sdai",{attlDone:f-e});k?c.Gk=k:n?c.Gk=n.Gk:c.Gk=c.cpn;if(e=c.Gk)(d=a.J.get(e))?(d.push(c),g.qc(d,function(t,w){return t.Hc-w.Hc})):a.J.set(e,[c]);
a.Y.isActive()&&(a.W=!1,a.Y.stop(),xS(a),a.qw(!0));a.ma();return l};
IFa=function(a,b,c){return new g.Ly(a,b,{id:c,namespace:"serverstitchedcuerange",priority:9})};
BS=function(a){return{cpn:a.Aa.getVideoData().clientPlaybackNonce,durationMs:0,Hc:0,playerType:1,Zc:0,videoData:a.Aa.getVideoData(),errorCount:0}};
DS=function(a,b,c){var d=a.B,e=BS(a),f=b.rf-c.rf;.5<Math.abs(f)&&a.Aa.Ba("sdai",{ttdtb:1,delta:f,cpn:e.cpn,enter:b.adCpn,exit:c.adCpn});if(b.isAd&&c.isAd){if(b.adCpn&&c.adCpn){var k=a.j.get(b.adCpn);var l=a.j.get(c.adCpn)}l&&k&&(a.api.Z("serverstitchedvideochange",k.Dc,k.jn),a.Aa.Ba("sdai",{ssvc:"a2a"}),a.Ok++,CS(a.Aa,l,k,c.rf,b.rf,d))}else if(!b.isAd&&c.isAd){a.api.Z("serverstitchedvideochange");a.Aa.Ba("sdai",{ssvc:"a2c"});a.Ok=0;if(f=c.Bd)a.Ha=f.end;var m;c.adCpn&&(m=a.j.get(c.adCpn));m&&CS(a.Aa,
m,e,c.rf,b.rf,d)}else if(b.isAd&&!c.isAd){var n;b.adCpn&&(n=a.j.get(b.adCpn));n&&(a.Ha=0,a.api.Z("serverstitchedvideochange",n.Dc,n.jn),a.Aa.Ba("sdai",{ssvc:"c2a"}),a.Ok=1,CS(a.Aa,e,n,c.rf,b.rf,d))}};
ES=function(a,b,c){c=1E3*(b+(void 0===c?0:c));var d=g.oc(a.I,{Hc:c},function(e,f){return e.Hc-f.Hc});
d=0>d?-1*(d+2):d;return 0<=d&&(a=a.I[d],a.Zc>=c)?{Ul:a,Aq:b}:{Ul:void 0,Aq:b}};
HS=function(a,b){var c="";yS(a)?(c=b/1E3-GS(a),c=a.Aa.Ts(c)):(b=JFa(a,b))&&(c=b.getId());return c?a.j.get(c):void 0};
JFa=function(a,b){a=g.q(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};
wS=function(a,b){var c=a.kb||a.api.Nc().getPlayerState();IS(a,!0);var d=b;a.X.L("web_player_ssdai_seek_without_offset_killswitch")&&(d=ES(a,b).Aq);a.Aa.seekTo(d);a=a.api.Nc();b=a.getPlayerState();g.WI(c)&&!g.WI(b)?a.playVideo():g.V(c,4)&&!g.V(b,4)&&a.pauseVideo()};
IS=function(a,b){a.xb=NaN;a.wb.stop();a.Ia&&b&&JS(a.Ia);a.kb=null;a.Ia=null};
KS=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;a.ma();for(var d=b,e=c,f=[],k=g.q(a.I),l=k.next();!l.done;l=k.next())l=l.value,(l.Hc<d||l.Zc>e)&&f.push(l);a.I=f;d=b;e=c;f=g.q(a.C.values());for(k=f.next();!k.done;k=f.next())k=k.value,k.start>=d&&k.end<=e&&(a.Aa.removeCueRange(k),a.C.delete(k.getId()),a.Aa.Ba("sdai",{rmAdCR:1}));d=ES(a,b/1E3);b=d.Ul;d=d.Aq;b&&(d=1E3*d-b.Hc,e=b.Hc+d,a.ma(),b.durationMs=d,b.Zc=e,KFa(a,b));(b=ES(a,c/1E3).Ul)&&a.Kj("Invalid_clearEndTimeMs_"+c+"_that_falls_during_"+
AS(b)+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")};
LFa=function(a){a.X.L("web_player_ss_timeline_manager_reset_all_killswitch")||(a.La.clear(),a.jb.clear(),a.Qa.clear(),a.C.clear(),a.u=[],a.I=[],a.j.clear(),a.Ab.clear(),a.J.clear(),a.ya.clear(),a.fb=[],a.N=null,a.wc.clear(),a.xa=[],a.Hb=[],a.lc=[],a.Sb=[],a.Ta=[],a.hc.clear(),a.qc.clear(),a.pc.clear(),a.Wa.clear(),a.isLiveNow=!0,a.W=!1,a.i=void 0,a.Ha=0,a.Ya=!0,a.B=!1,a.Ok=0,a.ea=null,a.Qb=0,a.Jb=!1,a.Iv=!1)};
KFa=function(a,b){var c=a.C.get(b.cpn);if(c){a=g.q(a.u);for(var d=a.next();!d.done;d=a.next())d=d.value,d.start===c.end?d.start=b.Hc+b.durationMs:d.end===c.start&&(d.end=b.Hc);c.start=b.Hc;c.end=b.Hc+b.durationMs}};
AS=function(a){var b;return"playback_timelinePlaybackId_"+a.Dc+"_video_id_"+(null==(b=a.videoData)?void 0:b.videoId)+"_durationMs_"+a.durationMs+"_enterTimeMs_"+a.Hc+"_parentReturnTimeMs_"+a.Zc};
LS=function(a,b,c){c=a.ya.get(c);c||(b+=GS(a),c=ES(a,b,1).Ul);return c};
MS=function(a,b,c,d){if(d)for(d=0;d<a.u.length;){var e=a.u[d];if(e.start<b&&e.end>c){var f=e.end;e.end=b;MFa(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.Aa.removeCueRange(e);if(a.Ta.includes(e))a.onCueRangeExit(e);a.u.splice(d,1);continue}d++}else MFa(a,b,c)};
MFa=function(a,b,c){b=IFa(b,c);c=!0;g.tc(a.u,b,function(k,l){return k.start-l.start});
for(var d=0;d<a.u.length;){if(0<d){var e=a.u[d],f=a.u[d-1];if(Math.round(f.end/1E3)>=Math.round(e.start/1E3)){f.end=e.end;e!==b?a.Aa.removeCueRange(e):c=!1;a.u.splice(d,1);continue}}d++}if(c)for(a.Aa.addCueRange(b),b=a.Aa.Qv("serverstitchedcuerange",36E5),b=g.q(b),c=b.next();!c.done;c=b.next())a.C.delete(c.value.getId())};
NS=function(a,b,c){if(void 0===c||!c){c=g.q(a.fb);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.fb.push(new DFa(b))}};
g.NFa=function(a,b){a=g.q(a.fb);for(var c=a.next();!c.done;c=a.next())if(c=c.value,b>=c.start&&b<=c.end)return!0;return!1};
GS=function(a){var b=0;a.X.L("web_player_ss_media_time_offset")&&(b=0===a.Aa.getStreamTimeOffset()?a.Aa.kd():a.Aa.getStreamTimeOffset());return b};
OFa=function(a,b){var c=[];a=a.J.get(b);if(!a)return[];a=g.q(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.cpn&&c.push(b.cpn);return c};
PFa=function(a,b,c){var d=0;a=a.J.get(c);if(!a)return-1;a=g.q(a);for(c=a.next();!c.done;c=a.next()){if(c.value.cpn===b)return d;d++}return-1};
QFa=function(a,b){var c=[];a=a.J.get(b);if(!a)return[];a=g.q(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};
RFa=function(a,b){var c=0;a=a.J.get(b);if(!a)return 0;a=g.q(a);for(b=a.next();!b.done;b=a.next())b=b.value,0!==b.durationMs&&b.Zc!==b.Hc&&c++;return c};
SFa=function(a,b,c){var d=!1;if(c&&(c=a.J.get(c))){c=g.q(c);for(var e=c.next();!e.done;e=c.next())e=e.value,0!==e.durationMs&&e.Zc!==e.Hc&&(e=e.cpn,b===e&&(d=!0),d&&!a.qc.has(e)&&(a.Aa.Ba("sdai",{decoratedAd:e}),a.qc.add(e)))}};
xS=function(a){a.va&&a.Aa.Ba("sdai",{adf:"0_"+((new Date).getTime()/1E3-a.Qb)+"_isTimeout_"+a.W})};
FFa=function(a,b,c){if(a.xa.length)for(var d={},e=g.q(a.xa),f=e.next();!f.done;d={hp:d.hp},f=e.next()){d.hp=f.value;f=1E3*d.hp.startSecs;var k=1E3*d.hp.durationSecs+f;if(b>f&&b<k||c>f&&c<k)return Uo(a.lc,function(l){return function(m){return m.identifier===l.hp.identifier}}(d))||(a.Aa.Ba("sdai",{adskip:b}),a.lc.push(d.hp)),d.hp}};
OS=function(a){a.W=!1;a.Y.isActive()&&xS(a);a.Y.stop();a.qw(!1)};
yS=function(a){return a.X.experiments.Xa("html5_ssdai_use_new_ad_report")};
PS=function(a,b,c){g.G.call(this);var d=this;this.api=a;this.X=b;this.i=c;this.I=new Map;this.j=[];this.u=this.J=null;this.W=NaN;this.C=this.B=null;this.N=new g.K(function(){TFa(d,d.W)});
this.Y=[];this.ea=new g.K(function(){var e=d.Y.pop();if(e){var f=e.Dc,k=e.playerVars;e=e.playerType;k&&(k.prefer_gapless=!0,d.api.preloadVideoByPlayerVars(k,e,NaN,"",f),d.Y.length&&g.hr(d.ea,4500))}});
this.events=new g.sC(this);c.getPlayerType();g.J(this,this.N);g.J(this,this.ea);g.J(this,this.events);this.events.S(this.api,g.Ny("childplayback"),this.onCueRangeEnter);this.events.S(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.S(this.api,"presentingplayerstatechange",this.eg)};
XFa=function(a,b,c,d,e,f){var k=b.cpn,l=b.docid||b.video_id||b.videoId||b.id,m=a.i;f=void 0===f?e+d:f;if(e>f)return QS(a,"enterAfterReturn enterTimeMs="+e+" is greater than parentReturnTimeMs="+f.toFixed(3),k,l),"";var n=1E3*m.getMinSeekableTime();if(e<n)return QS(a,"enterBeforeMinSeekable enterTimeMs="+e+" is less than parentMinSeekableTimeMs="+n,k,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.kd(),QS(a,m,k,l),"";n=null;for(var p=g.q(a.j),r=p.next();!r.done;r=p.next()){r=r.value;if(e>=r.Hc&&e<r.Zc)return QS(a,"overlappingEnter",k,l),a.ma(),"";if(f<=r.Zc&&f>r.Hc)return QS(a,"overlappingReturn",k,l),a.ma(),"";if(f===r.Hc)return QS(a,"outOfOrder",k,l),a.ma(),"";e===r.Zc&&(n=r)}k="cs_childplayback_"+UFa++;l={Bd:RS(d,!0),bk:Infinity,target:null};var t={Dc:k,playerVars:b,playerType:c,durationMs:d,Hc:e,Zc:f,Hn:l};a.j=a.j.concat(t).sort(function(y,z){return y.Hc-z.Hc});
n?VFa(a,n,{Bd:RS(n.durationMs,!0),bk:a.X.L("timeline_manager_transition_killswitch")?Infinity:n.Hn.bk,target:t}):(b={Bd:RS(e,!1),bk:e,target:t},a.I.set(b.Bd,b),a.ma(),m.addCueRange(b.Bd));b=a.X.L("html5_gapless_preloading");if(a.i===a.api.Nc()&&(m=1E3*m.getCurrentTime(),m>=t.Hc&&m<t.Zc)){var w=a.api.Nc().getPlayerState(),x=m-t.Hc;$h(function(){WFa(a,t,x/1E3,w)});
b=!1}b&&(a.Y.unshift(t),g.hr(a.ea,0));a.ma();return k};
RS=function(a,b){return new g.Ly(Math.max(0,a-5E3),b?0x8000000000000:a-1,{namespace:"childplayback",priority:9})};
YFa=function(a,b,c,d){a.ma();a.u=d;a.api.pz(a.i,c,b)};
ZFa=function(a,b,c,d){a.ma();a.u=d;d=b.Dc;var e=b.playerVars,f=b.playerType;a.J=b;e&&a.api.enqueueVideoByPlayerVars(e,f,c,d)};
VFa=function(a,b,c){var d=b.Hn;b.Hn=c;SS(a,b)&&(c=a.api.Nc(),d.Bd===a.u&&TS(a),a.ma(),c.removeCueRange(d.Bd),b=b.Hn,a.ma(),c.addCueRange(b.Bd))};
TS=function(a){a.J=null;a.u=null;a.api.nt()||a.api.clearQueue()};
$Fa=function(a,b){SS(a,b)||QS(a,"childPlaybackIsNotPresenting");return b.Zc===b.Hc+b.durationMs?(a=a.api.Nc(),b.Hc+1E3*a.getCurrentTime()):b.Zc};
US=function(a,b){var c=0;a=g.q(a.j);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=d.Hc/1E3+c,f=e+d.durationMs/1E3;if(e>b)break;if(f>b)return{Ul:d,Aq:b-e};c=f-d.Zc/1E3}return{Ul:null,Aq:b-c}};
TFa=function(a,b){var c=a.C||a.api.Nc().getPlayerState();VS(a,!0);b=a.X.L("html5_playbacktimeline_seektoinf_killswitch")||isFinite(b)?b:a.i.Bj();var d=US(a,b);b=d.Ul;d=d.Aq;var e=b&&!SS(a,b)||!b&&a.i!==a.api.Nc(),f=1E3*d;f=a.u&&a.u.start<=f&&f<=a.u.end;!e&&f||TS(a);a.ma();b?(a.ma(),WFa(a,b,d,c)):(a.ma(),WS(a,d,c))};
WS=function(a,b,c){var d=a.i,e=a.api.Nc();d!==e&&a.api.xl(d.getPlayerType());d.seekTo(b,{ge:"application_timelinemanager"});aGa(a,c)};
WFa=function(a,b,c,d){var e=SS(a,b);if(!e){b.playerVars.prefer_gapless=!0;var f=new qF(a.X,b.playerVars);f.Dc=b.Dc;a.api.Bo(f,b.playerType)}f=a.api.Nc();e||(b=b.Hn,a.ma(),f.addCueRange(b.Bd));f.seekTo(c,{ge:"application_timelinemanager"});aGa(a,d)};
aGa=function(a,b){a=a.api.Nc();var c=a.getPlayerState();g.WI(b)&&!g.WI(c)?a.playVideo():g.V(b,4)&&!g.V(c,4)&&a.pauseVideo()};
VS=function(a,b){a.W=NaN;a.N.stop();a.B&&b&&JS(a.B);a.C=null;a.B=null};
SS=function(a,b){a=a.api.Nc();return!!a&&a.getVideoData().Dc===b.Dc};
bGa=function(a){var b=a.j.find(function(e){return SS(a,e)});
if(b){var c=a.api.Nc();TS(a);var d=new g.QI(8);b=$Fa(a,b)/1E3;WS(a,b,d);c.Ba("forceParentTransition",{childPlayback:1});a.i.Ba("forceParentTransition",{parentPlayback:1})}};
XS=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;a.ma();for(var d=b,e=c,f=g.q(a.I),k=f.next();!k.done;k=f.next()){var l=g.q(k.value);k=l.next().value;l=l.next().value;l.bk>=d&&l.target&&l.target.Zc<=e&&(a.i.removeCueRange(k),a.I.delete(k))}d=b;e=c;f=[];k=g.q(a.j);for(l=k.next();!l.done;l=k.next())if(l=l.value,l.Hc>=d&&l.Zc<=e){var m=a;m.J===l&&TS(m);SS(m,l)&&m.api.To(l.playerType)}else f.push(l);a.j=f;d=US(a,b/1E3);b=d.Ul;d=d.Aq;b&&(d*=1E3,cGa(a,b,d,b.Zc===b.Hc+b.durationMs?b.Hc+d:b.Zc));
(b=US(a,c/1E3).Ul)&&QS(a,"Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(b.Dc+" video_id="+b.playerVars.video_id+" durationMs="+b.durationMs+" enterTimeMs="+b.Hc+" parentReturnTimeMs="+b.Zc+"}.Child playbacks can only have duration updated not their start."))};
cGa=function(a,b,c,d){a.ma();b.durationMs=c;b.Zc=d;d={Bd:RS(c,!0),bk:c,target:null};VFa(a,b,d);SS(a,b)&&1E3*a.api.Nc().getCurrentTime()>c&&(b=$Fa(a,b)/1E3,c=a.api.Nc().getPlayerState(),WS(a,b,c))};
QS=function(a,b,c,d){a.i.Ba("timelineerror",{e:b,cpn:c?c:void 0,videoId:d?d:void 0})};
eGa=function(a){a&&"web"!==a&&dGa.includes(a)};
$S=function(a,b){g.G.call(this);var c=this;this.data=[];this.u=a||NaN;this.j=b||null;this.i=new g.K(function(){YS(c);ZS(c)});
g.J(this,this.i)};
YS=function(a){var b=(0,g.R)();a.data.forEach(function(c){c.expire<b&&aT(a,c,!0)});
a.data=g.Bp(a.data,function(c){return!(c.expire<b)})};
aT=function(a,b,c){c&&a.j&&a.j(b.value)};
ZS=function(a){a.i.stop();var b=Infinity;for(var c=g.q(a.data),d=c.next();!d.done;d=c.next())d=d.value,d.expire<b&&(b=d.expire);b&&isFinite(b)&&(b=Math.max(b-Date.now(),100),a.i.start(b))};
bT=function(){g.Jr.call(this);this.C=new Map};
cT=function(a){this.data=window.Float32Array?new Float32Array(a):Array(a);this.j=this.i=a-1};
fGa=function(a){return a.data[a.i]||0};
dT=function(a){g.G.call(this);this.u=a;this.i=new Map;this.j=new g.K(this.sample,250,this);g.J(this,this.j);this.start()};
eT=function(a,b){if(null==(a=a.i.get(b)))a=void 0;else{a=a.buffer;for(b=[];a.j!==a.i;)a.j=(a.j+1)%a.data.length,b.push(a.data[a.j]);a=b}return a||[]};
fT=function(a,b){var c;return(null==(c=a.i.get(b))?void 0:fGa(c.buffer))||0};
gT=function(a){this.j=a;this.i=NaN;this.buffer=new cT(100)};
gGa=function(a){var b=/codecs="([^"]*)"/.exec(a.mimeType);return b&&b[1]?b[1]+" ("+a.Vb()+")":a.Vb()};
hT=function(a){g.G.call(this);var b=this;this.i=null;for(var c=[],d=0;100>=d;d++)c.push(d/100);c={threshold:c,trackVisibility:!0,delay:1E3};(this.j=window.IntersectionObserver?new IntersectionObserver(function(e){e=e[e.length-1];"undefined"===typeof e.isVisible?b.i=null:b.i=e.isVisible?e.intersectionRatio:0},c):null)&&this.j.observe(a)};
hGa=function(a,b){jna(a,"version",b)};
jT=function(a){g.W.call(this,{D:"div",Ga:["html5-video-player"],V:{tabindex:"-1",id:a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId:a.config.attrs.id},U:[{D:"div",K:g.iT.VIDEO_CONTAINER,V:{"data-layer":"0"}}]});var b=this;this.app=a;this.Cv=this.Da(g.iT.VIDEO_CONTAINER);this.Jt=new g.qn(0,0,0,0);this.Gb=null;this.hB=new g.qn(0,0,0,0);this.UE=this.SF=this.RF=NaN;this.aA=this.eB=this.JG=this.zK=!1;this.ZD=NaN;this.vF=!1;this.Mw=null;this.kG=function(){b.element.focus()};
var c=this.element.addEventListener,d=this.element.removeEventListener;this.addEventListener=function(f,k,l){c.apply(b.element,[f,k,l])};
this.removeEventListener=function(f,k,l){d.apply(b.element,[f,k,l])};
var e=a.T();e.transparentBackground&&this.pn("ytp-transparent");"0"===e.controlsType&&this.pn("ytp-hide-controls");g.L(this.element,"ytp-exp-bottom-control-flexbox");e.L("html5_player_bottom_linear_gradient")&&g.L(this.element,"ytp-linear-gradient-bottom-experiment");Fsa(e)&&g.L(this.element,"ytp-larger-tap-buttons");e.L("enable_new_paid_product_placement")&&!g.wE(e)&&g.L(this.element,"ytp-exp-ppp-update");yE(e)&&g.L(this.element,"ytp-exp-hybrid-controls");e.L("web_player_dead_css_killswitch")&&g.L(this.element,
"ytp-dead-css-killswitch");hGa(this.element,iGa(a));this.RO=!1;this.Tv=new g.dh(NaN,NaN);jGa(this);this.S(a.Sa,"onMutedAutoplayChange",this.onMutedAutoplayChange)};
jGa=function(a){function b(){a.Gb&&kT(a);lT(a)!==a.vF&&a.resize()}
function c(k,l){a.Vs(k,l)}
function d(k){k.getVideoData()&&a.updateVideoData(k.getVideoData())}
function e(){a.hB=new g.qn(0,0,0,0);a.Jt=new g.qn(0,0,0,0)}
var f=a.app.Sa;f.addEventListener("initializingmode",e);f.addEventListener("videoplayerreset",d);f.addEventListener("videodatachange",c);f.addEventListener("presentingplayerstatechange",b);g.Ue(a,function(){f.removeEventListener("initializingmode",e);f.removeEventListener("videoplayerreset",d);f.removeEventListener("videodatachange",c);f.removeEventListener("presentingplayerstatechange",b)})};
kGa=function(a){var b=g.hM(a.app);if(b=b?b.getVideoData():null){if(g.OF(b)||g.PF(b)||g.RF(b))return 16/9;if(yF(b)&&b.B.i)return a=b.B.videoInfos[0].video,mT(a.width,a.height)}return(a=a.Gb)?mT(a.videoWidth,a.videoHeight):16/9};
lGa=function(a,b,c,d){var e=c,f=mT(b.width,b.height);a.zK?e=c<f?Infinity:0:isNaN(a.UE)?isNaN(a.SF)||(e=a.SF):e=a.UE;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};
mT=function(a,b){return 1>Math.abs(nT*b-a)||1>Math.abs(nT/a-b)?nT:a/b};
lT=function(a){if(1===a.app.getAppState())return!1;if(6===a.app.getAppState())return!0;var b=g.hM(a.app);if(!b||b.tm())return!1;var c=a.app.Sa.zb();a=!g.V(c,2)||!a.app.T().L("html5_leanback_gapless_elem_display_killswitch")&&b&&b.getVideoData().Ha;b=g.V(c,1024);return c&&a&&!b&&!c.isCued()};
kT=function(a){var b="3"===a.app.T().controlsType&&!a.aA&&lT(a)&&!a.app.Rw||!1;a.Gb.controls=b;a.Gb.tabIndex=b?0:-1;b?a.Gb.removeEventListener("focus",a.kG):a.app.T().L("disable_focus_redirect")||a.Gb.addEventListener("focus",a.kG)};
nGa=function(a){var b=a.xg(),c=1,d=!1,e=lGa(a,b,a.getVideoAspectRatio()),f=a.app.T().L("enable_desktop_player_underlay"),k=ku(),l=g.lD(a.app.T().experiments,"player_underlay_min_player_width");l=f&&a.JG&&a.getPlayerSize().width>l;if(lT(a)){var m=kGa(a);var n=isNaN(m)||g.qw||oT&&g.Sv||l;lu&&!g.Ec(601)?m=e.aspectRatio:n=n||"3"===a.app.T().controlsType;n?l?(n=a.app.T().L("place_shrunken_video_on_left_of_player"),m=.02*a.getPlayerSize().width,n=n?m:a.getPlayerSize().width-b.width-m,n=new g.qn(n,0,b.width,
b.height)):n=new g.qn(0,0,b.width,b.height):(c=e.aspectRatio/m,n=new g.qn((b.width-e.width/c)/2,(b.height-e.height)/2,e.width/c,e.height),1===c&&g.Sv&&(m=n.width-b.height*m,0<m&&(n.width+=m,n.height+=m)));if(k||a.RO)a.Gb.style.display="";a.vF=!0}else{n=-b.height;lu?n*=window.devicePixelRatio:g.zE&&(n-=window.screen.height);n=new g.qn(0,n,b.width,b.height);if(k||a.RO)a.Gb.style.display="none";a.vF=!1}rn(a.hB,n)||(a.hB=n,g.dE(a.app.T())?(a.Gb.style.setProperty("width",n.width+"px","important"),a.Gb.style.setProperty("height",
n.height+"px","important")):g.ho(a.Gb,n.getSize()),d=new g.bh(n.left,n.top),g.En(a.Gb,Math.round(d.x),Math.round(d.y)),d=!0);b=new g.qn((b.width-e.width)/2,(b.height-e.height)/2,e.width,e.height);rn(a.Jt,b)||(a.Jt=b,d=!0);g.xn(a.Gb,"transform",1===c?"":"scaleX("+c+")");f&&l!==a.eB&&(l&&(a.Gb.classList.add(g.iT.VIDEO_CONTAINER_TRANSITIONING),a.Gb.addEventListener(mGa,a.WN.bind(a))),a.eB=l,a.app.Sa.Z("playerUnderlayVisibilityChange",a.eB?"transitioning":"hidden"));return d};
oGa=function(){this.csn=g.Kx();this.clientPlaybackNonce=null;this.elements=new Set;this.u=new Set;this.i=new Set;this.j=new Set};
pGa=function(a,b){a.elements.has(b);a.elements.delete(b);a.u.delete(b);a.i.delete(b);a.j.delete(b)};
qGa=function(a){if(a.csn!==g.Kx())if("UNDEFINED_CSN"===a.csn)a.csn=g.Kx();else{var b=g.Kx(),c=g.Jx();if(b&&c){a.csn=b;for(var d=g.q(a.elements),e=d.next();!e.done;e=d.next())(e=e.value.visualElement)&&e.isClientVe()&&g.Zx(void 0,b,c,[e])}if(b)for(a=g.q(a.i),e=a.next();!e.done;e=a.next())(c=e.value.visualElement)&&c.isClientVe()&&g.$x(b,c,void 0)}};
pT=function(a,b,c,d,e){g.W.call(this,{D:"div",K:"ytp-horizonchart"});this.C=b;this.sampleCount=c;this.u=d;this.B=e;this.index=0;this.heightPx=-1;this.j=this.ctx=null;this.i=Math.round(a/c);this.element.style.width=this.i*this.sampleCount+"px";this.element.style.height=this.C+"em"};
qT=function(a,b){if(-1===a.heightPx){var c=null;try{c=g.Nh("CANVAS"),a.ctx=c.getContext("2d")}catch(e){}if(a.ctx){var d=a.i*a.sampleCount;a.j=c;a.j.width=d;a.j.style.width=d+"px";a.element.appendChild(a.j)}else for(a.sampleCount=Math.floor(a.sampleCount/4),a.i*=4,c=0;c<a.sampleCount;c++)d=g.Nh("SPAN"),d.style.width=a.i+"px",d.style.left=a.i*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.j.height=a.heightPx*
c,a.j.style.height=a.heightPx+"px",a.ctx.scale(1,c)));b=g.q(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.i,0,a.i,a.heightPx):(a=a.element.children[b],a.style.height="0px",a.style.borderTop="")};
rT=function(a){var b=null;b={D:"button",Ga:["html5-video-info-panel-close","ytp-button"],V:{title:"close"},qa:"[x]"};g.W.call(this,{D:"div",K:"html5-video-info-panel",U:[b,{D:"div",K:"html5-video-info-panel-content",U:[{D:"div",U:[{D:"div",qa:"Video ID / sCPN"},{D:"span",qa:"{{video_id_and_cpn}}"}]},{D:"div",U:[{D:"div",qa:"Viewport / Frames"},{D:"span",qa:"{{dims_and_frames}}"}]},{D:"div",U:[{D:"div",qa:"Current / Optimal Res"},{D:"span",qa:"{{resolution}}"}]},{D:"div",U:[{D:"div",qa:"Volume / Normalized"},
{D:"span",qa:"{{volume}}"}]},{D:"div",U:[{D:"div",qa:"Codecs"},{D:"span",qa:"{{codecs}}"}]},{D:"div",V:{style:"{{shader_info_style}}"},U:[{D:"div",qa:"Shader Info"},{D:"span",qa:"{{shader_info}}"}]},{D:"div",V:{style:"{{color_style}}"},U:[{D:"div",qa:"Color"},{D:"span",qa:"{{color}}"}]},{D:"div",V:{style:"{{drm_style}}"},U:[{D:"div",qa:"Protected"},{D:"span",qa:"{{drm}}"}]},{D:"div",V:{style:"{{bandwidth_style}}"},U:[{D:"div",qa:"Connection Speed"},{D:"span",U:[{D:"span",qa:"{{bandwidth_chart}}"},
{D:"span",qa:"{{bandwidth_kbps}}"}]}]},{D:"div",V:{style:"{{network_activity_style}}"},U:[{D:"div",qa:"Network Activity"},{D:"span",U:[{D:"span",qa:"{{network_activity_chart}}"},{D:"span",qa:"{{network_activity_bytes}}"}]}]},{D:"div",U:[{D:"div",qa:"Buffer Health"},{D:"span",U:[{D:"span",qa:"{{buffer_health_chart}}"},{D:"span",qa:"{{buffer_health_seconds}}"}]}]},{D:"div",V:{style:"{{live_latency_style}}"},U:[{D:"div",qa:"Live Latency"},{D:"span",U:[{D:"span",qa:"{{live_latency_chart}}"},{D:"span",
qa:"{{live_latency_secs}}"}]}]},{D:"div",V:{style:"{{live_mode_style}}"},U:[{D:"div",qa:"Live Mode"},{D:"span",qa:"{{live_mode}}"}]},{D:"div",V:{style:"{{playback_categories_style}}"},U:[{D:"div",qa:"Playback Categories"},{D:"span",qa:"{{playback_categories}}"}]},{D:"div",U:[{D:"div",qa:"Mystery Text"},{D:"span",qa:"{{debug_info}}"}]},{D:"div",V:{style:"{{cotn_and_local_media_style}}"},U:[{D:"div",qa:"COTN / Local Media"},{D:"span",qa:"{{cotn_and_local_media}}"}]},{D:"div",V:{style:"{{release_style}}"},
U:[{D:"div",qa:"Player Release"},{D:"span",qa:"{{release_name}}"}]}]}]});b&&(b=this.Da("html5-video-info-panel-close"),this.S(b,"click",this.hide));b=[0,18750,37500,81250,128E3,256E3,512E3,2048E3,8192E3,32768E3,131072E3];var c="#000 #d53e4f #f46d43 #fdae61 #fee08b #e6f598 #abdda4 #66c2a5 #3288bd #124588 #fff".split(" "),d=b.map(function(e){return e/4});
this.i=new pT(300,1,150,b,c);g.J(this,this.i);this.Ma("bandwidth_chart",this.i);this.u=new pT(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.J(this,this.u);this.Ma("live_latency_chart",this.u);this.j=new pT(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.J(this,this.j);this.Ma("buffer_health_chart",this.j);this.B=new pT(300,1,150,d,c);g.J(this,this.B);this.Ma("network_activity_chart",this.B);this.delay=new g.K(this.Ja,
500,this);g.J(this,this.delay);this.Sa=a};
rGa=function(a){a=void 0===a?{}:a;var b=a.Ah,c=a.Ig,d=a.getLastSegmentNumber,e=a.Os;this.Yl=a.Yl;this.Ah=b;this.Ig=c;this.getLastSegmentNumber=d;this.Os=e};
sGa=function(a,b){if(0>b)return!0;var c=a.getLastSegmentNumber();return b<c||b===c&&!a.Yl||b===c&&(a=a.Os())&&b===a.Na?!0:!1};
tGa=function(a,b,c){if(!sGa(a,b))return 0;if(!a.Ah||!isNaN(c)&&0<c)return 2;if(0>b)return 1;c=a.getLastSegmentNumber();return b<c||b===c&&(a=a.Os())&&b===a.Na&&!a.pending?2:1};
sT=function(a,b){this.schedule=a;this.policy=b;this.playbackRate=1};
uGa=function(a,b){var c=Math.min(2.5,FD(a.schedule));a=tT(a);return b-c*a};
uT=function(a,b,c,d,e){e=void 0===e?!1:e;a.policy.qd&&(d=Math.abs(d));d/=a.playbackRate;var f=1/HD(a.schedule);var k=Math.max(.9*(d-3),FD(a.schedule)+2048*f);c=k/f*a.policy.rp/(b+c);c=Math.min(c,d);a.policy.me&&e&&(c=Math.max(c,a.policy.me));return vGa(a,c,b)};
vGa=function(a,b,c){return Math.ceil(Math.max(Math.max(65536,a.policy.Pl*c),Math.min(Math.min(a.policy.Ia,31*c),Math.ceil(b*c))))||65536};
tT=function(a){return HD(a.schedule,!a.policy.jk,a.policy.Ol)};
vT=function(a){return tT(a)/a.playbackRate};
wT=function(a,b,c,d,e){this.Va=a;this.j=b;this.videoTrack=c;this.audioTrack=d;this.policy=e;this.seekCount=this.u=0;this.i=!1;this.B=this.j.isManifestless&&!this.j.bf;this.C=null};
wGa=function(a,b,c){var d=b.i.index,e=b.j.Na;PB(d,e)||c&&c.Na===e?(a.ma(),b.C=!PB(d,e),b.N=!PB(d,e)):(a.ma(),b.C=!0,b.N=!0)};
yGa=function(a,b,c,d){a.ma();if(!b.i.Ze())return 0!==c&&xT(b),c;var e=yT(b,c);if(!isNaN(e))return a.ma(),e;xT(b);zT(b.B);return d&&(a=DC(d.uf(),c),!isNaN(a))?(AT(b,a+xGa),c):AT(b,c)};
CGa=function(a,b,c,d){if(a.i&&a.u){var e=zGa(a,b,c);if(-1!==e){a.videoTrack.C=!1;a.audioTrack.C=!1;a.B=!0;g.gi(function(){a.Va.Ba("seekreason",{reason:"behindMinSq",tgt:e});AGa(a,e)});
return}}c?a.videoTrack.N=!1:a.audioTrack.N=!1;var f=a.policy.Br||!a.B;if(0<=yT(a.videoTrack,a.u)&&0<=yT(a.audioTrack,a.u)&&f){if(a.videoTrack.C||a.audioTrack.C)a.ma(),a.Va.Ba("iterativeSeeking",{status:"done",count:a.seekCount});a.videoTrack.C=!1;a.audioTrack.C=!1}else d&&g.gi(function(){if(a.B||!a.policy.Ta)BGa(a);else{var k=b.startTime,l=b.duration,m=-1!==a.videoTrack.I&&-1!==a.audioTrack.I,n=!a.videoTrack.N&&!a.audioTrack.N;(c?a.videoTrack.C:a.audioTrack.C)&&m&&n&&(a.u>=k&&a.u<k+l+.1?((c?a.videoTrack:
a.audioTrack).C=!1,a.videoTrack.C||a.audioTrack.C||(a.ma(),a.Va.Ba("iterativeSeeking",{status:"done",count:a.seekCount}),a.seekCount=0)):8>a.seekCount?(a.seekCount++,a.ma(),a.Va.Ba("iterativeSeeking",{status:"inprogress",count:a.seekCount,target:a.u,actual:k,duration:l,isVideo:c}),a.seek(a.u)):(a.ma(),a.Va.Ba("iterativeSeeking",{status:"incomplete",count:a.seekCount,target:a.u,actual:k}),a.seekCount=0,a.videoTrack.C=!1,a.audioTrack.C=!1,a.Va.Aa.seekTo(k+.1,{gq:!0,ge:"chunkSelectorSynchronizeMedia",
Dp:!0})))}})};
zGa=function(a,b,c){if(!a.i)return-1;c=(c?a.videoTrack:a.audioTrack).i.index;var d=c.getSegmentNumberForTime(a.u);return(PB(c,a.j.Ee)||b.Na===a.j.Ee)&&d<a.j.Ee?(a.ma(),a.j.getMinSeekableTime()):-1};
AGa=function(a,b){a.B&&-1!==a.videoTrack.I&&-1!==a.audioTrack.I&&(a.B=!1,a.ma(),a.Va.Aa.seekTo(b+.1,{gq:!0,ge:"chunkSelectorSynchronize",Dp:!0}))};
BGa=function(a){var b=-1!==a.videoTrack.I,c=-1!==a.audioTrack.I;if(!b||!c)if(b=!b&&a.videoTrack.gg(),c=!c&&a.audioTrack.gg(),b||c)if(c=b?a.videoTrack:a.audioTrack,b=b?a.audioTrack:a.videoTrack,c.I=c.gg().info.Na,-1!==b.I){var d=Math.max(b.i.index.getStartTime(b.I),c.i.index.getStartTime(c.I));WC(a.j)&&432E3<Math.abs(d-WC(a.j))&&xra(a.j);a.Va.Ba("seekreason",{reason:"initManifestlessSync",tgt:d});g.gi(function(){return AGa(a,d)});
a.C&&(a.C.resolve(d+.1),a.C=null)}};
DGa=function(a){this.C=a;this.j=this.u=0;this.ticks={}};
BT=function(a,b,c,d,e,f){g.tx.call(this);this.Va=a;this.N=b;this.policy=c;this.I=d;this.xa=e;this.Y=this.j=null;this.u=this.B=NaN;this.J=0;this.C=null;this.ea=new Map;this.W="";this.va=0;this.i=f?1:0};
CT=function(a,b,c){a.policy.dh&&(b.startSecs+=isNaN(a.J)?0:a.J);a=a.N;a.Y.push(b);a.Z("cuepointsadded",c)};
EGa=function(a,b,c){return(0>c||c===a.u)&&!isNaN(a.B)?a.B:b};
GGa=function(a,b,c,d){FGa(a.I,d,c,b);FGa(a.xa,d,c,b);YC(a.N,d,!0);YC(a.N,d,!1);a.Ba("sdai",{rollbk2_seg:d,rbt:c.toFixed(3),lt:b.toFixed(3)})};
HGa=function(a,b){if(a.j){var c=a.j.Ae.durationSecs-(b.startTime+a.J-a.j.Ae.startSecs);0>=c||(c=new Dy(a.j.Ae.startSecs-(a.policy.dh&&!isNaN(a.J)?a.J:0),c,a.j.Ae.context,a.j.Ae.identifier,"stop",a.j.Ae.i+1E3*b.duration),a.Ba("cuepointdiscontinuity",{segNum:b.Na}),CT(a,c,b.Na))}};
IGa=function(a,b,c,d){(void 0===d?0:d)?(a.i=1,a.Ba("sdai",{rststate_skth:1})):0<b&&5<=Math.abs(b-c)&&4===a.i&&(a.Ba("sdai",{rststate_skt:b.toFixed(2),ct:c.toFixed(2)}),a.i=5)};
DT=function(a,b,c){this.audio=a;this.video=b;this.reason=c};
ET=function(a,b,c,d,e,f){f=void 0===f?[]:f;this.Va=a;this.va=b;this.policy=c;this.C=d;this.I=e;this.Ya=f;this.u=pF;this.i=this.J=null;this.W=-1;this.Ia=!1;this.nextVideo=this.j=null;this.B=[];this.ya={};this.videoIndex=0;this.Ta=this.Y=this.N=!1;this.xa=0;this.Qa=new Set;this.Wa=!1;this.ea=new Map;this.La=0;this.fb=!1;this.Ha=null};
NGa=function(a,b,c){FT(a,b);JGa(a,c);a.J=a.j;KGa(a);LGa(a);a.i=a.nextVideo;a.J=a.j;return MGa(a)};
OGa=function(a,b){if(a.u.equals(b))return null;if("m"===b.reason&&b.isLocked())return a.ma(),FT(a,b),a.videoIndex=a.B.length-1,GT(a),HT(a),a.Y=a.Y||a.i!==a.nextVideo,a.i=a.nextVideo,new DT(a.j,a.i,b.reason);"r"===b.reason&&(a.W=-1);FT(a,b);HT(a);if("r"===b.reason&&a.nextVideo===a.i)return new DT(a.j,a.nextVideo,b.reason);a.i&&a.nextVideo&&IT(a,a.i.info)<IT(a,a.nextVideo.info)&&(b=a.u.reason,a.N=a.N||"r"===b||"u"===b||"v"===b);return null};
PGa=function(a,b){if(b.info.video){if(a.i!==b)return a.i=b,MGa(a)}else a.Ta=a.J!==b,a.J=b;return null};
JT=function(a,b,c){a.La+=1;if(void 0===c?0:c)a.fb=!0;c=6E4*Math.pow(2,a.La);a.ea.set(b.info.id,(0,g.R)()+c);a.W=-1;FT(a,a.u)};
KT=function(a){if(a.ea.size){for(var b=(0,g.R)(),c=g.q(a.ea.values()),d=c.next();!d.done;d=c.next())if(d.value>b)return!0;a.ea.clear()}return!1};
QGa=function(a,b){return new DT(a.J,a.i,b||a.u.reason)};
LT=function(a){return a.u.isLocked()};
MGa=function(a){a.Ia?a.Ia=!1:a.W=(0,g.R)();a.N=!1;return new DT(a.J,a.i,a.u.reason)};
RGa=function(a,b){var c={};b=g.q(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.video){var e=d.video.i,f=c[e],k=f&&oC(f)&&f.video.i>a.policy.N,l=e<=a.policy.N?oC(d):mC(d);if(!f||k||l)c[e]=d}return c};
FT=function(a,b){a.u=b;var c=a.I.videoInfos;if(!LT(a)){var d=(0,g.R)();c=g.Bp(c,function(r){if(r.Ob>this.policy.Ob)return this.ma(),!1;var t=this.C.i[r.id],w=t.info.i;return this.policy.Cr&&this.Qa.has(w)||this.ea.get(r.id)>d?!1:4<t.j.j||4<t.N?(this.ma(),!1):t.B?!1:!0},a);
a.fb&&KT(a)&&(c=g.Bp(c,function(r){return 480>=r.video.i}))}c.length||(c=a.I.videoInfos);
var e=g.Bp(c,b.B,b),f="m"===b.reason||"s"===b.reason;a.policy.hk&&oT&&g.Sv&&(!f||1080>b.i)&&(e=e.filter(function(r){return r.video&&(!r.j||r.j.powerEfficient)}));
if(0<e.length)if(IC()){var k=RGa(a,e);e=e.filter(function(r){return!!r&&!!r.video&&r.i===k[r.video.i].i})}else{var l,m,n=null==(l=e[0])?void 0:null==(m=l.video)?void 0:m.i;
if(n){b=e.filter(function(r){return!!r&&!!r.video&&r.video.i===n});
var p=RGa(a,b)[n].i;e=e.filter(function(r){return!!r&&!!r.video&&r.i===p})}}e.length||(e=[c[0]]);
e.sort(function(r,t){return IT(a,r)-IT(a,t)});
for(c=1;c<e.length;c++)b=e[c-1],f=e[c],b.video.width>f.video.width?(a.ma(),g.ec(e,c),c--):IT(a,b)*a.policy.u>IT(a,f)&&(a.ma(),g.ec(e,c-1),c--);c=e[e.length-1];a.Wa=!!a.i&&!!a.i.info&&a.i.info.i!==c.i;a.ma();a.B=e;Tza(a.policy,c)};
JGa=function(a,b){b?a.j=a.C.i[b]:(b=(b=g.Wb(a.I.i,function(c){return!!c.Fc&&c.Fc.isDefault}))||a.I.i[0],a.j=a.C.i[b.id]);
GT(a)};
SGa=function(a,b){for(var c=0;c+1<a.B.length&&"tiny"===a.B[c].video.quality;)c++;var d=vT(a.va)/a.policy.u;return IT(a,b.info)+IT(a,a.B[c])>d};
GT=function(a){if(!a.j||!a.policy.j)if(!a.j||!a.j.info.Fc)if(a.j=a.C.i[a.I.i[0].id],1<a.I.i.length){var b=!1;if(a.policy.Qa){if(b=!0,a.policy.Ll){var c=Vb(a.I.i,function(d){return"250"===d.Vb()});
0<=c&&(a.j=a.C.i[a.I.i[c].id],b=SGa(a,a.j))}}else b=a.u.isLocked()?240>a.u.i:SGa(a,a.j);b&&(a.j=a.C.i[g.Ub(a.I.i).id])}};
HT=function(a){a.policy.Ng&&(a.Ha=a.Ha||new g.K(function(){a.policy.Ng&&a.i&&!KT(a)&&1===Math.floor(10*Math.random())?(JT(a,a.i),a.N=!0):a.Ha.start()},6E4),g.hr(a.Ha));
if(!a.nextVideo||!a.policy.j)if(LT(a))a.nextVideo=360>=a.u.i?a.C.i[a.B[0].id]:a.C.i[g.Ub(a.B).id],a.ma();else{for(var b=Math.min(a.videoIndex,a.B.length-1),c=vT(a.va),d=IT(a,a.j.info),e=c/a.policy.B-d;0<b&&!(IT(a,a.B[b])<=e);b--);for(c=c/a.policy.u-d;b<a.B.length-1&&!(IT(a,a.B[b+1])>=c);b++);a.nextVideo=a.C.i[a.B[b].id];a.videoIndex!==b&&a.ma();a.videoIndex=b}};
KGa=function(a){var b=a.policy.B,c=vT(a.va)/b-IT(a,a.j.info);b=g.Yb(a.B,function(d){return IT(this,d)<c},a);
0>b&&(b=0);a.videoIndex=b;a.nextVideo=a.C.i[a.B[b].id];a.ma()};
LGa=function(a){if(a.Ya.length){var b=a.Ya,c=function(d,e){if("f"===d.info.i||b.includes(uB(d,a.C.isLive)))return d;for(var f=0;f<e.length;f++){var k=a.C.i[e[f].id],l=uB(k,a.C.isLive);if(b.includes(l)){l=d.info.i;var m=k.info.i;if(l===m||IC())return d=d.info.Vb(),e=k.info.Vb(),a.Va.Ba("ombifa",{f:d,t:e}),a.ma(),a.Ia=!0,k;a.Va.Ba("ombifa",{mismatch:"efficient",fc:l,tc:m})}}a.Va.Ba("ombifa",{mismatch:"unselectable",fmts:b.join(".")});return d};
a.nextVideo=c(a.nextVideo,a.I.videoInfos);a.j=c(a.j,a.I.i)}};
IT=function(a,b){if(!a.ya[b.id]){var c=a.C.i[b.id].index.getLocalMaxByterate(a.xa,15);c=b.vv&&a.i&&a.i.index.isLoaded()?c||b.vv:c||b.Ob;a.ya[b.id]=c}c=a.ya[b.id];a.policy.lc&&b.video&&b.video.i>a.policy.lc&&(c*=1.5);return c};
TGa=function(a,b){a=tf(a.C.i,function(c){return c.info.Vb()===b});
if(!a)throw Error("Itag "+b+" from server not known.");return a};
UGa=function(a){var b=[];if("m"===a.u.reason||"s"===a.u.reason)return b;if(era(a.C)){for(var c=Math.max(0,a.videoIndex-2);c<a.videoIndex&&c<a.B.length;c++){var d=a.B[c].Vb();b.push(d)}b.reverse()}return b};
VGa=function(a,b){this.j=(new TextEncoder).encode(a);this.i=(new TextEncoder).encode(b)};
nta=function(a,b){var c,d,e;return g.B(function(f){if(1==f.i){if(!b)return f.return(b);c=MT.Zo("woe");d=new RQ(a.j);return g.A(f,d.encrypt(b,a.i),2)}e=f.j;MT.Kn(c,Math.ceil(b.byteLength/16));return f.return(e)})};
sta=function(a,b){var c,d,e;return g.B(function(f){if(1==f.i){if(!b)return f.return(b);c=MT.Zo("wod");d=new RQ(a.j);return g.A(f,d.decrypt(b,a.i),2)}e=f.j;MT.Kn(c,Math.ceil(b.byteLength/16));return f.return(e)})};
NT=function(a,b,c){this.policy=a;this.i=b;this.va=c;this.u=this.j=0;this.cf=null;this.N=[];this.indexRange=this.initRange=null;this.W=new lS;this.Y=this.ea=!1;a:{if(this.policy.Mc&&this.policy.Er){b={};c=g.q(this.policy.Mc);for(var d=c.next();!d.done;b={qy:b.qy,sy:b.sy},d=c.next())if(d=g.wt(d.value),b.qy=+d.clen,b.sy=+d.csz,0<b.qy&&0<b.sy&&this.policy.j===d.docid&&this.i.info.id===d.fmtid&&this.i.info.lastModified===+d.lmt){c={};b=(c.clen=b.qy,c.csz=b.sy,c.ck=d.ck,c.civ=d.civ,c);break a}}b=void 0}b?
(this.chunkSize=b.csz,this.B=Math.floor(b.clen/b.csz),this.J=b.ck,this.I=b.civ):(this.chunkSize=a.Dr,this.B=0,this.policy.Ed&&(this.J=Ex(16),this.I=Ex(16)));this.C=new Uint8Array(this.chunkSize);this.J&&this.I&&(this.crypto=new VGa(this.J,this.I))};
OT=function(a){return!!a.cf&&a.cf.u};
XGa=function(a,b){if(!OT(a)&&!a.isDisposed()){if(!(a.ea||(a.ea=!0,0<a.B))){var c=PT(a);c=YE(a.policy.j,a.i.info,QT(a),c);RT(a,c)}if(1===b.info.type)a.initRange=xB(0,b.i.totalLength);else if(2===b.info.type){if(!a.cf||1!==a.cf.type)throw Error("deprecated use case");a.indexRange=xB(a.initRange.end+1,b.i.totalLength)}else if(3===b.info.type){if(3===a.cf.type&&!CB(a.cf,b.info)&&(a.N=[],c=a.cf,b.info.Na!==c.Na+(c.Zd?1:0)||0!==b.info.Cb))return;if(b.info.Zd){c=g.q(a.N);for(var d=c.next();!d.done;d=c.next())WGa(a,
d.value);a.N=[]}else{a.N.push(b);a.cf=b.info;return}}a.cf=b.info;WGa(a,b);OT(a)&&(b=new Uint8Array(a.C.buffer,0,a.j),c={downloadedEndTime:-1,maxKnownEndTime:Math.round(a.i.index.getMaxKnownEndTime()),averageByteRate:Math.round(a.i.info.vv)},b=YE(a.policy.j,a.cf.i.info,QT(a),c,a.u,b,a.crypto),RT(a,b,!0))}};
WGa=function(a,b){var c=0,d=YB(b.i);if(a.u<a.B){c=a.B*a.chunkSize;var e,f=((null==(e=b.info.range)?void 0:e.start)||0)+b.info.Cb;c-=f;if(c>=d.length)return;if(0>c)throw Error("Missing data");a.u=a.B;a.j=0}for(e={};c<d.length;){e.Gu=Math.min(d.length-c,a.C.byteLength-a.j);f=new Uint8Array(d.buffer,d.byteOffset+c,e.Gu);a.C.set(f,a.j);a.j+=e.Gu;c+=e.Gu;if(a.j===a.C.length){if(b.info===a.cf&&OT(a)&&c===d.length)break;f=PT(a);f=YE(a.policy.j,a.i.info,QT(a),f,a.u,a.C,a.crypto);RT(a,f);a.isDisposed()||(f=
PT(a),a.va(QT(a),void 0!==f?(f.downloadedEndTime||0)*f.averageByteRate:f.maxKnownEndTime*f.averageByteRate,f.maxKnownEndTime*f.averageByteRate));a.C=new Uint8Array(a.chunkSize);a.j=0;a.u+=1}e={Gu:e.Gu}}};
PT=function(a){return{downloadedEndTime:Math.round(a.cf?a.cf.C:0),maxKnownEndTime:Math.round(a.i.index.getMaxKnownEndTime()),averageByteRate:Math.round(a.i.info.vv)}};
QT=function(a){var b={lmt:a.i.info.lastModified,docid:a.policy.j,fmtid:a.i.info.id,type:a.i.info.mimeType.split(";")[0],csz:a.chunkSize,clen:a.u*a.chunkSize+a.j};a.crypto&&(b.ck=a.J,b.civ=a.I);var c="local://localhost/videoplayback?"+tt(b),d,e;b={itag:+a.i.info.Vb(),mimeType:a.i.info.mimeType,bitrate:8*a.i.info.Ob,lastModified:String(a.i.info.lastModified),initRange:null==(d=a.initRange)?void 0:cqa(d),indexRange:null==(e=a.indexRange)?void 0:cqa(e),url:c};d=a.i.info;if(d=0<d.id.indexOf(";")?d.id.split(";")[1]:
null)b.xtags=d;if(d=a.i.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.i.info.audio){if(d=a.sampleRate)b.audioSampleRate=String(d);if(a=a.numChannels)b.audioChannels=a}return b};
RT=function(a,b,c){c=void 0===c?!1:c;b.then(function(d){(c||4===d)&&a.W.resolve(d)},function(d){a.W.reject(d)})};
YGa=function(a){a=g.MA(a,1886614376);g.uc(a,function(b){return!b.j});
return g.po(a,function(b){return new Uint8Array(b.data.buffer,b.offset+b.data.byteOffset,b.size)})};
ZGa=function(a){var b=ro(a,function(e,f){return e+f.length},0),c=new Uint8Array(b),d=0;
g.uc(a,function(e){c.set(e,d);d+=e.length});
return c};
$Ga=function(a,b,c,d,e){this.ids=a;this.i=b;this.j=c;this.B=d;this.u=e};
ST=function(a,b,c){this.initData=a;this.contentType=b;this.isPrefetch=c;this.i=this.cryptoPeriodIndex=NaN;this.j=[];this.De=!1;if("webm"===(null==b?void 0:b.toLowerCase())||16===a.length)this.De=!0};
aHa=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 k=d.getUint32(c+28);f+=16*k+4}var l=d.getUint32(c+f-4);try{b:{var m=void 0,n=b.subarray(c+f,c+f+l);f=bs;var p=fha;if(TT.length){var r=TT.pop();n&&(Xc(r.i,n),r.u=-1,r.j=-1);m=r}else m=new dd(n);try{var t=le(new f,m,ke(p));break b}finally{m.i.clear(),m.u=-1,m.j=-1,100>TT.length&&TT.push(m)}t=void 0}m=t;
if(null!==m){var w=m;break a}}catch(x){}}c+=e}w=null}catch(x){w=null}}if(null!=w)for(b=g.Cd(w,7),null==b||a.De||(a.cryptoPeriodIndex=b),b=g.Cd(w,10),null!=b&&0<b&&!a.De&&(a.i=b),w=g.Ed(w,2),w=!w.length||w[0]instanceof Uint8Array?w:g.po(w,zd),w=g.q(w),b=w.next();!b.done;b=w.next())a.j.push(g.Jc(b.value,4))};
bHa=function(a){return isNaN(a.cryptoPeriodIndex)?g.Jc(a.initData):""+a.cryptoPeriodIndex};
UT=function(a,b,c){var d=void 0===c?{}:c;c=void 0===d.videoDuration?0:d.videoDuration;var e=void 0===d.tx?void 0:d.tx;d=void 0===d.dA?!1:d.dA;this.videoId=a;this.status=b;this.videoDuration=c;this.tx=e;this.dA=d};
cHa=function(a,b,c,d,e){this.videoId=a;this.formatStream=b;this.j=c;this.bytesDownloaded=d;this.i=e};
VT=function(a){this.i=a;this.offset=0};
WT=function(a){if(a.offset>=a.i.totalLength)throw Error();return ZB(a.i,a.offset++)};
dHa=function(a,b){b=void 0===b?!1:b;var c=WT(a);if(1===c){b=-1;for(c=0;7>c;c++){var d=WT(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+WT(a),d*=128;return b?c:c-d};
XT=function(a,b,c){var d=this;this.Va=a;this.policy=b;this.I=c;this.j=[];this.i=null;this.ea=-1;this.N=0;this.xa=NaN;this.W=0;this.u=NaN;this.ya=0;this.Qa=-1;this.La=this.B=this.J=this.va=null;this.Ta=this.Ia=NaN;this.C=this.Y=this.Ha=this.Wa=null;this.Ya=!1;this.timestampOffset=0;if(this.policy.j){var e=this.I,f=this.policy.j;this.C=new NT(this.policy,e,function(k,l,m){k=new UT(d.policy.j,2,{tx:new cHa(f,k,e.info,l,m)});a.Aa.At(k)});
this.C.W.promise.then(function(k){d.C=null;1===k&&(k=new UT(d.policy.j,k),a.Aa.At(k))},function(k){k=(k.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_");
d.ma();d.Va.Ba("dldbwerr",{em:k});eHa(d);k=new UT(d.policy.j,4,{dA:!0});a.Aa.At(k)})}};
fHa=function(a){return a.j.length?a.j[0]:null};
ZT=function(a){return a.j.length?a.j[a.j.length-1]:null};
jHa=function(a,b,c){if(a.B){var d=a.B.Cb+a.B.j;if(0<c.info.Cb)if(c.info.Na===a.B.Na&&c.info.Cb<d){if(c.info.Cb+c.info.j<=d)return;c=Eqa(c,d-c.info.Cb)[1]}else if(0<=c.info.Na&&0<=a.B.Na&&!CB(a.B,c.info))throw new g.Kv("improper_continuation",yB(a.B),yB(c.info));d=a.B;var e=c.info;(d.Na!==e.Na&&e.Na!==d.Na+1||d.type!==e.type||ah(d.B,e.B)&&d.Na===e.Na?0:fqa(d,e))||$T(a)}else if(0<c.info.Cb)throw new g.Kv("continuation_of_null",yB(c.info));a.B=c.info;a.I=c.info.i;if(0===c.info.Cb){if(a.i)throw new g.Kv("slice_not_fully_processed",
yB(a.i.info),yB(c.info));aU(a)}else!c.info.i.Tg()&&a.J&&jqa(c.info,a.J);if(a.i){d=Fqa(a.i,c);if(!d)throw new g.Kv("failed_to_merge",yB(a.i.info),yB(c.info));a.i=d}else a.i=c;a:{c=g.bC(a.i.info.i.info);if(3!==a.i.info.type){if(!a.i.info.Zd)break a;6===a.i.info.type?gHa(a,b,a.i):bU(a,a.i);a.i=null}for(;a.i;){d=a.i.i.totalLength;if(0>=a.ea&&0===a.N){var f=a.i.i,k=-1;e=-1;if(c){for(var l=0;l+8<f.totalLength;){var m=Cqa(f,l),n=Cqa(f,l+4);l+=m||1;if(1836019558===n)k=l;else if(1835295092===n){e=l;break}}0>
e&&(k=-1)}else{f=new VT(f);for(m=l=!1;;){n=f.getOffset();var p=f;try{var r=dHa(p,!0),t=dHa(p,!1);var w=r;var x=t}catch(z){x=w=-1}p=w;var y=x;if(!(0<p))break;if(408125543!==p)if(524531317===p)l=!0,0<=y&&(e=f.getOffset()+y,m=!0);else{if(l&&(160===p||163===p)&&(0>k&&(k=n),m))break;163===p&&(k=Math.max(0,k),e=f.getOffset()+y);if(160===p){0>k&&(e=k=f.getOffset()+y);break}f.skip(y)}}0>k&&(e=-1)}if(0>k)break;a.ea=k;a.N=e-k}if(a.ea>d)break;a.ea?(d=hHa(a,a.ea),d.u&&!d.info.i.Tg()&&iHa(a,d),gHa(a,b,d),cU(a,
d),a.ea=0):a.N&&(d=hHa(a,0>a.N?Infinity:a.N),a.N-=d.i.totalLength,cU(a,d))}}a.i&&a.i.info.Zd&&(cU(a,a.i),a.i=null)};
bU=function(a,b){!b.info.i.Tg()&&0===b.info.Cb&&(g.bC(b.info.i.info)||b.info.i.info.De())&&Lqa(b);if(1===b.info.type)try{iHa(a,b),kHa(a,b)}catch(d){g.S(d);var c=DB(b.info);c.hms="1";a.Va.handleError("fmt.unparseable",c||{},1)}b.info.i.ZE(b);a.C&&XGa(a.C,b)};
zT=function(a){a.j=[];aU(a);eHa(a)};
eHa=function(a){var b;null==(b=a.C)||b.dispose();a.C=null};
lHa=function(a){var b=a.j.reduce(function(c,d){return c+d.i.totalLength},0);
a.i&&(b+=a.i.i.totalLength);return b};
dU=function(a){return g.po(a.j,function(b){return b.info})};
hHa=function(a,b){var c=a.i;b=Math.min(b,c.i.totalLength);if(b===c.i.totalLength)return a.i=null,c;c=Eqa(c,b);a.i=c[1];return c[0]};
iHa=function(a,b){var c=aC(b);if(nC(b.info.i.info)&&"bt2020"===b.info.i.info.video.primaries){var d=new YA(c);$A(d,[408125543,374648427,174,224,21936,21937])&&(d=d.start+d.i,129===c.getUint8(d)&&1===c.getUint8(d+1)&&c.setUint8(d+1,9))}d=b.info.i.info;mC(d)&&!nC(d)&&(d=aC(b),(new YA(d)).Dw(),dB([408125543,374648427,174,224],21936,d));b.info.i.info.isVideo()&&(d=b.info.i,d.info&&d.info.video&&4===d.info.video.projectionType&&!d.u&&(g.bC(d.info)?d.u=Jpa(c):d.info.De()&&(d.u=Qpa(c))));b.info.i.info.De()&&
b.info.isVideo()&&(c=aC(b),(new YA(c)).Dw(),dB([408125543,374648427,174,224],30320,c)&&dB([408125543,374648427,174,224],21432,c));if(a.policy.Ur&&b.info.i.info.De()){c=aC(b);var e=new YA(c);if($A(e,[408125543,374648427,174,29637])){d=cB(e,!0);e=e.start+e.i;for(var f=0;f<d-1;f++)c.setUint8(e+f,0);c.setUint8(e+d-1,1)}}if(a.uo()&&g.bC(b.info.i.info)){d=aC(b);c=g.DA(d,0,1701606260);f=g.DA(d,0,1836476516);if(c&&f){c.skip(2);var k=uA(c),l=wA(c);d=[];e=[];var m=[],n=[];if(k)for(k=0;k<l;++k)d.push(xA(c)),
e.push(xA(c)),m.push(uA(c)),n.push(uA(c));else for(k=0;k<l;++k)d.push(vA(c)),e.push(vA(c)),m.push(uA(c)),n.push(uA(c));c=g.EA(f);c=new Gpa(e[0]/c,d[0]/c)}else c=null;if(c){if(g.bC(b.info.i.info))for(d=aC(b),e=g.DA(d,0,1701082227);e;)e.markAsSkip(),e=g.DA(d,e.offset+e.size,1701082227);a.Ya=!0;b.info.i.C=c}}b.info.i.Tg()||b.info.i.i||b.info.i.indexRange||Mqa(b)};
gHa=function(a,b,c){if(c.info.i.Tg()){if(a.Ya&&mHa(c)&&(b=aC(c),b=g.DA(b,0,1953658222))){b.skip(1);var d=tA(b)<<16|uA(b),e=d&1,f=d&4;if(d&256){var k=d&512,l=d&1024;d&=2048;var m=wA(b);2>m||(e&&b.skip(4),f&&b.skip(4),e=wA(b),b.skip((m-1)*(4+(k?4:0)+(l?4:0)+(d?4:0))-4),b.data.setUint32(b.offset+b.i,e))}}if(b=a.va&&!!a.va.I.C)if(b=c.info.isVideo())b=Kqa(c),k=a.va,eU?(l=1/b,b=fU(a,b)>=fU(k)+l):b=a.getDuration()>=k.getDuration(),b=!b;b&&mHa(c)&&(b=a.va,eU?(l=Kqa(c),k=1/l,l=fU(a,l),b=fU(b)+k-l):b=b.getDuration()-
a.getDuration(),b=1+b/c.info.duration,Ipa(aC(c),b))}else{k=!1;a.J||(Lqa(c),c.j&&(a.J=c.j,k=!0,jqa(c.info,c.j),l=c.info.i.info,f=aC(c),g.bC(l)?LA(f,1701671783):l.De()&&dB([408125543],307544935,f)));a:{if(f=l=cC(c,a.policy.Ha))f=c.info.i.info.De()&&160===ZB(c.i,0);if(f)a.W+=l,a.u=a.policy.Sb?a.u+l:NaN;else{if(a.policy.qq){var n=a.Va.Dp(Gqa(c),1);e=n;if(0<=a.u&&6!==c.info.type){if(a.policy.Sb&&isNaN(a.Ia)){g.Rx(new g.Kv("Missing duration while processing previous chunk",yB(c.info)));$T(a);break a}f=
n-a.u;var p=f-a.ya;d=c.info.Na;var r=a.La?a.La.Na:-1,t=a.Ta,w=a.Ia;m=a.policy.ye&&f>a.policy.ye;var x=a.policy.oe&&p>a.policy.oe;1E-4<Math.abs(p)&&(n={audio:""+ +a.uo(),sq:d.toFixed(),sliceStart:n,lastSq:r.toFixed(),lastSliceStart:t,lastSliceDuration:w,totalDrift:(1E3*f).toFixed(),segDrift:(1E3*p).toFixed(),skipRewrite:""+(+m||x)},a.Va.handleError("qoe.avsync",n),a.Qa=d);n=0;a.policy.mq&&(m||x||(e=a.u),a.va&&!a.uo()&&g.bC(c.info.i.info)&&(x=a.va,m=x.Qa,x=x.ya,p=.02<Math.abs(x-f),(d===m||d>m&&d>a.Qa)&&
p&&(d=Math.max(.95,Math.min(1.05,(l-(x-f))/l)),Ipa(aC(c),d),d=cC(c,a.policy.Ha),n=l-d,l=d)));a.ya=f+n}}else isNaN(a.u)?e=c.info.startTime:e=a.u;Hqa(c,e)?(isNaN(a.xa)&&(a.xa=e),a.W+=l,a.u=e+l):(l=DB(c.info),l.smst="1",a.Va.handleError("fmt.unparseable",l||{},1))}}a.La=c.info;a.Ia=Jqa(c);0<=c.B&&(a.Ta=c.B);if(k&&a.J){k=nHa(a,!0);EB(c.info,k);a.i&&EB(a.i.info,k);b=g.q(b.info.i);for(l=b.next();!l.done;l=b.next())EB(l.value,k);(c.info.Zd||a.i&&a.i.info.Zd)&&6!==c.info.type||(a.Y=k,b=a.Va,b.i.isManifestless&&
oHa(b,k,null,!!a.I.info.video),a.policy.wc||pHa(a))}}kHa(a,c);a.timestampOffset&&Iqa(c,a.timestampOffset)};
cU=function(a,b){if(b.info.Zd){a.Wa=b.info;if(a.J){var c=a.J,d=nHa(a,!1),e=null;if(a.J.yw()){e=c.data["Stitched-Video-Id"]?c.data["Stitched-Video-Id"].split(",").slice(0,-1):[];var f=c.data["Stitched-Video-Cpn"]?c.data["Stitched-Video-Cpn"].split(",").slice(0,-1):[],k=[];if(c.data["Stitched-Video-Duration-Us"])for(var l=g.q(c.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),m=l.next();!m.done;m=l.next())k.push((Number(m.value)||0)/1E6);l=[];if(c.data["Stitched-Video-Start-Frame-Index"]){m=
g.q(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.q(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 $Ga(e,f,k,l,g.Fpa(c))}a.Va.rG(a.I,d,e);a.Y||a.policy.wc||pHa(a);a.Y=null}aU(a)}a.C&&XGa(a.C,b);if(c=ZT(a))if(c=Fqa(c,b,a.policy.Vi)){a.j.pop();a.j.push(c);return}a.j.push(b)};
aU=function(a){a.i=null;a.ea=-1;a.N=0;a.J=null;a.xa=NaN;a.W=0;a.Y=null};
$T=function(a){a.u=NaN;a.ya=0;a.Qa=-1;a.La=null;a.Ta=NaN;a.Ia=NaN;a.Ha=null;a.Va.Ba("mdstm",{rst4disc:1})};
kHa=function(a,b){if(a.I.info.Kd){if(b.info.i.info.De()){var c=new YA(aC(b));if($A(c,[408125543,374648427,174,28032,25152,20533,18402])){var d=cB(c,!0);c=16!==d?null:hB(c,d)}else c=null;d="webm"}else b.info.N=YGa(aC(b)),c=ZGa(b.info.N),d="cenc";c&&c.length&&(c=new ST(c,d),c.De=b.info.i.info.De(),b.j&&b.j.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.j.cryptoPeriodIndex),a.policy.jj&&b.j&&b.j.u&&(c.i=b.j.u),a.Va.Bt(c))}};
pHa=function(a){var b=a.J,c=Dpa(b);c&&(c.startSecs+=a.xa,a.Va.qG(a.I,c,b.i,b.yw()))};
nHa=function(a,b){var c,d=a.J;if(c=Dpa(d))c.startSecs+=a.xa;return new iA(d.i,a.xa,b?d.ej:a.W,d.ingestionTime,"sq/"+d.i,void 0,void 0,b,c)};
mHa=function(a){return a.info.i.Tg()&&a.info.Na===a.info.i.index.getLastSegmentNumber()};
fU=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.i);return b+a.getDuration()};
qHa=function(a,b){0>b||(a.j.forEach(function(c){Iqa(c,b)}),a.timestampOffset=b)};
gU=function(a,b){this.info=a;this.callback=b;this.state=1;this.N=!1;this.B=0;this.C=!1;this.j=null};
rHa=function(a){return g.qo(a.info.i,function(b){return 3===b.type})};
hU=function(a,b){var c=a.state;a.state=b;a.onStateChange(c);a.callback&&a.callback(a,c)};
iU=function(a,b){b&&a.state<b?hU(a,b):a.callback&&a.callback(a,a.state)};
sHa=function(a){a.j&&a.j.B?(a=a.j.B,a=new zB(a.type,a.i,a.range,"getEmptyStubAfter"+a.I,a.Na,a.startTime+a.duration,0,a.Cb+a.j,0,!1)):(a=a.info.i[0],a=new zB(a.type,a.i,a.range,"getEmptyStubBefore"+a.I,a.Na,a.startTime,0,a.Cb,0,!1));return a};
tHa=function(a,b){this.i=a;this.j=0;this.u=null;this.je=[];this.B=null;(this.length=b?b:0)?1!==this.i.length||this.i[0].j||(this.i[0].j=this.length):1===this.i.length||g.qo(this.i,function(c){return!!c.range})};
uHa=function(a,b,c){a.u&&(VB(a.u,b),b=a.u,a.u=null);for(var d=!1,e=!1,f=0,k=0,l=g.q(a.i),m=l.next();!m.done;m=l.next())if(m=m.value,m.range&&f+m.j<=a.j)f+=m.j;else{if(AB(m)&&!c&&a.j+b.totalLength-k<f+m.j){a.u=b.split(k).Wq;break}var n=3===m.type||4===m.type,p=a.j-f,r=a,t=k,w=b,x=m.i.Kr()&&!p||n&&d&&!e&&1===b.i.length,y=!!c,z=w.totalLength-t;m.range&&(z=Math.min(m.j-p,z));y=m.range?m.Cb+p+z===m.range.length:y;p=new zB(m.type,m.i,m.range,"reslice"+m.I,m.Na,m.startTime,m.duration,m.Cb+p,z,y&&m.u,y);
y=z;t=w.split(t).Wq.split(y).Zz;r.je.push(new $B(p,t,x));r=z;a.j+=r;k+=r;f+=m.j;1===m.type&&(d=!0);n&&(e=!0);if(k===b.totalLength)break}};
vHa=function(a){if(!a.je.length)return[];var b=a.je;a.je=[];a.B=g.Ub(b).info;return b};
wHa=function(a){return a.length-a.j+a.je.reduce(function(b,c){return b+c.i.totalLength},0)};
kU=function(a,b,c,d){gU.call(this,b,d);var e=this;this.i=a;this.Id=c;this.u=new g.K(function(){e.isComplete()||hU(e,5)},3E3);
this.Dd=function(){e.isDisposed()||(jU(e.Id,e.i)?(e.isComplete()||e.u.start(),e.Id.cg(e.i)&&iU(e,2),e.Id.zf(e.i)&&(xHa(e.Id,e.i)?hU(e,4):hU(e,5))):hU(e,5))};
this.u.start();var f;this.j=new tHa(this.info.i,null==(f=this.info.range)?void 0:f.length);yHa(this.Id,this.i,this.Dd);g.gi(this.Dd)};
lU=function(a,b,c){this.Va=a;this.policy=b;this.i=c;this.u=[];this.j=this.Zb=null;this.Y=this.ea=0;this.I=-1;this.N=!1;this.W=-1;this.B=new XT(a,b,c);this.Ob=c.info.Ob;this.J=c.Fw();this.isManifestless=c.Fw();this.C=this.J};
mU=function(a,b){b&&eU&&qHa(a.B,b.QE());a.Zb=b};
nU=function(a){return a.Zb&&a.Zb.Lz()};
oU=function(a,b){a.u.push(b);a.j=g.Ub(b.info.i)};
pU=function(a){for(;a.u.length&&4===a.u[0].state;){var b=a.u.shift();zHa(a,b);a.ea=b.qL()}a.u.length&&(b=a.u[0],b.It()&&(!b.info.Nk()||b instanceof kU)&&zHa(a,b))};
zHa=function(a,b){if(b.It()){var c=b.NC();c=g.q(c);for(var d=c.next();!d.done;d=c.next())d=d.value,a.policy.Y&&b instanceof kU&&a.Va.Ba("omblss",{s:yB(d.info)}),AHa(a,b,d)}};
AHa=function(a,b,c){switch(c.info.type){case 1:case 2:bU(a.B,c);break;case 4:var d=c.info.i,e=d.LI(c),f;(null==(f=a.j)?0:4===f.type)&&hqa(c.info,a.j)&&(a.j=d.Qt(a.j).pop());c=g.q(e);for(d=c.next();!d.done;d=c.next())AHa(a,b,d.value);break;case 3:jHa(a.B,b,c);break;case 6:jHa(a.B,b,c),a.j=c.info}};
yT=function(a,b,c){c=void 0===c?!1:c;if(a.Zb){var d=a.Zb.uf(),e=DC(d,b),f=NaN,k=nU(a);k&&(f=DC(d,k.i.index.getStartTime(k.Na)));if(e===f&&a.j&&a.j.j&&BHa(qU(a),0))return b}a=CHa(a,b,c);return 0<=a?a:NaN};
AT=function(a,b){a.i.Ze();var c=CHa(a,b);if(0<=c)return c;c=Math;var d=c.min,e=a.B;if(e.C)if(e=e.C,e.cf&&3===e.cf.type)e=e.cf.startTime;else if(0<e.B){var f=e.i.index;f=g.oc(f.offsets.subarray(0,f.count),e.B*e.chunkSize);e=e.i.index.getStartTime(0<=f?f:Math.max(0,-f-2))}else e=0;else e=Infinity;b=d.call(c,b,e);a.j=a.i.mm(b).i[0];rU(a)&&a.Zb&&a.Zb.abort();a.Y=0;return a.j.startTime};
DHa=function(a){a.J=!0;a.C=!0;a.I=-1;AT(a,Infinity)};
sU=function(a){var b=0;g.uc(a.u,function(c){var d=b;c=c.j&&c.j.length?wHa(c.j):kqa(c.info);b=d+c},a);
return b+=lHa(a.B)};
tU=function(a,b){if(!a.Zb)return 0;var c=nU(a);if(c&&c.u)return c.C;a=a.Zb.uf(!0);return Sqa(a,b)};
FGa=function(a,b,c,d){xT(a);for(var e=a.B,f=null,k=e.j.length-1;0<=k;k--){var l=e.j[k];l.info.Na>=b&&(e.j.pop(),e.u-=cC(l,e.policy.Ha),f=l.info)}f&&(e.B=0<e.j.length?e.j[e.j.length-1].info:e.Ha,e.policy.tp&&0===e.j.length&&!e.B&&$T(e));e.policy.tp&&(k=f?f.Na:-1,f=f?f.i.info.Vb():"",e.Va.Ba("mdstm",{rollbk:1,itag:f,popped:k,sq:b,lastslc:e.B?e.B.Na:-1,lastfraget:e.u.toFixed(3)}));d>c?AT(a,d):a.j=a.i.dn(b-1,!1).i[0]};
wU=function(a,b){var c;for(c=0;c<a.u.length&&b!==a.u[c];c++);if(c===a.u.length)uU(a,b);else{for(;c<a.u.length;)uU(a,a.u.pop());var d=vU(a);d&&d.i.Tg()&&Uo(b.info.i,function(e){return iqa(e,d)})?a.j=d:BB(b.info.i[0])?a.j=sHa(b):a.j=null}};
rU=function(a){var b;!(b="f"===a.i.info.i)&&(b=a.policy.j)&&(b=a.B,b=!!b.C&&OT(b.C));if(b)return!0;b=nU(a);if(!b)return!1;var c=b.u&&b.Zd;return a.isManifestless&&0<a.W?c||b.Na>=a.W:c};
EHa=function(a){var b;return rU(a)||!(null==(b=ZT(a.B))||!b.info.u)};
qU=function(a){var b=[],c=nU(a);c&&b.push(c);b=g.hc(b,dU(a.B));g.uc(a.u,function(d){g.uc(d.info.i,function(e){d.N&&(b=g.Bp(b,function(f){return!hqa(f,e)}));
(BB(e)||4===e.type)&&b.push(e)})});
a.j&&!eqa(a.j,g.Ub(b),a.j.i.Tg())&&b.push(a.j);return b};
BHa=function(a,b){if(!a.length)return!1;for(b+=1;b<a.length;b++)if(!fqa(a[b-1],a[b]))return!1;return!0};
CHa=function(a,b,c){c=void 0===c?!1:c;if(!a.j||!a.j.j)return NaN;a=qU(a);a:{var d=c;d=void 0===d?!1:d;for(var e=-1,f=0;f<a.length;++f){var k=a[f];if(k.B<=b)if(d)e=f;else if(k.startTime+k.duration>=b){b=f;break a}}b=e}return 0>b?NaN:BHa(a,c?b:0)?a[b].startTime:NaN};
xU=function(a){return!(!a.j||a.j.i===a.i)};
yU=function(a){return xU(a)&&a.i.Ze()&&a.j.i.info.Ob<a.i.info.Ob};
FHa=function(a,b,c){return(a=vU(a))&&!a.u?a.C>b&&a.C<b+c:!1};
vU=function(a){var b=ZT(a.B);return b?b.info:nU(a)};
xT=function(a){g.uc(a.u,function(b){uU(this,b)},a);
a.u=[];a.j=null};
uU=function(a,b){var c=b.info.i[0].i.Tg();b.N&&!c&&(a=a.B,a.ma(),a.Y&&!a.policy.Sf&&(c=a.Va,c.i.isManifestless&&YC(c.i,a.Y.Na,!!a.I.info.video)),a.Y=null,a.J=null,a.B=a.Wa,a.u-=a.W,aU(a));b.dispose()};
GHa=function(a){return!!a.j&&-1!==a.j.Na&&a.j.Na<a.i.index.getFirstSegmentNumber()};
HHa=function(a){var b=a.j;b&&-1===b.Na&&(a=ZT(a.B))&&BB(a.info)&&(a=a.info.Na,b.I="updateLastSliceRequested",b.Na=a)};
IHa=function(a){return Uo(a.u,function(b){return b.C})};
zU=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.callbacks=c;this.status=0;this.i=new UB;this.u=0;this.isDisposed=this.B=!1;this.C=0;this.xhr=new XMLHttpRequest;this.xhr.open(d.method||"GET",a);if(d.headers)for(a=d.headers,b=g.q(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.Ct()};
this.xhr.onload=function(){return e.onDone()};
this.xhr.onerror=function(){return e.onError()};
this.xhr.fetch(function(f){e.j&&e.i.append(e.j);e.j=f;e.u+=f.length;f=(0,g.R)();f-e.C>e.policy.i&&(e.callbacks.Dq(f,e.u),e.C=f)},function(){},d.body||null)};
KHa=function(a,b){var c=this;this.i=a;this.callbacks=b;this.loaded=this.status=0;this.error="";a=wB(this.i.get("range")||"");if(!a)throw Error("bad range");this.range=a;this.j=new UB;JHa(this).then(function(){c.callbacks.Oo()},function(d){c.error=""+d||"unknown_err";
c.callbacks.Oo()})};
JHa=function(a){var b,c,d,e,f,k,l,m,n,p,r,t,w,x,y;return g.B(function(z){if(1==z.i){a.status=200;b=a.i.get("docid");c=hh(a.i.get("fmtid")||"");d=a.i.get("lmt")||"0";e=+(a.i.get("csz")||0);if(!b||!c||!e)throw Error("Invalid local URL");a.i.get("ck")&&a.i.get("civ")&&(f=new VGa(a.i.get("ck"),a.i.get("civ")));k=a.range;l=Math.floor(k.start/e);m=Math.floor(k.end/e);n=l}if(5!=z.i)return n<=m?g.A(z,tta(b,c,d,n,f),5):z.eb(0);p=z.j;if(void 0===p)throw Error("invariant: data is undefined");r=n*e;t=(n+1)*e;
w=Math.max(0,k.start-r);x=Math.min(k.end+1,t)-(w+r);y=new Uint8Array(p.buffer,w,x);a.j.append(y);a.loaded+=x;a.loaded<k.length&&a.callbacks.Dq((0,g.R)(),a.loaded);n++;return z.eb(2)})};
AU=function(a,b){var c=b.Rg,d=void 0===b.yj?1:b.yj,e=void 0===b.WA?d:b.WA,f=void 0===b.Nk?!1:b.Nk,k=void 0===b.xm?!1:b.xm,l=void 0===b.nE?!1:b.nE,m=b.lh,n=b.Na;b=b.We;this.callbacks=a;this.requestNumber=++LHa;this.i=this.now();this.va=this.La=NaN;this.Ha=0;this.B=this.i;this.j=0;this.Qa=this.i;this.xa=0;this.Ta=this.Ia=this.isActive=!1;this.u=0;this.J=NaN;this.W=this.C=Infinity;this.Y=NaN;this.ya=!1;this.I=NaN;this.N=void 0;this.Rg=c;this.policy=this.Rg.va;this.yj=d;this.WA=e;this.Nk=f;this.xm=k;
l&&(this.N=[]);this.lh=m;this.Na=n;this.We=b;this.snapshot=ID(this.Rg);MHa(this);NHa(this,this.i);this.J=(this.I-this.i)/1E3};
OHa=function(a,b){a.url=b;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})};
BU=function(a){var b={rn:a.requestNumber,rt:(a.now()-a.i).toFixed(),lb:a.j,pt:(1E3*a.J).toFixed(),pb:a.yj,stall:(1E3*a.u).toFixed(),hrt:(a.La-a.i).toFixed(),elt:(a.va-a.i).toFixed(),elb:a.Ha},c;a.url&&(null==(c=window.performance)?0:c.getEntriesByName)&&(a=performance.getEntriesByName(a.url))&&a.length&&(a=a[0],b.pedns=(a.domainLookupEnd-a.startTime).toFixed(),b.pecon=(a.connectEnd-a.domainLookupEnd).toFixed(),b.perqs=(a.requestStart-a.connectEnd).toFixed());return b};
QHa=function(a,b,c,d){if(!a.Ia){a.Ia=!0;if(!a.xm){CU(a,b,c);PHa(a,b,c);var e=a.Pn();if(2===e&&d)DU(a,a.j/d,a.j);else if(2===e||1===e)d=(b-a.i)/1E3,(d<=a.policy.i||!a.policy.i)&&!a.Ta&&EU(a)&&DU(a,d,c),EU(a)&&(d=a.Rg,c=Math.max(c,2048),d.i.Qg(1,a.u/c),JD(d));c=a.Rg;b=(b-a.i)/1E3||.05;d=a.J;e=a.Nk;c.I.Qg(b,a.j/b);c.B=ED();e||c.j.Qg(1,b-d)}a.deactivate()}};
PHa=function(a,b,c){var d=(b-a.B)/1E3,e=c-a.j,f=a.Pn();if(a.isActive)1===f&&0<e&&(.2<d||1024>e?(a.u+=d,.2<d&&DU(a,.05,e)):DU(a,d,e),a.Ta=!0);else if(FU(a,c)){if(1===f&&(f=(b-a.i)/1E3,!RHa(a)&&!a.xm)){var k=a.Rg;k.J.Qg(1,f);JD(k)}a.va=b;a.Ha=c;a.isActive=!0}a.xm||gsa(a.Rg,d,e);a.B=b;a.j=c};
DU=function(a,b,c){if(!a.xm){b=Math.max(b,.05);a=a.Rg;var d=b;a.u.Qg(void 0===b?d:b,c/d);a.B=ED()}};
CU=function(a,b,c){c=Math.round(c/1024);a.N&&a.N.push(GU(b-a.Qa,c-a.xa));a.Qa=b;a.xa=c};
SHa=function(a){return a.N?a.N.join(""):""};
FU=function(a,b){return b?a.lh&&1!==a.Pn()?!0:2048<=b:!1};
EU=function(a){return FU(a,a.j)};
THa=function(a){return(a.B-a.i)/1E3};
MHa=function(a){a.Y=a.i+1E3*a.snapshot.delay;a.ya=!1};
HU=function(a,b){if(a.lh&&void 0!==a.Na&&void 0!==a.We){var c=Math,d=c.min,e=a.C;var f=a.lh;var k=a.i;if(sGa(f,a.Na))f=b;else{var l=0;f.Ah&&(l=.2);f=k+1E3*(f.Ig+l)}a.C=d.call(c,e,f);c=Math;d=c.min;e=a.W;f=a.lh;k=a.i;l=tGa(f,a.Na,a.We);2!==l&&(b=l?b:k+1E3*f.Ig,f.Ah&&(b+=1E3*f.Ig));a.W=d.call(c,e,b);a.C<=a.i?MHa(a):(a.Y=a.C,a.ya=!0)}};
RHa=function(a){a.lh&&HU(a,a.now());return a.ya};
NHa=function(a,b){b=void 0===b?a.now():b;if(a.lh){HU(a,b);var c=a.ea?a.lh?1!==a.Pn():!1:a.C!==a.W;if(c){if(c=a.W,b<c){a.I=a.W;return}}else c=a.C;c=Math.max(c,a.Y)}else c=a.Y;var d=a.yj-a.j;0>d&&(d=0);d=1E3*(d*a.snapshot.stall+d/a.snapshot.byterate);d=EU(a)?d+b:d+Math.max(b,c);a.I=d};
GU=function(a,b){for(var c="";4095<a;)c+=GU(4095,0),a-=4095;for(;4095<b;)c+=GU(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))};
IU=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.callbacks=c;this.W=d;this.status=0;this.response=void 0;this.N=this.j=0;this.I=this.J=!1;this.errorMessage="";this.ea=function(f){e.status=f.status;if(f.ok&&f.body&&204!==e.status)e.status=e.status||242,e.ql=f.body.getReader(),e.isDisposed()?e.ql.cancel().catch(function(){}):(e.C=f.headers,e.callbacks.Dt(),UHa(e));
else e.onDone()};
this.Y=function(f){var k=(0,g.R)();e.isDisposed()||(e.B&&(e.i.append(e.B),e.B=void 0),f.done?(e.ql=void 0,e.onDone()):(f=f.value,e.j+=f.length,e.B=f,f=(0,g.R)(),f-e.N>e.policy.i&&(e.N=f,e.callbacks.Dq(k,e.j)),UHa(e)))};
this.onError=function(f){e.errorMessage=String(f);e.J=!0;e.onDone()};
this.i=new UB;this.u=window.AbortController?new AbortController:void 0;this.start(a)};
UHa=function(a){a.ql.read().then(a.Y,a.onError).then(void 0,Ev)};
JU=function(a,b,c){var d=this;c=void 0===c?{}:c;this.callbacks=b;this.j=this.status=0;this.isDisposed=this.i=!1;this.xhr=new XMLHttpRequest;this.xhr.open(c.method||"GET",a);if(c.headers){a=c.headers;b=g.q(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.Ct(f)};
a=pt(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",pt(function(f){d.Dd(f)}),!1)};
MU=function(a,b,c,d,e,f){var k=void 0===f?{}:f;f=void 0===k.nx?[]:k.nx;var l=void 0===k.Tx?!1:k.Tx,m=void 0===k.Gp?0:k.Gp,n=void 0===k.poToken?"":k.poToken;k=void 0===k.Qh?void 0:k.Qh;gU.call(this,b,e);var p=this;this.policy=a;this.lastError=null;this.Y=this.u=0;this.Ha=!1;this.J=this.I=null;this.ya=!1;this.ea="";this.timing=new AU(this,c);this.va=d;this.Tx=l;this.i=g.IB(this.info,this.policy,this.va);this.i.set("rn",this.timing.requestNumber.toString());this.i.set("rbuf",(1E3*m).toFixed().toString());
this.Tx&&this.i.set("smb","1");this.policy.Li&&n&&this.i.set("pot",n);0<this.policy.Bk&&(this.ea||(this.ea=Ex(this.policy.Bk)),this.i.set("bbs",this.ea));this.nx=f||null;this.Qh=k;this.C=VHa(this);this.xa=1*this.policy.fd;this.W=new g.K(this.oY,this.xa,this);this.info.j.J=(0,g.R)();Ypa(KU(this));try{this.xhr=WHa(this),this.W.start(),this.ma("Sent, itag="+this.i.get("itag")+(" seg="+this.info.i[0].Na)+(" range="+this.i.get("range"))+(" time="+Math.round(this.info.i[0].B)+"-"+Math.round(g.Ub(this.info.i).C))+
(" rtp="+(this.timing.I-Date.now()).toFixed(0)))}catch(r){g.Rx(r),this.lastError="net.ssl",g.gi(function(){LU(p)})}};
VHa=function(a){if(!(HB(a.info)&&a.info.Nk()&&a.policy.Ab&&a.nx)||2<=a.info.j.j||0<$C()||!Fra())return!1;var b=a.i.get("aitags");if(!b)return!1;b=hh(b).split(",");for(var c=[],d=g.q(a.nx),e=d.next();!e.done;e=d.next())e=e.value,g.$b(b,e)&&c.push(e);if(!c.length)return!1;a.i.set("altitags",gh(c.join(",")));return!0};
KU=function(a){return oB(a.va,eA(a.i.Vf))};
ZHa=function(a,b){if(400<=b.status)return a.lastError="net.badstatus",5;if(!b.yx())return a.lastError=204===b.status?"net.nocontent":"net.connect",5;var c="";if(XHa(a)){var d=b.gg();d.totalLength<=a.policy.gi&&(c=YB(d),c=nA(c),Hy(c)?a.ma():c="")}if(c){var e=KU(a);(0,g.R)();e.started=0;e.timedOut=0;e.i=0;a.info.Fj(a.i,c);return 3}c=b.Cj();if((d=!!a.info.range&&a.info.range.length)&&d!==c||b.mB())return a.lastError="net.closed",5;a.Zn(!0);if(!d&&a.j&&(d=a.j.je,d.length&&!Dqa(d[0])))return a.lastError=
"net.closed",5;d=rHa(a)?b.getResponseHeader("X-Bandwidth-Est"):0;if(b=rHa(a)?b.getResponseHeader("X-Bandwidth-Est3"):0)a.Ha=!0,a.policy.Ml&&(d=b);QHa(a.timing,(0,g.R)(),c,d?Number(d):0);b=KU(a);(0,g.R)();b.started=0;b.timedOut=0;b.i=0;b=a.info.j;b.j=0;b.C=0;b.I=0;!a.Qh||(0,g.R)()<YHa+3E5||!a.i||fA(a.i.Vf)||!(b=eA(a.i.Vf))||0>b.indexOf("googlevideo.com")||(xpa(a.i.Vf)&&(e=eA(gA(a.i.Vf))),a.Qh.i={primary:b,secondary:e},Gra(b,e),YHa=(0,g.R)());e=a.timing;a.ma("Succeeded, rtpd="+(1E3*e.J+e.i-Date.now()).toFixed(0));
return 4};
LU=function(a){var b;a.ma("Request failed, itag="+a.i.get("itag")+(" seg="+a.info.i[0].Na)+(" sliced="+(null==(b=a.j)?void 0:b.j))+(" error="+a.lastError));if("net.timeout"===a.lastError){b=a.timing;var c=(0,g.R)();if(!b.xm){CU(b,c,1024*b.xa);var d=(c-b.i)/1E3;if(2!==b.Pn())if(EU(b)){b.u+=(c-b.B)/1E3;var e=b.Rg,f=b.j;f=Math.max(f,2048);e.i.Qg(1,b.u/f);JD(e)}else RHa(b)||b.xm||(e=b.Rg,e.J.Qg(1,d),JD(e)),b.va=c;e=b.Rg;f=b.J;var k=b.Nk;e.I.Qg(d,b.j/d);e.B=ED();k||e.j.Qg(1,d-f);gsa(b.Rg,(c-b.B)/1E3,0)}}"net.nocontent"!==
a.lastError?((b="net.timeout"===a.lastError||"net.connect"===a.lastError||"net.closed"===a.lastError)&&!fA(a.i.Vf)?(c=KU(a),c.timedOut+=1):(c=KU(a),c.i+=1),a.timing.j||bqa(a.info.j,b,a.i)):a.policy.Rr?bqa(a.info.j,!0,a.i):0<a.policy.wp&&++a.info.j.I;hU(a,5)};
$Ha=function(a,b){b&&(b=KU(a),b.j+=1);NU(a);a.lastError="net.timeout";LU(a)};
NU=function(a){a.ma();a.xhr&&a.xhr.abort();a.timing.deactivate()};
XHa=function(a){var b=a.xhr.getResponseHeader("content-type"),c=a.xhr.Wv();c=!c||c<=a.policy.gi;return(!a.xhr.au()||!b||-1!==b.indexOf("text/plain"))&&c};
WHa=function(a){if(fA(a.i.Vf))return new KHa(a.i,a.timing);var b=g.mB(a.i);return a.policy.La&&(a.policy.fq&&!isNaN(a.info.We)&&a.info.We>a.policy.qk||a.C?0:Gz())?Hz()?new zU(b,a.policy.C,a.timing):new IU(b,a.policy.C,a.timing):new JU(b,a.timing)};
aIa=function(a){if(!a.policy.C.Ah||!isNaN(a.info.We)&&0<a.info.We)return!1;if(!a.xhr.eq())return a.ma(),!0;var b=a.xhr;b.Wv()?b=!1:(b=b.getResponseHeader("content-type"),b="audio/mp4"===b||"video/mp4"===b||"video/webm"===b);if(!b)return!1;if(isNaN(a.info.We))if(b=a.xhr.getResponseHeader("x-head-seqnum"),!b)a.ma();else if(Number(b)>a.info.i[0].Na)return!1;return!0};
OU=function(a,b,c,d,e){this.Va=a;this.policy=b;this.schedule=c;this.N=d;this.Y=e;this.ea=NaN;this.j=this.J=this.B=null;this.i=this.C=this.I=this.startTimeSecs=NaN;this.u=!1;this.W=NaN};
bIa=function(a,b,c,d,e){return b.Ya&&b.va&&3===tpa(b)?new OU(a,b,c,d,e):null};
cIa=function(a,b){if(a.policy.Mq){var c=b.info.Ob,d=HD(a.schedule);b=b.index.Ig;c=Math.max(1,d/c);a.W=Math.round(1E3*Math.max(((c-1)*b+a.policy.ea)/c,b-a.policy.qc));a.ma()}};
fIa=function(a,b){var c=Date.now()/1E3,d=c-a.startTimeSecs,e=c-a.I,f=e>=a.policy.Zg,k=!1;if(f){var l=0;!isNaN(b)&&b>a.C&&(l=b-a.C,a.C=b);l/e<a.policy.Yq&&(k=!0);a.ma();a.I=c}c=d>=a.policy.qc&&!a.u;if(!f&&!c&&dIa(a,b))return NaN;c&&(a.u=!0,a.ma());a:{d=k;c=Date.now()/1E3-(a.N.vg()||0)-a.J.j-a.policy.ea;f=a.j.startTime;c=f+c;if(d){if(isNaN(b)){a.ma();PU(a,NaN,"n",b);f=NaN;break a}d=b-a.policy.pc;d<c&&(a.ma(),c=d)}else a.u&&(d=c+a.policy.ea-a.ea+a.policy.gr,isNaN(b)||(d=Math.max(d,Math.min(c,b-a.policy.pc))),
c=d);c=Math.max(c,f);a.ma();f=c}a.i=f;if(isNaN(a.i))return a.ma(),a.clear(),NaN;if(!k&&dIa(a,b))return eIa(a,b),NaN;if(a.i<=a.j.startTime)return PU(a,NaN,"y",b),a.clear(),NaN;if(!a.Y(a.i,!1))return!eIa(a,b)&&k&&(PU(a,NaN,"t",b),a.clear()),NaN;a.ma();k=a.i;PU(a,k,"s",b);a.clear();return k};
eIa=function(a,b){return a.Y(a.i,!0)?!1:(PU(a,NaN,"ns",b),a.ma(),a.clear(),!0)};
dIa=function(a,b){return isNaN(b)?!0:isNaN(a.i)?!1:b<a.i+(a.u?a.policy.pc:a.policy.Xq)};
PU=function(a,b,c,d){var e=a.B.Ks();e.ssr_sk=(1E3*b).toFixed(0);e.ssr_t=(1E3*a.i).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.j).toFixed(0);e.ssr_fa=a.u?"1":"0";e.ssr_o=(1E3*a.N.vg()||0).toFixed(0);e.ssr_v=(1E3*d).toFixed(0);b=a.j.i.index;PB(b,a.j.Na,!0)&&(e.ssr_ist=(1E3*b.getStartTime(a.j.Na)).toFixed(0),e.ssr_id=(1E3*b.getDuration(a.j.Na)).toFixed(0));a.Va.Ba("ssr",e)};
gIa=function(){if(!window.performance)return{};var a=window.performance.memory;return a?{jsTotal:a.totalJSHeapSize,jsUsed:a.usedJSHeapSize,msUsed:a.usedMediaSourceMemorySize}:{}};
g.QU=function(a,b,c,d,e,f,k,l,m,n,p){l=void 0===l?!1:l;g.G.call(this);var r=this;this.Aa=a;this.schedule=b;this.policy=c;this.i=d;this.ea=m;this.Qh=n;this.Ab=p;this.timing=new DGa(this.Ab);this.I=new sT(this.schedule,this.policy);this.mediaSource=null;this.W=new g.K(this.Eh,0,this);this.La=new g.K(this.Eh,1E3,this);this.xb=new g.K(this.Eh,void 0,this);this.wb=new g.K(this.Eh,1E4,this);this.N=this.currentTime=NaN;this.va=this.fb=0;this.ya=this.Wa=this.isSuspended=!1;this.Ia="";this.Ha=new BD(5);this.xa=
{};this.jb=this.We=NaN;this.lh=null;this.timestampOffset=NaN;this.kb=!1;this.Ya=0;this.Y=!1;this.J=null;this.Qa=NaN;a=m&&Array.from(m.le.keys());m&&(this.Qa=Date.now());this.j=new ET(this,this.I,c,this.i,e,a);c=NGa(this.j,f,k&&k.id);this.audioTrack=new lU(this,this.policy,c.audio);this.videoTrack=new lU(this,this.policy,c.video);this.videoTrack.B.va=this.audioTrack.B;this.Ta={updateend:this.WQ,error:this.fV};g.J(this,this.W);g.J(this,this.La);g.J(this,this.xb);g.J(this,this.wb);this.B=bIa(this,this.policy,
this.schedule,this.Ha,function(t,w){return hIa(r,t,w)});
this.u=new BT(this,this.i,this.policy,this.videoTrack,this.audioTrack,l);this.C=new wT(this,this.i,this.videoTrack,this.audioTrack,this.policy);this.ma()};
jIa=function(a,b){var c=b.i,d=a.i.isLive;if(a.i.isLive){var e=Date.now();if(!isNaN(a.Qa)&&e-a.Qa>1E3*a.policy.Sr){a.Ba("ombttl",{});return}}if(a.ea&&jU(a.ea,uB(c,d))){d=uB(c,a.i.isLive);if(a.i.isLive&&a.policy.Zu)e=c.mm(Infinity);else{if(!c.indexRange||!c.initRange)return;e=c.indexRange.length+c.initRange.length;var f=iIa(a.ea,d);if(!f){a.Ba("ombooo",{});return}e=c.Zp(f-e)}e&&(f=function(k){try{if(k.isFailed()){var l=k.Ks();a.Ba("ombf",l);wU(b,k);HB(k.info)&&RU(a,b,c,!0);a.Eh()}else SU(a,k)&&a.Eh()}catch(m){k=
xD(m),a.handleError(k.errorCode,k.details,k.severity),TU(a)}},c.I=!0,GB(e)&&oU(b,new kU(d,e,a.ea,f)))}else a.Ba("ombfmt",{})};
kIa=function(a){var b=a.videoTrack.i.index;a.lh=new rGa({Yl:a.policy.Yl,Ah:a.policy.C.Ah,Ig:b.Ig,getLastSegmentNumber:function(){return b.getLastSegmentNumber()},
Os:function(){return b.Os()}})};
VU=function(a,b){b=b||a.videoTrack&&a.videoTrack.j&&a.videoTrack.j.startTime||a.currentTime;var c=a.videoTrack,d=a.j;b=d.nextVideo&&d.nextVideo.index.getSegmentNumberForTime(b)||0;d.xa!==b&&(d.ya={},d.xa=b,FT(d,d.u));b=!LT(d)&&-1<d.W&&8E3>(0,g.R)()-d.W;var e=d.nextVideo&&3*IT(d,d.nextVideo.info)<vT(d.va);if(!b||e)GT(d),HT(d),d.Y=d.Y||d.nextVideo!==d.i;d.nextVideo&&!d.nextVideo.index.isLoaded()&&(d.xa=-1);UU(a,c,d.nextVideo);UU(a,a.audioTrack,a.j.j)};
WU=function(a,b){a.Wa=b;a.Y||(a.ma(),a.isSuspended=!0)};
mIa=function(a){a.policy.hc=!1;try{lIa(a)}catch(b){g.S(b)}};
nIa=function(a){a.mediaSource&&a.mediaSource.i&&a.mediaSource.j&&(vx(a.mediaSource.i,a.Ta,a),vx(a.mediaSource.j,a.Ta,a));mU(a.audioTrack,null);mU(a.videoTrack,null);a.mediaSource=null};
XU=function(a,b){b=void 0===b?!1:b;a.ma();nIa(a);b?(a.ma(),a.Y=!0):a.policy.cd?WU(a,a.kb):WU(a,!1);TU(a)};
YU=function(a){a.mediaSource&&a.mediaSource.zf()&&(XU(a),a.policy.Rp&&a.handleError("fmt.unplayable",{unexpected:1},1))};
$U=function(a,b,c){var d=a.u;if(2===d.i||3===d.i||a.isSuspended&&(!hsa(a.schedule)||a.Wa))return!1;if(a.policy.j&&5<=XE)return g.hr(a.La),!1;if(a.i.isManifestless){if(0<b.u.length&&b.j&&-1===b.j.Na||b.u.length>=a.policy.nk&&!a.policy.Yg||!a.policy.Dk&&0<b.u.length&&!a.policy.C.Ah)return!1;if(b.J)return!a.i.isLive||!isNaN(a.We)}if(IHa(b))return a.ma(),!1;if(!(b.j||a.i.isManifestless&&a.policy.Yg&&b.J)){if(!b.i.Ze())return!1;AT(b,a.currentTime)}d=b.u.length+c.u.length;(b.u.length&&b.u[0].Vu()||c.u.length&&
c.u[0].Vu()||a.i.isLive&&(!a.policy.Yg||!b.u.length))&&--d;if(d+1>=a.policy.rk)return!1;if(!b.j)return sB(b.i.j,a.policy);d=b.j;if(!sB(d.i.j,a.policy))return!1;4===d.type&&d.i.Ze()&&(b.j=g.Ub(d.i.Qt(d)),d=b.j);if(!d.u&&!d.i.cn(d))return!1;var e=a.i.bf||a.i.N;if(a.i.isManifestless&&e){e=b.i.index.getLastSegmentNumber();var f=c.i.index.getLastSegmentNumber();e=Math.min(e,f);if(0<b.i.index.Pu&&0<e&&d.Na>=e)return b.W=e,c.W=e,!1}if(d.i.info.audio&&4===d.type)return!1;if(yU(b)&&!a.policy.Wa)return!0;if(d.u||
sU(b)&&sU(b)+sU(c)>a.policy.kb)return!1;e=!b.C&&!c.C;f=b===a.videoTrack&&a.Y;if(!(c=!!(c.j&&!c.j.u&&c.j.C<d.C)&&(!a.i.isManifestless||c.j&&c.j.C&&d.C)&&e&&!f||a.policy.Ta&&!b.C&&c.C)&&(c=BB(d))){c=d.C;a:if(d=a.u,d=d.j?d.j.Ae:null,a.Y&&d)a=d.startSecs+d.durationSecs+15;else{d=ZU(a,b,!0);!LT(a.j)&&0<a.policy.xa&&(e=((0,g.R)()-a.fb)/1E3,d=Math.min(d,a.policy.xa+a.policy.Fh*e));d=a.currentTime+d;if(a.policy.Kl&&(e=oIa(a)+a.policy.Kl,e<d)){a.Ba("mrl",{ori:d,mod:e},!0);a.policy.sj&&(a.fb=(0,g.R)());a=e;
break a}a=d}c=c>a}return c?!1:(b=b.Zb)&&b.isLocked()?!1:!0};
qIa=function(a,b,c){if($U(a,b,c)){if(b.J){if(a.i.isLive){var d=a.i.Ee&&a.i.N?b.i.dn(a.i.Ee,!1):b.i.mm(Infinity);d.We=a.We}else d=b.i.dn(0,!1);a.B?0===d.We&&(d.C=a.B.W):d.C=a.jb}else if(d=b.j,d.i.Ze()){var e=d.C-a.currentTime,f=!d.range||0===d.j&&0===d.Cb?0:d.range.length-(d.Cb+d.j),k=d.i;if(xU(b)&&b.i.Ze()){var l=Math.min(15,.5*ZU(a,b,!0));var m=yU(b)||e<=l||a.j.N;a.ma("ready to adapt: "+m+", upgrade pending: "+yU(b)+", health: "+e+", max health: "+l);l=m}else l=!1;l&&0===f&&(a.i.isManifestless?k=
b.i:(k=d.startTime+pIa,d.j&&(k+=d.duration),AT(b,k),d=b.j,k=d.i));k.Tg()?(f=a.j,c=uT(a.I,k.info.Ob,c.i.info.Ob,e,0<f.B.length&&0===f.videoIndex&&a.ya),e=xU(b),c=d.i.Jr(d,c),c.range&&1<c.i.length&&(e||c.j.j||c.i[0].i!==d.i?c=d.i.Jr(d,c.i[0].j):(e=c.i[c.i.length-1],k=e.j/c.range.length,!e.Zd&&.4>k&&(c=d.i.Jr(d,c.range.length-e.j)))),d=c):(0>d.Na&&(c=DB(d),c.pr=""+b.u.length,a.C.i&&(c.sk="1"),c.snss=d.I,a.Ba("nosq",c)),d=k.Ou(d));if(a.Y)for(c=g.q(d.i),e=c.next();!e.done;e=c.next())e.value.type=6}else d.i.Tg()?
(c=uT(a.I,b.i.info.Ob,c.i.info.Ob,0),d=d.i.Jr(d,c)):d=d.i.Ou(d);if(a.J&&(c=a.u,e=d.i[0].Na,e=0>e&&!isNaN(c.u)?c.u:e,k=EGa(a.u,d.i[0].B,e),c=a.J.Qn(k,e,d.i[0].i.info.id,b===a.audioTrack?1:2),0>e&&IGa(a.u,0,0,!0),c)){k={decurl_itag:d.i[0].i.info.Vb(),sg:e,st:k.toFixed(3)};if(a.policy.nq&&b.isRequestPending(e-1)){a.Ba("sdai",{wt_daistate_on_sg:e-1});return}a.Ba("sdai",k);e=d;c&&(e.u=new g.bA(c))}a.policy.Xi&&-1!==d.i[0].Na&&d.i[0].Na<a.i.Ee&&(d=b.i.dn(a.i.Ee,!1));oU(b,aV(a,d))}};
aV=function(a,b){BB(b.i[b.i.length-1])&&rIa(a,PGa(a.j,b.i[0].i));var c=kqa(b);c={Rg:a.schedule,yj:c,WA:uGa(a.I,c),Nk:AB(b.i[0]),xm:fA(b.j.i),nE:a.policy.Y};a.lh&&(c.Na=b.i[0].Na,c.We=b.We,c.lh=a.lh);var d={Gp:Math.max(0,b.i[0].B-a.currentTime),nx:a.policy.Ab&&HB(b)&&b.i[0].i.info.video?UGa(a.j):void 0,Tx:a.Y,poToken:a.Aa.X.Md||"",Qh:a.Qh};return new MU(a.policy,b,c,a.xa,function(e,f){try{a:{var k=e.info.i[0].i,l=k.info.video?a.videoTrack:a.audioTrack;if(!(2<=e.state)||e.isComplete()||e.B||!(!a.mediaSource||
a.isSuspended||3<tU(l,a.currentTime))){var m=a.policy.Jb;if(!(!m||e.isComplete()||e.B<m||qB(e.info.j,a.xa))){var n=oB(a.xa,rB(e.info.j,!0));if(!(n.i||n.timedOut||n.started)){var p=lqa(e.info,!0,a.policy);p&&aV(a,p)}}if(e.isComplete()||e.isDisposed()&&3>f){if(a.policy.fb){var r=Object.assign(BU(e.timing),{rst:""+e.state,strm:""+e.xhr.au(),d:SHa(e.timing)});a.Ba("rqs",r)}e.Ha&&a.Ba("sbwe3",{},!0)}if(!a.isDisposed()&&2<=e.state){var t=a.timing,w=e.info.i[0].i,x=!t.B&&w.info.video,y=!t.i&&w.info.audio;
3===e.state?x?t.tick("vrr"):y&&t.tick("arr"):4===e.state?x?(t.B=g.mB(e.i),au(),cu(4)):y&&(t.i=g.mB(e.i)):e.Vu()&&x&&(au(),cu(4));if(3===e.state){wU(l,e);HB(e.info)&&RU(a,l,k,!0);if(a.J){var z=e.info.Qn();z&&a.J.Fj(e.info.i[0].Na,k.info.id,z)}a.Eh()}else if(e.isComplete()&&5===e.info.i[0].type){if(4===e.state){var F=(e.info.i[0].i.info.video?a.videoTrack:a.audioTrack).u[0]||null;F&&F instanceof MU&&F.B&&$Ha(F,!0)}e.dispose()}else{if(!e.isFailed()&&e.C&&2<=e.state&&3!==e.state){var I=e.xhr.getResponseHeader("X-Response-Itag");
if(I){a.ma();var H=TGa(a.j,I),O=e.info.range.length-H.ME();H.I=!0;e.info.i[0].i.I=!1;var ma=H.Zp(O);e.info=ma;if(e.j){var N=e.j,da=ma.i;N.i=da;var qa=da[0].range,Wa=YB(N.je[0].i);YB(g.Ub(N.je).i);for(f=0;f<N.je.length;f++){N.je[f].info=da[f];var cc=da[f].range;N.je[f].i=new UB([new Uint8Array(Wa.buffer,cc.start-qa.start,cc.length)])}}e.C=!1;UU(a,a.videoTrack,H);var dc=a.videoTrack;dc.j&&(dc.j.i=H);var cb=a.Aa;cb.videoData.Xi=Lz("auto",H.info.video.quality,!1,"u");bV(cb);var xc=e.xhr.getResponseHeader("X-Segment-Lmt");
xc&&H.info.lastModified&&H.info.lastModified!==+xc&&wU(a.videoTrack,e)}else e.C=!1}if(4===e.state){if(SU(a,e),a.u){var gb=a.u,md=e.info,Ng=a.J;if(0!==gb.i&&Ng&&md.i[0].isVideo())if(md.i[0].Na>gb.u&&(gb.u=NaN,gb.B=NaN),gb.j&&gb.j.Na===md.i[0].Na){var ff=gb.j.Ae.event;if("start"===ff||"continue"===ff){if(1===gb.i||5===gb.i)gb.j.yw?(gb.Ba("sdai",{ignore:ff,sq:md.i[0].Na}),gb.i=4):(gb.u=md.i[0].Na,gb.B=md.i[0].B,gb.Ba("sdai",{joinad:gb.i,sg:gb.u,st:gb.B.toFixed(3)}),gb.i=2,Ng.WE(gb.j.Ae))}else"stop"!==
ff||1!==gb.i&&5!==gb.i||gb.Ba("sdai",{joinstop:1,st:gb.i,sg:gb.u}),gb.i=5}else 1===gb.i&&(gb.i=5)}}else if(a.policy.La&&e.It()&&!e.isComplete()&&!SU(a,e)&&!e.isFailed())break a;e.isFailed()&&a.ww(e);a.Eh();if(a.policy.Hb&&e.isComplete()&&e.canRetry()&&qB(e.info.j,a.xa)){var zh=oB(a.xa,rB(e.info.j,!1));if(!(zh.u+a.policy.Hb*Zpa(zh,a.policy,!0)>(0,g.R)())){var Oi=lqa(e.info,!1,a.policy);Oi&&aV(a,Oi)}}}}}}}catch(Fl){e=wD(0),H=xD(Fl,0),a.handleError(H.errorCode,H.details,H.severity),e||TU(a)}},d)};
rIa=function(a,b){b&&(a.ma(),a.Aa.MA(b));a.policy.lk&&a.j.Ta&&(b=QGa(a.j,"a"),cV(a.Aa,b.reason,b.audio.info))};
SU=function(a,b){try{var c=b.info.i[0].i.info.video?a.videoTrack:a.audioTrack;if(a.i.isManifestless&&c){c.J&&(b.isDisposed(),b.isComplete()||b.It(),c.J=!1);b.GE()&&a.Ha.Qg(1,b.GE());var d=b.eJ(),e=b.tL(),f=a.i,k;for(k in f.i){var l=f.i[k].index;l.Ik&&(d&&(l.Pu=Math.max(l.Pu,d)),e&&(l.j=Math.max(l.j||0,e)))}}if(b.info.Nk()&&!GB(b.info))for(var m=g.q(b.NC()),n=m.next();!n.done;n=m.next())bU(c.B,n.value);pU(c);return!!c.gg()}catch(p){return p instanceof Error&&(g.Rx(p),b=b.Ks(),b.origin="hrhs",b.msg||
(b.msg=""+p.message),a.handleError("fmt.unplayable",b,1)),!1}};
lIa=function(a){if(a.mediaSource){var b=a.mediaSource.i,c=a.mediaSource.j,d=sIa(a);if(d){if(a.policy.Ar){if(!b.Rn()){var e=a.audioTrack.gg();e&&dV(a,b,e)}c.Rn()||(b=a.videoTrack.gg())&&dV(a,c,b)}a.va||(a.va=(0,g.R)(),a.ma(),a.policy.Y&&a.Ba("apdps",{r:d}))}else{if(a.va){d=(0,g.R)()-a.va;e=tU(a.audioTrack,a.currentTime);var f=tU(a.videoTrack,a.currentTime);a.ma();a.policy.Y&&a.Ba("apdpe",{dur:d.toFixed(),abuf:(1E3*e).toFixed(),vbuf:(1E3*f).toFixed()});a.va=0}if(a.B){d=a.B;e=a.audioTrack;f=EC(a.mediaSource.j.uf());
if(d.B)d=fIa(d,f);else{if(f=e.gg()){var k=f.j;k&&k.C&&k.j&&(e=e.u.length?e.u[0]:null)&&2<=e.state&&!e.isFailed()&&0===e.info.We&&(d.B=e,d.J=k,d.j=f.info,d.startTimeSecs=Date.now()/1E3,d.I=d.startTimeSecs,d.C=d.j.startTime,d.ma())}d=NaN}d&&a.Aa.seekTo(d,{gq:!0,ge:"pollSubsegmentReadahead",Dp:!0})}d=!1;tIa(a,a.videoTrack,c)&&(d=!0,e=a.timing,e.u||(e.u=(0,g.R)(),sI("vda",e.u,e.C),e.j&&(au(),cu(4))));if(a.mediaSource&&!a.mediaSource.zf()&&(tIa(a,a.audioTrack,b)&&(d=a.timing,d.j||(d.j=(0,g.R)(),sI("ada",
d.j,d.C),d.u&&(au(),cu(4))),d=!0),!a.isDisposed()&&a.mediaSource)){!a.policy.hc&&rU(a.videoTrack)&&rU(a.audioTrack)&&LC(a.mediaSource)&&!a.mediaSource.ih()&&(e=nU(a.audioTrack).i,e===a.i.i[e.info.id]&&(a.ma(),e=a.mediaSource,LC(e)&&(e.mediaSource?e.mediaSource.endOfStream():e.Ue.webkitSourceEndOfStream(e.Ue.EOS_NO_ERROR)),e=a.schedule,Ara(ID(e)),e.C=ED(),e.W=!0));e=a.policy.Hr;f=a.policy.Xr;d||!(0<e||f)||!LC(a.mediaSource)||rU(a.videoTrack)||rU(a.audioTrack)||(b.SB(a.currentTime,f,e),c.SB(a.currentTime,
f,e));if(c=d)c=a.mediaSource,c=!(c.i?c.i.supports(0):NC());c&&g.hr(a.W)}}}};
sIa=function(a){if(IHa(a.videoTrack))return a.ma(),"ssf";var b=a.u;if(1===b.i||2===b.i||3===b.i)return"cpm";if(a.policy.Rf||EHa(a.videoTrack)||EHa(a.audioTrack))return"";if(a.C.i){b=a.I;var c=a.videoTrack,d=a.audioTrack;if(c.u.length||d.u.length){var e=0,f=dU(c.B).concat(dU(d.B));f=g.q(f);for(var k=f.next();!k.done;k=f.next())e+=k.value.j;c=c.i.info.Ob+d.i.info.Ob;e/=c;b=e<b.policy.Ak?!1:10<e?!0:10>c*(10-e)/vT(b)}else b=!0;if(!b)return"abr";b=a.videoTrack;if(0<b.u.length&&1===b.B.j.length&&fHa(b.B).info.J<
b.ea)return"seek"}if(!a.ya||!a.policy.xb||10>a.currentTime||360<a.videoTrack.i.info.video.i)return"";b=FHa(a.videoTrack,a.currentTime,a.policy.xb)||FHa(a.audioTrack,a.currentTime,a.policy.xb);return(0<a.videoTrack.u.length||0<a.audioTrack.u.length||$U(a,a.videoTrack,a.audioTrack)||$U(a,a.audioTrack,a.videoTrack))&&b?"nord":""};
tIa=function(a,b,c){if(c.ih())return!0;if(!c.Xy())return!1;var d=b.gg(),e;if(!(e=!d||6===d.info.type)&&(e=a.u)){e=a.u;var f;if(f=0!==e.i&&b===e.xa)e=vU(e.I),f=d.info.Na>(e?e.Na:-1);e=!!f}if(e)return!1;e=d.info;f=nU(b);!f||f.Zd||CB(f,e)||c.abort();!c.cw()||IC()?c.XH(e.i.info.containerType,e.i.info.mimeType):e.i.info.containerType!==c.cw()&&a.Ba("ctu",{ct:IC(),prev_c:c.cw(),curr_c:e.i.info.containerType});f=e.i.C;a.policy.pj&&f&&(e=0+f.duration,f=-f.i,0===c.Gz()&&e===c.DE()||c.kH(0,e),f!==c.kd()&&(c.BB(f),
eU&&qHa(a.audioTrack.B,c.QE())));if(a.i.u&&0===d.info.Cb&&(g.bC(d.info.i.info)||a.policy.lr)){if(null==c.Rn()){e=nU(b);if(!(f=!e||e.i!==d.info.i)){b:if(e=e.N,f=d.info.N,e.length!==f.length)e=!1;else{for(var k=0;k<e.length;k++)if(!g.sc(e[k],f[k])){e=!1;break b}e=!0}f=!e}e=f}else e=c.Rn(),a.policy.ev&&d.info.i.Kr()&&Mqa(d),f=d.info.i.i,e=e!==f&&!g.sc(e,f);e&&a.Ba("initchg",{it:d.info.i.info.id,ty:d.info.type,seg:d.info.Na});a.policy.Qb&&!e&&(g.bC(d.info.i.info)?(LA(aC(d),1836019574),LA(aC(d),1718909296)):
(e=new YA(aC(d)),Upa(e),bB(e,524531317,!0),d.i=d.i.split(e.start+e.i).Wq),d.u=!1)}a.policy.Og&&d.u?d.u=!1:a.policy.Wr&&!c.Rn()&&(e=d.info.i.i,1!==d.i.i.length&&0===d.info.Cb&&!d.u&&3===d.info.type&&e&&(f=new UB([e]),VB(f,d.i),e=YB(f).subarray(e.length),d.i=new UB([e]),d.u=!0));e=a.B&&!!a.B.B&&b.i.info.audio;f=a.i.isManifestless||d.u;if(!(a.i.u&&0!==d.info.Cb||f&&!e)&&dV(a,c,d))return!0;if(e)return!1;e=a.currentTime+ZU(a,b,!1);(e=d.info.B>e)||(a.policy.jb&&(!d.info.Cb||d.info.Zd||10>d.info.B)&&a.Ba("sba",
c.Kb({as:yB(d.info)})),e=d.u?d.info.i.i:null,f=YB(d.i),d.u&&(f=new Uint8Array(f.buffer,0,f.byteOffset+f.length)),e=uIa(a,c,f,d.info,e),"s"===e?(a.Ya=0,e=!0):("i"===e||"x"===e?vIa(a,"checked",e,d.info):("q"===e&&(d.info.isVideo()?(f=a.policy,f.J=Math.floor(.8*f.J),f.ya=Math.floor(.8*f.ya),f.I=Math.floor(.8*f.I)):(f=a.policy,f.W=Math.floor(.8*f.W),f.wb=Math.floor(.8*f.wb),f.I=Math.floor(.8*f.I)),JT(a.j,d.info.i)),eV(a.Aa,{reattachOnAppend:e})),e=!1),e=!e);if(e)return!1;b.Th(d);a.ma("Appended "+yB(d.info)+
", buffered: "+AC(c.uf()));return!0};
vIa=function(a,b,c,d){var e="fmt.unplayable",f=1;"x"===c||"m"===c?(e="fmt.unparseable",d.i.B=e,d.i.info.video&&!KT(a.j)&&JT(a.j,d.i)):"i"===c&&(15>a.Ya?(a.Ya++,e="html5.invalidstate",f=0):e="fmt.unplayable");d=DB(d);var k;d.mrs=null==(k=a.mediaSource)?void 0:MC(k);d.origin=b;d.reason=c;a.handleError(e,d,f)};
oHa=function(a,b,c,d){var e=a.i,f=!1,k=-1;for(n in e.i){var l=qC(e.i[n].info.mimeType)||e.i[n].info.isVideo();if(d===l)if(l=e.i[n].index,!PB(l,b.Na))l.DC(b),f=!0;else if(e.Ya){f=b;var m=l.Sk(f.Na);m&&m.startTime!==f.startTime?(l.segments=[],l.DC(f),f=!0):f=!1;f&&(k=b.Na)}}if(0<=k){var n={};e.Z("clienttemp","restMflIndex",(n[d?"v":"a"]=k,n),!1)}CGa(a.C,b,d,f);a.u.rG(b,c,d)};
dV=function(a,b,c){c.info.i.Ze();var d=c.info.i.i;if(!d||!b.Xy()||b.Rn()===d)return!1;var e=d,f=b.Kz();if(a.policy.Og&&f&&b.isView()&&g.bC(c.info.i.info)){var k=new DataView(d.buffer,d.byteOffset,d.byteLength);(f=Opa(k,f))?e=new Uint8Array(f.buffer,f.byteOffset,f.byteLength):a.Ba("fenc",{})}f=null;(k=c.info.i.Zp(0))&&(f=k.i[0]);a.policy.jb&&a.Ba("sbi",b.Kb({as:yB(c.info)}));a.policy.Gi&&b.abort();d=uIa(a,b,e,f,d);if("s"!==d)return vIa(a,"sepInit",d,c.info),!0;a.ma();return b.ih()};
uIa=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:AC(b.uf()).replace(/,/g,"_"),message:g.Kc(f.message),track:a.mediaSource?b===a.mediaSource.j?"v":"a":"u"},gIa()),a.handleError("player.exception",b),"q";g.S(f)}return"u"}return a.mediaSource.zf()?"m":"s"};
ZU=function(a,b,c){if(a.isSuspended)return 1;var d=b.i.info.audio?a.policy.W:a.policy.J;!a.policy.Wa&&LT(a.j)&&(d=Math.max(d,b.i.info.audio?a.policy.wb:a.policy.ya));c&&(d+=a.policy.kb);var e=LT(a.j)?b.j?b.j.i.info.Ob:b.i.info.Ob:b.Ob;d/=e;0<a.policy.wk&&a.mediaSource&&LC(a.mediaSource)&&(b=b.i.info.video?a.mediaSource.j:a.mediaSource.i)&&!b.ih()&&(b=b.uf(),e=BC(b,a.currentTime),0<=e&&(b=a.currentTime-b.start(e),d+=Math.max(0,Math.min(b-a.policy.wk,a.policy.Qr))));0<a.policy.I&&(d=Math.min(d,a.policy.I));
a.policy.vk&&c&&!LT(a.j)&&(c=a.j,c=IT(c,g.Ub(c.B))+IT(c,c.I.i[0]),c=a.policy.vk*(c/tT(a.I)),c<d&&15>c&&a.Ba("bwcapped",{},!0),c=Math.max(c,15),d=Math.min(d,c));return d};
oIa=function(a){var b=g.Bp(a.Aa.hm(),function(d){return"ad"===d.namespace});
b=g.q(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.start/1E3>a.currentTime)return c.start/1E3;return Infinity};
wIa=function(a,b){yD(b,"cms",function(c){a.policy.Y&&a.Ba("pathprobe",c)},function(c){a.Aa.handleError(c)})};
xIa=function(a,b){a.J=b;a.u&&(a.u.C=b);a.J.oH(a.videoTrack.i.info.De())};
yIa=function(a,b){if(a.mediaSource&&a.mediaSource.j){b-=!isNaN(a.timestampOffset)&&a.policy.dh?a.timestampOffset:0;var c=a.u,d=b;if(0!==c.i&&c.C){var e=c.Ts(d);e!==c.W&&(c.C.wG(c.W,e,c.va,d),c.W=e);c.va=d}a.currentTime!==b&&a.resume();a.C.i&&a.mediaSource&&!a.mediaSource.zf()&&(c=a.currentTime<=b&&b<a.currentTime+10,d=CC(a.mediaSource.j.uf(),a.currentTime+pIa),c&&d&&(a.C.i=!1));a.C.i||(a.currentTime=b);g.hr(a.La)}};
zIa=function(a,b){var c=qU(a.videoTrack).find(function(d){return d.startTime>=b&&hIa(a,d.startTime,!1)});
return c&&c.startTime<b+1.5*c.duration?c.startTime+.1:0};
hIa=function(a,b,c){if(!(a.videoTrack.i.Ze()&&a.audioTrack.i.Ze()&&a.mediaSource&&a.mediaSource.j&&a.mediaSource.i))return!1;if(c&&a.i.isManifestless&&(-1===a.videoTrack.I||-1===a.audioTrack.I))return!0;var d=yT(a.videoTrack,b,c);if(isNaN(d))return!1;a=yT(a.audioTrack,a.policy.va?b:d,c);return isNaN(a)?!1:!0};
UU=function(a,b,c){b.i!==c&&(a.ma(),b.i=c)};
RU=function(a,b,c,d){if(!(c.Ze()||c.Kr()||c.I)&&sB(c.j,a.policy)&&"f"!==c.info.i){if(d){d=a.I;var e=c.info,f=vGa(d,e.video?d.policy.jr:d.policy.Ui,e.Ob);d=d.policy.hh&&e.video?Math.max(f,d.policy.hh):f}else d=0;d=c.Zp(d);a=aV(a,d);GB(d)&&oU(b,a);c.I=!0}};
TU=function(a){try{var b=a.audioTrack;xT(b);zT(b.B);var c=a.videoTrack;xT(c);zT(c.B)}catch(d){g.S(d)}a.policy.j=""};
AIa=function(a,b){a.timestampOffset!==b&&(a.timestampOffset=b,a.ma(),a.u.J=a.timestampOffset,a.Aa.yG(a.timestampOffset),a.i.isManifestless&&(b=a.i,a=a.timestampOffset,b.Ha?b.timestampOffset=a:b.j=a))};
g.fV=function(a){this.pd=a};
gV=function(){g.tx.apply(this,arguments)};
hV=function(a,b,c,d){gV.call(this);var e=this;this.u=-1;this.i={};this.B=new g.K(this.C,0,this);g.J(this,this.B);this.j=new g.K(function(){e.isDisposed()||(e.B.start(Math.random()*c),e.j.start(b))},a,this);
g.J(this,this.j);d.subscribe("fairplay_next_need_key_info",this.I,this)};
BIa=function(a){a=a.subarray(4);a=new Uint16Array(a.buffer,a.byteOffset,a.byteLength/2);return String.fromCharCode.apply(null,a)};
CIa=function(a){var b=a.interval,c=a.Fx;this.url=a.url;this.interval=b;this.Fx=c};
DIa=function(a,b){this.statusCode=a;this.message=b;this.i=this.heartbeatParams=this.errorMessage=null;this.j={};this.nextFairplayKeyId=null};
FIa=function(a){var b=lA(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=CA(b.slice(d+2));if(null==b)return null;a=new DIa(e,a.subarray(c+4));0!==a.statusCode&&(a.errorMessage=g.Yva(a.statusCode));if(c=b["Heartbeat-Url"])a.heartbeatParams=new CIa({url:c,interval:Number(b["Heartbeat-Interval-Secs"])||
60,Fx:Number(b["Heartbeat-Num-Retries"])||4});if(c=b["Authorized-Format-Types"])a.i=c.split(",");if(c=b["Key-Ids"])a.j=EIa(c);a.nextFairplayKeyId=b["Next-Key-Id"];return a};
EIa=function(a){if(!a)return{};a=a.split(";");var b={};g.uc(a,function(c){c=c.split(",");2===c.length&&(b[c[1]]=c[0])});
return b};
iV=function(a,b,c){c=void 0===c?"":c;g.G.call(this);this.message=a;this.requestNumber=b;this.timer=c;this.onError=this.onSuccess=null;this.i=new g.jj(5E3,2E4,.2)};
GIa=function(a,b,c){a.onSuccess=b;a.onError=c};
IIa=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(a.ma(),0!==e.status&&e.response)if(oz("drm_net_r",void 0,a.timer),e=new Uint8Array(e.response),e=FIa(e))a.onSuccess(e,a.requestNumber);else a.onError(a,"drm.net","t.p");else HIa(a,e)},
onError:function(e){HIa(a,e)}};
c&&(b=Nj(b,"access_token",c));g.Mt(b,d);a.ma()};
HIa=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)};
KIa=function(a,b,c,d){var e={timeout:3E4,onSuccess:function(f){if(!a.isDisposed()){a.ma();oz("drm_net_r",void 0,a.timer);var k="LICENSE_STATUS_OK"===f.status?0:9999,l=null;if(f.license)try{l=Oc(f.license)}catch(x){g.S(x)}if(0!==k||l){l=new DIa(k,l);0!==k&&f.reason&&(l.errorMessage=f.reason);if(f.authorizedFormats){k={};for(var m=[],n={},p=g.q(f.authorizedFormats),r=p.next();!r.done;r=p.next())if(r=r.value,r.trackType&&r.keyId){var t=JIa[r.trackType];if(t){"HD"===t&&f.isHd720&&(t="HD720");r.isHdr&&
(t+="HDR");k[t]||(m.push(t),k[t]=!0);var w=null;try{w=Oc(r.keyId)}catch(x){g.S(x)}w&&(n[g.Jc(w,4)]=t)}}l.i=m;l.j=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.gK="Bearer "+d);g.pv(c,"player/get_drm_license",b,e)};
kV=function(a,b,c,d){g.tx.call(this);this.videoData=a;this.X=b;this.ya=c;this.sessionId=d;this.B={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.J=this.W=!1;this.u=null;this.va=[];this.C=[];this.Y=!1;this.i={};this.ea=NaN;this.status="";this.I=NaN;this.j=a.N;this.cryptoPeriodIndex=c.cryptoPeriodIndex;a={};Object.assign(a,this.X.deviceParams);a.cpn=this.videoData.clientPlaybackNonce;this.videoData.La&&(a.vvt=this.videoData.La,this.videoData.mdxEnvironment&&(a.mdx_environment=this.videoData.mdxEnvironment));
this.X.authUser&&(a.authuser=this.X.authUser);this.X.pageId&&(a.pageid=this.X.pageId);isNaN(this.cryptoPeriodIndex)||(a.cpi=this.cryptoPeriodIndex.toString());var e=(e=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.yb()))?e[1]:"";"ATV"===e&&(a.cdt=e);this.B=a;this.B.session_id=d;this.N=!0;"widevine"===this.j.flavor&&(this.B.hdr="1");"playready"===this.j.flavor&&(b=Number(g.dD(b.experiments,"playready_first_play_expiration")),!isNaN(b)&&0<=b&&(this.B.mfpe=""+b),this.N=!1);this.baseUrl=g.kD(this.j)?BIa(c.initData).replace("skd://",
"https://"):this.j.B;this.fairplayKeyId=Lj(this.baseUrl,"ek")||"";if(b=Lj(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(b);this.xa=this.videoData.L("html5_use_drm_retry");this.va=c.j;this.ma();jV(this,{sessioninit:c.cryptoPeriodIndex});this.status="in"};
OIa=function(a,b){jV(a,{createkeysession:1});a.status="gr";oz("drm_gk_s",void 0,a.videoData.xa);a.url=LIa(a);try{a.u=b.createSession(a.ya,function(c){jV(a,{m:c})})}catch(c){b="t.g";
c instanceof DOMException&&(b+=";c."+c.code);a.Z("licenseerror","drm.unavailable",!0,b,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}a.u&&(MIa(a.u,function(c,d){NIa(a,c,d)},function(c,d,e){if(!a.isDisposed()){a.ma();
d=void 0;var f=!0;g.kD(a.j)&&g.dE(a.X)&&a.X.L("html5_enable_safari_fairplay")&&1212433232===e&&(d="ERROR_HDCP",f=!a.X.L("html5_safari_fairplay_ignore_hdcp"));a.error("drm.keyerror",f,c,d)}},function(){a.isDisposed()||(a.ma(),jV(a,{onkyadd:1}),a.J||(a.Z("sessionready"),a.J=!0))},function(c){a.Mo(c)}),g.J(a,a.u))};
LIa=function(a){var b=a.baseUrl;Doa(b)||a.error("drm.net",!0,"t.x");if(!Lj(b,"fexp")){var c=["23898307","23914062","23916106","23883098"].filter(function(e){return a.X.experiments.experiments[e]});
0<c.length&&(a.B.fexp=c.join())}c=g.q(Object.keys(a.B));for(var d=c.next();!d.done;d=c.next())d=d.value,b=Nj(b,d,a.B[d]);return b};
NIa=function(a,b,c){if(!a.isDisposed())if(b){a.ma();jV(a,{onkmtyp:c});a.status="km";switch(c){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":PIa(a,b);return;default:a.Z("ctmp","message_type",{t:c,l:b.byteLength})}a.W||(oz("drm_gk_f",void 0,a.videoData.xa),a.W=!0,a.Z("newsession",a));if(hD(a.j)&&(b=QIa(b),!b))return;g.kD(a.j)&&!a.videoData.useInnertubeDrmService()&&(b=kA(g.Jc(b)));b=new iV(b,++a.requestNumber,a.videoData.xa);GIa(b,function(d,
e){RIa(a,d,e)},function(d,e,f){if(!a.isDisposed()){var k=!1,l;
(l=3<=d.i.j)||(l=a.xa&&36E4<(0,g.R)()-a.ea);l&&(k=!0,e="drm.net.retryexhausted");a.ma();jV(a,{onlcsrqerr:e,info:f});a.error(e,k,f);a.shouldRetry(k,d)&&SIa(a,d)}});
g.J(a,b);TIa(a,b)}else a.error("drm.unavailable",!1,"km.empty")};
PIa=function(a,b){a.ma();jV(a,{sdpvrq:1});a.I=Date.now();if("widevine"!==a.j.flavor)a.error("drm.provision",!0,"e.flavor;f."+a.j.flavor+";l."+b.byteLength);else{var c={cpn:a.videoData.clientPlaybackNonce};Object.assign(c,a.X.deviceParams);c=g.Hj("https://web.archive.org/web/20220130220643/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:lA(b)}),responseType:"arraybuffer"};
g.Pt(c,b,3,500).then(pt(function(d){d=d.xhr;if(!a.isDisposed()){d=new Uint8Array(d.response);var e=lA(d);try{var f=JSON.parse(e)}catch(k){}f&&f.signedResponse?(a.Z("ctmp","drminfo",{provisioning:1}),f=(Date.now()-a.I)/1E3,a.I=NaN,a.Z("ctmp","provs",{et:f.toFixed(3)}),a.u&&a.u.update(d)):(f=f&&f.error&&f.error.message,d="e.parse",f&&(d+=";m."+f),a.error("drm.provision",!0,d))}}),pt(function(d){a.isDisposed()||a.error("drm.provision",!0,"e."+d.errorCode+";c."+(d.xhr&&d.xhr.status))}))}};
lV=function(a){var b;if(b=a.N&&null!=a.u)a=a.u,b=!(!a.i||!a.i.keyStatuses);return b};
TIa=function(a,b){a.status="km";oz("drm_net_s",void 0,a.videoData.xa);if(a.videoData.useInnertubeDrmService()){var c=new g.kx(a.X.Yg),d={context:g.nv(c.config_||g.ov())};d.drmSystem=UIa[a.j.flavor];d.videoId=a.videoData.videoId;d.cpn=a.videoData.clientPlaybackNonce;d.sessionId=a.sessionId;d.licenseRequest=g.Jc(b.message);d.drmParams=a.videoData.drmParams;isNaN(a.cryptoPeriodIndex)||(d.isKeyRotated=!0,d.cryptoPeriodIndex=a.cryptoPeriodIndex);var e,f,k=!!(null==(e=a.videoData.j)?0:null==(f=e.video)?
0:f.isHdr());d.drmVideoFeature=k?"DRM_VIDEO_FEATURE_PREFER_HDR":"DRM_VIDEO_FEATURE_SDR";if(!d.context||!d.context.client){a.ma();a.error("drm.net",!0,"t.r;ic.0");return}if(e=a.X.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.La&&(d.context.user.credentialTransferTokens=
[{token:a.videoData.La,scope:"VIDEO"}]);d.context.request.mdxEnvironment=a.videoData.mdxEnvironment||d.context.request.mdxEnvironment;a.videoData.xb&&(d.context.user.kidsParent={oauthToken:a.videoData.xb});if(g.kD(a.j)){e=a.fairplayKeyId;f=[];for(k=0;k<e.length;k+=2)f.push(parseInt(e.substring(k,k+2),16));d.fairplayKeyId=g.Jc(f)}KIa(b,d,c,g.YF(a.videoData))}else IIa(b,a.url,a.videoData.oauthToken);a.status="rs"};
RIa=function(a,b,c){if(!a.isDisposed()){if(a.requestNumber!==c&&"widevine"===a.j.flavor&&((a.X.L("html5_drm_ignore_out_of_order_responses")||a.X.L("html5_drm_ignore_out_of_order_responses_cfl"))&&jV(a,{drmOOO:a.requestNumber+"."+c},!0),a.X.L("html5_drm_ignore_out_of_order_responses")))return;jV(a,{onlcsrsp:1});a.status="rr";0!==b.statusCode?a.error("drm.auth",!0,"t.f;c."+b.statusCode,b.errorMessage||void 0):(oz("drm_kr_s",void 0,a.videoData.xa),b.heartbeatParams&&b.heartbeatParams.url&&a.videoData.L("outertube_streaming_data_always_use_staging_license_service")&&
(c=a.j.B.match(/(.*)youtube.com/g))&&(b.heartbeatParams.url=c[0]+b.heartbeatParams.url),b.heartbeatParams&&a.Z("newlicense",b.heartbeatParams),b.i&&(a.C=b.i,a.X.L("html5_heartbeat_wait_for_drm_killswitch")||(a.videoData.useInnertubeDrmService()&&!a.videoData.OG&&a.Z("newlicense",new CIa({})),a.videoData.OG=!0),a.Y=Uo(a.C,function(d){return d.includes("HDR")})),b.j&&(a.i=jf(b.j,function(d){return{type:d,
status:"unknown"}})),iD(a.j)&&!a.videoData.useInnertubeDrmService()?b.message=Oc(lA(b.message)):jD(a.j)&&a.videoData.useInnertubeDrmService()&&(b.message=kA(g.Jc(b.message))),a.u&&(a.ma(),jV(a,{updtks:1}),a.status="ku",a.u.update(b.message).then(function(){oz("drm_kr_f",void 0,a.videoData.xa);
lV(a)||(jV(a,{ksApiUnsup:1}),a.Z("keystatuseschange",a))},function(d){d="msuf.req."+a.requestNumber+";msg."+g.Kc(d.message);
a.error("drm.keyerror",!0,d)})),a.J&&(a.ea=(0,g.R)()),g.kD(a.j)&&a.Z("fairplay_next_need_key_info",a.baseUrl,b.nextFairplayKeyId))}};
SIa=function(a,b){var c=b.i.getValue();c=new g.K(function(){TIa(a,b)},c);
g.J(a,c);c.start();g.kj(b.i);a.ma();jV(a,{rtyrq:1})};
VIa=function(a,b){for(var c=[],d=g.q(Object.keys(a.i)),e=d.next();!e.done;e=d.next())e=e.value,c.push(e+"_"+a.i[e].type+"_"+a.i[e].status);return c.join(b)};
WIa=function(a){var b={};b[a.status]=lV(a)?VIa(a,"."):a.C.join(".");return b};
XIa=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};
mV=function(a,b){for(var c in a.i)if("usable"===a.i[c].status&&a.i[c].type===b)return!0;return!1};
jV=function(a,b,c){c=void 0===c?!1:c;a.ma(uD(b));(c||EE(a.X))&&a.Z("ctmp","drmlog",b)};
YIa=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};
QIa=function(a){for(var b="",c=0;c<a.length;c+=2)b+=String.fromCharCode(a[c]);a=Vk(new DOMParser,g.Sg(g.kg("Uses only text content."),b));return a?(a=a.querySelector("Challenge"))&&a.childNodes&&0!==a.childNodes.length?new Uint8Array(ZIa(Mc(a.childNodes[0].nodeValue)).buffer):null:null};
$Ia=function(a,b,c,d){if(a=kA(g.Jc(a)))a={format:"RAW",method:"POST",postBody:a,responseType:"arraybuffer",withCredentials:!0,timeout:3E4},c=Nba(c,d),g.Pt(c,a,3,500).then(function(e){e=new Uint8Array(e.xhr.response);(e=FIa(e))&&e.message&&b.update(e.message)})};
nV=function(a,b,c,d,e){g.G.call(this);this.element=a;this.N=b;this.initData=c;this.i=d;this.j=e;this.sessionId="";this.J=this.I=this.u=this.C=null;this.B=new g.sC(this);g.J(this,this.B);aJa(this)};
aJa=function(a){a.i?(a.B.S(a.i,"message",a.XQ),a.B.S(a.i,"keystatuseschange",a.Mo),a.i.closed&&a.i.closed.then(pt(function(){a.isDisposed()||du("xboxone")&&a.u&&a.u("closed")}),null)):a.j&&(rx(a.B,a.j,["mskeymessage",
"webkitkeymessage"],a.HN),rx(a.B,a.j,["mskeyerror","webkitkeyerror"],a.GN),rx(a.B,a.j,["mskeyadded","webkitkeyadded"],a.FN))};
MIa=function(a,b,c,d,e){a.C=b;a.u=c;a.I=d;a.J=e};
bJa=function(a,b,c){g.ot(c);a.u&&(c instanceof DOMException&&(b+=";n."+c.name+";m."+c.message),a.u(b))};
oV=function(a,b){g.G.call(this);this.element=a;this.i=b;this.I={};this.B=null;this.C=new g.sC(this);this.u=this.j=null;g.J(this,this.C)};
dJa=function(a,b){b=cJa(b,a.i.j);a=a.u.createSession("video/mp4",b);return new nV(null,null,null,null,a)};
eJa=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.u.createSession("video/mp4",b,c);return new nV(null,null,null,null,a)};
pV=function(a,b){var c=a.I[b.sessionId];!c&&a.B&&(c=a.B,a.B=null,c.sessionId=b.sessionId,a.I[b.sessionId]=c);return c};
cJa=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};
qV=function(a,b){g.G.call(this);this.i=g.Nh("video");this.j=null;this.C=[];this.B=new g.sC(this);this.u=new eD("fairplay","com.youtube.fairplay","",b);this.u.j=a;g.J(this,this.B);this.init()};
rV=function(a,b,c,d){gV.call(this);var e=this;this.C=a;this.B=b;this.u=c;this.i=[];this.j=new g.K(function(){e.Z("log_qoe",{wvagt:"timer",reqlen:e.i?e.i.length:-1});if(e.i){if(0<e.i.length){var f=e.i.shift();fJa(e,f.info)}0<e.i.length&&(f=e.i[0].time-(0,g.R)(),e.j.start(Math.max(0,f)))}},0);
g.J(this,this.j);d.subscribe("widevine_set_need_key_info",this.I,this)};
fJa=function(a,b){a:{var c=b.cryptoPeriodIndex;if(isNaN(c)&&0<a.u.size)c=!0;else{for(var d=g.q(a.u.values()),e=d.next();!e.done;e=d.next())if(e.value.cryptoPeriodIndex===c){c=!0;break a}c=!1}}a.Z("log_qoe",{wvagt:"reqnews",canskip:c});c||a.Z("rotated_need_key_info_ready",b)};
sV=function(){this.keys=[];this.values=[]};
tV=function(a){a.keys=[];a.values=[]};
uV=function(a,b){return g.Yb(a.keys,function(c){return g.sc(b,c)})};
vV=function(a,b,c){g.tx.call(this);this.element=a;this.videoData=b;this.X=c;this.i=this.videoData.N;this.drmSessionId=this.videoData.drmSessionId||g.qna();this.j=new Map;this.I=new sV;this.J=new sV;this.u=[];this.Ha=2;this.ea=new g.sC(this);this.Ia=this.xa=!1;this.heartbeatParams=null;this.va=this.W=!1;this.C=null;this.ya=!1;(a=this.element)&&(a.addKey||a.webkitAddKey)||fD()||mD(c.experiments);c=this.videoData.Og;this.N="fairplay"===this.i.flavor||c?pF:gJa;this.B=new oV(this.element,this.i);g.J(this,
this.B);gD(this.i)&&(this.Y=new oV(this.element,this.i),g.J(this,this.Y));g.J(this,this.ea);c=this.element;this.i.keySystemAccess?this.ea.S(c,"encrypted",this.bR):rx(this.ea,c,gD(this.i)?["msneedkey"]:["needkey","webkitneedkey"],this.lW);hJa(this);a:switch(c=this.i,a=this.X.experiments,b=this.j,c.flavor){case "fairplay":19.2999<wka()?(a=c.J,c=c.I,c>=a&&(c=.75*a),b=.5*(a-c),c=new hV(b,a,a-b-c,this)):c=null;break a;case "widevine":c=new rV(a.Xa("disable_license_delay"),!a.Xa("h5_widevine_keyrotationagent_optimization_killswitch"),
b,this);break a;default:c=null}if(this.C=c)g.J(this,this.C),this.C.subscribe("rotated_need_key_info_ready",this.dK,this),this.C.subscribe("log_qoe",this.Mg,this);this.ma("Created, key system "+this.i.keySystem+", final EME "+mD(this.X.experiments));this.Mg({cks:this.i.vf()});c=this.i;"com.youtube.widevine.forcehdcp"===c.keySystem&&c.C&&(this.La=new qV(this.videoData.Mc,this.X.experiments),g.J(this,this.La))};
hJa=function(a){var b=a.B.attach();b?b.then(pt(function(){iJa(a)}),pt(function(c){if(!a.isDisposed()){a.ma();
g.ot(c);var d="t.a";c instanceof DOMException&&(d+=";n."+c.name+";m."+c.message);a.Z("licenseerror","drm.unavailable",!0,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(a.ma(),a.Mg({mdkrdy:1}),a.W=!0);
a.Y&&(b=a.Y.attach())};
kJa=function(a,b,c){a.Ia=!0;c=new ST(b,c);a.X.L("html5_eme_loader_sync")&&(a.I.get(b)||a.I.set(b,c));jJa(a,c)};
jJa=function(a,b){if(!a.isDisposed()){a.Mg({onInitData:1});if(a.X.L("html5_eme_loader_sync")&&a.videoData.B&&a.videoData.B.i){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.ma();a.Mg({initd:b.initData.length,ct:b.contentType});if("widevine"===a.i.flavor)if(a.xa&&!a.videoData.isLivePlayback)wV(a);else{if(!(a.X.L("vp9_drm_live")&&a.videoData.isLivePlayback&&b.De)){a.xa=!0;c=b.cryptoPeriodIndex;var d=b.i;aHa(b);b.De||(d&&b.i!==d?a.Z("ctmp",
"cpsmm",{emsg:d,pssh:b.i}):c&&b.cryptoPeriodIndex!==c&&a.Z("ctmp","cpimm",{emsg:c,pssh:b.cryptoPeriodIndex}));a.Z("widevine_set_need_key_info",b)}}else a.dK(b)}};
iJa=function(a){if(!a.isDisposed())if(a.X.L("html5_drm_set_server_cert")&&!g.kE(a.X)){var b=a.B.setServerCertificate();b?b.then(pt(function(c){EE(a.X)&&a.Z("ctmp","ssc",{success:c})}),pt(function(c){a.Z("ctmp","ssce",{n:c.name,
m:c.message})})).then(pt(function(){xV(a)})):xV(a)}else xV(a)};
xV=function(a){a.isDisposed()||(a.W=!0,a.ma(),a.Mg({onmdkrdy:1}),wV(a))};
lJa=function(a){return"widevine"===a.i.flavor&&a.videoData.L("html5_drm_cpi_license_key")};
wV=function(a){if(a.Ia&&a.W&&!a.va){for(;a.u.length;){var b=a.u[0],c=lJa(a)?bHa(b):g.Jc(b.initData);if(a.j.get(c))if("fairplay"===a.i.flavor)a.j.delete(c);else{a.u.shift();continue}aHa(b);break}a.u.length&&a.createSession(a.u[0])}};
mJa=function(a){var b;if(b=g.fu()){var c;b=!(null==(c=a.B.j)||!c.getMetrics)}b&&(b=a.B.getMetrics())&&(b=g.pA(b),a.Z("ctmp","drm",{metrics:b}))};
zV=function(a){g.G.call(this);var b=this;this.Aa=a;this.i=this.Aa.T();this.videoData=this.Aa.getVideoData();this.Jw=0;this.I=this.u=!1;this.C=0;this.B=g.lD(this.i.experiments,"html5_delayed_retry_count");this.j=new g.K(function(){yV(b.Aa)},g.lD(this.i.experiments,"html5_delayed_retry_delay_ms"));
g.J(this,this.j)};
BV=function(a,b,c){var d=a.videoData.j,e=a.videoData.I;if(("progressive.net.retryexhausted"===b||"fmt.unplayable"===b||"fmt.decode"===b)&&!a.Aa.Cg.B&&d&&"22"===d.Vb())return a.Aa.Cg.B=!0,a.yd("qoe.restart",0,{reason:"fmt.unplayable.22"}),AV(a.Aa),!0;var f=!1,k=a.Jw+3E4<(0,g.R)()||a.j.isActive();if(a.i.L("html5_empty_src")&&a.videoData.isAd()&&"fmt.unplayable"===b&&/Empty src/.test(""+c.msg))return c.origin="emptysrc",a.yd("auth",0,c),!0;var l;if(l=!k)l=a.Aa.Wn(),l=!!(l.Se()||l.isInline()||l.isBackground()||
l.jt()||l.Zs());l&&(c.nonfg="paused",k=!0,a.Aa.pauseVideo());"fmt.decode"===b&&(null==e?0:"mac3"===e.i||"MAC3"===e.i||"meac3"===e.i||"MEAC3"===e.i||"m"===e.i||"M"===e.i)&&a.videoData.L("html5_disable_multichannel_codec_on_decoding_error")&&(Wra(a.i.j,e.i),c.acfallexp=e.i,f=k=!0);!k&&0<a.B&&(a.j.start(),k=!0,c.delayed="1",--a.B);e=a.Aa.Va;if(!k&&((null==d?0:oC(d))||(null==d?0:mC(d)))){var m;if(a.videoData.L("html5_disable_codec_for_playback_on_error")&&e){l=e.j;var n=d.i;l.Qa.has(n)?l=!1:(l.Qa.add(n),
l.W=-1,FT(l,l.u),l=!0);l&&(m="cfallp")}else Wra(a.i.j,d.i),m="cfallexp";m&&(f=k=!0,c[m]=d.i)}if(!k)return nJa(a,c);a.Jw=(0,g.R)();k=a.videoData;k.fb?(k=k.fb.MI(),m=Date.now()/1E3+1800,k=k<m):k=!1;c.e=b;k&&(c.staleprog="1");a.yd("qoe.restart",0,c);if(k&&oJa(a))return pJa(a),!0;du("philips")&&qJa(a);d&&oC(d)?(a.i.j.disableAv1(),f=!0):e?(b=(b=nU(e.videoTrack)||e.videoTrack.j)?b.i:e.videoTrack.i,b.N+=1,JT(e.j,b,!0)):a.videoData.fb&&a.videoData.fb.fH();a.j.isActive()||yV(a.Aa,f);return!0};
nJa=function(a,b){if(a.videoData.jb)return!1;a.i.Ya+=1;if(10>=a.i.Ya)return!1;b.exiled=""+a.i.Ya;a.yd("qoe.start15s",0,b);a.Aa.Z("playbackstalledatstart");return!0};
qJa=function(a){if("GAME_CONSOLE"!==a.i.deviceParams.cplatform)try{window.close()}catch(b){}};
oJa=function(a){return a.u?!0:"yt"!==a.i.va?!1:a.videoData.jb?25>a.videoData.Ab:!a.videoData.Ab};
pJa=function(a){if(!a.u){a.u=!0;var b=a.Aa.getPlayerState();b=g.V(b,4)||b.isSuspended();a.Aa.Nm();b&&!ZF(a.videoData)||a.Aa.Z("signatureexpired")}};
rJa=function(a,b){if((a=a.Aa.ud())&&("fmt.unplayable"===b.errorCode||"html5.invalidstate"===b.errorCode)){var c=a.uj();b.details.merr=c?c.toString():"0";b.details.msg=a.Be()}};
tJa=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="19019";if(oJa(a))return wD(b.severity)&&(b=Object.assign({e:b.errorCode},b.details),b=new g.vD("qoe.restart",b)),a.yd(b.errorCode,b.severity,b.details),pJa(a),!0;6048E5<(0,g.R)()-a.i.Qa&&sJa(a,"signature");return!1};
sJa=function(a,b){try{window.location.reload();a.yd("qoe.restart",0,{detail:"pr."+b});return}catch(c){}a.i.L("tvhtml5_retire_old_players")&&g.kE(a.i)&&qJa(a)};
uJa=function(a,b){a.i.j.B=!1;a.yd("qoe.restart",0,{e:void 0===b?"fmt.noneavailable":b,detail:"hdr"});AV(a.Aa)};
vJa=function(a,b,c,d){this.videoData=a;this.i=b;this.reason=c;this.j=d};
CV=function(a,b,c){this.X=a;this.Qx=b;this.Aa=c;this.W=this.I=this.J=this.j=this.i=this.C=this.N=this.u=0;this.playbackRate=1;this.B=!1};
xJa=function(a,b,c){!a.X.L("html5_tv_ignore_capable_constraint")&&g.kE(a.X)&&(c=c.compose(wJa(a,b)));return c};
yJa=function(a){var b;a.L("html5_exponential_memory_for_sticky")?b=.5>KD(a.X.wc,"sticky-lifetime")?"auto":Nz[$C()]:b=Nz[$C()];return b};
zJa=function(a,b){return 1<a.playbackRate?(a=Ura(a.X.j,b.i.videoInfos,a.playbackRate),new Jz(0,a,!0,"o")):new Jz(0,0,!1,"o")};
AJa=function(a,b){var c=b.videoData.AE;if(a.L("html5_use_video_quality_cap_for_ustreamer_constraint")&&c&&0<c.dI&&Mz(b.videoData.Xi))a=c.dI,b.videoData.Xi=new Jz(0,a,!1,"u");else{var d;if(c&&(null==(d=c.ID)?0:d.length)&&Mz(b.videoData.Xi)){a=new Map;d=g.q(b.i.videoInfos);for(var e=d.next();!e.done;e=d.next())e=e.value,a.set(+e.Vb(),e.video.i);d=[];c=g.q(c.ID);for(e=c.next();!e.done;e=c.next())(e=a.get(e.value))&&d.push(e);a=Math.max.apply(Math,g.u(d));b.videoData.Xi=new Jz(0,a,!1,"u")}}return b.videoData.Xi};
wJa=function(a,b){if(g.kE(a.X)&&Vz(a.X.j,Wz.HEIGHT))var c=b.i.videoInfos[0].video.i;else{var d=!!b.i.i;var e;aE(a.X)&&(e=window.screen&&window.screen.width?new g.dh(window.screen.width,window.screen.height):null);e||(e=a.X.jk?a.X.jk.clone():a.Qx.xg());(cE||oT||d)&&e.scale(g.sE());d=e;zF(b.videoData);b=b.i.videoInfos;if(b.length){e=.85;var f=b[0].video;4!==f.projectionType&&2!==f.projectionType&&3!==f.projectionType||ZD||(e=.45);a=g.lD(a.X.experiments,"html5_viewport_undersend_maximum");for(f=0;f<
b.length;f++){c=b[f];var k=c.video;if(null===d||k.width*e<d.width&&k.height*e<d.height){a&&f&&k.width<d.width*a&&k.height<d.height*a&&(c=b[f-1]);break}}d=c.video;c="93"===c.Vb()?g.Kz[gC(d.width,d.height)]:d.i;c=new Jz(0,c,!1,"r")}else c=pF;c=c.i}c&&(c=Math.max(c,360));return new Jz(0,c,!1,"r")};
BJa=function(a){var b,c,d;return g.B(function(e){switch(e.i){case 1:return a.i.i&&navigator.mediaCapabilities?g.A(e,Promise.resolve(),2):e.return(Promise.resolve());case 2:b=g.q(a.i.videoInfos),c=b.next();case 3:if(c.done){e.eb(0);break}d=c.value;return g.A(e,Oqa(d),4);case 4:c=b.next(),e.eb(3)}})};
DJa=function(a,b){if(!b.videoData.j||a.L("html5_disable_performance_downgrade"))return!1;6E4<g.Ta()-a.N&&(a.u=0);a.u++;a.N=g.Ta();if(4!==a.u)return!1;CJa(a,b.videoData.j);return!0};
FJa=function(a,b,c,d){if(!b||!c||!b.videoData.j)return!1;var e=g.lD(a.X.experiments,"html5_df_downgrade_thresh"),f=a.L("html5_log_media_perf_info"),k=g.lD(a.X.experiments,"hfr_dropped_framerate_fallback_threshold");if(!(5E3>(0,g.R)()-a.C?0:f||0<e||0<k))return!1;a.C=(0,g.R)();c=c.Ay();if(!c)return!1;var l=c.droppedVideoFrames-a.I,m=c.totalVideoFrames-a.W;a.I=c.droppedVideoFrames;a.W=c.totalVideoFrames;var n=0===c.displayCompositedVideoFrames?0:c.displayCompositedVideoFrames||-1;f&&EE(a.X)&&a.Aa.Ba("ddf",
{dr:c.droppedVideoFrames,de:c.totalVideoFrames,comp:n});if(d)return a.i=0,a.j=0,!1;d=60<m?l/m:0;0<d&&(a.J=d);a.j=0<k&&60*d>k?a.j+1:0;if(!e||g.kE(a.X))return!1;a.i=d>e?a.i+1:0;if(3!==a.i)return!1;CJa(a,b.videoData.j);a.Aa.Ba("dfd",Object.assign({dr:c.droppedVideoFrames,de:c.totalVideoFrames},EJa()));return!0};
GJa=function(a,b){return 0>=g.lD(a.X.experiments,"hfr_dropped_framerate_fallback_threshold")||!(b&&b.video&&32<b.video.fps)?!1:3<=a.j?(a.j=0,!0):!1};
CJa=function(a,b){var c=b.i,d=b.video.fps;b=b.video.i-1;var e=aD();c=Dra(c,d);0<+e[c]&&(b=Math.min(+e[c],b));e[c]!==b&&(e[c]=b,g.iy("yt-player-performance-cap",e,604800));a.Aa.ou()};
HJa=function(a,b){if(!b.i.i)return a.B?new Jz(0,360,!1,"b"):pF;for(var c=!1,d=!1,e=g.q(b.i.videoInfos),f=e.next();!f.done;f=e.next())oC(f.value)?c=!0:d=!0;c=c&&d;d=0;f=g.lD(a.X.experiments,"html5_performance_cap_floor");a=a.X.isMobile?240:f;b=g.q(b.i.videoInfos);for(f=b.next();!f.done;f=b.next())if(e=f.value,!c||!oC(e))if(f=bD(e.i,e.video.fps),e=e.video.i,Math.max(f,a)>=e){d=e;break}return new Jz(0,d,!1,"b")};
IJa=function(a){var b=a.Aa.Wn(),c=g.lD(a.X.experiments,"html5_inline_quality_cap"),d=g.lD(a.X.experiments,"html5_background_quality_cap"),e=g.lD(a.X.experiments,"html5_background_cap_idle_secs");return c&&b.isInline()?new Jz(0,c,!1,"v"):!d||"auto"!==yJa(a)||Ou()/1E3<e?pF:b.isBackground()?new Jz(0,d,!1,"v"):pF};
KJa=function(a,b,c){if(a.X.experiments.Xa("html5_disable_client_autonav_cap_for_onesie")&&"onesie"===b.fetchType||g.kE(a.X)&&(1080<=$C(-1)||b.osid))return pF;var d=g.lD(a.X.experiments,"html5_autonav_quality_cap"),e=g.lD(a.X.experiments,"html5_autonav_cap_idle_secs");return d&&b.dl&&Ou()/1E3>e?(c&&(d=JJa(a,c,d)),new Jz(0,d,!1,"e")):pF};
JJa=function(a,b,c){if(a.L("html5_optimality_defaults_chooses_next_higher")&&c)for(a=b.i.videoInfos,b=1;b<a.length;b++)if(a[b].video.i<c)return a[b-1].video.i;return c};
LJa=function(a,b){a.L("html5_log_media_perf_info")&&(a.Aa.Ba("perfdb",EJa()),a.Aa.Ba("hwc",{nch:navigator.hardwareConcurrency},!0),b&&a.Aa.Ba("mcdb",{itags:b.i.videoInfos.filter(function(c){var d;return!1===(null==(d=c.j)?void 0:d.smooth)}).map(function(c){return c.Vb()}).join("-")}))};
EJa=function(){return jf(aD(),function(a){return""+a})};
DV=function(a,b){g.G.call(this);this.i=a;this.J=b;this.j=-1;this.I=!1;this.u=-1;this.playerState=new g.QI;this.seekCount=this.nonNetworkErrorCount=this.networkErrorCount=this.rebufferTimeSecs=this.playTimeSecs=this.C=0;this.delay=new g.K(this.send,6E4,this);this.B=!1;g.J(this,this.delay)};
MJa=function(a){0<=a.j||(3===a.i.Aa.getVisibilityState()?a.I=!0:(a.j=g.tS(a.i),a.delay.start()))};
NJa=function(a){if(!(0>a.u)){var b=g.tS(a.i),c=b-a.C;a.C=b;8===a.playerState.state?a.playTimeSecs+=c:g.YI(a.playerState)&&!g.V(a.playerState,16)&&(a.rebufferTimeSecs+=c)}};
OJa=function(a){switch(a.X.playerCanaryState){case "canary":return"HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";case "holdback":return"HTML5_PLAYER_CANARY_TYPE_CONTROL";default:return"HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}};
PJa=function(a){return(!a.L("html5_health_to_gel")||a.X.Qa+36E5<(0,g.R)())&&(a.L("html5_health_to_gel_canary_killswitch")||a.X.Qa+36E5<(0,g.R)()||"HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"===OJa(a))?a.L("html5_health_to_qoe"):!0};
RJa=function(a,b){b?QJa.test(a):(a=g.wt(a),Object.keys(a).includes("cpn"))};
EV=function(a,b,c,d,e,f,k){var l={format:"RAW"},m={};if(At(a)&&Bt()){if(k){var n;2!==(null==(n=SJa.uaChPolyfill)?void 0:n.state.type)?k=null:(k=SJa.uaChPolyfill.state.data.values,k={"Synth-Sec-CH-UA-Arch":k.architecture,"Synth-Sec-CH-UA-Model":k.model,"Synth-Sec-CH-UA-Platform":k.platform,"Synth-Sec-CH-UA-Platform-Version":k.platformVersion,"Synth-Sec-CH-UA-Full-Version":k.uaFullVersion});m=Object.assign(m,k);l.withCredentials=!0}k=g.P("EOM_VISITOR_DATA",void 0);b.L("enable_web_eom_visitor_data")&&
k?m["X-Goog-EOM-Visitor-Id"]=k:d&&(m["X-Goog-Visitor-Id"]=d);c&&(m["X-Goog-PageId"]=c);e&&(m.Authorization="Bearer "+e);k||d||e||c?l.withCredentials=!0:b.L("html5_send_cpn_with_options")&&QJa.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};
FV=function(a,b,c,d,e,f,k,l){Bt()&&c.token&&(a=xt(a,{ctt:c.token,cttype:c.IH,mdx_environment:c.mdxEnvironment}));f||l&&d.L("nwl_skip_retry")?(null==b?b={}:RJa(a,d.L("html5_assert_cpn_with_regex")),k?d.L("use_new_nwl")?Yw().sendAndWrite(a,b):fx(a,b):d.L("use_new_nwl")?Yw().sendThenWrite(a,b,l):ex(a,b,l)):b?(RJa(a,d.L("html5_assert_cpn_with_regex")),g.Mt(a,b)):g.Ow(a,e)};
TJa=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.u(new Uint8Array(c))));a.close()}return b};
g.HV=function(a){g.G.call(this);var b=this;this.i=a;this.j={};this.sequenceNumber=1;this.Wa=NaN;this.Hd="N";this.N=this.wb=this.fb=this.Ta=this.B=0;this.Ha=this.xb="";this.jb=this.ea=NaN;this.Ya=0;this.Ab=-1;this.kb=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.Qa=this.xa=this.isOffline=this.va=!1;this.Jb=[];this.Y=null;this.C=this.La=this.I=!1;this.u=-1;this.Ia=!1;this.Hb=new g.K(this.BT,750,this);this.W=this.adCpn="";this.adFormat=void 0;this.Sb=0;this.Qb=new Set("cl fexp drm drm_system drm_product ns el adformat live cat".split(" "));
g.J(this,this.Hb);(a="function"===typeof navigator.getBattery?navigator.getBattery():null)&&a.then&&a.then(function(c){b.Y=c});
g.GV(this,0,"vps",["N"])};
g.GV=function(a,b,c,d){var e=a.j[c];e||(e=[],a.j[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))};
IV=function(a,b){var c=a.i.Aa.getCurrentTime();g.GV(a,b,"cmt",[c.toFixed(3)]);c=a.i.Aa.Hh();if(a.J&&1E3*c>a.J.ZM+100&&a.J){var d=a.J,e=d.isAd;c=1E3*c-d.ZM;a.ya=1E3*b-d.uY-c-d.jY;if(!a.i.videoData.L("web_player_dai_csi_killswitch")){c=(0,g.R)()-c;b=a.ya;d=a.i.videoData;var f=d.isAd();if(e||f){f=(e?"ad":"video")+"_to_"+(f?"ad":"video");var k={};!d.L("web_player_csi_ctt_killswitch")&&d.W&&(k.cttAuthInfo={token:d.W,videoId:d.videoId});k.startTime=c-b;qz(f,k);pz({targetVideoId:d.videoId,targetCpn:d.clientPlaybackNonce},
f);oz("pbs",c,f)}else c=a.i.Aa.zj(),c.I!==d.clientPlaybackNonce?(c.C=d.clientPlaybackNonce,c.j=b):g.Rx(new g.Kv("CSI timing logged before gllat",{cpn:d.clientPlaybackNonce}))}a.Ba("gllat",{l:a.ya.toFixed(),prev_ad:+e});delete a.J}};
JV=function(a,b){b=void 0===b?NaN:b;b=0<=b?b:g.tS(a.i);var c=a.i.Aa.Tz();if(!isNaN(a.ea)&&!isNaN(c.j)){var d=c.j-a.ea;0<d&&g.GV(a,b,"bwm",[d,(c.B-a.jb).toFixed(3)])}isNaN(a.ea)&&c.j&&a.isOffline&&UJa(a,!1);a.ea=c.j;a.jb=c.B;isNaN(c.bandwidthEstimate)||g.GV(a,b,"bwe",[c.bandwidthEstimate.toFixed(0)]);EE(a.i.X)&&0!==Object.keys(c.i).length&&a.Ba("bwinfo",c.i);if(EE(a.i.X)||a.i.X.L("html5_log_meminfo"))d=gIa(),Object.values(d).some(function(e){return void 0!==e})&&a.Ba("meminfo",d);
a.Y&&g.GV(a,b,"bat",[a.Y.level,a.Y.charging?"1":"0"]);d=a.i.Aa.getVisibilityState();a.Ab!==d&&(g.GV(a,b,"vis",[d]),a.Ab=d);IV(a,b);(d=VJa(a.i))&&d!==a.Ya&&(g.GV(a,b,"conn",[d]),a.Ya=d);WJa(a,b,c)};
WJa=function(a,b,c){if(!isNaN(c.Gp)){var d=c.Gp;c.u<d&&(d=c.u);g.GV(a,b,"bh",[d.toFixed(3)])}};
KV=function(a){for(var b=0,c=g.q(Object.keys(a.j)),d=c.next();!d.done;d=c.next())d=d.value,b+=d.length+Number(ro(a.j[d],function(e,f){return e+f.length},0));
96E3<b&&(new g.K(a.reportStats,0,a)).start()};
XJa=function(a){a.i.videoData.Ed&&LV(a,"prefetch");a.i.videoData.Ab&&a.Ba("reload",{r:a.i.videoData.reloadReason,ct:a.i.videoData.Ab});a.i.videoData.wb&&LV(a,"monitor");a.i.videoData.isLivePlayback&&LV(a,"live");a.i.videoData.hg&&a.Ba("ctrl",{mode:a.i.videoData.hg},!0);if(a.i.videoData.Eg){var b=a.i.videoData.Eg.replace(/,/g,"_");a.Ba("ytp",{type:b},!0)}a.i.videoData.AK&&(b=a.i.videoData.AK.replace(/,/g,"."),a.Ba("ytrexp",{ids:b},!0));if(!a.i.X.L("html5_disable_gpu_reporting")){var c=a.i.videoData;
b=a.i.X.L("enable_white_noise")||a.i.X.L("enable_webgl_noop")||a.i.X.L("enable_gpu_logging");c=g.QF(c)||g.OF(c)||g.PF(c)||g.RF(c);(b||c)&&(b=(0,g.MV)())&&(a.j.gpu=[b])}ZF(a.i.videoData)&&g.GV(a,g.tS(a.i),"dt",["1"]);EE(a.i.X)&&(b=(0,g.R)()-a.i.X.Qa,a.Ba("playerage",{secs:Math.pow(1.6,Math.round(Math.log(b/1E3)/Math.log(1.6))).toFixed()}));a.C=!0;a.Wa=Ht(function(){a.reportStats()},1E4)};
YJa=function(a){0<=a.u||(a.i.X.Mc||3!==a.i.Aa.getVisibilityState()?a.u=g.tS(a.i):a.Ia=!0)};
LV=function(a,b){var c=a.j.cat||[];c.push(b);a.j.cat=c};
UJa=function(a,b){a.isOffline=b;g.GV(a,g.tS(a.i),"is_offline",[a.isOffline?"1":"0"])};
ZJa=function(a,b,c,d,e){var f=g.tS(a.i);1===b&&g.GV(a,f,"vps",[a.Hd]);var k=a.j.xvt||[];k.push("t."+f.toFixed(3)+";m."+e.toFixed(3)+";g.2;tt."+b+";np.0;c."+c+";d."+d);a.j.xvt=k};
$Ja=function(a){/[^a-zA-Z0-9;.!_-]/.test(a)&&(a=a.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return a};
aKa=function(a){this.i=a;this.N=!1;this.j=0;this.C=-1;this.lastUpdateTime=NaN;this.u=0;this.segments=[];this.J=this.I=0;this.Y=this.i.Ih().volume;this.W=this.i.Ih().muted;this.B=NV(this.i)};
OV=function(a){a.B.startTime=a.u;a.B.endTime=a.j;a.segments.length&&g.Ub(a.segments).isEmpty()?a.segments[a.segments.length-1]=a.B:a.segments.length&&a.B.isEmpty()||a.segments.push(a.B);a.I+=a.j-a.u;a.B=NV(a.i);a.u=a.j};
bKa=function(a){a.segments.length&&a.j===a.u||OV(a);var b=a.segments;a.segments=[];return b};
dKa=function(a){cKa(a);a.J=Ht(function(){a.update()},100);
a.lastUpdateTime=g.tS(a.i);a.B=NV(a.i)};
cKa=function(a){Jt(a.J);a.J=NaN};
eKa=function(a,b,c){c-=a.lastUpdateTime;return b===a.j&&.5<c};
PV=function(a,b,c,d){this.X=b;this.segments=[];this.experimentIds=[];this.La=this.Ab=this.isFinal=this.qd=this.wb=this.autoplay=this.autonav=!1;this.Qb="yt";this.I=this.J=null;this.sendVisitorIdHeader=this.Qa=!1;this.pageId="";this.B="watchtime"===c;this.u="playback"===c;this.Y="delayplay"===c;this.xb="atr"===c;this.Fh="engage"===c;this.sendVisitorIdHeader=!1;this.uri=this.xb?"/api/stats/"+c:"//"+b.sj+"/api/stats/"+c;this.gi=!b.L("embeds_disable_event_label_embedded_unbranded_killswitch")&&this.u&&
b.pfpChazalUi&&a.C;d&&(this.Ab=d.fs,d.rtn&&(this.I=d.rtn),this.B?(this.playerState=d.state,0<d.rti&&(this.J=d.rti)):(this.Ed=d.mos,this.ye=d.volume,d.at&&(this.adType=d.at)),d.autonav&&(this.autonav=d.autonav),null!=d.inview&&(this.hc=d.inview),d.size&&(this.Sb=d.size));this.deviceParams=g.yf(b.deviceParams);this.fd=b.qd;b.L("embeds_js_api_set_1p_cookie")&&b.embedsTokenValue&&(this.embedsTokenValue=b.embedsTokenValue);this.experimentIds=b.experiments.experimentIds;this.Ia=b.Pe;this.Qb=b.va;this.region=
b.region;this.userAge=b.userAge;this.fb=b.Rf;this.Pe=Ou();this.sendVisitorIdHeader=b.sendVisitorIdHeader;this.ea=b.L("vss_pings_using_networkless")||b.L("kevlar_woffle");this.Md=b.L("vss_final_ping_send_and_write");this.va=b.L("vss_use_send_and_write");this.pageId=b.pageId;this.me=b.L("vss_playback_use_send_and_write");this.xa=b.L("use_new_nwl");b.livingRoomAppMode&&(this.livingRoomAppMode=b.livingRoomAppMode);this.Mc=b.i&&b.L("embeds_append_synth_ch_headers");g.WD(b)&&!b.L("embeds_rct_killswitch")&&
(this.embedsRct=b.embedsRct);this.accessToken=g.YF(a);a.PJ&&(this.C=a.PJ);this.adFormat=a.adFormat;this.adQueryId=a.adQueryId;this.autoplay=XF(a);this.autonav=a.dl||this.autonav;this.cd=VF(a);this.clientPlaybackNonce=a.clientPlaybackNonce;this.wb=a.C;a.W&&(this.N=a.W,this.kb=a.Yh);a.mdxEnvironment&&(this.mdxEnvironment=a.mdxEnvironment);this.i=a.bv;this.Ha=a.Qb;a.j&&(this.videoFormat=a.j.Vb(),a.I&&a.I.Vb()!==this.videoFormat&&(this.jb=a.I.Vb()));a.i&&Qz(a.i)&&(this.offlineDownloadUserChoice="1");
this.eventLabel=this.gi?"embedded_unbranded":UF(a);this.La=a.Pe;this.lc=a.gk;if(b=JF(a))this.oe=b;this.pc=a.Ll;this.eventId=a.eventId;this.playlistId=a.oM||a.playlistId;this.hg=a.hg;this.Eg=a.Eg;this.wc=a.lD;this.subscribed=a.subscribed;this.videoId=a.videoId;this.videoMetadata=a.videoMetadata;this.visitorData=a.visitorData;this.osid=a.osid;this.qc=a.hZ;this.referrer=a.referrer;this.Ta=a.mK||a.pM;this.Wa=a.pD;this.Ya=a.uZ;this.userGenderAge=a.userGenderAge;this.ya=a.gY};
QV=function(a,b){return EV(a.uri,a.X,a.pageId,a.sendVisitorIdHeader?a.visitorData:void 0,a.accessToken,b,a.Mc)};
fKa=function(a,b){return function(){var c=a.uri,d=RV(a),e=QV(a),f=a.ea,k=a.va,l=a.xa;l=void 0===l?!1:l;d.cmt=d.len;d.lact="0";var m=b().toFixed(3);d.rt=Number(m).toString();c=g.Hj(c,d);f?(null==e&&(e={}),k?l?Yw().sendAndWrite(c,e):fx(c,e):l?Yw().sendThenWrite(c,e):ex(c,e)):e?g.Mt(c,e):g.Ow(c)}};
RV=function(a){var b={ns:a.Qb,el:a.eventLabel,cpn:a.clientPlaybackNonce,ver:2,cmt:a.j(a.i),fmt:a.videoFormat,fs:a.Ab?"1":"0",rt:a.j(a.Ie),adformat:a.adFormat,content_v:a.cd,etv:a.embedsTokenValue,euri:a.fd,lact:a.Pe,live:a.oe,cl:(424458613).toString(),mos:a.Ed,state:a.playerState,volume:a.ye};a.subscribed&&(b.subscribed="1");Object.assign(b,a.deviceParams);a.autoplay&&(b.autoplay="1");a.wb&&(b.dni="1");a.isFinal&&(b["final"]="1");a.La&&(b.splay="1");a.Ha&&(b.delay=a.Ha);a.Ia&&(b.hl=a.Ia);a.region&&
(b.cr=a.region);a.userGenderAge&&(b.uga=a.userGenderAge);void 0!==a.userAge&&a.fb&&(b.uga=a.fb+a.userAge);void 0!==a.Jb&&(b.len=a.j(a.Jb));!a.B&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!==a.I&&(b.rtn=a.j(a.I));a.Ta&&(b.feature=a.Ta);a.hg&&(b.ctrl=a.hg);a.Eg&&(b.ytr=a.Eg);a.jb&&(b.afmt=a.jb);a.offlineDownloadUserChoice&&(b.ODUC=a.offlineDownloadUserChoice);a.Hb&&(b.lio=a.j(a.Hb));a.B?(b.idpj=a.lc,b.ldpj=a.pc,null!=a.J&&(b.rti=a.j(a.J)),a.ya&&(b.ald=a.ya)):void 0!==a.adType&&
(b.at=a.adType);a.Sb&&(a.u||a.Y||a.B)&&(b.size=a.Sb);null!=a.hc&&(a.u||a.Y||a.B)&&(b.inview=a.j(a.hc));a.B&&(b.volume=SV(a,g.po(a.segments,function(d){return d.volume})),b.st=SV(a,g.po(a.segments,function(d){return d.startTime})),b.et=SV(a,g.po(a.segments,function(d){return d.endTime})),Uo(a.segments,function(d){return 1!==d.playbackRate})&&(b.rate=SV(a,g.po(a.segments,function(d){return d.playbackRate}))),Uo(a.segments,function(d){return"-"!==d.i})&&(b.als=g.po(a.segments,function(d){return d.i}).join(",")));
b.muted=SV(a,g.po(a.segments,function(d){return d.muted?1:0}));
Uo(a.segments,function(d){return 0!==d.visibilityState})&&(b.vis=SV(a,g.po(a.segments,function(d){return d.visibilityState})));
Uo(a.segments,function(d){return 0!==d.connectionType})&&(b.conn=SV(a,g.po(a.segments,function(d){return d.connectionType})));
Uo(a.segments,function(d){return 0!==d.j})&&(b.blo=SV(a,g.po(a.segments,function(d){return d.j})));
Uo(a.segments,function(d){return"-"!==d.B})&&(b.cc=g.po(a.segments,function(d){return d.B}).join(","));
Uo(a.segments,function(d){return"-"!==d.clipId})&&(b.clipid=g.po(a.segments,function(d){return d.clipId}).join(","));
if(Uo(a.segments,function(d){return!!d.u})){var c="au";
a.u&&(c="au_d");b[c]=g.po(a.segments,function(d){return d.u}).join(",")}Bt()&&a.N&&(b.ctt=a.N,b.cttype=a.kb,b.mdx_environment=a.mdxEnvironment);
a.Fh&&(b.etype=void 0!==a.W?a.W:0);a.Wa&&(b.uoo=a.Wa);a.livingRoomAppMode&&"LIVING_ROOM_APP_MODE_UNSPECIFIED"!==a.livingRoomAppMode&&(b.clram=gKa[a.livingRoomAppMode]||a.livingRoomAppMode);a.C&&a.X.L("html5_log_server_url_param")?hKa(a,b):(b.docid=a.videoId,b.referrer=a.referrer,b.ei=a.eventId,b.of=a.qc,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.wc&&(b.ssrt="1"),a.Ya&&(b.upt=a.Ya));(a.u||a.Y)&&a.embedsRct&&(b.rct=
a.embedsRct);return b};
hKa=function(a,b){if(b&&a.C)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.q(Object.keys(a.C)),k=f.next();!k.done;k=f.next())k=k.value,d.has(k)||c.has(k)||e.has(k)&&!a.C[k]||(b[k]=a.C[k])};
SV=function(a,b){return g.po(b,a.j).join(",")};
TV=function(a){g.G.call(this);this.i=a;this.currentPlayerState="paused";this.u=NaN;this.I=[10,10,10,40];this.N=this.J=0;this.va=this.ea=this.ya=this.xa=this.Y=this.W=this.B=!1;this.C=NaN;this.j=new aKa(a)};
jKa=function(a){if(!a.B){a.i.X.L("disable_embedpage_playback_logging")||16623!==a.i.videoData.Gx||g.Rx(Error("Playback for EmbedPage"));var b=UV(a,"playback");a:{if(a.i.X.L("web_player_use_server_vss_schedule")){var c,d=null==(c=a.i.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.i.videoData.gk,k=a.i.videoData.Ll,l=-f;e=g.q(e);for(var m=e.next();!m.done;m=
e.next())m=m.value,c.push(m-l),l=m;c.push(d+k-f);c.push(d);a.I=c;break a}}a.I=[10+a.i.videoData.gk,10,10,40+a.i.videoData.Ll-a.i.videoData.gk,40]}dKa(a.j);b.I=VV(a,!0);0<a.C&&(b.i-=a.C);b.send();a.i.videoData.ir&&(b=a.i.X,d=a.i.videoData,c={html5:"1",video_id:d.videoId,cpn:d.clientPlaybackNonce,ei:d.eventId,ptk:d.ir,oid:d.yJ,ptchn:d.xJ,pltype:d.CJ,content_v:VF(d)},d.qq&&Object.assign(c,{m:d.qq}),b=g.Hj(b.Ha+"ptracking",c),WV(a,b));a.i.videoData.Qb||iKa(a);a.B=!0;a=a.j;a.j=a.i.Aa.getCurrentTime();
a.i.X.L("html5_vss_media_time_killswitch")||(a.j=a.i.Aa.Hh());a.lastUpdateTime=g.tS(a.i);!(0===a.u&&5>a.j)&&2<a.j-a.u&&(a.u=a.j);a.N=!0}};
VV=function(a,b,c){c=void 0===c?NaN:c;var d=g.tS(a.i);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.u=g.Gt(function(){if(!a.isDisposed()){a.u=NaN;a.j.update();var k=bKa(a.j),l=kKa(a,k);b&&(l.J=f);var m=1E3<a.N;!(1<k.length)&&k[0].isEmpty()||m||(l.I=VV(a,!0,f));l.send();a.N++}},1E3*(f-d));
return f};
UV=function(a,b){var c=a.i;c=Object.assign(c.Ih(),c.videoData.Ih());Object.assign(c,{state:a.currentPlayerState});b=new PV(a.i.videoData,a.i.X,b,c);b.i=a.i.Aa.getCurrentTime();a.i.X.L("html5_vss_media_time_killswitch")||(b.i=a.i.Aa.Hh());a.i.videoData.isLivePlayback||(b.Jb=a.i.Aa.getDuration());a.i.videoData.i&&(c=a.i.videoData.i.getIngestionTime(b.i))&&(b.Hb=c-b.i);b.Ie=g.tS(a.i);b.segments=[NV(a.i)];return b};
kKa=function(a,b){var c=UV(a,"watchtime");if(0<a.C){for(var d=g.q(b),e=d.next();!e.done;e=d.next())e=e.value,e.startTime-=a.C,e.endTime-=a.C;c.i-=a.C}else c.i=a.j.j;c.segments=b;return c};
XV=function(a){a.j.update();return kKa(a,bKa(a.j))};
iKa=function(a){a.i.videoData.remarketingUrl&&!a.xa&&(WV(a,a.i.videoData.remarketingUrl),a.xa=!0);a.i.videoData.youtubeRemarketingUrl&&!a.ya&&(WV(a,a.i.videoData.youtubeRemarketingUrl),a.ya=!0);a.i.videoData.googleRemarketingUrl&&!a.ea&&(WV(a,a.i.videoData.googleRemarketingUrl),a.ea=!0);a.i.videoData.ppvRemarketingUrl&&!a.va&&(WV(a,a.i.videoData.ppvRemarketingUrl),a.va=!0);a.uu()};
YV=function(a){if(!a.isDisposed()&&a.B){a.currentPlayerState="paused";var b=XV(a);b.isFinal=!0;b.send();a.dispose()}};
lKa=function(a,b,c){if(!a.W){c||(c=UV(a,"atr"));c.attestationResponse=b;try{c.send()}catch(d){if("Unknown Error"!==d.message)throw d;}a.W=!0}};
WV=function(a,b){var c=g.YF(a.i.videoData),d=a.i.X,e=a.i.L("web_player_vss_pageid_header")?a.i.X.pageId:void 0,f=a.i.X.sendVisitorIdHeader?a.i.videoData.visitorData:void 0,k=a.i.X.L("vss_pings_using_networkless")||a.i.X.L("kevlar_woffle"),l=a.i.X.L("allow_skip_networkless");c=EV(b,d,e,f,c,void 0);FV(b,c,{token:a.i.videoData.W,IH:a.i.videoData.Yh,mdxEnvironment:a.i.videoData.mdxEnvironment},d,void 0,k&&!l,!1,!0)};
mKa=function(){this.endTime=this.startTime=-1;this.B="-";this.playbackRate=1;this.visibilityState=0;this.u="";this.volume=this.connectionType=this.j=0;this.muted=!1;this.i=this.clipId="-"};
ZV=function(a,b,c,d){this.videoData=a;this.X=b;this.Aa=c;this.Ih=d;this.i=void 0};
g.tS=function(a){return nKa(a)()};
nKa=function(a){if(!a.i){var b=g.Sa(function(d){var e=(0,g.R)();d&&631152E6>=e&&(g.S(Error("invalid coreTime.now value: "+e)),e=(new Date).getTime()+2);return e},a.X.L("html5_validate_yt_now")),c=b();
a.i=function(){return Math.round(b()-c)/1E3};
a.Aa.vG()}return a.i};
VJa=function(a){if(navigator.connection&&navigator.connection.type)return oKa[navigator.connection.type]||oKa.other;if(g.kE(a.X)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 1}return 0};
NV=function(a){var b=new mKa;b.B=a.Ih().cc||"-";b.playbackRate=a.Aa.getPlaybackRate();var c=a.Aa.getVisibilityState();0!==c&&(b.visibilityState=c);a.X.Sb&&(b.j=1);c=a.Aa.getAudioTrack();c.Fc&&c.Fc.id&&"und"!==c.Fc.id&&(b.u=c.Fc.id);b.connectionType=VJa(a);b.volume=a.Ih().volume;b.muted=a.Ih().muted;b.clipId=a.Ih().clipid||"-";b.i=a.videoData.NJ||"-";return b};
g.$V=function(a){g.G.call(this);var b=this;this.j=a;this.u=this.qoe=this.i=null;this.Wf=void 0;this.B=new Map;this.j.videoData.isValid()&&!this.j.videoData.Ui&&(this.i=new TV(this.j),g.J(this,this.i),this.qoe=new g.HV(this.j),g.J(this,this.qoe),this.j.videoData.enableServerStitchedDai&&(this.Wf=this.j.videoData.clientPlaybackNonce)&&this.B.set(this.Wf,this.i));PJa(this.j)&&(this.u=new DV(this.j,function(c){b.Ba("h5h",c)}),g.J(this,this.u))};
pKa=function(a){a.u&&MJa(a.u);a.qoe&&YJa(a.qoe)};
qKa=function(a){if(a.j.videoData.enableServerStitchedDai&&a.Wf){var b;null!=(b=a.B.get(a.Wf))&&OV(b.j)}else a.i&&OV(a.i.j)};
rKa=function(a){a.u&&a.u.send();if(a.qoe){var b=a.qoe;if(b.C){"PL"===b.Hd&&(b.Hd="N");var c=g.tS(b.i);g.GV(b,c,"vps",[b.Hd]);b.I||(0<=b.u&&(b.j.user_intent=[b.u.toString()]),b.I=!0);b.xa=!0;b.reportStats(c)}}if(a.j.videoData.enableServerStitchedDai)for(b=g.q(a.B.values()),c=b.next();!c.done;c=b.next())YV(c.value);else a.i&&YV(a.i);a.dispose()};
sKa=function(a,b){a.i&&lKa(a.i,b)};
tKa=function(a){if(!a.i)return null;var b=UV(a.i,"atr");return function(c){a.i&&lKa(a.i,c,b)}};
uKa=function(a,b,c,d){c.adFormat=c.qc;var e=b.Aa;b=new TV(new ZV(c,b.X,{getDuration:function(){return c.lengthSeconds},
getCurrentTime:function(){return e.getCurrentTime()},
Hh:function(){return e.Hh()},
Tz:function(){return e.Tz()},
getPlayerSize:function(){return e.getPlayerSize()},
getAudioTrack:function(){return c.getAudioTrack()},
getPlaybackRate:function(){return e.getPlaybackRate()},
pw:function(){return e.pw()},
getVisibilityState:function(){return e.getVisibilityState()},
zj:function(){return e.zj()},
vG:function(){e.vG()},
ex:function(){e.ex()}},b.Ih));
b.C=d;g.J(a,b);return b};
vKa=function(){this.Gp=0;this.C=this.B=this.j=this.u=NaN;this.i={};this.bandwidthEstimate=NaN};
wKa=function(){this.j=g.My;this.i=[]};
yKa=function(a,b,c){var d=[];for(b=xKa(a,b);b<a.i.length;++b){var e=a.i[b];(e.end<=c||e.contains(c))&&d.push(e);if(e.start>c)break}return d};
zKa=function(a,b){var c=[];a=g.q(a.i);for(var d=a.next();!d.done&&!(d=d.value,d.contains(b)&&c.push(d),d.start>b);d=a.next());return c};
AKa=function(a){return a.i.slice(xKa(a,0x7ffffffffffff),a.i.length)};
xKa=function(a,b){a=pc(a.i,function(c){return b-c.start||1});
return 0>a?-(a+1):a};
BKa=function(a,b){var c=NaN;a=g.q(a.i);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};
CKa=function(a,b){a.i=a.i.filter(function(c){return!b.has(c)})};
aW=function(a,b,c,d){g.G.call(this);this.N=a;this.ea=b;this.C=c;this.W=d;this.j=NaN;this.I=this.J=this.started=!1;this.u=[];this.Y=new g.K(this.Gl,250,this);g.J(this,this.Y);this.B=new g.K(this.Gl,0,this);g.J(this,this.B);this.i=new wKa};
DKa=function(a,b){b=g.q(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c[1];1===c[0]?a.W(g.Ny(d.namespace),d):a.W(g.Oy(d.namespace),d)}};
EKa=function(a){this.j=this.mediaTime=NaN;this.u=this.i=!1;this.B=.001;g.kE(a)&&(this.B=.01)};
bW=function(a,b){return b>a.mediaTime+a.B&&b<a.mediaTime+5};
cW=function(a,b,c,d){if(d=1<d)a.u=!0;if(a.i)b!==a.mediaTime&&(a.i=!1);else if(0<b&&a.mediaTime===b)return c-a.j>(d||!a.u?1500:400);a.mediaTime=b;a.j=c;return!1};
FKa=function(a,b){this.videoData=a;this.i=b};
GKa=function(a,b,c){return vua(b,c).then(function(){return St(new FKa(b,b.B))},function(d){d instanceof Error&&qt(d);
d=b.isLivePlayback&&!g.sD(a.j,!0)?"html5.unsupportedlive":"fmt.noneavailable";var e=b.isLivePlayback&&!g.sD(a.j,!0)?2:1,f={buildRej:"1",a:""+ +!!b.adaptiveFormats,d:""+ +!!b.kb,drm:""+ +AF(b),f18:""+ +(0<=b.Vi.indexOf("itag=18")),c18:""+ +uC('video/mp4; codecs="avc1.42001E, mp4a.40.2"')};b.i&&(AF(b)?(f.f142=""+ +!!b.i.i["142"],f.f149=""+ +!!b.i.i["149"],f.f279=""+ +!!b.i.i["279"]):(f.f133=""+ +!!b.i.i["133"],f.f140=""+ +!!b.i.i["140"],f.f242=""+ +!!b.i.i["242"]),f.cAVC=""+ +vC('video/mp4; codecs="avc1.42001E"'),
f.cAAC=""+ +vC('audio/mp4; codecs="mp4a.40.2"'),f.cVP9=""+ +vC('video/webm; codecs="vp9"'));if(b.N){f.drmsys=b.N.keySystem;var k=0;b.N.i&&(k=Object.keys(b.N.i).length);f.drmst=""+k}return new g.vD(d,f,e)})};
HKa=function(a){this.C=a;this.u=this.j=0;this.B=new cT(50)};
eW=function(a,b,c){g.tx.call(this);this.videoData=a;this.experiments=b;this.N=c;this.j=[];this.B=0;this.u=!0;this.C=!1;this.I=0;c=new IKa;"ULTRALOW"===a.latencyClass&&(c.B=!1);a.wb?c.j=3:g.MF(a)&&(c.j=2);b.Xa("html5_adaptive_seek_to_head_killswitch")||"NORMAL"!==a.latencyClass||(c.N=!0);var d=nua(a);c.C=2===d||-1===d;c.C&&(c.ea++,21530001===FF(a)&&(c.I=g.lD(b,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN));if(du("trident/")||du("edge/"))d=g.lD(b,"html5_platform_minimum_readahead_seconds")||3,c.u=Math.max(c.u,
d);g.lD(b,"html5_minimum_readahead_seconds")&&(c.u=g.lD(b,"html5_minimum_readahead_seconds"));g.lD(b,"html5_maximum_readahead_seconds")&&(c.W=g.lD(b,"html5_maximum_readahead_seconds"));b.Xa("html5_force_adaptive_readahead")&&(c.B=!0);g.lD(b,"html5_allowable_liveness_drift_chunks")&&(c.i=g.lD(b,"html5_allowable_liveness_drift_chunks"));g.lD(b,"html5_readahead_ratelimit")&&(c.Y=g.lD(b,"html5_readahead_ratelimit"));switch(FF(a)){case 21530001:c.i=(c.i+1)/5,"LOW"===a.latencyClass&&(c.i*=2),c.J=b.Xa("html5_live_smoothly_extend_max_seekable_time")}this.policy=
c;this.J=1!==this.policy.j;b=isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead;a.wb&&b--;a.isLowLatencyLiveStream&&"NORMAL"!==a.latencyClass||b++;switch(FF(a)){case 21530001:b=1;break;case 2153E4:b=2}this.policy.C&&b++;this.i=dW(this,b);this.ma()};
JKa=function(a,b){var c=a.i;(void 0===b?0:b)&&a.policy.J&&3===nua(a.videoData)&&--c;return fW(a)*c};
gW=function(a,b){var c=a.Bj(),d=a.policy.i;a.C||(d=Math.max(d-1,0));a=d*fW(a);return b>=c-a};
KKa=function(a,b,c){b=gW(a,b);c||b?b&&(a.u=!0):a.u=!1;a.J=2===a.policy.j||3===a.policy.j&&a.u};
LKa=function(a,b){b=gW(a,b);a.C!==b&&a.Z("livestatusshift",b);a.C=b};
fW=function(a){return a.videoData.i?XC(a.videoData.i)||5:5};
dW=function(a,b){b=Math.max(Math.max(a.policy.ea,Math.ceil(a.policy.u/fW(a))),b);return Math.min(Math.min(8,Math.floor(a.policy.W/fW(a))),b)};
IKa=function(){this.ea=1;this.u=0;this.W=Infinity;this.Y=0;this.B=!0;this.i=2;this.j=1;this.C=!1;this.I=NaN;this.J=this.N=!1};
jW=function(a){g.G.call(this);this.Aa=a;this.X=this.Aa.T();this.B=this.i=0;this.u=new g.K(this.C,1E3,this);this.ya=new hW({delayMs:g.lD(this.X.experiments,"html5_seek_timeout_delay_ms")});this.W=new hW({delayMs:g.lD(this.X.experiments,"html5_long_rebuffer_threshold_ms")});this.Ha=iW(this,"html5_seek_set_cmt");this.ea=iW(this,"html5_seek_jiggle_cmt");this.va=iW(this,"html5_seek_new_elem");this.Ta=iW(this,"html5_unreported_seek_reseek");this.J=iW(this,"html5_long_rebuffer_jiggle_cmt");this.N=new hW({delayMs:2E4});
this.I=iW(this,"html5_ads_preroll_lock_timeout");this.Ia=new hW({delayMs:g.lD(this.X.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Bs:!this.X.L("html5_report_slow_ads_as_error")});this.La=new hW({delayMs:g.lD(this.X.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Bs:!this.X.L("html5_skip_slow_buffering_ad")});this.xa=iW(this,"html5_seek_over_discontinuities");this.Qa=new hW({delayMs:g.lD(this.X.experiments,"html5_slow_start_timeout_delay_ms")});this.Y=iW(this,"html5_slow_start_no_media_source");
this.j={};g.J(this,this.u)};
iW=function(a,b){var c=g.lD(a.X.experiments,b+"_delay_ms");a=a.X.L(b+"_cfl");return new hW({delayMs:c,Bs:a})};
MKa=function(a,b,c,d,e,f,k){var l=BC(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&&k&&m;var n=l+1<c.length?c.start(l+1):d;kW(a,a.xa,m&&!e,f&&!k,"qoe.longrebuffer",function(){b.seekTo(n+.2)},"seekover")};
kW=function(a,b,c,d,e,f,k){NKa(b,c)?(a.yd(e,b,k),b.Bs||f()):(b.uB&&b.triggerTimestamp&&!b.u?(c=(0,g.R)(),d?b.i||(b.i=c):b.i=0,f=!d&&c-b.triggerTimestamp>b.uB,c=b.i&&c-b.i>b.UG||f?b.u=!0:!1):c=!1,c&&(c=Object.assign({},a.Kb(b)),c.wn=k,c.we=e,c.wsuc=d,a.Aa.Ba("workaroundReport",c),d&&(b.reset(),a.j[e]=!1)))};
hW=function(a){var b=void 0===a?{}:a;a=void 0===b.delayMs?0:b.delayMs;var c=void 0===b.UG?1E3:b.UG,d=void 0===b.uB?3E4:b.uB;b=void 0===b.Bs?!1:b.Bs;this.i=this.triggerTimestamp=this.j=this.startTimestamp=0;this.u=!1;this.B=Math.ceil(a/1E3);this.UG=c;this.uB=d;this.Bs=b};
NKa=function(a,b){if(!a.B||a.triggerTimestamp)return!1;if(!b)return a.reset(),!1;b=(0,g.R)();if(!a.startTimestamp)a.startTimestamp=b,a.j=0;else if(a.j>=a.B)return a.triggerTimestamp=b,!0;a.j+=1;return!1};
mW=function(a){g.G.call(this);var b=this;this.Aa=a;this.X=this.Aa.T();this.videoData=this.Aa.getVideoData();this.policy=new OKa(this.X);this.Y=new jW(this.Aa);this.playbackData=null;this.Ia=new g.sC;this.I=this.j=this.Va=this.oa=null;this.i=NaN;this.u=0;this.B=null;this.xa=NaN;this.C=this.J=null;this.W=this.N=!1;this.va=new g.K(function(){PKa(b,!1)},2E3);
this.Wa=new g.K(function(){lW(b)});
this.Ha=new g.K(function(){b.ma();b.N=!0;QKa(b)});
this.Qa=this.timestampOffset=0;this.La=!0;this.ya=0;this.Ta=NaN;this.ea=new g.K(function(){var c=b.X.wc;c.i+=1E4/36E5;c.i-c.u>1/6&&(ksa(c),c.u=c.i);b.ea.start()},1E4);
g.J(this,this.Y);g.J(this,this.Ia);g.J(this,this.va);g.J(this,this.Ha);g.J(this,this.Wa);g.J(this,this.ea)};
RKa=function(a,b){a.playbackData=b;a.videoData.isLivePlayback&&(a.I=new HKa(function(){a:{if(a.playbackData&&a.playbackData.i.i){if(xF(a.videoData)&&a.Va){var c=a.Va.Ha.vg()||0;break a}if(a.videoData.i){c=a.videoData.i.va;break a}}c=0}return c}),a.j=new eW(a.videoData,a.X.experiments,function(){return a.td(!0)}));
a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&1E9<a.videoData.startSeconds||(a.u=a.u||a.videoData.startSeconds||0)};
pW=function(a,b){(a.Va=b)?nW(a,!0):oW(a)};
SKa=function(a,b){var c=a.getCurrentTime(),d=a.isAtLiveHead(c);if(a.I&&d){var e=a.I;if(e.i&&!(c>=e.j&&c<e.u)){var f=e.i.getSegmentNumberForTime(c);-1!==f&&(e.j=e.i.getStartTime(f),e.u=e.j+e.i.getDuration(f),f=Date.now()/1E3-e.i.getIngestionTime(f),f-=e.C(),e.B.add(f))}}a.j&&(d&&(d=a.j,e=a.oa?OI(a.oa):0,d.B++,3>d.B||g.Ta()-d.I<d.policy.Y||(d.I=g.Ta(),d.j.push(e),50<d.j.length&&d.j.shift(),d.ma())),d=a.j,KKa(d,c,void 0===b?!0:b),LKa(d,c),b&&PKa(a,!0))};
PKa=function(a,b){if(a.j){var c=a.j;var d=a.getCurrentTime();!gW(c,d)&&c.ym()?(c.ma(),c.policy.N&&(c.policy.i=Math.max(c.policy.i+1,10)),c=Infinity):d<c.videoData.getMinSeekableTime()?(c.ma(),c=Math.min(c.videoData.getMinSeekableTime()+10,c.Bj())):c=NaN;if(!isNaN(c)){if(a.Va&&b&&(b=a.va.isActive(),d=a.j.Bj(),(d=zIa(a.Va,d-a.kd()))&&!b)){a.va.start();a.Aa.Ba("inBufferPtl",{cmt:a.getCurrentTime(),seekTo:d+a.kd()});a.seekTo(d+a.kd(),{ge:"playbacktimeline_inBufferSeek"});return}a.seekTo(c,{ge:"playbacktimeline_pegToLive"})}}};
nW=function(a,b){if(a.j&&a.Va){var c=!1;if(b)c=!0;else if(a.videoData.isLowLatencyLiveStream||"LOW"===a.videoData.latencyClass||"ULTRALOW"===a.videoData.latencyClass)if(b=a.j,b.j.length){c=b.i;b:{if(b.j.length){if(1<Math.min.apply(null,b.j)){b.ma();var d=dW(b,b.i-1);break b}if(b.policy.B){b.ma();d=dW(b,b.i+1);break b}}d=b.i}b.i=d;if(c=c!==b.i)b.ma(),b.j=[],b.B=0}else c=!1;c&&(c=a.Aa.Wb,b=JKa(a.j),c.qoe&&(c=c.qoe,g.GV(c,g.tS(c.i),"lra",[b]),c.Ba("live-readahead-seconds",{v:b})));b=a.Va;c=a.j.i;d=a.j;
d=(d.i-1+d.policy.i)*fW(d);a=a.j.policy.I;b.We=Math.max(c-1,0);b.B&&(b.B.ea=d);b.jb=a}};
TKa=function(a,b){a.u=b};
qW=function(a){return a.videoData.isLivePlayback&&!!a.videoData.B&&!a.videoData.B.i};
QKa=function(a){UKa(a).then(void 0,function(){oW(a)});
rW(a).then(function(c){VKa(a,c)},function(){oW(a)});
JS(a.Aa);if(2<=a.X.N){var b=a.Kb();b["native"]=""+ +a.W;b.tgt=""+a.i;a.Aa.Ba("startSeek",b)}};
UKa=function(a){if(!a.J)if(a.Va)if(isFinite(a.i))a.ma(),a.J=a.Va.seek(a.i-a.timestampOffset);else{a.ma();var b=a.Va;TU(b);b.C.i&&b.ma();b.B&&cIa(b.B,b.videoTrack.i);g.hr(b.W);b=b.C;var c=Math.max(b.videoTrack.B.u||0,b.audioTrack.B.u||0);DHa(b.videoTrack);DHa(b.audioTrack);var d=b.j,e;for(e in d.i)Apa(d.i[e].index,Infinity);b.j.isManifestless&&(b.B=!0);b.Va.currentTime=c;b.i=!0;b.C=new lS;a.J=b.C;a.i=a.Va.getCurrentTime()+a.timestampOffset}else a.J=pi(a.i-a.timestampOffset);return a.J};
rW=function(a){var b=a.B;b||(a.B=new lS,b=a.B,lW(a));return b};
WKa=function(a,b,c){return isNaN(b)?NaN:g.Yg(b,a.getMinSeekableTime(),a.td(c))};
lW=function(a){if(a.B)if(!a.L("html5_nondash_live_seek_killswitch")&&qW(a)&&a.oa&&0<a.oa.Dh()&&0<NI(a.oa)&&(a.i=WKa(a,a.i,!1)),!a.oa||!XKa(a))a.Wa.start(750);else if(!isNaN(a.i)&&isFinite(a.i)&&a.xa!==a.i-a.timestampOffset){var b=a.oa.getCurrentTime()-a.i;if(Math.abs(b)<=a.ya)YKa(a);else if(!a.videoData.isLivePlayback&&a.i>=a.td()-.1)a.i=a.td(),a.B.resolve(a.td()),uS(a.Aa);else try{var c=a.i-a.timestampOffset;a.ma();a.oa.seekTo(c);a.Y.i=c;a.xa=c;a.u=a.i}catch(d){a.ma()}}};
XKa=function(a){if(!a.oa||0===a.oa.Dh()||0<a.oa.uj())return!1;var b=0<a.oa.getCurrentTime();if(!(a.L("html5_nondash_mediaelementready_killswitch")||a.videoData.B&&a.videoData.B.i||a.videoData.isLivePlayback)&&AF(a.videoData))return b;if(0<=a.i){var c=a.oa.nw();if(c.length||!b)return CC(c,a.i-a.timestampOffset)}return b};
YKa=function(a){a.B?a.B.resolve(a.oa.getCurrentTime()):a.ma()};
VKa=function(a,b){a.ma();a.C&&(a.C.resolve(b),a.Aa.Z("SEEK_COMPLETE"),2<=a.X.N&&(b=a.Kb(),b["native"]=""+ +a.W,a.Aa.Ba("seekEnd",b)));ZKa(a)};
ZKa=function(a){a.i=NaN;a.xa=NaN;a.B=null;a.J=null;a.C=null;a.N=!1;a.W=!1;a.ya=0;a.va.stop();a.Ha.stop()};
oW=function(a){a.C&&a.ma();ZKa(a)};
$Ka=function(a){if(a.oa){for(var b=g.q(["loadedmetadata","progress","seeked","seeking"]),c=b.next();!c.done;c=b.next())a.Ia.S(a.oa,c.value,function(d){var e=a.oa;d=d.type;a.ma();switch(d){case "seeking":d=e.getCurrentTime()+a.timestampOffset;if(!a.B||a.W&&d!==a.i)a.B=new lS,a.xa=d,e=e.getCurrentTime(),a.Y.i=e,a.seekTo(d,{ge:"playbacktimeline_mediaElementEvent"}),a.W=!0;break;case "seeked":YKa(a);break;case "loadedmetadata":if(a.La){e="ss";d=0;(NF(a.videoData)||a.videoData.liveUtcStartSeconds)&&(a.videoData.liveUtcStartSeconds||
a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&1E9<a.videoData.startSeconds)&&a.videoData.i?(d=a.videoData.liveUtcStartSeconds||a.videoData.pc,e="utc",d=a.td()-a.getIngestionTime(a.td())+d):a.videoData.i&&a.videoData.i.isManifestless&&a.videoData.pc?(e="mss",d=a.videoData.pc+a.kd()):a.L("html5_unrewrite_timestamps")&&a.videoData.Fr&&(e="stss",d=a.videoData.Fr);var f={};d?(a.seekTo(d,{ge:"playbacktimeline_startSeconds"}),f[e]=d,a.Aa.Ba("startSeconds",f),a.La=!1):a.videoData.pc&&(f[e]=
a.videoData.pc+a.kd(),a.Aa.Ba("startSeconds",f));e=!!d}else e=!1;a.L("html5_nondash_live_seek_killswitch")&&!e&&qW(a)&&(a.i=isFinite(a.i)?g.Yg(a.i,a.getMinSeekableTime(),a.td()):a.td());lW(a);break;case "progress":lW(a)}});
a.C||a.u||a.policy.j||!a.oa.XG()||a.seekTo(.01,{ge:"playbacktimeline_setupMediaElement"})}};
aLa=function(a,b){a.i=b;a.u=b;rW(a).then(function(c){VKa(a,c)},function(){oW(a)})};
OKa=function(a){this.i=a.L("html5_live_smoothly_extend_max_seekable_time");this.u=a.L("html5_seek_over_discontinuities");this.j=a.L("html5_requires_seek_for_playback_at_zero_killswitch")};
sW=function(){this.finished=this.started=!1};
tW=function(){RQ.apply(this,arguments)};
uW=function(){SQ.apply(this,arguments)};
vW=function(a){this.i=a;this.iv=ZIa(Dx(16))};
bLa=function(a,b,c){var d;return g.B(function(e){d=new tW(a.i.i);return e.return(d.decrypt(b,c))})};
wW=function(a){g.G.call(this);this.i=a;this.le=new Map};
jU=function(a,b){return a.le.has(b)};
yHa=function(a,b,c){a.le.get(b).Dd=c};
cLa=function(a,b){jU(a,b)&&(a.le.get(b).je=new UB,TW(a,b))};
dLa=function(a){for(var b=g.q(a.le),c=b.next();!c.done;c=b.next()){var d=g.q(c.value);c=d.next().value;d=d.next().value;d.Dd||cLa(a,c)}};
iIa=function(a,b){var c;return(null==(c=a.le.get(b))?void 0:c.yj)||0};
xHa=function(a,b){a=a.le.get(b);return(!a.yj&&!!a.bytesReceived||a.bytesReceived===a.yj)&&a.Sy+a.je.totalLength===a.bytesReceived};
eLa=function(a){a=g.q(a.le.values());for(var b=a.next();!b.done;b=a.next())b=b.value,b.MG&&(b.Dd&&b.Dd(),b.MG=!1)};
TW=function(a,b){a.ma();if((b=a.le.get(b))&&!b.zf){b.zf=!0;b.Dd&&b.Dd();a:{b=g.q(a.le.values());for(var c=b.next();!c.done;c=b.next())if(!c.value.zf){b=!1;break a}b=!0}if(b&&(a=a.i,a.playerResponse)){var d;null==(d=a.xhr)||d.abort()}}};
gLa=function(a,b){AQ(a,13,b.timeSinceLastManualFormatSelectionMs);var c=b.lastManualDirection;void 0!==c&&(zQ(a,112),zQ(a,c<<1^c>>31));AQ(a,16,b.kU);AQ(a,18,b.AS);AQ(a,19,b.zS);AQ(a,21,b.JY);AQ(a,23,b.mS);AQ(a,34,b.visibility);DQ(a,38,b.mediaCapabilities,fLa,3);AQ(a,39,b.YY);AQ(a,40,b.SS)};
hLa=function(a){for(var b=[];tQ(a,2);)b.push(sQ(a));return{ID:b.length?b:void 0,dI:uQ(a,4)}};
fLa=function(a,b){var c;if(b.cI)for(c=0;c<b.cI.length;c++)DQ(a,1,b.cI[c],iLa,1);if(b.HD)for(c=0;c<b.HD.length;c++)DQ(a,2,b.HD[c],jLa,1)};
jLa=function(a,b){AQ(a,1,b.lS);AQ(a,2,b.numChannels);AQ(a,3,b.rU)};
iLa=function(a,b){AQ(a,1,b.vZ);AQ(a,3,b.sU);AQ(a,4,b.tU);AQ(a,11,b.maxFramerate);AQ(a,12,b.rU)};
mLa=function(a){return{WX:uQ(a,1),itag:wQ(a,3),bY:sCa(a,4,kLa),lmt:uQ(a,5),aT:uQ(a,7),xtags:wQ(a,15),wU:sCa(a,23,lLa)}};
kLa=function(a){return{iv:vQ(a,5)}};
lLa=function(a){return{videoId:wQ(a,2)}};
oLa=function(a,b){DQ(a,2,b.yS,gLa,3);DQ(a,3,b.aM,nLa,3);BQ(a,4,b.onesieUstreamerConfig);BQ(a,9,b.gI)};
nLa=function(a,b){BQ(a,2,b.encryptedOnesieInnertubeRequest);BQ(a,5,b.encryptedClientKey);BQ(a,6,b.iv);BQ(a,7,b.hmac);var c=b.serializeResponseAsJson;void 0!==c&&AQ(a,10,c?1:0);b=b.enableCompressionResponseOnly;void 0!==b&&AQ(a,14,b?1:0)};
pLa=function(a,b){CQ(a,1,b.name);CQ(a,2,b.value)};
qLa=function(a,b){CQ(a,1,b.url);var c;if(b.httpHeaders)for(c=0;c<b.httpHeaders.length;c++)DQ(a,2,b.httpHeaders[c],pLa,3);BQ(a,3,b.postBody)};
rLa=function(a){return{onesieProxyStatus:uQ(a,1),httpStatus:uQ(a,2),body:vQ(a,4)}};
sLa=function(a){this.Fm=a;this.j=!1;this.i=[]};
cX=function(a){for(;a.i.length&&!a.i[0].isEncrypted;){var b=a.i.shift(),c=b.yH;if(b=b.buffer)tLa(a.Fm.Ad,c,b);else{var d=a.Fm;d.i[c].QL=!0;var e=b=void 0;d=d.Ad;if(null==(e=d.Id)?0:jU(e,c))null==(b=d.Id)||TW(b,c)}}};
uLa=function(a,b){a.i.push({yH:b,isEncrypted:!1});a.j||cX(a)};
g.vLa=function(a){this.data=a;this.i=0;this.C=!1;this.u=0;this.error=!1;this.register=this.j=0;if(0===eX.length){eX.length=288;eX.fill(8);for(a=144;280>a;a++)eX[a]=255>=a?9:7;fX.length=32;fX.fill(5);gX.length=286;gX.fill(0);for(a=261;285>a;a++)gX[a]=Math.floor((a-261)/4);hX[257]=3;for(a=258;285>a;a++){var b=hX[a-1];b+=1<<gX[a-1];hX[a]=b}hX[285]=258;for(a=0;30>a;a++)iX[a]=3>=a?0:Math.floor((a-2)/2);for(a=jX[0]=1;30>a;a++)b=jX[a-1],b+=1<<iX[a-1],jX[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.B=new Uint8Array(a)};
g.zLa=function(a){for(;!a.C&&!a.error;){var b=a;b.C=!!kX(b,1);switch(kX(b,2)){case 2:var c=[],d=[];d.length=19;d.fill(0);var e=kX(b,5)+257;var f=kX(b,5)+1;for(var k=kX(b,4)+4,l=0;l<k;l++)d[wLa[l]]=kX(b,3);d=lX(d);for(k=e+f;c.length<k;){l=xLa(b,d);switch(l){case 16:l=c[c.length-1];var m=kX(b,2)+3;break;case 17:l=0;m=kX(b,3)+3;break;case 18:l=0;m=kX(b,7)+11;break;default:m=1}for(;0<m;m--)c.push(l)}c.length!==k?b.error=!0:(f=c.slice(-f),c.length=e,yLa(b,c,f));break;case 1:yLa(b,eX,fX);break;case 0:mX(b,
b.i&7);c=kX(b,16);e=kX(b,16);65535!==(c^e)&&(b.error=!0);b.B.set(b.data.subarray(b.j,b.j+c),b.u);b.j+=c;b.u+=c;break;default:b.error=!0}a.u>a.B.length&&(a.B=new Uint8Array(2*a.u),a.u=0,a.j=0,a.C=!1,a.i=0,a.register=0)}a.B.length!==a.u&&(a.B=a.B.subarray(0,a.u));return a.error?new Uint8Array(0):a.B};
yLa=function(a,b,c){b=lX(b);c=lX(c);for(var d=a.data,e=a.B,f=a.u,k=a.register,l=a.i,m=a.j;;){if(15>l){if(m>d.length){a.error=!0;break}k|=(d[m+1]<<8)+d[m]<<l;m+=2;l+=16}var n=b[k&127];if(0>n)for(k>>=7;0>n;)n=b[(k&1)-n],k>>=1;else k>>=n&15;l-=n&15;n>>=4;if(256>n)e[f++]=n;else if(a.register=k,a.i=l,a.j=m,256<n){k=hX[n];k+=kX(a,gX[n]);m=xLa(a,c);l=jX[m];l+=kX(a,iX[m]);if(ALa&&k<l)l=f-l,e.copyWithin(f,l,l+k);else for(m=f+k,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+=k;k=
a.register;l=a.i;m=a.j}else break}a.u=f};
xLa=function(a,b){if(7>a.i){var c=a.data,d=a.j;d>c.length&&(a.error=!0);a.register|=(c[d+1]<<8)+c[d]<<a.i;a.j+=2;a.i+=16}c=b[a.register&127];if(0<=c)return mX(a,c&15),c>>4;for(mX(a,7);0>c;)c=b[kX(a,1)-c];return c>>4};
kX=function(a,b){for(;a.i<b;){if(a.j>=a.data.length)return a.error=!0,0;a.register|=a.data[a.j++]<<a.i;a.i+=8}var c=a.register&(1<<b)-1;a.register>>=b;a.i-=b;return c};
mX=function(a,b){a.i-=b;a.register>>=b};
lX=function(a){for(var b=[],c=g.q(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 k=1;k<b.length;k++)b[k]?d=k:b[k]=0,e=e+b[k-1]<<1,c[k]=e,7<k&&(f+=b[k]);for(e=1;e<f;)e<<=1;b=128;d=new Int16Array(128+2*(e+d));for(f=0;f<a.length;f++)if(k=a[f]){for(var l=c[k]++,m=e=0;m<k;m++)e=e<<1|l>>m&1;l=f<<4|k;if(7>=k)for(m=1<<7-k;m--;)d[m<<k|e]=l;else{m=e&127;k-=7;for(e>>=7;k--;){d[m]||(d[m]=-b,b+=2);var n=e&1;e>>=1;m=n-d[m]}d[m]=l}}return d};
BLa=function(a){var b,c,d,e,f,k,l;return g.B(function(m){switch(m.i){case 1:if(!("DecompressionStream"in window))return m.return(g.zLa(new g.vLa(a)));b=new DecompressionStream("gzip");c=b.writable.getWriter();c.write(a);c.close();d=b.readable.getReader();e=new UB([]);case 2:return g.A(m,d.read(),4);case 4:f=m.j;k=f.value;if(l=f.done){m.eb(3);break}e.append(k);m.eb(2);break;case 3:return m.return(YB(e))}})};
FLa=function(a){var b=BF(a);a=CLa(b,a.T());var c=a.video.map(DLa).flat();0<b.j&&!b.B&&(c=c.filter(function(d){return"1"!==kC[d]||ELa[d]<b.j}));
return{video:c,audio:a.audio.map(DLa).flat()}};
HLa=function(a){var b=GLa[a[a.length-1]];b&&a.push.apply(a,g.u(b))};
KLa=function(a){var b=ILa[kC[a]],c=JLa[a];if(!c||!b)return null;var d=new hC(c.width,c.height,c.fps);b=kra(b,d);return new lC(a,b,{video:d,Ob:c.bitrate/8})};
MLa=function(a){var b=ILa[kC[a]],c=LLa[a];return c&&b?new lC(a,b,{audio:new fC(c.audioSampleRate,c.numChannels)}):null};
DLa=function(a){var b=NLa[a]||[];"9"===kC[a]&&(b=[].concat(g.u(b),["278"]));return[a].concat(g.u(b))};
CLa=function(a,b){function c(l){return l.id}
function d(l){return(l=f[l])?(Zz(l,[]),[l[0]]):[]}
if(nX)return nX;var e=jra(OLa,null,0,!1,!1,void 0),f=Tz(a,b.j,e,function(){return!0},!1);
b=opa(a).map(d).flat();e=qpa(a);var k=["1","1h"];0<a.j&&!a.B&&(e=k.concat(e));return nX={video:e.map(d).flat().map(c),audio:b.map(c)}};
PLa=function(a){this.Ad=a;this.u={};this.i={};this.j=null;this.queue=new sLa(this)};
QLa=function(a){var b=a.queue;b.i.length&&b.i[0].isEncrypted&&!b.j&&(b.i.length=0);b=g.q(Object.keys(a.i));for(var c=b.next();!c.done;c=b.next())c=c.value,a.i[c].QL||uLa(a.queue,c)};
RLa=function(a,b){var c=b.totalLength;a.ma();var d=!1;switch(a.j){case 0:a.iG(b).then(function(e){var f=a.Ad;f.Ge("oprr");f.playerResponse=e;f.OF||(f.Ex=!1);oX(f)},function(e){a.Ad.fail(e)});
break;case 2:a.Ge("ormk");b=YB(b);a.queue.decrypt(b);a.ma();break;default:d=!0,a.ma()}a.Ad.Ci&&a.Ad.Ba("ombup","id.11;pt."+a.j+";len."+c+(d?";ignored.1":""));a.j=null};
SLa=function(a,b,c){var d=ZB(b,0);a.Ad.Ci&&a.Ad.Ba("ombup","id."+(c?12:21)+";len."+b.totalLength+";hid."+d);1!==b.totalLength&&(b=YB(b,1),d=a.u[d]||null,a.ma(),d&&(a=a.queue,a.i.push({yH:d,buffer:b,isEncrypted:c}),a.j||cX(a)))};
TLa=function(a,b){if(b+1<=a.totalLength){var c=ZB(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=ZB(a,b++);else if(2===c)c=ZB(a,b++),a=ZB(a,b++),a=(c&63)+64*a;else if(3===c){c=ZB(a,b++);var d=ZB(a,b++);a=ZB(a,b++);a=(c&31)+32*(d+256*a)}else if(4===c){c=ZB(a,b++);d=ZB(a,b++);var e=ZB(a,b++);a=ZB(a,b++);a=(c&15)+16*(d+256*(e+256*a))}else c=b+1,a.focus(c),XB(a,c,4)?a=zqa(a).getUint32(c-a.u,!0):(d=ZB(a,c+2)+256*ZB(a,c+3),a=ZB(a,c)+256*(ZB(a,c+1)+
256*d)),b+=5;return[a,b]};
pX=function(a){this.callbacks=a;this.i=new UB};
ULa=function(a){var b=g.q(TLa(a.i,0));var c=b.next().value;var d=b.next().value;d=g.q(TLa(a.i,d));b=d.next().value;d=d.next().value;!(0>c||0>b)&&d+b<=a.i.totalLength&&(d=a.i.split(d).Wq.split(b),b=d.Zz,d=d.Wq,a.callbacks.Fm.feed(c,b),a.i=d,ULa(a))};
XLa=function(a){var b,c,d,e,f;return g.B(function(k){return 1==k.i?(b=a.T().Ed,null!=(c=b)&&c.baseUrl?g.A(k,VLa(),3):k.eb(2)):2!=k.i&&(d=k.j)?(e=""+d+b.baseUrl,f=new g.bA(e),k.return(WLa(f,a))):k.return(null)})};
WLa=function(a,b){var c,d=null==(c=b.gr)?void 0:c.urlQueryOverride;if(d)for(c=hA(d),c=g.q(Object.entries(c)),d=c.next();!d.done;d=c.next()){var e=g.q(d.value);d=e.next().value;e=e.next().value;a.set(d,e)}if(!a.get("id")){c=AD(b.videoId);b=[];if(c)for(c=g.q(c),d=c.next();!d.done;d=c.next())b.push(d.value.toString(16).padStart(2,"0"));b=b.join("");if(!b)return null;a.set("id",b)}return a};
VLa=function(){var a,b,c,d,e;return g.B(function(f){if(1==f.i)return a={format:"RAW",method:"GET",timeout:5E3},g.A(f,Ot("https://web.archive.org/web/20220130220643/https://redirector.googlevideo.com/initplayback?alr=yes&id=%s",a),2);b=f.j;if(200!==b.xhr.status||!b.xhr.responseText)return f.return(null);c=b.xhr.responseText;d=/https:\/\/(.*)\.googlevideo.com/g;e=c.match(d);return f.return(e?e[0]:null)})};
qX=function(a,b){g.G.call(this);this.Aa=a;this.playerRequest=b;this.X=this.Aa.T();this.videoData=this.Aa.getVideoData();this.Ci=2<=this.X.N;this.PK=this.X.Ed;this.AG=new vW(this.PK.i);this.xhr=null;this.zl=new lS;this.PL=!1;this.playerResponse="";this.uP=new pX(this);this.Fm=new PLa(this);this.UA=new g.K(this.cF,1E4,this);this.YN=g.lD(this.X.experiments,"html5_onesie_progress_timeout_ms");this.TA=new g.K(this.cF,this.YN,this);this.BG=new g.K(this.cF,2E3,this);this.tF=this.eM=!1;this.cA=this.X.Qh;
this.Et="";this.Ex=this.L("html5_onesie_wait_for_media_availability");this.enableCompression=this.OF=this.jM=!1;g.J(this.videoData,this);g.J(this,this.UA);g.J(this,this.TA);g.J(this,this.BG);a=Gz();this.L("html5_onesie_media_bytes")&&a&&(this.Id=new wW(this),g.J(this,this.Id));this.Ba("sxhr",{s:""+ +a,a:""+ +(!!window.AbortController||Hz())},!0)};
YLa=function(a){return a.L("html5_onesie_host_probing")||a.Ci};
tLa=function(a,b,c){null!=(a=a.Id)&&(a.ma(),(b=a.le.get(b))&&!b.zf&&(b.je.append(c),b.bytesReceived+=c.length,b.MG=!0))};
oX=function(a){if(!a.playerResponse)return!1;if(a.jM)return!0;var b=a.videoData.L("html5_onesie_audio_only_playback")&&zF(a.videoData),c;if(c=a.Ex&&a.Id){c=a.Id;for(var d=!1,e=g.q(c.le.keys()),f=e.next();!f.done;f=e.next()){f=c.le.get(f.value);var k=void 0,l=void 0;(null==(k=f)?0:k.yj)&&0<(null==(l=f)?void 0:l.yj)&&(f.uo?d=!0:b=!0)}c=!(b&&d)}if(c)return!1;a.Ge("ofr");a.zl.resolve(a.playerResponse);a.UA.stop();return a.jM=!0};
ZLa=function(a){if(!a.ul)return{};var b=BU(a.ul);b.d=SHa(a.ul);b.ty="o";return b};
eMa=function(a){function b(e){return(d.Yg&&!c.L("web_player_no_force_gvi")||!((c.Li?0:c.L("web_player_gvi_wexit")||(g.kE(c)?"TVHTML5"===c.deviceParams.c?Esa(c)?c.L("web_player_gvi_wexit_living_room_pangea"):c.L("web_player_gvi_wexit_living_room_bedrock"):"TVHTML5_KIDS"===c.deviceParams.c?c.L("web_player_gvi_wexit_living_room_kids"):"TVHTML5_SIMPLY"===c.deviceParams.c||RD(c)?c.L("web_player_gvi_wexit_living_room_simply"):uE(c)||"TV_UNPLUGGED_CAST"===c.deviceParams.c?c.L("web_player_gvi_wexit_living_room_unplugged"):
c.L("web_player_gvi_wexit_living_room_other"):1))||d.tj&&d.u.u)?0:"yt"!==c.va?38===d.ya&&"books"===c.playerStyle||30===d.ya&&"docs"===c.playerStyle||33===d.ya&&"google-live"===c.playerStyle?0:c.L("web_player_gvi_wexit_all_player_styles"):"adunit"!==UF(d)||c.L("web_player_gvi_wexit_adunit"))?$La(a,d).then(function(){rX(a,d)},function(f){rX(a,d,!0);
throw f;}):aMa(a,d,e)}
var c=a.T(),d=a.getVideoData();d.isDisposed();d.Ia=!0;return bMa(a)?cMa(a,d).then(function(){rX(a,d)},function(e){e=xD(e);
if(wD(e.severity))return rX(a,d,!0),Promise.reject(e);"onesie.response.badproxystatus"===e.errorCode&&"3"===""+e.details.st&&(dMa=!0);a.handleError(e);return b("onesie")}):b("gvi")};
bMa=function(a){var b=a.T();if(!b.L("html5_onesie"))return!1;var c=a.getVideoData();if(!b.L("html5_onesie_cast")&&(c.W||c.hg)||!b.L("html5_onesie_inline")&&5===a.getVisibilityState()||"yt"!==b.va||dMa)return!1;b=b.Ed;if(!b||!b.i)return a.handleError(new g.vD("onesie.unavailable.hotconfig",{key:"0"})),!1;b={};return 0<Object.keys(b).length?(b.onesie="0",a.handleError(new g.vD("html5.missingapi",b)),!1):!0};
fMa=function(a){var b=yJ();rwa(b,g.YF(a));return g.EL(b,Rya())};
cMa=function(a,b){var c,d,e,f,k,l,m,n;return g.B(function(p){if(1==p.i)return b.fetchType="onesie",c=Jza(b,a.getPlayerSize(),a.getVisibilityState()),d=new qX(a,c),g.A(p,d.fetch(),2);e=p.j;f={player_response:e};b.Ia=!1;b.Ml=d.Id;b.AE=d.AE;g.tF(b,f,!0);if(b.Ia||rF(b))return p.return(Promise.resolve());b.Ml=void 0;k={};l="onesie.response";m=0;b.errorCode?(l="auth",k.ec=b.errorCode,k.ed=b.errorDetail,k.es=b.Ai||"",m=2):(k.successButUnplayable="1",k.disposed=""+ +b.isDisposed(),k.afmts=""+ +/adaptiveFormats/.test(e),
k.cpn=b.clientPlaybackNonce);n=new g.vD(l,k,m);return p.return(Promise.reject(n))})};
$La=function(a,b){var c,d,e,f,k,l,m,n,p,r;return g.B(function(t){switch(t.i){case 1:c=b.isAd(),d=!c,e=c?1:3,f=0;case 2:if(!(f<e)){t.eb(4);break}if(!(0<f)){t.eb(5);break}return g.A(t,Fi(5E3),6);case 6:k=new g.Kv("Retrying OnePlatform request",{attempt:f}),g.Rx(k);case 5:return va(t,7),g.A(t,gMa(a,b),9);case 9:return t.return();case 7:l=xa(t);m=xD(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 t.return(Promise.reject(m));
a.handleError(m);if(wD(m.severity)){t.eb(4);break}case 3:f++;t.eb(2);break;case 4:return p=c?"auth":"manifest.net.retryexhausted",r=c?2:1,t.return(Promise.reject(new g.vD(p,{backend:"op"},r)))}})};
gMa=function(a,b){var c,d,e,f,k,l,m,n,p,r,t,w,x,y,z,F,I,H,O;return g.B(function(ma){if(1==ma.i)return b.fetchType="gp",c=fMa(b),d=Jza(b,a.getPlayerSize(),a.getVisibilityState()),e=g.oL(hMa),f=g.YF(b),k=(0,g.R)(),l=!1,m="empty",n=0,a.Ge("ps_s"),p=function(N){2===N.readyState&&a.Ge("ps_c")},r={Ct:p},g.A(ma,g.AJ(c,d,e,void 0,r),2);
t=ma.j;a.Ge("ps_r");if(b.isDisposed())return ma.return();t?t.error?(l=!0,m="esf:"+t.error.message,n=t.error.code):t.errorMetadata&&(l=!0,m="its",n=t.errorMetadata.status):l=!0;if(l)return w=a.T(),x=0,y=((0,g.R)()-k).toFixed(),z={backend:"op",rc:""+n,rt:y,reason:m,has_kpt:b.xb?"1":"0",has_mdx_env:b.mdxEnvironment?"1":"0",has_omit_key_flag:g.P("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:w.pageId?"1":"0",has_token:f?"1":"0",has_vvt:b.La?"1":"0",is_mdx:b.isMdxPlayback?"1":
"0",mdx_ctrl:b.hg||"",token_eq:f===g.YF(b)?"1":"0"},F="manifest.net.connect",429===n?(F="auth",x=2):200<n&&(F="manifest.net.badstatus",400===n&&(x=2)),ma.return(Promise.reject(new g.vD(F,z,x)));b.Ia=!1;g.tF(b,{raw_player_response:t},!0);if(b.errorCode)return I={ec:b.errorCode,ed:b.errorDetail,es:b.Ai||""},ma.return(Promise.reject(new g.vD("auth",I,2)));if(!b.Ia&&!rF(b))return H=b.isAd()?"auth":"manifest.net.retryexhausted",O=b.isAd()?2:1,ma.return(Promise.reject(new g.vD(H,{successButUnplayable:"1",
hasMedia:LF(b)?"1":"0"},O)));g.ua(ma)})};
aMa=function(a,b,c){var d,e,f,k,l,m,n,p,r,t,w;return g.B(function(x){switch(x.i){case 1:d=fza(a.T(),b,a.getPlayerSize(),a.getVisibilityState(),a.isFullscreen()),e=function(){return!0},f=function(y){y=xD(y);
if(wD(y.severity))return Promise.reject(y);a.handleError(y);return!1},l=(k=b.isAd())?1:3,m=0;
case 2:if(!(m<l)){x.eb(4);break}n=d;if(!(0<m)){x.eb(5);break}return g.A(x,Fi(5E3),6);case 6:p={playerretry:m,playerretrysrc:c},k||(p.recover="embedded"),n=zt(d,p);case 5:return g.A(x,iMa(b,n).then(e,f),7);case 7:if(r=x.j)return x.return();m++;x.eb(2);break;case 4:t=k?"auth":"manifest.net.retryexhausted";w=k?2:1;if(!k&&1E-4>Math.random())try{g.Rx(new g.Kv("b/152131571",btoa(d)))}catch(y){}return x.return(Promise.reject(new g.vD(t,{backend:"gvi"},w)))}})};
iMa=function(a,b){var c,d,e,f,k,l,m,n,p,r,t,w,x,y;return g.B(function(z){if(1==z.i)return a.fetchType="gvi",c=a.T(),(f=gza(a))?(d={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:f},e=zt(b,{action_display_post:1})):(d={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},e=b),k={},c.sendVisitorIdHeader&&a.visitorData&&(k["X-Goog-Visitor-Id"]=a.visitorData),(l=g.dD(c.experiments,"debug_sherlog_username"))&&(k["X-Youtube-Sherlog-Username"]=l),0<Object.keys(k).length&&(d.headers=
k),m=(0,g.R)(),n=function(F){if(!a.isDisposed()){F=F?F.status:-1;var I=0,H=((0,g.R)()-m).toFixed();H={backend:"gvi",rc:""+F,rt:H};var O="manifest.net.connect";429===F?(O="auth",I=2):200<F&&(O="manifest.net.badstatus",400===F&&(I=2));return Promise.reject(new g.vD(O,H,I))}},p=function(F){return n(F.xhr)},g.A(z,OC(Ot,e,d).then(void 0,p),2);
r=z.j;if(!r||!r.responseText)return z.return(n(r));a.Ia=!1;t=ut(r.responseText);g.tF(a,t,!0,void 0);if(a.errorCode)return w={ec:a.errorCode,ed:a.errorDetail,es:a.Ai||""},z.return(Promise.reject(new g.vD("auth",w,2)));if(!a.Ia&&!rF(a))return x=a.isAd()?"auth":"manifest.net.retryexhausted",y=a.isAd()?2:1,z.return(Promise.reject(new g.vD(x,{successButUnplayable:"1"},y)));g.ua(z)})};
rX=function(a,b,c){c=void 0===c?!1:c;var d,e,f,k,l;g.B(function(m){if(1==m.i){d=a.T();if(c&&(!g.wE(d)||"embedded"!==UF(b))||b.nq||"adunit"!==UF(b)&&(g.kE(d)||lE(d)||g.eE(d)||g.dE(d)||"WEB_CREATOR"===d.deviceParams.c))return m.return();va(m,2);e=fMa(b);var n=b.T();g.vv.getInstance();var p={context:g.qM(b),videoId:b.videoId,racyCheckOk:b.racyCheckOk,contentCheckOk:b.contentCheckOk,autonavState:"STATE_NONE"};"adunit"===UF(b)&&(p.isAdPlayback=!0);n.embedConfig&&(p.serializedThirdPartyEmbedConfig=n.embedConfig);
n.jj&&(p.showContentOwnerOnly=!0);g.wv(0,141)&&(p.autonavState=g.wv(0,140)?"STATE_OFF":"STATE_ON");if(g.xE(n)){n=g.wv(0,65);n=null!=n?!n:!1;var r=!!g.jy("yt-player-sticky-caption");p.captionsRequested=n&&r}f=p;k=g.oL(jMa);a.Ge("wn_s");return g.A(m,g.AJ(e,f,k),4)}if(2!=m.i)return l=m.j,a.Ge("wn_r"),l&&!l.error&&g.tF(b,{raw_watch_next_response:l},!1),wa(m,0);xa(m);g.ua(m)})};
kMa=function(a){function b(){a.Ge("virc");Ez("virc",void 0,"video_to_ad")}
a.Ge("vir");Ez("vir",void 0,"video_to_ad");var c=eMa(a);c.then(b,b);return c};
g.vX=function(a,b,c,d,e,f,k,l,m,n){m=void 0===m?new qF(a):m;n=void 0===n?!0:n;g.tx.call(this);var p=this;this.X=a;this.playerType=b;this.Mb=c;this.Qx=d;this.getVisibilityState=f;this.visibility=k;this.Py=l;this.videoData=m;this.oS=n;this.xv=new EKa(this.X);this.Rd=null;this.Ft=new sV;this.cm=null;this.Cg=new CV(this.X,this.Qx,this);this.OL=!0;this.mediaSource=this.Va=null;this.Uj=[];this.Km=new sW;this.Ne=this.mx=null;this.Lm=new sW;this.aB=null;this.fF=this.kt=!1;this.bB=NaN;this.KB=new g.K(this.yX,
500,this);this.playerState=new g.QI;this.dB=[];this.xu=new g.sC;this.xj=new zV(this);this.oa=null;this.uq=new g.K(this.ZV,15E3,this);this.dH=this.HA=!1;this.Lq=NaN;this.Qy=!1;this.FD=0;this.GD=new g.K(this.gH,4500,this);this.Cw=!1;this.pA=NaN;this.wH=new dT(new Map([["bufferhealth",function(){var r=p.Tc;return r.oa?OI(r.oa):0}],
["bandwidth",function(){return p.EE()}],
["networkactivity",function(){return p.X.schedule.Y}],
["livelatency",function(){return p.isAtLiveHead()&&p.Ic()?sX(p):NaN}],
["rawlivelatency",function(){return sX(p)}]]));
this.Jw=0;this.loop=!1;this.playbackRate=1;this.sM=0;this.Tc=new mW(this);this.kK=!1;this.cB=[];this.AF=this.eO=0;this.aH=this.zP=!1;this.vD=new g.K(this.rT,0,this);this.pd=null;this.bN=new g.K(this.tS,0,this);this.iB=new g.K(this.AO,3E4,this);this.KU=[this.KB,this.xu,this.vD,this.uq,this.iB,this.KB,this.GD,this.wH,this.bN];this.Me=function(){var r=p.Wb;r.j.X.Mc||3===r.j.Aa.getVisibilityState()||(r.j.X.Mc=!0);qKa(r);if(r.u){var t=r.u;t.I&&0>t.j&&3!==t.i.Aa.getVisibilityState()&&MJa(t)}r.qoe&&(r=r.qoe,
r.Ia&&0>r.u&&r.i.X.Mc&&YJa(r));g.lD(p.X.experiments,"html5_background_quality_cap")&&p.Va&&bV(p);p.X.Bk&&!p.videoData.backgroundable&&p.oa&&!p.yf()&&(p.isBackground()&&p.oa.yy()?(p.Ba("bgmobile",{suspend:1}),p.Nm(!0)):p.isBackground()||tX(p)&&p.Ba("bgmobile",{resume:1}))};
this.ma();this.Xg=new aW(function(){return p.getCurrentTime()},function(){return p.getPlaybackRate()},function(){return p.getPlayerState()},function(r,t){r!==g.Ny("endcr")||g.V(p.playerState,32)||uS(p);
e(r,t,p.playerType)});
g.J(this,this.Xg);g.J(this,this.Tc);lMa(this,m);this.videoData.subscribe("dataupdated",this.KX,this);this.videoData.subscribe("dataloaded",this.TD,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.Ba,this);this.videoData.subscribe("ctmpstr",this.TG,this);mMa(this);BFa(this.Me);this.visibility.subscribe("visibilitystatechange",this.Me);this.videoData.Ha&&nMa(this);!zua(this.videoData)&&Fua(this.videoData)||oMa(this);1===this.playerType&&uX.isActive()&&
this.iB.start();this.videoData.oe=this.getUserAudio51Preference()};
lMa=function(a,b){if(2===a.playerType||a.X.Dk)b.xI=!0;var c=Ata(b.qc,b.Qr,a.X.i,a.X.u);c&&(b.adFormat=c);2===a.playerType&&(b.ll=!0);if(a.isFullscreen()||a.X.i)c=g.jy("yt-player-autonavstate"),b.autonavState=c||(a.X.i?2:a.videoData.autonavState);b.endSeconds&&b.endSeconds>b.startSeconds&&wX(a,b.endSeconds)};
mMa=function(a){!a.Wb||a.Wb.isDisposed();a.Wb=new g.$V(new ZV(a.videoData,a.X,a,function(){return a.Py.Ih()}))};
QG=function(a){return a.oa&&a.oa.mp()?a.oa.He():null};
xX=function(a){if(a.videoData.isValid())return!0;a.Nf("api.invalidparam",2,void 0,"invalidVideodata.1");return!1};
nMa=function(a){var b=a.Py.Nc();a.videoData.Ol=a.videoData.Ol||(null==b?void 0:b.HE());a.videoData.Pl=a.videoData.Pl||(null==b?void 0:b.IE())};
aS=function(a,b){(b=void 0===b?!1:b)||pKa(a.Wb);a.kt=b;!xX(a)||a.Km.started?g.kE(a.X)&&a.videoData.isLivePlayback&&a.Km.started&&!a.Km.isFinished()&&!a.kt&&a.TD():(a.Km.start(),b=a.Wb,g.tS(b.j),b.qoe&&XJa(b.qoe),a.TD())};
pMa=function(a){var b=a.videoData;kMa(a).then(void 0,function(c){a.videoData!==b||b.isDisposed()||(c=xD(c),"auth"===c.errorCode&&a.videoData.errorDetail?a.Nf("auth",2,unescape(a.videoData.errorReason),uD(c.details),a.videoData.errorDetail,a.videoData.Ai||void 0):a.handleError(c))})};
EFa=function(a,b){a.pd=b;a.Va&&xIa(a.Va,new g.fV(b))};
qMa=function(a){if(!g.V(a.playerState,128))if(a.videoData.isLoaded(),a.ma(),4!==a.playerType&&(a.Uj=g.ic(a.videoData.va)),LF(a.videoData)){yX(a).then(function(){if(!a.isDisposed()){a.kt&&(a.Yb(SI(SI(a.playerState,512),1)),tX(a));var c=a.videoData;c.endSeconds&&c.endSeconds>c.startSeconds&&wX(a,c.endSeconds);a.Km.finished=!0;zX(a,"dataloaded");a.Lm.started&&AX(a);LJa(a.Cg,a.Ne)}});
a.L("html5_log_media_perf_info")&&a.Ba("loudness",{v:a.videoData.me.toFixed(3)},!0);var b=Gua(a.videoData);b&&a.Ba("playerResponseExperiment",{id:b},!0);a.ED()}else zX(a,"dataloaded")};
yX=function(a){BX(a);a.Ne=null;var b=GKa(a.X,a.videoData,a.yf());a.mx=b;a.mx.then(function(c){rMa(a,c)},function(c){a.isDisposed()||(c=xD(c),a.visibility.isBackground()?(CX(a,"vp_none_avail"),a.mx=null,a.Km.reset()):(a.Km.finished=!0,a.Nf(c.errorCode,c.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",uD(c.details))))});
return b};
AV=function(a){a.ma();yX(a).then(function(){return tX(a)});
g.WI(a.playerState)&&a.playVideo()};
rMa=function(a,b){a.isDisposed()||b.videoData.isDisposed()||(a.ma(),a.Ne=b,RKa(a.Tc,a.Ne),a.videoData.isLivePlayback&&(0<a.videoData.pc&&!xF(a.videoData)||a.seekTo(a.td(),{ge:"videoplayer_playbackData"})),a.videoData.B.i?a.Va?g.Rx(Error("Duplicated Loader")):sMa(a):!a.videoData.B.i&&ZF(a.videoData)&&a.At(new UT(a.videoData.videoId||"",4)),DX(a),BJa(b).then(function(){a.ou();EX(a)}))};
FX=function(a){a.ma();a.oa&&a.oa.Zr();aS(a);xX(a)&&!g.V(a.playerState,128)&&(a.Lm.started||(a.Lm.start(),a.Yb(SI(SI(a.playerState,8),1))),AX(a))};
AX=function(a){a.isDisposed();a.ma();if(a.Lm.isFinished())a.ma();else if(a.Km.isFinished())if(g.V(a.playerState,128))a.ma();else if(a.Uj.length)a.ma();else{if(!a.Xg.started){var b=a.Xg;b.started=!0;b.Gl()}if(a.tm())a.ma();else{a.Va&&(b=a.Va.timing,a.fF=!!b.i&&!!b.B);a.Lm.isFinished()||(a.Lm.finished=!0);b=a.L("html5_onesie_live")&&a.Va&&!isNaN(a.Va.Qa);!a.videoData.isLivePlayback||0<a.videoData.pc&&!xF(a.videoData)||b||(a.ma(),a.seekTo(Infinity,{ge:"videoplayer_readying"}),a.isBackground()&&(a.dH=
!0));b=a.Wb;if(b.qoe){b=b.qoe;b.i.videoData.rk&&LV(b,b.i.videoData.rk);if(b.i.videoData.isLivePlayback){var c=b.i.videoData.i;xF(b.i.videoData)&&LV(b,"manifestless");c&&XC(c)&&LV(b,"live-segment-"+XC(c).toFixed(1))}"yt"!==b.i.X.va&&(b.j.len=[b.i.videoData.lengthSeconds.toFixed(2)]);b.i.videoData.cotn&&!ZF(b.i.videoData)&&UJa(b,!0);EE(b.i.X)&&(c=TJa())&&b.Ba("cblt",{m:c});b.i.videoData.isDaiEnabled()?LV(b,b.i.videoData.enableServerStitchedDai?"ssdai":"csdai"):b.i.videoData.jI&&LV(b,"dsdai")}a.ma();
a.Z("playbackready",a);Dz("pbr",a.Mb.timerName)||(a.Mb.tick("pbr"),Ez("pbr",void 0,"video_to_ad"))}}else a.ma()};
uS=function(a,b,c){b=void 0===b?!0:b;(void 0===c||c)&&a.oa&&a.oa.pause();b=b?new g.QI(14):new g.QI;a.Yb(b)};
wX=function(a,b){a.cm&&GX(a);a.cm=new g.Ly(1E3*b,0x7ffffffffffff);a.cm.namespace="endcr";a.addCueRange(a.cm)};
GX=function(a){a.removeCueRange(a.cm);a.cm=null};
IX=function(a,b,c,d){a.videoData.j=c;d&&cV(a,b,d);d=(d=g.HX(a))?d.Vb():"";a.Wb.kx(new vJa(a.videoData,c,b,d));c=a.Cg;c.u=0;c.i=0;a.Z("internalvideoformatchange",a.videoData,"m"===b)};
g.HX=function(a){var b=JX(a);return Mz(b)||!a.Ne?null:g.Wb(a.Ne.i.videoInfos,function(c){return b.B(c)})};
cV=function(a,b,c){if(c!==a.videoData.I){var d=!a.videoData.I;a.videoData.I=c;"m"!==b&&(b=d?"i":"a");a.Wb.ax(new vJa(a.videoData,c,b,""));d||a.Z("internalaudioformatchange",a.videoData,"m"===b)}};
eV=function(a,b){a.ma();b&&a.yd(new g.vD("qoe.restart",b));KX(a);b=a.videoData.i&&Yz(a.videoData.i);var c=a.oa&&a.oa.isView();b||c?(a.Va&&mIa(a.Va),yV(a)):(a.Yb(SI(a.playerState,16)),tX(a),g.WI(a.playerState)&&a.playVideo())};
JX=function(a){if(a.Ne){var b=a.Cg;var c=a.Ne;a=a.Ps();if(b.L("html5_ignore_sticky_for_inline")&&b.Aa.Wn().isInline())var d=pF;else d=yJa(b),d=Lz("auto",d,!1,"s");if(Mz(d)){d=wJa(b,c);var e=d.compose,f;a:if((f=c.i)&&f.videoInfos.length){for(var k=g.q(f.videoInfos),l=k.next();!l.done;l=k.next()){l=l.value;var m=void 0;if(null==(m=l.j)?0:m.smooth){f=l.video.i;break a}}f=f.videoInfos[0].video.i}else f=0;xka()&&!g.kE(b.X)&&mC(c.i.videoInfos[0])&&(f=Math.min(f,g.Kz.large));f=new Jz(0,f,!1,"o");d=e.call(d,
f);e=d.compose;f=4320;!b.X.isMobile||g.bE(b.X)||ku()||b.X.L("hls_for_vod")||(f=b.X.L("mweb_default_hd720")?g.Kz.hd720:g.Kz.medium);if(k=g.lD(b.X.experiments,"html5_default_quality_cap"))m=!!c.i.i&&!c.videoData.hg&&!c.videoData.Kd,l=g.lD(b.X.experiments,"html5_quality_cap_min_age_secs"),m&&l&&(m=b.X.schedule.N,m=(0,g.R)()-m>1E3*l),m&&(f=Math.min(f,k));k=g.lD(b.X.experiments,"html5_random_playback_cap");l=/[a-h]$/;k&&l.test(c.videoData.clientPlaybackNonce)&&(f=Math.min(f,k));(k=g.lD(b.X.experiments,
"html5_not_vp9_supported_quality_cap"))&&!vC('video/webm; codecs="vp9"')&&(f=Math.min(f,k));if(l=k=g.lD(b.X.experiments,"html5_hfr_quality_cap"))a:{l=c.i;if(l.i)for(l=g.q(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,k));(k=g.lD(b.X.experiments,"html5_live_quality_cap"))&&c.videoData.isLivePlayback&&(f=Math.min(f,k));f=JJa(b,c,f);f=new Jz(0,4320===f?0:f,!1,"d");d=e.call(d,f).compose(IJa(b)).compose(KJa(b,c.videoData,c)).compose(HJa(b,c)).compose(AJa(b,
c)).compose(zJa(b,c))}else b.L("html5_perf_cap_override_sticky")&&(d=d.compose(HJa(b,c))),b.L("html5_ustreamer_cap_override_sticky")&&(d=d.compose(AJa(b,c)));b.L("html5_varispeed_playback_rate")&&(d=d.compose(zJa(b,c)));b=c.videoData.Hr.compose(d).compose(c.videoData.rP).compose(a)}else b=pF;return b};
PEa=function(a,b,c){a.videoData.Hr=b;if(a.Ne&&c){c=a.Cg;var d=a.Ne;if(d.i.i){var e=$C(),f=d.i.videoInfos[0].video.i;if(!(e>f&&0!==f&&b.i===f)){1<c.playbackRate&&c.L("html5_varispeed_playback_rate")&&(e=Ura(c.X.j,d.i.videoInfos,c.playbackRate),0!==b.i&&e<b.i&&c.Aa.setPlaybackRate(1));var k,l;d=(null==(k=d.videoData.j)?void 0:null==(l=k.video)?void 0:l.i)||0;g.iy("yt-player-quality",{quality:g.Kz[Oz(b)],previousQuality:d},31104E3);c.X.schedule.policy.B=480<=$C();if(c.L("html5_exponential_memory_for_sticky")){b=
c.X.wc;k=1;var m=void 0===m?!1:m;msa(b,"sticky-lifetime");b.values["sticky-lifetime"]&&b.pm["sticky-lifetime"]||(b.values["sticky-lifetime"]=0,b.pm["sticky-lifetime"]=0);m&&.0625<KD(b,"sticky-lifetime")&&(k=2*b.pm["sticky-lifetime"]);b.values["sticky-lifetime"]+=1*Math.pow(2,b.i/k);b.pm["sticky-lifetime"]=k;b.B.start()}if(c.L("html5_perf_cap_override_sticky"))if(c.L("html5_perserve_av1_perf_cap")){m=aD();c=g.q(Object.keys(m));for(b=c.next();!b.done;b=c.next())b=b.value,0!==b.indexOf("1")&&(m[b]=0);
g.iy("yt-player-performance-cap",m,604800)}else g.ky("yt-player-performance-cap")}}}DX(a)};
DX=function(a){if(!a.isDisposed()&&!g.V(a.playerState,128)&&a.videoData.B){if(a.videoData.B.i)EX(a);else{var b=JX(a),c=a.videoData;a:{var d=a.videoData.Hb;if(b.i){for(var e=g.q(d),f=e.next();!f.done;f=e.next()){f=f.value;var k=f.vf(),l=g.Kz[k.video.quality];if((!b.u||"auto"!==k.video.quality)&&l<=b.i){d=f;break a}}d=d[d.length-1]}else d=d[0]}c.fb=d;IX(a,b.reason,tMa(a,a.videoData.fb))}if(a.L("html5_check_unstarted")?g.WI(a.playerState):a.Ic())a.Tc.La=!1,a.playVideo()}};
EX=function(a){if(a.videoData.B&&a.videoData.B.i){var b=JX(a);if(a.Va&&(a=a.Va,!a.isDisposed()&&!a.j.u.equals(b)&&a.videoTrack)){a.ma();var c=a.j.u;rIa(a,OGa(a.j,b));VU(a);var d=LT(a.j)&&"m"===b.reason&&a.j.Y,e=a.policy.gj&&"l"===b.reason&&xU(a.videoTrack);b=c.i>b.i&&"b"===b.reason;c=a.j.Wa&&!IC();d||e||b||c?eV(a.Aa,{reattchOnConstraint:d?"u":e?"drm":c?"codec":"perf"}):g.hr(a.W)}}};
bV=function(a){a.L("html5_update_constraint")?EX(a):DX(a)};
vMa=function(a){var b=uMa(a);if(b)return a.videoData.getAvailableAudioTracks().find(function(c){return c.Fc.getName()===b})};
uMa=function(a){var b;if(a=null==(b=a.oa)?void 0:b.audioTracks())for(b=0;b<a.length;++b){var c=a[b];if(c.enabled)return c.label}};
sMa=function(a){vra(a.videoData.i,{cpn:a.videoData.clientPlaybackNonce,c:a.X.deviceParams.c,cver:a.X.deviceParams.cver});var b=a.X,c=a.videoData,d=new g.Sza(b),e=Rza(b,{hasSubfragmentedFmp4:c.hasSubfragmentedFmp4,Yk:c.Yk});d.C=e;d.ea=g.lD(b.experiments,"html5_subsegment_readahead_target_buffer_health_secs");d.qc=g.lD(b.experiments,"html5_subsegment_readahead_timeout_secs");d.Xq=g.lD(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs");d.pc=g.lD(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");
d.Yq=g.lD(b.experiments,"html5_subsegment_readahead_min_load_speed");d.Zg=g.lD(b.experiments,"html5_subsegment_readahead_load_speed_check_interval");d.gr=g.lD(b.experiments,"html5_subsegment_readahead_seek_latency_fudge");d.fq=b.L("html5_restrict_streaming_xhr_on_sqless_requests");d.qk=g.lD(b.experiments,"html5_max_headm_for_streaming_xhr");d.Dk=b.L("html5_pipeline_manifestless_allow_nonstreaming");d.Ml=b.L("html5_prefer_server_bwe3");d.hh=1024*g.lD(b.experiments,"html5_video_tbd_min_kb");d.tj=b.L("html5_last_slice_transition");
d.Hq=b.L("html5_store_xhr_headers_readable");d.Hb=g.lD(b.experiments,"html5_probe_primary_delay_base_ms")||d.Hb;d.Sf=b.L("html5_no_placeholder_rollbacks");d.Mq=b.L("html5_subsegment_readahead_enable_mffa");b.L("html5_allow_video_keyframe_without_audio")&&(d.va=!0);d.lr=b.L("html5_webm_init_skipping");d.qd=b.L("html5_abs_buffer_health");d.sj=b.L("html5_interruption_resets_seeked_time");d.Ie=g.lD(b.experiments,"html5_max_live_dvr_window_plus_margin_secs")||d.Ie;d.Md=b.L("html5_explicitly_dispose_xhr");
d.Rp=b.L("html5_restart_on_unexpected_detach");d.mq=b.L("html5_rewrite_manifestless_for_continuity");d.oe=g.lD(b.experiments,"html5_manifestless_seg_drift_limit_secs");d.ye=g.lD(b.experiments,"html5_max_drift_per_track_secs");d.lc=g.lD(b.experiments,"html5_static_abr_resolution_shelf");d.Vi=!b.L("html5_encourage_array_coalescing");d.jj=b.L("html5_crypto_period_secs_from_emsg");d.hk=b.L("html5_filter_non_efficient_formats_for_safari");d.zr=b.L("html5_format_hybridization");d.Gi=b.L("html5_abort_before_separate_init");
d.nq=b.L("html5_serialize_server_stitched_ad_request");d.Rf=b.L("html5_never_pause_appends");d.Ak=g.lD(b.experiments,"html5_min_startup_buffered_media_duration_secs");d.Li=b.L("html5_attach_po_token_to_bandaid");b.L("html5_allow_video_keyframe_without_audio")&&(d.va=!0);0<g.lD(b.experiments,"html5_max_redirect_response_length")&&(d.gi=g.lD(b.experiments,"html5_max_redirect_response_length"));e=g.lD(b.experiments,"html5_resource_bad_status_delay_scaling");0<e&&(d.vp=e);d.Sb=b.L("html5_rewrite_timestamps_for_webm");
d.Ha=b.L("html5_only_media_duration_for_discontinuities");b.L("html5_media_common_config_killswitch")||(d.I=c.maxReadAheadMediaTimeMs/1E3||d.I,e=b.schedule,e.u.vg()===e.policy.u?d.xa=10:d.xa=c.minReadAheadMediaTimeMs/1E3||d.xa,d.Fh=c.readAheadGrowthRateMs/1E3||d.Fh);zn&&(d.ya=41943040);d.Wa=!NC();g.kE(b)||!NC()?(e=b.experiments,d.J=8388608,d.W=524288,d.Ui=5,d.kb=2097152,d.Ia=1048576,d.Pl=1.5,d.Ck=!1,d.Ob=4587520,hu()&&(d.Ob=786432),d.u*=1.1,d.B*=1.1,d.Qb=!0,d.ya=d.J,d.wb=d.W,d.cd=e.Xa("persist_disable_player_preload_on_tv")||
e.Xa("persist_disable_player_preload_on_tv_for_living_room")||!1):b.isMobile&&(d.u*=1.3,d.B*=1.3);g.Uz&&du("crkey")&&(e="CHROMECAST/ANCHOVY"===b.deviceParams.cmodel,d.J=20971520,d.W=1572864,e&&(d.Ob=812500,d.fd=1E3,d.jr=5,d.Ia=2097152));!b.L("html5_disable_firefox_init_skipping")&&g.Fz&&(d.Qb=!0);b.supportsGaplessAudio()||(d.pj=!1);TD&&(d.Qa=!0);d.Ab=b.L("html5_peak_shave");"onesie"===c.fetchType&&b.L("html5_disable_peak_shave_for_onesie")&&(d.Ab=!1);var f;e=null==(f=c.i)?void 0:Yz(f);if(xF(c)){d.wc=
!0;d.jk=!0;d.Ha=!0;d.Sb=!0;d.qq=!0;if("ULTRALOW"===c.latencyClass||"LOW"===c.latencyClass&&!b.L("html5_disable_low_pipeline"))d.nk=2,d.rk=4;d.Yl=c.defraggedFromSubfragments;c.Yd&&(d.Nl=!0);g.MF(c)&&(d.Ta=!1);d.Xi=g.vE(b)}c.isAd()&&(d.xb=0,d.me=0);mua(c)&&(d.La=!0,b.L("html5_aggressive_timeout_for_streaming_xhr")&&(d.fd=400,d.Jb*=3,d.pk=2,d.Pe=3,d.Sg=1.4));d.Ya=b.L("html5_enable_subsegment_readahead_v3")||b.L("html5_ultra_low_latency_subsegment_readahead")&&"ULTRALOW"===c.latencyClass;d.fb=EE(b);d.Y=
d.fb&&(/^rq[a-f]/.test(c.clientPlaybackNonce)||2<=b.N);pu()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(b.deviceParams.cmodel)&&!b.L("html5_disable_move_pssh_to_moov")&&e&&(d.Qb=!1);var k=0;b.L("html5_live_use_alternate_bandwidth_window_sizes")&&(k=b.schedule.policy.j,c.isLivePlayback&&(k=g.lD(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")||k));f=b.schedule;
f.va.i=xF(c)?.5:0;if(!f.policy.i&&k&&(f=f.u,k=Math.round(k*f.resolution),k!==f.i)){var l=Array(k),m=Math.min(k,f.j?f.i:f.valueIndex),n=f.valueIndex-m;0>n&&(n+=f.i);for(var p=0;p<m;++p)l[p]=f.values[(n+p)%f.i];for(;p<k;++p)l[p]=Infinity;f.i=k;f.values=l;f.valueIndex=m%k;f.j=m===k;f.B=!0;f.I=esa(f)}d.Rf=c.isLivePlayback;switch(FF(c)){case 21530001:d.Fi=b.L("html5_live_smoothly_extend_max_seekable_time");d.Ya=!0;"LOW"===c.latencyClass?d.ea=g.lD(b.experiments,"html5_jumbo_mobile_subsegment_readahead_target"):
"ULTRALOW"===c.latencyClass&&(d.ea=g.lD(b.experiments,"html5_jumbo_ull_subsegment_readahead_target"));d.Sf=!0;break;case 2153E4:d.Ya=!1}d.Qa=d.Qa||c.ev;d.hc=c.Ha;2<=b.N&&(d.jb=!0);c.Ha&&!e&&b.L("html5_hack_gapless_init")&&(d.Og=!0);(e=g.lD(b.experiments,"html5_gapless_ad_byterate_multiplier"))&&c.Ha&&c.isAd()&&(d.u*=e,d.B*=e);ZF(c)&&(d.j=c.videoId,b.L("html5_wofflec")&&(d.Ed=!0),d.qd=!0,d.ir=4,c.Kl&&0<c.Kl.length&&(d.Mc=c.Kl));d.gj=c.Og;d.N=cD(b,{},c.B||void 0);c=480<=$C();e=g.lD(b.experiments,"html5_deadzone_multiplier")||
1;(f=g.lD(b.experiments,"html5_sticky_reduces_discount_by"))&&c&&(e-=f);d.u*=e;d.B*=e;if(e=g.lD(b.experiments,"html5_request_sizing_multiplier"))d.rp=e;Vz(b.j,Wz.BITRATE)&&(d.Ob=NaN);b.j.j&&(d.rj="; "+Wz.EXPERIMENTAL.name+"=allowed");c&&(d.lc=0);b.L("html5_prefer_low_quality_audio_means_64k")&&TD&&(d.Ll=!0);b.L("debug_html5_random_stun_format")&&(d.Ng=!0);b.L("html5_log_audio_abr")&&(d.lk=!0);b=a.getAudioTrack();b=b.Fc.isDefault?void 0:b;tV(a.Ft);c=a.X.schedule;e=a.videoData.i;f=a.videoData.B;k=JX(a);
l=a.videoData.enableServerStitchedDai;m=a.videoData;n=m.Ml;delete m.Ml;a.Va=new g.QU(a,c,d,e,f,k,b,l,n,a.X.Qh,a.videoData.xa);b=wMa(a)?!0:a.kt&&g.kE(a.X)&&a.videoData.isLivePlayback;a.Va.initialize(a.getCurrentTime(),JX(a),b);a.videoData.probeUrl&&(a.Va.Ia=a.videoData.probeUrl);!a.Uj.length&&!a.kt||!a.L("woffle_disable_suspend_loader_killswitch")&&a.videoData.cotn||LX(a,!1);pW(a.Tc,a.Va);a.pd&&xIa(a.Va,new g.fV(a.pd));g.$F(a.videoData)&&(a.Va.policy.gk=2);b=a.videoData;if(g.$F(b)){c=b.i.i;if(e=!!c[b.j.id])b=
c[b.j.id].j,e=!!b.i.get("ck")&&!!b.i.get("civ");b=e}else b=!1;(b||ZF(a.videoData)&&d.Ed)&&a.Ba("wofc",{},!0)};
BX=function(a){a.Va&&(a.Va.dispose(),a.Va=null,pW(a.Tc,null));KX(a)};
KX=function(a){if(a.mediaSource){a.ma();if(a.Va){var b=xF(a.videoData)&&a.videoData.Yd&&!a.videoData.isAd();XU(a.Va,b)}a.mediaSource.dispose();a.mediaSource=null}};
xMa=function(a){if(a.mediaSource)return a.mediaSource.Ow;a.ma();a:{try{var b=a.oa.Yp()}catch(c){if(BV(a.xj,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",c);a.Nf("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}pS(a,b)}return a.mediaSource?a.mediaSource.Ow:null};
pS=function(a,b){yMa(a);a.mediaSource=b;Uqa(a.mediaSource,function(c){try{if(a.mediaSource&&(!c||a.mediaSource===c)){a.ma();var d=a.getDuration();!d&&xF(a.videoData)&&(d=25200);a.mediaSource.isView?(c=d,a.ma(),c>a.mediaSource.getDuration()&&a.mediaSource.Wj(c)):a.mediaSource.Wj(d);var e=a.Va,f=a.mediaSource;e.Y&&(e.ma(),TU(e),e.Y=!1);e.ma();nIa(e);if(!f.i&&!f.j){var k=e.videoTrack.i.info.mimeType+e.policy.rj,l=e.audioTrack.i.info.mimeType,m,n=null==(m=f.mediaSource)?void 0:m.addSourceBuffer(l),p,
r="fakesb"===k.split(";")[0]?void 0:null==(p=f.mediaSource)?void 0:p.addSourceBuffer(k);f.Ue&&(f.Ue.webkitSourceAddId("0",l),f.Ue.webkitSourceAddId("1",k));var t=new HC(n,f.Ue,"0",jC(l),!1),w=new HC(r,f.Ue,"1",jC(k),!0);f.i=t;f.j=w;g.J(f,t);g.J(f,w)}mU(e.videoTrack,f.j||null);mU(e.audioTrack,f.i||null);e.mediaSource=f;e.resume();ux(f.i,e.Ta,e);ux(f.j,e.Ta,e);try{e.Eh()}catch(x){g.S(x)}a.Z("mediasourceattached")}}catch(x){g.Rx(x),a.handleError(new g.vD("fmt.unplayable",{msi:"1",ename:x.name},1))}})};
yMa=function(a){a.Va?a.Va.seek(a.getCurrentTime()-a.kd()).yh(function(){}):sMa(a)};
yV=function(a,b){b=void 0===b?!1:b;return g.B(function(c){if(1==c.i)return a.Va&&a.Va.isDisposed()&&BX(a),a.Z("newelementrequired"),b?g.A(c,yX(a),2):c.eb(2);g.V(a.playerState,8)&&a.playVideo();g.ua(c)})};
yFa=function(a,b){a.Ba("newelem",{r:b});yV(a)};
MX=function(a){a.Mb.B.eG();g.V(a.playerState,32)||(a.Yb(SI(a.playerState,32)),g.V(a.playerState,8)&&a.pauseVideo(!0),a.Z("beginseeking",a));a.Rb()};
JS=function(a){g.V(a.playerState,32)?(a.Yb(UI(a.playerState,16,32)),a.Z("endseeking",a)):g.V(a.playerState,2)||a.Yb(SI(a.playerState,16));a.Mb.B.jG(a.videoData,g.V(a.playerState,4))};
oMa=function(a){var b=a.videoData.errorDetail;a.Nf("auth",2,unescape(a.videoData.errorReason),b,b,a.videoData.Ai||void 0)};
zX=function(a,b){a.Z("internalvideodatachange",void 0===b?"dataupdated":b,a,a.videoData)};
zMa=function(a){g.uc("loadstart loadeddata loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" "),function(b){this.xu.S(this.oa,b,this.zG,this)},a);
a.X.gj&&a.oa.mp()&&(a.xu.S(a.oa,"webkitplaybacktargetavailabilitychanged",a.aV,a),a.xu.S(a.oa,"webkitcurrentplaybacktargetiswirelesschanged",a.bV,a))};
BMa=function(a){a.L("html5_enable_timeupdate_timeout")&&!a.videoData.isLivePlayback&&AMa(a)&&a.KB.start()};
AMa=function(a){if(!a.oa)return!1;var b=a.oa.getCurrentTime();a=a.oa.getDuration();return!!(1<b&&b>a-.3)};
CMa=function(a){Jt(a.bB);NX(a)||(a.bB=Ht(function(){return NX(a)},100))};
NX=function(a){var b=a.oa;b&&a.HA&&!a.videoData.jb&&!Dz("vfp",a.Mb.timerName)&&2<=b.Dh()&&!b.fl()&&0<EC(b.Yf())&&a.Mb.tick("vfp");return(b=a.oa)&&!a.videoData.jb&&0<b.getDuration()&&(!Dz("pbp",a.Mb.timerName)&&b.Fl()&&2<=b.Dh()&&0<EC(b.Yf())&&a.Mb.tick("pbp"),b=b.getCurrentTime(),bW(a.xv,b))?(rFa(a),!0):!1};
rFa=function(a){Jt(a.bB);a.uq.stop();a.videoData.jb=!0;a.X.lk=!0;a.X.Ya=0;var b=a.xj;b.videoData.j&&b.i.j.i.delete(b.videoData.j.i);b.j.stop();a.X.Fi=a.videoData.nD;a.videoData.SL=!0;DMa(a);g.V(a.playerState,8)&&a.Yb(TI(a.playerState,65));b=a.Wb;b.i&&jKa(b.i);if(b.u){b=b.u;var c=g.tS(b.i);0>b.j&&(b.j=c,b.delay.start());b.u=c;b.C=c}g.hr(a.GD);a.Z("playbackstarted");g.bu()&&((a=g.Ja("yt.scheduler.instance.clearPriorityThreshold"))?a():cu(0))};
DMa=function(a){var b=a.getCurrentTime(),c=a.videoData;!Dz("pbs",a.Mb.timerName)&&Wy.measure&&Wy.getEntriesByName&&(Wy.getEntriesByName("mark_nr")[0]?epa("mark_nr"):epa());c.videoId&&a.Mb.info("docid",c.videoId);c.eventId&&a.Mb.info("ei",c.eventId);c.clientPlaybackNonce&&!a.L("web_player_early_cpn")&&a.Mb.info("cpn",c.clientPlaybackNonce);0<c.startSeconds&&a.Mb.info("start",c.startSeconds.toString());if(a.oa&&a.oa.Fl())if(a.X.experiments.Xa("web_csi_via_jspb")){var d=new Gs;g.D(d,6,!0);var e=new Hs;
Pd(e,22,d);Cz(e,a.Mb.timerName)}else a.Mb.info("paused",1);a.X.experiments.Xa("web_csi_via_jspb")?(d=new Gs,c.j?(e=Number(c.j.Vb()),g.D(d,1,e)):g.D(d,1,-1),e=new Hs,Pd(e,22,d),Cz(e,a.Mb.timerName)):c.j?a.Mb.info("fmt",c.j.Vb()):a.Mb.info("fmt","-1");c.Ed&&(e=a.fF?2:1,a.X.experiments.Xa("web_csi_via_jspb")?(d=new Gs,g.D(d,8,e),e=new Hs,Pd(e,22,d),Cz(e,a.Mb.timerName)):a.Mb.info("yt_pre",String(a.fF?2:1)));a.isFullscreen()&&a.Mb.info("yt_fs","1");pz({liveStreamMode:EMa[JF(c)]},a.Mb.timerName);a.Mb.info("cmt",
b.toFixed(3));if(a.Va){b=a.Va.timing;window&&window.performance&&window.performance.getEntriesByName&&(b.B&&(c=window.performance.getEntriesByName(b.B),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("vrc",c.responseEnd))),b.i&&(c=window.performance.getEntriesByName(b.i),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("arc",c.responseEnd))));b=b.ticks;for(var f in b)b.hasOwnProperty(f)&&a.Mb.tick(f,b[f])}};
FMa=function(a){a.Wb.Dd();if(a.videoData.isLivePlayback&&Date.now()>a.sM+6283){if(!(!a.isAtLiveHead()||a.videoData.i&&UC(a.videoData.i))){var b=a.Wb;if(b.qoe){b=b.qoe;var c=b.i.Aa.Tz(),d=g.tS(b.i);WJa(b,d,c);c=c.C;isNaN(c)||g.GV(b,d,"e2el",[c.toFixed(3)])}}g.vE(a.X)&&a.Ba("rawlat",{l:fT(a.wH,"rawlivelatency").toFixed(3)});a.sM=Date.now()}a.videoData.j&&pC(a.videoData.j)&&(b=QG(a))&&b.videoHeight!==a.AF&&(a.AF=b.videoHeight,IX(a,"a",tMa(a,a.videoData.fb)))};
tMa=function(a,b){if("auto"===b.i.video.quality&&pC(b.vf())&&a.videoData.Hb)for(var c=g.q(a.videoData.Hb),d=c.next();!d.done;d=c.next())if(d=d.value,d.getHeight()===a.AF&&"auto"!==d.i.video.quality)return d.vf();return b.vf()};
sX=function(a){if(!a.videoData.isLivePlayback)return NaN;var b=0;a.Va&&a.videoData.i&&(b=xF(a.videoData)?a.Va.Ha.vg()||0:a.videoData.i.va);return Date.now()/1E3-a.getIngestionTime()-b};
GMa=function(a){!a.L("html5_ignore_airplay_events_on_new_video_killswitch")&&a.oa&&a.oa.yf()&&(a.pA=(0,g.R)());a.X.Ml?g.Gt(function(){OX(a)},0):OX(a)};
OX=function(a){if(a.oa)try{a.aB=a.oa.playVideo()}catch(c){CX(a,"err."+c)}if(a.aB){var b=a.aB;b.then(void 0,function(c){a.ma();if(!g.V(a.playerState,4)&&!g.V(a.playerState,256)&&a.aB===b)if(c&&"AbortError"===c.name&&c.message&&c.message.includes("load"))a.ma();else{var d="promise";c&&c.name&&(d+=";m."+c.name);CX(a,d);a.kK=!0;a.videoData.OM=!0}})}};
CX=function(a,b){g.V(a.playerState,128)||(a.Yb(UI(a.playerState,1028,9)),a.Ba("dompaused",{r:b}),a.X.L("embeds_web_deprecate_dompaused_killswitch")&&a.Z("onDompaused"),a.Z("onAutoplayBlocked"))};
tX=function(a){if(!a.oa||!a.videoData.B)return!1;var b,c=null;if(null==(b=a.videoData.B)?0:b.i){c=xMa(a);var d;null==(d=a.Va)||d.resume()}else BX(a),a.videoData.fb&&(c=a.videoData.fb.Qu());b=c;d=a.oa.yy();c=!1;d&&d.equals(b)||(HMa(a,b),c=!0);g.V(a.playerState,2)||(b=a.Tc,b.C||!(0<b.u)||b.oa&&0<b.oa.getCurrentTime()||b.seekTo(b.u,{ge:"playbacktimeline_resumeTime"}));a:if(b=c,g.HF(a.videoData)&&a.oa)if((d=a.videoData.N)&&a.oa.mp()){var e=a.oa.He();if(a.Rd)if(e!==a.Rd.element)PX(a);else if(b&&"fairplay"===
d.flavor&&!gu())PX(a);else break a;a.Rd=new vV(e,a.videoData,a.X);a.Rd.subscribe("licenseerror",a.LA,a);a.Rd.subscribe("qualitychange",a.WV,a);a.Rd.subscribe("heartbeatparams",a.hx,a);a.Rd.subscribe("keystatuseschange",a.Mo,a);a.Rd.subscribe("ctmp",a.Ba,a);b=g.q(a.Ft.keys);for(d=b.next();!d.done;d=b.next())d=a.Ft.get(d.value),a.Rd.Bt(d);a.L("html5_eme_loader_sync")||tV(a.Ft)}else a.Nf("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1");return c};
HMa=function(a,b){a.Mb.tick("vta");Ez("vta",void 0,"video_to_ad");0<a.getCurrentTime()&&TKa(a.Tc,a.getCurrentTime());a.oa.Zr(b);a.mediaSource&&cu(4);!a.videoData.jb&&g.WI(a.playerState)&&a.uq.start();if(a.L("html5_native_audio_track_switching")){var c;if(b=null==(c=a.oa)?void 0:c.audioTracks())b.onchange=function(){a.Z("internalaudioformatchange",a.videoData,!0)}}};
PX=function(a){a.Rd&&(a.Rd.dispose(),a.Rd=null)};
qS=function(a,b){b=void 0===b?!1:b;return a.videoData.isLivePlayback&&(a.isAtLiveHead()&&(a.L("html5_videoplayer_getmaxseekabletimeforux_check_pause_killswitch")||!g.V(a.playerState,4))||a.ym()||g.MF(a.videoData))?a.getCurrentTime():a.td(b)};
QX=function(a){a.ma();a.oa&&(a.mediaSource?(PX(a),KX(a),xMa(a)):(a.videoData.fb&&a.videoData.fb.fH(),a.oa.stopVideo()),a.playVideo())};
RX=function(a,b){a.X.L("html5_log_rebuffer_reason")&&a.Ba("bufreason",{r:b,lact:Ou()})};
CS=function(a,b,c,d,e,f){var k;if(null==(k=a.videoData.i)?0:k.isLive){k=2===c.playerType?c:b;var l=b.videoData.videoId,m=c.videoData.videoId;if(l&&m){var n=a.Wb;if(n.qoe){n=n.qoe;var p=b.cpn,r=c.cpn,t=k.videoData.qc,w=n.i.videoData.clientPlaybackNonce,x=n.i.videoData.videoId,y=r!==w&&m!==x;w=p!==w&&l!==x;n.reportStats();n.adCpn&&n.adCpn!==p||(n.adCpn=w?p:"",n.W=w?l:"",n.adFormat=w?t:void 0,ZJa(n,f?2:0,r,m,e),n.reportStats(),n.adCpn=y?r:"",n.W=y?m:"",n.adFormat=y?t:void 0,ZJa(n,f?3:1,p,l,d),n.reportStats())}d=
a.Wb;f=b.cpn;d.B.has(f)?(l=d.B.get(f),XV(l).send(),g.It(l.u),l.u=NaN,d.j.X.L("watch_time_greater_than_playback_time_fix_killswitch")||f===d.j.videoData.clientPlaybackNonce||(YV(l),d.B.delete(f))):(d.Wf=d.j.videoData.clientPlaybackNonce,d.Wf&&d.i&&d.B.set(d.Wf,d.i));d=a.Wb;f=c.cpn;k=k.videoData;if(d.B.has(f)){var z;null!=(z=d.B.get(f))&&z.B&&isNaN(z.u)&&VV(z,!1)}else z=uKa(d,d.j,k,e),d.B.set(f,z),jKa(z);d.Wf=f;z=a.videoData.clientPlaybackNonce;a=c.videoData;b=(c.cpn===z?"video":"ad")+"_to_"+(b.cpn===
z?"video":"ad");z={};!a.L("web_player_csi_ctt_killswitch")&&a.W&&(z.cttAuthInfo={token:a.W,videoId:a.videoId});z.startTime=e;qz(b,z);pz({targetVideoId:a.videoId,targetCpn:c.cpn},b);oz("pbs",e,b)}}};
IMa=function(a,b){if(EE(a.X)){var c=g.lD(a.X.experiments,"html5_log_rebuffer_events");if(c&&a.oa){var d=a.oa.Kb();d.rt=(1E3*g.tS(a.Wb.j)).toFixed();d.e=b.substr(0,3);a.cB[a.eO++%c]=d}}"timeupdate"!==b&&"progress"!==b&&a.ma()};
JMa=function(a){if(EE(a.X)){a.cB.sort(function(d,e){return+d.rt-+e.rt});
for(var b=g.q(a.cB),c=b.next();!c.done;c=b.next())c=c.value,a.Ba("vpe",Object.assign({t:c.rt},c));a.cB=[];a.eO=0}};
KMa=function(a){if(du("cobalt")&&du("nintendo switch")){var b=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;a.Ba("nxdock",{d:b})}};
qFa=function(a,b,c,d,e){a.Ba("xvt",{m:b,g:1,tt:c?1:0,np:d?1:0,c:e})};
LX=function(a,b){var c;null==(c=a.Va)||WU(c,b||wMa(a))};
wMa=function(a){var b=a.L("disable_prefetch_when_ad_pending_for_living_room")&&g.kE(a.X),c=a.L("disable_prefetch_when_ad_pending_for_web");return(b||c)&&g.$b(a.Uj,"ad")};
g.VX=function(a,b,c){g.G.call(this);var d=this;this.Rw=this.rg=!1;this.yu={};this.AD={};this.jB={};this.Rt=[];this.XL=!1;this.rF=null;this.cM=!1;this.lq=!0;this.pH=!1;this.wM=this.CF=null;this.DM=!0;this.oa=this.Nb=null;this.lx=!1;this.JO=this.xx=this.vb=this.playlist=null;this.Nx=void 0;this.ep=0;this.bd=this.Cu=this.qj=null;this.useLivingRoomPoToken=!1;this.ma();this.config=pna(b||{});this.webPlayerContextConfig=c;Ela();b=this.config.args||{};this.X=new mE(b,c,c?c.canaryState:this.config.assets.player_canary_state);
g.J(this,this.X);this.ED();this.X.isMobile&&!LMa&&(window.addEventListener(SD?"touchstart":"click",hFa,{capture:!0,passive:!0}),LMa=!0);this.useLivingRoomPoToken=!(null==c||!c.useLivingRoomPoToken);this.L("html5_generate_session_po_token")&&!this.useLivingRoomPoToken&&(this.L("html5_webpo_idle_priority_job")?Zt(au(),function(){MMa(d)}):MMa(this));
var e=this.X.Qh;e&&e.load().then(function(){d.L("html5_onesie_prewarm")&&Yra(e)});
this.TO=LD(YD(this.X)&&!0,b.enablesizebutton);this.wF=LD(!1,b.player_wide);this.visibility=new vS;g.J(this,this.visibility);this.setIsExternalPlaylist(b.external_list);this.events=new g.sC(this);g.J(this,this.events);this.Mm=new bT;g.J(this,this.Mm);this.fm=new bT;g.J(this,this.fm);this.qo=new oGa;this.Sa=new g.ZL(this);g.J(this,this.Sa);this.template=new jT(this);g.J(this,this.template);this.appState=1;this.og=this.X.storeUserVolume?zra():{volume:100,muted:this.X.mute};this.G=this.X.u?new YL(this,
1):new SL(this,1);g.J(this,this.G);c={};this.DD=(c.internalvideodatachange=this.eV,c.playbackready=this.gV,c.playbackstarted=this.hV,c.statechange=this.iV,c);this.od=NMa(this);this.yU=new g.sC(this);g.J(this,this.yU);this.L("html5_enable_web_assembly")&&this.od&&dAa(this.od).then(function(f){d.X.tj=f});
this.Mb=new jM(this.X,this.od);this.rb=OMa(this);c={};this.gO=(c.airplayactivechange=this.onAirPlayActiveChange,c.airplayavailabilitychange=this.onAirPlayAvailabilityChange,c.beginseeking=this.eG,c.endseeking=this.jG,c.internalAbandon=this.nG,c.internalaudioformatchange=this.ax,c.internalvideodatachange=this.onVideoDataChange,c.internalvideoformatchange=this.kx,c.liveviewshift=this.YV,c.playbackstalledatstart=this.pX,c.progresssync=this.HW,c.onLoadProgress=this.onLoadProgress,c.SEEK_COMPLETE=this.PA,
c.SEEK_TO=this.eX,c.onVideoProgress=this.onVideoProgress,c.onLoadedMetadata=this.onLoadedMetadata,c.onDompaused=this.onDompaused,c.onAutoplayBlocked=this.onAutoplayBlocked,c.playbackready=this.vW,c.statechange=this.XN,c.connectionissue=this.ex,c.newelementrequired=this.AN,c.heartbeatparams=this.hx,c.videoelementevent=this.zG,c.drmoutputrestricted=this.onDrmOutputRestricted,c.signatureexpired=this.kX,c.nonfatalerror=this.mW,c);this.Do=new g.sC(this);g.J(this,this.Do);c=10;g.kE(this.X)&&(c=3);uE(this.X)&&
(c=g.lD(this.X.experiments,"tvhtml5_unplugged_preload_cache_size"));this.qx=new $S(c,function(f){f!==g.hM(d,f.getPlayerType())&&f.dispose()});
g.J(this,this.qx);this.vE=this.sz=-1;this.xB=new g.K(this.template.resize,16,this.template);g.J(this,this.xB);PMa(this);this.pd=new PS(this.Sa,this.X,this.rb);this.Au=new rS(this);g.J(this,this.Au);eGa(this.X.deviceParams.c);this.events.S(this.Sa,g.Ny("appapi"),this.cV);this.events.S(this.Sa,g.Oy("appapi"),this.dV);this.events.S(this.Sa,g.Ny("appad"),this.fN);this.events.S(this.Sa,g.Oy("appad"),this.fN);this.events.S(this.Sa,g.Ny("appprogressboundary"),this.GW);this.events.S(this.Sa,g.Oy("applooprange"),
this.yB);this.events.S(this.Sa,"presentingplayerstatechange",this.eg);this.events.S(this.Sa,"resize",this.SW);this.template.Ca(sh(a));this.events.S(this.Sa,"offlineslatestatechange",this.oW);this.eI=QMa(this,this.template.element);g.J(this,this.eI);this.X.pk&&(a=gFa()?new ZEa(this.X,this.Sa):void 0,this.Mh=a);this.X.Hb&&g.sM("ux",g.oQ);SX(this).isValid()&&(g.ly()&&SX(this).va.push("remote"),TX(this),!this.X.L("html5_delay_initial_loading")&&UX(this)&&(this.X.dh||this.X.oe)&&aS(this.rb));this.Mb.tick("fs");
RMa(this);this.Uc=null;this.X.Hb&&aAa(this.od);g.gE(this.od.G.T())&&DM(this.od,"music");g.WD(this.od.G.T())&&DM(this.od,"embed");this.L("web_player_sentinel_is_uniplayer")||g.Rx(new g.Kv("Player experiment flags missing","web_player_sentinel_is_uniplayer"));a=this.L("web_player_sentinel_yt_experiments_sync");c=g.Q("web_player_sentinel_yt_experiments_sync");a!==c&&g.Rx(new g.Kv("b/195699950",{yt:a,player:c}));this.vP=SMa(this);if(a=g.lD(this.X.experiments,"html5_block_pip_safari_delay"))this.BE=new g.K(this.sK,
a,this),g.J(this,this.BE);this.X.L("embeds_enable_pem_cookie_blocking_killswitch")||(Tt=this.X.La);a=g.lD(this.X.experiments,"html5_performance_impact_profiling_timer_ms");0<a&&(this.aO=new g.Di(a),g.J(this,this.aO),this.events.S(this.aO,"tick",function(){d.bO&&TMa.Kn(d.bO);d.bO=TMa.Zo("apit")}));
this.ma()};
SMa=function(a){function b(c){c.stack&&-1!==c.stack.indexOf("player")&&(a.vb||a.rb).Wb.yd("player.exception",uD({n:c.name,m:c.message}))}
Sx.subscribe("handleError",b);nt.push(b);return function(){Sx.unsubscribe("handleError",b);var c=nt.indexOf(b);-1!==c&&nt.splice(c,1)}};
OMa=function(a){var b=new qF(a.X,a.config.args);b=a.Wl(1,b);b.setPlaybackRate(a.X.i?1:UMa(a,Number(g.jy("yt-player-playback-rate"))||1));ux(b,a.DD,a);return b};
VMa=function(a,b){if(a.rb!==b){a.L("html5_skip_setPresenting")&&(b.getVideoData().autonavState=a.rb.getVideoData().autonavState);vx(a.rb,a.DD,a);var c=a.rb.getPlaybackRate();a.rb.dispose();a.rb=b;a.rb.setPlaybackRate(c);ux(b,a.DD,a);TX(a)}};
NMa=function(a){var b="",c=iGa(a);0===c.indexOf("//")&&(c=a.X.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.Rx(Error("Player module URL mismatch: "+(c+" vs "+b+".")));b=new AM(a.Sa,b);WMa(a,b);return b};
WMa=function(a,b){var c={};c=(c.destroyed=function(){a.onApiChange()},c);
b.j=c};
XMa=function(a,b){var c=a.isVideoInfoVisible();a.qj||(a.qj=new rT(a.Sa),g.J(a,a.qj),g.fM(a.Sa,a.qj.element,4));g.XJ(a.qj,b);WX(a)&&c!==b&&bM(a.od).HH();a=a.vb;b&&a&&a.Ba("sfn",{},!0)};
XX=function(a){a.oa=a.X.deviceHasDisplay?fS.pop()||new g.LM(g.Nh("VIDEO")):new g.LM(g.Nh("AUDIO"));g.J(a,a.oa);a.vb&&a.vb.setMediaElement(a.oa);try{a.X.Ab?(a.Cu&&a.events.xc(a.Cu),a.Cu=a.events.S(a.oa,"volumechange",a.gW)):(a.oa.Tt(a.og.muted),a.oa.setVolume(a.og.volume/100))}catch(d){a.Ve("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(d.message&&d.message.replace(/[;:,]/g,"_")));return}g.sx(a.Do);YMa(a);var b=a.template;b.Gb=a.oa.He();b.aA=!1;b.Gb.parentNode||g.Qh(b.Cv,b.Gb,0);b.hB=
new g.qn(0,0,0,0);nGa(b);kT(b);g.L(b.Gb,"video-stream");g.L(b.Gb,g.iT.MAIN_VIDEO);var c=b.app.T();c.Sg&&b.Gb.setAttribute("data-no-fullscreen","true");c.Xi&&(b.Gb.setAttribute("webkit-playsinline",""),b.Gb.setAttribute("playsinline",""));c.Ll&&b.Gb&&b.S(b.Gb,"click",b.Gb.play,b.Gb);try{a.oa.Zr()}catch(d){a.Ve("html5.missingapi",2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(d.message&&d.message.replace(/[;:,]/g,"_")))}};
$X=function(a,b){if(a.vb!==b){a.ma("start set presenting player, type "+b.getPlayerType()+", vid "+b.getVideoData().videoId);var c=null;a.vb&&(c=a.vb.getPlayerState(),a.ma(),EM(a.od,3),YX(a,"cuerangesremoved",a.vb.hm()),a.Au&&!b.isGapless()&&a.vb.isGapless()&&a.oa&&a.oa.stopVideo(),ZMa(a));1===b.getPlayerType()&&VMa(a,b);$Ma(a,b);a.vb=b;a.oa&&b.setMediaElement(a.oa);ux(b,a.gO,a);if(b.nA())ZX(a,"setPresenting",!1,!0);else{a.onVideoDataChange("newdata",b,b.getVideoData());c&&!g.VI(c,b.getPlayerState())&&
a.XN(new g.TG(b.getPlayerState(),c));if(b.Km.isFinished())a.onVideoDataChange("dataloaded",b,b.getVideoData());(c=(c=b.getVideoData().j)&&c.video)&&a.Sa.Oa("onPlaybackQualityChange",c.quality);YX(a,"cuerangesadded",a.vb.hm());c=b.getPlayerState();g.V(c,2)?aNa(a):g.V(c,8)&&b.playVideo();a.ma()}}};
aNa=function(a){if(!bNa(a)){var b=a.rb.ud();b&&(b=b.Pv(),b instanceof Promise&&b.catch(function(){}));
aY(a,ZI(a.zb()))}};
YMa=function(a){var b=a.oa;xC()?a.Do.S(b,"webkitpresentationmodechanged",a.bX):wC()&&(a.Do.S(b,"enterpictureinpicture",function(){a.Ut(!0)}),a.Do.S(b,"leavepictureinpicture",function(){a.Ut(!1)}));
cE&&(a.Do.S(b,"webkitbeginfullscreen",function(){a.aj(3)}),a.Do.S(b,"webkitendfullscreen",function(){a.aj(0)}))};
$Ma=function(a,b){var c=b.getPlayerType();if(b!==a.rb&&b!==a.yu[c]){var d;null==(d=a.yu[c])||d.dispose();a.yu[c]=b}};
bY=function(a,b){a.ma("release presenting player, type "+b.getPlayerType()+", vid "+b.getVideoData().videoId);b!==a.rb?$X(a,a.rb):a.L("html5_skip_setPresenting")||ZMa(a)};
ZMa=function(a){a.ma();var b;if(b=a.bd)b=a.oa,b=!!b&&b===a.bd.oa;b&&(a.Fg(),XX(a));a.vb&&(a.vb.Fg(),vx(a.vb,a.gO,a),a.L("html5_skip_setPresenting")&&1!==a.vb.getPlayerType()&&a.vb.dispose());a.vb=null;a.ma()};
g.hM=function(a,b){return b?1===b?a.rb:a.getVideoData().enableServerStitchedDai&&2===b?!a.L("web_player_enable_preroll_for_ssdai_killswitch")&&a.getVideoData().enablePreroll?a.yu[2]||a.vb:a.vb:a.yu[b]||null:a.vb};
cY=function(a,b){return a.Yd(b)?a.rb:b};
dY=function(a,b){var c=a.vb;return c&&b===a.rb&&a.Yd(b)&&a.Yd(c)?c:b};
cNa=function(a){if(!WX(a)){var b=FM(a.od);b&&!b.created&&CM(a.od)&&(a.ma(),b.create())}};
dNa=function(a){a.ma();var b=a.getVideoData(),c=a.od;c.KK();DM(c,"attribution",!1,!0);DM(c,"embed");DM(c,"inline_preview");DM(c,"kids");DM(c,"remote");DM(c,"miniplayer");DM(c,"music");DM(c,"unplugged");DM(c,"ypc",!1,!0);DM(c,"ypc_clickwrap",!1,!0);DM(c,"yto",!1,!0);DM(c,"webgl",!1,!0);c.u||(DM(c,"captions",!0),DM(c,"endscreen"),c.dE(),DM(c,"creatorendscreen",!0));var d;(!c.u||(null==(d=c.G.getVideoData())?0:g.$b(d.va,"heartbeat")))&&c.eE();$za(c);a.Sa.Z("videoready",b)};
SX=function(a){return a.rb.getVideoData()};
UX=function(a){a=SX(a);a.isValid();return WF(a)};
RMa=function(a){a.ma();a.iE();var b=a.config.args;XX(a);var c=SX(a);a.Sa.Oa("onVolumeChange",a.og);if(b&&mM(b)){var d=rE(a.X);d&&!a.rg&&(b.fetch=0);var e=g.WD(a.X);e&&!a.rg&&(b.fetch=0);eY(a,b);g.WD(a.X)&&a.Mb.tick("ep_pr_s");if(d&&!a.rg)fY(a);else if(e&&!a.rg)gY(a);else if(!c.isValid())a.playlist.onReady(function(){hY(a)})}$X(a,a.rb);
g.V(a.rb.getPlayerState(),128)||(b=Qqa(a.X.deviceHasDisplay),"fmt.noneavailable"===b?a.Ve("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):"html5.missingapi"===b?a.Ve(b,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):c&&c.isValid()&&UX(a)&&(a.X.dh||a.X.oe)?iY(a):g.jy("yt-player-playback-on-reload")?(g.Fv("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!a.X.authUser}),Hra(!1),iY(a)):BE(a.X)||eNa(a),g.tE(a.X)||"MWEB"===a.X.deviceParams.c?(Zt(au(),function(){jY(a)}),Zt(au(),
function(){Tya()})):(jY(a),Tya()),a.ma())};
jY=function(a){var b=a.getVideoData().botguardData;b&&(a.getVideoData(),g.ML(b,a.X))};
eNa=function(a){a.ma();a.Sa.Z("initializingmode");a.wl(2);DM(a.od,"remote");a.X.L("player_cued_miniplayer_module_killswitch")||DM(a.od,"miniplayer");a.ma()};
iY=function(a){a.ma();if(g.V(a.rb.getPlayerState(),128))return!1;UX(a)&&a.X.oe&&(fS.length&&a.Rw?(UL(a,{muted:!1,volume:a.og.volume},!1),kY(a,!1)):fS.length||a.og.muted||(UL(a,{muted:!0,volume:a.og.volume},!1),kY(a,!0)));var b=a.rb.getVideoData();b.ZN&&UL(a,{muted:!0,volume:a.og.volume},!1);lY(a,1,b,!1);a.Sa.Z("initializingmode");$X(a,a.rb);a.wl(3);if(!(b=!a.X.hk)){if(b=a.bd)b=a.oa,b=!!b&&b===a.bd.oa;b=b&&a.XL}b&&(a.Fg(),XX(a),a.rb.setMediaElement(a.oa));FX(a.rb);if(g.V(a.rb.getPlayerState(),128))return!1;
aY(a,3);return a.XL=!0};
MMa=function(a){var b=g.kE(a.X)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo";a.L("html5_po_token_enable_webpo_experimental")&&(b="bxNLZUJrsnkb8KzwCOTR");try{a.iI=yca({Vj:b,onError:function(d){g.Rx(d)}});
a.iI.ready().then(function(){fNa(a)});
var c=g.lD(a.X.experiments,"html5_session_po_token_interval_time_ms");0<c&&(a.jH=Ht(function(){fNa(a)},c))}catch(d){d instanceof Error&&g.Rx(d)}};
fNa=function(a){var b,c,d,e,f;g.B(function(k){if(!a.L("html5_generate_session_po_token")||null==(b=a.iI)||!b.isReady()||a.useLivingRoomPoToken)return k.return();c=a.L("enable_web_eom_visitor_data")?g.P("EOM_VISITOR_DATA",void 0)||g.P("VISITOR_DATA",void 0):g.P("VISITOR_DATA",void 0);d=a.X.Ek?a.X.datasyncId:c;e=a.X.livingRoomPoTokenId||d;try{f=a.iI.xt({Dv:e}),a.X.Md=g.Jc(f,2)}catch(l){g.Rx(l)}g.ua(k)})};
WX=function(a){a=bM(a.od);return!!a&&a.loaded};
gNa=function(a,b){if(!a.Nb)return!1;var c=.001*a.Nb.startTimeMs-1;a=.001*a.Nb.endTimeMs;return ah(b,c)||ah(b,a)||b>=c&&b<=a};
hNa=function(a){g.V(a.rb.getPlayerState(),64)&&SX(a).isLivePlayback&&5E3>a.Nb.startTimeMs||a.rb.seekTo(.001*a.Nb.startTimeMs,{ge:"application_loopRangeStart"})};
UMa=function(a,b){var c=a.Sa.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};
mY=function(a,b,c){if(a.Yd(c)){c=c.getVideoData();if(a.Uc)c=b;else{a=a.pd;for(var d=g.q(a.j),e=d.next();!e.done;e=d.next())if(e=e.value,c.Dc===e.Dc){b+=e.Hc/1E3;break}d=b;a=g.q(a.j);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.Dc===e.Dc)break;var f=e.Hc/1E3;if(f<b)d+=e.durationMs/1E3+f-e.Zc/1E3;else break}c=d}return c}return b};
iNa=function(a,b){if(3===a.getPresentingPlayerType())return ZI(bM(a.od).Hd);if(a.getVideoData().enableServerStitchedDai&&2===b){var c;return(null==(c=a.Uc)?0:c.isAdPlaying(a.getCurrentTime()))?a.sz:-1}return 2!==b||a.Yd()?a.sz:a.vE};
jNa=function(a){if(g.kE(a.X))return!1;var b=g.dM(a.tb()),c="none"===a.oa.getStyle("display")||0===fh(a.oa.getSize()),d=lT(a.template),e=a.vb.getVideoData(),f=g.eE(a.X)||g.gE(a.X);e=zF(e);a=!d||b||f||e||a.X.Sb;return c&&!a};
TX=function(a){a.ma();nY(a);a.setLoopVideo(!1);a.setLoopRange(null);a.AD={};a.jB={};a.Rt=[];zza(a.Mb);if(a.Uc){var b=a.Uc;a=a.rb;a.getPlayerType();b.ma();IS(b,!1);KS(b);LFa(b);b.Aa=a}else b=a.pd,a=a.rb,1!==a.getPlayerType()&&QS(b,"invalidParentVideoPlayerType"),b.ma(),VS(b,!1),XS(b),b.i=a};
fY=function(a){var b=kNa();if(b)if(!b.list)a.ws();else if(a.playlist&&a.playlist.getPlaylistId()===b.list)if(0<=b.index){var c=b.video;a.Sa.isFullscreen()&&((c=c[a.playlist.index])&&c.encrypted_id!==g.nM(a.playlist).videoId||(b.index=a.playlist.index));pM(a.playlist,b);a.xx&&oY(a,a.xx)}else a.xx=null};
gY=function(a,b){var c=(b?b:SX(a)).NP;a.Mb.tick("ep_pr_r");if(null!=c&&(pM(a.playlist,c),a.pH))a.playlist.onReady(function(){hY(a,b)})};
eY=function(a,b){a.playlist&&(a.playlist.unsubscribe("error",a.ws,a),g.Se(a.playlist),a.playlist=null);b&&(a.rg&&(b.fetch=0),a.playlist=new lM(a.X,b),a.playlist.subscribe("error",a.ws,a))};
pY=function(a,b,c,d){b in a.AD||(c=new g.Ly(c,d,{id:b,priority:2,namespace:"appad"}),a.rb.addCueRange(c),a.AD[b]=c)};
lNa=function(a,b,c){if(!(c in b))return!1;b=b[c];Array.isArray(b)||(b=[b]);b=g.q(b);for(c=b.next();!c.done;c=b.next())if(c=c.value,a.T().L("html5_enable_cpn_macro_substitution_for_trv_discovery_ads")){var d={CPN:a.getVideoData().clientPlaybackNonce};c=g.Sq(c,d);g.Ow(c,void 0,toa(c)||voa(c)||roa(c))}else g.Ow(c,void 0,toa(c)||voa(c)||roa(c));return!0};
aY=function(a,b){a.ma();if(a.vb){var c=a.vb.getPlayerType();if(2===c&&!a.Yd()){a.vE!==b&&(a.vE=b,a.Sa.Oa("onAdStateChange",b));return}if(2===c&&a.Yd()||5===c||6===c||7===c)if(-1===b||0===b||5===b)return}a.sz!==b&&(a.sz=b,a.Sa.Oa("onStateChange",b))};
lY=function(a,b,c,d){if(!f){var e=b+"_"+c.videoId+"_"+c.Dc;var f=a.qx.get(e);if(!f)return null;a.qx.remove(e);if(g.V(f.getPlayerState(),128))return f.dispose(),null}if(f===g.hM(a,b))return f;if((f.getVideoData().oauthToken||c.oauthToken)&&f.getVideoData().oauthToken!==c.oauthToken)return null;d||a.Av(f);return f};
qY=function(a,b,c){c=g.hM(a,c);b&&c===a.rb&&(c.getVideoData().Pe=!0)};
rY=function(a,b,c){c=void 0===c?1:c;a.ma();if(b.isValid()){var d=a.Wl(c,b);a.cancelPlayback(4,c);$X(a,d);2===c&&a.rb.Lt(b.clientPlaybackNonce,b.qc||"",b.breakType||0,b.me);1===c&&(a.wl(1),eNa(a));a.ma()}else a.ma(),b.dispose(),g.Se(g.hM(a,c))};
mNa=function(a,b,c,d,e){b=nza(b,c,d,e);(c=g.WD(a.X)&&!a.X.J)&&!a.rg&&(b.fetch=0);eY(a,b);g.WD(a.X)&&a.Mb.tick("ep_a_pr_s");if(c&&!a.rg)c=SX(a),Nza(c,b).then(function(f){a.pH=!0;gY(a,f)});
else a.playlist.onReady(function(){hY(a)});
g.WD(a.X)&&a.Mb.tick("ep_a_pr_r")};
hY=function(a,b){var c=g.WD(a.X)&&!a.X.J,d=c&&b?b:g.nM(a.playlist);b=c&&b?b:a.getVideoData();d&&(b.ll&&(a.X.dh||a.X.oe)||!a.lq?(b=b.Pe,d=a.Bo(d,1),b&&qY(a,d)):rY(a,d,1));g.WD(a.X)&&a.Mb.tick("ep_p_l");a.pH=!1;a.Sa.Oa("onPlaylistUpdate")};
bNa=function(a){if(a.playlist&&g.bE(a.X)&&a.Uv()){var b=a.X.L("html5_player_autonav_logging");a.nextVideo(!1,b);return!0}return!1};
oY=function(a,b){var c=g.Ja(b);c?((b=kNa())&&b.list&&c(),a.xx=null):a.xx=b};
kNa=function(){var a=g.Ja("yt.www.watch.lists.getState");return a?a():null};
sY=function(a,b,c,d,e,f){b={id:b,namespace:"appapi"};"chapter"===f?(b.style=Ky.CHAPTER_MARKER,b.visible=!0):isNaN(e)||("ad"===f?b.style=Ky.AD_MARKER:(b.style=Ky.TIME_MARKER,b.color=e),b.visible=!0);a.ov([new g.Ly(1E3*c,1E3*d,b)],1);return!0};
nNa=function(a,b,c,d,e){e=void 0===e?!0:e;var f=a.getIngestionTime();if(!f)return e&&a.getVideoData().isLivePlayback&&a.Rt.push({id:b,tZ:c,sZ:d}),!1;e=f-a.getCurrentTime();return sY(a,b,c-e,d-e)};
oNa=function(a,b){a.Rt=g.Bp(a.Rt,function(f){return f.id!==b});
for(var c=a.rb.hm(),d=0;d<c.length;d++){var e=c[d];if(e.getId()===b)return a.rb.removeCueRange(e),YX(a,"cuerangesremoved",[e]),!0}return!1};
pNa=function(a){var b=(0,g.R)(),c=a.getCurrentTime();a=a.getVideoData();c=1E3*(c-a.startSeconds);a.isLivePlayback&&(c=0);return b-Math.max(c,0)};
UL=function(a,b,c){a.X.Y&&(a.og=b,b.muted||kY(a,!1),c&&a.X.storeUserVolume&&!a.X.Ab&&(c={volume:Math.floor(b.volume),muted:b.muted},c.unstorable||(g.iy("yt-player-volume",c),g.iy("yt-player-volume",c,2592E3))),qNa(a),c=g.Uz&&a.oa&&!a.oa.wf(),a.X.Ab&&!c||a.Sa.Oa("onVolumeChange",{muted:b.muted,volume:b.volume,unstorable:!a.X.storeUserVolume}))};
qNa=function(a){var b=a.getVideoData();if(!b.Ng){b=a.X.Ab?1:Dua(b);var c=a.oa;c.Tt(a.og.muted);try{c.setVolume(a.og.volume*b/100)}catch(d){g.Rx(new g.Kv("b183742307","multiplier: "+b+", volume: "+a.og.volume))}}};
kY=function(a,b){b!==a.Rw&&(a.Rw=b,a.Sa.Oa("onMutedAutoplayChange",b))};
tY=function(a){var b=nx(!0);return b&&(b===a.template.element||a.oa&&b===a.oa.He())?b:null};
sNa=function(a,b){var c=window.screen&&window.screen.orientation;if((a.X.L("lock_fullscreen2")||a.X.C)&&c&&c.lock&&(!g.Uz||!rNa))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.lx||e!==b){c=c.lock(e?"portrait":"landscape");if(null!=c)c["catch"](g.Ka);a.lx=!0}}else a.lx&&(a.lx=!1,c.unlock())};
YX=function(a,b,c){a.Sa.Z(b,c);var d=g.kE(a.X)||g.dE(a.X)||g.eE(a.X);if(c&&d){switch(b){case "cuerangemarkersupdated":var e="onCueRangeMarkersUpdated";break;case "cuerangesadded":e="onCueRangesAdded";break;case "cuerangesremoved":e="onCueRangesRemoved"}e&&a.Sa.Oa(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}}))}};
uY=function(a,b,c,d,e,f){c=void 0===c?!0:c;f=void 0===f?!1:f;var k=g.hM(a,e);if(!k||(2!==k.getPlayerType()||a.Yd(k)||f)&&!g.MF(k.getVideoData()))3===a.getPresentingPlayerType()?bM(a.od).jl("control_seek",b,c):(k===a.rb&&a.Nb&&!gNa(a,b)&&a.setLoopRange(null),a.seekTo(b,c,d,e))};
vY=function(a){a.Sa.Oa("SIZE_CLICKED",!a.wF)};
ZX=function(a,b,c,d){c&&(a.Fg(),XX(a));c=g.hM(a);c.yd(new g.vD("staleconfig",{reason:b}));var e=a.getVideoData(),f={};f.video_id=e.videoId;f.adformat=e.adFormat;e.isLivePlayback?xF(e)&&g.vE(a.X)&&(f.live_utc_start=c.getIngestionTime(),f.resume="1"):(f.start=c.getCurrentTime(),f.resume="1");e.La&&(f.vvt=e.La);e.W&&(f.vss_credentials_token=e.W,f.vss_credentials_token_type=e.Yh);e.oauthToken&&(f.oauth_token=e.oauthToken);e.Yg&&(f.force_gvi=e.Yg);f.autoplay=1;f.reload_count=e.Ab+1;f.reload_reason=b;e.pD&&
(f.unplugged_partner_opt_out=e.pD);e.cd&&(f.ypc_is_premiere_trailer=e.cd);e.playerParams&&(f.player_params=e.playerParams);a.loadVideoByPlayerVars(f,void 0,d);"signature"===b&&a.Uc&&cNa(a)};
tNa=function(a,b){SX(a).autonavState=b;g.iy("yt-player-autonavstate",b);a.Sa.Z("autonavchange",b)};
uNa=function(a){var b=a.getVideoData().Ng,c=a.X.Sb,d=a.isInline()&&!a.getVideoData().XF,e=a.oa;b||c||d?e.kE():(e.mE(),UL(a,a.og))};
QMa=function(a,b){return a.X.L("html5_enable_embedded_player_visibility_signals")&&g.WD(a.X)?new hT(b):null};
nY=function(a){var b=FM(a.tb());b&&b.created&&(a.ma(),b.destroy())};
vNa=function(a,b){b.bounds=a.getBoundingClientRect();for(var c=g.q(["display","opacity","visibility","zIndex"]),d=c.next();!d.done;d=c.next())d=d.value,b[d]=Bn(a,d);b.hidden=!!a.hidden};
PMa=function(a){var b=a.X,c=document,d=c.requestStorageAccess&&c.hasStorageAccess;b.L("embeds_enable_request_storage_access_safari_itp")&&g.Sv&&d&&b.i?mu()||b.La?(g.Fv("embedsStorageAccessNotChecked",{isIosWebview:mu(),isPemPlayer:b.La}),a.Nx=!1):c.hasStorageAccess().then(function(e){g.Fv("embedsHasStorageAccessResult",{hasCookieAccess:e,resultedInError:!1});a.Nx=!e},function(e){g.Fv("embedsHasStorageAccessResult",{hasCookieAccess:!1,
resultedInError:!0});g.Rx(Error("Embeds ITP Error: "+e));a.Nx=!1}):a.Nx=!1};
wY=function(a,b){var c=void 0;g.kE(a.X)&&Ct(b)&&Bt(b)&&(a=g.YF(a.getVideoData()))&&(c={Authorization:"Bearer "+a});g.Ow(b,void 0,void 0,c)};
xY=function(a,b){b.forEach(function(c){wY(a,c)})};
iGa=function(a){return a.webPlayerContextConfig?a.webPlayerContextConfig.jsUrl:a.config.assets&&a.config.assets.js?a.config.assets.js:""};
wNa=function(a){var b;a=null==(b=VL(a.tb()))?void 0:b.Vv();if(!(a instanceof g.gN))return null;var c;return(null==(c=a.BL())?void 0:c.W)||null};
yY=function(a){var b=new Map;a.forEach(function(c){b.set(c.getType(),c)});
this.i=b};
uy=function(a,b){return a.i.has(b)};
X=function(a,b){a=a.i.get(b);if(void 0!==a)return a.get()};
zY=function(a){return Array.from(a.i.keys())};
yNa=function(a){var b;return(null==(b=xNa.get(a))?void 0:b.Zt)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
BY=function(a,b){var c={type:b.ob,controlFlowManagerLayer:zNa.get(b.gb)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};b.Lb&&(c.entryTriggerType=b.Lb.triggerType);1!==b.slotPhysicalPosition&&(c.slotPhysicalPosition=b.slotPhysicalPosition);if(a){c.debugData={slotId:b.slotId};if(a=b.Lb)c.debugData.slotEntryTriggerData=AY(a);a=b.kc;c.debugData.fulfillmentTriggerData=[];a=g.q(a);for(var d=a.next();!d.done;d=a.next())c.debugData.fulfillmentTriggerData.push(AY(d.value));b=b.vc;c.debugData.expirationTriggerData=
[];b=g.q(b);for(a=b.next();!a.done;a=b.next())c.debugData.expirationTriggerData.push(AY(a.value))}return c};
ANa=function(a,b){var c={type:b.layoutType,controlFlowManagerLayer:zNa.get(b.gb)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};a&&(c.debugData={layoutId:b.layoutId});return c};
AY=function(a,b){var c={type:a.triggerType};null!=b&&(c.category=b);null!=a.Lg&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedSlotId=a.Lg);null!=a.Oe&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedLayoutId=a.Oe);return c};
BNa=function(a,b,c,d){b={opportunityType:b};a&&(d||c)&&(d=g.po(d||[],function(e){return BY(a,e)}),b.debugData=Object.assign({},c&&0<c.length?{associatedSlotId:c}:{},0<d.length?{slots:d}:{}));
return b};
EY=function(a,b){return function(c){return CY(DY(a),b.slotId,b.ob,b.slotPhysicalPosition,b.gb,b.Lb,b.kc,b.vc,c.layoutId,c.layoutType,c.gb)}};
CY=function(a,b,c,d,e,f,k,l,m,n,p){return{adClientDataEntry:{slotData:BY(a,{slotId:b,ob:c,slotPhysicalPosition:d,gb:e,Lb:f,kc:k,vc:l,Ea:new yY([])}),layoutData:ANa(a,{layoutId:m,layoutType:n,gb:p,xd:[],Qc:[],Oc:[],Rc:[],Wc:[],uc:new Map,Ea:new yY([]),Bc:{}})}}};
FY=function(a){this.Ka=a;this.i=0>Math.random()};
DY=function(a){var b;(b=a.i)||(a=a.Ka.get(),b=a.G.T().L("html5_force_debug_data_for_client_tmp_logs")||a.G.T().L("html5_force_debug_data_for_client_tmp_logs_live_infra"));return b};
CNa=function(a){return{slotId:Ay(a,"SLOT_TYPE_IN_PLAYER"),ob:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Lb:void 0,kc:[],vc:[],gb:"surface",Ea:new yY([])}};
DNa=function(a,b){var c=CNa(b),d=Object,e=d.assign;b=By(b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",c.slotId);b={layoutId:b,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",uc:new Map,xd:[],Qc:[],Oc:[],Rc:[],Wc:[],gb:"surface",Ea:new yY([]),Bc:CY(!1,c.slotId,c.ob,c.slotPhysicalPosition,c.gb,c.Lb,c.kc,c.vc,b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return e.call(d,{},a,{bU:!0,slot:c,layout:b})};
GY=function(a){this.controller=a};
HY=function(a){this.bE=a};
IY=function(a,b,c){this.bE=a;this.jh=b;this.Ki=c};
ENa=function(a,b,c){var d=a.bE();switch(b.type){case "SKIP":pxa(d,a.jh,a.Ki,c)}};
JY=function(){};
KY=function(){};
LY=function(){};
MY=function(a,b){this.Ap=a;this.Ra=b};
NY=function(a){this.G=a};
OY=function(a,b){this.Sh=a;this.Ra=b};
GNa=function(a){g.G.call(this);this.i=a;this.cR=FNa(this)};
FNa=function(a){var b=new MJ(a.i.Pc);g.J(a,b);a=g.q([new GY(a.i.fS),new MY(a.i.Ap,a.i.Ra),new NY(a.i.G),new OY(a.i.Sh,a.i.Ra),new IY(a.i.HU,a.i.jh,a.i.Ki),new HY(a.i.wS),new KY,new LY,new JY]);for(var c=a.next();!c.done;c=a.next())c=c.value,hxa(b,c),ixa(b,c);a=g.q(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(c=a.next();!c.done;c=a.next())KJ(b,c.value,function(){});
return b};
HNa=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}};
PY=function(a,b,c,d){g.G.call(this);this.Od=b;this.Ub=c;this.Ka=d;this.i=a(this,this,this,this,this);g.J(this,this.i);a=g.q(b);for(b=a.next();!b.done;b=a.next())g.J(this,b.value)};
QY=function(a,b){a.Od.add(b);a.Ka.get().G.T().L("html5_not_register_disposables_when_core_listens")||g.J(a,b)};
xI=function(a,b){AI(a.Ub,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",b)};
yI=function(a,b){AI(a.Ub,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",b);a=g.q(a.Od);for(var c=a.next();!c.done;c=a.next())c.value.ph(b)};
INa=function(a,b){a=g.q(a.Od);for(var c=a.next();!c.done;c=a.next())c.value.Ri(b)};
zI=function(a,b){AI(a.Ub,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",b);a=g.q(a.Od);for(var c=a.next();!c.done;c=a.next())c.value.nf(b)};
jH=function(a,b){AI(a.Ub,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",b);a=g.q(a.Od);for(var c=a.next();!c.done;c=a.next())c.value.qf(b)};
SY=function(a,b,c){T(c,b,void 0,void 0,c.Bp);RY(a,b,!0)};
KNa=function(a,b,c){if(TY(a.i,b))if(UY(a.i,b).B=c?"filled":"not_filled",null===c){VY(a.Ub,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",b);c=g.q(a.Od);for(var d=c.next();!d.done;d=c.next())d.value.Sj(b);RY(a,b,!1)}else{VY(a.Ub,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",b,c);VY(a.Ub,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,c);if(d=X(c.Ea,"metadata_type_sub_layouts")){d=g.q(d);for(var e=d.next();!e.done;e=d.next())VY(a.Ub,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,e.value)}e=g.q(a.Od);for(d=e.next();!d.done;d=
e.next())d.value.Tj(b);if(TY(a.i,b))if(UY(a.i,b).C)RY(a,b,!1);else{VY(a.Ub,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",b,c);try{var f=a.i;if(!UY(f,b))throw new WY("Unknown slotState for onLayout");if(!f.Ud.Cm.get(b.ob))throw new WY("No LayoutRenderingAdapterFactory registered for slot of type: "+b.ob);if(g.ac(c.xd)&&g.ac(c.Qc)&&g.ac(c.Oc)&&g.ac(c.Rc)&&g.ac(c.Wc))throw new WY("Layout has no exit triggers.");XY(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.xd);XY(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",
c.Qc);XY(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.Oc);XY(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.Rc);XY(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",c.Wc)}catch(n){a.Df(b,c,n);RY(a,b,!0);return}UY(a.i,b).I=!0;try{var k=a.i,l=UY(k,b),m=k.Ud.Cm.get(b.ob).get().Wd(k.B,k.j,b,c);m.init();l.layout=c;if(l.u)throw new WY("Already had LayoutRenderingAdapter registered for slot");l.u=m;YY(k,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.xd);YY(k,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",
c.Qc);YY(k,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.Oc);YY(k,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.Rc);YY(k,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",c.Wc)}catch(n){ZY(a,b,!0);RY(a,b,!0);a.Df(b,c,n);return}VY(a.Ub,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);f=g.q(a.Od);for(d=f.next();!d.done;d=f.next())d.value.Oi(b,c);ZY(a,b,!1);JNa(a,b)}else $Y(a.Ka.get())&&T("slot is unscheduled after been fulfilled.",b,c)}};
aZ=function(a,b,c){"core"!==b.gb&&VY(a.Ub,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,c)};
bZ=function(a,b,c){VY(a.Ub,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);a=g.q(a.Od);for(var d=a.next();!d.done;d=a.next())d.value.Oi(b,c)};
BI=function(a,b,c){a=g.q(a.Od);for(var d=a.next();!d.done;d=a.next())d.value.Pi(b,c)};
cZ=function(a,b,c){VY(a.Ub,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",b,c);a=g.q(a.Od);for(var d=a.next();!d.done;d=a.next())d.value.Lc(b,c)};
iH=function(a,b,c,d){VY(a.Ub,yNa(d),b,c);a=g.q(a.Od);for(var e=a.next();!e.done;e=a.next())e.value.Xc(b,c,d)};
ZY=function(a,b,c){TY(a.i,b)&&(UY(a.i,b).I=!1,c?a.Ka.get().G.T().L("html5_enable_deferred_triggers_on_error")?dZ(a,LNa(a.i,b)):$Y(a.Ka.get())&&T("Ignore deferred triggers due to error",b):dZ(a,LNa(a.i,b)))};
dZ=function(a,b){b.sort(function(f,k){function l(m){T("TriggerCategoryOrder enum does not contain trigger category: "+m)}
return f.category===k.category?f.trigger.triggerId.localeCompare(k.trigger.triggerId):HNa(f.category,l)-HNa(k.category,l)});
var c=new Map;b=g.q(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,TY(a.i,d.slot))if(UY(a.i,d.slot).I)UY(a.i,d.slot).N.push(d);else{MNa(a.Ub,d.slot,d,d.layout);var e=c.get(d.category);e||(e=[]);e.push(d);c.set(d.category,e)}b=g.q(NNa);for(d=b.next();!d.done;d=b.next())e=g.q(d.value),d=e.next().value,e=e.next().value,(d=c.get(d))&&ONa(a,d,e);(b=c.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&PNa(a,b);(b=c.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&QNa(a,b);(c=c.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&&
RNa(a,c)};
ONa=function(a,b,c){b=g.q(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.layout&&eZ(a.i,d.slot)&&SNa(a,d.slot,d.layout,c)};
PNa=function(a,b){b=g.q(b);for(var c=b.next();!c.done;c=b.next())RY(a,c.value.slot,!1)};
QNa=function(a,b){b=g.q(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a:switch(UY(a.i,c.slot).B){case "not_filled":var d=!0;break a;default:d=!1}d&&(AI(a.Ub,"ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",c.slot),a.i.Sv(c.slot))}};
RNa=function(a,b){b=g.q(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;AI(a.Ub,"ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",c.slot);for(var d=g.q(a.Od),e=d.next();!e.done;e=d.next())e.value.Ri(c.slot);try{var f=a.i,k=c.slot,l=UY(f,k);if(!l)throw new fZ("Got enter request for unknown slot");if(!l.j)throw new fZ("Tried to enter slot with no assigned slotAdapter");if("scheduled"!==l.i)throw new fZ("Tried to enter a slot from stage: "+l.i);if(gZ(l))throw new fZ("Got enter request for already active slot");
for(var m=g.q(hZ(f,k.ob+"_"+k.slotPhysicalPosition).values()),n=m.next();!n.done;n=m.next()){var p=n.value;if(l!==p&&gZ(p))throw new fZ("Trying to enter a slot when a slot of same type is already active.",{activeSlotStatus:p.i});}}catch(r){T(r,c.slot,iZ(a.i,c.slot),void 0,r.Bp);RY(a,c.slot,!0);continue}c=UY(a.i,c.slot);"scheduled"!==c.i&&jZ(c.slot,c.i,"enterSlot");c.i="enter_requested";c.j.qz()}};
JNa=function(a,b){if(TY(a.i,b)&&gZ(UY(a.i,b))&&iZ(a.i,b)&&!eZ(a.i,b)){var c;VY(a.Ub,"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",b,null!=(c=iZ(a.i,b))?c:void 0);a=UY(a.i,b);"entered"!==a.i&&jZ(a.slot,a.i,"enterLayoutForSlot");a.i="rendering";a.u.startRendering(a.layout)}};
SNa=function(a,b,c,d){if(TY(a.i,b)){var e=a.Ub,f;var k=(null==(f=xNa.get(d))?void 0:f.Ot)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";VY(e,k,b,c);a=UY(a.i,b);"rendering"!==a.i&&jZ(a.slot,a.i,"exitLayout");a.i="rendering_stop_requested";a.u.jf(c,d)}};
RY=function(a,b,c){if(TY(a.i,b)){a:switch(UY(a.i,b).i){case "exit_requested":var d=!0;break a;default:d=!1}if(!d)a:switch(UY(a.i,b).i){case "rendering_stop_requested":d=!0;break a;default:d=!1}if(d&&(UY(a.i,b).C=!0,!c))return;if(gZ(UY(a.i,b)))UY(a.i,b).C=!0,TNa(a,b,c);else{a:switch(UY(a.i,b).B){case "fill_requested":c=!0;break a;default:c=!1}if(c)UY(a.i,b).C=!0,TY(a.i,b)&&(AI(a.Ub,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",b),b=UY(a.i,b),b.B="fill_cancel_requested",b.J.OD());else{c=
iZ(a.i,b);AI(a.Ub,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",b);d=UY(a.i,b);var e=b.Lb,f=d.va.get(e.triggerId);f&&(f.lj(e),d.va.delete(e.triggerId));e=g.q(b.kc);for(f=e.next();!f.done;f=e.next()){f=f.value;var k=d.Y.get(f.triggerId);k&&(k.lj(f),d.Y.delete(f.triggerId))}e=g.q(b.vc);for(f=e.next();!f.done;f=e.next())if(f=f.value,k=d.W.get(f.triggerId))k.lj(f),d.W.delete(f.triggerId);null!=d.layout&&(e=d.layout,kZ(d,e.xd),kZ(d,e.Qc),kZ(d,e.Oc),kZ(d,e.Rc),kZ(d,e.Wc));d.J=void 0;null!=d.j&&(d.j.release(),
d.j=void 0);null!=d.u&&(d.u.release(),d.u=void 0);d=a.i;UY(d,b)&&(d=hZ(d,b.ob+"_"+b.slotPhysicalPosition))&&d.delete(b.slotId);AI(a.Ub,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",b);a=g.q(a.Od);for(d=a.next();!d.done;d=a.next())d=d.value,d.Si(b),c&&d.Pi(b,c)}}}};
TNa=function(a,b,c){if(TY(a.i,b)&&gZ(UY(a.i,b))){var d=iZ(a.i,b);if(d&&eZ(a.i,b))SNa(a,b,d,c?"error":"abandoned");else{AI(a.Ub,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",b);try{var e=UY(a.i,b);if(!e)throw new fZ("Cannot exit slot it is unregistered");"enter_requested"!==e.i&&"entered"!==e.i&&"rendering"!==e.i&&jZ(e.slot,e.i,"exitSlot");e.i="exit_requested";if(void 0===e.j)throw e.i="scheduled",new fZ("Cannot exit slot because adapter is not defined");e.j.rz()}catch(f){T(f,b,void 0,void 0,f.Bp)}}}};
UNa=function(a){this.slot=a;this.va=new Map;this.Y=new Map;this.W=new Map;this.ea=new Map;this.u=this.layout=this.j=this.J=void 0;this.I=this.C=!1;this.N=[];this.i="not_scheduled";this.B="not_filled"};
gZ=function(a){return"enter_requested"===a.i||a.isActive()};
WY=function(a,b,c){c=void 0===c?!1:c;$a.call(this,a);this.Bp=c;this.args=[];b&&this.args.push(b)};
fZ=function(a,b,c){c=void 0===c?!1:c;$a.call(this,a);this.Bp=c;this.args=[];b&&this.args.push(b)};
lZ=function(a,b,c,d,e,f){g.G.call(this);this.Ud=a;this.u=b;this.C=c;this.B=d;this.j=e;this.Ka=f;this.i=new Map};
hZ=function(a,b){return(a=a.i.get(b))?a:new Map};
UY=function(a,b){return hZ(a,b.ob+"_"+b.slotPhysicalPosition).get(b.slotId)};
VNa=function(a){var b=[];a.i.forEach(function(c){c=g.q(c.values());for(var d=c.next();!d.done;d=c.next())b.push(d.value.slot)});
return b};
TY=function(a,b){return null!=UY(a,b)};
LNa=function(a,b){a=UY(a,b);b=[].concat(g.u(a.N));bc(a.N);return b};
eZ=function(a,b){a=UY(a,b);if(b=null!=a.layout)a:switch(a.i){case "rendering":case "rendering_stop_requested":b=!0;break a;default:b=!1}return b};
iZ=function(a,b){if(!mZ(a.Ka.get()))return b=UY(a,b),null!=b.layout?b.layout:null;(a=UY(a,b))?null!=a.layout&&!a.layout&&T("Unexpected empty layout",b):T("Unexpected undefined slotState",b);return(null==a?void 0:a.layout)||null};
nZ=function(a,b,c){if(g.ac(c))throw new fZ("No "+WNa.get(b)+" triggers found for slot.");c=g.q(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.Ud.Wh.get(d.triggerType))throw new fZ("No trigger adapter registered for "+b+" trigger of type: "+d.triggerType);};
XY=function(a,b,c){c=g.q(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.Ud.Wh.get(d.triggerType))throw new WY("No trigger adapter registered for "+WNa.get(b)+" trigger of type: "+d.triggerType);};
YY=function(a,b,c,d){d=g.q(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=a.Ud.Wh.get(e.triggerType);f.Wi(c,e,b.slot,b.layout?b.layout:null);b.ea.set(e.triggerId,f)}};
kZ=function(a,b){b=g.q(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.ea.get(c.triggerId);d&&(d.lj(c),a.ea.delete(c.triggerId))}};
jZ=function(a,b,c){T("Slot stage was "+b+" when calling method "+c,a)};
XNa=function(a){return oZ(a.Eq).concat(oZ(a.Wh)).concat(oZ(a.gm)).concat(oZ(a.Sm)).concat(oZ(a.Cm))};
oZ=function(a){var b=[];a=g.q(a.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.Di&&b.push(c);return b};
pZ=function(a){g.G.call(this);this.i=a;this.j=YNa(this)};
YNa=function(a){var b=new PY(function(c,d,e,f){return new lZ(a.i.Ud,c,d,e,f,a.i.Ka)},new Set(XNa(a.i.Ud).concat(a.i.listeners)),a.i.Ub,a.i.Ka);
g.J(a,b);return b};
qZ=function(a){g.G.call(this);var b=this;this.j=a;this.i=null;g.Ue(this,function(){g.Se(b.i);b.i=null})};
Y=function(a){return new qZ(a)};
rZ=function(a){this.i=a};
DK=function(a,b,c,d){(a=a.i())||T("Could not initiate a command router instance.");a.executeCommand(b,c,d)};
sZ=function(a){var b,c=null==(b=a.config)?void 0:b.adPlacementConfig;a=a.renderer;return!(!c||null==c.kind||!a)};
ZNa=function(a){return null!=a.linearAd&&null!=a.adVideoStart};
bOa=function(a,b,c,d,e,f,k){b=$Na(b,f,Number(d.prefetchMilliseconds)||0,k);a=b instanceof fZ?b:aOa(a,d,e,b,c);return a instanceof fZ?a:[a]};
cOa=function(a){var b,c;return void 0!==(null==(b=a.renderer)?void 0:null==(c=b.adBreakServiceRenderer)?void 0:c.getAdBreakUrl)};
gOa=function(a,b,c,d,e){b=g.q(b);for(var f=b.next();!f.done;f=b.next())f=f.value,tZ(a,f.renderer,f.config.adPlacementConfig.kind);f=Array.from(a.values()).filter(function(n){return dOa(n)});
a=[];b={};f=g.q(f);for(var k=f.next();!k.done;b={qr:b.qr},k=f.next()){b.qr=k.value;k={};for(var l=g.q(b.qr.xD),m=l.next();!m.done;k={Ym:k.Ym},m=l.next())k.Ym=m.value,m=function(n,p){return function(r){return n.Ym.LK(r,p.qr.instreamVideoAdRenderer.elementId,n.Ym.bK)}}(k,b),"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===k.Ym.gs?a.push(eOa(c,d,k.Ym.cK,e,b.qr.instreamVideoAdRenderer.elementId,k.Ym.adSlotLoggingData,m)):a.push(fOa(c,d,e,b.qr.instreamVideoAdRenderer.elementId,k.Ym.adSlotLoggingData,m))}return a};
tZ=function(a,b,c){if(b=hOa(b)){b=g.q(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.externalVideoId){var e=iOa(a,d.externalVideoId);e.instreamVideoAdRenderer||(e.instreamVideoAdRenderer=d,e.hA=c)}else T("InstreamVideoAdRenderer without externalVideoId")}};
hOa=function(a){var b=[],c=a.sandwichedLinearAdRenderer&&a.sandwichedLinearAdRenderer.linearAd&&a.sandwichedLinearAdRenderer.linearAd.instreamVideoAdRenderer;if(c)return b.push(c),b;if(a.instreamVideoAdRenderer)return b.push(a.instreamVideoAdRenderer),b;if(a.linearAdSequenceRenderer&&a.linearAdSequenceRenderer.linearAds){a=g.q(a.linearAdSequenceRenderer.linearAds);for(c=a.next();!c.done;c=a.next())c=c.value,c.instreamVideoAdRenderer&&b.push(c.instreamVideoAdRenderer);return b}return null};
dOa=function(a){if(void 0===a.instreamVideoAdRenderer)return T("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var b=g.q(a.xD),c=b.next();!c.done;c=b.next()){c=c.value;if(void 0===c.LK)return!1;if(void 0===c.bK)return T("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(void 0===a.hA||void 0===c.gs||a.hA!==c.gs&&"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"!==c.gs)return!1;if(void 0===a.instreamVideoAdRenderer.elementId)return T("InstreamVideoAdRenderer has no elementId",
void 0,void 0,{kind:a.hA,"matching APSR kind":c.gs}),!1;if("AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===c.gs&&void 0===c.cK)return T("Command Triggered AdPlacementSupportedRenderer's AdPlacementRenderer does not have an element ID"),!1}return!0};
iOa=function(a,b){a.has(b)||a.set(b,{instreamVideoAdRenderer:void 0,hA:void 0,adVideoId:b,xD:[]});return a.get(b)};
uZ=function(a,b,c,d,e,f,k){d?iOa(a,d).xD.push({cK:b,gs:c,bK:e,adSlotLoggingData:f,LK:k}):T("Companion AdPlacementSupportedRenderer without adVideoId")};
vZ=function(a){var b=0;a=g.q(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};
wZ=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),k;b=[].concat(g.u((null==(k=a.playbackCommands)?void 0:k.instreamAdCompleteCommands)||[]),g.u((null==f?void 0:f.timeoutCommands)||[]));var l,m,n,p,r,t,w,x,y,z,F,I,H,O,ma,N,da,qa,Wa,cc;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==(r=a.playbackCommands)?void 0:r.pauseCommands,rewindCommands:null==(t=a.playbackCommands)?void 0:t.rewindCommands,resumeCommands:null==(w=a.playbackCommands)?void 0:w.resumeCommands,skipCommands:null==(x=a.playbackCommands)?void 0:x.skipCommands,progressCommands:null==
(y=a.playbackCommands)?void 0:y.progressCommands,Vea:null==(z=a.playbackCommands)?void 0:z.clickthroughCommands,fullscreenCommands:null==(F=a.playbackCommands)?void 0:F.fullscreenCommands,activeViewViewableCommands:null==(I=a.playbackCommands)?void 0:I.activeViewViewableCommands,activeViewMeasurableCommands:null==(H=a.playbackCommands)?void 0:H.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:null==(O=a.playbackCommands)?void 0:O.activeViewFullyViewableAudibleHalfDurationCommands,
activeViewAudioAudibleCommands:null==(ma=a.playbackCommands)?void 0:null==(N=ma.activeViewTracking)?void 0:N.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:null==(da=a.playbackCommands)?void 0:null==(qa=da.activeViewTracking)?void 0:qa.activeViewAudioMeasurableCommands,endFullscreenCommands:null==(Wa=a.playbackCommands)?void 0:Wa.endFullscreenCommands,abandonCommands:null==(cc=a.playbackCommands)?void 0:cc.abandonCommands,completeCommands:b}};
kOa=function(a,b,c,d,e,f,k){return function(l,m){return jOa(a,m.slotId,l,f,function(n,p){n=k(n);return xZ(b,m.layoutId,p,e,n,"LAYOUT_TYPE_SURVEY",[new IH(c),d],c.adLayoutLoggingData)})}};
nOa=function(a,b,c,d,e,f,k){if(!lOa(a))return new fZ("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:a});var l=a.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[mOa(f,b,c,d,function(m){var n=k(m);m=m.slotId;m=By(e.j.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",m);var p={layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",gb:"core"},r=new yZ(e.i,d);return{layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",uc:new Map,xd:[r],Qc:[],
Oc:[],Rc:[],Wc:[],gb:"core",Ea:new yY([new JH(l)]),Bc:n(p)}})]};
lOa=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};
qOa=function(a,b,c,d,e){var f;if(null==(f=a.playerOverlay)||!f.instreamSurveyAdRenderer)return function(){return[]};
if(!yva(a))return function(){return new fZ("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:a})};
var k=a.playerOverlay.instreamSurveyAdRenderer,l=vZ(k);return 0>=l?function(){return new fZ("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:k})}:function(m,n){var p=oOa(m,c,d,function(r){var t=n(r),w=r.slotId;
r=wZ(k);w=By(e.j.get(),"LAYOUT_TYPE_SURVEY",w);var x={layoutId:w,layoutType:"LAYOUT_TYPE_SURVEY",gb:"core"},y=new yZ(e.i,d),z=new zZ(e.i,w),F=new AZ(e.i,w),I=new pOa(e.i);return{layoutId:w,layoutType:"LAYOUT_TYPE_SURVEY",uc:new Map,xd:[y,I],Qc:[z],Oc:[],Rc:[F],Wc:[],gb:"core",Ea:new yY([new HH(k),new xH(b),new gI(l/1E3),new jI(r)]),Bc:t(x),adLayoutLoggingData:k.adLayoutLoggingData}});
m=nOa(a,c,p.slotId,d,e,m,n);return m instanceof fZ?m:[p].concat(g.u(m))}};
yOa=function(a,b,c,d,e){var f=[];try{var k=[];if(c.renderer.linearAdSequenceRenderer)var l=function(w){w=rOa(w.slotId,c,b,e(w),d);k=w.QY;return w.JS};
else if(c.renderer.instreamVideoAdRenderer)l=function(w){var x=w.slotId;w=e(w);var y=c.config.adPlacementConfig,z=sOa(y),F=z.bL;z=z.eL;var I=c.renderer.instreamVideoAdRenderer,H;if(null==I?0:null==(H=I.playerOverlay)?0:H.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var O=tOa(I);H=Math.min(F+1E3*O.videoLengthSeconds,z);z=new nG(0,[O.videoLengthSeconds],H);var ma=O.videoLengthSeconds,N=O.playerVars,da=O.instreamAdPlayerOverlayRenderer,qa=O.adVideoId,
Wa=uOa(c),cc=O.uc;O=O.ZJ;var dc=null==I?void 0:I.adLayoutLoggingData;I=null==I?void 0:I.sodarExtensionData;x=By(b.j.get(),"LAYOUT_TYPE_MEDIA",x);var cb={layoutId:x,layoutType:"LAYOUT_TYPE_MEDIA",gb:"core"};return{layoutId:x,layoutType:"LAYOUT_TYPE_MEDIA",uc:cc,xd:[new BZ(b.i)],Qc:[],Oc:[],Rc:[],Wc:[],gb:"core",Ea:new yY([new BH(d),new TH(ma),new UH(N),new WH(F),new XH(H),da&&new CH(da),new xH(y),new zH(qa),new yH(z),new bI(Wa),I&&new VH(I),new PH({current:null}),new ZH({}),new nI(O)].filter(vOa)),
Bc:w(cb),adLayoutLoggingData:dc}};
else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var m=wOa(a,d,l);f.push(m);for(var n=g.q(k),p=n.next();!p.done;p=n.next()){var r=p.value,t=r(a,e);if(t instanceof fZ)return t;f.push.apply(f,g.u(t))}}catch(w){return new fZ(w,{errorMessage:w.message,AdPlacementRenderer:c,numberOfSurveyRenderers:xOa(c)})}return f};
xOa=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};
rOa=function(a,b,c,d,e){var f=b.config.adPlacementConfig,k=sOa(f),l=k.bL,m=k.eL;k=(b.renderer.linearAdSequenceRenderer||{}).linearAds;if(null==k||!k.length)throw new TypeError("Expected linear ads");var n=[],p={aP:l,bP:0,MY:n};k=k.map(function(t){return zOa(a,t,p,c,d,f,e,m)}).map(function(t,w){w=new nG(w,n,m);
return t(w)});
var r=k.map(function(t){return t.KS});
return{JS:AOa(c,a,l,r,f,uOa(b),d,m),QY:k.map(function(t){return t.PY})}};
zOa=function(a,b,c,d,e,f,k,l){var m=tOa(b.instreamVideoAdRenderer),n=c.aP,p=c.bP,r=Math.min(n+1E3*m.videoLengthSeconds,l);c.aP=r;c.bP++;c.MY.push(m.videoLengthSeconds);var t,w,x=null==(t=b.instreamVideoAdRenderer)?void 0:null==(w=t.playerOverlay)?void 0:w.instreamSurveyAdRenderer;if("nPpU29QrbiU"===m.adVideoId&&null==x)throw new TypeError("Survey slate media has no survey overlay");return function(y){var z=m.playerVars;2<=y.j&&(z.slot_pos=y.i);z.autoplay="1";var F,I;z=m.videoLengthSeconds;var H=m.playerVars,
O=m.uc,ma=m.ZJ,N=m.instreamAdPlayerOverlayRenderer,da=m.adVideoId,qa=null==(F=b.instreamVideoAdRenderer)?void 0:F.adLayoutLoggingData;F=null==(I=b.instreamVideoAdRenderer)?void 0:I.sodarExtensionData;I=By(d.j.get(),"LAYOUT_TYPE_MEDIA",a);var Wa={layoutId:I,layoutType:"LAYOUT_TYPE_MEDIA",gb:"adapter"};y={layoutId:I,layoutType:"LAYOUT_TYPE_MEDIA",uc:O,xd:[],Qc:[],Oc:[],Rc:[],Wc:[],gb:"adapter",Ea:new yY([new BH(k),new TH(z),new UH(H),new WH(n),new XH(r),new YH(p),new PH({current:null}),N&&new CH(N),
new xH(f),new zH(da),new yH(y),F&&new VH(F),x&&new mI(x),new ZH({}),new nI(ma)].filter(vOa)),Bc:e(Wa),adLayoutLoggingData:qa};z=qOa(b.instreamVideoAdRenderer,f,k,y.layoutId,d);return{KS:y,PY:z}}};
tOa=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=ut(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,uc:a.pings?pG(a.pings):new Map,ZJ:oG(a.pings)}};
uOa=function(a){a=Number(a.driftRecoveryMs);return isNaN(a)||0>=a?null:a};
sOa=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{bL:b,eL:a}};
COa=function(a,b,c,d,e,f,k){var l=c.pings;return l?[BOa(a,f,e,function(m){var n=m.slotId;m=k(m);var p=c.adLayoutLoggingData;n=By(b.j.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",n);var r={layoutId:n,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",gb:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",uc:pG(l),xd:[new CZ(b.i,f)],Qc:[],Oc:[],Rc:[],Wc:[],gb:"core",Ea:new yY([new xH(d)]),Bc:m(r),adLayoutLoggingData:p}})]:new fZ("VideoAdTrackingRenderer without VideoAdTracking pings filled.",
{videoAdTrackingRenderer:c})};
EOa=function(a,b,c,d,e,f,k,l,m){a=DOa(a,c,f,k,d,function(n){var p=n.slotId;n=l(n);p=By(b.j.get(),"LAYOUT_TYPE_FORECASTING",p);var r={layoutId:p,layoutType:"LAYOUT_TYPE_FORECASTING",gb:"core"},t=new Map,w=e.impressionUrls;w&&t.set("impression",w);return{layoutId:p,layoutType:"LAYOUT_TYPE_FORECASTING",uc:t,xd:[new DZ(b.i,p)],Qc:[],Oc:[],Rc:[],Wc:[],gb:"core",Ea:new yY([new aI(e),new xH(c)]),Bc:n(r)}});
EZ(m)&&(null==d||null==d.serializedSlotAdServingDataEntry||0===d.serializedSlotAdServingDataEntry.length)&&T("Forecasting slot contains unexpected empty SASDE in EnableSasdeForHtml");return a instanceof fZ?a:[a]};
GOa=function(a,b,c,d,e,f,k,l){a=FOa(a,c,f,k,d,function(m,n){var p=m.slotId;m=l(m);var r=e.contentSupportedRenderer;r?r.textOverlayAdContentRenderer?(r=By(b.j.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",p),n=FZ(b,r,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",e,c,m,GZ(b,n,p))):r.enhancedTextOverlayAdContentRenderer?(r=By(b.j.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",p),n=FZ(b,r,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",e,c,m,GZ(b,n,p))):r.imageOverlayAdContentRenderer?(r=By(b.j.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",
p),n=GZ(b,n,p),n.push(new HZ(b.i,r)),n=FZ(b,r,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",e,c,m,n)):n=new WY("InvideoOverlayAdRenderer without appropriate sub renderer"):n=new WY("InvideoOverlayAdRenderer without contentSupportedRenderer");return n});
return a instanceof fZ?a:[a]};
JOa=function(a,b,c,d,e,f,k){var l=Number(d.durationMilliseconds);return isNaN(l)?new fZ("Expected valid duration for AdActionInterstitialRenderer."):function(m){return HOa(b,m.slotId,c,l,{impressionCommands:void 0,abandonCommands:d.abandonCommands?[{commandExecutorCommand:d.abandonCommands}]:void 0,completeCommands:d.completionCommands},d.skipPings?new Map([["skip",d.skipPings]]):new Map,k(m),function(n){return IOa(a,n,e,function(p,r){var t=p.slotId;p=k(p);t=By(b.j.get(),"LAYOUT_TYPE_ENDCAP",t);return xZ(b,
t,r,c,p,"LAYOUT_TYPE_ENDCAP",[new FH(d)],d.adLayoutLoggingData)})},d.adLayoutLoggingData,f)}};
KOa=function(a,b,c,d){if(!c.playerVars)return new fZ("No playerVars available in AdIntroRenderer.");var e=ut(c.playerVars);e.autoplay="1";return function(f){var k=f.slotId;f=d(f);k=By(a.j.get(),"LAYOUT_TYPE_MEDIA",k);var l={layoutId:k,layoutType:"LAYOUT_TYPE_MEDIA",gb:"adapter"};return{Vq:{layoutId:k,layoutType:"LAYOUT_TYPE_MEDIA",uc:new Map,xd:[],Qc:[],Oc:[],Rc:[],Wc:[],gb:"adapter",Ea:new yY([new $H({}),new xH(b),new PH({current:null}),new UH(e)]),Bc:f(l)},ys:[new IZ(a.i,k,"error")],Mp:[],iz:[],
gz:[]}}};
MOa=function(a,b,c,d,e,f,k,l){var m=vZ(e);if(!xva(e))return new fZ("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:e});if(0>=m)return new fZ("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:e});var n=kOa(a,b,e,f,c,d,k);return n instanceof fZ?n:function(p){return LOa(b,p.slotId,c,m,wZ(e),k(p),n,l)}};
NOa=function(a,b,c,d,e,f,k){function l(p){return IOa(a,p,d,m)}
function m(p,r){var t=p.slotId;p=k(p);t=By(b.j.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",t);return xZ(b,t,r,c,p,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new GH(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 fZ("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:e});var n=1E3*e.timeoutSeconds;return function(p){var r={impressionCommands:e.impressionCommands,completeCommands:e.timeoutCommands,skipCommands:e.dismissCommands},t=
k(p);p=JZ(b,p.slotId,c,n,r,new Map,t,l);r=new LH(p.DG);return{Vq:{layoutId:p.layoutId,layoutType:p.layoutType,uc:p.uc,xd:[],Qc:[],Oc:[],Rc:[],Wc:[],gb:p.gb,Ea:new yY([].concat(g.u(p.Bv),[r])),Bc:p.Bc,adLayoutLoggingData:p.adLayoutLoggingData},ys:[],Mp:p.Oc,iz:p.Rc,gz:p.Wc,qh:p.qh}}};
QOa=function(a,b,c,d,e,f,k,l,m,n,p){c=OOa(c,d,f,k,l,m,n,p);if(c instanceof fZ)return c;a=POa(b,a,k,e,c);return a instanceof fZ?a:[].concat(g.u(a.Rh),[a.Gt])};
SOa=function(a,b,c,d,e,f,k,l,m,n,p){b=OOa(b,c,e,f,l,m,n,p);if(b instanceof fZ)return b;a=ROa(a,c,f,k,d,l.Af,b);return a instanceof fZ?a:a.Rh.concat(a.Gt)};
OOa=function(a,b,c,d,e,f,k,l){var m=KZ(c);return m instanceof WY?new fZ(m):function(n){var p=new nG(0,[m.My]),r=TOa(m.playerVars,m.vO,e,l,p);n=f(n);var t=k.get(m.YB.externalVideoId);p=UOa(a,"core",m.YB,b,r,m.My,d,p,n,t);return{layout:{layoutId:p.layoutId,layoutType:p.layoutType,uc:p.uc,xd:p.xd,Qc:p.Qc,Oc:p.Oc,Rc:p.Rc,Wc:p.Wc,gb:p.gb,Ea:p.Ea,Bc:p.Bc,adLayoutLoggingData:p.adLayoutLoggingData},Rh:[]}}};
KZ=function(a){if(!a.playerVars)return new WY("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 WY("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:a});b=ut(a.playerVars);var c=Number(b.length_seconds);isNaN(c)&&(c=0,T("Expected valid length seconds in player vars but got NaN"));
return{YB:a,playerVars:b,vO:a.playerVars,My:c}};
TOa=function(a,b,c,d,e){a.iv_load_policy=d;b=ut(b);if(b.cta_conversion_urls)try{a.cta_conversion_urls=JSON.parse(b.cta_conversion_urls)}catch(f){T(f)}c.hg&&(a.ctrl=c.hg);c.Eg&&(a.ytr=c.Eg);c.Vl&&(a.ytrcc=c.Vl);c.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,c.Yh&&(a.vss_credentials_token_type=c.Yh),c.mdxEnvironment&&(a.mdx_environment=c.mdxEnvironment));2<=e.j&&(a.slot_pos=e.i);a.autoplay="1";return a};
WOa=function(a,b,c,d,e,f,k,l,m,n,p){a=POa(b,a,k,e,VOa(b,c,d,f,k,l,m,n,p));return a instanceof fZ?a:[].concat(g.u(a.Rh),[a.Gt])};
YOa=function(a,b,c,d,e,f,k,l,m,n,p){b=VOa(a,b,c,e,f,l,m,n,p);a:{e=g.q(e);for(m=e.next();!m.done;m=e.next())if(m.value.instreamSurveyAdRenderer){e=!0;break a}e=!1}e?(c=XOa(a,c,f,k),c instanceof fZ?d=c:(f=Ay(a.j.get(),"SLOT_TYPE_IN_PLAYER"),k=By(a.j.get(),"LAYOUT_TYPE_SURVEY",f),a=[].concat(g.u(c.vc),[new LZ(a.i,k)]),f=b({slotId:c.slotId,ob:c.ob,slotPhysicalPosition:c.slotPhysicalPosition,gb:c.gb,Lb:c.Lb,kc:c.kc,vc:a},{slotId:f,layoutId:k}),d=f instanceof fZ?f:{Gt:{slotId:c.slotId,ob:c.ob,slotPhysicalPosition:c.slotPhysicalPosition,
Lb:c.Lb,kc:c.kc,vc:a,gb:c.gb,Ea:new yY([new cI(f.layout)]),adSlotLoggingData:d},Rh:f.Rh})):d=ROa(a,c,f,k,d,l.Af,b);return d instanceof fZ?d:d.Rh.concat(d.Gt)};
VOa=function(a,b,c,d,e,f,k,l,m){return function(n,p){a:{b:{var r=[];for(var t=g.q(d),w=t.next();!w.done;w=t.next())if(w=w.value,w.instreamVideoAdRenderer){w=KZ(w.instreamVideoAdRenderer);if(w instanceof WY){r=new fZ(w);break b}r.push(w.My)}}if(r instanceof fZ)p=r;else{t=0;w=[];for(var x=[],y=[],z=[],F=[],I=[],H=new QH({current:null}),O=[],ma=g.q(d),N=ma.next();!N.done;N=ma.next())if(N=N.value,N.adIntroRenderer){N=KOa(b,c,N.adIntroRenderer,k);if(N instanceof fZ){p=N;break a}N=N(n);w.push(N.Vq);x=[].concat(g.u(N.ys),
g.u(x));y=[].concat(g.u(N.Mp),g.u(y));N.qh&&(O=[N.qh].concat(g.u(O)))}else if(N.instreamVideoAdRenderer){var da=KZ(N.instreamVideoAdRenderer);if(da instanceof WY){p=new fZ(da);break a}var qa=new nG(t,r);N=b;var Wa=da.YB,cc=TOa(da.playerVars,da.vO,f,m,qa),dc=k(n),cb=l.get(da.YB.externalVideoId);da=UOa(N,"adapter",Wa,c,cc,da.My,e,qa,dc,cb);qa=da.Qc;Wa.isCritical&&(qa=[new IZ(N.i,da.layoutId,"error")].concat(g.u(qa)));N={layoutId:da.layoutId,layoutType:da.layoutType,uc:da.uc,xd:[],Qc:[],Oc:[],Rc:[],
Wc:[],gb:da.gb,Ea:da.Ea,Bc:da.Bc,adLayoutLoggingData:da.adLayoutLoggingData};Wa=qa;da=da.Oc;t++;w.push(N);x=[].concat(g.u(Wa),g.u(x));y=[].concat(g.u(da),g.u(y))}else if(N.adActionInterstitialRenderer){N=JOa(a,b,c,N.adActionInterstitialRenderer,e,t,k);if(N instanceof fZ){p=N;break a}N=N(n);w.push(N.Vq);x=[].concat(g.u(N.ys),g.u(x));y=[].concat(g.u(N.Mp),g.u(y));N.qh&&(O=[N.qh].concat(g.u(O)))}else if(N.instreamSurveyAdRenderer){if(void 0===p){p=new fZ("Composite Survey must already have a Survey Bundle with required metadata.",
{instreamSurveyAdRenderer:N.instreamSurveyAdRenderer});break a}N=MOa(a,b,c,e,N.instreamSurveyAdRenderer,H,k,p);if(N instanceof fZ){p=N;break a}N=N(n);w.push(N.Vq);N.qh&&O.push(N.qh);x=[].concat(g.u(N.ys),g.u(x));y=[].concat(g.u(N.Mp),g.u(y));z=[].concat(g.u(N.iz),g.u(z));F=[].concat(g.u(N.gz),g.u(F));I=[H].concat(g.u(I))}else if(N.surveyTextInterstitialRenderer){N=NOa(a,b,c,e,N.surveyTextInterstitialRenderer,H,k);if(N instanceof fZ){p=N;break a}N=N(n);w.push(N.Vq);N.qh&&O.push(N.qh);y=[].concat(g.u(N.Mp),
g.u(y))}else{p=new fZ("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}p={OY:w,Qc:x,Rc:z,Wc:F,Oc:y,Bv:I,Rh:O}}}p instanceof fZ?n=p:(z=n.slotId,r=p.OY,t=p.Qc,w=p.Oc,x=p.Rc,y=p.Bv,n=k(n),z=By(b.j.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",z),F={layoutId:z,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",gb:"core"},n={layout:{layoutId:z,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",uc:new Map,xd:[new DZ(b.i,z)],Qc:t,Oc:w,Rc:x,Wc:[],gb:"core",Ea:new yY([new RH(r)].concat(g.u(y))),Bc:n(F)},
Rh:p.Rh});return n}};
$Oa=function(a,b,c,d,e,f,k){if(!xva(c))return new fZ("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:c});var l=vZ(c);if(0>=l)return new fZ("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:c});var m=new QH({current:null}),n=kOa(a,b,c,m,d,f,k);return ZOa(a,d,f,l,e,function(p,r){var t=p.slotId,w=wZ(c);p=k(p);t=By(b.j.get(),"LAYOUT_TYPE_MEDIA_BREAK",t);var x={layoutId:t,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",gb:"core"},y=n(t,r);
X(y.Ea,"metadata_type_fulfilled_layout")||T("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");w=[new xH(d),new hI(l),new jI(w),new kI(!0),m,new MH("LAYOUT_TYPE_SURVEY")];return{vU:{layoutId:t,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",uc:new Map,xd:[new DZ(b.i,t)],Qc:[new zZ(b.i,r.layoutId)],Oc:[],Rc:[new AZ(b.i,r.layoutId)],Wc:[],gb:"core",Ea:new yY(w),Bc:p(x)},VT:y}})};
aPa=function(a){if(!ZNa(a))return!1;var b=a.adVideoStart.adMessageRenderer;return b?a.linearAd.instreamVideoAdRenderer&&gH(b)?!0:(T("Invalid Sandwich with notify"),!1):!1};
bPa=function(a){if(null==a.linearAds)return!1;var b;a=null==(b=a.adStart)?void 0:b.adMessageRenderer;return a?gH(a)?!0:(T("Invalid LASR with notify"),!1):!1};
MZ=function(a,b,c,d,e,f,k){this.j=a;this.i=b;this.Ka=c;this.u=d;this.C=e;this.B=f;this.loadPolicy=void 0===k?1:k};
koa=function(a,b,c,d,e,f,k){var l=[];if(NZ(a.Ka.get(),"html5_eanble_pacf_player_bytes_with_externaly_managed_ad_notify")){if(0===b.length&&0===c.length)return l}else if(0===b.length)return l;b=b.filter(sZ);for(var m=c.filter(sZ),n=new Map,p=new Map,r=g.q(b),t=r.next();!t.done;t=r.next())(t=t.value.renderer.remoteSlotsRenderer)&&t.hostElementId&&p.set(t.hostElementId,t);r=g.q(b);for(t=r.next();!t.done;t=r.next()){t=t.value;var w=cPa(a,n,t,d,e,f,k,p);w instanceof fZ?T(w,void 0,void 0,{renderer:t.renderer,
config:t.config.adPlacementConfig,kind:t.config.adPlacementConfig.kind,contentCpn:d,daiEnabled:f}):l.push.apply(l,g.u(w))}NZ(a.Ka.get(),"html5_eanble_pacf_player_bytes_with_externaly_managed_ad_notify")&&(e=dPa(a,m,d,k,p,n),l.push.apply(l,g.u(e)));if(null===a.C||f&&!k.SK){var x,y,z;a=k.Af&&1===b.length&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===(null==(x=b[0].config)?void 0:null==(y=x.adPlacementConfig)?void 0:y.kind)&&(null==(z=b[0].renderer)?void 0:z.adBreakServiceRenderer);if(!l.length&&!a){var F,
I,H,O;T("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:d,daiEnabled:f,"first APR kind":null==(F=b[0])?void 0:null==(I=F.config)?void 0:null==(H=I.adPlacementConfig)?void 0:H.kind,renderer:null==(O=b[0])?void 0:O.renderer})}return l}x=c.filter(sZ);l.push.apply(l,g.u(gOa(n,x,a.j.get(),a.C,d,a.Ka.get())));if(!l.length){var ma,N,da,qa;T("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,
contentCpn:d,daiEnabled:f,"first APR kind":null==(ma=b[0])?void 0:null==(N=ma.config)?void 0:null==(da=N.adPlacementConfig)?void 0:da.kind,renderer:null==(qa=b[0])?void 0:qa.renderer})}return l};
dPa=function(a,b,c,d,e,f){function k(t){return EY(a.u.get(),t)}
var l=[];b=g.q(b);for(var m=b.next();!m.done;m=b.next()){m=m.value;var n=m.renderer,p=n.sandwichedLinearAdRenderer,r=n.linearAdSequenceRenderer;p&&aPa(p)?(r=p.adVideoStart.adMessageRenderer,p=p.linearAd.instreamVideoAdRenderer,tZ(f,n,m.config.adPlacementConfig.kind),m=QOa(r.layout.layoutId,a.j.get(),a.i.get(),m.config.adPlacementConfig,m.adSlotLoggingData,p,c,d,k,e,a.loadPolicy,a.Ka.get()),m instanceof fZ?T(m):l.push.apply(l,g.u(m))):r&&bPa(r)&&(tZ(f,n,m.config.adPlacementConfig.kind),m=WOa(r.adStart.adMessageRenderer.layout.layoutId,
a.j.get(),a.i.get(),m.config.adPlacementConfig,m.adSlotLoggingData,r.linearAds,c,d,k,e,a.loadPolicy,a.Ka.get()),m instanceof fZ?T(m):l.push.apply(l,g.u(m)))}return l};
cPa=function(a,b,c,d,e,f,k,l){function m(x){return EY(a.u.get(),x)}
var n=c.renderer,p=c.config.adPlacementConfig,r=p.kind,t=c.adSlotLoggingData;EZ(a.Ka.get())&&(null==t||null==t.serializedSlotAdServingDataEntry||0===t.serializedSlotAdServingDataEntry.length)&&T("Unexpected empty SASDE in EnableSasdeForHtml - no SASDE found in adPlacementRenderer");var w=k.SK&&"AD_PLACEMENT_KIND_START"===r;w=f&&!w;if(null!=n.adsEngagementPanelRenderer)return uZ(b,c.elementId,r,n.adsEngagementPanelRenderer.adVideoId,p,t,function(x,y,z){var F=a.i.get(),I=n.adsEngagementPanelRenderer,
H=EY(a.u.get(),x);return OZ(F,x.slotId,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON",new pH(I),y,z,I.impressionPings,H,n.adsEngagementPanelRenderer.adLayoutLoggingData)}),[];
if(null!=n.actionCompanionAdRenderer)uZ(b,c.elementId,r,n.actionCompanionAdRenderer.adVideoId,p,t,function(x,y,z){var F=a.i.get(),I=n.actionCompanionAdRenderer,H=EY(a.u.get(),x);return OZ(F,x.slotId,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new oH(I),y,z,I.impressionPings,H,n.actionCompanionAdRenderer.adLayoutLoggingData)});
else if(n.imageCompanionAdRenderer)uZ(b,c.elementId,r,n.imageCompanionAdRenderer.adVideoId,p,t,function(x,y,z){var F=a.i.get(),I=n.imageCompanionAdRenderer,H=EY(a.u.get(),x);return OZ(F,x.slotId,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new tH(I),y,z,I.impressionPings,H,n.imageCompanionAdRenderer.adLayoutLoggingData)});
else if(n.shoppingCompanionCarouselRenderer)uZ(b,c.elementId,r,n.shoppingCompanionCarouselRenderer.adVideoId,p,t,function(x,y,z){var F=a.i.get(),I=n.shoppingCompanionCarouselRenderer,H=EY(a.u.get(),x);return OZ(F,x.slotId,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new uH(I),y,z,I.impressionPings,H,n.shoppingCompanionCarouselRenderer.adLayoutLoggingData)});
else if(n.adBreakServiceRenderer){if(!cOa(c))return[];if("AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"!==r)return bOa(a.j.get(),p,t,c.renderer.adBreakServiceRenderer,d,e,f);if(!f&&!PZ(a.Ka.get()))return new fZ("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED AdBreakServiceRenderer but cue point event is unsupported");if(!a.B)return new fZ("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");k.Af||T("Received non-live cue point triggered AdBreakServiceRenderer",
void 0,void 0,{kind:r,adPlacementConfig:p,daiEnabledForContentVideo:String(f),isServedFromLiveInfra:String(k.Af),clientPlaybackNonce:k.clientPlaybackNonce});ePa(a.B,{adPlacementRenderer:c,contentCpn:d,IK:e})}else{if(n.clientForecastingAdRenderer)return EOa(a.j.get(),a.i.get(),p,t,n.clientForecastingAdRenderer,d,e,m,a.Ka.get());if(n.invideoOverlayAdRenderer)return GOa(a.j.get(),a.i.get(),p,t,n.invideoOverlayAdRenderer,d,e,m);if((n.linearAdSequenceRenderer||n.instreamVideoAdRenderer)&&w)return yOa(a.j.get(),
a.i.get(),c,d,m);if(n.linearAdSequenceRenderer&&!w)return tZ(b,n,r),null!=n.linearAdSequenceRenderer.linearAds?YOa(a.j.get(),a.i.get(),p,t,n.linearAdSequenceRenderer.linearAds,d,e,k,m,l,a.loadPolicy,a.Ka.get()):new fZ("Received invalid LinearAdSequenceRenderer.");if(!n.remoteSlotsRenderer||f){if(n.instreamVideoAdRenderer&&!w)return tZ(b,n,r),SOa(a.j.get(),a.i.get(),p,t,n.instreamVideoAdRenderer,d,e,k,m,l,a.loadPolicy,a.Ka.get());if(n.instreamSurveyAdRenderer)return $Oa(a.j.get(),a.i.get(),n.instreamSurveyAdRenderer,
p,t,d,m);if(null!=n.sandwichedLinearAdRenderer)return ZNa(n.sandwichedLinearAdRenderer)?YOa(a.j.get(),a.i.get(),p,t,[n.sandwichedLinearAdRenderer.adVideoStart,n.sandwichedLinearAdRenderer.linearAd],d,e,k,m,l,a.loadPolicy,a.Ka.get()):new fZ("Received invalid SandwichedLinearAdRenderer.");if(null!=n.videoAdTrackingRenderer)return COa(a.j.get(),a.i.get(),n.videoAdTrackingRenderer,p,t,d,m)}}return[]};
QZ=function(a){g.G.call(this);this.i=a};
sy=function(a,b,c,d){a.i().Ph(b,d);c=c();a=a.i();RZ(a.Ub,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",b,d,c);b=g.q(c);for(c=b.next();!c.done;c=b.next())a:{d=a;c=c.value;AI(d.Ub,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",c);AI(d.Ub,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",c);try{var e=d.i;if(g.lb(c.slotId))throw new fZ("Slot ID was empty");if(UY(e,c))throw new fZ("Duplicate registration for slot.",{slotId:c.slotId,slotEntryTriggerType:c.Lb.triggerType});if(!e.Ud.gm.has(c.ob))throw new fZ("No fulfillment adapter factory registered for slot of type: "+
c.ob);if(!e.Ud.Sm.has(c.ob))throw new fZ("No SlotAdapterFactory registered for slot of type: "+c.ob);nZ(e,"TRIGGER_CATEGORY_SLOT_ENTRY",c.Lb?[c.Lb]:[]);nZ(e,"TRIGGER_CATEGORY_SLOT_FULFILLMENT",c.kc);nZ(e,"TRIGGER_CATEGORY_SLOT_EXPIRATION",c.vc);var f=d.i,k=c.ob+"_"+c.slotPhysicalPosition,l=hZ(f,k);if(UY(f,c))throw new fZ("Duplicate slots not supported");l.set(c.slotId,new UNa(c));f.i.set(k,l)}catch(qa){T(qa,c,void 0,void 0,qa.Bp);break a}UY(d.i,c).I=!0;try{var m=d.i,n=UY(m,c),p=c.Lb,r=m.Ud.Wh.get(p.triggerType);
r&&(r.Wi("TRIGGER_CATEGORY_SLOT_ENTRY",p,c,null),n.va.set(p.triggerId,r));for(var t=g.q(c.kc),w=t.next();!w.done;w=t.next()){var x=w.value,y=m.Ud.Wh.get(x.triggerType);y&&(y.Wi("TRIGGER_CATEGORY_SLOT_FULFILLMENT",x,c,null),n.Y.set(x.triggerId,y))}for(var z=g.q(c.vc),F=z.next();!F.done;F=z.next()){var I=F.value,H=m.Ud.Wh.get(I.triggerType);H&&(H.Wi("TRIGGER_CATEGORY_SLOT_EXPIRATION",I,c,null),n.W.set(I.triggerId,H))}var O=m.Ud.gm.get(c.ob).get().Wd(m.u,c);n.J=O;var ma=m.Ud.Sm.get(c.ob).get().Wd(m.C,
c);ma.init();n.j=ma}catch(qa){T(qa,c,void 0,void 0,qa.Bp);RY(d,c,!0);break a}AI(d.Ub,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);d.i.ph(c);for(var N=g.q(d.Od),da=N.next();!da.done;da=N.next())da.value.ph(c);ZY(d,c,!1)}};
SZ=function(a,b,c,d){this.fp=b;this.i=c;this.visible=d;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)};
TZ=function(a,b,c,d){g.G.call(this);var e=this;this.u=a;this.B=b;this.j=c;this.i=new Map;d.get().addListener(this);g.Ue(this,function(){d.get().removeListener(e)})};
hoa=function(a,b){var c=0x8000000000000;for(var d=0,e=g.q(b.kc),f=e.next();!f.done;f=e.next())f=f.value,f instanceof SZ?(c=Math.min(c,f.i.start),d=Math.max(d,f.i.end)):T("Found unexpected fulfillment trigger for throttled slot.",b,null,{fulfillmentTrigger:f});c=new Gr(c,d);d="throttledadcuerange:"+b.slotId;a.i.set(d,b);a.j.get().addCueRange(d,c.start,c.end,!1,a)};
UZ=function(){g.G.apply(this,arguments);this.Di=!0;this.Uh=new Map;this.i=new Map};
fPa=function(a,b){a=g.q(a.Uh.values());for(var c=a.next();!c.done;c=a.next())if(c.value.layoutId===b)return!0;return!1};
gPa=function(a,b){a=g.q(a.i.values());for(var c=a.next();!c.done;c=a.next()){c=g.q(c.value);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.layoutId===b)return d}T("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.lb(b)),layoutId:b})};
LZ=function(a,b){this.i=b;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=a(this.triggerType)};
IZ=function(a,b,c){this.Oe=b;this.i=c;this.triggerType="TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON";this.triggerId=a(this.triggerType)};
yZ=function(a,b){this.Oe=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=a(this.triggerType)};
BZ=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=a(this.triggerType)};
VZ=function(a,b){this.i=b;this.ob="SLOT_TYPE_PLAYER_BYTES";this.layoutType="LAYOUT_TYPE_MEDIA";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED";this.triggerId=a(this.triggerType)};
WZ=function(a,b){this.i=b;this.ob="SLOT_TYPE_IN_PLAYER";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED";this.triggerId=a(this.triggerType)};
DZ=function(a,b){this.layoutId=b;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=a(this.triggerType)};
CZ=function(a,b){this.i=b;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=a(this.triggerType)};
hPa=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)};
pOa=function(a){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=a(this.triggerType)};
zZ=function(a,b){this.Oe=b;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=a(this.triggerType)};
AZ=function(a,b){this.Oe=b;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=a(this.triggerType)};
HZ=function(a,b){this.durationMs=45E3;this.Oe=b;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=a(this.triggerType)};
iPa=function(a){return[new KH(a.ju),new CH(a.instreamAdPlayerOverlayRenderer),new OH(a.dO),new xH(a.adPlacementConfig),new TH(a.videoLengthSeconds),new gI(a.NF)]};
jPa=function(a,b,c,d,e,f){a=c.kF?c.kF:By(f,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",a);var k={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",gb:b};return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",uc:new Map,xd:[new yZ(function(l){return Cy(f,l)},c.ju)],
Qc:[],Oc:[],Rc:[],Wc:[],gb:b,Ea:d,Bc:e(k),adLayoutLoggingData:c.instreamAdPlayerOverlayRenderer.adLayoutLoggingData}};
XZ=function(a){var b=this;this.j=a;this.i=function(c){return Cy(b.j.get(),c)}};
kPa=function(a,b,c,d,e,f){c=new yY([new DH(c),new xH(d)]);b=By(a.j.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",b);d={layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",gb:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",uc:new Map,xd:[new yZ(function(k){return Cy(a.j.get(),k)},e)],
Qc:[],Oc:[],Rc:[],Wc:[],gb:"core",Ea:c,Bc:f(d),adLayoutLoggingData:void 0}};
YZ=function(a,b,c,d,e){return jPa(b,c,d,new yY(iPa(d)),e,a.j.get())};
lPa=function(a,b,c,d,e){var f=iPa(d);f.push(new vH(d.eS));f.push(new wH(d.gS));return jPa(b,c,d,new yY(f),e,a.j.get())};
OZ=function(a,b,c,d,e,f,k,l,m){b=By(a.j.get(),c,b);var n={layoutId:b,layoutType:c,gb:"core"},p=new Map;k&&p.set("impression",k);return{layoutId:b,layoutType:c,uc:p,xd:[new DZ(a.i,b),new VZ(a.i,e)],Qc:[],Oc:[],Rc:[],Wc:[],gb:"core",Ea:new yY([d,new xH(f),new KH(e)]),Bc:l(n),adLayoutLoggingData:m}};
GZ=function(a,b,c){var d=[];d.push(new WZ(a.i,c));b&&d.push(b);return d};
FZ=function(a,b,c,d,e,f,k){var l={layoutId:b,layoutType:c,gb:"core"};return{layoutId:b,layoutType:c,uc:new Map,xd:k,Qc:[new LZ(a.i,b)],Oc:[],Rc:[],Wc:[],gb:"core",Ea:new yY([new sH(d),new xH(e)]),Bc:f(l),adLayoutLoggingData:d.adLayoutLoggingData}};
xZ=function(a,b,c,d,e,f,k,l){var m={layoutId:b,layoutType:f,gb:"core"};return{layoutId:b,layoutType:f,uc:new Map,xd:[new yZ(a.i,c)],Qc:[],Oc:[],Rc:[],Wc:[],gb:"core",Ea:new yY([new xH(d)].concat(g.u(k))),Bc:e(m),adLayoutLoggingData:l}};
HOa=function(a,b,c,d,e,f,k,l,m,n){a=JZ(a,b,c,d,e,f,k,l,m,n);return{Vq:{layoutId:a.layoutId,layoutType:a.layoutType,uc:a.uc,xd:[],Qc:[],Oc:[],Rc:[],Wc:[],gb:a.gb,Ea:new yY(a.Bv),Bc:a.Bc,adLayoutLoggingData:a.adLayoutLoggingData},ys:a.Qc,Mp:a.Oc,iz:a.Rc,gz:a.Wc,qh:a.qh}};
LOa=function(a,b,c,d,e,f,k,l){b=JZ(a,b,c,d,e,new Map,f,function(m){return k(m,l)},void 0);
a=new AZ(a.i,b.DG);c=new LH(b.DG);d=new MH("LAYOUT_TYPE_SURVEY");return{Vq:{layoutId:b.layoutId,layoutType:b.layoutType,uc:b.uc,xd:[],Qc:[],Oc:[],Rc:[],Wc:[],gb:b.gb,Ea:new yY([].concat(g.u(b.Bv),[c,d])),Bc:b.Bc,adLayoutLoggingData:b.adLayoutLoggingData},ys:b.Qc,Mp:b.Oc,iz:[].concat(g.u(b.Rc),[a]),gz:b.Wc,qh:b.qh}};
JZ=function(a,b,c,d,e,f,k,l,m,n){b=By(a.j.get(),"LAYOUT_TYPE_MEDIA_BREAK",b);var p={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",gb:"adapter"};l=l(b);var r=X(l.Ea,"metadata_type_fulfilled_layout");r||T("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");r=r?r.layoutId:"";c=[new xH(c),new hI(d),new jI(e)];n&&c.push(new YH(n));return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",uc:f,xd:[],Qc:[new zZ(a.i,r)],Oc:[],Rc:[],Wc:[],gb:"adapter",
Bv:c,Bc:k(p),adLayoutLoggingData:m,qh:l,DG:r}};
UOa=function(a,b,c,d,e,f,k,l,m,n){var p=c.elementId,r={layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA",gb:b};d=[new xH(d),new yH(l),new zH(c.externalVideoId),new BH(k),new CH(c.playerOverlay.instreamAdPlayerOverlayRenderer),new jI({impressionCommands:c.impressionCommands,abandonCommands:c.onAbandonCommands,completeCommands:c.completeCommands}),new UH(e),new PH({current:null}),new TH(f)];(e=c.playerUnderlay)&&d.push(new DH(e));e=Ay(a.j.get(),"SLOT_TYPE_IN_PLAYER");f=(f=c.playerOverlay.instreamAdPlayerOverlayRenderer.elementId)?
f:By(a.j.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",e);d.push(new LH(f));d.push(new NH(e));d.push(new YH(l.i));c.adNextParams&&d.push(new qH(c.adNextParams));c.shrunkenPlayerBytesConfig&&d.push(new EH(c.shrunkenPlayerBytesConfig));c.clickthroughEndpoint&&d.push(new rH(c.clickthroughEndpoint));c.legacyInfoCardVastExtension&&d.push(new iI(c.legacyInfoCardVastExtension));c.sodarExtensionData&&d.push(new VH(c.sodarExtensionData));n&&d.push(new fI(n));d.push(new nI(oG(c.pings)));return{layoutId:p,
layoutType:"LAYOUT_TYPE_MEDIA",uc:pG(c.pings),xd:[new DZ(a.i,p)],Qc:c.skipOffsetMilliseconds?[new zZ(a.i,f)]:[],Oc:[new zZ(a.i,f)],Rc:[],Wc:[],gb:b,Ea:new yY(d),Bc:m(r),adLayoutLoggingData:c.adLayoutLoggingData}};
AOa=function(a,b,c,d,e,f,k,l){d.every(function(n){return fH(n,[],["LAYOUT_TYPE_MEDIA"])})||T("Unexpect subLayout type for DAI composite layout");
b=By(a.j.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",b);var m={layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",gb:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",uc:new Map,xd:[new BZ(a.i)],Qc:[],Oc:[],Rc:[],Wc:[],gb:"core",Ea:new yY([new WH(c),new XH(l),new RH(d),new xH(e),new bI(f),new ZH({})]),Bc:k(m)}};
vOa=function(a){return null!=a};
ZZ=function(a,b,c){this.fp=b;this.visible=c;this.triggerType="TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED";this.triggerId=a(this.triggerType)};
$Z=function(a,b,c){this.Oe=b;this.slotId=c;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ACTIVE_AND_SLOT_ID_HAS_EXITED";this.triggerId=a(this.triggerType)};
a_=function(a,b){this.Oe=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ENTERED";this.triggerId=a(this.triggerType)};
mPa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=a(this.triggerType)};
b_=function(a,b,c){this.fp=b;this.i=c;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)};
c_=function(a,b){this.slotId=b;this.triggerType="TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED";this.triggerId=a(this.triggerType)};
d_=function(a,b){this.Lg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_ENTERED";this.triggerId=a(this.triggerType)};
e_=function(a,b){this.Lg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=a(this.triggerType)};
f_=function(a,b){this.Lg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=a(this.triggerType)};
g_=function(a,b){this.Lg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=a(this.triggerType)};
h_=function(a,b){this.Lg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=a(this.triggerType)};
$Na=function(a,b,c,d){var e=a.kind;d=d?!1:!a.hideCueRangeMarker;switch(e){case "AD_PLACEMENT_KIND_START":return d={ol:new Gr(-0x8000000000000,-0x8000000000000),kB:d},null!=c&&(d.Hs=new Gr(-0x8000000000000,-0x8000000000000)),d;case "AD_PLACEMENT_KIND_END":return d={ol:new Gr(0x7ffffffffffff,0x8000000000000),kB:d},null!=c&&(d.Hs=new Gr(Math.max(0,b-c),0x8000000000000)),d;case "AD_PLACEMENT_KIND_MILLISECONDS":e=a.adTimeOffset;e.offsetStartMilliseconds||T("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds.");
e.offsetEndMilliseconds||T("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");a=Number(e.offsetStartMilliseconds);e=Number(e.offsetEndMilliseconds);-1===e&&(e=b);if(Number.isNaN(a)||Number.isNaN(e)||a>e)return new fZ("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:a,offsetEndMs:e},e===b&&a-500<=e);d={ol:new Gr(a,e),kB:d};if(null!=c){a=Math.max(0,a-c);if(a===e)return d;d.Hs=new Gr(a,e)}return d;default:return new fZ("AdPlacementKind not supported in convertToRange.",
{kind:e,adPlacementConfig:a})}};
i_=function(a){var b=this;this.j=a;this.i=function(c){return Cy(b.j.get(),c)}};
aOa=function(a,b,c,d,e,f){f=void 0===f?[]:f;var k=Ay(a.j.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),l=[];d.Hs&&d.Hs.start!==d.ol.start&&l.push(new SZ(a.i,c,new Gr(d.Hs.start,d.ol.start),!1));l.push(new SZ(a.i,c,new Gr(d.ol.start,d.ol.end),d.kB));d={getAdBreakUrl:b.getAdBreakUrl,uO:d.ol.start,tO:d.ol.end};b=new g_(a.i,k);f=[new dI(d)].concat(g.u(f));return{slotId:k,ob:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,Lb:b,kc:l,vc:[new CZ(a.i,c),new e_(a.i,k),new f_(a.i,k)],gb:"core",Ea:new yY(f),adSlotLoggingData:e}};
oPa=function(a,b,c){var d=[];c=g.q(c);for(var e=c.next();!e.done;e=c.next())d.push(nPa(a,b,e.value));return d};
nPa=function(a,b,c){return null!=c.Lg&&c.Lg===a?c.clone(b):c};
jOa=function(a,b,c,d,e){return pPa(a,b,c,d,e)};
IOa=function(a,b,c,d){var e=Ay(a.j.get(),"SLOT_TYPE_IN_PLAYER");return pPa(a,e,b,c,d)};
pPa=function(a,b,c,d,e){var f=new a_(a.i,c),k=[new d_(a.i,b)];a=[new e_(a.i,b),new CZ(a.i,d)];return{slotId:b,ob:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Lb:f,kc:k,vc:a,gb:"core",Ea:new yY([new cI(e({slotId:b,ob:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",Lb:f,kc:k,vc:a},c))]),adSlotLoggingData:void 0}};
ZOa=function(a,b,c,d,e,f){var k=Ay(a.j.get(),"SLOT_TYPE_PLAYER_BYTES"),l=Ay(a.j.get(),"SLOT_TYPE_IN_PLAYER"),m=By(a.j.get(),"LAYOUT_TYPE_SURVEY",l);b=j_(a,b,c,d);d=[new d_(a.i,k)];a=[new e_(a.i,k),new CZ(a.i,c),new LZ(a.i,m)];if(b instanceof fZ)return b;f=f({slotId:k,ob:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,gb:"core",Lb:b,kc:d,vc:a},{slotId:l,layoutId:m});l=f.VT;return[{slotId:k,ob:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Lb:b,kc:d,vc:a,gb:"core",Ea:new yY([new cI(f.vU)]),adSlotLoggingData:e},
l]};
qPa=function(a,b,c,d,e){e=e?e:Ay(a.j.get(),"SLOT_TYPE_IN_PLAYER");c=new a_(a.i,c);var f=[new d_(a.i,e)];a=[new CZ(a.i,b),new e_(a.i,e)];return{slotId:e,ob:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Lb:c,kc:f,vc:a,gb:"core",Ea:new yY([new cI(d({slotId:e,ob:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",Lb:c,kc:f,vc:a}))])}};
rPa=function(a,b,c,d){var e=Ay(a.j.get(),"SLOT_TYPE_PLAYER_UNDERLAY");c=new a_(a.i,c);var f=[new d_(a.i,e)];a=[new CZ(a.i,b),new e_(a.i,e)];return{slotId:e,ob:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,Lb:c,kc:f,vc:a,gb:"core",Ea:new yY([new cI(d({slotId:e,ob:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,gb:"core",Lb:c,kc:f,vc:a}))])}};
FOa=function(a,b,c,d,e,f){b=j_(a,b,c,d);if(b instanceof fZ)return b;var k=b instanceof SZ?new b_(a.i,c,b.i):null;d=Ay(a.j.get(),"SLOT_TYPE_IN_PLAYER");var l=[new d_(a.i,d)];a=[new CZ(a.i,c),new e_(a.i,d)];f=f({slotId:d,ob:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",Lb:b,kc:l,vc:a},k);return f instanceof WY?new fZ(f):{slotId:d,ob:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Lb:b,kc:l,vc:a,gb:"core",Ea:new yY([new cI(f)]),adSlotLoggingData:e}};
oOa=function(a,b,c,d){var e=Ay(a.j.get(),"SLOT_TYPE_IN_PLAYER");c=new a_(a.i,c);var f=[new d_(a.i,e)],k=[new e_(a.i,e),new CZ(a.i,b)];f={slotId:e,ob:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",Lb:c,kc:f,vc:k};return{slotId:e,ob:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Lb:c,kc:[new d_(a.i,e)],vc:[new CZ(a.i,b),new e_(a.i,e)],gb:"core",Ea:new yY([new cI(d(f))])}};
mOa=function(a,b,c,d,e){var f=Ay(a.j.get(),"SLOT_TYPE_IN_PLAYER");c=new $Z(a.i,d,c);d=[new d_(a.i,f)];a=[new CZ(a.i,b)];return{slotId:f,ob:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Lb:c,kc:d,vc:a,gb:"core",Ea:new yY([new cI(e({slotId:f,ob:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",Lb:c,kc:d,vc:a}))])}};
fOa=function(a,b,c,d,e,f){var k=Ay(a.j.get(),b);return sPa(a,k,b,new a_(a.i,d),c,e,d,f)};
BOa=function(a,b,c,d){var e=Ay(a.j.get(),"SLOT_TYPE_PLAYBACK_TRACKING");b=new wy(a.i,b);var f=[new d_(a.i,e)];a=[new e_(a.i,e)];return{slotId:e,ob:"SLOT_TYPE_PLAYBACK_TRACKING",slotPhysicalPosition:1,Lb:b,kc:f,vc:a,gb:"core",Ea:new yY([new cI(d({slotId:e,ob:"SLOT_TYPE_PLAYBACK_TRACKING",slotPhysicalPosition:1,gb:"core",Lb:b,kc:f,vc:a}))]),adSlotLoggingData:c}};
eOa=function(a,b,c,d,e,f,k){return sPa(a,c,b,new c_(a.i,c),d,f,e,k)};
wOa=function(a,b,c){var d=Ay(a.j.get(),"SLOT_TYPE_PLAYER_BYTES"),e=new mPa(a.i),f=[new h_(a.i,d)];a=[new CZ(a.i,b)];return{slotId:d,ob:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Lb:e,kc:f,vc:a,gb:"core",Ea:new yY([new cI(c({slotId:d,ob:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,gb:"core",Lb:e,kc:f,vc:a})),new ZH({})])}};
POa=function(a,b,c,d,e){b=new IZ(a.i,b,"normal");a=tPa(a,b,c);e=e({slotId:a.slotId,ob:a.ob,slotPhysicalPosition:a.slotPhysicalPosition,Lb:a.Lb,kc:a.kc,vc:a.vc,gb:a.gb});return e instanceof fZ?e:{Gt:Object.assign({},a,{Ea:new yY([new cI(e.layout)]),adSlotLoggingData:d}),Rh:e.Rh}};
ROa=function(a,b,c,d,e,f,k){a=XOa(a,b,c,d);if(a instanceof fZ)return a;k=k({slotId:a.slotId,ob:a.ob,slotPhysicalPosition:a.slotPhysicalPosition,Lb:a.Lb,kc:a.kc,vc:a.vc,gb:a.gb});if(k instanceof fZ)return k;b=[new cI(k.layout)];f&&b.push(new lI({}));return{Gt:{slotId:a.slotId,ob:a.ob,slotPhysicalPosition:a.slotPhysicalPosition,Lb:a.Lb,kc:a.kc,vc:a.vc,gb:a.gb,Ea:new yY(b),adSlotLoggingData:e},Rh:k.Rh}};
tPa=function(a,b,c){var d=Ay(a.j.get(),"SLOT_TYPE_PLAYER_BYTES"),e=[new d_(a.i,d)];a=[new e_(a.i,d),new CZ(a.i,c)];return{slotId:d,ob:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Lb:b,kc:e,vc:a,gb:"core"}};
XOa=function(a,b,c,d){b=j_(a,b,c,d);return b instanceof fZ?b:tPa(a,b,c)};
DOa=function(a,b,c,d,e,f){var k=Ay(a.j.get(),"SLOT_TYPE_FORECASTING");b=j_(a,b,c,d);if(b instanceof fZ)return b;d=[new d_(a.i,k)];a=[new e_(a.i,k),new CZ(a.i,c)];return{slotId:k,ob:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,Lb:b,kc:d,vc:a,gb:"core",Ea:new yY([new cI(f({slotId:k,ob:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,gb:"core",Lb:b,kc:d,vc:a}))]),adSlotLoggingData:e}};
uPa=function(a,b,c,d,e){var f=!b.hideCueRangeMarker;switch(b.kind){case "AD_PLACEMENT_KIND_START":return new wy(a.i,c);case "AD_PLACEMENT_KIND_MILLISECONDS":return a=$Na(b,d),a instanceof fZ?a:e(a.ol,f);case "AD_PLACEMENT_KIND_END":return new ZZ(a.i,c,f);default:return new fZ("Cannot construct entry trigger",{kind:b.kind})}};
j_=function(a,b,c,d){return uPa(a,b,c,d,function(e,f){return new SZ(a.i,c,e,f)})};
sPa=function(a,b,c,d,e,f,k,l){var m=[new h_(a.i,b)];a=[new CZ(a.i,e),new e_(a.i,b),new IZ(a.i,k,"error")];return{slotId:b,ob:c,slotPhysicalPosition:1,Lb:d,kc:m,vc:a,gb:"core",Ea:new yY([new cI(l({slotId:b,ob:c,slotPhysicalPosition:1,gb:"core",Lb:d,kc:m,vc:a}))]),adSlotLoggingData:f}};
k_=function(a,b){g.G.call(this);this.Ka=a;this.j=b;this.eventCount=0};
AI=function(a,b,c){RZ(a,b,void 0,void 0,void 0,c,void 0,void 0,c.adSlotLoggingData,void 0)};
VY=function(a,b,c,d){EZ(a.Ka.get())&&(null==c.adSlotLoggingData||null==c.adSlotLoggingData.serializedSlotAdServingDataEntry||0===c.adSlotLoggingData.serializedSlotAdServingDataEntry.length)&&T("Unexpected empty SASDE in EnableSasdeForHtml - no SASDE found in slot",c);RZ(a,b,void 0,void 0,void 0,c,d?d:void 0,void 0,c.adSlotLoggingData,d?d.adLayoutLoggingData:void 0)};
MNa=function(a,b,c,d){var e=a.Ka.get();(e.G.T().L("html5_control_flow_include_trigger_logging_in_tmp_logs")||e.G.T().L("html5_control_flow_include_trigger_logging_in_tmp_logs_live_infra"))&&RZ(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)};
RZ=function(a,b,c,d,e,f,k,l,m,n){var p=a.Ka.get();if((p.G.T().L("html5_enable_ads_client_monitoring_log")||p.G.T().L("html5_enable_ads_client_monitoring_log_live_infra"))&&!a.Ka.get().G.T().L("html5_disable_client_tmp_logs")&&"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"!==b){var r=DY(a.j.get());b={eventType:b,eventOrder:++a.eventCount};p={};f&&(p.slotData=BY(r,f));k&&(p.layoutData=ANa(r,k));l&&(p.triggerData=AY(l.trigger,l.category));c&&(p.opportunityData=BNa(r,c,d,e));c={organicPlaybackContext:{contentCpn:ty(a.i.get(),
1).clientPlaybackNonce}};c.organicPlaybackContext.isLivePlayback=ty(a.i.get(),1).Af;var t;c.organicPlaybackContext.isMdxPlayback=null==(t=ty(a.i.get(),1))?void 0:t.isMdxPlayback;var w;if(a=null==(w=ty(a.i.get(),2))?void 0:w.clientPlaybackNonce)c.adVideoPlaybackContext={adVideoCpn:a};c&&(p.externalContext=c);b.adClientData=p;m&&(b.serializedSlotAdServingData=m.serializedSlotAdServingDataEntry);n&&(b.serializedAdServingData=n.serializedAdServingDataEntry);g.Fv("adsClientStateChange",{adsClientEvent:b})}};
l_=function(a,b,c){k_.call(this,a,b);this.i=c};
m_=function(){this.i=new Map};
n_=function(a,b,c,d,e){g.G.call(this);this.G=a;this.u=b;this.Fa=c;this.B=d;this.j=e;this.listeners=[];var f=new qx(this);g.J(this,f);f.S(a,"internalAbandon",this.nG);g.Ue(this,function(){g.sx(f)})};
o_=function(a){g.G.call(this);this.G=a;this.i=new Map;this.j=new qx(this);g.J(this,this.j);this.j.S(this.G,g.Ny("ad"),this.onCueRangeEnter,this);this.j.S(this.G,g.Oy("ad"),this.onCueRangeExit,this)};
vPa=function(a,b,c,d,e){g.Ly.call(this,b,c,{id:a,namespace:"ad",priority:e,visible:d})};
p_=function(a){this.G=a};
q_=function(a){this.G=a};
NZ=function(a,b){return a.G.T().L(b)};
wPa=function(a){return a.G.T().L("html5_enable_pacf_for_playback_tracking_layout_web")};
r_=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};
mZ=function(a){return a.G.T().L("html5_recover_from_non_fatal_errors_in_player_bytes")};
$Y=function(a){return g.vE(a.G.T())?a.G.T().L("html5_enable_vod_lsar_ivar_pacf_unplugged"):jE(a.G.T())?a.G.T().L("html5_enable_non_notify_composite_vod_lsar_pacf"):g.kE(a.G.T())?a.G.T().L("html5_enable_non_notify_composite_vod_lsar_pacf_tv"):!1};
xPa=function(a){return a.G.T().L("html5_recognize_predict_start_cue_point")};
PZ=function(a){return a.G.T().L("html5_pacf_enable_non_dai_live_video_ads")};
s_=function(a){return a.G.T().L("html5_enable_common_timer_for_survey_web")};
yPa=function(a){return a.G.T().experiments.Xa("enable_desktop_player_underlay")};
zPa=function(a){return a.G.T().experiments.Xa("html5_disable_lidar")};
EZ=function(a){return a.G.T().experiments.Xa("enable_sasde_for_html")};
t_=function(a,b){this.Fa=a;this.G=b;this.i=new Map;mG().subscribe("adactiveviewmeasurable",this.Yw,this);mG().subscribe("adfullyviewableaudiblehalfdurationimpression",this.Xw,this);mG().subscribe("adviewableimpression",this.Zw,this);mG().subscribe("adaudioaudible",this.Vw,this);mG().subscribe("adaudiomeasurable",this.Ww,this)};
v_=function(a,b,c,d,e){e=void 0===e?null:e;a.i.has(b)?T("Unexpected registration of layout in LidarApi"):(a.i.set(b,e),ega(an(Pq),c),Lua(mG(),b,{Zv:function(){return d?{currentTime:a.Fa.get().getCurrentTimeSec(2,!1),duration:d,Ic:2===a.Fa.get().getPresentingPlayerType()&&1===u_(a.Fa.get(),2),ofa:!1,pfa:!0,volume:a.Fa.get().isMuted()?0:a.Fa.get().getVolume()/100}:{}}}))};
w_=function(a,b){a.i.has(b)?(a.i.delete(b),delete mG().i[b]):T("Unexpected unregistration of layout in LidarApi")};
x_=function(a,b){this.u=a;this.B=b};
y_=function(a,b,c,d){var e=void 0===e?new x_(function(){var f=a.getVideoData(1);return f?g.YF(f):""},function(){return a.T().pageId}):e;
this.G=a;this.j=b;this.u=c;this.B=d;this.Ap=e;this.IB=null;this.i=new Map;this.Sh=new FG(e);this.C=a.T().experiments.Xa("html5_disable_lidar")};
BPa=function(a,b,c,d){d=void 0===d?[]:d;var e=gPa(a.j.get(),c);e?(c=z_(a,APa(e),e),b.hasOwnProperty("baseUrl")?a.Ap.send(b,c):a.Sh.send(b,c,{},d)):T("Trying to ping from an unknown layout",void 0,void 0,{layoutId:c})};
A_=function(a,b){g.Fv("adsClientStateChange",b)};
B_=function(a,b){a.i.has(b.ew())?T("Trying to register an existing AdErrorInfoSupplier."):a.i.set(b.ew(),b)};
C_=function(a,b){a.i.delete(b.ew())||T("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")};
APa=function(a){var b=X(a.Ea,"metadata_type_ad_placement_config");a=X(a.Ea,"metadata_type_media_sub_layout_index");return{adPlacementConfig:b,KM:a}};
z_=function(a,b,c,d){var e=c?CPa(a):{};c=c?DPa(a,c.layoutId):{};var f={},k={};d=Object.assign({},AG(a.G,d),Tua(b.adPlacementConfig),(f.SLOT_POS=zG(function(){return(b.KM||0).toString()}),f),c,e,(k.FINAL=zG(function(){return"1"}),k.AD_CPN=zG(function(){var l;
return(null==(l=ty(a.B.get(),2))?void 0:l.clientPlaybackNonce)||""}),k));
e={};c=g.q(Object.values(EPa));for(f=c.next();!f.done;f=c.next())f=f.value,k=d[f],null!=k&&(e[f]=k.toString());return e};
CPa=function(a){var b={},c,d=null==(c=a.IB)?void 0:FPa(c);null!=d&&(b.SURVEY_ELAPSED_MS=zG(function(){return Math.round(1E3*d).toString()}));
b.SURVEY_LOCAL_TIME_EPOCH_S=zG(function(){return Math.round(Date.now()/1E3).toString()});
return b};
DPa=function(a,b){a=a.i.get(b);if(!a)return{};a=a.CE();if(!a)return{};b={};return b.YT_ERROR_CODE=a.dC.toString(),b.ERRORCODE=a.jy.toString(),b.ERROR_MSG=a.errorMessage,b};
D_=function(a,b,c){g.G.call(this);this.G=a;this.i=b;this.Ka=c;this.listeners=[];this.EF=null;this.yD=new Map;b=new g.sC(this);g.J(this,b);b.S(a,"videodatachange",this.JX);b.S(a,"serverstitchedvideochange",this.fX);this.Qp=ty(this)};
ty=function(a,b){var c=a.G.getVideoData(b);return c?GPa(a,c,b||a.G.getPresentingPlayerType(!0)):null};
HPa=function(a,b,c){var d=GPa(a,b,c);a.Qp=d;a.listeners.forEach(function(e){e.EN(d)})};
GPa=function(a,b,c){var d=b.author,e=b.clientPlaybackNonce,f=b.isListed,k=b.Dc,l=b.title,m=b.hg,n=b.Eg,p=b.isMdxPlayback,r=b.Yh,t=b.mdxEnvironment,w=b.dl,x=b.ll,y=b.Ip,z=b.videoId||"",F=b.profilePicture||"",I=b.nj||"";b=b.Vl||void 0;k=a.i.get().i.get(k)||{layoutId:null,slotId:null};var H=a.G.getVideoData(1),O=H.Af();H=H.getPlayerResponse();c=1E3*a.G.getDuration(c);a=1E3*a.G.getDuration(1);var ma,N,da=(null==H?void 0:null==(ma=H.playerConfig)?void 0:null==(N=ma.daiConfig)?void 0:N.enableDai)||!1,qa,
Wa;ma=(null==H?void 0:null==(qa=H.playerConfig)?void 0:null==(Wa=qa.daiConfig)?void 0:Wa.enablePreroll)||!1;return Object.assign({},k,{videoId:z,author:d,clientPlaybackNonce:e,playbackDurationMs:c,IK:a,daiEnabled:da,SK:ma,isListed:f,Af:O,profilePicture:F,title:l,nj:I,hg:m,Eg:n,Vl:b,isMdxPlayback:p,Yh:r,mdxEnvironment:t,dl:w,ll:x,Ip:y})};
E_=function(a,b){g.G.call(this);this.G=a;this.i=b;this.listeners=[];this.Tp=function(){T("Called 'doUnlockPreroll' before it's initialized.")};
b=new qx(this);var c=new g.sC(this);g.J(this,c);g.J(this,b);b.S(a,"progresssync",this.IW);b.S(a,"presentingplayerstatechange",this.xW);b.S(a,"fullscreentoggled",this.onFullscreenToggled);b.S(a,"onVolumeChange",this.onVolumeChange);b.S(a,"minimized",this.dg);b.S(a,"resize",this.yb);c.S(a,g.Ny("appad"),this.Oj)};
F_=function(a,b){var c;b=null!=(c=a.i.get().yD.get(b))?c:null;if(null===b)return T("Expected ad video start time on playback timeline"),0;a=a.G.getCurrentTime(2,!0);return a<b?0:a-b};
u_=function(a,b){return a.G.zb(b)};
IPa=function(a){var b=a.G.bb().xg();a=a.G.Dj(!0,!0);return b.height-(a.height+a.top)};
JPa=function(a,b){var c=a.G.T();aE(c)||"3"!==c.controlsType||a.G.bb().Ix(b)};
G_=function(a,b){g.L(a.G.getRootNode(),b)};
H_=function(a,b){g.pr(a.G.getRootNode(),b)};
KPa=function(a,b,c,d,e){g.G.call(this);var f=this;this.j=Y(function(){return new zy});
g.J(this,this.j);this.W=Y(function(){return new XZ(f.j)});
g.J(this,this.W);this.J=Y(function(){return new UZ});
g.J(this,this.J);this.u=Y(function(){return new QZ(a)});
g.J(this,this.u);this.B=Y(function(){return new i_(f.j)});
g.J(this,this.B);this.va=Y(function(){return new m_});
g.J(this,this.va);this.xa=Y(function(){return new rZ(e)});
this.N=Y(function(){return new o_(b)});
g.J(this,this.N);this.Pc=Y(function(){return new p_(b)});
g.J(this,this.Pc);this.Ka=Y(function(){return new q_(b)});
g.J(this,this.Ka);this.C=Y(function(){return new FY(f.Ka)});
g.J(this,this.C);this.I=Y(function(){return new MZ(f.B,f.W,f.Ka,f.C,null,null)});
g.J(this,this.I);this.i=Y(function(){return new D_(b,f.va,f.Ka)});
g.J(this,this.i);this.Ub=new l_(this.Ka,this.C,this.i);g.J(this,this.Ub);this.Fa=Y(function(){return new E_(b,f.i)});
g.J(this,this.Fa);this.Y=Y(function(){return new t_(f.Fa,b)});
g.J(this,this.Y);this.Ra=Y(function(){return new y_(b,f.J,f.Y,f.i)});
g.J(this,this.Ra);this.Cc=new yy(this.u,this.I,c,this.Ka,a,this.i,this.Fa);g.J(this,this.Cc);var k=new n_(b,this.Cc,this.Fa,this.i);this.ya=Y(function(){return k});
this.Jo=k;this.ea=new TZ(this.u,this.B,this.N,this.ya);g.J(this,this.ea);this.Ec=new ry(this.u,this.B,this.I,this.i,this.ea,c);g.J(this,this.Ec);this.Ud={Eq:new Map,gm:new Map,Wh:new Map,Sm:new Map,Cm:new Map};this.listeners=[];this.rq={Ec:this.Ec,Hk:null,Em:null,Xf:this.Ka.get(),ib:this.xa.get(),Po:this.Fa.get(),Cc:this.Cc,Gj:this.j.get(),Dm:null,Ki:{aF:function(){}},
jh:this.J.get()}};
I_=function(){this.listeners=new Set};
J_=function(){};
LPa=function(a,b){b.siub&&b.bgub&&b.scs&&b.bgp&&Im(b.siub,b.scs,b.bgub,b.bgp)};
MPa=function(a,b,c,d){this.callback=a;this.slot=b;this.u=c;this.j=d;this.i=null};
NPa=function(a,b,c,d){a.i&&T("Currently active request ongoing for slot. This should never happen",a.slot);a.i=b();a.i.then(function(e){a.i=null;d&&d(e);var f=e.du?"LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE":"LAYOUT_TYPE_AD_BREAK_RESPONSE",k=a.u.get(),l=a.slot.slotId,m=EY(a.j.get(),{slotId:a.slot.slotId,ob:a.slot.ob,slotPhysicalPosition:a.slot.slotPhysicalPosition,gb:a.slot.gb,Lb:a.slot.Lb,kc:a.slot.kc,vc:a.slot.vc}),n=By(k.j.get(),f,l),p={layoutId:n,layoutType:f,gb:"core"};e={layoutId:n,layoutType:f,
uc:new Map,xd:[new hPa(k.i,l)],Qc:[],Oc:[],Rc:[],Wc:[],gb:"core",Ea:new yY([new eI(e)]),Bc:m(p)};KNa(a.callback,a.slot,e)},function(e){a.i=null;
c&&c();e instanceof zi||SY(a.callback,a.slot,new fZ(e,void 0,!0))})};
OPa=function(a){if(null==a.i)a.callback.QA(a.slot);else try{a.i.cancel(),a.i=null,a.callback.QA(a.slot)}catch(b){a.i=null,SY(a.callback,a.slot,new fZ(b))}};
K_=function(a,b,c,d,e,f){this.slot=b;this.j=c;this.u=f;this.i=new MPa(a,b,d,e)};
PPa=function(a){var b;null==(b=a.u)||b.get().No(X(a.slot.Ea,"metadata_type_cue_point").identifier)};
L_=function(a,b,c,d,e){this.callback=a;this.slot=b;this.j=c;this.i=new MPa(a,b,d,e)};
M_=function(a,b){this.callback=a;this.slot=b};
N_=function(a,b){return vy(a,b.Pd,b.ob)?!0:!1};
O_=function(){};
P_=function(a,b,c,d){this.i=a;this.u=b;this.j=c;this.C=d};
Q_=function(){};
QPa=function(a,b,c,d){this.callback=a;this.slot=b;this.layout=c;this.i=d};
R_=function(a,b){return fH(a,b.Pd,b.Te)?!0:!1};
S_=function(a){this.i=a};
T_=function(a,b,c,d,e){e=void 0===e?null:e;this.C=a;this.Ra=b;this.layoutId=d;this.i=0;this.u=null;this.B=new Set;this.j=Array.from(this.C.get("progress")||[]);this.j.sort(function(f,k){return(f.offsetMilliseconds||0)-(k.offsetMilliseconds||0)});
this.I={adPlacementConfig:c,KM:e}};
U_=function(){return["metadata_type_ad_placement_config"]};
V_=function(a){var b=a.Ra.get();return z_(b,a.I)};
W_=function(a,b){a.B.has(b)||a.kf(b)};
X_=function(a,b,c){for(c=void 0===c?!1:c;a.i<a.j.length;){var d=a.j[a.i];if(d.offsetMilliseconds<=b||c)RPa(a,"progress",[d]),a.i++;else break}};
Y_=function(a,b){return a.B.has(b)};
RPa=function(a,b,c){var d,e=a.Ra.get(),f=a.layoutId;a=null!=(d=a.u)?d:void 0;c=void 0===c?[]:c;if(d=gPa(e.j.get(),f))for(b=e.C?{}:e.u.get().kf(f,b),f=z_(e,APa(d),d,a),c=g.q(c),d=c.next();!d.done;d=c.next())d=d.value,d.baseUrl&&e.Sh.send(d.baseUrl,f,b,d.headers);else T("Trying to track from an unknown layout.",void 0,void 0,{layoutId:f,trackingType:b})};
SPa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.layout=c;this.Ra=d;this.i=e;a=X(this.layout.Ea,"metadata_type_ad_placement_config");this.j=new T_(c.uc,this.Ra,a,c.layoutId)};
TPa=function(){var a=["metadata_type_client_forecasting_ad_renderer"];U_().forEach(function(b){a.push(b)});
return{Pd:a,Te:["LAYOUT_TYPE_FORECASTING"]}};
Z_=function(a,b){this.Ra=a;this.i=b};
$_=function(a,b,c,d){g.tx.call(this);this.callback=a;this.slot=b;this.layout=c;this.j=d;this.i=[]};
a0=function(a,b,c,d,e,f,k){e=X(c.Ea,e);a=V_(a);var l=bg(function(){d.Lc(b,c)});
k.push(f(e,a,c.layoutId,{adsClientData:c.Bc},function(){l()}))};
b0=function(a,b,c,d,e,f,k,l,m){if(b===a)if(m){if(m===l.layoutId){a:{a=g.q(c.keys());for(b=a.next();!b.done;b=a.next())if(b=b.value,"SLOT_TYPE_PLAYER_BYTES"===b.ob&&f===c.get(b).layoutId){c=!0;break a}c=!1}c?d.G.sendVideoStatsEngageEvent(1,void 0,2):e?e():T("Tried to call engagePingCallback but it is null",k,l)}}else T("Companion AdUxClick received without a layoutId",k,l)};
UPa=function(a,b,c,d,e){iG.call(this,"action-companion",a,b,c,d,e)};
c0=function(a,b,c,d,e,f,k,l){$_.call(this,a,b,c,d);this.Ra=e;this.ze=f;this.I=l;this.Di=!0;this.u=null;this.B=X(c.Ea,"metadata_type_linked_player_bytes_layout_id");QY(this.ze(),this);a=X(c.Ea,"metadata_type_ad_placement_config");this.C=new T_(c.uc,this.Ra,a,c.layoutId)};
VPa=function(){var a=["metadata_type_action_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];U_().forEach(function(b){a.push(b)});
return{Pd:a,Te:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
d0=function(a,b,c,d,e){$_.call(this,a,b,c,d);a=X(c.Ea,"metadata_type_ad_placement_config");this.u=new T_(c.uc,e,a,c.layoutId)};
WPa=function(){var a=["metadata_type_ad_action_interstitial_renderer"];U_().forEach(function(b){a.push(b)});
return{Pd:a,Te:["LAYOUT_TYPE_ENDCAP"]}};
e0=function(a,b,c,d,e,f,k,l){$_.call(this,a,b,c,d);this.Fa=e;this.Ra=f;this.C=k;this.B=l;this.u=!1;this.I=X(this.layout.Ea,"metadata_type_linked_player_bytes_layout_id")};
XPa=function(){return{Pd:["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"],Te:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]}};
f0=function(a,b,c,d,e,f,k,l){return R_(c,XPa())?new e0(a,b,c,d,e,f,k,l):R_(c,WPa())?new d0(a,b,c,d,f):null};
g0=function(a,b,c,d,e){this.j=a;this.Fa=b;this.Ra=c;this.u=d;this.i=e};
h0=function(a,b,c,d,e,f){g.G.call(this);this.callback=a;this.Qd=b;this.Fa=c;this.rd=d;this.ze=e;this.Ka=f;this.Di=!0;this.jF=!1};
i0=function(a,b,c,d,e,f,k,l,m,n){h0.call(this,a,b,c,d,m,n);this.u=e;this.slot=f;this.layout=k;this.I=l;this.j=[];this.i=-1;this.B=!1};
j0=function(a,b,c){var d=X(a.Eb().Ea,"metadata_type_linked_in_player_layout_id");return d?d:(T("Tried to retrieve Linked InPlayer LayoutId but missing ClientMetadata",a.wd(),a.Eb(),{requestingSlot:b,requestingLayout:c}),null)};
k0=function(a,b,c,d){if(!a.B){var e=a.j[a.i];e?(e.Eb().layoutId!==c.layoutId&&T("SubLayout mismatch in exitSubLayoutAndPlayNext",b,c,{exitingSubLayout:c.layoutId,activeSubLayout:e.Eb().layoutId}),a.B=!0,e.jf(e.Eb(),d),iH(a.u,b,c,d),a.B=!1,a.C?(a.C(),LI(a.rd.get())):YPa(a)):T("No active adapter when exitSubLayoutAndPlayNext in PlayerBytesVodCompositeLayoutRenderingAdapter. This should never happen.",b,c)}};
YPa=function(a){if(a.i===a.j.length-1)a.i++,l0(a.I,a.layout.layoutId),LI(a.rd.get());else{-1===a.i&&a.callback.Lc(a.slot,a.layout);a.i++;var b=a.j[a.i];0<a.i&&Uva(a.rd.get());b.startRendering(b.Eb())}};
m0=function(a){return!a.Ho.Ic()&&a.state.Ic()};
n0=function(a,b,c){return a<b?!1:null!=c?c<=b:a<=b+1};
ZPa=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)};
$Pa=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))};
aQa=function(a,b,c,d){this.C=a;this.layoutId=c;this.I=d;this.j=[];this.i=[];this.u=this.B=0;a=g.q(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":ZPa(b)?this.j.push(b):T("Invalid AdVideoProgressPercentCommand");break;case "AD_VIDEO_PROGRESS_KIND_MILLISECONDS":$Pa(b)?this.i.push(b):T("Invalid AdVideoProgressMillisecondsCommand");break;default:T("Unknown or invalid AdVideoProgressOffSet kind")}this.j.sort(function(e,
f){return e.adVideoOffset.percent-f.adVideoOffset.percent});
this.i.sort(function(e,f){return Number(e.adVideoOffset.milliseconds)-Number(f.adVideoOffset.milliseconds)})};
p0=function(a,b,c,d,e,f,k,l,m,n,p,r,t,w){g.G.call(this);var x=this;this.callback=a;this.slot=b;this.layout=c;this.Ra=d;this.ea=e;this.Fa=f;this.rd=k;this.La=l;this.u=m;this.I=n;this.position=r;this.Ha=t;this.Ka=w;this.Di=!0;this.ya=!1;this.j="not_rendering";this.N=!1;a=X(this.layout.Ea,"metadata_type_ad_placement_config");this.i=new T_(c.uc,this.Ra,a,c.layoutId);var y;a=(null==(y=o0(this))?void 0:y.progressCommands)||[];this.Wa=new aQa(m,a,c.layoutId,function(){return x.lm()});
this.xa=bg(function(){x.callback.Lc(x.slot,x.layout)});
this.J=bg(function(){"rendering_stop_requested"!==x.j&&p(x);x.W?x.callback.Xc(x.slot,x.layout,x.W):T("Received layout exit signal when not in layout exit flow.",x.slot,x.layout)})};
o0=function(a){return X(a.layout.Ea,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")};
r0=function(a,b,c){c=void 0===c?!1:c;if("rendering"===a.j){X_(a.i,1E3*b,c);a.N||X_(a.i,1E3*b,void 0===c?!1:c);var d=a.lm();if(d){d/=1E3;if(b>=.25*d||c)W_(a.i,"first_quartile"),q0(a,"unmuted_first_quartile");if(b>=.5*d||c)W_(a.i,"midpoint"),q0(a,"unmuted_midpoint");if(b>=.75*d||c)W_(a.i,"third_quartile"),q0(a,"unmuted_third_quartile");a=a.Wa;b*=1E3;if(c=a.I()){for(;a.B<a.j.length;)if(d=a.j[a.B],d.adVideoOffset.percent*c<=b)a.C.get().executeCommand(d.command,a.layoutId),a.B++;else break;for(;a.u<a.i.length;)if(c=
a.i[a.u],Number(c.adVideoOffset.milliseconds)<=b)a.C.get().executeCommand(c.command,a.layoutId),a.u++;else break}}}};
s0=function(a,b){a.N||a.i.kf(b)};
q0=function(a,b){a.N||W_(a.i,b)};
u0=function(a,b,c,d,e,f,k,l,m,n,p,r,t,w,x){p0.call(this,a,b,c,d,e,f,k,m,n,p,r,t,w,x);var y=this;this.Pc=l;this.kA=!0;this.Y=this.B=0;s_(this.Ka.get())?(this.C=new qI(this.lm(),function(z){r0(y,z/1E3);t0(y,z)},function(){r0(y,y.lm()/1E3,!0);
t0(y,y.lm());y.J()}),g.J(this,this.C)):(this.timer=new g.Di(200),this.timer.Pa("tick",function(){y.Rb()}),g.J(this,this.timer))};
bQa=function(){for(var a=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],b=g.q(U_()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Pd:a,Te:["LAYOUT_TYPE_MEDIA_BREAK"]}};
cQa=function(a){s_(a.Ka.get())?a.C.start():(a.Y=Date.now(),t0(a,a.B),a.timer.start())};
FPa=function(a){return s_(a.Ka.get())?a.C.i/1E3:a.B/1E3};
t0=function(a,b){b={current:b/1E3,duration:a.lm()/1E3};a.Pc.get().Oa("onAdPlaybackProgress",b)};
v0=function(a,b,c,d,e,f,k,l,m,n,p,r,t,w,x,y,z,F,I,H){p0.call(this,a,b,c,d,e,m,p,t,w,y,z,F,I,H);var O=this;this.Ta=f;this.Qd=k;this.va=l;this.Y=n;this.Pc=r;this.Qa=x;this.adCpn="";this.C=new g.K(function(){O.Tw("load_timeout",new WY("Media layout load timeout.",{},!0))},1E4)};
dQa=function(){for(var a=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"],b=g.q(U_()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Pd:a,Te:["LAYOUT_TYPE_MEDIA"]}};
w0=function(a,b,c,d,e,f,k){h0.call(this,a,b,c,d,f,k);this.i=e};
fQa=function(a,b,c,d,e,f,k,l,m,n,p,r,t,w,x,y,z,F,I){if(R_(d,{Pd:["metadata_type_sub_layouts"],Te:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})){var H=X(d.Ea,"metadata_type_sub_layouts");a=new i0(a,n,r,w,b,c,d,f,e,I);e=[];for(b={ip:0};b.ip<H.length;b={ip:b.ip},b.ip++){var O=eQa({Lc:a.rX.bind(a),Xc:a.tX.bind(a),Df:a.sX.bind(a)},c,H[b.ip],k,l,m,n,p,r,t,w,x,y,z,F,function(ma){return function(N){N.jf(H[ma.ip],"normal")}}(b),b.ip,H.length,I);
if(!O)return;e.push(O)}a.j=e;return a}if(R_(d,{Pd:[],Te:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]}))return(c=eQa({Lc:a.Lc.bind(a),Xc:a.Xc.bind(a),Df:a.Df.bind(a)},c,d,k,l,m,n,p,r,t,w,x,y,z,F,function(){l0(f,d.layoutId)},0,1,I))?new w0(a,n,r,w,c,e,I):c};
eQa=function(a,b,c,d,e,f,k,l,m,n,p,r,t,w,x,y,z,F,I){if(R_(c,bQa()))return new u0(a,b,c,d,e,m,p,r,t,w,function(){},y,z,F,I);
if(R_(c,dQa()))return uy(c.Ea,"metadata_type_ad_intro")?new v0(a,b,c,d,e,f,k,l,m,n,p,r,t,w,x,function(H){r.get().Oa("onAdIntroStateChange",H)},y,z,F,I):new v0(a,b,c,d,e,f,k,l,m,n,p,r,t,w,x,function(H){r.get().Ti(H)},y,z,F,I)};
x0=function(a,b,c,d,e,f,k,l,m,n,p,r,t,w,x){this.ze=a;this.I=b;this.Ra=c;this.C=d;this.N=e;this.Qd=f;this.J=k;this.Fa=l;this.u=m;this.rd=n;this.Pc=p;this.i=r;this.j=t;this.B=w;this.Ka=x};
y0=function(a,b,c,d,e,f,k,l){g.G.call(this);var m=this;this.C=a;this.I=b;this.u=c;this.j=e;this.Fa=f;this.Ka=k;this.B=l;this.i=null;d.get().addListener(this);g.Ue(this,function(){d.get().removeListener(m)});
e.get().addListener(this);g.Ue(this,function(){e.get().removeListener(m)})};
ePa=function(a,b){if(ty(a.u.get(),1).daiEnabled&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===b.adPlacementRenderer.config.adPlacementConfig.kind||PZ(a.Ka.get()))if(a.i)T("Unexpected multiple fetch instructions for the current content");else{a.i=b;b=g.q(a.j.get().RB);for(var c=b.next();!c.done;c=b.next())gQa(a,a.i,c.value)}};
gQa=function(a,b,c){var d=a.Fa.get().getCurrentTimeSec(1,!1);sy(a.C.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var e=a.I.get(),f=r_(a.Ka.get());var k=1E3*c.startSecs;k={ol:new Gr(k,k+1E3*c.durationSecs),kB:!1};var l=c.startSecs+c.durationSecs;if(c.startSecs<=d)f=new Gr(1E3*(c.startSecs-4),1E3*l);else{var m=Math.max(0,c.startSecs-d-10);f=new Gr(1E3*Math.floor(d+Math.random()*(f?0===d?0:Math.min(m,5):m)),1E3*l)}k.Hs=f;return[aOa(e,b.adPlacementRenderer.renderer.adBreakServiceRenderer,
b.contentCpn,k,b.adPlacementRenderer.adSlotLoggingData,[new SH(c)])]})};
z0=function(a,b,c,d,e,f,k,l,m){g.G.call(this);this.I=a;this.N=b;this.J=c;this.C=d;this.j=e;this.u=f;this.i=k;this.Ka=l;this.B=m;this.Di=!0};
hQa=function(a,b,c){return rPa(a.j.get(),b.contentCpn,b.ju,function(d){return kPa(a.u.get(),d.slotId,c,b.adPlacementConfig,b.ju,EY(a.i.get(),d))})};
A0=function(a){var b,c=null==(b=X(a.Ea,"metadata_type_player_bytes_callback_ref"))?void 0:b.current;if(c){b=a.layoutId;var d=X(a.Ea,"metadata_type_content_cpn"),e=X(a.Ea,"metadata_type_instream_ad_player_overlay_renderer"),f=X(a.Ea,"metadata_type_player_underlay_renderer"),k=X(a.Ea,"metadata_type_ad_placement_config"),l=X(a.Ea,"metadata_type_video_length_seconds");var m=uy(a.Ea,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?X(a.Ea,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):uy(a.Ea,"metadata_type_layout_enter_ms")&&
uy(a.Ea,"metadata_type_layout_exit_ms")?(X(a.Ea,"metadata_type_layout_exit_ms")-X(a.Ea,"metadata_type_layout_enter_ms"))/1E3:void 0;a={ju:b,contentCpn:d,dO:c,instreamAdPlayerOverlayRenderer:e,instreamAdPlayerUnderlayRenderer:f,adPlacementConfig:k,videoLengthSeconds:l,NF:m,kF:X(a.Ea,"metadata_type_linked_in_player_layout_id"),VL:X(a.Ea,"metadata_type_linked_in_player_slot_id")}}else a=null;return a};
jQa=function(a,b){return iQa(a,b)};
kQa=function(a,b){b=iQa(a,b);if(!b)return null;var c;b.NF=null==(c=X(a.Ea,"metadata_type_ad_pod_info"))?void 0:c.adBreakRemainingLengthSeconds;return b};
iQa=function(a,b){var c,d=null==(c=X(a.Ea,"metadata_type_player_bytes_callback_ref"))?void 0:c.current;if(!d)return null;uy(a.Ea,"metadata_ad_video_is_listed")?c=X(a.Ea,"metadata_ad_video_is_listed"):b?c=b.isListed:(T("No layout metadata nor AdPlayback specified for ad video isListed"),c=!1);uy(a.Ea,"metadata_type_ad_info_ad_metadata")?b=X(a.Ea,"metadata_type_ad_info_ad_metadata"):b?b={channelId:b.nj,channelThumbnailUrl:b.profilePicture,channelTitle:b.author,videoTitle:b.title}:(T("No layout metadata nor AdPlayback specified for AdMetaData"),
b={channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""});return{eS:b,adPlacementConfig:X(a.Ea,"metadata_type_ad_placement_config"),gS:c,contentCpn:X(a.Ea,"metadata_type_content_cpn"),kF:X(a.Ea,"metadata_type_linked_in_player_layout_id"),VL:X(a.Ea,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:X(a.Ea,"metadata_type_instream_ad_player_overlay_renderer"),instreamAdPlayerUnderlayRenderer:void 0,NF:void 0,dO:d,ju:a.layoutId,videoLengthSeconds:X(a.Ea,"metadata_type_video_length_seconds")}};
lQa=function(a,b){this.callback=a;this.slot=b};
B0=function(){};
mQa=function(a,b,c){this.callback=a;this.slot=b;this.Fa=c};
nQa=function(a,b,c){this.callback=a;this.slot=b;this.Fa=c;this.j=!1;this.i=0};
oQa=function(a,b,c){this.callback=a;this.slot=b;this.Fa=c};
C0=function(a){this.Fa=a};
D0=function(a,b,c,d){this.category=a;this.trigger=b;this.slot=c;this.layout=d};
E0=function(a){g.G.call(this);this.OC=a;this.Ib=new Map};
pQa=function(a,b){for(var c=[],d=g.q(a.Ib.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f instanceof AZ&&f.Oe===b&&c.push(e)}c.length?dZ(a.OC(),c):T("Survey is submitted but no registered triggers can be activated.")};
F0=function(a,b){E0.call(this,a);var c=this;b.get().addListener(this);g.Ue(this,function(){b.get().removeListener(c)})};
G0=function(a){g.G.call(this);this.i=a;this.Di=!0;this.Ib=new Map;this.C=new Set;this.u=new Set;this.B=new Set;this.I=new Set;this.j=new Set};
H0=function(a,b){g.G.call(this);var c=this;this.i=a;this.Ib=new Map;b.get().addListener(this);g.Ue(this,function(){b.get().removeListener(c)})};
qQa=function(a,b,c,d){var e=[];a=g.q(a.values());for(var f=a.next();!f.done;f=a.next())if(f=f.value,f.trigger instanceof CZ){var k=f.trigger.i===b;k===c?e.push(f):d&&k&&(T("Firing OnNewPlaybackAfterContentVideoIdTrigger from presumed cached playback CPN match.",void 0,void 0,{cpn:b}),e.push(f))}return e};
I0=function(a,b,c,d){g.G.call(this);var e=this;this.j=a;this.u=b;this.Fa=c;this.B=d;this.Ib=new Map;this.i=new Set;c.get().addListener(this);g.Ue(this,function(){c.get().removeListener(e)})};
J0=function(a,b,c,d,e,f,k,l,m,n){if(ty(a.B.get(),1).clientPlaybackNonce!==m)throw new fZ("Cannot register CueRange-based trigger for different content CPN",{trigger:c});a.Ib.set(c.triggerId,{bundle:new D0(b,c,d,e),lz:f});a.u.get().addCueRange(f,k,l,n,a)};
rQa=function(a,b){a=g.q(a.Ib.entries());for(var c=a.next();!c.done;c=a.next()){var d=g.q(c.value);c=d.next().value;d=d.next().value;if(b===d.lz)return c}return""};
K0=function(a){g.G.call(this);this.u=a;this.Di=!0;this.Ib=new Map;this.j=this.i=null};
l0=function(a,b){for(var c=[],d=g.q(a.Ib.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof DZ){var f;if(f=e.trigger.layoutId===b)f=(f=NNa.get(e.category))?"normal"===f:!1;f&&c.push(e)}c.length&&dZ(a.u(),c)};
L0=function(a){g.G.call(this);this.i=a;this.Di=!0;this.Ib=new Map};
M0=function(a,b,c){g.G.call(this);this.i=a;this.B=b;this.C=c;this.u=this.j=void 0;this.B.get().addListener(this)};
N0=function(a,b,c,d,e,f){g.G.call(this);this.u=a;this.C=b;this.I=c;this.N=d;this.J=e;this.Ka=f;this.i=this.j=null;this.B=!1;this.C.get().addListener(this)};
Hva=function(a,b,c,d,e){var f=Ay(a.J.get(),"SLOT_TYPE_PLAYER_BYTES");a.j={slotId:f,ob:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Lb:void 0,kc:[],vc:[],gb:"surface",Ea:new yY([])};a.i={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",uc:new Map,xd:[],Qc:[],Oc:[],Rc:[],Wc:[],gb:"surface",Ea:new yY(c),Bc:CY(DY(a.I.get()),f,"SLOT_TYPE_PLAYER_BYTES",1,"surface",void 0,[],[],b,"LAYOUT_TYPE_MEDIA","surface"),adLayoutLoggingData:e};aZ(a.u(),a.j,a.i);d&&(bZ(a.u(),a.j,a.i),a.B=!0,cZ(a.u(),a.j,a.i))};
O0=function(a){this.xp=a};
sQa=function(a,b){if(!a)return{Ql:[],du:!0};a.trackingParams&&lwa(qJ(),a.trackingParams);if(a.adThrottled)return{Ql:[],du:!0};a=a.playerAds;if(!a||!a.length)return{Ql:[],du:!1};a=a.map(function(d){return d.adPlacementRenderer}).filter(function(d){return!(!d||!d.renderer)});
if(!a.length)return{Ql:[],du:!1};if(0<b.end){var c=b.end.toString();a.forEach(function(d){(d=d.config&&d.config.adPlacementConfig)&&"AD_PLACEMENT_KIND_MILLISECONDS"===d.kind&&d.adTimeOffset&&"-1"===d.adTimeOffset.offsetEndMilliseconds&&d.adTimeOffset.offsetEndMilliseconds!==c&&(d.adTimeOffset.offsetEndMilliseconds=c)})}return{Ql:a,
du:!1}};
P0=function(a){g.G.call(this);this.G=a;this.listeners=[];this.i=new qx(this);g.J(this,this.i);this.i.S(this.G,"aduxclicked",this.onAdUxClicked);this.i.S(this.G,"aduxmouseover",this.aG);this.i.S(this.G,"aduxmouseout",this.ZF);this.i.S(this.G,"muteadaccepted",this.YU)};
tQa=function(a,b,c){b=g.po(b,function(d){return new Ry(d,c,d.id)});
a.G.Oa("onAdUxUpdate",b)};
Q0=function(a,b){a=g.q(a.listeners);for(var c=a.next();!c.done;c=a.next())b(c.value)};
R0=function(a,b,c,d){g.G.call(this);this.G=a;this.C=b;this.Ka=c;this.Ra=d;this.listeners=[];this.u=new Set;this.RB=[];this.B=new EI(this,xPa(c.get()));this.j=new FI;this.i=null;PZ(c.get())||uQa(this)};
uQa=function(a){var b=a.G.getVideoData(1),c;if((null==(c=a.i)?void 0:c.clientPlaybackNonce)!==b.clientPlaybackNonce){null!=a.i&&a.i.unsubscribe("cuepointupdated",a.KA,a);b.subscribe("cuepointupdated",a.KA,a);a.i=b;a.u.clear();a.RB.length=0;var d;b=(null==(d=b.i)?void 0:lra(d,0))||[];a.KA(b)}};
vQa=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");}};
S0=function(a){this.G=a};
T0=function(a){this.G=a};
U0=function(){this.listeners=[]};
wQa=function(a){this.G=a};
V0=function(a,b,c,d,e,f,k,l,m,n){this.callback=a;this.slot=b;this.layout=c;this.u=d;this.J=e;this.C=f;this.Fa=k;this.i=l;this.Ra=m;this.N=n;this.driftRecoveryMs=X(this.layout.Ea,"metadata_type_drift_recovery_ms")||null};
xQa=function(a){var b=X(a.layout.Ea,"metadata_type_layout_enter_ms"),c=X(a.layout.Ea,"metadata_type_layout_exit_ms");a=a.C.get();b=GI(a.j,b,c);return Math.min(c,null!==b?b:Infinity)};
W0=function(a,b){var c;A_(a.Ra.get(),{driftRecoveryInfo:Object.assign({},{contentCpn:null==(c=a.u.get().Qp)?void 0:c.clientPlaybackNonce,adClientData:a.layout.Bc.adClientDataEntry},b)})};
X0=function(a,b,c,d,e,f,k,l,m,n,p){V0.call(this,a,b,c,d,e,f,k,l,m,n);this.I=p;this.B=this.j=null;a=g.q(this.I);for(b=a.next();!b.done;b=a.next())b=b.value,uy(b.Eb().Ea,"metadata_type_survey_overlay")&&(this.B=b.Eb().layoutId)};
zQa=function(a,b){var c=yQa(a,b);a.j={ji:c};c?c.startRendering(c.Eb()):b===a.B&&T("Failed to find rendering adapter for survey media layout",a.slot,a.layout,{surveyMediaLayoutId:b})};
yQa=function(a,b){return null==b?null:a.I.find(function(c){return c.Eb().layoutId===b})||null};
AQa=function(a,b,c,d,e,f,k,l,m,n){var p=e-d,r=uy(b.Ea,"metadata_type_survey_overlay");if(!p)return k.zw(c,2,f,d,e,a.slotId),n.Ii("ads_iraot","d."+p+";sid."+a.slotId+";vl."+f+";enterMs."+d+";exitMs."+e+";hso."+r),null;c=k.hs(c,2,f,d,e,a.slotId);n.Ii("ads_atct","d."+p+";sid."+a.slotId+";vl."+f+";enterMs."+d+";exitMs."+e+";hso."+r);if(!c)return T("Unexpected failure to add to playback timeline",a,b,m()),null;a=a.slotId;b=b.layoutId;c?(l.i.has(c)&&T("Unexpected remap of timeline playback"),l.i.set(c,
{slotId:a,layoutId:b})):T("Invalid timeline playback ID");d+f>e&&k.pu(c,e-d);return c};
BQa=function(a,b){var c=X(b.Ea,"metadata_type_sodar_extension_data");if(c)try{LPa(0,c)}catch(d){T("Unexpected error when loading Sodar",a,b,{error:d})}};
CQa=function(a,b,c,d,e,f){c=new g.TG(c,new g.QI);Y0(a,b,c,d,e,!1,f)};
Y0=function(a,b,c,d,e,f,k){f=void 0===f?!0:f;m0(c)&&n0(e,0,null)&&(!Y_(a,"impression")&&k&&k(),W_(a,"impression"));Y_(a,"impression")&&(g.VG(c,4)&&!g.VG(c,2)&&a.kf("pause"),0>UG(c,4)&&!(0>UG(c,2))&&a.kf("resume"),g.VG(c,16)&&.5<=e&&a.kf("seek"),f&&g.VG(c,2)&&Z0(a,c.state,b,d,e))};
Z0=function(a,b,c,d,e,f){if(Y_(a,"impression")){var k=1>=Math.abs(d-e);$0(a,b,k?d:e,c,d,f);k&&W_(a,"complete")}};
$0=function(a,b,c,d,e,f){X_(a,1E3*c);0>=e||0>=c||(null==b?0:g.V(b,16))||(null==b?0:g.V(b,32))||(n0(c,.25*e,d)&&(f&&!Y_(a,"first_quartile")&&f("first"),W_(a,"first_quartile")),n0(c,.5*e,d)&&(f&&!Y_(a,"midpoint")&&f("second"),W_(a,"midpoint")),n0(c,.75*e,d)&&(f&&!Y_(a,"third_quartile")&&f("third"),W_(a,"third_quartile")))};
DQa=function(a,b){Y_(a,"impression")&&a.kf(b?"fullscreen":"end_fullscreen")};
EQa=function(a){Y_(a,"impression")&&a.kf("clickthrough")};
FQa=function(a){a.kf("active_view_measurable")};
GQa=function(a){Y_(a,"impression")&&!Y_(a,"seek")&&a.kf("active_view_fully_viewable_audible_half_duration")};
HQa=function(a){Y_(a,"impression")&&!Y_(a,"seek")&&a.kf("active_view_viewable")};
IQa=function(a){Y_(a,"impression")&&!Y_(a,"seek")&&a.kf("audio_audible")};
JQa=function(a){Y_(a,"impression")&&!Y_(a,"seek")&&a.kf("audio_measurable")};
KQa=function(a,b,c,d,e,f,k,l,m,n,p,r){this.callback=a;this.slot=b;this.layout=c;this.C=d;this.i=e;this.Fa=f;this.J=k;this.u=l;this.I=m;this.Ka=n;this.Ra=p;this.B=r;this.kA=!0;this.Dc=this.j=null};
LQa=function(a,b,c){var d;a.Ra.get().Ii("ads_qua","cpn."+X(a.layout.Ea,"metadata_type_content_cpn")+";acpn."+(null==(d=ty(a.B.get(),2))?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)};
MQa=function(a,b){var c;a.Ra.get().Ii("ads_imp","cpn."+X(a.layout.Ea,"metadata_type_content_cpn")+";acpn."+(null==(c=ty(a.B.get(),2))?void 0:c.clientPlaybackNonce)+";clr."+b)};
a1=function(a){return{enterMs:X(a.Ea,"metadata_type_layout_enter_ms"),exitMs:X(a.Ea,"metadata_type_layout_exit_ms")}};
b1=function(a,b,c,d,e,f,k,l,m,n,p,r,t,w){V0.call(this,a,b,c,d,e,k,l,m,n,r);this.W=f;this.I=p;this.B=t;this.Ka=w;this.Dc=this.j=null};
NQa=function(a,b){var c;a.Ra.get().Ii("ads_imp","acpn."+(null==(c=ty(a.u.get(),2))?void 0:c.clientPlaybackNonce)+";clr."+b)};
OQa=function(a,b,c){var d;a.Ra.get().Ii("ads_qua","cpn."+X(a.layout.Ea,"metadata_type_content_cpn")+";acpn."+(null==(d=ty(a.u.get(),2))?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)};
c1=function(a,b,c,d,e,f,k,l,m,n,p,r,t,w,x,y,z,F,I){this.ze=a;this.va=b;this.i=c;this.u=d;this.Fa=e;this.Ra=f;this.J=k;this.C=l;this.j=m;this.B=n;this.Qd=p;this.Y=r;this.rd=t;this.Pc=w;this.N=x;this.W=y;this.ea=z;this.Ka=F;this.I=I};
d1=function(a){g.G.call(this);this.i=a;this.Ib=new Map};
e1=function(a,b){for(var c=[],d=g.q(a.Ib.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger.i===b.layoutId&&c.push(e);c.length&&dZ(a.i(),c)};
f1=function(a,b){g.G.call(this);var c=this;this.B=a;this.j=new Map;this.u=new Map;this.i=null;b.get().addListener(this);g.Ue(this,function(){b.get().removeListener(c)});
var d;this.i=(null==(d=b.get().Qp)?void 0:d.slotId)||null};
PQa=function(a,b){var c=[];a=g.q(a.values());for(var d=a.next();!d.done;d=a.next())d=d.value,d.slot.slotId===b&&c.push(d);return c};
g1=function(a){this.G=a};
QQa=function(a,b,c,d,e){iG.call(this,"image-companion",a,b,c,d,e)};
h1=function(a,b,c,d,e,f,k,l){$_.call(this,a,b,c,d);this.Ra=e;this.ze=f;this.I=l;this.Di=!0;this.u=null;this.B=X(c.Ea,"metadata_type_linked_player_bytes_layout_id");QY(this.ze(),this);a=X(c.Ea,"metadata_type_ad_placement_config");this.C=new T_(c.uc,this.Ra,a,c.layoutId)};
RQa=function(){var a=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];U_().forEach(function(b){a.push(b)});
return{Pd:a,Te:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
SQa=function(a,b,c,d,e){iG.call(this,"shopping-companion",a,b,c,d,e)};
i1=function(a,b,c,d,e,f,k,l){$_.call(this,a,b,c,d);this.Ra=e;this.ze=f;this.I=l;this.Di=!0;this.u=null;this.B=X(c.Ea,"metadata_type_linked_player_bytes_layout_id");QY(this.ze(),this);a=X(c.Ea,"metadata_type_ad_placement_config");this.C=new T_(c.uc,this.Ra,a,c.layoutId)};
TQa=function(){var a=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];U_().forEach(function(b){a.push(b)});
return{Pd:a,Te:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}};
UQa=function(a,b,c,d,e){iG.call(this,"ads-engagement-panel",a,b,c,d,e)};
j1=function(a,b,c,d,e,f,k,l){$_.call(this,a,b,c,d);this.Ra=e;this.ze=f;this.I=l;this.Di=!0;this.u=null;this.B=X(c.Ea,"metadata_type_linked_player_bytes_layout_id");QY(this.ze(),this);a=X(c.Ea,"metadata_type_ad_placement_config");this.C=new T_(c.uc,this.Ra,a,c.layoutId)};
VQa=function(){var a=["metadata_type_ads_engagement_panel_renderer","metadata_type_linked_player_bytes_layout_id"];U_().forEach(function(b){a.push(b)});
return{Pd:a,Te:["LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON"]}};
WQa=function(a,b,c,d,e){this.i=a;this.Ra=b;this.ze=c;this.j=d;this.u=e};
k1=function(a,b,c){iG.call(this,"player-underlay",a,{},b,c);this.i=c};
l1=function(a,b,c,d){$_.call(this,a,b,c,d)};
XQa=function(a){this.i=a};
YQa=function(a,b,c,d,e,f){this.callback=a;this.slot=b;this.layout=c;this.Fa=d;this.Ra=e;this.Ka=f;a=X(c.Ea,"metadata_type_ad_placement_config");this.i=new T_(c.uc,this.Ra,a,c.layoutId)};
ZQa=function(a,b,c){this.Fa=a;this.Ra=b;this.Ka=c};
m1=function(a,b,c,d,e){$_.call(this,c,a,b,d);this.Ra=e;a=X(b.Ea,"metadata_type_ad_placement_config");this.u=new T_(b.uc,e,a,b.layoutId)};
n1=function(a){return Math.round(a.width)+"x"+Math.round(a.height)};
p1=function(a,b,c){c=void 0===c?o1:c;c.width<o1.width&&(c=o1);if(a.width<c.width||a.height<c.height)return{dC:3,jy:501,errorMessage:"ad("+n1(c)+") larger than container("+n1(a)+")."};if(c.width*c.height>a.width*a.height*.2)return{dC:3,jy:501,errorMessage:"ad("+n1(c)+") to container("+n1(a)+") ratio exceeds limit."};if(c.height>a.height/3-b)return{dC:3,jy:501,errorMessage:"ad("+n1(c)+") covers container("+n1(a)+") center."}};
$Qa=function(a,b){var c=X(a.Ea,"metadata_type_ad_placement_config");return new T_(a.uc,b,c,a.layoutId)};
q1=function(a){return X(a.Ea,"metadata_type_invideo_overlay_ad_renderer")};
r1=function(a,b,c,d){iG.call(this,"invideo-overlay",a,b,c,d);this.i=d};
s1=function(a,b,c,d,e,f,k,l,m,n,p,r){$_.call(this,f,a,b,e);this.Ra=c;this.u=k;this.Fa=l;this.J=m;this.Ka=n;this.C=p;this.B=r;this.N=$Qa(b,c)};
aRa=function(){var a=["metadata_type_invideo_overlay_ad_renderer"];U_().forEach(function(b){a.push(b)});
return{Pd:a,Te:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}};
t1=function(a,b,c,d,e,f,k,l,m,n,p,r,t){$_.call(this,f,a,b,e);this.Ra=c;this.u=k;this.J=l;this.Fa=m;this.N=n;this.Ka=p;this.C=r;this.B=t;this.W=$Qa(b,c)};
bRa=function(){for(var a=["metadata_type_invideo_overlay_ad_renderer"],b=g.q(U_()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Pd:a,Te:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}};
u1=function(a){this.Fa=a;this.i=!1};
v1=function(a,b,c,d,e,f,k){$_.call(this,c,a,b,d);this.u=e;this.Fa=f;this.Ka=k};
cRa=function(a,b,c,d,e,f,k,l,m,n){this.i=a;this.Fa=b;this.Ra=c;this.J=d;this.C=e;this.u=f;this.I=k;this.B=l;this.Ka=m;this.j=n};
w1=function(a){g.G.call(this);this.u=a;this.Di=!0;this.Ib=new Map;this.i=new Map;this.j=new Map};
dRa=function(a,b){var c=[];if(b=a.i.get(b.layoutId)){b=g.q(b);for(var d=b.next();!d.done;d=b.next())(d=a.j.get(d.value.triggerId))&&c.push(d)}return c};
eRa=function(a,b,c,d,e){g.G.call(this);var f=this;this.J=Y(function(){return new zy});
g.J(this,this.J);this.va=Y(function(){return new XZ(f.J)});
g.J(this,this.va);this.C=Y(function(){return new UZ});
g.J(this,this.C);this.W=Y(function(){return new QZ(a)});
g.J(this,this.W);this.Y=Y(function(){return new i_(f.J)});
g.J(this,this.Y);this.Qb=Y(function(){return new m_});
g.J(this,this.Qb);this.pc=Y(function(){return new jG(b.T())});
g.J(this,this.pc);this.ea=Y(function(){return new P0(b)});
g.J(this,this.ea);this.Ha=Y(function(){return new rZ(e)});
g.J(this,this.Ha);this.rd=Y(function(){return new KI(b)});
g.J(this,this.rd);this.La=Y(function(){return new o_(b)});
g.J(this,this.La);this.Qd=Y(function(){return new S0(b)});
g.J(this,this.Qd);this.Pc=Y(function(){return new p_(b)});
g.J(this,this.Pc);this.Ka=Y(function(){return new q_(b)});
g.J(this,this.Ka);this.Sb=Y(function(){return new O0(d)});
g.J(this,this.Sb);this.I=Y(function(){return new FY(f.Ka)});
g.J(this,this.I);this.Wa=Y(function(){return new MZ(f.Y,f.va,f.Ka,f.I,"SLOT_TYPE_ABOVE_FEED",f.kb)});
g.J(this,this.Wa);this.Mc=Y(function(){return new T0(b)});
g.J(this,this.Mc);this.xb=Y(function(){return new U0});
g.J(this,this.xb);this.wb=Y(function(){return new I_});
g.J(this,this.wb);this.i=Y(function(){return new D_(b,f.Qb,f.Ka)});
g.J(this,this.i);this.Ub=new l_(this.Ka,this.I,this.i);g.J(this,this.Ub);this.Ia=Y(function(){return new R0(b,f.i,f.Ka,f.Ra)});
g.J(this,this.Ia);this.Ta=Y(function(){return new g1(b)});
g.J(this,this.Ta);this.Fa=Y(function(){return new E_(b,f.i)});
g.J(this,this.Fa);this.Pe=Y(function(){return new J_});
this.xa=Y(function(){return new t_(f.Fa,b)});
g.J(this,this.xa);this.Ra=Y(function(){return new y_(b,f.C,f.xa,f.i)});
g.J(this,this.Ra);this.qd=new z0(A0,x1,function(l,m,n,p){return YZ(f.va.get(),l,m,n,p)},this.W,this.Y,this.va,this.I,this.Ka,this.i);
g.J(this,this.qd);this.Cc=new yy(this.W,this.Wa,c,this.Ka,a,this.i,this.Fa);g.J(this,this.Cc);var k=new n_(b,this.Cc,this.Fa,this.i,this.Ia);this.fb=Y(function(){return k});
this.Jo=k;this.kb=new y0(this.W,this.Y,this.i,this.fb,this.Ia,this.Fa,this.Ka,this.Ta);g.J(this,this.kb);this.Hb=new TZ(this.W,this.Y,this.La,this.fb);g.J(this,this.Hb);this.Ec=new ry(this.W,this.Y,this.Wa,this.i,this.Hb,c);g.J(this,this.Ec);this.lc=Y(function(){return new P_(f.Sb,f.va,f.I,f.Ta)});
g.J(this,this.lc);this.u=Y(function(){return new Q_});
g.J(this,this.u);this.ya=new F0(a,this.ea);g.J(this,this.ya);this.j=new G0(a);g.J(this,this.j);this.Ya=new d1(a);g.J(this,this.Ya);this.jb=new H0(a,this.fb);g.J(this,this.jb);this.Qa=new I0(a,this.La,this.Fa,this.i);g.J(this,this.Qa);this.Ab=new f1(a,this.i);g.J(this,this.Ab);this.N=new K0(a);g.J(this,this.N);this.cd=new L0(a);g.J(this,this.cd);this.Jb=new w1(a);g.J(this,this.Jb);this.B=Y(function(){return new B0});
g.J(this,this.B);this.Ed=Y(function(){return new C0(f.Fa)});
g.J(this,this.Ed);this.Md=Y(function(){return new WQa(f.ea,f.Ra,a,f.C,f.xa)});
g.J(this,this.Md);this.hc=Y(function(){return new S_(f.Ec)});
g.J(this,this.hc);this.qc=Y(function(){return new Z_(f.Ra,f.N)});
g.J(this,this.qc);this.fd=Y(function(){return new c1(a,f.N,f.i,f.Ta,f.Fa,f.Ra,f.Qb,f.Ia,f.xa,f.Pe,f.Qd,f.La,f.rd,f.Pc,f.pc,f.Ha,f.Mc,f.Ka,f.C)});
g.J(this,this.fd);this.me=Y(function(){return new ZQa(f.Fa,f.Ra,f.Ka)});
g.J(this,this.me);this.wc=Y(function(){return new cRa(f.ea,f.Fa,f.Ra,f.C,f.xa,f.Ya,f.Jb,f.Ha,f.Ka,c)});
g.J(this,this.wc);this.oe=Y(function(){return new XQa(f.ea)});
g.J(this,this.oe);this.ye=new M0(a,this.wb,this.J);g.J(this,this.ye);this.Ie=new N0(a,this.xb,this.I,this.i,this.J,this.Ka);g.J(this,this.Ie);this.Ud={Eq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Ec],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.kb],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.qd],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Cc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Hb]]),gm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.lc],["SLOT_TYPE_ABOVE_FEED",this.u],["SLOT_TYPE_FORECASTING",this.u],["SLOT_TYPE_IN_PLAYER",this.u],["SLOT_TYPE_PLAYER_BYTES",this.u],["SLOT_TYPE_PLAYER_UNDERLAY",this.u],["SLOT_TYPE_PLAYBACK_TRACKING",this.u]]),Wh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.ya],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.ya],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.j],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.j],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.j],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.j],["TRIGGER_TYPE_SLOT_ID_ENTERED",
this.j],["TRIGGER_TYPE_SLOT_ID_EXITED",this.j],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.j],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.j],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.j],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.j],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Ya],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.jb],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Qa],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Qa],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Qa],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",
this.Ab],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Ab],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.N],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.N],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.jb],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.cd],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.Jb]]),Sm:new Map([["SLOT_TYPE_ABOVE_FEED",this.B],["SLOT_TYPE_AD_BREAK_REQUEST",this.B],["SLOT_TYPE_FORECASTING",this.B],["SLOT_TYPE_IN_PLAYER",this.B],["SLOT_TYPE_PLAYER_BYTES",
this.Ed],["SLOT_TYPE_PLAYER_UNDERLAY",this.B],["SLOT_TYPE_PLAYBACK_TRACKING",this.B]]),Cm:new Map([["SLOT_TYPE_ABOVE_FEED",this.Md],["SLOT_TYPE_AD_BREAK_REQUEST",this.hc],["SLOT_TYPE_FORECASTING",this.qc],["SLOT_TYPE_PLAYER_BYTES",this.fd],["SLOT_TYPE_PLAYBACK_TRACKING",this.me],["SLOT_TYPE_IN_PLAYER",this.wc],["SLOT_TYPE_PLAYER_UNDERLAY",this.oe]])};this.listeners=[this.C.get()];this.rq={Ec:this.Ec,Hk:this.N,Em:this.xb.get(),Xf:this.Ka.get(),ib:this.Ha.get(),Po:this.Fa.get(),Cc:this.Cc,Gj:this.J.get(),
Dm:this.wb.get(),Ki:this.ya,jh:this.C.get()}};
fRa=function(a,b,c,d,e,f,k,l,m,n){this.j=a;this.Fa=b;this.Ra=c;this.J=d;this.C=e;this.u=f;this.I=k;this.B=l;this.Ka=m;this.i=n};
gRa=function(a,b,c,d,e){g.G.call(this);var f=this;this.B=Y(function(){return new zy});
g.J(this,this.B);this.J=Y(function(){return new XZ(f.B)});
g.J(this,this.J);this.N=Y(function(){return new UZ});
g.J(this,this.N);this.C=Y(function(){return new QZ(a)});
g.J(this,this.C);this.I=Y(function(){return new i_(f.B)});
g.J(this,this.I);this.qd=Y(function(){return new m_});
g.J(this,this.qd);this.Qb=Y(function(){return new jG(b.T())});
g.J(this,this.Qb);this.La=Y(function(){return new P0(b)});
g.J(this,this.La);this.Y=Y(function(){return new rZ(e)});
g.J(this,this.Y);this.rd=Y(function(){return new KI(b)});
g.J(this,this.rd);this.ea=Y(function(){return new o_(b)});
g.J(this,this.ea);this.Qd=Y(function(){return new S0(b)});
g.J(this,this.Qd);this.Pc=Y(function(){return new p_(b)});
g.J(this,this.Pc);this.Ka=Y(function(){return new q_(b)});
g.J(this,this.Ka);this.Ab=Y(function(){return new O0(d)});
g.J(this,this.Ab);this.u=Y(function(){return new FY(f.Ka)});
g.J(this,this.u);this.Ia=Y(function(){return new MZ(f.I,f.J,f.Ka,f.u,null,f.fb)});
g.J(this,this.Ia);this.pc=Y(function(){return new T0(b)});
g.J(this,this.pc);this.kb=Y(function(){return new U0});
g.J(this,this.kb);this.jb=Y(function(){return new I_});
g.J(this,this.jb);this.i=Y(function(){return new D_(b,f.qd,f.Ka)});
g.J(this,this.i);this.Ub=new l_(this.Ka,this.u,this.i);g.J(this,this.Ub);this.Sb=Y(function(){return new R0(b,f.i,f.Ka,f.Ra)});
this.Fa=Y(function(){return new E_(b,f.i)});
g.J(this,this.Fa);this.Ha=Y(function(){return new t_(f.Fa,b)});
g.J(this,this.Ha);this.Ra=Y(function(){return new y_(b,f.N,f.Ha,f.i)});
g.J(this,this.Ra);this.fd=Y(function(){return new J_});
g.J(this,this.fd);this.Mc=new z0(A0,x1,function(l,m,n,p){return YZ(f.J.get(),l,m,n,p)},this.C,this.I,this.J,this.u,this.Ka,this.i);
g.J(this,this.Mc);this.Cc=new yy(this.C,this.Ia,c,this.Ka,a,this.i,this.Fa);g.J(this,this.Cc);var k=new n_(b,this.Cc,this.Fa,this.i,this.Sb);this.Wa=Y(function(){return k});
this.Jo=k;this.fb=new y0(this.C,this.I,this.i,this.Wa,this.Sb,this.Fa,this.Ka);g.J(this,this.fb);this.wb=new TZ(this.C,this.I,this.ea,this.Wa);g.J(this,this.wb);this.Ec=new ry(this.C,this.I,this.Ia,this.i,this.wb,c);g.J(this,this.Ec);this.Jb=Y(function(){return new P_(f.Ab,f.J,f.u)});
g.J(this,this.Jb);this.xa=Y(function(){return new Q_});
g.J(this,this.xa);this.Qa=new F0(a,this.La);g.J(this,this.Qa);this.j=new G0(a);g.J(this,this.j);this.Ta=new d1(a);g.J(this,this.Ta);this.Ya=new H0(a,this.Wa);g.J(this,this.Ya);this.va=new I0(a,this.ea,this.Fa,this.i);g.J(this,this.va);this.W=new K0(a);g.J(this,this.W);this.qc=new L0(a);g.J(this,this.qc);this.xb=new w1(a);g.J(this,this.xb);this.ya=Y(function(){return new B0});
g.J(this,this.ya);this.cd=Y(function(){return new C0(f.Fa)});
g.J(this,this.cd);this.Hb=Y(function(){return new S_(f.Ec)});
g.J(this,this.Hb);this.hc=Y(function(){return new Z_(f.Ra,f.W)});
g.J(this,this.hc);this.lc=Y(function(){return new fRa(f.La,f.Fa,f.Ra,f.N,f.Ha,f.Ta,f.xb,f.Y,f.Ka,c)});
g.J(this,this.lc);this.wc=Y(function(){return new x0(a,f.W,f.Ra,f.Ha,f.fd,f.Qd,f.i,f.Fa,f.ea,f.rd,f.Pc,f.Qb,f.Y,f.pc,f.Ka)});
g.J(this,this.wc);this.Ed=new M0(a,this.jb,this.B);g.J(this,this.Ed);this.Md=new N0(a,this.kb,this.u,this.i,this.B,this.Ka);g.J(this,this.Md);this.Ud={Eq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Ec],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.fb],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Mc],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Cc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.wb]]),gm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.Jb],["SLOT_TYPE_FORECASTING",this.xa],["SLOT_TYPE_IN_PLAYER",this.xa],["SLOT_TYPE_PLAYER_BYTES",this.xa]]),Wh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Qa],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.j],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.j],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.j],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.j],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.j],["TRIGGER_TYPE_SLOT_ID_EXITED",this.j],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.j],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",
this.j],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.j],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.j],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Ta],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Ya],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.va],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.va],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.va],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.W],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.W],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",
this.Ya],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.qc],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.xb]]),Sm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ya],["SLOT_TYPE_FORECASTING",this.ya],["SLOT_TYPE_IN_PLAYER",this.ya],["SLOT_TYPE_PLAYER_BYTES",this.cd]]),Cm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Hb],["SLOT_TYPE_FORECASTING",this.hc],["SLOT_TYPE_IN_PLAYER",this.lc],["SLOT_TYPE_PLAYER_BYTES",this.wc]])};this.listeners=[this.N.get()];this.rq={Ec:this.Ec,Hk:null,Em:this.kb.get(),
Xf:this.Ka.get(),ib:this.Y.get(),Po:this.Fa.get(),Cc:this.Cc,Gj:this.B.get(),Dm:this.jb.get(),Ki:this.Qa,jh:this.N.get()}};
hRa=function(a,b,c,d,e){g.G.call(this);var f=this;this.C=Y(function(){return new zy});
g.J(this,this.C);this.I=Y(function(){return new XZ(f.C)});
g.J(this,this.I);this.J=Y(function(){return new UZ});
g.J(this,this.J);this.W=Y(function(){return new QZ(a)});
g.J(this,this.W);this.Y=Y(function(){return new i_(f.C)});
g.J(this,this.Y);this.pc=Y(function(){return new m_});
g.J(this,this.pc);this.wb=Y(function(){return new jG(b.T())});
g.J(this,this.wb);this.ya=Y(function(){return new P0(b)});
g.J(this,this.ya);this.Ia=Y(function(){return new rZ(e)});
g.J(this,this.Ia);this.rd=Y(function(){return new KI(b)});
g.J(this,this.rd);this.ea=Y(function(){return new o_(b)});
g.J(this,this.ea);this.Qd=Y(function(){return new S0(b)});
g.J(this,this.Qd);this.Pc=Y(function(){return new p_(b)});
g.J(this,this.Pc);this.Ka=Y(function(){return new q_(b)});
g.J(this,this.Ka);this.fb=Y(function(){return new O0(d)});
g.J(this,this.fb);this.u=Y(function(){return new FY(f.Ka)});
g.J(this,this.u);this.xa=Y(function(){return new MZ(f.Y,f.I,f.Ka,f.u,null,null)});
g.J(this,this.xa);this.Hb=Y(function(){return new T0(b)});
g.J(this,this.Hb);this.Ta=Y(function(){return new U0});
g.J(this,this.Ta);this.i=Y(function(){return new D_(b,f.pc,f.Ka)});
g.J(this,this.i);this.Ub=new l_(this.Ka,this.u,this.i);g.J(this,this.Ub);this.Fa=Y(function(){return new E_(b,f.i)});
g.J(this,this.Fa);this.Wa=Y(function(){return new t_(f.Fa,b)});
g.J(this,this.Wa);this.Ra=Y(function(){return new y_(b,f.J,f.Wa,f.i)});
g.J(this,this.Ra);this.lc=Y(function(){return new J_});
g.J(this,this.lc);this.Sb=new z0(A0,x1,function(l,m,n,p){return YZ(f.I.get(),l,m,n,p)},this.W,this.Y,this.I,this.u,this.Ka,this.i);
g.J(this,this.Sb);this.Cc=new yy(this.W,this.xa,c,this.Ka,a,this.i,this.Fa);g.J(this,this.Cc);var k=new n_(b,this.Cc,this.Fa,this.i);this.xb=Y(function(){return k});
this.Jo=k;this.Ya=new TZ(this.W,this.Y,this.ea,this.xb);g.J(this,this.Ya);this.Ec=new ry(this.W,this.Y,this.xa,this.i,this.Ya,c);g.J(this,this.Ec);this.kb=Y(function(){return new P_(f.fb,f.I,f.u)});
g.J(this,this.kb);this.va=Y(function(){return new Q_});
g.J(this,this.va);this.Ha=new F0(a,this.ya);g.J(this,this.Ha);this.j=new G0(a);g.J(this,this.j);this.La=new H0(a,this.xb);g.J(this,this.La);this.Qa=new I0(a,this.ea,this.Fa,this.i);g.J(this,this.Qa);this.N=new K0(a);g.J(this,this.N);this.Jb=new L0(a);g.J(this,this.Jb);this.B=Y(function(){return new B0});
g.J(this,this.B);this.hc=Y(function(){return new C0(f.Fa)});
g.J(this,this.hc);this.jb=Y(function(){return new S_(f.Ec)});
g.J(this,this.jb);this.Ab=Y(function(){return new Z_(f.Ra,f.N)});
g.J(this,this.Ab);this.qc=Y(function(){return new g0(f.ya,f.Fa,f.Ra,f.J,c)});
g.J(this,this.qc);this.Qb=Y(function(){return new x0(a,f.N,f.Ra,f.Wa,f.lc,f.Qd,f.i,f.Fa,f.ea,f.rd,f.Pc,f.wb,f.Ia,f.Hb,f.Ka)});
g.J(this,this.Qb);this.wc=new N0(a,this.Ta,this.u,this.i,this.C,this.Ka);g.J(this,this.wc);this.Ud={Eq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Ec],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Sb],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Cc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ya]]),gm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.kb],["SLOT_TYPE_FORECASTING",this.va],["SLOT_TYPE_IN_PLAYER",this.va],["SLOT_TYPE_PLAYER_BYTES",
this.va]]),Wh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ha],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.j],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.j],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.j],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.j],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.j],["TRIGGER_TYPE_SLOT_ID_EXITED",this.j],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.j],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.j],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.j],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.La],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Qa],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Qa],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.N],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.N],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.La],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Jb]]),Sm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.B],["SLOT_TYPE_ABOVE_FEED",this.B],["SLOT_TYPE_FORECASTING",this.B],["SLOT_TYPE_IN_PLAYER",this.B],["SLOT_TYPE_PLAYER_BYTES",this.hc]]),
Cm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.jb],["SLOT_TYPE_FORECASTING",this.Ab],["SLOT_TYPE_IN_PLAYER",this.qc],["SLOT_TYPE_PLAYER_BYTES",this.Qb]])};this.listeners=[this.J.get()];this.rq={Ec:this.Ec,Hk:null,Em:this.Ta.get(),Xf:this.Ka.get(),ib:this.Ia.get(),Po:this.Fa.get(),Cc:this.Cc,Gj:this.C.get(),Dm:null,Ki:this.Ha,jh:this.J.get()}};
iRa=function(a,b,c,d,e){g.G.call(this);var f=this;this.B=Y(function(){return new zy});
g.J(this,this.B);this.C=Y(function(){return new XZ(f.B)});
g.J(this,this.C);this.I=Y(function(){return new UZ});
g.J(this,this.I);this.N=Y(function(){return new QZ(a)});
g.J(this,this.N);this.W=Y(function(){return new i_(f.B)});
g.J(this,this.W);this.qc=Y(function(){return new m_});
g.J(this,this.qc);this.kb=Y(function(){return new jG(b.T())});
g.J(this,this.kb);this.ya=Y(function(){return new P0(b)});
g.J(this,this.ya);this.Ia=Y(function(){return new rZ(e)});
g.J(this,this.Ia);this.rd=Y(function(){return new KI(b)});
g.J(this,this.rd);this.Y=Y(function(){return new o_(b)});
g.J(this,this.Y);this.Qd=Y(function(){return new S0(b)});
g.J(this,this.Qd);this.Pc=Y(function(){return new p_(b)});
g.J(this,this.Pc);this.Ka=Y(function(){return new q_(b)});
g.J(this,this.Ka);this.Ya=Y(function(){return new O0(d)});
g.J(this,this.Ya);this.u=Y(function(){return new FY(f.Ka)});
g.J(this,this.u);this.xa=Y(function(){return new MZ(f.W,f.C,f.Ka,f.u,null,null)});
g.J(this,this.xa);this.Jb=Y(function(){return new T0(b)});
g.J(this,this.Jb);this.Qa=Y(function(){return new U0});
g.J(this,this.Qa);this.i=Y(function(){return new D_(b,f.qc,f.Ka)});
g.J(this,this.i);this.Ub=new l_(this.Ka,this.u,this.i);g.J(this,this.Ub);this.Fa=Y(function(){return new E_(b,f.i)});
g.J(this,this.Fa);this.Ta=Y(function(){return new t_(f.Fa,b)});
g.J(this,this.Ta);this.Ra=Y(function(){return new y_(b,f.I,f.Ta,f.i)});
g.J(this,this.Ra);this.pc=Y(function(){return new J_});
g.J(this,this.pc);this.hc=new z0(A0,x1,function(l,m,n,p){return YZ(f.C.get(),l,m,n,p)},this.N,this.W,this.C,this.u,this.Ka,this.i);
g.J(this,this.hc);this.Cc=new yy(this.N,this.xa,c,this.Ka,a,this.i,this.Fa);g.J(this,this.Cc);var k=new n_(b,this.Cc,this.Fa,this.i);this.wb=Y(function(){return k});
this.Jo=k;this.Wa=new TZ(this.N,this.W,this.Y,this.wb);g.J(this,this.Wa);this.Ec=new ry(this.N,this.W,this.xa,this.i,this.Wa,c);g.J(this,this.Ec);this.jb=Y(function(){return new P_(f.Ya,f.C,f.u)});
g.J(this,this.jb);this.ea=Y(function(){return new Q_});
g.J(this,this.ea);this.Ha=new F0(a,this.ya);g.J(this,this.Ha);this.j=new G0(a);g.J(this,this.j);this.La=new H0(a,this.wb);g.J(this,this.La);this.xb=new I0(a,this.Y,this.Fa,this.i);g.J(this,this.xb);this.J=new K0(a);g.J(this,this.J);this.Qb=new L0(a);g.J(this,this.Qb);this.va=Y(function(){return new B0});
g.J(this,this.va);this.lc=Y(function(){return new C0(f.Fa)});
g.J(this,this.lc);this.fb=Y(function(){return new S_(f.Ec)});
g.J(this,this.fb);this.Ab=Y(function(){return new Z_(f.Ra,f.J)});
g.J(this,this.Ab);this.Hb=Y(function(){return new g0(f.ya,f.Fa,f.Ra,f.I,c)});
g.J(this,this.Hb);this.Sb=Y(function(){return new x0(a,f.J,f.Ra,f.Ta,f.pc,f.Qd,f.i,f.Fa,f.Y,f.rd,f.Pc,f.kb,f.Ia,f.Jb,f.Ka)});
g.J(this,this.Sb);this.wc=new N0(a,this.Qa,this.u,this.i,this.B,this.Ka);g.J(this,this.wc);this.Ud={Eq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Ec],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.hc],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Cc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Wa]]),gm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.jb],["SLOT_TYPE_FORECASTING",this.ea],["SLOT_TYPE_IN_PLAYER",this.ea],["SLOT_TYPE_PLAYER_BYTES",
this.ea]]),Wh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ha],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.j],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.j],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.j],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.j],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.j],["TRIGGER_TYPE_SLOT_ID_EXITED",this.j],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.j],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.j],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.j],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.La],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.xb],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.J],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.J],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.La],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Qb]]),Sm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.va],["SLOT_TYPE_FORECASTING",this.va],["SLOT_TYPE_IN_PLAYER",this.va],["SLOT_TYPE_PLAYER_BYTES",this.lc]]),Cm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.fb],["SLOT_TYPE_FORECASTING",
this.Ab],["SLOT_TYPE_IN_PLAYER",this.Hb],["SLOT_TYPE_PLAYER_BYTES",this.Sb]])};this.listeners=[this.I.get()];this.rq={Ec:this.Ec,Hk:null,Em:this.Qa.get(),Xf:this.Ka.get(),ib:this.Ia.get(),Po:this.Fa.get(),Cc:this.Cc,Gj:this.B.get(),Dm:null,Ki:this.Ha,jh:this.I.get()}};
y1=function(a,b,c,d,e,f,k,l,m){e0.call(this,a,b,c,d,e,f,k,m);this.J=l};
jRa=function(){var a=XPa();a.Pd.push("metadata_type_ad_info_ad_metadata");return a};
kRa=function(a,b,c,d,e,f){this.u=a;this.Fa=b;this.Ra=c;this.B=d;this.j=e;this.i=f};
lRa=function(a,b,c,d,e){g.G.call(this);var f=this;this.B=Y(function(){return new zy});
g.J(this,this.B);this.C=Y(function(){return new XZ(f.B)});
g.J(this,this.C);this.I=Y(function(){return new UZ});
g.J(this,this.I);this.N=Y(function(){return new QZ(a)});
g.J(this,this.N);this.W=Y(function(){return new i_(f.B)});
g.J(this,this.W);this.qc=Y(function(){return new m_});
g.J(this,this.qc);this.wb=Y(function(){return new wQa(b)});
g.J(this,this.wb);this.xb=Y(function(){return new jG(b.T())});
g.J(this,this.xb);this.ya=Y(function(){return new P0(b)});
g.J(this,this.ya);this.Ia=Y(function(){return new rZ(e)});
g.J(this,this.Ia);this.rd=Y(function(){return new KI(b)});
g.J(this,this.rd);this.Y=Y(function(){return new o_(b)});
g.J(this,this.Y);this.Qd=Y(function(){return new S0(b)});
g.J(this,this.Qd);this.Pc=Y(function(){return new p_(b)});
g.J(this,this.Pc);this.Ka=Y(function(){return new q_(b)});
g.J(this,this.Ka);this.fb=Y(function(){return new O0(d)});
g.J(this,this.fb);this.u=Y(function(){return new FY(f.Ka)});
g.J(this,this.u);this.xa=Y(function(){return new MZ(f.W,f.C,f.Ka,f.u,null,null)});
g.J(this,this.xa);this.Jb=Y(function(){return new T0(b)});
g.J(this,this.Jb);this.Ta=Y(function(){return new U0});
g.J(this,this.Ta);this.i=Y(function(){return new D_(b,f.qc,f.Ka)});
g.J(this,this.i);this.Ub=new l_(this.Ka,this.u,this.i);g.J(this,this.Ub);this.Fa=Y(function(){return new E_(b,f.i)});
g.J(this,this.Fa);this.Wa=Y(function(){return new t_(f.Fa,b)});
g.J(this,this.Wa);this.Ra=Y(function(){return new y_(b,f.I,f.Wa,f.i)});
g.J(this,this.Ra);this.pc=Y(function(){return new J_});
g.J(this,this.pc);this.hc=new z0(jQa,x1,function(l,m,n,p){return lPa(f.C.get(),l,m,n,p)},this.N,this.W,this.C,this.u,this.Ka,this.i);
g.J(this,this.hc);this.Cc=new yy(this.N,this.xa,c,this.Ka,a,this.i,this.Fa);g.J(this,this.Cc);var k=new n_(b,this.Cc,this.Fa,this.i);this.Ab=Y(function(){return k});
this.Jo=k;this.Ya=new TZ(this.N,this.W,this.Y,this.Ab);g.J(this,this.Ya);this.Ec=new ry(this.N,this.W,this.xa,this.i,this.Ya,c);g.J(this,this.Ec);this.kb=Y(function(){return new P_(f.fb,f.C,f.u)});
g.J(this,this.kb);this.ea=Y(function(){return new Q_});
g.J(this,this.ea);this.Ha=new F0(a,this.ya);g.J(this,this.Ha);this.j=new G0(a);g.J(this,this.j);this.La=new H0(a,this.Ab);g.J(this,this.La);this.Qa=new I0(a,this.Y,this.Fa,this.i);g.J(this,this.Qa);this.J=new K0(a);g.J(this,this.J);this.Qb=new L0(a);g.J(this,this.Qb);this.va=Y(function(){return new B0});
g.J(this,this.va);this.lc=Y(function(){return new C0(f.Fa)});
g.J(this,this.lc);this.jb=Y(function(){return new S_(f.Ec)});
g.J(this,this.jb);this.Hb=Y(function(){return new Z_(f.Ra,f.J)});
g.J(this,this.Hb);this.Sb=Y(function(){return new x0(a,f.J,f.Ra,f.Wa,f.pc,f.Qd,f.i,f.Fa,f.Y,f.rd,f.Pc,f.xb,f.Ia,f.Jb,f.Ka)});
g.J(this,this.Sb);this.wc=Y(function(){return new kRa(f.ya,f.Fa,f.Ra,f.I,f.wb,c)});
g.J(this,this.wc);this.Mc=new N0(a,this.Ta,this.u,this.i,this.B,this.Ka);g.J(this,this.Mc);this.Ud={Eq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Ec],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.hc],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Cc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ya]]),gm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.kb],["SLOT_TYPE_FORECASTING",this.ea],["SLOT_TYPE_IN_PLAYER",this.ea],["SLOT_TYPE_PLAYER_BYTES",
this.ea]]),Wh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ha],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.j],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.j],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.j],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.j],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.j],["TRIGGER_TYPE_SLOT_ID_EXITED",this.j],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.j],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.j],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.j],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.La],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Qa],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Qa],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.J],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.J],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.La],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Qb]]),Sm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.va],["SLOT_TYPE_FORECASTING",this.va],["SLOT_TYPE_IN_PLAYER",this.va],["SLOT_TYPE_PLAYER_BYTES",this.lc]]),Cm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.jb],["SLOT_TYPE_FORECASTING",this.Hb],["SLOT_TYPE_IN_PLAYER",this.wc],["SLOT_TYPE_PLAYER_BYTES",this.Sb]])};this.listeners=[this.I.get()];this.rq={Ec:this.Ec,Hk:null,Em:this.Ta.get(),Xf:this.Ka.get(),ib:this.Ia.get(),Po:this.Fa.get(),Cc:this.Cc,Gj:this.B.get(),Dm:null,Ki:this.Ha,jh:this.I.get()}};
mRa=function(a,b,c,d,e,f){this.j=a;this.Fa=b;this.Ra=c;this.u=d;this.B=e;this.i=f};
nRa=function(a,b,c,d,e){g.G.call(this);var f=this;this.J=Y(function(){return new zy});
g.J(this,this.J);this.N=Y(function(){return new XZ(f.J)});
g.J(this,this.N);this.B=Y(function(){return new UZ});
g.J(this,this.B);this.C=Y(function(){return new QZ(a)});
g.J(this,this.C);this.I=Y(function(){return new i_(f.J)});
g.J(this,this.I);this.Ab=Y(function(){return new m_});
g.J(this,this.Ab);this.Sb=Y(function(){return new wQa(b)});
g.J(this,this.Sb);this.hc=Y(function(){return new jG(b.T())});
g.J(this,this.hc);this.Ia=Y(function(){return new P0(b)});
g.J(this,this.Ia);this.Qa=Y(function(){return new rZ(e)});
g.J(this,this.Qa);this.rd=Y(function(){return new KI(b)});
g.J(this,this.rd);this.ea=Y(function(){return new o_(b)});
g.J(this,this.ea);this.Qd=Y(function(){return new S0(b)});
g.J(this,this.Qd);this.Pc=Y(function(){return new p_(b)});
g.J(this,this.Pc);this.Ka=Y(function(){return new q_(b)});
g.J(this,this.Ka);this.Hb=Y(function(){return new O0(d)});
g.J(this,this.Hb);this.u=Y(function(){return new FY(f.Ka)});
g.J(this,this.u);this.Ha=Y(function(){return new MZ(f.I,f.N,f.Ka,f.u,null,f.Ya,3)});
g.J(this,this.Ha);this.qc=Y(function(){return new T0(b)});
g.J(this,this.qc);this.jb=Y(function(){return new U0});
g.J(this,this.jb);this.i=Y(function(){return new D_(b,f.Ab,f.Ka)});
g.J(this,this.i);this.Ub=new l_(this.Ka,this.u,this.i);g.J(this,this.Ub);this.Y=Y(function(){return new R0(b,f.i,f.Ka,f.Ra)});
g.J(this,this.Y);this.ya=Y(function(){return new g1(b)});
g.J(this,this.ya);this.Fa=Y(function(){return new E_(b,f.i)});
g.J(this,this.Fa);this.Ed=Y(function(){return new J_});
this.kb=Y(function(){return new t_(f.Fa,b)});
g.J(this,this.kb);this.Ra=Y(function(){return new y_(b,f.B,f.kb,f.i)});
g.J(this,this.Ra);this.Cc=new yy(this.C,this.Ha,c,this.Ka,a,this.i,this.Fa);g.J(this,this.Cc);var k=new n_(b,this.Cc,this.Fa,this.i,this.Y);this.Ta=Y(function(){return k});
this.Jo=k;this.cd=new z0(kQa,x1,function(l,m,n,p){return lPa(f.N.get(),l,m,n,p)},this.C,this.I,this.N,this.u,this.Ka,this.i);
g.J(this,this.cd);this.Ya=new y0(this.C,this.I,this.i,this.Ta,this.Y,this.Fa,this.Ka,this.ya);g.J(this,this.Ya);this.xb=new TZ(this.C,this.I,this.ea,this.Ta);g.J(this,this.xb);this.Ec=new ry(this.C,this.I,this.Ha,this.i,this.xb,c);g.J(this,this.Ec);this.Qb=Y(function(){return new P_(f.Hb,f.N,f.u,f.ya)});
g.J(this,this.Qb);this.va=Y(function(){return new Q_});
g.J(this,this.va);this.La=new F0(a,this.Ia);g.J(this,this.La);this.j=new G0(a);g.J(this,this.j);this.Wa=new H0(a,this.Ta);g.J(this,this.Wa);this.fb=new I0(a,this.ea,this.Fa,this.i);g.J(this,this.fb);this.wb=new f1(a,this.i);g.J(this,this.wb);this.W=new K0(a);g.J(this,this.W);this.wc=new L0(a);g.J(this,this.wc);this.xa=Y(function(){return new B0});
g.J(this,this.xa);this.fd=Y(function(){return new C0(f.Fa)});
g.J(this,this.fd);this.Jb=Y(function(){return new S_(f.Ec)});
g.J(this,this.Jb);this.lc=Y(function(){return new Z_(f.Ra,f.W)});
g.J(this,this.lc);this.Mc=Y(function(){return new c1(a,f.W,f.i,f.ya,f.Fa,f.Ra,f.Ab,f.Y,f.kb,f.Ed,f.Qd,f.ea,f.rd,f.Pc,f.hc,f.Qa,f.qc,f.Ka,f.B)});
g.J(this,this.Mc);this.pc=Y(function(){return new mRa(f.Ia,f.Fa,f.Ra,f.B,f.Sb,c)});
g.J(this,this.pc);this.qd=new N0(a,this.jb,this.u,this.i,this.J,this.Ka);g.J(this,this.qd);this.Ud={Eq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Ec],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Ya],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.cd],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Cc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.xb]]),gm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Qb],["SLOT_TYPE_FORECASTING",this.va],
["SLOT_TYPE_IN_PLAYER",this.va],["SLOT_TYPE_PLAYER_BYTES",this.va]]),Wh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.La],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.j],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.j],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.j],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.j],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.j],["TRIGGER_TYPE_SLOT_ID_EXITED",this.j],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.j],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.j],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",
this.j],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Wa],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.fb],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.fb],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.wb],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.wb],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.W],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.W],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Wa],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.wc]]),Sm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.xa],["SLOT_TYPE_FORECASTING",this.xa],["SLOT_TYPE_IN_PLAYER",this.xa],["SLOT_TYPE_PLAYER_BYTES",this.fd]]),Cm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Jb],["SLOT_TYPE_FORECASTING",this.lc],["SLOT_TYPE_PLAYER_BYTES",this.Mc],["SLOT_TYPE_IN_PLAYER",this.pc]])};this.listeners=[this.B.get()];this.rq={Ec:this.Ec,Hk:null,Em:this.jb.get(),Xf:this.Ka.get(),ib:this.Qa.get(),Po:this.Fa.get(),Cc:this.Cc,Gj:this.J.get(),Dm:null,Ki:this.La,jh:this.B.get()}};
z1=function(a,b,c,d){g.G.call(this);var e=this;this.i=oRa(function(){return e.j},a,b,c,d);
g.J(this,this.i);this.j=(new pZ(this.i)).u();g.J(this,this.j)};
A1=function(a){return a.i.rq};
oRa=function(a,b,c,d,e){try{var f=b.T();if(g.tE(f))var k=new eRa(a,b,c,d,e);else if(g.wE(f))k=new gRa(a,b,c,d,e);else if("WEB_MUSIC_EMBEDDED_PLAYER"===f.deviceParams.c)k=new iRa(a,b,c,d,e);else if(lE(f))k=new hRa(a,b,c,d,e);else if(g.eE(f))k=new lRa(a,b,c,d,e);else if(g.dE(f))k=new nRa(a,b,c,d,e);else throw new TypeError("Unknown web interface");return k}catch(l){return k=b.T(),T("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:k.deviceParams.cplatform,interface:k.deviceParams.c,
kfa:k.deviceParams.cver,jfa:k.deviceParams.ctheme,ifa:k.deviceParams.cplayer,Afa:k.playerStyle}),new KPa(a,b,c,d,e)}};
B1=function(a,b){this.i=a;this.Hk=b};
C1=function(a){BK.call(this,a)};
D1=function(a,b,c,d,e,f){JK.call(this,a,b,{D:"div",K:"ytp-ad-timed-pie-countdown-container",U:[{D:"svg",K:"ytp-ad-timed-pie-countdown",V:{viewBox:"0 0 20 20"},U:[{D:"circle",K:"ytp-ad-timed-pie-countdown-background",V:{r:"10",cx:"10",cy:"10"}},{D:"circle",K:"ytp-ad-timed-pie-countdown-inner",V:{r:"5",cx:"10",cy:"10"}},{D:"circle",K:"ytp-ad-timed-pie-countdown-outer",V:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",c,d,e,f);this.B=this.Da("ytp-ad-timed-pie-countdown-inner");this.u=Math.ceil(10*
Math.PI);this.hide()};
E1=function(a,b,c,d,e,f,k){ZJ.call(this,a,b,{D:"div",K:"ytp-ad-action-interstitial",V:{tabindex:"0"},U:[{D:"div",K:"ytp-ad-action-interstitial-background-container"},{D:"div",K:"ytp-ad-action-interstitial-slot",U:[{D:"div",K:"ytp-ad-action-interstitial-card",U:[{D:"div",K:"ytp-ad-action-interstitial-image-container"},{D:"div",K:"ytp-ad-action-interstitial-headline-container"},{D:"div",K:"ytp-ad-action-interstitial-description-container"},{D:"div",K:"ytp-ad-action-interstitial-action-button-container"}]}]}]},
"ad-action-interstitial",c,d,e);this.Hg=f;this.cj=k;this.navigationEndpoint=this.j=this.skipButton=this.u=this.actionButton=null;this.Ia=this.Da("ytp-ad-action-interstitial-image-container");this.C=new xK(this.api,this.Ua,this.layoutId,this.i,this.ib,"ytp-ad-action-interstitial-image");g.J(this,this.C);this.C.Ca(this.Ia);this.Ha=this.Da("ytp-ad-action-interstitial-headline-container");this.N=new HK(this.api,this.Ua,this.layoutId,this.i,this.ib,"ytp-ad-action-interstitial-headline");g.J(this,this.N);
this.N.Ca(this.Ha);this.ya=this.Da("ytp-ad-action-interstitial-description-container");this.I=new HK(this.api,this.Ua,this.layoutId,this.i,this.ib,"ytp-ad-action-interstitial-description");g.J(this,this.I);this.I.Ca(this.ya);this.Qa=this.Da("ytp-ad-action-interstitial-background-container");this.Y=new xK(this.api,this.Ua,this.layoutId,this.i,this.ib,"ytp-ad-action-interstitial-background",!0);g.J(this,this.Y);this.Y.Ca(this.Qa);this.La=this.Da("ytp-ad-action-interstitial-action-button-container");
this.B=new qx;g.J(this,this.B);this.hide()};
pRa=function(a){var b=g.wh("html5-video-player");b&&g.M(b,"ytp-ad-display-override",a)};
F1=function(a,b,c,d,e){ZJ.call(this,a,b,{D:"div",K:"ytp-ad-overlay-slot",U:[{D:"div",K:"ytp-ad-overlay-container"}]},"invideo-overlay",c,d,e);this.N=[];this.Ya=this.Ha=this.C=this.La=this.ya=null;this.Qa=!1;this.I=null;this.Y=0;a=this.Da("ytp-ad-overlay-container");this.Ia=new SK(a,45E3,6E3,.3,.4);g.J(this,this.Ia);this.B=qRa(this);g.J(this,this.B);this.B.Ca(a);this.u=rRa(this);g.J(this,this.u);this.u.Ca(a);this.j=sRa(this);g.J(this,this.j);this.j.Ca(a);this.hide()};
qRa=function(a){var b=new g.YJ({D:"div",K:"ytp-ad-text-overlay",U:[{D:"div",K:"ytp-ad-overlay-ad-info-button-container"},{D:"div",K:"ytp-ad-overlay-close-container",U:[{D:"button",K:"ytp-ad-overlay-close-button",U:[qK(G1)]}]},{D:"div",K:"ytp-ad-overlay-title",qa:"{{title}}"},{D:"div",K:"ytp-ad-overlay-desc",qa:"{{description}}"},{D:"div",Ga:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],qa:"{{displayUrl}}"}]});a.S(b.Da("ytp-ad-overlay-title"),"click",function(c){return H1(a,b.element,
c)});
a.S(b.Da("ytp-ad-overlay-link"),"click",function(c){return H1(a,b.element,c)});
a.S(b.Da("ytp-ad-overlay-close-container"),"click",a.Ni);b.hide();return b};
rRa=function(a){var b=new g.YJ({D:"div",Ga:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],U:[{D:"div",K:"ytp-ad-overlay-ad-info-button-container"},{D:"div",K:"ytp-ad-overlay-close-container",U:[{D:"button",K:"ytp-ad-overlay-close-button",U:[qK(G1)]}]},{D:"div",K:"ytp-ad-overlay-text-image",U:[{D:"img",V:{src:"{{imageUrl}}"}}]},{D:"div",K:"ytp-ad-overlay-title",qa:"{{title}}"},{D:"div",K:"ytp-ad-overlay-desc",qa:"{{description}}"},{D:"div",Ga:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],
qa:"{{displayUrl}}"}]});a.S(b.Da("ytp-ad-overlay-title"),"click",function(c){return H1(a,b.element,c)});
a.S(b.Da("ytp-ad-overlay-link"),"click",function(c){return H1(a,b.element,c)});
a.S(b.Da("ytp-ad-overlay-close-container"),"click",a.Ni);a.S(b.Da("ytp-ad-overlay-text-image"),"click",a.wX);b.hide();return b};
sRa=function(a){var b=new g.YJ({D:"div",K:"ytp-ad-image-overlay",U:[{D:"div",K:"ytp-ad-overlay-ad-info-button-container"},{D:"div",K:"ytp-ad-overlay-close-container",U:[{D:"button",K:"ytp-ad-overlay-close-button",U:[qK(G1)]}]},{D:"div",K:"ytp-ad-overlay-image",U:[{D:"img",V:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.S(b.Da("ytp-ad-overlay-image"),"click",function(c){return H1(a,b.element,c)});
a.S(b.Da("ytp-ad-overlay-close-container"),"click",a.Ni);b.hide();return b};
I1=function(a,b){if(b){var c=b.adHoverTextButtonRenderer||null;if(null==c)g.S(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else if(b=g.wh("video-ads ytp-ad-module")||null,null==b)g.S(Error("Could not locate the root ads container element to attach the ad info dialog."));else if(a.Ha=new g.YJ({D:"div",K:"ytp-ad-overlay-ad-info-dialog-container"}),g.J(a,a.Ha),a.Ha.Ca(b),b=new GK(a.api,a.Ua,a.layoutId,a.i,a.ib,a.Ha.element,!1),g.J(a,b),b.init(hG("ad-info-hover-text-button"),
c,a.macros),a.I){b.Ca(a.I,0);b.subscribe("f",a.RU,a);b.subscribe("e",a.tG,a);a.S(a.I,"click",a.SU);var d=g.wh("ytp-ad-button",b.element);a.S(d,"click",function(){var e,f,k;if(null==(e=c.button)?0:null==(f=e.buttonRenderer)?0:null==(k=f.serviceEndpoint)?0:k.adInfoDialogEndpoint)a.Qa=2===a.api.getPlayerState(1),a.api.pauseVideo();else a.api.onAdUxClicked("ad-info-hover-text-button",a.layoutId)});
a.Ya=b}else g.S(Error("Ad info button container within overlay ad was not present."))}else g.Rx(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))};
tRa=function(a,b){if(J1(a,K1)||a.api.Se())return!1;var c=$J(b.title),d=$J(b.description);if(g.lb(c)||g.lb(d))return!1;a.Vg(a.B.element,b.trackingParams||null);a.B.Ma("title",$J(b.title));a.B.Ma("description",$J(b.description));a.B.Ma("displayUrl",$J(b.displayUrl));b.navigationEndpoint&&jc(a.N,b.navigationEndpoint);a.B.show();a.Ia.start();a.Za(a.B.element,!0);a.S(a.B.element,"mouseover",function(){a.Y++});
return!0};
uRa=function(a,b){if(J1(a,K1)||a.api.Se())return!1;var c=$J(b.title),d=$J(b.description);if(g.lb(c)||g.lb(d))return!1;a.Vg(a.u.element,b.trackingParams||null);a.u.Ma("title",$J(b.title));a.u.Ma("description",$J(b.description));a.u.Ma("displayUrl",$J(b.displayUrl));a.u.Ma("imageUrl",Pxa(b.image));b.navigationEndpoint&&jc(a.N,b.navigationEndpoint);a.La=b.imageNavigationEndpoint||null;a.u.show();a.Ia.start();a.Za(a.u.element,!0);a.S(a.u.element,"mouseover",function(){a.Y++});
return!0};
vRa=function(a,b){if(a.api.Se())return!1;var c=Qxa(b.image),d=c;c.width<K1.width&&(d=K1);if(0===c.width||0===c.height||J1(a,d))return!1;a.Vg(a.j.element,b.trackingParams||null);a.j.Ma("imageUrl",Pxa(b.image));a.j.Ma("width",c.width);a.j.Ma("height",c.height);b.navigationEndpoint&&jc(a.N,b.navigationEndpoint);b=a.j.Da("ytp-ad-image-overlay");g.xn(b,"max-width",c.width+"px");a.j.show();a.Za(a.j.element,!0);a.S(a.j.element,"mouseover",function(){a.Y++;a.api.aG("invideo-overlay",a.layoutId)});
a.S(a.j.element,"mouseout",function(){a.api.ZF("invideo-overlay",a.layoutId)});
return!0};
J1=function(a,b){var c=a.api.bb().xg(),d=a.api.Dj(!0,!1);return(b=p1(c,c.height-(d.height+d.top),b))?(a.ya&&b&&(c=g.yf(a.macros),c.ERRORCODE=b.jy.toString(),c.ERROR_MSG=b.errorMessage,a.api.T().experiments.Xa("html5_enable_pacf_command_api_with_macros")?DK(a.ib,a.ya,c):a.Ua.executeCommand(a.ya,c)),!0):!1};
H1=function(a,b,c){var d=g.yf(a.macros),e=g.io(b);d.AW={toString:function(){return e.width.toString()}};
d.AH={toString:function(){return e.height.toString()}};
var f=g.go(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.Y.toString()}};
b=g.q(a.N);for(c=b.next();!c.done;c=b.next())c=c.value,a.api.T().experiments.Xa("html5_enable_pacf_command_api_with_macros")?DK(a.ib,c,d):a.Ua.executeCommand(c,d);a.api.pauseVideo()};
wRa=function(a,b){a=a.api.getRootNode();g.M(a,"ytp-ad-overlay-open",b);g.M(a,"ytp-ad-overlay-closed",!b)};
L1=function(a,b,c,d,e,f){JK.call(this,a,b,{D:"div",K:"ytp-ad-message-overlay",U:[{D:"div",K:"ytp-ad-message-slot"}]},"ad-message",c,d,e,f);var k=this;this.Y=-1;this.B=0;this.N=!1;this.ya=this.Da("ytp-ad-message-slot");this.u=new g.YJ({D:"span",K:"ytp-ad-message-container"});this.u.Ca(this.ya);g.J(this,this.u);this.messageText=new HK(this.api,this.Ua,this.layoutId,this.i,e,"ytp-ad-message-text");g.J(this,this.messageText);this.messageText.Ca(this.u.element);this.I=new g.MK(this.u,400,!1,100,function(){return k.hide()});
g.J(this,this.I);this.hide()};
xRa=function(a,b){a=a.api.getRootNode();g.M(a,"ytp-ad-overlay-open",b);g.M(a,"ytp-ad-overlay-closed",!b)};
M1=function(a,b,c,d,e){ZJ.call(this,a,b,{D:"div",K:"ytp-ad-underlay-companion",U:[{D:"div",K:"ytp-ad-underlay-side-container",U:[{D:"div",K:"ytp-ad-underlay-image-container"},{D:"div",K:"ytp-ad-underlay-description-container"},{D:"div",K:"ytp-ad-underlay-headline-container"},{D:"div",K:"ytp-ad-underlay-action-button-container"}]}]},"player-underlay",c,d,e);this.actionButton=null;this.ya=this.Da("ytp-ad-underlay-image-container");this.u=new xK(this.api,this.Ua,this.layoutId,this.i,this.ib,"ytp-ad-underlay-image");
g.J(this,this.u);this.u.Ca(this.ya);this.Y=this.Da("ytp-ad-underlay-headline-container");this.C=new HK(this.api,this.Ua,this.layoutId,this.i,this.ib,"ytp-ad-underlay-headline");g.J(this,this.C);this.C.Ca(this.Y);this.N=this.Da("ytp-ad-underlay-description-container");this.B=new HK(this.api,this.Ua,this.layoutId,this.i,this.ib,"ytp-ad-underlay-description");g.J(this,this.B);this.B.Ca(this.N);this.I=this.Da("ytp-ad-underlay-action-button-container");this.j=this.Da("ytp-ad-underlay-side-container");
this.hide()};
yRa=function(a){var b=g.wh("html5-video-player");b&&g.M(b,"ytp-ad-display-override",a)};
N1=function(a,b,c,d,e){ZJ.call(this,a,b,{D:"div",K:"ytp-ad-survey-answer"},"survey-answer",c,d,e);this.j=null;this.toggledLoggingParams="";this.answer=this.Da("ytp-ad-survey-answer");this.hide()};
O1=function(a,b,c,d,e){ZJ.call(this,a,b,{D:"div",K:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above",c,d,e);this.button=null;this.j=this.Da("ytp-ad-survey-none-of-the-above");this.hide()};
P1=function(a,b,c,d,e){rK.call(this,a,b,c,d,e,["ytp-ad-survey-submit-button"],"survey-submit")};
Q1=function(a,b,c,d,e,f,k){ZJ.call(this,a,b,{D:"div",K:"ytp-ad-survey-player-overlay",U:[{D:"div",K:"ytp-ad-survey-player-overlay-instream-info"},{D:"div",K:"ytp-ad-survey-player-overlay-skip-preview-submit",U:[{D:"div",K:"ytp-ad-survey-player-overlay-skip-or-preview"},{D:"div",K:"ytp-ad-survey-player-overlay-submit"}]},{D:"div",K:"ytp-ad-survey-player-overlay-instream-user-sentiment"}]},"survey-player-overlay",c,d,e);this.B=f;this.cj=k;this.u=this.j=null;this.C=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.J(this,this.B);this.hide()};
R1=function(a,b,c,d,e,f,k,l){ZJ.call(this,a,b,{D:"div",K:"ytp-ad-survey-question",U:[{D:"div",Ga:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{D:"div",Ga:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{D:"div",Ga:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{D:"div",K:"ytp-ad-survey-question-background"}]},f,c,d,e);this.Hg=k;this.cj=l;this.C=null;this.u=[];this.j=null;this.question=this.Da("ytp-ad-survey-question");this.N=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.B=g.Ta()};
zRa=function(a,b,c){var d=new N1(a.api,a.Ua,a.layoutId,a.i,a.ib);d.Ca(a.answers);d.init(hG("survey-answer"),b,c);a.u.push(d)};
BRa=function(a,b){if(b){var c=b.background;c&&c.instreamSurveyAdBackgroundImageRenderer&&(c=(c=c.instreamSurveyAdBackgroundImageRenderer.image)&&wK(c)||"",g.lb(c)?g.Rx(Error("Found ThumbnailDetails without valid image URL")):g.xn(a.N,"backgroundImage","url("+c+")"));ARa(a,b)}else g.S(Error("addCommonComponents() needs to be called before starting countdown."))};
ARa=function(a,b){if(null==b.durationMilliseconds||void 0===b.durationMilliseconds||0===b.durationMilliseconds)g.S(Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(b)));else{a.B=g.Ta();a.j=a.Hg?new YK(a.api,b.durationMilliseconds):new ZK(b.durationMilliseconds,a.Ua,!0);g.J(a,a.j);if(b.timeoutCommands&&!a.Hg){var c=b.timeoutCommands;a.j.subscribe("g",function(){for(var e=g.q(c),f=e.next();!f.done;f=e.next())f=f.value,a.api.T().experiments.Xa("html5_enable_pacf_command_api_with_macros")?
DK(a.ib,f,a.macros):a.Ua.executeCommand(f,a.macros)})}if(a.j&&b.instreamAdPlayerOverlay&&b.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer)try{var d=new Q1(a.api,a.Ua,a.layoutId,a.i,a.ib,a.j,a.cj);
d.Ca(a.playerOverlay);d.init(hG("survey-player-overlay"),b.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer,a.macros);a.C=d;g.J(a,d);a.xO()}catch(e){g.S(Error("ISAPOR had an error when initializing. Error: "+(e+" SurveyAdQuestionCommon: "+JSON.stringify(b))))}else g.S(Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+JSON.stringify(b)));a.j&&b.durationMilliseconds&&0<b.durationMilliseconds?(b=new hL(a.api,a.j),b.Ca(a.playerOverlay),g.J(a,b)):g.S(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+
JSON.stringify(b)))}};
CRa=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.Ta()-a.B).toString()})};
S1=function(a,b,c,d,e,f,k){R1.call(this,a,b,c,d,e,"survey-question-multi-select",f,k);this.noneOfTheAbove=null;this.submitEndpoints=[];this.I=null;this.hide()};
DRa=function(a,b,c){a.noneOfTheAbove=new O1(a.api,a.Ua,a.layoutId,a.i,a.ib);a.noneOfTheAbove.Ca(a.answers);a.noneOfTheAbove.init(hG("survey-none-of-the-above"),b,c)};
ERa=function(a){a.u.forEach(function(b){b.j.toggleButton(!1)});
T1(a,!0)};
T1=function(a,b){var c=a.C;a=FRa(a);b=void 0===b?!1:b;c.j&&(a?c.j.hide():c.j.show(),b&&c.j instanceof UK&&!c.j.I&&wya(c.j,!1));c.u&&(a?c.u.show():c.u.hide())};
FRa=function(a){return a.u.some(function(b){return b.j.isToggled()})||a.noneOfTheAbove.button.isToggled()};
U1=function(a,b,c,d,e,f,k){R1.call(this,a,b,c,d,e,"survey-question-single-select",f,k);this.hide()};
V1=function(a,b,c,d,e,f,k){ZJ.call(this,a,b,{D:"div",K:"ytp-ad-survey",U:[{D:"div",K:"ytp-ad-survey-questions"}]},"survey",c,d,e);this.Hg=f;this.cj=k;this.questions=[];this.j=this.Da("ytp-ad-survey-questions");this.hide()};
W1=function(a,b,c,d,e,f,k){ZJ.call(this,a,b,{D:"div",K:"ytp-ad-survey-interstitial",U:[{D:"div",K:"ytp-ad-survey-interstitial-contents",U:[{D:"div",K:"ytp-ad-survey-interstitial-logo",U:[{D:"div",K:"ytp-ad-survey-interstitial-logo-image"}]},{D:"div",K:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",c,d,e);this.Hg=f;this.qH=k;this.j=this.actionButton=null;this.interstitial=this.Da("ytp-ad-survey-interstitial");this.u=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.MK(this,500,!1,300);g.J(this,this.transition)};
GRa=function(a,b){b=b&&wK(b)||"";if(g.lb(b))g.Rx(Error("Found ThumbnailDetails without valid image URL"));else{var c=a.style.cssText;if(g.Nc&&10>document.documentMode)c=Dg;else{var d=document;"function"===typeof HTMLTemplateElement&&(d=g.Nh("TEMPLATE").content.ownerDocument);d=d.implementation.createHTMLDocument("").createElement("DIV");d.style.cssText=c;c=Gga(d.style)}b=eba(c,Eg({"background-image":'url("'+b+'")'}));a.style.cssText=Bg(b)}};
HRa=function(a){var b=g.wh("html5-video-player");b&&g.M(b,"ytp-ad-display-override",a)};
X1=function(a,b,c,d){BK.call(this,a);this.api=a;this.ib=c;this.j={};this.J=b;a=new g.W({D:"div",Ga:["video-ads","ytp-ad-module"]});g.J(this,a);TD&&g.L(a.element,"ytp-ads-tiny-mode");this.C=new SJ(a.element);g.J(this,this.C);g.fM(this.api,a.element,4);yPa(d)&&(d=new g.W({D:"div",Ga:["ytp-ad-underlay"]}),g.J(this,d),this.u=new SJ(d.element),g.J(this,this.u),g.fM(this.api,d.element,0));g.J(this,eya())};
IRa=function(a,b){a=wf(a.j,b.id,null);null==a&&g.Rx(Error("Component not found for element id: "+b.id));return a||null};
Y1=function(a){g.tM.call(this,a);var b=this;this.j=this.Ua=null;this.created=!1;this.xp=new zJ(this.player);this.u=function(){function d(){return b.Ua}
if(null!=b.j)return b.j;var e=qxa({Np:a.getVideoData(1)});e=new GNa({fS:new B1(function(){return b.Ua},A1(b.i).Hk),
Ap:e.jT(),wS:d,HU:d,Ki:A1(b.i).Ki,Sh:e.OE(),G:b.player,Xf:A1(b.i).Xf,Ra:b.i.i.Ra,jh:A1(b.i).jh,Pc:b.i.i.Pc});b.j=e.cR;return b.j};
this.i=new z1(this.player,this,this.xp,this.u);g.J(this,this.i);var c=a.T();!jE(c)||g.dE(c)||lE(c)||(g.J(this,new X1(a,function(){return b.Ua},A1(this.i).ib,A1(this.i).Xf)),g.J(this,new C1(a)))};
JRa=function(a){a.created!==a.loaded&&T("Created and loaded are out of sync")};
Z1=function(a,b){b===a.Yr&&(a.Yr=void 0)};
KRa=function(a){a.Ua?A1(a.i).Cc.eF()||a.Ua.eF()||A1(a.i).Po.Tp():T("AdService is null when calling maybeUnlockPrerollIfReady")};
LRa=function(a){a=g.q(A1(a.i).jh.Uh.keys());for(var b=a.next();!b.done;b=a.next())if(b=b.value,"SLOT_TYPE_PLAYER_BYTES"===b.ob&&"core"===b.gb)return!0;return!1};
MRa=function(a){a=g.q(A1(a.i).jh.Uh.values());for(var b=a.next();!b.done;b=a.next())if("LAYOUT_TYPE_MEDIA_BREAK"===b.value.layoutType)return!0;return!1};
ioa=function(a,b,c){c=void 0===c?"":c;var d=A1(a.i).Xf,e=a.player.getVideoData(1),f=e&&e.getPlayerResponse()||{};f=f&&f.playerConfig&&f.playerConfig.daiConfig&&f.playerConfig.daiConfig.enableDai||!1;e=e&&e.Af()||!1;d=NRa(b,d,f,e,A1(a.i).Gj);loa(A1(a.i).Ec,c,d.YA,b);a.Ua&&0<d.yv.length&&(a=a.Ua,b=d.yv,b=xxa(a,b),b=yxa(a,b),QJ(a,b))};
NRa=function(a,b,c,d,e){var f={yv:[],YA:[]};a=g.q(a);for(var k=a.next();!k.done;k=a.next())if((k=k.value)&&null!=k.renderer){var l=k.renderer,m=k.config&&k.config.adPlacementConfig&&k.config.adPlacementConfig.kind;if(NZ(b,"html5_externally_manage_ad_notify_layout")){var n=void 0,p=void 0,r=void 0,t=void 0,w=e;if(null==(t=l.sandwichedLinearAdRenderer)?0:null==(r=t.adVideoStart)?0:r.adMessageRenderer)n=DNa(l.sandwichedLinearAdRenderer.adVideoStart.adMessageRenderer,w),l.sandwichedLinearAdRenderer.adVideoStart.adMessageRenderer=
n;else if(null==(p=l.linearAdSequenceRenderer)?0:null==(n=p.adStart)?0:n.adMessageRenderer)n=DNa(l.linearAdSequenceRenderer.adStart.adMessageRenderer,w),l.linearAdSequenceRenderer.adStart.adMessageRenderer=n}n=b;p=d;c||null!=l.instreamSurveyAdRenderer||null!=l.sandwichedLinearAdRenderer&&null!=l.sandwichedLinearAdRenderer.linearAd&&null!=l.sandwichedLinearAdRenderer.linearAd.instreamSurveyAdRenderer?l=!0:p&&!PZ(n)?l=!1:null!=l.videoAdTrackingRenderer?l=wPa(n):null!=l.clientForecastingAdRenderer||
null!=l.actionCompanionAdRenderer||null!=l.imageCompanionAdRenderer||null!=l.shoppingCompanionCarouselRenderer||null!=l.adsEngagementPanelRenderer||null!=l.invideoOverlayAdRenderer||null!=l.adBreakServiceRenderer&&("AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"!==m||PZ(n))?l=!0:null!=l.instreamVideoAdRenderer||null!=l.remoteSlotsRenderer?(l=p)||(l=n,l=g.vE(l.G.T())?l.G.T().L("html5_enable_vod_lsar_ivar_pacf_unplugged"):jE(l.G.T())?l.G.T().L("html5_enable_single_video_vod_ivar_on_pacf"):g.kE(l.G.T())?l.G.T().L("html5_enable_single_video_vod_ivar_on_pacf_tv"):
!1):l=l.linearAdSequenceRenderer&&l.linearAdSequenceRenderer.linearAds?l.linearAdSequenceRenderer.adStart?n.G.T().L("html5_enable_vod_lasr_with_notify_pacf"):p||$Y(n):null!=l.sandwichedLinearAdRenderer?n.G.T().L("html5_enable_vod_slar_with_notify_pacf"):!1;l?f.YA.push(k):k.renderer.videoAdTrackingRenderer||f.yv.push(k)}return f};
ORa=function(){if(!g.Nc)return!1;try{return new ActiveXObject("MSXML2.DOMDocument"),!0}catch(a){return!1}};
g.$1=function(a){if("undefined"!=typeof DOMParser){var b=new DOMParser;a=xga(a);return b.parseFromString(g.Jg(a),"application/xml")}if(PRa){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.a2=function(a,b){var c="ytp-miniplayer-button-bottom-right",d={D:"svg",V:{height:"18px",version:"1.1",viewBox:"0 0 22 18",width:"22px"},U:[{D:"g",V:{fill:"none","fill-rule":"evenodd",stroke:"none","stroke-width":"1"},U:[{D:"g",V:{transform:"translate(-1.000000, -3.000000)"},U:[{D:"polygon",V:{points:"0 0 24 0 24 24 0 24"}},{D:"path",V:{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.T().L("kevlar_miniplayer_expand_top")&&(c="ytp-miniplayer-button-top-left",d={D:"svg",V:{height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px"},U:[{D:"g",V:{fill:"none","fill-rule":"evenodd",stroke:"none","stroke-width":"1"},U:[{D:"g",V:{transform:"translate(12.000000, 12.000000) scale(-1, 1) translate(-12.000000, -12.000000) "},U:[{D:"path",V:{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,{D:"button",Ga:["ytp-miniplayer-expand-watch-page-button","ytp-button",c],V:{title:"{{title}}","data-tooltip-target-id":"ytp-miniplayer-expand-watch-page-button"},U:[d]});this.G=a;this.Pa("click",this.onClick,this);this.Ma("title",UM(a,e,"i"));g.Ue(this,g.rN(b.jc(),this.element))};
aa=[];ha="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};
fa=aaa(this);ia("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,k){this.i=f;ha(this,"description",{configurable:!0,writable:!0,value:k})}
if(a)return a;c.prototype.toString=function(){return this.i};
var d="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",e=0;return b});
ia("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=fa[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&ha(d.prototype,a,{configurable:!0,writable:!0,value:function(){return ka(ea(this))}})}return a});
var QRa="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)na(d,e)&&(a[e]=d[e])}return a};
ia("Object.assign",function(a){return a||QRa});
var oa="function"==typeof Object.create?Object.create:function(a){function b(){}
b.prototype=a;return new b},RRa=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=oa(e.prototype||Object.prototype);return Function.prototype.apply.call(c,e,d)||e}}(),b2;
if("function"==typeof Object.setPrototypeOf)b2=Object.setPrototypeOf;else{var c2;a:{var SRa={a:!0},TRa={};try{TRa.__proto__=SRa;c2=TRa.a;break a}catch(a){}c2=!1}b2=c2?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var pa=b2;
ra.prototype.N=function(a){this.j=a};
ra.prototype.return=function(a){this.u={return:a};this.i=this.C};
ra.prototype.eb=function(a){this.i=a};
ia("Reflect",function(a){return a?a:{}});
ia("Reflect.construct",function(){return RRa});
ia("Reflect.setPrototypeOf",function(a){return a?a:pa?function(b,c){try{return pa(b,c),!0}catch(d){return!1}}:null});
ia("Promise",function(a){function b(k){this.i=0;this.u=void 0;this.j=[];this.J=!1;var l=this.B();try{k(l.resolve,l.reject)}catch(m){l.reject(m)}}
function c(){this.i=null}
function d(k){return k instanceof b?k:new b(function(l){l(k)})}
if(a)return a;c.prototype.j=function(k){if(null==this.i){this.i=[];var l=this;this.u(function(){l.C()})}this.i.push(k)};
var e=fa.setTimeout;c.prototype.u=function(k){e(k,0)};
c.prototype.C=function(){for(;this.i&&this.i.length;){var k=this.i;this.i=[];for(var l=0;l<k.length;++l){var m=k[l];k[l]=null;try{m()}catch(n){this.B(n)}}}this.i=null};
c.prototype.B=function(k){this.u(function(){throw k;})};
b.prototype.B=function(){function k(n){return function(p){m||(m=!0,n.call(l,p))}}
var l=this,m=!1;return{resolve:k(this.va),reject:k(this.C)}};
b.prototype.va=function(k){if(k===this)this.C(new TypeError("A Promise cannot resolve to itself"));else if(k instanceof b)this.ya(k);else{a:switch(typeof k){case "object":var l=null!=k;break a;case "function":l=!0;break a;default:l=!1}l?this.ea(k):this.I(k)}};
b.prototype.ea=function(k){var l=void 0;try{l=k.then}catch(m){this.C(m);return}"function"==typeof l?this.Ha(l,k):this.I(k)};
b.prototype.C=function(k){this.N(2,k)};
b.prototype.I=function(k){this.N(1,k)};
b.prototype.N=function(k,l){if(0!=this.i)throw Error("Cannot settle("+k+", "+l+"): Promise already settled in state"+this.i);this.i=k;this.u=l;2===this.i&&this.xa();this.W()};
b.prototype.xa=function(){var k=this;e(function(){if(k.Y()){var l=fa.console;"undefined"!==typeof l&&l.error(k.u)}},1)};
b.prototype.Y=function(){if(this.J)return!1;var k=fa.CustomEvent,l=fa.Event,m=fa.dispatchEvent;if("undefined"===typeof m)return!0;"function"===typeof k?k=new k("unhandledrejection",{cancelable:!0}):"function"===typeof l?k=new l("unhandledrejection",{cancelable:!0}):(k=fa.document.createEvent("CustomEvent"),k.initCustomEvent("unhandledrejection",!1,!0,k));k.promise=this;k.reason=this.u;return m(k)};
b.prototype.W=function(){if(null!=this.j){for(var k=0;k<this.j.length;++k)f.j(this.j[k]);this.j=null}};
var f=new c;b.prototype.ya=function(k){var l=this.B();k.Wy(l.resolve,l.reject)};
b.prototype.Ha=function(k,l){var m=this.B();try{k.call(l,m.resolve,m.reject)}catch(n){m.reject(n)}};
b.prototype.then=function(k,l){function m(t,w){return"function"==typeof t?function(x){try{n(t(x))}catch(y){p(y)}}:w}
var n,p,r=new b(function(t,w){n=t;p=w});
this.Wy(m(k,n),m(l,p));return r};
b.prototype.catch=function(k){return this.then(void 0,k)};
b.prototype.Wy=function(k,l){function m(){switch(n.i){case 1:k(n.u);break;case 2:l(n.u);break;default:throw Error("Unexpected state: "+n.i);}}
var n=this;null==this.j?f.j(m):this.j.push(m);this.J=!0};
b.resolve=d;b.reject=function(k){return new b(function(l,m){m(k)})};
b.race=function(k){return new b(function(l,m){for(var n=g.q(k),p=n.next();!p.done;p=n.next())d(p.value).Wy(l,m)})};
b.all=function(k){var l=g.q(k),m=l.next();return m.done?d([]):new b(function(n,p){function r(x){return function(y){t[x]=y;w--;0==w&&n(t)}}
var t=[],w=0;do t.push(void 0),w++,d(m.value).Wy(r(t.length-1),p),m=l.next();while(!m.done)})};
return b});
ia("Array.prototype.find",function(a){return a?a:function(b,c){return Da(this,b,c).HP}});
ia("WeakMap",function(a){function b(m){this.i=(l+=Math.random()+1).toString();if(m){m=g.q(m);for(var n;!(n=m.next()).done;)n=n.value,this.set(n[0],n[1])}}
function c(){}
function d(m){var n=typeof m;return"object"===n&&null!==m||"function"===n}
function e(m){if(!na(m,k)){var n=new c;ha(m,k,{value:n})}}
function f(m){var n=Object[m];n&&(Object[m]=function(p){if(p instanceof c)return p;Object.isExtensible(p)&&e(p);return n(p)})}
if(function(){if(!a||!Object.seal)return!1;try{var m=Object.seal({}),n=Object.seal({}),p=new a([[m,2],[n,3]]);if(2!=p.get(m)||3!=p.get(n))return!1;p.delete(m);p.set(n,4);return!p.has(m)&&4==p.get(n)}catch(r){return!1}}())return a;
var k="$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(!na(m,k))throw Error("WeakMap key fail: "+m);m[k][this.i]=n;return this};
b.prototype.get=function(m){return d(m)&&na(m,k)?m[k][this.i]:void 0};
b.prototype.has=function(m){return d(m)&&na(m,k)&&na(m[k],this.i)};
b.prototype.delete=function(m){return d(m)&&na(m,k)&&na(m[k],this.i)?delete m[k][this.i]:!1};
return b});
ia("Map",function(a){function b(){var l={};return l.previous=l.next=l.head=l}
function c(l,m){var n=l.i;return ka(function(){if(n){for(;n.head!=l.i;)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=""+ ++k,f.set(m,n)):n="p_"+m;var p=l.data_[n];if(p&&na(l.data_,n))for(l=0;l<p.length;l++){var r=p[l];if(m!==m&&r.key!==r.key||m===r.key)return{id:n,list:p,index:l,entry:r}}return{id:n,list:p,index:-1,entry:void 0}}
function e(l){this.data_={};this.i=b();this.size=0;if(l){l=g.q(l);for(var m;!(m=l.next()).done;)m=m.value,this.set(m[0],m[1])}}
if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var l=Object.seal({x:4}),m=new a(g.q([[l,"s"]]));if("s"!=m.get(l)||1!=m.size||m.get({x:4})||m.set({x:4},"t")!=m||2!=m.size)return!1;var n=m.entries(),p=n.next();if(p.done||p.value[0]!=l||"s"!=p.value[1])return!1;p=n.next();return p.done||4!=p.value[0].x||"t"!=p.value[1]||!n.next().done?!1:!0}catch(r){return!1}}())return a;
var f=new WeakMap;e.prototype.set=function(l,m){l=0===l?0:l;var n=d(this,l);n.list||(n.list=this.data_[n.id]=[]);n.entry?n.entry.value=m:(n.entry={next:this.i,previous:this.i.previous,head:this.i,key:l,value:m},n.list.push(n.entry),this.i.previous.next=n.entry,this.i.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.i=this.i.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 k=0;return e});
ia("Array.prototype.entries",function(a){return a?a:function(){return Ea(this,function(b,c){return[b,c]})}});
ia("Object.setPrototypeOf",function(a){return a||pa});
ia("Array.prototype.keys",function(a){return a?a:function(){return Ea(this,function(b){return b})}});
ia("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=Fa(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}});
ia("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Fa(this,b,"startsWith");b+="";var e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var k=0;k<f&&c<e;)if(d[c++]!=b[k++])return!1;return k>=f}});
ia("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}});
ia("String.prototype.repeat",function(a){return a?a:function(b){var c=Fa(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}});
ia("Set",function(a){function b(c){this.i=new Map;if(c){c=g.q(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.i.size}
if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var c=Object.seal({x:4}),d=new a(g.q([c]));if(!d.has(c)||1!=d.size||d.add(c)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||4!=f.value[0].x||f.value[1]!=f.value[0]?!1:e.next().done}catch(k){return!1}}())return a;
b.prototype.add=function(c){c=0===c?0:c;this.i.set(c,c);this.size=this.i.size;return this};
b.prototype.delete=function(c){c=this.i.delete(c);this.size=this.i.size;return c};
b.prototype.clear=function(){this.i.clear();this.size=0};
b.prototype.has=function(c){return this.i.has(c)};
b.prototype.entries=function(){return this.i.entries()};
b.prototype.values=function(){return this.i.values()};
b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.i.forEach(function(f){return c.call(d,f,f,e)})};
return b});
ia("Array.prototype.values",function(a){return a?a:function(){return Ea(this,function(b,c){return c})}});
ia("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 k=0;!(f=b.next()).done;)e.push(c.call(d,f.value,k++))}else for(f=b.length,k=0;k<f;k++)e.push(c.call(d,b[k],k));return e}});
ia("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)na(b,d)&&c.push([d,b[d]]);return c}});
ia("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;
})})}});
ia("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Da(this,b,c).UL}});
ia("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}});
ia("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
ia("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}});
ia("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==Fa(this,b,"includes").indexOf(b,c||0)}});
ia("Array.prototype.flat",function(a){return a?a:function(b){b=void 0===b?1:b;for(var c=[],d=0;d<this.length;d++){var e=this[d];Array.isArray(e)&&0<b?(e=Array.prototype.flat.call(e,b-1),c.push.apply(c,e)):c.push(e)}return c}});
ia("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});
ia("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
ia("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)na(b,d)&&c.push(b[d]);return c}});
ia("String.prototype.padStart",function(a){return a?a:function(b,c){var d=Fa(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}});
ia("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}});
ia("WeakSet",function(a){function b(c){this.i=new WeakMap;if(c){c=g.q(c);for(var d;!(d=c.next()).done;)this.add(d.value)}}
if(function(){if(!a||!Object.seal)return!1;try{var c=Object.seal({}),d=Object.seal({}),e=new a([c]);if(!e.has(c)||e.has(d))return!1;e.delete(c);e.add(d);return!e.has(c)&&e.has(d)}catch(f){return!1}}())return a;
b.prototype.add=function(c){this.i.set(c,!0);return this};
b.prototype.has=function(c){return this.i.has(c)};
b.prototype.delete=function(c){return this.i.delete(c)};
return b});
ia("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});
ia("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}});
ia("Int8Array.prototype.fill",Ga);ia("Uint8Array.prototype.fill",Ga);ia("Uint8ClampedArray.prototype.fill",Ga);ia("Int16Array.prototype.fill",Ga);ia("Uint16Array.prototype.fill",Ga);ia("Int32Array.prototype.fill",Ga);ia("Uint32Array.prototype.fill",Ga);ia("Float32Array.prototype.fill",Ga);ia("Float64Array.prototype.fill",Ga);ia("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}});
ia("Int8Array.prototype.copyWithin",Ha);ia("Uint8Array.prototype.copyWithin",Ha);ia("Uint8ClampedArray.prototype.copyWithin",Ha);ia("Int16Array.prototype.copyWithin",Ha);ia("Uint16Array.prototype.copyWithin",Ha);ia("Int32Array.prototype.copyWithin",Ha);ia("Uint32Array.prototype.copyWithin",Ha);ia("Float32Array.prototype.copyWithin",Ha);ia("Float64Array.prototype.copyWithin",Ha);ia("Number.parseInt",function(a){return a||parseInt});
Tj=Tj||{};g.C=this||self;Pa="closure_uid_"+(1E9*Math.random()>>>0);faa=0;g.Ua($a,Error);$a.prototype.name="CustomError";var qh;g.Ua(ab,$a);ab.prototype.name="AssertionError";var id,xaa="undefined"!==typeof TextDecoder,eb,jaa="undefined"!==typeof TextEncoder;var vb=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},nb=/&/g,ob=/</g,pb=/>/g,qb=/"/g,rb=/'/g,sb=/\x00/g,kaa=/[\x00&<>"']/;var URa=g.Ja("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var zb;if(null!=URa&&URa){var VRa=g.C.navigator;zb=VRa?VRa.userAgentData||null:null}else zb=null;var Zb,ro,Uo;Zb=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.WRa=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.uc=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.Bp=Array.prototype.filter?function(a,b,c){return Array.prototype.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,k="string"===typeof a?a.split(""):a,l=0;l<d;l++)if(l in k){var m=k[l];
b.call(c,m,l,a)&&(e[f++]=m)}return e};
g.po=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,k=0;k<d;k++)k in f&&(e[k]=b.call(c,f[k],k,a));
return e};
ro=Array.prototype.reduce?function(a,b,c){return Array.prototype.reduce.call(a,b,c)}:function(a,b,c){var d=c;
(0,g.uc)(a,function(e,f){d=b.call(void 0,d,e,f,a)});
return d};
Uo=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.qo=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};wc[" "]=g.Ka;var zn,oT,rNa,XRa,YRa,ZRa,SD,TD,d2;g.UD=Db();g.Nc=Eb();g.qw=Bb("Edge");g.zE=g.qw||g.Nc;zn=Bb("Gecko")&&!(ub(g.yb(),"WebKit")&&!Bb("Edge"))&&!(Bb("Trident")||Bb("MSIE"))&&!Bb("Edge");g.Ze=ub(g.yb(),"WebKit")&&!Bb("Edge");oT=Rb();rNa=Sb();g.nu=Ob();XRa=Pb();YRa=Bb("iPad");ZRa=Bb("iPod");SD=Qb();TD=ub(g.yb(),"KaiOS");
a:{var e2="",f2=function(){var a=g.yb();if(zn)return/rv:([^\);]+)(\)|;)/.exec(a);if(g.qw)return/Edge\/([\d\.]+)/.exec(a);if(g.Nc)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(g.Ze)return/WebKit\/(\S+)/.exec(a);if(g.UD)return/(?:Version)[ \/]?(\S+)/.exec(a)}();
f2&&(e2=f2?f2[1]:"");if(g.Nc){var g2=Cc();if(null!=g2&&g2>parseFloat(e2)){d2=String(g2);break a}}d2=e2}var Dc=d2,uaa={},h2;if(g.C.document&&g.Nc){var $Ra=Cc();h2=$Ra?$Ra:parseInt(Dc,10)||void 0}else h2=void 0;var vaa=h2;var cE,aG;g.Fz=Hb();cE=Pb()||Bb("iPod");aG=Bb("iPad");g.VD=Kb();g.Uz=Ib();g.Sv=Jb()&&!Qb();var Ic={},Pc=null;var Sc="function"===typeof Uint8Array,Uc;Tc.prototype.isEmpty=function(){return null==this.i};var waa;waa="function"===typeof Uint8Array.prototype.slice;g.we=0;g.ve=0;g.Yc.prototype.clear=function(){this.j=null;this.i=this.u=this.B=0;this.Kk=!1};
g.Yc.prototype.reset=function(){this.i=this.B};
g.Yc.prototype.advance=function(a){this.i+=a;$c(this)};
g.Yc.prototype.C=ba(0);var cd=[];dd.prototype.reset=function(){this.i.reset();this.B=this.i.i;this.j=this.u=-1};
dd.prototype.advance=function(a){this.i.advance(a)};
var TT=[];ld.prototype.length=function(){return this.i.length};
ld.prototype.end=function(){var a=this.i;this.i=[];return a};var wd="function"===typeof Symbol&&"symbol"===typeof Symbol()?Symbol(void 0):void 0;var be,Dd=Object.freeze(xd([])),Ad="undefined"!=typeof Symbol&&"undefined"!=typeof Symbol.hasInstance;var Zd;ae.prototype.toJSON=function(){var a=this.Kf;return be?a:Wd(a,Yd)};
ae.prototype.toString=function(){return this.Kf.toString()};
ae.prototype.C=function(a){return a.u(this)};
ae.prototype.clone=function(){var a=this.constructor;var b=Wd(this.Kf,Daa);a=$d(a,b);ee(a,this);return a};var ie,oe,re,se,jda,uo,kda,Ie,cha,cs,dha;ie=Symbol();oe=Symbol();re=Symbol();se=Symbol();jda=g.ue(function(a,b,c){if(1!==a.j)return!1;a=g.hd(a);Jd(b,c,a,0);return!0},g.xe);
uo=g.ue(function(a,b,c){if(0!==a.j)return!1;a=g.Zc(a.i);Jd(b,c,a,0);return!0},g.ye);
kda=g.ue(function(a,b,c){if(0!==a.j)return!1;a=g.ad(a.i);Jd(b,c,a,0);return!0},g.ze);
g.fs=g.ue(function(a,b,c){if(2!==a.j)return!1;g.D(b,c,g.jd(a));return!0},g.Ae);
g.ds=g.ue(function(a,b,c,d,e){if(2!==a.j)return!1;g.gd(a,Sd(b,c,d),e);return!0},function(a,b,c,d,e){b=Od(b,d,c);
if(null!=b)for(d=0;d<b.length;d++){var f=td(a,c);e(b[d],a);ud(a,f)}});
g.Me=g.ue(function(a,b,c,d,e,f){if(2!==a.j)return!1;(f=Kd(b,f))&&f!==c&&g.D(b,f,void 0,!1);b=g.Md(b,d,c);g.gd(a,b,e);return!0},g.De);
Ie=g.ue(function(a,b,c){if(2!==a.j)return!1;g.D(b,c,kd(a));return!0},function(a,b,c){b=g.Cd(b,c);
null!=b&&g.vd(a,c,Wc(b))});
cha=g.ue(function(a,b,c){if(2!==a.j)return!1;a=kd(a);g.Ed(b,c).push(a);return!0},function(a,b,c){b=g.Ed(b,c);
if(null!=b)for(var d=0;d<b.length;d++){var e=b[d];null!=e&&g.vd(a,c,Wc(e))}});
cs=g.ue(function(a,b,c){if(0!==a.j)return!1;a=g.ad(a.i);g.D(b,c,a);return!0},function(a,b,c){b=g.Cd(b,c);
null!=b&&null!=b&&(g.sd(a,c,0),od(a.i,b))});
dha=g.ue(function(a,b,c){if(0!==a.j)return!1;a=g.Zc(a.i);g.D(b,c,a);return!0},function(a,b,c){b=g.Cd(b,c);
null!=b&&(b=parseInt(b,10),g.sd(a,c,0),pd(a.i,b))});g.v(Fe,ae);Fe.prototype.Wd=function(){throw Error("unimplemented");};
Bd(Fe,function(){throw Error("Cannot perform instanceof checks for MutableMessage");});g.v(g.E,Fe);Bd(g.E,Ad?Object[Symbol.hasInstance]:void 0);g.v(He,g.E);g.v(Je,g.E);g.v(Ke,g.E);g.v(Le,g.E);var Ne=[1,2,3];g.h=Pe.prototype;g.h.hS=function(a){var b=g.Ca.apply(1,arguments),c=this.FE(b);c?c.push(new Oe(a)):this.MO(a,b)};
g.h.MO=function(a){this.us.set(this.wL(g.Ca.apply(1,arguments)),[new Oe(a)])};
g.h.FE=function(){var a=this.wL(g.Ca.apply(0,arguments));return this.us.has(a)?this.us.get(a):void 0};
g.h.mT=function(){var a=this.FE(g.Ca.apply(0,arguments));return a&&a.length?a[0]:void 0};
g.h.clear=function(){this.us.clear()};
g.h.wL=function(){var a=g.Ca.apply(0,arguments);return a?a.join(","):"key"};g.v(Qe,Pe);Qe.prototype.u=function(a){var b=g.Ca.apply(1,arguments),c=0,d=this.mT(b);d&&(c=d.yK);this.MO(c+a,b)};g.v(Re,Pe);Re.prototype.rl=function(a){this.hS(a,g.Ca.apply(1,arguments))};g.G.prototype.gi=!1;g.G.prototype.isDisposed=function(){return this.gi};
g.G.prototype.dispose=function(){this.gi||(this.gi=!0,this.ra())};
g.G.prototype.ra=function(){if(this.Fh)for(;this.Fh.length;)this.Fh.shift()()};g.Ve.prototype.stopPropagation=function(){this.j=!0};
g.Ve.prototype.preventDefault=function(){this.defaultPrevented=!0};var Xe={};var Xaa=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",g.Ka,b),g.C.removeEventListener("test",g.Ka,b)}catch(c){}return a}();var EAa=$e("AnimationEnd"),mGa=$e("TransitionEnd");g.Ua(af,g.Ve);var aSa={2:"touch",3:"pen",4:"mouse"};
af.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)?zn&&(Ac(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:aSa[a.pointerType]||"";this.state=a.state;this.i=a;a.defaultPrevented&&af.ue.preventDefault.call(this)};
af.prototype.stopPropagation=function(){af.ue.stopPropagation.call(this);this.i.stopPropagation?this.i.stopPropagation():this.i.cancelBubble=!0};
af.prototype.preventDefault=function(){af.ue.preventDefault.call(this);var a=this.i;a.preventDefault?a.preventDefault():a.returnValue=!1};var bf="closure_listenable_"+(1E6*Math.random()|0);var Uaa=0;var Af="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");Df.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.listeners[f];a||(a=this.listeners[f]=[],this.i++);var k=Ff(a,b,d,e);-1<k?(b=a[k],c||(b.Vy=!1)):(b=new Vaa(b,this.src,f,!!d,e),b.Vy=c,a.push(b));return b};
Df.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=Ff(e,b,c,d);return-1<b?(df(e[b]),g.ec(e,b),0==e.length&&(delete this.listeners[a],this.i--),!0):!1};
Df.prototype.gw=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=Ff(a,b,c,d));return-1<e?a[e]:null};var Nf="closure_lm_"+(1E6*Math.random()|0),Sf={},Pf=0,Tf="__closure_events_fn_"+(1E9*Math.random()>>>0);g.Ua(g.Uf,g.G);g.Uf.prototype[bf]=!0;g.h=g.Uf.prototype;g.h.addEventListener=function(a,b,c,d){Jf(this,a,b,c,d)};
g.h.removeEventListener=function(a,b,c,d){Qf(this,a,b,c,d)};
g.h.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.fb;d=a.type||a;if("string"===typeof a)a=new g.Ve(a,b);else if(a instanceof g.Ve)a.target=a.target||b;else{var e=a;a=new g.Ve(d,b);g.Bf(a,e)}e=!0;if(c)for(var f=c.length-1;!a.j&&0<=f;f--){var k=a.currentTarget=c[f];e=Vf(k,d,!0,a)&&e}a.j||(k=a.currentTarget=b,e=Vf(k,d,!0,a)&&e,a.j||(e=Vf(k,d,!1,a)&&e));if(c)for(f=0;!a.j&&f<c.length;f++)k=a.currentTarget=c[f],e=Vf(k,d,!1,a)&&e;return e};
g.h.ra=function(){g.Uf.ue.ra.call(this);if(this.u){var a=this.u,b=0,c;for(c in a.listeners){for(var d=a.listeners[c],e=0;e<d.length;e++)++b,df(d[e]);delete a.listeners[c];a.i--}}this.La=null};
g.h.Pa=function(a,b,c,d){return this.u.add(String(a),b,!1,c,d)};
g.h.tA=function(a,b,c,d){return this.u.add(String(a),b,!0,c,d)};
g.h.xc=function(a,b,c,d){this.u.remove(String(a),b,c,d)};
g.h.gw=function(a,b,c,d){return this.u.gw(String(a),b,c,d)};Wf.prototype.get=function(){if(0<this.j){this.j--;var a=this.i;this.i=a.next;a.next=null}else a=this.u();return a};try{(new self.OffscreenCanvas(0,0)).getContext("2d")}catch(a){}var tba=g.Nc||g.Ze;var bSa={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;ig.prototype.Zk=!0;ig.prototype.Kh=function(){return this.i};
var hg={},gg={};g.kg("");var lg={};mg.prototype.Kh=function(){return this.i.toString()};
mg.prototype.toString=function(){return this.i.toString()};var Jga,Iga,Hga,Kga;Jga=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.cSa=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.dSa=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.Cr=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]");Iga=/^http:\/\/.*/;g.eSa=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");Hga=/\s+/;Kga=/[\d\u06f0-\u06f9]/;g.h=og.prototype;g.h.Zk=!0;g.h.Kh=function(){return this.i.toString()};
g.h.iF=!0;g.h.Ir=function(){return 1};
g.h.toString=function(){return this.i+""};
var aba=/%{(\w+)}/g,$aa=RegExp("^((https:)?//[0-9a-z.:[\\]-]+/|/[^/\\\\]|[^:/\\\\%]+/|[^:/\\\\%]*[?#]|about:blank#)","i"),ng={};g.h=g.sg.prototype;g.h.Zk=!0;g.h.Kh=function(){return this.i.toString()};
g.h.iF=!0;g.h.Ir=function(){return 1};
g.h.toString=function(){return this.i.toString()};
var dba=RegExp('^(?:audio/(?:3gpp2|3gpp|aac|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)|font/\\w+|image/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon)|video/(?:mpeg|mp4|ogg|webm|quicktime|x-matroska))(?:;\\w+=(?:\\w+|"[\\w;,= ]+"))*$',"i"),cba=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,vg=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,rg={},wg=new g.sg("about:invalid#zClosurez",rg);var zg={};Ag.prototype.Kh=function(){return this.i};
Ag.prototype.toString=function(){return this.i.toString()};
var Dg=new Ag("",zg),gba=RegExp("^[-,.\"'%_!#/ a-zA-Z0-9\\[\\]]+$"),Gg=RegExp("\\b(url\\([ \t\n]*)('[ -&(-\\[\\]-~]*'|\"[ !#-\\[\\]-~]*\"|[!#-&*-\\[\\]-~]*)([ \t\n]*\\))","g"),Fg=RegExp("\\b(calc|cubic-bezier|fit-content|hsl|hsla|linear-gradient|matrix|minmax|repeat|rgb|rgba|(rotate|scale|translate)(X|Y|Z|3d)?|var)\\([-+*/0-9a-zA-Z.%#\\[\\], ]+\\)","g"),hba=/\/\*/;var Hg={};Ig.prototype.Ir=function(){return this.j};
Ig.prototype.Kh=function(){return this.i.toString()};
Ig.prototype.toString=function(){return this.i.toString()};
var fSa=/^[a-zA-Z0-9-]+$/,gSa={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},hSa={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},Mg=new Ig(g.C.trustedTypes&&g.C.trustedTypes.emptyHTML||"",0,Hg);var nba=ag(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.Jg(Mg);return!b.parentElement}),oba=/^[\w+/_-]+[=]{0,2}$/;g.h=g.bh.prototype;g.h.clone=function(){return new g.bh(this.x,this.y)};
g.h.equals=function(a){return a instanceof g.bh&&ch(this,a)};
g.h.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
g.h.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
g.h.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
g.h.scale=function(a,b){this.x*=a;this.y*="number"===typeof b?b:a;return this};g.h=g.dh.prototype;g.h.clone=function(){return new g.dh(this.width,this.height)};
g.h.aspectRatio=function(){return this.width/this.height};
g.h.isEmpty=function(){return!fh(this)};
g.h.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
g.h.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
g.h.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
g.h.scale=function(a,b){this.width*=a;this.height*="number"===typeof b?b:a;return this};g.iSa=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};var xh={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};g.h=oh.prototype;g.h.getElementsByTagName=function(a,b){return(b||this.i).getElementsByTagName(String(a))};
g.h.Da=function(a){return g.wh(a,this.i)};
g.h.createElement=function(a){return Kh(this.i,a)};
g.h.appendChild=function(a,b){a.appendChild(b)};
g.h.append=function(a,b){Lh(ph(a),a,arguments,1)};
g.h.canHaveChildren=function(a){if(1!=a.nodeType)return!1;switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0};
g.h.removeNode=g.Rh;g.h.contains=g.Th;var Zh;bi.prototype.add=function(a,b){var c=ii.get();c.set(a,b);this.j?this.j.next=c:this.i=c;this.j=c};
bi.prototype.remove=function(){var a=null;this.i&&(a=this.i,this.i=this.i.next,this.i||(this.j=null),a.next=null);return a};
var ii=new Wf(function(){return new ci},function(a){return a.reset()});
ci.prototype.set=function(a,b){this.i=a;this.scope=b;this.next=null};
ci.prototype.reset=function(){this.next=this.scope=this.i=null};var di,ei=!1,fi=new bi;mi.prototype.reset=function(){this.context=this.onRejected=this.j=this.i=null;this.u=!1};
var ni=new Wf(function(){return new mi},function(a){a.reset()});
li.prototype.then=function(a,b,c){return Ai(this,"function"===typeof a?a:null,"function"===typeof b?b:null,c)};
li.prototype.$goog_Thenable=!0;g.h=li.prototype;g.h.yh=function(a,b){return Ai(this,null,a,b)};
g.h.catch=li.prototype.yh;g.h.cancel=function(a){if(0==this.i){var b=new zi(a);g.gi(function(){vi(this,b)},this)}};
g.h.iZ=function(a){this.i=0;ki(this,2,a)};
g.h.jZ=function(a){this.i=0;ki(this,3,a)};
g.h.ZS=function(){for(var a;a=wi(this);)xi(this,a,this.i,this.J);this.I=!1};
var Ci=ai;g.Ua(zi,$a);zi.prototype.name="cancel";g.Ua(g.Di,g.Uf);g.h=g.Di.prototype;g.h.enabled=!1;g.h.Pb=null;g.h.setInterval=function(a){this.Zf=a;this.Pb&&this.enabled?(this.stop(),this.start()):this.Pb&&this.stop()};
g.h.WY=function(){if(this.enabled){var a=g.Ta()-this.xM;0<a&&a<.8*this.Zf?this.Pb=this.Zx.setTimeout(this.oK,this.Zf-a):(this.Pb&&(this.Zx.clearTimeout(this.Pb),this.Pb=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
g.h.start=function(){this.enabled=!0;this.Pb||(this.Pb=this.Zx.setTimeout(this.oK,this.Zf),this.xM=g.Ta())};
g.h.stop=function(){this.enabled=!1;this.Pb&&(this.Zx.clearTimeout(this.Pb),this.Pb=null)};
g.h.ra=function(){g.Di.ue.ra.call(this);this.stop();delete this.Zx};g.h=g.Gi.prototype;g.h.hH=function(a){this.C=a;this.B=1};
g.h.UO=function(){var a=this.i.values();a=[].concat(g.u(a)).filter(function(b){return b.us.size});
a.length&&this.J.flush(a,this.C);Aba(a);this.u=0;this.j.enabled&&this.j.stop()};
g.h.Ny=function(a){var b=g.Ca.apply(1,arguments);this.i.has(a)||this.i.set(a,new Qe(a,b))};
g.h.eK=function(a){var b=g.Ca.apply(1,arguments);this.i.has(a)||this.i.set(a,new Re(a,b))};
g.h.DI=function(a){this.AC.apply(this,[a,1].concat(g.u(g.Ca.apply(1,arguments))))};
g.h.AC=function(a,b){var c=g.Ca.apply(2,arguments),d=Ii(this,a);d&&d instanceof Qe&&(d.u(b,c),Hi(this))};
g.h.rl=function(a,b){var c=g.Ca.apply(2,arguments),d=Ii(this,a);d&&d instanceof Re&&(d.rl(b,c),Hi(this))};Ji.prototype.rl=function(a,b,c,d,e){this.i.rl("/client_streamz/po/w/rl",a,b,c,d,e)};
Ki.prototype.rl=function(a,b,c){this.i.rl("/client_streamz/po/w/el",a,b,c)};var Cba,Dba;g.v(Li,g.E);g.v(g.Mi,g.E);g.v(g.Ni,g.E);g.v(g.Ui,g.E);Cba=[3,6,4];Dba=[1];g.Xi=[1,2,3];g.Wi=[1,2,3];g.v(Vi,g.E);var Eba=[1];var Hba={};g.h=bj.prototype;g.h.isEnabled=function(){if(!g.C.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{wA:60});if("1"!==this.get("TESTCOOKIESENABLED"))return!1;this.remove("TESTCOOKIESENABLED");return!0};
g.h.set=function(a,b,c){var d=!1;if("object"===typeof c){var e=c.Ffa;d=c.xY||!1;var f=c.domain||void 0;var k=c.path||void 0;var l=c.wA}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:"";k=k?";path="+k:"";d=d?";secure":"";l=0>l?"":0==l?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+1E3*l)).toUTCString();this.i.cookie=a+"="+b+c+k+l+d+(null!=e?";samesite="+
e:"")};
g.h.get=function(a,b){for(var c=a+"=",d=(this.i.cookie||"").split(";"),e=0,f;e<d.length;e++){f=vb(d[e]);if(0==f.lastIndexOf(c,0))return f.substr(c.length);if(f==a)return""}return b};
g.h.remove=function(a,b,c){var d=void 0!==this.get(a);this.set(a,"",{wA:0,path:b,domain:c});return d};
g.h.jm=function(){return cj(this).keys};
g.h.Bi=function(){return cj(this).values};
g.h.isEmpty=function(){return!this.i.cookie};
g.h.clear=function(){for(var a=cj(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
var Ut=new bj("undefined"==typeof document?null:document);g.v(hj,g.E);var Iba=[2];g.jj.prototype.j=0;g.jj.prototype.reset=function(){this.i=this.u=this.B;this.j=0};
g.jj.prototype.getValue=function(){return this.u};var oj={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},Kba=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;pj.prototype.j=null;pj.prototype.getOptions=function(){return this.j||(this.j=this.B())};var i2;g.Ua(qj,pj);qj.prototype.i=function(){var a=rj(this);return a?new ActiveXObject(a):new XMLHttpRequest};
qj.prototype.B=function(){var a={};rj(this)&&(a[0]=!0,a[1]=!0);return a};
i2=new qj;var uj=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),Kj=/#|$/,Mba=/[?&]($|#)/;g.Ua(g.Oj,g.Uf);var Qba=/^https?$/i,jSa=["POST","PUT"],Pj=[];g.h=g.Oj.prototype;g.h.vS=function(){this.dispose();g.fc(Pj,this)};
g.h.send=function(a,b,c,d){if(this.i)throw Error("[goog.net.XhrIo] Object is active with another request="+this.W+"; newUri="+a);b=b?b.toUpperCase():"GET";this.W=a;this.B="";this.j=0;this.Ta=b;this.Ha=!1;this.C=!0;this.i=this.ya?this.ya.i():i2.i();this.xa=this.ya?this.ya.getOptions():i2.getOptions();this.i.onreadystatechange=(0,g.Ra)(this.KN,this);try{ij(Vj(this,"Opening Xhr")),this.Ia=!0,this.i.open(b,String(a),!0),this.Ia=!1}catch(k){ij(Vj(this,"Error opening Xhr: "+k.message));Sj(this,k);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.q(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(k){return"content-type"==k.toLowerCase()});
e=g.C.FormData&&a instanceof g.C.FormData;!g.$b(jSa,b)||d||e||c.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");b=g.q(c);for(d=b.next();!d.done;d=b.next())c=g.q(d.value),d=c.next().value,c=c.next().value,this.i.setRequestHeader(d,c);this.Qa&&(this.i.responseType=this.Qa);"withCredentials"in this.i&&this.i.withCredentials!==this.N&&(this.i.withCredentials=this.N);try{kk(this),0<this.J&&(this.va=Pba(this.i),ij(Vj(this,"Will abort after "+this.J+"ms if incomplete, xhr2 "+this.va)),
this.va?(this.i.timeout=this.J,this.i.ontimeout=(0,g.Ra)(this.FI,this)):this.ea=g.Ei(this.FI,this.J,this)),ij(Vj(this,"Sending request")),this.Y=!0,this.i.send(a),this.Y=!1}catch(k){ij(Vj(this,"Send error: "+k.message)),Sj(this,k)}};
g.h.FI=function(){"undefined"!=typeof Tj&&this.i&&(this.B="Timed out after "+this.J+"ms, aborting",this.j=8,Vj(this,this.B),this.dispatchEvent("timeout"),this.abort(8))};
g.h.abort=function(a){this.i&&this.C&&(Vj(this,"Aborting"),this.C=!1,this.I=!0,this.i.abort(),this.I=!1,this.j=a||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Rj(this))};
g.h.ra=function(){this.i&&(this.C&&(this.C=!1,this.I=!0,this.i.abort(),this.I=!1),Rj(this,!0));g.Oj.ue.ra.call(this)};
g.h.KN=function(){this.isDisposed()||(this.Ia||this.Y||this.I?Xj(this):this.KW())};
g.h.KW=function(){Xj(this)};
g.h.isActive=function(){return!!this.i};
g.h.isComplete=function(){return 4==g.Uj(this)};
g.h.getStatus=function(){try{return 2<g.Uj(this)?this.i.status:-1}catch(a){return-1}};
g.h.getResponseHeader=function(a){if(this.i&&this.isComplete())return a=this.i.getResponseHeader(a),null===a?void 0:a};
g.h.getLastError=function(){return"string"===typeof this.B?this.B:String(this.B)};g.v(nk,g.E);g.v(ok,g.E);g.v(pk,g.E);pk.prototype.L=function(){return null!=g.Cd(this,7)};
var Tba=[3,20,27];g.v(qk,g.E);var Uba=[3,5];g.v(rk,g.E);var Vba=[5];g.v(sk,g.E);var kSa=Ee(175237375,{qfa:0},sk,function(a,b){if(null!=b){var c={Nfa:Ud(b,1,-1)};a&&(c.OP=b);return c}});g.v(wk,g.Uf);g.h=wk.prototype;g.h.ra=function(){this.yE();g.Uf.prototype.ra.call(this)};
g.h.dispatch=function(a){if(a instanceof pk)this.log(a);else{var b=new pk;a=ce(a);b=g.D(b,8,a);this.log(b)}};
g.h.log=function(a){a=a.clone();var b=this.jb++;g.D(a,21,b);this.Y&&g.D(a,26,this.Y);if(!g.Cd(a,1)){b=a;var c=Date.now().toString();g.D(b,1,c)}null!=g.Cd(a,15)||g.D(a,15,60*(new Date).getTimezoneOffset());this.B&&(b=this.B.clone(),Pd(a,16,b));for(;1E3<=this.j.length;)this.j.shift(),++this.J;this.j.push(a);this.dispatchEvent(new zk(a));this.xa||this.i.enabled||this.i.start()};
g.h.flush=function(a,b){var c=this;if(0===this.j.length)a&&a();else if(this.ya)Xba(this);else{var d=Date.now();if(this.Ya>d&&this.Ha<d)b&&b("throttled");else{var e=this.I.Wd(this.j,this.J);d={};var f=this.Ta();f&&(d.Authorization=f);var k=xk(this);this.W&&(d["X-Goog-AuthUser"]=this.W,k=Ij(k,"authuser",this.W));this.pageId&&(d["X-Goog-PageId"]=this.pageId,k=Ij(k,"pageId",this.pageId));if(f&&this.Wa===f)b&&b("stale-auth-token");else{this.j=[];this.i.enabled&&this.i.stop();this.J=0;var l=ce(e),m;this.N&&
this.N.isSupported(l.length)&&(m=this.N.compress(l));var n={url:k,body:l,nS:1,Nq:d,requestType:"POST",withCredentials:this.withCredentials,timeoutMillis:this.timeoutMillis},p=function(w){c.C.reset();c.i.setInterval(c.C.getValue());if(w){var x=null;try{var y=JSON.parse(w.replace(")]}'\n",""));x=new rk(y)}catch(z){}x&&(w=Number(Hd(x,1,"-1")),0<w&&(c.Ha=Date.now(),c.Ya=c.Ha+w),x=x.C(kSa))&&(x=Ud(x,1,-1),-1!=x&&(c.Qa||yk(c,x)))}a&&a()},r=function(w){var x=Od(e,pk,3);
g.kj(c.C);c.i.setInterval(c.C.getValue());401===w&&f&&(c.Wa=f);if(500<=w&&600>w||401===w||0===w)c.j=x.concat(c.j),c.xa||c.i.enabled||c.i.start();b&&b("net-send-failed",w)},t=function(){c.network.send(n,p,r)};
m?m.then(function(w){n.Nq["Content-Encoding"]="gzip";n.Nq["Content-Type"]="application/binary";n.body=w;n.nS=2;t()},function(){t()}):t()}}}};
g.h.yE=function(){this.flush()};
g.v(zk,g.Ve);tk.prototype.Wd=function(a,b){b=void 0===b?0:b;var c=this.i.clone();var d=Date.now().toString();c=g.D(c,4,d);a=Rd(c,3,a);b&&g.D(a,14,b);return a};Bk.prototype.Wd=function(){var a=new wk(1654,this.W?this.W:gj,"0",this.Y,this.u,this.B,!1,!this.xa,void 0,void 0,this.ea?this.ea:void 0);this.J&&uk(a.I,this.J);if(this.j){var b=this.j,c=Ak(a.I);g.D(c,7,b)}this.C&&(a.N=this.C);this.i&&(a.Y=this.i);this.I&&((b=this.I)?(a.B||(a.B=new hj),b=ce(b),g.D(a.B,4,b)):a.B&&g.D(a.B,4,void 0,!1));this.va&&(b=this.va,a.B||(a.B=new hj),Id(a.B,2,b));this.N&&(b=this.N,a.Qa=!0,yk(a,b));return a};Ck.prototype.flush=function(a){a=a||[];if(a.length){for(var b=new Vi,c=[],d=0;d<a.length;d++){var e=a[d],f=g.Yi(e);c.push(f);e.clear()}Rd(b,1,c);this.i.dispatch(b);this.i.flush()}};g.v(Ek,Error);Ek.prototype.name="RpcError";Fk.prototype.done=function(){this.logger.EM(this.i,Date.now()-this.startMillis)};
Gk.prototype.Lw=function(){};
Gk.prototype.EM=function(){};
Gk.prototype.IF=function(a,b,c){return c};
Hk.prototype.Lw=function(a){this.clientError.i.DI("/client_streamz/po/w/cec",a,this.Vj)};
Hk.prototype.EM=function(a,b){this.j.rl(b,a,this.Vj)};
Hk.prototype.IF=function(a,b,c){function d(k){var l=Date.now()-f;e.u.rl(l,a,b,k,e.Vj)}
var e=this,f=Date.now();c.then(function(){d(0)},function(k){k instanceof Ek?d(k.code):d(-1)});
return c};g.v(Ik,g.E);g.v(Jk,g.E);g.v(Kk,g.E);Kk.xU="bfkj";Mk.prototype.snapshot=function(a){if(this.i)throw Error("Already disposed");return this.j.then(function(b){var c=b.kS;return new Promise(function(d){c(function(e){d(e)},[a.Dv,
a.GY])})})};
Mk.prototype.VO=function(a){if(this.i)throw Error("Already disposed");return this.u([a.Dv,a.GY])};
Mk.prototype.dispose=function(){this.i=!0;this.j.then(function(a){(a=a.FY)&&a()})};
Mk.prototype.isDisposed=function(){return this.i};/*

 SPDX-License-Identifier: Apache-2.0
*/
var Zk={};var Nk;g.v(Pk,Ok);Pk.prototype.toString=function(){return this.i.toString()};g.v(Rk,Qk);Rk.prototype.toString=function(){return this.i};
var Bya=new Rk("about:invalid#zTSz",Zk);g.v($k,g.E);g.v(al,g.E);g.v(bl,g.E);cl.prototype.ping=function(a,b){var c=this,d,e;return g.B(function(f){d=c.i();e=b||new bl;var k=g.D(e,1,c.Vj);g.D(k,2,a);return g.A(f,c.client.ping(e,d),0)})};fa.Object.defineProperties(el.prototype,{j:{configurable:!0,enumerable:!0,get:function(){return this.i.a}},
u:{configurable:!0,enumerable:!0,get:function(){return this.i.b}}});g.v(fl,g.E);gl.prototype.Mz=function(){return this.u};
gl.prototype.getMetadata=function(){return this.j};hl.prototype.getMetadata=function(){return this.i};
hl.prototype.Mz=function(){return this.j};
hl.prototype.getStatus=function(){return null};il.prototype.getName=function(){return this.name};var lSa=new il("/google.internal.waa.v1.Waa/Create",$k,fl,function(a){return ce(a)},function(a){return de(fl,a)});g.v(kl,g.E);var gca=new il("/google.internal.waa.v1.Waa/GenerateIT",al,kl,function(a){return ce(a)},function(a){return de(kl,a)});g.v(ll,g.E);var mSa=new il("/google.internal.waa.v1.Waa/Ping",bl,ll,function(a){return ce(a)},function(a){return de(ll,a)});var tca=Promise;g.v(ml,g.E);ml.prototype.getValue=function(){return Hd(this,2,"")};
ml.prototype.setValue=function(a){null!=a&&0!==a.length?g.D(this,2,a):g.D(this,2,void 0,!1);return this};g.v(nl,g.E);nl.prototype.getMessage=function(){return Hd(this,2,"")};
var ica=[3];ol.prototype.Im=function(a,b){"data"==a?this.u.push(b):"metadata"==a?this.C.push(b):"status"==a?this.I.push(b):"end"==a?this.B.push(b):"error"==a&&this.j.push(b);return this};
ol.prototype.removeListener=function(a,b){"data"==a?ul(this.u,b):"metadata"==a?ul(this.C,b):"status"==a?ul(this.I,b):"end"==a?ul(this.B,b):"error"==a&&ul(this.j,b);return this};
ol.prototype.cancel=function(){this.i.abort()};
ol.prototype.cancel=ol.prototype.cancel;ol.prototype.removeListener=ol.prototype.removeListener;ol.prototype.on=ol.prototype.Im;g.Ua(vl,pj);vl.prototype.i=function(){return new wl(this.C,this.u)};
vl.prototype.B=Yf({});g.Ua(wl,g.Uf);g.h=wl.prototype;g.h.open=function(a,b){if(0!=this.readyState)throw this.abort(),Error("Error reopening a connection");this.ea=a;this.Y=b;this.readyState=1;yl(this)};
g.h.send=function(a){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.i=!0;var b={headers:this.W,method:this.ea,credentials:this.I,cache:void 0};a&&(b.body=a);(this.va||g.C).fetch(new Request(this.Y,b)).then(this.ET.bind(this),this.Yz.bind(this))};
g.h.abort=function(){this.response=this.responseText="";this.W=new Headers;this.status=0;this.B&&this.B.cancel("Request was aborted.");1<=this.readyState&&this.i&&4!=this.readyState&&(this.i=!1,zl(this));this.readyState=0};
g.h.ET=function(a){if(this.i&&(this.C=a,this.j||(this.status=this.C.status,this.statusText=this.C.statusText,this.j=a.headers,this.readyState=2,yl(this)),this.i&&(this.readyState=3,yl(this),this.i)))if("arraybuffer"===this.responseType)a.arrayBuffer().then(this.CT.bind(this),this.Yz.bind(this));else if("undefined"!==typeof g.C.ReadableStream&&"body"in a){this.B=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.N=new TextDecoder;xl(this)}else a.text().then(this.DT.bind(this),this.Yz.bind(this))};
g.h.uT=function(a){if(this.i){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.N.decode(b,{stream:!a.done}))this.response=this.responseText+=b}a.done?zl(this):yl(this);3==this.readyState&&xl(this)}};
g.h.DT=function(a){this.i&&(this.response=this.responseText=a,zl(this))};
g.h.CT=function(a){this.i&&(this.response=a,zl(this))};
g.h.Yz=function(){this.i&&zl(this)};
g.h.setRequestHeader=function(a,b){this.W.append(a,b)};
g.h.getResponseHeader=function(a){return this.j?this.j.get(a.toLowerCase())||"":""};
g.h.getAllResponseHeaders=function(){if(!this.j)return"";for(var a=[],b=this.j.entries(),c=b.next();!c.done;)c=c.value,a.push(c[0]+": "+c[1]),c=b.next();return a.join("\r\n")};
Object.defineProperty(wl.prototype,"withCredentials",{get:function(){return"include"===this.I},
set:function(a){this.I=a?"include":"same-origin"}});g.Al.prototype.toString=function(){var a=[],b=this.B;b&&a.push(Sl(b,nSa,!0),":");var c=this.i;if(c||"file"==b)a.push("//"),(b=this.N)&&a.push(Sl(b,nSa,!0),"@"),a.push(gh(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.u,null!=c&&a.push(":",String(c));if(c=this.getPath())this.i&&"/"!=c.charAt(0)&&a.push("/"),a.push(Sl(c,"/"==c.charAt(0)?oSa:pSa,!0));(c=this.j.toString())&&a.push("?",c);(c=this.C)&&a.push("#",Sl(c,qSa));return a.join("")};
g.Al.prototype.resolve=function(a){var b=this.clone(),c=!!a.B;c?g.Bl(b,a.B):c=!!a.N;c?b.N=a.N:c=!!a.i;c?g.Cl(b,a.i):c=null!=a.u;var d=a.getPath();if(c)g.Dl(b,a.u);else if(c=!!a.J){if("/"!=d.charAt(0))if(this.i&&!this.J)d="/"+d;else{var e=b.getPath().lastIndexOf("/");-1!=e&&(d=b.getPath().substr(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(-1!=e.indexOf("./")||-1!=e.indexOf("/.")){d=jb(e,"/");e=e.split("/");for(var f=[],k=0;k<e.length;){var l=e[k++];"."==l?d&&k==e.length&&f.push(""):".."==l?((1<f.length||
1==f.length&&""!=f[0])&&f.pop(),d&&k==e.length&&f.push("")):(f.push(l),d=!0)}d=f.join("/")}else d=e}c?b.J=d:c=""!==a.j.toString();c?El(b,a.j.clone()):c=!!a.C;c&&(b.C=a.C);return b};
g.Al.prototype.clone=function(){return new g.Al(this)};
g.Al.prototype.getPath=function(){return this.J};
var nSa=/[#\/\?@]/g,pSa=/[#\?:]/g,oSa=/[#\?]/g,pca=/[#\?@]/g,qSa=/#/g;g.h=Rl.prototype;g.h.add=function(a,b){Vl(this);this.u=null;a=Wl(this,a);var c=this.i.get(a);c||this.i.set(a,c=[]);c.push(b);this.j=this.j+1;return this};
g.h.remove=function(a){Vl(this);a=Wl(this,a);return this.i.has(a)?(this.u=null,this.j=this.j-this.i.get(a).length,this.i.delete(a)):!1};
g.h.clear=function(){this.i=this.u=null;this.j=0};
g.h.isEmpty=function(){Vl(this);return 0==this.j};
g.h.forEach=function(a,b){Vl(this);this.i.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};
g.h.jm=function(){Vl(this);for(var a=Array.from(this.i.values()),b=Array.from(this.i.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.h.Bi=function(a){Vl(this);var b=[];if("string"===typeof a)Xl(this,a)&&(b=b.concat(this.i.get(Wl(this,a))));else{a=Array.from(this.i.values());for(var c=0;c<a.length;c++)b=b.concat(a[c])}return b};
g.h.set=function(a,b){Vl(this);this.u=null;a=Wl(this,a);Xl(this,a)&&(this.j=this.j-this.i.get(a).length);this.i.set(a,[b]);this.j=this.j+1;return this};
g.h.get=function(a,b){if(!a)return b;a=this.Bi(a);return 0<a.length?String(a[0]):b};
g.h.toString=function(){if(this.u)return this.u;if(!this.i)return"";for(var a=[],b=Array.from(this.i.keys()),c=0;c<b.length;c++){var d=b[c],e=gh(d);d=this.Bi(d);for(var f=0;f<d.length;f++){var k=e;""!==d[f]&&(k+="="+gh(d[f]));a.push(k)}}return this.u=a.join("&")};
g.h.clone=function(){var a=new Rl;a.u=this.u;this.i&&(a.i=new Map(this.i),a.j=this.j);return a};
g.h.extend=function(a){for(var b=0;b<arguments.length;b++)nca(arguments[b],function(c,d){this.add(d,c)},this)};g.Ua(g.Zl,g.G);var rSa=[];g.h=g.Zl.prototype;g.h.Pa=function(a,b,c,d){Array.isArray(b)||(b&&(rSa[0]=b.toString()),b=rSa);for(var e=0;e<b.length;e++){var f=Jf(a,b[e],c||this.handleEvent,d||!1,this.j||this);if(!f)break;this.i[f.key]=f}return this};
g.h.tA=function(a,b,c,d){return $l(this,a,b,c,d)};
g.h.xc=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)this.xc(a,b[f],c,d,e);else c=c||this.handleEvent,d=g.Oa(d)?!!d.capture:!!d,e=e||this.j||this,c=Kf(c),d=!!d,b=cf(a)?a.gw(b,c,d,e):a?(a=Mf(a))?a.gw(b,c,d,e):null:null,b&&(Rf(b),delete this.i[b.key])};
g.h.ra=function(){g.Zl.ue.ra.call(this);g.am(this)};
g.h.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};bm.prototype.isInputValid=function(){return this.u};dm.prototype.isInputValid=function(){return 3!=this.i};
dm.prototype.Be=function(){return this.I};
dm.prototype.Ly=function(){return!0};
dm.prototype.parse=function(a){function b(m){m&128&&em(f,k,l,"invalid tag");2!=(m&7)&&em(f,k,l,"invalid wire type");f.u=m>>>3;1!=f.u&&2!=f.u&&15!=f.u&&em(f,k,l,"unexpected tag");f.i=1;f.j=0;f.B=0}
function c(m){f.B++;5==f.B&&m&240&&em(f,k,l,"message length too long");f.j|=(m&127)<<7*(f.B-1);m&128||(f.i=2,f.N=0,"undefined"!==typeof Uint8Array?f.C=new Uint8Array(f.j):f.C=Array(f.j),0==f.j&&e())}
function d(m){f.C[f.N++]=m;f.N==f.j&&e()}
function e(){if(15>f.u){var m={};m[f.u]=f.C;f.J.push(m)}f.i=0}
for(var f=this,k=a instanceof Array?a:new Uint8Array(a),l=0;l<k.length;){switch(f.i){case 3:em(f,k,l,"stream already broken");break;case 0:b(k[l]);break;case 1:c(k[l]);break;case 2:d(k[l]);break;default:throw Error("unexpected parser state: "+f.i);}f.W++;l++}a=f.J;f.J=[];return 0<a.length?a:null};fm.prototype.isInputValid=function(){return null===this.i};
fm.prototype.Be=function(){return this.i};
fm.prototype.Ly=function(){return!1};
fm.prototype.parse=function(a){null!==this.i&&gm(this,a,"stream already broken");var b=null;try{var c=this.u;c.u||cm(c,a,"stream already broken");c.i+=a;var d=Math.floor(c.i.length/4);if(0==d)var e=null;else{try{var f=Mc(c.i.substr(0,4*d))}catch(k){cm(c,c.i,k.message)}c.j+=4*d;c.i=c.i.substr(4*d);e=f}b=null===e?null:this.B.parse(e)}catch(k){gm(this,a,k.message)}this.j+=a.length;return b};var sSa={INIT:0,fv:1,eD:2,Vr:3,Iu:4,Hu:5,STRING:6,YC:7,vJ:8,IJ:9,JJ:10,KJ:11,rI:12,sI:13,tI:14,uI:15,zJ:16,AJ:17,BJ:18,TR:19,cD:20};g.h=im.prototype;g.h.isInputValid=function(){return 3!=this.C};
g.h.Be=function(){return this.W};
g.h.done=function(){return 2===this.C};
g.h.Ly=function(){return!1};
g.h.parse=function(a){function b(){for(;t<a.length;)if(hm(a[t]))t++,f.u++;else break;return t<n}
function c(){for(var x;;){x=a[t++];if(!x)break;f.u++;switch(f.i){case m.INIT:"{"===x?f.i=m.eD:"["===x?f.i=m.Iu:hm(x)||jm(f,a,t);continue;case m.YC:case m.eD:if(hm(x))continue;if(f.i===m.YC)k.push(m.vJ);else if("}"===x){e("{}");f.i=d();continue}else k.push(m.Vr);'"'===x?f.i=m.STRING:jm(f,a,t);continue;case m.vJ:case m.Vr:if(hm(x))continue;":"===x?(f.i===m.Vr&&(k.push(m.Vr),f.j++),f.i=m.fv):"}"===x?(f.j--,e(),f.i=d()):","===x?(f.i===m.Vr&&k.push(m.Vr),f.i=m.YC):jm(f,a,t);continue;case m.Iu:case m.fv:if(hm(x))continue;
if(f.i===m.Iu)if(f.j++,f.i=m.fv,"]"===x){f.j--;if(0===f.j){f.i=m.Hu;return}e("[]");f.i=d();continue}else k.push(m.Hu);'"'===x?f.i=m.STRING:"{"===x?f.i=m.eD:"["===x?f.i=m.Iu:"t"===x?f.i=m.IJ:"f"===x?f.i=m.rI:"n"===x?f.i=m.zJ:"-"!==x&&(-1!=="0123456789".indexOf(x)?f.i=m.cD:jm(f,a,t));continue;case m.Hu:if(","===x)k.push(m.Hu),f.i=m.fv,1===f.j&&(r=t);else if("]"===x){f.j--;if(0===f.j)return;e();f.i=d()}else if(hm(x))continue;else jm(f,a,t);continue;case m.STRING:var y=t;a:for(;;){for(;0<f.N;)if(x=a[t++],
4===f.N?f.N=0:f.N++,!x)break a;if('"'===x&&!f.J){f.i=d();break}if("\\"===x&&!f.J&&(f.J=!0,x=a[t++],!x))break;if(f.J)if(f.J=!1,"u"===x&&(f.N=1),x=a[t++])continue;else break;l.lastIndex=t;x=l.exec(a);if(!x){t=a.length+1;break}t=x.index+1;x=a[x.index];if(!x)break}f.u+=t-y;continue;case m.IJ:if(!x)continue;"r"===x?f.i=m.JJ:jm(f,a,t);continue;case m.JJ:if(!x)continue;"u"===x?f.i=m.KJ:jm(f,a,t);continue;case m.KJ:if(!x)continue;"e"===x?f.i=d():jm(f,a,t);continue;case m.rI:if(!x)continue;"a"===x?f.i=m.sI:
jm(f,a,t);continue;case m.sI:if(!x)continue;"l"===x?f.i=m.tI:jm(f,a,t);continue;case m.tI:if(!x)continue;"s"===x?f.i=m.uI:jm(f,a,t);continue;case m.uI:if(!x)continue;"e"===x?f.i=d():jm(f,a,t);continue;case m.zJ:if(!x)continue;"u"===x?f.i=m.AJ:jm(f,a,t);continue;case m.AJ:if(!x)continue;"l"===x?f.i=m.BJ:jm(f,a,t);continue;case m.BJ:if(!x)continue;"l"===x?f.i=d():jm(f,a,t);continue;case m.TR:"."===x?f.i=m.cD:jm(f,a,t);continue;case m.cD:if(-1!=="0123456789.eE+-".indexOf(x))continue;else t--,f.u--,f.i=
d();continue;default:jm(f,a,t)}}}
function d(){var x=k.pop();return null!=x?x:m.fv}
function e(x){1<f.j||(x||(x=-1===r?f.B+a.substring(p,t):a.substring(r,t)),f.Y?f.I.push(x):f.I.push(JSON.parse(x)),r=t)}
for(var f=this,k=f.ea,l=f.va,m=sSa,n=a.length,p=0,r=-1,t=0;t<n;)switch(f.C){case 3:return jm(f,a,t),null;case 2:return b()&&jm(f,a,t),null;case 0:if(b()){var w=a[t++];f.u++;if("["===w){f.C=1;p=t;f.i=m.Iu;continue}else jm(f,a,t)}return null;case 1:return c(),0===f.j&&f.i==m.Hu?(f.C=2,f.B=a.substring(t)):f.B=-1===r?f.B+a.substring(p):a.substring(r),0<f.I.length?(w=f.I,f.I=[],w):null}return null};km.prototype.isInputValid=function(){return null===this.C};
km.prototype.Be=function(){return this.C};
km.prototype.Ly=function(){return!1};
km.prototype.parse=function(a){function b(m){f.j=6;f.C="The stream is broken @"+f.i+"/"+k+". Error: "+m+". With input:\n";throw Error(f.C);}
function c(){f.u=new im({Sea:!0,LS:!0})}
function d(m){if(m)for(var n=0;n<m.length;n++){var p={};p[1]=m[n];f.B.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.B.push(n)}}
for(var f=this,k=0;k<a.length;){var l;if(l=2!==f.j){a:{for(;k<a.length;){if(!hm(a[k])){l=!0;break a}k++;f.i++}l=!1}l=!l}if(l)return null;switch(f.j){case 6:b("stream already broken");break;case 0:"["===a[k]?(f.j=1,k++,f.i++):b("unexpected input token");break;case 1:"["===a[k]?(f.j=2,c()):","===a[k]||"null,"==a.substr(k,5)?f.j=3:"]"===a[k]?(f.j=5,k++,f.i++):b("unexpected input token");break;case 2:l=f.u.parse(a.substring(k));d(l);f.u.done()?(f.j=3,l=f.u.B,f.i+=a.length-k-l.length,a=l,k=0):(f.i+=a.length-
k,k=a.length);break;case 3:","===a[k]||"null,"==a.substr(k,5)?(f.j=4,c(),f.u.parse("["),k+=","===a[k]?1:5,f.i++):"]"===a[k]&&(f.j=5,k++,f.i++);break;case 4:l=f.u.parse(a.substring(k));e(l);f.u.done()?(f.j=5,l=f.u.B,f.i+=a.length-k-l.length,a=l,k=0):(f.i+=a.length-k,k=a.length);break;case 5:b("extra input after stream end")}}return 0<f.B.length?(a=f.B,f.B=[],a):null};lm.prototype.getStatus=function(){return this.B};
lm.prototype.Y=function(a){a=a.target;try{if(a==this.i)a:{var b=g.Uj(this.i),c=this.i.j,d=this.i.getStatus(),e=g.lk(this.i);a=[];if(mk(this.i)instanceof Array){var f=mk(this.i);0<f.length&&f[0]instanceof Uint8Array&&(this.W=!0,a=f)}if(!(3>b||3==b&&!e&&0==a.length))if(d=200==d||206==d,4==b&&(8==c?mm(this,7):7==c?mm(this,8):d||mm(this,3)),this.j||(this.j=sca(this.i),null==this.j&&mm(this,5)),2<this.B)nm(this);else{if(a.length>this.u){var k=a.length;c=[];try{if(this.j.Ly())for(var l=0;l<k;l++){var m=
this.j.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<k;l++)m+=this.I.decode(a[l],{stream:4==b&&l==k-1});c=this.j.parse(m)}a.splice(0,k);c&&this.C(c)}catch(p){mm(this,5);nm(this);break a}}else if(e.length>this.u){l=e.substr(this.u);this.u=e.length;try{var n=this.j.parse(l);null!=n&&this.C&&this.C(n)}catch(p){mm(this,5);nm(this);break a}}4==b?(0!=e.length||
this.W?mm(this,2):mm(this,4),nm(this)):mm(this,1)}}}catch(p){mm(this,6),nm(this)}};g.h=om.prototype;g.h.Im=function(a,b){var c=this.j[a];c||(c=[],this.j[a]=c);c.push(b);return this};
g.h.addListener=function(a,b){this.Im(a,b);return this};
g.h.removeListener=function(a,b){var c=this.j[a];c&&g.fc(c,b);(a=this.i[a])&&g.fc(a,b);return this};
g.h.once=function(a,b){var c=this.i[a];c||(c=[],this.i[a]=c);c.push(b);return this};
g.h.FV=function(a){var b=this.j.data;b&&pm(a,b);(b=this.i.data)&&pm(a,b);this.i.data=[]};
g.h.qX=function(){switch(this.u.getStatus()){case 1:qm(this,"readable");break;case 5:case 6:case 4:case 7:case 3:qm(this,"error");break;case 8:qm(this,"close");break;case 2:qm(this,"end")}};rm.prototype.serverStreaming=function(a,b,c,d){var e=this,f=a.substr(0,a.length-d.name.length);return sm(function(k){var l=k.Mz(),m=k.getMetadata(),n=tm(e,!1);m=um(e,m,n,f+l.getName());var p=vm(n,l.j,!0);k=l.i(k.i);n.send(m,"POST",k);return p},this.B).call(this,jl(d,b,c))};wm.prototype.create=function(a,b){return dl(this.i,"https://web.archive.org/web/20220130220643/https://jnn-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/Create",a,b||{},lSa)};
wm.prototype.ping=function(a,b){return dl(this.i,"https://web.archive.org/web/20220130220643/https://jnn-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/Ping",a,b||{},mSa)};g.v(Am,Error);g.v(Bm,g.G);g.v(Em,Bm);Em.prototype.xt=function(a){++this.B>=this.C&&this.j.resolve();var b=new Fk(this.logger,"C");a=new el(this.u(a.Dv));b.done();b=a.j;var c=this.i;c=Nd(c,Ke,3===Kd(c,Ne)?3:-1);c||(c=new Ke,a=Oc(a.u),g.D(c,2,a),Qd(this.i,3,Ne,c));g.D(c,1,b);return g.te(this.i,Saa)};
g.v(Fm,Bm);Fm.prototype.xt=function(){return this.i};
g.v(Gm,Bm);Gm.prototype.xt=function(){if(this.i){var a=this.i;this.i=void 0;return a}return this.u};
zm.prototype.isReady=function(){return!!this.i};
zm.prototype.ready=function(){var a=this;return g.B(function(b){return g.A(b,a.j.promise,0)})};
zm.prototype.xt=function(a){var b=new Fk(this.logger,"m");if(!this.i)throw Error("SGK:Not ready");try{return this.i.xt(a)}catch(e){var c=new Am(5,e);this.logger.Lw(c.code);var d;null==(d=this.onError)||d.call(this,c);return(new Gm(c)).xt()}finally{b.done()}};var gp;gp=["av.default","js","unreleased"].slice(-1)[0];var Wo=document,Xm=window;var Gca={NONE:0,i4:1},sda={aQ:0,Raa:1,Qaa:2,Saa:3},rda={F_:"a",Y3:"d",VIDEO:"v"};Jm.prototype.isVisible=function(){return this.jq?.3<=this.hd:.5<=this.hd};var Tm={C0:0,y4:1},pda={NONE:0,O5:1,U4:2};Km.prototype.getValue=function(){return this.j};
g.v(Lm,Km);Lm.prototype.setValue=function(a){if(null!==this.j||!g.rf(this.u,a))return!1;this.j=a;return!0};
g.v(Mm,Km);Mm.prototype.setValue=function(a){if(null!==this.j||"number"!==typeof a)return!1;this.j=a;return!0};
g.v(Nm,Km);Nm.prototype.setValue=function(a){if(null!==this.j||"string"!==typeof a)return!1;this.j=a;return!0};Om.prototype.disable=function(){this.j=!1};
Om.prototype.enable=function(){this.j=!0};
Om.prototype.isEnabled=function(){return this.j};
Om.prototype.reset=function(){this.i={};this.j=!0;this.u={}};var oea=!g.Nc&&!Jb();Um.prototype.now=function(){return 0};
Um.prototype.j=function(){return 0};
Um.prototype.u=function(){return 0};
Um.prototype.i=function(){return 0};g.v(Wm,Um);Wm.prototype.now=function(){return Vm()&&Xm.performance.now?Xm.performance.now():Um.prototype.now.call(this)};
Wm.prototype.j=function(){return Vm()&&Xm.performance.memory?Xm.performance.memory.totalJSHeapSize||0:Um.prototype.j.call(this)};
Wm.prototype.u=function(){return Vm()&&Xm.performance.memory?Xm.performance.memory.usedJSHeapSize||0:Um.prototype.u.call(this)};
Wm.prototype.i=function(){return Vm()&&Xm.performance.memory?Xm.performance.memory.jsHeapSizeLimit||0:Um.prototype.i.call(this)};var Jca=ag(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
g.C.addEventListener("test",null,b)}catch(c){}return a});var bn=new function(a,b){this.flag=a;this.defaultValue=void 0===b?!1:b}(1959);dn.prototype.isVisible=function(){return 1===cn(Wo)};g.kg("csi.gstatic.com");g.kg("googleads.g.doubleclick.net");g.kg("partner.googleadservices.com");g.kg("pubads.g.doubleclick.net");g.kg("securepubads.g.doubleclick.net");g.kg("tpc.googlesyndication.com");var Nca=/https?:\/\/[^\/]+/,Lca={YZ:"allow-forms",ZZ:"allow-modals",a_:"allow-orientation-lock",b_:"allow-pointer-lock",c_:"allow-popups",d_:"allow-popups-to-escape-sandbox",e_:"allow-presentation",f_:"allow-same-origin",g_:"allow-scripts",h_:"allow-top-navigation",i_:"allow-top-navigation-by-user-activation"},Qca=ag(function(){return Mca()});g.h=mn.prototype;g.h.getHeight=function(){return this.bottom-this.top};
g.h.clone=function(){return new mn(this.top,this.right,this.bottom,this.left)};
g.h.contains=function(a){return this&&a?a instanceof mn?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1};
g.h.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};
g.h.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};
g.h.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};
g.h.scale=function(a,b){b="number"===typeof b?b:a;this.left*=a;this.right*=a;this.top*=b;this.bottom*=b;return this};g.h=g.qn.prototype;g.h.clone=function(){return new g.qn(this.left,this.top,this.width,this.height)};
g.h.contains=function(a){return a instanceof g.bh?a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height:this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height};
g.h.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.h.getSize=function(){return new g.dh(this.width,this.height)};
g.h.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
g.h.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
g.h.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
g.h.scale=function(a,b){b="number"===typeof b?b:a;this.left*=a;this.width*=a;this.top*=b;this.height*=b;return this};var un=[tn("data"),tn("http"),tn("https"),tn("mailto"),tn("ftp"),new sn(function(a){return/^[^:]*([/?#]|$)/.test(a)})];var yn={};var Wca=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");so.prototype.setInterval=function(a,b){return Xm.setInterval(a,b)};
so.prototype.clearInterval=function(a){Xm.clearInterval(a)};
so.prototype.setTimeout=function(a,b){return Xm.setTimeout(a,b)};
so.prototype.clearTimeout=function(a){Xm.clearTimeout(a)};hda.prototype.getContext=function(){if(!this.i){if(!Xm)throw Error("Context has not been set and window is undefined.");this.i=an(so)}return this.i};g.v(ida,g.E);var qda={paa:1,aS:2,p9:3};qg(jg(g.kg("https://web.archive.org/web/20220130220643/https://pagead2.googlesyndication.com/pagead/osd.js")));tda.prototype.LG=function(a){if("string"===typeof a&&0!=a.length){var b=this.featureSet;if(b.j){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.i[e])&&e.setValue(d)}}}};var j2=null;var Ao=g.C.performance,tSa=!!(Ao&&Ao.mark&&Ao.measure&&Ao.clearMarks),yo=ag(function(){var a;if(a=tSa){var b;if(null===j2){j2="";try{a="";try{a=g.C.top.location.hash}catch(c){a=g.C.location.hash}a&&(j2=(b=a.match(/\bdeid=([\d,]+)/))?b[1]:"")}catch(c){}}b=j2;a=!!b.indexOf&&0<=b.indexOf("1337")}return a});
zo.prototype.disable=function(){this.i=!1;this.events!=this.j.google_js_reporting_queue&&(yo()&&g.uc(this.events,zda),this.events.length=0)};
zo.prototype.start=function(a,b){if(!this.i)return null;var c=xda()||wda();a=new yda(a,b,c);b="goog_"+a.label+"_"+a.uniqueId+"_start";Ao&&yo()&&Ao.mark(b);return a};
zo.prototype.end=function(a){if(this.i&&"number"===typeof a.value){var b=xda()||wda();a.duration=b-a.value;b="goog_"+a.label+"_"+a.uniqueId+"_end";Ao&&yo()&&Ao.mark(b);!this.i||2048<this.events.length||this.events.push(a)}};Ada.prototype.KF=function(a,b,c,d,e){e=e||this.cL;try{var f=new lo;f.i.push(1);f.j[1]=mo("context",a);b.error&&b.meta&&b.id||(b=new Do(Eo(b)));if(b.msg){var k=b.msg.substring(0,512);f.i.push(2);f.j[2]=mo("msg",k)}var l=b.meta||{};if(this.zD)try{this.zD(l)}catch(r){}if(d)try{d(l)}catch(r){}b=[l];f.i.push(3);f.j[3]=b;var m=Yca();if(m.j){var n=m.j.url||"";f.i.push(4);f.j[4]=mo("top",n)}var p=[{url:m.i.url||""},{url:m.i.url?xj(m.i.url):""}];f.i.push(5);f.j[5]=p;xo(this.i,e,f,!1,c)}catch(r){try{xo(this.i,
e,{context:"ecmserr",rctx:a,msg:Eo(r),url:m&&m.i.url},!1,c)}catch(t){}}return this.sH};
g.v(Do,vda);var Co,Fo,Bo=new zo;(function(){Co=new uda;Fo=new Ada;var a=window;a&&a.document&&("complete"==a.document.readyState?Cda():Bo.i&&Zm(a,"load",function(){Cda()}))})();var Fda=Date.now(),Mo=-1,Ko=-1,Oea,No=-1,Lo=!1;Oo.prototype.equals=function(a,b){return!!a&&(!(void 0===b?0:b)||this.volume==a.volume)&&this.u==a.u&&on(this.i,a.i)&&!0};Po.prototype.equals=function(a,b){return this.B.equals(a.B,void 0===b?!1:b)&&this.N==a.N&&on(this.u,a.u)&&on(this.I,a.I)&&this.i==a.i&&this.C==a.C&&this.j==a.j&&this.J==a.J};var uSa={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},Sp={WR:"start",dQ:"firstquartile",RR:"midpoint",XR:"thirdquartile",XP:"complete",QR:"metric",PAUSE:"pause",UR:"resume",VR:"skip",ZR:"viewable_impression",SR:"mute",YR:"unmute",eQ:"fullscreen",cQ:"exitfullscreen",WP:"bufferstart",VP:"bufferfinish",fQ:"fully_viewable_audible_half_duration_impression",PR:"measurable_impression",PP:"abandon",bQ:"engagedview",gQ:"impression",YP:"creativeview",OR:"loaded",xaa:"progress",CLOSE:"close",
t0:"collapse",w$:"overlay_resize",x$:"overlay_unmeasurable_impression",y$:"overlay_unviewable_impression",A$:"overlay_viewable_immediate_impression",z$:"overlay_viewable_end_of_session_impression",ZP:"custom_metric_viewable",r$:"verification_debug",QP:"audio_audible",SP:"audio_measurable",RP:"audio_impression"},aga="start firstquartile midpoint thirdquartile resume loaded".split(" "),cga=["start","firstquartile","midpoint","thirdquartile"],Pea=["abandon"],lq={UNKNOWN:-1,WR:0,dQ:1,RR:2,XR:3,XP:4,QR:5,
PAUSE:6,UR:7,VR:8,ZR:9,SR:10,YR:11,eQ:12,cQ:13,fQ:14,PR:15,PP:16,bQ:17,gQ:18,YP:19,OR:20,ZP:21,WP:22,VP:23,RP:24,SP:25,QP:26};var Hda={MZ:"addEventListener",W4:"getMaxSize",X4:"getScreenSize",Y4:"getState",Z4:"getVersion",Maa:"removeEventListener",k6:"isViewable"};if(Wo&&Wo.URL){var vSa,jn=Wo.URL;vSa=!!jn&&0<Pca().length;Fo.sH=!vSa};Oda.prototype.update=function(a){a&&a.document&&(this.J=Ro(!1,a,this.isMobileDevice),this.i=Ro(!0,a,this.isMobileDevice),Qda(this,a),Pda(this,a))};Yo.prototype.cancel=function(){to().clearTimeout(this.i);this.i=null};
Yo.prototype.schedule=function(){var a=this;this.i=to().setTimeout(vo(wo().i.i,Ho(143,function(){a.j++;a.u.sample()})),Gda())};g.h=Zo.prototype;g.h.Ku=function(){return!1};
g.h.initialize=function(){return this.isInitialized=!0};
g.h.Ls=function(){return this.i.ya};
g.h.xw=function(){return this.i.Y};
g.h.fail=function(a,b){if(!this.Y||(void 0===b?0:b))this.Y=!0,this.ya=a,this.N=0,this.i!=this||ap(this)};
g.h.getName=function(){return this.i.La};
g.h.Tn=function(){return this.i.uL()};
g.h.uL=function(){return{}};
g.h.nm=function(){return this.i.N};
g.h.GI=function(){var a=Vo();a.i=Ro(!0,this.u,a.isMobileDevice)};
g.h.HI=function(){Pda(Vo(),this.u)};
g.h.CL=function(){return this.B.i};
g.h.sample=function(){};
g.h.isActive=function(){return this.i.I};
g.h.Ws=function(a){var b=this.i;this.i=a.nm()>=this.N?a:this;b!==this.i?(this.I=this.i.I,ap(this)):this.I!==this.i.I&&(this.I=this.i.I,ap(this))};
g.h.ao=function(a){if(a.j===this.i){var b=!this.B.equals(a,this.W);this.B=a;b&&Tda(this)}};
g.h.vl=function(){return this.W};
g.h.dispose=function(){this.xa=!0};
g.h.isDisposed=function(){return this.xa};g.h=bp.prototype;g.h.BC=function(){return!0};
g.h.Lu=function(){};
g.h.dispose=function(){if(!this.isDisposed()){var a=this.j;g.fc(a.C,this);a.W&&this.vl()&&Sda(a);this.Lu();this.Y=!0}};
g.h.isDisposed=function(){return this.Y};
g.h.Tn=function(){return this.j.Tn()};
g.h.nm=function(){return this.j.nm()};
g.h.Ls=function(){return this.j.Ls()};
g.h.xw=function(){return this.j.xw()};
g.h.Ws=function(){};
g.h.ao=function(){this.yn()};
g.h.vl=function(){return this.ea};g.h=cp.prototype;g.h.nm=function(){return this.i.nm()};
g.h.Ls=function(){return this.i.Ls()};
g.h.xw=function(){return this.i.xw()};
g.h.create=function(a,b,c){var d=null;this.i&&(d=this.vy(a,b,c),$o(this.i,d));return d};
g.h.II=function(){return this.Mu()};
g.h.Mu=function(){return!1};
g.h.init=function(a){return this.i.initialize()?($o(this.i,this),this.B=a,!0):!1};
g.h.Ws=function(a){0==a.nm()&&this.B(a.Ls(),this)};
g.h.ao=function(){};
g.h.vl=function(){return!1};
g.h.dispose=function(){this.C=!0};
g.h.isDisposed=function(){return this.C};
g.h.Tn=function(){return{}};dp.prototype.add=function(a,b,c){++this.u;var d=this.u/4096,e=this.i,f=e.push;a=new Uda(a,b,c);d=new Uda(a.j,a.i,a.u+d);f.call(e,d);this.j=!0;return this};Zda.prototype.toString=function(){var a="//web.archive.org/web/20220130220643/https://pagead2.googlesyndication.com//pagead/gen_204",b=fp(this.i);0<b.length&&(a+="?"+b);return a};hp.prototype.update=function(a,b,c){a&&(this.i+=b,this.j+=b,this.B+=b,this.u=Math.max(this.u,this.B));if(void 0===c?!a:c)this.B=0};var eea=[1,.75,.5,.3,0];ip.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.j.length;e++){var k=this.j[e],l=0<b&&b>=k;k=!(0<a&&a>=k)||c;this.i[e].update(f&&l,d,!f||k)}};op.prototype.update=function(a,b,c,d){this.J=-1!=this.J?Math.min(this.J,b.hd):b.hd;this.ea=Math.max(this.ea,b.hd);this.va=-1!=this.va?Math.min(this.va,b.wh):b.wh;this.ya=Math.max(this.ya,b.wh);this.Ya.update(b.wh,c.wh,b.i,a,d);this.j.update(b.hd,c.hd,b.i,a,d);c=d||c.jq!=b.jq?c.isVisible()&&b.isVisible():c.isVisible();b=!b.isVisible()||b.i;this.La.update(c,a,b)};
op.prototype.Am=function(){return this.La.u>=this.Wa};var wSa=new mn(0,0,0,0);var mea=new mn(0,0,0,0);g.v(sp,g.G);g.h=sp.prototype;g.h.ra=function(){this.Wg.i&&(this.Op.WF&&($m(this.Wg.i,"mouseover",this.Op.WF),this.Op.WF=null),this.Op.UF&&($m(this.Wg.i,"mouseout",this.Op.UF),this.Op.UF=null));this.Sx&&this.Sx.dispose();this.Td&&this.Td.dispose();delete this.AA;delete this.MF;delete this.wP;delete this.Wg.Co;delete this.Wg.i;delete this.Op;delete this.Sx;delete this.Td;delete this.featureSet;g.G.prototype.ra.call(this)};
g.h.Un=function(){return this.Td?this.Td.i:this.position};
g.h.LG=function(a){wo().LG(a)};
g.h.vl=function(){return!1};
g.h.Pz=function(){return new op};
g.h.wg=function(){return this.AA};
g.h.xL=function(a){return qea(this,a,1E4)};
g.h.Ja=function(a,b,c,d,e,f,k){this.zo||(this.nz&&(a=this.LD(a,c,e,k),d=d&&this.Cf.hd>=(this.jq()?.3:.5),this.ZH(f,a,d),this.lastUpdateTime=b,0<a.hd&&-1===this.gP&&(this.gP=b),-1==this.jP&&this.Am()&&(this.jP=b),-2==this.HF&&(this.HF=qp(this.Un())?a.hd:-1),this.Cf=a),this.MF(this))};
g.h.ZH=function(a,b,c){this.wg().update(a,b,this.Cf,c)};
g.h.NE=function(){return new Jm};
g.h.LD=function(a,b,c,d){c=this.NE();c.i=b;b=to().j;b=0===cn(Wo)?-1:b.isVisible()?0:1;c.j=b;c.hd=this.YD(a);c.jq=this.jq();c.wh=d;return c};
g.h.YD=function(a){return 0===this.opacity&&1===Rm(this.featureSet,"opac")?0:a};
g.h.jq=function(){return!1};
g.h.EB=function(){return this.dU||this.gU};
g.h.FA=function(){Jo()};
g.h.VF=function(){Jo()};
g.h.Uk=function(){return 0};
g.h.Am=function(){return this.AA.Am()};
g.h.DL=function(){return this.zo?2:this.Am()?4:3};
g.h.Hz=function(){return 0};g.wp="StopIteration"in g.C?g.C.StopIteration:{message:"StopIteration",stack:""};g.up.prototype.Mj=function(){throw g.wp;};
g.up.prototype.next=function(){return g.k2};
g.k2={done:!0,value:void 0};g.up.prototype.Pg=function(){return this};g.v(wea,Jm);var l2=yea([void 0,1,2,3,4,8,16]),m2=yea([void 0,4,8,16]),xSa={sv:"sv",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:Ap("p0",m2),p1:Ap("p1",m2),p2:Ap("p2",m2),p3:Ap("p3",m2),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:zp("mtos1",[0,2,4],!1,m2),mtos2:zp("mtos2",[0,2,4],!1,m2),mtos3:zp("mtos3",[0,2,4],!1,m2),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:Ap("a0",m2),a1:Ap("a1",m2),a2:Ap("a2",m2),a3:Ap("a3",m2),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:Ap("c0",m2),c1:Ap("c1",m2),c2:Ap("c2",m2),c3:Ap("c3",m2),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:Ap("qmtos",l2),qnc:Ap("qnc",l2),qmv:Ap("qmv",l2),qnv:Ap("qnv",l2),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:Ap("ss0",m2),ss1:Ap("ss1",m2),ss2:Ap("ss2",m2),ss3:Ap("ss3",m2),dc_rfl:"urlsigs",obd:"obd",omidp:"omidp",omidr:"omidr",omidv:"omidv",omida:"omida",omids:"omids",omidpv:"omidpv",omidam:"omidam",omidct:"omidct",omidia:"omidia"},ySa=Object.assign({},
xSa,{avid:Yf("audio"),avas:"avas",vs:"vs"}),zSa={atos:"atos",avt:zp("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"};Fp.prototype.getValue=function(){return this.j};
Fp.prototype.update=function(a,b){32<=a||(this.i&1<<a&&!b?this.j&=~(1<<a):this.i&1<<a||!b||(this.j|=1<<a),this.i|=1<<a)};g.v(Gp,op);
Gp.prototype.update=function(a,b,c,d){if(!b.paused){op.prototype.update.call(this,a,b,c,d);var e=yp(b)&&yp(c),f=.5<=(d?Math.min(b.hd,c.hd):c.hd);To(b.volume)&&(this.B=-1!=this.B?Math.min(this.B,b.volume):b.volume,this.I=Math.max(this.I,b.volume));f&&(this.xa+=a,this.W+=e?a:0);this.i.update(b.hd,c.hd,b.i,a,d,e);this.u.update(!0,a);this.C.update(e,a);this.Y.update(c.fullscreen,a);this.fb.update(e&&!f,a);a=Math.floor(b.mediaTime/1E3);this.Ha.update(a,b.isVisible());this.Ta.update(a,1<=b.hd);this.Qa.update(a,
yp(b))}};Dea.prototype.C=function(a){this.j||(this.i(a)?(a=Ofa(this.W,this.u,a),this.B|=a,a=0==a):a=!1,this.j=a)};g.v(Ip,Dea);Ip.prototype.i=function(){return!0};
Ip.prototype.I=function(){return!1};
Ip.prototype.getId=function(){var a=this,b=sf(Sp,function(c){return c==a.u});
return lq[b].toString()};
Ip.prototype.toString=function(){var a="";this.I()&&(a+="c");this.j&&(a+="s");0<this.B&&(a+=":"+this.B);return this.getId()+a};g.v(Jp,Ip);Jp.prototype.C=function(a,b){b=void 0===b?null:b;null!=b&&this.J.push(b);Ip.prototype.C.call(this,a)};g.v(Kp,bp);g.h=Kp.prototype;g.h.ND=function(){if(this.element){var a=this.element,b=this.j.i.u;try{try{var c=Lda(a.getBoundingClientRect())}catch(n){c=new mn(0,0,0,0)}var d=c.right-c.left,e=c.bottom-c.top,f=fo(a,b),k=f.x,l=f.y;var m=new mn(Math.round(l),Math.round(k+d),Math.round(l+e),Math.round(k))}catch(n){m=wSa.clone()}this.i=m}};
g.h.qK=function(){this.B=this.j.B.i};
g.h.hM=function(a){var b=1==Rm(this.featureSet,"od");return lea(a,this.B,this.element,b)};
g.h.rK=function(){this.timestamp=Jo()};
g.h.yn=function(){this.rK();this.ND();if(this.element&&"number"===typeof this.element.videoWidth&&"number"===typeof this.element.videoHeight){var a=this.element;var b=new g.dh(a.videoWidth,a.videoHeight);a=this.i;var c=nn(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.i=a}this.qK();
a=this.i;c=this.B;a=a.left<=c.right&&c.left<=a.right&&a.top<=c.bottom&&c.top<=a.bottom?new mn(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 mn(0,0,0,0);c=a.top>=a.bottom||a.left>=a.right?new mn(0,0,0,0):a;a=this.j.B;b=e=d=0;0<(this.i.bottom-this.i.top)*(this.i.right-this.i.left)&&(this.hM(c)?c=new mn(0,0,0,0):(d=Vo().B,b=new mn(0,d.height,d.width,0),d=rp(c,this.i),e=rp(c,Vo().i),b=rp(c,b)));c=c.top>=c.bottom||c.left>=c.right?new mn(0,0,0,
0):pn(c,-this.i.left,-this.i.top);Xo()||(e=d=0);this.J=new Po(a,this.element,this.i,c,d,e,this.timestamp,b)};
g.h.getName=function(){return this.j.getName()};var ASa=new mn(0,0,0,0);g.v(Lp,Kp);g.h=Lp.prototype;g.h.BC=function(){this.u();return!0};
g.h.ao=function(){Kp.prototype.yn.call(this)};
g.h.rK=function(){};
g.h.ND=function(){};
g.h.yn=function(){this.u();Kp.prototype.yn.call(this)};
g.h.Ws=function(a){a=a.isActive();a!==this.I&&(a?this.u():(Vo().i=new mn(0,0,0,0),this.i=new mn(0,0,0,0),this.B=new mn(0,0,0,0),this.timestamp=-1));this.I=a};var n2={},Nea=(n2.firstquartile=0,n2.midpoint=1,n2.thirdquartile=2,n2.complete=3,n2);g.v(Np,sp);g.h=Np.prototype;g.h.vl=function(){return!0};
g.h.zm=function(){return 2==this.Ag};
g.h.xL=function(a){return qea(this,a,Math.max(1E4,this.u/3))};
g.h.Ja=function(a,b,c,d,e,f,k){var l=this,m=this.J(this)||{};g.Bf(m,e);this.u=m.duration||this.u;this.W=m.isVpaid||this.W;this.Ia=m.isYouTube||this.Ia;e=Fea(this,b);1===Eea(this)&&(f=e);sp.prototype.Ja.call(this,a,b,c,d,m,f,k);this.xq&&this.xq.j&&g.uc(this.I,function(n){n.C(l)})};
g.h.ZH=function(a,b,c){sp.prototype.ZH.call(this,a,b,c);Qp(this).update(a,b,this.Cf,c);this.Ya=yp(this.Cf)&&yp(b);-1==this.ya&&this.Wa&&(this.ya=this.wg().u.i);this.sf.u=0;a=this.Am();b.isVisible()&&Ep(this.sf,"vs");a&&Ep(this.sf,"vw");To(b.volume)&&Ep(this.sf,"am");yp(b)&&Ep(this.sf,"a");this.Ys&&Ep(this.sf,"f");-1!=b.j&&(Ep(this.sf,"bm"),1==b.j&&Ep(this.sf,"b"));yp(b)&&b.isVisible()&&Ep(this.sf,"avs");this.Ya&&a&&Ep(this.sf,"avw");0<b.hd&&Ep(this.sf,"pv");Rp(this,this.wg().u.i,!0)&&Ep(this.sf,"gdr");
2E3<=mp(this.wg().j,1)&&Ep(this.sf,"pmx")};
g.h.Pz=function(){return new Gp};
g.h.wg=function(){return this.AA};
g.h.NE=function(){return new wea};
g.h.LD=function(a,b,c,d){a=sp.prototype.LD.call(this,a,b,c,void 0===d?-1:d);a.fullscreen=this.Ys;a.paused=this.zm();a.volume=c.volume;To(a.volume)||(this.jb++,b=this.Cf,To(b.volume)&&(a.volume=b.volume));c=c.currentTime;a.mediaTime=void 0!==c&&0<=c?c:-1;return a};
g.h.YD=function(a){return Vo(),this.Ys?1:sp.prototype.YD.call(this,a)};
g.h.Uk=function(){return 1};
g.h.getDuration=function(){return this.u};
g.h.DL=function(){return this.zo?2:Hea(this)?5:this.Am()?4:3};
g.h.Hz=function(){return this.fb?2E3<=this.wg().C.u?4:3:2};var BSa=g.Ta();Xea.prototype.reset=function(){this.i=[];this.j=[]};
var Xp=an(Xea);g.v($p,cp);g.h=$p.prototype;g.h.getName=function(){return(this.j?this.j:this.i).getName()};
g.h.Tn=function(){return(this.j?this.j:this.i).Tn()};
g.h.nm=function(){return(this.j?this.j:this.i).nm()};
g.h.init=function(a){var b=!1;(0,g.uc)(this.u,function(c){c.initialize()&&(b=!0)});
b&&(this.B=a,$o(this.i,this));return b};
g.h.dispose=function(){(0,g.uc)(this.u,function(a){a.dispose()});
cp.prototype.dispose.call(this)};
g.h.II=function(){return Uo(this.u,function(a){return a.Ku()})};
g.h.Mu=function(){return Uo(this.u,function(a){return a.Ku()})};
g.h.vy=function(a,b,c){return new Kp(a,this.i,b,c)};
g.h.ao=function(a){this.j=a.j};var ffa={threshold:[0,.3,.5,.75,1]};g.v(aq,Kp);g.h=aq.prototype;g.h.BC=function(){var a=this;this.W||(this.W=Jo());if(Eda(298,function(){return gfa(a)}))return!0;
this.j.fail("msf");return!1};
g.h.Lu=function(){if(this.u&&this.element)try{this.u.unobserve(this.element),this.I?(this.I.unobserve(this.element),this.I=null):this.C&&(this.C.disconnect(),this.C=null)}catch(a){}};
g.h.yn=function(){var a=bq(this);0<a.length&&cq(this,a);Kp.prototype.yn.call(this)};
g.h.ND=function(){};
g.h.hM=function(){return!1};
g.h.qK=function(){};
g.h.Tn=function(){var a={};return Object.assign(this.j.Tn(),(a.niot_obs=this.W,a.niot_cbk=this.N,a))};
g.h.getName=function(){return"nio"};g.v(dq,cp);dq.prototype.getName=function(){return"nio"};
dq.prototype.Mu=function(){return!Vo().j&&null!=this.i.i.u.IntersectionObserver};
dq.prototype.vy=function(a,b,c){return new aq(a,this.i,b,c)};g.v(eq,Zo);eq.prototype.CL=function(){return Vo().i};
eq.prototype.Ku=function(){var a=ifa();this.N!==a&&(this.i!=this&&a>this.i.N&&(this.i=this,ap(this)),this.N=a);return 2==a};fq.prototype.sample=function(){iq(this,Yp(),!1)};
fq.prototype.B=function(){var a=Xo(),b=Jo();a?(Lo||(Mo=b,g.uc(Xp.i,function(c){var d=c.wg();d.Ia=Hp(d,b,1!=c.Ag)})),Lo=!0):(this.J=ofa(this,b),Lo=!1,Oea=b,g.uc(Xp.i,function(c){c.nz&&(c.wg().N=b)}));
iq(this,Yp(),!a)};
var gq=an(fq);var qfa=null,Gq="",Fq=!1;var tfa=sfa().Mk,kq=sfa().version;var wfa={A4:"visible",G_:"audible",rca:"time",sca:"timetype"},xfa={visible:function(a){return/^(100|[0-9]{1,2})$/.test(a)},
audible:function(a){return"0"==a||"1"==a},
timetype:function(a){return"mtos"==a||"tos"==a},
time:function(a){return/^(100|[0-9]{1,2})%$/.test(a)||/^([0-9])+ms$/.test(a)}};g.v(oq,Ip);oq.prototype.getId=function(){return this.J};
oq.prototype.I=function(){return!0};
oq.prototype.i=function(a){var b=a.wg(),c=a.getDuration();return Uo(this.N,function(d){if(void 0!=d.i)var e=zfa(d,b);else b:{switch(d.C){case "mtos":e=d.j?b.C.u:b.u.i;break b;case "tos":e=d.j?b.C.i:b.u.i;break b}e=0}0==e?d=!1:(d=-1!=d.u?d.u:void 0!==c&&0<c?d.B*c:-1,d=-1!=d&&e>=d);return d})};g.v(pq,Afa);pq.prototype.j=function(){return null};
pq.prototype.u=function(){return[]};g.v(qq,zea);qq.prototype.i=function(a){var b=new Cp;b.i=Dp(a,xSa);b.j=Dp(a,zSa);return b};g.v(rq,Ip);rq.prototype.i=function(a){return Hea(a)};g.v(sq,Afa);g.v(tq,Ip);tq.prototype.i=function(a){return a.wg().Am()};g.v(uq,Jp);uq.prototype.i=function(a){var b=g.$b(this.J,Rm(wo().featureSet,"ovms"));return!a.zo&&(0!=a.Ag||b)};g.v(vq,sq);vq.prototype.j=function(){return new uq(this.i)};
vq.prototype.u=function(){return[new tq("viewable_impression",this.i),new rq(this.i)]};g.v(wq,Lp);wq.prototype.u=function(){var a=g.Ja("ima.admob.getViewability"),b=Rm(this.featureSet,"queryid");"function"===typeof a&&b&&a(b)};
wq.prototype.getName=function(){return"gsv"};g.v(xq,cp);xq.prototype.getName=function(){return"gsv"};
xq.prototype.Mu=function(){var a=Vo();wo();return a.j&&!1};
xq.prototype.vy=function(a,b,c){return new wq(this.i,b,c)};g.v(yq,Lp);yq.prototype.u=function(){var a=this,b=g.Ja("ima.bridge.getNativeViewability"),c=Rm(this.featureSet,"queryid");"function"===typeof b&&c&&b(c,function(d){g.uf(d)&&a.C++;var e=d.opt_nativeViewVisibleBounds||{},f=d.opt_nativeViewHidden;a.i=Mda(d.opt_nativeViewBounds||{});var k=a.j.B;k.i=f?ASa.clone():Mda(e);a.timestamp=d.opt_nativeTime||-1;Vo().i=k.i;d=d.opt_nativeVolume;void 0!==d&&(k.volume=d)})};
yq.prototype.getName=function(){return"nis"};g.v(zq,cp);zq.prototype.getName=function(){return"nis"};
zq.prototype.Mu=function(){var a=Vo();wo();return a.j&&!1};
zq.prototype.vy=function(a,b,c){return new yq(this.i,b,c)};g.v(Aq,Zo);g.h=Aq.prototype;g.h.Ku=function(){return null!=this.j.Lj};
g.h.uL=function(){var a={};this.Ha&&(a.mraid=this.Ha);this.va&&(a.mlc=1);a.mtop=this.j.HY;this.J&&(a.mse=this.J);this.Ia&&(a.msc=1);a.mcp=this.j.compatibility;return a};
g.h.Vo=function(a){var b=g.Ca.apply(1,arguments);try{return this.j.Lj[a].apply(this.j.Lj,b)}catch(c){Io(538,c,.01,function(d){d.method=a})}};
g.h.initialize=function(){var a=this;if(this.isInitialized)return!this.xw();this.isInitialized=!0;if(2===this.j.compatibility)return this.J="ng",this.fail("w"),!1;if(1===this.j.compatibility)return this.J="mm",this.fail("w"),!1;Vo().N=!0;this.u.document.readyState&&"complete"==this.u.document.readyState?Efa(this):Qo(this.u,"load",function(){to().setTimeout(Ho(292,function(){return Efa(a)}),100)},292);
return!0};
g.h.GI=function(){var a=Vo(),b=Jfa(this,"getMaxSize");a.i=new mn(0,b.width,b.height,0)};
g.h.HI=function(){Vo().B=Jfa(this,"getScreenSize")};
g.h.dispose=function(){Gfa(this);Zo.prototype.dispose.call(this)};g.h=Cq.prototype;g.h.Hv=function(a){tp(a,!1);afa(a)};
g.h.Uz=function(){};
g.h.Bx=function(a,b,c,d){var e=this;b=c?b:-1;c=this.MK();a=new Np(Xm,a,b,7,this.fE(),c.j(),c.u());a.Lf=d;Eca(a.featureSet);Qm(a.featureSet,"queryid",a.Lf);a.LG("");tea(a,function(){return e.KL.apply(e,g.u(g.Ca.apply(0,arguments)))},function(){return e.GT.apply(e,g.u(g.Ca.apply(0,arguments)))});
(d=an(Zp).i)&&pea(a,d);a.Wg.Co&&an(jfa);return a};
g.h.Ws=function(a){switch(a.nm()){case 0:if(a=an(Zp).i)a=a.i,g.fc(a.C,this),a.W&&this.vl()&&Sda(a);Eq();break;case 2:hq()}};
g.h.ao=function(){};
g.h.vl=function(){return!1};
g.h.GT=function(a,b){a.zo=!0;switch(a.Uk()){case 1:Pfa(a,b);break;case 2:this.VG(a)}this.iH()};
g.h.PT=function(a){var b=a.J(a);b&&(b=b.volume,a.fb=To(b)&&0<b);Kea(a,0);return Tp(a,"start",Xo())};
g.h.nu=function(a,b,c){iq(gq,[a],!Xo());return this.Vk(a,b,c)};
g.h.Vk=function(a,b,c){return Tp(a,c,Xo())};
g.h.JT=function(a){return Kq(a,"firstquartile",1)};
g.h.LT=function(a){a.Wa=!0;return Kq(a,"midpoint",2)};
g.h.QT=function(a){return Kq(a,"thirdquartile",3)};
g.h.HT=function(a){var b=Kq(a,"complete",4);Op(a);return b};
g.h.FO=function(a,b,c){b=Xo();if(a.zm()&&!b){var d=Jo();a.wg().N=d}iq(gq,[a],!b);a.zm()&&(a.Ag=1);return Tp(a,c,b)};
g.h.OT=function(a,b){b=this.nu(a,b||{},"skip");Op(a);return b};
g.h.KT=function(a,b){tp(a,!0);return this.nu(a,b||{},"fullscreen")};
g.h.IT=function(a,b){tp(a,!1);return this.nu(a,b||{},"exitfullscreen")};
g.h.EG=function(a,b,c){b=a.wg();var d=Jo();b.Ia=Hp(b,d,1!=a.Ag);iq(gq,[a],!Xo());1==a.Ag&&(a.Ag=2);return Tp(a,c,Xo())};
g.h.NT=function(a){iq(gq,[a],!Xo());return a.j()};
g.h.dF=function(a){iq(gq,[a],!Xo());this.zO(a);Op(a);return a.j()};
g.h.KL=function(){};
g.h.VG=function(){};
g.h.zO=function(){};
g.h.JI=function(){};
g.h.iH=function(){};
g.h.gE=function(){};
g.h.MK=function(){this.i||(this.i=this.gE());return null==this.i?new pq:new vq(this.i)};
g.h.fE=function(){return new qq};g.v(Lq,Ip);Lq.prototype.i=function(a){return 4==a.Hz()};g.v(Mq,Jp);Mq.prototype.i=function(a){a=a.Hz();return 3==a||4==a};g.v(Nq,sq);Nq.prototype.j=function(){return new Mq(this.i)};
Nq.prototype.u=function(){return[new Lq(this.i)]};g.v(Oq,zea);Oq.prototype.i=function(a){!a||4!==a.vs&&5!==a.vs||(a=Object.assign({},a,{vs:3}));var b=new Cp;b.i=Dp(a,ySa);b.j=Dp(a,zSa);return b};Ufa.prototype.j=function(){return g.Ja(this.i)};var zsa={g7:"LIVING_ROOM_APP_MODE_UNSPECIFIED",d7:"LIVING_ROOM_APP_MODE_MAIN",c7:"LIVING_ROOM_APP_MODE_KIDS",e7:"LIVING_ROOM_APP_MODE_MUSIC",f7:"LIVING_ROOM_APP_MODE_UNPLUGGED",b7:"LIVING_ROOM_APP_MODE_GAMING"},nla={fea:"WEB_DISPLAY_MODE_UNKNOWN",bea:"WEB_DISPLAY_MODE_BROWSER",dea:"WEB_DISPLAY_MODE_MINIMAL_UI",eea:"WEB_DISPLAY_MODE_STANDALONE",cea:"WEB_DISPLAY_MODE_FULLSCREEN"};g.v(Pq,Cq);g.h=Pq.prototype;g.h.Uz=function(a,b){var c=this,d=an(Zp);if(null!=d.i)switch(d.i.getName()){case "nis":var e=Yfa(this,a,b);break;case "gsv":e=Xfa(this,a,b);break;case "exc":e=Zfa(this,a)}e||(b.opt_overlayAdElement?e=void 0:b.opt_adElement&&(e=Rfa(this,a,b.opt_adElement,b.opt_osdId)));e&&1==e.Uk()&&(e.J==Zf&&(e.J=function(f){return c.JI(f)}),Wfa(this,e,b));
return e};
g.h.JI=function(a){a.j=0;a.xa=0;if("h"==a.B||"n"==a.B){wo();a.Ta&&(wo(),"h"!=Iq(this)&&Iq(this));var b=g.Ja("ima.common.getVideoMetadata");if("function"===typeof b)try{var c=b(a.Lf)}catch(e){a.j|=4}else a.j|=2}else if("b"==a.B)if(b=g.Ja("ytads.bulleit.getVideoMetadata"),"function"===typeof b)try{c=b(a.Lf)}catch(e){a.j|=4}else a.j|=2;else if("ml"==a.B)if(b=g.Ja("ima.common.getVideoMetadata"),"function"===typeof b)try{c=b(a.Lf)}catch(e){a.j|=4}else a.j|=2;else a.j|=1;a.j||(void 0===c?a.j|=8:null===
c?a.j|=16:g.uf(c)?a.j|=32:null!=c.errorCode&&(a.xa=c.errorCode,a.j|=64));null==c&&(c={});b=c;a.N=0;for(var d in uSa)null==b[d]&&(a.N|=uSa[d]);Tfa(b,"currentTime");Tfa(b,"duration");To(c.volume)&&To(void 0)&&(c.volume*=NaN);return c};
g.h.gE=function(){wo();"h"!=Iq(this)&&Iq(this);var a=$fa(this);return null!=a?new Ufa(a):null};
g.h.VG=function(a){!a.i&&a.zo&&Jq(this,a,"overlay_unmeasurable_impression")&&(a.i=!0)};
g.h.zO=function(a){a.SO&&(a.Am()?Jq(this,a,"overlay_viewable_end_of_session_impression"):Jq(this,a,"overlay_unviewable_impression"),a.SO=!1)};
g.h.KL=function(){};
g.h.iH=function(){};
g.h.Bx=function(a,b,c,d){a=Cq.prototype.Bx.call(this,a,b,c,d);this.B&&(b=this.C,null==a.C&&(a.C=new uea),b.i[a.Lf]=a.C,a.C.C=BSa);return a};
g.h.Hv=function(a){a&&1==a.Uk()&&this.B&&delete this.C.i[a.Lf];return Cq.prototype.Hv.call(this,a)};
g.h.MK=function(){this.i||(this.i=this.gE());return null==this.i?new pq:"ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"===this.I?new Nq(this.i):new vq(this.i)};
g.h.fE=function(){return"ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"===this.I?new Oq:new qq};
var Qq=new Cp;Qq.i="stopped";Qq.j="stopped";var CSa=Go(193,Rq,Qfa);g.Ia("Goog_AdSense_Lidar_sendVastEvent",CSa,void 0);var DSa=Ho(194,function(a,b){b=void 0===b?{}:b;a=dga(an(Pq),a,b);return fga(a)});
g.Ia("Goog_AdSense_Lidar_getViewability",DSa,void 0);var ESa=Go(195,function(){return gda()},void 0);
g.Ia("Goog_AdSense_Lidar_getUrlSignalsArray",ESa,void 0);var FSa=Ho(196,function(){return JSON.stringify(gda())});
g.Ia("Goog_AdSense_Lidar_getUrlSignalsList",FSa,void 0);var dka=(new Date).getTime();var hga="://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(" "),iga=/\bocr\b/;var kga=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;g.v(dr,g.Uf);dr.prototype.dispose=function(){window.removeEventListener("offline",this.B);window.removeEventListener("online",this.B);this.Ij.wi(this.I);delete dr.i};
dr.prototype.Ce=function(){return this.i};er.prototype.set=function(a,b){b=void 0===b?!0:b;0<=a&&52>a&&0===a%1&&this.data_[a]!=b&&(this.data_[a]=b,this.i=-1)};
er.prototype.get=function(a){return!!this.data_[a]};g.Ua(g.fr,g.G);g.h=g.fr.prototype;g.h.start=function(){this.stop();this.B=!1;var a=nga(this),b=oga(this);a&&!b&&this.j.mozRequestAnimationFrame?(this.i=Jf(this.j,"MozBeforePaint",this.u),this.j.mozRequestAnimationFrame(null),this.B=!0):this.i=a&&b?a.call(this.j,this.u):this.j.setTimeout($f(this.u),20)};
g.h.stop=function(){if(this.isActive()){var a=nga(this),b=oga(this);a&&!b&&this.j.mozRequestAnimationFrame?Rf(this.i):a&&b?b.call(this.j,this.i):this.j.clearTimeout(this.i)}this.i=null};
g.h.isActive=function(){return null!=this.i};
g.h.kQ=function(){this.B&&this.i&&Rf(this.i);this.i=null;this.I.call(this.C,g.Ta())};
g.h.ra=function(){this.stop();g.fr.ue.ra.call(this)};g.Ua(g.K,g.G);g.h=g.K.prototype;g.h.Nu=0;g.h.ra=function(){g.K.ue.ra.call(this);this.stop();delete this.i;delete this.j};
g.h.start=function(a){this.stop();this.Nu=g.Ei(this.u,void 0!==a?a:this.Zf)};
g.h.stop=function(){this.isActive()&&g.C.clearTimeout(this.Nu);this.Nu=0};
g.h.isActive=function(){return 0!=this.Nu};
g.h.KI=function(){this.Nu=0;this.i&&this.i.call(this.j)};kr.prototype[Symbol.iterator]=function(){return this};
kr.prototype.next=function(){var a=this.i.next();return{value:a.done?void 0:this.j.call(void 0,a.value,this.u++),done:a.done}};rr.prototype.Pg=function(){return new sr(this.i())};
rr.prototype[Symbol.iterator]=function(){return new tr(this.i())};
rr.prototype.j=function(){return new tr(this.i())};
g.v(sr,g.up);sr.prototype.Mj=function(){var a=this.i.next();if(a.done)throw g.wp;return a.value};
sr.prototype.next=function(){return this.i.next()};
sr.prototype[Symbol.iterator]=function(){return new tr(this.i)};
sr.prototype.j=function(){return new tr(this.i)};
g.v(tr,rr);tr.prototype.next=function(){return this.u.next()};g.h=g.vr.prototype;g.h.Bi=function(){xr(this);for(var a=[],b=0;b<this.i.length;b++)a.push(this.j[this.i[b]]);return a};
g.h.jm=function(){xr(this);return this.i.concat()};
g.h.has=function(a){return wr(this.j,a)};
g.h.equals=function(a,b){if(this===a)return!0;if(this.size!=a.size)return!1;b=b||tga;xr(this);for(var c,d=0;c=this.i[d];d++)if(!b(this.get(c),a.get(c)))return!1;return!0};
g.h.isEmpty=function(){return 0==this.size};
g.h.clear=function(){this.j={};this.gp=this.size=this.i.length=0};
g.h.remove=function(a){return this.delete(a)};
g.h.delete=function(a){return wr(this.j,a)?(delete this.j[a],--this.size,this.gp++,this.i.length>2*this.size&&xr(this),!0):!1};
g.h.get=function(a,b){return wr(this.j,a)?this.j[a]:b};
g.h.set=function(a,b){wr(this.j,a)||(this.size+=1,this.i.push(a),this.gp++);this.j[a]=b};
g.h.forEach=function(a,b){for(var c=this.jm(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};
g.h.clone=function(){return new g.vr(this)};
g.h.keys=function(){return ur(this.Pg(!0)).j()};
g.h.values=function(){return ur(this.Pg(!1)).j()};
g.h.entries=function(){var a=this;return pga(this.keys(),function(b){return[b,a.get(b)]})};
g.h.Pg=function(a){xr(this);var b=0,c=this.gp,d=this,e=new g.up;e.next=function(){if(c!=d.gp)throw Error("The map has changed since the iterator was created");if(b>=d.i.length)return g.k2;var k=d.i[b++];return g.vp(a?k:d.j[k])};
var f=e.next;e.Mj=function(){return g.xp(f.call(e))};
return e};g.Ua(g.yr,g.Uf);g.h=g.yr.prototype;g.h.Ic=function(){return 1==this.i};
g.h.JA=function(){this.zi("begin")};
g.h.gx=function(){this.zi("end")};
g.h.onFinish=function(){this.zi("finish")};
g.h.zi=function(a){this.dispatchEvent(a)};var GSa=ag(function(){if(g.Nc)return g.Ec("10.0");var a=g.Nh("DIV"),b=g.Ze?"-webkit":zn?"-moz":g.Nc?"-ms":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");b={style:c};if(!fSa.test("div"))throw Error("");if("DIV"in hSa)throw Error("");var d=void 0;c=null;var e="";if(b)for(l in b)if(Object.prototype.hasOwnProperty.call(b,l)){if(!fSa.test(l))throw Error("");var f=b[l];if(null!=f){var k=l;if(f instanceof ig)f=jg(f);else if("style"==k.toLowerCase()){if(!g.Oa(f))throw Error("");
f instanceof Ag||(f=Eg(f));f=Bg(f)}else{if(/^on/i.test(k))throw Error("");if(k.toLowerCase()in gSa)if(f instanceof og)f=pg(f).toString();else if(f instanceof g.sg)f=g.tg(f);else if("string"===typeof f)f=g.xg(f).Kh();else throw Error("");}f.Zk&&(f=f.Kh());k=k+'="'+tb(String(f))+'"';e+=" "+k}}var l="<div"+e;null==d?d=[]:Array.isArray(d)||(d=[d]);!0===bSa.div?l+=">":(c=lba(d),l+=">"+g.Jg(c).toString()+"</div>",c=c.Ir());(b=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(b)?c=0:c=null);b=Kg(l,c);g.Ug(a,b);return""!=
g.An(a.firstChild,"transition")});g.Ua(zr,g.yr);g.h=zr.prototype;g.h.play=function(){if(this.Ic())return!1;this.JA();this.zi("play");this.startTime=g.Ta();this.i=1;if(GSa())return g.xn(this.j,this.J),this.B=g.Ei(this.ZX,void 0,this),!0;this.CC(!1);return!1};
g.h.ZX=function(){g.io(this.j);uga(this.j,this.N);g.xn(this.j,this.C);this.B=g.Ei((0,g.Ra)(this.CC,this,!1),1E3*this.I)};
g.h.stop=function(){this.Ic()&&this.CC(!0)};
g.h.CC=function(a){g.xn(this.j,"transition","");g.C.clearTimeout(this.B);g.xn(this.j,this.C);this.endTime=g.Ta();this.i=0;if(a)this.zi("stop");else this.onFinish();this.gx()};
g.h.ra=function(){this.stop();zr.ue.ra.call(this)};
g.h.pause=function(){};var wga=g.Ka;var yga={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};Br("Element","attributes")||Br("Node","attributes");Br("Element","innerHTML")||Br("HTMLElement","innerHTML");Br("Node","nodeName");Br("Node","nodeType");Br("Node","parentNode");Br("Node","childNodes");Br("HTMLElement","style")||Br("Element","style");Br("HTMLStyleElement","sheet");var Ega=Aga("getPropertyValue"),Fga=Aga("setProperty");Br("Element","namespaceURI")||Br("Node","namespaceURI");var Dga={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};g.Er.prototype.clone=function(){return new g.Er(this.i,this.J,this.u,this.C,this.B,this.I,this.j,this.N)};
g.Er.prototype.equals=function(a){return this.i==a.i&&this.J==a.J&&this.u==a.u&&this.C==a.C&&this.B==a.B&&this.I==a.I&&this.j==a.j&&this.N==a.N};Gr.prototype.clone=function(){return new Gr(this.start,this.end)};var HSa=new WeakMap;(function(){if(rNa){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.yb()))?a[1]:"0"}return oT?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(g.yb()))?a[0].replace(/_/g,"."):"10"):g.nu?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.yb()))?a[1]:""):XRa||YRa||ZRa?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.yb()))?a[1].replace(/_/g,"."):""):""})();var Mga=function(){if(g.Fz)return Hr(/Firefox\/([0-9.]+)/);if(g.Nc||g.qw||g.UD)return Dc;if(g.Uz){if(Qb()||Rb()){var a=Hr(/CriOS\/([0-9.]+)/);if(a)return a}return Hr(/Chrome\/([0-9.]+)/)}if(g.Sv&&!Qb())return Hr(/Version\/([0-9.]+)/);if(cE||aG){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.yb()))return a[1]+"."+a[2]}else if(g.VD)return(a=Hr(/Android\s+([0-9.]+)/))?a:Hr(/Version\/([0-9.]+)/);return""}();g.Ua(g.Jr,g.G);g.h=g.Jr.prototype;g.h.subscribe=function(a,b,c){var d=this.j[a];d||(d=this.j[a]=[]);var e=this.I;this.i[e]=a;this.i[e+1]=b;this.i[e+2]=c;this.I=e+3;d.push(e);return e};
g.h.unsubscribe=function(a,b,c){if(a=this.j[a]){var d=this.i;if(a=a.find(function(e){return d[e+1]==b&&d[e+2]==c}))return this.jg(a)}return!1};
g.h.jg=function(a){var b=this.i[a];if(b){var c=this.j[b];0!=this.B?(this.u.push(a),this.i[a+1]=g.Ka):(c&&g.fc(c,a),delete this.i[a],delete this.i[a+1],delete this.i[a+2])}return!!b};
g.h.Z=function(a,b){var c=this.j[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 k=c[e];Nga(this.i[k+1],this.i[k+2],d)}else{this.B++;try{for(e=0,f=c.length;e<f&&!this.isDisposed();e++)k=c[e],this.i[k+1].apply(this.i[k+2],d)}finally{if(this.B--,0<this.u.length&&0==this.B)for(;c=this.u.pop();)this.jg(c)}}return 0!=e}return!1};
g.h.clear=function(a){if(a){var b=this.j[a];b&&(b.forEach(this.jg,this),delete this.j[a])}else this.i.length=0,this.j={}};
g.h.ra=function(){g.Jr.ue.ra.call(this);this.clear();this.u.length=0};g.Kr.prototype.set=function(a,b){void 0===b?this.i.remove(a):this.i.set(a,g.mj(b))};
g.Kr.prototype.get=function(a){try{var b=this.i.get(a)}catch(c){return}if(null!==b)try{return JSON.parse(b)}catch(c){throw"Storage: Invalid value was encountered";}};
g.Kr.prototype.remove=function(a){this.i.remove(a)};g.Ua(Lr,g.Kr);Lr.prototype.set=function(a,b){Lr.ue.set.call(this,a,Pga(b))};
Lr.prototype.j=function(a){a=Lr.ue.get.call(this,a);if(void 0===a||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
Lr.prototype.get=function(a){if(a=this.j(a)){if(a=a.data,void 0===a)throw"Storage: Invalid value was encountered";}else a=void 0;return a};g.Ua(Mr,Lr);Mr.prototype.set=function(a,b,c){if(b=Pga(b)){if(c){if(c<g.Ta()){Mr.prototype.remove.call(this,a);return}b.expiration=c}b.creation=g.Ta()}Mr.ue.set.call(this,a,b)};
Mr.prototype.j=function(a,b){var c=Mr.ue.j.call(this,a);if(c)if(!b&&g.Qga(c))Mr.prototype.remove.call(this,a);else return c};g.Ua(g.Nr,Mr);g.Ua(Or,Rga);Or.prototype[Symbol.iterator]=function(){return ur(this.Pg(!0)).j()};
Or.prototype.clear=function(){var a=Array.from(this);a=g.q(a);for(var b=a.next();!b.done;b=a.next())this.remove(b.value)};g.Ua(Pr,Or);g.h=Pr.prototype;g.h.isAvailable=function(){if(!this.i)return!1;try{return this.i.setItem("__sak","1"),this.i.removeItem("__sak"),!0}catch(a){return!1}};
g.h.set=function(a,b){try{this.i.setItem(a,b)}catch(c){if(0==this.i.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
g.h.get=function(a){a=this.i.getItem(a);if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.h.remove=function(a){this.i.removeItem(a)};
g.h.Pg=function(a){var b=0,c=this.i,d=new g.up;d.next=function(){if(b>=c.length)return g.k2;var f=c.key(b++);if(a)return g.vp(f);f=c.getItem(f);if("string"!==typeof f)throw"Storage mechanism: Invalid value was encountered";return g.vp(f)};
var e=d.next;d.Mj=function(){return g.xp(e.call(d))};
return d};
g.h.clear=function(){this.i.clear()};
g.h.key=function(a){return this.i.key(a)};g.Ua(Qr,Pr);g.Ua(Sga,Pr);g.Ua(Sr,Or);var Tga={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},Rr=null;g.h=Sr.prototype;g.h.isAvailable=function(){return!!this.i};
g.h.set=function(a,b){this.i.setAttribute(Tr(a),b);Ur(this)};
g.h.get=function(a){a=this.i.getAttribute(Tr(a));if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.h.remove=function(a){this.i.removeAttribute(Tr(a));Ur(this)};
g.h.Pg=function(a){var b=0,c=this.i.XMLDocument.documentElement.attributes,d=new g.up;d.next=function(){if(b>=c.length)return g.k2;var f=c[b++];if(a)return g.vp(decodeURIComponent(f.nodeName.replace(/\./g,"%")).substr(1));f=f.nodeValue;if("string"!==typeof f)throw"Storage mechanism: Invalid value was encountered";return g.vp(f)};
var e=d.next;d.Mj=function(){return g.xp(e.call(d))};
return d};
g.h.clear=function(){for(var a=this.i.XMLDocument.documentElement,b=a.attributes.length;0<b;b--)a.removeAttribute(a.attributes[b-1].nodeName);Ur(this)};g.Ua(Vr,Or);Vr.prototype.set=function(a,b){this.j.set(this.i+a,b)};
Vr.prototype.get=function(a){return this.j.get(this.i+a)};
Vr.prototype.remove=function(a){this.j.remove(this.i+a)};
Vr.prototype.Pg=function(a){var b=this.j.Pg(!0),c=this,d=new g.up;d.next=function(){try{var f=b.Mj()}catch(k){if(k===g.wp)return g.k2;throw k;}for(;f.substr(0,c.i.length)!=c.i;)try{f=b.Mj()}catch(k){if(k===g.wp)return g.k2;throw k;}return g.vp(a?f.substr(c.i.length):c.j.get(f))};
var e=d.next;d.Mj=function(){return g.xp(e.call(d))};
return d};Xr.prototype.getKey=function(){return this.i};
Xr.prototype.getValue=function(){return this.j};
Xr.prototype.clone=function(){return new Xr(this.i,this.j)};g.h=Yr.prototype;g.h.remove=function(){var a=this.i,b=a.length,c=a[0];if(!(0>=b)){if(1==b)bc(a);else{a[0]=a.pop();a=0;b=this.i;for(var d=b.length,e=b[a];a<d>>1;){var f=2*a+1,k=2*a+2;f=k<d&&b[k].getKey()<b[f].getKey()?k:f;if(b[f].getKey()>e.getKey())break;b[a]=b[f];a=f}b[a]=e}return c.getValue()}};
g.h.Bi=function(){for(var a=this.i,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};
g.h.jm=function(){for(var a=this.i,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getKey());return b};
g.h.clone=function(){return new Yr(this)};
g.h.isEmpty=function(){return 0===this.i.length};
g.h.clear=function(){bc(this.i)};g.Ua(Vga,Yr);La(Zr);Zr.prototype.i=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 as="@@redux/INIT"+$r(),$ga="@@redux/REPLACE"+$r();var aha="function"===typeof Symbol&&Symbol.observable||"@@observable";g.v(bs,g.E);bs.prototype.getType=function(){return Hd(this,11,0)};
g.v(es,g.E);es.prototype.I=function(){return g.Cd(this,3)};
var bha=[2,13,14];es.prototype.getKey=es.prototype.I;g.v(hs,gs);g.v(is,hs);is.prototype.Xd=function(){return[]};g.v(js,g.E);js.prototype.getKey=function(){return g.Cd(this,1)};
js.prototype.getValue=function(){return g.Cd(this,2===Kd(this,ISa)?2:-1)};
js.prototype.setValue=function(a){return g.Ld(this,2,ISa,a)};
var ISa=[2,3,4,5,6];g.v(ks,g.E);g.v(ls,g.E);g.v(ms,g.E);g.v(ns,g.E);ns.prototype.getPlayerType=function(){return g.Cd(this,36)};
ns.prototype.setHomeGroupInfo=function(a){return Pd(this,81,a)};
var hha=[9,66,24,32,86,100,101],Csa={Zca:0,Wda:1,iea:32,oea:61,tea:67,qea:86,hea:42,jea:60,aea:62,nea:73,mea:76,rea:88,sea:90,uea:41,vea:69,wea:70,xea:71,W9:2,X9:27,ANDROID:3,n_:54,o_:14,v_:91,p_:55,q_:24,r_:20,s_:18,u_:21,x_:30,A_:29,B_:28,C_:34,w_:36,t_:38,IOS:5,U5:15,e6:92,V5:40,X5:25,Y5:17,Z5:19,a6:64,b6:66,c6:26,g6:22,h6:33,i6:68,j6:35,d6:53,f6:37,W5:39,Jca:7,Kca:57,Lca:43,Mca:59,Nca:93,z_:74,Oca:75,Pca:85,Qca:65,Sca:80,Tca:8,Hca:10,Wca:58,Vca:63,Rca:72,y_:23,Cea:11,Dea:13,s0:12,Ica:16,gea:56,
pea:31,B9:77,a5:84,lea:87,b5:89};g.v(jha,g.E);var iha=[15,26,28];g.v(os,g.E);os.prototype.setToken=function(a){return g.D(this,2,a)};g.v(ps,g.E);ps.prototype.setSafetyMode=function(a){return g.D(this,5,a)};
var kha=[12];g.v(qs,g.E);var lha=[12];g.v(rs,hs);rs.prototype.Xd=function(){var a=[];this.i.alternateChannel&&a.push(this.i.alternateChannel);this.i.alternateChannelList&&a.push.apply(a,g.u(this.i.alternateChannelList));this.i.oneofChannelEntity&&a.push(this.i.oneofChannelEntity);return[].concat(g.u(new Set(a)))};g.v(ts,hs);ts.prototype.Xd=function(){var a=[];this.i.entryCollection&&a.push(this.i.entryCollection);return[].concat(g.u(new Set(a)))};
g.v(us,hs);us.prototype.Xd=function(){var a=[];this.i.parentPlaylist&&a.push(this.i.parentPlaylist);if(this.i.entries)for(var b=g.q(this.i.entries),c=b.next();!c.done;c=b.next())a.push.apply(a,g.u((new vs(c.value)).Xd()));return[].concat(g.u(new Set(a)))};
g.v(vs,gs);vs.prototype.Xd=function(){var a=[];this.i.video&&a.push(this.i.video);return[].concat(g.u(new Set(a)))};g.v(ws,hs);ws.prototype.Xd=function(){var a=[];this.i.descriptionEntity&&a.push(this.i.descriptionEntity);this.i.creators&&a.push.apply(a,g.u(this.i.creators));this.i.theBiggestFan&&a.push(this.i.theBiggestFan);return[].concat(g.u(new Set(a)))};
g.v(xs,hs);xs.prototype.Xd=function(){return[]};g.v(ys,hs);ys.prototype.Xd=function(){return[]};g.v(zs,hs);zs.prototype.Xd=function(){return[]};g.v(As,g.E);As.prototype.Xj=function(a){g.D(this,1,a)};var Tna={J5:0,u5:1,A5:2,B5:4,G5:8,C5:16,D5:32,I5:64,H5:128,w5:256,y5:512,F5:1024,x5:2048,z5:4096,v5:8192,E5:16384};g.v(Bs,g.E);Bs.prototype.Zi=function(a){g.D(this,2,a)};
g.v(nha,g.E);g.v(Cs,g.E);Cs.prototype.Zi=function(a){g.D(this,1,a)};
var pha=[3];g.v(Ds,g.E);Ds.prototype.Zi=function(a){g.D(this,1,a)};
Ds.prototype.jo=function(){return null!=g.Cd(this,2)};g.v(Es,g.E);Es.prototype.Zi=function(a){g.D(this,1,a)};
Es.prototype.jo=function(){return null!=g.Cd(this,2)};g.v(Fs,g.E);Fs.prototype.Zi=function(a){g.D(this,1,a)};
Fs.prototype.jo=function(){return null!=g.Cd(this,2)};g.v(rha,g.E);g.v(Gs,g.E);Gs.prototype.Vb=function(){return Ud(this,1)};
Gs.prototype.getVisibilityState=function(){return Hd(this,5,0)};
var sha=[16];g.v(tha,g.E);g.v(Hs,g.E);Hs.prototype.getPlayerType=function(){return Hd(this,7,0)};
Hs.prototype.setVideoId=function(a){return g.D(this,19,a)};
g.v(Is,g.E);Is.prototype.getId=function(){return Hd(this,2,"")};
var uha=[83,68];g.v(vha,g.E);g.v(wha,g.E);g.v(Js,g.E);g.v(Ks,g.E);Ks.prototype.getContext=function(){return Nd(this,Js,33)};
var Vx=[23,24,11,6,7,5,2,3,20,21,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,157,158,159,163,164,168,176,222,383,177,178,179,411,184,188,189,190,191,193,194,195,196,198,199,200,201,203,204,205,206,258,259,260,261,209,226,227,232,233,234,240,247,248,251,254,255,270,278,291,293,300,304,308,309,310,311,313,314,319,321,323,324,328,330,331,332,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,412,413,414,415,416,417,418,419,420,117];g.v(xha,g.E);g.v(Ls,g.E);Ls.prototype.setVideoId=function(a){return g.Ld(this,1,jv,a)};
Ls.prototype.getPlaylistId=function(){return g.Cd(this,2===Kd(this,jv)?2:-1)};
var jv=[1,2];g.v(Ms,g.E);Ms.prototype.getContext=function(){return Nd(this,qs,1)};
var yha=[3];g.v(Ns,hs);Ns.prototype.Xd=function(){return[]};g.v(Os,hs);Os.prototype.Xd=function(){return[]};g.v(Ps,hs);Ps.prototype.Xd=function(){var a=[];this.i.fakeChildren&&a.push.apply(a,g.u(this.i.fakeChildren));return[].concat(g.u(new Set(a)))};g.v(Qs,hs);Qs.prototype.Xd=function(){var a=[];this.i.video&&a.push(this.i.video);this.i.playbackData&&a.push(this.i.playbackData);this.i.offlineVideoPolicy&&a.push(this.i.offlineVideoPolicy);return[].concat(g.u(new Set(a)))};g.v(Rs,hs);Rs.prototype.Xd=function(){return[]};g.v(Ss,hs);Ss.prototype.Xd=function(){var a=[];this.i.channelOwner&&a.push(this.i.channelOwner);this.i.playbackPosition&&a.push(this.i.playbackPosition);this.i.downloadStatus&&a.push(this.i.downloadStatus);return[].concat(g.u(new Set(a)))};g.v(Ts,hs);Ts.prototype.Xd=function(){return[]};g.v(Us,hs);Us.prototype.Xd=function(){return[]};g.v(Vs,hs);Vs.prototype.Xd=function(){return[]};g.v(Ws,hs);Ws.prototype.Xd=function(){return[]};g.v(Xs,hs);Xs.prototype.Xd=function(){return[]};g.v(Ys,hs);Ys.prototype.Xd=function(){var a=[];this.i.transfer&&a.push(this.i.transfer);this.i.adsPlaybackData&&a.push.apply(a,g.u(this.i.adsPlaybackData));this.i.drmLicense&&a.push(this.i.drmLicense);this.i.offlineVideoPolicy&&a.push(this.i.offlineVideoPolicy);return[].concat(g.u(new Set(a)))};g.v(Zs,hs);Zs.prototype.Xd=function(){var a=[];this.i.offlineVideoStreams&&a.push.apply(a,g.u(this.i.offlineVideoStreams));this.i.captionTrack&&a.push.apply(a,g.u(this.i.captionTrack));return[].concat(g.u(new Set(a)))};g.v($s,hs);$s.prototype.Xd=function(){return[]};g.v(at,g.E);g.v(bt,g.E);var JSa=Ee(406606992,{ffa:0},bt,function(a,b){if(null!=b){var c={gl:Ge(g.Cd(b,1)),hl:Ge(g.Cd(b,2)),efa:Ge(g.Cd(b,3)),locale:Ge(g.Cd(b,4)),wfa:Ge(g.Cd(b,5))};a&&(c.OP=b);return c}});g.v(ct,bt);var o2=g.C.window,KSa,LSa,et=(null==o2?void 0:null==(KSa=o2.yt)?void 0:KSa.config_)||(null==o2?void 0:null==(LSa=o2.ytcfg)?void 0:LSa.data_)||{},MSa,NSa=(null==o2?void 0:null==(MSa=o2.ytcfg)?void 0:MSa.obfuscatedData_)||[];g.v(dt,at);dt.prototype.C=function(a){var b=ht();406606992!==a.i||b&&b.jspb_i18n_extension||(a=Ee(a.i,a.fieldName,ct,a.C,a.isRepeated));return at.prototype.C.call(this,a)};
var OSa=new dt(NSa),PSa=ht();if(!PSa||!PSa.jspb_i18n_extension){var QSa=new ct;JSa.B(OSa,QSa)}g.Ia("yt.config_",et,void 0);g.Ia("yt.configJspb_",NSa,void 0);var nt=[];var aka=/^[\w.]*$/,Zja={q:!0,search_query:!0},Yja=String(rt);var bka=new function(){var a=window.document;this.i=window;this.j=a};
g.Ia("yt.ads_.signals_.getAdSignalsString",function(a){return tt(Dt(a))},void 0);g.Ta();var eka="XMLHttpRequest"in g.C?function(){return new XMLHttpRequest}:null;var gka={Authorization:"AUTHORIZATION","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"},ika="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.u("client_dev_mss_url client_dev_regex_map client_dev_root_url client_rollout_override expflag jsfeat jsmode mods".split(" "))),nka=!1,xwa=Kt;g.v(Nt,$a);Qt.prototype.then=function(a,b,c){return 1===this.j&&a?(a=a.call(c,this.i),ji(a)?a:St(a)):2===this.j&&b?(a=b.call(c,this.i),ji(a)?a:Rt(a)):this};
Qt.prototype.getValue=function(){return this.i};
Qt.prototype.$goog_Thenable=!0;var Tt=!1;Xt.prototype.Uf=function(a,b){return Yt(a,1,b)};g.v($t,Xt);$t.prototype.wi=function(a){if(void 0===a||!Number.isNaN(Number(a))){var b=g.Ja("yt.scheduler.instance.cancelJob");b?b(a):g.It(a)}};
$t.prototype.start=function(){var a=g.Ja("yt.scheduler.instance.start");a&&a()};
$t.prototype.pause=function(){var a=g.Ja("yt.scheduler.instance.pause");a&&a()};g.Nu=au();var lu=cE||aG;g.v(tu,$a);tu.prototype.name="BiscottiError";g.v(ru,$a);ru.prototype.name="BiscottiMissingError";var Aka={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},uu=null;var kla={appSettingsCaptured:!0,visualElementAttached:!0,visualElementGestured:!0,visualElementHidden:!0,visualElementShown:!0,flowEvent:!0,visualElementStateChanged:!0,playbackAssociated:!0,youThere:!0,accountStateChangeSignedIn:!0,accountStateChangeSignedOut:!0},jla={latencyActionBaselined:!0,latencyActionInfo:!0,latencyActionTicked:!0,bedrockRepetitiveActionTimed:!0,adsClientStateChange:!0,streamzIncremented:!0,mdxDialAdditionalDataUpdateEvent:!0,tvhtml5WatchKeyEvent:!0,tvhtml5VideoSeek:!0,tokenRefreshEvent:!0,
adNotify:!0,adNotifyFilled:!0,tvhtml5LaunchUrlComponentChanged:!0,bedrockResourceConsumptionSnapshot:!0,deviceStartupMetrics:!0,mdxSignIn:!0,tvhtml5KeyboardLogging:!0,tvhtml5StartupSoundEvent:!0,tvhtml5LiveChatStatus:!0,tvhtml5DeviceStorageStatus:!0,tvhtml5LocalStorage:!0,directSignInEvent:!0,finalPayload:!0,tvhtml5SearchCompleted:!0,tvhtml5KeyboardPerformance:!0,adNotifyFailure:!0,latencyActionSpan:!0,tvhtml5AccountDialogOpened:!0,tvhtml5ApiTest:!0};var RSa=0,vu=g.Ze?"webkit":zn?"moz":g.Nc?"ms":g.UD?"o":"",SSa=g.Ja("ytDomDomGetNextId")||function(){return++RSa};
g.Ia("ytDomDomGetNextId",SSa,void 0);var Hka={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};xu.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
xu.prototype.gM=function(){return this.event?!1===this.event.returnValue:!1};
xu.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
xu.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var yu=g.C.ytEventsEventsListeners||{};g.Ia("ytEventsEventsListeners",yu,void 0);var Kka=g.C.ytEventsEventsCounter||{count:0};g.Ia("ytEventsEventsCounter",Kka,void 0);var nna=ag(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a}),Lka=ag(function(){var a=!1;
try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a});var ED=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.Ua(Ju,g.G);Ju.prototype.W=function(a){void 0===a.i&&Ika(a);var b=a.i;void 0===a.j&&Ika(a);this.i=new g.bh(b,a.j)};
Ju.prototype.Un=function(){return this.i||new g.bh};
Ju.prototype.Y=function(){if(this.i){var a=ED();if(0!=this.B){var b=this.I,c=this.i,d=b.x-c.x;b=b.y-c.y;d=Math.sqrt(d*d+b*b)/(a-this.B);this.j[this.u]=.5<Math.abs((d-this.C)/this.C)?1:0;for(c=b=0;4>c;c++)b+=this.j[c]||0;3<=b&&this.J();this.C=d}this.B=a;this.I=this.i;this.u=(this.u+1)%4}};
Ju.prototype.ra=function(){Jt(this.N);g.Au(this.ea)};var Mu={};var TSa,Qu,Su;TSa=g.C.ytPubsubPubsubInstance||new g.Jr;Qu=g.C.ytPubsubPubsubSubscribedKeys||{};Su=g.C.ytPubsubPubsubTopicToKeys||{};g.Ru=g.C.ytPubsubPubsubIsSynchronous||{};g.Jr.prototype.subscribe=g.Jr.prototype.subscribe;g.Jr.prototype.unsubscribeByKey=g.Jr.prototype.jg;g.Jr.prototype.publish=g.Jr.prototype.Z;g.Jr.prototype.clear=g.Jr.prototype.clear;g.Ia("ytPubsubPubsubInstance",TSa,void 0);g.Ia("ytPubsubPubsubTopicToKeys",Su,void 0);g.Ia("ytPubsubPubsubIsSynchronous",g.Ru,void 0);
g.Ia("ytPubsubPubsubSubscribedKeys",Qu,void 0);var p2;p2=window;g.R=p2.ytcsi&&p2.ytcsi.now?p2.ytcsi.now:p2.performance&&p2.performance.timing&&p2.performance.now&&p2.performance.timing.navigationStart?function(){return p2.performance.timing.navigationStart+p2.performance.now()}:function(){return(new Date).getTime()};var Zka=g.kt("initial_gel_batch_timeout",2E3),ila=Math.pow(2,16)-1,dv=void 0,fv=new Ska,ev=new Ska,mv=!0,bv=g.C.ytLoggingTransportGELQueue_||new Map;g.Ia("ytLoggingTransportGELQueue_",bv,void 0);var cv=g.C.ytLoggingTransportGELProtoQueue_||new Map;g.Ia("ytLoggingTransportGELProtoQueue_",cv,void 0);var lv=g.C.ytLoggingTransportTokensToCttTargetIds_||{};g.Ia("ytLoggingTransportTokensToCttTargetIds_",lv,void 0);var kv=g.C.ytLoggingTransportTokensToJspbCttTargetIds_||{};
g.Ia("ytLoggingTransportTokensToJspbCttTargetIds_",kv,void 0);var qv=g.C.ytLoggingGelSequenceIdObj_||{};g.Ia("ytLoggingGelSequenceIdObj_",qv,void 0);var uv=g.Ja("ytglobal.prefsUserPrefsPrefs_")||{};g.Ia("ytglobal.prefsUserPrefsPrefs_",uv,void 0);g.h=g.vv.prototype;g.h.get=function(a,b){yv(a);xv(a);a=void 0!==uv[a]?uv[a].toString():null;return null!=a?a:b?b:""};
g.h.set=function(a,b){yv(a);xv(a);if(null==b)throw Error("ExpectedNotNull");uv[a]=b.toString()};
g.h.remove=function(a){yv(a);xv(a);delete uv[a]};
g.h.save=function(){var a=!0;g.Q("web_secure_pref_cookie_killswitch")&&(a=!1);g.Vt(this.i,this.dump(),63072E3,this.j,a)};
g.h.clear=function(){g.vf(uv)};
g.h.dump=function(){var a=[],b;for(b in uv)a.push(b+"="+encodeURIComponent(String(uv[b])));return a.join("&")};
La(g.vv);var rla={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"},Bla={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},Cla={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},tla={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};zv.prototype.set=function(a,b,c,d){c=c||31104E3;this.remove(a);if(this.i)try{this.i.set(a,b,Date.now()+1E3*c);return}catch(f){}var e="";if(d)try{e=escape(g.mj(b))}catch(f){return}else e=escape(b);g.Vt(a,e,c,this.j)};
zv.prototype.get=function(a,b){var c=void 0,d=!this.i;if(!d)try{c=this.i.get(a)}catch(e){d=!0}if(d&&(c=g.Wt(a))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c};
zv.prototype.remove=function(a){this.i&&this.i.remove(a);g.ska(a,"/",this.j)};var Av=function(){var a;return function(){a||(a=new zv("ytidb"));return a}}();var Gv=[],Cv,Hv=!1;g.v(g.Kv,Error);var q2={},Fla=(q2.AUTH_INVALID="No user identifier specified.",q2.EXPLICIT_ABORT="Transaction was explicitly aborted.",q2.IDB_NOT_SUPPORTED="IndexedDB is not supported.",q2.MISSING_INDEX="Index not created.",q2.MISSING_OBJECT_STORES="Object stores not created.",q2.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",q2.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",q2.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",q2.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",q2.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",q2.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",q2.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",q2),r2={},Gla=(r2.AUTH_INVALID="ERROR",r2.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",r2.EXPLICIT_ABORT="IGNORED",
r2.IDB_NOT_SUPPORTED="ERROR",r2.MISSING_INDEX="WARNING",r2.MISSING_OBJECT_STORES="ERROR",r2.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",r2.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",r2.QUOTA_EXCEEDED="WARNING",r2.QUOTA_MAYBE_EXCEEDED="WARNING",r2.UNKNOWN_ABORT="WARNING",r2.INCOMPATIBLE_DB_VERSION="WARNING",r2),s2={},Hla=(s2.AUTH_INVALID=!1,s2.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,s2.EXPLICIT_ABORT=!1,s2.IDB_NOT_SUPPORTED=!1,s2.MISSING_INDEX=!1,s2.MISSING_OBJECT_STORES=!1,s2.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,s2.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,s2.QUOTA_EXCEEDED=!1,s2.QUOTA_MAYBE_EXCEEDED=!0,s2.UNKNOWN_ABORT=!0,s2.INCOMPATIBLE_DB_VERSION=!1,s2);g.v(Pv,g.Kv);g.v(Qv,Pv);g.v(Rv,Error);var Ila=["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"];Wv.all=function(a){return new Wv(new Vv(function(b,c){var d=[],e=a.length;0===e&&b(d);for(var f={rr:0};f.rr<a.length;f={rr:f.rr},++f.rr)Wv.resolve(a[f.rr]).then(function(k){return function(l){d[k.rr]=l;e--;0===e&&b(d)}}(f)).catch(function(k){c(k)})}))};
Wv.resolve=function(a){return new Wv(new Vv(function(b,c){a instanceof Wv?a.then(b,c):b(a)}))};
Wv.reject=function(a){return new Wv(new Vv(function(b,c){c(a)}))};
Wv.prototype.then=function(a,b){var c=this,d=null!=a?a:Kla,e=null!=b?b:Jla;return new Wv(new Vv(function(f,k){"PENDING"===c.state.status?(c.i.push(function(){Lla(c,c,d,f,k)}),c.onRejected.push(function(){Mla(c,c,e,f,k)})):"FULFILLED"===c.state.status?Lla(c,c,d,f,k):"REJECTED"===c.state.status&&Mla(c,c,e,f,k)}))};
Wv.prototype.catch=function(a){return this.then(void 0,a)};g.h=Pla.prototype;g.h.advance=function(a){this.cursor.advance(a);return $v(this.request)};
g.h.continue=function(a){this.cursor.continue(a);return $v(this.request)};
g.h.continuePrimaryKey=function(a,b){this.cursor.continuePrimaryKey(a,b);return $v(this.request)};
g.h.getKey=function(){return this.cursor.key};
g.h.Rz=function(){return this.cursor.primaryKey};g.h=Qla.prototype;g.h.add=function(a,b,c){return dw(this,[a],{mode:"readwrite",Kc:!0},function(d){return d.objectStore(a).add(b,c)})};
g.h.clear=function(a){return dw(this,[a],{mode:"readwrite",Kc:!0},function(b){return b.objectStore(a).clear()})};
g.h.close=function(){this.i.close();var a;(null==(a=this.options)?0:a.closed)&&this.options.closed()};
g.h.count=function(a,b){return dw(this,[a],{mode:"readonly",Kc:!0},function(c){return c.objectStore(a).count(b)})};
g.h.delete=function(a,b){return dw(this,[a],{mode:"readwrite",Kc:!0},function(c){return c.objectStore(a).delete(b)})};
g.h.get=function(a,b){return dw(this,[a],{mode:"readonly",Kc:!0},function(c){return c.objectStore(a).get(b)})};
g.h.objectStoreNames=function(){return Array.from(this.i.objectStoreNames)};
g.h.getName=function(){return this.i.name};
g.h=aw.prototype;g.h.add=function(a,b){return Yv(this.i.add(a,b))};
g.h.autoIncrement=function(){return this.i.autoIncrement};
g.h.clear=function(){return Yv(this.i.clear()).then(function(){})};
g.h.count=function(a){return Yv(this.i.count(a))};
g.h.delete=function(a){return a instanceof IDBKeyRange?Xla(this,a):Yv(this.i.delete(a))};
g.h.get=function(a){return Yv(this.i.get(a))};
g.h.index=function(a){try{return new bma(this.i.index(a))}catch(b){if(b instanceof Error&&"NotFoundError"===b.name)throw new Rv(a,this.i.name);throw b;}};
g.h.getName=function(){return this.i.name};
g.h.keyPath=function(){return this.i.keyPath};
fw.prototype.abort=function(){this.i.abort();this.j=!0;throw new Pv("EXPLICIT_ABORT");};
fw.prototype.objectStore=function(a){a=this.i.objectStore(a);var b=this.u.get(a);b||(b=new aw(a),this.u.set(a,b));return b};
g.h=bma.prototype;g.h.count=function(a){return Yv(this.i.count(a))};
g.h.delete=function(a){return kw(this,{query:a},function(b){return b.delete().then(function(){return b.continue()})})};
g.h.get=function(a){return Yv(this.i.get(a))};
g.h.getKey=function(a){return Yv(this.i.getKey(a))};
g.h.keyPath=function(){return this.i.keyPath};
g.h.unique=function(){return this.i.unique};
g.h=dma.prototype;g.h.advance=function(a){this.cursor.advance(a);return iw(this.request)};
g.h.continue=function(a){this.cursor.continue(a);return iw(this.request)};
g.h.delete=function(){return Yv(this.cursor.delete()).then(function(){})};
g.h.getKey=function(){return this.cursor.key};
g.h.Rz=function(){return this.cursor.primaryKey};
g.h.getValue=function(){return this.cursor.value};
g.h.update=function(a){return Yv(this.cursor.update(a))};mw.prototype.u=function(a,b,c){c=void 0===c?{}:c;return fma(a,b,c)};
mw.prototype.delete=function(a){a=void 0===a?{}:a;return lw(this.name,a)};
mw.prototype.open=function(){function a(){var f,k,l,m,n,p,r,t,w,x;return g.B(function(y){switch(y.i){case 1:return k=null!=(f=Error().stack)?f:"",va(y,2),g.A(y,c.u(c.name,c.options.version,e),4);case 4:l=y.j;for(var z=c.options,F=[],I=g.q(Object.keys(z.zq)),H=I.next();!H.done;H=I.next()){H=H.value;var O=z.zq[H],ma=void 0===O.nY?Number.MAX_VALUE:O.nY;!(l.i.version>=O.qn)||l.i.version>=ma||l.i.objectStoreNames.contains(H)||F.push(H)}m=F;if(0===m.length){y.eb(5);break}n=Object.keys(c.options.zq);p=l.objectStoreNames();
if(c.I<g.kt("ytidb_reopen_db_retries",0))return c.I++,l.close(),Iv(new Pv("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:c.name,expectedObjectStores:n,foundObjectStores:p})),y.return(a());if(!(c.C<g.kt("ytidb_remake_db_retries",1))){y.eb(6);break}c.C++;if(!g.Q("ytidb_remake_db_enable_backoff_delay")){y.eb(7);break}return g.A(y,gma(c.j),8);case 8:c.j*=2;case 7:return g.A(y,c.delete(),9);case 9:return Iv(new Pv("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:c.name,expectedObjectStores:n,foundObjectStores:p})),
y.return(a());case 6:throw new Qv(p,n);case 5:return y.return(l);case 2:r=xa(y);if(r instanceof DOMException?"VersionError"!==r.name:"DOMError"in self&&r instanceof DOMError?"VersionError"!==r.name:!(r instanceof Object&&"message"in r)||"An attempt was made to open a database using a lower version than the existing version."!==r.message){y.eb(10);break}return g.A(y,c.u(c.name,void 0,Object.assign({},e,{upgrade:void 0})),11);case 11:t=y.j;w=t.i.version;if(void 0!==c.options.version&&w>c.options.version+
1)throw t.close(),c.B=!1,hma(c,w);return y.return(t);case 10:throw b(),r instanceof Error&&!g.Q("ytidb_async_stack_killswitch")&&(r.stack=r.stack+"\n"+k.substring(k.indexOf("\n")+1)),Tv(r,c.name,"",null!=(x=c.options.version)?x:-1);}})}
function b(){c.i===d&&(c.i=void 0)}
var c=this;if(!this.B)throw hma(this);if(this.i)return this.i;var d,e={blocking:function(f){f.close()},
closed:b,TY:b,upgrade:this.options.upgrade};return this.i=d=a()};var ow=new mw("YtIdbMeta",{zq:{databases:{qn:1}},upgrade:function(a,b){b(1)&&bw(a,"databases",{keyPath:"actualName"})}});var tw,rw=new function(){}(new function(){});new Lk;g.h=ww.prototype;g.h.writeThenSend=function(a,b){var c=this;b=void 0===b?{}:b;if(this.Yc&&this.pe){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.mf.set(d,this.Yc).then(function(e){d.id=e;c.df.Ce()&&xw(c,d)}).catch(function(e){xw(c,d);
yw(c,e)})}else this.Qm(a,b)};
g.h.sendThenWrite=function(a,b,c){var d=this;b=void 0===b?{}:b;if(this.Yc&&this.pe){var e={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.Xa&&this.Xa("nwl_skip_retry")&&(e.skipRetry=c);if(this.df.Ce()||this.Xa&&this.Xa("nwl_aggressive_send_then_write")&&!e.skipRetry){if(!e.skipRetry){var f=b.onError?b.onError:function(){};
b.onError=function(k,l){return g.B(function(m){if(1==m.i)return g.A(m,d.mf.set(e,d.Yc).catch(function(n){yw(d,n)}),2);
f(k,l);g.ua(m)})}}this.Qm(a,b,e.skipRetry)}else this.mf.set(e,this.Yc).catch(function(k){d.Qm(a,b,e.skipRetry);
yw(d,k)})}else c=this.Xa&&this.Xa("nwl_skip_retry")&&c,this.Qm(a,b,c)};
g.h.sendAndWrite=function(a,b){var c=this;b=void 0===b?{}:b;if(this.Yc&&this.pe){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(k,l){void 0!==d.id?c.mf.Es(d.id,c.Yc):e=!0;c.df.Hm&&c.Xa&&c.Xa("vss_network_hint")&&c.df.Hm(!0);f(k,l)};
this.Qm(d.url,d.options);this.mf.set(d,this.Yc).then(function(k){d.id=k;e&&c.mf.Es(d.id,c.Yc)}).catch(function(k){yw(c,k)})}else this.Qm(a,b)};
g.h.Xx=function(){var a=this;if(!this.Yc)throw g.Uv("throttleSend");this.i||(this.i=this.Ij.Uf(function(){var b;return g.B(function(c){if(1==c.i)return g.A(c,a.mf.yL("NEW",a.Yc),2);if(3!=c.i)return b=c.j,b?g.A(c,xw(a,b),3):(a.tK(),c.return());a.i&&(a.i=0,a.Xx());g.ua(c)})},this.fP))};
g.h.tK=function(){this.Ij.wi(this.i);this.i=0};Aw.prototype.toString=function(){return this.topic};var USa=g.Ja("ytPubsub2Pubsub2Instance")||new g.Jr;g.Jr.prototype.subscribe=g.Jr.prototype.subscribe;g.Jr.prototype.unsubscribeByKey=g.Jr.prototype.jg;g.Jr.prototype.publish=g.Jr.prototype.Z;g.Jr.prototype.clear=g.Jr.prototype.clear;g.Ia("ytPubsub2Pubsub2Instance",USa,void 0);var Dw=g.Ja("ytPubsub2Pubsub2SubscribedKeys")||{};g.Ia("ytPubsub2Pubsub2SubscribedKeys",Dw,void 0);var Ew=g.Ja("ytPubsub2Pubsub2TopicToKeys")||{};g.Ia("ytPubsub2Pubsub2TopicToKeys",Ew,void 0);
var Ama=g.Ja("ytPubsub2Pubsub2IsAsync")||{};g.Ia("ytPubsub2Pubsub2IsAsync",Ama,void 0);g.Ia("ytPubsub2Pubsub2SkipSubKey",null,void 0);g.v(Hw,mw);Hw.prototype.u=function(a,b,c){c=void 0===c?{}:c;return(this.options.Lx?qma:pma)(a,b,Object.assign({},c))};
Hw.prototype.delete=function(a){a=void 0===a?{}:a;return(this.options.Lx?uma:rma)(this.name,a)};var Jw;var VSa={},Jma=Iw("ServiceWorkerLogsDatabase",{zq:(VSa.SWHealthLog={qn:1},VSa),Lx:!0,upgrade:function(a,b){b(1)&&gw(bw(a,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var Pw={},Pma=0;Qw.prototype.requestComplete=function(a,b){b&&(this.j=!0);a=this.removeParams(a);this.i.get(a)||this.i.set(a,b)};
Qw.prototype.isEndpointCFR=function(a){a=this.removeParams(a);return(a=this.i.get(a))?!1:!1===a&&this.j?!0:null};
Qw.prototype.removeParams=function(a){return a.split("?")[0]};
Qw.prototype.removeParams=Qw.prototype.removeParams;Qw.prototype.isEndpointCFR=Qw.prototype.isEndpointCFR;Qw.prototype.requestComplete=Qw.prototype.requestComplete;Qw.getInstance=Rw;var Sw;var Vma=g.kt("network_polling_interval",3E4);g.v(Vw,g.Uf);g.h=Vw.prototype;g.h.Ce=function(){if(g.Q("use_shared_nsm")&&this.i){var a;return null==(a=this.i)?void 0:a.Ce()}return this.j};
g.h.Hm=function(a){if(g.Q("use_shared_nsm")&&this.i){var b;null!=(b=this.i)&&(b.i=a)}else a!==this.j&&(this.j=a)};
g.h.zU=function(a){!g.Q("use_shared_nsm")&&(this.B=!0,void 0===a?0:a)&&(this.J||Uma(this))};
g.h.TE=function(){var a=window.navigator.onLine;return void 0===a?!0:a};
g.h.QS=function(){this.N=!0};
g.h.Pa=function(a,b){return g.Q("use_shared_nsm")&&this.i?this.i.Pa(a,b):g.Uf.prototype.Pa.call(this,a,b)};
g.h.Rm=function(a){var b=this;if(g.Q("use_shared_nsm")&&this.i){var c=Tq(this.i,a);c.then(function(d){g.Q("use_cfr_monitor")&&Rw().requestComplete("generate_204",d)});
return c}return this.C?this.C:this.C=new Promise(function(d){var e,f,k,l;return g.B(function(m){switch(m.i){case 1:return e=window.AbortController?new window.AbortController:void 0,k=null==(f=e)?void 0:f.signal,l=!1,va(m,2,3),e&&(b.I=g.Nu.Uf(function(){e.abort()},a||2E4)),g.A(m,fetch("/generate_204",{method:"HEAD",
signal:k}),5);case 5:l=!0;case 3:ya(m);g.Q("use_cfr_monitor")&&Rw().requestComplete("generate_204",l);b.C=void 0;b.I&&g.Nu.wi(b.I);l!==b.j&&(b.j=l,b.j&&b.B?b.dispatchEvent("ytnetworkstatus-online"):b.B&&b.dispatchEvent("ytnetworkstatus-offline"));d(l);za(m,0);break;case 2:xa(m),l=!1,m.eb(3)}})})};
Vw.prototype.sendNetworkCheckRequest=Vw.prototype.Rm;Vw.prototype.listen=Vw.prototype.Pa;Vw.prototype.enableErrorFlushing=Vw.prototype.QS;Vw.prototype.getWindowStatus=Vw.prototype.TE;Vw.prototype.monitorNetworkStatusChange=Vw.prototype.zU;Vw.prototype.networkStatusHint=Vw.prototype.Hm;Vw.prototype.isNetworkAvailable=Vw.prototype.Ce;Vw.getInstance=Tma;g.v(Ww,g.Uf);Ww.prototype.Ce=function(){var a=g.Ja("yt.networkStatusManager.instance.isNetworkAvailable");return a?a.bind(this.i)():!0};
Ww.prototype.Hm=function(a){var b=g.Ja("yt.networkStatusManager.instance.networkStatusHint").bind(this.i);b&&b(a)};
Ww.prototype.Rm=function(a){var b=this,c;return g.B(function(d){c=g.Ja("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(b.i);return g.Q("skip_network_check_if_cfr")&&Rw().isEndpointCFR("generate_204")?d.return(new Promise(function(e){var f;b.Hm((null==(f=window.navigator)?void 0:f.onLine)||!0);e(b.Ce())})):c?d.return(c(a)):d.return(!0)})};var Zw;g.v(Xw,ww);Xw.prototype.writeThenSend=function(a,b){b||(b={});Mv()||(this.pe=!1);ww.prototype.writeThenSend.call(this,a,b)};
Xw.prototype.sendThenWrite=function(a,b,c){b||(b={});Mv()||(this.pe=!1);ww.prototype.sendThenWrite.call(this,a,b,c)};
Xw.prototype.sendAndWrite=function(a,b){b||(b={});Mv()||(this.pe=!1);ww.prototype.sendAndWrite.call(this,a,b)};
Xw.prototype.awaitInitialization=function(){return this.j.promise};var gx=0,ix=0,jx,hx=g.C.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1,potentialEsfErrorCounter:ix};g.Ia("ytNetworklessLoggingInitializationOptions",hx,void 0);g.kx.prototype.isReady=function(){!this.config_&&vla()&&(this.config_=g.ov());return!!this.config_};var fna=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]),hna=["/fashion","/feed/fashion_destination","/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ"];var lna={};g.v(qx,g.G);qx.prototype.S=function(a,b,c,d,e){c=pt((0,g.Ra)(c,d||this.Ta));c={target:a,name:b,callback:c};var f;e&&nna()&&(f={passive:!0});a.addEventListener(b,c.callback,f);this.I.push(c);return c};
qx.prototype.xc=function(a){for(var b=0;b<this.I.length;b++)if(this.I[b]==a){this.I.splice(b,1);a.target.removeEventListener(a.name,a.callback);break}};
qx.prototype.ra=function(){g.sx(this);g.G.prototype.ra.call(this)};g.Ua(g.tx,g.G);g.tx.prototype.subscribe=function(a,b,c){return this.isDisposed()?0:this.Md.subscribe(a,b,c)};
g.tx.prototype.unsubscribe=function(a,b,c){return this.isDisposed()?!1:this.Md.unsubscribe(a,b,c)};
g.tx.prototype.jg=function(a){return this.isDisposed()?!1:this.Md.jg(a)};
g.tx.prototype.Z=function(a,b){return this.isDisposed()?!1:this.Md.Z.apply(this.Md,arguments)};g.v(g.xx,g.tx);g.h=g.xx.prototype;g.h.cancel=function(){this.u&&(this.u=!1,this.Z("dragend",0,0,null));this.j&&(this.j=!1,this.Z("hoverend",0,0,null),zx(this),wx(this))};
g.h.TM=function(a){zx(this);yx(this,Ax("move"),this.RM);yx(this,Ax("out"),this.SM);yx(this,"touchstart",this.OH);this.i&&yx(this,Ax("down"),this.TF);var b=g.Bu(a);a=Eu(a);this.j=!0;this.Z("hoverstart",a.x,a.y,b);this.Z("hovermove",a.x,a.y,b)};
g.h.RM=function(a){var b=g.Bu(a);a=Eu(a);if(this.C){var c=this.C;this.C=null;if(Du(c)==b&&ch(Eu(c),a))return}this.Z("hovermove",a.x,a.y,b)};
g.h.SM=function(a){var b=Eu(a),c=Du(a);try{if(c&&g.Th(this.I,c)){this.C=a;this.Z("hovermove",b.x,b.y,c);return}}catch(d){}zx(this);wx(this);this.j=!1;this.Z("hoverend",b.x,b.y,c)};
g.h.BU=function(a){this.TM(a);this.TF(a)};
g.h.TF=function(a){if("number"!==typeof a.button||0==a.button){zx(this);this.B.S(document,Ax("move"),this.AU);this.B.S(document,Ax("up"),this.FU);var b=g.Bu(a);if(g.Ze)yx(this,"dragstart",this.NS);else if(g.Fu(a),(g.zE||zn)&&b)a:{for(var c=b;c;){if(Wh(c)||"-1"===c.getAttribute("tabindex")){c.focus();break a}c=c.parentElement}document.activeElement.blur()}this.u=!0;a=Eu(a);this.Z("dragstart",a.x,a.y,b);this.Z("dragmove",a.x,a.y,b)}};
g.h.NS=function(a){g.Fu(a)};
g.h.AU=function(a){var b=g.Bu(a);b==document&&(b=null);a=Eu(a);this.Z("hovermove",a.x,a.y,b);this.Z("dragmove",a.x,a.y,b)};
g.h.FU=function(a){zx(this);this.u=!1;var b=Cu(a),c=g.Bu(a);a=Eu(a);b&&g.Th(this.I,b)?(yx(this,Ax("move"),this.RM),yx(this,Ax("out"),this.SM),yx(this,Ax("down"),this.TF),yx(this,"touchstart",this.OH),this.Z("dragend",a.x,a.y,c)):(wx(this),this.j=!1,this.Z("dragend",a.x,a.y,c),this.Z("hoverend",a.x,a.y,c))};
g.h.OH=function(a){var b=a.changedTouches[0];b&&(zx(this),yx(this,"touchmove",this.bZ),yx(this,"touchend",this.lP),yx(this,"touchcancel",this.lP),this.J=b.identifier,a=g.Bu(a),this.j||(this.j=!0,this.Z("hoverstart",b.pageX,b.pageY,a)),this.Z("hovermove",b.pageX,b.pageY,a),this.i&&(this.u=!0,this.Z("dragstart",b.pageX,b.pageY,a),this.Z("dragmove",b.pageX,b.pageY,a)))};
g.h.bZ=function(a){var b=ona(this,a);b&&(this.i&&g.Fu(a),a=g.Bu(a),this.Z("hovermove",b.pageX,b.pageY,a),this.i&&this.Z("dragmove",b.pageX,b.pageY,a))};
g.h.lP=function(a){var b=ona(this,a);if(b){zx(this);wx(this);this.j=!1;var c=g.Bu(a);this.i&&(this.N||g.Fu(a),this.u=!1,this.Z("dragend",b.pageX,b.pageY,c));this.Z("hoverend",b.pageX,b.pageY,c)}};
g.h.ra=function(){this.i&&(g.Ze&&this.I.removeAttribute("draggable"),this.I.style.touchAction="");zx(this);g.tx.prototype.ra.call(this)};Bx.prototype.clone=function(){var a=new Bx,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];a[b]="object"==Ma(c)?g.yf(c):c}return a};var Mza=["embedded_player"],WSa=["share/get_web_player_share_panel"],XSa=["feedback"],YSa=["notification/modify_channel_preference"],RDa=["offline"],NDa=["offline/get_playback_data_entity"],hMa=["player"],ZSa=["browse/edit_playlist"],$Sa=["subscription/subscribe"],aTa=["subscription/unsubscribe"],jMa=["next","unplugged/watch_next"];var Cx=Date.now().toString();var wna,t2=g.C.ytLoggingDocDocumentNonce_;t2||(t2=Ex(16),g.Ia("ytLoggingDocDocumentNonce_",t2,void 0));wna=t2;var owa={aQ:0,m0:1,D0:2,Y8:3,R3:4,Qda:5,U9:6,rba:7,Baa:8,0:"DEFAULT",1:"CHAT",2:"CONVERSATIONS",3:"MINIPLAYER",4:"DIALOG",5:"VOZ",6:"MUSIC_WATCH_TABS",7:"SHARE",8:"PUSH_NOTIFICATIONS"};var rna=1;Fx.prototype.getAsJson=function(){var a={};void 0!==this.i.trackingParams?a.trackingParams=this.i.trackingParams:(a.veType=this.i.veType,void 0!==this.i.veCounter&&(a.veCounter=this.i.veCounter),void 0!==this.i.elementIndex&&(a.elementIndex=this.i.elementIndex));void 0!==this.i.dataElement&&(a.dataElement=this.i.dataElement.getAsJson());void 0!==this.i.youtubeData&&(a.youtubeData=this.i.youtubeData);return a};
Fx.prototype.getAsJspb=function(){var a=new As;void 0!==this.i.trackingParams?a.Xj(this.i.trackingParams):(void 0!==this.i.veType&&g.D(a,2,this.i.veType),void 0!==this.i.veCounter&&g.D(a,6,this.i.veCounter),void 0!==this.i.elementIndex&&g.D(a,3,this.i.elementIndex));if(void 0!==this.i.dataElement){var b=this.i.dataElement.getAsJspb();Pd(a,7,b)}void 0!==this.i.youtubeData&&Pd(a,8,this.i.jspbYoutubeData);return a};
Fx.prototype.toString=function(){return JSON.stringify(this.getAsJson())};
Fx.prototype.isClientVe=function(){return!this.i.trackingParams&&!!this.i.veType};g.Ia("yt_logging_screen.getRootVeType",tna,void 0);g.Ia("yt_logging_screen.getCurrentCsn",g.Kx,void 0);g.Ia("yt_logging_screen.getCttAuthInfo",Lx,void 0);g.Ia("yt_logging_screen.setCurrentScreen",xna,void 0);var Gna=[{QF:function(a){return"Cannot read property '"+a.key+"'"},
ZA:{Error:[{Dg:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{Dg:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{Dg:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{Dg:/\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"]},{Dg:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{Dg:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{Dg:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{QF:function(a){return"Cannot call '"+a.key+"'"},
ZA:{TypeError:[{Dg:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{Dg:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{Dg:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{Dg:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{Dg:/\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"]},
{Dg:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{QF:function(a){return a.key+" is not defined"},
ZA:{ReferenceError:[{Dg:/(.*) is not defined/,groups:["key"]},{Dg:/Can't find variable: (.*)/,groups:["key"]}]}}];var Bna={Gm:[],zn:[{callback:yna,weight:500}]};var Mx;var Sx=new g.Jr;var Hna=new Set,Ena=0,Jna=0,Ina=0,Fna=[],Kna=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var Mna=g.C.ytLoggingGelSequenceIdObj_||{};g.Ia("ytLoggingGelSequenceIdObj_",Mna,void 0);g.v(Xx,zw);var Una=new Aw("screen-created",Xx),ay=[],Sna=Yna,by=0;var bTa={l0:3611,EZ:27686,GZ:85013,HZ:23462,JZ:42016,KZ:62407,LZ:26926,IZ:43781,NZ:51236,OZ:79148,PZ:50160,QZ:77504,k_:87907,l_:18630,D_:54445,E_:80935,K_:105675,L_:37521,M_:47786,O_:98349,P_:123695,T_:6827,V_:29434,j0:7282,k0:124448,v0:32276,u0:76278,w0:93911,y0:106531,z0:27259,A0:27262,B0:27263,E0:21759,F0:27107,G0:62936,H0:49568,J0:38408,K0:80637,L0:68727,M0:68728,N0:80353,O0:80356,P0:74610,Q0:45707,R0:83962,S0:83970,T0:46713,U0:89711,V0:74612,W0:93265,X0:74611,Y0:131380,b1:128979,d1:139311,e1:128978,
Z0:131391,f1:105350,h1:139312,j1:134800,g1:131392,m1:113533,n1:93252,o1:99357,s1:94521,t1:114252,u1:113532,v1:94522,q1:94583,w1:88E3,z1:139580,A1:93253,B1:93254,C1:94387,D1:94388,E1:93255,F1:97424,l1:72502,G1:110111,H1:76019,J1:117092,K1:117093,I1:89431,L1:110466,M1:77240,N1:60508,O1:137401,P1:137402,Q1:137046,R1:73393,S1:113534,T1:92098,U1:131381,V1:84517,W1:83759,X1:80357,Y1:86113,Z1:72598,b2:72733,d2:107349,e2:124275,f2:118203,g2:133275,h2:133274,j2:133272,l2:133273,m2:133276,n2:144507,o2:143247,
q2:143248,s2:143249,t2:143250,u2:143251,v2:144401,z2:117431,w2:133797,A2:128572,B2:133405,C2:117429,D2:117430,E2:117432,F2:120080,G2:117259,H2:121692,I2:132972,J2:133051,K2:133658,L2:132971,M2:97615,O2:143359,N2:143356,Q2:143361,P2:143358,S2:143360,R2:143357,T2:142303,U2:143353,V2:143354,W2:144479,X2:143355,Y2:31402,b3:133624,d3:133623,e3:133622,Z2:133621,f3:84774,g3:95117,h3:98930,j3:98931,l3:98932,m3:43347,n3:129889,o3:45474,q3:100352,r3:84758,s3:98443,t3:117985,u3:74613,v3:74614,w3:64502,x3:136032,
y3:74615,z3:74616,A3:122224,B3:74617,C3:77820,D3:74618,E3:93278,F3:93274,G3:93275,H3:93276,I3:22110,J3:29433,M3:133798,N3:132295,O3:120541,S3:82047,T3:113550,U3:75836,V3:75837,Z3:42352,e4:84512,f4:76065,h4:75989,m4:16623,n4:32594,o4:27240,q4:32633,z4:74858,C4:3945,B4:16989,D4:45520,E4:25488,F4:25492,G4:25494,I4:55760,J4:14057,K4:18451,L4:57204,M4:57203,N4:17897,O4:57205,P4:18198,Q4:17898,R4:17909,S4:43980,T4:46220,d5:11721,f5:49954,k5:96369,l5:3854,s5:56251,t5:25624,P5:16906,Q5:99999,S5:68172,T5:27068,
l6:47973,m6:72773,n6:26970,o6:26971,p6:96805,q6:17752,r6:73233,s6:109512,t6:22256,u6:14115,v6:22696,w6:89278,x6:89277,y6:109513,z6:43278,A6:43459,B6:43464,C6:89279,D6:43717,E6:55764,F6:22255,G6:89281,H6:40963,I6:43277,J6:43442,L6:91824,N6:120137,P6:96367,Q6:36850,R6:72694,S6:37414,T6:36851,V6:124863,U6:121343,W6:73491,X6:54473,Y6:43375,Z6:46674,m7:143815,n7:139095,o7:144402,p7:32473,t7:72901,u7:72906,v7:50947,w7:50612,x7:50613,y7:50942,z7:84938,A7:84943,B7:84939,C7:84941,D7:84944,E7:84940,F7:84942,
G7:35585,H7:51926,I7:79983,J7:63238,K7:18921,L7:63241,M7:57893,N7:41182,O7:135732,P7:33424,Q7:22207,R7:42993,S7:36229,T7:22206,U7:22205,V7:18993,W7:19001,X7:18990,Y7:18991,Z7:18997,a8:18725,b8:19003,c8:36874,d8:44763,e8:33427,f8:67793,g8:22182,h8:37091,i8:34650,j8:50617,k8:47261,l8:22287,m8:25144,n8:97917,p8:62397,q8:125598,r8:137935,s8:36961,t8:108035,u8:27426,v8:27857,w8:27846,x8:27854,y8:69692,z8:61411,A8:39299,B8:38696,C8:62520,D8:36382,E8:108701,F8:50663,G8:36387,H8:14908,I8:37533,J8:105443,
K8:61635,L8:62274,M8:133818,N8:65702,O8:65703,P8:65701,Q8:76256,T8:37671,U8:49953,b9:36216,c9:28237,d9:39553,e9:29222,f9:26107,g9:38050,h9:26108,j9:120745,i9:26109,k9:26110,l9:66881,m9:28236,n9:14586,r9:57929,t9:74723,u9:44098,v9:44099,y9:23528,z9:61699,w9:134104,x9:134103,A9:59149,C9:101951,D9:97346,E9:118051,F9:95102,G9:64882,H9:119505,I9:63595,J9:63349,K9:95101,L9:75240,M9:27039,N9:68823,O9:21537,P9:83464,Q9:75707,R9:83113,S9:101952,T9:101953,V9:79610,b$:125755,c$:24402,d$:24400,e$:32925,f$:57173,
h$:122502,i$:138480,j$:64423,k$:64424,l$:33986,m$:100828,n$:129089,o$:21409,E$:135155,F$:135156,G$:135157,H$:135158,I$:135159,J$:135160,K$:135161,L$:135162,M$:135163,N$:135164,O$:135165,P$:135166,B$:11070,C$:11074,D$:17880,Q$:14001,S$:30709,T$:30707,U$:30711,V$:30710,W$:30708,R$:26984,X$:63648,Y$:63649,baa:51879,haa:111059,jaa:5754,maa:20445,raa:130975,qaa:130976,saa:110386,uaa:113746,vaa:66557,Caa:17310,Daa:28631,Faa:21589,Gaa:68012,Haa:60480,Iaa:138664,Jaa:141121,Kaa:31571,Laa:141978,Paa:76980,
Taa:41577,Uaa:45469,Zaa:38669,aba:13768,bba:13777,eba:141842,fba:62985,hba:4724,jba:59369,kba:43927,lba:43928,oba:12924,qba:100355,uba:56219,vba:27669,wba:10337,tba:47896,xba:122629,zba:139723,yba:139722,Aba:121258,Bba:107598,Cba:127991,Dba:96639,Eba:107536,Fba:130169,Gba:96661,Hba:96658,Iba:116646,Jba:121122,Kba:96660,Lba:127738,Mba:127083,Nba:104443,Oba:96659,Pba:106442,Rba:134840,Uba:63667,Vba:63668,Wba:63669,Xba:130686,cca:78314,fca:55761,gca:127098,hca:134841,lca:96368,mca:67374,nca:48992,qca:49956,
uca:31961,vca:26388,Aca:23811,Bca:5E4,Cca:126250,Eca:96370,Fca:47355,Gca:47356,Uca:37935,Xca:45521,Yca:21760,bda:83769,cda:49977,dda:49974,eda:93497,fda:93498,gda:34325,ida:140759,jda:115803,kda:123707,lda:100081,mda:35309,nda:68314,oda:25602,pda:100339,qda:143516,sda:59018,tda:18248,uda:50625,vda:9729,wda:37168,xda:37169,yda:21667,zda:16749,Ada:18635,Bda:39305,Cda:18046,Eda:53969,Fda:8213,Hda:93926,Kda:102852,Lda:110099,Mda:22678,Nda:69076,Oda:137575,Rda:139224,Sda:100856,Uda:17736,Vda:3832,Yda:55759,
Zda:64031,yea:93044,Aea:93045,Eea:34388,Fea:17657,Gea:17655,Hea:39579,Iea:39578,Jea:77448,Kea:8196,Lea:11357,Mea:69877,Nea:8197,Pea:82039};fy.prototype.clear=function(){this.j.clear();this.i.clear();this.u.clear()};
La(fy);var hy;g.gy=ag(function(){var a=new Qr;return a.isAvailable()?new g.Nr(a):null});
hy=ag(function(){var a=new Sga;return a.isAvailable()?new g.Nr(a):null});var aoa=/\.vflset|-vfl[a-zA-Z0-9_+=-]+/,boa=/-[a-zA-Z]{2,3}_[a-zA-Z]{2,3}(?=(\/|$))/,eoa={};g.v(ry,g.G);var moa=!1;g.v(yy,g.G);yy.prototype.eF=function(){var a=this.B().PE("SLOT_TYPE_PLAYER_BYTES",1),b=ty(this.i.get(),1).clientPlaybackNonce,c=!1;a=g.q(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e="SLOT_TYPE_PLAYER_BYTES"===d.ob&&d.Lb instanceof wy?d.Lb.fp:void 0;e&&e===b&&(c&&T("More than 1 preroll playerBytes slot detected",d),c=!0)}return c};
yy.prototype.nh=function(a,b,c,d,e,f){var k=this,l=ty(this.i.get(),1);l.Ip?this.Fa.get().Tp():(sy(this.u.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return koa(k.j.get(),d,e,a,b,f,l)}),KRa(this.wD))};
yy.prototype.Qj=function(){};var u2={},Ky=(u2.AD_MARKER="ytp-ad-progress",u2.CHAPTER_MARKER="ytp-chapter-marker",u2.TIME_MARKER="ytp-time-marker",u2);var soa=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/)"),poa=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)?\\.com/|([A-Za-z0-9-]{1,63}\\.)*(youtube\\.googleapis\\.com)[.]?(:[0-9]+)?/|([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.([a-z]{3}|i)\\.corp\\.google\\.com(:[0-9]+)?/|([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.c\\.googlers\\.com(:[0-9]+)?/|(docs|drive)\\.google\\.com/(a/[^/\\\\%]+/|)|(tv|tv-green-qa|tv-release-qa)\\.youtube\\.com/|[A-Za-z0-9-]+\\.prod\\.google\\.com(:[0-9]+)?/|m?web-ppg\\.corp\\.google\\.com/)"),
uoa=RegExp("^https?://(www\\.google\\.com/pagead/xsul|www\\.youtube\\.com/pagead/slav)"),Eoa=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|youtube\\-nocookie\\.com|youtubekids\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$))"),
Coa=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)|$))"),xoa=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/)"),
qoa=RegExp("^https?.*#ocr$|^https?://(aksecure\\.imrworldwide\\.com/|cdn\\.imrworldwide\\.com/|secure\\-..\\.imrworldwide\\.com/)"),Aoa=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)"),woa=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/.*$)"),
yoa=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)"),
qsa=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|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)"),
cTa=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)\\.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.Ly.prototype.getId=function(){return this.id};
g.Ly.prototype.toString=function(){return"CueRange{"+this.namespace+":"+this.id+"}["+Ioa(this.start)+", "+Ioa(this.end)+"]"};
g.Ly.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 Hoa=1;g.Ly.prototype.getId=g.Ly.prototype.getId;g.v(Py,g.Ly);Py.prototype.deactivate=function(){this.u=!0};
Py.prototype.Yv=function(){return this.end-this.start};var v2;var dTa=g.yb(),eTa=dTa.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!eTa||2>eTa.length)v2=void 0;else{var w2=dTa.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);v2=w2&&6==w2.length?Number(w2[5].replace("_",".")):0}var bG=v2,iN=0<=bG;iN&&0<=g.yb().search("Safari")&&g.yb().search("Version");g.v(Uy,zw);g.v(Moa,zw);var Toa=new Aw("aft-recorded",Uy),fTa=new Aw("timing-sent",Moa);var x2=window,Wy=x2.performance||x2.mozPerformance||x2.msPerformance||x2.webkitPerformance||new Noa;var Soa=!1,y2={'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"},
dpa=(0,g.Ra)(Wy.clearResourceTimings||Wy.webkitClearResourceTimings||Wy.mozClearResourceTimings||Wy.msClearResourceTimings||Wy.oClearResourceTimings||g.Ka,Wy);var z2={},Yoa=(z2.auto_search="LATENCY_ACTION_AUTO_SEARCH",z2.ad_to_ad="LATENCY_ACTION_AD_TO_AD",z2.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",z2["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",z2.app_startup="LATENCY_ACTION_APP_STARTUP",z2["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",z2["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",z2["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",z2.browse="LATENCY_ACTION_BROWSE",z2.cast_splash="LATENCY_ACTION_CAST_SPLASH",
z2.channels="LATENCY_ACTION_CHANNELS",z2.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",z2["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",z2["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",z2["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",z2["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",z2["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",z2["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",
z2["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",z2["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",z2["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",z2["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",z2["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",z2.chips="LATENCY_ACTION_CHIPS",z2["dialog.copyright_strikes"]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",z2["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",
z2.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",z2.embed="LATENCY_ACTION_EMBED",z2.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",z2.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",z2.explore="LATENCY_ACTION_EXPLORE",z2.home="LATENCY_ACTION_HOME",z2.library="LATENCY_ACTION_LIBRARY",z2.live="LATENCY_ACTION_LIVE",z2.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",z2.onboarding="LATENCY_ACTION_ONBOARDING",z2.parent_profile_settings=
"LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",z2.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",z2.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",z2.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",z2["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",z2["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",z2.prebuffer="LATENCY_ACTION_PREBUFFER",z2.prefetch="LATENCY_ACTION_PREFETCH",z2.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",z2.profile_switcher="LATENCY_ACTION_LOGIN",
z2.reel_watch="LATENCY_ACTION_REEL_WATCH",z2.results="LATENCY_ACTION_RESULTS",z2.search_ui="LATENCY_ACTION_SEARCH_UI",z2.search_suggest="LATENCY_ACTION_SUGGEST",z2.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",z2.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",z2.seek="LATENCY_ACTION_PLAYER_SEEK",z2.settings="LATENCY_ACTION_SETTINGS",z2.tenx="LATENCY_ACTION_TENX",z2.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",z2.watch="LATENCY_ACTION_WATCH",z2.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",
z2["watch,watch7"]="LATENCY_ACTION_WATCH",z2["watch,watch7_html5"]="LATENCY_ACTION_WATCH",z2["watch,watch7ad"]="LATENCY_ACTION_WATCH",z2["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",z2.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",z2.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",z2["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",z2["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",z2["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",z2["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",
z2["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC",z2["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",z2["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",z2["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",z2["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",z2.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",z2.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",z2.networkless_performance=
"LATENCY_ACTION_NETWORKLESS_PERFORMANCE",z2),A2={},Zoa=(A2.ad_allowed="adTypesAllowed",A2.yt_abt="adBreakType",A2.ad_cpn="adClientPlaybackNonce",A2.ad_docid="adVideoId",A2.yt_ad_an="adNetworks",A2.ad_at="adType",A2.aida="appInstallDataAgeMs",A2.browse_id="browseId",A2.p="httpProtocol",A2.t="transportProtocol",A2.cs="commandSource",A2.cpn="clientPlaybackNonce",A2.ccs="creatorInfo.creatorCanaryState",A2.ctop="creatorInfo.topEntityType",A2.csn="clientScreenNonce",A2.docid="videoId",A2.GetHome_rid="requestIds",
A2.GetSearch_rid="requestIds",A2.GetPlayer_rid="requestIds",A2.GetWatchNext_rid="requestIds",A2.GetBrowse_rid="requestIds",A2.GetLibrary_rid="requestIds",A2.is_continuation="isContinuation",A2.is_nav="isNavigation",A2.b_p="kabukiInfo.browseParams",A2.is_prefetch="kabukiInfo.isPrefetch",A2.is_secondary_nav="kabukiInfo.isSecondaryNav",A2.nav_type="kabukiInfo.navigationType",A2.prev_browse_id="kabukiInfo.prevBrowseId",A2.query_source="kabukiInfo.querySource",A2.voz_type="kabukiInfo.vozType",A2.yt_lt=
"loadType",A2.mver="creatorInfo.measurementVersion",A2.yt_ad="isMonetized",A2.nr="webInfo.navigationReason",A2.nrsu="navigationRequestedSameUrl",A2.pnt="performanceNavigationTiming",A2.prt="playbackRequiresTap",A2.plt="playerInfo.playbackType",A2.pis="playerInfo.playerInitializedState",A2.paused="playerInfo.isPausedOnLoad",A2.yt_pt="playerType",A2.fmt="playerInfo.itag",A2.yt_pl="watchInfo.isPlaylist",A2.yt_pre="playerInfo.preloadType",A2.yt_ad_pr="prerollAllowed",A2.pa="previousAction",A2.yt_red=
"isRedSubscriber",A2.rce="mwebInfo.responseContentEncoding",A2.rc="resourceInfo.resourceCache",A2.scrh="screenHeight",A2.scrw="screenWidth",A2.st="serverTimeMs",A2.ssdm="shellStartupDurationMs",A2.br_trs="tvInfo.bedrockTriggerState",A2.kebqat="kabukiInfo.earlyBrowseRequestInfo.abandonmentType",A2.kebqa="kabukiInfo.earlyBrowseRequestInfo.adopted",A2.label="tvInfo.label",A2.is_mdx="tvInfo.isMdx",A2.preloaded="tvInfo.isPreloaded",A2.aac_type="tvInfo.authAccessCredentialType",A2.upg_player_vis="playerInfo.visibilityState",
A2.query="unpluggedInfo.query",A2.upg_chip_ids_string="unpluggedInfo.upgChipIdsString",A2.yt_vst="videoStreamType",A2.vph="viewportHeight",A2.vpw="viewportWidth",A2.yt_vis="isVisible",A2.rcl="mwebInfo.responseContentLength",A2.GetSettings_rid="requestIds",A2.GetTrending_rid="requestIds",A2.GetMusicSearchSuggestions_rid="requestIds",A2.REQUEST_ID="requestIds",A2),$oa="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(" "),
B2={},apa=(B2.ccs="CANARY_STATE_",B2.mver="MEASUREMENT_VERSION_",B2.pis="PLAYER_INITIALIZED_STATE_",B2.yt_pt="LATENCY_PLAYER_",B2.pa="LATENCY_ACTION_",B2.ctop="TOP_ENTITY_TYPE_",B2.yt_vst="VIDEO_STREAM_TYPE_",B2),bpa="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_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_PLAYER_ROTATION:150,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_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_CAST:120,LATENCY_ACTION_MDX_COMMAND:12,LATENCY_ACTION_REEL_SELECT_SEGMENT:136,LATENCY_ACTION_ACCELERATED_EFFECTS:145,LATENCY_ACTION_UPLOAD_AUDIO_MIXER:147,
LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING:146,LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK:130,LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD:125,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_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_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_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_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: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_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_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_PLAYER_ROTATION]="LATENCY_ACTION_PLAYER_ROTATION";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_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_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_UPLOAD_AUDIO_MIXER]="LATENCY_ACTION_UPLOAD_AUDIO_MIXER";
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_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_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_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_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_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]="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_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 sz={LATENCY_NETWORK_MOBILE:2,LATENCY_NETWORK_WIFI:1,LATENCY_NETWORK_UNKNOWN:0};sz[sz.LATENCY_NETWORK_MOBILE]="LATENCY_NETWORK_MOBILE";sz[sz.LATENCY_NETWORK_WIFI]="LATENCY_NETWORK_WIFI";sz[sz.LATENCY_NETWORK_UNKNOWN]="LATENCY_NETWORK_UNKNOWN";
var tz={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};tz[tz.CONN_INVALID]="CONN_INVALID";tz[tz.CONN_CELLULAR_5G_NSA]="CONN_CELLULAR_5G_NSA";tz[tz.CONN_CELLULAR_5G_SA]="CONN_CELLULAR_5G_SA";tz[tz.CONN_WIFI_METERED]="CONN_WIFI_METERED";tz[tz.CONN_CELLULAR_5G]="CONN_CELLULAR_5G";
tz[tz.CONN_DISCO]="CONN_DISCO";tz[tz.CONN_CELLULAR_UNKNOWN]="CONN_CELLULAR_UNKNOWN";tz[tz.CONN_CELLULAR_4G]="CONN_CELLULAR_4G";tz[tz.CONN_CELLULAR_3G]="CONN_CELLULAR_3G";tz[tz.CONN_CELLULAR_2G]="CONN_CELLULAR_2G";tz[tz.CONN_WIFI]="CONN_WIFI";tz[tz.CONN_NONE]="CONN_NONE";tz[tz.CONN_UNKNOWN]="CONN_UNKNOWN";tz[tz.CONN_DEFAULT]="CONN_DEFAULT";
var uz={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};uz[uz.DETAILED_NETWORK_TYPE_NR_NSA]="DETAILED_NETWORK_TYPE_NR_NSA";
uz[uz.DETAILED_NETWORK_TYPE_NR_SA]="DETAILED_NETWORK_TYPE_NR_SA";uz[uz.DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED]="DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED";uz[uz.DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT]="DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT";uz[uz.DETAILED_NETWORK_TYPE_DISCONNECTED]="DETAILED_NETWORK_TYPE_DISCONNECTED";uz[uz.DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN]="DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN";uz[uz.DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN]="DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN";
uz[uz.DETAILED_NETWORK_TYPE_WIMAX]="DETAILED_NETWORK_TYPE_WIMAX";uz[uz.DETAILED_NETWORK_TYPE_ETHERNET]="DETAILED_NETWORK_TYPE_ETHERNET";uz[uz.DETAILED_NETWORK_TYPE_BLUETOOTH]="DETAILED_NETWORK_TYPE_BLUETOOTH";uz[uz.DETAILED_NETWORK_TYPE_WIFI]="DETAILED_NETWORK_TYPE_WIFI";uz[uz.DETAILED_NETWORK_TYPE_LTE]="DETAILED_NETWORK_TYPE_LTE";uz[uz.DETAILED_NETWORK_TYPE_HSPAP]="DETAILED_NETWORK_TYPE_HSPAP";uz[uz.DETAILED_NETWORK_TYPE_EHRPD]="DETAILED_NETWORK_TYPE_EHRPD";uz[uz.DETAILED_NETWORK_TYPE_EVDO_B]="DETAILED_NETWORK_TYPE_EVDO_B";
uz[uz.DETAILED_NETWORK_TYPE_UMTS]="DETAILED_NETWORK_TYPE_UMTS";uz[uz.DETAILED_NETWORK_TYPE_IDEN]="DETAILED_NETWORK_TYPE_IDEN";uz[uz.DETAILED_NETWORK_TYPE_HSUPA]="DETAILED_NETWORK_TYPE_HSUPA";uz[uz.DETAILED_NETWORK_TYPE_HSPA]="DETAILED_NETWORK_TYPE_HSPA";uz[uz.DETAILED_NETWORK_TYPE_HSDPA]="DETAILED_NETWORK_TYPE_HSDPA";uz[uz.DETAILED_NETWORK_TYPE_EVDO_A]="DETAILED_NETWORK_TYPE_EVDO_A";uz[uz.DETAILED_NETWORK_TYPE_EVDO_0]="DETAILED_NETWORK_TYPE_EVDO_0";uz[uz.DETAILED_NETWORK_TYPE_CDMA]="DETAILED_NETWORK_TYPE_CDMA";
uz[uz.DETAILED_NETWORK_TYPE_1_X_RTT]="DETAILED_NETWORK_TYPE_1_X_RTT";uz[uz.DETAILED_NETWORK_TYPE_GPRS]="DETAILED_NETWORK_TYPE_GPRS";uz[uz.DETAILED_NETWORK_TYPE_EDGE]="DETAILED_NETWORK_TYPE_EDGE";uz[uz.DETAILED_NETWORK_TYPE_UNKNOWN]="DETAILED_NETWORK_TYPE_UNKNOWN";var vz={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};
vz[vz.LATENCY_PLAYER_RTSP]="LATENCY_PLAYER_RTSP";vz[vz.LATENCY_PLAYER_HTML5_INLINE]="LATENCY_PLAYER_HTML5_INLINE";vz[vz.LATENCY_PLAYER_HTML5_FULLSCREEN]="LATENCY_PLAYER_HTML5_FULLSCREEN";vz[vz.LATENCY_PLAYER_HTML5]="LATENCY_PLAYER_HTML5";vz[vz.LATENCY_PLAYER_FRAMEWORK]="LATENCY_PLAYER_FRAMEWORK";vz[vz.LATENCY_PLAYER_FLASH]="LATENCY_PLAYER_FLASH";vz[vz.LATENCY_PLAYER_EXO]="LATENCY_PLAYER_EXO";vz[vz.LATENCY_PLAYER_UNKNOWN]="LATENCY_PLAYER_UNKNOWN";
var wz={LATENCY_AD_BREAK_TYPE_POSTROLL:3,LATENCY_AD_BREAK_TYPE_MIDROLL:2,LATENCY_AD_BREAK_TYPE_PREROLL:1,LATENCY_AD_BREAK_TYPE_UNKNOWN:0};wz[wz.LATENCY_AD_BREAK_TYPE_POSTROLL]="LATENCY_AD_BREAK_TYPE_POSTROLL";wz[wz.LATENCY_AD_BREAK_TYPE_MIDROLL]="LATENCY_AD_BREAK_TYPE_MIDROLL";wz[wz.LATENCY_AD_BREAK_TYPE_PREROLL]="LATENCY_AD_BREAK_TYPE_PREROLL";wz[wz.LATENCY_AD_BREAK_TYPE_UNKNOWN]="LATENCY_AD_BREAK_TYPE_UNKNOWN";var xz={LATENCY_ACTION_ERROR_STARTUP_TIMEOUT:1,LATENCY_ACTION_ERROR_UNSPECIFIED:0};
xz[xz.LATENCY_ACTION_ERROR_STARTUP_TIMEOUT]="LATENCY_ACTION_ERROR_STARTUP_TIMEOUT";xz[xz.LATENCY_ACTION_ERROR_UNSPECIFIED]="LATENCY_ACTION_ERROR_UNSPECIFIED";var yz={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};yz[yz.LIVE_STREAM_MODE_WINDOW]="LIVE_STREAM_MODE_WINDOW";yz[yz.LIVE_STREAM_MODE_POST]="LIVE_STREAM_MODE_POST";yz[yz.LIVE_STREAM_MODE_LP]="LIVE_STREAM_MODE_LP";
yz[yz.LIVE_STREAM_MODE_LIVE]="LIVE_STREAM_MODE_LIVE";yz[yz.LIVE_STREAM_MODE_DVR]="LIVE_STREAM_MODE_DVR";yz[yz.LIVE_STREAM_MODE_UNKNOWN]="LIVE_STREAM_MODE_UNKNOWN";var zz={VIDEO_STREAM_TYPE_VOD:3,VIDEO_STREAM_TYPE_DVR:2,VIDEO_STREAM_TYPE_LIVE:1,VIDEO_STREAM_TYPE_UNSPECIFIED:0};zz[zz.VIDEO_STREAM_TYPE_VOD]="VIDEO_STREAM_TYPE_VOD";zz[zz.VIDEO_STREAM_TYPE_DVR]="VIDEO_STREAM_TYPE_DVR";zz[zz.VIDEO_STREAM_TYPE_LIVE]="VIDEO_STREAM_TYPE_LIVE";zz[zz.VIDEO_STREAM_TYPE_UNSPECIFIED]="VIDEO_STREAM_TYPE_UNSPECIFIED";
var Az={YT_IDB_TRANSACTION_TYPE_READ:2,YT_IDB_TRANSACTION_TYPE_WRITE:1,YT_IDB_TRANSACTION_TYPE_UNKNOWN:0};Az[Az.YT_IDB_TRANSACTION_TYPE_READ]="YT_IDB_TRANSACTION_TYPE_READ";Az[Az.YT_IDB_TRANSACTION_TYPE_WRITE]="YT_IDB_TRANSACTION_TYPE_WRITE";Az[Az.YT_IDB_TRANSACTION_TYPE_UNKNOWN]="YT_IDB_TRANSACTION_TYPE_UNKNOWN";var Bz={PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN:2,PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT:1,PLAYER_ROTATION_TYPE_UNKNOWN:0};Bz[Bz.PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN]="PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN";
Bz[Bz.PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT]="PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT";Bz[Bz.PLAYER_ROTATION_TYPE_UNKNOWN]="PLAYER_ROTATION_TYPE_UNKNOWN";var kz=g.C.ytLoggingLatencyUsageStats_||{};g.Ia("ytLoggingLatencyUsageStats_",kz,void 0);iz.prototype.tick=function(a,b,c,d){lz(this,"tick_"+a+"_"+b)||(c={timestamp:c,cttAuthInfo:d},g.Q("web_csi_via_jspb")?(d=new vha,g.D(d,1,a),g.D(d,2,b),a=new Ks,Qd(a,5,Vx,d),Ux(a,c)):g.Fv("latencyActionTicked",{tickName:a,clientActionNonce:b},c))};
iz.prototype.info=function(a,b,c){var d=Object.keys(a).join("");lz(this,"info_"+d+"_"+b)||(a=Object.assign({},a),a.clientActionNonce=b,g.Fv("latencyActionInfo",a,{cttAuthInfo:c}))};
iz.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));lz(this,"info_"+d+"_"+b)||(g.D(a,2,b),b={cttAuthInfo:c},c=new Ks,Qd(c,7,Vx,a),Ux(c,b))};
iz.prototype.span=function(a,b,c){var d=Object.keys(a).join("");lz(this,"span_"+d+"_"+b)||(a.clientActionNonce=b,g.Fv("latencyActionSpan",a,{cttAuthInfo:c}))};var C2=window;C2.ytcsi&&(C2.ytcsi.info=g.rz,C2.ytcsi.tick=oz);var Zta={W3:1,p4:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};var nT=16/9,gTa=[.25,.5,.75,1,1.25,1.5,1.75,2],hTa=gTa.concat([3,4,5,6,7,8,9,10,15]);var iTa=["h","H"],jTa=["9","("],kTa=["9h","(h"],lTa=["8","*"],mTa=["a","A"],nTa=["o","O"],oTa=["m","M"],pTa=["mac3","MAC3"],qTa=["meac3","MEAC3"],D2={},Lra=(D2.h=iTa,D2.H=iTa,D2["9"]=jTa,D2["("]=jTa,D2["9h"]=kTa,D2["(h"]=kTa,D2["8"]=lTa,D2["*"]=lTa,D2.a=mTa,D2.A=mTa,D2.o=nTa,D2.O=nTa,D2.m=oTa,D2.M=oTa,D2.mac3=pTa,D2.MAC3=pTa,D2.meac3=qTa,D2.MEAC3=qTa,D2);Iz.prototype.getLanguageInfo=function(){return this.Fc};
Iz.prototype.toString=function(){return this.Fc.name};
Iz.prototype.getLanguageInfo=Iz.prototype.getLanguageInfo;var E2,Nz;E2={};g.Kz=(E2.auto=0,E2.tiny=144,E2.light=144,E2.small=240,E2.medium=360,E2.large=480,E2.hd720=720,E2.hd1080=1080,E2.hd1440=1440,E2.hd2160=2160,E2.hd2880=2880,E2.highres=4320,E2);Nz={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};Jz.prototype.equals=function(a){return this.j===a.j&&this.i===a.i&&this.u===a.u&&this.reason===a.reason};
Jz.prototype.isLocked=function(){return this.u&&!!this.j&&this.j===this.i};
Jz.prototype.compose=function(a){if(a.u&&Mz(a))return pF;if(a.u||Mz(this))return a;if(this.u||Mz(a))return this;var b=this.j&&a.j?Math.max(this.j,a.j):this.j||a.j,c=this.i&&a.i?Math.min(this.i,a.i):this.i||a.i;b=Math.min(b,c);return b===this.j&&c===this.i?this:new Jz(b,c,!1,c===this.i?this.reason:a.reason)};
Jz.prototype.B=function(a){return a.video?ipa(this,a.video.quality):!1};
var rTa=Lz("auto","hd1080",!1,"l"),gJa=Lz("auto","large",!1,"l"),pF=Lz("auto","auto",!1,"p");Lz("small","auto",!1,"p");Pz.prototype.On=function(a){a=a||pF;for(var b=g.Bp(this.videoInfos,function(k){return a.B(k)}),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};
Pz.prototype.getAvailableAudioTracks=function(){return this.audioTracks};var aA={eR:function(a,b){a.splice(0,b)},
qS:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b%a.length]=c},
Tb:function(a){a.reverse()}};g.bA.prototype.set=function(a,b){this.i[a]!==b&&(this.i[a]=b,this.url="")};
g.bA.prototype.get=function(a){dA(this);return this.i[a]||null};
g.bA.prototype.clone=function(){var a=new g.bA(this.j,this.C);a.u=this.u;a.path=this.path;a.B=this.B;a.i=g.yf(this.i);a.url=this.url;return a};g.h=jA.prototype;g.h.DC=function(a){this.segments.push(a)};
g.h.getDuration=function(a){return(a=this.Sk(a))?a.duration:0};
g.h.getDurationTicks=function(a){return this.getDuration(a)};
g.h.getFirstSegmentNumber=function(){return this.segments.length?this.segments[0].Na:-1};
g.h.getIngestionTime=function(a){return(a=this.Sk(a))?a.ingestionTime:NaN};
g.h.getLastSegmentNumber=function(){return this.segments.length?this.segments[this.segments.length-1].Na:-1};
g.h.getMaxKnownEndTime=function(){var a=this.segments[this.segments.length-1];return a?a.endTime:NaN};
g.h.getMinSeekableTime=function(){return this.segments[0].startTime};
g.h.getNumberOfSegments=function(){return this.segments.length};
g.h.getOffset=function(){return 0};
g.h.getSegmentNumberForTime=function(a){return(a=this.Is(a))?a.Na:-1};
g.h.getSegmentURL=function(a){return(a=this.Sk(a))?a.sourceURL:""};
g.h.getStartTime=function(a){return(a=this.Sk(a))?a.startTime:0};
g.h.getStartTimeInPeriod=function(a){return(a=this.Sk(a))?a.i:0};
g.h.isLoaded=function(){return 0<this.segments.length};
g.h.Sk=function(a){if(this.i&&this.i.Na===a)return this.i;a=g.oc(this.segments,new iA(a,0,0,0,""),function(b,c){return b.Na-c.Na});
return this.i=0<=a?this.segments[a]:null};
g.h.Is=function(a){if(this.i&&this.i.startTime<=a&&a<this.i.startTime+this.i.duration)return this.i;a=g.oc(this.segments,{startTime:a},function(b,c){return b.startTime-c.startTime});
return this.i=0<=a?this.segments[a]:this.segments[Math.max(0,-a-2)]};
g.h.append=function(a){if(a.length)if(a=g.ic(a),this.segments.length){var b=this.segments.length?g.Ub(this.segments).endTime:0,c=a[0].Na-this.getLastSegmentNumber();1<c&&bc(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.h.getLocalMaxByterate=function(){return 0};var ZIa=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}(),oA=Array(1024),mA=window.TextDecoder?new TextDecoder:void 0,qA=window.TextEncoder?new TextEncoder:void 0;sA.prototype.skip=function(a){this.i+=a};
sA.prototype.markAsSkip=function(){this.type=1936419184;this.data.setUint32(this.offset+4,1936419184)};var F2={},sTa=(F2.predictStart="predictStart",F2.start="start",F2["continue"]="continue",F2.stop="stop",F2),Cpa={EVENT_PREDICT_START:"predictStart",EVENT_START:"start",EVENT_CONTINUE:"continue",EVENT_STOP:"stop"};BA.prototype.yw=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"])};
BA.prototype.toString=function(){for(var a="",b=g.q(Object.keys(this.data)),c=b.next();!c.done;c=b.next())c=c.value,a+=c+":"+this.data[c]+";";return a};var Npa=!1;YA.prototype.Dw=function(){var a=this.i;this.i=0;var b=!1;try{bB(this,440786851)&&(this.i=0,bB(this,408125543)&&(b=!0))}catch(c){if(c instanceof RangeError)this.i=0,b=!1,g.Rx(c);else throw c;}this.i=a;return b};lB.prototype.set=function(a,b){this.Vf.get(a);this.i[a]=b;this.url=""};
lB.prototype.get=function(a){return this.i[a]||this.Vf.get(a)};$pa.prototype.Fj=function(a,b){a.Vf===this.i&&(this.i=nB(a,b));a.Vf===this.u&&(this.u=nB(a,b))};tB.prototype.Ze=function(){return!!this.i&&this.index.isLoaded()};
tB.prototype.Kr=function(){return!1};
tB.prototype.LI=function(a){return[a]};
tB.prototype.Qt=function(a){return[a]};vB.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};zB.prototype.isEncrypted=function(){return this.i.info.isEncrypted()};
zB.prototype.equals=function(a){return!(!a||a.i!==this.i||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.Cb!==this.Cb||a.j!==this.j)};
zB.prototype.isVideo=function(){return!!this.i.info.video};FB.prototype.Qn=function(){return this.u?cA(this.u):""};
FB.prototype.Nk=function(){return AB(this.i[0])};
FB.prototype.Fj=function(a,b){this.j.Fj(a,b);if(this.u){this.u=nB(a,b);b=g.q(["acpns","cpn","daistate","skipsq"]);for(var c=b.next();!c.done;c=b.next())this.u.set(c.value,null)}this.requestId=a.get("req_id")};g.v(JB,tB);g.h=JB.prototype;g.h.Tg=function(){return!1};
g.h.Fw=function(){return!1};
g.h.Kr=function(){return!this.W};
g.h.Zp=function(){var a=new zB(1,this,this.initRange,"getMetadataRequestInfo");return new FB([a],this.W)};
g.h.Jr=function(){return null};
g.h.Ou=function(a){this.cn(a);return this.dn(a.Zd?a.Na+1:a.Na,!1)};
g.h.mm=function(a,b){b=void 0===b?!1:b;a=this.index.getSegmentNumberForTime(a);-1!==a||"386"===this.info.Vb()||this.info.Vb();b&&(a=Math.min(this.index.getLastSegmentNumber(),a+1));return this.dn(a,!0)};
g.h.ZE=function(a){this.i=new Uint8Array(aC(a).buffer)};
g.h.cn=function(a){return 0===a.j?!0:this.index.getLastSegmentNumber()>a.Na&&this.index.getFirstSegmentNumber()<=a.Na+1};
g.h.update=function(a,b,c){this.index.append(a);Apa(this.index,c);this.J=b};
g.h.Ze=function(){return this.Kr()?!0:tB.prototype.Ze.call(this)};
g.h.dn=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.Ob?this.info.Ob*e:1E3;b=!b;var k=f;f=a===this.index.getLastSegmentNumber()&&!this.J&&0<f;a=new zB(3,this,void 0,"liveCreateRequestInfoForSegment",a,d,e,0,k,f,b);return new FB([a],c)};
g.h.ME=function(){return this.Kr()?0:this.initRange.length};
g.h.HG=function(){return!1};MB.prototype.update=function(a,b){var c=void 0;this.j&&(c=this.j);var d=new MB,e=Array.from(a.getElementsByTagName("S"));if(e.length){var f=+KB(a,"timescale")||1,k=(+e[0].getAttribute("t")||0)/f,l=+KB(a,"startNumber")||0;d.B=k;var m=k,n=+KB(a,"presentationTimeOffset")||0;b=c?c.startSecs+c.durationSecs:b?m-n/f:0;m=Date.parse(oqa(KB(a,"yt:segmentIngestTime")))/1E3;d.C="SegmentTemplate"===a.parentElement.tagName;d.C&&(d.J=KB(a,"media"));a=c?l-c.Na:1;d.I=0<a?0:-a+1;a=g.q(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,r=+e.getAttribute("r")||0,t=0;t<=r;t++)if(c&&l<=c.Na)l++;else{var w=new mqa(l,b,n,m+p,k);d.i.push(w);var x=w.startSecs;w=e.getAttribute("yt:cuepointTimeOffset");var y=e.getAttribute("yt:cuepointDuration");if(w&&y){w=Number(w);x=-w/f+x;y=Number(y)/f;var z=e.getAttribute("yt:cuepointContext")||null,F=e.getAttribute("yt:cuepointIdentifier")||"";var I=e.getAttribute("yt:cuepointEvent")||"";I=sTa[I]||"unknown";w=new Dy(x,y,z,F,
I,w)}else w=null;w&&d.u.push(w);l++;b+=n;k+=n;m+=n+p}}d.i.length&&(d.j=g.Ub(d.i))}this.I=d.I;this.j=d.j||this.j;jc(this.i,d.i);jc(this.u,d.u);this.C=d.C;this.J=d.J;-1===this.B&&(this.B=d.getStreamTimeOffset())};
MB.prototype.getStreamTimeOffset=function(){return-1===this.B?0:this.B};g.v(NB,jA);g.h=NB.prototype;g.h.getFirstSegmentNumber=function(){return this.Ik?this.segments.length?this.Is(this.getMinSeekableTime()).Na:-1:jA.prototype.getFirstSegmentNumber.call(this)};
g.h.getMinSeekableTime=function(){if(this.bf)return 0;if(!this.Ik)return jA.prototype.getMinSeekableTime.call(this);if(!this.segments.length)return 0;var a=Math.max(g.Ub(this.segments).endTime-this.Zl,0);return 0<this.Ee&&this.Is(a).Na<this.Ee?this.Sk(this.Ee).startTime:a};
g.h.getMaxKnownEndTime=function(){if(!this.segments.length)return jA.prototype.getMaxKnownEndTime.call(this);var a=this.getLastSegmentNumber();if(!this.Ik||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 iA(a,Math.max(0,b.startTime-(b.Na-a)*this.Ig),this.Ig,0,"sq/"+a,void 0,void 0,!0)}return null!==this.u&&a.pending&&3===this.u?this.bf?Math.min(this.Zl,a.startTime):a.startTime:this.bf?Math.min(this.Zl,a.endTime):
a.endTime};
g.h.getNumberOfSegments=function(){return this.Ik?this.segments.length?this.getLastSegmentNumber()-this.getFirstSegmentNumber()+1:0:jA.prototype.getNumberOfSegments.call(this)};
g.h.getLastSegmentNumber=function(){var a=Math.min(this.zg,Math.max(jA.prototype.getLastSegmentNumber.call(this),this.Pu)),b=1E3*this.Zl;b=0<this.j&&this.j<b;this.bf&&0<this.Zl&&0<this.Pu&&!b&&(b=this.Is(this.Zl))&&(a=Math.min(b.Na-1,a));return a};
g.h.Os=function(){return this.segments.length?this.segments[this.segments.length-1]:null};
g.h.DC=function(a){var b=OB(this,a.Na);if(0<=b)this.segments[b]=a;else if(this.segments.splice(-(b+1),0,a),this.Nw&&0===a.Na%(300/this.Ig)){var c=this.segments[0].Na,d=Math.floor(this.Nw/this.Ig);a=a.Na-d;b=-(b+1)-d;0<b&&a>c&&(this.segments=this.segments.slice(b))}};
g.h.Is=function(a){if(!this.Ik)return jA.prototype.Is.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.Ig));else if(a>=b.endTime)b=b.Na+Math.floor((a-b.endTime)/this.Ig+1);else{b=pc(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.Sk(b)};
g.h.Sk=function(a){if(!this.Ik)return jA.prototype.Sk.call(this,a);if(!this.segments.length)return null;var b=OB(this,a);if(0<=b)return this.segments[b];var c=-(b+1);b=this.Ig;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 iA(a,d,b,0,"sq/"+a,void 0,void 0,
!0)};g.v(QB,JB);g.h=QB.prototype;g.h.Fw=function(){return!0};
g.h.Ze=function(){return!0};
g.h.cn=function(a){return!a.u};
g.h.Zp=function(){};
g.h.mm=function(a,b){b=void 0===b?!1:b;return"number"!==typeof a||isFinite(a)?JB.prototype.mm.call(this,a,b):(a=new zB(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.ej,void 0,this.ej*this.info.Ob),new FB([a],""))};
g.h.dn=function(a,b){var c=void 0===c?!1:c;if(PB(this.index,a))return JB.prototype.dn.call(this,a,b);var d=this.index.getStartTime(a),e=b?0:this.ej*this.info.Ob;b=!b;c=new zB(c?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",a,d,void 0,void 0,e,a===this.index.getLastSegmentNumber()&&!this.J&&0<e,b);return new FB([c],0<=a?"sq/"+a:"")};g.v(RB,tB);g.h=RB.prototype;g.h.Tg=function(){return!1};
g.h.Fw=function(){return!1};
g.h.Zp=function(){var a=new zB(1,this,void 0,"otfInit");return new FB([a],this.J)};
g.h.Jr=function(){return null};
g.h.Ou=function(a){this.cn(a);return wqa(this,a.Na+(a.Zd?1:0),!1)};
g.h.mm=function(a,b){b=void 0===b?!1:b;a=this.index.getSegmentNumberForTime(a);b&&(a=Math.min(this.index.getLastSegmentNumber(),a+1));return wqa(this,a,!0)};
g.h.ZE=function(a){1===a.info.type&&(this.i||(this.i=Bqa(a.i)),a.j&&"http://youtube.com/streaming/otf/durations/112015"===a.j.uri&&xqa(this,a.j))};
g.h.cn=function(a){return 0===a.j?!0:this.index.getLastSegmentNumber()>a.Na&&this.index.getFirstSegmentNumber()<=a.Na+1};
g.h.ME=function(){return 0};
g.h.HG=function(){return!1};g.h=SB.prototype;g.h.getOffset=function(a){return this.offsets[a]};
g.h.getStartTime=function(a){return this.i[a]/this.u};
g.h.getStartTimeInPeriod=function(){return 0};
g.h.getIngestionTime=function(){return NaN};
g.h.getDuration=function(a){a=this.getDurationTicks(a);return 0<=a?a/this.u:-1};
g.h.getDurationTicks=function(a){return a+1<this.count||this.j?this.i[a+1]-this.i[a]:-1};
g.h.getByteLength=function(a){return a+1<this.count||this.j?this.offsets[a+1]-this.offsets[a]:-1};
g.h.getFirstSegmentNumber=function(){return 0};
g.h.getLastSegmentNumber=function(){return this.count-1};
g.h.getMaxKnownEndTime=function(){return this.j?this.i[this.count]/this.u:NaN};
g.h.getMinSeekableTime=function(){return 0};
g.h.getNumberOfSegments=function(){return this.count};
g.h.getTotalByteLength=function(){return this.j?this.offsets[this.count]:-1};
g.h.getSegmentURL=function(){return""};
g.h.getSegmentNumberForTime=function(a){a=g.oc(this.i.subarray(0,this.count),a*this.u);return 0<=a?a:Math.max(0,-a-2)};
g.h.isLoaded=function(){return 0<=this.getLastSegmentNumber()};
g.h.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.h.resize=function(a){a+=2;var b=this.offsets;this.offsets=new Float64Array(a+1);var c=this.i;this.i=new Float64Array(a+1);for(a=0;a<this.count+1;a++)this.offsets[a]=b[a],this.i[a]=c[a]};
g.h.setTimebase=function(a){this.u=a};
g.h.setFirstSegmentStart=function(a,b){this.offsets[0]=a;this.i[0]=b;this.j=!0};
g.h.addSegmentBySize=function(a,b){this.count++;TB(this);this.offsets[this.count]=this.offsets[this.count-1]+a;this.i[this.count]=this.i[this.count-1]+b};
g.h.addSegmentByStart=function(a,b){TB(this);this.offsets[this.count]=a;this.i[this.count]=b;this.count++};
g.h.cap=function(a,b){TB(this);this.j=!0;this.i[this.count]=b;this.offsets[this.count]=a};UB.prototype.append=function(a){if(yqa(this,a)){var b=this.i[this.i.length-1];this.i[this.i.length-1]=new Uint8Array(b.buffer,b.byteOffset,b.length+a.length);WB(this)}else this.i.push(a);this.totalLength+=a.length};
UB.prototype.split=function(a){for(var b=new UB,c=new UB,d=g.q(this.i),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{Zz:b,Wq:c}};
UB.prototype.isFocused=function(a){return a>=this.u&&a<this.u+this.i[this.j].length};
UB.prototype.focus=function(a){if(!this.isFocused(a)){for(a<this.u&&WB(this);this.u+this.i[this.j].length<=a&&this.j<this.i.length;)this.u+=this.i[this.j].length,this.j+=1;this.B=void 0}};$B.prototype.verify=function(a){if(this.info.j!==this.i.totalLength)return a.slength=this.info.j.toString(),a.range=this.i.totalLength.toString(),!1;if(1===this.info.i.info.containerType){if(8>this.info.j||4===this.info.type)return!0;var b=aC(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.j&&1936286840===b;if(3===this.info.type&&0===this.info.Cb)return 1836019558===b||1936286840===
b||1937013104===b||1718909296===b||1701671783===b||1936419184===b}else if(2===this.info.i.info.containerType){if(4>this.info.j||4===this.info.type)return!0;c=aC(this).getUint32(0,!1);a.ebm=c.toString();if(3===this.info.type&&0===this.info.Cb)return 524531317===c||440786851===c}return!0};g.v(dC,tB);g.h=dC.prototype;g.h.Zp=function(a){var b=new zB(1,this,this.initRange,"initInfo"),c=new zB(2,this,this.indexRange,"indexInfo");b=[b,c];0<this.info.contentLength&&a&&(c=c.range.end+1,a=Math.min(a,this.info.contentLength-c),0<a&&(a=xB(c,a),b.push(new zB(4,this,a,"tbdRange"))));return new FB(b)};
g.h.ZE=function(a){if(1===a.info.type){if(this.i)return;this.i=Bqa(a.i)}else if(2===a.info.type){if(this.J||0<=this.index.getLastSegmentNumber())return;if(g.bC(this.info)){var b=this.index,c=aC(a);a=a.info.range.start;var d=g.DA(c,0,1936286840);c=Kpa(d);b.setTimebase(c.GH);b.setFirstSegmentStart(c.fT+a+d.size,c.PS);a=c.BH.length;for(d=0;d<a;d++)b.addSegmentBySize(c.iY[d],c.BH[d])}else this.J=aC(a)}if(this.info.De()&&this.i&&this.J){a=new DataView(this.i.buffer);b=this.index;d=this.J;c=this.indexRange.end;
var e=new YA(a);a=e;e=a.i;var f={hP:1E6,iP:1E9,duration:0,KO:0,eH:0};if(bB(a,408125543))if(f.KO=cB(a,!0),f.eH=a.start+a.i,bB(a,357149030)){for(var k=aB(a);!ZA(k);){var l=cB(k,!1);2807729===l?f.hP=eB(k):2807730===l?f.iP=eB(k):17545===l?f.duration=gB(k):fB(k)}a.i=e;a=f}else a.i=e,a=null;else a.i=e,a=null;if(null!==a){b.setTimebase(a.iP/a.hP);e=new YA(d);d=e;k=a.eH;e=d.i;f=[];if(bB(d,475249515)){for(l=aB(d);bB(l,187);){var m=aB(l);if(bB(m,179)){var n=eB(m);if(bB(m,183)){m=aB(m);for(var p=k;bB(m,241);)p=
eB(m)+k;f.push({fz:p,HS:n})}}}if(0<f.length&&c===f[0].fz)for(c=0;c<f.length;c++)f[c].fz+=1;d.i=e;c=f}else d.i=e,c=null;if(null!==c){c=g.q(c);for(d=c.next();!d.done;d=c.next())d=d.value,b.addSegmentByStart(d.fz,d.HS);b.cap(a.KO+a.eH,a.duration)}}this.J=null}};
g.h.LI=function(a){for(var b=this.Qt(a.info),c=a.info.range.start+a.info.Cb,d=a.u,e=[],f=0;f<b.length;f++){var k=b[f].j;k=a.i.split(b[f].range.start+b[f].Cb-c).Wq.split(k).Zz;e.push(new $B(b[f],k,d));d=!1}return e};
g.h.Qt=function(a){for(var b=a.range.start+a.Cb,c=0;c<this.index.getLastSegmentNumber()&&b>=this.index.getOffset(c+1);)c++;return eC(this,c,b,a.j).i};
g.h.cn=function(a){return this.Ze()?!0:a.range.end+1<this.info.contentLength};
g.h.Jr=function(a,b){this.cn(a);if(!this.Ze())return b=xB(a.range.end+1,b),b.end+1>this.info.contentLength&&(b=new vB(b.start,this.info.contentLength-1)),a=[new zB(4,a.i,b,"getNextRequestInfoByLength")],new FB(a);4===a.type&&(a=this.Qt(a),a=a[a.length-1]);var c=0,d=a.range.start+a.Cb+a.j;3===a.type&&(c=a.Na,d===a.range.end+1&&(c+=1));return eC(this,c,d,b)};
g.h.Ou=function(){return null};
g.h.mm=function(a,b){b=void 0===b?!1:b;a=this.index.getSegmentNumberForTime(a);b&&(a=Math.min(this.index.getLastSegmentNumber(),a+1));return eC(this,a,this.index.getOffset(a),0)};
g.h.Tg=function(){return!0};
g.h.Fw=function(){return!1};
g.h.ME=function(){return this.indexRange.length+this.initRange.length};
g.h.HG=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};fC.prototype.isMultiChannelAudio=function(){return 2<this.numChannels};var G2={},Wz=(G2.WIDTH={name:"width",video:!0,valid:640,invalid:99999},G2.HEIGHT={name:"height",video:!0,valid:360,invalid:99999},G2.FRAMERATE={name:"framerate",video:!0,valid:30,invalid:9999},G2.BITRATE={name:"bitrate",video:!0,valid:3E5,invalid:2E9},G2.EOTF={name:"eotf",video:!0,valid:"bt709",invalid:"catavision"},G2.CHANNELS={name:"channels",video:!1,valid:2,invalid:99},G2.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",invalid:"invalidformat"},G2.DECODETOTEXTURE={name:"decode-to-texture",
video:!0,valid:"false",invalid:"nope"},G2.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",invalid:"av99.0.05M.08"},G2.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",invalid:"invalid"},G2);var Z={},kC=(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["313"]="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);var iC="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");hC.prototype.isHdr=function(){return"smpte2084"===this.j||"arib-std-b67"===this.j};g.h=lC.prototype;g.h.Vb=function(){return this.id.split(";",1)[0]};
g.h.De=function(){return 2===this.containerType};
g.h.isEncrypted=function(){return!!this.Kd};
g.h.uo=function(){return!!this.audio};
g.h.isVideo=function(){return!!this.video};rC.prototype.getName=function(){return this.name};
rC.prototype.getId=function(){return this.id};
rC.prototype.getIsDefault=function(){return this.isDefault};
rC.prototype.toString=function(){return this.name};
rC.prototype.getName=rC.prototype.getName;rC.prototype.getId=rC.prototype.getId;rC.prototype.getIsDefault=rC.prototype.getIsDefault;g.v(g.sC,qx);g.sC.prototype.S=function(a,b,c,d,e){return qx.prototype.S.call(this,a,b,c,d,e)};g.v(GC,g.tx);g.h=GC.prototype;g.h.appendBuffer=function(a,b,c){if(this.Jd.Gz()!==this.appendWindowStart+this.start||this.Jd.DE()!==this.appendWindowEnd+this.start||this.Jd.kd()!==this.timestampOffset+this.start)this.Jd.supports(1),this.Jd.kH(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.Jd.BB(this.timestampOffset+this.start);this.Jd.appendBuffer(a,b,c)};
g.h.abort=function(){this.Jd.abort()};
g.h.remove=function(a,b){this.Jd.remove(a+this.start,b+this.start)};
g.h.kH=function(a,b){this.appendWindowStart=a;this.appendWindowEnd=b};
g.h.QE=function(){return this.timestampOffset+this.start};
g.h.Gz=function(){return this.appendWindowStart};
g.h.DE=function(){return this.appendWindowEnd};
g.h.BB=function(a){this.timestampOffset=a};
g.h.kd=function(){return this.timestampOffset};
g.h.uf=function(a){a=this.Jd.uf(void 0===a?!1:a);return FC(a,this.start,this.end)};
g.h.ih=function(){return this.Jd.ih()};
g.h.Rn=function(){return this.Jd.Rn()};
g.h.Kz=function(){return this.Jd.Kz()};
g.h.XH=function(a,b){this.Jd.XH(a,b)};
g.h.supports=function(a){return this.Jd.supports(a)};
g.h.Lz=function(){return this.Jd.Lz()};
g.h.isView=function(){return!0};
g.h.SB=function(a,b,c){return this.isActive?this.Jd.SB(a,b,c):!1};
g.h.Xy=function(){return this.Jd.Xy()?this.isActive:!1};
g.h.isLocked=function(){return this.py&&!this.isActive};
g.h.Kb=function(a){a=this.Jd.Kb(a);a.vw=this.start+"-"+this.end;return a};
g.h.cw=function(){return this.Jd.cw()};
g.h.ra=function(){vx(this.Jd,this.NL);g.tx.prototype.ra.call(this)};var eU=!1;g.v(HC,g.tx);g.h=HC.prototype;g.h.appendBuffer=function(a,b,c){this.Ty=!1;c&&(this.qA=c);b&&(b.isEncrypted()&&(this.rM=this.qA),3===b.type&&(this.cf=b));var d;(null==(d=this.Zb)?0:d.appendBuffer)?this.Zb.appendBuffer(a):this.Zb?this.Zb.append(a):this.Ue&&this.Ue.webkitSourceAppend(this.id,a)};
g.h.abort=function(){try{this.Zb?this.Zb.abort():this.Ue&&this.Ue.webkitSourceAbort(this.id)}catch(a){}this.qA=this.cf=null};
g.h.remove=function(a,b){this.Ty=!1;var c;(null==(c=this.Zb)?0:c.remove)&&this.Zb.remove(a,b)};
g.h.Gz=function(){if(eU&&this.isVideo)return this.appendWindowStart;var a;return(null==(a=this.Zb)?void 0:a.appendWindowStart)||0};
g.h.DE=function(){var a;return(null==(a=this.Zb)?void 0:a.appendWindowEnd)||0};
g.h.kH=function(a,b){this.Zb&&(eU&&this.isVideo?(this.appendWindowStart=a,this.Zb.appendWindowEnd=b):a>this.Gz()?(this.Zb.appendWindowEnd=b,this.Zb.appendWindowStart=a):(this.Zb.appendWindowStart=a,this.Zb.appendWindowEnd=b))};
g.h.QE=function(){return this.timestampOffset};
g.h.BB=function(a){eU?this.timestampOffset=a:this.supports(1)&&(this.Zb.timestampOffset=a)};
g.h.kd=function(){return eU?this.timestampOffset:this.supports(1)?this.Zb.timestampOffset:0};
g.h.uf=function(a){if(void 0===a?0:a)return this.Ty||this.ih()||(this.pK=this.uf(!1),this.Ty=!0),this.pK;try{return this.Zb?this.Zb.buffered:this.Ue?this.Ue.webkitSourceBuffered(this.id):zC([0],[Infinity])}catch(b){return zC([],[])}};
g.h.ih=function(){var a;return(null==(a=this.Zb)?void 0:a.updating)||!1};
g.h.Rn=function(){return this.qA};
g.h.Kz=function(){return this.rM};
g.h.XH=function(a,b){this.containerType!==a&&(this.supports(4),IC()&&this.Zb.changeType(b));this.containerType=a};
g.h.Lz=function(){return this.cf};
g.h.isView=function(){return!1};
g.h.supports=function(a){switch(a){case 1:var b;return void 0!==(null==(b=this.Zb)?void 0:b.timestampOffset);case 0:var c;return!(null==(c=this.Zb)||!c.appendBuffer);case 2:var d;return!(null==(d=this.Zb)||!d.remove);case 3:var e,f;return!!((null==(e=this.Zb)?0:e.addEventListener)&&(null==(f=this.Zb)?0:f.removeEventListener));case 4:return!(!this.Zb||!this.Zb.changeType);default:return!1}};
g.h.Xy=function(){return!this.ih()};
g.h.isLocked=function(){return!1};
g.h.Kb=function(a){a.to=this.kd();a.up=this.ih();var b,c=(null==(b=this.Zb)?void 0:b.appendWindowStart)||0,d;b=(null==(d=this.Zb)?void 0:d.appendWindowEnd)||Infinity;a.aw=c.toFixed(3)+"-"+b.toFixed(3);try{a.bu=AC(this.uf())}catch(e){}return a};
g.h.ra=function(){this.supports(3)&&(this.Zb.removeEventListener("updateend",this.Ke),this.Zb.removeEventListener("error",this.Ke));g.tx.prototype.ra.call(this)};
g.h.SB=function(a,b,c){if(!this.supports(2)||this.ih())return!1;var d=this.uf(),e=BC(d,a);if(0>e)return!1;try{if(b&&e+1<d.length){var f=d.start(e+1),k=d.end(d.length-1);this.ma();this.remove(f,k);return!0}if(this.isView())return!1;var l=Math.max(0,a-c);if(0<c&&d.start(e)<l)return this.ma(),this.remove(0,l),!0}catch(m){}return!1};
g.h.ma=function(){};
g.h.cw=function(){return this.containerType};JC.prototype.dispose=function(){if(!this.isDisposed){if(this.j)try{URL.revokeObjectURL(this.i)}catch(a){}this.u=!0}};
JC.prototype.isDisposed=function(){return this.u};
JC.prototype.equals=function(a){return null!==a&&a.i===this.i};
JC.prototype.toString=function(){return"MediaResource {"+this.i+"}"};g.v(KC,g.G);g.h=KC.prototype;g.h.getDuration=function(){var a;return(null==(a=this.mediaSource)?void 0:a.duration)||this.u};
g.h.Wj=function(a){try{this.mediaSource?this.mediaSource.duration=a:(this.u=a,this.Ue.webkitSourceSetDuration(a))}catch(b){}};
g.h.zf=function(){try{return"closed"===MC(this)}catch(a){return!0}};
g.h.ih=function(){return!!(this.i&&this.i.ih()||this.j&&this.j.ih())};
g.h.oX=function(){!this.isDisposed()&&LC(this)&&this.callback&&(this.callback(this),this.callback=null)};
g.h.nX=function(){this.dispose()};var Yqa=/action_display_post/;var Zqa;g.v(PC,g.tx);g.h=PC.prototype;g.h.isFailed=function(){return 3===this.state};
g.h.VX=function(a){var b,c=a.getElementsByTagName("Representation");if(0<a.getElementsByTagName("SegmentList").length||0<a.getElementsByTagName("SegmentTemplate").length){this.Af=this.u=!0;this.timeline||(this.timeline=new qqa);uqa(this.timeline,a,this.Wa);this.Z("refresh");for(a=0;a<c.length;a++){var d=pra(this,c[a]),e=this.isLive&&g.bC(d)&&this.fb;if(!this.i[d.id]){var f=SC(LB(c[a],"BaseURL").textContent),k=LB(c[a],"Initialization"),l=KB(k,"sourceURL");k=wB(KB(k,"range"));e&&(l="",k=void 0);this.i[d.id]=
new JB(f,d,l,k)}d=this.i[d.id];f=KB(c[a],"id","AdaptationSet");f=""!==f?f:KB(c[a],"mimetype","AdaptationSet");l=this.timeline;l=l.u[d.info.id]||l.j[f]||l.i||null;f=l.i;!this.j&&l.getStreamTimeOffset()&&(this.j=l.getStreamTimeOffset());if(l.C)for(e=[],f=g.q(f),k=f.next();!k.done;k=f.next()){k=k.value;var m=d.info.id,n=8*d.info.Ob,p=k.Na,r=k.startSecs;var t=l.J.split("$$");for(b=0;b<t.length;b++)t[b]=t[b].replace("$RepresentationID$",m),t[b]=t[b].replace("$Number$",p.toString()),t[b]=t[b].replace("$Bandwidth$",
n.toString()),t[b]=t[b].replace("$Time$",r.toString());e.push(new iA(k.Na,k.startSecs,k.durationSecs,k.i,t.join("$"),null,k.j))}else{l=kc(LB(c[a],"SegmentList").getElementsByTagName("SegmentURL"),l.I);k=[];for(m=0;m<l.length;m++){n=k;p=n.push;r=f[m];t=void 0;var w=l[m];b=w.getAttribute("media");if(!e&&(w=w.getAttribute("mediaRange"))){var x=w.split("-");x[1]&&0<=Number(x[1])?t=wB(w):b=b+"?range="+w}p.call(n,new iA(r.Na,r.startSecs,r.durationSecs,r.i,b,t,r.j))}e=k}d.update(e,this.isLive,this.La)}vqa(this.timeline);
return!0}this.duration=nqa(KB(a,"mediaPresentationDuration"));a:{for(a=0;a<c.length;a++){f=c[a];d=pra(this,f);e=SC(LB(f,"BaseURL").textContent);l=LB(f,"SegmentBase");f=wB(l.attributes.getNamedItem("indexRange").value);l=wB(l.getElementsByTagName("Initialization")[0].attributes.getNamedItem("range").value);d=new dC(e,d,l,f);if(!d){c=!1;break a}QC(this,d)}c=!0}return c};
g.h.refresh=function(){if(1!==this.state&&!this.isDisposed()){var a=g.Hj(this.sourceUrl,{start_seq:tra(this).toString()});rra(this,a).yh(function(){})}};
g.h.resume=function(){qra(this)};
g.h.td=function(){if(this.isManifestless&&this.N&&VC(this))return VC(this);var a=this.i,b=!1,c=NaN,d=NaN,e;for(e in a){var f=a[e],k=f.index;k.isLoaded()&&(f.C&&(b=!0),k=k.getMaxKnownEndTime(),f.info.uo()&&(isNaN(c)||k<c)?c=k:f.info.isVideo()&&(isNaN(d)||k<d)&&(d=k))}return b||isNaN(d)?c:Math.min(c,d)};
g.h.getMinSeekableTime=function(){if(this.isManifestless){if(WC(this))return WC(this);if(this.J){var a=this.getIngestionTime(this.td());if(a&&(a-=this.J,0<a))return this.td()-a}}a=this.i;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.getMinSeekableTime()}return 0};
g.h.getStreamTimeOffset=function(){return this.j};
g.h.getIngestionTime=function(a){for(var b in this.i){var c=this.i[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 ZC=null,yra=!!navigator.mediaCapabilities,ora={commentary:1,alternate:2,dub:3,main:4};eD.prototype.clone=function(a){return new eD(this.flavor,a,this.B,this.experiments)};
eD.prototype.Kb=function(){return{flavor:this.flavor,keySystem:this.keySystem}};
eD.prototype.vf=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 H2={},nD=(H2.playready=["com.youtube.playready","com.microsoft.playready"],H2.widevine=["com.youtube.widevine.forcehdcp","com.youtube.widevine.l3","com.widevine.alpha"],H2),I2={},UIa=(I2.widevine="DRM_SYSTEM_WIDEVINE",I2.fairplay="DRM_SYSTEM_FAIRPLAY",I2.playready="DRM_SYSTEM_PLAYREADY",I2),J2={},tTa=(J2.widevine=1,J2.fairplay=2,J2.playready=3,J2);g.v(oD,g.G);
oD.prototype.initialize=function(a,b){for(var c=this,d=g.q(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=g.q(a[e.value]);for(var f=e.next();!f.done;f=e.next())if(f=f.value,f.Kd)for(var k=g.q(Object.keys(f.Kd)),l=k.next();!l.done;l=k.next())if(l=l.value,nD[l])for(var m=g.q(nD[l]),n=m.next();!n.done;n=m.next())n=n.value,this.j[n]=this.j[n]||new eD(l,n,f.Kd[l],this.experiments),this.B[l]=this.B[l]||{},this.B[l][f.mimeType]=!0}gu()&&(this.j["com.youtube.fairplay"]=new eD("fairplay","com.youtube.fairplay","",
this.experiments),this.B.fairplay={'video/mp4; codecs="avc1.4d400b"':!0,'audio/mp4; codecs="mp4a.40.5"':!0});this.i=Mra(b,this.useCobaltWidevine,this.L("html5_enable_safari_fairplay"),g.dD(this.experiments,"html5_hdcp_probing_stream_url")).filter(function(p){return!!c.j[p]})};
oD.prototype.ma=function(){};
oD.prototype.L=function(a){return this.experiments.Xa(a)};var EMa={"":"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 uTa={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},K2;a:{var L2=g.yb();L2=L2.toLowerCase();if(-1!=L2.indexOf("android")){var vTa=L2.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(vTa){var wTa=parseFloat(vTa[1]);if(100>wTa){K2=wTa;break a}}var xTa=L2.match("("+g.pf(uTa).join("|")+")");K2=xTa?uTa[xTa[0]]:0}else K2=void 0}var $D=K2,ZD=0<=$D;var usa={RED:"red",zea:"white"};var Bsa={WZ:"adunit",P3:"detailpage",g4:"editpage",j4:"embedded",l4:"embedded_unbranded",O6:"leanback",taa:"previewpage",waa:"profilepage",hda:"unplugged",iaa:"playlistoverview",dca:"sponsorshipsoffer",Qba:"shortspage"};Tra.prototype.Xa=function(a){return"true"===this.flags[a]};qD.prototype.canPlayType=function(a,b){a=a.canPlayType?a.canPlayType(b):!1;lu?a=a||yTa[b]:2.2===$D?a=a||zTa[b]:eu()&&(a=a||ATa[b]);return!!a};
qD.prototype.isTypeSupported=function(a){this.ma();return this.I?window.cast.receiver.platform.canDisplayType(a):vC(a)};
qD.prototype.disableAv1=function(){this.N=!0};
qD.prototype.ma=function(){};
var zTa={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},ATa={"application/x-mpegURL":"maybe"},yTa={"application/x-mpegURL":"maybe"};g.v(tD,g.tx);tD.prototype.add=function(a,b){!this.items[a]&&(b.zv||b.Zy||b.ey)&&(this.items[a]=Cf(b),this.Z("vast_info_card_add",a))};
tD.prototype.remove=function(a){var b=this.get(a);delete this.items[a];return b};
tD.prototype.get=function(a){return this.items[a]||null};
tD.prototype.isEmpty=function(){return g.uf(this.items)};var hE={h7:1,i7:2,j7:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};g.v(zD,g.G);zD.prototype.load=function(){var a=this,b;return g.B(function(c){if(1==c.i)return a.i?c.return():g.A(c,Zra(),2);b=c.j;if(!b)return c.return();a.i={primary:b,secondary:void 0};Gra(b,void 0);g.ua(c)})};
zD.prototype.ra=function(){this.j&&(Jt(this.j),this.j=void 0);g.G.prototype.ra.call(this)};BD.prototype.Qg=function(a,b){var c=Math.pow(this.alpha,a);this.i=b*(1-c)+c*this.i;this.j+=a};
BD.prototype.vg=function(){return this.i/(1-Math.pow(this.alpha,this.j))};CD.prototype.Qg=function(a,b){a=Math.min(this.i,Math.max(1,Math.round(a*this.resolution)));a+this.valueIndex>=this.i&&(this.j=!0);for(;a--;)this.values[this.valueIndex]=b,this.valueIndex=(this.valueIndex+1)%this.i;this.B=!0};
CD.prototype.vg=function(){return this.C?(DD(this,this.u-this.C)+DD(this,this.u)+DD(this,this.u+this.C))/3:DD(this,this.u)};g.v(lsa,g.G);var osa=/^([0-9\.]+):([0-9\.]+)$/;var ssa="blogger books docs duo google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),Asa={Q_:"cbrand",R_:"cbr",S_:"cbrver",K5:"c",N5:"cver",M5:"ctheme",L5:"cplayer",o9:"cmodel",Z9:"cnetwork",u$:"cos",v$:"cosver",Z$:"cplatform"};g.v(mE,g.G);g.h=mE.prototype;g.h.L=function(a){return this.experiments.Xa(a)};
g.h.getVideoUrl=function(a,b,c,d,e){b={list:b};c&&(e?b.time_continue=c:b.t=c);c=g.pE(this);d&&"www.youtube.com"===c?d="https://web.archive.org/web/20220130220643/https://youtu.be/"+a:g.dE(this)?(d="https://"+c+"/fire",b.v=a):(d=this.protocol+"://"+c+"/watch",b.v=a,lu&&(a=Lja())&&(b.ebc=a));return g.Hj(d,b)};
g.h.getVideoEmbedCode=function(a,b,c){a="https://"+g.pE(this)+"/embed/"+a;c&&(a=g.Hj(a,{list:c}));c=b.width;b=b.height;a=g.ih(a);return'<iframe width="'+c+'" height="'+b+'" src="'+a+'" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>'};
g.h.supportsGaplessAudio=function(){return g.Uz&&!lu&&74<=vka()||g.Fz&&g.Ec(68)?!0:!1};
g.h.getPlayerType=function(){return this.deviceParams.cplayer};
var Hsa=["www.youtube-nocookie.com","youtube.googleapis.com"];g.h=FE.prototype;g.h.vf=function(){return this.i};
g.h.Qu=function(){return null};
g.h.MI=function(){var a=this.Qu();return a?(a=g.wt(a.i),Number(a.expire)):NaN};
g.h.fH=function(){};
g.h.Vb=function(){return this.i.Vb()};
g.h.getHeight=function(){return this.i.video.height};Isa.prototype.Wd=function(){Lsa(this);var a=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],b={};a:if(this.i)var c=this.i;else{c="";for(var d=g.q(this.u),e=d.next();!e.done;e=d.next())if(e=e.value,e.Fc){if(e.Fc.getIsDefault()){c=e.Fc.getId();break a}c||(c=e.Fc.getId())}}d=g.q(this.u);for(var f=d.next();!f.done;f=d.next())if(e=f.value,this.I||!e.Fc||e.Fc.getId()===c)b[e.itag]||(b[e.itag]=[]),b[e.itag].push(e);c=g.q(this.j);for(e=c.next();!e.done;e=c.next())if(d=e.value,e=b[d.i])for(e=g.q(e),f=e.next();!f.done;f=
e.next()){var k=a,l=k.push;f=f.value;var m="#EXT-X-MEDIA:TYPE=AUDIO,",n="YES",p="audio";if(f.Fc){p=f.Fc;var r=p.getId().split(".")[0];r&&(m+='LANGUAGE="'+r+'",');(this.i?this.i===p.getId():p.getIsDefault())||(n="NO");p=p.getName()}r="";null!==d&&(r=d.itag.toString());r=HE(this,f.url,r);m=m+('NAME="'+p+'",DEFAULT='+(n+',AUTOSELECT=YES,GROUP-ID="'))+(Ksa(f,d)+'",URI="'+(r+'"'));l.call(k,m)}c=g.q(this.C);for(d=c.next();!d.done;d=c.next())d=d.value,e=BTa,d=(k=d.Fc)?'#EXT-X-MEDIA:URI="'+HE(this,d.url)+
'",TYPE=SUBTITLES,GROUP-ID="'+e+'",LANGUAGE="'+k.getId()+'",NAME="'+k.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,d&&a.push(d);c=0<this.C.length?BTa:void 0;d=g.q(this.j);for(e=d.next();!e.done;e=d.next())e=e.value,k=b[e.i],l=void 0,0<(null==(l=k)?void 0:l.length)&&(k=k[0],k="#EXT-X-STREAM-INF:BANDWIDTH="+(e.bitrate+k.bitrate)+',CODECS="'+(e.codecs+","+k.codecs+'",RESOLUTION=')+(e.width+"x"+e.height+',AUDIO="')+(Ksa(k,e)+'",')+(c?'SUBTITLES="'+c+'",':"")+"CLOSED-CAPTIONS=NONE",1<e.fps&&(k+=",FRAME-RATE="+
e.fps),e.Bu&&(k+=",VIDEO-RANGE="+e.Bu),a.push(k),a.push(HE(this,e.url,"")));return a.join("\n")};
var BTa="text";g.v(IE,FE);IE.prototype.MI=function(){return this.expiration};
IE.prototype.Qu=function(){if(!this.j||this.j.isDisposed()){var a=this.u.Wd();a="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(a);this.j=new JC(a)}return this.j};g.v(JE,FE);JE.prototype.Qu=function(){return new JC(cA(this.j))};
JE.prototype.fH=function(){this.j=gA(this.j)};g.v(KE,FE);KE.prototype.Qu=function(){return new JC(this.j)};LE.prototype.toString=function(){return this.type+this.id};var Xsa={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},Ysa={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};g.PE.prototype.Re=function(a){a=a||"hqdefault.jpg";var b=this.Y[a];if(b)return b;if("sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a)return b;if(this.i)return qE(this.j,this.i,a)};
g.PE.prototype.Wk=function(){return this.j.getVideoUrl(this.videoId,this.playlistId)};g.QE.prototype.Re=function(a){a||(a="hqdefault.jpg");var b=this.Y[a];return b?b:"pop1.jpg"===a||"pop2.jpg"===a||"sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a?b:qE(this.i,this.videoId,a)};
g.QE.prototype.Wk=function(){return this.watchUrl||this.i.getVideoUrl(this.videoId)};var $sa=["APP_STATE","PI"];var M2={},gta=Iw("yt-player-local-media",{zq:(M2.index={qn:2},M2.media={qn:2},M2.captions={qn:5},M2),Lx:!1,upgrade:function(a,b){b(2)&&(bw(a,"index"),bw(a,"media"));b(5)&&bw(a,"captions");b(6)&&(cw(a,"metadata"),cw(a,"playerdata"))},
version:5});RE.prototype.set=function(a,b,c){c=void 0!==c?Date.now()+c:void 0;this.i.set(a,b,c)};
RE.prototype.get=function(a){return this.i.get(a)};
RE.prototype.remove=function(a){this.i.remove(a)};var SE=void 0;var cta=!1;ata("LMS",function(){return g.B(function(a){return a.return(TE())})});var XE=0,jta=/^([\w\-_]+)\|(\d+)(;[\w\-_]+)?\|(\d+)\|(\d+)$/;ata("LMDB",function(){var a,b;return g.B(function(c){if(1==c.i)return g.A(c,g.vw(),2);if(3!=c.i){a=c.j;if(!a)throw g.Uv("edd");return g.A(c,g.WE(a),3)}b=c.j;return c.return(dw(b,["index","media","captions"],{mode:"readonly",Kc:!0},function(d){var e={};d=[hw(d.objectStore("index"),{},function(f){e[f.getKey()]=f.getValue();return f.continue()}),
$la(d.objectStore("media")),$la(d.objectStore("captions"))];return Wv.all(d).then(function(f){var k=g.q(f);k.next();f=k.next().value;k=k.next().value;return{index:e,media:vta(f||[]),captions:k}})}))})});g.h=g.ZE.prototype;g.h.getId=function(){return this.id};
g.h.getName=function(){return this.name};
g.h.isServable=function(){return this.i};
g.h.toString=function(){return this.languageCode+": "+g.$E(this)+" - "+this.vssId};
g.h.equals=function(a){return a?this.toString()===a.toString():!1};
g.h.isValid=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var xta={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},yta={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},zta=/^(\d*)_((\d*)_?(\d*))$/;var N2={},bua=(N2.ALWAYS=1,N2.BY_REQUEST=3,N2.UNKNOWN=void 0,N2),O2={},Nta=(O2.COLOR_PRIMARIES_BT709="bt709",O2.COLOR_PRIMARIES_BT2020="bt2020",O2.COLOR_PRIMARIES_UNKNOWN=null,O2.COLOR_PRIMARIES_UNSPECIFIED=null,O2),P2={},Bta=(P2.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",P2.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",P2.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",P2.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",P2.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,P2.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=
null,P2),Q2={},fF=(Q2.FAIRPLAY="fairplay",Q2.PLAYREADY="playready",Q2.WIDEVINE="widevine",Q2.CLEARKEY=null,Q2.FLASHACCESS=null,Q2.UNKNOWN=null,Q2.WIDEVINE_CLASSIC=null,Q2),R2={},cua=(R2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",R2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",R2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",R2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",R2),S2={},Kta=(S2.UNKNOWN=0,S2.RECTANGULAR=1,S2.EQUIRECTANGULAR=2,S2.EQUIRECTANGULAR_THREED_TOP_BOTTOM=
3,S2.MESH=4,S2),T2={},Mta=(T2.SPATIAL_AUDIO_TYPE_NONE=0,T2.SPATIAL_AUDIO_TYPE_AMBISONICS_5_1=1,T2.SPATIAL_AUDIO_TYPE_AMBISONICS_QUAD=2,T2.SPATIAL_AUDIO_TYPE_FOA_WITH_NON_DIEGETIC=3,T2),U2={},Lta=(U2.STEREO_LAYOUT_UNKNOWN=0,U2.STEREO_LAYOUT_LEFT_RIGHT=1,U2.STEREO_LAYOUT_TOP_BOTTOM=2,U2),V2={},Jta=(V2.FORMAT_STREAM_TYPE_UNKNOWN=0,V2.FORMAT_STREAM_TYPE_OTF=3,V2);g.v(gF,g.tx);gF.prototype.ra=function(){this.i&&(this.i=this.i.onload=null);g.tx.prototype.ra.call(this)};g.h=g.lF.prototype;g.h.getHeight=function(){return this.height};
g.h.vL=ba(1);g.h.EC=function(){return this.frameCount};
g.h.isDefault=function(){return-1!==this.u.indexOf("default")};
g.h.isLoaded=function(a){return this.loaded.has(a)};
g.h.wy=function(a){var b=this.EC()-1;return g.Yg(0===this.i?Math.round(a*this.frameCount/this.videoLength):Math.round(1E3*a/this.i),0,b)};
g.h.jp=function(){return this.frameCount-1};
g.h.FC=function(){return this.frameCount?0:-1};
g.h.NI=function(){};g.v(mF,gF);mF.prototype.j=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.N||180>f.getHeight())&&c.push(f)}return c};
mF.prototype.I=function(a,b,c,d){return new g.lF(a,b,c,d)};g.v(nF,g.lF);g.h=nF.prototype;g.h.EC=function(){return this.j.getNumberOfSegments()};
g.h.wy=function(a){var b=this.rows*this.columns*this.C,c=this.j,d=c.getLastSegmentNumber();a=c.getSegmentNumberForTime(a);return a>d-b?-1:a};
g.h.jp=function(){return this.j.getLastSegmentNumber()};
g.h.FC=function(){return this.j.getFirstSegmentNumber()};
g.h.NI=function(a){this.j=a};g.v(oF,mF);oF.prototype.j=function(a,b){return mF.prototype.j.call(this,"$N|"+a,b)};
oF.prototype.I=function(a,b,c){return new nF(a,b,c,this.isLive)};g.v(qF,g.tx);g.h=qF.prototype;g.h.T=function(){return this.u};
g.h.L=function(a){return this.u.L(a)};
g.h.lf=function(){return!this.isLivePlayback||this.allowLiveDvr};
g.h.hasSupportedAudio51Tracks=function(){var a;return!(null==(a=this.lc)||!a.kb)};
g.h.rN=function(){this.isDisposed()||(this.i.u||this.i.unsubscribe("refresh",this.rN,this),this.EK(-1))};
g.h.EK=function(a){if(!this.isLivePlayback||!this.N||"fairplay"!=this.N.flavor){var b=lra(this.i,this.rC);if(0<b.length){if(CF(this,"html5_clamp_cuepoints_to_min"))for(var c=g.q(b),d=c.next();!d.done;d=c.next())d=d.value,d.startSecs=Math.max(d.startSecs,this.getMinSeekableTime());this.Z("cuepointupdated",b,a);this.rC+=b.length;c=CF(this,"html5_log_all_cuepoints")||2<=this.u.N;if(xF(this)&&c)for(b=g.q(b),d=b.next();!d.done;d=b.next())c=d.value,this.Ba("cuepoint",{segNum:a,event:c.event,startSecs:c.startSecs,
id:c.identifier.slice(-16)}),"start"===c.event&&(c=c.startSecs,this.rD.start=this.bv,this.rD.end=c+3)}}};
g.h.Ih=function(){var a={};this.j&&(a.fmt=this.j.Vb(),this.I&&this.I.Vb()!=this.j.Vb()&&(a.afmt=this.I.Vb()));a.ei=this.eventId;a.list=this.playlistId;a.cpn=this.clientPlaybackNonce;this.videoId&&(a.v=this.videoId);this.Ng&&(a.infringe=1);this.Pe&&(a.splay=1);var b=JF(this);b&&(a.live=b);this.ll&&(a.autoplay=1);this.nM&&(a.sdetail=this.nM);this.ya&&(a.partnerid=this.ya);this.osid&&(a.osid=this.osid);return a};
g.h.fh=function(){if(this.cotn)return null;var a=g.vE(this.u)||this.L("web_l3_storyboard");if(!this.Sf)if(this.playerResponse&&this.playerResponse.storyboards){var b=this.playerResponse.storyboards,c=b.playerStoryboardSpecRenderer;c&&c.spec?this.Sf=new mF(c.spec,this.lengthSeconds,void 0,!1,a):(b=b.playerLiveStoryboardSpecRenderer)&&b.spec&&this.i&&(c=nf(this.i.i).index)&&(this.Sf=new oF(b.spec,this.i.isLive,c,a))}else this.Er?this.Sf=new mF(this.Er,this.lengthSeconds,void 0,!1,a):this.Yq&&this.i&&
(b=nf(this.i.i).index)&&(this.Sf=new oF(this.Yq,this.i.isLive,b,a));return this.Sf};
g.h.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.Er||this.Yq};
g.h.td=function(){return this.i&&!isNaN(this.i.td())?this.i.td():xF(this)?0:this.lengthSeconds};
g.h.getMinSeekableTime=function(){return this.i&&!isNaN(this.i.getMinSeekableTime())?this.i.getMinSeekableTime():0};
g.h.getPlaylistSequenceForTime=function(a){if(this.i&&this.j){var b=this.i.i[this.j.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.h.isValid=function(){return!this.isDisposed()&&!(!this.videoId&&!this.Ui)};
g.h.isLoaded=function(){return rF(this)&&!this.qd&&!this.pk};
g.h.Re=function(a){if(30==this.ya)return(a=this.Y["default.jpg"])?a:this.videoId?g.Hj("//web.archive.org/web/20220130220643/https://docs.google.com/vt",{id:this.videoId,authuser:this.authUser,authkey:this.authKey}):"//web.archive.org/web/20220130220643/https://docs.google.com/images/doclist/cleardot.gif";a||(a="hqdefault.jpg");var b=this.Y[a];return b||this.u.J||"pop1.jpg"==a||"pop2.jpg"==a||"sddefault.jpg"==a||"hq720.jpg"==a||"maxresdefault.jpg"==a?b:qE(this.u,this.videoId,a)};
g.h.Af=function(){return this.isLivePlayback||this.bf||this.Zg||!(!this.liveUtcStartSeconds||!this.dh)};
g.h.isOtf=function(){return!!this.i&&(this.i.isOtf||!this.bf&&!this.isLivePlayback&&this.i.u)};
g.h.getAvailableAudioTracks=function(){return this.B?0<this.B.getAvailableAudioTracks().length?this.B.getAvailableAudioTracks():this.Xq||[]:[]};
g.h.getAudioTrack=function(){var a=this;if(this.I&&!pC(this.I))return g.Wb(this.getAvailableAudioTracks(),function(d){return d.id==a.I.id})||this.sj;
if(this.Xq){if(!this.vk)for(var b=g.q(this.Xq),c=b.next();!c.done;c=b.next())if(c=c.value,c.Fc.getIsDefault()){this.vk=c;break}return this.vk||this.sj}return this.sj};
g.h.getPlayerResponse=function(){return this.playerResponse};
g.h.Wk=function(){return this.watchUrl?this.watchUrl:this.u.getVideoUrl(this.videoId)};
g.h.isAd=function(){return!!this.adFormat};
g.h.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)};
g.h.CB=function(){return this.jj||this.cd};
g.h.Mx=function(){return this.Ie||this.cd};
g.h.BD=function(){return CF(this,"html5_samsung_vp9_live")};
g.h.useInnertubeDrmService=function(){return!0};
g.h.Ba=function(a,b,c){this.Z("ctmp",a,b,c)};
g.h.TG=function(a,b,c){this.Z("ctmpstr",a,b,c)};
g.h.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)};
g.h.ra=function(){g.tx.prototype.ra.call(this);delete this.Ml;this.rp=null;delete this.yZ;delete this.accountLinkingConfig;delete this.i;this.B=this.playerResponse=this.watchNextResponse=null;this.Vi=this.adaptiveFormats="";delete this.botguardData;this.jr={};this.suggestions=null};dG.prototype.Ew=function(){return!1};
dG.prototype.ya=function(){return function(){return null}};var lG=null;g.v(kG,g.tx);kG.prototype.Zv=function(a){return this.i.hasOwnProperty(a)?this.i[a].Zv():{}};
g.Ia("ytads.bulleit.getVideoMetadata",function(a){return mG().Zv(a)},void 0);
g.Ia("ytads.bulleit.triggerExternalActivityEvent",function(a,b,c){var d=mG();c=Kua(c);null!==c&&d.Z(c,{queryId:a,viewabilityString:b})},void 0);g.v(qG,dG);g.h=qG.prototype;g.h.gt=function(){return!0};
g.h.kp=function(){return!1};
g.h.isSkippable=function(){return null!=this.va};
g.h.getVideoUrl=function(){return null};
g.h.Ew=function(){return!0};g.v(xG,dG);xG.prototype.gt=function(){return!0};
xG.prototype.kp=function(){return!1};
xG.prototype.Ew=function(){return!0};
xG.prototype.ya=function(){return function(){return g.wh("video-ads")}};Qua.prototype.isPostroll=function(){return"AD_PLACEMENT_KIND_END"==this.i.i};var EPa={FZ:"FINAL",RZ:"AD_BREAK_LENGTH",SZ:"AD_CPN",TZ:"AH",UZ:"AD_MT",VZ:"ASR",XZ:"AW",o0:"NM",q0:"NX",r0:"NY",x0:"CONN",I0:"CPN",d4:"DV_VIEWABILITY",r4:"ERRORCODE",v4:"ERROR_MSG",x4:"EI",c5:"GOOGLE_VIEWABILITY",r5:"IAS_VIEWABILITY",M6:"LACT",a7:"LIVE_TARGETING_CONTEXT",k7:"I_X",l7:"I_Y",S8:"MT",W8:"MIDROLL_POS",X8:"MIDROLL_POS_MS",Z8:"MOAT_INIT",a9:"MOAT_VIEWABILITY",caa:"P_H",daa:"PV_H",eaa:"PV_W",faa:"P_W",naa:"TRIGGER_TYPE",dba:"SDKV",aca:"SLOT_POS",pca:"SURVEY_LOCAL_TIME_EPOCH_S",oca:"SURVEY_ELAPSED_MS",
aS:"VIS",Ida:"VIEWABILITY",Jda:"VED",Pda:"VOL",Tda:"WT",Oea:"YT_ERROR_CODE"};var Yua=["FINAL","CPN","MIDROLL_POS","SDKV","SLOT_POS"];DG.prototype.send=function(a,b,c){try{var d=!!a.scrubReferrer,e=g.Sq(a.baseUrl,Uua(b,d,c)),f;if(a.headers)for(var k=g.q(a.headers),l=k.next();!l.done;l=k.next())switch(l.value.headerType){case "USER_AUTH":var m=this.i();m&&(f||(f={}),f.Authorization="Bearer "+m);break;case "PLUS_PAGE_ID":var n=this.j();n&&(f||(f={}),f["X-Goog-PageId"]=n)}g.Ow(e,void 0,d,f)}catch(p){}};g.v(EG,DG);EG.prototype.i=function(){return this.Np?g.YF(this.Np):""};
EG.prototype.j=function(){return this.Np?this.Np.T().pageId:""};FG.prototype.send=function(a,b,c){try{var d=a.match(uj);if("https"===d[1])var e=a;else d[1]="https",e=sj("https",d[2],d[3],d[4],d[5],d[6],d[7]);a=e;var f=jga(a);e=[];Ct(a)&&(e.push({headerType:"USER_AUTH"}),e.push({headerType:"PLUS_PAGE_ID"}));this.Ap.send({baseUrl:a,scrubReferrer:f,headers:e},b,c)}catch(k){}};g.v($ua,g.G);g.v(WG,g.tx);g.h=WG.prototype;g.h.Zv=function(){return{}};
g.h.EO=function(){};
g.h.Vd=function(a){this.Lk();this.Z(a)};
g.h.Lk=function(){fva(this,this.va,3);this.va=[]};
g.h.getDuration=function(){return this.G.getDuration(2,!1)};
g.h.Xn=function(){var a=this.i;GG(a)||!PG(a,"impression")&&!PG(a,"start")||PG(a,"abandon")||PG(a,"complete")||PG(a,"skip")||SG(a,"pause");this.B||(a=this.i,GG(a)||!PG(a,"unmuted_impression")&&!PG(a,"unmuted_start")||PG(a,"unmuted_abandon")||PG(a,"unmuted_complete")||SG(a,"unmuted_pause"))};
g.h.Yn=function(){this.xa||this.N||this.Jf()};
g.h.Ch=function(){KG(this.i,this.getDuration());if(!this.B){var a=this.i;this.getDuration();GG(a)||(cva(a,0,!0),dva(a,0,0,!0),JG(a,"unmuted_complete"))}};
g.h.yg=function(){var a=this.i;!PG(a,"impression")||PG(a,"skip")||PG(a,"complete")||OG(a,"abandon");this.B||(a=this.i,PG(a,"unmuted_impression")&&!PG(a,"unmuted_complete")&&OG(a,"unmuted_abandon"))};
g.h.cq=function(){var a=this.i;HG(a)?JG(a,"skip"):!PG(a,"impression")||PG(a,"abandon")||PG(a,"complete")||JG(a,"skip")};
g.h.Jf=function(){if(!this.N){var a=this.Fz();this.i.macros.AD_CPN=a;a=this.i;if(HG(a)){var b=a.i.getCurrentTime(2,!1);NG(a,"impression",b,0)}else JG(a,"impression");JG(a,"start");GG(a)||a.i.isFullscreen()&&OG(a,"fullscreen");this.N=!0;this.B=this.G.isMuted()||0==this.G.getVolume();this.B||(a=this.i,JG(a,"unmuted_impression"),JG(a,"unmuted_start"),GG(a)||a.i.isFullscreen()&&OG(a,"unmuted_fullscreen"))}};
g.h.gh=function(a){a=a||"";var b="",c="",d="";eG(this.G)&&(b=this.G.zb(2).state,this.G.ud()&&(c=this.G.ud().Dh(),null!=this.G.ud().uj()&&(d=this.G.ud().uj())));var e=this.i;e.macros=CG(e.macros,Xua("There was an error playing the video ad. Error code: "+(a+"; s:"+b+"; rs:")+(c+"; ec:"+d)));JG(e,"error");this.B||(e=this.i,e.macros=CG(e.macros,Xua("There was an error playing the video ad. Error code: "+(a+"; s:"+b+"; rs:")+(c+"; ec:"+d))),JG(e,"unmuted_error"))};
g.h.xf=function(){};
g.h.kO=function(){this.Z("adactiveviewmeasurable")};
g.h.lO=function(){this.Z("adfullyviewableaudiblehalfdurationimpression")};
g.h.mO=function(){this.Z("adoverlaymeasurableimpression")};
g.h.nO=function(){this.Z("adoverlayunviewableimpression")};
g.h.oO=function(){this.Z("adoverlayviewableendofsessionimpression")};
g.h.pO=function(){this.Z("adoverlayviewableimmediateimpression")};
g.h.qO=function(){this.Z("adviewableimpression")};
g.h.dispose=function(){this.isDisposed()||(this.Lk(),this.j.unsubscribe("adactiveviewmeasurable",this.kO,this),this.j.unsubscribe("adfullyviewableaudiblehalfdurationimpression",this.lO,this),this.j.unsubscribe("adoverlaymeasurableimpression",this.mO,this),this.j.unsubscribe("adoverlayunviewableimpression",this.nO,this),this.j.unsubscribe("adoverlayviewableendofsessionimpression",this.oO,this),this.j.unsubscribe("adoverlayviewableimmediateimpression",this.pO,this),this.j.unsubscribe("adviewableimpression",
this.qO,this),delete this.j.i[this.ad.J],g.tx.prototype.dispose.call(this))};
g.h.Fz=function(){var a=this.G.getVideoData(2);return a&&a.clientPlaybackNonce||""};
g.h.aL=function(){return""};g.v(ZG,dG);ZG.prototype.gt=function(){return!0};
ZG.prototype.kp=function(){return!1};g.v($G,iG);g.v(aH,WG);g.h=aH.prototype;g.h.Lr=function(){0<this.u&&this.Jf()};
g.h.Jf=function(){var a=this;this.Pb=new g.K(function(){a.Ch();for(var b=g.q(a.C.i.completionCommands||[]),c=b.next();!c.done;c=b.next())a.I.executeCommand(c.value,a.macros);a.Vd("adended")},this.u,this);
g.J(this,this.Pb);this.Pb.start();XG(this,[new $G(this.C.i,this.macros)]);WG.prototype.Jf.call(this)};
g.h.yg=function(){WG.prototype.yg.call(this);this.Vd("adabandoned")};
g.h.Ch=function(){WG.prototype.Ch.call(this)};
g.h.Vd=function(a){this.Pb&&this.Pb.stop();WG.prototype.Vd.call(this,a)};g.v(bH,dG);bH.prototype.gt=function(){return!0};
bH.prototype.kp=function(){return!1};g.v(cH,dG);cH.prototype.gt=function(){return!0};
cH.prototype.kp=function(){return!1};g.v(dH,dG);dH.prototype.gt=function(){return!0};
dH.prototype.kp=function(){return!1};gva.prototype.create=function(a,b){return a instanceof qG?this.I.create(a,b):a instanceof xG?this.B.create(a,b):a instanceof ZG?this.i.create(a,b):a instanceof dH?this.C.create(a,b):a instanceof cH?this.u.create(a,b):a instanceof bH?this.j.create(a,b):null};g.v(eH,WG);g.h=eH.prototype;g.h.yg=function(){WG.prototype.yg.call(this);this.Vd("adabandoned")};
g.h.Xn=function(){WG.prototype.Xn.call(this);this.Z("adpause",2)};
g.h.Yn=function(){WG.prototype.Yn.call(this);this.Z("adplay",1)};
g.h.Jf=function(){WG.prototype.Jf.call(this);this.u.stop();this.C.S(this.G,g.Ny("bltplayback"),this.lQ);var a=new g.Ly(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:2});this.G.Nd([a],2);this.Z("adplay",1)};
g.h.Ch=function(){WG.prototype.Ch.call(this);this.Vd("adended")};
g.h.gh=function(a){WG.prototype.gh.call(this,a);this.Vd("aderror")};
g.h.Lr=function(){gG(this.G,!1);var a=this.I.j||{};a.autoplay="1";this.G.cueVideoByPlayerVars(a,2);this.u.start();this.G.playVideo(2);this.G.Oa("onAdIntroStateChange",1)};
g.h.Vd=function(a){this.u.stop();gG(this.G,!0);"adabandoned"!=a&&this.G.Oa("onAdComplete");this.G.Oa("onAdEnd");this.Z(a);this.G.Oa("onAdIntroStateChange",0)};
g.h.lQ=function(a){"bltcompletion"==a.getId()&&(this.G.gf("bltplayback",2),KG(this.i,this.getDuration()))};var NNa=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(hva,iG);g.v(hH,WG);g.h=hH.prototype;
g.h.Lr=function(){if(this.u)if(this.G.T().experiments.Xa("html5_externally_manage_ad_notify_layout")){var a=this.C.i;if(!gH(a)){g.Rx(Error("adMessageRenderer is not augmented on playAd"));return}a=a.slot;for(var b=g.q(this.u.listeners),c=b.next();!c.done;c=b.next()){c=c.value;var d=a;xI(c.i(),d);yI(c.i(),d);INa(c.i(),d)}}else for(a=g.q(this.u.listeners),b=a.next();!b.done;b=a.next())b=b.value,b.j=CNa(b.C.get()),xI(b.i(),b.j),yI(b.i(),b.j),INa(b.i(),b.j);0>=this.W&&(g.S(Error("durationMs was specified incorrectly with a value of: "+this.W)),
this.Ch());this.Jf();this.G.addEventListener("progresssync",this.ea)};
g.h.yg=function(){WG.prototype.yg.call(this);this.Vd("adabandonedreset",!0)};
g.h.Jf=function(){var a=this.G.T();Ez("apbs",void 0,"video_to_ad");g.rz("ad_at","0_0","video_to_ad");WG.prototype.Jf.call(this);this.I=a.L("disable_rounding_ad_notify")?this.G.getCurrentTime():Math.floor(this.G.getCurrentTime());this.J=this.I+this.W/1E3;g.kE(a)?this.G.Oa("onAdMessageChange",{renderer:this.C.i,startTimeSecs:this.I}):XG(this,[new hva(this.C.i)]);a=(a=this.G.getVideoData(1))&&a.clientPlaybackNonce||"";var b=g.Kx(),c=this.C.i.videoAdBreakOffsetMsInt64;b&&g.Fv("adNotify",{clientScreenNonce:b,
adMediaTimeMs:Math.floor(1E3*this.J),timeToAdBreakSec:Math.ceil(this.J-this.I),clientPlaybackNonce:a,videoAdBreakOffsetMs:Number(c)});if(this.u)if(this.Y=!0,this.G.T().experiments.Xa("html5_externally_manage_ad_notify_layout")){b=this.C.i;if(!gH(b)){g.Rx(Error("adMessageRenderer is not augmented on ad started"));return}a=b.slot;b=b.layout;c=g.q(this.u.listeners);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=a,f=b;zI(d.i(),e);cZ(d.i(),e,f)}}else for(a=g.q(this.u.listeners),b=a.next();!b.done;b=
a.next())b=b.value,b.j?b.u?T("Received AdNotify started event before another one exited"):(b.u=b.j,zI(b.i(),b.u)):T("Received AdNotify started event without start requested event");g.V(this.G.zb(1),512)&&(a=(a=this.G.getVideoData(1))&&a.clientPlaybackNonce||"",b=g.Kx(),c=this.C.i.videoAdBreakOffsetMsInt64,b&&g.Fv("adNotifyFailure",{clientScreenNonce:b,adMediaTimeMs:Math.floor(1E3*this.J),timeToAdBreakSec:Math.ceil(this.J-this.I),clientPlaybackNonce:a,videoAdBreakOffsetMs:c}),this.Ch())};
g.h.Ch=function(){WG.prototype.Ch.call(this);this.Vd("adended",!0)};
g.h.gh=function(a){g.Rx(Error("Player error during adNotify."));WG.prototype.gh.call(this,a);this.Vd("aderror",!0)};
g.h.Vd=function(a,b){(void 0===b?0:b)||g.Rx(Error("TerminateAd directly called from other class during adNotify."));this.G.removeEventListener("progresssync",this.ea);this.Lk();jva(this,a);b="adended"===a||"aderror"===a;this.G.T().experiments.Xa("html5_eanble_pacf_player_bytes_with_externaly_managed_ad_notify")&&b?this.Z("adnotifyexitednormalorerror"):this.Z(a)};
g.h.dispose=function(){this.G.removeEventListener("progresssync",this.ea);jva(this,void 0);WG.prototype.dispose.call(this)};
g.h.Lk=function(){g.kE(this.G.T())?this.G.Oa("onAdMessageChange",{renderer:null,startTimeSecs:this.I}):WG.prototype.Lk.call(this)};mH.prototype.sendAdsPing=function(a){this.B.send(a,tva(this),{})};
mH.prototype.Gd=function(a){var b=this;if(a){var c=tva(this);Array.isArray(a)?a.forEach(function(d){return b.j.executeCommand(d,c)}):this.j.executeCommand(a,c)}};nH.prototype.get=function(){return this.value};
g.v(oH,nH);oH.prototype.getType=function(){return"metadata_type_action_companion_ad_renderer"};
g.v(pH,nH);pH.prototype.getType=function(){return"metadata_type_ads_engagement_panel_renderer"};
g.v(qH,nH);qH.prototype.getType=function(){return"metadata_type_ad_next_params"};
g.v(rH,nH);rH.prototype.getType=function(){return"metadata_type_ad_video_clickthrough_endpoint"};
g.v(sH,nH);sH.prototype.getType=function(){return"metadata_type_invideo_overlay_ad_renderer"};
g.v(tH,nH);tH.prototype.getType=function(){return"metadata_type_image_companion_ad_renderer"};
g.v(uH,nH);uH.prototype.getType=function(){return"metadata_type_shopping_companion_carousel_renderer"};
g.v(vH,nH);vH.prototype.getType=function(){return"metadata_type_ad_info_ad_metadata"};
g.v(wH,nH);wH.prototype.getType=function(){return"metadata_ad_video_is_listed"};
g.v(xH,nH);xH.prototype.getType=function(){return"metadata_type_ad_placement_config"};
g.v(yH,nH);yH.prototype.getType=function(){return"metadata_type_ad_pod_info"};
g.v(zH,nH);zH.prototype.getType=function(){return"metadata_type_ad_video_id"};
g.v(AH,nH);AH.prototype.getType=function(){return"metadata_type_ad_video_url"};
g.v(BH,nH);BH.prototype.getType=function(){return"metadata_type_content_cpn"};
g.v(CH,nH);CH.prototype.getType=function(){return"metadata_type_instream_ad_player_overlay_renderer"};
g.v(DH,nH);DH.prototype.getType=function(){return"metadata_type_player_underlay_renderer"};
g.v(EH,nH);EH.prototype.getType=function(){return"metadata_type_shrunken_player_bytes_config"};
g.v(FH,nH);FH.prototype.getType=function(){return"metadata_type_ad_action_interstitial_renderer"};
g.v(GH,nH);GH.prototype.getType=function(){return"metadata_type_valid_survey_text_interstitial_renderer"};
g.v(HH,nH);HH.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_DAI"};
g.v(IH,nH);IH.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"};
g.v(JH,nH);JH.prototype.getType=function(){return"metadata_type_sliding_text_player_overlay_renderer"};
g.v(KH,nH);KH.prototype.getType=function(){return"metadata_type_linked_player_bytes_layout_id"};
g.v(LH,nH);LH.prototype.getType=function(){return"metadata_type_linked_in_player_layout_id"};
g.v(MH,nH);MH.prototype.getType=function(){return"metadata_type_linked_in_player_layout_type"};
g.v(NH,nH);NH.prototype.getType=function(){return"metadata_type_linked_in_player_slot_id"};
g.v(OH,nH);OH.prototype.getType=function(){return"metadata_type_player_bytes_callback"};
g.v(PH,nH);PH.prototype.getType=function(){return"metadata_type_player_bytes_callback_ref"};
g.v(QH,nH);QH.prototype.getType=function(){return"metadata_type_player_bytes_layout_controls_callback_ref"};
g.v(RH,nH);RH.prototype.getType=function(){return"metadata_type_sub_layouts"};
g.v(SH,nH);SH.prototype.getType=function(){return"metadata_type_cue_point"};
g.v(TH,nH);TH.prototype.getType=function(){return"metadata_type_video_length_seconds"};
g.v(UH,nH);UH.prototype.getType=function(){return"metadata_type_player_vars"};
g.v(VH,nH);VH.prototype.getType=function(){return"metadata_type_sodar_extension_data"};
g.v(WH,nH);WH.prototype.getType=function(){return"metadata_type_layout_enter_ms"};
g.v(XH,nH);XH.prototype.getType=function(){return"metadata_type_layout_exit_ms"};
g.v(YH,nH);YH.prototype.getType=function(){return"metadata_type_media_sub_layout_index"};
g.v(ZH,nH);ZH.prototype.getType=function(){return"metadata_type_dai"};
g.v($H,nH);$H.prototype.getType=function(){return"metadata_type_ad_intro"};
g.v(aI,nH);aI.prototype.getType=function(){return"metadata_type_client_forecasting_ad_renderer"};
g.v(bI,nH);bI.prototype.getType=function(){return"metadata_type_drift_recovery_ms"};
g.v(cI,nH);cI.prototype.getType=function(){return"metadata_type_fulfilled_layout"};
g.v(dI,nH);dI.prototype.getType=function(){return"metadata_type_ad_break_request_data"};
g.v(eI,nH);eI.prototype.getType=function(){return"metadata_type_ad_break_response_data"};
g.v(fI,nH);fI.prototype.getType=function(){return"metadata_type_remote_slots_data"};
g.v(gI,nH);gI.prototype.getType=function(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"};
g.v(hI,nH);hI.prototype.getType=function(){return"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"};
g.v(iI,nH);iI.prototype.getType=function(){return"metadata_type_legacy_info_card_vast_extension"};
g.v(jI,nH);jI.prototype.getType=function(){return"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"};
g.v(kI,nH);kI.prototype.getType=function(){return"METADATA_TYPE_LOG_PLAYER_TYPE_ON_ERROR"};
g.v(lI,nH);lI.prototype.getType=function(){return"metadata_type_served_from_live_infra"};
g.v(mI,nH);mI.prototype.getType=function(){return"metadata_type_survey_overlay"};
g.v(nI,nH);nI.prototype.getType=function(){return"metadata_type_active_view_traffic_type"};Ava.prototype.Gd=function(a){this.i.Gd(a)};g.v(oI,g.tx);oI.prototype.getProgressState=function(){return this.u};
oI.prototype.start=function(){this.B=Date.now();Cva(this,{current:this.i/1E3,duration:this.j/1E3});this.Pb.start()};
oI.prototype.stop=function(){this.Pb.stop()};g.v(pI,iG);g.v(qI,g.tx);qI.prototype.start=function(){this.j||(this.j=!0,this.timer.start(),this.u=Date.now())};
qI.prototype.stop=function(){this.j&&(this.j=!1,this.timer.stop())};
qI.prototype.Rb=function(){var a=Date.now(),b=a-this.u;this.u=a;this.i+=b;this.i>=this.durationMs?(this.i=this.durationMs,this.timer.stop(),this.B(this.i),this.C()):this.B(this.i)};g.v(tI,WG);g.h=tI.prototype;g.h.Lr=function(){this.Jf()};
g.h.Jf=function(){var a=this,b=this.C.i;if(g.kE(this.G.T()))Eva(this,b),this.Y=Date.now(),this.u&&this.u.start();else if(XG(this,[new pI(b)]),this.C.i.controlWithFixEnabled){var c=1E3*this.C.j;this.J=new qI(c,function(d){var e={current:d/1E3,duration:c/1E3};YG(a,d/1E3);a.G.Oa("onAdPlaybackProgress",e)},function(){var d={current:c/1E3,
duration:c/1E3};Dva(a);a.G.Oa("onAdPlaybackProgress",d)});
g.J(this,this.J);this.J.start()}rI();WG.prototype.Jf.call(this)};
g.h.getDuration=function(){return this.C.j};
g.h.Xn=function(){WG.prototype.Xn.call(this);this.u&&this.u.stop()};
g.h.Yn=function(){WG.prototype.Yn.call(this);this.u&&this.u.start()};
g.h.yg=function(){WG.prototype.yg.call(this);this.Vd("adabandoned")};
g.h.cq=function(){WG.prototype.cq.call(this);this.Vd("adended")};
g.h.gh=function(a){this.G.T().experiments.Xa("html5_block_player_errors_while_survey_active")?T("Unexpected Player Error while the Survey is playing."):(WG.prototype.gh.call(this,a),this.Vd("aderror"))};
g.h.Vd=function(a){this.Lk();this.Z(a)};
g.h.xf=function(a){switch(a){case "skip-button":this.cq();break;case "survey-submit":this.Vd("adended")}};
g.h.Lk=function(){g.kE(this.G.T())?(this.u&&this.u.stop(),this.G.Oa("onAdInfoChange",null)):WG.prototype.Lk.call(this)};g.v(uI,iG);g.v(vI,WG);vI.prototype.Lr=function(){this.Jf()};
vI.prototype.Jf=function(){rI();XG(this,[new uI(this.u.i,this.macros)]);WG.prototype.Jf.call(this)};
vI.prototype.yg=function(){WG.prototype.yg.call(this);this.Vd("adabandoned")};
vI.prototype.gh=function(a){WG.prototype.gh.call(this,a);this.Vd("aderror")};g.v(wI,WG);g.h=wI.prototype;g.h.Zv=function(){return{currentTime:this.G.getCurrentTime(2,!1),duration:this.u.j,isPlaying:Iua(this.G),isVpaid:!1,isYouTube:!0,volume:this.G.isMuted()?0:this.G.getVolume()/100}};
g.h.Lr=function(){var a=this.u.i.legacyInfoCardVastExtension,b=this.u.C;a&&b&&this.G.T().W.add(b,{zv:a});try{var c=this.u.i.sodarExtensionData;if(c&&c.siub&&c.bgub&&c.scs&&c.bgp)try{Im(c.siub,c.scs,c.bgub,c.bgp)}catch(e){var d=g.kg("//web.archive.org/web/20220130220643/https://tpc.googlesyndication.com/sodar/%{path}");g.Rx(new g.Kv("Load Sodar Error.",d instanceof ig,d.constructor===ig,{Message:e.message,"Escaped injector basename":g.ih(c.siub),"BG vm basename":c.bgub}));if(d.constructor===ig)throw e;}}catch(e){g.S(e)}gG(this.G,!1);a=Oua(this.u);
b=this.G.T();a.iv_load_policy=b.isMobile||g.kE(b)||g.vE(b)?3:1;b=this.G.getVideoData(1);b.hg&&(a.ctrl=b.hg);b.Eg&&(a.ytr=b.Eg);b.Vl&&(a.ytrcc=b.Vl);b.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,b.Yh&&(a.vss_credentials_token_type=b.Yh),b.mdxEnvironment&&(a.mdx_environment=b.mdxEnvironment));this.Z("adunstarted",-1);this.W?this.I.start():(this.G.cueVideoByPlayerVars(a,2),this.I.start(),this.G.playVideo(2))};
g.h.Xn=function(){WG.prototype.Xn.call(this);this.Z("adpause",2)};
g.h.Yn=function(){WG.prototype.Yn.call(this);this.Z("adplay",1)};
g.h.Jf=function(){WG.prototype.Jf.call(this);this.I.stop();this.Y.S(this.G,g.Ny("bltplayback"),this.mQ);var a=new g.Ly(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:2});this.G.Nd([a],2);a=DI(this);this.C.Ia=a;if(this.G.isMuted()){a=this.i;var b=this.G.isMuted();HG(a)||JG(a,b?"mute":"unmute")}this.Z("adplay",1);if(null!==this.J){a=null!==this.C.i.getVideoData(1)?this.C.i.getVideoData(1).clientPlaybackNonce:"";b=Gva(this);for(var c=this.u,d=Fva(this),e=g.q(this.J.listeners),
f=e.next();!f.done;f=e.next()){f=f.value;var k=b,l=c,m=d,n=[],p=l.C,r=l.getVideoUrl();p&&n.push(new zH(p));r&&n.push(new AH(r));(r=(p=l.i)&&p.playerOverlay&&p.playerOverlay.instreamAdPlayerOverlayRenderer)?(n.push(new CH(r)),(r=r.elementId)&&n.push(new LH(r))):T("instreamVideoAdRenderer without instreamAdPlayerOverlayRenderer");(p=p&&p.playerUnderlay)&&n.push(new DH(p));l.i.adNextParams&&n.push(new qH(l.i.adNextParams||""));(p=l.xa)&&n.push(new rH(p));(p=ty(f.N.get(),2))?(n.push(new vH({channelId:p.nj,
channelThumbnailUrl:p.profilePicture,channelTitle:p.author,videoTitle:p.title})),n.push(new wH(p.isListed))):T("Expected meaningful PlaybackData on ad started.");n.push(new yH(l.u));n.push(new TH(l.j));n.push(new BH(a));n.push(new PH({current:this}));p=l.Ia;null!=p.kind&&n.push(new xH(p));(p=l.Ha)&&n.push(new fI(p));void 0!==m&&n.push(new gI(m));f.i?T(f.i.layoutId===k?"Received repeat AD_START event.":"Received a new AD_START event before received AD_ENDED event."):Hva(f,k,n,!0,l.i.adLayoutLoggingData)}}this.G.Oa("onAdStart",
DI(this));a=g.q(this.u.i.impressionCommands||[]);for(b=a.next();!b.done;b=a.next())this.C.executeCommand(b.value,this.macros)};
g.h.mQ=function(a){"bltcompletion"==a.getId()&&(this.G.gf("bltplayback",2),KG(this.i,this.getDuration()),CI(this,"adended"))};
g.h.Ch=function(){WG.prototype.Ch.call(this);this.Vd("adended");for(var a=g.q(this.u.i.completeCommands||[]),b=a.next();!b.done;b=a.next())this.C.executeCommand(b.value,this.macros)};
g.h.yg=function(){WG.prototype.yg.call(this);this.Vd("adabandoned")};
g.h.tB=function(){var a=this.i;GG(a)||OG(a,"clickthrough");this.B||(a=this.i,GG(a)||OG(a,"unmuted_clickthrough"))};
g.h.jx=function(){this.cq()};
g.h.cq=function(){WG.prototype.cq.call(this);this.Vd("adended")};
g.h.gh=function(a){WG.prototype.gh.call(this,a);this.Vd("aderror")};
g.h.Vd=function(a){this.I.stop();gG(this.G,!0);"adabandoned"!=a&&this.G.Oa("onAdComplete");CI(this,a);this.G.Oa("onAdEnd",DI(this));this.Z(a)};
g.h.Lk=function(){var a=this.G.T();g.kE(a)&&(g.vE(a)||a.L("enable_topsoil_wta_for_halftime")||a.L("enable_topsoil_wta_for_halftime_live_infra")||g.kE(a))?this.G.Oa("onAdInfoChange",null):WG.prototype.Lk.call(this)};
g.h.EO=function(){this.iU&&this.G.playVideo()};
g.h.iU=function(){return 2==this.G.getPlayerState(2)};
g.h.aL=function(a,b){if(!Number.isFinite(a))return g.S(Error("Playing the video after the current media has finished is not supported")),"";if(b<=a)return g.S(Error("Start time is not earlier than end time")),"";var c=1E3*this.u.j,d=Oua(this.u);d=this.G.hs(d,2,c,a,b);a+c>b&&this.G.pu(d,b-a);return d};
g.h.dispose=function(){Iua(this.G)&&!this.W&&this.G.stopVideo(2);CI(this,"adabandoned");WG.prototype.dispose.call(this)};EI.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.i[b];c?b=c:(c={Fv:null,yM:-Infinity},b=this.i[b]=c);c=a.startSecs+a.i/1E3;if(!(c<b.yM))if(b.yM=c,b.Fv){if(c<b.Fv.end){a:{c=b.Fv;switch(a.event){case "start":case "continue":case "stop":break;default:a=null;break a}a=c.start+a.durationSecs;a=a<c.start?null:c.end<=a?null:a}null!==a&&(b.Fv.end=a,this.j.qN(a))}}else if(a=
Jva(a,this.u))c=a.aU,b.Fv=a.GS,this.j.uG(c)};
EI.prototype.updateTime=function(){};HI.prototype.Mf=function(a){var b=this.i;g.gi(function(){return b.Mf(a,1)})};KI.prototype.Hp=function(a,b,c,d,e){var f=this;Sva(this,a,b,d,e,function(){f.contentCpn=null;f.adCpn=null;f.videoId=null;f.adVideoId=null;f.adFormat=null;f.u="AD_PLACEMENT_KIND_UNKNOWN";f.actionType="unknown_type";f.pe=!1;f.j=!1;f.B=!b&&0===c})};
KI.prototype.reset=function(){return new KI(this.G)};var W2={},X2=(W2.BUFFERING="buffering-mode",W2.CUED="cued-mode",W2.ENDED="ended-mode",W2.PAUSED="paused-mode",W2.PLAYING="playing-mode",W2.SEEKING="seeking-mode",W2.UNSTARTED="unstarted-mode",W2);var CTa,Y2,Xva;
CTa={j_:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",H_:"AUTHENTICATION_MALFORMED",I_:"AUTHENTICATION_MISSING",N_:"BAD_REQUEST",Z_:"CAST_SESSION_DEVICE_MISMATCHED",b0:"CAST_SESSION_VIDEO_MISMATCHED",d0:"CAST_TOKEN_EXPIRED",e0:"CAST_TOKEN_FAILED",f0:"CAST_TOKEN_MALFORMED",g0:"CGI_PARAMS_MALFORMED",h0:"CGI_PARAMS_MISSING",Q3:"DEVICE_FALLBACK",s4:"GENERIC_WITH_LINK_AND_CPN",t4:"ERROR_HDCP",u4:"LICENSE",w4:"VIDEO_UNAVAILABLE",H4:"FORMAT_UNAVAILABLE",V4:"GEO_FAILURE",m5:"HTML5_AUDIO_RENDERER_ERROR",
n5:"GENERIC_WITHOUT_LINK",o5:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",p5:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",q5:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",R5:"INVALID_DRM_MESSAGE",zaa:"PURCHASE_NOT_FOUND",Aaa:"PURCHASE_REFUNDED",Naa:"RENTAL_EXPIRED",Vaa:"RETRYABLE_ERROR",mba:"SERVER_ERROR",eca:"STOPPED_BY_ANOTHER_PLAYBACK",ica:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",jca:"STREAMING_NOT_ALLOWED",kca:"STREAM_LICENSE_NOT_FOUND",wca:"TOO_MANY_REQUESTS",xca:"TOO_MANY_REQUESTS_WITH_LINK",
yca:"TOO_MANY_STREAMS_PER_ENTITLEMENT",zca:"TOO_MANY_STREAMS_PER_USER",rda:"UNSUPPORTED_DEVICE",Dda:"VIDEO_FORBIDDEN",Gda:"VIDEO_NOT_FOUND"};Y2={};
g.XM=(Y2.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.",Y2.DEVICE_FALLBACK="Sorry, this video is not available on this device.",Y2.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",Y2.LICENSE="Sorry, there was an error licensing this video.",Y2.VIDEO_UNAVAILABLE=
"Video unavailable",Y2.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",Y2.GEO_FAILURE="This video isn't available in your country.",Y2.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",Y2.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",Y2.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",Y2.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",
Y2.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",Y2.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",Y2.PURCHASE_NOT_FOUND="This video requires payment.",Y2.PURCHASE_REFUNDED="This video's purchase has been refunded.",Y2.RENTAL_EXPIRED="This video's rental has expired.",Y2.CAST_SESSION_DEVICE_MISMATCHED="The device in the cast session doesn't match the requested one.",Y2.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",
Y2.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",Y2.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",Y2.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",Y2.SERVER_ERROR="There was an internal server error. Please try again later.",Y2.STOPPED_BY_ANOTHER_PLAYBACK="Your account is playing this video in another location. Please reload this page to resume watching.",Y2.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",
Y2.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",Y2.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",Y2.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",Y2.TOO_MANY_REQUESTS="Please log in to watch this video.",Y2.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",Y2.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",
Y2.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",Y2.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",Y2.VIDEO_FORBIDDEN="Access to this video is forbidden.",Y2.VIDEO_NOT_FOUND="This video can not be found.",Y2);
Xva={300:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",301:"ALREADY_PINNED_ON_A_DEVICE",303:"STOPPED_BY_ANOTHER_PLAYBACK",304:"TOO_MANY_STREAMS_PER_USER",305:"TOO_MANY_STREAMS_PER_ENTITLEMENT",400:"VIDEO_NOT_FOUND",401:"GEO_FAILURE",402:"STREAMING_NOT_ALLOWED",403:"UNSUPPORTED_DEVICE",405:"VIDEO_FORBIDDEN",500:"PURCHASE_NOT_FOUND",501:"RENTAL_EXPIRED",502:"PURCHASE_REFUNDED",5E3:"BAD_REQUEST",5001:"CGI_PARAMS_MISSING",5002:"CGI_PARAMS_MALFORMED",5100:"AUTHENTICATION_MISSING",5101:"AUTHENTICATION_MALFORMED",
5102:"AUTHENTICATION_EXPIRED",5200:"CAST_TOKEN_MALFORMED",5201:"CAST_TOKEN_EXPIRED",5202:"CAST_TOKEN_FAILED",5203:"CAST_SESSION_VIDEO_MISMATCHED",5204:"CAST_SESSION_DEVICE_MISMATCHED",6E3:"INVALID_DRM_MESSAGE",7E3:"SERVER_ERROR",8E3:"RETRYABLE_ERROR"};g.v(MI,g.G);g.h=MI.prototype;g.h.yy=function(){return this.j};
g.h.Zr=function(a){var b="";a&&($va(this,a),b=a.i);if(!this.wf()||b)b&&this.wf()!==b&&(this.Cy(b),delete this.u),DTa||a&&a.j||this.load(),this.J||(this.addEventListener("volumechange",this.GK),this.J=!0)};
g.h.Yp=function(){if(this.u){var a=this.u;this.u=void 0;return a}a=this.He();a=window.MediaSource?new KC(new window.MediaSource,void 0,!1):window.WebKitMediaSource?new KC(new window.WebKitMediaSource,void 0,!1):new KC(void 0,a,!1);this.Zr(a.Ow);return a};
g.h.playVideo=function(){var a=this;this.fl()&&this.seekTo(0);!this.wf()&&this.j&&(g.ot(Error("playVideo without src")),this.Cy(this.j.i),this.j.j||this.load());var b=this.play();!b&&ETa&&iN&&7<=(bG||0)&&g.Oka(this,"playing",function(){g.Gt(function(){Zva(a,a.getCurrentTime(),0)},500)});
return b};
g.h.seekTo=function(a){0<this.Dh()&&(FTa&&iN&&4>bG&&(a=Math.max(.1,a)),this.By(a))};
g.h.stopVideo=function(){!this.u&&this.wf()&&(GTa&&lu&&0<this.getCurrentTime()&&this.seekTo(0),this.rB(),this.load(),$va(this,null))};
g.h.Qs=function(){var a=this.Yf();return 0<EC(a)&&this.getDuration()?DC(a,this.getCurrentTime()):0};
g.h.Wp=function(){var a=this.getDuration();return Infinity===a?1:a?this.Qs()/a:0};
g.h.Kb=function(){try{var a=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:AC(this.aq(),",",3),vbu:AC(this.Yf()),vpa:""+ +this.Fl(),vsk:""+ +this.Ru(),ven:""+ +this.fl(),vpr:""+this.getPlaybackRate(),vrs:""+this.Dh(),vns:""+this.Oz(),vec:""+this.uj(),vemsg:this.Be(),vvol:""+this.getVolume(),vdom:""+ +this.sF(),vsrc:""+ +!!this.wf(),vw:""+a.width,vh:""+a.height}}catch(b){return{}}};
g.h.addEventListener=function(a,b){this.B.Pa(a,b,!1,this);this.oE(a)};
g.h.removeEventListener=function(a,b){this.B.xc(a,b,!1,this)};
g.h.dispatchEvent=function(a){return this.B.dispatchEvent(a)};
g.h.mE=function(){this.I=!1};
g.h.kE=function(){this.I=!0;this.Tt(!0)};
g.h.GK=function(){this.I&&!this.Nz()&&this.Tt(!0)};
g.h.equals=function(a){return!!a&&a.He()===this.He()};
g.h.ra=function(){this.J&&this.removeEventListener("volumechange",this.GK);g.G.prototype.ra.call(this)};
var DTa=!1,GTa=!0,ETa=!0,FTa=!0;g.h=g.QI.prototype;g.h.getData=function(){return this.stateData};
g.h.Ic=function(){return g.V(this,8)&&!g.V(this,512)&&!g.V(this,64)&&!g.V(this,2)};
g.h.isCued=function(){return g.V(this,64)&&!g.V(this,8)&&!g.V(this,4)};
g.h.isError=function(){return g.V(this,128)};
g.h.isSuspended=function(){return g.V(this,512)};
g.h.toString=function(){return"PSt."+this.state.toString(16)};g.v($I,g.tx);g.h=$I.prototype;g.h.hq=function(){var a=this.j;return a.j instanceof qG||a.j instanceof xG||a.j instanceof rG};
g.h.yC=function(){return this.j.j.kp()};
g.h.AI=function(){return this.j.i};
g.h.zC=function(){return"AD_PLACEMENT_KIND_START"==this.j.i.i};
g.h.BI=function(){return yG(this.j)};
g.h.FL=function(a){if(!Qy(a)){this.W&&(this.xa=this.G.isAtLiveHead(),this.va=Math.ceil(g.Ta()/1E3));var b=new HI(this.Tf);a=Lva(a);b.Mf(a)}this.CI()};
g.h.kM=function(){return!0};
g.h.xo=function(){return this.J instanceof xG};
g.h.Iw=function(){return this.J instanceof qG};
g.h.CI=function(){var a=this.Tf;this.kM()&&(a.j&&nJ(a,!1),a.j=this,this.hq()&&Gxa(a));Tva(this.C);this.cO()};
g.h.cO=function(){this.J?this.Su(this.J):oJ(this)};
g.h.onAdEnd=function(a,b){b=void 0===b?!1:b;this.Ti(0);oJ(this,b)};
g.h.dN=function(){this.onAdEnd()};
g.h.NU=function(){JG(this.i.i,"active_view_measurable")};
g.h.QU=function(){var a=this.i.i;GG(a)||RG(a)||JG(a,"active_view_fully_viewable_audible_half_duration")};
g.h.TU=function(){};
g.h.UU=function(){};
g.h.VU=function(){};
g.h.WU=function(){};
g.h.ZU=function(){var a=this.i.i;GG(a)||RG(a)||JG(a,"active_view_viewable")};
g.h.OU=function(){var a=this.i.i;GG(a)||RG(a)||JG(a,"audio_audible")};
g.h.PU=function(){var a=this.i.i;GG(a)||RG(a)||JG(a,"audio_measurable")};
g.h.oL=function(){return this.Iw()?[this.Qz()]:[]};
g.h.Sc=function(a){if(null!==this.i){this.ea||(a=new g.TG(a.state,new g.QI),this.ea=!0);var b=a.state;if(g.VG(a,2))this.i.Ch();else{var c=a;(this.G.T().experiments.Xa("html5_bulleit_handle_gained_playing_state")?c.state.Ic()&&!c.Ho.Ic():c.state.Ic())?(Wva(this.C),this.i.Yn()):b.isError()?this.i.gh(b.getData().errorCode):g.VG(a,4)&&(this.Y||this.i.Xn())}if(null!==this.i){if(g.VG(a,16)&&(b=this.i.i,!(GG(b)||.5>b.i.getCurrentTime(2,!1)&&!b.i.T().L("html5_dai_pseudogapless_seek_killswitch")))){c=b.ad;
if(c.Ew()){var d=b.u.G.T().L("html5_dai_enable_active_view_creating_completed_adblock");gga(c.J,d)}b.ad.I.seek=!0}0>UG(a,4)&&!(0>UG(a,2))&&(b=this.i,c=b.i,GG(c)||SG(c,"resume"),b.B||(b=b.i,GG(b)||SG(b,"unmuted_resume")));!this.G.T().experiments.Xa("html5_dai_handle_suspended_state_killswitch")&&this.daiEnabled&&g.VG(a,512)&&!g.YI(a.state)&&LI(this.C)}}};
g.h.onVideoDataChange=function(){return this.daiEnabled?cwa(this):!1};
g.h.resume=function(){this.i&&this.i.EO()};
g.h.Gn=function(){this.i&&this.i.Vd("adended")};
g.h.Qk=function(){this.Gn()};
g.h.Ti=function(a){this.Tf.Ti(a)};
g.h.nQ=function(a){this.Tf.i.Oa("onAdUxUpdate",a)};
g.h.onAdUxClicked=function(a){this.i.xf(a)};
g.h.lL=function(){return 0};
g.h.nL=function(){return 1};
g.h.QH=function(a){this.daiEnabled&&this.j.I&&this.j.i.start<=a&&a<bJ(this)&&this.G.Lp(a,this.j.i.end)};
g.h.Su=function(a){g.Se(this.i);this.i=a=this.yp.create(a,BG(Vua(this.j)),this.j.i.i);this.GF(a);a.xa?a.gh("ui_unstable"):a.Lr();dwa(this,!1)};
g.h.GF=function(a){a.subscribe("adabandoned",g.Sa(this.onAdEnd,!0),this);a.subscribe("adabandonedreset",g.Sa(this.onAdEnd,!0,!0),this);a.subscribe("adactiveviewmeasurable",this.NU,this);a.subscribe("adended",this.onAdEnd,this);a.subscribe("aderror",this.dN,this);a.subscribe("adfullyviewableaudiblehalfdurationimpression",this.QU,this);a.subscribe("adoverlaymeasurableimpression",this.TU,this);a.subscribe("adoverlayunviewableimpression",this.UU,this);a.subscribe("adoverlayviewableendofsessionimpression",
this.VU,this);a.subscribe("adoverlayviewableimmediateimpression",this.WU,this);a.subscribe("adpause",this.bF,this);a.subscribe("adplay",this.bF,this);a.subscribe("adunstarted",this.bF,this);a.subscribe("onAdUxUpdate",this.nQ,this);a.subscribe("adviewableimpression",this.ZU,this);a.subscribe("adaudioaudible",this.OU,this);a.subscribe("adaudiomeasurable",this.PU,this)};
g.h.bF=function(a){this.Ti(a)};
g.h.Qz=function(){return this.J};
g.h.isLiveStream=function(){return this.W};
g.h.reset=function(){return new $I(this.Tf,this.G,this.C.reset(),this.j,this.Xl,this.Ds,this.yp,this.daiEnabled)};
g.h.ra=function(){g.Se(this.i);this.i=null;g.tx.prototype.ra.call(this)};jwa.prototype.create=function(a){return(a.j instanceof rG?this.u:""===a.C?this.i:this.j)(a)};pJ.prototype.clickCommand=function(a,b,c){a=a.clickTrackingParams;c=void 0===c?0:c;a?(c=g.Kx(void 0===c?0:c))?(Xna(this.client,c,g.Gx(a),b),b=!0):b=!1:b=!1;return b};sJ.prototype.handleResponse=function(a,b){var c,d;b=(null==(c=b.al.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)};
sJ.prototype.replace=function(a,b){a=g.q(a);for(var c=a.next();!c.done;c=a.next())delete this.i[c.value.encryptedTokenJarContents];pwa(this,b)};var HTa=window.location.hostname.split(".").slice(-2).join("."),Z2;tJ.getInstance=function(){Z2=g.Ja("yt.clientLocationService.instance");Z2||(Z2=new tJ,g.Ia("yt.clientLocationService.instance",Z2,void 0));return Z2};
tJ.prototype.setLocationOnInnerTubeContext=function(a){a.client||(a.client={});this.i?(a.client.locationInfo||(a.client.locationInfo={}),a.client.locationInfo.latitudeE7=1E7*this.i.coords.latitude,a.client.locationInfo.longitudeE7=1E7*this.i.coords.longitude,a.client.locationInfo.horizontalAccuracyMeters=this.i.coords.accuracy,a.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0):this.locationPlayabilityToken&&(a.client.locationPlayabilityToken=this.locationPlayabilityToken)};
tJ.prototype.handleResponse=function(a){var b;a=null==(b=a.responseContext)?void 0:b.locationPlayabilityToken;void 0!==a&&(this.locationPlayabilityToken=a,this.i=void 0,"TVHTML5"===g.P("INNERTUBE_CLIENT_NAME")?(this.localStorage=qwa(this))&&this.localStorage.set("yt-location-playability-token",a,15552E3):g.Vt("YT_CL",JSON.stringify({loctok:a}),15552E3,HTa,!0))};
tJ.prototype.getCurrentPositionFromGeolocation=function(){var a=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition)||!g.Q("web_enable_browser_geolocation_api")&&!g.Q("enable_handoff_location_2fa_on_mweb"))return Promise.reject(Error("Geolocation unsupported"));var b=!1,c=1E4;g.Q("enable_handoff_location_2fa_on_mweb")&&(b=!0,c=15E3);return new Promise(function(d,e){navigator.geolocation.getCurrentPosition(function(f){a.i=f;d(f)},function(f){e(f)},{enableHighAccuracy:b,
maximumAge:0,timeout:c})})};
tJ.prototype.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};vJ.prototype.Iz=function(a,b){a={};var c=gj([]);c&&(a.Authorization=c,c=b=null==b?void 0:b.sessionIndex,void 0===c&&(c=Number(g.P("SESSION_INDEX",0)),c=isNaN(c)?0:c),a["X-Goog-AuthUser"]=c,"INNERTUBE_HOST_OVERRIDE"in et||(a["X-Origin"]=window.location.origin),void 0===b&&"DELEGATED_SESSION_ID"in et&&(a["X-Goog-PageId"]=g.P("DELEGATED_SESSION_ID")));return a};var xJ;g.v(wJ,vJ);wJ.prototype.Iz=function(a,b){a=vJ.prototype.Iz.call(this,a,b);return Object.assign({},a,this.Nq)};var Ewa=/[&\?]action_proxy=1/,Dwa=/[&\?]token=([\w-]*)/,Fwa=/[&\?]video_id=([\w-]*)/,Gwa=/[&\?]index=([\d-]*)/,Hwa=/[&\?]m_pos_ms=([\d-]*)/,Kwa=/[&\?]vvt=([\w-]*)/,ywa="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(" "),Iwa="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(" "),Awa={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"},Bwa={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},Jwa={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};zJ.prototype.vt=function(a){this.player.zj().tick(a)};
zJ.prototype.fetch=function(a,b){var c=this;if(!a.match(/\[BISCOTTI_ID\]/g))return BJ(this,a,b);var d=1===this.i;d&&this.vt("a_bid_s");var e=twa();if(null!==e)return d&&this.vt("a_bid_f"),BJ(this,a,b,e);e=uwa();d&&ui(e,function(){c.vt("a_bid_f")});
return e.then(function(f){return BJ(c,a,b,f)})};
zJ.prototype.reset=function(){this.j=this.i=1};g.v(CJ,g.tx);g.h=CJ.prototype;g.h.AI=function(){return this.i.i};
g.h.zC=function(){return"AD_PLACEMENT_KIND_START"==this.i.i.i};
g.h.BI=function(){return yG(this.i)};
g.h.hq=function(){return!1};
g.h.yC=function(){return!1};
g.h.onAdUxClicked=function(){};
g.h.FL=function(a){var b=this;this.u.T().L("html5_pacf_enable_non_dai_live_video_ads")&&T("Fetching logic is still in use while live midroll is on PACF");if(1!==this.i.u&&2!==this.i.u){var c=[];this.zC()||(c=Lva(a));this.i.u=1;ui(this.C.fetch(this.i.C,{Ev:this.i.B||void 0,Bd:this.i.i}).then(function(d){if(!b.isDisposed()){var e=c;b.u.isFullscreen();d=Mwa(b,d);var f=b.B;f.j&&d.isEmpty&&JI("DAI_ERROR_TYPE_NO_AD_BREAK_RENDERER",f.i);d.lM||(b.i.u=2,(new HI(b.j)).Mf(e),d.isEmpty||ioa(b.I,d.Ql))}},function(){(new HI(b.j)).Mf(c);
var d=b.B;d.j&&JI("DAI_ERROR_TYPE_AD_REQUEST_FAIL",d.i)}),function(){2!==b.i.u&&(b.i.u=0);
b.zC()&&PJ(b.j)})}};
g.h.CI=function(){};
g.h.QH=function(){};var Pwa=Object.freeze([ZG,bH,xG,dH,qG]);g.v(DJ,$I);g.h=DJ.prototype;g.h.oL=function(){for(var a=this.u.i,b=g.q(a),c=b.next();!c.done;c=b.next());return a};
g.h.kM=function(){return(0>=this.B?this.u.i:this.u.i.slice(this.B)).some(function(a){return a.gt()})};
g.h.xo=function(){return this.I instanceof xG||this.I instanceof dH};
g.h.Iw=function(){return this.I instanceof qG||this.I instanceof bH};
g.h.cO=function(){this.daiEnabled?eG(this.G)&&cwa(this):Owa(this)};
g.h.Su=function(a){var b=Nwa(a);this.I&&b&&this.N!==b&&(b?Gxa(this.Tf):Ixa(this.Tf),this.N=b);this.I=a;this.daiEnabled&&(this.B=this.u.i.findIndex(function(c){return c===a}));
$I.prototype.Su.call(this,a)};
g.h.GF=function(a){var b=this;$I.prototype.GF.call(this,a);a.subscribe("adnotifyexitednormalorerror",function(){return void oJ(b)})};
g.h.Qk=function(){this.B=this.u.i.length;this.i&&this.i.Vd("adended");oJ(this)};
g.h.Gn=function(){this.onAdEnd()};
g.h.onAdEnd=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.daiEnabled||(this.Ti(0),a?oJ(this,b):Owa(this))};
g.h.dN=function(){if(1==this.u.j)this.I instanceof cH&&g.Rx(Error("AdNotify error with FailureMode.TERMINATING")),oJ(this);else this.onAdEnd()};
g.h.Qz=function(){var a=0>=this.B?this.u.i:this.u.i.slice(this.B);return 0<a.length?a[0]:null};
g.h.hq=function(){return this.N};
g.h.yC=function(){return this.u.i.every(function(a){return a.kp()})};
g.h.reset=function(){return new DJ(this.Tf,this.G,this.C.reset(),this.j,this.Xl,this.Ds,this.yp,this.daiEnabled)};
g.h.lL=function(){return this.B};
g.h.nL=function(){return this.u.i.length};Qwa.prototype.jL=function(){return this.i};g.v(Rwa,rG);g.v(Twa,rG);Uwa.prototype.create=function(a,b){function c(l){return new qG(l,d.u,b,d.i,d.j)}
var d=this,e=a.instreamVideoAdRenderer,f=a.instreamSurveyAdRenderer,k=a.sandwichedLinearAdRenderer;a=a.linearAdSequenceRenderer;return null!=e&&e.playerVars?c(e):null!=f?new xG(f):null!=k?new Twa(k,c,this.i):null!=a?new Rwa(a,c):null};Vwa.prototype.create=function(a,b,c,d){d=void 0===d?null:d;var e=[];c=void 0===c?0:c;if(d){d=g.q(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var k=b,l=new ooa(k.u,k.j,k.daiEnabled,k.B),m=k.Ae;m&&(l.Ae=new Dy(m.startSecs,m.durationSecs,m.context,m.identifier,m.event,m.i));k.i&&(l.i=k.i);l.visible=k.visible;k=l;k.Ae=f;e.push(Wwa(this,a[0],c,k));c++}}else for(a=g.q(a),d=a.next();!d.done;d=a.next())e.push(Wwa(this,d.value,c,b)),c++;return e};g.v(EJ,g.G);EJ.prototype.addEventListener=function(a,b){this.i=b};
EJ.prototype.removeEventListener=function(){this.i=null};
g.v(FJ,g.G);FJ.prototype.addEventListener=function(a,b,c){this.i.addEventListener(a,b,c)};
FJ.prototype.removeEventListener=function(a,b){this.i.removeEventListener(a,b)};g.v(Zwa,g.G);var GJ=null,axa=null,HJ=null,IJ=null,JJ=null;g.Ia("yt.www.ads.eventcache.getLastCompanionData",function(){return GJ},void 0);
g.Ia("yt.www.ads.eventcache.getLastPlaShelfData",function(){return axa},void 0);
g.Ia("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return HJ},void 0);
g.Ia("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return IJ},void 0);
g.Ia("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return JJ},void 0);var mxa={clickTrackingParams:!0,commandMetadata:!0,loggingUrls:!0};g.v(MJ,g.G);MJ.prototype.ra=function(){this.Ud.clear();g.G.prototype.ra.call(this)};
MJ.prototype.Gd=function(a,b,c){a=void 0===a?[]:a;b=void 0===b?{}:b;c=void 0===c?{}:c;this.isDisposed();a=g.q(a);for(var d=a.next();!d.done;d=a.next())this.executeCommand(d.value,b,c)};
MJ.prototype.executeCommand=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.isDisposed();a.loggingUrls&&nxa(this,"loggingUrls",a.loggingUrls,b,c);a=g.q(Object.entries(a));for(var d=a.next();!d.done;d=a.next()){var e=g.q(d.value);d=e.next().value;e=e.next().value;"openPopupAction"===d?jxa(this,e):"confirmDialogEndpoint"===d?kxa(this,e):mxa.hasOwnProperty(d)||nxa(this,d,e,b,c)}};g.v(sxa,g.G);g.v(OJ,g.tx);g.h=OJ.prototype;g.h.eF=function(){return!Axa(this,Exa(this))};
g.h.Fz=function(){return this.Ia};
g.h.ra=function(){this.va=!0;g.sx(this.B);this.I&&this.i.getVideoData(1).unsubscribe("cuepointupdated",this.pN,this);if(fG(this.i)){var a=vxa(this.i);a.removeEventListener("updateKevlarOrC3Companion",$wa);a.removeEventListener("onPlaShelfInfoCardsReady",bxa);a.removeEventListener("updateEngagementPanelAction",cxa);a.removeEventListener("changeEngagementPanelVisibility",dxa);a.removeEventListener("scrollToEngagementPanel",exa);window.removeEventListener("yt-navigate-start",fxa);JJ=IJ=HJ=GJ=null}a=
g.q(this.u.values());for(var b=a.next();!b.done;b=a.next())Hxa(this,b.value);nJ(this,!1);this.zp.clear();this.Y=[];this.N.clear();g.Se(this.ea);this.ea=new Map;g.Se(this.J);this.J=new Map;this.u.clear();g.tx.prototype.ra.call(this)};
g.h.hG=function(a){if(a instanceof Py&&!a.u&&(!Koa(a)||a.contains(1E3*this.i.getCurrentTime(1)||0)))if(g.V(this.i.zb(1),32))this.N.add(a);else{var b=this.u.get(a);b&&((this.i.T().experiments.Xa("enable_eviction_protection_for_bulleit")?this.j?this.j.yC():1:1)?b.FL(a):a.deactivate())}};
g.h.EV=function(a){a instanceof Py&&(a.u&&(a.u=!1),this.N.delete(a))};
g.h.pN=function(a){Ova(this.Ha,a);null==this.I?g.S(Error("Dynamically inserted ad was requested, but no cuepoint AdPlacementRenderer was present to fulfill the request.")):0!=(this.i.getCurrentTime(1)||0)&&(a=a.filter(function(b){return"start"==b.event}),QJ(this,[this.I],a))};
g.h.uG=function(a){QJ(this,[this.I],[a])};
g.h.qN=function(a){var b=1E3*a;this.j&&this.j.QH(b);for(var c=g.q(this.u.values()),d=c.next();!d.done;d=c.next())d.value.QH(b);g.tc(this.Qa.i,1E3*a)};
g.h.jl=function(a){switch(a){case "control_play":this.j&&(a=this.j,a.Iw()?a.G.Nc().playVideo():a.xo()&&a.i.Yn());break;case "control_pause":this.j&&(a=this.j,a.Iw()?a.G.Nc().pauseVideo():a.xo()&&a.i.Xn())}};
g.h.pQ=function(a){this.j&&this.j.Sc(a)};
g.h.jV=function(a){0>UG(a,16)&&(this.N.forEach(this.hG,this),this.N.clear())};
g.h.IX=function(){if(this.j)this.j.onVideoDataChange()};
g.h.LX=function(){if(eG(this.i)&&this.j){var a=this.i.getCurrentTime(2,!1),b=this.j;b.i&&YG(b.i,a)}};
g.h.LU=function(){this.Wa=!0;if(this.j){var a=this.j;a.i&&a.i.yg()}};
g.h.XU=function(a){if(this.j)this.j.onAdUxClicked(a)};
g.h.MX=function(){if(2==this.i.getPresentingPlayerType()&&this.j){var a=this.j.i,b=a.i,c=a.G.isMuted();HG(b)||JG(b,c?"mute":"unmute");a.B||(b=a.G.isMuted(),JG(a.i,b?"unmuted_mute":"unmuted_unmute"))}};
g.h.OV=function(a){if(this.j){var b=this.j.i,c=b.i;GG(c)||OG(c,a?"fullscreen":"end_fullscreen");b.B||(b=b.i,GG(b)||OG(b,a?"unmuted_fullscreen":"unmuted_end_fullscreen"))}};
g.h.Mf=function(a,b){this.i.Mf(a,b);a=g.q(a);for(b=a.next();!b.done;b=a.next())b=b.value,this.zp.delete(b),this.u.delete(b)};
g.h.oZ=function(){for(var a=[],b=g.q(this.zp),c=b.next();!c.done;c=b.next())c=c.value,Qy(c)||a.push(c);b=this.i.app;1!==b.getPresentingPlayerType()||YX(b,"cuerangemarkersupdated",a)};
g.h.Ti=function(a){this.i.Ti(a);switch(a){case 1:this.gA=1;break;case 0:this.gA=0}};
g.h.rH=function(){var a=this.i.getVideoData(2);return a?a.isListed&&!this.W:!1};
g.h.Gn=function(){this.j&&this.j.hq()&&this.j.Gn()};
g.h.Qk=function(){this.j&&this.j.hq()&&this.j.Qk()};
g.h.wz=function(){};
g.h.cz=function(){};
g.h.Rb=function(a){if(this.j){var b=this.j;b.i&&YG(b.i,a)}};
g.h.xo=function(){return eG(this.i)&&!!this.j&&this.j.xo()};
g.h.executeCommand=function(a,b,c){this.kb.executeCommand(a,b,Dxa(this,void 0===c?null:c))};
g.h.isDaiEnabled=function(){return!1};
g.h.jL=function(){return this.ya};
g.h.kL=function(){return this.La};g.v(RJ,g.G);RJ.prototype.append=function(a){if(!this.j)throw Error("This does not support the append operation");this.i.appendChild(a.i)};
g.v(SJ,RJ);g.v(Lxa,g.G);var Nxa=1;g.v(g.UJ,g.G);g.h=g.UJ.prototype;
g.h.createElement=function(a,b){b=b||"svg"===a.D;var c=a.K,d=a.Ga;if(b){var e=document.createElementNS("http://www.w3.org/2000/svg",a.D);g.zE&&(a.V||(a.V={}),a.V.focusable="false")}else e=g.Nh(a.D);if(c){if(c=VJ(this,e,"class",c))WJ(this,e,"class",c),this.wb[c]=e}else if(d){c=g.q(d);for(var f=c.next();!f.done;f=c.next())this.wb[f.value]=e;WJ(this,e,"class",d.join(" "))}d=a.qa;c=a.U;if(d)b=VJ(this,e,"child",d),void 0!==b&&e.appendChild(g.Oh(b));else if(c)for(d=0,c=g.q(c),f=c.next();!f.done;f=c.next())if(f=
f.value)if("string"===typeof f)f=VJ(this,e,"child",f),null!=f&&e.appendChild(g.Oh(f));else if(f.element)e.appendChild(f.element);else{var k=f;f=this.createElement(k,b);e.appendChild(f);k.Fb&&(k=TJ(),f.id=k,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","#"+k),g.Qh(e,f,d++))}if(a=a.V)for(b=e,d=g.q(Object.keys(a)),c=d.next();!c.done;c=d.next())c=c.value,f=a[c],WJ(this,b,c,"string"===typeof f?
VJ(this,b,c,f):f);return e};
g.h.Da=function(a){return this.wb[a]};
g.h.Ca=function(a,b){"number"===typeof b?g.Qh(a,this.element,b):a.appendChild(this.element)};
g.h.detach=function(){g.Rh(this.element)};
g.h.update=function(a){for(var b=g.q(Object.keys(a)),c=b.next();!c.done;c=b.next())c=c.value,this.Ma(c,a[c])};
g.h.Ma=function(a,b){(a=this.fd["{{"+a+"}}"])&&WJ(this,a[0],a[1],b)};
g.h.ra=function(){this.wb={};this.fd={};this.detach();g.G.prototype.ra.call(this)};g.v(g.W,g.UJ);g.h=g.W.prototype;g.h.zd=function(a,b){this.Ma(b||"content",a)};
g.h.show=function(){this.sb||(g.xn(this.element,"display",""),this.sb=!0)};
g.h.hide=function(){this.sb&&(g.xn(this.element,"display","none"),this.sb=!1)};
g.h.dc=function(a){this.va=a};
g.h.Pa=function(a,b,c){return this.S(this.element,a,b,c)};
g.h.S=function(a,b,c,d){c=(0,g.Ra)(c,d||this);d={target:a,type:b,listener:c};this.listeners.push(d);a.addEventListener(b,c);return d};
g.h.xc=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.h.focus=function(){var a=this.element;Wh(a);a.focus()};
g.h.ra=function(){for(;this.listeners.length;){var a=this.listeners.pop();a&&a.target.removeEventListener(a.type,a.listener)}g.UJ.prototype.ra.call(this)};g.v(g.YJ,g.W);g.YJ.prototype.subscribe=function(a,b,c){return this.Ta.subscribe(a,b,c)};
g.YJ.prototype.unsubscribe=function(a,b,c){return this.Ta.unsubscribe(a,b,c)};
g.YJ.prototype.jg=function(a){return this.Ta.jg(a)};
g.YJ.prototype.Z=function(a){return this.Ta.Z.apply(this.Ta,[a].concat(g.u(g.Ca.apply(1,arguments))))};var ITa=new WeakSet;g.v(ZJ,g.YJ);g.h=ZJ.prototype;g.h.bind=function(a){if(!this.Wa&&a.renderer){var b=Object.assign({},Kxa(this.api,this.Ua),a.macros);this.init(a.id,a.renderer,b,a)}return Promise.resolve()};
g.h.init=function(a,b,c){this.Wa=a;this.element.setAttribute("id",this.Wa);this.jb&&g.L(this.element,this.jb);this.W=b&&b.adRendererCommands;this.macros=c;this.J=b.trackingParams||null;null!=this.J&&this.Vg(this.element,this.J)};
g.h.clear=function(){};
g.h.hide=function(){g.YJ.prototype.hide.call(this);null!=this.J&&this.Za(this.element,!1)};
g.h.show=function(){g.YJ.prototype.show.call(this);if(!this.kb){this.kb=!0;var a=this.W&&this.W.impressionCommand;a&&this.cH(a,null)}null!=this.J&&this.Za(this.element,!0)};
g.h.onClick=function(a){if(this.J&&!ITa.has(a)){var b=this.element;this.api.jo(b)&&this.sb&&this.api.ub(b,this.i);ITa.add(a)}if(a=this.W&&this.W.clickCommand)a=this.jO(a),this.cH(a,this.pL())};
g.h.jO=function(a){return a};
g.h.pL=function(){return null};
g.h.sQ=function(a){var b=this.ea;b.J=!0;b.j=a.touches.length;b.i.isActive()&&(b.i.stop(),b.C=!0);a=a.touches;b.I=Mxa(b,a)||1!=a.length;var c=a.item(0);b.I||!c?(b.N=Infinity,b.W=Infinity):(b.N=c.clientX,b.W=c.clientY);for(c=b.u.length=0;c<a.length;c++){var d=a.item(c);b.u.push(d.identifier)}};
g.h.rQ=function(a){var b=this.ea;a=a.changedTouches.item(0);if(Qb()&&!(0<=g.xb(Tb(),8))||a&&Math.pow(a.clientX-b.N,2)+Math.pow(a.clientY-b.W,2)>Math.pow(5,2))b.B=!0};
g.h.qQ=function(a){if(this.ea){var b=this.ea,c=a.changedTouches;c&&b.J&&1==b.j&&!b.B&&!b.C&&!b.I&&Mxa(b,c)&&(b.Y=a,b.i.start());b.j=a.touches.length;0===b.j&&(b.J=!1,b.B=!1,b.u.length=0);b.C=!1}};
g.h.cH=function(a,b){this.api.T().experiments.Xa("html5_enable_pacf_command_api_with_macros")?DK(this.ib,a,this.macros):this.Ua?this.Ua.executeCommand(a,this.macros,b):g.S(Error("null or undefined adService"))};
g.h.Vg=function(a,b){this.api.Vg(a,this);this.api.Xj(a,b)};
g.h.Za=function(a,b){this.api.jo(a)&&this.api.Za(a,b,this.i)};
g.h.ra=function(){this.clear(null);this.xc(this.fb);for(var a=g.q(this.xa),b=a.next();!b.done;b=a.next())this.xc(b.value);g.YJ.prototype.ra.call(this)};g.v(rK,ZJ);
rK.prototype.init=function(a,b,c){ZJ.prototype.init.call(this,a,b,c);this.j=b;if(null==b.text&&null==b.icon)g.Rx(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.L(this.element,a);null!=b.text&&(a=g.Sy(b.text),g.lb(a)||(this.element.setAttribute("aria-label",a),this.B=new g.YJ({D:"span",K:"ytp-ad-button-text",qa:a}),g.J(this,this.B),this.B.Ca(this.element)));null!=b.icon&&(b=qK(b.icon),
null!=b&&(this.u=new g.YJ({D:"span",K:"ytp-ad-button-icon",U:[b]}),g.J(this,this.u)),this.C?g.Qh(this.element,this.u.element,0):this.u.Ca(this.element))}};
rK.prototype.clear=function(){this.hide()};
rK.prototype.onClick=function(a){ZJ.prototype.onClick.call(this,a);a=g.q(dya(this));for(var b=a.next();!b.done;b=a.next())b=b.value,this.api.T().experiments.Xa("html5_enable_pacf_command_api_with_macros")?DK(this.ib,b,this.macros):this.Ua.executeCommand(b,this.macros);this.api.onAdUxClicked(this.componentType,this.layoutId)};g.v(sK,g.G);sK.prototype.ra=function(){this.j&&g.Au(this.j);this.i.clear();tK=null;g.G.prototype.ra.call(this)};
sK.prototype.register=function(a,b){b&&this.i.set(a,b)};
var tK=null;g.v(vK,ZJ);
vK.prototype.init=function(a,b,c){ZJ.prototype.init.call(this,a,b,c);a=b.hoverText||null;b=b.button&&b.button.buttonRenderer||null;null==b?g.S(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new rK(this.api,this.Ua,this.layoutId,this.i,this.ib),g.J(this,this.button),this.button.init(hG("button"),b,this.macros),a&&this.button.element.setAttribute("aria-label",g.Sy(a)),this.button.Ca(this.element),this.I&&!g.nr(this.button.element,"ytp-ad-clickable")&&g.L(this.button.element,"ytp-ad-clickable"),
a&&(this.u=new g.YJ({D:"div",K:"ytp-ad-hover-text-container"}),this.C&&(b=new g.YJ({D:"div",K:"ytp-ad-hover-text-callout"}),b.Ca(this.u.element),g.J(this,b)),g.J(this,this.u),this.u.Ca(this.element),b=uK(a),g.Qh(this.u.element,b,0)),this.show())};
vK.prototype.hide=function(){this.button&&this.button.hide();this.u&&this.u.hide();ZJ.prototype.hide.call(this)};
vK.prototype.show=function(){this.button&&this.button.show();ZJ.prototype.show.call(this)};g.v(xK,ZJ);xK.prototype.init=function(a,b,c){ZJ.prototype.init.call(this,a,b,c);b=(a=b.thumbnail)&&wK(a)||"";g.lb(b)?(this.api.T().L("web_player_ad_image_error_rate_sampling_killswitch")||.01>Math.random())&&g.Rx(Error("Found AdImage without valid image URL")):(this.j?g.xn(this.element,"backgroundImage","url("+b+")"):yh(this.element,{src:b}),yh(this.element,{alt:a&&a.accessibility&&a.accessibility.label||""}),this.show())};
xK.prototype.clear=function(){this.hide()};g.v(yK,ZJ);g.h=yK.prototype;g.h.hide=function(){ZJ.prototype.hide.call(this);this.B&&this.B.focus()};
g.h.show=function(){this.B=document.activeElement;ZJ.prototype.show.call(this);this.C.focus()};
g.h.init=function(a,b,c){ZJ.prototype.init.call(this,a,b,c);this.u=b;b.dialogMessages||null!=b.title?null==b.confirmLabel?g.S(Error("ConfirmDialogRenderer.confirmLabel was not set.")):null==b.cancelLabel?g.S(Error("ConfirmDialogRenderer.cancelLabel was not set.")):hya(this,b):g.S(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))};
g.h.clear=function(){g.sx(this.j);this.hide()};
g.h.fG=function(){this.hide()};
g.h.GC=function(){var a=this.u.cancelEndpoint;a&&(this.api.T().experiments.Xa("html5_enable_pacf_command_api_with_macros")?DK(this.ib,a,this.macros):this.Ua.executeCommand(a,this.macros));this.hide()};
g.h.gG=function(){var a=this.u.confirmNavigationEndpoint||this.u.confirmEndpoint;a&&(this.api.T().experiments.Xa("html5_enable_pacf_command_api_with_macros")?DK(this.ib,a,this.macros):this.Ua.executeCommand(a,this.macros));this.hide()};g.v(zK,ZJ);g.h=zK.prototype;
g.h.init=function(a,b,c){ZJ.prototype.init.call(this,a,b,c);this.u=b;if(null==b.defaultText&&null==b.defaultIcon)g.S(Error("ToggleButtonRenderer must have either text or icon set."));else if(null==b.defaultIcon&&null!=b.toggledIcon)g.S(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.L(this.B,a)}a={};b.defaultText?
(c=g.Sy(b.defaultText),g.lb(c)||(a.buttonText=c,this.j.setAttribute("aria-label",c))):g.jo(this.ya,!1);b.defaultTooltip&&(a.tooltipText=b.defaultTooltip,this.j.hasAttribute("aria-label")||this.Y.setAttribute("aria-label",b.defaultTooltip));b.defaultIcon?(c=qK(b.defaultIcon),this.Ma("untoggledIconTemplateSpec",c),b.toggledIcon?(this.N=!0,c=qK(b.toggledIcon),this.Ma("toggledIconTemplateSpec",c)):(g.jo(this.I,!0),g.jo(this.C,!1)),g.jo(this.j,!1)):g.jo(this.Y,!1);g.uf(a)||this.update(a);b.isToggled&&
(g.L(this.B,"ytp-ad-toggle-button-toggled"),this.toggleButton(b.isToggled));AK(this);this.S(this.element,"change",this.OI);this.show()}};
g.h.onClick=function(a){0<this.xa.length&&(this.toggleButton(!this.isToggled()),this.OI());ZJ.prototype.onClick.call(this,a)};
g.h.OI=function(){g.M(this.B,"ytp-ad-toggle-button-toggled",this.isToggled());for(var a=g.q(iya(this,this.isToggled())),b=a.next();!b.done;b=a.next())b=b.value,this.api.T().experiments.Xa("html5_enable_pacf_command_api_with_macros")?DK(this.ib,b,this.macros):this.Ua.executeCommand(b,this.macros);if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);AK(this)};
g.h.clear=function(){this.hide()};
g.h.toggleButton=function(a){g.M(this.B,"ytp-ad-toggle-button-toggled",a);this.j.checked=a;AK(this)};
g.h.isToggled=function(){return this.j.checked};g.v(BK,qx);BK.prototype.N=function(a){if(Array.isArray(a)){a=g.q(a);for(var b=a.next();!b.done;b=a.next())b=b.value,b instanceof Ry&&this.B(b)}};g.v(CK,ZJ);g.h=CK.prototype;g.h.init=function(a,b,c){ZJ.prototype.init.call(this,a,b,c);b.reasons?null==b.confirmLabel?g.S(Error("AdFeedbackRenderer.confirmLabel was not set.")):(null==b.cancelLabel&&g.Rx(Error("AdFeedbackRenderer.cancelLabel was not set.")),null==b.title&&g.Rx(Error("AdFeedbackRenderer.title was not set.")),mya(this,b)):g.S(Error("AdFeedbackRenderer.reasons were not set."))};
g.h.clear=function(){Iu(this.I);Iu(this.N);this.C.length=0;this.hide()};
g.h.hide=function(){this.j&&this.j.hide();this.u&&this.u.hide();ZJ.prototype.hide.call(this);this.B&&this.B.focus()};
g.h.show=function(){this.j&&this.j.show();this.u&&this.u.show();this.B=document.activeElement;ZJ.prototype.show.call(this);this.I.focus()};
g.h.kN=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.Z("a");this.hide()};
g.h.HX=function(){this.hide()};
nya.prototype.isChecked=function(){return this.u.checked};g.v(EK,yK);EK.prototype.fG=function(a){yK.prototype.fG.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
EK.prototype.GC=function(a){yK.prototype.GC.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
EK.prototype.gG=function(a){yK.prototype.gG.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.Z("b")};g.v(FK,ZJ);g.h=FK.prototype;
g.h.init=function(a,b,c){ZJ.prototype.init.call(this,a,b,c);this.I=b;if(null==b.dialogMessage&&null==b.title)g.S(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{null==b.confirmLabel&&g.Rx(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(a=b.closeOverlayRenderer&&b.closeOverlayRenderer.buttonRenderer||null)this.j=new rK(this.api,this.Ua,this.layoutId,this.i,this.ib,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"),g.J(this,
this.j),this.j.init(hG("button"),a,this.macros),this.j.Ca(this.element);b.title&&(a=g.Sy(b.title),this.Ma("title",a));if(b.adReasons)for(a=b.adReasons,c=0;c<a.length;c++){var d=uK(a[c]);if(!g.lb(d.textContent)){var e=Mh("LI");e.appendChild(d);this.Ha.appendChild(e)}}else g.jo(this.Ha,!1);b.dialogMessage&&(a=uK(b.dialogMessage,!0),this.La.appendChild(a));b.confirmLabel&&(a=g.Sy(b.confirmLabel),this.Ma("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.Rx(Error("AdInfoDialogRenderer.muteAdRenderer was specified but contains neither an AdFeedbackEndpoint, nor a ConfirmDialogEndpoint.")):(a?oya(this,a):c&&pya(this,c),this.B=new rK(this.api,this.Ua,this.layoutId,this.i,this.ib,["ytp-ad-info-dialog-mute-button"],"button",!0),g.J(this,this.B),this.B.init(hG("button"),b,this.macros),this.B.Pa("click",this.kW,this),
this.B.Ca(this.Qa)));qya(this)}};
g.h.clear=function(){Iu(this.N);this.hide()};
g.h.hide=function(){this.u?this.u.hide():this.C&&this.C.hide();this.j&&this.j.hide();this.B&&this.B.hide();ZJ.prototype.hide.call(this);this.Y&&this.Y.focus()};
g.h.show=function(){this.j&&this.j.show();this.B&&this.B.show();if(!this.Ia){for(var a=g.q(this.I&&this.I.impressionEndpoints||[]),b=a.next();!b.done;b=a.next())b=b.value,this.api.T().experiments.Xa("html5_enable_pacf_command_api_with_macros")?DK(this.ib,b,this.macros):this.Ua.executeCommand(b,this.macros);this.Ia=!0}this.Y=document.activeElement;ZJ.prototype.show.call(this);this.N.focus()};
g.h.QI=function(){this.I&&this.I.confirmServiceEndpoint&&(this.api.T().experiments.Xa("html5_enable_pacf_command_api_with_macros")?DK(this.ib,this.I.confirmServiceEndpoint,this.macros):this.Ua.executeCommand(this.I.confirmServiceEndpoint,this.macros));this.api.onAdUxClicked("ad-info-dialog-close-button",this.layoutId);this.Z("d");this.hide()};
g.h.kW=function(){var a=this.u?this.u:this.C;a&&!a.sb&&(this.hide(),a.show())};g.v(GK,vK);GK.prototype.init=function(a,b,c){vK.prototype.init.call(this,a,b,c);a=b.button&&b.button.buttonRenderer||null;null!=a&&(tya(this,a,c),this.show())};
GK.prototype.hide=function(){this.button&&this.button.hide();this.j&&this.j.hide();vK.prototype.hide.call(this)};
GK.prototype.show=function(){this.button&&this.button.show();vK.prototype.show.call(this)};
GK.prototype.clear=function(){this.hide()};g.v(HK,ZJ);HK.prototype.init=function(a,b,c){ZJ.prototype.init.call(this,a,b,c);this.j=b;this.isTemplated()||g.Uh(this.element,$J(this.j));if(b.backgroundImage&&(a=(a=b.backgroundImage.thumbnail)?wK(a):"",c=(c=this.api.getVideoData(1))&&c.wk,a&&c&&(this.element.style.backgroundImage="url("+a+")",this.element.style.backgroundSize="100%"),b.style&&b.style.adTextStyle))switch(b.style.adTextStyle.fontSize){case "AD_FONT_SIZE_MEDIUM":this.element.style.fontSize="26px"}this.show()};
HK.prototype.isTemplated=function(){return this.j.isTemplated||!1};
HK.prototype.clear=function(){this.hide()};var xya={seekableStart:0,seekableEnd:1,current:0};g.v(JK,ZJ);JK.prototype.clear=function(){this.dispose()};(function(a,b){function c(f){var k=g.q(f);f=k.next().value;k=la(k);return a.apply(f,k)}
function d(f){f=g.q(f);f.next();f=la(f);return b(e,f)}
b=void 0===b?Lga:b;var e=g.Qa(a);return function(){var f=g.Ca.apply(0,arguments),k=this||g.C,l=HSa.get(k);l||(l={},HSa.set(k,l));return Bc(l,[this].concat(g.u(f)),c,d)}})(function(a){var b=g.Nh("DIV");
a&&(b.className=a);b.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";a=g.Nh("DIV");g.ho(a,"200px","200px");b.appendChild(a);document.body.appendChild(b);a=b.offsetWidth-b.clientWidth;g.Rh(b);return a});g.v(g.MK,g.G);g.h=g.MK.prototype;g.h.show=function(a){1!==this.state&&2!==this.state&&(4===this.state&&this.WB(),5===this.state?(this.element.show(),this.state=null,this.delay.stop(),this.i&&this.i()):this.element.sb||(NK(this,!0),this.state=1,a?this.delay.start(a):this.WB()))};
g.h.hide=function(){4!==this.state&&(1===this.state||2===this.state?(this.element.hide(),this.state=null,this.delay.stop()):this.element.sb&&(NK(this,!0),this.state=4,this.delay.start(this.B)))};
g.h.WB=function(){switch(this.state){case 1:this.element.show();this.state=2;this.delay.start(10);break;case 2:NK(this,!1);this.state=3;this.delay.start(this.u);break;case 3:this.state=null;this.i&&this.i();break;case 4:this.element.hide();NK(this,!1);this.state=5;this.delay.start(0);break;case 5:this.state=null,this.j&&this.j()}};
g.h.stop=function(){for(;null!==this.state&&5!==this.state;)this.delay.stop(),this.WB()};
g.h.ra=function(){this.element.isDisposed()||this.element.element.removeAttribute("aria-hidden");g.G.prototype.ra.call(this)};g.v(OK,JK);g.h=OK.prototype;
g.h.init=function(a,b,c){JK.prototype.init.call(this,a,b,c);a=b.durationMilliseconds;"number"===typeof a&&0>a&&g.S(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+a));this.Qa&&g.L(this.u.element,"countdown-next-to-thumbnail");a=b.durationMilliseconds;this.ya=null==a||0===a?this.j.Yv():a;if(b.templatedCountdown)var d=b.templatedCountdown.templatedAdText;else b.staticPreview&&(d=b.staticPreview);this.B.init(hG("ad-text"),d,c);(d=this.api.getVideoData(1))&&
d.wk&&b.thumbnail?this.I.init(hG("ad-image"),b.thumbnail,c):this.N.hide()};
g.h.clear=function(){this.hide()};
g.h.hide=function(){this.u.hide();this.B.hide();this.I.hide();LK(this);JK.prototype.hide.call(this)};
g.h.show=function(){KK(this);this.u.show();this.B.show();this.I.show();JK.prototype.show.call(this)};
g.h.Kq=function(){this.hide()};
g.h.Qo=function(){if(null!=this.j){var a=this.j.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.Ia&&a>=this.ya?(this.Y.hide(),this.Ia=!0,this.Z("i")):this.B&&this.B.isTemplated()&&(a=Math.max(0,Math.ceil((this.ya-a)/1E3)),a!=this.La&&(IK(this.B,{TIME_REMAINING:String(a)}),this.La=a)))}};g.v(QK,JK);g.h=QK.prototype;
g.h.init=function(a,b,c){JK.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.lb(g.jh(d[0].url))&&(d[0].url=a.profilePicture)}else g.Rx(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.Y.init(hG("ad-image"),b.image,c);
this.N.init(hG("ad-text"),b.headline,c);this.I.init(hG("ad-text"),b.description,c);this.u.init(hG("button"),b.actionButton.buttonRenderer,c);this.B=b.actionButton.buttonRenderer.navigationEndpoint;this.api.lA()||this.show();this.api.addEventListener("playerUnderlayVisibilityChange",this.RI.bind(this));this.ya=b.startMs||0;KK(this)}else g.S(Error("FlyoutCtaRenderer has no valid action button."));else g.S(Error("FlyoutCtaRenderer has no description AdText."));else g.S(Error("FlyoutCtaRenderer has no headline AdText."));
else g.Rx(Error("FlyoutCtaRenderer has no image."))};
g.h.onClick=function(a){JK.prototype.onClick.call(this,a);this.api.pauseVideo();!g.Th(this.u.element,a.target)&&this.B&&(this.api.T().experiments.Xa("html5_enable_pacf_command_api_with_macros")?DK(this.ib,this.B,this.macros):this.Ua.executeCommand(this.B,this.macros))};
g.h.Qo=function(){if(this.j){var a=this.j.getProgressState();a&&a.current&&1E3*a.current>=this.ya&&(LK(this),g.pr(this.element,"ytp-flyout-cta-inactive"))}};
g.h.Kq=function(){this.clear()};
g.h.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.RI.bind(this))};
g.h.show=function(){this.u&&this.u.show();JK.prototype.show.call(this)};
g.h.hide=function(){this.u&&this.u.hide();JK.prototype.hide.call(this)};
g.h.RI=function(a){"hidden"==a?this.show():this.hide()};g.v(RK,ZJ);g.h=RK.prototype;
g.h.init=function(a,b,c){ZJ.prototype.init.call(this,a,b,c);this.j=b;if(this.j.rectangle)for(this.B.init(hG("toggle-button"),this.j.likeButton.toggleButtonRenderer,c),this.u.init(hG("toggle-button"),this.j.dislikeButton.toggleButtonRenderer,c),this.S(this.element,"change",this.SI),this.C.show(100),this.show(),a=g.q(this.j&&this.j.impressionCommands||[]),b=a.next();!b.done;b=a.next())b=b.value,this.api.T().experiments.Xa("html5_enable_pacf_command_api_with_macros")?DK(this.ib,b,this.macros):this.Ua.executeCommand(b,
this.macros)};
g.h.clear=function(){this.hide()};
g.h.hide=function(){this.B.hide();this.u.hide();ZJ.prototype.hide.call(this)};
g.h.show=function(){this.B.show();this.u.show();ZJ.prototype.show.call(this)};
g.h.SI=function(){rga(this.element,"ytp-ad-instream-user-sentiment-selected");this.j.postMessageAction&&this.api.Oa("onYtShowToast",this.j.postMessageAction);this.C.hide()};
g.h.onClick=function(a){0<this.xa.length&&this.SI();ZJ.prototype.onClick.call(this,a)};g.v(SK,g.G);g.h=SK.prototype;g.h.ra=function(){this.reset();g.G.prototype.ra.call(this)};
g.h.reset=function(){g.sx(this.B);this.I=!1;this.i&&this.i.stop();this.C.stop();this.j&&(this.j=!1,this.J.play())};
g.h.start=function(){this.reset();this.B.S(this.u,"mouseover",this.uQ,this);this.B.S(this.u,"mouseout",this.tQ,this);this.i?this.i.start():(this.I=this.j=!0,g.xn(this.u,{opacity:this.W}))};
g.h.uQ=function(){this.j&&(this.j=!1,this.J.play());this.C.stop();this.i&&this.i.stop()};
g.h.tQ=function(){this.I?this.C.start():this.i&&this.i.start()};
g.h.hK=function(){this.j||(this.j=!0,this.N.play(),this.I=!0)};g.v(TK,JK);g.h=TK.prototype;
g.h.init=function(a,b,c){JK.prototype.init.call(this,a,b,c);this.N=b;this.ya=vya(this);if(!b||g.uf(b))g.S(Error("SkipButtonRenderer was not specified or empty."));else if(!b.message||g.uf(b.message))g.S(Error("SkipButtonRenderer.message was not specified or empty."));else{a={iconType:"SKIP_NEXT"};b=qK(a);null==b?g.S(Error("Icon for SkipButton was unable to be retrieved. yt.innertube.Icon.IconType: "+a.iconType+".")):(this.I=new g.YJ({D:"button",Ga:["ytp-ad-skip-button","ytp-button"],U:[{D:"span",
K:"ytp-ad-skip-button-icon",U:[b]}]}),g.J(this,this.I),this.I.Ca(this.B.element),this.u=new HK(this.api,this.Ua,this.layoutId,this.i,this.ib,"ytp-ad-skip-button-text"),this.u.init(hG("ad-text"),this.N.message,c),g.J(this,this.u),g.Qh(this.I.element,this.u.element,0));var d=void 0===d?null:d;c=this.api.T();!(0<this.xa.length)&&c.isMobile&&(TD?0:"ontouchstart"in document.documentElement&&(fn()||en()))&&(this.xc(this.fb),d&&this.xc(d),this.xa=[this.S(this.element,"touchstart",this.sQ,this),this.S(this.element,
"touchmove",this.rQ,this),this.S(this.element,"touchend",this.qQ,this)])}};
g.h.clear=function(){this.Y.reset();this.hide()};
g.h.hide=function(){this.B.hide();this.u&&this.u.hide();LK(this);JK.prototype.hide.call(this)};
g.h.onClick=function(a){if(null!=this.I&&(a&&g.Fu(a),JK.prototype.onClick.call(this,a),this.Z("j"),this.Ia||!this.ya))this.api.onAdUxClicked(this.componentType,this.layoutId)};
g.h.jO=function(a){if(!this.api.T().L("html5_enable_single_video_vod_ivar_on_pacf")||!this.Ia)return 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&&uya(e.adLifecycleCommand)||e.pingingEndpoint||e.adPingingEndpoint||b.push(e)}return{commandExecutorCommand:{commands:b}}};
g.h.pL=function(){return"skip"};
g.h.cH=function(a,b){this.api.T().experiments.Xa("html5_enable_pacf_command_api_with_macros")?(b=Dxa(this.Ua,b),DK(this.ib,a,this.macros,b)):this.Ua?this.Ua.executeCommand(a,this.macros,b):g.S(Error("null or undefined adService"))};
g.h.show=function(){this.Y.start();this.B.show();this.u&&this.u.show();KK(this);JK.prototype.show.call(this)};
g.h.Kq=function(){this.Z("k")};
g.h.Qo=function(){};g.v(UK,JK);g.h=UK.prototype;
g.h.init=function(a,b,c){JK.prototype.init.call(this,a,b,c);a=b&&b.preskipRenderer&&b.preskipRenderer.adPreviewRenderer||{};if(a=g.uf(a)?null:a){this.N=null!=a.durationMilliseconds&&void 0!==a.durationMilliseconds?a.durationMilliseconds:5E3;var d="countdown_next_to_thumbnail"==g.dD(this.api.T().experiments,"preskip_button_style_ads_backend")&&jE(this.api.T());this.u=new OK(this.api,this.Ua,this.layoutId,this.i,this.ib,this.j,d);this.u.init(hG("preskip-component"),a,c);PK(this.u);g.J(this,this.u);
this.u.Ca(this.element)}else b.skipOffsetMilliseconds&&(this.N=b.skipOffsetMilliseconds);b=b&&b.skippableRenderer&&b.skippableRenderer.skipButtonRenderer||{};b=g.uf(b)?null:b;null==b?g.S(Error("SkipButtonRenderer was not set in player response.")):(this.B=new TK(this.api,this.Ua,this.layoutId,this.i,this.ib,this.j,this.Y),this.B.init(hG("skip-button"),b,c),g.J(this,this.B),this.B.Ca(this.element),this.show())};
g.h.show=function(){this.I&&this.B?this.B.show():this.u&&this.u.show();KK(this);JK.prototype.show.call(this)};
g.h.Kq=function(){};
g.h.clear=function(){this.u&&this.u.clear();this.B&&this.B.clear();LK(this);JK.prototype.hide.call(this)};
g.h.hide=function(){this.u&&this.u.hide();this.B&&this.B.hide();LK(this);JK.prototype.hide.call(this)};
g.h.Qo=function(){1E3*this.j.getProgressState().current>=this.N&&wya(this,!0)};g.v(VK,rK);VK.prototype.init=function(a,b,c){rK.prototype.init.call(this,a,b,c);a=!1;null!=b.text&&(a=g.Sy(b.text),a=!g.lb(a));a?null==b.navigationEndpoint?g.Rx(Error("No visit advertiser clickthrough provided in renderer,")):"STYLE_UNKNOWN"!==b.style?g.Rx(Error("Button style was not a link-style type in renderer,")):this.show():g.Rx(Error("No visit advertiser text was present in the renderer."))};g.v(WK,ZJ);WK.prototype.init=function(a,b,c){ZJ.prototype.init.call(this,a,b,c);a=b.text;g.lb($J(a))?g.Rx(Error("SimpleAdBadgeRenderer has invalid or empty text")):(a&&a.text&&(b=a.text,this.j&&(b=this.api.T(),b=a.text+" "+(b&&b.isMobile?"\u2022":"\u00b7")),b={text:b,isTemplated:a.isTemplated},a.style&&(b.style=a.style),a=new HK(this.api,this.Ua,this.layoutId,this.i,this.ib),a.init(hG("simple-ad-badge"),b,c),a.Ca(this.element),g.J(this,a)),this.show())};
WK.prototype.clear=function(){this.hide()};g.v(XK,iG);g.v(YK,g.tx);g.h=YK.prototype;g.h.Yv=function(){return this.durationMs};
g.h.stop=function(){this.i&&this.Ke.xc(this.i)};
g.h.Rb=function(a){this.j={seekableStart:0,seekableEnd:this.durationMs/1E3,current:a.current};this.Z("h")};
g.h.getProgressState=function(){return this.j};
g.h.Sc=function(a){g.VG(a,2)&&this.Z("g")};g.v(ZK,g.tx);g.h=ZK.prototype;g.h.Yv=function(){return this.durationMs};
g.h.start=function(){this.j||(this.j=!0,this.timer.start())};
g.h.stop=function(){this.j&&(this.j=!1,this.timer.stop())};
g.h.Rb=function(){this.i+=100;var a=!1;this.i>this.durationMs&&(this.i=this.durationMs,this.timer.stop(),a=!0);this.u={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.i/1E3};this.Ua&&this.Ua.Rb(this.u.current);this.Z("h");a&&this.Z("g")};
g.h.getProgressState=function(){return this.u};g.v(bL,JK);g.h=bL.prototype;g.h.init=function(a,b,c){JK.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){qt(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.u=new HK(this.api,this.Ua,this.layoutId,this.i,this.ib);this.u.init(hG("ad-text"),a,{});this.u.Ca(this.element);g.J(this,this.u)}this.show()};
g.h.clear=function(){this.hide()};
g.h.hide=function(){LK(this);JK.prototype.hide.call(this)};
g.h.Kq=function(){this.hide()};
g.h.Qo=function(){if(null!=this.j){var a=this.j.getProgressState();if(null!=a&&null!=a.current&&this.u){a=(this.j instanceof YK?void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:a.seekableEnd:void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:this.j instanceof ZK?a.seekableEnd:this.api.getDuration(2,!1))-a.current;var b=g.$K(a);IK(this.u,{FORMATTED_AD_DURATION_REMAINING:String(b),TIME_REMAINING:String(Math.ceil(a))})}}};
g.h.show=function(){KK(this);JK.prototype.show.call(this)};g.v(cL,HK);cL.prototype.onClick=function(a){HK.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType)};g.v(hL,g.YJ);hL.prototype.Rb=function(){var a=this.j.getProgressState();this.Jc.style.width=100*gL(new dL(a.seekableStart,a.seekableEnd),a.current,0)+"%"};
hL.prototype.onStateChange=function(){g.dE(this.api.T())||(2===this.api.getPresentingPlayerType()?-1===this.i&&(this.show(),this.i=this.j.subscribe("h",this.Rb,this),this.Rb()):-1!==this.i&&(this.hide(),this.j.jg(this.i),this.i=-1))};g.v(iL,ZJ);
iL.prototype.init=function(a,b,c,d){ZJ.prototype.init.call(this,a,b,c);b.skipOrPreviewRenderer&&(a=b.skipOrPreviewRenderer,a.skipAdRenderer?(c=new UK(this.api,this.Ua,this.layoutId,this.i,this.ib,this.j,this.I),c.Ca(this.C),c.init(hG("skip-button"),a.skipAdRenderer,this.macros),g.J(this,c)):a.adPreviewRenderer&&(c=new OK(this.api,this.Ua,this.layoutId,this.i,this.ib,this.j,!1),c.Ca(this.C),c.init(hG("ad-preview"),a.adPreviewRenderer,this.macros),PK(c),g.J(this,c)));b.brandInteractionRenderer&&(a=
b.brandInteractionRenderer.brandInteractionRenderer,c=new RK(this.api,this.Ua,this.layoutId,this.i,this.ib),c.Ca(this.Y),c.init(hG("instream-user-sentiment"),a,this.macros),g.J(this,c));b.flyoutCtaRenderer&&(a=b.flyoutCtaRenderer,a.flyoutCtaRenderer&&(c=new QK(this.api,this.Ua,this.layoutId,this.i,this.ib,this.j),g.J(this,c),c.Ca(this.N),c.init(hG("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 WK(this.api,this.Ua,this.layoutId,this.i,this.ib,!0),g.J(this,c),c.Ca(this.u),c.init(hG("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 bL(this.api,this.Ua,this.layoutId,this.i,this.ib,this.j,d),g.J(this,d),d.Ca(this.u),d.init(hG("ad-duration-remaining"),a,this.macros));b.adInfoRenderer&&
(d=b.adInfoRenderer,d.adHoverTextButtonRenderer&&(a=new GK(this.api,this.Ua,this.layoutId,this.i,this.ib,this.element),g.J(this,a),a.Ca(this.u),a.init(hG("ad-info-hover-text-button"),d.adHoverTextButtonRenderer,this.macros)));b.visitAdvertiserRenderer&&(b=b.visitAdvertiserRenderer,b.buttonRenderer&&(d=yya(this)&&this.B?this.B:this.u))&&(a=new VK(this.api,this.Ua,this.layoutId,this.i,this.ib),g.J(this,a),a.Ca(d),a.init(hG("visit-advertiser"),b.buttonRenderer,this.macros));(b=this.api.T())&&!aE(b)&&
"3"==b.controlsType&&(b=new hL(this.api,this.j),b.Ca(this.ya),g.J(this,b));this.api.T().L("enable_updated_html5_player_focus_style")&&g.L(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()};
iL.prototype.clear=function(){this.hide()};g.Ia("yt.pubsub.publish",g.Vu,void 0);var uL={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var $2={},Hya=($2.WEB_UNPLUGGED="^unplugged/",$2.WEB_UNPLUGGED_ONBOARDING="^unplugged/",$2.WEB_UNPLUGGED_OPS="^unplugged/",$2.WEB_UNPLUGGED_PUBLIC="^unplugged/",$2.WEB_CREATOR="^creator/",$2.WEB_KIDS="^kids/",$2.WEB_EXPERIMENTS="^experiments/",$2.WEB_MUSIC="^music/",$2.WEB_REMIX="^music/",$2.WEB_MUSIC_EMBEDDED_PLAYER="^music/",$2.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",$2);rL.prototype.C=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?uL:c;var d={context:uJ(a.clickTrackingParams,!1,this.B)};var e=this.i(a);if(e){this.j(d,e,b);var f;b=g.oL(this.u());var k;(a=null==(f=a.commandMetadata)?void 0:null==(k=f.webCommandMetadata)?void 0:k.apiUrl)&&(b=a);f=Jya(pL(b),void 0);d={input:f,Oq:qL(f),al:d,config:Object.assign({},void 0)};d.config.Ep?d.config.Ep.identity=c:d.config.Ep={identity:c};return d}g.S(new g.Kv("Error: Failed to create Request from Command.",a))};
fa.Object.defineProperties(rL.prototype,{B:{configurable:!0,enumerable:!0,get:function(){return!1}}});g.v(sL,rL);sL.prototype.C=function(){return{input:"/getDatasyncIdsEndpoint",Oq:qL("/getDatasyncIdsEndpoint","GET"),al:{}}};
sL.prototype.u=function(){return[]};
sL.prototype.i=function(){};
sL.prototype.j=function(){};var JTa={},Kya=(JTa.GET_DATASYNC_IDS=nL(sL),JTa);var Oya=["consistency","mss","client_location","entities","store"];g.v(wL,rL);wL.prototype.u=function(){return $Sa};
wL.prototype.i=function(a){return a.subscribeEndpoint};
wL.prototype.j=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)};
fa.Object.defineProperties(wL.prototype,{B:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.v(xL,rL);xL.prototype.u=function(){return aTa};
xL.prototype.i=function(a){return a.unsubscribeEndpoint};
xL.prototype.j=function(a,b){b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params)};
fa.Object.defineProperties(xL.prototype,{B:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.v(yL,rL);yL.prototype.u=function(){return XSa};
yL.prototype.i=function(a){return a.feedbackEndpoint};
yL.prototype.j=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))};
fa.Object.defineProperties(yL.prototype,{B:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.v(zL,rL);zL.prototype.u=function(){return YSa};
zL.prototype.i=function(a){return a.modifyChannelNotificationPreferenceEndpoint};
zL.prototype.j=function(a,b){b.params&&(a.params=b.params);b.secondaryParams&&(a.secondaryParams=b.secondaryParams)};g.v(AL,rL);AL.prototype.u=function(){return ZSa};
AL.prototype.i=function(a){return a.playlistEditEndpoint};
AL.prototype.j=function(a,b){b.actions&&(a.actions=b.actions);b.params&&(a.params=b.params);b.playlistId&&(a.playlistId=b.playlistId)};g.v(BL,rL);BL.prototype.u=function(){return WSa};
BL.prototype.i=function(a){return a.webPlayerShareEntityServiceEndpoint};
BL.prototype.j=function(a,b,c){c=void 0===c?{}:c;b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);c.includeListId&&(a.includeListId=!0)};CL.prototype.fetch=function(a,b){var c=this,d,e,f;return g.B(function(k){if(1==k.i){d=new window.Request(a,b);if(g.Q("web_fetch_promise_cleanup_killswitch"))return k.return(Promise.resolve(fetch(d).then(function(l){return c.handleResponse(l)}).catch(function(l){g.Rx(l)})));
va(k,3);return g.A(k,fetch(d),5)}if(3!=k.i)return e=k.j,k.return(c.handleResponse(e));f=xa(k);g.Rx(f);return k.return(void 0)})};
CL.prototype.handleResponse=function(a){var b=a.text().then(function(c){return JSON.parse(c.replace(")]}'",""))});
a.redirected||a.ok||(b=b.then(function(c){g.Rx(new g.Kv("Error: API fetch failed",a.status,a.url,c));return Object.assign({},c,{errorMetadata:{status:a.status}})}));
return b};var DL;FL.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.Ct)f.onreadystatechange=function(p){c.Ct(f,p)};
var k;f.open(null!=(k=b.method)?k:"GET",a,!0);f.responseType="text";f.withCredentials=!0;if(b.headers){k=g.q(Object.entries(b.headers));for(var l=k.next();!l.done;l=k.next()){var m=g.q(l.value);l=m.next().value;m=m.next().value;f.setRequestHeader(l,m)}}var n;f.send(null!=(n=b.body)?n:null)})};
FL.prototype.handleResponse=function(a,b,c){c=c.replace(")]}'","");try{var d=JSON.parse(c)}catch(e){g.Rx(new g.Kv("JSON parsing failed after XHR fetch",a,b,c)),d={}}200!==b&&(g.Rx(new g.Kv("XHR API fetch failed",a,b,c)),d=Object.assign({},d,{errorMetadata:{status:b}}));return d};var Sya=[],GL=!1;HL.getInstance=function(){var a=g.Ja("ytglobal.storage_");a||(a=new HL,g.Ia("ytglobal.storage_",a,void 0));return a};
HL.prototype.estimate=function(){var a,b,c;return g.B(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(Vya()):d.return()})};
g.Ia("ytglobal.storageClass_",HL,void 0);Dv.prototype.Kj=function(a){this.handleError(a)};
Dv.prototype.logEvent=function(a,b){switch(a){case "IDB_DATA_CORRUPTED":g.Q("idb_data_corrupted_killswitch")||this.i("idbDataCorrupted",b);break;case "IDB_UNEXPECTEDLY_CLOSED":this.i("idbUnexpectedlyClosed",b);break;case "IS_SUPPORTED_COMPLETED":g.Q("idb_is_supported_completed_killswitch")||this.i("idbIsSupportedCompleted",b);break;case "QUOTA_EXCEEDED":Xya(this,b);break;case "TRANSACTION_ENDED":this.u&&this.i("idbTransactionEnded",b);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":a=Object.assign({},
b,{hasWindowUnloaded:this.j}),this.i("idbTransactionAborted",a)}};g.h=Yya.prototype;
g.h.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&&(f=a.interpreterSafeScript,e=g.kg("From proto message. b/166824318"),f=f.privateDoNotAccessOrElseSafeScriptWrappedValue||"",jg(e),jg(e),e=(e=fg())?e.createScript(f):f,e=(new mg(e,lg)).toString());a.interpreterSafeUrl&&(d=a.interpreterSafeUrl,d=Tg(g.kg("From proto message. b/166824318"),d.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue||"").toString());
$ya(this,e,d,a.program,b,c)}else g.Rx(Error("Cannot initialize botguard without program"))};
g.h.isInitialized=function(){return!!this.i};
g.h.getState=function(){return this.state};
g.h.invoke=function(a){a=void 0===a?{}:a;if(this.i){if(this.i.VO)return this.i.VO({Dv:a});if(this.i.hot)return this.i.hot(void 0,void 0,a);if(this.i.invoke)return this.i.invoke(void 0,void 0,a);g.Rx(Error("VM has unknown interface"))}return null};
g.h.dispose=function(){IL(this,null);this.state=8};var KL,LL;g.JL=new Yya;KL=0;LL=[];var eza=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var a3={},KTa=(a3["api.invalidparam"]=2,a3.auth=150,a3["drm.auth"]=150,a3["heartbeat.net"]=150,a3["heartbeat.servererror"]=150,a3["heartbeat.stop"]=150,a3["html5.unsupportedads"]=5,a3["fmt.noneavailable"]=5,a3["fmt.decode"]=5,a3["fmt.unplayable"]=5,a3["html5.missingapi"]=5,a3["html5.unsupportedlive"]=5,a3["drm.unavailable"]=5,a3);g.v(SL,g.G);g.h=SL.prototype;
g.h.handleExternalCall=function(a,b,c){var d=this.C[a],e=this.J[a],f=d;if(e)if(c&&Fy(c,cTa))f=e;else if(!d)throw Error('API call from an untrusted origin: "'+c+'"');d=this.app.T();d.qk&&!this.W.has(a)&&(this.W.add(a),g.Fv("webPlayerApiCalled",{callerUrl:d.loaderUrl,methodName:a,origin:c||void 0,playerStyle:d.playerStyle||void 0}));if(f){c=!1;d=g.q(b);for(e=d.next();!e.done;e=d.next())if(String(e.value).includes("javascript:")){c=!0;break}c&&g.Rx(Error('Dangerous call to "'+a+'" with ['+b+"]."));return f.apply(this,
b)}throw Error('Unknown API method: "'+a+'".');};
g.h.isExternalMethodAvailable=function(a,b){return this.C[a]?!0:!!(this.J[a]&&b&&Fy(b,cTa))};
g.h.getBandwidthEstimate=function(){return HD(this.app.T().schedule)};
g.h.reportPlaybackIssue=function(a){a=void 0===a?"":a;var b=g.hM(this.app);b&&(a={gpu:(0,g.MV)(),d:a},b.handleError(new g.vD("feedback",a)))};
g.h.getApiInterface=function(){return this.N.slice()};
g.h.getInternalApiInterface=function(){return g.pf(this.j)};
g.h.iS=function(a,b){if("string"===typeof b){var c=function(){var d=g.Ca.apply(0,arguments);g.Ja(b).apply(window,d)};
this.I[b]=c}else c=b;this.app.fm.subscribe(a,c)};
g.h.kY=function(a,b){if("string"===typeof b){var c=this.I[b],d=this.I;b in d&&delete d[b];b=c}this.app.fm.unsubscribe(a,b)};
g.h.getPlayerState=function(){return iNa(this.app)};
g.h.cueVideoByPlayerVars=function(a,b){this.app.cueVideoByPlayerVars(a,b||this.playerType)};
g.h.loadVideoByPlayerVars=function(a,b,c,d,e){this.app.loadVideoByPlayerVars(a,c||this.playerType,b,d,e)};
g.h.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.h.seekTo=function(a,b,c){this.i&&qY(this.app,!0,this.playerType);uY(this.app,a,b,c,this.playerType)};
g.h.seekToChapterWithAnimation=function(a){this.app.seekToChapterWithAnimation(a)};
g.h.startSeekCsiAction=function(){this.app.zj().B.i=(0,g.R)()};
g.h.seekToStreamTime=function(a,b,c){this.i&&qY(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 k=g.hM(d,e),l=0;k&&k.getStreamTimeOffset()&&!k.kd()&&(l=k.getStreamTimeOffset());uY(d,a-l,b,c,e,f)};
g.h.getStreamTimeOffset=function(){var a=g.hM(this.app,1);return a?a.getStreamTimeOffset():0};
g.h.seekToLiveHead=function(a,b){var c=g.hM(this.app,this.playerType);c&&(c=c.getVideoData())&&c.isLivePlayback&&uY(this.app,Infinity,a,b,this.playerType)};
g.h.getCurrentTime=function(){return this.app.getCurrentTime(this.playerType)};
g.h.getMediaReferenceTime=function(){var a=this.app.getIngestionTime(this.playerType);return isNaN(a)?this.getCurrentTime():a};
g.h.getDuration=function(){return this.app.getDuration(this.playerType)};
g.h.getVolume=function(){return this.app.og.volume};
g.h.setVolume=function(a){pza(this,a)};
g.h.isMuted=function(){return this.app.og.muted};
g.h.mute=function(){qza(this)};
g.h.unMute=function(){rza(this)};
g.h.getPlayerMode=function(){var a={};this.app.getVideoData().C&&(a.pfp={enableIma:this.app.T().Og&&SX(this.app).allowImaMonetization,autoplay:WF(SX(this.app)),mutedAutoplay:SX(this.app).mutedAutoplay});return a};
g.h.playVideo=function(){this.i&&qY(this.app,!0,this.playerType);var a=this.app.getPresentingPlayerType();if(2===a&&!this.app.Yd()){var b=FM(this.app.tb());if(!LRa(b)){b.jl("control_play");return}if(MRa(b))return}3===a?bM(this.app.tb()).jl("control_play"):this.app.playVideo(a)};
g.h.pauseVideo=function(){var a=this.app.getPresentingPlayerType();if(2===a&&!this.app.Yd()){var b=FM(this.app.tb());if(!LRa(b)){b.jl("control_pause");return}}3===a?bM(this.app.tb()).jl("control_pause"):this.app.pauseVideo(a)};
g.h.stopVideo=function(){var a=this.app;a.X.xb&&a.Sa.Z("pageTransition");a.stopVideo()};
g.h.clearVideo=function(){};
g.h.getPlaybackRate=function(){return g.hM(this.app,1).getPlaybackRate()};
g.h.setPlaybackRate=function(a){"number"===typeof a&&this.app.setPlaybackRate(a)};
g.h.getAvailablePlaybackRates=function(){var a=this.app.T();if(a.qc){var b=a.i||a.L("web_player_admin_origin_killswitch")?a.ancestorOrigins[0]:window.location.origin;a=["https://web.archive.org/web/20220130220643/https://admin.youtube.com","https://web.archive.org/web/20220130220643/https://viacon.corp.google.com","https://web.archive.org/web/20220130220643/https://yurt.corp.google.com"].includes(b)||a.vk?hTa:gTa}else a=[1];return a};
g.h.getPlaybackQuality=function(a){return(a=g.hM(this.app,a))?a.getPlaybackQuality():"unknown"};
g.h.setPlaybackQuality=function(){};
g.h.getAvailableQualityLevels=function(){var a=g.hM(this.app,this.playerType);return a?(a=g.po(a.On(),function(b){return b.quality}),a.length&&("auto"===a[0]&&a.shift(),a=a.concat(["auto"])),a):[]};
g.h.getAvailableQualityLabels=function(){var a=g.hM(this.app,this.playerType);return a?g.po(a.On(),function(b){return b.qualityLabel}):[]};
g.h.getVideoBytesLoaded=function(){return this.getVideoLoadedFraction()};
g.h.getVideoBytesTotal=function(){return 1};
g.h.getVideoLoadedFraction=function(){return this.app.getVideoLoadedFraction()};
g.h.getVideoStartBytes=function(){return 0};
g.h.getSize=function(){var a=this.app.bb().getPlayerSize();return{width:a.width,height:a.height}};
g.h.setSize=function(){this.app.bb().resize()};
g.h.channelSubscribed=function(){this.Oa("SUBSCRIBE",SX(this.app).nj)};
g.h.channelUnsubscribed=function(){this.Oa("UNSUBSCRIBE",SX(this.app).nj)};
g.h.getStatsForNerds=function(){return this.app.getStatsForNerds()};
g.h.setScreenLayer=function(a){this.app.setScreenLayer(a)};
g.h.getCurrentPlaylistSequence=function(){return g.hM(this.app).getPlaylistSequenceForTime(this.app.getCurrentTime())};
g.h.getPlaylistSequenceForTime=function(a){return g.hM(this.app).getPlaylistSequenceForTime(a)};
g.h.shouldSendVisibilityState=function(){return!0};
g.h.updateFullerscreenEduButtonVisibility=function(a){var b=wNa(this.app);b&&(b.j=a,b.Ja())};
g.h.updateFullerscreenEduButtonSubtleModeState=function(a){var b=wNa(this.app);b&&(g.M(b.element,"ytp-fullerscreen-edu-button-subtle",a),a&&!b.B&&(b.element.setAttribute("title","Scroll for details"),g.Ue(b,g.rN(b.u.jc(),b.element)),b.B=!0))};
g.h.confirmYpcRental=function(){var a=g.hM(this.app,this.playerType);a&&a.Fe("ypc_clickwrap")};
g.h.setHomeGroupInfo=function(a){this.app.T().homeGroupInfo=a};
g.h.setConnectedRemoteApps=function(a){this.app.T().rk=a};
g.h.setLivingRoomAppMode=function(a){this.app.T().livingRoomAppMode=MD("LIVING_ROOM_APP_MODE_UNSPECIFIED",a,zsa)};
g.h.setEnablePrivacyFilter=function(a){this.app.T().enablePrivacyFilter=void 0===a?!1:a};
g.h.isPictureInPictureAllowed=function(){return SX(this.app).tD};
g.h.togglePictureInPicture=function(){this.app.togglePictureInPicture()};
g.h.loadModule=function(a){"captions"===a&&(a=g.BM(this.app.tb()))&&!a.loaded&&a.load()};
g.h.unloadModule=function(a){"captions"===a&&(a=g.BM(this.app.tb()))&&a.loaded&&a.kZ()};
g.h.loadVideoById=function(a,b,c){a&&(a=this.app.loadVideoByPlayerVars(PL(a,b,c),this.playerType),this.i&&qY(this.app,a,this.playerType))};
g.h.cueVideoById=function(a,b,c){this.app.cueVideoByPlayerVars(PL(a,b,c),this.playerType)};
g.h.loadVideoByUrl=function(a,b,c){a=mza(a,b,c);a=this.app.loadVideoByPlayerVars(a,this.playerType);this.i&&qY(this.app,a,this.playerType)};
g.h.cueVideoByUrl=function(a,b,c){a=mza(a,b,c);this.app.cueVideoByPlayerVars(a,this.playerType)};
g.h.getVideoUrl=function(){var a=this.app.T();if(a.J)return"";var b=SX(this.app),c=void 0;b.isLivePlayback||(c=Math.floor(this.app.getCurrentTime(1)));return a.getVideoUrl(b.videoId,this.getPlaylistId()||void 0,c)};
g.h.getDebugText=function(){return this.app.getDebugText()};
g.h.getVideoEmbedCode=function(){var a=this.app.T();return a.J?"":a.getVideoEmbedCode(SX(this.app).videoId,this.app.bb().getPlayerSize(),this.getPlaylistId()||void 0)};
g.h.addCueRange=function(a,b,c){return sY(this.app,a,b,c)};
g.h.addUtcCueRange=function(a,b,c){return nNa(this.app,a,b,c)};
g.h.removeCueRange=function(a){return oNa(this.app,a)};
g.h.loadPlaylist=function(a,b,c,d){this.app.loadPlaylist(a,b,c,d);this.i&&qY(this.app,!0,this.playerType)};
g.h.cuePlaylist=function(a,b,c,d){this.app.cuePlaylist(a,b,c,d)};
g.h.nextVideo=function(){this.app.nextVideo();this.i&&qY(this.app,!0,this.playerType)};
g.h.previousVideo=function(){this.app.previousVideo();this.i&&qY(this.app,!0,this.playerType)};
g.h.playVideoAt=function(a){this.app.playVideoAt(a);this.i&&qY(this.app,!0,this.playerType)};
g.h.setShuffle=function(a){var b=this.app.getPlaylist();b&&b.setShuffle(a)};
g.h.setLoop=function(a){var b=this.app.getPlaylist();b&&(b.loop=a)};
g.h.oT=function(){var a=this.app.getPlaylist();if(!a)return null;for(var b=[],c=0;c<a.length;c++){var d=g.nM(a,c);d&&b.push(d.videoId)}return b};
g.h.getPlaylistIndex=function(){var a=this.app.getPlaylist();return a?a.index:-1};
g.h.getPlaylistId=function(){var a=this.app.getPlaylist();return a&&a.listId?a.listId.toString():null};
g.h.setOption=function(a,b,c){if(!b)return null;var d=this.app.tb();return"captions"===a?(a=g.BM(d))&&a.tf(b,c):null};
g.h.getOption=function(a,b,c){var d=g.hM(this.app,this.playerType);return d&&d.getVideoData().isPrivate&&this.app.T().i?{}:this.setOption(a,b,c)};
g.h.getOptions=function(a){var b=this.app.tb();if("captions"===a)return(b=g.BM(b))&&b.getOptions();if(!a)return a=[],g.BM(b)&&a.push("captions"),a};
g.h.Vz=function(a){a=void 0===a?this.playerType:a;var b={};if(a=g.hM(this.app,a)){a=a.getVideoData();if(a.isPrivate)return{};b.video_id=a.videoId;b.author=a.author;b.title=a.title;if(a.j&&a.j.video){b.video_quality=a.j.video.quality;a=a.j.video;var c=[];32<a.fps&&c.push("hfr");a.isHdr()&&c.push("hdr");"bt2020"===a.primaries&&c.push("wcg");b.video_quality_features=c}}if(a=this.getPlaylistId())b.list=a;return b};
g.h.showVideoInfo=function(){XMa(this.app,!0)};
g.h.hideVideoInfo=function(){XMa(this.app,!1)};
g.h.isVideoInfoVisible=function(){return this.app.isVideoInfoVisible()};
g.h.getAdState=function(){return this.app.getAdState()};
g.h.isNotServable=function(a){if(a!==this.app.config.args.video_id)return!1;var b=(a=(a=g.hM(this.app,1))?a.getPlayerState():null)?a.getData():null;return!!(a&&b&&g.V(a,128)&&5===KTa[b.errorCode])};
g.h.getSphericalProperties=function(){var a=g.dM(this.app.tb());return a&&2!==this.playerType?a.getSphericalProperties():{}};
g.h.setSphericalProperties=function(a){if(a&&2!==this.playerType){var b=g.dM(this.app.tb());b&&b.setSphericalProperties(a,!0)}};
g.h.supportsGaplessAudio=function(){return this.app.T().supportsGaplessAudio()};
g.h.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;this.app.enqueueVideoByPlayerVars(a,b,c,void 0===d?"":d)};
g.h.clearQueue=function(){this.app.clearQueue()};
g.h.destroy=function(){this.app.dispose()};
g.h.sendAbandonmentPing=function(){var a=g.hM(this.app);a&&a.sendAbandonmentPing()};
g.h.downloadVideo=function(a,b){return this.app.downloadVideo(a,b)};
g.h.pauseVideoDownload=function(a){this.app.pauseVideoDownload(a)};
g.h.resumeVideoDownload=function(a){var b=this;return g.B(function(c){return c.return(b.app.resumeVideoDownload(a))})};
g.h.refreshAllVideos=function(a){return this.app.refreshAllVideos(a)};
g.h.deleteAllVideos=function(){return this.app.deleteAllVideos()};
g.h.deleteVideos=function(a){return this.app.deleteVideos(a)};
g.h.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()};
g.h.setAutonavState=function(a){tNa(this.app,a)};
g.h.setAutonav=function(a){this.setAutonavState(a?2:1)};
g.h.setLoopRange=function(a){this.app.setLoopRange(a)};
g.h.getLoopRange=function(){return this.app.getLoopRange()};
g.h.setImmersivePreview=function(a){this.app.setImmersivePreview(a)};
g.h.hasSupportedAudio51Tracks=function(){var a;return!(null==(a=g.hM(this.app,this.playerType))||!a.hasSupportedAudio51Tracks())};
g.h.setUserAudio51Preference=function(a){var b=g.hM(this.app,this.playerType);b&&b.setUserAudio51Preference(a)};
g.h.getUserAudio51Preference=function(){var a,b;return null!=(b=null==(a=g.hM(this.app,this.playerType))?void 0:a.getUserAudio51Preference())?b:1};
g.h.setIsExternalPlaylist=function(a){this.app.setIsExternalPlaylist(a)};
g.h.getAppState=function(){return this.app.getAppState()};
g.h.addInfoCardXml=function(a,b,c){this.app.T().W.add(a,{Zy:b,ey:c})};
g.h.updateLastActiveTime=function(){Ku()};
g.h.setBlackout=function(a){this.app.setBlackout(a)};
g.h.setAccountLinkState=function(a){this.app.setAccountLinkState(a)};
g.h.updateAccountLinkingConfig=function(a){this.app.updateAccountLinkingConfig(a)};
g.h.setUserEngagement=function(a){this.app.T().Ui!==a&&(this.app.T().Ui=a,(a=g.hM(this.app,this.playerType))&&DX(a))};
g.h.updateSubtitlesUserSettings=function(a,b){b=void 0===b?!0:b;g.BM(this.app.tb()).CP(a,b)};
g.h.getCaptionWindowContainerId=function(){var a=g.BM(this.app.tb());return a?a.getCaptionWindowContainerId():""};
g.h.toggleSubtitlesOn=function(){var a=g.BM(this.app.tb());a&&a.kP()};
g.h.getPresentingPlayerType=function(){var a=this.app.getPresentingPlayerType(!0);2===a&&this.app.Yd()&&(a=1);return a};
g.h.getPlayerResponse=function(){var a=g.hM(this.app,this.playerType);return a?a.getVideoData().getPlayerResponse():null};
g.h.getStoryboardFrame=function(a,b){var c=this.app.fh();if(!c)return null;b=c.levels[b];return b?(a=g.jF(b,a))?{column:a.column,columns:a.columns,height:a.yq,row:a.row,rows:a.rows,url:a.url,width:a.Qw}:null:null};
g.h.getStoryboardFrameIndex=function(a,b){var c=this.app.fh();if(!c)return-1;b=c.levels[b];if(!b)return-1;a-=this.kd();return b.wy(a)};
g.h.getStoryboardLevel=function(a){var b=this.app.fh();return b?(b=b.levels[a])?{index:a,intervalMs:b.i,maxFrameIndex:b.jp(),minFrameIndex:b.FC()}:null:null};
g.h.getNumberOfStoryboardLevels=function(){var a=this.app.fh();return a?a.levels.length:0};
g.h.bT=function(){return this.getAudioTrack()};
g.h.getAudioTrack=function(){var a=g.hM(this.app,this.playerType);return a?a.getAudioTrack():this.app.getVideoData().sj};
g.h.setAudioTrack=function(a){3===this.getPresentingPlayerType()&&bM(this.app.tb()).jl("control_set_audio_track",a);var b=g.hM(this.app,this.playerType);if(b&&!b.isDisposed()&&!g.V(b.playerState,128)){var c;if(null==(c=b.videoData.B)?0:c.i)b.Va.setAudioTrack(a);else{var d;c=null==(d=b.oa)?void 0:d.audioTracks();var e;if(b.L("html5_native_audio_track_switching")&&(null==(e=b.videoData.j)?0:pC(e))&&c&&1<c.length){a:{for(d=0;d<c.length;++d)if(e=c[d],e.label===a.Fc.getName()){if(e.enabled){c=!1;break a}c=
e.enabled=!0;break a}c=void 0}c&&b.Ba("hlsaudio",{id:a.id})}else{a:if(c=b.videoData,c.I&&!pC(c.I)||a==c.vk||!c.Hb||0>=c.Hb.length)c=!1;else{d=g.q(c.Hb);for(e=d.next();!e.done;e=d.next()){e=e.value;if(!(e instanceof IE)){c=!1;break a}var f=a.Fc.getId();e.u&&(Jsa(e.u,f),e.j=null)}c.vk=a;c=!0}c&&tX(b)&&(b.Z("internalaudioformatchange",b.videoData,!0),b.Ba("hlsaudio",{id:a.id}))}}}};
g.h.cT=function(){return this.getAvailableAudioTracks()};
g.h.getAvailableAudioTracks=function(){return g.hM(this.app,this.playerType).getAvailableAudioTracks()};
g.h.getMaxPlaybackQuality=function(){var a=g.hM(this.app,this.playerType);return a&&a.getVideoData().j?Oz(a.Ne?xJa(a.Cg,a.Ne,a.Ps()):pF):"unknown"};
g.h.getUserPlaybackQualityPreference=function(){var a=g.hM(this.app,this.playerType);return a?a.getUserPlaybackQualityPreference():"auto"};
g.h.getSubtitlesUserSettings=function(){var a=g.BM(this.app.tb());return a?a.qT():null};
g.h.resetSubtitlesUserSettings=function(){g.BM(this.app.tb()).qY()};
g.h.setMinimized=function(a){this.app.setMinimized(a)};
g.h.setInlinePreview=function(a){this.app.setInlinePreview(a)};
g.h.setGlobalCrop=function(a){this.app.bb().setGlobalCrop(a)};
g.h.getVisibilityState=function(){var a=this.Se();return this.app.getVisibilityState(this.yf(),this.isFullscreen()||aE(this.app.T()),a,this.isInline(),this.app.jt(),this.app.Zs())};
g.h.isMutedByMutedAutoplay=function(){return this.app.Rw};
g.h.isInline=function(){return this.app.isInline()};
g.h.setInternalSize=function(a,b){this.app.bb().setInternalSize(new g.dh(a,b))};
g.h.kd=function(){var a=g.hM(this.app,void 0);return a?a.kd():0};
g.h.Se=function(){return this.app.Se()};
g.h.yf=function(){var a=g.hM(this.app,this.playerType);return!!a&&a.yf()};
g.h.isFullscreen=function(){return this.app.isFullscreen()};
g.h.setSafetyMode=function(a){this.app.T().enableSafetyMode=a};
g.h.canPlayType=function(a){return this.app.canPlayType(a)};
g.h.updatePlaylist=function(a){if(a){var b=this.getPlaylistId(),c=!1;if(b&&b!==a.list)if(this.L("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.nM(b).videoId||(a.index=b.index)):eY(this.app,{list:a.list,index:a.index,playlist_length:d.length});pM(this.app.getPlaylist(),a);this.Oa("onPlaylistUpdate")}else this.app.updatePlaylist()};
g.h.updateVideoData=function(a,b){var c=g.hM(this.app,this.playerType||1);c&&g.tF(c.getVideoData(),a,b)};
g.h.updateEnvironmentData=function(a){iE(this.app.T(),a,!1)};
g.h.sendVideoStatsEngageEvent=function(a){this.app.sendVideoStatsEngageEvent(a,this.playerType)};
g.h.setCardsVisible=function(a,b,c){var d=g.IM(this.app.tb());d&&d.Gh()&&d.setCardsVisible(a,b,c)};
g.h.productsInVideoVisibilityUpdated=function(a){this.Z("changeProductsInVideoVisibility",a)};
g.h.setInline=function(a){this.app.setInline(a)};
g.h.isAtLiveHead=function(a,b){return this.app.isAtLiveHead(a,void 0===b?!0:b)};
g.h.getVideoAspectRatio=function(){return this.app.bb().getVideoAspectRatio()};
g.h.getPreferredQuality=function(){var a=g.hM(this.app);return a?a.getPreferredQuality():"unknown"};
g.h.setPlaybackQualityRange=function(a,b){var c=g.hM(this.app,this.playerType);c&&(a=Lz(a,b||a,!0,"m"),PEa(c,a,!0))};
g.h.onAdUxClicked=function(a,b){this.Z("aduxclicked",a,b)};
g.h.showAirplayPicker=function(){this.app.showAirplayPicker()};
g.h.addBgVersionChangeCallback=function(a){this.app.addBgVersionChangeCallback(a)};
g.h.Z=function(a){var b=g.Ca.apply(1,arguments);this.app.T().u&&("videodatachange"===a||"resize"===a||"cardstatechange"===a)&&this.app.fm.Z.apply(this.app.fm,[a].concat(g.u(b)));this.app.Mm.Z.apply(this.app.Mm,[a].concat(g.u(b)))};
g.h.Oa=function(a){var b=g.Ca.apply(1,arguments);this.app.fm.Z.apply(this.app.fm,[a].concat(g.u(b)));this.app.Mm.Z.apply(this.app.Mm,[a].concat(g.u(b)))};
g.h.getFeedbackProductData=function(){return this.app.getFeedbackProductData()};
g.h.logImaAdEvent=function(a,b){if(this.app.T().Og&&SX(this.app).allowImaMonetization){var c=this.app.T().loaderUrl.match(uj);g.Fv("embedsAdEvent",{adSource:"EMBEDS_AD_SOURCE_IMA",breakType:b,embedUrl:sj(c[1],c[2],c[3],c[4]),eventType:a})}};
g.h.L=function(a){return this.app.T().L(a)};
g.h.ma=function(){};
g.h.ra=function(){if(this.element){var a=this.element,b;for(b in this.j)this.j.hasOwnProperty(b)&&(a[b]=null);this.element=null}this.B={};this.I={};g.G.prototype.ra.call(this)};g.v(YL,SL);g.h=YL.prototype;g.h.addCueRange=function(a,b,c,d,e){return sY(this.app,a,b,c,d,e)};
g.h.getPlayerState=function(a){return iNa(this.app,a)};
g.h.nextVideo=function(a,b){this.app.nextVideo(a,b)};
g.h.previousVideo=function(a){this.app.previousVideo(a)};
g.h.seekBy=function(a,b,c){uY(this.app,this.app.getCurrentTime()+a,b,c,this.playerType)};
g.h.seekTo=function(a,b,c,d){uY(this.app,a,b,c,d||this.playerType)};
g.h.getStoryboardFormat=function(){return this.app.getStoryboardFormat()};
g.h.Vz=function(a){a=void 0===a?this.playerType:a;var b=SL.prototype.Vz.call(this,a)||{};if(a=g.hM(this.app,a)){a=a.getVideoData();b.backgroundable=a.backgroundable;b.eventId=a.eventId;b.cpn=a.clientPlaybackNonce;b.hasProgressBarBoundaries=a.hasProgressBarBoundaries();b.isLive=a.isLivePlayback;b.isPremiere=a.isPremiere;b.isWindowedLive=a.Zg;b.isManifestless=xF(a);b.allowLiveDvr=a.allowLiveDvr;b.isListed=a.isListed;b.itct=a.Ya;var c;var d=a.hasProgressBarBoundaries()&&(null==(c=a.progressBarStartPosition)?
0:c.utcTimeMillis)?lh(a.progressBarStartPosition.utcTimeMillis):null;b.progressBarStartPositionUtcTimeMillis=d;var e;c=a.hasProgressBarBoundaries()&&(null==(e=a.progressBarEndPosition)?0:e.utcTimeMillis)?lh(a.progressBarEndPosition.utcTimeMillis):null;b.progressBarEndPositionUtcTimeMillis=c;b.ypcOriginalItct=a.TP;b.ypcPreview=a.ypcPreview;b.paidContentOverlayText=yua(a);b.paidContentOverlayDurationMs=IF(a);null!=a.liveUtcStartSeconds&&(b.liveUtcStartSeconds=a.liveUtcStartSeconds);a.i&&Qz(a.i)&&(b.usingLocalMedia=
"true");AF(a)&&(b.isEncrypted=!0);if(a.B)for(e=g.q(a.B.videoInfos),c=e.next();!c.done;c=e.next())if(d=void 0,null==(d=c.value.video)?0:d.isHdr()){b.isHdr=!0;break}var f,k;b.isMultiChannelAudio=!!(null==(f=a.I)?0:null==(k=f.audio)?0:k.isMultiChannelAudio())}return b};
g.h.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):SL.prototype.getCurrentTime.call(this)};
g.h.getDuration=function(a,b){if(3===this.getPresentingPlayerType()){var c;return(null==(c=bM(this.app.tb()).getProgressState())?void 0:c.duration)||0}return a?this.app.getDuration(a,b):SL.prototype.getDuration.call(this)};
g.h.getProgressState=function(a){if(3===this.getPresentingPlayerType())return bM(this.app.tb()).getProgressState();var b=this.app.getVideoData(),c=(g.hM(this.app,a)||g.hM(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=uza(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=uza(this,f,a);break a}f=0}e=this.getCurrentTime(a);a=this.getDuration(a);var k=this.app.getIngestionTime(c),l=this.app.isAtLiveHead(c),m=this.app.Qs(),n=this.app.getMinSeekableTime(c);var p=this.app;(c=g.hM(p,c))?(c=cY(p,c),c=mY(p,qS(c),c)):c=0;return{airingStart:d,airingEnd:f,allowSeeking:this.app.lf(),clipEnd:b.clipEnd,clipStart:b.clipStart,current:e,displayedStart:-1,duration:a,ingestionTime:k,isAtLiveHead:l,loaded:m,seekableStart:n,seekableEnd:c}};
g.h.getVideoLoadedFraction=function(a){return this.app.getVideoLoadedFraction(a)};
g.h.getCurrentBroadcastId=function(){return null};
g.h.handleGlobalKeyDown=function(a,b,c,d,e,f,k){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.WL(this);l&&l.handleGlobalKeyDown(a,b,c,d,e,f,k)};
g.h.handleGlobalKeyUp=function(a,b,c,d,e,f,k){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.WL(this);l&&l.handleGlobalKeyUp(a,b,c,d,e,f,k)};
g.h.setSizeStyle=function(a,b){this.app.setSizeStyle(a,b)};
g.h.showControls=function(){var a=g.WL(this);a&&a.showControls(!0)};
g.h.hideControls=function(){var a=g.WL(this);a&&a.showControls(!1)};
g.h.getVideoContentRect=function(a){a=this.app.bb().getVideoContentRect(a);return{left:a.left,top:a.top,width:a.width,height:a.height}};
g.h.setFauxFullscreen=function(a){g.mx();this.app.aj(a?2:0)};
g.h.toggleFullscreen=function(){function a(c){g.Rx(c)}
var b=this.app.T();if(b.externalFullscreen){if(!g.wE(b))return this.isFullscreen()?ox(window.document.documentElement):lx(window.document.documentElement).catch(a)}else if(g.mx()||b.C)return this.isFullscreen()?ox(nx()):"3"!==b.controlsType&&g.mx()?lx(this.app.bb().element).catch(a):(b=this.app.ud().He())?lx(b).catch(a):Promise.reject(Error("Media element missing"));this.Oa("onFullscreenToggled",this.isFullscreen());return Promise.resolve(void 0)};
g.h.cancelPlayback=function(){var a=FM(this.app.tb());a&&a.created&&a.destroy();(a=g.hM(this.app))&&a.stopVideo();(a=this.app.tb().Ld.get("endscreen"))&&a.cU()&&g.aM(this.app.Sa,!0)};
g.h.stopVideo=function(){var a=this.app.T();!a.L("disable_new_pause_state3")&&rE(a)&&"blazer"!==a.playerStyle?this.cancelPlayback():SL.prototype.stopVideo.call(this)};
g.h.getVideoStats=function(){return g.hM(this.app,this.playerType).Kb(!0)};
g.h.toggleSubtitles=function(){var a=g.BM(this.app.tb());a&&a.ZY()};
g.h.getDebugText=function(a){return this.app.getDebugText(a)};
g.h.setSphericalProperties=function(a){if(a){var b=g.dM(this.app.tb());b&&b.setSphericalProperties(a,!0)}};
g.h.getSphericalProperties=function(){var a=g.dM(this.app.tb());return a?a.getSphericalProperties():{}};
g.h.setVolume=function(a,b){pza(this,a,b)};
g.h.mute=function(a){qza(this,a)};
g.h.unMute=function(a){rza(this,a)};
g.h.mutedAutoplay=function(){this.L("embeds_enable_muted_autoplay")&&this.app.mutedAutoplay()};
g.h.loadModule=function(a){if("annotations_module"===a){var b=g.IM(this.app.tb());b&&!b.loaded&&b.load()}SL.prototype.loadModule.call(this,a)};
g.h.unloadModule=function(a){if("annotations_module"===a){var b=g.IM(this.app.tb());b&&b.loaded&&b.unload()}SL.prototype.unloadModule.call(this,a)};
g.h.setOption=function(a,b,c){if(!b)return null;var d=this.app.tb();switch(a){case "ad":return(a=FM(d))&&a.tf&&a.tf(b,c);case "kids":return(a=GM(d))&&a.tf(b,c);case "remote":return(a=bM(d))&&a.tf(b,c);case "unplugged":return(a=g.HM(d))&&a.tf(b,c);case "annotations_module":return(a=g.IM(d))&&a.tf(b,c);case "creatorendscreen":return(a=JM(d))&&a.tf(b,c)}return SL.prototype.setOption.call(this,a,b,c)};
g.h.getOptions=function(a){var b=this.app.tb();switch(a){case "ad":return(b=FM(b))&&b.getOptions&&b.getOptions();case "remote":return(b=bM(b))&&b.getOptions();case "annotations_module":return(b=g.IM(b))&&b.getOptions();case "creatorendscreen":return(b=JM(b))&&b.getOptions();case "unplugged":return(b=g.HM(b))&&b.getOptions();case "kids":return(b=GM(b))&&b.getOptions()}if(!a){a=SL.prototype.getOptions.call(this);if(!a)return a;FM(b)&&a.push("ad");bM(b)&&a.push("remote");g.IM(b)&&a.push("annotations_module");
JM(b)&&a.push("creatorendscreen");g.HM(b)&&a.push("unplugged");GM(b)&&a.push("kids");return a}return SL.prototype.getOptions.call(this,a)};
g.h.getPlayerSize=function(){var a=this.app.bb().getPlayerSize();return{width:a.width,height:a.height}};
g.h.wakeUpControls=function(){var a=g.WL(this);a&&a.Al()};
g.h.setCenterCrop=function(a){this.app.bb().setCenterCrop(a)};
g.h.getLoopVideo=function(){return this.app.getLoopVideo()};
g.h.setLoopVideo=function(a){this.app.setLoopVideo(a)};
var sza="BASE_URL BASE_YT_URL adformat 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(" "),
tza="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.ZL,YL);g.h=g.ZL.prototype;g.h.fk=function(a,b,c,d,e,f){return this.app.fk(a,b,c,d,e,f)};
g.h.Uv=function(){return this.app.Uv()};
g.h.Vp=ba(3);g.h.tb=function(){return this.app.tb()};
g.h.qe=function(){var a=this.tb().Ld.get("endscreen");return!!a&&a.qe()};
g.h.getRootNode=function(){return this.bb().element};
g.h.T=function(){return this.app.T()};
g.h.Rs=ba(5);g.h.im=function(a){return this.app.im(a)};
g.h.Vn=function(){return this.settingsMenu};
g.h.mw=function(){return this.HC};
g.h.zb=function(a){return this.app.zb(a)};
g.h.bb=function(){return this.app.bb()};
g.h.getPlaylist=function(){return this.app.getPlaylist()};
g.h.getVideoData=function(a){var b=g.hM(this.app,a);if(!b)return null;b=b.getVideoData();var c;if(b.enableServerStitchedDai&&2===a){a=this.app;if(null==(b=a.Uc))b=void 0;else{var d=a.getCurrentTime();b=null==(c=HS(b,1E3*d))?void 0:c.videoData}c=b||a.getVideoData()}else c=b;return c};
g.h.fh=function(a){return this.app.fh(a)};
g.h.isWidescreen=function(){return this.app.isWidescreen()};
g.h.isHdr=function(){var a=g.hM(this.app);return a?a.isHdr():!1};
g.h.Hw=function(){return this.app.Hw()};
g.h.Vt=function(a){this.app.Vt(a)};
g.h.Nf=function(a,b,c,d,e){this.app.Ve(a,b,c,d,e)};
g.h.yl=ba(9);g.h.playVideo=function(a){try{if(3===this.getPresentingPlayerType()){bM(this.app.tb()).jl("control_play");return}if(2===this.getPresentingPlayerType()){var b=FM(this.app.tb());if(b&&(b.xo()||MRa(b)))return}}catch(c){g.S(c)}this.app.playVideo(a)};
g.h.stopVideo=function(a){g.hM(this.app,a).stopVideo()};
g.h.Nm=function(a){g.hM(this.app,a).Nm()};
g.h.addEventListener=function(a,b){this.app.Mm.subscribe(a,b)};
g.h.removeEventListener=function(a,b){this.app.Mm.unsubscribe(a,b)};
g.h.Z=function(a){YL.prototype.Z.call.apply(YL.prototype.Z,[this,a].concat(g.u(g.Ca.apply(1,arguments))))};
g.h.Ti=function(a){this.app.Ti(a)};
g.h.setPlaybackQuality=function(a){this.setPlaybackQualityRange(a,a)};
g.h.On=function(){var a={},b=g.hM(this.app).On();b=g.q(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a[c.quality]=c;return a};
g.h.hw=ba(11);g.h.vB=function(a){this.app.vB(a);a&&tNa(this.app,a)};
g.h.getDebugText=function(a){return this.app.getDebugText(a)};
g.h.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 k;a||d.isLivePlayback||(k=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,k,b,c)};
g.h.jw=ba(13);g.h.Rj=ba(17);g.h.vt=function(a,b){this.tb().vt(a,b)};
g.h.Gh=function(){var a=g.IM(this.tb());return!!a&&a.Gh()};
g.h.Jk=function(){var a=g.IM(this.tb());return!!a&&a.Jk()};
g.h.setCardsVisible=function(a,b,c){var d=g.IM(this.tb());d&&d.setCardsVisible(a,b,c)};
g.h.productsInVideoVisibilityUpdated=function(a){this.Z("changeProductsInVideoVisibility",a)};
g.h.St=ba(18);g.h.er=function(){var a=g.hM(this.app);a&&a.er()};
g.h.Ix=function(a){this.Oa("onVideoAreaChange");this.Oa(a?"onShowControls":"onHideControls")};
g.h.Dj=function(a,b){var c=g.WL(this);if(c)return c.Dj(a,b);a=this.app.bb().xg();return new g.qn(0,0,a.width,a.height)};
g.h.Wn=function(){return this.app.Wn()};
g.h.Gw=function(){var a=this.tb().Ld.get("heartbeat");return!!a&&a.Gw()};
g.h.lf=function(){var a=this.T();if(a.ea||a.disableSeek)return!1;a=g.hM(this.app);if(!a)return!1;var b=a.getVideoData();return!b.isValid()||g.MF(b)||2===this.getPresentingPlayerType()&&!this.app.Yd()||a.tm()&&3!==this.getPresentingPlayerType()?!1:!0};
g.h.Cw=function(){var a;return(null==(a=g.hM(this.app))?void 0:a.Cw)||!1};
g.h.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()};
g.h.Xo=function(){var a=g.hM(this.app);a&&a.Xo()};
g.h.sendVideoStatsEngageEvent=function(a,b,c){this.app.sendVideoStatsEngageEvent(a,c,b)};
g.h.Nd=function(a,b,c){this.app.ov(a,b,c)};
g.h.Mf=function(a,b){this.app.qB(a,b)};
g.h.gf=function(a,b){var c=this.app,d=g.hM(c,b);d&&(a=d.Xg.gf(a),b&&c.getPresentingPlayerType()!==b||YX(c,"cuerangesremoved",a))};
g.h.Fe=function(a,b){(b=g.hM(this.app,b))&&b.Fe(a)};
g.h.tm=function(){var a=g.hM(this.app,void 0);return a?a.tm():!0};
g.h.setPlaybackRate=function(a,b){this.app.setPlaybackRate(a,b)};
g.h.setVolume=function(a){a=g.Yg(a,0,100);UL(this.app,{volume:a,muted:this.isMuted()},!0)};
g.h.mute=function(){UL(this.app,{muted:!0,volume:this.getVolume()},!0)};
g.h.unMute=function(){UL(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},!0)};
g.h.setLoopVideo=function(a){this.app.setLoopVideo(a)};
g.h.getLoopVideo=function(){return this.app.getLoopVideo()};
g.h.ud=function(){return this.app.ud()};
g.h.zj=function(){return this.app.zj()};
g.h.eh=function(a){return this.app.eh(a)};
g.h.getBandwidthEstimate=function(){return HD(this.T().schedule)};
g.h.Bb=function(a,b,c,d){this.T().Ia&&this.app.qo.Bb(a,b,c,void 0===d?!1:d)};
g.h.Vg=function(a,b,c){this.T().Ia&&this.app.qo.Vg(a,b,void 0===c?!1:c)};
g.h.Xj=function(a,b){this.T().Ia&&this.app.qo.Xj(a,b)};
g.h.ub=function(a,b){this.T().Ia&&this.app.qo.click(a,b)};
g.h.Za=function(a,b,c){if(this.T().Ia){var d=this.app.qo;d.elements.has(a);b?d.i.add(a):d.i.delete(a);var e=g.Kx(),f=a.visualElement;d.j.has(a)?e&&f&&(b?g.cy(e,[f]):g.dy(e,[f])):b&&!d.u.has(a)&&(e&&f&&g.$x(e,f,c),d.u.add(a))}};
g.h.jo=function(a){return this.T().Ia?this.app.qo.jo(a):!1};
g.h.Nc=function(){return g.hM(this.app)};
g.h.getPresentingPlayerType=function(a){return this.app.getPresentingPlayerType(a)};
g.h.xl=function(a){this.app.xl(a)};
g.h.Av=function(a){this.app.Av(a)};
g.h.To=function(a){this.app.getPresentingPlayerType()===a&&this.app.To(a)};
g.h.Wl=function(a,b){return this.app.Wl(a,b)};
g.h.wl=function(a){this.app.wl(a)};
g.h.JF=function(){this.app.JF()};
g.h.hs=function(a,b,c,d,e,f){return this.app.hs(a,b,c,d,e,f)};
g.h.zw=function(a,b,c,d,e,f){return this.app.zw(a,b,c,d,e,f)};
g.h.No=function(a){this.app.No(a)};
g.h.Lp=function(a,b){b=void 0===b?Infinity:b;this.app.Lp(void 0===a?-1:a,b)};
g.h.pu=function(a,b,c){this.app.pu(a,b,c)};
g.h.Sn=function(){return this.app.Sn()};
g.h.pz=function(a,b,c){this.app.pz(a,b,void 0===c?0:c)};
g.h.nt=function(){return this.app.nt()};
g.h.clearQueue=function(){this.app.clearQueue()};
g.h.Yd=function(){return this.app.Yd()};
g.h.Bo=function(a,b,c){return this.app.Bo(a,b,c)};
g.h.Ba=function(a,b,c,d){c=void 0===c?!1:c;var e;null==(e=g.hM(this.app,d))||e.Ba(a,b,c)};
g.h.DB=function(){return this.app.DB()};
g.h.requestStorageAccess=function(a,b){this.app.requestStorageAccess(a,b)};
g.h.aG=function(a,b){this.Z("aduxmouseover",a,b)};
g.h.ZF=function(a,b){this.Z("aduxmouseout",a,b)};
g.h.tG=function(a,b){this.Z("muteadaccepted",a,b)};
g.h.lA=function(){return this.app.bb().lA()};
g.h.Wt=function(a){this.app.bb().Wt(a)};iM.prototype.eG=function(){this.j=(0,g.R)()};
iM.prototype.reset=function(){this.i=this.j=NaN};
iM.prototype.jG=function(a,b){if(a.clientPlaybackNonce&&!isNaN(this.i)){if(Math.random()<this.u){b=b?"pbp":"pbs";var c={startTime:this.i};!this.X.L("web_player_csi_ctt_killswitch")&&a.W&&(c.cttAuthInfo={token:a.W,videoId:a.videoId});qz("seek",c);g.rz("cpn",a.clientPlaybackNonce,"seek");isNaN(this.j)||oz("pl_ss",this.j,"seek");oz(b,(0,g.R)(),"seek")}this.reset()}};jM.prototype.reset=function(){mz(this.timerName)};
jM.prototype.tick=function(a,b){oz(a,b,this.timerName)};
jM.prototype.info=function(a,b){g.rz(a,b,this.timerName)};g.v(lM,g.tx);g.h=lM.prototype;g.h.hasNext=function(a){return this.loop||!!a||this.index+1<this.length};
g.h.Xk=function(a){return this.loop||!!a||0<=this.index-1};
g.h.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.Z("shuffle")};
g.h.Re=function(a){a=a||"hqdefault.jpg";var b=this.Y[a];if(b||this.j.J||"sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a)return b;if(this.B.length)return qE(this.j,this.B[0],a)};
g.h.onReady=function(a){this.i=a;this.loaded&&g.Gt(this.i,0)};
g.h.getPlaylistId=function(){return this.listId?this.listId.toString():null};
g.h.Wk=function(){return this.j.getVideoUrl(g.nM(this).videoId,this.getPlaylistId())};
g.h.ra=function(){this.i=null;g.Te(this.items);g.tx.prototype.ra.call(this)};var Gza={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},Hza={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"},Iza={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},Fza={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},Dza={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"},Eza={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"};var rM=new Map;g.v(g.tM,g.tx);g.h=g.tM.prototype;g.h.create=function(){};
g.h.load=function(){this.loaded=!0};
g.h.unload=function(){this.loaded=!1};
g.h.tf=function(){};
g.h.bj=function(){return!0};
g.h.ra=function(){this.loaded&&this.unload();g.tx.prototype.ra.call(this)};
g.h.Kb=function(){return{}};
g.h.getOptions=function(){return[]};g.v(g.wM,g.G);g.h=g.wM.prototype;g.h.Ao=ba(21);g.h.ut=function(){};
g.h.Wm=function(){};
g.h.bq=function(){return""};
g.h.KG=ba(22);g.h.ra=function(){this.Wm();g.G.prototype.ra.call(this)};g.v(g.xM,g.wM);g.xM.prototype.Ao=ba(20);g.xM.prototype.ut=function(a){if(this.audioTrack)for(var b=g.q(this.audioTrack.captionTracks),c=b.next();!c.done;c=b.next())g.vM(this.j,c.value);a()};
g.xM.prototype.bq=function(a,b){var c=a.url,d={fmt:b};if("srv3"===b||"3"===b||"json3"===b)g.fu()?Object.assign(d,{xorb:2,xobt:1,xovt:1}):Object.assign(d,{xorb:2,xobt:3,xovt:3});a.translationLanguage&&(d.tlang=g.bF(a));return xt(c,d)};
g.xM.prototype.Wm=function(){this.i&&this.i.abort()};g.LTa=new Map;g.v(g.zM,g.wM);g.zM.prototype.Ao=ba(19);
g.zM.prototype.ut=function(a){var b=this,c=this.u,d={type:"list",tlangs:1,v:this.videoId,vssids:1};this.WL&&(d.asrs=1);c=xt(c,d);this.Wm();this.i=g.Mt(c,{format:"RAW",onSuccess:function(e){b.i=null;if((e=e.responseXML)&&e.firstChild){for(var f=e.getElementsByTagName("track"),k=0;k<f.length;k++){var l=f[k],m=l.getAttribute("lang_code"),n=l.getAttribute("lang_translated"),p=l.getAttribute("name"),r=l.getAttribute("kind"),t=l.getAttribute("id"),w="true"===l.getAttribute("lang_default"),x="true"===l.getAttribute("cantran");
l=l.getAttribute("vss_id");g.vM(b.j,new g.ZE({languageCode:m,languageName:n,name:p,kind:r,id:t,is_servable:!0,is_translateable:x,vss_id:l,is_default:w}))}e=e.getElementsByTagName("target");f=e.length;for(k=0;k<f;k++)m={languageCode:e[k].getAttribute("lang_code"),languageName:e[k].getAttribute("lang_translated"),languageOriginal:e[k].getAttribute("lang_original"),id:e[k].getAttribute("id"),isDefault:"true"===e[k].getAttribute("lang_default")},b.C[m.languageCode]=m.languageName,b.B.push(m)}a()},
withCredentials:!0})};
g.zM.prototype.bq=function(a,b){var c=this.u;b={v:this.videoId,type:"track",lang:a.languageCode,name:a.getName(),kind:a.kind,fmt:b};a.translationLanguage&&(b.tlang=g.bF(a));return c=xt(c,b)};
g.zM.prototype.Wm=function(){this.i&&this.i.abort()};g.v(AM,g.G);g.h=AM.prototype;g.h.Mx=function(){return this.G.getVideoData().Mx()};
g.h.CB=function(){return this.G.getVideoData().CB()};
g.h.eE=function(){var a=this.Ld.get("heartbeat");DM(this,"heartbeat",!1,!0,this.eE);!a&&this.Ld.has("heartbeat")&&this.G.Z("offlineslatestatechange")};
g.h.dE=function(){DM(this,"annotations_module",!0,void 0,this.dE);var a=this.Ld.get("annotations_module");if(a)for(var b in this.j)if(this.j.hasOwnProperty(b)){var c=b;a.subscribe(c,this.j[c])}};
g.h.KK=function(){if(!this.Ld.get("ad"))try{CM(this)?DM(this,"ad",!1,!0,this.KK):this.G.Fe("ad")}catch(a){this.G.Fe("ad"),g.S(a)}};
g.h.zj=function(){return this.i};
g.h.SE=function(){var a={},b=g.BM(this);b&&Object.assign(a,b.SE());return a};
g.h.vt=function(a,b){Object.assign(this.i,a||null);Object.assign(this.kz,b||null)};
g.h.ra=function(){g.G.prototype.ra.call(this);EM(this,1,!0);for(var a=g.q(Object.entries(eAa)),b=a.next();!b.done;b=a.next()){var c=g.q(b.value);b=c.next().value;c=c.next().value;this.B.has(c)&&rM.delete(b)}this.B.clear()};
var b3={},eAa=(b3.ad="ad.js",b3.annotations_module="annotations_module.js",b3.attribution="attribution.js",b3.creatorendscreen="annotations_module.js",b3.embed="embed.js",b3.endscreen="endscreen.js",b3.heartbeat="heartbeat.js",b3.inline_preview="inline_preview.js",b3.kids="kids.js",b3.remote="remote.js",b3.miniplayer="miniplayer.js",b3.music="music.js",b3.captions="captions.js",b3.unplugged="unplugged.js",b3.ux="ux.js",b3.webgl="webgl.js",b3.ypc="ypc.js",b3.ypc_clickwrap="ypc_clickwrap.js",b3.yto=
"yto.js",b3);g.v(KM,g.Ve);KM.prototype.preventDefault=function(){g.Ve.prototype.preventDefault.call(this);this.i&&this.i.preventDefault()};
KM.prototype.stopPropagation=function(){g.Ve.prototype.stopPropagation.call(this);this.i&&this.i.stopPropagation()};g.v(g.LM,MI);g.h=g.LM.prototype;g.h.mp=function(){return!0};
g.h.isView=function(){return!1};
g.h.XG=function(){return!1};
g.h.He=function(){return this.i};
g.h.wf=function(){return this.i.src};
g.h.Cy=function(a){this.ma();var b=this.getPlaybackRate();this.i.src=a;this.setPlaybackRate(b)};
g.h.rB=function(){this.ma();this.i.removeAttribute("src")};
g.h.getPlaybackRate=function(){try{return 0<=this.i.playbackRate?this.i.playbackRate:1}catch(a){return 1}};
g.h.setPlaybackRate=function(a){this.ma();this.getPlaybackRate()!==a&&(this.i.playbackRate=a);return a};
g.h.Xp=function(){return this.i.loop};
g.h.setLoop=function(a){this.ma();this.i.loop=a};
g.h.canPlayType=function(a,b){return this.i.canPlayType(a,b)};
g.h.Fl=function(){return this.i.paused};
g.h.Ru=function(){return this.i.seeking};
g.h.fl=function(){return this.i.ended};
g.h.Nz=function(){return this.i.muted};
g.h.Tt=function(a){yC();this.ma();this.i.muted=a};
g.h.aq=function(){return this.i.played||zC([],[])};
g.h.Yf=function(){try{var a=this.i.buffered}catch(b){}return a||zC([],[])};
g.h.nw=function(){return this.i.seekable||zC([],[])};
g.h.zy=function(){var a=this.i;return a.getStartDate?a.getStartDate():null};
g.h.getCurrentTime=function(){return this.i.currentTime};
g.h.By=function(a){this.ma();this.i.currentTime=a};
g.h.getDuration=function(){return this.i.duration};
g.h.load=function(){this.ma();var a=this.i.playbackRate;try{this.i.load()}catch(b){}this.i.playbackRate=a};
g.h.pause=function(){this.ma();this.i.pause()};
g.h.play=function(){this.ma();var a=this.i.play();if(!a||!a.then)return null;a.then(void 0,function(){});
return a};
g.h.Dh=function(){return this.i.readyState};
g.h.Oz=function(){return this.i.networkState};
g.h.uj=function(){return this.i.error?this.i.error.code:null};
g.h.Be=function(){return this.i.error?this.i.error.message:""};
g.h.Ay=function(){if(window.HTMLVideoElement&&this.i instanceof window.HTMLVideoElement&&this.i.getVideoPlaybackQuality)return this.i.getVideoPlaybackQuality();if(this.i){var a=this.i,b=a.webkitDroppedFrameCount;if(a=a.webkitDecodedFrameCount)return{droppedVideoFrames:b||0,totalVideoFrames:a}}return{}};
g.h.yf=function(){return!!this.i.webkitCurrentPlaybackTargetIsWireless};
g.h.Xo=function(){return!!this.i.webkitShowPlaybackTargetPicker()};
g.h.togglePictureInPicture=function(){var a=this.i,b=window.document;wC()?this.i!==b.pictureInPictureElement?a.requestPictureInPicture():b.exitPictureInPicture():xC()&&a.webkitSetPresentationMode("picture-in-picture"===a.webkitPresentationMode?"inline":"picture-in-picture")};
g.h.Un=function(){var a=this.i;return new g.bh(a.offsetLeft,a.offsetTop)};
g.h.getSize=function(){return g.io(this.i)};
g.h.setSize=function(a){g.ho(this.i,a)};
g.h.getVolume=function(){return this.i.volume};
g.h.setVolume=function(a){yC();this.ma();this.i.volume=a};
g.h.oE=function(a){this.C[a]||(this.i.addEventListener(a,this.listener),this.C[a]=this.listener)};
g.h.setAttribute=function(a,b){this.i.setAttribute(a,b)};
g.h.removeAttribute=function(a){this.i.removeAttribute(a)};
g.h.hasAttribute=function(a){return this.i.hasAttribute(a)};
g.h.qv=ba(24);g.h.Ux=ba(26);g.h.Vx=ba(28);g.h.xs=ba(30);g.h.Pv=function(){return ox(this.i)};
g.h.pn=function(a){g.L(this.i,a)};
g.h.getStyle=function(a){return g.An(this.i,a)};
g.h.sF=function(){return g.Th(document.body,this.i)};
g.h.audioTracks=function(){var a=this.i;if("audioTracks"in a)return a.audioTracks};
g.h.ra=function(){for(var a=g.q(Object.keys(this.C)),b=a.next();!b.done;b=a.next())b=b.value,this.i.removeEventListener(b,this.C[b]);MI.prototype.ra.call(this)};
g.h.ma=function(){};g.v(NM,g.tx);g.h=NM.prototype;g.h.CU=function(a){a=Eu(a);if(!ch(a,this.B)){var b=2;this.I&&(b|=8);this.B=a;MM(this,b,!0)}};
g.h.DU=function(){this.I&&MM(this,8,!0);MM(this,2,!1)};
g.h.FA=function(a){var b=Eu(a);ch(b,this.B)||(this.B=b,(a=g.Bu(a))&&this.Yy(a)&&(MM(this,4,!0),this.i.xc(this.u),this.u=this.i.S(this.target,"mouseover",this.VF),this.J=this.i.S(this.target,"mouseout",this.VF)))};
g.h.VF=function(a){a=Du(a);a&&this.Yy(a)||(this.B=new g.bh(NaN,NaN),fAa(this))};
g.h.jU=function(){MM(this,1,!0)};
g.h.gT=function(a){a=g.Bu(a);a instanceof Element&&!(0<a.tabIndex)||MM(this,1,!0)};
g.h.QM=function(){this.I=!0;this.i.xc(this.C);this.C=this.i.S(document,"mouseup",this.EU)};
g.h.EU=function(){this.I=!1;MM(this,8,!1);this.i.xc(this.C);this.C=this.i.S(this.target,"mousedown",this.QM)};
g.h.mP=function(a){if(a=(a=a.changedTouches)&&a[0])this.xa=a.identifier,this.i.xc(this.N),this.N=this.i.S(this.target,"touchend",this.aZ,void 0,!0),MM(this,1024,!0)};
g.h.aZ=function(a){if(a=a.changedTouches)for(var b=0;b<a.length;b++){var c=a[b];if(c.identifier===this.xa){var d=c;break}}d&&(this.i.xc(this.N),this.N=this.i.S(this.target,"touchstart",this.mP,void 0,!0),MM(this,1024,!1))};
g.h.Al=function(){MM(this,2,!0)};
g.h.resize=function(){g.Uz&&fAa(this)};
g.h.toString=function(){return g.tx.prototype.toString.call(this)};g.v(g.OM,g.W);
g.OM.prototype.Ja=function(){var a=this.api.getVideoData(),b=this.api.T();if(a.C&&(a.Wa||b.pfpChazalUi))var c=b.pfpChazalUi?[{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},U:[{D:"path",K:"ytp-dni-large-play-button-bg",V:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{D:"path",V:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}]:[{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},U:[{D:"path",K:"ytp-dni-large-play-button-bg",V:{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"}},{D:"path",V:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];else b.B?(g.M(this.element,"ytp-touch-device",b.isMobile),c=[b.B?{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},U:[{D:"path",K:"ytp-large-play-button-bg",V:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{D:"path",V:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}:{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},U:[{D:"path",K:"ytp-large-play-button-bg",
V:{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"}},{D:"path",V:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]):c=[{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},U:[{D:"path",K:"ytp-large-play-button-bg",
V:{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"}},{D:"path",V:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];this.Ma("largePlayButtonChildren",c);a.C&&(a.Wa||b.pfpChazalUi)&&(a=a.Wa?a.Wa:"#1f1f1f",this.Da("ytp-dni-large-play-button-bg").setAttribute("fill",
a))};g.v(PM,g.W);g.h=PM.prototype;g.h.show=function(){var a=this;this.sb||(this.u.S(this.api,"videodatachange",function(){g.hr(a.i)}),this.u.S(this.api,"videoplayerreset",function(){g.hr(a.i)}));
g.W.prototype.show.call(this)};
g.h.hide=function(){this.u&&g.sx(this.u);g.W.prototype.hide.call(this)};
g.h.yb=function(){g.hr(this.i)};
g.h.onStateChange=function(a){var b=this.api.T();b.L("disable_new_pause_state3")&&rE(b)&&(a=a.state.isCued()&&!a.Ho.isCued()||g.cM(this.api)&&g.V(a.state,2),g.xn(this.element,"transition-delay",a?"2s":""));g.hr(this.i)};
g.h.TX=function(){g.hr(this.i)};
g.h.vQ=function(){this.j.stop();this.hide();g.hr(this.i)};
g.h.Ja=function(){var a=this.api.zb();if(3===this.api.getPresentingPlayerType()&&(a.Ic()||g.V(a,4)))var b=!0;else(b=this.api.tb().Ld.get("ypc"))&&b.XA?b=!0:(b=this.api.T(),b=g.V(a,2)&&g.$L(this.api)&&b.me?!0:!1);b?(b=!0,this.B.hide()):(this.B.show(),a.isCued()&&2!==this.api.getPresentingPlayerType()?b=!0:(b=!this.api.T().L("disable_new_pause_state3"),b=!(!g.V(a,2)||g.$L(this.api)||b&&this.api.Uv())||g.V(a,1024)?!0:!1));b?(this.j.show(),a=this.api.getVideoData(),this.pZ(this.api.getPlaylist(),a)):
(this.j.hide(),g.V(a,1)||this.j.stop())};
g.h.pZ=function(){for(var a,b=g.q(g.Ca.apply(0,arguments)),c=b.next();!c.done;c=b.next())if(c=c.value,!(!c||c instanceof qF&&!c.videoId)){a=this.api.bb().getPlayerSize();var d=g.sE(),e=a.width*d;d*=a.height;if(1280<e||720<d)if(a=c.Re("maxresdefault.jpg"))break;if(640<e||480<d)if(a=c.Re("maxresdefault.jpg"))break;if(320<e||180<d)if(a=c.Re("sddefault.jpg")||c.Re("hqdefault.jpg")||c.Re("mqdefault.jpg"))break;if(a=c.Re("default.jpg"))break}this.C.style.backgroundImage=a?"url("+a+")":""};g.v(g.VM,g.W);g.VM.prototype.resize=function(){};
g.VM.prototype.j=function(a){var b=this;kAa(this);var c=a.qE,d=this.api.T();"GENERIC_WITHOUT_LINK"!==c||d.B?"TOO_MANY_REQUESTS"===c?(d=this.api.getVideoData(),this.zd(YM(this,"TOO_MANY_REQUESTS_WITH_LINK",d.Wk(),void 0,void 0,void 0,!1))):"HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!==c||d.B?this.zd(g.WM(a.errorMessage)):this.zd(YM(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//web.archive.org/web/20220130220643/https://www.youtube.com/supported_browsers")):(a=d.hostLanguage,c="//web.archive.org/web/20220130220643/https://support.google.com/youtube/?p=player_error1",a&&(c=
g.Hj(c,{hl:a})),this.zd(YM(this,"GENERIC_WITH_LINK_AND_CPN",c,!0)),d.xb&&!d.i&&jAa(this,function(e){if(g.QM(e,b.api,!rE(b.api.T()))){e={as3:!1,html5:!0,player:!0,cpn:b.api.getVideoData().clientPlaybackNonce};var f=b.api;f.Oa("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:e});f.isFullscreen()&&f.toggleFullscreen()}}))};
var iAa=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;g.v(ZM,g.sC);ZM.prototype.eg=function(){oAa(this)};
ZM.prototype.onVideoDataChange=function(){var a=this,b=this.G.getVideoData();if(b.isValid()){var c=this.G.T(),d=[],e="";if(!c.J){var f=mAa(this);c.L("enable_web_media_session_metadata_fix")&&g.eE(c)&&f?(d=nAa(f.thumbnailDetails),f.album&&(e=g.Sy(f.album))):d=[{src:b.Re("mqdefault.jpg")||"",sizes:"320x180",type:"image/jpeg"}]}oAa(this);lAa(this);this.mediaSession.metadata=new MediaMetadata({title:b.title,artist:b.author,artwork:d,album:e});c=b=null;g.cM(this.G)&&(this.i.delete("nexttrack"),this.i.delete("previoustrack"),
b=function(){a.G.nextVideo()},c=function(){a.G.previousVideo()});
$M(this,"nexttrack",b);$M(this,"previoustrack",c)}};
ZM.prototype.ra=function(){this.mediaSession.playbackState="none";this.mediaSession.metadata=null;for(var a=g.q(this.i),b=a.next();!b.done;b=a.next())$M(this,b.value,null);g.sC.prototype.ra.call(this)};g.v(aN,g.W);g.h=aN.prototype;g.h.onClick=function(a){g.QM(a,this.G,!0);this.G.ub(this.element)};
g.h.onVideoDataChange=function(a,b){qAa(this,b);this.Hd&&rAa(this,this.Hd)};
g.h.Sc=function(a){var b=this.G.getVideoData();this.videoId!==b.videoId&&qAa(this,b);this.i&&rAa(this,a.state);this.Hd=a.state};
g.h.jd=function(){this.B.show();this.G.Z("paidcontentoverlayvisibilitychange",!0);this.G.Za(this.element,!0)};
g.h.Db=function(){this.B.hide();this.G.Z("paidcontentoverlayvisibilitychange",!1);this.G.Za(this.element,!1)};g.v(bN,g.W);bN.prototype.hide=function(){this.i.stop();this.message.style.display="none";g.W.prototype.hide.call(this)};
bN.prototype.onStateChange=function(a){sAa(a.state)?this.i.start():this.hide()};
bN.prototype.j=function(){this.message.style.display="block"};g.v(g.cN,g.YJ);g.h=g.cN.prototype;g.h.show=function(){var a=this.ag();g.YJ.prototype.show.call(this);this.ya&&(this.J.S(window,"blur",this.Db),this.J.S(document,"click",this.wQ));a||this.Z("show",!0)};
g.h.hide=function(){var a=this.ag();g.YJ.prototype.hide.call(this);tAa(this);a&&this.Z("show",!1)};
g.h.jd=function(a,b){this.j=a;this.W.show();b?(this.N||(this.N=this.J.S(this.G,"appresize",this.fK)),this.fK()):this.N&&(this.J.xc(this.N),this.N=void 0)};
g.h.fK=function(){var a=g.WL(this.G);this.j&&a.Iq(this.element,this.j)};
g.h.Db=function(){var a=this.ag();tAa(this);this.W.hide();a&&this.Z("show",!1)};
g.h.wQ=function(a){var b=Cu(a);b&&(g.Th(this.element,b)||this.j&&g.Th(this.j,b)||!g.aL(a))||this.Db()};
g.h.ag=function(){return this.sb&&4!==this.W.state};g.v(eN,g.cN);eN.prototype.onMutedAutoplayChange=function(a){this.u&&(a?(uAa(this),this.jd()):(this.i&&this.ub(),this.Db()))};
eN.prototype.eg=function(a){this.api.isMutedByMutedAutoplay()&&g.VG(a,2)&&this.Db()};
eN.prototype.onClick=function(){this.api.unMute();this.ub()};
eN.prototype.ub=function(){this.clicked||(this.clicked=!0,this.api.ub(this.element))};g.v(g.gN,g.sC);g.h=g.gN.prototype;g.h.init=function(){var a=this.api.zb();this.Yb(a);this.Xm();this.yb()};
g.h.onVideoDataChange=function(a,b){this.BF!==b.videoId&&(this.BF=b.videoId,a=this.Fd,a.va=b&&0<b.fd.length?5E3:3E3,MM(a,512,!0),this.Xm())};
g.h.wW=function(){this.onVideoDataChange("newdata",this.api.getVideoData())};
g.h.Wo=function(){var a=this.api.Gh()&&this.api.Jk();return this.jz||a||this.hF};
g.h.mj=function(){var a=!this.Wo();g.M(this.api.getRootNode(),"ytp-menu-shown",!a)};
g.h.Yy=function(a){try{if(!g.Th(this.api.getRootNode(),a))return!1}catch(b){return!1}for(;a&&!Wh(a);)a=a===this.api.getRootNode()?null:g.Sh(a);return!!a};
g.h.Pj=function(a){var b=this.api.getRootNode();g.M(b,"ytp-autohide",a);g.M(b,"ytp-autohide-active",!0);this.iK.start(a?250:100);a&&(this.PB=!1,g.pr(b,"ytp-touch-mode"));this.cE=!a;this.api.Ix(!a)};
g.h.bG=function(){var a=this.api.getRootNode();g.M(a,"ytp-autohide-active",!1)};
g.h.aX=function(){this.MH=!0};
g.h.ZW=function(a){if(this.api.T().L("player_doubletap_to_seek")||this.api.T().L("embeds_web_enable_mobile_touch_fix")&&this.api.T().C)this.MH=!1,this.NH&&this.xc(this.NH),0===this.Uw&&jN(this,a)?(this.bA(),this.mz.start(),this.NH=this.S(this.api.bb(),"touchmove",this.aX,void 0,!0)):this.mz.stop();!wAa(this)||!jN(this,a)||this.api.T().C&&this.api.T().L("embeds_web_enable_mobile_touch_fix")||fN(this);var b=this.UB.ag();if(SD&&xAa(this,a))b&&g.Fu(a);else if(this.Fd.j||hN(this,Cu(a))||this.UB.ag()||
(this.api.zb().isCued(),g.Fu(a)),this.PB=!0,g.L(this.api.getRootNode(),"ytp-touch-mode"),this.Fd.Al(),this.api.T().L("player_doubletap_to_seek")&&(b=this.api.zb(),!(!this.api.lf()||g.V(b,2)&&g.$L(this.api)||g.V(b,64)))){b=Date.now()-this.vM;this.Uw+=1;if(350>=b){this.Kv=!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.Uw-1);0<d&&d<b?(this.Mt(-1,d,c,e),this.api.seekBy(-10*
this.api.getPlaybackRate())):d>2*b&&d<3*b&&(this.Mt(1,d,c,e),this.api.seekBy(10*this.api.getPlaybackRate()));g.Fu(a)}this.vM=Date.now();this.CO.start()}};
g.h.VW=function(a){if(!xAa(this,a)){if(!wAa(this)&&jN(this,a)&&!this.mz.isActive()){if(g.wE(this.api.T())&&this.api.zb().isCued()){var b=void 0===b?{}:b;nz();gz();mz();Zy(!1);b.cttAuthInfo&&($y().cttAuthInfo=b.cttAuthInfo);ft("TIMING_AFT_KEYS",[]);b.nfa?pz({loadType:"hot"}):pz({loadType:"warm"});ft("TIMING_ACTION","");delete g.P("TIMING_INFO",{}).yt_lt;oz("_start",b.startTime,void 0);b=["pbs","pbu"];fz("").info.actionType="watch";b&&ft("TIMING_AFT_KEYS",b);ft("TIMING_ACTION","watch");b=g.P("TIMING_INFO",
{});for(var c in b)b.hasOwnProperty(c)&&g.rz(c,b[c]);c={isNavigation:!0,actionType:hz(g.P("TIMING_ACTION",void 0))};if(b=g.P("PREVIOUS_ACTION",void 0))c.previousAction=hz(b);if(b=g.P("CLIENT_PROTOCOL"))c.httpProtocol=b;if(b=g.P("CLIENT_TRANSPORT"))c.transportProtocol=b;(b=g.Kx())&&"UNDEFINED_CSN"!==b&&(c.clientScreenNonce=b);b=fpa();if(1===b||-1===b)c.isVisible=!0;b=az();if("cold"===b.yt_lt){c.loadType="cold";var d=Poa(),e=Yy();e&&(oz("srt",d.responseStart),1!==b.prerender&&oz("_start",e,void 0));
b=Woa();0<b&&oz("fpt",b);b=Poa();b.isPerformanceNavigationTiming&&pz({performanceNavigationTiming:!0},void 0);oz("nreqs",b.requestStart,void 0);oz("nress",b.responseStart,void 0);oz("nrese",b.responseEnd,void 0);0<b.redirectEnd-b.redirectStart&&(oz("nrs",b.redirectStart,void 0),oz("nre",b.redirectEnd,void 0));0<b.domainLookupEnd-b.domainLookupStart&&(oz("ndnss",b.domainLookupStart,void 0),oz("ndnse",b.domainLookupEnd,void 0));0<b.connectEnd-b.connectStart&&(oz("ntcps",b.connectStart,void 0),oz("ntcpe",
b.connectEnd,void 0));b.secureConnectionStart>=Yy()&&0<b.connectEnd-b.secureConnectionStart&&(oz("nstcps",b.secureConnectionStart,void 0),oz("ntcpe",b.connectEnd,void 0));Wy&&"getEntriesByType"in Wy&&hpa();b=[];if(document.querySelector&&Wy&&Wy.getEntriesByName)for(var f in y2)y2.hasOwnProperty(f)&&(d=y2[f],gpa(f,d)&&b.push(d));if(0<b.length)for(c.resourceInfo=[],f=g.q(b),b=f.next();!b.done;b=f.next())c.resourceInfo.push({resourceCache:b.value})}pz(c);f=az();c=cz();if("cold"===f.yt_lt||"cold"===c.loadType){b=
Vy();d=bz();d=d.gelTicks?d.gelTicks:d.gelTicks={};for(var k in b)k in d||oz(k,b[k]);k={};b=!1;d=g.q(Object.keys(f));for(e=d.next();!e.done;e=d.next())e=e.value,(e=cpa(e,f[e]))&&!Voa(cz(void 0),e)&&(py(c,e),py(k,e),b=!0);b&&pz(k)}Zy(!0);k=g.P("TIMING_ACTION",void 0);g.Ja("ytglobal.timingready_")&&k&&Dz("_start")&&Ooa()&&Uoa()}fN(this);g.Fu(a)}this.Kv&&(this.Kv=!1)}};
g.h.requestStorageAccess=function(){var a=this;this.api.requestStorageAccess(function(){g.Fv("embedsRequestStorageAccessResult",{resolved:!0});Hra(!0);gv();window.location.reload()},function(){g.Fv("embedsRequestStorageAccessResult",{resolved:!1});
a.fu()})};
g.h.bA=function(){};
g.h.Tq=function(){};
g.h.Mt=function(){};
g.h.yO=function(){};
g.h.fu=function(){var a=this.api.zb();g.V(a,2)&&g.$L(this.api)||(g.WI(a)?this.api.pauseVideo():(this.api.JF(),this.api.playVideo(),this.Cs&&document.activeElement===this.Cs.B.element&&this.api.getRootNode().focus()))};
g.h.WW=function(a){var b=this,c=this.api.getPresentingPlayerType();if(!hN(this,Cu(a)))if(a=this.api.T(),this.api.T().L("player_doubletap_to_seek")&&this.Kv)this.Kv=!1;else if(a.Wa&&3!==c)try{this.api.toggleFullscreen().catch(function(d){b.uw(d)})}catch(d){this.uw(d)}};
g.h.uw=function(a){String(a).includes("fullscreen error")?g.Rx(a):g.S(a)};
g.h.XW=function(a){yAa(this,.3,a.scale);g.Fu(a)};
g.h.YW=function(a){yAa(this,.1,a.scale)};
g.h.yb=function(){var a=this.api.bb().getPlayerSize(),b=this.api.getRootNode(),c=650<=a.width;this.Fd.resize();g.M(b,"ytp-fullscreen",this.api.isFullscreen());g.M(b,"ytp-large-width-mode",c);g.M(b,"ytp-small-mode",this.Bf());g.M(b,"ytp-tiny-mode",this.mA());g.M(b,"ytp-big-mode",this.Ye());this.Je&&this.Je.resize(a)};
g.h.eg=function(a){this.Yb(a.state);this.Xm()};
g.h.KE=function(){var a=!!this.BF&&!this.api.qe(),b=2===this.api.getPresentingPlayerType(),c=this.api.T();if(b){if(YRa&&c.L("enable_visit_advertiser_support_on_ipad_mweb"))return!1;b=FM(this.api.tb());return a&&b.rH()}return a&&(c.pj||this.api.isFullscreen()||c.kb)};
g.h.Xm=function(){var a=this.KE();this.bl!==a&&(this.bl=a,g.M(this.api.getRootNode(),"ytp-hide-info-bar",!a))};
g.h.Yb=function(a){var b=a.isCued()||this.api.tm()&&3!==this.api.getPresentingPlayerType();b!==this.isCued&&(this.isCued=b,this.PH&&this.xc(this.PH),this.PH=this.S(this.api.bb(),"touchstart",this.ZW,void 0,b));var c=a.Ic()&&!g.V(a,32)||this.api.Gw();MM(this.Fd,128,!c);c=3===this.api.getPresentingPlayerType();MM(this.Fd,256,c);c=this.api.getRootNode();if(g.V(a,2))var d=[X2.ENDED];else d=[],g.V(a,8)?d.push(X2.PLAYING):g.V(a,4)&&d.push(X2.PAUSED),g.V(a,1)&&!g.V(a,32)&&d.push(X2.BUFFERING),g.V(a,32)&&
d.push(X2.SEEKING),g.V(a,64)&&d.push(X2.UNSTARTED);g.sc(this.uD,d)||(g.qr(c,this.uD),this.uD=d,g.or(c,d));d=this.api.T();var e=g.V(a,2);g.M(c,"ytp-hide-controls",("3"===d.controlsType?!e:"1"!==d.controlsType)||b);g.M(c,"ytp-native-controls","3"===d.controlsType&&!b&&!e&&!this.hF);g.V(a,128)&&!g.WD(d)?(this.Je||(this.Je=new g.VM(this.api),g.J(this,this.Je),g.fM(this.api,this.Je.element,4)),this.Je.j(a.getData()),this.Je.show()):this.Je&&(this.Je.dispose(),this.Je=null)};
g.h.Rk=function(){return this.api.Gh()&&this.api.Jk()?(this.api.setCardsVisible(!1,!1),!0):this.api.qe()?(g.aM(this.api,!0),!0):!1};
g.h.onMutedAutoplayChange=function(a){this.hF=a;this.mj()};
g.h.Ye=function(){return!1};
g.h.Bf=function(){return!this.Ye()&&(480>this.api.getPlayerSize().width||290>this.api.getPlayerSize().height)};
g.h.mA=function(){return this.Bf()&&(240>this.api.getPlayerSize().width||140>this.api.getPlayerSize().height)};
g.h.Ei=function(){return this.PB};
g.h.Vn=function(){return null};
g.h.mw=function(){return null};
g.h.Dj=function(){var a=this.api.bb().getPlayerSize();return new g.qn(0,0,a.width,a.height)};
g.h.handleGlobalKeyDown=function(){return!1};
g.h.handleGlobalKeyUp=function(){return!1};
g.h.Iq=function(){};
g.h.showControls=function(a){void 0!==a&&this.api.bb().Ix(a)};
g.h.Al=function(){};
g.h.BL=function(){return null};g.v(kN,g.tx);g.h=kN.prototype;g.h.Yv=function(){return 1E3*this.api.getDuration(this.ek,!1)};
g.h.stop=function(){this.i&&this.Ke.xc(this.i)};
g.h.Rb=function(){var a=this.api.getProgressState(this.ek);this.j={seekableStart:a.seekableStart,seekableEnd:a.seekableEnd,current:this.api.T().L("halftime_ux_killswitch")?a.current:this.api.getCurrentTime(this.ek,!1)};this.Z("h")};
g.h.getProgressState=function(){return this.j};
g.h.Sc=function(a){g.VG(a,2)&&this.Z("g")};g.v(lN,g.W);lN.prototype.onClick=function(){this.G.Oa("BACK_CLICKED")};g.v(g.mN,g.W);g.mN.prototype.show=function(){g.W.prototype.show.call(this);g.hr(this.i)};
g.mN.prototype.hide=function(){this.j.stop();g.W.prototype.hide.call(this)};
g.mN.prototype.Tq=function(a){a?g.V(this.G.zb(),64)||nN(this,lK(),"Play"):(a=this.G.getVideoData(),a.isLivePlayback&&!a.allowLiveDvr?nN(this,cya(),"Stop live playback"):nN(this,$xa(),"Pause"))};g.v(qN,g.W);g.h=qN.prototype;g.h.jd=function(){this.G.T().L("player_new_info_card_format")&&g.nr(this.G.getRootNode(),"ytp-cards-teaser-shown")&&!g.WD(this.G.T())||(this.j.show(),g.Vu("iv-button-shown"))};
g.h.Db=function(){g.Vu("iv-button-hidden");this.j.hide()};
g.h.ag=function(){return this.sb&&4!==this.j.state};
g.h.ra=function(){this.i&&this.i();g.W.prototype.ra.call(this)};
g.h.UV=function(){g.Vu("iv-button-mouseover")};
g.h.onClicked=function(a){this.G.Gh();var b=g.nr(this.G.getRootNode(),"ytp-cards-teaser-shown");g.Vu("iv-teaser-clicked",b);a=0===a.screenX&&0===a.screenY;this.G.setCardsVisible(!this.G.Jk(),a,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.v(sN,g.W);g.h=sN.prototype;g.h.xP=function(){this.G.Gh()&&this.G.Jk()&&this.ag()&&this.Db()};
g.h.DH=function(){this.Db();g.Vu("iv-teaser-clicked",null!=this.i);this.G.setCardsVisible(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")};
g.h.xQ=function(){g.Vu("iv-teaser-mouseover");this.i&&this.i.stop()};
g.h.vX=function(a){this.G.T().L("player_new_info_card_format")&&!g.WD(this.G.T())&&this.xi.Db();this.i||!a||this.G.Jk()||this.j&&this.j.isActive()||(this.jd(a),g.Vu("iv-teaser-shown"))};
g.h.jd=function(a){this.Ma("text",a.teaserText);this.element.setAttribute("dir",g.Dr(a.teaserText));this.B.show();this.j=new g.K(function(){g.L(this.G.getRootNode(),"ytp-cards-teaser-shown");this.G.L("player_new_info_card_format")&&!g.WD(this.G.T())&&this.xi.Db();this.aI()},0,this);
this.j.start();pN(this.xi,!1);this.i=new g.K(this.Db,580+a.durationMs,this);this.i.start();this.C.push(this.Pa("mouseover",this.UI,this));this.C.push(this.Pa("mouseout",this.TI,this))};
g.h.aI=function(){if(!this.G.T().L("player_new_info_card_format")&&g.WD(this.G.T())&&this.sb){var a=this.xi.element.offsetLeft,b=g.wh("ytp-cards-button-icon"),c=this.G.isFullscreen()?54:36;if(b){var d=a+b.offsetLeft;this.element.style.marginRight=this.xi.element.offsetParent.offsetWidth-a-b.offsetLeft-c+"px";this.element.style.marginLeft=d+"px"}}};
g.h.xS=function(){g.WD(this.G.T())&&this.W.Bf()&&this.sb&&this.N.start()};
g.h.UI=function(){this.I.stop();this.i&&this.i.isActive()&&this.J.start()};
g.h.TI=function(){this.J.stop();this.i&&!this.i.isActive()&&this.I.start()};
g.h.iW=function(){this.i&&this.i.stop()};
g.h.hW=function(){this.Db()};
g.h.Ni=function(){this.Db()};
g.h.Db=function(){!this.i||this.u&&this.u.isActive()||(g.Vu("iv-teaser-hidden"),this.B.hide(),g.pr(this.G.getRootNode(),"ytp-cards-teaser-shown"),this.u=new g.K(function(){for(var a=g.q(this.C),b=a.next();!b.done;b=a.next())this.xc(b.value);this.C=[];this.i&&(this.i.dispose(),this.i=null);pN(this.xi,!0)},330,this),this.u.start())};
g.h.ag=function(){return this.sb&&4!==this.B.state};
g.h.ra=function(){var a=this.G.getRootNode();a&&g.pr(a,"ytp-cards-teaser-shown");g.Te(this.j,this.u,this.i);g.W.prototype.ra.call(this)};var c3={},tN=(c3.BUTTON="ytp-button",c3.TITLE_NOTIFICATIONS="ytp-title-notifications",c3.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",c3.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",c3.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",c3);g.v(uN,g.W);uN.prototype.onClick=function(){this.api.ub(this.element);var a=!this.i;this.Ma("label",a?"Stop getting notified about every new video":"Get notified about every new video");this.Ma("pressed",a);BAa(this,a)};g.v(g.wN,g.W);g.wN.prototype.j=function(){g.L(this.element,"ytp-sb-subscribed")};
g.wN.prototype.u=function(){g.pr(this.element,"ytp-sb-subscribed")};g.v(xN,g.W);g.h=xN.prototype;g.h.YG=function(){FAa(this);this.channel.classList.remove("ytp-title-expanded")};
g.h.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")};
g.h.uE=function(){if(DAa(this)&&!this.isExpanded()){this.Ma("flyoutUnfocusable","false");this.Ma("channelTitleFocusable","0");this.u&&this.u.stop();this.subscribeButton&&(this.subscribeButton.show(),this.api.Za(this.subscribeButton.element,!0));var a=this.api.getVideoData();this.j&&a.Li&&a.subscribed&&(this.j.show(),this.api.Za(this.j.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}};
g.h.WD=function(){this.Ma("flyoutUnfocusable","true");this.Ma("channelTitleFocusable","-1");this.u&&this.u.start()};
g.h.Ja=function(){var a=this.api.getVideoData(),b=this.api.T(),c=!1;2===this.api.getPresentingPlayerType()?c=!!a.videoId&&!!a.isListed&&!!a.author&&!!a.hc&&!!a.profilePicture:g.WD(b)&&(c=!!a.videoId&&!!a.hc&&!!a.profilePicture&&!(a.C&&b.pfpChazalUi)&&!b.fd&&!(b.C&&200>this.api.getPlayerSize().width));var d=g.DE(this.api.T())+a.hc;g.WD(this.api.T())&&(d=g.Hj(d,g.OL("emb_ch_name_ex")));var e=a.hc,f=a.profilePicture;b=g.WD(b)?a.expandedTitle:a.author;e=void 0===e?"":e;f=void 0===f?"":f;b=void 0===b?
"":b;c?(e=g.DE(this.api.T())+e,this.J!==f&&(this.i.style.backgroundImage="url("+f+")",this.J=f),this.Ma("channelLink",e),this.Ma("channelLogoLabel",g.kH("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:b})),g.L(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.pr(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.Za(this.i,c&&this.va);this.subscribeButton&&(this.subscribeButton.channelId=a.nj);this.Ma("expandedTitle",a.expandedTitle);this.Ma("channelTitleLink",d);this.Ma("expandedSubtitle",
a.expandedSubtitle)};g.v(g.yN,g.YJ);g.yN.prototype.Ff=function(a){this.Ma("label",a)};
g.yN.prototype.Ma=function(a,b){g.YJ.prototype.Ma.call(this,a,b);this.Z("size-change")};g.v(BN,g.YJ);BN.prototype.mN=function(){this.Z("size-change")};
BN.prototype.focus=function(){this.content.focus()};
BN.prototype.mV=function(){this.Z("back")};g.v(g.CN,BN);g.CN.prototype.zc=function(a,b){if(void 0===b?0:b)this.items.push(a),this.menuItems.element.appendChild(a.element);else{b=g.oc(this.items,a,HAa);if(0<=b)return;b=~b;g.lc(this.items,b,0,a);g.Qh(this.menuItems.element,a.element,b)}a.subscribe("size-change",this.sG,this);this.menuItems.Z("size-change")};
g.CN.prototype.hf=function(a){a.unsubscribe("size-change",this.sG,this);this.isDisposed()||(g.fc(this.items,a),this.menuItems.element.removeChild(a.element),this.menuItems.Z("size-change"))};
g.CN.prototype.sG=function(){this.menuItems.Z("size-change")};
g.CN.prototype.focus=function(){for(var a=0,b=0;b<this.items.length;b++)if("true"===this.items[b].element.getAttribute("aria-checked")){a=b;break}this.items[a].focus()};g.v(EN,g.yN);EN.prototype.i=function(a){g.Gu(a)||39!==g.Hu(a)||(this.element.click(),g.Fu(a))};g.v(GN,g.yN);GN.prototype.onClick=function(){this.setValue(!this.checked);this.Z("select",this.checked)};
GN.prototype.getValue=function(){return this.checked};
GN.prototype.setValue=function(a){this.checked=a;this.element.setAttribute("aria-checked",String(this.checked))};g.v(HN,g.W);g.h=HN.prototype;g.h.show=function(){g.W.prototype.show.call(this);this.element.tabIndex=0;this.element.focus();this.Ma("userInfoFocusable","0");this.Ma("userInfoFocusable2","0")};
g.h.hide=function(){g.W.prototype.hide.call(this);this.Ma("userInfoFocusable","-1");this.Ma("userInfoFocusable2","-1")};
g.h.yQ=function(a){var b=Cu(a),c=g.Th(this.element,b);a=this.i&&g.Th(this.i,b)&&g.aL(a);b&&(c||a)||this.hide()};
g.h.zQ=function(){g.mL(function(){window.location.reload()},"user_info_panel",g.oE(this.Sa.T()))};
g.h.Ja=function(){var a=this.Sa.T();a={USER_NAME:a.userDisplayName,USER_EMAIL:a.hh};this.Ma("icon",aya());this.Ma("watchingAsUsername",g.kH("Watching as $USER_NAME",a));this.Ma("watchingAsEmail",g.kH("($USER_EMAIL)",a))};g.v(IN,g.CN);g.h=IN.prototype;g.h.CV=function(){TM(this.As.element)};
g.h.PV=function(){KN(this,this.G.getDebugText(!0))&&nN(this.Ac,cK())};
g.h.QV=function(){KN(this,this.G.getVideoEmbedCode())&&nN(this.Ac,Uxa());this.G.ub(this.Aj.element);jL("EMBED",this.G.getVideoData().videoId,this.G.getPlaylistId()||"")};
g.h.RV=function(){KN(this,this.G.getVideoUrl(!0,!0))&&nN(this.Ac,hK());this.G.ub(this.getVideoUrl.element);jL("COPY_PASTE",this.G.getVideoData().videoId,this.G.getPlaylistId()||"")};
g.h.SV=function(){KN(this,this.G.getVideoUrl(!1,!0))&&nN(this.Ac,hK());this.G.ub(this.Ej.element);jL("COPY_PASTE",this.G.getVideoData().videoId,this.G.getPlaylistId()||"")};
g.h.xN=function(a){var b;null==(b=this.Ji)||b.setValue(a)};
g.h.bW=function(){this.G.setLoopVideo(this.Ji.getValue());this.qb.Db();this.G.ub(this.Ji.element)};
g.h.RW=function(a){this.G.reportPlaybackIssue();if(g.QM(a,this.G,!rE(this.G.T()))){a=this.G;var b=a.app.getFeedbackProductData();a.Oa("onFeedbackStartRequest",b);a.isFullscreen()&&a.toggleFullscreen()}this.qb.Db()};
g.h.jX=function(){this.G.showVideoInfo();this.qb.Db()};
g.h.iX=function(){this.dj&&(this.iy||(this.iy=new HN(this.G,this.dj.element),g.J(this,this.iy),g.fM(this.G,this.iy.element,4)),this.iy.show(),this.qb.Db(),this.G.ub(this.dj.element))};
g.h.onVideoDataChange=function(a,b){JAa(this,b)};
g.h.dc=function(a){g.CN.prototype.dc.call(this,a);this.G.Za(this.Aj.element,a);this.G.Za(this.getVideoUrl.element,a);this.G.Za(this.Ej.element,a);this.Ji&&this.G.Za(this.Ji.element,a);this.dj&&this.G.Za(this.dj.element,a)};g.v(g.LN,g.cN);g.h=g.LN.prototype;g.h.show=function(){g.cN.prototype.show.call(this);this.vu()};
g.h.hide=function(){g.cN.prototype.hide.call(this);1<this.i.length&&g.NN(this)};
g.h.vu=function(){LAa(this);this.sb&&(KAa(this),g.ho(this.element,this.size))};
g.h.rh=function(){var a=this.i.pop();MN(this,a,this.i[this.i.length-1],!0)};
g.h.AQ=function(a){if(!g.Gu(a))switch(g.Hu(a)){case 27:this.Db();g.Fu(a);break;case 37:1<this.i.length&&this.rh();g.Fu(a);break;case 39:g.Fu(a)}};
g.h.focus=function(){this.i.length&&this.i[this.i.length-1].focus()};
g.h.ra=function(){g.cN.prototype.ra.call(this);this.B&&this.B.dispose();this.I&&this.I.dispose()};g.v(g.ON,g.LN);g.h=g.ON.prototype;g.h.CQ=function(a){var b=Cu(a);if(!(b&&(Yh(b,"a")||Yh(b,null,"ytp-no-contextmenu",void 0))||this.sb)){var c;this.ea=(a=null==(c=a.touches)?void 0:c.item(0))?new g.bh(a.clientX,a.clientY):new g.bh(0,0);this.Y.start()}};
g.h.TN=function(){this.Y.stop()};
g.h.BX=function(){this.open(this.ea)};
g.h.show=function(){this.C||(this.C=new IN(this.G,this.xa,this,this.Ac),g.J(this,this.C),g.JN(this,this.C));this.C.xN(this.G.getLoopVideo());g.LN.prototype.show.call(this);this.G.Za(this.element,!0);this.C.dc(!0);this.element.tabIndex=-1;this.element.focus()};
g.h.hide=function(){NAa(this);g.LN.prototype.hide.call(this);this.G.Za(this.element,!1);this.C&&this.C.dc(!1)};
g.h.zV=function(a){var b=Cu(a);this.sb||b&&(Yh(b,"a")||Yh(b,null,"ytp-no-contextmenu",void 0))||(g.Fu(a),this.open(Eu(a)))};
g.h.open=function(a){OAa(this);var b=this.G.getVideoData();g.M(this.element,"ytp-dni",b.C);this.element.style.left="";this.element.style.top="";a.x++;a.y++;this.jd();var c=document.body;b=new mn(0,Infinity,Infinity,0);var d=rh(c);for(var e=d.i.body,f=d.i.documentElement,k=Hh(d.i);c=Sca(c);)if(!(g.Nc&&0==c.clientWidth||g.Ze&&0==c.clientHeight&&c==e)&&c!=e&&c!=f&&"visible"!=Cn(c,"overflow")){var l=g.co(c),m=new g.bh(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=k.scrollLeft;k=k.scrollTop;b.left=Math.max(b.left,e);b.top=Math.max(b.top,k);d=d.i;d=Gh(d.parentWindow||d.defaultView||window);b.right=Math.min(b.right,e+d.width);b.bottom=Math.min(b.bottom,k+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&&(k=a,e=b,f=5,65==(f&65)&&(k.x<d.left||k.x>=d.right)&&(f&=-2),132==(f&132)&&(k.y<d.top||k.y>=d.bottom)&&
(f&=-5),k.x<d.left&&f&1&&(k.x=d.left),f&16&&(c=k.x,k.x<d.left&&(k.x=d.left),k.x+e.width>d.right&&(e.width=Math.min(d.right-k.x,c+e.width-d.left),e.width=Math.max(e.width,0))),k.x+e.width>d.right&&f&1&&(k.x=Math.max(d.right-e.width,d.left)),k.y<d.top&&f&4&&(k.y=d.top),f&32&&(c=k.y,k.y<d.top&&(k.y=d.top),k.y+e.height>d.bottom&&(e.height=Math.min(d.bottom-k.y,c+e.height-d.top),e.height=Math.max(e.height,0))),k.y+e.height>d.bottom&&f&4&&(k.y=Math.max(d.bottom-e.height,d.top)));d=new g.qn(0,0,0,0);d.left=
a.x;d.top=a.y;d.width=b.width;d.height=b.height;g.En(this.element,new g.bh(d.left,d.top));g.sx(this.u);this.u.S(document,"contextmenu",this.JV);this.u.S(this.G,"fullscreentoggled",this.onFullscreenToggled);this.u.S(this.G,"pageTransition",this.BQ)};
g.h.JV=function(a){if(!g.Gu(a)){var b=Cu(a);g.Th(this.element,b)||this.Db();this.G.T().disableNativeContextMenu&&g.Fu(a)}};
g.h.onFullscreenToggled=function(){this.Db();OAa(this)};
g.h.BQ=function(){this.Db()};g.v(g.PN,g.W);g.PN.prototype.onClick=function(){var a=this,b,c,d,e;return g.B(function(f){if(1==f.i)return b=a.api.T(),c=a.api.getVideoData(),d=a.api.getPlaylistId(),e=b.getVideoUrl(c.videoId,d,void 0,!0),g.A(f,QAa(a,e),2);f.j&&PAa(a);a.api.ub(a.element);g.ua(f)})};
g.PN.prototype.Ja=function(){var a=this.api.T(),b=this.api.getVideoData();this.Ma("icon",{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{D:"path",Fb:!0,K:"ytp-svg-fill",V:{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.Ma("title-attr","Copy link");var c=this.api.bb().getPlayerSize().width;this.visible=
!!b.videoId&&c>=this.j&&b.Ak&&!(b.C&&a.pfpChazalUi);g.M(this.element,"ytp-copylink-button-visible",this.visible);g.XJ(this,this.visible);RN(this.tooltip);this.api.Za(this.element,this.visible&&this.va)};
g.PN.prototype.dc=function(a){g.W.prototype.dc.call(this,a);this.api.Za(this.element,this.visible&&a)};
g.PN.prototype.ra=function(){g.W.prototype.ra.call(this);g.pr(this.element,"ytp-copylink-button-visible")};g.v(SN,g.W);g.h=SN.prototype;g.h.show=function(){g.W.prototype.show.call(this);g.hr(this.i)};
g.h.hide=function(){this.j.stop();g.pr(this.element,"ytp-chapter-seek");g.pr(this.element,"ytp-time-seeking");g.W.prototype.hide.call(this)};
g.h.Mt=function(a,b,c,d){this.Nt(a,d)};
g.h.Nt=function(a,b){g.jr(this.i);this.j.start();this.element.setAttribute("data-side",-1===a?"back":"forward");g.pr(this.element,"ytp-chapter-seek");this.Ma("chapterSeekText","");a=g.kH("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:b.toString()});this.Ma("seekTime",a)};
g.h.sB=function(a,b){g.jr(this.i);this.j.start();this.element.setAttribute("data-side",-1===a?"back":"forward");g.L(this.element,"ytp-chapter-seek");this.Ma("chapterSeekText",b);this.Ma("seekTime","")};g.v(TN,g.W);g.h=TN.prototype;g.h.show=function(){g.W.prototype.show.call(this);g.hr(this.j)};
g.h.hide=function(){this.u.stop();g.pr(this.element,"ytp-chapter-seek");g.pr(this.element,"ytp-time-seeking");g.W.prototype.hide.call(this)};
g.h.Mt=function(a,b,c,d){var e=-1===a?this.C:this.B;e&&this.G.ub(e);g.jr(this.j);this.u.start();this.element.setAttribute("data-side",-1===a?"back":"forward");var f=3*this.G.bb().getPlayerSize().height;e=this.G.bb().getPlayerSize();e=e.width/3-3*e.height;this.i.style.width=f+"px";this.i.style.height=f+"px";1===a?(this.i.style.left="",this.i.style.right=e+"px"):-1===a&&(this.i.style.right="",this.i.style.left=e+"px");var k=2.5*f;f=k/2;var l=this.Da("ytp-doubletap-ripple");l.style.width=k+"px";l.style.height=
k+"px";1===a?(a=this.G.bb().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");RAa(this,d)};
g.h.Nt=function(a,b){var c=this.G.bb().getPlayerSize();g.jr(this.j);this.u.start();this.element.setAttribute("data-side",-1===a?"back":"forward");g.L(this.element,"ytp-time-seeking");this.i.style.width="110px";this.i.style.height="110px";1===a?(this.i.style.right="",this.i.style.left=.8*c.width-30+"px"):-1===a&&(this.i.style.right="",this.i.style.left=.1*c.width-15+"px");this.i.style.top=.5*c.height+15+"px";RAa(this,b)};
g.h.sB=function(a,b){g.jr(this.j);this.u.start();this.element.setAttribute("data-side",-1===a?"back":"forward");this.i.style.width="0";this.i.style.height="0";g.L(this.element,"ytp-chapter-seek");this.Ma("seekText",b);this.Ma("seekTime","")};var MTa={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(MTa).reduce(function(a,b){a[MTa[b]]=b;return a},{});
var NTa={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(NTa).reduce(function(a,b){a[NTa[b]]=b;return a},{});
var OTa={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(OTa).reduce(function(a,b){a[OTa[b]]=b;return a},{});var d3,PTa;d3=[{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"}];PTa=[{option:0,text:UN(0)},{option:.25,text:UN(.25)},{option:.5,text:UN(.5)},{option:.75,text:UN(.75)},{option:1,text:UN(1)}];
g.YN=[{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:d3},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:UN(.5)},{option:-1,text:UN(.75)},{option:0,text:UN(1)},{option:1,text:UN(1.5)},{option:2,text:UN(2)},
{option:3,text:UN(3)},{option:4,text:UN(4)}]},{option:"background",text:"Background color",options:d3},{option:"backgroundOpacity",text:"Background opacity",options:PTa},{option:"windowColor",text:"Window color",options:d3},{option:"windowOpacity",text:"Window opacity",options:PTa},{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:UN(.25)},{option:.5,text:UN(.5)},{option:.75,text:UN(.75)},{option:1,text:UN(1)}]}];g.v(g.XN,g.sC);g.h=g.XN.prototype;
g.h.LL=function(a){var b=!1,c=g.Hu(a),d=Cu(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey,f=!1,k=!1,l=this.api.T();g.Gu(a)?(e=!1,k=!0):l.Ng&&(e=!1);if(9===c)b=!0;else{if(d)switch(c){case 32:case 13:if("BUTTON"===d.tagName||"A"===d.tagName||"INPUT"===d.tagName)b=!0,e=!1;else if(e){var m=d.getAttribute("role");!m||"option"!==m&&"button"!==m&&0!==m.indexOf("menuitem")||(b=!0,d.click(),f=!0)}break;case 37:case 39:case 36:case 35:b="slider"===d.getAttribute("role");break;case 38:case 40:m=d.getAttribute("role"),
d=38===c?d.previousSibling:d.nextSibling,"slider"===m?b=!0:e&&("option"===m?(d&&"option"===d.getAttribute("role")&&d.focus(),f=b=!0):m&&0===m.indexOf("menuitem")&&(d&&d.hasAttribute("role")&&0===d.getAttribute("role").indexOf("menuitem")&&d.focus(),f=b=!0))}if(e&&!f)switch(c){case 38:f=Math.min(this.api.getVolume()+5,100);oN(this.Ac,f,!1);this.api.setVolume(f);k=f=!0;break;case 40:f=Math.max(this.api.getVolume()-5,0);oN(this.Ac,f,!0);this.api.setVolume(f);k=f=!0;break;case 36:this.api.lf()&&(this.api.startSeekCsiAction(),
this.api.seekTo(0),k=f=!0);break;case 35:this.api.lf()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity),k=f=!0)}}b&&WN(this,!0);(b||k)&&this.Fd.Al();(f||e&&this.handleGlobalKeyDown(c,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code))&&g.Fu(a);l.u&&(a={keyCode:g.Hu(a),altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:g.Gu(a),fullscreen:this.api.isFullscreen()},this.api.Oa("onKeyPress",a))};
g.h.ML=function(a){this.handleGlobalKeyUp(g.Hu(a),a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code)};
g.h.handleGlobalKeyUp=function(a){var b=!1,c=g.dM(this.api.tb());c&&(c=c.Yo)&&c.sb&&(c.HL(a),b=!0);9===a&&(WN(this,!0),b=!0);return b};
g.h.handleGlobalKeyDown=function(a,b,c,d,e,f){var k=!1;e=this.api.T();if(e.Ng)return k;var l=g.dM(this.api.tb());if(l&&(l=l.Yo)&&l.sb)switch(a){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:k=l.GL(a)}e.B||k||(k=f||String.fromCharCode(a).toLowerCase(),this.j+=k,0==="awesome".indexOf(this.j)?(k=!0,7===this.j.length&&rga(this.api.getRootNode(),"ytp-color-party")):(this.j=k,k=0==="awesome".indexOf(this.j)));if(!k){f=(f=this.api.getVideoData())?f.Nl:[];l=oT?d:c;switch(a){case 80:b&&
!e.ea&&(nN(this.Ac,bya(),"Previous"),this.api.previousVideo(),k=!0);break;case 78:b&&!e.ea&&(nN(this.Ac,iK(),"Next"),this.api.nextVideo(),k=!0);break;case 74:this.api.lf()&&(this.api.startSeekCsiAction(),this.i?this.i.Nt(-1,10):nN(this.Ac,{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{D:"path",Fb:!0,K:"ytp-svg-fill",V:{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()),k=!0);break;case 76:this.api.lf()&&(this.api.startSeekCsiAction(),this.i?this.i.Nt(1,10):nN(this.Ac,{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{D:"path",Fb:!0,K:"ytp-svg-fill",V:{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()),k=!0);break;case 37:this.api.lf()&&(this.api.startSeekCsiAction(),l?(l=TAa(f,1E3*this.api.getCurrentTime()),-1!==l&&null!=this.i&&(this.i.sB(-1,f[l].title),this.api.seekTo(f[l].startTime/1E3),k=!0)):(this.i?this.i.Nt(-1,5):nN(this.Ac,{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{D:"path",Fb:!0,K:"ytp-svg-fill",V:{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()),k=!0));break;case 39:this.api.lf()&&(this.api.startSeekCsiAction(),l?(l=SAa(f,1E3*this.api.getCurrentTime()),-1!==l&&null!=this.i&&(this.i.sB(1,f[l].title),this.api.seekTo(f[l].startTime/1E3),k=!0)):(null!=this.i?this.i.Nt(1,5):nN(this.Ac,{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{D:"path",Fb:!0,K:"ytp-svg-fill",V:{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()),k=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),oN(this.Ac,this.api.getVolume(),!1)):(this.api.mute(),oN(this.Ac,0,!0));k=!0;break;case 32:case 75:e.ea||(k=!g.WI(this.api.zb()),this.Ac.Tq(k),k?this.api.playVideo():this.api.pauseVideo(),k=!0);break;case 190:b?e.qc&&(k=this.api.getPlaybackRate(),this.api.setPlaybackRate(k+.25,!0),zAa(this.Ac,!1),k=!0):this.api.lf()&&(VAa(this,1),k=!0);break;case 188:b?e.qc&&(k=this.api.getPlaybackRate(),this.api.setPlaybackRate(k-
.25,!0),zAa(this.Ac,!0),k=!0):this.api.lf()&&(VAa(this,-1),k=!0);break;case 70:gAa(this.api)&&(this.api.toggleFullscreen().catch(function(){}),k=!0);
break;case 27:this.B()&&(k=!0)}if("3"!==e.controlsType)switch(a){case 67:g.BM(this.api.tb())&&(e=this.api.getOption("captions","track"),this.api.toggleSubtitles(),AAa(this.Ac,!e||e&&!e.displayName),k=!0);break;case 79:ZN(this,"textOpacity");break;case 87:ZN(this,"windowOpacity");break;case 187:case 61:ZN(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:ZN(this,"fontSizeIncrement",!0,!0)}var m;b||c||d||(48<=a&&57>=a?m=a-48:96<=a&&105>=a&&(m=a-96));null!=m&&this.api.lf()&&(this.api.startSeekCsiAction(),
a=this.api.getProgressState(),this.api.seekTo(m/10*(a.seekableEnd-a.seekableStart)+a.seekableStart),k=!0);k&&this.Fd.Al()}return k};
g.h.ra=function(){g.jr(this.u);g.sC.prototype.ra.call(this)};g.v($N,g.W);$N.prototype.Ja=function(){var a=g.WD(this.G.T())&&g.cM(this.G)&&g.V(this.G.zb(),128),b=this.G.getPlayerSize();this.visible=this.i.Bf()&&!a&&240<=b.width&&!(this.G.getVideoData().C&&this.G.T().pfpChazalUi);g.M(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&RN(this.tooltip);this.G.Za(this.element,this.visible&&this.va)};
$N.prototype.dc=function(a){g.W.prototype.dc.call(this,a);this.G.Za(this.element,this.visible&&a)};
$N.prototype.ra=function(){g.W.prototype.ra.call(this);g.pr(this.element,"ytp-overflow-button-visible")};g.v(aO,g.cN);g.h=aO.prototype;g.h.DQ=function(a){a=Cu(a);g.Th(this.element,a)&&(g.Th(this.i,a)||g.Th(this.closeButton,a)||dN(this))};
g.h.Db=function(){g.cN.prototype.Db.call(this);this.tooltip.wj(this.element)};
g.h.show=function(){this.sb&&this.G.Z("OVERFLOW_PANEL_OPENED");g.cN.prototype.show.call(this);this.element.setAttribute("aria-modal","true");WAa(this,!0)};
g.h.hide=function(){g.cN.prototype.hide.call(this);this.element.removeAttribute("aria-modal");WAa(this,!1)};
g.h.onFullscreenToggled=function(a){!a&&this.ag()&&dN(this)};
g.h.focus=function(){for(var a=g.q(this.actionButtons),b=a.next();!b.done;b=a.next())if(b=b.value,b.sb){b.focus();break}};g.v(cO,g.W);cO.prototype.onClick=function(a){g.QM(a,this.api)&&this.api.playVideoAt(this.index)};g.v(dO,g.cN);g.h=dO.prototype;g.h.show=function(){g.cN.prototype.show.call(this);this.u.S(this.api,"videodatachange",this.IC);this.u.S(this.api,"onPlaylistUpdate",this.IC);this.IC()};
g.h.hide=function(){g.cN.prototype.hide.call(this);g.sx(this.u);this.updatePlaylist(null)};
g.h.IC=function(){this.updatePlaylist(this.api.getPlaylist())};
g.h.wB=function(){var a=this.playlist,b=a.u;if(b===this.B)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.i[a.index];else{for(var c=g.q(this.i),d=c.next();!d.done;d=c.next())d.value.dispose();c=a.length;this.i=[];for(d=0;d<c;d++){var e=new cO(this.api,a,d);this.i.push(e);e.Ca(this.items)}this.selected=this.i[a.index];this.B=b}this.selected&&this.selected.element.setAttribute("aria-checked","true")};
g.h.AX=function(a){var b=this.api.getVideoUrl(!0);g.RM(b,this.api,a)};
g.h.updatePlaylist=function(a){if(this.playlist!==a)if(this.playlist&&this.playlist.unsubscribe("shuffle",this.wB,this),this.playlist=a,this.B=null,a){a.subscribe("shuffle",this.wB,this);var b=a.author,c={CURRENT_POSITION:String(a.index+1),PLAYLIST_LENGTH:String(a.length)};b&&(c.AUTHOR=b);this.update({title:a.title,subtitle:g.kH(b?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",c),playlisturl:this.api.getVideoUrl(!0)});this.wB()}else this.sb&&this.hide();
else this.playlist&&this.wB()};
g.h.focus=function(){this.selected.focus()};
g.h.ra=function(){this.hide();g.cN.prototype.ra.call(this)};g.v(eO,g.W);
eO.prototype.Ja=function(){var a=g.WD(this.api.T());g.M(this.element,"ytp-playlist-menu-button-tiny",400>this.api.bb().getPlayerSize().width&&!a);this.playlist&&2!==this.api.getPresentingPlayerType()?(this.update({text:g.kH("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.length)}),title:g.kH("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.sb||(this.show(),RN(this.tooltip)),this.visible=!0,this.dc(!0)):
this.sb&&(this.hide(),this.dc(!1),RN(this.tooltip))};
eO.prototype.dc=function(a){g.W.prototype.dc.call(this,a);this.api.Za(this.element,this.visible&&a)};
eO.prototype.i=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(fO,g.W);g.h=fO.prototype;
g.h.JC=function(a,b){if(!this.B){if(a){this.tooltipRenderer=a;a=this.tooltipRenderer.text;var c=!1,d;(null==a?0:null==(d=a.runs)?0:d.length)&&a.runs[0].text&&(this.update({title:a.runs[0].text.toString()}),c=!0);g.jo(this.title,c);a=this.tooltipRenderer.detailsText;d=!1;var e;if((null==a?0:null==(e=a.runs)?0:e.length)&&a.runs[0].text){c=a.runs[0].text.toString();e=c.indexOf("$TARGET_ICON");if(-1<e)if(this.tooltipRenderer.targetId){a=[];c=c.split("$TARGET_ICON");var f=new g.UJ({D:"span",K:"ytp-promotooltip-details-icon",
U:[QTa[this.tooltipRenderer.targetId]]});g.J(this,f);for(var k=[],l=g.q(c),m=l.next();!m.done;m=l.next())m=new g.UJ({D:"span",K:"ytp-promotooltip-details-component",qa:m.value}),g.J(this,m),k.push(m);2===c.length?(a.push(k[0].element),a.push(f.element),a.push(k[1].element)):1===c.length&&(0===e?(a.push(f.element),a.push(k[0].element)):(a.push(k[0].element),a.push(f.element)));e=a.length?a:null}else e=null;else e=c;if(e){if("string"!==typeof e)for(g.Ph(this.details),d=g.q(e),e=d.next();!e.done;e=d.next())this.details.appendChild(e.value);
else this.update({details:e});d=!0}}g.jo(this.details,d);d=this.tooltipRenderer.acceptButton;e=!1;var n,p,r;(null==d?0:null==(n=d.buttonRenderer)?0:null==(p=n.text)?0:null==(r=p.runs)?0:r.length)&&d.buttonRenderer.text.runs[0].text&&(this.update({acceptButtonText:d.buttonRenderer.text.runs[0].text.toString()}),e=!0);g.jo(this.acceptButton,e);n=this.tooltipRenderer.dismissButton;p=!1;var t,w,x;(null==n?0:null==(t=n.buttonRenderer)?0:null==(w=t.text)?0:null==(x=w.runs)?0:x.length)&&n.buttonRenderer.text.runs[0].text&&
(this.update({dismissButtonText:n.buttonRenderer.text.runs[0].text.toString()}),p=!0);g.jo(this.dismissButton,p)}b&&(this.u=b);this.i=XAa(this);this.C=!1;this.G.T().L("web_player_hide_nitrate_promo_tooltip")||g.XJ(this,!0);(b=!this.i)||(b=this.i,t=window.getComputedStyle(b),b="none"===t.display||"hidden"===t.visibility||"true"===b.getAttribute("aria-hidden"));b||this.G.Se()?g.XJ(this,!1):(b=g.io(this.i),b.width&&b.height?(this.J.Iq(this.element,this.i),t=this.G.bb().getPlayerSize().height-g.io(this.element).height-
b.height-12,this.element.style.top=t+"px",t=this.Da("ytp-promotooltip-pointer"),w=g.go(this.i,this.G.getRootNode()),x=Number(this.element.style.left.replace(/[^\d\.]/g,"")),n=this.G.isFullscreen()?18:12,t.style.left=w.x-x+b.width/2-n+"px"):g.XJ(this,!1));this.I||(this.I=!0,hO(this,0));this.j&&this.G.Za(this.element,this.sb)}};
g.h.BV=function(){gO(this);this.C=!0};
g.h.MU=function(){this.B=!0;hO(this,1);this.G.Z("promotooltipacceptbuttonclicked",this.acceptButton);gO(this);this.j&&this.G.ub(this.acceptButton)};
g.h.IV=function(){this.B=!0;hO(this,2);gO(this);this.j&&this.G.ub(this.dismissButton)};
g.h.EQ=function(a){if(1===this.G.getPresentingPlayerType()){var b=!0,c=g.wh("ytp-ad-overlay-ad-info-dialog-container"),d=Cu(a);if(this.u&&d&&g.Th(this.u,d))this.u=null;else{1===this.G.getPresentingPlayerType()&&d&&Array.from(d.classList).forEach(function(l){l.startsWith("ytp-ad")&&(b=!1)});
var e=YAa(this.tooltipRenderer),f;if("TOOLTIP_DISMISS_TYPE_TAP_ANYWHERE"===(null==(f=this.tooltipRenderer.dismissStrategy)?void 0:f.type))e&&(b=b&&!g.Th(this.element,d));else{var k;"TOOLTIP_DISMISS_TYPE_TAP_INTERNAL"===(null==(k=this.tooltipRenderer.dismissStrategy)?void 0:k.type)&&(b=e?!1:b&&g.Th(this.element,d))}this.i&&this.sb&&!c&&(!d||b&&g.aL(a))&&(this.B=!0,gO(this))}}};
g.h.yb=function(){this.C||(this.i||(this.i=XAa(this)),this.JC())};
var QTa={"ytp-settings-button":g.nK()};g.v(iO,g.W);iO.prototype.onStateChange=function(a){g.XJ(this,g.V(a.state,2))};
iO.prototype.onClick=function(){this.G.zb();this.G.playVideo()};g.v(g.jO,g.W);g.jO.prototype.onClick=function(){var a=this.api.T(),b=this.api.getVideoData(this.api.getPresentingPlayerType()),c=this.api.getPlaylistId();a=a.getVideoUrl(b.videoId,c,void 0,!0);if(navigator.share)try{var d=navigator.share({title:b.title,url:a});d instanceof Promise&&d.catch(ZAa)}catch(e){e instanceof Error&&ZAa(e)}else this.i.Rk(),dN(this.u,this.element,!1);this.api.ub(this.element)};
g.jO.prototype.Ja=function(){var a=this.api.T(),b=this.api.getVideoData(),c=g.WD(a)&&g.cM(this.api)&&g.V(this.api.zb(),128);this.Ma("icon",{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{D:"path",Fb:!0,K:"ytp-svg-fill",V:{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.Ak||c||b.C&&a.pfpChazalUi;c=this.api.bb().getPlayerSize().width;this.visible=!!b.videoId&&c>=this.j&&!a;g.M(this.element,"ytp-share-button-visible",this.visible);g.XJ(this,this.visible);RN(this.tooltip);this.api.Za(this.element,this.visible&&this.va)};
g.jO.prototype.dc=function(a){g.W.prototype.dc.call(this,a);this.api.Za(this.element,this.visible&&a)};
g.jO.prototype.ra=function(){g.W.prototype.ra.call(this);g.pr(this.element,"ytp-share-button-visible")};g.v(g.kO,g.cN);g.h=g.kO.prototype;g.h.FQ=function(a){a=Cu(a);g.Th(this.C,a)||g.Th(this.closeButton,a)||dN(this)};
g.h.Db=function(){g.cN.prototype.Db.call(this);this.tooltip.wj(this.element)};
g.h.show=function(){var a=this.sb;g.cN.prototype.show.call(this);this.Ja();a||this.api.Oa("onSharePanelOpened")};
g.h.pU=function(){this.sb&&this.Ja()};
g.h.Ja=function(){var a=this;g.L(this.element,"ytp-share-panel-loading");g.pr(this.element,"ytp-share-panel-fail");var b=this.api.getVideoData(),c=this.api.getPlaylistId()&&this.B.checked;b.getSharePanelCommand&&vL(this.api.im(),b.getSharePanelCommand,{includeListId:c}).then(function(d){a.isDisposed()||(g.pr(a.element,"ytp-share-panel-loading"),aBa(a,d))});
b=this.api.getVideoUrl(!0,!0,!1,!1);g.gE(this.api.T())&&(b=g.Hj(b,g.OL("emb_share")));this.Ma("link",b);this.Ma("linkText",b);this.Ma("shareLinkWithUrl",g.kH("Share link $URL",{URL:b}));TM(this.u)};
g.h.onFullscreenToggled=function(a){!a&&this.ag()&&dN(this)};
g.h.focus=function(){this.u.focus()};
g.h.ra=function(){g.cN.prototype.ra.call(this);$Aa(this)};g.v(nO,g.W);g.h=nO.prototype;g.h.cG=function(){};
g.h.dG=function(){};
g.h.Ox=function(){return!0};
g.h.IY=function(){if(this.expanded){this.xa.show();var a=this.I.element.scrollWidth}else a=this.I.element.scrollWidth,this.xa.hide();this.Wa=34+a;g.M(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?34:this.Wa)+"px";this.ea.start()};
g.h.VS=function(){this.badge.element.style.width=(this.expanded?this.Wa:34)+"px";this.Ia.start()};
g.h.mZ=function(){g.M(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!0)};
g.h.Xh=function(){this.Ox()?this.N.show():this.N.hide();bBa(this)};
g.h.GQ=function(){this.enabled=!1;this.Xh()};
g.h.lZ=function(){this.Xh()};
g.h.pV=function(a){this.Qa=1===a;this.Xh();g.M(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!1)};
g.h.NV=function(){g.M(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.G.isFullscreen());this.Xh()};g.v(oO,nO);g.h=oO.prototype;g.h.ra=function(){pO(this);nO.prototype.ra.call(this)};
g.h.cG=function(a){a.target!==this.dismissButton.element&&(dBa(this,!1),this.G.Oa("innertubeCommand",this.onClickCommand))};
g.h.dG=function(){this.u=!0;dBa(this,!0);this.Xh()};
g.h.yW=function(a){this.Ha=a;this.Xh()};
g.h.rW=function(a){var b=this.G.getVideoData();b&&b.videoId===this.videoId&&this.ya&&(this.W=a,a||(a=3+this.G.getCurrentTime(),this.Nd(a)))};
g.h.onVideoDataChange=function(a,b){if(a=!!b.videoId&&this.videoId!==b.videoId)this.videoId=b.videoId,this.u=!1,this.i=!0,this.W=this.ya=this.j=this.J=!1,pO(this);if(a||!b.videoId)this.C=this.B=!1;a=b.shoppingOverlayRenderer;this.Ha=this.enabled=!1;if(a){this.enabled=!0;if(!this.B){var c,d=null==(c=a.badgeInteractionLogging)?void 0:c.trackingParams;(this.B=!!d)&&this.G.Xj(this.badge.element,d||null)}if(!this.C){var e;if(this.C=!(null==(e=a.dismissButton)||!e.trackingParams)){var f;this.G.Xj(this.dismissButton.element,
(null==(f=a.dismissButton)?void 0:f.trackingParams)||null)}}this.text=g.Sy(a.text);var k;if(c=null==(k=a.dismissButton)?void 0:k.a11yLabel)this.Ta=g.Sy(c);this.onClickCommand=a.onClickCommand;this.timing=a.timing;IF(b)?this.W=this.ya=!0:this.Nd()}cBa(this);mO(this);this.Xh()};
g.h.Ox=function(){return!this.Ha&&this.enabled&&!this.u&&!this.Ya.Bf()&&!this.Qa&&!this.W&&(this.j||this.i)};
g.h.Me=function(a){(this.j=a)?(lO(this),mO(this,!1)):(pO(this),this.Y.start());this.Xh()};
g.h.Nd=function(a){a=void 0===a?0:a;var b=[],c=this.timing.visible,d=this.timing.expanded;c&&b.push(new g.Ly(1E3*(c.startSec+a),1E3*(c.endSec+a),{priority:9,namespace:"shopping_overlay_visible"}));d&&b.push(new g.Ly(1E3*(d.startSec+a),1E3*(d.endSec+a),{priority:9,namespace:"shopping_overlay_expanded"}));this.G.Nd(b)};g.v(qO,g.cN);qO.prototype.show=function(){g.cN.prototype.show.call(this);this.B.start()};
qO.prototype.hide=function(){g.cN.prototype.hide.call(this);this.B.stop()};
qO.prototype.Vs=function(a,b){"dataloaded"===a&&((this.u=b.TJ,this.i=b.RJ,isNaN(this.u)||isNaN(this.i))?this.C&&(this.G.gf("intro"),this.G.removeEventListener(g.Ny("intro"),this.ea),this.G.removeEventListener(g.Oy("intro"),this.Y),this.G.removeEventListener("onShowControls",this.I),this.hide(),this.C=!1):(this.G.addEventListener(g.Ny("intro"),this.ea),this.G.addEventListener(g.Oy("intro"),this.Y),this.G.addEventListener("onShowControls",this.I),a=new g.Ly(this.u,this.i,{priority:9,namespace:"intro"}),
this.G.Nd([a]),this.C=!0))};g.v(rO,g.W);rO.prototype.onClick=function(){this.G.Xo()};
rO.prototype.Ja=function(){var a=!0,b=this.G.T();(b.L("embeds_enable_mobile_custom_controls")||"1"===b.controlsType&&!b.L("embeds_use_native_controls_killswitch")&&b.isMobile)&&g.WD(b)&&(a=a&&480<=this.G.bb().getPlayerSize().width);g.XJ(this,a);this.Ma("icon",this.G.yf()?{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{D:"path",Fb:!0,V:{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"}}]}:{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{D:"path",Fb:!0,K:"ytp-svg-fill",V:{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 zv("yt.autonav");g.v(sO,g.W);g.h=sO.prototype;
g.h.Tu=function(){if(3!==this.G.getPresentingPlayerType()&&g.gM(this.G)&&400<=this.G.bb().getPlayerSize().width&&!1!==this.G.getVideoData().VY){if(!this.i){this.i=!0;g.XJ(this,this.i);this.j.push(this.S(this.G,"videodatachange",this.Tu));this.j.push(this.S(this.G,"videoplayerreset",this.Tu));this.j.push(this.S(this.G,"onPlaylistUpdate",this.Tu));this.j.push(this.S(this.G,"autonavchange",this.VI));var a=this.G.getVideoData();this.VI(a.autonavState);this.G.Za(this.element,this.i)}}else{this.i=!1;g.XJ(this,
this.i);a=g.q(this.j);for(var b=a.next();!b.done;b=a.next())this.xc(b.value)}};
g.h.VI=function(a){(a=1!==a)||(g.vv.getInstance(),a=g.Q("web_autonav_allow_off_by_default")&&!g.wv(0,141)&&g.P("AUTONAV_OFF_BY_DEFAULT")?!1:!g.wv(0,140));this.isChecked=a;eBa(this)};
g.h.onClick=function(){this.isChecked=!this.isChecked;this.G.vB(this.isChecked?2:1);eBa(this);this.G.ub(this.element)};
g.h.getValue=function(){return this.isChecked};
g.h.setValue=function(a){this.isChecked=a;this.Da("ytp-autonav-toggle-button").setAttribute("aria-checked",String(this.isChecked))};g.v(g.uO,g.W);g.uO.prototype.ra=function(){this.ctx=null;g.W.prototype.ra.call(this)};g.v(vO,g.W);vO.prototype.onClick=function(){this.G.Oa("innertubeCommand",this.u)};
vO.prototype.onClickCommand=function(a){(null==a?0:a.changeKeyedMarkersVisibilityCommand)&&this.Rb()};
vO.prototype.updateVideoData=function(a,b){var c;this.u=null==(c=b.DZ)?void 0:c.command;this.j.disabled=null==this.u;g.M(this.j,"ytp-chapter-container-disabled",this.j.disabled);this.Rb()};
vO.prototype.Rb=function(){var a="",b=this.J.i,c=!!this.G.getLoopRange();if(1<b.length&&!c){a=1E3*this.G.getProgressState().current;c=VN(b,a);a=b[c].title||"Chapters";if(c!==this.currentIndex||this.i)this.G.Oa("innertubeCommand",b[c].onActiveCommand),this.currentIndex=c;this.i=!1}else this.i=!0;a!==this.B&&(this.update({title:a}),this.B=a);a?this.show():this.hide()};g.v(g.xO,g.W);g.xO.prototype.Sc=function(a){g.V(a.state,32)?yO(this,this.api.fh()):this.sb&&(g.V(a.state,16)||g.V(a.state,1))||this.i.hide()};
g.xO.prototype.Dd=function(){var a=this.api.zb();(g.V(a,32)||g.V(a,16))&&zO(this)};
g.xO.prototype.C=function(){this.u=NaN;zO(this)};
g.xO.prototype.hide=function(){this.j&&yO(this,null);g.W.prototype.hide.call(this)};g.v(AO,g.W);AO.prototype.onClick=function(){this.Sa.ub(this.element);this.Sa.Oa("onFullerscreenEduClicked")};
AO.prototype.Ja=function(){this.Sa.isFullscreen()?this.j?this.i.hide():this.i.show():this.hide();this.Sa.Za(this.element,this.Sa.isFullscreen()&&!this.j)};g.v(g.BO,g.W);g.h=g.BO.prototype;g.h.onClick=function(){var a=this;if(this.G.T().Wa||this.G.T().C){this.G.ub(this.element);try{this.G.toggleFullscreen().catch(function(b){a.uw(b)})}catch(b){this.uw(b)}}else dN(this.message,this.element,!0)};
g.h.uw=function(a){String(a).includes("fullscreen error")?g.Rx(a):g.S(a);this.lG()};
g.h.lG=function(){this.disable();this.message.jd(this.element,!0)};
g.h.Jm=function(){nx()===this.G.getRootNode()?this.u.start():(this.u.stop(),this.message&&this.message.hide())};
g.h.sS=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.lG()}};
g.h.disable=function(){var a=this;if(!this.message){var b=(null!=wu(["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.cN(this.G,{D:"div",Ga:["ytp-popup","ytp-generic-popup"],V:{role:"alert",tabindex:"0"},U:[b[0],{D:"a",V:{href:"https://web.archive.org/web/20220130220643/https://support.google.com/youtube/answer/6276924",
target:this.G.T().I},qa:b[2]},b[4]]},100,!0);this.message.hide();g.J(this,this.message);this.message.subscribe("show",function(c){a.j.Gs(a.message,c)});
g.fM(this.G,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.i)();this.i=null}};
g.h.Ja=function(){var a=gAa(this.G),b=this.G.T().C&&250>this.G.getPlayerSize().width;g.XJ(this,a&&!b);this.G.Za(this.element,this.sb)};
g.h.aj=function(a){if(a){var b={D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{D:"g",K:"ytp-fullscreen-button-corner-2",U:[{D:"path",Fb:!0,K:"ytp-svg-fill",V:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{D:"g",K:"ytp-fullscreen-button-corner-3",U:[{D:"path",Fb:!0,K:"ytp-svg-fill",V:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{D:"g",K:"ytp-fullscreen-button-corner-0",U:[{D:"path",Fb:!0,K:"ytp-svg-fill",V:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{D:"g",
K:"ytp-fullscreen-button-corner-1",U:[{D:"path",Fb:!0,K:"ytp-svg-fill",V:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};a=UM(this.G,"Exit full screen","f");document.activeElement===this.element&&this.G.getRootNode().focus()}else b={D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{D:"g",K:"ytp-fullscreen-button-corner-0",U:[{D:"path",Fb:!0,K:"ytp-svg-fill",V:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{D:"g",K:"ytp-fullscreen-button-corner-1",U:[{D:"path",
Fb:!0,K:"ytp-svg-fill",V:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{D:"g",K:"ytp-fullscreen-button-corner-2",U:[{D:"path",Fb:!0,K:"ytp-svg-fill",V:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{D:"g",K:"ytp-fullscreen-button-corner-3",U:[{D:"path",Fb:!0,K:"ytp-svg-fill",V:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},a=UM(this.G,"Full screen","f");a=this.message?null:a;this.update({title:a,icon:b});RN(this.j.jc())};
g.h.ra=function(){this.message||((0,this.i)(),this.i=null);g.W.prototype.ra.call(this)};g.v(CO,g.W);CO.prototype.onClick=function(){this.G.Oa("onCollapseMiniplayer");this.G.ub(this.element)};
CO.prototype.Ja=function(){this.visible=!this.G.isFullscreen();g.XJ(this,this.visible);this.G.Za(this.element,this.visible&&this.va)};
CO.prototype.dc=function(a){g.W.prototype.dc.call(this,a);this.G.Za(this.element,this.visible&&a)};g.v(DO,g.W);DO.prototype.onVideoDataChange=function(a){this.Ja("newdata"===a)};
DO.prototype.Ja=function(a){var b=this.G.getVideoData(),c=b.fd,d=this.G.zb();d=(g.WI(d)||g.V(d,4))&&0<c.length;g.XJ(this,d);a&&(this.i=!0);if(d){this.i&&g.hr(this.j);a=null;d="";for(var e=0;e<c.length;e++)if(c[e].id===b.videoId){a=c[e].title;d=g.kH("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.Re("default.jpg")});RN(this.tooltip)}else this.j.stop()};
DO.prototype.u=function(){QN(this.tooltip,this.element,"More cameras available");this.i=!1};g.v(EO,g.cN);g.h=EO.prototype;g.h.show=function(){var a=this.sb;g.cN.prototype.show.call(this);a||(this.u.S(this.api,"presentingplayerstatechange",this.Ja),this.u.S(this.api,"videodatachange",this.Ja),this.Ja())};
g.h.hide=function(){this.u&&(g.sx(this.u),g.cN.prototype.hide.call(this))};
g.h.Ja=function(){var a=this,b=this.api.getVideoData(),c=b.fd,d,e={};for(d=0;d<c.length;e={eC:e.eC},d++){var f=this.i[d];f||(f=new g.W({D:"button",Ga:["ytp-multicam-menu-item","ytp-button"],V:{"aria-checked":"{{selected}}","data-id":"{{videoId}}"},U:[{D:"div",K:"ytp-multicam-menu-item-title",qa:"{{cameraName}}"}]}),e.eC=d,f.Pa("click",function(n){return function(){var p=n.eC,r=a.api.getVideoData(),t=a.api,w=r.fd[p];p=g.hM(t.app,1).getVideoData();r=t.getCurrentTime();w.id===p.videoId?(w=g.hM(t.app,
1),g.hM(t.app)!==w&&(t.app.xl(1),p.isLivePlayback||t.seekTo(r))):(t.app.xl(4),t.app.loadVideoByPlayerVars({videoId:w.id,title:p.title,start:p.isLivePlayback?null:r,raw_player_response:{multicamera:{playerLegacyMulticameraRenderer:{metadataList:p.uJ}}}},4))}}(e)),f.Ca(this.items),this.i[d]=f);
var k=c[d],l=k.id;if(l!==f.element.getAttribute("data-id")){var m=k.thumbnail_url;!m&&l&&(m=qE(this.api.T(),l,"default.jpg"));f.element.style.backgroundImage=m?"url("+m+")":""}f.update({cameraName:k.title,videoId:l,selected:l===b.videoId?!0:null})}for(;d<this.i.length;)this.i.pop().dispose();d=this.api.zb();b=c.length||!b.isLoaded();g.WI(d)||g.V(d,4)||b||!this.ag()||dN(this)};
g.h.focus=function(){for(var a=this.api.getVideoData(),b=a.fd,c=0;c<b.length;c++)if(b[c].id===a.videoId){this.i[c].focus();break}};
g.h.ra=function(){g.Te(this.i);g.cN.prototype.ra.call(this)};g.v(FO,g.G);FO.prototype.i=function(){var a=(0,g.R)()-this.startTime;a=a<this.duration?a/this.duration:1;this.j(g.Fr(RTa,a));1>a&&this.delay.start()};
var RTa=new g.Er(0,0,.4,0,.2,1,1,1),jBa=/[0-9.-]+|[^0-9.-]+/g;g.v(g.HO,g.W);g.h=g.HO.prototype;g.h.WI=function(a){this.visible=300<=a.width;g.XJ(this,this.visible);this.G.Za(this.element,this.visible&&this.va)};
g.h.jW=function(){this.G.T().Y?this.G.isMuted()?this.G.unMute():this.G.mute():dN(this.message,this.element,!0);this.G.ub(this.element)};
g.h.onVolumeChange=function(a){this.setVolume(a.volume,a.muted)};
g.h.setVolume=function(a,b){var c=this,d=b?0:a/100,e=this.G.T();a=0===d?1:50<a?1:0;if(this.C!==a){var f=this.Y;isNaN(f)?mBa(this,a):GO(this.xa,function(l){mBa(c,f+(c.C-f)*l)},250);
this.C=a}d=0===d?1:0;if(this.B!==d){var k=this.N;isNaN(k)?nBa(this,d):GO(this.W,function(l){nBa(c,k+(c.B-k)*l)},250);
this.B=d}e.Y&&(e=UM(this.G,"Mute","m"),d=UM(this.G,"Unmute","m"),this.Ma("title",b?d:e),RN(this.tooltip))};
g.h.dc=function(a){g.W.prototype.dc.call(this,a);this.G.Za(this.element,this.visible&&a)};
var kBa=["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"],lBa=["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(IO,g.W);IO.prototype.onClick=function(){this.G.togglePictureInPicture()};g.v(g.JO,g.W);g.JO.prototype.onStateChange=function(a){oBa(this,a.state);a=g.V(a.state,2);yE(this.G.T())&&(!this.j&&!a||this.j&&a?(this.hide(),this.G.Za(this.element,!1)):(this.show(),this.G.Za(this.element,!0)))};
g.JO.prototype.onVideoDataChange=function(){g.M(this.element,"ytp-play-button-playlist",g.cM(this.G))};
g.JO.prototype.fu=function(a){this.G.ub(this.element);if(g.WI(this.G.zb()))this.G.pauseVideo();else{if(this.G.Se()&&this.G.zb().isCued()){var b={},c;!this.G.L("web_player_csi_ctt_killswitch")&&(null==(c=this.G.getVideoData())?0:c.W)&&(b.cttAuthInfo={token:this.G.getVideoData().W,videoId:this.G.getVideoData().videoId});qz("direct_playback",b)}this.G.zj().timerName="direct_playback";this.G.playVideo()}this.G.T().L("miniplayer_disable_play_button_click_focus")&&this.G.Se()&&a&&"click"===a.type&&this.element.blur()};g.v(g.LO,g.W);g.h=g.LO.prototype;g.h.onVideoDataChange=function(){qBa(this);this.B&&(this.xc(this.B),this.B=null);this.videoData=this.G.getVideoData(1);if(this.playlist=this.G.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.B=this.S(this.G,"progresssync",this.HQ);this.u=rBa(this);KO(this);this.KC(this.G.bb().getPlayerSize())};
g.h.KC=function(a){a=void 0===a?this.G.bb().getPlayerSize():a;a=(g.cM(this.G)||this.i&&g.gM(this.G)||sBa(this))&&(this.i||400<=a.width);g.XJ(this,a);this.G.Za(this.element,a)};
g.h.onClick=function(a){this.G.ub(this.element);var b=!0;this.isLinkable?b=g.QM(a,this.G):g.Fu(a);b&&(this.i&&5===this.G.getPresentingPlayerType()?this.G.Z("ytoprerollinternstitialnext"):this.i?this.G.nextVideo(!0):this.u?this.G.seekTo(0):this.G.previousVideo(!0))};
g.h.HQ=function(){var a=rBa(this);a!==this.u&&(this.u=a,KO(this))};
g.h.ra=function(){this.j&&(this.j(),this.j=null);qBa(this);g.W.prototype.ra.call(this)};g.v(MO,g.W);g.h=MO.prototype;g.h.IQ=function(a){this.ZI(a.pageX);this.YI(a.pageX+a.deltaX);this.XI()};
g.h.ZI=function(a){this.W=a};
g.h.YI=function(a){!isNaN(this.W)&&0<this.thumbnails.length&&(this.N=a-this.W,0<this.thumbnails.length&&0!==this.N&&(this.u=this.B+this.N,a=-(this.u-this.C/2)/this.j.offsetWidth*this.api.getDuration(),0<=a&&a<=this.api.getDuration()?(this.api.seekTo(a,!1),g.xn(this.j,"transform","translateX("+this.u+"px)"),a=g.$K(a),this.update({seekTime:a})):this.u=this.B))};
g.h.XI=function(){this.W=NaN;this.N=0;this.B=this.u};
g.h.play=function(){var a=-(this.u-this.C/2)/this.j.offsetWidth*this.api.getDuration();this.api.seekTo(a);this.api.playVideo()};
g.h.enable=function(){this.xa=this.api.getCurrentTime();this.isEnabled=!0;this.ea=this.S(this.element,"wheel",this.IQ)};
g.h.disable=function(){this.hide();this.isEnabled=!1;this.ea&&this.xc(this.ea)};
g.h.reset=function(){this.disable();this.i=[];this.J=!1};
g.v(tBa,g.W);g.v(vBa,g.W);g.v(OO,g.W);yBa.prototype.update=function(a,b,c,d){this.width=b;this.j=c;this.C=d;this.i=b-c-d;this.position=g.Yg(a,c,c+this.i);this.B=this.position-c;this.u=this.B/this.i};g.v(zBa,g.W);g.v(g.TO,g.YJ);g.h=g.TO.prototype;g.h.yb=function(){g.UO(this);XO(this);EBa(this,this.ya);var a;null==(a=this.j)||NO(a,this.api.getCurrentTime())};
g.h.onClickCommand=function(a){if(a=null==a?void 0:a.changeKeyedMarkersVisibilityCommand){var b=a.key;a.isVisible&&b&&VO(this,b)}};
g.h.zX=function(a){this.api.Oa("innertubeCommand",this.Ie[a.id])};
g.h.Rb=function(){XO(this);var a=this.api.getCurrentTime();(a<this.clipStart||a>this.clipEnd)&&this.pB()};
g.h.MV=function(a){if(!g.Gu(a)){var b=!1;switch(g.Hu(a)){case 32:var c;(null==(c=this.j)?0:c.isEnabled)&&this.zE();b=!0;break;case 27:var d;(null==(d=this.j)?0:d.isEnabled)&&hP(this);b=!0}b&&g.Fu(a)}};
g.h.KQ=function(a){if(!g.Gu(a)){var b=!1;switch(g.Hu(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.Fu(a)}};
g.h.Vs=function(a,b){this.updateVideoData(b,"newdata"===a)};
g.h.zT=function(){this.Vs("newdata",this.api.getVideoData())};
g.h.updateVideoData=function(a,b){b=void 0===b?!1:b;var c=!!a&&a.isValid();c&&(cG(a)||$O(this)&&this.api.T().L("enable_fully_expanded_clip_range_in_progress_bar")?this.Sb=!1:this.Sb=a.allowLiveDvr,g.M(this.api.getRootNode(),"ytp-enable-live-buffer",!(null==a||!cG(a))));QBa(this,this.api.lf());if(b){if(c){b=a.clipEnd;this.clipStart=a.clipStart;this.clipEnd=b;cP(this);for(YO(this,this.Y,this.fb);0<this.I.length;)this.I.pop().dispose();this.heatMarkersDecorations=[];this.kb={};var d;null==(d=this.j)||
d.reset();hP(this)}else this.pB();g.kQ(this.tooltip)}if(a){d=a.watchNextResponse;if(d=!a.isLivePlayback&&d)d=this.api.getVideoData(),b=d.gF,d=null!=d.multiMarkersPlayerBarRenderer||null!=b&&0<b.length;if(!d||this.Nb||this.Nb)ABa(this),BBa(this);else{d=this.api.getVideoData();if(b=d.multiMarkersPlayerBarRenderer){d=this.api.getVideoData();var e;d.mq=(null==(e=b.visibleOnLoad)?void 0:e.key)||d.mq;e=g.q(b.markersMap);for(b=e.next();!b.done;b=e.next())b=b.value,b.key&&b.value&&(this.kb[b.key]=b.value);
null!=d.mq&&VO(this,d.mq)}else if(e=d.gF)DBa(this,e),d.Nl=this.i,CBa(this);a.vC&&(e=a.vC,d=e.key,e.isVisible&&d&&VO(this,d),a.vC=void 0)}}XO(this)};
g.h.JQ=function(a){this.W&&!g.V(a.state,32)&&3!==this.api.getPresentingPlayerType()&&this.W.cancel()};
g.h.aJ=function(a){var b=!!this.Nb!==!!a;(this.Nb=a)?(this.Ma("clipstarticon",Zxa()),this.Ma("clipendicon",Zxa()),this.Ma("clipstarttitle",null),this.Ma("clipendtitle",null)):(this.Ma("clipstarticon",Txa()),this.Ma("clipendicon",Sxa()),this.Ma("clipstarttitle","Watch full video"),this.Ma("clipendtitle","Watch full video"));cP(this);YO(this,this.Y,this.fb);b&&(this.updateVideoData(this.api.getVideoData(),!0),g.UO(this))};
g.h.DW=function(a,b,c){var d=g.co(this.element),e=WO(this).i,f=c?c.getAttribute("data-tooltip"):void 0,k=c?c.getAttribute("data-position"):void 0,l=c?c.getAttribute("data-offset-y"):void 0;l=l?Number(l):0;k&&(a=gL(this.u,Number(c.getAttribute("data-position")),0)*e+g.co(this.Jc).x);this.Hb.x=a-d.x;this.Hb.y=b-d.y;a=WO(this);c=bP(this,a);b=0;var m;if(null==(m=this.api.getVideoData())?0:cG(m))(m=this.api.getProgressState().seekableEnd)&&c>m&&(c=m,b=-this.xa,m=gL(this.u,m)*WO(this).i+b,a.position=m),
b=this.u.j;$O(this)&&this.api.T().L("enable_fully_expanded_clip_range_in_progress_bar")&&(b=this.u.j);m=f||g.$K(this.Sb?c-this.u.i:c-b);b=a.position+this.ye;c-=this.api.kd();if(this.api.fh()){if(1<this.i.length){d=aP(this,this.Hb.x,!0);for(e=0;e<this.i.length;)g.M(this.i[e].i,"ytp-exp-chapter-hover-effect",e===d),e++;e=this.i[d].startTime;k=d===this.i.length-1?Infinity:this.i[d+1].startTime;for(var n=g.q(this.ya),p=n.next();!p.done;p=n.next())p=p.value,g.M(p.element,"ytp-timed-marker-hover",p.timeRangeStartMillis>=
e&&p.timeRangeStartMillis<k);if(1<this.I.length)for(e=0;e<this.i.length;e++)g.M(this.I[e].element,"ytp-heatmap-hover",e===d)}e=this.tooltip.scale;l=(isNaN(l)?0:l)-45*e;d=VN(this.i,1E3*c);(d=this.i[d].title)||(l+=16*e);.6===this.tooltip.scale&&(l=d?110:126);e=VN(this.i,1E3*c);this.Ya=JBa(this,c,e)?e:JBa(this,c,e+1)?e+1:-1;g.M(this.api.getRootNode(),"ytp-progress-bar-snap",-1!==this.Ya&&1<this.i.length);e=!1;k=g.q(this.heatMarkersDecorations);for(n=k.next();!n.done;n=k.next())n=n.value,p=1E3*c,p>=n.visibleTimeRangeStartMillis&&
p<=n.visibleTimeRangeEndMillis&&(d=n.label,m=g.$K(n.decorationTimeMillis/1E3),e=!0);this.wc!==e&&(this.wc=e,this.api.Za(this.qc,this.wc));g.M(this.api.getRootNode(),"ytp-progress-bar-decoration",e);e=320*this.tooltip.scale;k=d.length*(this.B?8.55:5.7);e=k<=e?k:e;k=e<160*this.tooltip.scale;n=3;!k&&e/2>a.position&&(n=1);!k&&e/2>this.C-a.position&&(n=2);this.api.T().C&&(l-=10);this.I.length&&this.I[0].isValid&&(l-=14*(this.B?2:1),this.La||(this.La=!0,this.api.Za(this.ea,this.La)));var r;if(SO(this)&&
((null==(r=this.j)?0:r.isEnabled)||0<this.N)){var t;l-=(null==(t=this.j)?0:t.isEnabled)?dP(this):this.N}jCa(this.tooltip,b,c,m,!!f,l,d,n)}else jCa(this.tooltip,b,c,m,!!f,l);g.L(this.api.getRootNode(),"ytp-progress-bar-hover");IBa(this)};
g.h.BW=function(){g.kQ(this.tooltip);g.pr(this.api.getRootNode(),"ytp-progress-bar-hover");this.La&&(this.La=!1,this.api.Za(this.ea,this.La))};
g.h.zW=function(a,b){SO(this)&&this.j&&(this.j.J?NO(this.j,this.api.getCurrentTime()):uBa(this.j),this.j.show(),g.M(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.j.isEnabled));this.J&&(this.J.dispose(),this.J=null);this.Mc=b;1<this.i.length&&-1!==this.Ya?this.api.seekTo(this.i[this.Ya].startTime/1E3,!1):this.api.seekTo(bP(this,WO(this)),!1);g.L(this.element,"ytp-drag");(this.qd=g.WI(this.api.zb()))&&this.api.pauseVideo()};
g.h.EW=function(){var a=this;if(SO(this)&&this.j){var b=dP(this);this.N>=.5*b?(this.j.enable(),NO(this.j,this.api.getCurrentTime()),this.ea.style.bottom=b+(this.B?8:5)+"px",PBa(this,b)):hP(this);g.M(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.j.isEnabled);this.ea.style.removeProperty("display")}else if(this.Qb=0,g.pr(this.element,"ytp-pull-ui"),g.pr(this.element,"ytp-pulling"),this.J&&(this.J.dispose(),this.J=null),0<this.N){var c=(0,g.R)();this.J=new g.fr(function(){var f=a.N,k=WO(a).position,
l=1-Math.pow(1-((0,g.R)()-c)/200,3);k+=l*(a.Y*a.C-k);if(0>l||1<l)l=1;KBa(a,(1-l)*f,k,a.Y);1>l&&a.J.start()});
this.J.start()}if(g.V(this.api.zb(),32)||3===this.api.getPresentingPlayerType()){this.api.startSeekCsiAction();if(1<this.i.length&&-1!==this.Ya)this.api.seekTo(this.i[this.Ya].startTime/1E3);else{b=bP(this,WO(this));this.api.seekTo(b);for(var d=g.q(this.heatMarkersDecorations),e=d.next();!e.done;e=d.next())e=e.value,1E3*b>=e.visibleTimeRangeStartMillis&&1E3*b<=e.visibleTimeRangeEndMillis&&this.api.ub(this.qc)}g.pr(this.element,"ytp-drag");this.qd&&!g.V(this.api.zb(),2)&&this.api.playVideo()}};
g.h.FW=function(a,b){var c=this,d=!1,e=!1;a=WO(this);1===this.i.length&&!SO(this)&&3600<=eL(this.u)&&(KBa(this,this.Mc-b-10,a.position,a.u),e=!0,d=this.N>.1*(this.B?60:40),a=WO(this));g.M(this.element,"ytp-pull-ui",e);d&&g.L(this.element,"ytp-pulling");d=0;a.j&&0>=a.position?d=-1:a.C&&a.position>=a.width&&(d=1);if(this.Qb!==d&&(this.Qb=d,this.J&&(this.J.dispose(),this.J=null),d)){var f=(0,g.R)();this.J=new g.fr(function(){var l=c.C*(c.Wa-1);c.xa=g.Yg(c.xa+c.Qb*((0,g.R)()-f)*.3,0,l);ZO(c);c.api.seekTo(bP(c,
WO(c)),!1);0<c.xa&&c.xa<l&&c.J.start()});
this.J.start()}a=bP(this,a);this.api.seekTo(a,!1);var k;SO(this)&&(null==(k=this.j)?0:k.J)&&(k=dP(this),this.ea.style.display="none",b=this.Mc-b-10,this.j.isEnabled&&(b=k+b,NO(this.j,a)),this.N=g.Yg(b,0,k),PBa(this,this.N))};
g.h.jN=function(){this.Nb||(this.Ma("clipstarticon",Rxa()),this.Ma("clipendicon",Rxa()),g.L(this.element,"ytp-clip-hover"))};
g.h.iN=function(){this.Nb||(this.Ma("clipstarticon",Txa()),this.Ma("clipendicon",Sxa()),g.pr(this.element,"ytp-clip-hover"))};
g.h.pB=function(){this.clipStart=0;this.clipEnd=Infinity;cP(this);YO(this,this.Y,this.fb)};
g.h.AP=function(a){a=g.q(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.visible){var c=b.getId();if(!this.Qa[c]){var d=g.Nh("DIV");b.tooltip&&d.setAttribute("data-tooltip",b.tooltip);this.Qa[c]=b;this.Jb[c]=d;g.mr(d,b.style);LBa(this,c);this.api.T().L("disable_ad_markers_on_content_progress_bar")||this.i[0].u.appendChild(d)}}else OBa(this,b)};
g.h.lY=function(a){a=g.q(a);for(var b=a.next();!b.done;b=a.next())OBa(this,b.value)};
g.h.eT=function(){this.j&&(this.api.seekTo(this.j.xa),hP(this))};
g.h.zE=function(){this.j&&(this.j.play(),hP(this))};
g.h.ra=function(){QBa(this,!1);g.YJ.prototype.ra.call(this)};g.v(iP,g.W);iP.prototype.isActive=function(){return!!this.G.getOption("remote","casting")};
iP.prototype.Ja=function(){var a=!1;this.G.getOptions().includes("remote")&&(a=1<this.G.getOption("remote","receivers").length);g.XJ(this,a&&400<=this.G.bb().getPlayerSize().width);this.G.Za(this.element,this.sb);var b=1;a&&this.isActive()&&(b=2);if(this.i!==b){this.i=b;switch(b){case 1:this.Ma("icon",aK());break;case 2:this.Ma("icon",g.bK())}g.M(this.element,"ytp-remote-button-active",this.isActive())}};
iP.prototype.j=function(){this.G.getOption("remote","quickCast")?this.G.setOption("remote","quickCast",!0):this.qb.MB(this.element);this.G.ub(this.element)};g.v(jP,g.W);jP.prototype.i=function(a){g.XJ(this,this.j&&400<=a.width)};
jP.prototype.u=function(){var a=this.qb;a.sb?a.Db():a.jd(this.element)};g.v(kP,g.yN);kP.prototype.onClick=function(){this.qb.Db()};g.v(mP,kP);mP.prototype.onClick=function(){kP.prototype.onClick.call(this);this.G.Oa("onCollapseMiniplayer");this.G.ub(this.element)};
mP.prototype.Ja=function(){var a=!this.G.isFullscreen();lP(this,a);this.G.Za(this.element,this.i)};g.v(nP,kP);nP.prototype.isActive=function(){return!!this.G.getOption("remote","casting")};
nP.prototype.Ja=function(){var a=!1;this.G.getOptions().includes("remote")&&(a=1<this.G.getOption("remote","receivers").length);lP(this,a&&!this.G.isFullscreen());this.G.Za(this.element,this.i);var b=1;a&&this.isActive()&&(b=2);if(this.u!==b)switch(this.u=b,b){case 1:this.Ma("icon",{D:"svg",V:{height:"24",version:"1.1",viewBox:"6 6 24 24",width:"24"},U:[{D:"path",Fb:!0,V:{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.Ma("icon",{D:"svg",V:{height:"24",version:"1.1",viewBox:"6 6 24 24",width:"24"},U:[{D:"path",Fb:!0,V:{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"}}]})}};
nP.prototype.onClick=function(){kP.prototype.onClick.call(this);this.G.getOption("remote","quickCast")?this.G.setOption("remote","quickCast",!0):this.B.MB(this.element);this.G.ub(this.element)};g.v(oP,kP);oP.prototype.onClick=function(){kP.prototype.onClick.call(this);vY(this.G.app);this.G.ub(this.element)};
oP.prototype.Ja=function(){var a=this.G.Hw()&&!this.G.isFullscreen()&&3!==this.G.getPresentingPlayerType();lP(this,a);this.i&&(a=this.G.isWidescreen(),this.isWidescreen!==a&&(AN(this,a?{D:"svg",V:{height:"24",version:"1.1",viewBox:"6 6 24 24",width:"24"},U:[{D:"path",Fb:!0,V:{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"}}]}:{D:"svg",V:{height:"24",version:"1.1",viewBox:"6 6 24 24",width:"24"},U:[{D:"path",Fb:!0,V:{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.j.Ma("title",a?"Default view":"Theater mode")));this.G.Za(this.element,this.i)};g.v(pP,g.LN);pP.prototype.jd=function(a){0<this.Vc.items.length&&g.LN.prototype.jd.call(this,a)};
pP.prototype.zc=function(a){this.Vc.zc(a);a=this.Pm;a.j=0<this.Vc.items.length;a.i(a.G.bb().getPlayerSize())};
pP.prototype.hf=function(a){this.sb&&1>=this.Vc.items.length&&this.hide();this.Vc.hf(a);a=this.Pm;a.j=0<this.Vc.items.length;a.i(a.G.bb().getPlayerSize())};
pP.prototype.MB=function(){};g.v(qP,g.W);qP.prototype.i=function(a){var b=400;this.G.T().C&&(b=200);a=this.j&&a.width>=b;g.XJ(this,a);this.G.Za(this.element,a)};
qP.prototype.u=function(){if(this.qb.sb)this.qb.Db();else{var a=g.BM(this.G.tb());a&&!a.loaded&&(a.tf("tracklist",{includeAsr:!0}).length||a.load());this.G.ub(this.element);this.qb.jd(this.element)}};
qP.prototype.updateBadge=function(){var a=this.G.isHdr(),b=this.G.getPresentingPlayerType(),c=2!==b&&3!==b,d=g.eM(this.G),e=c&&!!g.dM(this.G.tb());b=e&&1===d.displayMode;d=e&&2===d.displayMode;c=(e=b||d)||!c?null:this.G.getPlaybackQuality();g.M(this.element,"ytp-hdr-quality-badge",a);g.M(this.element,"ytp-hd-quality-badge",!a&&("hd1080"===c||"hd1440"===c));g.M(this.element,"ytp-4k-quality-badge",!a&&"hd2160"===c);g.M(this.element,"ytp-5k-quality-badge",!a&&"hd2880"===c);g.M(this.element,"ytp-8k-quality-badge",
!a&&"highres"===c);g.M(this.element,"ytp-3d-badge-grey",!a&&e&&b);g.M(this.element,"ytp-3d-badge",!a&&e&&d)};g.v(sP,GN);sP.prototype.isLoaded=function(){var a=g.IM(this.G.tb());return void 0!==a&&a.loaded};
sP.prototype.Ja=function(){void 0!==g.IM(this.G.tb())&&3!==this.G.getPresentingPlayerType()?this.i||(this.qb.zc(this),this.i=!0):this.i&&(this.qb.hf(this),this.i=!1);this.setValue(this.isLoaded())};
sP.prototype.j=function(a){this.isLoaded();a?this.G.loadModule("annotations_module"):this.G.unloadModule("annotations_module");this.G.Z("annotationvisibility",a)};
sP.prototype.ra=function(){this.i&&this.qb.hf(this);GN.prototype.ra.call(this)};g.v(g.tP,g.yN);g.h=g.tP.prototype;g.h.open=function(){g.JN(this.qb,this.u)};
g.h.Zh=function(a){SBa(this);this.options[a].element.setAttribute("aria-checked","true");this.zd(this.vj(a));this.j=a};
g.h.MD=function(a,b,c){var d=this;b=new g.yN({D:"div",Ga:["ytp-menuitem"],V:{tabindex:"0",role:"menuitemradio","aria-checked":c?"true":void 0},U:[{D:"div",Ga:["ytp-menuitem-label"],qa:"{{label}}"}]},b,this.vj(a,!0));b.Pa("click",function(){d.If(a)});
return b};
g.h.enable=function(a){this.B?a||(this.B=!1,this.Mr(!1)):a&&(this.B=!0,this.Mr(!0))};
g.h.Mr=function(a){a?this.qb.zc(this):this.qb.hf(this)};
g.h.If=function(a){this.Z("select",a)};
g.h.vj=function(a){return a.toString()};
g.h.LQ=function(a){g.Gu(a)||39!==g.Hu(a)||(this.open(),g.Fu(a))};
g.h.ra=function(){this.B&&this.qb.hf(this);g.yN.prototype.ra.call(this);for(var a=g.q(Object.keys(this.options)),b=a.next();!b.done;b=a.next())this.options[b.value].dispose()};g.v(vP,g.tP);vP.prototype.Ja=function(){var a=this.G.getAvailableAudioTracks();1<a.length?(g.uP(this,g.po(a,this.C)),this.tracks=g.vc(a,this.C,this),this.i.zd(a.length?" ("+a.length+")":""),this.Z("size-change"),this.Zh(this.C(this.G.getAudioTrack())),this.enable(!0)):this.enable(!1)};
vP.prototype.If=function(a){g.tP.prototype.If.call(this,a);this.G.setAudioTrack(this.tracks[a]);this.qb.rh()};
vP.prototype.C=function(a){return a.toString()};g.v(wP,GN);
wP.prototype.j=function(){var a=this.G.getPresentingPlayerType();if(2!==a&&3!==a&&g.gM(this.G))this.i||(this.qb.zc(this),this.i=!0,this.u.push(this.S(this.G,"videodatachange",this.j)),this.u.push(this.S(this.G,"videoplayerreset",this.j)),this.u.push(this.S(this.G,"onPlaylistUpdate",this.j)),this.u.push(this.S(this.G,"autonavchange",this.B)),a=this.G.getVideoData(),this.B(a.autonavState),this.G.Za(this.element,this.i));else if(this.i){this.qb.hf(this);this.i=!1;a=g.q(this.u);for(var b=a.next();!b.done;b=a.next())this.xc(b.value)}};
wP.prototype.B=function(a){this.setValue(1!==a)};
wP.prototype.C=function(a){this.G.vB(a?2:1);this.i&&(this.G.Za(this.element,this.i),this.G.ub(this.element))};
wP.prototype.ra=function(){this.i&&this.qb.hf(this);GN.prototype.ra.call(this)};g.v(xP,g.cN);xP.prototype.jd=function(){g.cN.prototype.jd.call(this);this.dialog.focus()};g.v(yP,g.yN);yP.prototype.dc=function(a){this.j&&this.G.Za(this.element,this.i&&a)};
yP.prototype.B=function(){var a,b,c=null==(a=this.G.getVideoData())?void 0:null==(b=a.accountLinkingConfig)?void 0:b.linked;if(c&&!this.i){var d;a=null==(d=this.G.getVideoData())?void 0:d.accountLinkingConfig;var e;this.Ff(zP(null==a?void 0:null==(e=a.menuData)?void 0:e.connectedMenuLabel));var f,k,l;this.u=new xP(this.G,zP(null==a?void 0:null==(f=a.menuData)?void 0:f.connectedDialogTitle),zP(null==a?void 0:null==(k=a.menuData)?void 0:k.connectedDialogMessage),zP(null==a?void 0:null==(l=a.menuData)?
void 0:l.confirmButtonText));g.J(this,this.u);var m;d=(null==a?void 0:null==(m=a.menuData)?void 0:m.trackingParams)||null;if(this.j=!!d)this.G.Vg(this.element,this,!0),this.G.Xj(this.element,d);this.qb.zc(this);this.i=!0}else!c&&this.i&&(this.qb.hf(this),this.i=!1)};
yP.prototype.onClick=function(){this.j&&this.G.ub(this.element);this.qb.Db();this.u&&this.u.jd()};g.v(AP,g.W);AP.prototype.onClick=function(){this.qb.Db()};
AP.prototype.Ff=function(a){this.Ma("label",a);this.Pm.Ma("title",a)};g.v(BP,AP);BP.prototype.onClick=function(){AP.prototype.onClick.call(this);this.G.Oa("onCollapseMiniplayer");this.G.ub(this.element)};
BP.prototype.Ja=function(){var a=!this.G.isFullscreen();g.XJ(this,a);this.G.Za(this.element,a)};g.v(CP,g.tP);g.h=CP.prototype;g.h.Uu=function(){var a=this.G.getPresentingPlayerType();if(2!==a&&3!==a&&(this.C=this.G.On(),a=this.G.getAvailableQualityLevels(),g.vza(this.G)&&g.wza(this.G)&&a.unshift("missing-qualities"),xza(this.G)&&a.unshift("inline-survey"),g.uP(this,a),a.length)){this.bJ();this.enable(!0);return}this.enable(!1)};
g.h.bJ=function(){var a=this.G.getPreferredQuality();this.options[a]&&(this.i=this.G.getPlaybackQuality(),this.Zh(a),"auto"===a&&this.zd(this.vj(a)))};
g.h.If=function(a){"missing-qualities"!==a&&(g.tP.prototype.If.call(this,a),this.G.setPlaybackQuality(a),this.qb.Db(),this.Uu())};
g.h.open=function(){g.tP.prototype.open.call(this);this.G.ub(this.element)};
g.h.MD=function(a,b,c){var d=this;if("inline-survey"!==a)return g.tP.prototype.MD.call(this,a,b,c);a=[{D:"span",qa:"Looks good?"}];c={};for(var e=g.q([!0,!1]),f=e.next();!f.done;c={uy:c.uy},f=e.next())c.uy=f.value,f=new g.W({D:"span",K:"ytp-menuitem-inline-survey-response",U:[c.uy?g.gK():Wxa()],V:{tabindex:"0",role:"button"}}),f.Pa("click",function(k){return function(){var l=k.uy,m=g.hM(d.G.app);m&&(m.Ba("iqsr",{tu:l}),m.getVideoData().qI=!0);d.qb.Db();d.Uu()}}(c)),a.push(f);
return new g.yN({D:"div",K:"ytp-menuitem",V:{"aria-disabled":"true"},U:[{D:"div",Ga:["ytp-menuitem-label"],U:a}]},b)};
g.h.vj=function(a,b){b=void 0===b?!1:b;if("missing-qualities"===a)return{D:"a",V:{href:"https://web.archive.org/web/20220130220643/https://support.google.com/youtube/?p=missing_quality",target:this.G.T().I},qa:"Missing options?"};if("inline-survey"===a)return"";var c=[TBa(this,a)],d=this.G.getPreferredQuality();b||"auto"!==d||"auto"!==a||(c.push(" "),c.push(TBa(this,this.i,["ytp-menu-label-secondary"])));return{D:"div",U:c}};g.v(DP,AP);DP.prototype.isActive=function(){return!!this.G.getOption("remote","casting")};
DP.prototype.Ja=function(){var a=!1;this.G.getOptions().includes("remote")&&(a=1<this.G.getOption("remote","receivers").length);g.XJ(this,a);this.G.Za(this.element,this.sb);var b=1;a&&this.isActive()&&(b=2);if(this.i!==b)switch(this.i=b,b){case 1:this.Ma("icon",aK());break;case 2:this.Ma("icon",g.bK())}};
DP.prototype.onClick=function(){AP.prototype.onClick.call(this);this.G.getOption("remote","quickCast")?this.G.setOption("remote","quickCast",!0):this.qb.MB(this.element);this.G.ub(this.element)};g.v(EP,g.YJ);EP.prototype.addButton=function(a){this.element.appendChild(a.element)};
EP.prototype.removeButton=function(a){this.element.removeChild(a.element)};g.v(FP,AP);FP.prototype.onClick=function(){AP.prototype.onClick.call(this);vY(this.G.app);this.G.ub(this.element)};
FP.prototype.Ja=function(){g.XJ(this,this.G.Hw()&&!this.G.isFullscreen()&&3!==this.G.getPresentingPlayerType());if(this.sb){var a=this.G.isWidescreen();this.isWidescreen!==a&&(this.Pm.Ma("icon",a?Vxa():oK()),this.Ff(UM(this.G,a?"Default view":"Theater mode","t")),this.isWidescreen=a)}this.G.Za(this.element,this.sb)};g.v(GP,g.W);g.h=GP.prototype;g.h.init=function(){this.Rq(this.i);this.Ma("minvalue",this.minimumValue);this.Ma("maxvalue",this.maximumValue)};
g.h.OQ=function(a){if(!g.Gu(a)){switch(g.Hu(a)){case 37:case 40:var b=-this.I;break;case 39:case 38:b=this.I;break;default:return}this.Rq(this.i+b);g.Fu(a)}};
g.h.MQ=function(a){var b=this.i;b+=0>(a.deltaX||-a.deltaY)?-this.C:this.C;this.Rq(b);g.Fu(a)};
g.h.NQ=function(a){a=(a-g.co(this.j).x)/this.J*this.range+this.minimumValue;this.Rq(a)};
g.h.Rq=function(a,b){b=void 0===b?"":b;a=g.Yg(a,this.minimumValue,this.maximumValue);""===b&&(b=a.toString());this.Ma("valuenow",a);this.Ma("valuetext",b);this.N.style.left=(a-this.minimumValue)/this.range*(this.J-this.Y)+"px";this.i=a};
g.h.focus=function(){this.ea.focus()};g.v(IP,GP);IP.prototype.W=function(){this.G.setPlaybackRate(this.i,!0)};
IP.prototype.Rq=function(a){GP.prototype.Rq.call(this,a,JP(this,a).toString());this.u&&(HP(this),this.xa())};
IP.prototype.ya=function(){var a=this.G.getPlaybackRate();JP(this,this.i)!==a&&(this.Rq(a),HP(this))};g.v(KP,g.YJ);KP.prototype.focus=function(){this.i.focus()};g.v(UBa,BN);g.v(LP,g.tP);g.h=LP.prototype;g.h.vj=function(a){return"1"===a?"Normal":a.toLocaleString()};
g.h.Ja=function(){var a=this.G.getPresentingPlayerType();this.enable(2!==a&&3!==a);XBa(this)};
g.h.Mr=function(a){g.tP.prototype.Mr.call(this,a);a?(this.J=this.S(this.G,"onPlaybackRateChange",this.onPlaybackRateChange),XBa(this),VBa(this,this.G.getPlaybackRate())):(this.xc(this.J),this.J=null)};
g.h.onPlaybackRateChange=function(a){var b=this.G.getPlaybackRate();this.I.includes(b)||WBa(this,b);VBa(this,a)};
g.h.If=function(a){g.tP.prototype.If.call(this,a);a===this.i?this.G.setPlaybackRate(this.C,!0):this.G.setPlaybackRate(Number(a),!0);this.qb.rh()};g.v(NP,g.tP);g.h=NP.prototype;g.h.Zh=function(a){g.tP.prototype.Zh.call(this,a)};
g.h.getKey=function(a){return a.option.toString()};
g.h.getOption=function(a){return this.settings[a]};
g.h.vj=function(a){return this.getOption(a).text||""};
g.h.If=function(a){g.tP.prototype.If.call(this,a);this.Z("settingChange",this.setting,this.settings[a].option)};g.v(OP,g.CN);OP.prototype.Gf=function(a){for(var b=g.q(Object.keys(a)),c=b.next();!c.done;c=b.next()){var d=c.value;if(c=this.Eo[d]){var e=a[d].toString();d=!!a[d+"Override"];c.options[e]&&(c.Zh(e),c.C.element.setAttribute("aria-checked",String(!d)),c.i.element.setAttribute("aria-checked",String(d)))}}};
OP.prototype.oh=function(a,b){this.Z("settingChange",a,b)};g.v(PP,g.tP);PP.prototype.getKey=function(a){return a.languageCode};
PP.prototype.vj=function(a){return this.languages[a].languageName||""};
PP.prototype.If=function(a){this.Z("select",a);this.G.ub(this.element);g.NN(this.qb)};g.v(QP,g.tP);g.h=QP.prototype;g.h.getKey=function(a){return g.uf(a)?"__off__":a.displayName};
g.h.vj=function(a){return"__off__"===a?"Off":"__translate__"===a?"Auto-translate":"__contribute__"===a?"Add subtitles/CC":("__off__"===a?{}:this.tracks[a]).displayName};
g.h.If=function(a){"__translate__"===a?this.i.open():"__contribute__"===a?(this.G.pauseVideo(),this.G.isFullscreen()&&this.G.toggleFullscreen(),a=g.NL(this.G.T(),this.G.getVideoData()),g.lL(a)):(this.G.ub(this.element),this.G.setOption("captions","track","__off__"===a?{}:this.tracks[a]),g.tP.prototype.If.call(this,a),this.qb.rh())};
g.h.Ja=function(){var a=this.G.getOptions();a=a&&-1!==a.indexOf("captions");var b=this.G.getVideoData();b=b&&b.wp;var c,d=!(null==(c=this.G.getVideoData())||!g.$F(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.vc(c,this.getKey,this);d=g.po(c,this.getKey);if(f.length&&!g.uf(e)){var k=e.translationLanguage;if(k&&k.languageName){var l=k.languageName;
k=f.findIndex(function(m){return m.languageName===l});
taa(f,k)}ZBa(this.i,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.uP(this,d);this.Zh(f);e&&e.translationLanguage?this.i.Zh(this.i.getKey(e.translationLanguage)):SBa(this.i);a&&this.C.Gf(this.G.getSubtitlesUserSettings());this.J.zd(c&&c.length?" ("+c.length+")":"");this.Z("size-change");this.G.Za(this.element,!0);this.enable(!0)}else this.enable(!1)};
g.h.PQ=function(a){var b=this.G.getOption("captions","track");b=g.yf(b);b.translationLanguage=this.i.languages[a];this.G.setOption("captions","track",b)};
g.h.oh=function(a,b){if("reset"===a)this.G.resetSubtitlesUserSettings();else{var c={};c[a]=b;this.G.updateSubtitlesUserSettings(c)}$Ba(this,!0);this.I.start();this.C.Gf(this.G.getSubtitlesUserSettings())};
g.h.hX=function(a){a||g.jr(this.I)};
g.h.ra=function(){g.jr(this.I);g.tP.prototype.ra.call(this)};g.v(RP,g.LN);g.h=RP.prototype;g.h.initialize=function(){if(!this.isInitialized){this.isInitialized=!0;this.FF=new yP(this.G,this);g.J(this,this.FF);var a=new CP(this.G,this);g.J(this,a);a=new QP(this.G,this);g.J(this,a);a=new sP(this.G,this);g.J(this,a);this.G.T().qc&&(a=new LP(this.G,this),g.J(this,a));this.G.T().hc&&!this.G.T().L("web_player_move_autonav_toggle")&&(a=new wP(this.G,this),g.J(this,a));a=new vP(this.G,this);g.J(this,a);rP(this.settingsButton,this.Vc.items.length)}};
g.h.zc=function(a){this.initialize();this.Vc.zc(a);rP(this.settingsButton,this.Vc.items.length)};
g.h.hf=function(a){this.sb&&1>=this.Vc.items.length&&this.hide();this.Vc.hf(a);rP(this.settingsButton,this.Vc.items.length)};
g.h.jd=function(a){this.initialize();0<this.Vc.items.length&&g.LN.prototype.jd.call(this,a)};
g.h.show=function(){g.LN.prototype.show.call(this);g.L(this.G.getRootNode(),"ytp-settings-shown")};
g.h.hide=function(){g.LN.prototype.hide.call(this);g.pr(this.G.getRootNode(),"ytp-settings-shown")};
g.h.Me=function(a){this.G.Za(this.element,a);var b;null==(b=this.FF)||b.dc(a)};
g.h.MB=function(a){if(this.ag())this.Db();else{this.initialize();a:{var b=g.q(this.Vc.items);for(var c=b.next();!c.done;c=b.next())if(c=c.value,0===c.priority){b=c;break a}b=null}b&&(b.open(),this.jd(a));this.jd(a)}};g.v(SP,g.W);SP.prototype.onClick=function(){vY(this.G.app);this.G.ub(this.element)};
SP.prototype.Ja=function(){g.XJ(this,this.G.Hw()&&!this.G.isFullscreen()&&3!==this.G.getPresentingPlayerType());if(this.sb){var a=this.G.isWidescreen();if(this.isWidescreen!==a){var b=a?Vxa():oK();null==this.isWidescreen?this.Ma("icon",b):iBa(this.transition,this.element,b);this.isWidescreen=a;b=UM(this.G,"Default view","t");var c=UM(this.G,"Theater mode","t");this.Ma("title",a?b:c);RN(this.tooltip)}}this.G.Za(this.element,this.sb)};g.v(g.TP,g.W);g.TP.prototype.onClick=function(){if(null!=g.BM(this.G.tb())&&(this.G.toggleSubtitles(),this.G.ub(this.element),!this.isEnabled())){var a=!1,b=g.wv(g.vv.getInstance(),65);g.xE(this.G.T())&&null!=b&&(a=!b);a&&this.G.T().L("web_player_nitrate_promo_tooltip")&&this.G.Z("showpromotooltip",this.element)}};
g.TP.prototype.i=function(a){var b,c;null==(b=g.WL(this.G))||null==(c=b.Vn())||c.jd(a)};
g.TP.prototype.isEnabled=function(){return!!this.G.getOption("captions","track").displayName};
g.TP.prototype.Ja=function(){var a=null!=g.BM(this.G.tb()),b=300;this.G.T().C&&(b=480);if(this.G.T().L("web_player_unavailable_subtitles_button_killswitch")){this.Ma("title",UM(this.G,"Subtitles/closed captions","c"));var c=a}else{if(a)null==(c=g.wh("ytp-subtitles-button-icon"))||c.removeAttribute("fill-opacity"),this.Ma("title",UM(this.G,"Subtitles/closed captions","c"));else{var d;null==(d=g.wh("ytp-subtitles-button-icon"))||d.setAttribute("fill-opacity","0.3");this.Ma("title","Subtitles/closed captions unavailable")}c=
!0}RN(this.tooltip);c=c&&this.G.bb().getPlayerSize().width>=b;g.XJ(this,c);this.G.Za(this.element,c);a&&this.Ma("pressed",this.isEnabled())};g.v(g.VP,g.W);g.h=g.VP.prototype;
g.h.Rb=function(){var a=this.api.bb().getPlayerSize().width,b=this.J;this.api.T().C&&(b=400);b=a>=b&&(!XP(this)||!g.V(this.api.zb(),64));g.XJ(this,b);g.M(this.element,"ytp-time-display-allow-autohide",b&&400>a);a=this.api.getProgressState();if(b){b=this.api.getPresentingPlayerType();var c=this.api.T().L("halftime_ux_killswitch")?a.current:this.api.getCurrentTime(b,!1);this.j&&(c-=a.airingStart);WP(this)&&this.api.T().L("enable_fully_expanded_clip_range_in_progress_bar")&&(c-=this.Nb.startTimeMs/1E3);
c=g.$K(c);this.u!==c&&(this.Ma("currenttime",c),this.u=c);b=WP(this)&&this.api.T().L("enable_fully_expanded_clip_range_in_progress_bar")?g.$K((this.Nb.endTimeMs-this.Nb.startTimeMs)/1E3):g.$K(this.api.T().L("halftime_ux_killswitch")?a.duration:this.api.getDuration(b,!1));this.B!==b&&(this.Ma("duration",b),this.B=b)}a=a.isAtLiveHead;!XP(this)||this.I===a&&this.C===this.isPremiere||(this.I=a,this.C=this.isPremiere,this.Rb(),b=this.liveBadge.element,b.disabled=a,this.liveBadge.zd(this.isPremiere?"Premiere":
"Live"),a?this.i&&(this.i(),this.i=null,b.removeAttribute("title")):(b.title="Skip ahead to live broadcast.",this.i=g.rN(this.tooltip,this.liveBadge.element)));a=this.api.getLoopRange();b=this.Nb!==a;this.Nb=a;b&&UP(this)};
g.h.onLoopRangeChange=function(a){var b=this.Nb!==a;this.Nb=a;b&&(this.Rb(),UP(this))};
g.h.PX=function(){this.api.setLoopRange(null)};
g.h.onVideoDataChange=function(a,b,c){this.updateVideoData((this.api.T().L("enable_topsoil_wta_for_halftime")||this.api.T().L("enable_topsoil_wta_for_halftime_live_infra"))&&2===c?this.api.getVideoData(1):b);this.Rb();UP(this)};
g.h.updateVideoData=function(a){this.isLiveVideo=a.isLivePlayback&&!a.wb;this.j=cG(a);this.isPremiere=a.isPremiere;g.M(this.element,"ytp-live",XP(this))};
g.h.onClick=function(a){a.target===this.liveBadge.element&&(this.api.seekTo(Infinity),this.api.playVideo())};
g.h.ra=function(){this.i&&this.i();g.W.prototype.ra.call(this)};g.v($P,g.W);g.h=$P.prototype;g.h.Jm=function(){var a=this.i.Ye();this.B!==a&&(this.B=a,ZP(this,this.api.getVolume(),this.api.isMuted()))};
g.h.cJ=function(a){g.XJ(this,350<=a.width)};
g.h.SQ=function(a){if(!g.Gu(a)){var b=g.Hu(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.Yg(c,0,100),0===c?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(c)),g.Fu(a))}};
g.h.QQ=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.Yg(b/10,-10,10));g.Fu(a)};
g.h.mX=function(){YP(this,this.j,!0,this.u,this.i.Ei());this.W=this.volume;this.api.isMuted()&&this.api.unMute()};
g.h.RQ=function(a){var b=this.B?78:52,c=this.B?18:12;a-=g.co(this.N).x;this.api.setVolume(100*g.Yg((a-c/2)/(b-c),0,1))};
g.h.lX=function(){YP(this,this.j,!1,this.u,this.i.Ei());0===this.volume&&(this.api.mute(),this.api.setVolume(this.W))};
g.h.onVolumeChange=function(a){ZP(this,a.volume,a.muted)};
g.h.FK=function(){YP(this,this.j,this.isDragging,this.u,this.i.Ei())};
g.h.ra=function(){g.W.prototype.ra.call(this);g.pr(this.J,"ytp-volume-slider-active")};g.v(g.aQ,g.W);g.aQ.prototype.onVideoDataChange=function(){var a=this.api.getVideoData(1).C,b=this.api.T();this.visible=!!this.api.getVideoData().videoId&&!(a&&b.pfpChazalUi);g.XJ(this,this.visible);this.api.Za(this.element,this.visible&&this.va);this.visible&&(a=this.api.getVideoUrl(!0,!1,!1,!0),this.Ma("url",a))};
g.aQ.prototype.onClick=function(a){var b=this.api.getVideoUrl(!g.aL(a),!1,!0,!0);if(g.WD(this.api.T())||g.gE(this.api.T()))b=g.Hj(b,g.OL("emb_logo"));g.RM(b,this.api,a);this.api.ub(this.element)};
g.aQ.prototype.yb=function(){var a={D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},U:[{D:"path",Fb:!0,K:"ytp-svg-fill",V:{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.gE(this.api.T())){var b=this.Da("ytp-youtube-music-button"),c=300>this.api.getPlayerSize().width;a=c?{D:"svg",V:{fill:"none",height:"24",width:"24"},U:[{D:"circle",V:{cx:"12",cy:"12",fill:"red",r:"12"}},{D:"ellipse",V:{cx:"12.18",cy:"12",fill:"red",rx:"7.308",ry:"7.2",stroke:"#fff","stroke-width":"1.2"}},{D:"path",V:{d:"M9.74 15.54l6.32-3.54-6.32-3.54v7.09z",fill:"#fff"}}]}:{D:"svg",V:{viewBox:"0 0 80 24"},U:[{D:"ellipse",V:{cx:"12.18",cy:"12",fill:"red",rx:"12.18",ry:"12"}},{D:"ellipse",V:{cx:"12.18",
cy:"12",fill:"red",rx:"7.308",ry:"7.2",stroke:"#fff","stroke-width":"1.2"}},{D:"path",V:{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.M(b,"ytp-youtube-music-logo-icon-only",c)}this.Ma("logoSvg",a)};
g.aQ.prototype.dc=function(a){g.W.prototype.dc.call(this,a);this.api.Za(this.element,this.visible&&a)};g.v(bQ,g.sC);g.h=bQ.prototype;g.h.Dd=function(){this.Jc.Rb();this.Jg.Rb()};
g.h.Pj=function(){this.LC();if(this.Fd.j){this.Dd();var a;null==(a=this.N)||a.show()}else{g.kQ(this.Jc.tooltip);var b;null==(b=this.N)||b.hide()}};
g.h.Bq=function(){this.Dd();this.Sd.start()};
g.h.LC=function(){var a=!this.G.T().isMobile&&300>g.RBa(this.Jc)&&this.G.zb().Ic()&&!!window.requestAnimationFrame,b=!a;this.Fd.j||(a=b=!1);b?this.J||(this.J=this.S(this.G,"progresssync",this.Dd)):this.J&&(this.xc(this.J),this.J=null);a?this.Sd.isActive()||this.Sd.start():this.Sd.stop()};
g.h.yb=function(){var a=this.u.Ye(),b=this.G.bb().getPlayerSize(),c=cQ(this),d=Math.max(b.width-2*c,100);if(this.La!==b.width||this.Ia!==a){this.La=b.width;this.Ia=a;var e=eCa(this);this.j.element.style.width=e+"px";this.j.element.style.left=c+"px";g.gP(this.Jc,c,e,a);this.u.jc().MC=e}c=this.settingsMenu;e=Math.min(413*(a?1.5:1),Math.round(.82*(b.height-dQ(this))));c.maxWidth=Math.min(570*(a?1.5:1),d);c.Dy=e;c.vu();this.LC();!this.G.T().L("html5_player_bottom_linear_gradient")&&this.G.T().L("html5_player_dynamic_bottom_gradient")&&
g.tO(this.Qa,b.height)};
g.h.onVideoDataChange=function(){var a=this.G.getVideoData();this.xa.style.background=a.C?a.Wa:"";g.XJ(this.Y,a.aD)};g.v(eQ,nO);g.h=eQ.prototype;g.h.cG=function(a){a.target!==this.dismissButton.element&&(this.onClickCommand&&this.G.Oa("innertubeCommand",this.onClickCommand),this.u=!0,this.N.hide())};
g.h.dG=function(){this.u=!0;this.N.hide()};
g.h.onVideoDataChange=function(a,b){"newdata"===a&&(this.j=this.u=!1,fQ(this));a=b.suggestedAction;if(null==b.shoppingOverlayRenderer&&a){this.i=this.J=this.enabled=!0;this.text=(b=a.title)?g.Sy(b):"View Chapters";var c;if(b=null==(c=a.trigger)?void 0:c.suggestedActionTimeRangeTrigger){c=[];var d=b.timeRangeStartMillis;b=b.timeRangeEndMillis;null!=d&&null!=b&&c.push(new g.Ly(d,b,{priority:9,namespace:"suggested_action_button_visible"}));this.G.Nd(c)}this.onClickCommand=a.tapCommand;cBa(this);mO(this);
this.Xh()}};
g.h.Ox=function(){return!this.u&&this.enabled&&(this.j||this.i)};
g.h.Me=function(a){this.u||((this.j=a)?lO(this):(fQ(this),this.Y.start()),this.Xh())};
g.h.ra=function(){fQ(this);nO.prototype.ra.call(this)};var e3={},gQ=(e3.CHANNEL_NAME="ytp-title-channel-name",e3.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",e3.LINK="ytp-title-link",e3.SESSIONLINK="yt-uix-sessionlink",e3.SUBTEXT="ytp-title-subtext",e3.TEXT="ytp-title-text",e3.TITLE="ytp-title",e3);g.v(hQ,g.W);hQ.prototype.onClick=function(a){this.api.ub(this.element);var b=this.api.getVideoUrl(!g.aL(a),!1,!0);g.WD(this.api.T())&&(b=g.Hj(b,g.OL("emb_title")));g.RM(b,this.api,a)};
hQ.prototype.Ja=function(){var a=this.api.getVideoData(),b=this.api.T();this.Ma("title",a.title);fCa(this);if(2===this.api.getPresentingPlayerType()){var c=this.api.getVideoData();c.videoId&&c.isListed&&c.author&&c.hc&&c.profilePicture?(this.Ma("channelLink",c.hc),this.Ma("channelName",c.author),this.Ma("channelTitleFocusable","0")):fCa(this)}c=b.externalFullscreen||!this.api.isFullscreen()&&b.kb;g.M(this.link,gQ.FULLERSCREEN_LINK,c);b.J||!a.videoId||c||a.C&&b.pfpChazalUi||b.fd?this.i&&(this.Ma("url",
null),this.xc(this.i),this.i=null):(this.Ma("url",this.api.getVideoUrl(!0)),this.i||(this.i=this.S(this.link,"click",this.onClick)))};g.v(g.iQ,g.W);g.h=g.iQ.prototype;g.h.tN=function(a,b){a<=this.u&&this.u<=b&&(a=this.u,this.u=NaN,hCa(this,a))};
g.h.lU=function(){Rta(this.i,this.u,160*this.scale)};
g.h.xk=function(){switch(this.type){case 2:var a=this.j;a.removeEventListener("mouseout",this.W);a.addEventListener("mouseover",this.B);a.removeEventListener("blur",this.W);a.addEventListener("focus",this.B);kCa(this);break;case 3:kCa(this);break;case 1:this.i&&(this.i.unsubscribe("l",this.tN,this),this.i=null),this.api.removeEventListener("videoready",this.Y),this.ea.stop()}this.type=null;this.J&&this.C.hide()};
g.h.wj=function(){if(this.j)for(var a=0;a<arguments.length;a++)g.Th(arguments[a],this.j)&&this.xk()};
g.h.ra=function(){null!=this.type&&this.xk();this.i&&this.i.dispose();g.W.prototype.ra.call(this)};g.v(g.lQ,g.W);g.h=g.lQ.prototype;g.h.Ey=function(){var a=this.G.getPlayerSize(),b=this.G.T(),c=this.G.getVideoData(),d=g.WD(b)&&g.cM(this.G)&&g.V(this.G.zb(),128);this.visible=b.nk&&240<=a.width&&!c.isAd()&&c.Rf&&!d&&!(c.C&&b.pfpChazalUi);g.XJ(this,this.visible);this.icon&&oCa(this,this.icon);this.G.Za(this.element,this.visible&&this.va)};
g.h.dJ=function(){return this.G.getVideoData().videoId};
g.h.onClick=function(){var a=this;this.G.ub(this.element);var b=this.G.T(),c=this.dJ();b.authUser?lCa(this):this.G.DB()?this.G.requestStorageAccess(function(){g.Fv("embedsItpWatchLaterResult",{accepted:!0});gv();mCa(a,c)},function(){g.Fv("embedsItpWatchLaterResult",{accepted:!1});
nCa(a,"Sorry, saving failed because your cookies are blocked by the browser.")}):mCa(this,c)};
g.h.TQ=function(){this.isRequestPending=this.i=!1;this.Ja(2)};
g.h.Ja=function(a,b){var c=this.G.T();oCa(this,a);b?this.update({title:b,image:null}):c.userDisplayName?(a={USER_NAME:c.userDisplayName},this.update({title:this.i?g.kH("Added as $USER_NAME",a):g.kH("Watch later as $USER_NAME",a),image:CE(c)})):this.update({title:"Watch later",image:null});RN(this.tooltip)};
g.h.dc=function(a){g.W.prototype.dc.call(this,a);this.G.Za(this.element,this.visible&&a)};g.v(mQ,g.gN);g.h=mQ.prototype;g.h.jc=function(){return this.tooltip};
g.h.BL=function(){return this.Hf};
g.h.Fn=function(a,b){b?this.Pk=a:this.Pk=null;this.mj()};
g.h.Gs=function(a,b){if(b)this.Go.push(a);else for(b=this.Go.length;0<=b;b--)if(this.Go[b]===a){this.Go.splice(b,1);break}MM(this.Fd,64,0<this.Go.length)};
g.h.Wo=function(){this.api.Gh()&&this.api.Jk();return!!this.Pk||pCa(this)||g.gN.prototype.Wo.call(this)};
g.h.mj=function(){var a=!this.Wo(),b=a&&this.api.Gh()&&!g.V(this.api.zb(),2)&&!(this.api.getVideoData().C&&this.api.T().pfpChazalUi),c=this.iq&&g.cM(this.api)&&g.V(this.api.zb(),128);a||c?(this.KH.show(),this.LH.show()):(this.KH.hide(),this.LH.hide(),this.tooltip.wj(this.Vh.element));b?this.xi.jd():this.xi.Db();this.Hf&&dCa(this.Hf,!a);g.gN.prototype.mj.call(this)};
g.h.Iq=function(a,b,c,d,e){a.style.left="";a.style.top="";a.style.bottom="";var f=g.io(a),k=d||this.Hf&&g.Th(this.Hf.j.element,b),l=d=null;null!=c&&k||(d=g.io(b),l=g.go(b,this.api.getRootNode()),null==c&&(c=l.x+d.width/2));c-=f.width/2;k?(b=this.Hf,d=cQ(b),l=eCa(b),k=this.api.bb().getPlayerSize().height,c=g.Yg(c,d,d+l-f.width),f=k-dQ(b)-f.height):g.Th(this.Vh.element,b)?(b=this.api.bb().getPlayerSize().width,c=g.Yg(c,12,b-f.width-12),f=this.Ye()?this.VD:this.UD,"gvn"===this.api.T().playerStyle&&(f+=
20),this.iq&&(f-=this.Ye()?26:18)):(b=this.api.bb().getPlayerSize(),c=g.Yg(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.h.Pj=function(a){a&&(this.tooltip.wj(this.Vh.element),this.Hf&&this.tooltip.wj(this.Hf.j.element));this.jA&&(g.M(this.contextMenu.element,"ytp-autohide",a),g.M(this.contextMenu.element,"ytp-autohide-active",!0));g.gN.prototype.Pj.call(this,a)};
g.h.bG=function(){g.gN.prototype.bG.call(this);this.jA&&(g.M(this.contextMenu.element,"ytp-autohide-active",!1),this.jA&&(this.contextMenu.hide(),this.fg&&this.fg.hide()))};
g.h.Dj=function(a,b){var c=this.api.bb().getPlayerSize();c=new g.qn(0,0,c.width,c.height);if(a||this.Fd.j&&!this.Wo()){if(this.api.T().pj||b)a=this.Ye()?this.VD:this.UD,c.top+=a,c.height-=a;this.Hf&&(c.height-=dQ(this.Hf))}return c};
g.h.Jm=function(a){var b=this.api.getRootNode();a?b.parentElement?(b.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.T().externalFullscreen||(b.parentElement.insertBefore(this.Az.element,b),b.parentElement.insertBefore(this.zz.element,b.nextSibling))):g.ot(Error("Player not in DOM.")):(b.setAttribute("aria-label","YouTube Video Player"),this.Az.detach(),this.zz.detach());this.yb();this.Xm()};
g.h.Ye=function(){var a=this.api.T();return this.api.isFullscreen()&&!a.C||!1};
g.h.showControls=function(a){this.jz=!a;this.mj()};
g.h.yb=function(){var a=this.Ye();this.tooltip.scale=a?1.5:1;this.contextMenu&&g.M(this.contextMenu.element,"ytp-big-mode",a);this.mj();if(this.Bf()&&this.fg)this.Bh&&bO(this.fg,this.Bh),this.shareButton&&bO(this.fg,this.shareButton),this.Ug&&bO(this.fg,this.Ug);else{if(this.fg){a=this.fg;for(var b=g.q(a.actionButtons),c=b.next();!c.done;c=b.next())c.value.detach();a.actionButtons=[]}this.Bh&&!g.Th(this.Kg.element,this.Bh.element)&&this.Bh.Ca(this.Kg.element);this.shareButton&&!g.Th(this.Kg.element,
this.shareButton.element)&&this.shareButton.Ca(this.Kg.element);this.Ug&&!g.Th(this.Kg.element,this.Ug.element)&&this.Ug.Ca(this.Kg.element)}this.Xm();g.gN.prototype.yb.call(this)};
g.h.KE=function(){if(pCa(this)&&!g.cM(this.api))return!1;var a=this.api.getVideoData();return!g.WD(this.api.T())||2===this.api.getPresentingPlayerType()||!this.qg||((a=this.qg||a.qg)?(a=a.embedPreview)?(a=a.thumbnailPreviewRenderer,a=a.videoDetails&&a.videoDetails.embeddedPlayerOverlayVideoDetailsRenderer||null):a=null:a=null,a&&a.collapsedRenderer&&a.expandedRenderer)?g.gN.prototype.KE.call(this):!1};
g.h.Xm=function(){g.gN.prototype.Xm.call(this);this.api.Za(this.title.element,!!this.bl);this.Ht&&this.Ht.dc(!!this.bl);this.channelAvatar.dc(!!this.bl);this.overflowButton&&this.overflowButton.dc(this.Bf()&&!!this.bl);this.shareButton&&this.shareButton.dc(!this.Bf()&&!!this.bl);this.Bh&&this.Bh.dc(!this.Bf()&&!!this.bl);this.Ug&&this.Ug.dc(!this.Bf()&&!!this.bl);if(!this.bl){this.tooltip.wj(this.Vh.element);for(var a=0;a<this.by.length;a++){var b=this.by[a];b.ag()&&b.Db()}}};
g.h.Yb=function(a){this.Hf&&dCa(this.Hf,this.Wo());this.mj();g.gN.prototype.Yb.call(this,a)};
g.h.handleGlobalKeyDown=function(a,b,c,d,e,f,k){return this.Bm?this.Bm.handleGlobalKeyDown(a,b,c,d,e,f,k):!1};
g.h.handleGlobalKeyUp=function(a,b,c,d,e,f,k){return this.Bm?this.Bm.handleGlobalKeyUp(a,b,c,d,e,f,k):!1};
g.h.Rk=function(){return this.contextMenu.sb?(this.contextMenu.Db(),!0):this.Go.length?(this.Go[this.Go.length-1].Db(),!0):this.Pk?(this.Pk.Db(),!0):g.gN.prototype.Rk.call(this)};
g.h.Jx=function(a,b){this.PF=b;this.Gs(a,b);this.EP()};
g.h.EP=function(){var a=this.PF||this.contextMenu.ag();this.JD!==a&&(this.JD=a,this.api.Oa("onAutonavPauseRequest",this.JD))};
g.h.hT=function(){nQ(this,this.api.getRootNode(),!0).focus()};
g.h.iT=function(){nQ(this,this.api.getRootNode(),!1).focus()};
g.h.Vn=function(){return this.Hf&&this.Hf.settingsMenu};
g.h.mw=function(){return this.Hf&&this.Hf.i};
g.h.Al=function(){this.Fd.Al()};
g.h.bA=function(){this.Ac.hide()};
g.h.Tq=function(a){this.Ac.Tq(!g.WI(a))};
g.h.Mt=function(a,b,c,d){this.Lv.Mt(a,b,c,d)};
g.h.yO=function(a,b){this.Lv.sB(a,b)};
g.h.AV=function(){qCa(this,!0)};
g.h.dW=function(a){qCa(this,!1,a)};g.v(g.oQ,g.tM);g.oQ.prototype.bj=function(){return!1};
g.oQ.prototype.create=function(){var a=this.player.T();g.eE(a)&&a.isMobile?this.chrome=new g.gN(this.player):this.chrome=new mQ(this.player);g.J(this,this.chrome);this.chrome.init();this.player.Fe("ux")};
g.oQ.prototype.Vv=function(){return this.chrome};var STa={W_:"captionTrack",q7:"ytMainChannelEntity",r7:"ytMainDownloadedVideoEntity",s7:"ytMainVideoEntity",g$:"offlineOrchestrationActionWrapperEntity",p$:"offlineVideoPolicy",q$:"offlineVideoStreams",aaa:"playbackData",Dca:"transfer",Yaa:"orchestrationWebSamplingEntity"};pQ.prototype.getState=function(){return this.store.getState()};
pQ.prototype.dispatch=function(a){return this.store.dispatch(a)};
pQ.prototype.subscribe=function(a){return this.store.subscribe(a)};
pQ.prototype.replaceReducer=function(a){return this.store.replaceReducer(a)};
pQ.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};for(var yCa={captionTrack:225,channelHandle:275,commerceCartListEntity:236,downloadQualityPickerEntity:202,fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,liveChatPollStateEntity:217,logoEntity:245,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pinnedProductEntity:273,playbackData:119,transfer:120,ytMainChannelEntity:152,ytMainDownloadedVideoEntity:155,
ytMainVideoEntity:151},xCa={},TTa=g.q(Object.entries(yCa)),f3=TTa.next();!f3.done;f3=TTa.next()){var UTa=g.q(f3.value),VTa=UTa.next().value,WTa=UTa.next().value,XTa=VTa,YTa=WTa;YTa&&(xCa[YTa]=XTa)};var ACa=!1,JQ,KQ,LQ,MQ,NQ;OQ.prototype.encrypt=function(a){var b=a.length;a=new Uint8Array(a.buffer.slice(a.byteOffset,a.byteOffset+b));for(var c=this.j,d=0;d<b&&16>this.i;)a[d++]^=c[this.i++];for(var e=b-(b-d)%16;d<e;)CCa(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(CCa(this),this.i=0;d<b;)a[d++]^=c[this.i++];return a};var DCa=!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 PQ;RQ.prototype.encrypt=function(a,b){var c=this,d,e;return g.B(function(f){if(1==f.i){d=QQ();if(!d)return f.return(c.i(a,b));va(f,3);return g.A(f,c.j(a,b,d),5)}if(3!=f.i)return f.return(f.j);e=xa(f);g.Rx(e);DCa=!0;return f.return(c.i(a,b))})};
RQ.prototype.j=function(a,b,c){var d=this,e,f,k;return g.B(function(l){switch(l.i){case 1:if(d.C){l.eb(2);break}e=d;return g.A(l,c.importKey("raw",d.B,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:e.C=l.j;case 2:return f={name:"AES-CTR",counter:b,length:128},g.A(l,c.encrypt(f,d.C,a),4);case 4:return k=l.j,l.return(new Uint8Array(k))}})};
RQ.prototype.i=function(a,b){this.u||(this.u=new OQ(this.B));BCa(this.u,b);return this.u.encrypt(a)};
RQ.prototype.decrypt=function(a,b){return this.encrypt(a,b)};
SQ.prototype.encrypt=function(a,b){this.i||(this.i=new OQ(this.j));BCa(this.i,b);return this.i.encrypt(a)};
SQ.prototype.decrypt=function(a,b){return this.encrypt(a,b)};TQ.prototype.reset=function(){GCa(this);this.update(this.u)};
TQ.prototype.update=function(a){var b=0,c=a.length;this.B+=c;this.j&&64<=this.j+c&&(this.I.set(a.subarray(0,64-this.j),this.j),b=64-this.j,this.j=0,FCa(this,this.I,0));for(;b+64<=c;b+=64)FCa(this,a,b);b<c&&(a=a.subarray(b),this.I.set(a,this.j),this.j+=a.length)};
var ECa=[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 g3={},ICa=(g3.INVALID_ENCODER_VERSION="Invalid encoder version",g3.KEY_CREATION_FAILED="Failed to create encoder key",g3.UNKNOWN_DECODE_ERROR="Failed to decode PES data",g3.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",g3.WRONG_DATA_TYPE="Encoder cannot process the data type",g3);g.v(UQ,g.Kv);g.v(WQ,NCa);WQ.prototype.u=function(a,b){b=VQ(b);a=(new TextEncoder).encode(JSON.stringify(a));return this.i.encrypt(a,b)};
WQ.prototype.j=function(a,b){if(!(a instanceof Uint8Array))throw JCa(1);var c=new TextDecoder;b=VQ(b);a=this.i.decrypt(a,b);return JSON.parse(c.decode(a))};g.v(XQ,NCa);XQ.prototype.u=function(a){return a};
XQ.prototype.j=function(a){if(a instanceof Uint8Array)throw JCa(0);return a};var RCa={captionTrack:Us,channelHandle:is,commerceCartListEntity:$s,downloadQualityPickerEntity:Ns,fakeChannel:rs,fakePlaylist:ts,fakePlaylistEntryCollection:us,fakeVideo:ws,fakeVideoDescription:xs,liveChatPollStateEntity:zs,logoEntity:ys,offlineOrchestrationActionWrapperEntity:Vs,offlineVideoPolicy:Ws,offlineVideoStreams:Xs,offlineabilityEntity:Os,orchestrationWebSamplingEntity:Ps,pinnedProductEntity:Ts,playbackData:Ys,transfer:Zs,ytMainChannelEntity:Rs,ytMainDownloadedVideoEntity:Qs,ytMainVideoEntity:Ss};var ZQ;g.v(gR,g.G);gR.prototype.u=function(a){dDa(this,a.data)};
gR.prototype.ra=function(){this.channel.close()};
var mR,gDa=void 0;nDa.prototype.request=function(a,b,c){b=void 0===b?{}:b;return this.locks.request(a,b,function(d){return c(d)})};g.v(pR,g.G);pR.prototype.u=function(a){this.api.Oa("onOfflineOperationFailure",a.data)};
pR.prototype.B=function(a){this.api.Z("offlinetransferpause",a.data)};
pR.prototype.ra=function(){var a;null==(a=this.i)||a.close();var b;null==(b=this.j)||b.close()};sDa.prototype.Me=function(){this.i&&rR(this)};var wR=g.C.caches,vR,xR;sR.prototype.open=function(a){return wR.open(uR(a))};
sR.prototype.has=function(a){return wR.has(uR(a))};
sR.prototype.delete=function(a){return wR.delete(uR(a))};
sR.prototype.match=function(a,b){var c=this,d,e,f,k,l,m;return g.B(function(n){switch(n.i){case 1:return g.A(n,c.keys(),2);case 2:d=n.j,e=g.q(d),f=e.next();case 3:if(f.done){n.eb(5);break}k=f.value;return g.A(n,c.open(k),6);case 6:return l=n.j,g.A(n,l.match(a,b),7);case 7:if(m=n.j)return n.return(m);f=e.next();n.eb(3);break;case 5:return n.return()}})};
g.v(tR,sR);tR.prototype.keys=function(){var a,b,c,d,e,f,k,l,m;return g.B(function(n){if(1==n.i)return a=[],b=Lv("CacheStorage keys"),g.A(n,wR.keys(),2);c=n.j;d=g.q(c);for(e=d.next();!e.done;e=d.next()){f=e.value;var p=f.indexOf(":");k=-1===p?{VA:f}:{VA:f.substring(0,p),datasyncId:f.substring(p+1)};l=k.VA;m=k.datasyncId;m===b&&a.push(l)}return n.return(a)})};Object.keys(STa).map(function(a){return STa[a]});
var GDa="captionTrack ytMainChannelEntity ytMainDownloadedVideoEntity ytMainVideoEntity offlineVideoPolicy offlineVideoStreams playbackData transfer".split(" ");var rCa=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{Yga(c)}catch(l){var k=l}return function(l,m){l=void 0===l?{}:l;if(k)throw k;for(var n=!1,p={},r=0;r<f.length;r++){var t=f[r],w=l[t],x=(0,c[t])(w,m);if("undefined"===typeof x)throw l=m&&m.type,Error("Given "+(l&&'action "'+String(l)+'"'||"an action")+', reducer "'+t+'" 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[t]=x;n=n||x!==w}return(n=n||f.length!==Object.keys(l).length)?p:l}}({entities:function(a,b){a=void 0===a?{}:a;
switch(b.type){case "ENTITY_LOADED":return b.payload.reduce(function(d,e){var f,k=null==(f=e.options)?void 0:f.persistenceOption;if(k&&"ENTITY_PERSISTENCE_OPTION_UNKNOWN"!==k&&"ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"!==k)return d;if(!e.entityKey)return g.S(Error("Missing entity key")),d;if("ENTITY_MUTATION_TYPE_REPLACE"===e.type){if(!e.payload)return g.S(new g.Kv("REPLACE entity mutation is missing a payload",{entityKey:e.entityKey})),d;var l=mf(e.payload);return HQ(d,l,e.entityKey,e.payload[l])}if("ENTITY_MUTATION_TYPE_DELETE"===
e.type){e=e.entityKey;try{var m=EQ(e).entityType;l=HQ(d,m,e,void 0)}catch(r){if(r instanceof Error)g.S(new g.Kv("Failed to deserialize entity key",{entityKey:e,originalMessage:r.message})),l=d;else throw r;}return l}if("ENTITY_MUTATION_TYPE_UPDATE"===e.type){if(!e.payload)return g.S(new g.Kv("UPDATE entity mutation is missing a payload",{entityKey:e.entityKey})),d;l=mf(e.payload);var n,p;return zCa(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 HQ(a,c.entityType,c.key,c.XS);case "REPLACE_ENTITIES":return Object.keys(b.payload).reduce(function(d,e){var f=b.payload[e];return Object.keys(f).reduce(function(k,l){return HQ(k,e,l,f[l])},d)},a);
case "UPDATE_ENTITY":return c=b.payload,zCa(a,c.entityType,c.key,c.XS,c.rfa);default:return a}}}),iDa=new pQ;g.v(HR,FR);HR.prototype.u=function(a){return BR(a)?LDa(this,a):CR(a)?MDa(this,a):Promise.reject(Error("Unsupported action type: "+a.actionType))};g.v(JR,FR);JR.prototype.u=function(a){return BR(a)?PDa(this,a):CR(a)?QDa(this,a):"OFFLINE_ORCHESTRATION_ACTION_TYPE_UPDATE"===a.actionType&&a.entityKey?this.handleUpdate(a):Promise.reject(Error("Unsupported action type: "+a.actionType))};
JR.prototype.handleUpdate=function(a){var b=this,c,d,e;return g.B(function(f){switch(f.i){case 1:return c=AR(a),g.A(f,kR(b.i,a.entityKey,"transfer"),2);case 2:d=f.j;if(!d||"TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"!==d.transferState)return f.return(new GR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",c));va(f,3);d.transferState="TRANSFER_STATE_TRANSFER_IN_QUEUE";return g.A(f,jR(b.i,d,"transfer"),5);case 5:e=EQ(d.key).entityId;zR({transferStatusType:"TRANSFER_STATUS_TYPE_REENQUEUED_BY_PLAYER_RESPONSE_REFRESH",
statusType:"ADDED_TO_QUEUE"},{videoId:e,ij:d});wa(f,4);break;case 3:return xa(f),f.return(new GR("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",c,void 0,"OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"));case 4:return f.return(new GR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",c))}})};g.v(KR,FR);KR.prototype.u=function(a){return BR(a)?VDa(this,a):CR(a)?WDa(this,a):"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"===a.actionType&&a.entityKey?XDa(this,a):Promise.reject(Error("Unsupported action type: "+a.actionType))};
var ZDa=[10];var oEa=["OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"];var NR;gEa.prototype.i=function(a,b){var c=a.action.actionMetadata.priority-b.action.actionMetadata.priority;0===c&&(a.i<b.i?c=-1:a.i>b.i&&(c=1));return c};g.v(QR,g.G);QR.prototype.ra=function(){this.J&&this.J();g.G.prototype.ra.call(this)};
QR.prototype.createAction=function(a,b){var c=EQ(a.entityKey).entityType,d=Ex(16);return new LR(c,d,a,b.actionId,b.rootActionId)};
QR.prototype.Y=function(a){var b=this,c,d,e,f,k,l,m,n,p;return g.B(function(r){if(1==r.i){if(b.isDisposed())return r.return();d=null!=(c=a.offlineOrchestrationActionWrapperEntity)?c:new Set;e=[];f=g.q(d);for(k=f.next();!k.done;k=f.next())l=k.value,m=EQ(l),n=m.entityId,iEa(b.i,n)||e.push(l);return g.A(r,qEa(b,e),2)}p=r.j;return g.A(r,SR(b,p),0)})};
QR.prototype.retry=function(){var a=this;return g.B(function(b){return g.A(b,rEa(a),0)})};xEa.prototype.info=function(){};g.h=yEa.prototype;g.h.KV=function(a){var b=this,c,d,e;return g.B(function(f){if(!g.V(a.state,128))return f.eb(0);var k=null==(c=a.state.getData())?void 0:c.errorCode,l=null==(d=a.state.getData())?void 0:d.PG;e="net.retryexhausted"===k&&(null==l?0:l.includes("net.connect"))?"TRANSFER_FAILURE_REASON_NETWORK_LOST":(null==k?0:k.startsWith("net."))?"TRANSFER_FAILURE_REASON_NETWORK":"TRANSFER_FAILURE_REASON_INTERNAL";return g.A(f,b.Cq(b.player.getVideoData().videoId,e),0)})};
g.h.Cq=function(a,b){var c=this;return g.B(function(d){if(1==d.i){if(c.j)return d.return();c.j=!0;return"TRANSFER_FAILURE_REASON_NETWORK_LOST"===b?(UR(c,a,!1,!0),d.eb(0)):g.A(d,TR(c,a),3)}VE(a,4);return g.A(d,c.i.Cq(b),0)})};
g.h.At=function(a){2===a.status?(a.status!==this.u&&($R(this.i),VE(a.videoId,2)),a.tx&&TEa(this.i,a.videoId,a.tx)):4===a.status?(TR(this,a.videoId),this.Cq(a.videoId,a.dA?"TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":"TRANSFER_FAILURE_REASON_INTERNAL")):1===a.status&&SEa(this.i);this.u=a.status;this.api.Oa("localmediachange",{videoId:a.videoId,status:a.status})};
g.h.oG=function(){var a=this,b;return g.B(function(c){if(1==c.i){if(a.j)return c.return();a.j=!0;b=a.player.getVideoData().videoId;return g.A(c,TR(a,b),2)}return g.A(c,a.i.oG(),0)})};
g.h.L=function(a){return this.api.T().L(a)};g.v(VR,g.G);VR.prototype.ra=function(){this.j&&this.j();g.G.prototype.ra.call(this)};
VR.prototype.u=function(a){var b=this,c,d,e,f,k,l,m,n;return g.B(function(p){d=null!=(c=a.transfer)?c:new Set;e=[];f=g.q(d);for(k=f.next();!k.done;k=f.next())l=k.value,m=EQ(l),n=m.entityId,e.push(n);return 0===e.length?p.return():g.A(p,FEa(b,e),0)})};g.v(WR,g.G);g.h=WR.prototype;g.h.ra=function(){this.J&&this.J();this.N.dispose();this.B.dispose();this.ea&&Ef(this.C.u,this.ea);this.Y&&Ef(this.C.u,this.Y);g.G.prototype.ra.call(this)};
g.h.YX=function(a){var b=this,c,d;return g.B(function(e){if(1==e.i)return c=FQ(a,"transfer"),b.i&&c===b.i.key?(UR(b.I,b.u,!0),b.B.stop(),e.eb(0)):g.A(e,hR(b.j,{mode:"readwrite",Kc:!0},function(f){return $Q(f,c,"transfer").then(function(k){if(k&&"TRANSFER_STATE_COMPLETE"!==k.transferState&&"TRANSFER_STATE_FAILED"!==k.transferState)return k.transferState="TRANSFER_STATE_PAUSED_BY_USER",cR(f,k,"transfer").then(function(){return k})})}),3);
(d=e.j)&&BDa({videoId:a,ij:d});g.ua(e)})};
g.h.XX=function(){this.i&&this.u&&UR(this.I,this.u,!1);this.B.stop()};
g.h.VQ=function(){this.i?LEa(this,this.i):ZR(this)};
g.h.UQ=function(a){var b=this,c;return g.B(function(d){switch(d.i){case 1:if(!b.i){d.eb(2);break}if("TRANSFER_STATE_COMPLETE"===b.i.transferState||"TRANSFER_STATE_FAILED"===b.i.transferState||!a.transfer||!a.transfer.has(b.i.key)){d.eb(3);break}c=b;return g.A(d,kR(b.j,b.i.key,"transfer"),4);case 4:c.i=d.j;if(b.i){d.eb(3);break}return g.A(d,MEa(b),3);case 3:if(b.i)return d.return();case 2:return g.A(d,ZR(b),0)}})};
g.h.Cq=function(a,b){var c=this,d,e;return g.B(function(f){if(1==f.i){a:switch(a){case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_PLAYABILITY":case "TRANSFER_FAILURE_REASON_TOO_MANY_RETRIES":var k=!1;break a;default:k=!0}return k&&UEa(c)?g.A(f,cS(c,"TRANSFER_STATE_TRANSFER_IN_QUEUE"),5):g.A(f,VEa(c,a),3)}3!=f.i&&(d=EQ(c.i.key).entityId,zR({transferStatusType:"TRANSFER_STATUS_TYPE_REENQUEUED_BY_RETRY",statusType:"ADDED_TO_QUEUE"},
{videoId:d,ij:c.i}));YR(c);e=ZR(c,!0);b&&b(e);g.ua(f)})};
g.h.oG=function(a){var b=this,c,d,e,f,k,l;return g.B(function(m){if(1==m.i)return UEa(b)?g.A(m,cS(b,"TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"),5):g.A(m,VEa(b,"TRANSFER_FAILURE_REASON_STREAM_MISSING"),3);if(3!=m.i)return c=EQ(b.i.key).entityId,zR({transferStatusType:"TRANSFER_STATUS_TYPE_DEQUEUED_BY_PLAYER_RESPONSE_EXPIRATION",statusType:"ADDED_TO_QUEUE"},{videoId:c,ij:b.i}),d=aEa(),d.playbackDataActionMetadata={isEnqueuedForExpiredStreamUrlRefetch:!0},e=FQ(c,"playbackData"),f={actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",
entityKey:e,actionMetadata:d},k=MR(new LR("playbackData",c,f)),g.A(m,jR(b.j,k,"offlineOrchestrationActionWrapperEntity"),3);YR(b);l=ZR(b,!0);a&&a(l);g.ua(m)})};
var h3={},dS=(h3.TRANSFER_STATE_TRANSFERRING=1,h3.TRANSFER_STATE_TRANSFER_IN_QUEUE=2,h3);g.h=ZEa.prototype;g.h.isOrchestrationLeader=function(){return this.j.i};
g.h.refreshAllVideos=function(){var a=this,b,c;return g.B(function(d){if(1==d.i){if(!a.J.Ce())return d.return(fFa());b=a;c=b.wx;return g.A(d,eFa(),2)}return d.return(c.call(b,d.j,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"))})};
g.h.deleteVideos=function(a){var b=this;return g.B(function(c){return c.return(b.wx(a,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"))})};
g.h.deleteAllVideos=function(){var a=this;return g.B(function(b){return b.return(a.wx(["!*$_ALL_VIDEOS_!*$"],"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"))})};
g.h.wx=function(a,b,c){var d=this,e,f,k;return g.B(function(l){if(1==l.i)return g.A(l,nR(),2);e=l.j;if(!e)return l.return([]);f=a.map(function(m){var n=FQ(m,"ytMainDownloadedVideoEntity");n={actionType:b,entityKey:n,actionMetadata:Object.assign({},aEa(),c)};"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"!==b&&(n.actionMetadata.priority=0);m=new LR("ytMainDownloadedVideoEntity",m,n);return MR(m)});
k=eDa(e,f);tDa(d.j);return l.return(k)})};var fS=[],LMa=!1;g.MV=ag(function(){var a="";try{var b=g.Nh("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.gS,MI);g.h=g.gS.prototype;g.h.isView=function(){return!0};
g.h.XG=function(){var a=this.oa.getCurrentTime();if(a<this.start)try{var b=this.oa.Yf(),c=DC(b,a);return!(this.start<c)}catch(d){}return!1};
g.h.aq=function(){return FC(this.oa.aq(),this.start,this.end)};
g.h.Yf=function(){return FC(this.oa.Yf(),this.start,this.end)};
g.h.nw=function(){return FC(this.oa.nw(),this.start,this.end)};
g.h.getCurrentTime=function(){return this.oa.getCurrentTime()-this.start};
g.h.By=function(a){this.oa.By(a+this.start)};
g.h.getDuration=function(){return isFinite(this.end)&&!this.i?this.end-this.start:this.oa.getDuration()-this.start};
g.h.play=function(){if(this.XG()){this.oa.getCurrentTime();try{this.oa.By(this.start)}catch(a){}}return this.oa.play()};
g.h.Kb=function(){var a=MI.prototype.Kb.call(this);a.view=this.start+"-"+this.end;return a};
g.h.addEventListener=function(a,b){this.oa.addEventListener(a,b)};
g.h.removeEventListener=function(a,b){this.oa.removeEventListener(a,b)};
g.h.yy=function(){return this.oa.yy()};
g.h.Zr=function(a){this.oa.Zr(a)};
g.h.Yp=function(){return this.oa.Yp()};
g.h.playVideo=function(){return this.oa.playVideo()};
g.h.mE=function(){this.oa.mE()};
g.h.kE=function(){this.oa.kE()};
g.h.mp=function(){return this.oa.mp()};
g.h.He=function(){return this.oa.He()};
g.h.wf=function(){return this.oa.wf()};
g.h.Cy=function(a){this.oa.Cy(a)};
g.h.rB=function(){this.oa.rB()};
g.h.getPlaybackRate=function(){return this.oa.getPlaybackRate()};
g.h.setPlaybackRate=function(a){return this.oa.setPlaybackRate(a)};
g.h.Xp=function(){return this.oa.Xp()};
g.h.setLoop=function(a){this.oa.setLoop(a)};
g.h.canPlayType=function(a,b){return this.oa.canPlayType(a,b)};
g.h.Fl=function(){return this.oa.Fl()};
g.h.Ru=function(){return this.oa.Ru()};
g.h.fl=function(){return this.oa.fl()};
g.h.Nz=function(){return this.oa.Nz()};
g.h.Tt=function(a){this.oa.Tt(a)};
g.h.zy=function(){return this.oa.zy()};
g.h.load=function(){this.oa.load()};
g.h.pause=function(){this.oa.pause()};
g.h.Dh=function(){return this.oa.Dh()};
g.h.Oz=function(){return this.oa.Oz()};
g.h.uj=function(){return this.oa.uj()};
g.h.Be=function(){return this.oa.Be()};
g.h.Ay=function(){return this.oa.Ay()};
g.h.yf=function(){return this.oa.yf()};
g.h.Xo=function(){return this.oa.Xo()};
g.h.togglePictureInPicture=function(){this.oa.togglePictureInPicture()};
g.h.Un=function(){return this.oa.Un()};
g.h.getSize=function(){return this.oa.getSize()};
g.h.setSize=function(a){this.oa.setSize(a)};
g.h.getVolume=function(){return this.oa.getVolume()};
g.h.setVolume=function(a){this.oa.setVolume(a)};
g.h.setAttribute=function(a,b){this.oa.setAttribute(a,b)};
g.h.removeAttribute=function(a){this.oa.removeAttribute(a)};
g.h.hasAttribute=function(a){return this.oa.hasAttribute(a)};
g.h.qv=ba(23);g.h.Ux=ba(25);g.h.Vx=ba(27);g.h.xs=ba(29);g.h.Pv=function(){return this.oa.Pv()};
g.h.pn=function(a){this.oa.pn(a)};
g.h.getStyle=function(a){return this.oa.getStyle(a)};
g.h.sF=function(){return this.oa.sF()};
g.h.stopVideo=function(){this.oa.stopVideo()};
g.h.oE=function(a){this.oa.oE(a)};
g.h.audioTracks=function(){return this.oa.audioTracks()};iS.prototype.rl=function(a,b){var c=this;b=void 0===b?1:b;this.i+=b;this.u+=a;var d=a/b;hS.forEach(function(e,f){d<e||(c.j[f]+=b)})};
iS.prototype.toString=function(){return""};
var hS=[20,100,500,2E3];g.h=nFa.prototype;g.h.isActive=function(){return!0};
g.h.iA=function(a,b){var c=this;if(b){var d={},e;for(e in b)b.hasOwnProperty(e)&&(d.iC=a.prototype[e],d.lC=b[e],a.prototype[e]=function(f){return function(){var k=g.Ca.apply(0,arguments),l=(0,g.R)();k=f.iC.apply(this,k);jS(c,f.lC,(0,g.R)()-l);return k}}(d)),d={iC:d.iC,
lC:d.lC}}};
g.h.Zo=function(a){return new mFa(a)};
g.h.Kn=function(a,b){b=void 0===b?1:b;a instanceof mFa&&(jS(this,a.name,(0,g.R)()-a.startTimeMs,b),a.i=!0)};
g.h.SG=function(a,b){var c=void 0===c?1:c;var d=(0,g.R)();b();jS(this,a,(0,g.R)()-d,c)};
g.h.hL=function(){var a={},b;for(b in this.profiles)if(this.profiles.hasOwnProperty(b)){var c=this.profiles[b];if(0===c.i)c=null;else{for(var d=c.i.toString()+"."+Math.round(c.u).toString(),e=0;e<hS.length;++e)if(0<c.j[e])d+="."+hS[e].toString()+"_"+Math.round(c.j[e]).toString();else break;c=d}c&&(a[b]=c)}this.profiles=new lFa;return a};
g.h.toString=function(){return""};g.h=kS.prototype;g.h.isActive=function(){return!1};
g.h.iA=function(){};
g.h.Zo=function(){};
g.h.Kn=function(){};
g.h.SG=function(a,b){b()};
g.h.hL=function(){return{}};
g.h.toString=function(){return""};var i3,uX,j3,MT,TMa;i3=new kS;uX=jt("html5_enable_profiler")||jt("html5_onesie_enable_profiler")||jt("html5_offline_encryption_enable_profiler")||0<jt("html5_performance_impact_profiling_timer_ms")?new nFa:new kS;g.nS=jt("html5_enable_profiler")?uX:i3;j3=jt("html5_onesie_enable_profiler")?uX:i3;MT=jt("html5_offline_encryption_enable_profiler")?uX:i3;TMa=jt("html5_performance_impact_profiling_timer_ms")?uX:i3;lS.prototype.then=function(a,b){return this.promise.then(a,b)};
lS.prototype.resolve=function(a){this.j(a)};
lS.prototype.reject=function(a){this.i(a)};g.v(mS,g.G);g.h=mS.prototype;g.h.isFinished=function(){return 6===this.status.status};
g.h.getStatus=function(){return this.status};
g.h.Cp=function(){var a=this.i.getVideoData(),b=this.j.getVideoData();if(a.B){var c;if(c=a.i){c=a.i;for(var d=!1,e=!1,f=g.q(Object.values(c.i)),k=f.next();!k.done;k=f.next())k=k.value,k.info.audio&&k.index.isLoaded()&&(d=!0),k.info.video&&k.index.isLoaded()&&(e=!0);c.i["0"]&&(e=!0);c=!(d&&e)}if(c)this.ma();else if(this.i.ud()){f=kFa(this.policy,this.i,this.j,this.bk);k=oFa(this);c=k.IS;e=k.YM;d=k.RK;k=k.XM;if(!this.I){var l=1E3*this.j.Hh(),m=this.i.Hh();m=1E3*(d-c-m);f&&"in-the-past"===f.msg&&(m=
0);a=a.isAd();this.j.Ax(l,m,a);this.I=!0}f?(b="cannot_apply"+f.msg,delete f.msg,this.Ve(b,f)):2===this.status.status?vFa(this):(a=this.i.Yp())?a.i||a.j?!LC(a)&&g.fu()?this.Ve("mse_closed"):b.i&&Yz(b.i)&&a.j&&!a.j.Kz()?this.Ve("encr_upgrade"):(b=this.i.ud(),b.fl()?this.Ve("elem_ended"):0>e?this.Ve("next_player_future"):(this.C=d,this.u=Vqa(a,c,d,!0),this.B=Vqa(a,e,k,!1),a=this.j.getVideoData().clientPlaybackNonce,this.i.Ba("gaplessPrep",{cpn:a}),pS(this.i,this.u),this.i.setMediaElement(pFa(b,c,d,!this.i.getVideoData().isAd())),
oS(this,2),vFa(this))):this.ma():this.ma()}else this.Ve("no-elem")}else this.ma()};
g.h.Nr=function(a){var b=uFa(this).PO,c=a===b;b=c?this.u.i:this.u.j;c=c?this.B.i:this.B.j;if(b.isActive&&!c.isActive){var d=this.C;CC(a.uf(),d-.01)&&(oS(this,4),b.isActive=!1,b.py=b.py||b.isActive,this.j.Ba("sbh",{}),c.isActive=!0,c.py=c.py||c.isActive);a=this.B.j;this.B.i.isActive&&a.isActive&&oS(this,5)}};
g.h.zN=function(){4<=this.status.status&&6>this.status.status&&this.Ve("player-reload-after-handoff")};
g.h.Ve=function(a,b){b=void 0===b?{}:b;if(!this.isDisposed()&&!this.isFinished()){this.ma();var c=4<=this.status.status&&"player-reload-after-handoff"!==a;this.status={status:Infinity,error:a};if(this.i&&this.j){var d=this.j.getVideoData().clientPlaybackNonce;this.i.yd(new g.vD("dai.transitionfailure",Object.assign(b,{cpn:d,transitionTimeMs:this.bk,msg:a})));a=this.i;a.videoData.Ha=!1;c&&yV(a);a.Va&&mIa(a.Va)}this.zl.reject(void 0);this.dispose()}};
g.h.ra=function(){tFa(this);this.i.unsubscribe("newelementrequired",this.zN,this);if(this.u){var a=this.u.j;this.u.i.Jd.unsubscribe("updateend",this.Nr,this);a.Jd.unsubscribe("updateend",this.Nr,this)}g.G.prototype.ra.call(this)};
g.h.Sc=function(a){g.VG(a,128)&&this.Ve("player-error-event")};
g.h.ma=function(){};g.v(rS,g.G);rS.prototype.clearQueue=function(){this.ma();this.B&&this.B.reject("Queue cleared");sS(this)};
rS.prototype.nt=function(){return!this.j};
rS.prototype.ra=function(){sS(this);g.G.prototype.ra.call(this)};
rS.prototype.ma=function(){};g.v(vS,g.tx);g.h=vS.prototype;g.h.getVisibilityState=function(a,b,c,d,e,f){return a?4:zFa()?3:b?2:c?1:d?5:e?7:f?8:0};
g.h.aj=function(a){this.fullscreen!==a&&(this.fullscreen=a,this.Me())};
g.h.setMinimized=function(a){this.u!==a&&(this.u=a,this.Me())};
g.h.setInline=function(a){this.inline!==a&&(this.inline=a,this.Me())};
g.h.Ut=function(a){this.pictureInPicture!==a&&(this.pictureInPicture=a,this.Me())};
g.h.setImmersivePreview=function(a){this.j!==a&&(this.j=a,this.Me())};
g.h.yf=function(){return this.i};
g.h.isFullscreen=function(){return 0!==this.fullscreen};
g.h.Ns=function(){return this.fullscreen};
g.h.Se=function(){return this.u};
g.h.isInline=function(){return this.inline};
g.h.isBackground=function(){return zFa()};
g.h.jt=function(){return this.pictureInPicture};
g.h.Zs=function(){return this.j};
g.h.Me=function(){this.Z("visibilitychange");var a=this.getVisibilityState(this.yf(),this.isFullscreen(),this.Se(),this.isInline(),this.jt(),this.Zs());a!==this.C&&this.Z("visibilitystatechange");this.C=a};
g.h.ra=function(){CFa(this.B);g.tx.prototype.ra.call(this)};g.v(g.zS,g.G);g.h=g.zS.prototype;
g.h.onCueRangeEnter=function(a){this.Ta.push(a);var b=a.getId(),c=""===b;this.Wa.add(a.j);c||this.Aa.Ba("sdai",{enterAdCueRange:1});if(this.Ya){this.Ya=!1;if(!c){var d=this.j.get(b);d&&(this.X.L("web_player_ss_record_join_mid_ad_break_killswitch")||(c=this.Aa.getCurrentTime(),DS(this,{Bd:a,isAd:!0,wm:!0,rf:c,adCpn:b},{isAd:!1,wm:!1,rf:c})),this.api.Z("serverstitchedvideochange",d.Dc,d.jn),this.Aa.Ba("sdai",{ssvc:"midab"}),this.Ok=1)}this.B=!1}else if(this.i){if(this.i.wm)this.Aa.Ba("sdai",{a_pair_of_same_transition_occurs_enter:1,
acpn:this.i.adCpn,transitionTime:this.i.rf,cpn:b,currentTime:this.Aa.getCurrentTime()}),this.X.L("web_player_same_transition_fallback_killswitch")||(d=this.Aa.getCurrentTime(),a={Bd:a,isAd:!c,wm:!0,rf:d,adCpn:b},b={Bd:this.i.Bd,isAd:this.i.isAd,wm:!1,rf:d,adCpn:this.i.adCpn},this.i.Bd&&this.Wa.delete(this.i.Bd.j),DS(this,a,b));else{if(this.i.Bd===a){this.Aa.Ba("sdai",{same_cue_range_pair_enter:1,acpn:this.i.adCpn,transitionTime:this.i.rf,cpn:b,currentTime:this.Aa.getCurrentTime()});this.i=void 0;
return}if(this.i.adCpn===b){b&&this.Aa.Ba("sdai",{dchtsc:b});this.i=void 0;return}a={Bd:a,isAd:!c,wm:!0,rf:this.Aa.getCurrentTime(),adCpn:b};DS(this,a,this.i)}this.i=void 0;this.B=!1}else this.i={Bd:a,isAd:!c,wm:!0,rf:this.Aa.getCurrentTime(),adCpn:b}};
g.h.onCueRangeExit=function(a){if(this.X.L("web_player_same_transition_fallback_killswitch")||this.Wa.has(a.j)){this.Wa.delete(a.j);this.Ta=this.Ta.filter(function(d){return d!==a});
this.Ya&&(this.B=this.Ya=!1,this.Aa.Ba("sdai",{cref:1}));var b=a.getId(),c=""===b;if(this.i){if(this.i.wm){if(this.i.Bd===a){this.Aa.Ba("sdai",{same_cue_range_pair_exit:1,acpn:this.i.adCpn,transitionTime:this.i.rf,cpn:b,currentTime:this.Aa.getCurrentTime()});this.i=void 0;return}if(this.i.adCpn===b){b&&this.Aa.Ba("sdai",{dchtsc:b});this.i=void 0;return}c={Bd:a,isAd:!c,wm:!1,rf:this.Aa.getCurrentTime(),adCpn:b};DS(this,this.i,c)}else this.Aa.Ba("sdai",{a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.i.adCpn,
transitionTime:this.i.rf,upcomingCpn:b,contentCpn:this.Aa.getVideoData().clientPlaybackNonce,currentTime:this.Aa.getCurrentTime()});this.i=void 0;this.B=!1}else this.i={Bd:a,isAd:!c,wm:!1,rf:this.Aa.getCurrentTime(),adCpn:b};this.X.L("web_player_halftime_dai")&&(b=this.j.get(b),this.isLiveNow&&b&&this.Aa.getCurrentTime()<this.Aa.Bj()&&wS(this,Infinity))}else this.Aa.Ba("sdai",{ignore_single_exit:1})};
g.h.isAdPlaying=function(a){return yS(this)?!!this.ea:!!HS(this,1E3*a)};
g.h.seekTo=function(a,b,c){a=void 0===a?0:a;c=void 0===c?null:c;this.B=!0;if(void 0===b?0:b)wS(this,a);else{b=this.api.Nc();var d=b===this.Ia?this.kb:null;IS(this,!1);this.xb=a;null!=c&&this.wb.start(c);b&&(this.kb=d||b.getPlayerState(),MX(b),this.Ia=b)}};
g.h.ra=function(){IS(this,!1);KS(this);LFa(this);g.G.prototype.ra.call(this)};
g.h.ma=function(){};
g.h.oH=function(a){this.Jb=a;this.Aa.Ba("sdai",{swebm:a})};
g.h.Fj=function(a,b,c){if(c&&b){var d=this.ya.get(a);if(d){d.locations||(d.locations=new Map);var e=Number(b.split(";")[0]);c=new g.bA(c);this.va&&this.Aa.Ba("sdai",{hdlredir:1,itag:b,seg:a,hostport:eA(c)});d.locations.set(e,c)}}};
g.h.Qn=function(a,b,c,d){if(this.Iv)return null;var e=Number(c.split(";")[0]),f=3===d;if(g.NFa(this,b))return this.va&&this.Aa.Ba("sdai",{gdu:"undec",seg:b,itag:e}),null;a=LS(this,a,b);this.va&&this.Aa.Ba("sdai",{gdu:1,seg:b,itag:e,pb:""+!!a});if(!a)return NS(this,b,f),null;a.locations||(a.locations=new Map);if(!a.locations.has(e)){var k,l,m=null==(k=a.videoData.getPlayerResponse())?void 0:null==(l=k.streamingData)?void 0:l.adaptiveFormats;if(!m)return this.Aa.Ba("sdai",{gdu:"noadpfmts",seg:b,itag:e}),
NS(this,b,f),null;k=m.find(function(p){return p.itag===e});
if(!k||!k.url){c={gdu:"nofmt",seg:b,vid:a.videoData.videoId,itag:e,fullitag:c,itags:""};if(!this.X.L("html5_ssdai_log_missing_itags_killswitch")){a=[];d=g.q(m);for(var n=d.next();!n.done;n=d.next())a.push(n.value.itag);c.itags=a.join(",")}this.Aa.Ba("sdai",c);NS(this,b,f);return null}m=!this.X.L("html5_ssdai_decipher_killswitch");a.locations.set(e,new g.bA(k.url,m))}m=a.locations.get(e);if(!m)return this.Aa.Ba("sdai",{gdu:"nourl",seg:b,itag:e}),NS(this,b,f),null;k=new lB(m);this.Jb&&k.set("dvc","webm");
this.X.experiments.Xa("ssdai_return_original_content")&&k.set("dairoc","1");(m=this.Jz(b-1,d))&&k.set("daistate",m);a.uH&&b>=a.uH&&k.set("skipsq",""+a.uH);(l=this.Aa.getVideoData().clientPlaybackNonce)&&k.set("cpn",l);m=[];a.Gk&&(m=OFa(this,a.Gk),0<m.length&&k.set("acpns",m.join(",")));f||this.ya.set(b,a);this.X.L("web_player_ssdai_acpns_aids_logging_killswitch")||(f=k.get("aids"),((null==f?void 0:null==(n=f.split(","))?void 0:n.length)||0)!==m.length&&(a.Gk?this.Aa.Ba("sdai",{acpns_aids_nm:1,ids:QFa(this,
a.Gk).join("_"),aids:null==f?void 0:f.replace(/,/g,"_"),cpn:l,trackType:d}):this.Aa.Ba("sdai",{acpns_aids_nm:"noAdBreakId",cpn:l})));f=g.mB(k);2048<(null==f?void 0:f.length)&&this.Aa.Ba("sdai",{urltoolong:1,sq:b,itag:e,len:f.length});this.va&&(f&&(n=a.cpn,d=a.Gk,SFa(this,n,d),d&&!this.pc.has(d)&&(n=PFa(this,n,d),k=RFa(this,d),this.Aa.Ba("sdai",{iofa:n}),this.Aa.Ba("sdai",{noawnzd:k-n}),this.Aa.Ba("sdai",{acpns:m.join(".")}),this.pc.add(d))),this.Aa.Ba("sdai",{gdu:"v",seg:b,itag:c,ast:a.Hc.toFixed(3),
alen:a.durationMs.toFixed(3),acpn:a.cpn,avid:a.videoData.videoId}));return f};
g.h.tH=function(a,b){if(a=LS(this,a,b))if(a=a.Gk)if(this.Aa.Ba("sdai",{skip_adbreakid:a}),a=this.J.get(a)){a=g.q(a);for(var c=a.next();!c.done;c=a.next())c.value.uH=b}};
g.h.Jz=function(a,b){return 1===b&&this.La.has(a)?this.La.get(a)||"":2===b&&this.jb.has(a)?this.jb.get(a)||"":3===b&&this.Qa.has(a)?this.Qa.get(a)||"":""};
g.h.gy=ba(32);
g.h.xG=function(a,b,c,d,e,f,k,l){l&&(k?this.jb.set(a,l):this.La.set(a,l));if(k){if(d.length&&e.length)for(a=b+GS(this),k=g.q(d.entries()),l=k.next();!l.done;l=k.next()){var m=g.q(l.value);l=m.next().value;var n=m=m.next().value;m=a;a=m+e[l];if(n=this.j.get(n))l=m-f[l],n.jn=null!=n.jn?Math.min(n.jn,l):l}if(!yS(this))if(d.length&&e.length)for(b=1E3*(b+GS(this)),d=g.q(d.entries()),c=d.next();!c.done;c=d.next())if(c=g.q(c.value),f=c.next().value,c=c.next().value,f=1E3*e[f],c===this.Aa.getVideoData().clientPlaybackNonce)MS(this,b,
b+f,!1),b+=f;else if(this.hc.has(c)||(this.Aa.Ba("sdai",{adCpnFromEmsg:1}),this.hc.add(c)),(a=this.C.get(c))&&a.start<=b&&a.end>=b+f)b=a.end;else{if(k=!1,a?b<a.start?a.start=b:a.end<b+f&&(a.end=b+f):(a=IFa(b,b+f,c),this.C.set(c,a),this.Aa.Ba("sdai",{newAdCR:1}),k=!0),b=a.end,MS(this,a.start,a.end,!0),k)for(this.Aa.addCueRange(a),c=this.Aa.Qv("serverstitchedcuerange",36E5),c=g.q(c),f=c.next();!f.done;f=c.next())this.C.delete(f.value.getId())}else 5!==c&&4!==c||MS(this,1E3*(b+GS(this)),1E3*(b+GS(this))+
5E3,!1)}};
g.h.Xv=ba(34);g.h.Kj=function(a){this.Aa.Ba("timelineerror",{e:a});this.ma()};
g.h.qw=function(a){this.W&&this.N&&this.xa.push(this.N);!this.X.L("web_player_skip_fetched_cuepoint_killswitch")&&a&&this.N&&this.Hb.push(this.N);this.N=null;this.Aa.qw(a)};
g.h.WE=function(a){if(a.identifier&&this.wc.has(a.identifier))this.va&&this.Aa.Ba("sdai",{startnoad:a.identifier}),OS(this);else if(Uo(this.xa,function(c){return c.identifier===a.identifier}))this.Aa.Ba("sdai",{timedoutcp:1}),this.Y.start(0);
else if(!this.X.L("web_player_skip_fetched_cuepoint_killswitch")&&Uo(this.Hb,function(c){return c.identifier===a.identifier}))this.Aa.Ba("sdai",{fetchedcp:1}),OS(this);
else if(this.Y.isActive()){var b;this.Aa.Ba("sdai",{racingcp:(null==(b=this.N)?void 0:b.identifier)+"_"+a.identifier})}else this.Qb=(new Date).getTime()/1E3,this.va&&this.Aa.Ba("sdai",{adf:1}),this.W=!1,this.Y.start(),this.N=a,this.La.clear(),this.jb.clear(),this.Qa.clear(),this.X.L("enable_h5_ssdai_decoration_records_clear_killswitch")&&this.ya.clear(),this.fb=[]};
g.h.ww=function(a,b){a=LS(this,a,b);if(!this.X.experiments.Xa("disable_ssdai_on_errors")||!a||this.Iv)return!1;this.Iv=!0;this.Aa.Ba("sdai",{disable:1,sq:b});QX(this.Aa);return!0};
g.h.No=function(a){this.wc.add(a);var b;(null==(b=this.N)?void 0:b.identifier)===a&&OS(this)};
g.h.wG=function(a,b,c,d){if(yS(this)){var e=this.Aa.getVideoData().clientPlaybackNonce;a=a||e;b=b||e;if(a!==b){var f=a===e?BS(this):this.j.get(a),k=b===e?BS(this):this.j.get(b);f&&k?(c=this.B?c:d,CS(this.Aa,f,k,c,d,this.B),b===e?(this.Ha=1E3*c,this.Ok=0,this.ea=null,this.Aa.Ba("sdai",{adchg:this.Ok}),this.api.Z("serverstitchedvideochange")):(this.Ha=0,this.Ok++,this.ea=k,this.Aa.Ba("sdai",{adchg:this.Ok,apid:this.ea.Dc,acpn:this.ea.cpn}),this.api.Z("serverstitchedvideochange",k.Dc,k.jn))):this.Aa.Ba("sdai",
{unknowntrans:"1",old:a,"new":b});this.B=!1}}};
var GFa=0;g.v(PS,g.G);g.h=PS.prototype;g.h.onCueRangeEnter=function(a){if(this.i===this.api.Nc()){var b=this.I.get(a);if(b){var c=b.target;this.ma();ZFa(this,c,b.bk,a)}else this.yd("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:a.toString()})}else if(b=this.j.find(function(e){return e.Hn.Bd===a})){var d=b.Hn;
this.ma();c=d.target;d=d.bk;c?ZFa(this,c,d,a):YFa(this,b.Zc,d,a)}};
g.h.onQueuedVideoLoaded=function(){var a=this.J;TS(this);if(a){if(!SS(this,a)){var b=this.api.Nc();this.yd("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:null==b?void 0:b.getVideoData().clientPlaybackNonce,ccpn:""+a.playerVars.cpn})}b=this.api.Nc();a=a.Hn;this.ma();b.addCueRange(a.Bd)}};
g.h.seekTo=function(a,b,c){a=void 0===a?0:a;c=void 0===c?null:c;if(void 0===b?0:b)TFa(this,a);else{b=this.api.Nc();var d=b===this.B?this.C:null;VS(this,!1);this.W=a;null!=c&&this.N.start(c);b&&(this.C=d||b.getPlayerState(),MX(b),this.B=b)}};
g.h.eg=function(a){g.VG(a,128)&&bGa(this)};
g.h.isManifestless=function(){return xF(this.i.getVideoData())};
g.h.ra=function(){VS(this,!1);XS(this);g.G.prototype.ra.call(this)};
g.h.ma=function(){};
g.h.yd=function(a,b){this.i.yd(new g.vD(a,b))};
var UFa=0;var dGa="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_KIDS_MODE 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($S,g.G);$S.prototype.get=function(a){YS(this);var b=this.data.find(function(c){return c.key===a});
return b?b.value:null};
$S.prototype.set=function(a,b,c){this.remove(a,!0);YS(this);a={key:a,value:b,expire:Infinity};c&&isFinite(c)&&(c*=1E3,a.expire=(0,g.R)()+c);for(this.data.push(a);this.data.length>this.u;)(c=this.data.shift())&&aT(this,c,!0);ZS(this)};
$S.prototype.remove=function(a,b){b=void 0===b?!1:b;var c=this.data.find(function(d){return d.key===a});
c&&(aT(this,c,b),g.gc(this.data,function(d){return d.key===a}),ZS(this))};
$S.prototype.ra=function(){var a=this;g.G.prototype.ra.call(this);this.data.forEach(function(b){aT(a,b,!0)});
this.data=[]};g.v(bT,g.Jr);bT.prototype.Z=function(a){var b=g.Ca.apply(1,arguments);if(this.C.has(a))return this.C.get(a).push(b),!0;var c=!1;try{for(b=[b],this.C.set(a,b);b.length;)c=g.Jr.prototype.Z.call.apply(g.Jr.prototype.Z,[this,a].concat(g.u(b.shift())))}finally{this.C.delete(a)}return c};cT.prototype.add=function(a){this.i=(this.i+1)%this.data.length;this.data[this.i]=a};
cT.prototype.forEach=function(a){for(var b=this.i+1;b<this.data.length;b++)a(this.data[b]||0);for(b=0;b<=this.i;b++)a(this.data[b]||0)};
cT.prototype.clear=function(){for(var a=this.data.length,b=0;b<a;b++)this.data[b]=0;this.j=this.i=this.data.length-1};g.v(dT,g.G);dT.prototype.start=function(){this.j.start()};
dT.prototype.stop=function(){this.j.stop()};
dT.prototype.clear=function(){for(var a=g.q(this.i.values()),b=a.next();!b.done;b=a.next())b.value.clear()};
dT.prototype.sample=function(){for(var a=g.q(this.u),b=a.next();!b.done;b=a.next()){var c=g.q(b.value);b=c.next().value;c=c.next().value;this.i.has(b)||this.i.set(b,new gT(ZTa.has(b)));this.i.get(b).update(c())}this.j.start()};
var ZTa=new Set(["networkactivity"]);gT.prototype.update=function(a){this.j?(this.buffer.add(a-this.i||0),this.i=a):this.buffer.add(a)};
gT.prototype.clear=function(){this.buffer.clear();this.i=0};g.v(hT,g.G);hT.prototype.ra=function(){g.G.prototype.ra.call(this);this.i=null;this.j&&this.j.disconnect()};g.$Ta=ag(function(){var a=window.AudioContext||window.webkitAudioContext;try{return new a}catch(b){return b.name}});var k3;k3={};g.iT=(k3.STOP_EVENT_PROPAGATION="html5-stop-propagation",k3.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",k3.IV_DRAWER_OPEN="ytp-iv-drawer-open",k3.MAIN_VIDEO="html5-main-video",k3.VIDEO_CONTAINER="html5-video-container",k3.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",k3.HOUSE_BRAND="house-brand",k3);g.v(jT,g.W);g.h=jT.prototype;g.h.pn=function(){g.or(this.element,g.Ca.apply(0,arguments))};
g.h.Fg=function(){this.Gb&&(this.Gb.removeEventListener("focus",this.kG),g.Rh(this.Gb),this.Gb=null)};
g.h.iE=function(){this.isDisposed();var a=this.app.T();a.hk||this.pn("tag-pool-enabled");a.B&&this.pn(g.iT.HOUSE_BRAND);"gvn"===a.playerStyle&&(this.pn("ytp-gvn"),this.element.style.backgroundColor="transparent");a.xb&&(this.ZD=g.Tu("yt-dom-content-change",this.resize,this));this.S(window,"orientationchange",this.resize,this);this.S(window,"resize",this.resize,this)};
g.h.Ix=function(a){aE(this.app.T());this.aA=!a;kT(this)};
g.h.resize=function(){if(this.Gb){var a=this.xg();if(!a.isEmpty()){var b=!g.eh(a,this.Jt.getSize()),c=nGa(this);b&&(this.Jt.width=a.width,this.Jt.height=a.height);a=this.app.T();(c||b||a.xb)&&this.app.Sa.Z("resize",this.getPlayerSize())}}};
g.h.Vs=function(a,b){this.updateVideoData(b)};
g.h.updateVideoData=function(a){if(this.Gb){var b=this.app.T();lu&&(this.Gb.setAttribute("x-webkit-airplay","allow"),a.title?this.Gb.setAttribute("title",a.title):this.Gb.removeAttribute("title"));qua(a)?this.Gb.setAttribute("disableremoteplayback",""):this.Gb.removeAttribute("disableremoteplayback");this.Gb.setAttribute("controlslist","nodownload");b.Pl&&a.videoId&&(this.Gb.poster=a.Re("default.jpg"))}b=g.KF(a,"yt:bgcolor");this.Cv.style.backgroundColor=b?b:"";this.RF=PD(g.KF(a,"yt:stretch"));this.SF=
PD(g.KF(a,"yt:crop"),!0);g.M(this.element,"ytp-dni",a.C);this.resize()};
g.h.setGlobalCrop=function(a){this.UE=PD(a,!0);this.resize()};
g.h.setCenterCrop=function(a){this.zK=a;this.resize()};
g.h.aj=function(){};
g.h.getPlayerSize=function(){var a=this.app.T(),b=this.app.Sa.isFullscreen();if(b&&eu())return new g.dh(window.outerWidth,window.outerHeight);if(b||a.Ak){if(window.matchMedia){a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.Mw&&this.Mw.media===a||(this.Mw=window.matchMedia(a));var c=this.Mw&&this.Mw.matches}if(c)return new g.dh(window.innerWidth,window.innerHeight)}else if(!isNaN(this.Tv.width)&&!isNaN(this.Tv.height))return this.Tv.clone();return new g.dh(this.element.clientWidth,
this.element.clientHeight)};
g.h.xg=function(){var a=this.app.T().L("enable_desktop_player_underlay"),b=this.getPlayerSize(),c=g.lD(this.app.T().experiments,"player_underlay_min_player_width");return a&&this.JG&&b.width>c?(a=g.lD(this.app.T().experiments,"player_underlay_video_width_fraction"),new g.dh(b.width*a,b.height)):b};
g.h.getVideoAspectRatio=function(){return isNaN(this.RF)?kGa(this):this.RF};
g.h.getVideoContentRect=function(a){var b=this.xg();a=lGa(this,b,this.getVideoAspectRatio(),a);return new g.qn((b.width-a.width)/2,(b.height-a.height)/2,a.width,a.height)};
g.h.Wt=function(a){this.JG=a;this.resize()};
g.h.lA=function(){return this.eB};
g.h.onMutedAutoplayChange=function(){kT(this)};
g.h.WN=function(){this.app.Sa.Z("playerUnderlayVisibilityChange","visible");this.Gb.classList.remove(g.iT.VIDEO_CONTAINER_TRANSITIONING);this.Gb.removeEventListener(mGa,this.WN)};
g.h.setInternalSize=function(a){g.eh(this.Tv,a)||(this.Tv=a,this.resize())};
g.h.ra=function(){this.ZD&&g.Uu(this.ZD);this.Fg();g.W.prototype.ra.call(this)};g.h=oGa.prototype;g.h.click=function(a,b){this.elements.has(a);this.i.has(a);var c=g.Kx();c&&a.visualElement&&g.ey(c,a.visualElement,b)};
g.h.Bb=function(a,b,c,d){var e=this;d=void 0===d?!1:d;this.elements.has(a);this.elements.add(a);c=sna(c);a.visualElement=c;var f=g.Kx(),k=g.Jx();f&&k&&g.Zx(void 0,f,k,[c]);g.Ue(b,function(){pGa(e,a)});
d&&this.j.add(a)};
g.h.Vg=function(a,b,c){var d=this;c=void 0===c?!1:c;this.elements.has(a);this.elements.add(a);g.Ue(b,function(){pGa(d,a)});
c&&this.j.add(a)};
g.h.Xj=function(a,b){this.elements.has(a);b&&(a.visualElement=g.Gx(b))};
g.h.jo=function(a){return this.elements.has(a)};g.v(pT,g.W);
pT.prototype.setValue=function(a,b){for(var c=0;c+2<this.u.length&&this.u[c+1]<b;)c++;b=Math.min(1,(b-this.u[c])/(this.u[c+1]-this.u[c]));if(this.ctx)this.ctx.fillStyle=this.B[c],this.ctx.fillRect(a*this.i,0,this.i,this.heightPx),this.ctx.fillStyle=this.B[c+1],this.ctx.fillRect(a*this.i,this.heightPx*(1-b),this.i,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.B[c+
1];a.style.borderTop="solid "+(this.heightPx-b)+"px "+this.B[c]}};g.v(rT,g.W);g.h=rT.prototype;g.h.show=function(){g.W.prototype.show.call(this);this.Ja()};
g.h.hide=function(){g.W.prototype.hide.call(this);this.delay.stop()};
g.h.stop=function(){this.delay.stop()};
g.h.start=function(){this.delay.isActive()||this.Ja()};
g.h.Ja=function(){var a=(0,g.R)(),b=this.Sa.getStatsForNerds();qT(this.i,b.bandwidth_samples);qT(this.B,b.network_activity_samples);qT(this.u,b.live_latency_samples);qT(this.j,b.buffer_health_samples);this.update(b);a=25<(0,g.R)()-a?5E3:500;this.delay.start(a)};sT.prototype.setPlaybackRate=function(a){this.playbackRate=Math.max(1,a)};
sT.prototype.getPlaybackRate=function(){return this.playbackRate};wT.prototype.seek=function(a){a!==this.u&&(this.seekCount=0);this.u=a;var b=this.videoTrack.j,c=this.audioTrack.j,d=this.audioTrack.Zb,e=yGa(this,this.videoTrack,a,this.videoTrack.Zb);d=yGa(this,this.audioTrack,this.policy.va?a:e,d);a=Math.max(a,e,d);this.i=!0;this.j.isManifestless&&(wGa(this,this.videoTrack,b),wGa(this,this.audioTrack,c));return a};
wT.prototype.ma=function(){};
var xGa=2/24;DGa.prototype.tick=function(a,b){this.ticks[a]=b?window.performance.timing.navigationStart+b:(0,g.R)()};g.v(BT,g.tx);g.h=BT.prototype;
g.h.rG=function(a,b,c){if(this.C){var d=[],e=[],f=[],k=void 0;b&&(d=b.i,e=b.j,f=b.B,k=b.u);this.C.xG(a.Na,a.startTime,this.i,d,e,f,c,k)}if(c){if(b&&!this.ea.has(a.Na)){c=a.startTime;d=[];e=g.q(b.i.entries());for(f=e.next();!f.done;f=e.next()){k=g.q(f.value);f=k.next().value;k=k.next().value;var l=c;c=l+b.j[f];d.push({startTime:l,endTime:c,adCpn:k})}this.ea.set(a.Na,d)}this.policy.wc&&(c=this.Y&&a.Na===this.Y.Na+1,this.Y=a,d=this.j&&a.Na===this.j.Na+1,d=this.j&&c&&d&&"stop"!==this.j.Ae.event&&"predictStart"!==
this.j.Ae.event,e=a.Ae||null,f=this.I.i.index.getLastSegmentNumber()<=a.Na,k=this.N.isManifestless&&this.policy.Nl,e?(this.j={Ae:e,Na:a.Na,yw:!!b},f?CT(this,e,a.Na):k&&(c?d?CT(this,e,a.Na):"continue"===e.event||"stop"===e.event?HGa(this,a):CT(this,e,a.Na):CT(this,e,a.Na))):d&&HGa(this,a))}};
g.h.qG=function(a,b,c){var d=this.I.i.index.getLastSegmentNumber()<=b;this.j={Ae:a,Na:b,yw:c};d&&CT(this,a,b)};
g.h.Ba=function(a,b){this.Va.Ba(a,b)};
g.h.Rx=function(a,b){var c=this.I.i.index.getSegmentNumberForTime(a);if(0<=c){var d;if(null==(d=this.C)?0:d.Jz(c,2))return this.Ba("sdai",{skipad_on:c,t:a.toFixed(3)}),b.tH(a,c),GGa(this,a,a,c),!0}return!1};
g.h.Ts=function(a){var b="",c=this.I.i.index.getSegmentNumberForTime(a);if(c=this.ea.get(c)){c=g.q(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};ET.prototype.ou=function(a){var b=this.policy.N;this.policy.N=cD(a,{},this.I);if(b!==this.policy.N){FT(this,this.u);HT(this);var c,d;b>this.policy.N&&(null==(c=this.i)?0:oC(c.info))&&(null==(d=this.nextVideo)||!oC(d.info))&&(this.N=!0)}};
ET.prototype.ma=function(){};NT.prototype.dispose=function(){this.Y=!0};
NT.prototype.isDisposed=function(){return this.Y};VT.prototype.skip=function(a){this.offset+=a};
VT.prototype.getOffset=function(){return this.offset};XT.prototype.Th=function(a){this.Ha=this.j.shift().info;a.info.equals(this.Ha)};
XT.prototype.uo=function(){return!!this.I.info.audio};
XT.prototype.getDuration=function(){return this.I.index.getMaxKnownEndTime()};
XT.prototype.ma=function(){};g.h=gU.prototype;g.h.GE=function(){return 0};
g.h.eJ=function(){return null};
g.h.tL=function(){return null};
g.h.isComplete=function(){return 3<=this.state};
g.h.isFailed=function(){return 5===this.state};
g.h.onStateChange=function(){};
g.h.isDisposed=function(){return-1===this.state};
g.h.dispose=function(){this.info.i[0].i.I=!1;hU(this,-1)};g.v(kU,gU);g.h=kU.prototype;g.h.onStateChange=function(){this.isDisposed()&&(cLa(this.Id,this.i),this.u.dispose())};
g.h.Ks=function(){var a=iIa(this.Id,this.i),b;var c=(null==(b=this.Id.le.get(this.i))?void 0:b.bytesReceived)||0;var d;b=(null==(d=this.Id.le.get(this.i))?void 0:d.Sy)||0;var e;d=(null==(e=this.Id.le.get(this.i))?void 0:e.je.totalLength)||0;return{expected:a,received:c,bytesShifted:b,sliceLength:d}};
g.h.qL=function(){return 0};
g.h.Vu=function(){return!0};
g.h.NC=function(){this.Zn();this.N=!0;return vHa(this.j)};
g.h.fJ=function(){this.Zn();return this.j.je};
g.h.It=function(){var a,b;return!!(null==(a=this.j)?0:null==(b=a.je)?0:b.length)||this.Id.cg(this.i)};
g.h.Zn=function(){for(;this.Id.cg(this.i);){var a=this.j,b=this.Id.Th(this.i),c=this.Id.le.get(this.i);uHa(a,b,c.zf&&!c.je.totalLength&&xHa(this.Id,this.i))}};lU.prototype.gg=function(){return fHa(this.B)};
lU.prototype.Th=function(a){this.B.Th(a);a=a.info;var b=a.i.info.Ob;this.policy.bv&&a.Zd&&a.duration&&(b=Math.max(b,(a.Cb+a.j)/a.duration));this.Ob=Math.max(this.Ob,b||0)};
lU.prototype.getDuration=function(){return this.i.index.getMaxKnownEndTime()};
lU.prototype.isRequestPending=function(a){return this.u.length?a===this.u[this.u.length-1].info.i[0].Na:!1};g.h=zU.prototype;g.h.Ct=function(){this.xhr.status&&(this.status=this.xhr.status);this.xhr.readyState===this.xhr.HEADERS_RECEIVED&&this.callbacks.Dt()};
g.h.onError=function(){this.B=!0;this.onDone()};
g.h.onDone=function(){this.isDisposed||(this.j&&(this.i.append(this.j),delete this.j),this.callbacks.Oo())};
g.h.eq=function(){return this.xhr.readyState>=this.xhr.HEADERS_RECEIVED};
g.h.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return""}};
g.h.Wv=function(){return+this.getResponseHeader("content-length")};
g.h.Cj=function(){return this.u};
g.h.yx=function(){return 200<=this.status&&300>this.status&&!!this.u};
g.h.cg=function(){return 0<this.i.totalLength};
g.h.Th=function(){var a=this.i;this.i=new UB;return a};
g.h.gg=function(){return this.i};
g.h.abort=function(){this.isDisposed=!0;this.xhr.abort()};
g.h.au=function(){return!0};
g.h.mB=function(){return this.B};
g.h.Be=function(){return""};g.h=KHa.prototype;g.h.getResponseHeader=function(a){return"content-type"===a?this.i.get("type"):""};
g.h.abort=function(){};
g.h.eq=function(){return!0};
g.h.Wv=function(){return this.range.length};
g.h.Cj=function(){return this.loaded};
g.h.yx=function(){return!!this.loaded};
g.h.cg=function(){return!!this.j.totalLength};
g.h.Th=function(){var a=this.j;this.j=new UB;return a};
g.h.gg=function(){return this.j};
g.h.au=function(){return!0};
g.h.mB=function(){return!!this.error};
g.h.Be=function(){return this.error};var LHa=0;g.h=AU.prototype;g.h.Pn=function(){this.ea||(this.ea=this.callbacks.Pn?this.callbacks.Pn():1);return this.ea};
g.h.Dt=function(){this.La=this.now();this.callbacks.Dt()};
g.h.Dq=function(a,b){CU(this,a,b);50>a-this.B&&EU(this)||PHa(this,a,b);this.callbacks.Dq(a,b)};
g.h.Oo=function(){this.callbacks.Oo()};
g.h.deactivate=function(){this.isActive&&(this.isActive=!1)};
g.h.now=function(){return(0,g.R)()};g.h=IU.prototype;g.h.start=function(a){var b={credentials:"include",cache:"no-store"};Object.assign(b,this.W);this.u&&(b.signal=this.u.signal);a=new Request(a,b);fetch(a).then(this.ea,this.onError).then(void 0,Ev)};
g.h.onDone=function(){this.isDisposed()||this.callbacks.Oo()};
g.h.getResponseHeader=function(a){return this.C?this.C.get(a):null};
g.h.eq=function(){return!!this.C};
g.h.Cj=function(){return this.j};
g.h.Wv=function(){return+this.getResponseHeader("content-length")};
g.h.yx=function(){return 200<=this.status&&300>this.status&&!!this.j};
g.h.cg=function(){return!!this.i.totalLength};
g.h.Th=function(){this.cg();var a=this.i;this.i=new UB;return a};
g.h.gg=function(){this.cg();return this.i};
g.h.isDisposed=function(){return this.I};
g.h.abort=function(){this.ql&&this.ql.cancel().catch(function(){});
this.u&&this.u.abort();this.I=!0};
g.h.au=function(){return!0};
g.h.mB=function(){return this.J};
g.h.Be=function(){return this.errorMessage};g.h=JU.prototype;g.h.onDone=function(){if(!this.isDisposed){this.status=this.xhr.status;try{this.response=this.xhr.response,this.j=this.response.byteLength}catch(a){}this.i=!0;this.callbacks.Oo()}};
g.h.Ct=function(){2===this.xhr.readyState&&this.callbacks.Dt()};
g.h.Dd=function(a){this.isDisposed||(this.status=this.xhr.status,this.i||(this.j=a.loaded),this.callbacks.Dq((0,g.R)(),a.loaded))};
g.h.eq=function(){return 2<=this.xhr.readyState};
g.h.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return qt(Error("Could not read XHR header "+a)),""}};
g.h.Wv=function(){return+this.getResponseHeader("content-length")};
g.h.Cj=function(){return this.j};
g.h.yx=function(){return 200<=this.status&&300>this.status&&this.i&&!!this.j};
g.h.cg=function(){return this.i&&!!this.response&&!!this.response.byteLength};
g.h.Th=function(){this.cg();var a=this.response;this.response=void 0;return new UB([new Uint8Array(a)])};
g.h.gg=function(){this.cg();return new UB([new Uint8Array(this.response)])};
g.h.abort=function(){this.isDisposed=!0;this.xhr.abort()};
g.h.au=function(){return!1};
g.h.mB=function(){return!1};
g.h.Be=function(){return""};g.v(MU,gU);g.h=MU.prototype;g.h.Ks=function(){var a=BU(this.timing);a.shost=eA(this.i.Vf);this.u&&(a.rc=this.u.toString());a.itag=this.info.i[0].i.info.Vb();a.ml=""+ +this.info.i[0].i.Ze();a.sq=""+this.info.i[0].Na;this.i&&(a.ifi=""+ +xpa(this.info.j.B));410!==this.u&&500!==this.u&&503!==this.u||(a.fmt_unav="true");this.xhr.Be()&&(a.msg=this.xhr.Be());this.Tx&&(a.smb="1");if(this.j){var b=this.j.je;b.length&&Dqa(b[0],a)}this.info.Qn()&&(a.sdai="1");return a};
g.h.qL=function(){return THa(this.timing)};
g.h.Be=function(){return this.xhr.Be()||""};
g.h.Vu=function(){var a;(a=this.isComplete())||(a=this.timing,a=a.j>a.WA&&FU(a,a.j));return a};
g.h.Dq=function(){!this.isDisposed()&&this.xhr&&(this.u=this.xhr.status,this.It()?iU(this,2):!this.ya&&this.Vu()&&(iU(this),this.ya=!0))};
g.h.Dt=function(){if(!this.isDisposed()&&this.xhr){if(!this.Y&&this.xhr.eq()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var a=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.Y=((0,g.R)()-a)/1E3}this.xhr.eq()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.Hq&&!Fra()&&g.iy("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.I=a||this.I;this.J=b||this.J}};
g.h.Oo=function(){var a=this.xhr;!this.isDisposed()&&a&&(this.W.stop(),this.u=a.status,a=ZHa(this,a),5===a?LU(this):hU(this,a))};
g.h.canRetry=function(){this.isDisposed();var a=KU(this);return a.timedOut<this.policy.ir&&a.i<this.policy.gk};
g.h.onStateChange=function(){this.isComplete()&&(this.policy.Md?NU(this):this.timing.deactivate())};
g.h.oY=function(){this.isComplete();if(!this.isDisposed()){var a=(0,g.R)(),b=!1;EU(this.timing)?(a=this.timing.I,NHa(this.timing),this.timing.I-a>=.8*this.xa?(this.B++,this.ma(),b=5<=this.B):this.B=0):(b=this.timing,b.lh&&HU(b,b.now()),a-=b.Y,this.policy.Jb&&0<a&&(this.B+=1),b=Zpa(KU(this),this.policy,!1)*this.policy.pk,(b=a>1E3*b)&&this.ma());this.B&&this.callback&&this.callback(this,this.state);b?$Ha(this,!1):this.W.start()}};
g.h.dispose=function(){gU.prototype.dispose.call(this);this.W.dispose();this.policy.Md||NU(this)};
g.h.NC=function(){if(!this.fJ().length)return[];this.N=!0;return vHa(this.j)};
g.h.It=function(){if(1>this.state)return!1;if(this.j&&this.j.je.length)return!0;var a;return(null==(a=this.xhr)?0:a.cg())?!0:!1};
g.h.fJ=function(){this.Zn(!1);return this.j?this.j.je:[]};
g.h.Zn=function(a){if(a||this.xhr.eq()&&this.xhr.cg()&&!XHa(this)&&!this.C){if(!this.j){if(this.xhr.au())this.info.range&&(b=this.info.range.length);else var b=this.xhr.Cj();this.j=new tHa(this.info.i,b)}for(;this.xhr.cg();)uHa(this.j,this.xhr.Th(),a&&!this.xhr.cg())}};
g.h.Cj=function(){return this.xhr.Cj()};
g.h.GE=function(){return this.Y};
g.h.Pn=function(){return aIa(this)?2:1};
g.h.ma=function(){};
g.h.eJ=function(){this.xhr&&(this.I=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.I};
g.h.tL=function(){this.xhr&&(this.J=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.J};
var YHa=-1;OU.prototype.clear=function(){this.j=this.J=this.B=null;this.i=this.C=this.I=this.startTimeSecs=NaN;this.u=!1};
OU.prototype.ma=function(){};g.v(g.QU,g.G);g.h=g.QU.prototype;
g.h.initialize=function(a,b,c){this.ma();a=a||0;this.Aa.MA(QGa(this.j));if(this.i.isManifestless){if(this.policy.Fi){b=tpa(this.policy);for(var d in this.i.i)this.i.i.hasOwnProperty(d)&&(this.i.i[d].index.u=b)}kIa(this)}this.B&&cIa(this.B,this.videoTrack.i);this.policy.La&&Gz()&&this.Ba("streaming",{ac:!!window.AbortController||Hz()},!0);d=isNaN(this.currentTime)?0:this.currentTime;this.currentTime=this.i.isManifestless?d:a;if(this.ea&&(jIa(this,this.videoTrack),jIa(this,this.audioTrack),dLa(this.ea),
delete this.ea,this.policy.Tr)){var e=this.audioTrack.i.j;Promise.resolve().then(function(){var f=rB(e,!1);yD("https://"+f+"/generate_204","oprobe")})}c?(this.policy.cd?(this.kb=c,WU(this,c)):WU(this,!1),g.hr(this.La)):(a=0===this.currentTime,RU(this,this.videoTrack,this.videoTrack.i,a),RU(this,this.audioTrack,this.audioTrack.i,a),this.seek(this.currentTime).yh(function(){}),this.timing.tick("gv"));
(this.i.Ee||this.i.zg||this.i.I||this.i.C||this.i.J)&&this.Ba("minMaxSq",{minSq:this.i.Ee,maxSq:this.i.zg,minDvrTime:this.i.I,maxDvrTime:this.i.C,startWalltime:this.i.J})};
g.h.resume=function(){if(this.isSuspended||this.ya){this.ma();this.Wa=this.ya=this.isSuspended=!1;try{this.Eh()}catch(a){g.S(a)}}};
g.h.setAudioTrack=function(a){if(!this.isDisposed()){var b=this.j;b.j=b.C.i[a.id];b.J=b.j;a=new DT(b.J,b.i,"m");this.ma();cV(this.Aa,a.reason,a.audio.info);eV(this.Aa)}};
g.h.setPlaybackRate=function(a){a!==this.I.getPlaybackRate()&&this.I.setPlaybackRate(a)};
g.h.ww=function(a){var b=a.info.i[0].i,c=a.lastError;if(fA(b.j.i)){var d=g.Kc(a.Be());this.Ba("dldbrerr",{em:d||"none"})}if(a.canRetry()){d=(b.info.video&&1<b.j.j||410===a.u||500===a.u||503===a.u)&&!KT(this.j)&&!fA(b.j.i);var e=a.Ks(),f=b.info.video?this.videoTrack:this.audioTrack;d&&(e.stun="1");this.handleError(c,e);this.isDisposed()||(d&&(this.ma(),JT(this.j,b)),wU(f,a),this.Eh())}else if(this.handleError(c,a.Ks()),!a.info.Nk()||this.policy.j||fA(b.j.i)){if(this.J&&a.info.Qn()&&(b=a.info.i[0].Na,
this.J.ww(EGa(this.u,a.info.i[0].B,b),b)))return;this.handleError("net.retryexhausted",{err:c,rn:a.timing.requestNumber.toString()},1)}else b.B=c,this.Eh()};
g.h.Eh=function(){YU(this);if(this.mediaSource&&LC(this.mediaSource)&&!this.mediaSource.ih()){var a=nU(this.videoTrack);a=this.policy.tj&&a&&a.u;this.i.isManifestless&&this.i.N&&VC(this.i)?(this.N=VC(this.i),this.mediaSource.Wj(this.N)):this.i.isLive&&!a?isNaN(this.N)?(this.N=this.currentTime+3600,this.mediaSource.Wj(this.N)):this.N<=this.currentTime+1800&&(this.N=Math.max(this.N+1800,this.currentTime+3600),this.mediaSource.Wj(this.N)):this.mediaSource.isView||(a=Math.max(this.audioTrack.getDuration(),
this.videoTrack.getDuration()),(!isFinite(this.N)||this.N!==a)&&0<a&&(this.mediaSource.Wj(a),this.N=a))}if(!this.isDisposed())if(UC(this.i)&&this.i.isFailed())this.handleError("manifest.net.retryexhausted",{rc:this.i.ea.toString()},1);else if(!this.i.u||!GHa(this.videoTrack)&&!GHa(this.audioTrack)||(this.videoTrack.C||this.audioTrack.C)&&this.policy.Ta?a=!1:(TU(this),this.Aa.seekTo(Infinity,{ge:"checkLoaderTracksSync",Dp:!0}),a=!0),!a&&(YU(this),pU(this.videoTrack),!this.isDisposed()&&(pU(this.audioTrack),
!this.isDisposed()))){this.i.isManifestless&&(HHa(this.videoTrack),HHa(this.audioTrack),BGa(this.C),(a=this.videoTrack.gg())&&a.j&&(a=a.j.C&&!this.policy.Yl,this.Ba(a===this.policy.C.Ah?"strm":"strmbug",{strm:a,sfmp4:this.policy.C.Ah,dfs:this.policy.Yl},!0)));if(this.mediaSource)lIa(this);else if(this.policy.j){(a=this.videoTrack.gg())&&this.videoTrack.Th(a);var b=this.audioTrack.gg();b&&this.audioTrack.Th(b);rU(this.videoTrack)&&rU(this.audioTrack)?this.ma():(a||b)&&g.hr(this.W)}VU(this);RU(this,
this.videoTrack,this.videoTrack.i,!1);RU(this,this.audioTrack,this.audioTrack.i,!1);a=this.audioTrack.i.B;b=this.videoTrack.i.B;if(a||b){var c="net.retryexhausted";if("fmt.unparseable"===a||"fmt.unparseable"===b)c="fmt.unparseable";this.handleError(c,{metadata:"1",video:this.videoTrack.i.B||"",audio:this.audioTrack.i.B||""},1)}else{a=this.videoTrack;var d=this.audioTrack;if((!this.mediaSource||LC(this.mediaSource)&&!this.policy.Wa)&&!this.C.i&&xU(a)&&a.i.Ze()&&this.j.N)a:{if(b=this.currentTime,c=
this.I,d=uT(c,a.i.info.Ob,d.i.info.Ob,0),c=FD(c.schedule)+d/HD(c.schedule),b+=Math.max(c,c+10-d/a.i.info.Ob),this.ma(),a.u.length){if(a.u[0].info.i[0].startTime<=b)break a;xT(a)}c=a.B;for(d=c.j.length-1;0<=d;d--)c.j[d].info.startTime>b&&c.j.pop();a.u.length?a.j=g.Ub(g.Ub(a.u).info.i):a.B.j.length?a.j=ZT(a.B).info:a.j=nU(a);a.j&&b<a.j.startTime&&(a.Y=0,a.i.Ze()?a.j=a.i.mm(b,!0).i[0]:a.j=null)}qIa(this,this.videoTrack,this.audioTrack);qIa(this,this.audioTrack,this.videoTrack);this.policy.Ck&&this.Ia&&
!this.isSuspended&&hsa(this.schedule)&&(wIa(this,this.Ia),this.Ia="");this.B&&(a=this.B,a.B?(b=a.I+a.policy.Zg,a.u||(b=Math.min(b,a.startTimeSecs+a.policy.qc)),a=Math.max(0,1E3*b-Date.now())):a=NaN,isNaN(a)||g.hr(this.xb,a));g.hr(this.wb)}}};
g.h.WQ=function(a){if(this.policy.jb&&this.mediaSource){var b=a===this.mediaSource.i,c=a.Lz();c&&(!c.Cb||c.Zd)&&this.Ba("sbu",a.Kb({a:b}))}this.Eh()};
g.h.fV=function(a){if(this.mediaSource){a=nU(a===this.mediaSource.i?this.audioTrack:this.videoTrack);var b=void 0;a&&(b=DB(a));this.handleError("fmt.unplayable",b,1)}};
g.h.Bt=function(a){this.Aa.Bt(a)};
g.h.rG=function(a,b,c){this.i.isManifestless&&oHa(this,b,c,!!a.info.video)};
g.h.qG=function(a,b,c,d){a.info.video&&this.u.qG(b,c,d)};
g.h.ow=ba(7);g.h.seek=function(a){if(this.isDisposed())return qi();if(this.videoTrack.J||this.audioTrack.J)return qi("seeking to head");YU(this);this.fb=(0,g.R)();VU(this,a);this.mediaSource&&this.mediaSource.i&&this.mediaSource.j&&(this.mediaSource.i.isLocked()||this.mediaSource.j.isLocked())&&eV(this.Aa,{reattachOnLockedBuffer:1,vsb:""+this.mediaSource.j.isLocked(),asb:""+this.mediaSource.i.isLocked()});var b=this.currentTime;this.currentTime=this.C.seek(a);IGa(this.u,a,b);g.hr(this.W);return pi(this.currentTime)};
g.h.getCurrentTime=function(){return this.currentTime};
g.h.HE=function(){return this.audioTrack.i.info.i};
g.h.IE=function(){return this.videoTrack.i.info.i};
g.h.ra=function(){try{XU(this),xT(this.audioTrack),xT(this.videoTrack),g.G.prototype.ra.call(this)}catch(a){g.S(a)}};
g.h.handleError=function(a,b,c){c=void 0===c?0:c;var d=wD(c);this.isDisposed()||(b=new g.vD(a,b,c),g.Qa(this),uD(b.details),this.Aa.handleError(b),"html5.invalidstate"!==a&&"fmt.unplayable"!==b.errorCode&&"fmt.unparseable"!==a&&d&&this.dispose())};
g.h.ma=function(){};
g.h.Kb=function(){var a=nU(this.audioTrack),b=nU(this.videoTrack);a={lct:this.currentTime.toFixed(3),lsk:this.C.i,lmf:LT(this.j),lbw:GD(this.schedule).toFixed(3),lhd:FD(this.schedule).toFixed(3),lst:(1E9*(this.schedule.i.vg()||0)).toFixed(3),laa:a?yB(a):"",lva:b?yB(b):"",lar:this.audioTrack.j?yB(this.audioTrack.j):"",lvr:this.videoTrack.j?yB(this.videoTrack.j):"",laq:""+sU(this.audioTrack),lvq:""+sU(this.videoTrack)};this.mediaSource&&!this.mediaSource.zf()&&this.mediaSource.i&&this.mediaSource.j&&
(a.lab=AC(this.mediaSource.i.uf()),a.lvb=AC(this.mediaSource.j.uf()));this.va&&(a.lapt=((0,g.R)()-this.va).toFixed(0),a.lapr=sIa(this));return a};
g.h.EE=function(){return tT(this.I)};
g.h.Ba=function(a,b,c){this.Aa.Ba(a,b,void 0===c?!1:c)};
g.h.Dp=function(a,b){a/=b;isNaN(this.timestampOffset)&&AIa(this,a-Math.min(a,this.policy.Ie));return(a-this.timestampOffset)*b};
g.h.ou=function(a){this.j.ou(a)};
g.h.Rx=function(a,b){return this.J&&this.u.Rx(a,this.J)?(AIa(this,this.timestampOffset-b),!0):!1};
g.h.Ts=function(a){return this.u.Ts(a)};
var pIa=2/24;g.h=g.fV.prototype;g.h.Qn=function(a,b,c,d){return this.pd.Qn(a,b,c,d)};
g.h.WE=function(a){this.pd.WE(a)};
g.h.ww=function(a,b){return this.pd.ww(a,b)};
g.h.tH=function(a,b){this.pd.tH(a,b)};
g.h.Xv=ba(33);g.h.Fj=function(a,b,c){this.pd.Fj(a,b,c)};
g.h.gy=ba(31);g.h.xG=function(a,b,c,d,e,f,k,l){this.pd.xG(a,b,c,d,e,f,k,l)};
g.h.oH=function(a){this.pd.oH(a)};
g.h.Jz=function(a,b){return this.pd.Jz(a,b)};
g.h.wG=function(a,b,c,d){this.pd.wG(a,b,c,d)};g.v(gV,g.tx);g.v(hV,gV);hV.prototype.I=function(a,b){if(a&&b){var c=1*Number(Lj(a,"cpi"))+1;isNaN(c)||0>=c||c<this.u?(this.B.stop(),this.j.stop(),this.u=-1,this.i={}):(c>this.u&&(this.u=c,g.uf(this.i)||(this.i={},this.B.stop(),this.j.stop())),this.i[b]=a,g.hr(this.j))}};
hV.prototype.C=function(){for(var a=g.q(Object.keys(this.i)),b=a.next();!b.done;b=a.next()){var c=b.value;b=this.Z;for(var d=this.u,e=this.i[c].match(uj),f=[],k=g.q(e[6].split("&")),l=k.next();!l.done;l=k.next())l=l.value,0===l.indexOf("cpi=")?f.push("cpi="+d.toString()):0===l.indexOf("ek=")?f.push("ek="+gh(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 ST(d,"fairplay",!0))}this.i={}};
hV.prototype.ra=function(){this.i={};gV.prototype.ra.call(this)};var l3={},JIa=(l3.DRM_TRACK_TYPE_AUDIO="AUDIO",l3.DRM_TRACK_TYPE_SD="SD",l3.DRM_TRACK_TYPE_HD="HD",l3.DRM_TRACK_TYPE_UHD1="UHD1",l3);g.v(iV,g.G);iV.prototype.ma=function(){};g.v(kV,g.tx);g.h=kV.prototype;g.h.Mo=function(a){var b=this;this.isDisposed()||0>=a.size||(a.forEach(function(c,d){var e=hD(b.j)?d:c;d=new Uint8Array(hD(b.j)?c:d);hD(b.j)&&YIa(d);c=g.Jc(d,4);YIa(d);d=g.Jc(d,4);b.i[c]?b.i[c].status=e:b.i[d]?b.i[d].status=e:b.i[c]={type:"",status:e}}),this.ma("Key statuses changed: "+VIa(this,",")),jV(this,{onkeystatuschange:1}),this.status="kc",this.Z("keystatuseschange",this))};
g.h.error=function(a,b,c,d){this.isDisposed()||(this.Z("licenseerror",a,b,c,d),"drm.provision"===a&&(a=(Date.now()-this.I)/1E3,this.I=NaN,this.Z("ctmp","provf",{et:a.toFixed(3)})));b&&this.dispose()};
g.h.shouldRetry=function(a,b){return this.xa&&this.J?!1:!a&&this.requestNumber===b.requestNumber};
g.h.ra=function(){this.i={};g.tx.prototype.ra.call(this)};
g.h.Kb=function(){var a={requestedKeyIds:this.va,cryptoPeriodIndex:this.cryptoPeriodIndex};this.u&&(a.keyStatuses=this.i);return a};
g.h.vf=function(){var a=this.C.join();if(lV(this)){var b=new Set,c;for(c in this.i)"usable"!==this.i[c].status&&b.add(this.i[c].type);a+="/UKS."+Array.from(b)}return a+="/"+this.cryptoPeriodIndex};
g.h.ma=function(){};g.v(nV,g.G);g.h=nV.prototype;g.h.XQ=function(a){if(this.C){var b=a.messageType||"license-request";this.C(new Uint8Array(a.message),b)}};
g.h.Mo=function(){this.J&&this.J(this.i.keyStatuses)};
g.h.HN=function(a){this.C&&this.C(a.message,"license-request")};
g.h.GN=function(a){if(this.u){if(this.j){var b=this.j.error.code;a=this.j.error.systemCode}else b=a.errorCode,a=a.systemCode;this.u("t.prefixedKeyError;c."+b+";sc."+a,b,a)}};
g.h.FN=function(){this.I&&this.I()};
g.h.update=function(a){var b=this;if(this.i)return this.i.update(a).then(null,pt(function(c){bJa(b,"t.update",c)}));
this.j?this.j.update(a):this.element.addKey?this.element.addKey(this.N.keySystem,a,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.N.keySystem,a,this.initData,this.sessionId);return St()};
g.h.ra=function(){this.i&&this.i.close();this.element=null;g.G.prototype.ra.call(this)};g.v(oV,g.G);g.h=oV.prototype;g.h.attach=function(){var a=this;if(this.i.keySystemAccess)return this.i.keySystemAccess.createMediaKeys().then(function(b){a.isDisposed()||(a.j=b,a.element.setMediaKeys(b))});
gD(this.i)?this.u=new (fD())(this.i.keySystem):iD(this.i)?(this.u=new (fD())(this.i.keySystem),this.element.webkitSetMediaKeys(this.u)):(rx(this.C,this.element,["keymessage","webkitkeymessage"],this.aR),rx(this.C,this.element,["keyerror","webkitkeyerror"],this.ZQ),rx(this.C,this.element,["keyadded","webkitkeyadded"],this.YQ));return null};
g.h.setServerCertificate=function(){return"widevine"===this.i.flavor&&this.i.u&&this.j.setServerCertificate?this.j.setServerCertificate(this.i.u):null};
g.h.createSession=function(a,b){var c=a.initData;if(this.i.keySystemAccess){b&&b("createsession");var d=this.j.createSession();jD(this.i)&&(c=cJa(c,this.i.j));b&&b("genreq");a=d.generateRequest(a.contentType,c);var e=new nV(null,null,null,d,null);a.then(function(){b&&b("genreqsuccess")},pt(function(f){bJa(e,"t.generateRequest",f)}));
return e}if(gD(this.i))return eJa(this,c);if(iD(this.i))return dJa(this,c);this.element.generateKeyRequest?this.element.generateKeyRequest(this.i.keySystem,c):this.element.webkitGenerateKeyRequest(this.i.keySystem,c);return this.B=new nV(this.element,this.i,c,null,null)};
g.h.aR=function(a){var b=pV(this,a);b&&b.HN(a)};
g.h.ZQ=function(a){var b=pV(this,a);b&&b.GN(a)};
g.h.YQ=function(a){var b=pV(this,a);b&&b.FN(a)};
g.h.getMetrics=function(){if(this.j&&this.j.getMetrics)try{var a=this.j.getMetrics()}catch(b){}return a};
g.h.ra=function(){this.u=this.j=null;var a;null==(a=this.B)||a.dispose();a=g.q(Object.values(this.I));for(var b=a.next();!b.done;b=a.next())b.value.dispose();this.I={};g.G.prototype.ra.call(this);delete this.element};g.v(qV,g.G);
qV.prototype.init=function(){var a=this,b,c;return g.B(function(d){if(1==d.i)return g.xn(a.i,{position:"absolute",width:"1px",height:"1px",display:"block"}),a.i.src=a.u.C,document.body.appendChild(a.i),a.B.S(a.i,"encrypted",a.I),b=[{initDataTypes:["keyids","cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="mp4a"'}],videoCapabilities:[{contentType:'video/mp4; codecs="avc1"'}]}],g.A(d,navigator.requestMediaKeySystemAccess("com.youtube.fairplay",b),2);c=d.j;a.u.keySystemAccess=c;a.j=new oV(a.i,
a.u);g.J(a,a.j);a.j.attach();g.ua(d)})};
qV.prototype.I=function(a){var b=this;if(!this.isDisposed()){var c=new Uint8Array(a.initData);a=new ST(c,a.initDataType);var d=BIa(c).replace("skd://","https://"),e={},f=this.j.createSession(a,function(){b.ma()});
f&&(g.J(this,f),this.C.push(f),MIa(f,function(k){$Ia(k,f.i,d,e)},function(){b.ma()},function(){},function(){}))}};
qV.prototype.ma=function(){};
qV.prototype.ra=function(){this.C=[];this.i&&this.i.parentNode&&this.i.parentNode.removeChild(this.i);g.G.prototype.ra.call(this)};g.v(rV,gV);
rV.prototype.I=function(a){var b;if(!(b=!this.B)){a:{if((b=a.cryptoPeriodIndex)&&0<this.i.length)for(var c=g.q(this.i),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.R)();if(!(c=this.C)){a:{c=a.cryptoPeriodIndex;if(!isNaN(c)){d=g.q(this.u.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.i,c=1E3*Math.max(0,Math.random()*((isNaN(c)?120:c)-30)));this.Z("log_qoe",{wvagt:"delay."+
c,cpi:a.cryptoPeriodIndex,reqlen:this.i.length});this.B&&0>=c?fJa(this,a):(this.i.push({time:b+c,info:a}),g.hr(this.j,c))}};
rV.prototype.ra=function(){this.i=[];gV.prototype.ra.call(this)};sV.prototype.get=function(a){a=uV(this,a);return-1!==a?this.values[a]:null};
sV.prototype.remove=function(a){a=uV(this,a);-1!==a&&(this.keys.splice(a,1),this.values.splice(a,1))};
sV.prototype.set=function(a,b){var c=uV(this,a);-1!==c?this.values[c]=b:(this.keys.push(a),this.values.push(b))};g.v(vV,g.tx);g.h=vV.prototype;g.h.bR=function(a){this.Mg({onecpt:1});a.initData&&kJa(this,new Uint8Array(a.initData),a.initDataType)};
g.h.lW=function(a){this.Mg({onndky:1});kJa(this,a.initData,a.contentType)};
g.h.Bt=function(a){this.Mg({onneedkeyinfo:1});this.X.L("html5_eme_loader_sync")&&(this.J.get(a.initData)||this.J.set(a.initData,a));jJa(this,a)};
g.h.dK=function(a){this.u.push(a);wV(this)};
g.h.createSession=function(a){var b=lJa(this)?bHa(a):g.Jc(a.initData);this.j.get(b);this.va=!0;a=new kV(this.videoData,this.X,a,this.drmSessionId);this.j.set(b,a);a.subscribe("ctmp",this.hN,this);a.subscribe("keystatuseschange",this.Mo,this);a.subscribe("licenseerror",this.LA,this);a.subscribe("newlicense",this.BN,this);a.subscribe("newsession",this.CN,this);a.subscribe("sessionready",this.PN,this);a.subscribe("fairplay_next_need_key_info",this.sN,this);OIa(a,this.B)};
g.h.BN=function(a){this.isDisposed()||(this.ma(),this.Mg({onnelcswhb:1}),a&&!this.heartbeatParams&&(this.heartbeatParams=a,this.Z("heartbeatparams",a)))};
g.h.CN=function(){this.isDisposed()||(this.ma(),this.Mg({newlcssn:1}),this.u.shift(),this.va=!1,wV(this))};
g.h.PN=function(){if(gD(this.i)&&(this.ma(),this.Mg({onsnrdy:1}),this.Ha--,0===this.Ha)){var a=this.Y;a.element.msSetMediaKeys(a.u)}};
g.h.Mo=function(a){if(!this.isDisposed()){!this.ya&&this.videoData.L("html5_log_drm_metrics_on_key_statuses")&&(mJa(this),this.ya=!0);this.ma();this.Mg({onksch:1});if(!lV(a)&&g.qw&&"com.microsoft.playready"===a.j.keySystem&&navigator.requestMediaKeySystemAccess)var b="large";else{b=[];var c=!0;if(lV(a))for(var d=g.q(Object.keys(a.i)),e=d.next();!e.done;e=d.next())e=e.value,"usable"===a.i[e].status&&b.push(a.i[e].type),"unknown"!==a.i[e].status&&(c=!1);if(!lV(a)||c)b=a.C;b=g.$b(b,"UHD2")||g.$b(b,"UHD2HDR")?
"highres":g.$b(b,"UHD1")||g.$b(b,"UHD1HDR")?"hd2160":g.$b(b,"HD")||g.$b(b,"HDHDR")?"hd1080":g.$b(b,"HD720")||g.$b(b,"HD720HDR")?"hd720":"large"}a:{c=Lz("auto",b,!1,"l");if(this.videoData.Og){if(this.N.equals(c))break a}else if(ipa(this.N,b))break a;this.N=c;this.Z("qualitychange");this.ma();this.Mg({updtlq:b})}this.Z("keystatuseschange",a)}};
g.h.hN=function(a,b){this.isDisposed()||this.Z("ctmp",a,b)};
g.h.sN=function(a,b){this.isDisposed()||this.Z("fairplay_next_need_key_info",a,b)};
g.h.LA=function(a,b,c,d){this.isDisposed()||(this.videoData.L("html5_log_drm_metrics_on_error")&&mJa(this),this.Z("licenseerror",a,b,c,d))};
g.h.Ps=function(){return this.N};
g.h.ra=function(){this.i.keySystemAccess&&this.element&&this.element.setMediaKeys(null);this.element=null;this.u=[];for(var a=g.q(this.j.values()),b=a.next();!b.done;b=a.next())b=b.value,b.unsubscribe("ctmp",this.hN,this),b.unsubscribe("keystatuseschange",this.Mo,this),b.unsubscribe("licenseerror",this.LA,this),b.unsubscribe("newlicense",this.BN,this),b.unsubscribe("newsession",this.CN,this),b.unsubscribe("sessionready",this.PN,this),b.unsubscribe("fairplay_next_need_key_info",this.sN,this),b.dispose();
this.j.clear();tV(this.I);tV(this.J);this.heartbeatParams=null;g.tx.prototype.ra.call(this)};
g.h.Kb=function(){for(var a={systemInfo:this.i.Kb(),sessions:[]},b=g.q(this.j.values()),c=b.next();!c.done;c=b.next())a.sessions.push(c.value.Kb());return a};
g.h.vf=function(){return 0>=this.j.size?"no session":""+this.j.values().next().value.vf()+(this.C?"/KR":"")};
g.h.Mg=function(a,b){b=void 0===b?!1:b;this.isDisposed()||(this.ma(uD(a)),(EE(this.X)||b)&&this.Z("ctmp","drmlog",a))};
g.h.ma=function(){};g.v(zV,g.G);zV.prototype.nA=function(){return this.u};
zV.prototype.handleError=function(a){var b=this;rJa(this,a);if(("html5.invalidstate"!==a.errorCode&&"fmt.unplayable"!==a.errorCode&&"fmt.unparseable"!==a.errorCode||!BV(this,a.errorCode,a.details))&&!tJa(this,a))if(wD(a.severity)){var c,d=null==(c=this.Aa.Va)?void 0:c.j.u;if(("net.retryexhausted"===a.errorCode||"net.badstatus"===a.errorCode&&a.details.fmt_unav)&&d&&d.isLocked())var e="FORMAT_UNAVAILABLE";else if(!this.i.B&&"auth"===a.errorCode&&"429"===a.details.rc){e="TOO_MANY_REQUESTS";var f="6"}this.Aa.Nf(a.errorCode,
a.severity,e,uD(a.details),f)}else this.Aa.Z("nonfatalerror",a),c=/^pp/.test(this.videoData.clientPlaybackNonce),this.yd(a.errorCode,a.severity,a.details),c&&"manifest.net.connect"===a.errorCode&&(a="https://web.archive.org/web/20220130220643/https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.R)(),yD(a,"manifest",function(k){b.I=!0;b.Ba("pathprobe",k)},function(k){b.yd(k.errorCode,k.severity,k.details)}))};
zV.prototype.Ba=function(a,b){this.Aa.Wb.Ba(a,b)};
zV.prototype.yd=function(a,b,c){b=uD(c);this.Aa.Wb.yd(a,b)};CV.prototype.setPlaybackRate=function(a){this.playbackRate=a};
CV.prototype.L=function(a){return this.X.L(a)};g.v(DV,g.G);DV.prototype.Sc=function(a){NJa(this);this.playerState=a.state;0<=this.u&&g.VG(a,16)&&this.seekCount++;a.state.isError()&&this.send()};
DV.prototype.onError=function(a){"player.fatalexception"!==a&&(a.match(aUa)?this.networkErrorCount++:this.nonNetworkErrorCount++)};
DV.prototype.send=function(){if(!(this.B||0>this.j)){NJa(this);var a=g.tS(this.i)-this.j,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=EMa[JF(this.i.videoData)];var d=OJa(this.i),e=0>this.u?a:this.u-this.j;a=this.i.X.Qa+36E5<(0,g.R)();b={started:0<=this.u,stateAtSend:b,joinLatencySecs:e,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,
nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:d,isAd:this.i.videoData.isAd(),liveMode:c,hasDrm:!!g.HF(this.i.videoData),isGapless:this.i.videoData.Ha,isServerStitchedDai:this.i.videoData.enableServerStitchedDai};!a&&this.i.L("html5_health_to_gel")&&g.Fv("html5PlayerHealthEvent",b);this.i.L("html5_health_to_qoe")&&(b.muted=a,this.J(b));this.B=!0;this.dispose()}};
DV.prototype.ra=function(){this.B||this.send();g.G.prototype.ra.call(this)};
var aUa=/\bnet\b/;var SJa=window;var QJa=/[?&]cpn=/;g.v(g.HV,g.G);g.h=g.HV.prototype;g.h.BT=function(){var a=g.tS(this.i);IV(this,a)};
g.h.dw=function(){return this.ya};
g.h.reportStats=function(a){a=void 0===a?NaN:a;if(!this.isDisposed()&&(a=0<=a?a:g.tS(this.i),-1<["PL","B","S"].indexOf(this.Hd)&&(!g.uf(this.j)||a>=this.B+30)&&(g.GV(this,a,"vps",[this.Hd]),this.B=a),!g.uf(this.j))){7E3===this.sequenceNumber&&g.Rx(Error("Sent over 7000 pings"));if(!(7E3<=this.sequenceNumber)){JV(this,a);var b=a,c=this.i.Aa.pw(),d=c.droppedVideoFrames||0,e=c.totalVideoFrames||0,f=d-this.fb,k=e&&!this.wb;if(d>c.totalVideoFrames||5E3<f)this.onError("html5.badframedropcount","df."+d+
";tf."+c.totalVideoFrames);else(0<f||k)&&g.GV(this,b,"df",[f]);this.fb=d;this.wb=e;!this.i.X.L("disable_webgl_reporting")&&0<this.N&&(g.GV(this,a,"glf",[this.N]),this.N=0);a={};this.i.videoData.j&&(a.fmt=this.i.videoData.j.Vb(),(b=this.i.videoData.I)&&b.Vb()!==a.fmt&&(a.afmt=b.Vb()));a.cpn=this.i.videoData.clientPlaybackNonce;this.adCpn&&(a.adcpn=this.adCpn);this.W&&(a.addocid=this.W);this.i.videoData.cotn&&(a.cotn=this.i.videoData.cotn);a.el=UF(this.i.videoData);a.content_v=VF(this.i.videoData);
a.ns=this.i.X.va;a.fexp=this.i.X.experiments.experimentIds.toString();a.cl=(424458613).toString();(b=this.i.videoData.adFormat||this.adFormat)&&(a.adformat=b);(b=JF(this.i.videoData))&&(a.live=b);AF(this.i.videoData)&&(a.drm=1,this.i.videoData.N&&(a.drm_system=tTa[this.i.videoData.N.flavor]||0),this.i.videoData.yF&&(a.drm_product=this.i.videoData.yF));Bt()&&this.i.videoData.W&&(a.ctt=this.i.videoData.W,a.cttype=this.i.videoData.Yh,this.i.videoData.mdxEnvironment&&(a.mdx_environment=this.i.videoData.mdxEnvironment));
this.i.videoData.isDaiEnabled()?a.dai=this.i.videoData.enableServerStitchedDai?"ss":"cs":this.i.videoData.Dc?a.dai="cs":this.i.videoData.jI&&(a.dai="disabled");a.seq=this.sequenceNumber++;if(this.i.L("html5_log_server_url_param")&&this.i.videoData.wO){if(b=this.i.videoData.wO,a&&b)for(c=g.q(Object.keys(b)),d=c.next();!d.done;d=c.next())d=d.value,this.Qb.has(d)||(a[d]=b[d])}else a.event="streamingstats",a.docid=this.i.videoData.videoId,a.ei=this.i.videoData.eventId;g.Bf(a,this.i.X.deviceParams);a=
g.Hj("//"+this.i.X.sj+"/api/stats/qoe",a);b=c="";d=g.q(Object.keys(this.j));for(e=d.next();!e.done;e=d.next())e=e.value,null===this.j[e]?g.Rx(new g.Kv("Stats report key has invalid value",e)):(e="&"+e+"="+this.j[e].join(","),100<e.length?b+=e:c+=e);a+=c;b=b.replace(/ /g,"%20");f=g.YF(this.i.videoData);d=!1;if(a.includes("&dt=")||a.includes("&cotn=")){if(this.i.X.L("kevlar_woffle")||this.i.X.L("qoe_nwl_downloads"))d=!0}else this.i.X.L("qoe_with_networkless")&&(d=!0);c=this.i.X.L("qoe_send_and_write");
e=this.i.X;k=this.i.L("web_player_vss_pageid_header")?this.i.X.pageId:void 0;(f=EV(a,e,k,this.i.X.sendVisitorIdHeader?this.i.videoData.visitorData:void 0,f))?(f.method="POST",f.postBody=b,FV(a,f,{token:this.i.videoData.W,IH:this.i.videoData.Yh,mdxEnvironment:this.i.videoData.mdxEnvironment},e,void 0,d,c&&this.xa)):d?(d=this.i.X.L("networkless_ajax"),e={method:"POST",postBody:b},c&&this.xa?this.i.X.L("use_new_nwl")?Yw().sendAndWrite(a,e):fx(a,e):d?g.Mt(a,{method:"POST",postBody:b}):this.i.X.L("use_new_nwl")?
Yw().sendThenWrite(a,e):ex(a,e)):(b=void 0===b?"":b,Nma(a,b)||g.Ow(a,void 0,void 0,void 0,b))}this.j={}}};
g.h.zx=function(a){0<a&&(this.j.aft=[a.toString()])};
g.h.NO=function(){if(this.i.videoData.N){var a=this.i.videoData.N;LV(this,"eme-"+(a.keySystemAccess?"final":gD(a)?"ms":jD(a)?"ytfp":iD(a)?"safarifp":"nonfinal"))}};
g.h.onError=function(a,b,c){c=void 0===c?0:c;var d=g.tS(this.i);this.yd(d,a,c,b);JV(this,d);KV(this)};
g.h.yd=function(a,b,c,d){var e=this.i.Aa.getCurrentTime();b=this.i.X.L("html5_qoe_report_fatal_error")?[b,1===c?"fatal":"",e.toFixed(3)]:[b,e.toFixed(3)];d&&b.push($Ja(d));g.GV(this,a,"error",b);this.C=!0};
g.h.Sc=function(a){var b=a.state,c=g.tS(this.i),d=this.getPlayerState(a.state);if(d!==this.Hd){if(!(c<this.B)){if("PL"===this.Hd)this.playTimeSecs+=c-this.B;else if("B"===this.Hd&&this.va){this.va=!1;var e=g.lD(this.i.X.experiments,"html5_disable_last_state_change")?this.B:this.Ta;this.rebufferTimeSecs+=c-e;!this.Qa&&10<=this.rebufferTimeSecs&&180>=this.playTimeSecs&&(this.i.Aa.ex(),this.j.qoealert=["1"],this.Qa=!0)}"B"!==d||"PL"!==this.Hd&&"PB"!==this.Hd||(this.va=!0);this.B=c}"PL"===this.Hd&&("B"===
d||"S"===d)||EE(this.i.X)?JV(this,c):IV(this,c);"PL"===d&&g.hr(this.Hb);this.i.L("html5_unstarted_buffering")&&EE(this.i.X)&&g.V(a.state,64)&&"N"!==d&&this.Ba("unstub",{rs:d});g.GV(this,c,"vps",[d]);this.Hd=d;this.B=this.Ta=c;this.C=!0}a=b.getData();g.V(b,128)&&a&&this.yd(c,a.errorCode,a.rE,a.PG);(g.V(b,2)||g.V(b,128))&&this.reportStats(c);b.Ic()&&!this.I&&(0<=this.u&&(this.j.user_intent=[this.u.toString()]),this.I=!0);KV(this)};
g.h.kx=function(a){var b=g.tS(this.i);g.GV(this,b,"vfs",[a.i.id,a.j,this.xb,a.reason]);this.xb=a.i.id;var c=this.i.Aa.getPlayerSize();if(0<c.width&&0<c.height){c=[Math.round(c.width),Math.round(c.height)];var d=g.sE();1<d&&c.push(d);g.GV(this,b,"view",c)}this.La||(EE(this.i.X)&&LV(this,"rqs"),this.i.videoData.i&&Qz(this.i.videoData.i)&&(this.j.preload=["1"]));this.C=this.La=!0;"m"===a.reason&&100===++this.Sb&&(a=this.j.fcnz,a||(a=[],this.j.fcnz=a),a.push("2"));g.GV(this,b,"vps",[this.Hd]);this.reportStats(b)};
g.h.ax=function(a){var b=g.tS(this.i);a.i.id!==this.Ha&&(g.GV(this,b,"afs",[a.i.id,this.Ha,a.reason]),this.Ha=a.i.id)};
g.h.Lo=ba(37);g.h.Ko=ba(40);g.h.onPlaybackRateChange=function(a){var b=g.tS(this.i);a&&a!==this.kb&&(g.GV(this,b,"rate",[a]),this.kb=a);this.reportStats(b)};
g.h.Rj=ba(16);g.h.getPlayerState=function(a){if(g.V(a,128))return"ER";if(g.V(a,512))return"SU";if(g.V(a,16)||g.V(a,32))return"S";if(g.WI(a)&&g.V(a,64))return"B";var b=bUa[ZI(a)];g.kE(this.i.X)&&"B"===b&&3===this.i.Aa.getVisibilityState()&&(b="SU");"B"===b&&g.V(a,4)&&(b="PB");return b};
g.h.ra=function(){g.G.prototype.ra.call(this);Jt(this.Wa)};
g.h.Ba=function(a,b,c){var d=this.j.ctmp||[],e=-1!==this.Jb.indexOf(a);e||this.Jb.push(a);if(!c||!e){b="string"!==typeof b?uD(b):b;b=$Ja(b);if(!c&&!/^t[.]/.test(b)){var f=1E3*g.tS(this.i);b="t."+f.toFixed()+";"+b}d.push(a+":"+b);this.ma();this.j.ctmp=d;KV(this);return f}};
g.h.Ax=function(a,b,c){this.J={uY:Number(this.Ba("glrem",{nst:a.toFixed(),rem:b.toFixed(),ca:+c})),ZM:a,jY:b,isAd:c}};
g.h.Lt=function(a,b,c){g.GV(this,g.tS(this.i),"ad_playback",[a,b,c])};
g.h.ma=function(){};
var m3={},bUa=(m3[5]="N",m3[-1]="N",m3[3]="B",m3[0]="EN",m3[2]="PA",m3[1]="PL",m3);aKa.prototype.update=function(){if(this.N){var a=this.i.Aa.getCurrentTime()||0;this.i.X.L("html5_vss_media_time_killswitch")||(a=this.i.Aa.Hh()||0);var b=g.tS(this.i);if(a!==this.j||eKa(this,a,b)){var c;if(!(c=a<this.j||a-this.j>b-this.lastUpdateTime+2||eKa(this,a,b))){var d=this.i.Ih();c=d.volume;var e=c!==this.Y;d=d.muted;d!==this.W?(this.W=d,c=!0):(!e||0<=this.C||(this.Y=c,this.C=b),c=b-this.C,0<=this.C&&2<c?(this.C=-1,c=!0):c=!1)}c&&(OV(this),this.u=a);this.lastUpdateTime=b;this.j=a}}};PV.prototype.send=function(a){if(!this.Qa){var b=RV(this);b=g.Hj(this.uri,b);if(this.xb)this.attestationResponse&&(a=QV(this)||{},a.method="POST",a.postParams={atr:this.attestationResponse},this.ea?this.va?this.xa?Yw().sendAndWrite(b,a):fx(b,a):this.xa?Yw().sendThenWrite(b,a):ex(b,a):g.Mt(b,a));else{var c=QV(this,a);FV(b,c,{token:this.N,IH:this.kb,mdxEnvironment:this.mdxEnvironment},this.X,a,this.ea,this.isFinal&&this.Md||this.va||this.u&&this.me)}this.Qa=!0}};
PV.prototype.j=function(a){void 0===a&&(a=NaN);return Number(a.toFixed(3)).toString()};
var n3={},gKa=(n3.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,n3.LIVING_ROOM_APP_MODE_MAIN=1,n3.LIVING_ROOM_APP_MODE_KIDS=2,n3.LIVING_ROOM_APP_MODE_MUSIC=3,n3.LIVING_ROOM_APP_MODE_UNPLUGGED=4,n3.LIVING_ROOM_APP_MODE_GAMING=5,n3);g.v(TV,g.G);g.h=TV.prototype;g.h.Dd=function(){this.j.update();var a;if(a=this.i.videoData.isLoaded()&&this.i.videoData.Qb&&this.B&&!this.Y)a=this.j,a=(a.i.X.L("html5_vss_media_time_killswitch")?a.I+a.i.Aa.getCurrentTime()-a.u:a.I+a.i.Aa.Hh()-a.u)>=this.i.videoData.Qb;a&&(this.B&&this.i.videoData.Qb&&(a=UV(this,"delayplay"),a.qd=!0,a.send(),this.Y=!0),iKa(this))};
g.h.Sc=function(a){this.isDisposed()||(g.V(a.state,2)?(this.currentPlayerState="paused",g.VG(a,2)&&this.B&&XV(this).send()):g.V(a.state,8)?(this.currentPlayerState="playing",this.B&&isNaN(this.u)&&VV(this,!1)):this.currentPlayerState="paused")};
g.h.ra=function(){g.G.prototype.ra.call(this);g.It(this.u);this.u=NaN;cKa(this.j)};
g.h.Kb=function(){return RV(UV(this,"playback"))};
g.h.uu=function(){this.i.videoData.J.eventLabel=UF(this.i.videoData);this.i.videoData.J.playerStyle=this.i.X.playerStyle;this.i.videoData.Jb&&(this.i.videoData.J.feature="pyv");this.i.videoData.J.vid=this.i.videoData.videoId;var a=this.i.videoData.J;var b=this.i.videoData;b=b.isAd()||!!b.Jb;a.isAd=b};
g.h.eh=function(a){var b=UV(this,"engage");b.W=a;return fKa(b,nKa(this.i))};mKa.prototype.isEmpty=function(){return this.endTime===this.startTime};ZV.prototype.L=function(a){return this.X.L(a)};
var oKa={other:1,none:2,wifi:3,cellular:7};g.v(g.$V,g.G);g.h=g.$V.prototype;g.h.Sc=function(a){if(g.VG(a,1024)||g.VG(a,512)||g.VG(a,4)){if(this.u){var b=this.u;0<=b.u||(b.j=-1,b.delay.stop())}this.qoe&&(b=this.qoe,b.I||(b.u=-1))}if(this.j.videoData.enableServerStitchedDai&&this.Wf){var c;null==(c=this.B.get(this.Wf))||c.Sc(a)}else this.i&&this.i.Sc(a);this.qoe&&this.qoe.Sc(a);this.u&&this.u.Sc(a)};
g.h.Dd=function(){if(this.j.videoData.enableServerStitchedDai&&this.Wf){var a;null==(a=this.B.get(this.Wf))||a.Dd()}else this.i&&this.i.Dd()};
g.h.yd=function(a,b){if(this.qoe)this.qoe.onError(a,b);if(this.u)this.u.onError(a)};
g.h.kx=function(a){this.qoe&&this.qoe.kx(a)};
g.h.ax=function(a){this.qoe&&this.qoe.ax(a)};
g.h.onPlaybackRateChange=function(a){if(this.qoe)this.qoe.onPlaybackRateChange(a)};
g.h.Lo=ba(36);g.h.Ba=function(a,b,c){this.qoe&&this.qoe.Ba(a,b,c)};
g.h.Ax=function(a,b,c){this.qoe&&this.qoe.Ax(a,b,c)};
g.h.zx=function(a){this.qoe&&this.qoe.zx(a)};
g.h.Lt=function(a,b,c){this.qoe&&this.qoe.Lt(a,b,c)};
g.h.Ko=ba(39);g.h.Rj=ba(15);g.h.dw=function(){if(this.qoe)return this.qoe.dw()};
g.h.Kb=function(){if(this.j.videoData.enableServerStitchedDai&&this.Wf){var a;null==(a=this.B.get(this.Wf))||a.Kb()}else if(this.i)return this.i.Kb();return{}};
g.h.eh=function(a){return this.i?this.i.eh(a):function(){}};
g.h.uu=function(){this.i&&this.i.uu()};g.v(aW,g.G);g.h=aW.prototype;g.h.Nd=function(a,b){this.Gl();b&&2E3<=this.i.i.length&&this.Qv("captions",1E4);b=this.i;if(1<a.length&&a.length>b.i.length)b.i=b.i.concat(a),b.i.sort(b.j);else{a=g.q(a);for(var c=a.next();!c.done;c=a.next())c=c.value,!b.i.length||0<b.j(c,b.i[b.i.length-1])?b.i.push(c):g.tc(b.i,c,b.j)}this.j=NaN;this.Gl()};
g.h.Mf=function(a){1E4<a.length&&g.Rx(new g.Kv("Over 10k cueRanges removal occurs with a sample: ",a[0]));if(!this.isDisposed()){var b=new Set(a);this.u=this.u.filter(function(c){return!b.has(c)});
CKa(this.i,b);this.Gl()}};
g.h.Qv=function(a,b){var c=(isNaN(this.j)?g.V(this.C(),2)?0x8000000000000:1E3*this.N():this.j)-b;b=this.hm().filter(function(d){return d.namespace===a&&d.end<c});
this.Mf(b);return b};
g.h.hm=function(){return this.isDisposed()?[]:this.i.i};
g.h.reset=function(){this.started=!1;this.B.stop();this.i.i=[];this.u=[];this.Gl()};
g.h.gf=function(a){var b=this.hm().filter(function(c){return c.namespace===a});
this.Mf(b);return b};
g.h.Sc=function(a){this.started&&(this.Gl(),g.V(a.Ho,16)&&(a=BKa(this.i,Math.max(this.j-2E3,0)),!isNaN(a)&&0x7ffffffffffff>a&&this.B.start()))};
g.h.pE=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.u.indexOf(d)&&(this.u.push(d),b.push([1,d]))}return b};
g.h.tE=function(a){var b=[];if(!a.length)return b;a.sort(g.My);a=g.q(a);for(var c=a.next();!c.done;c=a.next())c=c.value,this.u.splice(this.u.indexOf(c),1),b.push([2,c]);return b};
g.h.Gl=function(){this.I=!0;if(!this.J){for(var a=3;this.I&&a;)this.I=!1,this.J=!0,this.dM(),this.J=!1,a--;this.C().Ic()&&(a=BKa(this.i,this.j),!isNaN(a)&&0x7ffffffffffff>a&&(a=(a-this.j)/this.ea(),this.B.start(a)))}};
g.h.dM=function(){if(this.started&&!this.isDisposed()){this.B.stop();var a=this.C();g.V(a,32)&&this.Y.start();for(var b=g.V(this.C(),2)?0x8000000000000:1E3*this.N(),c=g.V(a,2),d=[],e=[],f=g.q(this.u),k=f.next();!k.done;k=f.next())k=k.value,k.active&&(c?0x8000000000000>k.end:!k.contains(b))&&e.push(k);d=d.concat(this.tE(e));f=e=null;c?(a=zKa(this.i,0x7ffffffffffff),e=a.filter(function(l){return 0x8000000000000>l.end}),f=AKa(this.i)):a=this.j<=b&&XI(a)?yKa(this.i,this.j,b):zKa(this.i,b);
d=d.concat(this.pE(a));e&&(d=d.concat(this.tE(e)));f&&(d=d.concat(this.pE(f)));this.j=b;DKa(this,d)}};
g.h.ra=function(){this.u=[];this.i.i=[];g.G.prototype.ra.call(this)};
g.nS.iA(aW,{Nd:"crmacr",pE:"crmncr",tE:"crmxcr",dM:"crmis",Mf:"crmrcr"});g.v(eW,g.tx);eW.prototype.ym=function(){return this.J};
eW.prototype.Bj=function(){return Math.max(this.N()-JKa(this,!0),this.videoData.getMinSeekableTime())};
eW.prototype.ma=function(){};g.v(jW,g.G);jW.prototype.Sc=function(){g.hr(this.u)};
jW.prototype.C=function(){var a=this,b=this.Aa.ud(),c=this.Aa.getPlayerState();if(b&&!c.isError()){var d=b.getCurrentTime(),e=8===c.state&&d>this.i,f=g.V(c,8)&&g.V(c,16),k=this.Aa.Wn().isBackground()||c.isSuspended();kW(this,this.ya,f&&!k,e,"qoe.slowseek",function(){},"timeout");
f=f&&isFinite(this.i)&&0<this.i&&awa(b,this.i);var l=!d||10<Math.abs(d-this.i);kW(this,this.Ha,f&&l&&!k,e,"qoe.slowseek",function(){b.seekTo(a.i)},"set_cmt");
var m=f&&CC(b.Yf(),this.i);f=this.Aa.Va;l=!f||!f.policy.hc;var n=function(){b.seekTo(a.i+.001)};
kW(this,this.ea,m&&l&&!k,e,"qoe.slowseek",n,"jiggle_cmt");l=function(){return yV(a.Aa)};
kW(this,this.va,m&&!k,e,"qoe.slowseek",l,"new_elem");var p=XI(c);m=g.YI(c);var r=b.Yf(),t=BC(r,d);MKa(this,b,r,d,k,p,m);r=0<=t&&r.end(t)>d+5;r=p&&m&&r;kW(this,this.J,r&&!k,p&&!m,"qoe.longrebuffer",n,"jiggle_cmt");kW(this,this.N,r&&!k,p&&!m,"qoe.longrebuffer",l,"new_elem_nnr");if(f){var w=f.getCurrentTime();n=b.aq();n=Rqa(n,w);n=!f.C.i&&d===n;kW(this,this.Ta,p&&m&&n&&!k,p&&!m&&!n,"qoe.longrebuffer",function(){b.seekTo(w)},"seek_to_loader")}kW(this,this.W,p&&m&&!k,p&&!m,"qoe.longrebuffer",function(){},
"timeout");
n=c.isSuspended();n=g.$b(this.Aa.Uj,"ad")&&!n;kW(this,this.I,n,!n,"qoe.start15s",function(){a.Aa.Fe("ad")},"ads_preroll_timeout");
n=this.Aa.getVideoData();r=.5>d-this.B;t=n.isAd()&&p&&!m&&r;p=function(){var x=a.Aa,y=x.Py.Nc();(!y||!x.videoData.isAd()||y.getVideoData().Dc!==x.getVideoData().Dc)&&x.videoData.Yd||x.Nf("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+x.videoData.videoId)};
kW(this,this.Ia,t,!t,"ad.rebuftimeout",p,"skip_slow_ad");m=n.isAd()&&m&&CC(b.Yf(),d+5)&&r;kW(this,this.La,m,!m,"ad.rebuftimeout",p,"skip_slow_ad_buf");kW(this,this.Qa,g.WI(c)&&g.V(c,64)&&!k,e,"qoe.start15s",function(){},"timeout");
kW(this,this.Y,!!f&&!f.mediaSource&&g.WI(c),e,"qoe.start15s",l,"newElemMse");this.B=d;this.u.start()}};
jW.prototype.yd=function(a,b,c){b=this.Kb(b);b.wn=c;b.wdup=this.j[a]?"1":"0";this.Aa.yd(new g.vD(a,b));this.j[a]=!0};
jW.prototype.Kb=function(a){a=Object.assign(this.Aa.Kb(!0),a.Kb());this.i&&(a.stt=this.i.toFixed(3));delete a.uga;delete a.euri;delete a.referrer;delete a.fexp;delete a.vm;return a};
hW.prototype.reset=function(){this.i=this.triggerTimestamp=this.j=this.startTimestamp=0;this.u=!1};
hW.prototype.Kb=function(){var a={},b=(0,g.R)();this.startTimestamp&&(a.wsd=(b-this.startTimestamp).toFixed());this.triggerTimestamp&&(a.wtd=(b-this.triggerTimestamp).toFixed());this.i&&(a.wssd=(b-this.i).toFixed());return a};g.v(mW,g.G);g.h=mW.prototype;g.h.setMediaElement=function(a){g.sx(this.Ia);(this.oa=a)?($Ka(this),lW(this)):oW(this)};
g.h.Sc=function(a){this.Y.Sc(a);this.L("html5_exponential_memory_for_sticky")&&(a.state.Ic()?g.hr(this.ea):this.ea.stop());if(this.oa)if(8===a.Ho.state&&XI(a.state)&&g.YI(a.state)){if(this.policy.u){a=this.oa.getCurrentTime();var b=this.oa.Yf();var c=this.L("manifestless_post_live_ufph")||this.L("manifestless_post_live")?BC(b,Math.max(a-3.5,0)):BC(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.Ta-c)||(this.Aa.Ba("seekover",{b:AC(b,"_"),cmt:a}),
this.Ta=c,this.seekTo(c,{gq:!0,ge:"playbacktimeline_postLiveDisc"})))}}else(null==(b=a.state)?0:8===b.state)&&!this.videoData.jb&&0<this.videoData.limitedPlaybackDurationInSeconds&&wX(this.Aa,this.getCurrentTime()+this.videoData.limitedPlaybackDurationInSeconds)};
g.h.getCurrentTime=function(){return!isNaN(this.i)&&isFinite(this.i)?this.i:this.oa&&XKa(this)?this.oa.getCurrentTime()+this.timestampOffset:this.u||0};
g.h.Hh=function(){return this.getCurrentTime()-this.kd()};
g.h.Bj=function(){return this.j?this.j.Bj():Infinity};
g.h.isAtLiveHead=function(a){if(!this.j)return!1;void 0===a&&(a=this.getCurrentTime());return gW(this.j,a)};
g.h.ym=function(){return!!this.j&&this.j.ym()};
g.h.seekTo=function(a,b){var c=void 0===b?{}:b;b=void 0===c.sP?!1:c.sP;var d=void 0===c.tP?0:c.tP,e=void 0===c.gq?!1:c.gq,f=void 0===c.JH?0:c.JH,k=void 0===c.ge?"":c.ge;if(void 0===c.Dp?0:c.Dp)a+=this.kd();c=a;var l=!isFinite(c)||(this.j?gW(this.j,c):c>=this.td())||!g.MF(this.videoData);l||this.Aa.Ba("seeknotallowed",{st:c,mst:this.td()});if(!l)return this.B&&(this.B=null,rW(this)),pi(this.getCurrentTime());this.ma();if(.005>Math.abs(a-this.i)&&this.N)return this.ma(),this.C;k&&(c=a,(2<=this.X.N||
this.L("html5_log_seek_reasons"))&&this.Aa.Ba("seekreason",{reason:k,tgt:c}));this.N&&oW(this);this.C||(this.C=new lS);a&&!isFinite(a)&&nW(this,!1);k=a;(qW(this)&&!(this.oa&&0<this.oa.Dh()&&0<NI(this.oa))||xF(this.videoData)&&this.getMinSeekableTime()===this.td(!1)?0:isFinite(k)||!xF(this.videoData))&&(a=WKa(this,a,e));a&&!isFinite(a)&&nW(this,!1);this.u=a;this.ya=f;this.i=a;this.j&&(e=this.j,f=a,KKa(e,f,!1),LKa(e,f));e=this.Aa;f=a;e.Tc.u=f;k=e.xv;k.mediaTime=f;k.i=!0;b&&MX(e);e.cm&&f>e.videoData.endSeconds&&
isFinite(f)&&GX(e);f<e.td()-.01&&(k=TI(e.playerState,2),g.V(k,8)&&(k=TI(k,4)),e.Yb(k));e.Z("SEEK_TO",e,f);this.C&&(b?d&&this.Ha.start(d):(this.ma(),this.N=!0,QKa(this)));(b=this.Aa.cm)&&a>b.start&&GX(this.Aa);return this.C};
g.h.td=function(a){if(!this.videoData.isLivePlayback)return this.videoData.td();var b;if(!this.L("html5_linear_live_max_seekable_killswitch")&&cG(this.videoData)&&(null==(b=this.oa)?0:b.Fl())&&this.videoData.i)return a=this.getCurrentTime(),Eua(1E3*this.getIngestionTime(a))+a;if(xF(this.videoData)&&this.videoData.Zg&&this.videoData.i)return this.videoData.i.td()+this.timestampOffset;if(this.videoData.B&&this.videoData.B.i){if(!a&&this.j)return this.j.Bj();a=this.videoData.td();this.policy.i&&this.oa&&
(a=Math.max(a,bwa(this.oa)));return a+this.timestampOffset}return this.oa?gu()?Eua(this.oa.zy().getTime()):NI(this.oa)+this.timestampOffset||this.timestampOffset:this.timestampOffset};
g.h.getMinSeekableTime=function(){var a=this.videoData?this.videoData.getMinSeekableTime()+this.timestampOffset:this.timestampOffset;if(cG(this.videoData)&&this.videoData.i){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.h.ra=function(){pW(this,null);this.Y.dispose();g.G.prototype.ra.call(this)};
g.h.Kb=function(){var a={};this.Va&&Object.assign(a,this.Va.Kb());this.oa&&Object.assign(a,this.oa.Kb());return a};
g.h.yG=function(a){this.L("html5_unrewrite_timestamps")?this.timestampOffset=a:this.Qa=a};
g.h.getStreamTimeOffset=function(){return xF(this.videoData)?this.Qa:this.videoData.i?this.videoData.i.getStreamTimeOffset():0};
g.h.kd=function(){return this.timestampOffset};
g.h.getIngestionTime=function(a){return this.videoData.i.getIngestionTime(a-this.timestampOffset)};
g.h.Wp=function(){if(!this.oa)return 0;if(NF(this.videoData)){var a=bwa(this.oa)+this.timestampOffset-this.getMinSeekableTime(),b=this.td()-this.getMinSeekableTime();return Math.max(0,Math.min(1,a/b))}return this.oa.Wp()};
g.h.MA=function(a){this.I&&(this.I.i=a.audio.index)};
g.h.L=function(a){return this.X&&this.X.L(a)};
g.h.ma=function(){};sW.prototype.isFinished=function(){return this.finished};
sW.prototype.start=function(){this.started=!0};
sW.prototype.reset=function(){this.finished=this.started=!1};g.v(tW,RQ);tW.prototype.i=function(a,b){var c=j3.Zo("oap");b=RQ.prototype.i.call(this,a,b);j3.Kn(c,Math.ceil(a.length/16));return b};
tW.prototype.j=function(a,b,c){var d=this,e,f;return g.B(function(k){if(1==k.i)return e=j3.Zo("oan2"),g.A(k,RQ.prototype.j.call(d,a,b,c),2);f=k.j;j3.Kn(e,Math.ceil(a.byteLength/16));return k.return(f)})};
g.v(uW,SQ);uW.prototype.encrypt=function(a,b){var c=j3.Zo("oap");b=SQ.prototype.encrypt.call(this,a,b);j3.Kn(c,Math.ceil(a.byteLength/16));return b};vW.prototype.encrypt=function(a){return(new uW(this.i.i)).encrypt(a,this.iv)};
vW.prototype.decrypt=function(a,b){return(new uW(this.i.i)).decrypt(a,b)};g.v(wW,g.G);g.h=wW.prototype;g.h.cg=function(a){var b;return!(null==(b=this.le.get(a))||!b.je.totalLength)};
g.h.Th=function(a){a=this.le.get(a);var b=a.je;a.Sy+=b.totalLength;a.je=new UB;return b};
g.h.zf=function(a){return this.le.get(a).zf};
g.h.ma=function(){};
g.h.ra=function(){g.G.prototype.ra.call(this);for(var a=g.q(this.le.keys()),b=a.next();!b.done;b=a.next())TW(this,b.value);this.le.clear()};sLa.prototype.decrypt=function(a){var b=this,c,d,e,f,k,l;return g.B(function(m){switch(m.i){case 1:if(b.i.length&&!b.i[0].isEncrypted)return m.return();b.j=!0;c=new Uint8Array(16);QQ()?d=new tW(a):e=new uW(a);case 2:if(!b.i.length||!b.i[0].isEncrypted){m.eb(3);break}f=b.i.shift();if(!d){k=e.decrypt(f.buffer,c);m.eb(4);break}return g.A(m,d.decrypt(f.buffer,c),5);case 5:k=m.j;case 4:l=k;for(var n=0;n<c.length;n++)if(255===c[n])c[n]=0;else{c[n]+=1;break}tLa(b.Fm.Ad,f.yH,l);m.eb(2);break;case 3:b.Fm.Ge("omdf"),
cX(b),b.j=!1,b.Fm.pG(),g.ua(m)}})};var ALa=!!Uint8Array.prototype.copyWithin,eX=[],fX=[],wLa=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],hX=[],gX=[],jX=[],iX=[];var cUa=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),nX,o3={},dUa=(o3.a=1,o3.o=3,o3.meac3=5,o3.mac3=7,o3),p3={},eUa=(p3["1h"]=8,p3["9h"]=4,p3["1"]=8,p3["9"]=4,p3.h=2,p3),q3={init:"0-1",index:"2-3",clen:"",url:"",sp:"",s:"",lmt:""},fUa=[["337","336","335"],["701","700"],["315","308","303","302"],["299","298"],["401","400","399","398"],["313","271","248","247","244"],["137","136"]],gUa=[["140"],["251"]],OLa=[Object.assign({},{itag:"137",bitrate:"4000000",size:"1920x1080",fps:"30",
type:'video/mp4; codecs="avc1.4d401e"'},q3),Object.assign({},{itag:"248",bitrate:"2000000",fps:"30",size:"1920x1080",type:'video/webm; codecs="vp9"'},q3),Object.assign({},{itag:"399",bitrate:"1000000",size:"1920x1080",fps:"60",type:'video/mp4; codecs="av01.0.08M.08"'},q3),Object.assign({},{itag:"298",bitrate:"3500000",size:"1280x720",fps:"60",type:'video/mp4; codecs="avc1.64001e"'},q3),Object.assign({},{itag:"299",bitrate:"5000000",size:"1920x1080",fps:"60",type:'video/mp4; codecs="avc1.64001e"'},
q3),Object.assign({},{itag:"302",bitrate:"2500000",fps:"60",size:"1280x720",type:'video/webm; codecs="vp9"'},q3),Object.assign({},{itag:"303",bitrate:"3000000",fps:"60",size:"1920x1080",type:'video/webm; codecs="vp9"'},q3),Object.assign({},{itag:"140",type:'audio/mp4; codecs="mp4a.40.2"'},q3),Object.assign({},{itag:"251",audio_sample_rate:"48000",type:'audio/webm; codecs="opus"'},q3)],r3="135 144 222 223 134 143 133 142 160".split(" "),s3="244 317 273 318 243 280 242 279".split(" "),hUa=["397","396",
"395","394"],t3={},GLa=(t3["398"]=hUa,t3["247"]=s3,t3["136"]=r3,t3["251"]=["250"],t3["140"]=["149"],t3),u3={},NLa=(u3["137"]=["136"].concat(g.u(r3)),u3["248"]=["247"].concat(g.u(s3)),u3["399"]=["398"].concat(g.u(hUa)),u3["298"]=["136"].concat(g.u(r3)),u3["302"]=["247"].concat(g.u(s3)),u3["299"]=["298","137","136"].concat(g.u(r3)),u3["303"]=["302","248","247"].concat(g.u(s3)),u3["140"]=[],u3["251"]=["250"],u3),v3={},LLa=(v3["140"]={numChannels:2},v3["251"]={audioSampleRate:48E3,numChannels:2},v3),
w3={},JLa=(w3["337"]={width:3840,height:2160,bitrate:3E7,fps:30},w3["336"]={width:2560,height:1440,bitrate:15E6,fps:30},w3["335"]={width:1920,height:1080,bitrate:75E5,fps:30},w3["701"]={width:3840,height:2160,bitrate:2E7,fps:30},w3["700"]={width:2560,height:1440,bitrate:1E7,fps:30},w3["315"]={width:3840,height:2160,bitrate:2E7,fps:60},w3["308"]={width:2560,height:1440,bitrate:1E7,fps:60},w3["303"]={width:1920,height:1080,bitrate:5E6,fps:60},w3["302"]={width:1280,height:720,bitrate:25E5,fps:60},w3["299"]=
{width:1920,height:1080,bitrate:75E5,fps:60},w3["298"]={width:1280,height:720,bitrate:35E5,fps:60},w3["401"]={width:3840,height:2160,bitrate:15E6,fps:60},w3["400"]={width:2560,height:1440,bitrate:75E5,fps:60},w3["399"]={width:1920,height:1080,bitrate:2E6,fps:60},w3["398"]={width:1280,height:720,bitrate:1E6,fps:60},w3["313"]={width:3840,height:2160,bitrate:8E6,fps:30},w3["271"]={width:2560,height:1440,bitrate:4E6,fps:30},w3["248"]={width:1920,height:1080,bitrate:2E6,fps:30},w3["247"]={width:1280,height:720,
bitrate:15E5,fps:30},w3["137"]={width:1920,height:1080,bitrate:4E6,fps:30},w3["136"]={width:1280,height:720,bitrate:3E6,fps:30},w3),x3={},ELa=(x3["133"]=240,x3["134"]=360,x3["135"]=480,x3["136"]=720,x3["137"]=1080,x3["242"]=240,x3["243"]=360,x3["244"]=480,x3["247"]=720,x3["248"]=1080,x3["298"]=720,x3["299"]=1080,x3["302"]=720,x3["303"]=1080,x3["395"]=240,x3["396"]=360,x3["397"]=480,x3["398"]=720,x3["399"]=1080,x3),y3={},ILa=(y3["1"]='video/mp4; codecs="av01.0.08M.08"',y3["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',
y3["9"]='video/webm; codecs="vp9"',y3["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"',y3.h='video/mp4; codecs="avc1.64001e"',y3.o='audio/webm; codecs="opus"',y3.a='audio/mp4; codecs="mp4a.40.2"',y3);g.h=PLa.prototype;g.h.pG=function(){this.Ad.pG()};
g.h.feed=function(a,b){var c=b.totalLength;this.ma();switch(a){case 10:var d=xQ(b,mLa);a=d.WX;this.ma();c=!1;switch(a){case 0:this.iv=d.bY.iv;break;case 16:this.RA(d);break;case 2:break;case 23:var e=this.Ad;d=d.wU;d.videoId!==e.videoData.videoId?e.Ba("ompp","vid."+d.videoId):e.OF=!0;break;case 24:e=this.Ad;e.OF=!1;e.Ex=!1;oX(e);break;default:c=!0}this.Ad.Ci&&this.Ad.Ba("ombup","id.10;pt."+a+";len."+b.totalLength+(c?";ignored.1":""));this.j=a;break;case 11:RLa(this,b);break;case 20:a=new rQ(b);c=
uQ(a,1);e=uQ(a,3);d=uQ(a,4);var f=wQ(a,5),k=uQ(a,6);var l=tQ(a,8)?!!sQ(a):void 0;c={ST:c,itag:e,lmt:d,xtags:f,Uea:k,Dw:l,Hfa:uQ(a,9),Zea:uQ(a,10),sA:uQ(a,14)};d=c.ST;a=c.itag+";"+(c.lmt||0)+";"+(c.xtags||"");e=cUa.has(kC[""+c.itag]);f=void 0!==this.i[a];this.Ad.Ci&&this.Ad.Ba("ombup","id.20;len."+b.totalLength+";hid."+d+";fid"+a);this.ma();this.u[d]=a;f?(b=this.i[a].headers,b.push(c),c.sA&&2===b.length&&this.Ad.RA(a,b[0].sA+b[1].sA)):(this.i[a]={QL:!1,uo:e,headers:[c]},null!=(b=this.Ad.Id)&&(c=e,
c=void 0===c?!1:c,b.le.set(a,{je:new UB,Sy:0,bytesReceived:0,MG:!1,zf:!1,uo:c}),b.ma()));break;case 21:SLa(this,b,!1);break;case 12:SLa(this,b,!0);break;case 22:a=ZB(b,0);this.Ad.Ci&&this.Ad.Ba("ombup","id.22;len."+b.totalLength+";hid."+a);b=this.u[a]||null;this.ma();b&&(a=this.i[b],1===a.headers.length&&a.headers[0].sA||uLa(this.queue,b));break;case 37:b=xQ(b,hLa);if(b.ID||b.dI)this.Ad.AE=b;break;default:this.Ad.Ci&&this.Ad.Ba("ombup","id."+a+";len."+c+";ignored.1"),this.ma()}};
g.h.RA=function(a){this.Ad.RA(a.itag+";"+(a.lmt||0)+";"+(a.xtags||""),a.aT||0);this.ma()};
g.h.iG=function(a){var b=this,c,d,e,f,k,l,m,n,p,r;return g.B(function(t){switch(t.i){case 1:b.Ad.iG();c=YB(a);var w=b.Ad;var x=b.iv;w=QQ()?bLa(w.AG,c,x):Promise.resolve(w.AG.decrypt(c,x));return g.A(t,w,2);case 2:d=t.j;if(!b.Ad.enableCompression){t.eb(3);break}return g.A(t,BLa(d),4);case 4:d=t.j,b.Ad.Ba("decompression",{ds:"DecompressionStream"in window});case 3:try{e=xQ(d,rLa)}catch(y){return f=y instanceof Error?{name:y.name,message:y.message}:{},f.webcrypto=""+ +!!QQ(),k=new g.vD("onesie.response.parse",
f),t.return(Promise.reject(k))}if(1!==e.onesieProxyStatus)return l={st:e.onesieProxyStatus,webcrypto:""+ +!!QQ(),textencoder:""+ +!!g.C.TextEncoder},m=new g.vD("onesie.response.badproxystatus",l),t.return(Promise.reject(m));if(200!==e.httpStatus)return n={st:e.httpStatus},p=new g.vD("onesie.response.badstatus",n),t.return(Promise.reject(p));r=g.pA(e.body);b.ma();b.ma();return t.return(r)}})};
g.h.Ge=function(a){this.Ad.Ge(a)};
g.h.ma=function(){};pX.prototype.feed=function(a){VB(this.i,a);ULa(this)};
pX.prototype.dispose=function(){this.i=new UB};g.v(qX,g.G);g.h=qX.prototype;g.h.Ge=function(a){this.Aa.Ge(a)};
g.h.iG=function(){this.Ge("orpr");this.PL=!0};
g.h.RA=function(a,b){var c;null!=(c=this.Id)&&(c.le.get(a).yj=b,c.ma());oX(this)};
g.h.pG=function(){var a;null==(a=this.Id)||eLa(a)};
g.h.Ba=function(a,b,c){this.Aa.Ba(a,b,void 0===c?!1:c)};
g.h.fetch=function(){var a=this,b,c,d,e,f,k,l,m,n,p,r,t;return g.B(function(w){if(1==w.i){a.ma();a.UA.start();a.YN&&a.TA.start();a.Ge("ogpd");var x=a.playerRequest,y=a.X,z=a.videoData,F=y.Yg,I="https://web.archive.org/web/20220130220643/https://youtubei.googleapis.com/youtubei/"+F.innertubeApiVersion+"/player",H=g.YF(z);F.qF&&H||(I=I+"?key="+F.innertubeApiKey);var O=[{name:"Content-Type",value:"application/json"}];H&&O.push({name:"Authorization",value:"Bearer "+H});O.push({name:"User-Agent",value:g.yb()});if(y.L("enable_web_eom_visitor_data")&&
gt("EOM_VISITOR_DATA"))O.push({name:"X-Goog-EOM-Visitor-Id",value:gt("EOM_VISITOR_DATA")});else{var ma=z.visitorData||gt("VISITOR_DATA");ma&&O.push({name:"X-Goog-Visitor-Id",value:ma})}var N=g.dD(y.experiments,"debug_sherlog_username");N&&O.push({name:"X-Youtube-Sherlog-Username",value:N});var da=JSON.stringify(x);if(qA)var qa=qA.encode(da);else{var Wa=new Uint8Array(Math.ceil(1.2*da.length)),cc=rA(da,Wa);Wa.length<cc&&(Wa=new Uint8Array(cc),cc=rA(da,Wa));Wa.length>cc&&(Wa=Wa.subarray(0,cc));qa=Wa}c=
{url:I,httpHeaders:O,postBody:qa};try{var dc=a.X,cb=a.videoData,xc=a.Aa.getPlayerSize(),gb=a.Aa.getVisibilityState(),md=a.PK.onesieUstreamerConfig,Ng=null==(d=a.videoData.gr)?void 0:d.gI,ff=a.AG,zh=wCa(c,qLa),Oi=ff.encrypt(zh),Fl=ff.i.encryptedClientKey,Uq=ff.iv,Og=ff.iv,rc=new TQ(ff.i.j);rc.update(Oi);rc.update(Og);var Gn=HCa(rc);rc.update(rc.C);rc.update(Gn);var Yj=HCa(rc);rc.reset();var Vq=HD(dc.schedule,!0);var Wq=!QQ()||"DecompressionStream"in window||1572864>=Vq;var Xq={encryptedOnesieInnertubeRequest:Oi,
encryptedClientKey:Fl,iv:Uq,hmac:Yj,serializeResponseAsJson:!0,enableCompressionResponseOnly:Wq};var Xb={},Hn=$C(0);if(Hn){Xb.kU=Hn;Xb.lastManualDirection=Bra();var In=$na()||0;0<In&&(Xb.timeSinceLastManualFormatSelectionMs=(0,g.R)()-In)}Xb.JY=$C();if(dc.schedule.W||!dc.L("html5_onesie_enable_server_side_badwidth_estimation"))Xb.mS=HD(dc.schedule,!0);var Jn=g.sE();Xb.AS=xc.width*Jn;Xb.zS=xc.height*Jn;Xb.visibility=gb;Xb.YY=Ou();dc.L("html5_onesie_audio_only_playback")&&zF(cb)&&(Xb.SS=1);if(dc.L("html5_onesie_media_capabilities")){for(var Kn=
BF(cb),Pi=dc.j,Ln=[],Hf=[],Mn=g.q(fUa),Zj=Mn.next();!Zj.done;Zj=Mn.next())for(var Nn=g.q(Zj.value),Ah=Nn.next();!Ah.done;Ah=Nn.next()){var Yq=Ah.value,Be=KLa(Yq);if(Be&&Be.video&&!0===Rz(Kn,Be,Pi)){Ln.push({vZ:eUa[kC[Yq]],tU:Be.video.width,sU:Be.video.height,maxFramerate:Be.video.fps});break}}for(var On=g.q(gUa),ak=On.next();!ak.done;ak=On.next()){var Gl=g.q(ak.value);for(Ah=Gl.next();!Ah.done;Ah=Gl.next()){var Qi=Ah.value,Bh=MLa(Qi);if(Bh&&Bh.audio&&!0===Rz(Kn,Bh,Pi)){Hf.push({lS:dUa[kC[Qi]],numChannels:Bh.audio.numChannels});
break}}}Xb.mediaCapabilities={cI:Ln,HD:Hf}}b={aM:Xq,yS:Xb,onesieUstreamerConfig:md,gI:Ng}}catch(Fh){return a.ma(),Fh instanceof g.vD?a.fail(Fh):(g.Rx(Fh),e=Fh instanceof Error?{name:Fh.name,message:Fh.message}:{},f=new g.vD("onesie.request",e),a.fail(f)),w.return(a.zl)}a.enableCompression=b.aM.enableCompressionResponseOnly;a.Ge("osor");k=Rza(a.X);l=wCa(b,oLa);m={method:"POST",body:l,headers:{"Content-Type":"text/plain",Referer:location.origin}};var Lb=a.videoData,gf,Pg=Lb.T(),Hl=Pg.Ed;if(null==Hl?
0:Hl.baseUrl){var Pn,Qn,Fc=g.dD(Pg.experiments,"debug_bandaid_hostname")||(null==(Pn=Pg.Qh)?void 0:null==(Qn=Pn.i)?void 0:Qn.primary);Fc&&(gf=WLa(new g.bA("https://"+Fc+Hl.baseUrl),Lb))}if(gf)var bk=gf;else{var Ri;bk=null!=(Ri=Lb.gr)&&Ri.url?new g.bA(Lb.gr.url):null}return(n=bk)?w.eb(2):g.A(w,XLa(a.videoData),3)}2!=w.i&&(n=w.j);if(!n)return a.ma(),p={url:"0"},r=new g.vD("onesie.unavailable.hotconfig",p),a.fail(r),w.return(a.zl);var Td=n,Zq=a.videoData;a:{if(a.Id&&!a.L("html5_onesie_media_capabilities")){if(a.L("html5_onesie_all_supported_formats_in_pvi")){var Rn=
a.Aa.getVideoData(),Si=BF(Rn);if(nX)var ck=nX;else{for(var Ch=Rn.T().j,Dh=[],dk=[],Sn=g.q(fUa),Il=Sn.next();!Il.done;Il=Sn.next()){for(var Tn=!1,Ce=g.q(Il.value),Qg=Ce.next();!Qg.done;Qg=Ce.next()){var Un=Qg.value,yc=KLa(Un);!yc||!yc.video||oC(yc)&&!Si.B&&yc.video.i>Si.j||(Tn?Dh.push(Un):!0===Rz(Si,yc,Ch)&&(Tn=!0,Dh.push(Un)))}Dh&&HLa(Dh)}for(var Vn=g.q(gUa),Jl=Vn.next();!Jl.done;Jl=Vn.next()){var Wn=g.q(Jl.value);for(Qg=Wn.next();!Qg.done;Qg=Wn.next()){var Xn=Qg.value,ek=MLa(Xn);if(ek&&ek.audio&&
!0===Rz(Si,ek,Ch)){dk.push(Xn);break}}dk&&HLa(dk)}ck=nX={video:Dh,audio:dk}}}else ck=FLa(a.Aa.getVideoData());var Fd=ck;var Kl=a.Aa,Ll=Kl.Cg,Yn=Kl.videoData,If=IJa(Ll);Ll.L("html5_disable_client_autonav_cap_for_onesie")||If.compose(KJa(Ll,Yn));for(var Zn=[],fk=g.q(Fd.video),Gd=fk.next();!Gd.done;Gd=fk.next()){var Rg=Gd.value,Wu=ELa[Rg]||0;If.i&&Wu>If.i||Zn.push(Rg)}Fd.video=Zn;if(Fd.video.length){var Ml=Fd;break a}a.Ba("ombspf","l."+If.j+";u."+If.i+";o."+If.u+";r."+If.reason)}Ml=void 0}var gk=Ml,
hk=a.L("html5_onesie_media_capabilities");hk=void 0===hk?!1:hk;Td.set("ack","1");Td.set("cpn",Zq.clientPlaybackNonce);Td.set("opr","1");Td.set("oaad","0");Td.set("oavd","0");Td.set("por","1");QQ()||Td.set("onem","1");if(gk){var $q=gk.audio;Td.set("pvi",gk.video.join(","));Td.set("pai",$q.join(","));Gz()||Td.set("osh","1")}else hk||(Td.set("pvi","135"),Td.set("pai","140"),Td.set("oad","0"),Td.set("ovd","0"));a.ma();a.Ci&&a.Ba("ombrs","1");t=a.Aa.T().schedule;a.ul=new AU(a,{Rg:t,nE:a.Ci});n.set("rn",
""+a.ul.requestNumber);a.Et=cA(n);OHa(a.ul,a.Et);a.Ge("ocs");Gz()?Hz()?a.xhr=new zU(a.Et,k,a.ul,m):a.xhr=new IU(a.Et,k,a.ul,m):a.xhr=new JU(a.Et,a.ul,m);if(YLa(a)&&a.cA){var cg=a.cA,nd,Eh=null==(nd=cg.i)?void 0:nd.secondary;Eh&&$ra(cg,Eh,"o2",a);var $n,ao=null==($n=cg.i)?void 0:$n.primary;if(ao){var ar=asa(ao);$ra(cg,ar,"o3",a)}}return w.return(a.zl)})};
g.h.Dt=function(){};
g.h.Dq=function(){if(!this.tF&&this.xhr.Cj()&&(this.Ge("orfb"),this.tF=!0,this.BG.stop(),YLa(this)&&this.xhr)){var a={rc:this.xhr.status,lb:this.xhr.Cj(),rt:(1E3*THa(this.ul)).toFixed(),shost:g.wj(this.Et),trigger:"o1"};this.Ba("pathprobe",uD(a))}this.Zn();this.TA.isActive()&&this.TA.start()};
g.h.Oo=function(){var a=this;this.ma();this.Zn();if(!this.isDisposed()){var b=ZLa(this),c=this.xhr;if(c.Be()){var d="onesie.net";b.msg=c.Be()}else 400<=c.status?d="onesie.net.badstatus":c.yx()?this.PL||(d="onesie.response.noplayerresponse"):d=204===c.status?"onesie.net.nocontent":"onesie.net.connect";d?this.fail(new g.vD(d,b)):(this.Ge("orf"),QHa(this.ul,(0,g.R)(),c.Cj(),0),this.Ci&&this.Ba("rqs",b));this.Ci&&this.Ba("ombre","ok."+ +!d);this.Ex=!1;oX(this);QLa(this.Fm);var e,f;null==(e=this.cA)||
null==(f=bsa(e))||f.forEach(function(k){a.Ba("pathprobe",k)})}};
g.h.L=function(a){return this.X.L(a)};
g.h.cF=function(){this.ma();this.Ex=!1;if(!oX(this)){var a=ZLa(this);a.timeout="1";this.fail(new g.vD("onesie.request",a))}};
g.h.fail=function(a){var b=this;this.zl.reject(a);this.UA.stop();this.Ge("ore");var c,d;null==(c=this.cA)||null==(d=bsa(c))||d.forEach(function(e){b.Ba("pathprobe",e)});
this.dispose()};
g.h.ra=function(){this.playerResponse="";var a;null==(a=this.xhr)||a.abort();QLa(this.Fm);this.uP.dispose();g.G.prototype.ra.call(this)};
g.h.Zn=function(){try{var a=this.xhr;102400<a.Cj()&&!this.eM&&(this.Ge("or100k"),this.eM=!0);for(;a.cg();){var b=a.Th(),c=b.totalLength;this.ma();this.Ci&&this.Ba("ombrss","len."+c);this.uP.feed(b)}var d;null==(d=this.Id)||eLa(d)}catch(e){this.fail(e)}};
g.h.ma=function(){};var dMa=!1;g.v(g.vX,g.tx);g.h=g.vX.prototype;g.h.ra=function(){this.ma();this.AO();this.iB.stop();Jt(this.bB);CFa(this.Me);this.visibility.unsubscribe("visibilitystatechange",this.Me);rKa(this.Wb);g.Se(this.Wb);BX(this);g.Nu.wi(this.Lq);this.Fg();this.Ne=null;g.Se(this.videoData);g.Se(this.xj);g.Te(this.KU);this.cm=null;g.tx.prototype.ra.call(this)};
g.h.zx=function(a){this.Wb.zx(a)};
g.h.Lt=function(a,b,c,d){this.Wb.Lt(a,b,c);this.L("html5_log_media_perf_info")&&this.Ba("adloudness",{ld:d.toFixed(3),cpn:a})};
g.h.HE=function(){var a;return null==(a=this.Va)?void 0:a.HE()};
g.h.IE=function(){var a;return null==(a=this.Va)?void 0:a.IE()};
g.h.getVideoData=function(){return this.videoData};
g.h.T=function(){return this.X};
g.h.Wn=function(){return this.visibility};
g.h.ud=function(){return this.oa};
g.h.TD=function(){if(this.videoData.isLoaded()){var a=this.xj;0<g.lD(a.i.experiments,"html5_player_min_build_cl")&&424458613<g.lD(a.i.experiments,"html5_player_min_build_cl")&&sJa(a,"oldplayer");qMa(this)}else this.videoData.qd||this.videoData.pk?this.kt&&g.kE(this.X)&&this.videoData.isLivePlayback||(this.videoData.qd?pua(this.videoData):(a=this.Wb,a.qoe&&(a=a.qoe,LV(a,"protected"),a.i.videoData.N?a.NO():a.i.videoData.subscribe("dataloaded",a.NO,a)),lua(this.videoData))):!this.videoData.Ia&&this.oS&&
pMa(this)};
g.h.Rs=ba(4);g.h.isFullscreen=function(){return this.visibility.isFullscreen()};
g.h.isBackground=function(){return this.visibility.isBackground()};
g.h.sendAbandonmentPing=function(){g.V(this.getPlayerState(),128)||(this.Z("internalAbandon"),this.gH(!0),rKa(this.Wb),g.Se(this.Wb),g.Nu.wi(this.Lq))};
g.h.er=function(){qKa(this.Wb)};
g.h.Nf=function(a,b,c,d,e,f){this.ma();var k,l;g.rf(CTa,c)?k=c:c?l=c:k="GENERIC_WITHOUT_LINK";d=(d||"")+(";a6s."+Uya());(c=l)||(c=g.XM[k]||"");a={errorCode:a,errorDetail:e,errorMessage:c,qE:k,Ai:f||"",PG:d,rE:b};zX(this,"dataloaderror");this.Yb(RI(this.playerState,128,a));g.Nu.wi(this.Lq);BX(this);this.Nm()};
g.h.Fe=function(a){this.Uj=this.Uj.filter(function(b){return a!==b});
this.ma();this.Lm.started&&AX(this)};
g.h.tm=function(){var a;(a=!!this.Uj.length)||(a=this.Xg.i.i[0],a=!!a&&-0x8000000000000>=a.start);return a};
g.h.ym=function(){return this.Tc.ym()};
g.h.Ic=function(){return this.playerState.Ic()};
g.h.getPlayerState=function(){return this.playerState};
g.h.getPlayerType=function(){return this.playerType};
g.h.getPreferredQuality=function(){if(this.Ne){var a=this.Ne;a=a.videoData.Hr.compose(a.videoData.rP);a=Oz(a)}else a="auto";return a};
g.h.hw=ba(10);g.h.isGapless=function(){return!!this.oa&&this.oa.isView()};
g.h.setMediaElement=function(a){this.ma();if(this.oa&&a.He()===this.oa.He()&&(a.isView()||this.oa.isView())){if(a.isView()||!this.oa.isView())g.sx(this.xu),this.oa=a,zMa(this),this.Tc.setMediaElement(this.oa)}else{this.oa&&this.Fg();if(!this.playerState.isError()){var b=TI(this.playerState,512);g.V(b,8)&&!g.V(b,2)&&(b=SI(b,1));a.isView()&&(b=TI(b,64));this.Yb(b)}this.oa=a;this.oa.setLoop(this.loop);this.oa.setPlaybackRate(this.playbackRate);zMa(this);this.Tc.setMediaElement(this.oa);this.L("html5_prewarm_media_source")&&
!this.xj.Jw&&(a=this.oa,a.u||a.wf()||!Tqa()||(a.u=a.Yp()))}};
g.h.Fg=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.ma();if(this.oa){var c=this.getCurrentTime();0<c&&(this.Tc.u=c);this.Tc.setMediaElement(null);KX(this);this.Va&&(g.hr(this.Va.W),LX(this,b));this.uq.stop();if(this.oa&&(!this.Lm.started||this.playerState.isError()||g.V(this.playerState,2)||this.Yb(SI(this.playerState,512)),this.oa)){g.sx(this.xu);if(a||!this.oa.isView())this.oa.stopVideo(),PX(this);this.oa=null}}};
g.h.playVideo=function(){var a=this,b,c,d,e,f;return g.B(function(k){if(1==k.i){a.ma();if(!a.L("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 k.return();if(a.xj.nA())return a.Z("signatureexpired"),k.return();a.oa&&pKa(a.Wb);FX(a);g.V(a.playerState,64)&&a.Yb(SI(a.playerState,8));return a.Lm.isFinished()&&a.oa?a.Ne||!a.mx?k.eb(2):g.A(k,a.mx,2):k.return()}if(!a.videoData.B)return a.videoData.isLivePlayback&&
!g.sD(a.X.j,!0)?(b="html5.unsupportedlive",c=2):(b=AF(a.videoData)?"fmt.unplayable":"fmt.noneavailable",c=1),g.Rx(Error("selectableFormats")),a.Nf(b,c,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),k.return();if(a.yf()&&a.videoData.B.i)return a.ma(),k.return(yX(a));if(a.videoData.isLivePlayback){d=a.getCurrentTime()<a.getMinSeekableTime()-15;e=g.MF(a.videoData)&&g.V(a.playerState,4);f=!a.L("html5_dompaused_unpause_killswitch")&&g.V(a.playerState,1024);f||!d&&!e||(e?(a.ma(),a.seekTo(Infinity,
{ge:"videoplayer_unpauseLiveOnly"})):(a.ma(),a.seekTo(a.getMinSeekableTime(),{ge:"videoplayer_outOfWindow"})));!a.isAtLiveHead(void 0,!0)&&a.ym()&&(a.ma(),a.seekTo(Infinity,{ge:"videoplayer_peggedToLive"}));if(l=g.V(a.playerState,256)&&a.videoData.jb)l=a.Tc,l=l.N&&!isFinite(l.i);if(l)return a.Yb(UI(a.playerState,8,4)),k.return()}g.V(a.playerState,4)&&g.V(a.playerState,16)&&a.Yb(UI(a.playerState,9,4));if(tX(a))return GMa(a),k.return();OX(a);g.ua(k)})};
g.h.On=function(){if(!this.Ne)return[];var a=xJa(this.Cg,this.Ne,this.Ps());return this.Ne.i.On(a)};
g.h.Ps=function(){var a=this.Rd?this.Rd.Ps():yF(this.videoData)&&this.videoData.i&&Yz(this.videoData.i)?this.videoData.Og?pF:gJa:pF;this.aH&&(a=a.compose(rTa));return a};
g.h.getUserPlaybackQualityPreference=function(){return this.videoData.B&&!this.videoData.B.i?Oz(this.videoData.Hr):Nz[$C()]};
g.h.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()};
g.h.setUserAudio51Preference=function(a){this.videoData.oe!==a&&(this.videoData.oe=a,g.iy("yt-player-audio51",a,2592E3),AV(this))};
g.h.getUserAudio51Preference=function(){var a;return null!=(a=g.jy("yt-player-audio51"))?a:1};
g.h.getAvailableAudioTracks=function(){return this.videoData.getAvailableAudioTracks()};
g.h.getAudioTrack=function(){if(this.L("html5_native_audio_track_switching")){var a=vMa(this);if(a)return a}return this.videoData.getAudioTrack()};
g.h.Yp=function(){return this.mediaSource};
g.h.Bt=function(a){this.ma();this.Ft.set(a.initData,a);this.Rd&&(this.Rd.Bt(a),this.L("html5_eme_loader_sync")||this.Ft.remove(a.initData))};
g.h.MA=function(a){IX(this,a.reason,a.video.info,a.audio.info);this.Tc.MA(a)};
g.h.At=function(a){this.Z("localmediachange",a)};
g.h.ou=function(){var a;null==(a=this.Va)||a.ou(this.X)};
g.h.nA=function(){return this.xj.nA()};
g.h.handleError=function(a){this.xj.handleError(a)};
g.h.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.Yb(UI(this.playerState,4,8));else return;this.L("html5_enable_server_stitched_ad_skip")&&this.videoData.enableServerStitchedDai&&this.Rx()||(g.V(this.playerState,128)||(a?this.Yb(SI(this.playerState,256)):this.Yb(UI(this.playerState,4,8))),this.oa&&this.oa.pause(),g.MF(this.videoData)&&this.Va&&LX(this,!1))};
g.h.stopVideo=function(){this.pauseVideo();this.Va&&(LX(this,!1),TU(this.Va))};
g.h.Nm=function(a){a=void 0===a?!1:a;var b;null==(b=this.oa)||b.stopVideo();PX(this);BX(this);g.V(this.playerState,128)||(a?this.Yb(TI(TI(SI(this.playerState,4),8),16)):this.Yb(RI(this.playerState)));this.videoData.videoId&&this.X.W.remove(this.videoData.videoId)};
g.h.seekTo=function(a,b){b=void 0===b?{}:b;this.ma("SeekTo "+a+", "+JSON.stringify(b));g.V(this.playerState,2)&&tX(this);if(this.pd){var c=this.pd;isFinite(a)&&a<c.Aa.Bj()?c.isLiveNow=!1:c.isLiveNow=!0}this.Tc.seekTo(a,b)};
g.h.getCurrentTime=function(){return this.Tc.getCurrentTime()};
g.h.Hh=function(){return this.Tc.Hh()};
g.h.Bj=function(){return this.Tc.Bj()};
g.h.getPlaylistSequenceForTime=function(a){return this.videoData.getPlaylistSequenceForTime(a-this.kd())};
g.h.Qs=function(){var a=NaN;this.oa&&(a=this.oa.Qs());return 0<=a?a:this.getCurrentTime()};
g.h.getIngestionTime=function(){var a;return(null==(a=this.videoData.i)?0:a.getIngestionTime)?this.videoData.i.getIngestionTime(this.getCurrentTime()-this.kd()):this.L("html5_disable_limit_ingestion_tvos")&&!gu()||!this.oa||!(a=this.oa.zy())||(a=a.getTime(),isNaN(a))?NaN:a/1E3+this.getCurrentTime()};
g.h.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.kd():this.td()?this.td():0};
g.h.Tz=function(){var a=new vKa;if(this.Va){var b=this.X.schedule;a.j=b.Y;a.B=b.ea;a.bandwidthEstimate=HD(b);a.i={d:FD(b).toFixed(2),st:(1E9*(b.i.vg()||0)).toFixed(2),bw:b.u.vg().toFixed(0),abw:b.I.vg().toFixed(0),v50:DD(b.j,.5).toFixed(2),v92:DD(b.j,.92).toFixed(2),v96:DD(b.j,.96).toFixed(2),v98:DD(b.j,.98).toFixed(2)};b=this.Va;if(b.mediaSource&&!b.mediaSource.zf()&&(a.Gp=tU(b.videoTrack,b.currentTime),a.u=tU(b.audioTrack,b.currentTime),b.policy.fb)){var c=sU(b.videoTrack),d=sU(b.audioTrack),e=
AC(b.mediaSource.j.uf(),"_",5),f=AC(b.mediaSource.i.uf(),"_",5);Object.assign(a.i,{lvq:c,laq:d,lvb:e,lab:f})}a.bandwidthEstimate=tT(b.I);b.ma(uD(a.i))}else this.oa&&(a.Gp=OI(this.oa));a.C=this.isAtLiveHead()&&this.Ic()?sX(this):NaN;return a};
g.h.Wp=function(){return this.oa?g.MF(this.videoData)?1:NF(this.videoData)?this.isAtLiveHead()||this.ym()?1:this.Tc.Wp():this.oa.Wp():0};
g.h.Kb=function(a){var b={};if(void 0===a?0:a){Object.assign(b,this.Wb.Kb());this.oa&&(Object.assign(b,this.oa.Kb()),Object.assign(b,this.pw()));this.Va&&Object.assign(b,this.Va.Kb());this.Rd&&(b.drm=JSON.stringify(this.Rd.Kb()));b.state=this.playerState.state.toString(16);g.V(this.playerState,128)&&(b.debug_error=JSON.stringify(this.playerState.getData()));this.tm()&&(b.prerolls=this.Uj.join(","));this.videoData.hk&&(b.ismb=this.videoData.hk);"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.Py.isOrchestrationLeader()&&(b.leader=1);this.videoData.isLivePlayback&&(this.videoData.i&&XC(this.videoData.i)&&(b.segduration=XC(this.videoData.i)),a=this.Tc,b.lat=a.I?fGa(a.I.B):0,b.liveutcstart=this.videoData.liveUtcStartSeconds);b.relative_loudness=this.videoData.me.toFixed(3);if(a=g.HX(this))b.optimal_format=a.video.qualityLabel;b.user_qual=
$C();b.release_version="youtube.player.web_20220126_01_RC00"}b.debug_videoId=this.videoData.videoId;return b};
g.h.addCueRange=function(a){this.ov([a])};
g.h.removeCueRange=function(a){this.Xg.Mf([a])};
g.h.Qv=function(a,b){return this.Xg.Qv(a,b)};
g.h.ov=function(a,b){this.Xg.Nd(a,b)};
g.h.qB=function(a){this.Xg.Mf(a)};
g.h.hm=function(){return this.Xg.hm()||[]};
g.h.yf=function(){return this.visibility.yf()};
g.h.Xo=function(){this.oa&&this.oa.Xo()};
g.h.KX=function(){zX(this)};
g.h.togglePictureInPicture=function(){this.oa&&this.oa.togglePictureInPicture()};
g.h.zG=function(a){this.KB.stop();var b=a.target.wf();if(this.oa&&this.oa.wf()&&this.oa.wf()===b){IMa(this,a.type);switch(a.type){case "error":var c=PI(this.oa)||"";if("capability.changed"===c){yX(this);return}if(0<this.oa.uj()&&BV(this.xj,c,{msg:this.oa.Be()}))return;if(this.isBackground()&&4===this.oa.uj()){this.Nm();CX(this,"unplayable");return}break;case "durationchange":c=this.oa.getDuration();isFinite(c)&&(!this.mediaSource||0<c)&&1!==c&&this.Wj(c);break;case "ratechange":this.Va&&this.Va.setPlaybackRate(this.oa.getPlaybackRate());
c=this.Xg;c.started=!0;c.Gl();this.Wb.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":KMa(this);this.Z("onLoadedMetadata");CMa(this);break;case "loadstart":CMa(this);break;case "progress":case "suspend":this.Rb();this.Z("onLoadProgress",this,this.Wp());break;case "playing":kM(this.Mb,"plev");BMa(this);this.dH&&(this.dH=!1,this.isAtLiveHead()||(this.ma(),this.seekTo(Infinity,{ge:"videoplayer_onPlaying"})));break;case "timeupdate":BMa(this);c=this.oa&&!this.oa.getCurrentTime();
var d=this.oa&&0===this.oa.Dh();if(c&&(!this.HA||d))return;this.HA=this.HA||!!this.oa.getCurrentTime();NX(this);this.Rb();if(!this.oa||this.oa.wf()!==b)return;this.Z("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(0<this.oa.aq().length&&0===this.oa.Yf().length&&0<this.oa.getCurrentTime()&&5>this.oa.getCurrentTime()&&this.Va)return;break;case "resize":KMa(this);this.videoData.j&&"auto"===this.videoData.j.video.quality&&this.Z("internalvideoformatchange",this.videoData,!1);break;
case "pause":if(this.kK&&g.V(this.playerState,8)&&!g.V(this.playerState,1024)&&0===this.getCurrentTime()&&g.Sv){CX(this,"safari_autoplay_disabled");return}}if(this.oa&&this.oa.wf()===b){this.Z("videoelementevent",a);b=this.playerState;if(!g.V(b,128)){c=this.xv;var e=this.oa,f=this.X.experiments;d=b.state;e=e?e:a.target;var k=e.getCurrentTime();if(!g.V(b,64)||"ended"!==a.type&&"pause"!==a.type){var l=e.fl()||1<k&&1.1>Math.abs(k-e.getDuration());k="ended"===a.type||"waiting"===a.type||"timeupdate"===
a.type&&!g.V(b,4)&&!bW(c,k);if("pause"===a.type&&e.fl()||l&&k)0<e.Oz()&&e.wf()&&(d=14);else switch(a.type){case "error":PI(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)&-1029;f&&f.Xa("html5_playing_clears_unstarted_killswitch")||(d&=-65);bW(c,e.getCurrentTime())&&(d&=-2);g.V(b,1)&&cW(c,e.getCurrentTime(),(0,g.R)(),OI(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);cW(c,e.getCurrentTime(),(0,g.R)(),OI(e));break;case "timeupdate":f=g.V(b,16),l=g.V(b,4),(g.V(b,8)||f)&&!l&&bW(c,e.getCurrentTime())&&(d=8),cW(c,e.getCurrentTime(),(0,g.R)(),OI(e))&&(d|=1)}}c=d;d=null;c&128&&(d=a.target,e=PI(d),f=1,e?("capability.changed"===e&&(f=2),l="GENERIC_WITHOUT_LINK",k=d.Kb(),k.mediaElem="1",/AUDIO_RENDERER/.test(d.Be())&&(l="HTML5_AUDIO_RENDERER_ERROR"),d={errorCode:e,errorMessage:g.XM[l]||"",qE:l,PG:uD(k),rE:f}):d=null);b=RI(b,c,d)}!g.V(this.playerState,
1)&&g.V(b,1)&&RX(this,"evt"+a.type);this.Yb(b)}}};
g.h.yX=function(){this.Ba("misstimeupdate",{});AMa(this)&&!g.V(this.playerState,2)&&uS(this,!0,!1)};
g.h.aV=function(a){a="available"===a.i.availability;a!==this.Cw&&(this.Cw=a,this.Z("airplayavailabilitychange"))};
g.h.bV=function(){var a=(0,g.R)(),b=this.oa.yf();this.Ba("airplay",{ia:b});if(!this.L("html5_ignore_inactive_airplay_killswitch")&&b||isNaN(this.pA)||!(2E3>a-this.pA))this.pA=a,b!==this.yf()&&(a=this.visibility,a.i!==b&&(a.i=b,a.Me()),this.Ba("airplay",{rbld:b}),AV(this)),this.Z("airplayactivechange")};
g.h.qw=function(a){if(this.Va){var b=this.Va,c=b.u,d=b.currentTime;c.Ba("sdai",{adfetchdone:a});a&&!isNaN(c.B)&&GGa(c,d,c.B,c.u);c.i=4;g.hr(b.W)}};
g.h.Rb=function(a){var b=this;a=void 0===a?!1:a;if(this.oa&&this.videoData){SKa(this.Tc,this.Ic());var c=this.getCurrentTime();this.Va&&(g.V(this.playerState,4)&&g.MF(this.videoData)||yIa(this.Va,c));5<c&&(this.Tc.u=c);var d=g.bu();d?g.Nu.wi(this.Lq):g.It(this.Lq);var e=this.oa.Fl();if((g.YI(this.playerState)||!e||cG(this.videoData))&&!g.V(this.playerState,128)){var f=function(){if(b.oa&&!g.V(b.playerState,128)){EE(b.X)&&g.lD(b.X.experiments,"html5_log_rebuffer_events")&&IMa(b,"pfx");var k=b.getCurrentTime(),
l=OI(b.oa),m=g.V(b.playerState,8),n=bW(b.xv,k),p=cW(b.xv,k,(0,g.R)(),l);m&&n?b.Yb(TI(b.playerState,1)):m&&p?(m=b.getDuration(),n=b.videoData.isLivePlayback,(b.L("html5_set_ended_in_pfx_live")||!n)&&m&&1.1>Math.abs(m-k)?(b.Ba("setended",{ct:k,bh:l,dur:m,live:n}),n&&b.L("html5_set_ended_in_pfx_live_cfl")||(b.oa.Xp()?(b.ma(),b.seekTo(0,{ge:"videoplayer_loop"})):uS(b))):(g.YI(b.playerState)||RX(b,"progress_fix"),b.Yb(SI(b.playerState,1)))):(m&&!n&&!p&&0<k&&(m=(Date.now()-b.Jw)/1E3,n=b.getDuration(),k>
n-1&&b.Ba("misspg",{t:k.toFixed(2),d:n.toFixed(2),r:m.toFixed(2),bh:l.toFixed(2)})),g.V(b.playerState,4)&&g.YI(b.playerState)&&5<OI(b.oa)&&b.Yb(TI(b.playerState,1)));b.Rb()}};
0===this.oa.aq().length?this.Lq=d?g.Nu.Uf(f,100):g.Gt(f,100):this.Lq=d?g.Nu.Uf(f,500):g.Gt(f,500)}this.videoData.bv=c;!a&&this.Ic()&&FMa(this);FJa(this.Cg,this.Ne,this.ud(),this.isBackground())&&bV(this);GJa(this.Cg,this.videoData.j)&&(this.Wb.yd("qoe.restart","droprate."+this.Cg.J),this.X.j.J=!1,AV(this));this.Z("progresssync",this,a);!this.L("html5_progress_event_linear_paused_killswitch")&&e&&cG(this.videoData)&&this.Z("onVideoProgress",this,this.getCurrentTime())}};
g.h.rT=function(){this.Nf("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))};
g.h.dw=function(){return this.Wb.dw()};
g.h.EE=function(){return this.Va?this.Va.EE():HD(this.X.schedule,!0)};
g.h.tS=function(){g.YI(this.playerState)&&DJa(this.Cg,this.Ne)&&bV(this)};
g.h.Yb=function(a){if(!g.VI(this.playerState,a)){this.ma();var b=new g.TG(a,this.playerState);this.playerState=a;JMa(this);var c=!this.dB.length;this.dB.push(b);var d=this.oa&&this.oa.Ru();g.VG(b,1)&&!g.V(b.Ho,16)&&!d&&g.V(this.playerState,8)&&!g.V(this.playerState,64)&&this.Va&&(d=this.Va,d.ma(),d.ya=!0,this.oa&&5<=OI(this.oa)&&((d=g.lD(this.X.experiments,"html5_non_network_rebuffer_duration_ms"))?this.bN.start(d):DJa(this.Cg,this.Ne)&&bV(this)));(d=g.lD(this.X.experiments,"html5_ad_timeout_ms"))&&
this.videoData.isAd()&&g.V(a,1)&&(g.V(a,8)||g.V(a,16))?this.vD.start(d):this.vD.stop();(0>UG(b,8)||g.VG(b,1024))&&this.uq.stop();!g.VG(b,8)||this.videoData.jb||g.V(b.state,1024)||this.uq.start();g.V(b.state,8)&&0>UG(b,16)&&!g.V(b.state,32)&&!g.V(b.state,2)&&this.playVideo();g.V(b.state,2)&&NF(this.videoData)&&(this.Wj(this.getCurrentTime()),this.Rb(!0));g.VG(b,2)&&this.gH(!0);g.VG(b,128)&&this.Nm();this.videoData.i&&this.videoData.isLivePlayback&&!this.zP&&(0>UG(b,8)?(a=this.videoData.i,a.B&&a.B.stop()):
g.VG(b,8)&&this.videoData.i.resume());this.Tc.Sc(b);this.Wb.Sc(b);if(c&&!this.isDisposed())try{for(var e=g.q(this.dB),f=e.next();!f.done;f=e.next()){var k=f.value;this.Xg.Sc(k);this.Z("statechange",k)}}finally{this.dB.length=0}}};
g.h.ex=function(){this.videoData.isLivePlayback||this.Z("connectionissue")};
g.h.vG=function(){this.Mb.tick("qoes")};
g.h.LA=function(a,b,c,d){a:{var e=this.xj;d=void 0===d?"LICENSE":d;c=c.substr(0,256);var f=wD(b);"drm.keyerror"===a&&this.Rd&&1<this.Rd.j.keys.length&&96>e.C&&(a="drm.sessionlimitexhausted",f=!1);if(f)if(e.videoData.j&&e.videoData.j.video.isHdr())uJa(e,a);else{if(e.Aa.Nf(a,b,d,c),e.videoData.L("html5_exile_on_drm_fatal")&&nJa(e,{detail:c}))break a}else e.yd(a,b,{detail:c});"drm.sessionlimitexhausted"===a&&(e.Ba("retrydrm",{sessionLimitExhausted:1}),e.C++,QX(e.Aa))}};
g.h.WV=function(){var a=this,b=g.lD(this.X.experiments,"html5_license_constraint_delay"),c=pu();b&&c?(b=new g.K(function(){DX(a);zX(a)},b),g.J(this,b),b.start()):(DX(this),zX(this))};
g.h.hx=function(a){this.Z("heartbeatparams",a)};
g.h.Mo=function(a){this.Ba("keystatuses",WIa(a));var b="auto",c=!1;this.videoData.j&&(b=this.videoData.j.video.quality,c=this.videoData.j.video.isHdr());if(this.L("html5_drm_check_all_key_error_states")){var d=XIa(b,c);d=lV(a)?mV(a,d):a.C.includes(d)}else{a:{b=XIa(b,c);for(d in a.i)if("output-restricted"===a.i[d].status){var e=a.i[d].type;if(""===b||"AUDIO"===e||b===e){d=!0;break a}}d=!1}d=!d}b=a.Y&&d;c&&!b?uJa(this.xj):d||mV(a,"AUDIO")&&mV(a,"SD")||(this.ma(),this.aH?(this.ma(),this.Z("drmoutputrestricted")):
(this.aH=!0,this.Ba("retrydrm",{o:1}),EX(this),QX(this)))};
g.h.ZV=function(){if(!this.videoData.jb&&this.oa&&!this.isBackground()){var a="0";0<this.oa.Dh()&&5<=OI(this.oa)&&this.videoData.B&&this.videoData.B.i&&(this.Yb(SI(this.playerState,1)),RX(this,"load_soft_timeout"),this.Z("playbackstalledatstart"),a="1");JMa(this);if(this.L("html5_new_video_qoe_restart_info_killswitch"))a={restartmsg:a},this.tm()&&(a.prerolls=this.Uj.join(",")),this.Va&&Object.assign(a,this.Va.Kb()),this.oa&&Object.assign(a,this.oa.Kb());else{var b=this.videoData.B;a={restartmsg:a,
mfmt:yF(this.videoData)?"0":"1",mdrm:b&&b.videoInfos&&b.videoInfos.length&&b.videoInfos[0].Kd&&!this.Rd?"1":"0",mfmtinfo:this.videoData.j?"0":"1",prerolls:this.tm()?this.Uj.join(","):"0"};if(this.Rd){b=a;var c=this.Rd;if(0>=c.j.size){var d="ns;";c.W||(d+="nr;");c=d+="ql."+c.u.length}else c=WIa(c.j.values().next().value),c=uD(c);b.drmp=c}var e;Object.assign(a,(null==(e=this.Va)?void 0:e.Kb())||{});var f;Object.assign(a,(null==(f=this.oa)?void 0:f.Kb())||{})}this.Wb.yd("qoe.start15s",uD(a));this.Z("loadsofttimeout")}};
g.h.Wj=function(a){this.videoData.lengthSeconds!==a&&(this.videoData.lengthSeconds=a,zX(this))};
g.h.gH=function(a){var b=this;a=void 0===a?!1:a;if(!this.Qy){Dz("att_s","player_att")||Ez("att_s",void 0,"player_att");var c=new g.hza(this.videoData);if(lza(c)&&(Ez("att_wb",void 0,"player_att"),2===this.FD&&.01>Math.random()&&g.Rx(Error("Botguard not available after 2 attempts")),!a&&5>this.FD)){g.hr(this.GD);this.FD++;return}if("c1b"in c.i){var d=tKa(this.Wb);d&&kza(c).then(function(e){e&&!b.Qy&&d?(Ez("att_f",void 0,"player_att"),d(e),b.Qy=!0):Ez("att_e",void 0,"player_att")},function(){Ez("att_e",
void 0,"player_att")})}else(a=g.iza(c))?(Ez("att_f",void 0,"player_att"),sKa(this.Wb,a),this.Qy=!0):Ez("att_e",void 0,"player_att")}};
g.h.td=function(a){return this.Tc.td(void 0===a?!1:a)};
g.h.getMinSeekableTime=function(){return this.Tc.getMinSeekableTime()};
g.h.kd=function(){return this.Tc?this.Tc.kd():0};
g.h.getStreamTimeOffset=function(){return this.Tc?this.Tc.getStreamTimeOffset():0};
g.h.setPlaybackRate=function(a){var b=this.videoData.B&&this.videoData.B.videoInfos&&32<this.videoData.B.videoInfos[0].video.fps&&g.kE(this.X);this.playbackRate!==a&&b&&(this.Cg.setPlaybackRate(a),EX(this));this.playbackRate=a;this.oa&&this.oa.setPlaybackRate(a)};
g.h.getPlaybackRate=function(){return this.playbackRate};
g.h.getPlaybackQuality=function(){var a="unknown";if(this.videoData.j&&(a=this.videoData.j.video.quality,"auto"===a&&this.oa)){var b=QG(this);b&&0<b.videoHeight&&(a=gC(b.videoWidth,b.videoHeight))}return a};
g.h.isHdr=function(){return!!(this.videoData.j&&this.videoData.j.video&&this.videoData.j.video.isHdr())};
g.h.uu=function(){this.Wb.uu()};
g.h.sendVideoStatsEngageEvent=function(a,b){var c=this.Wb;c.i?(c=UV(c.i,"engage"),c.W=a,c.send(b)):b&&b()};
g.h.eh=function(a){return this.Wb.eh(a)};
g.h.isAtLiveHead=function(a,b){return this.videoData.isLivePlayback&&(this.OL||(void 0===b?0:b))?this.Tc.isAtLiveHead(a):!1};
g.h.Sn=function(){var a=this.td(),b=this.getCurrentTime(),c;(c=!this.videoData.isLivePlayback)||(c=this.Tc,c=!(c.j&&c.j.u));return c||this.ym()||isNaN(a)||isNaN(b)?0:Math.max(0,a-b)};
g.h.Rj=ba(14);g.h.Lo=ba(35);g.h.Ko=ba(38);g.h.pw=function(){return this.oa?this.oa.Ay():{}};
g.h.setLoop=function(a){this.loop=a;this.oa&&this.oa.setLoop(a)};
g.h.Xp=function(){return this.oa?this.oa.Xp():this.loop};
g.h.yG=function(a){var b=this.L("html5_unrewrite_timestamps");this.Ba("timestamp",{enabled:b,t:a.toString()});this.Tc.yG(a)};
g.h.Ge=function(a){this.Mb.tick(a)};
g.h.Ba=function(a,b,c){this.Wb.Ba(a,b,void 0===c?!1:c)};
g.h.TG=function(a,b,c){this.Wb.Ba(a,b,void 0===c?!1:c)};
g.h.yd=function(a){this.Wb.yd(a.errorCode,uD(a.details))};
g.h.Ax=function(a,b,c){this.Wb.Ax(a,b,c)};
g.h.getPlayerSize=function(){return this.Qx.getPlayerSize()};
g.h.xg=function(){return this.Qx.xg()};
g.h.zj=function(){return this.Mb};
g.h.ma=function(){};
g.h.L=function(a){return this.X.L(a)};
g.h.ED=function(){if(CF(this.videoData,"html5_set_debugging_opt_in")){var a=g.vv.getInstance();if(!g.wv(0,183)){var b="f"+(Math.floor(183/31)+1),c=pla(b)||0;c|=268435456;0==c?delete uv[b]:(c=c.toString(16),uv[b]=c.toString());a.save()}}};
g.h.AO=function(){if(g.WI(this.playerState)){var a=uX.hL();0!==Object.keys(a).length&&this.Wb.Ba("profile",a)}this.iB.start()};
g.h.Rx=function(){var a=this.getCurrentTime(),b;return(null==(b=this.Va)?0:b.Rx(a,100))?(aLa(this.Tc,a+100+5),!0):!1};
g.h.Ts=function(a){return this.Va?this.Va.Ts(a):""};g.v(g.VX,g.G);g.VX.create=function(a,b,c){try{var d="string"===typeof a?a:"player"+g.Qa(a),e=z3[d];if(e){try{e.dispose()}catch(k){g.S(k)}z3[d]=null}var f=new g.VX(a,b,c);g.Ue(f,function(){z3[d]=null;f.vP&&f.vP()});
return z3[d]=f}catch(k){throw g.S(k),k.stack;}};
g.h=g.VX.prototype;g.h.Wn=function(){return this.visibility};
g.h.getVisibilityState=function(a,b,c,d,e,f){return this.visibility.getVisibilityState(a,b,c,d,e,f)};
g.h.im=function(){this.rF||(this.rF=g.EL(yJ(),Rya()));return this.rF};
g.h.isVideoInfoVisible=function(){return!(!this.qj||!this.qj.sb)};
g.h.Fg=function(){if(this.oa){this.Cu&&(this.events.xc(this.Cu),this.Cu=null);g.sx(this.Do);this.vb&&this.vb.Fg(!0);this.template.Fg();if(!this.L("html5_unset_src_on_remove_killswitch"))try{this.oa.rB()}catch(a){}this.oa=null}};
g.h.xl=function(a){if(this.L("html5_skip_setPresenting"))if(1===a&&this.vb)bY(this,this.vb);else{var b;2===a&&a!==(null==(b=this.vb)?void 0:b.getPlayerType())&&this.cueVideoByPlayerVars({videoId:"workaround"},a)}else{b=g.hM(this,a);if(!b||b.isDisposed())b=new qF(this.X),b=this.Wl(a,b);$X(this,b)}};
g.h.Nc=function(){return this.vb};
g.h.To=function(a){this.L("html5_skip_setPresenting")?this.vb&&bY(this,this.vb):(a=g.hM(this,a))&&bY(this,a)};
g.h.Wl=function(a,b,c){var d=this,e=this.Mb;2===a&&(e=new jM(this.X));return new g.vX(this.X,a,e,this.template,function(f){return d.Mm.Z.apply(d.Mm,[f].concat(g.u(g.Ca.apply(1,arguments))))},function(){return d.Sa.getVisibilityState()},this.visibility,this,b,c)};
g.h.setIsExternalPlaylist=function(a){this.rg=LD(!1,a)};
g.h.gV=function(){WX(this)||(this.ma(),this.wl(5))};
g.h.vW=function(a){WX(this)||(this.ma(),qNa(this),g.WI(a.getPlayerState())&&this.playVideo())};
g.h.canPlayType=function(a){return uC(a)};
g.h.T=function(){return this.X};
g.h.getVideoData=function(){return this.vb.getVideoData()};
g.h.ow=ba(6);g.h.getVideoLoadedFraction=function(a){a=g.hM(this,a);return a?g.$F(a.getVideoData())?1:(a=a.ud())?a.Wp():0:0};
g.h.bb=function(){return this.template};
g.h.tb=function(){return this.od};
g.h.zj=function(){return this.Mb};
g.h.Vt=function(a){var b=g.hM(this,1);b&&uS(b,a)};
g.h.Ih=function(){var a=this.od.SE();a.fs=this.Sa.isFullscreen();a.volume=Math.round(this.Sa.getVolume());a.muted=this.Sa.isMuted()?1:0;a.mos=a.muted;if(this.X.L("html5_enable_embedded_player_visibility_signals")&&g.WD(this.X)){if(this.eI){var b=this.eI;b=null==b.i?null:Math.round(100*b.i)/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.sE();1<c&&b.push(c);a.size=b.join(":")}}this.vb===this.rb&&this.Nb&&(a.clipid=
this.Nb.postId);return a};
g.h.addBgVersionChangeCallback=function(a){LL.push(a)};
g.h.Ti=function(a){1===a&&(this.Mb.tick("vr"),this.ep||(this.ep=Gw(fTa,this.nN,this)),DMa(this.vb),yza(this.Mb,this.vb.getVideoData(),pNa(this)));var b=this.X;(BE(b)&&b.u||g.dE(b))&&(this.Yd()||this.Sa.Oa("onAdStateChange",a))};
g.h.setLoopVideo=function(a){this.vb===this.rb&&this.vb.Xp()!==a&&(this.vb.setLoop(a),this.Sa.Z("loopchange",a))};
g.h.getLoopVideo=function(){return this.vb.Xp()};
g.h.setLoopRange=function(a){var b=!1;!!this.Nb!==!!a?b=!0:this.Nb&&a&&(b=this.Nb.startTimeMs!==a.startTimeMs||this.Nb.endTimeMs!==a.endTimeMs||this.Nb.postId!==a.postId);b&&(this.rb.Xg.gf("applooprange"),a?(b=new g.Ly(a.startTimeMs,a.endTimeMs,{id:"looprange",namespace:"applooprange"}),this.rb.addCueRange(b)):SX(this).clipConfig=void 0,this.Nb=a,this.Sa.Oa("onLoopRangeChange",a||void 0),this.vb===this.rb&&(this.yB(),this.vb.er()))};
g.h.getLoopRange=function(){return this.Nb};
g.h.yB=function(){this.Nb&&this.vb===this.rb&&(gNa(this,this.rb.getCurrentTime())||hNa(this))};
g.h.setPlaybackRate=function(a,b){isNaN(a)||(a=UMa(this,a),this.rb.getPlaybackRate()!==a&&(this.rb.setPlaybackRate(a),b&&!this.X.i&&g.iy("yt-player-playback-rate",a),this.Sa.Oa("onPlaybackRateChange",a)))};
g.h.getCurrentTime=function(a,b){b=void 0===b?!0:b;if(3===this.getPresentingPlayerType())return bM(this.od).getCurrentTime();var c=2===a&&this.getVideoData().enableServerStitchedDai;a=c?g.hM(this):g.hM(this,a);if(!a)return 0;if(b){if(c&&this.Uc&&(b=this.Uc.Ha/1E3,0!==b))return b;a=dY(this,a);return mY(this,a.getCurrentTime(),a)}c&&this.Uc?(b=this.Uc,a=a.getCurrentTime(),yS(b)?(b=HS(b,1E3*a))&&b.jn&&(a-=b.jn):(b=JFa(b,1E3*a))&&(a-=b.start/1E3)):a=a.getCurrentTime();return a};
g.h.Qs=function(){var a=g.hM(this,void 0);if(!a)return 0;a=dY(this,a);return mY(this,a.Qs(),a)};
g.h.getDuration=function(a,b){b=void 0===b?!0:b;var c=this.getVideoData(),d=2===a&&c.enableServerStitchedDai;a=d?g.hM(this):g.hM(this,a);if(!a)return 0;if(this.L("enable_linear_player_handling")&&c.hasProgressBarBoundaries()){var e,f=Number(null==(e=c.progressBarStartPosition)?void 0:e.utcTimeMillis),k;c=Number(null==(k=c.progressBarEndPosition)?void 0:k.utcTimeMillis);if(!isNaN(f)&&!isNaN(c))return(c-f)/1E3}if(b)return b=cY(this,a),mY(this,b.getDuration(),b);d&&this.Uc?(b=this.Uc,d=a.getCurrentTime(),
b=yS(b)?b.ea?b.ea.durationMs/1E3:0:(b=HS(b,1E3*d))?b.durationMs/1E3:0):b=a.getDuration();return b};
g.h.getMinSeekableTime=function(a){a=g.hM(this,a);if(!a)return 0;a=cY(this,a);return mY(this,a.getMinSeekableTime(),a)};
g.h.getIngestionTime=function(a){var b=g.hM(this,a);return b?this.Yd(b)?(b=cY(this,b),b.getIngestionTime()-b.getCurrentTime()+this.getCurrentTime(a)):b.getIngestionTime():0};
g.h.iE=function(){this.template.iE();var a=this.G;a.element=this.template.element;var b=a.element,c;for(c in a.j)a.j.hasOwnProperty(c)&&(b[c]=a.j[c]);(a=px(this.template.element))&&this.events.S(this.template,a,this.onFullscreenChange);this.events.S(window,"resize",this.TW)};
g.h.getDebugText=function(a){var b=this.rb.Kb(a);if(this.vb&&this.vb!==this.rb){for(var c=this.vb.Kb(a),d=g.q(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=sh("movie_player"))d.bounds=e.getBoundingClientRect(),d["class"]=e.className;e={};var f=g.wh("video-ads");f?(vNa(f,e),e.html=f.outerHTML):e.missing=1;f={};var k=g.wh("videoAdUiSkipContainer"),l=g.wh("ytp-ad-skip-button-container"),m=k||l;m?(vNa(m,f),f.ima=k?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.oa&&(b["0sz"]=""+(0===+fh(this.oa.getSize())),b.op=this.oa.getStyle("opacity"),c=this.oa.Un().y+this.oa.getSize().height,b.yof=""+(0>=+c),b.dis=this.oa.getStyle("display"));(a=a?(0,g.MV)():null)&&(b.gpu=a);b.debug_playbackQuality=this.Sa.getPlaybackQuality(1);b.debug_date=(new Date).toString();delete b.uga;delete b.q;return JSON.stringify(b,null,2)};
g.h.getFeedbackProductData=function(){var a={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.T().experiments.experimentIds.join(", ")},b=this.zb().getData();b&&(a.player_error_code=b.errorCode,a.player_error_details=JSON.stringify(b.errorDetail));return a};
g.h.getPresentingPlayerType=function(a){if(1===this.appState)return 1;if(WX(this))return 3;var b;return a&&(null==(b=this.Uc)?0:b.isAdPlaying(this.getCurrentTime()))?2:g.hM(this).getPlayerType()};
g.h.zb=function(a){return 3===this.getPresentingPlayerType()?bM(this.od).Hd:g.hM(this,a).getPlayerState()};
g.h.getAppState=function(){return this.appState};
g.h.zG=function(a){var b=this;switch(a.type){case "loadedmetadata":kM(this.Mb,"fvb");this.xB.start();g.uc(this.Rt,function(c){nNa(b,c.id,c.tZ,c.sZ,!1)});
this.Rt=[];break;case "loadstart":kM(this.Mb,"gv");break;case "progress":case "timeupdate":2<=EC(a.target.Yf())&&kM(this.Mb,"l2s");break;case "playing":g.zE&&this.xB.start(),jNa(this)&&(this.vb.Ba("hidden",{},!0),this.getVideoData().Ab||(this.L("html5_new_elem_on_hidden")?(this.getVideoData().Ab=1,this.AN(null),this.vb.playVideo()):ZX(this,"hidden",!0)))}};
g.h.onLoadProgress=function(a,b){this.Sa.Oa("onLoadProgress",b)};
g.h.pX=function(){this.Sa.Z("playbackstalledatstart")};
g.h.onVideoProgress=function(a,b){a=dY(this,a);b=mY(this,a.getCurrentTime(),a);this.Sa.Oa("onVideoProgress",b)};
g.h.onDompaused=function(){this.Sa.Oa("onDompaused")};
g.h.onAutoplayBlocked=function(){this.Sa.Oa("onAutoplayBlocked")};
g.h.HW=function(){this.Sa.Z("progresssync")};
g.h.iV=function(a){if(1===this.getPresentingPlayerType()){g.VG(a,1)&&!g.V(a.state,64)&&SX(this).isLivePlayback&&this.rb.isAtLiveHead()&&1<this.Sa.getPlaybackRate()&&this.setPlaybackRate(1,!0);if(g.VG(a,2)){if(this.Nb&&this.Nb.endTimeMs>=1E3*(this.getDuration()-1)){hNa(this);return}aNa(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.Sa.Oa("onError",KTa[b.errorCode]||5);this.Sa.Oa("onDetailedError",{errorCode:b.errorCode,
errorDetail:b.errorDetail,message:b.errorMessage,messageKey:b.qE});6048E5<(0,g.R)()-this.X.Qa&&this.Sa.Oa("onReloadRequired")}b={};if(a.state.Ic()&&!g.YI(a.state)&&!Dz("pbresume","ad_to_video")&&Dz("_start","ad_to_video")){var c=this.getVideoData();b.clientPlaybackNonce=c.clientPlaybackNonce;c.videoId&&(b.videoId=c.videoId);pz(b,"ad_to_video");oz("pbresume",void 0,"ad_to_video")}this.Sa.Z("applicationplayerstatechange",a)}};
g.h.XN=function(a){3!==this.getPresentingPlayerType()&&this.Sa.Z("presentingplayerstatechange",a)};
g.h.eg=function(a){aY(this,ZI(a.state));g.V(a.state,1024)&&this.Sa.isMutedByMutedAutoplay()&&(UL(this,{muted:!1,volume:this.og.volume},!1),kY(this,!1))};
g.h.eV=function(a,b,c){"newdata"===a&&TX(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})};
g.h.ax=function(){this.Sa.Oa("onPlaybackAudioChange",this.Sa.getAudioTrack().Fc.name)};
g.h.kx=function(a){var b=this.vb.getVideoData();a===b&&this.Sa.Oa("onPlaybackQualityChange",a.j.video.quality)};
g.h.onVideoDataChange=function(a,b,c){this.ma("on video data change "+a+", player type "+b.getPlayerType()+", vid "+c.videoId);b===this.rb&&(this.X.Sf=c.oauthToken);this.getVideoData().enableServerStitchedDai&&!this.Uc?this.Uc=new g.zS(this.Sa,this.X,this.rb):!this.getVideoData().enableServerStitchedDai&&this.Uc&&(this.Uc.dispose(),this.Uc=null);if("newdata"===a)this.ma(),EM(this.od,2),this.Sa.Z("videoplayerreset",b);else{if(!this.oa)return;if("dataloaded"===a)if(this.vb===this.rb)if(iE(c.u,c.DJ),
this.ma(),this.rb.getPlayerState().isError())this.ma();else{var d=WX(this);SX(this).isLoaded();d&&this.wl(6);dNa(this);cNa(this)}else dNa(this);if(1===b.getPlayerType()&&(this.X.Y&&uNa(this),this.getVideoData().isLivePlayback&&!this.X.Nl&&this.Ve("html5.unsupportedlive",2,"DEVICE_FALLBACK"),c.isLoaded())){if(c.Jb||c.XC||c.hh||c.mI||c.J.focEnabled||c.J.rmktEnabled||this.getVideoData().rp)d=this.getVideoData(),pY(this,"part2viewed",1,0x8000000000000),pY(this,"engagedview",Math.max(1,1E3*d.Qb),0x8000000000000),
d.isLivePlayback||(d=1E3*d.lengthSeconds,pY(this,"videoplaytime25",.25*d,d),pY(this,"videoplaytime50",.5*d,d),pY(this,"videoplaytime75",.75*d,d),pY(this,"videoplaytime100",d,0x8000000000000),pY(this,"conversionview",d,0x8000000000000));if(c.hasProgressBarBoundaries()){var e;d=Number(null==(e=this.getVideoData().progressBarEndPosition)?void 0:e.utcTimeMillis)/1E3;!isNaN(d)&&(e=this.getIngestionTime())&&(e-=this.getCurrentTime(),e=1E3*(d-e),d=this.jB.progressEndBoundary,(null==d?void 0:d.start)!==e&&
(d&&this.qB([d]),e=new g.Ly(e,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),this.rb.addCueRange(e),this.jB.progressEndBoundary=e))}}this.Sa.Z("videodatachange",a,c,b.getPlayerType())}this.Sa.Oa("onVideoDataChange",{type:a,playertype:b.getPlayerType()});this.yB();if(b=c.Gx){if(a=this.qo,c=c.clientPlaybackNonce,a.clientPlaybackNonce!==c){a.clientPlaybackNonce=c;c=b;b=qJ();var f=void 0===f?{}:f;Object.values(bTa).includes(c)||(g.Rx(new g.Kv("createClientScreen() called with a non-page VE",
c)),c=83769);f.isHistoryNavigation||b.i.push({rootVe:c,key:f.key||""});b.C=[];b.J=[];f.TK?nwa(b,c,f):mwa(b,c,f);qGa(a)}}else qGa(this.qo)};
g.h.ws=function(){eY(this,null);this.Sa.Oa("onPlaylistUpdate")};
g.h.fN=function(a){var b=a.getId(),c=SX(this);if("part2viewed"===b){if(c.MJ&&g.Ow(c.MJ),c.XC&&wY(this,c.XC),c.hh)if(this.T().L("html5_enable_cpn_macro_substitution_for_trv_discovery_ads"))for(var d={CPN:this.getVideoData().clientPlaybackNonce},e=g.q(c.hh),f=e.next();!f.done;f=e.next())wY(this,g.Sq(f.value,d));else xY(this,c.hh)}else"conversionview"===b?this.rb.uu():"engagedview"===b&&c.Jb&&(this.T().L("html5_enable_cpn_macro_substitution_for_trv_discovery_ads")?(d={CPN:this.getVideoData().clientPlaybackNonce},
g.Ow(g.Sq(c.Jb,d))):g.Ow(c.Jb));c.OJ&&(d=a.getId(),d=xt(c.OJ,{label:d}),g.Ow(d));switch(b){case "videoplaytime25":c.GJ&&wY(this,c.GJ);c.Br&&xY(this,c.Br);c.SJ&&g.Ow(c.SJ);break;case "videoplaytime50":c.HJ&&wY(this,c.HJ);c.Cr&&xY(this,c.Cr);c.UJ&&g.Ow(c.UJ);break;case "videoplaytime75":c.LJ&&wY(this,c.LJ);c.Dr&&xY(this,c.Dr);c.WJ&&g.Ow(c.WJ);break;case "videoplaytime100":c.FJ&&wY(this,c.FJ),c.Ar&&xY(this,c.Ar),c.QJ&&g.Ow(c.QJ)}(b=this.getVideoData().rp)&&lNa(this,b,a.getId())&&lNa(this,b,a.getId()+
"gaia");this.rb.removeCueRange(a)};
g.h.GW=function(a){delete this.jB[a.getId()];this.rb.removeCueRange(a);a:{a=this.getVideoData();var b,c,d,e,f,k,l,m,n,p,r=(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==(k=a.watchNextResponse)?void 0:null==(l=k.contents)?void 0:null==(m=l.twoColumnWatchNextResults)?void 0:null==(n=m.autoplay)?void 0:null==(p=n.autoplay)?void 0:p.sets);if(r)for(b=g.q(r),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),k=f=e=d=void 0,(null==(d=c)?void 0:null==(e=d.watchEndpoint)?void 0:e.videoId)===a.videoId&&(null==(f=c)?0:null==(k=f.watchEndpoint)?0:k.continuePlayback)){a=c;break a}a=null}b=null==a?void 0:a.watchEndpoint;this.L("enable_linear_player_handling")&&b&&this.Sa.Oa("onPlayVideo",{sessionData:{autonav:"1",itct:null==a?void 0:a.clickTrackingParams},videoId:b.videoId,
watchEndpoint:b})};
g.h.wl=function(a){a!==this.appState&&(this.ma(),2===a&&1===this.getPresentingPlayerType()&&(aY(this,-1),aY(this,5)),this.appState=a,this.Sa.Z("appstatechange",a))};
g.h.Ve=function(a,b,c,d,e){this.rb.Nf(a,b,c,d,e)};
g.h.yl=ba(8);g.h.isAtLiveHead=function(a,b){b=void 0===b?!1:b;var c=g.hM(this,a);if(!c)return!1;a=cY(this,c);c=dY(this,c);return a!==c?a.isAtLiveHead(mY(this,c.getCurrentTime(),c),!0):a.isAtLiveHead(void 0,b)};
g.h.Sn=function(){var a=g.hM(this,void 0);return a?cY(this,a).Sn():0};
g.h.seekTo=function(a,b,c,d){b=!1!==b;if(d=g.hM(this,d))2===this.appState&&iY(this),this.Yd(d)?this.Uc?this.Uc.seekTo(a,b,c):this.pd.seekTo(a,b,c):d.seekTo(a,{sP:!b,tP:c,ge:"application"})};
g.h.seekBy=function(a,b,c,d){this.seekTo(this.getCurrentTime()+a,b,c,d)};
g.h.PA=function(){this.Sa.Oa("SEEK_COMPLETE")};
g.h.eX=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)||iY(this):this.Sa.Oa("SEEK_TO",b)};
g.h.onAirPlayActiveChange=function(){this.Sa.Z("airplayactivechange");this.X.L("html5_external_airplay_events")&&this.Sa.Oa("onAirPlayActiveChange",this.Sa.yf())};
g.h.onAirPlayAvailabilityChange=function(){this.Sa.Z("airplayavailabilitychange");this.X.L("html5_external_airplay_events")&&this.Sa.Oa("onAirPlayAvailabilityChange",this.Sa.Cw())};
g.h.showAirplayPicker=function(){var a;null==(a=this.vb)||a.Xo()};
g.h.eG=function(){this.Sa.Z("beginseeking")};
g.h.jG=function(){this.Sa.Z("endseeking")};
g.h.getStoryboardFormat=function(a){return(a=g.hM(this,a))?cY(this,a).getVideoData().getStoryboardFormat():null};
g.h.fh=function(a){return(a=g.hM(this,a))?cY(this,a).getVideoData().fh():null};
g.h.Yd=function(a){if(a=a||this.vb){a=a.getVideoData();if(this.Uc)a=a===this.Uc.Aa.getVideoData();else a:{var b=this.pd;if(a===b.i.getVideoData()&&b.j.length)a=!0;else{b=g.q(b.j);for(var c=b.next();!c.done;c=b.next())if(a.Dc===c.value.Dc){a=!0;break a}a=!1}}if(a)return!0}return!1};
g.h.hs=function(a,b,c,d,e,f){this.ma();a=this.Uc?HFa(this.Uc,a,b,c,d,e,f):XFa(this.pd,a,b,c,d,e);this.ma();return a};
g.h.zw=function(a,b,c,d,e,f){this.Uc&&(HFa(this.Uc,a,b,c,d,e,f),this.ma());return""};
g.h.No=function(a){var b;null==(b=this.Uc)||b.No(a)};
g.h.Lp=function(a,b){a=void 0===a?-1:a;b=void 0===b?Infinity:b;this.Uc?this.X.L("web_player_ssdai_prevent_clearing_timeline_killswitch")&&KS(this.Uc,a,b):XS(this.pd,a,b)};
g.h.pu=function(a,b,c){if(this.Uc){var d=this.Uc,e=c;(c=d.Ab.get(a))?(d.ma(),void 0===e&&(e=c.Zc),a=e,d.ma(),c.durationMs=b,c.Zc=a,d.X.L("web_player_ssdai_prevent_updating_ad_cuerange_killswitch")&&KFa(d,c)):d.Kj("Invalid_timelinePlaybackId_"+a+"_specified")}else{d=this.pd;e=null;for(var f=g.q(d.j),k=f.next();!k.done;k=f.next())if(k=k.value,k.Dc===a){e=k;break}e?(d.ma(),void 0===c&&(c=e.Zc),cGa(d,e,b,c)):QS(d,"InvalidTimelinePlaybackId timelinePlaybackId="+a)}};
g.h.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;d=void 0===d?"":d;this.Yd();a=new qF(this.X,a);d&&(a.Dc=d);c=void 0===c?Infinity:c;this.ma();b=b||this.vb.getPlayerType();var e;this.X.L("html5_gapless_preloading")&&(e=lY(this,b,a,!0));e||(e=this.Wl(b,a));2===b&&this.rb&&(a=e.getVideoData(),this.rb.Lt(a.clientPlaybackNonce,a.qc||"",a.breakType||0,a.me));this.pz(e,c)};
g.h.pz=function(a,b,c){var d=this;c=void 0===c?0:c;var e=g.hM(this);e&&(cY(this,e).zP=!0);xFa(this.Au,a,b,c).then(function(){d.Sa.Oa("onQueuedVideoLoaded")},function(){})};
g.h.nt=function(){return this.Au.nt()};
g.h.clearQueue=function(){this.ma();this.Au.clearQueue()};
g.h.loadVideoByPlayerVars=function(a,b,c,d,e){b=void 0===b?1:b;var f=!1,k=new qF(this.X,a),l,m=null!=(l=k.xa)?l:"";this.Mb.timerName=m;this.L("web_player_early_cpn")&&k.clientPlaybackNonce&&this.Mb.info("cpn",k.clientPlaybackNonce);if(!this.L("web_player_load_video_context_killswitch")&&e){for(;k.Hi.length&&k.Hi[0].isExpired();)k.Hi.shift();f=k.Hi.length-1;f=0<f&&e.j(k.Hi[f])&&e.j(k.Hi[f-1]);k.Hi.push(e)}c||(a&&mM(a)?(rE(this.X)&&!this.rg&&(a.fetch=0),eY(this,a)):this.playlist&&eY(this,null),a&&this.setIsExternalPlaylist(a.external_list),
rE(this.X)&&!this.rg&&fY(this));a=this.Bo(k,b,d);f&&this.Ve("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+k.Hi.join()).replace(/[;:,]/g,"_"));return a};
g.h.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=QD(a);if(this.qx.get(b+"_"+d+"_"+e))this.ma();else{a=new qF(this.X,a);e&&(a.Dc=e);e=b+"_"+a.videoId+"_"+a.Dc;this.ma();if(d=this.vb){d=this.vb.getPlayerType();var f=this.vb.getVideoData().videoId,k=this.vb.getVideoData().Dc;d=e===d+"_"+f+"_"+k}d?(aS(this.vb,!0),a.dispose()):(a.Ed=!0,a=this.Wl(b,a),1===b&&uE(this.X)||aS(a,!0),this.qx.set(e,a,c||3600))}};
g.h.Av=function(a){if(this.L("html5_skip_setPresenting"))$X(this,a);else{var b=a.getPlayerType();a!==g.hM(this,b)&&(1===a.getPlayerType()?(a.getVideoData().autonavState=this.rb.getVideoData().autonavState,VMa(this,a)):(b=g.hM(this,b))&&b.dispose(),this.vb.getPlayerType()===a.getPlayerType()?$X(this,a):$Ma(this,a))}};
g.h.setMinimized=function(a){this.visibility.setMinimized(a);a=this.od;a=a.G.T().showMiniplayerUiWhenMinimized?a.Ld.get("miniplayer"):void 0;a&&(this.Se()?a.load():a.unload());this.Sa.Z("minimized")};
g.h.setInline=function(a){this.visibility.setInline(a)};
g.h.setInlinePreview=function(a){this.visibility.setInline(a);a=this.od;a=a.G.T().showInlinePreviewUi?a.Ld.get("inline_preview"):void 0;a&&(this.isInline()?a.load():a.unload(),this.Sa.Oa("onInlinePreviewModeChange"))};
g.h.Ut=function(a){var b=this.X.L("html5_block_pip_non_mse")&&"undefined"===typeof MediaSource,c=this.X.Gi&&this.X.L("html5_block_pip_with_events")||b;a&&c&&this.getVideoData()&&!this.getVideoData().backgroundable?this.BE&&b?this.BE.start():this.sK():this.visibility.Ut(a)};
g.h.sK=function(){var a,b=null==(a=this.oa)?void 0:a.He();b&&ox(b).catch(function(c){return g.Rx(c)})};
g.h.setImmersivePreview=function(a){this.visibility.setImmersivePreview(a)};
g.h.bX=function(){"picture-in-picture"===this.oa.He().webkitPresentationMode?this.Ut(!0):this.Ut(!1)};
g.h.togglePictureInPicture=function(){var a=g.hM(this);a&&a.togglePictureInPicture()};
g.h.Bo=function(a,b,c){b=void 0===b?1:b;this.ma();Dz("_start",this.Mb.timerName)||(oz("_start",void 0,this.Mb.timerName),this.Mb.info("srt",0));var d=lY(this,b,a,!1);d?a.dispose():(d=this.Wl(b,a,c),this.L("html5_onesie")&&xX(d)&&aS(d),this.xB.stop(),1===b&&b!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,b),$X(this,d),this.Av(d));d===this.rb&&(this.X.Sf=a.oauthToken);if(!xX(d))return!1;if(d===this.rb)return this.wl(1),iY(this);FX(d);return!0};
g.h.cueVideoByPlayerVars=function(a,b){var c=this;b=void 0===b?1:b;if(a&&mM(a))if(this.lq=!0,eY(this,a),(a=g.nM(this.playlist))&&a.isValid())rY(this,a,b);else this.playlist.onReady(function(){hY(c)});
else{b||(b=this.getPresentingPlayerType());1===b&&this.ws();var d=new qF(this.X,a);!g.WD(this.X)||this.X.J||d.isAd()||d.qc||!this.X.L("embeds_enable_iframe_apis_through_oneplatform")?rY(this,d,b):Nza(d,a?a:{}).then(function(e){rY(c,e,b)})}};
g.h.fk=function(a,b,c,d,e,f){if(!a&&!c)throw Error("Playback source is invalid");if(YD(this.X)||g.vE(this.X))return b=b||{},b.lact=Ou(),b.vis=this.Sa.getVisibilityState(),this.Sa.Oa("onPlayVideo",{videoId:a,watchEndpoint:f,sessionData:b,listId:c}),!1;zza(this.Mb);this.Mb.reset();a={video_id:a};d&&(a.autoplay="1");d&&(a.autonav="1");c?(a.list=c,this.loadPlaylist(a)):this.loadVideoByPlayerVars(a,1);return!0};
g.h.cuePlaylist=function(a,b,c,d){this.lq=!0;mNa(this,a,b,c,d)};
g.h.loadPlaylist=function(a,b,c,d){this.lq=!1;mNa(this,a,b,c,d)};
g.h.Uv=function(){if(this.Sa.isMutedByMutedAutoplay())return!1;if(3===this.getPresentingPlayerType())return!0;rE(this.X)&&!this.rg&&fY(this);return!(!this.playlist||!this.playlist.hasNext())};
g.h.Vp=ba(2);
g.h.nextVideo=function(a,b){var c=this.rb.getVideoData().suggestions;g.gM(this.Sa)&&c&&0<c.length?(a=c[0],this.fk(a.videoId,b?a.Nv:a.sessionData,a.playlistId,b,void 0,a.jK||void 0)):this.rg?this.Sa.Oa("onPlaylistNext"):3===this.getPresentingPlayerType()?bM(this.od).nextVideo():this.playlist&&(rE(this.X)&&!this.Sa.isFullscreen()?oY(this,"yt.www.watch.lists.next"):(this.playlist.hasNext(a)&&oM(this.playlist,Aza(this.playlist)),this.playlist.loaded?(a=b&&this.X.L("html5_player_autonav_logging"),this.Bo(g.nM(this.playlist,
void 0,b,a),1)):this.lq=!1))};
g.h.previousVideo=function(a){this.rg?this.Sa.Oa("onPlaylistPrevious"):3===this.getPresentingPlayerType()?bM(this.od).gB():this.playlist&&(rE(this.X)&&!this.Sa.isFullscreen()?oY(this,"yt.www.watch.lists.prev"):(this.playlist.Xk(a)&&oM(this.playlist,Bza(this.playlist)),this.playlist.loaded?this.Bo(g.nM(this.playlist),1):this.lq=!1))};
g.h.playVideoAt=function(a){this.rg?this.Sa.Oa("onPlaylistIndex",a):this.playlist&&(this.playlist.loaded?this.Bo(g.nM(this.playlist,a),1):this.lq=!1,oM(this.playlist,a))};
g.h.getPlaylist=function(){return this.playlist};
g.h.jw=ba(12);g.h.cV=function(a){this.Sa.Oa("onCueRangeEnter",a.getId())};
g.h.dV=function(a){this.Sa.Oa("onCueRangeExit",a.getId())};
g.h.ov=function(a,b,c){var d=g.hM(this,b);d&&(d.ov(a,c),b&&this.getPresentingPlayerType()!==b||YX(this,"cuerangesadded",a))};
g.h.qB=function(a,b){var c=g.hM(this,b);c&&(c.qB(a),b&&this.getPresentingPlayerType()!==b||YX(this,"cuerangesremoved",a))};
g.h.hV=function(){var a=this;this.getPresentingPlayerType();this.ep||(this.ep=Gw(fTa,this.nN,this));yza(this.Mb,this.vb.getVideoData(),pNa(this));UX(this)&&this.X.i&&"embedded"===UF(SX(this))&&this.DM&&.01>Math.random()&&g.Fv("autoplayTriggered",{intentional:this.cM});this.DM=!1;this.Sa.Oa("onPlaybackStartExternal");Zza(this.od);this.X.L("mweb_client_log_screen_associated");(function(){var c=g.Kx(a.JO||(a.Se()?3:0));if(c&&"UNDEFINED_CSN"!==c){var d={cpn:a.getVideoData().clientPlaybackNonce,csn:c};
if(a.X.L("web_playback_associated_ve")&&a.getVideoData().Ya){var e=g.Gx(a.getVideoData().Ya);g.$x(c,e,void 0);d.playbackVe=e.getAsJson()}a.X.L("kevlar_playback_associated_queue")&&a.getVideoData().queueInfo&&(d.queueInfo=a.getVideoData().queueInfo);c={};a.L("web_playback_associated_log_ctt")&&a.getVideoData().W&&(c.cttAuthInfo={token:a.getVideoData().W,videoId:a.getVideoData().videoId});g.Fv("playbackAssociated",d,c)}else g.Rx(new g.Kv("CSN Missing or undefined during playback association"))})();
var b={};!this.L("web_player_csi_ctt_killswitch")&&this.getVideoData().W&&(b.cttAuthInfo={token:this.getVideoData().W,videoId:this.getVideoData().videoId});qz("player_att",b);this.getVideoData().botguardData&&(g.tE(this.X)||"MWEB"===this.X.deviceParams.c?Zt(au(),function(){jY(a)}):jY(this));
this.yB()};
g.h.nG=function(){this.Sa.Z("internalAbandon");this.L("html5_ad_module_cleanup_killswitch")||nY(this)};
g.h.nN=function(a){a=a.i;!isNaN(a)&&0<a&&this.rb&&this.rb.zx(a)};
g.h.onApiChange=function(){this.X.u&&this.vb?this.Sa.Oa("onApiChange",this.vb.getPlayerType()):this.Sa.Oa("onApiChange")};
g.h.gW=function(){var a=this.oa;a={volume:g.Yg(Math.floor(100*a.getVolume()),0,100),muted:a.Nz()};a.muted||kY(this,!1);this.og=g.yf(a);this.Sa.Oa("onVolumeChange",a)};
g.h.mutedAutoplay=function(){var a=this.getVideoData().videoId;a&&(this.loadVideoByPlayerVars({video_id:a,playmuted:!0}),this.Sa.Oa("onMutedAutoplayStarts"))};
g.h.onFullscreenChange=function(){var a=tY(this);this.aj(a?1:0);sNa(this,!!a)};
g.h.aj=function(a){var b=!!a,c=!!this.Ns()!==b;this.visibility.aj(a);this.template.aj(b);this.L("html5_media_fullscreen")&&!b&&this.oa&&tY(this)===this.oa.He()&&this.oa.Pv();this.template.resize();c&&this.Mb.tick("fsc");c&&(this.Sa.Z("fullscreentoggled",b),a=SX(this),b={fullscreen:b,videoId:a.oD||a.videoId,time:this.getCurrentTime()},this.Sa.getPlaylistId()&&(b.listId=this.Sa.getPlaylistId()),this.Sa.Oa("onFullscreenChange",b))};
g.h.isFullscreen=function(){return this.visibility.isFullscreen()};
g.h.Ns=function(){return this.visibility.Ns()};
g.h.TW=function(){this.vb&&(0!==this.Ns()&&1!==this.Ns()||this.aj(tY(this)?1:0),this.X.Gi&&this.getVideoData()&&!this.getVideoData().backgroundable&&this.oa&&.33>window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)&&this.oa.Pv())};
g.h.YV=function(a){3!==this.getPresentingPlayerType()&&this.Sa.Z("liveviewshift",a)};
g.h.playVideo=function(a){this.ma();if(a=g.hM(this,a))2===this.appState?iY(this):(null!=this.qj&&this.qj.sb&&this.qj.start(),g.V(a.getPlayerState(),2)?this.seekTo(0):a.playVideo())};
g.h.pauseVideo=function(a){(a=g.hM(this,a))&&a.pauseVideo()};
g.h.stopVideo=function(){this.ma();var a=this.rb.getVideoData(),b=new qF(this.X,{video_id:a.oD||a.videoId,oauth_token:a.oauthToken});b.Y=g.yf(a.Y);this.cancelPlayback(6);rY(this,b,1);null!=this.qj&&this.qj.stop()};
g.h.cancelPlayback=function(a,b){this.ma();Fw(this.ep);this.ep=0;var c=g.hM(this,b);c?(this.X.L("html5_high_res_logging")&&c.Ba("canclpb",{r:a}),1===this.appState||2===this.appState?this.ma():(c===this.vb&&(this.ma(),EM(this.od,a)),1===b&&(c.stopVideo(),nY(this)),c.Nm(),YX(this,"cuerangesremoved",c.hm()),c.Xg.reset(),this.Au&&c.isGapless()&&(c.Fg(!0),c.setMediaElement(this.oa)))):this.ma()};
g.h.sendVideoStatsEngageEvent=function(a,b,c){(b=g.hM(this,b))&&this.X.enabledEngageTypes.has(a.toString())?b.sendVideoStatsEngageEvent(a,c):c&&c()};
g.h.eh=function(a){var b=g.hM(this,void 0);return b&&this.X.enabledEngageTypes.has(a.toString())?b.eh(a):null};
g.h.updatePlaylist=function(){rE(this.X)?fY(this):g.WD(this.X)&&gY(this);this.Sa.Oa("onPlaylistUpdate")};
g.h.setSizeStyle=function(a,b){this.TO=a;this.wF=b;this.Sa.Z("sizestylechange",a,b);this.template.resize()};
g.h.isWidescreen=function(){return this.wF};
g.h.Se=function(){return this.visibility.Se()};
g.h.isInline=function(){return this.visibility.isInline()};
g.h.jt=function(){return this.visibility.jt()};
g.h.Zs=function(){return this.visibility.Zs()};
g.h.Hw=function(){return this.TO};
g.h.getAdState=function(){if(3===this.getPresentingPlayerType())return bM(this.od).getAdState();if(!this.Yd()){var a=FM(this.tb());if(a)return a.getAdState()}return-1};
g.h.SW=function(a){var b=this.template.getVideoContentRect();rn(this.wM,b)||(this.wM=b,this.vb&&DX(this.vb),this.rb&&this.rb!==this.vb&&DX(this.rb),1===this.Ns()&&this.lx&&sNa(this,!0));this.CF&&g.eh(this.CF,a)||(this.Sa.Z("appresize",a),this.CF=a)};
g.h.lf=function(){return this.Sa.lf()};
g.h.kX=function(){2===this.getPresentingPlayerType()&&this.pd.isManifestless()&&!this.L("web_player_manifestless_ad_signature_expiration_killswitch")?bGa(this.pd):(this.Uc&&(KS(this.Uc),nY(this)),ZX(this,"signature",void 0,!0))};
g.h.AN=function(){this.Fg();XX(this)};
g.h.mW=function(a){"manifest.net.badstatus"===a.errorCode&&"401"===a.details.rc&&this.Sa.Oa("onPlayerRequestAuthFailed")};
g.h.ex=function(){this.Sa.Oa("CONNECTION_ISSUE")};
g.h.hx=function(a){this.Sa.Z("heartbeatparams",a)};
g.h.vB=function(a){this.Sa.Oa("onAutonavChangeRequest",1!==a)};
g.h.ud=function(){return this.oa};
g.h.setBlackout=function(a){this.X.Sb=a;this.vb&&(this.vb.er(),this.X.Y&&uNa(this))};
g.h.setAccountLinkState=function(a){var b=g.hM(this);b&&(b.getVideoData().NJ=a,b.er())};
g.h.updateAccountLinkingConfig=function(a){var b=g.hM(this);if(b){var c=b.getVideoData();c.accountLinkingConfig&&(c.accountLinkingConfig.linked=a);this.Sa.Z("videodatachange","dataupdated",c,b.getPlayerType())}};
g.h.oW=function(){var a=g.hM(this);if(a){var b=!this.Sa.Gw();(a.OL=b)||a.uq.stop();if(a.videoData.i)if(b)a.videoData.i.resume();else{var c=a.videoData.i;c.B&&c.B.stop()}a.X.L("html5_suspend_loader")&&a.Va&&(b?a.Va.resume():LX(a,!0));a.X.L("html5_fludd_suspend")&&(g.V(a.playerState,2)||b?g.V(a.playerState,512)&&b&&a.Yb(TI(a.playerState,512)):a.Yb(SI(a.playerState,512)));a=a.Wb;a.qoe&&(a=a.qoe,g.GV(a,g.tS(a.i),"stream",[b?"A":"I"]))}};
g.h.onLoadedMetadata=function(){this.Sa.Oa("onLoadedMetadata")};
g.h.onDrmOutputRestricted=function(){this.Sa.Oa("onDrmOutputRestricted")};
g.h.ED=function(){this.L("html5_skip_empty_load")&&(DTa=!0);GTa=this.L("html5_ios_force_seek_to_zero_on_stop");ETa=this.L("html5_ios7_force_play_on_stall");FTa=this.L("html5_ios4_seek_above_zero");this.L("html5_mediastream_applies_timestamp_offset")&&(eU=!0);this.L("html5_dont_override_default_sample_desc_index")&&(Npa=!0);if(this.L("html5_androidtv_quic")){var a=window;"h5vcc"in a&&"settings"in a.h5vcc&&a.h5vcc.settings.set("QUIC",1)}Error.stackTraceLimit=25;var b=g.lD(this.X.experiments,"html5_idle_rate_limit_ms");
b&&Object.defineProperty(window,"requestIdleCallback",{value:function(c){return window.setTimeout(c,b)}})};
g.h.JF=function(){this.cM=!0};
g.h.ra=function(){this.od.dispose();this.pd.dispose();this.Uc&&this.Uc.dispose();this.rb.dispose();this.Fg();g.Te(of(this.yu),this.playlist);Fw(this.ep);this.ep=0;this.jH&&(Jt(this.jH),this.jH=void 0);g.G.prototype.ra.call(this)};
g.h.ma=function(){};
g.h.L=function(a){return this.X.L(a)};
g.h.DB=function(){return this.Nx};
g.h.requestStorageAccess=function(a,b){document.requestStorageAccess().then(a,b)};
g.h.setScreenLayer=function(a){this.JO=a};
g.h.seekToChapterWithAnimation=function(a){var b,c=null==(b=VL(this.tb()))?void 0:b.Vv(),d;if((b=null==(d=this.getVideoData())?void 0:d.Nl)&&c instanceof g.gN&&a<b.length&&0<=a)for(d=g.q(b),b=d.next();!b.done;b=d.next())if(b=b.value,b.index===a){a=1E3*this.getCurrentTime()<b.startTime?1:-1;c.yO(a,b.title);uY(this,b.startTime/1E3);break}};
g.h.downloadVideo=function(a,b){var c=this,d;return g.B(function(e){if(1==e.i)return c.Mh?g.A(e,bFa(c.Mh,[a],b),2):e.return(Promise.reject());d=e.j;return e.return(d[0])})};
g.h.pauseVideoDownload=function(a){if(this.Mh&&this.L("woffle_pause_video_download")){var b=this.Mh.u;b.api.Z("offlinetransferpause",a);var c;null==(c=b.j)||c.postMessage(a)}};
g.h.resumeVideoDownload=function(a){var b=this;return g.B(function(c){return b.Mh&&b.L("woffle_pause_video_download")?c.return(dFa(a)):c.return(Promise.reject())})};
g.h.refreshAllVideos=function(a){if(!this.Mh)return Promise.reject();void 0===a&&(a=14400);return eS(this.Mh,a)};
g.h.deleteVideos=function(a){return this.Mh?this.Mh.deleteVideos(a):Promise.reject()};
g.h.deleteAllVideos=function(){return this.Mh?this.Mh.deleteAllVideos():Promise.reject()};
g.h.isOrchestrationLeader=function(){return this.Mh?this.Mh.isOrchestrationLeader():!1};
g.h.getStatsForNerds=function(){var a=this.Sa,b=g.hM(this),c=a.getVideoData(),d=a.ud(),e=d.He(),f=b.pw(),k=b.wH,l=8*fT(k,"bandwidth")/1024,m=fT(k,"networkactivity")/1024,n=fT(k,"bufferhealth");if(b.Rd){var p=b.videoData.useInnertubeDrmService()?"IT/":"";p+=b.Rd.i.vf()+"/"+Oz(b.Ps());p+="/"+b.Rd.vf()}else p="";var r=b.getPlayerState().state.toString(16),t=d.getCurrentTime().toFixed(2),w=AC(d.Yf(),",",3),x="";if(c.isDaiEnabled()){c.enableServerStitchedDai&&(x+="SS");x+="DAI, ";a:{if(b.pd){if(b.pd.Iv){var y=
"D,";break a}y=b.pd.Ok;if(0<y){y="AD"+y+", ";break a}}y=""}y&&(x+=y)}if(c.fetchType){switch(c.fetchType){case "onesie":y="o";break;case "gp":y="gp";break;default:y="gvi"}x+="vd:"+y+", "}x+="s:"+r+" t:"+t+" b:"+w+" ";d.Ru()&&(x+="S");d.Fl()&&(x+="P");d.fl()&&(x+="E");a.isOrchestrationLeader()&&(x+=" L");(d=b.dw())&&(x+=" l:"+d.toFixed());d=b.getCurrentTime();r=c.rD;d&&d>r.start&&d<r.end&&(x+=" as");d=x;x=g.sE();r=g.eM(a).XT;t=c.B&&!c.B.i?"display:none":"";if((w=c.clientPlaybackNonce)&&16==w.length){y=
0;for(var z="",F=0;10>F;F++)if(y=(y<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(w.charAt(F)),4==F%5){for(var I="",H=0;6>H;H++)I="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(y&31)+I,y>>=5;z+=I}w=z.substr(0,4)+" "+z.substr(4,4)+" "+z.substr(8,4)}else w="";l={video_id_and_cpn:c.videoId+" / "+w,codecs:"",dims_and_frames:"",bandwidth_kbps:l.toFixed(0)+" Kbps",buffer_health_seconds:n.toFixed(2)+" s",drm_style:p?"":"display:none",drm:p,debug_info:d,bandwidth_style:t,network_activity_style:t,
network_activity_bytes:m.toFixed(0)+" KB",shader_info:r,shader_info_style:r?"":"display:none",playback_categories:""};m=e.clientWidth+"x"+e.clientHeight+(1<x?"*"+x.toFixed(2):"");n="-";f.totalVideoFrames&&(n=(f.droppedVideoFrames||0)+" dropped of "+f.totalVideoFrames);l.dims_and_frames=m+" / "+n;a=a.getVolume();f=Dua(c);a=Math.round(a)+"% / "+Math.round(a*f)+"%";f=c.me.toFixed(1);isFinite(Number(f))&&(a+=" (content loudness "+f+"dB)");l.volume=a;l.resolution=e.videoWidth+"x"+e.videoHeight;if(a=c.j)if(e=
a.video)f=e.fps,1<f&&(l.resolution+="@"+f),(f=g.HX(b))&&f.video&&(l.resolution+=" / "+f.video.width+"x"+f.video.height,1<f.video.fps&&(l.resolution+="@"+f.video.fps)),l.codecs=gGa(a),!c.I||a.audio&&a.video?a.audio&&a.audio.itag&&(l.codecs+=" / "+a.audio.itag+"A"):l.codecs+=" / "+gGa(c.I),e.j||e.primaries?(a=e.j||"unknown","smpte2084"===a?a+=" (PQ)":"arib-std-b67"===a&&(a+=" (HLG)"),l.color=a+" / "+(e.primaries||"unknown"),l.color_style=""):l.color_style="display:none";e=c.isLivePlayback;a=c.bf;l.live_mode_style=
e||a?"":"display:none";l.live_latency_style=e?"":"display:none";if(a)l.live_mode="Post-Live"+(xF(c)?" Manifestless":"");else if(e){a=fT(k,"livelatency");l.live_latency_secs=a.toFixed(2)+"s";e=xF(c)?"Manifestless, ":"";c.Zg&&(e+="Windowed, ");f="Uncertain";if(0<=a&&120>a)if(c.latencyClass&&"UNKNOWN"!==c.latencyClass)switch(c.latencyClass){case "NORMAL":f="Optimized for Normal Latency";break;case "LOW":f="Optimized for Low Latency";break;case "ULTRALOW":f="Optimized for Ultra Low Latency";break;default:f=
"Unknown Latency Setting"}else f=c.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";e+=f;(a=b.getPlaylistSequenceForTime(b.getCurrentTime()))&&(e+=", seq "+a.sequence);l.live_mode=e}b.isGapless()&&(l.playback_categories+="Gapless ");l.playback_categories_style=l.playback_categories?"":"display:none";l.bandwidth_samples=eT(k,"bandwidth");l.network_activity_samples=eT(k,"networkactivity");l.live_latency_samples=eT(k,"livelatency");l.buffer_health_samples=eT(k,"bufferhealth");
b=g.$F(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";CF(c,"web_player_release_debug")?(l.release_name="youtube.player.web_20220126_01_RC00",l.release_style=""):l.release_style="display:none";return l};
g.h.getVideoUrl=function(a,b,c,d,e){return this.Nb&&this.Nb.postId?(a=this.X.getVideoUrl(a),a=Mj(a,"v"),a.replace("/watch","/clip/"+this.Nb.postId)):this.X.getVideoUrl(a,b,c,d,e)};
var z3={};g.Ia("yt.player.Application.create",g.VX.create,void 0);g.Ia("yt.player.Application.createAlternate",g.VX.create,void 0);Ana(Nx(),{Gm:[{Pw:/Unable to load player module/,weight:20},{Pw:/Failed to fetch/,weight:500},{Pw:/XHR API fetch failed/,weight:10},{Pw:/JSON parsing failed after XHR fetch/,weight:10},{Pw:/Retrying OnePlatform request/,weight:10}]});var iUa=g.Ja("ytcsi.tick");iUa&&iUa("pe");var zNa=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"]]),xNa=new Map([["normal",{Ot:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",Zt:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{Ot:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",Zt:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}],
["muted",{Ot:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",Zt:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{Ot:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",Zt:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{Ot:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",Zt:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{Ot:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED",Zt:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}]]);var jUa={Oaa:"replaceUrlMacros",s$:"onAboutThisAdPopupClosed"};GY.prototype.Tk=function(){return"adLifecycleCommand"};
GY.prototype.handle=function(a){var b=this;switch(a.action){case "END_LINEAR_AD":g.gi(function(){b.controller.Gn()});
break;case "END_LINEAR_AD_PLACEMENT":g.gi(function(){b.controller.Qk()});
break;case "FILL_ABOVE_FEED_SLOT":g.gi(function(){a.elementId&&b.controller.wz(a.elementId)});
break;case "CLEAR_ABOVE_FEED_SLOT":g.gi(function(){b.controller.cz()})}};
GY.prototype.qm=function(a){this.handle(a)};HY.prototype.Tk=function(){return"clearCueRangesCommand"};
HY.prototype.handle=function(){var a=this.bE();g.gi(function(){a.Mf(Array.from(a.zp))})};
HY.prototype.qm=function(a){this.handle(a)};IY.prototype.Tk=function(){return"muteAdEndpoint"};
IY.prototype.handle=function(a){ENa(this,a)};
IY.prototype.qm=function(a,b){ENa(this,a,b)};JY.prototype.Tk=function(){return"openPopupAction"};
JY.prototype.handle=function(){};
JY.prototype.qm=function(a){this.handle(a)};KY.prototype.Tk=function(){return"pingingEndpoint"};
KY.prototype.handle=function(){};
KY.prototype.qm=function(a){this.handle(a)};LY.prototype.Tk=function(){return"urlEndpoint"};
LY.prototype.handle=function(a,b){b=g.Sq(a.url,b);var c,d;if((null==(c=a.browserConversionApiData)?0:c.impressiondata)&&(null==(d=a.browserConversionApiData)?0:d.conversiondestination)){var e;if(null==(e=a.browserConversionApiData)?0:e.originTrialToken)c=document.createElement("meta"),c.setAttribute("http-equiv","origin-trial"),c.setAttribute("content",a.browserConversionApiData.originTrialToken),document.head.appendChild(c);a={attributionSourceEventId:a.browserConversionApiData.impressiondata,attributionDestination:a.browserConversionApiData.conversiondestination,
attributionReportTo:a.browserConversionApiData.reportingorigin,attributionExpiry:Number(a.browserConversionApiData.impressionexpiry)||void 0}}else a=void 0;g.lL(b,void 0,void 0,a)};
LY.prototype.qm=function(){T("Trying to handle UrlEndpoint with no macro in controlflow")};MY.prototype.Tk=function(){return"adPingingEndpoint"};
MY.prototype.handle=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.Ap.send(a,b,c)};
MY.prototype.qm=function(a,b){BPa(this.Ra.get(),a,b,void 0)};NY.prototype.Tk=function(){return"changeEngagementPanelVisibilityAction"};
NY.prototype.handle=function(a){this.G.Oa("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:a})};
NY.prototype.qm=function(a){this.handle(a)};OY.prototype.Tk=function(){return"loggingUrls"};
OY.prototype.handle=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;a=g.q(a);for(var d=a.next();!d.done;d=a.next())d=d.value,this.Sh.send(d.baseUrl,b,c,d.headers)};
OY.prototype.qm=function(a,b){a=g.q(a);for(var c=a.next();!c.done;c=a.next())c=c.value,BPa(this.Ra.get(),c.baseUrl,b,c.headers)};g.v(GNa,g.G);var WNa=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(PY,g.G);g.h=PY.prototype;g.h.PE=function(a,b){return this.i.PE(a,b)};
g.h.Ph=function(a,b){RZ(this.Ub,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",a,b,void 0);for(var c=g.q(this.Od),d=c.next();!d.done;d=c.next())d.value.Ph(a,b)};
g.h.nf=function(a){if(TY(this.i,a)){AI(this.Ub,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",a);this.i.nf(a);for(var b=g.q(this.Od),c=b.next();!c.done;c=b.next())c.value.nf(a);JNa(this,a)}};
g.h.qf=function(a){if(TY(this.i,a)){AI(this.Ub,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",a);this.i.qf(a);for(var b=g.q(this.Od),c=b.next();!c.done;c=b.next())c.value.qf(a);TY(this.i,a)&&UY(this.i,a).C&&RY(this,a,!1)}};
g.h.QA=function(a){AI(this.Ub,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",a);TY(this.i,a)&&(this.i.QA(a),RY(this,a,!1))};
g.h.Lc=function(a,b){if(TY(this.i,a)){VY(this.Ub,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",a,b);for(var c=g.q(this.Od),d=c.next();!d.done;d=c.next())d.value.Lc(a,b)}};
g.h.Xc=function(a,b,c){if(TY(this.i,a)){VY(this.Ub,yNa(c),a,b);this.i.Xc(a,b);for(var d=g.q(this.Od),e=d.next();!e.done;e=d.next())e.value.Xc(a,b,c);(c=iZ(this.i,a))&&b.layoutId===c.layoutId&&TNa(this,a,!1)}};
g.h.Df=function(a,b,c){T(c,a,b,void 0,c.Bp);RY(this,a,!0)};
g.h.ra=function(){var a=VNa(this.i);a=g.q(a);for(var b=a.next();!b.done;b=a.next())RY(this,b.value,!1);g.G.prototype.ra.call(this)};UNa.prototype.isActive=function(){switch(this.i){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};g.v(WY,$a);g.v(fZ,$a);g.v(lZ,g.G);g.h=lZ.prototype;g.h.PE=function(a,b){b=hZ(this,a+"_"+b);a=[];b=g.q(b.values());for(var c=b.next();!c.done;c=b.next())a.push(c.value.slot);return a};
g.h.ph=function(a){a=UY(this,a);"not_scheduled"!==a.i&&jZ(a.slot,a.i,"onSlotScheduled");a.i="scheduled"};
g.h.Sv=function(a){a=UY(this,a);a.B="fill_requested";a.J.Sv()};
g.h.nf=function(a){a=UY(this,a);"enter_requested"!==a.i&&jZ(a.slot,a.i,"onSlotEntered");a.i="entered"};
g.h.QA=function(a){UY(this,a).B="fill_canceled"};
g.h.qf=function(a){a=UY(this,a);"exit_requested"!==a.i&&jZ(a.slot,a.i,"onSlotExited");a.i="scheduled"};
g.h.Xc=function(a,b){a=UY(this,a);null!=a.layout&&a.layout.layoutId===b.layoutId&&("rendering_stop_requested"!==a.i&&jZ(a.slot,a.i,"onLayoutExited"),a.i="entered")};g.v(pZ,g.G);pZ.prototype.u=function(){return this.j};g.v(qZ,g.G);qZ.prototype.get=function(){this.isDisposed()&&T("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.i});this.i||(this.i=this.j());return this.i};rZ.prototype.executeCommand=function(a,b){NJ(this.i(),a,b)};
rZ.prototype.Gd=function(a,b){gxa(this.i(),a,b)};g.v(QZ,g.G);g.v(TZ,g.G);TZ.prototype.onCueRangeEnter=function(){};
TZ.prototype.onCueRangeExit=function(a){var b=this,c=this.i.get(a);c&&(this.i.delete(a),this.j.get().removeCueRange(a),sy(this.u.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",function(){var d=b.B.get();d=Ay(d.j.get(),"SLOT_TYPE_AD_BREAK_REQUEST");return[Object.assign({},c,{slotId:d,Lb:c.Lb?nPa(c.slotId,d,c.Lb):void 0,kc:oPa(c.slotId,d,c.kc),vc:oPa(c.slotId,d,c.vc)})]},c.slotId))};
TZ.prototype.nh=function(){for(var a=g.q(this.i.keys()),b=a.next();!b.done;b=a.next())b=b.value,this.j.get().removeCueRange(b);this.i.clear()};
TZ.prototype.Qj=function(){};g.v(UZ,g.G);g.h=UZ.prototype;g.h.ph=function(){};
g.h.Si=function(a){var b=this;Zt(au(),function(){var c=b.i.get(a);c&&T("Expected layouts to be properly unscheduled",a,void 0,{slotType:a.ob,layoutTypes:[].concat(g.u(c)).map(function(d){return d.layoutType})})},0)};
g.h.nf=function(){};
g.h.Ri=function(){};
g.h.qf=function(){};
g.h.Sj=function(){};
g.h.Tj=function(){};
g.h.Oi=function(a,b){this.i.has(a)||this.i.set(a,new Set);this.i.get(a).add(b)};
g.h.Pi=function(a,b){this.Uh.has(a)&&this.Uh.get(a)===b&&T("Unscheduled a Layout that is currently entered.",a,b);if(this.i.has(a)){var c=this.i.get(a);c.has(b)?(c.delete(b),0===c.size&&this.i.delete(a)):T("Trying to unscheduled a Layout that was not scheduled.",a,b)}else T("Trying to unscheduled a Layout that was not scheduled.",a,b)};
g.h.Lc=function(a,b){this.Uh.set(a,b)};
g.h.Xc=function(a){this.Uh.delete(a)};
g.h.Ph=function(){};d_.prototype.clone=function(a){var b=this;return new d_(function(){return b.triggerId},a)};e_.prototype.clone=function(a){var b=this;return new e_(function(){return b.triggerId},a)};f_.prototype.clone=function(a){var b=this;return new f_(function(){return b.triggerId},a)};g_.prototype.clone=function(a){var b=this;return new g_(function(){return b.triggerId},a)};h_.prototype.clone=function(a){var b=this;return new h_(function(){return b.triggerId},a)};g.v(k_,g.G);k_.prototype.logEvent=function(a){RZ(this,a)};g.v(l_,k_);m_.prototype.clear=function(){this.i.clear()};g.v(n_,g.G);g.h=n_.prototype;g.h.addListener=function(a){this.listeners.push(a)};
g.h.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.h.nh=function(a,b,c,d,e,f,k){if(""===a)T("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(!this.G.T().L("html5_de_dupe_content_video_loads_in_lifecycle_api")||a!==this.i||c){this.i=a;this.Fa.get().nh(a,b,c,d,e,f,k);this.B.get().nh(a,b,c,d,e,f,k);var l;null==(l=this.j)||l.get().nh(a,b,c,d,e,f,k);this.u.nh(a,b,c,d,e,f,k);l=g.q(this.listeners);for(var m=l.next();!m.done;m=l.next())m.value.nh(a,b,c,d,e,f,k)}};
g.h.nG=function(){this.i&&this.Qj(this.i)};
g.h.Qj=function(a){this.i=void 0;for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.Qj(a)};g.v(o_,g.G);o_.prototype.addCueRange=function(a,b,c,d,e,f,k){f=void 0===f?3:f;k=void 0===k?1:k;this.i.has(a)?T("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:a}):(a=new vPa(a,b,c,d,f),this.i.set(a.id,{Bd:a,listener:e,ek:k}),this.G.Nd([a],k))};
o_.prototype.removeCueRange=function(a){var b=this.i.get(a);b?(this.G.Mf([b.Bd],b.ek),this.i.delete(a)):T("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:a})};
o_.prototype.onCueRangeEnter=function(a){if(this.i.has(a.id))this.i.get(a.id).listener.onCueRangeEnter(a.id)};
o_.prototype.onCueRangeExit=function(a){if(this.i.has(a.id))this.i.get(a.id).listener.onCueRangeExit(a.id)};
g.v(vPa,g.Ly);p_.prototype.Ti=function(a){this.G.Ti(a)};
p_.prototype.Oa=function(a){this.G.Oa.apply(this.G,[a].concat(g.u(g.Ca.apply(1,arguments))))};g.h=t_.prototype;g.h.kf=function(a,b){if(!this.i.has(a))return{};if("seek"===b)return b=this.G.T().L("html5_dai_enable_active_view_creating_completed_adblock"),gga(a,b),{};b=eva(b);if(null===b||this.G.T().L("enable_server_stitched_dai")&&2!==this.G.getPresentingPlayerType(!0))return{};var c=this.G.Nc();c=c&&(this.G.T().L("enable_server_stitched_dai")||2===c.getPlayerType())&&QG(c);if(!c)return{};c={opt_adElement:c,opt_fullscreen:this.Fa.get().isFullscreen()};return Rq(b,a,c)};
g.h.Yw=function(a){var b;null==(b=this.i.get(a.queryId))||b.Yw()};
g.h.Xw=function(a){var b;null==(b=this.i.get(a.queryId))||b.Xw()};
g.h.Zw=function(a){var b;null==(b=this.i.get(a.queryId))||b.Zw()};
g.h.Vw=function(a){var b;null==(b=this.i.get(a.queryId))||b.Vw()};
g.h.Ww=function(a){var b;null==(b=this.i.get(a.queryId))||b.Ww()};g.v(x_,DG);x_.prototype.i=function(){return this.u()};
x_.prototype.j=function(){return this.B()};y_.prototype.eh=function(){var a=this.G.Nc();return a&&(a=a.eh(1))?a:null};
y_.prototype.Ii=function(a,b){"string"===typeof b?this.G.getVideoData(1).TG(a,b):this.G.getVideoData(1).Ba(a,b)};g.v(D_,g.G);g.h=D_.prototype;g.h.addListener=function(a){this.listeners.push(a)};
g.h.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.h.nh=function(){this.yD.clear();this.EF=null;this.G.T().L("html5_clear_timeline_storage_killswitch")||this.i.get().clear()};
g.h.Qj=function(){};
g.h.JX=function(a,b,c){"nPpU29QrbiU"===b.videoId&&this.Ii("ads_ssm_vdc_s",{pt:c,dvt:a});(r_(this.Ka.get())||this.Ka.get().G.T().L("html5_debug_client_stitched"))&&"dataloaded"!==a||HPa(this,b,c)};
g.h.fX=function(a,b){void 0!==a&&(this.EF=a,void 0===b?T("Expected ad video start time on SS video changed"):this.yD.set(a,b));b=this.G.getPresentingPlayerType(!0);var c=this.G.getVideoData(b);this.G.getVideoData(1).Ba("ads_ssvc",{pt:b,cpn:""+(null==c?void 0:c.clientPlaybackNonce)});c?HPa(this,c,b):T("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.G.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:a})};
g.h.ra=function(){this.listeners.length=0;this.Qp=null;g.G.prototype.ra.call(this)};
g.h.Ii=function(a,b){this.G.getVideoData(1).Ba(a,b)};g.v(E_,g.G);g.h=E_.prototype;g.h.nh=function(){var a=this;this.Tp=bg(function(){a.G.isDisposed()||a.G.Fe("ad",1)})};
g.h.Qj=function(){};
g.h.addListener=function(a){this.listeners.push(a)};
g.h.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.h.playVideo=function(){this.G.playVideo()};
g.h.pauseVideo=function(){this.G.pauseVideo()};
g.h.resumeVideo=function(a){this.zm(a)&&this.G.playVideo()};
g.h.zm=function(a){return 2===this.G.getPlayerState(a)};
g.h.getCurrentTimeSec=function(a,b){var c=this.i.get().EF;return 2!==a||b||null===c?this.G.getCurrentTime(a,b):F_(this,c)};
g.h.getVolume=function(){return this.G.getVolume()};
g.h.isMuted=function(){return this.G.isMuted()};
g.h.getPresentingPlayerType=function(){return this.G.getPresentingPlayerType(!0)};
g.h.getPlayerState=function(a){return this.G.getPlayerState(a)};
g.h.isFullscreen=function(){return this.G.isFullscreen()};
g.h.isAtLiveHead=function(){return this.G.isAtLiveHead()};
g.h.Wt=function(a){this.G.Wt(a)};
g.h.IW=function(){if(2===this.G.getPresentingPlayerType(!0))for(var a=this.getCurrentTimeSec(2,!1),b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.Nh(a)};
g.h.xW=function(a){for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.Qi(a,this.getPresentingPlayerType())};
g.h.onFullscreenToggled=function(a){for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.onFullscreenToggled(a)};
g.h.onVolumeChange=function(){for(var a=g.q(this.listeners),b=a.next();!b.done;b=a.next())b.value.onVolumeChange()};
g.h.dg=function(){for(var a=this.G.Se(),b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.dg(a)};
g.h.yb=function(){for(var a=this.G.bb().xg(),b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.Mi(a)};
g.h.Oj=function(a){for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.Oj(a)};g.v(KPa,g.G);I_.prototype.addListener=function(a){this.listeners.add(a)};
I_.prototype.removeListener=function(a){this.listeners.delete(a)};K_.prototype.Sv=function(){var a=this;NPa(this.i,function(){var b=X(a.slot.Ea,"metadata_type_ad_break_request_data");return a.j.get().fetch({FP:b.getAdBreakUrl,QK:new g.Ly(b.uO,b.tO),Ev:X(a.slot.Ea,"metadata_type_cue_point")})},function(){PPa(a)},function(b){b=b.Ql;
2<=b.length&&T("Unexpected ad placement renderers length",a.slot,null,{length:b.length});b.some(function(c){var d,e,f,k;return!!(null==(d=c.renderer)?0:null==(e=d.linearAdSequenceRenderer)?0:null==(f=e.linearAds)?0:f.length)||!(null==(k=c.renderer)||!k.instreamVideoAdRenderer)})||PPa(a)})};
K_.prototype.OD=function(){OPa(this.i)};L_.prototype.Sv=function(){var a=this;NPa(this.i,function(){var b=X(a.slot.Ea,"metadata_type_ad_break_request_data");return a.j.get().fetch({FP:b.getAdBreakUrl,QK:new g.Ly(b.uO,b.tO)})})};
L_.prototype.OD=function(){OPa(this.i)};M_.prototype.Sv=function(){KNa(this.callback,this.slot,X(this.slot.Ea,"metadata_type_fulfilled_layout"))};
M_.prototype.OD=function(){SY(this.callback,this.slot,new fZ("Got CancelSlotFulfilling request for "+this.slot.ob+" in DirectFulfillmentAdapter."))};O_.prototype.Wd=function(a,b){return N_(b,{Pd:["metadata_type_fulfilled_layout"]})?new M_(a,b):this.B(a,b)};g.v(P_,O_);P_.prototype.B=function(a,b){if(N_(b,{Pd:["metadata_type_ad_break_request_data","metadata_type_cue_point"],ob:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new K_(a,b,this.i,this.u,this.j,this.C);if(N_(b,{Pd:["metadata_type_ad_break_request_data"],ob:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new L_(a,b,this.i,this.u,this.j);throw new fZ("Unsupported slot with type: "+b.ob+" and client metadata: "+zY(b.Ea)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.v(Q_,O_);Q_.prototype.B=function(a,b){throw new fZ("Unsupported slot with type: "+b.ob+" and client metadata: "+zY(b.Ea)+" in DefaultFulfillmentAdapterFactory.");};g.h=QPa.prototype;g.h.wd=function(){return this.slot};
g.h.Eb=function(){return this.layout};
g.h.init=function(){};
g.h.release=function(){};
g.h.startRendering=function(a){if(a.layoutId!==this.layout.layoutId)this.callback.Df(this.slot,a,new WY("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType)));else{var b=X(a.Ea,"metadata_type_ad_break_response_data");"SLOT_TYPE_AD_BREAK_REQUEST"===this.slot.ob?(this.callback.Lc(this.slot,a),joa(this.i,this.slot,b)):T("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",
this.slot,a)}};
g.h.jf=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.Df(this.slot,a,new WY("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):this.callback.Xc(this.slot,a,b)};S_.prototype.Wd=function(a,b,c,d){if(R_(d,{Pd:["metadata_type_ad_break_response_data"],Te:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new QPa(a,c,d,this.i);throw new WY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+zY(d.Ea)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};T_.prototype.kf=function(a){var b=this.C.get(a)||[];RPa(this,a,b);this.B.add(a)};g.h=SPa.prototype;g.h.wd=function(){return this.slot};
g.h.Eb=function(){return this.layout};
g.h.init=function(){};
g.h.release=function(){};
g.h.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.Df(this.slot,a,new WY("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(this.callback.Lc(this.slot,a),W_(this.j,"impression"),l0(this.i,a.layoutId))};
g.h.jf=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.Df(this.slot,a,new WY("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):this.callback.Xc(this.slot,a,b)};Z_.prototype.Wd=function(a,b,c,d){if(R_(d,TPa()))return new SPa(a,c,d,this.Ra,this.i);throw new WY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+zY(d.Ea)+" in ForecastingLayoutRenderingAdapterFactory.");};g.v($_,g.tx);g.h=$_.prototype;g.h.wd=function(){return this.slot};
g.h.Eb=function(){return this.layout};
g.h.init=function(){this.j.get().addListener(this)};
g.h.release=function(){this.j.get().removeListener(this);this.dispose()};
g.h.aF=function(){};
g.h.YE=function(){};
g.h.XE=function(){};
g.h.Xz=function(){};
g.h.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.Df(this.slot,a,new WY("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(a=this.j.get(),tQa(a,this.i,1))};
g.h.jf=function(a,b){if(a.layoutId!==this.layout.layoutId)this.callback.Df(this.slot,a,new WY("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType)));else{var c=this.j.get();tQa(c,this.i,3);this.i=[];this.callback.Xc(this.slot,a,b)}};
g.h.ra=function(){this.j.get().removeListener(this);g.tx.prototype.ra.call(this)};g.v(UPa,iG);g.v(c0,$_);g.h=c0.prototype;g.h.xf=function(a,b){b0("action-companion",a,this.I.get().Uh,this.Ra.get(),this.u,this.B,this.wd(),this.Eb(),b)};
g.h.startRendering=function(a){a0(this.C,this.wd(),this.Eb(),this.callback,"metadata_type_action_companion_ad_renderer",function(b,c,d,e,f){return new UPa(b,c,d,e,f)},this.i);
$_.prototype.startRendering.call(this,a)};
g.h.Lc=function(a,b){b.layoutId===this.layout.layoutId?W_(this.C,"impression"):this.B===b.layoutId&&(null===this.u?this.u=this.Ra.get().eh():T("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.h.Xc=function(){};
g.h.ph=function(){};
g.h.Si=function(){};
g.h.Ri=function(){};
g.h.nf=function(){};
g.h.qf=function(){};
g.h.Sj=function(){};
g.h.Tj=function(){};
g.h.Oi=function(){};
g.h.Pi=function(){};
g.h.Ph=function(){};
g.h.ra=function(){this.ze().Od.delete(this);$_.prototype.ra.call(this)};g.v(d0,$_);d0.prototype.init=function(){$_.prototype.init.call(this);var a=X(this.layout.Ea,"metadata_type_ad_action_interstitial_renderer"),b=V_(this.u);this.i.push(new $G(a,b,this.layout.layoutId,{adsClientData:this.layout.Bc},!0,!0))};
d0.prototype.startRendering=function(a){$_.prototype.startRendering.call(this,a);this.callback.Lc(this.slot,a)};
d0.prototype.xf=function(){};
d0.prototype.ra=function(){$_.prototype.ra.call(this)};g.v(e0,$_);g.h=e0.prototype;g.h.init=function(){$_.prototype.init.call(this);var a=X(this.layout.Ea,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.Bc},c=!X(this.layout.Ea,"metadata_type_player_bytes_callback").kA;this.i.push(new XK(a,this.layout.layoutId,X(this.layout.Ea,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b,c))};
g.h.Io=function(){this.u||this.Fa.get().resumeVideo(2)};
g.h.startRendering=function(a){$_.prototype.startRendering.call(this,a);this.callback.Lc(this.slot,a);this.B.Yr=this};
g.h.jf=function(a,b){$_.prototype.jf.call(this,a,b);Z1(this.B,this)};
g.h.xf=function(a){if(fPa(this.C.get(),this.I))switch(a){case "visit-advertiser":this.Ra.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.u||this.Fa.get().resumeVideo(2);break;case "ad-info-icon-button":(this.u=this.Fa.get().zm(2))||this.Fa.get().pauseVideo();break;case "visit-advertiser":this.Fa.get().pauseVideo();X(this.layout.Ea,"metadata_type_player_bytes_callback").tB();
break;case "skip-button":a=X(this.layout.Ea,"metadata_type_player_bytes_callback"),a.kA&&a.jx(this.wd(),this.layout)}};
g.h.ra=function(){$_.prototype.ra.call(this)};g0.prototype.Wd=function(a,b,c,d){if(a=f0(a,c,d,this.j,this.Fa,this.Ra,this.u,this.i))return a;throw new WY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+zY(d.Ea)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.v(h0,g.G);g.h=h0.prototype;g.h.init=function(){var a=X(this.Eb().Ea,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.po()};
g.h.release=function(){var a=X(this.Eb().Ea,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=null);this.So()};
g.h.startRendering=function(a){a.layoutId!==this.Eb().layoutId?this.callback.Df(this.wd(),a,new WY("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Eb().layoutId+("and LayoutType: "+this.Eb().layoutType))):(this.Fa.get().addListener(this),QY(this.ze(),this),this.Fa.get().G.xl(2),Tva(this.rd.get()),this.Tm(a))};
g.h.jf=function(a,b){this.jF=!0;this.ap(a,b);this.Fa.get().G.To(2);this.Qd.get().G.cueVideoByPlayerVars({},2);a=u_(this.Fa.get(),1);g.V(a,4)&&!g.V(a,2)&&this.Fa.get().playVideo();this.Fa.get().removeListener(this);this.jF&&this.IM()};
g.h.Xc=function(a,b){b.layoutId===this.Eb().layoutId&&(this.jF=!1,this.ze().Od.delete(this))};
g.h.Qi=function(a,b){if(a.state.isError()){if(this.Ka.get().G.T().L("html5_ignore_organic_playback_error_when_ads_presenting")&&(T("Presenting player state error caught in PlayerBytes layout.",this.wd(),this.Eb(),{playerType:String(b)}),1===b))return;var c,d;this.Df(null==(c=a.state.getData())?void 0:c.errorCode,new WY("There was a player error during this media layout.",{playerErrorCode:null==(d=a.state.getData())?void 0:d.errorCode}),b)}else this.IN(a)};
g.h.ph=function(){};
g.h.Si=function(){};
g.h.Ri=function(){};
g.h.nf=function(){};
g.h.qf=function(){};
g.h.Sj=function(){};
g.h.Tj=function(){};
g.h.Oi=function(){};
g.h.Pi=function(){};
g.h.Ph=function(){};
g.h.Oj=function(){};g.v(i0,h0);g.h=i0.prototype;g.h.wd=function(){return this.slot};
g.h.Eb=function(){return this.layout};
g.h.po=function(){if(1>=this.j.length)throw new fZ("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.j.length)});for(var a=g.q(this.j),b=a.next();!b.done;b=a.next())b=b.value,b.init(),aZ(this.u,this.slot,b.Eb()),bZ(this.u,this.slot,b.Eb())};
g.h.So=function(){for(var a=g.q(this.j),b=a.next();!b.done;b=a.next())b=b.value,BI(this.u,this.slot,b.Eb()),b.release()};
g.h.Gq=function(a,b){var c=this.j[this.i];b.layoutId!==j0(c,a,b)?T("pauseLayout for a PlayerBytes layout that is not currently active",a,b):c.Gq()};
g.h.Pq=function(a,b){var c=this.j[this.i];b.layoutId!==j0(c,a,b)?T("resumeLayout for a PlayerBytes layout that is not currently active",a,b):c.Pq()};
g.h.jx=function(a,b){var c=this.j[this.i];b.layoutId!==j0(c,a,b)?T("onSkipRequested for a PlayerBytes layout that is not currently active",c.wd(),c.Eb(),{requestingSlot:a,requestingLayout:b}):k0(this,c.wd(),c.Eb(),"skipped")};
g.h.Tm=function(){-1===this.i&&YPa(this)};
g.h.rX=function(a,b){cZ(this.u,a,b)};
g.h.ap=function(a,b){var c=this;this.i!==this.j.length?(a=this.j[this.i],a.jf(a.Eb(),b),this.C=function(){c.callback.Xc(c.slot,c.layout,b)}):this.callback.Xc(this.slot,this.layout,b)};
g.h.Lc=function(a,b){var c=this.j[this.i];c&&c.Lc(a,b)};
g.h.Xc=function(a,b,c){h0.prototype.Xc.call(this,a,b,c);var d=this.j[this.i];d&&d.Xc(a,b,c)};
g.h.IM=function(){var a=this.j[this.i];a&&a.Wz()};
g.h.Nh=function(a){var b=this.j[this.i];b&&b.Nh(a)};
g.h.IN=function(a){var b=this.j[this.i];b&&b.Qi(a)};
g.h.Df=function(a,b){-1===this.i&&(this.callback.Lc(this.slot,this.layout),this.i++);var c=this.j[this.i];c?c.Tw(a,b):T("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.i),layoutId:this.Eb().layoutId})};
g.h.onFullscreenToggled=function(a){var b=this.j[this.i];if(b)b.onFullscreenToggled(a)};
g.h.dg=function(a){var b=this.j[this.i];b&&b.dg(a)};
g.h.Mi=function(a){var b=this.j[this.i];b&&b.Mi(a)};
g.h.onVolumeChange=function(){var a=this.j[this.i];if(a)a.onVolumeChange()};
g.h.tX=function(a,b,c){k0(this,a,b,c)};
g.h.sX=function(a,b){k0(this,a,b,"error")};g.v(p0,g.G);g.h=p0.prototype;g.h.wd=function(){return this.slot};
g.h.Eb=function(){return this.layout};
g.h.init=function(){var a=X(this.layout.Ea,"metadata_type_video_length_seconds"),b=X(this.layout.Ea,"metadata_type_active_view_traffic_type");v_(this.ea.get(),this.layout.layoutId,b,a,this);B_(this.Ra.get(),this);this.po()};
g.h.release=function(){w_(this.ea.get(),this.layout.layoutId);C_(this.Ra.get(),this);this.So()};
g.h.Gq=function(){};
g.h.Pq=function(){};
g.h.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.Df(this.slot,a,new WY("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(this.j="rendering_start_requested",Jua(this.La.get(),1)?NZ(this.Ka.get(),"html5_fix_csi_event_order_in_pacf")?(this.I(-1),this.Tm(a),this.Hp(!1)):(this.Hp(!1),this.I(-1),this.Tm(a)):this.Tw("ui_unstable",new WY("Failed to render media layout because ad ui unstable.")))};
g.h.Lc=function(a,b){if(b.layoutId===this.layout.layoutId){this.j="rendering";W_(this.i,"impression");W_(this.i,"start");if(this.Fa.get().isMuted()){W_(this.i,"mute");var c;a=(null==(c=o0(this))?void 0:c.muteCommands)||[];this.u.get().Gd(a,this.layout.layoutId)}if(this.Fa.get().isFullscreen()){this.i.kf("fullscreen");var d;c=(null==(d=o0(this))?void 0:d.fullscreenCommands)||[];this.u.get().Gd(c,this.layout.layoutId)}this.N=this.Fa.get().isMuted()||0===this.Fa.get().getVolume();q0(this,"unmuted_impression");
q0(this,"unmuted_start");this.Fa.get().isFullscreen()&&s0(this,"unmuted_fullscreen");Wva(this.rd.get());this.I(1);this.vN();var e;d=(null==(e=o0(this))?void 0:e.impressionCommands)||[];this.u.get().Gd(d,this.layout.layoutId)}};
g.h.Tw=function(a,b,c){this.Ia={dC:3,jy:"load_timeout"===a?402:400,errorMessage:b.message};X(this.layout.Ea,"METADATA_TYPE_LOG_PLAYER_TYPE_ON_ERROR")&&T("There is a player error in this survey ads",this.wd(),this.Eb(),{playerType:String(c)});W_(this.i,"error");q0(this,"unmuted_error");var d;a=(null==(d=o0(this))?void 0:d.errorCommands)||[];this.u.get().Gd(a,this.layout.layoutId);this.callback.Df(this.slot,this.layout,b)};
g.h.Wz=function(){this.J()};
g.h.IL=function(){if("rendering"===this.j){this.i.kf("pause");s0(this,"unmuted_pause");var a,b=(null==(a=o0(this))?void 0:a.pauseCommands)||[];this.u.get().Gd(b,this.layout.layoutId);this.I(2)}};
g.h.JL=function(){if("rendering"===this.j){this.i.kf("resume");s0(this,"unmuted_resume");var a,b=(null==(a=o0(this))?void 0:a.resumeCommands)||[];this.u.get().Gd(b,this.layout.layoutId)}};
g.h.jf=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.Df(this.slot,a,new WY("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):"rendering_stop_requested"!==this.j&&(this.j="rendering_stop_requested",this.W=b,this.ap(a,b))};
g.h.Xc=function(a,b,c){if(b.layoutId===this.layout.layoutId)switch(this.j="not_rendering",this.W=void 0,this.Ka.get().G.T().L("html5_check_ad_position_and_reset_on_new_ad_playback_csi")?(a="normal"!==c||this.position+1===this.Ha)&&this.Hp(a):this.Hp(!0),this.wN(c),this.I(0),c){case "abandoned":if(Y_(this.i,"impression")){W_(this.i,"abandon");q0(this,"unmuted_abandon");var d,e=(null==(d=o0(this))?void 0:d.abandonCommands)||[];this.u.get().Gd(e,this.layout.layoutId)}break;case "normal":W_(this.i,"complete");
q0(this,"unmuted_complete");d=(null==(e=o0(this))?void 0:e.completeCommands)||[];this.u.get().Gd(d,this.layout.layoutId);break;case "skipped":W_(this.i,"skip");var f;d=(null==(f=o0(this))?void 0:f.skipCommands)||[];this.u.get().Gd(d,this.layout.layoutId)}};
g.h.ew=function(){return this.layout.layoutId};
g.h.CE=function(){return this.Ia};
g.h.Qi=function(a){if("not_rendering"!==this.j){this.ya||(a=new g.TG(a.state,new g.QI),this.ya=!0);var b=2===this.Fa.get().getPresentingPlayerType();"rendering_start_requested"===this.j?b&&m0(a)&&this.xa():b?g.VG(a,2)?this.gJ():(m0(a)?this.I(1):g.VG(a,4)&&!g.VG(a,2)&&this.IL(),0>UG(a,4)&&!(0>UG(a,2))&&this.JL()):this.Wz()}};
g.h.Yw=function(){if("rendering"===this.j){W_(this.i,"active_view_measurable");var a,b=(null==(a=o0(this))?void 0:a.activeViewMeasurableCommands)||[];this.u.get().Gd(b,this.layout.layoutId)}};
g.h.Xw=function(){if("rendering"===this.j){W_(this.i,"active_view_fully_viewable_audible_half_duration");var a,b=(null==(a=o0(this))?void 0:a.activeViewFullyViewableAudibleHalfDurationCommands)||[];this.u.get().Gd(b,this.layout.layoutId)}};
g.h.Zw=function(){if("rendering"===this.j){W_(this.i,"active_view_viewable");var a,b=(null==(a=o0(this))?void 0:a.activeViewViewableCommands)||[];this.u.get().Gd(b,this.layout.layoutId)}};
g.h.Vw=function(){if("rendering"===this.j){W_(this.i,"audio_audible");var a,b=(null==(a=o0(this))?void 0:a.activeViewAudioAudibleCommands)||[];this.u.get().Gd(b,this.layout.layoutId)}};
g.h.Ww=function(){if("rendering"===this.j){W_(this.i,"audio_measurable");var a,b=(null==(a=o0(this))?void 0:a.activeViewAudioMeasurableCommands)||[];this.u.get().Gd(b,this.layout.layoutId)}};
g.h.Hp=function(a){this.rd.get().Hp(X(this.layout.Ea,"metadata_type_ad_placement_config").kind,a,this.position,this.Ha,!1)};
g.h.onFullscreenToggled=function(a){if("rendering"===this.j)if(a){this.i.kf("fullscreen");s0(this,"unmuted_fullscreen");var b,c=(null==(b=o0(this))?void 0:b.fullscreenCommands)||[];this.u.get().Gd(c,this.layout.layoutId)}else this.i.kf("end_fullscreen"),s0(this,"unmuted_end_fullscreen"),b=(null==(c=o0(this))?void 0:c.endFullscreenCommands)||[],this.u.get().Gd(b,this.layout.layoutId)};
g.h.onVolumeChange=function(){if("rendering"===this.j)if(this.Fa.get().isMuted()){W_(this.i,"mute");q0(this,"unmuted_mute");var a,b=(null==(a=o0(this))?void 0:a.muteCommands)||[];this.u.get().Gd(b,this.layout.layoutId)}else W_(this.i,"unmute"),q0(this,"unmuted_unmute"),a=(null==(b=o0(this))?void 0:b.unmuteCommands)||[],this.u.get().Gd(a,this.layout.layoutId)};
g.h.dg=function(){};
g.h.Mi=function(){};
g.h.Oj=function(){};g.v(u0,p0);g.h=u0.prototype;g.h.po=function(){};
g.h.So=function(){var a=this.Ra.get();a.IB===this&&(a.IB=null);s_(this.Ka.get())?this.C.stop():this.timer.stop()};
g.h.Tm=function(){this.Ra.get().IB=this;rI();this.xa()};
g.h.vN=function(){cQa(this)};
g.h.gJ=function(){};
g.h.Gq=function(){s_(this.Ka.get())?this.C.stop():this.timer.stop();p0.prototype.IL.call(this)};
g.h.Pq=function(){cQa(this);p0.prototype.JL.call(this)};
g.h.lm=function(){return X(this.Eb().Ea,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")};
g.h.ap=function(){s_(this.Ka.get())?this.C.stop():this.timer.stop()};
g.h.Rb=function(){var a=Date.now(),b=a-this.Y;this.Y=a;this.B+=b;this.B>=this.lm()?(this.B=this.lm(),r0(this,this.B/1E3,!0),t0(this,this.B),this.J()):(r0(this,this.B/1E3),t0(this,this.B))};
g.h.wN=function(){};
g.h.Nh=function(){};g.v(v0,p0);g.h=v0.prototype;g.h.po=function(){X(this.Eb().Ea,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=X(this.Eb().Ea,"metadata_type_shrunken_player_bytes_config")};
g.h.So=function(){X(this.Eb().Ea,"metadata_type_player_bytes_callback_ref").current=null;this.B&&this.Y.get().removeCueRange(this.B);this.B=void 0;this.C.dispose()};
g.h.Tm=function(a){var b=X(a.Ea,"metadata_type_ad_video_id"),c=X(a.Ea,"metadata_type_legacy_info_card_vast_extension");b&&c&&this.Qa.get().G.T().W.add(b,{zv:c});(b=X(a.Ea,"metadata_type_sodar_extension_data"))&&LPa(this.Ta.get(),b);JPa(this.Fa.get(),!1);b=this.Qd.get();a=X(a.Ea,"metadata_type_player_vars");b.G.cueVideoByPlayerVars(a,2);this.C.start();this.Qd.get().G.playVideo(2)};
g.h.vN=function(){this.C.stop();this.B="adcompletioncuerange:"+this.Eb().layoutId;this.Y.get().addCueRange(this.B,0x7ffffffffffff,0x8000000000000,!1,this,2,2);var a;(this.adCpn=(null==(a=ty(this.va.get(),2))?void 0:a.clientPlaybackNonce)||"")||T("Media layout confirmed started, but ad CPN not set.");this.Pc.get().Oa("onAdStart",this.adCpn)};
g.h.gJ=function(){this.J()};
g.h.lm=function(){var a;return null==(a=ty(this.va.get(),2))?void 0:a.playbackDurationMs};
g.h.tB=function(){this.i.kf("clickthrough")};
g.h.ap=function(){this.C.stop();JPa(this.Fa.get(),!0);var a;(null==(a=this.shrunkenPlayerBytesConfig)?0:a.shouldRequestShrunkenPlayerBytes)&&this.Fa.get().Wt(!1)};
g.h.onCueRangeEnter=function(a){a!==this.B?T("Received CueRangeEnter signal for unknown layout.",this.wd(),this.Eb(),{cueRangeId:a}):(this.Y.get().removeCueRange(this.B),this.B=void 0,a=X(this.Eb().Ea,"metadata_type_video_length_seconds"),r0(this,a,!0),W_(this.i,"complete"))};
g.h.wN=function(a){"abandoned"!==a&&this.Pc.get().Oa("onAdComplete");this.Pc.get().Oa("onAdEnd",this.adCpn)};
g.h.onCueRangeExit=function(){};
g.h.Nh=function(a){"rendering"===this.j&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&a>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.Fa.get().Wt(!0),r0(this,a))};g.v(w0,h0);g.h=w0.prototype;g.h.wd=function(){return this.i.wd()};
g.h.Eb=function(){return this.i.Eb()};
g.h.po=function(){this.i.init()};
g.h.So=function(){this.i.release()};
g.h.Gq=function(){this.i.Gq()};
g.h.Pq=function(){this.i.Pq()};
g.h.jx=function(a,b){T("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter.  Skip should be handled by Triggers",this.wd(),this.Eb(),{requestingSlot:a,requestingLayout:b})};
g.h.Tm=function(a){this.i.startRendering(a)};
g.h.ap=function(a,b){this.i.jf(a,b)};
g.h.Lc=function(a,b){this.i.Lc(a,b)};
g.h.Xc=function(a,b,c){h0.prototype.Xc.call(this,a,b,c);this.i.Xc(a,b,c);b.layoutId===this.Eb().layoutId&&LI(this.rd.get())};
g.h.IM=function(){this.i.Wz()};
g.h.Nh=function(a){this.i.Nh(a)};
g.h.IN=function(a){this.i.Qi(a)};
g.h.Df=function(a,b,c){this.i.Tw(a,b,c)};
g.h.onFullscreenToggled=function(a){this.i.onFullscreenToggled(a)};
g.h.dg=function(a){this.i.dg(a)};
g.h.Mi=function(a){this.i.Mi(a)};
g.h.onVolumeChange=function(){this.i.onVolumeChange()};x0.prototype.Wd=function(a,b,c,d){if(a=fQa(a,b,c,d,this.ze,this.I,this.Ra,this.C,this.N,this.Qd,this.J,this.Fa,this.u,this.rd,this.Pc,this.i,this.j,this.B,this.Ka))return a;throw new WY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+zY(d.Ea)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.v(y0,g.G);g.h=y0.prototype;g.h.yN=function(a){if(this.i)gQa(this,this.i,a);else{var b;null==(b=this.B)||b.get().No(a.identifier)}};
g.h.oN=function(){};
g.h.nh=function(a){this.i&&this.i.contentCpn!==a&&(T("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.i.contentCpn}),this.i=null)};
g.h.Qj=function(a){this.i&&this.i.contentCpn!==a&&T("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.i.contentCpn},!0);this.i=null};
g.h.ra=function(){g.G.prototype.ra.call(this);this.i=null};g.v(z0,g.G);g.h=z0.prototype;g.h.Lc=function(a,b){var c=this;if("LAYOUT_TYPE_MEDIA"===b.layoutType&&fH(b,this.N)){var d=ty(this.B.get(),2),e=this.I(b,d);e?sy(this.C.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",function(){var f=[qPa(c.j.get(),e.contentCpn,e.ju,function(k){return c.J(k.slotId,"core",e,EY(c.i.get(),k))},e.VL)];
e.instreamAdPlayerUnderlayRenderer&&yPa(c.Ka.get())&&f.push(hQa(c,e,e.instreamAdPlayerUnderlayRenderer));return f}):T("Expected MediaLayout to carry valid opportunity on entered",a,b)}};
g.h.ph=function(){};
g.h.Si=function(){};
g.h.nf=function(){};
g.h.Ri=function(){};
g.h.qf=function(){};
g.h.Sj=function(){};
g.h.Tj=function(){};
g.h.Oi=function(){};
g.h.Pi=function(){};
g.h.Ph=function(){};
g.h.Xc=function(){};var x1=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"];g.h=lQa.prototype;g.h.init=function(){};
g.h.wd=function(){return this.slot};
g.h.qz=function(){this.callback.nf(this.slot)};
g.h.rz=function(){this.callback.qf(this.slot)};
g.h.release=function(){};B0.prototype.Wd=function(a,b){return new lQa(a,b)};g.h=mQa.prototype;g.h.init=function(){};
g.h.wd=function(){return this.slot};
g.h.qz=function(){G_(this.Fa.get(),"ad-showing");this.callback.nf(this.slot)};
g.h.rz=function(){this.callback.qf(this.slot);H_(this.Fa.get(),"ad-showing")};
g.h.release=function(){};g.h=nQa.prototype;g.h.init=function(){};
g.h.wd=function(){return this.slot};
g.h.qz=function(){G_(this.Fa.get(),"ad-showing");G_(this.Fa.get(),"ad-interrupting");this.j=this.Fa.get().isAtLiveHead();this.i=Math.ceil(Date.now()/1E3);this.callback.nf(this.slot)};
g.h.rz=function(){H_(this.Fa.get(),"ad-showing");H_(this.Fa.get(),"ad-interrupting");var a=this.j?Infinity:this.Fa.get().getCurrentTimeSec(1,!0)+Math.floor(Date.now()/1E3)-this.i;this.Fa.get().G.seekTo(a,void 0,void 0,1);this.callback.qf(this.slot)};
g.h.release=function(){};g.h=oQa.prototype;g.h.init=function(){};
g.h.wd=function(){return this.slot};
g.h.qz=function(){G_(this.Fa.get(),"ad-showing");G_(this.Fa.get(),"ad-interrupting");this.callback.nf(this.slot)};
g.h.rz=function(){this.Fa.get().Tp();H_(this.Fa.get(),"ad-showing");H_(this.Fa.get(),"ad-interrupting");this.callback.qf(this.slot)};
g.h.release=function(){this.Fa.get().Tp()};C0.prototype.Wd=function(a,b){if(vy(b,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new mQa(a,b,this.Fa);if(b.Lb instanceof SZ&&vy(b,["metadata_type_served_from_live_infra"],"SLOT_TYPE_PLAYER_BYTES"))return new nQa(a,b,this.Fa);if(vy(b,[],"SLOT_TYPE_PLAYER_BYTES"))return new oQa(a,b,this.Fa);throw new fZ("Unsupported slot with type "+b.ob+" and client metadata: "+(zY(b.Ea)+" in PlayerBytesSlotAdapterFactory."));};g.v(E0,g.G);E0.prototype.i=function(a){for(var b=[],c=g.q(this.Ib.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof zZ&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"===d.category&&e.Oe===a&&b.push(d)}b.length?dZ(this.OC(),b):T("Mute requested but no registered triggers can be activated.")};g.v(F0,E0);g.h=F0.prototype;g.h.xf=function(a,b){if(b)if("survey-submit"===a)pQa(this,b);else if("skip-button"===a){a=[];for(var c=g.q(this.Ib.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof zZ&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"===d.category&&e.Oe===b&&a.push(d)}a.length&&dZ(this.OC(),a)}else"survey-single-select-answer-button"===a&&pQa(this,b)};
g.h.aF=function(a){E0.prototype.i.call(this,a)};
g.h.Wi=function(a,b,c,d){if(this.Ib.has(b.triggerId))throw new fZ("Tried to register duplicate trigger for slot.");if(!(b instanceof AZ||b instanceof zZ))throw new fZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdUxUpdateTriggerAdapter.");this.Ib.set(b.triggerId,new D0(a,b,c,d))};
g.h.lj=function(a){this.Ib.delete(a.triggerId)};
g.h.YE=function(){};
g.h.XE=function(){};
g.h.Xz=function(){};g.v(G0,g.G);g.h=G0.prototype;
g.h.Wi=function(a,b,c,d){if(this.Ib.has(b.triggerId))throw new fZ("Tried to register duplicate trigger for slot.");if(!(b instanceof d_||b instanceof e_||b instanceof f_||b instanceof g_||b instanceof h_||b instanceof WZ||b instanceof a_||b instanceof yZ||b instanceof IZ||b instanceof VZ||b instanceof $Z))throw new fZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdsControlFlowEventTriggerAdapter");a=new D0(a,b,c,d);this.Ib.set(b.triggerId,a);b instanceof h_&&this.C.has(b.Lg)&&
dZ(this.i(),[a]);b instanceof d_&&this.u.has(b.Lg)&&dZ(this.i(),[a]);b instanceof a_&&this.j.has(b.Oe)&&dZ(this.i(),[a])};
g.h.lj=function(a){this.Ib.delete(a.triggerId)};
g.h.ph=function(a){this.C.add(a.slotId);for(var b=[],c=g.q(this.Ib.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof h_&&a.slotId===d.trigger.Lg&&b.push(d);0<b.length&&dZ(this.i(),b)};
g.h.Si=function(a){this.C.delete(a.slotId);a=[];for(var b=g.q(this.Ib.values()),c=b.next();!c.done;c=b.next());0<a.length&&dZ(this.i(),a)};
g.h.Ri=function(a){for(var b=[],c=g.q(this.Ib.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof WZ&&e.ob===a.ob&&e.i!==a.slotId&&b.push(d)}0<b.length&&dZ(this.i(),b)};
g.h.nf=function(a){this.u.add(a.slotId);for(var b=[],c=g.q(this.Ib.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof d_&&a.slotId===d.trigger.Lg&&b.push(d);0<b.length&&dZ(this.i(),b)};
g.h.qf=function(a){this.u.delete(a.slotId);this.B.add(a.slotId);for(var b=[],c=g.q(this.Ib.values()),d=c.next();!d.done;d=c.next())if(d=d.value,d.trigger instanceof e_)a.slotId===d.trigger.Lg&&b.push(d);else if(d.trigger instanceof $Z){var e=d.trigger;a.slotId===e.slotId&&this.j.has(e.Oe)&&b.push(d)}0<b.length&&dZ(this.i(),b)};
g.h.Sj=function(a){for(var b=[],c=g.q(this.Ib.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof f_&&a.slotId===d.trigger.Lg&&b.push(d);0<b.length&&dZ(this.i(),b)};
g.h.Tj=function(a){for(var b=[],c=g.q(this.Ib.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof g_&&a.slotId===d.trigger.Lg&&b.push(d);0<b.length&&dZ(this.i(),b)};
g.h.Oi=function(a,b){this.I.add(b.layoutId)};
g.h.Pi=function(a,b){this.I.delete(b.layoutId)};
g.h.Lc=function(a,b){this.j.add(b.layoutId);for(var c=[],d=g.q(this.Ib.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof a_)b.layoutId===e.trigger.Oe&&c.push(e);else if(e.trigger instanceof VZ){var f=e.trigger;a.ob===f.ob&&b.layoutType===f.layoutType&&b.layoutId!==f.i&&c.push(e)}else e.trigger instanceof $Z&&(f=e.trigger,b.layoutId===f.Oe&&this.B.has(f.slotId)&&c.push(e));0<c.length&&dZ(this.i(),c)};
g.h.Xc=function(a,b,c){this.j.delete(b.layoutId);a=[];for(var d=g.q(this.Ib.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof yZ&&b.layoutId===e.trigger.Oe&&a.push(e),e.trigger instanceof IZ){var f=e.trigger;b.layoutId===f.Oe&&c===f.i&&a.push(e)}0<a.length&&dZ(this.i(),a)};
g.h.Ph=function(){};
g.h.nh=function(){this.B.clear()};
g.h.Qj=function(){};g.v(H0,g.G);H0.prototype.Wi=function(a,b,c,d){if(this.Ib.has(b.triggerId))throw new fZ("Tried to register duplicate trigger for slot.");if(!(b instanceof wy||b instanceof CZ))throw new fZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.Ib.set(b.triggerId,new D0(a,b,c,d))};
H0.prototype.lj=function(a){this.Ib.delete(a.triggerId)};
H0.prototype.nh=function(a,b,c){b=[];for(var d=b.push,e=d.apply,f=[],k=g.q(this.Ib.values()),l=k.next();!l.done;l=k.next())l=l.value,l.trigger instanceof wy&&l.trigger.fp===a&&f.push(l);e.call(d,b,g.u(f));b.push.apply(b,g.u(qQa(this.Ib,a,!1,c)));b.length&&dZ(this.i(),b)};
H0.prototype.Qj=function(a){var b=[];b.push.apply(b,g.u(qQa(this.Ib,a,!0,!1)));b.length&&dZ(this.i(),b)};g.v(I0,g.G);g.h=I0.prototype;
g.h.Wi=function(a,b,c,d){if(this.Ib.has(b.triggerId))throw new fZ("Tried to register duplicate trigger for slot.");var e="adtriggercuerange:"+b.triggerId;if(b instanceof SZ)J0(this,a,b,c,d,e,b.i.start,b.i.end,b.fp,b.visible);else if(b instanceof b_)J0(this,a,b,c,d,e,b.i.start,b.i.end,b.fp,!1);else if(b instanceof ZZ)J0(this,a,b,c,d,e,0x7ffffffffffff,0x8000000000000,b.fp,b.visible);else throw new fZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CueRangeTriggerAdapter");
};
g.h.lj=function(a){var b=this.Ib.get(a.triggerId);b&&this.u.get().removeCueRange(b.lz);this.Ib.delete(a.triggerId)};
g.h.onCueRangeEnter=function(a){if(a=rQa(this,a))if(a=this.Ib.get(a))if(g.V(u_(this.Fa.get()),32))this.i.add(a.lz);else{var b=null==a?void 0:a.bundle.trigger;(b instanceof SZ||b instanceof ZZ)&&dZ(this.j(),[a.bundle])}};
g.h.onCueRangeExit=function(a){if(a=rQa(this,a))if(a=this.Ib.get(a))this.i.delete(a.lz),a.bundle.trigger instanceof b_&&dZ(this.j(),[a.bundle])};
g.h.Qi=function(a){if(0>UG(a,16)){a=g.q(this.i);for(var b=a.next();!b.done;b=a.next())this.onCueRangeEnter(b.value);this.i.clear()}};
g.h.Nh=function(){};
g.h.onFullscreenToggled=function(){};
g.h.dg=function(){};
g.h.Mi=function(){};
g.h.onVolumeChange=function(){};
g.h.Oj=function(){};g.v(K0,g.G);g.h=K0.prototype;g.h.Wi=function(a,b,c,d){if(this.Ib.has(b.triggerId))throw new fZ("Tried to register duplicate trigger for slot.");if(!(b instanceof DZ||b instanceof c_))throw new fZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Ib.set(b.triggerId,new D0(a,b,c,d))};
g.h.lj=function(a){this.Ib.delete(a.triggerId)};
g.h.Gn=function(){};
g.h.Qk=function(){};
g.h.Lc=function(a,b){"SLOT_TYPE_ABOVE_FEED"===a.ob&&(null!=this.i?T("called onLayoutEntered with AboveFeedSlot but there is already a layout entered"):this.i=b.layoutId)};
g.h.Xc=function(a){"SLOT_TYPE_ABOVE_FEED"===a.ob&&(this.i=null)};
g.h.ph=function(){};
g.h.Si=function(){};
g.h.Ri=function(){};
g.h.nf=function(a){"SLOT_TYPE_ABOVE_FEED"===a.ob&&(null!=this.j?T("called onSlotEntered with AboveFeedSlot but there is already a slot entered"):this.j=a.slotId)};
g.h.qf=function(a){"SLOT_TYPE_ABOVE_FEED"===a.ob&&(null===this.j?T("called onSlotExited with AboveFeedSlot but there is no entered slot"):this.j=null)};
g.h.Sj=function(){};
g.h.Tj=function(){};
g.h.Oi=function(){};
g.h.Pi=function(){};
g.h.Ph=function(){};
g.h.cz=function(){null!=this.i&&l0(this,this.i)};
g.h.wz=function(a){if(null===this.j){for(var b=[],c=g.q(this.Ib.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof c_&&d.trigger.slotId===a&&b.push(d);b.length&&dZ(this.u(),b)}};g.v(L0,g.G);g.h=L0.prototype;g.h.Ph=function(a,b){for(var c=[],d=g.q(this.Ib.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&&dZ(this.i(),c)};
g.h.Wi=function(a,b,c,d){if(this.Ib.has(b.triggerId))throw new fZ("Tried to register duplicate trigger for slot.");if(!(b instanceof hPa))throw new fZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OpportunityEventTriggerAdapter");this.Ib.set(b.triggerId,new D0(a,b,c,d))};
g.h.lj=function(a){this.Ib.delete(a.triggerId)};
g.h.ph=function(){};
g.h.Si=function(){};
g.h.Ri=function(){};
g.h.nf=function(){};
g.h.qf=function(){};
g.h.Sj=function(){};
g.h.Tj=function(){};
g.h.Oi=function(){};
g.h.Pi=function(){};
g.h.Lc=function(){};
g.h.Xc=function(){};g.v(M0,g.G);M0.prototype.ra=function(){this.B.get().removeListener(this);g.G.prototype.ra.call(this)};g.v(N0,g.G);N0.prototype.ra=function(){this.C.get().removeListener(this);g.G.prototype.ra.call(this)};O0.prototype.fetch=function(a){var b=a.QK;return this.xp.fetch(a.FP,{Ev:void 0===a.Ev?void 0:a.Ev,Bd:b}).then(function(c){return sQa(c,b)})};g.v(P0,g.G);g.h=P0.prototype;g.h.addListener=function(a){this.listeners.push(a)};
g.h.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.h.onAdUxClicked=function(a,b){Q0(this,function(c){c.xf(a,b)})};
g.h.aG=function(a){Q0(this,function(b){b.YE(a)})};
g.h.ZF=function(a){Q0(this,function(b){b.XE(a)})};
g.h.YU=function(a){Q0(this,function(b){b.Xz(a)})};g.v(R0,g.G);g.h=R0.prototype;g.h.nh=function(){this.B=new EI(this,xPa(this.Ka.get()));this.j=new FI;uQa(this)};
g.h.Qj=function(){};
g.h.addListener=function(a){this.listeners.push(a)};
g.h.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.h.uG=function(a){this.RB.push(a);for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.yN(a)};
g.h.qN=function(a){g.tc(this.j.i,1E3*a);for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.oN(a)};
g.h.KA=function(a){var b=ty(this.C.get(),1),c=b.clientPlaybackNonce;b=b.daiEnabled;var d=Date.now();a=g.q(a);for(var e=a.next();!e.done;e=a.next())e=e.value,(b||PZ(this.Ka.get())&&!g.vE(this.G.T()))&&A_(this.Ra.get(),{cuepointTrigger:{event:vQa(e.event),cuepointId:e.identifier,totalCueDurationMs:1E3*e.durationSecs,playheadTimeMs:e.i,cueStartTimeMs:1E3*e.startSecs,cuepointReceivedTimeMs:d,contentCpn:c}}),this.u.add(e),b?this.B.reduce(e):PZ(this.Ka.get())&&!g.vE(this.G.T())&&0!==this.G.getCurrentTime(1)&&
"start"===e.event&&this.uG(e)};
g.h.ra=function(){null!=this.i&&(this.i.unsubscribe("cuepointupdated",this.KA,this),this.i=null);this.listeners.length=0;this.u.clear();this.RB.length=0;g.G.prototype.ra.call(this)};U0.prototype.addListener=function(a){this.listeners.push(a)};
U0.prototype.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};g.h=V0.prototype;g.h.wd=function(){return this.slot};
g.h.Eb=function(){return this.layout};
g.h.init=function(){this.C.get().addListener(this);this.Fa.get().addListener(this);this.po();var a=X(this.layout.Ea,"metadata_type_layout_enter_ms"),b=X(this.layout.Ea,"metadata_type_layout_exit_ms"),c,d=null==(c=this.u.get().Qp)?void 0:c.clientPlaybackNonce;c=this.layout.Bc.adClientDataEntry;A_(this.Ra.get(),{daiStateTrigger:{filledAdsDurationMs:b-a,contentCpn:d,adClientData:c}});var e=this.C.get();e=GI(e.j,a,b);null!==e&&(A_(this.Ra.get(),{daiStateTrigger:{filledAdsDurationMs:e-a,contentCpn:d,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",
adClientData:c}}),this.J.get().Lp(e,b))};
g.h.release=function(){this.So();this.C.get().removeListener(this);this.Fa.get().removeListener(this)};
g.h.startRendering=function(){this.Tm();this.callback.Lc(this.slot,this.layout)};
g.h.jf=function(a,b){this.ap(b);null!==this.driftRecoveryMs&&(W0(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(xQa(this)-X(this.layout.Ea,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(1E3*this.Fa.get().G.Sn()).toString()}),this.driftRecoveryMs=null);this.callback.Xc(this.slot,this.layout,b)};
g.h.yN=function(){};
g.h.oN=function(a){var b=X(this.layout.Ea,"metadata_type_layout_enter_ms"),c=X(this.layout.Ea,"metadata_type_layout_exit_ms");a*=1E3;if(b<=a&&a<c){var d;A_(this.Ra.get(),{daiStateTrigger:{filledAdsDurationMs:a-b,contentCpn:null==(d=this.u.get().Qp)?void 0:d.clientPlaybackNonce,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:this.layout.Bc.adClientDataEntry}});this.J.get().Lp(a,c)}};
g.h.Nh=function(a){this.eN(a);a=this.Fa.get().getCurrentTimeSec(2,!0);if(fPa(this.N.get(),this.layout.layoutId)){var b=X(this.layout.Ea,"metadata_type_layout_enter_ms"),c=this.driftRecoveryMs;if(!(null===c||1E3*a<b+c)){this.driftRecoveryMs=null;var d=xQa(this),e=this.Fa.get().G.Sn(),f=Math.min(a+e,d/1E3);f<=a?W0(this,{driftRecoveryMs:c.toString(),breakDurationMs:Math.round(d-b).toString(),driftFromHeadMs:Math.round(1E3*e).toString()}):(W0(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.Fa.get().G.seekTo(f,void 0,void 0,1))}}};
g.h.dg=function(){};
g.h.Mi=function(){};
g.h.onVolumeChange=function(){};
g.h.Oj=function(){};g.v(X0,V0);g.h=X0.prototype;g.h.po=function(){this.u.get().addListener(this);this.I.forEach(function(a){a.init()});
null!=this.B&&this.Ra.get().Ii("ads_ssmplra_init","lid."+this.layout.layoutId+";smlid."+this.B)};
g.h.So=function(){this.u.get().removeListener(this);this.j=null;this.I.forEach(function(a){a.release()})};
g.h.Tm=function(){if(this.j)T("Failed to restart rendering",this.slot,this.layout,{hasSurveyMediaSubLayout:String(!!this.B)});else{var a,b=null==(a=this.u.get().Qp)?void 0:a.layoutId;zQa(this,b)}};
g.h.ap=function(a){var b,c,d,e;null==(d=this.j)||null==(e=d.ji)||e.jf(null==(b=this.j)?void 0:null==(c=b.ji)?void 0:c.Eb(),a);this.j=null};
g.h.EN=function(a){var b=a.videoId;a=a.layoutId;if("nPpU29QrbiU"===b){var c,d;this.Ra.get().Ii("ads_ssmplra_opdcs","vid."+b+";lid."+this.layout.layoutId+";smlid."+this.B+";slrs."+!!this.j+";slrslid."+(null==(c=this.j)?void 0:null==(d=c.ji)?void 0:d.Eb().layoutId))}var e;if(this.j&&(null==(e=this.j.ji)?void 0:e.Eb().layoutId)!==a){var f,k;null==(k=this.j.ji)||k.jf(null==(f=this.j.ji)?void 0:f.Eb(),"normal");zQa(this,a)}};
g.h.eN=function(){};
g.h.Qi=function(){};
g.h.onFullscreenToggled=function(){};g.h=KQa.prototype;g.h.wd=function(){return this.slot};
g.h.Eb=function(){return this.layout};
g.h.init=function(){var a=this;X(this.layout.Ea,"metadata_type_player_bytes_callback_ref").current=this;this.Dc=AQa(this.slot,this.layout,X(this.layout.Ea,"metadata_type_player_vars"),X(this.layout.Ea,"metadata_type_layout_enter_ms"),X(this.layout.Ea,"metadata_type_layout_exit_ms"),1E3*X(this.layout.Ea,"metadata_type_video_length_seconds"),this.C.get(),this.J.get(),function(){var d=Object,e=d.assign,f=a1(a.layout);var k=X(a.slot.Ea,"metadata_type_fulfilled_layout");k=Object.assign({},a1(k),{adPlacementConfig:X(k.Ea,
"metadata_type_ad_placement_config"),subLayouts:X(k.Ea,"metadata_type_sub_layouts").map(a1)});return e.call(d,{},{layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"},f,{compositeLayout:k,hasSurveyOverlay:uy(a.layout.Ea,"metadata_type_survey_overlay"),surveyOverlay:X(a.layout.Ea,"metadata_type_survey_overlay")})},this.Ra.get());
this.Fa.get().addListener(this);var b=X(this.layout.Ea,"metadata_type_video_length_seconds"),c=X(this.layout.Ea,"metadata_type_active_view_traffic_type");zPa(this.Ka.get())||v_(this.u.get(),this.layout.layoutId,c,b,this);aZ(this.callback,this.slot,this.layout);bZ(this.callback,this.slot,this.layout)};
g.h.release=function(){this.Fa.get().removeListener(this);zPa(this.Ka.get())||w_(this.u.get(),this.layout.layoutId);this.Ka.get().G.T().L("html5_unschedule_dai_media_sublayout_killswitch")||BI(this.callback,this.slot,this.layout)};
g.h.startRendering=function(){var a=this;uy(this.layout.Ea,"metadata_type_survey_overlay")&&this.Ra.get().Ii("ads_ssmlra_srs","lid."+this.layout.layoutId);if(this.j)T("Expected the layout not to be entered before start rendering",this.slot,this.layout,{hasSurveyOverlay:uy(this.layout.Ea,"metadata_type_survey_overlay"),surveyOverlay:X(this.layout.Ea,"metadata_type_survey_overlay")});else{this.j={Jj:null,Hx:!1};this.Ka.get().G.T().experiments.Xa("html5_disable_sodar_for_tvhtml5")||BQa(this.slot,this.layout,
this.I.get());W_(this.i,"start");if(r_(this.Ka.get())){var b=u_(this.Fa.get()),c=X(this.layout.Ea,"metadata_type_video_length_seconds"),d=this.Fa.get().getCurrentTimeSec(2,!1);CQa(this.i,this.j.Jj,b,c,d,function(){return void MQa(a,"teois")})}cZ(this.callback,this.slot,this.layout);
uy(this.layout.Ea,"metadata_type_survey_overlay")&&this.Ra.get().Ii("ads_ssmlra_sre","lid."+this.layout.layoutId)}};
g.h.jf=function(a,b){var c=this;if(this.j){if(r_(this.Ka.get()))if(null===this.Dc)T("Unexpected media sub layout exited without a timeline playback ID");else{a=X(this.layout.Ea,"metadata_type_video_length_seconds");var d=F_(this.Fa.get(),this.Dc);this.i.u=d;Z0(this.i,null,this.j.Jj,a,d,function(e){return void LQa(c,e,"fue")})}this.j=null;
iH(this.callback,this.slot,this.layout,b)}else T("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.h.Tw=function(){};
g.h.Wz=function(){};
g.h.Nh=function(a){var b=this;if(this.j){if(Y_(this.i,"impression")){var c=u_(this.Fa.get()),d=X(this.layout.Ea,"metadata_type_video_length_seconds");$0(this.i,c,a,this.j.Jj,d,function(e){return void LQa(b,e,"tpaqe")})}this.j.Jj=a}};
g.h.Qi=function(a){var b=this;if(this.j){r_(this.Ka.get())||this.j.Hx||(this.j.Hx=!0,a=new g.TG(a.state,new g.QI));var c=X(this.layout.Ea,"metadata_type_video_length_seconds"),d=this.Fa.get().getCurrentTimeSec(2,!1);Y0(this.i,this.j.Jj,a,c,d,!r_(this.Ka.get()),function(){return void MQa(b,"teosc")})}};
g.h.onFullscreenToggled=function(a){DQa(this.i,a)};
g.h.dg=function(){};
g.h.Mi=function(){};
g.h.jx=function(){};
g.h.onVolumeChange=function(){};
g.h.Lc=function(){};
g.h.Xc=function(){};
g.h.Gq=function(){};
g.h.Pq=function(){};
g.h.tB=function(){EQa(this.i)};
g.h.Yw=function(){FQa(this.i)};
g.h.Xw=function(){GQa(this.i)};
g.h.Zw=function(){HQa(this.i)};
g.h.Vw=function(){IQa(this.i)};
g.h.Ww=function(){JQa(this.i)};
g.h.Oj=function(){};g.v(b1,V0);g.h=b1.prototype;
g.h.po=function(){var a=this;X(this.layout.Ea,"metadata_type_player_bytes_callback_ref").current=this;var b=X(this.layout.Ea,"metadata_type_layout_enter_ms"),c=X(this.layout.Ea,"metadata_type_layout_exit_ms");this.Dc=AQa(this.slot,this.layout,X(this.layout.Ea,"metadata_type_player_vars"),b,c,1E3*X(this.layout.Ea,"metadata_type_video_length_seconds"),this.J.get(),this.W.get(),function(){return{layoutType:"LAYOUT_TYPE_MEDIA",enterMs:b,exitMs:c,adPlacementConfig:X(a.layout.Ea,"metadata_type_ad_placement_config")}},
this.Ra.get());
var d=X(this.layout.Ea,"metadata_type_video_length_seconds"),e=X(this.layout.Ea,"metadata_type_active_view_traffic_type");v_(this.B.get(),this.layout.layoutId,e,d,this)};
g.h.So=function(){w_(this.B.get(),this.layout.layoutId)};
g.h.Tm=function(){var a=this;if(this.j)T("Expected the layout not to be entered before start rendering",this.slot,this.layout);else if(this.j={Jj:null,Hx:!1},BQa(this.slot,this.layout,this.I.get()),W_(this.i,"start"),r_(this.Ka.get())){var b=u_(this.Fa.get()),c=X(this.layout.Ea,"metadata_type_video_length_seconds"),d=this.Fa.get().getCurrentTimeSec(2,!1);CQa(this.i,this.j.Jj,b,c,d,function(){return void NQa(a,"teois")})}};
g.h.ap=function(){var a=this;if(this.j){if(r_(this.Ka.get()))if(null===this.Dc)T("Unexpected single media layout exited without a timeline playback ID");else{var b=X(this.layout.Ea,"metadata_type_video_length_seconds"),c=F_(this.Fa.get(),this.Dc);this.i.u=c;Z0(this.i,null,this.j.Jj,b,c,function(d){return void OQa(a,d,"fue")})}this.j=null}else T("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.h.eN=function(a){var b=this;if(this.j){if(Y_(this.i,"impression")){var c=u_(this.Fa.get()),d=X(this.layout.Ea,"metadata_type_video_length_seconds");$0(this.i,c,a,this.j.Jj,d,function(e){return void OQa(b,e,"tpaqe")})}this.j.Jj=a}};
g.h.Qi=function(a){var b=this;if(this.j){r_(this.Ka.get())||this.j.Hx||(this.j.Hx=!0,a=new g.TG(a.state,new g.QI));var c=X(this.layout.Ea,"metadata_type_video_length_seconds"),d=this.Fa.get().getCurrentTimeSec(2,!1);Y0(this.i,this.j.Jj,a,c,d,!r_(this.Ka.get()),function(){return void NQa(b,"teosc")})}};
g.h.onFullscreenToggled=function(a){DQa(this.i,a)};
g.h.tB=function(){EQa(this.i)};
g.h.Yw=function(){FQa(this.i)};
g.h.Xw=function(){GQa(this.i)};
g.h.Zw=function(){HQa(this.i)};
g.h.Vw=function(){IQa(this.i)};
g.h.Ww=function(){JQa(this.i)};c1.prototype.Wd=function(a,b,c,d){if(uy(c.Ea,"metadata_type_dai")){var e=X(d.Ea,"metadata_type_ad_placement_config");R_(d,{Pd:"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(" "),Te:["LAYOUT_TYPE_MEDIA"]})&&void 0!==e?(e=new T_(d.uc,this.Ra,e,d.layoutId,null),e=new b1(a,c,d,this.i,this.u,this.J,this.C,this.Fa,e,this.Ra,this.B,this.I,this.j,this.Ka)):e=null;
if(e)return e;a:{var f=X(d.Ea,"metadata_type_sub_layouts"),k=X(d.Ea,"metadata_type_ad_placement_config");if(R_(d,{Pd:["metadata_type_layout_enter_ms","metadata_type_drift_recovery_ms","metadata_type_layout_exit_ms"],Te:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})&&void 0!==f&&void 0!==k){e=[];f=g.q(f);for(var l=f.next();!l.done;l=f.next()){l=l.value;var m=X(l.Ea,"metadata_type_media_sub_layout_index");if(!R_(l,{Pd:"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(" "),
Te:["LAYOUT_TYPE_MEDIA"]})||void 0===m){a=null;break a}m=new T_(l.uc,this.Ra,k,l.layoutId,m);e.push(new KQa(b,c,l,this.u,m,this.Fa,this.J,this.j,this.B,this.Ka,this.Ra,this.i))}b=new T_(d.uc,this.Ra,k,d.layoutId);a=new X0(a,c,d,this.i,this.u,this.C,this.Fa,b,this.Ra,this.I,e)}else a=null}if(a)return a}else if(a=fQa(a,b,c,d,this.ze,this.va,this.Ra,this.j,this.B,this.Qd,this.i,this.Fa,this.Y,this.rd,this.Pc,this.N,this.W,this.ea,this.Ka))return a;throw new WY("Unsupported layout with type: "+d.layoutType+
" and client metadata: "+zY(d.Ea)+" in PlayerBytesLayoutRenderingAdapterFactory.");};g.v(d1,g.G);d1.prototype.Wi=function(a,b,c,d){if(this.Ib.has(b.triggerId))throw new fZ("Tried to register duplicate trigger for slot.");if(!(b instanceof LZ))throw new fZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CloseRequestedTriggerAdapter");this.Ib.set(b.triggerId,new D0(a,b,c,d))};
d1.prototype.lj=function(a){this.Ib.delete(a.triggerId)};g.v(f1,g.G);
f1.prototype.Wi=function(a,b,c,d){if(this.j.has(b.triggerId)||this.u.has(b.triggerId))throw new fZ("Tried to re-register the trigger.");a=new D0(a,b,c,d);if(a.trigger instanceof mPa)this.j.set(a.trigger.triggerId,a);else if(a.trigger instanceof BZ)this.u.set(a.trigger.triggerId,a);else throw new fZ("Incorrect TriggerType: Tried to register trigger of type "+a.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.j.has(a.trigger.triggerId)&&a.slot.slotId===this.i&&dZ(this.B(),[a])};
f1.prototype.lj=function(a){this.j.delete(a.triggerId);this.u.delete(a.triggerId)};
f1.prototype.EN=function(a){a=a.slotId;if(this.i!==a){var b=[];null!=this.i&&b.push.apply(b,g.u(PQa(this.u,this.i)));null!=a&&b.push.apply(b,g.u(PQa(this.j,a)));this.i=a;b.length&&dZ(this.B(),b)}};g.h=g1.prototype;g.h.hs=function(a,b,c,d,e,f){return this.G.hs(a,b,c,d,e,f)};
g.h.Lp=function(a,b){this.G.Lp(a,b)};
g.h.pu=function(a,b,c){this.G.pu(a,b,c)};
g.h.No=function(a){this.G.No(a)};
g.h.zw=function(a,b,c,d,e,f){this.G.zw(a,b,c,d,e,f)};g.v(QQa,iG);g.v(h1,$_);g.h=h1.prototype;g.h.xf=function(a,b){b0("image-companion",a,this.I.get().Uh,this.Ra.get(),this.u,this.B,this.wd(),this.Eb(),b)};
g.h.startRendering=function(a){a0(this.C,this.wd(),this.Eb(),this.callback,"metadata_type_image_companion_ad_renderer",function(b,c,d,e,f){return new QQa(b,c,d,e,f)},this.i);
$_.prototype.startRendering.call(this,a)};
g.h.Lc=function(a,b){b.layoutId===this.layout.layoutId?W_(this.C,"impression"):this.B===b.layoutId&&(null===this.u?this.u=this.Ra.get().eh():T("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.h.Xc=function(){};
g.h.ph=function(){};
g.h.Si=function(){};
g.h.Ri=function(){};
g.h.nf=function(){};
g.h.qf=function(){};
g.h.Sj=function(){};
g.h.Tj=function(){};
g.h.Oi=function(){};
g.h.Pi=function(){};
g.h.Ph=function(){};
g.h.ra=function(){this.ze().Od.delete(this);$_.prototype.ra.call(this)};g.v(SQa,iG);g.v(i1,$_);g.h=i1.prototype;g.h.xf=function(a,b){b0("shopping-companion",a,this.I.get().Uh,this.Ra.get(),this.u,this.B,this.wd(),this.Eb(),b)};
g.h.startRendering=function(a){a0(this.C,this.wd(),this.Eb(),this.callback,"metadata_type_shopping_companion_carousel_renderer",function(b,c,d,e,f){return new SQa(b,c,d,e,f)},this.i);
$_.prototype.startRendering.call(this,a)};
g.h.Lc=function(a,b){b.layoutId===this.layout.layoutId?W_(this.C,"impression"):this.B===b.layoutId&&(null===this.u?this.u=this.Ra.get().eh():T("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.h.Xc=function(){};
g.h.ph=function(){};
g.h.Si=function(){};
g.h.Ri=function(){};
g.h.nf=function(){};
g.h.qf=function(){};
g.h.Sj=function(){};
g.h.Tj=function(){};
g.h.Oi=function(){};
g.h.Pi=function(){};
g.h.Ph=function(){};
g.h.ra=function(){this.ze().Od.delete(this);$_.prototype.ra.call(this)};g.v(UQa,iG);g.v(j1,$_);g.h=j1.prototype;g.h.xf=function(a,b){b0("ads-engagement-panel",a,this.I.get().Uh,this.Ra.get(),this.u,this.B,this.wd(),this.Eb(),b)};
g.h.startRendering=function(a){a0(this.C,this.wd(),this.Eb(),this.callback,"metadata_type_ads_engagement_panel_renderer",function(b,c,d,e,f){return new UQa(b,c,d,e,f)},this.i);
$_.prototype.startRendering.call(this,a)};
g.h.Lc=function(a,b){b.layoutId===this.layout.layoutId?W_(this.C,"impression"):this.B===b.layoutId&&(null===this.u?this.u=this.Ra.get().eh():T("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.h.Xc=function(){};
g.h.ph=function(){};
g.h.Si=function(){};
g.h.Ri=function(){};
g.h.nf=function(){};
g.h.qf=function(){};
g.h.Sj=function(){};
g.h.Tj=function(){};
g.h.Oi=function(){};
g.h.Pi=function(){};
g.h.Ph=function(){};
g.h.ra=function(){this.ze().Od.delete(this);$_.prototype.ra.call(this)};WQa.prototype.Wd=function(a,b,c,d){if(R_(d,VQa()))return new j1(a,c,d,this.i,this.Ra,this.ze,this.u,this.j);if(R_(d,VPa()))return new c0(a,c,d,this.i,this.Ra,this.ze,this.u,this.j);if(R_(d,RQa()))return new h1(a,c,d,this.i,this.Ra,this.ze,this.u,this.j);if(R_(d,TQa()))return new i1(a,c,d,this.i,this.Ra,this.ze,this.u,this.j);throw new WY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+zY(d.Ea)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};g.v(k1,iG);g.v(l1,$_);l1.prototype.init=function(){$_.prototype.init.call(this);var a=X(this.layout.Ea,"metadata_type_player_underlay_renderer");this.i.push(new k1(a.instreamAdPlayerUnderlayRenderer,this.layout.layoutId,{adsClientData:this.layout.Bc}))};
l1.prototype.xf=function(){};
l1.prototype.startRendering=function(a){$_.prototype.startRendering.call(this,a);this.callback.Lc(this.slot,a)};
l1.prototype.ra=function(){$_.prototype.ra.call(this)};XQa.prototype.Wd=function(a,b,c,d){b=["metadata_type_player_underlay_renderer"];for(var e=g.q(U_()),f=e.next();!f.done;f=e.next())b.push(f.value);if(R_(d,{Pd:b,Te:["LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON"]}))return new l1(a,c,d,this.i);throw new WY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+zY(d.Ea)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.h=YQa.prototype;g.h.wd=function(){return this.slot};
g.h.Eb=function(){return this.layout};
g.h.init=function(){this.Fa.get().addListener(this)};
g.h.release=function(){this.Fa.get().removeListener(this)};
g.h.startRendering=function(a){this.callback.Lc(this.slot,a)};
g.h.jf=function(a,b){this.callback.Xc(this.slot,a,b)};
g.h.Oj=function(a){if(wPa(this.Ka.get()))switch(a.id){case "part2viewed":W_(this.i,"start");break;case "videoplaytime25":W_(this.i,"first_quartile");break;case "videoplaytime50":W_(this.i,"midpoint");break;case "videoplaytime75":W_(this.i,"third_quartile");break;case "videoplaytime100":W_(this.i,"complete");break;case "engagedview":W_(this.i,"progress");break;default:T("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}};
g.h.onVolumeChange=function(){};
g.h.Mi=function(){};
g.h.dg=function(){};
g.h.onFullscreenToggled=function(){};
g.h.Qi=function(){};
g.h.Nh=function(){};ZQa.prototype.Wd=function(a,b,c,d){b=["metadata_type_ad_placement_config"];for(var e=g.q(U_()),f=e.next();!f.done;f=e.next())b.push(f.value);if(R_(d,{Pd:b,Te:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return new YQa(a,c,d,this.Fa,this.Ra,this.Ka);throw new WY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+zY(d.Ea)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};g.v(m1,$_);m1.prototype.startRendering=function(a){var b=V_(this.u),c={adsClientData:this.layout.Bc};this.i.push(new uI(X(this.layout.Ea,"metadata_type_valid_survey_text_interstitial_renderer"),b,this.Eb().layoutId,c,!0,!0));$_.prototype.startRendering.call(this,a);this.callback.Lc(this.slot,a)};
m1.prototype.xf=function(a,b){b!==this.layout.layoutId||"survey-interstitial"!==a&&"button"!==a||((a=X(this.layout.Ea,"metadata_type_player_bytes_layout_controls_callback_ref").current)?a.jx(this.slot,this.layout):T("Tried to skip SurveyInterstitial but PlayerBytes callback is null"))};
m1.prototype.ra=function(){$_.prototype.ra.call(this)};var o1=new g.dh(320,63);g.v(r1,iG);g.v(s1,$_);g.h=s1.prototype;g.h.Nh=function(){};
g.h.Qi=function(){};
g.h.onFullscreenToggled=function(){};
g.h.dg=function(a){a&&e1(this.u,this.layout)};
g.h.Mi=function(a){var b=q1(this.layout);if(this.I=p1(a,IPa(this.Fa.get())))b.onErrorCommand&&this.J.get().executeCommand(b.onErrorCommand,this.layout.layoutId),e1(this.u,this.layout)};
g.h.onVolumeChange=function(){};
g.h.ew=function(){return this.Eb().layoutId};
g.h.CE=function(){return this.I};
g.h.xf=function(a){this.B.xf(a);"in_video_overlay_close_button"===a&&e1(this.u,this.layout)};
g.h.Xz=function(a){"invideo-overlay"===a&&e1(this.u,this.layout)};
g.h.Io=function(){this.B.Io()};
g.h.startRendering=function(a){$_.prototype.startRendering.call(this,a);this.callback.Lc(this.slot,a);this.C.Yr=this};
g.h.jf=function(a,b){$_.prototype.jf.call(this,a,b);Z1(this.C,this)};
g.h.init=function(){$_.prototype.init.call(this);B_(this.Ra.get(),this);this.Fa.get().addListener(this);this.i.push(new r1(q1(this.layout),V_(this.N),this.layout.layoutId,{adsClientData:this.layout.Bc}))};
g.h.release=function(){$_.prototype.release.call(this);this.Fa.get().removeListener(this);C_(this.Ra.get(),this)};
g.h.Oj=function(){};g.v(t1,$_);g.h=t1.prototype;g.h.init=function(){$_.prototype.init.call(this);B_(this.Ra.get(),this);this.Fa.get().addListener(this);this.i.push(new r1(q1(this.layout),V_(this.W),this.layout.layoutId,{adsClientData:this.layout.Bc}))};
g.h.Io=function(){this.B.Io()};
g.h.startRendering=function(a){$_.prototype.startRendering.call(this,a);this.callback.Lc(this.slot,a);this.C.Yr=this};
g.h.jf=function(a,b){$_.prototype.jf.call(this,a,b);Z1(this.C,this)};
g.h.xf=function(a){this.B.xf(a);"in_video_overlay_close_button"===a&&e1(this.u,this.layout)};
g.h.YE=function(a){if("invideo-overlay"===a){a=dRa(this.J,this.layout);a=g.q(a);for(var b=a.next();!b.done;b=a.next())b.value.stop()}};
g.h.Xz=function(a){"invideo-overlay"===a&&e1(this.u,this.layout)};
g.h.XE=function(a){if("invideo-overlay"===a){a=dRa(this.J,this.layout);a=g.q(a);for(var b=a.next();!b.done;b=a.next())b.value.start()}};
g.h.Nh=function(){};
g.h.Qi=function(){};
g.h.onFullscreenToggled=function(){};
g.h.dg=function(a){a&&e1(this.u,this.layout)};
g.h.Mi=function(a){var b=q1(this.layout),c=b.contentSupportedRenderer.imageOverlayAdContentRenderer,d=IPa(this.Fa.get());a:{c=c.image;c=void 0===c?null:c;if(null!=c&&(c=c.thumbnail,null!=c&&null!=c.thumbnails&&!g.ac(c.thumbnails)&&null!=c.thumbnails[0].width&&null!=c.thumbnails[0].height)){c=new g.dh(c.thumbnails[0].width||0,c.thumbnails[0].height||0);break a}c=new g.dh(0,0)}if(this.I=p1(a,d,c))b.onErrorCommand&&this.N.get().executeCommand(b.onErrorCommand,this.layout.layoutId),e1(this.u,this.layout)};
g.h.onVolumeChange=function(){};
g.h.ew=function(){return this.Eb().layoutId};
g.h.CE=function(){return this.I};
g.h.release=function(){$_.prototype.release.call(this);this.Fa.get().removeListener(this);C_(this.Ra.get(),this)};
g.h.Oj=function(){};u1.prototype.xf=function(a){"ad-info-hover-text-button"===a&&((this.i=this.Fa.get().zm(1))||this.Fa.get().pauseVideo())};
u1.prototype.Io=function(){this.i||this.Fa.get().resumeVideo(1)};g.v(v1,$_);g.h=v1.prototype;g.h.init=function(){$_.prototype.init.call(this);this.Fa.get().addListener(this)};
g.h.startRendering=function(a){var b=X(this.layout.Ea,"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD");this.i.push(new pI(b,this.layout.layoutId,{adsClientData:this.layout.Bc},!0,!0));$_.prototype.startRendering.call(this,a);this.callback.Lc(this.slot,a)};
g.h.Lc=function(){};
g.h.xf=function(a,b){b!==this.layout.layoutId||"ad-info-icon-button"!==a&&"ad-info-dialog-close-button"!==a||((b=X(this.layout.Ea,"metadata_type_player_bytes_layout_controls_callback_ref").current)?"ad-info-icon-button"===a?b.Gq(this.slot,this.layout):"ad-info-dialog-close-button"===a&&b.Pq(this.slot,this.layout):T("Tried to use LayoutControlsCallback on Survey but it is null",this.slot,this.layout,{ComponentType:a}))};
g.h.Mi=function(a){450>a.width&&e1(this.u,this.layout)};
g.h.onVolumeChange=function(){};
g.h.Nh=function(){};
g.h.onFullscreenToggled=function(){};
g.h.dg=function(){};
g.h.Qi=function(){};
g.h.Oj=function(){};
g.h.ra=function(){$_.prototype.ra.call(this)};
g.h.release=function(){$_.prototype.release.call(this);this.Fa.get().removeListener(this)};cRa.prototype.Wd=function(a,b,c,d){if(b=f0(a,c,d,this.i,this.Fa,this.Ra,this.J,this.j))return b;if(R_(d,bRa()))return new t1(c,d,this.Ra,this.C,this.i,a,this.u,this.I,this.Fa,this.B,this.Ka,this.j,new u1(this.Fa));if(R_(d,aRa()))return new s1(c,d,this.Ra,this.C,this.i,a,this.u,this.Fa,this.B,this.Ka,this.j,new u1(this.Fa));if(R_(d,{Pd:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"],Te:["LAYOUT_TYPE_SURVEY"]}))return new v1(c,d,a,this.i,this.u,this.Fa,this.Ka);if(R_(d,{Pd:["metadata_type_player_bytes_layout_controls_callback_ref",
"metadata_type_valid_survey_text_interstitial_renderer","metadata_type_ad_placement_config"],Te:["LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]}))return new m1(c,d,a,this.i,this.Ra);throw new WY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+zY(d.Ea)+" in WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");};g.v(w1,g.G);g.h=w1.prototype;g.h.Wi=function(a,b,c,d){if(this.Ib.has(b.triggerId))throw new fZ("Tried to register duplicate trigger for slot.");if(!(b instanceof HZ))throw new fZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Ib.set(b.triggerId,new D0(a,b,c,d));a=this.i.has(b.Oe)?this.i.get(b.Oe):new Set;a.add(b);this.i.set(b.Oe,a)};
g.h.lj=function(a){this.Ib.delete(a.triggerId);if(!(a instanceof HZ))throw new fZ("Incorrect TriggerType: Tried to unregister trigger of type "+a.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var b=this.j.get(a.triggerId);b&&(b.dispose(),this.j.delete(a.triggerId));if(b=this.i.get(a.Oe))b.delete(a),0===b.size&&this.i.delete(a.Oe)};
g.h.ph=function(){};
g.h.Si=function(){};
g.h.Ri=function(){};
g.h.nf=function(){};
g.h.qf=function(){};
g.h.Sj=function(){};
g.h.Tj=function(){};
g.h.Oi=function(){};
g.h.Pi=function(){};
g.h.Ph=function(){};
g.h.Lc=function(a,b){var c=this;if(this.i.has(b.layoutId)){b=this.i.get(b.layoutId);a={};b=g.q(b);for(var d=b.next();!d.done;a={Fu:a.Fu},d=b.next())a.Fu=d.value,d=new g.K(function(e){return function(){var f=c.Ib.get(e.Fu.triggerId);dZ(c.u(),[f])}}(a),a.Fu.durationMs),d.start(),this.j.set(a.Fu.triggerId,d)}};
g.h.Xc=function(){};g.v(eRa,g.G);fRa.prototype.Wd=function(a,b,c,d){if(b=f0(a,c,d,this.j,this.Fa,this.Ra,this.J,this.i))return b;if(R_(d,bRa()))return new t1(c,d,this.Ra,this.C,this.j,a,this.u,this.I,this.Fa,this.B,this.Ka,this.i,new u1(this.Fa));if(R_(d,aRa()))return new s1(c,d,this.Ra,this.C,this.j,a,this.u,this.Fa,this.B,this.Ka,this.i,new u1(this.Fa));throw new WY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+zY(d.Ea)+" in WebEmbeddedInPlayerLayoutRenderingAdapterFactory.");};g.v(gRa,g.G);g.v(hRa,g.G);g.v(iRa,g.G);g.v(y1,e0);y1.prototype.startRendering=function(a){e0.prototype.startRendering.call(this,a);X(this.layout.Ea,"metadata_ad_video_is_listed")&&(a=X(this.layout.Ea,"metadata_type_ad_info_ad_metadata"),this.J.get().G.Oa("onAdMetadataAvailable",a))};kRa.prototype.Wd=function(a,b,c,d){if(R_(d,jRa()))return new y1(a,c,d,this.u,this.Fa,this.Ra,this.B,this.j,this.i);throw new WY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+zY(d.Ea)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};g.v(lRa,g.G);mRa.prototype.Wd=function(a,b,c,d){if(R_(d,jRa()))return new y1(a,c,d,this.j,this.Fa,this.Ra,this.u,this.B,this.i);if(a=f0(a,c,d,this.j,this.Fa,this.Ra,this.u,this.i))return a;throw new WY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+zY(d.Ea)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};g.v(nRa,g.G);g.v(z1,g.G);z1.prototype.u=function(){return this.j};B1.prototype.wz=function(a){this.Hk.wz(a)};
B1.prototype.cz=function(){try{this.Hk.cz()}catch(a){}};
B1.prototype.Gn=function(){this.i().Gn()};
B1.prototype.Qk=function(){this.i().Qk()};g.v(C1,BK);
C1.prototype.B=function(a){var b=a.content;if("shopping-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.i.getVideoData(1);this.i.Oa("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,shoppingCompanionCarouselRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.j,interactionLoggingClientData:b.i});break;case 3:this.i.Oa("updateKevlarOrC3Companion",{})}else if("action-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.i.getVideoData(1);
this.i.Oa("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,actionCompanionAdRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.j,interactionLoggingClientData:b.i});break;case 3:b.renderer&&(b=this.i.getVideoData(1),this.i.Oa("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.i.Oa("updateKevlarOrC3Companion",{})}else if("image-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.i.getVideoData(1);this.i.Oa("updateKevlarOrC3Companion",
{contentVideoId:a&&a.videoId,imageCompanionAdRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.j,interactionLoggingClientData:b.i});break;case 3:b=this.i.getVideoData(1),this.i.Oa("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.i.Oa("updateKevlarOrC3Companion",{})}else if("ads-engagement-panel"===b.componentType)switch(b=b.renderer,a.actionType){case 1:case 2:this.i.Oa("updateEngagementPanelAction",b.addAction);this.i.Oa("changeEngagementPanelVisibility",
b.expandAction);break;case 3:this.i.Oa("changeEngagementPanelVisibility",b.hideAction),this.i.Oa("updateEngagementPanelAction",b.removeAction)}};g.v(D1,JK);g.h=D1.prototype;g.h.init=function(a,b,c){JK.prototype.init.call(this,a,b,c);g.xn(this.B,"stroke-dasharray","0 "+this.u);this.show()};
g.h.clear=function(){this.hide()};
g.h.hide=function(){LK(this);JK.prototype.hide.call(this)};
g.h.show=function(){KK(this);JK.prototype.show.call(this)};
g.h.Kq=function(){this.hide()};
g.h.Qo=function(){if(this.j){var a=this.j.getProgressState();null!=a&&null!=a.current&&g.xn(this.B,"stroke-dasharray",a.current/a.seekableEnd*this.u+" "+this.u)}};g.v(E1,ZJ);g.h=E1.prototype;
g.h.init=function(a,b,c){ZJ.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.S(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.lb(g.jh(e[0].url))&&(e[0].url=d.profilePicture);e=b.backgroundImage.thumbnail.thumbnails;null!=e&&0<e.length&&g.lb(g.jh(e[0].url))&&(e[0].url=d.Re());e=b.headline;null!=e&&g.lb(g.jh(e.text))&&(e.text=d.author)}this.C.init(hG("ad-image"),b.image,c);this.N.init(hG("ad-text"),b.headline,c);this.I.init(hG("ad-text"),b.description,c);this.Y.init(hG("ad-image"),b.backgroundImage,c);this.actionButton=new rK(this.api,this.Ua,this.layoutId,this.i,this.ib,["ytp-ad-action-interstitial-action-button"]);
g.J(this,this.actionButton);this.actionButton.Ca(this.La);this.actionButton.init(hG("button"),b.actionButton.buttonRenderer,c);this.navigationEndpoint=b.navigationEndpoint;this.api.T().isMobile||(this.B.S(this.Ia,"click",this.sE,this),this.B.S(this.Ha,"click",this.sE,this),this.B.S(this.ya,"click",this.sE,this));this.j=this.Hg?new YK(this.api,a):new ZK(a);g.J(this,this.j);b.skipButton?(a=b.skipButton.skipButtonRenderer)&&this.j&&(this.skipButton=new TK(this.api,this.Ua,this.layoutId,this.i,this.ib,
this.j,this.cj),g.J(this,this.skipButton),this.skipButton.Ca(this.element),this.skipButton.init(hG("skip-button"),a,c)):b.nonskippableOverlayRenderer&&(a=b.nonskippableOverlayRenderer.adPreviewRenderer)&&this.j&&(this.u=new OK(this.api,this.Ua,this.layoutId,this.i,this.ib,this.j,!1),g.J(this,this.u),this.u.Ca(this.element),this.u.init(hG("ad-preview"),a,c));b.countdownRenderer&&(b=b.countdownRenderer,b.timedPieCountdownRenderer&&this.j&&(c=new D1(this.api,this.Ua,this.layoutId,this.i,this.ib,this.j),
g.J(this,c),c.Ca(this.element),c.init(hG("timed-pie-countdown"),b.timedPieCountdownRenderer,this.macros)));this.show();this.element.focus()}else g.S(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.S(Error("AdActionInterstitialRenderer has no button."));else g.S(Error("AdActionInterstitialRenderer has no background AdImage."));else g.S(Error("AdActionInterstitialRenderer has no description AdText."));else g.S(Error("AdActionInterstitialRenderer has no headline AdText."));
else g.S(Error("AdActionInterstitialRenderer has no image."))};
g.h.clear=function(){g.sx(this.B);this.hide()};
g.h.show=function(){pRa(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.u&&this.u.show();ZJ.prototype.show.call(this)};
g.h.hide=function(){pRa(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.u&&this.u.hide();ZJ.prototype.hide.call(this)};
g.h.sE=function(){this.navigationEndpoint&&(this.api.T().experiments.Xa("html5_enable_pacf_command_api_with_macros")?DK(this.ib,this.navigationEndpoint,this.macros):this.Ua.executeCommand(this.navigationEndpoint,this.macros))};var G1={iconType:"CLOSE"},K1=new g.dh(320,63);g.v(F1,ZJ);g.h=F1.prototype;
g.h.init=function(a,b,c){ZJ.prototype.init.call(this,a,b,c);this.C=b;this.N=g.ic(this.C.onClickCommands||[]);this.ya=this.C.onErrorCommand||null;if(a=this.C.contentSupportedRenderer)a=this.C.contentSupportedRenderer,b=this.C.adInfoRenderer||null,a.textOverlayAdContentRenderer?(this.I=g.wh("ytp-ad-overlay-ad-info-button-container",this.B.element),I1(this,b),a=tRa(this,a.textOverlayAdContentRenderer)):a.enhancedTextOverlayAdContentRenderer?(this.I=g.wh("ytp-ad-overlay-ad-info-button-container",this.u.element),
I1(this,b),a=uRa(this,a.enhancedTextOverlayAdContentRenderer)):a.imageOverlayAdContentRenderer?(this.I=g.wh("ytp-ad-overlay-ad-info-button-container",this.j.element),I1(this,b),a=vRa(this,a.imageOverlayAdContentRenderer)):(g.S(Error("InvideoOverlayAdRenderer content could not be initialized.")),a=!1);a&&(this.show(),wRa(this,!0))};
g.h.clear=function(){wRa(this,!1);this.Ia.reset();this.Y=0;this.B.hide();this.Za(this.B.element,!1);this.u.hide();this.Za(this.u.element,!1);this.j.hide();this.Za(this.j.element,!1);this.hide();this.dispose()};
g.h.wX=function(){this.La&&(this.api.T().experiments.Xa("html5_enable_pacf_command_api_with_macros")?DK(this.ib,this.La,this.macros):this.Ua.executeCommand(this.La,this.macros));this.api.pauseVideo()};
g.h.Ni=function(){a:{if(this.C&&this.C.closeButton&&this.C.closeButton.buttonRenderer){var a=this.C.closeButton.buttonRenderer;if(a.serviceEndpoint){a=[a.serviceEndpoint];break a}}a=[]}a=g.q(a);for(var b=a.next();!b.done;b=a.next())b=b.value,this.api.T().experiments.Xa("html5_enable_pacf_command_api_with_macros")?DK(this.ib,b,this.macros):this.Ua.executeCommand(b,this.macros);this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)};
g.h.RU=function(){this.Qa||2!==this.api.getPlayerState(1)||this.api.playVideo()};
g.h.tG=function(){this.Qa||2!==this.api.getPlayerState(1)||this.api.playVideo();this.api.tG("invideo-overlay")};
g.h.SU=function(a){a.target===this.I&&g.wh("ytp-ad-button",this.Ya.element).click()};g.v(L1,JK);g.h=L1.prototype;g.h.init=function(a,b,c){JK.prototype.init.call(this,a,b,c);a=b.durationMs;this.B=null==a||0===a?0:a+1E3*this.j.getProgressState().current;if(b.text)var d=b.text.templatedAdText;else b.staticMessage&&(d=b.staticMessage);this.messageText.init(hG("ad-text"),d,c);this.messageText.Ca(this.u.element);this.I.show(100);this.show()};
g.h.clear=function(){this.hide()};
g.h.hide=function(){xRa(this,!1);JK.prototype.hide.call(this);this.u.hide();this.messageText.hide();LK(this)};
g.h.show=function(){xRa(this,!0);JK.prototype.show.call(this);KK(this);this.u.show();this.messageText.show()};
g.h.Kq=function(){this.hide()};
g.h.Qo=function(){if(null!=this.j){var a=this.j.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.N&&a>=this.B?(this.I.hide(),this.N=!0):this.messageText&&this.messageText.isTemplated()&&(a=Math.max(0,Math.ceil((this.B-a)/1E3)),a!==this.Y&&(IK(this.messageText,{TIME_REMAINING:String(a)}),this.Y=a)))}};g.v(M1,ZJ);g.h=M1.prototype;
g.h.init=function(a,b,c){ZJ.prototype.init.call(this,a,b,{});b.image&&b.image.thumbnail?b.headline?b.description?b.actionButton&&b.actionButton.buttonRenderer?(this.u.init(hG("ad-image"),b.image,c),this.C.init(hG("ad-text"),b.headline,c),this.B.init(hG("ad-text"),b.description,c),a=["ytp-ad-underlay-action-button"],this.api.T().L("use_blue_buttons_for_desktop_player_underlay")&&a.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new rK(this.api,this.Ua,this.layoutId,this.i,this.ib,a),g.J(this,
this.actionButton),this.actionButton.Ca(this.I),this.actionButton.init(hG("button"),b.actionButton.buttonRenderer,c),b=g.lD(this.api.T().experiments,"player_underlay_video_width_fraction"),this.api.T().L("place_shrunken_video_on_left_of_player")?(c=this.j,g.pr(c,"ytp-ad-underlay-left-container"),g.L(c,"ytp-ad-underlay-right-container"),g.xn(this.j,"margin-left",Math.round(100*(b+.02))+"%")):(c=this.j,g.pr(c,"ytp-ad-underlay-right-container"),g.L(c,"ytp-ad-underlay-left-container")),g.xn(this.j,"width",
Math.round(100*(1-b-.04))+"%"),this.api.lA()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.hJ.bind(this))):g.S(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.S(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.S(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.S(Error("InstreamAdPlayerUnderlayRenderer has no image."))};
g.h.show=function(){yRa(!0);this.actionButton&&this.actionButton.show();ZJ.prototype.show.call(this)};
g.h.hide=function(){yRa(!1);this.actionButton&&this.actionButton.hide();ZJ.prototype.hide.call(this)};
g.h.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.hJ.bind(this));this.hide()};
g.h.onClick=function(a){ZJ.prototype.onClick.call(this,a);this.actionButton&&g.Th(this.actionButton.element,a.target)&&this.api.pauseVideo()};
g.h.hJ=function(a){"transitioning"===a?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-transition"),this.show()):"visible"===a?this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-transition"):"hidden"===a&&(this.hide(),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-transition"))};g.v(N1,ZJ);
N1.prototype.init=function(a,b,c){ZJ.prototype.init.call(this,a,b,c);b.toggledLoggingParams&&(this.toggledLoggingParams=b.toggledLoggingParams);b.answer&&b.answer.buttonRenderer?(a=new rK(this.api,this.Ua,this.layoutId,this.i,this.ib,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),a.Ca(this.answer),a.init(hG("ytp-ad-survey-answer-button"),b.answer.buttonRenderer,c),a.show()):b.answer&&b.answer.toggleButtonRenderer&&(this.j=new zK(this.api,this.Ua,this.layoutId,this.i,this.ib,
["ytp-ad-survey-answer-toggle-button"]),this.j.Ca(this.answer),g.J(this,this.j),this.j.init(hG("survey-answer-button"),b.answer.toggleButtonRenderer,c));this.show()};
N1.prototype.clear=function(){this.hide()};g.v(O1,ZJ);O1.prototype.init=function(a,b,c){ZJ.prototype.init.call(this,a,b,c);b.answer&&b.answer.toggleButtonRenderer&&(this.button=new zK(this.api,this.Ua,this.layoutId,this.i,this.ib,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.Ca(this.j),this.button.init(hG("survey-none-of-the-above-button"),b.answer.toggleButtonRenderer,c));this.show()};g.v(P1,rK);P1.prototype.init=function(a,b,c){rK.prototype.init.call(this,a,b,c);a=!1;b.text&&(b=g.Sy(b.text),a=!g.lb(b));a||g.Rx(Error("No submit text was present in the renderer."))};
P1.prototype.onClick=function(a){this.Z("l");rK.prototype.onClick.call(this,a)};g.v(Q1,ZJ);
Q1.prototype.init=function(a,b,c){ZJ.prototype.init.call(this,a,b,c);if(a=b.skipOrPreviewRenderer)a.skipAdRenderer?(a=a.skipAdRenderer,c=new UK(this.api,this.Ua,this.layoutId,this.i,this.ib,this.B,this.cj),c.Ca(this.I),c.init(hG("skip-button"),a,this.macros),g.J(this,c),this.j=c):a.adPreviewRenderer&&(a=a.adPreviewRenderer,c=new OK(this.api,this.Ua,this.layoutId,this.i,this.ib,this.B,!1),c.Ca(this.I),c.init(hG("ad-preview"),a,this.macros),PK(c),g.J(this,c),this.j=c);null==this.j&&g.S(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(b)));
b.submitButton&&(a=b.submitButton,a.buttonRenderer&&(a=a.buttonRenderer,c=new P1(this.api,this.Ua,this.layoutId,this.i,this.ib),c.Ca(this.submitButton),c.init(hG("survey-submit"),a,this.macros),g.J(this,c),this.u=c));if(a=b.adBadgeRenderer)a=a.simpleAdBadgeRenderer,c=new WK(this.api,this.Ua,this.layoutId,this.i,this.ib,!0),c.Ca(this.C),c.init(hG("simple-ad-badge"),a,this.macros),g.J(this,c);if(a=b.adDurationRemaining)a=a.adDurationRemainingRenderer,c=new bL(this.api,this.Ua,this.layoutId,this.i,this.ib,
this.B,void 0),c.Ca(this.C),c.init(hG("ad-duration-remaining"),a,this.macros),g.J(this,c);(b=b.adInfoRenderer)&&b.adHoverTextButtonRenderer&&(a=new GK(this.api,this.Ua,this.layoutId,this.i,this.ib,this.element),g.J(this,a),a.Ca(this.C),a.init(hG("ad-info-hover-text-button"),b.adHoverTextButtonRenderer,this.macros));this.show()};
Q1.prototype.clear=function(){this.hide()};g.v(R1,ZJ);R1.prototype.init=function(a,b,c){ZJ.prototype.init.call(this,a,b,c);CRa(this)};
R1.prototype.show=function(){this.B=g.Ta();ZJ.prototype.show.call(this)};
R1.prototype.xO=function(){};g.v(S1,R1);g.h=S1.prototype;g.h.init=function(a,b,c){var d=this;R1.prototype.init.call(this,a,b,c);b.questionText&&g.Uh(this.questionText,g.Sy(b.questionText));b.answers&&b.answers.forEach(function(e){e.instreamSurveyAdAnswerRenderer&&zRa(d,e.instreamSurveyAdAnswerRenderer,c)});
this.I=new Set(this.u.map(function(e){return e.j.j}));
(a=b.noneOfTheAbove)&&(a=a.instreamSurveyAdAnswerNoneOfTheAboveRenderer)&&DRa(this,a,c);b.surveyAdQuestionCommon&&BRa(this,b.surveyAdQuestionCommon);b.submitEndpoints&&(this.submitEndpoints=b.submitEndpoints);this.S(this.element,"change",this.onChange);this.show()};
g.h.xO=function(){T1(this,!1);this.C.u.subscribe("l",this.uX,this)};
g.h.onChange=function(a){a.target===this.noneOfTheAbove.button.j?ERa(this):this.I.has(a.target)&&(this.noneOfTheAbove.button.toggleButton(!1),T1(this,!0))};
g.h.uX=function(){var a=this.u.reduce(function(d,e){var f=e.toggledLoggingParams;e.j&&e.j.isToggled()&&f&&d.push(f);return d},[]).join("&"),b=this.submitEndpoints.map(function(d){if(!d.loggingUrls)return d;
d=g.zf(d);d.loggingUrls=d.loggingUrls.map(function(e){e.baseUrl&&(e.baseUrl=Ij(e.baseUrl,a));return e});
return d});
if(b){b=g.q(b);for(var c=b.next();!c.done;c=b.next())c=c.value,this.api.T().experiments.Xa("html5_enable_pacf_command_api_with_macros")?DK(this.ib,c,this.macros):this.Ua.executeCommand(c,this.macros)}};
g.h.clear=function(){this.api.T().L("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.v(U1,R1);U1.prototype.init=function(a,b,c){var d=this;R1.prototype.init.call(this,a,b,c);b.questionText&&g.Uh(this.questionText,g.Sy(b.questionText));b.answers&&b.answers.forEach(function(e){e.instreamSurveyAdAnswerRenderer&&zRa(d,e.instreamSurveyAdAnswerRenderer,c)});
b.surveyAdQuestionCommon?BRa(this,b.surveyAdQuestionCommon):g.S(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(b)));this.show()};
U1.prototype.clear=function(){this.api.T().L("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.v(V1,ZJ);
V1.prototype.init=function(a,b,c){var d=this;ZJ.prototype.init.call(this,a,b,c);(b.questions||[]).forEach(function(e){if(e.instreamSurveyAdSingleSelectQuestionRenderer){e=e.instreamSurveyAdSingleSelectQuestionRenderer;var f=new U1(d.api,d.Ua,d.layoutId,d.i,d.ib,d.Hg,d.cj);f.Ca(d.j);f.init(hG("survey-question-single-select"),e,c);d.questions.push(f);g.J(d,f)}else e.instreamSurveyAdMultiSelectQuestionRenderer&&(e=e.instreamSurveyAdMultiSelectQuestionRenderer,f=new S1(d.api,d.Ua,d.layoutId,d.i,d.ib,
d.Hg,d.cj),f.Ca(d.j),f.init(hG("survey-question-multi-select"),e,c),d.questions.push(f),g.J(d,f))});
this.show()};
V1.prototype.clear=function(){this.api.T().L("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())};g.v(W1,ZJ);
W1.prototype.init=function(a,b,c){var d=this;ZJ.prototype.init.call(this,a,b,c);a=b.timeoutSeconds||0;if("number"!==typeof a||0>a)g.S(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+a));else if(b.timeoutCommands)if(b.text)if(b.ctaButton&&b.ctaButton.buttonRenderer)if(b.brandImage)if(b.backgroundImage&&b.backgroundImage.thumbnailLandscapePortraitRenderer&&b.backgroundImage.thumbnailLandscapePortraitRenderer.landscape){GRa(this.interstitial,b.backgroundImage.thumbnailLandscapePortraitRenderer.landscape);
GRa(this.logoImage,b.brandImage);g.Uh(this.text,g.Sy(b.text));this.actionButton=new rK(this.api,this.Ua,this.layoutId,this.i,this.ib,["ytp-ad-survey-interstitial-action-button"]);g.J(this,this.actionButton);this.actionButton.Ca(this.u);this.actionButton.init(hG("button"),b.ctaButton.buttonRenderer,c);this.actionButton.show();var e=b.timeoutCommands;this.j=this.Hg?new YK(this.api,1E3*a):new ZK(1E3*a,void 0);this.j.subscribe("g",function(){d.transition.hide();if(!d.Hg){for(var k=g.q(e),l=k.next();!l.done;l=
k.next())l=l.value,d.api.T().experiments.Xa("html5_enable_pacf_command_api_with_macros")?DK(d.ib,l,c):d.Ua.executeCommand(l,c);k={adLifecycleCommand:{action:"END_LINEAR_AD"}};d.api.T().experiments.Xa("html5_enable_pacf_command_api_with_macros")?DK(d.ib,k,c):d.Ua.executeCommand(k,c)}});
g.J(this,this.j);this.S(this.element,"click",function(k){var l=b.dismissCommands,m=k.target===d.interstitial;k=d.actionButton.element.contains(k.target);if(m||k)if(d.transition.hide(),m)if(d.qH)d.api.onAdUxClicked(d.componentType,d.layoutId);else for(l=g.q(l),m=l.next();!m.done;m=l.next())m=m.value,d.api.T().experiments.Xa("html5_enable_pacf_command_api_with_macros")?DK(d.ib,m,d.macros):d.Ua.executeCommand(m,d.macros)});
this.transition.show(100);if(!this.Hg&&b.impressionCommands){a=g.q(b.impressionCommands);for(var f=a.next();!f.done;f=a.next())f=f.value,this.api.T().experiments.Xa("html5_enable_pacf_command_api_with_macros")?DK(this.ib,f,c):this.Ua.executeCommand(f,c)}}else g.S(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.S(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.S(Error("SurveyTextInterstitialRenderer has no button."));else g.S(Error("SurveyTextInterstitialRenderer has no text."));
else g.S(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))};
W1.prototype.clear=function(){this.hide()};
W1.prototype.show=function(){HRa(!0);ZJ.prototype.show.call(this)};
W1.prototype.hide=function(){HRa(!1);ZJ.prototype.hide.call(this)};var kUa="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(X1,BK);
X1.prototype.B=function(a){var b=a.id,c=a.content,d=c.componentType;if(!kUa.includes(d))switch(a.actionType){case 1:a=this.J();var e=this.api,f=this.ib,k=c.layoutId,l=c.i,m=c instanceof $G||c instanceof pI||c instanceof uI?c.Hg:!1,n=c instanceof $G||c instanceof XK||c instanceof pI?c.cj:!1,p=c instanceof uI?c.qH:!1;l=void 0===l?{}:l;m=void 0===m?!1:m;n=void 0===n?!1:n;p=void 0===p?!1:p;switch(d){case "invideo-overlay":a=new F1(e,a,k,l,f);break;case "player-overlay":a=new iL(e,a,k,l,f,new kN(e),n);
break;case "survey":a=new V1(e,a,k,l,f,m,n);break;case "ad-action-interstitial":a=new E1(e,a,k,l,f,m,n);break;case "survey-interstitial":a=new W1(e,a,k,l,f,m,p);break;case "ad-message":a=new L1(e,a,k,l,f,new kN(e,1));break;case "player-underlay":a=new M1(e,a,k,l,f);break;default:a=null}if(!a){g.Rx(Error("No UI component returned from ComponentFactory for type: "+d));break}qf(this.j,b)?g.Rx(Error("Ad UI component already registered: "+b)):this.j[b]=a;a.bind(c);c instanceof k1?this.u?this.u.append(a.bH):
g.S(Error("Underlay view was not created but UnderlayRenderer was created")):this.C.append(a.bH);break;case 2:b=IRa(this,a);if(null==b)break;b.bind(c);break;case 3:c=IRa(this,a),null!=c&&(g.Se(c),qf(this.j,b)?(c=this.j,b in c&&delete c[b]):g.Rx(Error("Ad UI component does not exist: "+b)))}};
X1.prototype.ra=function(){g.Te(Object.values(this.j));this.j={};BK.prototype.ra.call(this)};g.v(Y1,g.tM);g.h=Y1.prototype;g.h.create=function(){if(mZ(A1(this.i).Xf))try{JRa(this),this.load(),this.created=!0,JRa(this)}catch(a){T(a instanceof Error?a:String(a))}else this.load(),this.created=!0};
g.h.load=function(){g.tM.prototype.load.call(this);var a=A1(this.i).Xf;noa(a.G.T().L("html5_reduce_ecatcher_errors"));if(mZ(a))try{this.player.getRootNode().classList.add("ad-created")}catch(l){T(l instanceof Error?l:String(l))}else this.player.getRootNode().classList.add("ad-created");var b=this.u(),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 k=c&&c.Af()||!1;a=NRa(f,a,e,k,A1(this.i).Gj);f=c&&c.clientPlaybackNonce||"";c=c&&c.Ip||!1;k=1E3*this.player.getDuration(1);this.Ua=new OJ(this,this.player,this.xp,b,A1(this.i));zxa(this.Ua,a.yv);this.i.i.Jo.nh(f,k,c,a.YA,a.YA.concat(a.yv),e,d);PJ(this.Ua)};
g.h.destroy=function(){var a=this.player.getVideoData(1);this.i.i.Jo.Qj(a&&a.clientPlaybackNonce||"");this.unload();this.created=!1};
g.h.unload=function(){g.tM.prototype.unload.call(this);noa(!1);if(mZ(A1(this.i).Xf))try{this.player.getRootNode().classList.remove("ad-created")}catch(b){T(b instanceof Error?b:String(b))}else this.player.getRootNode().classList.remove("ad-created");if(null!==this.Ua){var a=this.Ua;this.Ua=null;a.dispose()}null!=this.j&&(a=this.j,this.j=null,a.dispose());this.xp.reset()};
g.h.bj=function(){return!1};
g.h.rH=function(){return null===this.Ua?!1:this.Ua.rH()};
g.h.jl=function(a){null!==this.Ua&&this.Ua.jl(a)};
g.h.getAdState=function(){return this.Ua?this.Ua.gA:-1};
g.h.getOptions=function(){return Object.values(jUa)};
g.h.tf=function(a,b){b=void 0===b?{}:b;switch(a){case "replaceUrlMacros":return a=b,a.url?(b=AG(this.player),Object.assign(b,a.Rea),this.Ua&&!b.AD_CPN&&(b.AD_CPN=this.Ua.Fz()),a=g.Sq(a.url,b)):a=null,a;case "onAboutThisAdPopupClosed":this.Io(b);break;default:return null}};
g.h.Io=function(a){a.isMuted&&pxa(this.Ua,A1(this.i).jh,A1(this.i).Ki,a.layoutId);this.Yr&&this.Yr.Io()};
g.h.xo=function(){return null===this.Ua?!1:this.Ua.xo()};g.sM("ad",Y1);var PRa=g.Nc&&ORa();g.v(g.a2,g.W);g.a2.prototype.onClick=function(){this.G.Oa("onExpandMiniplayer")};})(_yt_player);

}

/*
     FILE ARCHIVED ON 22:06:43 Jan 30, 2022 AND RETRIEVED FROM THE
     INTERNET ARCHIVE ON 00:39:25 Jul 23, 2026.
     JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.

     ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
     SECTION 108(a)(3)).
*/
/*
playback timings (ms):
  capture_cache.get: 0.809
  load_resource: 1016.23 (2)
  PetaboxLoader3.resolve: 555.808 (2)
  PetaboxLoader3.datanode: 171.416 (2)
*/